1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.61.
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=
728PACKAGE_TARNAME=
729PACKAGE_VERSION=
730PACKAGE_STRING=
731PACKAGE_BUGREPORT=
732
733ac_unique_file="jwsmtp/jwsmtp/jwsmtp.h"
734# Factoring default headers for most tests.
735ac_includes_default="\
736#include <stdio.h>
737#ifdef HAVE_SYS_TYPES_H
738# include <sys/types.h>
739#endif
740#ifdef HAVE_SYS_STAT_H
741# include <sys/stat.h>
742#endif
743#ifdef STDC_HEADERS
744# include <stdlib.h>
745# include <stddef.h>
746#else
747# ifdef HAVE_STDLIB_H
748#  include <stdlib.h>
749# endif
750#endif
751#ifdef HAVE_STRING_H
752# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
753#  include <memory.h>
754# endif
755# include <string.h>
756#endif
757#ifdef HAVE_STRINGS_H
758# include <strings.h>
759#endif
760#ifdef HAVE_INTTYPES_H
761# include <inttypes.h>
762#endif
763#ifdef HAVE_STDINT_H
764# include <stdint.h>
765#endif
766#ifdef HAVE_UNISTD_H
767# include <unistd.h>
768#endif"
769
770ac_subst_vars='SHELL
771PATH_SEPARATOR
772PACKAGE_NAME
773PACKAGE_TARNAME
774PACKAGE_VERSION
775PACKAGE_STRING
776PACKAGE_BUGREPORT
777exec_prefix
778prefix
779program_transform_name
780bindir
781sbindir
782libexecdir
783datarootdir
784datadir
785sysconfdir
786sharedstatedir
787localstatedir
788includedir
789oldincludedir
790docdir
791infodir
792htmldir
793dvidir
794pdfdir
795psdir
796libdir
797localedir
798mandir
799DEFS
800ECHO_C
801ECHO_N
802ECHO_T
803LIBS
804build_alias
805host_alias
806target_alias
807JWSMTP_API_VERSION
808JWSMTP_LIBRARY_VERSION
809JWSMTP_LIBRARY_NAME
810JWSMTP_RELEASE
811JWSMTP_VERSION
812INSTALL_PROGRAM
813INSTALL_SCRIPT
814INSTALL_DATA
815CYGPATH_W
816PACKAGE
817VERSION
818ACLOCAL
819AUTOCONF
820AUTOMAKE
821AUTOHEADER
822MAKEINFO
823install_sh
824STRIP
825INSTALL_STRIP_PROGRAM
826mkdir_p
827AWK
828SET_MAKE
829am__leading_dot
830AMTAR
831am__tar
832am__untar
833CC
834CFLAGS
835LDFLAGS
836CPPFLAGS
837ac_ct_CC
838EXEEXT
839OBJEXT
840DEPDIR
841am__include
842am__quote
843AMDEP_TRUE
844AMDEP_FALSE
845AMDEPBACKSLASH
846CCDEPMODE
847am__fastdepCC_TRUE
848am__fastdepCC_FALSE
849CXX
850CXXFLAGS
851ac_ct_CXX
852CXXDEPMODE
853am__fastdepCXX_TRUE
854am__fastdepCXX_FALSE
855build
856build_cpu
857build_vendor
858build_os
859host
860host_cpu
861host_vendor
862host_os
863GREP
864EGREP
865LN_S
866ECHO
867AR
868RANLIB
869CPP
870CXXCPP
871F77
872FFLAGS
873ac_ct_F77
874LIBTOOL
875LIBOBJS
876LTLIBOBJS'
877ac_subst_files=''
878      ac_precious_vars='build_alias
879host_alias
880target_alias
881CC
882CFLAGS
883LDFLAGS
884LIBS
885CPPFLAGS
886CXX
887CXXFLAGS
888CCC
889CPP
890CXXCPP
891F77
892FFLAGS'
893
894
895# Initialize some variables set by options.
896ac_init_help=
897ac_init_version=false
898# The variables have the same names as the options, with
899# dashes changed to underlines.
900cache_file=/dev/null
901exec_prefix=NONE
902no_create=
903no_recursion=
904prefix=NONE
905program_prefix=NONE
906program_suffix=NONE
907program_transform_name=s,x,x,
908silent=
909site=
910srcdir=
911verbose=
912x_includes=NONE
913x_libraries=NONE
914
915# Installation directory options.
916# These are left unexpanded so users can "make install exec_prefix=/foo"
917# and all the variables that are supposed to be based on exec_prefix
918# by default will actually change.
919# Use braces instead of parens because sh, perl, etc. also accept them.
920# (The list follows the same order as the GNU Coding Standards.)
921bindir='${exec_prefix}/bin'
922sbindir='${exec_prefix}/sbin'
923libexecdir='${exec_prefix}/libexec'
924datarootdir='${prefix}/share'
925datadir='${datarootdir}'
926sysconfdir='${prefix}/etc'
927sharedstatedir='${prefix}/com'
928localstatedir='${prefix}/var'
929includedir='${prefix}/include'
930oldincludedir='/usr/include'
931docdir='${datarootdir}/doc/${PACKAGE}'
932infodir='${datarootdir}/info'
933htmldir='${docdir}'
934dvidir='${docdir}'
935pdfdir='${docdir}'
936psdir='${docdir}'
937libdir='${exec_prefix}/lib'
938localedir='${datarootdir}/locale'
939mandir='${datarootdir}/man'
940
941ac_prev=
942ac_dashdash=
943for ac_option
944do
945  # If the previous option needs an argument, assign it.
946  if test -n "$ac_prev"; then
947    eval $ac_prev=\$ac_option
948    ac_prev=
949    continue
950  fi
951
952  case $ac_option in
953  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
954  *)	ac_optarg=yes ;;
955  esac
956
957  # Accept the important Cygnus configure options, so we can diagnose typos.
958
959  case $ac_dashdash$ac_option in
960  --)
961    ac_dashdash=yes ;;
962
963  -bindir | --bindir | --bindi | --bind | --bin | --bi)
964    ac_prev=bindir ;;
965  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
966    bindir=$ac_optarg ;;
967
968  -build | --build | --buil | --bui | --bu)
969    ac_prev=build_alias ;;
970  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
971    build_alias=$ac_optarg ;;
972
973  -cache-file | --cache-file | --cache-fil | --cache-fi \
974  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
975    ac_prev=cache_file ;;
976  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
977  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
978    cache_file=$ac_optarg ;;
979
980  --config-cache | -C)
981    cache_file=config.cache ;;
982
983  -datadir | --datadir | --datadi | --datad)
984    ac_prev=datadir ;;
985  -datadir=* | --datadir=* | --datadi=* | --datad=*)
986    datadir=$ac_optarg ;;
987
988  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
989  | --dataroo | --dataro | --datar)
990    ac_prev=datarootdir ;;
991  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
992  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
993    datarootdir=$ac_optarg ;;
994
995  -disable-* | --disable-*)
996    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
997    # Reject names that are not valid shell variable names.
998    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
999      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1000   { (exit 1); exit 1; }; }
1001    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1002    eval enable_$ac_feature=no ;;
1003
1004  -docdir | --docdir | --docdi | --doc | --do)
1005    ac_prev=docdir ;;
1006  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1007    docdir=$ac_optarg ;;
1008
1009  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1010    ac_prev=dvidir ;;
1011  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1012    dvidir=$ac_optarg ;;
1013
1014  -enable-* | --enable-*)
1015    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1016    # Reject names that are not valid shell variable names.
1017    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1018      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1019   { (exit 1); exit 1; }; }
1020    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1021    eval enable_$ac_feature=\$ac_optarg ;;
1022
1023  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1024  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1025  | --exec | --exe | --ex)
1026    ac_prev=exec_prefix ;;
1027  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1028  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1029  | --exec=* | --exe=* | --ex=*)
1030    exec_prefix=$ac_optarg ;;
1031
1032  -gas | --gas | --ga | --g)
1033    # Obsolete; use --with-gas.
1034    with_gas=yes ;;
1035
1036  -help | --help | --hel | --he | -h)
1037    ac_init_help=long ;;
1038  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1039    ac_init_help=recursive ;;
1040  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1041    ac_init_help=short ;;
1042
1043  -host | --host | --hos | --ho)
1044    ac_prev=host_alias ;;
1045  -host=* | --host=* | --hos=* | --ho=*)
1046    host_alias=$ac_optarg ;;
1047
1048  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1049    ac_prev=htmldir ;;
1050  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1051  | --ht=*)
1052    htmldir=$ac_optarg ;;
1053
1054  -includedir | --includedir | --includedi | --included | --include \
1055  | --includ | --inclu | --incl | --inc)
1056    ac_prev=includedir ;;
1057  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1058  | --includ=* | --inclu=* | --incl=* | --inc=*)
1059    includedir=$ac_optarg ;;
1060
1061  -infodir | --infodir | --infodi | --infod | --info | --inf)
1062    ac_prev=infodir ;;
1063  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1064    infodir=$ac_optarg ;;
1065
1066  -libdir | --libdir | --libdi | --libd)
1067    ac_prev=libdir ;;
1068  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1069    libdir=$ac_optarg ;;
1070
1071  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1072  | --libexe | --libex | --libe)
1073    ac_prev=libexecdir ;;
1074  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1075  | --libexe=* | --libex=* | --libe=*)
1076    libexecdir=$ac_optarg ;;
1077
1078  -localedir | --localedir | --localedi | --localed | --locale)
1079    ac_prev=localedir ;;
1080  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1081    localedir=$ac_optarg ;;
1082
1083  -localstatedir | --localstatedir | --localstatedi | --localstated \
1084  | --localstate | --localstat | --localsta | --localst | --locals)
1085    ac_prev=localstatedir ;;
1086  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1087  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1088    localstatedir=$ac_optarg ;;
1089
1090  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1091    ac_prev=mandir ;;
1092  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1093    mandir=$ac_optarg ;;
1094
1095  -nfp | --nfp | --nf)
1096    # Obsolete; use --without-fp.
1097    with_fp=no ;;
1098
1099  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1100  | --no-cr | --no-c | -n)
1101    no_create=yes ;;
1102
1103  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1104  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1105    no_recursion=yes ;;
1106
1107  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1108  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1109  | --oldin | --oldi | --old | --ol | --o)
1110    ac_prev=oldincludedir ;;
1111  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1112  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1113  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1114    oldincludedir=$ac_optarg ;;
1115
1116  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1117    ac_prev=prefix ;;
1118  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1119    prefix=$ac_optarg ;;
1120
1121  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1122  | --program-pre | --program-pr | --program-p)
1123    ac_prev=program_prefix ;;
1124  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1125  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1126    program_prefix=$ac_optarg ;;
1127
1128  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1129  | --program-suf | --program-su | --program-s)
1130    ac_prev=program_suffix ;;
1131  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1132  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1133    program_suffix=$ac_optarg ;;
1134
1135  -program-transform-name | --program-transform-name \
1136  | --program-transform-nam | --program-transform-na \
1137  | --program-transform-n | --program-transform- \
1138  | --program-transform | --program-transfor \
1139  | --program-transfo | --program-transf \
1140  | --program-trans | --program-tran \
1141  | --progr-tra | --program-tr | --program-t)
1142    ac_prev=program_transform_name ;;
1143  -program-transform-name=* | --program-transform-name=* \
1144  | --program-transform-nam=* | --program-transform-na=* \
1145  | --program-transform-n=* | --program-transform-=* \
1146  | --program-transform=* | --program-transfor=* \
1147  | --program-transfo=* | --program-transf=* \
1148  | --program-trans=* | --program-tran=* \
1149  | --progr-tra=* | --program-tr=* | --program-t=*)
1150    program_transform_name=$ac_optarg ;;
1151
1152  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1153    ac_prev=pdfdir ;;
1154  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1155    pdfdir=$ac_optarg ;;
1156
1157  -psdir | --psdir | --psdi | --psd | --ps)
1158    ac_prev=psdir ;;
1159  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1160    psdir=$ac_optarg ;;
1161
1162  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1163  | -silent | --silent | --silen | --sile | --sil)
1164    silent=yes ;;
1165
1166  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1167    ac_prev=sbindir ;;
1168  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1169  | --sbi=* | --sb=*)
1170    sbindir=$ac_optarg ;;
1171
1172  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1173  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1174  | --sharedst | --shareds | --shared | --share | --shar \
1175  | --sha | --sh)
1176    ac_prev=sharedstatedir ;;
1177  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1178  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1179  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1180  | --sha=* | --sh=*)
1181    sharedstatedir=$ac_optarg ;;
1182
1183  -site | --site | --sit)
1184    ac_prev=site ;;
1185  -site=* | --site=* | --sit=*)
1186    site=$ac_optarg ;;
1187
1188  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1189    ac_prev=srcdir ;;
1190  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1191    srcdir=$ac_optarg ;;
1192
1193  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1194  | --syscon | --sysco | --sysc | --sys | --sy)
1195    ac_prev=sysconfdir ;;
1196  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1197  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1198    sysconfdir=$ac_optarg ;;
1199
1200  -target | --target | --targe | --targ | --tar | --ta | --t)
1201    ac_prev=target_alias ;;
1202  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1203    target_alias=$ac_optarg ;;
1204
1205  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1206    verbose=yes ;;
1207
1208  -version | --version | --versio | --versi | --vers | -V)
1209    ac_init_version=: ;;
1210
1211  -with-* | --with-*)
1212    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1213    # Reject names that are not valid shell variable names.
1214    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1215      { echo "$as_me: error: invalid package name: $ac_package" >&2
1216   { (exit 1); exit 1; }; }
1217    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1218    eval with_$ac_package=\$ac_optarg ;;
1219
1220  -without-* | --without-*)
1221    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1222    # Reject names that are not valid shell variable names.
1223    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1224      { echo "$as_me: error: invalid package name: $ac_package" >&2
1225   { (exit 1); exit 1; }; }
1226    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1227    eval with_$ac_package=no ;;
1228
1229  --x)
1230    # Obsolete; use --with-x.
1231    with_x=yes ;;
1232
1233  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1234  | --x-incl | --x-inc | --x-in | --x-i)
1235    ac_prev=x_includes ;;
1236  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1237  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1238    x_includes=$ac_optarg ;;
1239
1240  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1241  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1242    ac_prev=x_libraries ;;
1243  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1244  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1245    x_libraries=$ac_optarg ;;
1246
1247  -*) { echo "$as_me: error: unrecognized option: $ac_option
1248Try \`$0 --help' for more information." >&2
1249   { (exit 1); exit 1; }; }
1250    ;;
1251
1252  *=*)
1253    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1254    # Reject names that are not valid shell variable names.
1255    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1256      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1257   { (exit 1); exit 1; }; }
1258    eval $ac_envvar=\$ac_optarg
1259    export $ac_envvar ;;
1260
1261  *)
1262    # FIXME: should be removed in autoconf 3.0.
1263    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1264    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1265      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1266    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1267    ;;
1268
1269  esac
1270done
1271
1272if test -n "$ac_prev"; then
1273  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1274  { echo "$as_me: error: missing argument to $ac_option" >&2
1275   { (exit 1); exit 1; }; }
1276fi
1277
1278# Be sure to have absolute directory names.
1279for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1280		datadir sysconfdir sharedstatedir localstatedir includedir \
1281		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1282		libdir localedir mandir
1283do
1284  eval ac_val=\$$ac_var
1285  case $ac_val in
1286    [\\/$]* | ?:[\\/]* )  continue;;
1287    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1288  esac
1289  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1290   { (exit 1); exit 1; }; }
1291done
1292
1293# There might be people who depend on the old broken behavior: `$host'
1294# used to hold the argument of --host etc.
1295# FIXME: To remove some day.
1296build=$build_alias
1297host=$host_alias
1298target=$target_alias
1299
1300# FIXME: To remove some day.
1301if test "x$host_alias" != x; then
1302  if test "x$build_alias" = x; then
1303    cross_compiling=maybe
1304    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1305    If a cross compiler is detected then cross compile mode will be used." >&2
1306  elif test "x$build_alias" != "x$host_alias"; then
1307    cross_compiling=yes
1308  fi
1309fi
1310
1311ac_tool_prefix=
1312test -n "$host_alias" && ac_tool_prefix=$host_alias-
1313
1314test "$silent" = yes && exec 6>/dev/null
1315
1316
1317ac_pwd=`pwd` && test -n "$ac_pwd" &&
1318ac_ls_di=`ls -di .` &&
1319ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1320  { echo "$as_me: error: Working directory cannot be determined" >&2
1321   { (exit 1); exit 1; }; }
1322test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1323  { echo "$as_me: error: pwd does not report name of working directory" >&2
1324   { (exit 1); exit 1; }; }
1325
1326
1327# Find the source files, if location was not specified.
1328if test -z "$srcdir"; then
1329  ac_srcdir_defaulted=yes
1330  # Try the directory containing this script, then the parent directory.
1331  ac_confdir=`$as_dirname -- "$0" ||
1332$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1333	 X"$0" : 'X\(//\)[^/]' \| \
1334	 X"$0" : 'X\(//\)$' \| \
1335	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1336echo X"$0" |
1337    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1338	    s//\1/
1339	    q
1340	  }
1341	  /^X\(\/\/\)[^/].*/{
1342	    s//\1/
1343	    q
1344	  }
1345	  /^X\(\/\/\)$/{
1346	    s//\1/
1347	    q
1348	  }
1349	  /^X\(\/\).*/{
1350	    s//\1/
1351	    q
1352	  }
1353	  s/.*/./; q'`
1354  srcdir=$ac_confdir
1355  if test ! -r "$srcdir/$ac_unique_file"; then
1356    srcdir=..
1357  fi
1358else
1359  ac_srcdir_defaulted=no
1360fi
1361if test ! -r "$srcdir/$ac_unique_file"; then
1362  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1363  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1364   { (exit 1); exit 1; }; }
1365fi
1366ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1367ac_abs_confdir=`(
1368	cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1369   { (exit 1); exit 1; }; }
1370	pwd)`
1371# When building in place, set srcdir=.
1372if test "$ac_abs_confdir" = "$ac_pwd"; then
1373  srcdir=.
1374fi
1375# Remove unnecessary trailing slashes from srcdir.
1376# Double slashes in file names in object file debugging info
1377# mess up M-x gdb in Emacs.
1378case $srcdir in
1379*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1380esac
1381for ac_var in $ac_precious_vars; do
1382  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1383  eval ac_env_${ac_var}_value=\$${ac_var}
1384  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1385  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1386done
1387
1388#
1389# Report the --help message.
1390#
1391if test "$ac_init_help" = "long"; then
1392  # Omit some internal or obsolete options to make the list less imposing.
1393  # This message is too long to be a string in the A/UX 3.1 sh.
1394  cat <<_ACEOF
1395\`configure' configures this package to adapt to many kinds of systems.
1396
1397Usage: $0 [OPTION]... [VAR=VALUE]...
1398
1399To assign environment variables (e.g., CC, CFLAGS...), specify them as
1400VAR=VALUE.  See below for descriptions of some of the useful variables.
1401
1402Defaults for the options are specified in brackets.
1403
1404Configuration:
1405  -h, --help              display this help and exit
1406      --help=short        display options specific to this package
1407      --help=recursive    display the short help of all the included packages
1408  -V, --version           display version information and exit
1409  -q, --quiet, --silent   do not print \`checking...' messages
1410      --cache-file=FILE   cache test results in FILE [disabled]
1411  -C, --config-cache      alias for \`--cache-file=config.cache'
1412  -n, --no-create         do not create output files
1413      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1414
1415Installation directories:
1416  --prefix=PREFIX         install architecture-independent files in PREFIX
1417			  [$ac_default_prefix]
1418  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1419			  [PREFIX]
1420
1421By default, \`make install' will install all the files in
1422\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1423an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1424for instance \`--prefix=\$HOME'.
1425
1426For better control, use the options below.
1427
1428Fine tuning of the installation directories:
1429  --bindir=DIR           user executables [EPREFIX/bin]
1430  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1431  --libexecdir=DIR       program executables [EPREFIX/libexec]
1432  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1433  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1434  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1435  --libdir=DIR           object code libraries [EPREFIX/lib]
1436  --includedir=DIR       C header files [PREFIX/include]
1437  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1438  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1439  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1440  --infodir=DIR          info documentation [DATAROOTDIR/info]
1441  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1442  --mandir=DIR           man documentation [DATAROOTDIR/man]
1443  --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1444  --htmldir=DIR          html documentation [DOCDIR]
1445  --dvidir=DIR           dvi documentation [DOCDIR]
1446  --pdfdir=DIR           pdf documentation [DOCDIR]
1447  --psdir=DIR            ps documentation [DOCDIR]
1448_ACEOF
1449
1450  cat <<\_ACEOF
1451
1452Program names:
1453  --program-prefix=PREFIX            prepend PREFIX to installed program names
1454  --program-suffix=SUFFIX            append SUFFIX to installed program names
1455  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1456
1457System types:
1458  --build=BUILD     configure for building on BUILD [guessed]
1459  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1460_ACEOF
1461fi
1462
1463if test -n "$ac_init_help"; then
1464
1465  cat <<\_ACEOF
1466
1467Optional Features:
1468  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1469  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1470  --disable-dependency-tracking  speeds up one-time build
1471  --enable-dependency-tracking   do not reject slow dependency extractors
1472  --enable-shared[=PKGS]  build shared libraries [default=yes]
1473  --enable-static[=PKGS]  build static libraries [default=yes]
1474  --enable-fast-install[=PKGS]
1475                          optimize for fast installation [default=yes]
1476  --disable-libtool-lock  avoid locking (might break parallel builds)
1477
1478Optional Packages:
1479  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1480  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1481  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1482  --with-pic              try to use only PIC/non-PIC objects [default=use
1483                          both]
1484  --with-tags[=TAGS]      include additional configurations [automatic]
1485
1486Some influential environment variables:
1487  CC          C compiler command
1488  CFLAGS      C compiler flags
1489  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1490              nonstandard directory <lib dir>
1491  LIBS        libraries to pass to the linker, e.g. -l<library>
1492  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1493              you have headers in a nonstandard directory <include dir>
1494  CXX         C++ compiler command
1495  CXXFLAGS    C++ compiler flags
1496  CPP         C preprocessor
1497  CXXCPP      C++ preprocessor
1498  F77         Fortran 77 compiler command
1499  FFLAGS      Fortran 77 compiler flags
1500
1501Use these variables to override the choices made by `configure' or to help
1502it to find libraries and programs with nonstandard names/locations.
1503
1504_ACEOF
1505ac_status=$?
1506fi
1507
1508if test "$ac_init_help" = "recursive"; then
1509  # If there are subdirs, report their specific --help.
1510  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1511    test -d "$ac_dir" || continue
1512    ac_builddir=.
1513
1514case "$ac_dir" in
1515.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1516*)
1517  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1518  # A ".." for each directory in $ac_dir_suffix.
1519  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1520  case $ac_top_builddir_sub in
1521  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1522  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1523  esac ;;
1524esac
1525ac_abs_top_builddir=$ac_pwd
1526ac_abs_builddir=$ac_pwd$ac_dir_suffix
1527# for backward compatibility:
1528ac_top_builddir=$ac_top_build_prefix
1529
1530case $srcdir in
1531  .)  # We are building in place.
1532    ac_srcdir=.
1533    ac_top_srcdir=$ac_top_builddir_sub
1534    ac_abs_top_srcdir=$ac_pwd ;;
1535  [\\/]* | ?:[\\/]* )  # Absolute name.
1536    ac_srcdir=$srcdir$ac_dir_suffix;
1537    ac_top_srcdir=$srcdir
1538    ac_abs_top_srcdir=$srcdir ;;
1539  *) # Relative name.
1540    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1541    ac_top_srcdir=$ac_top_build_prefix$srcdir
1542    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1543esac
1544ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1545
1546    cd "$ac_dir" || { ac_status=$?; continue; }
1547    # Check for guested configure.
1548    if test -f "$ac_srcdir/configure.gnu"; then
1549      echo &&
1550      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1551    elif test -f "$ac_srcdir/configure"; then
1552      echo &&
1553      $SHELL "$ac_srcdir/configure" --help=recursive
1554    else
1555      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1556    fi || ac_status=$?
1557    cd "$ac_pwd" || { ac_status=$?; break; }
1558  done
1559fi
1560
1561test -n "$ac_init_help" && exit $ac_status
1562if $ac_init_version; then
1563  cat <<\_ACEOF
1564configure
1565generated by GNU Autoconf 2.61
1566
1567Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
15682002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1569This configure script is free software; the Free Software Foundation
1570gives unlimited permission to copy, distribute and modify it.
1571_ACEOF
1572  exit
1573fi
1574cat >config.log <<_ACEOF
1575This file contains any messages produced by compilers while
1576running configure, to aid debugging if configure makes a mistake.
1577
1578It was created by $as_me, which was
1579generated by GNU Autoconf 2.61.  Invocation command line was
1580
1581  $ $0 $@
1582
1583_ACEOF
1584exec 5>>config.log
1585{
1586cat <<_ASUNAME
1587## --------- ##
1588## Platform. ##
1589## --------- ##
1590
1591hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1592uname -m = `(uname -m) 2>/dev/null || echo unknown`
1593uname -r = `(uname -r) 2>/dev/null || echo unknown`
1594uname -s = `(uname -s) 2>/dev/null || echo unknown`
1595uname -v = `(uname -v) 2>/dev/null || echo unknown`
1596
1597/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1598/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1599
1600/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1601/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1602/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1603/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1604/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1605/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1606/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1607
1608_ASUNAME
1609
1610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1611for as_dir in $PATH
1612do
1613  IFS=$as_save_IFS
1614  test -z "$as_dir" && as_dir=.
1615  echo "PATH: $as_dir"
1616done
1617IFS=$as_save_IFS
1618
1619} >&5
1620
1621cat >&5 <<_ACEOF
1622
1623
1624## ----------- ##
1625## Core tests. ##
1626## ----------- ##
1627
1628_ACEOF
1629
1630
1631# Keep a trace of the command line.
1632# Strip out --no-create and --no-recursion so they do not pile up.
1633# Strip out --silent because we don't want to record it for future runs.
1634# Also quote any args containing shell meta-characters.
1635# Make two passes to allow for proper duplicate-argument suppression.
1636ac_configure_args=
1637ac_configure_args0=
1638ac_configure_args1=
1639ac_must_keep_next=false
1640for ac_pass in 1 2
1641do
1642  for ac_arg
1643  do
1644    case $ac_arg in
1645    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1646    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1647    | -silent | --silent | --silen | --sile | --sil)
1648      continue ;;
1649    *\'*)
1650      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1651    esac
1652    case $ac_pass in
1653    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1654    2)
1655      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1656      if test $ac_must_keep_next = true; then
1657	ac_must_keep_next=false # Got value, back to normal.
1658      else
1659	case $ac_arg in
1660	  *=* | --config-cache | -C | -disable-* | --disable-* \
1661	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1662	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1663	  | -with-* | --with-* | -without-* | --without-* | --x)
1664	    case "$ac_configure_args0 " in
1665	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1666	    esac
1667	    ;;
1668	  -* ) ac_must_keep_next=true ;;
1669	esac
1670      fi
1671      ac_configure_args="$ac_configure_args '$ac_arg'"
1672      ;;
1673    esac
1674  done
1675done
1676$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1677$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1678
1679# When interrupted or exit'd, cleanup temporary files, and complete
1680# config.log.  We remove comments because anyway the quotes in there
1681# would cause problems or look ugly.
1682# WARNING: Use '\'' to represent an apostrophe within the trap.
1683# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1684trap 'exit_status=$?
1685  # Save into config.log some information that might help in debugging.
1686  {
1687    echo
1688
1689    cat <<\_ASBOX
1690## ---------------- ##
1691## Cache variables. ##
1692## ---------------- ##
1693_ASBOX
1694    echo
1695    # The following way of writing the cache mishandles newlines in values,
1696(
1697  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1698    eval ac_val=\$$ac_var
1699    case $ac_val in #(
1700    *${as_nl}*)
1701      case $ac_var in #(
1702      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1703echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1704      esac
1705      case $ac_var in #(
1706      _ | IFS | as_nl) ;; #(
1707      *) $as_unset $ac_var ;;
1708      esac ;;
1709    esac
1710  done
1711  (set) 2>&1 |
1712    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1713    *${as_nl}ac_space=\ *)
1714      sed -n \
1715	"s/'\''/'\''\\\\'\'''\''/g;
1716	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1717      ;; #(
1718    *)
1719      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1720      ;;
1721    esac |
1722    sort
1723)
1724    echo
1725
1726    cat <<\_ASBOX
1727## ----------------- ##
1728## Output variables. ##
1729## ----------------- ##
1730_ASBOX
1731    echo
1732    for ac_var in $ac_subst_vars
1733    do
1734      eval ac_val=\$$ac_var
1735      case $ac_val in
1736      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1737      esac
1738      echo "$ac_var='\''$ac_val'\''"
1739    done | sort
1740    echo
1741
1742    if test -n "$ac_subst_files"; then
1743      cat <<\_ASBOX
1744## ------------------- ##
1745## File substitutions. ##
1746## ------------------- ##
1747_ASBOX
1748      echo
1749      for ac_var in $ac_subst_files
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    fi
1759
1760    if test -s confdefs.h; then
1761      cat <<\_ASBOX
1762## ----------- ##
1763## confdefs.h. ##
1764## ----------- ##
1765_ASBOX
1766      echo
1767      cat confdefs.h
1768      echo
1769    fi
1770    test "$ac_signal" != 0 &&
1771      echo "$as_me: caught signal $ac_signal"
1772    echo "$as_me: exit $exit_status"
1773  } >&5
1774  rm -f core *.core core.conftest.* &&
1775    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1776    exit $exit_status
1777' 0
1778for ac_signal in 1 2 13 15; do
1779  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1780done
1781ac_signal=0
1782
1783# confdefs.h avoids OS command line length limits that DEFS can exceed.
1784rm -f -r conftest* confdefs.h
1785
1786# Predefined preprocessor variables.
1787
1788cat >>confdefs.h <<_ACEOF
1789#define PACKAGE_NAME "$PACKAGE_NAME"
1790_ACEOF
1791
1792
1793cat >>confdefs.h <<_ACEOF
1794#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1795_ACEOF
1796
1797
1798cat >>confdefs.h <<_ACEOF
1799#define PACKAGE_VERSION "$PACKAGE_VERSION"
1800_ACEOF
1801
1802
1803cat >>confdefs.h <<_ACEOF
1804#define PACKAGE_STRING "$PACKAGE_STRING"
1805_ACEOF
1806
1807
1808cat >>confdefs.h <<_ACEOF
1809#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1810_ACEOF
1811
1812
1813# Let the site file select an alternate cache file if it wants to.
1814# Prefer explicitly selected file to automatically selected ones.
1815if test -n "$CONFIG_SITE"; then
1816  set x "$CONFIG_SITE"
1817elif test "x$prefix" != xNONE; then
1818  set x "$prefix/share/config.site" "$prefix/etc/config.site"
1819else
1820  set x "$ac_default_prefix/share/config.site" \
1821	"$ac_default_prefix/etc/config.site"
1822fi
1823shift
1824for ac_site_file
1825do
1826  if test -r "$ac_site_file"; then
1827    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1828echo "$as_me: loading site script $ac_site_file" >&6;}
1829    sed 's/^/| /' "$ac_site_file" >&5
1830    . "$ac_site_file"
1831  fi
1832done
1833
1834if test -r "$cache_file"; then
1835  # Some versions of bash will fail to source /dev/null (special
1836  # files actually), so we avoid doing that.
1837  if test -f "$cache_file"; then
1838    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1839echo "$as_me: loading cache $cache_file" >&6;}
1840    case $cache_file in
1841      [\\/]* | ?:[\\/]* ) . "$cache_file";;
1842      *)                      . "./$cache_file";;
1843    esac
1844  fi
1845else
1846  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1847echo "$as_me: creating cache $cache_file" >&6;}
1848  >$cache_file
1849fi
1850
1851# Check that the precious variables saved in the cache have kept the same
1852# value.
1853ac_cache_corrupted=false
1854for ac_var in $ac_precious_vars; do
1855  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1856  eval ac_new_set=\$ac_env_${ac_var}_set
1857  eval ac_old_val=\$ac_cv_env_${ac_var}_value
1858  eval ac_new_val=\$ac_env_${ac_var}_value
1859  case $ac_old_set,$ac_new_set in
1860    set,)
1861      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1862echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1863      ac_cache_corrupted=: ;;
1864    ,set)
1865      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1866echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1867      ac_cache_corrupted=: ;;
1868    ,);;
1869    *)
1870      if test "x$ac_old_val" != "x$ac_new_val"; then
1871	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1872echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1873	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1874echo "$as_me:   former value:  $ac_old_val" >&2;}
1875	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1876echo "$as_me:   current value: $ac_new_val" >&2;}
1877	ac_cache_corrupted=:
1878      fi;;
1879  esac
1880  # Pass precious variables to config.status.
1881  if test "$ac_new_set" = set; then
1882    case $ac_new_val in
1883    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1884    *) ac_arg=$ac_var=$ac_new_val ;;
1885    esac
1886    case " $ac_configure_args " in
1887      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1888      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1889    esac
1890  fi
1891done
1892if $ac_cache_corrupted; then
1893  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1894echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1895  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1896echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1897   { (exit 1); exit 1; }; }
1898fi
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916ac_ext=c
1917ac_cpp='$CPP $CPPFLAGS'
1918ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1919ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1920ac_compiler_gnu=$ac_cv_c_compiler_gnu
1921
1922
1923ac_config_headers="$ac_config_headers config.h"
1924
1925
1926
1927JWSMTP_LIBRARY_NAME=jwsmtp
1928
1929#release versioning
1930JWSMTP_MAJOR_VERSION=1
1931JWSMTP_MINOR_VERSION=32
1932JWSMTP_MICRO_VERSION=15
1933
1934#  API version
1935JWSMTP_API_VERSION=1.32
1936
1937
1938#shared library versioning
1939JWSMTP_LIBRARY_VERSION=2:8:2
1940
1941
1942
1943
1944PACKAGE=$JWSMTP_LIBRARY_NAME
1945
1946
1947JWSMTP_VERSION=$JWSMTP_MAJOR_VERSION.$JWSMTP_MINOR_VERSION.$JWSMTP_MICRO_VERSION
1948JWSMTP_RELEASE=$JWSMTP_MAJOR_VERSION.$JWSMTP_MINOR_VERSION
1949
1950
1951
1952VERSION=$JWSMTP_VERSION
1953
1954am__api_version="1.9"
1955ac_aux_dir=
1956for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1957  if test -f "$ac_dir/install-sh"; then
1958    ac_aux_dir=$ac_dir
1959    ac_install_sh="$ac_aux_dir/install-sh -c"
1960    break
1961  elif test -f "$ac_dir/install.sh"; then
1962    ac_aux_dir=$ac_dir
1963    ac_install_sh="$ac_aux_dir/install.sh -c"
1964    break
1965  elif test -f "$ac_dir/shtool"; then
1966    ac_aux_dir=$ac_dir
1967    ac_install_sh="$ac_aux_dir/shtool install -c"
1968    break
1969  fi
1970done
1971if test -z "$ac_aux_dir"; then
1972  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1973echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1974   { (exit 1); exit 1; }; }
1975fi
1976
1977# These three variables are undocumented and unsupported,
1978# and are intended to be withdrawn in a future Autoconf release.
1979# They can cause serious problems if a builder's source tree is in a directory
1980# whose full name contains unusual characters.
1981ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1982ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1983ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1984
1985
1986# Find a good install program.  We prefer a C program (faster),
1987# so one script is as good as another.  But avoid the broken or
1988# incompatible versions:
1989# SysV /etc/install, /usr/sbin/install
1990# SunOS /usr/etc/install
1991# IRIX /sbin/install
1992# AIX /bin/install
1993# AmigaOS /C/install, which installs bootblocks on floppy discs
1994# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1995# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1996# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1997# OS/2's system install, which has a completely different semantic
1998# ./install, which can be erroneously created by make from ./install.sh.
1999{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2000echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2001if test -z "$INSTALL"; then
2002if test "${ac_cv_path_install+set}" = set; then
2003  echo $ECHO_N "(cached) $ECHO_C" >&6
2004else
2005  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2006for as_dir in $PATH
2007do
2008  IFS=$as_save_IFS
2009  test -z "$as_dir" && as_dir=.
2010  # Account for people who put trailing slashes in PATH elements.
2011case $as_dir/ in
2012  ./ | .// | /cC/* | \
2013  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2014  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2015  /usr/ucb/* ) ;;
2016  *)
2017    # OSF1 and SCO ODT 3.0 have their own names for install.
2018    # Don't use installbsd from OSF since it installs stuff as root
2019    # by default.
2020    for ac_prog in ginstall scoinst install; do
2021      for ac_exec_ext in '' $ac_executable_extensions; do
2022	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2023	  if test $ac_prog = install &&
2024	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2025	    # AIX install.  It has an incompatible calling convention.
2026	    :
2027	  elif test $ac_prog = install &&
2028	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2029	    # program-specific install script used by HP pwplus--don't use.
2030	    :
2031	  else
2032	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2033	    break 3
2034	  fi
2035	fi
2036      done
2037    done
2038    ;;
2039esac
2040done
2041IFS=$as_save_IFS
2042
2043
2044fi
2045  if test "${ac_cv_path_install+set}" = set; then
2046    INSTALL=$ac_cv_path_install
2047  else
2048    # As a last resort, use the slow shell script.  Don't cache a
2049    # value for INSTALL within a source directory, because that will
2050    # break other packages using the cache if that directory is
2051    # removed, or if the value is a relative name.
2052    INSTALL=$ac_install_sh
2053  fi
2054fi
2055{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2056echo "${ECHO_T}$INSTALL" >&6; }
2057
2058# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2059# It thinks the first close brace ends the variable substitution.
2060test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2061
2062test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2063
2064test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2065
2066{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2067echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2068# Just in case
2069sleep 1
2070echo timestamp > conftest.file
2071# Do `set' in a subshell so we don't clobber the current shell's
2072# arguments.  Must try -L first in case configure is actually a
2073# symlink; some systems play weird games with the mod time of symlinks
2074# (eg FreeBSD returns the mod time of the symlink's containing
2075# directory).
2076if (
2077   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2078   if test "$*" = "X"; then
2079      # -L didn't work.
2080      set X `ls -t $srcdir/configure conftest.file`
2081   fi
2082   rm -f conftest.file
2083   if test "$*" != "X $srcdir/configure conftest.file" \
2084      && test "$*" != "X conftest.file $srcdir/configure"; then
2085
2086      # If neither matched, then we have a broken ls.  This can happen
2087      # if, for instance, CONFIG_SHELL is bash and it inherits a
2088      # broken ls alias from the environment.  This has actually
2089      # happened.  Such a system could not be considered "sane".
2090      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2091alias in your environment" >&5
2092echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2093alias in your environment" >&2;}
2094   { (exit 1); exit 1; }; }
2095   fi
2096
2097   test "$2" = conftest.file
2098   )
2099then
2100   # Ok.
2101   :
2102else
2103   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2104Check your system clock" >&5
2105echo "$as_me: error: newly created file is older than distributed files!
2106Check your system clock" >&2;}
2107   { (exit 1); exit 1; }; }
2108fi
2109{ echo "$as_me:$LINENO: result: yes" >&5
2110echo "${ECHO_T}yes" >&6; }
2111test "$program_prefix" != NONE &&
2112  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2113# Use a double $ so make ignores it.
2114test "$program_suffix" != NONE &&
2115  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2116# Double any \ or $.  echo might interpret backslashes.
2117# By default was `s,x,x', remove it if useless.
2118cat <<\_ACEOF >conftest.sed
2119s/[\\$]/&&/g;s/;s,x,x,$//
2120_ACEOF
2121program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2122rm -f conftest.sed
2123
2124# expand $ac_aux_dir to an absolute path
2125am_aux_dir=`cd $ac_aux_dir && pwd`
2126
2127test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2128# Use eval to expand $SHELL
2129if eval "$MISSING --run true"; then
2130  am_missing_run="$MISSING --run "
2131else
2132  am_missing_run=
2133  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2134echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2135fi
2136
2137if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2138  # We used to keeping the `.' as first argument, in order to
2139  # allow $(mkdir_p) to be used without argument.  As in
2140  #   $(mkdir_p) $(somedir)
2141  # where $(somedir) is conditionally defined.  However this is wrong
2142  # for two reasons:
2143  #  1. if the package is installed by a user who cannot write `.'
2144  #     make install will fail,
2145  #  2. the above comment should most certainly read
2146  #     $(mkdir_p) $(DESTDIR)$(somedir)
2147  #     so it does not work when $(somedir) is undefined and
2148  #     $(DESTDIR) is not.
2149  #  To support the latter case, we have to write
2150  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2151  #  so the `.' trick is pointless.
2152  mkdir_p='mkdir -p --'
2153else
2154  # On NextStep and OpenStep, the `mkdir' command does not
2155  # recognize any option.  It will interpret all options as
2156  # directories to create, and then abort because `.' already
2157  # exists.
2158  for d in ./-p ./--version;
2159  do
2160    test -d $d && rmdir $d
2161  done
2162  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2163  if test -f "$ac_aux_dir/mkinstalldirs"; then
2164    mkdir_p='$(mkinstalldirs)'
2165  else
2166    mkdir_p='$(install_sh) -d'
2167  fi
2168fi
2169
2170for ac_prog in gawk mawk nawk awk
2171do
2172  # Extract the first word of "$ac_prog", so it can be a program name with args.
2173set dummy $ac_prog; ac_word=$2
2174{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2175echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2176if test "${ac_cv_prog_AWK+set}" = set; then
2177  echo $ECHO_N "(cached) $ECHO_C" >&6
2178else
2179  if test -n "$AWK"; then
2180  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2181else
2182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2183for as_dir in $PATH
2184do
2185  IFS=$as_save_IFS
2186  test -z "$as_dir" && as_dir=.
2187  for ac_exec_ext in '' $ac_executable_extensions; do
2188  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2189    ac_cv_prog_AWK="$ac_prog"
2190    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2191    break 2
2192  fi
2193done
2194done
2195IFS=$as_save_IFS
2196
2197fi
2198fi
2199AWK=$ac_cv_prog_AWK
2200if test -n "$AWK"; then
2201  { echo "$as_me:$LINENO: result: $AWK" >&5
2202echo "${ECHO_T}$AWK" >&6; }
2203else
2204  { echo "$as_me:$LINENO: result: no" >&5
2205echo "${ECHO_T}no" >&6; }
2206fi
2207
2208
2209  test -n "$AWK" && break
2210done
2211
2212{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2213echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2214set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2215if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2216  echo $ECHO_N "(cached) $ECHO_C" >&6
2217else
2218  cat >conftest.make <<\_ACEOF
2219SHELL = /bin/sh
2220all:
2221	@echo '@@@%%%=$(MAKE)=@@@%%%'
2222_ACEOF
2223# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2224case `${MAKE-make} -f conftest.make 2>/dev/null` in
2225  *@@@%%%=?*=@@@%%%*)
2226    eval ac_cv_prog_make_${ac_make}_set=yes;;
2227  *)
2228    eval ac_cv_prog_make_${ac_make}_set=no;;
2229esac
2230rm -f conftest.make
2231fi
2232if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2233  { echo "$as_me:$LINENO: result: yes" >&5
2234echo "${ECHO_T}yes" >&6; }
2235  SET_MAKE=
2236else
2237  { echo "$as_me:$LINENO: result: no" >&5
2238echo "${ECHO_T}no" >&6; }
2239  SET_MAKE="MAKE=${MAKE-make}"
2240fi
2241
2242rm -rf .tst 2>/dev/null
2243mkdir .tst 2>/dev/null
2244if test -d .tst; then
2245  am__leading_dot=.
2246else
2247  am__leading_dot=_
2248fi
2249rmdir .tst 2>/dev/null
2250
2251# test to see if srcdir already configured
2252if test "`cd $srcdir && pwd`" != "`pwd`" &&
2253   test -f $srcdir/config.status; then
2254  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2255echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2256   { (exit 1); exit 1; }; }
2257fi
2258
2259# test whether we have cygpath
2260if test -z "$CYGPATH_W"; then
2261  if (cygpath --version) >/dev/null 2>/dev/null; then
2262    CYGPATH_W='cygpath -w'
2263  else
2264    CYGPATH_W=echo
2265  fi
2266fi
2267
2268
2269# Define the identity of the package.
2270 PACKAGE=$PACKAGE
2271 VERSION=$VERSION
2272
2273
2274# Some tools Automake needs.
2275
2276ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2277
2278
2279AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2280
2281
2282AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2283
2284
2285AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2286
2287
2288MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2289
2290install_sh=${install_sh-"$am_aux_dir/install-sh"}
2291
2292# Installed binaries are usually stripped using `strip' when the user
2293# run `make install-strip'.  However `strip' might not be the right
2294# tool to use in cross-compilation environments, therefore Automake
2295# will honor the `STRIP' environment variable to overrule this program.
2296if test "$cross_compiling" != no; then
2297  if test -n "$ac_tool_prefix"; then
2298  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2299set dummy ${ac_tool_prefix}strip; ac_word=$2
2300{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2301echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2302if test "${ac_cv_prog_STRIP+set}" = set; then
2303  echo $ECHO_N "(cached) $ECHO_C" >&6
2304else
2305  if test -n "$STRIP"; then
2306  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2307else
2308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2309for as_dir in $PATH
2310do
2311  IFS=$as_save_IFS
2312  test -z "$as_dir" && as_dir=.
2313  for ac_exec_ext in '' $ac_executable_extensions; do
2314  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2315    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2316    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2317    break 2
2318  fi
2319done
2320done
2321IFS=$as_save_IFS
2322
2323fi
2324fi
2325STRIP=$ac_cv_prog_STRIP
2326if test -n "$STRIP"; then
2327  { echo "$as_me:$LINENO: result: $STRIP" >&5
2328echo "${ECHO_T}$STRIP" >&6; }
2329else
2330  { echo "$as_me:$LINENO: result: no" >&5
2331echo "${ECHO_T}no" >&6; }
2332fi
2333
2334
2335fi
2336if test -z "$ac_cv_prog_STRIP"; then
2337  ac_ct_STRIP=$STRIP
2338  # Extract the first word of "strip", so it can be a program name with args.
2339set dummy strip; ac_word=$2
2340{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2341echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2342if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2343  echo $ECHO_N "(cached) $ECHO_C" >&6
2344else
2345  if test -n "$ac_ct_STRIP"; then
2346  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2347else
2348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2349for as_dir in $PATH
2350do
2351  IFS=$as_save_IFS
2352  test -z "$as_dir" && as_dir=.
2353  for ac_exec_ext in '' $ac_executable_extensions; do
2354  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2355    ac_cv_prog_ac_ct_STRIP="strip"
2356    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2357    break 2
2358  fi
2359done
2360done
2361IFS=$as_save_IFS
2362
2363fi
2364fi
2365ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2366if test -n "$ac_ct_STRIP"; then
2367  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2368echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2369else
2370  { echo "$as_me:$LINENO: result: no" >&5
2371echo "${ECHO_T}no" >&6; }
2372fi
2373
2374  if test "x$ac_ct_STRIP" = x; then
2375    STRIP=":"
2376  else
2377    case $cross_compiling:$ac_tool_warned in
2378yes:)
2379{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2380whose name does not start with the host triplet.  If you think this
2381configuration is useful to you, please write to autoconf@gnu.org." >&5
2382echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2383whose name does not start with the host triplet.  If you think this
2384configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2385ac_tool_warned=yes ;;
2386esac
2387    STRIP=$ac_ct_STRIP
2388  fi
2389else
2390  STRIP="$ac_cv_prog_STRIP"
2391fi
2392
2393fi
2394INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2395
2396# We need awk for the "check" target.  The system "awk" is bad on
2397# some platforms.
2398# Always define AMTAR for backward compatibility.
2399
2400AMTAR=${AMTAR-"${am_missing_run}tar"}
2401
2402am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2403
2404
2405
2406
2407
2408
2409
2410ac_ext=c
2411ac_cpp='$CPP $CPPFLAGS'
2412ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2413ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2414ac_compiler_gnu=$ac_cv_c_compiler_gnu
2415if test -n "$ac_tool_prefix"; then
2416  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2417set dummy ${ac_tool_prefix}gcc; ac_word=$2
2418{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2419echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2420if test "${ac_cv_prog_CC+set}" = set; then
2421  echo $ECHO_N "(cached) $ECHO_C" >&6
2422else
2423  if test -n "$CC"; then
2424  ac_cv_prog_CC="$CC" # Let the user override the test.
2425else
2426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2427for as_dir in $PATH
2428do
2429  IFS=$as_save_IFS
2430  test -z "$as_dir" && as_dir=.
2431  for ac_exec_ext in '' $ac_executable_extensions; do
2432  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2433    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2434    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2435    break 2
2436  fi
2437done
2438done
2439IFS=$as_save_IFS
2440
2441fi
2442fi
2443CC=$ac_cv_prog_CC
2444if test -n "$CC"; then
2445  { echo "$as_me:$LINENO: result: $CC" >&5
2446echo "${ECHO_T}$CC" >&6; }
2447else
2448  { echo "$as_me:$LINENO: result: no" >&5
2449echo "${ECHO_T}no" >&6; }
2450fi
2451
2452
2453fi
2454if test -z "$ac_cv_prog_CC"; then
2455  ac_ct_CC=$CC
2456  # Extract the first word of "gcc", so it can be a program name with args.
2457set dummy gcc; ac_word=$2
2458{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2459echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2460if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2461  echo $ECHO_N "(cached) $ECHO_C" >&6
2462else
2463  if test -n "$ac_ct_CC"; then
2464  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2465else
2466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2467for as_dir in $PATH
2468do
2469  IFS=$as_save_IFS
2470  test -z "$as_dir" && as_dir=.
2471  for ac_exec_ext in '' $ac_executable_extensions; do
2472  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2473    ac_cv_prog_ac_ct_CC="gcc"
2474    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2475    break 2
2476  fi
2477done
2478done
2479IFS=$as_save_IFS
2480
2481fi
2482fi
2483ac_ct_CC=$ac_cv_prog_ac_ct_CC
2484if test -n "$ac_ct_CC"; then
2485  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2486echo "${ECHO_T}$ac_ct_CC" >&6; }
2487else
2488  { echo "$as_me:$LINENO: result: no" >&5
2489echo "${ECHO_T}no" >&6; }
2490fi
2491
2492  if test "x$ac_ct_CC" = x; then
2493    CC=""
2494  else
2495    case $cross_compiling:$ac_tool_warned in
2496yes:)
2497{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2498whose name does not start with the host triplet.  If you think this
2499configuration is useful to you, please write to autoconf@gnu.org." >&5
2500echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2501whose name does not start with the host triplet.  If you think this
2502configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2503ac_tool_warned=yes ;;
2504esac
2505    CC=$ac_ct_CC
2506  fi
2507else
2508  CC="$ac_cv_prog_CC"
2509fi
2510
2511if test -z "$CC"; then
2512          if test -n "$ac_tool_prefix"; then
2513    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2514set dummy ${ac_tool_prefix}cc; ac_word=$2
2515{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2516echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2517if test "${ac_cv_prog_CC+set}" = set; then
2518  echo $ECHO_N "(cached) $ECHO_C" >&6
2519else
2520  if test -n "$CC"; then
2521  ac_cv_prog_CC="$CC" # Let the user override the test.
2522else
2523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2524for as_dir in $PATH
2525do
2526  IFS=$as_save_IFS
2527  test -z "$as_dir" && as_dir=.
2528  for ac_exec_ext in '' $ac_executable_extensions; do
2529  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2530    ac_cv_prog_CC="${ac_tool_prefix}cc"
2531    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2532    break 2
2533  fi
2534done
2535done
2536IFS=$as_save_IFS
2537
2538fi
2539fi
2540CC=$ac_cv_prog_CC
2541if test -n "$CC"; then
2542  { echo "$as_me:$LINENO: result: $CC" >&5
2543echo "${ECHO_T}$CC" >&6; }
2544else
2545  { echo "$as_me:$LINENO: result: no" >&5
2546echo "${ECHO_T}no" >&6; }
2547fi
2548
2549
2550  fi
2551fi
2552if test -z "$CC"; then
2553  # Extract the first word of "cc", so it can be a program name with args.
2554set dummy cc; ac_word=$2
2555{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2556echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2557if test "${ac_cv_prog_CC+set}" = set; then
2558  echo $ECHO_N "(cached) $ECHO_C" >&6
2559else
2560  if test -n "$CC"; then
2561  ac_cv_prog_CC="$CC" # Let the user override the test.
2562else
2563  ac_prog_rejected=no
2564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2565for as_dir in $PATH
2566do
2567  IFS=$as_save_IFS
2568  test -z "$as_dir" && as_dir=.
2569  for ac_exec_ext in '' $ac_executable_extensions; do
2570  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2571    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2572       ac_prog_rejected=yes
2573       continue
2574     fi
2575    ac_cv_prog_CC="cc"
2576    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2577    break 2
2578  fi
2579done
2580done
2581IFS=$as_save_IFS
2582
2583if test $ac_prog_rejected = yes; then
2584  # We found a bogon in the path, so make sure we never use it.
2585  set dummy $ac_cv_prog_CC
2586  shift
2587  if test $# != 0; then
2588    # We chose a different compiler from the bogus one.
2589    # However, it has the same basename, so the bogon will be chosen
2590    # first if we set CC to just the basename; use the full file name.
2591    shift
2592    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2593  fi
2594fi
2595fi
2596fi
2597CC=$ac_cv_prog_CC
2598if test -n "$CC"; then
2599  { echo "$as_me:$LINENO: result: $CC" >&5
2600echo "${ECHO_T}$CC" >&6; }
2601else
2602  { echo "$as_me:$LINENO: result: no" >&5
2603echo "${ECHO_T}no" >&6; }
2604fi
2605
2606
2607fi
2608if test -z "$CC"; then
2609  if test -n "$ac_tool_prefix"; then
2610  for ac_prog in cl.exe
2611  do
2612    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2613set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2614{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2615echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2616if test "${ac_cv_prog_CC+set}" = set; then
2617  echo $ECHO_N "(cached) $ECHO_C" >&6
2618else
2619  if test -n "$CC"; then
2620  ac_cv_prog_CC="$CC" # Let the user override the test.
2621else
2622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2623for as_dir in $PATH
2624do
2625  IFS=$as_save_IFS
2626  test -z "$as_dir" && as_dir=.
2627  for ac_exec_ext in '' $ac_executable_extensions; do
2628  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2629    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2630    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2631    break 2
2632  fi
2633done
2634done
2635IFS=$as_save_IFS
2636
2637fi
2638fi
2639CC=$ac_cv_prog_CC
2640if test -n "$CC"; then
2641  { echo "$as_me:$LINENO: result: $CC" >&5
2642echo "${ECHO_T}$CC" >&6; }
2643else
2644  { echo "$as_me:$LINENO: result: no" >&5
2645echo "${ECHO_T}no" >&6; }
2646fi
2647
2648
2649    test -n "$CC" && break
2650  done
2651fi
2652if test -z "$CC"; then
2653  ac_ct_CC=$CC
2654  for ac_prog in cl.exe
2655do
2656  # Extract the first word of "$ac_prog", so it can be a program name with args.
2657set dummy $ac_prog; ac_word=$2
2658{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2659echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2660if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2661  echo $ECHO_N "(cached) $ECHO_C" >&6
2662else
2663  if test -n "$ac_ct_CC"; then
2664  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2665else
2666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2667for as_dir in $PATH
2668do
2669  IFS=$as_save_IFS
2670  test -z "$as_dir" && as_dir=.
2671  for ac_exec_ext in '' $ac_executable_extensions; do
2672  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2673    ac_cv_prog_ac_ct_CC="$ac_prog"
2674    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2675    break 2
2676  fi
2677done
2678done
2679IFS=$as_save_IFS
2680
2681fi
2682fi
2683ac_ct_CC=$ac_cv_prog_ac_ct_CC
2684if test -n "$ac_ct_CC"; then
2685  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2686echo "${ECHO_T}$ac_ct_CC" >&6; }
2687else
2688  { echo "$as_me:$LINENO: result: no" >&5
2689echo "${ECHO_T}no" >&6; }
2690fi
2691
2692
2693  test -n "$ac_ct_CC" && break
2694done
2695
2696  if test "x$ac_ct_CC" = x; then
2697    CC=""
2698  else
2699    case $cross_compiling:$ac_tool_warned in
2700yes:)
2701{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2702whose name does not start with the host triplet.  If you think this
2703configuration is useful to you, please write to autoconf@gnu.org." >&5
2704echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2705whose name does not start with the host triplet.  If you think this
2706configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2707ac_tool_warned=yes ;;
2708esac
2709    CC=$ac_ct_CC
2710  fi
2711fi
2712
2713fi
2714
2715
2716test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2717See \`config.log' for more details." >&5
2718echo "$as_me: error: no acceptable C compiler found in \$PATH
2719See \`config.log' for more details." >&2;}
2720   { (exit 1); exit 1; }; }
2721
2722# Provide some information about the compiler.
2723echo "$as_me:$LINENO: checking for C compiler version" >&5
2724ac_compiler=`set X $ac_compile; echo $2`
2725{ (ac_try="$ac_compiler --version >&5"
2726case "(($ac_try" in
2727  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2728  *) ac_try_echo=$ac_try;;
2729esac
2730eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2731  (eval "$ac_compiler --version >&5") 2>&5
2732  ac_status=$?
2733  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2734  (exit $ac_status); }
2735{ (ac_try="$ac_compiler -v >&5"
2736case "(($ac_try" in
2737  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2738  *) ac_try_echo=$ac_try;;
2739esac
2740eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2741  (eval "$ac_compiler -v >&5") 2>&5
2742  ac_status=$?
2743  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744  (exit $ac_status); }
2745{ (ac_try="$ac_compiler -V >&5"
2746case "(($ac_try" in
2747  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2748  *) ac_try_echo=$ac_try;;
2749esac
2750eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2751  (eval "$ac_compiler -V >&5") 2>&5
2752  ac_status=$?
2753  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2754  (exit $ac_status); }
2755
2756cat >conftest.$ac_ext <<_ACEOF
2757/* confdefs.h.  */
2758_ACEOF
2759cat confdefs.h >>conftest.$ac_ext
2760cat >>conftest.$ac_ext <<_ACEOF
2761/* end confdefs.h.  */
2762
2763int
2764main ()
2765{
2766
2767  ;
2768  return 0;
2769}
2770_ACEOF
2771ac_clean_files_save=$ac_clean_files
2772ac_clean_files="$ac_clean_files a.out a.exe b.out"
2773# Try to create an executable without -o first, disregard a.out.
2774# It will help us diagnose broken compilers, and finding out an intuition
2775# of exeext.
2776{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2777echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2778ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2779#
2780# List of possible output files, starting from the most likely.
2781# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2782# only as a last resort.  b.out is created by i960 compilers.
2783ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2784#
2785# The IRIX 6 linker writes into existing files which may not be
2786# executable, retaining their permissions.  Remove them first so a
2787# subsequent execution test works.
2788ac_rmfiles=
2789for ac_file in $ac_files
2790do
2791  case $ac_file in
2792    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2793    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2794  esac
2795done
2796rm -f $ac_rmfiles
2797
2798if { (ac_try="$ac_link_default"
2799case "(($ac_try" in
2800  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2801  *) ac_try_echo=$ac_try;;
2802esac
2803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2804  (eval "$ac_link_default") 2>&5
2805  ac_status=$?
2806  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2807  (exit $ac_status); }; then
2808  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2809# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2810# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2811# so that the user can short-circuit this test for compilers unknown to
2812# Autoconf.
2813for ac_file in $ac_files ''
2814do
2815  test -f "$ac_file" || continue
2816  case $ac_file in
2817    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2818	;;
2819    [ab].out )
2820	# We found the default executable, but exeext='' is most
2821	# certainly right.
2822	break;;
2823    *.* )
2824        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2825	then :; else
2826	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2827	fi
2828	# We set ac_cv_exeext here because the later test for it is not
2829	# safe: cross compilers may not add the suffix if given an `-o'
2830	# argument, so we may need to know it at that point already.
2831	# Even if this section looks crufty: it has the advantage of
2832	# actually working.
2833	break;;
2834    * )
2835	break;;
2836  esac
2837done
2838test "$ac_cv_exeext" = no && ac_cv_exeext=
2839
2840else
2841  ac_file=''
2842fi
2843
2844{ echo "$as_me:$LINENO: result: $ac_file" >&5
2845echo "${ECHO_T}$ac_file" >&6; }
2846if test -z "$ac_file"; then
2847  echo "$as_me: failed program was:" >&5
2848sed 's/^/| /' conftest.$ac_ext >&5
2849
2850{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2851See \`config.log' for more details." >&5
2852echo "$as_me: error: C compiler cannot create executables
2853See \`config.log' for more details." >&2;}
2854   { (exit 77); exit 77; }; }
2855fi
2856
2857ac_exeext=$ac_cv_exeext
2858
2859# Check that the compiler produces executables we can run.  If not, either
2860# the compiler is broken, or we cross compile.
2861{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2862echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2863# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2864# If not cross compiling, check that we can run a simple program.
2865if test "$cross_compiling" != yes; then
2866  if { ac_try='./$ac_file'
2867  { (case "(($ac_try" in
2868  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2869  *) ac_try_echo=$ac_try;;
2870esac
2871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2872  (eval "$ac_try") 2>&5
2873  ac_status=$?
2874  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875  (exit $ac_status); }; }; then
2876    cross_compiling=no
2877  else
2878    if test "$cross_compiling" = maybe; then
2879	cross_compiling=yes
2880    else
2881	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2882If you meant to cross compile, use \`--host'.
2883See \`config.log' for more details." >&5
2884echo "$as_me: error: cannot run C compiled programs.
2885If you meant to cross compile, use \`--host'.
2886See \`config.log' for more details." >&2;}
2887   { (exit 1); exit 1; }; }
2888    fi
2889  fi
2890fi
2891{ echo "$as_me:$LINENO: result: yes" >&5
2892echo "${ECHO_T}yes" >&6; }
2893
2894rm -f a.out a.exe conftest$ac_cv_exeext b.out
2895ac_clean_files=$ac_clean_files_save
2896# Check that the compiler produces executables we can run.  If not, either
2897# the compiler is broken, or we cross compile.
2898{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2899echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2900{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2901echo "${ECHO_T}$cross_compiling" >&6; }
2902
2903{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2904echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2905if { (ac_try="$ac_link"
2906case "(($ac_try" in
2907  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2908  *) ac_try_echo=$ac_try;;
2909esac
2910eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2911  (eval "$ac_link") 2>&5
2912  ac_status=$?
2913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914  (exit $ac_status); }; then
2915  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2916# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2917# work properly (i.e., refer to `conftest.exe'), while it won't with
2918# `rm'.
2919for ac_file in conftest.exe conftest conftest.*; do
2920  test -f "$ac_file" || continue
2921  case $ac_file in
2922    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2923    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2924	  break;;
2925    * ) break;;
2926  esac
2927done
2928else
2929  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2930See \`config.log' for more details." >&5
2931echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2932See \`config.log' for more details." >&2;}
2933   { (exit 1); exit 1; }; }
2934fi
2935
2936rm -f conftest$ac_cv_exeext
2937{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2938echo "${ECHO_T}$ac_cv_exeext" >&6; }
2939
2940rm -f conftest.$ac_ext
2941EXEEXT=$ac_cv_exeext
2942ac_exeext=$EXEEXT
2943{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2944echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2945if test "${ac_cv_objext+set}" = set; then
2946  echo $ECHO_N "(cached) $ECHO_C" >&6
2947else
2948  cat >conftest.$ac_ext <<_ACEOF
2949/* confdefs.h.  */
2950_ACEOF
2951cat confdefs.h >>conftest.$ac_ext
2952cat >>conftest.$ac_ext <<_ACEOF
2953/* end confdefs.h.  */
2954
2955int
2956main ()
2957{
2958
2959  ;
2960  return 0;
2961}
2962_ACEOF
2963rm -f conftest.o conftest.obj
2964if { (ac_try="$ac_compile"
2965case "(($ac_try" in
2966  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2967  *) ac_try_echo=$ac_try;;
2968esac
2969eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2970  (eval "$ac_compile") 2>&5
2971  ac_status=$?
2972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973  (exit $ac_status); }; then
2974  for ac_file in conftest.o conftest.obj conftest.*; do
2975  test -f "$ac_file" || continue;
2976  case $ac_file in
2977    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2978    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2979       break;;
2980  esac
2981done
2982else
2983  echo "$as_me: failed program was:" >&5
2984sed 's/^/| /' conftest.$ac_ext >&5
2985
2986{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2987See \`config.log' for more details." >&5
2988echo "$as_me: error: cannot compute suffix of object files: cannot compile
2989See \`config.log' for more details." >&2;}
2990   { (exit 1); exit 1; }; }
2991fi
2992
2993rm -f conftest.$ac_cv_objext conftest.$ac_ext
2994fi
2995{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2996echo "${ECHO_T}$ac_cv_objext" >&6; }
2997OBJEXT=$ac_cv_objext
2998ac_objext=$OBJEXT
2999{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3000echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3001if test "${ac_cv_c_compiler_gnu+set}" = set; then
3002  echo $ECHO_N "(cached) $ECHO_C" >&6
3003else
3004  cat >conftest.$ac_ext <<_ACEOF
3005/* confdefs.h.  */
3006_ACEOF
3007cat confdefs.h >>conftest.$ac_ext
3008cat >>conftest.$ac_ext <<_ACEOF
3009/* end confdefs.h.  */
3010
3011int
3012main ()
3013{
3014#ifndef __GNUC__
3015       choke me
3016#endif
3017
3018  ;
3019  return 0;
3020}
3021_ACEOF
3022rm -f conftest.$ac_objext
3023if { (ac_try="$ac_compile"
3024case "(($ac_try" in
3025  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3026  *) ac_try_echo=$ac_try;;
3027esac
3028eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3029  (eval "$ac_compile") 2>conftest.er1
3030  ac_status=$?
3031  grep -v '^ *+' conftest.er1 >conftest.err
3032  rm -f conftest.er1
3033  cat conftest.err >&5
3034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035  (exit $ac_status); } && {
3036	 test -z "$ac_c_werror_flag" ||
3037	 test ! -s conftest.err
3038       } && test -s conftest.$ac_objext; then
3039  ac_compiler_gnu=yes
3040else
3041  echo "$as_me: failed program was:" >&5
3042sed 's/^/| /' conftest.$ac_ext >&5
3043
3044	ac_compiler_gnu=no
3045fi
3046
3047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3048ac_cv_c_compiler_gnu=$ac_compiler_gnu
3049
3050fi
3051{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3052echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3053GCC=`test $ac_compiler_gnu = yes && echo yes`
3054ac_test_CFLAGS=${CFLAGS+set}
3055ac_save_CFLAGS=$CFLAGS
3056{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3057echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3058if test "${ac_cv_prog_cc_g+set}" = set; then
3059  echo $ECHO_N "(cached) $ECHO_C" >&6
3060else
3061  ac_save_c_werror_flag=$ac_c_werror_flag
3062   ac_c_werror_flag=yes
3063   ac_cv_prog_cc_g=no
3064   CFLAGS="-g"
3065   cat >conftest.$ac_ext <<_ACEOF
3066/* confdefs.h.  */
3067_ACEOF
3068cat confdefs.h >>conftest.$ac_ext
3069cat >>conftest.$ac_ext <<_ACEOF
3070/* end confdefs.h.  */
3071
3072int
3073main ()
3074{
3075
3076  ;
3077  return 0;
3078}
3079_ACEOF
3080rm -f conftest.$ac_objext
3081if { (ac_try="$ac_compile"
3082case "(($ac_try" in
3083  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3084  *) ac_try_echo=$ac_try;;
3085esac
3086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3087  (eval "$ac_compile") 2>conftest.er1
3088  ac_status=$?
3089  grep -v '^ *+' conftest.er1 >conftest.err
3090  rm -f conftest.er1
3091  cat conftest.err >&5
3092  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093  (exit $ac_status); } && {
3094	 test -z "$ac_c_werror_flag" ||
3095	 test ! -s conftest.err
3096       } && test -s conftest.$ac_objext; then
3097  ac_cv_prog_cc_g=yes
3098else
3099  echo "$as_me: failed program was:" >&5
3100sed 's/^/| /' conftest.$ac_ext >&5
3101
3102	CFLAGS=""
3103      cat >conftest.$ac_ext <<_ACEOF
3104/* confdefs.h.  */
3105_ACEOF
3106cat confdefs.h >>conftest.$ac_ext
3107cat >>conftest.$ac_ext <<_ACEOF
3108/* end confdefs.h.  */
3109
3110int
3111main ()
3112{
3113
3114  ;
3115  return 0;
3116}
3117_ACEOF
3118rm -f conftest.$ac_objext
3119if { (ac_try="$ac_compile"
3120case "(($ac_try" in
3121  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3122  *) ac_try_echo=$ac_try;;
3123esac
3124eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3125  (eval "$ac_compile") 2>conftest.er1
3126  ac_status=$?
3127  grep -v '^ *+' conftest.er1 >conftest.err
3128  rm -f conftest.er1
3129  cat conftest.err >&5
3130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131  (exit $ac_status); } && {
3132	 test -z "$ac_c_werror_flag" ||
3133	 test ! -s conftest.err
3134       } && test -s conftest.$ac_objext; then
3135  :
3136else
3137  echo "$as_me: failed program was:" >&5
3138sed 's/^/| /' conftest.$ac_ext >&5
3139
3140	ac_c_werror_flag=$ac_save_c_werror_flag
3141	 CFLAGS="-g"
3142	 cat >conftest.$ac_ext <<_ACEOF
3143/* confdefs.h.  */
3144_ACEOF
3145cat confdefs.h >>conftest.$ac_ext
3146cat >>conftest.$ac_ext <<_ACEOF
3147/* end confdefs.h.  */
3148
3149int
3150main ()
3151{
3152
3153  ;
3154  return 0;
3155}
3156_ACEOF
3157rm -f conftest.$ac_objext
3158if { (ac_try="$ac_compile"
3159case "(($ac_try" in
3160  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3161  *) ac_try_echo=$ac_try;;
3162esac
3163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3164  (eval "$ac_compile") 2>conftest.er1
3165  ac_status=$?
3166  grep -v '^ *+' conftest.er1 >conftest.err
3167  rm -f conftest.er1
3168  cat conftest.err >&5
3169  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170  (exit $ac_status); } && {
3171	 test -z "$ac_c_werror_flag" ||
3172	 test ! -s conftest.err
3173       } && test -s conftest.$ac_objext; then
3174  ac_cv_prog_cc_g=yes
3175else
3176  echo "$as_me: failed program was:" >&5
3177sed 's/^/| /' conftest.$ac_ext >&5
3178
3179
3180fi
3181
3182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3183fi
3184
3185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3186fi
3187
3188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3189   ac_c_werror_flag=$ac_save_c_werror_flag
3190fi
3191{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3192echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3193if test "$ac_test_CFLAGS" = set; then
3194  CFLAGS=$ac_save_CFLAGS
3195elif test $ac_cv_prog_cc_g = yes; then
3196  if test "$GCC" = yes; then
3197    CFLAGS="-g -O2"
3198  else
3199    CFLAGS="-g"
3200  fi
3201else
3202  if test "$GCC" = yes; then
3203    CFLAGS="-O2"
3204  else
3205    CFLAGS=
3206  fi
3207fi
3208{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3209echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3210if test "${ac_cv_prog_cc_c89+set}" = set; then
3211  echo $ECHO_N "(cached) $ECHO_C" >&6
3212else
3213  ac_cv_prog_cc_c89=no
3214ac_save_CC=$CC
3215cat >conftest.$ac_ext <<_ACEOF
3216/* confdefs.h.  */
3217_ACEOF
3218cat confdefs.h >>conftest.$ac_ext
3219cat >>conftest.$ac_ext <<_ACEOF
3220/* end confdefs.h.  */
3221#include <stdarg.h>
3222#include <stdio.h>
3223#include <sys/types.h>
3224#include <sys/stat.h>
3225/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3226struct buf { int x; };
3227FILE * (*rcsopen) (struct buf *, struct stat *, int);
3228static char *e (p, i)
3229     char **p;
3230     int i;
3231{
3232  return p[i];
3233}
3234static char *f (char * (*g) (char **, int), char **p, ...)
3235{
3236  char *s;
3237  va_list v;
3238  va_start (v,p);
3239  s = g (p, va_arg (v,int));
3240  va_end (v);
3241  return s;
3242}
3243
3244/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3245   function prototypes and stuff, but not '\xHH' hex character constants.
3246   These don't provoke an error unfortunately, instead are silently treated
3247   as 'x'.  The following induces an error, until -std is added to get
3248   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3249   array size at least.  It's necessary to write '\x00'==0 to get something
3250   that's true only with -std.  */
3251int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3252
3253/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3254   inside strings and character constants.  */
3255#define FOO(x) 'x'
3256int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3257
3258int test (int i, double x);
3259struct s1 {int (*f) (int a);};
3260struct s2 {int (*f) (double a);};
3261int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3262int argc;
3263char **argv;
3264int
3265main ()
3266{
3267return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3268  ;
3269  return 0;
3270}
3271_ACEOF
3272for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3273	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3274do
3275  CC="$ac_save_CC $ac_arg"
3276  rm -f conftest.$ac_objext
3277if { (ac_try="$ac_compile"
3278case "(($ac_try" in
3279  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3280  *) ac_try_echo=$ac_try;;
3281esac
3282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3283  (eval "$ac_compile") 2>conftest.er1
3284  ac_status=$?
3285  grep -v '^ *+' conftest.er1 >conftest.err
3286  rm -f conftest.er1
3287  cat conftest.err >&5
3288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3289  (exit $ac_status); } && {
3290	 test -z "$ac_c_werror_flag" ||
3291	 test ! -s conftest.err
3292       } && test -s conftest.$ac_objext; then
3293  ac_cv_prog_cc_c89=$ac_arg
3294else
3295  echo "$as_me: failed program was:" >&5
3296sed 's/^/| /' conftest.$ac_ext >&5
3297
3298
3299fi
3300
3301rm -f core conftest.err conftest.$ac_objext
3302  test "x$ac_cv_prog_cc_c89" != "xno" && break
3303done
3304rm -f conftest.$ac_ext
3305CC=$ac_save_CC
3306
3307fi
3308# AC_CACHE_VAL
3309case "x$ac_cv_prog_cc_c89" in
3310  x)
3311    { echo "$as_me:$LINENO: result: none needed" >&5
3312echo "${ECHO_T}none needed" >&6; } ;;
3313  xno)
3314    { echo "$as_me:$LINENO: result: unsupported" >&5
3315echo "${ECHO_T}unsupported" >&6; } ;;
3316  *)
3317    CC="$CC $ac_cv_prog_cc_c89"
3318    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3319echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3320esac
3321
3322
3323ac_ext=c
3324ac_cpp='$CPP $CPPFLAGS'
3325ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3326ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3327ac_compiler_gnu=$ac_cv_c_compiler_gnu
3328DEPDIR="${am__leading_dot}deps"
3329
3330ac_config_commands="$ac_config_commands depfiles"
3331
3332
3333am_make=${MAKE-make}
3334cat > confinc << 'END'
3335am__doit:
3336	@echo done
3337.PHONY: am__doit
3338END
3339# If we don't find an include directive, just comment out the code.
3340{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3341echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3342am__include="#"
3343am__quote=
3344_am_result=none
3345# First try GNU make style include.
3346echo "include confinc" > confmf
3347# We grep out `Entering directory' and `Leaving directory'
3348# messages which can occur if `w' ends up in MAKEFLAGS.
3349# In particular we don't look at `^make:' because GNU make might
3350# be invoked under some other name (usually "gmake"), in which
3351# case it prints its new name instead of `make'.
3352if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3353   am__include=include
3354   am__quote=
3355   _am_result=GNU
3356fi
3357# Now try BSD make style include.
3358if test "$am__include" = "#"; then
3359   echo '.include "confinc"' > confmf
3360   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3361      am__include=.include
3362      am__quote="\""
3363      _am_result=BSD
3364   fi
3365fi
3366
3367
3368{ echo "$as_me:$LINENO: result: $_am_result" >&5
3369echo "${ECHO_T}$_am_result" >&6; }
3370rm -f confinc confmf
3371
3372# Check whether --enable-dependency-tracking was given.
3373if test "${enable_dependency_tracking+set}" = set; then
3374  enableval=$enable_dependency_tracking;
3375fi
3376
3377if test "x$enable_dependency_tracking" != xno; then
3378  am_depcomp="$ac_aux_dir/depcomp"
3379  AMDEPBACKSLASH='\'
3380fi
3381
3382
3383if test "x$enable_dependency_tracking" != xno; then
3384  AMDEP_TRUE=
3385  AMDEP_FALSE='#'
3386else
3387  AMDEP_TRUE='#'
3388  AMDEP_FALSE=
3389fi
3390
3391
3392
3393
3394depcc="$CC"   am_compiler_list=
3395
3396{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3397echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3398if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3399  echo $ECHO_N "(cached) $ECHO_C" >&6
3400else
3401  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3402  # We make a subdir and do the tests there.  Otherwise we can end up
3403  # making bogus files that we don't know about and never remove.  For
3404  # instance it was reported that on HP-UX the gcc test will end up
3405  # making a dummy file named `D' -- because `-MD' means `put the output
3406  # in D'.
3407  mkdir conftest.dir
3408  # Copy depcomp to subdir because otherwise we won't find it if we're
3409  # using a relative directory.
3410  cp "$am_depcomp" conftest.dir
3411  cd conftest.dir
3412  # We will build objects and dependencies in a subdirectory because
3413  # it helps to detect inapplicable dependency modes.  For instance
3414  # both Tru64's cc and ICC support -MD to output dependencies as a
3415  # side effect of compilation, but ICC will put the dependencies in
3416  # the current directory while Tru64 will put them in the object
3417  # directory.
3418  mkdir sub
3419
3420  am_cv_CC_dependencies_compiler_type=none
3421  if test "$am_compiler_list" = ""; then
3422     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3423  fi
3424  for depmode in $am_compiler_list; do
3425    # Setup a source with many dependencies, because some compilers
3426    # like to wrap large dependency lists on column 80 (with \), and
3427    # we should not choose a depcomp mode which is confused by this.
3428    #
3429    # We need to recreate these files for each test, as the compiler may
3430    # overwrite some of them when testing with obscure command lines.
3431    # This happens at least with the AIX C compiler.
3432    : > sub/conftest.c
3433    for i in 1 2 3 4 5 6; do
3434      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3435      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3436      # Solaris 8's {/usr,}/bin/sh.
3437      touch sub/conftst$i.h
3438    done
3439    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3440
3441    case $depmode in
3442    nosideeffect)
3443      # after this tag, mechanisms are not by side-effect, so they'll
3444      # only be used when explicitly requested
3445      if test "x$enable_dependency_tracking" = xyes; then
3446	continue
3447      else
3448	break
3449      fi
3450      ;;
3451    none) break ;;
3452    esac
3453    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3454    # mode.  It turns out that the SunPro C++ compiler does not properly
3455    # handle `-M -o', and we need to detect this.
3456    if depmode=$depmode \
3457       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3458       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3459       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3460         >/dev/null 2>conftest.err &&
3461       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3462       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3463       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3464      # icc doesn't choke on unknown options, it will just issue warnings
3465      # or remarks (even with -Werror).  So we grep stderr for any message
3466      # that says an option was ignored or not supported.
3467      # When given -MP, icc 7.0 and 7.1 complain thusly:
3468      #   icc: Command line warning: ignoring option '-M'; no argument required
3469      # The diagnosis changed in icc 8.0:
3470      #   icc: Command line remark: option '-MP' not supported
3471      if (grep 'ignoring option' conftest.err ||
3472          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3473        am_cv_CC_dependencies_compiler_type=$depmode
3474        break
3475      fi
3476    fi
3477  done
3478
3479  cd ..
3480  rm -rf conftest.dir
3481else
3482  am_cv_CC_dependencies_compiler_type=none
3483fi
3484
3485fi
3486{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3487echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3488CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3489
3490
3491
3492if
3493  test "x$enable_dependency_tracking" != xno \
3494  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3495  am__fastdepCC_TRUE=
3496  am__fastdepCC_FALSE='#'
3497else
3498  am__fastdepCC_TRUE='#'
3499  am__fastdepCC_FALSE=
3500fi
3501
3502
3503ac_ext=cpp
3504ac_cpp='$CXXCPP $CPPFLAGS'
3505ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3506ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3507ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3508if test -z "$CXX"; then
3509  if test -n "$CCC"; then
3510    CXX=$CCC
3511  else
3512    if test -n "$ac_tool_prefix"; then
3513  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3514  do
3515    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3516set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3517{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3518echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3519if test "${ac_cv_prog_CXX+set}" = set; then
3520  echo $ECHO_N "(cached) $ECHO_C" >&6
3521else
3522  if test -n "$CXX"; then
3523  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3524else
3525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3526for as_dir in $PATH
3527do
3528  IFS=$as_save_IFS
3529  test -z "$as_dir" && as_dir=.
3530  for ac_exec_ext in '' $ac_executable_extensions; do
3531  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3532    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3533    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3534    break 2
3535  fi
3536done
3537done
3538IFS=$as_save_IFS
3539
3540fi
3541fi
3542CXX=$ac_cv_prog_CXX
3543if test -n "$CXX"; then
3544  { echo "$as_me:$LINENO: result: $CXX" >&5
3545echo "${ECHO_T}$CXX" >&6; }
3546else
3547  { echo "$as_me:$LINENO: result: no" >&5
3548echo "${ECHO_T}no" >&6; }
3549fi
3550
3551
3552    test -n "$CXX" && break
3553  done
3554fi
3555if test -z "$CXX"; then
3556  ac_ct_CXX=$CXX
3557  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3558do
3559  # Extract the first word of "$ac_prog", so it can be a program name with args.
3560set dummy $ac_prog; ac_word=$2
3561{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3562echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3563if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3564  echo $ECHO_N "(cached) $ECHO_C" >&6
3565else
3566  if test -n "$ac_ct_CXX"; then
3567  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3568else
3569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3570for as_dir in $PATH
3571do
3572  IFS=$as_save_IFS
3573  test -z "$as_dir" && as_dir=.
3574  for ac_exec_ext in '' $ac_executable_extensions; do
3575  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3576    ac_cv_prog_ac_ct_CXX="$ac_prog"
3577    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3578    break 2
3579  fi
3580done
3581done
3582IFS=$as_save_IFS
3583
3584fi
3585fi
3586ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3587if test -n "$ac_ct_CXX"; then
3588  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3589echo "${ECHO_T}$ac_ct_CXX" >&6; }
3590else
3591  { echo "$as_me:$LINENO: result: no" >&5
3592echo "${ECHO_T}no" >&6; }
3593fi
3594
3595
3596  test -n "$ac_ct_CXX" && break
3597done
3598
3599  if test "x$ac_ct_CXX" = x; then
3600    CXX="g++"
3601  else
3602    case $cross_compiling:$ac_tool_warned in
3603yes:)
3604{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3605whose name does not start with the host triplet.  If you think this
3606configuration is useful to you, please write to autoconf@gnu.org." >&5
3607echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3608whose name does not start with the host triplet.  If you think this
3609configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3610ac_tool_warned=yes ;;
3611esac
3612    CXX=$ac_ct_CXX
3613  fi
3614fi
3615
3616  fi
3617fi
3618# Provide some information about the compiler.
3619echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3620ac_compiler=`set X $ac_compile; echo $2`
3621{ (ac_try="$ac_compiler --version >&5"
3622case "(($ac_try" in
3623  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3624  *) ac_try_echo=$ac_try;;
3625esac
3626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3627  (eval "$ac_compiler --version >&5") 2>&5
3628  ac_status=$?
3629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3630  (exit $ac_status); }
3631{ (ac_try="$ac_compiler -v >&5"
3632case "(($ac_try" in
3633  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3634  *) ac_try_echo=$ac_try;;
3635esac
3636eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3637  (eval "$ac_compiler -v >&5") 2>&5
3638  ac_status=$?
3639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3640  (exit $ac_status); }
3641{ (ac_try="$ac_compiler -V >&5"
3642case "(($ac_try" in
3643  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3644  *) ac_try_echo=$ac_try;;
3645esac
3646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3647  (eval "$ac_compiler -V >&5") 2>&5
3648  ac_status=$?
3649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3650  (exit $ac_status); }
3651
3652{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3653echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3654if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3655  echo $ECHO_N "(cached) $ECHO_C" >&6
3656else
3657  cat >conftest.$ac_ext <<_ACEOF
3658/* confdefs.h.  */
3659_ACEOF
3660cat confdefs.h >>conftest.$ac_ext
3661cat >>conftest.$ac_ext <<_ACEOF
3662/* end confdefs.h.  */
3663
3664int
3665main ()
3666{
3667#ifndef __GNUC__
3668       choke me
3669#endif
3670
3671  ;
3672  return 0;
3673}
3674_ACEOF
3675rm -f conftest.$ac_objext
3676if { (ac_try="$ac_compile"
3677case "(($ac_try" in
3678  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3679  *) ac_try_echo=$ac_try;;
3680esac
3681eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3682  (eval "$ac_compile") 2>conftest.er1
3683  ac_status=$?
3684  grep -v '^ *+' conftest.er1 >conftest.err
3685  rm -f conftest.er1
3686  cat conftest.err >&5
3687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3688  (exit $ac_status); } && {
3689	 test -z "$ac_cxx_werror_flag" ||
3690	 test ! -s conftest.err
3691       } && test -s conftest.$ac_objext; then
3692  ac_compiler_gnu=yes
3693else
3694  echo "$as_me: failed program was:" >&5
3695sed 's/^/| /' conftest.$ac_ext >&5
3696
3697	ac_compiler_gnu=no
3698fi
3699
3700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3701ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3702
3703fi
3704{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3705echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3706GXX=`test $ac_compiler_gnu = yes && echo yes`
3707ac_test_CXXFLAGS=${CXXFLAGS+set}
3708ac_save_CXXFLAGS=$CXXFLAGS
3709{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3710echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3711if test "${ac_cv_prog_cxx_g+set}" = set; then
3712  echo $ECHO_N "(cached) $ECHO_C" >&6
3713else
3714  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3715   ac_cxx_werror_flag=yes
3716   ac_cv_prog_cxx_g=no
3717   CXXFLAGS="-g"
3718   cat >conftest.$ac_ext <<_ACEOF
3719/* confdefs.h.  */
3720_ACEOF
3721cat confdefs.h >>conftest.$ac_ext
3722cat >>conftest.$ac_ext <<_ACEOF
3723/* end confdefs.h.  */
3724
3725int
3726main ()
3727{
3728
3729  ;
3730  return 0;
3731}
3732_ACEOF
3733rm -f conftest.$ac_objext
3734if { (ac_try="$ac_compile"
3735case "(($ac_try" in
3736  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3737  *) ac_try_echo=$ac_try;;
3738esac
3739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3740  (eval "$ac_compile") 2>conftest.er1
3741  ac_status=$?
3742  grep -v '^ *+' conftest.er1 >conftest.err
3743  rm -f conftest.er1
3744  cat conftest.err >&5
3745  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3746  (exit $ac_status); } && {
3747	 test -z "$ac_cxx_werror_flag" ||
3748	 test ! -s conftest.err
3749       } && test -s conftest.$ac_objext; then
3750  ac_cv_prog_cxx_g=yes
3751else
3752  echo "$as_me: failed program was:" >&5
3753sed 's/^/| /' conftest.$ac_ext >&5
3754
3755	CXXFLAGS=""
3756      cat >conftest.$ac_ext <<_ACEOF
3757/* confdefs.h.  */
3758_ACEOF
3759cat confdefs.h >>conftest.$ac_ext
3760cat >>conftest.$ac_ext <<_ACEOF
3761/* end confdefs.h.  */
3762
3763int
3764main ()
3765{
3766
3767  ;
3768  return 0;
3769}
3770_ACEOF
3771rm -f conftest.$ac_objext
3772if { (ac_try="$ac_compile"
3773case "(($ac_try" in
3774  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3775  *) ac_try_echo=$ac_try;;
3776esac
3777eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3778  (eval "$ac_compile") 2>conftest.er1
3779  ac_status=$?
3780  grep -v '^ *+' conftest.er1 >conftest.err
3781  rm -f conftest.er1
3782  cat conftest.err >&5
3783  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3784  (exit $ac_status); } && {
3785	 test -z "$ac_cxx_werror_flag" ||
3786	 test ! -s conftest.err
3787       } && test -s conftest.$ac_objext; then
3788  :
3789else
3790  echo "$as_me: failed program was:" >&5
3791sed 's/^/| /' conftest.$ac_ext >&5
3792
3793	ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3794	 CXXFLAGS="-g"
3795	 cat >conftest.$ac_ext <<_ACEOF
3796/* confdefs.h.  */
3797_ACEOF
3798cat confdefs.h >>conftest.$ac_ext
3799cat >>conftest.$ac_ext <<_ACEOF
3800/* end confdefs.h.  */
3801
3802int
3803main ()
3804{
3805
3806  ;
3807  return 0;
3808}
3809_ACEOF
3810rm -f conftest.$ac_objext
3811if { (ac_try="$ac_compile"
3812case "(($ac_try" in
3813  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3814  *) ac_try_echo=$ac_try;;
3815esac
3816eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3817  (eval "$ac_compile") 2>conftest.er1
3818  ac_status=$?
3819  grep -v '^ *+' conftest.er1 >conftest.err
3820  rm -f conftest.er1
3821  cat conftest.err >&5
3822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3823  (exit $ac_status); } && {
3824	 test -z "$ac_cxx_werror_flag" ||
3825	 test ! -s conftest.err
3826       } && test -s conftest.$ac_objext; then
3827  ac_cv_prog_cxx_g=yes
3828else
3829  echo "$as_me: failed program was:" >&5
3830sed 's/^/| /' conftest.$ac_ext >&5
3831
3832
3833fi
3834
3835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3836fi
3837
3838rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3839fi
3840
3841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3842   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3843fi
3844{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3845echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3846if test "$ac_test_CXXFLAGS" = set; then
3847  CXXFLAGS=$ac_save_CXXFLAGS
3848elif test $ac_cv_prog_cxx_g = yes; then
3849  if test "$GXX" = yes; then
3850    CXXFLAGS="-g -O2"
3851  else
3852    CXXFLAGS="-g"
3853  fi
3854else
3855  if test "$GXX" = yes; then
3856    CXXFLAGS="-O2"
3857  else
3858    CXXFLAGS=
3859  fi
3860fi
3861ac_ext=c
3862ac_cpp='$CPP $CPPFLAGS'
3863ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3864ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3865ac_compiler_gnu=$ac_cv_c_compiler_gnu
3866
3867depcc="$CXX"  am_compiler_list=
3868
3869{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3870echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3871if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3872  echo $ECHO_N "(cached) $ECHO_C" >&6
3873else
3874  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3875  # We make a subdir and do the tests there.  Otherwise we can end up
3876  # making bogus files that we don't know about and never remove.  For
3877  # instance it was reported that on HP-UX the gcc test will end up
3878  # making a dummy file named `D' -- because `-MD' means `put the output
3879  # in D'.
3880  mkdir conftest.dir
3881  # Copy depcomp to subdir because otherwise we won't find it if we're
3882  # using a relative directory.
3883  cp "$am_depcomp" conftest.dir
3884  cd conftest.dir
3885  # We will build objects and dependencies in a subdirectory because
3886  # it helps to detect inapplicable dependency modes.  For instance
3887  # both Tru64's cc and ICC support -MD to output dependencies as a
3888  # side effect of compilation, but ICC will put the dependencies in
3889  # the current directory while Tru64 will put them in the object
3890  # directory.
3891  mkdir sub
3892
3893  am_cv_CXX_dependencies_compiler_type=none
3894  if test "$am_compiler_list" = ""; then
3895     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3896  fi
3897  for depmode in $am_compiler_list; do
3898    # Setup a source with many dependencies, because some compilers
3899    # like to wrap large dependency lists on column 80 (with \), and
3900    # we should not choose a depcomp mode which is confused by this.
3901    #
3902    # We need to recreate these files for each test, as the compiler may
3903    # overwrite some of them when testing with obscure command lines.
3904    # This happens at least with the AIX C compiler.
3905    : > sub/conftest.c
3906    for i in 1 2 3 4 5 6; do
3907      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3908      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3909      # Solaris 8's {/usr,}/bin/sh.
3910      touch sub/conftst$i.h
3911    done
3912    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3913
3914    case $depmode in
3915    nosideeffect)
3916      # after this tag, mechanisms are not by side-effect, so they'll
3917      # only be used when explicitly requested
3918      if test "x$enable_dependency_tracking" = xyes; then
3919	continue
3920      else
3921	break
3922      fi
3923      ;;
3924    none) break ;;
3925    esac
3926    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3927    # mode.  It turns out that the SunPro C++ compiler does not properly
3928    # handle `-M -o', and we need to detect this.
3929    if depmode=$depmode \
3930       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3931       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3932       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3933         >/dev/null 2>conftest.err &&
3934       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3935       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3936       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3937      # icc doesn't choke on unknown options, it will just issue warnings
3938      # or remarks (even with -Werror).  So we grep stderr for any message
3939      # that says an option was ignored or not supported.
3940      # When given -MP, icc 7.0 and 7.1 complain thusly:
3941      #   icc: Command line warning: ignoring option '-M'; no argument required
3942      # The diagnosis changed in icc 8.0:
3943      #   icc: Command line remark: option '-MP' not supported
3944      if (grep 'ignoring option' conftest.err ||
3945          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3946        am_cv_CXX_dependencies_compiler_type=$depmode
3947        break
3948      fi
3949    fi
3950  done
3951
3952  cd ..
3953  rm -rf conftest.dir
3954else
3955  am_cv_CXX_dependencies_compiler_type=none
3956fi
3957
3958fi
3959{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3960echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
3961CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3962
3963
3964
3965if
3966  test "x$enable_dependency_tracking" != xno \
3967  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3968  am__fastdepCXX_TRUE=
3969  am__fastdepCXX_FALSE='#'
3970else
3971  am__fastdepCXX_TRUE='#'
3972  am__fastdepCXX_FALSE=
3973fi
3974
3975
3976# Check whether --enable-shared was given.
3977if test "${enable_shared+set}" = set; then
3978  enableval=$enable_shared; p=${PACKAGE-default}
3979    case $enableval in
3980    yes) enable_shared=yes ;;
3981    no) enable_shared=no ;;
3982    *)
3983      enable_shared=no
3984      # Look at the argument we got.  We use all the common list separators.
3985      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3986      for pkg in $enableval; do
3987	IFS="$lt_save_ifs"
3988	if test "X$pkg" = "X$p"; then
3989	  enable_shared=yes
3990	fi
3991      done
3992      IFS="$lt_save_ifs"
3993      ;;
3994    esac
3995else
3996  enable_shared=yes
3997fi
3998
3999
4000# Check whether --enable-static was given.
4001if test "${enable_static+set}" = set; then
4002  enableval=$enable_static; p=${PACKAGE-default}
4003    case $enableval in
4004    yes) enable_static=yes ;;
4005    no) enable_static=no ;;
4006    *)
4007     enable_static=no
4008      # Look at the argument we got.  We use all the common list separators.
4009      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4010      for pkg in $enableval; do
4011	IFS="$lt_save_ifs"
4012	if test "X$pkg" = "X$p"; then
4013	  enable_static=yes
4014	fi
4015      done
4016      IFS="$lt_save_ifs"
4017      ;;
4018    esac
4019else
4020  enable_static=yes
4021fi
4022
4023
4024# Check whether --enable-fast-install was given.
4025if test "${enable_fast_install+set}" = set; then
4026  enableval=$enable_fast_install; p=${PACKAGE-default}
4027    case $enableval in
4028    yes) enable_fast_install=yes ;;
4029    no) enable_fast_install=no ;;
4030    *)
4031      enable_fast_install=no
4032      # Look at the argument we got.  We use all the common list separators.
4033      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4034      for pkg in $enableval; do
4035	IFS="$lt_save_ifs"
4036	if test "X$pkg" = "X$p"; then
4037	  enable_fast_install=yes
4038	fi
4039      done
4040      IFS="$lt_save_ifs"
4041      ;;
4042    esac
4043else
4044  enable_fast_install=yes
4045fi
4046
4047
4048# Make sure we can run config.sub.
4049$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4050  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4051echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4052   { (exit 1); exit 1; }; }
4053
4054{ echo "$as_me:$LINENO: checking build system type" >&5
4055echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4056if test "${ac_cv_build+set}" = set; then
4057  echo $ECHO_N "(cached) $ECHO_C" >&6
4058else
4059  ac_build_alias=$build_alias
4060test "x$ac_build_alias" = x &&
4061  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4062test "x$ac_build_alias" = x &&
4063  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4064echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4065   { (exit 1); exit 1; }; }
4066ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4067  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4068echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4069   { (exit 1); exit 1; }; }
4070
4071fi
4072{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4073echo "${ECHO_T}$ac_cv_build" >&6; }
4074case $ac_cv_build in
4075*-*-*) ;;
4076*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4077echo "$as_me: error: invalid value of canonical build" >&2;}
4078   { (exit 1); exit 1; }; };;
4079esac
4080build=$ac_cv_build
4081ac_save_IFS=$IFS; IFS='-'
4082set x $ac_cv_build
4083shift
4084build_cpu=$1
4085build_vendor=$2
4086shift; shift
4087# Remember, the first character of IFS is used to create $*,
4088# except with old shells:
4089build_os=$*
4090IFS=$ac_save_IFS
4091case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4092
4093
4094{ echo "$as_me:$LINENO: checking host system type" >&5
4095echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4096if test "${ac_cv_host+set}" = set; then
4097  echo $ECHO_N "(cached) $ECHO_C" >&6
4098else
4099  if test "x$host_alias" = x; then
4100  ac_cv_host=$ac_cv_build
4101else
4102  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4103    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4104echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4105   { (exit 1); exit 1; }; }
4106fi
4107
4108fi
4109{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4110echo "${ECHO_T}$ac_cv_host" >&6; }
4111case $ac_cv_host in
4112*-*-*) ;;
4113*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4114echo "$as_me: error: invalid value of canonical host" >&2;}
4115   { (exit 1); exit 1; }; };;
4116esac
4117host=$ac_cv_host
4118ac_save_IFS=$IFS; IFS='-'
4119set x $ac_cv_host
4120shift
4121host_cpu=$1
4122host_vendor=$2
4123shift; shift
4124# Remember, the first character of IFS is used to create $*,
4125# except with old shells:
4126host_os=$*
4127IFS=$ac_save_IFS
4128case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4129
4130
4131{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4132echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4133if test "${lt_cv_path_SED+set}" = set; then
4134  echo $ECHO_N "(cached) $ECHO_C" >&6
4135else
4136  # Loop through the user's path and test for sed and gsed.
4137# Then use that list of sed's as ones to test for truncation.
4138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4139for as_dir in $PATH
4140do
4141  IFS=$as_save_IFS
4142  test -z "$as_dir" && as_dir=.
4143  for lt_ac_prog in sed gsed; do
4144    for ac_exec_ext in '' $ac_executable_extensions; do
4145      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4146        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4147      fi
4148    done
4149  done
4150done
4151lt_ac_max=0
4152lt_ac_count=0
4153# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4154# along with /bin/sed that truncates output.
4155for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4156  test ! -f $lt_ac_sed && continue
4157  cat /dev/null > conftest.in
4158  lt_ac_count=0
4159  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4160  # Check for GNU sed and select it if it is found.
4161  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4162    lt_cv_path_SED=$lt_ac_sed
4163    break
4164  fi
4165  while true; do
4166    cat conftest.in conftest.in >conftest.tmp
4167    mv conftest.tmp conftest.in
4168    cp conftest.in conftest.nl
4169    echo >>conftest.nl
4170    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4171    cmp -s conftest.out conftest.nl || break
4172    # 10000 chars as input seems more than enough
4173    test $lt_ac_count -gt 10 && break
4174    lt_ac_count=`expr $lt_ac_count + 1`
4175    if test $lt_ac_count -gt $lt_ac_max; then
4176      lt_ac_max=$lt_ac_count
4177      lt_cv_path_SED=$lt_ac_sed
4178    fi
4179  done
4180done
4181
4182fi
4183
4184SED=$lt_cv_path_SED
4185{ echo "$as_me:$LINENO: result: $SED" >&5
4186echo "${ECHO_T}$SED" >&6; }
4187
4188{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4189echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4190if test "${ac_cv_path_GREP+set}" = set; then
4191  echo $ECHO_N "(cached) $ECHO_C" >&6
4192else
4193  # Extract the first word of "grep ggrep" to use in msg output
4194if test -z "$GREP"; then
4195set dummy grep ggrep; ac_prog_name=$2
4196if test "${ac_cv_path_GREP+set}" = set; then
4197  echo $ECHO_N "(cached) $ECHO_C" >&6
4198else
4199  ac_path_GREP_found=false
4200# Loop through the user's path and test for each of PROGNAME-LIST
4201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4202for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4203do
4204  IFS=$as_save_IFS
4205  test -z "$as_dir" && as_dir=.
4206  for ac_prog in grep ggrep; do
4207  for ac_exec_ext in '' $ac_executable_extensions; do
4208    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4209    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4210    # Check for GNU ac_path_GREP and select it if it is found.
4211  # Check for GNU $ac_path_GREP
4212case `"$ac_path_GREP" --version 2>&1` in
4213*GNU*)
4214  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4215*)
4216  ac_count=0
4217  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4218  while :
4219  do
4220    cat "conftest.in" "conftest.in" >"conftest.tmp"
4221    mv "conftest.tmp" "conftest.in"
4222    cp "conftest.in" "conftest.nl"
4223    echo 'GREP' >> "conftest.nl"
4224    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4225    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4226    ac_count=`expr $ac_count + 1`
4227    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4228      # Best one so far, save it but keep looking for a better one
4229      ac_cv_path_GREP="$ac_path_GREP"
4230      ac_path_GREP_max=$ac_count
4231    fi
4232    # 10*(2^10) chars as input seems more than enough
4233    test $ac_count -gt 10 && break
4234  done
4235  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4236esac
4237
4238
4239    $ac_path_GREP_found && break 3
4240  done
4241done
4242
4243done
4244IFS=$as_save_IFS
4245
4246
4247fi
4248
4249GREP="$ac_cv_path_GREP"
4250if test -z "$GREP"; then
4251  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4252echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4253   { (exit 1); exit 1; }; }
4254fi
4255
4256else
4257  ac_cv_path_GREP=$GREP
4258fi
4259
4260
4261fi
4262{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4263echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4264 GREP="$ac_cv_path_GREP"
4265
4266
4267{ echo "$as_me:$LINENO: checking for egrep" >&5
4268echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4269if test "${ac_cv_path_EGREP+set}" = set; then
4270  echo $ECHO_N "(cached) $ECHO_C" >&6
4271else
4272  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4273   then ac_cv_path_EGREP="$GREP -E"
4274   else
4275     # Extract the first word of "egrep" to use in msg output
4276if test -z "$EGREP"; then
4277set dummy egrep; ac_prog_name=$2
4278if test "${ac_cv_path_EGREP+set}" = set; then
4279  echo $ECHO_N "(cached) $ECHO_C" >&6
4280else
4281  ac_path_EGREP_found=false
4282# Loop through the user's path and test for each of PROGNAME-LIST
4283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4284for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4285do
4286  IFS=$as_save_IFS
4287  test -z "$as_dir" && as_dir=.
4288  for ac_prog in egrep; do
4289  for ac_exec_ext in '' $ac_executable_extensions; do
4290    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4291    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4292    # Check for GNU ac_path_EGREP and select it if it is found.
4293  # Check for GNU $ac_path_EGREP
4294case `"$ac_path_EGREP" --version 2>&1` in
4295*GNU*)
4296  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4297*)
4298  ac_count=0
4299  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4300  while :
4301  do
4302    cat "conftest.in" "conftest.in" >"conftest.tmp"
4303    mv "conftest.tmp" "conftest.in"
4304    cp "conftest.in" "conftest.nl"
4305    echo 'EGREP' >> "conftest.nl"
4306    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4307    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4308    ac_count=`expr $ac_count + 1`
4309    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4310      # Best one so far, save it but keep looking for a better one
4311      ac_cv_path_EGREP="$ac_path_EGREP"
4312      ac_path_EGREP_max=$ac_count
4313    fi
4314    # 10*(2^10) chars as input seems more than enough
4315    test $ac_count -gt 10 && break
4316  done
4317  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4318esac
4319
4320
4321    $ac_path_EGREP_found && break 3
4322  done
4323done
4324
4325done
4326IFS=$as_save_IFS
4327
4328
4329fi
4330
4331EGREP="$ac_cv_path_EGREP"
4332if test -z "$EGREP"; then
4333  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4334echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4335   { (exit 1); exit 1; }; }
4336fi
4337
4338else
4339  ac_cv_path_EGREP=$EGREP
4340fi
4341
4342
4343   fi
4344fi
4345{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4346echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4347 EGREP="$ac_cv_path_EGREP"
4348
4349
4350
4351# Check whether --with-gnu-ld was given.
4352if test "${with_gnu_ld+set}" = set; then
4353  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4354else
4355  with_gnu_ld=no
4356fi
4357
4358ac_prog=ld
4359if test "$GCC" = yes; then
4360  # Check if gcc -print-prog-name=ld gives a path.
4361  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4362echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4363  case $host in
4364  *-*-mingw*)
4365    # gcc leaves a trailing carriage return which upsets mingw
4366    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4367  *)
4368    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4369  esac
4370  case $ac_prog in
4371    # Accept absolute paths.
4372    [\\/]* | ?:[\\/]*)
4373      re_direlt='/[^/][^/]*/\.\./'
4374      # Canonicalize the pathname of ld
4375      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4376      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4377	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4378      done
4379      test -z "$LD" && LD="$ac_prog"
4380      ;;
4381  "")
4382    # If it fails, then pretend we aren't using GCC.
4383    ac_prog=ld
4384    ;;
4385  *)
4386    # If it is relative, then search for the first ld in PATH.
4387    with_gnu_ld=unknown
4388    ;;
4389  esac
4390elif test "$with_gnu_ld" = yes; then
4391  { echo "$as_me:$LINENO: checking for GNU ld" >&5
4392echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4393else
4394  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4395echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4396fi
4397if test "${lt_cv_path_LD+set}" = set; then
4398  echo $ECHO_N "(cached) $ECHO_C" >&6
4399else
4400  if test -z "$LD"; then
4401  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4402  for ac_dir in $PATH; do
4403    IFS="$lt_save_ifs"
4404    test -z "$ac_dir" && ac_dir=.
4405    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4406      lt_cv_path_LD="$ac_dir/$ac_prog"
4407      # Check to see if the program is GNU ld.  I'd rather use --version,
4408      # but apparently some variants of GNU ld only accept -v.
4409      # Break only if it was the GNU/non-GNU ld that we prefer.
4410      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4411      *GNU* | *'with BFD'*)
4412	test "$with_gnu_ld" != no && break
4413	;;
4414      *)
4415	test "$with_gnu_ld" != yes && break
4416	;;
4417      esac
4418    fi
4419  done
4420  IFS="$lt_save_ifs"
4421else
4422  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4423fi
4424fi
4425
4426LD="$lt_cv_path_LD"
4427if test -n "$LD"; then
4428  { echo "$as_me:$LINENO: result: $LD" >&5
4429echo "${ECHO_T}$LD" >&6; }
4430else
4431  { echo "$as_me:$LINENO: result: no" >&5
4432echo "${ECHO_T}no" >&6; }
4433fi
4434test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4435echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4436   { (exit 1); exit 1; }; }
4437{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4438echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4439if test "${lt_cv_prog_gnu_ld+set}" = set; then
4440  echo $ECHO_N "(cached) $ECHO_C" >&6
4441else
4442  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4443case `$LD -v 2>&1 </dev/null` in
4444*GNU* | *'with BFD'*)
4445  lt_cv_prog_gnu_ld=yes
4446  ;;
4447*)
4448  lt_cv_prog_gnu_ld=no
4449  ;;
4450esac
4451fi
4452{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4453echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4454with_gnu_ld=$lt_cv_prog_gnu_ld
4455
4456
4457{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4458echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4459if test "${lt_cv_ld_reload_flag+set}" = set; then
4460  echo $ECHO_N "(cached) $ECHO_C" >&6
4461else
4462  lt_cv_ld_reload_flag='-r'
4463fi
4464{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4465echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4466reload_flag=$lt_cv_ld_reload_flag
4467case $reload_flag in
4468"" | " "*) ;;
4469*) reload_flag=" $reload_flag" ;;
4470esac
4471reload_cmds='$LD$reload_flag -o $output$reload_objs'
4472case $host_os in
4473  darwin*)
4474    if test "$GCC" = yes; then
4475      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4476    else
4477      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4478    fi
4479    ;;
4480esac
4481
4482{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4483echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4484if test "${lt_cv_path_NM+set}" = set; then
4485  echo $ECHO_N "(cached) $ECHO_C" >&6
4486else
4487  if test -n "$NM"; then
4488  # Let the user override the test.
4489  lt_cv_path_NM="$NM"
4490else
4491  lt_nm_to_check="${ac_tool_prefix}nm"
4492  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4493    lt_nm_to_check="$lt_nm_to_check nm"
4494  fi
4495  for lt_tmp_nm in $lt_nm_to_check; do
4496    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4497    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4498      IFS="$lt_save_ifs"
4499      test -z "$ac_dir" && ac_dir=.
4500      tmp_nm="$ac_dir/$lt_tmp_nm"
4501      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4502	# Check to see if the nm accepts a BSD-compat flag.
4503	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4504	#   nm: unknown option "B" ignored
4505	# Tru64's nm complains that /dev/null is an invalid object file
4506	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4507	*/dev/null* | *'Invalid file or object type'*)
4508	  lt_cv_path_NM="$tmp_nm -B"
4509	  break
4510	  ;;
4511	*)
4512	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4513	  */dev/null*)
4514	    lt_cv_path_NM="$tmp_nm -p"
4515	    break
4516	    ;;
4517	  *)
4518	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4519	    continue # so that we can try to find one that supports BSD flags
4520	    ;;
4521	  esac
4522	  ;;
4523	esac
4524      fi
4525    done
4526    IFS="$lt_save_ifs"
4527  done
4528  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4529fi
4530fi
4531{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4532echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4533NM="$lt_cv_path_NM"
4534
4535{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
4536echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4537LN_S=$as_ln_s
4538if test "$LN_S" = "ln -s"; then
4539  { echo "$as_me:$LINENO: result: yes" >&5
4540echo "${ECHO_T}yes" >&6; }
4541else
4542  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4543echo "${ECHO_T}no, using $LN_S" >&6; }
4544fi
4545
4546{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4547echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4548if test "${lt_cv_deplibs_check_method+set}" = set; then
4549  echo $ECHO_N "(cached) $ECHO_C" >&6
4550else
4551  lt_cv_file_magic_cmd='$MAGIC_CMD'
4552lt_cv_file_magic_test_file=
4553lt_cv_deplibs_check_method='unknown'
4554# Need to set the preceding variable on all platforms that support
4555# interlibrary dependencies.
4556# 'none' -- dependencies not supported.
4557# `unknown' -- same as none, but documents that we really don't know.
4558# 'pass_all' -- all dependencies passed with no checks.
4559# 'test_compile' -- check by making test program.
4560# 'file_magic [[regex]]' -- check by looking for files in library path
4561# which responds to the $file_magic_cmd with a given extended regex.
4562# If you have `file' or equivalent on your system and you're not sure
4563# whether `pass_all' will *always* work, you probably want this one.
4564
4565case $host_os in
4566aix4* | aix5*)
4567  lt_cv_deplibs_check_method=pass_all
4568  ;;
4569
4570beos*)
4571  lt_cv_deplibs_check_method=pass_all
4572  ;;
4573
4574bsdi[45]*)
4575  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4576  lt_cv_file_magic_cmd='/usr/bin/file -L'
4577  lt_cv_file_magic_test_file=/shlib/libc.so
4578  ;;
4579
4580cygwin*)
4581  # func_win32_libid is a shell function defined in ltmain.sh
4582  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4583  lt_cv_file_magic_cmd='func_win32_libid'
4584  ;;
4585
4586mingw* | pw32*)
4587  # Base MSYS/MinGW do not provide the 'file' command needed by
4588  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4589  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4590  lt_cv_file_magic_cmd='$OBJDUMP -f'
4591  ;;
4592
4593darwin* | rhapsody*)
4594  lt_cv_deplibs_check_method=pass_all
4595  ;;
4596
4597freebsd* | dragonfly*)
4598  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4599    case $host_cpu in
4600    i*86 )
4601      # Not sure whether the presence of OpenBSD here was a mistake.
4602      # Let's accept both of them until this is cleared up.
4603      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4604      lt_cv_file_magic_cmd=/usr/bin/file
4605      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4606      ;;
4607    esac
4608  else
4609    lt_cv_deplibs_check_method=pass_all
4610  fi
4611  ;;
4612
4613gnu*)
4614  lt_cv_deplibs_check_method=pass_all
4615  ;;
4616
4617hpux10.20* | hpux11*)
4618  lt_cv_file_magic_cmd=/usr/bin/file
4619  case $host_cpu in
4620  ia64*)
4621    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4622    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4623    ;;
4624  hppa*64*)
4625    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]'
4626    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4627    ;;
4628  *)
4629    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4630    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4631    ;;
4632  esac
4633  ;;
4634
4635interix3*)
4636  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4637  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4638  ;;
4639
4640irix5* | irix6* | nonstopux*)
4641  case $LD in
4642  *-32|*"-32 ") libmagic=32-bit;;
4643  *-n32|*"-n32 ") libmagic=N32;;
4644  *-64|*"-64 ") libmagic=64-bit;;
4645  *) libmagic=never-match;;
4646  esac
4647  lt_cv_deplibs_check_method=pass_all
4648  ;;
4649
4650# This must be Linux ELF.
4651linux* | k*bsd*-gnu)
4652  lt_cv_deplibs_check_method=pass_all
4653  ;;
4654
4655netbsd* | netbsdelf*-gnu)
4656  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4657    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4658  else
4659    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4660  fi
4661  ;;
4662
4663newos6*)
4664  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4665  lt_cv_file_magic_cmd=/usr/bin/file
4666  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4667  ;;
4668
4669nto-qnx*)
4670  lt_cv_deplibs_check_method=unknown
4671  ;;
4672
4673openbsd*)
4674  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4675    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4676  else
4677    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4678  fi
4679  ;;
4680
4681osf3* | osf4* | osf5*)
4682  lt_cv_deplibs_check_method=pass_all
4683  ;;
4684
4685solaris*)
4686  lt_cv_deplibs_check_method=pass_all
4687  ;;
4688
4689sysv4 | sysv4.3*)
4690  case $host_vendor in
4691  motorola)
4692    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]'
4693    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4694    ;;
4695  ncr)
4696    lt_cv_deplibs_check_method=pass_all
4697    ;;
4698  sequent)
4699    lt_cv_file_magic_cmd='/bin/file'
4700    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4701    ;;
4702  sni)
4703    lt_cv_file_magic_cmd='/bin/file'
4704    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4705    lt_cv_file_magic_test_file=/lib/libc.so
4706    ;;
4707  siemens)
4708    lt_cv_deplibs_check_method=pass_all
4709    ;;
4710  pc)
4711    lt_cv_deplibs_check_method=pass_all
4712    ;;
4713  esac
4714  ;;
4715
4716sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4717  lt_cv_deplibs_check_method=pass_all
4718  ;;
4719esac
4720
4721fi
4722{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4723echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4724file_magic_cmd=$lt_cv_file_magic_cmd
4725deplibs_check_method=$lt_cv_deplibs_check_method
4726test -z "$deplibs_check_method" && deplibs_check_method=unknown
4727
4728
4729
4730
4731# If no C compiler was specified, use CC.
4732LTCC=${LTCC-"$CC"}
4733
4734# If no C compiler flags were specified, use CFLAGS.
4735LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4736
4737# Allow CC to be a program name with arguments.
4738compiler=$CC
4739
4740
4741# Check whether --enable-libtool-lock was given.
4742if test "${enable_libtool_lock+set}" = set; then
4743  enableval=$enable_libtool_lock;
4744fi
4745
4746test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4747
4748# Some flags need to be propagated to the compiler or linker for good
4749# libtool support.
4750case $host in
4751ia64-*-hpux*)
4752  # Find out which ABI we are using.
4753  echo 'int i;' > conftest.$ac_ext
4754  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4755  (eval $ac_compile) 2>&5
4756  ac_status=$?
4757  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758  (exit $ac_status); }; then
4759    case `/usr/bin/file conftest.$ac_objext` in
4760    *ELF-32*)
4761      HPUX_IA64_MODE="32"
4762      ;;
4763    *ELF-64*)
4764      HPUX_IA64_MODE="64"
4765      ;;
4766    esac
4767  fi
4768  rm -rf conftest*
4769  ;;
4770*-*-irix6*)
4771  # Find out which ABI we are using.
4772  echo '#line 4772 "configure"' > conftest.$ac_ext
4773  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4774  (eval $ac_compile) 2>&5
4775  ac_status=$?
4776  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4777  (exit $ac_status); }; then
4778   if test "$lt_cv_prog_gnu_ld" = yes; then
4779    case `/usr/bin/file conftest.$ac_objext` in
4780    *32-bit*)
4781      LD="${LD-ld} -melf32bsmip"
4782      ;;
4783    *N32*)
4784      LD="${LD-ld} -melf32bmipn32"
4785      ;;
4786    *64-bit*)
4787      LD="${LD-ld} -melf64bmip"
4788      ;;
4789    esac
4790   else
4791    case `/usr/bin/file conftest.$ac_objext` in
4792    *32-bit*)
4793      LD="${LD-ld} -32"
4794      ;;
4795    *N32*)
4796      LD="${LD-ld} -n32"
4797      ;;
4798    *64-bit*)
4799      LD="${LD-ld} -64"
4800      ;;
4801    esac
4802   fi
4803  fi
4804  rm -rf conftest*
4805  ;;
4806
4807x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4808  # Find out which ABI we are using.
4809  echo 'int i;' > conftest.$ac_ext
4810  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4811  (eval $ac_compile) 2>&5
4812  ac_status=$?
4813  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4814  (exit $ac_status); }; then
4815    case `/usr/bin/file conftest.o` in
4816    *32-bit*)
4817      case $host in
4818        x86_64-*linux*)
4819          LD="${LD-ld} -m elf_i386"
4820          ;;
4821        ppc64-*linux*|powerpc64-*linux*)
4822          LD="${LD-ld} -m elf32ppclinux"
4823          ;;
4824        s390x-*linux*)
4825          LD="${LD-ld} -m elf_s390"
4826          ;;
4827        sparc64-*linux*)
4828          LD="${LD-ld} -m elf32_sparc"
4829          ;;
4830      esac
4831      ;;
4832    *64-bit*)
4833      case $host in
4834        x86_64-*linux*)
4835          LD="${LD-ld} -m elf_x86_64"
4836          ;;
4837        ppc*-*linux*|powerpc*-*linux*)
4838          LD="${LD-ld} -m elf64ppc"
4839          ;;
4840        s390*-*linux*)
4841          LD="${LD-ld} -m elf64_s390"
4842          ;;
4843        sparc*-*linux*)
4844          LD="${LD-ld} -m elf64_sparc"
4845          ;;
4846      esac
4847      ;;
4848    esac
4849  fi
4850  rm -rf conftest*
4851  ;;
4852
4853*-*-sco3.2v5*)
4854  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4855  SAVE_CFLAGS="$CFLAGS"
4856  CFLAGS="$CFLAGS -belf"
4857  { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4858echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4859if test "${lt_cv_cc_needs_belf+set}" = set; then
4860  echo $ECHO_N "(cached) $ECHO_C" >&6
4861else
4862  ac_ext=c
4863ac_cpp='$CPP $CPPFLAGS'
4864ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4865ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4866ac_compiler_gnu=$ac_cv_c_compiler_gnu
4867
4868     cat >conftest.$ac_ext <<_ACEOF
4869/* confdefs.h.  */
4870_ACEOF
4871cat confdefs.h >>conftest.$ac_ext
4872cat >>conftest.$ac_ext <<_ACEOF
4873/* end confdefs.h.  */
4874
4875int
4876main ()
4877{
4878
4879  ;
4880  return 0;
4881}
4882_ACEOF
4883rm -f conftest.$ac_objext conftest$ac_exeext
4884if { (ac_try="$ac_link"
4885case "(($ac_try" in
4886  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4887  *) ac_try_echo=$ac_try;;
4888esac
4889eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4890  (eval "$ac_link") 2>conftest.er1
4891  ac_status=$?
4892  grep -v '^ *+' conftest.er1 >conftest.err
4893  rm -f conftest.er1
4894  cat conftest.err >&5
4895  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896  (exit $ac_status); } && {
4897	 test -z "$ac_c_werror_flag" ||
4898	 test ! -s conftest.err
4899       } && test -s conftest$ac_exeext &&
4900       $as_test_x conftest$ac_exeext; then
4901  lt_cv_cc_needs_belf=yes
4902else
4903  echo "$as_me: failed program was:" >&5
4904sed 's/^/| /' conftest.$ac_ext >&5
4905
4906	lt_cv_cc_needs_belf=no
4907fi
4908
4909rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4910      conftest$ac_exeext conftest.$ac_ext
4911     ac_ext=c
4912ac_cpp='$CPP $CPPFLAGS'
4913ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4914ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4915ac_compiler_gnu=$ac_cv_c_compiler_gnu
4916
4917fi
4918{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4919echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4920  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4921    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4922    CFLAGS="$SAVE_CFLAGS"
4923  fi
4924  ;;
4925sparc*-*solaris*)
4926  # Find out which ABI we are using.
4927  echo 'int i;' > conftest.$ac_ext
4928  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4929  (eval $ac_compile) 2>&5
4930  ac_status=$?
4931  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4932  (exit $ac_status); }; then
4933    case `/usr/bin/file conftest.o` in
4934    *64-bit*)
4935      case $lt_cv_prog_gnu_ld in
4936      yes*) LD="${LD-ld} -m elf64_sparc" ;;
4937      *)    LD="${LD-ld} -64" ;;
4938      esac
4939      ;;
4940    esac
4941  fi
4942  rm -rf conftest*
4943  ;;
4944
4945
4946esac
4947
4948need_locks="$enable_libtool_lock"
4949
4950
4951ac_ext=c
4952ac_cpp='$CPP $CPPFLAGS'
4953ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4954ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4955ac_compiler_gnu=$ac_cv_c_compiler_gnu
4956{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4957echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4958# On Suns, sometimes $CPP names a directory.
4959if test -n "$CPP" && test -d "$CPP"; then
4960  CPP=
4961fi
4962if test -z "$CPP"; then
4963  if test "${ac_cv_prog_CPP+set}" = set; then
4964  echo $ECHO_N "(cached) $ECHO_C" >&6
4965else
4966      # Double quotes because CPP needs to be expanded
4967    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4968    do
4969      ac_preproc_ok=false
4970for ac_c_preproc_warn_flag in '' yes
4971do
4972  # Use a header file that comes with gcc, so configuring glibc
4973  # with a fresh cross-compiler works.
4974  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4975  # <limits.h> exists even on freestanding compilers.
4976  # On the NeXT, cc -E runs the code through the compiler's parser,
4977  # not just through cpp. "Syntax error" is here to catch this case.
4978  cat >conftest.$ac_ext <<_ACEOF
4979/* confdefs.h.  */
4980_ACEOF
4981cat confdefs.h >>conftest.$ac_ext
4982cat >>conftest.$ac_ext <<_ACEOF
4983/* end confdefs.h.  */
4984#ifdef __STDC__
4985# include <limits.h>
4986#else
4987# include <assert.h>
4988#endif
4989		     Syntax error
4990_ACEOF
4991if { (ac_try="$ac_cpp conftest.$ac_ext"
4992case "(($ac_try" in
4993  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4994  *) ac_try_echo=$ac_try;;
4995esac
4996eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4997  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4998  ac_status=$?
4999  grep -v '^ *+' conftest.er1 >conftest.err
5000  rm -f conftest.er1
5001  cat conftest.err >&5
5002  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5003  (exit $ac_status); } >/dev/null && {
5004	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5005	 test ! -s conftest.err
5006       }; then
5007  :
5008else
5009  echo "$as_me: failed program was:" >&5
5010sed 's/^/| /' conftest.$ac_ext >&5
5011
5012  # Broken: fails on valid input.
5013continue
5014fi
5015
5016rm -f conftest.err conftest.$ac_ext
5017
5018  # OK, works on sane cases.  Now check whether nonexistent headers
5019  # can be detected and how.
5020  cat >conftest.$ac_ext <<_ACEOF
5021/* confdefs.h.  */
5022_ACEOF
5023cat confdefs.h >>conftest.$ac_ext
5024cat >>conftest.$ac_ext <<_ACEOF
5025/* end confdefs.h.  */
5026#include <ac_nonexistent.h>
5027_ACEOF
5028if { (ac_try="$ac_cpp conftest.$ac_ext"
5029case "(($ac_try" in
5030  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5031  *) ac_try_echo=$ac_try;;
5032esac
5033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5034  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5035  ac_status=$?
5036  grep -v '^ *+' conftest.er1 >conftest.err
5037  rm -f conftest.er1
5038  cat conftest.err >&5
5039  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5040  (exit $ac_status); } >/dev/null && {
5041	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5042	 test ! -s conftest.err
5043       }; then
5044  # Broken: success on invalid input.
5045continue
5046else
5047  echo "$as_me: failed program was:" >&5
5048sed 's/^/| /' conftest.$ac_ext >&5
5049
5050  # Passes both tests.
5051ac_preproc_ok=:
5052break
5053fi
5054
5055rm -f conftest.err conftest.$ac_ext
5056
5057done
5058# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5059rm -f conftest.err conftest.$ac_ext
5060if $ac_preproc_ok; then
5061  break
5062fi
5063
5064    done
5065    ac_cv_prog_CPP=$CPP
5066
5067fi
5068  CPP=$ac_cv_prog_CPP
5069else
5070  ac_cv_prog_CPP=$CPP
5071fi
5072{ echo "$as_me:$LINENO: result: $CPP" >&5
5073echo "${ECHO_T}$CPP" >&6; }
5074ac_preproc_ok=false
5075for ac_c_preproc_warn_flag in '' yes
5076do
5077  # Use a header file that comes with gcc, so configuring glibc
5078  # with a fresh cross-compiler works.
5079  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5080  # <limits.h> exists even on freestanding compilers.
5081  # On the NeXT, cc -E runs the code through the compiler's parser,
5082  # not just through cpp. "Syntax error" is here to catch this case.
5083  cat >conftest.$ac_ext <<_ACEOF
5084/* confdefs.h.  */
5085_ACEOF
5086cat confdefs.h >>conftest.$ac_ext
5087cat >>conftest.$ac_ext <<_ACEOF
5088/* end confdefs.h.  */
5089#ifdef __STDC__
5090# include <limits.h>
5091#else
5092# include <assert.h>
5093#endif
5094		     Syntax error
5095_ACEOF
5096if { (ac_try="$ac_cpp conftest.$ac_ext"
5097case "(($ac_try" in
5098  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5099  *) ac_try_echo=$ac_try;;
5100esac
5101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5102  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5103  ac_status=$?
5104  grep -v '^ *+' conftest.er1 >conftest.err
5105  rm -f conftest.er1
5106  cat conftest.err >&5
5107  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108  (exit $ac_status); } >/dev/null && {
5109	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5110	 test ! -s conftest.err
5111       }; then
5112  :
5113else
5114  echo "$as_me: failed program was:" >&5
5115sed 's/^/| /' conftest.$ac_ext >&5
5116
5117  # Broken: fails on valid input.
5118continue
5119fi
5120
5121rm -f conftest.err conftest.$ac_ext
5122
5123  # OK, works on sane cases.  Now check whether nonexistent headers
5124  # can be detected and how.
5125  cat >conftest.$ac_ext <<_ACEOF
5126/* confdefs.h.  */
5127_ACEOF
5128cat confdefs.h >>conftest.$ac_ext
5129cat >>conftest.$ac_ext <<_ACEOF
5130/* end confdefs.h.  */
5131#include <ac_nonexistent.h>
5132_ACEOF
5133if { (ac_try="$ac_cpp conftest.$ac_ext"
5134case "(($ac_try" in
5135  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5136  *) ac_try_echo=$ac_try;;
5137esac
5138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5139  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5140  ac_status=$?
5141  grep -v '^ *+' conftest.er1 >conftest.err
5142  rm -f conftest.er1
5143  cat conftest.err >&5
5144  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5145  (exit $ac_status); } >/dev/null && {
5146	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5147	 test ! -s conftest.err
5148       }; then
5149  # Broken: success on invalid input.
5150continue
5151else
5152  echo "$as_me: failed program was:" >&5
5153sed 's/^/| /' conftest.$ac_ext >&5
5154
5155  # Passes both tests.
5156ac_preproc_ok=:
5157break
5158fi
5159
5160rm -f conftest.err conftest.$ac_ext
5161
5162done
5163# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5164rm -f conftest.err conftest.$ac_ext
5165if $ac_preproc_ok; then
5166  :
5167else
5168  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5169See \`config.log' for more details." >&5
5170echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5171See \`config.log' for more details." >&2;}
5172   { (exit 1); exit 1; }; }
5173fi
5174
5175ac_ext=c
5176ac_cpp='$CPP $CPPFLAGS'
5177ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5178ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5179ac_compiler_gnu=$ac_cv_c_compiler_gnu
5180
5181
5182{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5183echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5184if test "${ac_cv_header_stdc+set}" = set; then
5185  echo $ECHO_N "(cached) $ECHO_C" >&6
5186else
5187  cat >conftest.$ac_ext <<_ACEOF
5188/* confdefs.h.  */
5189_ACEOF
5190cat confdefs.h >>conftest.$ac_ext
5191cat >>conftest.$ac_ext <<_ACEOF
5192/* end confdefs.h.  */
5193#include <stdlib.h>
5194#include <stdarg.h>
5195#include <string.h>
5196#include <float.h>
5197
5198int
5199main ()
5200{
5201
5202  ;
5203  return 0;
5204}
5205_ACEOF
5206rm -f conftest.$ac_objext
5207if { (ac_try="$ac_compile"
5208case "(($ac_try" in
5209  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5210  *) ac_try_echo=$ac_try;;
5211esac
5212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5213  (eval "$ac_compile") 2>conftest.er1
5214  ac_status=$?
5215  grep -v '^ *+' conftest.er1 >conftest.err
5216  rm -f conftest.er1
5217  cat conftest.err >&5
5218  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219  (exit $ac_status); } && {
5220	 test -z "$ac_c_werror_flag" ||
5221	 test ! -s conftest.err
5222       } && test -s conftest.$ac_objext; then
5223  ac_cv_header_stdc=yes
5224else
5225  echo "$as_me: failed program was:" >&5
5226sed 's/^/| /' conftest.$ac_ext >&5
5227
5228	ac_cv_header_stdc=no
5229fi
5230
5231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5232
5233if test $ac_cv_header_stdc = yes; then
5234  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5235  cat >conftest.$ac_ext <<_ACEOF
5236/* confdefs.h.  */
5237_ACEOF
5238cat confdefs.h >>conftest.$ac_ext
5239cat >>conftest.$ac_ext <<_ACEOF
5240/* end confdefs.h.  */
5241#include <string.h>
5242
5243_ACEOF
5244if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5245  $EGREP "memchr" >/dev/null 2>&1; then
5246  :
5247else
5248  ac_cv_header_stdc=no
5249fi
5250rm -f conftest*
5251
5252fi
5253
5254if test $ac_cv_header_stdc = yes; then
5255  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5256  cat >conftest.$ac_ext <<_ACEOF
5257/* confdefs.h.  */
5258_ACEOF
5259cat confdefs.h >>conftest.$ac_ext
5260cat >>conftest.$ac_ext <<_ACEOF
5261/* end confdefs.h.  */
5262#include <stdlib.h>
5263
5264_ACEOF
5265if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5266  $EGREP "free" >/dev/null 2>&1; then
5267  :
5268else
5269  ac_cv_header_stdc=no
5270fi
5271rm -f conftest*
5272
5273fi
5274
5275if test $ac_cv_header_stdc = yes; then
5276  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5277  if test "$cross_compiling" = yes; then
5278  :
5279else
5280  cat >conftest.$ac_ext <<_ACEOF
5281/* confdefs.h.  */
5282_ACEOF
5283cat confdefs.h >>conftest.$ac_ext
5284cat >>conftest.$ac_ext <<_ACEOF
5285/* end confdefs.h.  */
5286#include <ctype.h>
5287#include <stdlib.h>
5288#if ((' ' & 0x0FF) == 0x020)
5289# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5290# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5291#else
5292# define ISLOWER(c) \
5293		   (('a' <= (c) && (c) <= 'i') \
5294		     || ('j' <= (c) && (c) <= 'r') \
5295		     || ('s' <= (c) && (c) <= 'z'))
5296# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5297#endif
5298
5299#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5300int
5301main ()
5302{
5303  int i;
5304  for (i = 0; i < 256; i++)
5305    if (XOR (islower (i), ISLOWER (i))
5306	|| toupper (i) != TOUPPER (i))
5307      return 2;
5308  return 0;
5309}
5310_ACEOF
5311rm -f conftest$ac_exeext
5312if { (ac_try="$ac_link"
5313case "(($ac_try" in
5314  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5315  *) ac_try_echo=$ac_try;;
5316esac
5317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5318  (eval "$ac_link") 2>&5
5319  ac_status=$?
5320  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5321  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5322  { (case "(($ac_try" in
5323  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5324  *) ac_try_echo=$ac_try;;
5325esac
5326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5327  (eval "$ac_try") 2>&5
5328  ac_status=$?
5329  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5330  (exit $ac_status); }; }; then
5331  :
5332else
5333  echo "$as_me: program exited with status $ac_status" >&5
5334echo "$as_me: failed program was:" >&5
5335sed 's/^/| /' conftest.$ac_ext >&5
5336
5337( exit $ac_status )
5338ac_cv_header_stdc=no
5339fi
5340rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5341fi
5342
5343
5344fi
5345fi
5346{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5347echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5348if test $ac_cv_header_stdc = yes; then
5349
5350cat >>confdefs.h <<\_ACEOF
5351#define STDC_HEADERS 1
5352_ACEOF
5353
5354fi
5355
5356# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5367		  inttypes.h stdint.h unistd.h
5368do
5369as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5370{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5371echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5372if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5373  echo $ECHO_N "(cached) $ECHO_C" >&6
5374else
5375  cat >conftest.$ac_ext <<_ACEOF
5376/* confdefs.h.  */
5377_ACEOF
5378cat confdefs.h >>conftest.$ac_ext
5379cat >>conftest.$ac_ext <<_ACEOF
5380/* end confdefs.h.  */
5381$ac_includes_default
5382
5383#include <$ac_header>
5384_ACEOF
5385rm -f conftest.$ac_objext
5386if { (ac_try="$ac_compile"
5387case "(($ac_try" in
5388  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5389  *) ac_try_echo=$ac_try;;
5390esac
5391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5392  (eval "$ac_compile") 2>conftest.er1
5393  ac_status=$?
5394  grep -v '^ *+' conftest.er1 >conftest.err
5395  rm -f conftest.er1
5396  cat conftest.err >&5
5397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5398  (exit $ac_status); } && {
5399	 test -z "$ac_c_werror_flag" ||
5400	 test ! -s conftest.err
5401       } && test -s conftest.$ac_objext; then
5402  eval "$as_ac_Header=yes"
5403else
5404  echo "$as_me: failed program was:" >&5
5405sed 's/^/| /' conftest.$ac_ext >&5
5406
5407	eval "$as_ac_Header=no"
5408fi
5409
5410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5411fi
5412ac_res=`eval echo '${'$as_ac_Header'}'`
5413	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5414echo "${ECHO_T}$ac_res" >&6; }
5415if test `eval echo '${'$as_ac_Header'}'` = yes; then
5416  cat >>confdefs.h <<_ACEOF
5417#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5418_ACEOF
5419
5420fi
5421
5422done
5423
5424
5425
5426for ac_header in dlfcn.h
5427do
5428as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5429if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5430  { echo "$as_me:$LINENO: checking for $ac_header" >&5
5431echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5432if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5433  echo $ECHO_N "(cached) $ECHO_C" >&6
5434fi
5435ac_res=`eval echo '${'$as_ac_Header'}'`
5436	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5437echo "${ECHO_T}$ac_res" >&6; }
5438else
5439  # Is the header compilable?
5440{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5441echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5442cat >conftest.$ac_ext <<_ACEOF
5443/* confdefs.h.  */
5444_ACEOF
5445cat confdefs.h >>conftest.$ac_ext
5446cat >>conftest.$ac_ext <<_ACEOF
5447/* end confdefs.h.  */
5448$ac_includes_default
5449#include <$ac_header>
5450_ACEOF
5451rm -f conftest.$ac_objext
5452if { (ac_try="$ac_compile"
5453case "(($ac_try" in
5454  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5455  *) ac_try_echo=$ac_try;;
5456esac
5457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5458  (eval "$ac_compile") 2>conftest.er1
5459  ac_status=$?
5460  grep -v '^ *+' conftest.er1 >conftest.err
5461  rm -f conftest.er1
5462  cat conftest.err >&5
5463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5464  (exit $ac_status); } && {
5465	 test -z "$ac_c_werror_flag" ||
5466	 test ! -s conftest.err
5467       } && test -s conftest.$ac_objext; then
5468  ac_header_compiler=yes
5469else
5470  echo "$as_me: failed program was:" >&5
5471sed 's/^/| /' conftest.$ac_ext >&5
5472
5473	ac_header_compiler=no
5474fi
5475
5476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5477{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5478echo "${ECHO_T}$ac_header_compiler" >&6; }
5479
5480# Is the header present?
5481{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5482echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5483cat >conftest.$ac_ext <<_ACEOF
5484/* confdefs.h.  */
5485_ACEOF
5486cat confdefs.h >>conftest.$ac_ext
5487cat >>conftest.$ac_ext <<_ACEOF
5488/* end confdefs.h.  */
5489#include <$ac_header>
5490_ACEOF
5491if { (ac_try="$ac_cpp conftest.$ac_ext"
5492case "(($ac_try" in
5493  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5494  *) ac_try_echo=$ac_try;;
5495esac
5496eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5497  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5498  ac_status=$?
5499  grep -v '^ *+' conftest.er1 >conftest.err
5500  rm -f conftest.er1
5501  cat conftest.err >&5
5502  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5503  (exit $ac_status); } >/dev/null && {
5504	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5505	 test ! -s conftest.err
5506       }; then
5507  ac_header_preproc=yes
5508else
5509  echo "$as_me: failed program was:" >&5
5510sed 's/^/| /' conftest.$ac_ext >&5
5511
5512  ac_header_preproc=no
5513fi
5514
5515rm -f conftest.err conftest.$ac_ext
5516{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5517echo "${ECHO_T}$ac_header_preproc" >&6; }
5518
5519# So?  What about this header?
5520case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5521  yes:no: )
5522    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5523echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5524    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5525echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5526    ac_header_preproc=yes
5527    ;;
5528  no:yes:* )
5529    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5530echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5531    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5532echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5533    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5534echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5535    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5536echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5537    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5538echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5539    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5540echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5541
5542    ;;
5543esac
5544{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5545echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5546if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5547  echo $ECHO_N "(cached) $ECHO_C" >&6
5548else
5549  eval "$as_ac_Header=\$ac_header_preproc"
5550fi
5551ac_res=`eval echo '${'$as_ac_Header'}'`
5552	       { echo "$as_me:$LINENO: result: $ac_res" >&5
5553echo "${ECHO_T}$ac_res" >&6; }
5554
5555fi
5556if test `eval echo '${'$as_ac_Header'}'` = yes; then
5557  cat >>confdefs.h <<_ACEOF
5558#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5559_ACEOF
5560
5561fi
5562
5563done
5564
5565
5566
5567if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5568    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5569    (test "X$CXX" != "Xg++"))) ; then
5570  ac_ext=cpp
5571ac_cpp='$CXXCPP $CPPFLAGS'
5572ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5573ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5574ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5575{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5576echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5577if test -z "$CXXCPP"; then
5578  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5579  echo $ECHO_N "(cached) $ECHO_C" >&6
5580else
5581      # Double quotes because CXXCPP needs to be expanded
5582    for CXXCPP in "$CXX -E" "/lib/cpp"
5583    do
5584      ac_preproc_ok=false
5585for ac_cxx_preproc_warn_flag in '' yes
5586do
5587  # Use a header file that comes with gcc, so configuring glibc
5588  # with a fresh cross-compiler works.
5589  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5590  # <limits.h> exists even on freestanding compilers.
5591  # On the NeXT, cc -E runs the code through the compiler's parser,
5592  # not just through cpp. "Syntax error" is here to catch this case.
5593  cat >conftest.$ac_ext <<_ACEOF
5594/* confdefs.h.  */
5595_ACEOF
5596cat confdefs.h >>conftest.$ac_ext
5597cat >>conftest.$ac_ext <<_ACEOF
5598/* end confdefs.h.  */
5599#ifdef __STDC__
5600# include <limits.h>
5601#else
5602# include <assert.h>
5603#endif
5604		     Syntax error
5605_ACEOF
5606if { (ac_try="$ac_cpp conftest.$ac_ext"
5607case "(($ac_try" in
5608  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5609  *) ac_try_echo=$ac_try;;
5610esac
5611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5612  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5613  ac_status=$?
5614  grep -v '^ *+' conftest.er1 >conftest.err
5615  rm -f conftest.er1
5616  cat conftest.err >&5
5617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5618  (exit $ac_status); } >/dev/null && {
5619	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5620	 test ! -s conftest.err
5621       }; then
5622  :
5623else
5624  echo "$as_me: failed program was:" >&5
5625sed 's/^/| /' conftest.$ac_ext >&5
5626
5627  # Broken: fails on valid input.
5628continue
5629fi
5630
5631rm -f conftest.err conftest.$ac_ext
5632
5633  # OK, works on sane cases.  Now check whether nonexistent headers
5634  # can be detected and how.
5635  cat >conftest.$ac_ext <<_ACEOF
5636/* confdefs.h.  */
5637_ACEOF
5638cat confdefs.h >>conftest.$ac_ext
5639cat >>conftest.$ac_ext <<_ACEOF
5640/* end confdefs.h.  */
5641#include <ac_nonexistent.h>
5642_ACEOF
5643if { (ac_try="$ac_cpp conftest.$ac_ext"
5644case "(($ac_try" in
5645  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5646  *) ac_try_echo=$ac_try;;
5647esac
5648eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5649  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5650  ac_status=$?
5651  grep -v '^ *+' conftest.er1 >conftest.err
5652  rm -f conftest.er1
5653  cat conftest.err >&5
5654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5655  (exit $ac_status); } >/dev/null && {
5656	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5657	 test ! -s conftest.err
5658       }; then
5659  # Broken: success on invalid input.
5660continue
5661else
5662  echo "$as_me: failed program was:" >&5
5663sed 's/^/| /' conftest.$ac_ext >&5
5664
5665  # Passes both tests.
5666ac_preproc_ok=:
5667break
5668fi
5669
5670rm -f conftest.err conftest.$ac_ext
5671
5672done
5673# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5674rm -f conftest.err conftest.$ac_ext
5675if $ac_preproc_ok; then
5676  break
5677fi
5678
5679    done
5680    ac_cv_prog_CXXCPP=$CXXCPP
5681
5682fi
5683  CXXCPP=$ac_cv_prog_CXXCPP
5684else
5685  ac_cv_prog_CXXCPP=$CXXCPP
5686fi
5687{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
5688echo "${ECHO_T}$CXXCPP" >&6; }
5689ac_preproc_ok=false
5690for ac_cxx_preproc_warn_flag in '' yes
5691do
5692  # Use a header file that comes with gcc, so configuring glibc
5693  # with a fresh cross-compiler works.
5694  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5695  # <limits.h> exists even on freestanding compilers.
5696  # On the NeXT, cc -E runs the code through the compiler's parser,
5697  # not just through cpp. "Syntax error" is here to catch this case.
5698  cat >conftest.$ac_ext <<_ACEOF
5699/* confdefs.h.  */
5700_ACEOF
5701cat confdefs.h >>conftest.$ac_ext
5702cat >>conftest.$ac_ext <<_ACEOF
5703/* end confdefs.h.  */
5704#ifdef __STDC__
5705# include <limits.h>
5706#else
5707# include <assert.h>
5708#endif
5709		     Syntax error
5710_ACEOF
5711if { (ac_try="$ac_cpp conftest.$ac_ext"
5712case "(($ac_try" in
5713  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5714  *) ac_try_echo=$ac_try;;
5715esac
5716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5717  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5718  ac_status=$?
5719  grep -v '^ *+' conftest.er1 >conftest.err
5720  rm -f conftest.er1
5721  cat conftest.err >&5
5722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723  (exit $ac_status); } >/dev/null && {
5724	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5725	 test ! -s conftest.err
5726       }; then
5727  :
5728else
5729  echo "$as_me: failed program was:" >&5
5730sed 's/^/| /' conftest.$ac_ext >&5
5731
5732  # Broken: fails on valid input.
5733continue
5734fi
5735
5736rm -f conftest.err conftest.$ac_ext
5737
5738  # OK, works on sane cases.  Now check whether nonexistent headers
5739  # can be detected and how.
5740  cat >conftest.$ac_ext <<_ACEOF
5741/* confdefs.h.  */
5742_ACEOF
5743cat confdefs.h >>conftest.$ac_ext
5744cat >>conftest.$ac_ext <<_ACEOF
5745/* end confdefs.h.  */
5746#include <ac_nonexistent.h>
5747_ACEOF
5748if { (ac_try="$ac_cpp conftest.$ac_ext"
5749case "(($ac_try" in
5750  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5751  *) ac_try_echo=$ac_try;;
5752esac
5753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5754  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5755  ac_status=$?
5756  grep -v '^ *+' conftest.er1 >conftest.err
5757  rm -f conftest.er1
5758  cat conftest.err >&5
5759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5760  (exit $ac_status); } >/dev/null && {
5761	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5762	 test ! -s conftest.err
5763       }; then
5764  # Broken: success on invalid input.
5765continue
5766else
5767  echo "$as_me: failed program was:" >&5
5768sed 's/^/| /' conftest.$ac_ext >&5
5769
5770  # Passes both tests.
5771ac_preproc_ok=:
5772break
5773fi
5774
5775rm -f conftest.err conftest.$ac_ext
5776
5777done
5778# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5779rm -f conftest.err conftest.$ac_ext
5780if $ac_preproc_ok; then
5781  :
5782else
5783  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5784See \`config.log' for more details." >&5
5785echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5786See \`config.log' for more details." >&2;}
5787   { (exit 1); exit 1; }; }
5788fi
5789
5790ac_ext=cpp
5791ac_cpp='$CXXCPP $CPPFLAGS'
5792ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5793ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5794ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5795
5796fi
5797
5798
5799ac_ext=f
5800ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5801ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5802ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5803if test -n "$ac_tool_prefix"; then
5804  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
5805  do
5806    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5807set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5808{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5809echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5810if test "${ac_cv_prog_F77+set}" = set; then
5811  echo $ECHO_N "(cached) $ECHO_C" >&6
5812else
5813  if test -n "$F77"; then
5814  ac_cv_prog_F77="$F77" # Let the user override the test.
5815else
5816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5817for as_dir in $PATH
5818do
5819  IFS=$as_save_IFS
5820  test -z "$as_dir" && as_dir=.
5821  for ac_exec_ext in '' $ac_executable_extensions; do
5822  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5823    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5824    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5825    break 2
5826  fi
5827done
5828done
5829IFS=$as_save_IFS
5830
5831fi
5832fi
5833F77=$ac_cv_prog_F77
5834if test -n "$F77"; then
5835  { echo "$as_me:$LINENO: result: $F77" >&5
5836echo "${ECHO_T}$F77" >&6; }
5837else
5838  { echo "$as_me:$LINENO: result: no" >&5
5839echo "${ECHO_T}no" >&6; }
5840fi
5841
5842
5843    test -n "$F77" && break
5844  done
5845fi
5846if test -z "$F77"; then
5847  ac_ct_F77=$F77
5848  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
5849do
5850  # Extract the first word of "$ac_prog", so it can be a program name with args.
5851set dummy $ac_prog; 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_ac_ct_F77+set}" = set; then
5855  echo $ECHO_N "(cached) $ECHO_C" >&6
5856else
5857  if test -n "$ac_ct_F77"; then
5858  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # 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_ac_ct_F77="$ac_prog"
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
5877ac_ct_F77=$ac_cv_prog_ac_ct_F77
5878if test -n "$ac_ct_F77"; then
5879  { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5880echo "${ECHO_T}$ac_ct_F77" >&6; }
5881else
5882  { echo "$as_me:$LINENO: result: no" >&5
5883echo "${ECHO_T}no" >&6; }
5884fi
5885
5886
5887  test -n "$ac_ct_F77" && break
5888done
5889
5890  if test "x$ac_ct_F77" = x; then
5891    F77=""
5892  else
5893    case $cross_compiling:$ac_tool_warned in
5894yes:)
5895{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5896whose name does not start with the host triplet.  If you think this
5897configuration is useful to you, please write to autoconf@gnu.org." >&5
5898echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5899whose name does not start with the host triplet.  If you think this
5900configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5901ac_tool_warned=yes ;;
5902esac
5903    F77=$ac_ct_F77
5904  fi
5905fi
5906
5907
5908# Provide some information about the compiler.
5909echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5910ac_compiler=`set X $ac_compile; echo $2`
5911{ (ac_try="$ac_compiler --version >&5"
5912case "(($ac_try" in
5913  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5914  *) ac_try_echo=$ac_try;;
5915esac
5916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5917  (eval "$ac_compiler --version >&5") 2>&5
5918  ac_status=$?
5919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920  (exit $ac_status); }
5921{ (ac_try="$ac_compiler -v >&5"
5922case "(($ac_try" in
5923  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5924  *) ac_try_echo=$ac_try;;
5925esac
5926eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5927  (eval "$ac_compiler -v >&5") 2>&5
5928  ac_status=$?
5929  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5930  (exit $ac_status); }
5931{ (ac_try="$ac_compiler -V >&5"
5932case "(($ac_try" in
5933  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5934  *) ac_try_echo=$ac_try;;
5935esac
5936eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5937  (eval "$ac_compiler -V >&5") 2>&5
5938  ac_status=$?
5939  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5940  (exit $ac_status); }
5941rm -f a.out
5942
5943# If we don't use `.F' as extension, the preprocessor is not run on the
5944# input file.  (Note that this only needs to work for GNU compilers.)
5945ac_save_ext=$ac_ext
5946ac_ext=F
5947{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5948echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
5949if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5950  echo $ECHO_N "(cached) $ECHO_C" >&6
5951else
5952  cat >conftest.$ac_ext <<_ACEOF
5953      program main
5954#ifndef __GNUC__
5955       choke me
5956#endif
5957
5958      end
5959_ACEOF
5960rm -f conftest.$ac_objext
5961if { (ac_try="$ac_compile"
5962case "(($ac_try" in
5963  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5964  *) ac_try_echo=$ac_try;;
5965esac
5966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5967  (eval "$ac_compile") 2>conftest.er1
5968  ac_status=$?
5969  grep -v '^ *+' conftest.er1 >conftest.err
5970  rm -f conftest.er1
5971  cat conftest.err >&5
5972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5973  (exit $ac_status); } && {
5974	 test -z "$ac_f77_werror_flag" ||
5975	 test ! -s conftest.err
5976       } && test -s conftest.$ac_objext; then
5977  ac_compiler_gnu=yes
5978else
5979  echo "$as_me: failed program was:" >&5
5980sed 's/^/| /' conftest.$ac_ext >&5
5981
5982	ac_compiler_gnu=no
5983fi
5984
5985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5986ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5987
5988fi
5989{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5990echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
5991ac_ext=$ac_save_ext
5992ac_test_FFLAGS=${FFLAGS+set}
5993ac_save_FFLAGS=$FFLAGS
5994FFLAGS=
5995{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5996echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
5997if test "${ac_cv_prog_f77_g+set}" = set; then
5998  echo $ECHO_N "(cached) $ECHO_C" >&6
5999else
6000  FFLAGS=-g
6001cat >conftest.$ac_ext <<_ACEOF
6002      program main
6003
6004      end
6005_ACEOF
6006rm -f conftest.$ac_objext
6007if { (ac_try="$ac_compile"
6008case "(($ac_try" in
6009  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6010  *) ac_try_echo=$ac_try;;
6011esac
6012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6013  (eval "$ac_compile") 2>conftest.er1
6014  ac_status=$?
6015  grep -v '^ *+' conftest.er1 >conftest.err
6016  rm -f conftest.er1
6017  cat conftest.err >&5
6018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019  (exit $ac_status); } && {
6020	 test -z "$ac_f77_werror_flag" ||
6021	 test ! -s conftest.err
6022       } && test -s conftest.$ac_objext; then
6023  ac_cv_prog_f77_g=yes
6024else
6025  echo "$as_me: failed program was:" >&5
6026sed 's/^/| /' conftest.$ac_ext >&5
6027
6028	ac_cv_prog_f77_g=no
6029fi
6030
6031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6032
6033fi
6034{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6035echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6036if test "$ac_test_FFLAGS" = set; then
6037  FFLAGS=$ac_save_FFLAGS
6038elif test $ac_cv_prog_f77_g = yes; then
6039  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6040    FFLAGS="-g -O2"
6041  else
6042    FFLAGS="-g"
6043  fi
6044else
6045  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6046    FFLAGS="-O2"
6047  else
6048    FFLAGS=
6049  fi
6050fi
6051
6052G77=`test $ac_compiler_gnu = yes && echo yes`
6053ac_ext=c
6054ac_cpp='$CPP $CPPFLAGS'
6055ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6056ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6057ac_compiler_gnu=$ac_cv_c_compiler_gnu
6058
6059
6060
6061# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6062
6063# find the maximum length of command line arguments
6064{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6065echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6066if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6067  echo $ECHO_N "(cached) $ECHO_C" >&6
6068else
6069    i=0
6070  teststring="ABCD"
6071
6072  case $build_os in
6073  msdosdjgpp*)
6074    # On DJGPP, this test can blow up pretty badly due to problems in libc
6075    # (any single argument exceeding 2000 bytes causes a buffer overrun
6076    # during glob expansion).  Even if it were fixed, the result of this
6077    # check would be larger than it should be.
6078    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6079    ;;
6080
6081  gnu*)
6082    # Under GNU Hurd, this test is not required because there is
6083    # no limit to the length of command line arguments.
6084    # Libtool will interpret -1 as no limit whatsoever
6085    lt_cv_sys_max_cmd_len=-1;
6086    ;;
6087
6088  cygwin* | mingw*)
6089    # On Win9x/ME, this test blows up -- it succeeds, but takes
6090    # about 5 minutes as the teststring grows exponentially.
6091    # Worse, since 9x/ME are not pre-emptively multitasking,
6092    # you end up with a "frozen" computer, even though with patience
6093    # the test eventually succeeds (with a max line length of 256k).
6094    # Instead, let's just punt: use the minimum linelength reported by
6095    # all of the supported platforms: 8192 (on NT/2K/XP).
6096    lt_cv_sys_max_cmd_len=8192;
6097    ;;
6098
6099  amigaos*)
6100    # On AmigaOS with pdksh, this test takes hours, literally.
6101    # So we just punt and use a minimum line length of 8192.
6102    lt_cv_sys_max_cmd_len=8192;
6103    ;;
6104
6105  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6106    # This has been around since 386BSD, at least.  Likely further.
6107    if test -x /sbin/sysctl; then
6108      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6109    elif test -x /usr/sbin/sysctl; then
6110      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6111    else
6112      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6113    fi
6114    # And add a safety zone
6115    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6116    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6117    ;;
6118
6119  interix*)
6120    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6121    lt_cv_sys_max_cmd_len=196608
6122    ;;
6123
6124  osf*)
6125    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6126    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6127    # nice to cause kernel panics so lets avoid the loop below.
6128    # First set a reasonable default.
6129    lt_cv_sys_max_cmd_len=16384
6130    #
6131    if test -x /sbin/sysconfig; then
6132      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6133        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6134      esac
6135    fi
6136    ;;
6137  sco3.2v5*)
6138    lt_cv_sys_max_cmd_len=102400
6139    ;;
6140  sysv5* | sco5v6* | sysv4.2uw2*)
6141    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6142    if test -n "$kargmax"; then
6143      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
6144    else
6145      lt_cv_sys_max_cmd_len=32768
6146    fi
6147    ;;
6148  *)
6149    # If test is not a shell built-in, we'll probably end up computing a
6150    # maximum length that is only half of the actual maximum length, but
6151    # we can't tell.
6152    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6153    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6154	       = "XX$teststring") >/dev/null 2>&1 &&
6155	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
6156	    lt_cv_sys_max_cmd_len=$new_result &&
6157	    test $i != 17 # 1/2 MB should be enough
6158    do
6159      i=`expr $i + 1`
6160      teststring=$teststring$teststring
6161    done
6162    teststring=
6163    # Add a significant safety factor because C++ compilers can tack on massive
6164    # amounts of additional arguments before passing them to the linker.
6165    # It appears as though 1/2 is a usable value.
6166    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6167    ;;
6168  esac
6169
6170fi
6171
6172if test -n $lt_cv_sys_max_cmd_len ; then
6173  { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6174echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6175else
6176  { echo "$as_me:$LINENO: result: none" >&5
6177echo "${ECHO_T}none" >&6; }
6178fi
6179
6180
6181
6182
6183# Check for command to grab the raw symbol name followed by C symbol from nm.
6184{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6185echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6186if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6187  echo $ECHO_N "(cached) $ECHO_C" >&6
6188else
6189
6190# These are sane defaults that work on at least a few old systems.
6191# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6192
6193# Character class describing NM global symbol codes.
6194symcode='[BCDEGRST]'
6195
6196# Regexp to match symbols that can be accessed directly from C.
6197sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6198
6199# Transform an extracted symbol line into a proper C declaration
6200lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6201
6202# Transform an extracted symbol line into symbol name and symbol address
6203lt_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'"
6204
6205# Define system-specific variables.
6206case $host_os in
6207aix*)
6208  symcode='[BCDT]'
6209  ;;
6210cygwin* | mingw* | pw32*)
6211  symcode='[ABCDGISTW]'
6212  ;;
6213hpux*) # Its linker distinguishes data from code symbols
6214  if test "$host_cpu" = ia64; then
6215    symcode='[ABCDEGRST]'
6216  fi
6217  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6218  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'"
6219  ;;
6220linux* | k*bsd*-gnu)
6221  if test "$host_cpu" = ia64; then
6222    symcode='[ABCDGIRSTW]'
6223    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6224    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'"
6225  fi
6226  ;;
6227irix* | nonstopux*)
6228  symcode='[BCDEGRST]'
6229  ;;
6230osf*)
6231  symcode='[BCDEGQRST]'
6232  ;;
6233solaris*)
6234  symcode='[BDRT]'
6235  ;;
6236sco3.2v5*)
6237  symcode='[DT]'
6238  ;;
6239sysv4.2uw2*)
6240  symcode='[DT]'
6241  ;;
6242sysv5* | sco5v6* | unixware* | OpenUNIX*)
6243  symcode='[ABDT]'
6244  ;;
6245sysv4)
6246  symcode='[DFNSTU]'
6247  ;;
6248esac
6249
6250# Handle CRLF in mingw tool chain
6251opt_cr=
6252case $build_os in
6253mingw*)
6254  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6255  ;;
6256esac
6257
6258# If we're using GNU nm, then use its standard symbol codes.
6259case `$NM -V 2>&1` in
6260*GNU* | *'with BFD'*)
6261  symcode='[ABCDGIRSTW]' ;;
6262esac
6263
6264# Try without a prefix undercore, then with it.
6265for ac_symprfx in "" "_"; do
6266
6267  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6268  symxfrm="\\1 $ac_symprfx\\2 \\2"
6269
6270  # Write the raw and C identifiers.
6271  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6272
6273  # Check to see that the pipe works correctly.
6274  pipe_works=no
6275
6276  rm -f conftest*
6277  cat > conftest.$ac_ext <<EOF
6278#ifdef __cplusplus
6279extern "C" {
6280#endif
6281char nm_test_var;
6282void nm_test_func(){}
6283#ifdef __cplusplus
6284}
6285#endif
6286int main(){nm_test_var='a';nm_test_func();return(0);}
6287EOF
6288
6289  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6290  (eval $ac_compile) 2>&5
6291  ac_status=$?
6292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6293  (exit $ac_status); }; then
6294    # Now try to grab the symbols.
6295    nlist=conftest.nm
6296    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6297  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6298  ac_status=$?
6299  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300  (exit $ac_status); } && test -s "$nlist"; then
6301      # Try sorting and uniquifying the output.
6302      if sort "$nlist" | uniq > "$nlist"T; then
6303	mv -f "$nlist"T "$nlist"
6304      else
6305	rm -f "$nlist"T
6306      fi
6307
6308      # Make sure that we snagged all the symbols we need.
6309      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6310	if grep ' nm_test_func$' "$nlist" >/dev/null; then
6311	  cat <<EOF > conftest.$ac_ext
6312#ifdef __cplusplus
6313extern "C" {
6314#endif
6315
6316EOF
6317	  # Now generate the symbol file.
6318	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6319
6320	  cat <<EOF >> conftest.$ac_ext
6321#if defined (__STDC__) && __STDC__
6322# define lt_ptr_t void *
6323#else
6324# define lt_ptr_t char *
6325# define const
6326#endif
6327
6328/* The mapping between symbol names and symbols. */
6329const struct {
6330  const char *name;
6331  lt_ptr_t address;
6332}
6333lt_preloaded_symbols[] =
6334{
6335EOF
6336	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6337	  cat <<\EOF >> conftest.$ac_ext
6338  {0, (lt_ptr_t) 0}
6339};
6340
6341#ifdef __cplusplus
6342}
6343#endif
6344EOF
6345	  # Now try linking the two files.
6346	  mv conftest.$ac_objext conftstm.$ac_objext
6347	  lt_save_LIBS="$LIBS"
6348	  lt_save_CFLAGS="$CFLAGS"
6349	  LIBS="conftstm.$ac_objext"
6350	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6351	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6352  (eval $ac_link) 2>&5
6353  ac_status=$?
6354  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6355  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6356	    pipe_works=yes
6357	  fi
6358	  LIBS="$lt_save_LIBS"
6359	  CFLAGS="$lt_save_CFLAGS"
6360	else
6361	  echo "cannot find nm_test_func in $nlist" >&5
6362	fi
6363      else
6364	echo "cannot find nm_test_var in $nlist" >&5
6365      fi
6366    else
6367      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6368    fi
6369  else
6370    echo "$progname: failed program was:" >&5
6371    cat conftest.$ac_ext >&5
6372  fi
6373  rm -f conftest* conftst*
6374
6375  # Do not use the global_symbol_pipe unless it works.
6376  if test "$pipe_works" = yes; then
6377    break
6378  else
6379    lt_cv_sys_global_symbol_pipe=
6380  fi
6381done
6382
6383fi
6384
6385if test -z "$lt_cv_sys_global_symbol_pipe"; then
6386  lt_cv_sys_global_symbol_to_cdecl=
6387fi
6388if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6389  { echo "$as_me:$LINENO: result: failed" >&5
6390echo "${ECHO_T}failed" >&6; }
6391else
6392  { echo "$as_me:$LINENO: result: ok" >&5
6393echo "${ECHO_T}ok" >&6; }
6394fi
6395
6396{ echo "$as_me:$LINENO: checking for objdir" >&5
6397echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6398if test "${lt_cv_objdir+set}" = set; then
6399  echo $ECHO_N "(cached) $ECHO_C" >&6
6400else
6401  rm -f .libs 2>/dev/null
6402mkdir .libs 2>/dev/null
6403if test -d .libs; then
6404  lt_cv_objdir=.libs
6405else
6406  # MS-DOS does not allow filenames that begin with a dot.
6407  lt_cv_objdir=_libs
6408fi
6409rmdir .libs 2>/dev/null
6410fi
6411{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6412echo "${ECHO_T}$lt_cv_objdir" >&6; }
6413objdir=$lt_cv_objdir
6414
6415
6416
6417
6418
6419case $host_os in
6420aix3*)
6421  # AIX sometimes has problems with the GCC collect2 program.  For some
6422  # reason, if we set the COLLECT_NAMES environment variable, the problems
6423  # vanish in a puff of smoke.
6424  if test "X${COLLECT_NAMES+set}" != Xset; then
6425    COLLECT_NAMES=
6426    export COLLECT_NAMES
6427  fi
6428  ;;
6429esac
6430
6431# Sed substitution that helps us do robust quoting.  It backslashifies
6432# metacharacters that are still active within double-quoted strings.
6433Xsed='sed -e 1s/^X//'
6434sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6435
6436# Same as above, but do not quote variable references.
6437double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6438
6439# Sed substitution to delay expansion of an escaped shell variable in a
6440# double_quote_subst'ed string.
6441delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6442
6443# Sed substitution to avoid accidental globbing in evaled expressions
6444no_glob_subst='s/\*/\\\*/g'
6445
6446# Constants:
6447rm="rm -f"
6448
6449# Global variables:
6450default_ofile=libtool
6451can_build_shared=yes
6452
6453# All known linkers require a `.a' archive for static linking (except MSVC,
6454# which needs '.lib').
6455libext=a
6456ltmain="$ac_aux_dir/ltmain.sh"
6457ofile="$default_ofile"
6458with_gnu_ld="$lt_cv_prog_gnu_ld"
6459
6460if test -n "$ac_tool_prefix"; then
6461  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6462set dummy ${ac_tool_prefix}ar; ac_word=$2
6463{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6464echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6465if test "${ac_cv_prog_AR+set}" = set; then
6466  echo $ECHO_N "(cached) $ECHO_C" >&6
6467else
6468  if test -n "$AR"; then
6469  ac_cv_prog_AR="$AR" # Let the user override the test.
6470else
6471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6472for as_dir in $PATH
6473do
6474  IFS=$as_save_IFS
6475  test -z "$as_dir" && as_dir=.
6476  for ac_exec_ext in '' $ac_executable_extensions; do
6477  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6478    ac_cv_prog_AR="${ac_tool_prefix}ar"
6479    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6480    break 2
6481  fi
6482done
6483done
6484IFS=$as_save_IFS
6485
6486fi
6487fi
6488AR=$ac_cv_prog_AR
6489if test -n "$AR"; then
6490  { echo "$as_me:$LINENO: result: $AR" >&5
6491echo "${ECHO_T}$AR" >&6; }
6492else
6493  { echo "$as_me:$LINENO: result: no" >&5
6494echo "${ECHO_T}no" >&6; }
6495fi
6496
6497
6498fi
6499if test -z "$ac_cv_prog_AR"; then
6500  ac_ct_AR=$AR
6501  # Extract the first word of "ar", so it can be a program name with args.
6502set dummy ar; ac_word=$2
6503{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6504echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6505if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6506  echo $ECHO_N "(cached) $ECHO_C" >&6
6507else
6508  if test -n "$ac_ct_AR"; then
6509  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6510else
6511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6512for as_dir in $PATH
6513do
6514  IFS=$as_save_IFS
6515  test -z "$as_dir" && as_dir=.
6516  for ac_exec_ext in '' $ac_executable_extensions; do
6517  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6518    ac_cv_prog_ac_ct_AR="ar"
6519    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6520    break 2
6521  fi
6522done
6523done
6524IFS=$as_save_IFS
6525
6526fi
6527fi
6528ac_ct_AR=$ac_cv_prog_ac_ct_AR
6529if test -n "$ac_ct_AR"; then
6530  { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6531echo "${ECHO_T}$ac_ct_AR" >&6; }
6532else
6533  { echo "$as_me:$LINENO: result: no" >&5
6534echo "${ECHO_T}no" >&6; }
6535fi
6536
6537  if test "x$ac_ct_AR" = x; then
6538    AR="false"
6539  else
6540    case $cross_compiling:$ac_tool_warned in
6541yes:)
6542{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6543whose name does not start with the host triplet.  If you think this
6544configuration is useful to you, please write to autoconf@gnu.org." >&5
6545echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6546whose name does not start with the host triplet.  If you think this
6547configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6548ac_tool_warned=yes ;;
6549esac
6550    AR=$ac_ct_AR
6551  fi
6552else
6553  AR="$ac_cv_prog_AR"
6554fi
6555
6556if test -n "$ac_tool_prefix"; then
6557  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6558set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6559{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6560echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6561if test "${ac_cv_prog_RANLIB+set}" = set; then
6562  echo $ECHO_N "(cached) $ECHO_C" >&6
6563else
6564  if test -n "$RANLIB"; then
6565  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6566else
6567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6568for as_dir in $PATH
6569do
6570  IFS=$as_save_IFS
6571  test -z "$as_dir" && as_dir=.
6572  for ac_exec_ext in '' $ac_executable_extensions; do
6573  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6574    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6575    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6576    break 2
6577  fi
6578done
6579done
6580IFS=$as_save_IFS
6581
6582fi
6583fi
6584RANLIB=$ac_cv_prog_RANLIB
6585if test -n "$RANLIB"; then
6586  { echo "$as_me:$LINENO: result: $RANLIB" >&5
6587echo "${ECHO_T}$RANLIB" >&6; }
6588else
6589  { echo "$as_me:$LINENO: result: no" >&5
6590echo "${ECHO_T}no" >&6; }
6591fi
6592
6593
6594fi
6595if test -z "$ac_cv_prog_RANLIB"; then
6596  ac_ct_RANLIB=$RANLIB
6597  # Extract the first word of "ranlib", so it can be a program name with args.
6598set dummy ranlib; ac_word=$2
6599{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6600echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6601if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6602  echo $ECHO_N "(cached) $ECHO_C" >&6
6603else
6604  if test -n "$ac_ct_RANLIB"; then
6605  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6606else
6607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6608for as_dir in $PATH
6609do
6610  IFS=$as_save_IFS
6611  test -z "$as_dir" && as_dir=.
6612  for ac_exec_ext in '' $ac_executable_extensions; do
6613  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6614    ac_cv_prog_ac_ct_RANLIB="ranlib"
6615    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6616    break 2
6617  fi
6618done
6619done
6620IFS=$as_save_IFS
6621
6622fi
6623fi
6624ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6625if test -n "$ac_ct_RANLIB"; then
6626  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6627echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6628else
6629  { echo "$as_me:$LINENO: result: no" >&5
6630echo "${ECHO_T}no" >&6; }
6631fi
6632
6633  if test "x$ac_ct_RANLIB" = x; then
6634    RANLIB=":"
6635  else
6636    case $cross_compiling:$ac_tool_warned in
6637yes:)
6638{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6639whose name does not start with the host triplet.  If you think this
6640configuration is useful to you, please write to autoconf@gnu.org." >&5
6641echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6642whose name does not start with the host triplet.  If you think this
6643configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6644ac_tool_warned=yes ;;
6645esac
6646    RANLIB=$ac_ct_RANLIB
6647  fi
6648else
6649  RANLIB="$ac_cv_prog_RANLIB"
6650fi
6651
6652if test -n "$ac_tool_prefix"; then
6653  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6654set dummy ${ac_tool_prefix}strip; ac_word=$2
6655{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6656echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6657if test "${ac_cv_prog_STRIP+set}" = set; then
6658  echo $ECHO_N "(cached) $ECHO_C" >&6
6659else
6660  if test -n "$STRIP"; then
6661  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6662else
6663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6664for as_dir in $PATH
6665do
6666  IFS=$as_save_IFS
6667  test -z "$as_dir" && as_dir=.
6668  for ac_exec_ext in '' $ac_executable_extensions; do
6669  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6670    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6671    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6672    break 2
6673  fi
6674done
6675done
6676IFS=$as_save_IFS
6677
6678fi
6679fi
6680STRIP=$ac_cv_prog_STRIP
6681if test -n "$STRIP"; then
6682  { echo "$as_me:$LINENO: result: $STRIP" >&5
6683echo "${ECHO_T}$STRIP" >&6; }
6684else
6685  { echo "$as_me:$LINENO: result: no" >&5
6686echo "${ECHO_T}no" >&6; }
6687fi
6688
6689
6690fi
6691if test -z "$ac_cv_prog_STRIP"; then
6692  ac_ct_STRIP=$STRIP
6693  # Extract the first word of "strip", so it can be a program name with args.
6694set dummy strip; ac_word=$2
6695{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6696echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6697if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6698  echo $ECHO_N "(cached) $ECHO_C" >&6
6699else
6700  if test -n "$ac_ct_STRIP"; then
6701  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6702else
6703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6704for as_dir in $PATH
6705do
6706  IFS=$as_save_IFS
6707  test -z "$as_dir" && as_dir=.
6708  for ac_exec_ext in '' $ac_executable_extensions; do
6709  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6710    ac_cv_prog_ac_ct_STRIP="strip"
6711    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6712    break 2
6713  fi
6714done
6715done
6716IFS=$as_save_IFS
6717
6718fi
6719fi
6720ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6721if test -n "$ac_ct_STRIP"; then
6722  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6723echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6724else
6725  { echo "$as_me:$LINENO: result: no" >&5
6726echo "${ECHO_T}no" >&6; }
6727fi
6728
6729  if test "x$ac_ct_STRIP" = x; then
6730    STRIP=":"
6731  else
6732    case $cross_compiling:$ac_tool_warned in
6733yes:)
6734{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6735whose name does not start with the host triplet.  If you think this
6736configuration is useful to you, please write to autoconf@gnu.org." >&5
6737echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6738whose name does not start with the host triplet.  If you think this
6739configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6740ac_tool_warned=yes ;;
6741esac
6742    STRIP=$ac_ct_STRIP
6743  fi
6744else
6745  STRIP="$ac_cv_prog_STRIP"
6746fi
6747
6748
6749old_CC="$CC"
6750old_CFLAGS="$CFLAGS"
6751
6752# Set sane defaults for various variables
6753test -z "$AR" && AR=ar
6754test -z "$AR_FLAGS" && AR_FLAGS=cru
6755test -z "$AS" && AS=as
6756test -z "$CC" && CC=cc
6757test -z "$LTCC" && LTCC=$CC
6758test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6759test -z "$DLLTOOL" && DLLTOOL=dlltool
6760test -z "$LD" && LD=ld
6761test -z "$LN_S" && LN_S="ln -s"
6762test -z "$MAGIC_CMD" && MAGIC_CMD=file
6763test -z "$NM" && NM=nm
6764test -z "$SED" && SED=sed
6765test -z "$OBJDUMP" && OBJDUMP=objdump
6766test -z "$RANLIB" && RANLIB=:
6767test -z "$STRIP" && STRIP=:
6768test -z "$ac_objext" && ac_objext=o
6769
6770# Determine commands to create old-style static archives.
6771old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6772old_postinstall_cmds='chmod 644 $oldlib'
6773old_postuninstall_cmds=
6774
6775if test -n "$RANLIB"; then
6776  case $host_os in
6777  openbsd*)
6778    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6779    ;;
6780  *)
6781    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6782    ;;
6783  esac
6784  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6785fi
6786
6787for cc_temp in $compiler""; do
6788  case $cc_temp in
6789    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6790    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6791    \-*) ;;
6792    *) break;;
6793  esac
6794done
6795cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6796
6797
6798# Only perform the check for file, if the check method requires it
6799case $deplibs_check_method in
6800file_magic*)
6801  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6802    { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6803echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6804if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6805  echo $ECHO_N "(cached) $ECHO_C" >&6
6806else
6807  case $MAGIC_CMD in
6808[\\/*] |  ?:[\\/]*)
6809  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6810  ;;
6811*)
6812  lt_save_MAGIC_CMD="$MAGIC_CMD"
6813  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6814  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6815  for ac_dir in $ac_dummy; do
6816    IFS="$lt_save_ifs"
6817    test -z "$ac_dir" && ac_dir=.
6818    if test -f $ac_dir/${ac_tool_prefix}file; then
6819      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6820      if test -n "$file_magic_test_file"; then
6821	case $deplibs_check_method in
6822	"file_magic "*)
6823	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6824	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6825	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6826	    $EGREP "$file_magic_regex" > /dev/null; then
6827	    :
6828	  else
6829	    cat <<EOF 1>&2
6830
6831*** Warning: the command libtool uses to detect shared libraries,
6832*** $file_magic_cmd, produces output that libtool cannot recognize.
6833*** The result is that libtool may fail to recognize shared libraries
6834*** as such.  This will affect the creation of libtool libraries that
6835*** depend on shared libraries, but programs linked with such libtool
6836*** libraries will work regardless of this problem.  Nevertheless, you
6837*** may want to report the problem to your system manager and/or to
6838*** bug-libtool@gnu.org
6839
6840EOF
6841	  fi ;;
6842	esac
6843      fi
6844      break
6845    fi
6846  done
6847  IFS="$lt_save_ifs"
6848  MAGIC_CMD="$lt_save_MAGIC_CMD"
6849  ;;
6850esac
6851fi
6852
6853MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6854if test -n "$MAGIC_CMD"; then
6855  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6856echo "${ECHO_T}$MAGIC_CMD" >&6; }
6857else
6858  { echo "$as_me:$LINENO: result: no" >&5
6859echo "${ECHO_T}no" >&6; }
6860fi
6861
6862if test -z "$lt_cv_path_MAGIC_CMD"; then
6863  if test -n "$ac_tool_prefix"; then
6864    { echo "$as_me:$LINENO: checking for file" >&5
6865echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6866if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6867  echo $ECHO_N "(cached) $ECHO_C" >&6
6868else
6869  case $MAGIC_CMD in
6870[\\/*] |  ?:[\\/]*)
6871  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6872  ;;
6873*)
6874  lt_save_MAGIC_CMD="$MAGIC_CMD"
6875  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6876  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6877  for ac_dir in $ac_dummy; do
6878    IFS="$lt_save_ifs"
6879    test -z "$ac_dir" && ac_dir=.
6880    if test -f $ac_dir/file; then
6881      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6882      if test -n "$file_magic_test_file"; then
6883	case $deplibs_check_method in
6884	"file_magic "*)
6885	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6886	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6887	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6888	    $EGREP "$file_magic_regex" > /dev/null; then
6889	    :
6890	  else
6891	    cat <<EOF 1>&2
6892
6893*** Warning: the command libtool uses to detect shared libraries,
6894*** $file_magic_cmd, produces output that libtool cannot recognize.
6895*** The result is that libtool may fail to recognize shared libraries
6896*** as such.  This will affect the creation of libtool libraries that
6897*** depend on shared libraries, but programs linked with such libtool
6898*** libraries will work regardless of this problem.  Nevertheless, you
6899*** may want to report the problem to your system manager and/or to
6900*** bug-libtool@gnu.org
6901
6902EOF
6903	  fi ;;
6904	esac
6905      fi
6906      break
6907    fi
6908  done
6909  IFS="$lt_save_ifs"
6910  MAGIC_CMD="$lt_save_MAGIC_CMD"
6911  ;;
6912esac
6913fi
6914
6915MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6916if test -n "$MAGIC_CMD"; then
6917  { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6918echo "${ECHO_T}$MAGIC_CMD" >&6; }
6919else
6920  { echo "$as_me:$LINENO: result: no" >&5
6921echo "${ECHO_T}no" >&6; }
6922fi
6923
6924  else
6925    MAGIC_CMD=:
6926  fi
6927fi
6928
6929  fi
6930  ;;
6931esac
6932
6933enable_dlopen=no
6934enable_win32_dll=no
6935
6936# Check whether --enable-libtool-lock was given.
6937if test "${enable_libtool_lock+set}" = set; then
6938  enableval=$enable_libtool_lock;
6939fi
6940
6941test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6942
6943
6944# Check whether --with-pic was given.
6945if test "${with_pic+set}" = set; then
6946  withval=$with_pic; pic_mode="$withval"
6947else
6948  pic_mode=default
6949fi
6950
6951test -z "$pic_mode" && pic_mode=default
6952
6953# Use C for the default configuration in the libtool script
6954tagname=
6955lt_save_CC="$CC"
6956ac_ext=c
6957ac_cpp='$CPP $CPPFLAGS'
6958ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6959ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6960ac_compiler_gnu=$ac_cv_c_compiler_gnu
6961
6962
6963# Source file extension for C test sources.
6964ac_ext=c
6965
6966# Object file extension for compiled C test sources.
6967objext=o
6968objext=$objext
6969
6970# Code to be used in simple compile tests
6971lt_simple_compile_test_code="int some_variable = 0;\n"
6972
6973# Code to be used in simple link tests
6974lt_simple_link_test_code='int main(){return(0);}\n'
6975
6976
6977# If no C compiler was specified, use CC.
6978LTCC=${LTCC-"$CC"}
6979
6980# If no C compiler flags were specified, use CFLAGS.
6981LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6982
6983# Allow CC to be a program name with arguments.
6984compiler=$CC
6985
6986
6987# save warnings/boilerplate of simple test code
6988ac_outfile=conftest.$ac_objext
6989printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6990eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6991_lt_compiler_boilerplate=`cat conftest.err`
6992$rm conftest*
6993
6994ac_outfile=conftest.$ac_objext
6995printf "$lt_simple_link_test_code" >conftest.$ac_ext
6996eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6997_lt_linker_boilerplate=`cat conftest.err`
6998$rm conftest*
6999
7000
7001
7002lt_prog_compiler_no_builtin_flag=
7003
7004if test "$GCC" = yes; then
7005  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7006
7007
7008{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7009echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7010if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7011  echo $ECHO_N "(cached) $ECHO_C" >&6
7012else
7013  lt_cv_prog_compiler_rtti_exceptions=no
7014  ac_outfile=conftest.$ac_objext
7015   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7016   lt_compiler_flag="-fno-rtti -fno-exceptions"
7017   # Insert the option either (1) after the last *FLAGS variable, or
7018   # (2) before a word containing "conftest.", or (3) at the end.
7019   # Note that $ac_compile itself does not contain backslashes and begins
7020   # with a dollar sign (not a hyphen), so the echo should work correctly.
7021   # The option is referenced via a variable to avoid confusing sed.
7022   lt_compile=`echo "$ac_compile" | $SED \
7023   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7024   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7025   -e 's:$: $lt_compiler_flag:'`
7026   (eval echo "\"\$as_me:7026: $lt_compile\"" >&5)
7027   (eval "$lt_compile" 2>conftest.err)
7028   ac_status=$?
7029   cat conftest.err >&5
7030   echo "$as_me:7030: \$? = $ac_status" >&5
7031   if (exit $ac_status) && test -s "$ac_outfile"; then
7032     # The compiler can only warn and ignore the option if not recognized
7033     # So say no if there are warnings other than the usual output.
7034     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7035     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7036     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7037       lt_cv_prog_compiler_rtti_exceptions=yes
7038     fi
7039   fi
7040   $rm conftest*
7041
7042fi
7043{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7044echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7045
7046if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7047    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7048else
7049    :
7050fi
7051
7052fi
7053
7054lt_prog_compiler_wl=
7055lt_prog_compiler_pic=
7056lt_prog_compiler_static=
7057
7058{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7059echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7060
7061  if test "$GCC" = yes; then
7062    lt_prog_compiler_wl='-Wl,'
7063    lt_prog_compiler_static='-static'
7064
7065    case $host_os in
7066      aix*)
7067      # All AIX code is PIC.
7068      if test "$host_cpu" = ia64; then
7069	# AIX 5 now supports IA64 processor
7070	lt_prog_compiler_static='-Bstatic'
7071      fi
7072      ;;
7073
7074    amigaos*)
7075      # FIXME: we need at least 68020 code to build shared libraries, but
7076      # adding the `-m68020' flag to GCC prevents building anything better,
7077      # like `-m68040'.
7078      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7079      ;;
7080
7081    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7082      # PIC is the default for these OSes.
7083      ;;
7084
7085    mingw* | pw32* | os2*)
7086      # This hack is so that the source file can tell whether it is being
7087      # built for inclusion in a dll (and should export symbols for example).
7088      lt_prog_compiler_pic='-DDLL_EXPORT'
7089      ;;
7090
7091    darwin* | rhapsody*)
7092      # PIC is the default on this platform
7093      # Common symbols not allowed in MH_DYLIB files
7094      lt_prog_compiler_pic='-fno-common'
7095      ;;
7096
7097    interix3*)
7098      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7099      # Instead, we relocate shared libraries at runtime.
7100      ;;
7101
7102    msdosdjgpp*)
7103      # Just because we use GCC doesn't mean we suddenly get shared libraries
7104      # on systems that don't support them.
7105      lt_prog_compiler_can_build_shared=no
7106      enable_shared=no
7107      ;;
7108
7109    sysv4*MP*)
7110      if test -d /usr/nec; then
7111	lt_prog_compiler_pic=-Kconform_pic
7112      fi
7113      ;;
7114
7115    hpux*)
7116      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7117      # not for PA HP-UX.
7118      case $host_cpu in
7119      hppa*64*|ia64*)
7120	# +Z the default
7121	;;
7122      *)
7123	lt_prog_compiler_pic='-fPIC'
7124	;;
7125      esac
7126      ;;
7127
7128    *)
7129      lt_prog_compiler_pic='-fPIC'
7130      ;;
7131    esac
7132  else
7133    # PORTME Check for flag to pass linker flags through the system compiler.
7134    case $host_os in
7135    aix*)
7136      lt_prog_compiler_wl='-Wl,'
7137      if test "$host_cpu" = ia64; then
7138	# AIX 5 now supports IA64 processor
7139	lt_prog_compiler_static='-Bstatic'
7140      else
7141	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7142      fi
7143      ;;
7144      darwin*)
7145        # PIC is the default on this platform
7146        # Common symbols not allowed in MH_DYLIB files
7147       case $cc_basename in
7148         xlc*)
7149         lt_prog_compiler_pic='-qnocommon'
7150         lt_prog_compiler_wl='-Wl,'
7151         ;;
7152       esac
7153       ;;
7154
7155    mingw* | pw32* | os2*)
7156      # This hack is so that the source file can tell whether it is being
7157      # built for inclusion in a dll (and should export symbols for example).
7158      lt_prog_compiler_pic='-DDLL_EXPORT'
7159      ;;
7160
7161    hpux9* | hpux10* | hpux11*)
7162      lt_prog_compiler_wl='-Wl,'
7163      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7164      # not for PA HP-UX.
7165      case $host_cpu in
7166      hppa*64*|ia64*)
7167	# +Z the default
7168	;;
7169      *)
7170	lt_prog_compiler_pic='+Z'
7171	;;
7172      esac
7173      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7174      lt_prog_compiler_static='${wl}-a ${wl}archive'
7175      ;;
7176
7177    irix5* | irix6* | nonstopux*)
7178      lt_prog_compiler_wl='-Wl,'
7179      # PIC (with -KPIC) is the default.
7180      lt_prog_compiler_static='-non_shared'
7181      ;;
7182
7183    newsos6)
7184      lt_prog_compiler_pic='-KPIC'
7185      lt_prog_compiler_static='-Bstatic'
7186      ;;
7187
7188    linux* | k*bsd*-gnu)
7189      case $cc_basename in
7190      icc* | ecc*)
7191	lt_prog_compiler_wl='-Wl,'
7192	lt_prog_compiler_pic='-KPIC'
7193	lt_prog_compiler_static='-static'
7194        ;;
7195      pgcc* | pgf77* | pgf90* | pgf95*)
7196        # Portland Group compilers (*not* the Pentium gcc compiler,
7197	# which looks to be a dead project)
7198	lt_prog_compiler_wl='-Wl,'
7199	lt_prog_compiler_pic='-fpic'
7200	lt_prog_compiler_static='-Bstatic'
7201        ;;
7202      ccc*)
7203        lt_prog_compiler_wl='-Wl,'
7204        # All Alpha code is PIC.
7205        lt_prog_compiler_static='-non_shared'
7206        ;;
7207      esac
7208      ;;
7209
7210    osf3* | osf4* | osf5*)
7211      lt_prog_compiler_wl='-Wl,'
7212      # All OSF/1 code is PIC.
7213      lt_prog_compiler_static='-non_shared'
7214      ;;
7215
7216    solaris*)
7217      lt_prog_compiler_pic='-KPIC'
7218      lt_prog_compiler_static='-Bstatic'
7219      case $cc_basename in
7220      f77* | f90* | f95*)
7221	lt_prog_compiler_wl='-Qoption ld ';;
7222      *)
7223	lt_prog_compiler_wl='-Wl,';;
7224      esac
7225      ;;
7226
7227    sunos4*)
7228      lt_prog_compiler_wl='-Qoption ld '
7229      lt_prog_compiler_pic='-PIC'
7230      lt_prog_compiler_static='-Bstatic'
7231      ;;
7232
7233    sysv4 | sysv4.2uw2* | sysv4.3*)
7234      lt_prog_compiler_wl='-Wl,'
7235      lt_prog_compiler_pic='-KPIC'
7236      lt_prog_compiler_static='-Bstatic'
7237      ;;
7238
7239    sysv4*MP*)
7240      if test -d /usr/nec ;then
7241	lt_prog_compiler_pic='-Kconform_pic'
7242	lt_prog_compiler_static='-Bstatic'
7243      fi
7244      ;;
7245
7246    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7247      lt_prog_compiler_wl='-Wl,'
7248      lt_prog_compiler_pic='-KPIC'
7249      lt_prog_compiler_static='-Bstatic'
7250      ;;
7251
7252    unicos*)
7253      lt_prog_compiler_wl='-Wl,'
7254      lt_prog_compiler_can_build_shared=no
7255      ;;
7256
7257    uts4*)
7258      lt_prog_compiler_pic='-pic'
7259      lt_prog_compiler_static='-Bstatic'
7260      ;;
7261
7262    *)
7263      lt_prog_compiler_can_build_shared=no
7264      ;;
7265    esac
7266  fi
7267
7268{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7269echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7270
7271#
7272# Check to make sure the PIC flag actually works.
7273#
7274if test -n "$lt_prog_compiler_pic"; then
7275
7276{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7277echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7278if test "${lt_prog_compiler_pic_works+set}" = set; then
7279  echo $ECHO_N "(cached) $ECHO_C" >&6
7280else
7281  lt_prog_compiler_pic_works=no
7282  ac_outfile=conftest.$ac_objext
7283   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7284   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7285   # Insert the option either (1) after the last *FLAGS variable, or
7286   # (2) before a word containing "conftest.", or (3) at the end.
7287   # Note that $ac_compile itself does not contain backslashes and begins
7288   # with a dollar sign (not a hyphen), so the echo should work correctly.
7289   # The option is referenced via a variable to avoid confusing sed.
7290   lt_compile=`echo "$ac_compile" | $SED \
7291   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7292   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7293   -e 's:$: $lt_compiler_flag:'`
7294   (eval echo "\"\$as_me:7294: $lt_compile\"" >&5)
7295   (eval "$lt_compile" 2>conftest.err)
7296   ac_status=$?
7297   cat conftest.err >&5
7298   echo "$as_me:7298: \$? = $ac_status" >&5
7299   if (exit $ac_status) && test -s "$ac_outfile"; then
7300     # The compiler can only warn and ignore the option if not recognized
7301     # So say no if there are warnings other than the usual output.
7302     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7303     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7304     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7305       lt_prog_compiler_pic_works=yes
7306     fi
7307   fi
7308   $rm conftest*
7309
7310fi
7311{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7312echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7313
7314if test x"$lt_prog_compiler_pic_works" = xyes; then
7315    case $lt_prog_compiler_pic in
7316     "" | " "*) ;;
7317     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7318     esac
7319else
7320    lt_prog_compiler_pic=
7321     lt_prog_compiler_can_build_shared=no
7322fi
7323
7324fi
7325case $host_os in
7326  # For platforms which do not support PIC, -DPIC is meaningless:
7327  *djgpp*)
7328    lt_prog_compiler_pic=
7329    ;;
7330  *)
7331    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7332    ;;
7333esac
7334
7335#
7336# Check to make sure the static flag actually works.
7337#
7338wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7339{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7340echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7341if test "${lt_prog_compiler_static_works+set}" = set; then
7342  echo $ECHO_N "(cached) $ECHO_C" >&6
7343else
7344  lt_prog_compiler_static_works=no
7345   save_LDFLAGS="$LDFLAGS"
7346   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7347   printf "$lt_simple_link_test_code" > conftest.$ac_ext
7348   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7349     # The linker can only warn and ignore the option if not recognized
7350     # So say no if there are warnings
7351     if test -s conftest.err; then
7352       # Append any errors to the config.log.
7353       cat conftest.err 1>&5
7354       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7355       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7356       if diff conftest.exp conftest.er2 >/dev/null; then
7357         lt_prog_compiler_static_works=yes
7358       fi
7359     else
7360       lt_prog_compiler_static_works=yes
7361     fi
7362   fi
7363   $rm conftest*
7364   LDFLAGS="$save_LDFLAGS"
7365
7366fi
7367{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7368echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7369
7370if test x"$lt_prog_compiler_static_works" = xyes; then
7371    :
7372else
7373    lt_prog_compiler_static=
7374fi
7375
7376
7377{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7378echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7379if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7380  echo $ECHO_N "(cached) $ECHO_C" >&6
7381else
7382  lt_cv_prog_compiler_c_o=no
7383   $rm -r conftest 2>/dev/null
7384   mkdir conftest
7385   cd conftest
7386   mkdir out
7387   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7388
7389   lt_compiler_flag="-o out/conftest2.$ac_objext"
7390   # Insert the option either (1) after the last *FLAGS variable, or
7391   # (2) before a word containing "conftest.", or (3) at the end.
7392   # Note that $ac_compile itself does not contain backslashes and begins
7393   # with a dollar sign (not a hyphen), so the echo should work correctly.
7394   lt_compile=`echo "$ac_compile" | $SED \
7395   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7396   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7397   -e 's:$: $lt_compiler_flag:'`
7398   (eval echo "\"\$as_me:7398: $lt_compile\"" >&5)
7399   (eval "$lt_compile" 2>out/conftest.err)
7400   ac_status=$?
7401   cat out/conftest.err >&5
7402   echo "$as_me:7402: \$? = $ac_status" >&5
7403   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7404   then
7405     # The compiler can only warn and ignore the option if not recognized
7406     # So say no if there are warnings
7407     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7408     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7409     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7410       lt_cv_prog_compiler_c_o=yes
7411     fi
7412   fi
7413   chmod u+w . 2>&5
7414   $rm conftest*
7415   # SGI C++ compiler will create directory out/ii_files/ for
7416   # template instantiation
7417   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7418   $rm out/* && rmdir out
7419   cd ..
7420   rmdir conftest
7421   $rm conftest*
7422
7423fi
7424{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7425echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7426
7427
7428hard_links="nottested"
7429if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7430  # do not overwrite the value of need_locks provided by the user
7431  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7432echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7433  hard_links=yes
7434  $rm conftest*
7435  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7436  touch conftest.a
7437  ln conftest.a conftest.b 2>&5 || hard_links=no
7438  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7439  { echo "$as_me:$LINENO: result: $hard_links" >&5
7440echo "${ECHO_T}$hard_links" >&6; }
7441  if test "$hard_links" = no; then
7442    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7443echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7444    need_locks=warn
7445  fi
7446else
7447  need_locks=no
7448fi
7449
7450{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7451echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7452
7453  runpath_var=
7454  allow_undefined_flag=
7455  enable_shared_with_static_runtimes=no
7456  archive_cmds=
7457  archive_expsym_cmds=
7458  old_archive_From_new_cmds=
7459  old_archive_from_expsyms_cmds=
7460  export_dynamic_flag_spec=
7461  whole_archive_flag_spec=
7462  thread_safe_flag_spec=
7463  hardcode_libdir_flag_spec=
7464  hardcode_libdir_flag_spec_ld=
7465  hardcode_libdir_separator=
7466  hardcode_direct=no
7467  hardcode_minus_L=no
7468  hardcode_shlibpath_var=unsupported
7469  link_all_deplibs=unknown
7470  hardcode_automatic=no
7471  module_cmds=
7472  module_expsym_cmds=
7473  always_export_symbols=no
7474  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7475  # include_expsyms should be a list of space-separated symbols to be *always*
7476  # included in the symbol list
7477  include_expsyms=
7478  # exclude_expsyms can be an extended regexp of symbols to exclude
7479  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7480  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7481  # as well as any symbol that contains `d'.
7482  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7483  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7484  # platforms (ab)use it in PIC code, but their linkers get confused if
7485  # the symbol is explicitly referenced.  Since portable code cannot
7486  # rely on this symbol name, it's probably fine to never include it in
7487  # preloaded symbol tables.
7488  extract_expsyms_cmds=
7489  # Just being paranoid about ensuring that cc_basename is set.
7490  for cc_temp in $compiler""; do
7491  case $cc_temp in
7492    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7493    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7494    \-*) ;;
7495    *) break;;
7496  esac
7497done
7498cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7499
7500  case $host_os in
7501  cygwin* | mingw* | pw32*)
7502    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7503    # When not using gcc, we currently assume that we are using
7504    # Microsoft Visual C++.
7505    if test "$GCC" != yes; then
7506      with_gnu_ld=no
7507    fi
7508    ;;
7509  interix*)
7510    # we just hope/assume this is gcc and not c89 (= MSVC++)
7511    with_gnu_ld=yes
7512    ;;
7513  openbsd*)
7514    with_gnu_ld=no
7515    ;;
7516  esac
7517
7518  ld_shlibs=yes
7519  if test "$with_gnu_ld" = yes; then
7520    # If archive_cmds runs LD, not CC, wlarc should be empty
7521    wlarc='${wl}'
7522
7523    # Set some defaults for GNU ld with shared library support. These
7524    # are reset later if shared libraries are not supported. Putting them
7525    # here allows them to be overridden if necessary.
7526    runpath_var=LD_RUN_PATH
7527    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7528    export_dynamic_flag_spec='${wl}--export-dynamic'
7529    # ancient GNU ld didn't support --whole-archive et. al.
7530    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7531	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7532      else
7533  	whole_archive_flag_spec=
7534    fi
7535    supports_anon_versioning=no
7536    case `$LD -v 2>/dev/null` in
7537      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7538      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7539      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7540      *\ 2.11.*) ;; # other 2.11 versions
7541      *) supports_anon_versioning=yes ;;
7542    esac
7543
7544    # See if GNU ld supports shared libraries.
7545    case $host_os in
7546    aix3* | aix4* | aix5*)
7547      # On AIX/PPC, the GNU linker is very broken
7548      if test "$host_cpu" != ia64; then
7549	ld_shlibs=no
7550	cat <<EOF 1>&2
7551
7552*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7553*** to be unable to reliably create shared libraries on AIX.
7554*** Therefore, libtool is disabling shared libraries support.  If you
7555*** really care for shared libraries, you may want to modify your PATH
7556*** so that a non-GNU linker is found, and then restart.
7557
7558EOF
7559      fi
7560      ;;
7561
7562    amigaos*)
7563      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)'
7564      hardcode_libdir_flag_spec='-L$libdir'
7565      hardcode_minus_L=yes
7566
7567      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7568      # that the semantics of dynamic libraries on AmigaOS, at least up
7569      # to version 4, is to share data among multiple programs linked
7570      # with the same dynamic library.  Since this doesn't match the
7571      # behavior of shared libraries on other platforms, we can't use
7572      # them.
7573      ld_shlibs=no
7574      ;;
7575
7576    beos*)
7577      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7578	allow_undefined_flag=unsupported
7579	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7580	# support --undefined.  This deserves some investigation.  FIXME
7581	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7582      else
7583	ld_shlibs=no
7584      fi
7585      ;;
7586
7587    cygwin* | mingw* | pw32*)
7588      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7589      # as there is no search path for DLLs.
7590      hardcode_libdir_flag_spec='-L$libdir'
7591      allow_undefined_flag=unsupported
7592      always_export_symbols=no
7593      enable_shared_with_static_runtimes=yes
7594      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7595
7596      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7597        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7598	# If the export-symbols file already is a .def file (1st line
7599	# is EXPORTS), use it as is; otherwise, prepend...
7600	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7601	  cp $export_symbols $output_objdir/$soname.def;
7602	else
7603	  echo EXPORTS > $output_objdir/$soname.def;
7604	  cat $export_symbols >> $output_objdir/$soname.def;
7605	fi~
7606	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7607      else
7608	ld_shlibs=no
7609      fi
7610      ;;
7611
7612    interix3*)
7613      hardcode_direct=no
7614      hardcode_shlibpath_var=no
7615      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7616      export_dynamic_flag_spec='${wl}-E'
7617      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7618      # Instead, shared libraries are loaded at an image base (0x10000000 by
7619      # default) and relocated if they conflict, which is a slow very memory
7620      # consuming and fragmenting process.  To avoid this, we pick a random,
7621      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7622      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7623      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7624      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'
7625      ;;
7626
7627    linux* | k*bsd*-gnu)
7628      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7629	tmp_addflag=
7630	case $cc_basename,$host_cpu in
7631	pgcc*)				# Portland Group C compiler
7632	  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'
7633	  tmp_addflag=' $pic_flag'
7634	  ;;
7635	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
7636	  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'
7637	  tmp_addflag=' $pic_flag -Mnomain' ;;
7638	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
7639	  tmp_addflag=' -i_dynamic' ;;
7640	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
7641	  tmp_addflag=' -i_dynamic -nofor_main' ;;
7642	ifc* | ifort*)			# Intel Fortran compiler
7643	  tmp_addflag=' -nofor_main' ;;
7644	esac
7645	archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7646
7647	if test $supports_anon_versioning = yes; then
7648	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7649  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7650  $echo "local: *; };" >> $output_objdir/$libname.ver~
7651	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7652	fi
7653	link_all_deplibs=no
7654      else
7655	ld_shlibs=no
7656      fi
7657      ;;
7658
7659    netbsd* | netbsdelf*-gnu)
7660      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7661	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7662	wlarc=
7663      else
7664	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7665	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7666      fi
7667      ;;
7668
7669    solaris*)
7670      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7671	ld_shlibs=no
7672	cat <<EOF 1>&2
7673
7674*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7675*** create shared libraries on Solaris systems.  Therefore, libtool
7676*** is disabling shared libraries support.  We urge you to upgrade GNU
7677*** binutils to release 2.9.1 or newer.  Another option is to modify
7678*** your PATH or compiler configuration so that the native linker is
7679*** used, and then restart.
7680
7681EOF
7682      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7683	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7684	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7685      else
7686	ld_shlibs=no
7687      fi
7688      ;;
7689
7690    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7691      case `$LD -v 2>&1` in
7692        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7693	ld_shlibs=no
7694	cat <<_LT_EOF 1>&2
7695
7696*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7697*** reliably create shared libraries on SCO systems.  Therefore, libtool
7698*** is disabling shared libraries support.  We urge you to upgrade GNU
7699*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7700*** your PATH or compiler configuration so that the native linker is
7701*** used, and then restart.
7702
7703_LT_EOF
7704	;;
7705	*)
7706	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7707	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7708	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7709	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7710	  else
7711	    ld_shlibs=no
7712	  fi
7713	;;
7714      esac
7715      ;;
7716
7717    sunos4*)
7718      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7719      wlarc=
7720      hardcode_direct=yes
7721      hardcode_shlibpath_var=no
7722      ;;
7723
7724    *)
7725      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7726	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7727	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7728      else
7729	ld_shlibs=no
7730      fi
7731      ;;
7732    esac
7733
7734    if test "$ld_shlibs" = no; then
7735      runpath_var=
7736      hardcode_libdir_flag_spec=
7737      export_dynamic_flag_spec=
7738      whole_archive_flag_spec=
7739    fi
7740  else
7741    # PORTME fill in a description of your system's linker (not GNU ld)
7742    case $host_os in
7743    aix3*)
7744      allow_undefined_flag=unsupported
7745      always_export_symbols=yes
7746      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'
7747      # Note: this linker hardcodes the directories in LIBPATH if there
7748      # are no directories specified by -L.
7749      hardcode_minus_L=yes
7750      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7751	# Neither direct hardcoding nor static linking is supported with a
7752	# broken collect2.
7753	hardcode_direct=unsupported
7754      fi
7755      ;;
7756
7757    aix4* | aix5*)
7758      if test "$host_cpu" = ia64; then
7759	# On IA64, the linker does run time linking by default, so we don't
7760	# have to do anything special.
7761	aix_use_runtimelinking=no
7762	exp_sym_flag='-Bexport'
7763	no_entry_flag=""
7764      else
7765	# If we're using GNU nm, then we don't want the "-C" option.
7766	# -C means demangle to AIX nm, but means don't demangle with GNU nm
7767	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7768	  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'
7769	else
7770	  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'
7771	fi
7772	aix_use_runtimelinking=no
7773
7774	# Test if we are trying to use run time linking or normal
7775	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
7776	# need to do runtime linking.
7777	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7778	  for ld_flag in $LDFLAGS; do
7779  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7780  	    aix_use_runtimelinking=yes
7781  	    break
7782  	  fi
7783	  done
7784	  ;;
7785	esac
7786
7787	exp_sym_flag='-bexport'
7788	no_entry_flag='-bnoentry'
7789      fi
7790
7791      # When large executables or shared objects are built, AIX ld can
7792      # have problems creating the table of contents.  If linking a library
7793      # or program results in "error TOC overflow" add -mminimal-toc to
7794      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7795      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7796
7797      archive_cmds=''
7798      hardcode_direct=yes
7799      hardcode_libdir_separator=':'
7800      link_all_deplibs=yes
7801
7802      if test "$GCC" = yes; then
7803	case $host_os in aix4.[012]|aix4.[012].*)
7804	# We only want to do this on AIX 4.2 and lower, the check
7805	# below for broken collect2 doesn't work under 4.3+
7806	  collect2name=`${CC} -print-prog-name=collect2`
7807	  if test -f "$collect2name" && \
7808  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
7809	  then
7810  	  # We have reworked collect2
7811  	  hardcode_direct=yes
7812	  else
7813  	  # We have old collect2
7814  	  hardcode_direct=unsupported
7815  	  # It fails to find uninstalled libraries when the uninstalled
7816  	  # path is not listed in the libpath.  Setting hardcode_minus_L
7817  	  # to unsupported forces relinking
7818  	  hardcode_minus_L=yes
7819  	  hardcode_libdir_flag_spec='-L$libdir'
7820  	  hardcode_libdir_separator=
7821	  fi
7822	  ;;
7823	esac
7824	shared_flag='-shared'
7825	if test "$aix_use_runtimelinking" = yes; then
7826	  shared_flag="$shared_flag "'${wl}-G'
7827	fi
7828      else
7829	# not using gcc
7830	if test "$host_cpu" = ia64; then
7831  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7832  	# chokes on -Wl,-G. The following line is correct:
7833	  shared_flag='-G'
7834	else
7835	  if test "$aix_use_runtimelinking" = yes; then
7836	    shared_flag='${wl}-G'
7837	  else
7838	    shared_flag='${wl}-bM:SRE'
7839	  fi
7840	fi
7841      fi
7842
7843      # It seems that -bexpall does not export symbols beginning with
7844      # underscore (_), so it is better to generate a list of symbols to export.
7845      always_export_symbols=yes
7846      if test "$aix_use_runtimelinking" = yes; then
7847	# Warning - without using the other runtime loading flags (-brtl),
7848	# -berok will link without error, but may produce a broken library.
7849	allow_undefined_flag='-berok'
7850       # Determine the default libpath from the value encoded in an empty executable.
7851       cat >conftest.$ac_ext <<_ACEOF
7852/* confdefs.h.  */
7853_ACEOF
7854cat confdefs.h >>conftest.$ac_ext
7855cat >>conftest.$ac_ext <<_ACEOF
7856/* end confdefs.h.  */
7857
7858int
7859main ()
7860{
7861
7862  ;
7863  return 0;
7864}
7865_ACEOF
7866rm -f conftest.$ac_objext conftest$ac_exeext
7867if { (ac_try="$ac_link"
7868case "(($ac_try" in
7869  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7870  *) ac_try_echo=$ac_try;;
7871esac
7872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7873  (eval "$ac_link") 2>conftest.er1
7874  ac_status=$?
7875  grep -v '^ *+' conftest.er1 >conftest.err
7876  rm -f conftest.er1
7877  cat conftest.err >&5
7878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7879  (exit $ac_status); } && {
7880	 test -z "$ac_c_werror_flag" ||
7881	 test ! -s conftest.err
7882       } && test -s conftest$ac_exeext &&
7883       $as_test_x conftest$ac_exeext; then
7884
7885aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7886}'`
7887# Check for a 64-bit object if we didn't find anything.
7888if 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; }
7889}'`; fi
7890else
7891  echo "$as_me: failed program was:" >&5
7892sed 's/^/| /' conftest.$ac_ext >&5
7893
7894
7895fi
7896
7897rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7898      conftest$ac_exeext conftest.$ac_ext
7899if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7900
7901       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7902	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"
7903       else
7904	if test "$host_cpu" = ia64; then
7905	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7906	  allow_undefined_flag="-z nodefs"
7907	  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"
7908	else
7909	 # Determine the default libpath from the value encoded in an empty executable.
7910	 cat >conftest.$ac_ext <<_ACEOF
7911/* confdefs.h.  */
7912_ACEOF
7913cat confdefs.h >>conftest.$ac_ext
7914cat >>conftest.$ac_ext <<_ACEOF
7915/* end confdefs.h.  */
7916
7917int
7918main ()
7919{
7920
7921  ;
7922  return 0;
7923}
7924_ACEOF
7925rm -f conftest.$ac_objext conftest$ac_exeext
7926if { (ac_try="$ac_link"
7927case "(($ac_try" in
7928  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7929  *) ac_try_echo=$ac_try;;
7930esac
7931eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7932  (eval "$ac_link") 2>conftest.er1
7933  ac_status=$?
7934  grep -v '^ *+' conftest.er1 >conftest.err
7935  rm -f conftest.er1
7936  cat conftest.err >&5
7937  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7938  (exit $ac_status); } && {
7939	 test -z "$ac_c_werror_flag" ||
7940	 test ! -s conftest.err
7941       } && test -s conftest$ac_exeext &&
7942       $as_test_x conftest$ac_exeext; then
7943
7944aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7945}'`
7946# Check for a 64-bit object if we didn't find anything.
7947if 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; }
7948}'`; fi
7949else
7950  echo "$as_me: failed program was:" >&5
7951sed 's/^/| /' conftest.$ac_ext >&5
7952
7953
7954fi
7955
7956rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7957      conftest$ac_exeext conftest.$ac_ext
7958if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7959
7960	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7961	  # Warning - without using the other run time loading flags,
7962	  # -berok will link without error, but may produce a broken library.
7963	  no_undefined_flag=' ${wl}-bernotok'
7964	  allow_undefined_flag=' ${wl}-berok'
7965	  # Exported symbols can be pulled into shared objects from archives
7966	  whole_archive_flag_spec='$convenience'
7967	  archive_cmds_need_lc=yes
7968	  # This is similar to how AIX traditionally builds its shared libraries.
7969	  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'
7970	fi
7971      fi
7972      ;;
7973
7974    amigaos*)
7975      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)'
7976      hardcode_libdir_flag_spec='-L$libdir'
7977      hardcode_minus_L=yes
7978      # see comment about different semantics on the GNU ld section
7979      ld_shlibs=no
7980      ;;
7981
7982    bsdi[45]*)
7983      export_dynamic_flag_spec=-rdynamic
7984      ;;
7985
7986    cygwin* | mingw* | pw32*)
7987      # When not using gcc, we currently assume that we are using
7988      # Microsoft Visual C++.
7989      # hardcode_libdir_flag_spec is actually meaningless, as there is
7990      # no search path for DLLs.
7991      hardcode_libdir_flag_spec=' '
7992      allow_undefined_flag=unsupported
7993      # Tell ltmain to make .lib files, not .a files.
7994      libext=lib
7995      # Tell ltmain to make .dll files, not .so files.
7996      shrext_cmds=".dll"
7997      # FIXME: Setting linknames here is a bad hack.
7998      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7999      # The linker will automatically build a .lib file if we build a DLL.
8000      old_archive_From_new_cmds='true'
8001      # FIXME: Should let the user specify the lib program.
8002      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8003      fix_srcfile_path='`cygpath -w "$srcfile"`'
8004      enable_shared_with_static_runtimes=yes
8005      ;;
8006
8007    darwin* | rhapsody*)
8008      case $host_os in
8009        rhapsody* | darwin1.[012])
8010         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8011         ;;
8012       *) # Darwin 1.3 on
8013         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8014           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8015         else
8016           case ${MACOSX_DEPLOYMENT_TARGET} in
8017             10.[012])
8018               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8019               ;;
8020             10.*)
8021               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8022               ;;
8023           esac
8024         fi
8025         ;;
8026      esac
8027      archive_cmds_need_lc=no
8028      hardcode_direct=no
8029      hardcode_automatic=yes
8030      hardcode_shlibpath_var=unsupported
8031      whole_archive_flag_spec=''
8032      link_all_deplibs=yes
8033    if test "$GCC" = yes ; then
8034    	output_verbose_link_cmd='echo'
8035        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8036      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8037      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8038      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}'
8039      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}'
8040    else
8041      case $cc_basename in
8042        xlc*)
8043         output_verbose_link_cmd='echo'
8044         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8045         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8046          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8047         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}'
8048          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}'
8049          ;;
8050       *)
8051         ld_shlibs=no
8052          ;;
8053      esac
8054    fi
8055      ;;
8056
8057    dgux*)
8058      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8059      hardcode_libdir_flag_spec='-L$libdir'
8060      hardcode_shlibpath_var=no
8061      ;;
8062
8063    freebsd1*)
8064      ld_shlibs=no
8065      ;;
8066
8067    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8068    # support.  Future versions do this automatically, but an explicit c++rt0.o
8069    # does not break anything, and helps significantly (at the cost of a little
8070    # extra space).
8071    freebsd2.2*)
8072      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8073      hardcode_libdir_flag_spec='-R$libdir'
8074      hardcode_direct=yes
8075      hardcode_shlibpath_var=no
8076      ;;
8077
8078    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8079    freebsd2*)
8080      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8081      hardcode_direct=yes
8082      hardcode_minus_L=yes
8083      hardcode_shlibpath_var=no
8084      ;;
8085
8086    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8087    freebsd* | dragonfly*)
8088      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8089      hardcode_libdir_flag_spec='-R$libdir'
8090      hardcode_direct=yes
8091      hardcode_shlibpath_var=no
8092      ;;
8093
8094    hpux9*)
8095      if test "$GCC" = yes; then
8096	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'
8097      else
8098	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'
8099      fi
8100      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8101      hardcode_libdir_separator=:
8102      hardcode_direct=yes
8103
8104      # hardcode_minus_L: Not really in the search PATH,
8105      # but as the default location of the library.
8106      hardcode_minus_L=yes
8107      export_dynamic_flag_spec='${wl}-E'
8108      ;;
8109
8110    hpux10*)
8111      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8112	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8113      else
8114	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8115      fi
8116      if test "$with_gnu_ld" = no; then
8117	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8118	hardcode_libdir_separator=:
8119
8120	hardcode_direct=yes
8121	export_dynamic_flag_spec='${wl}-E'
8122
8123	# hardcode_minus_L: Not really in the search PATH,
8124	# but as the default location of the library.
8125	hardcode_minus_L=yes
8126      fi
8127      ;;
8128
8129    hpux11*)
8130      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8131	case $host_cpu in
8132	hppa*64*)
8133	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8134	  ;;
8135	ia64*)
8136	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8137	  ;;
8138	*)
8139	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8140	  ;;
8141	esac
8142      else
8143	case $host_cpu in
8144	hppa*64*)
8145	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8146	  ;;
8147	ia64*)
8148	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8149	  ;;
8150	*)
8151	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8152	  ;;
8153	esac
8154      fi
8155      if test "$with_gnu_ld" = no; then
8156	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8157	hardcode_libdir_separator=:
8158
8159	case $host_cpu in
8160	hppa*64*|ia64*)
8161	  hardcode_libdir_flag_spec_ld='+b $libdir'
8162	  hardcode_direct=no
8163	  hardcode_shlibpath_var=no
8164	  ;;
8165	*)
8166	  hardcode_direct=yes
8167	  export_dynamic_flag_spec='${wl}-E'
8168
8169	  # hardcode_minus_L: Not really in the search PATH,
8170	  # but as the default location of the library.
8171	  hardcode_minus_L=yes
8172	  ;;
8173	esac
8174      fi
8175      ;;
8176
8177    irix5* | irix6* | nonstopux*)
8178      if test "$GCC" = yes; then
8179	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'
8180      else
8181	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'
8182	hardcode_libdir_flag_spec_ld='-rpath $libdir'
8183      fi
8184      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8185      hardcode_libdir_separator=:
8186      link_all_deplibs=yes
8187      ;;
8188
8189    netbsd* | netbsdelf*-gnu)
8190      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8191	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8192      else
8193	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8194      fi
8195      hardcode_libdir_flag_spec='-R$libdir'
8196      hardcode_direct=yes
8197      hardcode_shlibpath_var=no
8198      ;;
8199
8200    newsos6)
8201      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8202      hardcode_direct=yes
8203      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8204      hardcode_libdir_separator=:
8205      hardcode_shlibpath_var=no
8206      ;;
8207
8208    openbsd*)
8209      hardcode_direct=yes
8210      hardcode_shlibpath_var=no
8211      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8212	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8213	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8214	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8215	export_dynamic_flag_spec='${wl}-E'
8216      else
8217       case $host_os in
8218	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8219	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8220	   hardcode_libdir_flag_spec='-R$libdir'
8221	   ;;
8222	 *)
8223	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8224	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8225	   ;;
8226       esac
8227      fi
8228      ;;
8229
8230    os2*)
8231      hardcode_libdir_flag_spec='-L$libdir'
8232      hardcode_minus_L=yes
8233      allow_undefined_flag=unsupported
8234      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'
8235      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8236      ;;
8237
8238    osf3*)
8239      if test "$GCC" = yes; then
8240	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8241	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'
8242      else
8243	allow_undefined_flag=' -expect_unresolved \*'
8244	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'
8245      fi
8246      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8247      hardcode_libdir_separator=:
8248      ;;
8249
8250    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8251      if test "$GCC" = yes; then
8252	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8253	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'
8254	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8255      else
8256	allow_undefined_flag=' -expect_unresolved \*'
8257	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'
8258	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8259	$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'
8260
8261	# Both c and cxx compiler support -rpath directly
8262	hardcode_libdir_flag_spec='-rpath $libdir'
8263      fi
8264      hardcode_libdir_separator=:
8265      ;;
8266
8267    solaris*)
8268      no_undefined_flag=' -z text'
8269      if test "$GCC" = yes; then
8270	wlarc='${wl}'
8271	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8272	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8273	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8274      else
8275	wlarc=''
8276	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8277	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8278  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8279      fi
8280      hardcode_libdir_flag_spec='-R$libdir'
8281      hardcode_shlibpath_var=no
8282      case $host_os in
8283      solaris2.[0-5] | solaris2.[0-5].*) ;;
8284      *)
8285 	# The compiler driver will combine linker options so we
8286 	# cannot just pass the convience library names through
8287 	# without $wl, iff we do not link with $LD.
8288 	# Luckily, gcc supports the same syntax we need for Sun Studio.
8289 	# Supported since Solaris 2.6 (maybe 2.5.1?)
8290 	case $wlarc in
8291 	'')
8292 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8293 	*)
8294 	  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' ;;
8295 	esac ;;
8296      esac
8297      link_all_deplibs=yes
8298      ;;
8299
8300    sunos4*)
8301      if test "x$host_vendor" = xsequent; then
8302	# Use $CC to link under sequent, because it throws in some extra .o
8303	# files that make .init and .fini sections work.
8304	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8305      else
8306	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8307      fi
8308      hardcode_libdir_flag_spec='-L$libdir'
8309      hardcode_direct=yes
8310      hardcode_minus_L=yes
8311      hardcode_shlibpath_var=no
8312      ;;
8313
8314    sysv4)
8315      case $host_vendor in
8316	sni)
8317	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8318	  hardcode_direct=yes # is this really true???
8319	;;
8320	siemens)
8321	  ## LD is ld it makes a PLAMLIB
8322	  ## CC just makes a GrossModule.
8323	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8324	  reload_cmds='$CC -r -o $output$reload_objs'
8325	  hardcode_direct=no
8326        ;;
8327	motorola)
8328	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8329	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8330	;;
8331      esac
8332      runpath_var='LD_RUN_PATH'
8333      hardcode_shlibpath_var=no
8334      ;;
8335
8336    sysv4.3*)
8337      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8338      hardcode_shlibpath_var=no
8339      export_dynamic_flag_spec='-Bexport'
8340      ;;
8341
8342    sysv4*MP*)
8343      if test -d /usr/nec; then
8344	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8345	hardcode_shlibpath_var=no
8346	runpath_var=LD_RUN_PATH
8347	hardcode_runpath_var=yes
8348	ld_shlibs=yes
8349      fi
8350      ;;
8351
8352    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8353      no_undefined_flag='${wl}-z,text'
8354      archive_cmds_need_lc=no
8355      hardcode_shlibpath_var=no
8356      runpath_var='LD_RUN_PATH'
8357
8358      if test "$GCC" = yes; then
8359	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8360	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8361      else
8362	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8363	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8364      fi
8365      ;;
8366
8367    sysv5* | sco3.2v5* | sco5v6*)
8368      # Note: We can NOT use -z defs as we might desire, because we do not
8369      # link with -lc, and that would cause any symbols used from libc to
8370      # always be unresolved, which means just about no library would
8371      # ever link correctly.  If we're not using GNU ld we use -z text
8372      # though, which does catch some bad symbols but isn't as heavy-handed
8373      # as -z defs.
8374      no_undefined_flag='${wl}-z,text'
8375      allow_undefined_flag='${wl}-z,nodefs'
8376      archive_cmds_need_lc=no
8377      hardcode_shlibpath_var=no
8378      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8379      hardcode_libdir_separator=':'
8380      link_all_deplibs=yes
8381      export_dynamic_flag_spec='${wl}-Bexport'
8382      runpath_var='LD_RUN_PATH'
8383
8384      if test "$GCC" = yes; then
8385	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8386	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8387      else
8388	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8389	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8390      fi
8391      ;;
8392
8393    uts4*)
8394      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8395      hardcode_libdir_flag_spec='-L$libdir'
8396      hardcode_shlibpath_var=no
8397      ;;
8398
8399    *)
8400      ld_shlibs=no
8401      ;;
8402    esac
8403  fi
8404
8405{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8406echo "${ECHO_T}$ld_shlibs" >&6; }
8407test "$ld_shlibs" = no && can_build_shared=no
8408
8409#
8410# Do we need to explicitly link libc?
8411#
8412case "x$archive_cmds_need_lc" in
8413x|xyes)
8414  # Assume -lc should be added
8415  archive_cmds_need_lc=yes
8416
8417  if test "$enable_shared" = yes && test "$GCC" = yes; then
8418    case $archive_cmds in
8419    *'~'*)
8420      # FIXME: we may have to deal with multi-command sequences.
8421      ;;
8422    '$CC '*)
8423      # Test whether the compiler implicitly links with -lc since on some
8424      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8425      # to ld, don't add -lc before -lgcc.
8426      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8427echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8428      $rm conftest*
8429      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8430
8431      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8432  (eval $ac_compile) 2>&5
8433  ac_status=$?
8434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8435  (exit $ac_status); } 2>conftest.err; then
8436        soname=conftest
8437        lib=conftest
8438        libobjs=conftest.$ac_objext
8439        deplibs=
8440        wl=$lt_prog_compiler_wl
8441	pic_flag=$lt_prog_compiler_pic
8442        compiler_flags=-v
8443        linker_flags=-v
8444        verstring=
8445        output_objdir=.
8446        libname=conftest
8447        lt_save_allow_undefined_flag=$allow_undefined_flag
8448        allow_undefined_flag=
8449        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8450  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8451  ac_status=$?
8452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8453  (exit $ac_status); }
8454        then
8455	  archive_cmds_need_lc=no
8456        else
8457	  archive_cmds_need_lc=yes
8458        fi
8459        allow_undefined_flag=$lt_save_allow_undefined_flag
8460      else
8461        cat conftest.err 1>&5
8462      fi
8463      $rm conftest*
8464      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8465echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8466      ;;
8467    esac
8468  fi
8469  ;;
8470esac
8471
8472{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8473echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8474library_names_spec=
8475libname_spec='lib$name'
8476soname_spec=
8477shrext_cmds=".so"
8478postinstall_cmds=
8479postuninstall_cmds=
8480finish_cmds=
8481finish_eval=
8482shlibpath_var=
8483shlibpath_overrides_runpath=unknown
8484version_type=none
8485dynamic_linker="$host_os ld.so"
8486sys_lib_dlsearch_path_spec="/lib /usr/lib"
8487if test "$GCC" = yes; then
8488  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8489  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8490    # if the path contains ";" then we assume it to be the separator
8491    # otherwise default to the standard path separator (i.e. ":") - it is
8492    # assumed that no part of a normal pathname contains ";" but that should
8493    # okay in the real world where ";" in dirpaths is itself problematic.
8494    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8495  else
8496    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8497  fi
8498else
8499  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8500fi
8501need_lib_prefix=unknown
8502hardcode_into_libs=no
8503
8504# when you set need_version to no, make sure it does not cause -set_version
8505# flags to be left without arguments
8506need_version=unknown
8507
8508case $host_os in
8509aix3*)
8510  version_type=linux
8511  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8512  shlibpath_var=LIBPATH
8513
8514  # AIX 3 has no versioning support, so we append a major version to the name.
8515  soname_spec='${libname}${release}${shared_ext}$major'
8516  ;;
8517
8518aix4* | aix5*)
8519  version_type=linux
8520  need_lib_prefix=no
8521  need_version=no
8522  hardcode_into_libs=yes
8523  if test "$host_cpu" = ia64; then
8524    # AIX 5 supports IA64
8525    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8526    shlibpath_var=LD_LIBRARY_PATH
8527  else
8528    # With GCC up to 2.95.x, collect2 would create an import file
8529    # for dependence libraries.  The import file would start with
8530    # the line `#! .'.  This would cause the generated library to
8531    # depend on `.', always an invalid library.  This was fixed in
8532    # development snapshots of GCC prior to 3.0.
8533    case $host_os in
8534      aix4 | aix4.[01] | aix4.[01].*)
8535      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8536	   echo ' yes '
8537	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8538	:
8539      else
8540	can_build_shared=no
8541      fi
8542      ;;
8543    esac
8544    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8545    # soname into executable. Probably we can add versioning support to
8546    # collect2, so additional links can be useful in future.
8547    if test "$aix_use_runtimelinking" = yes; then
8548      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8549      # instead of lib<name>.a to let people know that these are not
8550      # typical AIX shared libraries.
8551      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8552    else
8553      # We preserve .a as extension for shared libraries through AIX4.2
8554      # and later when we are not doing run time linking.
8555      library_names_spec='${libname}${release}.a $libname.a'
8556      soname_spec='${libname}${release}${shared_ext}$major'
8557    fi
8558    shlibpath_var=LIBPATH
8559  fi
8560  ;;
8561
8562amigaos*)
8563  library_names_spec='$libname.ixlibrary $libname.a'
8564  # Create ${libname}_ixlibrary.a entries in /sys/libs.
8565  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'
8566  ;;
8567
8568beos*)
8569  library_names_spec='${libname}${shared_ext}'
8570  dynamic_linker="$host_os ld.so"
8571  shlibpath_var=LIBRARY_PATH
8572  ;;
8573
8574bsdi[45]*)
8575  version_type=linux
8576  need_version=no
8577  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8578  soname_spec='${libname}${release}${shared_ext}$major'
8579  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8580  shlibpath_var=LD_LIBRARY_PATH
8581  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8582  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8583  # the default ld.so.conf also contains /usr/contrib/lib and
8584  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8585  # libtool to hard-code these into programs
8586  ;;
8587
8588cygwin* | mingw* | pw32*)
8589  version_type=windows
8590  shrext_cmds=".dll"
8591  need_version=no
8592  need_lib_prefix=no
8593
8594  case $GCC,$host_os in
8595  yes,cygwin* | yes,mingw* | yes,pw32*)
8596    library_names_spec='$libname.dll.a'
8597    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8598    postinstall_cmds='base_file=`basename \${file}`~
8599      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8600      dldir=$destdir/`dirname \$dlpath`~
8601      test -d \$dldir || mkdir -p \$dldir~
8602      $install_prog $dir/$dlname \$dldir/$dlname~
8603      chmod a+x \$dldir/$dlname'
8604    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8605      dlpath=$dir/\$dldll~
8606       $rm \$dlpath'
8607    shlibpath_overrides_runpath=yes
8608
8609    case $host_os in
8610    cygwin*)
8611      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8612      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8613      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8614      ;;
8615    mingw*)
8616      # MinGW DLLs use traditional 'lib' prefix
8617      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8618      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8619      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8620        # It is most probably a Windows format PATH printed by
8621        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8622        # path with ; separators, and with drive letters. We can handle the
8623        # drive letters (cygwin fileutils understands them), so leave them,
8624        # especially as we might pass files found there to a mingw objdump,
8625        # which wouldn't understand a cygwinified path. Ahh.
8626        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8627      else
8628        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8629      fi
8630      ;;
8631    pw32*)
8632      # pw32 DLLs use 'pw' prefix rather than 'lib'
8633      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8634      ;;
8635    esac
8636    ;;
8637
8638  *)
8639    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8640    ;;
8641  esac
8642  dynamic_linker='Win32 ld.exe'
8643  # FIXME: first we should search . and the directory the executable is in
8644  shlibpath_var=PATH
8645  ;;
8646
8647darwin* | rhapsody*)
8648  dynamic_linker="$host_os dyld"
8649  version_type=darwin
8650  need_lib_prefix=no
8651  need_version=no
8652  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8653  soname_spec='${libname}${release}${major}$shared_ext'
8654  shlibpath_overrides_runpath=yes
8655  shlibpath_var=DYLD_LIBRARY_PATH
8656  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8657  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8658  if test "$GCC" = yes; then
8659    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"`
8660  else
8661    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8662  fi
8663  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8664  ;;
8665
8666dgux*)
8667  version_type=linux
8668  need_lib_prefix=no
8669  need_version=no
8670  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8671  soname_spec='${libname}${release}${shared_ext}$major'
8672  shlibpath_var=LD_LIBRARY_PATH
8673  ;;
8674
8675freebsd1*)
8676  dynamic_linker=no
8677  ;;
8678
8679freebsd* | dragonfly*)
8680  # DragonFly does not have aout.  When/if they implement a new
8681  # versioning mechanism, adjust this.
8682  if test -x /usr/bin/objformat; then
8683    objformat=`/usr/bin/objformat`
8684  else
8685    case $host_os in
8686    freebsd[123]*) objformat=aout ;;
8687    *) objformat=elf ;;
8688    esac
8689  fi
8690  version_type=freebsd-$objformat
8691  case $version_type in
8692    freebsd-elf*)
8693      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8694      need_version=no
8695      need_lib_prefix=no
8696      ;;
8697    freebsd-*)
8698      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8699      need_version=yes
8700      ;;
8701  esac
8702  shlibpath_var=LD_LIBRARY_PATH
8703  case $host_os in
8704  freebsd2*)
8705    shlibpath_overrides_runpath=yes
8706    ;;
8707  freebsd3.[01]* | freebsdelf3.[01]*)
8708    shlibpath_overrides_runpath=yes
8709    hardcode_into_libs=yes
8710    ;;
8711  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8712  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8713    shlibpath_overrides_runpath=no
8714    hardcode_into_libs=yes
8715    ;;
8716  freebsd*) # from 4.6 on
8717    shlibpath_overrides_runpath=yes
8718    hardcode_into_libs=yes
8719    ;;
8720  esac
8721  ;;
8722
8723gnu*)
8724  version_type=linux
8725  need_lib_prefix=no
8726  need_version=no
8727  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8728  soname_spec='${libname}${release}${shared_ext}$major'
8729  shlibpath_var=LD_LIBRARY_PATH
8730  hardcode_into_libs=yes
8731  ;;
8732
8733hpux9* | hpux10* | hpux11*)
8734  # Give a soname corresponding to the major version so that dld.sl refuses to
8735  # link against other versions.
8736  version_type=sunos
8737  need_lib_prefix=no
8738  need_version=no
8739  case $host_cpu in
8740  ia64*)
8741    shrext_cmds='.so'
8742    hardcode_into_libs=yes
8743    dynamic_linker="$host_os dld.so"
8744    shlibpath_var=LD_LIBRARY_PATH
8745    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8746    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8747    soname_spec='${libname}${release}${shared_ext}$major'
8748    if test "X$HPUX_IA64_MODE" = X32; then
8749      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8750    else
8751      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8752    fi
8753    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8754    ;;
8755   hppa*64*)
8756     shrext_cmds='.sl'
8757     hardcode_into_libs=yes
8758     dynamic_linker="$host_os dld.sl"
8759     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8760     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8761     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8762     soname_spec='${libname}${release}${shared_ext}$major'
8763     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8764     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8765     ;;
8766   *)
8767    shrext_cmds='.sl'
8768    dynamic_linker="$host_os dld.sl"
8769    shlibpath_var=SHLIB_PATH
8770    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8771    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8772    soname_spec='${libname}${release}${shared_ext}$major'
8773    ;;
8774  esac
8775  # HP-UX runs *really* slowly unless shared libraries are mode 555.
8776  postinstall_cmds='chmod 555 $lib'
8777  ;;
8778
8779interix3*)
8780  version_type=linux
8781  need_lib_prefix=no
8782  need_version=no
8783  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8784  soname_spec='${libname}${release}${shared_ext}$major'
8785  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8786  shlibpath_var=LD_LIBRARY_PATH
8787  shlibpath_overrides_runpath=no
8788  hardcode_into_libs=yes
8789  ;;
8790
8791irix5* | irix6* | nonstopux*)
8792  case $host_os in
8793    nonstopux*) version_type=nonstopux ;;
8794    *)
8795	if test "$lt_cv_prog_gnu_ld" = yes; then
8796		version_type=linux
8797	else
8798		version_type=irix
8799	fi ;;
8800  esac
8801  need_lib_prefix=no
8802  need_version=no
8803  soname_spec='${libname}${release}${shared_ext}$major'
8804  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8805  case $host_os in
8806  irix5* | nonstopux*)
8807    libsuff= shlibsuff=
8808    ;;
8809  *)
8810    case $LD in # libtool.m4 will add one of these switches to LD
8811    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8812      libsuff= shlibsuff= libmagic=32-bit;;
8813    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8814      libsuff=32 shlibsuff=N32 libmagic=N32;;
8815    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8816      libsuff=64 shlibsuff=64 libmagic=64-bit;;
8817    *) libsuff= shlibsuff= libmagic=never-match;;
8818    esac
8819    ;;
8820  esac
8821  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8822  shlibpath_overrides_runpath=no
8823  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8824  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8825  hardcode_into_libs=yes
8826  ;;
8827
8828# No shared lib support for Linux oldld, aout, or coff.
8829linux*oldld* | linux*aout* | linux*coff*)
8830  dynamic_linker=no
8831  ;;
8832
8833# This must be Linux ELF.
8834linux* | k*bsd*-gnu)
8835  version_type=linux
8836  need_lib_prefix=no
8837  need_version=no
8838  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8839  soname_spec='${libname}${release}${shared_ext}$major'
8840  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8841  shlibpath_var=LD_LIBRARY_PATH
8842  shlibpath_overrides_runpath=no
8843  # This implies no fast_install, which is unacceptable.
8844  # Some rework will be needed to allow for fast_install
8845  # before this can be enabled.
8846  hardcode_into_libs=yes
8847
8848  # Append ld.so.conf contents to the search path
8849  if test -f /etc/ld.so.conf; then
8850    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' ' '`
8851    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8852  fi
8853
8854  # We used to test for /lib/ld.so.1 and disable shared libraries on
8855  # powerpc, because MkLinux only supported shared libraries with the
8856  # GNU dynamic linker.  Since this was broken with cross compilers,
8857  # most powerpc-linux boxes support dynamic linking these days and
8858  # people can always --disable-shared, the test was removed, and we
8859  # assume the GNU/Linux dynamic linker is in use.
8860  dynamic_linker='GNU/Linux ld.so'
8861  ;;
8862
8863netbsdelf*-gnu)
8864  version_type=linux
8865  need_lib_prefix=no
8866  need_version=no
8867  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8868  soname_spec='${libname}${release}${shared_ext}$major'
8869  shlibpath_var=LD_LIBRARY_PATH
8870  shlibpath_overrides_runpath=no
8871  hardcode_into_libs=yes
8872  dynamic_linker='NetBSD ld.elf_so'
8873  ;;
8874
8875netbsd*)
8876  version_type=sunos
8877  need_lib_prefix=no
8878  need_version=no
8879  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8880    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8881    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8882    dynamic_linker='NetBSD (a.out) ld.so'
8883  else
8884    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8885    soname_spec='${libname}${release}${shared_ext}$major'
8886    dynamic_linker='NetBSD ld.elf_so'
8887  fi
8888  shlibpath_var=LD_LIBRARY_PATH
8889  shlibpath_overrides_runpath=yes
8890  hardcode_into_libs=yes
8891  ;;
8892
8893newsos6)
8894  version_type=linux
8895  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8896  shlibpath_var=LD_LIBRARY_PATH
8897  shlibpath_overrides_runpath=yes
8898  ;;
8899
8900nto-qnx*)
8901  version_type=linux
8902  need_lib_prefix=no
8903  need_version=no
8904  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8905  soname_spec='${libname}${release}${shared_ext}$major'
8906  shlibpath_var=LD_LIBRARY_PATH
8907  shlibpath_overrides_runpath=yes
8908  ;;
8909
8910openbsd*)
8911  version_type=sunos
8912  sys_lib_dlsearch_path_spec="/usr/lib"
8913  need_lib_prefix=no
8914  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8915  case $host_os in
8916    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8917    *)                         need_version=no  ;;
8918  esac
8919  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8920  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8921  shlibpath_var=LD_LIBRARY_PATH
8922  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8923    case $host_os in
8924      openbsd2.[89] | openbsd2.[89].*)
8925	shlibpath_overrides_runpath=no
8926	;;
8927      *)
8928	shlibpath_overrides_runpath=yes
8929	;;
8930      esac
8931  else
8932    shlibpath_overrides_runpath=yes
8933  fi
8934  ;;
8935
8936os2*)
8937  libname_spec='$name'
8938  shrext_cmds=".dll"
8939  need_lib_prefix=no
8940  library_names_spec='$libname${shared_ext} $libname.a'
8941  dynamic_linker='OS/2 ld.exe'
8942  shlibpath_var=LIBPATH
8943  ;;
8944
8945osf3* | osf4* | osf5*)
8946  version_type=osf
8947  need_lib_prefix=no
8948  need_version=no
8949  soname_spec='${libname}${release}${shared_ext}$major'
8950  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8951  shlibpath_var=LD_LIBRARY_PATH
8952  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8953  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8954  ;;
8955
8956solaris*)
8957  version_type=linux
8958  need_lib_prefix=no
8959  need_version=no
8960  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8961  soname_spec='${libname}${release}${shared_ext}$major'
8962  shlibpath_var=LD_LIBRARY_PATH
8963  shlibpath_overrides_runpath=yes
8964  hardcode_into_libs=yes
8965  # ldd complains unless libraries are executable
8966  postinstall_cmds='chmod +x $lib'
8967  ;;
8968
8969sunos4*)
8970  version_type=sunos
8971  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8972  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8973  shlibpath_var=LD_LIBRARY_PATH
8974  shlibpath_overrides_runpath=yes
8975  if test "$with_gnu_ld" = yes; then
8976    need_lib_prefix=no
8977  fi
8978  need_version=yes
8979  ;;
8980
8981sysv4 | sysv4.3*)
8982  version_type=linux
8983  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8984  soname_spec='${libname}${release}${shared_ext}$major'
8985  shlibpath_var=LD_LIBRARY_PATH
8986  case $host_vendor in
8987    sni)
8988      shlibpath_overrides_runpath=no
8989      need_lib_prefix=no
8990      export_dynamic_flag_spec='${wl}-Blargedynsym'
8991      runpath_var=LD_RUN_PATH
8992      ;;
8993    siemens)
8994      need_lib_prefix=no
8995      ;;
8996    motorola)
8997      need_lib_prefix=no
8998      need_version=no
8999      shlibpath_overrides_runpath=no
9000      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9001      ;;
9002  esac
9003  ;;
9004
9005sysv4*MP*)
9006  if test -d /usr/nec ;then
9007    version_type=linux
9008    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9009    soname_spec='$libname${shared_ext}.$major'
9010    shlibpath_var=LD_LIBRARY_PATH
9011  fi
9012  ;;
9013
9014sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9015  version_type=freebsd-elf
9016  need_lib_prefix=no
9017  need_version=no
9018  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9019  soname_spec='${libname}${release}${shared_ext}$major'
9020  shlibpath_var=LD_LIBRARY_PATH
9021  hardcode_into_libs=yes
9022  if test "$with_gnu_ld" = yes; then
9023    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9024    shlibpath_overrides_runpath=no
9025  else
9026    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9027    shlibpath_overrides_runpath=yes
9028    case $host_os in
9029      sco3.2v5*)
9030        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9031	;;
9032    esac
9033  fi
9034  sys_lib_dlsearch_path_spec='/usr/lib'
9035  ;;
9036
9037uts4*)
9038  version_type=linux
9039  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9040  soname_spec='${libname}${release}${shared_ext}$major'
9041  shlibpath_var=LD_LIBRARY_PATH
9042  ;;
9043
9044*)
9045  dynamic_linker=no
9046  ;;
9047esac
9048{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9049echo "${ECHO_T}$dynamic_linker" >&6; }
9050test "$dynamic_linker" = no && can_build_shared=no
9051
9052variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9053if test "$GCC" = yes; then
9054  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9055fi
9056
9057{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9058echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9059hardcode_action=
9060if test -n "$hardcode_libdir_flag_spec" || \
9061   test -n "$runpath_var" || \
9062   test "X$hardcode_automatic" = "Xyes" ; then
9063
9064  # We can hardcode non-existant directories.
9065  if test "$hardcode_direct" != no &&
9066     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9067     # have to relink, otherwise we might link with an installed library
9068     # when we should be linking with a yet-to-be-installed one
9069     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9070     test "$hardcode_minus_L" != no; then
9071    # Linking always hardcodes the temporary library directory.
9072    hardcode_action=relink
9073  else
9074    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9075    hardcode_action=immediate
9076  fi
9077else
9078  # We cannot hardcode anything, or else we can only hardcode existing
9079  # directories.
9080  hardcode_action=unsupported
9081fi
9082{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
9083echo "${ECHO_T}$hardcode_action" >&6; }
9084
9085if test "$hardcode_action" = relink; then
9086  # Fast installation is not supported
9087  enable_fast_install=no
9088elif test "$shlibpath_overrides_runpath" = yes ||
9089     test "$enable_shared" = no; then
9090  # Fast installation is not necessary
9091  enable_fast_install=needless
9092fi
9093
9094striplib=
9095old_striplib=
9096{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9097echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9098if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9099  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9100  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9101  { echo "$as_me:$LINENO: result: yes" >&5
9102echo "${ECHO_T}yes" >&6; }
9103else
9104# FIXME - insert some real tests, host_os isn't really good enough
9105  case $host_os in
9106   darwin*)
9107       if test -n "$STRIP" ; then
9108         striplib="$STRIP -x"
9109         { echo "$as_me:$LINENO: result: yes" >&5
9110echo "${ECHO_T}yes" >&6; }
9111       else
9112  { echo "$as_me:$LINENO: result: no" >&5
9113echo "${ECHO_T}no" >&6; }
9114fi
9115       ;;
9116   *)
9117  { echo "$as_me:$LINENO: result: no" >&5
9118echo "${ECHO_T}no" >&6; }
9119    ;;
9120  esac
9121fi
9122
9123if test "x$enable_dlopen" != xyes; then
9124  enable_dlopen=unknown
9125  enable_dlopen_self=unknown
9126  enable_dlopen_self_static=unknown
9127else
9128  lt_cv_dlopen=no
9129  lt_cv_dlopen_libs=
9130
9131  case $host_os in
9132  beos*)
9133    lt_cv_dlopen="load_add_on"
9134    lt_cv_dlopen_libs=
9135    lt_cv_dlopen_self=yes
9136    ;;
9137
9138  mingw* | pw32*)
9139    lt_cv_dlopen="LoadLibrary"
9140    lt_cv_dlopen_libs=
9141   ;;
9142
9143  cygwin*)
9144    lt_cv_dlopen="dlopen"
9145    lt_cv_dlopen_libs=
9146   ;;
9147
9148  darwin*)
9149  # if libdl is installed we need to link against it
9150    { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9151echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9152if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9153  echo $ECHO_N "(cached) $ECHO_C" >&6
9154else
9155  ac_check_lib_save_LIBS=$LIBS
9156LIBS="-ldl  $LIBS"
9157cat >conftest.$ac_ext <<_ACEOF
9158/* confdefs.h.  */
9159_ACEOF
9160cat confdefs.h >>conftest.$ac_ext
9161cat >>conftest.$ac_ext <<_ACEOF
9162/* end confdefs.h.  */
9163
9164/* Override any GCC internal prototype to avoid an error.
9165   Use char because int might match the return type of a GCC
9166   builtin and then its argument prototype would still apply.  */
9167#ifdef __cplusplus
9168extern "C"
9169#endif
9170char dlopen ();
9171int
9172main ()
9173{
9174return dlopen ();
9175  ;
9176  return 0;
9177}
9178_ACEOF
9179rm -f conftest.$ac_objext conftest$ac_exeext
9180if { (ac_try="$ac_link"
9181case "(($ac_try" in
9182  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9183  *) ac_try_echo=$ac_try;;
9184esac
9185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9186  (eval "$ac_link") 2>conftest.er1
9187  ac_status=$?
9188  grep -v '^ *+' conftest.er1 >conftest.err
9189  rm -f conftest.er1
9190  cat conftest.err >&5
9191  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9192  (exit $ac_status); } && {
9193	 test -z "$ac_c_werror_flag" ||
9194	 test ! -s conftest.err
9195       } && test -s conftest$ac_exeext &&
9196       $as_test_x conftest$ac_exeext; then
9197  ac_cv_lib_dl_dlopen=yes
9198else
9199  echo "$as_me: failed program was:" >&5
9200sed 's/^/| /' conftest.$ac_ext >&5
9201
9202	ac_cv_lib_dl_dlopen=no
9203fi
9204
9205rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9206      conftest$ac_exeext conftest.$ac_ext
9207LIBS=$ac_check_lib_save_LIBS
9208fi
9209{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9210echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9211if test $ac_cv_lib_dl_dlopen = yes; then
9212  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9213else
9214
9215    lt_cv_dlopen="dyld"
9216    lt_cv_dlopen_libs=
9217    lt_cv_dlopen_self=yes
9218
9219fi
9220
9221   ;;
9222
9223  *)
9224    { echo "$as_me:$LINENO: checking for shl_load" >&5
9225echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9226if test "${ac_cv_func_shl_load+set}" = set; then
9227  echo $ECHO_N "(cached) $ECHO_C" >&6
9228else
9229  cat >conftest.$ac_ext <<_ACEOF
9230/* confdefs.h.  */
9231_ACEOF
9232cat confdefs.h >>conftest.$ac_ext
9233cat >>conftest.$ac_ext <<_ACEOF
9234/* end confdefs.h.  */
9235/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9236   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9237#define shl_load innocuous_shl_load
9238
9239/* System header to define __stub macros and hopefully few prototypes,
9240    which can conflict with char shl_load (); below.
9241    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9242    <limits.h> exists even on freestanding compilers.  */
9243
9244#ifdef __STDC__
9245# include <limits.h>
9246#else
9247# include <assert.h>
9248#endif
9249
9250#undef shl_load
9251
9252/* Override any GCC internal prototype to avoid an error.
9253   Use char because int might match the return type of a GCC
9254   builtin and then its argument prototype would still apply.  */
9255#ifdef __cplusplus
9256extern "C"
9257#endif
9258char shl_load ();
9259/* The GNU C library defines this for functions which it implements
9260    to always fail with ENOSYS.  Some functions are actually named
9261    something starting with __ and the normal name is an alias.  */
9262#if defined __stub_shl_load || defined __stub___shl_load
9263choke me
9264#endif
9265
9266int
9267main ()
9268{
9269return shl_load ();
9270  ;
9271  return 0;
9272}
9273_ACEOF
9274rm -f conftest.$ac_objext conftest$ac_exeext
9275if { (ac_try="$ac_link"
9276case "(($ac_try" in
9277  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9278  *) ac_try_echo=$ac_try;;
9279esac
9280eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9281  (eval "$ac_link") 2>conftest.er1
9282  ac_status=$?
9283  grep -v '^ *+' conftest.er1 >conftest.err
9284  rm -f conftest.er1
9285  cat conftest.err >&5
9286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9287  (exit $ac_status); } && {
9288	 test -z "$ac_c_werror_flag" ||
9289	 test ! -s conftest.err
9290       } && test -s conftest$ac_exeext &&
9291       $as_test_x conftest$ac_exeext; then
9292  ac_cv_func_shl_load=yes
9293else
9294  echo "$as_me: failed program was:" >&5
9295sed 's/^/| /' conftest.$ac_ext >&5
9296
9297	ac_cv_func_shl_load=no
9298fi
9299
9300rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9301      conftest$ac_exeext conftest.$ac_ext
9302fi
9303{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9304echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9305if test $ac_cv_func_shl_load = yes; then
9306  lt_cv_dlopen="shl_load"
9307else
9308  { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9309echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9310if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9311  echo $ECHO_N "(cached) $ECHO_C" >&6
9312else
9313  ac_check_lib_save_LIBS=$LIBS
9314LIBS="-ldld  $LIBS"
9315cat >conftest.$ac_ext <<_ACEOF
9316/* confdefs.h.  */
9317_ACEOF
9318cat confdefs.h >>conftest.$ac_ext
9319cat >>conftest.$ac_ext <<_ACEOF
9320/* end confdefs.h.  */
9321
9322/* Override any GCC internal prototype to avoid an error.
9323   Use char because int might match the return type of a GCC
9324   builtin and then its argument prototype would still apply.  */
9325#ifdef __cplusplus
9326extern "C"
9327#endif
9328char shl_load ();
9329int
9330main ()
9331{
9332return shl_load ();
9333  ;
9334  return 0;
9335}
9336_ACEOF
9337rm -f conftest.$ac_objext conftest$ac_exeext
9338if { (ac_try="$ac_link"
9339case "(($ac_try" in
9340  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9341  *) ac_try_echo=$ac_try;;
9342esac
9343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9344  (eval "$ac_link") 2>conftest.er1
9345  ac_status=$?
9346  grep -v '^ *+' conftest.er1 >conftest.err
9347  rm -f conftest.er1
9348  cat conftest.err >&5
9349  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9350  (exit $ac_status); } && {
9351	 test -z "$ac_c_werror_flag" ||
9352	 test ! -s conftest.err
9353       } && test -s conftest$ac_exeext &&
9354       $as_test_x conftest$ac_exeext; then
9355  ac_cv_lib_dld_shl_load=yes
9356else
9357  echo "$as_me: failed program was:" >&5
9358sed 's/^/| /' conftest.$ac_ext >&5
9359
9360	ac_cv_lib_dld_shl_load=no
9361fi
9362
9363rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9364      conftest$ac_exeext conftest.$ac_ext
9365LIBS=$ac_check_lib_save_LIBS
9366fi
9367{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9368echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9369if test $ac_cv_lib_dld_shl_load = yes; then
9370  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9371else
9372  { echo "$as_me:$LINENO: checking for dlopen" >&5
9373echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9374if test "${ac_cv_func_dlopen+set}" = set; then
9375  echo $ECHO_N "(cached) $ECHO_C" >&6
9376else
9377  cat >conftest.$ac_ext <<_ACEOF
9378/* confdefs.h.  */
9379_ACEOF
9380cat confdefs.h >>conftest.$ac_ext
9381cat >>conftest.$ac_ext <<_ACEOF
9382/* end confdefs.h.  */
9383/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9384   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9385#define dlopen innocuous_dlopen
9386
9387/* System header to define __stub macros and hopefully few prototypes,
9388    which can conflict with char dlopen (); below.
9389    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9390    <limits.h> exists even on freestanding compilers.  */
9391
9392#ifdef __STDC__
9393# include <limits.h>
9394#else
9395# include <assert.h>
9396#endif
9397
9398#undef dlopen
9399
9400/* Override any GCC internal prototype to avoid an error.
9401   Use char because int might match the return type of a GCC
9402   builtin and then its argument prototype would still apply.  */
9403#ifdef __cplusplus
9404extern "C"
9405#endif
9406char dlopen ();
9407/* The GNU C library defines this for functions which it implements
9408    to always fail with ENOSYS.  Some functions are actually named
9409    something starting with __ and the normal name is an alias.  */
9410#if defined __stub_dlopen || defined __stub___dlopen
9411choke me
9412#endif
9413
9414int
9415main ()
9416{
9417return dlopen ();
9418  ;
9419  return 0;
9420}
9421_ACEOF
9422rm -f conftest.$ac_objext conftest$ac_exeext
9423if { (ac_try="$ac_link"
9424case "(($ac_try" in
9425  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9426  *) ac_try_echo=$ac_try;;
9427esac
9428eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9429  (eval "$ac_link") 2>conftest.er1
9430  ac_status=$?
9431  grep -v '^ *+' conftest.er1 >conftest.err
9432  rm -f conftest.er1
9433  cat conftest.err >&5
9434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9435  (exit $ac_status); } && {
9436	 test -z "$ac_c_werror_flag" ||
9437	 test ! -s conftest.err
9438       } && test -s conftest$ac_exeext &&
9439       $as_test_x conftest$ac_exeext; then
9440  ac_cv_func_dlopen=yes
9441else
9442  echo "$as_me: failed program was:" >&5
9443sed 's/^/| /' conftest.$ac_ext >&5
9444
9445	ac_cv_func_dlopen=no
9446fi
9447
9448rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9449      conftest$ac_exeext conftest.$ac_ext
9450fi
9451{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9452echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9453if test $ac_cv_func_dlopen = yes; then
9454  lt_cv_dlopen="dlopen"
9455else
9456  { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9457echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9458if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9459  echo $ECHO_N "(cached) $ECHO_C" >&6
9460else
9461  ac_check_lib_save_LIBS=$LIBS
9462LIBS="-ldl  $LIBS"
9463cat >conftest.$ac_ext <<_ACEOF
9464/* confdefs.h.  */
9465_ACEOF
9466cat confdefs.h >>conftest.$ac_ext
9467cat >>conftest.$ac_ext <<_ACEOF
9468/* end confdefs.h.  */
9469
9470/* Override any GCC internal prototype to avoid an error.
9471   Use char because int might match the return type of a GCC
9472   builtin and then its argument prototype would still apply.  */
9473#ifdef __cplusplus
9474extern "C"
9475#endif
9476char dlopen ();
9477int
9478main ()
9479{
9480return dlopen ();
9481  ;
9482  return 0;
9483}
9484_ACEOF
9485rm -f conftest.$ac_objext conftest$ac_exeext
9486if { (ac_try="$ac_link"
9487case "(($ac_try" in
9488  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9489  *) ac_try_echo=$ac_try;;
9490esac
9491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9492  (eval "$ac_link") 2>conftest.er1
9493  ac_status=$?
9494  grep -v '^ *+' conftest.er1 >conftest.err
9495  rm -f conftest.er1
9496  cat conftest.err >&5
9497  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9498  (exit $ac_status); } && {
9499	 test -z "$ac_c_werror_flag" ||
9500	 test ! -s conftest.err
9501       } && test -s conftest$ac_exeext &&
9502       $as_test_x conftest$ac_exeext; then
9503  ac_cv_lib_dl_dlopen=yes
9504else
9505  echo "$as_me: failed program was:" >&5
9506sed 's/^/| /' conftest.$ac_ext >&5
9507
9508	ac_cv_lib_dl_dlopen=no
9509fi
9510
9511rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9512      conftest$ac_exeext conftest.$ac_ext
9513LIBS=$ac_check_lib_save_LIBS
9514fi
9515{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9516echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9517if test $ac_cv_lib_dl_dlopen = yes; then
9518  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9519else
9520  { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9521echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9522if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9523  echo $ECHO_N "(cached) $ECHO_C" >&6
9524else
9525  ac_check_lib_save_LIBS=$LIBS
9526LIBS="-lsvld  $LIBS"
9527cat >conftest.$ac_ext <<_ACEOF
9528/* confdefs.h.  */
9529_ACEOF
9530cat confdefs.h >>conftest.$ac_ext
9531cat >>conftest.$ac_ext <<_ACEOF
9532/* end confdefs.h.  */
9533
9534/* Override any GCC internal prototype to avoid an error.
9535   Use char because int might match the return type of a GCC
9536   builtin and then its argument prototype would still apply.  */
9537#ifdef __cplusplus
9538extern "C"
9539#endif
9540char dlopen ();
9541int
9542main ()
9543{
9544return dlopen ();
9545  ;
9546  return 0;
9547}
9548_ACEOF
9549rm -f conftest.$ac_objext conftest$ac_exeext
9550if { (ac_try="$ac_link"
9551case "(($ac_try" in
9552  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9553  *) ac_try_echo=$ac_try;;
9554esac
9555eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9556  (eval "$ac_link") 2>conftest.er1
9557  ac_status=$?
9558  grep -v '^ *+' conftest.er1 >conftest.err
9559  rm -f conftest.er1
9560  cat conftest.err >&5
9561  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9562  (exit $ac_status); } && {
9563	 test -z "$ac_c_werror_flag" ||
9564	 test ! -s conftest.err
9565       } && test -s conftest$ac_exeext &&
9566       $as_test_x conftest$ac_exeext; then
9567  ac_cv_lib_svld_dlopen=yes
9568else
9569  echo "$as_me: failed program was:" >&5
9570sed 's/^/| /' conftest.$ac_ext >&5
9571
9572	ac_cv_lib_svld_dlopen=no
9573fi
9574
9575rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9576      conftest$ac_exeext conftest.$ac_ext
9577LIBS=$ac_check_lib_save_LIBS
9578fi
9579{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9580echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9581if test $ac_cv_lib_svld_dlopen = yes; then
9582  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9583else
9584  { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9585echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9586if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9587  echo $ECHO_N "(cached) $ECHO_C" >&6
9588else
9589  ac_check_lib_save_LIBS=$LIBS
9590LIBS="-ldld  $LIBS"
9591cat >conftest.$ac_ext <<_ACEOF
9592/* confdefs.h.  */
9593_ACEOF
9594cat confdefs.h >>conftest.$ac_ext
9595cat >>conftest.$ac_ext <<_ACEOF
9596/* end confdefs.h.  */
9597
9598/* Override any GCC internal prototype to avoid an error.
9599   Use char because int might match the return type of a GCC
9600   builtin and then its argument prototype would still apply.  */
9601#ifdef __cplusplus
9602extern "C"
9603#endif
9604char dld_link ();
9605int
9606main ()
9607{
9608return dld_link ();
9609  ;
9610  return 0;
9611}
9612_ACEOF
9613rm -f conftest.$ac_objext conftest$ac_exeext
9614if { (ac_try="$ac_link"
9615case "(($ac_try" in
9616  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9617  *) ac_try_echo=$ac_try;;
9618esac
9619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9620  (eval "$ac_link") 2>conftest.er1
9621  ac_status=$?
9622  grep -v '^ *+' conftest.er1 >conftest.err
9623  rm -f conftest.er1
9624  cat conftest.err >&5
9625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9626  (exit $ac_status); } && {
9627	 test -z "$ac_c_werror_flag" ||
9628	 test ! -s conftest.err
9629       } && test -s conftest$ac_exeext &&
9630       $as_test_x conftest$ac_exeext; then
9631  ac_cv_lib_dld_dld_link=yes
9632else
9633  echo "$as_me: failed program was:" >&5
9634sed 's/^/| /' conftest.$ac_ext >&5
9635
9636	ac_cv_lib_dld_dld_link=no
9637fi
9638
9639rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9640      conftest$ac_exeext conftest.$ac_ext
9641LIBS=$ac_check_lib_save_LIBS
9642fi
9643{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9644echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9645if test $ac_cv_lib_dld_dld_link = yes; then
9646  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9647fi
9648
9649
9650fi
9651
9652
9653fi
9654
9655
9656fi
9657
9658
9659fi
9660
9661
9662fi
9663
9664    ;;
9665  esac
9666
9667  if test "x$lt_cv_dlopen" != xno; then
9668    enable_dlopen=yes
9669  else
9670    enable_dlopen=no
9671  fi
9672
9673  case $lt_cv_dlopen in
9674  dlopen)
9675    save_CPPFLAGS="$CPPFLAGS"
9676    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9677
9678    save_LDFLAGS="$LDFLAGS"
9679    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9680
9681    save_LIBS="$LIBS"
9682    LIBS="$lt_cv_dlopen_libs $LIBS"
9683
9684    { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9685echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9686if test "${lt_cv_dlopen_self+set}" = set; then
9687  echo $ECHO_N "(cached) $ECHO_C" >&6
9688else
9689  	  if test "$cross_compiling" = yes; then :
9690  lt_cv_dlopen_self=cross
9691else
9692  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9693  lt_status=$lt_dlunknown
9694  cat > conftest.$ac_ext <<EOF
9695#line 9695 "configure"
9696#include "confdefs.h"
9697
9698#if HAVE_DLFCN_H
9699#include <dlfcn.h>
9700#endif
9701
9702#include <stdio.h>
9703
9704#ifdef RTLD_GLOBAL
9705#  define LT_DLGLOBAL		RTLD_GLOBAL
9706#else
9707#  ifdef DL_GLOBAL
9708#    define LT_DLGLOBAL		DL_GLOBAL
9709#  else
9710#    define LT_DLGLOBAL		0
9711#  endif
9712#endif
9713
9714/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9715   find out it does not work in some platform. */
9716#ifndef LT_DLLAZY_OR_NOW
9717#  ifdef RTLD_LAZY
9718#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9719#  else
9720#    ifdef DL_LAZY
9721#      define LT_DLLAZY_OR_NOW		DL_LAZY
9722#    else
9723#      ifdef RTLD_NOW
9724#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9725#      else
9726#        ifdef DL_NOW
9727#          define LT_DLLAZY_OR_NOW	DL_NOW
9728#        else
9729#          define LT_DLLAZY_OR_NOW	0
9730#        endif
9731#      endif
9732#    endif
9733#  endif
9734#endif
9735
9736#ifdef __cplusplus
9737extern "C" void exit (int);
9738#endif
9739
9740void fnord() { int i=42;}
9741int main ()
9742{
9743  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9744  int status = $lt_dlunknown;
9745
9746  if (self)
9747    {
9748      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9749      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9750      /* dlclose (self); */
9751    }
9752  else
9753    puts (dlerror ());
9754
9755    exit (status);
9756}
9757EOF
9758  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9759  (eval $ac_link) 2>&5
9760  ac_status=$?
9761  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9763    (./conftest; exit; ) >&5 2>/dev/null
9764    lt_status=$?
9765    case x$lt_status in
9766      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9767      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9768      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9769    esac
9770  else :
9771    # compilation failed
9772    lt_cv_dlopen_self=no
9773  fi
9774fi
9775rm -fr conftest*
9776
9777
9778fi
9779{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9780echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9781
9782    if test "x$lt_cv_dlopen_self" = xyes; then
9783      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9784      { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9785echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9786if test "${lt_cv_dlopen_self_static+set}" = set; then
9787  echo $ECHO_N "(cached) $ECHO_C" >&6
9788else
9789  	  if test "$cross_compiling" = yes; then :
9790  lt_cv_dlopen_self_static=cross
9791else
9792  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9793  lt_status=$lt_dlunknown
9794  cat > conftest.$ac_ext <<EOF
9795#line 9795 "configure"
9796#include "confdefs.h"
9797
9798#if HAVE_DLFCN_H
9799#include <dlfcn.h>
9800#endif
9801
9802#include <stdio.h>
9803
9804#ifdef RTLD_GLOBAL
9805#  define LT_DLGLOBAL		RTLD_GLOBAL
9806#else
9807#  ifdef DL_GLOBAL
9808#    define LT_DLGLOBAL		DL_GLOBAL
9809#  else
9810#    define LT_DLGLOBAL		0
9811#  endif
9812#endif
9813
9814/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9815   find out it does not work in some platform. */
9816#ifndef LT_DLLAZY_OR_NOW
9817#  ifdef RTLD_LAZY
9818#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9819#  else
9820#    ifdef DL_LAZY
9821#      define LT_DLLAZY_OR_NOW		DL_LAZY
9822#    else
9823#      ifdef RTLD_NOW
9824#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9825#      else
9826#        ifdef DL_NOW
9827#          define LT_DLLAZY_OR_NOW	DL_NOW
9828#        else
9829#          define LT_DLLAZY_OR_NOW	0
9830#        endif
9831#      endif
9832#    endif
9833#  endif
9834#endif
9835
9836#ifdef __cplusplus
9837extern "C" void exit (int);
9838#endif
9839
9840void fnord() { int i=42;}
9841int main ()
9842{
9843  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9844  int status = $lt_dlunknown;
9845
9846  if (self)
9847    {
9848      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9849      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9850      /* dlclose (self); */
9851    }
9852  else
9853    puts (dlerror ());
9854
9855    exit (status);
9856}
9857EOF
9858  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9859  (eval $ac_link) 2>&5
9860  ac_status=$?
9861  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9862  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9863    (./conftest; exit; ) >&5 2>/dev/null
9864    lt_status=$?
9865    case x$lt_status in
9866      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9867      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9868      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9869    esac
9870  else :
9871    # compilation failed
9872    lt_cv_dlopen_self_static=no
9873  fi
9874fi
9875rm -fr conftest*
9876
9877
9878fi
9879{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9880echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
9881    fi
9882
9883    CPPFLAGS="$save_CPPFLAGS"
9884    LDFLAGS="$save_LDFLAGS"
9885    LIBS="$save_LIBS"
9886    ;;
9887  esac
9888
9889  case $lt_cv_dlopen_self in
9890  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9891  *) enable_dlopen_self=unknown ;;
9892  esac
9893
9894  case $lt_cv_dlopen_self_static in
9895  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9896  *) enable_dlopen_self_static=unknown ;;
9897  esac
9898fi
9899
9900
9901# Report which library types will actually be built
9902{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9903echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
9904{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
9905echo "${ECHO_T}$can_build_shared" >&6; }
9906
9907{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9908echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
9909test "$can_build_shared" = "no" && enable_shared=no
9910
9911# On AIX, shared libraries and static libraries use the same namespace, and
9912# are all built from PIC.
9913case $host_os in
9914aix3*)
9915  test "$enable_shared" = yes && enable_static=no
9916  if test -n "$RANLIB"; then
9917    archive_cmds="$archive_cmds~\$RANLIB \$lib"
9918    postinstall_cmds='$RANLIB $lib'
9919  fi
9920  ;;
9921
9922aix4* | aix5*)
9923  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9924    test "$enable_shared" = yes && enable_static=no
9925  fi
9926    ;;
9927esac
9928{ echo "$as_me:$LINENO: result: $enable_shared" >&5
9929echo "${ECHO_T}$enable_shared" >&6; }
9930
9931{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9932echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
9933# Make sure either enable_shared or enable_static is yes.
9934test "$enable_shared" = yes || enable_static=yes
9935{ echo "$as_me:$LINENO: result: $enable_static" >&5
9936echo "${ECHO_T}$enable_static" >&6; }
9937
9938# The else clause should only fire when bootstrapping the
9939# libtool distribution, otherwise you forgot to ship ltmain.sh
9940# with your package, and you will get complaints that there are
9941# no rules to generate ltmain.sh.
9942if test -f "$ltmain"; then
9943  # See if we are running on zsh, and set the options which allow our commands through
9944  # without removal of \ escapes.
9945  if test -n "${ZSH_VERSION+set}" ; then
9946    setopt NO_GLOB_SUBST
9947  fi
9948  # Now quote all the things that may contain metacharacters while being
9949  # careful not to overquote the AC_SUBSTed values.  We take copies of the
9950  # variables and quote the copies for generation of the libtool script.
9951  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9952    SED SHELL STRIP \
9953    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9954    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9955    deplibs_check_method reload_flag reload_cmds need_locks \
9956    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9957    lt_cv_sys_global_symbol_to_c_name_address \
9958    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9959    old_postinstall_cmds old_postuninstall_cmds \
9960    compiler \
9961    CC \
9962    LD \
9963    lt_prog_compiler_wl \
9964    lt_prog_compiler_pic \
9965    lt_prog_compiler_static \
9966    lt_prog_compiler_no_builtin_flag \
9967    export_dynamic_flag_spec \
9968    thread_safe_flag_spec \
9969    whole_archive_flag_spec \
9970    enable_shared_with_static_runtimes \
9971    old_archive_cmds \
9972    old_archive_from_new_cmds \
9973    predep_objects \
9974    postdep_objects \
9975    predeps \
9976    postdeps \
9977    compiler_lib_search_path \
9978    archive_cmds \
9979    archive_expsym_cmds \
9980    postinstall_cmds \
9981    postuninstall_cmds \
9982    old_archive_from_expsyms_cmds \
9983    allow_undefined_flag \
9984    no_undefined_flag \
9985    export_symbols_cmds \
9986    hardcode_libdir_flag_spec \
9987    hardcode_libdir_flag_spec_ld \
9988    hardcode_libdir_separator \
9989    hardcode_automatic \
9990    module_cmds \
9991    module_expsym_cmds \
9992    lt_cv_prog_compiler_c_o \
9993    exclude_expsyms \
9994    include_expsyms; do
9995
9996    case $var in
9997    old_archive_cmds | \
9998    old_archive_from_new_cmds | \
9999    archive_cmds | \
10000    archive_expsym_cmds | \
10001    module_cmds | \
10002    module_expsym_cmds | \
10003    old_archive_from_expsyms_cmds | \
10004    export_symbols_cmds | \
10005    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10006    postinstall_cmds | postuninstall_cmds | \
10007    old_postinstall_cmds | old_postuninstall_cmds | \
10008    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10009      # Double-quote double-evaled strings.
10010      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10011      ;;
10012    *)
10013      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10014      ;;
10015    esac
10016  done
10017
10018  case $lt_echo in
10019  *'\$0 --fallback-echo"')
10020    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10021    ;;
10022  esac
10023
10024cfgfile="${ofile}T"
10025  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10026  $rm -f "$cfgfile"
10027  { echo "$as_me:$LINENO: creating $ofile" >&5
10028echo "$as_me: creating $ofile" >&6;}
10029
10030  cat <<__EOF__ >> "$cfgfile"
10031#! $SHELL
10032
10033# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10034# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10035# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10036#
10037# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10038# Free Software Foundation, Inc.
10039#
10040# This file is part of GNU Libtool:
10041# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10042#
10043# This program is free software; you can redistribute it and/or modify
10044# it under the terms of the GNU General Public License as published by
10045# the Free Software Foundation; either version 2 of the License, or
10046# (at your option) any later version.
10047#
10048# This program is distributed in the hope that it will be useful, but
10049# WITHOUT ANY WARRANTY; without even the implied warranty of
10050# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10051# General Public License for more details.
10052#
10053# You should have received a copy of the GNU General Public License
10054# along with this program; if not, write to the Free Software
10055# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10056#
10057# As a special exception to the GNU General Public License, if you
10058# distribute this file as part of a program that contains a
10059# configuration script generated by Autoconf, you may include it under
10060# the same distribution terms that you use for the rest of that program.
10061
10062# A sed program that does not truncate output.
10063SED=$lt_SED
10064
10065# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10066Xsed="$SED -e 1s/^X//"
10067
10068# The HP-UX ksh and POSIX shell print the target directory to stdout
10069# if CDPATH is set.
10070(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10071
10072# The names of the tagged configurations supported by this script.
10073available_tags=
10074
10075# ### BEGIN LIBTOOL CONFIG
10076
10077# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10078
10079# Shell to use when invoking shell scripts.
10080SHELL=$lt_SHELL
10081
10082# Whether or not to build shared libraries.
10083build_libtool_libs=$enable_shared
10084
10085# Whether or not to build static libraries.
10086build_old_libs=$enable_static
10087
10088# Whether or not to add -lc for building shared libraries.
10089build_libtool_need_lc=$archive_cmds_need_lc
10090
10091# Whether or not to disallow shared libs when runtime libs are static
10092allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10093
10094# Whether or not to optimize for fast installation.
10095fast_install=$enable_fast_install
10096
10097# The host system.
10098host_alias=$host_alias
10099host=$host
10100host_os=$host_os
10101
10102# The build system.
10103build_alias=$build_alias
10104build=$build
10105build_os=$build_os
10106
10107# An echo program that does not interpret backslashes.
10108echo=$lt_echo
10109
10110# The archiver.
10111AR=$lt_AR
10112AR_FLAGS=$lt_AR_FLAGS
10113
10114# A C compiler.
10115LTCC=$lt_LTCC
10116
10117# LTCC compiler flags.
10118LTCFLAGS=$lt_LTCFLAGS
10119
10120# A language-specific compiler.
10121CC=$lt_compiler
10122
10123# Is the compiler the GNU C compiler?
10124with_gcc=$GCC
10125
10126# An ERE matcher.
10127EGREP=$lt_EGREP
10128
10129# The linker used to build libraries.
10130LD=$lt_LD
10131
10132# Whether we need hard or soft links.
10133LN_S=$lt_LN_S
10134
10135# A BSD-compatible nm program.
10136NM=$lt_NM
10137
10138# A symbol stripping program
10139STRIP=$lt_STRIP
10140
10141# Used to examine libraries when file_magic_cmd begins "file"
10142MAGIC_CMD=$MAGIC_CMD
10143
10144# Used on cygwin: DLL creation program.
10145DLLTOOL="$DLLTOOL"
10146
10147# Used on cygwin: object dumper.
10148OBJDUMP="$OBJDUMP"
10149
10150# Used on cygwin: assembler.
10151AS="$AS"
10152
10153# The name of the directory that contains temporary libtool files.
10154objdir=$objdir
10155
10156# How to create reloadable object files.
10157reload_flag=$lt_reload_flag
10158reload_cmds=$lt_reload_cmds
10159
10160# How to pass a linker flag through the compiler.
10161wl=$lt_lt_prog_compiler_wl
10162
10163# Object file suffix (normally "o").
10164objext="$ac_objext"
10165
10166# Old archive suffix (normally "a").
10167libext="$libext"
10168
10169# Shared library suffix (normally ".so").
10170shrext_cmds='$shrext_cmds'
10171
10172# Executable file suffix (normally "").
10173exeext="$exeext"
10174
10175# Additional compiler flags for building library objects.
10176pic_flag=$lt_lt_prog_compiler_pic
10177pic_mode=$pic_mode
10178
10179# What is the maximum length of a command?
10180max_cmd_len=$lt_cv_sys_max_cmd_len
10181
10182# Does compiler simultaneously support -c and -o options?
10183compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10184
10185# Must we lock files when doing compilation?
10186need_locks=$lt_need_locks
10187
10188# Do we need the lib prefix for modules?
10189need_lib_prefix=$need_lib_prefix
10190
10191# Do we need a version for libraries?
10192need_version=$need_version
10193
10194# Whether dlopen is supported.
10195dlopen_support=$enable_dlopen
10196
10197# Whether dlopen of programs is supported.
10198dlopen_self=$enable_dlopen_self
10199
10200# Whether dlopen of statically linked programs is supported.
10201dlopen_self_static=$enable_dlopen_self_static
10202
10203# Compiler flag to prevent dynamic linking.
10204link_static_flag=$lt_lt_prog_compiler_static
10205
10206# Compiler flag to turn off builtin functions.
10207no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10208
10209# Compiler flag to allow reflexive dlopens.
10210export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10211
10212# Compiler flag to generate shared objects directly from archives.
10213whole_archive_flag_spec=$lt_whole_archive_flag_spec
10214
10215# Compiler flag to generate thread-safe objects.
10216thread_safe_flag_spec=$lt_thread_safe_flag_spec
10217
10218# Library versioning type.
10219version_type=$version_type
10220
10221# Format of library name prefix.
10222libname_spec=$lt_libname_spec
10223
10224# List of archive names.  First name is the real one, the rest are links.
10225# The last name is the one that the linker finds with -lNAME.
10226library_names_spec=$lt_library_names_spec
10227
10228# The coded name of the library, if different from the real name.
10229soname_spec=$lt_soname_spec
10230
10231# Commands used to build and install an old-style archive.
10232RANLIB=$lt_RANLIB
10233old_archive_cmds=$lt_old_archive_cmds
10234old_postinstall_cmds=$lt_old_postinstall_cmds
10235old_postuninstall_cmds=$lt_old_postuninstall_cmds
10236
10237# Create an old-style archive from a shared archive.
10238old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10239
10240# Create a temporary old-style archive to link instead of a shared archive.
10241old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10242
10243# Commands used to build and install a shared archive.
10244archive_cmds=$lt_archive_cmds
10245archive_expsym_cmds=$lt_archive_expsym_cmds
10246postinstall_cmds=$lt_postinstall_cmds
10247postuninstall_cmds=$lt_postuninstall_cmds
10248
10249# Commands used to build a loadable module (assumed same as above if empty)
10250module_cmds=$lt_module_cmds
10251module_expsym_cmds=$lt_module_expsym_cmds
10252
10253# Commands to strip libraries.
10254old_striplib=$lt_old_striplib
10255striplib=$lt_striplib
10256
10257# Dependencies to place before the objects being linked to create a
10258# shared library.
10259predep_objects=$lt_predep_objects
10260
10261# Dependencies to place after the objects being linked to create a
10262# shared library.
10263postdep_objects=$lt_postdep_objects
10264
10265# Dependencies to place before the objects being linked to create a
10266# shared library.
10267predeps=$lt_predeps
10268
10269# Dependencies to place after the objects being linked to create a
10270# shared library.
10271postdeps=$lt_postdeps
10272
10273# The library search path used internally by the compiler when linking
10274# a shared library.
10275compiler_lib_search_path=$lt_compiler_lib_search_path
10276
10277# Method to check whether dependent libraries are shared objects.
10278deplibs_check_method=$lt_deplibs_check_method
10279
10280# Command to use when deplibs_check_method == file_magic.
10281file_magic_cmd=$lt_file_magic_cmd
10282
10283# Flag that allows shared libraries with undefined symbols to be built.
10284allow_undefined_flag=$lt_allow_undefined_flag
10285
10286# Flag that forces no undefined symbols.
10287no_undefined_flag=$lt_no_undefined_flag
10288
10289# Commands used to finish a libtool library installation in a directory.
10290finish_cmds=$lt_finish_cmds
10291
10292# Same as above, but a single script fragment to be evaled but not shown.
10293finish_eval=$lt_finish_eval
10294
10295# Take the output of nm and produce a listing of raw symbols and C names.
10296global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10297
10298# Transform the output of nm in a proper C declaration
10299global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10300
10301# Transform the output of nm in a C name address pair
10302global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10303
10304# This is the shared library runtime path variable.
10305runpath_var=$runpath_var
10306
10307# This is the shared library path variable.
10308shlibpath_var=$shlibpath_var
10309
10310# Is shlibpath searched before the hard-coded library search path?
10311shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10312
10313# How to hardcode a shared library path into an executable.
10314hardcode_action=$hardcode_action
10315
10316# Whether we should hardcode library paths into libraries.
10317hardcode_into_libs=$hardcode_into_libs
10318
10319# Flag to hardcode \$libdir into a binary during linking.
10320# This must work even if \$libdir does not exist.
10321hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10322
10323# If ld is used when linking, flag to hardcode \$libdir into
10324# a binary during linking. This must work even if \$libdir does
10325# not exist.
10326hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10327
10328# Whether we need a single -rpath flag with a separated argument.
10329hardcode_libdir_separator=$lt_hardcode_libdir_separator
10330
10331# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10332# resulting binary.
10333hardcode_direct=$hardcode_direct
10334
10335# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10336# resulting binary.
10337hardcode_minus_L=$hardcode_minus_L
10338
10339# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10340# the resulting binary.
10341hardcode_shlibpath_var=$hardcode_shlibpath_var
10342
10343# Set to yes if building a shared library automatically hardcodes DIR into the library
10344# and all subsequent libraries and executables linked against it.
10345hardcode_automatic=$hardcode_automatic
10346
10347# Variables whose values should be saved in libtool wrapper scripts and
10348# restored at relink time.
10349variables_saved_for_relink="$variables_saved_for_relink"
10350
10351# Whether libtool must link a program against all its dependency libraries.
10352link_all_deplibs=$link_all_deplibs
10353
10354# Compile-time system search path for libraries
10355sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10356
10357# Run-time system search path for libraries
10358sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10359
10360# Fix the shell variable \$srcfile for the compiler.
10361fix_srcfile_path="$fix_srcfile_path"
10362
10363# Set to yes if exported symbols are required.
10364always_export_symbols=$always_export_symbols
10365
10366# The commands to list exported symbols.
10367export_symbols_cmds=$lt_export_symbols_cmds
10368
10369# The commands to extract the exported symbol list from a shared archive.
10370extract_expsyms_cmds=$lt_extract_expsyms_cmds
10371
10372# Symbols that should not be listed in the preloaded symbols.
10373exclude_expsyms=$lt_exclude_expsyms
10374
10375# Symbols that must always be exported.
10376include_expsyms=$lt_include_expsyms
10377
10378# ### END LIBTOOL CONFIG
10379
10380__EOF__
10381
10382
10383  case $host_os in
10384  aix3*)
10385    cat <<\EOF >> "$cfgfile"
10386
10387# AIX sometimes has problems with the GCC collect2 program.  For some
10388# reason, if we set the COLLECT_NAMES environment variable, the problems
10389# vanish in a puff of smoke.
10390if test "X${COLLECT_NAMES+set}" != Xset; then
10391  COLLECT_NAMES=
10392  export COLLECT_NAMES
10393fi
10394EOF
10395    ;;
10396  esac
10397
10398  # We use sed instead of cat because bash on DJGPP gets confused if
10399  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10400  # text mode, it properly converts lines to CR/LF.  This bash problem
10401  # is reportedly fixed, but why not run on old versions too?
10402  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10403
10404  mv -f "$cfgfile" "$ofile" || \
10405    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10406  chmod +x "$ofile"
10407
10408else
10409  # If there is no Makefile yet, we rely on a make rule to execute
10410  # `config.status --recheck' to rerun these tests and create the
10411  # libtool script then.
10412  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10413  if test -f "$ltmain_in"; then
10414    test -f Makefile && make "$ltmain"
10415  fi
10416fi
10417
10418
10419ac_ext=c
10420ac_cpp='$CPP $CPPFLAGS'
10421ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10422ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10423ac_compiler_gnu=$ac_cv_c_compiler_gnu
10424
10425CC="$lt_save_CC"
10426
10427
10428# Check whether --with-tags was given.
10429if test "${with_tags+set}" = set; then
10430  withval=$with_tags; tagnames="$withval"
10431fi
10432
10433
10434if test -f "$ltmain" && test -n "$tagnames"; then
10435  if test ! -f "${ofile}"; then
10436    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10437echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10438  fi
10439
10440  if test -z "$LTCC"; then
10441    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10442    if test -z "$LTCC"; then
10443      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10444echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10445    else
10446      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10447echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10448    fi
10449  fi
10450  if test -z "$LTCFLAGS"; then
10451    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10452  fi
10453
10454  # Extract list of available tagged configurations in $ofile.
10455  # Note that this assumes the entire list is on one line.
10456  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10457
10458  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10459  for tagname in $tagnames; do
10460    IFS="$lt_save_ifs"
10461    # Check whether tagname contains only valid characters
10462    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10463    "") ;;
10464    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10465echo "$as_me: error: invalid tag name: $tagname" >&2;}
10466   { (exit 1); exit 1; }; }
10467	;;
10468    esac
10469
10470    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10471    then
10472      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10473echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10474   { (exit 1); exit 1; }; }
10475    fi
10476
10477    # Update the list of available tags.
10478    if test -n "$tagname"; then
10479      echo appending configuration tag \"$tagname\" to $ofile
10480
10481      case $tagname in
10482      CXX)
10483	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10484	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10485	    (test "X$CXX" != "Xg++"))) ; then
10486	  ac_ext=cpp
10487ac_cpp='$CXXCPP $CPPFLAGS'
10488ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10489ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10490ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10491
10492
10493
10494
10495archive_cmds_need_lc_CXX=no
10496allow_undefined_flag_CXX=
10497always_export_symbols_CXX=no
10498archive_expsym_cmds_CXX=
10499export_dynamic_flag_spec_CXX=
10500hardcode_direct_CXX=no
10501hardcode_libdir_flag_spec_CXX=
10502hardcode_libdir_flag_spec_ld_CXX=
10503hardcode_libdir_separator_CXX=
10504hardcode_minus_L_CXX=no
10505hardcode_shlibpath_var_CXX=unsupported
10506hardcode_automatic_CXX=no
10507module_cmds_CXX=
10508module_expsym_cmds_CXX=
10509link_all_deplibs_CXX=unknown
10510old_archive_cmds_CXX=$old_archive_cmds
10511no_undefined_flag_CXX=
10512whole_archive_flag_spec_CXX=
10513enable_shared_with_static_runtimes_CXX=no
10514
10515# Dependencies to place before and after the object being linked:
10516predep_objects_CXX=
10517postdep_objects_CXX=
10518predeps_CXX=
10519postdeps_CXX=
10520compiler_lib_search_path_CXX=
10521
10522# Source file extension for C++ test sources.
10523ac_ext=cpp
10524
10525# Object file extension for compiled C++ test sources.
10526objext=o
10527objext_CXX=$objext
10528
10529# Code to be used in simple compile tests
10530lt_simple_compile_test_code="int some_variable = 0;\n"
10531
10532# Code to be used in simple link tests
10533lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10534
10535# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10536
10537# If no C compiler was specified, use CC.
10538LTCC=${LTCC-"$CC"}
10539
10540# If no C compiler flags were specified, use CFLAGS.
10541LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10542
10543# Allow CC to be a program name with arguments.
10544compiler=$CC
10545
10546
10547# save warnings/boilerplate of simple test code
10548ac_outfile=conftest.$ac_objext
10549printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10550eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10551_lt_compiler_boilerplate=`cat conftest.err`
10552$rm conftest*
10553
10554ac_outfile=conftest.$ac_objext
10555printf "$lt_simple_link_test_code" >conftest.$ac_ext
10556eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10557_lt_linker_boilerplate=`cat conftest.err`
10558$rm conftest*
10559
10560
10561# Allow CC to be a program name with arguments.
10562lt_save_CC=$CC
10563lt_save_LD=$LD
10564lt_save_GCC=$GCC
10565GCC=$GXX
10566lt_save_with_gnu_ld=$with_gnu_ld
10567lt_save_path_LD=$lt_cv_path_LD
10568if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10569  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10570else
10571  $as_unset lt_cv_prog_gnu_ld
10572fi
10573if test -n "${lt_cv_path_LDCXX+set}"; then
10574  lt_cv_path_LD=$lt_cv_path_LDCXX
10575else
10576  $as_unset lt_cv_path_LD
10577fi
10578test -z "${LDCXX+set}" || LD=$LDCXX
10579CC=${CXX-"c++"}
10580compiler=$CC
10581compiler_CXX=$CC
10582for cc_temp in $compiler""; do
10583  case $cc_temp in
10584    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10585    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10586    \-*) ;;
10587    *) break;;
10588  esac
10589done
10590cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10591
10592
10593# We don't want -fno-exception wen compiling C++ code, so set the
10594# no_builtin_flag separately
10595if test "$GXX" = yes; then
10596  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10597else
10598  lt_prog_compiler_no_builtin_flag_CXX=
10599fi
10600
10601if test "$GXX" = yes; then
10602  # Set up default GNU C++ configuration
10603
10604
10605# Check whether --with-gnu-ld was given.
10606if test "${with_gnu_ld+set}" = set; then
10607  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10608else
10609  with_gnu_ld=no
10610fi
10611
10612ac_prog=ld
10613if test "$GCC" = yes; then
10614  # Check if gcc -print-prog-name=ld gives a path.
10615  { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10616echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10617  case $host in
10618  *-*-mingw*)
10619    # gcc leaves a trailing carriage return which upsets mingw
10620    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10621  *)
10622    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10623  esac
10624  case $ac_prog in
10625    # Accept absolute paths.
10626    [\\/]* | ?:[\\/]*)
10627      re_direlt='/[^/][^/]*/\.\./'
10628      # Canonicalize the pathname of ld
10629      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10630      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10631	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10632      done
10633      test -z "$LD" && LD="$ac_prog"
10634      ;;
10635  "")
10636    # If it fails, then pretend we aren't using GCC.
10637    ac_prog=ld
10638    ;;
10639  *)
10640    # If it is relative, then search for the first ld in PATH.
10641    with_gnu_ld=unknown
10642    ;;
10643  esac
10644elif test "$with_gnu_ld" = yes; then
10645  { echo "$as_me:$LINENO: checking for GNU ld" >&5
10646echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10647else
10648  { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10649echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10650fi
10651if test "${lt_cv_path_LD+set}" = set; then
10652  echo $ECHO_N "(cached) $ECHO_C" >&6
10653else
10654  if test -z "$LD"; then
10655  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10656  for ac_dir in $PATH; do
10657    IFS="$lt_save_ifs"
10658    test -z "$ac_dir" && ac_dir=.
10659    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10660      lt_cv_path_LD="$ac_dir/$ac_prog"
10661      # Check to see if the program is GNU ld.  I'd rather use --version,
10662      # but apparently some variants of GNU ld only accept -v.
10663      # Break only if it was the GNU/non-GNU ld that we prefer.
10664      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10665      *GNU* | *'with BFD'*)
10666	test "$with_gnu_ld" != no && break
10667	;;
10668      *)
10669	test "$with_gnu_ld" != yes && break
10670	;;
10671      esac
10672    fi
10673  done
10674  IFS="$lt_save_ifs"
10675else
10676  lt_cv_path_LD="$LD" # Let the user override the test with a path.
10677fi
10678fi
10679
10680LD="$lt_cv_path_LD"
10681if test -n "$LD"; then
10682  { echo "$as_me:$LINENO: result: $LD" >&5
10683echo "${ECHO_T}$LD" >&6; }
10684else
10685  { echo "$as_me:$LINENO: result: no" >&5
10686echo "${ECHO_T}no" >&6; }
10687fi
10688test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10689echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10690   { (exit 1); exit 1; }; }
10691{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10692echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10693if test "${lt_cv_prog_gnu_ld+set}" = set; then
10694  echo $ECHO_N "(cached) $ECHO_C" >&6
10695else
10696  # I'd rather use --version here, but apparently some GNU lds only accept -v.
10697case `$LD -v 2>&1 </dev/null` in
10698*GNU* | *'with BFD'*)
10699  lt_cv_prog_gnu_ld=yes
10700  ;;
10701*)
10702  lt_cv_prog_gnu_ld=no
10703  ;;
10704esac
10705fi
10706{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10707echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10708with_gnu_ld=$lt_cv_prog_gnu_ld
10709
10710
10711
10712  # Check if GNU C++ uses GNU ld as the underlying linker, since the
10713  # archiving commands below assume that GNU ld is being used.
10714  if test "$with_gnu_ld" = yes; then
10715    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10716    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'
10717
10718    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10719    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10720
10721    # If archive_cmds runs LD, not CC, wlarc should be empty
10722    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10723    #     investigate it a little bit more. (MM)
10724    wlarc='${wl}'
10725
10726    # ancient GNU ld didn't support --whole-archive et. al.
10727    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10728	grep 'no-whole-archive' > /dev/null; then
10729      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10730    else
10731      whole_archive_flag_spec_CXX=
10732    fi
10733  else
10734    with_gnu_ld=no
10735    wlarc=
10736
10737    # A generic and very simple default shared library creation
10738    # command for GNU C++ for the case where it uses the native
10739    # linker, instead of GNU ld.  If possible, this setting should
10740    # overridden to take advantage of the native linker features on
10741    # the platform it is being used on.
10742    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10743  fi
10744
10745  # Commands to make compiler produce verbose output that lists
10746  # what "hidden" libraries, object files and flags are used when
10747  # linking a shared library.
10748  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10749
10750else
10751  GXX=no
10752  with_gnu_ld=no
10753  wlarc=
10754fi
10755
10756# PORTME: fill in a description of your system's C++ link characteristics
10757{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10758echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10759ld_shlibs_CXX=yes
10760case $host_os in
10761  aix3*)
10762    # FIXME: insert proper C++ library support
10763    ld_shlibs_CXX=no
10764    ;;
10765  aix4* | aix5*)
10766    if test "$host_cpu" = ia64; then
10767      # On IA64, the linker does run time linking by default, so we don't
10768      # have to do anything special.
10769      aix_use_runtimelinking=no
10770      exp_sym_flag='-Bexport'
10771      no_entry_flag=""
10772    else
10773      aix_use_runtimelinking=no
10774
10775      # Test if we are trying to use run time linking or normal
10776      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10777      # need to do runtime linking.
10778      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10779	for ld_flag in $LDFLAGS; do
10780	  case $ld_flag in
10781	  *-brtl*)
10782	    aix_use_runtimelinking=yes
10783	    break
10784	    ;;
10785	  esac
10786	done
10787	;;
10788      esac
10789
10790      exp_sym_flag='-bexport'
10791      no_entry_flag='-bnoentry'
10792    fi
10793
10794    # When large executables or shared objects are built, AIX ld can
10795    # have problems creating the table of contents.  If linking a library
10796    # or program results in "error TOC overflow" add -mminimal-toc to
10797    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10798    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10799
10800    archive_cmds_CXX=''
10801    hardcode_direct_CXX=yes
10802    hardcode_libdir_separator_CXX=':'
10803    link_all_deplibs_CXX=yes
10804
10805    if test "$GXX" = yes; then
10806      case $host_os in aix4.[012]|aix4.[012].*)
10807      # We only want to do this on AIX 4.2 and lower, the check
10808      # below for broken collect2 doesn't work under 4.3+
10809	collect2name=`${CC} -print-prog-name=collect2`
10810	if test -f "$collect2name" && \
10811	   strings "$collect2name" | grep resolve_lib_name >/dev/null
10812	then
10813	  # We have reworked collect2
10814	  hardcode_direct_CXX=yes
10815	else
10816	  # We have old collect2
10817	  hardcode_direct_CXX=unsupported
10818	  # It fails to find uninstalled libraries when the uninstalled
10819	  # path is not listed in the libpath.  Setting hardcode_minus_L
10820	  # to unsupported forces relinking
10821	  hardcode_minus_L_CXX=yes
10822	  hardcode_libdir_flag_spec_CXX='-L$libdir'
10823	  hardcode_libdir_separator_CXX=
10824	fi
10825	;;
10826      esac
10827      shared_flag='-shared'
10828      if test "$aix_use_runtimelinking" = yes; then
10829	shared_flag="$shared_flag "'${wl}-G'
10830      fi
10831    else
10832      # not using gcc
10833      if test "$host_cpu" = ia64; then
10834	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10835	# chokes on -Wl,-G. The following line is correct:
10836	shared_flag='-G'
10837      else
10838	if test "$aix_use_runtimelinking" = yes; then
10839	  shared_flag='${wl}-G'
10840	else
10841	  shared_flag='${wl}-bM:SRE'
10842	fi
10843      fi
10844    fi
10845
10846    # It seems that -bexpall does not export symbols beginning with
10847    # underscore (_), so it is better to generate a list of symbols to export.
10848    always_export_symbols_CXX=yes
10849    if test "$aix_use_runtimelinking" = yes; then
10850      # Warning - without using the other runtime loading flags (-brtl),
10851      # -berok will link without error, but may produce a broken library.
10852      allow_undefined_flag_CXX='-berok'
10853      # Determine the default libpath from the value encoded in an empty executable.
10854      cat >conftest.$ac_ext <<_ACEOF
10855/* confdefs.h.  */
10856_ACEOF
10857cat confdefs.h >>conftest.$ac_ext
10858cat >>conftest.$ac_ext <<_ACEOF
10859/* end confdefs.h.  */
10860
10861int
10862main ()
10863{
10864
10865  ;
10866  return 0;
10867}
10868_ACEOF
10869rm -f conftest.$ac_objext conftest$ac_exeext
10870if { (ac_try="$ac_link"
10871case "(($ac_try" in
10872  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10873  *) ac_try_echo=$ac_try;;
10874esac
10875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10876  (eval "$ac_link") 2>conftest.er1
10877  ac_status=$?
10878  grep -v '^ *+' conftest.er1 >conftest.err
10879  rm -f conftest.er1
10880  cat conftest.err >&5
10881  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10882  (exit $ac_status); } && {
10883	 test -z "$ac_cxx_werror_flag" ||
10884	 test ! -s conftest.err
10885       } && test -s conftest$ac_exeext &&
10886       $as_test_x conftest$ac_exeext; then
10887
10888aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10889}'`
10890# Check for a 64-bit object if we didn't find anything.
10891if 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; }
10892}'`; fi
10893else
10894  echo "$as_me: failed program was:" >&5
10895sed 's/^/| /' conftest.$ac_ext >&5
10896
10897
10898fi
10899
10900rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10901      conftest$ac_exeext conftest.$ac_ext
10902if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10903
10904      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10905
10906      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"
10907     else
10908      if test "$host_cpu" = ia64; then
10909	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10910	allow_undefined_flag_CXX="-z nodefs"
10911	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"
10912      else
10913	# Determine the default libpath from the value encoded in an empty executable.
10914	cat >conftest.$ac_ext <<_ACEOF
10915/* confdefs.h.  */
10916_ACEOF
10917cat confdefs.h >>conftest.$ac_ext
10918cat >>conftest.$ac_ext <<_ACEOF
10919/* end confdefs.h.  */
10920
10921int
10922main ()
10923{
10924
10925  ;
10926  return 0;
10927}
10928_ACEOF
10929rm -f conftest.$ac_objext conftest$ac_exeext
10930if { (ac_try="$ac_link"
10931case "(($ac_try" in
10932  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10933  *) ac_try_echo=$ac_try;;
10934esac
10935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10936  (eval "$ac_link") 2>conftest.er1
10937  ac_status=$?
10938  grep -v '^ *+' conftest.er1 >conftest.err
10939  rm -f conftest.er1
10940  cat conftest.err >&5
10941  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10942  (exit $ac_status); } && {
10943	 test -z "$ac_cxx_werror_flag" ||
10944	 test ! -s conftest.err
10945       } && test -s conftest$ac_exeext &&
10946       $as_test_x conftest$ac_exeext; then
10947
10948aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10949}'`
10950# Check for a 64-bit object if we didn't find anything.
10951if 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; }
10952}'`; fi
10953else
10954  echo "$as_me: failed program was:" >&5
10955sed 's/^/| /' conftest.$ac_ext >&5
10956
10957
10958fi
10959
10960rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10961      conftest$ac_exeext conftest.$ac_ext
10962if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10963
10964	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10965	# Warning - without using the other run time loading flags,
10966	# -berok will link without error, but may produce a broken library.
10967	no_undefined_flag_CXX=' ${wl}-bernotok'
10968	allow_undefined_flag_CXX=' ${wl}-berok'
10969	# Exported symbols can be pulled into shared objects from archives
10970	whole_archive_flag_spec_CXX='$convenience'
10971	archive_cmds_need_lc_CXX=yes
10972	# This is similar to how AIX traditionally builds its shared libraries.
10973	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'
10974      fi
10975    fi
10976    ;;
10977
10978  beos*)
10979    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10980      allow_undefined_flag_CXX=unsupported
10981      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10982      # support --undefined.  This deserves some investigation.  FIXME
10983      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10984    else
10985      ld_shlibs_CXX=no
10986    fi
10987    ;;
10988
10989  chorus*)
10990    case $cc_basename in
10991      *)
10992	# FIXME: insert proper C++ library support
10993	ld_shlibs_CXX=no
10994	;;
10995    esac
10996    ;;
10997
10998  cygwin* | mingw* | pw32*)
10999    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11000    # as there is no search path for DLLs.
11001    hardcode_libdir_flag_spec_CXX='-L$libdir'
11002    allow_undefined_flag_CXX=unsupported
11003    always_export_symbols_CXX=no
11004    enable_shared_with_static_runtimes_CXX=yes
11005
11006    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11007      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'
11008      # If the export-symbols file already is a .def file (1st line
11009      # is EXPORTS), use it as is; otherwise, prepend...
11010      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11011	cp $export_symbols $output_objdir/$soname.def;
11012      else
11013	echo EXPORTS > $output_objdir/$soname.def;
11014	cat $export_symbols >> $output_objdir/$soname.def;
11015      fi~
11016      $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'
11017    else
11018      ld_shlibs_CXX=no
11019    fi
11020  ;;
11021      darwin* | rhapsody*)
11022        case $host_os in
11023        rhapsody* | darwin1.[012])
11024         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11025         ;;
11026       *) # Darwin 1.3 on
11027         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11028           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11029         else
11030           case ${MACOSX_DEPLOYMENT_TARGET} in
11031             10.[012])
11032               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11033               ;;
11034             10.*)
11035               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11036               ;;
11037           esac
11038         fi
11039         ;;
11040        esac
11041      archive_cmds_need_lc_CXX=no
11042      hardcode_direct_CXX=no
11043      hardcode_automatic_CXX=yes
11044      hardcode_shlibpath_var_CXX=unsupported
11045      whole_archive_flag_spec_CXX=''
11046      link_all_deplibs_CXX=yes
11047
11048    if test "$GXX" = yes ; then
11049      lt_int_apple_cc_single_mod=no
11050      output_verbose_link_cmd='echo'
11051      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11052       lt_int_apple_cc_single_mod=yes
11053      fi
11054      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11055       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11056      else
11057          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'
11058        fi
11059        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11060        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11061          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11062            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}'
11063          else
11064            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}'
11065          fi
11066            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}'
11067      else
11068      case $cc_basename in
11069        xlc*)
11070         output_verbose_link_cmd='echo'
11071          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'
11072          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11073          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11074          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}'
11075          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}'
11076          ;;
11077       *)
11078         ld_shlibs_CXX=no
11079          ;;
11080      esac
11081      fi
11082        ;;
11083
11084  dgux*)
11085    case $cc_basename in
11086      ec++*)
11087	# FIXME: insert proper C++ library support
11088	ld_shlibs_CXX=no
11089	;;
11090      ghcx*)
11091	# Green Hills C++ Compiler
11092	# FIXME: insert proper C++ library support
11093	ld_shlibs_CXX=no
11094	;;
11095      *)
11096	# FIXME: insert proper C++ library support
11097	ld_shlibs_CXX=no
11098	;;
11099    esac
11100    ;;
11101  freebsd[12]*)
11102    # C++ shared libraries reported to be fairly broken before switch to ELF
11103    ld_shlibs_CXX=no
11104    ;;
11105  freebsd-elf*)
11106    archive_cmds_need_lc_CXX=no
11107    ;;
11108  freebsd* | dragonfly*)
11109    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11110    # conventions
11111    ld_shlibs_CXX=yes
11112    ;;
11113  gnu*)
11114    ;;
11115  hpux9*)
11116    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11117    hardcode_libdir_separator_CXX=:
11118    export_dynamic_flag_spec_CXX='${wl}-E'
11119    hardcode_direct_CXX=yes
11120    hardcode_minus_L_CXX=yes # Not in the search PATH,
11121				# but as the default
11122				# location of the library.
11123
11124    case $cc_basename in
11125    CC*)
11126      # FIXME: insert proper C++ library support
11127      ld_shlibs_CXX=no
11128      ;;
11129    aCC*)
11130      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'
11131      # Commands to make compiler produce verbose output that lists
11132      # what "hidden" libraries, object files and flags are used when
11133      # linking a shared library.
11134      #
11135      # There doesn't appear to be a way to prevent this compiler from
11136      # explicitly linking system object files so we need to strip them
11137      # from the output so that they don't get included in the library
11138      # dependencies.
11139      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'
11140      ;;
11141    *)
11142      if test "$GXX" = yes; then
11143        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'
11144      else
11145        # FIXME: insert proper C++ library support
11146        ld_shlibs_CXX=no
11147      fi
11148      ;;
11149    esac
11150    ;;
11151  hpux10*|hpux11*)
11152    if test $with_gnu_ld = no; then
11153      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11154      hardcode_libdir_separator_CXX=:
11155
11156      case $host_cpu in
11157      hppa*64*|ia64*)
11158	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11159        ;;
11160      *)
11161	export_dynamic_flag_spec_CXX='${wl}-E'
11162        ;;
11163      esac
11164    fi
11165    case $host_cpu in
11166    hppa*64*|ia64*)
11167      hardcode_direct_CXX=no
11168      hardcode_shlibpath_var_CXX=no
11169      ;;
11170    *)
11171      hardcode_direct_CXX=yes
11172      hardcode_minus_L_CXX=yes # Not in the search PATH,
11173					      # but as the default
11174					      # location of the library.
11175      ;;
11176    esac
11177
11178    case $cc_basename in
11179      CC*)
11180	# FIXME: insert proper C++ library support
11181	ld_shlibs_CXX=no
11182	;;
11183      aCC*)
11184	case $host_cpu in
11185	hppa*64*)
11186	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11187	  ;;
11188	ia64*)
11189	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11190	  ;;
11191	*)
11192	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11193	  ;;
11194	esac
11195	# Commands to make compiler produce verbose output that lists
11196	# what "hidden" libraries, object files and flags are used when
11197	# linking a shared library.
11198	#
11199	# There doesn't appear to be a way to prevent this compiler from
11200	# explicitly linking system object files so we need to strip them
11201	# from the output so that they don't get included in the library
11202	# dependencies.
11203	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'
11204	;;
11205      *)
11206	if test "$GXX" = yes; then
11207	  if test $with_gnu_ld = no; then
11208	    case $host_cpu in
11209	    hppa*64*)
11210	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11211	      ;;
11212	    ia64*)
11213	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11214	      ;;
11215	    *)
11216	      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'
11217	      ;;
11218	    esac
11219	  fi
11220	else
11221	  # FIXME: insert proper C++ library support
11222	  ld_shlibs_CXX=no
11223	fi
11224	;;
11225    esac
11226    ;;
11227  interix3*)
11228    hardcode_direct_CXX=no
11229    hardcode_shlibpath_var_CXX=no
11230    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11231    export_dynamic_flag_spec_CXX='${wl}-E'
11232    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11233    # Instead, shared libraries are loaded at an image base (0x10000000 by
11234    # default) and relocated if they conflict, which is a slow very memory
11235    # consuming and fragmenting process.  To avoid this, we pick a random,
11236    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11237    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11238    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'
11239    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'
11240    ;;
11241  irix5* | irix6*)
11242    case $cc_basename in
11243      CC*)
11244	# SGI C++
11245	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'
11246
11247	# Archives containing C++ object files must be created using
11248	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11249	# necessary to make sure instantiated templates are included
11250	# in the archive.
11251	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11252	;;
11253      *)
11254	if test "$GXX" = yes; then
11255	  if test "$with_gnu_ld" = no; then
11256	    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'
11257	  else
11258	    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'
11259	  fi
11260	fi
11261	link_all_deplibs_CXX=yes
11262	;;
11263    esac
11264    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11265    hardcode_libdir_separator_CXX=:
11266    ;;
11267  linux* | k*bsd*-gnu)
11268    case $cc_basename in
11269      KCC*)
11270	# Kuck and Associates, Inc. (KAI) C++ Compiler
11271
11272	# KCC will only create a shared library if the output file
11273	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11274	# to its proper name (with version) after linking.
11275	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'
11276	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'
11277	# Commands to make compiler produce verbose output that lists
11278	# what "hidden" libraries, object files and flags are used when
11279	# linking a shared library.
11280	#
11281	# There doesn't appear to be a way to prevent this compiler from
11282	# explicitly linking system object files so we need to strip them
11283	# from the output so that they don't get included in the library
11284	# dependencies.
11285	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'
11286
11287	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11288	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11289
11290	# Archives containing C++ object files must be created using
11291	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11292	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11293	;;
11294      icpc*)
11295	# Intel C++
11296	with_gnu_ld=yes
11297	# version 8.0 and above of icpc choke on multiply defined symbols
11298	# if we add $predep_objects and $postdep_objects, however 7.1 and
11299	# earlier do not add the objects themselves.
11300	case `$CC -V 2>&1` in
11301	*"Version 7."*)
11302  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11303  	  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'
11304	  ;;
11305	*)  # Version 8.0 or newer
11306	  tmp_idyn=
11307	  case $host_cpu in
11308	    ia64*) tmp_idyn=' -i_dynamic';;
11309	  esac
11310  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11311	  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'
11312	  ;;
11313	esac
11314	archive_cmds_need_lc_CXX=no
11315	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11316	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11317	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11318	;;
11319      pgCC*)
11320        # Portland Group C++ compiler
11321	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11322  	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'
11323
11324	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11325	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11326	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'
11327        ;;
11328      cxx*)
11329	# Compaq C++
11330	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11331	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'
11332
11333	runpath_var=LD_RUN_PATH
11334	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11335	hardcode_libdir_separator_CXX=:
11336
11337	# Commands to make compiler produce verbose output that lists
11338	# what "hidden" libraries, object files and flags are used when
11339	# linking a shared library.
11340	#
11341	# There doesn't appear to be a way to prevent this compiler from
11342	# explicitly linking system object files so we need to strip them
11343	# from the output so that they don't get included in the library
11344	# dependencies.
11345	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'
11346	;;
11347    esac
11348    ;;
11349  lynxos*)
11350    # FIXME: insert proper C++ library support
11351    ld_shlibs_CXX=no
11352    ;;
11353  m88k*)
11354    # FIXME: insert proper C++ library support
11355    ld_shlibs_CXX=no
11356    ;;
11357  mvs*)
11358    case $cc_basename in
11359      cxx*)
11360	# FIXME: insert proper C++ library support
11361	ld_shlibs_CXX=no
11362	;;
11363      *)
11364	# FIXME: insert proper C++ library support
11365	ld_shlibs_CXX=no
11366	;;
11367    esac
11368    ;;
11369  netbsd* | netbsdelf*-gnu)
11370    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11371      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11372      wlarc=
11373      hardcode_libdir_flag_spec_CXX='-R$libdir'
11374      hardcode_direct_CXX=yes
11375      hardcode_shlibpath_var_CXX=no
11376    fi
11377    # Workaround some broken pre-1.5 toolchains
11378    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11379    ;;
11380  openbsd2*)
11381    # C++ shared libraries are fairly broken
11382    ld_shlibs_CXX=no
11383    ;;
11384  openbsd*)
11385    hardcode_direct_CXX=yes
11386    hardcode_shlibpath_var_CXX=no
11387    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11388    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11389    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11390      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11391      export_dynamic_flag_spec_CXX='${wl}-E'
11392      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11393    fi
11394    output_verbose_link_cmd='echo'
11395    ;;
11396  osf3*)
11397    case $cc_basename in
11398      KCC*)
11399	# Kuck and Associates, Inc. (KAI) C++ Compiler
11400
11401	# KCC will only create a shared library if the output file
11402	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11403	# to its proper name (with version) after linking.
11404	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'
11405
11406	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11407	hardcode_libdir_separator_CXX=:
11408
11409	# Archives containing C++ object files must be created using
11410	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11411	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11412
11413	;;
11414      RCC*)
11415	# Rational C++ 2.4.1
11416	# FIXME: insert proper C++ library support
11417	ld_shlibs_CXX=no
11418	;;
11419      cxx*)
11420	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11421	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'
11422
11423	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11424	hardcode_libdir_separator_CXX=:
11425
11426	# Commands to make compiler produce verbose output that lists
11427	# what "hidden" libraries, object files and flags are used when
11428	# linking a shared library.
11429	#
11430	# There doesn't appear to be a way to prevent this compiler from
11431	# explicitly linking system object files so we need to strip them
11432	# from the output so that they don't get included in the library
11433	# dependencies.
11434	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'
11435	;;
11436      *)
11437	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11438	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11439	  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'
11440
11441	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11442	  hardcode_libdir_separator_CXX=:
11443
11444	  # Commands to make compiler produce verbose output that lists
11445	  # what "hidden" libraries, object files and flags are used when
11446	  # linking a shared library.
11447	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11448
11449	else
11450	  # FIXME: insert proper C++ library support
11451	  ld_shlibs_CXX=no
11452	fi
11453	;;
11454    esac
11455    ;;
11456  osf4* | osf5*)
11457    case $cc_basename in
11458      KCC*)
11459	# Kuck and Associates, Inc. (KAI) C++ Compiler
11460
11461	# KCC will only create a shared library if the output file
11462	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11463	# to its proper name (with version) after linking.
11464	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'
11465
11466	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11467	hardcode_libdir_separator_CXX=:
11468
11469	# Archives containing C++ object files must be created using
11470	# the KAI C++ compiler.
11471	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11472	;;
11473      RCC*)
11474	# Rational C++ 2.4.1
11475	# FIXME: insert proper C++ library support
11476	ld_shlibs_CXX=no
11477	;;
11478      cxx*)
11479	allow_undefined_flag_CXX=' -expect_unresolved \*'
11480	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'
11481	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11482	  echo "-hidden">> $lib.exp~
11483	  $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~
11484	  $rm $lib.exp'
11485
11486	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11487	hardcode_libdir_separator_CXX=:
11488
11489	# Commands to make compiler produce verbose output that lists
11490	# what "hidden" libraries, object files and flags are used when
11491	# linking a shared library.
11492	#
11493	# There doesn't appear to be a way to prevent this compiler from
11494	# explicitly linking system object files so we need to strip them
11495	# from the output so that they don't get included in the library
11496	# dependencies.
11497	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'
11498	;;
11499      *)
11500	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11501	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11502	 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'
11503
11504	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11505	  hardcode_libdir_separator_CXX=:
11506
11507	  # Commands to make compiler produce verbose output that lists
11508	  # what "hidden" libraries, object files and flags are used when
11509	  # linking a shared library.
11510	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11511
11512	else
11513	  # FIXME: insert proper C++ library support
11514	  ld_shlibs_CXX=no
11515	fi
11516	;;
11517    esac
11518    ;;
11519  psos*)
11520    # FIXME: insert proper C++ library support
11521    ld_shlibs_CXX=no
11522    ;;
11523  sunos4*)
11524    case $cc_basename in
11525      CC*)
11526	# Sun C++ 4.x
11527	# FIXME: insert proper C++ library support
11528	ld_shlibs_CXX=no
11529	;;
11530      lcc*)
11531	# Lucid
11532	# FIXME: insert proper C++ library support
11533	ld_shlibs_CXX=no
11534	;;
11535      *)
11536	# FIXME: insert proper C++ library support
11537	ld_shlibs_CXX=no
11538	;;
11539    esac
11540    ;;
11541  solaris*)
11542    case $cc_basename in
11543      CC*)
11544	# Sun C++ 4.2, 5.x and Centerline C++
11545        archive_cmds_need_lc_CXX=yes
11546	no_undefined_flag_CXX=' -zdefs'
11547	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11548	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11549	$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'
11550
11551	hardcode_libdir_flag_spec_CXX='-R$libdir'
11552	hardcode_shlibpath_var_CXX=no
11553	case $host_os in
11554	  solaris2.[0-5] | solaris2.[0-5].*) ;;
11555	  *)
11556	    # The C++ compiler is used as linker so we must use $wl
11557	    # flag to pass the commands to the underlying system
11558	    # linker. We must also pass each convience library through
11559	    # to the system linker between allextract/defaultextract.
11560	    # The C++ compiler will combine linker options so we
11561	    # cannot just pass the convience library names through
11562	    # without $wl.
11563	    # Supported since Solaris 2.6 (maybe 2.5.1?)
11564	    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'
11565	    ;;
11566	esac
11567	link_all_deplibs_CXX=yes
11568
11569	output_verbose_link_cmd='echo'
11570
11571	# Archives containing C++ object files must be created using
11572	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
11573	# necessary to make sure instantiated templates are included
11574	# in the archive.
11575	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11576	;;
11577      gcx*)
11578	# Green Hills C++ Compiler
11579	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11580
11581	# The C++ compiler must be used to create the archive.
11582	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11583	;;
11584      *)
11585	# GNU C++ compiler with Solaris linker
11586	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11587	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11588	  if $CC --version | grep -v '^2\.7' > /dev/null; then
11589	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11590	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11591		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11592
11593	    # Commands to make compiler produce verbose output that lists
11594	    # what "hidden" libraries, object files and flags are used when
11595	    # linking a shared library.
11596	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11597	  else
11598	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
11599	    # platform.
11600	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11601	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11602		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11603
11604	    # Commands to make compiler produce verbose output that lists
11605	    # what "hidden" libraries, object files and flags are used when
11606	    # linking a shared library.
11607	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11608	  fi
11609
11610	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11611	fi
11612	;;
11613    esac
11614    ;;
11615  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11616    no_undefined_flag_CXX='${wl}-z,text'
11617    archive_cmds_need_lc_CXX=no
11618    hardcode_shlibpath_var_CXX=no
11619    runpath_var='LD_RUN_PATH'
11620
11621    case $cc_basename in
11622      CC*)
11623	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11624	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11625	;;
11626      *)
11627	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11628	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11629	;;
11630    esac
11631    ;;
11632  sysv5* | sco3.2v5* | sco5v6*)
11633    # Note: We can NOT use -z defs as we might desire, because we do not
11634    # link with -lc, and that would cause any symbols used from libc to
11635    # always be unresolved, which means just about no library would
11636    # ever link correctly.  If we're not using GNU ld we use -z text
11637    # though, which does catch some bad symbols but isn't as heavy-handed
11638    # as -z defs.
11639    # For security reasons, it is highly recommended that you always
11640    # use absolute paths for naming shared libraries, and exclude the
11641    # DT_RUNPATH tag from executables and libraries.  But doing so
11642    # requires that you compile everything twice, which is a pain.
11643    # So that behaviour is only enabled if SCOABSPATH is set to a
11644    # non-empty value in the environment.  Most likely only useful for
11645    # creating official distributions of packages.
11646    # This is a hack until libtool officially supports absolute path
11647    # names for shared libraries.
11648    no_undefined_flag_CXX='${wl}-z,text'
11649    allow_undefined_flag_CXX='${wl}-z,nodefs'
11650    archive_cmds_need_lc_CXX=no
11651    hardcode_shlibpath_var_CXX=no
11652    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11653    hardcode_libdir_separator_CXX=':'
11654    link_all_deplibs_CXX=yes
11655    export_dynamic_flag_spec_CXX='${wl}-Bexport'
11656    runpath_var='LD_RUN_PATH'
11657
11658    case $cc_basename in
11659      CC*)
11660	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11661	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11662	;;
11663      *)
11664	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11665	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11666	;;
11667    esac
11668    ;;
11669  tandem*)
11670    case $cc_basename in
11671      NCC*)
11672	# NonStop-UX NCC 3.20
11673	# FIXME: insert proper C++ library support
11674	ld_shlibs_CXX=no
11675	;;
11676      *)
11677	# FIXME: insert proper C++ library support
11678	ld_shlibs_CXX=no
11679	;;
11680    esac
11681    ;;
11682  vxworks*)
11683    # FIXME: insert proper C++ library support
11684    ld_shlibs_CXX=no
11685    ;;
11686  *)
11687    # FIXME: insert proper C++ library support
11688    ld_shlibs_CXX=no
11689    ;;
11690esac
11691{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11692echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11693test "$ld_shlibs_CXX" = no && can_build_shared=no
11694
11695GCC_CXX="$GXX"
11696LD_CXX="$LD"
11697
11698
11699cat > conftest.$ac_ext <<EOF
11700class Foo
11701{
11702public:
11703  Foo (void) { a = 0; }
11704private:
11705  int a;
11706};
11707EOF
11708
11709if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11710  (eval $ac_compile) 2>&5
11711  ac_status=$?
11712  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11713  (exit $ac_status); }; then
11714  # Parse the compiler output and extract the necessary
11715  # objects, libraries and library flags.
11716
11717  # Sentinel used to keep track of whether or not we are before
11718  # the conftest object file.
11719  pre_test_object_deps_done=no
11720
11721  # The `*' in the case matches for architectures that use `case' in
11722  # $output_verbose_cmd can trigger glob expansion during the loop
11723  # eval without this substitution.
11724  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11725
11726  for p in `eval $output_verbose_link_cmd`; do
11727    case $p in
11728
11729    -L* | -R* | -l*)
11730       # Some compilers place space between "-{L,R}" and the path.
11731       # Remove the space.
11732       if test $p = "-L" \
11733	  || test $p = "-R"; then
11734	 prev=$p
11735	 continue
11736       else
11737	 prev=
11738       fi
11739
11740       if test "$pre_test_object_deps_done" = no; then
11741	 case $p in
11742	 -L* | -R*)
11743	   # Internal compiler library paths should come after those
11744	   # provided the user.  The postdeps already come after the
11745	   # user supplied libs so there is no need to process them.
11746	   if test -z "$compiler_lib_search_path_CXX"; then
11747	     compiler_lib_search_path_CXX="${prev}${p}"
11748	   else
11749	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11750	   fi
11751	   ;;
11752	 # The "-l" case would never come before the object being
11753	 # linked, so don't bother handling this case.
11754	 esac
11755       else
11756	 if test -z "$postdeps_CXX"; then
11757	   postdeps_CXX="${prev}${p}"
11758	 else
11759	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11760	 fi
11761       fi
11762       ;;
11763
11764    *.$objext)
11765       # This assumes that the test object file only shows up
11766       # once in the compiler output.
11767       if test "$p" = "conftest.$objext"; then
11768	 pre_test_object_deps_done=yes
11769	 continue
11770       fi
11771
11772       if test "$pre_test_object_deps_done" = no; then
11773	 if test -z "$predep_objects_CXX"; then
11774	   predep_objects_CXX="$p"
11775	 else
11776	   predep_objects_CXX="$predep_objects_CXX $p"
11777	 fi
11778       else
11779	 if test -z "$postdep_objects_CXX"; then
11780	   postdep_objects_CXX="$p"
11781	 else
11782	   postdep_objects_CXX="$postdep_objects_CXX $p"
11783	 fi
11784       fi
11785       ;;
11786
11787    *) ;; # Ignore the rest.
11788
11789    esac
11790  done
11791
11792  # Clean up.
11793  rm -f a.out a.exe
11794else
11795  echo "libtool.m4: error: problem compiling CXX test program"
11796fi
11797
11798$rm -f confest.$objext
11799
11800# PORTME: override above test on systems where it is broken
11801case $host_os in
11802interix3*)
11803  # Interix 3.5 installs completely hosed .la files for C++, so rather than
11804  # hack all around it, let's just trust "g++" to DTRT.
11805  predep_objects_CXX=
11806  postdep_objects_CXX=
11807  postdeps_CXX=
11808  ;;
11809
11810solaris*)
11811  case $cc_basename in
11812  CC*)
11813    # Adding this requires a known-good setup of shared libraries for
11814    # Sun compiler versions before 5.6, else PIC objects from an old
11815    # archive will be linked into the output, leading to subtle bugs.
11816    postdeps_CXX='-lCstd -lCrun'
11817    ;;
11818  esac
11819  ;;
11820esac
11821
11822
11823case " $postdeps_CXX " in
11824*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11825esac
11826
11827lt_prog_compiler_wl_CXX=
11828lt_prog_compiler_pic_CXX=
11829lt_prog_compiler_static_CXX=
11830
11831{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11832echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
11833
11834  # C++ specific cases for pic, static, wl, etc.
11835  if test "$GXX" = yes; then
11836    lt_prog_compiler_wl_CXX='-Wl,'
11837    lt_prog_compiler_static_CXX='-static'
11838
11839    case $host_os in
11840    aix*)
11841      # All AIX code is PIC.
11842      if test "$host_cpu" = ia64; then
11843	# AIX 5 now supports IA64 processor
11844	lt_prog_compiler_static_CXX='-Bstatic'
11845      fi
11846      ;;
11847    amigaos*)
11848      # FIXME: we need at least 68020 code to build shared libraries, but
11849      # adding the `-m68020' flag to GCC prevents building anything better,
11850      # like `-m68040'.
11851      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11852      ;;
11853    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11854      # PIC is the default for these OSes.
11855      ;;
11856    mingw* | os2* | pw32*)
11857      # This hack is so that the source file can tell whether it is being
11858      # built for inclusion in a dll (and should export symbols for example).
11859      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11860      ;;
11861    darwin* | rhapsody*)
11862      # PIC is the default on this platform
11863      # Common symbols not allowed in MH_DYLIB files
11864      lt_prog_compiler_pic_CXX='-fno-common'
11865      ;;
11866    *djgpp*)
11867      # DJGPP does not support shared libraries at all
11868      lt_prog_compiler_pic_CXX=
11869      ;;
11870    interix3*)
11871      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11872      # Instead, we relocate shared libraries at runtime.
11873      ;;
11874    sysv4*MP*)
11875      if test -d /usr/nec; then
11876	lt_prog_compiler_pic_CXX=-Kconform_pic
11877      fi
11878      ;;
11879    hpux*)
11880      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11881      # not for PA HP-UX.
11882      case $host_cpu in
11883      hppa*64*|ia64*)
11884	;;
11885      *)
11886	lt_prog_compiler_pic_CXX='-fPIC'
11887	;;
11888      esac
11889      ;;
11890    *)
11891      lt_prog_compiler_pic_CXX='-fPIC'
11892      ;;
11893    esac
11894  else
11895    case $host_os in
11896      aix4* | aix5*)
11897	# All AIX code is PIC.
11898	if test "$host_cpu" = ia64; then
11899	  # AIX 5 now supports IA64 processor
11900	  lt_prog_compiler_static_CXX='-Bstatic'
11901	else
11902	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11903	fi
11904	;;
11905      chorus*)
11906	case $cc_basename in
11907	cxch68*)
11908	  # Green Hills C++ Compiler
11909	  # _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"
11910	  ;;
11911	esac
11912	;;
11913       darwin*)
11914         # PIC is the default on this platform
11915         # Common symbols not allowed in MH_DYLIB files
11916         case $cc_basename in
11917           xlc*)
11918           lt_prog_compiler_pic_CXX='-qnocommon'
11919           lt_prog_compiler_wl_CXX='-Wl,'
11920           ;;
11921         esac
11922       ;;
11923      dgux*)
11924	case $cc_basename in
11925	  ec++*)
11926	    lt_prog_compiler_pic_CXX='-KPIC'
11927	    ;;
11928	  ghcx*)
11929	    # Green Hills C++ Compiler
11930	    lt_prog_compiler_pic_CXX='-pic'
11931	    ;;
11932	  *)
11933	    ;;
11934	esac
11935	;;
11936      freebsd* | dragonfly*)
11937	# FreeBSD uses GNU C++
11938	;;
11939      hpux9* | hpux10* | hpux11*)
11940	case $cc_basename in
11941	  CC*)
11942	    lt_prog_compiler_wl_CXX='-Wl,'
11943	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11944	    if test "$host_cpu" != ia64; then
11945	      lt_prog_compiler_pic_CXX='+Z'
11946	    fi
11947	    ;;
11948	  aCC*)
11949	    lt_prog_compiler_wl_CXX='-Wl,'
11950	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11951	    case $host_cpu in
11952	    hppa*64*|ia64*)
11953	      # +Z the default
11954	      ;;
11955	    *)
11956	      lt_prog_compiler_pic_CXX='+Z'
11957	      ;;
11958	    esac
11959	    ;;
11960	  *)
11961	    ;;
11962	esac
11963	;;
11964      interix*)
11965	# This is c89, which is MS Visual C++ (no shared libs)
11966	# Anyone wants to do a port?
11967	;;
11968      irix5* | irix6* | nonstopux*)
11969	case $cc_basename in
11970	  CC*)
11971	    lt_prog_compiler_wl_CXX='-Wl,'
11972	    lt_prog_compiler_static_CXX='-non_shared'
11973	    # CC pic flag -KPIC is the default.
11974	    ;;
11975	  *)
11976	    ;;
11977	esac
11978	;;
11979      linux* | k*bsd*-gnu)
11980	case $cc_basename in
11981	  KCC*)
11982	    # KAI C++ Compiler
11983	    lt_prog_compiler_wl_CXX='--backend -Wl,'
11984	    lt_prog_compiler_pic_CXX='-fPIC'
11985	    ;;
11986	  icpc* | ecpc*)
11987	    # Intel C++
11988	    lt_prog_compiler_wl_CXX='-Wl,'
11989	    lt_prog_compiler_pic_CXX='-KPIC'
11990	    lt_prog_compiler_static_CXX='-static'
11991	    ;;
11992	  pgCC*)
11993	    # Portland Group C++ compiler.
11994	    lt_prog_compiler_wl_CXX='-Wl,'
11995	    lt_prog_compiler_pic_CXX='-fpic'
11996	    lt_prog_compiler_static_CXX='-Bstatic'
11997	    ;;
11998	  cxx*)
11999	    # Compaq C++
12000	    # Make sure the PIC flag is empty.  It appears that all Alpha
12001	    # Linux and Compaq Tru64 Unix objects are PIC.
12002	    lt_prog_compiler_pic_CXX=
12003	    lt_prog_compiler_static_CXX='-non_shared'
12004	    ;;
12005	  *)
12006	    ;;
12007	esac
12008	;;
12009      lynxos*)
12010	;;
12011      m88k*)
12012	;;
12013      mvs*)
12014	case $cc_basename in
12015	  cxx*)
12016	    lt_prog_compiler_pic_CXX='-W c,exportall'
12017	    ;;
12018	  *)
12019	    ;;
12020	esac
12021	;;
12022      netbsd* | netbsdelf*-gnu)
12023	;;
12024      osf3* | osf4* | osf5*)
12025	case $cc_basename in
12026	  KCC*)
12027	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12028	    ;;
12029	  RCC*)
12030	    # Rational C++ 2.4.1
12031	    lt_prog_compiler_pic_CXX='-pic'
12032	    ;;
12033	  cxx*)
12034	    # Digital/Compaq C++
12035	    lt_prog_compiler_wl_CXX='-Wl,'
12036	    # Make sure the PIC flag is empty.  It appears that all Alpha
12037	    # Linux and Compaq Tru64 Unix objects are PIC.
12038	    lt_prog_compiler_pic_CXX=
12039	    lt_prog_compiler_static_CXX='-non_shared'
12040	    ;;
12041	  *)
12042	    ;;
12043	esac
12044	;;
12045      psos*)
12046	;;
12047      solaris*)
12048	case $cc_basename in
12049	  CC*)
12050	    # Sun C++ 4.2, 5.x and Centerline C++
12051	    lt_prog_compiler_pic_CXX='-KPIC'
12052	    lt_prog_compiler_static_CXX='-Bstatic'
12053	    lt_prog_compiler_wl_CXX='-Qoption ld '
12054	    ;;
12055	  gcx*)
12056	    # Green Hills C++ Compiler
12057	    lt_prog_compiler_pic_CXX='-PIC'
12058	    ;;
12059	  *)
12060	    ;;
12061	esac
12062	;;
12063      sunos4*)
12064	case $cc_basename in
12065	  CC*)
12066	    # Sun C++ 4.x
12067	    lt_prog_compiler_pic_CXX='-pic'
12068	    lt_prog_compiler_static_CXX='-Bstatic'
12069	    ;;
12070	  lcc*)
12071	    # Lucid
12072	    lt_prog_compiler_pic_CXX='-pic'
12073	    ;;
12074	  *)
12075	    ;;
12076	esac
12077	;;
12078      tandem*)
12079	case $cc_basename in
12080	  NCC*)
12081	    # NonStop-UX NCC 3.20
12082	    lt_prog_compiler_pic_CXX='-KPIC'
12083	    ;;
12084	  *)
12085	    ;;
12086	esac
12087	;;
12088      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12089	case $cc_basename in
12090	  CC*)
12091	    lt_prog_compiler_wl_CXX='-Wl,'
12092	    lt_prog_compiler_pic_CXX='-KPIC'
12093	    lt_prog_compiler_static_CXX='-Bstatic'
12094	    ;;
12095	esac
12096	;;
12097      vxworks*)
12098	;;
12099      *)
12100	lt_prog_compiler_can_build_shared_CXX=no
12101	;;
12102    esac
12103  fi
12104
12105{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12106echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12107
12108#
12109# Check to make sure the PIC flag actually works.
12110#
12111if test -n "$lt_prog_compiler_pic_CXX"; then
12112
12113{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12114echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12115if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12116  echo $ECHO_N "(cached) $ECHO_C" >&6
12117else
12118  lt_prog_compiler_pic_works_CXX=no
12119  ac_outfile=conftest.$ac_objext
12120   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12121   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12122   # Insert the option either (1) after the last *FLAGS variable, or
12123   # (2) before a word containing "conftest.", or (3) at the end.
12124   # Note that $ac_compile itself does not contain backslashes and begins
12125   # with a dollar sign (not a hyphen), so the echo should work correctly.
12126   # The option is referenced via a variable to avoid confusing sed.
12127   lt_compile=`echo "$ac_compile" | $SED \
12128   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12129   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12130   -e 's:$: $lt_compiler_flag:'`
12131   (eval echo "\"\$as_me:12131: $lt_compile\"" >&5)
12132   (eval "$lt_compile" 2>conftest.err)
12133   ac_status=$?
12134   cat conftest.err >&5
12135   echo "$as_me:12135: \$? = $ac_status" >&5
12136   if (exit $ac_status) && test -s "$ac_outfile"; then
12137     # The compiler can only warn and ignore the option if not recognized
12138     # So say no if there are warnings other than the usual output.
12139     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12140     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12141     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12142       lt_prog_compiler_pic_works_CXX=yes
12143     fi
12144   fi
12145   $rm conftest*
12146
12147fi
12148{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12149echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12150
12151if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12152    case $lt_prog_compiler_pic_CXX in
12153     "" | " "*) ;;
12154     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12155     esac
12156else
12157    lt_prog_compiler_pic_CXX=
12158     lt_prog_compiler_can_build_shared_CXX=no
12159fi
12160
12161fi
12162case $host_os in
12163  # For platforms which do not support PIC, -DPIC is meaningless:
12164  *djgpp*)
12165    lt_prog_compiler_pic_CXX=
12166    ;;
12167  *)
12168    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12169    ;;
12170esac
12171
12172#
12173# Check to make sure the static flag actually works.
12174#
12175wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12176{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12177echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12178if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12179  echo $ECHO_N "(cached) $ECHO_C" >&6
12180else
12181  lt_prog_compiler_static_works_CXX=no
12182   save_LDFLAGS="$LDFLAGS"
12183   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12184   printf "$lt_simple_link_test_code" > conftest.$ac_ext
12185   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12186     # The linker can only warn and ignore the option if not recognized
12187     # So say no if there are warnings
12188     if test -s conftest.err; then
12189       # Append any errors to the config.log.
12190       cat conftest.err 1>&5
12191       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12192       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12193       if diff conftest.exp conftest.er2 >/dev/null; then
12194         lt_prog_compiler_static_works_CXX=yes
12195       fi
12196     else
12197       lt_prog_compiler_static_works_CXX=yes
12198     fi
12199   fi
12200   $rm conftest*
12201   LDFLAGS="$save_LDFLAGS"
12202
12203fi
12204{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12205echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12206
12207if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12208    :
12209else
12210    lt_prog_compiler_static_CXX=
12211fi
12212
12213
12214{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12215echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12216if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12217  echo $ECHO_N "(cached) $ECHO_C" >&6
12218else
12219  lt_cv_prog_compiler_c_o_CXX=no
12220   $rm -r conftest 2>/dev/null
12221   mkdir conftest
12222   cd conftest
12223   mkdir out
12224   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12225
12226   lt_compiler_flag="-o out/conftest2.$ac_objext"
12227   # Insert the option either (1) after the last *FLAGS variable, or
12228   # (2) before a word containing "conftest.", or (3) at the end.
12229   # Note that $ac_compile itself does not contain backslashes and begins
12230   # with a dollar sign (not a hyphen), so the echo should work correctly.
12231   lt_compile=`echo "$ac_compile" | $SED \
12232   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12233   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12234   -e 's:$: $lt_compiler_flag:'`
12235   (eval echo "\"\$as_me:12235: $lt_compile\"" >&5)
12236   (eval "$lt_compile" 2>out/conftest.err)
12237   ac_status=$?
12238   cat out/conftest.err >&5
12239   echo "$as_me:12239: \$? = $ac_status" >&5
12240   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12241   then
12242     # The compiler can only warn and ignore the option if not recognized
12243     # So say no if there are warnings
12244     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12245     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12246     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12247       lt_cv_prog_compiler_c_o_CXX=yes
12248     fi
12249   fi
12250   chmod u+w . 2>&5
12251   $rm conftest*
12252   # SGI C++ compiler will create directory out/ii_files/ for
12253   # template instantiation
12254   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12255   $rm out/* && rmdir out
12256   cd ..
12257   rmdir conftest
12258   $rm conftest*
12259
12260fi
12261{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12262echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12263
12264
12265hard_links="nottested"
12266if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12267  # do not overwrite the value of need_locks provided by the user
12268  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12269echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12270  hard_links=yes
12271  $rm conftest*
12272  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12273  touch conftest.a
12274  ln conftest.a conftest.b 2>&5 || hard_links=no
12275  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12276  { echo "$as_me:$LINENO: result: $hard_links" >&5
12277echo "${ECHO_T}$hard_links" >&6; }
12278  if test "$hard_links" = no; then
12279    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12280echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12281    need_locks=warn
12282  fi
12283else
12284  need_locks=no
12285fi
12286
12287{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12288echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12289
12290  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12291  case $host_os in
12292  aix4* | aix5*)
12293    # If we're using GNU nm, then we don't want the "-C" option.
12294    # -C means demangle to AIX nm, but means don't demangle with GNU nm
12295    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12296      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'
12297    else
12298      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'
12299    fi
12300    ;;
12301  pw32*)
12302    export_symbols_cmds_CXX="$ltdll_cmds"
12303  ;;
12304  cygwin* | mingw*)
12305    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'
12306  ;;
12307  linux* | k*bsd*-gnu)
12308    link_all_deplibs_CXX=no
12309  ;;
12310  *)
12311    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12312  ;;
12313  esac
12314
12315{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12316echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12317test "$ld_shlibs_CXX" = no && can_build_shared=no
12318
12319#
12320# Do we need to explicitly link libc?
12321#
12322case "x$archive_cmds_need_lc_CXX" in
12323x|xyes)
12324  # Assume -lc should be added
12325  archive_cmds_need_lc_CXX=yes
12326
12327  if test "$enable_shared" = yes && test "$GCC" = yes; then
12328    case $archive_cmds_CXX in
12329    *'~'*)
12330      # FIXME: we may have to deal with multi-command sequences.
12331      ;;
12332    '$CC '*)
12333      # Test whether the compiler implicitly links with -lc since on some
12334      # systems, -lgcc has to come before -lc. If gcc already passes -lc
12335      # to ld, don't add -lc before -lgcc.
12336      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12337echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12338      $rm conftest*
12339      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12340
12341      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12342  (eval $ac_compile) 2>&5
12343  ac_status=$?
12344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12345  (exit $ac_status); } 2>conftest.err; then
12346        soname=conftest
12347        lib=conftest
12348        libobjs=conftest.$ac_objext
12349        deplibs=
12350        wl=$lt_prog_compiler_wl_CXX
12351	pic_flag=$lt_prog_compiler_pic_CXX
12352        compiler_flags=-v
12353        linker_flags=-v
12354        verstring=
12355        output_objdir=.
12356        libname=conftest
12357        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12358        allow_undefined_flag_CXX=
12359        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12360  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12361  ac_status=$?
12362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12363  (exit $ac_status); }
12364        then
12365	  archive_cmds_need_lc_CXX=no
12366        else
12367	  archive_cmds_need_lc_CXX=yes
12368        fi
12369        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12370      else
12371        cat conftest.err 1>&5
12372      fi
12373      $rm conftest*
12374      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12375echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12376      ;;
12377    esac
12378  fi
12379  ;;
12380esac
12381
12382{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12383echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12384library_names_spec=
12385libname_spec='lib$name'
12386soname_spec=
12387shrext_cmds=".so"
12388postinstall_cmds=
12389postuninstall_cmds=
12390finish_cmds=
12391finish_eval=
12392shlibpath_var=
12393shlibpath_overrides_runpath=unknown
12394version_type=none
12395dynamic_linker="$host_os ld.so"
12396sys_lib_dlsearch_path_spec="/lib /usr/lib"
12397if test "$GCC" = yes; then
12398  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12399  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12400    # if the path contains ";" then we assume it to be the separator
12401    # otherwise default to the standard path separator (i.e. ":") - it is
12402    # assumed that no part of a normal pathname contains ";" but that should
12403    # okay in the real world where ";" in dirpaths is itself problematic.
12404    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12405  else
12406    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12407  fi
12408else
12409  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12410fi
12411need_lib_prefix=unknown
12412hardcode_into_libs=no
12413
12414# when you set need_version to no, make sure it does not cause -set_version
12415# flags to be left without arguments
12416need_version=unknown
12417
12418case $host_os in
12419aix3*)
12420  version_type=linux
12421  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12422  shlibpath_var=LIBPATH
12423
12424  # AIX 3 has no versioning support, so we append a major version to the name.
12425  soname_spec='${libname}${release}${shared_ext}$major'
12426  ;;
12427
12428aix4* | aix5*)
12429  version_type=linux
12430  need_lib_prefix=no
12431  need_version=no
12432  hardcode_into_libs=yes
12433  if test "$host_cpu" = ia64; then
12434    # AIX 5 supports IA64
12435    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12436    shlibpath_var=LD_LIBRARY_PATH
12437  else
12438    # With GCC up to 2.95.x, collect2 would create an import file
12439    # for dependence libraries.  The import file would start with
12440    # the line `#! .'.  This would cause the generated library to
12441    # depend on `.', always an invalid library.  This was fixed in
12442    # development snapshots of GCC prior to 3.0.
12443    case $host_os in
12444      aix4 | aix4.[01] | aix4.[01].*)
12445      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12446	   echo ' yes '
12447	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12448	:
12449      else
12450	can_build_shared=no
12451      fi
12452      ;;
12453    esac
12454    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12455    # soname into executable. Probably we can add versioning support to
12456    # collect2, so additional links can be useful in future.
12457    if test "$aix_use_runtimelinking" = yes; then
12458      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12459      # instead of lib<name>.a to let people know that these are not
12460      # typical AIX shared libraries.
12461      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12462    else
12463      # We preserve .a as extension for shared libraries through AIX4.2
12464      # and later when we are not doing run time linking.
12465      library_names_spec='${libname}${release}.a $libname.a'
12466      soname_spec='${libname}${release}${shared_ext}$major'
12467    fi
12468    shlibpath_var=LIBPATH
12469  fi
12470  ;;
12471
12472amigaos*)
12473  library_names_spec='$libname.ixlibrary $libname.a'
12474  # Create ${libname}_ixlibrary.a entries in /sys/libs.
12475  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'
12476  ;;
12477
12478beos*)
12479  library_names_spec='${libname}${shared_ext}'
12480  dynamic_linker="$host_os ld.so"
12481  shlibpath_var=LIBRARY_PATH
12482  ;;
12483
12484bsdi[45]*)
12485  version_type=linux
12486  need_version=no
12487  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12488  soname_spec='${libname}${release}${shared_ext}$major'
12489  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12490  shlibpath_var=LD_LIBRARY_PATH
12491  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12492  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12493  # the default ld.so.conf also contains /usr/contrib/lib and
12494  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12495  # libtool to hard-code these into programs
12496  ;;
12497
12498cygwin* | mingw* | pw32*)
12499  version_type=windows
12500  shrext_cmds=".dll"
12501  need_version=no
12502  need_lib_prefix=no
12503
12504  case $GCC,$host_os in
12505  yes,cygwin* | yes,mingw* | yes,pw32*)
12506    library_names_spec='$libname.dll.a'
12507    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12508    postinstall_cmds='base_file=`basename \${file}`~
12509      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12510      dldir=$destdir/`dirname \$dlpath`~
12511      test -d \$dldir || mkdir -p \$dldir~
12512      $install_prog $dir/$dlname \$dldir/$dlname~
12513      chmod a+x \$dldir/$dlname'
12514    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12515      dlpath=$dir/\$dldll~
12516       $rm \$dlpath'
12517    shlibpath_overrides_runpath=yes
12518
12519    case $host_os in
12520    cygwin*)
12521      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12522      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12523      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12524      ;;
12525    mingw*)
12526      # MinGW DLLs use traditional 'lib' prefix
12527      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12528      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12529      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12530        # It is most probably a Windows format PATH printed by
12531        # mingw gcc, but we are running on Cygwin. Gcc prints its search
12532        # path with ; separators, and with drive letters. We can handle the
12533        # drive letters (cygwin fileutils understands them), so leave them,
12534        # especially as we might pass files found there to a mingw objdump,
12535        # which wouldn't understand a cygwinified path. Ahh.
12536        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12537      else
12538        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12539      fi
12540      ;;
12541    pw32*)
12542      # pw32 DLLs use 'pw' prefix rather than 'lib'
12543      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12544      ;;
12545    esac
12546    ;;
12547
12548  *)
12549    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12550    ;;
12551  esac
12552  dynamic_linker='Win32 ld.exe'
12553  # FIXME: first we should search . and the directory the executable is in
12554  shlibpath_var=PATH
12555  ;;
12556
12557darwin* | rhapsody*)
12558  dynamic_linker="$host_os dyld"
12559  version_type=darwin
12560  need_lib_prefix=no
12561  need_version=no
12562  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12563  soname_spec='${libname}${release}${major}$shared_ext'
12564  shlibpath_overrides_runpath=yes
12565  shlibpath_var=DYLD_LIBRARY_PATH
12566  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12567  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12568  if test "$GCC" = yes; then
12569    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"`
12570  else
12571    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12572  fi
12573  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12574  ;;
12575
12576dgux*)
12577  version_type=linux
12578  need_lib_prefix=no
12579  need_version=no
12580  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12581  soname_spec='${libname}${release}${shared_ext}$major'
12582  shlibpath_var=LD_LIBRARY_PATH
12583  ;;
12584
12585freebsd1*)
12586  dynamic_linker=no
12587  ;;
12588
12589freebsd* | dragonfly*)
12590  # DragonFly does not have aout.  When/if they implement a new
12591  # versioning mechanism, adjust this.
12592  if test -x /usr/bin/objformat; then
12593    objformat=`/usr/bin/objformat`
12594  else
12595    case $host_os in
12596    freebsd[123]*) objformat=aout ;;
12597    *) objformat=elf ;;
12598    esac
12599  fi
12600  version_type=freebsd-$objformat
12601  case $version_type in
12602    freebsd-elf*)
12603      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12604      need_version=no
12605      need_lib_prefix=no
12606      ;;
12607    freebsd-*)
12608      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12609      need_version=yes
12610      ;;
12611  esac
12612  shlibpath_var=LD_LIBRARY_PATH
12613  case $host_os in
12614  freebsd2*)
12615    shlibpath_overrides_runpath=yes
12616    ;;
12617  freebsd3.[01]* | freebsdelf3.[01]*)
12618    shlibpath_overrides_runpath=yes
12619    hardcode_into_libs=yes
12620    ;;
12621  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12622  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12623    shlibpath_overrides_runpath=no
12624    hardcode_into_libs=yes
12625    ;;
12626  freebsd*) # from 4.6 on
12627    shlibpath_overrides_runpath=yes
12628    hardcode_into_libs=yes
12629    ;;
12630  esac
12631  ;;
12632
12633gnu*)
12634  version_type=linux
12635  need_lib_prefix=no
12636  need_version=no
12637  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12638  soname_spec='${libname}${release}${shared_ext}$major'
12639  shlibpath_var=LD_LIBRARY_PATH
12640  hardcode_into_libs=yes
12641  ;;
12642
12643hpux9* | hpux10* | hpux11*)
12644  # Give a soname corresponding to the major version so that dld.sl refuses to
12645  # link against other versions.
12646  version_type=sunos
12647  need_lib_prefix=no
12648  need_version=no
12649  case $host_cpu in
12650  ia64*)
12651    shrext_cmds='.so'
12652    hardcode_into_libs=yes
12653    dynamic_linker="$host_os dld.so"
12654    shlibpath_var=LD_LIBRARY_PATH
12655    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12656    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12657    soname_spec='${libname}${release}${shared_ext}$major'
12658    if test "X$HPUX_IA64_MODE" = X32; then
12659      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12660    else
12661      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12662    fi
12663    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12664    ;;
12665   hppa*64*)
12666     shrext_cmds='.sl'
12667     hardcode_into_libs=yes
12668     dynamic_linker="$host_os dld.sl"
12669     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12670     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12671     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12672     soname_spec='${libname}${release}${shared_ext}$major'
12673     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12674     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12675     ;;
12676   *)
12677    shrext_cmds='.sl'
12678    dynamic_linker="$host_os dld.sl"
12679    shlibpath_var=SHLIB_PATH
12680    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12681    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12682    soname_spec='${libname}${release}${shared_ext}$major'
12683    ;;
12684  esac
12685  # HP-UX runs *really* slowly unless shared libraries are mode 555.
12686  postinstall_cmds='chmod 555 $lib'
12687  ;;
12688
12689interix3*)
12690  version_type=linux
12691  need_lib_prefix=no
12692  need_version=no
12693  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12694  soname_spec='${libname}${release}${shared_ext}$major'
12695  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12696  shlibpath_var=LD_LIBRARY_PATH
12697  shlibpath_overrides_runpath=no
12698  hardcode_into_libs=yes
12699  ;;
12700
12701irix5* | irix6* | nonstopux*)
12702  case $host_os in
12703    nonstopux*) version_type=nonstopux ;;
12704    *)
12705	if test "$lt_cv_prog_gnu_ld" = yes; then
12706		version_type=linux
12707	else
12708		version_type=irix
12709	fi ;;
12710  esac
12711  need_lib_prefix=no
12712  need_version=no
12713  soname_spec='${libname}${release}${shared_ext}$major'
12714  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12715  case $host_os in
12716  irix5* | nonstopux*)
12717    libsuff= shlibsuff=
12718    ;;
12719  *)
12720    case $LD in # libtool.m4 will add one of these switches to LD
12721    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12722      libsuff= shlibsuff= libmagic=32-bit;;
12723    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12724      libsuff=32 shlibsuff=N32 libmagic=N32;;
12725    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12726      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12727    *) libsuff= shlibsuff= libmagic=never-match;;
12728    esac
12729    ;;
12730  esac
12731  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12732  shlibpath_overrides_runpath=no
12733  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12734  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12735  hardcode_into_libs=yes
12736  ;;
12737
12738# No shared lib support for Linux oldld, aout, or coff.
12739linux*oldld* | linux*aout* | linux*coff*)
12740  dynamic_linker=no
12741  ;;
12742
12743# This must be Linux ELF.
12744linux* | k*bsd*-gnu)
12745  version_type=linux
12746  need_lib_prefix=no
12747  need_version=no
12748  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12749  soname_spec='${libname}${release}${shared_ext}$major'
12750  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12751  shlibpath_var=LD_LIBRARY_PATH
12752  shlibpath_overrides_runpath=no
12753  # This implies no fast_install, which is unacceptable.
12754  # Some rework will be needed to allow for fast_install
12755  # before this can be enabled.
12756  hardcode_into_libs=yes
12757
12758  # Append ld.so.conf contents to the search path
12759  if test -f /etc/ld.so.conf; then
12760    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' ' '`
12761    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12762  fi
12763
12764  # We used to test for /lib/ld.so.1 and disable shared libraries on
12765  # powerpc, because MkLinux only supported shared libraries with the
12766  # GNU dynamic linker.  Since this was broken with cross compilers,
12767  # most powerpc-linux boxes support dynamic linking these days and
12768  # people can always --disable-shared, the test was removed, and we
12769  # assume the GNU/Linux dynamic linker is in use.
12770  dynamic_linker='GNU/Linux ld.so'
12771  ;;
12772
12773netbsdelf*-gnu)
12774  version_type=linux
12775  need_lib_prefix=no
12776  need_version=no
12777  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12778  soname_spec='${libname}${release}${shared_ext}$major'
12779  shlibpath_var=LD_LIBRARY_PATH
12780  shlibpath_overrides_runpath=no
12781  hardcode_into_libs=yes
12782  dynamic_linker='NetBSD ld.elf_so'
12783  ;;
12784
12785netbsd*)
12786  version_type=sunos
12787  need_lib_prefix=no
12788  need_version=no
12789  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12790    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12791    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12792    dynamic_linker='NetBSD (a.out) ld.so'
12793  else
12794    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12795    soname_spec='${libname}${release}${shared_ext}$major'
12796    dynamic_linker='NetBSD ld.elf_so'
12797  fi
12798  shlibpath_var=LD_LIBRARY_PATH
12799  shlibpath_overrides_runpath=yes
12800  hardcode_into_libs=yes
12801  ;;
12802
12803newsos6)
12804  version_type=linux
12805  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12806  shlibpath_var=LD_LIBRARY_PATH
12807  shlibpath_overrides_runpath=yes
12808  ;;
12809
12810nto-qnx*)
12811  version_type=linux
12812  need_lib_prefix=no
12813  need_version=no
12814  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12815  soname_spec='${libname}${release}${shared_ext}$major'
12816  shlibpath_var=LD_LIBRARY_PATH
12817  shlibpath_overrides_runpath=yes
12818  ;;
12819
12820openbsd*)
12821  version_type=sunos
12822  sys_lib_dlsearch_path_spec="/usr/lib"
12823  need_lib_prefix=no
12824  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12825  case $host_os in
12826    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12827    *)                         need_version=no  ;;
12828  esac
12829  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12830  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12831  shlibpath_var=LD_LIBRARY_PATH
12832  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12833    case $host_os in
12834      openbsd2.[89] | openbsd2.[89].*)
12835	shlibpath_overrides_runpath=no
12836	;;
12837      *)
12838	shlibpath_overrides_runpath=yes
12839	;;
12840      esac
12841  else
12842    shlibpath_overrides_runpath=yes
12843  fi
12844  ;;
12845
12846os2*)
12847  libname_spec='$name'
12848  shrext_cmds=".dll"
12849  need_lib_prefix=no
12850  library_names_spec='$libname${shared_ext} $libname.a'
12851  dynamic_linker='OS/2 ld.exe'
12852  shlibpath_var=LIBPATH
12853  ;;
12854
12855osf3* | osf4* | osf5*)
12856  version_type=osf
12857  need_lib_prefix=no
12858  need_version=no
12859  soname_spec='${libname}${release}${shared_ext}$major'
12860  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12861  shlibpath_var=LD_LIBRARY_PATH
12862  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12863  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12864  ;;
12865
12866solaris*)
12867  version_type=linux
12868  need_lib_prefix=no
12869  need_version=no
12870  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12871  soname_spec='${libname}${release}${shared_ext}$major'
12872  shlibpath_var=LD_LIBRARY_PATH
12873  shlibpath_overrides_runpath=yes
12874  hardcode_into_libs=yes
12875  # ldd complains unless libraries are executable
12876  postinstall_cmds='chmod +x $lib'
12877  ;;
12878
12879sunos4*)
12880  version_type=sunos
12881  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12882  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12883  shlibpath_var=LD_LIBRARY_PATH
12884  shlibpath_overrides_runpath=yes
12885  if test "$with_gnu_ld" = yes; then
12886    need_lib_prefix=no
12887  fi
12888  need_version=yes
12889  ;;
12890
12891sysv4 | sysv4.3*)
12892  version_type=linux
12893  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12894  soname_spec='${libname}${release}${shared_ext}$major'
12895  shlibpath_var=LD_LIBRARY_PATH
12896  case $host_vendor in
12897    sni)
12898      shlibpath_overrides_runpath=no
12899      need_lib_prefix=no
12900      export_dynamic_flag_spec='${wl}-Blargedynsym'
12901      runpath_var=LD_RUN_PATH
12902      ;;
12903    siemens)
12904      need_lib_prefix=no
12905      ;;
12906    motorola)
12907      need_lib_prefix=no
12908      need_version=no
12909      shlibpath_overrides_runpath=no
12910      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12911      ;;
12912  esac
12913  ;;
12914
12915sysv4*MP*)
12916  if test -d /usr/nec ;then
12917    version_type=linux
12918    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12919    soname_spec='$libname${shared_ext}.$major'
12920    shlibpath_var=LD_LIBRARY_PATH
12921  fi
12922  ;;
12923
12924sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12925  version_type=freebsd-elf
12926  need_lib_prefix=no
12927  need_version=no
12928  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12929  soname_spec='${libname}${release}${shared_ext}$major'
12930  shlibpath_var=LD_LIBRARY_PATH
12931  hardcode_into_libs=yes
12932  if test "$with_gnu_ld" = yes; then
12933    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12934    shlibpath_overrides_runpath=no
12935  else
12936    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12937    shlibpath_overrides_runpath=yes
12938    case $host_os in
12939      sco3.2v5*)
12940        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12941	;;
12942    esac
12943  fi
12944  sys_lib_dlsearch_path_spec='/usr/lib'
12945  ;;
12946
12947uts4*)
12948  version_type=linux
12949  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12950  soname_spec='${libname}${release}${shared_ext}$major'
12951  shlibpath_var=LD_LIBRARY_PATH
12952  ;;
12953
12954*)
12955  dynamic_linker=no
12956  ;;
12957esac
12958{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12959echo "${ECHO_T}$dynamic_linker" >&6; }
12960test "$dynamic_linker" = no && can_build_shared=no
12961
12962variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12963if test "$GCC" = yes; then
12964  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12965fi
12966
12967{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12968echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12969hardcode_action_CXX=
12970if test -n "$hardcode_libdir_flag_spec_CXX" || \
12971   test -n "$runpath_var_CXX" || \
12972   test "X$hardcode_automatic_CXX" = "Xyes" ; then
12973
12974  # We can hardcode non-existant directories.
12975  if test "$hardcode_direct_CXX" != no &&
12976     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12977     # have to relink, otherwise we might link with an installed library
12978     # when we should be linking with a yet-to-be-installed one
12979     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12980     test "$hardcode_minus_L_CXX" != no; then
12981    # Linking always hardcodes the temporary library directory.
12982    hardcode_action_CXX=relink
12983  else
12984    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12985    hardcode_action_CXX=immediate
12986  fi
12987else
12988  # We cannot hardcode anything, or else we can only hardcode existing
12989  # directories.
12990  hardcode_action_CXX=unsupported
12991fi
12992{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12993echo "${ECHO_T}$hardcode_action_CXX" >&6; }
12994
12995if test "$hardcode_action_CXX" = relink; then
12996  # Fast installation is not supported
12997  enable_fast_install=no
12998elif test "$shlibpath_overrides_runpath" = yes ||
12999     test "$enable_shared" = no; then
13000  # Fast installation is not necessary
13001  enable_fast_install=needless
13002fi
13003
13004
13005# The else clause should only fire when bootstrapping the
13006# libtool distribution, otherwise you forgot to ship ltmain.sh
13007# with your package, and you will get complaints that there are
13008# no rules to generate ltmain.sh.
13009if test -f "$ltmain"; then
13010  # See if we are running on zsh, and set the options which allow our commands through
13011  # without removal of \ escapes.
13012  if test -n "${ZSH_VERSION+set}" ; then
13013    setopt NO_GLOB_SUBST
13014  fi
13015  # Now quote all the things that may contain metacharacters while being
13016  # careful not to overquote the AC_SUBSTed values.  We take copies of the
13017  # variables and quote the copies for generation of the libtool script.
13018  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13019    SED SHELL STRIP \
13020    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13021    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13022    deplibs_check_method reload_flag reload_cmds need_locks \
13023    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13024    lt_cv_sys_global_symbol_to_c_name_address \
13025    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13026    old_postinstall_cmds old_postuninstall_cmds \
13027    compiler_CXX \
13028    CC_CXX \
13029    LD_CXX \
13030    lt_prog_compiler_wl_CXX \
13031    lt_prog_compiler_pic_CXX \
13032    lt_prog_compiler_static_CXX \
13033    lt_prog_compiler_no_builtin_flag_CXX \
13034    export_dynamic_flag_spec_CXX \
13035    thread_safe_flag_spec_CXX \
13036    whole_archive_flag_spec_CXX \
13037    enable_shared_with_static_runtimes_CXX \
13038    old_archive_cmds_CXX \
13039    old_archive_from_new_cmds_CXX \
13040    predep_objects_CXX \
13041    postdep_objects_CXX \
13042    predeps_CXX \
13043    postdeps_CXX \
13044    compiler_lib_search_path_CXX \
13045    archive_cmds_CXX \
13046    archive_expsym_cmds_CXX \
13047    postinstall_cmds_CXX \
13048    postuninstall_cmds_CXX \
13049    old_archive_from_expsyms_cmds_CXX \
13050    allow_undefined_flag_CXX \
13051    no_undefined_flag_CXX \
13052    export_symbols_cmds_CXX \
13053    hardcode_libdir_flag_spec_CXX \
13054    hardcode_libdir_flag_spec_ld_CXX \
13055    hardcode_libdir_separator_CXX \
13056    hardcode_automatic_CXX \
13057    module_cmds_CXX \
13058    module_expsym_cmds_CXX \
13059    lt_cv_prog_compiler_c_o_CXX \
13060    exclude_expsyms_CXX \
13061    include_expsyms_CXX; do
13062
13063    case $var in
13064    old_archive_cmds_CXX | \
13065    old_archive_from_new_cmds_CXX | \
13066    archive_cmds_CXX | \
13067    archive_expsym_cmds_CXX | \
13068    module_cmds_CXX | \
13069    module_expsym_cmds_CXX | \
13070    old_archive_from_expsyms_cmds_CXX | \
13071    export_symbols_cmds_CXX | \
13072    extract_expsyms_cmds | reload_cmds | finish_cmds | \
13073    postinstall_cmds | postuninstall_cmds | \
13074    old_postinstall_cmds | old_postuninstall_cmds | \
13075    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13076      # Double-quote double-evaled strings.
13077      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13078      ;;
13079    *)
13080      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13081      ;;
13082    esac
13083  done
13084
13085  case $lt_echo in
13086  *'\$0 --fallback-echo"')
13087    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13088    ;;
13089  esac
13090
13091cfgfile="$ofile"
13092
13093  cat <<__EOF__ >> "$cfgfile"
13094# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13095
13096# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13097
13098# Shell to use when invoking shell scripts.
13099SHELL=$lt_SHELL
13100
13101# Whether or not to build shared libraries.
13102build_libtool_libs=$enable_shared
13103
13104# Whether or not to build static libraries.
13105build_old_libs=$enable_static
13106
13107# Whether or not to add -lc for building shared libraries.
13108build_libtool_need_lc=$archive_cmds_need_lc_CXX
13109
13110# Whether or not to disallow shared libs when runtime libs are static
13111allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13112
13113# Whether or not to optimize for fast installation.
13114fast_install=$enable_fast_install
13115
13116# The host system.
13117host_alias=$host_alias
13118host=$host
13119host_os=$host_os
13120
13121# The build system.
13122build_alias=$build_alias
13123build=$build
13124build_os=$build_os
13125
13126# An echo program that does not interpret backslashes.
13127echo=$lt_echo
13128
13129# The archiver.
13130AR=$lt_AR
13131AR_FLAGS=$lt_AR_FLAGS
13132
13133# A C compiler.
13134LTCC=$lt_LTCC
13135
13136# LTCC compiler flags.
13137LTCFLAGS=$lt_LTCFLAGS
13138
13139# A language-specific compiler.
13140CC=$lt_compiler_CXX
13141
13142# Is the compiler the GNU C compiler?
13143with_gcc=$GCC_CXX
13144
13145# An ERE matcher.
13146EGREP=$lt_EGREP
13147
13148# The linker used to build libraries.
13149LD=$lt_LD_CXX
13150
13151# Whether we need hard or soft links.
13152LN_S=$lt_LN_S
13153
13154# A BSD-compatible nm program.
13155NM=$lt_NM
13156
13157# A symbol stripping program
13158STRIP=$lt_STRIP
13159
13160# Used to examine libraries when file_magic_cmd begins "file"
13161MAGIC_CMD=$MAGIC_CMD
13162
13163# Used on cygwin: DLL creation program.
13164DLLTOOL="$DLLTOOL"
13165
13166# Used on cygwin: object dumper.
13167OBJDUMP="$OBJDUMP"
13168
13169# Used on cygwin: assembler.
13170AS="$AS"
13171
13172# The name of the directory that contains temporary libtool files.
13173objdir=$objdir
13174
13175# How to create reloadable object files.
13176reload_flag=$lt_reload_flag
13177reload_cmds=$lt_reload_cmds
13178
13179# How to pass a linker flag through the compiler.
13180wl=$lt_lt_prog_compiler_wl_CXX
13181
13182# Object file suffix (normally "o").
13183objext="$ac_objext"
13184
13185# Old archive suffix (normally "a").
13186libext="$libext"
13187
13188# Shared library suffix (normally ".so").
13189shrext_cmds='$shrext_cmds'
13190
13191# Executable file suffix (normally "").
13192exeext="$exeext"
13193
13194# Additional compiler flags for building library objects.
13195pic_flag=$lt_lt_prog_compiler_pic_CXX
13196pic_mode=$pic_mode
13197
13198# What is the maximum length of a command?
13199max_cmd_len=$lt_cv_sys_max_cmd_len
13200
13201# Does compiler simultaneously support -c and -o options?
13202compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13203
13204# Must we lock files when doing compilation?
13205need_locks=$lt_need_locks
13206
13207# Do we need the lib prefix for modules?
13208need_lib_prefix=$need_lib_prefix
13209
13210# Do we need a version for libraries?
13211need_version=$need_version
13212
13213# Whether dlopen is supported.
13214dlopen_support=$enable_dlopen
13215
13216# Whether dlopen of programs is supported.
13217dlopen_self=$enable_dlopen_self
13218
13219# Whether dlopen of statically linked programs is supported.
13220dlopen_self_static=$enable_dlopen_self_static
13221
13222# Compiler flag to prevent dynamic linking.
13223link_static_flag=$lt_lt_prog_compiler_static_CXX
13224
13225# Compiler flag to turn off builtin functions.
13226no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13227
13228# Compiler flag to allow reflexive dlopens.
13229export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13230
13231# Compiler flag to generate shared objects directly from archives.
13232whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13233
13234# Compiler flag to generate thread-safe objects.
13235thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13236
13237# Library versioning type.
13238version_type=$version_type
13239
13240# Format of library name prefix.
13241libname_spec=$lt_libname_spec
13242
13243# List of archive names.  First name is the real one, the rest are links.
13244# The last name is the one that the linker finds with -lNAME.
13245library_names_spec=$lt_library_names_spec
13246
13247# The coded name of the library, if different from the real name.
13248soname_spec=$lt_soname_spec
13249
13250# Commands used to build and install an old-style archive.
13251RANLIB=$lt_RANLIB
13252old_archive_cmds=$lt_old_archive_cmds_CXX
13253old_postinstall_cmds=$lt_old_postinstall_cmds
13254old_postuninstall_cmds=$lt_old_postuninstall_cmds
13255
13256# Create an old-style archive from a shared archive.
13257old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13258
13259# Create a temporary old-style archive to link instead of a shared archive.
13260old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13261
13262# Commands used to build and install a shared archive.
13263archive_cmds=$lt_archive_cmds_CXX
13264archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13265postinstall_cmds=$lt_postinstall_cmds
13266postuninstall_cmds=$lt_postuninstall_cmds
13267
13268# Commands used to build a loadable module (assumed same as above if empty)
13269module_cmds=$lt_module_cmds_CXX
13270module_expsym_cmds=$lt_module_expsym_cmds_CXX
13271
13272# Commands to strip libraries.
13273old_striplib=$lt_old_striplib
13274striplib=$lt_striplib
13275
13276# Dependencies to place before the objects being linked to create a
13277# shared library.
13278predep_objects=$lt_predep_objects_CXX
13279
13280# Dependencies to place after the objects being linked to create a
13281# shared library.
13282postdep_objects=$lt_postdep_objects_CXX
13283
13284# Dependencies to place before the objects being linked to create a
13285# shared library.
13286predeps=$lt_predeps_CXX
13287
13288# Dependencies to place after the objects being linked to create a
13289# shared library.
13290postdeps=$lt_postdeps_CXX
13291
13292# The library search path used internally by the compiler when linking
13293# a shared library.
13294compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13295
13296# Method to check whether dependent libraries are shared objects.
13297deplibs_check_method=$lt_deplibs_check_method
13298
13299# Command to use when deplibs_check_method == file_magic.
13300file_magic_cmd=$lt_file_magic_cmd
13301
13302# Flag that allows shared libraries with undefined symbols to be built.
13303allow_undefined_flag=$lt_allow_undefined_flag_CXX
13304
13305# Flag that forces no undefined symbols.
13306no_undefined_flag=$lt_no_undefined_flag_CXX
13307
13308# Commands used to finish a libtool library installation in a directory.
13309finish_cmds=$lt_finish_cmds
13310
13311# Same as above, but a single script fragment to be evaled but not shown.
13312finish_eval=$lt_finish_eval
13313
13314# Take the output of nm and produce a listing of raw symbols and C names.
13315global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13316
13317# Transform the output of nm in a proper C declaration
13318global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13319
13320# Transform the output of nm in a C name address pair
13321global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13322
13323# This is the shared library runtime path variable.
13324runpath_var=$runpath_var
13325
13326# This is the shared library path variable.
13327shlibpath_var=$shlibpath_var
13328
13329# Is shlibpath searched before the hard-coded library search path?
13330shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13331
13332# How to hardcode a shared library path into an executable.
13333hardcode_action=$hardcode_action_CXX
13334
13335# Whether we should hardcode library paths into libraries.
13336hardcode_into_libs=$hardcode_into_libs
13337
13338# Flag to hardcode \$libdir into a binary during linking.
13339# This must work even if \$libdir does not exist.
13340hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13341
13342# If ld is used when linking, flag to hardcode \$libdir into
13343# a binary during linking. This must work even if \$libdir does
13344# not exist.
13345hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13346
13347# Whether we need a single -rpath flag with a separated argument.
13348hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13349
13350# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13351# resulting binary.
13352hardcode_direct=$hardcode_direct_CXX
13353
13354# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13355# resulting binary.
13356hardcode_minus_L=$hardcode_minus_L_CXX
13357
13358# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13359# the resulting binary.
13360hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13361
13362# Set to yes if building a shared library automatically hardcodes DIR into the library
13363# and all subsequent libraries and executables linked against it.
13364hardcode_automatic=$hardcode_automatic_CXX
13365
13366# Variables whose values should be saved in libtool wrapper scripts and
13367# restored at relink time.
13368variables_saved_for_relink="$variables_saved_for_relink"
13369
13370# Whether libtool must link a program against all its dependency libraries.
13371link_all_deplibs=$link_all_deplibs_CXX
13372
13373# Compile-time system search path for libraries
13374sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13375
13376# Run-time system search path for libraries
13377sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13378
13379# Fix the shell variable \$srcfile for the compiler.
13380fix_srcfile_path="$fix_srcfile_path_CXX"
13381
13382# Set to yes if exported symbols are required.
13383always_export_symbols=$always_export_symbols_CXX
13384
13385# The commands to list exported symbols.
13386export_symbols_cmds=$lt_export_symbols_cmds_CXX
13387
13388# The commands to extract the exported symbol list from a shared archive.
13389extract_expsyms_cmds=$lt_extract_expsyms_cmds
13390
13391# Symbols that should not be listed in the preloaded symbols.
13392exclude_expsyms=$lt_exclude_expsyms_CXX
13393
13394# Symbols that must always be exported.
13395include_expsyms=$lt_include_expsyms_CXX
13396
13397# ### END LIBTOOL TAG CONFIG: $tagname
13398
13399__EOF__
13400
13401
13402else
13403  # If there is no Makefile yet, we rely on a make rule to execute
13404  # `config.status --recheck' to rerun these tests and create the
13405  # libtool script then.
13406  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13407  if test -f "$ltmain_in"; then
13408    test -f Makefile && make "$ltmain"
13409  fi
13410fi
13411
13412
13413ac_ext=c
13414ac_cpp='$CPP $CPPFLAGS'
13415ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13416ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13417ac_compiler_gnu=$ac_cv_c_compiler_gnu
13418
13419CC=$lt_save_CC
13420LDCXX=$LD
13421LD=$lt_save_LD
13422GCC=$lt_save_GCC
13423with_gnu_ldcxx=$with_gnu_ld
13424with_gnu_ld=$lt_save_with_gnu_ld
13425lt_cv_path_LDCXX=$lt_cv_path_LD
13426lt_cv_path_LD=$lt_save_path_LD
13427lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13428lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13429
13430	else
13431	  tagname=""
13432	fi
13433	;;
13434
13435      F77)
13436	if test -n "$F77" && test "X$F77" != "Xno"; then
13437
13438ac_ext=f
13439ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13440ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13441ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13442
13443
13444archive_cmds_need_lc_F77=no
13445allow_undefined_flag_F77=
13446always_export_symbols_F77=no
13447archive_expsym_cmds_F77=
13448export_dynamic_flag_spec_F77=
13449hardcode_direct_F77=no
13450hardcode_libdir_flag_spec_F77=
13451hardcode_libdir_flag_spec_ld_F77=
13452hardcode_libdir_separator_F77=
13453hardcode_minus_L_F77=no
13454hardcode_automatic_F77=no
13455module_cmds_F77=
13456module_expsym_cmds_F77=
13457link_all_deplibs_F77=unknown
13458old_archive_cmds_F77=$old_archive_cmds
13459no_undefined_flag_F77=
13460whole_archive_flag_spec_F77=
13461enable_shared_with_static_runtimes_F77=no
13462
13463# Source file extension for f77 test sources.
13464ac_ext=f
13465
13466# Object file extension for compiled f77 test sources.
13467objext=o
13468objext_F77=$objext
13469
13470# Code to be used in simple compile tests
13471lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13472
13473# Code to be used in simple link tests
13474lt_simple_link_test_code="      program t\n      end\n"
13475
13476# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13477
13478# If no C compiler was specified, use CC.
13479LTCC=${LTCC-"$CC"}
13480
13481# If no C compiler flags were specified, use CFLAGS.
13482LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13483
13484# Allow CC to be a program name with arguments.
13485compiler=$CC
13486
13487
13488# save warnings/boilerplate of simple test code
13489ac_outfile=conftest.$ac_objext
13490printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13491eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13492_lt_compiler_boilerplate=`cat conftest.err`
13493$rm conftest*
13494
13495ac_outfile=conftest.$ac_objext
13496printf "$lt_simple_link_test_code" >conftest.$ac_ext
13497eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13498_lt_linker_boilerplate=`cat conftest.err`
13499$rm conftest*
13500
13501
13502# Allow CC to be a program name with arguments.
13503lt_save_CC="$CC"
13504CC=${F77-"f77"}
13505compiler=$CC
13506compiler_F77=$CC
13507for cc_temp in $compiler""; do
13508  case $cc_temp in
13509    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13510    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13511    \-*) ;;
13512    *) break;;
13513  esac
13514done
13515cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13516
13517
13518{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13519echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13520{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
13521echo "${ECHO_T}$can_build_shared" >&6; }
13522
13523{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13524echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13525test "$can_build_shared" = "no" && enable_shared=no
13526
13527# On AIX, shared libraries and static libraries use the same namespace, and
13528# are all built from PIC.
13529case $host_os in
13530aix3*)
13531  test "$enable_shared" = yes && enable_static=no
13532  if test -n "$RANLIB"; then
13533    archive_cmds="$archive_cmds~\$RANLIB \$lib"
13534    postinstall_cmds='$RANLIB $lib'
13535  fi
13536  ;;
13537aix4* | aix5*)
13538  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13539    test "$enable_shared" = yes && enable_static=no
13540  fi
13541  ;;
13542esac
13543{ echo "$as_me:$LINENO: result: $enable_shared" >&5
13544echo "${ECHO_T}$enable_shared" >&6; }
13545
13546{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13547echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13548# Make sure either enable_shared or enable_static is yes.
13549test "$enable_shared" = yes || enable_static=yes
13550{ echo "$as_me:$LINENO: result: $enable_static" >&5
13551echo "${ECHO_T}$enable_static" >&6; }
13552
13553GCC_F77="$G77"
13554LD_F77="$LD"
13555
13556lt_prog_compiler_wl_F77=
13557lt_prog_compiler_pic_F77=
13558lt_prog_compiler_static_F77=
13559
13560{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13561echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13562
13563  if test "$GCC" = yes; then
13564    lt_prog_compiler_wl_F77='-Wl,'
13565    lt_prog_compiler_static_F77='-static'
13566
13567    case $host_os in
13568      aix*)
13569      # All AIX code is PIC.
13570      if test "$host_cpu" = ia64; then
13571	# AIX 5 now supports IA64 processor
13572	lt_prog_compiler_static_F77='-Bstatic'
13573      fi
13574      ;;
13575
13576    amigaos*)
13577      # FIXME: we need at least 68020 code to build shared libraries, but
13578      # adding the `-m68020' flag to GCC prevents building anything better,
13579      # like `-m68040'.
13580      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13581      ;;
13582
13583    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13584      # PIC is the default for these OSes.
13585      ;;
13586
13587    mingw* | pw32* | os2*)
13588      # This hack is so that the source file can tell whether it is being
13589      # built for inclusion in a dll (and should export symbols for example).
13590      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13591      ;;
13592
13593    darwin* | rhapsody*)
13594      # PIC is the default on this platform
13595      # Common symbols not allowed in MH_DYLIB files
13596      lt_prog_compiler_pic_F77='-fno-common'
13597      ;;
13598
13599    interix3*)
13600      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13601      # Instead, we relocate shared libraries at runtime.
13602      ;;
13603
13604    msdosdjgpp*)
13605      # Just because we use GCC doesn't mean we suddenly get shared libraries
13606      # on systems that don't support them.
13607      lt_prog_compiler_can_build_shared_F77=no
13608      enable_shared=no
13609      ;;
13610
13611    sysv4*MP*)
13612      if test -d /usr/nec; then
13613	lt_prog_compiler_pic_F77=-Kconform_pic
13614      fi
13615      ;;
13616
13617    hpux*)
13618      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13619      # not for PA HP-UX.
13620      case $host_cpu in
13621      hppa*64*|ia64*)
13622	# +Z the default
13623	;;
13624      *)
13625	lt_prog_compiler_pic_F77='-fPIC'
13626	;;
13627      esac
13628      ;;
13629
13630    *)
13631      lt_prog_compiler_pic_F77='-fPIC'
13632      ;;
13633    esac
13634  else
13635    # PORTME Check for flag to pass linker flags through the system compiler.
13636    case $host_os in
13637    aix*)
13638      lt_prog_compiler_wl_F77='-Wl,'
13639      if test "$host_cpu" = ia64; then
13640	# AIX 5 now supports IA64 processor
13641	lt_prog_compiler_static_F77='-Bstatic'
13642      else
13643	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13644      fi
13645      ;;
13646      darwin*)
13647        # PIC is the default on this platform
13648        # Common symbols not allowed in MH_DYLIB files
13649       case $cc_basename in
13650         xlc*)
13651         lt_prog_compiler_pic_F77='-qnocommon'
13652         lt_prog_compiler_wl_F77='-Wl,'
13653         ;;
13654       esac
13655       ;;
13656
13657    mingw* | pw32* | os2*)
13658      # This hack is so that the source file can tell whether it is being
13659      # built for inclusion in a dll (and should export symbols for example).
13660      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13661      ;;
13662
13663    hpux9* | hpux10* | hpux11*)
13664      lt_prog_compiler_wl_F77='-Wl,'
13665      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13666      # not for PA HP-UX.
13667      case $host_cpu in
13668      hppa*64*|ia64*)
13669	# +Z the default
13670	;;
13671      *)
13672	lt_prog_compiler_pic_F77='+Z'
13673	;;
13674      esac
13675      # Is there a better lt_prog_compiler_static that works with the bundled CC?
13676      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13677      ;;
13678
13679    irix5* | irix6* | nonstopux*)
13680      lt_prog_compiler_wl_F77='-Wl,'
13681      # PIC (with -KPIC) is the default.
13682      lt_prog_compiler_static_F77='-non_shared'
13683      ;;
13684
13685    newsos6)
13686      lt_prog_compiler_pic_F77='-KPIC'
13687      lt_prog_compiler_static_F77='-Bstatic'
13688      ;;
13689
13690    linux* | k*bsd*-gnu)
13691      case $cc_basename in
13692      icc* | ecc*)
13693	lt_prog_compiler_wl_F77='-Wl,'
13694	lt_prog_compiler_pic_F77='-KPIC'
13695	lt_prog_compiler_static_F77='-static'
13696        ;;
13697      pgcc* | pgf77* | pgf90* | pgf95*)
13698        # Portland Group compilers (*not* the Pentium gcc compiler,
13699	# which looks to be a dead project)
13700	lt_prog_compiler_wl_F77='-Wl,'
13701	lt_prog_compiler_pic_F77='-fpic'
13702	lt_prog_compiler_static_F77='-Bstatic'
13703        ;;
13704      ccc*)
13705        lt_prog_compiler_wl_F77='-Wl,'
13706        # All Alpha code is PIC.
13707        lt_prog_compiler_static_F77='-non_shared'
13708        ;;
13709      esac
13710      ;;
13711
13712    osf3* | osf4* | osf5*)
13713      lt_prog_compiler_wl_F77='-Wl,'
13714      # All OSF/1 code is PIC.
13715      lt_prog_compiler_static_F77='-non_shared'
13716      ;;
13717
13718    solaris*)
13719      lt_prog_compiler_pic_F77='-KPIC'
13720      lt_prog_compiler_static_F77='-Bstatic'
13721      case $cc_basename in
13722      f77* | f90* | f95*)
13723	lt_prog_compiler_wl_F77='-Qoption ld ';;
13724      *)
13725	lt_prog_compiler_wl_F77='-Wl,';;
13726      esac
13727      ;;
13728
13729    sunos4*)
13730      lt_prog_compiler_wl_F77='-Qoption ld '
13731      lt_prog_compiler_pic_F77='-PIC'
13732      lt_prog_compiler_static_F77='-Bstatic'
13733      ;;
13734
13735    sysv4 | sysv4.2uw2* | sysv4.3*)
13736      lt_prog_compiler_wl_F77='-Wl,'
13737      lt_prog_compiler_pic_F77='-KPIC'
13738      lt_prog_compiler_static_F77='-Bstatic'
13739      ;;
13740
13741    sysv4*MP*)
13742      if test -d /usr/nec ;then
13743	lt_prog_compiler_pic_F77='-Kconform_pic'
13744	lt_prog_compiler_static_F77='-Bstatic'
13745      fi
13746      ;;
13747
13748    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13749      lt_prog_compiler_wl_F77='-Wl,'
13750      lt_prog_compiler_pic_F77='-KPIC'
13751      lt_prog_compiler_static_F77='-Bstatic'
13752      ;;
13753
13754    unicos*)
13755      lt_prog_compiler_wl_F77='-Wl,'
13756      lt_prog_compiler_can_build_shared_F77=no
13757      ;;
13758
13759    uts4*)
13760      lt_prog_compiler_pic_F77='-pic'
13761      lt_prog_compiler_static_F77='-Bstatic'
13762      ;;
13763
13764    *)
13765      lt_prog_compiler_can_build_shared_F77=no
13766      ;;
13767    esac
13768  fi
13769
13770{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13771echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13772
13773#
13774# Check to make sure the PIC flag actually works.
13775#
13776if test -n "$lt_prog_compiler_pic_F77"; then
13777
13778{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13779echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13780if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13781  echo $ECHO_N "(cached) $ECHO_C" >&6
13782else
13783  lt_prog_compiler_pic_works_F77=no
13784  ac_outfile=conftest.$ac_objext
13785   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13786   lt_compiler_flag="$lt_prog_compiler_pic_F77"
13787   # Insert the option either (1) after the last *FLAGS variable, or
13788   # (2) before a word containing "conftest.", or (3) at the end.
13789   # Note that $ac_compile itself does not contain backslashes and begins
13790   # with a dollar sign (not a hyphen), so the echo should work correctly.
13791   # The option is referenced via a variable to avoid confusing sed.
13792   lt_compile=`echo "$ac_compile" | $SED \
13793   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13794   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13795   -e 's:$: $lt_compiler_flag:'`
13796   (eval echo "\"\$as_me:13796: $lt_compile\"" >&5)
13797   (eval "$lt_compile" 2>conftest.err)
13798   ac_status=$?
13799   cat conftest.err >&5
13800   echo "$as_me:13800: \$? = $ac_status" >&5
13801   if (exit $ac_status) && test -s "$ac_outfile"; then
13802     # The compiler can only warn and ignore the option if not recognized
13803     # So say no if there are warnings other than the usual output.
13804     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13805     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13806     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13807       lt_prog_compiler_pic_works_F77=yes
13808     fi
13809   fi
13810   $rm conftest*
13811
13812fi
13813{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13814echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
13815
13816if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13817    case $lt_prog_compiler_pic_F77 in
13818     "" | " "*) ;;
13819     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13820     esac
13821else
13822    lt_prog_compiler_pic_F77=
13823     lt_prog_compiler_can_build_shared_F77=no
13824fi
13825
13826fi
13827case $host_os in
13828  # For platforms which do not support PIC, -DPIC is meaningless:
13829  *djgpp*)
13830    lt_prog_compiler_pic_F77=
13831    ;;
13832  *)
13833    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13834    ;;
13835esac
13836
13837#
13838# Check to make sure the static flag actually works.
13839#
13840wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13841{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13842echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13843if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13844  echo $ECHO_N "(cached) $ECHO_C" >&6
13845else
13846  lt_prog_compiler_static_works_F77=no
13847   save_LDFLAGS="$LDFLAGS"
13848   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13849   printf "$lt_simple_link_test_code" > conftest.$ac_ext
13850   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13851     # The linker can only warn and ignore the option if not recognized
13852     # So say no if there are warnings
13853     if test -s conftest.err; then
13854       # Append any errors to the config.log.
13855       cat conftest.err 1>&5
13856       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13857       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13858       if diff conftest.exp conftest.er2 >/dev/null; then
13859         lt_prog_compiler_static_works_F77=yes
13860       fi
13861     else
13862       lt_prog_compiler_static_works_F77=yes
13863     fi
13864   fi
13865   $rm conftest*
13866   LDFLAGS="$save_LDFLAGS"
13867
13868fi
13869{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13870echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
13871
13872if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13873    :
13874else
13875    lt_prog_compiler_static_F77=
13876fi
13877
13878
13879{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13880echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13881if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13882  echo $ECHO_N "(cached) $ECHO_C" >&6
13883else
13884  lt_cv_prog_compiler_c_o_F77=no
13885   $rm -r conftest 2>/dev/null
13886   mkdir conftest
13887   cd conftest
13888   mkdir out
13889   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13890
13891   lt_compiler_flag="-o out/conftest2.$ac_objext"
13892   # Insert the option either (1) after the last *FLAGS variable, or
13893   # (2) before a word containing "conftest.", or (3) at the end.
13894   # Note that $ac_compile itself does not contain backslashes and begins
13895   # with a dollar sign (not a hyphen), so the echo should work correctly.
13896   lt_compile=`echo "$ac_compile" | $SED \
13897   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13898   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13899   -e 's:$: $lt_compiler_flag:'`
13900   (eval echo "\"\$as_me:13900: $lt_compile\"" >&5)
13901   (eval "$lt_compile" 2>out/conftest.err)
13902   ac_status=$?
13903   cat out/conftest.err >&5
13904   echo "$as_me:13904: \$? = $ac_status" >&5
13905   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13906   then
13907     # The compiler can only warn and ignore the option if not recognized
13908     # So say no if there are warnings
13909     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13910     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13911     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13912       lt_cv_prog_compiler_c_o_F77=yes
13913     fi
13914   fi
13915   chmod u+w . 2>&5
13916   $rm conftest*
13917   # SGI C++ compiler will create directory out/ii_files/ for
13918   # template instantiation
13919   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13920   $rm out/* && rmdir out
13921   cd ..
13922   rmdir conftest
13923   $rm conftest*
13924
13925fi
13926{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13927echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
13928
13929
13930hard_links="nottested"
13931if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13932  # do not overwrite the value of need_locks provided by the user
13933  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13934echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13935  hard_links=yes
13936  $rm conftest*
13937  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13938  touch conftest.a
13939  ln conftest.a conftest.b 2>&5 || hard_links=no
13940  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13941  { echo "$as_me:$LINENO: result: $hard_links" >&5
13942echo "${ECHO_T}$hard_links" >&6; }
13943  if test "$hard_links" = no; then
13944    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13945echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13946    need_locks=warn
13947  fi
13948else
13949  need_locks=no
13950fi
13951
13952{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13953echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13954
13955  runpath_var=
13956  allow_undefined_flag_F77=
13957  enable_shared_with_static_runtimes_F77=no
13958  archive_cmds_F77=
13959  archive_expsym_cmds_F77=
13960  old_archive_From_new_cmds_F77=
13961  old_archive_from_expsyms_cmds_F77=
13962  export_dynamic_flag_spec_F77=
13963  whole_archive_flag_spec_F77=
13964  thread_safe_flag_spec_F77=
13965  hardcode_libdir_flag_spec_F77=
13966  hardcode_libdir_flag_spec_ld_F77=
13967  hardcode_libdir_separator_F77=
13968  hardcode_direct_F77=no
13969  hardcode_minus_L_F77=no
13970  hardcode_shlibpath_var_F77=unsupported
13971  link_all_deplibs_F77=unknown
13972  hardcode_automatic_F77=no
13973  module_cmds_F77=
13974  module_expsym_cmds_F77=
13975  always_export_symbols_F77=no
13976  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13977  # include_expsyms should be a list of space-separated symbols to be *always*
13978  # included in the symbol list
13979  include_expsyms_F77=
13980  # exclude_expsyms can be an extended regexp of symbols to exclude
13981  # it will be wrapped by ` (' and `)$', so one must not match beginning or
13982  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13983  # as well as any symbol that contains `d'.
13984  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13985  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13986  # platforms (ab)use it in PIC code, but their linkers get confused if
13987  # the symbol is explicitly referenced.  Since portable code cannot
13988  # rely on this symbol name, it's probably fine to never include it in
13989  # preloaded symbol tables.
13990  extract_expsyms_cmds=
13991  # Just being paranoid about ensuring that cc_basename is set.
13992  for cc_temp in $compiler""; do
13993  case $cc_temp in
13994    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13995    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13996    \-*) ;;
13997    *) break;;
13998  esac
13999done
14000cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14001
14002  case $host_os in
14003  cygwin* | mingw* | pw32*)
14004    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14005    # When not using gcc, we currently assume that we are using
14006    # Microsoft Visual C++.
14007    if test "$GCC" != yes; then
14008      with_gnu_ld=no
14009    fi
14010    ;;
14011  interix*)
14012    # we just hope/assume this is gcc and not c89 (= MSVC++)
14013    with_gnu_ld=yes
14014    ;;
14015  openbsd*)
14016    with_gnu_ld=no
14017    ;;
14018  esac
14019
14020  ld_shlibs_F77=yes
14021  if test "$with_gnu_ld" = yes; then
14022    # If archive_cmds runs LD, not CC, wlarc should be empty
14023    wlarc='${wl}'
14024
14025    # Set some defaults for GNU ld with shared library support. These
14026    # are reset later if shared libraries are not supported. Putting them
14027    # here allows them to be overridden if necessary.
14028    runpath_var=LD_RUN_PATH
14029    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14030    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14031    # ancient GNU ld didn't support --whole-archive et. al.
14032    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14033	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14034      else
14035  	whole_archive_flag_spec_F77=
14036    fi
14037    supports_anon_versioning=no
14038    case `$LD -v 2>/dev/null` in
14039      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14040      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14041      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14042      *\ 2.11.*) ;; # other 2.11 versions
14043      *) supports_anon_versioning=yes ;;
14044    esac
14045
14046    # See if GNU ld supports shared libraries.
14047    case $host_os in
14048    aix3* | aix4* | aix5*)
14049      # On AIX/PPC, the GNU linker is very broken
14050      if test "$host_cpu" != ia64; then
14051	ld_shlibs_F77=no
14052	cat <<EOF 1>&2
14053
14054*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14055*** to be unable to reliably create shared libraries on AIX.
14056*** Therefore, libtool is disabling shared libraries support.  If you
14057*** really care for shared libraries, you may want to modify your PATH
14058*** so that a non-GNU linker is found, and then restart.
14059
14060EOF
14061      fi
14062      ;;
14063
14064    amigaos*)
14065      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)'
14066      hardcode_libdir_flag_spec_F77='-L$libdir'
14067      hardcode_minus_L_F77=yes
14068
14069      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14070      # that the semantics of dynamic libraries on AmigaOS, at least up
14071      # to version 4, is to share data among multiple programs linked
14072      # with the same dynamic library.  Since this doesn't match the
14073      # behavior of shared libraries on other platforms, we can't use
14074      # them.
14075      ld_shlibs_F77=no
14076      ;;
14077
14078    beos*)
14079      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14080	allow_undefined_flag_F77=unsupported
14081	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14082	# support --undefined.  This deserves some investigation.  FIXME
14083	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14084      else
14085	ld_shlibs_F77=no
14086      fi
14087      ;;
14088
14089    cygwin* | mingw* | pw32*)
14090      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14091      # as there is no search path for DLLs.
14092      hardcode_libdir_flag_spec_F77='-L$libdir'
14093      allow_undefined_flag_F77=unsupported
14094      always_export_symbols_F77=no
14095      enable_shared_with_static_runtimes_F77=yes
14096      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14097
14098      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14099        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14100	# If the export-symbols file already is a .def file (1st line
14101	# is EXPORTS), use it as is; otherwise, prepend...
14102	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14103	  cp $export_symbols $output_objdir/$soname.def;
14104	else
14105	  echo EXPORTS > $output_objdir/$soname.def;
14106	  cat $export_symbols >> $output_objdir/$soname.def;
14107	fi~
14108	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14109      else
14110	ld_shlibs_F77=no
14111      fi
14112      ;;
14113
14114    interix3*)
14115      hardcode_direct_F77=no
14116      hardcode_shlibpath_var_F77=no
14117      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14118      export_dynamic_flag_spec_F77='${wl}-E'
14119      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14120      # Instead, shared libraries are loaded at an image base (0x10000000 by
14121      # default) and relocated if they conflict, which is a slow very memory
14122      # consuming and fragmenting process.  To avoid this, we pick a random,
14123      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14124      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14125      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'
14126      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'
14127      ;;
14128
14129    linux* | k*bsd*-gnu)
14130      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14131	tmp_addflag=
14132	case $cc_basename,$host_cpu in
14133	pgcc*)				# Portland Group C compiler
14134	  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'
14135	  tmp_addflag=' $pic_flag'
14136	  ;;
14137	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
14138	  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'
14139	  tmp_addflag=' $pic_flag -Mnomain' ;;
14140	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
14141	  tmp_addflag=' -i_dynamic' ;;
14142	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
14143	  tmp_addflag=' -i_dynamic -nofor_main' ;;
14144	ifc* | ifort*)			# Intel Fortran compiler
14145	  tmp_addflag=' -nofor_main' ;;
14146	esac
14147	archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14148
14149	if test $supports_anon_versioning = yes; then
14150	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14151  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14152  $echo "local: *; };" >> $output_objdir/$libname.ver~
14153	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14154	fi
14155	link_all_deplibs_F77=no
14156      else
14157	ld_shlibs_F77=no
14158      fi
14159      ;;
14160
14161    netbsd* | netbsdelf*-gnu)
14162      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14163	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14164	wlarc=
14165      else
14166	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14167	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14168      fi
14169      ;;
14170
14171    solaris*)
14172      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14173	ld_shlibs_F77=no
14174	cat <<EOF 1>&2
14175
14176*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14177*** create shared libraries on Solaris systems.  Therefore, libtool
14178*** is disabling shared libraries support.  We urge you to upgrade GNU
14179*** binutils to release 2.9.1 or newer.  Another option is to modify
14180*** your PATH or compiler configuration so that the native linker is
14181*** used, and then restart.
14182
14183EOF
14184      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14185	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14186	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14187      else
14188	ld_shlibs_F77=no
14189      fi
14190      ;;
14191
14192    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14193      case `$LD -v 2>&1` in
14194        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14195	ld_shlibs_F77=no
14196	cat <<_LT_EOF 1>&2
14197
14198*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14199*** reliably create shared libraries on SCO systems.  Therefore, libtool
14200*** is disabling shared libraries support.  We urge you to upgrade GNU
14201*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14202*** your PATH or compiler configuration so that the native linker is
14203*** used, and then restart.
14204
14205_LT_EOF
14206	;;
14207	*)
14208	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14209	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14210	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14211	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14212	  else
14213	    ld_shlibs_F77=no
14214	  fi
14215	;;
14216      esac
14217      ;;
14218
14219    sunos4*)
14220      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14221      wlarc=
14222      hardcode_direct_F77=yes
14223      hardcode_shlibpath_var_F77=no
14224      ;;
14225
14226    *)
14227      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14228	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14229	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14230      else
14231	ld_shlibs_F77=no
14232      fi
14233      ;;
14234    esac
14235
14236    if test "$ld_shlibs_F77" = no; then
14237      runpath_var=
14238      hardcode_libdir_flag_spec_F77=
14239      export_dynamic_flag_spec_F77=
14240      whole_archive_flag_spec_F77=
14241    fi
14242  else
14243    # PORTME fill in a description of your system's linker (not GNU ld)
14244    case $host_os in
14245    aix3*)
14246      allow_undefined_flag_F77=unsupported
14247      always_export_symbols_F77=yes
14248      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'
14249      # Note: this linker hardcodes the directories in LIBPATH if there
14250      # are no directories specified by -L.
14251      hardcode_minus_L_F77=yes
14252      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14253	# Neither direct hardcoding nor static linking is supported with a
14254	# broken collect2.
14255	hardcode_direct_F77=unsupported
14256      fi
14257      ;;
14258
14259    aix4* | aix5*)
14260      if test "$host_cpu" = ia64; then
14261	# On IA64, the linker does run time linking by default, so we don't
14262	# have to do anything special.
14263	aix_use_runtimelinking=no
14264	exp_sym_flag='-Bexport'
14265	no_entry_flag=""
14266      else
14267	# If we're using GNU nm, then we don't want the "-C" option.
14268	# -C means demangle to AIX nm, but means don't demangle with GNU nm
14269	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14270	  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'
14271	else
14272	  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'
14273	fi
14274	aix_use_runtimelinking=no
14275
14276	# Test if we are trying to use run time linking or normal
14277	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14278	# need to do runtime linking.
14279	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14280	  for ld_flag in $LDFLAGS; do
14281  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14282  	    aix_use_runtimelinking=yes
14283  	    break
14284  	  fi
14285	  done
14286	  ;;
14287	esac
14288
14289	exp_sym_flag='-bexport'
14290	no_entry_flag='-bnoentry'
14291      fi
14292
14293      # When large executables or shared objects are built, AIX ld can
14294      # have problems creating the table of contents.  If linking a library
14295      # or program results in "error TOC overflow" add -mminimal-toc to
14296      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14297      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14298
14299      archive_cmds_F77=''
14300      hardcode_direct_F77=yes
14301      hardcode_libdir_separator_F77=':'
14302      link_all_deplibs_F77=yes
14303
14304      if test "$GCC" = yes; then
14305	case $host_os in aix4.[012]|aix4.[012].*)
14306	# We only want to do this on AIX 4.2 and lower, the check
14307	# below for broken collect2 doesn't work under 4.3+
14308	  collect2name=`${CC} -print-prog-name=collect2`
14309	  if test -f "$collect2name" && \
14310  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
14311	  then
14312  	  # We have reworked collect2
14313  	  hardcode_direct_F77=yes
14314	  else
14315  	  # We have old collect2
14316  	  hardcode_direct_F77=unsupported
14317  	  # It fails to find uninstalled libraries when the uninstalled
14318  	  # path is not listed in the libpath.  Setting hardcode_minus_L
14319  	  # to unsupported forces relinking
14320  	  hardcode_minus_L_F77=yes
14321  	  hardcode_libdir_flag_spec_F77='-L$libdir'
14322  	  hardcode_libdir_separator_F77=
14323	  fi
14324	  ;;
14325	esac
14326	shared_flag='-shared'
14327	if test "$aix_use_runtimelinking" = yes; then
14328	  shared_flag="$shared_flag "'${wl}-G'
14329	fi
14330      else
14331	# not using gcc
14332	if test "$host_cpu" = ia64; then
14333  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14334  	# chokes on -Wl,-G. The following line is correct:
14335	  shared_flag='-G'
14336	else
14337	  if test "$aix_use_runtimelinking" = yes; then
14338	    shared_flag='${wl}-G'
14339	  else
14340	    shared_flag='${wl}-bM:SRE'
14341	  fi
14342	fi
14343      fi
14344
14345      # It seems that -bexpall does not export symbols beginning with
14346      # underscore (_), so it is better to generate a list of symbols to export.
14347      always_export_symbols_F77=yes
14348      if test "$aix_use_runtimelinking" = yes; then
14349	# Warning - without using the other runtime loading flags (-brtl),
14350	# -berok will link without error, but may produce a broken library.
14351	allow_undefined_flag_F77='-berok'
14352       # Determine the default libpath from the value encoded in an empty executable.
14353       cat >conftest.$ac_ext <<_ACEOF
14354      program main
14355
14356      end
14357_ACEOF
14358rm -f conftest.$ac_objext conftest$ac_exeext
14359if { (ac_try="$ac_link"
14360case "(($ac_try" in
14361  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14362  *) ac_try_echo=$ac_try;;
14363esac
14364eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14365  (eval "$ac_link") 2>conftest.er1
14366  ac_status=$?
14367  grep -v '^ *+' conftest.er1 >conftest.err
14368  rm -f conftest.er1
14369  cat conftest.err >&5
14370  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14371  (exit $ac_status); } && {
14372	 test -z "$ac_f77_werror_flag" ||
14373	 test ! -s conftest.err
14374       } && test -s conftest$ac_exeext &&
14375       $as_test_x conftest$ac_exeext; then
14376
14377aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14378}'`
14379# Check for a 64-bit object if we didn't find anything.
14380if 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; }
14381}'`; fi
14382else
14383  echo "$as_me: failed program was:" >&5
14384sed 's/^/| /' conftest.$ac_ext >&5
14385
14386
14387fi
14388
14389rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14390      conftest$ac_exeext conftest.$ac_ext
14391if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14392
14393       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14394	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"
14395       else
14396	if test "$host_cpu" = ia64; then
14397	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14398	  allow_undefined_flag_F77="-z nodefs"
14399	  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"
14400	else
14401	 # Determine the default libpath from the value encoded in an empty executable.
14402	 cat >conftest.$ac_ext <<_ACEOF
14403      program main
14404
14405      end
14406_ACEOF
14407rm -f conftest.$ac_objext conftest$ac_exeext
14408if { (ac_try="$ac_link"
14409case "(($ac_try" in
14410  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14411  *) ac_try_echo=$ac_try;;
14412esac
14413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14414  (eval "$ac_link") 2>conftest.er1
14415  ac_status=$?
14416  grep -v '^ *+' conftest.er1 >conftest.err
14417  rm -f conftest.er1
14418  cat conftest.err >&5
14419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14420  (exit $ac_status); } && {
14421	 test -z "$ac_f77_werror_flag" ||
14422	 test ! -s conftest.err
14423       } && test -s conftest$ac_exeext &&
14424       $as_test_x conftest$ac_exeext; then
14425
14426aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14427}'`
14428# Check for a 64-bit object if we didn't find anything.
14429if 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; }
14430}'`; fi
14431else
14432  echo "$as_me: failed program was:" >&5
14433sed 's/^/| /' conftest.$ac_ext >&5
14434
14435
14436fi
14437
14438rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14439      conftest$ac_exeext conftest.$ac_ext
14440if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14441
14442	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14443	  # Warning - without using the other run time loading flags,
14444	  # -berok will link without error, but may produce a broken library.
14445	  no_undefined_flag_F77=' ${wl}-bernotok'
14446	  allow_undefined_flag_F77=' ${wl}-berok'
14447	  # Exported symbols can be pulled into shared objects from archives
14448	  whole_archive_flag_spec_F77='$convenience'
14449	  archive_cmds_need_lc_F77=yes
14450	  # This is similar to how AIX traditionally builds its shared libraries.
14451	  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'
14452	fi
14453      fi
14454      ;;
14455
14456    amigaos*)
14457      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)'
14458      hardcode_libdir_flag_spec_F77='-L$libdir'
14459      hardcode_minus_L_F77=yes
14460      # see comment about different semantics on the GNU ld section
14461      ld_shlibs_F77=no
14462      ;;
14463
14464    bsdi[45]*)
14465      export_dynamic_flag_spec_F77=-rdynamic
14466      ;;
14467
14468    cygwin* | mingw* | pw32*)
14469      # When not using gcc, we currently assume that we are using
14470      # Microsoft Visual C++.
14471      # hardcode_libdir_flag_spec is actually meaningless, as there is
14472      # no search path for DLLs.
14473      hardcode_libdir_flag_spec_F77=' '
14474      allow_undefined_flag_F77=unsupported
14475      # Tell ltmain to make .lib files, not .a files.
14476      libext=lib
14477      # Tell ltmain to make .dll files, not .so files.
14478      shrext_cmds=".dll"
14479      # FIXME: Setting linknames here is a bad hack.
14480      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14481      # The linker will automatically build a .lib file if we build a DLL.
14482      old_archive_From_new_cmds_F77='true'
14483      # FIXME: Should let the user specify the lib program.
14484      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14485      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14486      enable_shared_with_static_runtimes_F77=yes
14487      ;;
14488
14489    darwin* | rhapsody*)
14490      case $host_os in
14491        rhapsody* | darwin1.[012])
14492         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14493         ;;
14494       *) # Darwin 1.3 on
14495         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14496           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14497         else
14498           case ${MACOSX_DEPLOYMENT_TARGET} in
14499             10.[012])
14500               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14501               ;;
14502             10.*)
14503               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14504               ;;
14505           esac
14506         fi
14507         ;;
14508      esac
14509      archive_cmds_need_lc_F77=no
14510      hardcode_direct_F77=no
14511      hardcode_automatic_F77=yes
14512      hardcode_shlibpath_var_F77=unsupported
14513      whole_archive_flag_spec_F77=''
14514      link_all_deplibs_F77=yes
14515    if test "$GCC" = yes ; then
14516    	output_verbose_link_cmd='echo'
14517        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14518      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14519      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14520      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}'
14521      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}'
14522    else
14523      case $cc_basename in
14524        xlc*)
14525         output_verbose_link_cmd='echo'
14526         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14527         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14528          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14529         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}'
14530          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}'
14531          ;;
14532       *)
14533         ld_shlibs_F77=no
14534          ;;
14535      esac
14536    fi
14537      ;;
14538
14539    dgux*)
14540      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14541      hardcode_libdir_flag_spec_F77='-L$libdir'
14542      hardcode_shlibpath_var_F77=no
14543      ;;
14544
14545    freebsd1*)
14546      ld_shlibs_F77=no
14547      ;;
14548
14549    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14550    # support.  Future versions do this automatically, but an explicit c++rt0.o
14551    # does not break anything, and helps significantly (at the cost of a little
14552    # extra space).
14553    freebsd2.2*)
14554      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14555      hardcode_libdir_flag_spec_F77='-R$libdir'
14556      hardcode_direct_F77=yes
14557      hardcode_shlibpath_var_F77=no
14558      ;;
14559
14560    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14561    freebsd2*)
14562      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14563      hardcode_direct_F77=yes
14564      hardcode_minus_L_F77=yes
14565      hardcode_shlibpath_var_F77=no
14566      ;;
14567
14568    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14569    freebsd* | dragonfly*)
14570      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14571      hardcode_libdir_flag_spec_F77='-R$libdir'
14572      hardcode_direct_F77=yes
14573      hardcode_shlibpath_var_F77=no
14574      ;;
14575
14576    hpux9*)
14577      if test "$GCC" = yes; then
14578	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'
14579      else
14580	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'
14581      fi
14582      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14583      hardcode_libdir_separator_F77=:
14584      hardcode_direct_F77=yes
14585
14586      # hardcode_minus_L: Not really in the search PATH,
14587      # but as the default location of the library.
14588      hardcode_minus_L_F77=yes
14589      export_dynamic_flag_spec_F77='${wl}-E'
14590      ;;
14591
14592    hpux10*)
14593      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14594	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14595      else
14596	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14597      fi
14598      if test "$with_gnu_ld" = no; then
14599	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14600	hardcode_libdir_separator_F77=:
14601
14602	hardcode_direct_F77=yes
14603	export_dynamic_flag_spec_F77='${wl}-E'
14604
14605	# hardcode_minus_L: Not really in the search PATH,
14606	# but as the default location of the library.
14607	hardcode_minus_L_F77=yes
14608      fi
14609      ;;
14610
14611    hpux11*)
14612      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14613	case $host_cpu in
14614	hppa*64*)
14615	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14616	  ;;
14617	ia64*)
14618	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14619	  ;;
14620	*)
14621	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14622	  ;;
14623	esac
14624      else
14625	case $host_cpu in
14626	hppa*64*)
14627	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14628	  ;;
14629	ia64*)
14630	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14631	  ;;
14632	*)
14633	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14634	  ;;
14635	esac
14636      fi
14637      if test "$with_gnu_ld" = no; then
14638	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14639	hardcode_libdir_separator_F77=:
14640
14641	case $host_cpu in
14642	hppa*64*|ia64*)
14643	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14644	  hardcode_direct_F77=no
14645	  hardcode_shlibpath_var_F77=no
14646	  ;;
14647	*)
14648	  hardcode_direct_F77=yes
14649	  export_dynamic_flag_spec_F77='${wl}-E'
14650
14651	  # hardcode_minus_L: Not really in the search PATH,
14652	  # but as the default location of the library.
14653	  hardcode_minus_L_F77=yes
14654	  ;;
14655	esac
14656      fi
14657      ;;
14658
14659    irix5* | irix6* | nonstopux*)
14660      if test "$GCC" = yes; then
14661	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'
14662      else
14663	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'
14664	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14665      fi
14666      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14667      hardcode_libdir_separator_F77=:
14668      link_all_deplibs_F77=yes
14669      ;;
14670
14671    netbsd* | netbsdelf*-gnu)
14672      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14673	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14674      else
14675	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14676      fi
14677      hardcode_libdir_flag_spec_F77='-R$libdir'
14678      hardcode_direct_F77=yes
14679      hardcode_shlibpath_var_F77=no
14680      ;;
14681
14682    newsos6)
14683      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14684      hardcode_direct_F77=yes
14685      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14686      hardcode_libdir_separator_F77=:
14687      hardcode_shlibpath_var_F77=no
14688      ;;
14689
14690    openbsd*)
14691      hardcode_direct_F77=yes
14692      hardcode_shlibpath_var_F77=no
14693      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14694	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14695	archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14696	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14697	export_dynamic_flag_spec_F77='${wl}-E'
14698      else
14699       case $host_os in
14700	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14701	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14702	   hardcode_libdir_flag_spec_F77='-R$libdir'
14703	   ;;
14704	 *)
14705	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14706	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14707	   ;;
14708       esac
14709      fi
14710      ;;
14711
14712    os2*)
14713      hardcode_libdir_flag_spec_F77='-L$libdir'
14714      hardcode_minus_L_F77=yes
14715      allow_undefined_flag_F77=unsupported
14716      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'
14717      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14718      ;;
14719
14720    osf3*)
14721      if test "$GCC" = yes; then
14722	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14723	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'
14724      else
14725	allow_undefined_flag_F77=' -expect_unresolved \*'
14726	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'
14727      fi
14728      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14729      hardcode_libdir_separator_F77=:
14730      ;;
14731
14732    osf4* | osf5*)	# as osf3* with the addition of -msym flag
14733      if test "$GCC" = yes; then
14734	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14735	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'
14736	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14737      else
14738	allow_undefined_flag_F77=' -expect_unresolved \*'
14739	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'
14740	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~
14741	$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'
14742
14743	# Both c and cxx compiler support -rpath directly
14744	hardcode_libdir_flag_spec_F77='-rpath $libdir'
14745      fi
14746      hardcode_libdir_separator_F77=:
14747      ;;
14748
14749    solaris*)
14750      no_undefined_flag_F77=' -z text'
14751      if test "$GCC" = yes; then
14752	wlarc='${wl}'
14753	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14754	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14755	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14756      else
14757	wlarc=''
14758	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14759	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14760  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14761      fi
14762      hardcode_libdir_flag_spec_F77='-R$libdir'
14763      hardcode_shlibpath_var_F77=no
14764      case $host_os in
14765      solaris2.[0-5] | solaris2.[0-5].*) ;;
14766      *)
14767 	# The compiler driver will combine linker options so we
14768 	# cannot just pass the convience library names through
14769 	# without $wl, iff we do not link with $LD.
14770 	# Luckily, gcc supports the same syntax we need for Sun Studio.
14771 	# Supported since Solaris 2.6 (maybe 2.5.1?)
14772 	case $wlarc in
14773 	'')
14774 	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14775 	*)
14776 	  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' ;;
14777 	esac ;;
14778      esac
14779      link_all_deplibs_F77=yes
14780      ;;
14781
14782    sunos4*)
14783      if test "x$host_vendor" = xsequent; then
14784	# Use $CC to link under sequent, because it throws in some extra .o
14785	# files that make .init and .fini sections work.
14786	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14787      else
14788	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14789      fi
14790      hardcode_libdir_flag_spec_F77='-L$libdir'
14791      hardcode_direct_F77=yes
14792      hardcode_minus_L_F77=yes
14793      hardcode_shlibpath_var_F77=no
14794      ;;
14795
14796    sysv4)
14797      case $host_vendor in
14798	sni)
14799	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14800	  hardcode_direct_F77=yes # is this really true???
14801	;;
14802	siemens)
14803	  ## LD is ld it makes a PLAMLIB
14804	  ## CC just makes a GrossModule.
14805	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14806	  reload_cmds_F77='$CC -r -o $output$reload_objs'
14807	  hardcode_direct_F77=no
14808        ;;
14809	motorola)
14810	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14811	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14812	;;
14813      esac
14814      runpath_var='LD_RUN_PATH'
14815      hardcode_shlibpath_var_F77=no
14816      ;;
14817
14818    sysv4.3*)
14819      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14820      hardcode_shlibpath_var_F77=no
14821      export_dynamic_flag_spec_F77='-Bexport'
14822      ;;
14823
14824    sysv4*MP*)
14825      if test -d /usr/nec; then
14826	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14827	hardcode_shlibpath_var_F77=no
14828	runpath_var=LD_RUN_PATH
14829	hardcode_runpath_var=yes
14830	ld_shlibs_F77=yes
14831      fi
14832      ;;
14833
14834    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14835      no_undefined_flag_F77='${wl}-z,text'
14836      archive_cmds_need_lc_F77=no
14837      hardcode_shlibpath_var_F77=no
14838      runpath_var='LD_RUN_PATH'
14839
14840      if test "$GCC" = yes; then
14841	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14842	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14843      else
14844	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14845	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14846      fi
14847      ;;
14848
14849    sysv5* | sco3.2v5* | sco5v6*)
14850      # Note: We can NOT use -z defs as we might desire, because we do not
14851      # link with -lc, and that would cause any symbols used from libc to
14852      # always be unresolved, which means just about no library would
14853      # ever link correctly.  If we're not using GNU ld we use -z text
14854      # though, which does catch some bad symbols but isn't as heavy-handed
14855      # as -z defs.
14856      no_undefined_flag_F77='${wl}-z,text'
14857      allow_undefined_flag_F77='${wl}-z,nodefs'
14858      archive_cmds_need_lc_F77=no
14859      hardcode_shlibpath_var_F77=no
14860      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14861      hardcode_libdir_separator_F77=':'
14862      link_all_deplibs_F77=yes
14863      export_dynamic_flag_spec_F77='${wl}-Bexport'
14864      runpath_var='LD_RUN_PATH'
14865
14866      if test "$GCC" = yes; then
14867	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14868	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14869      else
14870	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14871	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14872      fi
14873      ;;
14874
14875    uts4*)
14876      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14877      hardcode_libdir_flag_spec_F77='-L$libdir'
14878      hardcode_shlibpath_var_F77=no
14879      ;;
14880
14881    *)
14882      ld_shlibs_F77=no
14883      ;;
14884    esac
14885  fi
14886
14887{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14888echo "${ECHO_T}$ld_shlibs_F77" >&6; }
14889test "$ld_shlibs_F77" = no && can_build_shared=no
14890
14891#
14892# Do we need to explicitly link libc?
14893#
14894case "x$archive_cmds_need_lc_F77" in
14895x|xyes)
14896  # Assume -lc should be added
14897  archive_cmds_need_lc_F77=yes
14898
14899  if test "$enable_shared" = yes && test "$GCC" = yes; then
14900    case $archive_cmds_F77 in
14901    *'~'*)
14902      # FIXME: we may have to deal with multi-command sequences.
14903      ;;
14904    '$CC '*)
14905      # Test whether the compiler implicitly links with -lc since on some
14906      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14907      # to ld, don't add -lc before -lgcc.
14908      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14909echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14910      $rm conftest*
14911      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14912
14913      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14914  (eval $ac_compile) 2>&5
14915  ac_status=$?
14916  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14917  (exit $ac_status); } 2>conftest.err; then
14918        soname=conftest
14919        lib=conftest
14920        libobjs=conftest.$ac_objext
14921        deplibs=
14922        wl=$lt_prog_compiler_wl_F77
14923	pic_flag=$lt_prog_compiler_pic_F77
14924        compiler_flags=-v
14925        linker_flags=-v
14926        verstring=
14927        output_objdir=.
14928        libname=conftest
14929        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14930        allow_undefined_flag_F77=
14931        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14932  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14933  ac_status=$?
14934  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14935  (exit $ac_status); }
14936        then
14937	  archive_cmds_need_lc_F77=no
14938        else
14939	  archive_cmds_need_lc_F77=yes
14940        fi
14941        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14942      else
14943        cat conftest.err 1>&5
14944      fi
14945      $rm conftest*
14946      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14947echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
14948      ;;
14949    esac
14950  fi
14951  ;;
14952esac
14953
14954{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14955echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14956library_names_spec=
14957libname_spec='lib$name'
14958soname_spec=
14959shrext_cmds=".so"
14960postinstall_cmds=
14961postuninstall_cmds=
14962finish_cmds=
14963finish_eval=
14964shlibpath_var=
14965shlibpath_overrides_runpath=unknown
14966version_type=none
14967dynamic_linker="$host_os ld.so"
14968sys_lib_dlsearch_path_spec="/lib /usr/lib"
14969if test "$GCC" = yes; then
14970  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14971  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14972    # if the path contains ";" then we assume it to be the separator
14973    # otherwise default to the standard path separator (i.e. ":") - it is
14974    # assumed that no part of a normal pathname contains ";" but that should
14975    # okay in the real world where ";" in dirpaths is itself problematic.
14976    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14977  else
14978    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14979  fi
14980else
14981  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14982fi
14983need_lib_prefix=unknown
14984hardcode_into_libs=no
14985
14986# when you set need_version to no, make sure it does not cause -set_version
14987# flags to be left without arguments
14988need_version=unknown
14989
14990case $host_os in
14991aix3*)
14992  version_type=linux
14993  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14994  shlibpath_var=LIBPATH
14995
14996  # AIX 3 has no versioning support, so we append a major version to the name.
14997  soname_spec='${libname}${release}${shared_ext}$major'
14998  ;;
14999
15000aix4* | aix5*)
15001  version_type=linux
15002  need_lib_prefix=no
15003  need_version=no
15004  hardcode_into_libs=yes
15005  if test "$host_cpu" = ia64; then
15006    # AIX 5 supports IA64
15007    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15008    shlibpath_var=LD_LIBRARY_PATH
15009  else
15010    # With GCC up to 2.95.x, collect2 would create an import file
15011    # for dependence libraries.  The import file would start with
15012    # the line `#! .'.  This would cause the generated library to
15013    # depend on `.', always an invalid library.  This was fixed in
15014    # development snapshots of GCC prior to 3.0.
15015    case $host_os in
15016      aix4 | aix4.[01] | aix4.[01].*)
15017      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15018	   echo ' yes '
15019	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15020	:
15021      else
15022	can_build_shared=no
15023      fi
15024      ;;
15025    esac
15026    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15027    # soname into executable. Probably we can add versioning support to
15028    # collect2, so additional links can be useful in future.
15029    if test "$aix_use_runtimelinking" = yes; then
15030      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15031      # instead of lib<name>.a to let people know that these are not
15032      # typical AIX shared libraries.
15033      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15034    else
15035      # We preserve .a as extension for shared libraries through AIX4.2
15036      # and later when we are not doing run time linking.
15037      library_names_spec='${libname}${release}.a $libname.a'
15038      soname_spec='${libname}${release}${shared_ext}$major'
15039    fi
15040    shlibpath_var=LIBPATH
15041  fi
15042  ;;
15043
15044amigaos*)
15045  library_names_spec='$libname.ixlibrary $libname.a'
15046  # Create ${libname}_ixlibrary.a entries in /sys/libs.
15047  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'
15048  ;;
15049
15050beos*)
15051  library_names_spec='${libname}${shared_ext}'
15052  dynamic_linker="$host_os ld.so"
15053  shlibpath_var=LIBRARY_PATH
15054  ;;
15055
15056bsdi[45]*)
15057  version_type=linux
15058  need_version=no
15059  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15060  soname_spec='${libname}${release}${shared_ext}$major'
15061  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15062  shlibpath_var=LD_LIBRARY_PATH
15063  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15064  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15065  # the default ld.so.conf also contains /usr/contrib/lib and
15066  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15067  # libtool to hard-code these into programs
15068  ;;
15069
15070cygwin* | mingw* | pw32*)
15071  version_type=windows
15072  shrext_cmds=".dll"
15073  need_version=no
15074  need_lib_prefix=no
15075
15076  case $GCC,$host_os in
15077  yes,cygwin* | yes,mingw* | yes,pw32*)
15078    library_names_spec='$libname.dll.a'
15079    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15080    postinstall_cmds='base_file=`basename \${file}`~
15081      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15082      dldir=$destdir/`dirname \$dlpath`~
15083      test -d \$dldir || mkdir -p \$dldir~
15084      $install_prog $dir/$dlname \$dldir/$dlname~
15085      chmod a+x \$dldir/$dlname'
15086    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15087      dlpath=$dir/\$dldll~
15088       $rm \$dlpath'
15089    shlibpath_overrides_runpath=yes
15090
15091    case $host_os in
15092    cygwin*)
15093      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15094      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15095      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15096      ;;
15097    mingw*)
15098      # MinGW DLLs use traditional 'lib' prefix
15099      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15100      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15101      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15102        # It is most probably a Windows format PATH printed by
15103        # mingw gcc, but we are running on Cygwin. Gcc prints its search
15104        # path with ; separators, and with drive letters. We can handle the
15105        # drive letters (cygwin fileutils understands them), so leave them,
15106        # especially as we might pass files found there to a mingw objdump,
15107        # which wouldn't understand a cygwinified path. Ahh.
15108        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15109      else
15110        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15111      fi
15112      ;;
15113    pw32*)
15114      # pw32 DLLs use 'pw' prefix rather than 'lib'
15115      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15116      ;;
15117    esac
15118    ;;
15119
15120  *)
15121    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15122    ;;
15123  esac
15124  dynamic_linker='Win32 ld.exe'
15125  # FIXME: first we should search . and the directory the executable is in
15126  shlibpath_var=PATH
15127  ;;
15128
15129darwin* | rhapsody*)
15130  dynamic_linker="$host_os dyld"
15131  version_type=darwin
15132  need_lib_prefix=no
15133  need_version=no
15134  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15135  soname_spec='${libname}${release}${major}$shared_ext'
15136  shlibpath_overrides_runpath=yes
15137  shlibpath_var=DYLD_LIBRARY_PATH
15138  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15139  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15140  if test "$GCC" = yes; then
15141    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"`
15142  else
15143    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15144  fi
15145  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15146  ;;
15147
15148dgux*)
15149  version_type=linux
15150  need_lib_prefix=no
15151  need_version=no
15152  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15153  soname_spec='${libname}${release}${shared_ext}$major'
15154  shlibpath_var=LD_LIBRARY_PATH
15155  ;;
15156
15157freebsd1*)
15158  dynamic_linker=no
15159  ;;
15160
15161freebsd* | dragonfly*)
15162  # DragonFly does not have aout.  When/if they implement a new
15163  # versioning mechanism, adjust this.
15164  if test -x /usr/bin/objformat; then
15165    objformat=`/usr/bin/objformat`
15166  else
15167    case $host_os in
15168    freebsd[123]*) objformat=aout ;;
15169    *) objformat=elf ;;
15170    esac
15171  fi
15172  version_type=freebsd-$objformat
15173  case $version_type in
15174    freebsd-elf*)
15175      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15176      need_version=no
15177      need_lib_prefix=no
15178      ;;
15179    freebsd-*)
15180      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15181      need_version=yes
15182      ;;
15183  esac
15184  shlibpath_var=LD_LIBRARY_PATH
15185  case $host_os in
15186  freebsd2*)
15187    shlibpath_overrides_runpath=yes
15188    ;;
15189  freebsd3.[01]* | freebsdelf3.[01]*)
15190    shlibpath_overrides_runpath=yes
15191    hardcode_into_libs=yes
15192    ;;
15193  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15194  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15195    shlibpath_overrides_runpath=no
15196    hardcode_into_libs=yes
15197    ;;
15198  freebsd*) # from 4.6 on
15199    shlibpath_overrides_runpath=yes
15200    hardcode_into_libs=yes
15201    ;;
15202  esac
15203  ;;
15204
15205gnu*)
15206  version_type=linux
15207  need_lib_prefix=no
15208  need_version=no
15209  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15210  soname_spec='${libname}${release}${shared_ext}$major'
15211  shlibpath_var=LD_LIBRARY_PATH
15212  hardcode_into_libs=yes
15213  ;;
15214
15215hpux9* | hpux10* | hpux11*)
15216  # Give a soname corresponding to the major version so that dld.sl refuses to
15217  # link against other versions.
15218  version_type=sunos
15219  need_lib_prefix=no
15220  need_version=no
15221  case $host_cpu in
15222  ia64*)
15223    shrext_cmds='.so'
15224    hardcode_into_libs=yes
15225    dynamic_linker="$host_os dld.so"
15226    shlibpath_var=LD_LIBRARY_PATH
15227    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15228    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15229    soname_spec='${libname}${release}${shared_ext}$major'
15230    if test "X$HPUX_IA64_MODE" = X32; then
15231      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15232    else
15233      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15234    fi
15235    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15236    ;;
15237   hppa*64*)
15238     shrext_cmds='.sl'
15239     hardcode_into_libs=yes
15240     dynamic_linker="$host_os dld.sl"
15241     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15242     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15243     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15244     soname_spec='${libname}${release}${shared_ext}$major'
15245     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15246     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15247     ;;
15248   *)
15249    shrext_cmds='.sl'
15250    dynamic_linker="$host_os dld.sl"
15251    shlibpath_var=SHLIB_PATH
15252    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15253    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15254    soname_spec='${libname}${release}${shared_ext}$major'
15255    ;;
15256  esac
15257  # HP-UX runs *really* slowly unless shared libraries are mode 555.
15258  postinstall_cmds='chmod 555 $lib'
15259  ;;
15260
15261interix3*)
15262  version_type=linux
15263  need_lib_prefix=no
15264  need_version=no
15265  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15266  soname_spec='${libname}${release}${shared_ext}$major'
15267  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15268  shlibpath_var=LD_LIBRARY_PATH
15269  shlibpath_overrides_runpath=no
15270  hardcode_into_libs=yes
15271  ;;
15272
15273irix5* | irix6* | nonstopux*)
15274  case $host_os in
15275    nonstopux*) version_type=nonstopux ;;
15276    *)
15277	if test "$lt_cv_prog_gnu_ld" = yes; then
15278		version_type=linux
15279	else
15280		version_type=irix
15281	fi ;;
15282  esac
15283  need_lib_prefix=no
15284  need_version=no
15285  soname_spec='${libname}${release}${shared_ext}$major'
15286  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15287  case $host_os in
15288  irix5* | nonstopux*)
15289    libsuff= shlibsuff=
15290    ;;
15291  *)
15292    case $LD in # libtool.m4 will add one of these switches to LD
15293    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15294      libsuff= shlibsuff= libmagic=32-bit;;
15295    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15296      libsuff=32 shlibsuff=N32 libmagic=N32;;
15297    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15298      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15299    *) libsuff= shlibsuff= libmagic=never-match;;
15300    esac
15301    ;;
15302  esac
15303  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15304  shlibpath_overrides_runpath=no
15305  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15306  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15307  hardcode_into_libs=yes
15308  ;;
15309
15310# No shared lib support for Linux oldld, aout, or coff.
15311linux*oldld* | linux*aout* | linux*coff*)
15312  dynamic_linker=no
15313  ;;
15314
15315# This must be Linux ELF.
15316linux* | k*bsd*-gnu)
15317  version_type=linux
15318  need_lib_prefix=no
15319  need_version=no
15320  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15321  soname_spec='${libname}${release}${shared_ext}$major'
15322  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15323  shlibpath_var=LD_LIBRARY_PATH
15324  shlibpath_overrides_runpath=no
15325  # This implies no fast_install, which is unacceptable.
15326  # Some rework will be needed to allow for fast_install
15327  # before this can be enabled.
15328  hardcode_into_libs=yes
15329
15330  # Append ld.so.conf contents to the search path
15331  if test -f /etc/ld.so.conf; then
15332    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' ' '`
15333    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15334  fi
15335
15336  # We used to test for /lib/ld.so.1 and disable shared libraries on
15337  # powerpc, because MkLinux only supported shared libraries with the
15338  # GNU dynamic linker.  Since this was broken with cross compilers,
15339  # most powerpc-linux boxes support dynamic linking these days and
15340  # people can always --disable-shared, the test was removed, and we
15341  # assume the GNU/Linux dynamic linker is in use.
15342  dynamic_linker='GNU/Linux ld.so'
15343  ;;
15344
15345netbsdelf*-gnu)
15346  version_type=linux
15347  need_lib_prefix=no
15348  need_version=no
15349  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15350  soname_spec='${libname}${release}${shared_ext}$major'
15351  shlibpath_var=LD_LIBRARY_PATH
15352  shlibpath_overrides_runpath=no
15353  hardcode_into_libs=yes
15354  dynamic_linker='NetBSD ld.elf_so'
15355  ;;
15356
15357netbsd*)
15358  version_type=sunos
15359  need_lib_prefix=no
15360  need_version=no
15361  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15362    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15363    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15364    dynamic_linker='NetBSD (a.out) ld.so'
15365  else
15366    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15367    soname_spec='${libname}${release}${shared_ext}$major'
15368    dynamic_linker='NetBSD ld.elf_so'
15369  fi
15370  shlibpath_var=LD_LIBRARY_PATH
15371  shlibpath_overrides_runpath=yes
15372  hardcode_into_libs=yes
15373  ;;
15374
15375newsos6)
15376  version_type=linux
15377  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15378  shlibpath_var=LD_LIBRARY_PATH
15379  shlibpath_overrides_runpath=yes
15380  ;;
15381
15382nto-qnx*)
15383  version_type=linux
15384  need_lib_prefix=no
15385  need_version=no
15386  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15387  soname_spec='${libname}${release}${shared_ext}$major'
15388  shlibpath_var=LD_LIBRARY_PATH
15389  shlibpath_overrides_runpath=yes
15390  ;;
15391
15392openbsd*)
15393  version_type=sunos
15394  sys_lib_dlsearch_path_spec="/usr/lib"
15395  need_lib_prefix=no
15396  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15397  case $host_os in
15398    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15399    *)                         need_version=no  ;;
15400  esac
15401  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15402  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15403  shlibpath_var=LD_LIBRARY_PATH
15404  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15405    case $host_os in
15406      openbsd2.[89] | openbsd2.[89].*)
15407	shlibpath_overrides_runpath=no
15408	;;
15409      *)
15410	shlibpath_overrides_runpath=yes
15411	;;
15412      esac
15413  else
15414    shlibpath_overrides_runpath=yes
15415  fi
15416  ;;
15417
15418os2*)
15419  libname_spec='$name'
15420  shrext_cmds=".dll"
15421  need_lib_prefix=no
15422  library_names_spec='$libname${shared_ext} $libname.a'
15423  dynamic_linker='OS/2 ld.exe'
15424  shlibpath_var=LIBPATH
15425  ;;
15426
15427osf3* | osf4* | osf5*)
15428  version_type=osf
15429  need_lib_prefix=no
15430  need_version=no
15431  soname_spec='${libname}${release}${shared_ext}$major'
15432  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15433  shlibpath_var=LD_LIBRARY_PATH
15434  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15435  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15436  ;;
15437
15438solaris*)
15439  version_type=linux
15440  need_lib_prefix=no
15441  need_version=no
15442  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15443  soname_spec='${libname}${release}${shared_ext}$major'
15444  shlibpath_var=LD_LIBRARY_PATH
15445  shlibpath_overrides_runpath=yes
15446  hardcode_into_libs=yes
15447  # ldd complains unless libraries are executable
15448  postinstall_cmds='chmod +x $lib'
15449  ;;
15450
15451sunos4*)
15452  version_type=sunos
15453  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15454  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15455  shlibpath_var=LD_LIBRARY_PATH
15456  shlibpath_overrides_runpath=yes
15457  if test "$with_gnu_ld" = yes; then
15458    need_lib_prefix=no
15459  fi
15460  need_version=yes
15461  ;;
15462
15463sysv4 | sysv4.3*)
15464  version_type=linux
15465  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15466  soname_spec='${libname}${release}${shared_ext}$major'
15467  shlibpath_var=LD_LIBRARY_PATH
15468  case $host_vendor in
15469    sni)
15470      shlibpath_overrides_runpath=no
15471      need_lib_prefix=no
15472      export_dynamic_flag_spec='${wl}-Blargedynsym'
15473      runpath_var=LD_RUN_PATH
15474      ;;
15475    siemens)
15476      need_lib_prefix=no
15477      ;;
15478    motorola)
15479      need_lib_prefix=no
15480      need_version=no
15481      shlibpath_overrides_runpath=no
15482      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15483      ;;
15484  esac
15485  ;;
15486
15487sysv4*MP*)
15488  if test -d /usr/nec ;then
15489    version_type=linux
15490    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15491    soname_spec='$libname${shared_ext}.$major'
15492    shlibpath_var=LD_LIBRARY_PATH
15493  fi
15494  ;;
15495
15496sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15497  version_type=freebsd-elf
15498  need_lib_prefix=no
15499  need_version=no
15500  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15501  soname_spec='${libname}${release}${shared_ext}$major'
15502  shlibpath_var=LD_LIBRARY_PATH
15503  hardcode_into_libs=yes
15504  if test "$with_gnu_ld" = yes; then
15505    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15506    shlibpath_overrides_runpath=no
15507  else
15508    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15509    shlibpath_overrides_runpath=yes
15510    case $host_os in
15511      sco3.2v5*)
15512        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15513	;;
15514    esac
15515  fi
15516  sys_lib_dlsearch_path_spec='/usr/lib'
15517  ;;
15518
15519uts4*)
15520  version_type=linux
15521  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15522  soname_spec='${libname}${release}${shared_ext}$major'
15523  shlibpath_var=LD_LIBRARY_PATH
15524  ;;
15525
15526*)
15527  dynamic_linker=no
15528  ;;
15529esac
15530{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15531echo "${ECHO_T}$dynamic_linker" >&6; }
15532test "$dynamic_linker" = no && can_build_shared=no
15533
15534variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15535if test "$GCC" = yes; then
15536  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15537fi
15538
15539{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15540echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15541hardcode_action_F77=
15542if test -n "$hardcode_libdir_flag_spec_F77" || \
15543   test -n "$runpath_var_F77" || \
15544   test "X$hardcode_automatic_F77" = "Xyes" ; then
15545
15546  # We can hardcode non-existant directories.
15547  if test "$hardcode_direct_F77" != no &&
15548     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15549     # have to relink, otherwise we might link with an installed library
15550     # when we should be linking with a yet-to-be-installed one
15551     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15552     test "$hardcode_minus_L_F77" != no; then
15553    # Linking always hardcodes the temporary library directory.
15554    hardcode_action_F77=relink
15555  else
15556    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15557    hardcode_action_F77=immediate
15558  fi
15559else
15560  # We cannot hardcode anything, or else we can only hardcode existing
15561  # directories.
15562  hardcode_action_F77=unsupported
15563fi
15564{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15565echo "${ECHO_T}$hardcode_action_F77" >&6; }
15566
15567if test "$hardcode_action_F77" = relink; then
15568  # Fast installation is not supported
15569  enable_fast_install=no
15570elif test "$shlibpath_overrides_runpath" = yes ||
15571     test "$enable_shared" = no; then
15572  # Fast installation is not necessary
15573  enable_fast_install=needless
15574fi
15575
15576
15577# The else clause should only fire when bootstrapping the
15578# libtool distribution, otherwise you forgot to ship ltmain.sh
15579# with your package, and you will get complaints that there are
15580# no rules to generate ltmain.sh.
15581if test -f "$ltmain"; then
15582  # See if we are running on zsh, and set the options which allow our commands through
15583  # without removal of \ escapes.
15584  if test -n "${ZSH_VERSION+set}" ; then
15585    setopt NO_GLOB_SUBST
15586  fi
15587  # Now quote all the things that may contain metacharacters while being
15588  # careful not to overquote the AC_SUBSTed values.  We take copies of the
15589  # variables and quote the copies for generation of the libtool script.
15590  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15591    SED SHELL STRIP \
15592    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15593    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15594    deplibs_check_method reload_flag reload_cmds need_locks \
15595    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15596    lt_cv_sys_global_symbol_to_c_name_address \
15597    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15598    old_postinstall_cmds old_postuninstall_cmds \
15599    compiler_F77 \
15600    CC_F77 \
15601    LD_F77 \
15602    lt_prog_compiler_wl_F77 \
15603    lt_prog_compiler_pic_F77 \
15604    lt_prog_compiler_static_F77 \
15605    lt_prog_compiler_no_builtin_flag_F77 \
15606    export_dynamic_flag_spec_F77 \
15607    thread_safe_flag_spec_F77 \
15608    whole_archive_flag_spec_F77 \
15609    enable_shared_with_static_runtimes_F77 \
15610    old_archive_cmds_F77 \
15611    old_archive_from_new_cmds_F77 \
15612    predep_objects_F77 \
15613    postdep_objects_F77 \
15614    predeps_F77 \
15615    postdeps_F77 \
15616    compiler_lib_search_path_F77 \
15617    archive_cmds_F77 \
15618    archive_expsym_cmds_F77 \
15619    postinstall_cmds_F77 \
15620    postuninstall_cmds_F77 \
15621    old_archive_from_expsyms_cmds_F77 \
15622    allow_undefined_flag_F77 \
15623    no_undefined_flag_F77 \
15624    export_symbols_cmds_F77 \
15625    hardcode_libdir_flag_spec_F77 \
15626    hardcode_libdir_flag_spec_ld_F77 \
15627    hardcode_libdir_separator_F77 \
15628    hardcode_automatic_F77 \
15629    module_cmds_F77 \
15630    module_expsym_cmds_F77 \
15631    lt_cv_prog_compiler_c_o_F77 \
15632    exclude_expsyms_F77 \
15633    include_expsyms_F77; do
15634
15635    case $var in
15636    old_archive_cmds_F77 | \
15637    old_archive_from_new_cmds_F77 | \
15638    archive_cmds_F77 | \
15639    archive_expsym_cmds_F77 | \
15640    module_cmds_F77 | \
15641    module_expsym_cmds_F77 | \
15642    old_archive_from_expsyms_cmds_F77 | \
15643    export_symbols_cmds_F77 | \
15644    extract_expsyms_cmds | reload_cmds | finish_cmds | \
15645    postinstall_cmds | postuninstall_cmds | \
15646    old_postinstall_cmds | old_postuninstall_cmds | \
15647    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15648      # Double-quote double-evaled strings.
15649      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15650      ;;
15651    *)
15652      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15653      ;;
15654    esac
15655  done
15656
15657  case $lt_echo in
15658  *'\$0 --fallback-echo"')
15659    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15660    ;;
15661  esac
15662
15663cfgfile="$ofile"
15664
15665  cat <<__EOF__ >> "$cfgfile"
15666# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15667
15668# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15669
15670# Shell to use when invoking shell scripts.
15671SHELL=$lt_SHELL
15672
15673# Whether or not to build shared libraries.
15674build_libtool_libs=$enable_shared
15675
15676# Whether or not to build static libraries.
15677build_old_libs=$enable_static
15678
15679# Whether or not to add -lc for building shared libraries.
15680build_libtool_need_lc=$archive_cmds_need_lc_F77
15681
15682# Whether or not to disallow shared libs when runtime libs are static
15683allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15684
15685# Whether or not to optimize for fast installation.
15686fast_install=$enable_fast_install
15687
15688# The host system.
15689host_alias=$host_alias
15690host=$host
15691host_os=$host_os
15692
15693# The build system.
15694build_alias=$build_alias
15695build=$build
15696build_os=$build_os
15697
15698# An echo program that does not interpret backslashes.
15699echo=$lt_echo
15700
15701# The archiver.
15702AR=$lt_AR
15703AR_FLAGS=$lt_AR_FLAGS
15704
15705# A C compiler.
15706LTCC=$lt_LTCC
15707
15708# LTCC compiler flags.
15709LTCFLAGS=$lt_LTCFLAGS
15710
15711# A language-specific compiler.
15712CC=$lt_compiler_F77
15713
15714# Is the compiler the GNU C compiler?
15715with_gcc=$GCC_F77
15716
15717# An ERE matcher.
15718EGREP=$lt_EGREP
15719
15720# The linker used to build libraries.
15721LD=$lt_LD_F77
15722
15723# Whether we need hard or soft links.
15724LN_S=$lt_LN_S
15725
15726# A BSD-compatible nm program.
15727NM=$lt_NM
15728
15729# A symbol stripping program
15730STRIP=$lt_STRIP
15731
15732# Used to examine libraries when file_magic_cmd begins "file"
15733MAGIC_CMD=$MAGIC_CMD
15734
15735# Used on cygwin: DLL creation program.
15736DLLTOOL="$DLLTOOL"
15737
15738# Used on cygwin: object dumper.
15739OBJDUMP="$OBJDUMP"
15740
15741# Used on cygwin: assembler.
15742AS="$AS"
15743
15744# The name of the directory that contains temporary libtool files.
15745objdir=$objdir
15746
15747# How to create reloadable object files.
15748reload_flag=$lt_reload_flag
15749reload_cmds=$lt_reload_cmds
15750
15751# How to pass a linker flag through the compiler.
15752wl=$lt_lt_prog_compiler_wl_F77
15753
15754# Object file suffix (normally "o").
15755objext="$ac_objext"
15756
15757# Old archive suffix (normally "a").
15758libext="$libext"
15759
15760# Shared library suffix (normally ".so").
15761shrext_cmds='$shrext_cmds'
15762
15763# Executable file suffix (normally "").
15764exeext="$exeext"
15765
15766# Additional compiler flags for building library objects.
15767pic_flag=$lt_lt_prog_compiler_pic_F77
15768pic_mode=$pic_mode
15769
15770# What is the maximum length of a command?
15771max_cmd_len=$lt_cv_sys_max_cmd_len
15772
15773# Does compiler simultaneously support -c and -o options?
15774compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15775
15776# Must we lock files when doing compilation?
15777need_locks=$lt_need_locks
15778
15779# Do we need the lib prefix for modules?
15780need_lib_prefix=$need_lib_prefix
15781
15782# Do we need a version for libraries?
15783need_version=$need_version
15784
15785# Whether dlopen is supported.
15786dlopen_support=$enable_dlopen
15787
15788# Whether dlopen of programs is supported.
15789dlopen_self=$enable_dlopen_self
15790
15791# Whether dlopen of statically linked programs is supported.
15792dlopen_self_static=$enable_dlopen_self_static
15793
15794# Compiler flag to prevent dynamic linking.
15795link_static_flag=$lt_lt_prog_compiler_static_F77
15796
15797# Compiler flag to turn off builtin functions.
15798no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15799
15800# Compiler flag to allow reflexive dlopens.
15801export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15802
15803# Compiler flag to generate shared objects directly from archives.
15804whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15805
15806# Compiler flag to generate thread-safe objects.
15807thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15808
15809# Library versioning type.
15810version_type=$version_type
15811
15812# Format of library name prefix.
15813libname_spec=$lt_libname_spec
15814
15815# List of archive names.  First name is the real one, the rest are links.
15816# The last name is the one that the linker finds with -lNAME.
15817library_names_spec=$lt_library_names_spec
15818
15819# The coded name of the library, if different from the real name.
15820soname_spec=$lt_soname_spec
15821
15822# Commands used to build and install an old-style archive.
15823RANLIB=$lt_RANLIB
15824old_archive_cmds=$lt_old_archive_cmds_F77
15825old_postinstall_cmds=$lt_old_postinstall_cmds
15826old_postuninstall_cmds=$lt_old_postuninstall_cmds
15827
15828# Create an old-style archive from a shared archive.
15829old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15830
15831# Create a temporary old-style archive to link instead of a shared archive.
15832old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15833
15834# Commands used to build and install a shared archive.
15835archive_cmds=$lt_archive_cmds_F77
15836archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15837postinstall_cmds=$lt_postinstall_cmds
15838postuninstall_cmds=$lt_postuninstall_cmds
15839
15840# Commands used to build a loadable module (assumed same as above if empty)
15841module_cmds=$lt_module_cmds_F77
15842module_expsym_cmds=$lt_module_expsym_cmds_F77
15843
15844# Commands to strip libraries.
15845old_striplib=$lt_old_striplib
15846striplib=$lt_striplib
15847
15848# Dependencies to place before the objects being linked to create a
15849# shared library.
15850predep_objects=$lt_predep_objects_F77
15851
15852# Dependencies to place after the objects being linked to create a
15853# shared library.
15854postdep_objects=$lt_postdep_objects_F77
15855
15856# Dependencies to place before the objects being linked to create a
15857# shared library.
15858predeps=$lt_predeps_F77
15859
15860# Dependencies to place after the objects being linked to create a
15861# shared library.
15862postdeps=$lt_postdeps_F77
15863
15864# The library search path used internally by the compiler when linking
15865# a shared library.
15866compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15867
15868# Method to check whether dependent libraries are shared objects.
15869deplibs_check_method=$lt_deplibs_check_method
15870
15871# Command to use when deplibs_check_method == file_magic.
15872file_magic_cmd=$lt_file_magic_cmd
15873
15874# Flag that allows shared libraries with undefined symbols to be built.
15875allow_undefined_flag=$lt_allow_undefined_flag_F77
15876
15877# Flag that forces no undefined symbols.
15878no_undefined_flag=$lt_no_undefined_flag_F77
15879
15880# Commands used to finish a libtool library installation in a directory.
15881finish_cmds=$lt_finish_cmds
15882
15883# Same as above, but a single script fragment to be evaled but not shown.
15884finish_eval=$lt_finish_eval
15885
15886# Take the output of nm and produce a listing of raw symbols and C names.
15887global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15888
15889# Transform the output of nm in a proper C declaration
15890global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15891
15892# Transform the output of nm in a C name address pair
15893global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15894
15895# This is the shared library runtime path variable.
15896runpath_var=$runpath_var
15897
15898# This is the shared library path variable.
15899shlibpath_var=$shlibpath_var
15900
15901# Is shlibpath searched before the hard-coded library search path?
15902shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15903
15904# How to hardcode a shared library path into an executable.
15905hardcode_action=$hardcode_action_F77
15906
15907# Whether we should hardcode library paths into libraries.
15908hardcode_into_libs=$hardcode_into_libs
15909
15910# Flag to hardcode \$libdir into a binary during linking.
15911# This must work even if \$libdir does not exist.
15912hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15913
15914# If ld is used when linking, flag to hardcode \$libdir into
15915# a binary during linking. This must work even if \$libdir does
15916# not exist.
15917hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15918
15919# Whether we need a single -rpath flag with a separated argument.
15920hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15921
15922# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15923# resulting binary.
15924hardcode_direct=$hardcode_direct_F77
15925
15926# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15927# resulting binary.
15928hardcode_minus_L=$hardcode_minus_L_F77
15929
15930# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15931# the resulting binary.
15932hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15933
15934# Set to yes if building a shared library automatically hardcodes DIR into the library
15935# and all subsequent libraries and executables linked against it.
15936hardcode_automatic=$hardcode_automatic_F77
15937
15938# Variables whose values should be saved in libtool wrapper scripts and
15939# restored at relink time.
15940variables_saved_for_relink="$variables_saved_for_relink"
15941
15942# Whether libtool must link a program against all its dependency libraries.
15943link_all_deplibs=$link_all_deplibs_F77
15944
15945# Compile-time system search path for libraries
15946sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15947
15948# Run-time system search path for libraries
15949sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15950
15951# Fix the shell variable \$srcfile for the compiler.
15952fix_srcfile_path="$fix_srcfile_path_F77"
15953
15954# Set to yes if exported symbols are required.
15955always_export_symbols=$always_export_symbols_F77
15956
15957# The commands to list exported symbols.
15958export_symbols_cmds=$lt_export_symbols_cmds_F77
15959
15960# The commands to extract the exported symbol list from a shared archive.
15961extract_expsyms_cmds=$lt_extract_expsyms_cmds
15962
15963# Symbols that should not be listed in the preloaded symbols.
15964exclude_expsyms=$lt_exclude_expsyms_F77
15965
15966# Symbols that must always be exported.
15967include_expsyms=$lt_include_expsyms_F77
15968
15969# ### END LIBTOOL TAG CONFIG: $tagname
15970
15971__EOF__
15972
15973
15974else
15975  # If there is no Makefile yet, we rely on a make rule to execute
15976  # `config.status --recheck' to rerun these tests and create the
15977  # libtool script then.
15978  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15979  if test -f "$ltmain_in"; then
15980    test -f Makefile && make "$ltmain"
15981  fi
15982fi
15983
15984
15985ac_ext=c
15986ac_cpp='$CPP $CPPFLAGS'
15987ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15988ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15989ac_compiler_gnu=$ac_cv_c_compiler_gnu
15990
15991CC="$lt_save_CC"
15992
15993	else
15994	  tagname=""
15995	fi
15996	;;
15997
15998      GCJ)
15999	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16000
16001
16002# Source file extension for Java test sources.
16003ac_ext=java
16004
16005# Object file extension for compiled Java test sources.
16006objext=o
16007objext_GCJ=$objext
16008
16009# Code to be used in simple compile tests
16010lt_simple_compile_test_code="class foo {}\n"
16011
16012# Code to be used in simple link tests
16013lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16014
16015# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16016
16017# If no C compiler was specified, use CC.
16018LTCC=${LTCC-"$CC"}
16019
16020# If no C compiler flags were specified, use CFLAGS.
16021LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16022
16023# Allow CC to be a program name with arguments.
16024compiler=$CC
16025
16026
16027# save warnings/boilerplate of simple test code
16028ac_outfile=conftest.$ac_objext
16029printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16030eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16031_lt_compiler_boilerplate=`cat conftest.err`
16032$rm conftest*
16033
16034ac_outfile=conftest.$ac_objext
16035printf "$lt_simple_link_test_code" >conftest.$ac_ext
16036eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16037_lt_linker_boilerplate=`cat conftest.err`
16038$rm conftest*
16039
16040
16041# Allow CC to be a program name with arguments.
16042lt_save_CC="$CC"
16043CC=${GCJ-"gcj"}
16044compiler=$CC
16045compiler_GCJ=$CC
16046for cc_temp in $compiler""; do
16047  case $cc_temp in
16048    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16049    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16050    \-*) ;;
16051    *) break;;
16052  esac
16053done
16054cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16055
16056
16057# GCJ did not exist at the time GCC didn't implicitly link libc in.
16058archive_cmds_need_lc_GCJ=no
16059
16060old_archive_cmds_GCJ=$old_archive_cmds
16061
16062
16063lt_prog_compiler_no_builtin_flag_GCJ=
16064
16065if test "$GCC" = yes; then
16066  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16067
16068
16069{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16070echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16071if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16072  echo $ECHO_N "(cached) $ECHO_C" >&6
16073else
16074  lt_cv_prog_compiler_rtti_exceptions=no
16075  ac_outfile=conftest.$ac_objext
16076   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16077   lt_compiler_flag="-fno-rtti -fno-exceptions"
16078   # Insert the option either (1) after the last *FLAGS variable, or
16079   # (2) before a word containing "conftest.", or (3) at the end.
16080   # Note that $ac_compile itself does not contain backslashes and begins
16081   # with a dollar sign (not a hyphen), so the echo should work correctly.
16082   # The option is referenced via a variable to avoid confusing sed.
16083   lt_compile=`echo "$ac_compile" | $SED \
16084   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16085   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16086   -e 's:$: $lt_compiler_flag:'`
16087   (eval echo "\"\$as_me:16087: $lt_compile\"" >&5)
16088   (eval "$lt_compile" 2>conftest.err)
16089   ac_status=$?
16090   cat conftest.err >&5
16091   echo "$as_me:16091: \$? = $ac_status" >&5
16092   if (exit $ac_status) && test -s "$ac_outfile"; then
16093     # The compiler can only warn and ignore the option if not recognized
16094     # So say no if there are warnings other than the usual output.
16095     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16096     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16097     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16098       lt_cv_prog_compiler_rtti_exceptions=yes
16099     fi
16100   fi
16101   $rm conftest*
16102
16103fi
16104{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16105echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16106
16107if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16108    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16109else
16110    :
16111fi
16112
16113fi
16114
16115lt_prog_compiler_wl_GCJ=
16116lt_prog_compiler_pic_GCJ=
16117lt_prog_compiler_static_GCJ=
16118
16119{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16120echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16121
16122  if test "$GCC" = yes; then
16123    lt_prog_compiler_wl_GCJ='-Wl,'
16124    lt_prog_compiler_static_GCJ='-static'
16125
16126    case $host_os in
16127      aix*)
16128      # All AIX code is PIC.
16129      if test "$host_cpu" = ia64; then
16130	# AIX 5 now supports IA64 processor
16131	lt_prog_compiler_static_GCJ='-Bstatic'
16132      fi
16133      ;;
16134
16135    amigaos*)
16136      # FIXME: we need at least 68020 code to build shared libraries, but
16137      # adding the `-m68020' flag to GCC prevents building anything better,
16138      # like `-m68040'.
16139      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16140      ;;
16141
16142    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16143      # PIC is the default for these OSes.
16144      ;;
16145
16146    mingw* | pw32* | os2*)
16147      # This hack is so that the source file can tell whether it is being
16148      # built for inclusion in a dll (and should export symbols for example).
16149      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16150      ;;
16151
16152    darwin* | rhapsody*)
16153      # PIC is the default on this platform
16154      # Common symbols not allowed in MH_DYLIB files
16155      lt_prog_compiler_pic_GCJ='-fno-common'
16156      ;;
16157
16158    interix3*)
16159      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16160      # Instead, we relocate shared libraries at runtime.
16161      ;;
16162
16163    msdosdjgpp*)
16164      # Just because we use GCC doesn't mean we suddenly get shared libraries
16165      # on systems that don't support them.
16166      lt_prog_compiler_can_build_shared_GCJ=no
16167      enable_shared=no
16168      ;;
16169
16170    sysv4*MP*)
16171      if test -d /usr/nec; then
16172	lt_prog_compiler_pic_GCJ=-Kconform_pic
16173      fi
16174      ;;
16175
16176    hpux*)
16177      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16178      # not for PA HP-UX.
16179      case $host_cpu in
16180      hppa*64*|ia64*)
16181	# +Z the default
16182	;;
16183      *)
16184	lt_prog_compiler_pic_GCJ='-fPIC'
16185	;;
16186      esac
16187      ;;
16188
16189    *)
16190      lt_prog_compiler_pic_GCJ='-fPIC'
16191      ;;
16192    esac
16193  else
16194    # PORTME Check for flag to pass linker flags through the system compiler.
16195    case $host_os in
16196    aix*)
16197      lt_prog_compiler_wl_GCJ='-Wl,'
16198      if test "$host_cpu" = ia64; then
16199	# AIX 5 now supports IA64 processor
16200	lt_prog_compiler_static_GCJ='-Bstatic'
16201      else
16202	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16203      fi
16204      ;;
16205      darwin*)
16206        # PIC is the default on this platform
16207        # Common symbols not allowed in MH_DYLIB files
16208       case $cc_basename in
16209         xlc*)
16210         lt_prog_compiler_pic_GCJ='-qnocommon'
16211         lt_prog_compiler_wl_GCJ='-Wl,'
16212         ;;
16213       esac
16214       ;;
16215
16216    mingw* | pw32* | os2*)
16217      # This hack is so that the source file can tell whether it is being
16218      # built for inclusion in a dll (and should export symbols for example).
16219      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16220      ;;
16221
16222    hpux9* | hpux10* | hpux11*)
16223      lt_prog_compiler_wl_GCJ='-Wl,'
16224      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16225      # not for PA HP-UX.
16226      case $host_cpu in
16227      hppa*64*|ia64*)
16228	# +Z the default
16229	;;
16230      *)
16231	lt_prog_compiler_pic_GCJ='+Z'
16232	;;
16233      esac
16234      # Is there a better lt_prog_compiler_static that works with the bundled CC?
16235      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16236      ;;
16237
16238    irix5* | irix6* | nonstopux*)
16239      lt_prog_compiler_wl_GCJ='-Wl,'
16240      # PIC (with -KPIC) is the default.
16241      lt_prog_compiler_static_GCJ='-non_shared'
16242      ;;
16243
16244    newsos6)
16245      lt_prog_compiler_pic_GCJ='-KPIC'
16246      lt_prog_compiler_static_GCJ='-Bstatic'
16247      ;;
16248
16249    linux* | k*bsd*-gnu)
16250      case $cc_basename in
16251      icc* | ecc*)
16252	lt_prog_compiler_wl_GCJ='-Wl,'
16253	lt_prog_compiler_pic_GCJ='-KPIC'
16254	lt_prog_compiler_static_GCJ='-static'
16255        ;;
16256      pgcc* | pgf77* | pgf90* | pgf95*)
16257        # Portland Group compilers (*not* the Pentium gcc compiler,
16258	# which looks to be a dead project)
16259	lt_prog_compiler_wl_GCJ='-Wl,'
16260	lt_prog_compiler_pic_GCJ='-fpic'
16261	lt_prog_compiler_static_GCJ='-Bstatic'
16262        ;;
16263      ccc*)
16264        lt_prog_compiler_wl_GCJ='-Wl,'
16265        # All Alpha code is PIC.
16266        lt_prog_compiler_static_GCJ='-non_shared'
16267        ;;
16268      esac
16269      ;;
16270
16271    osf3* | osf4* | osf5*)
16272      lt_prog_compiler_wl_GCJ='-Wl,'
16273      # All OSF/1 code is PIC.
16274      lt_prog_compiler_static_GCJ='-non_shared'
16275      ;;
16276
16277    solaris*)
16278      lt_prog_compiler_pic_GCJ='-KPIC'
16279      lt_prog_compiler_static_GCJ='-Bstatic'
16280      case $cc_basename in
16281      f77* | f90* | f95*)
16282	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16283      *)
16284	lt_prog_compiler_wl_GCJ='-Wl,';;
16285      esac
16286      ;;
16287
16288    sunos4*)
16289      lt_prog_compiler_wl_GCJ='-Qoption ld '
16290      lt_prog_compiler_pic_GCJ='-PIC'
16291      lt_prog_compiler_static_GCJ='-Bstatic'
16292      ;;
16293
16294    sysv4 | sysv4.2uw2* | sysv4.3*)
16295      lt_prog_compiler_wl_GCJ='-Wl,'
16296      lt_prog_compiler_pic_GCJ='-KPIC'
16297      lt_prog_compiler_static_GCJ='-Bstatic'
16298      ;;
16299
16300    sysv4*MP*)
16301      if test -d /usr/nec ;then
16302	lt_prog_compiler_pic_GCJ='-Kconform_pic'
16303	lt_prog_compiler_static_GCJ='-Bstatic'
16304      fi
16305      ;;
16306
16307    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16308      lt_prog_compiler_wl_GCJ='-Wl,'
16309      lt_prog_compiler_pic_GCJ='-KPIC'
16310      lt_prog_compiler_static_GCJ='-Bstatic'
16311      ;;
16312
16313    unicos*)
16314      lt_prog_compiler_wl_GCJ='-Wl,'
16315      lt_prog_compiler_can_build_shared_GCJ=no
16316      ;;
16317
16318    uts4*)
16319      lt_prog_compiler_pic_GCJ='-pic'
16320      lt_prog_compiler_static_GCJ='-Bstatic'
16321      ;;
16322
16323    *)
16324      lt_prog_compiler_can_build_shared_GCJ=no
16325      ;;
16326    esac
16327  fi
16328
16329{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16330echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16331
16332#
16333# Check to make sure the PIC flag actually works.
16334#
16335if test -n "$lt_prog_compiler_pic_GCJ"; then
16336
16337{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16338echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16339if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16340  echo $ECHO_N "(cached) $ECHO_C" >&6
16341else
16342  lt_prog_compiler_pic_works_GCJ=no
16343  ac_outfile=conftest.$ac_objext
16344   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16345   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16346   # Insert the option either (1) after the last *FLAGS variable, or
16347   # (2) before a word containing "conftest.", or (3) at the end.
16348   # Note that $ac_compile itself does not contain backslashes and begins
16349   # with a dollar sign (not a hyphen), so the echo should work correctly.
16350   # The option is referenced via a variable to avoid confusing sed.
16351   lt_compile=`echo "$ac_compile" | $SED \
16352   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16353   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16354   -e 's:$: $lt_compiler_flag:'`
16355   (eval echo "\"\$as_me:16355: $lt_compile\"" >&5)
16356   (eval "$lt_compile" 2>conftest.err)
16357   ac_status=$?
16358   cat conftest.err >&5
16359   echo "$as_me:16359: \$? = $ac_status" >&5
16360   if (exit $ac_status) && test -s "$ac_outfile"; then
16361     # The compiler can only warn and ignore the option if not recognized
16362     # So say no if there are warnings other than the usual output.
16363     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16364     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16365     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16366       lt_prog_compiler_pic_works_GCJ=yes
16367     fi
16368   fi
16369   $rm conftest*
16370
16371fi
16372{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16373echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16374
16375if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16376    case $lt_prog_compiler_pic_GCJ in
16377     "" | " "*) ;;
16378     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16379     esac
16380else
16381    lt_prog_compiler_pic_GCJ=
16382     lt_prog_compiler_can_build_shared_GCJ=no
16383fi
16384
16385fi
16386case $host_os in
16387  # For platforms which do not support PIC, -DPIC is meaningless:
16388  *djgpp*)
16389    lt_prog_compiler_pic_GCJ=
16390    ;;
16391  *)
16392    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16393    ;;
16394esac
16395
16396#
16397# Check to make sure the static flag actually works.
16398#
16399wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16400{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16401echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16402if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16403  echo $ECHO_N "(cached) $ECHO_C" >&6
16404else
16405  lt_prog_compiler_static_works_GCJ=no
16406   save_LDFLAGS="$LDFLAGS"
16407   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16408   printf "$lt_simple_link_test_code" > conftest.$ac_ext
16409   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16410     # The linker can only warn and ignore the option if not recognized
16411     # So say no if there are warnings
16412     if test -s conftest.err; then
16413       # Append any errors to the config.log.
16414       cat conftest.err 1>&5
16415       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16416       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16417       if diff conftest.exp conftest.er2 >/dev/null; then
16418         lt_prog_compiler_static_works_GCJ=yes
16419       fi
16420     else
16421       lt_prog_compiler_static_works_GCJ=yes
16422     fi
16423   fi
16424   $rm conftest*
16425   LDFLAGS="$save_LDFLAGS"
16426
16427fi
16428{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16429echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16430
16431if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16432    :
16433else
16434    lt_prog_compiler_static_GCJ=
16435fi
16436
16437
16438{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16439echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16440if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16441  echo $ECHO_N "(cached) $ECHO_C" >&6
16442else
16443  lt_cv_prog_compiler_c_o_GCJ=no
16444   $rm -r conftest 2>/dev/null
16445   mkdir conftest
16446   cd conftest
16447   mkdir out
16448   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16449
16450   lt_compiler_flag="-o out/conftest2.$ac_objext"
16451   # Insert the option either (1) after the last *FLAGS variable, or
16452   # (2) before a word containing "conftest.", or (3) at the end.
16453   # Note that $ac_compile itself does not contain backslashes and begins
16454   # with a dollar sign (not a hyphen), so the echo should work correctly.
16455   lt_compile=`echo "$ac_compile" | $SED \
16456   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16457   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16458   -e 's:$: $lt_compiler_flag:'`
16459   (eval echo "\"\$as_me:16459: $lt_compile\"" >&5)
16460   (eval "$lt_compile" 2>out/conftest.err)
16461   ac_status=$?
16462   cat out/conftest.err >&5
16463   echo "$as_me:16463: \$? = $ac_status" >&5
16464   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16465   then
16466     # The compiler can only warn and ignore the option if not recognized
16467     # So say no if there are warnings
16468     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16469     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16470     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16471       lt_cv_prog_compiler_c_o_GCJ=yes
16472     fi
16473   fi
16474   chmod u+w . 2>&5
16475   $rm conftest*
16476   # SGI C++ compiler will create directory out/ii_files/ for
16477   # template instantiation
16478   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16479   $rm out/* && rmdir out
16480   cd ..
16481   rmdir conftest
16482   $rm conftest*
16483
16484fi
16485{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16486echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16487
16488
16489hard_links="nottested"
16490if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16491  # do not overwrite the value of need_locks provided by the user
16492  { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16493echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16494  hard_links=yes
16495  $rm conftest*
16496  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16497  touch conftest.a
16498  ln conftest.a conftest.b 2>&5 || hard_links=no
16499  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16500  { echo "$as_me:$LINENO: result: $hard_links" >&5
16501echo "${ECHO_T}$hard_links" >&6; }
16502  if test "$hard_links" = no; then
16503    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16504echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16505    need_locks=warn
16506  fi
16507else
16508  need_locks=no
16509fi
16510
16511{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16512echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16513
16514  runpath_var=
16515  allow_undefined_flag_GCJ=
16516  enable_shared_with_static_runtimes_GCJ=no
16517  archive_cmds_GCJ=
16518  archive_expsym_cmds_GCJ=
16519  old_archive_From_new_cmds_GCJ=
16520  old_archive_from_expsyms_cmds_GCJ=
16521  export_dynamic_flag_spec_GCJ=
16522  whole_archive_flag_spec_GCJ=
16523  thread_safe_flag_spec_GCJ=
16524  hardcode_libdir_flag_spec_GCJ=
16525  hardcode_libdir_flag_spec_ld_GCJ=
16526  hardcode_libdir_separator_GCJ=
16527  hardcode_direct_GCJ=no
16528  hardcode_minus_L_GCJ=no
16529  hardcode_shlibpath_var_GCJ=unsupported
16530  link_all_deplibs_GCJ=unknown
16531  hardcode_automatic_GCJ=no
16532  module_cmds_GCJ=
16533  module_expsym_cmds_GCJ=
16534  always_export_symbols_GCJ=no
16535  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16536  # include_expsyms should be a list of space-separated symbols to be *always*
16537  # included in the symbol list
16538  include_expsyms_GCJ=
16539  # exclude_expsyms can be an extended regexp of symbols to exclude
16540  # it will be wrapped by ` (' and `)$', so one must not match beginning or
16541  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16542  # as well as any symbol that contains `d'.
16543  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16544  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16545  # platforms (ab)use it in PIC code, but their linkers get confused if
16546  # the symbol is explicitly referenced.  Since portable code cannot
16547  # rely on this symbol name, it's probably fine to never include it in
16548  # preloaded symbol tables.
16549  extract_expsyms_cmds=
16550  # Just being paranoid about ensuring that cc_basename is set.
16551  for cc_temp in $compiler""; do
16552  case $cc_temp in
16553    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16554    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16555    \-*) ;;
16556    *) break;;
16557  esac
16558done
16559cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16560
16561  case $host_os in
16562  cygwin* | mingw* | pw32*)
16563    # FIXME: the MSVC++ port hasn't been tested in a loooong time
16564    # When not using gcc, we currently assume that we are using
16565    # Microsoft Visual C++.
16566    if test "$GCC" != yes; then
16567      with_gnu_ld=no
16568    fi
16569    ;;
16570  interix*)
16571    # we just hope/assume this is gcc and not c89 (= MSVC++)
16572    with_gnu_ld=yes
16573    ;;
16574  openbsd*)
16575    with_gnu_ld=no
16576    ;;
16577  esac
16578
16579  ld_shlibs_GCJ=yes
16580  if test "$with_gnu_ld" = yes; then
16581    # If archive_cmds runs LD, not CC, wlarc should be empty
16582    wlarc='${wl}'
16583
16584    # Set some defaults for GNU ld with shared library support. These
16585    # are reset later if shared libraries are not supported. Putting them
16586    # here allows them to be overridden if necessary.
16587    runpath_var=LD_RUN_PATH
16588    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16589    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16590    # ancient GNU ld didn't support --whole-archive et. al.
16591    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16592	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16593      else
16594  	whole_archive_flag_spec_GCJ=
16595    fi
16596    supports_anon_versioning=no
16597    case `$LD -v 2>/dev/null` in
16598      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16599      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16600      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16601      *\ 2.11.*) ;; # other 2.11 versions
16602      *) supports_anon_versioning=yes ;;
16603    esac
16604
16605    # See if GNU ld supports shared libraries.
16606    case $host_os in
16607    aix3* | aix4* | aix5*)
16608      # On AIX/PPC, the GNU linker is very broken
16609      if test "$host_cpu" != ia64; then
16610	ld_shlibs_GCJ=no
16611	cat <<EOF 1>&2
16612
16613*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16614*** to be unable to reliably create shared libraries on AIX.
16615*** Therefore, libtool is disabling shared libraries support.  If you
16616*** really care for shared libraries, you may want to modify your PATH
16617*** so that a non-GNU linker is found, and then restart.
16618
16619EOF
16620      fi
16621      ;;
16622
16623    amigaos*)
16624      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)'
16625      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16626      hardcode_minus_L_GCJ=yes
16627
16628      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16629      # that the semantics of dynamic libraries on AmigaOS, at least up
16630      # to version 4, is to share data among multiple programs linked
16631      # with the same dynamic library.  Since this doesn't match the
16632      # behavior of shared libraries on other platforms, we can't use
16633      # them.
16634      ld_shlibs_GCJ=no
16635      ;;
16636
16637    beos*)
16638      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16639	allow_undefined_flag_GCJ=unsupported
16640	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16641	# support --undefined.  This deserves some investigation.  FIXME
16642	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16643      else
16644	ld_shlibs_GCJ=no
16645      fi
16646      ;;
16647
16648    cygwin* | mingw* | pw32*)
16649      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16650      # as there is no search path for DLLs.
16651      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16652      allow_undefined_flag_GCJ=unsupported
16653      always_export_symbols_GCJ=no
16654      enable_shared_with_static_runtimes_GCJ=yes
16655      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16656
16657      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16658        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16659	# If the export-symbols file already is a .def file (1st line
16660	# is EXPORTS), use it as is; otherwise, prepend...
16661	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16662	  cp $export_symbols $output_objdir/$soname.def;
16663	else
16664	  echo EXPORTS > $output_objdir/$soname.def;
16665	  cat $export_symbols >> $output_objdir/$soname.def;
16666	fi~
16667	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16668      else
16669	ld_shlibs_GCJ=no
16670      fi
16671      ;;
16672
16673    interix3*)
16674      hardcode_direct_GCJ=no
16675      hardcode_shlibpath_var_GCJ=no
16676      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16677      export_dynamic_flag_spec_GCJ='${wl}-E'
16678      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16679      # Instead, shared libraries are loaded at an image base (0x10000000 by
16680      # default) and relocated if they conflict, which is a slow very memory
16681      # consuming and fragmenting process.  To avoid this, we pick a random,
16682      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16683      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16684      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'
16685      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'
16686      ;;
16687
16688    linux* | k*bsd*-gnu)
16689      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16690	tmp_addflag=
16691	case $cc_basename,$host_cpu in
16692	pgcc*)				# Portland Group C compiler
16693	  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'
16694	  tmp_addflag=' $pic_flag'
16695	  ;;
16696	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
16697	  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'
16698	  tmp_addflag=' $pic_flag -Mnomain' ;;
16699	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
16700	  tmp_addflag=' -i_dynamic' ;;
16701	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
16702	  tmp_addflag=' -i_dynamic -nofor_main' ;;
16703	ifc* | ifort*)			# Intel Fortran compiler
16704	  tmp_addflag=' -nofor_main' ;;
16705	esac
16706	archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16707
16708	if test $supports_anon_versioning = yes; then
16709	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16710  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16711  $echo "local: *; };" >> $output_objdir/$libname.ver~
16712	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16713	fi
16714	link_all_deplibs_GCJ=no
16715      else
16716	ld_shlibs_GCJ=no
16717      fi
16718      ;;
16719
16720    netbsd* | netbsdelf*-gnu)
16721      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16722	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16723	wlarc=
16724      else
16725	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16726	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16727      fi
16728      ;;
16729
16730    solaris*)
16731      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16732	ld_shlibs_GCJ=no
16733	cat <<EOF 1>&2
16734
16735*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16736*** create shared libraries on Solaris systems.  Therefore, libtool
16737*** is disabling shared libraries support.  We urge you to upgrade GNU
16738*** binutils to release 2.9.1 or newer.  Another option is to modify
16739*** your PATH or compiler configuration so that the native linker is
16740*** used, and then restart.
16741
16742EOF
16743      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16744	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16745	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16746      else
16747	ld_shlibs_GCJ=no
16748      fi
16749      ;;
16750
16751    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16752      case `$LD -v 2>&1` in
16753        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16754	ld_shlibs_GCJ=no
16755	cat <<_LT_EOF 1>&2
16756
16757*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16758*** reliably create shared libraries on SCO systems.  Therefore, libtool
16759*** is disabling shared libraries support.  We urge you to upgrade GNU
16760*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16761*** your PATH or compiler configuration so that the native linker is
16762*** used, and then restart.
16763
16764_LT_EOF
16765	;;
16766	*)
16767	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16768	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16769	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16770	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16771	  else
16772	    ld_shlibs_GCJ=no
16773	  fi
16774	;;
16775      esac
16776      ;;
16777
16778    sunos4*)
16779      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16780      wlarc=
16781      hardcode_direct_GCJ=yes
16782      hardcode_shlibpath_var_GCJ=no
16783      ;;
16784
16785    *)
16786      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16787	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16788	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16789      else
16790	ld_shlibs_GCJ=no
16791      fi
16792      ;;
16793    esac
16794
16795    if test "$ld_shlibs_GCJ" = no; then
16796      runpath_var=
16797      hardcode_libdir_flag_spec_GCJ=
16798      export_dynamic_flag_spec_GCJ=
16799      whole_archive_flag_spec_GCJ=
16800    fi
16801  else
16802    # PORTME fill in a description of your system's linker (not GNU ld)
16803    case $host_os in
16804    aix3*)
16805      allow_undefined_flag_GCJ=unsupported
16806      always_export_symbols_GCJ=yes
16807      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'
16808      # Note: this linker hardcodes the directories in LIBPATH if there
16809      # are no directories specified by -L.
16810      hardcode_minus_L_GCJ=yes
16811      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16812	# Neither direct hardcoding nor static linking is supported with a
16813	# broken collect2.
16814	hardcode_direct_GCJ=unsupported
16815      fi
16816      ;;
16817
16818    aix4* | aix5*)
16819      if test "$host_cpu" = ia64; then
16820	# On IA64, the linker does run time linking by default, so we don't
16821	# have to do anything special.
16822	aix_use_runtimelinking=no
16823	exp_sym_flag='-Bexport'
16824	no_entry_flag=""
16825      else
16826	# If we're using GNU nm, then we don't want the "-C" option.
16827	# -C means demangle to AIX nm, but means don't demangle with GNU nm
16828	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16829	  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'
16830	else
16831	  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'
16832	fi
16833	aix_use_runtimelinking=no
16834
16835	# Test if we are trying to use run time linking or normal
16836	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16837	# need to do runtime linking.
16838	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16839	  for ld_flag in $LDFLAGS; do
16840  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16841  	    aix_use_runtimelinking=yes
16842  	    break
16843  	  fi
16844	  done
16845	  ;;
16846	esac
16847
16848	exp_sym_flag='-bexport'
16849	no_entry_flag='-bnoentry'
16850      fi
16851
16852      # When large executables or shared objects are built, AIX ld can
16853      # have problems creating the table of contents.  If linking a library
16854      # or program results in "error TOC overflow" add -mminimal-toc to
16855      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16856      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16857
16858      archive_cmds_GCJ=''
16859      hardcode_direct_GCJ=yes
16860      hardcode_libdir_separator_GCJ=':'
16861      link_all_deplibs_GCJ=yes
16862
16863      if test "$GCC" = yes; then
16864	case $host_os in aix4.[012]|aix4.[012].*)
16865	# We only want to do this on AIX 4.2 and lower, the check
16866	# below for broken collect2 doesn't work under 4.3+
16867	  collect2name=`${CC} -print-prog-name=collect2`
16868	  if test -f "$collect2name" && \
16869  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
16870	  then
16871  	  # We have reworked collect2
16872  	  hardcode_direct_GCJ=yes
16873	  else
16874  	  # We have old collect2
16875  	  hardcode_direct_GCJ=unsupported
16876  	  # It fails to find uninstalled libraries when the uninstalled
16877  	  # path is not listed in the libpath.  Setting hardcode_minus_L
16878  	  # to unsupported forces relinking
16879  	  hardcode_minus_L_GCJ=yes
16880  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
16881  	  hardcode_libdir_separator_GCJ=
16882	  fi
16883	  ;;
16884	esac
16885	shared_flag='-shared'
16886	if test "$aix_use_runtimelinking" = yes; then
16887	  shared_flag="$shared_flag "'${wl}-G'
16888	fi
16889      else
16890	# not using gcc
16891	if test "$host_cpu" = ia64; then
16892  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16893  	# chokes on -Wl,-G. The following line is correct:
16894	  shared_flag='-G'
16895	else
16896	  if test "$aix_use_runtimelinking" = yes; then
16897	    shared_flag='${wl}-G'
16898	  else
16899	    shared_flag='${wl}-bM:SRE'
16900	  fi
16901	fi
16902      fi
16903
16904      # It seems that -bexpall does not export symbols beginning with
16905      # underscore (_), so it is better to generate a list of symbols to export.
16906      always_export_symbols_GCJ=yes
16907      if test "$aix_use_runtimelinking" = yes; then
16908	# Warning - without using the other runtime loading flags (-brtl),
16909	# -berok will link without error, but may produce a broken library.
16910	allow_undefined_flag_GCJ='-berok'
16911       # Determine the default libpath from the value encoded in an empty executable.
16912       cat >conftest.$ac_ext <<_ACEOF
16913/* confdefs.h.  */
16914_ACEOF
16915cat confdefs.h >>conftest.$ac_ext
16916cat >>conftest.$ac_ext <<_ACEOF
16917/* end confdefs.h.  */
16918
16919int
16920main ()
16921{
16922
16923  ;
16924  return 0;
16925}
16926_ACEOF
16927rm -f conftest.$ac_objext conftest$ac_exeext
16928if { (ac_try="$ac_link"
16929case "(($ac_try" in
16930  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16931  *) ac_try_echo=$ac_try;;
16932esac
16933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16934  (eval "$ac_link") 2>conftest.er1
16935  ac_status=$?
16936  grep -v '^ *+' conftest.er1 >conftest.err
16937  rm -f conftest.er1
16938  cat conftest.err >&5
16939  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16940  (exit $ac_status); } && {
16941	 test -z "$ac_c_werror_flag" ||
16942	 test ! -s conftest.err
16943       } && test -s conftest$ac_exeext &&
16944       $as_test_x conftest$ac_exeext; then
16945
16946aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16947}'`
16948# Check for a 64-bit object if we didn't find anything.
16949if 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; }
16950}'`; fi
16951else
16952  echo "$as_me: failed program was:" >&5
16953sed 's/^/| /' conftest.$ac_ext >&5
16954
16955
16956fi
16957
16958rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16959      conftest$ac_exeext conftest.$ac_ext
16960if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16961
16962       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16963	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"
16964       else
16965	if test "$host_cpu" = ia64; then
16966	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16967	  allow_undefined_flag_GCJ="-z nodefs"
16968	  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"
16969	else
16970	 # Determine the default libpath from the value encoded in an empty executable.
16971	 cat >conftest.$ac_ext <<_ACEOF
16972/* confdefs.h.  */
16973_ACEOF
16974cat confdefs.h >>conftest.$ac_ext
16975cat >>conftest.$ac_ext <<_ACEOF
16976/* end confdefs.h.  */
16977
16978int
16979main ()
16980{
16981
16982  ;
16983  return 0;
16984}
16985_ACEOF
16986rm -f conftest.$ac_objext conftest$ac_exeext
16987if { (ac_try="$ac_link"
16988case "(($ac_try" in
16989  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16990  *) ac_try_echo=$ac_try;;
16991esac
16992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16993  (eval "$ac_link") 2>conftest.er1
16994  ac_status=$?
16995  grep -v '^ *+' conftest.er1 >conftest.err
16996  rm -f conftest.er1
16997  cat conftest.err >&5
16998  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16999  (exit $ac_status); } && {
17000	 test -z "$ac_c_werror_flag" ||
17001	 test ! -s conftest.err
17002       } && test -s conftest$ac_exeext &&
17003       $as_test_x conftest$ac_exeext; then
17004
17005aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17006}'`
17007# Check for a 64-bit object if we didn't find anything.
17008if 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; }
17009}'`; fi
17010else
17011  echo "$as_me: failed program was:" >&5
17012sed 's/^/| /' conftest.$ac_ext >&5
17013
17014
17015fi
17016
17017rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17018      conftest$ac_exeext conftest.$ac_ext
17019if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17020
17021	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17022	  # Warning - without using the other run time loading flags,
17023	  # -berok will link without error, but may produce a broken library.
17024	  no_undefined_flag_GCJ=' ${wl}-bernotok'
17025	  allow_undefined_flag_GCJ=' ${wl}-berok'
17026	  # Exported symbols can be pulled into shared objects from archives
17027	  whole_archive_flag_spec_GCJ='$convenience'
17028	  archive_cmds_need_lc_GCJ=yes
17029	  # This is similar to how AIX traditionally builds its shared libraries.
17030	  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'
17031	fi
17032      fi
17033      ;;
17034
17035    amigaos*)
17036      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)'
17037      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17038      hardcode_minus_L_GCJ=yes
17039      # see comment about different semantics on the GNU ld section
17040      ld_shlibs_GCJ=no
17041      ;;
17042
17043    bsdi[45]*)
17044      export_dynamic_flag_spec_GCJ=-rdynamic
17045      ;;
17046
17047    cygwin* | mingw* | pw32*)
17048      # When not using gcc, we currently assume that we are using
17049      # Microsoft Visual C++.
17050      # hardcode_libdir_flag_spec is actually meaningless, as there is
17051      # no search path for DLLs.
17052      hardcode_libdir_flag_spec_GCJ=' '
17053      allow_undefined_flag_GCJ=unsupported
17054      # Tell ltmain to make .lib files, not .a files.
17055      libext=lib
17056      # Tell ltmain to make .dll files, not .so files.
17057      shrext_cmds=".dll"
17058      # FIXME: Setting linknames here is a bad hack.
17059      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17060      # The linker will automatically build a .lib file if we build a DLL.
17061      old_archive_From_new_cmds_GCJ='true'
17062      # FIXME: Should let the user specify the lib program.
17063      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17064      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17065      enable_shared_with_static_runtimes_GCJ=yes
17066      ;;
17067
17068    darwin* | rhapsody*)
17069      case $host_os in
17070        rhapsody* | darwin1.[012])
17071         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17072         ;;
17073       *) # Darwin 1.3 on
17074         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17075           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17076         else
17077           case ${MACOSX_DEPLOYMENT_TARGET} in
17078             10.[012])
17079               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17080               ;;
17081             10.*)
17082               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17083               ;;
17084           esac
17085         fi
17086         ;;
17087      esac
17088      archive_cmds_need_lc_GCJ=no
17089      hardcode_direct_GCJ=no
17090      hardcode_automatic_GCJ=yes
17091      hardcode_shlibpath_var_GCJ=unsupported
17092      whole_archive_flag_spec_GCJ=''
17093      link_all_deplibs_GCJ=yes
17094    if test "$GCC" = yes ; then
17095    	output_verbose_link_cmd='echo'
17096        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17097      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17098      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17099      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}'
17100      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}'
17101    else
17102      case $cc_basename in
17103        xlc*)
17104         output_verbose_link_cmd='echo'
17105         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17106         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17107          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17108         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}'
17109          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}'
17110          ;;
17111       *)
17112         ld_shlibs_GCJ=no
17113          ;;
17114      esac
17115    fi
17116      ;;
17117
17118    dgux*)
17119      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17120      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17121      hardcode_shlibpath_var_GCJ=no
17122      ;;
17123
17124    freebsd1*)
17125      ld_shlibs_GCJ=no
17126      ;;
17127
17128    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17129    # support.  Future versions do this automatically, but an explicit c++rt0.o
17130    # does not break anything, and helps significantly (at the cost of a little
17131    # extra space).
17132    freebsd2.2*)
17133      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17134      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17135      hardcode_direct_GCJ=yes
17136      hardcode_shlibpath_var_GCJ=no
17137      ;;
17138
17139    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17140    freebsd2*)
17141      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17142      hardcode_direct_GCJ=yes
17143      hardcode_minus_L_GCJ=yes
17144      hardcode_shlibpath_var_GCJ=no
17145      ;;
17146
17147    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17148    freebsd* | dragonfly*)
17149      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17150      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17151      hardcode_direct_GCJ=yes
17152      hardcode_shlibpath_var_GCJ=no
17153      ;;
17154
17155    hpux9*)
17156      if test "$GCC" = yes; then
17157	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'
17158      else
17159	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'
17160      fi
17161      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17162      hardcode_libdir_separator_GCJ=:
17163      hardcode_direct_GCJ=yes
17164
17165      # hardcode_minus_L: Not really in the search PATH,
17166      # but as the default location of the library.
17167      hardcode_minus_L_GCJ=yes
17168      export_dynamic_flag_spec_GCJ='${wl}-E'
17169      ;;
17170
17171    hpux10*)
17172      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17173	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17174      else
17175	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17176      fi
17177      if test "$with_gnu_ld" = no; then
17178	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17179	hardcode_libdir_separator_GCJ=:
17180
17181	hardcode_direct_GCJ=yes
17182	export_dynamic_flag_spec_GCJ='${wl}-E'
17183
17184	# hardcode_minus_L: Not really in the search PATH,
17185	# but as the default location of the library.
17186	hardcode_minus_L_GCJ=yes
17187      fi
17188      ;;
17189
17190    hpux11*)
17191      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17192	case $host_cpu in
17193	hppa*64*)
17194	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17195	  ;;
17196	ia64*)
17197	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17198	  ;;
17199	*)
17200	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17201	  ;;
17202	esac
17203      else
17204	case $host_cpu in
17205	hppa*64*)
17206	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17207	  ;;
17208	ia64*)
17209	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17210	  ;;
17211	*)
17212	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17213	  ;;
17214	esac
17215      fi
17216      if test "$with_gnu_ld" = no; then
17217	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17218	hardcode_libdir_separator_GCJ=:
17219
17220	case $host_cpu in
17221	hppa*64*|ia64*)
17222	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17223	  hardcode_direct_GCJ=no
17224	  hardcode_shlibpath_var_GCJ=no
17225	  ;;
17226	*)
17227	  hardcode_direct_GCJ=yes
17228	  export_dynamic_flag_spec_GCJ='${wl}-E'
17229
17230	  # hardcode_minus_L: Not really in the search PATH,
17231	  # but as the default location of the library.
17232	  hardcode_minus_L_GCJ=yes
17233	  ;;
17234	esac
17235      fi
17236      ;;
17237
17238    irix5* | irix6* | nonstopux*)
17239      if test "$GCC" = yes; then
17240	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'
17241      else
17242	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'
17243	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17244      fi
17245      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17246      hardcode_libdir_separator_GCJ=:
17247      link_all_deplibs_GCJ=yes
17248      ;;
17249
17250    netbsd* | netbsdelf*-gnu)
17251      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17252	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17253      else
17254	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17255      fi
17256      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17257      hardcode_direct_GCJ=yes
17258      hardcode_shlibpath_var_GCJ=no
17259      ;;
17260
17261    newsos6)
17262      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17263      hardcode_direct_GCJ=yes
17264      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17265      hardcode_libdir_separator_GCJ=:
17266      hardcode_shlibpath_var_GCJ=no
17267      ;;
17268
17269    openbsd*)
17270      hardcode_direct_GCJ=yes
17271      hardcode_shlibpath_var_GCJ=no
17272      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17273	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17274	archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17275	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17276	export_dynamic_flag_spec_GCJ='${wl}-E'
17277      else
17278       case $host_os in
17279	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17280	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17281	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
17282	   ;;
17283	 *)
17284	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17285	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17286	   ;;
17287       esac
17288      fi
17289      ;;
17290
17291    os2*)
17292      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17293      hardcode_minus_L_GCJ=yes
17294      allow_undefined_flag_GCJ=unsupported
17295      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'
17296      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17297      ;;
17298
17299    osf3*)
17300      if test "$GCC" = yes; then
17301	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17302	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'
17303      else
17304	allow_undefined_flag_GCJ=' -expect_unresolved \*'
17305	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'
17306      fi
17307      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17308      hardcode_libdir_separator_GCJ=:
17309      ;;
17310
17311    osf4* | osf5*)	# as osf3* with the addition of -msym flag
17312      if test "$GCC" = yes; then
17313	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17314	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'
17315	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17316      else
17317	allow_undefined_flag_GCJ=' -expect_unresolved \*'
17318	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'
17319	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~
17320	$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'
17321
17322	# Both c and cxx compiler support -rpath directly
17323	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17324      fi
17325      hardcode_libdir_separator_GCJ=:
17326      ;;
17327
17328    solaris*)
17329      no_undefined_flag_GCJ=' -z text'
17330      if test "$GCC" = yes; then
17331	wlarc='${wl}'
17332	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17333	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17334	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17335      else
17336	wlarc=''
17337	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17338	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17339  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17340      fi
17341      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17342      hardcode_shlibpath_var_GCJ=no
17343      case $host_os in
17344      solaris2.[0-5] | solaris2.[0-5].*) ;;
17345      *)
17346 	# The compiler driver will combine linker options so we
17347 	# cannot just pass the convience library names through
17348 	# without $wl, iff we do not link with $LD.
17349 	# Luckily, gcc supports the same syntax we need for Sun Studio.
17350 	# Supported since Solaris 2.6 (maybe 2.5.1?)
17351 	case $wlarc in
17352 	'')
17353 	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17354 	*)
17355 	  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' ;;
17356 	esac ;;
17357      esac
17358      link_all_deplibs_GCJ=yes
17359      ;;
17360
17361    sunos4*)
17362      if test "x$host_vendor" = xsequent; then
17363	# Use $CC to link under sequent, because it throws in some extra .o
17364	# files that make .init and .fini sections work.
17365	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17366      else
17367	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17368      fi
17369      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17370      hardcode_direct_GCJ=yes
17371      hardcode_minus_L_GCJ=yes
17372      hardcode_shlibpath_var_GCJ=no
17373      ;;
17374
17375    sysv4)
17376      case $host_vendor in
17377	sni)
17378	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17379	  hardcode_direct_GCJ=yes # is this really true???
17380	;;
17381	siemens)
17382	  ## LD is ld it makes a PLAMLIB
17383	  ## CC just makes a GrossModule.
17384	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17385	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17386	  hardcode_direct_GCJ=no
17387        ;;
17388	motorola)
17389	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17390	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17391	;;
17392      esac
17393      runpath_var='LD_RUN_PATH'
17394      hardcode_shlibpath_var_GCJ=no
17395      ;;
17396
17397    sysv4.3*)
17398      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17399      hardcode_shlibpath_var_GCJ=no
17400      export_dynamic_flag_spec_GCJ='-Bexport'
17401      ;;
17402
17403    sysv4*MP*)
17404      if test -d /usr/nec; then
17405	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17406	hardcode_shlibpath_var_GCJ=no
17407	runpath_var=LD_RUN_PATH
17408	hardcode_runpath_var=yes
17409	ld_shlibs_GCJ=yes
17410      fi
17411      ;;
17412
17413    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17414      no_undefined_flag_GCJ='${wl}-z,text'
17415      archive_cmds_need_lc_GCJ=no
17416      hardcode_shlibpath_var_GCJ=no
17417      runpath_var='LD_RUN_PATH'
17418
17419      if test "$GCC" = yes; then
17420	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17421	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17422      else
17423	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17424	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17425      fi
17426      ;;
17427
17428    sysv5* | sco3.2v5* | sco5v6*)
17429      # Note: We can NOT use -z defs as we might desire, because we do not
17430      # link with -lc, and that would cause any symbols used from libc to
17431      # always be unresolved, which means just about no library would
17432      # ever link correctly.  If we're not using GNU ld we use -z text
17433      # though, which does catch some bad symbols but isn't as heavy-handed
17434      # as -z defs.
17435      no_undefined_flag_GCJ='${wl}-z,text'
17436      allow_undefined_flag_GCJ='${wl}-z,nodefs'
17437      archive_cmds_need_lc_GCJ=no
17438      hardcode_shlibpath_var_GCJ=no
17439      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17440      hardcode_libdir_separator_GCJ=':'
17441      link_all_deplibs_GCJ=yes
17442      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17443      runpath_var='LD_RUN_PATH'
17444
17445      if test "$GCC" = yes; then
17446	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17447	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17448      else
17449	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17450	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17451      fi
17452      ;;
17453
17454    uts4*)
17455      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17456      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17457      hardcode_shlibpath_var_GCJ=no
17458      ;;
17459
17460    *)
17461      ld_shlibs_GCJ=no
17462      ;;
17463    esac
17464  fi
17465
17466{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17467echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17468test "$ld_shlibs_GCJ" = no && can_build_shared=no
17469
17470#
17471# Do we need to explicitly link libc?
17472#
17473case "x$archive_cmds_need_lc_GCJ" in
17474x|xyes)
17475  # Assume -lc should be added
17476  archive_cmds_need_lc_GCJ=yes
17477
17478  if test "$enable_shared" = yes && test "$GCC" = yes; then
17479    case $archive_cmds_GCJ in
17480    *'~'*)
17481      # FIXME: we may have to deal with multi-command sequences.
17482      ;;
17483    '$CC '*)
17484      # Test whether the compiler implicitly links with -lc since on some
17485      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17486      # to ld, don't add -lc before -lgcc.
17487      { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17488echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17489      $rm conftest*
17490      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17491
17492      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17493  (eval $ac_compile) 2>&5
17494  ac_status=$?
17495  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17496  (exit $ac_status); } 2>conftest.err; then
17497        soname=conftest
17498        lib=conftest
17499        libobjs=conftest.$ac_objext
17500        deplibs=
17501        wl=$lt_prog_compiler_wl_GCJ
17502	pic_flag=$lt_prog_compiler_pic_GCJ
17503        compiler_flags=-v
17504        linker_flags=-v
17505        verstring=
17506        output_objdir=.
17507        libname=conftest
17508        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17509        allow_undefined_flag_GCJ=
17510        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17511  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17512  ac_status=$?
17513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17514  (exit $ac_status); }
17515        then
17516	  archive_cmds_need_lc_GCJ=no
17517        else
17518	  archive_cmds_need_lc_GCJ=yes
17519        fi
17520        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17521      else
17522        cat conftest.err 1>&5
17523      fi
17524      $rm conftest*
17525      { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17526echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17527      ;;
17528    esac
17529  fi
17530  ;;
17531esac
17532
17533{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17534echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17535library_names_spec=
17536libname_spec='lib$name'
17537soname_spec=
17538shrext_cmds=".so"
17539postinstall_cmds=
17540postuninstall_cmds=
17541finish_cmds=
17542finish_eval=
17543shlibpath_var=
17544shlibpath_overrides_runpath=unknown
17545version_type=none
17546dynamic_linker="$host_os ld.so"
17547sys_lib_dlsearch_path_spec="/lib /usr/lib"
17548if test "$GCC" = yes; then
17549  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17550  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17551    # if the path contains ";" then we assume it to be the separator
17552    # otherwise default to the standard path separator (i.e. ":") - it is
17553    # assumed that no part of a normal pathname contains ";" but that should
17554    # okay in the real world where ";" in dirpaths is itself problematic.
17555    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17556  else
17557    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17558  fi
17559else
17560  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17561fi
17562need_lib_prefix=unknown
17563hardcode_into_libs=no
17564
17565# when you set need_version to no, make sure it does not cause -set_version
17566# flags to be left without arguments
17567need_version=unknown
17568
17569case $host_os in
17570aix3*)
17571  version_type=linux
17572  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17573  shlibpath_var=LIBPATH
17574
17575  # AIX 3 has no versioning support, so we append a major version to the name.
17576  soname_spec='${libname}${release}${shared_ext}$major'
17577  ;;
17578
17579aix4* | aix5*)
17580  version_type=linux
17581  need_lib_prefix=no
17582  need_version=no
17583  hardcode_into_libs=yes
17584  if test "$host_cpu" = ia64; then
17585    # AIX 5 supports IA64
17586    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17587    shlibpath_var=LD_LIBRARY_PATH
17588  else
17589    # With GCC up to 2.95.x, collect2 would create an import file
17590    # for dependence libraries.  The import file would start with
17591    # the line `#! .'.  This would cause the generated library to
17592    # depend on `.', always an invalid library.  This was fixed in
17593    # development snapshots of GCC prior to 3.0.
17594    case $host_os in
17595      aix4 | aix4.[01] | aix4.[01].*)
17596      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17597	   echo ' yes '
17598	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17599	:
17600      else
17601	can_build_shared=no
17602      fi
17603      ;;
17604    esac
17605    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17606    # soname into executable. Probably we can add versioning support to
17607    # collect2, so additional links can be useful in future.
17608    if test "$aix_use_runtimelinking" = yes; then
17609      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17610      # instead of lib<name>.a to let people know that these are not
17611      # typical AIX shared libraries.
17612      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17613    else
17614      # We preserve .a as extension for shared libraries through AIX4.2
17615      # and later when we are not doing run time linking.
17616      library_names_spec='${libname}${release}.a $libname.a'
17617      soname_spec='${libname}${release}${shared_ext}$major'
17618    fi
17619    shlibpath_var=LIBPATH
17620  fi
17621  ;;
17622
17623amigaos*)
17624  library_names_spec='$libname.ixlibrary $libname.a'
17625  # Create ${libname}_ixlibrary.a entries in /sys/libs.
17626  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'
17627  ;;
17628
17629beos*)
17630  library_names_spec='${libname}${shared_ext}'
17631  dynamic_linker="$host_os ld.so"
17632  shlibpath_var=LIBRARY_PATH
17633  ;;
17634
17635bsdi[45]*)
17636  version_type=linux
17637  need_version=no
17638  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17639  soname_spec='${libname}${release}${shared_ext}$major'
17640  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17641  shlibpath_var=LD_LIBRARY_PATH
17642  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17643  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17644  # the default ld.so.conf also contains /usr/contrib/lib and
17645  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17646  # libtool to hard-code these into programs
17647  ;;
17648
17649cygwin* | mingw* | pw32*)
17650  version_type=windows
17651  shrext_cmds=".dll"
17652  need_version=no
17653  need_lib_prefix=no
17654
17655  case $GCC,$host_os in
17656  yes,cygwin* | yes,mingw* | yes,pw32*)
17657    library_names_spec='$libname.dll.a'
17658    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17659    postinstall_cmds='base_file=`basename \${file}`~
17660      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17661      dldir=$destdir/`dirname \$dlpath`~
17662      test -d \$dldir || mkdir -p \$dldir~
17663      $install_prog $dir/$dlname \$dldir/$dlname~
17664      chmod a+x \$dldir/$dlname'
17665    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17666      dlpath=$dir/\$dldll~
17667       $rm \$dlpath'
17668    shlibpath_overrides_runpath=yes
17669
17670    case $host_os in
17671    cygwin*)
17672      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17673      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17674      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17675      ;;
17676    mingw*)
17677      # MinGW DLLs use traditional 'lib' prefix
17678      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17679      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17680      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17681        # It is most probably a Windows format PATH printed by
17682        # mingw gcc, but we are running on Cygwin. Gcc prints its search
17683        # path with ; separators, and with drive letters. We can handle the
17684        # drive letters (cygwin fileutils understands them), so leave them,
17685        # especially as we might pass files found there to a mingw objdump,
17686        # which wouldn't understand a cygwinified path. Ahh.
17687        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17688      else
17689        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17690      fi
17691      ;;
17692    pw32*)
17693      # pw32 DLLs use 'pw' prefix rather than 'lib'
17694      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17695      ;;
17696    esac
17697    ;;
17698
17699  *)
17700    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17701    ;;
17702  esac
17703  dynamic_linker='Win32 ld.exe'
17704  # FIXME: first we should search . and the directory the executable is in
17705  shlibpath_var=PATH
17706  ;;
17707
17708darwin* | rhapsody*)
17709  dynamic_linker="$host_os dyld"
17710  version_type=darwin
17711  need_lib_prefix=no
17712  need_version=no
17713  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17714  soname_spec='${libname}${release}${major}$shared_ext'
17715  shlibpath_overrides_runpath=yes
17716  shlibpath_var=DYLD_LIBRARY_PATH
17717  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17718  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17719  if test "$GCC" = yes; then
17720    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"`
17721  else
17722    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17723  fi
17724  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17725  ;;
17726
17727dgux*)
17728  version_type=linux
17729  need_lib_prefix=no
17730  need_version=no
17731  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17732  soname_spec='${libname}${release}${shared_ext}$major'
17733  shlibpath_var=LD_LIBRARY_PATH
17734  ;;
17735
17736freebsd1*)
17737  dynamic_linker=no
17738  ;;
17739
17740freebsd* | dragonfly*)
17741  # DragonFly does not have aout.  When/if they implement a new
17742  # versioning mechanism, adjust this.
17743  if test -x /usr/bin/objformat; then
17744    objformat=`/usr/bin/objformat`
17745  else
17746    case $host_os in
17747    freebsd[123]*) objformat=aout ;;
17748    *) objformat=elf ;;
17749    esac
17750  fi
17751  version_type=freebsd-$objformat
17752  case $version_type in
17753    freebsd-elf*)
17754      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17755      need_version=no
17756      need_lib_prefix=no
17757      ;;
17758    freebsd-*)
17759      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17760      need_version=yes
17761      ;;
17762  esac
17763  shlibpath_var=LD_LIBRARY_PATH
17764  case $host_os in
17765  freebsd2*)
17766    shlibpath_overrides_runpath=yes
17767    ;;
17768  freebsd3.[01]* | freebsdelf3.[01]*)
17769    shlibpath_overrides_runpath=yes
17770    hardcode_into_libs=yes
17771    ;;
17772  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17773  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17774    shlibpath_overrides_runpath=no
17775    hardcode_into_libs=yes
17776    ;;
17777  freebsd*) # from 4.6 on
17778    shlibpath_overrides_runpath=yes
17779    hardcode_into_libs=yes
17780    ;;
17781  esac
17782  ;;
17783
17784gnu*)
17785  version_type=linux
17786  need_lib_prefix=no
17787  need_version=no
17788  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17789  soname_spec='${libname}${release}${shared_ext}$major'
17790  shlibpath_var=LD_LIBRARY_PATH
17791  hardcode_into_libs=yes
17792  ;;
17793
17794hpux9* | hpux10* | hpux11*)
17795  # Give a soname corresponding to the major version so that dld.sl refuses to
17796  # link against other versions.
17797  version_type=sunos
17798  need_lib_prefix=no
17799  need_version=no
17800  case $host_cpu in
17801  ia64*)
17802    shrext_cmds='.so'
17803    hardcode_into_libs=yes
17804    dynamic_linker="$host_os dld.so"
17805    shlibpath_var=LD_LIBRARY_PATH
17806    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17807    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17808    soname_spec='${libname}${release}${shared_ext}$major'
17809    if test "X$HPUX_IA64_MODE" = X32; then
17810      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17811    else
17812      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17813    fi
17814    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17815    ;;
17816   hppa*64*)
17817     shrext_cmds='.sl'
17818     hardcode_into_libs=yes
17819     dynamic_linker="$host_os dld.sl"
17820     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17821     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17822     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17823     soname_spec='${libname}${release}${shared_ext}$major'
17824     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17825     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17826     ;;
17827   *)
17828    shrext_cmds='.sl'
17829    dynamic_linker="$host_os dld.sl"
17830    shlibpath_var=SHLIB_PATH
17831    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17832    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17833    soname_spec='${libname}${release}${shared_ext}$major'
17834    ;;
17835  esac
17836  # HP-UX runs *really* slowly unless shared libraries are mode 555.
17837  postinstall_cmds='chmod 555 $lib'
17838  ;;
17839
17840interix3*)
17841  version_type=linux
17842  need_lib_prefix=no
17843  need_version=no
17844  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17845  soname_spec='${libname}${release}${shared_ext}$major'
17846  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17847  shlibpath_var=LD_LIBRARY_PATH
17848  shlibpath_overrides_runpath=no
17849  hardcode_into_libs=yes
17850  ;;
17851
17852irix5* | irix6* | nonstopux*)
17853  case $host_os in
17854    nonstopux*) version_type=nonstopux ;;
17855    *)
17856	if test "$lt_cv_prog_gnu_ld" = yes; then
17857		version_type=linux
17858	else
17859		version_type=irix
17860	fi ;;
17861  esac
17862  need_lib_prefix=no
17863  need_version=no
17864  soname_spec='${libname}${release}${shared_ext}$major'
17865  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17866  case $host_os in
17867  irix5* | nonstopux*)
17868    libsuff= shlibsuff=
17869    ;;
17870  *)
17871    case $LD in # libtool.m4 will add one of these switches to LD
17872    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17873      libsuff= shlibsuff= libmagic=32-bit;;
17874    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17875      libsuff=32 shlibsuff=N32 libmagic=N32;;
17876    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17877      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17878    *) libsuff= shlibsuff= libmagic=never-match;;
17879    esac
17880    ;;
17881  esac
17882  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17883  shlibpath_overrides_runpath=no
17884  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17885  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17886  hardcode_into_libs=yes
17887  ;;
17888
17889# No shared lib support for Linux oldld, aout, or coff.
17890linux*oldld* | linux*aout* | linux*coff*)
17891  dynamic_linker=no
17892  ;;
17893
17894# This must be Linux ELF.
17895linux* | k*bsd*-gnu)
17896  version_type=linux
17897  need_lib_prefix=no
17898  need_version=no
17899  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17900  soname_spec='${libname}${release}${shared_ext}$major'
17901  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17902  shlibpath_var=LD_LIBRARY_PATH
17903  shlibpath_overrides_runpath=no
17904  # This implies no fast_install, which is unacceptable.
17905  # Some rework will be needed to allow for fast_install
17906  # before this can be enabled.
17907  hardcode_into_libs=yes
17908
17909  # Append ld.so.conf contents to the search path
17910  if test -f /etc/ld.so.conf; then
17911    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' ' '`
17912    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17913  fi
17914
17915  # We used to test for /lib/ld.so.1 and disable shared libraries on
17916  # powerpc, because MkLinux only supported shared libraries with the
17917  # GNU dynamic linker.  Since this was broken with cross compilers,
17918  # most powerpc-linux boxes support dynamic linking these days and
17919  # people can always --disable-shared, the test was removed, and we
17920  # assume the GNU/Linux dynamic linker is in use.
17921  dynamic_linker='GNU/Linux ld.so'
17922  ;;
17923
17924netbsdelf*-gnu)
17925  version_type=linux
17926  need_lib_prefix=no
17927  need_version=no
17928  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17929  soname_spec='${libname}${release}${shared_ext}$major'
17930  shlibpath_var=LD_LIBRARY_PATH
17931  shlibpath_overrides_runpath=no
17932  hardcode_into_libs=yes
17933  dynamic_linker='NetBSD ld.elf_so'
17934  ;;
17935
17936netbsd*)
17937  version_type=sunos
17938  need_lib_prefix=no
17939  need_version=no
17940  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17941    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17942    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17943    dynamic_linker='NetBSD (a.out) ld.so'
17944  else
17945    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17946    soname_spec='${libname}${release}${shared_ext}$major'
17947    dynamic_linker='NetBSD ld.elf_so'
17948  fi
17949  shlibpath_var=LD_LIBRARY_PATH
17950  shlibpath_overrides_runpath=yes
17951  hardcode_into_libs=yes
17952  ;;
17953
17954newsos6)
17955  version_type=linux
17956  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17957  shlibpath_var=LD_LIBRARY_PATH
17958  shlibpath_overrides_runpath=yes
17959  ;;
17960
17961nto-qnx*)
17962  version_type=linux
17963  need_lib_prefix=no
17964  need_version=no
17965  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17966  soname_spec='${libname}${release}${shared_ext}$major'
17967  shlibpath_var=LD_LIBRARY_PATH
17968  shlibpath_overrides_runpath=yes
17969  ;;
17970
17971openbsd*)
17972  version_type=sunos
17973  sys_lib_dlsearch_path_spec="/usr/lib"
17974  need_lib_prefix=no
17975  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17976  case $host_os in
17977    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17978    *)                         need_version=no  ;;
17979  esac
17980  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17981  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17982  shlibpath_var=LD_LIBRARY_PATH
17983  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17984    case $host_os in
17985      openbsd2.[89] | openbsd2.[89].*)
17986	shlibpath_overrides_runpath=no
17987	;;
17988      *)
17989	shlibpath_overrides_runpath=yes
17990	;;
17991      esac
17992  else
17993    shlibpath_overrides_runpath=yes
17994  fi
17995  ;;
17996
17997os2*)
17998  libname_spec='$name'
17999  shrext_cmds=".dll"
18000  need_lib_prefix=no
18001  library_names_spec='$libname${shared_ext} $libname.a'
18002  dynamic_linker='OS/2 ld.exe'
18003  shlibpath_var=LIBPATH
18004  ;;
18005
18006osf3* | osf4* | osf5*)
18007  version_type=osf
18008  need_lib_prefix=no
18009  need_version=no
18010  soname_spec='${libname}${release}${shared_ext}$major'
18011  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18012  shlibpath_var=LD_LIBRARY_PATH
18013  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18014  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18015  ;;
18016
18017solaris*)
18018  version_type=linux
18019  need_lib_prefix=no
18020  need_version=no
18021  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18022  soname_spec='${libname}${release}${shared_ext}$major'
18023  shlibpath_var=LD_LIBRARY_PATH
18024  shlibpath_overrides_runpath=yes
18025  hardcode_into_libs=yes
18026  # ldd complains unless libraries are executable
18027  postinstall_cmds='chmod +x $lib'
18028  ;;
18029
18030sunos4*)
18031  version_type=sunos
18032  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18033  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18034  shlibpath_var=LD_LIBRARY_PATH
18035  shlibpath_overrides_runpath=yes
18036  if test "$with_gnu_ld" = yes; then
18037    need_lib_prefix=no
18038  fi
18039  need_version=yes
18040  ;;
18041
18042sysv4 | sysv4.3*)
18043  version_type=linux
18044  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18045  soname_spec='${libname}${release}${shared_ext}$major'
18046  shlibpath_var=LD_LIBRARY_PATH
18047  case $host_vendor in
18048    sni)
18049      shlibpath_overrides_runpath=no
18050      need_lib_prefix=no
18051      export_dynamic_flag_spec='${wl}-Blargedynsym'
18052      runpath_var=LD_RUN_PATH
18053      ;;
18054    siemens)
18055      need_lib_prefix=no
18056      ;;
18057    motorola)
18058      need_lib_prefix=no
18059      need_version=no
18060      shlibpath_overrides_runpath=no
18061      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18062      ;;
18063  esac
18064  ;;
18065
18066sysv4*MP*)
18067  if test -d /usr/nec ;then
18068    version_type=linux
18069    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18070    soname_spec='$libname${shared_ext}.$major'
18071    shlibpath_var=LD_LIBRARY_PATH
18072  fi
18073  ;;
18074
18075sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18076  version_type=freebsd-elf
18077  need_lib_prefix=no
18078  need_version=no
18079  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18080  soname_spec='${libname}${release}${shared_ext}$major'
18081  shlibpath_var=LD_LIBRARY_PATH
18082  hardcode_into_libs=yes
18083  if test "$with_gnu_ld" = yes; then
18084    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18085    shlibpath_overrides_runpath=no
18086  else
18087    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18088    shlibpath_overrides_runpath=yes
18089    case $host_os in
18090      sco3.2v5*)
18091        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18092	;;
18093    esac
18094  fi
18095  sys_lib_dlsearch_path_spec='/usr/lib'
18096  ;;
18097
18098uts4*)
18099  version_type=linux
18100  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18101  soname_spec='${libname}${release}${shared_ext}$major'
18102  shlibpath_var=LD_LIBRARY_PATH
18103  ;;
18104
18105*)
18106  dynamic_linker=no
18107  ;;
18108esac
18109{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18110echo "${ECHO_T}$dynamic_linker" >&6; }
18111test "$dynamic_linker" = no && can_build_shared=no
18112
18113variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18114if test "$GCC" = yes; then
18115  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18116fi
18117
18118{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18119echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18120hardcode_action_GCJ=
18121if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18122   test -n "$runpath_var_GCJ" || \
18123   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18124
18125  # We can hardcode non-existant directories.
18126  if test "$hardcode_direct_GCJ" != no &&
18127     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18128     # have to relink, otherwise we might link with an installed library
18129     # when we should be linking with a yet-to-be-installed one
18130     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18131     test "$hardcode_minus_L_GCJ" != no; then
18132    # Linking always hardcodes the temporary library directory.
18133    hardcode_action_GCJ=relink
18134  else
18135    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18136    hardcode_action_GCJ=immediate
18137  fi
18138else
18139  # We cannot hardcode anything, or else we can only hardcode existing
18140  # directories.
18141  hardcode_action_GCJ=unsupported
18142fi
18143{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18144echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18145
18146if test "$hardcode_action_GCJ" = relink; then
18147  # Fast installation is not supported
18148  enable_fast_install=no
18149elif test "$shlibpath_overrides_runpath" = yes ||
18150     test "$enable_shared" = no; then
18151  # Fast installation is not necessary
18152  enable_fast_install=needless
18153fi
18154
18155
18156# The else clause should only fire when bootstrapping the
18157# libtool distribution, otherwise you forgot to ship ltmain.sh
18158# with your package, and you will get complaints that there are
18159# no rules to generate ltmain.sh.
18160if test -f "$ltmain"; then
18161  # See if we are running on zsh, and set the options which allow our commands through
18162  # without removal of \ escapes.
18163  if test -n "${ZSH_VERSION+set}" ; then
18164    setopt NO_GLOB_SUBST
18165  fi
18166  # Now quote all the things that may contain metacharacters while being
18167  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18168  # variables and quote the copies for generation of the libtool script.
18169  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18170    SED SHELL STRIP \
18171    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18172    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18173    deplibs_check_method reload_flag reload_cmds need_locks \
18174    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18175    lt_cv_sys_global_symbol_to_c_name_address \
18176    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18177    old_postinstall_cmds old_postuninstall_cmds \
18178    compiler_GCJ \
18179    CC_GCJ \
18180    LD_GCJ \
18181    lt_prog_compiler_wl_GCJ \
18182    lt_prog_compiler_pic_GCJ \
18183    lt_prog_compiler_static_GCJ \
18184    lt_prog_compiler_no_builtin_flag_GCJ \
18185    export_dynamic_flag_spec_GCJ \
18186    thread_safe_flag_spec_GCJ \
18187    whole_archive_flag_spec_GCJ \
18188    enable_shared_with_static_runtimes_GCJ \
18189    old_archive_cmds_GCJ \
18190    old_archive_from_new_cmds_GCJ \
18191    predep_objects_GCJ \
18192    postdep_objects_GCJ \
18193    predeps_GCJ \
18194    postdeps_GCJ \
18195    compiler_lib_search_path_GCJ \
18196    archive_cmds_GCJ \
18197    archive_expsym_cmds_GCJ \
18198    postinstall_cmds_GCJ \
18199    postuninstall_cmds_GCJ \
18200    old_archive_from_expsyms_cmds_GCJ \
18201    allow_undefined_flag_GCJ \
18202    no_undefined_flag_GCJ \
18203    export_symbols_cmds_GCJ \
18204    hardcode_libdir_flag_spec_GCJ \
18205    hardcode_libdir_flag_spec_ld_GCJ \
18206    hardcode_libdir_separator_GCJ \
18207    hardcode_automatic_GCJ \
18208    module_cmds_GCJ \
18209    module_expsym_cmds_GCJ \
18210    lt_cv_prog_compiler_c_o_GCJ \
18211    exclude_expsyms_GCJ \
18212    include_expsyms_GCJ; do
18213
18214    case $var in
18215    old_archive_cmds_GCJ | \
18216    old_archive_from_new_cmds_GCJ | \
18217    archive_cmds_GCJ | \
18218    archive_expsym_cmds_GCJ | \
18219    module_cmds_GCJ | \
18220    module_expsym_cmds_GCJ | \
18221    old_archive_from_expsyms_cmds_GCJ | \
18222    export_symbols_cmds_GCJ | \
18223    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18224    postinstall_cmds | postuninstall_cmds | \
18225    old_postinstall_cmds | old_postuninstall_cmds | \
18226    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18227      # Double-quote double-evaled strings.
18228      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18229      ;;
18230    *)
18231      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18232      ;;
18233    esac
18234  done
18235
18236  case $lt_echo in
18237  *'\$0 --fallback-echo"')
18238    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18239    ;;
18240  esac
18241
18242cfgfile="$ofile"
18243
18244  cat <<__EOF__ >> "$cfgfile"
18245# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18246
18247# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18248
18249# Shell to use when invoking shell scripts.
18250SHELL=$lt_SHELL
18251
18252# Whether or not to build shared libraries.
18253build_libtool_libs=$enable_shared
18254
18255# Whether or not to build static libraries.
18256build_old_libs=$enable_static
18257
18258# Whether or not to add -lc for building shared libraries.
18259build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18260
18261# Whether or not to disallow shared libs when runtime libs are static
18262allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18263
18264# Whether or not to optimize for fast installation.
18265fast_install=$enable_fast_install
18266
18267# The host system.
18268host_alias=$host_alias
18269host=$host
18270host_os=$host_os
18271
18272# The build system.
18273build_alias=$build_alias
18274build=$build
18275build_os=$build_os
18276
18277# An echo program that does not interpret backslashes.
18278echo=$lt_echo
18279
18280# The archiver.
18281AR=$lt_AR
18282AR_FLAGS=$lt_AR_FLAGS
18283
18284# A C compiler.
18285LTCC=$lt_LTCC
18286
18287# LTCC compiler flags.
18288LTCFLAGS=$lt_LTCFLAGS
18289
18290# A language-specific compiler.
18291CC=$lt_compiler_GCJ
18292
18293# Is the compiler the GNU C compiler?
18294with_gcc=$GCC_GCJ
18295
18296# An ERE matcher.
18297EGREP=$lt_EGREP
18298
18299# The linker used to build libraries.
18300LD=$lt_LD_GCJ
18301
18302# Whether we need hard or soft links.
18303LN_S=$lt_LN_S
18304
18305# A BSD-compatible nm program.
18306NM=$lt_NM
18307
18308# A symbol stripping program
18309STRIP=$lt_STRIP
18310
18311# Used to examine libraries when file_magic_cmd begins "file"
18312MAGIC_CMD=$MAGIC_CMD
18313
18314# Used on cygwin: DLL creation program.
18315DLLTOOL="$DLLTOOL"
18316
18317# Used on cygwin: object dumper.
18318OBJDUMP="$OBJDUMP"
18319
18320# Used on cygwin: assembler.
18321AS="$AS"
18322
18323# The name of the directory that contains temporary libtool files.
18324objdir=$objdir
18325
18326# How to create reloadable object files.
18327reload_flag=$lt_reload_flag
18328reload_cmds=$lt_reload_cmds
18329
18330# How to pass a linker flag through the compiler.
18331wl=$lt_lt_prog_compiler_wl_GCJ
18332
18333# Object file suffix (normally "o").
18334objext="$ac_objext"
18335
18336# Old archive suffix (normally "a").
18337libext="$libext"
18338
18339# Shared library suffix (normally ".so").
18340shrext_cmds='$shrext_cmds'
18341
18342# Executable file suffix (normally "").
18343exeext="$exeext"
18344
18345# Additional compiler flags for building library objects.
18346pic_flag=$lt_lt_prog_compiler_pic_GCJ
18347pic_mode=$pic_mode
18348
18349# What is the maximum length of a command?
18350max_cmd_len=$lt_cv_sys_max_cmd_len
18351
18352# Does compiler simultaneously support -c and -o options?
18353compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18354
18355# Must we lock files when doing compilation?
18356need_locks=$lt_need_locks
18357
18358# Do we need the lib prefix for modules?
18359need_lib_prefix=$need_lib_prefix
18360
18361# Do we need a version for libraries?
18362need_version=$need_version
18363
18364# Whether dlopen is supported.
18365dlopen_support=$enable_dlopen
18366
18367# Whether dlopen of programs is supported.
18368dlopen_self=$enable_dlopen_self
18369
18370# Whether dlopen of statically linked programs is supported.
18371dlopen_self_static=$enable_dlopen_self_static
18372
18373# Compiler flag to prevent dynamic linking.
18374link_static_flag=$lt_lt_prog_compiler_static_GCJ
18375
18376# Compiler flag to turn off builtin functions.
18377no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18378
18379# Compiler flag to allow reflexive dlopens.
18380export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18381
18382# Compiler flag to generate shared objects directly from archives.
18383whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18384
18385# Compiler flag to generate thread-safe objects.
18386thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18387
18388# Library versioning type.
18389version_type=$version_type
18390
18391# Format of library name prefix.
18392libname_spec=$lt_libname_spec
18393
18394# List of archive names.  First name is the real one, the rest are links.
18395# The last name is the one that the linker finds with -lNAME.
18396library_names_spec=$lt_library_names_spec
18397
18398# The coded name of the library, if different from the real name.
18399soname_spec=$lt_soname_spec
18400
18401# Commands used to build and install an old-style archive.
18402RANLIB=$lt_RANLIB
18403old_archive_cmds=$lt_old_archive_cmds_GCJ
18404old_postinstall_cmds=$lt_old_postinstall_cmds
18405old_postuninstall_cmds=$lt_old_postuninstall_cmds
18406
18407# Create an old-style archive from a shared archive.
18408old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18409
18410# Create a temporary old-style archive to link instead of a shared archive.
18411old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18412
18413# Commands used to build and install a shared archive.
18414archive_cmds=$lt_archive_cmds_GCJ
18415archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18416postinstall_cmds=$lt_postinstall_cmds
18417postuninstall_cmds=$lt_postuninstall_cmds
18418
18419# Commands used to build a loadable module (assumed same as above if empty)
18420module_cmds=$lt_module_cmds_GCJ
18421module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18422
18423# Commands to strip libraries.
18424old_striplib=$lt_old_striplib
18425striplib=$lt_striplib
18426
18427# Dependencies to place before the objects being linked to create a
18428# shared library.
18429predep_objects=$lt_predep_objects_GCJ
18430
18431# Dependencies to place after the objects being linked to create a
18432# shared library.
18433postdep_objects=$lt_postdep_objects_GCJ
18434
18435# Dependencies to place before the objects being linked to create a
18436# shared library.
18437predeps=$lt_predeps_GCJ
18438
18439# Dependencies to place after the objects being linked to create a
18440# shared library.
18441postdeps=$lt_postdeps_GCJ
18442
18443# The library search path used internally by the compiler when linking
18444# a shared library.
18445compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18446
18447# Method to check whether dependent libraries are shared objects.
18448deplibs_check_method=$lt_deplibs_check_method
18449
18450# Command to use when deplibs_check_method == file_magic.
18451file_magic_cmd=$lt_file_magic_cmd
18452
18453# Flag that allows shared libraries with undefined symbols to be built.
18454allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18455
18456# Flag that forces no undefined symbols.
18457no_undefined_flag=$lt_no_undefined_flag_GCJ
18458
18459# Commands used to finish a libtool library installation in a directory.
18460finish_cmds=$lt_finish_cmds
18461
18462# Same as above, but a single script fragment to be evaled but not shown.
18463finish_eval=$lt_finish_eval
18464
18465# Take the output of nm and produce a listing of raw symbols and C names.
18466global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18467
18468# Transform the output of nm in a proper C declaration
18469global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18470
18471# Transform the output of nm in a C name address pair
18472global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18473
18474# This is the shared library runtime path variable.
18475runpath_var=$runpath_var
18476
18477# This is the shared library path variable.
18478shlibpath_var=$shlibpath_var
18479
18480# Is shlibpath searched before the hard-coded library search path?
18481shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18482
18483# How to hardcode a shared library path into an executable.
18484hardcode_action=$hardcode_action_GCJ
18485
18486# Whether we should hardcode library paths into libraries.
18487hardcode_into_libs=$hardcode_into_libs
18488
18489# Flag to hardcode \$libdir into a binary during linking.
18490# This must work even if \$libdir does not exist.
18491hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18492
18493# If ld is used when linking, flag to hardcode \$libdir into
18494# a binary during linking. This must work even if \$libdir does
18495# not exist.
18496hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18497
18498# Whether we need a single -rpath flag with a separated argument.
18499hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18500
18501# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18502# resulting binary.
18503hardcode_direct=$hardcode_direct_GCJ
18504
18505# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18506# resulting binary.
18507hardcode_minus_L=$hardcode_minus_L_GCJ
18508
18509# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18510# the resulting binary.
18511hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18512
18513# Set to yes if building a shared library automatically hardcodes DIR into the library
18514# and all subsequent libraries and executables linked against it.
18515hardcode_automatic=$hardcode_automatic_GCJ
18516
18517# Variables whose values should be saved in libtool wrapper scripts and
18518# restored at relink time.
18519variables_saved_for_relink="$variables_saved_for_relink"
18520
18521# Whether libtool must link a program against all its dependency libraries.
18522link_all_deplibs=$link_all_deplibs_GCJ
18523
18524# Compile-time system search path for libraries
18525sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18526
18527# Run-time system search path for libraries
18528sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18529
18530# Fix the shell variable \$srcfile for the compiler.
18531fix_srcfile_path="$fix_srcfile_path_GCJ"
18532
18533# Set to yes if exported symbols are required.
18534always_export_symbols=$always_export_symbols_GCJ
18535
18536# The commands to list exported symbols.
18537export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18538
18539# The commands to extract the exported symbol list from a shared archive.
18540extract_expsyms_cmds=$lt_extract_expsyms_cmds
18541
18542# Symbols that should not be listed in the preloaded symbols.
18543exclude_expsyms=$lt_exclude_expsyms_GCJ
18544
18545# Symbols that must always be exported.
18546include_expsyms=$lt_include_expsyms_GCJ
18547
18548# ### END LIBTOOL TAG CONFIG: $tagname
18549
18550__EOF__
18551
18552
18553else
18554  # If there is no Makefile yet, we rely on a make rule to execute
18555  # `config.status --recheck' to rerun these tests and create the
18556  # libtool script then.
18557  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18558  if test -f "$ltmain_in"; then
18559    test -f Makefile && make "$ltmain"
18560  fi
18561fi
18562
18563
18564ac_ext=c
18565ac_cpp='$CPP $CPPFLAGS'
18566ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18567ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18568ac_compiler_gnu=$ac_cv_c_compiler_gnu
18569
18570CC="$lt_save_CC"
18571
18572	else
18573	  tagname=""
18574	fi
18575	;;
18576
18577      RC)
18578
18579
18580# Source file extension for RC test sources.
18581ac_ext=rc
18582
18583# Object file extension for compiled RC test sources.
18584objext=o
18585objext_RC=$objext
18586
18587# Code to be used in simple compile tests
18588lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18589
18590# Code to be used in simple link tests
18591lt_simple_link_test_code="$lt_simple_compile_test_code"
18592
18593# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18594
18595# If no C compiler was specified, use CC.
18596LTCC=${LTCC-"$CC"}
18597
18598# If no C compiler flags were specified, use CFLAGS.
18599LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18600
18601# Allow CC to be a program name with arguments.
18602compiler=$CC
18603
18604
18605# save warnings/boilerplate of simple test code
18606ac_outfile=conftest.$ac_objext
18607printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18608eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18609_lt_compiler_boilerplate=`cat conftest.err`
18610$rm conftest*
18611
18612ac_outfile=conftest.$ac_objext
18613printf "$lt_simple_link_test_code" >conftest.$ac_ext
18614eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18615_lt_linker_boilerplate=`cat conftest.err`
18616$rm conftest*
18617
18618
18619# Allow CC to be a program name with arguments.
18620lt_save_CC="$CC"
18621CC=${RC-"windres"}
18622compiler=$CC
18623compiler_RC=$CC
18624for cc_temp in $compiler""; do
18625  case $cc_temp in
18626    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18627    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18628    \-*) ;;
18629    *) break;;
18630  esac
18631done
18632cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18633
18634lt_cv_prog_compiler_c_o_RC=yes
18635
18636# The else clause should only fire when bootstrapping the
18637# libtool distribution, otherwise you forgot to ship ltmain.sh
18638# with your package, and you will get complaints that there are
18639# no rules to generate ltmain.sh.
18640if test -f "$ltmain"; then
18641  # See if we are running on zsh, and set the options which allow our commands through
18642  # without removal of \ escapes.
18643  if test -n "${ZSH_VERSION+set}" ; then
18644    setopt NO_GLOB_SUBST
18645  fi
18646  # Now quote all the things that may contain metacharacters while being
18647  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18648  # variables and quote the copies for generation of the libtool script.
18649  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18650    SED SHELL STRIP \
18651    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18652    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18653    deplibs_check_method reload_flag reload_cmds need_locks \
18654    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18655    lt_cv_sys_global_symbol_to_c_name_address \
18656    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18657    old_postinstall_cmds old_postuninstall_cmds \
18658    compiler_RC \
18659    CC_RC \
18660    LD_RC \
18661    lt_prog_compiler_wl_RC \
18662    lt_prog_compiler_pic_RC \
18663    lt_prog_compiler_static_RC \
18664    lt_prog_compiler_no_builtin_flag_RC \
18665    export_dynamic_flag_spec_RC \
18666    thread_safe_flag_spec_RC \
18667    whole_archive_flag_spec_RC \
18668    enable_shared_with_static_runtimes_RC \
18669    old_archive_cmds_RC \
18670    old_archive_from_new_cmds_RC \
18671    predep_objects_RC \
18672    postdep_objects_RC \
18673    predeps_RC \
18674    postdeps_RC \
18675    compiler_lib_search_path_RC \
18676    archive_cmds_RC \
18677    archive_expsym_cmds_RC \
18678    postinstall_cmds_RC \
18679    postuninstall_cmds_RC \
18680    old_archive_from_expsyms_cmds_RC \
18681    allow_undefined_flag_RC \
18682    no_undefined_flag_RC \
18683    export_symbols_cmds_RC \
18684    hardcode_libdir_flag_spec_RC \
18685    hardcode_libdir_flag_spec_ld_RC \
18686    hardcode_libdir_separator_RC \
18687    hardcode_automatic_RC \
18688    module_cmds_RC \
18689    module_expsym_cmds_RC \
18690    lt_cv_prog_compiler_c_o_RC \
18691    exclude_expsyms_RC \
18692    include_expsyms_RC; do
18693
18694    case $var in
18695    old_archive_cmds_RC | \
18696    old_archive_from_new_cmds_RC | \
18697    archive_cmds_RC | \
18698    archive_expsym_cmds_RC | \
18699    module_cmds_RC | \
18700    module_expsym_cmds_RC | \
18701    old_archive_from_expsyms_cmds_RC | \
18702    export_symbols_cmds_RC | \
18703    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18704    postinstall_cmds | postuninstall_cmds | \
18705    old_postinstall_cmds | old_postuninstall_cmds | \
18706    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18707      # Double-quote double-evaled strings.
18708      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18709      ;;
18710    *)
18711      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18712      ;;
18713    esac
18714  done
18715
18716  case $lt_echo in
18717  *'\$0 --fallback-echo"')
18718    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18719    ;;
18720  esac
18721
18722cfgfile="$ofile"
18723
18724  cat <<__EOF__ >> "$cfgfile"
18725# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18726
18727# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18728
18729# Shell to use when invoking shell scripts.
18730SHELL=$lt_SHELL
18731
18732# Whether or not to build shared libraries.
18733build_libtool_libs=$enable_shared
18734
18735# Whether or not to build static libraries.
18736build_old_libs=$enable_static
18737
18738# Whether or not to add -lc for building shared libraries.
18739build_libtool_need_lc=$archive_cmds_need_lc_RC
18740
18741# Whether or not to disallow shared libs when runtime libs are static
18742allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18743
18744# Whether or not to optimize for fast installation.
18745fast_install=$enable_fast_install
18746
18747# The host system.
18748host_alias=$host_alias
18749host=$host
18750host_os=$host_os
18751
18752# The build system.
18753build_alias=$build_alias
18754build=$build
18755build_os=$build_os
18756
18757# An echo program that does not interpret backslashes.
18758echo=$lt_echo
18759
18760# The archiver.
18761AR=$lt_AR
18762AR_FLAGS=$lt_AR_FLAGS
18763
18764# A C compiler.
18765LTCC=$lt_LTCC
18766
18767# LTCC compiler flags.
18768LTCFLAGS=$lt_LTCFLAGS
18769
18770# A language-specific compiler.
18771CC=$lt_compiler_RC
18772
18773# Is the compiler the GNU C compiler?
18774with_gcc=$GCC_RC
18775
18776# An ERE matcher.
18777EGREP=$lt_EGREP
18778
18779# The linker used to build libraries.
18780LD=$lt_LD_RC
18781
18782# Whether we need hard or soft links.
18783LN_S=$lt_LN_S
18784
18785# A BSD-compatible nm program.
18786NM=$lt_NM
18787
18788# A symbol stripping program
18789STRIP=$lt_STRIP
18790
18791# Used to examine libraries when file_magic_cmd begins "file"
18792MAGIC_CMD=$MAGIC_CMD
18793
18794# Used on cygwin: DLL creation program.
18795DLLTOOL="$DLLTOOL"
18796
18797# Used on cygwin: object dumper.
18798OBJDUMP="$OBJDUMP"
18799
18800# Used on cygwin: assembler.
18801AS="$AS"
18802
18803# The name of the directory that contains temporary libtool files.
18804objdir=$objdir
18805
18806# How to create reloadable object files.
18807reload_flag=$lt_reload_flag
18808reload_cmds=$lt_reload_cmds
18809
18810# How to pass a linker flag through the compiler.
18811wl=$lt_lt_prog_compiler_wl_RC
18812
18813# Object file suffix (normally "o").
18814objext="$ac_objext"
18815
18816# Old archive suffix (normally "a").
18817libext="$libext"
18818
18819# Shared library suffix (normally ".so").
18820shrext_cmds='$shrext_cmds'
18821
18822# Executable file suffix (normally "").
18823exeext="$exeext"
18824
18825# Additional compiler flags for building library objects.
18826pic_flag=$lt_lt_prog_compiler_pic_RC
18827pic_mode=$pic_mode
18828
18829# What is the maximum length of a command?
18830max_cmd_len=$lt_cv_sys_max_cmd_len
18831
18832# Does compiler simultaneously support -c and -o options?
18833compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18834
18835# Must we lock files when doing compilation?
18836need_locks=$lt_need_locks
18837
18838# Do we need the lib prefix for modules?
18839need_lib_prefix=$need_lib_prefix
18840
18841# Do we need a version for libraries?
18842need_version=$need_version
18843
18844# Whether dlopen is supported.
18845dlopen_support=$enable_dlopen
18846
18847# Whether dlopen of programs is supported.
18848dlopen_self=$enable_dlopen_self
18849
18850# Whether dlopen of statically linked programs is supported.
18851dlopen_self_static=$enable_dlopen_self_static
18852
18853# Compiler flag to prevent dynamic linking.
18854link_static_flag=$lt_lt_prog_compiler_static_RC
18855
18856# Compiler flag to turn off builtin functions.
18857no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18858
18859# Compiler flag to allow reflexive dlopens.
18860export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18861
18862# Compiler flag to generate shared objects directly from archives.
18863whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18864
18865# Compiler flag to generate thread-safe objects.
18866thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18867
18868# Library versioning type.
18869version_type=$version_type
18870
18871# Format of library name prefix.
18872libname_spec=$lt_libname_spec
18873
18874# List of archive names.  First name is the real one, the rest are links.
18875# The last name is the one that the linker finds with -lNAME.
18876library_names_spec=$lt_library_names_spec
18877
18878# The coded name of the library, if different from the real name.
18879soname_spec=$lt_soname_spec
18880
18881# Commands used to build and install an old-style archive.
18882RANLIB=$lt_RANLIB
18883old_archive_cmds=$lt_old_archive_cmds_RC
18884old_postinstall_cmds=$lt_old_postinstall_cmds
18885old_postuninstall_cmds=$lt_old_postuninstall_cmds
18886
18887# Create an old-style archive from a shared archive.
18888old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18889
18890# Create a temporary old-style archive to link instead of a shared archive.
18891old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18892
18893# Commands used to build and install a shared archive.
18894archive_cmds=$lt_archive_cmds_RC
18895archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18896postinstall_cmds=$lt_postinstall_cmds
18897postuninstall_cmds=$lt_postuninstall_cmds
18898
18899# Commands used to build a loadable module (assumed same as above if empty)
18900module_cmds=$lt_module_cmds_RC
18901module_expsym_cmds=$lt_module_expsym_cmds_RC
18902
18903# Commands to strip libraries.
18904old_striplib=$lt_old_striplib
18905striplib=$lt_striplib
18906
18907# Dependencies to place before the objects being linked to create a
18908# shared library.
18909predep_objects=$lt_predep_objects_RC
18910
18911# Dependencies to place after the objects being linked to create a
18912# shared library.
18913postdep_objects=$lt_postdep_objects_RC
18914
18915# Dependencies to place before the objects being linked to create a
18916# shared library.
18917predeps=$lt_predeps_RC
18918
18919# Dependencies to place after the objects being linked to create a
18920# shared library.
18921postdeps=$lt_postdeps_RC
18922
18923# The library search path used internally by the compiler when linking
18924# a shared library.
18925compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18926
18927# Method to check whether dependent libraries are shared objects.
18928deplibs_check_method=$lt_deplibs_check_method
18929
18930# Command to use when deplibs_check_method == file_magic.
18931file_magic_cmd=$lt_file_magic_cmd
18932
18933# Flag that allows shared libraries with undefined symbols to be built.
18934allow_undefined_flag=$lt_allow_undefined_flag_RC
18935
18936# Flag that forces no undefined symbols.
18937no_undefined_flag=$lt_no_undefined_flag_RC
18938
18939# Commands used to finish a libtool library installation in a directory.
18940finish_cmds=$lt_finish_cmds
18941
18942# Same as above, but a single script fragment to be evaled but not shown.
18943finish_eval=$lt_finish_eval
18944
18945# Take the output of nm and produce a listing of raw symbols and C names.
18946global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18947
18948# Transform the output of nm in a proper C declaration
18949global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18950
18951# Transform the output of nm in a C name address pair
18952global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18953
18954# This is the shared library runtime path variable.
18955runpath_var=$runpath_var
18956
18957# This is the shared library path variable.
18958shlibpath_var=$shlibpath_var
18959
18960# Is shlibpath searched before the hard-coded library search path?
18961shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18962
18963# How to hardcode a shared library path into an executable.
18964hardcode_action=$hardcode_action_RC
18965
18966# Whether we should hardcode library paths into libraries.
18967hardcode_into_libs=$hardcode_into_libs
18968
18969# Flag to hardcode \$libdir into a binary during linking.
18970# This must work even if \$libdir does not exist.
18971hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18972
18973# If ld is used when linking, flag to hardcode \$libdir into
18974# a binary during linking. This must work even if \$libdir does
18975# not exist.
18976hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18977
18978# Whether we need a single -rpath flag with a separated argument.
18979hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18980
18981# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18982# resulting binary.
18983hardcode_direct=$hardcode_direct_RC
18984
18985# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18986# resulting binary.
18987hardcode_minus_L=$hardcode_minus_L_RC
18988
18989# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18990# the resulting binary.
18991hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18992
18993# Set to yes if building a shared library automatically hardcodes DIR into the library
18994# and all subsequent libraries and executables linked against it.
18995hardcode_automatic=$hardcode_automatic_RC
18996
18997# Variables whose values should be saved in libtool wrapper scripts and
18998# restored at relink time.
18999variables_saved_for_relink="$variables_saved_for_relink"
19000
19001# Whether libtool must link a program against all its dependency libraries.
19002link_all_deplibs=$link_all_deplibs_RC
19003
19004# Compile-time system search path for libraries
19005sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19006
19007# Run-time system search path for libraries
19008sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19009
19010# Fix the shell variable \$srcfile for the compiler.
19011fix_srcfile_path="$fix_srcfile_path_RC"
19012
19013# Set to yes if exported symbols are required.
19014always_export_symbols=$always_export_symbols_RC
19015
19016# The commands to list exported symbols.
19017export_symbols_cmds=$lt_export_symbols_cmds_RC
19018
19019# The commands to extract the exported symbol list from a shared archive.
19020extract_expsyms_cmds=$lt_extract_expsyms_cmds
19021
19022# Symbols that should not be listed in the preloaded symbols.
19023exclude_expsyms=$lt_exclude_expsyms_RC
19024
19025# Symbols that must always be exported.
19026include_expsyms=$lt_include_expsyms_RC
19027
19028# ### END LIBTOOL TAG CONFIG: $tagname
19029
19030__EOF__
19031
19032
19033else
19034  # If there is no Makefile yet, we rely on a make rule to execute
19035  # `config.status --recheck' to rerun these tests and create the
19036  # libtool script then.
19037  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19038  if test -f "$ltmain_in"; then
19039    test -f Makefile && make "$ltmain"
19040  fi
19041fi
19042
19043
19044ac_ext=c
19045ac_cpp='$CPP $CPPFLAGS'
19046ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19047ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19048ac_compiler_gnu=$ac_cv_c_compiler_gnu
19049
19050CC="$lt_save_CC"
19051
19052	;;
19053
19054      *)
19055	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19056echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19057   { (exit 1); exit 1; }; }
19058	;;
19059      esac
19060
19061      # Append the new tag name to the list of available tags.
19062      if test -n "$tagname" ; then
19063      available_tags="$available_tags $tagname"
19064    fi
19065    fi
19066  done
19067  IFS="$lt_save_ifs"
19068
19069  # Now substitute the updated list of available tags.
19070  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19071    mv "${ofile}T" "$ofile"
19072    chmod +x "$ofile"
19073  else
19074    rm -f "${ofile}T"
19075    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19076echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19077   { (exit 1); exit 1; }; }
19078  fi
19079fi
19080
19081
19082
19083# This can be used to rebuild libtool when needed
19084LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19085
19086# Always use our own libtool.
19087LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19088
19089# Prevent multiple expansion
19090
19091
19092
19093
19094
19095
19096
19097
19098
19099
19100
19101
19102
19103
19104
19105
19106
19107
19108
19109
19110{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
19111echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
19112# Just in case
19113sleep 1
19114echo timestamp > conftest.file
19115# Do `set' in a subshell so we don't clobber the current shell's
19116# arguments.  Must try -L first in case configure is actually a
19117# symlink; some systems play weird games with the mod time of symlinks
19118# (eg FreeBSD returns the mod time of the symlink's containing
19119# directory).
19120if (
19121   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
19122   if test "$*" = "X"; then
19123      # -L didn't work.
19124      set X `ls -t $srcdir/configure conftest.file`
19125   fi
19126   rm -f conftest.file
19127   if test "$*" != "X $srcdir/configure conftest.file" \
19128      && test "$*" != "X conftest.file $srcdir/configure"; then
19129
19130      # If neither matched, then we have a broken ls.  This can happen
19131      # if, for instance, CONFIG_SHELL is bash and it inherits a
19132      # broken ls alias from the environment.  This has actually
19133      # happened.  Such a system could not be considered "sane".
19134      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
19135alias in your environment" >&5
19136echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
19137alias in your environment" >&2;}
19138   { (exit 1); exit 1; }; }
19139   fi
19140
19141   test "$2" = conftest.file
19142   )
19143then
19144   # Ok.
19145   :
19146else
19147   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
19148Check your system clock" >&5
19149echo "$as_me: error: newly created file is older than distributed files!
19150Check your system clock" >&2;}
19151   { (exit 1); exit 1; }; }
19152fi
19153{ echo "$as_me:$LINENO: result: yes" >&5
19154echo "${ECHO_T}yes" >&6; }
19155ac_ext=cpp
19156ac_cpp='$CXXCPP $CPPFLAGS'
19157ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19158ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19159ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19160
19161
19162
19163ac_config_files="$ac_config_files Makefile jwsmtp-1.32.pc jwsmtp/Makefile jwsmtp/jwsmtp/Makefile docs/Makefile"
19164
19165cat >confcache <<\_ACEOF
19166# This file is a shell script that caches the results of configure
19167# tests run on this system so they can be shared between configure
19168# scripts and configure runs, see configure's option --config-cache.
19169# It is not useful on other systems.  If it contains results you don't
19170# want to keep, you may remove or edit it.
19171#
19172# config.status only pays attention to the cache file if you give it
19173# the --recheck option to rerun configure.
19174#
19175# `ac_cv_env_foo' variables (set or unset) will be overridden when
19176# loading this file, other *unset* `ac_cv_foo' will be assigned the
19177# following values.
19178
19179_ACEOF
19180
19181# The following way of writing the cache mishandles newlines in values,
19182# but we know of no workaround that is simple, portable, and efficient.
19183# So, we kill variables containing newlines.
19184# Ultrix sh set writes to stderr and can't be redirected directly,
19185# and sets the high bit in the cache file unless we assign to the vars.
19186(
19187  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19188    eval ac_val=\$$ac_var
19189    case $ac_val in #(
19190    *${as_nl}*)
19191      case $ac_var in #(
19192      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
19193echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
19194      esac
19195      case $ac_var in #(
19196      _ | IFS | as_nl) ;; #(
19197      *) $as_unset $ac_var ;;
19198      esac ;;
19199    esac
19200  done
19201
19202  (set) 2>&1 |
19203    case $as_nl`(ac_space=' '; set) 2>&1` in #(
19204    *${as_nl}ac_space=\ *)
19205      # `set' does not quote correctly, so add quotes (double-quote
19206      # substitution turns \\\\ into \\, and sed turns \\ into \).
19207      sed -n \
19208	"s/'/'\\\\''/g;
19209	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19210      ;; #(
19211    *)
19212      # `set' quotes correctly as required by POSIX, so do not add quotes.
19213      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19214      ;;
19215    esac |
19216    sort
19217) |
19218  sed '
19219     /^ac_cv_env_/b end
19220     t clear
19221     :clear
19222     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19223     t end
19224     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19225     :end' >>confcache
19226if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19227  if test -w "$cache_file"; then
19228    test "x$cache_file" != "x/dev/null" &&
19229      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
19230echo "$as_me: updating cache $cache_file" >&6;}
19231    cat confcache >$cache_file
19232  else
19233    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
19234echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19235  fi
19236fi
19237rm -f confcache
19238
19239test "x$prefix" = xNONE && prefix=$ac_default_prefix
19240# Let make expand exec_prefix.
19241test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19242
19243DEFS=-DHAVE_CONFIG_H
19244
19245ac_libobjs=
19246ac_ltlibobjs=
19247for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19248  # 1. Remove the extension, and $U if already installed.
19249  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19250  ac_i=`echo "$ac_i" | sed "$ac_script"`
19251  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
19252  #    will be set to the directory where LIBOBJS objects are built.
19253  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19254  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
19255done
19256LIBOBJS=$ac_libobjs
19257
19258LTLIBOBJS=$ac_ltlibobjs
19259
19260
19261if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19262  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19263Usually this means the macro was only invoked conditionally." >&5
19264echo "$as_me: error: conditional \"AMDEP\" was never defined.
19265Usually this means the macro was only invoked conditionally." >&2;}
19266   { (exit 1); exit 1; }; }
19267fi
19268if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19269  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19270Usually this means the macro was only invoked conditionally." >&5
19271echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19272Usually this means the macro was only invoked conditionally." >&2;}
19273   { (exit 1); exit 1; }; }
19274fi
19275if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19276  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19277Usually this means the macro was only invoked conditionally." >&5
19278echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
19279Usually this means the macro was only invoked conditionally." >&2;}
19280   { (exit 1); exit 1; }; }
19281fi
19282
19283: ${CONFIG_STATUS=./config.status}
19284ac_clean_files_save=$ac_clean_files
19285ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19286{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19287echo "$as_me: creating $CONFIG_STATUS" >&6;}
19288cat >$CONFIG_STATUS <<_ACEOF
19289#! $SHELL
19290# Generated by $as_me.
19291# Run this file to recreate the current configuration.
19292# Compiler output produced by configure, useful for debugging
19293# configure, is in config.log if it exists.
19294
19295debug=false
19296ac_cs_recheck=false
19297ac_cs_silent=false
19298SHELL=\${CONFIG_SHELL-$SHELL}
19299_ACEOF
19300
19301cat >>$CONFIG_STATUS <<\_ACEOF
19302## --------------------- ##
19303## M4sh Initialization.  ##
19304## --------------------- ##
19305
19306# Be more Bourne compatible
19307DUALCASE=1; export DUALCASE # for MKS sh
19308if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19309  emulate sh
19310  NULLCMD=:
19311  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19312  # is contrary to our usage.  Disable this feature.
19313  alias -g '${1+"$@"}'='"$@"'
19314  setopt NO_GLOB_SUBST
19315else
19316  case `(set -o) 2>/dev/null` in
19317  *posix*) set -o posix ;;
19318esac
19319
19320fi
19321
19322
19323
19324
19325# PATH needs CR
19326# Avoid depending upon Character Ranges.
19327as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19328as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19329as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19330as_cr_digits='0123456789'
19331as_cr_alnum=$as_cr_Letters$as_cr_digits
19332
19333# The user is always right.
19334if test "${PATH_SEPARATOR+set}" != set; then
19335  echo "#! /bin/sh" >conf$$.sh
19336  echo  "exit 0"   >>conf$$.sh
19337  chmod +x conf$$.sh
19338  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19339    PATH_SEPARATOR=';'
19340  else
19341    PATH_SEPARATOR=:
19342  fi
19343  rm -f conf$$.sh
19344fi
19345
19346# Support unset when possible.
19347if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19348  as_unset=unset
19349else
19350  as_unset=false
19351fi
19352
19353
19354# IFS
19355# We need space, tab and new line, in precisely that order.  Quoting is
19356# there to prevent editors from complaining about space-tab.
19357# (If _AS_PATH_WALK were called with IFS unset, it would disable word
19358# splitting by setting IFS to empty value.)
19359as_nl='
19360'
19361IFS=" ""	$as_nl"
19362
19363# Find who we are.  Look in the path if we contain no directory separator.
19364case $0 in
19365  *[\\/]* ) as_myself=$0 ;;
19366  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19367for as_dir in $PATH
19368do
19369  IFS=$as_save_IFS
19370  test -z "$as_dir" && as_dir=.
19371  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19372done
19373IFS=$as_save_IFS
19374
19375     ;;
19376esac
19377# We did not find ourselves, most probably we were run as `sh COMMAND'
19378# in which case we are not to be found in the path.
19379if test "x$as_myself" = x; then
19380  as_myself=$0
19381fi
19382if test ! -f "$as_myself"; then
19383  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19384  { (exit 1); exit 1; }
19385fi
19386
19387# Work around bugs in pre-3.0 UWIN ksh.
19388for as_var in ENV MAIL MAILPATH
19389do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
19390done
19391PS1='$ '
19392PS2='> '
19393PS4='+ '
19394
19395# NLS nuisances.
19396for as_var in \
19397  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19398  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19399  LC_TELEPHONE LC_TIME
19400do
19401  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19402    eval $as_var=C; export $as_var
19403  else
19404    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
19405  fi
19406done
19407
19408# Required to use basename.
19409if expr a : '\(a\)' >/dev/null 2>&1 &&
19410   test "X`expr 00001 : '.*\(...\)'`" = X001; then
19411  as_expr=expr
19412else
19413  as_expr=false
19414fi
19415
19416if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19417  as_basename=basename
19418else
19419  as_basename=false
19420fi
19421
19422
19423# Name of the executable.
19424as_me=`$as_basename -- "$0" ||
19425$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19426	 X"$0" : 'X\(//\)$' \| \
19427	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19428echo X/"$0" |
19429    sed '/^.*\/\([^/][^/]*\)\/*$/{
19430	    s//\1/
19431	    q
19432	  }
19433	  /^X\/\(\/\/\)$/{
19434	    s//\1/
19435	    q
19436	  }
19437	  /^X\/\(\/\).*/{
19438	    s//\1/
19439	    q
19440	  }
19441	  s/.*/./; q'`
19442
19443# CDPATH.
19444$as_unset CDPATH
19445
19446
19447
19448  as_lineno_1=$LINENO
19449  as_lineno_2=$LINENO
19450  test "x$as_lineno_1" != "x$as_lineno_2" &&
19451  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
19452
19453  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19454  # uniformly replaced by the line number.  The first 'sed' inserts a
19455  # line-number line after each line using $LINENO; the second 'sed'
19456  # does the real work.  The second script uses 'N' to pair each
19457  # line-number line with the line containing $LINENO, and appends
19458  # trailing '-' during substitution so that $LINENO is not a special
19459  # case at line end.
19460  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19461  # scripts with optimization help from Paolo Bonzini.  Blame Lee
19462  # E. McMahon (1931-1989) for sed's syntax.  :-)
19463  sed -n '
19464    p
19465    /[$]LINENO/=
19466  ' <$as_myself |
19467    sed '
19468      s/[$]LINENO.*/&-/
19469      t lineno
19470      b
19471      :lineno
19472      N
19473      :loop
19474      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
19475      t loop
19476      s/-\n.*//
19477    ' >$as_me.lineno &&
19478  chmod +x "$as_me.lineno" ||
19479    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
19480   { (exit 1); exit 1; }; }
19481
19482  # Don't try to exec as it changes $[0], causing all sort of problems
19483  # (the dirname of $[0] is not the place where we might find the
19484  # original and so on.  Autoconf is especially sensitive to this).
19485  . "./$as_me.lineno"
19486  # Exit status is that of the last command.
19487  exit
19488}
19489
19490
19491if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19492  as_dirname=dirname
19493else
19494  as_dirname=false
19495fi
19496
19497ECHO_C= ECHO_N= ECHO_T=
19498case `echo -n x` in
19499-n*)
19500  case `echo 'x\c'` in
19501  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
19502  *)   ECHO_C='\c';;
19503  esac;;
19504*)
19505  ECHO_N='-n';;
19506esac
19507
19508if expr a : '\(a\)' >/dev/null 2>&1 &&
19509   test "X`expr 00001 : '.*\(...\)'`" = X001; then
19510  as_expr=expr
19511else
19512  as_expr=false
19513fi
19514
19515rm -f conf$$ conf$$.exe conf$$.file
19516if test -d conf$$.dir; then
19517  rm -f conf$$.dir/conf$$.file
19518else
19519  rm -f conf$$.dir
19520  mkdir conf$$.dir
19521fi
19522echo >conf$$.file
19523if ln -s conf$$.file conf$$ 2>/dev/null; then
19524  as_ln_s='ln -s'
19525  # ... but there are two gotchas:
19526  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19527  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19528  # In both cases, we have to default to `cp -p'.
19529  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19530    as_ln_s='cp -p'
19531elif ln conf$$.file conf$$ 2>/dev/null; then
19532  as_ln_s=ln
19533else
19534  as_ln_s='cp -p'
19535fi
19536rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19537rmdir conf$$.dir 2>/dev/null
19538
19539if mkdir -p . 2>/dev/null; then
19540  as_mkdir_p=:
19541else
19542  test -d ./-p && rmdir ./-p
19543  as_mkdir_p=false
19544fi
19545
19546if test -x / >/dev/null 2>&1; then
19547  as_test_x='test -x'
19548else
19549  if ls -dL / >/dev/null 2>&1; then
19550    as_ls_L_option=L
19551  else
19552    as_ls_L_option=
19553  fi
19554  as_test_x='
19555    eval sh -c '\''
19556      if test -d "$1"; then
19557        test -d "$1/.";
19558      else
19559	case $1 in
19560        -*)set "./$1";;
19561	esac;
19562	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
19563	???[sx]*):;;*)false;;esac;fi
19564    '\'' sh
19565  '
19566fi
19567as_executable_p=$as_test_x
19568
19569# Sed expression to map a string onto a valid CPP name.
19570as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19571
19572# Sed expression to map a string onto a valid variable name.
19573as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19574
19575
19576exec 6>&1
19577
19578# Save the log message, to keep $[0] and so on meaningful, and to
19579# report actual input values of CONFIG_FILES etc. instead of their
19580# values after options handling.
19581ac_log="
19582This file was extended by $as_me, which was
19583generated by GNU Autoconf 2.61.  Invocation command line was
19584
19585  CONFIG_FILES    = $CONFIG_FILES
19586  CONFIG_HEADERS  = $CONFIG_HEADERS
19587  CONFIG_LINKS    = $CONFIG_LINKS
19588  CONFIG_COMMANDS = $CONFIG_COMMANDS
19589  $ $0 $@
19590
19591on `(hostname || uname -n) 2>/dev/null | sed 1q`
19592"
19593
19594_ACEOF
19595
19596cat >>$CONFIG_STATUS <<_ACEOF
19597# Files that config.status was made for.
19598config_files="$ac_config_files"
19599config_headers="$ac_config_headers"
19600config_commands="$ac_config_commands"
19601
19602_ACEOF
19603
19604cat >>$CONFIG_STATUS <<\_ACEOF
19605ac_cs_usage="\
19606\`$as_me' instantiates files from templates according to the
19607current configuration.
19608
19609Usage: $0 [OPTIONS] [FILE]...
19610
19611  -h, --help       print this help, then exit
19612  -V, --version    print version number and configuration settings, then exit
19613  -q, --quiet      do not print progress messages
19614  -d, --debug      don't remove temporary files
19615      --recheck    update $as_me by reconfiguring in the same conditions
19616  --file=FILE[:TEMPLATE]
19617		   instantiate the configuration file FILE
19618  --header=FILE[:TEMPLATE]
19619		   instantiate the configuration header FILE
19620
19621Configuration files:
19622$config_files
19623
19624Configuration headers:
19625$config_headers
19626
19627Configuration commands:
19628$config_commands
19629
19630Report bugs to <bug-autoconf@gnu.org>."
19631
19632_ACEOF
19633cat >>$CONFIG_STATUS <<_ACEOF
19634ac_cs_version="\\
19635config.status
19636configured by $0, generated by GNU Autoconf 2.61,
19637  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
19638
19639Copyright (C) 2006 Free Software Foundation, Inc.
19640This config.status script is free software; the Free Software Foundation
19641gives unlimited permission to copy, distribute and modify it."
19642
19643ac_pwd='$ac_pwd'
19644srcdir='$srcdir'
19645INSTALL='$INSTALL'
19646_ACEOF
19647
19648cat >>$CONFIG_STATUS <<\_ACEOF
19649# If no file are specified by the user, then we need to provide default
19650# value.  By we need to know if files were specified by the user.
19651ac_need_defaults=:
19652while test $# != 0
19653do
19654  case $1 in
19655  --*=*)
19656    ac_option=`expr "X$1" : 'X\([^=]*\)='`
19657    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19658    ac_shift=:
19659    ;;
19660  *)
19661    ac_option=$1
19662    ac_optarg=$2
19663    ac_shift=shift
19664    ;;
19665  esac
19666
19667  case $ac_option in
19668  # Handling of the options.
19669  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19670    ac_cs_recheck=: ;;
19671  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19672    echo "$ac_cs_version"; exit ;;
19673  --debug | --debu | --deb | --de | --d | -d )
19674    debug=: ;;
19675  --file | --fil | --fi | --f )
19676    $ac_shift
19677    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19678    ac_need_defaults=false;;
19679  --header | --heade | --head | --hea )
19680    $ac_shift
19681    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19682    ac_need_defaults=false;;
19683  --he | --h)
19684    # Conflict between --help and --header
19685    { echo "$as_me: error: ambiguous option: $1
19686Try \`$0 --help' for more information." >&2
19687   { (exit 1); exit 1; }; };;
19688  --help | --hel | -h )
19689    echo "$ac_cs_usage"; exit ;;
19690  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19691  | -silent | --silent | --silen | --sile | --sil | --si | --s)
19692    ac_cs_silent=: ;;
19693
19694  # This is an error.
19695  -*) { echo "$as_me: error: unrecognized option: $1
19696Try \`$0 --help' for more information." >&2
19697   { (exit 1); exit 1; }; } ;;
19698
19699  *) ac_config_targets="$ac_config_targets $1"
19700     ac_need_defaults=false ;;
19701
19702  esac
19703  shift
19704done
19705
19706ac_configure_extra_args=
19707
19708if $ac_cs_silent; then
19709  exec 6>/dev/null
19710  ac_configure_extra_args="$ac_configure_extra_args --silent"
19711fi
19712
19713_ACEOF
19714cat >>$CONFIG_STATUS <<_ACEOF
19715if \$ac_cs_recheck; then
19716  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19717  CONFIG_SHELL=$SHELL
19718  export CONFIG_SHELL
19719  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19720fi
19721
19722_ACEOF
19723cat >>$CONFIG_STATUS <<\_ACEOF
19724exec 5>>config.log
19725{
19726  echo
19727  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19728## Running $as_me. ##
19729_ASBOX
19730  echo "$ac_log"
19731} >&5
19732
19733_ACEOF
19734cat >>$CONFIG_STATUS <<_ACEOF
19735#
19736# INIT-COMMANDS
19737#
19738AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19739
19740_ACEOF
19741
19742cat >>$CONFIG_STATUS <<\_ACEOF
19743
19744# Handling of arguments.
19745for ac_config_target in $ac_config_targets
19746do
19747  case $ac_config_target in
19748    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19749    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19750    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19751    "jwsmtp-1.32.pc") CONFIG_FILES="$CONFIG_FILES jwsmtp-1.32.pc" ;;
19752    "jwsmtp/Makefile") CONFIG_FILES="$CONFIG_FILES jwsmtp/Makefile" ;;
19753    "jwsmtp/jwsmtp/Makefile") CONFIG_FILES="$CONFIG_FILES jwsmtp/jwsmtp/Makefile" ;;
19754    "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
19755
19756  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19757echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19758   { (exit 1); exit 1; }; };;
19759  esac
19760done
19761
19762
19763# If the user did not use the arguments to specify the items to instantiate,
19764# then the envvar interface is used.  Set only those that are not.
19765# We use the long form for the default assignment because of an extremely
19766# bizarre bug on SunOS 4.1.3.
19767if $ac_need_defaults; then
19768  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19769  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19770  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19771fi
19772
19773# Have a temporary directory for convenience.  Make it in the build tree
19774# simply because there is no reason against having it here, and in addition,
19775# creating and moving files from /tmp can sometimes cause problems.
19776# Hook for its removal unless debugging.
19777# Note that there is a small window in which the directory will not be cleaned:
19778# after its creation but before its name has been assigned to `$tmp'.
19779$debug ||
19780{
19781  tmp=
19782  trap 'exit_status=$?
19783  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
19784' 0
19785  trap '{ (exit 1); exit 1; }' 1 2 13 15
19786}
19787# Create a (secure) tmp directory for tmp files.
19788
19789{
19790  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19791  test -n "$tmp" && test -d "$tmp"
19792}  ||
19793{
19794  tmp=./conf$$-$RANDOM
19795  (umask 077 && mkdir "$tmp")
19796} ||
19797{
19798   echo "$me: cannot create a temporary directory in ." >&2
19799   { (exit 1); exit 1; }
19800}
19801
19802#
19803# Set up the sed scripts for CONFIG_FILES section.
19804#
19805
19806# No need to generate the scripts if there are no CONFIG_FILES.
19807# This happens for instance when ./config.status config.h
19808if test -n "$CONFIG_FILES"; then
19809
19810_ACEOF
19811
19812
19813
19814ac_delim='%!_!# '
19815for ac_last_try in false false false false false :; do
19816  cat >conf$$subs.sed <<_ACEOF
19817SHELL!$SHELL$ac_delim
19818PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
19819PACKAGE_NAME!$PACKAGE_NAME$ac_delim
19820PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
19821PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
19822PACKAGE_STRING!$PACKAGE_STRING$ac_delim
19823PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
19824exec_prefix!$exec_prefix$ac_delim
19825prefix!$prefix$ac_delim
19826program_transform_name!$program_transform_name$ac_delim
19827bindir!$bindir$ac_delim
19828sbindir!$sbindir$ac_delim
19829libexecdir!$libexecdir$ac_delim
19830datarootdir!$datarootdir$ac_delim
19831datadir!$datadir$ac_delim
19832sysconfdir!$sysconfdir$ac_delim
19833sharedstatedir!$sharedstatedir$ac_delim
19834localstatedir!$localstatedir$ac_delim
19835includedir!$includedir$ac_delim
19836oldincludedir!$oldincludedir$ac_delim
19837docdir!$docdir$ac_delim
19838infodir!$infodir$ac_delim
19839htmldir!$htmldir$ac_delim
19840dvidir!$dvidir$ac_delim
19841pdfdir!$pdfdir$ac_delim
19842psdir!$psdir$ac_delim
19843libdir!$libdir$ac_delim
19844localedir!$localedir$ac_delim
19845mandir!$mandir$ac_delim
19846DEFS!$DEFS$ac_delim
19847ECHO_C!$ECHO_C$ac_delim
19848ECHO_N!$ECHO_N$ac_delim
19849ECHO_T!$ECHO_T$ac_delim
19850LIBS!$LIBS$ac_delim
19851build_alias!$build_alias$ac_delim
19852host_alias!$host_alias$ac_delim
19853target_alias!$target_alias$ac_delim
19854JWSMTP_API_VERSION!$JWSMTP_API_VERSION$ac_delim
19855JWSMTP_LIBRARY_VERSION!$JWSMTP_LIBRARY_VERSION$ac_delim
19856JWSMTP_LIBRARY_NAME!$JWSMTP_LIBRARY_NAME$ac_delim
19857JWSMTP_RELEASE!$JWSMTP_RELEASE$ac_delim
19858JWSMTP_VERSION!$JWSMTP_VERSION$ac_delim
19859INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
19860INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
19861INSTALL_DATA!$INSTALL_DATA$ac_delim
19862CYGPATH_W!$CYGPATH_W$ac_delim
19863PACKAGE!$PACKAGE$ac_delim
19864VERSION!$VERSION$ac_delim
19865ACLOCAL!$ACLOCAL$ac_delim
19866AUTOCONF!$AUTOCONF$ac_delim
19867AUTOMAKE!$AUTOMAKE$ac_delim
19868AUTOHEADER!$AUTOHEADER$ac_delim
19869MAKEINFO!$MAKEINFO$ac_delim
19870install_sh!$install_sh$ac_delim
19871STRIP!$STRIP$ac_delim
19872INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
19873mkdir_p!$mkdir_p$ac_delim
19874AWK!$AWK$ac_delim
19875SET_MAKE!$SET_MAKE$ac_delim
19876am__leading_dot!$am__leading_dot$ac_delim
19877AMTAR!$AMTAR$ac_delim
19878am__tar!$am__tar$ac_delim
19879am__untar!$am__untar$ac_delim
19880CC!$CC$ac_delim
19881CFLAGS!$CFLAGS$ac_delim
19882LDFLAGS!$LDFLAGS$ac_delim
19883CPPFLAGS!$CPPFLAGS$ac_delim
19884ac_ct_CC!$ac_ct_CC$ac_delim
19885EXEEXT!$EXEEXT$ac_delim
19886OBJEXT!$OBJEXT$ac_delim
19887DEPDIR!$DEPDIR$ac_delim
19888am__include!$am__include$ac_delim
19889am__quote!$am__quote$ac_delim
19890AMDEP_TRUE!$AMDEP_TRUE$ac_delim
19891AMDEP_FALSE!$AMDEP_FALSE$ac_delim
19892AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
19893CCDEPMODE!$CCDEPMODE$ac_delim
19894am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
19895am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
19896CXX!$CXX$ac_delim
19897CXXFLAGS!$CXXFLAGS$ac_delim
19898ac_ct_CXX!$ac_ct_CXX$ac_delim
19899CXXDEPMODE!$CXXDEPMODE$ac_delim
19900am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
19901am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
19902build!$build$ac_delim
19903build_cpu!$build_cpu$ac_delim
19904build_vendor!$build_vendor$ac_delim
19905build_os!$build_os$ac_delim
19906host!$host$ac_delim
19907host_cpu!$host_cpu$ac_delim
19908host_vendor!$host_vendor$ac_delim
19909host_os!$host_os$ac_delim
19910GREP!$GREP$ac_delim
19911EGREP!$EGREP$ac_delim
19912LN_S!$LN_S$ac_delim
19913ECHO!$ECHO$ac_delim
19914_ACEOF
19915
19916  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
19917    break
19918  elif $ac_last_try; then
19919    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19920echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19921   { (exit 1); exit 1; }; }
19922  else
19923    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19924  fi
19925done
19926
19927ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
19928if test -n "$ac_eof"; then
19929  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
19930  ac_eof=`expr $ac_eof + 1`
19931fi
19932
19933cat >>$CONFIG_STATUS <<_ACEOF
19934cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
19935/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19936_ACEOF
19937sed '
19938s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
19939s/^/s,@/; s/!/@,|#_!!_#|/
19940:n
19941t n
19942s/'"$ac_delim"'$/,g/; t
19943s/$/\\/; p
19944N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
19945' >>$CONFIG_STATUS <conf$$subs.sed
19946rm -f conf$$subs.sed
19947cat >>$CONFIG_STATUS <<_ACEOF
19948CEOF$ac_eof
19949_ACEOF
19950
19951
19952ac_delim='%!_!# '
19953for ac_last_try in false false false false false :; do
19954  cat >conf$$subs.sed <<_ACEOF
19955AR!$AR$ac_delim
19956RANLIB!$RANLIB$ac_delim
19957CPP!$CPP$ac_delim
19958CXXCPP!$CXXCPP$ac_delim
19959F77!$F77$ac_delim
19960FFLAGS!$FFLAGS$ac_delim
19961ac_ct_F77!$ac_ct_F77$ac_delim
19962LIBTOOL!$LIBTOOL$ac_delim
19963LIBOBJS!$LIBOBJS$ac_delim
19964LTLIBOBJS!$LTLIBOBJS$ac_delim
19965_ACEOF
19966
19967  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 10; then
19968    break
19969  elif $ac_last_try; then
19970    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19971echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19972   { (exit 1); exit 1; }; }
19973  else
19974    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19975  fi
19976done
19977
19978ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
19979if test -n "$ac_eof"; then
19980  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
19981  ac_eof=`expr $ac_eof + 1`
19982fi
19983
19984cat >>$CONFIG_STATUS <<_ACEOF
19985cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
19986/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
19987_ACEOF
19988sed '
19989s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
19990s/^/s,@/; s/!/@,|#_!!_#|/
19991:n
19992t n
19993s/'"$ac_delim"'$/,g/; t
19994s/$/\\/; p
19995N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
19996' >>$CONFIG_STATUS <conf$$subs.sed
19997rm -f conf$$subs.sed
19998cat >>$CONFIG_STATUS <<_ACEOF
19999:end
20000s/|#_!!_#|//g
20001CEOF$ac_eof
20002_ACEOF
20003
20004
20005# VPATH may cause trouble with some makes, so we remove $(srcdir),
20006# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20007# trailing colons and then remove the whole line if VPATH becomes empty
20008# (actually we leave an empty line to preserve line numbers).
20009if test "x$srcdir" = x.; then
20010  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
20011s/:*\$(srcdir):*/:/
20012s/:*\${srcdir}:*/:/
20013s/:*@srcdir@:*/:/
20014s/^\([^=]*=[	 ]*\):*/\1/
20015s/:*$//
20016s/^[^=]*=[	 ]*$//
20017}'
20018fi
20019
20020cat >>$CONFIG_STATUS <<\_ACEOF
20021fi # test -n "$CONFIG_FILES"
20022
20023
20024for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
20025do
20026  case $ac_tag in
20027  :[FHLC]) ac_mode=$ac_tag; continue;;
20028  esac
20029  case $ac_mode$ac_tag in
20030  :[FHL]*:*);;
20031  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
20032echo "$as_me: error: Invalid tag $ac_tag." >&2;}
20033   { (exit 1); exit 1; }; };;
20034  :[FH]-) ac_tag=-:-;;
20035  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20036  esac
20037  ac_save_IFS=$IFS
20038  IFS=:
20039  set x $ac_tag
20040  IFS=$ac_save_IFS
20041  shift
20042  ac_file=$1
20043  shift
20044
20045  case $ac_mode in
20046  :L) ac_source=$1;;
20047  :[FH])
20048    ac_file_inputs=
20049    for ac_f
20050    do
20051      case $ac_f in
20052      -) ac_f="$tmp/stdin";;
20053      *) # Look for the file first in the build tree, then in the source tree
20054	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
20055	 # because $ac_f cannot contain `:'.
20056	 test -f "$ac_f" ||
20057	   case $ac_f in
20058	   [\\/$]*) false;;
20059	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20060	   esac ||
20061	   { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
20062echo "$as_me: error: cannot find input file: $ac_f" >&2;}
20063   { (exit 1); exit 1; }; };;
20064      esac
20065      ac_file_inputs="$ac_file_inputs $ac_f"
20066    done
20067
20068    # Let's still pretend it is `configure' which instantiates (i.e., don't
20069    # use $as_me), people would be surprised to read:
20070    #    /* config.h.  Generated by config.status.  */
20071    configure_input="Generated from "`IFS=:
20072	  echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
20073    if test x"$ac_file" != x-; then
20074      configure_input="$ac_file.  $configure_input"
20075      { echo "$as_me:$LINENO: creating $ac_file" >&5
20076echo "$as_me: creating $ac_file" >&6;}
20077    fi
20078
20079    case $ac_tag in
20080    *:-:* | *:-) cat >"$tmp/stdin";;
20081    esac
20082    ;;
20083  esac
20084
20085  ac_dir=`$as_dirname -- "$ac_file" ||
20086$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20087	 X"$ac_file" : 'X\(//\)[^/]' \| \
20088	 X"$ac_file" : 'X\(//\)$' \| \
20089	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20090echo X"$ac_file" |
20091    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20092	    s//\1/
20093	    q
20094	  }
20095	  /^X\(\/\/\)[^/].*/{
20096	    s//\1/
20097	    q
20098	  }
20099	  /^X\(\/\/\)$/{
20100	    s//\1/
20101	    q
20102	  }
20103	  /^X\(\/\).*/{
20104	    s//\1/
20105	    q
20106	  }
20107	  s/.*/./; q'`
20108  { as_dir="$ac_dir"
20109  case $as_dir in #(
20110  -*) as_dir=./$as_dir;;
20111  esac
20112  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20113    as_dirs=
20114    while :; do
20115      case $as_dir in #(
20116      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
20117      *) as_qdir=$as_dir;;
20118      esac
20119      as_dirs="'$as_qdir' $as_dirs"
20120      as_dir=`$as_dirname -- "$as_dir" ||
20121$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20122	 X"$as_dir" : 'X\(//\)[^/]' \| \
20123	 X"$as_dir" : 'X\(//\)$' \| \
20124	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20125echo X"$as_dir" |
20126    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20127	    s//\1/
20128	    q
20129	  }
20130	  /^X\(\/\/\)[^/].*/{
20131	    s//\1/
20132	    q
20133	  }
20134	  /^X\(\/\/\)$/{
20135	    s//\1/
20136	    q
20137	  }
20138	  /^X\(\/\).*/{
20139	    s//\1/
20140	    q
20141	  }
20142	  s/.*/./; q'`
20143      test -d "$as_dir" && break
20144    done
20145    test -z "$as_dirs" || eval "mkdir $as_dirs"
20146  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20147echo "$as_me: error: cannot create directory $as_dir" >&2;}
20148   { (exit 1); exit 1; }; }; }
20149  ac_builddir=.
20150
20151case "$ac_dir" in
20152.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20153*)
20154  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20155  # A ".." for each directory in $ac_dir_suffix.
20156  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
20157  case $ac_top_builddir_sub in
20158  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20159  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20160  esac ;;
20161esac
20162ac_abs_top_builddir=$ac_pwd
20163ac_abs_builddir=$ac_pwd$ac_dir_suffix
20164# for backward compatibility:
20165ac_top_builddir=$ac_top_build_prefix
20166
20167case $srcdir in
20168  .)  # We are building in place.
20169    ac_srcdir=.
20170    ac_top_srcdir=$ac_top_builddir_sub
20171    ac_abs_top_srcdir=$ac_pwd ;;
20172  [\\/]* | ?:[\\/]* )  # Absolute name.
20173    ac_srcdir=$srcdir$ac_dir_suffix;
20174    ac_top_srcdir=$srcdir
20175    ac_abs_top_srcdir=$srcdir ;;
20176  *) # Relative name.
20177    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20178    ac_top_srcdir=$ac_top_build_prefix$srcdir
20179    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20180esac
20181ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20182
20183
20184  case $ac_mode in
20185  :F)
20186  #
20187  # CONFIG_FILE
20188  #
20189
20190  case $INSTALL in
20191  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20192  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20193  esac
20194_ACEOF
20195
20196cat >>$CONFIG_STATUS <<\_ACEOF
20197# If the template does not know about datarootdir, expand it.
20198# FIXME: This hack should be removed a few years after 2.60.
20199ac_datarootdir_hack=; ac_datarootdir_seen=
20200
20201case `sed -n '/datarootdir/ {
20202  p
20203  q
20204}
20205/@datadir@/p
20206/@docdir@/p
20207/@infodir@/p
20208/@localedir@/p
20209/@mandir@/p
20210' $ac_file_inputs` in
20211*datarootdir*) ac_datarootdir_seen=yes;;
20212*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20213  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20214echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20215_ACEOF
20216cat >>$CONFIG_STATUS <<_ACEOF
20217  ac_datarootdir_hack='
20218  s&@datadir@&$datadir&g
20219  s&@docdir@&$docdir&g
20220  s&@infodir@&$infodir&g
20221  s&@localedir@&$localedir&g
20222  s&@mandir@&$mandir&g
20223    s&\\\${datarootdir}&$datarootdir&g' ;;
20224esac
20225_ACEOF
20226
20227# Neutralize VPATH when `$srcdir' = `.'.
20228# Shell code in configure.ac might set extrasub.
20229# FIXME: do we really want to maintain this feature?
20230cat >>$CONFIG_STATUS <<_ACEOF
20231  sed "$ac_vpsub
20232$extrasub
20233_ACEOF
20234cat >>$CONFIG_STATUS <<\_ACEOF
20235:t
20236/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20237s&@configure_input@&$configure_input&;t t
20238s&@top_builddir@&$ac_top_builddir_sub&;t t
20239s&@srcdir@&$ac_srcdir&;t t
20240s&@abs_srcdir@&$ac_abs_srcdir&;t t
20241s&@top_srcdir@&$ac_top_srcdir&;t t
20242s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20243s&@builddir@&$ac_builddir&;t t
20244s&@abs_builddir@&$ac_abs_builddir&;t t
20245s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20246s&@INSTALL@&$ac_INSTALL&;t t
20247$ac_datarootdir_hack
20248" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
20249
20250test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20251  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
20252  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
20253  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20254which seems to be undefined.  Please make sure it is defined." >&5
20255echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20256which seems to be undefined.  Please make sure it is defined." >&2;}
20257
20258  rm -f "$tmp/stdin"
20259  case $ac_file in
20260  -) cat "$tmp/out"; rm -f "$tmp/out";;
20261  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
20262  esac
20263 ;;
20264  :H)
20265  #
20266  # CONFIG_HEADER
20267  #
20268_ACEOF
20269
20270# Transform confdefs.h into a sed script `conftest.defines', that
20271# substitutes the proper values into config.h.in to produce config.h.
20272rm -f conftest.defines conftest.tail
20273# First, append a space to every undef/define line, to ease matching.
20274echo 's/$/ /' >conftest.defines
20275# Then, protect against being on the right side of a sed subst, or in
20276# an unquoted here document, in config.status.  If some macros were
20277# called several times there might be several #defines for the same
20278# symbol, which is useless.  But do not sort them, since the last
20279# AC_DEFINE must be honored.
20280ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20281# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
20282# NAME is the cpp macro being defined, VALUE is the value it is being given.
20283# PARAMS is the parameter list in the macro definition--in most cases, it's
20284# just an empty string.
20285ac_dA='s,^\\([	 #]*\\)[^	 ]*\\([	 ]*'
20286ac_dB='\\)[	 (].*,\\1define\\2'
20287ac_dC=' '
20288ac_dD=' ,'
20289
20290uniq confdefs.h |
20291  sed -n '
20292	t rset
20293	:rset
20294	s/^[	 ]*#[	 ]*define[	 ][	 ]*//
20295	t ok
20296	d
20297	:ok
20298	s/[\\&,]/\\&/g
20299	s/^\('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
20300	s/^\('"$ac_word_re"'\)[	 ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
20301  ' >>conftest.defines
20302
20303# Remove the space that was appended to ease matching.
20304# Then replace #undef with comments.  This is necessary, for
20305# example, in the case of _POSIX_SOURCE, which is predefined and required
20306# on some systems where configure will not decide to define it.
20307# (The regexp can be short, since the line contains either #define or #undef.)
20308echo 's/ $//
20309s,^[	 #]*u.*,/* & */,' >>conftest.defines
20310
20311# Break up conftest.defines:
20312ac_max_sed_lines=50
20313
20314# First sed command is:	 sed -f defines.sed $ac_file_inputs >"$tmp/out1"
20315# Second one is:	 sed -f defines.sed "$tmp/out1" >"$tmp/out2"
20316# Third one will be:	 sed -f defines.sed "$tmp/out2" >"$tmp/out1"
20317# et cetera.
20318ac_in='$ac_file_inputs'
20319ac_out='"$tmp/out1"'
20320ac_nxt='"$tmp/out2"'
20321
20322while :
20323do
20324  # Write a here document:
20325    cat >>$CONFIG_STATUS <<_ACEOF
20326    # First, check the format of the line:
20327    cat >"\$tmp/defines.sed" <<\\CEOF
20328/^[	 ]*#[	 ]*undef[	 ][	 ]*$ac_word_re[	 ]*\$/b def
20329/^[	 ]*#[	 ]*define[	 ][	 ]*$ac_word_re[(	 ]/b def
20330b
20331:def
20332_ACEOF
20333  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
20334  echo 'CEOF
20335    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
20336  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
20337  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
20338  grep . conftest.tail >/dev/null || break
20339  rm -f conftest.defines
20340  mv conftest.tail conftest.defines
20341done
20342rm -f conftest.defines conftest.tail
20343
20344echo "ac_result=$ac_in" >>$CONFIG_STATUS
20345cat >>$CONFIG_STATUS <<\_ACEOF
20346  if test x"$ac_file" != x-; then
20347    echo "/* $configure_input  */" >"$tmp/config.h"
20348    cat "$ac_result" >>"$tmp/config.h"
20349    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
20350      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20351echo "$as_me: $ac_file is unchanged" >&6;}
20352    else
20353      rm -f $ac_file
20354      mv "$tmp/config.h" $ac_file
20355    fi
20356  else
20357    echo "/* $configure_input  */"
20358    cat "$ac_result"
20359  fi
20360  rm -f "$tmp/out12"
20361# Compute $ac_file's index in $config_headers.
20362_am_stamp_count=1
20363for _am_header in $config_headers :; do
20364  case $_am_header in
20365    $ac_file | $ac_file:* )
20366      break ;;
20367    * )
20368      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20369  esac
20370done
20371echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
20372$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20373	 X$ac_file : 'X\(//\)[^/]' \| \
20374	 X$ac_file : 'X\(//\)$' \| \
20375	 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
20376echo X$ac_file |
20377    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20378	    s//\1/
20379	    q
20380	  }
20381	  /^X\(\/\/\)[^/].*/{
20382	    s//\1/
20383	    q
20384	  }
20385	  /^X\(\/\/\)$/{
20386	    s//\1/
20387	    q
20388	  }
20389	  /^X\(\/\).*/{
20390	    s//\1/
20391	    q
20392	  }
20393	  s/.*/./; q'`/stamp-h$_am_stamp_count
20394 ;;
20395
20396  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
20397echo "$as_me: executing $ac_file commands" >&6;}
20398 ;;
20399  esac
20400
20401
20402  case $ac_file$ac_mode in
20403    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
20404  # Strip MF so we end up with the name of the file.
20405  mf=`echo "$mf" | sed -e 's/:.*$//'`
20406  # Check whether this is an Automake generated Makefile or not.
20407  # We used to match only the files named `Makefile.in', but
20408  # some people rename them; so instead we look at the file content.
20409  # Grep'ing the first line is not enough: some people post-process
20410  # each Makefile.in and add a new line on top of each file to say so.
20411  # So let's grep whole file.
20412  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
20413    dirpart=`$as_dirname -- "$mf" ||
20414$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20415	 X"$mf" : 'X\(//\)[^/]' \| \
20416	 X"$mf" : 'X\(//\)$' \| \
20417	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
20418echo X"$mf" |
20419    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20420	    s//\1/
20421	    q
20422	  }
20423	  /^X\(\/\/\)[^/].*/{
20424	    s//\1/
20425	    q
20426	  }
20427	  /^X\(\/\/\)$/{
20428	    s//\1/
20429	    q
20430	  }
20431	  /^X\(\/\).*/{
20432	    s//\1/
20433	    q
20434	  }
20435	  s/.*/./; q'`
20436  else
20437    continue
20438  fi
20439  # Extract the definition of DEPDIR, am__include, and am__quote
20440  # from the Makefile without running `make'.
20441  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20442  test -z "$DEPDIR" && continue
20443  am__include=`sed -n 's/^am__include = //p' < "$mf"`
20444  test -z "am__include" && continue
20445  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20446  # When using ansi2knr, U may be empty or an underscore; expand it
20447  U=`sed -n 's/^U = //p' < "$mf"`
20448  # Find all dependency output files, they are included files with
20449  # $(DEPDIR) in their names.  We invoke sed twice because it is the
20450  # simplest approach to changing $(DEPDIR) to its actual value in the
20451  # expansion.
20452  for file in `sed -n "
20453    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20454       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20455    # Make sure the directory exists.
20456    test -f "$dirpart/$file" && continue
20457    fdir=`$as_dirname -- "$file" ||
20458$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20459	 X"$file" : 'X\(//\)[^/]' \| \
20460	 X"$file" : 'X\(//\)$' \| \
20461	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
20462echo X"$file" |
20463    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20464	    s//\1/
20465	    q
20466	  }
20467	  /^X\(\/\/\)[^/].*/{
20468	    s//\1/
20469	    q
20470	  }
20471	  /^X\(\/\/\)$/{
20472	    s//\1/
20473	    q
20474	  }
20475	  /^X\(\/\).*/{
20476	    s//\1/
20477	    q
20478	  }
20479	  s/.*/./; q'`
20480    { as_dir=$dirpart/$fdir
20481  case $as_dir in #(
20482  -*) as_dir=./$as_dir;;
20483  esac
20484  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20485    as_dirs=
20486    while :; do
20487      case $as_dir in #(
20488      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
20489      *) as_qdir=$as_dir;;
20490      esac
20491      as_dirs="'$as_qdir' $as_dirs"
20492      as_dir=`$as_dirname -- "$as_dir" ||
20493$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20494	 X"$as_dir" : 'X\(//\)[^/]' \| \
20495	 X"$as_dir" : 'X\(//\)$' \| \
20496	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20497echo X"$as_dir" |
20498    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20499	    s//\1/
20500	    q
20501	  }
20502	  /^X\(\/\/\)[^/].*/{
20503	    s//\1/
20504	    q
20505	  }
20506	  /^X\(\/\/\)$/{
20507	    s//\1/
20508	    q
20509	  }
20510	  /^X\(\/\).*/{
20511	    s//\1/
20512	    q
20513	  }
20514	  s/.*/./; q'`
20515      test -d "$as_dir" && break
20516    done
20517    test -z "$as_dirs" || eval "mkdir $as_dirs"
20518  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20519echo "$as_me: error: cannot create directory $as_dir" >&2;}
20520   { (exit 1); exit 1; }; }; }
20521    # echo "creating $dirpart/$file"
20522    echo '# dummy' > "$dirpart/$file"
20523  done
20524done
20525 ;;
20526
20527  esac
20528done # for ac_tag
20529
20530
20531{ (exit 0); exit 0; }
20532_ACEOF
20533chmod +x $CONFIG_STATUS
20534ac_clean_files=$ac_clean_files_save
20535
20536
20537# configure is writing to config.log, and then calls config.status.
20538# config.status does its own redirection, appending to config.log.
20539# Unfortunately, on DOS this fails, as config.log is still kept open
20540# by configure, so config.status won't be able to write to it; its
20541# output is simply discarded.  So we exec the FD to /dev/null,
20542# effectively closing config.log, so it can be properly (re)opened and
20543# appended to by config.status.  When coming back to configure, we
20544# need to make the FD available again.
20545if test "$no_create" != yes; then
20546  ac_cs_success=:
20547  ac_config_status_args=
20548  test "$silent" = yes &&
20549    ac_config_status_args="$ac_config_status_args --quiet"
20550  exec 5>/dev/null
20551  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20552  exec 5>>config.log
20553  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20554  # would make configure fail if this is the last instruction.
20555  $ac_cs_success || { (exit 1); exit 1; }
20556fi
20557
20558
20559{ echo "$as_me:$LINENO:
20560to compile and install ${JWSMTP_LIBRARY_NAME}
20561  make
20562  make install" >&5
20563echo "$as_me:
20564to compile and install ${JWSMTP_LIBRARY_NAME}
20565  make
20566  make install" >&6;}
20567