configure revision ff559fab
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for libXdmcp 1.0.2.
4#
5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10## --------------------- ##
11## M4sh Initialization.  ##
12## --------------------- ##
13
14# Be Bourne compatible
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+"$@"}'='"$@"'
21elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22  set -o posix
23fi
24DUALCASE=1; export DUALCASE # for MKS sh
25
26# Support unset when possible.
27if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28  as_unset=unset
29else
30  as_unset=false
31fi
32
33
34# Work around bugs in pre-3.0 UWIN ksh.
35$as_unset ENV MAIL MAILPATH
36PS1='$ '
37PS2='> '
38PS4='+ '
39
40# NLS nuisances.
41for as_var in \
42  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44  LC_TELEPHONE LC_TIME
45do
46  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47    eval $as_var=C; export $as_var
48  else
49    $as_unset $as_var
50  fi
51done
52
53# Required to use basename.
54if expr a : '\(a\)' >/dev/null 2>&1; then
55  as_expr=expr
56else
57  as_expr=false
58fi
59
60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61  as_basename=basename
62else
63  as_basename=false
64fi
65
66
67# Name of the executable.
68as_me=`$as_basename "$0" ||
69$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70	 X"$0" : 'X\(//\)$' \| \
71	 X"$0" : 'X\(/\)$' \| \
72	 .     : '\(.\)' 2>/dev/null ||
73echo X/"$0" |
74    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
76  	  /^X\/\(\/\).*/{ s//\1/; q; }
77  	  s/.*/./; q'`
78
79
80# PATH needs CR, and LINENO needs CR and PATH.
81# Avoid depending upon Character Ranges.
82as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85as_cr_digits='0123456789'
86as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88# The user is always right.
89if test "${PATH_SEPARATOR+set}" != set; then
90  echo "#! /bin/sh" >conf$$.sh
91  echo  "exit 0"   >>conf$$.sh
92  chmod +x conf$$.sh
93  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94    PATH_SEPARATOR=';'
95  else
96    PATH_SEPARATOR=:
97  fi
98  rm -f conf$$.sh
99fi
100
101
102  as_lineno_1=$LINENO
103  as_lineno_2=$LINENO
104  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105  test "x$as_lineno_1" != "x$as_lineno_2" &&
106  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107  # Find who we are.  Look in the path if we contain no path at all
108  # relative or not.
109  case $0 in
110    *[\\/]* ) as_myself=$0 ;;
111    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112for as_dir in $PATH
113do
114  IFS=$as_save_IFS
115  test -z "$as_dir" && as_dir=.
116  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117done
118
119       ;;
120  esac
121  # We did not find ourselves, most probably we were run as `sh COMMAND'
122  # in which case we are not to be found in the path.
123  if test "x$as_myself" = x; then
124    as_myself=$0
125  fi
126  if test ! -f "$as_myself"; then
127    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128   { (exit 1); exit 1; }; }
129  fi
130  case $CONFIG_SHELL in
131  '')
132    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134do
135  IFS=$as_save_IFS
136  test -z "$as_dir" && as_dir=.
137  for as_base in sh bash ksh sh5; do
138	 case $as_dir in
139	 /*)
140	   if ("$as_dir/$as_base" -c '
141  as_lineno_1=$LINENO
142  as_lineno_2=$LINENO
143  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144  test "x$as_lineno_1" != "x$as_lineno_2" &&
145  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148	     CONFIG_SHELL=$as_dir/$as_base
149	     export CONFIG_SHELL
150	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151	   fi;;
152	 esac
153       done
154done
155;;
156  esac
157
158  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159  # uniformly replaced by the line number.  The first 'sed' inserts a
160  # line-number line before each line; the second 'sed' does the real
161  # work.  The second script uses 'N' to pair each line-number line
162  # with the numbered line, and appends trailing '-' during
163  # substitution so that $LINENO is not a special case at line end.
164  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166  sed '=' <$as_myself |
167    sed '
168      N
169      s,$,-,
170      : loop
171      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172      t loop
173      s,-$,,
174      s,^['$as_cr_digits']*\n,,
175    ' >$as_me.lineno &&
176  chmod +x $as_me.lineno ||
177    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178   { (exit 1); exit 1; }; }
179
180  # Don't try to exec as it changes $[0], causing all sort of problems
181  # (the dirname of $[0] is not the place where we might find the
182  # original and so on.  Autoconf is especially sensible to this).
183  . ./$as_me.lineno
184  # Exit status is that of the last command.
185  exit
186}
187
188
189case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190  *c*,-n*) ECHO_N= ECHO_C='
191' ECHO_T='	' ;;
192  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194esac
195
196if expr a : '\(a\)' >/dev/null 2>&1; then
197  as_expr=expr
198else
199  as_expr=false
200fi
201
202rm -f conf$$ conf$$.exe conf$$.file
203echo >conf$$.file
204if ln -s conf$$.file conf$$ 2>/dev/null; then
205  # We could just check for DJGPP; but this test a) works b) is more generic
206  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207  if test -f conf$$.exe; then
208    # Don't use ln at all; we don't have any links
209    as_ln_s='cp -p'
210  else
211    as_ln_s='ln -s'
212  fi
213elif ln conf$$.file conf$$ 2>/dev/null; then
214  as_ln_s=ln
215else
216  as_ln_s='cp -p'
217fi
218rm -f conf$$ conf$$.exe conf$$.file
219
220if mkdir -p . 2>/dev/null; then
221  as_mkdir_p=:
222else
223  test -d ./-p && rmdir ./-p
224  as_mkdir_p=false
225fi
226
227as_executable_p="test -f"
228
229# Sed expression to map a string onto a valid CPP name.
230as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232# Sed expression to map a string onto a valid variable name.
233as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236# IFS
237# We need space, tab and new line, in precisely that order.
238as_nl='
239'
240IFS=" 	$as_nl"
241
242# CDPATH.
243$as_unset CDPATH
244
245
246
247# Check that we are running under the correct shell.
248SHELL=${CONFIG_SHELL-/bin/sh}
249
250case X$ECHO in
251X*--fallback-echo)
252  # Remove one level of quotation (which was required for Make).
253  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
254  ;;
255esac
256
257echo=${ECHO-echo}
258if test "X$1" = X--no-reexec; then
259  # Discard the --no-reexec flag, and continue.
260  shift
261elif test "X$1" = X--fallback-echo; then
262  # Avoid inline document here, it may be left over
263  :
264elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265  # Yippee, $echo works!
266  :
267else
268  # Restart under the correct shell.
269  exec $SHELL "$0" --no-reexec ${1+"$@"}
270fi
271
272if test "X$1" = X--fallback-echo; then
273  # used as fallback echo
274  shift
275  cat <<EOF
276$*
277EOF
278  exit 0
279fi
280
281# The HP-UX ksh and POSIX shell print the target directory to stdout
282# if CDPATH is set.
283(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
284
285if test -z "$ECHO"; then
286if test "X${echo_test_string+set}" != Xset; then
287# find a string as large as possible, as long as the shell can cope with it
288  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
291       echo_test_string=`eval $cmd` &&
292       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
293    then
294      break
295    fi
296  done
297fi
298
299if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301   test "X$echo_testing_string" = "X$echo_test_string"; then
302  :
303else
304  # The Solaris, AIX, and Digital Unix default echo programs unquote
305  # backslashes.  This makes it impossible to quote backslashes using
306  #   echo "$something" | sed 's/\\/\\\\/g'
307  #
308  # So, first we look for a working echo in the user's PATH.
309
310  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
311  for dir in $PATH /usr/ucb; do
312    IFS="$lt_save_ifs"
313    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316       test "X$echo_testing_string" = "X$echo_test_string"; then
317      echo="$dir/echo"
318      break
319    fi
320  done
321  IFS="$lt_save_ifs"
322
323  if test "X$echo" = Xecho; then
324    # We didn't find a better echo, so look for alternatives.
325    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327       test "X$echo_testing_string" = "X$echo_test_string"; then
328      # This shell has a builtin print -r that does the trick.
329      echo='print -r'
330    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331	 test "X$CONFIG_SHELL" != X/bin/ksh; then
332      # If we have ksh, try running configure again with it.
333      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334      export ORIGINAL_CONFIG_SHELL
335      CONFIG_SHELL=/bin/ksh
336      export CONFIG_SHELL
337      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
338    else
339      # Try using printf.
340      echo='printf %s\n'
341      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343	 test "X$echo_testing_string" = "X$echo_test_string"; then
344	# Cool, printf works
345	:
346      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347	   test "X$echo_testing_string" = 'X\t' &&
348	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349	   test "X$echo_testing_string" = "X$echo_test_string"; then
350	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
351	export CONFIG_SHELL
352	SHELL="$CONFIG_SHELL"
353	export SHELL
354	echo="$CONFIG_SHELL $0 --fallback-echo"
355      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356	   test "X$echo_testing_string" = 'X\t' &&
357	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358	   test "X$echo_testing_string" = "X$echo_test_string"; then
359	echo="$CONFIG_SHELL $0 --fallback-echo"
360      else
361	# maybe with a smaller string...
362	prev=:
363
364	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
366	  then
367	    break
368	  fi
369	  prev="$cmd"
370	done
371
372	if test "$prev" != 'sed 50q "$0"'; then
373	  echo_test_string=`eval $prev`
374	  export echo_test_string
375	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
376	else
377	  # Oops.  We lost completely, so just stick with echo.
378	  echo=echo
379	fi
380      fi
381    fi
382  fi
383fi
384fi
385
386# Copy echo and quote the copy suitably for passing to libtool from
387# the Makefile, instead of quoting the original, which is used later.
388ECHO=$echo
389if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
391fi
392
393
394
395
396tagnames=${tagnames+${tagnames},}CXX
397
398tagnames=${tagnames+${tagnames},}F77
399
400# Name of the host.
401# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402# so uname gets run too.
403ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
404
405exec 6>&1
406
407#
408# Initializations.
409#
410ac_default_prefix=/usr/local
411ac_config_libobj_dir=.
412cross_compiling=no
413subdirs=
414MFLAGS=
415MAKEFLAGS=
416SHELL=${CONFIG_SHELL-/bin/sh}
417
418# Maximum number of lines to put in a shell here document.
419# This variable seems obsolete.  It should probably be removed, and
420# only ac_max_sed_lines should be used.
421: ${ac_max_here_lines=38}
422
423# Identity of this package.
424PACKAGE_NAME='libXdmcp'
425PACKAGE_TARNAME='libXdmcp'
426PACKAGE_VERSION='1.0.2'
427PACKAGE_STRING='libXdmcp 1.0.2'
428PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
429
430# Factoring default headers for most tests.
431ac_includes_default="\
432#include <stdio.h>
433#if HAVE_SYS_TYPES_H
434# include <sys/types.h>
435#endif
436#if HAVE_SYS_STAT_H
437# include <sys/stat.h>
438#endif
439#if STDC_HEADERS
440# include <stdlib.h>
441# include <stddef.h>
442#else
443# if HAVE_STDLIB_H
444#  include <stdlib.h>
445# endif
446#endif
447#if HAVE_STRING_H
448# if !STDC_HEADERS && HAVE_MEMORY_H
449#  include <memory.h>
450# endif
451# include <string.h>
452#endif
453#if HAVE_STRINGS_H
454# include <strings.h>
455#endif
456#if HAVE_INTTYPES_H
457# include <inttypes.h>
458#else
459# if HAVE_STDINT_H
460#  include <stdint.h>
461# endif
462#endif
463#if HAVE_UNISTD_H
464# include <unistd.h>
465#endif"
466
467ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE LN_S build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL PKG_CONFIG ac_pt_PKG_CONFIG XDMCP_CFLAGS XDMCP_LIBS HASXDMAUTH_TRUE HASXDMAUTH_FALSE LINT LINT_FLAGS LINT_TRUE LINT_FALSE LINTLIB MAKE_LINT_LIB_TRUE MAKE_LINT_LIB_FALSE LIBOBJS LTLIBOBJS'
468ac_subst_files=''
469
470# Initialize some variables set by options.
471ac_init_help=
472ac_init_version=false
473# The variables have the same names as the options, with
474# dashes changed to underlines.
475cache_file=/dev/null
476exec_prefix=NONE
477no_create=
478no_recursion=
479prefix=NONE
480program_prefix=NONE
481program_suffix=NONE
482program_transform_name=s,x,x,
483silent=
484site=
485srcdir=
486verbose=
487x_includes=NONE
488x_libraries=NONE
489
490# Installation directory options.
491# These are left unexpanded so users can "make install exec_prefix=/foo"
492# and all the variables that are supposed to be based on exec_prefix
493# by default will actually change.
494# Use braces instead of parens because sh, perl, etc. also accept them.
495bindir='${exec_prefix}/bin'
496sbindir='${exec_prefix}/sbin'
497libexecdir='${exec_prefix}/libexec'
498datadir='${prefix}/share'
499sysconfdir='${prefix}/etc'
500sharedstatedir='${prefix}/com'
501localstatedir='${prefix}/var'
502libdir='${exec_prefix}/lib'
503includedir='${prefix}/include'
504oldincludedir='/usr/include'
505infodir='${prefix}/info'
506mandir='${prefix}/man'
507
508ac_prev=
509for ac_option
510do
511  # If the previous option needs an argument, assign it.
512  if test -n "$ac_prev"; then
513    eval "$ac_prev=\$ac_option"
514    ac_prev=
515    continue
516  fi
517
518  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
519
520  # Accept the important Cygnus configure options, so we can diagnose typos.
521
522  case $ac_option in
523
524  -bindir | --bindir | --bindi | --bind | --bin | --bi)
525    ac_prev=bindir ;;
526  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
527    bindir=$ac_optarg ;;
528
529  -build | --build | --buil | --bui | --bu)
530    ac_prev=build_alias ;;
531  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
532    build_alias=$ac_optarg ;;
533
534  -cache-file | --cache-file | --cache-fil | --cache-fi \
535  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
536    ac_prev=cache_file ;;
537  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
538  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
539    cache_file=$ac_optarg ;;
540
541  --config-cache | -C)
542    cache_file=config.cache ;;
543
544  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
545    ac_prev=datadir ;;
546  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
547  | --da=*)
548    datadir=$ac_optarg ;;
549
550  -disable-* | --disable-*)
551    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
552    # Reject names that are not valid shell variable names.
553    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
555   { (exit 1); exit 1; }; }
556    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
557    eval "enable_$ac_feature=no" ;;
558
559  -enable-* | --enable-*)
560    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
561    # Reject names that are not valid shell variable names.
562    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
563      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
564   { (exit 1); exit 1; }; }
565    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
566    case $ac_option in
567      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
568      *) ac_optarg=yes ;;
569    esac
570    eval "enable_$ac_feature='$ac_optarg'" ;;
571
572  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
573  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
574  | --exec | --exe | --ex)
575    ac_prev=exec_prefix ;;
576  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
577  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
578  | --exec=* | --exe=* | --ex=*)
579    exec_prefix=$ac_optarg ;;
580
581  -gas | --gas | --ga | --g)
582    # Obsolete; use --with-gas.
583    with_gas=yes ;;
584
585  -help | --help | --hel | --he | -h)
586    ac_init_help=long ;;
587  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
588    ac_init_help=recursive ;;
589  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
590    ac_init_help=short ;;
591
592  -host | --host | --hos | --ho)
593    ac_prev=host_alias ;;
594  -host=* | --host=* | --hos=* | --ho=*)
595    host_alias=$ac_optarg ;;
596
597  -includedir | --includedir | --includedi | --included | --include \
598  | --includ | --inclu | --incl | --inc)
599    ac_prev=includedir ;;
600  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
601  | --includ=* | --inclu=* | --incl=* | --inc=*)
602    includedir=$ac_optarg ;;
603
604  -infodir | --infodir | --infodi | --infod | --info | --inf)
605    ac_prev=infodir ;;
606  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
607    infodir=$ac_optarg ;;
608
609  -libdir | --libdir | --libdi | --libd)
610    ac_prev=libdir ;;
611  -libdir=* | --libdir=* | --libdi=* | --libd=*)
612    libdir=$ac_optarg ;;
613
614  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
615  | --libexe | --libex | --libe)
616    ac_prev=libexecdir ;;
617  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
618  | --libexe=* | --libex=* | --libe=*)
619    libexecdir=$ac_optarg ;;
620
621  -localstatedir | --localstatedir | --localstatedi | --localstated \
622  | --localstate | --localstat | --localsta | --localst \
623  | --locals | --local | --loca | --loc | --lo)
624    ac_prev=localstatedir ;;
625  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
626  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
627  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
628    localstatedir=$ac_optarg ;;
629
630  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
631    ac_prev=mandir ;;
632  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
633    mandir=$ac_optarg ;;
634
635  -nfp | --nfp | --nf)
636    # Obsolete; use --without-fp.
637    with_fp=no ;;
638
639  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
640  | --no-cr | --no-c | -n)
641    no_create=yes ;;
642
643  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
644  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
645    no_recursion=yes ;;
646
647  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
648  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
649  | --oldin | --oldi | --old | --ol | --o)
650    ac_prev=oldincludedir ;;
651  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
652  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
653  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
654    oldincludedir=$ac_optarg ;;
655
656  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
657    ac_prev=prefix ;;
658  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
659    prefix=$ac_optarg ;;
660
661  -program-prefix | --program-prefix | --program-prefi | --program-pref \
662  | --program-pre | --program-pr | --program-p)
663    ac_prev=program_prefix ;;
664  -program-prefix=* | --program-prefix=* | --program-prefi=* \
665  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
666    program_prefix=$ac_optarg ;;
667
668  -program-suffix | --program-suffix | --program-suffi | --program-suff \
669  | --program-suf | --program-su | --program-s)
670    ac_prev=program_suffix ;;
671  -program-suffix=* | --program-suffix=* | --program-suffi=* \
672  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
673    program_suffix=$ac_optarg ;;
674
675  -program-transform-name | --program-transform-name \
676  | --program-transform-nam | --program-transform-na \
677  | --program-transform-n | --program-transform- \
678  | --program-transform | --program-transfor \
679  | --program-transfo | --program-transf \
680  | --program-trans | --program-tran \
681  | --progr-tra | --program-tr | --program-t)
682    ac_prev=program_transform_name ;;
683  -program-transform-name=* | --program-transform-name=* \
684  | --program-transform-nam=* | --program-transform-na=* \
685  | --program-transform-n=* | --program-transform-=* \
686  | --program-transform=* | --program-transfor=* \
687  | --program-transfo=* | --program-transf=* \
688  | --program-trans=* | --program-tran=* \
689  | --progr-tra=* | --program-tr=* | --program-t=*)
690    program_transform_name=$ac_optarg ;;
691
692  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
693  | -silent | --silent | --silen | --sile | --sil)
694    silent=yes ;;
695
696  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
697    ac_prev=sbindir ;;
698  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
699  | --sbi=* | --sb=*)
700    sbindir=$ac_optarg ;;
701
702  -sharedstatedir | --sharedstatedir | --sharedstatedi \
703  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
704  | --sharedst | --shareds | --shared | --share | --shar \
705  | --sha | --sh)
706    ac_prev=sharedstatedir ;;
707  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
708  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
709  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
710  | --sha=* | --sh=*)
711    sharedstatedir=$ac_optarg ;;
712
713  -site | --site | --sit)
714    ac_prev=site ;;
715  -site=* | --site=* | --sit=*)
716    site=$ac_optarg ;;
717
718  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
719    ac_prev=srcdir ;;
720  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
721    srcdir=$ac_optarg ;;
722
723  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
724  | --syscon | --sysco | --sysc | --sys | --sy)
725    ac_prev=sysconfdir ;;
726  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
727  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
728    sysconfdir=$ac_optarg ;;
729
730  -target | --target | --targe | --targ | --tar | --ta | --t)
731    ac_prev=target_alias ;;
732  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
733    target_alias=$ac_optarg ;;
734
735  -v | -verbose | --verbose | --verbos | --verbo | --verb)
736    verbose=yes ;;
737
738  -version | --version | --versio | --versi | --vers | -V)
739    ac_init_version=: ;;
740
741  -with-* | --with-*)
742    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
743    # Reject names that are not valid shell variable names.
744    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
745      { echo "$as_me: error: invalid package name: $ac_package" >&2
746   { (exit 1); exit 1; }; }
747    ac_package=`echo $ac_package| sed 's/-/_/g'`
748    case $ac_option in
749      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
750      *) ac_optarg=yes ;;
751    esac
752    eval "with_$ac_package='$ac_optarg'" ;;
753
754  -without-* | --without-*)
755    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
756    # Reject names that are not valid shell variable names.
757    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
758      { echo "$as_me: error: invalid package name: $ac_package" >&2
759   { (exit 1); exit 1; }; }
760    ac_package=`echo $ac_package | sed 's/-/_/g'`
761    eval "with_$ac_package=no" ;;
762
763  --x)
764    # Obsolete; use --with-x.
765    with_x=yes ;;
766
767  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
768  | --x-incl | --x-inc | --x-in | --x-i)
769    ac_prev=x_includes ;;
770  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
771  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
772    x_includes=$ac_optarg ;;
773
774  -x-libraries | --x-libraries | --x-librarie | --x-librari \
775  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
776    ac_prev=x_libraries ;;
777  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
778  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
779    x_libraries=$ac_optarg ;;
780
781  -*) { echo "$as_me: error: unrecognized option: $ac_option
782Try \`$0 --help' for more information." >&2
783   { (exit 1); exit 1; }; }
784    ;;
785
786  *=*)
787    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
788    # Reject names that are not valid shell variable names.
789    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
790      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
791   { (exit 1); exit 1; }; }
792    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
793    eval "$ac_envvar='$ac_optarg'"
794    export $ac_envvar ;;
795
796  *)
797    # FIXME: should be removed in autoconf 3.0.
798    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
799    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
800      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
801    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
802    ;;
803
804  esac
805done
806
807if test -n "$ac_prev"; then
808  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
809  { echo "$as_me: error: missing argument to $ac_option" >&2
810   { (exit 1); exit 1; }; }
811fi
812
813# Be sure to have absolute paths.
814for ac_var in exec_prefix prefix
815do
816  eval ac_val=$`echo $ac_var`
817  case $ac_val in
818    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
819    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
820   { (exit 1); exit 1; }; };;
821  esac
822done
823
824# Be sure to have absolute paths.
825for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
826	      localstatedir libdir includedir oldincludedir infodir mandir
827do
828  eval ac_val=$`echo $ac_var`
829  case $ac_val in
830    [\\/$]* | ?:[\\/]* ) ;;
831    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832   { (exit 1); exit 1; }; };;
833  esac
834done
835
836# There might be people who depend on the old broken behavior: `$host'
837# used to hold the argument of --host etc.
838# FIXME: To remove some day.
839build=$build_alias
840host=$host_alias
841target=$target_alias
842
843# FIXME: To remove some day.
844if test "x$host_alias" != x; then
845  if test "x$build_alias" = x; then
846    cross_compiling=maybe
847    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
848    If a cross compiler is detected then cross compile mode will be used." >&2
849  elif test "x$build_alias" != "x$host_alias"; then
850    cross_compiling=yes
851  fi
852fi
853
854ac_tool_prefix=
855test -n "$host_alias" && ac_tool_prefix=$host_alias-
856
857test "$silent" = yes && exec 6>/dev/null
858
859
860# Find the source files, if location was not specified.
861if test -z "$srcdir"; then
862  ac_srcdir_defaulted=yes
863  # Try the directory containing this script, then its parent.
864  ac_confdir=`(dirname "$0") 2>/dev/null ||
865$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
866	 X"$0" : 'X\(//\)[^/]' \| \
867	 X"$0" : 'X\(//\)$' \| \
868	 X"$0" : 'X\(/\)' \| \
869	 .     : '\(.\)' 2>/dev/null ||
870echo X"$0" |
871    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
872  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
873  	  /^X\(\/\/\)$/{ s//\1/; q; }
874  	  /^X\(\/\).*/{ s//\1/; q; }
875  	  s/.*/./; q'`
876  srcdir=$ac_confdir
877  if test ! -r $srcdir/$ac_unique_file; then
878    srcdir=..
879  fi
880else
881  ac_srcdir_defaulted=no
882fi
883if test ! -r $srcdir/$ac_unique_file; then
884  if test "$ac_srcdir_defaulted" = yes; then
885    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
886   { (exit 1); exit 1; }; }
887  else
888    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
889   { (exit 1); exit 1; }; }
890  fi
891fi
892(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
893  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
894   { (exit 1); exit 1; }; }
895srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
896ac_env_build_alias_set=${build_alias+set}
897ac_env_build_alias_value=$build_alias
898ac_cv_env_build_alias_set=${build_alias+set}
899ac_cv_env_build_alias_value=$build_alias
900ac_env_host_alias_set=${host_alias+set}
901ac_env_host_alias_value=$host_alias
902ac_cv_env_host_alias_set=${host_alias+set}
903ac_cv_env_host_alias_value=$host_alias
904ac_env_target_alias_set=${target_alias+set}
905ac_env_target_alias_value=$target_alias
906ac_cv_env_target_alias_set=${target_alias+set}
907ac_cv_env_target_alias_value=$target_alias
908ac_env_CC_set=${CC+set}
909ac_env_CC_value=$CC
910ac_cv_env_CC_set=${CC+set}
911ac_cv_env_CC_value=$CC
912ac_env_CFLAGS_set=${CFLAGS+set}
913ac_env_CFLAGS_value=$CFLAGS
914ac_cv_env_CFLAGS_set=${CFLAGS+set}
915ac_cv_env_CFLAGS_value=$CFLAGS
916ac_env_LDFLAGS_set=${LDFLAGS+set}
917ac_env_LDFLAGS_value=$LDFLAGS
918ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
919ac_cv_env_LDFLAGS_value=$LDFLAGS
920ac_env_CPPFLAGS_set=${CPPFLAGS+set}
921ac_env_CPPFLAGS_value=$CPPFLAGS
922ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
923ac_cv_env_CPPFLAGS_value=$CPPFLAGS
924ac_env_CPP_set=${CPP+set}
925ac_env_CPP_value=$CPP
926ac_cv_env_CPP_set=${CPP+set}
927ac_cv_env_CPP_value=$CPP
928ac_env_CXX_set=${CXX+set}
929ac_env_CXX_value=$CXX
930ac_cv_env_CXX_set=${CXX+set}
931ac_cv_env_CXX_value=$CXX
932ac_env_CXXFLAGS_set=${CXXFLAGS+set}
933ac_env_CXXFLAGS_value=$CXXFLAGS
934ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
935ac_cv_env_CXXFLAGS_value=$CXXFLAGS
936ac_env_CXXCPP_set=${CXXCPP+set}
937ac_env_CXXCPP_value=$CXXCPP
938ac_cv_env_CXXCPP_set=${CXXCPP+set}
939ac_cv_env_CXXCPP_value=$CXXCPP
940ac_env_F77_set=${F77+set}
941ac_env_F77_value=$F77
942ac_cv_env_F77_set=${F77+set}
943ac_cv_env_F77_value=$F77
944ac_env_FFLAGS_set=${FFLAGS+set}
945ac_env_FFLAGS_value=$FFLAGS
946ac_cv_env_FFLAGS_set=${FFLAGS+set}
947ac_cv_env_FFLAGS_value=$FFLAGS
948ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
949ac_env_PKG_CONFIG_value=$PKG_CONFIG
950ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
951ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
952ac_env_XDMCP_CFLAGS_set=${XDMCP_CFLAGS+set}
953ac_env_XDMCP_CFLAGS_value=$XDMCP_CFLAGS
954ac_cv_env_XDMCP_CFLAGS_set=${XDMCP_CFLAGS+set}
955ac_cv_env_XDMCP_CFLAGS_value=$XDMCP_CFLAGS
956ac_env_XDMCP_LIBS_set=${XDMCP_LIBS+set}
957ac_env_XDMCP_LIBS_value=$XDMCP_LIBS
958ac_cv_env_XDMCP_LIBS_set=${XDMCP_LIBS+set}
959ac_cv_env_XDMCP_LIBS_value=$XDMCP_LIBS
960
961#
962# Report the --help message.
963#
964if test "$ac_init_help" = "long"; then
965  # Omit some internal or obsolete options to make the list less imposing.
966  # This message is too long to be a string in the A/UX 3.1 sh.
967  cat <<_ACEOF
968\`configure' configures libXdmcp 1.0.2 to adapt to many kinds of systems.
969
970Usage: $0 [OPTION]... [VAR=VALUE]...
971
972To assign environment variables (e.g., CC, CFLAGS...), specify them as
973VAR=VALUE.  See below for descriptions of some of the useful variables.
974
975Defaults for the options are specified in brackets.
976
977Configuration:
978  -h, --help              display this help and exit
979      --help=short        display options specific to this package
980      --help=recursive    display the short help of all the included packages
981  -V, --version           display version information and exit
982  -q, --quiet, --silent   do not print \`checking...' messages
983      --cache-file=FILE   cache test results in FILE [disabled]
984  -C, --config-cache      alias for \`--cache-file=config.cache'
985  -n, --no-create         do not create output files
986      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
987
988_ACEOF
989
990  cat <<_ACEOF
991Installation directories:
992  --prefix=PREFIX         install architecture-independent files in PREFIX
993			  [$ac_default_prefix]
994  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
995			  [PREFIX]
996
997By default, \`make install' will install all the files in
998\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
999an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1000for instance \`--prefix=\$HOME'.
1001
1002For better control, use the options below.
1003
1004Fine tuning of the installation directories:
1005  --bindir=DIR           user executables [EPREFIX/bin]
1006  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1007  --libexecdir=DIR       program executables [EPREFIX/libexec]
1008  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1009  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1010  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1011  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1012  --libdir=DIR           object code libraries [EPREFIX/lib]
1013  --includedir=DIR       C header files [PREFIX/include]
1014  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1015  --infodir=DIR          info documentation [PREFIX/info]
1016  --mandir=DIR           man documentation [PREFIX/man]
1017_ACEOF
1018
1019  cat <<\_ACEOF
1020
1021Program names:
1022  --program-prefix=PREFIX            prepend PREFIX to installed program names
1023  --program-suffix=SUFFIX            append SUFFIX to installed program names
1024  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1025
1026System types:
1027  --build=BUILD     configure for building on BUILD [guessed]
1028  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1029_ACEOF
1030fi
1031
1032if test -n "$ac_init_help"; then
1033  case $ac_init_help in
1034     short | recursive ) echo "Configuration of libXdmcp 1.0.2:";;
1035   esac
1036  cat <<\_ACEOF
1037
1038Optional Features:
1039  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1040  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1041  --enable-maintainer-mode  enable make rules and dependencies not useful
1042			  (and sometimes confusing) to the casual installer
1043  --disable-dependency-tracking  speeds up one-time build
1044  --enable-dependency-tracking   do not reject slow dependency extractors
1045  --enable-shared[=PKGS]
1046                          build shared libraries [default=yes]
1047  --enable-static[=PKGS]
1048                          build static libraries [default=yes]
1049  --enable-fast-install[=PKGS]
1050                          optimize for fast installation [default=yes]
1051  --disable-libtool-lock  avoid locking (might break parallel builds)
1052  --enable-lint-library   Create lint library (default: disabled)
1053
1054Optional Packages:
1055  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1056  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1057  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1058  --with-pic              try to use only PIC/non-PIC objects [default=use
1059                          both]
1060  --with-tags[=TAGS]
1061                          include additional configurations [automatic]
1062  --with-lint             Use a lint-style source code checker (default:
1063                          disabled)
1064  --with-release-version=STRING
1065                          Use release version string in package name
1066
1067Some influential environment variables:
1068  CC          C compiler command
1069  CFLAGS      C compiler flags
1070  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1071              nonstandard directory <lib dir>
1072  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1073              headers in a nonstandard directory <include dir>
1074  CPP         C preprocessor
1075  CXX         C++ compiler command
1076  CXXFLAGS    C++ compiler flags
1077  CXXCPP      C++ preprocessor
1078  F77         Fortran 77 compiler command
1079  FFLAGS      Fortran 77 compiler flags
1080  PKG_CONFIG  path to pkg-config utility
1081  XDMCP_CFLAGS
1082              C compiler flags for XDMCP, overriding pkg-config
1083  XDMCP_LIBS  linker flags for XDMCP, overriding pkg-config
1084
1085Use these variables to override the choices made by `configure' or to help
1086it to find libraries and programs with nonstandard names/locations.
1087
1088Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1089_ACEOF
1090fi
1091
1092if test "$ac_init_help" = "recursive"; then
1093  # If there are subdirs, report their specific --help.
1094  ac_popdir=`pwd`
1095  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1096    test -d $ac_dir || continue
1097    ac_builddir=.
1098
1099if test "$ac_dir" != .; then
1100  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1101  # A "../" for each directory in $ac_dir_suffix.
1102  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1103else
1104  ac_dir_suffix= ac_top_builddir=
1105fi
1106
1107case $srcdir in
1108  .)  # No --srcdir option.  We are building in place.
1109    ac_srcdir=.
1110    if test -z "$ac_top_builddir"; then
1111       ac_top_srcdir=.
1112    else
1113       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1114    fi ;;
1115  [\\/]* | ?:[\\/]* )  # Absolute path.
1116    ac_srcdir=$srcdir$ac_dir_suffix;
1117    ac_top_srcdir=$srcdir ;;
1118  *) # Relative path.
1119    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1120    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1121esac
1122
1123# Do not use `cd foo && pwd` to compute absolute paths, because
1124# the directories may not exist.
1125case `pwd` in
1126.) ac_abs_builddir="$ac_dir";;
1127*)
1128  case "$ac_dir" in
1129  .) ac_abs_builddir=`pwd`;;
1130  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1131  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1132  esac;;
1133esac
1134case $ac_abs_builddir in
1135.) ac_abs_top_builddir=${ac_top_builddir}.;;
1136*)
1137  case ${ac_top_builddir}. in
1138  .) ac_abs_top_builddir=$ac_abs_builddir;;
1139  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1140  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1141  esac;;
1142esac
1143case $ac_abs_builddir in
1144.) ac_abs_srcdir=$ac_srcdir;;
1145*)
1146  case $ac_srcdir in
1147  .) ac_abs_srcdir=$ac_abs_builddir;;
1148  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1149  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1150  esac;;
1151esac
1152case $ac_abs_builddir in
1153.) ac_abs_top_srcdir=$ac_top_srcdir;;
1154*)
1155  case $ac_top_srcdir in
1156  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1157  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1158  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1159  esac;;
1160esac
1161
1162    cd $ac_dir
1163    # Check for guested configure; otherwise get Cygnus style configure.
1164    if test -f $ac_srcdir/configure.gnu; then
1165      echo
1166      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1167    elif test -f $ac_srcdir/configure; then
1168      echo
1169      $SHELL $ac_srcdir/configure  --help=recursive
1170    elif test -f $ac_srcdir/configure.ac ||
1171	   test -f $ac_srcdir/configure.in; then
1172      echo
1173      $ac_configure --help
1174    else
1175      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1176    fi
1177    cd $ac_popdir
1178  done
1179fi
1180
1181test -n "$ac_init_help" && exit 0
1182if $ac_init_version; then
1183  cat <<\_ACEOF
1184libXdmcp configure 1.0.2
1185generated by GNU Autoconf 2.59
1186
1187Copyright (C) 2003 Free Software Foundation, Inc.
1188This configure script is free software; the Free Software Foundation
1189gives unlimited permission to copy, distribute and modify it.
1190_ACEOF
1191  exit 0
1192fi
1193exec 5>config.log
1194cat >&5 <<_ACEOF
1195This file contains any messages produced by compilers while
1196running configure, to aid debugging if configure makes a mistake.
1197
1198It was created by libXdmcp $as_me 1.0.2, which was
1199generated by GNU Autoconf 2.59.  Invocation command line was
1200
1201  $ $0 $@
1202
1203_ACEOF
1204{
1205cat <<_ASUNAME
1206## --------- ##
1207## Platform. ##
1208## --------- ##
1209
1210hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1211uname -m = `(uname -m) 2>/dev/null || echo unknown`
1212uname -r = `(uname -r) 2>/dev/null || echo unknown`
1213uname -s = `(uname -s) 2>/dev/null || echo unknown`
1214uname -v = `(uname -v) 2>/dev/null || echo unknown`
1215
1216/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1217/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1218
1219/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1220/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1221/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1222hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1223/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1224/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1225/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1226
1227_ASUNAME
1228
1229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1230for as_dir in $PATH
1231do
1232  IFS=$as_save_IFS
1233  test -z "$as_dir" && as_dir=.
1234  echo "PATH: $as_dir"
1235done
1236
1237} >&5
1238
1239cat >&5 <<_ACEOF
1240
1241
1242## ----------- ##
1243## Core tests. ##
1244## ----------- ##
1245
1246_ACEOF
1247
1248
1249# Keep a trace of the command line.
1250# Strip out --no-create and --no-recursion so they do not pile up.
1251# Strip out --silent because we don't want to record it for future runs.
1252# Also quote any args containing shell meta-characters.
1253# Make two passes to allow for proper duplicate-argument suppression.
1254ac_configure_args=
1255ac_configure_args0=
1256ac_configure_args1=
1257ac_sep=
1258ac_must_keep_next=false
1259for ac_pass in 1 2
1260do
1261  for ac_arg
1262  do
1263    case $ac_arg in
1264    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1265    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1266    | -silent | --silent | --silen | --sile | --sil)
1267      continue ;;
1268    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1269      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1270    esac
1271    case $ac_pass in
1272    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1273    2)
1274      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1275      if test $ac_must_keep_next = true; then
1276	ac_must_keep_next=false # Got value, back to normal.
1277      else
1278	case $ac_arg in
1279	  *=* | --config-cache | -C | -disable-* | --disable-* \
1280	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1281	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1282	  | -with-* | --with-* | -without-* | --without-* | --x)
1283	    case "$ac_configure_args0 " in
1284	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1285	    esac
1286	    ;;
1287	  -* ) ac_must_keep_next=true ;;
1288	esac
1289      fi
1290      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1291      # Get rid of the leading space.
1292      ac_sep=" "
1293      ;;
1294    esac
1295  done
1296done
1297$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1298$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1299
1300# When interrupted or exit'd, cleanup temporary files, and complete
1301# config.log.  We remove comments because anyway the quotes in there
1302# would cause problems or look ugly.
1303# WARNING: Be sure not to use single quotes in there, as some shells,
1304# such as our DU 5.0 friend, will then `close' the trap.
1305trap 'exit_status=$?
1306  # Save into config.log some information that might help in debugging.
1307  {
1308    echo
1309
1310    cat <<\_ASBOX
1311## ---------------- ##
1312## Cache variables. ##
1313## ---------------- ##
1314_ASBOX
1315    echo
1316    # The following way of writing the cache mishandles newlines in values,
1317{
1318  (set) 2>&1 |
1319    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1320    *ac_space=\ *)
1321      sed -n \
1322	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1323	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1324      ;;
1325    *)
1326      sed -n \
1327	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1328      ;;
1329    esac;
1330}
1331    echo
1332
1333    cat <<\_ASBOX
1334## ----------------- ##
1335## Output variables. ##
1336## ----------------- ##
1337_ASBOX
1338    echo
1339    for ac_var in $ac_subst_vars
1340    do
1341      eval ac_val=$`echo $ac_var`
1342      echo "$ac_var='"'"'$ac_val'"'"'"
1343    done | sort
1344    echo
1345
1346    if test -n "$ac_subst_files"; then
1347      cat <<\_ASBOX
1348## ------------- ##
1349## Output files. ##
1350## ------------- ##
1351_ASBOX
1352      echo
1353      for ac_var in $ac_subst_files
1354      do
1355	eval ac_val=$`echo $ac_var`
1356	echo "$ac_var='"'"'$ac_val'"'"'"
1357      done | sort
1358      echo
1359    fi
1360
1361    if test -s confdefs.h; then
1362      cat <<\_ASBOX
1363## ----------- ##
1364## confdefs.h. ##
1365## ----------- ##
1366_ASBOX
1367      echo
1368      sed "/^$/d" confdefs.h | sort
1369      echo
1370    fi
1371    test "$ac_signal" != 0 &&
1372      echo "$as_me: caught signal $ac_signal"
1373    echo "$as_me: exit $exit_status"
1374  } >&5
1375  rm -f core *.core &&
1376  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1377    exit $exit_status
1378     ' 0
1379for ac_signal in 1 2 13 15; do
1380  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1381done
1382ac_signal=0
1383
1384# confdefs.h avoids OS command line length limits that DEFS can exceed.
1385rm -rf conftest* confdefs.h
1386# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1387echo >confdefs.h
1388
1389# Predefined preprocessor variables.
1390
1391cat >>confdefs.h <<_ACEOF
1392#define PACKAGE_NAME "$PACKAGE_NAME"
1393_ACEOF
1394
1395
1396cat >>confdefs.h <<_ACEOF
1397#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1398_ACEOF
1399
1400
1401cat >>confdefs.h <<_ACEOF
1402#define PACKAGE_VERSION "$PACKAGE_VERSION"
1403_ACEOF
1404
1405
1406cat >>confdefs.h <<_ACEOF
1407#define PACKAGE_STRING "$PACKAGE_STRING"
1408_ACEOF
1409
1410
1411cat >>confdefs.h <<_ACEOF
1412#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1413_ACEOF
1414
1415
1416# Let the site file select an alternate cache file if it wants to.
1417# Prefer explicitly selected file to automatically selected ones.
1418if test -z "$CONFIG_SITE"; then
1419  if test "x$prefix" != xNONE; then
1420    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1421  else
1422    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1423  fi
1424fi
1425for ac_site_file in $CONFIG_SITE; do
1426  if test -r "$ac_site_file"; then
1427    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1428echo "$as_me: loading site script $ac_site_file" >&6;}
1429    sed 's/^/| /' "$ac_site_file" >&5
1430    . "$ac_site_file"
1431  fi
1432done
1433
1434if test -r "$cache_file"; then
1435  # Some versions of bash will fail to source /dev/null (special
1436  # files actually), so we avoid doing that.
1437  if test -f "$cache_file"; then
1438    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1439echo "$as_me: loading cache $cache_file" >&6;}
1440    case $cache_file in
1441      [\\/]* | ?:[\\/]* ) . $cache_file;;
1442      *)                      . ./$cache_file;;
1443    esac
1444  fi
1445else
1446  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1447echo "$as_me: creating cache $cache_file" >&6;}
1448  >$cache_file
1449fi
1450
1451# Check that the precious variables saved in the cache have kept the same
1452# value.
1453ac_cache_corrupted=false
1454for ac_var in `(set) 2>&1 |
1455	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1456  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1457  eval ac_new_set=\$ac_env_${ac_var}_set
1458  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1459  eval ac_new_val="\$ac_env_${ac_var}_value"
1460  case $ac_old_set,$ac_new_set in
1461    set,)
1462      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1463echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1464      ac_cache_corrupted=: ;;
1465    ,set)
1466      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1467echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1468      ac_cache_corrupted=: ;;
1469    ,);;
1470    *)
1471      if test "x$ac_old_val" != "x$ac_new_val"; then
1472	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1473echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1474	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1475echo "$as_me:   former value:  $ac_old_val" >&2;}
1476	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1477echo "$as_me:   current value: $ac_new_val" >&2;}
1478	ac_cache_corrupted=:
1479      fi;;
1480  esac
1481  # Pass precious variables to config.status.
1482  if test "$ac_new_set" = set; then
1483    case $ac_new_val in
1484    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1485      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1486    *) ac_arg=$ac_var=$ac_new_val ;;
1487    esac
1488    case " $ac_configure_args " in
1489      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1490      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1491    esac
1492  fi
1493done
1494if $ac_cache_corrupted; then
1495  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1496echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1497  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1498echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1499   { (exit 1); exit 1; }; }
1500fi
1501
1502ac_ext=c
1503ac_cpp='$CPP $CPPFLAGS'
1504ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1505ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1506ac_compiler_gnu=$ac_cv_c_compiler_gnu
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534am__api_version="1.9"
1535ac_aux_dir=
1536for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1537  if test -f $ac_dir/install-sh; then
1538    ac_aux_dir=$ac_dir
1539    ac_install_sh="$ac_aux_dir/install-sh -c"
1540    break
1541  elif test -f $ac_dir/install.sh; then
1542    ac_aux_dir=$ac_dir
1543    ac_install_sh="$ac_aux_dir/install.sh -c"
1544    break
1545  elif test -f $ac_dir/shtool; then
1546    ac_aux_dir=$ac_dir
1547    ac_install_sh="$ac_aux_dir/shtool install -c"
1548    break
1549  fi
1550done
1551if test -z "$ac_aux_dir"; then
1552  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1553echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1554   { (exit 1); exit 1; }; }
1555fi
1556ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1557ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1558ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1559
1560# Find a good install program.  We prefer a C program (faster),
1561# so one script is as good as another.  But avoid the broken or
1562# incompatible versions:
1563# SysV /etc/install, /usr/sbin/install
1564# SunOS /usr/etc/install
1565# IRIX /sbin/install
1566# AIX /bin/install
1567# AmigaOS /C/install, which installs bootblocks on floppy discs
1568# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1569# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1570# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1571# OS/2's system install, which has a completely different semantic
1572# ./install, which can be erroneously created by make from ./install.sh.
1573echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1574echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1575if test -z "$INSTALL"; then
1576if test "${ac_cv_path_install+set}" = set; then
1577  echo $ECHO_N "(cached) $ECHO_C" >&6
1578else
1579  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1580for as_dir in $PATH
1581do
1582  IFS=$as_save_IFS
1583  test -z "$as_dir" && as_dir=.
1584  # Account for people who put trailing slashes in PATH elements.
1585case $as_dir/ in
1586  ./ | .// | /cC/* | \
1587  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1588  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1589  /usr/ucb/* ) ;;
1590  *)
1591    # OSF1 and SCO ODT 3.0 have their own names for install.
1592    # Don't use installbsd from OSF since it installs stuff as root
1593    # by default.
1594    for ac_prog in ginstall scoinst install; do
1595      for ac_exec_ext in '' $ac_executable_extensions; do
1596	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1597	  if test $ac_prog = install &&
1598	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1599	    # AIX install.  It has an incompatible calling convention.
1600	    :
1601	  elif test $ac_prog = install &&
1602	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1603	    # program-specific install script used by HP pwplus--don't use.
1604	    :
1605	  else
1606	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1607	    break 3
1608	  fi
1609	fi
1610      done
1611    done
1612    ;;
1613esac
1614done
1615
1616
1617fi
1618  if test "${ac_cv_path_install+set}" = set; then
1619    INSTALL=$ac_cv_path_install
1620  else
1621    # As a last resort, use the slow shell script.  We don't cache a
1622    # path for INSTALL within a source directory, because that will
1623    # break other packages using the cache if that directory is
1624    # removed, or if the path is relative.
1625    INSTALL=$ac_install_sh
1626  fi
1627fi
1628echo "$as_me:$LINENO: result: $INSTALL" >&5
1629echo "${ECHO_T}$INSTALL" >&6
1630
1631# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1632# It thinks the first close brace ends the variable substitution.
1633test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1634
1635test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1636
1637test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1638
1639echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1640echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1641# Just in case
1642sleep 1
1643echo timestamp > conftest.file
1644# Do `set' in a subshell so we don't clobber the current shell's
1645# arguments.  Must try -L first in case configure is actually a
1646# symlink; some systems play weird games with the mod time of symlinks
1647# (eg FreeBSD returns the mod time of the symlink's containing
1648# directory).
1649if (
1650   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1651   if test "$*" = "X"; then
1652      # -L didn't work.
1653      set X `ls -t $srcdir/configure conftest.file`
1654   fi
1655   rm -f conftest.file
1656   if test "$*" != "X $srcdir/configure conftest.file" \
1657      && test "$*" != "X conftest.file $srcdir/configure"; then
1658
1659      # If neither matched, then we have a broken ls.  This can happen
1660      # if, for instance, CONFIG_SHELL is bash and it inherits a
1661      # broken ls alias from the environment.  This has actually
1662      # happened.  Such a system could not be considered "sane".
1663      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1664alias in your environment" >&5
1665echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1666alias in your environment" >&2;}
1667   { (exit 1); exit 1; }; }
1668   fi
1669
1670   test "$2" = conftest.file
1671   )
1672then
1673   # Ok.
1674   :
1675else
1676   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1677Check your system clock" >&5
1678echo "$as_me: error: newly created file is older than distributed files!
1679Check your system clock" >&2;}
1680   { (exit 1); exit 1; }; }
1681fi
1682echo "$as_me:$LINENO: result: yes" >&5
1683echo "${ECHO_T}yes" >&6
1684test "$program_prefix" != NONE &&
1685  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1686# Use a double $ so make ignores it.
1687test "$program_suffix" != NONE &&
1688  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1689# Double any \ or $.  echo might interpret backslashes.
1690# By default was `s,x,x', remove it if useless.
1691cat <<\_ACEOF >conftest.sed
1692s/[\\$]/&&/g;s/;s,x,x,$//
1693_ACEOF
1694program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1695rm conftest.sed
1696
1697# expand $ac_aux_dir to an absolute path
1698am_aux_dir=`cd $ac_aux_dir && pwd`
1699
1700test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1701# Use eval to expand $SHELL
1702if eval "$MISSING --run true"; then
1703  am_missing_run="$MISSING --run "
1704else
1705  am_missing_run=
1706  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1707echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1708fi
1709
1710if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1711  # We used to keeping the `.' as first argument, in order to
1712  # allow $(mkdir_p) to be used without argument.  As in
1713  #   $(mkdir_p) $(somedir)
1714  # where $(somedir) is conditionally defined.  However this is wrong
1715  # for two reasons:
1716  #  1. if the package is installed by a user who cannot write `.'
1717  #     make install will fail,
1718  #  2. the above comment should most certainly read
1719  #     $(mkdir_p) $(DESTDIR)$(somedir)
1720  #     so it does not work when $(somedir) is undefined and
1721  #     $(DESTDIR) is not.
1722  #  To support the latter case, we have to write
1723  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1724  #  so the `.' trick is pointless.
1725  mkdir_p='mkdir -p --'
1726else
1727  # On NextStep and OpenStep, the `mkdir' command does not
1728  # recognize any option.  It will interpret all options as
1729  # directories to create, and then abort because `.' already
1730  # exists.
1731  for d in ./-p ./--version;
1732  do
1733    test -d $d && rmdir $d
1734  done
1735  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1736  if test -f "$ac_aux_dir/mkinstalldirs"; then
1737    mkdir_p='$(mkinstalldirs)'
1738  else
1739    mkdir_p='$(install_sh) -d'
1740  fi
1741fi
1742
1743for ac_prog in gawk mawk nawk awk
1744do
1745  # Extract the first word of "$ac_prog", so it can be a program name with args.
1746set dummy $ac_prog; ac_word=$2
1747echo "$as_me:$LINENO: checking for $ac_word" >&5
1748echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1749if test "${ac_cv_prog_AWK+set}" = set; then
1750  echo $ECHO_N "(cached) $ECHO_C" >&6
1751else
1752  if test -n "$AWK"; then
1753  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1754else
1755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1756for as_dir in $PATH
1757do
1758  IFS=$as_save_IFS
1759  test -z "$as_dir" && as_dir=.
1760  for ac_exec_ext in '' $ac_executable_extensions; do
1761  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1762    ac_cv_prog_AWK="$ac_prog"
1763    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1764    break 2
1765  fi
1766done
1767done
1768
1769fi
1770fi
1771AWK=$ac_cv_prog_AWK
1772if test -n "$AWK"; then
1773  echo "$as_me:$LINENO: result: $AWK" >&5
1774echo "${ECHO_T}$AWK" >&6
1775else
1776  echo "$as_me:$LINENO: result: no" >&5
1777echo "${ECHO_T}no" >&6
1778fi
1779
1780  test -n "$AWK" && break
1781done
1782
1783echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1784echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1785set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1786if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1787  echo $ECHO_N "(cached) $ECHO_C" >&6
1788else
1789  cat >conftest.make <<\_ACEOF
1790all:
1791	@echo 'ac_maketemp="$(MAKE)"'
1792_ACEOF
1793# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1794eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1795if test -n "$ac_maketemp"; then
1796  eval ac_cv_prog_make_${ac_make}_set=yes
1797else
1798  eval ac_cv_prog_make_${ac_make}_set=no
1799fi
1800rm -f conftest.make
1801fi
1802if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1803  echo "$as_me:$LINENO: result: yes" >&5
1804echo "${ECHO_T}yes" >&6
1805  SET_MAKE=
1806else
1807  echo "$as_me:$LINENO: result: no" >&5
1808echo "${ECHO_T}no" >&6
1809  SET_MAKE="MAKE=${MAKE-make}"
1810fi
1811
1812rm -rf .tst 2>/dev/null
1813mkdir .tst 2>/dev/null
1814if test -d .tst; then
1815  am__leading_dot=.
1816else
1817  am__leading_dot=_
1818fi
1819rmdir .tst 2>/dev/null
1820
1821# test to see if srcdir already configured
1822if test "`cd $srcdir && pwd`" != "`pwd`" &&
1823   test -f $srcdir/config.status; then
1824  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1825echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1826   { (exit 1); exit 1; }; }
1827fi
1828
1829# test whether we have cygpath
1830if test -z "$CYGPATH_W"; then
1831  if (cygpath --version) >/dev/null 2>/dev/null; then
1832    CYGPATH_W='cygpath -w'
1833  else
1834    CYGPATH_W=echo
1835  fi
1836fi
1837
1838
1839# Define the identity of the package.
1840 PACKAGE='libXdmcp'
1841 VERSION='1.0.2'
1842
1843
1844cat >>confdefs.h <<_ACEOF
1845#define PACKAGE "$PACKAGE"
1846_ACEOF
1847
1848
1849cat >>confdefs.h <<_ACEOF
1850#define VERSION "$VERSION"
1851_ACEOF
1852
1853# Some tools Automake needs.
1854
1855ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1856
1857
1858AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1859
1860
1861AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1862
1863
1864AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1865
1866
1867MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1868
1869install_sh=${install_sh-"$am_aux_dir/install-sh"}
1870
1871# Installed binaries are usually stripped using `strip' when the user
1872# run `make install-strip'.  However `strip' might not be the right
1873# tool to use in cross-compilation environments, therefore Automake
1874# will honor the `STRIP' environment variable to overrule this program.
1875if test "$cross_compiling" != no; then
1876  if test -n "$ac_tool_prefix"; then
1877  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1878set dummy ${ac_tool_prefix}strip; ac_word=$2
1879echo "$as_me:$LINENO: checking for $ac_word" >&5
1880echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1881if test "${ac_cv_prog_STRIP+set}" = set; then
1882  echo $ECHO_N "(cached) $ECHO_C" >&6
1883else
1884  if test -n "$STRIP"; then
1885  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1886else
1887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1888for as_dir in $PATH
1889do
1890  IFS=$as_save_IFS
1891  test -z "$as_dir" && as_dir=.
1892  for ac_exec_ext in '' $ac_executable_extensions; do
1893  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1894    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1895    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1896    break 2
1897  fi
1898done
1899done
1900
1901fi
1902fi
1903STRIP=$ac_cv_prog_STRIP
1904if test -n "$STRIP"; then
1905  echo "$as_me:$LINENO: result: $STRIP" >&5
1906echo "${ECHO_T}$STRIP" >&6
1907else
1908  echo "$as_me:$LINENO: result: no" >&5
1909echo "${ECHO_T}no" >&6
1910fi
1911
1912fi
1913if test -z "$ac_cv_prog_STRIP"; then
1914  ac_ct_STRIP=$STRIP
1915  # Extract the first word of "strip", so it can be a program name with args.
1916set dummy strip; ac_word=$2
1917echo "$as_me:$LINENO: checking for $ac_word" >&5
1918echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1919if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1920  echo $ECHO_N "(cached) $ECHO_C" >&6
1921else
1922  if test -n "$ac_ct_STRIP"; then
1923  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1924else
1925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1926for as_dir in $PATH
1927do
1928  IFS=$as_save_IFS
1929  test -z "$as_dir" && as_dir=.
1930  for ac_exec_ext in '' $ac_executable_extensions; do
1931  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1932    ac_cv_prog_ac_ct_STRIP="strip"
1933    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1934    break 2
1935  fi
1936done
1937done
1938
1939  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1940fi
1941fi
1942ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1943if test -n "$ac_ct_STRIP"; then
1944  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1945echo "${ECHO_T}$ac_ct_STRIP" >&6
1946else
1947  echo "$as_me:$LINENO: result: no" >&5
1948echo "${ECHO_T}no" >&6
1949fi
1950
1951  STRIP=$ac_ct_STRIP
1952else
1953  STRIP="$ac_cv_prog_STRIP"
1954fi
1955
1956fi
1957INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1958
1959# We need awk for the "check" target.  The system "awk" is bad on
1960# some platforms.
1961# Always define AMTAR for backward compatibility.
1962
1963AMTAR=${AMTAR-"${am_missing_run}tar"}
1964
1965am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1966
1967
1968
1969
1970
1971echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1972echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1973    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1974if test "${enable_maintainer_mode+set}" = set; then
1975  enableval="$enable_maintainer_mode"
1976  USE_MAINTAINER_MODE=$enableval
1977else
1978  USE_MAINTAINER_MODE=no
1979fi;
1980  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1981echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1982
1983
1984if test $USE_MAINTAINER_MODE = yes; then
1985  MAINTAINER_MODE_TRUE=
1986  MAINTAINER_MODE_FALSE='#'
1987else
1988  MAINTAINER_MODE_TRUE='#'
1989  MAINTAINER_MODE_FALSE=
1990fi
1991
1992  MAINT=$MAINTAINER_MODE_TRUE
1993
1994
1995
1996          ac_config_headers="$ac_config_headers config.h"
1997
1998
1999# Require xorg-macros version 1.1.0 or newer for XORG_WITH_LINT macro
2000
2001
2002	XORG_MACROS_needed_version=1.1
2003	XORG_MACROS_needed_major=`echo $XORG_MACROS_needed_version | sed 's/\..*$//'`
2004	XORG_MACROS_needed_minor=`echo $XORG_MACROS_needed_version | sed -e 's/^[0-9]*\.//' -e 's/\..*$//'`
2005	echo "$as_me:$LINENO: checking if xorg-macros used to generate configure is at least ${XORG_MACROS_needed_major}.${XORG_MACROS_needed_minor}" >&5
2006echo $ECHO_N "checking if xorg-macros used to generate configure is at least ${XORG_MACROS_needed_major}.${XORG_MACROS_needed_minor}... $ECHO_C" >&6
2007	XORG_MACROS_version=1.1.0
2008	XORG_MACROS_major=`echo $XORG_MACROS_version | sed 's/\..*$//'`
2009	XORG_MACROS_minor=`echo $XORG_MACROS_version | sed -e 's/^[0-9]*\.//' -e 's/\..*$//'`
2010	if test $XORG_MACROS_major -ne $XORG_MACROS_needed_major ; then
2011		{ { echo "$as_me:$LINENO: error: configure built with incompatible version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.x" >&5
2012echo "$as_me: error: configure built with incompatible version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.x" >&2;}
2013   { (exit 1); exit 1; }; }
2014	fi
2015	if test $XORG_MACROS_minor -lt $XORG_MACROS_needed_minor ; then
2016		{ { echo "$as_me:$LINENO: error: configure built with too old of a version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.${XORG_MACROS_minor}.0 or newer" >&5
2017echo "$as_me: error: configure built with too old of a version of xorg-macros.m4 - requires version ${XORG_MACROS_major}.${XORG_MACROS_minor}.0 or newer" >&2;}
2018   { (exit 1); exit 1; }; }
2019	fi
2020	echo "$as_me:$LINENO: result: yes, $XORG_MACROS_version" >&5
2021echo "${ECHO_T}yes, $XORG_MACROS_version" >&6
2022
2023
2024ac_ext=c
2025ac_cpp='$CPP $CPPFLAGS'
2026ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2027ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2028ac_compiler_gnu=$ac_cv_c_compiler_gnu
2029if test -n "$ac_tool_prefix"; then
2030  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2031set dummy ${ac_tool_prefix}gcc; ac_word=$2
2032echo "$as_me:$LINENO: checking for $ac_word" >&5
2033echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2034if test "${ac_cv_prog_CC+set}" = set; then
2035  echo $ECHO_N "(cached) $ECHO_C" >&6
2036else
2037  if test -n "$CC"; then
2038  ac_cv_prog_CC="$CC" # Let the user override the test.
2039else
2040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2041for as_dir in $PATH
2042do
2043  IFS=$as_save_IFS
2044  test -z "$as_dir" && as_dir=.
2045  for ac_exec_ext in '' $ac_executable_extensions; do
2046  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2047    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2048    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2049    break 2
2050  fi
2051done
2052done
2053
2054fi
2055fi
2056CC=$ac_cv_prog_CC
2057if test -n "$CC"; then
2058  echo "$as_me:$LINENO: result: $CC" >&5
2059echo "${ECHO_T}$CC" >&6
2060else
2061  echo "$as_me:$LINENO: result: no" >&5
2062echo "${ECHO_T}no" >&6
2063fi
2064
2065fi
2066if test -z "$ac_cv_prog_CC"; then
2067  ac_ct_CC=$CC
2068  # Extract the first word of "gcc", so it can be a program name with args.
2069set dummy gcc; ac_word=$2
2070echo "$as_me:$LINENO: checking for $ac_word" >&5
2071echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2072if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2073  echo $ECHO_N "(cached) $ECHO_C" >&6
2074else
2075  if test -n "$ac_ct_CC"; then
2076  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2077else
2078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2079for as_dir in $PATH
2080do
2081  IFS=$as_save_IFS
2082  test -z "$as_dir" && as_dir=.
2083  for ac_exec_ext in '' $ac_executable_extensions; do
2084  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2085    ac_cv_prog_ac_ct_CC="gcc"
2086    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2087    break 2
2088  fi
2089done
2090done
2091
2092fi
2093fi
2094ac_ct_CC=$ac_cv_prog_ac_ct_CC
2095if test -n "$ac_ct_CC"; then
2096  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2097echo "${ECHO_T}$ac_ct_CC" >&6
2098else
2099  echo "$as_me:$LINENO: result: no" >&5
2100echo "${ECHO_T}no" >&6
2101fi
2102
2103  CC=$ac_ct_CC
2104else
2105  CC="$ac_cv_prog_CC"
2106fi
2107
2108if test -z "$CC"; then
2109  if test -n "$ac_tool_prefix"; then
2110  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2111set dummy ${ac_tool_prefix}cc; ac_word=$2
2112echo "$as_me:$LINENO: checking for $ac_word" >&5
2113echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2114if test "${ac_cv_prog_CC+set}" = set; then
2115  echo $ECHO_N "(cached) $ECHO_C" >&6
2116else
2117  if test -n "$CC"; then
2118  ac_cv_prog_CC="$CC" # Let the user override the test.
2119else
2120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2121for as_dir in $PATH
2122do
2123  IFS=$as_save_IFS
2124  test -z "$as_dir" && as_dir=.
2125  for ac_exec_ext in '' $ac_executable_extensions; do
2126  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2127    ac_cv_prog_CC="${ac_tool_prefix}cc"
2128    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2129    break 2
2130  fi
2131done
2132done
2133
2134fi
2135fi
2136CC=$ac_cv_prog_CC
2137if test -n "$CC"; then
2138  echo "$as_me:$LINENO: result: $CC" >&5
2139echo "${ECHO_T}$CC" >&6
2140else
2141  echo "$as_me:$LINENO: result: no" >&5
2142echo "${ECHO_T}no" >&6
2143fi
2144
2145fi
2146if test -z "$ac_cv_prog_CC"; then
2147  ac_ct_CC=$CC
2148  # Extract the first word of "cc", so it can be a program name with args.
2149set dummy cc; ac_word=$2
2150echo "$as_me:$LINENO: checking for $ac_word" >&5
2151echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2152if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2153  echo $ECHO_N "(cached) $ECHO_C" >&6
2154else
2155  if test -n "$ac_ct_CC"; then
2156  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2157else
2158as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2159for as_dir in $PATH
2160do
2161  IFS=$as_save_IFS
2162  test -z "$as_dir" && as_dir=.
2163  for ac_exec_ext in '' $ac_executable_extensions; do
2164  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2165    ac_cv_prog_ac_ct_CC="cc"
2166    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2167    break 2
2168  fi
2169done
2170done
2171
2172fi
2173fi
2174ac_ct_CC=$ac_cv_prog_ac_ct_CC
2175if test -n "$ac_ct_CC"; then
2176  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2177echo "${ECHO_T}$ac_ct_CC" >&6
2178else
2179  echo "$as_me:$LINENO: result: no" >&5
2180echo "${ECHO_T}no" >&6
2181fi
2182
2183  CC=$ac_ct_CC
2184else
2185  CC="$ac_cv_prog_CC"
2186fi
2187
2188fi
2189if test -z "$CC"; then
2190  # Extract the first word of "cc", so it can be a program name with args.
2191set dummy cc; ac_word=$2
2192echo "$as_me:$LINENO: checking for $ac_word" >&5
2193echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2194if test "${ac_cv_prog_CC+set}" = set; then
2195  echo $ECHO_N "(cached) $ECHO_C" >&6
2196else
2197  if test -n "$CC"; then
2198  ac_cv_prog_CC="$CC" # Let the user override the test.
2199else
2200  ac_prog_rejected=no
2201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2202for as_dir in $PATH
2203do
2204  IFS=$as_save_IFS
2205  test -z "$as_dir" && as_dir=.
2206  for ac_exec_ext in '' $ac_executable_extensions; do
2207  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2208    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2209       ac_prog_rejected=yes
2210       continue
2211     fi
2212    ac_cv_prog_CC="cc"
2213    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2214    break 2
2215  fi
2216done
2217done
2218
2219if test $ac_prog_rejected = yes; then
2220  # We found a bogon in the path, so make sure we never use it.
2221  set dummy $ac_cv_prog_CC
2222  shift
2223  if test $# != 0; then
2224    # We chose a different compiler from the bogus one.
2225    # However, it has the same basename, so the bogon will be chosen
2226    # first if we set CC to just the basename; use the full file name.
2227    shift
2228    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2229  fi
2230fi
2231fi
2232fi
2233CC=$ac_cv_prog_CC
2234if test -n "$CC"; then
2235  echo "$as_me:$LINENO: result: $CC" >&5
2236echo "${ECHO_T}$CC" >&6
2237else
2238  echo "$as_me:$LINENO: result: no" >&5
2239echo "${ECHO_T}no" >&6
2240fi
2241
2242fi
2243if test -z "$CC"; then
2244  if test -n "$ac_tool_prefix"; then
2245  for ac_prog in cl
2246  do
2247    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2248set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2249echo "$as_me:$LINENO: checking for $ac_word" >&5
2250echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2251if test "${ac_cv_prog_CC+set}" = set; then
2252  echo $ECHO_N "(cached) $ECHO_C" >&6
2253else
2254  if test -n "$CC"; then
2255  ac_cv_prog_CC="$CC" # Let the user override the test.
2256else
2257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2258for as_dir in $PATH
2259do
2260  IFS=$as_save_IFS
2261  test -z "$as_dir" && as_dir=.
2262  for ac_exec_ext in '' $ac_executable_extensions; do
2263  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2264    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2265    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2266    break 2
2267  fi
2268done
2269done
2270
2271fi
2272fi
2273CC=$ac_cv_prog_CC
2274if test -n "$CC"; then
2275  echo "$as_me:$LINENO: result: $CC" >&5
2276echo "${ECHO_T}$CC" >&6
2277else
2278  echo "$as_me:$LINENO: result: no" >&5
2279echo "${ECHO_T}no" >&6
2280fi
2281
2282    test -n "$CC" && break
2283  done
2284fi
2285if test -z "$CC"; then
2286  ac_ct_CC=$CC
2287  for ac_prog in cl
2288do
2289  # Extract the first word of "$ac_prog", so it can be a program name with args.
2290set dummy $ac_prog; ac_word=$2
2291echo "$as_me:$LINENO: checking for $ac_word" >&5
2292echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2293if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2294  echo $ECHO_N "(cached) $ECHO_C" >&6
2295else
2296  if test -n "$ac_ct_CC"; then
2297  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2298else
2299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2300for as_dir in $PATH
2301do
2302  IFS=$as_save_IFS
2303  test -z "$as_dir" && as_dir=.
2304  for ac_exec_ext in '' $ac_executable_extensions; do
2305  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2306    ac_cv_prog_ac_ct_CC="$ac_prog"
2307    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2308    break 2
2309  fi
2310done
2311done
2312
2313fi
2314fi
2315ac_ct_CC=$ac_cv_prog_ac_ct_CC
2316if test -n "$ac_ct_CC"; then
2317  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2318echo "${ECHO_T}$ac_ct_CC" >&6
2319else
2320  echo "$as_me:$LINENO: result: no" >&5
2321echo "${ECHO_T}no" >&6
2322fi
2323
2324  test -n "$ac_ct_CC" && break
2325done
2326
2327  CC=$ac_ct_CC
2328fi
2329
2330fi
2331
2332
2333test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2334See \`config.log' for more details." >&5
2335echo "$as_me: error: no acceptable C compiler found in \$PATH
2336See \`config.log' for more details." >&2;}
2337   { (exit 1); exit 1; }; }
2338
2339# Provide some information about the compiler.
2340echo "$as_me:$LINENO:" \
2341     "checking for C compiler version" >&5
2342ac_compiler=`set X $ac_compile; echo $2`
2343{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2344  (eval $ac_compiler --version </dev/null >&5) 2>&5
2345  ac_status=$?
2346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2347  (exit $ac_status); }
2348{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2349  (eval $ac_compiler -v </dev/null >&5) 2>&5
2350  ac_status=$?
2351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352  (exit $ac_status); }
2353{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2354  (eval $ac_compiler -V </dev/null >&5) 2>&5
2355  ac_status=$?
2356  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357  (exit $ac_status); }
2358
2359cat >conftest.$ac_ext <<_ACEOF
2360/* confdefs.h.  */
2361_ACEOF
2362cat confdefs.h >>conftest.$ac_ext
2363cat >>conftest.$ac_ext <<_ACEOF
2364/* end confdefs.h.  */
2365
2366int
2367main ()
2368{
2369
2370  ;
2371  return 0;
2372}
2373_ACEOF
2374ac_clean_files_save=$ac_clean_files
2375ac_clean_files="$ac_clean_files a.out a.exe b.out"
2376# Try to create an executable without -o first, disregard a.out.
2377# It will help us diagnose broken compilers, and finding out an intuition
2378# of exeext.
2379echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2380echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2381ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2382if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2383  (eval $ac_link_default) 2>&5
2384  ac_status=$?
2385  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2386  (exit $ac_status); }; then
2387  # Find the output, starting from the most likely.  This scheme is
2388# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2389# resort.
2390
2391# Be careful to initialize this variable, since it used to be cached.
2392# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2393ac_cv_exeext=
2394# b.out is created by i960 compilers.
2395for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2396do
2397  test -f "$ac_file" || continue
2398  case $ac_file in
2399    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2400	;;
2401    conftest.$ac_ext )
2402	# This is the source file.
2403	;;
2404    [ab].out )
2405	# We found the default executable, but exeext='' is most
2406	# certainly right.
2407	break;;
2408    *.* )
2409	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2410	# FIXME: I believe we export ac_cv_exeext for Libtool,
2411	# but it would be cool to find out if it's true.  Does anybody
2412	# maintain Libtool? --akim.
2413	export ac_cv_exeext
2414	break;;
2415    * )
2416	break;;
2417  esac
2418done
2419else
2420  echo "$as_me: failed program was:" >&5
2421sed 's/^/| /' conftest.$ac_ext >&5
2422
2423{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2424See \`config.log' for more details." >&5
2425echo "$as_me: error: C compiler cannot create executables
2426See \`config.log' for more details." >&2;}
2427   { (exit 77); exit 77; }; }
2428fi
2429
2430ac_exeext=$ac_cv_exeext
2431echo "$as_me:$LINENO: result: $ac_file" >&5
2432echo "${ECHO_T}$ac_file" >&6
2433
2434# Check the compiler produces executables we can run.  If not, either
2435# the compiler is broken, or we cross compile.
2436echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2437echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2438# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2439# If not cross compiling, check that we can run a simple program.
2440if test "$cross_compiling" != yes; then
2441  if { ac_try='./$ac_file'
2442  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2443  (eval $ac_try) 2>&5
2444  ac_status=$?
2445  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2446  (exit $ac_status); }; }; then
2447    cross_compiling=no
2448  else
2449    if test "$cross_compiling" = maybe; then
2450	cross_compiling=yes
2451    else
2452	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2453If you meant to cross compile, use \`--host'.
2454See \`config.log' for more details." >&5
2455echo "$as_me: error: cannot run C compiled programs.
2456If you meant to cross compile, use \`--host'.
2457See \`config.log' for more details." >&2;}
2458   { (exit 1); exit 1; }; }
2459    fi
2460  fi
2461fi
2462echo "$as_me:$LINENO: result: yes" >&5
2463echo "${ECHO_T}yes" >&6
2464
2465rm -f a.out a.exe conftest$ac_cv_exeext b.out
2466ac_clean_files=$ac_clean_files_save
2467# Check the compiler produces executables we can run.  If not, either
2468# the compiler is broken, or we cross compile.
2469echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2470echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2471echo "$as_me:$LINENO: result: $cross_compiling" >&5
2472echo "${ECHO_T}$cross_compiling" >&6
2473
2474echo "$as_me:$LINENO: checking for suffix of executables" >&5
2475echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2476if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2477  (eval $ac_link) 2>&5
2478  ac_status=$?
2479  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480  (exit $ac_status); }; then
2481  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2482# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2483# work properly (i.e., refer to `conftest.exe'), while it won't with
2484# `rm'.
2485for ac_file in conftest.exe conftest conftest.*; do
2486  test -f "$ac_file" || continue
2487  case $ac_file in
2488    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2489    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2490	  export ac_cv_exeext
2491	  break;;
2492    * ) break;;
2493  esac
2494done
2495else
2496  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2497See \`config.log' for more details." >&5
2498echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2499See \`config.log' for more details." >&2;}
2500   { (exit 1); exit 1; }; }
2501fi
2502
2503rm -f conftest$ac_cv_exeext
2504echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2505echo "${ECHO_T}$ac_cv_exeext" >&6
2506
2507rm -f conftest.$ac_ext
2508EXEEXT=$ac_cv_exeext
2509ac_exeext=$EXEEXT
2510echo "$as_me:$LINENO: checking for suffix of object files" >&5
2511echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2512if test "${ac_cv_objext+set}" = set; then
2513  echo $ECHO_N "(cached) $ECHO_C" >&6
2514else
2515  cat >conftest.$ac_ext <<_ACEOF
2516/* confdefs.h.  */
2517_ACEOF
2518cat confdefs.h >>conftest.$ac_ext
2519cat >>conftest.$ac_ext <<_ACEOF
2520/* end confdefs.h.  */
2521
2522int
2523main ()
2524{
2525
2526  ;
2527  return 0;
2528}
2529_ACEOF
2530rm -f conftest.o conftest.obj
2531if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2532  (eval $ac_compile) 2>&5
2533  ac_status=$?
2534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535  (exit $ac_status); }; then
2536  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2537  case $ac_file in
2538    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2539    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2540       break;;
2541  esac
2542done
2543else
2544  echo "$as_me: failed program was:" >&5
2545sed 's/^/| /' conftest.$ac_ext >&5
2546
2547{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2548See \`config.log' for more details." >&5
2549echo "$as_me: error: cannot compute suffix of object files: cannot compile
2550See \`config.log' for more details." >&2;}
2551   { (exit 1); exit 1; }; }
2552fi
2553
2554rm -f conftest.$ac_cv_objext conftest.$ac_ext
2555fi
2556echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2557echo "${ECHO_T}$ac_cv_objext" >&6
2558OBJEXT=$ac_cv_objext
2559ac_objext=$OBJEXT
2560echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2561echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2562if test "${ac_cv_c_compiler_gnu+set}" = set; then
2563  echo $ECHO_N "(cached) $ECHO_C" >&6
2564else
2565  cat >conftest.$ac_ext <<_ACEOF
2566/* confdefs.h.  */
2567_ACEOF
2568cat confdefs.h >>conftest.$ac_ext
2569cat >>conftest.$ac_ext <<_ACEOF
2570/* end confdefs.h.  */
2571
2572int
2573main ()
2574{
2575#ifndef __GNUC__
2576       choke me
2577#endif
2578
2579  ;
2580  return 0;
2581}
2582_ACEOF
2583rm -f conftest.$ac_objext
2584if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2585  (eval $ac_compile) 2>conftest.er1
2586  ac_status=$?
2587  grep -v '^ *+' conftest.er1 >conftest.err
2588  rm -f conftest.er1
2589  cat conftest.err >&5
2590  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591  (exit $ac_status); } &&
2592	 { ac_try='test -z "$ac_c_werror_flag"
2593			 || test ! -s conftest.err'
2594  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2595  (eval $ac_try) 2>&5
2596  ac_status=$?
2597  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2598  (exit $ac_status); }; } &&
2599	 { ac_try='test -s conftest.$ac_objext'
2600  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2601  (eval $ac_try) 2>&5
2602  ac_status=$?
2603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604  (exit $ac_status); }; }; then
2605  ac_compiler_gnu=yes
2606else
2607  echo "$as_me: failed program was:" >&5
2608sed 's/^/| /' conftest.$ac_ext >&5
2609
2610ac_compiler_gnu=no
2611fi
2612rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2613ac_cv_c_compiler_gnu=$ac_compiler_gnu
2614
2615fi
2616echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2617echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2618GCC=`test $ac_compiler_gnu = yes && echo yes`
2619ac_test_CFLAGS=${CFLAGS+set}
2620ac_save_CFLAGS=$CFLAGS
2621CFLAGS="-g"
2622echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2623echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2624if test "${ac_cv_prog_cc_g+set}" = set; then
2625  echo $ECHO_N "(cached) $ECHO_C" >&6
2626else
2627  cat >conftest.$ac_ext <<_ACEOF
2628/* confdefs.h.  */
2629_ACEOF
2630cat confdefs.h >>conftest.$ac_ext
2631cat >>conftest.$ac_ext <<_ACEOF
2632/* end confdefs.h.  */
2633
2634int
2635main ()
2636{
2637
2638  ;
2639  return 0;
2640}
2641_ACEOF
2642rm -f conftest.$ac_objext
2643if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2644  (eval $ac_compile) 2>conftest.er1
2645  ac_status=$?
2646  grep -v '^ *+' conftest.er1 >conftest.err
2647  rm -f conftest.er1
2648  cat conftest.err >&5
2649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2650  (exit $ac_status); } &&
2651	 { ac_try='test -z "$ac_c_werror_flag"
2652			 || test ! -s conftest.err'
2653  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2654  (eval $ac_try) 2>&5
2655  ac_status=$?
2656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2657  (exit $ac_status); }; } &&
2658	 { ac_try='test -s conftest.$ac_objext'
2659  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2660  (eval $ac_try) 2>&5
2661  ac_status=$?
2662  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2663  (exit $ac_status); }; }; then
2664  ac_cv_prog_cc_g=yes
2665else
2666  echo "$as_me: failed program was:" >&5
2667sed 's/^/| /' conftest.$ac_ext >&5
2668
2669ac_cv_prog_cc_g=no
2670fi
2671rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2672fi
2673echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2674echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2675if test "$ac_test_CFLAGS" = set; then
2676  CFLAGS=$ac_save_CFLAGS
2677elif test $ac_cv_prog_cc_g = yes; then
2678  if test "$GCC" = yes; then
2679    CFLAGS="-g -O2"
2680  else
2681    CFLAGS="-g"
2682  fi
2683else
2684  if test "$GCC" = yes; then
2685    CFLAGS="-O2"
2686  else
2687    CFLAGS=
2688  fi
2689fi
2690echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2691echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2692if test "${ac_cv_prog_cc_stdc+set}" = set; then
2693  echo $ECHO_N "(cached) $ECHO_C" >&6
2694else
2695  ac_cv_prog_cc_stdc=no
2696ac_save_CC=$CC
2697cat >conftest.$ac_ext <<_ACEOF
2698/* confdefs.h.  */
2699_ACEOF
2700cat confdefs.h >>conftest.$ac_ext
2701cat >>conftest.$ac_ext <<_ACEOF
2702/* end confdefs.h.  */
2703#include <stdarg.h>
2704#include <stdio.h>
2705#include <sys/types.h>
2706#include <sys/stat.h>
2707/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2708struct buf { int x; };
2709FILE * (*rcsopen) (struct buf *, struct stat *, int);
2710static char *e (p, i)
2711     char **p;
2712     int i;
2713{
2714  return p[i];
2715}
2716static char *f (char * (*g) (char **, int), char **p, ...)
2717{
2718  char *s;
2719  va_list v;
2720  va_start (v,p);
2721  s = g (p, va_arg (v,int));
2722  va_end (v);
2723  return s;
2724}
2725
2726/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2727   function prototypes and stuff, but not '\xHH' hex character constants.
2728   These don't provoke an error unfortunately, instead are silently treated
2729   as 'x'.  The following induces an error, until -std1 is added to get
2730   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2731   array size at least.  It's necessary to write '\x00'==0 to get something
2732   that's true only with -std1.  */
2733int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2734
2735int test (int i, double x);
2736struct s1 {int (*f) (int a);};
2737struct s2 {int (*f) (double a);};
2738int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2739int argc;
2740char **argv;
2741int
2742main ()
2743{
2744return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2745  ;
2746  return 0;
2747}
2748_ACEOF
2749# Don't try gcc -ansi; that turns off useful extensions and
2750# breaks some systems' header files.
2751# AIX			-qlanglvl=ansi
2752# Ultrix and OSF/1	-std1
2753# HP-UX 10.20 and later	-Ae
2754# HP-UX older versions	-Aa -D_HPUX_SOURCE
2755# SVR4			-Xc -D__EXTENSIONS__
2756for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2757do
2758  CC="$ac_save_CC $ac_arg"
2759  rm -f conftest.$ac_objext
2760if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2761  (eval $ac_compile) 2>conftest.er1
2762  ac_status=$?
2763  grep -v '^ *+' conftest.er1 >conftest.err
2764  rm -f conftest.er1
2765  cat conftest.err >&5
2766  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767  (exit $ac_status); } &&
2768	 { ac_try='test -z "$ac_c_werror_flag"
2769			 || test ! -s conftest.err'
2770  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2771  (eval $ac_try) 2>&5
2772  ac_status=$?
2773  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774  (exit $ac_status); }; } &&
2775	 { ac_try='test -s conftest.$ac_objext'
2776  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2777  (eval $ac_try) 2>&5
2778  ac_status=$?
2779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780  (exit $ac_status); }; }; then
2781  ac_cv_prog_cc_stdc=$ac_arg
2782break
2783else
2784  echo "$as_me: failed program was:" >&5
2785sed 's/^/| /' conftest.$ac_ext >&5
2786
2787fi
2788rm -f conftest.err conftest.$ac_objext
2789done
2790rm -f conftest.$ac_ext conftest.$ac_objext
2791CC=$ac_save_CC
2792
2793fi
2794
2795case "x$ac_cv_prog_cc_stdc" in
2796  x|xno)
2797    echo "$as_me:$LINENO: result: none needed" >&5
2798echo "${ECHO_T}none needed" >&6 ;;
2799  *)
2800    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2801echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2802    CC="$CC $ac_cv_prog_cc_stdc" ;;
2803esac
2804
2805# Some people use a C++ compiler to compile C.  Since we use `exit',
2806# in C++ we need to declare it.  In case someone uses the same compiler
2807# for both compiling C and C++ we need to have the C++ compiler decide
2808# the declaration of exit, since it's the most demanding environment.
2809cat >conftest.$ac_ext <<_ACEOF
2810#ifndef __cplusplus
2811  choke me
2812#endif
2813_ACEOF
2814rm -f conftest.$ac_objext
2815if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2816  (eval $ac_compile) 2>conftest.er1
2817  ac_status=$?
2818  grep -v '^ *+' conftest.er1 >conftest.err
2819  rm -f conftest.er1
2820  cat conftest.err >&5
2821  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2822  (exit $ac_status); } &&
2823	 { ac_try='test -z "$ac_c_werror_flag"
2824			 || test ! -s conftest.err'
2825  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2826  (eval $ac_try) 2>&5
2827  ac_status=$?
2828  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829  (exit $ac_status); }; } &&
2830	 { ac_try='test -s conftest.$ac_objext'
2831  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2832  (eval $ac_try) 2>&5
2833  ac_status=$?
2834  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835  (exit $ac_status); }; }; then
2836  for ac_declaration in \
2837   '' \
2838   'extern "C" void std::exit (int) throw (); using std::exit;' \
2839   'extern "C" void std::exit (int); using std::exit;' \
2840   'extern "C" void exit (int) throw ();' \
2841   'extern "C" void exit (int);' \
2842   'void exit (int);'
2843do
2844  cat >conftest.$ac_ext <<_ACEOF
2845/* confdefs.h.  */
2846_ACEOF
2847cat confdefs.h >>conftest.$ac_ext
2848cat >>conftest.$ac_ext <<_ACEOF
2849/* end confdefs.h.  */
2850$ac_declaration
2851#include <stdlib.h>
2852int
2853main ()
2854{
2855exit (42);
2856  ;
2857  return 0;
2858}
2859_ACEOF
2860rm -f conftest.$ac_objext
2861if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2862  (eval $ac_compile) 2>conftest.er1
2863  ac_status=$?
2864  grep -v '^ *+' conftest.er1 >conftest.err
2865  rm -f conftest.er1
2866  cat conftest.err >&5
2867  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868  (exit $ac_status); } &&
2869	 { ac_try='test -z "$ac_c_werror_flag"
2870			 || test ! -s conftest.err'
2871  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2872  (eval $ac_try) 2>&5
2873  ac_status=$?
2874  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875  (exit $ac_status); }; } &&
2876	 { ac_try='test -s conftest.$ac_objext'
2877  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2878  (eval $ac_try) 2>&5
2879  ac_status=$?
2880  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881  (exit $ac_status); }; }; then
2882  :
2883else
2884  echo "$as_me: failed program was:" >&5
2885sed 's/^/| /' conftest.$ac_ext >&5
2886
2887continue
2888fi
2889rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2890  cat >conftest.$ac_ext <<_ACEOF
2891/* confdefs.h.  */
2892_ACEOF
2893cat confdefs.h >>conftest.$ac_ext
2894cat >>conftest.$ac_ext <<_ACEOF
2895/* end confdefs.h.  */
2896$ac_declaration
2897int
2898main ()
2899{
2900exit (42);
2901  ;
2902  return 0;
2903}
2904_ACEOF
2905rm -f conftest.$ac_objext
2906if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2907  (eval $ac_compile) 2>conftest.er1
2908  ac_status=$?
2909  grep -v '^ *+' conftest.er1 >conftest.err
2910  rm -f conftest.er1
2911  cat conftest.err >&5
2912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913  (exit $ac_status); } &&
2914	 { ac_try='test -z "$ac_c_werror_flag"
2915			 || test ! -s conftest.err'
2916  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2917  (eval $ac_try) 2>&5
2918  ac_status=$?
2919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920  (exit $ac_status); }; } &&
2921	 { ac_try='test -s conftest.$ac_objext'
2922  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2923  (eval $ac_try) 2>&5
2924  ac_status=$?
2925  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926  (exit $ac_status); }; }; then
2927  break
2928else
2929  echo "$as_me: failed program was:" >&5
2930sed 's/^/| /' conftest.$ac_ext >&5
2931
2932fi
2933rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2934done
2935rm -f conftest*
2936if test -n "$ac_declaration"; then
2937  echo '#ifdef __cplusplus' >>confdefs.h
2938  echo $ac_declaration      >>confdefs.h
2939  echo '#endif'             >>confdefs.h
2940fi
2941
2942else
2943  echo "$as_me: failed program was:" >&5
2944sed 's/^/| /' conftest.$ac_ext >&5
2945
2946fi
2947rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2948ac_ext=c
2949ac_cpp='$CPP $CPPFLAGS'
2950ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2951ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2952ac_compiler_gnu=$ac_cv_c_compiler_gnu
2953DEPDIR="${am__leading_dot}deps"
2954
2955          ac_config_commands="$ac_config_commands depfiles"
2956
2957
2958am_make=${MAKE-make}
2959cat > confinc << 'END'
2960am__doit:
2961	@echo done
2962.PHONY: am__doit
2963END
2964# If we don't find an include directive, just comment out the code.
2965echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2966echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2967am__include="#"
2968am__quote=
2969_am_result=none
2970# First try GNU make style include.
2971echo "include confinc" > confmf
2972# We grep out `Entering directory' and `Leaving directory'
2973# messages which can occur if `w' ends up in MAKEFLAGS.
2974# In particular we don't look at `^make:' because GNU make might
2975# be invoked under some other name (usually "gmake"), in which
2976# case it prints its new name instead of `make'.
2977if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2978   am__include=include
2979   am__quote=
2980   _am_result=GNU
2981fi
2982# Now try BSD make style include.
2983if test "$am__include" = "#"; then
2984   echo '.include "confinc"' > confmf
2985   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2986      am__include=.include
2987      am__quote="\""
2988      _am_result=BSD
2989   fi
2990fi
2991
2992
2993echo "$as_me:$LINENO: result: $_am_result" >&5
2994echo "${ECHO_T}$_am_result" >&6
2995rm -f confinc confmf
2996
2997# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2998if test "${enable_dependency_tracking+set}" = set; then
2999  enableval="$enable_dependency_tracking"
3000
3001fi;
3002if test "x$enable_dependency_tracking" != xno; then
3003  am_depcomp="$ac_aux_dir/depcomp"
3004  AMDEPBACKSLASH='\'
3005fi
3006
3007
3008if test "x$enable_dependency_tracking" != xno; then
3009  AMDEP_TRUE=
3010  AMDEP_FALSE='#'
3011else
3012  AMDEP_TRUE='#'
3013  AMDEP_FALSE=
3014fi
3015
3016
3017
3018
3019depcc="$CC"   am_compiler_list=
3020
3021echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3022echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3023if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3024  echo $ECHO_N "(cached) $ECHO_C" >&6
3025else
3026  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3027  # We make a subdir and do the tests there.  Otherwise we can end up
3028  # making bogus files that we don't know about and never remove.  For
3029  # instance it was reported that on HP-UX the gcc test will end up
3030  # making a dummy file named `D' -- because `-MD' means `put the output
3031  # in D'.
3032  mkdir conftest.dir
3033  # Copy depcomp to subdir because otherwise we won't find it if we're
3034  # using a relative directory.
3035  cp "$am_depcomp" conftest.dir
3036  cd conftest.dir
3037  # We will build objects and dependencies in a subdirectory because
3038  # it helps to detect inapplicable dependency modes.  For instance
3039  # both Tru64's cc and ICC support -MD to output dependencies as a
3040  # side effect of compilation, but ICC will put the dependencies in
3041  # the current directory while Tru64 will put them in the object
3042  # directory.
3043  mkdir sub
3044
3045  am_cv_CC_dependencies_compiler_type=none
3046  if test "$am_compiler_list" = ""; then
3047     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3048  fi
3049  for depmode in $am_compiler_list; do
3050    # Setup a source with many dependencies, because some compilers
3051    # like to wrap large dependency lists on column 80 (with \), and
3052    # we should not choose a depcomp mode which is confused by this.
3053    #
3054    # We need to recreate these files for each test, as the compiler may
3055    # overwrite some of them when testing with obscure command lines.
3056    # This happens at least with the AIX C compiler.
3057    : > sub/conftest.c
3058    for i in 1 2 3 4 5 6; do
3059      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3060      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3061      # Solaris 8's {/usr,}/bin/sh.
3062      touch sub/conftst$i.h
3063    done
3064    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3065
3066    case $depmode in
3067    nosideeffect)
3068      # after this tag, mechanisms are not by side-effect, so they'll
3069      # only be used when explicitly requested
3070      if test "x$enable_dependency_tracking" = xyes; then
3071	continue
3072      else
3073	break
3074      fi
3075      ;;
3076    none) break ;;
3077    esac
3078    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3079    # mode.  It turns out that the SunPro C++ compiler does not properly
3080    # handle `-M -o', and we need to detect this.
3081    if depmode=$depmode \
3082       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3083       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3084       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3085         >/dev/null 2>conftest.err &&
3086       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3087       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3088       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3089      # icc doesn't choke on unknown options, it will just issue warnings
3090      # or remarks (even with -Werror).  So we grep stderr for any message
3091      # that says an option was ignored or not supported.
3092      # When given -MP, icc 7.0 and 7.1 complain thusly:
3093      #   icc: Command line warning: ignoring option '-M'; no argument required
3094      # The diagnosis changed in icc 8.0:
3095      #   icc: Command line remark: option '-MP' not supported
3096      if (grep 'ignoring option' conftest.err ||
3097          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3098        am_cv_CC_dependencies_compiler_type=$depmode
3099        break
3100      fi
3101    fi
3102  done
3103
3104  cd ..
3105  rm -rf conftest.dir
3106else
3107  am_cv_CC_dependencies_compiler_type=none
3108fi
3109
3110fi
3111echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3112echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3113CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3114
3115
3116
3117if
3118  test "x$enable_dependency_tracking" != xno \
3119  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3120  am__fastdepCC_TRUE=
3121  am__fastdepCC_FALSE='#'
3122else
3123  am__fastdepCC_TRUE='#'
3124  am__fastdepCC_FALSE=
3125fi
3126
3127
3128# Find a good install program.  We prefer a C program (faster),
3129# so one script is as good as another.  But avoid the broken or
3130# incompatible versions:
3131# SysV /etc/install, /usr/sbin/install
3132# SunOS /usr/etc/install
3133# IRIX /sbin/install
3134# AIX /bin/install
3135# AmigaOS /C/install, which installs bootblocks on floppy discs
3136# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3137# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3138# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3139# OS/2's system install, which has a completely different semantic
3140# ./install, which can be erroneously created by make from ./install.sh.
3141echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3142echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3143if test -z "$INSTALL"; then
3144if test "${ac_cv_path_install+set}" = set; then
3145  echo $ECHO_N "(cached) $ECHO_C" >&6
3146else
3147  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3148for as_dir in $PATH
3149do
3150  IFS=$as_save_IFS
3151  test -z "$as_dir" && as_dir=.
3152  # Account for people who put trailing slashes in PATH elements.
3153case $as_dir/ in
3154  ./ | .// | /cC/* | \
3155  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3156  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3157  /usr/ucb/* ) ;;
3158  *)
3159    # OSF1 and SCO ODT 3.0 have their own names for install.
3160    # Don't use installbsd from OSF since it installs stuff as root
3161    # by default.
3162    for ac_prog in ginstall scoinst install; do
3163      for ac_exec_ext in '' $ac_executable_extensions; do
3164	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3165	  if test $ac_prog = install &&
3166	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3167	    # AIX install.  It has an incompatible calling convention.
3168	    :
3169	  elif test $ac_prog = install &&
3170	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3171	    # program-specific install script used by HP pwplus--don't use.
3172	    :
3173	  else
3174	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3175	    break 3
3176	  fi
3177	fi
3178      done
3179    done
3180    ;;
3181esac
3182done
3183
3184
3185fi
3186  if test "${ac_cv_path_install+set}" = set; then
3187    INSTALL=$ac_cv_path_install
3188  else
3189    # As a last resort, use the slow shell script.  We don't cache a
3190    # path for INSTALL within a source directory, because that will
3191    # break other packages using the cache if that directory is
3192    # removed, or if the path is relative.
3193    INSTALL=$ac_install_sh
3194  fi
3195fi
3196echo "$as_me:$LINENO: result: $INSTALL" >&5
3197echo "${ECHO_T}$INSTALL" >&6
3198
3199# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3200# It thinks the first close brace ends the variable substitution.
3201test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3202
3203test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3204
3205test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3206
3207echo "$as_me:$LINENO: checking whether ln -s works" >&5
3208echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3209LN_S=$as_ln_s
3210if test "$LN_S" = "ln -s"; then
3211  echo "$as_me:$LINENO: result: yes" >&5
3212echo "${ECHO_T}yes" >&6
3213else
3214  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3215echo "${ECHO_T}no, using $LN_S" >&6
3216fi
3217
3218
3219
3220# Check whether --enable-shared or --disable-shared was given.
3221if test "${enable_shared+set}" = set; then
3222  enableval="$enable_shared"
3223  p=${PACKAGE-default}
3224    case $enableval in
3225    yes) enable_shared=yes ;;
3226    no) enable_shared=no ;;
3227    *)
3228      enable_shared=no
3229      # Look at the argument we got.  We use all the common list separators.
3230      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3231      for pkg in $enableval; do
3232	IFS="$lt_save_ifs"
3233	if test "X$pkg" = "X$p"; then
3234	  enable_shared=yes
3235	fi
3236      done
3237      IFS="$lt_save_ifs"
3238      ;;
3239    esac
3240else
3241  enable_shared=yes
3242fi;
3243
3244# Check whether --enable-static or --disable-static was given.
3245if test "${enable_static+set}" = set; then
3246  enableval="$enable_static"
3247  p=${PACKAGE-default}
3248    case $enableval in
3249    yes) enable_static=yes ;;
3250    no) enable_static=no ;;
3251    *)
3252     enable_static=no
3253      # Look at the argument we got.  We use all the common list separators.
3254      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3255      for pkg in $enableval; do
3256	IFS="$lt_save_ifs"
3257	if test "X$pkg" = "X$p"; then
3258	  enable_static=yes
3259	fi
3260      done
3261      IFS="$lt_save_ifs"
3262      ;;
3263    esac
3264else
3265  enable_static=yes
3266fi;
3267
3268# Check whether --enable-fast-install or --disable-fast-install was given.
3269if test "${enable_fast_install+set}" = set; then
3270  enableval="$enable_fast_install"
3271  p=${PACKAGE-default}
3272    case $enableval in
3273    yes) enable_fast_install=yes ;;
3274    no) enable_fast_install=no ;;
3275    *)
3276      enable_fast_install=no
3277      # Look at the argument we got.  We use all the common list separators.
3278      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3279      for pkg in $enableval; do
3280	IFS="$lt_save_ifs"
3281	if test "X$pkg" = "X$p"; then
3282	  enable_fast_install=yes
3283	fi
3284      done
3285      IFS="$lt_save_ifs"
3286      ;;
3287    esac
3288else
3289  enable_fast_install=yes
3290fi;
3291
3292# Make sure we can run config.sub.
3293$ac_config_sub sun4 >/dev/null 2>&1 ||
3294  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3295echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3296   { (exit 1); exit 1; }; }
3297
3298echo "$as_me:$LINENO: checking build system type" >&5
3299echo $ECHO_N "checking build system type... $ECHO_C" >&6
3300if test "${ac_cv_build+set}" = set; then
3301  echo $ECHO_N "(cached) $ECHO_C" >&6
3302else
3303  ac_cv_build_alias=$build_alias
3304test -z "$ac_cv_build_alias" &&
3305  ac_cv_build_alias=`$ac_config_guess`
3306test -z "$ac_cv_build_alias" &&
3307  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3308echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3309   { (exit 1); exit 1; }; }
3310ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3311  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3312echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3313   { (exit 1); exit 1; }; }
3314
3315fi
3316echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3317echo "${ECHO_T}$ac_cv_build" >&6
3318build=$ac_cv_build
3319build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3320build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3321build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3322
3323
3324echo "$as_me:$LINENO: checking host system type" >&5
3325echo $ECHO_N "checking host system type... $ECHO_C" >&6
3326if test "${ac_cv_host+set}" = set; then
3327  echo $ECHO_N "(cached) $ECHO_C" >&6
3328else
3329  ac_cv_host_alias=$host_alias
3330test -z "$ac_cv_host_alias" &&
3331  ac_cv_host_alias=$ac_cv_build_alias
3332ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3333  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3334echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3335   { (exit 1); exit 1; }; }
3336
3337fi
3338echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3339echo "${ECHO_T}$ac_cv_host" >&6
3340host=$ac_cv_host
3341host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3342host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3343host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3344
3345
3346echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3347echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3348if test "${lt_cv_path_SED+set}" = set; then
3349  echo $ECHO_N "(cached) $ECHO_C" >&6
3350else
3351  # Loop through the user's path and test for sed and gsed.
3352# Then use that list of sed's as ones to test for truncation.
3353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3354for as_dir in $PATH
3355do
3356  IFS=$as_save_IFS
3357  test -z "$as_dir" && as_dir=.
3358  for lt_ac_prog in sed gsed; do
3359    for ac_exec_ext in '' $ac_executable_extensions; do
3360      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3361        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3362      fi
3363    done
3364  done
3365done
3366lt_ac_max=0
3367lt_ac_count=0
3368# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3369# along with /bin/sed that truncates output.
3370for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3371  test ! -f $lt_ac_sed && continue
3372  cat /dev/null > conftest.in
3373  lt_ac_count=0
3374  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3375  # Check for GNU sed and select it if it is found.
3376  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3377    lt_cv_path_SED=$lt_ac_sed
3378    break
3379  fi
3380  while true; do
3381    cat conftest.in conftest.in >conftest.tmp
3382    mv conftest.tmp conftest.in
3383    cp conftest.in conftest.nl
3384    echo >>conftest.nl
3385    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3386    cmp -s conftest.out conftest.nl || break
3387    # 10000 chars as input seems more than enough
3388    test $lt_ac_count -gt 10 && break
3389    lt_ac_count=`expr $lt_ac_count + 1`
3390    if test $lt_ac_count -gt $lt_ac_max; then
3391      lt_ac_max=$lt_ac_count
3392      lt_cv_path_SED=$lt_ac_sed
3393    fi
3394  done
3395done
3396
3397fi
3398
3399SED=$lt_cv_path_SED
3400echo "$as_me:$LINENO: result: $SED" >&5
3401echo "${ECHO_T}$SED" >&6
3402
3403echo "$as_me:$LINENO: checking for egrep" >&5
3404echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3405if test "${ac_cv_prog_egrep+set}" = set; then
3406  echo $ECHO_N "(cached) $ECHO_C" >&6
3407else
3408  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3409    then ac_cv_prog_egrep='grep -E'
3410    else ac_cv_prog_egrep='egrep'
3411    fi
3412fi
3413echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3414echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3415 EGREP=$ac_cv_prog_egrep
3416
3417
3418
3419# Check whether --with-gnu-ld or --without-gnu-ld was given.
3420if test "${with_gnu_ld+set}" = set; then
3421  withval="$with_gnu_ld"
3422  test "$withval" = no || with_gnu_ld=yes
3423else
3424  with_gnu_ld=no
3425fi;
3426ac_prog=ld
3427if test "$GCC" = yes; then
3428  # Check if gcc -print-prog-name=ld gives a path.
3429  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3430echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3431  case $host in
3432  *-*-mingw*)
3433    # gcc leaves a trailing carriage return which upsets mingw
3434    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3435  *)
3436    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3437  esac
3438  case $ac_prog in
3439    # Accept absolute paths.
3440    [\\/]* | ?:[\\/]*)
3441      re_direlt='/[^/][^/]*/\.\./'
3442      # Canonicalize the pathname of ld
3443      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3444      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3445	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3446      done
3447      test -z "$LD" && LD="$ac_prog"
3448      ;;
3449  "")
3450    # If it fails, then pretend we aren't using GCC.
3451    ac_prog=ld
3452    ;;
3453  *)
3454    # If it is relative, then search for the first ld in PATH.
3455    with_gnu_ld=unknown
3456    ;;
3457  esac
3458elif test "$with_gnu_ld" = yes; then
3459  echo "$as_me:$LINENO: checking for GNU ld" >&5
3460echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3461else
3462  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3463echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3464fi
3465if test "${lt_cv_path_LD+set}" = set; then
3466  echo $ECHO_N "(cached) $ECHO_C" >&6
3467else
3468  if test -z "$LD"; then
3469  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3470  for ac_dir in $PATH; do
3471    IFS="$lt_save_ifs"
3472    test -z "$ac_dir" && ac_dir=.
3473    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3474      lt_cv_path_LD="$ac_dir/$ac_prog"
3475      # Check to see if the program is GNU ld.  I'd rather use --version,
3476      # but apparently some variants of GNU ld only accept -v.
3477      # Break only if it was the GNU/non-GNU ld that we prefer.
3478      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3479      *GNU* | *'with BFD'*)
3480	test "$with_gnu_ld" != no && break
3481	;;
3482      *)
3483	test "$with_gnu_ld" != yes && break
3484	;;
3485      esac
3486    fi
3487  done
3488  IFS="$lt_save_ifs"
3489else
3490  lt_cv_path_LD="$LD" # Let the user override the test with a path.
3491fi
3492fi
3493
3494LD="$lt_cv_path_LD"
3495if test -n "$LD"; then
3496  echo "$as_me:$LINENO: result: $LD" >&5
3497echo "${ECHO_T}$LD" >&6
3498else
3499  echo "$as_me:$LINENO: result: no" >&5
3500echo "${ECHO_T}no" >&6
3501fi
3502test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3503echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3504   { (exit 1); exit 1; }; }
3505echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3506echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3507if test "${lt_cv_prog_gnu_ld+set}" = set; then
3508  echo $ECHO_N "(cached) $ECHO_C" >&6
3509else
3510  # I'd rather use --version here, but apparently some GNU lds only accept -v.
3511case `$LD -v 2>&1 </dev/null` in
3512*GNU* | *'with BFD'*)
3513  lt_cv_prog_gnu_ld=yes
3514  ;;
3515*)
3516  lt_cv_prog_gnu_ld=no
3517  ;;
3518esac
3519fi
3520echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3521echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3522with_gnu_ld=$lt_cv_prog_gnu_ld
3523
3524
3525echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3526echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3527if test "${lt_cv_ld_reload_flag+set}" = set; then
3528  echo $ECHO_N "(cached) $ECHO_C" >&6
3529else
3530  lt_cv_ld_reload_flag='-r'
3531fi
3532echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3533echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3534reload_flag=$lt_cv_ld_reload_flag
3535case $reload_flag in
3536"" | " "*) ;;
3537*) reload_flag=" $reload_flag" ;;
3538esac
3539reload_cmds='$LD$reload_flag -o $output$reload_objs'
3540case $host_os in
3541  darwin*)
3542    if test "$GCC" = yes; then
3543      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3544    else
3545      reload_cmds='$LD$reload_flag -o $output$reload_objs'
3546    fi
3547    ;;
3548esac
3549
3550echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3551echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3552if test "${lt_cv_path_NM+set}" = set; then
3553  echo $ECHO_N "(cached) $ECHO_C" >&6
3554else
3555  if test -n "$NM"; then
3556  # Let the user override the test.
3557  lt_cv_path_NM="$NM"
3558else
3559  lt_nm_to_check="${ac_tool_prefix}nm"
3560  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3561    lt_nm_to_check="$lt_nm_to_check nm"
3562  fi
3563  for lt_tmp_nm in $lt_nm_to_check; do
3564    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3565    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3566      IFS="$lt_save_ifs"
3567      test -z "$ac_dir" && ac_dir=.
3568      tmp_nm="$ac_dir/$lt_tmp_nm"
3569      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3570	# Check to see if the nm accepts a BSD-compat flag.
3571	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
3572	#   nm: unknown option "B" ignored
3573	# Tru64's nm complains that /dev/null is an invalid object file
3574	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3575	*/dev/null* | *'Invalid file or object type'*)
3576	  lt_cv_path_NM="$tmp_nm -B"
3577	  break
3578	  ;;
3579	*)
3580	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3581	  */dev/null*)
3582	    lt_cv_path_NM="$tmp_nm -p"
3583	    break
3584	    ;;
3585	  *)
3586	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3587	    continue # so that we can try to find one that supports BSD flags
3588	    ;;
3589	  esac
3590	  ;;
3591	esac
3592      fi
3593    done
3594    IFS="$lt_save_ifs"
3595  done
3596  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3597fi
3598fi
3599echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3600echo "${ECHO_T}$lt_cv_path_NM" >&6
3601NM="$lt_cv_path_NM"
3602
3603echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3604echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3605if test "${lt_cv_deplibs_check_method+set}" = set; then
3606  echo $ECHO_N "(cached) $ECHO_C" >&6
3607else
3608  lt_cv_file_magic_cmd='$MAGIC_CMD'
3609lt_cv_file_magic_test_file=
3610lt_cv_deplibs_check_method='unknown'
3611# Need to set the preceding variable on all platforms that support
3612# interlibrary dependencies.
3613# 'none' -- dependencies not supported.
3614# `unknown' -- same as none, but documents that we really don't know.
3615# 'pass_all' -- all dependencies passed with no checks.
3616# 'test_compile' -- check by making test program.
3617# 'file_magic [[regex]]' -- check by looking for files in library path
3618# which responds to the $file_magic_cmd with a given extended regex.
3619# If you have `file' or equivalent on your system and you're not sure
3620# whether `pass_all' will *always* work, you probably want this one.
3621
3622case $host_os in
3623aix4* | aix5*)
3624  lt_cv_deplibs_check_method=pass_all
3625  ;;
3626
3627beos*)
3628  lt_cv_deplibs_check_method=pass_all
3629  ;;
3630
3631bsdi[45]*)
3632  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3633  lt_cv_file_magic_cmd='/usr/bin/file -L'
3634  lt_cv_file_magic_test_file=/shlib/libc.so
3635  ;;
3636
3637cygwin*)
3638  # func_win32_libid is a shell function defined in ltmain.sh
3639  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3640  lt_cv_file_magic_cmd='func_win32_libid'
3641  ;;
3642
3643mingw* | pw32*)
3644  # Base MSYS/MinGW do not provide the 'file' command needed by
3645  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3646  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3647  lt_cv_file_magic_cmd='$OBJDUMP -f'
3648  ;;
3649
3650darwin* | rhapsody*)
3651  lt_cv_deplibs_check_method=pass_all
3652  ;;
3653
3654freebsd* | kfreebsd*-gnu | dragonfly*)
3655  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3656    case $host_cpu in
3657    i*86 )
3658      # Not sure whether the presence of OpenBSD here was a mistake.
3659      # Let's accept both of them until this is cleared up.
3660      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3661      lt_cv_file_magic_cmd=/usr/bin/file
3662      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3663      ;;
3664    esac
3665  else
3666    lt_cv_deplibs_check_method=pass_all
3667  fi
3668  ;;
3669
3670gnu*)
3671  lt_cv_deplibs_check_method=pass_all
3672  ;;
3673
3674hpux10.20* | hpux11*)
3675  lt_cv_file_magic_cmd=/usr/bin/file
3676  case $host_cpu in
3677  ia64*)
3678    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3679    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3680    ;;
3681  hppa*64*)
3682    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]'
3683    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3684    ;;
3685  *)
3686    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3687    lt_cv_file_magic_test_file=/usr/lib/libc.sl
3688    ;;
3689  esac
3690  ;;
3691
3692interix3*)
3693  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3694  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3695  ;;
3696
3697irix5* | irix6* | nonstopux*)
3698  case $LD in
3699  *-32|*"-32 ") libmagic=32-bit;;
3700  *-n32|*"-n32 ") libmagic=N32;;
3701  *-64|*"-64 ") libmagic=64-bit;;
3702  *) libmagic=never-match;;
3703  esac
3704  lt_cv_deplibs_check_method=pass_all
3705  ;;
3706
3707# This must be Linux ELF.
3708linux*)
3709  lt_cv_deplibs_check_method=pass_all
3710  ;;
3711
3712netbsd*)
3713  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3714    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3715  else
3716    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3717  fi
3718  ;;
3719
3720newos6*)
3721  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3722  lt_cv_file_magic_cmd=/usr/bin/file
3723  lt_cv_file_magic_test_file=/usr/lib/libnls.so
3724  ;;
3725
3726nto-qnx*)
3727  lt_cv_deplibs_check_method=unknown
3728  ;;
3729
3730openbsd*)
3731  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3732    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3733  else
3734    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3735  fi
3736  ;;
3737
3738osf3* | osf4* | osf5*)
3739  lt_cv_deplibs_check_method=pass_all
3740  ;;
3741
3742solaris*)
3743  lt_cv_deplibs_check_method=pass_all
3744  ;;
3745
3746sysv4 | sysv4.3*)
3747  case $host_vendor in
3748  motorola)
3749    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]'
3750    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3751    ;;
3752  ncr)
3753    lt_cv_deplibs_check_method=pass_all
3754    ;;
3755  sequent)
3756    lt_cv_file_magic_cmd='/bin/file'
3757    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3758    ;;
3759  sni)
3760    lt_cv_file_magic_cmd='/bin/file'
3761    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3762    lt_cv_file_magic_test_file=/lib/libc.so
3763    ;;
3764  siemens)
3765    lt_cv_deplibs_check_method=pass_all
3766    ;;
3767  pc)
3768    lt_cv_deplibs_check_method=pass_all
3769    ;;
3770  esac
3771  ;;
3772
3773sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3774  lt_cv_deplibs_check_method=pass_all
3775  ;;
3776esac
3777
3778fi
3779echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3780echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3781file_magic_cmd=$lt_cv_file_magic_cmd
3782deplibs_check_method=$lt_cv_deplibs_check_method
3783test -z "$deplibs_check_method" && deplibs_check_method=unknown
3784
3785
3786
3787
3788# If no C compiler was specified, use CC.
3789LTCC=${LTCC-"$CC"}
3790
3791# If no C compiler flags were specified, use CFLAGS.
3792LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3793
3794# Allow CC to be a program name with arguments.
3795compiler=$CC
3796
3797
3798# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3799if test "${enable_libtool_lock+set}" = set; then
3800  enableval="$enable_libtool_lock"
3801
3802fi;
3803test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3804
3805# Some flags need to be propagated to the compiler or linker for good
3806# libtool support.
3807case $host in
3808ia64-*-hpux*)
3809  # Find out which ABI we are using.
3810  echo 'int i;' > conftest.$ac_ext
3811  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3812  (eval $ac_compile) 2>&5
3813  ac_status=$?
3814  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815  (exit $ac_status); }; then
3816    case `/usr/bin/file conftest.$ac_objext` in
3817    *ELF-32*)
3818      HPUX_IA64_MODE="32"
3819      ;;
3820    *ELF-64*)
3821      HPUX_IA64_MODE="64"
3822      ;;
3823    esac
3824  fi
3825  rm -rf conftest*
3826  ;;
3827*-*-irix6*)
3828  # Find out which ABI we are using.
3829  echo '#line 3829 "configure"' > conftest.$ac_ext
3830  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3831  (eval $ac_compile) 2>&5
3832  ac_status=$?
3833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3834  (exit $ac_status); }; then
3835   if test "$lt_cv_prog_gnu_ld" = yes; then
3836    case `/usr/bin/file conftest.$ac_objext` in
3837    *32-bit*)
3838      LD="${LD-ld} -melf32bsmip"
3839      ;;
3840    *N32*)
3841      LD="${LD-ld} -melf32bmipn32"
3842      ;;
3843    *64-bit*)
3844      LD="${LD-ld} -melf64bmip"
3845      ;;
3846    esac
3847   else
3848    case `/usr/bin/file conftest.$ac_objext` in
3849    *32-bit*)
3850      LD="${LD-ld} -32"
3851      ;;
3852    *N32*)
3853      LD="${LD-ld} -n32"
3854      ;;
3855    *64-bit*)
3856      LD="${LD-ld} -64"
3857      ;;
3858    esac
3859   fi
3860  fi
3861  rm -rf conftest*
3862  ;;
3863
3864x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3865  # Find out which ABI we are using.
3866  echo 'int i;' > conftest.$ac_ext
3867  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3868  (eval $ac_compile) 2>&5
3869  ac_status=$?
3870  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3871  (exit $ac_status); }; then
3872    case `/usr/bin/file conftest.o` in
3873    *32-bit*)
3874      case $host in
3875        x86_64-*linux*)
3876          LD="${LD-ld} -m elf_i386"
3877          ;;
3878        ppc64-*linux*|powerpc64-*linux*)
3879          LD="${LD-ld} -m elf32ppclinux"
3880          ;;
3881        s390x-*linux*)
3882          LD="${LD-ld} -m elf_s390"
3883          ;;
3884        sparc64-*linux*)
3885          LD="${LD-ld} -m elf32_sparc"
3886          ;;
3887      esac
3888      ;;
3889    *64-bit*)
3890      case $host in
3891        x86_64-*linux*)
3892          LD="${LD-ld} -m elf_x86_64"
3893          ;;
3894        ppc*-*linux*|powerpc*-*linux*)
3895          LD="${LD-ld} -m elf64ppc"
3896          ;;
3897        s390*-*linux*)
3898          LD="${LD-ld} -m elf64_s390"
3899          ;;
3900        sparc*-*linux*)
3901          LD="${LD-ld} -m elf64_sparc"
3902          ;;
3903      esac
3904      ;;
3905    esac
3906  fi
3907  rm -rf conftest*
3908  ;;
3909
3910*-*-sco3.2v5*)
3911  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3912  SAVE_CFLAGS="$CFLAGS"
3913  CFLAGS="$CFLAGS -belf"
3914  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3915echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3916if test "${lt_cv_cc_needs_belf+set}" = set; then
3917  echo $ECHO_N "(cached) $ECHO_C" >&6
3918else
3919  ac_ext=c
3920ac_cpp='$CPP $CPPFLAGS'
3921ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3922ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3923ac_compiler_gnu=$ac_cv_c_compiler_gnu
3924
3925     cat >conftest.$ac_ext <<_ACEOF
3926/* confdefs.h.  */
3927_ACEOF
3928cat confdefs.h >>conftest.$ac_ext
3929cat >>conftest.$ac_ext <<_ACEOF
3930/* end confdefs.h.  */
3931
3932int
3933main ()
3934{
3935
3936  ;
3937  return 0;
3938}
3939_ACEOF
3940rm -f conftest.$ac_objext conftest$ac_exeext
3941if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3942  (eval $ac_link) 2>conftest.er1
3943  ac_status=$?
3944  grep -v '^ *+' conftest.er1 >conftest.err
3945  rm -f conftest.er1
3946  cat conftest.err >&5
3947  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3948  (exit $ac_status); } &&
3949	 { ac_try='test -z "$ac_c_werror_flag"
3950			 || test ! -s conftest.err'
3951  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3952  (eval $ac_try) 2>&5
3953  ac_status=$?
3954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3955  (exit $ac_status); }; } &&
3956	 { ac_try='test -s conftest$ac_exeext'
3957  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3958  (eval $ac_try) 2>&5
3959  ac_status=$?
3960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3961  (exit $ac_status); }; }; then
3962  lt_cv_cc_needs_belf=yes
3963else
3964  echo "$as_me: failed program was:" >&5
3965sed 's/^/| /' conftest.$ac_ext >&5
3966
3967lt_cv_cc_needs_belf=no
3968fi
3969rm -f conftest.err conftest.$ac_objext \
3970      conftest$ac_exeext conftest.$ac_ext
3971     ac_ext=c
3972ac_cpp='$CPP $CPPFLAGS'
3973ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3974ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3975ac_compiler_gnu=$ac_cv_c_compiler_gnu
3976
3977fi
3978echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3979echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3980  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3981    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3982    CFLAGS="$SAVE_CFLAGS"
3983  fi
3984  ;;
3985sparc*-*solaris*)
3986  # Find out which ABI we are using.
3987  echo 'int i;' > conftest.$ac_ext
3988  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3989  (eval $ac_compile) 2>&5
3990  ac_status=$?
3991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3992  (exit $ac_status); }; then
3993    case `/usr/bin/file conftest.o` in
3994    *64-bit*)
3995      case $lt_cv_prog_gnu_ld in
3996      yes*) LD="${LD-ld} -m elf64_sparc" ;;
3997      *)    LD="${LD-ld} -64" ;;
3998      esac
3999      ;;
4000    esac
4001  fi
4002  rm -rf conftest*
4003  ;;
4004
4005*-*-cygwin* | *-*-mingw* | *-*-pw32*)
4006  if test -n "$ac_tool_prefix"; then
4007  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4008set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4009echo "$as_me:$LINENO: checking for $ac_word" >&5
4010echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4011if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4012  echo $ECHO_N "(cached) $ECHO_C" >&6
4013else
4014  if test -n "$DLLTOOL"; then
4015  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4016else
4017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4018for as_dir in $PATH
4019do
4020  IFS=$as_save_IFS
4021  test -z "$as_dir" && as_dir=.
4022  for ac_exec_ext in '' $ac_executable_extensions; do
4023  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4024    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4025    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4026    break 2
4027  fi
4028done
4029done
4030
4031fi
4032fi
4033DLLTOOL=$ac_cv_prog_DLLTOOL
4034if test -n "$DLLTOOL"; then
4035  echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4036echo "${ECHO_T}$DLLTOOL" >&6
4037else
4038  echo "$as_me:$LINENO: result: no" >&5
4039echo "${ECHO_T}no" >&6
4040fi
4041
4042fi
4043if test -z "$ac_cv_prog_DLLTOOL"; then
4044  ac_ct_DLLTOOL=$DLLTOOL
4045  # Extract the first word of "dlltool", so it can be a program name with args.
4046set dummy dlltool; ac_word=$2
4047echo "$as_me:$LINENO: checking for $ac_word" >&5
4048echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4049if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4050  echo $ECHO_N "(cached) $ECHO_C" >&6
4051else
4052  if test -n "$ac_ct_DLLTOOL"; then
4053  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4054else
4055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4056for as_dir in $PATH
4057do
4058  IFS=$as_save_IFS
4059  test -z "$as_dir" && as_dir=.
4060  for ac_exec_ext in '' $ac_executable_extensions; do
4061  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4062    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4063    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4064    break 2
4065  fi
4066done
4067done
4068
4069  test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
4070fi
4071fi
4072ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4073if test -n "$ac_ct_DLLTOOL"; then
4074  echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4075echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
4076else
4077  echo "$as_me:$LINENO: result: no" >&5
4078echo "${ECHO_T}no" >&6
4079fi
4080
4081  DLLTOOL=$ac_ct_DLLTOOL
4082else
4083  DLLTOOL="$ac_cv_prog_DLLTOOL"
4084fi
4085
4086  if test -n "$ac_tool_prefix"; then
4087  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4088set dummy ${ac_tool_prefix}as; ac_word=$2
4089echo "$as_me:$LINENO: checking for $ac_word" >&5
4090echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4091if test "${ac_cv_prog_AS+set}" = set; then
4092  echo $ECHO_N "(cached) $ECHO_C" >&6
4093else
4094  if test -n "$AS"; then
4095  ac_cv_prog_AS="$AS" # Let the user override the test.
4096else
4097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4098for as_dir in $PATH
4099do
4100  IFS=$as_save_IFS
4101  test -z "$as_dir" && as_dir=.
4102  for ac_exec_ext in '' $ac_executable_extensions; do
4103  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4104    ac_cv_prog_AS="${ac_tool_prefix}as"
4105    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4106    break 2
4107  fi
4108done
4109done
4110
4111fi
4112fi
4113AS=$ac_cv_prog_AS
4114if test -n "$AS"; then
4115  echo "$as_me:$LINENO: result: $AS" >&5
4116echo "${ECHO_T}$AS" >&6
4117else
4118  echo "$as_me:$LINENO: result: no" >&5
4119echo "${ECHO_T}no" >&6
4120fi
4121
4122fi
4123if test -z "$ac_cv_prog_AS"; then
4124  ac_ct_AS=$AS
4125  # Extract the first word of "as", so it can be a program name with args.
4126set dummy as; ac_word=$2
4127echo "$as_me:$LINENO: checking for $ac_word" >&5
4128echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4129if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4130  echo $ECHO_N "(cached) $ECHO_C" >&6
4131else
4132  if test -n "$ac_ct_AS"; then
4133  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4134else
4135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4136for as_dir in $PATH
4137do
4138  IFS=$as_save_IFS
4139  test -z "$as_dir" && as_dir=.
4140  for ac_exec_ext in '' $ac_executable_extensions; do
4141  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4142    ac_cv_prog_ac_ct_AS="as"
4143    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4144    break 2
4145  fi
4146done
4147done
4148
4149  test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
4150fi
4151fi
4152ac_ct_AS=$ac_cv_prog_ac_ct_AS
4153if test -n "$ac_ct_AS"; then
4154  echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4155echo "${ECHO_T}$ac_ct_AS" >&6
4156else
4157  echo "$as_me:$LINENO: result: no" >&5
4158echo "${ECHO_T}no" >&6
4159fi
4160
4161  AS=$ac_ct_AS
4162else
4163  AS="$ac_cv_prog_AS"
4164fi
4165
4166  if test -n "$ac_tool_prefix"; then
4167  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4168set dummy ${ac_tool_prefix}objdump; ac_word=$2
4169echo "$as_me:$LINENO: checking for $ac_word" >&5
4170echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4171if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4172  echo $ECHO_N "(cached) $ECHO_C" >&6
4173else
4174  if test -n "$OBJDUMP"; then
4175  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4176else
4177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4178for as_dir in $PATH
4179do
4180  IFS=$as_save_IFS
4181  test -z "$as_dir" && as_dir=.
4182  for ac_exec_ext in '' $ac_executable_extensions; do
4183  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4184    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4185    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4186    break 2
4187  fi
4188done
4189done
4190
4191fi
4192fi
4193OBJDUMP=$ac_cv_prog_OBJDUMP
4194if test -n "$OBJDUMP"; then
4195  echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4196echo "${ECHO_T}$OBJDUMP" >&6
4197else
4198  echo "$as_me:$LINENO: result: no" >&5
4199echo "${ECHO_T}no" >&6
4200fi
4201
4202fi
4203if test -z "$ac_cv_prog_OBJDUMP"; then
4204  ac_ct_OBJDUMP=$OBJDUMP
4205  # Extract the first word of "objdump", so it can be a program name with args.
4206set dummy objdump; ac_word=$2
4207echo "$as_me:$LINENO: checking for $ac_word" >&5
4208echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4209if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4210  echo $ECHO_N "(cached) $ECHO_C" >&6
4211else
4212  if test -n "$ac_ct_OBJDUMP"; then
4213  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4214else
4215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4216for as_dir in $PATH
4217do
4218  IFS=$as_save_IFS
4219  test -z "$as_dir" && as_dir=.
4220  for ac_exec_ext in '' $ac_executable_extensions; do
4221  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4222    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4223    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4224    break 2
4225  fi
4226done
4227done
4228
4229  test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
4230fi
4231fi
4232ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4233if test -n "$ac_ct_OBJDUMP"; then
4234  echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4235echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
4236else
4237  echo "$as_me:$LINENO: result: no" >&5
4238echo "${ECHO_T}no" >&6
4239fi
4240
4241  OBJDUMP=$ac_ct_OBJDUMP
4242else
4243  OBJDUMP="$ac_cv_prog_OBJDUMP"
4244fi
4245
4246  ;;
4247
4248esac
4249
4250need_locks="$enable_libtool_lock"
4251
4252
4253ac_ext=c
4254ac_cpp='$CPP $CPPFLAGS'
4255ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4256ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4257ac_compiler_gnu=$ac_cv_c_compiler_gnu
4258echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4259echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4260# On Suns, sometimes $CPP names a directory.
4261if test -n "$CPP" && test -d "$CPP"; then
4262  CPP=
4263fi
4264if test -z "$CPP"; then
4265  if test "${ac_cv_prog_CPP+set}" = set; then
4266  echo $ECHO_N "(cached) $ECHO_C" >&6
4267else
4268      # Double quotes because CPP needs to be expanded
4269    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4270    do
4271      ac_preproc_ok=false
4272for ac_c_preproc_warn_flag in '' yes
4273do
4274  # Use a header file that comes with gcc, so configuring glibc
4275  # with a fresh cross-compiler works.
4276  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4277  # <limits.h> exists even on freestanding compilers.
4278  # On the NeXT, cc -E runs the code through the compiler's parser,
4279  # not just through cpp. "Syntax error" is here to catch this case.
4280  cat >conftest.$ac_ext <<_ACEOF
4281/* confdefs.h.  */
4282_ACEOF
4283cat confdefs.h >>conftest.$ac_ext
4284cat >>conftest.$ac_ext <<_ACEOF
4285/* end confdefs.h.  */
4286#ifdef __STDC__
4287# include <limits.h>
4288#else
4289# include <assert.h>
4290#endif
4291		     Syntax error
4292_ACEOF
4293if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4294  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4295  ac_status=$?
4296  grep -v '^ *+' conftest.er1 >conftest.err
4297  rm -f conftest.er1
4298  cat conftest.err >&5
4299  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4300  (exit $ac_status); } >/dev/null; then
4301  if test -s conftest.err; then
4302    ac_cpp_err=$ac_c_preproc_warn_flag
4303    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4304  else
4305    ac_cpp_err=
4306  fi
4307else
4308  ac_cpp_err=yes
4309fi
4310if test -z "$ac_cpp_err"; then
4311  :
4312else
4313  echo "$as_me: failed program was:" >&5
4314sed 's/^/| /' conftest.$ac_ext >&5
4315
4316  # Broken: fails on valid input.
4317continue
4318fi
4319rm -f conftest.err conftest.$ac_ext
4320
4321  # OK, works on sane cases.  Now check whether non-existent headers
4322  # can be detected and how.
4323  cat >conftest.$ac_ext <<_ACEOF
4324/* confdefs.h.  */
4325_ACEOF
4326cat confdefs.h >>conftest.$ac_ext
4327cat >>conftest.$ac_ext <<_ACEOF
4328/* end confdefs.h.  */
4329#include <ac_nonexistent.h>
4330_ACEOF
4331if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4332  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4333  ac_status=$?
4334  grep -v '^ *+' conftest.er1 >conftest.err
4335  rm -f conftest.er1
4336  cat conftest.err >&5
4337  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4338  (exit $ac_status); } >/dev/null; then
4339  if test -s conftest.err; then
4340    ac_cpp_err=$ac_c_preproc_warn_flag
4341    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4342  else
4343    ac_cpp_err=
4344  fi
4345else
4346  ac_cpp_err=yes
4347fi
4348if test -z "$ac_cpp_err"; then
4349  # Broken: success on invalid input.
4350continue
4351else
4352  echo "$as_me: failed program was:" >&5
4353sed 's/^/| /' conftest.$ac_ext >&5
4354
4355  # Passes both tests.
4356ac_preproc_ok=:
4357break
4358fi
4359rm -f conftest.err conftest.$ac_ext
4360
4361done
4362# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4363rm -f conftest.err conftest.$ac_ext
4364if $ac_preproc_ok; then
4365  break
4366fi
4367
4368    done
4369    ac_cv_prog_CPP=$CPP
4370
4371fi
4372  CPP=$ac_cv_prog_CPP
4373else
4374  ac_cv_prog_CPP=$CPP
4375fi
4376echo "$as_me:$LINENO: result: $CPP" >&5
4377echo "${ECHO_T}$CPP" >&6
4378ac_preproc_ok=false
4379for ac_c_preproc_warn_flag in '' yes
4380do
4381  # Use a header file that comes with gcc, so configuring glibc
4382  # with a fresh cross-compiler works.
4383  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4384  # <limits.h> exists even on freestanding compilers.
4385  # On the NeXT, cc -E runs the code through the compiler's parser,
4386  # not just through cpp. "Syntax error" is here to catch this case.
4387  cat >conftest.$ac_ext <<_ACEOF
4388/* confdefs.h.  */
4389_ACEOF
4390cat confdefs.h >>conftest.$ac_ext
4391cat >>conftest.$ac_ext <<_ACEOF
4392/* end confdefs.h.  */
4393#ifdef __STDC__
4394# include <limits.h>
4395#else
4396# include <assert.h>
4397#endif
4398		     Syntax error
4399_ACEOF
4400if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4401  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4402  ac_status=$?
4403  grep -v '^ *+' conftest.er1 >conftest.err
4404  rm -f conftest.er1
4405  cat conftest.err >&5
4406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407  (exit $ac_status); } >/dev/null; then
4408  if test -s conftest.err; then
4409    ac_cpp_err=$ac_c_preproc_warn_flag
4410    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4411  else
4412    ac_cpp_err=
4413  fi
4414else
4415  ac_cpp_err=yes
4416fi
4417if test -z "$ac_cpp_err"; then
4418  :
4419else
4420  echo "$as_me: failed program was:" >&5
4421sed 's/^/| /' conftest.$ac_ext >&5
4422
4423  # Broken: fails on valid input.
4424continue
4425fi
4426rm -f conftest.err conftest.$ac_ext
4427
4428  # OK, works on sane cases.  Now check whether non-existent headers
4429  # can be detected and how.
4430  cat >conftest.$ac_ext <<_ACEOF
4431/* confdefs.h.  */
4432_ACEOF
4433cat confdefs.h >>conftest.$ac_ext
4434cat >>conftest.$ac_ext <<_ACEOF
4435/* end confdefs.h.  */
4436#include <ac_nonexistent.h>
4437_ACEOF
4438if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4439  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4440  ac_status=$?
4441  grep -v '^ *+' conftest.er1 >conftest.err
4442  rm -f conftest.er1
4443  cat conftest.err >&5
4444  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445  (exit $ac_status); } >/dev/null; then
4446  if test -s conftest.err; then
4447    ac_cpp_err=$ac_c_preproc_warn_flag
4448    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4449  else
4450    ac_cpp_err=
4451  fi
4452else
4453  ac_cpp_err=yes
4454fi
4455if test -z "$ac_cpp_err"; then
4456  # Broken: success on invalid input.
4457continue
4458else
4459  echo "$as_me: failed program was:" >&5
4460sed 's/^/| /' conftest.$ac_ext >&5
4461
4462  # Passes both tests.
4463ac_preproc_ok=:
4464break
4465fi
4466rm -f conftest.err conftest.$ac_ext
4467
4468done
4469# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4470rm -f conftest.err conftest.$ac_ext
4471if $ac_preproc_ok; then
4472  :
4473else
4474  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4475See \`config.log' for more details." >&5
4476echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4477See \`config.log' for more details." >&2;}
4478   { (exit 1); exit 1; }; }
4479fi
4480
4481ac_ext=c
4482ac_cpp='$CPP $CPPFLAGS'
4483ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4484ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4485ac_compiler_gnu=$ac_cv_c_compiler_gnu
4486
4487
4488echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4489echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4490if test "${ac_cv_header_stdc+set}" = set; then
4491  echo $ECHO_N "(cached) $ECHO_C" >&6
4492else
4493  cat >conftest.$ac_ext <<_ACEOF
4494/* confdefs.h.  */
4495_ACEOF
4496cat confdefs.h >>conftest.$ac_ext
4497cat >>conftest.$ac_ext <<_ACEOF
4498/* end confdefs.h.  */
4499#include <stdlib.h>
4500#include <stdarg.h>
4501#include <string.h>
4502#include <float.h>
4503
4504int
4505main ()
4506{
4507
4508  ;
4509  return 0;
4510}
4511_ACEOF
4512rm -f conftest.$ac_objext
4513if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4514  (eval $ac_compile) 2>conftest.er1
4515  ac_status=$?
4516  grep -v '^ *+' conftest.er1 >conftest.err
4517  rm -f conftest.er1
4518  cat conftest.err >&5
4519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4520  (exit $ac_status); } &&
4521	 { ac_try='test -z "$ac_c_werror_flag"
4522			 || test ! -s conftest.err'
4523  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4524  (eval $ac_try) 2>&5
4525  ac_status=$?
4526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527  (exit $ac_status); }; } &&
4528	 { ac_try='test -s conftest.$ac_objext'
4529  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4530  (eval $ac_try) 2>&5
4531  ac_status=$?
4532  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533  (exit $ac_status); }; }; then
4534  ac_cv_header_stdc=yes
4535else
4536  echo "$as_me: failed program was:" >&5
4537sed 's/^/| /' conftest.$ac_ext >&5
4538
4539ac_cv_header_stdc=no
4540fi
4541rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4542
4543if test $ac_cv_header_stdc = yes; then
4544  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4545  cat >conftest.$ac_ext <<_ACEOF
4546/* confdefs.h.  */
4547_ACEOF
4548cat confdefs.h >>conftest.$ac_ext
4549cat >>conftest.$ac_ext <<_ACEOF
4550/* end confdefs.h.  */
4551#include <string.h>
4552
4553_ACEOF
4554if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4555  $EGREP "memchr" >/dev/null 2>&1; then
4556  :
4557else
4558  ac_cv_header_stdc=no
4559fi
4560rm -f conftest*
4561
4562fi
4563
4564if test $ac_cv_header_stdc = yes; then
4565  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4566  cat >conftest.$ac_ext <<_ACEOF
4567/* confdefs.h.  */
4568_ACEOF
4569cat confdefs.h >>conftest.$ac_ext
4570cat >>conftest.$ac_ext <<_ACEOF
4571/* end confdefs.h.  */
4572#include <stdlib.h>
4573
4574_ACEOF
4575if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4576  $EGREP "free" >/dev/null 2>&1; then
4577  :
4578else
4579  ac_cv_header_stdc=no
4580fi
4581rm -f conftest*
4582
4583fi
4584
4585if test $ac_cv_header_stdc = yes; then
4586  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4587  if test "$cross_compiling" = yes; then
4588  :
4589else
4590  cat >conftest.$ac_ext <<_ACEOF
4591/* confdefs.h.  */
4592_ACEOF
4593cat confdefs.h >>conftest.$ac_ext
4594cat >>conftest.$ac_ext <<_ACEOF
4595/* end confdefs.h.  */
4596#include <ctype.h>
4597#if ((' ' & 0x0FF) == 0x020)
4598# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4599# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4600#else
4601# define ISLOWER(c) \
4602		   (('a' <= (c) && (c) <= 'i') \
4603		     || ('j' <= (c) && (c) <= 'r') \
4604		     || ('s' <= (c) && (c) <= 'z'))
4605# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4606#endif
4607
4608#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4609int
4610main ()
4611{
4612  int i;
4613  for (i = 0; i < 256; i++)
4614    if (XOR (islower (i), ISLOWER (i))
4615	|| toupper (i) != TOUPPER (i))
4616      exit(2);
4617  exit (0);
4618}
4619_ACEOF
4620rm -f conftest$ac_exeext
4621if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4622  (eval $ac_link) 2>&5
4623  ac_status=$?
4624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4625  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4626  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4627  (eval $ac_try) 2>&5
4628  ac_status=$?
4629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630  (exit $ac_status); }; }; then
4631  :
4632else
4633  echo "$as_me: program exited with status $ac_status" >&5
4634echo "$as_me: failed program was:" >&5
4635sed 's/^/| /' conftest.$ac_ext >&5
4636
4637( exit $ac_status )
4638ac_cv_header_stdc=no
4639fi
4640rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4641fi
4642fi
4643fi
4644echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4645echo "${ECHO_T}$ac_cv_header_stdc" >&6
4646if test $ac_cv_header_stdc = yes; then
4647
4648cat >>confdefs.h <<\_ACEOF
4649#define STDC_HEADERS 1
4650_ACEOF
4651
4652fi
4653
4654# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4665		  inttypes.h stdint.h unistd.h
4666do
4667as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4668echo "$as_me:$LINENO: checking for $ac_header" >&5
4669echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4670if eval "test \"\${$as_ac_Header+set}\" = set"; then
4671  echo $ECHO_N "(cached) $ECHO_C" >&6
4672else
4673  cat >conftest.$ac_ext <<_ACEOF
4674/* confdefs.h.  */
4675_ACEOF
4676cat confdefs.h >>conftest.$ac_ext
4677cat >>conftest.$ac_ext <<_ACEOF
4678/* end confdefs.h.  */
4679$ac_includes_default
4680
4681#include <$ac_header>
4682_ACEOF
4683rm -f conftest.$ac_objext
4684if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4685  (eval $ac_compile) 2>conftest.er1
4686  ac_status=$?
4687  grep -v '^ *+' conftest.er1 >conftest.err
4688  rm -f conftest.er1
4689  cat conftest.err >&5
4690  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4691  (exit $ac_status); } &&
4692	 { ac_try='test -z "$ac_c_werror_flag"
4693			 || test ! -s conftest.err'
4694  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4695  (eval $ac_try) 2>&5
4696  ac_status=$?
4697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4698  (exit $ac_status); }; } &&
4699	 { ac_try='test -s conftest.$ac_objext'
4700  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4701  (eval $ac_try) 2>&5
4702  ac_status=$?
4703  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4704  (exit $ac_status); }; }; then
4705  eval "$as_ac_Header=yes"
4706else
4707  echo "$as_me: failed program was:" >&5
4708sed 's/^/| /' conftest.$ac_ext >&5
4709
4710eval "$as_ac_Header=no"
4711fi
4712rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4713fi
4714echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4715echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4716if test `eval echo '${'$as_ac_Header'}'` = yes; then
4717  cat >>confdefs.h <<_ACEOF
4718#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4719_ACEOF
4720
4721fi
4722
4723done
4724
4725
4726
4727for ac_header in dlfcn.h
4728do
4729as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4730if eval "test \"\${$as_ac_Header+set}\" = set"; then
4731  echo "$as_me:$LINENO: checking for $ac_header" >&5
4732echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4733if eval "test \"\${$as_ac_Header+set}\" = set"; then
4734  echo $ECHO_N "(cached) $ECHO_C" >&6
4735fi
4736echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4737echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4738else
4739  # Is the header compilable?
4740echo "$as_me:$LINENO: checking $ac_header usability" >&5
4741echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4742cat >conftest.$ac_ext <<_ACEOF
4743/* confdefs.h.  */
4744_ACEOF
4745cat confdefs.h >>conftest.$ac_ext
4746cat >>conftest.$ac_ext <<_ACEOF
4747/* end confdefs.h.  */
4748$ac_includes_default
4749#include <$ac_header>
4750_ACEOF
4751rm -f conftest.$ac_objext
4752if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4753  (eval $ac_compile) 2>conftest.er1
4754  ac_status=$?
4755  grep -v '^ *+' conftest.er1 >conftest.err
4756  rm -f conftest.er1
4757  cat conftest.err >&5
4758  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759  (exit $ac_status); } &&
4760	 { ac_try='test -z "$ac_c_werror_flag"
4761			 || test ! -s conftest.err'
4762  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4763  (eval $ac_try) 2>&5
4764  ac_status=$?
4765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4766  (exit $ac_status); }; } &&
4767	 { ac_try='test -s conftest.$ac_objext'
4768  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4769  (eval $ac_try) 2>&5
4770  ac_status=$?
4771  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4772  (exit $ac_status); }; }; then
4773  ac_header_compiler=yes
4774else
4775  echo "$as_me: failed program was:" >&5
4776sed 's/^/| /' conftest.$ac_ext >&5
4777
4778ac_header_compiler=no
4779fi
4780rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4781echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4782echo "${ECHO_T}$ac_header_compiler" >&6
4783
4784# Is the header present?
4785echo "$as_me:$LINENO: checking $ac_header presence" >&5
4786echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4787cat >conftest.$ac_ext <<_ACEOF
4788/* confdefs.h.  */
4789_ACEOF
4790cat confdefs.h >>conftest.$ac_ext
4791cat >>conftest.$ac_ext <<_ACEOF
4792/* end confdefs.h.  */
4793#include <$ac_header>
4794_ACEOF
4795if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4796  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4797  ac_status=$?
4798  grep -v '^ *+' conftest.er1 >conftest.err
4799  rm -f conftest.er1
4800  cat conftest.err >&5
4801  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4802  (exit $ac_status); } >/dev/null; then
4803  if test -s conftest.err; then
4804    ac_cpp_err=$ac_c_preproc_warn_flag
4805    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4806  else
4807    ac_cpp_err=
4808  fi
4809else
4810  ac_cpp_err=yes
4811fi
4812if test -z "$ac_cpp_err"; then
4813  ac_header_preproc=yes
4814else
4815  echo "$as_me: failed program was:" >&5
4816sed 's/^/| /' conftest.$ac_ext >&5
4817
4818  ac_header_preproc=no
4819fi
4820rm -f conftest.err conftest.$ac_ext
4821echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4822echo "${ECHO_T}$ac_header_preproc" >&6
4823
4824# So?  What about this header?
4825case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4826  yes:no: )
4827    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4828echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4829    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4830echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4831    ac_header_preproc=yes
4832    ;;
4833  no:yes:* )
4834    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4835echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4836    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4837echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4838    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4839echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4840    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4841echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4842    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4843echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4844    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4845echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4846    (
4847      cat <<\_ASBOX
4848## ---------------------------------------------------------------------- ##
4849## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
4850## ---------------------------------------------------------------------- ##
4851_ASBOX
4852    ) |
4853      sed "s/^/$as_me: WARNING:     /" >&2
4854    ;;
4855esac
4856echo "$as_me:$LINENO: checking for $ac_header" >&5
4857echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4858if eval "test \"\${$as_ac_Header+set}\" = set"; then
4859  echo $ECHO_N "(cached) $ECHO_C" >&6
4860else
4861  eval "$as_ac_Header=\$ac_header_preproc"
4862fi
4863echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4864echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4865
4866fi
4867if test `eval echo '${'$as_ac_Header'}'` = yes; then
4868  cat >>confdefs.h <<_ACEOF
4869#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4870_ACEOF
4871
4872fi
4873
4874done
4875
4876ac_ext=cc
4877ac_cpp='$CXXCPP $CPPFLAGS'
4878ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4879ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4880ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4881if test -n "$ac_tool_prefix"; then
4882  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4883  do
4884    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4885set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4886echo "$as_me:$LINENO: checking for $ac_word" >&5
4887echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4888if test "${ac_cv_prog_CXX+set}" = set; then
4889  echo $ECHO_N "(cached) $ECHO_C" >&6
4890else
4891  if test -n "$CXX"; then
4892  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4893else
4894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4895for as_dir in $PATH
4896do
4897  IFS=$as_save_IFS
4898  test -z "$as_dir" && as_dir=.
4899  for ac_exec_ext in '' $ac_executable_extensions; do
4900  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4901    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4902    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4903    break 2
4904  fi
4905done
4906done
4907
4908fi
4909fi
4910CXX=$ac_cv_prog_CXX
4911if test -n "$CXX"; then
4912  echo "$as_me:$LINENO: result: $CXX" >&5
4913echo "${ECHO_T}$CXX" >&6
4914else
4915  echo "$as_me:$LINENO: result: no" >&5
4916echo "${ECHO_T}no" >&6
4917fi
4918
4919    test -n "$CXX" && break
4920  done
4921fi
4922if test -z "$CXX"; then
4923  ac_ct_CXX=$CXX
4924  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4925do
4926  # Extract the first word of "$ac_prog", so it can be a program name with args.
4927set dummy $ac_prog; ac_word=$2
4928echo "$as_me:$LINENO: checking for $ac_word" >&5
4929echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4930if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4931  echo $ECHO_N "(cached) $ECHO_C" >&6
4932else
4933  if test -n "$ac_ct_CXX"; then
4934  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4935else
4936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4937for as_dir in $PATH
4938do
4939  IFS=$as_save_IFS
4940  test -z "$as_dir" && as_dir=.
4941  for ac_exec_ext in '' $ac_executable_extensions; do
4942  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4943    ac_cv_prog_ac_ct_CXX="$ac_prog"
4944    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4945    break 2
4946  fi
4947done
4948done
4949
4950fi
4951fi
4952ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4953if test -n "$ac_ct_CXX"; then
4954  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4955echo "${ECHO_T}$ac_ct_CXX" >&6
4956else
4957  echo "$as_me:$LINENO: result: no" >&5
4958echo "${ECHO_T}no" >&6
4959fi
4960
4961  test -n "$ac_ct_CXX" && break
4962done
4963test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4964
4965  CXX=$ac_ct_CXX
4966fi
4967
4968
4969# Provide some information about the compiler.
4970echo "$as_me:$LINENO:" \
4971     "checking for C++ compiler version" >&5
4972ac_compiler=`set X $ac_compile; echo $2`
4973{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4974  (eval $ac_compiler --version </dev/null >&5) 2>&5
4975  ac_status=$?
4976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4977  (exit $ac_status); }
4978{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4979  (eval $ac_compiler -v </dev/null >&5) 2>&5
4980  ac_status=$?
4981  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4982  (exit $ac_status); }
4983{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4984  (eval $ac_compiler -V </dev/null >&5) 2>&5
4985  ac_status=$?
4986  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4987  (exit $ac_status); }
4988
4989echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4990echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4991if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4992  echo $ECHO_N "(cached) $ECHO_C" >&6
4993else
4994  cat >conftest.$ac_ext <<_ACEOF
4995/* confdefs.h.  */
4996_ACEOF
4997cat confdefs.h >>conftest.$ac_ext
4998cat >>conftest.$ac_ext <<_ACEOF
4999/* end confdefs.h.  */
5000
5001int
5002main ()
5003{
5004#ifndef __GNUC__
5005       choke me
5006#endif
5007
5008  ;
5009  return 0;
5010}
5011_ACEOF
5012rm -f conftest.$ac_objext
5013if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5014  (eval $ac_compile) 2>conftest.er1
5015  ac_status=$?
5016  grep -v '^ *+' conftest.er1 >conftest.err
5017  rm -f conftest.er1
5018  cat conftest.err >&5
5019  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5020  (exit $ac_status); } &&
5021	 { ac_try='test -z "$ac_cxx_werror_flag"
5022			 || test ! -s conftest.err'
5023  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5024  (eval $ac_try) 2>&5
5025  ac_status=$?
5026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5027  (exit $ac_status); }; } &&
5028	 { ac_try='test -s conftest.$ac_objext'
5029  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5030  (eval $ac_try) 2>&5
5031  ac_status=$?
5032  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5033  (exit $ac_status); }; }; then
5034  ac_compiler_gnu=yes
5035else
5036  echo "$as_me: failed program was:" >&5
5037sed 's/^/| /' conftest.$ac_ext >&5
5038
5039ac_compiler_gnu=no
5040fi
5041rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5042ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5043
5044fi
5045echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5046echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5047GXX=`test $ac_compiler_gnu = yes && echo yes`
5048ac_test_CXXFLAGS=${CXXFLAGS+set}
5049ac_save_CXXFLAGS=$CXXFLAGS
5050CXXFLAGS="-g"
5051echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5052echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5053if test "${ac_cv_prog_cxx_g+set}" = set; then
5054  echo $ECHO_N "(cached) $ECHO_C" >&6
5055else
5056  cat >conftest.$ac_ext <<_ACEOF
5057/* confdefs.h.  */
5058_ACEOF
5059cat confdefs.h >>conftest.$ac_ext
5060cat >>conftest.$ac_ext <<_ACEOF
5061/* end confdefs.h.  */
5062
5063int
5064main ()
5065{
5066
5067  ;
5068  return 0;
5069}
5070_ACEOF
5071rm -f conftest.$ac_objext
5072if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5073  (eval $ac_compile) 2>conftest.er1
5074  ac_status=$?
5075  grep -v '^ *+' conftest.er1 >conftest.err
5076  rm -f conftest.er1
5077  cat conftest.err >&5
5078  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5079  (exit $ac_status); } &&
5080	 { ac_try='test -z "$ac_cxx_werror_flag"
5081			 || test ! -s conftest.err'
5082  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5083  (eval $ac_try) 2>&5
5084  ac_status=$?
5085  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086  (exit $ac_status); }; } &&
5087	 { ac_try='test -s conftest.$ac_objext'
5088  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5089  (eval $ac_try) 2>&5
5090  ac_status=$?
5091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5092  (exit $ac_status); }; }; then
5093  ac_cv_prog_cxx_g=yes
5094else
5095  echo "$as_me: failed program was:" >&5
5096sed 's/^/| /' conftest.$ac_ext >&5
5097
5098ac_cv_prog_cxx_g=no
5099fi
5100rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5101fi
5102echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5103echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5104if test "$ac_test_CXXFLAGS" = set; then
5105  CXXFLAGS=$ac_save_CXXFLAGS
5106elif test $ac_cv_prog_cxx_g = yes; then
5107  if test "$GXX" = yes; then
5108    CXXFLAGS="-g -O2"
5109  else
5110    CXXFLAGS="-g"
5111  fi
5112else
5113  if test "$GXX" = yes; then
5114    CXXFLAGS="-O2"
5115  else
5116    CXXFLAGS=
5117  fi
5118fi
5119for ac_declaration in \
5120   '' \
5121   'extern "C" void std::exit (int) throw (); using std::exit;' \
5122   'extern "C" void std::exit (int); using std::exit;' \
5123   'extern "C" void exit (int) throw ();' \
5124   'extern "C" void exit (int);' \
5125   'void exit (int);'
5126do
5127  cat >conftest.$ac_ext <<_ACEOF
5128/* confdefs.h.  */
5129_ACEOF
5130cat confdefs.h >>conftest.$ac_ext
5131cat >>conftest.$ac_ext <<_ACEOF
5132/* end confdefs.h.  */
5133$ac_declaration
5134#include <stdlib.h>
5135int
5136main ()
5137{
5138exit (42);
5139  ;
5140  return 0;
5141}
5142_ACEOF
5143rm -f conftest.$ac_objext
5144if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5145  (eval $ac_compile) 2>conftest.er1
5146  ac_status=$?
5147  grep -v '^ *+' conftest.er1 >conftest.err
5148  rm -f conftest.er1
5149  cat conftest.err >&5
5150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5151  (exit $ac_status); } &&
5152	 { ac_try='test -z "$ac_cxx_werror_flag"
5153			 || test ! -s conftest.err'
5154  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5155  (eval $ac_try) 2>&5
5156  ac_status=$?
5157  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5158  (exit $ac_status); }; } &&
5159	 { ac_try='test -s conftest.$ac_objext'
5160  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5161  (eval $ac_try) 2>&5
5162  ac_status=$?
5163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5164  (exit $ac_status); }; }; then
5165  :
5166else
5167  echo "$as_me: failed program was:" >&5
5168sed 's/^/| /' conftest.$ac_ext >&5
5169
5170continue
5171fi
5172rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5173  cat >conftest.$ac_ext <<_ACEOF
5174/* confdefs.h.  */
5175_ACEOF
5176cat confdefs.h >>conftest.$ac_ext
5177cat >>conftest.$ac_ext <<_ACEOF
5178/* end confdefs.h.  */
5179$ac_declaration
5180int
5181main ()
5182{
5183exit (42);
5184  ;
5185  return 0;
5186}
5187_ACEOF
5188rm -f conftest.$ac_objext
5189if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5190  (eval $ac_compile) 2>conftest.er1
5191  ac_status=$?
5192  grep -v '^ *+' conftest.er1 >conftest.err
5193  rm -f conftest.er1
5194  cat conftest.err >&5
5195  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5196  (exit $ac_status); } &&
5197	 { ac_try='test -z "$ac_cxx_werror_flag"
5198			 || test ! -s conftest.err'
5199  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5200  (eval $ac_try) 2>&5
5201  ac_status=$?
5202  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5203  (exit $ac_status); }; } &&
5204	 { ac_try='test -s conftest.$ac_objext'
5205  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5206  (eval $ac_try) 2>&5
5207  ac_status=$?
5208  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5209  (exit $ac_status); }; }; then
5210  break
5211else
5212  echo "$as_me: failed program was:" >&5
5213sed 's/^/| /' conftest.$ac_ext >&5
5214
5215fi
5216rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5217done
5218rm -f conftest*
5219if test -n "$ac_declaration"; then
5220  echo '#ifdef __cplusplus' >>confdefs.h
5221  echo $ac_declaration      >>confdefs.h
5222  echo '#endif'             >>confdefs.h
5223fi
5224
5225ac_ext=cc
5226ac_cpp='$CXXCPP $CPPFLAGS'
5227ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5228ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5229ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5230
5231depcc="$CXX"  am_compiler_list=
5232
5233echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5234echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5235if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5236  echo $ECHO_N "(cached) $ECHO_C" >&6
5237else
5238  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5239  # We make a subdir and do the tests there.  Otherwise we can end up
5240  # making bogus files that we don't know about and never remove.  For
5241  # instance it was reported that on HP-UX the gcc test will end up
5242  # making a dummy file named `D' -- because `-MD' means `put the output
5243  # in D'.
5244  mkdir conftest.dir
5245  # Copy depcomp to subdir because otherwise we won't find it if we're
5246  # using a relative directory.
5247  cp "$am_depcomp" conftest.dir
5248  cd conftest.dir
5249  # We will build objects and dependencies in a subdirectory because
5250  # it helps to detect inapplicable dependency modes.  For instance
5251  # both Tru64's cc and ICC support -MD to output dependencies as a
5252  # side effect of compilation, but ICC will put the dependencies in
5253  # the current directory while Tru64 will put them in the object
5254  # directory.
5255  mkdir sub
5256
5257  am_cv_CXX_dependencies_compiler_type=none
5258  if test "$am_compiler_list" = ""; then
5259     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5260  fi
5261  for depmode in $am_compiler_list; do
5262    # Setup a source with many dependencies, because some compilers
5263    # like to wrap large dependency lists on column 80 (with \), and
5264    # we should not choose a depcomp mode which is confused by this.
5265    #
5266    # We need to recreate these files for each test, as the compiler may
5267    # overwrite some of them when testing with obscure command lines.
5268    # This happens at least with the AIX C compiler.
5269    : > sub/conftest.c
5270    for i in 1 2 3 4 5 6; do
5271      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5272      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5273      # Solaris 8's {/usr,}/bin/sh.
5274      touch sub/conftst$i.h
5275    done
5276    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5277
5278    case $depmode in
5279    nosideeffect)
5280      # after this tag, mechanisms are not by side-effect, so they'll
5281      # only be used when explicitly requested
5282      if test "x$enable_dependency_tracking" = xyes; then
5283	continue
5284      else
5285	break
5286      fi
5287      ;;
5288    none) break ;;
5289    esac
5290    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5291    # mode.  It turns out that the SunPro C++ compiler does not properly
5292    # handle `-M -o', and we need to detect this.
5293    if depmode=$depmode \
5294       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5295       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5296       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5297         >/dev/null 2>conftest.err &&
5298       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5299       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5300       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5301      # icc doesn't choke on unknown options, it will just issue warnings
5302      # or remarks (even with -Werror).  So we grep stderr for any message
5303      # that says an option was ignored or not supported.
5304      # When given -MP, icc 7.0 and 7.1 complain thusly:
5305      #   icc: Command line warning: ignoring option '-M'; no argument required
5306      # The diagnosis changed in icc 8.0:
5307      #   icc: Command line remark: option '-MP' not supported
5308      if (grep 'ignoring option' conftest.err ||
5309          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5310        am_cv_CXX_dependencies_compiler_type=$depmode
5311        break
5312      fi
5313    fi
5314  done
5315
5316  cd ..
5317  rm -rf conftest.dir
5318else
5319  am_cv_CXX_dependencies_compiler_type=none
5320fi
5321
5322fi
5323echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5324echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5325CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5326
5327
5328
5329if
5330  test "x$enable_dependency_tracking" != xno \
5331  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5332  am__fastdepCXX_TRUE=
5333  am__fastdepCXX_FALSE='#'
5334else
5335  am__fastdepCXX_TRUE='#'
5336  am__fastdepCXX_FALSE=
5337fi
5338
5339
5340
5341
5342if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5343    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5344    (test "X$CXX" != "Xg++"))) ; then
5345  ac_ext=cc
5346ac_cpp='$CXXCPP $CPPFLAGS'
5347ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5348ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5349ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5350echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5351echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5352if test -z "$CXXCPP"; then
5353  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5354  echo $ECHO_N "(cached) $ECHO_C" >&6
5355else
5356      # Double quotes because CXXCPP needs to be expanded
5357    for CXXCPP in "$CXX -E" "/lib/cpp"
5358    do
5359      ac_preproc_ok=false
5360for ac_cxx_preproc_warn_flag in '' yes
5361do
5362  # Use a header file that comes with gcc, so configuring glibc
5363  # with a fresh cross-compiler works.
5364  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5365  # <limits.h> exists even on freestanding compilers.
5366  # On the NeXT, cc -E runs the code through the compiler's parser,
5367  # not just through cpp. "Syntax error" is here to catch this case.
5368  cat >conftest.$ac_ext <<_ACEOF
5369/* confdefs.h.  */
5370_ACEOF
5371cat confdefs.h >>conftest.$ac_ext
5372cat >>conftest.$ac_ext <<_ACEOF
5373/* end confdefs.h.  */
5374#ifdef __STDC__
5375# include <limits.h>
5376#else
5377# include <assert.h>
5378#endif
5379		     Syntax error
5380_ACEOF
5381if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5382  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5383  ac_status=$?
5384  grep -v '^ *+' conftest.er1 >conftest.err
5385  rm -f conftest.er1
5386  cat conftest.err >&5
5387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5388  (exit $ac_status); } >/dev/null; then
5389  if test -s conftest.err; then
5390    ac_cpp_err=$ac_cxx_preproc_warn_flag
5391    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5392  else
5393    ac_cpp_err=
5394  fi
5395else
5396  ac_cpp_err=yes
5397fi
5398if test -z "$ac_cpp_err"; then
5399  :
5400else
5401  echo "$as_me: failed program was:" >&5
5402sed 's/^/| /' conftest.$ac_ext >&5
5403
5404  # Broken: fails on valid input.
5405continue
5406fi
5407rm -f conftest.err conftest.$ac_ext
5408
5409  # OK, works on sane cases.  Now check whether non-existent headers
5410  # can be detected and how.
5411  cat >conftest.$ac_ext <<_ACEOF
5412/* confdefs.h.  */
5413_ACEOF
5414cat confdefs.h >>conftest.$ac_ext
5415cat >>conftest.$ac_ext <<_ACEOF
5416/* end confdefs.h.  */
5417#include <ac_nonexistent.h>
5418_ACEOF
5419if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5420  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5421  ac_status=$?
5422  grep -v '^ *+' conftest.er1 >conftest.err
5423  rm -f conftest.er1
5424  cat conftest.err >&5
5425  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5426  (exit $ac_status); } >/dev/null; then
5427  if test -s conftest.err; then
5428    ac_cpp_err=$ac_cxx_preproc_warn_flag
5429    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5430  else
5431    ac_cpp_err=
5432  fi
5433else
5434  ac_cpp_err=yes
5435fi
5436if test -z "$ac_cpp_err"; then
5437  # Broken: success on invalid input.
5438continue
5439else
5440  echo "$as_me: failed program was:" >&5
5441sed 's/^/| /' conftest.$ac_ext >&5
5442
5443  # Passes both tests.
5444ac_preproc_ok=:
5445break
5446fi
5447rm -f conftest.err conftest.$ac_ext
5448
5449done
5450# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5451rm -f conftest.err conftest.$ac_ext
5452if $ac_preproc_ok; then
5453  break
5454fi
5455
5456    done
5457    ac_cv_prog_CXXCPP=$CXXCPP
5458
5459fi
5460  CXXCPP=$ac_cv_prog_CXXCPP
5461else
5462  ac_cv_prog_CXXCPP=$CXXCPP
5463fi
5464echo "$as_me:$LINENO: result: $CXXCPP" >&5
5465echo "${ECHO_T}$CXXCPP" >&6
5466ac_preproc_ok=false
5467for ac_cxx_preproc_warn_flag in '' yes
5468do
5469  # Use a header file that comes with gcc, so configuring glibc
5470  # with a fresh cross-compiler works.
5471  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5472  # <limits.h> exists even on freestanding compilers.
5473  # On the NeXT, cc -E runs the code through the compiler's parser,
5474  # not just through cpp. "Syntax error" is here to catch this case.
5475  cat >conftest.$ac_ext <<_ACEOF
5476/* confdefs.h.  */
5477_ACEOF
5478cat confdefs.h >>conftest.$ac_ext
5479cat >>conftest.$ac_ext <<_ACEOF
5480/* end confdefs.h.  */
5481#ifdef __STDC__
5482# include <limits.h>
5483#else
5484# include <assert.h>
5485#endif
5486		     Syntax error
5487_ACEOF
5488if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5489  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5490  ac_status=$?
5491  grep -v '^ *+' conftest.er1 >conftest.err
5492  rm -f conftest.er1
5493  cat conftest.err >&5
5494  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5495  (exit $ac_status); } >/dev/null; then
5496  if test -s conftest.err; then
5497    ac_cpp_err=$ac_cxx_preproc_warn_flag
5498    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5499  else
5500    ac_cpp_err=
5501  fi
5502else
5503  ac_cpp_err=yes
5504fi
5505if test -z "$ac_cpp_err"; then
5506  :
5507else
5508  echo "$as_me: failed program was:" >&5
5509sed 's/^/| /' conftest.$ac_ext >&5
5510
5511  # Broken: fails on valid input.
5512continue
5513fi
5514rm -f conftest.err conftest.$ac_ext
5515
5516  # OK, works on sane cases.  Now check whether non-existent headers
5517  # can be detected and how.
5518  cat >conftest.$ac_ext <<_ACEOF
5519/* confdefs.h.  */
5520_ACEOF
5521cat confdefs.h >>conftest.$ac_ext
5522cat >>conftest.$ac_ext <<_ACEOF
5523/* end confdefs.h.  */
5524#include <ac_nonexistent.h>
5525_ACEOF
5526if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5527  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5528  ac_status=$?
5529  grep -v '^ *+' conftest.er1 >conftest.err
5530  rm -f conftest.er1
5531  cat conftest.err >&5
5532  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5533  (exit $ac_status); } >/dev/null; then
5534  if test -s conftest.err; then
5535    ac_cpp_err=$ac_cxx_preproc_warn_flag
5536    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5537  else
5538    ac_cpp_err=
5539  fi
5540else
5541  ac_cpp_err=yes
5542fi
5543if test -z "$ac_cpp_err"; then
5544  # Broken: success on invalid input.
5545continue
5546else
5547  echo "$as_me: failed program was:" >&5
5548sed 's/^/| /' conftest.$ac_ext >&5
5549
5550  # Passes both tests.
5551ac_preproc_ok=:
5552break
5553fi
5554rm -f conftest.err conftest.$ac_ext
5555
5556done
5557# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5558rm -f conftest.err conftest.$ac_ext
5559if $ac_preproc_ok; then
5560  :
5561else
5562  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5563See \`config.log' for more details." >&5
5564echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5565See \`config.log' for more details." >&2;}
5566   { (exit 1); exit 1; }; }
5567fi
5568
5569ac_ext=cc
5570ac_cpp='$CXXCPP $CPPFLAGS'
5571ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5572ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5573ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5574
5575fi
5576
5577
5578ac_ext=f
5579ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5580ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5581ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5582if test -n "$ac_tool_prefix"; then
5583  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5584  do
5585    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5586set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5587echo "$as_me:$LINENO: checking for $ac_word" >&5
5588echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5589if test "${ac_cv_prog_F77+set}" = set; then
5590  echo $ECHO_N "(cached) $ECHO_C" >&6
5591else
5592  if test -n "$F77"; then
5593  ac_cv_prog_F77="$F77" # Let the user override the test.
5594else
5595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5596for as_dir in $PATH
5597do
5598  IFS=$as_save_IFS
5599  test -z "$as_dir" && as_dir=.
5600  for ac_exec_ext in '' $ac_executable_extensions; do
5601  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5602    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5603    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5604    break 2
5605  fi
5606done
5607done
5608
5609fi
5610fi
5611F77=$ac_cv_prog_F77
5612if test -n "$F77"; then
5613  echo "$as_me:$LINENO: result: $F77" >&5
5614echo "${ECHO_T}$F77" >&6
5615else
5616  echo "$as_me:$LINENO: result: no" >&5
5617echo "${ECHO_T}no" >&6
5618fi
5619
5620    test -n "$F77" && break
5621  done
5622fi
5623if test -z "$F77"; then
5624  ac_ct_F77=$F77
5625  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5626do
5627  # Extract the first word of "$ac_prog", so it can be a program name with args.
5628set dummy $ac_prog; ac_word=$2
5629echo "$as_me:$LINENO: checking for $ac_word" >&5
5630echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5631if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5632  echo $ECHO_N "(cached) $ECHO_C" >&6
5633else
5634  if test -n "$ac_ct_F77"; then
5635  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5636else
5637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5638for as_dir in $PATH
5639do
5640  IFS=$as_save_IFS
5641  test -z "$as_dir" && as_dir=.
5642  for ac_exec_ext in '' $ac_executable_extensions; do
5643  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5644    ac_cv_prog_ac_ct_F77="$ac_prog"
5645    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5646    break 2
5647  fi
5648done
5649done
5650
5651fi
5652fi
5653ac_ct_F77=$ac_cv_prog_ac_ct_F77
5654if test -n "$ac_ct_F77"; then
5655  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5656echo "${ECHO_T}$ac_ct_F77" >&6
5657else
5658  echo "$as_me:$LINENO: result: no" >&5
5659echo "${ECHO_T}no" >&6
5660fi
5661
5662  test -n "$ac_ct_F77" && break
5663done
5664
5665  F77=$ac_ct_F77
5666fi
5667
5668
5669# Provide some information about the compiler.
5670echo "$as_me:5670:" \
5671     "checking for Fortran 77 compiler version" >&5
5672ac_compiler=`set X $ac_compile; echo $2`
5673{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5674  (eval $ac_compiler --version </dev/null >&5) 2>&5
5675  ac_status=$?
5676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677  (exit $ac_status); }
5678{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5679  (eval $ac_compiler -v </dev/null >&5) 2>&5
5680  ac_status=$?
5681  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5682  (exit $ac_status); }
5683{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5684  (eval $ac_compiler -V </dev/null >&5) 2>&5
5685  ac_status=$?
5686  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5687  (exit $ac_status); }
5688rm -f a.out
5689
5690# If we don't use `.F' as extension, the preprocessor is not run on the
5691# input file.  (Note that this only needs to work for GNU compilers.)
5692ac_save_ext=$ac_ext
5693ac_ext=F
5694echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5695echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5696if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5697  echo $ECHO_N "(cached) $ECHO_C" >&6
5698else
5699  cat >conftest.$ac_ext <<_ACEOF
5700      program main
5701#ifndef __GNUC__
5702       choke me
5703#endif
5704
5705      end
5706_ACEOF
5707rm -f conftest.$ac_objext
5708if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5709  (eval $ac_compile) 2>conftest.er1
5710  ac_status=$?
5711  grep -v '^ *+' conftest.er1 >conftest.err
5712  rm -f conftest.er1
5713  cat conftest.err >&5
5714  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5715  (exit $ac_status); } &&
5716	 { ac_try='test -z "$ac_f77_werror_flag"
5717			 || test ! -s conftest.err'
5718  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5719  (eval $ac_try) 2>&5
5720  ac_status=$?
5721  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722  (exit $ac_status); }; } &&
5723	 { ac_try='test -s conftest.$ac_objext'
5724  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5725  (eval $ac_try) 2>&5
5726  ac_status=$?
5727  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5728  (exit $ac_status); }; }; then
5729  ac_compiler_gnu=yes
5730else
5731  echo "$as_me: failed program was:" >&5
5732sed 's/^/| /' conftest.$ac_ext >&5
5733
5734ac_compiler_gnu=no
5735fi
5736rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5737ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5738
5739fi
5740echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5741echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5742ac_ext=$ac_save_ext
5743ac_test_FFLAGS=${FFLAGS+set}
5744ac_save_FFLAGS=$FFLAGS
5745FFLAGS=
5746echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5747echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5748if test "${ac_cv_prog_f77_g+set}" = set; then
5749  echo $ECHO_N "(cached) $ECHO_C" >&6
5750else
5751  FFLAGS=-g
5752cat >conftest.$ac_ext <<_ACEOF
5753      program main
5754
5755      end
5756_ACEOF
5757rm -f conftest.$ac_objext
5758if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5759  (eval $ac_compile) 2>conftest.er1
5760  ac_status=$?
5761  grep -v '^ *+' conftest.er1 >conftest.err
5762  rm -f conftest.er1
5763  cat conftest.err >&5
5764  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5765  (exit $ac_status); } &&
5766	 { ac_try='test -z "$ac_f77_werror_flag"
5767			 || test ! -s conftest.err'
5768  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5769  (eval $ac_try) 2>&5
5770  ac_status=$?
5771  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772  (exit $ac_status); }; } &&
5773	 { ac_try='test -s conftest.$ac_objext'
5774  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5775  (eval $ac_try) 2>&5
5776  ac_status=$?
5777  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778  (exit $ac_status); }; }; then
5779  ac_cv_prog_f77_g=yes
5780else
5781  echo "$as_me: failed program was:" >&5
5782sed 's/^/| /' conftest.$ac_ext >&5
5783
5784ac_cv_prog_f77_g=no
5785fi
5786rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5787
5788fi
5789echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5790echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5791if test "$ac_test_FFLAGS" = set; then
5792  FFLAGS=$ac_save_FFLAGS
5793elif test $ac_cv_prog_f77_g = yes; then
5794  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5795    FFLAGS="-g -O2"
5796  else
5797    FFLAGS="-g"
5798  fi
5799else
5800  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5801    FFLAGS="-O2"
5802  else
5803    FFLAGS=
5804  fi
5805fi
5806
5807G77=`test $ac_compiler_gnu = yes && echo yes`
5808ac_ext=c
5809ac_cpp='$CPP $CPPFLAGS'
5810ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5811ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5812ac_compiler_gnu=$ac_cv_c_compiler_gnu
5813
5814
5815
5816# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5817
5818# find the maximum length of command line arguments
5819echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5820echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5821if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5822  echo $ECHO_N "(cached) $ECHO_C" >&6
5823else
5824    i=0
5825  teststring="ABCD"
5826
5827  case $build_os in
5828  msdosdjgpp*)
5829    # On DJGPP, this test can blow up pretty badly due to problems in libc
5830    # (any single argument exceeding 2000 bytes causes a buffer overrun
5831    # during glob expansion).  Even if it were fixed, the result of this
5832    # check would be larger than it should be.
5833    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5834    ;;
5835
5836  gnu*)
5837    # Under GNU Hurd, this test is not required because there is
5838    # no limit to the length of command line arguments.
5839    # Libtool will interpret -1 as no limit whatsoever
5840    lt_cv_sys_max_cmd_len=-1;
5841    ;;
5842
5843  cygwin* | mingw*)
5844    # On Win9x/ME, this test blows up -- it succeeds, but takes
5845    # about 5 minutes as the teststring grows exponentially.
5846    # Worse, since 9x/ME are not pre-emptively multitasking,
5847    # you end up with a "frozen" computer, even though with patience
5848    # the test eventually succeeds (with a max line length of 256k).
5849    # Instead, let's just punt: use the minimum linelength reported by
5850    # all of the supported platforms: 8192 (on NT/2K/XP).
5851    lt_cv_sys_max_cmd_len=8192;
5852    ;;
5853
5854  amigaos*)
5855    # On AmigaOS with pdksh, this test takes hours, literally.
5856    # So we just punt and use a minimum line length of 8192.
5857    lt_cv_sys_max_cmd_len=8192;
5858    ;;
5859
5860  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5861    # This has been around since 386BSD, at least.  Likely further.
5862    if test -x /sbin/sysctl; then
5863      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5864    elif test -x /usr/sbin/sysctl; then
5865      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5866    else
5867      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5868    fi
5869    # And add a safety zone
5870    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5871    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5872    ;;
5873
5874  interix*)
5875    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5876    lt_cv_sys_max_cmd_len=196608
5877    ;;
5878
5879  osf*)
5880    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5881    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5882    # nice to cause kernel panics so lets avoid the loop below.
5883    # First set a reasonable default.
5884    lt_cv_sys_max_cmd_len=16384
5885    #
5886    if test -x /sbin/sysconfig; then
5887      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5888        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5889      esac
5890    fi
5891    ;;
5892  sco3.2v5*)
5893    lt_cv_sys_max_cmd_len=102400
5894    ;;
5895  sysv5* | sco5v6* | sysv4.2uw2*)
5896    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5897    if test -n "$kargmax"; then
5898      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
5899    else
5900      lt_cv_sys_max_cmd_len=32768
5901    fi
5902    ;;
5903  *)
5904    # If test is not a shell built-in, we'll probably end up computing a
5905    # maximum length that is only half of the actual maximum length, but
5906    # we can't tell.
5907    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5908    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5909	       = "XX$teststring") >/dev/null 2>&1 &&
5910	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
5911	    lt_cv_sys_max_cmd_len=$new_result &&
5912	    test $i != 17 # 1/2 MB should be enough
5913    do
5914      i=`expr $i + 1`
5915      teststring=$teststring$teststring
5916    done
5917    teststring=
5918    # Add a significant safety factor because C++ compilers can tack on massive
5919    # amounts of additional arguments before passing them to the linker.
5920    # It appears as though 1/2 is a usable value.
5921    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5922    ;;
5923  esac
5924
5925fi
5926
5927if test -n $lt_cv_sys_max_cmd_len ; then
5928  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5929echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5930else
5931  echo "$as_me:$LINENO: result: none" >&5
5932echo "${ECHO_T}none" >&6
5933fi
5934
5935
5936
5937
5938# Check for command to grab the raw symbol name followed by C symbol from nm.
5939echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5940echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5941if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5942  echo $ECHO_N "(cached) $ECHO_C" >&6
5943else
5944
5945# These are sane defaults that work on at least a few old systems.
5946# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5947
5948# Character class describing NM global symbol codes.
5949symcode='[BCDEGRST]'
5950
5951# Regexp to match symbols that can be accessed directly from C.
5952sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5953
5954# Transform an extracted symbol line into a proper C declaration
5955lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5956
5957# Transform an extracted symbol line into symbol name and symbol address
5958lt_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'"
5959
5960# Define system-specific variables.
5961case $host_os in
5962aix*)
5963  symcode='[BCDT]'
5964  ;;
5965cygwin* | mingw* | pw32*)
5966  symcode='[ABCDGISTW]'
5967  ;;
5968hpux*) # Its linker distinguishes data from code symbols
5969  if test "$host_cpu" = ia64; then
5970    symcode='[ABCDEGRST]'
5971  fi
5972  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5973  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'"
5974  ;;
5975linux*)
5976  if test "$host_cpu" = ia64; then
5977    symcode='[ABCDGIRSTW]'
5978    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5979    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'"
5980  fi
5981  ;;
5982irix* | nonstopux*)
5983  symcode='[BCDEGRST]'
5984  ;;
5985osf*)
5986  symcode='[BCDEGQRST]'
5987  ;;
5988solaris*)
5989  symcode='[BDRT]'
5990  ;;
5991sco3.2v5*)
5992  symcode='[DT]'
5993  ;;
5994sysv4.2uw2*)
5995  symcode='[DT]'
5996  ;;
5997sysv5* | sco5v6* | unixware* | OpenUNIX*)
5998  symcode='[ABDT]'
5999  ;;
6000sysv4)
6001  symcode='[DFNSTU]'
6002  ;;
6003esac
6004
6005# Handle CRLF in mingw tool chain
6006opt_cr=
6007case $build_os in
6008mingw*)
6009  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6010  ;;
6011esac
6012
6013# If we're using GNU nm, then use its standard symbol codes.
6014case `$NM -V 2>&1` in
6015*GNU* | *'with BFD'*)
6016  symcode='[ABCDGIRSTW]' ;;
6017esac
6018
6019# Try without a prefix undercore, then with it.
6020for ac_symprfx in "" "_"; do
6021
6022  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6023  symxfrm="\\1 $ac_symprfx\\2 \\2"
6024
6025  # Write the raw and C identifiers.
6026  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6027
6028  # Check to see that the pipe works correctly.
6029  pipe_works=no
6030
6031  rm -f conftest*
6032  cat > conftest.$ac_ext <<EOF
6033#ifdef __cplusplus
6034extern "C" {
6035#endif
6036char nm_test_var;
6037void nm_test_func(){}
6038#ifdef __cplusplus
6039}
6040#endif
6041int main(){nm_test_var='a';nm_test_func();return(0);}
6042EOF
6043
6044  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6045  (eval $ac_compile) 2>&5
6046  ac_status=$?
6047  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6048  (exit $ac_status); }; then
6049    # Now try to grab the symbols.
6050    nlist=conftest.nm
6051    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6052  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6053  ac_status=$?
6054  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6055  (exit $ac_status); } && test -s "$nlist"; then
6056      # Try sorting and uniquifying the output.
6057      if sort "$nlist" | uniq > "$nlist"T; then
6058	mv -f "$nlist"T "$nlist"
6059      else
6060	rm -f "$nlist"T
6061      fi
6062
6063      # Make sure that we snagged all the symbols we need.
6064      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6065	if grep ' nm_test_func$' "$nlist" >/dev/null; then
6066	  cat <<EOF > conftest.$ac_ext
6067#ifdef __cplusplus
6068extern "C" {
6069#endif
6070
6071EOF
6072	  # Now generate the symbol file.
6073	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6074
6075	  cat <<EOF >> conftest.$ac_ext
6076#if defined (__STDC__) && __STDC__
6077# define lt_ptr_t void *
6078#else
6079# define lt_ptr_t char *
6080# define const
6081#endif
6082
6083/* The mapping between symbol names and symbols. */
6084const struct {
6085  const char *name;
6086  lt_ptr_t address;
6087}
6088lt_preloaded_symbols[] =
6089{
6090EOF
6091	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6092	  cat <<\EOF >> conftest.$ac_ext
6093  {0, (lt_ptr_t) 0}
6094};
6095
6096#ifdef __cplusplus
6097}
6098#endif
6099EOF
6100	  # Now try linking the two files.
6101	  mv conftest.$ac_objext conftstm.$ac_objext
6102	  lt_save_LIBS="$LIBS"
6103	  lt_save_CFLAGS="$CFLAGS"
6104	  LIBS="conftstm.$ac_objext"
6105	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6106	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6107  (eval $ac_link) 2>&5
6108  ac_status=$?
6109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6110  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6111	    pipe_works=yes
6112	  fi
6113	  LIBS="$lt_save_LIBS"
6114	  CFLAGS="$lt_save_CFLAGS"
6115	else
6116	  echo "cannot find nm_test_func in $nlist" >&5
6117	fi
6118      else
6119	echo "cannot find nm_test_var in $nlist" >&5
6120      fi
6121    else
6122      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6123    fi
6124  else
6125    echo "$progname: failed program was:" >&5
6126    cat conftest.$ac_ext >&5
6127  fi
6128  rm -f conftest* conftst*
6129
6130  # Do not use the global_symbol_pipe unless it works.
6131  if test "$pipe_works" = yes; then
6132    break
6133  else
6134    lt_cv_sys_global_symbol_pipe=
6135  fi
6136done
6137
6138fi
6139
6140if test -z "$lt_cv_sys_global_symbol_pipe"; then
6141  lt_cv_sys_global_symbol_to_cdecl=
6142fi
6143if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6144  echo "$as_me:$LINENO: result: failed" >&5
6145echo "${ECHO_T}failed" >&6
6146else
6147  echo "$as_me:$LINENO: result: ok" >&5
6148echo "${ECHO_T}ok" >&6
6149fi
6150
6151echo "$as_me:$LINENO: checking for objdir" >&5
6152echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6153if test "${lt_cv_objdir+set}" = set; then
6154  echo $ECHO_N "(cached) $ECHO_C" >&6
6155else
6156  rm -f .libs 2>/dev/null
6157mkdir .libs 2>/dev/null
6158if test -d .libs; then
6159  lt_cv_objdir=.libs
6160else
6161  # MS-DOS does not allow filenames that begin with a dot.
6162  lt_cv_objdir=_libs
6163fi
6164rmdir .libs 2>/dev/null
6165fi
6166echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6167echo "${ECHO_T}$lt_cv_objdir" >&6
6168objdir=$lt_cv_objdir
6169
6170
6171
6172
6173
6174case $host_os in
6175aix3*)
6176  # AIX sometimes has problems with the GCC collect2 program.  For some
6177  # reason, if we set the COLLECT_NAMES environment variable, the problems
6178  # vanish in a puff of smoke.
6179  if test "X${COLLECT_NAMES+set}" != Xset; then
6180    COLLECT_NAMES=
6181    export COLLECT_NAMES
6182  fi
6183  ;;
6184esac
6185
6186# Sed substitution that helps us do robust quoting.  It backslashifies
6187# metacharacters that are still active within double-quoted strings.
6188Xsed='sed -e 1s/^X//'
6189sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6190
6191# Same as above, but do not quote variable references.
6192double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6193
6194# Sed substitution to delay expansion of an escaped shell variable in a
6195# double_quote_subst'ed string.
6196delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6197
6198# Sed substitution to avoid accidental globbing in evaled expressions
6199no_glob_subst='s/\*/\\\*/g'
6200
6201# Constants:
6202rm="rm -f"
6203
6204# Global variables:
6205default_ofile=libtool
6206can_build_shared=yes
6207
6208# All known linkers require a `.a' archive for static linking (except MSVC,
6209# which needs '.lib').
6210libext=a
6211ltmain="$ac_aux_dir/ltmain.sh"
6212ofile="$default_ofile"
6213with_gnu_ld="$lt_cv_prog_gnu_ld"
6214
6215if test -n "$ac_tool_prefix"; then
6216  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6217set dummy ${ac_tool_prefix}ar; ac_word=$2
6218echo "$as_me:$LINENO: checking for $ac_word" >&5
6219echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6220if test "${ac_cv_prog_AR+set}" = set; then
6221  echo $ECHO_N "(cached) $ECHO_C" >&6
6222else
6223  if test -n "$AR"; then
6224  ac_cv_prog_AR="$AR" # Let the user override the test.
6225else
6226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6227for as_dir in $PATH
6228do
6229  IFS=$as_save_IFS
6230  test -z "$as_dir" && as_dir=.
6231  for ac_exec_ext in '' $ac_executable_extensions; do
6232  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6233    ac_cv_prog_AR="${ac_tool_prefix}ar"
6234    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6235    break 2
6236  fi
6237done
6238done
6239
6240fi
6241fi
6242AR=$ac_cv_prog_AR
6243if test -n "$AR"; then
6244  echo "$as_me:$LINENO: result: $AR" >&5
6245echo "${ECHO_T}$AR" >&6
6246else
6247  echo "$as_me:$LINENO: result: no" >&5
6248echo "${ECHO_T}no" >&6
6249fi
6250
6251fi
6252if test -z "$ac_cv_prog_AR"; then
6253  ac_ct_AR=$AR
6254  # Extract the first word of "ar", so it can be a program name with args.
6255set dummy ar; ac_word=$2
6256echo "$as_me:$LINENO: checking for $ac_word" >&5
6257echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6258if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6259  echo $ECHO_N "(cached) $ECHO_C" >&6
6260else
6261  if test -n "$ac_ct_AR"; then
6262  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6263else
6264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6265for as_dir in $PATH
6266do
6267  IFS=$as_save_IFS
6268  test -z "$as_dir" && as_dir=.
6269  for ac_exec_ext in '' $ac_executable_extensions; do
6270  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6271    ac_cv_prog_ac_ct_AR="ar"
6272    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6273    break 2
6274  fi
6275done
6276done
6277
6278  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6279fi
6280fi
6281ac_ct_AR=$ac_cv_prog_ac_ct_AR
6282if test -n "$ac_ct_AR"; then
6283  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6284echo "${ECHO_T}$ac_ct_AR" >&6
6285else
6286  echo "$as_me:$LINENO: result: no" >&5
6287echo "${ECHO_T}no" >&6
6288fi
6289
6290  AR=$ac_ct_AR
6291else
6292  AR="$ac_cv_prog_AR"
6293fi
6294
6295if test -n "$ac_tool_prefix"; then
6296  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6297set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6298echo "$as_me:$LINENO: checking for $ac_word" >&5
6299echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6300if test "${ac_cv_prog_RANLIB+set}" = set; then
6301  echo $ECHO_N "(cached) $ECHO_C" >&6
6302else
6303  if test -n "$RANLIB"; then
6304  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6305else
6306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6307for as_dir in $PATH
6308do
6309  IFS=$as_save_IFS
6310  test -z "$as_dir" && as_dir=.
6311  for ac_exec_ext in '' $ac_executable_extensions; do
6312  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6313    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6314    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6315    break 2
6316  fi
6317done
6318done
6319
6320fi
6321fi
6322RANLIB=$ac_cv_prog_RANLIB
6323if test -n "$RANLIB"; then
6324  echo "$as_me:$LINENO: result: $RANLIB" >&5
6325echo "${ECHO_T}$RANLIB" >&6
6326else
6327  echo "$as_me:$LINENO: result: no" >&5
6328echo "${ECHO_T}no" >&6
6329fi
6330
6331fi
6332if test -z "$ac_cv_prog_RANLIB"; then
6333  ac_ct_RANLIB=$RANLIB
6334  # Extract the first word of "ranlib", so it can be a program name with args.
6335set dummy ranlib; ac_word=$2
6336echo "$as_me:$LINENO: checking for $ac_word" >&5
6337echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6338if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6339  echo $ECHO_N "(cached) $ECHO_C" >&6
6340else
6341  if test -n "$ac_ct_RANLIB"; then
6342  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6343else
6344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6345for as_dir in $PATH
6346do
6347  IFS=$as_save_IFS
6348  test -z "$as_dir" && as_dir=.
6349  for ac_exec_ext in '' $ac_executable_extensions; do
6350  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6351    ac_cv_prog_ac_ct_RANLIB="ranlib"
6352    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6353    break 2
6354  fi
6355done
6356done
6357
6358  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6359fi
6360fi
6361ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6362if test -n "$ac_ct_RANLIB"; then
6363  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6364echo "${ECHO_T}$ac_ct_RANLIB" >&6
6365else
6366  echo "$as_me:$LINENO: result: no" >&5
6367echo "${ECHO_T}no" >&6
6368fi
6369
6370  RANLIB=$ac_ct_RANLIB
6371else
6372  RANLIB="$ac_cv_prog_RANLIB"
6373fi
6374
6375if test -n "$ac_tool_prefix"; then
6376  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6377set dummy ${ac_tool_prefix}strip; ac_word=$2
6378echo "$as_me:$LINENO: checking for $ac_word" >&5
6379echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6380if test "${ac_cv_prog_STRIP+set}" = set; then
6381  echo $ECHO_N "(cached) $ECHO_C" >&6
6382else
6383  if test -n "$STRIP"; then
6384  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6385else
6386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6387for as_dir in $PATH
6388do
6389  IFS=$as_save_IFS
6390  test -z "$as_dir" && as_dir=.
6391  for ac_exec_ext in '' $ac_executable_extensions; do
6392  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6393    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6394    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6395    break 2
6396  fi
6397done
6398done
6399
6400fi
6401fi
6402STRIP=$ac_cv_prog_STRIP
6403if test -n "$STRIP"; then
6404  echo "$as_me:$LINENO: result: $STRIP" >&5
6405echo "${ECHO_T}$STRIP" >&6
6406else
6407  echo "$as_me:$LINENO: result: no" >&5
6408echo "${ECHO_T}no" >&6
6409fi
6410
6411fi
6412if test -z "$ac_cv_prog_STRIP"; then
6413  ac_ct_STRIP=$STRIP
6414  # Extract the first word of "strip", so it can be a program name with args.
6415set dummy strip; ac_word=$2
6416echo "$as_me:$LINENO: checking for $ac_word" >&5
6417echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6418if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6419  echo $ECHO_N "(cached) $ECHO_C" >&6
6420else
6421  if test -n "$ac_ct_STRIP"; then
6422  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6423else
6424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6425for as_dir in $PATH
6426do
6427  IFS=$as_save_IFS
6428  test -z "$as_dir" && as_dir=.
6429  for ac_exec_ext in '' $ac_executable_extensions; do
6430  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6431    ac_cv_prog_ac_ct_STRIP="strip"
6432    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6433    break 2
6434  fi
6435done
6436done
6437
6438  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6439fi
6440fi
6441ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6442if test -n "$ac_ct_STRIP"; then
6443  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6444echo "${ECHO_T}$ac_ct_STRIP" >&6
6445else
6446  echo "$as_me:$LINENO: result: no" >&5
6447echo "${ECHO_T}no" >&6
6448fi
6449
6450  STRIP=$ac_ct_STRIP
6451else
6452  STRIP="$ac_cv_prog_STRIP"
6453fi
6454
6455
6456old_CC="$CC"
6457old_CFLAGS="$CFLAGS"
6458
6459# Set sane defaults for various variables
6460test -z "$AR" && AR=ar
6461test -z "$AR_FLAGS" && AR_FLAGS=cru
6462test -z "$AS" && AS=as
6463test -z "$CC" && CC=cc
6464test -z "$LTCC" && LTCC=$CC
6465test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6466test -z "$DLLTOOL" && DLLTOOL=dlltool
6467test -z "$LD" && LD=ld
6468test -z "$LN_S" && LN_S="ln -s"
6469test -z "$MAGIC_CMD" && MAGIC_CMD=file
6470test -z "$NM" && NM=nm
6471test -z "$SED" && SED=sed
6472test -z "$OBJDUMP" && OBJDUMP=objdump
6473test -z "$RANLIB" && RANLIB=:
6474test -z "$STRIP" && STRIP=:
6475test -z "$ac_objext" && ac_objext=o
6476
6477# Determine commands to create old-style static archives.
6478old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6479old_postinstall_cmds='chmod 644 $oldlib'
6480old_postuninstall_cmds=
6481
6482if test -n "$RANLIB"; then
6483  case $host_os in
6484  openbsd*)
6485    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6486    ;;
6487  *)
6488    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6489    ;;
6490  esac
6491  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6492fi
6493
6494for cc_temp in $compiler""; do
6495  case $cc_temp in
6496    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6497    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6498    \-*) ;;
6499    *) break;;
6500  esac
6501done
6502cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6503
6504
6505# Only perform the check for file, if the check method requires it
6506case $deplibs_check_method in
6507file_magic*)
6508  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6509    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6510echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6511if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6512  echo $ECHO_N "(cached) $ECHO_C" >&6
6513else
6514  case $MAGIC_CMD in
6515[\\/*] |  ?:[\\/]*)
6516  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6517  ;;
6518*)
6519  lt_save_MAGIC_CMD="$MAGIC_CMD"
6520  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6521  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6522  for ac_dir in $ac_dummy; do
6523    IFS="$lt_save_ifs"
6524    test -z "$ac_dir" && ac_dir=.
6525    if test -f $ac_dir/${ac_tool_prefix}file; then
6526      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6527      if test -n "$file_magic_test_file"; then
6528	case $deplibs_check_method in
6529	"file_magic "*)
6530	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6531	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6532	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6533	    $EGREP "$file_magic_regex" > /dev/null; then
6534	    :
6535	  else
6536	    cat <<EOF 1>&2
6537
6538*** Warning: the command libtool uses to detect shared libraries,
6539*** $file_magic_cmd, produces output that libtool cannot recognize.
6540*** The result is that libtool may fail to recognize shared libraries
6541*** as such.  This will affect the creation of libtool libraries that
6542*** depend on shared libraries, but programs linked with such libtool
6543*** libraries will work regardless of this problem.  Nevertheless, you
6544*** may want to report the problem to your system manager and/or to
6545*** bug-libtool@gnu.org
6546
6547EOF
6548	  fi ;;
6549	esac
6550      fi
6551      break
6552    fi
6553  done
6554  IFS="$lt_save_ifs"
6555  MAGIC_CMD="$lt_save_MAGIC_CMD"
6556  ;;
6557esac
6558fi
6559
6560MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6561if test -n "$MAGIC_CMD"; then
6562  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6563echo "${ECHO_T}$MAGIC_CMD" >&6
6564else
6565  echo "$as_me:$LINENO: result: no" >&5
6566echo "${ECHO_T}no" >&6
6567fi
6568
6569if test -z "$lt_cv_path_MAGIC_CMD"; then
6570  if test -n "$ac_tool_prefix"; then
6571    echo "$as_me:$LINENO: checking for file" >&5
6572echo $ECHO_N "checking for file... $ECHO_C" >&6
6573if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6574  echo $ECHO_N "(cached) $ECHO_C" >&6
6575else
6576  case $MAGIC_CMD in
6577[\\/*] |  ?:[\\/]*)
6578  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6579  ;;
6580*)
6581  lt_save_MAGIC_CMD="$MAGIC_CMD"
6582  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6583  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6584  for ac_dir in $ac_dummy; do
6585    IFS="$lt_save_ifs"
6586    test -z "$ac_dir" && ac_dir=.
6587    if test -f $ac_dir/file; then
6588      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6589      if test -n "$file_magic_test_file"; then
6590	case $deplibs_check_method in
6591	"file_magic "*)
6592	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6593	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6594	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6595	    $EGREP "$file_magic_regex" > /dev/null; then
6596	    :
6597	  else
6598	    cat <<EOF 1>&2
6599
6600*** Warning: the command libtool uses to detect shared libraries,
6601*** $file_magic_cmd, produces output that libtool cannot recognize.
6602*** The result is that libtool may fail to recognize shared libraries
6603*** as such.  This will affect the creation of libtool libraries that
6604*** depend on shared libraries, but programs linked with such libtool
6605*** libraries will work regardless of this problem.  Nevertheless, you
6606*** may want to report the problem to your system manager and/or to
6607*** bug-libtool@gnu.org
6608
6609EOF
6610	  fi ;;
6611	esac
6612      fi
6613      break
6614    fi
6615  done
6616  IFS="$lt_save_ifs"
6617  MAGIC_CMD="$lt_save_MAGIC_CMD"
6618  ;;
6619esac
6620fi
6621
6622MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6623if test -n "$MAGIC_CMD"; then
6624  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6625echo "${ECHO_T}$MAGIC_CMD" >&6
6626else
6627  echo "$as_me:$LINENO: result: no" >&5
6628echo "${ECHO_T}no" >&6
6629fi
6630
6631  else
6632    MAGIC_CMD=:
6633  fi
6634fi
6635
6636  fi
6637  ;;
6638esac
6639
6640enable_dlopen=no
6641enable_win32_dll=yes
6642
6643# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6644if test "${enable_libtool_lock+set}" = set; then
6645  enableval="$enable_libtool_lock"
6646
6647fi;
6648test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6649
6650
6651# Check whether --with-pic or --without-pic was given.
6652if test "${with_pic+set}" = set; then
6653  withval="$with_pic"
6654  pic_mode="$withval"
6655else
6656  pic_mode=default
6657fi;
6658test -z "$pic_mode" && pic_mode=default
6659
6660# Use C for the default configuration in the libtool script
6661tagname=
6662lt_save_CC="$CC"
6663ac_ext=c
6664ac_cpp='$CPP $CPPFLAGS'
6665ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6666ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6667ac_compiler_gnu=$ac_cv_c_compiler_gnu
6668
6669
6670# Source file extension for C test sources.
6671ac_ext=c
6672
6673# Object file extension for compiled C test sources.
6674objext=o
6675objext=$objext
6676
6677# Code to be used in simple compile tests
6678lt_simple_compile_test_code="int some_variable = 0;\n"
6679
6680# Code to be used in simple link tests
6681lt_simple_link_test_code='int main(){return(0);}\n'
6682
6683
6684# If no C compiler was specified, use CC.
6685LTCC=${LTCC-"$CC"}
6686
6687# If no C compiler flags were specified, use CFLAGS.
6688LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6689
6690# Allow CC to be a program name with arguments.
6691compiler=$CC
6692
6693
6694# save warnings/boilerplate of simple test code
6695ac_outfile=conftest.$ac_objext
6696printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6697eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6698_lt_compiler_boilerplate=`cat conftest.err`
6699$rm conftest*
6700
6701ac_outfile=conftest.$ac_objext
6702printf "$lt_simple_link_test_code" >conftest.$ac_ext
6703eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6704_lt_linker_boilerplate=`cat conftest.err`
6705$rm conftest*
6706
6707
6708
6709lt_prog_compiler_no_builtin_flag=
6710
6711if test "$GCC" = yes; then
6712  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6713
6714
6715echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6716echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6717if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6718  echo $ECHO_N "(cached) $ECHO_C" >&6
6719else
6720  lt_cv_prog_compiler_rtti_exceptions=no
6721  ac_outfile=conftest.$ac_objext
6722   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6723   lt_compiler_flag="-fno-rtti -fno-exceptions"
6724   # Insert the option either (1) after the last *FLAGS variable, or
6725   # (2) before a word containing "conftest.", or (3) at the end.
6726   # Note that $ac_compile itself does not contain backslashes and begins
6727   # with a dollar sign (not a hyphen), so the echo should work correctly.
6728   # The option is referenced via a variable to avoid confusing sed.
6729   lt_compile=`echo "$ac_compile" | $SED \
6730   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6731   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6732   -e 's:$: $lt_compiler_flag:'`
6733   (eval echo "\"\$as_me:6733: $lt_compile\"" >&5)
6734   (eval "$lt_compile" 2>conftest.err)
6735   ac_status=$?
6736   cat conftest.err >&5
6737   echo "$as_me:6737: \$? = $ac_status" >&5
6738   if (exit $ac_status) && test -s "$ac_outfile"; then
6739     # The compiler can only warn and ignore the option if not recognized
6740     # So say no if there are warnings other than the usual output.
6741     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6742     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6743     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6744       lt_cv_prog_compiler_rtti_exceptions=yes
6745     fi
6746   fi
6747   $rm conftest*
6748
6749fi
6750echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6751echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6752
6753if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6754    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6755else
6756    :
6757fi
6758
6759fi
6760
6761lt_prog_compiler_wl=
6762lt_prog_compiler_pic=
6763lt_prog_compiler_static=
6764
6765echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6766echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6767
6768  if test "$GCC" = yes; then
6769    lt_prog_compiler_wl='-Wl,'
6770    lt_prog_compiler_static='-static'
6771
6772    case $host_os in
6773      aix*)
6774      # All AIX code is PIC.
6775      if test "$host_cpu" = ia64; then
6776	# AIX 5 now supports IA64 processor
6777	lt_prog_compiler_static='-Bstatic'
6778      fi
6779      ;;
6780
6781    amigaos*)
6782      # FIXME: we need at least 68020 code to build shared libraries, but
6783      # adding the `-m68020' flag to GCC prevents building anything better,
6784      # like `-m68040'.
6785      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6786      ;;
6787
6788    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6789      # PIC is the default for these OSes.
6790      ;;
6791
6792    mingw* | pw32* | os2*)
6793      # This hack is so that the source file can tell whether it is being
6794      # built for inclusion in a dll (and should export symbols for example).
6795      lt_prog_compiler_pic='-DDLL_EXPORT'
6796      ;;
6797
6798    darwin* | rhapsody*)
6799      # PIC is the default on this platform
6800      # Common symbols not allowed in MH_DYLIB files
6801      lt_prog_compiler_pic='-fno-common'
6802      ;;
6803
6804    interix3*)
6805      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6806      # Instead, we relocate shared libraries at runtime.
6807      ;;
6808
6809    msdosdjgpp*)
6810      # Just because we use GCC doesn't mean we suddenly get shared libraries
6811      # on systems that don't support them.
6812      lt_prog_compiler_can_build_shared=no
6813      enable_shared=no
6814      ;;
6815
6816    sysv4*MP*)
6817      if test -d /usr/nec; then
6818	lt_prog_compiler_pic=-Kconform_pic
6819      fi
6820      ;;
6821
6822    hpux*)
6823      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6824      # not for PA HP-UX.
6825      case $host_cpu in
6826      hppa*64*|ia64*)
6827	# +Z the default
6828	;;
6829      *)
6830	lt_prog_compiler_pic='-fPIC'
6831	;;
6832      esac
6833      ;;
6834
6835    *)
6836      lt_prog_compiler_pic='-fPIC'
6837      ;;
6838    esac
6839  else
6840    # PORTME Check for flag to pass linker flags through the system compiler.
6841    case $host_os in
6842    aix*)
6843      lt_prog_compiler_wl='-Wl,'
6844      if test "$host_cpu" = ia64; then
6845	# AIX 5 now supports IA64 processor
6846	lt_prog_compiler_static='-Bstatic'
6847      else
6848	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6849      fi
6850      ;;
6851      darwin*)
6852        # PIC is the default on this platform
6853        # Common symbols not allowed in MH_DYLIB files
6854       case $cc_basename in
6855         xlc*)
6856         lt_prog_compiler_pic='-qnocommon'
6857         lt_prog_compiler_wl='-Wl,'
6858         ;;
6859       esac
6860       ;;
6861
6862    mingw* | pw32* | os2*)
6863      # This hack is so that the source file can tell whether it is being
6864      # built for inclusion in a dll (and should export symbols for example).
6865      lt_prog_compiler_pic='-DDLL_EXPORT'
6866      ;;
6867
6868    hpux9* | hpux10* | hpux11*)
6869      lt_prog_compiler_wl='-Wl,'
6870      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6871      # not for PA HP-UX.
6872      case $host_cpu in
6873      hppa*64*|ia64*)
6874	# +Z the default
6875	;;
6876      *)
6877	lt_prog_compiler_pic='+Z'
6878	;;
6879      esac
6880      # Is there a better lt_prog_compiler_static that works with the bundled CC?
6881      lt_prog_compiler_static='${wl}-a ${wl}archive'
6882      ;;
6883
6884    irix5* | irix6* | nonstopux*)
6885      lt_prog_compiler_wl='-Wl,'
6886      # PIC (with -KPIC) is the default.
6887      lt_prog_compiler_static='-non_shared'
6888      ;;
6889
6890    newsos6)
6891      lt_prog_compiler_pic='-KPIC'
6892      lt_prog_compiler_static='-Bstatic'
6893      ;;
6894
6895    linux*)
6896      case $cc_basename in
6897      icc* | ecc*)
6898	lt_prog_compiler_wl='-Wl,'
6899	lt_prog_compiler_pic='-KPIC'
6900	lt_prog_compiler_static='-static'
6901        ;;
6902      pgcc* | pgf77* | pgf90* | pgf95*)
6903        # Portland Group compilers (*not* the Pentium gcc compiler,
6904	# which looks to be a dead project)
6905	lt_prog_compiler_wl='-Wl,'
6906	lt_prog_compiler_pic='-fpic'
6907	lt_prog_compiler_static='-Bstatic'
6908        ;;
6909      ccc*)
6910        lt_prog_compiler_wl='-Wl,'
6911        # All Alpha code is PIC.
6912        lt_prog_compiler_static='-non_shared'
6913        ;;
6914      esac
6915      ;;
6916
6917    osf3* | osf4* | osf5*)
6918      lt_prog_compiler_wl='-Wl,'
6919      # All OSF/1 code is PIC.
6920      lt_prog_compiler_static='-non_shared'
6921      ;;
6922
6923    solaris*)
6924      lt_prog_compiler_pic='-KPIC'
6925      lt_prog_compiler_static='-Bstatic'
6926      case $cc_basename in
6927      f77* | f90* | f95*)
6928	lt_prog_compiler_wl='-Qoption ld ';;
6929      *)
6930	lt_prog_compiler_wl='-Wl,';;
6931      esac
6932      ;;
6933
6934    sunos4*)
6935      lt_prog_compiler_wl='-Qoption ld '
6936      lt_prog_compiler_pic='-PIC'
6937      lt_prog_compiler_static='-Bstatic'
6938      ;;
6939
6940    sysv4 | sysv4.2uw2* | sysv4.3*)
6941      lt_prog_compiler_wl='-Wl,'
6942      lt_prog_compiler_pic='-KPIC'
6943      lt_prog_compiler_static='-Bstatic'
6944      ;;
6945
6946    sysv4*MP*)
6947      if test -d /usr/nec ;then
6948	lt_prog_compiler_pic='-Kconform_pic'
6949	lt_prog_compiler_static='-Bstatic'
6950      fi
6951      ;;
6952
6953    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6954      lt_prog_compiler_wl='-Wl,'
6955      lt_prog_compiler_pic='-KPIC'
6956      lt_prog_compiler_static='-Bstatic'
6957      ;;
6958
6959    unicos*)
6960      lt_prog_compiler_wl='-Wl,'
6961      lt_prog_compiler_can_build_shared=no
6962      ;;
6963
6964    uts4*)
6965      lt_prog_compiler_pic='-pic'
6966      lt_prog_compiler_static='-Bstatic'
6967      ;;
6968
6969    *)
6970      lt_prog_compiler_can_build_shared=no
6971      ;;
6972    esac
6973  fi
6974
6975echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6976echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6977
6978#
6979# Check to make sure the PIC flag actually works.
6980#
6981if test -n "$lt_prog_compiler_pic"; then
6982
6983echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6984echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6985if test "${lt_prog_compiler_pic_works+set}" = set; then
6986  echo $ECHO_N "(cached) $ECHO_C" >&6
6987else
6988  lt_prog_compiler_pic_works=no
6989  ac_outfile=conftest.$ac_objext
6990   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6991   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6992   # Insert the option either (1) after the last *FLAGS variable, or
6993   # (2) before a word containing "conftest.", or (3) at the end.
6994   # Note that $ac_compile itself does not contain backslashes and begins
6995   # with a dollar sign (not a hyphen), so the echo should work correctly.
6996   # The option is referenced via a variable to avoid confusing sed.
6997   lt_compile=`echo "$ac_compile" | $SED \
6998   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6999   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7000   -e 's:$: $lt_compiler_flag:'`
7001   (eval echo "\"\$as_me:7001: $lt_compile\"" >&5)
7002   (eval "$lt_compile" 2>conftest.err)
7003   ac_status=$?
7004   cat conftest.err >&5
7005   echo "$as_me:7005: \$? = $ac_status" >&5
7006   if (exit $ac_status) && test -s "$ac_outfile"; then
7007     # The compiler can only warn and ignore the option if not recognized
7008     # So say no if there are warnings other than the usual output.
7009     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7010     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7011     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7012       lt_prog_compiler_pic_works=yes
7013     fi
7014   fi
7015   $rm conftest*
7016
7017fi
7018echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7019echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7020
7021if test x"$lt_prog_compiler_pic_works" = xyes; then
7022    case $lt_prog_compiler_pic in
7023     "" | " "*) ;;
7024     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7025     esac
7026else
7027    lt_prog_compiler_pic=
7028     lt_prog_compiler_can_build_shared=no
7029fi
7030
7031fi
7032case $host_os in
7033  # For platforms which do not support PIC, -DPIC is meaningless:
7034  *djgpp*)
7035    lt_prog_compiler_pic=
7036    ;;
7037  *)
7038    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7039    ;;
7040esac
7041
7042#
7043# Check to make sure the static flag actually works.
7044#
7045wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7046echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7047echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7048if test "${lt_prog_compiler_static_works+set}" = set; then
7049  echo $ECHO_N "(cached) $ECHO_C" >&6
7050else
7051  lt_prog_compiler_static_works=no
7052   save_LDFLAGS="$LDFLAGS"
7053   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7054   printf "$lt_simple_link_test_code" > conftest.$ac_ext
7055   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7056     # The linker can only warn and ignore the option if not recognized
7057     # So say no if there are warnings
7058     if test -s conftest.err; then
7059       # Append any errors to the config.log.
7060       cat conftest.err 1>&5
7061       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7062       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7063       if diff conftest.exp conftest.er2 >/dev/null; then
7064         lt_prog_compiler_static_works=yes
7065       fi
7066     else
7067       lt_prog_compiler_static_works=yes
7068     fi
7069   fi
7070   $rm conftest*
7071   LDFLAGS="$save_LDFLAGS"
7072
7073fi
7074echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7075echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7076
7077if test x"$lt_prog_compiler_static_works" = xyes; then
7078    :
7079else
7080    lt_prog_compiler_static=
7081fi
7082
7083
7084echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7085echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7086if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7087  echo $ECHO_N "(cached) $ECHO_C" >&6
7088else
7089  lt_cv_prog_compiler_c_o=no
7090   $rm -r conftest 2>/dev/null
7091   mkdir conftest
7092   cd conftest
7093   mkdir out
7094   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7095
7096   lt_compiler_flag="-o out/conftest2.$ac_objext"
7097   # Insert the option either (1) after the last *FLAGS variable, or
7098   # (2) before a word containing "conftest.", or (3) at the end.
7099   # Note that $ac_compile itself does not contain backslashes and begins
7100   # with a dollar sign (not a hyphen), so the echo should work correctly.
7101   lt_compile=`echo "$ac_compile" | $SED \
7102   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7103   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7104   -e 's:$: $lt_compiler_flag:'`
7105   (eval echo "\"\$as_me:7105: $lt_compile\"" >&5)
7106   (eval "$lt_compile" 2>out/conftest.err)
7107   ac_status=$?
7108   cat out/conftest.err >&5
7109   echo "$as_me:7109: \$? = $ac_status" >&5
7110   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7111   then
7112     # The compiler can only warn and ignore the option if not recognized
7113     # So say no if there are warnings
7114     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7115     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7116     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7117       lt_cv_prog_compiler_c_o=yes
7118     fi
7119   fi
7120   chmod u+w . 2>&5
7121   $rm conftest*
7122   # SGI C++ compiler will create directory out/ii_files/ for
7123   # template instantiation
7124   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7125   $rm out/* && rmdir out
7126   cd ..
7127   rmdir conftest
7128   $rm conftest*
7129
7130fi
7131echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7132echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7133
7134
7135hard_links="nottested"
7136if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7137  # do not overwrite the value of need_locks provided by the user
7138  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7139echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7140  hard_links=yes
7141  $rm conftest*
7142  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7143  touch conftest.a
7144  ln conftest.a conftest.b 2>&5 || hard_links=no
7145  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7146  echo "$as_me:$LINENO: result: $hard_links" >&5
7147echo "${ECHO_T}$hard_links" >&6
7148  if test "$hard_links" = no; then
7149    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7150echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7151    need_locks=warn
7152  fi
7153else
7154  need_locks=no
7155fi
7156
7157echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7158echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7159
7160  runpath_var=
7161  allow_undefined_flag=
7162  enable_shared_with_static_runtimes=no
7163  archive_cmds=
7164  archive_expsym_cmds=
7165  old_archive_From_new_cmds=
7166  old_archive_from_expsyms_cmds=
7167  export_dynamic_flag_spec=
7168  whole_archive_flag_spec=
7169  thread_safe_flag_spec=
7170  hardcode_libdir_flag_spec=
7171  hardcode_libdir_flag_spec_ld=
7172  hardcode_libdir_separator=
7173  hardcode_direct=no
7174  hardcode_minus_L=no
7175  hardcode_shlibpath_var=unsupported
7176  link_all_deplibs=unknown
7177  hardcode_automatic=no
7178  module_cmds=
7179  module_expsym_cmds=
7180  always_export_symbols=no
7181  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7182  # include_expsyms should be a list of space-separated symbols to be *always*
7183  # included in the symbol list
7184  include_expsyms=
7185  # exclude_expsyms can be an extended regexp of symbols to exclude
7186  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7187  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7188  # as well as any symbol that contains `d'.
7189  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7190  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7191  # platforms (ab)use it in PIC code, but their linkers get confused if
7192  # the symbol is explicitly referenced.  Since portable code cannot
7193  # rely on this symbol name, it's probably fine to never include it in
7194  # preloaded symbol tables.
7195  extract_expsyms_cmds=
7196  # Just being paranoid about ensuring that cc_basename is set.
7197  for cc_temp in $compiler""; do
7198  case $cc_temp in
7199    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7200    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7201    \-*) ;;
7202    *) break;;
7203  esac
7204done
7205cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7206
7207  case $host_os in
7208  cygwin* | mingw* | pw32*)
7209    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7210    # When not using gcc, we currently assume that we are using
7211    # Microsoft Visual C++.
7212    if test "$GCC" != yes; then
7213      with_gnu_ld=no
7214    fi
7215    ;;
7216  interix*)
7217    # we just hope/assume this is gcc and not c89 (= MSVC++)
7218    with_gnu_ld=yes
7219    ;;
7220  openbsd*)
7221    with_gnu_ld=no
7222    ;;
7223  esac
7224
7225  ld_shlibs=yes
7226  if test "$with_gnu_ld" = yes; then
7227    # If archive_cmds runs LD, not CC, wlarc should be empty
7228    wlarc='${wl}'
7229
7230    # Set some defaults for GNU ld with shared library support. These
7231    # are reset later if shared libraries are not supported. Putting them
7232    # here allows them to be overridden if necessary.
7233    runpath_var=LD_RUN_PATH
7234    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7235    export_dynamic_flag_spec='${wl}--export-dynamic'
7236    # ancient GNU ld didn't support --whole-archive et. al.
7237    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7238	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7239      else
7240  	whole_archive_flag_spec=
7241    fi
7242    supports_anon_versioning=no
7243    case `$LD -v 2>/dev/null` in
7244      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7245      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7246      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7247      *\ 2.11.*) ;; # other 2.11 versions
7248      *) supports_anon_versioning=yes ;;
7249    esac
7250
7251    # See if GNU ld supports shared libraries.
7252    case $host_os in
7253    aix3* | aix4* | aix5*)
7254      # On AIX/PPC, the GNU linker is very broken
7255      if test "$host_cpu" != ia64; then
7256	ld_shlibs=no
7257	cat <<EOF 1>&2
7258
7259*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7260*** to be unable to reliably create shared libraries on AIX.
7261*** Therefore, libtool is disabling shared libraries support.  If you
7262*** really care for shared libraries, you may want to modify your PATH
7263*** so that a non-GNU linker is found, and then restart.
7264
7265EOF
7266      fi
7267      ;;
7268
7269    amigaos*)
7270      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)'
7271      hardcode_libdir_flag_spec='-L$libdir'
7272      hardcode_minus_L=yes
7273
7274      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7275      # that the semantics of dynamic libraries on AmigaOS, at least up
7276      # to version 4, is to share data among multiple programs linked
7277      # with the same dynamic library.  Since this doesn't match the
7278      # behavior of shared libraries on other platforms, we can't use
7279      # them.
7280      ld_shlibs=no
7281      ;;
7282
7283    beos*)
7284      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7285	allow_undefined_flag=unsupported
7286	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7287	# support --undefined.  This deserves some investigation.  FIXME
7288	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7289      else
7290	ld_shlibs=no
7291      fi
7292      ;;
7293
7294    cygwin* | mingw* | pw32*)
7295      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7296      # as there is no search path for DLLs.
7297      hardcode_libdir_flag_spec='-L$libdir'
7298      allow_undefined_flag=unsupported
7299      always_export_symbols=no
7300      enable_shared_with_static_runtimes=yes
7301      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7302
7303      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7304        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7305	# If the export-symbols file already is a .def file (1st line
7306	# is EXPORTS), use it as is; otherwise, prepend...
7307	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7308	  cp $export_symbols $output_objdir/$soname.def;
7309	else
7310	  echo EXPORTS > $output_objdir/$soname.def;
7311	  cat $export_symbols >> $output_objdir/$soname.def;
7312	fi~
7313	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7314      else
7315	ld_shlibs=no
7316      fi
7317      ;;
7318
7319    interix3*)
7320      hardcode_direct=no
7321      hardcode_shlibpath_var=no
7322      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7323      export_dynamic_flag_spec='${wl}-E'
7324      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7325      # Instead, shared libraries are loaded at an image base (0x10000000 by
7326      # default) and relocated if they conflict, which is a slow very memory
7327      # consuming and fragmenting process.  To avoid this, we pick a random,
7328      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7329      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7330      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7331      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'
7332      ;;
7333
7334    linux*)
7335      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7336	tmp_addflag=
7337	case $cc_basename,$host_cpu in
7338	pgcc*)				# Portland Group C compiler
7339	  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'
7340	  tmp_addflag=' $pic_flag'
7341	  ;;
7342	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
7343	  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'
7344	  tmp_addflag=' $pic_flag -Mnomain' ;;
7345	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
7346	  tmp_addflag=' -i_dynamic' ;;
7347	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
7348	  tmp_addflag=' -i_dynamic -nofor_main' ;;
7349	ifc* | ifort*)			# Intel Fortran compiler
7350	  tmp_addflag=' -nofor_main' ;;
7351	esac
7352	archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7353
7354	if test $supports_anon_versioning = yes; then
7355	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7356  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7357  $echo "local: *; };" >> $output_objdir/$libname.ver~
7358	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7359	fi
7360      else
7361	ld_shlibs=no
7362      fi
7363      ;;
7364
7365    netbsd*)
7366      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7367	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7368	wlarc=
7369      else
7370	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7371	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7372      fi
7373      ;;
7374
7375    solaris*)
7376      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7377	ld_shlibs=no
7378	cat <<EOF 1>&2
7379
7380*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7381*** create shared libraries on Solaris systems.  Therefore, libtool
7382*** is disabling shared libraries support.  We urge you to upgrade GNU
7383*** binutils to release 2.9.1 or newer.  Another option is to modify
7384*** your PATH or compiler configuration so that the native linker is
7385*** used, and then restart.
7386
7387EOF
7388      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7389	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7390	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7391      else
7392	ld_shlibs=no
7393      fi
7394      ;;
7395
7396    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7397      case `$LD -v 2>&1` in
7398        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7399	ld_shlibs=no
7400	cat <<_LT_EOF 1>&2
7401
7402*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7403*** reliably create shared libraries on SCO systems.  Therefore, libtool
7404*** is disabling shared libraries support.  We urge you to upgrade GNU
7405*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7406*** your PATH or compiler configuration so that the native linker is
7407*** used, and then restart.
7408
7409_LT_EOF
7410	;;
7411	*)
7412	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7413	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7414	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7415	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7416	  else
7417	    ld_shlibs=no
7418	  fi
7419	;;
7420      esac
7421      ;;
7422
7423    sunos4*)
7424      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7425      wlarc=
7426      hardcode_direct=yes
7427      hardcode_shlibpath_var=no
7428      ;;
7429
7430    *)
7431      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7432	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7433	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7434      else
7435	ld_shlibs=no
7436      fi
7437      ;;
7438    esac
7439
7440    if test "$ld_shlibs" = no; then
7441      runpath_var=
7442      hardcode_libdir_flag_spec=
7443      export_dynamic_flag_spec=
7444      whole_archive_flag_spec=
7445    fi
7446  else
7447    # PORTME fill in a description of your system's linker (not GNU ld)
7448    case $host_os in
7449    aix3*)
7450      allow_undefined_flag=unsupported
7451      always_export_symbols=yes
7452      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'
7453      # Note: this linker hardcodes the directories in LIBPATH if there
7454      # are no directories specified by -L.
7455      hardcode_minus_L=yes
7456      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7457	# Neither direct hardcoding nor static linking is supported with a
7458	# broken collect2.
7459	hardcode_direct=unsupported
7460      fi
7461      ;;
7462
7463    aix4* | aix5*)
7464      if test "$host_cpu" = ia64; then
7465	# On IA64, the linker does run time linking by default, so we don't
7466	# have to do anything special.
7467	aix_use_runtimelinking=no
7468	exp_sym_flag='-Bexport'
7469	no_entry_flag=""
7470      else
7471	# If we're using GNU nm, then we don't want the "-C" option.
7472	# -C means demangle to AIX nm, but means don't demangle with GNU nm
7473	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7474	  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'
7475	else
7476	  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'
7477	fi
7478	aix_use_runtimelinking=no
7479
7480	# Test if we are trying to use run time linking or normal
7481	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
7482	# need to do runtime linking.
7483	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7484	  for ld_flag in $LDFLAGS; do
7485  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7486  	    aix_use_runtimelinking=yes
7487  	    break
7488  	  fi
7489	  done
7490	  ;;
7491	esac
7492
7493	exp_sym_flag='-bexport'
7494	no_entry_flag='-bnoentry'
7495      fi
7496
7497      # When large executables or shared objects are built, AIX ld can
7498      # have problems creating the table of contents.  If linking a library
7499      # or program results in "error TOC overflow" add -mminimal-toc to
7500      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7501      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7502
7503      archive_cmds=''
7504      hardcode_direct=yes
7505      hardcode_libdir_separator=':'
7506      link_all_deplibs=yes
7507
7508      if test "$GCC" = yes; then
7509	case $host_os in aix4.[012]|aix4.[012].*)
7510	# We only want to do this on AIX 4.2 and lower, the check
7511	# below for broken collect2 doesn't work under 4.3+
7512	  collect2name=`${CC} -print-prog-name=collect2`
7513	  if test -f "$collect2name" && \
7514  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
7515	  then
7516  	  # We have reworked collect2
7517  	  hardcode_direct=yes
7518	  else
7519  	  # We have old collect2
7520  	  hardcode_direct=unsupported
7521  	  # It fails to find uninstalled libraries when the uninstalled
7522  	  # path is not listed in the libpath.  Setting hardcode_minus_L
7523  	  # to unsupported forces relinking
7524  	  hardcode_minus_L=yes
7525  	  hardcode_libdir_flag_spec='-L$libdir'
7526  	  hardcode_libdir_separator=
7527	  fi
7528	  ;;
7529	esac
7530	shared_flag='-shared'
7531	if test "$aix_use_runtimelinking" = yes; then
7532	  shared_flag="$shared_flag "'${wl}-G'
7533	fi
7534      else
7535	# not using gcc
7536	if test "$host_cpu" = ia64; then
7537  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7538  	# chokes on -Wl,-G. The following line is correct:
7539	  shared_flag='-G'
7540	else
7541	  if test "$aix_use_runtimelinking" = yes; then
7542	    shared_flag='${wl}-G'
7543	  else
7544	    shared_flag='${wl}-bM:SRE'
7545	  fi
7546	fi
7547      fi
7548
7549      # It seems that -bexpall does not export symbols beginning with
7550      # underscore (_), so it is better to generate a list of symbols to export.
7551      always_export_symbols=yes
7552      if test "$aix_use_runtimelinking" = yes; then
7553	# Warning - without using the other runtime loading flags (-brtl),
7554	# -berok will link without error, but may produce a broken library.
7555	allow_undefined_flag='-berok'
7556       # Determine the default libpath from the value encoded in an empty executable.
7557       cat >conftest.$ac_ext <<_ACEOF
7558/* confdefs.h.  */
7559_ACEOF
7560cat confdefs.h >>conftest.$ac_ext
7561cat >>conftest.$ac_ext <<_ACEOF
7562/* end confdefs.h.  */
7563
7564int
7565main ()
7566{
7567
7568  ;
7569  return 0;
7570}
7571_ACEOF
7572rm -f conftest.$ac_objext conftest$ac_exeext
7573if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7574  (eval $ac_link) 2>conftest.er1
7575  ac_status=$?
7576  grep -v '^ *+' conftest.er1 >conftest.err
7577  rm -f conftest.er1
7578  cat conftest.err >&5
7579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7580  (exit $ac_status); } &&
7581	 { ac_try='test -z "$ac_c_werror_flag"
7582			 || test ! -s conftest.err'
7583  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7584  (eval $ac_try) 2>&5
7585  ac_status=$?
7586  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7587  (exit $ac_status); }; } &&
7588	 { ac_try='test -s conftest$ac_exeext'
7589  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7590  (eval $ac_try) 2>&5
7591  ac_status=$?
7592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7593  (exit $ac_status); }; }; then
7594
7595aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7596}'`
7597# Check for a 64-bit object if we didn't find anything.
7598if 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; }
7599}'`; fi
7600else
7601  echo "$as_me: failed program was:" >&5
7602sed 's/^/| /' conftest.$ac_ext >&5
7603
7604fi
7605rm -f conftest.err conftest.$ac_objext \
7606      conftest$ac_exeext conftest.$ac_ext
7607if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7608
7609       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7610	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"
7611       else
7612	if test "$host_cpu" = ia64; then
7613	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7614	  allow_undefined_flag="-z nodefs"
7615	  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"
7616	else
7617	 # Determine the default libpath from the value encoded in an empty executable.
7618	 cat >conftest.$ac_ext <<_ACEOF
7619/* confdefs.h.  */
7620_ACEOF
7621cat confdefs.h >>conftest.$ac_ext
7622cat >>conftest.$ac_ext <<_ACEOF
7623/* end confdefs.h.  */
7624
7625int
7626main ()
7627{
7628
7629  ;
7630  return 0;
7631}
7632_ACEOF
7633rm -f conftest.$ac_objext conftest$ac_exeext
7634if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7635  (eval $ac_link) 2>conftest.er1
7636  ac_status=$?
7637  grep -v '^ *+' conftest.er1 >conftest.err
7638  rm -f conftest.er1
7639  cat conftest.err >&5
7640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7641  (exit $ac_status); } &&
7642	 { ac_try='test -z "$ac_c_werror_flag"
7643			 || test ! -s conftest.err'
7644  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7645  (eval $ac_try) 2>&5
7646  ac_status=$?
7647  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7648  (exit $ac_status); }; } &&
7649	 { ac_try='test -s conftest$ac_exeext'
7650  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7651  (eval $ac_try) 2>&5
7652  ac_status=$?
7653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7654  (exit $ac_status); }; }; then
7655
7656aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7657}'`
7658# Check for a 64-bit object if we didn't find anything.
7659if 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; }
7660}'`; fi
7661else
7662  echo "$as_me: failed program was:" >&5
7663sed 's/^/| /' conftest.$ac_ext >&5
7664
7665fi
7666rm -f conftest.err conftest.$ac_objext \
7667      conftest$ac_exeext conftest.$ac_ext
7668if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7669
7670	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7671	  # Warning - without using the other run time loading flags,
7672	  # -berok will link without error, but may produce a broken library.
7673	  no_undefined_flag=' ${wl}-bernotok'
7674	  allow_undefined_flag=' ${wl}-berok'
7675	  # Exported symbols can be pulled into shared objects from archives
7676	  whole_archive_flag_spec='$convenience'
7677	  archive_cmds_need_lc=yes
7678	  # This is similar to how AIX traditionally builds its shared libraries.
7679	  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'
7680	fi
7681      fi
7682      ;;
7683
7684    amigaos*)
7685      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)'
7686      hardcode_libdir_flag_spec='-L$libdir'
7687      hardcode_minus_L=yes
7688      # see comment about different semantics on the GNU ld section
7689      ld_shlibs=no
7690      ;;
7691
7692    bsdi[45]*)
7693      export_dynamic_flag_spec=-rdynamic
7694      ;;
7695
7696    cygwin* | mingw* | pw32*)
7697      # When not using gcc, we currently assume that we are using
7698      # Microsoft Visual C++.
7699      # hardcode_libdir_flag_spec is actually meaningless, as there is
7700      # no search path for DLLs.
7701      hardcode_libdir_flag_spec=' '
7702      allow_undefined_flag=unsupported
7703      # Tell ltmain to make .lib files, not .a files.
7704      libext=lib
7705      # Tell ltmain to make .dll files, not .so files.
7706      shrext_cmds=".dll"
7707      # FIXME: Setting linknames here is a bad hack.
7708      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7709      # The linker will automatically build a .lib file if we build a DLL.
7710      old_archive_From_new_cmds='true'
7711      # FIXME: Should let the user specify the lib program.
7712      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7713      fix_srcfile_path='`cygpath -w "$srcfile"`'
7714      enable_shared_with_static_runtimes=yes
7715      ;;
7716
7717    darwin* | rhapsody*)
7718      case $host_os in
7719        rhapsody* | darwin1.[012])
7720         allow_undefined_flag='${wl}-undefined ${wl}suppress'
7721         ;;
7722       *) # Darwin 1.3 on
7723         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7724           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7725         else
7726           case ${MACOSX_DEPLOYMENT_TARGET} in
7727             10.[012])
7728               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7729               ;;
7730             10.*)
7731               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7732               ;;
7733           esac
7734         fi
7735         ;;
7736      esac
7737      archive_cmds_need_lc=no
7738      hardcode_direct=no
7739      hardcode_automatic=yes
7740      hardcode_shlibpath_var=unsupported
7741      whole_archive_flag_spec=''
7742      link_all_deplibs=yes
7743    if test "$GCC" = yes ; then
7744    	output_verbose_link_cmd='echo'
7745        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7746      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7747      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7748      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}'
7749      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}'
7750    else
7751      case $cc_basename in
7752        xlc*)
7753         output_verbose_link_cmd='echo'
7754         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7755         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7756          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7757         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}'
7758          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}'
7759          ;;
7760       *)
7761         ld_shlibs=no
7762          ;;
7763      esac
7764    fi
7765      ;;
7766
7767    dgux*)
7768      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7769      hardcode_libdir_flag_spec='-L$libdir'
7770      hardcode_shlibpath_var=no
7771      ;;
7772
7773    freebsd1*)
7774      ld_shlibs=no
7775      ;;
7776
7777    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7778    # support.  Future versions do this automatically, but an explicit c++rt0.o
7779    # does not break anything, and helps significantly (at the cost of a little
7780    # extra space).
7781    freebsd2.2*)
7782      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7783      hardcode_libdir_flag_spec='-R$libdir'
7784      hardcode_direct=yes
7785      hardcode_shlibpath_var=no
7786      ;;
7787
7788    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7789    freebsd2*)
7790      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7791      hardcode_direct=yes
7792      hardcode_minus_L=yes
7793      hardcode_shlibpath_var=no
7794      ;;
7795
7796    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7797    freebsd* | kfreebsd*-gnu | dragonfly*)
7798      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7799      hardcode_libdir_flag_spec='-R$libdir'
7800      hardcode_direct=yes
7801      hardcode_shlibpath_var=no
7802      ;;
7803
7804    hpux9*)
7805      if test "$GCC" = yes; then
7806	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'
7807      else
7808	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'
7809      fi
7810      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7811      hardcode_libdir_separator=:
7812      hardcode_direct=yes
7813
7814      # hardcode_minus_L: Not really in the search PATH,
7815      # but as the default location of the library.
7816      hardcode_minus_L=yes
7817      export_dynamic_flag_spec='${wl}-E'
7818      ;;
7819
7820    hpux10*)
7821      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7822	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7823      else
7824	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7825      fi
7826      if test "$with_gnu_ld" = no; then
7827	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7828	hardcode_libdir_separator=:
7829
7830	hardcode_direct=yes
7831	export_dynamic_flag_spec='${wl}-E'
7832
7833	# hardcode_minus_L: Not really in the search PATH,
7834	# but as the default location of the library.
7835	hardcode_minus_L=yes
7836      fi
7837      ;;
7838
7839    hpux11*)
7840      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7841	case $host_cpu in
7842	hppa*64*)
7843	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7844	  ;;
7845	ia64*)
7846	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7847	  ;;
7848	*)
7849	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7850	  ;;
7851	esac
7852      else
7853	case $host_cpu in
7854	hppa*64*)
7855	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7856	  ;;
7857	ia64*)
7858	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7859	  ;;
7860	*)
7861	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7862	  ;;
7863	esac
7864      fi
7865      if test "$with_gnu_ld" = no; then
7866	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7867	hardcode_libdir_separator=:
7868
7869	case $host_cpu in
7870	hppa*64*|ia64*)
7871	  hardcode_libdir_flag_spec_ld='+b $libdir'
7872	  hardcode_direct=no
7873	  hardcode_shlibpath_var=no
7874	  ;;
7875	*)
7876	  hardcode_direct=yes
7877	  export_dynamic_flag_spec='${wl}-E'
7878
7879	  # hardcode_minus_L: Not really in the search PATH,
7880	  # but as the default location of the library.
7881	  hardcode_minus_L=yes
7882	  ;;
7883	esac
7884      fi
7885      ;;
7886
7887    irix5* | irix6* | nonstopux*)
7888      if test "$GCC" = yes; then
7889	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'
7890      else
7891	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'
7892	hardcode_libdir_flag_spec_ld='-rpath $libdir'
7893      fi
7894      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7895      hardcode_libdir_separator=:
7896      link_all_deplibs=yes
7897      ;;
7898
7899    netbsd*)
7900      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7901	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7902      else
7903	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7904      fi
7905      hardcode_libdir_flag_spec='-R$libdir'
7906      hardcode_direct=yes
7907      hardcode_shlibpath_var=no
7908      ;;
7909
7910    newsos6)
7911      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7912      hardcode_direct=yes
7913      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7914      hardcode_libdir_separator=:
7915      hardcode_shlibpath_var=no
7916      ;;
7917
7918    openbsd*)
7919      hardcode_direct=yes
7920      hardcode_shlibpath_var=no
7921      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7922	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7923	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7924	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7925	export_dynamic_flag_spec='${wl}-E'
7926      else
7927       case $host_os in
7928	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7929	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7930	   hardcode_libdir_flag_spec='-R$libdir'
7931	   ;;
7932	 *)
7933	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7934	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7935	   ;;
7936       esac
7937      fi
7938      ;;
7939
7940    os2*)
7941      hardcode_libdir_flag_spec='-L$libdir'
7942      hardcode_minus_L=yes
7943      allow_undefined_flag=unsupported
7944      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'
7945      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7946      ;;
7947
7948    osf3*)
7949      if test "$GCC" = yes; then
7950	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7951	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'
7952      else
7953	allow_undefined_flag=' -expect_unresolved \*'
7954	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'
7955      fi
7956      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7957      hardcode_libdir_separator=:
7958      ;;
7959
7960    osf4* | osf5*)	# as osf3* with the addition of -msym flag
7961      if test "$GCC" = yes; then
7962	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7963	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'
7964	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7965      else
7966	allow_undefined_flag=' -expect_unresolved \*'
7967	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'
7968	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7969	$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'
7970
7971	# Both c and cxx compiler support -rpath directly
7972	hardcode_libdir_flag_spec='-rpath $libdir'
7973      fi
7974      hardcode_libdir_separator=:
7975      ;;
7976
7977    solaris*)
7978      no_undefined_flag=' -z text'
7979      if test "$GCC" = yes; then
7980	wlarc='${wl}'
7981	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7982	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7983	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7984      else
7985	wlarc=''
7986	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7987	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7988  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7989      fi
7990      hardcode_libdir_flag_spec='-R$libdir'
7991      hardcode_shlibpath_var=no
7992      case $host_os in
7993      solaris2.[0-5] | solaris2.[0-5].*) ;;
7994      *)
7995 	# The compiler driver will combine linker options so we
7996 	# cannot just pass the convience library names through
7997 	# without $wl, iff we do not link with $LD.
7998 	# Luckily, gcc supports the same syntax we need for Sun Studio.
7999 	# Supported since Solaris 2.6 (maybe 2.5.1?)
8000 	case $wlarc in
8001 	'')
8002 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8003 	*)
8004 	  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' ;;
8005 	esac ;;
8006      esac
8007      link_all_deplibs=yes
8008      ;;
8009
8010    sunos4*)
8011      if test "x$host_vendor" = xsequent; then
8012	# Use $CC to link under sequent, because it throws in some extra .o
8013	# files that make .init and .fini sections work.
8014	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8015      else
8016	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8017      fi
8018      hardcode_libdir_flag_spec='-L$libdir'
8019      hardcode_direct=yes
8020      hardcode_minus_L=yes
8021      hardcode_shlibpath_var=no
8022      ;;
8023
8024    sysv4)
8025      case $host_vendor in
8026	sni)
8027	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8028	  hardcode_direct=yes # is this really true???
8029	;;
8030	siemens)
8031	  ## LD is ld it makes a PLAMLIB
8032	  ## CC just makes a GrossModule.
8033	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8034	  reload_cmds='$CC -r -o $output$reload_objs'
8035	  hardcode_direct=no
8036        ;;
8037	motorola)
8038	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8039	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8040	;;
8041      esac
8042      runpath_var='LD_RUN_PATH'
8043      hardcode_shlibpath_var=no
8044      ;;
8045
8046    sysv4.3*)
8047      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8048      hardcode_shlibpath_var=no
8049      export_dynamic_flag_spec='-Bexport'
8050      ;;
8051
8052    sysv4*MP*)
8053      if test -d /usr/nec; then
8054	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8055	hardcode_shlibpath_var=no
8056	runpath_var=LD_RUN_PATH
8057	hardcode_runpath_var=yes
8058	ld_shlibs=yes
8059      fi
8060      ;;
8061
8062    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8063      no_undefined_flag='${wl}-z,text'
8064      archive_cmds_need_lc=no
8065      hardcode_shlibpath_var=no
8066      runpath_var='LD_RUN_PATH'
8067
8068      if test "$GCC" = yes; then
8069	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8070	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8071      else
8072	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8073	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8074      fi
8075      ;;
8076
8077    sysv5* | sco3.2v5* | sco5v6*)
8078      # Note: We can NOT use -z defs as we might desire, because we do not
8079      # link with -lc, and that would cause any symbols used from libc to
8080      # always be unresolved, which means just about no library would
8081      # ever link correctly.  If we're not using GNU ld we use -z text
8082      # though, which does catch some bad symbols but isn't as heavy-handed
8083      # as -z defs.
8084      no_undefined_flag='${wl}-z,text'
8085      allow_undefined_flag='${wl}-z,nodefs'
8086      archive_cmds_need_lc=no
8087      hardcode_shlibpath_var=no
8088      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8089      hardcode_libdir_separator=':'
8090      link_all_deplibs=yes
8091      export_dynamic_flag_spec='${wl}-Bexport'
8092      runpath_var='LD_RUN_PATH'
8093
8094      if test "$GCC" = yes; then
8095	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8096	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8097      else
8098	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8099	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8100      fi
8101      ;;
8102
8103    uts4*)
8104      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8105      hardcode_libdir_flag_spec='-L$libdir'
8106      hardcode_shlibpath_var=no
8107      ;;
8108
8109    *)
8110      ld_shlibs=no
8111      ;;
8112    esac
8113  fi
8114
8115echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8116echo "${ECHO_T}$ld_shlibs" >&6
8117test "$ld_shlibs" = no && can_build_shared=no
8118
8119#
8120# Do we need to explicitly link libc?
8121#
8122case "x$archive_cmds_need_lc" in
8123x|xyes)
8124  # Assume -lc should be added
8125  archive_cmds_need_lc=yes
8126
8127  if test "$enable_shared" = yes && test "$GCC" = yes; then
8128    case $archive_cmds in
8129    *'~'*)
8130      # FIXME: we may have to deal with multi-command sequences.
8131      ;;
8132    '$CC '*)
8133      # Test whether the compiler implicitly links with -lc since on some
8134      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8135      # to ld, don't add -lc before -lgcc.
8136      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8137echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8138      $rm conftest*
8139      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8140
8141      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8142  (eval $ac_compile) 2>&5
8143  ac_status=$?
8144  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8145  (exit $ac_status); } 2>conftest.err; then
8146        soname=conftest
8147        lib=conftest
8148        libobjs=conftest.$ac_objext
8149        deplibs=
8150        wl=$lt_prog_compiler_wl
8151	pic_flag=$lt_prog_compiler_pic
8152        compiler_flags=-v
8153        linker_flags=-v
8154        verstring=
8155        output_objdir=.
8156        libname=conftest
8157        lt_save_allow_undefined_flag=$allow_undefined_flag
8158        allow_undefined_flag=
8159        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8160  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8161  ac_status=$?
8162  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8163  (exit $ac_status); }
8164        then
8165	  archive_cmds_need_lc=no
8166        else
8167	  archive_cmds_need_lc=yes
8168        fi
8169        allow_undefined_flag=$lt_save_allow_undefined_flag
8170      else
8171        cat conftest.err 1>&5
8172      fi
8173      $rm conftest*
8174      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8175echo "${ECHO_T}$archive_cmds_need_lc" >&6
8176      ;;
8177    esac
8178  fi
8179  ;;
8180esac
8181
8182echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8183echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8184library_names_spec=
8185libname_spec='lib$name'
8186soname_spec=
8187shrext_cmds=".so"
8188postinstall_cmds=
8189postuninstall_cmds=
8190finish_cmds=
8191finish_eval=
8192shlibpath_var=
8193shlibpath_overrides_runpath=unknown
8194version_type=none
8195dynamic_linker="$host_os ld.so"
8196sys_lib_dlsearch_path_spec="/lib /usr/lib"
8197if test "$GCC" = yes; then
8198  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8199  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8200    # if the path contains ";" then we assume it to be the separator
8201    # otherwise default to the standard path separator (i.e. ":") - it is
8202    # assumed that no part of a normal pathname contains ";" but that should
8203    # okay in the real world where ";" in dirpaths is itself problematic.
8204    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8205  else
8206    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8207  fi
8208else
8209  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8210fi
8211need_lib_prefix=unknown
8212hardcode_into_libs=no
8213
8214# when you set need_version to no, make sure it does not cause -set_version
8215# flags to be left without arguments
8216need_version=unknown
8217
8218case $host_os in
8219aix3*)
8220  version_type=linux
8221  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8222  shlibpath_var=LIBPATH
8223
8224  # AIX 3 has no versioning support, so we append a major version to the name.
8225  soname_spec='${libname}${release}${shared_ext}$major'
8226  ;;
8227
8228aix4* | aix5*)
8229  version_type=linux
8230  need_lib_prefix=no
8231  need_version=no
8232  hardcode_into_libs=yes
8233  if test "$host_cpu" = ia64; then
8234    # AIX 5 supports IA64
8235    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8236    shlibpath_var=LD_LIBRARY_PATH
8237  else
8238    # With GCC up to 2.95.x, collect2 would create an import file
8239    # for dependence libraries.  The import file would start with
8240    # the line `#! .'.  This would cause the generated library to
8241    # depend on `.', always an invalid library.  This was fixed in
8242    # development snapshots of GCC prior to 3.0.
8243    case $host_os in
8244      aix4 | aix4.[01] | aix4.[01].*)
8245      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8246	   echo ' yes '
8247	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8248	:
8249      else
8250	can_build_shared=no
8251      fi
8252      ;;
8253    esac
8254    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8255    # soname into executable. Probably we can add versioning support to
8256    # collect2, so additional links can be useful in future.
8257    if test "$aix_use_runtimelinking" = yes; then
8258      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8259      # instead of lib<name>.a to let people know that these are not
8260      # typical AIX shared libraries.
8261      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8262    else
8263      # We preserve .a as extension for shared libraries through AIX4.2
8264      # and later when we are not doing run time linking.
8265      library_names_spec='${libname}${release}.a $libname.a'
8266      soname_spec='${libname}${release}${shared_ext}$major'
8267    fi
8268    shlibpath_var=LIBPATH
8269  fi
8270  ;;
8271
8272amigaos*)
8273  library_names_spec='$libname.ixlibrary $libname.a'
8274  # Create ${libname}_ixlibrary.a entries in /sys/libs.
8275  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'
8276  ;;
8277
8278beos*)
8279  library_names_spec='${libname}${shared_ext}'
8280  dynamic_linker="$host_os ld.so"
8281  shlibpath_var=LIBRARY_PATH
8282  ;;
8283
8284bsdi[45]*)
8285  version_type=linux
8286  need_version=no
8287  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8288  soname_spec='${libname}${release}${shared_ext}$major'
8289  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8290  shlibpath_var=LD_LIBRARY_PATH
8291  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8292  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8293  # the default ld.so.conf also contains /usr/contrib/lib and
8294  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8295  # libtool to hard-code these into programs
8296  ;;
8297
8298cygwin* | mingw* | pw32*)
8299  version_type=windows
8300  shrext_cmds=".dll"
8301  need_version=no
8302  need_lib_prefix=no
8303
8304  case $GCC,$host_os in
8305  yes,cygwin* | yes,mingw* | yes,pw32*)
8306    library_names_spec='$libname.dll.a'
8307    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8308    postinstall_cmds='base_file=`basename \${file}`~
8309      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8310      dldir=$destdir/`dirname \$dlpath`~
8311      test -d \$dldir || mkdir -p \$dldir~
8312      $install_prog $dir/$dlname \$dldir/$dlname~
8313      chmod a+x \$dldir/$dlname'
8314    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8315      dlpath=$dir/\$dldll~
8316       $rm \$dlpath'
8317    shlibpath_overrides_runpath=yes
8318
8319    case $host_os in
8320    cygwin*)
8321      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8322      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8323      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8324      ;;
8325    mingw*)
8326      # MinGW DLLs use traditional 'lib' prefix
8327      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8328      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8329      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8330        # It is most probably a Windows format PATH printed by
8331        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8332        # path with ; separators, and with drive letters. We can handle the
8333        # drive letters (cygwin fileutils understands them), so leave them,
8334        # especially as we might pass files found there to a mingw objdump,
8335        # which wouldn't understand a cygwinified path. Ahh.
8336        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8337      else
8338        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8339      fi
8340      ;;
8341    pw32*)
8342      # pw32 DLLs use 'pw' prefix rather than 'lib'
8343      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8344      ;;
8345    esac
8346    ;;
8347
8348  *)
8349    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8350    ;;
8351  esac
8352  dynamic_linker='Win32 ld.exe'
8353  # FIXME: first we should search . and the directory the executable is in
8354  shlibpath_var=PATH
8355  ;;
8356
8357darwin* | rhapsody*)
8358  dynamic_linker="$host_os dyld"
8359  version_type=darwin
8360  need_lib_prefix=no
8361  need_version=no
8362  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8363  soname_spec='${libname}${release}${major}$shared_ext'
8364  shlibpath_overrides_runpath=yes
8365  shlibpath_var=DYLD_LIBRARY_PATH
8366  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8367  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8368  if test "$GCC" = yes; then
8369    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"`
8370  else
8371    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8372  fi
8373  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8374  ;;
8375
8376dgux*)
8377  version_type=linux
8378  need_lib_prefix=no
8379  need_version=no
8380  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8381  soname_spec='${libname}${release}${shared_ext}$major'
8382  shlibpath_var=LD_LIBRARY_PATH
8383  ;;
8384
8385freebsd1*)
8386  dynamic_linker=no
8387  ;;
8388
8389kfreebsd*-gnu)
8390  version_type=linux
8391  need_lib_prefix=no
8392  need_version=no
8393  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8394  soname_spec='${libname}${release}${shared_ext}$major'
8395  shlibpath_var=LD_LIBRARY_PATH
8396  shlibpath_overrides_runpath=no
8397  hardcode_into_libs=yes
8398  dynamic_linker='GNU ld.so'
8399  ;;
8400
8401freebsd* | dragonfly*)
8402  # DragonFly does not have aout.  When/if they implement a new
8403  # versioning mechanism, adjust this.
8404  if test -x /usr/bin/objformat; then
8405    objformat=`/usr/bin/objformat`
8406  else
8407    case $host_os in
8408    freebsd[123]*) objformat=aout ;;
8409    *) objformat=elf ;;
8410    esac
8411  fi
8412  version_type=freebsd-$objformat
8413  case $version_type in
8414    freebsd-elf*)
8415      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8416      need_version=no
8417      need_lib_prefix=no
8418      ;;
8419    freebsd-*)
8420      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8421      need_version=yes
8422      ;;
8423  esac
8424  shlibpath_var=LD_LIBRARY_PATH
8425  case $host_os in
8426  freebsd2*)
8427    shlibpath_overrides_runpath=yes
8428    ;;
8429  freebsd3.[01]* | freebsdelf3.[01]*)
8430    shlibpath_overrides_runpath=yes
8431    hardcode_into_libs=yes
8432    ;;
8433  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8434  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8435    shlibpath_overrides_runpath=no
8436    hardcode_into_libs=yes
8437    ;;
8438  freebsd*) # from 4.6 on
8439    shlibpath_overrides_runpath=yes
8440    hardcode_into_libs=yes
8441    ;;
8442  esac
8443  ;;
8444
8445gnu*)
8446  version_type=linux
8447  need_lib_prefix=no
8448  need_version=no
8449  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8450  soname_spec='${libname}${release}${shared_ext}$major'
8451  shlibpath_var=LD_LIBRARY_PATH
8452  hardcode_into_libs=yes
8453  ;;
8454
8455hpux9* | hpux10* | hpux11*)
8456  # Give a soname corresponding to the major version so that dld.sl refuses to
8457  # link against other versions.
8458  version_type=sunos
8459  need_lib_prefix=no
8460  need_version=no
8461  case $host_cpu in
8462  ia64*)
8463    shrext_cmds='.so'
8464    hardcode_into_libs=yes
8465    dynamic_linker="$host_os dld.so"
8466    shlibpath_var=LD_LIBRARY_PATH
8467    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8468    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8469    soname_spec='${libname}${release}${shared_ext}$major'
8470    if test "X$HPUX_IA64_MODE" = X32; then
8471      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8472    else
8473      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8474    fi
8475    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8476    ;;
8477   hppa*64*)
8478     shrext_cmds='.sl'
8479     hardcode_into_libs=yes
8480     dynamic_linker="$host_os dld.sl"
8481     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8482     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8483     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8484     soname_spec='${libname}${release}${shared_ext}$major'
8485     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8486     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8487     ;;
8488   *)
8489    shrext_cmds='.sl'
8490    dynamic_linker="$host_os dld.sl"
8491    shlibpath_var=SHLIB_PATH
8492    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8493    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8494    soname_spec='${libname}${release}${shared_ext}$major'
8495    ;;
8496  esac
8497  # HP-UX runs *really* slowly unless shared libraries are mode 555.
8498  postinstall_cmds='chmod 555 $lib'
8499  ;;
8500
8501interix3*)
8502  version_type=linux
8503  need_lib_prefix=no
8504  need_version=no
8505  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8506  soname_spec='${libname}${release}${shared_ext}$major'
8507  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8508  shlibpath_var=LD_LIBRARY_PATH
8509  shlibpath_overrides_runpath=no
8510  hardcode_into_libs=yes
8511  ;;
8512
8513irix5* | irix6* | nonstopux*)
8514  case $host_os in
8515    nonstopux*) version_type=nonstopux ;;
8516    *)
8517	if test "$lt_cv_prog_gnu_ld" = yes; then
8518		version_type=linux
8519	else
8520		version_type=irix
8521	fi ;;
8522  esac
8523  need_lib_prefix=no
8524  need_version=no
8525  soname_spec='${libname}${release}${shared_ext}$major'
8526  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8527  case $host_os in
8528  irix5* | nonstopux*)
8529    libsuff= shlibsuff=
8530    ;;
8531  *)
8532    case $LD in # libtool.m4 will add one of these switches to LD
8533    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8534      libsuff= shlibsuff= libmagic=32-bit;;
8535    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8536      libsuff=32 shlibsuff=N32 libmagic=N32;;
8537    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8538      libsuff=64 shlibsuff=64 libmagic=64-bit;;
8539    *) libsuff= shlibsuff= libmagic=never-match;;
8540    esac
8541    ;;
8542  esac
8543  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8544  shlibpath_overrides_runpath=no
8545  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8546  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8547  hardcode_into_libs=yes
8548  ;;
8549
8550# No shared lib support for Linux oldld, aout, or coff.
8551linux*oldld* | linux*aout* | linux*coff*)
8552  dynamic_linker=no
8553  ;;
8554
8555# This must be Linux ELF.
8556linux*)
8557  version_type=linux
8558  need_lib_prefix=no
8559  need_version=no
8560  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8561  soname_spec='${libname}${release}${shared_ext}$major'
8562  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8563  shlibpath_var=LD_LIBRARY_PATH
8564  shlibpath_overrides_runpath=no
8565  # This implies no fast_install, which is unacceptable.
8566  # Some rework will be needed to allow for fast_install
8567  # before this can be enabled.
8568  hardcode_into_libs=yes
8569
8570  # Append ld.so.conf contents to the search path
8571  if test -f /etc/ld.so.conf; then
8572    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' ' '`
8573    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8574  fi
8575
8576  # We used to test for /lib/ld.so.1 and disable shared libraries on
8577  # powerpc, because MkLinux only supported shared libraries with the
8578  # GNU dynamic linker.  Since this was broken with cross compilers,
8579  # most powerpc-linux boxes support dynamic linking these days and
8580  # people can always --disable-shared, the test was removed, and we
8581  # assume the GNU/Linux dynamic linker is in use.
8582  dynamic_linker='GNU/Linux ld.so'
8583  ;;
8584
8585knetbsd*-gnu)
8586  version_type=linux
8587  need_lib_prefix=no
8588  need_version=no
8589  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8590  soname_spec='${libname}${release}${shared_ext}$major'
8591  shlibpath_var=LD_LIBRARY_PATH
8592  shlibpath_overrides_runpath=no
8593  hardcode_into_libs=yes
8594  dynamic_linker='GNU ld.so'
8595  ;;
8596
8597netbsd*)
8598  version_type=sunos
8599  need_lib_prefix=no
8600  need_version=no
8601  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8602    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8603    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8604    dynamic_linker='NetBSD (a.out) ld.so'
8605  else
8606    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8607    soname_spec='${libname}${release}${shared_ext}$major'
8608    dynamic_linker='NetBSD ld.elf_so'
8609  fi
8610  shlibpath_var=LD_LIBRARY_PATH
8611  shlibpath_overrides_runpath=yes
8612  hardcode_into_libs=yes
8613  ;;
8614
8615newsos6)
8616  version_type=linux
8617  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8618  shlibpath_var=LD_LIBRARY_PATH
8619  shlibpath_overrides_runpath=yes
8620  ;;
8621
8622nto-qnx*)
8623  version_type=linux
8624  need_lib_prefix=no
8625  need_version=no
8626  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8627  soname_spec='${libname}${release}${shared_ext}$major'
8628  shlibpath_var=LD_LIBRARY_PATH
8629  shlibpath_overrides_runpath=yes
8630  ;;
8631
8632openbsd*)
8633  version_type=sunos
8634  sys_lib_dlsearch_path_spec="/usr/lib"
8635  need_lib_prefix=no
8636  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8637  case $host_os in
8638    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8639    *)                         need_version=no  ;;
8640  esac
8641  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8642  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8643  shlibpath_var=LD_LIBRARY_PATH
8644  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8645    case $host_os in
8646      openbsd2.[89] | openbsd2.[89].*)
8647	shlibpath_overrides_runpath=no
8648	;;
8649      *)
8650	shlibpath_overrides_runpath=yes
8651	;;
8652      esac
8653  else
8654    shlibpath_overrides_runpath=yes
8655  fi
8656  ;;
8657
8658os2*)
8659  libname_spec='$name'
8660  shrext_cmds=".dll"
8661  need_lib_prefix=no
8662  library_names_spec='$libname${shared_ext} $libname.a'
8663  dynamic_linker='OS/2 ld.exe'
8664  shlibpath_var=LIBPATH
8665  ;;
8666
8667osf3* | osf4* | osf5*)
8668  version_type=osf
8669  need_lib_prefix=no
8670  need_version=no
8671  soname_spec='${libname}${release}${shared_ext}$major'
8672  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8673  shlibpath_var=LD_LIBRARY_PATH
8674  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8675  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8676  ;;
8677
8678solaris*)
8679  version_type=linux
8680  need_lib_prefix=no
8681  need_version=no
8682  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8683  soname_spec='${libname}${release}${shared_ext}$major'
8684  shlibpath_var=LD_LIBRARY_PATH
8685  shlibpath_overrides_runpath=yes
8686  hardcode_into_libs=yes
8687  # ldd complains unless libraries are executable
8688  postinstall_cmds='chmod +x $lib'
8689  ;;
8690
8691sunos4*)
8692  version_type=sunos
8693  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8694  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8695  shlibpath_var=LD_LIBRARY_PATH
8696  shlibpath_overrides_runpath=yes
8697  if test "$with_gnu_ld" = yes; then
8698    need_lib_prefix=no
8699  fi
8700  need_version=yes
8701  ;;
8702
8703sysv4 | sysv4.3*)
8704  version_type=linux
8705  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8706  soname_spec='${libname}${release}${shared_ext}$major'
8707  shlibpath_var=LD_LIBRARY_PATH
8708  case $host_vendor in
8709    sni)
8710      shlibpath_overrides_runpath=no
8711      need_lib_prefix=no
8712      export_dynamic_flag_spec='${wl}-Blargedynsym'
8713      runpath_var=LD_RUN_PATH
8714      ;;
8715    siemens)
8716      need_lib_prefix=no
8717      ;;
8718    motorola)
8719      need_lib_prefix=no
8720      need_version=no
8721      shlibpath_overrides_runpath=no
8722      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8723      ;;
8724  esac
8725  ;;
8726
8727sysv4*MP*)
8728  if test -d /usr/nec ;then
8729    version_type=linux
8730    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8731    soname_spec='$libname${shared_ext}.$major'
8732    shlibpath_var=LD_LIBRARY_PATH
8733  fi
8734  ;;
8735
8736sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8737  version_type=freebsd-elf
8738  need_lib_prefix=no
8739  need_version=no
8740  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8741  soname_spec='${libname}${release}${shared_ext}$major'
8742  shlibpath_var=LD_LIBRARY_PATH
8743  hardcode_into_libs=yes
8744  if test "$with_gnu_ld" = yes; then
8745    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8746    shlibpath_overrides_runpath=no
8747  else
8748    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8749    shlibpath_overrides_runpath=yes
8750    case $host_os in
8751      sco3.2v5*)
8752        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8753	;;
8754    esac
8755  fi
8756  sys_lib_dlsearch_path_spec='/usr/lib'
8757  ;;
8758
8759uts4*)
8760  version_type=linux
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  shlibpath_var=LD_LIBRARY_PATH
8764  ;;
8765
8766*)
8767  dynamic_linker=no
8768  ;;
8769esac
8770echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8771echo "${ECHO_T}$dynamic_linker" >&6
8772test "$dynamic_linker" = no && can_build_shared=no
8773
8774variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8775if test "$GCC" = yes; then
8776  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8777fi
8778
8779echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8780echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8781hardcode_action=
8782if test -n "$hardcode_libdir_flag_spec" || \
8783   test -n "$runpath_var" || \
8784   test "X$hardcode_automatic" = "Xyes" ; then
8785
8786  # We can hardcode non-existant directories.
8787  if test "$hardcode_direct" != no &&
8788     # If the only mechanism to avoid hardcoding is shlibpath_var, we
8789     # have to relink, otherwise we might link with an installed library
8790     # when we should be linking with a yet-to-be-installed one
8791     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8792     test "$hardcode_minus_L" != no; then
8793    # Linking always hardcodes the temporary library directory.
8794    hardcode_action=relink
8795  else
8796    # We can link without hardcoding, and we can hardcode nonexisting dirs.
8797    hardcode_action=immediate
8798  fi
8799else
8800  # We cannot hardcode anything, or else we can only hardcode existing
8801  # directories.
8802  hardcode_action=unsupported
8803fi
8804echo "$as_me:$LINENO: result: $hardcode_action" >&5
8805echo "${ECHO_T}$hardcode_action" >&6
8806
8807if test "$hardcode_action" = relink; then
8808  # Fast installation is not supported
8809  enable_fast_install=no
8810elif test "$shlibpath_overrides_runpath" = yes ||
8811     test "$enable_shared" = no; then
8812  # Fast installation is not necessary
8813  enable_fast_install=needless
8814fi
8815
8816striplib=
8817old_striplib=
8818echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8819echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8820if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8821  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8822  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8823  echo "$as_me:$LINENO: result: yes" >&5
8824echo "${ECHO_T}yes" >&6
8825else
8826# FIXME - insert some real tests, host_os isn't really good enough
8827  case $host_os in
8828   darwin*)
8829       if test -n "$STRIP" ; then
8830         striplib="$STRIP -x"
8831         echo "$as_me:$LINENO: result: yes" >&5
8832echo "${ECHO_T}yes" >&6
8833       else
8834  echo "$as_me:$LINENO: result: no" >&5
8835echo "${ECHO_T}no" >&6
8836fi
8837       ;;
8838   *)
8839  echo "$as_me:$LINENO: result: no" >&5
8840echo "${ECHO_T}no" >&6
8841    ;;
8842  esac
8843fi
8844
8845if test "x$enable_dlopen" != xyes; then
8846  enable_dlopen=unknown
8847  enable_dlopen_self=unknown
8848  enable_dlopen_self_static=unknown
8849else
8850  lt_cv_dlopen=no
8851  lt_cv_dlopen_libs=
8852
8853  case $host_os in
8854  beos*)
8855    lt_cv_dlopen="load_add_on"
8856    lt_cv_dlopen_libs=
8857    lt_cv_dlopen_self=yes
8858    ;;
8859
8860  mingw* | pw32*)
8861    lt_cv_dlopen="LoadLibrary"
8862    lt_cv_dlopen_libs=
8863   ;;
8864
8865  cygwin*)
8866    lt_cv_dlopen="dlopen"
8867    lt_cv_dlopen_libs=
8868   ;;
8869
8870  darwin*)
8871  # if libdl is installed we need to link against it
8872    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8873echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8874if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8875  echo $ECHO_N "(cached) $ECHO_C" >&6
8876else
8877  ac_check_lib_save_LIBS=$LIBS
8878LIBS="-ldl  $LIBS"
8879cat >conftest.$ac_ext <<_ACEOF
8880/* confdefs.h.  */
8881_ACEOF
8882cat confdefs.h >>conftest.$ac_ext
8883cat >>conftest.$ac_ext <<_ACEOF
8884/* end confdefs.h.  */
8885
8886/* Override any gcc2 internal prototype to avoid an error.  */
8887#ifdef __cplusplus
8888extern "C"
8889#endif
8890/* We use char because int might match the return type of a gcc2
8891   builtin and then its argument prototype would still apply.  */
8892char dlopen ();
8893int
8894main ()
8895{
8896dlopen ();
8897  ;
8898  return 0;
8899}
8900_ACEOF
8901rm -f conftest.$ac_objext conftest$ac_exeext
8902if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8903  (eval $ac_link) 2>conftest.er1
8904  ac_status=$?
8905  grep -v '^ *+' conftest.er1 >conftest.err
8906  rm -f conftest.er1
8907  cat conftest.err >&5
8908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8909  (exit $ac_status); } &&
8910	 { ac_try='test -z "$ac_c_werror_flag"
8911			 || test ! -s conftest.err'
8912  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8913  (eval $ac_try) 2>&5
8914  ac_status=$?
8915  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8916  (exit $ac_status); }; } &&
8917	 { ac_try='test -s conftest$ac_exeext'
8918  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8919  (eval $ac_try) 2>&5
8920  ac_status=$?
8921  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8922  (exit $ac_status); }; }; then
8923  ac_cv_lib_dl_dlopen=yes
8924else
8925  echo "$as_me: failed program was:" >&5
8926sed 's/^/| /' conftest.$ac_ext >&5
8927
8928ac_cv_lib_dl_dlopen=no
8929fi
8930rm -f conftest.err conftest.$ac_objext \
8931      conftest$ac_exeext conftest.$ac_ext
8932LIBS=$ac_check_lib_save_LIBS
8933fi
8934echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8935echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8936if test $ac_cv_lib_dl_dlopen = yes; then
8937  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8938else
8939
8940    lt_cv_dlopen="dyld"
8941    lt_cv_dlopen_libs=
8942    lt_cv_dlopen_self=yes
8943
8944fi
8945
8946   ;;
8947
8948  *)
8949    echo "$as_me:$LINENO: checking for shl_load" >&5
8950echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8951if test "${ac_cv_func_shl_load+set}" = set; then
8952  echo $ECHO_N "(cached) $ECHO_C" >&6
8953else
8954  cat >conftest.$ac_ext <<_ACEOF
8955/* confdefs.h.  */
8956_ACEOF
8957cat confdefs.h >>conftest.$ac_ext
8958cat >>conftest.$ac_ext <<_ACEOF
8959/* end confdefs.h.  */
8960/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8961   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8962#define shl_load innocuous_shl_load
8963
8964/* System header to define __stub macros and hopefully few prototypes,
8965    which can conflict with char shl_load (); below.
8966    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8967    <limits.h> exists even on freestanding compilers.  */
8968
8969#ifdef __STDC__
8970# include <limits.h>
8971#else
8972# include <assert.h>
8973#endif
8974
8975#undef shl_load
8976
8977/* Override any gcc2 internal prototype to avoid an error.  */
8978#ifdef __cplusplus
8979extern "C"
8980{
8981#endif
8982/* We use char because int might match the return type of a gcc2
8983   builtin and then its argument prototype would still apply.  */
8984char shl_load ();
8985/* The GNU C library defines this for functions which it implements
8986    to always fail with ENOSYS.  Some functions are actually named
8987    something starting with __ and the normal name is an alias.  */
8988#if defined (__stub_shl_load) || defined (__stub___shl_load)
8989choke me
8990#else
8991char (*f) () = shl_load;
8992#endif
8993#ifdef __cplusplus
8994}
8995#endif
8996
8997int
8998main ()
8999{
9000return f != shl_load;
9001  ;
9002  return 0;
9003}
9004_ACEOF
9005rm -f conftest.$ac_objext conftest$ac_exeext
9006if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9007  (eval $ac_link) 2>conftest.er1
9008  ac_status=$?
9009  grep -v '^ *+' conftest.er1 >conftest.err
9010  rm -f conftest.er1
9011  cat conftest.err >&5
9012  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9013  (exit $ac_status); } &&
9014	 { ac_try='test -z "$ac_c_werror_flag"
9015			 || test ! -s conftest.err'
9016  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9017  (eval $ac_try) 2>&5
9018  ac_status=$?
9019  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9020  (exit $ac_status); }; } &&
9021	 { ac_try='test -s conftest$ac_exeext'
9022  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9023  (eval $ac_try) 2>&5
9024  ac_status=$?
9025  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9026  (exit $ac_status); }; }; then
9027  ac_cv_func_shl_load=yes
9028else
9029  echo "$as_me: failed program was:" >&5
9030sed 's/^/| /' conftest.$ac_ext >&5
9031
9032ac_cv_func_shl_load=no
9033fi
9034rm -f conftest.err conftest.$ac_objext \
9035      conftest$ac_exeext conftest.$ac_ext
9036fi
9037echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9038echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9039if test $ac_cv_func_shl_load = yes; then
9040  lt_cv_dlopen="shl_load"
9041else
9042  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9043echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9044if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9045  echo $ECHO_N "(cached) $ECHO_C" >&6
9046else
9047  ac_check_lib_save_LIBS=$LIBS
9048LIBS="-ldld  $LIBS"
9049cat >conftest.$ac_ext <<_ACEOF
9050/* confdefs.h.  */
9051_ACEOF
9052cat confdefs.h >>conftest.$ac_ext
9053cat >>conftest.$ac_ext <<_ACEOF
9054/* end confdefs.h.  */
9055
9056/* Override any gcc2 internal prototype to avoid an error.  */
9057#ifdef __cplusplus
9058extern "C"
9059#endif
9060/* We use char because int might match the return type of a gcc2
9061   builtin and then its argument prototype would still apply.  */
9062char shl_load ();
9063int
9064main ()
9065{
9066shl_load ();
9067  ;
9068  return 0;
9069}
9070_ACEOF
9071rm -f conftest.$ac_objext conftest$ac_exeext
9072if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9073  (eval $ac_link) 2>conftest.er1
9074  ac_status=$?
9075  grep -v '^ *+' conftest.er1 >conftest.err
9076  rm -f conftest.er1
9077  cat conftest.err >&5
9078  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9079  (exit $ac_status); } &&
9080	 { ac_try='test -z "$ac_c_werror_flag"
9081			 || test ! -s conftest.err'
9082  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9083  (eval $ac_try) 2>&5
9084  ac_status=$?
9085  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9086  (exit $ac_status); }; } &&
9087	 { ac_try='test -s conftest$ac_exeext'
9088  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9089  (eval $ac_try) 2>&5
9090  ac_status=$?
9091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9092  (exit $ac_status); }; }; then
9093  ac_cv_lib_dld_shl_load=yes
9094else
9095  echo "$as_me: failed program was:" >&5
9096sed 's/^/| /' conftest.$ac_ext >&5
9097
9098ac_cv_lib_dld_shl_load=no
9099fi
9100rm -f conftest.err conftest.$ac_objext \
9101      conftest$ac_exeext conftest.$ac_ext
9102LIBS=$ac_check_lib_save_LIBS
9103fi
9104echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9105echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9106if test $ac_cv_lib_dld_shl_load = yes; then
9107  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9108else
9109  echo "$as_me:$LINENO: checking for dlopen" >&5
9110echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9111if test "${ac_cv_func_dlopen+set}" = set; then
9112  echo $ECHO_N "(cached) $ECHO_C" >&6
9113else
9114  cat >conftest.$ac_ext <<_ACEOF
9115/* confdefs.h.  */
9116_ACEOF
9117cat confdefs.h >>conftest.$ac_ext
9118cat >>conftest.$ac_ext <<_ACEOF
9119/* end confdefs.h.  */
9120/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9121   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9122#define dlopen innocuous_dlopen
9123
9124/* System header to define __stub macros and hopefully few prototypes,
9125    which can conflict with char dlopen (); below.
9126    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9127    <limits.h> exists even on freestanding compilers.  */
9128
9129#ifdef __STDC__
9130# include <limits.h>
9131#else
9132# include <assert.h>
9133#endif
9134
9135#undef dlopen
9136
9137/* Override any gcc2 internal prototype to avoid an error.  */
9138#ifdef __cplusplus
9139extern "C"
9140{
9141#endif
9142/* We use char because int might match the return type of a gcc2
9143   builtin and then its argument prototype would still apply.  */
9144char dlopen ();
9145/* The GNU C library defines this for functions which it implements
9146    to always fail with ENOSYS.  Some functions are actually named
9147    something starting with __ and the normal name is an alias.  */
9148#if defined (__stub_dlopen) || defined (__stub___dlopen)
9149choke me
9150#else
9151char (*f) () = dlopen;
9152#endif
9153#ifdef __cplusplus
9154}
9155#endif
9156
9157int
9158main ()
9159{
9160return f != dlopen;
9161  ;
9162  return 0;
9163}
9164_ACEOF
9165rm -f conftest.$ac_objext conftest$ac_exeext
9166if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9167  (eval $ac_link) 2>conftest.er1
9168  ac_status=$?
9169  grep -v '^ *+' conftest.er1 >conftest.err
9170  rm -f conftest.er1
9171  cat conftest.err >&5
9172  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9173  (exit $ac_status); } &&
9174	 { ac_try='test -z "$ac_c_werror_flag"
9175			 || test ! -s conftest.err'
9176  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9177  (eval $ac_try) 2>&5
9178  ac_status=$?
9179  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9180  (exit $ac_status); }; } &&
9181	 { ac_try='test -s conftest$ac_exeext'
9182  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9183  (eval $ac_try) 2>&5
9184  ac_status=$?
9185  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9186  (exit $ac_status); }; }; then
9187  ac_cv_func_dlopen=yes
9188else
9189  echo "$as_me: failed program was:" >&5
9190sed 's/^/| /' conftest.$ac_ext >&5
9191
9192ac_cv_func_dlopen=no
9193fi
9194rm -f conftest.err conftest.$ac_objext \
9195      conftest$ac_exeext conftest.$ac_ext
9196fi
9197echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9198echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9199if test $ac_cv_func_dlopen = yes; then
9200  lt_cv_dlopen="dlopen"
9201else
9202  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9203echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9204if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9205  echo $ECHO_N "(cached) $ECHO_C" >&6
9206else
9207  ac_check_lib_save_LIBS=$LIBS
9208LIBS="-ldl  $LIBS"
9209cat >conftest.$ac_ext <<_ACEOF
9210/* confdefs.h.  */
9211_ACEOF
9212cat confdefs.h >>conftest.$ac_ext
9213cat >>conftest.$ac_ext <<_ACEOF
9214/* end confdefs.h.  */
9215
9216/* Override any gcc2 internal prototype to avoid an error.  */
9217#ifdef __cplusplus
9218extern "C"
9219#endif
9220/* We use char because int might match the return type of a gcc2
9221   builtin and then its argument prototype would still apply.  */
9222char dlopen ();
9223int
9224main ()
9225{
9226dlopen ();
9227  ;
9228  return 0;
9229}
9230_ACEOF
9231rm -f conftest.$ac_objext conftest$ac_exeext
9232if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9233  (eval $ac_link) 2>conftest.er1
9234  ac_status=$?
9235  grep -v '^ *+' conftest.er1 >conftest.err
9236  rm -f conftest.er1
9237  cat conftest.err >&5
9238  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9239  (exit $ac_status); } &&
9240	 { ac_try='test -z "$ac_c_werror_flag"
9241			 || test ! -s conftest.err'
9242  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9243  (eval $ac_try) 2>&5
9244  ac_status=$?
9245  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9246  (exit $ac_status); }; } &&
9247	 { ac_try='test -s conftest$ac_exeext'
9248  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9249  (eval $ac_try) 2>&5
9250  ac_status=$?
9251  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9252  (exit $ac_status); }; }; then
9253  ac_cv_lib_dl_dlopen=yes
9254else
9255  echo "$as_me: failed program was:" >&5
9256sed 's/^/| /' conftest.$ac_ext >&5
9257
9258ac_cv_lib_dl_dlopen=no
9259fi
9260rm -f conftest.err conftest.$ac_objext \
9261      conftest$ac_exeext conftest.$ac_ext
9262LIBS=$ac_check_lib_save_LIBS
9263fi
9264echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9265echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9266if test $ac_cv_lib_dl_dlopen = yes; then
9267  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9268else
9269  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9270echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9271if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9272  echo $ECHO_N "(cached) $ECHO_C" >&6
9273else
9274  ac_check_lib_save_LIBS=$LIBS
9275LIBS="-lsvld  $LIBS"
9276cat >conftest.$ac_ext <<_ACEOF
9277/* confdefs.h.  */
9278_ACEOF
9279cat confdefs.h >>conftest.$ac_ext
9280cat >>conftest.$ac_ext <<_ACEOF
9281/* end confdefs.h.  */
9282
9283/* Override any gcc2 internal prototype to avoid an error.  */
9284#ifdef __cplusplus
9285extern "C"
9286#endif
9287/* We use char because int might match the return type of a gcc2
9288   builtin and then its argument prototype would still apply.  */
9289char dlopen ();
9290int
9291main ()
9292{
9293dlopen ();
9294  ;
9295  return 0;
9296}
9297_ACEOF
9298rm -f conftest.$ac_objext conftest$ac_exeext
9299if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9300  (eval $ac_link) 2>conftest.er1
9301  ac_status=$?
9302  grep -v '^ *+' conftest.er1 >conftest.err
9303  rm -f conftest.er1
9304  cat conftest.err >&5
9305  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9306  (exit $ac_status); } &&
9307	 { ac_try='test -z "$ac_c_werror_flag"
9308			 || test ! -s conftest.err'
9309  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9310  (eval $ac_try) 2>&5
9311  ac_status=$?
9312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9313  (exit $ac_status); }; } &&
9314	 { ac_try='test -s conftest$ac_exeext'
9315  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9316  (eval $ac_try) 2>&5
9317  ac_status=$?
9318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9319  (exit $ac_status); }; }; then
9320  ac_cv_lib_svld_dlopen=yes
9321else
9322  echo "$as_me: failed program was:" >&5
9323sed 's/^/| /' conftest.$ac_ext >&5
9324
9325ac_cv_lib_svld_dlopen=no
9326fi
9327rm -f conftest.err conftest.$ac_objext \
9328      conftest$ac_exeext conftest.$ac_ext
9329LIBS=$ac_check_lib_save_LIBS
9330fi
9331echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9332echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9333if test $ac_cv_lib_svld_dlopen = yes; then
9334  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9335else
9336  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9337echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9338if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9339  echo $ECHO_N "(cached) $ECHO_C" >&6
9340else
9341  ac_check_lib_save_LIBS=$LIBS
9342LIBS="-ldld  $LIBS"
9343cat >conftest.$ac_ext <<_ACEOF
9344/* confdefs.h.  */
9345_ACEOF
9346cat confdefs.h >>conftest.$ac_ext
9347cat >>conftest.$ac_ext <<_ACEOF
9348/* end confdefs.h.  */
9349
9350/* Override any gcc2 internal prototype to avoid an error.  */
9351#ifdef __cplusplus
9352extern "C"
9353#endif
9354/* We use char because int might match the return type of a gcc2
9355   builtin and then its argument prototype would still apply.  */
9356char dld_link ();
9357int
9358main ()
9359{
9360dld_link ();
9361  ;
9362  return 0;
9363}
9364_ACEOF
9365rm -f conftest.$ac_objext conftest$ac_exeext
9366if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9367  (eval $ac_link) 2>conftest.er1
9368  ac_status=$?
9369  grep -v '^ *+' conftest.er1 >conftest.err
9370  rm -f conftest.er1
9371  cat conftest.err >&5
9372  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9373  (exit $ac_status); } &&
9374	 { ac_try='test -z "$ac_c_werror_flag"
9375			 || test ! -s conftest.err'
9376  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9377  (eval $ac_try) 2>&5
9378  ac_status=$?
9379  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9380  (exit $ac_status); }; } &&
9381	 { ac_try='test -s conftest$ac_exeext'
9382  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9383  (eval $ac_try) 2>&5
9384  ac_status=$?
9385  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9386  (exit $ac_status); }; }; then
9387  ac_cv_lib_dld_dld_link=yes
9388else
9389  echo "$as_me: failed program was:" >&5
9390sed 's/^/| /' conftest.$ac_ext >&5
9391
9392ac_cv_lib_dld_dld_link=no
9393fi
9394rm -f conftest.err conftest.$ac_objext \
9395      conftest$ac_exeext conftest.$ac_ext
9396LIBS=$ac_check_lib_save_LIBS
9397fi
9398echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9399echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9400if test $ac_cv_lib_dld_dld_link = yes; then
9401  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9402fi
9403
9404
9405fi
9406
9407
9408fi
9409
9410
9411fi
9412
9413
9414fi
9415
9416
9417fi
9418
9419    ;;
9420  esac
9421
9422  if test "x$lt_cv_dlopen" != xno; then
9423    enable_dlopen=yes
9424  else
9425    enable_dlopen=no
9426  fi
9427
9428  case $lt_cv_dlopen in
9429  dlopen)
9430    save_CPPFLAGS="$CPPFLAGS"
9431    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9432
9433    save_LDFLAGS="$LDFLAGS"
9434    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9435
9436    save_LIBS="$LIBS"
9437    LIBS="$lt_cv_dlopen_libs $LIBS"
9438
9439    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9440echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9441if test "${lt_cv_dlopen_self+set}" = set; then
9442  echo $ECHO_N "(cached) $ECHO_C" >&6
9443else
9444  	  if test "$cross_compiling" = yes; then :
9445  lt_cv_dlopen_self=cross
9446else
9447  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9448  lt_status=$lt_dlunknown
9449  cat > conftest.$ac_ext <<EOF
9450#line 9450 "configure"
9451#include "confdefs.h"
9452
9453#if HAVE_DLFCN_H
9454#include <dlfcn.h>
9455#endif
9456
9457#include <stdio.h>
9458
9459#ifdef RTLD_GLOBAL
9460#  define LT_DLGLOBAL		RTLD_GLOBAL
9461#else
9462#  ifdef DL_GLOBAL
9463#    define LT_DLGLOBAL		DL_GLOBAL
9464#  else
9465#    define LT_DLGLOBAL		0
9466#  endif
9467#endif
9468
9469/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9470   find out it does not work in some platform. */
9471#ifndef LT_DLLAZY_OR_NOW
9472#  ifdef RTLD_LAZY
9473#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9474#  else
9475#    ifdef DL_LAZY
9476#      define LT_DLLAZY_OR_NOW		DL_LAZY
9477#    else
9478#      ifdef RTLD_NOW
9479#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9480#      else
9481#        ifdef DL_NOW
9482#          define LT_DLLAZY_OR_NOW	DL_NOW
9483#        else
9484#          define LT_DLLAZY_OR_NOW	0
9485#        endif
9486#      endif
9487#    endif
9488#  endif
9489#endif
9490
9491#ifdef __cplusplus
9492extern "C" void exit (int);
9493#endif
9494
9495void fnord() { int i=42;}
9496int main ()
9497{
9498  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9499  int status = $lt_dlunknown;
9500
9501  if (self)
9502    {
9503      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9504      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9505      /* dlclose (self); */
9506    }
9507  else
9508    puts (dlerror ());
9509
9510    exit (status);
9511}
9512EOF
9513  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9514  (eval $ac_link) 2>&5
9515  ac_status=$?
9516  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9517  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9518    (./conftest; exit; ) >&5 2>/dev/null
9519    lt_status=$?
9520    case x$lt_status in
9521      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9522      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9523      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9524    esac
9525  else :
9526    # compilation failed
9527    lt_cv_dlopen_self=no
9528  fi
9529fi
9530rm -fr conftest*
9531
9532
9533fi
9534echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9535echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9536
9537    if test "x$lt_cv_dlopen_self" = xyes; then
9538      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9539      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9540echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9541if test "${lt_cv_dlopen_self_static+set}" = set; then
9542  echo $ECHO_N "(cached) $ECHO_C" >&6
9543else
9544  	  if test "$cross_compiling" = yes; then :
9545  lt_cv_dlopen_self_static=cross
9546else
9547  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9548  lt_status=$lt_dlunknown
9549  cat > conftest.$ac_ext <<EOF
9550#line 9550 "configure"
9551#include "confdefs.h"
9552
9553#if HAVE_DLFCN_H
9554#include <dlfcn.h>
9555#endif
9556
9557#include <stdio.h>
9558
9559#ifdef RTLD_GLOBAL
9560#  define LT_DLGLOBAL		RTLD_GLOBAL
9561#else
9562#  ifdef DL_GLOBAL
9563#    define LT_DLGLOBAL		DL_GLOBAL
9564#  else
9565#    define LT_DLGLOBAL		0
9566#  endif
9567#endif
9568
9569/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9570   find out it does not work in some platform. */
9571#ifndef LT_DLLAZY_OR_NOW
9572#  ifdef RTLD_LAZY
9573#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9574#  else
9575#    ifdef DL_LAZY
9576#      define LT_DLLAZY_OR_NOW		DL_LAZY
9577#    else
9578#      ifdef RTLD_NOW
9579#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9580#      else
9581#        ifdef DL_NOW
9582#          define LT_DLLAZY_OR_NOW	DL_NOW
9583#        else
9584#          define LT_DLLAZY_OR_NOW	0
9585#        endif
9586#      endif
9587#    endif
9588#  endif
9589#endif
9590
9591#ifdef __cplusplus
9592extern "C" void exit (int);
9593#endif
9594
9595void fnord() { int i=42;}
9596int main ()
9597{
9598  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9599  int status = $lt_dlunknown;
9600
9601  if (self)
9602    {
9603      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9604      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9605      /* dlclose (self); */
9606    }
9607  else
9608    puts (dlerror ());
9609
9610    exit (status);
9611}
9612EOF
9613  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9614  (eval $ac_link) 2>&5
9615  ac_status=$?
9616  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9617  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9618    (./conftest; exit; ) >&5 2>/dev/null
9619    lt_status=$?
9620    case x$lt_status in
9621      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9622      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9623      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9624    esac
9625  else :
9626    # compilation failed
9627    lt_cv_dlopen_self_static=no
9628  fi
9629fi
9630rm -fr conftest*
9631
9632
9633fi
9634echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9635echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9636    fi
9637
9638    CPPFLAGS="$save_CPPFLAGS"
9639    LDFLAGS="$save_LDFLAGS"
9640    LIBS="$save_LIBS"
9641    ;;
9642  esac
9643
9644  case $lt_cv_dlopen_self in
9645  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9646  *) enable_dlopen_self=unknown ;;
9647  esac
9648
9649  case $lt_cv_dlopen_self_static in
9650  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9651  *) enable_dlopen_self_static=unknown ;;
9652  esac
9653fi
9654
9655
9656# Report which library types will actually be built
9657echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9658echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9659echo "$as_me:$LINENO: result: $can_build_shared" >&5
9660echo "${ECHO_T}$can_build_shared" >&6
9661
9662echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9663echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9664test "$can_build_shared" = "no" && enable_shared=no
9665
9666# On AIX, shared libraries and static libraries use the same namespace, and
9667# are all built from PIC.
9668case $host_os in
9669aix3*)
9670  test "$enable_shared" = yes && enable_static=no
9671  if test -n "$RANLIB"; then
9672    archive_cmds="$archive_cmds~\$RANLIB \$lib"
9673    postinstall_cmds='$RANLIB $lib'
9674  fi
9675  ;;
9676
9677aix4* | aix5*)
9678  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9679    test "$enable_shared" = yes && enable_static=no
9680  fi
9681    ;;
9682esac
9683echo "$as_me:$LINENO: result: $enable_shared" >&5
9684echo "${ECHO_T}$enable_shared" >&6
9685
9686echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9687echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9688# Make sure either enable_shared or enable_static is yes.
9689test "$enable_shared" = yes || enable_static=yes
9690echo "$as_me:$LINENO: result: $enable_static" >&5
9691echo "${ECHO_T}$enable_static" >&6
9692
9693# The else clause should only fire when bootstrapping the
9694# libtool distribution, otherwise you forgot to ship ltmain.sh
9695# with your package, and you will get complaints that there are
9696# no rules to generate ltmain.sh.
9697if test -f "$ltmain"; then
9698  # See if we are running on zsh, and set the options which allow our commands through
9699  # without removal of \ escapes.
9700  if test -n "${ZSH_VERSION+set}" ; then
9701    setopt NO_GLOB_SUBST
9702  fi
9703  # Now quote all the things that may contain metacharacters while being
9704  # careful not to overquote the AC_SUBSTed values.  We take copies of the
9705  # variables and quote the copies for generation of the libtool script.
9706  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9707    SED SHELL STRIP \
9708    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9709    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9710    deplibs_check_method reload_flag reload_cmds need_locks \
9711    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9712    lt_cv_sys_global_symbol_to_c_name_address \
9713    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9714    old_postinstall_cmds old_postuninstall_cmds \
9715    compiler \
9716    CC \
9717    LD \
9718    lt_prog_compiler_wl \
9719    lt_prog_compiler_pic \
9720    lt_prog_compiler_static \
9721    lt_prog_compiler_no_builtin_flag \
9722    export_dynamic_flag_spec \
9723    thread_safe_flag_spec \
9724    whole_archive_flag_spec \
9725    enable_shared_with_static_runtimes \
9726    old_archive_cmds \
9727    old_archive_from_new_cmds \
9728    predep_objects \
9729    postdep_objects \
9730    predeps \
9731    postdeps \
9732    compiler_lib_search_path \
9733    archive_cmds \
9734    archive_expsym_cmds \
9735    postinstall_cmds \
9736    postuninstall_cmds \
9737    old_archive_from_expsyms_cmds \
9738    allow_undefined_flag \
9739    no_undefined_flag \
9740    export_symbols_cmds \
9741    hardcode_libdir_flag_spec \
9742    hardcode_libdir_flag_spec_ld \
9743    hardcode_libdir_separator \
9744    hardcode_automatic \
9745    module_cmds \
9746    module_expsym_cmds \
9747    lt_cv_prog_compiler_c_o \
9748    exclude_expsyms \
9749    include_expsyms; do
9750
9751    case $var in
9752    old_archive_cmds | \
9753    old_archive_from_new_cmds | \
9754    archive_cmds | \
9755    archive_expsym_cmds | \
9756    module_cmds | \
9757    module_expsym_cmds | \
9758    old_archive_from_expsyms_cmds | \
9759    export_symbols_cmds | \
9760    extract_expsyms_cmds | reload_cmds | finish_cmds | \
9761    postinstall_cmds | postuninstall_cmds | \
9762    old_postinstall_cmds | old_postuninstall_cmds | \
9763    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9764      # Double-quote double-evaled strings.
9765      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9766      ;;
9767    *)
9768      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9769      ;;
9770    esac
9771  done
9772
9773  case $lt_echo in
9774  *'\$0 --fallback-echo"')
9775    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9776    ;;
9777  esac
9778
9779cfgfile="${ofile}T"
9780  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9781  $rm -f "$cfgfile"
9782  { echo "$as_me:$LINENO: creating $ofile" >&5
9783echo "$as_me: creating $ofile" >&6;}
9784
9785  cat <<__EOF__ >> "$cfgfile"
9786#! $SHELL
9787
9788# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9789# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9790# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9791#
9792# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9793# Free Software Foundation, Inc.
9794#
9795# This file is part of GNU Libtool:
9796# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9797#
9798# This program is free software; you can redistribute it and/or modify
9799# it under the terms of the GNU General Public License as published by
9800# the Free Software Foundation; either version 2 of the License, or
9801# (at your option) any later version.
9802#
9803# This program is distributed in the hope that it will be useful, but
9804# WITHOUT ANY WARRANTY; without even the implied warranty of
9805# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9806# General Public License for more details.
9807#
9808# You should have received a copy of the GNU General Public License
9809# along with this program; if not, write to the Free Software
9810# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9811#
9812# As a special exception to the GNU General Public License, if you
9813# distribute this file as part of a program that contains a
9814# configuration script generated by Autoconf, you may include it under
9815# the same distribution terms that you use for the rest of that program.
9816
9817# A sed program that does not truncate output.
9818SED=$lt_SED
9819
9820# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9821Xsed="$SED -e 1s/^X//"
9822
9823# The HP-UX ksh and POSIX shell print the target directory to stdout
9824# if CDPATH is set.
9825(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9826
9827# The names of the tagged configurations supported by this script.
9828available_tags=
9829
9830# ### BEGIN LIBTOOL CONFIG
9831
9832# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9833
9834# Shell to use when invoking shell scripts.
9835SHELL=$lt_SHELL
9836
9837# Whether or not to build shared libraries.
9838build_libtool_libs=$enable_shared
9839
9840# Whether or not to build static libraries.
9841build_old_libs=$enable_static
9842
9843# Whether or not to add -lc for building shared libraries.
9844build_libtool_need_lc=$archive_cmds_need_lc
9845
9846# Whether or not to disallow shared libs when runtime libs are static
9847allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9848
9849# Whether or not to optimize for fast installation.
9850fast_install=$enable_fast_install
9851
9852# The host system.
9853host_alias=$host_alias
9854host=$host
9855host_os=$host_os
9856
9857# The build system.
9858build_alias=$build_alias
9859build=$build
9860build_os=$build_os
9861
9862# An echo program that does not interpret backslashes.
9863echo=$lt_echo
9864
9865# The archiver.
9866AR=$lt_AR
9867AR_FLAGS=$lt_AR_FLAGS
9868
9869# A C compiler.
9870LTCC=$lt_LTCC
9871
9872# LTCC compiler flags.
9873LTCFLAGS=$lt_LTCFLAGS
9874
9875# A language-specific compiler.
9876CC=$lt_compiler
9877
9878# Is the compiler the GNU C compiler?
9879with_gcc=$GCC
9880
9881# An ERE matcher.
9882EGREP=$lt_EGREP
9883
9884# The linker used to build libraries.
9885LD=$lt_LD
9886
9887# Whether we need hard or soft links.
9888LN_S=$lt_LN_S
9889
9890# A BSD-compatible nm program.
9891NM=$lt_NM
9892
9893# A symbol stripping program
9894STRIP=$lt_STRIP
9895
9896# Used to examine libraries when file_magic_cmd begins "file"
9897MAGIC_CMD=$MAGIC_CMD
9898
9899# Used on cygwin: DLL creation program.
9900DLLTOOL="$DLLTOOL"
9901
9902# Used on cygwin: object dumper.
9903OBJDUMP="$OBJDUMP"
9904
9905# Used on cygwin: assembler.
9906AS="$AS"
9907
9908# The name of the directory that contains temporary libtool files.
9909objdir=$objdir
9910
9911# How to create reloadable object files.
9912reload_flag=$lt_reload_flag
9913reload_cmds=$lt_reload_cmds
9914
9915# How to pass a linker flag through the compiler.
9916wl=$lt_lt_prog_compiler_wl
9917
9918# Object file suffix (normally "o").
9919objext="$ac_objext"
9920
9921# Old archive suffix (normally "a").
9922libext="$libext"
9923
9924# Shared library suffix (normally ".so").
9925shrext_cmds='$shrext_cmds'
9926
9927# Executable file suffix (normally "").
9928exeext="$exeext"
9929
9930# Additional compiler flags for building library objects.
9931pic_flag=$lt_lt_prog_compiler_pic
9932pic_mode=$pic_mode
9933
9934# What is the maximum length of a command?
9935max_cmd_len=$lt_cv_sys_max_cmd_len
9936
9937# Does compiler simultaneously support -c and -o options?
9938compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9939
9940# Must we lock files when doing compilation?
9941need_locks=$lt_need_locks
9942
9943# Do we need the lib prefix for modules?
9944need_lib_prefix=$need_lib_prefix
9945
9946# Do we need a version for libraries?
9947need_version=$need_version
9948
9949# Whether dlopen is supported.
9950dlopen_support=$enable_dlopen
9951
9952# Whether dlopen of programs is supported.
9953dlopen_self=$enable_dlopen_self
9954
9955# Whether dlopen of statically linked programs is supported.
9956dlopen_self_static=$enable_dlopen_self_static
9957
9958# Compiler flag to prevent dynamic linking.
9959link_static_flag=$lt_lt_prog_compiler_static
9960
9961# Compiler flag to turn off builtin functions.
9962no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9963
9964# Compiler flag to allow reflexive dlopens.
9965export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9966
9967# Compiler flag to generate shared objects directly from archives.
9968whole_archive_flag_spec=$lt_whole_archive_flag_spec
9969
9970# Compiler flag to generate thread-safe objects.
9971thread_safe_flag_spec=$lt_thread_safe_flag_spec
9972
9973# Library versioning type.
9974version_type=$version_type
9975
9976# Format of library name prefix.
9977libname_spec=$lt_libname_spec
9978
9979# List of archive names.  First name is the real one, the rest are links.
9980# The last name is the one that the linker finds with -lNAME.
9981library_names_spec=$lt_library_names_spec
9982
9983# The coded name of the library, if different from the real name.
9984soname_spec=$lt_soname_spec
9985
9986# Commands used to build and install an old-style archive.
9987RANLIB=$lt_RANLIB
9988old_archive_cmds=$lt_old_archive_cmds
9989old_postinstall_cmds=$lt_old_postinstall_cmds
9990old_postuninstall_cmds=$lt_old_postuninstall_cmds
9991
9992# Create an old-style archive from a shared archive.
9993old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9994
9995# Create a temporary old-style archive to link instead of a shared archive.
9996old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9997
9998# Commands used to build and install a shared archive.
9999archive_cmds=$lt_archive_cmds
10000archive_expsym_cmds=$lt_archive_expsym_cmds
10001postinstall_cmds=$lt_postinstall_cmds
10002postuninstall_cmds=$lt_postuninstall_cmds
10003
10004# Commands used to build a loadable module (assumed same as above if empty)
10005module_cmds=$lt_module_cmds
10006module_expsym_cmds=$lt_module_expsym_cmds
10007
10008# Commands to strip libraries.
10009old_striplib=$lt_old_striplib
10010striplib=$lt_striplib
10011
10012# Dependencies to place before the objects being linked to create a
10013# shared library.
10014predep_objects=$lt_predep_objects
10015
10016# Dependencies to place after the objects being linked to create a
10017# shared library.
10018postdep_objects=$lt_postdep_objects
10019
10020# Dependencies to place before the objects being linked to create a
10021# shared library.
10022predeps=$lt_predeps
10023
10024# Dependencies to place after the objects being linked to create a
10025# shared library.
10026postdeps=$lt_postdeps
10027
10028# The library search path used internally by the compiler when linking
10029# a shared library.
10030compiler_lib_search_path=$lt_compiler_lib_search_path
10031
10032# Method to check whether dependent libraries are shared objects.
10033deplibs_check_method=$lt_deplibs_check_method
10034
10035# Command to use when deplibs_check_method == file_magic.
10036file_magic_cmd=$lt_file_magic_cmd
10037
10038# Flag that allows shared libraries with undefined symbols to be built.
10039allow_undefined_flag=$lt_allow_undefined_flag
10040
10041# Flag that forces no undefined symbols.
10042no_undefined_flag=$lt_no_undefined_flag
10043
10044# Commands used to finish a libtool library installation in a directory.
10045finish_cmds=$lt_finish_cmds
10046
10047# Same as above, but a single script fragment to be evaled but not shown.
10048finish_eval=$lt_finish_eval
10049
10050# Take the output of nm and produce a listing of raw symbols and C names.
10051global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10052
10053# Transform the output of nm in a proper C declaration
10054global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10055
10056# Transform the output of nm in a C name address pair
10057global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10058
10059# This is the shared library runtime path variable.
10060runpath_var=$runpath_var
10061
10062# This is the shared library path variable.
10063shlibpath_var=$shlibpath_var
10064
10065# Is shlibpath searched before the hard-coded library search path?
10066shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10067
10068# How to hardcode a shared library path into an executable.
10069hardcode_action=$hardcode_action
10070
10071# Whether we should hardcode library paths into libraries.
10072hardcode_into_libs=$hardcode_into_libs
10073
10074# Flag to hardcode \$libdir into a binary during linking.
10075# This must work even if \$libdir does not exist.
10076hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10077
10078# If ld is used when linking, flag to hardcode \$libdir into
10079# a binary during linking. This must work even if \$libdir does
10080# not exist.
10081hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10082
10083# Whether we need a single -rpath flag with a separated argument.
10084hardcode_libdir_separator=$lt_hardcode_libdir_separator
10085
10086# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10087# resulting binary.
10088hardcode_direct=$hardcode_direct
10089
10090# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10091# resulting binary.
10092hardcode_minus_L=$hardcode_minus_L
10093
10094# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10095# the resulting binary.
10096hardcode_shlibpath_var=$hardcode_shlibpath_var
10097
10098# Set to yes if building a shared library automatically hardcodes DIR into the library
10099# and all subsequent libraries and executables linked against it.
10100hardcode_automatic=$hardcode_automatic
10101
10102# Variables whose values should be saved in libtool wrapper scripts and
10103# restored at relink time.
10104variables_saved_for_relink="$variables_saved_for_relink"
10105
10106# Whether libtool must link a program against all its dependency libraries.
10107link_all_deplibs=$link_all_deplibs
10108
10109# Compile-time system search path for libraries
10110sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10111
10112# Run-time system search path for libraries
10113sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10114
10115# Fix the shell variable \$srcfile for the compiler.
10116fix_srcfile_path="$fix_srcfile_path"
10117
10118# Set to yes if exported symbols are required.
10119always_export_symbols=$always_export_symbols
10120
10121# The commands to list exported symbols.
10122export_symbols_cmds=$lt_export_symbols_cmds
10123
10124# The commands to extract the exported symbol list from a shared archive.
10125extract_expsyms_cmds=$lt_extract_expsyms_cmds
10126
10127# Symbols that should not be listed in the preloaded symbols.
10128exclude_expsyms=$lt_exclude_expsyms
10129
10130# Symbols that must always be exported.
10131include_expsyms=$lt_include_expsyms
10132
10133# ### END LIBTOOL CONFIG
10134
10135__EOF__
10136
10137
10138  case $host_os in
10139  aix3*)
10140    cat <<\EOF >> "$cfgfile"
10141
10142# AIX sometimes has problems with the GCC collect2 program.  For some
10143# reason, if we set the COLLECT_NAMES environment variable, the problems
10144# vanish in a puff of smoke.
10145if test "X${COLLECT_NAMES+set}" != Xset; then
10146  COLLECT_NAMES=
10147  export COLLECT_NAMES
10148fi
10149EOF
10150    ;;
10151  esac
10152
10153  # We use sed instead of cat because bash on DJGPP gets confused if
10154  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10155  # text mode, it properly converts lines to CR/LF.  This bash problem
10156  # is reportedly fixed, but why not run on old versions too?
10157  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10158
10159  mv -f "$cfgfile" "$ofile" || \
10160    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10161  chmod +x "$ofile"
10162
10163else
10164  # If there is no Makefile yet, we rely on a make rule to execute
10165  # `config.status --recheck' to rerun these tests and create the
10166  # libtool script then.
10167  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10168  if test -f "$ltmain_in"; then
10169    test -f Makefile && make "$ltmain"
10170  fi
10171fi
10172
10173
10174ac_ext=c
10175ac_cpp='$CPP $CPPFLAGS'
10176ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10177ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10178ac_compiler_gnu=$ac_cv_c_compiler_gnu
10179
10180CC="$lt_save_CC"
10181
10182
10183# Check whether --with-tags or --without-tags was given.
10184if test "${with_tags+set}" = set; then
10185  withval="$with_tags"
10186  tagnames="$withval"
10187fi;
10188
10189if test -f "$ltmain" && test -n "$tagnames"; then
10190  if test ! -f "${ofile}"; then
10191    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10192echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10193  fi
10194
10195  if test -z "$LTCC"; then
10196    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10197    if test -z "$LTCC"; then
10198      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10199echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10200    else
10201      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10202echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10203    fi
10204  fi
10205  if test -z "$LTCFLAGS"; then
10206    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10207  fi
10208
10209  # Extract list of available tagged configurations in $ofile.
10210  # Note that this assumes the entire list is on one line.
10211  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10212
10213  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10214  for tagname in $tagnames; do
10215    IFS="$lt_save_ifs"
10216    # Check whether tagname contains only valid characters
10217    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10218    "") ;;
10219    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10220echo "$as_me: error: invalid tag name: $tagname" >&2;}
10221   { (exit 1); exit 1; }; }
10222	;;
10223    esac
10224
10225    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10226    then
10227      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10228echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10229   { (exit 1); exit 1; }; }
10230    fi
10231
10232    # Update the list of available tags.
10233    if test -n "$tagname"; then
10234      echo appending configuration tag \"$tagname\" to $ofile
10235
10236      case $tagname in
10237      CXX)
10238	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10239	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10240	    (test "X$CXX" != "Xg++"))) ; then
10241	  ac_ext=cc
10242ac_cpp='$CXXCPP $CPPFLAGS'
10243ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10244ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10245ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10246
10247
10248
10249
10250archive_cmds_need_lc_CXX=no
10251allow_undefined_flag_CXX=
10252always_export_symbols_CXX=no
10253archive_expsym_cmds_CXX=
10254export_dynamic_flag_spec_CXX=
10255hardcode_direct_CXX=no
10256hardcode_libdir_flag_spec_CXX=
10257hardcode_libdir_flag_spec_ld_CXX=
10258hardcode_libdir_separator_CXX=
10259hardcode_minus_L_CXX=no
10260hardcode_shlibpath_var_CXX=unsupported
10261hardcode_automatic_CXX=no
10262module_cmds_CXX=
10263module_expsym_cmds_CXX=
10264link_all_deplibs_CXX=unknown
10265old_archive_cmds_CXX=$old_archive_cmds
10266no_undefined_flag_CXX=
10267whole_archive_flag_spec_CXX=
10268enable_shared_with_static_runtimes_CXX=no
10269
10270# Dependencies to place before and after the object being linked:
10271predep_objects_CXX=
10272postdep_objects_CXX=
10273predeps_CXX=
10274postdeps_CXX=
10275compiler_lib_search_path_CXX=
10276
10277# Source file extension for C++ test sources.
10278ac_ext=cpp
10279
10280# Object file extension for compiled C++ test sources.
10281objext=o
10282objext_CXX=$objext
10283
10284# Code to be used in simple compile tests
10285lt_simple_compile_test_code="int some_variable = 0;\n"
10286
10287# Code to be used in simple link tests
10288lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10289
10290# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10291
10292# If no C compiler was specified, use CC.
10293LTCC=${LTCC-"$CC"}
10294
10295# If no C compiler flags were specified, use CFLAGS.
10296LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10297
10298# Allow CC to be a program name with arguments.
10299compiler=$CC
10300
10301
10302# save warnings/boilerplate of simple test code
10303ac_outfile=conftest.$ac_objext
10304printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10305eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10306_lt_compiler_boilerplate=`cat conftest.err`
10307$rm conftest*
10308
10309ac_outfile=conftest.$ac_objext
10310printf "$lt_simple_link_test_code" >conftest.$ac_ext
10311eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10312_lt_linker_boilerplate=`cat conftest.err`
10313$rm conftest*
10314
10315
10316# Allow CC to be a program name with arguments.
10317lt_save_CC=$CC
10318lt_save_LD=$LD
10319lt_save_GCC=$GCC
10320GCC=$GXX
10321lt_save_with_gnu_ld=$with_gnu_ld
10322lt_save_path_LD=$lt_cv_path_LD
10323if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10324  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10325else
10326  $as_unset lt_cv_prog_gnu_ld
10327fi
10328if test -n "${lt_cv_path_LDCXX+set}"; then
10329  lt_cv_path_LD=$lt_cv_path_LDCXX
10330else
10331  $as_unset lt_cv_path_LD
10332fi
10333test -z "${LDCXX+set}" || LD=$LDCXX
10334CC=${CXX-"c++"}
10335compiler=$CC
10336compiler_CXX=$CC
10337for cc_temp in $compiler""; do
10338  case $cc_temp in
10339    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10340    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10341    \-*) ;;
10342    *) break;;
10343  esac
10344done
10345cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10346
10347
10348# We don't want -fno-exception wen compiling C++ code, so set the
10349# no_builtin_flag separately
10350if test "$GXX" = yes; then
10351  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10352else
10353  lt_prog_compiler_no_builtin_flag_CXX=
10354fi
10355
10356if test "$GXX" = yes; then
10357  # Set up default GNU C++ configuration
10358
10359
10360# Check whether --with-gnu-ld or --without-gnu-ld was given.
10361if test "${with_gnu_ld+set}" = set; then
10362  withval="$with_gnu_ld"
10363  test "$withval" = no || with_gnu_ld=yes
10364else
10365  with_gnu_ld=no
10366fi;
10367ac_prog=ld
10368if test "$GCC" = yes; then
10369  # Check if gcc -print-prog-name=ld gives a path.
10370  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10371echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10372  case $host in
10373  *-*-mingw*)
10374    # gcc leaves a trailing carriage return which upsets mingw
10375    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10376  *)
10377    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10378  esac
10379  case $ac_prog in
10380    # Accept absolute paths.
10381    [\\/]* | ?:[\\/]*)
10382      re_direlt='/[^/][^/]*/\.\./'
10383      # Canonicalize the pathname of ld
10384      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10385      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10386	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10387      done
10388      test -z "$LD" && LD="$ac_prog"
10389      ;;
10390  "")
10391    # If it fails, then pretend we aren't using GCC.
10392    ac_prog=ld
10393    ;;
10394  *)
10395    # If it is relative, then search for the first ld in PATH.
10396    with_gnu_ld=unknown
10397    ;;
10398  esac
10399elif test "$with_gnu_ld" = yes; then
10400  echo "$as_me:$LINENO: checking for GNU ld" >&5
10401echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10402else
10403  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10404echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10405fi
10406if test "${lt_cv_path_LD+set}" = set; then
10407  echo $ECHO_N "(cached) $ECHO_C" >&6
10408else
10409  if test -z "$LD"; then
10410  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10411  for ac_dir in $PATH; do
10412    IFS="$lt_save_ifs"
10413    test -z "$ac_dir" && ac_dir=.
10414    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10415      lt_cv_path_LD="$ac_dir/$ac_prog"
10416      # Check to see if the program is GNU ld.  I'd rather use --version,
10417      # but apparently some variants of GNU ld only accept -v.
10418      # Break only if it was the GNU/non-GNU ld that we prefer.
10419      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10420      *GNU* | *'with BFD'*)
10421	test "$with_gnu_ld" != no && break
10422	;;
10423      *)
10424	test "$with_gnu_ld" != yes && break
10425	;;
10426      esac
10427    fi
10428  done
10429  IFS="$lt_save_ifs"
10430else
10431  lt_cv_path_LD="$LD" # Let the user override the test with a path.
10432fi
10433fi
10434
10435LD="$lt_cv_path_LD"
10436if test -n "$LD"; then
10437  echo "$as_me:$LINENO: result: $LD" >&5
10438echo "${ECHO_T}$LD" >&6
10439else
10440  echo "$as_me:$LINENO: result: no" >&5
10441echo "${ECHO_T}no" >&6
10442fi
10443test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10444echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10445   { (exit 1); exit 1; }; }
10446echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10447echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10448if test "${lt_cv_prog_gnu_ld+set}" = set; then
10449  echo $ECHO_N "(cached) $ECHO_C" >&6
10450else
10451  # I'd rather use --version here, but apparently some GNU lds only accept -v.
10452case `$LD -v 2>&1 </dev/null` in
10453*GNU* | *'with BFD'*)
10454  lt_cv_prog_gnu_ld=yes
10455  ;;
10456*)
10457  lt_cv_prog_gnu_ld=no
10458  ;;
10459esac
10460fi
10461echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10462echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10463with_gnu_ld=$lt_cv_prog_gnu_ld
10464
10465
10466
10467  # Check if GNU C++ uses GNU ld as the underlying linker, since the
10468  # archiving commands below assume that GNU ld is being used.
10469  if test "$with_gnu_ld" = yes; then
10470    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10471    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'
10472
10473    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10474    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10475
10476    # If archive_cmds runs LD, not CC, wlarc should be empty
10477    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10478    #     investigate it a little bit more. (MM)
10479    wlarc='${wl}'
10480
10481    # ancient GNU ld didn't support --whole-archive et. al.
10482    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10483	grep 'no-whole-archive' > /dev/null; then
10484      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10485    else
10486      whole_archive_flag_spec_CXX=
10487    fi
10488  else
10489    with_gnu_ld=no
10490    wlarc=
10491
10492    # A generic and very simple default shared library creation
10493    # command for GNU C++ for the case where it uses the native
10494    # linker, instead of GNU ld.  If possible, this setting should
10495    # overridden to take advantage of the native linker features on
10496    # the platform it is being used on.
10497    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10498  fi
10499
10500  # Commands to make compiler produce verbose output that lists
10501  # what "hidden" libraries, object files and flags are used when
10502  # linking a shared library.
10503  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10504
10505else
10506  GXX=no
10507  with_gnu_ld=no
10508  wlarc=
10509fi
10510
10511# PORTME: fill in a description of your system's C++ link characteristics
10512echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10513echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10514ld_shlibs_CXX=yes
10515case $host_os in
10516  aix3*)
10517    # FIXME: insert proper C++ library support
10518    ld_shlibs_CXX=no
10519    ;;
10520  aix4* | aix5*)
10521    if test "$host_cpu" = ia64; then
10522      # On IA64, the linker does run time linking by default, so we don't
10523      # have to do anything special.
10524      aix_use_runtimelinking=no
10525      exp_sym_flag='-Bexport'
10526      no_entry_flag=""
10527    else
10528      aix_use_runtimelinking=no
10529
10530      # Test if we are trying to use run time linking or normal
10531      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10532      # need to do runtime linking.
10533      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10534	for ld_flag in $LDFLAGS; do
10535	  case $ld_flag in
10536	  *-brtl*)
10537	    aix_use_runtimelinking=yes
10538	    break
10539	    ;;
10540	  esac
10541	done
10542	;;
10543      esac
10544
10545      exp_sym_flag='-bexport'
10546      no_entry_flag='-bnoentry'
10547    fi
10548
10549    # When large executables or shared objects are built, AIX ld can
10550    # have problems creating the table of contents.  If linking a library
10551    # or program results in "error TOC overflow" add -mminimal-toc to
10552    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10553    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10554
10555    archive_cmds_CXX=''
10556    hardcode_direct_CXX=yes
10557    hardcode_libdir_separator_CXX=':'
10558    link_all_deplibs_CXX=yes
10559
10560    if test "$GXX" = yes; then
10561      case $host_os in aix4.[012]|aix4.[012].*)
10562      # We only want to do this on AIX 4.2 and lower, the check
10563      # below for broken collect2 doesn't work under 4.3+
10564	collect2name=`${CC} -print-prog-name=collect2`
10565	if test -f "$collect2name" && \
10566	   strings "$collect2name" | grep resolve_lib_name >/dev/null
10567	then
10568	  # We have reworked collect2
10569	  hardcode_direct_CXX=yes
10570	else
10571	  # We have old collect2
10572	  hardcode_direct_CXX=unsupported
10573	  # It fails to find uninstalled libraries when the uninstalled
10574	  # path is not listed in the libpath.  Setting hardcode_minus_L
10575	  # to unsupported forces relinking
10576	  hardcode_minus_L_CXX=yes
10577	  hardcode_libdir_flag_spec_CXX='-L$libdir'
10578	  hardcode_libdir_separator_CXX=
10579	fi
10580	;;
10581      esac
10582      shared_flag='-shared'
10583      if test "$aix_use_runtimelinking" = yes; then
10584	shared_flag="$shared_flag "'${wl}-G'
10585      fi
10586    else
10587      # not using gcc
10588      if test "$host_cpu" = ia64; then
10589	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10590	# chokes on -Wl,-G. The following line is correct:
10591	shared_flag='-G'
10592      else
10593	if test "$aix_use_runtimelinking" = yes; then
10594	  shared_flag='${wl}-G'
10595	else
10596	  shared_flag='${wl}-bM:SRE'
10597	fi
10598      fi
10599    fi
10600
10601    # It seems that -bexpall does not export symbols beginning with
10602    # underscore (_), so it is better to generate a list of symbols to export.
10603    always_export_symbols_CXX=yes
10604    if test "$aix_use_runtimelinking" = yes; then
10605      # Warning - without using the other runtime loading flags (-brtl),
10606      # -berok will link without error, but may produce a broken library.
10607      allow_undefined_flag_CXX='-berok'
10608      # Determine the default libpath from the value encoded in an empty executable.
10609      cat >conftest.$ac_ext <<_ACEOF
10610/* confdefs.h.  */
10611_ACEOF
10612cat confdefs.h >>conftest.$ac_ext
10613cat >>conftest.$ac_ext <<_ACEOF
10614/* end confdefs.h.  */
10615
10616int
10617main ()
10618{
10619
10620  ;
10621  return 0;
10622}
10623_ACEOF
10624rm -f conftest.$ac_objext conftest$ac_exeext
10625if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10626  (eval $ac_link) 2>conftest.er1
10627  ac_status=$?
10628  grep -v '^ *+' conftest.er1 >conftest.err
10629  rm -f conftest.er1
10630  cat conftest.err >&5
10631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10632  (exit $ac_status); } &&
10633	 { ac_try='test -z "$ac_cxx_werror_flag"
10634			 || test ! -s conftest.err'
10635  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10636  (eval $ac_try) 2>&5
10637  ac_status=$?
10638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10639  (exit $ac_status); }; } &&
10640	 { ac_try='test -s conftest$ac_exeext'
10641  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10642  (eval $ac_try) 2>&5
10643  ac_status=$?
10644  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10645  (exit $ac_status); }; }; then
10646
10647aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10648}'`
10649# Check for a 64-bit object if we didn't find anything.
10650if 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; }
10651}'`; fi
10652else
10653  echo "$as_me: failed program was:" >&5
10654sed 's/^/| /' conftest.$ac_ext >&5
10655
10656fi
10657rm -f conftest.err conftest.$ac_objext \
10658      conftest$ac_exeext conftest.$ac_ext
10659if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10660
10661      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10662
10663      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"
10664     else
10665      if test "$host_cpu" = ia64; then
10666	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10667	allow_undefined_flag_CXX="-z nodefs"
10668	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"
10669      else
10670	# Determine the default libpath from the value encoded in an empty executable.
10671	cat >conftest.$ac_ext <<_ACEOF
10672/* confdefs.h.  */
10673_ACEOF
10674cat confdefs.h >>conftest.$ac_ext
10675cat >>conftest.$ac_ext <<_ACEOF
10676/* end confdefs.h.  */
10677
10678int
10679main ()
10680{
10681
10682  ;
10683  return 0;
10684}
10685_ACEOF
10686rm -f conftest.$ac_objext conftest$ac_exeext
10687if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10688  (eval $ac_link) 2>conftest.er1
10689  ac_status=$?
10690  grep -v '^ *+' conftest.er1 >conftest.err
10691  rm -f conftest.er1
10692  cat conftest.err >&5
10693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10694  (exit $ac_status); } &&
10695	 { ac_try='test -z "$ac_cxx_werror_flag"
10696			 || test ! -s conftest.err'
10697  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10698  (eval $ac_try) 2>&5
10699  ac_status=$?
10700  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10701  (exit $ac_status); }; } &&
10702	 { ac_try='test -s conftest$ac_exeext'
10703  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10704  (eval $ac_try) 2>&5
10705  ac_status=$?
10706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10707  (exit $ac_status); }; }; then
10708
10709aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10710}'`
10711# Check for a 64-bit object if we didn't find anything.
10712if 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; }
10713}'`; fi
10714else
10715  echo "$as_me: failed program was:" >&5
10716sed 's/^/| /' conftest.$ac_ext >&5
10717
10718fi
10719rm -f conftest.err conftest.$ac_objext \
10720      conftest$ac_exeext conftest.$ac_ext
10721if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10722
10723	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10724	# Warning - without using the other run time loading flags,
10725	# -berok will link without error, but may produce a broken library.
10726	no_undefined_flag_CXX=' ${wl}-bernotok'
10727	allow_undefined_flag_CXX=' ${wl}-berok'
10728	# Exported symbols can be pulled into shared objects from archives
10729	whole_archive_flag_spec_CXX='$convenience'
10730	archive_cmds_need_lc_CXX=yes
10731	# This is similar to how AIX traditionally builds its shared libraries.
10732	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'
10733      fi
10734    fi
10735    ;;
10736
10737  beos*)
10738    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10739      allow_undefined_flag_CXX=unsupported
10740      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10741      # support --undefined.  This deserves some investigation.  FIXME
10742      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10743    else
10744      ld_shlibs_CXX=no
10745    fi
10746    ;;
10747
10748  chorus*)
10749    case $cc_basename in
10750      *)
10751	# FIXME: insert proper C++ library support
10752	ld_shlibs_CXX=no
10753	;;
10754    esac
10755    ;;
10756
10757  cygwin* | mingw* | pw32*)
10758    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10759    # as there is no search path for DLLs.
10760    hardcode_libdir_flag_spec_CXX='-L$libdir'
10761    allow_undefined_flag_CXX=unsupported
10762    always_export_symbols_CXX=no
10763    enable_shared_with_static_runtimes_CXX=yes
10764
10765    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10766      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'
10767      # If the export-symbols file already is a .def file (1st line
10768      # is EXPORTS), use it as is; otherwise, prepend...
10769      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10770	cp $export_symbols $output_objdir/$soname.def;
10771      else
10772	echo EXPORTS > $output_objdir/$soname.def;
10773	cat $export_symbols >> $output_objdir/$soname.def;
10774      fi~
10775      $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'
10776    else
10777      ld_shlibs_CXX=no
10778    fi
10779  ;;
10780      darwin* | rhapsody*)
10781        case $host_os in
10782        rhapsody* | darwin1.[012])
10783         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10784         ;;
10785       *) # Darwin 1.3 on
10786         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10787           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10788         else
10789           case ${MACOSX_DEPLOYMENT_TARGET} in
10790             10.[012])
10791               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10792               ;;
10793             10.*)
10794               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10795               ;;
10796           esac
10797         fi
10798         ;;
10799        esac
10800      archive_cmds_need_lc_CXX=no
10801      hardcode_direct_CXX=no
10802      hardcode_automatic_CXX=yes
10803      hardcode_shlibpath_var_CXX=unsupported
10804      whole_archive_flag_spec_CXX=''
10805      link_all_deplibs_CXX=yes
10806
10807    if test "$GXX" = yes ; then
10808      lt_int_apple_cc_single_mod=no
10809      output_verbose_link_cmd='echo'
10810      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10811       lt_int_apple_cc_single_mod=yes
10812      fi
10813      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10814       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10815      else
10816          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'
10817        fi
10818        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10819        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10820          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10821            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}'
10822          else
10823            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}'
10824          fi
10825            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}'
10826      else
10827      case $cc_basename in
10828        xlc*)
10829         output_verbose_link_cmd='echo'
10830          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'
10831          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10832          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10833          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}'
10834          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}'
10835          ;;
10836       *)
10837         ld_shlibs_CXX=no
10838          ;;
10839      esac
10840      fi
10841        ;;
10842
10843  dgux*)
10844    case $cc_basename in
10845      ec++*)
10846	# FIXME: insert proper C++ library support
10847	ld_shlibs_CXX=no
10848	;;
10849      ghcx*)
10850	# Green Hills C++ Compiler
10851	# FIXME: insert proper C++ library support
10852	ld_shlibs_CXX=no
10853	;;
10854      *)
10855	# FIXME: insert proper C++ library support
10856	ld_shlibs_CXX=no
10857	;;
10858    esac
10859    ;;
10860  freebsd[12]*)
10861    # C++ shared libraries reported to be fairly broken before switch to ELF
10862    ld_shlibs_CXX=no
10863    ;;
10864  freebsd-elf*)
10865    archive_cmds_need_lc_CXX=no
10866    ;;
10867  freebsd* | kfreebsd*-gnu | dragonfly*)
10868    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10869    # conventions
10870    ld_shlibs_CXX=yes
10871    ;;
10872  gnu*)
10873    ;;
10874  hpux9*)
10875    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10876    hardcode_libdir_separator_CXX=:
10877    export_dynamic_flag_spec_CXX='${wl}-E'
10878    hardcode_direct_CXX=yes
10879    hardcode_minus_L_CXX=yes # Not in the search PATH,
10880				# but as the default
10881				# location of the library.
10882
10883    case $cc_basename in
10884    CC*)
10885      # FIXME: insert proper C++ library support
10886      ld_shlibs_CXX=no
10887      ;;
10888    aCC*)
10889      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'
10890      # Commands to make compiler produce verbose output that lists
10891      # what "hidden" libraries, object files and flags are used when
10892      # linking a shared library.
10893      #
10894      # There doesn't appear to be a way to prevent this compiler from
10895      # explicitly linking system object files so we need to strip them
10896      # from the output so that they don't get included in the library
10897      # dependencies.
10898      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'
10899      ;;
10900    *)
10901      if test "$GXX" = yes; then
10902        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'
10903      else
10904        # FIXME: insert proper C++ library support
10905        ld_shlibs_CXX=no
10906      fi
10907      ;;
10908    esac
10909    ;;
10910  hpux10*|hpux11*)
10911    if test $with_gnu_ld = no; then
10912      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10913      hardcode_libdir_separator_CXX=:
10914
10915      case $host_cpu in
10916      hppa*64*|ia64*)
10917	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10918        ;;
10919      *)
10920	export_dynamic_flag_spec_CXX='${wl}-E'
10921        ;;
10922      esac
10923    fi
10924    case $host_cpu in
10925    hppa*64*|ia64*)
10926      hardcode_direct_CXX=no
10927      hardcode_shlibpath_var_CXX=no
10928      ;;
10929    *)
10930      hardcode_direct_CXX=yes
10931      hardcode_minus_L_CXX=yes # Not in the search PATH,
10932					      # but as the default
10933					      # location of the library.
10934      ;;
10935    esac
10936
10937    case $cc_basename in
10938      CC*)
10939	# FIXME: insert proper C++ library support
10940	ld_shlibs_CXX=no
10941	;;
10942      aCC*)
10943	case $host_cpu in
10944	hppa*64*)
10945	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10946	  ;;
10947	ia64*)
10948	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10949	  ;;
10950	*)
10951	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10952	  ;;
10953	esac
10954	# Commands to make compiler produce verbose output that lists
10955	# what "hidden" libraries, object files and flags are used when
10956	# linking a shared library.
10957	#
10958	# There doesn't appear to be a way to prevent this compiler from
10959	# explicitly linking system object files so we need to strip them
10960	# from the output so that they don't get included in the library
10961	# dependencies.
10962	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'
10963	;;
10964      *)
10965	if test "$GXX" = yes; then
10966	  if test $with_gnu_ld = no; then
10967	    case $host_cpu in
10968	    hppa*64*)
10969	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10970	      ;;
10971	    ia64*)
10972	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10973	      ;;
10974	    *)
10975	      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'
10976	      ;;
10977	    esac
10978	  fi
10979	else
10980	  # FIXME: insert proper C++ library support
10981	  ld_shlibs_CXX=no
10982	fi
10983	;;
10984    esac
10985    ;;
10986  interix3*)
10987    hardcode_direct_CXX=no
10988    hardcode_shlibpath_var_CXX=no
10989    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10990    export_dynamic_flag_spec_CXX='${wl}-E'
10991    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10992    # Instead, shared libraries are loaded at an image base (0x10000000 by
10993    # default) and relocated if they conflict, which is a slow very memory
10994    # consuming and fragmenting process.  To avoid this, we pick a random,
10995    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10996    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10997    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'
10998    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'
10999    ;;
11000  irix5* | irix6*)
11001    case $cc_basename in
11002      CC*)
11003	# SGI C++
11004	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'
11005
11006	# Archives containing C++ object files must be created using
11007	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11008	# necessary to make sure instantiated templates are included
11009	# in the archive.
11010	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11011	;;
11012      *)
11013	if test "$GXX" = yes; then
11014	  if test "$with_gnu_ld" = no; then
11015	    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'
11016	  else
11017	    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'
11018	  fi
11019	fi
11020	link_all_deplibs_CXX=yes
11021	;;
11022    esac
11023    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11024    hardcode_libdir_separator_CXX=:
11025    ;;
11026  linux*)
11027    case $cc_basename in
11028      KCC*)
11029	# Kuck and Associates, Inc. (KAI) C++ Compiler
11030
11031	# KCC will only create a shared library if the output file
11032	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11033	# to its proper name (with version) after linking.
11034	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'
11035	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'
11036	# Commands to make compiler produce verbose output that lists
11037	# what "hidden" libraries, object files and flags are used when
11038	# linking a shared library.
11039	#
11040	# There doesn't appear to be a way to prevent this compiler from
11041	# explicitly linking system object files so we need to strip them
11042	# from the output so that they don't get included in the library
11043	# dependencies.
11044	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'
11045
11046	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11047	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11048
11049	# Archives containing C++ object files must be created using
11050	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11051	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11052	;;
11053      icpc*)
11054	# Intel C++
11055	with_gnu_ld=yes
11056	# version 8.0 and above of icpc choke on multiply defined symbols
11057	# if we add $predep_objects and $postdep_objects, however 7.1 and
11058	# earlier do not add the objects themselves.
11059	case `$CC -V 2>&1` in
11060	*"Version 7."*)
11061  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11062  	  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'
11063	  ;;
11064	*)  # Version 8.0 or newer
11065	  tmp_idyn=
11066	  case $host_cpu in
11067	    ia64*) tmp_idyn=' -i_dynamic';;
11068	  esac
11069  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11070	  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'
11071	  ;;
11072	esac
11073	archive_cmds_need_lc_CXX=no
11074	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11075	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11076	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11077	;;
11078      pgCC*)
11079        # Portland Group C++ compiler
11080	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11081  	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'
11082
11083	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11084	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11085	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'
11086        ;;
11087      cxx*)
11088	# Compaq C++
11089	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11090	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'
11091
11092	runpath_var=LD_RUN_PATH
11093	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11094	hardcode_libdir_separator_CXX=:
11095
11096	# Commands to make compiler produce verbose output that lists
11097	# what "hidden" libraries, object files and flags are used when
11098	# linking a shared library.
11099	#
11100	# There doesn't appear to be a way to prevent this compiler from
11101	# explicitly linking system object files so we need to strip them
11102	# from the output so that they don't get included in the library
11103	# dependencies.
11104	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'
11105	;;
11106    esac
11107    ;;
11108  lynxos*)
11109    # FIXME: insert proper C++ library support
11110    ld_shlibs_CXX=no
11111    ;;
11112  m88k*)
11113    # FIXME: insert proper C++ library support
11114    ld_shlibs_CXX=no
11115    ;;
11116  mvs*)
11117    case $cc_basename in
11118      cxx*)
11119	# FIXME: insert proper C++ library support
11120	ld_shlibs_CXX=no
11121	;;
11122      *)
11123	# FIXME: insert proper C++ library support
11124	ld_shlibs_CXX=no
11125	;;
11126    esac
11127    ;;
11128  netbsd*)
11129    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11130      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11131      wlarc=
11132      hardcode_libdir_flag_spec_CXX='-R$libdir'
11133      hardcode_direct_CXX=yes
11134      hardcode_shlibpath_var_CXX=no
11135    fi
11136    # Workaround some broken pre-1.5 toolchains
11137    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11138    ;;
11139  openbsd2*)
11140    # C++ shared libraries are fairly broken
11141    ld_shlibs_CXX=no
11142    ;;
11143  openbsd*)
11144    hardcode_direct_CXX=yes
11145    hardcode_shlibpath_var_CXX=no
11146    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11147    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11148    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11149      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11150      export_dynamic_flag_spec_CXX='${wl}-E'
11151      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11152    fi
11153    output_verbose_link_cmd='echo'
11154    ;;
11155  osf3*)
11156    case $cc_basename in
11157      KCC*)
11158	# Kuck and Associates, Inc. (KAI) C++ Compiler
11159
11160	# KCC will only create a shared library if the output file
11161	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11162	# to its proper name (with version) after linking.
11163	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'
11164
11165	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11166	hardcode_libdir_separator_CXX=:
11167
11168	# Archives containing C++ object files must be created using
11169	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11170	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11171
11172	;;
11173      RCC*)
11174	# Rational C++ 2.4.1
11175	# FIXME: insert proper C++ library support
11176	ld_shlibs_CXX=no
11177	;;
11178      cxx*)
11179	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11180	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'
11181
11182	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11183	hardcode_libdir_separator_CXX=:
11184
11185	# Commands to make compiler produce verbose output that lists
11186	# what "hidden" libraries, object files and flags are used when
11187	# linking a shared library.
11188	#
11189	# There doesn't appear to be a way to prevent this compiler from
11190	# explicitly linking system object files so we need to strip them
11191	# from the output so that they don't get included in the library
11192	# dependencies.
11193	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'
11194	;;
11195      *)
11196	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11197	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11198	  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'
11199
11200	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11201	  hardcode_libdir_separator_CXX=:
11202
11203	  # Commands to make compiler produce verbose output that lists
11204	  # what "hidden" libraries, object files and flags are used when
11205	  # linking a shared library.
11206	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11207
11208	else
11209	  # FIXME: insert proper C++ library support
11210	  ld_shlibs_CXX=no
11211	fi
11212	;;
11213    esac
11214    ;;
11215  osf4* | osf5*)
11216    case $cc_basename in
11217      KCC*)
11218	# Kuck and Associates, Inc. (KAI) C++ Compiler
11219
11220	# KCC will only create a shared library if the output file
11221	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11222	# to its proper name (with version) after linking.
11223	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'
11224
11225	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11226	hardcode_libdir_separator_CXX=:
11227
11228	# Archives containing C++ object files must be created using
11229	# the KAI C++ compiler.
11230	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11231	;;
11232      RCC*)
11233	# Rational C++ 2.4.1
11234	# FIXME: insert proper C++ library support
11235	ld_shlibs_CXX=no
11236	;;
11237      cxx*)
11238	allow_undefined_flag_CXX=' -expect_unresolved \*'
11239	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'
11240	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11241	  echo "-hidden">> $lib.exp~
11242	  $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~
11243	  $rm $lib.exp'
11244
11245	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11246	hardcode_libdir_separator_CXX=:
11247
11248	# Commands to make compiler produce verbose output that lists
11249	# what "hidden" libraries, object files and flags are used when
11250	# linking a shared library.
11251	#
11252	# There doesn't appear to be a way to prevent this compiler from
11253	# explicitly linking system object files so we need to strip them
11254	# from the output so that they don't get included in the library
11255	# dependencies.
11256	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'
11257	;;
11258      *)
11259	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11260	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11261	 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'
11262
11263	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11264	  hardcode_libdir_separator_CXX=:
11265
11266	  # Commands to make compiler produce verbose output that lists
11267	  # what "hidden" libraries, object files and flags are used when
11268	  # linking a shared library.
11269	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11270
11271	else
11272	  # FIXME: insert proper C++ library support
11273	  ld_shlibs_CXX=no
11274	fi
11275	;;
11276    esac
11277    ;;
11278  psos*)
11279    # FIXME: insert proper C++ library support
11280    ld_shlibs_CXX=no
11281    ;;
11282  sunos4*)
11283    case $cc_basename in
11284      CC*)
11285	# Sun C++ 4.x
11286	# FIXME: insert proper C++ library support
11287	ld_shlibs_CXX=no
11288	;;
11289      lcc*)
11290	# Lucid
11291	# FIXME: insert proper C++ library support
11292	ld_shlibs_CXX=no
11293	;;
11294      *)
11295	# FIXME: insert proper C++ library support
11296	ld_shlibs_CXX=no
11297	;;
11298    esac
11299    ;;
11300  solaris*)
11301    case $cc_basename in
11302      CC*)
11303	# Sun C++ 4.2, 5.x and Centerline C++
11304        archive_cmds_need_lc_CXX=yes
11305	no_undefined_flag_CXX=' -zdefs'
11306	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11307	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11308	$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'
11309
11310	hardcode_libdir_flag_spec_CXX='-R$libdir'
11311	hardcode_shlibpath_var_CXX=no
11312	case $host_os in
11313	  solaris2.[0-5] | solaris2.[0-5].*) ;;
11314	  *)
11315	    # The C++ compiler is used as linker so we must use $wl
11316	    # flag to pass the commands to the underlying system
11317	    # linker. We must also pass each convience library through
11318	    # to the system linker between allextract/defaultextract.
11319	    # The C++ compiler will combine linker options so we
11320	    # cannot just pass the convience library names through
11321	    # without $wl.
11322	    # Supported since Solaris 2.6 (maybe 2.5.1?)
11323	    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'
11324	    ;;
11325	esac
11326	link_all_deplibs_CXX=yes
11327
11328	output_verbose_link_cmd='echo'
11329
11330	# Archives containing C++ object files must be created using
11331	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
11332	# necessary to make sure instantiated templates are included
11333	# in the archive.
11334	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11335	;;
11336      gcx*)
11337	# Green Hills C++ Compiler
11338	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11339
11340	# The C++ compiler must be used to create the archive.
11341	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11342	;;
11343      *)
11344	# GNU C++ compiler with Solaris linker
11345	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11346	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11347	  if $CC --version | grep -v '^2\.7' > /dev/null; then
11348	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11349	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11350		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11351
11352	    # Commands to make compiler produce verbose output that lists
11353	    # what "hidden" libraries, object files and flags are used when
11354	    # linking a shared library.
11355	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11356	  else
11357	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
11358	    # platform.
11359	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11360	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11361		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11362
11363	    # Commands to make compiler produce verbose output that lists
11364	    # what "hidden" libraries, object files and flags are used when
11365	    # linking a shared library.
11366	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11367	  fi
11368
11369	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11370	fi
11371	;;
11372    esac
11373    ;;
11374  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11375    no_undefined_flag_CXX='${wl}-z,text'
11376    archive_cmds_need_lc_CXX=no
11377    hardcode_shlibpath_var_CXX=no
11378    runpath_var='LD_RUN_PATH'
11379
11380    case $cc_basename in
11381      CC*)
11382	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11383	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11384	;;
11385      *)
11386	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11387	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11388	;;
11389    esac
11390    ;;
11391  sysv5* | sco3.2v5* | sco5v6*)
11392    # Note: We can NOT use -z defs as we might desire, because we do not
11393    # link with -lc, and that would cause any symbols used from libc to
11394    # always be unresolved, which means just about no library would
11395    # ever link correctly.  If we're not using GNU ld we use -z text
11396    # though, which does catch some bad symbols but isn't as heavy-handed
11397    # as -z defs.
11398    # For security reasons, it is highly recommended that you always
11399    # use absolute paths for naming shared libraries, and exclude the
11400    # DT_RUNPATH tag from executables and libraries.  But doing so
11401    # requires that you compile everything twice, which is a pain.
11402    # So that behaviour is only enabled if SCOABSPATH is set to a
11403    # non-empty value in the environment.  Most likely only useful for
11404    # creating official distributions of packages.
11405    # This is a hack until libtool officially supports absolute path
11406    # names for shared libraries.
11407    no_undefined_flag_CXX='${wl}-z,text'
11408    allow_undefined_flag_CXX='${wl}-z,nodefs'
11409    archive_cmds_need_lc_CXX=no
11410    hardcode_shlibpath_var_CXX=no
11411    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11412    hardcode_libdir_separator_CXX=':'
11413    link_all_deplibs_CXX=yes
11414    export_dynamic_flag_spec_CXX='${wl}-Bexport'
11415    runpath_var='LD_RUN_PATH'
11416
11417    case $cc_basename in
11418      CC*)
11419	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11420	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11421	;;
11422      *)
11423	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11424	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11425	;;
11426    esac
11427    ;;
11428  tandem*)
11429    case $cc_basename in
11430      NCC*)
11431	# NonStop-UX NCC 3.20
11432	# FIXME: insert proper C++ library support
11433	ld_shlibs_CXX=no
11434	;;
11435      *)
11436	# FIXME: insert proper C++ library support
11437	ld_shlibs_CXX=no
11438	;;
11439    esac
11440    ;;
11441  vxworks*)
11442    # FIXME: insert proper C++ library support
11443    ld_shlibs_CXX=no
11444    ;;
11445  *)
11446    # FIXME: insert proper C++ library support
11447    ld_shlibs_CXX=no
11448    ;;
11449esac
11450echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11451echo "${ECHO_T}$ld_shlibs_CXX" >&6
11452test "$ld_shlibs_CXX" = no && can_build_shared=no
11453
11454GCC_CXX="$GXX"
11455LD_CXX="$LD"
11456
11457
11458cat > conftest.$ac_ext <<EOF
11459class Foo
11460{
11461public:
11462  Foo (void) { a = 0; }
11463private:
11464  int a;
11465};
11466EOF
11467
11468if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11469  (eval $ac_compile) 2>&5
11470  ac_status=$?
11471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11472  (exit $ac_status); }; then
11473  # Parse the compiler output and extract the necessary
11474  # objects, libraries and library flags.
11475
11476  # Sentinel used to keep track of whether or not we are before
11477  # the conftest object file.
11478  pre_test_object_deps_done=no
11479
11480  # The `*' in the case matches for architectures that use `case' in
11481  # $output_verbose_cmd can trigger glob expansion during the loop
11482  # eval without this substitution.
11483  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11484
11485  for p in `eval $output_verbose_link_cmd`; do
11486    case $p in
11487
11488    -L* | -R* | -l*)
11489       # Some compilers place space between "-{L,R}" and the path.
11490       # Remove the space.
11491       if test $p = "-L" \
11492	  || test $p = "-R"; then
11493	 prev=$p
11494	 continue
11495       else
11496	 prev=
11497       fi
11498
11499       if test "$pre_test_object_deps_done" = no; then
11500	 case $p in
11501	 -L* | -R*)
11502	   # Internal compiler library paths should come after those
11503	   # provided the user.  The postdeps already come after the
11504	   # user supplied libs so there is no need to process them.
11505	   if test -z "$compiler_lib_search_path_CXX"; then
11506	     compiler_lib_search_path_CXX="${prev}${p}"
11507	   else
11508	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11509	   fi
11510	   ;;
11511	 # The "-l" case would never come before the object being
11512	 # linked, so don't bother handling this case.
11513	 esac
11514       else
11515	 if test -z "$postdeps_CXX"; then
11516	   postdeps_CXX="${prev}${p}"
11517	 else
11518	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11519	 fi
11520       fi
11521       ;;
11522
11523    *.$objext)
11524       # This assumes that the test object file only shows up
11525       # once in the compiler output.
11526       if test "$p" = "conftest.$objext"; then
11527	 pre_test_object_deps_done=yes
11528	 continue
11529       fi
11530
11531       if test "$pre_test_object_deps_done" = no; then
11532	 if test -z "$predep_objects_CXX"; then
11533	   predep_objects_CXX="$p"
11534	 else
11535	   predep_objects_CXX="$predep_objects_CXX $p"
11536	 fi
11537       else
11538	 if test -z "$postdep_objects_CXX"; then
11539	   postdep_objects_CXX="$p"
11540	 else
11541	   postdep_objects_CXX="$postdep_objects_CXX $p"
11542	 fi
11543       fi
11544       ;;
11545
11546    *) ;; # Ignore the rest.
11547
11548    esac
11549  done
11550
11551  # Clean up.
11552  rm -f a.out a.exe
11553else
11554  echo "libtool.m4: error: problem compiling CXX test program"
11555fi
11556
11557$rm -f confest.$objext
11558
11559# PORTME: override above test on systems where it is broken
11560case $host_os in
11561interix3*)
11562  # Interix 3.5 installs completely hosed .la files for C++, so rather than
11563  # hack all around it, let's just trust "g++" to DTRT.
11564  predep_objects_CXX=
11565  postdep_objects_CXX=
11566  postdeps_CXX=
11567  ;;
11568
11569solaris*)
11570  case $cc_basename in
11571  CC*)
11572    # Adding this requires a known-good setup of shared libraries for
11573    # Sun compiler versions before 5.6, else PIC objects from an old
11574    # archive will be linked into the output, leading to subtle bugs.
11575    postdeps_CXX='-lCstd -lCrun'
11576    ;;
11577  esac
11578  ;;
11579esac
11580
11581
11582case " $postdeps_CXX " in
11583*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11584esac
11585
11586lt_prog_compiler_wl_CXX=
11587lt_prog_compiler_pic_CXX=
11588lt_prog_compiler_static_CXX=
11589
11590echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11591echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11592
11593  # C++ specific cases for pic, static, wl, etc.
11594  if test "$GXX" = yes; then
11595    lt_prog_compiler_wl_CXX='-Wl,'
11596    lt_prog_compiler_static_CXX='-static'
11597
11598    case $host_os in
11599    aix*)
11600      # All AIX code is PIC.
11601      if test "$host_cpu" = ia64; then
11602	# AIX 5 now supports IA64 processor
11603	lt_prog_compiler_static_CXX='-Bstatic'
11604      fi
11605      ;;
11606    amigaos*)
11607      # FIXME: we need at least 68020 code to build shared libraries, but
11608      # adding the `-m68020' flag to GCC prevents building anything better,
11609      # like `-m68040'.
11610      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11611      ;;
11612    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11613      # PIC is the default for these OSes.
11614      ;;
11615    mingw* | os2* | pw32*)
11616      # This hack is so that the source file can tell whether it is being
11617      # built for inclusion in a dll (and should export symbols for example).
11618      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11619      ;;
11620    darwin* | rhapsody*)
11621      # PIC is the default on this platform
11622      # Common symbols not allowed in MH_DYLIB files
11623      lt_prog_compiler_pic_CXX='-fno-common'
11624      ;;
11625    *djgpp*)
11626      # DJGPP does not support shared libraries at all
11627      lt_prog_compiler_pic_CXX=
11628      ;;
11629    interix3*)
11630      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11631      # Instead, we relocate shared libraries at runtime.
11632      ;;
11633    sysv4*MP*)
11634      if test -d /usr/nec; then
11635	lt_prog_compiler_pic_CXX=-Kconform_pic
11636      fi
11637      ;;
11638    hpux*)
11639      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11640      # not for PA HP-UX.
11641      case $host_cpu in
11642      hppa*64*|ia64*)
11643	;;
11644      *)
11645	lt_prog_compiler_pic_CXX='-fPIC'
11646	;;
11647      esac
11648      ;;
11649    *)
11650      lt_prog_compiler_pic_CXX='-fPIC'
11651      ;;
11652    esac
11653  else
11654    case $host_os in
11655      aix4* | aix5*)
11656	# All AIX code is PIC.
11657	if test "$host_cpu" = ia64; then
11658	  # AIX 5 now supports IA64 processor
11659	  lt_prog_compiler_static_CXX='-Bstatic'
11660	else
11661	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11662	fi
11663	;;
11664      chorus*)
11665	case $cc_basename in
11666	cxch68*)
11667	  # Green Hills C++ Compiler
11668	  # _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"
11669	  ;;
11670	esac
11671	;;
11672       darwin*)
11673         # PIC is the default on this platform
11674         # Common symbols not allowed in MH_DYLIB files
11675         case $cc_basename in
11676           xlc*)
11677           lt_prog_compiler_pic_CXX='-qnocommon'
11678           lt_prog_compiler_wl_CXX='-Wl,'
11679           ;;
11680         esac
11681       ;;
11682      dgux*)
11683	case $cc_basename in
11684	  ec++*)
11685	    lt_prog_compiler_pic_CXX='-KPIC'
11686	    ;;
11687	  ghcx*)
11688	    # Green Hills C++ Compiler
11689	    lt_prog_compiler_pic_CXX='-pic'
11690	    ;;
11691	  *)
11692	    ;;
11693	esac
11694	;;
11695      freebsd* | kfreebsd*-gnu | dragonfly*)
11696	# FreeBSD uses GNU C++
11697	;;
11698      hpux9* | hpux10* | hpux11*)
11699	case $cc_basename in
11700	  CC*)
11701	    lt_prog_compiler_wl_CXX='-Wl,'
11702	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11703	    if test "$host_cpu" != ia64; then
11704	      lt_prog_compiler_pic_CXX='+Z'
11705	    fi
11706	    ;;
11707	  aCC*)
11708	    lt_prog_compiler_wl_CXX='-Wl,'
11709	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11710	    case $host_cpu in
11711	    hppa*64*|ia64*)
11712	      # +Z the default
11713	      ;;
11714	    *)
11715	      lt_prog_compiler_pic_CXX='+Z'
11716	      ;;
11717	    esac
11718	    ;;
11719	  *)
11720	    ;;
11721	esac
11722	;;
11723      interix*)
11724	# This is c89, which is MS Visual C++ (no shared libs)
11725	# Anyone wants to do a port?
11726	;;
11727      irix5* | irix6* | nonstopux*)
11728	case $cc_basename in
11729	  CC*)
11730	    lt_prog_compiler_wl_CXX='-Wl,'
11731	    lt_prog_compiler_static_CXX='-non_shared'
11732	    # CC pic flag -KPIC is the default.
11733	    ;;
11734	  *)
11735	    ;;
11736	esac
11737	;;
11738      linux*)
11739	case $cc_basename in
11740	  KCC*)
11741	    # KAI C++ Compiler
11742	    lt_prog_compiler_wl_CXX='--backend -Wl,'
11743	    lt_prog_compiler_pic_CXX='-fPIC'
11744	    ;;
11745	  icpc* | ecpc*)
11746	    # Intel C++
11747	    lt_prog_compiler_wl_CXX='-Wl,'
11748	    lt_prog_compiler_pic_CXX='-KPIC'
11749	    lt_prog_compiler_static_CXX='-static'
11750	    ;;
11751	  pgCC*)
11752	    # Portland Group C++ compiler.
11753	    lt_prog_compiler_wl_CXX='-Wl,'
11754	    lt_prog_compiler_pic_CXX='-fpic'
11755	    lt_prog_compiler_static_CXX='-Bstatic'
11756	    ;;
11757	  cxx*)
11758	    # Compaq C++
11759	    # Make sure the PIC flag is empty.  It appears that all Alpha
11760	    # Linux and Compaq Tru64 Unix objects are PIC.
11761	    lt_prog_compiler_pic_CXX=
11762	    lt_prog_compiler_static_CXX='-non_shared'
11763	    ;;
11764	  *)
11765	    ;;
11766	esac
11767	;;
11768      lynxos*)
11769	;;
11770      m88k*)
11771	;;
11772      mvs*)
11773	case $cc_basename in
11774	  cxx*)
11775	    lt_prog_compiler_pic_CXX='-W c,exportall'
11776	    ;;
11777	  *)
11778	    ;;
11779	esac
11780	;;
11781      netbsd*)
11782	;;
11783      osf3* | osf4* | osf5*)
11784	case $cc_basename in
11785	  KCC*)
11786	    lt_prog_compiler_wl_CXX='--backend -Wl,'
11787	    ;;
11788	  RCC*)
11789	    # Rational C++ 2.4.1
11790	    lt_prog_compiler_pic_CXX='-pic'
11791	    ;;
11792	  cxx*)
11793	    # Digital/Compaq C++
11794	    lt_prog_compiler_wl_CXX='-Wl,'
11795	    # Make sure the PIC flag is empty.  It appears that all Alpha
11796	    # Linux and Compaq Tru64 Unix objects are PIC.
11797	    lt_prog_compiler_pic_CXX=
11798	    lt_prog_compiler_static_CXX='-non_shared'
11799	    ;;
11800	  *)
11801	    ;;
11802	esac
11803	;;
11804      psos*)
11805	;;
11806      solaris*)
11807	case $cc_basename in
11808	  CC*)
11809	    # Sun C++ 4.2, 5.x and Centerline C++
11810	    lt_prog_compiler_pic_CXX='-KPIC'
11811	    lt_prog_compiler_static_CXX='-Bstatic'
11812	    lt_prog_compiler_wl_CXX='-Qoption ld '
11813	    ;;
11814	  gcx*)
11815	    # Green Hills C++ Compiler
11816	    lt_prog_compiler_pic_CXX='-PIC'
11817	    ;;
11818	  *)
11819	    ;;
11820	esac
11821	;;
11822      sunos4*)
11823	case $cc_basename in
11824	  CC*)
11825	    # Sun C++ 4.x
11826	    lt_prog_compiler_pic_CXX='-pic'
11827	    lt_prog_compiler_static_CXX='-Bstatic'
11828	    ;;
11829	  lcc*)
11830	    # Lucid
11831	    lt_prog_compiler_pic_CXX='-pic'
11832	    ;;
11833	  *)
11834	    ;;
11835	esac
11836	;;
11837      tandem*)
11838	case $cc_basename in
11839	  NCC*)
11840	    # NonStop-UX NCC 3.20
11841	    lt_prog_compiler_pic_CXX='-KPIC'
11842	    ;;
11843	  *)
11844	    ;;
11845	esac
11846	;;
11847      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11848	case $cc_basename in
11849	  CC*)
11850	    lt_prog_compiler_wl_CXX='-Wl,'
11851	    lt_prog_compiler_pic_CXX='-KPIC'
11852	    lt_prog_compiler_static_CXX='-Bstatic'
11853	    ;;
11854	esac
11855	;;
11856      vxworks*)
11857	;;
11858      *)
11859	lt_prog_compiler_can_build_shared_CXX=no
11860	;;
11861    esac
11862  fi
11863
11864echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11865echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11866
11867#
11868# Check to make sure the PIC flag actually works.
11869#
11870if test -n "$lt_prog_compiler_pic_CXX"; then
11871
11872echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11873echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11874if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11875  echo $ECHO_N "(cached) $ECHO_C" >&6
11876else
11877  lt_prog_compiler_pic_works_CXX=no
11878  ac_outfile=conftest.$ac_objext
11879   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11880   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11881   # Insert the option either (1) after the last *FLAGS variable, or
11882   # (2) before a word containing "conftest.", or (3) at the end.
11883   # Note that $ac_compile itself does not contain backslashes and begins
11884   # with a dollar sign (not a hyphen), so the echo should work correctly.
11885   # The option is referenced via a variable to avoid confusing sed.
11886   lt_compile=`echo "$ac_compile" | $SED \
11887   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11888   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11889   -e 's:$: $lt_compiler_flag:'`
11890   (eval echo "\"\$as_me:11890: $lt_compile\"" >&5)
11891   (eval "$lt_compile" 2>conftest.err)
11892   ac_status=$?
11893   cat conftest.err >&5
11894   echo "$as_me:11894: \$? = $ac_status" >&5
11895   if (exit $ac_status) && test -s "$ac_outfile"; then
11896     # The compiler can only warn and ignore the option if not recognized
11897     # So say no if there are warnings other than the usual output.
11898     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11899     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11900     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11901       lt_prog_compiler_pic_works_CXX=yes
11902     fi
11903   fi
11904   $rm conftest*
11905
11906fi
11907echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11908echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11909
11910if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11911    case $lt_prog_compiler_pic_CXX in
11912     "" | " "*) ;;
11913     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11914     esac
11915else
11916    lt_prog_compiler_pic_CXX=
11917     lt_prog_compiler_can_build_shared_CXX=no
11918fi
11919
11920fi
11921case $host_os in
11922  # For platforms which do not support PIC, -DPIC is meaningless:
11923  *djgpp*)
11924    lt_prog_compiler_pic_CXX=
11925    ;;
11926  *)
11927    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11928    ;;
11929esac
11930
11931#
11932# Check to make sure the static flag actually works.
11933#
11934wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11935echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11936echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11937if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11938  echo $ECHO_N "(cached) $ECHO_C" >&6
11939else
11940  lt_prog_compiler_static_works_CXX=no
11941   save_LDFLAGS="$LDFLAGS"
11942   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11943   printf "$lt_simple_link_test_code" > conftest.$ac_ext
11944   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11945     # The linker can only warn and ignore the option if not recognized
11946     # So say no if there are warnings
11947     if test -s conftest.err; then
11948       # Append any errors to the config.log.
11949       cat conftest.err 1>&5
11950       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11951       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11952       if diff conftest.exp conftest.er2 >/dev/null; then
11953         lt_prog_compiler_static_works_CXX=yes
11954       fi
11955     else
11956       lt_prog_compiler_static_works_CXX=yes
11957     fi
11958   fi
11959   $rm conftest*
11960   LDFLAGS="$save_LDFLAGS"
11961
11962fi
11963echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11964echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
11965
11966if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11967    :
11968else
11969    lt_prog_compiler_static_CXX=
11970fi
11971
11972
11973echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11974echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11975if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11976  echo $ECHO_N "(cached) $ECHO_C" >&6
11977else
11978  lt_cv_prog_compiler_c_o_CXX=no
11979   $rm -r conftest 2>/dev/null
11980   mkdir conftest
11981   cd conftest
11982   mkdir out
11983   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11984
11985   lt_compiler_flag="-o out/conftest2.$ac_objext"
11986   # Insert the option either (1) after the last *FLAGS variable, or
11987   # (2) before a word containing "conftest.", or (3) at the end.
11988   # Note that $ac_compile itself does not contain backslashes and begins
11989   # with a dollar sign (not a hyphen), so the echo should work correctly.
11990   lt_compile=`echo "$ac_compile" | $SED \
11991   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11992   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11993   -e 's:$: $lt_compiler_flag:'`
11994   (eval echo "\"\$as_me:11994: $lt_compile\"" >&5)
11995   (eval "$lt_compile" 2>out/conftest.err)
11996   ac_status=$?
11997   cat out/conftest.err >&5
11998   echo "$as_me:11998: \$? = $ac_status" >&5
11999   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12000   then
12001     # The compiler can only warn and ignore the option if not recognized
12002     # So say no if there are warnings
12003     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12004     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12005     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12006       lt_cv_prog_compiler_c_o_CXX=yes
12007     fi
12008   fi
12009   chmod u+w . 2>&5
12010   $rm conftest*
12011   # SGI C++ compiler will create directory out/ii_files/ for
12012   # template instantiation
12013   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12014   $rm out/* && rmdir out
12015   cd ..
12016   rmdir conftest
12017   $rm conftest*
12018
12019fi
12020echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12021echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
12022
12023
12024hard_links="nottested"
12025if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12026  # do not overwrite the value of need_locks provided by the user
12027  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12028echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12029  hard_links=yes
12030  $rm conftest*
12031  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12032  touch conftest.a
12033  ln conftest.a conftest.b 2>&5 || hard_links=no
12034  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12035  echo "$as_me:$LINENO: result: $hard_links" >&5
12036echo "${ECHO_T}$hard_links" >&6
12037  if test "$hard_links" = no; then
12038    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12039echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12040    need_locks=warn
12041  fi
12042else
12043  need_locks=no
12044fi
12045
12046echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12047echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12048
12049  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12050  case $host_os in
12051  aix4* | aix5*)
12052    # If we're using GNU nm, then we don't want the "-C" option.
12053    # -C means demangle to AIX nm, but means don't demangle with GNU nm
12054    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12055      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'
12056    else
12057      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'
12058    fi
12059    ;;
12060  pw32*)
12061    export_symbols_cmds_CXX="$ltdll_cmds"
12062  ;;
12063  cygwin* | mingw*)
12064    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'
12065  ;;
12066  *)
12067    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12068  ;;
12069  esac
12070
12071echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12072echo "${ECHO_T}$ld_shlibs_CXX" >&6
12073test "$ld_shlibs_CXX" = no && can_build_shared=no
12074
12075#
12076# Do we need to explicitly link libc?
12077#
12078case "x$archive_cmds_need_lc_CXX" in
12079x|xyes)
12080  # Assume -lc should be added
12081  archive_cmds_need_lc_CXX=yes
12082
12083  if test "$enable_shared" = yes && test "$GCC" = yes; then
12084    case $archive_cmds_CXX in
12085    *'~'*)
12086      # FIXME: we may have to deal with multi-command sequences.
12087      ;;
12088    '$CC '*)
12089      # Test whether the compiler implicitly links with -lc since on some
12090      # systems, -lgcc has to come before -lc. If gcc already passes -lc
12091      # to ld, don't add -lc before -lgcc.
12092      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12093echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12094      $rm conftest*
12095      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12096
12097      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12098  (eval $ac_compile) 2>&5
12099  ac_status=$?
12100  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12101  (exit $ac_status); } 2>conftest.err; then
12102        soname=conftest
12103        lib=conftest
12104        libobjs=conftest.$ac_objext
12105        deplibs=
12106        wl=$lt_prog_compiler_wl_CXX
12107	pic_flag=$lt_prog_compiler_pic_CXX
12108        compiler_flags=-v
12109        linker_flags=-v
12110        verstring=
12111        output_objdir=.
12112        libname=conftest
12113        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12114        allow_undefined_flag_CXX=
12115        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12116  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12117  ac_status=$?
12118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12119  (exit $ac_status); }
12120        then
12121	  archive_cmds_need_lc_CXX=no
12122        else
12123	  archive_cmds_need_lc_CXX=yes
12124        fi
12125        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12126      else
12127        cat conftest.err 1>&5
12128      fi
12129      $rm conftest*
12130      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12131echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
12132      ;;
12133    esac
12134  fi
12135  ;;
12136esac
12137
12138echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12139echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12140library_names_spec=
12141libname_spec='lib$name'
12142soname_spec=
12143shrext_cmds=".so"
12144postinstall_cmds=
12145postuninstall_cmds=
12146finish_cmds=
12147finish_eval=
12148shlibpath_var=
12149shlibpath_overrides_runpath=unknown
12150version_type=none
12151dynamic_linker="$host_os ld.so"
12152sys_lib_dlsearch_path_spec="/lib /usr/lib"
12153if test "$GCC" = yes; then
12154  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12155  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12156    # if the path contains ";" then we assume it to be the separator
12157    # otherwise default to the standard path separator (i.e. ":") - it is
12158    # assumed that no part of a normal pathname contains ";" but that should
12159    # okay in the real world where ";" in dirpaths is itself problematic.
12160    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12161  else
12162    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12163  fi
12164else
12165  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12166fi
12167need_lib_prefix=unknown
12168hardcode_into_libs=no
12169
12170# when you set need_version to no, make sure it does not cause -set_version
12171# flags to be left without arguments
12172need_version=unknown
12173
12174case $host_os in
12175aix3*)
12176  version_type=linux
12177  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12178  shlibpath_var=LIBPATH
12179
12180  # AIX 3 has no versioning support, so we append a major version to the name.
12181  soname_spec='${libname}${release}${shared_ext}$major'
12182  ;;
12183
12184aix4* | aix5*)
12185  version_type=linux
12186  need_lib_prefix=no
12187  need_version=no
12188  hardcode_into_libs=yes
12189  if test "$host_cpu" = ia64; then
12190    # AIX 5 supports IA64
12191    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12192    shlibpath_var=LD_LIBRARY_PATH
12193  else
12194    # With GCC up to 2.95.x, collect2 would create an import file
12195    # for dependence libraries.  The import file would start with
12196    # the line `#! .'.  This would cause the generated library to
12197    # depend on `.', always an invalid library.  This was fixed in
12198    # development snapshots of GCC prior to 3.0.
12199    case $host_os in
12200      aix4 | aix4.[01] | aix4.[01].*)
12201      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12202	   echo ' yes '
12203	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12204	:
12205      else
12206	can_build_shared=no
12207      fi
12208      ;;
12209    esac
12210    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12211    # soname into executable. Probably we can add versioning support to
12212    # collect2, so additional links can be useful in future.
12213    if test "$aix_use_runtimelinking" = yes; then
12214      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12215      # instead of lib<name>.a to let people know that these are not
12216      # typical AIX shared libraries.
12217      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12218    else
12219      # We preserve .a as extension for shared libraries through AIX4.2
12220      # and later when we are not doing run time linking.
12221      library_names_spec='${libname}${release}.a $libname.a'
12222      soname_spec='${libname}${release}${shared_ext}$major'
12223    fi
12224    shlibpath_var=LIBPATH
12225  fi
12226  ;;
12227
12228amigaos*)
12229  library_names_spec='$libname.ixlibrary $libname.a'
12230  # Create ${libname}_ixlibrary.a entries in /sys/libs.
12231  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'
12232  ;;
12233
12234beos*)
12235  library_names_spec='${libname}${shared_ext}'
12236  dynamic_linker="$host_os ld.so"
12237  shlibpath_var=LIBRARY_PATH
12238  ;;
12239
12240bsdi[45]*)
12241  version_type=linux
12242  need_version=no
12243  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12244  soname_spec='${libname}${release}${shared_ext}$major'
12245  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12246  shlibpath_var=LD_LIBRARY_PATH
12247  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12248  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12249  # the default ld.so.conf also contains /usr/contrib/lib and
12250  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12251  # libtool to hard-code these into programs
12252  ;;
12253
12254cygwin* | mingw* | pw32*)
12255  version_type=windows
12256  shrext_cmds=".dll"
12257  need_version=no
12258  need_lib_prefix=no
12259
12260  case $GCC,$host_os in
12261  yes,cygwin* | yes,mingw* | yes,pw32*)
12262    library_names_spec='$libname.dll.a'
12263    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12264    postinstall_cmds='base_file=`basename \${file}`~
12265      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12266      dldir=$destdir/`dirname \$dlpath`~
12267      test -d \$dldir || mkdir -p \$dldir~
12268      $install_prog $dir/$dlname \$dldir/$dlname~
12269      chmod a+x \$dldir/$dlname'
12270    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12271      dlpath=$dir/\$dldll~
12272       $rm \$dlpath'
12273    shlibpath_overrides_runpath=yes
12274
12275    case $host_os in
12276    cygwin*)
12277      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12278      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12279      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12280      ;;
12281    mingw*)
12282      # MinGW DLLs use traditional 'lib' prefix
12283      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12284      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12285      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12286        # It is most probably a Windows format PATH printed by
12287        # mingw gcc, but we are running on Cygwin. Gcc prints its search
12288        # path with ; separators, and with drive letters. We can handle the
12289        # drive letters (cygwin fileutils understands them), so leave them,
12290        # especially as we might pass files found there to a mingw objdump,
12291        # which wouldn't understand a cygwinified path. Ahh.
12292        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12293      else
12294        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12295      fi
12296      ;;
12297    pw32*)
12298      # pw32 DLLs use 'pw' prefix rather than 'lib'
12299      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12300      ;;
12301    esac
12302    ;;
12303
12304  *)
12305    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12306    ;;
12307  esac
12308  dynamic_linker='Win32 ld.exe'
12309  # FIXME: first we should search . and the directory the executable is in
12310  shlibpath_var=PATH
12311  ;;
12312
12313darwin* | rhapsody*)
12314  dynamic_linker="$host_os dyld"
12315  version_type=darwin
12316  need_lib_prefix=no
12317  need_version=no
12318  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12319  soname_spec='${libname}${release}${major}$shared_ext'
12320  shlibpath_overrides_runpath=yes
12321  shlibpath_var=DYLD_LIBRARY_PATH
12322  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12323  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12324  if test "$GCC" = yes; then
12325    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"`
12326  else
12327    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12328  fi
12329  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12330  ;;
12331
12332dgux*)
12333  version_type=linux
12334  need_lib_prefix=no
12335  need_version=no
12336  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12337  soname_spec='${libname}${release}${shared_ext}$major'
12338  shlibpath_var=LD_LIBRARY_PATH
12339  ;;
12340
12341freebsd1*)
12342  dynamic_linker=no
12343  ;;
12344
12345kfreebsd*-gnu)
12346  version_type=linux
12347  need_lib_prefix=no
12348  need_version=no
12349  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12350  soname_spec='${libname}${release}${shared_ext}$major'
12351  shlibpath_var=LD_LIBRARY_PATH
12352  shlibpath_overrides_runpath=no
12353  hardcode_into_libs=yes
12354  dynamic_linker='GNU ld.so'
12355  ;;
12356
12357freebsd* | dragonfly*)
12358  # DragonFly does not have aout.  When/if they implement a new
12359  # versioning mechanism, adjust this.
12360  if test -x /usr/bin/objformat; then
12361    objformat=`/usr/bin/objformat`
12362  else
12363    case $host_os in
12364    freebsd[123]*) objformat=aout ;;
12365    *) objformat=elf ;;
12366    esac
12367  fi
12368  version_type=freebsd-$objformat
12369  case $version_type in
12370    freebsd-elf*)
12371      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12372      need_version=no
12373      need_lib_prefix=no
12374      ;;
12375    freebsd-*)
12376      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12377      need_version=yes
12378      ;;
12379  esac
12380  shlibpath_var=LD_LIBRARY_PATH
12381  case $host_os in
12382  freebsd2*)
12383    shlibpath_overrides_runpath=yes
12384    ;;
12385  freebsd3.[01]* | freebsdelf3.[01]*)
12386    shlibpath_overrides_runpath=yes
12387    hardcode_into_libs=yes
12388    ;;
12389  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12390  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12391    shlibpath_overrides_runpath=no
12392    hardcode_into_libs=yes
12393    ;;
12394  freebsd*) # from 4.6 on
12395    shlibpath_overrides_runpath=yes
12396    hardcode_into_libs=yes
12397    ;;
12398  esac
12399  ;;
12400
12401gnu*)
12402  version_type=linux
12403  need_lib_prefix=no
12404  need_version=no
12405  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12406  soname_spec='${libname}${release}${shared_ext}$major'
12407  shlibpath_var=LD_LIBRARY_PATH
12408  hardcode_into_libs=yes
12409  ;;
12410
12411hpux9* | hpux10* | hpux11*)
12412  # Give a soname corresponding to the major version so that dld.sl refuses to
12413  # link against other versions.
12414  version_type=sunos
12415  need_lib_prefix=no
12416  need_version=no
12417  case $host_cpu in
12418  ia64*)
12419    shrext_cmds='.so'
12420    hardcode_into_libs=yes
12421    dynamic_linker="$host_os dld.so"
12422    shlibpath_var=LD_LIBRARY_PATH
12423    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12424    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12425    soname_spec='${libname}${release}${shared_ext}$major'
12426    if test "X$HPUX_IA64_MODE" = X32; then
12427      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12428    else
12429      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12430    fi
12431    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12432    ;;
12433   hppa*64*)
12434     shrext_cmds='.sl'
12435     hardcode_into_libs=yes
12436     dynamic_linker="$host_os dld.sl"
12437     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12438     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12439     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12440     soname_spec='${libname}${release}${shared_ext}$major'
12441     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12442     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12443     ;;
12444   *)
12445    shrext_cmds='.sl'
12446    dynamic_linker="$host_os dld.sl"
12447    shlibpath_var=SHLIB_PATH
12448    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12449    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12450    soname_spec='${libname}${release}${shared_ext}$major'
12451    ;;
12452  esac
12453  # HP-UX runs *really* slowly unless shared libraries are mode 555.
12454  postinstall_cmds='chmod 555 $lib'
12455  ;;
12456
12457interix3*)
12458  version_type=linux
12459  need_lib_prefix=no
12460  need_version=no
12461  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12462  soname_spec='${libname}${release}${shared_ext}$major'
12463  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12464  shlibpath_var=LD_LIBRARY_PATH
12465  shlibpath_overrides_runpath=no
12466  hardcode_into_libs=yes
12467  ;;
12468
12469irix5* | irix6* | nonstopux*)
12470  case $host_os in
12471    nonstopux*) version_type=nonstopux ;;
12472    *)
12473	if test "$lt_cv_prog_gnu_ld" = yes; then
12474		version_type=linux
12475	else
12476		version_type=irix
12477	fi ;;
12478  esac
12479  need_lib_prefix=no
12480  need_version=no
12481  soname_spec='${libname}${release}${shared_ext}$major'
12482  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12483  case $host_os in
12484  irix5* | nonstopux*)
12485    libsuff= shlibsuff=
12486    ;;
12487  *)
12488    case $LD in # libtool.m4 will add one of these switches to LD
12489    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12490      libsuff= shlibsuff= libmagic=32-bit;;
12491    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12492      libsuff=32 shlibsuff=N32 libmagic=N32;;
12493    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12494      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12495    *) libsuff= shlibsuff= libmagic=never-match;;
12496    esac
12497    ;;
12498  esac
12499  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12500  shlibpath_overrides_runpath=no
12501  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12502  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12503  hardcode_into_libs=yes
12504  ;;
12505
12506# No shared lib support for Linux oldld, aout, or coff.
12507linux*oldld* | linux*aout* | linux*coff*)
12508  dynamic_linker=no
12509  ;;
12510
12511# This must be Linux ELF.
12512linux*)
12513  version_type=linux
12514  need_lib_prefix=no
12515  need_version=no
12516  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12517  soname_spec='${libname}${release}${shared_ext}$major'
12518  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12519  shlibpath_var=LD_LIBRARY_PATH
12520  shlibpath_overrides_runpath=no
12521  # This implies no fast_install, which is unacceptable.
12522  # Some rework will be needed to allow for fast_install
12523  # before this can be enabled.
12524  hardcode_into_libs=yes
12525
12526  # Append ld.so.conf contents to the search path
12527  if test -f /etc/ld.so.conf; then
12528    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' ' '`
12529    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12530  fi
12531
12532  # We used to test for /lib/ld.so.1 and disable shared libraries on
12533  # powerpc, because MkLinux only supported shared libraries with the
12534  # GNU dynamic linker.  Since this was broken with cross compilers,
12535  # most powerpc-linux boxes support dynamic linking these days and
12536  # people can always --disable-shared, the test was removed, and we
12537  # assume the GNU/Linux dynamic linker is in use.
12538  dynamic_linker='GNU/Linux ld.so'
12539  ;;
12540
12541knetbsd*-gnu)
12542  version_type=linux
12543  need_lib_prefix=no
12544  need_version=no
12545  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12546  soname_spec='${libname}${release}${shared_ext}$major'
12547  shlibpath_var=LD_LIBRARY_PATH
12548  shlibpath_overrides_runpath=no
12549  hardcode_into_libs=yes
12550  dynamic_linker='GNU ld.so'
12551  ;;
12552
12553netbsd*)
12554  version_type=sunos
12555  need_lib_prefix=no
12556  need_version=no
12557  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12558    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12559    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12560    dynamic_linker='NetBSD (a.out) ld.so'
12561  else
12562    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12563    soname_spec='${libname}${release}${shared_ext}$major'
12564    dynamic_linker='NetBSD ld.elf_so'
12565  fi
12566  shlibpath_var=LD_LIBRARY_PATH
12567  shlibpath_overrides_runpath=yes
12568  hardcode_into_libs=yes
12569  ;;
12570
12571newsos6)
12572  version_type=linux
12573  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12574  shlibpath_var=LD_LIBRARY_PATH
12575  shlibpath_overrides_runpath=yes
12576  ;;
12577
12578nto-qnx*)
12579  version_type=linux
12580  need_lib_prefix=no
12581  need_version=no
12582  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12583  soname_spec='${libname}${release}${shared_ext}$major'
12584  shlibpath_var=LD_LIBRARY_PATH
12585  shlibpath_overrides_runpath=yes
12586  ;;
12587
12588openbsd*)
12589  version_type=sunos
12590  sys_lib_dlsearch_path_spec="/usr/lib"
12591  need_lib_prefix=no
12592  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12593  case $host_os in
12594    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12595    *)                         need_version=no  ;;
12596  esac
12597  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12598  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12599  shlibpath_var=LD_LIBRARY_PATH
12600  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12601    case $host_os in
12602      openbsd2.[89] | openbsd2.[89].*)
12603	shlibpath_overrides_runpath=no
12604	;;
12605      *)
12606	shlibpath_overrides_runpath=yes
12607	;;
12608      esac
12609  else
12610    shlibpath_overrides_runpath=yes
12611  fi
12612  ;;
12613
12614os2*)
12615  libname_spec='$name'
12616  shrext_cmds=".dll"
12617  need_lib_prefix=no
12618  library_names_spec='$libname${shared_ext} $libname.a'
12619  dynamic_linker='OS/2 ld.exe'
12620  shlibpath_var=LIBPATH
12621  ;;
12622
12623osf3* | osf4* | osf5*)
12624  version_type=osf
12625  need_lib_prefix=no
12626  need_version=no
12627  soname_spec='${libname}${release}${shared_ext}$major'
12628  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12629  shlibpath_var=LD_LIBRARY_PATH
12630  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12631  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12632  ;;
12633
12634solaris*)
12635  version_type=linux
12636  need_lib_prefix=no
12637  need_version=no
12638  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12639  soname_spec='${libname}${release}${shared_ext}$major'
12640  shlibpath_var=LD_LIBRARY_PATH
12641  shlibpath_overrides_runpath=yes
12642  hardcode_into_libs=yes
12643  # ldd complains unless libraries are executable
12644  postinstall_cmds='chmod +x $lib'
12645  ;;
12646
12647sunos4*)
12648  version_type=sunos
12649  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12650  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12651  shlibpath_var=LD_LIBRARY_PATH
12652  shlibpath_overrides_runpath=yes
12653  if test "$with_gnu_ld" = yes; then
12654    need_lib_prefix=no
12655  fi
12656  need_version=yes
12657  ;;
12658
12659sysv4 | sysv4.3*)
12660  version_type=linux
12661  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12662  soname_spec='${libname}${release}${shared_ext}$major'
12663  shlibpath_var=LD_LIBRARY_PATH
12664  case $host_vendor in
12665    sni)
12666      shlibpath_overrides_runpath=no
12667      need_lib_prefix=no
12668      export_dynamic_flag_spec='${wl}-Blargedynsym'
12669      runpath_var=LD_RUN_PATH
12670      ;;
12671    siemens)
12672      need_lib_prefix=no
12673      ;;
12674    motorola)
12675      need_lib_prefix=no
12676      need_version=no
12677      shlibpath_overrides_runpath=no
12678      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12679      ;;
12680  esac
12681  ;;
12682
12683sysv4*MP*)
12684  if test -d /usr/nec ;then
12685    version_type=linux
12686    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12687    soname_spec='$libname${shared_ext}.$major'
12688    shlibpath_var=LD_LIBRARY_PATH
12689  fi
12690  ;;
12691
12692sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12693  version_type=freebsd-elf
12694  need_lib_prefix=no
12695  need_version=no
12696  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12697  soname_spec='${libname}${release}${shared_ext}$major'
12698  shlibpath_var=LD_LIBRARY_PATH
12699  hardcode_into_libs=yes
12700  if test "$with_gnu_ld" = yes; then
12701    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12702    shlibpath_overrides_runpath=no
12703  else
12704    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12705    shlibpath_overrides_runpath=yes
12706    case $host_os in
12707      sco3.2v5*)
12708        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12709	;;
12710    esac
12711  fi
12712  sys_lib_dlsearch_path_spec='/usr/lib'
12713  ;;
12714
12715uts4*)
12716  version_type=linux
12717  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12718  soname_spec='${libname}${release}${shared_ext}$major'
12719  shlibpath_var=LD_LIBRARY_PATH
12720  ;;
12721
12722*)
12723  dynamic_linker=no
12724  ;;
12725esac
12726echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12727echo "${ECHO_T}$dynamic_linker" >&6
12728test "$dynamic_linker" = no && can_build_shared=no
12729
12730variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12731if test "$GCC" = yes; then
12732  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12733fi
12734
12735echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12736echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12737hardcode_action_CXX=
12738if test -n "$hardcode_libdir_flag_spec_CXX" || \
12739   test -n "$runpath_var_CXX" || \
12740   test "X$hardcode_automatic_CXX" = "Xyes" ; then
12741
12742  # We can hardcode non-existant directories.
12743  if test "$hardcode_direct_CXX" != no &&
12744     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12745     # have to relink, otherwise we might link with an installed library
12746     # when we should be linking with a yet-to-be-installed one
12747     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12748     test "$hardcode_minus_L_CXX" != no; then
12749    # Linking always hardcodes the temporary library directory.
12750    hardcode_action_CXX=relink
12751  else
12752    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12753    hardcode_action_CXX=immediate
12754  fi
12755else
12756  # We cannot hardcode anything, or else we can only hardcode existing
12757  # directories.
12758  hardcode_action_CXX=unsupported
12759fi
12760echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12761echo "${ECHO_T}$hardcode_action_CXX" >&6
12762
12763if test "$hardcode_action_CXX" = relink; then
12764  # Fast installation is not supported
12765  enable_fast_install=no
12766elif test "$shlibpath_overrides_runpath" = yes ||
12767     test "$enable_shared" = no; then
12768  # Fast installation is not necessary
12769  enable_fast_install=needless
12770fi
12771
12772
12773# The else clause should only fire when bootstrapping the
12774# libtool distribution, otherwise you forgot to ship ltmain.sh
12775# with your package, and you will get complaints that there are
12776# no rules to generate ltmain.sh.
12777if test -f "$ltmain"; then
12778  # See if we are running on zsh, and set the options which allow our commands through
12779  # without removal of \ escapes.
12780  if test -n "${ZSH_VERSION+set}" ; then
12781    setopt NO_GLOB_SUBST
12782  fi
12783  # Now quote all the things that may contain metacharacters while being
12784  # careful not to overquote the AC_SUBSTed values.  We take copies of the
12785  # variables and quote the copies for generation of the libtool script.
12786  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12787    SED SHELL STRIP \
12788    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12789    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12790    deplibs_check_method reload_flag reload_cmds need_locks \
12791    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12792    lt_cv_sys_global_symbol_to_c_name_address \
12793    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12794    old_postinstall_cmds old_postuninstall_cmds \
12795    compiler_CXX \
12796    CC_CXX \
12797    LD_CXX \
12798    lt_prog_compiler_wl_CXX \
12799    lt_prog_compiler_pic_CXX \
12800    lt_prog_compiler_static_CXX \
12801    lt_prog_compiler_no_builtin_flag_CXX \
12802    export_dynamic_flag_spec_CXX \
12803    thread_safe_flag_spec_CXX \
12804    whole_archive_flag_spec_CXX \
12805    enable_shared_with_static_runtimes_CXX \
12806    old_archive_cmds_CXX \
12807    old_archive_from_new_cmds_CXX \
12808    predep_objects_CXX \
12809    postdep_objects_CXX \
12810    predeps_CXX \
12811    postdeps_CXX \
12812    compiler_lib_search_path_CXX \
12813    archive_cmds_CXX \
12814    archive_expsym_cmds_CXX \
12815    postinstall_cmds_CXX \
12816    postuninstall_cmds_CXX \
12817    old_archive_from_expsyms_cmds_CXX \
12818    allow_undefined_flag_CXX \
12819    no_undefined_flag_CXX \
12820    export_symbols_cmds_CXX \
12821    hardcode_libdir_flag_spec_CXX \
12822    hardcode_libdir_flag_spec_ld_CXX \
12823    hardcode_libdir_separator_CXX \
12824    hardcode_automatic_CXX \
12825    module_cmds_CXX \
12826    module_expsym_cmds_CXX \
12827    lt_cv_prog_compiler_c_o_CXX \
12828    exclude_expsyms_CXX \
12829    include_expsyms_CXX; do
12830
12831    case $var in
12832    old_archive_cmds_CXX | \
12833    old_archive_from_new_cmds_CXX | \
12834    archive_cmds_CXX | \
12835    archive_expsym_cmds_CXX | \
12836    module_cmds_CXX | \
12837    module_expsym_cmds_CXX | \
12838    old_archive_from_expsyms_cmds_CXX | \
12839    export_symbols_cmds_CXX | \
12840    extract_expsyms_cmds | reload_cmds | finish_cmds | \
12841    postinstall_cmds | postuninstall_cmds | \
12842    old_postinstall_cmds | old_postuninstall_cmds | \
12843    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12844      # Double-quote double-evaled strings.
12845      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12846      ;;
12847    *)
12848      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12849      ;;
12850    esac
12851  done
12852
12853  case $lt_echo in
12854  *'\$0 --fallback-echo"')
12855    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12856    ;;
12857  esac
12858
12859cfgfile="$ofile"
12860
12861  cat <<__EOF__ >> "$cfgfile"
12862# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12863
12864# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12865
12866# Shell to use when invoking shell scripts.
12867SHELL=$lt_SHELL
12868
12869# Whether or not to build shared libraries.
12870build_libtool_libs=$enable_shared
12871
12872# Whether or not to build static libraries.
12873build_old_libs=$enable_static
12874
12875# Whether or not to add -lc for building shared libraries.
12876build_libtool_need_lc=$archive_cmds_need_lc_CXX
12877
12878# Whether or not to disallow shared libs when runtime libs are static
12879allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12880
12881# Whether or not to optimize for fast installation.
12882fast_install=$enable_fast_install
12883
12884# The host system.
12885host_alias=$host_alias
12886host=$host
12887host_os=$host_os
12888
12889# The build system.
12890build_alias=$build_alias
12891build=$build
12892build_os=$build_os
12893
12894# An echo program that does not interpret backslashes.
12895echo=$lt_echo
12896
12897# The archiver.
12898AR=$lt_AR
12899AR_FLAGS=$lt_AR_FLAGS
12900
12901# A C compiler.
12902LTCC=$lt_LTCC
12903
12904# LTCC compiler flags.
12905LTCFLAGS=$lt_LTCFLAGS
12906
12907# A language-specific compiler.
12908CC=$lt_compiler_CXX
12909
12910# Is the compiler the GNU C compiler?
12911with_gcc=$GCC_CXX
12912
12913# An ERE matcher.
12914EGREP=$lt_EGREP
12915
12916# The linker used to build libraries.
12917LD=$lt_LD_CXX
12918
12919# Whether we need hard or soft links.
12920LN_S=$lt_LN_S
12921
12922# A BSD-compatible nm program.
12923NM=$lt_NM
12924
12925# A symbol stripping program
12926STRIP=$lt_STRIP
12927
12928# Used to examine libraries when file_magic_cmd begins "file"
12929MAGIC_CMD=$MAGIC_CMD
12930
12931# Used on cygwin: DLL creation program.
12932DLLTOOL="$DLLTOOL"
12933
12934# Used on cygwin: object dumper.
12935OBJDUMP="$OBJDUMP"
12936
12937# Used on cygwin: assembler.
12938AS="$AS"
12939
12940# The name of the directory that contains temporary libtool files.
12941objdir=$objdir
12942
12943# How to create reloadable object files.
12944reload_flag=$lt_reload_flag
12945reload_cmds=$lt_reload_cmds
12946
12947# How to pass a linker flag through the compiler.
12948wl=$lt_lt_prog_compiler_wl_CXX
12949
12950# Object file suffix (normally "o").
12951objext="$ac_objext"
12952
12953# Old archive suffix (normally "a").
12954libext="$libext"
12955
12956# Shared library suffix (normally ".so").
12957shrext_cmds='$shrext_cmds'
12958
12959# Executable file suffix (normally "").
12960exeext="$exeext"
12961
12962# Additional compiler flags for building library objects.
12963pic_flag=$lt_lt_prog_compiler_pic_CXX
12964pic_mode=$pic_mode
12965
12966# What is the maximum length of a command?
12967max_cmd_len=$lt_cv_sys_max_cmd_len
12968
12969# Does compiler simultaneously support -c and -o options?
12970compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12971
12972# Must we lock files when doing compilation?
12973need_locks=$lt_need_locks
12974
12975# Do we need the lib prefix for modules?
12976need_lib_prefix=$need_lib_prefix
12977
12978# Do we need a version for libraries?
12979need_version=$need_version
12980
12981# Whether dlopen is supported.
12982dlopen_support=$enable_dlopen
12983
12984# Whether dlopen of programs is supported.
12985dlopen_self=$enable_dlopen_self
12986
12987# Whether dlopen of statically linked programs is supported.
12988dlopen_self_static=$enable_dlopen_self_static
12989
12990# Compiler flag to prevent dynamic linking.
12991link_static_flag=$lt_lt_prog_compiler_static_CXX
12992
12993# Compiler flag to turn off builtin functions.
12994no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12995
12996# Compiler flag to allow reflexive dlopens.
12997export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12998
12999# Compiler flag to generate shared objects directly from archives.
13000whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13001
13002# Compiler flag to generate thread-safe objects.
13003thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13004
13005# Library versioning type.
13006version_type=$version_type
13007
13008# Format of library name prefix.
13009libname_spec=$lt_libname_spec
13010
13011# List of archive names.  First name is the real one, the rest are links.
13012# The last name is the one that the linker finds with -lNAME.
13013library_names_spec=$lt_library_names_spec
13014
13015# The coded name of the library, if different from the real name.
13016soname_spec=$lt_soname_spec
13017
13018# Commands used to build and install an old-style archive.
13019RANLIB=$lt_RANLIB
13020old_archive_cmds=$lt_old_archive_cmds_CXX
13021old_postinstall_cmds=$lt_old_postinstall_cmds
13022old_postuninstall_cmds=$lt_old_postuninstall_cmds
13023
13024# Create an old-style archive from a shared archive.
13025old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13026
13027# Create a temporary old-style archive to link instead of a shared archive.
13028old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13029
13030# Commands used to build and install a shared archive.
13031archive_cmds=$lt_archive_cmds_CXX
13032archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13033postinstall_cmds=$lt_postinstall_cmds
13034postuninstall_cmds=$lt_postuninstall_cmds
13035
13036# Commands used to build a loadable module (assumed same as above if empty)
13037module_cmds=$lt_module_cmds_CXX
13038module_expsym_cmds=$lt_module_expsym_cmds_CXX
13039
13040# Commands to strip libraries.
13041old_striplib=$lt_old_striplib
13042striplib=$lt_striplib
13043
13044# Dependencies to place before the objects being linked to create a
13045# shared library.
13046predep_objects=$lt_predep_objects_CXX
13047
13048# Dependencies to place after the objects being linked to create a
13049# shared library.
13050postdep_objects=$lt_postdep_objects_CXX
13051
13052# Dependencies to place before the objects being linked to create a
13053# shared library.
13054predeps=$lt_predeps_CXX
13055
13056# Dependencies to place after the objects being linked to create a
13057# shared library.
13058postdeps=$lt_postdeps_CXX
13059
13060# The library search path used internally by the compiler when linking
13061# a shared library.
13062compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13063
13064# Method to check whether dependent libraries are shared objects.
13065deplibs_check_method=$lt_deplibs_check_method
13066
13067# Command to use when deplibs_check_method == file_magic.
13068file_magic_cmd=$lt_file_magic_cmd
13069
13070# Flag that allows shared libraries with undefined symbols to be built.
13071allow_undefined_flag=$lt_allow_undefined_flag_CXX
13072
13073# Flag that forces no undefined symbols.
13074no_undefined_flag=$lt_no_undefined_flag_CXX
13075
13076# Commands used to finish a libtool library installation in a directory.
13077finish_cmds=$lt_finish_cmds
13078
13079# Same as above, but a single script fragment to be evaled but not shown.
13080finish_eval=$lt_finish_eval
13081
13082# Take the output of nm and produce a listing of raw symbols and C names.
13083global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13084
13085# Transform the output of nm in a proper C declaration
13086global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13087
13088# Transform the output of nm in a C name address pair
13089global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13090
13091# This is the shared library runtime path variable.
13092runpath_var=$runpath_var
13093
13094# This is the shared library path variable.
13095shlibpath_var=$shlibpath_var
13096
13097# Is shlibpath searched before the hard-coded library search path?
13098shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13099
13100# How to hardcode a shared library path into an executable.
13101hardcode_action=$hardcode_action_CXX
13102
13103# Whether we should hardcode library paths into libraries.
13104hardcode_into_libs=$hardcode_into_libs
13105
13106# Flag to hardcode \$libdir into a binary during linking.
13107# This must work even if \$libdir does not exist.
13108hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13109
13110# If ld is used when linking, flag to hardcode \$libdir into
13111# a binary during linking. This must work even if \$libdir does
13112# not exist.
13113hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13114
13115# Whether we need a single -rpath flag with a separated argument.
13116hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13117
13118# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13119# resulting binary.
13120hardcode_direct=$hardcode_direct_CXX
13121
13122# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13123# resulting binary.
13124hardcode_minus_L=$hardcode_minus_L_CXX
13125
13126# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13127# the resulting binary.
13128hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13129
13130# Set to yes if building a shared library automatically hardcodes DIR into the library
13131# and all subsequent libraries and executables linked against it.
13132hardcode_automatic=$hardcode_automatic_CXX
13133
13134# Variables whose values should be saved in libtool wrapper scripts and
13135# restored at relink time.
13136variables_saved_for_relink="$variables_saved_for_relink"
13137
13138# Whether libtool must link a program against all its dependency libraries.
13139link_all_deplibs=$link_all_deplibs_CXX
13140
13141# Compile-time system search path for libraries
13142sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13143
13144# Run-time system search path for libraries
13145sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13146
13147# Fix the shell variable \$srcfile for the compiler.
13148fix_srcfile_path="$fix_srcfile_path_CXX"
13149
13150# Set to yes if exported symbols are required.
13151always_export_symbols=$always_export_symbols_CXX
13152
13153# The commands to list exported symbols.
13154export_symbols_cmds=$lt_export_symbols_cmds_CXX
13155
13156# The commands to extract the exported symbol list from a shared archive.
13157extract_expsyms_cmds=$lt_extract_expsyms_cmds
13158
13159# Symbols that should not be listed in the preloaded symbols.
13160exclude_expsyms=$lt_exclude_expsyms_CXX
13161
13162# Symbols that must always be exported.
13163include_expsyms=$lt_include_expsyms_CXX
13164
13165# ### END LIBTOOL TAG CONFIG: $tagname
13166
13167__EOF__
13168
13169
13170else
13171  # If there is no Makefile yet, we rely on a make rule to execute
13172  # `config.status --recheck' to rerun these tests and create the
13173  # libtool script then.
13174  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13175  if test -f "$ltmain_in"; then
13176    test -f Makefile && make "$ltmain"
13177  fi
13178fi
13179
13180
13181ac_ext=c
13182ac_cpp='$CPP $CPPFLAGS'
13183ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13184ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13185ac_compiler_gnu=$ac_cv_c_compiler_gnu
13186
13187CC=$lt_save_CC
13188LDCXX=$LD
13189LD=$lt_save_LD
13190GCC=$lt_save_GCC
13191with_gnu_ldcxx=$with_gnu_ld
13192with_gnu_ld=$lt_save_with_gnu_ld
13193lt_cv_path_LDCXX=$lt_cv_path_LD
13194lt_cv_path_LD=$lt_save_path_LD
13195lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13196lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13197
13198	else
13199	  tagname=""
13200	fi
13201	;;
13202
13203      F77)
13204	if test -n "$F77" && test "X$F77" != "Xno"; then
13205
13206ac_ext=f
13207ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13208ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13209ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13210
13211
13212archive_cmds_need_lc_F77=no
13213allow_undefined_flag_F77=
13214always_export_symbols_F77=no
13215archive_expsym_cmds_F77=
13216export_dynamic_flag_spec_F77=
13217hardcode_direct_F77=no
13218hardcode_libdir_flag_spec_F77=
13219hardcode_libdir_flag_spec_ld_F77=
13220hardcode_libdir_separator_F77=
13221hardcode_minus_L_F77=no
13222hardcode_automatic_F77=no
13223module_cmds_F77=
13224module_expsym_cmds_F77=
13225link_all_deplibs_F77=unknown
13226old_archive_cmds_F77=$old_archive_cmds
13227no_undefined_flag_F77=
13228whole_archive_flag_spec_F77=
13229enable_shared_with_static_runtimes_F77=no
13230
13231# Source file extension for f77 test sources.
13232ac_ext=f
13233
13234# Object file extension for compiled f77 test sources.
13235objext=o
13236objext_F77=$objext
13237
13238# Code to be used in simple compile tests
13239lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13240
13241# Code to be used in simple link tests
13242lt_simple_link_test_code="      program t\n      end\n"
13243
13244# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13245
13246# If no C compiler was specified, use CC.
13247LTCC=${LTCC-"$CC"}
13248
13249# If no C compiler flags were specified, use CFLAGS.
13250LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13251
13252# Allow CC to be a program name with arguments.
13253compiler=$CC
13254
13255
13256# save warnings/boilerplate of simple test code
13257ac_outfile=conftest.$ac_objext
13258printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13259eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13260_lt_compiler_boilerplate=`cat conftest.err`
13261$rm conftest*
13262
13263ac_outfile=conftest.$ac_objext
13264printf "$lt_simple_link_test_code" >conftest.$ac_ext
13265eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13266_lt_linker_boilerplate=`cat conftest.err`
13267$rm conftest*
13268
13269
13270# Allow CC to be a program name with arguments.
13271lt_save_CC="$CC"
13272CC=${F77-"f77"}
13273compiler=$CC
13274compiler_F77=$CC
13275for cc_temp in $compiler""; do
13276  case $cc_temp in
13277    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13278    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13279    \-*) ;;
13280    *) break;;
13281  esac
13282done
13283cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13284
13285
13286echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13287echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13288echo "$as_me:$LINENO: result: $can_build_shared" >&5
13289echo "${ECHO_T}$can_build_shared" >&6
13290
13291echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13292echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13293test "$can_build_shared" = "no" && enable_shared=no
13294
13295# On AIX, shared libraries and static libraries use the same namespace, and
13296# are all built from PIC.
13297case $host_os in
13298aix3*)
13299  test "$enable_shared" = yes && enable_static=no
13300  if test -n "$RANLIB"; then
13301    archive_cmds="$archive_cmds~\$RANLIB \$lib"
13302    postinstall_cmds='$RANLIB $lib'
13303  fi
13304  ;;
13305aix4* | aix5*)
13306  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13307    test "$enable_shared" = yes && enable_static=no
13308  fi
13309  ;;
13310esac
13311echo "$as_me:$LINENO: result: $enable_shared" >&5
13312echo "${ECHO_T}$enable_shared" >&6
13313
13314echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13315echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13316# Make sure either enable_shared or enable_static is yes.
13317test "$enable_shared" = yes || enable_static=yes
13318echo "$as_me:$LINENO: result: $enable_static" >&5
13319echo "${ECHO_T}$enable_static" >&6
13320
13321GCC_F77="$G77"
13322LD_F77="$LD"
13323
13324lt_prog_compiler_wl_F77=
13325lt_prog_compiler_pic_F77=
13326lt_prog_compiler_static_F77=
13327
13328echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13329echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13330
13331  if test "$GCC" = yes; then
13332    lt_prog_compiler_wl_F77='-Wl,'
13333    lt_prog_compiler_static_F77='-static'
13334
13335    case $host_os in
13336      aix*)
13337      # All AIX code is PIC.
13338      if test "$host_cpu" = ia64; then
13339	# AIX 5 now supports IA64 processor
13340	lt_prog_compiler_static_F77='-Bstatic'
13341      fi
13342      ;;
13343
13344    amigaos*)
13345      # FIXME: we need at least 68020 code to build shared libraries, but
13346      # adding the `-m68020' flag to GCC prevents building anything better,
13347      # like `-m68040'.
13348      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13349      ;;
13350
13351    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13352      # PIC is the default for these OSes.
13353      ;;
13354
13355    mingw* | pw32* | os2*)
13356      # This hack is so that the source file can tell whether it is being
13357      # built for inclusion in a dll (and should export symbols for example).
13358      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13359      ;;
13360
13361    darwin* | rhapsody*)
13362      # PIC is the default on this platform
13363      # Common symbols not allowed in MH_DYLIB files
13364      lt_prog_compiler_pic_F77='-fno-common'
13365      ;;
13366
13367    interix3*)
13368      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13369      # Instead, we relocate shared libraries at runtime.
13370      ;;
13371
13372    msdosdjgpp*)
13373      # Just because we use GCC doesn't mean we suddenly get shared libraries
13374      # on systems that don't support them.
13375      lt_prog_compiler_can_build_shared_F77=no
13376      enable_shared=no
13377      ;;
13378
13379    sysv4*MP*)
13380      if test -d /usr/nec; then
13381	lt_prog_compiler_pic_F77=-Kconform_pic
13382      fi
13383      ;;
13384
13385    hpux*)
13386      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13387      # not for PA HP-UX.
13388      case $host_cpu in
13389      hppa*64*|ia64*)
13390	# +Z the default
13391	;;
13392      *)
13393	lt_prog_compiler_pic_F77='-fPIC'
13394	;;
13395      esac
13396      ;;
13397
13398    *)
13399      lt_prog_compiler_pic_F77='-fPIC'
13400      ;;
13401    esac
13402  else
13403    # PORTME Check for flag to pass linker flags through the system compiler.
13404    case $host_os in
13405    aix*)
13406      lt_prog_compiler_wl_F77='-Wl,'
13407      if test "$host_cpu" = ia64; then
13408	# AIX 5 now supports IA64 processor
13409	lt_prog_compiler_static_F77='-Bstatic'
13410      else
13411	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13412      fi
13413      ;;
13414      darwin*)
13415        # PIC is the default on this platform
13416        # Common symbols not allowed in MH_DYLIB files
13417       case $cc_basename in
13418         xlc*)
13419         lt_prog_compiler_pic_F77='-qnocommon'
13420         lt_prog_compiler_wl_F77='-Wl,'
13421         ;;
13422       esac
13423       ;;
13424
13425    mingw* | pw32* | os2*)
13426      # This hack is so that the source file can tell whether it is being
13427      # built for inclusion in a dll (and should export symbols for example).
13428      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13429      ;;
13430
13431    hpux9* | hpux10* | hpux11*)
13432      lt_prog_compiler_wl_F77='-Wl,'
13433      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13434      # not for PA HP-UX.
13435      case $host_cpu in
13436      hppa*64*|ia64*)
13437	# +Z the default
13438	;;
13439      *)
13440	lt_prog_compiler_pic_F77='+Z'
13441	;;
13442      esac
13443      # Is there a better lt_prog_compiler_static that works with the bundled CC?
13444      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13445      ;;
13446
13447    irix5* | irix6* | nonstopux*)
13448      lt_prog_compiler_wl_F77='-Wl,'
13449      # PIC (with -KPIC) is the default.
13450      lt_prog_compiler_static_F77='-non_shared'
13451      ;;
13452
13453    newsos6)
13454      lt_prog_compiler_pic_F77='-KPIC'
13455      lt_prog_compiler_static_F77='-Bstatic'
13456      ;;
13457
13458    linux*)
13459      case $cc_basename in
13460      icc* | ecc*)
13461	lt_prog_compiler_wl_F77='-Wl,'
13462	lt_prog_compiler_pic_F77='-KPIC'
13463	lt_prog_compiler_static_F77='-static'
13464        ;;
13465      pgcc* | pgf77* | pgf90* | pgf95*)
13466        # Portland Group compilers (*not* the Pentium gcc compiler,
13467	# which looks to be a dead project)
13468	lt_prog_compiler_wl_F77='-Wl,'
13469	lt_prog_compiler_pic_F77='-fpic'
13470	lt_prog_compiler_static_F77='-Bstatic'
13471        ;;
13472      ccc*)
13473        lt_prog_compiler_wl_F77='-Wl,'
13474        # All Alpha code is PIC.
13475        lt_prog_compiler_static_F77='-non_shared'
13476        ;;
13477      esac
13478      ;;
13479
13480    osf3* | osf4* | osf5*)
13481      lt_prog_compiler_wl_F77='-Wl,'
13482      # All OSF/1 code is PIC.
13483      lt_prog_compiler_static_F77='-non_shared'
13484      ;;
13485
13486    solaris*)
13487      lt_prog_compiler_pic_F77='-KPIC'
13488      lt_prog_compiler_static_F77='-Bstatic'
13489      case $cc_basename in
13490      f77* | f90* | f95*)
13491	lt_prog_compiler_wl_F77='-Qoption ld ';;
13492      *)
13493	lt_prog_compiler_wl_F77='-Wl,';;
13494      esac
13495      ;;
13496
13497    sunos4*)
13498      lt_prog_compiler_wl_F77='-Qoption ld '
13499      lt_prog_compiler_pic_F77='-PIC'
13500      lt_prog_compiler_static_F77='-Bstatic'
13501      ;;
13502
13503    sysv4 | sysv4.2uw2* | sysv4.3*)
13504      lt_prog_compiler_wl_F77='-Wl,'
13505      lt_prog_compiler_pic_F77='-KPIC'
13506      lt_prog_compiler_static_F77='-Bstatic'
13507      ;;
13508
13509    sysv4*MP*)
13510      if test -d /usr/nec ;then
13511	lt_prog_compiler_pic_F77='-Kconform_pic'
13512	lt_prog_compiler_static_F77='-Bstatic'
13513      fi
13514      ;;
13515
13516    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13517      lt_prog_compiler_wl_F77='-Wl,'
13518      lt_prog_compiler_pic_F77='-KPIC'
13519      lt_prog_compiler_static_F77='-Bstatic'
13520      ;;
13521
13522    unicos*)
13523      lt_prog_compiler_wl_F77='-Wl,'
13524      lt_prog_compiler_can_build_shared_F77=no
13525      ;;
13526
13527    uts4*)
13528      lt_prog_compiler_pic_F77='-pic'
13529      lt_prog_compiler_static_F77='-Bstatic'
13530      ;;
13531
13532    *)
13533      lt_prog_compiler_can_build_shared_F77=no
13534      ;;
13535    esac
13536  fi
13537
13538echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13539echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13540
13541#
13542# Check to make sure the PIC flag actually works.
13543#
13544if test -n "$lt_prog_compiler_pic_F77"; then
13545
13546echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13547echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13548if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13549  echo $ECHO_N "(cached) $ECHO_C" >&6
13550else
13551  lt_prog_compiler_pic_works_F77=no
13552  ac_outfile=conftest.$ac_objext
13553   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13554   lt_compiler_flag="$lt_prog_compiler_pic_F77"
13555   # Insert the option either (1) after the last *FLAGS variable, or
13556   # (2) before a word containing "conftest.", or (3) at the end.
13557   # Note that $ac_compile itself does not contain backslashes and begins
13558   # with a dollar sign (not a hyphen), so the echo should work correctly.
13559   # The option is referenced via a variable to avoid confusing sed.
13560   lt_compile=`echo "$ac_compile" | $SED \
13561   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13562   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13563   -e 's:$: $lt_compiler_flag:'`
13564   (eval echo "\"\$as_me:13564: $lt_compile\"" >&5)
13565   (eval "$lt_compile" 2>conftest.err)
13566   ac_status=$?
13567   cat conftest.err >&5
13568   echo "$as_me:13568: \$? = $ac_status" >&5
13569   if (exit $ac_status) && test -s "$ac_outfile"; then
13570     # The compiler can only warn and ignore the option if not recognized
13571     # So say no if there are warnings other than the usual output.
13572     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13573     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13574     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13575       lt_prog_compiler_pic_works_F77=yes
13576     fi
13577   fi
13578   $rm conftest*
13579
13580fi
13581echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13582echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13583
13584if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13585    case $lt_prog_compiler_pic_F77 in
13586     "" | " "*) ;;
13587     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13588     esac
13589else
13590    lt_prog_compiler_pic_F77=
13591     lt_prog_compiler_can_build_shared_F77=no
13592fi
13593
13594fi
13595case $host_os in
13596  # For platforms which do not support PIC, -DPIC is meaningless:
13597  *djgpp*)
13598    lt_prog_compiler_pic_F77=
13599    ;;
13600  *)
13601    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13602    ;;
13603esac
13604
13605#
13606# Check to make sure the static flag actually works.
13607#
13608wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13609echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13610echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13611if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13612  echo $ECHO_N "(cached) $ECHO_C" >&6
13613else
13614  lt_prog_compiler_static_works_F77=no
13615   save_LDFLAGS="$LDFLAGS"
13616   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13617   printf "$lt_simple_link_test_code" > conftest.$ac_ext
13618   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13619     # The linker can only warn and ignore the option if not recognized
13620     # So say no if there are warnings
13621     if test -s conftest.err; then
13622       # Append any errors to the config.log.
13623       cat conftest.err 1>&5
13624       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13625       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13626       if diff conftest.exp conftest.er2 >/dev/null; then
13627         lt_prog_compiler_static_works_F77=yes
13628       fi
13629     else
13630       lt_prog_compiler_static_works_F77=yes
13631     fi
13632   fi
13633   $rm conftest*
13634   LDFLAGS="$save_LDFLAGS"
13635
13636fi
13637echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13638echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
13639
13640if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13641    :
13642else
13643    lt_prog_compiler_static_F77=
13644fi
13645
13646
13647echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13648echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13649if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13650  echo $ECHO_N "(cached) $ECHO_C" >&6
13651else
13652  lt_cv_prog_compiler_c_o_F77=no
13653   $rm -r conftest 2>/dev/null
13654   mkdir conftest
13655   cd conftest
13656   mkdir out
13657   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13658
13659   lt_compiler_flag="-o out/conftest2.$ac_objext"
13660   # Insert the option either (1) after the last *FLAGS variable, or
13661   # (2) before a word containing "conftest.", or (3) at the end.
13662   # Note that $ac_compile itself does not contain backslashes and begins
13663   # with a dollar sign (not a hyphen), so the echo should work correctly.
13664   lt_compile=`echo "$ac_compile" | $SED \
13665   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13666   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13667   -e 's:$: $lt_compiler_flag:'`
13668   (eval echo "\"\$as_me:13668: $lt_compile\"" >&5)
13669   (eval "$lt_compile" 2>out/conftest.err)
13670   ac_status=$?
13671   cat out/conftest.err >&5
13672   echo "$as_me:13672: \$? = $ac_status" >&5
13673   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13674   then
13675     # The compiler can only warn and ignore the option if not recognized
13676     # So say no if there are warnings
13677     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13678     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13679     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13680       lt_cv_prog_compiler_c_o_F77=yes
13681     fi
13682   fi
13683   chmod u+w . 2>&5
13684   $rm conftest*
13685   # SGI C++ compiler will create directory out/ii_files/ for
13686   # template instantiation
13687   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13688   $rm out/* && rmdir out
13689   cd ..
13690   rmdir conftest
13691   $rm conftest*
13692
13693fi
13694echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13695echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13696
13697
13698hard_links="nottested"
13699if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13700  # do not overwrite the value of need_locks provided by the user
13701  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13702echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13703  hard_links=yes
13704  $rm conftest*
13705  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13706  touch conftest.a
13707  ln conftest.a conftest.b 2>&5 || hard_links=no
13708  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13709  echo "$as_me:$LINENO: result: $hard_links" >&5
13710echo "${ECHO_T}$hard_links" >&6
13711  if test "$hard_links" = no; then
13712    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13713echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13714    need_locks=warn
13715  fi
13716else
13717  need_locks=no
13718fi
13719
13720echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13721echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13722
13723  runpath_var=
13724  allow_undefined_flag_F77=
13725  enable_shared_with_static_runtimes_F77=no
13726  archive_cmds_F77=
13727  archive_expsym_cmds_F77=
13728  old_archive_From_new_cmds_F77=
13729  old_archive_from_expsyms_cmds_F77=
13730  export_dynamic_flag_spec_F77=
13731  whole_archive_flag_spec_F77=
13732  thread_safe_flag_spec_F77=
13733  hardcode_libdir_flag_spec_F77=
13734  hardcode_libdir_flag_spec_ld_F77=
13735  hardcode_libdir_separator_F77=
13736  hardcode_direct_F77=no
13737  hardcode_minus_L_F77=no
13738  hardcode_shlibpath_var_F77=unsupported
13739  link_all_deplibs_F77=unknown
13740  hardcode_automatic_F77=no
13741  module_cmds_F77=
13742  module_expsym_cmds_F77=
13743  always_export_symbols_F77=no
13744  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13745  # include_expsyms should be a list of space-separated symbols to be *always*
13746  # included in the symbol list
13747  include_expsyms_F77=
13748  # exclude_expsyms can be an extended regexp of symbols to exclude
13749  # it will be wrapped by ` (' and `)$', so one must not match beginning or
13750  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13751  # as well as any symbol that contains `d'.
13752  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13753  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13754  # platforms (ab)use it in PIC code, but their linkers get confused if
13755  # the symbol is explicitly referenced.  Since portable code cannot
13756  # rely on this symbol name, it's probably fine to never include it in
13757  # preloaded symbol tables.
13758  extract_expsyms_cmds=
13759  # Just being paranoid about ensuring that cc_basename is set.
13760  for cc_temp in $compiler""; do
13761  case $cc_temp in
13762    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13763    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13764    \-*) ;;
13765    *) break;;
13766  esac
13767done
13768cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13769
13770  case $host_os in
13771  cygwin* | mingw* | pw32*)
13772    # FIXME: the MSVC++ port hasn't been tested in a loooong time
13773    # When not using gcc, we currently assume that we are using
13774    # Microsoft Visual C++.
13775    if test "$GCC" != yes; then
13776      with_gnu_ld=no
13777    fi
13778    ;;
13779  interix*)
13780    # we just hope/assume this is gcc and not c89 (= MSVC++)
13781    with_gnu_ld=yes
13782    ;;
13783  openbsd*)
13784    with_gnu_ld=no
13785    ;;
13786  esac
13787
13788  ld_shlibs_F77=yes
13789  if test "$with_gnu_ld" = yes; then
13790    # If archive_cmds runs LD, not CC, wlarc should be empty
13791    wlarc='${wl}'
13792
13793    # Set some defaults for GNU ld with shared library support. These
13794    # are reset later if shared libraries are not supported. Putting them
13795    # here allows them to be overridden if necessary.
13796    runpath_var=LD_RUN_PATH
13797    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13798    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13799    # ancient GNU ld didn't support --whole-archive et. al.
13800    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13801	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13802      else
13803  	whole_archive_flag_spec_F77=
13804    fi
13805    supports_anon_versioning=no
13806    case `$LD -v 2>/dev/null` in
13807      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13808      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13809      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13810      *\ 2.11.*) ;; # other 2.11 versions
13811      *) supports_anon_versioning=yes ;;
13812    esac
13813
13814    # See if GNU ld supports shared libraries.
13815    case $host_os in
13816    aix3* | aix4* | aix5*)
13817      # On AIX/PPC, the GNU linker is very broken
13818      if test "$host_cpu" != ia64; then
13819	ld_shlibs_F77=no
13820	cat <<EOF 1>&2
13821
13822*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13823*** to be unable to reliably create shared libraries on AIX.
13824*** Therefore, libtool is disabling shared libraries support.  If you
13825*** really care for shared libraries, you may want to modify your PATH
13826*** so that a non-GNU linker is found, and then restart.
13827
13828EOF
13829      fi
13830      ;;
13831
13832    amigaos*)
13833      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)'
13834      hardcode_libdir_flag_spec_F77='-L$libdir'
13835      hardcode_minus_L_F77=yes
13836
13837      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13838      # that the semantics of dynamic libraries on AmigaOS, at least up
13839      # to version 4, is to share data among multiple programs linked
13840      # with the same dynamic library.  Since this doesn't match the
13841      # behavior of shared libraries on other platforms, we can't use
13842      # them.
13843      ld_shlibs_F77=no
13844      ;;
13845
13846    beos*)
13847      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13848	allow_undefined_flag_F77=unsupported
13849	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13850	# support --undefined.  This deserves some investigation.  FIXME
13851	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13852      else
13853	ld_shlibs_F77=no
13854      fi
13855      ;;
13856
13857    cygwin* | mingw* | pw32*)
13858      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13859      # as there is no search path for DLLs.
13860      hardcode_libdir_flag_spec_F77='-L$libdir'
13861      allow_undefined_flag_F77=unsupported
13862      always_export_symbols_F77=no
13863      enable_shared_with_static_runtimes_F77=yes
13864      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13865
13866      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13867        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13868	# If the export-symbols file already is a .def file (1st line
13869	# is EXPORTS), use it as is; otherwise, prepend...
13870	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13871	  cp $export_symbols $output_objdir/$soname.def;
13872	else
13873	  echo EXPORTS > $output_objdir/$soname.def;
13874	  cat $export_symbols >> $output_objdir/$soname.def;
13875	fi~
13876	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13877      else
13878	ld_shlibs_F77=no
13879      fi
13880      ;;
13881
13882    interix3*)
13883      hardcode_direct_F77=no
13884      hardcode_shlibpath_var_F77=no
13885      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13886      export_dynamic_flag_spec_F77='${wl}-E'
13887      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13888      # Instead, shared libraries are loaded at an image base (0x10000000 by
13889      # default) and relocated if they conflict, which is a slow very memory
13890      # consuming and fragmenting process.  To avoid this, we pick a random,
13891      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13892      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13893      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'
13894      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'
13895      ;;
13896
13897    linux*)
13898      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13899	tmp_addflag=
13900	case $cc_basename,$host_cpu in
13901	pgcc*)				# Portland Group C compiler
13902	  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'
13903	  tmp_addflag=' $pic_flag'
13904	  ;;
13905	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
13906	  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'
13907	  tmp_addflag=' $pic_flag -Mnomain' ;;
13908	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
13909	  tmp_addflag=' -i_dynamic' ;;
13910	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
13911	  tmp_addflag=' -i_dynamic -nofor_main' ;;
13912	ifc* | ifort*)			# Intel Fortran compiler
13913	  tmp_addflag=' -nofor_main' ;;
13914	esac
13915	archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13916
13917	if test $supports_anon_versioning = yes; then
13918	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13919  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13920  $echo "local: *; };" >> $output_objdir/$libname.ver~
13921	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13922	fi
13923      else
13924	ld_shlibs_F77=no
13925      fi
13926      ;;
13927
13928    netbsd*)
13929      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13930	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13931	wlarc=
13932      else
13933	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13934	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13935      fi
13936      ;;
13937
13938    solaris*)
13939      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13940	ld_shlibs_F77=no
13941	cat <<EOF 1>&2
13942
13943*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13944*** create shared libraries on Solaris systems.  Therefore, libtool
13945*** is disabling shared libraries support.  We urge you to upgrade GNU
13946*** binutils to release 2.9.1 or newer.  Another option is to modify
13947*** your PATH or compiler configuration so that the native linker is
13948*** used, and then restart.
13949
13950EOF
13951      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13952	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13953	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13954      else
13955	ld_shlibs_F77=no
13956      fi
13957      ;;
13958
13959    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13960      case `$LD -v 2>&1` in
13961        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13962	ld_shlibs_F77=no
13963	cat <<_LT_EOF 1>&2
13964
13965*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13966*** reliably create shared libraries on SCO systems.  Therefore, libtool
13967*** is disabling shared libraries support.  We urge you to upgrade GNU
13968*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
13969*** your PATH or compiler configuration so that the native linker is
13970*** used, and then restart.
13971
13972_LT_EOF
13973	;;
13974	*)
13975	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13976	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13977	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13978	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13979	  else
13980	    ld_shlibs_F77=no
13981	  fi
13982	;;
13983      esac
13984      ;;
13985
13986    sunos4*)
13987      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13988      wlarc=
13989      hardcode_direct_F77=yes
13990      hardcode_shlibpath_var_F77=no
13991      ;;
13992
13993    *)
13994      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13995	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13996	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13997      else
13998	ld_shlibs_F77=no
13999      fi
14000      ;;
14001    esac
14002
14003    if test "$ld_shlibs_F77" = no; then
14004      runpath_var=
14005      hardcode_libdir_flag_spec_F77=
14006      export_dynamic_flag_spec_F77=
14007      whole_archive_flag_spec_F77=
14008    fi
14009  else
14010    # PORTME fill in a description of your system's linker (not GNU ld)
14011    case $host_os in
14012    aix3*)
14013      allow_undefined_flag_F77=unsupported
14014      always_export_symbols_F77=yes
14015      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'
14016      # Note: this linker hardcodes the directories in LIBPATH if there
14017      # are no directories specified by -L.
14018      hardcode_minus_L_F77=yes
14019      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14020	# Neither direct hardcoding nor static linking is supported with a
14021	# broken collect2.
14022	hardcode_direct_F77=unsupported
14023      fi
14024      ;;
14025
14026    aix4* | aix5*)
14027      if test "$host_cpu" = ia64; then
14028	# On IA64, the linker does run time linking by default, so we don't
14029	# have to do anything special.
14030	aix_use_runtimelinking=no
14031	exp_sym_flag='-Bexport'
14032	no_entry_flag=""
14033      else
14034	# If we're using GNU nm, then we don't want the "-C" option.
14035	# -C means demangle to AIX nm, but means don't demangle with GNU nm
14036	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14037	  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'
14038	else
14039	  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'
14040	fi
14041	aix_use_runtimelinking=no
14042
14043	# Test if we are trying to use run time linking or normal
14044	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14045	# need to do runtime linking.
14046	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14047	  for ld_flag in $LDFLAGS; do
14048  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14049  	    aix_use_runtimelinking=yes
14050  	    break
14051  	  fi
14052	  done
14053	  ;;
14054	esac
14055
14056	exp_sym_flag='-bexport'
14057	no_entry_flag='-bnoentry'
14058      fi
14059
14060      # When large executables or shared objects are built, AIX ld can
14061      # have problems creating the table of contents.  If linking a library
14062      # or program results in "error TOC overflow" add -mminimal-toc to
14063      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14064      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14065
14066      archive_cmds_F77=''
14067      hardcode_direct_F77=yes
14068      hardcode_libdir_separator_F77=':'
14069      link_all_deplibs_F77=yes
14070
14071      if test "$GCC" = yes; then
14072	case $host_os in aix4.[012]|aix4.[012].*)
14073	# We only want to do this on AIX 4.2 and lower, the check
14074	# below for broken collect2 doesn't work under 4.3+
14075	  collect2name=`${CC} -print-prog-name=collect2`
14076	  if test -f "$collect2name" && \
14077  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
14078	  then
14079  	  # We have reworked collect2
14080  	  hardcode_direct_F77=yes
14081	  else
14082  	  # We have old collect2
14083  	  hardcode_direct_F77=unsupported
14084  	  # It fails to find uninstalled libraries when the uninstalled
14085  	  # path is not listed in the libpath.  Setting hardcode_minus_L
14086  	  # to unsupported forces relinking
14087  	  hardcode_minus_L_F77=yes
14088  	  hardcode_libdir_flag_spec_F77='-L$libdir'
14089  	  hardcode_libdir_separator_F77=
14090	  fi
14091	  ;;
14092	esac
14093	shared_flag='-shared'
14094	if test "$aix_use_runtimelinking" = yes; then
14095	  shared_flag="$shared_flag "'${wl}-G'
14096	fi
14097      else
14098	# not using gcc
14099	if test "$host_cpu" = ia64; then
14100  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14101  	# chokes on -Wl,-G. The following line is correct:
14102	  shared_flag='-G'
14103	else
14104	  if test "$aix_use_runtimelinking" = yes; then
14105	    shared_flag='${wl}-G'
14106	  else
14107	    shared_flag='${wl}-bM:SRE'
14108	  fi
14109	fi
14110      fi
14111
14112      # It seems that -bexpall does not export symbols beginning with
14113      # underscore (_), so it is better to generate a list of symbols to export.
14114      always_export_symbols_F77=yes
14115      if test "$aix_use_runtimelinking" = yes; then
14116	# Warning - without using the other runtime loading flags (-brtl),
14117	# -berok will link without error, but may produce a broken library.
14118	allow_undefined_flag_F77='-berok'
14119       # Determine the default libpath from the value encoded in an empty executable.
14120       cat >conftest.$ac_ext <<_ACEOF
14121      program main
14122
14123      end
14124_ACEOF
14125rm -f conftest.$ac_objext conftest$ac_exeext
14126if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14127  (eval $ac_link) 2>conftest.er1
14128  ac_status=$?
14129  grep -v '^ *+' conftest.er1 >conftest.err
14130  rm -f conftest.er1
14131  cat conftest.err >&5
14132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14133  (exit $ac_status); } &&
14134	 { ac_try='test -z "$ac_f77_werror_flag"
14135			 || test ! -s conftest.err'
14136  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14137  (eval $ac_try) 2>&5
14138  ac_status=$?
14139  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14140  (exit $ac_status); }; } &&
14141	 { ac_try='test -s conftest$ac_exeext'
14142  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14143  (eval $ac_try) 2>&5
14144  ac_status=$?
14145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14146  (exit $ac_status); }; }; then
14147
14148aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14149}'`
14150# Check for a 64-bit object if we didn't find anything.
14151if 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; }
14152}'`; fi
14153else
14154  echo "$as_me: failed program was:" >&5
14155sed 's/^/| /' conftest.$ac_ext >&5
14156
14157fi
14158rm -f conftest.err conftest.$ac_objext \
14159      conftest$ac_exeext conftest.$ac_ext
14160if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14161
14162       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14163	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"
14164       else
14165	if test "$host_cpu" = ia64; then
14166	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14167	  allow_undefined_flag_F77="-z nodefs"
14168	  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"
14169	else
14170	 # Determine the default libpath from the value encoded in an empty executable.
14171	 cat >conftest.$ac_ext <<_ACEOF
14172      program main
14173
14174      end
14175_ACEOF
14176rm -f conftest.$ac_objext conftest$ac_exeext
14177if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14178  (eval $ac_link) 2>conftest.er1
14179  ac_status=$?
14180  grep -v '^ *+' conftest.er1 >conftest.err
14181  rm -f conftest.er1
14182  cat conftest.err >&5
14183  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14184  (exit $ac_status); } &&
14185	 { ac_try='test -z "$ac_f77_werror_flag"
14186			 || test ! -s conftest.err'
14187  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14188  (eval $ac_try) 2>&5
14189  ac_status=$?
14190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14191  (exit $ac_status); }; } &&
14192	 { ac_try='test -s conftest$ac_exeext'
14193  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14194  (eval $ac_try) 2>&5
14195  ac_status=$?
14196  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14197  (exit $ac_status); }; }; then
14198
14199aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14200}'`
14201# Check for a 64-bit object if we didn't find anything.
14202if 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; }
14203}'`; fi
14204else
14205  echo "$as_me: failed program was:" >&5
14206sed 's/^/| /' conftest.$ac_ext >&5
14207
14208fi
14209rm -f conftest.err conftest.$ac_objext \
14210      conftest$ac_exeext conftest.$ac_ext
14211if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14212
14213	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14214	  # Warning - without using the other run time loading flags,
14215	  # -berok will link without error, but may produce a broken library.
14216	  no_undefined_flag_F77=' ${wl}-bernotok'
14217	  allow_undefined_flag_F77=' ${wl}-berok'
14218	  # Exported symbols can be pulled into shared objects from archives
14219	  whole_archive_flag_spec_F77='$convenience'
14220	  archive_cmds_need_lc_F77=yes
14221	  # This is similar to how AIX traditionally builds its shared libraries.
14222	  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'
14223	fi
14224      fi
14225      ;;
14226
14227    amigaos*)
14228      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)'
14229      hardcode_libdir_flag_spec_F77='-L$libdir'
14230      hardcode_minus_L_F77=yes
14231      # see comment about different semantics on the GNU ld section
14232      ld_shlibs_F77=no
14233      ;;
14234
14235    bsdi[45]*)
14236      export_dynamic_flag_spec_F77=-rdynamic
14237      ;;
14238
14239    cygwin* | mingw* | pw32*)
14240      # When not using gcc, we currently assume that we are using
14241      # Microsoft Visual C++.
14242      # hardcode_libdir_flag_spec is actually meaningless, as there is
14243      # no search path for DLLs.
14244      hardcode_libdir_flag_spec_F77=' '
14245      allow_undefined_flag_F77=unsupported
14246      # Tell ltmain to make .lib files, not .a files.
14247      libext=lib
14248      # Tell ltmain to make .dll files, not .so files.
14249      shrext_cmds=".dll"
14250      # FIXME: Setting linknames here is a bad hack.
14251      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14252      # The linker will automatically build a .lib file if we build a DLL.
14253      old_archive_From_new_cmds_F77='true'
14254      # FIXME: Should let the user specify the lib program.
14255      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14256      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14257      enable_shared_with_static_runtimes_F77=yes
14258      ;;
14259
14260    darwin* | rhapsody*)
14261      case $host_os in
14262        rhapsody* | darwin1.[012])
14263         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14264         ;;
14265       *) # Darwin 1.3 on
14266         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14267           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14268         else
14269           case ${MACOSX_DEPLOYMENT_TARGET} in
14270             10.[012])
14271               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14272               ;;
14273             10.*)
14274               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14275               ;;
14276           esac
14277         fi
14278         ;;
14279      esac
14280      archive_cmds_need_lc_F77=no
14281      hardcode_direct_F77=no
14282      hardcode_automatic_F77=yes
14283      hardcode_shlibpath_var_F77=unsupported
14284      whole_archive_flag_spec_F77=''
14285      link_all_deplibs_F77=yes
14286    if test "$GCC" = yes ; then
14287    	output_verbose_link_cmd='echo'
14288        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14289      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14290      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14291      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}'
14292      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}'
14293    else
14294      case $cc_basename in
14295        xlc*)
14296         output_verbose_link_cmd='echo'
14297         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14298         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14299          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14300         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}'
14301          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}'
14302          ;;
14303       *)
14304         ld_shlibs_F77=no
14305          ;;
14306      esac
14307    fi
14308      ;;
14309
14310    dgux*)
14311      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14312      hardcode_libdir_flag_spec_F77='-L$libdir'
14313      hardcode_shlibpath_var_F77=no
14314      ;;
14315
14316    freebsd1*)
14317      ld_shlibs_F77=no
14318      ;;
14319
14320    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14321    # support.  Future versions do this automatically, but an explicit c++rt0.o
14322    # does not break anything, and helps significantly (at the cost of a little
14323    # extra space).
14324    freebsd2.2*)
14325      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14326      hardcode_libdir_flag_spec_F77='-R$libdir'
14327      hardcode_direct_F77=yes
14328      hardcode_shlibpath_var_F77=no
14329      ;;
14330
14331    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14332    freebsd2*)
14333      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14334      hardcode_direct_F77=yes
14335      hardcode_minus_L_F77=yes
14336      hardcode_shlibpath_var_F77=no
14337      ;;
14338
14339    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14340    freebsd* | kfreebsd*-gnu | dragonfly*)
14341      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14342      hardcode_libdir_flag_spec_F77='-R$libdir'
14343      hardcode_direct_F77=yes
14344      hardcode_shlibpath_var_F77=no
14345      ;;
14346
14347    hpux9*)
14348      if test "$GCC" = yes; then
14349	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'
14350      else
14351	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'
14352      fi
14353      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14354      hardcode_libdir_separator_F77=:
14355      hardcode_direct_F77=yes
14356
14357      # hardcode_minus_L: Not really in the search PATH,
14358      # but as the default location of the library.
14359      hardcode_minus_L_F77=yes
14360      export_dynamic_flag_spec_F77='${wl}-E'
14361      ;;
14362
14363    hpux10*)
14364      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14365	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14366      else
14367	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14368      fi
14369      if test "$with_gnu_ld" = no; then
14370	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14371	hardcode_libdir_separator_F77=:
14372
14373	hardcode_direct_F77=yes
14374	export_dynamic_flag_spec_F77='${wl}-E'
14375
14376	# hardcode_minus_L: Not really in the search PATH,
14377	# but as the default location of the library.
14378	hardcode_minus_L_F77=yes
14379      fi
14380      ;;
14381
14382    hpux11*)
14383      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14384	case $host_cpu in
14385	hppa*64*)
14386	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14387	  ;;
14388	ia64*)
14389	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14390	  ;;
14391	*)
14392	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14393	  ;;
14394	esac
14395      else
14396	case $host_cpu in
14397	hppa*64*)
14398	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14399	  ;;
14400	ia64*)
14401	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14402	  ;;
14403	*)
14404	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14405	  ;;
14406	esac
14407      fi
14408      if test "$with_gnu_ld" = no; then
14409	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14410	hardcode_libdir_separator_F77=:
14411
14412	case $host_cpu in
14413	hppa*64*|ia64*)
14414	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14415	  hardcode_direct_F77=no
14416	  hardcode_shlibpath_var_F77=no
14417	  ;;
14418	*)
14419	  hardcode_direct_F77=yes
14420	  export_dynamic_flag_spec_F77='${wl}-E'
14421
14422	  # hardcode_minus_L: Not really in the search PATH,
14423	  # but as the default location of the library.
14424	  hardcode_minus_L_F77=yes
14425	  ;;
14426	esac
14427      fi
14428      ;;
14429
14430    irix5* | irix6* | nonstopux*)
14431      if test "$GCC" = yes; then
14432	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'
14433      else
14434	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'
14435	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14436      fi
14437      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14438      hardcode_libdir_separator_F77=:
14439      link_all_deplibs_F77=yes
14440      ;;
14441
14442    netbsd*)
14443      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14444	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14445      else
14446	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14447      fi
14448      hardcode_libdir_flag_spec_F77='-R$libdir'
14449      hardcode_direct_F77=yes
14450      hardcode_shlibpath_var_F77=no
14451      ;;
14452
14453    newsos6)
14454      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14455      hardcode_direct_F77=yes
14456      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14457      hardcode_libdir_separator_F77=:
14458      hardcode_shlibpath_var_F77=no
14459      ;;
14460
14461    openbsd*)
14462      hardcode_direct_F77=yes
14463      hardcode_shlibpath_var_F77=no
14464      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14465	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14466	archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14467	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14468	export_dynamic_flag_spec_F77='${wl}-E'
14469      else
14470       case $host_os in
14471	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14472	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14473	   hardcode_libdir_flag_spec_F77='-R$libdir'
14474	   ;;
14475	 *)
14476	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14477	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14478	   ;;
14479       esac
14480      fi
14481      ;;
14482
14483    os2*)
14484      hardcode_libdir_flag_spec_F77='-L$libdir'
14485      hardcode_minus_L_F77=yes
14486      allow_undefined_flag_F77=unsupported
14487      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'
14488      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14489      ;;
14490
14491    osf3*)
14492      if test "$GCC" = yes; then
14493	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14494	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'
14495      else
14496	allow_undefined_flag_F77=' -expect_unresolved \*'
14497	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'
14498      fi
14499      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14500      hardcode_libdir_separator_F77=:
14501      ;;
14502
14503    osf4* | osf5*)	# as osf3* with the addition of -msym flag
14504      if test "$GCC" = yes; then
14505	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14506	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'
14507	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14508      else
14509	allow_undefined_flag_F77=' -expect_unresolved \*'
14510	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'
14511	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~
14512	$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'
14513
14514	# Both c and cxx compiler support -rpath directly
14515	hardcode_libdir_flag_spec_F77='-rpath $libdir'
14516      fi
14517      hardcode_libdir_separator_F77=:
14518      ;;
14519
14520    solaris*)
14521      no_undefined_flag_F77=' -z text'
14522      if test "$GCC" = yes; then
14523	wlarc='${wl}'
14524	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14525	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14526	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14527      else
14528	wlarc=''
14529	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14530	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14531  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14532      fi
14533      hardcode_libdir_flag_spec_F77='-R$libdir'
14534      hardcode_shlibpath_var_F77=no
14535      case $host_os in
14536      solaris2.[0-5] | solaris2.[0-5].*) ;;
14537      *)
14538 	# The compiler driver will combine linker options so we
14539 	# cannot just pass the convience library names through
14540 	# without $wl, iff we do not link with $LD.
14541 	# Luckily, gcc supports the same syntax we need for Sun Studio.
14542 	# Supported since Solaris 2.6 (maybe 2.5.1?)
14543 	case $wlarc in
14544 	'')
14545 	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14546 	*)
14547 	  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' ;;
14548 	esac ;;
14549      esac
14550      link_all_deplibs_F77=yes
14551      ;;
14552
14553    sunos4*)
14554      if test "x$host_vendor" = xsequent; then
14555	# Use $CC to link under sequent, because it throws in some extra .o
14556	# files that make .init and .fini sections work.
14557	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14558      else
14559	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14560      fi
14561      hardcode_libdir_flag_spec_F77='-L$libdir'
14562      hardcode_direct_F77=yes
14563      hardcode_minus_L_F77=yes
14564      hardcode_shlibpath_var_F77=no
14565      ;;
14566
14567    sysv4)
14568      case $host_vendor in
14569	sni)
14570	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14571	  hardcode_direct_F77=yes # is this really true???
14572	;;
14573	siemens)
14574	  ## LD is ld it makes a PLAMLIB
14575	  ## CC just makes a GrossModule.
14576	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14577	  reload_cmds_F77='$CC -r -o $output$reload_objs'
14578	  hardcode_direct_F77=no
14579        ;;
14580	motorola)
14581	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14582	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14583	;;
14584      esac
14585      runpath_var='LD_RUN_PATH'
14586      hardcode_shlibpath_var_F77=no
14587      ;;
14588
14589    sysv4.3*)
14590      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14591      hardcode_shlibpath_var_F77=no
14592      export_dynamic_flag_spec_F77='-Bexport'
14593      ;;
14594
14595    sysv4*MP*)
14596      if test -d /usr/nec; then
14597	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14598	hardcode_shlibpath_var_F77=no
14599	runpath_var=LD_RUN_PATH
14600	hardcode_runpath_var=yes
14601	ld_shlibs_F77=yes
14602      fi
14603      ;;
14604
14605    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14606      no_undefined_flag_F77='${wl}-z,text'
14607      archive_cmds_need_lc_F77=no
14608      hardcode_shlibpath_var_F77=no
14609      runpath_var='LD_RUN_PATH'
14610
14611      if test "$GCC" = yes; then
14612	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14613	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14614      else
14615	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14616	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14617      fi
14618      ;;
14619
14620    sysv5* | sco3.2v5* | sco5v6*)
14621      # Note: We can NOT use -z defs as we might desire, because we do not
14622      # link with -lc, and that would cause any symbols used from libc to
14623      # always be unresolved, which means just about no library would
14624      # ever link correctly.  If we're not using GNU ld we use -z text
14625      # though, which does catch some bad symbols but isn't as heavy-handed
14626      # as -z defs.
14627      no_undefined_flag_F77='${wl}-z,text'
14628      allow_undefined_flag_F77='${wl}-z,nodefs'
14629      archive_cmds_need_lc_F77=no
14630      hardcode_shlibpath_var_F77=no
14631      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14632      hardcode_libdir_separator_F77=':'
14633      link_all_deplibs_F77=yes
14634      export_dynamic_flag_spec_F77='${wl}-Bexport'
14635      runpath_var='LD_RUN_PATH'
14636
14637      if test "$GCC" = yes; then
14638	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14639	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14640      else
14641	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14642	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14643      fi
14644      ;;
14645
14646    uts4*)
14647      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14648      hardcode_libdir_flag_spec_F77='-L$libdir'
14649      hardcode_shlibpath_var_F77=no
14650      ;;
14651
14652    *)
14653      ld_shlibs_F77=no
14654      ;;
14655    esac
14656  fi
14657
14658echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14659echo "${ECHO_T}$ld_shlibs_F77" >&6
14660test "$ld_shlibs_F77" = no && can_build_shared=no
14661
14662#
14663# Do we need to explicitly link libc?
14664#
14665case "x$archive_cmds_need_lc_F77" in
14666x|xyes)
14667  # Assume -lc should be added
14668  archive_cmds_need_lc_F77=yes
14669
14670  if test "$enable_shared" = yes && test "$GCC" = yes; then
14671    case $archive_cmds_F77 in
14672    *'~'*)
14673      # FIXME: we may have to deal with multi-command sequences.
14674      ;;
14675    '$CC '*)
14676      # Test whether the compiler implicitly links with -lc since on some
14677      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14678      # to ld, don't add -lc before -lgcc.
14679      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14680echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14681      $rm conftest*
14682      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14683
14684      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14685  (eval $ac_compile) 2>&5
14686  ac_status=$?
14687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14688  (exit $ac_status); } 2>conftest.err; then
14689        soname=conftest
14690        lib=conftest
14691        libobjs=conftest.$ac_objext
14692        deplibs=
14693        wl=$lt_prog_compiler_wl_F77
14694	pic_flag=$lt_prog_compiler_pic_F77
14695        compiler_flags=-v
14696        linker_flags=-v
14697        verstring=
14698        output_objdir=.
14699        libname=conftest
14700        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14701        allow_undefined_flag_F77=
14702        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14703  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14704  ac_status=$?
14705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14706  (exit $ac_status); }
14707        then
14708	  archive_cmds_need_lc_F77=no
14709        else
14710	  archive_cmds_need_lc_F77=yes
14711        fi
14712        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14713      else
14714        cat conftest.err 1>&5
14715      fi
14716      $rm conftest*
14717      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14718echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14719      ;;
14720    esac
14721  fi
14722  ;;
14723esac
14724
14725echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14726echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14727library_names_spec=
14728libname_spec='lib$name'
14729soname_spec=
14730shrext_cmds=".so"
14731postinstall_cmds=
14732postuninstall_cmds=
14733finish_cmds=
14734finish_eval=
14735shlibpath_var=
14736shlibpath_overrides_runpath=unknown
14737version_type=none
14738dynamic_linker="$host_os ld.so"
14739sys_lib_dlsearch_path_spec="/lib /usr/lib"
14740if test "$GCC" = yes; then
14741  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14742  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14743    # if the path contains ";" then we assume it to be the separator
14744    # otherwise default to the standard path separator (i.e. ":") - it is
14745    # assumed that no part of a normal pathname contains ";" but that should
14746    # okay in the real world where ";" in dirpaths is itself problematic.
14747    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14748  else
14749    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14750  fi
14751else
14752  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14753fi
14754need_lib_prefix=unknown
14755hardcode_into_libs=no
14756
14757# when you set need_version to no, make sure it does not cause -set_version
14758# flags to be left without arguments
14759need_version=unknown
14760
14761case $host_os in
14762aix3*)
14763  version_type=linux
14764  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14765  shlibpath_var=LIBPATH
14766
14767  # AIX 3 has no versioning support, so we append a major version to the name.
14768  soname_spec='${libname}${release}${shared_ext}$major'
14769  ;;
14770
14771aix4* | aix5*)
14772  version_type=linux
14773  need_lib_prefix=no
14774  need_version=no
14775  hardcode_into_libs=yes
14776  if test "$host_cpu" = ia64; then
14777    # AIX 5 supports IA64
14778    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14779    shlibpath_var=LD_LIBRARY_PATH
14780  else
14781    # With GCC up to 2.95.x, collect2 would create an import file
14782    # for dependence libraries.  The import file would start with
14783    # the line `#! .'.  This would cause the generated library to
14784    # depend on `.', always an invalid library.  This was fixed in
14785    # development snapshots of GCC prior to 3.0.
14786    case $host_os in
14787      aix4 | aix4.[01] | aix4.[01].*)
14788      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14789	   echo ' yes '
14790	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14791	:
14792      else
14793	can_build_shared=no
14794      fi
14795      ;;
14796    esac
14797    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14798    # soname into executable. Probably we can add versioning support to
14799    # collect2, so additional links can be useful in future.
14800    if test "$aix_use_runtimelinking" = yes; then
14801      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14802      # instead of lib<name>.a to let people know that these are not
14803      # typical AIX shared libraries.
14804      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14805    else
14806      # We preserve .a as extension for shared libraries through AIX4.2
14807      # and later when we are not doing run time linking.
14808      library_names_spec='${libname}${release}.a $libname.a'
14809      soname_spec='${libname}${release}${shared_ext}$major'
14810    fi
14811    shlibpath_var=LIBPATH
14812  fi
14813  ;;
14814
14815amigaos*)
14816  library_names_spec='$libname.ixlibrary $libname.a'
14817  # Create ${libname}_ixlibrary.a entries in /sys/libs.
14818  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'
14819  ;;
14820
14821beos*)
14822  library_names_spec='${libname}${shared_ext}'
14823  dynamic_linker="$host_os ld.so"
14824  shlibpath_var=LIBRARY_PATH
14825  ;;
14826
14827bsdi[45]*)
14828  version_type=linux
14829  need_version=no
14830  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14831  soname_spec='${libname}${release}${shared_ext}$major'
14832  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14833  shlibpath_var=LD_LIBRARY_PATH
14834  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14835  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14836  # the default ld.so.conf also contains /usr/contrib/lib and
14837  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14838  # libtool to hard-code these into programs
14839  ;;
14840
14841cygwin* | mingw* | pw32*)
14842  version_type=windows
14843  shrext_cmds=".dll"
14844  need_version=no
14845  need_lib_prefix=no
14846
14847  case $GCC,$host_os in
14848  yes,cygwin* | yes,mingw* | yes,pw32*)
14849    library_names_spec='$libname.dll.a'
14850    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14851    postinstall_cmds='base_file=`basename \${file}`~
14852      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14853      dldir=$destdir/`dirname \$dlpath`~
14854      test -d \$dldir || mkdir -p \$dldir~
14855      $install_prog $dir/$dlname \$dldir/$dlname~
14856      chmod a+x \$dldir/$dlname'
14857    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14858      dlpath=$dir/\$dldll~
14859       $rm \$dlpath'
14860    shlibpath_overrides_runpath=yes
14861
14862    case $host_os in
14863    cygwin*)
14864      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14865      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14866      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14867      ;;
14868    mingw*)
14869      # MinGW DLLs use traditional 'lib' prefix
14870      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14871      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14872      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14873        # It is most probably a Windows format PATH printed by
14874        # mingw gcc, but we are running on Cygwin. Gcc prints its search
14875        # path with ; separators, and with drive letters. We can handle the
14876        # drive letters (cygwin fileutils understands them), so leave them,
14877        # especially as we might pass files found there to a mingw objdump,
14878        # which wouldn't understand a cygwinified path. Ahh.
14879        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14880      else
14881        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14882      fi
14883      ;;
14884    pw32*)
14885      # pw32 DLLs use 'pw' prefix rather than 'lib'
14886      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14887      ;;
14888    esac
14889    ;;
14890
14891  *)
14892    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14893    ;;
14894  esac
14895  dynamic_linker='Win32 ld.exe'
14896  # FIXME: first we should search . and the directory the executable is in
14897  shlibpath_var=PATH
14898  ;;
14899
14900darwin* | rhapsody*)
14901  dynamic_linker="$host_os dyld"
14902  version_type=darwin
14903  need_lib_prefix=no
14904  need_version=no
14905  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14906  soname_spec='${libname}${release}${major}$shared_ext'
14907  shlibpath_overrides_runpath=yes
14908  shlibpath_var=DYLD_LIBRARY_PATH
14909  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14910  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14911  if test "$GCC" = yes; then
14912    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"`
14913  else
14914    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14915  fi
14916  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14917  ;;
14918
14919dgux*)
14920  version_type=linux
14921  need_lib_prefix=no
14922  need_version=no
14923  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14924  soname_spec='${libname}${release}${shared_ext}$major'
14925  shlibpath_var=LD_LIBRARY_PATH
14926  ;;
14927
14928freebsd1*)
14929  dynamic_linker=no
14930  ;;
14931
14932kfreebsd*-gnu)
14933  version_type=linux
14934  need_lib_prefix=no
14935  need_version=no
14936  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14937  soname_spec='${libname}${release}${shared_ext}$major'
14938  shlibpath_var=LD_LIBRARY_PATH
14939  shlibpath_overrides_runpath=no
14940  hardcode_into_libs=yes
14941  dynamic_linker='GNU ld.so'
14942  ;;
14943
14944freebsd* | dragonfly*)
14945  # DragonFly does not have aout.  When/if they implement a new
14946  # versioning mechanism, adjust this.
14947  if test -x /usr/bin/objformat; then
14948    objformat=`/usr/bin/objformat`
14949  else
14950    case $host_os in
14951    freebsd[123]*) objformat=aout ;;
14952    *) objformat=elf ;;
14953    esac
14954  fi
14955  version_type=freebsd-$objformat
14956  case $version_type in
14957    freebsd-elf*)
14958      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14959      need_version=no
14960      need_lib_prefix=no
14961      ;;
14962    freebsd-*)
14963      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14964      need_version=yes
14965      ;;
14966  esac
14967  shlibpath_var=LD_LIBRARY_PATH
14968  case $host_os in
14969  freebsd2*)
14970    shlibpath_overrides_runpath=yes
14971    ;;
14972  freebsd3.[01]* | freebsdelf3.[01]*)
14973    shlibpath_overrides_runpath=yes
14974    hardcode_into_libs=yes
14975    ;;
14976  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14977  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14978    shlibpath_overrides_runpath=no
14979    hardcode_into_libs=yes
14980    ;;
14981  freebsd*) # from 4.6 on
14982    shlibpath_overrides_runpath=yes
14983    hardcode_into_libs=yes
14984    ;;
14985  esac
14986  ;;
14987
14988gnu*)
14989  version_type=linux
14990  need_lib_prefix=no
14991  need_version=no
14992  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14993  soname_spec='${libname}${release}${shared_ext}$major'
14994  shlibpath_var=LD_LIBRARY_PATH
14995  hardcode_into_libs=yes
14996  ;;
14997
14998hpux9* | hpux10* | hpux11*)
14999  # Give a soname corresponding to the major version so that dld.sl refuses to
15000  # link against other versions.
15001  version_type=sunos
15002  need_lib_prefix=no
15003  need_version=no
15004  case $host_cpu in
15005  ia64*)
15006    shrext_cmds='.so'
15007    hardcode_into_libs=yes
15008    dynamic_linker="$host_os dld.so"
15009    shlibpath_var=LD_LIBRARY_PATH
15010    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15011    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15012    soname_spec='${libname}${release}${shared_ext}$major'
15013    if test "X$HPUX_IA64_MODE" = X32; then
15014      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15015    else
15016      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15017    fi
15018    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15019    ;;
15020   hppa*64*)
15021     shrext_cmds='.sl'
15022     hardcode_into_libs=yes
15023     dynamic_linker="$host_os dld.sl"
15024     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15025     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15026     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15027     soname_spec='${libname}${release}${shared_ext}$major'
15028     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15029     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15030     ;;
15031   *)
15032    shrext_cmds='.sl'
15033    dynamic_linker="$host_os dld.sl"
15034    shlibpath_var=SHLIB_PATH
15035    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15036    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15037    soname_spec='${libname}${release}${shared_ext}$major'
15038    ;;
15039  esac
15040  # HP-UX runs *really* slowly unless shared libraries are mode 555.
15041  postinstall_cmds='chmod 555 $lib'
15042  ;;
15043
15044interix3*)
15045  version_type=linux
15046  need_lib_prefix=no
15047  need_version=no
15048  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15049  soname_spec='${libname}${release}${shared_ext}$major'
15050  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15051  shlibpath_var=LD_LIBRARY_PATH
15052  shlibpath_overrides_runpath=no
15053  hardcode_into_libs=yes
15054  ;;
15055
15056irix5* | irix6* | nonstopux*)
15057  case $host_os in
15058    nonstopux*) version_type=nonstopux ;;
15059    *)
15060	if test "$lt_cv_prog_gnu_ld" = yes; then
15061		version_type=linux
15062	else
15063		version_type=irix
15064	fi ;;
15065  esac
15066  need_lib_prefix=no
15067  need_version=no
15068  soname_spec='${libname}${release}${shared_ext}$major'
15069  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15070  case $host_os in
15071  irix5* | nonstopux*)
15072    libsuff= shlibsuff=
15073    ;;
15074  *)
15075    case $LD in # libtool.m4 will add one of these switches to LD
15076    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15077      libsuff= shlibsuff= libmagic=32-bit;;
15078    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15079      libsuff=32 shlibsuff=N32 libmagic=N32;;
15080    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15081      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15082    *) libsuff= shlibsuff= libmagic=never-match;;
15083    esac
15084    ;;
15085  esac
15086  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15087  shlibpath_overrides_runpath=no
15088  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15089  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15090  hardcode_into_libs=yes
15091  ;;
15092
15093# No shared lib support for Linux oldld, aout, or coff.
15094linux*oldld* | linux*aout* | linux*coff*)
15095  dynamic_linker=no
15096  ;;
15097
15098# This must be Linux ELF.
15099linux*)
15100  version_type=linux
15101  need_lib_prefix=no
15102  need_version=no
15103  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15104  soname_spec='${libname}${release}${shared_ext}$major'
15105  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15106  shlibpath_var=LD_LIBRARY_PATH
15107  shlibpath_overrides_runpath=no
15108  # This implies no fast_install, which is unacceptable.
15109  # Some rework will be needed to allow for fast_install
15110  # before this can be enabled.
15111  hardcode_into_libs=yes
15112
15113  # Append ld.so.conf contents to the search path
15114  if test -f /etc/ld.so.conf; then
15115    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' ' '`
15116    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15117  fi
15118
15119  # We used to test for /lib/ld.so.1 and disable shared libraries on
15120  # powerpc, because MkLinux only supported shared libraries with the
15121  # GNU dynamic linker.  Since this was broken with cross compilers,
15122  # most powerpc-linux boxes support dynamic linking these days and
15123  # people can always --disable-shared, the test was removed, and we
15124  # assume the GNU/Linux dynamic linker is in use.
15125  dynamic_linker='GNU/Linux ld.so'
15126  ;;
15127
15128knetbsd*-gnu)
15129  version_type=linux
15130  need_lib_prefix=no
15131  need_version=no
15132  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15133  soname_spec='${libname}${release}${shared_ext}$major'
15134  shlibpath_var=LD_LIBRARY_PATH
15135  shlibpath_overrides_runpath=no
15136  hardcode_into_libs=yes
15137  dynamic_linker='GNU ld.so'
15138  ;;
15139
15140netbsd*)
15141  version_type=sunos
15142  need_lib_prefix=no
15143  need_version=no
15144  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15145    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15146    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15147    dynamic_linker='NetBSD (a.out) ld.so'
15148  else
15149    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15150    soname_spec='${libname}${release}${shared_ext}$major'
15151    dynamic_linker='NetBSD ld.elf_so'
15152  fi
15153  shlibpath_var=LD_LIBRARY_PATH
15154  shlibpath_overrides_runpath=yes
15155  hardcode_into_libs=yes
15156  ;;
15157
15158newsos6)
15159  version_type=linux
15160  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15161  shlibpath_var=LD_LIBRARY_PATH
15162  shlibpath_overrides_runpath=yes
15163  ;;
15164
15165nto-qnx*)
15166  version_type=linux
15167  need_lib_prefix=no
15168  need_version=no
15169  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15170  soname_spec='${libname}${release}${shared_ext}$major'
15171  shlibpath_var=LD_LIBRARY_PATH
15172  shlibpath_overrides_runpath=yes
15173  ;;
15174
15175openbsd*)
15176  version_type=sunos
15177  sys_lib_dlsearch_path_spec="/usr/lib"
15178  need_lib_prefix=no
15179  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15180  case $host_os in
15181    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15182    *)                         need_version=no  ;;
15183  esac
15184  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15185  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15186  shlibpath_var=LD_LIBRARY_PATH
15187  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15188    case $host_os in
15189      openbsd2.[89] | openbsd2.[89].*)
15190	shlibpath_overrides_runpath=no
15191	;;
15192      *)
15193	shlibpath_overrides_runpath=yes
15194	;;
15195      esac
15196  else
15197    shlibpath_overrides_runpath=yes
15198  fi
15199  ;;
15200
15201os2*)
15202  libname_spec='$name'
15203  shrext_cmds=".dll"
15204  need_lib_prefix=no
15205  library_names_spec='$libname${shared_ext} $libname.a'
15206  dynamic_linker='OS/2 ld.exe'
15207  shlibpath_var=LIBPATH
15208  ;;
15209
15210osf3* | osf4* | osf5*)
15211  version_type=osf
15212  need_lib_prefix=no
15213  need_version=no
15214  soname_spec='${libname}${release}${shared_ext}$major'
15215  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15216  shlibpath_var=LD_LIBRARY_PATH
15217  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15218  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15219  ;;
15220
15221solaris*)
15222  version_type=linux
15223  need_lib_prefix=no
15224  need_version=no
15225  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15226  soname_spec='${libname}${release}${shared_ext}$major'
15227  shlibpath_var=LD_LIBRARY_PATH
15228  shlibpath_overrides_runpath=yes
15229  hardcode_into_libs=yes
15230  # ldd complains unless libraries are executable
15231  postinstall_cmds='chmod +x $lib'
15232  ;;
15233
15234sunos4*)
15235  version_type=sunos
15236  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15237  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15238  shlibpath_var=LD_LIBRARY_PATH
15239  shlibpath_overrides_runpath=yes
15240  if test "$with_gnu_ld" = yes; then
15241    need_lib_prefix=no
15242  fi
15243  need_version=yes
15244  ;;
15245
15246sysv4 | sysv4.3*)
15247  version_type=linux
15248  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15249  soname_spec='${libname}${release}${shared_ext}$major'
15250  shlibpath_var=LD_LIBRARY_PATH
15251  case $host_vendor in
15252    sni)
15253      shlibpath_overrides_runpath=no
15254      need_lib_prefix=no
15255      export_dynamic_flag_spec='${wl}-Blargedynsym'
15256      runpath_var=LD_RUN_PATH
15257      ;;
15258    siemens)
15259      need_lib_prefix=no
15260      ;;
15261    motorola)
15262      need_lib_prefix=no
15263      need_version=no
15264      shlibpath_overrides_runpath=no
15265      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15266      ;;
15267  esac
15268  ;;
15269
15270sysv4*MP*)
15271  if test -d /usr/nec ;then
15272    version_type=linux
15273    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15274    soname_spec='$libname${shared_ext}.$major'
15275    shlibpath_var=LD_LIBRARY_PATH
15276  fi
15277  ;;
15278
15279sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15280  version_type=freebsd-elf
15281  need_lib_prefix=no
15282  need_version=no
15283  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15284  soname_spec='${libname}${release}${shared_ext}$major'
15285  shlibpath_var=LD_LIBRARY_PATH
15286  hardcode_into_libs=yes
15287  if test "$with_gnu_ld" = yes; then
15288    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15289    shlibpath_overrides_runpath=no
15290  else
15291    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15292    shlibpath_overrides_runpath=yes
15293    case $host_os in
15294      sco3.2v5*)
15295        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15296	;;
15297    esac
15298  fi
15299  sys_lib_dlsearch_path_spec='/usr/lib'
15300  ;;
15301
15302uts4*)
15303  version_type=linux
15304  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15305  soname_spec='${libname}${release}${shared_ext}$major'
15306  shlibpath_var=LD_LIBRARY_PATH
15307  ;;
15308
15309*)
15310  dynamic_linker=no
15311  ;;
15312esac
15313echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15314echo "${ECHO_T}$dynamic_linker" >&6
15315test "$dynamic_linker" = no && can_build_shared=no
15316
15317variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15318if test "$GCC" = yes; then
15319  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15320fi
15321
15322echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15323echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15324hardcode_action_F77=
15325if test -n "$hardcode_libdir_flag_spec_F77" || \
15326   test -n "$runpath_var_F77" || \
15327   test "X$hardcode_automatic_F77" = "Xyes" ; then
15328
15329  # We can hardcode non-existant directories.
15330  if test "$hardcode_direct_F77" != no &&
15331     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15332     # have to relink, otherwise we might link with an installed library
15333     # when we should be linking with a yet-to-be-installed one
15334     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15335     test "$hardcode_minus_L_F77" != no; then
15336    # Linking always hardcodes the temporary library directory.
15337    hardcode_action_F77=relink
15338  else
15339    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15340    hardcode_action_F77=immediate
15341  fi
15342else
15343  # We cannot hardcode anything, or else we can only hardcode existing
15344  # directories.
15345  hardcode_action_F77=unsupported
15346fi
15347echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15348echo "${ECHO_T}$hardcode_action_F77" >&6
15349
15350if test "$hardcode_action_F77" = relink; then
15351  # Fast installation is not supported
15352  enable_fast_install=no
15353elif test "$shlibpath_overrides_runpath" = yes ||
15354     test "$enable_shared" = no; then
15355  # Fast installation is not necessary
15356  enable_fast_install=needless
15357fi
15358
15359
15360# The else clause should only fire when bootstrapping the
15361# libtool distribution, otherwise you forgot to ship ltmain.sh
15362# with your package, and you will get complaints that there are
15363# no rules to generate ltmain.sh.
15364if test -f "$ltmain"; then
15365  # See if we are running on zsh, and set the options which allow our commands through
15366  # without removal of \ escapes.
15367  if test -n "${ZSH_VERSION+set}" ; then
15368    setopt NO_GLOB_SUBST
15369  fi
15370  # Now quote all the things that may contain metacharacters while being
15371  # careful not to overquote the AC_SUBSTed values.  We take copies of the
15372  # variables and quote the copies for generation of the libtool script.
15373  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15374    SED SHELL STRIP \
15375    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15376    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15377    deplibs_check_method reload_flag reload_cmds need_locks \
15378    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15379    lt_cv_sys_global_symbol_to_c_name_address \
15380    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15381    old_postinstall_cmds old_postuninstall_cmds \
15382    compiler_F77 \
15383    CC_F77 \
15384    LD_F77 \
15385    lt_prog_compiler_wl_F77 \
15386    lt_prog_compiler_pic_F77 \
15387    lt_prog_compiler_static_F77 \
15388    lt_prog_compiler_no_builtin_flag_F77 \
15389    export_dynamic_flag_spec_F77 \
15390    thread_safe_flag_spec_F77 \
15391    whole_archive_flag_spec_F77 \
15392    enable_shared_with_static_runtimes_F77 \
15393    old_archive_cmds_F77 \
15394    old_archive_from_new_cmds_F77 \
15395    predep_objects_F77 \
15396    postdep_objects_F77 \
15397    predeps_F77 \
15398    postdeps_F77 \
15399    compiler_lib_search_path_F77 \
15400    archive_cmds_F77 \
15401    archive_expsym_cmds_F77 \
15402    postinstall_cmds_F77 \
15403    postuninstall_cmds_F77 \
15404    old_archive_from_expsyms_cmds_F77 \
15405    allow_undefined_flag_F77 \
15406    no_undefined_flag_F77 \
15407    export_symbols_cmds_F77 \
15408    hardcode_libdir_flag_spec_F77 \
15409    hardcode_libdir_flag_spec_ld_F77 \
15410    hardcode_libdir_separator_F77 \
15411    hardcode_automatic_F77 \
15412    module_cmds_F77 \
15413    module_expsym_cmds_F77 \
15414    lt_cv_prog_compiler_c_o_F77 \
15415    exclude_expsyms_F77 \
15416    include_expsyms_F77; do
15417
15418    case $var in
15419    old_archive_cmds_F77 | \
15420    old_archive_from_new_cmds_F77 | \
15421    archive_cmds_F77 | \
15422    archive_expsym_cmds_F77 | \
15423    module_cmds_F77 | \
15424    module_expsym_cmds_F77 | \
15425    old_archive_from_expsyms_cmds_F77 | \
15426    export_symbols_cmds_F77 | \
15427    extract_expsyms_cmds | reload_cmds | finish_cmds | \
15428    postinstall_cmds | postuninstall_cmds | \
15429    old_postinstall_cmds | old_postuninstall_cmds | \
15430    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15431      # Double-quote double-evaled strings.
15432      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15433      ;;
15434    *)
15435      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15436      ;;
15437    esac
15438  done
15439
15440  case $lt_echo in
15441  *'\$0 --fallback-echo"')
15442    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15443    ;;
15444  esac
15445
15446cfgfile="$ofile"
15447
15448  cat <<__EOF__ >> "$cfgfile"
15449# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15450
15451# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15452
15453# Shell to use when invoking shell scripts.
15454SHELL=$lt_SHELL
15455
15456# Whether or not to build shared libraries.
15457build_libtool_libs=$enable_shared
15458
15459# Whether or not to build static libraries.
15460build_old_libs=$enable_static
15461
15462# Whether or not to add -lc for building shared libraries.
15463build_libtool_need_lc=$archive_cmds_need_lc_F77
15464
15465# Whether or not to disallow shared libs when runtime libs are static
15466allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15467
15468# Whether or not to optimize for fast installation.
15469fast_install=$enable_fast_install
15470
15471# The host system.
15472host_alias=$host_alias
15473host=$host
15474host_os=$host_os
15475
15476# The build system.
15477build_alias=$build_alias
15478build=$build
15479build_os=$build_os
15480
15481# An echo program that does not interpret backslashes.
15482echo=$lt_echo
15483
15484# The archiver.
15485AR=$lt_AR
15486AR_FLAGS=$lt_AR_FLAGS
15487
15488# A C compiler.
15489LTCC=$lt_LTCC
15490
15491# LTCC compiler flags.
15492LTCFLAGS=$lt_LTCFLAGS
15493
15494# A language-specific compiler.
15495CC=$lt_compiler_F77
15496
15497# Is the compiler the GNU C compiler?
15498with_gcc=$GCC_F77
15499
15500# An ERE matcher.
15501EGREP=$lt_EGREP
15502
15503# The linker used to build libraries.
15504LD=$lt_LD_F77
15505
15506# Whether we need hard or soft links.
15507LN_S=$lt_LN_S
15508
15509# A BSD-compatible nm program.
15510NM=$lt_NM
15511
15512# A symbol stripping program
15513STRIP=$lt_STRIP
15514
15515# Used to examine libraries when file_magic_cmd begins "file"
15516MAGIC_CMD=$MAGIC_CMD
15517
15518# Used on cygwin: DLL creation program.
15519DLLTOOL="$DLLTOOL"
15520
15521# Used on cygwin: object dumper.
15522OBJDUMP="$OBJDUMP"
15523
15524# Used on cygwin: assembler.
15525AS="$AS"
15526
15527# The name of the directory that contains temporary libtool files.
15528objdir=$objdir
15529
15530# How to create reloadable object files.
15531reload_flag=$lt_reload_flag
15532reload_cmds=$lt_reload_cmds
15533
15534# How to pass a linker flag through the compiler.
15535wl=$lt_lt_prog_compiler_wl_F77
15536
15537# Object file suffix (normally "o").
15538objext="$ac_objext"
15539
15540# Old archive suffix (normally "a").
15541libext="$libext"
15542
15543# Shared library suffix (normally ".so").
15544shrext_cmds='$shrext_cmds'
15545
15546# Executable file suffix (normally "").
15547exeext="$exeext"
15548
15549# Additional compiler flags for building library objects.
15550pic_flag=$lt_lt_prog_compiler_pic_F77
15551pic_mode=$pic_mode
15552
15553# What is the maximum length of a command?
15554max_cmd_len=$lt_cv_sys_max_cmd_len
15555
15556# Does compiler simultaneously support -c and -o options?
15557compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15558
15559# Must we lock files when doing compilation?
15560need_locks=$lt_need_locks
15561
15562# Do we need the lib prefix for modules?
15563need_lib_prefix=$need_lib_prefix
15564
15565# Do we need a version for libraries?
15566need_version=$need_version
15567
15568# Whether dlopen is supported.
15569dlopen_support=$enable_dlopen
15570
15571# Whether dlopen of programs is supported.
15572dlopen_self=$enable_dlopen_self
15573
15574# Whether dlopen of statically linked programs is supported.
15575dlopen_self_static=$enable_dlopen_self_static
15576
15577# Compiler flag to prevent dynamic linking.
15578link_static_flag=$lt_lt_prog_compiler_static_F77
15579
15580# Compiler flag to turn off builtin functions.
15581no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15582
15583# Compiler flag to allow reflexive dlopens.
15584export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15585
15586# Compiler flag to generate shared objects directly from archives.
15587whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15588
15589# Compiler flag to generate thread-safe objects.
15590thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15591
15592# Library versioning type.
15593version_type=$version_type
15594
15595# Format of library name prefix.
15596libname_spec=$lt_libname_spec
15597
15598# List of archive names.  First name is the real one, the rest are links.
15599# The last name is the one that the linker finds with -lNAME.
15600library_names_spec=$lt_library_names_spec
15601
15602# The coded name of the library, if different from the real name.
15603soname_spec=$lt_soname_spec
15604
15605# Commands used to build and install an old-style archive.
15606RANLIB=$lt_RANLIB
15607old_archive_cmds=$lt_old_archive_cmds_F77
15608old_postinstall_cmds=$lt_old_postinstall_cmds
15609old_postuninstall_cmds=$lt_old_postuninstall_cmds
15610
15611# Create an old-style archive from a shared archive.
15612old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15613
15614# Create a temporary old-style archive to link instead of a shared archive.
15615old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15616
15617# Commands used to build and install a shared archive.
15618archive_cmds=$lt_archive_cmds_F77
15619archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15620postinstall_cmds=$lt_postinstall_cmds
15621postuninstall_cmds=$lt_postuninstall_cmds
15622
15623# Commands used to build a loadable module (assumed same as above if empty)
15624module_cmds=$lt_module_cmds_F77
15625module_expsym_cmds=$lt_module_expsym_cmds_F77
15626
15627# Commands to strip libraries.
15628old_striplib=$lt_old_striplib
15629striplib=$lt_striplib
15630
15631# Dependencies to place before the objects being linked to create a
15632# shared library.
15633predep_objects=$lt_predep_objects_F77
15634
15635# Dependencies to place after the objects being linked to create a
15636# shared library.
15637postdep_objects=$lt_postdep_objects_F77
15638
15639# Dependencies to place before the objects being linked to create a
15640# shared library.
15641predeps=$lt_predeps_F77
15642
15643# Dependencies to place after the objects being linked to create a
15644# shared library.
15645postdeps=$lt_postdeps_F77
15646
15647# The library search path used internally by the compiler when linking
15648# a shared library.
15649compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15650
15651# Method to check whether dependent libraries are shared objects.
15652deplibs_check_method=$lt_deplibs_check_method
15653
15654# Command to use when deplibs_check_method == file_magic.
15655file_magic_cmd=$lt_file_magic_cmd
15656
15657# Flag that allows shared libraries with undefined symbols to be built.
15658allow_undefined_flag=$lt_allow_undefined_flag_F77
15659
15660# Flag that forces no undefined symbols.
15661no_undefined_flag=$lt_no_undefined_flag_F77
15662
15663# Commands used to finish a libtool library installation in a directory.
15664finish_cmds=$lt_finish_cmds
15665
15666# Same as above, but a single script fragment to be evaled but not shown.
15667finish_eval=$lt_finish_eval
15668
15669# Take the output of nm and produce a listing of raw symbols and C names.
15670global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15671
15672# Transform the output of nm in a proper C declaration
15673global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15674
15675# Transform the output of nm in a C name address pair
15676global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15677
15678# This is the shared library runtime path variable.
15679runpath_var=$runpath_var
15680
15681# This is the shared library path variable.
15682shlibpath_var=$shlibpath_var
15683
15684# Is shlibpath searched before the hard-coded library search path?
15685shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15686
15687# How to hardcode a shared library path into an executable.
15688hardcode_action=$hardcode_action_F77
15689
15690# Whether we should hardcode library paths into libraries.
15691hardcode_into_libs=$hardcode_into_libs
15692
15693# Flag to hardcode \$libdir into a binary during linking.
15694# This must work even if \$libdir does not exist.
15695hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15696
15697# If ld is used when linking, flag to hardcode \$libdir into
15698# a binary during linking. This must work even if \$libdir does
15699# not exist.
15700hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15701
15702# Whether we need a single -rpath flag with a separated argument.
15703hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15704
15705# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15706# resulting binary.
15707hardcode_direct=$hardcode_direct_F77
15708
15709# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15710# resulting binary.
15711hardcode_minus_L=$hardcode_minus_L_F77
15712
15713# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15714# the resulting binary.
15715hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15716
15717# Set to yes if building a shared library automatically hardcodes DIR into the library
15718# and all subsequent libraries and executables linked against it.
15719hardcode_automatic=$hardcode_automatic_F77
15720
15721# Variables whose values should be saved in libtool wrapper scripts and
15722# restored at relink time.
15723variables_saved_for_relink="$variables_saved_for_relink"
15724
15725# Whether libtool must link a program against all its dependency libraries.
15726link_all_deplibs=$link_all_deplibs_F77
15727
15728# Compile-time system search path for libraries
15729sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15730
15731# Run-time system search path for libraries
15732sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15733
15734# Fix the shell variable \$srcfile for the compiler.
15735fix_srcfile_path="$fix_srcfile_path_F77"
15736
15737# Set to yes if exported symbols are required.
15738always_export_symbols=$always_export_symbols_F77
15739
15740# The commands to list exported symbols.
15741export_symbols_cmds=$lt_export_symbols_cmds_F77
15742
15743# The commands to extract the exported symbol list from a shared archive.
15744extract_expsyms_cmds=$lt_extract_expsyms_cmds
15745
15746# Symbols that should not be listed in the preloaded symbols.
15747exclude_expsyms=$lt_exclude_expsyms_F77
15748
15749# Symbols that must always be exported.
15750include_expsyms=$lt_include_expsyms_F77
15751
15752# ### END LIBTOOL TAG CONFIG: $tagname
15753
15754__EOF__
15755
15756
15757else
15758  # If there is no Makefile yet, we rely on a make rule to execute
15759  # `config.status --recheck' to rerun these tests and create the
15760  # libtool script then.
15761  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15762  if test -f "$ltmain_in"; then
15763    test -f Makefile && make "$ltmain"
15764  fi
15765fi
15766
15767
15768ac_ext=c
15769ac_cpp='$CPP $CPPFLAGS'
15770ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15771ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15772ac_compiler_gnu=$ac_cv_c_compiler_gnu
15773
15774CC="$lt_save_CC"
15775
15776	else
15777	  tagname=""
15778	fi
15779	;;
15780
15781      GCJ)
15782	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15783
15784
15785
15786# Source file extension for Java test sources.
15787ac_ext=java
15788
15789# Object file extension for compiled Java test sources.
15790objext=o
15791objext_GCJ=$objext
15792
15793# Code to be used in simple compile tests
15794lt_simple_compile_test_code="class foo {}\n"
15795
15796# Code to be used in simple link tests
15797lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15798
15799# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15800
15801# If no C compiler was specified, use CC.
15802LTCC=${LTCC-"$CC"}
15803
15804# If no C compiler flags were specified, use CFLAGS.
15805LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15806
15807# Allow CC to be a program name with arguments.
15808compiler=$CC
15809
15810
15811# save warnings/boilerplate of simple test code
15812ac_outfile=conftest.$ac_objext
15813printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15814eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15815_lt_compiler_boilerplate=`cat conftest.err`
15816$rm conftest*
15817
15818ac_outfile=conftest.$ac_objext
15819printf "$lt_simple_link_test_code" >conftest.$ac_ext
15820eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15821_lt_linker_boilerplate=`cat conftest.err`
15822$rm conftest*
15823
15824
15825# Allow CC to be a program name with arguments.
15826lt_save_CC="$CC"
15827CC=${GCJ-"gcj"}
15828compiler=$CC
15829compiler_GCJ=$CC
15830for cc_temp in $compiler""; do
15831  case $cc_temp in
15832    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15833    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15834    \-*) ;;
15835    *) break;;
15836  esac
15837done
15838cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15839
15840
15841# GCJ did not exist at the time GCC didn't implicitly link libc in.
15842archive_cmds_need_lc_GCJ=no
15843
15844old_archive_cmds_GCJ=$old_archive_cmds
15845
15846
15847lt_prog_compiler_no_builtin_flag_GCJ=
15848
15849if test "$GCC" = yes; then
15850  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15851
15852
15853echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15854echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15855if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15856  echo $ECHO_N "(cached) $ECHO_C" >&6
15857else
15858  lt_cv_prog_compiler_rtti_exceptions=no
15859  ac_outfile=conftest.$ac_objext
15860   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15861   lt_compiler_flag="-fno-rtti -fno-exceptions"
15862   # Insert the option either (1) after the last *FLAGS variable, or
15863   # (2) before a word containing "conftest.", or (3) at the end.
15864   # Note that $ac_compile itself does not contain backslashes and begins
15865   # with a dollar sign (not a hyphen), so the echo should work correctly.
15866   # The option is referenced via a variable to avoid confusing sed.
15867   lt_compile=`echo "$ac_compile" | $SED \
15868   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15869   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15870   -e 's:$: $lt_compiler_flag:'`
15871   (eval echo "\"\$as_me:15871: $lt_compile\"" >&5)
15872   (eval "$lt_compile" 2>conftest.err)
15873   ac_status=$?
15874   cat conftest.err >&5
15875   echo "$as_me:15875: \$? = $ac_status" >&5
15876   if (exit $ac_status) && test -s "$ac_outfile"; then
15877     # The compiler can only warn and ignore the option if not recognized
15878     # So say no if there are warnings other than the usual output.
15879     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15880     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15881     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15882       lt_cv_prog_compiler_rtti_exceptions=yes
15883     fi
15884   fi
15885   $rm conftest*
15886
15887fi
15888echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15889echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15890
15891if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15892    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15893else
15894    :
15895fi
15896
15897fi
15898
15899lt_prog_compiler_wl_GCJ=
15900lt_prog_compiler_pic_GCJ=
15901lt_prog_compiler_static_GCJ=
15902
15903echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15904echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15905
15906  if test "$GCC" = yes; then
15907    lt_prog_compiler_wl_GCJ='-Wl,'
15908    lt_prog_compiler_static_GCJ='-static'
15909
15910    case $host_os in
15911      aix*)
15912      # All AIX code is PIC.
15913      if test "$host_cpu" = ia64; then
15914	# AIX 5 now supports IA64 processor
15915	lt_prog_compiler_static_GCJ='-Bstatic'
15916      fi
15917      ;;
15918
15919    amigaos*)
15920      # FIXME: we need at least 68020 code to build shared libraries, but
15921      # adding the `-m68020' flag to GCC prevents building anything better,
15922      # like `-m68040'.
15923      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15924      ;;
15925
15926    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15927      # PIC is the default for these OSes.
15928      ;;
15929
15930    mingw* | pw32* | os2*)
15931      # This hack is so that the source file can tell whether it is being
15932      # built for inclusion in a dll (and should export symbols for example).
15933      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15934      ;;
15935
15936    darwin* | rhapsody*)
15937      # PIC is the default on this platform
15938      # Common symbols not allowed in MH_DYLIB files
15939      lt_prog_compiler_pic_GCJ='-fno-common'
15940      ;;
15941
15942    interix3*)
15943      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15944      # Instead, we relocate shared libraries at runtime.
15945      ;;
15946
15947    msdosdjgpp*)
15948      # Just because we use GCC doesn't mean we suddenly get shared libraries
15949      # on systems that don't support them.
15950      lt_prog_compiler_can_build_shared_GCJ=no
15951      enable_shared=no
15952      ;;
15953
15954    sysv4*MP*)
15955      if test -d /usr/nec; then
15956	lt_prog_compiler_pic_GCJ=-Kconform_pic
15957      fi
15958      ;;
15959
15960    hpux*)
15961      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15962      # not for PA HP-UX.
15963      case $host_cpu in
15964      hppa*64*|ia64*)
15965	# +Z the default
15966	;;
15967      *)
15968	lt_prog_compiler_pic_GCJ='-fPIC'
15969	;;
15970      esac
15971      ;;
15972
15973    *)
15974      lt_prog_compiler_pic_GCJ='-fPIC'
15975      ;;
15976    esac
15977  else
15978    # PORTME Check for flag to pass linker flags through the system compiler.
15979    case $host_os in
15980    aix*)
15981      lt_prog_compiler_wl_GCJ='-Wl,'
15982      if test "$host_cpu" = ia64; then
15983	# AIX 5 now supports IA64 processor
15984	lt_prog_compiler_static_GCJ='-Bstatic'
15985      else
15986	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15987      fi
15988      ;;
15989      darwin*)
15990        # PIC is the default on this platform
15991        # Common symbols not allowed in MH_DYLIB files
15992       case $cc_basename in
15993         xlc*)
15994         lt_prog_compiler_pic_GCJ='-qnocommon'
15995         lt_prog_compiler_wl_GCJ='-Wl,'
15996         ;;
15997       esac
15998       ;;
15999
16000    mingw* | pw32* | os2*)
16001      # This hack is so that the source file can tell whether it is being
16002      # built for inclusion in a dll (and should export symbols for example).
16003      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16004      ;;
16005
16006    hpux9* | hpux10* | hpux11*)
16007      lt_prog_compiler_wl_GCJ='-Wl,'
16008      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16009      # not for PA HP-UX.
16010      case $host_cpu in
16011      hppa*64*|ia64*)
16012	# +Z the default
16013	;;
16014      *)
16015	lt_prog_compiler_pic_GCJ='+Z'
16016	;;
16017      esac
16018      # Is there a better lt_prog_compiler_static that works with the bundled CC?
16019      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16020      ;;
16021
16022    irix5* | irix6* | nonstopux*)
16023      lt_prog_compiler_wl_GCJ='-Wl,'
16024      # PIC (with -KPIC) is the default.
16025      lt_prog_compiler_static_GCJ='-non_shared'
16026      ;;
16027
16028    newsos6)
16029      lt_prog_compiler_pic_GCJ='-KPIC'
16030      lt_prog_compiler_static_GCJ='-Bstatic'
16031      ;;
16032
16033    linux*)
16034      case $cc_basename in
16035      icc* | ecc*)
16036	lt_prog_compiler_wl_GCJ='-Wl,'
16037	lt_prog_compiler_pic_GCJ='-KPIC'
16038	lt_prog_compiler_static_GCJ='-static'
16039        ;;
16040      pgcc* | pgf77* | pgf90* | pgf95*)
16041        # Portland Group compilers (*not* the Pentium gcc compiler,
16042	# which looks to be a dead project)
16043	lt_prog_compiler_wl_GCJ='-Wl,'
16044	lt_prog_compiler_pic_GCJ='-fpic'
16045	lt_prog_compiler_static_GCJ='-Bstatic'
16046        ;;
16047      ccc*)
16048        lt_prog_compiler_wl_GCJ='-Wl,'
16049        # All Alpha code is PIC.
16050        lt_prog_compiler_static_GCJ='-non_shared'
16051        ;;
16052      esac
16053      ;;
16054
16055    osf3* | osf4* | osf5*)
16056      lt_prog_compiler_wl_GCJ='-Wl,'
16057      # All OSF/1 code is PIC.
16058      lt_prog_compiler_static_GCJ='-non_shared'
16059      ;;
16060
16061    solaris*)
16062      lt_prog_compiler_pic_GCJ='-KPIC'
16063      lt_prog_compiler_static_GCJ='-Bstatic'
16064      case $cc_basename in
16065      f77* | f90* | f95*)
16066	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16067      *)
16068	lt_prog_compiler_wl_GCJ='-Wl,';;
16069      esac
16070      ;;
16071
16072    sunos4*)
16073      lt_prog_compiler_wl_GCJ='-Qoption ld '
16074      lt_prog_compiler_pic_GCJ='-PIC'
16075      lt_prog_compiler_static_GCJ='-Bstatic'
16076      ;;
16077
16078    sysv4 | sysv4.2uw2* | sysv4.3*)
16079      lt_prog_compiler_wl_GCJ='-Wl,'
16080      lt_prog_compiler_pic_GCJ='-KPIC'
16081      lt_prog_compiler_static_GCJ='-Bstatic'
16082      ;;
16083
16084    sysv4*MP*)
16085      if test -d /usr/nec ;then
16086	lt_prog_compiler_pic_GCJ='-Kconform_pic'
16087	lt_prog_compiler_static_GCJ='-Bstatic'
16088      fi
16089      ;;
16090
16091    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16092      lt_prog_compiler_wl_GCJ='-Wl,'
16093      lt_prog_compiler_pic_GCJ='-KPIC'
16094      lt_prog_compiler_static_GCJ='-Bstatic'
16095      ;;
16096
16097    unicos*)
16098      lt_prog_compiler_wl_GCJ='-Wl,'
16099      lt_prog_compiler_can_build_shared_GCJ=no
16100      ;;
16101
16102    uts4*)
16103      lt_prog_compiler_pic_GCJ='-pic'
16104      lt_prog_compiler_static_GCJ='-Bstatic'
16105      ;;
16106
16107    *)
16108      lt_prog_compiler_can_build_shared_GCJ=no
16109      ;;
16110    esac
16111  fi
16112
16113echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16114echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16115
16116#
16117# Check to make sure the PIC flag actually works.
16118#
16119if test -n "$lt_prog_compiler_pic_GCJ"; then
16120
16121echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16122echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16123if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16124  echo $ECHO_N "(cached) $ECHO_C" >&6
16125else
16126  lt_prog_compiler_pic_works_GCJ=no
16127  ac_outfile=conftest.$ac_objext
16128   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16129   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16130   # Insert the option either (1) after the last *FLAGS variable, or
16131   # (2) before a word containing "conftest.", or (3) at the end.
16132   # Note that $ac_compile itself does not contain backslashes and begins
16133   # with a dollar sign (not a hyphen), so the echo should work correctly.
16134   # The option is referenced via a variable to avoid confusing sed.
16135   lt_compile=`echo "$ac_compile" | $SED \
16136   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16137   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16138   -e 's:$: $lt_compiler_flag:'`
16139   (eval echo "\"\$as_me:16139: $lt_compile\"" >&5)
16140   (eval "$lt_compile" 2>conftest.err)
16141   ac_status=$?
16142   cat conftest.err >&5
16143   echo "$as_me:16143: \$? = $ac_status" >&5
16144   if (exit $ac_status) && test -s "$ac_outfile"; then
16145     # The compiler can only warn and ignore the option if not recognized
16146     # So say no if there are warnings other than the usual output.
16147     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16148     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16149     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16150       lt_prog_compiler_pic_works_GCJ=yes
16151     fi
16152   fi
16153   $rm conftest*
16154
16155fi
16156echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16157echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16158
16159if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16160    case $lt_prog_compiler_pic_GCJ in
16161     "" | " "*) ;;
16162     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16163     esac
16164else
16165    lt_prog_compiler_pic_GCJ=
16166     lt_prog_compiler_can_build_shared_GCJ=no
16167fi
16168
16169fi
16170case $host_os in
16171  # For platforms which do not support PIC, -DPIC is meaningless:
16172  *djgpp*)
16173    lt_prog_compiler_pic_GCJ=
16174    ;;
16175  *)
16176    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16177    ;;
16178esac
16179
16180#
16181# Check to make sure the static flag actually works.
16182#
16183wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16184echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16185echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
16186if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16187  echo $ECHO_N "(cached) $ECHO_C" >&6
16188else
16189  lt_prog_compiler_static_works_GCJ=no
16190   save_LDFLAGS="$LDFLAGS"
16191   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16192   printf "$lt_simple_link_test_code" > conftest.$ac_ext
16193   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16194     # The linker can only warn and ignore the option if not recognized
16195     # So say no if there are warnings
16196     if test -s conftest.err; then
16197       # Append any errors to the config.log.
16198       cat conftest.err 1>&5
16199       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16200       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16201       if diff conftest.exp conftest.er2 >/dev/null; then
16202         lt_prog_compiler_static_works_GCJ=yes
16203       fi
16204     else
16205       lt_prog_compiler_static_works_GCJ=yes
16206     fi
16207   fi
16208   $rm conftest*
16209   LDFLAGS="$save_LDFLAGS"
16210
16211fi
16212echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16213echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
16214
16215if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16216    :
16217else
16218    lt_prog_compiler_static_GCJ=
16219fi
16220
16221
16222echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16223echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16224if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16225  echo $ECHO_N "(cached) $ECHO_C" >&6
16226else
16227  lt_cv_prog_compiler_c_o_GCJ=no
16228   $rm -r conftest 2>/dev/null
16229   mkdir conftest
16230   cd conftest
16231   mkdir out
16232   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16233
16234   lt_compiler_flag="-o out/conftest2.$ac_objext"
16235   # Insert the option either (1) after the last *FLAGS variable, or
16236   # (2) before a word containing "conftest.", or (3) at the end.
16237   # Note that $ac_compile itself does not contain backslashes and begins
16238   # with a dollar sign (not a hyphen), so the echo should work correctly.
16239   lt_compile=`echo "$ac_compile" | $SED \
16240   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16241   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16242   -e 's:$: $lt_compiler_flag:'`
16243   (eval echo "\"\$as_me:16243: $lt_compile\"" >&5)
16244   (eval "$lt_compile" 2>out/conftest.err)
16245   ac_status=$?
16246   cat out/conftest.err >&5
16247   echo "$as_me:16247: \$? = $ac_status" >&5
16248   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16249   then
16250     # The compiler can only warn and ignore the option if not recognized
16251     # So say no if there are warnings
16252     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16253     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16254     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16255       lt_cv_prog_compiler_c_o_GCJ=yes
16256     fi
16257   fi
16258   chmod u+w . 2>&5
16259   $rm conftest*
16260   # SGI C++ compiler will create directory out/ii_files/ for
16261   # template instantiation
16262   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16263   $rm out/* && rmdir out
16264   cd ..
16265   rmdir conftest
16266   $rm conftest*
16267
16268fi
16269echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16270echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16271
16272
16273hard_links="nottested"
16274if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16275  # do not overwrite the value of need_locks provided by the user
16276  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16277echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16278  hard_links=yes
16279  $rm conftest*
16280  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16281  touch conftest.a
16282  ln conftest.a conftest.b 2>&5 || hard_links=no
16283  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16284  echo "$as_me:$LINENO: result: $hard_links" >&5
16285echo "${ECHO_T}$hard_links" >&6
16286  if test "$hard_links" = no; then
16287    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16288echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16289    need_locks=warn
16290  fi
16291else
16292  need_locks=no
16293fi
16294
16295echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16296echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16297
16298  runpath_var=
16299  allow_undefined_flag_GCJ=
16300  enable_shared_with_static_runtimes_GCJ=no
16301  archive_cmds_GCJ=
16302  archive_expsym_cmds_GCJ=
16303  old_archive_From_new_cmds_GCJ=
16304  old_archive_from_expsyms_cmds_GCJ=
16305  export_dynamic_flag_spec_GCJ=
16306  whole_archive_flag_spec_GCJ=
16307  thread_safe_flag_spec_GCJ=
16308  hardcode_libdir_flag_spec_GCJ=
16309  hardcode_libdir_flag_spec_ld_GCJ=
16310  hardcode_libdir_separator_GCJ=
16311  hardcode_direct_GCJ=no
16312  hardcode_minus_L_GCJ=no
16313  hardcode_shlibpath_var_GCJ=unsupported
16314  link_all_deplibs_GCJ=unknown
16315  hardcode_automatic_GCJ=no
16316  module_cmds_GCJ=
16317  module_expsym_cmds_GCJ=
16318  always_export_symbols_GCJ=no
16319  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16320  # include_expsyms should be a list of space-separated symbols to be *always*
16321  # included in the symbol list
16322  include_expsyms_GCJ=
16323  # exclude_expsyms can be an extended regexp of symbols to exclude
16324  # it will be wrapped by ` (' and `)$', so one must not match beginning or
16325  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16326  # as well as any symbol that contains `d'.
16327  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16328  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16329  # platforms (ab)use it in PIC code, but their linkers get confused if
16330  # the symbol is explicitly referenced.  Since portable code cannot
16331  # rely on this symbol name, it's probably fine to never include it in
16332  # preloaded symbol tables.
16333  extract_expsyms_cmds=
16334  # Just being paranoid about ensuring that cc_basename is set.
16335  for cc_temp in $compiler""; do
16336  case $cc_temp in
16337    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16338    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16339    \-*) ;;
16340    *) break;;
16341  esac
16342done
16343cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16344
16345  case $host_os in
16346  cygwin* | mingw* | pw32*)
16347    # FIXME: the MSVC++ port hasn't been tested in a loooong time
16348    # When not using gcc, we currently assume that we are using
16349    # Microsoft Visual C++.
16350    if test "$GCC" != yes; then
16351      with_gnu_ld=no
16352    fi
16353    ;;
16354  interix*)
16355    # we just hope/assume this is gcc and not c89 (= MSVC++)
16356    with_gnu_ld=yes
16357    ;;
16358  openbsd*)
16359    with_gnu_ld=no
16360    ;;
16361  esac
16362
16363  ld_shlibs_GCJ=yes
16364  if test "$with_gnu_ld" = yes; then
16365    # If archive_cmds runs LD, not CC, wlarc should be empty
16366    wlarc='${wl}'
16367
16368    # Set some defaults for GNU ld with shared library support. These
16369    # are reset later if shared libraries are not supported. Putting them
16370    # here allows them to be overridden if necessary.
16371    runpath_var=LD_RUN_PATH
16372    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16373    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16374    # ancient GNU ld didn't support --whole-archive et. al.
16375    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16376	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16377      else
16378  	whole_archive_flag_spec_GCJ=
16379    fi
16380    supports_anon_versioning=no
16381    case `$LD -v 2>/dev/null` in
16382      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16383      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16384      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16385      *\ 2.11.*) ;; # other 2.11 versions
16386      *) supports_anon_versioning=yes ;;
16387    esac
16388
16389    # See if GNU ld supports shared libraries.
16390    case $host_os in
16391    aix3* | aix4* | aix5*)
16392      # On AIX/PPC, the GNU linker is very broken
16393      if test "$host_cpu" != ia64; then
16394	ld_shlibs_GCJ=no
16395	cat <<EOF 1>&2
16396
16397*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16398*** to be unable to reliably create shared libraries on AIX.
16399*** Therefore, libtool is disabling shared libraries support.  If you
16400*** really care for shared libraries, you may want to modify your PATH
16401*** so that a non-GNU linker is found, and then restart.
16402
16403EOF
16404      fi
16405      ;;
16406
16407    amigaos*)
16408      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)'
16409      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16410      hardcode_minus_L_GCJ=yes
16411
16412      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16413      # that the semantics of dynamic libraries on AmigaOS, at least up
16414      # to version 4, is to share data among multiple programs linked
16415      # with the same dynamic library.  Since this doesn't match the
16416      # behavior of shared libraries on other platforms, we can't use
16417      # them.
16418      ld_shlibs_GCJ=no
16419      ;;
16420
16421    beos*)
16422      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16423	allow_undefined_flag_GCJ=unsupported
16424	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16425	# support --undefined.  This deserves some investigation.  FIXME
16426	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16427      else
16428	ld_shlibs_GCJ=no
16429      fi
16430      ;;
16431
16432    cygwin* | mingw* | pw32*)
16433      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16434      # as there is no search path for DLLs.
16435      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16436      allow_undefined_flag_GCJ=unsupported
16437      always_export_symbols_GCJ=no
16438      enable_shared_with_static_runtimes_GCJ=yes
16439      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16440
16441      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16442        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16443	# If the export-symbols file already is a .def file (1st line
16444	# is EXPORTS), use it as is; otherwise, prepend...
16445	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16446	  cp $export_symbols $output_objdir/$soname.def;
16447	else
16448	  echo EXPORTS > $output_objdir/$soname.def;
16449	  cat $export_symbols >> $output_objdir/$soname.def;
16450	fi~
16451	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16452      else
16453	ld_shlibs_GCJ=no
16454      fi
16455      ;;
16456
16457    interix3*)
16458      hardcode_direct_GCJ=no
16459      hardcode_shlibpath_var_GCJ=no
16460      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16461      export_dynamic_flag_spec_GCJ='${wl}-E'
16462      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16463      # Instead, shared libraries are loaded at an image base (0x10000000 by
16464      # default) and relocated if they conflict, which is a slow very memory
16465      # consuming and fragmenting process.  To avoid this, we pick a random,
16466      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16467      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16468      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'
16469      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'
16470      ;;
16471
16472    linux*)
16473      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16474	tmp_addflag=
16475	case $cc_basename,$host_cpu in
16476	pgcc*)				# Portland Group C compiler
16477	  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'
16478	  tmp_addflag=' $pic_flag'
16479	  ;;
16480	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
16481	  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'
16482	  tmp_addflag=' $pic_flag -Mnomain' ;;
16483	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
16484	  tmp_addflag=' -i_dynamic' ;;
16485	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
16486	  tmp_addflag=' -i_dynamic -nofor_main' ;;
16487	ifc* | ifort*)			# Intel Fortran compiler
16488	  tmp_addflag=' -nofor_main' ;;
16489	esac
16490	archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16491
16492	if test $supports_anon_versioning = yes; then
16493	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16494  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16495  $echo "local: *; };" >> $output_objdir/$libname.ver~
16496	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16497	fi
16498      else
16499	ld_shlibs_GCJ=no
16500      fi
16501      ;;
16502
16503    netbsd*)
16504      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16505	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16506	wlarc=
16507      else
16508	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16509	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16510      fi
16511      ;;
16512
16513    solaris*)
16514      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16515	ld_shlibs_GCJ=no
16516	cat <<EOF 1>&2
16517
16518*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16519*** create shared libraries on Solaris systems.  Therefore, libtool
16520*** is disabling shared libraries support.  We urge you to upgrade GNU
16521*** binutils to release 2.9.1 or newer.  Another option is to modify
16522*** your PATH or compiler configuration so that the native linker is
16523*** used, and then restart.
16524
16525EOF
16526      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16527	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16528	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16529      else
16530	ld_shlibs_GCJ=no
16531      fi
16532      ;;
16533
16534    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16535      case `$LD -v 2>&1` in
16536        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16537	ld_shlibs_GCJ=no
16538	cat <<_LT_EOF 1>&2
16539
16540*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16541*** reliably create shared libraries on SCO systems.  Therefore, libtool
16542*** is disabling shared libraries support.  We urge you to upgrade GNU
16543*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16544*** your PATH or compiler configuration so that the native linker is
16545*** used, and then restart.
16546
16547_LT_EOF
16548	;;
16549	*)
16550	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16551	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16552	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16553	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16554	  else
16555	    ld_shlibs_GCJ=no
16556	  fi
16557	;;
16558      esac
16559      ;;
16560
16561    sunos4*)
16562      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16563      wlarc=
16564      hardcode_direct_GCJ=yes
16565      hardcode_shlibpath_var_GCJ=no
16566      ;;
16567
16568    *)
16569      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16570	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16571	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16572      else
16573	ld_shlibs_GCJ=no
16574      fi
16575      ;;
16576    esac
16577
16578    if test "$ld_shlibs_GCJ" = no; then
16579      runpath_var=
16580      hardcode_libdir_flag_spec_GCJ=
16581      export_dynamic_flag_spec_GCJ=
16582      whole_archive_flag_spec_GCJ=
16583    fi
16584  else
16585    # PORTME fill in a description of your system's linker (not GNU ld)
16586    case $host_os in
16587    aix3*)
16588      allow_undefined_flag_GCJ=unsupported
16589      always_export_symbols_GCJ=yes
16590      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'
16591      # Note: this linker hardcodes the directories in LIBPATH if there
16592      # are no directories specified by -L.
16593      hardcode_minus_L_GCJ=yes
16594      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16595	# Neither direct hardcoding nor static linking is supported with a
16596	# broken collect2.
16597	hardcode_direct_GCJ=unsupported
16598      fi
16599      ;;
16600
16601    aix4* | aix5*)
16602      if test "$host_cpu" = ia64; then
16603	# On IA64, the linker does run time linking by default, so we don't
16604	# have to do anything special.
16605	aix_use_runtimelinking=no
16606	exp_sym_flag='-Bexport'
16607	no_entry_flag=""
16608      else
16609	# If we're using GNU nm, then we don't want the "-C" option.
16610	# -C means demangle to AIX nm, but means don't demangle with GNU nm
16611	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16612	  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'
16613	else
16614	  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'
16615	fi
16616	aix_use_runtimelinking=no
16617
16618	# Test if we are trying to use run time linking or normal
16619	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16620	# need to do runtime linking.
16621	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16622	  for ld_flag in $LDFLAGS; do
16623  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16624  	    aix_use_runtimelinking=yes
16625  	    break
16626  	  fi
16627	  done
16628	  ;;
16629	esac
16630
16631	exp_sym_flag='-bexport'
16632	no_entry_flag='-bnoentry'
16633      fi
16634
16635      # When large executables or shared objects are built, AIX ld can
16636      # have problems creating the table of contents.  If linking a library
16637      # or program results in "error TOC overflow" add -mminimal-toc to
16638      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16639      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16640
16641      archive_cmds_GCJ=''
16642      hardcode_direct_GCJ=yes
16643      hardcode_libdir_separator_GCJ=':'
16644      link_all_deplibs_GCJ=yes
16645
16646      if test "$GCC" = yes; then
16647	case $host_os in aix4.[012]|aix4.[012].*)
16648	# We only want to do this on AIX 4.2 and lower, the check
16649	# below for broken collect2 doesn't work under 4.3+
16650	  collect2name=`${CC} -print-prog-name=collect2`
16651	  if test -f "$collect2name" && \
16652  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
16653	  then
16654  	  # We have reworked collect2
16655  	  hardcode_direct_GCJ=yes
16656	  else
16657  	  # We have old collect2
16658  	  hardcode_direct_GCJ=unsupported
16659  	  # It fails to find uninstalled libraries when the uninstalled
16660  	  # path is not listed in the libpath.  Setting hardcode_minus_L
16661  	  # to unsupported forces relinking
16662  	  hardcode_minus_L_GCJ=yes
16663  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
16664  	  hardcode_libdir_separator_GCJ=
16665	  fi
16666	  ;;
16667	esac
16668	shared_flag='-shared'
16669	if test "$aix_use_runtimelinking" = yes; then
16670	  shared_flag="$shared_flag "'${wl}-G'
16671	fi
16672      else
16673	# not using gcc
16674	if test "$host_cpu" = ia64; then
16675  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16676  	# chokes on -Wl,-G. The following line is correct:
16677	  shared_flag='-G'
16678	else
16679	  if test "$aix_use_runtimelinking" = yes; then
16680	    shared_flag='${wl}-G'
16681	  else
16682	    shared_flag='${wl}-bM:SRE'
16683	  fi
16684	fi
16685      fi
16686
16687      # It seems that -bexpall does not export symbols beginning with
16688      # underscore (_), so it is better to generate a list of symbols to export.
16689      always_export_symbols_GCJ=yes
16690      if test "$aix_use_runtimelinking" = yes; then
16691	# Warning - without using the other runtime loading flags (-brtl),
16692	# -berok will link without error, but may produce a broken library.
16693	allow_undefined_flag_GCJ='-berok'
16694       # Determine the default libpath from the value encoded in an empty executable.
16695       cat >conftest.$ac_ext <<_ACEOF
16696/* confdefs.h.  */
16697_ACEOF
16698cat confdefs.h >>conftest.$ac_ext
16699cat >>conftest.$ac_ext <<_ACEOF
16700/* end confdefs.h.  */
16701
16702int
16703main ()
16704{
16705
16706  ;
16707  return 0;
16708}
16709_ACEOF
16710rm -f conftest.$ac_objext conftest$ac_exeext
16711if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16712  (eval $ac_link) 2>conftest.er1
16713  ac_status=$?
16714  grep -v '^ *+' conftest.er1 >conftest.err
16715  rm -f conftest.er1
16716  cat conftest.err >&5
16717  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16718  (exit $ac_status); } &&
16719	 { ac_try='test -z "$ac_c_werror_flag"
16720			 || test ! -s conftest.err'
16721  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16722  (eval $ac_try) 2>&5
16723  ac_status=$?
16724  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16725  (exit $ac_status); }; } &&
16726	 { ac_try='test -s conftest$ac_exeext'
16727  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16728  (eval $ac_try) 2>&5
16729  ac_status=$?
16730  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16731  (exit $ac_status); }; }; then
16732
16733aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16734}'`
16735# Check for a 64-bit object if we didn't find anything.
16736if 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; }
16737}'`; fi
16738else
16739  echo "$as_me: failed program was:" >&5
16740sed 's/^/| /' conftest.$ac_ext >&5
16741
16742fi
16743rm -f conftest.err conftest.$ac_objext \
16744      conftest$ac_exeext conftest.$ac_ext
16745if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16746
16747       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16748	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"
16749       else
16750	if test "$host_cpu" = ia64; then
16751	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16752	  allow_undefined_flag_GCJ="-z nodefs"
16753	  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"
16754	else
16755	 # Determine the default libpath from the value encoded in an empty executable.
16756	 cat >conftest.$ac_ext <<_ACEOF
16757/* confdefs.h.  */
16758_ACEOF
16759cat confdefs.h >>conftest.$ac_ext
16760cat >>conftest.$ac_ext <<_ACEOF
16761/* end confdefs.h.  */
16762
16763int
16764main ()
16765{
16766
16767  ;
16768  return 0;
16769}
16770_ACEOF
16771rm -f conftest.$ac_objext conftest$ac_exeext
16772if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16773  (eval $ac_link) 2>conftest.er1
16774  ac_status=$?
16775  grep -v '^ *+' conftest.er1 >conftest.err
16776  rm -f conftest.er1
16777  cat conftest.err >&5
16778  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16779  (exit $ac_status); } &&
16780	 { ac_try='test -z "$ac_c_werror_flag"
16781			 || test ! -s conftest.err'
16782  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16783  (eval $ac_try) 2>&5
16784  ac_status=$?
16785  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16786  (exit $ac_status); }; } &&
16787	 { ac_try='test -s conftest$ac_exeext'
16788  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16789  (eval $ac_try) 2>&5
16790  ac_status=$?
16791  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16792  (exit $ac_status); }; }; then
16793
16794aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16795}'`
16796# Check for a 64-bit object if we didn't find anything.
16797if 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; }
16798}'`; fi
16799else
16800  echo "$as_me: failed program was:" >&5
16801sed 's/^/| /' conftest.$ac_ext >&5
16802
16803fi
16804rm -f conftest.err conftest.$ac_objext \
16805      conftest$ac_exeext conftest.$ac_ext
16806if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16807
16808	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16809	  # Warning - without using the other run time loading flags,
16810	  # -berok will link without error, but may produce a broken library.
16811	  no_undefined_flag_GCJ=' ${wl}-bernotok'
16812	  allow_undefined_flag_GCJ=' ${wl}-berok'
16813	  # Exported symbols can be pulled into shared objects from archives
16814	  whole_archive_flag_spec_GCJ='$convenience'
16815	  archive_cmds_need_lc_GCJ=yes
16816	  # This is similar to how AIX traditionally builds its shared libraries.
16817	  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'
16818	fi
16819      fi
16820      ;;
16821
16822    amigaos*)
16823      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)'
16824      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16825      hardcode_minus_L_GCJ=yes
16826      # see comment about different semantics on the GNU ld section
16827      ld_shlibs_GCJ=no
16828      ;;
16829
16830    bsdi[45]*)
16831      export_dynamic_flag_spec_GCJ=-rdynamic
16832      ;;
16833
16834    cygwin* | mingw* | pw32*)
16835      # When not using gcc, we currently assume that we are using
16836      # Microsoft Visual C++.
16837      # hardcode_libdir_flag_spec is actually meaningless, as there is
16838      # no search path for DLLs.
16839      hardcode_libdir_flag_spec_GCJ=' '
16840      allow_undefined_flag_GCJ=unsupported
16841      # Tell ltmain to make .lib files, not .a files.
16842      libext=lib
16843      # Tell ltmain to make .dll files, not .so files.
16844      shrext_cmds=".dll"
16845      # FIXME: Setting linknames here is a bad hack.
16846      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16847      # The linker will automatically build a .lib file if we build a DLL.
16848      old_archive_From_new_cmds_GCJ='true'
16849      # FIXME: Should let the user specify the lib program.
16850      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16851      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16852      enable_shared_with_static_runtimes_GCJ=yes
16853      ;;
16854
16855    darwin* | rhapsody*)
16856      case $host_os in
16857        rhapsody* | darwin1.[012])
16858         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16859         ;;
16860       *) # Darwin 1.3 on
16861         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16862           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16863         else
16864           case ${MACOSX_DEPLOYMENT_TARGET} in
16865             10.[012])
16866               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16867               ;;
16868             10.*)
16869               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16870               ;;
16871           esac
16872         fi
16873         ;;
16874      esac
16875      archive_cmds_need_lc_GCJ=no
16876      hardcode_direct_GCJ=no
16877      hardcode_automatic_GCJ=yes
16878      hardcode_shlibpath_var_GCJ=unsupported
16879      whole_archive_flag_spec_GCJ=''
16880      link_all_deplibs_GCJ=yes
16881    if test "$GCC" = yes ; then
16882    	output_verbose_link_cmd='echo'
16883        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16884      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16885      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16886      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}'
16887      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}'
16888    else
16889      case $cc_basename in
16890        xlc*)
16891         output_verbose_link_cmd='echo'
16892         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16893         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16894          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16895         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}'
16896          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}'
16897          ;;
16898       *)
16899         ld_shlibs_GCJ=no
16900          ;;
16901      esac
16902    fi
16903      ;;
16904
16905    dgux*)
16906      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16907      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16908      hardcode_shlibpath_var_GCJ=no
16909      ;;
16910
16911    freebsd1*)
16912      ld_shlibs_GCJ=no
16913      ;;
16914
16915    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16916    # support.  Future versions do this automatically, but an explicit c++rt0.o
16917    # does not break anything, and helps significantly (at the cost of a little
16918    # extra space).
16919    freebsd2.2*)
16920      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16921      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16922      hardcode_direct_GCJ=yes
16923      hardcode_shlibpath_var_GCJ=no
16924      ;;
16925
16926    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16927    freebsd2*)
16928      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16929      hardcode_direct_GCJ=yes
16930      hardcode_minus_L_GCJ=yes
16931      hardcode_shlibpath_var_GCJ=no
16932      ;;
16933
16934    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16935    freebsd* | kfreebsd*-gnu | dragonfly*)
16936      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16937      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16938      hardcode_direct_GCJ=yes
16939      hardcode_shlibpath_var_GCJ=no
16940      ;;
16941
16942    hpux9*)
16943      if test "$GCC" = yes; then
16944	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'
16945      else
16946	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'
16947      fi
16948      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16949      hardcode_libdir_separator_GCJ=:
16950      hardcode_direct_GCJ=yes
16951
16952      # hardcode_minus_L: Not really in the search PATH,
16953      # but as the default location of the library.
16954      hardcode_minus_L_GCJ=yes
16955      export_dynamic_flag_spec_GCJ='${wl}-E'
16956      ;;
16957
16958    hpux10*)
16959      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16960	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16961      else
16962	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16963      fi
16964      if test "$with_gnu_ld" = no; then
16965	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16966	hardcode_libdir_separator_GCJ=:
16967
16968	hardcode_direct_GCJ=yes
16969	export_dynamic_flag_spec_GCJ='${wl}-E'
16970
16971	# hardcode_minus_L: Not really in the search PATH,
16972	# but as the default location of the library.
16973	hardcode_minus_L_GCJ=yes
16974      fi
16975      ;;
16976
16977    hpux11*)
16978      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16979	case $host_cpu in
16980	hppa*64*)
16981	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16982	  ;;
16983	ia64*)
16984	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16985	  ;;
16986	*)
16987	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16988	  ;;
16989	esac
16990      else
16991	case $host_cpu in
16992	hppa*64*)
16993	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16994	  ;;
16995	ia64*)
16996	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16997	  ;;
16998	*)
16999	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17000	  ;;
17001	esac
17002      fi
17003      if test "$with_gnu_ld" = no; then
17004	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17005	hardcode_libdir_separator_GCJ=:
17006
17007	case $host_cpu in
17008	hppa*64*|ia64*)
17009	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17010	  hardcode_direct_GCJ=no
17011	  hardcode_shlibpath_var_GCJ=no
17012	  ;;
17013	*)
17014	  hardcode_direct_GCJ=yes
17015	  export_dynamic_flag_spec_GCJ='${wl}-E'
17016
17017	  # hardcode_minus_L: Not really in the search PATH,
17018	  # but as the default location of the library.
17019	  hardcode_minus_L_GCJ=yes
17020	  ;;
17021	esac
17022      fi
17023      ;;
17024
17025    irix5* | irix6* | nonstopux*)
17026      if test "$GCC" = yes; then
17027	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'
17028      else
17029	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'
17030	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17031      fi
17032      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17033      hardcode_libdir_separator_GCJ=:
17034      link_all_deplibs_GCJ=yes
17035      ;;
17036
17037    netbsd*)
17038      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17039	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17040      else
17041	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17042      fi
17043      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17044      hardcode_direct_GCJ=yes
17045      hardcode_shlibpath_var_GCJ=no
17046      ;;
17047
17048    newsos6)
17049      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17050      hardcode_direct_GCJ=yes
17051      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17052      hardcode_libdir_separator_GCJ=:
17053      hardcode_shlibpath_var_GCJ=no
17054      ;;
17055
17056    openbsd*)
17057      hardcode_direct_GCJ=yes
17058      hardcode_shlibpath_var_GCJ=no
17059      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17060	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17061	archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17062	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17063	export_dynamic_flag_spec_GCJ='${wl}-E'
17064      else
17065       case $host_os in
17066	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17067	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17068	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
17069	   ;;
17070	 *)
17071	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17072	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17073	   ;;
17074       esac
17075      fi
17076      ;;
17077
17078    os2*)
17079      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17080      hardcode_minus_L_GCJ=yes
17081      allow_undefined_flag_GCJ=unsupported
17082      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'
17083      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17084      ;;
17085
17086    osf3*)
17087      if test "$GCC" = yes; then
17088	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17089	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'
17090      else
17091	allow_undefined_flag_GCJ=' -expect_unresolved \*'
17092	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'
17093      fi
17094      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17095      hardcode_libdir_separator_GCJ=:
17096      ;;
17097
17098    osf4* | osf5*)	# as osf3* with the addition of -msym flag
17099      if test "$GCC" = yes; then
17100	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17101	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'
17102	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17103      else
17104	allow_undefined_flag_GCJ=' -expect_unresolved \*'
17105	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'
17106	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~
17107	$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'
17108
17109	# Both c and cxx compiler support -rpath directly
17110	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17111      fi
17112      hardcode_libdir_separator_GCJ=:
17113      ;;
17114
17115    solaris*)
17116      no_undefined_flag_GCJ=' -z text'
17117      if test "$GCC" = yes; then
17118	wlarc='${wl}'
17119	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17120	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17121	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17122      else
17123	wlarc=''
17124	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17125	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17126  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17127      fi
17128      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17129      hardcode_shlibpath_var_GCJ=no
17130      case $host_os in
17131      solaris2.[0-5] | solaris2.[0-5].*) ;;
17132      *)
17133 	# The compiler driver will combine linker options so we
17134 	# cannot just pass the convience library names through
17135 	# without $wl, iff we do not link with $LD.
17136 	# Luckily, gcc supports the same syntax we need for Sun Studio.
17137 	# Supported since Solaris 2.6 (maybe 2.5.1?)
17138 	case $wlarc in
17139 	'')
17140 	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17141 	*)
17142 	  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' ;;
17143 	esac ;;
17144      esac
17145      link_all_deplibs_GCJ=yes
17146      ;;
17147
17148    sunos4*)
17149      if test "x$host_vendor" = xsequent; then
17150	# Use $CC to link under sequent, because it throws in some extra .o
17151	# files that make .init and .fini sections work.
17152	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17153      else
17154	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17155      fi
17156      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17157      hardcode_direct_GCJ=yes
17158      hardcode_minus_L_GCJ=yes
17159      hardcode_shlibpath_var_GCJ=no
17160      ;;
17161
17162    sysv4)
17163      case $host_vendor in
17164	sni)
17165	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17166	  hardcode_direct_GCJ=yes # is this really true???
17167	;;
17168	siemens)
17169	  ## LD is ld it makes a PLAMLIB
17170	  ## CC just makes a GrossModule.
17171	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17172	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17173	  hardcode_direct_GCJ=no
17174        ;;
17175	motorola)
17176	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17177	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17178	;;
17179      esac
17180      runpath_var='LD_RUN_PATH'
17181      hardcode_shlibpath_var_GCJ=no
17182      ;;
17183
17184    sysv4.3*)
17185      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17186      hardcode_shlibpath_var_GCJ=no
17187      export_dynamic_flag_spec_GCJ='-Bexport'
17188      ;;
17189
17190    sysv4*MP*)
17191      if test -d /usr/nec; then
17192	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17193	hardcode_shlibpath_var_GCJ=no
17194	runpath_var=LD_RUN_PATH
17195	hardcode_runpath_var=yes
17196	ld_shlibs_GCJ=yes
17197      fi
17198      ;;
17199
17200    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17201      no_undefined_flag_GCJ='${wl}-z,text'
17202      archive_cmds_need_lc_GCJ=no
17203      hardcode_shlibpath_var_GCJ=no
17204      runpath_var='LD_RUN_PATH'
17205
17206      if test "$GCC" = yes; then
17207	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17208	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17209      else
17210	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17211	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17212      fi
17213      ;;
17214
17215    sysv5* | sco3.2v5* | sco5v6*)
17216      # Note: We can NOT use -z defs as we might desire, because we do not
17217      # link with -lc, and that would cause any symbols used from libc to
17218      # always be unresolved, which means just about no library would
17219      # ever link correctly.  If we're not using GNU ld we use -z text
17220      # though, which does catch some bad symbols but isn't as heavy-handed
17221      # as -z defs.
17222      no_undefined_flag_GCJ='${wl}-z,text'
17223      allow_undefined_flag_GCJ='${wl}-z,nodefs'
17224      archive_cmds_need_lc_GCJ=no
17225      hardcode_shlibpath_var_GCJ=no
17226      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17227      hardcode_libdir_separator_GCJ=':'
17228      link_all_deplibs_GCJ=yes
17229      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17230      runpath_var='LD_RUN_PATH'
17231
17232      if test "$GCC" = yes; then
17233	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17234	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17235      else
17236	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17237	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17238      fi
17239      ;;
17240
17241    uts4*)
17242      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17243      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17244      hardcode_shlibpath_var_GCJ=no
17245      ;;
17246
17247    *)
17248      ld_shlibs_GCJ=no
17249      ;;
17250    esac
17251  fi
17252
17253echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17254echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17255test "$ld_shlibs_GCJ" = no && can_build_shared=no
17256
17257#
17258# Do we need to explicitly link libc?
17259#
17260case "x$archive_cmds_need_lc_GCJ" in
17261x|xyes)
17262  # Assume -lc should be added
17263  archive_cmds_need_lc_GCJ=yes
17264
17265  if test "$enable_shared" = yes && test "$GCC" = yes; then
17266    case $archive_cmds_GCJ in
17267    *'~'*)
17268      # FIXME: we may have to deal with multi-command sequences.
17269      ;;
17270    '$CC '*)
17271      # Test whether the compiler implicitly links with -lc since on some
17272      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17273      # to ld, don't add -lc before -lgcc.
17274      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17275echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17276      $rm conftest*
17277      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17278
17279      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17280  (eval $ac_compile) 2>&5
17281  ac_status=$?
17282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17283  (exit $ac_status); } 2>conftest.err; then
17284        soname=conftest
17285        lib=conftest
17286        libobjs=conftest.$ac_objext
17287        deplibs=
17288        wl=$lt_prog_compiler_wl_GCJ
17289	pic_flag=$lt_prog_compiler_pic_GCJ
17290        compiler_flags=-v
17291        linker_flags=-v
17292        verstring=
17293        output_objdir=.
17294        libname=conftest
17295        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17296        allow_undefined_flag_GCJ=
17297        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17298  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17299  ac_status=$?
17300  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17301  (exit $ac_status); }
17302        then
17303	  archive_cmds_need_lc_GCJ=no
17304        else
17305	  archive_cmds_need_lc_GCJ=yes
17306        fi
17307        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17308      else
17309        cat conftest.err 1>&5
17310      fi
17311      $rm conftest*
17312      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17313echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17314      ;;
17315    esac
17316  fi
17317  ;;
17318esac
17319
17320echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17321echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17322library_names_spec=
17323libname_spec='lib$name'
17324soname_spec=
17325shrext_cmds=".so"
17326postinstall_cmds=
17327postuninstall_cmds=
17328finish_cmds=
17329finish_eval=
17330shlibpath_var=
17331shlibpath_overrides_runpath=unknown
17332version_type=none
17333dynamic_linker="$host_os ld.so"
17334sys_lib_dlsearch_path_spec="/lib /usr/lib"
17335if test "$GCC" = yes; then
17336  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17337  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17338    # if the path contains ";" then we assume it to be the separator
17339    # otherwise default to the standard path separator (i.e. ":") - it is
17340    # assumed that no part of a normal pathname contains ";" but that should
17341    # okay in the real world where ";" in dirpaths is itself problematic.
17342    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17343  else
17344    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17345  fi
17346else
17347  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17348fi
17349need_lib_prefix=unknown
17350hardcode_into_libs=no
17351
17352# when you set need_version to no, make sure it does not cause -set_version
17353# flags to be left without arguments
17354need_version=unknown
17355
17356case $host_os in
17357aix3*)
17358  version_type=linux
17359  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17360  shlibpath_var=LIBPATH
17361
17362  # AIX 3 has no versioning support, so we append a major version to the name.
17363  soname_spec='${libname}${release}${shared_ext}$major'
17364  ;;
17365
17366aix4* | aix5*)
17367  version_type=linux
17368  need_lib_prefix=no
17369  need_version=no
17370  hardcode_into_libs=yes
17371  if test "$host_cpu" = ia64; then
17372    # AIX 5 supports IA64
17373    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17374    shlibpath_var=LD_LIBRARY_PATH
17375  else
17376    # With GCC up to 2.95.x, collect2 would create an import file
17377    # for dependence libraries.  The import file would start with
17378    # the line `#! .'.  This would cause the generated library to
17379    # depend on `.', always an invalid library.  This was fixed in
17380    # development snapshots of GCC prior to 3.0.
17381    case $host_os in
17382      aix4 | aix4.[01] | aix4.[01].*)
17383      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17384	   echo ' yes '
17385	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17386	:
17387      else
17388	can_build_shared=no
17389      fi
17390      ;;
17391    esac
17392    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17393    # soname into executable. Probably we can add versioning support to
17394    # collect2, so additional links can be useful in future.
17395    if test "$aix_use_runtimelinking" = yes; then
17396      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17397      # instead of lib<name>.a to let people know that these are not
17398      # typical AIX shared libraries.
17399      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17400    else
17401      # We preserve .a as extension for shared libraries through AIX4.2
17402      # and later when we are not doing run time linking.
17403      library_names_spec='${libname}${release}.a $libname.a'
17404      soname_spec='${libname}${release}${shared_ext}$major'
17405    fi
17406    shlibpath_var=LIBPATH
17407  fi
17408  ;;
17409
17410amigaos*)
17411  library_names_spec='$libname.ixlibrary $libname.a'
17412  # Create ${libname}_ixlibrary.a entries in /sys/libs.
17413  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'
17414  ;;
17415
17416beos*)
17417  library_names_spec='${libname}${shared_ext}'
17418  dynamic_linker="$host_os ld.so"
17419  shlibpath_var=LIBRARY_PATH
17420  ;;
17421
17422bsdi[45]*)
17423  version_type=linux
17424  need_version=no
17425  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17426  soname_spec='${libname}${release}${shared_ext}$major'
17427  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17428  shlibpath_var=LD_LIBRARY_PATH
17429  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17430  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17431  # the default ld.so.conf also contains /usr/contrib/lib and
17432  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17433  # libtool to hard-code these into programs
17434  ;;
17435
17436cygwin* | mingw* | pw32*)
17437  version_type=windows
17438  shrext_cmds=".dll"
17439  need_version=no
17440  need_lib_prefix=no
17441
17442  case $GCC,$host_os in
17443  yes,cygwin* | yes,mingw* | yes,pw32*)
17444    library_names_spec='$libname.dll.a'
17445    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17446    postinstall_cmds='base_file=`basename \${file}`~
17447      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17448      dldir=$destdir/`dirname \$dlpath`~
17449      test -d \$dldir || mkdir -p \$dldir~
17450      $install_prog $dir/$dlname \$dldir/$dlname~
17451      chmod a+x \$dldir/$dlname'
17452    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17453      dlpath=$dir/\$dldll~
17454       $rm \$dlpath'
17455    shlibpath_overrides_runpath=yes
17456
17457    case $host_os in
17458    cygwin*)
17459      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17460      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17461      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17462      ;;
17463    mingw*)
17464      # MinGW DLLs use traditional 'lib' prefix
17465      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17466      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17467      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17468        # It is most probably a Windows format PATH printed by
17469        # mingw gcc, but we are running on Cygwin. Gcc prints its search
17470        # path with ; separators, and with drive letters. We can handle the
17471        # drive letters (cygwin fileutils understands them), so leave them,
17472        # especially as we might pass files found there to a mingw objdump,
17473        # which wouldn't understand a cygwinified path. Ahh.
17474        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17475      else
17476        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17477      fi
17478      ;;
17479    pw32*)
17480      # pw32 DLLs use 'pw' prefix rather than 'lib'
17481      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17482      ;;
17483    esac
17484    ;;
17485
17486  *)
17487    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17488    ;;
17489  esac
17490  dynamic_linker='Win32 ld.exe'
17491  # FIXME: first we should search . and the directory the executable is in
17492  shlibpath_var=PATH
17493  ;;
17494
17495darwin* | rhapsody*)
17496  dynamic_linker="$host_os dyld"
17497  version_type=darwin
17498  need_lib_prefix=no
17499  need_version=no
17500  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17501  soname_spec='${libname}${release}${major}$shared_ext'
17502  shlibpath_overrides_runpath=yes
17503  shlibpath_var=DYLD_LIBRARY_PATH
17504  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17505  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17506  if test "$GCC" = yes; then
17507    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"`
17508  else
17509    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17510  fi
17511  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17512  ;;
17513
17514dgux*)
17515  version_type=linux
17516  need_lib_prefix=no
17517  need_version=no
17518  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17519  soname_spec='${libname}${release}${shared_ext}$major'
17520  shlibpath_var=LD_LIBRARY_PATH
17521  ;;
17522
17523freebsd1*)
17524  dynamic_linker=no
17525  ;;
17526
17527kfreebsd*-gnu)
17528  version_type=linux
17529  need_lib_prefix=no
17530  need_version=no
17531  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17532  soname_spec='${libname}${release}${shared_ext}$major'
17533  shlibpath_var=LD_LIBRARY_PATH
17534  shlibpath_overrides_runpath=no
17535  hardcode_into_libs=yes
17536  dynamic_linker='GNU ld.so'
17537  ;;
17538
17539freebsd* | dragonfly*)
17540  # DragonFly does not have aout.  When/if they implement a new
17541  # versioning mechanism, adjust this.
17542  if test -x /usr/bin/objformat; then
17543    objformat=`/usr/bin/objformat`
17544  else
17545    case $host_os in
17546    freebsd[123]*) objformat=aout ;;
17547    *) objformat=elf ;;
17548    esac
17549  fi
17550  version_type=freebsd-$objformat
17551  case $version_type in
17552    freebsd-elf*)
17553      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17554      need_version=no
17555      need_lib_prefix=no
17556      ;;
17557    freebsd-*)
17558      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17559      need_version=yes
17560      ;;
17561  esac
17562  shlibpath_var=LD_LIBRARY_PATH
17563  case $host_os in
17564  freebsd2*)
17565    shlibpath_overrides_runpath=yes
17566    ;;
17567  freebsd3.[01]* | freebsdelf3.[01]*)
17568    shlibpath_overrides_runpath=yes
17569    hardcode_into_libs=yes
17570    ;;
17571  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17572  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17573    shlibpath_overrides_runpath=no
17574    hardcode_into_libs=yes
17575    ;;
17576  freebsd*) # from 4.6 on
17577    shlibpath_overrides_runpath=yes
17578    hardcode_into_libs=yes
17579    ;;
17580  esac
17581  ;;
17582
17583gnu*)
17584  version_type=linux
17585  need_lib_prefix=no
17586  need_version=no
17587  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17588  soname_spec='${libname}${release}${shared_ext}$major'
17589  shlibpath_var=LD_LIBRARY_PATH
17590  hardcode_into_libs=yes
17591  ;;
17592
17593hpux9* | hpux10* | hpux11*)
17594  # Give a soname corresponding to the major version so that dld.sl refuses to
17595  # link against other versions.
17596  version_type=sunos
17597  need_lib_prefix=no
17598  need_version=no
17599  case $host_cpu in
17600  ia64*)
17601    shrext_cmds='.so'
17602    hardcode_into_libs=yes
17603    dynamic_linker="$host_os dld.so"
17604    shlibpath_var=LD_LIBRARY_PATH
17605    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17606    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17607    soname_spec='${libname}${release}${shared_ext}$major'
17608    if test "X$HPUX_IA64_MODE" = X32; then
17609      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17610    else
17611      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17612    fi
17613    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17614    ;;
17615   hppa*64*)
17616     shrext_cmds='.sl'
17617     hardcode_into_libs=yes
17618     dynamic_linker="$host_os dld.sl"
17619     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17620     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17621     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17622     soname_spec='${libname}${release}${shared_ext}$major'
17623     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17624     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17625     ;;
17626   *)
17627    shrext_cmds='.sl'
17628    dynamic_linker="$host_os dld.sl"
17629    shlibpath_var=SHLIB_PATH
17630    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17631    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17632    soname_spec='${libname}${release}${shared_ext}$major'
17633    ;;
17634  esac
17635  # HP-UX runs *really* slowly unless shared libraries are mode 555.
17636  postinstall_cmds='chmod 555 $lib'
17637  ;;
17638
17639interix3*)
17640  version_type=linux
17641  need_lib_prefix=no
17642  need_version=no
17643  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17644  soname_spec='${libname}${release}${shared_ext}$major'
17645  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17646  shlibpath_var=LD_LIBRARY_PATH
17647  shlibpath_overrides_runpath=no
17648  hardcode_into_libs=yes
17649  ;;
17650
17651irix5* | irix6* | nonstopux*)
17652  case $host_os in
17653    nonstopux*) version_type=nonstopux ;;
17654    *)
17655	if test "$lt_cv_prog_gnu_ld" = yes; then
17656		version_type=linux
17657	else
17658		version_type=irix
17659	fi ;;
17660  esac
17661  need_lib_prefix=no
17662  need_version=no
17663  soname_spec='${libname}${release}${shared_ext}$major'
17664  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17665  case $host_os in
17666  irix5* | nonstopux*)
17667    libsuff= shlibsuff=
17668    ;;
17669  *)
17670    case $LD in # libtool.m4 will add one of these switches to LD
17671    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17672      libsuff= shlibsuff= libmagic=32-bit;;
17673    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17674      libsuff=32 shlibsuff=N32 libmagic=N32;;
17675    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17676      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17677    *) libsuff= shlibsuff= libmagic=never-match;;
17678    esac
17679    ;;
17680  esac
17681  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17682  shlibpath_overrides_runpath=no
17683  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17684  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17685  hardcode_into_libs=yes
17686  ;;
17687
17688# No shared lib support for Linux oldld, aout, or coff.
17689linux*oldld* | linux*aout* | linux*coff*)
17690  dynamic_linker=no
17691  ;;
17692
17693# This must be Linux ELF.
17694linux*)
17695  version_type=linux
17696  need_lib_prefix=no
17697  need_version=no
17698  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17699  soname_spec='${libname}${release}${shared_ext}$major'
17700  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17701  shlibpath_var=LD_LIBRARY_PATH
17702  shlibpath_overrides_runpath=no
17703  # This implies no fast_install, which is unacceptable.
17704  # Some rework will be needed to allow for fast_install
17705  # before this can be enabled.
17706  hardcode_into_libs=yes
17707
17708  # Append ld.so.conf contents to the search path
17709  if test -f /etc/ld.so.conf; then
17710    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' ' '`
17711    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17712  fi
17713
17714  # We used to test for /lib/ld.so.1 and disable shared libraries on
17715  # powerpc, because MkLinux only supported shared libraries with the
17716  # GNU dynamic linker.  Since this was broken with cross compilers,
17717  # most powerpc-linux boxes support dynamic linking these days and
17718  # people can always --disable-shared, the test was removed, and we
17719  # assume the GNU/Linux dynamic linker is in use.
17720  dynamic_linker='GNU/Linux ld.so'
17721  ;;
17722
17723knetbsd*-gnu)
17724  version_type=linux
17725  need_lib_prefix=no
17726  need_version=no
17727  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17728  soname_spec='${libname}${release}${shared_ext}$major'
17729  shlibpath_var=LD_LIBRARY_PATH
17730  shlibpath_overrides_runpath=no
17731  hardcode_into_libs=yes
17732  dynamic_linker='GNU ld.so'
17733  ;;
17734
17735netbsd*)
17736  version_type=sunos
17737  need_lib_prefix=no
17738  need_version=no
17739  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17740    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17741    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17742    dynamic_linker='NetBSD (a.out) ld.so'
17743  else
17744    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17745    soname_spec='${libname}${release}${shared_ext}$major'
17746    dynamic_linker='NetBSD ld.elf_so'
17747  fi
17748  shlibpath_var=LD_LIBRARY_PATH
17749  shlibpath_overrides_runpath=yes
17750  hardcode_into_libs=yes
17751  ;;
17752
17753newsos6)
17754  version_type=linux
17755  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17756  shlibpath_var=LD_LIBRARY_PATH
17757  shlibpath_overrides_runpath=yes
17758  ;;
17759
17760nto-qnx*)
17761  version_type=linux
17762  need_lib_prefix=no
17763  need_version=no
17764  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17765  soname_spec='${libname}${release}${shared_ext}$major'
17766  shlibpath_var=LD_LIBRARY_PATH
17767  shlibpath_overrides_runpath=yes
17768  ;;
17769
17770openbsd*)
17771  version_type=sunos
17772  sys_lib_dlsearch_path_spec="/usr/lib"
17773  need_lib_prefix=no
17774  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17775  case $host_os in
17776    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17777    *)                         need_version=no  ;;
17778  esac
17779  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17780  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17781  shlibpath_var=LD_LIBRARY_PATH
17782  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17783    case $host_os in
17784      openbsd2.[89] | openbsd2.[89].*)
17785	shlibpath_overrides_runpath=no
17786	;;
17787      *)
17788	shlibpath_overrides_runpath=yes
17789	;;
17790      esac
17791  else
17792    shlibpath_overrides_runpath=yes
17793  fi
17794  ;;
17795
17796os2*)
17797  libname_spec='$name'
17798  shrext_cmds=".dll"
17799  need_lib_prefix=no
17800  library_names_spec='$libname${shared_ext} $libname.a'
17801  dynamic_linker='OS/2 ld.exe'
17802  shlibpath_var=LIBPATH
17803  ;;
17804
17805osf3* | osf4* | osf5*)
17806  version_type=osf
17807  need_lib_prefix=no
17808  need_version=no
17809  soname_spec='${libname}${release}${shared_ext}$major'
17810  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17811  shlibpath_var=LD_LIBRARY_PATH
17812  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17813  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17814  ;;
17815
17816solaris*)
17817  version_type=linux
17818  need_lib_prefix=no
17819  need_version=no
17820  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17821  soname_spec='${libname}${release}${shared_ext}$major'
17822  shlibpath_var=LD_LIBRARY_PATH
17823  shlibpath_overrides_runpath=yes
17824  hardcode_into_libs=yes
17825  # ldd complains unless libraries are executable
17826  postinstall_cmds='chmod +x $lib'
17827  ;;
17828
17829sunos4*)
17830  version_type=sunos
17831  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17832  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17833  shlibpath_var=LD_LIBRARY_PATH
17834  shlibpath_overrides_runpath=yes
17835  if test "$with_gnu_ld" = yes; then
17836    need_lib_prefix=no
17837  fi
17838  need_version=yes
17839  ;;
17840
17841sysv4 | sysv4.3*)
17842  version_type=linux
17843  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17844  soname_spec='${libname}${release}${shared_ext}$major'
17845  shlibpath_var=LD_LIBRARY_PATH
17846  case $host_vendor in
17847    sni)
17848      shlibpath_overrides_runpath=no
17849      need_lib_prefix=no
17850      export_dynamic_flag_spec='${wl}-Blargedynsym'
17851      runpath_var=LD_RUN_PATH
17852      ;;
17853    siemens)
17854      need_lib_prefix=no
17855      ;;
17856    motorola)
17857      need_lib_prefix=no
17858      need_version=no
17859      shlibpath_overrides_runpath=no
17860      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17861      ;;
17862  esac
17863  ;;
17864
17865sysv4*MP*)
17866  if test -d /usr/nec ;then
17867    version_type=linux
17868    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17869    soname_spec='$libname${shared_ext}.$major'
17870    shlibpath_var=LD_LIBRARY_PATH
17871  fi
17872  ;;
17873
17874sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17875  version_type=freebsd-elf
17876  need_lib_prefix=no
17877  need_version=no
17878  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17879  soname_spec='${libname}${release}${shared_ext}$major'
17880  shlibpath_var=LD_LIBRARY_PATH
17881  hardcode_into_libs=yes
17882  if test "$with_gnu_ld" = yes; then
17883    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17884    shlibpath_overrides_runpath=no
17885  else
17886    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17887    shlibpath_overrides_runpath=yes
17888    case $host_os in
17889      sco3.2v5*)
17890        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17891	;;
17892    esac
17893  fi
17894  sys_lib_dlsearch_path_spec='/usr/lib'
17895  ;;
17896
17897uts4*)
17898  version_type=linux
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  shlibpath_var=LD_LIBRARY_PATH
17902  ;;
17903
17904*)
17905  dynamic_linker=no
17906  ;;
17907esac
17908echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17909echo "${ECHO_T}$dynamic_linker" >&6
17910test "$dynamic_linker" = no && can_build_shared=no
17911
17912variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17913if test "$GCC" = yes; then
17914  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17915fi
17916
17917echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17918echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17919hardcode_action_GCJ=
17920if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17921   test -n "$runpath_var_GCJ" || \
17922   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17923
17924  # We can hardcode non-existant directories.
17925  if test "$hardcode_direct_GCJ" != no &&
17926     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17927     # have to relink, otherwise we might link with an installed library
17928     # when we should be linking with a yet-to-be-installed one
17929     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17930     test "$hardcode_minus_L_GCJ" != no; then
17931    # Linking always hardcodes the temporary library directory.
17932    hardcode_action_GCJ=relink
17933  else
17934    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17935    hardcode_action_GCJ=immediate
17936  fi
17937else
17938  # We cannot hardcode anything, or else we can only hardcode existing
17939  # directories.
17940  hardcode_action_GCJ=unsupported
17941fi
17942echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17943echo "${ECHO_T}$hardcode_action_GCJ" >&6
17944
17945if test "$hardcode_action_GCJ" = relink; then
17946  # Fast installation is not supported
17947  enable_fast_install=no
17948elif test "$shlibpath_overrides_runpath" = yes ||
17949     test "$enable_shared" = no; then
17950  # Fast installation is not necessary
17951  enable_fast_install=needless
17952fi
17953
17954
17955# The else clause should only fire when bootstrapping the
17956# libtool distribution, otherwise you forgot to ship ltmain.sh
17957# with your package, and you will get complaints that there are
17958# no rules to generate ltmain.sh.
17959if test -f "$ltmain"; then
17960  # See if we are running on zsh, and set the options which allow our commands through
17961  # without removal of \ escapes.
17962  if test -n "${ZSH_VERSION+set}" ; then
17963    setopt NO_GLOB_SUBST
17964  fi
17965  # Now quote all the things that may contain metacharacters while being
17966  # careful not to overquote the AC_SUBSTed values.  We take copies of the
17967  # variables and quote the copies for generation of the libtool script.
17968  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17969    SED SHELL STRIP \
17970    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17971    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17972    deplibs_check_method reload_flag reload_cmds need_locks \
17973    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17974    lt_cv_sys_global_symbol_to_c_name_address \
17975    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17976    old_postinstall_cmds old_postuninstall_cmds \
17977    compiler_GCJ \
17978    CC_GCJ \
17979    LD_GCJ \
17980    lt_prog_compiler_wl_GCJ \
17981    lt_prog_compiler_pic_GCJ \
17982    lt_prog_compiler_static_GCJ \
17983    lt_prog_compiler_no_builtin_flag_GCJ \
17984    export_dynamic_flag_spec_GCJ \
17985    thread_safe_flag_spec_GCJ \
17986    whole_archive_flag_spec_GCJ \
17987    enable_shared_with_static_runtimes_GCJ \
17988    old_archive_cmds_GCJ \
17989    old_archive_from_new_cmds_GCJ \
17990    predep_objects_GCJ \
17991    postdep_objects_GCJ \
17992    predeps_GCJ \
17993    postdeps_GCJ \
17994    compiler_lib_search_path_GCJ \
17995    archive_cmds_GCJ \
17996    archive_expsym_cmds_GCJ \
17997    postinstall_cmds_GCJ \
17998    postuninstall_cmds_GCJ \
17999    old_archive_from_expsyms_cmds_GCJ \
18000    allow_undefined_flag_GCJ \
18001    no_undefined_flag_GCJ \
18002    export_symbols_cmds_GCJ \
18003    hardcode_libdir_flag_spec_GCJ \
18004    hardcode_libdir_flag_spec_ld_GCJ \
18005    hardcode_libdir_separator_GCJ \
18006    hardcode_automatic_GCJ \
18007    module_cmds_GCJ \
18008    module_expsym_cmds_GCJ \
18009    lt_cv_prog_compiler_c_o_GCJ \
18010    exclude_expsyms_GCJ \
18011    include_expsyms_GCJ; do
18012
18013    case $var in
18014    old_archive_cmds_GCJ | \
18015    old_archive_from_new_cmds_GCJ | \
18016    archive_cmds_GCJ | \
18017    archive_expsym_cmds_GCJ | \
18018    module_cmds_GCJ | \
18019    module_expsym_cmds_GCJ | \
18020    old_archive_from_expsyms_cmds_GCJ | \
18021    export_symbols_cmds_GCJ | \
18022    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18023    postinstall_cmds | postuninstall_cmds | \
18024    old_postinstall_cmds | old_postuninstall_cmds | \
18025    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18026      # Double-quote double-evaled strings.
18027      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18028      ;;
18029    *)
18030      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18031      ;;
18032    esac
18033  done
18034
18035  case $lt_echo in
18036  *'\$0 --fallback-echo"')
18037    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18038    ;;
18039  esac
18040
18041cfgfile="$ofile"
18042
18043  cat <<__EOF__ >> "$cfgfile"
18044# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18045
18046# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18047
18048# Shell to use when invoking shell scripts.
18049SHELL=$lt_SHELL
18050
18051# Whether or not to build shared libraries.
18052build_libtool_libs=$enable_shared
18053
18054# Whether or not to build static libraries.
18055build_old_libs=$enable_static
18056
18057# Whether or not to add -lc for building shared libraries.
18058build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18059
18060# Whether or not to disallow shared libs when runtime libs are static
18061allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18062
18063# Whether or not to optimize for fast installation.
18064fast_install=$enable_fast_install
18065
18066# The host system.
18067host_alias=$host_alias
18068host=$host
18069host_os=$host_os
18070
18071# The build system.
18072build_alias=$build_alias
18073build=$build
18074build_os=$build_os
18075
18076# An echo program that does not interpret backslashes.
18077echo=$lt_echo
18078
18079# The archiver.
18080AR=$lt_AR
18081AR_FLAGS=$lt_AR_FLAGS
18082
18083# A C compiler.
18084LTCC=$lt_LTCC
18085
18086# LTCC compiler flags.
18087LTCFLAGS=$lt_LTCFLAGS
18088
18089# A language-specific compiler.
18090CC=$lt_compiler_GCJ
18091
18092# Is the compiler the GNU C compiler?
18093with_gcc=$GCC_GCJ
18094
18095# An ERE matcher.
18096EGREP=$lt_EGREP
18097
18098# The linker used to build libraries.
18099LD=$lt_LD_GCJ
18100
18101# Whether we need hard or soft links.
18102LN_S=$lt_LN_S
18103
18104# A BSD-compatible nm program.
18105NM=$lt_NM
18106
18107# A symbol stripping program
18108STRIP=$lt_STRIP
18109
18110# Used to examine libraries when file_magic_cmd begins "file"
18111MAGIC_CMD=$MAGIC_CMD
18112
18113# Used on cygwin: DLL creation program.
18114DLLTOOL="$DLLTOOL"
18115
18116# Used on cygwin: object dumper.
18117OBJDUMP="$OBJDUMP"
18118
18119# Used on cygwin: assembler.
18120AS="$AS"
18121
18122# The name of the directory that contains temporary libtool files.
18123objdir=$objdir
18124
18125# How to create reloadable object files.
18126reload_flag=$lt_reload_flag
18127reload_cmds=$lt_reload_cmds
18128
18129# How to pass a linker flag through the compiler.
18130wl=$lt_lt_prog_compiler_wl_GCJ
18131
18132# Object file suffix (normally "o").
18133objext="$ac_objext"
18134
18135# Old archive suffix (normally "a").
18136libext="$libext"
18137
18138# Shared library suffix (normally ".so").
18139shrext_cmds='$shrext_cmds'
18140
18141# Executable file suffix (normally "").
18142exeext="$exeext"
18143
18144# Additional compiler flags for building library objects.
18145pic_flag=$lt_lt_prog_compiler_pic_GCJ
18146pic_mode=$pic_mode
18147
18148# What is the maximum length of a command?
18149max_cmd_len=$lt_cv_sys_max_cmd_len
18150
18151# Does compiler simultaneously support -c and -o options?
18152compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18153
18154# Must we lock files when doing compilation?
18155need_locks=$lt_need_locks
18156
18157# Do we need the lib prefix for modules?
18158need_lib_prefix=$need_lib_prefix
18159
18160# Do we need a version for libraries?
18161need_version=$need_version
18162
18163# Whether dlopen is supported.
18164dlopen_support=$enable_dlopen
18165
18166# Whether dlopen of programs is supported.
18167dlopen_self=$enable_dlopen_self
18168
18169# Whether dlopen of statically linked programs is supported.
18170dlopen_self_static=$enable_dlopen_self_static
18171
18172# Compiler flag to prevent dynamic linking.
18173link_static_flag=$lt_lt_prog_compiler_static_GCJ
18174
18175# Compiler flag to turn off builtin functions.
18176no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18177
18178# Compiler flag to allow reflexive dlopens.
18179export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18180
18181# Compiler flag to generate shared objects directly from archives.
18182whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18183
18184# Compiler flag to generate thread-safe objects.
18185thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18186
18187# Library versioning type.
18188version_type=$version_type
18189
18190# Format of library name prefix.
18191libname_spec=$lt_libname_spec
18192
18193# List of archive names.  First name is the real one, the rest are links.
18194# The last name is the one that the linker finds with -lNAME.
18195library_names_spec=$lt_library_names_spec
18196
18197# The coded name of the library, if different from the real name.
18198soname_spec=$lt_soname_spec
18199
18200# Commands used to build and install an old-style archive.
18201RANLIB=$lt_RANLIB
18202old_archive_cmds=$lt_old_archive_cmds_GCJ
18203old_postinstall_cmds=$lt_old_postinstall_cmds
18204old_postuninstall_cmds=$lt_old_postuninstall_cmds
18205
18206# Create an old-style archive from a shared archive.
18207old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18208
18209# Create a temporary old-style archive to link instead of a shared archive.
18210old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18211
18212# Commands used to build and install a shared archive.
18213archive_cmds=$lt_archive_cmds_GCJ
18214archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18215postinstall_cmds=$lt_postinstall_cmds
18216postuninstall_cmds=$lt_postuninstall_cmds
18217
18218# Commands used to build a loadable module (assumed same as above if empty)
18219module_cmds=$lt_module_cmds_GCJ
18220module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18221
18222# Commands to strip libraries.
18223old_striplib=$lt_old_striplib
18224striplib=$lt_striplib
18225
18226# Dependencies to place before the objects being linked to create a
18227# shared library.
18228predep_objects=$lt_predep_objects_GCJ
18229
18230# Dependencies to place after the objects being linked to create a
18231# shared library.
18232postdep_objects=$lt_postdep_objects_GCJ
18233
18234# Dependencies to place before the objects being linked to create a
18235# shared library.
18236predeps=$lt_predeps_GCJ
18237
18238# Dependencies to place after the objects being linked to create a
18239# shared library.
18240postdeps=$lt_postdeps_GCJ
18241
18242# The library search path used internally by the compiler when linking
18243# a shared library.
18244compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18245
18246# Method to check whether dependent libraries are shared objects.
18247deplibs_check_method=$lt_deplibs_check_method
18248
18249# Command to use when deplibs_check_method == file_magic.
18250file_magic_cmd=$lt_file_magic_cmd
18251
18252# Flag that allows shared libraries with undefined symbols to be built.
18253allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18254
18255# Flag that forces no undefined symbols.
18256no_undefined_flag=$lt_no_undefined_flag_GCJ
18257
18258# Commands used to finish a libtool library installation in a directory.
18259finish_cmds=$lt_finish_cmds
18260
18261# Same as above, but a single script fragment to be evaled but not shown.
18262finish_eval=$lt_finish_eval
18263
18264# Take the output of nm and produce a listing of raw symbols and C names.
18265global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18266
18267# Transform the output of nm in a proper C declaration
18268global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18269
18270# Transform the output of nm in a C name address pair
18271global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18272
18273# This is the shared library runtime path variable.
18274runpath_var=$runpath_var
18275
18276# This is the shared library path variable.
18277shlibpath_var=$shlibpath_var
18278
18279# Is shlibpath searched before the hard-coded library search path?
18280shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18281
18282# How to hardcode a shared library path into an executable.
18283hardcode_action=$hardcode_action_GCJ
18284
18285# Whether we should hardcode library paths into libraries.
18286hardcode_into_libs=$hardcode_into_libs
18287
18288# Flag to hardcode \$libdir into a binary during linking.
18289# This must work even if \$libdir does not exist.
18290hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18291
18292# If ld is used when linking, flag to hardcode \$libdir into
18293# a binary during linking. This must work even if \$libdir does
18294# not exist.
18295hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18296
18297# Whether we need a single -rpath flag with a separated argument.
18298hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18299
18300# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18301# resulting binary.
18302hardcode_direct=$hardcode_direct_GCJ
18303
18304# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18305# resulting binary.
18306hardcode_minus_L=$hardcode_minus_L_GCJ
18307
18308# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18309# the resulting binary.
18310hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18311
18312# Set to yes if building a shared library automatically hardcodes DIR into the library
18313# and all subsequent libraries and executables linked against it.
18314hardcode_automatic=$hardcode_automatic_GCJ
18315
18316# Variables whose values should be saved in libtool wrapper scripts and
18317# restored at relink time.
18318variables_saved_for_relink="$variables_saved_for_relink"
18319
18320# Whether libtool must link a program against all its dependency libraries.
18321link_all_deplibs=$link_all_deplibs_GCJ
18322
18323# Compile-time system search path for libraries
18324sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18325
18326# Run-time system search path for libraries
18327sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18328
18329# Fix the shell variable \$srcfile for the compiler.
18330fix_srcfile_path="$fix_srcfile_path_GCJ"
18331
18332# Set to yes if exported symbols are required.
18333always_export_symbols=$always_export_symbols_GCJ
18334
18335# The commands to list exported symbols.
18336export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18337
18338# The commands to extract the exported symbol list from a shared archive.
18339extract_expsyms_cmds=$lt_extract_expsyms_cmds
18340
18341# Symbols that should not be listed in the preloaded symbols.
18342exclude_expsyms=$lt_exclude_expsyms_GCJ
18343
18344# Symbols that must always be exported.
18345include_expsyms=$lt_include_expsyms_GCJ
18346
18347# ### END LIBTOOL TAG CONFIG: $tagname
18348
18349__EOF__
18350
18351
18352else
18353  # If there is no Makefile yet, we rely on a make rule to execute
18354  # `config.status --recheck' to rerun these tests and create the
18355  # libtool script then.
18356  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18357  if test -f "$ltmain_in"; then
18358    test -f Makefile && make "$ltmain"
18359  fi
18360fi
18361
18362
18363ac_ext=c
18364ac_cpp='$CPP $CPPFLAGS'
18365ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18366ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18367ac_compiler_gnu=$ac_cv_c_compiler_gnu
18368
18369CC="$lt_save_CC"
18370
18371	else
18372	  tagname=""
18373	fi
18374	;;
18375
18376      RC)
18377
18378
18379
18380# Source file extension for RC test sources.
18381ac_ext=rc
18382
18383# Object file extension for compiled RC test sources.
18384objext=o
18385objext_RC=$objext
18386
18387# Code to be used in simple compile tests
18388lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18389
18390# Code to be used in simple link tests
18391lt_simple_link_test_code="$lt_simple_compile_test_code"
18392
18393# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18394
18395# If no C compiler was specified, use CC.
18396LTCC=${LTCC-"$CC"}
18397
18398# If no C compiler flags were specified, use CFLAGS.
18399LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18400
18401# Allow CC to be a program name with arguments.
18402compiler=$CC
18403
18404
18405# save warnings/boilerplate of simple test code
18406ac_outfile=conftest.$ac_objext
18407printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18408eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18409_lt_compiler_boilerplate=`cat conftest.err`
18410$rm conftest*
18411
18412ac_outfile=conftest.$ac_objext
18413printf "$lt_simple_link_test_code" >conftest.$ac_ext
18414eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18415_lt_linker_boilerplate=`cat conftest.err`
18416$rm conftest*
18417
18418
18419# Allow CC to be a program name with arguments.
18420lt_save_CC="$CC"
18421CC=${RC-"windres"}
18422compiler=$CC
18423compiler_RC=$CC
18424for cc_temp in $compiler""; do
18425  case $cc_temp in
18426    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18427    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18428    \-*) ;;
18429    *) break;;
18430  esac
18431done
18432cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18433
18434lt_cv_prog_compiler_c_o_RC=yes
18435
18436# The else clause should only fire when bootstrapping the
18437# libtool distribution, otherwise you forgot to ship ltmain.sh
18438# with your package, and you will get complaints that there are
18439# no rules to generate ltmain.sh.
18440if test -f "$ltmain"; then
18441  # See if we are running on zsh, and set the options which allow our commands through
18442  # without removal of \ escapes.
18443  if test -n "${ZSH_VERSION+set}" ; then
18444    setopt NO_GLOB_SUBST
18445  fi
18446  # Now quote all the things that may contain metacharacters while being
18447  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18448  # variables and quote the copies for generation of the libtool script.
18449  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18450    SED SHELL STRIP \
18451    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18452    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18453    deplibs_check_method reload_flag reload_cmds need_locks \
18454    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18455    lt_cv_sys_global_symbol_to_c_name_address \
18456    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18457    old_postinstall_cmds old_postuninstall_cmds \
18458    compiler_RC \
18459    CC_RC \
18460    LD_RC \
18461    lt_prog_compiler_wl_RC \
18462    lt_prog_compiler_pic_RC \
18463    lt_prog_compiler_static_RC \
18464    lt_prog_compiler_no_builtin_flag_RC \
18465    export_dynamic_flag_spec_RC \
18466    thread_safe_flag_spec_RC \
18467    whole_archive_flag_spec_RC \
18468    enable_shared_with_static_runtimes_RC \
18469    old_archive_cmds_RC \
18470    old_archive_from_new_cmds_RC \
18471    predep_objects_RC \
18472    postdep_objects_RC \
18473    predeps_RC \
18474    postdeps_RC \
18475    compiler_lib_search_path_RC \
18476    archive_cmds_RC \
18477    archive_expsym_cmds_RC \
18478    postinstall_cmds_RC \
18479    postuninstall_cmds_RC \
18480    old_archive_from_expsyms_cmds_RC \
18481    allow_undefined_flag_RC \
18482    no_undefined_flag_RC \
18483    export_symbols_cmds_RC \
18484    hardcode_libdir_flag_spec_RC \
18485    hardcode_libdir_flag_spec_ld_RC \
18486    hardcode_libdir_separator_RC \
18487    hardcode_automatic_RC \
18488    module_cmds_RC \
18489    module_expsym_cmds_RC \
18490    lt_cv_prog_compiler_c_o_RC \
18491    exclude_expsyms_RC \
18492    include_expsyms_RC; do
18493
18494    case $var in
18495    old_archive_cmds_RC | \
18496    old_archive_from_new_cmds_RC | \
18497    archive_cmds_RC | \
18498    archive_expsym_cmds_RC | \
18499    module_cmds_RC | \
18500    module_expsym_cmds_RC | \
18501    old_archive_from_expsyms_cmds_RC | \
18502    export_symbols_cmds_RC | \
18503    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18504    postinstall_cmds | postuninstall_cmds | \
18505    old_postinstall_cmds | old_postuninstall_cmds | \
18506    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18507      # Double-quote double-evaled strings.
18508      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18509      ;;
18510    *)
18511      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18512      ;;
18513    esac
18514  done
18515
18516  case $lt_echo in
18517  *'\$0 --fallback-echo"')
18518    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18519    ;;
18520  esac
18521
18522cfgfile="$ofile"
18523
18524  cat <<__EOF__ >> "$cfgfile"
18525# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18526
18527# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18528
18529# Shell to use when invoking shell scripts.
18530SHELL=$lt_SHELL
18531
18532# Whether or not to build shared libraries.
18533build_libtool_libs=$enable_shared
18534
18535# Whether or not to build static libraries.
18536build_old_libs=$enable_static
18537
18538# Whether or not to add -lc for building shared libraries.
18539build_libtool_need_lc=$archive_cmds_need_lc_RC
18540
18541# Whether or not to disallow shared libs when runtime libs are static
18542allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18543
18544# Whether or not to optimize for fast installation.
18545fast_install=$enable_fast_install
18546
18547# The host system.
18548host_alias=$host_alias
18549host=$host
18550host_os=$host_os
18551
18552# The build system.
18553build_alias=$build_alias
18554build=$build
18555build_os=$build_os
18556
18557# An echo program that does not interpret backslashes.
18558echo=$lt_echo
18559
18560# The archiver.
18561AR=$lt_AR
18562AR_FLAGS=$lt_AR_FLAGS
18563
18564# A C compiler.
18565LTCC=$lt_LTCC
18566
18567# LTCC compiler flags.
18568LTCFLAGS=$lt_LTCFLAGS
18569
18570# A language-specific compiler.
18571CC=$lt_compiler_RC
18572
18573# Is the compiler the GNU C compiler?
18574with_gcc=$GCC_RC
18575
18576# An ERE matcher.
18577EGREP=$lt_EGREP
18578
18579# The linker used to build libraries.
18580LD=$lt_LD_RC
18581
18582# Whether we need hard or soft links.
18583LN_S=$lt_LN_S
18584
18585# A BSD-compatible nm program.
18586NM=$lt_NM
18587
18588# A symbol stripping program
18589STRIP=$lt_STRIP
18590
18591# Used to examine libraries when file_magic_cmd begins "file"
18592MAGIC_CMD=$MAGIC_CMD
18593
18594# Used on cygwin: DLL creation program.
18595DLLTOOL="$DLLTOOL"
18596
18597# Used on cygwin: object dumper.
18598OBJDUMP="$OBJDUMP"
18599
18600# Used on cygwin: assembler.
18601AS="$AS"
18602
18603# The name of the directory that contains temporary libtool files.
18604objdir=$objdir
18605
18606# How to create reloadable object files.
18607reload_flag=$lt_reload_flag
18608reload_cmds=$lt_reload_cmds
18609
18610# How to pass a linker flag through the compiler.
18611wl=$lt_lt_prog_compiler_wl_RC
18612
18613# Object file suffix (normally "o").
18614objext="$ac_objext"
18615
18616# Old archive suffix (normally "a").
18617libext="$libext"
18618
18619# Shared library suffix (normally ".so").
18620shrext_cmds='$shrext_cmds'
18621
18622# Executable file suffix (normally "").
18623exeext="$exeext"
18624
18625# Additional compiler flags for building library objects.
18626pic_flag=$lt_lt_prog_compiler_pic_RC
18627pic_mode=$pic_mode
18628
18629# What is the maximum length of a command?
18630max_cmd_len=$lt_cv_sys_max_cmd_len
18631
18632# Does compiler simultaneously support -c and -o options?
18633compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18634
18635# Must we lock files when doing compilation?
18636need_locks=$lt_need_locks
18637
18638# Do we need the lib prefix for modules?
18639need_lib_prefix=$need_lib_prefix
18640
18641# Do we need a version for libraries?
18642need_version=$need_version
18643
18644# Whether dlopen is supported.
18645dlopen_support=$enable_dlopen
18646
18647# Whether dlopen of programs is supported.
18648dlopen_self=$enable_dlopen_self
18649
18650# Whether dlopen of statically linked programs is supported.
18651dlopen_self_static=$enable_dlopen_self_static
18652
18653# Compiler flag to prevent dynamic linking.
18654link_static_flag=$lt_lt_prog_compiler_static_RC
18655
18656# Compiler flag to turn off builtin functions.
18657no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18658
18659# Compiler flag to allow reflexive dlopens.
18660export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18661
18662# Compiler flag to generate shared objects directly from archives.
18663whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18664
18665# Compiler flag to generate thread-safe objects.
18666thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18667
18668# Library versioning type.
18669version_type=$version_type
18670
18671# Format of library name prefix.
18672libname_spec=$lt_libname_spec
18673
18674# List of archive names.  First name is the real one, the rest are links.
18675# The last name is the one that the linker finds with -lNAME.
18676library_names_spec=$lt_library_names_spec
18677
18678# The coded name of the library, if different from the real name.
18679soname_spec=$lt_soname_spec
18680
18681# Commands used to build and install an old-style archive.
18682RANLIB=$lt_RANLIB
18683old_archive_cmds=$lt_old_archive_cmds_RC
18684old_postinstall_cmds=$lt_old_postinstall_cmds
18685old_postuninstall_cmds=$lt_old_postuninstall_cmds
18686
18687# Create an old-style archive from a shared archive.
18688old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18689
18690# Create a temporary old-style archive to link instead of a shared archive.
18691old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18692
18693# Commands used to build and install a shared archive.
18694archive_cmds=$lt_archive_cmds_RC
18695archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18696postinstall_cmds=$lt_postinstall_cmds
18697postuninstall_cmds=$lt_postuninstall_cmds
18698
18699# Commands used to build a loadable module (assumed same as above if empty)
18700module_cmds=$lt_module_cmds_RC
18701module_expsym_cmds=$lt_module_expsym_cmds_RC
18702
18703# Commands to strip libraries.
18704old_striplib=$lt_old_striplib
18705striplib=$lt_striplib
18706
18707# Dependencies to place before the objects being linked to create a
18708# shared library.
18709predep_objects=$lt_predep_objects_RC
18710
18711# Dependencies to place after the objects being linked to create a
18712# shared library.
18713postdep_objects=$lt_postdep_objects_RC
18714
18715# Dependencies to place before the objects being linked to create a
18716# shared library.
18717predeps=$lt_predeps_RC
18718
18719# Dependencies to place after the objects being linked to create a
18720# shared library.
18721postdeps=$lt_postdeps_RC
18722
18723# The library search path used internally by the compiler when linking
18724# a shared library.
18725compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18726
18727# Method to check whether dependent libraries are shared objects.
18728deplibs_check_method=$lt_deplibs_check_method
18729
18730# Command to use when deplibs_check_method == file_magic.
18731file_magic_cmd=$lt_file_magic_cmd
18732
18733# Flag that allows shared libraries with undefined symbols to be built.
18734allow_undefined_flag=$lt_allow_undefined_flag_RC
18735
18736# Flag that forces no undefined symbols.
18737no_undefined_flag=$lt_no_undefined_flag_RC
18738
18739# Commands used to finish a libtool library installation in a directory.
18740finish_cmds=$lt_finish_cmds
18741
18742# Same as above, but a single script fragment to be evaled but not shown.
18743finish_eval=$lt_finish_eval
18744
18745# Take the output of nm and produce a listing of raw symbols and C names.
18746global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18747
18748# Transform the output of nm in a proper C declaration
18749global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18750
18751# Transform the output of nm in a C name address pair
18752global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18753
18754# This is the shared library runtime path variable.
18755runpath_var=$runpath_var
18756
18757# This is the shared library path variable.
18758shlibpath_var=$shlibpath_var
18759
18760# Is shlibpath searched before the hard-coded library search path?
18761shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18762
18763# How to hardcode a shared library path into an executable.
18764hardcode_action=$hardcode_action_RC
18765
18766# Whether we should hardcode library paths into libraries.
18767hardcode_into_libs=$hardcode_into_libs
18768
18769# Flag to hardcode \$libdir into a binary during linking.
18770# This must work even if \$libdir does not exist.
18771hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18772
18773# If ld is used when linking, flag to hardcode \$libdir into
18774# a binary during linking. This must work even if \$libdir does
18775# not exist.
18776hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18777
18778# Whether we need a single -rpath flag with a separated argument.
18779hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18780
18781# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18782# resulting binary.
18783hardcode_direct=$hardcode_direct_RC
18784
18785# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18786# resulting binary.
18787hardcode_minus_L=$hardcode_minus_L_RC
18788
18789# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18790# the resulting binary.
18791hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18792
18793# Set to yes if building a shared library automatically hardcodes DIR into the library
18794# and all subsequent libraries and executables linked against it.
18795hardcode_automatic=$hardcode_automatic_RC
18796
18797# Variables whose values should be saved in libtool wrapper scripts and
18798# restored at relink time.
18799variables_saved_for_relink="$variables_saved_for_relink"
18800
18801# Whether libtool must link a program against all its dependency libraries.
18802link_all_deplibs=$link_all_deplibs_RC
18803
18804# Compile-time system search path for libraries
18805sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18806
18807# Run-time system search path for libraries
18808sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18809
18810# Fix the shell variable \$srcfile for the compiler.
18811fix_srcfile_path="$fix_srcfile_path_RC"
18812
18813# Set to yes if exported symbols are required.
18814always_export_symbols=$always_export_symbols_RC
18815
18816# The commands to list exported symbols.
18817export_symbols_cmds=$lt_export_symbols_cmds_RC
18818
18819# The commands to extract the exported symbol list from a shared archive.
18820extract_expsyms_cmds=$lt_extract_expsyms_cmds
18821
18822# Symbols that should not be listed in the preloaded symbols.
18823exclude_expsyms=$lt_exclude_expsyms_RC
18824
18825# Symbols that must always be exported.
18826include_expsyms=$lt_include_expsyms_RC
18827
18828# ### END LIBTOOL TAG CONFIG: $tagname
18829
18830__EOF__
18831
18832
18833else
18834  # If there is no Makefile yet, we rely on a make rule to execute
18835  # `config.status --recheck' to rerun these tests and create the
18836  # libtool script then.
18837  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18838  if test -f "$ltmain_in"; then
18839    test -f Makefile && make "$ltmain"
18840  fi
18841fi
18842
18843
18844ac_ext=c
18845ac_cpp='$CPP $CPPFLAGS'
18846ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18847ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18848ac_compiler_gnu=$ac_cv_c_compiler_gnu
18849
18850CC="$lt_save_CC"
18851
18852	;;
18853
18854      *)
18855	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18856echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18857   { (exit 1); exit 1; }; }
18858	;;
18859      esac
18860
18861      # Append the new tag name to the list of available tags.
18862      if test -n "$tagname" ; then
18863      available_tags="$available_tags $tagname"
18864    fi
18865    fi
18866  done
18867  IFS="$lt_save_ifs"
18868
18869  # Now substitute the updated list of available tags.
18870  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18871    mv "${ofile}T" "$ofile"
18872    chmod +x "$ofile"
18873  else
18874    rm -f "${ofile}T"
18875    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18876echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18877   { (exit 1); exit 1; }; }
18878  fi
18879fi
18880
18881
18882
18883# This can be used to rebuild libtool when needed
18884LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18885
18886# Always use our own libtool.
18887LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18888
18889# Prevent multiple expansion
18890
18891
18892
18893
18894
18895
18896
18897
18898
18899
18900
18901
18902
18903
18904
18905
18906
18907
18908
18909
18910echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
18911echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
18912set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
18913if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
18914  echo $ECHO_N "(cached) $ECHO_C" >&6
18915else
18916  cat >conftest.make <<\_ACEOF
18917all:
18918	@echo 'ac_maketemp="$(MAKE)"'
18919_ACEOF
18920# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
18921eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
18922if test -n "$ac_maketemp"; then
18923  eval ac_cv_prog_make_${ac_make}_set=yes
18924else
18925  eval ac_cv_prog_make_${ac_make}_set=no
18926fi
18927rm -f conftest.make
18928fi
18929if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
18930  echo "$as_me:$LINENO: result: yes" >&5
18931echo "${ECHO_T}yes" >&6
18932  SET_MAKE=
18933else
18934  echo "$as_me:$LINENO: result: no" >&5
18935echo "${ECHO_T}no" >&6
18936  SET_MAKE="MAKE=${MAKE-make}"
18937fi
18938
18939
18940
18941
18942for ac_func in srand48 lrand48
18943do
18944as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18945echo "$as_me:$LINENO: checking for $ac_func" >&5
18946echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18947if eval "test \"\${$as_ac_var+set}\" = set"; then
18948  echo $ECHO_N "(cached) $ECHO_C" >&6
18949else
18950  cat >conftest.$ac_ext <<_ACEOF
18951/* confdefs.h.  */
18952_ACEOF
18953cat confdefs.h >>conftest.$ac_ext
18954cat >>conftest.$ac_ext <<_ACEOF
18955/* end confdefs.h.  */
18956/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18957   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18958#define $ac_func innocuous_$ac_func
18959
18960/* System header to define __stub macros and hopefully few prototypes,
18961    which can conflict with char $ac_func (); below.
18962    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18963    <limits.h> exists even on freestanding compilers.  */
18964
18965#ifdef __STDC__
18966# include <limits.h>
18967#else
18968# include <assert.h>
18969#endif
18970
18971#undef $ac_func
18972
18973/* Override any gcc2 internal prototype to avoid an error.  */
18974#ifdef __cplusplus
18975extern "C"
18976{
18977#endif
18978/* We use char because int might match the return type of a gcc2
18979   builtin and then its argument prototype would still apply.  */
18980char $ac_func ();
18981/* The GNU C library defines this for functions which it implements
18982    to always fail with ENOSYS.  Some functions are actually named
18983    something starting with __ and the normal name is an alias.  */
18984#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18985choke me
18986#else
18987char (*f) () = $ac_func;
18988#endif
18989#ifdef __cplusplus
18990}
18991#endif
18992
18993int
18994main ()
18995{
18996return f != $ac_func;
18997  ;
18998  return 0;
18999}
19000_ACEOF
19001rm -f conftest.$ac_objext conftest$ac_exeext
19002if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19003  (eval $ac_link) 2>conftest.er1
19004  ac_status=$?
19005  grep -v '^ *+' conftest.er1 >conftest.err
19006  rm -f conftest.er1
19007  cat conftest.err >&5
19008  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19009  (exit $ac_status); } &&
19010	 { ac_try='test -z "$ac_c_werror_flag"
19011			 || test ! -s conftest.err'
19012  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19013  (eval $ac_try) 2>&5
19014  ac_status=$?
19015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19016  (exit $ac_status); }; } &&
19017	 { ac_try='test -s conftest$ac_exeext'
19018  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19019  (eval $ac_try) 2>&5
19020  ac_status=$?
19021  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19022  (exit $ac_status); }; }; then
19023  eval "$as_ac_var=yes"
19024else
19025  echo "$as_me: failed program was:" >&5
19026sed 's/^/| /' conftest.$ac_ext >&5
19027
19028eval "$as_ac_var=no"
19029fi
19030rm -f conftest.err conftest.$ac_objext \
19031      conftest$ac_exeext conftest.$ac_ext
19032fi
19033echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19034echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19035if test `eval echo '${'$as_ac_var'}'` = yes; then
19036  cat >>confdefs.h <<_ACEOF
19037#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19038_ACEOF
19039
19040fi
19041done
19042
19043
19044echo "$as_me:$LINENO: checking for library containing recvfrom" >&5
19045echo $ECHO_N "checking for library containing recvfrom... $ECHO_C" >&6
19046if test "${ac_cv_search_recvfrom+set}" = set; then
19047  echo $ECHO_N "(cached) $ECHO_C" >&6
19048else
19049  ac_func_search_save_LIBS=$LIBS
19050ac_cv_search_recvfrom=no
19051cat >conftest.$ac_ext <<_ACEOF
19052/* confdefs.h.  */
19053_ACEOF
19054cat confdefs.h >>conftest.$ac_ext
19055cat >>conftest.$ac_ext <<_ACEOF
19056/* end confdefs.h.  */
19057
19058/* Override any gcc2 internal prototype to avoid an error.  */
19059#ifdef __cplusplus
19060extern "C"
19061#endif
19062/* We use char because int might match the return type of a gcc2
19063   builtin and then its argument prototype would still apply.  */
19064char recvfrom ();
19065int
19066main ()
19067{
19068recvfrom ();
19069  ;
19070  return 0;
19071}
19072_ACEOF
19073rm -f conftest.$ac_objext conftest$ac_exeext
19074if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19075  (eval $ac_link) 2>conftest.er1
19076  ac_status=$?
19077  grep -v '^ *+' conftest.er1 >conftest.err
19078  rm -f conftest.er1
19079  cat conftest.err >&5
19080  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19081  (exit $ac_status); } &&
19082	 { ac_try='test -z "$ac_c_werror_flag"
19083			 || test ! -s conftest.err'
19084  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19085  (eval $ac_try) 2>&5
19086  ac_status=$?
19087  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19088  (exit $ac_status); }; } &&
19089	 { ac_try='test -s conftest$ac_exeext'
19090  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19091  (eval $ac_try) 2>&5
19092  ac_status=$?
19093  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19094  (exit $ac_status); }; }; then
19095  ac_cv_search_recvfrom="none required"
19096else
19097  echo "$as_me: failed program was:" >&5
19098sed 's/^/| /' conftest.$ac_ext >&5
19099
19100fi
19101rm -f conftest.err conftest.$ac_objext \
19102      conftest$ac_exeext conftest.$ac_ext
19103if test "$ac_cv_search_recvfrom" = no; then
19104  for ac_lib in socket; do
19105    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19106    cat >conftest.$ac_ext <<_ACEOF
19107/* confdefs.h.  */
19108_ACEOF
19109cat confdefs.h >>conftest.$ac_ext
19110cat >>conftest.$ac_ext <<_ACEOF
19111/* end confdefs.h.  */
19112
19113/* Override any gcc2 internal prototype to avoid an error.  */
19114#ifdef __cplusplus
19115extern "C"
19116#endif
19117/* We use char because int might match the return type of a gcc2
19118   builtin and then its argument prototype would still apply.  */
19119char recvfrom ();
19120int
19121main ()
19122{
19123recvfrom ();
19124  ;
19125  return 0;
19126}
19127_ACEOF
19128rm -f conftest.$ac_objext conftest$ac_exeext
19129if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19130  (eval $ac_link) 2>conftest.er1
19131  ac_status=$?
19132  grep -v '^ *+' conftest.er1 >conftest.err
19133  rm -f conftest.er1
19134  cat conftest.err >&5
19135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19136  (exit $ac_status); } &&
19137	 { ac_try='test -z "$ac_c_werror_flag"
19138			 || test ! -s conftest.err'
19139  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19140  (eval $ac_try) 2>&5
19141  ac_status=$?
19142  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19143  (exit $ac_status); }; } &&
19144	 { ac_try='test -s conftest$ac_exeext'
19145  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19146  (eval $ac_try) 2>&5
19147  ac_status=$?
19148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19149  (exit $ac_status); }; }; then
19150  ac_cv_search_recvfrom="-l$ac_lib"
19151break
19152else
19153  echo "$as_me: failed program was:" >&5
19154sed 's/^/| /' conftest.$ac_ext >&5
19155
19156fi
19157rm -f conftest.err conftest.$ac_objext \
19158      conftest$ac_exeext conftest.$ac_ext
19159  done
19160fi
19161LIBS=$ac_func_search_save_LIBS
19162fi
19163echo "$as_me:$LINENO: result: $ac_cv_search_recvfrom" >&5
19164echo "${ECHO_T}$ac_cv_search_recvfrom" >&6
19165if test "$ac_cv_search_recvfrom" != no; then
19166  test "$ac_cv_search_recvfrom" = "none required" || LIBS="$ac_cv_search_recvfrom $LIBS"
19167
19168fi
19169
19170
19171
19172
19173if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19174	if test -n "$ac_tool_prefix"; then
19175  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19176set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19177echo "$as_me:$LINENO: checking for $ac_word" >&5
19178echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19179if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
19180  echo $ECHO_N "(cached) $ECHO_C" >&6
19181else
19182  case $PKG_CONFIG in
19183  [\\/]* | ?:[\\/]*)
19184  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19185  ;;
19186  *)
19187  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19188for as_dir in $PATH
19189do
19190  IFS=$as_save_IFS
19191  test -z "$as_dir" && as_dir=.
19192  for ac_exec_ext in '' $ac_executable_extensions; do
19193  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19194    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19195    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19196    break 2
19197  fi
19198done
19199done
19200
19201  ;;
19202esac
19203fi
19204PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19205
19206if test -n "$PKG_CONFIG"; then
19207  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
19208echo "${ECHO_T}$PKG_CONFIG" >&6
19209else
19210  echo "$as_me:$LINENO: result: no" >&5
19211echo "${ECHO_T}no" >&6
19212fi
19213
19214fi
19215if test -z "$ac_cv_path_PKG_CONFIG"; then
19216  ac_pt_PKG_CONFIG=$PKG_CONFIG
19217  # Extract the first word of "pkg-config", so it can be a program name with args.
19218set dummy pkg-config; ac_word=$2
19219echo "$as_me:$LINENO: checking for $ac_word" >&5
19220echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19221if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
19222  echo $ECHO_N "(cached) $ECHO_C" >&6
19223else
19224  case $ac_pt_PKG_CONFIG in
19225  [\\/]* | ?:[\\/]*)
19226  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19227  ;;
19228  *)
19229  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19230for as_dir in $PATH
19231do
19232  IFS=$as_save_IFS
19233  test -z "$as_dir" && as_dir=.
19234  for ac_exec_ext in '' $ac_executable_extensions; do
19235  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19236    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19237    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19238    break 2
19239  fi
19240done
19241done
19242
19243  ;;
19244esac
19245fi
19246ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19247
19248if test -n "$ac_pt_PKG_CONFIG"; then
19249  echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
19250echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
19251else
19252  echo "$as_me:$LINENO: result: no" >&5
19253echo "${ECHO_T}no" >&6
19254fi
19255
19256  PKG_CONFIG=$ac_pt_PKG_CONFIG
19257else
19258  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19259fi
19260
19261fi
19262if test -n "$PKG_CONFIG"; then
19263	_pkg_min_version=0.9.0
19264	echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
19265echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
19266	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
19267		echo "$as_me:$LINENO: result: yes" >&5
19268echo "${ECHO_T}yes" >&6
19269	else
19270		echo "$as_me:$LINENO: result: no" >&5
19271echo "${ECHO_T}no" >&6
19272		PKG_CONFIG=""
19273	fi
19274
19275fi
19276
19277pkg_failed=no
19278echo "$as_me:$LINENO: checking for XDMCP" >&5
19279echo $ECHO_N "checking for XDMCP... $ECHO_C" >&6
19280
19281if test -n "$PKG_CONFIG"; then
19282        if test -n "$PKG_CONFIG" && \
19283    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xproto\"") >&5
19284  ($PKG_CONFIG --exists --print-errors "xproto") 2>&5
19285  ac_status=$?
19286  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19287  (exit $ac_status); }; then
19288  pkg_cv_XDMCP_CFLAGS=`$PKG_CONFIG --cflags "xproto" 2>/dev/null`
19289else
19290  pkg_failed=yes
19291fi
19292else
19293	pkg_failed=untried
19294fi
19295if test -n "$PKG_CONFIG"; then
19296        if test -n "$PKG_CONFIG" && \
19297    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xproto\"") >&5
19298  ($PKG_CONFIG --exists --print-errors "xproto") 2>&5
19299  ac_status=$?
19300  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19301  (exit $ac_status); }; then
19302  pkg_cv_XDMCP_LIBS=`$PKG_CONFIG --libs "xproto" 2>/dev/null`
19303else
19304  pkg_failed=yes
19305fi
19306else
19307	pkg_failed=untried
19308fi
19309
19310if test $pkg_failed = yes; then
19311	XDMCP_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xproto"`
19312	# Put the nasty error message in config.log where it belongs
19313	echo "$XDMCP_PKG_ERRORS" 1>&5
19314
19315	{ { echo "$as_me:$LINENO: error: Package requirements (xproto) were not met.
19316Consider adjusting the PKG_CONFIG_PATH environment variable if you
19317installed software in a non-standard prefix.
19318
19319Alternatively you may set the XDMCP_CFLAGS and XDMCP_LIBS environment variables
19320to avoid the need to call pkg-config.  See the pkg-config man page for
19321more details." >&5
19322echo "$as_me: error: Package requirements (xproto) were not met.
19323Consider adjusting the PKG_CONFIG_PATH environment variable if you
19324installed software in a non-standard prefix.
19325
19326Alternatively you may set the XDMCP_CFLAGS and XDMCP_LIBS environment variables
19327to avoid the need to call pkg-config.  See the pkg-config man page for
19328more details." >&2;}
19329   { (exit 1); exit 1; }; }
19330elif test $pkg_failed = untried; then
19331	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
19332is in your PATH or set the PKG_CONFIG environment variable to the full
19333path to pkg-config.
19334
19335Alternatively you may set the XDMCP_CFLAGS and XDMCP_LIBS environment variables
19336to avoid the need to call pkg-config.  See the pkg-config man page for
19337more details.
19338
19339To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
19340See \`config.log' for more details." >&5
19341echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
19342is in your PATH or set the PKG_CONFIG environment variable to the full
19343path to pkg-config.
19344
19345Alternatively you may set the XDMCP_CFLAGS and XDMCP_LIBS environment variables
19346to avoid the need to call pkg-config.  See the pkg-config man page for
19347more details.
19348
19349To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
19350See \`config.log' for more details." >&2;}
19351   { (exit 1); exit 1; }; }
19352else
19353	XDMCP_CFLAGS=$pkg_cv_XDMCP_CFLAGS
19354	XDMCP_LIBS=$pkg_cv_XDMCP_LIBS
19355        echo "$as_me:$LINENO: result: yes" >&5
19356echo "${ECHO_T}yes" >&6
19357	:
19358fi
19359
19360
19361
19362if test -f ${srcdir}/Wraphelp.c; then
19363
19364cat >>confdefs.h <<\_ACEOF
19365#define HASXDMAUTH 1
19366_ACEOF
19367
19368	HASXDMAUTH=yes
19369else
19370	HASXDMAUTH=no
19371fi
19372
19373
19374
19375if test x$HASXDMAUTH = xyes; then
19376  HASXDMAUTH_TRUE=
19377  HASXDMAUTH_FALSE='#'
19378else
19379  HASXDMAUTH_TRUE='#'
19380  HASXDMAUTH_FALSE=
19381fi
19382
19383
19384
19385
19386# Allow checking code with lint, sparse, etc.
19387
19388# Check whether --with-lint or --without-lint was given.
19389if test "${with_lint+set}" = set; then
19390  withval="$with_lint"
19391  use_lint=$withval
19392else
19393  use_lint=no
19394fi;
19395if test "x$use_lint" = "xyes" ; then
19396	LINT="lint"
19397else
19398	LINT="$use_lint"
19399fi
19400if test "x$LINT_FLAGS" = "x" -a "x$LINT" != "xno" ; then
19401    case $LINT in
19402	lint|*/lint)
19403	    case $host_os in
19404		solaris*)
19405			LINT_FLAGS="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
19406			;;
19407	    esac
19408	    ;;
19409    esac
19410fi
19411
19412
19413
19414
19415
19416if test x$LINT != xno; then
19417  LINT_TRUE=
19418  LINT_FALSE='#'
19419else
19420  LINT_TRUE='#'
19421  LINT_FALSE=
19422fi
19423
19424
19425
19426
19427
19428# Build lint "library" for more indepth checks of programs calling this library
19429# Check whether --enable-lint-library or --disable-lint-library was given.
19430if test "${enable_lint_library+set}" = set; then
19431  enableval="$enable_lint_library"
19432  make_lint_lib=$enableval
19433else
19434  make_lint_lib=no
19435fi;
19436if test "x$make_lint_lib" != "xno" ; then
19437	if test "x$LINT" = "xno" ; then
19438		{ { echo "$as_me:$LINENO: error: Cannot make lint library without --with-lint" >&5
19439echo "$as_me: error: Cannot make lint library without --with-lint" >&2;}
19440   { (exit 1); exit 1; }; }
19441	fi
19442	if test "x$make_lint_lib" = "xyes" ; then
19443		LINTLIB=llib-lXdmcp.ln
19444	else
19445		LINTLIB=$make_lint_lib
19446	fi
19447fi
19448
19449
19450
19451if test x$make_lint_lib != xno; then
19452  MAKE_LINT_LIB_TRUE=
19453  MAKE_LINT_LIB_FALSE='#'
19454else
19455  MAKE_LINT_LIB_TRUE='#'
19456  MAKE_LINT_LIB_FALSE=
19457fi
19458
19459
19460
19461
19462
19463
19464# Check whether --with-release-version or --without-release-version was given.
19465if test "${with_release_version+set}" = set; then
19466  withval="$with_release_version"
19467  RELEASE_VERSION="$withval"
19468else
19469  RELEASE_VERSION=""
19470fi;
19471	if test "x$RELEASE_VERSION" != "x"; then
19472		PACKAGE="$PACKAGE-$RELEASE_VERSION"
19473		PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
19474		{ echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
19475echo "$as_me: Building with package name set to $PACKAGE" >&6;}
19476	fi
19477
19478
19479                    ac_config_files="$ac_config_files Makefile xdmcp.pc"
19480cat >confcache <<\_ACEOF
19481# This file is a shell script that caches the results of configure
19482# tests run on this system so they can be shared between configure
19483# scripts and configure runs, see configure's option --config-cache.
19484# It is not useful on other systems.  If it contains results you don't
19485# want to keep, you may remove or edit it.
19486#
19487# config.status only pays attention to the cache file if you give it
19488# the --recheck option to rerun configure.
19489#
19490# `ac_cv_env_foo' variables (set or unset) will be overridden when
19491# loading this file, other *unset* `ac_cv_foo' will be assigned the
19492# following values.
19493
19494_ACEOF
19495
19496# The following way of writing the cache mishandles newlines in values,
19497# but we know of no workaround that is simple, portable, and efficient.
19498# So, don't put newlines in cache variables' values.
19499# Ultrix sh set writes to stderr and can't be redirected directly,
19500# and sets the high bit in the cache file unless we assign to the vars.
19501{
19502  (set) 2>&1 |
19503    case `(ac_space=' '; set | grep ac_space) 2>&1` in
19504    *ac_space=\ *)
19505      # `set' does not quote correctly, so add quotes (double-quote
19506      # substitution turns \\\\ into \\, and sed turns \\ into \).
19507      sed -n \
19508	"s/'/'\\\\''/g;
19509	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19510      ;;
19511    *)
19512      # `set' quotes correctly as required by POSIX, so do not add quotes.
19513      sed -n \
19514	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19515      ;;
19516    esac;
19517} |
19518  sed '
19519     t clear
19520     : clear
19521     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19522     t end
19523     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19524     : end' >>confcache
19525if diff $cache_file confcache >/dev/null 2>&1; then :; else
19526  if test -w $cache_file; then
19527    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19528    cat confcache >$cache_file
19529  else
19530    echo "not updating unwritable cache $cache_file"
19531  fi
19532fi
19533rm -f confcache
19534
19535test "x$prefix" = xNONE && prefix=$ac_default_prefix
19536# Let make expand exec_prefix.
19537test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19538
19539# VPATH may cause trouble with some makes, so we remove $(srcdir),
19540# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19541# trailing colons and then remove the whole line if VPATH becomes empty
19542# (actually we leave an empty line to preserve line numbers).
19543if test "x$srcdir" = x.; then
19544  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
19545s/:*\$(srcdir):*/:/;
19546s/:*\${srcdir}:*/:/;
19547s/:*@srcdir@:*/:/;
19548s/^\([^=]*=[	 ]*\):*/\1/;
19549s/:*$//;
19550s/^[^=]*=[	 ]*$//;
19551}'
19552fi
19553
19554DEFS=-DHAVE_CONFIG_H
19555
19556ac_libobjs=
19557ac_ltlibobjs=
19558for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19559  # 1. Remove the extension, and $U if already installed.
19560  ac_i=`echo "$ac_i" |
19561	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19562  # 2. Add them.
19563  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19564  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19565done
19566LIBOBJS=$ac_libobjs
19567
19568LTLIBOBJS=$ac_ltlibobjs
19569
19570
19571if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19572  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
19573Usually this means the macro was only invoked conditionally." >&5
19574echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
19575Usually this means the macro was only invoked conditionally." >&2;}
19576   { (exit 1); exit 1; }; }
19577fi
19578if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19579  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19580Usually this means the macro was only invoked conditionally." >&5
19581echo "$as_me: error: conditional \"AMDEP\" was never defined.
19582Usually this means the macro was only invoked conditionally." >&2;}
19583   { (exit 1); exit 1; }; }
19584fi
19585if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19586  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19587Usually this means the macro was only invoked conditionally." >&5
19588echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19589Usually this means the macro was only invoked conditionally." >&2;}
19590   { (exit 1); exit 1; }; }
19591fi
19592if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19593  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19594Usually this means the macro was only invoked conditionally." >&5
19595echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
19596Usually this means the macro was only invoked conditionally." >&2;}
19597   { (exit 1); exit 1; }; }
19598fi
19599if test -z "${HASXDMAUTH_TRUE}" && test -z "${HASXDMAUTH_FALSE}"; then
19600  { { echo "$as_me:$LINENO: error: conditional \"HASXDMAUTH\" was never defined.
19601Usually this means the macro was only invoked conditionally." >&5
19602echo "$as_me: error: conditional \"HASXDMAUTH\" was never defined.
19603Usually this means the macro was only invoked conditionally." >&2;}
19604   { (exit 1); exit 1; }; }
19605fi
19606if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
19607  { { echo "$as_me:$LINENO: error: conditional \"LINT\" was never defined.
19608Usually this means the macro was only invoked conditionally." >&5
19609echo "$as_me: error: conditional \"LINT\" was never defined.
19610Usually this means the macro was only invoked conditionally." >&2;}
19611   { (exit 1); exit 1; }; }
19612fi
19613if test -z "${MAKE_LINT_LIB_TRUE}" && test -z "${MAKE_LINT_LIB_FALSE}"; then
19614  { { echo "$as_me:$LINENO: error: conditional \"MAKE_LINT_LIB\" was never defined.
19615Usually this means the macro was only invoked conditionally." >&5
19616echo "$as_me: error: conditional \"MAKE_LINT_LIB\" was never defined.
19617Usually this means the macro was only invoked conditionally." >&2;}
19618   { (exit 1); exit 1; }; }
19619fi
19620
19621: ${CONFIG_STATUS=./config.status}
19622ac_clean_files_save=$ac_clean_files
19623ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19624{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19625echo "$as_me: creating $CONFIG_STATUS" >&6;}
19626cat >$CONFIG_STATUS <<_ACEOF
19627#! $SHELL
19628# Generated by $as_me.
19629# Run this file to recreate the current configuration.
19630# Compiler output produced by configure, useful for debugging
19631# configure, is in config.log if it exists.
19632
19633debug=false
19634ac_cs_recheck=false
19635ac_cs_silent=false
19636SHELL=\${CONFIG_SHELL-$SHELL}
19637_ACEOF
19638
19639cat >>$CONFIG_STATUS <<\_ACEOF
19640## --------------------- ##
19641## M4sh Initialization.  ##
19642## --------------------- ##
19643
19644# Be Bourne compatible
19645if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19646  emulate sh
19647  NULLCMD=:
19648  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19649  # is contrary to our usage.  Disable this feature.
19650  alias -g '${1+"$@"}'='"$@"'
19651elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19652  set -o posix
19653fi
19654DUALCASE=1; export DUALCASE # for MKS sh
19655
19656# Support unset when possible.
19657if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19658  as_unset=unset
19659else
19660  as_unset=false
19661fi
19662
19663
19664# Work around bugs in pre-3.0 UWIN ksh.
19665$as_unset ENV MAIL MAILPATH
19666PS1='$ '
19667PS2='> '
19668PS4='+ '
19669
19670# NLS nuisances.
19671for as_var in \
19672  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19673  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19674  LC_TELEPHONE LC_TIME
19675do
19676  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19677    eval $as_var=C; export $as_var
19678  else
19679    $as_unset $as_var
19680  fi
19681done
19682
19683# Required to use basename.
19684if expr a : '\(a\)' >/dev/null 2>&1; then
19685  as_expr=expr
19686else
19687  as_expr=false
19688fi
19689
19690if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19691  as_basename=basename
19692else
19693  as_basename=false
19694fi
19695
19696
19697# Name of the executable.
19698as_me=`$as_basename "$0" ||
19699$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19700	 X"$0" : 'X\(//\)$' \| \
19701	 X"$0" : 'X\(/\)$' \| \
19702	 .     : '\(.\)' 2>/dev/null ||
19703echo X/"$0" |
19704    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19705  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
19706  	  /^X\/\(\/\).*/{ s//\1/; q; }
19707  	  s/.*/./; q'`
19708
19709
19710# PATH needs CR, and LINENO needs CR and PATH.
19711# Avoid depending upon Character Ranges.
19712as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19713as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19714as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19715as_cr_digits='0123456789'
19716as_cr_alnum=$as_cr_Letters$as_cr_digits
19717
19718# The user is always right.
19719if test "${PATH_SEPARATOR+set}" != set; then
19720  echo "#! /bin/sh" >conf$$.sh
19721  echo  "exit 0"   >>conf$$.sh
19722  chmod +x conf$$.sh
19723  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19724    PATH_SEPARATOR=';'
19725  else
19726    PATH_SEPARATOR=:
19727  fi
19728  rm -f conf$$.sh
19729fi
19730
19731
19732  as_lineno_1=$LINENO
19733  as_lineno_2=$LINENO
19734  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19735  test "x$as_lineno_1" != "x$as_lineno_2" &&
19736  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
19737  # Find who we are.  Look in the path if we contain no path at all
19738  # relative or not.
19739  case $0 in
19740    *[\\/]* ) as_myself=$0 ;;
19741    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19742for as_dir in $PATH
19743do
19744  IFS=$as_save_IFS
19745  test -z "$as_dir" && as_dir=.
19746  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19747done
19748
19749       ;;
19750  esac
19751  # We did not find ourselves, most probably we were run as `sh COMMAND'
19752  # in which case we are not to be found in the path.
19753  if test "x$as_myself" = x; then
19754    as_myself=$0
19755  fi
19756  if test ! -f "$as_myself"; then
19757    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19758echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19759   { (exit 1); exit 1; }; }
19760  fi
19761  case $CONFIG_SHELL in
19762  '')
19763    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19764for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19765do
19766  IFS=$as_save_IFS
19767  test -z "$as_dir" && as_dir=.
19768  for as_base in sh bash ksh sh5; do
19769	 case $as_dir in
19770	 /*)
19771	   if ("$as_dir/$as_base" -c '
19772  as_lineno_1=$LINENO
19773  as_lineno_2=$LINENO
19774  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19775  test "x$as_lineno_1" != "x$as_lineno_2" &&
19776  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
19777	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19778	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19779	     CONFIG_SHELL=$as_dir/$as_base
19780	     export CONFIG_SHELL
19781	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19782	   fi;;
19783	 esac
19784       done
19785done
19786;;
19787  esac
19788
19789  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19790  # uniformly replaced by the line number.  The first 'sed' inserts a
19791  # line-number line before each line; the second 'sed' does the real
19792  # work.  The second script uses 'N' to pair each line-number line
19793  # with the numbered line, and appends trailing '-' during
19794  # substitution so that $LINENO is not a special case at line end.
19795  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19796  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
19797  sed '=' <$as_myself |
19798    sed '
19799      N
19800      s,$,-,
19801      : loop
19802      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19803      t loop
19804      s,-$,,
19805      s,^['$as_cr_digits']*\n,,
19806    ' >$as_me.lineno &&
19807  chmod +x $as_me.lineno ||
19808    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19809echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19810   { (exit 1); exit 1; }; }
19811
19812  # Don't try to exec as it changes $[0], causing all sort of problems
19813  # (the dirname of $[0] is not the place where we might find the
19814  # original and so on.  Autoconf is especially sensible to this).
19815  . ./$as_me.lineno
19816  # Exit status is that of the last command.
19817  exit
19818}
19819
19820
19821case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19822  *c*,-n*) ECHO_N= ECHO_C='
19823' ECHO_T='	' ;;
19824  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19825  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
19826esac
19827
19828if expr a : '\(a\)' >/dev/null 2>&1; then
19829  as_expr=expr
19830else
19831  as_expr=false
19832fi
19833
19834rm -f conf$$ conf$$.exe conf$$.file
19835echo >conf$$.file
19836if ln -s conf$$.file conf$$ 2>/dev/null; then
19837  # We could just check for DJGPP; but this test a) works b) is more generic
19838  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19839  if test -f conf$$.exe; then
19840    # Don't use ln at all; we don't have any links
19841    as_ln_s='cp -p'
19842  else
19843    as_ln_s='ln -s'
19844  fi
19845elif ln conf$$.file conf$$ 2>/dev/null; then
19846  as_ln_s=ln
19847else
19848  as_ln_s='cp -p'
19849fi
19850rm -f conf$$ conf$$.exe conf$$.file
19851
19852if mkdir -p . 2>/dev/null; then
19853  as_mkdir_p=:
19854else
19855  test -d ./-p && rmdir ./-p
19856  as_mkdir_p=false
19857fi
19858
19859as_executable_p="test -f"
19860
19861# Sed expression to map a string onto a valid CPP name.
19862as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19863
19864# Sed expression to map a string onto a valid variable name.
19865as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19866
19867
19868# IFS
19869# We need space, tab and new line, in precisely that order.
19870as_nl='
19871'
19872IFS=" 	$as_nl"
19873
19874# CDPATH.
19875$as_unset CDPATH
19876
19877exec 6>&1
19878
19879# Open the log real soon, to keep \$[0] and so on meaningful, and to
19880# report actual input values of CONFIG_FILES etc. instead of their
19881# values after options handling.  Logging --version etc. is OK.
19882exec 5>>config.log
19883{
19884  echo
19885  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19886## Running $as_me. ##
19887_ASBOX
19888} >&5
19889cat >&5 <<_CSEOF
19890
19891This file was extended by libXdmcp $as_me 1.0.2, which was
19892generated by GNU Autoconf 2.59.  Invocation command line was
19893
19894  CONFIG_FILES    = $CONFIG_FILES
19895  CONFIG_HEADERS  = $CONFIG_HEADERS
19896  CONFIG_LINKS    = $CONFIG_LINKS
19897  CONFIG_COMMANDS = $CONFIG_COMMANDS
19898  $ $0 $@
19899
19900_CSEOF
19901echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19902echo >&5
19903_ACEOF
19904
19905# Files that config.status was made for.
19906if test -n "$ac_config_files"; then
19907  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19908fi
19909
19910if test -n "$ac_config_headers"; then
19911  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19912fi
19913
19914if test -n "$ac_config_links"; then
19915  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19916fi
19917
19918if test -n "$ac_config_commands"; then
19919  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19920fi
19921
19922cat >>$CONFIG_STATUS <<\_ACEOF
19923
19924ac_cs_usage="\
19925\`$as_me' instantiates files from templates according to the
19926current configuration.
19927
19928Usage: $0 [OPTIONS] [FILE]...
19929
19930  -h, --help       print this help, then exit
19931  -V, --version    print version number, then exit
19932  -q, --quiet      do not print progress messages
19933  -d, --debug      don't remove temporary files
19934      --recheck    update $as_me by reconfiguring in the same conditions
19935  --file=FILE[:TEMPLATE]
19936		   instantiate the configuration file FILE
19937  --header=FILE[:TEMPLATE]
19938		   instantiate the configuration header FILE
19939
19940Configuration files:
19941$config_files
19942
19943Configuration headers:
19944$config_headers
19945
19946Configuration commands:
19947$config_commands
19948
19949Report bugs to <bug-autoconf@gnu.org>."
19950_ACEOF
19951
19952cat >>$CONFIG_STATUS <<_ACEOF
19953ac_cs_version="\\
19954libXdmcp config.status 1.0.2
19955configured by $0, generated by GNU Autoconf 2.59,
19956  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19957
19958Copyright (C) 2003 Free Software Foundation, Inc.
19959This config.status script is free software; the Free Software Foundation
19960gives unlimited permission to copy, distribute and modify it."
19961srcdir=$srcdir
19962INSTALL="$INSTALL"
19963_ACEOF
19964
19965cat >>$CONFIG_STATUS <<\_ACEOF
19966# If no file are specified by the user, then we need to provide default
19967# value.  By we need to know if files were specified by the user.
19968ac_need_defaults=:
19969while test $# != 0
19970do
19971  case $1 in
19972  --*=*)
19973    ac_option=`expr "x$1" : 'x\([^=]*\)='`
19974    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19975    ac_shift=:
19976    ;;
19977  -*)
19978    ac_option=$1
19979    ac_optarg=$2
19980    ac_shift=shift
19981    ;;
19982  *) # This is not an option, so the user has probably given explicit
19983     # arguments.
19984     ac_option=$1
19985     ac_need_defaults=false;;
19986  esac
19987
19988  case $ac_option in
19989  # Handling of the options.
19990_ACEOF
19991cat >>$CONFIG_STATUS <<\_ACEOF
19992  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19993    ac_cs_recheck=: ;;
19994  --version | --vers* | -V )
19995    echo "$ac_cs_version"; exit 0 ;;
19996  --he | --h)
19997    # Conflict between --help and --header
19998    { { echo "$as_me:$LINENO: error: ambiguous option: $1
19999Try \`$0 --help' for more information." >&5
20000echo "$as_me: error: ambiguous option: $1
20001Try \`$0 --help' for more information." >&2;}
20002   { (exit 1); exit 1; }; };;
20003  --help | --hel | -h )
20004    echo "$ac_cs_usage"; exit 0 ;;
20005  --debug | --d* | -d )
20006    debug=: ;;
20007  --file | --fil | --fi | --f )
20008    $ac_shift
20009    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20010    ac_need_defaults=false;;
20011  --header | --heade | --head | --hea )
20012    $ac_shift
20013    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20014    ac_need_defaults=false;;
20015  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20016  | -silent | --silent | --silen | --sile | --sil | --si | --s)
20017    ac_cs_silent=: ;;
20018
20019  # This is an error.
20020  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20021Try \`$0 --help' for more information." >&5
20022echo "$as_me: error: unrecognized option: $1
20023Try \`$0 --help' for more information." >&2;}
20024   { (exit 1); exit 1; }; } ;;
20025
20026  *) ac_config_targets="$ac_config_targets $1" ;;
20027
20028  esac
20029  shift
20030done
20031
20032ac_configure_extra_args=
20033
20034if $ac_cs_silent; then
20035  exec 6>/dev/null
20036  ac_configure_extra_args="$ac_configure_extra_args --silent"
20037fi
20038
20039_ACEOF
20040cat >>$CONFIG_STATUS <<_ACEOF
20041if \$ac_cs_recheck; then
20042  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20043  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20044fi
20045
20046_ACEOF
20047
20048cat >>$CONFIG_STATUS <<_ACEOF
20049#
20050# INIT-COMMANDS section.
20051#
20052
20053AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20054
20055_ACEOF
20056
20057
20058
20059cat >>$CONFIG_STATUS <<\_ACEOF
20060for ac_config_target in $ac_config_targets
20061do
20062  case "$ac_config_target" in
20063  # Handling of arguments.
20064  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20065  "xdmcp.pc" ) CONFIG_FILES="$CONFIG_FILES xdmcp.pc" ;;
20066  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20067  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20068  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20069echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20070   { (exit 1); exit 1; }; };;
20071  esac
20072done
20073
20074# If the user did not use the arguments to specify the items to instantiate,
20075# then the envvar interface is used.  Set only those that are not.
20076# We use the long form for the default assignment because of an extremely
20077# bizarre bug on SunOS 4.1.3.
20078if $ac_need_defaults; then
20079  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20080  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20081  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20082fi
20083
20084# Have a temporary directory for convenience.  Make it in the build tree
20085# simply because there is no reason to put it here, and in addition,
20086# creating and moving files from /tmp can sometimes cause problems.
20087# Create a temporary directory, and hook for its removal unless debugging.
20088$debug ||
20089{
20090  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20091  trap '{ (exit 1); exit 1; }' 1 2 13 15
20092}
20093
20094# Create a (secure) tmp directory for tmp files.
20095
20096{
20097  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20098  test -n "$tmp" && test -d "$tmp"
20099}  ||
20100{
20101  tmp=./confstat$$-$RANDOM
20102  (umask 077 && mkdir $tmp)
20103} ||
20104{
20105   echo "$me: cannot create a temporary directory in ." >&2
20106   { (exit 1); exit 1; }
20107}
20108
20109_ACEOF
20110
20111cat >>$CONFIG_STATUS <<_ACEOF
20112
20113#
20114# CONFIG_FILES section.
20115#
20116
20117# No need to generate the scripts if there are no CONFIG_FILES.
20118# This happens for instance when ./config.status config.h
20119if test -n "\$CONFIG_FILES"; then
20120  # Protect against being on the right side of a sed subst in config.status.
20121  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20122   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20123s,@SHELL@,$SHELL,;t t
20124s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20125s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20126s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20127s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20128s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20129s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20130s,@exec_prefix@,$exec_prefix,;t t
20131s,@prefix@,$prefix,;t t
20132s,@program_transform_name@,$program_transform_name,;t t
20133s,@bindir@,$bindir,;t t
20134s,@sbindir@,$sbindir,;t t
20135s,@libexecdir@,$libexecdir,;t t
20136s,@datadir@,$datadir,;t t
20137s,@sysconfdir@,$sysconfdir,;t t
20138s,@sharedstatedir@,$sharedstatedir,;t t
20139s,@localstatedir@,$localstatedir,;t t
20140s,@libdir@,$libdir,;t t
20141s,@includedir@,$includedir,;t t
20142s,@oldincludedir@,$oldincludedir,;t t
20143s,@infodir@,$infodir,;t t
20144s,@mandir@,$mandir,;t t
20145s,@build_alias@,$build_alias,;t t
20146s,@host_alias@,$host_alias,;t t
20147s,@target_alias@,$target_alias,;t t
20148s,@DEFS@,$DEFS,;t t
20149s,@ECHO_C@,$ECHO_C,;t t
20150s,@ECHO_N@,$ECHO_N,;t t
20151s,@ECHO_T@,$ECHO_T,;t t
20152s,@LIBS@,$LIBS,;t t
20153s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20154s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20155s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20156s,@CYGPATH_W@,$CYGPATH_W,;t t
20157s,@PACKAGE@,$PACKAGE,;t t
20158s,@VERSION@,$VERSION,;t t
20159s,@ACLOCAL@,$ACLOCAL,;t t
20160s,@AUTOCONF@,$AUTOCONF,;t t
20161s,@AUTOMAKE@,$AUTOMAKE,;t t
20162s,@AUTOHEADER@,$AUTOHEADER,;t t
20163s,@MAKEINFO@,$MAKEINFO,;t t
20164s,@install_sh@,$install_sh,;t t
20165s,@STRIP@,$STRIP,;t t
20166s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20167s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
20168s,@mkdir_p@,$mkdir_p,;t t
20169s,@AWK@,$AWK,;t t
20170s,@SET_MAKE@,$SET_MAKE,;t t
20171s,@am__leading_dot@,$am__leading_dot,;t t
20172s,@AMTAR@,$AMTAR,;t t
20173s,@am__tar@,$am__tar,;t t
20174s,@am__untar@,$am__untar,;t t
20175s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
20176s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
20177s,@MAINT@,$MAINT,;t t
20178s,@CC@,$CC,;t t
20179s,@CFLAGS@,$CFLAGS,;t t
20180s,@LDFLAGS@,$LDFLAGS,;t t
20181s,@CPPFLAGS@,$CPPFLAGS,;t t
20182s,@ac_ct_CC@,$ac_ct_CC,;t t
20183s,@EXEEXT@,$EXEEXT,;t t
20184s,@OBJEXT@,$OBJEXT,;t t
20185s,@DEPDIR@,$DEPDIR,;t t
20186s,@am__include@,$am__include,;t t
20187s,@am__quote@,$am__quote,;t t
20188s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
20189s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
20190s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
20191s,@CCDEPMODE@,$CCDEPMODE,;t t
20192s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
20193s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
20194s,@LN_S@,$LN_S,;t t
20195s,@build@,$build,;t t
20196s,@build_cpu@,$build_cpu,;t t
20197s,@build_vendor@,$build_vendor,;t t
20198s,@build_os@,$build_os,;t t
20199s,@host@,$host,;t t
20200s,@host_cpu@,$host_cpu,;t t
20201s,@host_vendor@,$host_vendor,;t t
20202s,@host_os@,$host_os,;t t
20203s,@EGREP@,$EGREP,;t t
20204s,@ECHO@,$ECHO,;t t
20205s,@AR@,$AR,;t t
20206s,@ac_ct_AR@,$ac_ct_AR,;t t
20207s,@RANLIB@,$RANLIB,;t t
20208s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20209s,@DLLTOOL@,$DLLTOOL,;t t
20210s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
20211s,@AS@,$AS,;t t
20212s,@ac_ct_AS@,$ac_ct_AS,;t t
20213s,@OBJDUMP@,$OBJDUMP,;t t
20214s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
20215s,@CPP@,$CPP,;t t
20216s,@CXX@,$CXX,;t t
20217s,@CXXFLAGS@,$CXXFLAGS,;t t
20218s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20219s,@CXXDEPMODE@,$CXXDEPMODE,;t t
20220s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
20221s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
20222s,@CXXCPP@,$CXXCPP,;t t
20223s,@F77@,$F77,;t t
20224s,@FFLAGS@,$FFLAGS,;t t
20225s,@ac_ct_F77@,$ac_ct_F77,;t t
20226s,@LIBTOOL@,$LIBTOOL,;t t
20227s,@PKG_CONFIG@,$PKG_CONFIG,;t t
20228s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
20229s,@XDMCP_CFLAGS@,$XDMCP_CFLAGS,;t t
20230s,@XDMCP_LIBS@,$XDMCP_LIBS,;t t
20231s,@HASXDMAUTH_TRUE@,$HASXDMAUTH_TRUE,;t t
20232s,@HASXDMAUTH_FALSE@,$HASXDMAUTH_FALSE,;t t
20233s,@LINT@,$LINT,;t t
20234s,@LINT_FLAGS@,$LINT_FLAGS,;t t
20235s,@LINT_TRUE@,$LINT_TRUE,;t t
20236s,@LINT_FALSE@,$LINT_FALSE,;t t
20237s,@LINTLIB@,$LINTLIB,;t t
20238s,@MAKE_LINT_LIB_TRUE@,$MAKE_LINT_LIB_TRUE,;t t
20239s,@MAKE_LINT_LIB_FALSE@,$MAKE_LINT_LIB_FALSE,;t t
20240s,@LIBOBJS@,$LIBOBJS,;t t
20241s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20242CEOF
20243
20244_ACEOF
20245
20246  cat >>$CONFIG_STATUS <<\_ACEOF
20247  # Split the substitutions into bite-sized pieces for seds with
20248  # small command number limits, like on Digital OSF/1 and HP-UX.
20249  ac_max_sed_lines=48
20250  ac_sed_frag=1 # Number of current file.
20251  ac_beg=1 # First line for current file.
20252  ac_end=$ac_max_sed_lines # Line after last line for current file.
20253  ac_more_lines=:
20254  ac_sed_cmds=
20255  while $ac_more_lines; do
20256    if test $ac_beg -gt 1; then
20257      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20258    else
20259      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20260    fi
20261    if test ! -s $tmp/subs.frag; then
20262      ac_more_lines=false
20263    else
20264      # The purpose of the label and of the branching condition is to
20265      # speed up the sed processing (if there are no `@' at all, there
20266      # is no need to browse any of the substitutions).
20267      # These are the two extra sed commands mentioned above.
20268      (echo ':t
20269  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20270      if test -z "$ac_sed_cmds"; then
20271	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20272      else
20273	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20274      fi
20275      ac_sed_frag=`expr $ac_sed_frag + 1`
20276      ac_beg=$ac_end
20277      ac_end=`expr $ac_end + $ac_max_sed_lines`
20278    fi
20279  done
20280  if test -z "$ac_sed_cmds"; then
20281    ac_sed_cmds=cat
20282  fi
20283fi # test -n "$CONFIG_FILES"
20284
20285_ACEOF
20286cat >>$CONFIG_STATUS <<\_ACEOF
20287for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20288  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20289  case $ac_file in
20290  - | *:- | *:-:* ) # input from stdin
20291	cat >$tmp/stdin
20292	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20293	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20294  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20295	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20296  * )   ac_file_in=$ac_file.in ;;
20297  esac
20298
20299  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20300  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20301$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20302	 X"$ac_file" : 'X\(//\)[^/]' \| \
20303	 X"$ac_file" : 'X\(//\)$' \| \
20304	 X"$ac_file" : 'X\(/\)' \| \
20305	 .     : '\(.\)' 2>/dev/null ||
20306echo X"$ac_file" |
20307    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20308  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20309  	  /^X\(\/\/\)$/{ s//\1/; q; }
20310  	  /^X\(\/\).*/{ s//\1/; q; }
20311  	  s/.*/./; q'`
20312  { if $as_mkdir_p; then
20313    mkdir -p "$ac_dir"
20314  else
20315    as_dir="$ac_dir"
20316    as_dirs=
20317    while test ! -d "$as_dir"; do
20318      as_dirs="$as_dir $as_dirs"
20319      as_dir=`(dirname "$as_dir") 2>/dev/null ||
20320$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20321	 X"$as_dir" : 'X\(//\)[^/]' \| \
20322	 X"$as_dir" : 'X\(//\)$' \| \
20323	 X"$as_dir" : 'X\(/\)' \| \
20324	 .     : '\(.\)' 2>/dev/null ||
20325echo X"$as_dir" |
20326    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20327  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20328  	  /^X\(\/\/\)$/{ s//\1/; q; }
20329  	  /^X\(\/\).*/{ s//\1/; q; }
20330  	  s/.*/./; q'`
20331    done
20332    test ! -n "$as_dirs" || mkdir $as_dirs
20333  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20334echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20335   { (exit 1); exit 1; }; }; }
20336
20337  ac_builddir=.
20338
20339if test "$ac_dir" != .; then
20340  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20341  # A "../" for each directory in $ac_dir_suffix.
20342  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20343else
20344  ac_dir_suffix= ac_top_builddir=
20345fi
20346
20347case $srcdir in
20348  .)  # No --srcdir option.  We are building in place.
20349    ac_srcdir=.
20350    if test -z "$ac_top_builddir"; then
20351       ac_top_srcdir=.
20352    else
20353       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20354    fi ;;
20355  [\\/]* | ?:[\\/]* )  # Absolute path.
20356    ac_srcdir=$srcdir$ac_dir_suffix;
20357    ac_top_srcdir=$srcdir ;;
20358  *) # Relative path.
20359    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20360    ac_top_srcdir=$ac_top_builddir$srcdir ;;
20361esac
20362
20363# Do not use `cd foo && pwd` to compute absolute paths, because
20364# the directories may not exist.
20365case `pwd` in
20366.) ac_abs_builddir="$ac_dir";;
20367*)
20368  case "$ac_dir" in
20369  .) ac_abs_builddir=`pwd`;;
20370  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20371  *) ac_abs_builddir=`pwd`/"$ac_dir";;
20372  esac;;
20373esac
20374case $ac_abs_builddir in
20375.) ac_abs_top_builddir=${ac_top_builddir}.;;
20376*)
20377  case ${ac_top_builddir}. in
20378  .) ac_abs_top_builddir=$ac_abs_builddir;;
20379  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20380  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20381  esac;;
20382esac
20383case $ac_abs_builddir in
20384.) ac_abs_srcdir=$ac_srcdir;;
20385*)
20386  case $ac_srcdir in
20387  .) ac_abs_srcdir=$ac_abs_builddir;;
20388  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20389  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20390  esac;;
20391esac
20392case $ac_abs_builddir in
20393.) ac_abs_top_srcdir=$ac_top_srcdir;;
20394*)
20395  case $ac_top_srcdir in
20396  .) ac_abs_top_srcdir=$ac_abs_builddir;;
20397  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20398  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20399  esac;;
20400esac
20401
20402
20403  case $INSTALL in
20404  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20405  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20406  esac
20407
20408  if test x"$ac_file" != x-; then
20409    { echo "$as_me:$LINENO: creating $ac_file" >&5
20410echo "$as_me: creating $ac_file" >&6;}
20411    rm -f "$ac_file"
20412  fi
20413  # Let's still pretend it is `configure' which instantiates (i.e., don't
20414  # use $as_me), people would be surprised to read:
20415  #    /* config.h.  Generated by config.status.  */
20416  if test x"$ac_file" = x-; then
20417    configure_input=
20418  else
20419    configure_input="$ac_file.  "
20420  fi
20421  configure_input=$configure_input"Generated from `echo $ac_file_in |
20422				     sed 's,.*/,,'` by configure."
20423
20424  # First look for the input files in the build tree, otherwise in the
20425  # src tree.
20426  ac_file_inputs=`IFS=:
20427    for f in $ac_file_in; do
20428      case $f in
20429      -) echo $tmp/stdin ;;
20430      [\\/$]*)
20431	 # Absolute (can't be DOS-style, as IFS=:)
20432	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20433echo "$as_me: error: cannot find input file: $f" >&2;}
20434   { (exit 1); exit 1; }; }
20435	 echo "$f";;
20436      *) # Relative
20437	 if test -f "$f"; then
20438	   # Build tree
20439	   echo "$f"
20440	 elif test -f "$srcdir/$f"; then
20441	   # Source tree
20442	   echo "$srcdir/$f"
20443	 else
20444	   # /dev/null tree
20445	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20446echo "$as_me: error: cannot find input file: $f" >&2;}
20447   { (exit 1); exit 1; }; }
20448	 fi;;
20449      esac
20450    done` || { (exit 1); exit 1; }
20451_ACEOF
20452cat >>$CONFIG_STATUS <<_ACEOF
20453  sed "$ac_vpsub
20454$extrasub
20455_ACEOF
20456cat >>$CONFIG_STATUS <<\_ACEOF
20457:t
20458/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20459s,@configure_input@,$configure_input,;t t
20460s,@srcdir@,$ac_srcdir,;t t
20461s,@abs_srcdir@,$ac_abs_srcdir,;t t
20462s,@top_srcdir@,$ac_top_srcdir,;t t
20463s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20464s,@builddir@,$ac_builddir,;t t
20465s,@abs_builddir@,$ac_abs_builddir,;t t
20466s,@top_builddir@,$ac_top_builddir,;t t
20467s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20468s,@INSTALL@,$ac_INSTALL,;t t
20469" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20470  rm -f $tmp/stdin
20471  if test x"$ac_file" != x-; then
20472    mv $tmp/out $ac_file
20473  else
20474    cat $tmp/out
20475    rm -f $tmp/out
20476  fi
20477
20478done
20479_ACEOF
20480cat >>$CONFIG_STATUS <<\_ACEOF
20481
20482#
20483# CONFIG_HEADER section.
20484#
20485
20486# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20487# NAME is the cpp macro being defined and VALUE is the value it is being given.
20488#
20489# ac_d sets the value in "#define NAME VALUE" lines.
20490ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
20491ac_dB='[	 ].*$,\1#\2'
20492ac_dC=' '
20493ac_dD=',;t'
20494# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20495ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
20496ac_uB='$,\1#\2define\3'
20497ac_uC=' '
20498ac_uD=',;t'
20499
20500for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20501  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20502  case $ac_file in
20503  - | *:- | *:-:* ) # input from stdin
20504	cat >$tmp/stdin
20505	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20506	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20507  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20508	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20509  * )   ac_file_in=$ac_file.in ;;
20510  esac
20511
20512  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20513echo "$as_me: creating $ac_file" >&6;}
20514
20515  # First look for the input files in the build tree, otherwise in the
20516  # src tree.
20517  ac_file_inputs=`IFS=:
20518    for f in $ac_file_in; do
20519      case $f in
20520      -) echo $tmp/stdin ;;
20521      [\\/$]*)
20522	 # Absolute (can't be DOS-style, as IFS=:)
20523	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20524echo "$as_me: error: cannot find input file: $f" >&2;}
20525   { (exit 1); exit 1; }; }
20526	 # Do quote $f, to prevent DOS paths from being IFS'd.
20527	 echo "$f";;
20528      *) # Relative
20529	 if test -f "$f"; then
20530	   # Build tree
20531	   echo "$f"
20532	 elif test -f "$srcdir/$f"; then
20533	   # Source tree
20534	   echo "$srcdir/$f"
20535	 else
20536	   # /dev/null tree
20537	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20538echo "$as_me: error: cannot find input file: $f" >&2;}
20539   { (exit 1); exit 1; }; }
20540	 fi;;
20541      esac
20542    done` || { (exit 1); exit 1; }
20543  # Remove the trailing spaces.
20544  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
20545
20546_ACEOF
20547
20548# Transform confdefs.h into two sed scripts, `conftest.defines' and
20549# `conftest.undefs', that substitutes the proper values into
20550# config.h.in to produce config.h.  The first handles `#define'
20551# templates, and the second `#undef' templates.
20552# And first: Protect against being on the right side of a sed subst in
20553# config.status.  Protect against being in an unquoted here document
20554# in config.status.
20555rm -f conftest.defines conftest.undefs
20556# Using a here document instead of a string reduces the quoting nightmare.
20557# Putting comments in sed scripts is not portable.
20558#
20559# `end' is used to avoid that the second main sed command (meant for
20560# 0-ary CPP macros) applies to n-ary macro definitions.
20561# See the Autoconf documentation for `clear'.
20562cat >confdef2sed.sed <<\_ACEOF
20563s/[\\&,]/\\&/g
20564s,[\\$`],\\&,g
20565t clear
20566: clear
20567s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20568t end
20569s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20570: end
20571_ACEOF
20572# If some macros were called several times there might be several times
20573# the same #defines, which is useless.  Nevertheless, we may not want to
20574# sort them, since we want the *last* AC-DEFINE to be honored.
20575uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20576sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20577rm -f confdef2sed.sed
20578
20579# This sed command replaces #undef with comments.  This is necessary, for
20580# example, in the case of _POSIX_SOURCE, which is predefined and required
20581# on some systems where configure will not decide to define it.
20582cat >>conftest.undefs <<\_ACEOF
20583s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20584_ACEOF
20585
20586# Break up conftest.defines because some shells have a limit on the size
20587# of here documents, and old seds have small limits too (100 cmds).
20588echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20589echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20590echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20591echo '  :' >>$CONFIG_STATUS
20592rm -f conftest.tail
20593while grep . conftest.defines >/dev/null
20594do
20595  # Write a limited-size here document to $tmp/defines.sed.
20596  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20597  # Speed up: don't consider the non `#define' lines.
20598  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
20599  # Work around the forget-to-reset-the-flag bug.
20600  echo 't clr' >>$CONFIG_STATUS
20601  echo ': clr' >>$CONFIG_STATUS
20602  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20603  echo 'CEOF
20604  sed -f $tmp/defines.sed $tmp/in >$tmp/out
20605  rm -f $tmp/in
20606  mv $tmp/out $tmp/in
20607' >>$CONFIG_STATUS
20608  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20609  rm -f conftest.defines
20610  mv conftest.tail conftest.defines
20611done
20612rm -f conftest.defines
20613echo '  fi # grep' >>$CONFIG_STATUS
20614echo >>$CONFIG_STATUS
20615
20616# Break up conftest.undefs because some shells have a limit on the size
20617# of here documents, and old seds have small limits too (100 cmds).
20618echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
20619rm -f conftest.tail
20620while grep . conftest.undefs >/dev/null
20621do
20622  # Write a limited-size here document to $tmp/undefs.sed.
20623  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20624  # Speed up: don't consider the non `#undef'
20625  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
20626  # Work around the forget-to-reset-the-flag bug.
20627  echo 't clr' >>$CONFIG_STATUS
20628  echo ': clr' >>$CONFIG_STATUS
20629  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20630  echo 'CEOF
20631  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20632  rm -f $tmp/in
20633  mv $tmp/out $tmp/in
20634' >>$CONFIG_STATUS
20635  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20636  rm -f conftest.undefs
20637  mv conftest.tail conftest.undefs
20638done
20639rm -f conftest.undefs
20640
20641cat >>$CONFIG_STATUS <<\_ACEOF
20642  # Let's still pretend it is `configure' which instantiates (i.e., don't
20643  # use $as_me), people would be surprised to read:
20644  #    /* config.h.  Generated by config.status.  */
20645  if test x"$ac_file" = x-; then
20646    echo "/* Generated by configure.  */" >$tmp/config.h
20647  else
20648    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
20649  fi
20650  cat $tmp/in >>$tmp/config.h
20651  rm -f $tmp/in
20652  if test x"$ac_file" != x-; then
20653    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20654      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20655echo "$as_me: $ac_file is unchanged" >&6;}
20656    else
20657      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20658$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20659	 X"$ac_file" : 'X\(//\)[^/]' \| \
20660	 X"$ac_file" : 'X\(//\)$' \| \
20661	 X"$ac_file" : 'X\(/\)' \| \
20662	 .     : '\(.\)' 2>/dev/null ||
20663echo X"$ac_file" |
20664    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20665  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20666  	  /^X\(\/\/\)$/{ s//\1/; q; }
20667  	  /^X\(\/\).*/{ s//\1/; q; }
20668  	  s/.*/./; q'`
20669      { if $as_mkdir_p; then
20670    mkdir -p "$ac_dir"
20671  else
20672    as_dir="$ac_dir"
20673    as_dirs=
20674    while test ! -d "$as_dir"; do
20675      as_dirs="$as_dir $as_dirs"
20676      as_dir=`(dirname "$as_dir") 2>/dev/null ||
20677$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20678	 X"$as_dir" : 'X\(//\)[^/]' \| \
20679	 X"$as_dir" : 'X\(//\)$' \| \
20680	 X"$as_dir" : 'X\(/\)' \| \
20681	 .     : '\(.\)' 2>/dev/null ||
20682echo X"$as_dir" |
20683    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20684  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20685  	  /^X\(\/\/\)$/{ s//\1/; q; }
20686  	  /^X\(\/\).*/{ s//\1/; q; }
20687  	  s/.*/./; q'`
20688    done
20689    test ! -n "$as_dirs" || mkdir $as_dirs
20690  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20691echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20692   { (exit 1); exit 1; }; }; }
20693
20694      rm -f $ac_file
20695      mv $tmp/config.h $ac_file
20696    fi
20697  else
20698    cat $tmp/config.h
20699    rm -f $tmp/config.h
20700  fi
20701# Compute $ac_file's index in $config_headers.
20702_am_stamp_count=1
20703for _am_header in $config_headers :; do
20704  case $_am_header in
20705    $ac_file | $ac_file:* )
20706      break ;;
20707    * )
20708      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20709  esac
20710done
20711echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
20712$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20713	 X$ac_file : 'X\(//\)[^/]' \| \
20714	 X$ac_file : 'X\(//\)$' \| \
20715	 X$ac_file : 'X\(/\)' \| \
20716	 .     : '\(.\)' 2>/dev/null ||
20717echo X$ac_file |
20718    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20719  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20720  	  /^X\(\/\/\)$/{ s//\1/; q; }
20721  	  /^X\(\/\).*/{ s//\1/; q; }
20722  	  s/.*/./; q'`/stamp-h$_am_stamp_count
20723done
20724_ACEOF
20725cat >>$CONFIG_STATUS <<\_ACEOF
20726
20727#
20728# CONFIG_COMMANDS section.
20729#
20730for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20731  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20732  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20733  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20734$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20735	 X"$ac_dest" : 'X\(//\)[^/]' \| \
20736	 X"$ac_dest" : 'X\(//\)$' \| \
20737	 X"$ac_dest" : 'X\(/\)' \| \
20738	 .     : '\(.\)' 2>/dev/null ||
20739echo X"$ac_dest" |
20740    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20741  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20742  	  /^X\(\/\/\)$/{ s//\1/; q; }
20743  	  /^X\(\/\).*/{ s//\1/; q; }
20744  	  s/.*/./; q'`
20745  { if $as_mkdir_p; then
20746    mkdir -p "$ac_dir"
20747  else
20748    as_dir="$ac_dir"
20749    as_dirs=
20750    while test ! -d "$as_dir"; do
20751      as_dirs="$as_dir $as_dirs"
20752      as_dir=`(dirname "$as_dir") 2>/dev/null ||
20753$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20754	 X"$as_dir" : 'X\(//\)[^/]' \| \
20755	 X"$as_dir" : 'X\(//\)$' \| \
20756	 X"$as_dir" : 'X\(/\)' \| \
20757	 .     : '\(.\)' 2>/dev/null ||
20758echo X"$as_dir" |
20759    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20760  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20761  	  /^X\(\/\/\)$/{ s//\1/; q; }
20762  	  /^X\(\/\).*/{ s//\1/; q; }
20763  	  s/.*/./; q'`
20764    done
20765    test ! -n "$as_dirs" || mkdir $as_dirs
20766  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20767echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20768   { (exit 1); exit 1; }; }; }
20769
20770  ac_builddir=.
20771
20772if test "$ac_dir" != .; then
20773  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20774  # A "../" for each directory in $ac_dir_suffix.
20775  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20776else
20777  ac_dir_suffix= ac_top_builddir=
20778fi
20779
20780case $srcdir in
20781  .)  # No --srcdir option.  We are building in place.
20782    ac_srcdir=.
20783    if test -z "$ac_top_builddir"; then
20784       ac_top_srcdir=.
20785    else
20786       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20787    fi ;;
20788  [\\/]* | ?:[\\/]* )  # Absolute path.
20789    ac_srcdir=$srcdir$ac_dir_suffix;
20790    ac_top_srcdir=$srcdir ;;
20791  *) # Relative path.
20792    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20793    ac_top_srcdir=$ac_top_builddir$srcdir ;;
20794esac
20795
20796# Do not use `cd foo && pwd` to compute absolute paths, because
20797# the directories may not exist.
20798case `pwd` in
20799.) ac_abs_builddir="$ac_dir";;
20800*)
20801  case "$ac_dir" in
20802  .) ac_abs_builddir=`pwd`;;
20803  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20804  *) ac_abs_builddir=`pwd`/"$ac_dir";;
20805  esac;;
20806esac
20807case $ac_abs_builddir in
20808.) ac_abs_top_builddir=${ac_top_builddir}.;;
20809*)
20810  case ${ac_top_builddir}. in
20811  .) ac_abs_top_builddir=$ac_abs_builddir;;
20812  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20813  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20814  esac;;
20815esac
20816case $ac_abs_builddir in
20817.) ac_abs_srcdir=$ac_srcdir;;
20818*)
20819  case $ac_srcdir in
20820  .) ac_abs_srcdir=$ac_abs_builddir;;
20821  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20822  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20823  esac;;
20824esac
20825case $ac_abs_builddir in
20826.) ac_abs_top_srcdir=$ac_top_srcdir;;
20827*)
20828  case $ac_top_srcdir in
20829  .) ac_abs_top_srcdir=$ac_abs_builddir;;
20830  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20831  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20832  esac;;
20833esac
20834
20835
20836  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20837echo "$as_me: executing $ac_dest commands" >&6;}
20838  case $ac_dest in
20839    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
20840  # Strip MF so we end up with the name of the file.
20841  mf=`echo "$mf" | sed -e 's/:.*$//'`
20842  # Check whether this is an Automake generated Makefile or not.
20843  # We used to match only the files named `Makefile.in', but
20844  # some people rename them; so instead we look at the file content.
20845  # Grep'ing the first line is not enough: some people post-process
20846  # each Makefile.in and add a new line on top of each file to say so.
20847  # So let's grep whole file.
20848  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
20849    dirpart=`(dirname "$mf") 2>/dev/null ||
20850$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20851	 X"$mf" : 'X\(//\)[^/]' \| \
20852	 X"$mf" : 'X\(//\)$' \| \
20853	 X"$mf" : 'X\(/\)' \| \
20854	 .     : '\(.\)' 2>/dev/null ||
20855echo X"$mf" |
20856    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20857  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20858  	  /^X\(\/\/\)$/{ s//\1/; q; }
20859  	  /^X\(\/\).*/{ s//\1/; q; }
20860  	  s/.*/./; q'`
20861  else
20862    continue
20863  fi
20864  # Extract the definition of DEPDIR, am__include, and am__quote
20865  # from the Makefile without running `make'.
20866  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20867  test -z "$DEPDIR" && continue
20868  am__include=`sed -n 's/^am__include = //p' < "$mf"`
20869  test -z "am__include" && continue
20870  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20871  # When using ansi2knr, U may be empty or an underscore; expand it
20872  U=`sed -n 's/^U = //p' < "$mf"`
20873  # Find all dependency output files, they are included files with
20874  # $(DEPDIR) in their names.  We invoke sed twice because it is the
20875  # simplest approach to changing $(DEPDIR) to its actual value in the
20876  # expansion.
20877  for file in `sed -n "
20878    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20879       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20880    # Make sure the directory exists.
20881    test -f "$dirpart/$file" && continue
20882    fdir=`(dirname "$file") 2>/dev/null ||
20883$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20884	 X"$file" : 'X\(//\)[^/]' \| \
20885	 X"$file" : 'X\(//\)$' \| \
20886	 X"$file" : 'X\(/\)' \| \
20887	 .     : '\(.\)' 2>/dev/null ||
20888echo X"$file" |
20889    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20890  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20891  	  /^X\(\/\/\)$/{ s//\1/; q; }
20892  	  /^X\(\/\).*/{ s//\1/; q; }
20893  	  s/.*/./; q'`
20894    { if $as_mkdir_p; then
20895    mkdir -p $dirpart/$fdir
20896  else
20897    as_dir=$dirpart/$fdir
20898    as_dirs=
20899    while test ! -d "$as_dir"; do
20900      as_dirs="$as_dir $as_dirs"
20901      as_dir=`(dirname "$as_dir") 2>/dev/null ||
20902$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20903	 X"$as_dir" : 'X\(//\)[^/]' \| \
20904	 X"$as_dir" : 'X\(//\)$' \| \
20905	 X"$as_dir" : 'X\(/\)' \| \
20906	 .     : '\(.\)' 2>/dev/null ||
20907echo X"$as_dir" |
20908    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20909  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20910  	  /^X\(\/\/\)$/{ s//\1/; q; }
20911  	  /^X\(\/\).*/{ s//\1/; q; }
20912  	  s/.*/./; q'`
20913    done
20914    test ! -n "$as_dirs" || mkdir $as_dirs
20915  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
20916echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
20917   { (exit 1); exit 1; }; }; }
20918
20919    # echo "creating $dirpart/$file"
20920    echo '# dummy' > "$dirpart/$file"
20921  done
20922done
20923 ;;
20924  esac
20925done
20926_ACEOF
20927
20928cat >>$CONFIG_STATUS <<\_ACEOF
20929
20930{ (exit 0); exit 0; }
20931_ACEOF
20932chmod +x $CONFIG_STATUS
20933ac_clean_files=$ac_clean_files_save
20934
20935
20936# configure is writing to config.log, and then calls config.status.
20937# config.status does its own redirection, appending to config.log.
20938# Unfortunately, on DOS this fails, as config.log is still kept open
20939# by configure, so config.status won't be able to write to it; its
20940# output is simply discarded.  So we exec the FD to /dev/null,
20941# effectively closing config.log, so it can be properly (re)opened and
20942# appended to by config.status.  When coming back to configure, we
20943# need to make the FD available again.
20944if test "$no_create" != yes; then
20945  ac_cs_success=:
20946  ac_config_status_args=
20947  test "$silent" = yes &&
20948    ac_config_status_args="$ac_config_status_args --quiet"
20949  exec 5>/dev/null
20950  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20951  exec 5>>config.log
20952  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20953  # would make configure fail if this is the last instruction.
20954  $ac_cs_success || { (exit 1); exit 1; }
20955fi
20956
20957