1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for xf86-video-nsc 2.8.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='xf86-video-nsc'
425PACKAGE_TARNAME='xf86-video-nsc'
426PACKAGE_VERSION='2.8.2'
427PACKAGE_STRING='xf86-video-nsc 2.8.2'
428PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
429
430ac_unique_file="Makefile.am"
431# Factoring default headers for most tests.
432ac_includes_default="\
433#include <stdio.h>
434#if HAVE_SYS_TYPES_H
435# include <sys/types.h>
436#endif
437#if HAVE_SYS_STAT_H
438# include <sys/stat.h>
439#endif
440#if STDC_HEADERS
441# include <stdlib.h>
442# include <stddef.h>
443#else
444# if HAVE_STDLIB_H
445#  include <stdlib.h>
446# endif
447#endif
448#if HAVE_STRING_H
449# if !STDC_HEADERS && HAVE_MEMORY_H
450#  include <memory.h>
451# endif
452# include <string.h>
453#endif
454#if HAVE_STRINGS_H
455# include <strings.h>
456#endif
457#if HAVE_INTTYPES_H
458# include <inttypes.h>
459#else
460# if HAVE_STDINT_H
461#  include <stdint.h>
462# endif
463#endif
464#if HAVE_UNISTD_H
465# include <unistd.h>
466#endif"
467
468ac_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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os 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 SED EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL CCAS CCASFLAGS PKG_CONFIG ac_pt_PKG_CONFIG XORG_CFLAGS XORG_LIBS moduledir I386ARCH_TRUE I386ARCH_FALSE DRIVER_NAME APP_MAN_SUFFIX LIB_MAN_SUFFIX FILE_MAN_SUFFIX MISC_MAN_SUFFIX DRIVER_MAN_SUFFIX ADMIN_MAN_SUFFIX APP_MAN_DIR LIB_MAN_DIR FILE_MAN_DIR MISC_MAN_DIR DRIVER_MAN_DIR ADMIN_MAN_DIR LIBOBJS LTLIBOBJS'
469ac_subst_files=''
470
471# Initialize some variables set by options.
472ac_init_help=
473ac_init_version=false
474# The variables have the same names as the options, with
475# dashes changed to underlines.
476cache_file=/dev/null
477exec_prefix=NONE
478no_create=
479no_recursion=
480prefix=NONE
481program_prefix=NONE
482program_suffix=NONE
483program_transform_name=s,x,x,
484silent=
485site=
486srcdir=
487verbose=
488x_includes=NONE
489x_libraries=NONE
490
491# Installation directory options.
492# These are left unexpanded so users can "make install exec_prefix=/foo"
493# and all the variables that are supposed to be based on exec_prefix
494# by default will actually change.
495# Use braces instead of parens because sh, perl, etc. also accept them.
496bindir='${exec_prefix}/bin'
497sbindir='${exec_prefix}/sbin'
498libexecdir='${exec_prefix}/libexec'
499datadir='${prefix}/share'
500sysconfdir='${prefix}/etc'
501sharedstatedir='${prefix}/com'
502localstatedir='${prefix}/var'
503libdir='${exec_prefix}/lib'
504includedir='${prefix}/include'
505oldincludedir='/usr/include'
506infodir='${prefix}/info'
507mandir='${prefix}/man'
508
509ac_prev=
510for ac_option
511do
512  # If the previous option needs an argument, assign it.
513  if test -n "$ac_prev"; then
514    eval "$ac_prev=\$ac_option"
515    ac_prev=
516    continue
517  fi
518
519  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
520
521  # Accept the important Cygnus configure options, so we can diagnose typos.
522
523  case $ac_option in
524
525  -bindir | --bindir | --bindi | --bind | --bin | --bi)
526    ac_prev=bindir ;;
527  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
528    bindir=$ac_optarg ;;
529
530  -build | --build | --buil | --bui | --bu)
531    ac_prev=build_alias ;;
532  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533    build_alias=$ac_optarg ;;
534
535  -cache-file | --cache-file | --cache-fil | --cache-fi \
536  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537    ac_prev=cache_file ;;
538  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540    cache_file=$ac_optarg ;;
541
542  --config-cache | -C)
543    cache_file=config.cache ;;
544
545  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
546    ac_prev=datadir ;;
547  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548  | --da=*)
549    datadir=$ac_optarg ;;
550
551  -disable-* | --disable-*)
552    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553    # Reject names that are not valid shell variable names.
554    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556   { (exit 1); exit 1; }; }
557    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558    eval "enable_$ac_feature=no" ;;
559
560  -enable-* | --enable-*)
561    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562    # Reject names that are not valid shell variable names.
563    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565   { (exit 1); exit 1; }; }
566    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567    case $ac_option in
568      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
569      *) ac_optarg=yes ;;
570    esac
571    eval "enable_$ac_feature='$ac_optarg'" ;;
572
573  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575  | --exec | --exe | --ex)
576    ac_prev=exec_prefix ;;
577  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579  | --exec=* | --exe=* | --ex=*)
580    exec_prefix=$ac_optarg ;;
581
582  -gas | --gas | --ga | --g)
583    # Obsolete; use --with-gas.
584    with_gas=yes ;;
585
586  -help | --help | --hel | --he | -h)
587    ac_init_help=long ;;
588  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589    ac_init_help=recursive ;;
590  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591    ac_init_help=short ;;
592
593  -host | --host | --hos | --ho)
594    ac_prev=host_alias ;;
595  -host=* | --host=* | --hos=* | --ho=*)
596    host_alias=$ac_optarg ;;
597
598  -includedir | --includedir | --includedi | --included | --include \
599  | --includ | --inclu | --incl | --inc)
600    ac_prev=includedir ;;
601  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602  | --includ=* | --inclu=* | --incl=* | --inc=*)
603    includedir=$ac_optarg ;;
604
605  -infodir | --infodir | --infodi | --infod | --info | --inf)
606    ac_prev=infodir ;;
607  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608    infodir=$ac_optarg ;;
609
610  -libdir | --libdir | --libdi | --libd)
611    ac_prev=libdir ;;
612  -libdir=* | --libdir=* | --libdi=* | --libd=*)
613    libdir=$ac_optarg ;;
614
615  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616  | --libexe | --libex | --libe)
617    ac_prev=libexecdir ;;
618  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619  | --libexe=* | --libex=* | --libe=*)
620    libexecdir=$ac_optarg ;;
621
622  -localstatedir | --localstatedir | --localstatedi | --localstated \
623  | --localstate | --localstat | --localsta | --localst \
624  | --locals | --local | --loca | --loc | --lo)
625    ac_prev=localstatedir ;;
626  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629    localstatedir=$ac_optarg ;;
630
631  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
632    ac_prev=mandir ;;
633  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
634    mandir=$ac_optarg ;;
635
636  -nfp | --nfp | --nf)
637    # Obsolete; use --without-fp.
638    with_fp=no ;;
639
640  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641  | --no-cr | --no-c | -n)
642    no_create=yes ;;
643
644  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
646    no_recursion=yes ;;
647
648  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650  | --oldin | --oldi | --old | --ol | --o)
651    ac_prev=oldincludedir ;;
652  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655    oldincludedir=$ac_optarg ;;
656
657  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
658    ac_prev=prefix ;;
659  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
660    prefix=$ac_optarg ;;
661
662  -program-prefix | --program-prefix | --program-prefi | --program-pref \
663  | --program-pre | --program-pr | --program-p)
664    ac_prev=program_prefix ;;
665  -program-prefix=* | --program-prefix=* | --program-prefi=* \
666  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667    program_prefix=$ac_optarg ;;
668
669  -program-suffix | --program-suffix | --program-suffi | --program-suff \
670  | --program-suf | --program-su | --program-s)
671    ac_prev=program_suffix ;;
672  -program-suffix=* | --program-suffix=* | --program-suffi=* \
673  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674    program_suffix=$ac_optarg ;;
675
676  -program-transform-name | --program-transform-name \
677  | --program-transform-nam | --program-transform-na \
678  | --program-transform-n | --program-transform- \
679  | --program-transform | --program-transfor \
680  | --program-transfo | --program-transf \
681  | --program-trans | --program-tran \
682  | --progr-tra | --program-tr | --program-t)
683    ac_prev=program_transform_name ;;
684  -program-transform-name=* | --program-transform-name=* \
685  | --program-transform-nam=* | --program-transform-na=* \
686  | --program-transform-n=* | --program-transform-=* \
687  | --program-transform=* | --program-transfor=* \
688  | --program-transfo=* | --program-transf=* \
689  | --program-trans=* | --program-tran=* \
690  | --progr-tra=* | --program-tr=* | --program-t=*)
691    program_transform_name=$ac_optarg ;;
692
693  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694  | -silent | --silent | --silen | --sile | --sil)
695    silent=yes ;;
696
697  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
698    ac_prev=sbindir ;;
699  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
700  | --sbi=* | --sb=*)
701    sbindir=$ac_optarg ;;
702
703  -sharedstatedir | --sharedstatedir | --sharedstatedi \
704  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705  | --sharedst | --shareds | --shared | --share | --shar \
706  | --sha | --sh)
707    ac_prev=sharedstatedir ;;
708  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
711  | --sha=* | --sh=*)
712    sharedstatedir=$ac_optarg ;;
713
714  -site | --site | --sit)
715    ac_prev=site ;;
716  -site=* | --site=* | --sit=*)
717    site=$ac_optarg ;;
718
719  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
720    ac_prev=srcdir ;;
721  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
722    srcdir=$ac_optarg ;;
723
724  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725  | --syscon | --sysco | --sysc | --sys | --sy)
726    ac_prev=sysconfdir ;;
727  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729    sysconfdir=$ac_optarg ;;
730
731  -target | --target | --targe | --targ | --tar | --ta | --t)
732    ac_prev=target_alias ;;
733  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734    target_alias=$ac_optarg ;;
735
736  -v | -verbose | --verbose | --verbos | --verbo | --verb)
737    verbose=yes ;;
738
739  -version | --version | --versio | --versi | --vers | -V)
740    ac_init_version=: ;;
741
742  -with-* | --with-*)
743    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744    # Reject names that are not valid shell variable names.
745    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746      { echo "$as_me: error: invalid package name: $ac_package" >&2
747   { (exit 1); exit 1; }; }
748    ac_package=`echo $ac_package| sed 's/-/_/g'`
749    case $ac_option in
750      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
751      *) ac_optarg=yes ;;
752    esac
753    eval "with_$ac_package='$ac_optarg'" ;;
754
755  -without-* | --without-*)
756    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757    # Reject names that are not valid shell variable names.
758    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759      { echo "$as_me: error: invalid package name: $ac_package" >&2
760   { (exit 1); exit 1; }; }
761    ac_package=`echo $ac_package | sed 's/-/_/g'`
762    eval "with_$ac_package=no" ;;
763
764  --x)
765    # Obsolete; use --with-x.
766    with_x=yes ;;
767
768  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769  | --x-incl | --x-inc | --x-in | --x-i)
770    ac_prev=x_includes ;;
771  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773    x_includes=$ac_optarg ;;
774
775  -x-libraries | --x-libraries | --x-librarie | --x-librari \
776  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777    ac_prev=x_libraries ;;
778  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780    x_libraries=$ac_optarg ;;
781
782  -*) { echo "$as_me: error: unrecognized option: $ac_option
783Try \`$0 --help' for more information." >&2
784   { (exit 1); exit 1; }; }
785    ;;
786
787  *=*)
788    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789    # Reject names that are not valid shell variable names.
790    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792   { (exit 1); exit 1; }; }
793    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794    eval "$ac_envvar='$ac_optarg'"
795    export $ac_envvar ;;
796
797  *)
798    # FIXME: should be removed in autoconf 3.0.
799    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
803    ;;
804
805  esac
806done
807
808if test -n "$ac_prev"; then
809  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810  { echo "$as_me: error: missing argument to $ac_option" >&2
811   { (exit 1); exit 1; }; }
812fi
813
814# Be sure to have absolute paths.
815for ac_var in exec_prefix prefix
816do
817  eval ac_val=$`echo $ac_var`
818  case $ac_val in
819    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821   { (exit 1); exit 1; }; };;
822  esac
823done
824
825# Be sure to have absolute paths.
826for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827	      localstatedir libdir includedir oldincludedir infodir mandir
828do
829  eval ac_val=$`echo $ac_var`
830  case $ac_val in
831    [\\/$]* | ?:[\\/]* ) ;;
832    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833   { (exit 1); exit 1; }; };;
834  esac
835done
836
837# There might be people who depend on the old broken behavior: `$host'
838# used to hold the argument of --host etc.
839# FIXME: To remove some day.
840build=$build_alias
841host=$host_alias
842target=$target_alias
843
844# FIXME: To remove some day.
845if test "x$host_alias" != x; then
846  if test "x$build_alias" = x; then
847    cross_compiling=maybe
848    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849    If a cross compiler is detected then cross compile mode will be used." >&2
850  elif test "x$build_alias" != "x$host_alias"; then
851    cross_compiling=yes
852  fi
853fi
854
855ac_tool_prefix=
856test -n "$host_alias" && ac_tool_prefix=$host_alias-
857
858test "$silent" = yes && exec 6>/dev/null
859
860
861# Find the source files, if location was not specified.
862if test -z "$srcdir"; then
863  ac_srcdir_defaulted=yes
864  # Try the directory containing this script, then its parent.
865  ac_confdir=`(dirname "$0") 2>/dev/null ||
866$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867	 X"$0" : 'X\(//\)[^/]' \| \
868	 X"$0" : 'X\(//\)$' \| \
869	 X"$0" : 'X\(/\)' \| \
870	 .     : '\(.\)' 2>/dev/null ||
871echo X"$0" |
872    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874  	  /^X\(\/\/\)$/{ s//\1/; q; }
875  	  /^X\(\/\).*/{ s//\1/; q; }
876  	  s/.*/./; q'`
877  srcdir=$ac_confdir
878  if test ! -r $srcdir/$ac_unique_file; then
879    srcdir=..
880  fi
881else
882  ac_srcdir_defaulted=no
883fi
884if test ! -r $srcdir/$ac_unique_file; then
885  if test "$ac_srcdir_defaulted" = yes; then
886    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887   { (exit 1); exit 1; }; }
888  else
889    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890   { (exit 1); exit 1; }; }
891  fi
892fi
893(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895   { (exit 1); exit 1; }; }
896srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897ac_env_build_alias_set=${build_alias+set}
898ac_env_build_alias_value=$build_alias
899ac_cv_env_build_alias_set=${build_alias+set}
900ac_cv_env_build_alias_value=$build_alias
901ac_env_host_alias_set=${host_alias+set}
902ac_env_host_alias_value=$host_alias
903ac_cv_env_host_alias_set=${host_alias+set}
904ac_cv_env_host_alias_value=$host_alias
905ac_env_target_alias_set=${target_alias+set}
906ac_env_target_alias_value=$target_alias
907ac_cv_env_target_alias_set=${target_alias+set}
908ac_cv_env_target_alias_value=$target_alias
909ac_env_CC_set=${CC+set}
910ac_env_CC_value=$CC
911ac_cv_env_CC_set=${CC+set}
912ac_cv_env_CC_value=$CC
913ac_env_CFLAGS_set=${CFLAGS+set}
914ac_env_CFLAGS_value=$CFLAGS
915ac_cv_env_CFLAGS_set=${CFLAGS+set}
916ac_cv_env_CFLAGS_value=$CFLAGS
917ac_env_LDFLAGS_set=${LDFLAGS+set}
918ac_env_LDFLAGS_value=$LDFLAGS
919ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920ac_cv_env_LDFLAGS_value=$LDFLAGS
921ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922ac_env_CPPFLAGS_value=$CPPFLAGS
923ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925ac_env_CPP_set=${CPP+set}
926ac_env_CPP_value=$CPP
927ac_cv_env_CPP_set=${CPP+set}
928ac_cv_env_CPP_value=$CPP
929ac_env_CXX_set=${CXX+set}
930ac_env_CXX_value=$CXX
931ac_cv_env_CXX_set=${CXX+set}
932ac_cv_env_CXX_value=$CXX
933ac_env_CXXFLAGS_set=${CXXFLAGS+set}
934ac_env_CXXFLAGS_value=$CXXFLAGS
935ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
936ac_cv_env_CXXFLAGS_value=$CXXFLAGS
937ac_env_CXXCPP_set=${CXXCPP+set}
938ac_env_CXXCPP_value=$CXXCPP
939ac_cv_env_CXXCPP_set=${CXXCPP+set}
940ac_cv_env_CXXCPP_value=$CXXCPP
941ac_env_F77_set=${F77+set}
942ac_env_F77_value=$F77
943ac_cv_env_F77_set=${F77+set}
944ac_cv_env_F77_value=$F77
945ac_env_FFLAGS_set=${FFLAGS+set}
946ac_env_FFLAGS_value=$FFLAGS
947ac_cv_env_FFLAGS_set=${FFLAGS+set}
948ac_cv_env_FFLAGS_value=$FFLAGS
949ac_env_CCAS_set=${CCAS+set}
950ac_env_CCAS_value=$CCAS
951ac_cv_env_CCAS_set=${CCAS+set}
952ac_cv_env_CCAS_value=$CCAS
953ac_env_CCASFLAGS_set=${CCASFLAGS+set}
954ac_env_CCASFLAGS_value=$CCASFLAGS
955ac_cv_env_CCASFLAGS_set=${CCASFLAGS+set}
956ac_cv_env_CCASFLAGS_value=$CCASFLAGS
957ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
958ac_env_PKG_CONFIG_value=$PKG_CONFIG
959ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
960ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
961ac_env_XORG_CFLAGS_set=${XORG_CFLAGS+set}
962ac_env_XORG_CFLAGS_value=$XORG_CFLAGS
963ac_cv_env_XORG_CFLAGS_set=${XORG_CFLAGS+set}
964ac_cv_env_XORG_CFLAGS_value=$XORG_CFLAGS
965ac_env_XORG_LIBS_set=${XORG_LIBS+set}
966ac_env_XORG_LIBS_value=$XORG_LIBS
967ac_cv_env_XORG_LIBS_set=${XORG_LIBS+set}
968ac_cv_env_XORG_LIBS_value=$XORG_LIBS
969
970#
971# Report the --help message.
972#
973if test "$ac_init_help" = "long"; then
974  # Omit some internal or obsolete options to make the list less imposing.
975  # This message is too long to be a string in the A/UX 3.1 sh.
976  cat <<_ACEOF
977\`configure' configures xf86-video-nsc 2.8.2 to adapt to many kinds of systems.
978
979Usage: $0 [OPTION]... [VAR=VALUE]...
980
981To assign environment variables (e.g., CC, CFLAGS...), specify them as
982VAR=VALUE.  See below for descriptions of some of the useful variables.
983
984Defaults for the options are specified in brackets.
985
986Configuration:
987  -h, --help              display this help and exit
988      --help=short        display options specific to this package
989      --help=recursive    display the short help of all the included packages
990  -V, --version           display version information and exit
991  -q, --quiet, --silent   do not print \`checking...' messages
992      --cache-file=FILE   cache test results in FILE [disabled]
993  -C, --config-cache      alias for \`--cache-file=config.cache'
994  -n, --no-create         do not create output files
995      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
996
997_ACEOF
998
999  cat <<_ACEOF
1000Installation directories:
1001  --prefix=PREFIX         install architecture-independent files in PREFIX
1002			  [$ac_default_prefix]
1003  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1004			  [PREFIX]
1005
1006By default, \`make install' will install all the files in
1007\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1008an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1009for instance \`--prefix=\$HOME'.
1010
1011For better control, use the options below.
1012
1013Fine tuning of the installation directories:
1014  --bindir=DIR           user executables [EPREFIX/bin]
1015  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1016  --libexecdir=DIR       program executables [EPREFIX/libexec]
1017  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1018  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1019  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1020  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1021  --libdir=DIR           object code libraries [EPREFIX/lib]
1022  --includedir=DIR       C header files [PREFIX/include]
1023  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1024  --infodir=DIR          info documentation [PREFIX/info]
1025  --mandir=DIR           man documentation [PREFIX/man]
1026_ACEOF
1027
1028  cat <<\_ACEOF
1029
1030Program names:
1031  --program-prefix=PREFIX            prepend PREFIX to installed program names
1032  --program-suffix=SUFFIX            append SUFFIX to installed program names
1033  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1034
1035System types:
1036  --build=BUILD     configure for building on BUILD [guessed]
1037  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1038_ACEOF
1039fi
1040
1041if test -n "$ac_init_help"; then
1042  case $ac_init_help in
1043     short | recursive ) echo "Configuration of xf86-video-nsc 2.8.2:";;
1044   esac
1045  cat <<\_ACEOF
1046
1047Optional Features:
1048  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1049  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1050  --enable-maintainer-mode  enable make rules and dependencies not useful
1051			  (and sometimes confusing) to the casual installer
1052  --enable-static[=PKGS]
1053                          build static libraries [default=no]
1054  --enable-shared[=PKGS]
1055                          build shared libraries [default=yes]
1056  --enable-fast-install[=PKGS]
1057                          optimize for fast installation [default=yes]
1058  --disable-dependency-tracking  speeds up one-time build
1059  --enable-dependency-tracking   do not reject slow dependency extractors
1060  --disable-libtool-lock  avoid locking (might break parallel builds)
1061
1062Optional Packages:
1063  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1064  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1065  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1066  --with-pic              try to use only PIC/non-PIC objects [default=use
1067                          both]
1068  --with-tags[=TAGS]
1069                          include additional configurations [automatic]
1070  --with-xorg-module-dir=DIR
1071                          Default xorg module directory
1072                          [default=$libdir/xorg/modules]
1073  --with-release-version=STRING
1074                          Use release version string in package name
1075
1076Some influential environment variables:
1077  CC          C compiler command
1078  CFLAGS      C compiler flags
1079  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1080              nonstandard directory <lib dir>
1081  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1082              headers in a nonstandard directory <include dir>
1083  CPP         C preprocessor
1084  CXX         C++ compiler command
1085  CXXFLAGS    C++ compiler flags
1086  CXXCPP      C++ preprocessor
1087  F77         Fortran 77 compiler command
1088  FFLAGS      Fortran 77 compiler flags
1089  CCAS        assembler compiler command (defaults to CC)
1090  CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1091  PKG_CONFIG  path to pkg-config utility
1092  XORG_CFLAGS C compiler flags for XORG, overriding pkg-config
1093  XORG_LIBS   linker flags for XORG, overriding pkg-config
1094
1095Use these variables to override the choices made by `configure' or to help
1096it to find libraries and programs with nonstandard names/locations.
1097
1098Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1099_ACEOF
1100fi
1101
1102if test "$ac_init_help" = "recursive"; then
1103  # If there are subdirs, report their specific --help.
1104  ac_popdir=`pwd`
1105  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1106    test -d $ac_dir || continue
1107    ac_builddir=.
1108
1109if test "$ac_dir" != .; then
1110  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1111  # A "../" for each directory in $ac_dir_suffix.
1112  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1113else
1114  ac_dir_suffix= ac_top_builddir=
1115fi
1116
1117case $srcdir in
1118  .)  # No --srcdir option.  We are building in place.
1119    ac_srcdir=.
1120    if test -z "$ac_top_builddir"; then
1121       ac_top_srcdir=.
1122    else
1123       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1124    fi ;;
1125  [\\/]* | ?:[\\/]* )  # Absolute path.
1126    ac_srcdir=$srcdir$ac_dir_suffix;
1127    ac_top_srcdir=$srcdir ;;
1128  *) # Relative path.
1129    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1130    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1131esac
1132
1133# Do not use `cd foo && pwd` to compute absolute paths, because
1134# the directories may not exist.
1135case `pwd` in
1136.) ac_abs_builddir="$ac_dir";;
1137*)
1138  case "$ac_dir" in
1139  .) ac_abs_builddir=`pwd`;;
1140  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1141  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1142  esac;;
1143esac
1144case $ac_abs_builddir in
1145.) ac_abs_top_builddir=${ac_top_builddir}.;;
1146*)
1147  case ${ac_top_builddir}. in
1148  .) ac_abs_top_builddir=$ac_abs_builddir;;
1149  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1150  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1151  esac;;
1152esac
1153case $ac_abs_builddir in
1154.) ac_abs_srcdir=$ac_srcdir;;
1155*)
1156  case $ac_srcdir in
1157  .) ac_abs_srcdir=$ac_abs_builddir;;
1158  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1159  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1160  esac;;
1161esac
1162case $ac_abs_builddir in
1163.) ac_abs_top_srcdir=$ac_top_srcdir;;
1164*)
1165  case $ac_top_srcdir in
1166  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1167  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1168  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1169  esac;;
1170esac
1171
1172    cd $ac_dir
1173    # Check for guested configure; otherwise get Cygnus style configure.
1174    if test -f $ac_srcdir/configure.gnu; then
1175      echo
1176      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1177    elif test -f $ac_srcdir/configure; then
1178      echo
1179      $SHELL $ac_srcdir/configure  --help=recursive
1180    elif test -f $ac_srcdir/configure.ac ||
1181	   test -f $ac_srcdir/configure.in; then
1182      echo
1183      $ac_configure --help
1184    else
1185      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1186    fi
1187    cd $ac_popdir
1188  done
1189fi
1190
1191test -n "$ac_init_help" && exit 0
1192if $ac_init_version; then
1193  cat <<\_ACEOF
1194xf86-video-nsc configure 2.8.2
1195generated by GNU Autoconf 2.59
1196
1197Copyright (C) 2003 Free Software Foundation, Inc.
1198This configure script is free software; the Free Software Foundation
1199gives unlimited permission to copy, distribute and modify it.
1200_ACEOF
1201  exit 0
1202fi
1203exec 5>config.log
1204cat >&5 <<_ACEOF
1205This file contains any messages produced by compilers while
1206running configure, to aid debugging if configure makes a mistake.
1207
1208It was created by xf86-video-nsc $as_me 2.8.2, which was
1209generated by GNU Autoconf 2.59.  Invocation command line was
1210
1211  $ $0 $@
1212
1213_ACEOF
1214{
1215cat <<_ASUNAME
1216## --------- ##
1217## Platform. ##
1218## --------- ##
1219
1220hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1221uname -m = `(uname -m) 2>/dev/null || echo unknown`
1222uname -r = `(uname -r) 2>/dev/null || echo unknown`
1223uname -s = `(uname -s) 2>/dev/null || echo unknown`
1224uname -v = `(uname -v) 2>/dev/null || echo unknown`
1225
1226/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1227/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1228
1229/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1230/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1231/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1232hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1233/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1234/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1235/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1236
1237_ASUNAME
1238
1239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1240for as_dir in $PATH
1241do
1242  IFS=$as_save_IFS
1243  test -z "$as_dir" && as_dir=.
1244  echo "PATH: $as_dir"
1245done
1246
1247} >&5
1248
1249cat >&5 <<_ACEOF
1250
1251
1252## ----------- ##
1253## Core tests. ##
1254## ----------- ##
1255
1256_ACEOF
1257
1258
1259# Keep a trace of the command line.
1260# Strip out --no-create and --no-recursion so they do not pile up.
1261# Strip out --silent because we don't want to record it for future runs.
1262# Also quote any args containing shell meta-characters.
1263# Make two passes to allow for proper duplicate-argument suppression.
1264ac_configure_args=
1265ac_configure_args0=
1266ac_configure_args1=
1267ac_sep=
1268ac_must_keep_next=false
1269for ac_pass in 1 2
1270do
1271  for ac_arg
1272  do
1273    case $ac_arg in
1274    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1275    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1276    | -silent | --silent | --silen | --sile | --sil)
1277      continue ;;
1278    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1279      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1280    esac
1281    case $ac_pass in
1282    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1283    2)
1284      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1285      if test $ac_must_keep_next = true; then
1286	ac_must_keep_next=false # Got value, back to normal.
1287      else
1288	case $ac_arg in
1289	  *=* | --config-cache | -C | -disable-* | --disable-* \
1290	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1291	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1292	  | -with-* | --with-* | -without-* | --without-* | --x)
1293	    case "$ac_configure_args0 " in
1294	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1295	    esac
1296	    ;;
1297	  -* ) ac_must_keep_next=true ;;
1298	esac
1299      fi
1300      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1301      # Get rid of the leading space.
1302      ac_sep=" "
1303      ;;
1304    esac
1305  done
1306done
1307$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1308$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1309
1310# When interrupted or exit'd, cleanup temporary files, and complete
1311# config.log.  We remove comments because anyway the quotes in there
1312# would cause problems or look ugly.
1313# WARNING: Be sure not to use single quotes in there, as some shells,
1314# such as our DU 5.0 friend, will then `close' the trap.
1315trap 'exit_status=$?
1316  # Save into config.log some information that might help in debugging.
1317  {
1318    echo
1319
1320    cat <<\_ASBOX
1321## ---------------- ##
1322## Cache variables. ##
1323## ---------------- ##
1324_ASBOX
1325    echo
1326    # The following way of writing the cache mishandles newlines in values,
1327{
1328  (set) 2>&1 |
1329    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1330    *ac_space=\ *)
1331      sed -n \
1332	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1333	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1334      ;;
1335    *)
1336      sed -n \
1337	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1338      ;;
1339    esac;
1340}
1341    echo
1342
1343    cat <<\_ASBOX
1344## ----------------- ##
1345## Output variables. ##
1346## ----------------- ##
1347_ASBOX
1348    echo
1349    for ac_var in $ac_subst_vars
1350    do
1351      eval ac_val=$`echo $ac_var`
1352      echo "$ac_var='"'"'$ac_val'"'"'"
1353    done | sort
1354    echo
1355
1356    if test -n "$ac_subst_files"; then
1357      cat <<\_ASBOX
1358## ------------- ##
1359## Output files. ##
1360## ------------- ##
1361_ASBOX
1362      echo
1363      for ac_var in $ac_subst_files
1364      do
1365	eval ac_val=$`echo $ac_var`
1366	echo "$ac_var='"'"'$ac_val'"'"'"
1367      done | sort
1368      echo
1369    fi
1370
1371    if test -s confdefs.h; then
1372      cat <<\_ASBOX
1373## ----------- ##
1374## confdefs.h. ##
1375## ----------- ##
1376_ASBOX
1377      echo
1378      sed "/^$/d" confdefs.h | sort
1379      echo
1380    fi
1381    test "$ac_signal" != 0 &&
1382      echo "$as_me: caught signal $ac_signal"
1383    echo "$as_me: exit $exit_status"
1384  } >&5
1385  rm -f core *.core &&
1386  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1387    exit $exit_status
1388     ' 0
1389for ac_signal in 1 2 13 15; do
1390  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1391done
1392ac_signal=0
1393
1394# confdefs.h avoids OS command line length limits that DEFS can exceed.
1395rm -rf conftest* confdefs.h
1396# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1397echo >confdefs.h
1398
1399# Predefined preprocessor variables.
1400
1401cat >>confdefs.h <<_ACEOF
1402#define PACKAGE_NAME "$PACKAGE_NAME"
1403_ACEOF
1404
1405
1406cat >>confdefs.h <<_ACEOF
1407#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1408_ACEOF
1409
1410
1411cat >>confdefs.h <<_ACEOF
1412#define PACKAGE_VERSION "$PACKAGE_VERSION"
1413_ACEOF
1414
1415
1416cat >>confdefs.h <<_ACEOF
1417#define PACKAGE_STRING "$PACKAGE_STRING"
1418_ACEOF
1419
1420
1421cat >>confdefs.h <<_ACEOF
1422#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1423_ACEOF
1424
1425
1426# Let the site file select an alternate cache file if it wants to.
1427# Prefer explicitly selected file to automatically selected ones.
1428if test -z "$CONFIG_SITE"; then
1429  if test "x$prefix" != xNONE; then
1430    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1431  else
1432    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1433  fi
1434fi
1435for ac_site_file in $CONFIG_SITE; do
1436  if test -r "$ac_site_file"; then
1437    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1438echo "$as_me: loading site script $ac_site_file" >&6;}
1439    sed 's/^/| /' "$ac_site_file" >&5
1440    . "$ac_site_file"
1441  fi
1442done
1443
1444if test -r "$cache_file"; then
1445  # Some versions of bash will fail to source /dev/null (special
1446  # files actually), so we avoid doing that.
1447  if test -f "$cache_file"; then
1448    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1449echo "$as_me: loading cache $cache_file" >&6;}
1450    case $cache_file in
1451      [\\/]* | ?:[\\/]* ) . $cache_file;;
1452      *)                      . ./$cache_file;;
1453    esac
1454  fi
1455else
1456  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1457echo "$as_me: creating cache $cache_file" >&6;}
1458  >$cache_file
1459fi
1460
1461# Check that the precious variables saved in the cache have kept the same
1462# value.
1463ac_cache_corrupted=false
1464for ac_var in `(set) 2>&1 |
1465	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1466  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1467  eval ac_new_set=\$ac_env_${ac_var}_set
1468  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1469  eval ac_new_val="\$ac_env_${ac_var}_value"
1470  case $ac_old_set,$ac_new_set in
1471    set,)
1472      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1473echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1474      ac_cache_corrupted=: ;;
1475    ,set)
1476      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1477echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1478      ac_cache_corrupted=: ;;
1479    ,);;
1480    *)
1481      if test "x$ac_old_val" != "x$ac_new_val"; then
1482	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1483echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1484	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1485echo "$as_me:   former value:  $ac_old_val" >&2;}
1486	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1487echo "$as_me:   current value: $ac_new_val" >&2;}
1488	ac_cache_corrupted=:
1489      fi;;
1490  esac
1491  # Pass precious variables to config.status.
1492  if test "$ac_new_set" = set; then
1493    case $ac_new_val in
1494    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1495      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1496    *) ac_arg=$ac_var=$ac_new_val ;;
1497    esac
1498    case " $ac_configure_args " in
1499      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1500      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1501    esac
1502  fi
1503done
1504if $ac_cache_corrupted; then
1505  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1506echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1507  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1508echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1509   { (exit 1); exit 1; }; }
1510fi
1511
1512ac_ext=c
1513ac_cpp='$CPP $CPPFLAGS'
1514ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1515ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1516ac_compiler_gnu=$ac_cv_c_compiler_gnu
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546          ac_config_headers="$ac_config_headers config.h"
1547
1548ac_aux_dir=
1549for ac_dir in . $srcdir/.; do
1550  if test -f $ac_dir/install-sh; then
1551    ac_aux_dir=$ac_dir
1552    ac_install_sh="$ac_aux_dir/install-sh -c"
1553    break
1554  elif test -f $ac_dir/install.sh; then
1555    ac_aux_dir=$ac_dir
1556    ac_install_sh="$ac_aux_dir/install.sh -c"
1557    break
1558  elif test -f $ac_dir/shtool; then
1559    ac_aux_dir=$ac_dir
1560    ac_install_sh="$ac_aux_dir/shtool install -c"
1561    break
1562  fi
1563done
1564if test -z "$ac_aux_dir"; then
1565  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . $srcdir/." >&5
1566echo "$as_me: error: cannot find install-sh or install.sh in . $srcdir/." >&2;}
1567   { (exit 1); exit 1; }; }
1568fi
1569ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1570ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1571ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1572
1573
1574am__api_version="1.9"
1575# Find a good install program.  We prefer a C program (faster),
1576# so one script is as good as another.  But avoid the broken or
1577# incompatible versions:
1578# SysV /etc/install, /usr/sbin/install
1579# SunOS /usr/etc/install
1580# IRIX /sbin/install
1581# AIX /bin/install
1582# AmigaOS /C/install, which installs bootblocks on floppy discs
1583# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1584# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1585# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1586# OS/2's system install, which has a completely different semantic
1587# ./install, which can be erroneously created by make from ./install.sh.
1588echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1589echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1590if test -z "$INSTALL"; then
1591if test "${ac_cv_path_install+set}" = set; then
1592  echo $ECHO_N "(cached) $ECHO_C" >&6
1593else
1594  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1595for as_dir in $PATH
1596do
1597  IFS=$as_save_IFS
1598  test -z "$as_dir" && as_dir=.
1599  # Account for people who put trailing slashes in PATH elements.
1600case $as_dir/ in
1601  ./ | .// | /cC/* | \
1602  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1603  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1604  /usr/ucb/* ) ;;
1605  *)
1606    # OSF1 and SCO ODT 3.0 have their own names for install.
1607    # Don't use installbsd from OSF since it installs stuff as root
1608    # by default.
1609    for ac_prog in ginstall scoinst install; do
1610      for ac_exec_ext in '' $ac_executable_extensions; do
1611	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1612	  if test $ac_prog = install &&
1613	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1614	    # AIX install.  It has an incompatible calling convention.
1615	    :
1616	  elif test $ac_prog = install &&
1617	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1618	    # program-specific install script used by HP pwplus--don't use.
1619	    :
1620	  else
1621	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1622	    break 3
1623	  fi
1624	fi
1625      done
1626    done
1627    ;;
1628esac
1629done
1630
1631
1632fi
1633  if test "${ac_cv_path_install+set}" = set; then
1634    INSTALL=$ac_cv_path_install
1635  else
1636    # As a last resort, use the slow shell script.  We don't cache a
1637    # path for INSTALL within a source directory, because that will
1638    # break other packages using the cache if that directory is
1639    # removed, or if the path is relative.
1640    INSTALL=$ac_install_sh
1641  fi
1642fi
1643echo "$as_me:$LINENO: result: $INSTALL" >&5
1644echo "${ECHO_T}$INSTALL" >&6
1645
1646# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1647# It thinks the first close brace ends the variable substitution.
1648test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1649
1650test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1651
1652test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1653
1654echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1655echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1656# Just in case
1657sleep 1
1658echo timestamp > conftest.file
1659# Do `set' in a subshell so we don't clobber the current shell's
1660# arguments.  Must try -L first in case configure is actually a
1661# symlink; some systems play weird games with the mod time of symlinks
1662# (eg FreeBSD returns the mod time of the symlink's containing
1663# directory).
1664if (
1665   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1666   if test "$*" = "X"; then
1667      # -L didn't work.
1668      set X `ls -t $srcdir/configure conftest.file`
1669   fi
1670   rm -f conftest.file
1671   if test "$*" != "X $srcdir/configure conftest.file" \
1672      && test "$*" != "X conftest.file $srcdir/configure"; then
1673
1674      # If neither matched, then we have a broken ls.  This can happen
1675      # if, for instance, CONFIG_SHELL is bash and it inherits a
1676      # broken ls alias from the environment.  This has actually
1677      # happened.  Such a system could not be considered "sane".
1678      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1679alias in your environment" >&5
1680echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1681alias in your environment" >&2;}
1682   { (exit 1); exit 1; }; }
1683   fi
1684
1685   test "$2" = conftest.file
1686   )
1687then
1688   # Ok.
1689   :
1690else
1691   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1692Check your system clock" >&5
1693echo "$as_me: error: newly created file is older than distributed files!
1694Check your system clock" >&2;}
1695   { (exit 1); exit 1; }; }
1696fi
1697echo "$as_me:$LINENO: result: yes" >&5
1698echo "${ECHO_T}yes" >&6
1699test "$program_prefix" != NONE &&
1700  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1701# Use a double $ so make ignores it.
1702test "$program_suffix" != NONE &&
1703  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1704# Double any \ or $.  echo might interpret backslashes.
1705# By default was `s,x,x', remove it if useless.
1706cat <<\_ACEOF >conftest.sed
1707s/[\\$]/&&/g;s/;s,x,x,$//
1708_ACEOF
1709program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1710rm conftest.sed
1711
1712# expand $ac_aux_dir to an absolute path
1713am_aux_dir=`cd $ac_aux_dir && pwd`
1714
1715test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1716# Use eval to expand $SHELL
1717if eval "$MISSING --run true"; then
1718  am_missing_run="$MISSING --run "
1719else
1720  am_missing_run=
1721  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1722echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1723fi
1724
1725if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1726  # We used to keeping the `.' as first argument, in order to
1727  # allow $(mkdir_p) to be used without argument.  As in
1728  #   $(mkdir_p) $(somedir)
1729  # where $(somedir) is conditionally defined.  However this is wrong
1730  # for two reasons:
1731  #  1. if the package is installed by a user who cannot write `.'
1732  #     make install will fail,
1733  #  2. the above comment should most certainly read
1734  #     $(mkdir_p) $(DESTDIR)$(somedir)
1735  #     so it does not work when $(somedir) is undefined and
1736  #     $(DESTDIR) is not.
1737  #  To support the latter case, we have to write
1738  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1739  #  so the `.' trick is pointless.
1740  mkdir_p='mkdir -p --'
1741else
1742  # On NextStep and OpenStep, the `mkdir' command does not
1743  # recognize any option.  It will interpret all options as
1744  # directories to create, and then abort because `.' already
1745  # exists.
1746  for d in ./-p ./--version;
1747  do
1748    test -d $d && rmdir $d
1749  done
1750  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1751  if test -f "$ac_aux_dir/mkinstalldirs"; then
1752    mkdir_p='$(mkinstalldirs)'
1753  else
1754    mkdir_p='$(install_sh) -d'
1755  fi
1756fi
1757
1758for ac_prog in gawk mawk nawk awk
1759do
1760  # Extract the first word of "$ac_prog", so it can be a program name with args.
1761set dummy $ac_prog; ac_word=$2
1762echo "$as_me:$LINENO: checking for $ac_word" >&5
1763echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1764if test "${ac_cv_prog_AWK+set}" = set; then
1765  echo $ECHO_N "(cached) $ECHO_C" >&6
1766else
1767  if test -n "$AWK"; then
1768  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1769else
1770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1771for as_dir in $PATH
1772do
1773  IFS=$as_save_IFS
1774  test -z "$as_dir" && as_dir=.
1775  for ac_exec_ext in '' $ac_executable_extensions; do
1776  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1777    ac_cv_prog_AWK="$ac_prog"
1778    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1779    break 2
1780  fi
1781done
1782done
1783
1784fi
1785fi
1786AWK=$ac_cv_prog_AWK
1787if test -n "$AWK"; then
1788  echo "$as_me:$LINENO: result: $AWK" >&5
1789echo "${ECHO_T}$AWK" >&6
1790else
1791  echo "$as_me:$LINENO: result: no" >&5
1792echo "${ECHO_T}no" >&6
1793fi
1794
1795  test -n "$AWK" && break
1796done
1797
1798echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1799echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1800set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1801if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1802  echo $ECHO_N "(cached) $ECHO_C" >&6
1803else
1804  cat >conftest.make <<\_ACEOF
1805all:
1806	@echo 'ac_maketemp="$(MAKE)"'
1807_ACEOF
1808# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1809eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1810if test -n "$ac_maketemp"; then
1811  eval ac_cv_prog_make_${ac_make}_set=yes
1812else
1813  eval ac_cv_prog_make_${ac_make}_set=no
1814fi
1815rm -f conftest.make
1816fi
1817if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1818  echo "$as_me:$LINENO: result: yes" >&5
1819echo "${ECHO_T}yes" >&6
1820  SET_MAKE=
1821else
1822  echo "$as_me:$LINENO: result: no" >&5
1823echo "${ECHO_T}no" >&6
1824  SET_MAKE="MAKE=${MAKE-make}"
1825fi
1826
1827rm -rf .tst 2>/dev/null
1828mkdir .tst 2>/dev/null
1829if test -d .tst; then
1830  am__leading_dot=.
1831else
1832  am__leading_dot=_
1833fi
1834rmdir .tst 2>/dev/null
1835
1836# test to see if srcdir already configured
1837if test "`cd $srcdir && pwd`" != "`pwd`" &&
1838   test -f $srcdir/config.status; then
1839  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1840echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1841   { (exit 1); exit 1; }; }
1842fi
1843
1844# test whether we have cygpath
1845if test -z "$CYGPATH_W"; then
1846  if (cygpath --version) >/dev/null 2>/dev/null; then
1847    CYGPATH_W='cygpath -w'
1848  else
1849    CYGPATH_W=echo
1850  fi
1851fi
1852
1853
1854# Define the identity of the package.
1855 PACKAGE='xf86-video-nsc'
1856 VERSION='2.8.2'
1857
1858
1859cat >>confdefs.h <<_ACEOF
1860#define PACKAGE "$PACKAGE"
1861_ACEOF
1862
1863
1864cat >>confdefs.h <<_ACEOF
1865#define VERSION "$VERSION"
1866_ACEOF
1867
1868# Some tools Automake needs.
1869
1870ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1871
1872
1873AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1874
1875
1876AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1877
1878
1879AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1880
1881
1882MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1883
1884install_sh=${install_sh-"$am_aux_dir/install-sh"}
1885
1886# Installed binaries are usually stripped using `strip' when the user
1887# run `make install-strip'.  However `strip' might not be the right
1888# tool to use in cross-compilation environments, therefore Automake
1889# will honor the `STRIP' environment variable to overrule this program.
1890if test "$cross_compiling" != no; then
1891  if test -n "$ac_tool_prefix"; then
1892  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1893set dummy ${ac_tool_prefix}strip; ac_word=$2
1894echo "$as_me:$LINENO: checking for $ac_word" >&5
1895echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1896if test "${ac_cv_prog_STRIP+set}" = set; then
1897  echo $ECHO_N "(cached) $ECHO_C" >&6
1898else
1899  if test -n "$STRIP"; then
1900  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1901else
1902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1903for as_dir in $PATH
1904do
1905  IFS=$as_save_IFS
1906  test -z "$as_dir" && as_dir=.
1907  for ac_exec_ext in '' $ac_executable_extensions; do
1908  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1909    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1910    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1911    break 2
1912  fi
1913done
1914done
1915
1916fi
1917fi
1918STRIP=$ac_cv_prog_STRIP
1919if test -n "$STRIP"; then
1920  echo "$as_me:$LINENO: result: $STRIP" >&5
1921echo "${ECHO_T}$STRIP" >&6
1922else
1923  echo "$as_me:$LINENO: result: no" >&5
1924echo "${ECHO_T}no" >&6
1925fi
1926
1927fi
1928if test -z "$ac_cv_prog_STRIP"; then
1929  ac_ct_STRIP=$STRIP
1930  # Extract the first word of "strip", so it can be a program name with args.
1931set dummy strip; ac_word=$2
1932echo "$as_me:$LINENO: checking for $ac_word" >&5
1933echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1934if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1935  echo $ECHO_N "(cached) $ECHO_C" >&6
1936else
1937  if test -n "$ac_ct_STRIP"; then
1938  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1939else
1940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1941for as_dir in $PATH
1942do
1943  IFS=$as_save_IFS
1944  test -z "$as_dir" && as_dir=.
1945  for ac_exec_ext in '' $ac_executable_extensions; do
1946  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1947    ac_cv_prog_ac_ct_STRIP="strip"
1948    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1949    break 2
1950  fi
1951done
1952done
1953
1954  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1955fi
1956fi
1957ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1958if test -n "$ac_ct_STRIP"; then
1959  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1960echo "${ECHO_T}$ac_ct_STRIP" >&6
1961else
1962  echo "$as_me:$LINENO: result: no" >&5
1963echo "${ECHO_T}no" >&6
1964fi
1965
1966  STRIP=$ac_ct_STRIP
1967else
1968  STRIP="$ac_cv_prog_STRIP"
1969fi
1970
1971fi
1972INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1973
1974# We need awk for the "check" target.  The system "awk" is bad on
1975# some platforms.
1976# Always define AMTAR for backward compatibility.
1977
1978AMTAR=${AMTAR-"${am_missing_run}tar"}
1979
1980am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1981
1982
1983
1984
1985
1986
1987echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1988echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1989    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1990if test "${enable_maintainer_mode+set}" = set; then
1991  enableval="$enable_maintainer_mode"
1992  USE_MAINTAINER_MODE=$enableval
1993else
1994  USE_MAINTAINER_MODE=no
1995fi;
1996  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1997echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1998
1999
2000if test $USE_MAINTAINER_MODE = yes; then
2001  MAINTAINER_MODE_TRUE=
2002  MAINTAINER_MODE_FALSE='#'
2003else
2004  MAINTAINER_MODE_TRUE='#'
2005  MAINTAINER_MODE_FALSE=
2006fi
2007
2008  MAINT=$MAINTAINER_MODE_TRUE
2009
2010
2011
2012# Checks for programs.
2013# Check whether --enable-static or --disable-static was given.
2014if test "${enable_static+set}" = set; then
2015  enableval="$enable_static"
2016  p=${PACKAGE-default}
2017    case $enableval in
2018    yes) enable_static=yes ;;
2019    no) enable_static=no ;;
2020    *)
2021     enable_static=no
2022      # Look at the argument we got.  We use all the common list separators.
2023      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2024      for pkg in $enableval; do
2025	IFS="$lt_save_ifs"
2026	if test "X$pkg" = "X$p"; then
2027	  enable_static=yes
2028	fi
2029      done
2030      IFS="$lt_save_ifs"
2031      ;;
2032    esac
2033else
2034  enable_static=no
2035fi;
2036
2037
2038# Check whether --enable-shared or --disable-shared was given.
2039if test "${enable_shared+set}" = set; then
2040  enableval="$enable_shared"
2041  p=${PACKAGE-default}
2042    case $enableval in
2043    yes) enable_shared=yes ;;
2044    no) enable_shared=no ;;
2045    *)
2046      enable_shared=no
2047      # Look at the argument we got.  We use all the common list separators.
2048      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2049      for pkg in $enableval; do
2050	IFS="$lt_save_ifs"
2051	if test "X$pkg" = "X$p"; then
2052	  enable_shared=yes
2053	fi
2054      done
2055      IFS="$lt_save_ifs"
2056      ;;
2057    esac
2058else
2059  enable_shared=yes
2060fi;
2061
2062# Check whether --enable-fast-install or --disable-fast-install was given.
2063if test "${enable_fast_install+set}" = set; then
2064  enableval="$enable_fast_install"
2065  p=${PACKAGE-default}
2066    case $enableval in
2067    yes) enable_fast_install=yes ;;
2068    no) enable_fast_install=no ;;
2069    *)
2070      enable_fast_install=no
2071      # Look at the argument we got.  We use all the common list separators.
2072      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2073      for pkg in $enableval; do
2074	IFS="$lt_save_ifs"
2075	if test "X$pkg" = "X$p"; then
2076	  enable_fast_install=yes
2077	fi
2078      done
2079      IFS="$lt_save_ifs"
2080      ;;
2081    esac
2082else
2083  enable_fast_install=yes
2084fi;
2085
2086# Make sure we can run config.sub.
2087$ac_config_sub sun4 >/dev/null 2>&1 ||
2088  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2089echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2090   { (exit 1); exit 1; }; }
2091
2092echo "$as_me:$LINENO: checking build system type" >&5
2093echo $ECHO_N "checking build system type... $ECHO_C" >&6
2094if test "${ac_cv_build+set}" = set; then
2095  echo $ECHO_N "(cached) $ECHO_C" >&6
2096else
2097  ac_cv_build_alias=$build_alias
2098test -z "$ac_cv_build_alias" &&
2099  ac_cv_build_alias=`$ac_config_guess`
2100test -z "$ac_cv_build_alias" &&
2101  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2102echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2103   { (exit 1); exit 1; }; }
2104ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2105  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2106echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2107   { (exit 1); exit 1; }; }
2108
2109fi
2110echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2111echo "${ECHO_T}$ac_cv_build" >&6
2112build=$ac_cv_build
2113build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2114build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2115build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2116
2117
2118echo "$as_me:$LINENO: checking host system type" >&5
2119echo $ECHO_N "checking host system type... $ECHO_C" >&6
2120if test "${ac_cv_host+set}" = set; then
2121  echo $ECHO_N "(cached) $ECHO_C" >&6
2122else
2123  ac_cv_host_alias=$host_alias
2124test -z "$ac_cv_host_alias" &&
2125  ac_cv_host_alias=$ac_cv_build_alias
2126ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2127  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2128echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2129   { (exit 1); exit 1; }; }
2130
2131fi
2132echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2133echo "${ECHO_T}$ac_cv_host" >&6
2134host=$ac_cv_host
2135host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2136host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2137host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2138
2139
2140DEPDIR="${am__leading_dot}deps"
2141
2142          ac_config_commands="$ac_config_commands depfiles"
2143
2144
2145am_make=${MAKE-make}
2146cat > confinc << 'END'
2147am__doit:
2148	@echo done
2149.PHONY: am__doit
2150END
2151# If we don't find an include directive, just comment out the code.
2152echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2153echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2154am__include="#"
2155am__quote=
2156_am_result=none
2157# First try GNU make style include.
2158echo "include confinc" > confmf
2159# We grep out `Entering directory' and `Leaving directory'
2160# messages which can occur if `w' ends up in MAKEFLAGS.
2161# In particular we don't look at `^make:' because GNU make might
2162# be invoked under some other name (usually "gmake"), in which
2163# case it prints its new name instead of `make'.
2164if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2165   am__include=include
2166   am__quote=
2167   _am_result=GNU
2168fi
2169# Now try BSD make style include.
2170if test "$am__include" = "#"; then
2171   echo '.include "confinc"' > confmf
2172   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2173      am__include=.include
2174      am__quote="\""
2175      _am_result=BSD
2176   fi
2177fi
2178
2179
2180echo "$as_me:$LINENO: result: $_am_result" >&5
2181echo "${ECHO_T}$_am_result" >&6
2182rm -f confinc confmf
2183
2184# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2185if test "${enable_dependency_tracking+set}" = set; then
2186  enableval="$enable_dependency_tracking"
2187
2188fi;
2189if test "x$enable_dependency_tracking" != xno; then
2190  am_depcomp="$ac_aux_dir/depcomp"
2191  AMDEPBACKSLASH='\'
2192fi
2193
2194
2195if test "x$enable_dependency_tracking" != xno; then
2196  AMDEP_TRUE=
2197  AMDEP_FALSE='#'
2198else
2199  AMDEP_TRUE='#'
2200  AMDEP_FALSE=
2201fi
2202
2203
2204
2205ac_ext=c
2206ac_cpp='$CPP $CPPFLAGS'
2207ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2208ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2209ac_compiler_gnu=$ac_cv_c_compiler_gnu
2210if test -n "$ac_tool_prefix"; then
2211  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2212set dummy ${ac_tool_prefix}gcc; ac_word=$2
2213echo "$as_me:$LINENO: checking for $ac_word" >&5
2214echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2215if test "${ac_cv_prog_CC+set}" = set; then
2216  echo $ECHO_N "(cached) $ECHO_C" >&6
2217else
2218  if test -n "$CC"; then
2219  ac_cv_prog_CC="$CC" # Let the user override the test.
2220else
2221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2222for as_dir in $PATH
2223do
2224  IFS=$as_save_IFS
2225  test -z "$as_dir" && as_dir=.
2226  for ac_exec_ext in '' $ac_executable_extensions; do
2227  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2228    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2229    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2230    break 2
2231  fi
2232done
2233done
2234
2235fi
2236fi
2237CC=$ac_cv_prog_CC
2238if test -n "$CC"; then
2239  echo "$as_me:$LINENO: result: $CC" >&5
2240echo "${ECHO_T}$CC" >&6
2241else
2242  echo "$as_me:$LINENO: result: no" >&5
2243echo "${ECHO_T}no" >&6
2244fi
2245
2246fi
2247if test -z "$ac_cv_prog_CC"; then
2248  ac_ct_CC=$CC
2249  # Extract the first word of "gcc", so it can be a program name with args.
2250set dummy gcc; ac_word=$2
2251echo "$as_me:$LINENO: checking for $ac_word" >&5
2252echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2253if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2254  echo $ECHO_N "(cached) $ECHO_C" >&6
2255else
2256  if test -n "$ac_ct_CC"; then
2257  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2258else
2259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2260for as_dir in $PATH
2261do
2262  IFS=$as_save_IFS
2263  test -z "$as_dir" && as_dir=.
2264  for ac_exec_ext in '' $ac_executable_extensions; do
2265  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2266    ac_cv_prog_ac_ct_CC="gcc"
2267    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2268    break 2
2269  fi
2270done
2271done
2272
2273fi
2274fi
2275ac_ct_CC=$ac_cv_prog_ac_ct_CC
2276if test -n "$ac_ct_CC"; then
2277  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2278echo "${ECHO_T}$ac_ct_CC" >&6
2279else
2280  echo "$as_me:$LINENO: result: no" >&5
2281echo "${ECHO_T}no" >&6
2282fi
2283
2284  CC=$ac_ct_CC
2285else
2286  CC="$ac_cv_prog_CC"
2287fi
2288
2289if test -z "$CC"; then
2290  if test -n "$ac_tool_prefix"; then
2291  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2292set dummy ${ac_tool_prefix}cc; ac_word=$2
2293echo "$as_me:$LINENO: checking for $ac_word" >&5
2294echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2295if test "${ac_cv_prog_CC+set}" = set; then
2296  echo $ECHO_N "(cached) $ECHO_C" >&6
2297else
2298  if test -n "$CC"; then
2299  ac_cv_prog_CC="$CC" # Let the user override the test.
2300else
2301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2302for as_dir in $PATH
2303do
2304  IFS=$as_save_IFS
2305  test -z "$as_dir" && as_dir=.
2306  for ac_exec_ext in '' $ac_executable_extensions; do
2307  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2308    ac_cv_prog_CC="${ac_tool_prefix}cc"
2309    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2310    break 2
2311  fi
2312done
2313done
2314
2315fi
2316fi
2317CC=$ac_cv_prog_CC
2318if test -n "$CC"; then
2319  echo "$as_me:$LINENO: result: $CC" >&5
2320echo "${ECHO_T}$CC" >&6
2321else
2322  echo "$as_me:$LINENO: result: no" >&5
2323echo "${ECHO_T}no" >&6
2324fi
2325
2326fi
2327if test -z "$ac_cv_prog_CC"; then
2328  ac_ct_CC=$CC
2329  # Extract the first word of "cc", so it can be a program name with args.
2330set dummy cc; ac_word=$2
2331echo "$as_me:$LINENO: checking for $ac_word" >&5
2332echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2333if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2334  echo $ECHO_N "(cached) $ECHO_C" >&6
2335else
2336  if test -n "$ac_ct_CC"; then
2337  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2338else
2339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2340for as_dir in $PATH
2341do
2342  IFS=$as_save_IFS
2343  test -z "$as_dir" && as_dir=.
2344  for ac_exec_ext in '' $ac_executable_extensions; do
2345  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2346    ac_cv_prog_ac_ct_CC="cc"
2347    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2348    break 2
2349  fi
2350done
2351done
2352
2353fi
2354fi
2355ac_ct_CC=$ac_cv_prog_ac_ct_CC
2356if test -n "$ac_ct_CC"; then
2357  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2358echo "${ECHO_T}$ac_ct_CC" >&6
2359else
2360  echo "$as_me:$LINENO: result: no" >&5
2361echo "${ECHO_T}no" >&6
2362fi
2363
2364  CC=$ac_ct_CC
2365else
2366  CC="$ac_cv_prog_CC"
2367fi
2368
2369fi
2370if test -z "$CC"; then
2371  # Extract the first word of "cc", so it can be a program name with args.
2372set dummy cc; ac_word=$2
2373echo "$as_me:$LINENO: checking for $ac_word" >&5
2374echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2375if test "${ac_cv_prog_CC+set}" = set; then
2376  echo $ECHO_N "(cached) $ECHO_C" >&6
2377else
2378  if test -n "$CC"; then
2379  ac_cv_prog_CC="$CC" # Let the user override the test.
2380else
2381  ac_prog_rejected=no
2382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2383for as_dir in $PATH
2384do
2385  IFS=$as_save_IFS
2386  test -z "$as_dir" && as_dir=.
2387  for ac_exec_ext in '' $ac_executable_extensions; do
2388  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2389    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2390       ac_prog_rejected=yes
2391       continue
2392     fi
2393    ac_cv_prog_CC="cc"
2394    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2395    break 2
2396  fi
2397done
2398done
2399
2400if test $ac_prog_rejected = yes; then
2401  # We found a bogon in the path, so make sure we never use it.
2402  set dummy $ac_cv_prog_CC
2403  shift
2404  if test $# != 0; then
2405    # We chose a different compiler from the bogus one.
2406    # However, it has the same basename, so the bogon will be chosen
2407    # first if we set CC to just the basename; use the full file name.
2408    shift
2409    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2410  fi
2411fi
2412fi
2413fi
2414CC=$ac_cv_prog_CC
2415if test -n "$CC"; then
2416  echo "$as_me:$LINENO: result: $CC" >&5
2417echo "${ECHO_T}$CC" >&6
2418else
2419  echo "$as_me:$LINENO: result: no" >&5
2420echo "${ECHO_T}no" >&6
2421fi
2422
2423fi
2424if test -z "$CC"; then
2425  if test -n "$ac_tool_prefix"; then
2426  for ac_prog in cl
2427  do
2428    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2429set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2430echo "$as_me:$LINENO: checking for $ac_word" >&5
2431echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2432if test "${ac_cv_prog_CC+set}" = set; then
2433  echo $ECHO_N "(cached) $ECHO_C" >&6
2434else
2435  if test -n "$CC"; then
2436  ac_cv_prog_CC="$CC" # Let the user override the test.
2437else
2438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2439for as_dir in $PATH
2440do
2441  IFS=$as_save_IFS
2442  test -z "$as_dir" && as_dir=.
2443  for ac_exec_ext in '' $ac_executable_extensions; do
2444  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2445    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2446    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2447    break 2
2448  fi
2449done
2450done
2451
2452fi
2453fi
2454CC=$ac_cv_prog_CC
2455if test -n "$CC"; then
2456  echo "$as_me:$LINENO: result: $CC" >&5
2457echo "${ECHO_T}$CC" >&6
2458else
2459  echo "$as_me:$LINENO: result: no" >&5
2460echo "${ECHO_T}no" >&6
2461fi
2462
2463    test -n "$CC" && break
2464  done
2465fi
2466if test -z "$CC"; then
2467  ac_ct_CC=$CC
2468  for ac_prog in cl
2469do
2470  # Extract the first word of "$ac_prog", so it can be a program name with args.
2471set dummy $ac_prog; ac_word=$2
2472echo "$as_me:$LINENO: checking for $ac_word" >&5
2473echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2474if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2475  echo $ECHO_N "(cached) $ECHO_C" >&6
2476else
2477  if test -n "$ac_ct_CC"; then
2478  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2479else
2480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2481for as_dir in $PATH
2482do
2483  IFS=$as_save_IFS
2484  test -z "$as_dir" && as_dir=.
2485  for ac_exec_ext in '' $ac_executable_extensions; do
2486  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2487    ac_cv_prog_ac_ct_CC="$ac_prog"
2488    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2489    break 2
2490  fi
2491done
2492done
2493
2494fi
2495fi
2496ac_ct_CC=$ac_cv_prog_ac_ct_CC
2497if test -n "$ac_ct_CC"; then
2498  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2499echo "${ECHO_T}$ac_ct_CC" >&6
2500else
2501  echo "$as_me:$LINENO: result: no" >&5
2502echo "${ECHO_T}no" >&6
2503fi
2504
2505  test -n "$ac_ct_CC" && break
2506done
2507
2508  CC=$ac_ct_CC
2509fi
2510
2511fi
2512
2513
2514test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2515See \`config.log' for more details." >&5
2516echo "$as_me: error: no acceptable C compiler found in \$PATH
2517See \`config.log' for more details." >&2;}
2518   { (exit 1); exit 1; }; }
2519
2520# Provide some information about the compiler.
2521echo "$as_me:$LINENO:" \
2522     "checking for C compiler version" >&5
2523ac_compiler=`set X $ac_compile; echo $2`
2524{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2525  (eval $ac_compiler --version </dev/null >&5) 2>&5
2526  ac_status=$?
2527  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528  (exit $ac_status); }
2529{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2530  (eval $ac_compiler -v </dev/null >&5) 2>&5
2531  ac_status=$?
2532  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533  (exit $ac_status); }
2534{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2535  (eval $ac_compiler -V </dev/null >&5) 2>&5
2536  ac_status=$?
2537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2538  (exit $ac_status); }
2539
2540cat >conftest.$ac_ext <<_ACEOF
2541/* confdefs.h.  */
2542_ACEOF
2543cat confdefs.h >>conftest.$ac_ext
2544cat >>conftest.$ac_ext <<_ACEOF
2545/* end confdefs.h.  */
2546
2547int
2548main ()
2549{
2550
2551  ;
2552  return 0;
2553}
2554_ACEOF
2555ac_clean_files_save=$ac_clean_files
2556ac_clean_files="$ac_clean_files a.out a.exe b.out"
2557# Try to create an executable without -o first, disregard a.out.
2558# It will help us diagnose broken compilers, and finding out an intuition
2559# of exeext.
2560echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2561echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2562ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2563if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2564  (eval $ac_link_default) 2>&5
2565  ac_status=$?
2566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2567  (exit $ac_status); }; then
2568  # Find the output, starting from the most likely.  This scheme is
2569# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2570# resort.
2571
2572# Be careful to initialize this variable, since it used to be cached.
2573# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2574ac_cv_exeext=
2575# b.out is created by i960 compilers.
2576for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2577do
2578  test -f "$ac_file" || continue
2579  case $ac_file in
2580    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2581	;;
2582    conftest.$ac_ext )
2583	# This is the source file.
2584	;;
2585    [ab].out )
2586	# We found the default executable, but exeext='' is most
2587	# certainly right.
2588	break;;
2589    *.* )
2590	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2591	# FIXME: I believe we export ac_cv_exeext for Libtool,
2592	# but it would be cool to find out if it's true.  Does anybody
2593	# maintain Libtool? --akim.
2594	export ac_cv_exeext
2595	break;;
2596    * )
2597	break;;
2598  esac
2599done
2600else
2601  echo "$as_me: failed program was:" >&5
2602sed 's/^/| /' conftest.$ac_ext >&5
2603
2604{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2605See \`config.log' for more details." >&5
2606echo "$as_me: error: C compiler cannot create executables
2607See \`config.log' for more details." >&2;}
2608   { (exit 77); exit 77; }; }
2609fi
2610
2611ac_exeext=$ac_cv_exeext
2612echo "$as_me:$LINENO: result: $ac_file" >&5
2613echo "${ECHO_T}$ac_file" >&6
2614
2615# Check the compiler produces executables we can run.  If not, either
2616# the compiler is broken, or we cross compile.
2617echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2618echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2619# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2620# If not cross compiling, check that we can run a simple program.
2621if test "$cross_compiling" != yes; then
2622  if { ac_try='./$ac_file'
2623  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2624  (eval $ac_try) 2>&5
2625  ac_status=$?
2626  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627  (exit $ac_status); }; }; then
2628    cross_compiling=no
2629  else
2630    if test "$cross_compiling" = maybe; then
2631	cross_compiling=yes
2632    else
2633	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2634If you meant to cross compile, use \`--host'.
2635See \`config.log' for more details." >&5
2636echo "$as_me: error: cannot run C compiled programs.
2637If you meant to cross compile, use \`--host'.
2638See \`config.log' for more details." >&2;}
2639   { (exit 1); exit 1; }; }
2640    fi
2641  fi
2642fi
2643echo "$as_me:$LINENO: result: yes" >&5
2644echo "${ECHO_T}yes" >&6
2645
2646rm -f a.out a.exe conftest$ac_cv_exeext b.out
2647ac_clean_files=$ac_clean_files_save
2648# Check the compiler produces executables we can run.  If not, either
2649# the compiler is broken, or we cross compile.
2650echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2651echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2652echo "$as_me:$LINENO: result: $cross_compiling" >&5
2653echo "${ECHO_T}$cross_compiling" >&6
2654
2655echo "$as_me:$LINENO: checking for suffix of executables" >&5
2656echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2657if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2658  (eval $ac_link) 2>&5
2659  ac_status=$?
2660  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661  (exit $ac_status); }; then
2662  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2663# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2664# work properly (i.e., refer to `conftest.exe'), while it won't with
2665# `rm'.
2666for ac_file in conftest.exe conftest conftest.*; do
2667  test -f "$ac_file" || continue
2668  case $ac_file in
2669    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2670    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2671	  export ac_cv_exeext
2672	  break;;
2673    * ) break;;
2674  esac
2675done
2676else
2677  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2678See \`config.log' for more details." >&5
2679echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2680See \`config.log' for more details." >&2;}
2681   { (exit 1); exit 1; }; }
2682fi
2683
2684rm -f conftest$ac_cv_exeext
2685echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2686echo "${ECHO_T}$ac_cv_exeext" >&6
2687
2688rm -f conftest.$ac_ext
2689EXEEXT=$ac_cv_exeext
2690ac_exeext=$EXEEXT
2691echo "$as_me:$LINENO: checking for suffix of object files" >&5
2692echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2693if test "${ac_cv_objext+set}" = set; then
2694  echo $ECHO_N "(cached) $ECHO_C" >&6
2695else
2696  cat >conftest.$ac_ext <<_ACEOF
2697/* confdefs.h.  */
2698_ACEOF
2699cat confdefs.h >>conftest.$ac_ext
2700cat >>conftest.$ac_ext <<_ACEOF
2701/* end confdefs.h.  */
2702
2703int
2704main ()
2705{
2706
2707  ;
2708  return 0;
2709}
2710_ACEOF
2711rm -f conftest.o conftest.obj
2712if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2713  (eval $ac_compile) 2>&5
2714  ac_status=$?
2715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2716  (exit $ac_status); }; then
2717  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2718  case $ac_file in
2719    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2720    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2721       break;;
2722  esac
2723done
2724else
2725  echo "$as_me: failed program was:" >&5
2726sed 's/^/| /' conftest.$ac_ext >&5
2727
2728{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2729See \`config.log' for more details." >&5
2730echo "$as_me: error: cannot compute suffix of object files: cannot compile
2731See \`config.log' for more details." >&2;}
2732   { (exit 1); exit 1; }; }
2733fi
2734
2735rm -f conftest.$ac_cv_objext conftest.$ac_ext
2736fi
2737echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2738echo "${ECHO_T}$ac_cv_objext" >&6
2739OBJEXT=$ac_cv_objext
2740ac_objext=$OBJEXT
2741echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2742echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2743if test "${ac_cv_c_compiler_gnu+set}" = set; then
2744  echo $ECHO_N "(cached) $ECHO_C" >&6
2745else
2746  cat >conftest.$ac_ext <<_ACEOF
2747/* confdefs.h.  */
2748_ACEOF
2749cat confdefs.h >>conftest.$ac_ext
2750cat >>conftest.$ac_ext <<_ACEOF
2751/* end confdefs.h.  */
2752
2753int
2754main ()
2755{
2756#ifndef __GNUC__
2757       choke me
2758#endif
2759
2760  ;
2761  return 0;
2762}
2763_ACEOF
2764rm -f conftest.$ac_objext
2765if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2766  (eval $ac_compile) 2>conftest.er1
2767  ac_status=$?
2768  grep -v '^ *+' conftest.er1 >conftest.err
2769  rm -f conftest.er1
2770  cat conftest.err >&5
2771  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772  (exit $ac_status); } &&
2773	 { ac_try='test -z "$ac_c_werror_flag"
2774			 || test ! -s conftest.err'
2775  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2776  (eval $ac_try) 2>&5
2777  ac_status=$?
2778  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779  (exit $ac_status); }; } &&
2780	 { ac_try='test -s conftest.$ac_objext'
2781  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2782  (eval $ac_try) 2>&5
2783  ac_status=$?
2784  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2785  (exit $ac_status); }; }; then
2786  ac_compiler_gnu=yes
2787else
2788  echo "$as_me: failed program was:" >&5
2789sed 's/^/| /' conftest.$ac_ext >&5
2790
2791ac_compiler_gnu=no
2792fi
2793rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2794ac_cv_c_compiler_gnu=$ac_compiler_gnu
2795
2796fi
2797echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2798echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2799GCC=`test $ac_compiler_gnu = yes && echo yes`
2800ac_test_CFLAGS=${CFLAGS+set}
2801ac_save_CFLAGS=$CFLAGS
2802CFLAGS="-g"
2803echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2804echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2805if test "${ac_cv_prog_cc_g+set}" = set; then
2806  echo $ECHO_N "(cached) $ECHO_C" >&6
2807else
2808  cat >conftest.$ac_ext <<_ACEOF
2809/* confdefs.h.  */
2810_ACEOF
2811cat confdefs.h >>conftest.$ac_ext
2812cat >>conftest.$ac_ext <<_ACEOF
2813/* end confdefs.h.  */
2814
2815int
2816main ()
2817{
2818
2819  ;
2820  return 0;
2821}
2822_ACEOF
2823rm -f conftest.$ac_objext
2824if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2825  (eval $ac_compile) 2>conftest.er1
2826  ac_status=$?
2827  grep -v '^ *+' conftest.er1 >conftest.err
2828  rm -f conftest.er1
2829  cat conftest.err >&5
2830  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831  (exit $ac_status); } &&
2832	 { ac_try='test -z "$ac_c_werror_flag"
2833			 || test ! -s conftest.err'
2834  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2835  (eval $ac_try) 2>&5
2836  ac_status=$?
2837  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2838  (exit $ac_status); }; } &&
2839	 { ac_try='test -s conftest.$ac_objext'
2840  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2841  (eval $ac_try) 2>&5
2842  ac_status=$?
2843  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844  (exit $ac_status); }; }; then
2845  ac_cv_prog_cc_g=yes
2846else
2847  echo "$as_me: failed program was:" >&5
2848sed 's/^/| /' conftest.$ac_ext >&5
2849
2850ac_cv_prog_cc_g=no
2851fi
2852rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2853fi
2854echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2855echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2856if test "$ac_test_CFLAGS" = set; then
2857  CFLAGS=$ac_save_CFLAGS
2858elif test $ac_cv_prog_cc_g = yes; then
2859  if test "$GCC" = yes; then
2860    CFLAGS="-g -O2"
2861  else
2862    CFLAGS="-g"
2863  fi
2864else
2865  if test "$GCC" = yes; then
2866    CFLAGS="-O2"
2867  else
2868    CFLAGS=
2869  fi
2870fi
2871echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2872echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2873if test "${ac_cv_prog_cc_stdc+set}" = set; then
2874  echo $ECHO_N "(cached) $ECHO_C" >&6
2875else
2876  ac_cv_prog_cc_stdc=no
2877ac_save_CC=$CC
2878cat >conftest.$ac_ext <<_ACEOF
2879/* confdefs.h.  */
2880_ACEOF
2881cat confdefs.h >>conftest.$ac_ext
2882cat >>conftest.$ac_ext <<_ACEOF
2883/* end confdefs.h.  */
2884#include <stdarg.h>
2885#include <stdio.h>
2886#include <sys/types.h>
2887#include <sys/stat.h>
2888/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2889struct buf { int x; };
2890FILE * (*rcsopen) (struct buf *, struct stat *, int);
2891static char *e (p, i)
2892     char **p;
2893     int i;
2894{
2895  return p[i];
2896}
2897static char *f (char * (*g) (char **, int), char **p, ...)
2898{
2899  char *s;
2900  va_list v;
2901  va_start (v,p);
2902  s = g (p, va_arg (v,int));
2903  va_end (v);
2904  return s;
2905}
2906
2907/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2908   function prototypes and stuff, but not '\xHH' hex character constants.
2909   These don't provoke an error unfortunately, instead are silently treated
2910   as 'x'.  The following induces an error, until -std1 is added to get
2911   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2912   array size at least.  It's necessary to write '\x00'==0 to get something
2913   that's true only with -std1.  */
2914int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2915
2916int test (int i, double x);
2917struct s1 {int (*f) (int a);};
2918struct s2 {int (*f) (double a);};
2919int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2920int argc;
2921char **argv;
2922int
2923main ()
2924{
2925return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2926  ;
2927  return 0;
2928}
2929_ACEOF
2930# Don't try gcc -ansi; that turns off useful extensions and
2931# breaks some systems' header files.
2932# AIX			-qlanglvl=ansi
2933# Ultrix and OSF/1	-std1
2934# HP-UX 10.20 and later	-Ae
2935# HP-UX older versions	-Aa -D_HPUX_SOURCE
2936# SVR4			-Xc -D__EXTENSIONS__
2937for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2938do
2939  CC="$ac_save_CC $ac_arg"
2940  rm -f conftest.$ac_objext
2941if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2942  (eval $ac_compile) 2>conftest.er1
2943  ac_status=$?
2944  grep -v '^ *+' conftest.er1 >conftest.err
2945  rm -f conftest.er1
2946  cat conftest.err >&5
2947  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948  (exit $ac_status); } &&
2949	 { ac_try='test -z "$ac_c_werror_flag"
2950			 || test ! -s conftest.err'
2951  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2952  (eval $ac_try) 2>&5
2953  ac_status=$?
2954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955  (exit $ac_status); }; } &&
2956	 { ac_try='test -s conftest.$ac_objext'
2957  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2958  (eval $ac_try) 2>&5
2959  ac_status=$?
2960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961  (exit $ac_status); }; }; then
2962  ac_cv_prog_cc_stdc=$ac_arg
2963break
2964else
2965  echo "$as_me: failed program was:" >&5
2966sed 's/^/| /' conftest.$ac_ext >&5
2967
2968fi
2969rm -f conftest.err conftest.$ac_objext
2970done
2971rm -f conftest.$ac_ext conftest.$ac_objext
2972CC=$ac_save_CC
2973
2974fi
2975
2976case "x$ac_cv_prog_cc_stdc" in
2977  x|xno)
2978    echo "$as_me:$LINENO: result: none needed" >&5
2979echo "${ECHO_T}none needed" >&6 ;;
2980  *)
2981    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2982echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2983    CC="$CC $ac_cv_prog_cc_stdc" ;;
2984esac
2985
2986# Some people use a C++ compiler to compile C.  Since we use `exit',
2987# in C++ we need to declare it.  In case someone uses the same compiler
2988# for both compiling C and C++ we need to have the C++ compiler decide
2989# the declaration of exit, since it's the most demanding environment.
2990cat >conftest.$ac_ext <<_ACEOF
2991#ifndef __cplusplus
2992  choke me
2993#endif
2994_ACEOF
2995rm -f conftest.$ac_objext
2996if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2997  (eval $ac_compile) 2>conftest.er1
2998  ac_status=$?
2999  grep -v '^ *+' conftest.er1 >conftest.err
3000  rm -f conftest.er1
3001  cat conftest.err >&5
3002  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3003  (exit $ac_status); } &&
3004	 { ac_try='test -z "$ac_c_werror_flag"
3005			 || test ! -s conftest.err'
3006  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3007  (eval $ac_try) 2>&5
3008  ac_status=$?
3009  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010  (exit $ac_status); }; } &&
3011	 { ac_try='test -s conftest.$ac_objext'
3012  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3013  (eval $ac_try) 2>&5
3014  ac_status=$?
3015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3016  (exit $ac_status); }; }; then
3017  for ac_declaration in \
3018   '' \
3019   'extern "C" void std::exit (int) throw (); using std::exit;' \
3020   'extern "C" void std::exit (int); using std::exit;' \
3021   'extern "C" void exit (int) throw ();' \
3022   'extern "C" void exit (int);' \
3023   'void exit (int);'
3024do
3025  cat >conftest.$ac_ext <<_ACEOF
3026/* confdefs.h.  */
3027_ACEOF
3028cat confdefs.h >>conftest.$ac_ext
3029cat >>conftest.$ac_ext <<_ACEOF
3030/* end confdefs.h.  */
3031$ac_declaration
3032#include <stdlib.h>
3033int
3034main ()
3035{
3036exit (42);
3037  ;
3038  return 0;
3039}
3040_ACEOF
3041rm -f conftest.$ac_objext
3042if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3043  (eval $ac_compile) 2>conftest.er1
3044  ac_status=$?
3045  grep -v '^ *+' conftest.er1 >conftest.err
3046  rm -f conftest.er1
3047  cat conftest.err >&5
3048  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3049  (exit $ac_status); } &&
3050	 { ac_try='test -z "$ac_c_werror_flag"
3051			 || test ! -s conftest.err'
3052  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3053  (eval $ac_try) 2>&5
3054  ac_status=$?
3055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056  (exit $ac_status); }; } &&
3057	 { ac_try='test -s conftest.$ac_objext'
3058  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3059  (eval $ac_try) 2>&5
3060  ac_status=$?
3061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062  (exit $ac_status); }; }; then
3063  :
3064else
3065  echo "$as_me: failed program was:" >&5
3066sed 's/^/| /' conftest.$ac_ext >&5
3067
3068continue
3069fi
3070rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3071  cat >conftest.$ac_ext <<_ACEOF
3072/* confdefs.h.  */
3073_ACEOF
3074cat confdefs.h >>conftest.$ac_ext
3075cat >>conftest.$ac_ext <<_ACEOF
3076/* end confdefs.h.  */
3077$ac_declaration
3078int
3079main ()
3080{
3081exit (42);
3082  ;
3083  return 0;
3084}
3085_ACEOF
3086rm -f conftest.$ac_objext
3087if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3088  (eval $ac_compile) 2>conftest.er1
3089  ac_status=$?
3090  grep -v '^ *+' conftest.er1 >conftest.err
3091  rm -f conftest.er1
3092  cat conftest.err >&5
3093  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3094  (exit $ac_status); } &&
3095	 { ac_try='test -z "$ac_c_werror_flag"
3096			 || test ! -s conftest.err'
3097  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3098  (eval $ac_try) 2>&5
3099  ac_status=$?
3100  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3101  (exit $ac_status); }; } &&
3102	 { ac_try='test -s conftest.$ac_objext'
3103  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3104  (eval $ac_try) 2>&5
3105  ac_status=$?
3106  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107  (exit $ac_status); }; }; then
3108  break
3109else
3110  echo "$as_me: failed program was:" >&5
3111sed 's/^/| /' conftest.$ac_ext >&5
3112
3113fi
3114rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3115done
3116rm -f conftest*
3117if test -n "$ac_declaration"; then
3118  echo '#ifdef __cplusplus' >>confdefs.h
3119  echo $ac_declaration      >>confdefs.h
3120  echo '#endif'             >>confdefs.h
3121fi
3122
3123else
3124  echo "$as_me: failed program was:" >&5
3125sed 's/^/| /' conftest.$ac_ext >&5
3126
3127fi
3128rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3129ac_ext=c
3130ac_cpp='$CPP $CPPFLAGS'
3131ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3132ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3133ac_compiler_gnu=$ac_cv_c_compiler_gnu
3134
3135depcc="$CC"   am_compiler_list=
3136
3137echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3138echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3139if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3140  echo $ECHO_N "(cached) $ECHO_C" >&6
3141else
3142  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3143  # We make a subdir and do the tests there.  Otherwise we can end up
3144  # making bogus files that we don't know about and never remove.  For
3145  # instance it was reported that on HP-UX the gcc test will end up
3146  # making a dummy file named `D' -- because `-MD' means `put the output
3147  # in D'.
3148  mkdir conftest.dir
3149  # Copy depcomp to subdir because otherwise we won't find it if we're
3150  # using a relative directory.
3151  cp "$am_depcomp" conftest.dir
3152  cd conftest.dir
3153  # We will build objects and dependencies in a subdirectory because
3154  # it helps to detect inapplicable dependency modes.  For instance
3155  # both Tru64's cc and ICC support -MD to output dependencies as a
3156  # side effect of compilation, but ICC will put the dependencies in
3157  # the current directory while Tru64 will put them in the object
3158  # directory.
3159  mkdir sub
3160
3161  am_cv_CC_dependencies_compiler_type=none
3162  if test "$am_compiler_list" = ""; then
3163     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3164  fi
3165  for depmode in $am_compiler_list; do
3166    # Setup a source with many dependencies, because some compilers
3167    # like to wrap large dependency lists on column 80 (with \), and
3168    # we should not choose a depcomp mode which is confused by this.
3169    #
3170    # We need to recreate these files for each test, as the compiler may
3171    # overwrite some of them when testing with obscure command lines.
3172    # This happens at least with the AIX C compiler.
3173    : > sub/conftest.c
3174    for i in 1 2 3 4 5 6; do
3175      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3176      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3177      # Solaris 8's {/usr,}/bin/sh.
3178      touch sub/conftst$i.h
3179    done
3180    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3181
3182    case $depmode in
3183    nosideeffect)
3184      # after this tag, mechanisms are not by side-effect, so they'll
3185      # only be used when explicitly requested
3186      if test "x$enable_dependency_tracking" = xyes; then
3187	continue
3188      else
3189	break
3190      fi
3191      ;;
3192    none) break ;;
3193    esac
3194    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3195    # mode.  It turns out that the SunPro C++ compiler does not properly
3196    # handle `-M -o', and we need to detect this.
3197    if depmode=$depmode \
3198       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3199       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3200       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3201         >/dev/null 2>conftest.err &&
3202       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3203       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3204       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3205      # icc doesn't choke on unknown options, it will just issue warnings
3206      # or remarks (even with -Werror).  So we grep stderr for any message
3207      # that says an option was ignored or not supported.
3208      # When given -MP, icc 7.0 and 7.1 complain thusly:
3209      #   icc: Command line warning: ignoring option '-M'; no argument required
3210      # The diagnosis changed in icc 8.0:
3211      #   icc: Command line remark: option '-MP' not supported
3212      if (grep 'ignoring option' conftest.err ||
3213          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3214        am_cv_CC_dependencies_compiler_type=$depmode
3215        break
3216      fi
3217    fi
3218  done
3219
3220  cd ..
3221  rm -rf conftest.dir
3222else
3223  am_cv_CC_dependencies_compiler_type=none
3224fi
3225
3226fi
3227echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3228echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3229CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3230
3231
3232
3233if
3234  test "x$enable_dependency_tracking" != xno \
3235  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3236  am__fastdepCC_TRUE=
3237  am__fastdepCC_FALSE='#'
3238else
3239  am__fastdepCC_TRUE='#'
3240  am__fastdepCC_FALSE=
3241fi
3242
3243
3244echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3245echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3246if test "${lt_cv_path_SED+set}" = set; then
3247  echo $ECHO_N "(cached) $ECHO_C" >&6
3248else
3249  # Loop through the user's path and test for sed and gsed.
3250# Then use that list of sed's as ones to test for truncation.
3251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3252for as_dir in $PATH
3253do
3254  IFS=$as_save_IFS
3255  test -z "$as_dir" && as_dir=.
3256  for lt_ac_prog in sed gsed; do
3257    for ac_exec_ext in '' $ac_executable_extensions; do
3258      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3259        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3260      fi
3261    done
3262  done
3263done
3264IFS=$as_save_IFS
3265lt_ac_max=0
3266lt_ac_count=0
3267# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3268# along with /bin/sed that truncates output.
3269for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3270  test ! -f $lt_ac_sed && continue
3271  cat /dev/null > conftest.in
3272  lt_ac_count=0
3273  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3274  # Check for GNU sed and select it if it is found.
3275  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3276    lt_cv_path_SED=$lt_ac_sed
3277    break
3278  fi
3279  while true; do
3280    cat conftest.in conftest.in >conftest.tmp
3281    mv conftest.tmp conftest.in
3282    cp conftest.in conftest.nl
3283    echo >>conftest.nl
3284    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3285    cmp -s conftest.out conftest.nl || break
3286    # 10000 chars as input seems more than enough
3287    test $lt_ac_count -gt 10 && break
3288    lt_ac_count=`expr $lt_ac_count + 1`
3289    if test $lt_ac_count -gt $lt_ac_max; then
3290      lt_ac_max=$lt_ac_count
3291      lt_cv_path_SED=$lt_ac_sed
3292    fi
3293  done
3294done
3295
3296fi
3297
3298SED=$lt_cv_path_SED
3299
3300echo "$as_me:$LINENO: result: $SED" >&5
3301echo "${ECHO_T}$SED" >&6
3302
3303echo "$as_me:$LINENO: checking for egrep" >&5
3304echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3305if test "${ac_cv_prog_egrep+set}" = set; then
3306  echo $ECHO_N "(cached) $ECHO_C" >&6
3307else
3308  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3309    then ac_cv_prog_egrep='grep -E'
3310    else ac_cv_prog_egrep='egrep'
3311    fi
3312fi
3313echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3314echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3315 EGREP=$ac_cv_prog_egrep
3316
3317
3318
3319# Check whether --with-gnu-ld or --without-gnu-ld was given.
3320if test "${with_gnu_ld+set}" = set; then
3321  withval="$with_gnu_ld"
3322  test "$withval" = no || with_gnu_ld=yes
3323else
3324  with_gnu_ld=no
3325fi;
3326ac_prog=ld
3327if test "$GCC" = yes; then
3328  # Check if gcc -print-prog-name=ld gives a path.
3329  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3330echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3331  case $host in
3332  *-*-mingw*)
3333    # gcc leaves a trailing carriage return which upsets mingw
3334    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3335  *)
3336    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3337  esac
3338  case $ac_prog in
3339    # Accept absolute paths.
3340    [\\/]* | ?:[\\/]*)
3341      re_direlt='/[^/][^/]*/\.\./'
3342      # Canonicalize the pathname of ld
3343      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3344      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3345	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3346      done
3347      test -z "$LD" && LD="$ac_prog"
3348      ;;
3349  "")
3350    # If it fails, then pretend we aren't using GCC.
3351    ac_prog=ld
3352    ;;
3353  *)
3354    # If it is relative, then search for the first ld in PATH.
3355    with_gnu_ld=unknown
3356    ;;
3357  esac
3358elif test "$with_gnu_ld" = yes; then
3359  echo "$as_me:$LINENO: checking for GNU ld" >&5
3360echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3361else
3362  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3363echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3364fi
3365if test "${lt_cv_path_LD+set}" = set; then
3366  echo $ECHO_N "(cached) $ECHO_C" >&6
3367else
3368  if test -z "$LD"; then
3369  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3370  for ac_dir in $PATH; do
3371    IFS="$lt_save_ifs"
3372    test -z "$ac_dir" && ac_dir=.
3373    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3374      lt_cv_path_LD="$ac_dir/$ac_prog"
3375      # Check to see if the program is GNU ld.  I'd rather use --version,
3376      # but apparently some variants of GNU ld only accept -v.
3377      # Break only if it was the GNU/non-GNU ld that we prefer.
3378      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3379      *GNU* | *'with BFD'*)
3380	test "$with_gnu_ld" != no && break
3381	;;
3382      *)
3383	test "$with_gnu_ld" != yes && break
3384	;;
3385      esac
3386    fi
3387  done
3388  IFS="$lt_save_ifs"
3389else
3390  lt_cv_path_LD="$LD" # Let the user override the test with a path.
3391fi
3392fi
3393
3394LD="$lt_cv_path_LD"
3395if test -n "$LD"; then
3396  echo "$as_me:$LINENO: result: $LD" >&5
3397echo "${ECHO_T}$LD" >&6
3398else
3399  echo "$as_me:$LINENO: result: no" >&5
3400echo "${ECHO_T}no" >&6
3401fi
3402test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3403echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3404   { (exit 1); exit 1; }; }
3405echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3406echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3407if test "${lt_cv_prog_gnu_ld+set}" = set; then
3408  echo $ECHO_N "(cached) $ECHO_C" >&6
3409else
3410  # I'd rather use --version here, but apparently some GNU lds only accept -v.
3411case `$LD -v 2>&1 </dev/null` in
3412*GNU* | *'with BFD'*)
3413  lt_cv_prog_gnu_ld=yes
3414  ;;
3415*)
3416  lt_cv_prog_gnu_ld=no
3417  ;;
3418esac
3419fi
3420echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3421echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3422with_gnu_ld=$lt_cv_prog_gnu_ld
3423
3424
3425echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3426echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3427if test "${lt_cv_ld_reload_flag+set}" = set; then
3428  echo $ECHO_N "(cached) $ECHO_C" >&6
3429else
3430  lt_cv_ld_reload_flag='-r'
3431fi
3432echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3433echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3434reload_flag=$lt_cv_ld_reload_flag
3435case $reload_flag in
3436"" | " "*) ;;
3437*) reload_flag=" $reload_flag" ;;
3438esac
3439reload_cmds='$LD$reload_flag -o $output$reload_objs'
3440case $host_os in
3441  darwin*)
3442    if test "$GCC" = yes; then
3443      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3444    else
3445      reload_cmds='$LD$reload_flag -o $output$reload_objs'
3446    fi
3447    ;;
3448esac
3449
3450echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3451echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3452if test "${lt_cv_path_NM+set}" = set; then
3453  echo $ECHO_N "(cached) $ECHO_C" >&6
3454else
3455  if test -n "$NM"; then
3456  # Let the user override the test.
3457  lt_cv_path_NM="$NM"
3458else
3459  lt_nm_to_check="${ac_tool_prefix}nm"
3460  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3461    lt_nm_to_check="$lt_nm_to_check nm"
3462  fi
3463  for lt_tmp_nm in $lt_nm_to_check; do
3464    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3465    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3466      IFS="$lt_save_ifs"
3467      test -z "$ac_dir" && ac_dir=.
3468      tmp_nm="$ac_dir/$lt_tmp_nm"
3469      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3470	# Check to see if the nm accepts a BSD-compat flag.
3471	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
3472	#   nm: unknown option "B" ignored
3473	# Tru64's nm complains that /dev/null is an invalid object file
3474	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3475	*/dev/null* | *'Invalid file or object type'*)
3476	  lt_cv_path_NM="$tmp_nm -B"
3477	  break
3478	  ;;
3479	*)
3480	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3481	  */dev/null*)
3482	    lt_cv_path_NM="$tmp_nm -p"
3483	    break
3484	    ;;
3485	  *)
3486	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3487	    continue # so that we can try to find one that supports BSD flags
3488	    ;;
3489	  esac
3490	  ;;
3491	esac
3492      fi
3493    done
3494    IFS="$lt_save_ifs"
3495  done
3496  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3497fi
3498fi
3499echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3500echo "${ECHO_T}$lt_cv_path_NM" >&6
3501NM="$lt_cv_path_NM"
3502
3503echo "$as_me:$LINENO: checking whether ln -s works" >&5
3504echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3505LN_S=$as_ln_s
3506if test "$LN_S" = "ln -s"; then
3507  echo "$as_me:$LINENO: result: yes" >&5
3508echo "${ECHO_T}yes" >&6
3509else
3510  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3511echo "${ECHO_T}no, using $LN_S" >&6
3512fi
3513
3514echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3515echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3516if test "${lt_cv_deplibs_check_method+set}" = set; then
3517  echo $ECHO_N "(cached) $ECHO_C" >&6
3518else
3519  lt_cv_file_magic_cmd='$MAGIC_CMD'
3520lt_cv_file_magic_test_file=
3521lt_cv_deplibs_check_method='unknown'
3522# Need to set the preceding variable on all platforms that support
3523# interlibrary dependencies.
3524# 'none' -- dependencies not supported.
3525# `unknown' -- same as none, but documents that we really don't know.
3526# 'pass_all' -- all dependencies passed with no checks.
3527# 'test_compile' -- check by making test program.
3528# 'file_magic [[regex]]' -- check by looking for files in library path
3529# which responds to the $file_magic_cmd with a given extended regex.
3530# If you have `file' or equivalent on your system and you're not sure
3531# whether `pass_all' will *always* work, you probably want this one.
3532
3533case $host_os in
3534aix4* | aix5*)
3535  lt_cv_deplibs_check_method=pass_all
3536  ;;
3537
3538beos*)
3539  lt_cv_deplibs_check_method=pass_all
3540  ;;
3541
3542bsdi[45]*)
3543  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3544  lt_cv_file_magic_cmd='/usr/bin/file -L'
3545  lt_cv_file_magic_test_file=/shlib/libc.so
3546  ;;
3547
3548cygwin*)
3549  # func_win32_libid is a shell function defined in ltmain.sh
3550  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3551  lt_cv_file_magic_cmd='func_win32_libid'
3552  ;;
3553
3554mingw* | pw32*)
3555  # Base MSYS/MinGW do not provide the 'file' command needed by
3556  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3557  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3558  lt_cv_file_magic_cmd='$OBJDUMP -f'
3559  ;;
3560
3561darwin* | rhapsody*)
3562  lt_cv_deplibs_check_method=pass_all
3563  ;;
3564
3565freebsd* | kfreebsd*-gnu | dragonfly*)
3566  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3567    case $host_cpu in
3568    i*86 )
3569      # Not sure whether the presence of OpenBSD here was a mistake.
3570      # Let's accept both of them until this is cleared up.
3571      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3572      lt_cv_file_magic_cmd=/usr/bin/file
3573      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3574      ;;
3575    esac
3576  else
3577    lt_cv_deplibs_check_method=pass_all
3578  fi
3579  ;;
3580
3581gnu*)
3582  lt_cv_deplibs_check_method=pass_all
3583  ;;
3584
3585hpux10.20* | hpux11*)
3586  lt_cv_file_magic_cmd=/usr/bin/file
3587  case $host_cpu in
3588  ia64*)
3589    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3590    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3591    ;;
3592  hppa*64*)
3593    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]'
3594    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3595    ;;
3596  *)
3597    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3598    lt_cv_file_magic_test_file=/usr/lib/libc.sl
3599    ;;
3600  esac
3601  ;;
3602
3603interix3*)
3604  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3605  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3606  ;;
3607
3608irix5* | irix6* | nonstopux*)
3609  case $LD in
3610  *-32|*"-32 ") libmagic=32-bit;;
3611  *-n32|*"-n32 ") libmagic=N32;;
3612  *-64|*"-64 ") libmagic=64-bit;;
3613  *) libmagic=never-match;;
3614  esac
3615  lt_cv_deplibs_check_method=pass_all
3616  ;;
3617
3618# This must be Linux ELF.
3619linux*)
3620  lt_cv_deplibs_check_method=pass_all
3621  ;;
3622
3623netbsd*)
3624  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3625    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3626  else
3627    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3628  fi
3629  ;;
3630
3631newos6*)
3632  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3633  lt_cv_file_magic_cmd=/usr/bin/file
3634  lt_cv_file_magic_test_file=/usr/lib/libnls.so
3635  ;;
3636
3637nto-qnx*)
3638  lt_cv_deplibs_check_method=unknown
3639  ;;
3640
3641openbsd*)
3642  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3643    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3644  else
3645    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3646  fi
3647  ;;
3648
3649osf3* | osf4* | osf5*)
3650  lt_cv_deplibs_check_method=pass_all
3651  ;;
3652
3653solaris*)
3654  lt_cv_deplibs_check_method=pass_all
3655  ;;
3656
3657sysv4 | sysv4.3*)
3658  case $host_vendor in
3659  motorola)
3660    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]'
3661    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3662    ;;
3663  ncr)
3664    lt_cv_deplibs_check_method=pass_all
3665    ;;
3666  sequent)
3667    lt_cv_file_magic_cmd='/bin/file'
3668    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3669    ;;
3670  sni)
3671    lt_cv_file_magic_cmd='/bin/file'
3672    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3673    lt_cv_file_magic_test_file=/lib/libc.so
3674    ;;
3675  siemens)
3676    lt_cv_deplibs_check_method=pass_all
3677    ;;
3678  pc)
3679    lt_cv_deplibs_check_method=pass_all
3680    ;;
3681  esac
3682  ;;
3683
3684sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3685  lt_cv_deplibs_check_method=pass_all
3686  ;;
3687esac
3688
3689fi
3690echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3691echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3692file_magic_cmd=$lt_cv_file_magic_cmd
3693deplibs_check_method=$lt_cv_deplibs_check_method
3694test -z "$deplibs_check_method" && deplibs_check_method=unknown
3695
3696
3697
3698
3699# If no C compiler was specified, use CC.
3700LTCC=${LTCC-"$CC"}
3701
3702# If no C compiler flags were specified, use CFLAGS.
3703LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3704
3705# Allow CC to be a program name with arguments.
3706compiler=$CC
3707
3708
3709# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3710if test "${enable_libtool_lock+set}" = set; then
3711  enableval="$enable_libtool_lock"
3712
3713fi;
3714test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3715
3716# Some flags need to be propagated to the compiler or linker for good
3717# libtool support.
3718case $host in
3719ia64-*-hpux*)
3720  # Find out which ABI we are using.
3721  echo 'int i;' > conftest.$ac_ext
3722  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3723  (eval $ac_compile) 2>&5
3724  ac_status=$?
3725  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3726  (exit $ac_status); }; then
3727    case `/usr/bin/file conftest.$ac_objext` in
3728    *ELF-32*)
3729      HPUX_IA64_MODE="32"
3730      ;;
3731    *ELF-64*)
3732      HPUX_IA64_MODE="64"
3733      ;;
3734    esac
3735  fi
3736  rm -rf conftest*
3737  ;;
3738*-*-irix6*)
3739  # Find out which ABI we are using.
3740  echo '#line 3740 "configure"' > conftest.$ac_ext
3741  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3742  (eval $ac_compile) 2>&5
3743  ac_status=$?
3744  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3745  (exit $ac_status); }; then
3746   if test "$lt_cv_prog_gnu_ld" = yes; then
3747    case `/usr/bin/file conftest.$ac_objext` in
3748    *32-bit*)
3749      LD="${LD-ld} -melf32bsmip"
3750      ;;
3751    *N32*)
3752      LD="${LD-ld} -melf32bmipn32"
3753      ;;
3754    *64-bit*)
3755      LD="${LD-ld} -melf64bmip"
3756      ;;
3757    esac
3758   else
3759    case `/usr/bin/file conftest.$ac_objext` in
3760    *32-bit*)
3761      LD="${LD-ld} -32"
3762      ;;
3763    *N32*)
3764      LD="${LD-ld} -n32"
3765      ;;
3766    *64-bit*)
3767      LD="${LD-ld} -64"
3768      ;;
3769    esac
3770   fi
3771  fi
3772  rm -rf conftest*
3773  ;;
3774
3775x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3776  # Find out which ABI we are using.
3777  echo 'int i;' > conftest.$ac_ext
3778  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3779  (eval $ac_compile) 2>&5
3780  ac_status=$?
3781  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3782  (exit $ac_status); }; then
3783    case `/usr/bin/file conftest.o` in
3784    *32-bit*)
3785      case $host in
3786        x86_64-*linux*)
3787          LD="${LD-ld} -m elf_i386"
3788          ;;
3789        ppc64-*linux*|powerpc64-*linux*)
3790          LD="${LD-ld} -m elf32ppclinux"
3791          ;;
3792        s390x-*linux*)
3793          LD="${LD-ld} -m elf_s390"
3794          ;;
3795        sparc64-*linux*)
3796          LD="${LD-ld} -m elf32_sparc"
3797          ;;
3798      esac
3799      ;;
3800    *64-bit*)
3801      case $host in
3802        x86_64-*linux*)
3803          LD="${LD-ld} -m elf_x86_64"
3804          ;;
3805        ppc*-*linux*|powerpc*-*linux*)
3806          LD="${LD-ld} -m elf64ppc"
3807          ;;
3808        s390*-*linux*)
3809          LD="${LD-ld} -m elf64_s390"
3810          ;;
3811        sparc*-*linux*)
3812          LD="${LD-ld} -m elf64_sparc"
3813          ;;
3814      esac
3815      ;;
3816    esac
3817  fi
3818  rm -rf conftest*
3819  ;;
3820
3821*-*-sco3.2v5*)
3822  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3823  SAVE_CFLAGS="$CFLAGS"
3824  CFLAGS="$CFLAGS -belf"
3825  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3826echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3827if test "${lt_cv_cc_needs_belf+set}" = set; then
3828  echo $ECHO_N "(cached) $ECHO_C" >&6
3829else
3830  ac_ext=c
3831ac_cpp='$CPP $CPPFLAGS'
3832ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3833ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3834ac_compiler_gnu=$ac_cv_c_compiler_gnu
3835
3836     cat >conftest.$ac_ext <<_ACEOF
3837/* confdefs.h.  */
3838_ACEOF
3839cat confdefs.h >>conftest.$ac_ext
3840cat >>conftest.$ac_ext <<_ACEOF
3841/* end confdefs.h.  */
3842
3843int
3844main ()
3845{
3846
3847  ;
3848  return 0;
3849}
3850_ACEOF
3851rm -f conftest.$ac_objext conftest$ac_exeext
3852if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3853  (eval $ac_link) 2>conftest.er1
3854  ac_status=$?
3855  grep -v '^ *+' conftest.er1 >conftest.err
3856  rm -f conftest.er1
3857  cat conftest.err >&5
3858  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3859  (exit $ac_status); } &&
3860	 { ac_try='test -z "$ac_c_werror_flag"
3861			 || test ! -s conftest.err'
3862  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3863  (eval $ac_try) 2>&5
3864  ac_status=$?
3865  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866  (exit $ac_status); }; } &&
3867	 { ac_try='test -s conftest$ac_exeext'
3868  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3869  (eval $ac_try) 2>&5
3870  ac_status=$?
3871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3872  (exit $ac_status); }; }; then
3873  lt_cv_cc_needs_belf=yes
3874else
3875  echo "$as_me: failed program was:" >&5
3876sed 's/^/| /' conftest.$ac_ext >&5
3877
3878lt_cv_cc_needs_belf=no
3879fi
3880rm -f conftest.err conftest.$ac_objext \
3881      conftest$ac_exeext conftest.$ac_ext
3882     ac_ext=c
3883ac_cpp='$CPP $CPPFLAGS'
3884ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3885ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3886ac_compiler_gnu=$ac_cv_c_compiler_gnu
3887
3888fi
3889echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3890echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3891  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3892    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3893    CFLAGS="$SAVE_CFLAGS"
3894  fi
3895  ;;
3896sparc*-*solaris*)
3897  # Find out which ABI we are using.
3898  echo 'int i;' > conftest.$ac_ext
3899  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3900  (eval $ac_compile) 2>&5
3901  ac_status=$?
3902  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3903  (exit $ac_status); }; then
3904    case `/usr/bin/file conftest.o` in
3905    *64-bit*)
3906      case $lt_cv_prog_gnu_ld in
3907      yes*) LD="${LD-ld} -m elf64_sparc" ;;
3908      *)    LD="${LD-ld} -64" ;;
3909      esac
3910      ;;
3911    esac
3912  fi
3913  rm -rf conftest*
3914  ;;
3915
3916
3917esac
3918
3919need_locks="$enable_libtool_lock"
3920
3921
3922ac_ext=c
3923ac_cpp='$CPP $CPPFLAGS'
3924ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3925ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3926ac_compiler_gnu=$ac_cv_c_compiler_gnu
3927echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3928echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3929# On Suns, sometimes $CPP names a directory.
3930if test -n "$CPP" && test -d "$CPP"; then
3931  CPP=
3932fi
3933if test -z "$CPP"; then
3934  if test "${ac_cv_prog_CPP+set}" = set; then
3935  echo $ECHO_N "(cached) $ECHO_C" >&6
3936else
3937      # Double quotes because CPP needs to be expanded
3938    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3939    do
3940      ac_preproc_ok=false
3941for ac_c_preproc_warn_flag in '' yes
3942do
3943  # Use a header file that comes with gcc, so configuring glibc
3944  # with a fresh cross-compiler works.
3945  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3946  # <limits.h> exists even on freestanding compilers.
3947  # On the NeXT, cc -E runs the code through the compiler's parser,
3948  # not just through cpp. "Syntax error" is here to catch this case.
3949  cat >conftest.$ac_ext <<_ACEOF
3950/* confdefs.h.  */
3951_ACEOF
3952cat confdefs.h >>conftest.$ac_ext
3953cat >>conftest.$ac_ext <<_ACEOF
3954/* end confdefs.h.  */
3955#ifdef __STDC__
3956# include <limits.h>
3957#else
3958# include <assert.h>
3959#endif
3960		     Syntax error
3961_ACEOF
3962if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3963  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3964  ac_status=$?
3965  grep -v '^ *+' conftest.er1 >conftest.err
3966  rm -f conftest.er1
3967  cat conftest.err >&5
3968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969  (exit $ac_status); } >/dev/null; then
3970  if test -s conftest.err; then
3971    ac_cpp_err=$ac_c_preproc_warn_flag
3972    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3973  else
3974    ac_cpp_err=
3975  fi
3976else
3977  ac_cpp_err=yes
3978fi
3979if test -z "$ac_cpp_err"; then
3980  :
3981else
3982  echo "$as_me: failed program was:" >&5
3983sed 's/^/| /' conftest.$ac_ext >&5
3984
3985  # Broken: fails on valid input.
3986continue
3987fi
3988rm -f conftest.err conftest.$ac_ext
3989
3990  # OK, works on sane cases.  Now check whether non-existent headers
3991  # can be detected and how.
3992  cat >conftest.$ac_ext <<_ACEOF
3993/* confdefs.h.  */
3994_ACEOF
3995cat confdefs.h >>conftest.$ac_ext
3996cat >>conftest.$ac_ext <<_ACEOF
3997/* end confdefs.h.  */
3998#include <ac_nonexistent.h>
3999_ACEOF
4000if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4001  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4002  ac_status=$?
4003  grep -v '^ *+' conftest.er1 >conftest.err
4004  rm -f conftest.er1
4005  cat conftest.err >&5
4006  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4007  (exit $ac_status); } >/dev/null; then
4008  if test -s conftest.err; then
4009    ac_cpp_err=$ac_c_preproc_warn_flag
4010    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4011  else
4012    ac_cpp_err=
4013  fi
4014else
4015  ac_cpp_err=yes
4016fi
4017if test -z "$ac_cpp_err"; then
4018  # Broken: success on invalid input.
4019continue
4020else
4021  echo "$as_me: failed program was:" >&5
4022sed 's/^/| /' conftest.$ac_ext >&5
4023
4024  # Passes both tests.
4025ac_preproc_ok=:
4026break
4027fi
4028rm -f conftest.err conftest.$ac_ext
4029
4030done
4031# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4032rm -f conftest.err conftest.$ac_ext
4033if $ac_preproc_ok; then
4034  break
4035fi
4036
4037    done
4038    ac_cv_prog_CPP=$CPP
4039
4040fi
4041  CPP=$ac_cv_prog_CPP
4042else
4043  ac_cv_prog_CPP=$CPP
4044fi
4045echo "$as_me:$LINENO: result: $CPP" >&5
4046echo "${ECHO_T}$CPP" >&6
4047ac_preproc_ok=false
4048for ac_c_preproc_warn_flag in '' yes
4049do
4050  # Use a header file that comes with gcc, so configuring glibc
4051  # with a fresh cross-compiler works.
4052  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4053  # <limits.h> exists even on freestanding compilers.
4054  # On the NeXT, cc -E runs the code through the compiler's parser,
4055  # not just through cpp. "Syntax error" is here to catch this case.
4056  cat >conftest.$ac_ext <<_ACEOF
4057/* confdefs.h.  */
4058_ACEOF
4059cat confdefs.h >>conftest.$ac_ext
4060cat >>conftest.$ac_ext <<_ACEOF
4061/* end confdefs.h.  */
4062#ifdef __STDC__
4063# include <limits.h>
4064#else
4065# include <assert.h>
4066#endif
4067		     Syntax error
4068_ACEOF
4069if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4070  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4071  ac_status=$?
4072  grep -v '^ *+' conftest.er1 >conftest.err
4073  rm -f conftest.er1
4074  cat conftest.err >&5
4075  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076  (exit $ac_status); } >/dev/null; then
4077  if test -s conftest.err; then
4078    ac_cpp_err=$ac_c_preproc_warn_flag
4079    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4080  else
4081    ac_cpp_err=
4082  fi
4083else
4084  ac_cpp_err=yes
4085fi
4086if test -z "$ac_cpp_err"; then
4087  :
4088else
4089  echo "$as_me: failed program was:" >&5
4090sed 's/^/| /' conftest.$ac_ext >&5
4091
4092  # Broken: fails on valid input.
4093continue
4094fi
4095rm -f conftest.err conftest.$ac_ext
4096
4097  # OK, works on sane cases.  Now check whether non-existent headers
4098  # can be detected and how.
4099  cat >conftest.$ac_ext <<_ACEOF
4100/* confdefs.h.  */
4101_ACEOF
4102cat confdefs.h >>conftest.$ac_ext
4103cat >>conftest.$ac_ext <<_ACEOF
4104/* end confdefs.h.  */
4105#include <ac_nonexistent.h>
4106_ACEOF
4107if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4108  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4109  ac_status=$?
4110  grep -v '^ *+' conftest.er1 >conftest.err
4111  rm -f conftest.er1
4112  cat conftest.err >&5
4113  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4114  (exit $ac_status); } >/dev/null; then
4115  if test -s conftest.err; then
4116    ac_cpp_err=$ac_c_preproc_warn_flag
4117    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4118  else
4119    ac_cpp_err=
4120  fi
4121else
4122  ac_cpp_err=yes
4123fi
4124if test -z "$ac_cpp_err"; then
4125  # Broken: success on invalid input.
4126continue
4127else
4128  echo "$as_me: failed program was:" >&5
4129sed 's/^/| /' conftest.$ac_ext >&5
4130
4131  # Passes both tests.
4132ac_preproc_ok=:
4133break
4134fi
4135rm -f conftest.err conftest.$ac_ext
4136
4137done
4138# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4139rm -f conftest.err conftest.$ac_ext
4140if $ac_preproc_ok; then
4141  :
4142else
4143  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4144See \`config.log' for more details." >&5
4145echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4146See \`config.log' for more details." >&2;}
4147   { (exit 1); exit 1; }; }
4148fi
4149
4150ac_ext=c
4151ac_cpp='$CPP $CPPFLAGS'
4152ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4153ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4154ac_compiler_gnu=$ac_cv_c_compiler_gnu
4155
4156
4157echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4158echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4159if test "${ac_cv_header_stdc+set}" = set; then
4160  echo $ECHO_N "(cached) $ECHO_C" >&6
4161else
4162  cat >conftest.$ac_ext <<_ACEOF
4163/* confdefs.h.  */
4164_ACEOF
4165cat confdefs.h >>conftest.$ac_ext
4166cat >>conftest.$ac_ext <<_ACEOF
4167/* end confdefs.h.  */
4168#include <stdlib.h>
4169#include <stdarg.h>
4170#include <string.h>
4171#include <float.h>
4172
4173int
4174main ()
4175{
4176
4177  ;
4178  return 0;
4179}
4180_ACEOF
4181rm -f conftest.$ac_objext
4182if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4183  (eval $ac_compile) 2>conftest.er1
4184  ac_status=$?
4185  grep -v '^ *+' conftest.er1 >conftest.err
4186  rm -f conftest.er1
4187  cat conftest.err >&5
4188  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4189  (exit $ac_status); } &&
4190	 { ac_try='test -z "$ac_c_werror_flag"
4191			 || test ! -s conftest.err'
4192  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4193  (eval $ac_try) 2>&5
4194  ac_status=$?
4195  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4196  (exit $ac_status); }; } &&
4197	 { ac_try='test -s conftest.$ac_objext'
4198  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4199  (eval $ac_try) 2>&5
4200  ac_status=$?
4201  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4202  (exit $ac_status); }; }; then
4203  ac_cv_header_stdc=yes
4204else
4205  echo "$as_me: failed program was:" >&5
4206sed 's/^/| /' conftest.$ac_ext >&5
4207
4208ac_cv_header_stdc=no
4209fi
4210rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4211
4212if test $ac_cv_header_stdc = yes; then
4213  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4214  cat >conftest.$ac_ext <<_ACEOF
4215/* confdefs.h.  */
4216_ACEOF
4217cat confdefs.h >>conftest.$ac_ext
4218cat >>conftest.$ac_ext <<_ACEOF
4219/* end confdefs.h.  */
4220#include <string.h>
4221
4222_ACEOF
4223if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4224  $EGREP "memchr" >/dev/null 2>&1; then
4225  :
4226else
4227  ac_cv_header_stdc=no
4228fi
4229rm -f conftest*
4230
4231fi
4232
4233if test $ac_cv_header_stdc = yes; then
4234  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4235  cat >conftest.$ac_ext <<_ACEOF
4236/* confdefs.h.  */
4237_ACEOF
4238cat confdefs.h >>conftest.$ac_ext
4239cat >>conftest.$ac_ext <<_ACEOF
4240/* end confdefs.h.  */
4241#include <stdlib.h>
4242
4243_ACEOF
4244if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4245  $EGREP "free" >/dev/null 2>&1; then
4246  :
4247else
4248  ac_cv_header_stdc=no
4249fi
4250rm -f conftest*
4251
4252fi
4253
4254if test $ac_cv_header_stdc = yes; then
4255  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4256  if test "$cross_compiling" = yes; then
4257  :
4258else
4259  cat >conftest.$ac_ext <<_ACEOF
4260/* confdefs.h.  */
4261_ACEOF
4262cat confdefs.h >>conftest.$ac_ext
4263cat >>conftest.$ac_ext <<_ACEOF
4264/* end confdefs.h.  */
4265#include <ctype.h>
4266#if ((' ' & 0x0FF) == 0x020)
4267# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4268# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4269#else
4270# define ISLOWER(c) \
4271		   (('a' <= (c) && (c) <= 'i') \
4272		     || ('j' <= (c) && (c) <= 'r') \
4273		     || ('s' <= (c) && (c) <= 'z'))
4274# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4275#endif
4276
4277#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4278int
4279main ()
4280{
4281  int i;
4282  for (i = 0; i < 256; i++)
4283    if (XOR (islower (i), ISLOWER (i))
4284	|| toupper (i) != TOUPPER (i))
4285      exit(2);
4286  exit (0);
4287}
4288_ACEOF
4289rm -f conftest$ac_exeext
4290if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4291  (eval $ac_link) 2>&5
4292  ac_status=$?
4293  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4294  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4295  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4296  (eval $ac_try) 2>&5
4297  ac_status=$?
4298  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299  (exit $ac_status); }; }; then
4300  :
4301else
4302  echo "$as_me: program exited with status $ac_status" >&5
4303echo "$as_me: failed program was:" >&5
4304sed 's/^/| /' conftest.$ac_ext >&5
4305
4306( exit $ac_status )
4307ac_cv_header_stdc=no
4308fi
4309rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4310fi
4311fi
4312fi
4313echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4314echo "${ECHO_T}$ac_cv_header_stdc" >&6
4315if test $ac_cv_header_stdc = yes; then
4316
4317cat >>confdefs.h <<\_ACEOF
4318#define STDC_HEADERS 1
4319_ACEOF
4320
4321fi
4322
4323# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4334		  inttypes.h stdint.h unistd.h
4335do
4336as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4337echo "$as_me:$LINENO: checking for $ac_header" >&5
4338echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4339if eval "test \"\${$as_ac_Header+set}\" = set"; then
4340  echo $ECHO_N "(cached) $ECHO_C" >&6
4341else
4342  cat >conftest.$ac_ext <<_ACEOF
4343/* confdefs.h.  */
4344_ACEOF
4345cat confdefs.h >>conftest.$ac_ext
4346cat >>conftest.$ac_ext <<_ACEOF
4347/* end confdefs.h.  */
4348$ac_includes_default
4349
4350#include <$ac_header>
4351_ACEOF
4352rm -f conftest.$ac_objext
4353if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4354  (eval $ac_compile) 2>conftest.er1
4355  ac_status=$?
4356  grep -v '^ *+' conftest.er1 >conftest.err
4357  rm -f conftest.er1
4358  cat conftest.err >&5
4359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4360  (exit $ac_status); } &&
4361	 { ac_try='test -z "$ac_c_werror_flag"
4362			 || test ! -s conftest.err'
4363  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4364  (eval $ac_try) 2>&5
4365  ac_status=$?
4366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367  (exit $ac_status); }; } &&
4368	 { ac_try='test -s conftest.$ac_objext'
4369  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4370  (eval $ac_try) 2>&5
4371  ac_status=$?
4372  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373  (exit $ac_status); }; }; then
4374  eval "$as_ac_Header=yes"
4375else
4376  echo "$as_me: failed program was:" >&5
4377sed 's/^/| /' conftest.$ac_ext >&5
4378
4379eval "$as_ac_Header=no"
4380fi
4381rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4382fi
4383echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4384echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4385if test `eval echo '${'$as_ac_Header'}'` = yes; then
4386  cat >>confdefs.h <<_ACEOF
4387#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4388_ACEOF
4389
4390fi
4391
4392done
4393
4394
4395
4396for ac_header in dlfcn.h
4397do
4398as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4399if eval "test \"\${$as_ac_Header+set}\" = set"; then
4400  echo "$as_me:$LINENO: checking for $ac_header" >&5
4401echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4402if eval "test \"\${$as_ac_Header+set}\" = set"; then
4403  echo $ECHO_N "(cached) $ECHO_C" >&6
4404fi
4405echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4406echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4407else
4408  # Is the header compilable?
4409echo "$as_me:$LINENO: checking $ac_header usability" >&5
4410echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4411cat >conftest.$ac_ext <<_ACEOF
4412/* confdefs.h.  */
4413_ACEOF
4414cat confdefs.h >>conftest.$ac_ext
4415cat >>conftest.$ac_ext <<_ACEOF
4416/* end confdefs.h.  */
4417$ac_includes_default
4418#include <$ac_header>
4419_ACEOF
4420rm -f conftest.$ac_objext
4421if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4422  (eval $ac_compile) 2>conftest.er1
4423  ac_status=$?
4424  grep -v '^ *+' conftest.er1 >conftest.err
4425  rm -f conftest.er1
4426  cat conftest.err >&5
4427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4428  (exit $ac_status); } &&
4429	 { ac_try='test -z "$ac_c_werror_flag"
4430			 || test ! -s conftest.err'
4431  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4432  (eval $ac_try) 2>&5
4433  ac_status=$?
4434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4435  (exit $ac_status); }; } &&
4436	 { ac_try='test -s conftest.$ac_objext'
4437  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4438  (eval $ac_try) 2>&5
4439  ac_status=$?
4440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4441  (exit $ac_status); }; }; then
4442  ac_header_compiler=yes
4443else
4444  echo "$as_me: failed program was:" >&5
4445sed 's/^/| /' conftest.$ac_ext >&5
4446
4447ac_header_compiler=no
4448fi
4449rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4450echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4451echo "${ECHO_T}$ac_header_compiler" >&6
4452
4453# Is the header present?
4454echo "$as_me:$LINENO: checking $ac_header presence" >&5
4455echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4456cat >conftest.$ac_ext <<_ACEOF
4457/* confdefs.h.  */
4458_ACEOF
4459cat confdefs.h >>conftest.$ac_ext
4460cat >>conftest.$ac_ext <<_ACEOF
4461/* end confdefs.h.  */
4462#include <$ac_header>
4463_ACEOF
4464if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4465  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4466  ac_status=$?
4467  grep -v '^ *+' conftest.er1 >conftest.err
4468  rm -f conftest.er1
4469  cat conftest.err >&5
4470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471  (exit $ac_status); } >/dev/null; then
4472  if test -s conftest.err; then
4473    ac_cpp_err=$ac_c_preproc_warn_flag
4474    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4475  else
4476    ac_cpp_err=
4477  fi
4478else
4479  ac_cpp_err=yes
4480fi
4481if test -z "$ac_cpp_err"; then
4482  ac_header_preproc=yes
4483else
4484  echo "$as_me: failed program was:" >&5
4485sed 's/^/| /' conftest.$ac_ext >&5
4486
4487  ac_header_preproc=no
4488fi
4489rm -f conftest.err conftest.$ac_ext
4490echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4491echo "${ECHO_T}$ac_header_preproc" >&6
4492
4493# So?  What about this header?
4494case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4495  yes:no: )
4496    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4497echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4498    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4499echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4500    ac_header_preproc=yes
4501    ;;
4502  no:yes:* )
4503    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4504echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4505    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4506echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4507    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4508echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4509    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4510echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4511    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4512echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4513    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4514echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4515    (
4516      cat <<\_ASBOX
4517## ---------------------------------------------------------------------- ##
4518## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
4519## ---------------------------------------------------------------------- ##
4520_ASBOX
4521    ) |
4522      sed "s/^/$as_me: WARNING:     /" >&2
4523    ;;
4524esac
4525echo "$as_me:$LINENO: checking for $ac_header" >&5
4526echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4527if eval "test \"\${$as_ac_Header+set}\" = set"; then
4528  echo $ECHO_N "(cached) $ECHO_C" >&6
4529else
4530  eval "$as_ac_Header=\$ac_header_preproc"
4531fi
4532echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4533echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4534
4535fi
4536if test `eval echo '${'$as_ac_Header'}'` = yes; then
4537  cat >>confdefs.h <<_ACEOF
4538#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4539_ACEOF
4540
4541fi
4542
4543done
4544
4545ac_ext=cc
4546ac_cpp='$CXXCPP $CPPFLAGS'
4547ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4548ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4549ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4550if test -n "$ac_tool_prefix"; then
4551  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4552  do
4553    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4554set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4555echo "$as_me:$LINENO: checking for $ac_word" >&5
4556echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4557if test "${ac_cv_prog_CXX+set}" = set; then
4558  echo $ECHO_N "(cached) $ECHO_C" >&6
4559else
4560  if test -n "$CXX"; then
4561  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4562else
4563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4564for as_dir in $PATH
4565do
4566  IFS=$as_save_IFS
4567  test -z "$as_dir" && as_dir=.
4568  for ac_exec_ext in '' $ac_executable_extensions; do
4569  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4570    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4571    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4572    break 2
4573  fi
4574done
4575done
4576
4577fi
4578fi
4579CXX=$ac_cv_prog_CXX
4580if test -n "$CXX"; then
4581  echo "$as_me:$LINENO: result: $CXX" >&5
4582echo "${ECHO_T}$CXX" >&6
4583else
4584  echo "$as_me:$LINENO: result: no" >&5
4585echo "${ECHO_T}no" >&6
4586fi
4587
4588    test -n "$CXX" && break
4589  done
4590fi
4591if test -z "$CXX"; then
4592  ac_ct_CXX=$CXX
4593  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4594do
4595  # Extract the first word of "$ac_prog", so it can be a program name with args.
4596set dummy $ac_prog; ac_word=$2
4597echo "$as_me:$LINENO: checking for $ac_word" >&5
4598echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4599if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4600  echo $ECHO_N "(cached) $ECHO_C" >&6
4601else
4602  if test -n "$ac_ct_CXX"; then
4603  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4604else
4605as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4606for as_dir in $PATH
4607do
4608  IFS=$as_save_IFS
4609  test -z "$as_dir" && as_dir=.
4610  for ac_exec_ext in '' $ac_executable_extensions; do
4611  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4612    ac_cv_prog_ac_ct_CXX="$ac_prog"
4613    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4614    break 2
4615  fi
4616done
4617done
4618
4619fi
4620fi
4621ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4622if test -n "$ac_ct_CXX"; then
4623  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4624echo "${ECHO_T}$ac_ct_CXX" >&6
4625else
4626  echo "$as_me:$LINENO: result: no" >&5
4627echo "${ECHO_T}no" >&6
4628fi
4629
4630  test -n "$ac_ct_CXX" && break
4631done
4632test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4633
4634  CXX=$ac_ct_CXX
4635fi
4636
4637
4638# Provide some information about the compiler.
4639echo "$as_me:$LINENO:" \
4640     "checking for C++ compiler version" >&5
4641ac_compiler=`set X $ac_compile; echo $2`
4642{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4643  (eval $ac_compiler --version </dev/null >&5) 2>&5
4644  ac_status=$?
4645  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4646  (exit $ac_status); }
4647{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4648  (eval $ac_compiler -v </dev/null >&5) 2>&5
4649  ac_status=$?
4650  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4651  (exit $ac_status); }
4652{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4653  (eval $ac_compiler -V </dev/null >&5) 2>&5
4654  ac_status=$?
4655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656  (exit $ac_status); }
4657
4658echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4659echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4660if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4661  echo $ECHO_N "(cached) $ECHO_C" >&6
4662else
4663  cat >conftest.$ac_ext <<_ACEOF
4664/* confdefs.h.  */
4665_ACEOF
4666cat confdefs.h >>conftest.$ac_ext
4667cat >>conftest.$ac_ext <<_ACEOF
4668/* end confdefs.h.  */
4669
4670int
4671main ()
4672{
4673#ifndef __GNUC__
4674       choke me
4675#endif
4676
4677  ;
4678  return 0;
4679}
4680_ACEOF
4681rm -f conftest.$ac_objext
4682if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4683  (eval $ac_compile) 2>conftest.er1
4684  ac_status=$?
4685  grep -v '^ *+' conftest.er1 >conftest.err
4686  rm -f conftest.er1
4687  cat conftest.err >&5
4688  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4689  (exit $ac_status); } &&
4690	 { ac_try='test -z "$ac_cxx_werror_flag"
4691			 || test ! -s conftest.err'
4692  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4693  (eval $ac_try) 2>&5
4694  ac_status=$?
4695  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4696  (exit $ac_status); }; } &&
4697	 { ac_try='test -s conftest.$ac_objext'
4698  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4699  (eval $ac_try) 2>&5
4700  ac_status=$?
4701  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4702  (exit $ac_status); }; }; then
4703  ac_compiler_gnu=yes
4704else
4705  echo "$as_me: failed program was:" >&5
4706sed 's/^/| /' conftest.$ac_ext >&5
4707
4708ac_compiler_gnu=no
4709fi
4710rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4711ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4712
4713fi
4714echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4715echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4716GXX=`test $ac_compiler_gnu = yes && echo yes`
4717ac_test_CXXFLAGS=${CXXFLAGS+set}
4718ac_save_CXXFLAGS=$CXXFLAGS
4719CXXFLAGS="-g"
4720echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4721echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4722if test "${ac_cv_prog_cxx_g+set}" = set; then
4723  echo $ECHO_N "(cached) $ECHO_C" >&6
4724else
4725  cat >conftest.$ac_ext <<_ACEOF
4726/* confdefs.h.  */
4727_ACEOF
4728cat confdefs.h >>conftest.$ac_ext
4729cat >>conftest.$ac_ext <<_ACEOF
4730/* end confdefs.h.  */
4731
4732int
4733main ()
4734{
4735
4736  ;
4737  return 0;
4738}
4739_ACEOF
4740rm -f conftest.$ac_objext
4741if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4742  (eval $ac_compile) 2>conftest.er1
4743  ac_status=$?
4744  grep -v '^ *+' conftest.er1 >conftest.err
4745  rm -f conftest.er1
4746  cat conftest.err >&5
4747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4748  (exit $ac_status); } &&
4749	 { ac_try='test -z "$ac_cxx_werror_flag"
4750			 || test ! -s conftest.err'
4751  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4752  (eval $ac_try) 2>&5
4753  ac_status=$?
4754  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4755  (exit $ac_status); }; } &&
4756	 { ac_try='test -s conftest.$ac_objext'
4757  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4758  (eval $ac_try) 2>&5
4759  ac_status=$?
4760  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4761  (exit $ac_status); }; }; then
4762  ac_cv_prog_cxx_g=yes
4763else
4764  echo "$as_me: failed program was:" >&5
4765sed 's/^/| /' conftest.$ac_ext >&5
4766
4767ac_cv_prog_cxx_g=no
4768fi
4769rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4770fi
4771echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4772echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4773if test "$ac_test_CXXFLAGS" = set; then
4774  CXXFLAGS=$ac_save_CXXFLAGS
4775elif test $ac_cv_prog_cxx_g = yes; then
4776  if test "$GXX" = yes; then
4777    CXXFLAGS="-g -O2"
4778  else
4779    CXXFLAGS="-g"
4780  fi
4781else
4782  if test "$GXX" = yes; then
4783    CXXFLAGS="-O2"
4784  else
4785    CXXFLAGS=
4786  fi
4787fi
4788for ac_declaration in \
4789   '' \
4790   'extern "C" void std::exit (int) throw (); using std::exit;' \
4791   'extern "C" void std::exit (int); using std::exit;' \
4792   'extern "C" void exit (int) throw ();' \
4793   'extern "C" void exit (int);' \
4794   'void exit (int);'
4795do
4796  cat >conftest.$ac_ext <<_ACEOF
4797/* confdefs.h.  */
4798_ACEOF
4799cat confdefs.h >>conftest.$ac_ext
4800cat >>conftest.$ac_ext <<_ACEOF
4801/* end confdefs.h.  */
4802$ac_declaration
4803#include <stdlib.h>
4804int
4805main ()
4806{
4807exit (42);
4808  ;
4809  return 0;
4810}
4811_ACEOF
4812rm -f conftest.$ac_objext
4813if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4814  (eval $ac_compile) 2>conftest.er1
4815  ac_status=$?
4816  grep -v '^ *+' conftest.er1 >conftest.err
4817  rm -f conftest.er1
4818  cat conftest.err >&5
4819  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4820  (exit $ac_status); } &&
4821	 { ac_try='test -z "$ac_cxx_werror_flag"
4822			 || test ! -s conftest.err'
4823  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4824  (eval $ac_try) 2>&5
4825  ac_status=$?
4826  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4827  (exit $ac_status); }; } &&
4828	 { ac_try='test -s conftest.$ac_objext'
4829  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4830  (eval $ac_try) 2>&5
4831  ac_status=$?
4832  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4833  (exit $ac_status); }; }; then
4834  :
4835else
4836  echo "$as_me: failed program was:" >&5
4837sed 's/^/| /' conftest.$ac_ext >&5
4838
4839continue
4840fi
4841rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4842  cat >conftest.$ac_ext <<_ACEOF
4843/* confdefs.h.  */
4844_ACEOF
4845cat confdefs.h >>conftest.$ac_ext
4846cat >>conftest.$ac_ext <<_ACEOF
4847/* end confdefs.h.  */
4848$ac_declaration
4849int
4850main ()
4851{
4852exit (42);
4853  ;
4854  return 0;
4855}
4856_ACEOF
4857rm -f conftest.$ac_objext
4858if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4859  (eval $ac_compile) 2>conftest.er1
4860  ac_status=$?
4861  grep -v '^ *+' conftest.er1 >conftest.err
4862  rm -f conftest.er1
4863  cat conftest.err >&5
4864  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865  (exit $ac_status); } &&
4866	 { ac_try='test -z "$ac_cxx_werror_flag"
4867			 || test ! -s conftest.err'
4868  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4869  (eval $ac_try) 2>&5
4870  ac_status=$?
4871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4872  (exit $ac_status); }; } &&
4873	 { ac_try='test -s conftest.$ac_objext'
4874  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4875  (eval $ac_try) 2>&5
4876  ac_status=$?
4877  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4878  (exit $ac_status); }; }; then
4879  break
4880else
4881  echo "$as_me: failed program was:" >&5
4882sed 's/^/| /' conftest.$ac_ext >&5
4883
4884fi
4885rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4886done
4887rm -f conftest*
4888if test -n "$ac_declaration"; then
4889  echo '#ifdef __cplusplus' >>confdefs.h
4890  echo $ac_declaration      >>confdefs.h
4891  echo '#endif'             >>confdefs.h
4892fi
4893
4894ac_ext=cc
4895ac_cpp='$CXXCPP $CPPFLAGS'
4896ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4897ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4898ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4899
4900depcc="$CXX"  am_compiler_list=
4901
4902echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4903echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4904if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4905  echo $ECHO_N "(cached) $ECHO_C" >&6
4906else
4907  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4908  # We make a subdir and do the tests there.  Otherwise we can end up
4909  # making bogus files that we don't know about and never remove.  For
4910  # instance it was reported that on HP-UX the gcc test will end up
4911  # making a dummy file named `D' -- because `-MD' means `put the output
4912  # in D'.
4913  mkdir conftest.dir
4914  # Copy depcomp to subdir because otherwise we won't find it if we're
4915  # using a relative directory.
4916  cp "$am_depcomp" conftest.dir
4917  cd conftest.dir
4918  # We will build objects and dependencies in a subdirectory because
4919  # it helps to detect inapplicable dependency modes.  For instance
4920  # both Tru64's cc and ICC support -MD to output dependencies as a
4921  # side effect of compilation, but ICC will put the dependencies in
4922  # the current directory while Tru64 will put them in the object
4923  # directory.
4924  mkdir sub
4925
4926  am_cv_CXX_dependencies_compiler_type=none
4927  if test "$am_compiler_list" = ""; then
4928     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4929  fi
4930  for depmode in $am_compiler_list; do
4931    # Setup a source with many dependencies, because some compilers
4932    # like to wrap large dependency lists on column 80 (with \), and
4933    # we should not choose a depcomp mode which is confused by this.
4934    #
4935    # We need to recreate these files for each test, as the compiler may
4936    # overwrite some of them when testing with obscure command lines.
4937    # This happens at least with the AIX C compiler.
4938    : > sub/conftest.c
4939    for i in 1 2 3 4 5 6; do
4940      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4941      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4942      # Solaris 8's {/usr,}/bin/sh.
4943      touch sub/conftst$i.h
4944    done
4945    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4946
4947    case $depmode in
4948    nosideeffect)
4949      # after this tag, mechanisms are not by side-effect, so they'll
4950      # only be used when explicitly requested
4951      if test "x$enable_dependency_tracking" = xyes; then
4952	continue
4953      else
4954	break
4955      fi
4956      ;;
4957    none) break ;;
4958    esac
4959    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4960    # mode.  It turns out that the SunPro C++ compiler does not properly
4961    # handle `-M -o', and we need to detect this.
4962    if depmode=$depmode \
4963       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4964       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4965       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4966         >/dev/null 2>conftest.err &&
4967       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4968       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4969       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4970      # icc doesn't choke on unknown options, it will just issue warnings
4971      # or remarks (even with -Werror).  So we grep stderr for any message
4972      # that says an option was ignored or not supported.
4973      # When given -MP, icc 7.0 and 7.1 complain thusly:
4974      #   icc: Command line warning: ignoring option '-M'; no argument required
4975      # The diagnosis changed in icc 8.0:
4976      #   icc: Command line remark: option '-MP' not supported
4977      if (grep 'ignoring option' conftest.err ||
4978          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4979        am_cv_CXX_dependencies_compiler_type=$depmode
4980        break
4981      fi
4982    fi
4983  done
4984
4985  cd ..
4986  rm -rf conftest.dir
4987else
4988  am_cv_CXX_dependencies_compiler_type=none
4989fi
4990
4991fi
4992echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4993echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4994CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4995
4996
4997
4998if
4999  test "x$enable_dependency_tracking" != xno \
5000  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5001  am__fastdepCXX_TRUE=
5002  am__fastdepCXX_FALSE='#'
5003else
5004  am__fastdepCXX_TRUE='#'
5005  am__fastdepCXX_FALSE=
5006fi
5007
5008
5009
5010
5011if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5012    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5013    (test "X$CXX" != "Xg++"))) ; then
5014  ac_ext=cc
5015ac_cpp='$CXXCPP $CPPFLAGS'
5016ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5017ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5018ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5019echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5020echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5021if test -z "$CXXCPP"; then
5022  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5023  echo $ECHO_N "(cached) $ECHO_C" >&6
5024else
5025      # Double quotes because CXXCPP needs to be expanded
5026    for CXXCPP in "$CXX -E" "/lib/cpp"
5027    do
5028      ac_preproc_ok=false
5029for ac_cxx_preproc_warn_flag in '' yes
5030do
5031  # Use a header file that comes with gcc, so configuring glibc
5032  # with a fresh cross-compiler works.
5033  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5034  # <limits.h> exists even on freestanding compilers.
5035  # On the NeXT, cc -E runs the code through the compiler's parser,
5036  # not just through cpp. "Syntax error" is here to catch this case.
5037  cat >conftest.$ac_ext <<_ACEOF
5038/* confdefs.h.  */
5039_ACEOF
5040cat confdefs.h >>conftest.$ac_ext
5041cat >>conftest.$ac_ext <<_ACEOF
5042/* end confdefs.h.  */
5043#ifdef __STDC__
5044# include <limits.h>
5045#else
5046# include <assert.h>
5047#endif
5048		     Syntax error
5049_ACEOF
5050if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5051  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5052  ac_status=$?
5053  grep -v '^ *+' conftest.er1 >conftest.err
5054  rm -f conftest.er1
5055  cat conftest.err >&5
5056  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5057  (exit $ac_status); } >/dev/null; then
5058  if test -s conftest.err; then
5059    ac_cpp_err=$ac_cxx_preproc_warn_flag
5060    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5061  else
5062    ac_cpp_err=
5063  fi
5064else
5065  ac_cpp_err=yes
5066fi
5067if test -z "$ac_cpp_err"; then
5068  :
5069else
5070  echo "$as_me: failed program was:" >&5
5071sed 's/^/| /' conftest.$ac_ext >&5
5072
5073  # Broken: fails on valid input.
5074continue
5075fi
5076rm -f conftest.err conftest.$ac_ext
5077
5078  # OK, works on sane cases.  Now check whether non-existent headers
5079  # can be detected and how.
5080  cat >conftest.$ac_ext <<_ACEOF
5081/* confdefs.h.  */
5082_ACEOF
5083cat confdefs.h >>conftest.$ac_ext
5084cat >>conftest.$ac_ext <<_ACEOF
5085/* end confdefs.h.  */
5086#include <ac_nonexistent.h>
5087_ACEOF
5088if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5089  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5090  ac_status=$?
5091  grep -v '^ *+' conftest.er1 >conftest.err
5092  rm -f conftest.er1
5093  cat conftest.err >&5
5094  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5095  (exit $ac_status); } >/dev/null; then
5096  if test -s conftest.err; then
5097    ac_cpp_err=$ac_cxx_preproc_warn_flag
5098    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5099  else
5100    ac_cpp_err=
5101  fi
5102else
5103  ac_cpp_err=yes
5104fi
5105if test -z "$ac_cpp_err"; then
5106  # Broken: success on invalid input.
5107continue
5108else
5109  echo "$as_me: failed program was:" >&5
5110sed 's/^/| /' conftest.$ac_ext >&5
5111
5112  # Passes both tests.
5113ac_preproc_ok=:
5114break
5115fi
5116rm -f conftest.err conftest.$ac_ext
5117
5118done
5119# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5120rm -f conftest.err conftest.$ac_ext
5121if $ac_preproc_ok; then
5122  break
5123fi
5124
5125    done
5126    ac_cv_prog_CXXCPP=$CXXCPP
5127
5128fi
5129  CXXCPP=$ac_cv_prog_CXXCPP
5130else
5131  ac_cv_prog_CXXCPP=$CXXCPP
5132fi
5133echo "$as_me:$LINENO: result: $CXXCPP" >&5
5134echo "${ECHO_T}$CXXCPP" >&6
5135ac_preproc_ok=false
5136for ac_cxx_preproc_warn_flag in '' yes
5137do
5138  # Use a header file that comes with gcc, so configuring glibc
5139  # with a fresh cross-compiler works.
5140  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5141  # <limits.h> exists even on freestanding compilers.
5142  # On the NeXT, cc -E runs the code through the compiler's parser,
5143  # not just through cpp. "Syntax error" is here to catch this case.
5144  cat >conftest.$ac_ext <<_ACEOF
5145/* confdefs.h.  */
5146_ACEOF
5147cat confdefs.h >>conftest.$ac_ext
5148cat >>conftest.$ac_ext <<_ACEOF
5149/* end confdefs.h.  */
5150#ifdef __STDC__
5151# include <limits.h>
5152#else
5153# include <assert.h>
5154#endif
5155		     Syntax error
5156_ACEOF
5157if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5158  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5159  ac_status=$?
5160  grep -v '^ *+' conftest.er1 >conftest.err
5161  rm -f conftest.er1
5162  cat conftest.err >&5
5163  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5164  (exit $ac_status); } >/dev/null; then
5165  if test -s conftest.err; then
5166    ac_cpp_err=$ac_cxx_preproc_warn_flag
5167    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5168  else
5169    ac_cpp_err=
5170  fi
5171else
5172  ac_cpp_err=yes
5173fi
5174if test -z "$ac_cpp_err"; then
5175  :
5176else
5177  echo "$as_me: failed program was:" >&5
5178sed 's/^/| /' conftest.$ac_ext >&5
5179
5180  # Broken: fails on valid input.
5181continue
5182fi
5183rm -f conftest.err conftest.$ac_ext
5184
5185  # OK, works on sane cases.  Now check whether non-existent headers
5186  # can be detected and how.
5187  cat >conftest.$ac_ext <<_ACEOF
5188/* confdefs.h.  */
5189_ACEOF
5190cat confdefs.h >>conftest.$ac_ext
5191cat >>conftest.$ac_ext <<_ACEOF
5192/* end confdefs.h.  */
5193#include <ac_nonexistent.h>
5194_ACEOF
5195if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5196  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5197  ac_status=$?
5198  grep -v '^ *+' conftest.er1 >conftest.err
5199  rm -f conftest.er1
5200  cat conftest.err >&5
5201  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5202  (exit $ac_status); } >/dev/null; then
5203  if test -s conftest.err; then
5204    ac_cpp_err=$ac_cxx_preproc_warn_flag
5205    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5206  else
5207    ac_cpp_err=
5208  fi
5209else
5210  ac_cpp_err=yes
5211fi
5212if test -z "$ac_cpp_err"; then
5213  # Broken: success on invalid input.
5214continue
5215else
5216  echo "$as_me: failed program was:" >&5
5217sed 's/^/| /' conftest.$ac_ext >&5
5218
5219  # Passes both tests.
5220ac_preproc_ok=:
5221break
5222fi
5223rm -f conftest.err conftest.$ac_ext
5224
5225done
5226# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5227rm -f conftest.err conftest.$ac_ext
5228if $ac_preproc_ok; then
5229  :
5230else
5231  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5232See \`config.log' for more details." >&5
5233echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5234See \`config.log' for more details." >&2;}
5235   { (exit 1); exit 1; }; }
5236fi
5237
5238ac_ext=cc
5239ac_cpp='$CXXCPP $CPPFLAGS'
5240ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5241ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5242ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5243
5244fi
5245
5246
5247ac_ext=f
5248ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5249ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5250ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5251if test -n "$ac_tool_prefix"; then
5252  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5253  do
5254    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5255set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5256echo "$as_me:$LINENO: checking for $ac_word" >&5
5257echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5258if test "${ac_cv_prog_F77+set}" = set; then
5259  echo $ECHO_N "(cached) $ECHO_C" >&6
5260else
5261  if test -n "$F77"; then
5262  ac_cv_prog_F77="$F77" # Let the user override the test.
5263else
5264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5265for as_dir in $PATH
5266do
5267  IFS=$as_save_IFS
5268  test -z "$as_dir" && as_dir=.
5269  for ac_exec_ext in '' $ac_executable_extensions; do
5270  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5271    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5272    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5273    break 2
5274  fi
5275done
5276done
5277
5278fi
5279fi
5280F77=$ac_cv_prog_F77
5281if test -n "$F77"; then
5282  echo "$as_me:$LINENO: result: $F77" >&5
5283echo "${ECHO_T}$F77" >&6
5284else
5285  echo "$as_me:$LINENO: result: no" >&5
5286echo "${ECHO_T}no" >&6
5287fi
5288
5289    test -n "$F77" && break
5290  done
5291fi
5292if test -z "$F77"; then
5293  ac_ct_F77=$F77
5294  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5295do
5296  # Extract the first word of "$ac_prog", so it can be a program name with args.
5297set dummy $ac_prog; ac_word=$2
5298echo "$as_me:$LINENO: checking for $ac_word" >&5
5299echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5300if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5301  echo $ECHO_N "(cached) $ECHO_C" >&6
5302else
5303  if test -n "$ac_ct_F77"; then
5304  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5305else
5306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5307for as_dir in $PATH
5308do
5309  IFS=$as_save_IFS
5310  test -z "$as_dir" && as_dir=.
5311  for ac_exec_ext in '' $ac_executable_extensions; do
5312  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5313    ac_cv_prog_ac_ct_F77="$ac_prog"
5314    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5315    break 2
5316  fi
5317done
5318done
5319
5320fi
5321fi
5322ac_ct_F77=$ac_cv_prog_ac_ct_F77
5323if test -n "$ac_ct_F77"; then
5324  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5325echo "${ECHO_T}$ac_ct_F77" >&6
5326else
5327  echo "$as_me:$LINENO: result: no" >&5
5328echo "${ECHO_T}no" >&6
5329fi
5330
5331  test -n "$ac_ct_F77" && break
5332done
5333
5334  F77=$ac_ct_F77
5335fi
5336
5337
5338# Provide some information about the compiler.
5339echo "$as_me:5339:" \
5340     "checking for Fortran 77 compiler version" >&5
5341ac_compiler=`set X $ac_compile; echo $2`
5342{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5343  (eval $ac_compiler --version </dev/null >&5) 2>&5
5344  ac_status=$?
5345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346  (exit $ac_status); }
5347{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5348  (eval $ac_compiler -v </dev/null >&5) 2>&5
5349  ac_status=$?
5350  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5351  (exit $ac_status); }
5352{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5353  (eval $ac_compiler -V </dev/null >&5) 2>&5
5354  ac_status=$?
5355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5356  (exit $ac_status); }
5357rm -f a.out
5358
5359# If we don't use `.F' as extension, the preprocessor is not run on the
5360# input file.  (Note that this only needs to work for GNU compilers.)
5361ac_save_ext=$ac_ext
5362ac_ext=F
5363echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5364echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5365if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5366  echo $ECHO_N "(cached) $ECHO_C" >&6
5367else
5368  cat >conftest.$ac_ext <<_ACEOF
5369      program main
5370#ifndef __GNUC__
5371       choke me
5372#endif
5373
5374      end
5375_ACEOF
5376rm -f conftest.$ac_objext
5377if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5378  (eval $ac_compile) 2>conftest.er1
5379  ac_status=$?
5380  grep -v '^ *+' conftest.er1 >conftest.err
5381  rm -f conftest.er1
5382  cat conftest.err >&5
5383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5384  (exit $ac_status); } &&
5385	 { ac_try='test -z "$ac_f77_werror_flag"
5386			 || test ! -s conftest.err'
5387  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5388  (eval $ac_try) 2>&5
5389  ac_status=$?
5390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5391  (exit $ac_status); }; } &&
5392	 { ac_try='test -s conftest.$ac_objext'
5393  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5394  (eval $ac_try) 2>&5
5395  ac_status=$?
5396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5397  (exit $ac_status); }; }; then
5398  ac_compiler_gnu=yes
5399else
5400  echo "$as_me: failed program was:" >&5
5401sed 's/^/| /' conftest.$ac_ext >&5
5402
5403ac_compiler_gnu=no
5404fi
5405rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5406ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5407
5408fi
5409echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5410echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5411ac_ext=$ac_save_ext
5412ac_test_FFLAGS=${FFLAGS+set}
5413ac_save_FFLAGS=$FFLAGS
5414FFLAGS=
5415echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5416echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5417if test "${ac_cv_prog_f77_g+set}" = set; then
5418  echo $ECHO_N "(cached) $ECHO_C" >&6
5419else
5420  FFLAGS=-g
5421cat >conftest.$ac_ext <<_ACEOF
5422      program main
5423
5424      end
5425_ACEOF
5426rm -f conftest.$ac_objext
5427if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5428  (eval $ac_compile) 2>conftest.er1
5429  ac_status=$?
5430  grep -v '^ *+' conftest.er1 >conftest.err
5431  rm -f conftest.er1
5432  cat conftest.err >&5
5433  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5434  (exit $ac_status); } &&
5435	 { ac_try='test -z "$ac_f77_werror_flag"
5436			 || test ! -s conftest.err'
5437  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5438  (eval $ac_try) 2>&5
5439  ac_status=$?
5440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5441  (exit $ac_status); }; } &&
5442	 { ac_try='test -s conftest.$ac_objext'
5443  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5444  (eval $ac_try) 2>&5
5445  ac_status=$?
5446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5447  (exit $ac_status); }; }; then
5448  ac_cv_prog_f77_g=yes
5449else
5450  echo "$as_me: failed program was:" >&5
5451sed 's/^/| /' conftest.$ac_ext >&5
5452
5453ac_cv_prog_f77_g=no
5454fi
5455rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5456
5457fi
5458echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5459echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5460if test "$ac_test_FFLAGS" = set; then
5461  FFLAGS=$ac_save_FFLAGS
5462elif test $ac_cv_prog_f77_g = yes; then
5463  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5464    FFLAGS="-g -O2"
5465  else
5466    FFLAGS="-g"
5467  fi
5468else
5469  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5470    FFLAGS="-O2"
5471  else
5472    FFLAGS=
5473  fi
5474fi
5475
5476G77=`test $ac_compiler_gnu = yes && echo yes`
5477ac_ext=c
5478ac_cpp='$CPP $CPPFLAGS'
5479ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5480ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5481ac_compiler_gnu=$ac_cv_c_compiler_gnu
5482
5483
5484
5485# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5486
5487# find the maximum length of command line arguments
5488echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5489echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5490if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5491  echo $ECHO_N "(cached) $ECHO_C" >&6
5492else
5493    i=0
5494  teststring="ABCD"
5495
5496  case $build_os in
5497  msdosdjgpp*)
5498    # On DJGPP, this test can blow up pretty badly due to problems in libc
5499    # (any single argument exceeding 2000 bytes causes a buffer overrun
5500    # during glob expansion).  Even if it were fixed, the result of this
5501    # check would be larger than it should be.
5502    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5503    ;;
5504
5505  gnu*)
5506    # Under GNU Hurd, this test is not required because there is
5507    # no limit to the length of command line arguments.
5508    # Libtool will interpret -1 as no limit whatsoever
5509    lt_cv_sys_max_cmd_len=-1;
5510    ;;
5511
5512  cygwin* | mingw*)
5513    # On Win9x/ME, this test blows up -- it succeeds, but takes
5514    # about 5 minutes as the teststring grows exponentially.
5515    # Worse, since 9x/ME are not pre-emptively multitasking,
5516    # you end up with a "frozen" computer, even though with patience
5517    # the test eventually succeeds (with a max line length of 256k).
5518    # Instead, let's just punt: use the minimum linelength reported by
5519    # all of the supported platforms: 8192 (on NT/2K/XP).
5520    lt_cv_sys_max_cmd_len=8192;
5521    ;;
5522
5523  amigaos*)
5524    # On AmigaOS with pdksh, this test takes hours, literally.
5525    # So we just punt and use a minimum line length of 8192.
5526    lt_cv_sys_max_cmd_len=8192;
5527    ;;
5528
5529  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5530    # This has been around since 386BSD, at least.  Likely further.
5531    if test -x /sbin/sysctl; then
5532      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5533    elif test -x /usr/sbin/sysctl; then
5534      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5535    else
5536      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5537    fi
5538    # And add a safety zone
5539    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5540    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5541    ;;
5542
5543  interix*)
5544    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5545    lt_cv_sys_max_cmd_len=196608
5546    ;;
5547
5548  osf*)
5549    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5550    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5551    # nice to cause kernel panics so lets avoid the loop below.
5552    # First set a reasonable default.
5553    lt_cv_sys_max_cmd_len=16384
5554    #
5555    if test -x /sbin/sysconfig; then
5556      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5557        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5558      esac
5559    fi
5560    ;;
5561  sco3.2v5*)
5562    lt_cv_sys_max_cmd_len=102400
5563    ;;
5564  sysv5* | sco5v6* | sysv4.2uw2*)
5565    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5566    if test -n "$kargmax"; then
5567      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
5568    else
5569      lt_cv_sys_max_cmd_len=32768
5570    fi
5571    ;;
5572  *)
5573    # If test is not a shell built-in, we'll probably end up computing a
5574    # maximum length that is only half of the actual maximum length, but
5575    # we can't tell.
5576    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5577    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5578	       = "XX$teststring") >/dev/null 2>&1 &&
5579	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
5580	    lt_cv_sys_max_cmd_len=$new_result &&
5581	    test $i != 17 # 1/2 MB should be enough
5582    do
5583      i=`expr $i + 1`
5584      teststring=$teststring$teststring
5585    done
5586    teststring=
5587    # Add a significant safety factor because C++ compilers can tack on massive
5588    # amounts of additional arguments before passing them to the linker.
5589    # It appears as though 1/2 is a usable value.
5590    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5591    ;;
5592  esac
5593
5594fi
5595
5596if test -n $lt_cv_sys_max_cmd_len ; then
5597  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5598echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5599else
5600  echo "$as_me:$LINENO: result: none" >&5
5601echo "${ECHO_T}none" >&6
5602fi
5603
5604
5605
5606
5607# Check for command to grab the raw symbol name followed by C symbol from nm.
5608echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5609echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5610if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5611  echo $ECHO_N "(cached) $ECHO_C" >&6
5612else
5613
5614# These are sane defaults that work on at least a few old systems.
5615# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5616
5617# Character class describing NM global symbol codes.
5618symcode='[BCDEGRST]'
5619
5620# Regexp to match symbols that can be accessed directly from C.
5621sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5622
5623# Transform an extracted symbol line into a proper C declaration
5624lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5625
5626# Transform an extracted symbol line into symbol name and symbol address
5627lt_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'"
5628
5629# Define system-specific variables.
5630case $host_os in
5631aix*)
5632  symcode='[BCDT]'
5633  ;;
5634cygwin* | mingw* | pw32*)
5635  symcode='[ABCDGISTW]'
5636  ;;
5637hpux*) # Its linker distinguishes data from code symbols
5638  if test "$host_cpu" = ia64; then
5639    symcode='[ABCDEGRST]'
5640  fi
5641  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5642  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'"
5643  ;;
5644linux*)
5645  if test "$host_cpu" = ia64; then
5646    symcode='[ABCDGIRSTW]'
5647    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5648    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'"
5649  fi
5650  ;;
5651irix* | nonstopux*)
5652  symcode='[BCDEGRST]'
5653  ;;
5654osf*)
5655  symcode='[BCDEGQRST]'
5656  ;;
5657solaris*)
5658  symcode='[BDRT]'
5659  ;;
5660sco3.2v5*)
5661  symcode='[DT]'
5662  ;;
5663sysv4.2uw2*)
5664  symcode='[DT]'
5665  ;;
5666sysv5* | sco5v6* | unixware* | OpenUNIX*)
5667  symcode='[ABDT]'
5668  ;;
5669sysv4)
5670  symcode='[DFNSTU]'
5671  ;;
5672esac
5673
5674# Handle CRLF in mingw tool chain
5675opt_cr=
5676case $build_os in
5677mingw*)
5678  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5679  ;;
5680esac
5681
5682# If we're using GNU nm, then use its standard symbol codes.
5683case `$NM -V 2>&1` in
5684*GNU* | *'with BFD'*)
5685  symcode='[ABCDGIRSTW]' ;;
5686esac
5687
5688# Try without a prefix undercore, then with it.
5689for ac_symprfx in "" "_"; do
5690
5691  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5692  symxfrm="\\1 $ac_symprfx\\2 \\2"
5693
5694  # Write the raw and C identifiers.
5695  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5696
5697  # Check to see that the pipe works correctly.
5698  pipe_works=no
5699
5700  rm -f conftest*
5701  cat > conftest.$ac_ext <<EOF
5702#ifdef __cplusplus
5703extern "C" {
5704#endif
5705char nm_test_var;
5706void nm_test_func(){}
5707#ifdef __cplusplus
5708}
5709#endif
5710int main(){nm_test_var='a';nm_test_func();return(0);}
5711EOF
5712
5713  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5714  (eval $ac_compile) 2>&5
5715  ac_status=$?
5716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5717  (exit $ac_status); }; then
5718    # Now try to grab the symbols.
5719    nlist=conftest.nm
5720    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5721  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5722  ac_status=$?
5723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5724  (exit $ac_status); } && test -s "$nlist"; then
5725      # Try sorting and uniquifying the output.
5726      if sort "$nlist" | uniq > "$nlist"T; then
5727	mv -f "$nlist"T "$nlist"
5728      else
5729	rm -f "$nlist"T
5730      fi
5731
5732      # Make sure that we snagged all the symbols we need.
5733      if grep ' nm_test_var$' "$nlist" >/dev/null; then
5734	if grep ' nm_test_func$' "$nlist" >/dev/null; then
5735	  cat <<EOF > conftest.$ac_ext
5736#ifdef __cplusplus
5737extern "C" {
5738#endif
5739
5740EOF
5741	  # Now generate the symbol file.
5742	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5743
5744	  cat <<EOF >> conftest.$ac_ext
5745#if defined (__STDC__) && __STDC__
5746# define lt_ptr_t void *
5747#else
5748# define lt_ptr_t char *
5749# define const
5750#endif
5751
5752/* The mapping between symbol names and symbols. */
5753const struct {
5754  const char *name;
5755  lt_ptr_t address;
5756}
5757lt_preloaded_symbols[] =
5758{
5759EOF
5760	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5761	  cat <<\EOF >> conftest.$ac_ext
5762  {0, (lt_ptr_t) 0}
5763};
5764
5765#ifdef __cplusplus
5766}
5767#endif
5768EOF
5769	  # Now try linking the two files.
5770	  mv conftest.$ac_objext conftstm.$ac_objext
5771	  lt_save_LIBS="$LIBS"
5772	  lt_save_CFLAGS="$CFLAGS"
5773	  LIBS="conftstm.$ac_objext"
5774	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5775	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5776  (eval $ac_link) 2>&5
5777  ac_status=$?
5778  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5779  (exit $ac_status); } && test -s conftest${ac_exeext}; then
5780	    pipe_works=yes
5781	  fi
5782	  LIBS="$lt_save_LIBS"
5783	  CFLAGS="$lt_save_CFLAGS"
5784	else
5785	  echo "cannot find nm_test_func in $nlist" >&5
5786	fi
5787      else
5788	echo "cannot find nm_test_var in $nlist" >&5
5789      fi
5790    else
5791      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5792    fi
5793  else
5794    echo "$progname: failed program was:" >&5
5795    cat conftest.$ac_ext >&5
5796  fi
5797  rm -f conftest* conftst*
5798
5799  # Do not use the global_symbol_pipe unless it works.
5800  if test "$pipe_works" = yes; then
5801    break
5802  else
5803    lt_cv_sys_global_symbol_pipe=
5804  fi
5805done
5806
5807fi
5808
5809if test -z "$lt_cv_sys_global_symbol_pipe"; then
5810  lt_cv_sys_global_symbol_to_cdecl=
5811fi
5812if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5813  echo "$as_me:$LINENO: result: failed" >&5
5814echo "${ECHO_T}failed" >&6
5815else
5816  echo "$as_me:$LINENO: result: ok" >&5
5817echo "${ECHO_T}ok" >&6
5818fi
5819
5820echo "$as_me:$LINENO: checking for objdir" >&5
5821echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5822if test "${lt_cv_objdir+set}" = set; then
5823  echo $ECHO_N "(cached) $ECHO_C" >&6
5824else
5825  rm -f .libs 2>/dev/null
5826mkdir .libs 2>/dev/null
5827if test -d .libs; then
5828  lt_cv_objdir=.libs
5829else
5830  # MS-DOS does not allow filenames that begin with a dot.
5831  lt_cv_objdir=_libs
5832fi
5833rmdir .libs 2>/dev/null
5834fi
5835echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5836echo "${ECHO_T}$lt_cv_objdir" >&6
5837objdir=$lt_cv_objdir
5838
5839
5840
5841
5842
5843case $host_os in
5844aix3*)
5845  # AIX sometimes has problems with the GCC collect2 program.  For some
5846  # reason, if we set the COLLECT_NAMES environment variable, the problems
5847  # vanish in a puff of smoke.
5848  if test "X${COLLECT_NAMES+set}" != Xset; then
5849    COLLECT_NAMES=
5850    export COLLECT_NAMES
5851  fi
5852  ;;
5853esac
5854
5855# Sed substitution that helps us do robust quoting.  It backslashifies
5856# metacharacters that are still active within double-quoted strings.
5857Xsed='sed -e 1s/^X//'
5858sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5859
5860# Same as above, but do not quote variable references.
5861double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5862
5863# Sed substitution to delay expansion of an escaped shell variable in a
5864# double_quote_subst'ed string.
5865delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5866
5867# Sed substitution to avoid accidental globbing in evaled expressions
5868no_glob_subst='s/\*/\\\*/g'
5869
5870# Constants:
5871rm="rm -f"
5872
5873# Global variables:
5874default_ofile=libtool
5875can_build_shared=yes
5876
5877# All known linkers require a `.a' archive for static linking (except MSVC,
5878# which needs '.lib').
5879libext=a
5880ltmain="$ac_aux_dir/ltmain.sh"
5881ofile="$default_ofile"
5882with_gnu_ld="$lt_cv_prog_gnu_ld"
5883
5884if test -n "$ac_tool_prefix"; then
5885  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5886set dummy ${ac_tool_prefix}ar; ac_word=$2
5887echo "$as_me:$LINENO: checking for $ac_word" >&5
5888echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5889if test "${ac_cv_prog_AR+set}" = set; then
5890  echo $ECHO_N "(cached) $ECHO_C" >&6
5891else
5892  if test -n "$AR"; then
5893  ac_cv_prog_AR="$AR" # Let the user override the test.
5894else
5895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5896for as_dir in $PATH
5897do
5898  IFS=$as_save_IFS
5899  test -z "$as_dir" && as_dir=.
5900  for ac_exec_ext in '' $ac_executable_extensions; do
5901  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5902    ac_cv_prog_AR="${ac_tool_prefix}ar"
5903    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5904    break 2
5905  fi
5906done
5907done
5908
5909fi
5910fi
5911AR=$ac_cv_prog_AR
5912if test -n "$AR"; then
5913  echo "$as_me:$LINENO: result: $AR" >&5
5914echo "${ECHO_T}$AR" >&6
5915else
5916  echo "$as_me:$LINENO: result: no" >&5
5917echo "${ECHO_T}no" >&6
5918fi
5919
5920fi
5921if test -z "$ac_cv_prog_AR"; then
5922  ac_ct_AR=$AR
5923  # Extract the first word of "ar", so it can be a program name with args.
5924set dummy ar; ac_word=$2
5925echo "$as_me:$LINENO: checking for $ac_word" >&5
5926echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5927if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5928  echo $ECHO_N "(cached) $ECHO_C" >&6
5929else
5930  if test -n "$ac_ct_AR"; then
5931  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5932else
5933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5934for as_dir in $PATH
5935do
5936  IFS=$as_save_IFS
5937  test -z "$as_dir" && as_dir=.
5938  for ac_exec_ext in '' $ac_executable_extensions; do
5939  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5940    ac_cv_prog_ac_ct_AR="ar"
5941    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5942    break 2
5943  fi
5944done
5945done
5946
5947  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5948fi
5949fi
5950ac_ct_AR=$ac_cv_prog_ac_ct_AR
5951if test -n "$ac_ct_AR"; then
5952  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5953echo "${ECHO_T}$ac_ct_AR" >&6
5954else
5955  echo "$as_me:$LINENO: result: no" >&5
5956echo "${ECHO_T}no" >&6
5957fi
5958
5959  AR=$ac_ct_AR
5960else
5961  AR="$ac_cv_prog_AR"
5962fi
5963
5964if test -n "$ac_tool_prefix"; then
5965  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5966set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5967echo "$as_me:$LINENO: checking for $ac_word" >&5
5968echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5969if test "${ac_cv_prog_RANLIB+set}" = set; then
5970  echo $ECHO_N "(cached) $ECHO_C" >&6
5971else
5972  if test -n "$RANLIB"; then
5973  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5974else
5975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5976for as_dir in $PATH
5977do
5978  IFS=$as_save_IFS
5979  test -z "$as_dir" && as_dir=.
5980  for ac_exec_ext in '' $ac_executable_extensions; do
5981  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5982    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5983    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5984    break 2
5985  fi
5986done
5987done
5988
5989fi
5990fi
5991RANLIB=$ac_cv_prog_RANLIB
5992if test -n "$RANLIB"; then
5993  echo "$as_me:$LINENO: result: $RANLIB" >&5
5994echo "${ECHO_T}$RANLIB" >&6
5995else
5996  echo "$as_me:$LINENO: result: no" >&5
5997echo "${ECHO_T}no" >&6
5998fi
5999
6000fi
6001if test -z "$ac_cv_prog_RANLIB"; then
6002  ac_ct_RANLIB=$RANLIB
6003  # Extract the first word of "ranlib", so it can be a program name with args.
6004set dummy ranlib; ac_word=$2
6005echo "$as_me:$LINENO: checking for $ac_word" >&5
6006echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6007if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6008  echo $ECHO_N "(cached) $ECHO_C" >&6
6009else
6010  if test -n "$ac_ct_RANLIB"; then
6011  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6012else
6013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6014for as_dir in $PATH
6015do
6016  IFS=$as_save_IFS
6017  test -z "$as_dir" && as_dir=.
6018  for ac_exec_ext in '' $ac_executable_extensions; do
6019  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6020    ac_cv_prog_ac_ct_RANLIB="ranlib"
6021    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6022    break 2
6023  fi
6024done
6025done
6026
6027  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6028fi
6029fi
6030ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6031if test -n "$ac_ct_RANLIB"; then
6032  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6033echo "${ECHO_T}$ac_ct_RANLIB" >&6
6034else
6035  echo "$as_me:$LINENO: result: no" >&5
6036echo "${ECHO_T}no" >&6
6037fi
6038
6039  RANLIB=$ac_ct_RANLIB
6040else
6041  RANLIB="$ac_cv_prog_RANLIB"
6042fi
6043
6044if test -n "$ac_tool_prefix"; then
6045  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6046set dummy ${ac_tool_prefix}strip; ac_word=$2
6047echo "$as_me:$LINENO: checking for $ac_word" >&5
6048echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6049if test "${ac_cv_prog_STRIP+set}" = set; then
6050  echo $ECHO_N "(cached) $ECHO_C" >&6
6051else
6052  if test -n "$STRIP"; then
6053  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6054else
6055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6056for as_dir in $PATH
6057do
6058  IFS=$as_save_IFS
6059  test -z "$as_dir" && as_dir=.
6060  for ac_exec_ext in '' $ac_executable_extensions; do
6061  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6062    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6063    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6064    break 2
6065  fi
6066done
6067done
6068
6069fi
6070fi
6071STRIP=$ac_cv_prog_STRIP
6072if test -n "$STRIP"; then
6073  echo "$as_me:$LINENO: result: $STRIP" >&5
6074echo "${ECHO_T}$STRIP" >&6
6075else
6076  echo "$as_me:$LINENO: result: no" >&5
6077echo "${ECHO_T}no" >&6
6078fi
6079
6080fi
6081if test -z "$ac_cv_prog_STRIP"; then
6082  ac_ct_STRIP=$STRIP
6083  # Extract the first word of "strip", so it can be a program name with args.
6084set dummy strip; ac_word=$2
6085echo "$as_me:$LINENO: checking for $ac_word" >&5
6086echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6087if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6088  echo $ECHO_N "(cached) $ECHO_C" >&6
6089else
6090  if test -n "$ac_ct_STRIP"; then
6091  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6092else
6093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6094for as_dir in $PATH
6095do
6096  IFS=$as_save_IFS
6097  test -z "$as_dir" && as_dir=.
6098  for ac_exec_ext in '' $ac_executable_extensions; do
6099  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6100    ac_cv_prog_ac_ct_STRIP="strip"
6101    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6102    break 2
6103  fi
6104done
6105done
6106
6107  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6108fi
6109fi
6110ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6111if test -n "$ac_ct_STRIP"; then
6112  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6113echo "${ECHO_T}$ac_ct_STRIP" >&6
6114else
6115  echo "$as_me:$LINENO: result: no" >&5
6116echo "${ECHO_T}no" >&6
6117fi
6118
6119  STRIP=$ac_ct_STRIP
6120else
6121  STRIP="$ac_cv_prog_STRIP"
6122fi
6123
6124
6125old_CC="$CC"
6126old_CFLAGS="$CFLAGS"
6127
6128# Set sane defaults for various variables
6129test -z "$AR" && AR=ar
6130test -z "$AR_FLAGS" && AR_FLAGS=cru
6131test -z "$AS" && AS=as
6132test -z "$CC" && CC=cc
6133test -z "$LTCC" && LTCC=$CC
6134test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6135test -z "$DLLTOOL" && DLLTOOL=dlltool
6136test -z "$LD" && LD=ld
6137test -z "$LN_S" && LN_S="ln -s"
6138test -z "$MAGIC_CMD" && MAGIC_CMD=file
6139test -z "$NM" && NM=nm
6140test -z "$SED" && SED=sed
6141test -z "$OBJDUMP" && OBJDUMP=objdump
6142test -z "$RANLIB" && RANLIB=:
6143test -z "$STRIP" && STRIP=:
6144test -z "$ac_objext" && ac_objext=o
6145
6146# Determine commands to create old-style static archives.
6147old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6148old_postinstall_cmds='chmod 644 $oldlib'
6149old_postuninstall_cmds=
6150
6151if test -n "$RANLIB"; then
6152  case $host_os in
6153  openbsd*)
6154    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6155    ;;
6156  *)
6157    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6158    ;;
6159  esac
6160  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6161fi
6162
6163for cc_temp in $compiler""; do
6164  case $cc_temp in
6165    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6166    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6167    \-*) ;;
6168    *) break;;
6169  esac
6170done
6171cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6172
6173
6174# Only perform the check for file, if the check method requires it
6175case $deplibs_check_method in
6176file_magic*)
6177  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6178    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6179echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6180if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6181  echo $ECHO_N "(cached) $ECHO_C" >&6
6182else
6183  case $MAGIC_CMD in
6184[\\/*] |  ?:[\\/]*)
6185  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6186  ;;
6187*)
6188  lt_save_MAGIC_CMD="$MAGIC_CMD"
6189  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6190  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6191  for ac_dir in $ac_dummy; do
6192    IFS="$lt_save_ifs"
6193    test -z "$ac_dir" && ac_dir=.
6194    if test -f $ac_dir/${ac_tool_prefix}file; then
6195      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6196      if test -n "$file_magic_test_file"; then
6197	case $deplibs_check_method in
6198	"file_magic "*)
6199	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6200	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6201	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6202	    $EGREP "$file_magic_regex" > /dev/null; then
6203	    :
6204	  else
6205	    cat <<EOF 1>&2
6206
6207*** Warning: the command libtool uses to detect shared libraries,
6208*** $file_magic_cmd, produces output that libtool cannot recognize.
6209*** The result is that libtool may fail to recognize shared libraries
6210*** as such.  This will affect the creation of libtool libraries that
6211*** depend on shared libraries, but programs linked with such libtool
6212*** libraries will work regardless of this problem.  Nevertheless, you
6213*** may want to report the problem to your system manager and/or to
6214*** bug-libtool@gnu.org
6215
6216EOF
6217	  fi ;;
6218	esac
6219      fi
6220      break
6221    fi
6222  done
6223  IFS="$lt_save_ifs"
6224  MAGIC_CMD="$lt_save_MAGIC_CMD"
6225  ;;
6226esac
6227fi
6228
6229MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6230if test -n "$MAGIC_CMD"; then
6231  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6232echo "${ECHO_T}$MAGIC_CMD" >&6
6233else
6234  echo "$as_me:$LINENO: result: no" >&5
6235echo "${ECHO_T}no" >&6
6236fi
6237
6238if test -z "$lt_cv_path_MAGIC_CMD"; then
6239  if test -n "$ac_tool_prefix"; then
6240    echo "$as_me:$LINENO: checking for file" >&5
6241echo $ECHO_N "checking for file... $ECHO_C" >&6
6242if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6243  echo $ECHO_N "(cached) $ECHO_C" >&6
6244else
6245  case $MAGIC_CMD in
6246[\\/*] |  ?:[\\/]*)
6247  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6248  ;;
6249*)
6250  lt_save_MAGIC_CMD="$MAGIC_CMD"
6251  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6252  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6253  for ac_dir in $ac_dummy; do
6254    IFS="$lt_save_ifs"
6255    test -z "$ac_dir" && ac_dir=.
6256    if test -f $ac_dir/file; then
6257      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6258      if test -n "$file_magic_test_file"; then
6259	case $deplibs_check_method in
6260	"file_magic "*)
6261	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6262	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6263	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6264	    $EGREP "$file_magic_regex" > /dev/null; then
6265	    :
6266	  else
6267	    cat <<EOF 1>&2
6268
6269*** Warning: the command libtool uses to detect shared libraries,
6270*** $file_magic_cmd, produces output that libtool cannot recognize.
6271*** The result is that libtool may fail to recognize shared libraries
6272*** as such.  This will affect the creation of libtool libraries that
6273*** depend on shared libraries, but programs linked with such libtool
6274*** libraries will work regardless of this problem.  Nevertheless, you
6275*** may want to report the problem to your system manager and/or to
6276*** bug-libtool@gnu.org
6277
6278EOF
6279	  fi ;;
6280	esac
6281      fi
6282      break
6283    fi
6284  done
6285  IFS="$lt_save_ifs"
6286  MAGIC_CMD="$lt_save_MAGIC_CMD"
6287  ;;
6288esac
6289fi
6290
6291MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6292if test -n "$MAGIC_CMD"; then
6293  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6294echo "${ECHO_T}$MAGIC_CMD" >&6
6295else
6296  echo "$as_me:$LINENO: result: no" >&5
6297echo "${ECHO_T}no" >&6
6298fi
6299
6300  else
6301    MAGIC_CMD=:
6302  fi
6303fi
6304
6305  fi
6306  ;;
6307esac
6308
6309enable_dlopen=no
6310enable_win32_dll=no
6311
6312# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6313if test "${enable_libtool_lock+set}" = set; then
6314  enableval="$enable_libtool_lock"
6315
6316fi;
6317test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6318
6319
6320# Check whether --with-pic or --without-pic was given.
6321if test "${with_pic+set}" = set; then
6322  withval="$with_pic"
6323  pic_mode="$withval"
6324else
6325  pic_mode=default
6326fi;
6327test -z "$pic_mode" && pic_mode=default
6328
6329# Use C for the default configuration in the libtool script
6330tagname=
6331lt_save_CC="$CC"
6332ac_ext=c
6333ac_cpp='$CPP $CPPFLAGS'
6334ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6335ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6336ac_compiler_gnu=$ac_cv_c_compiler_gnu
6337
6338
6339# Source file extension for C test sources.
6340ac_ext=c
6341
6342# Object file extension for compiled C test sources.
6343objext=o
6344objext=$objext
6345
6346# Code to be used in simple compile tests
6347lt_simple_compile_test_code="int some_variable = 0;\n"
6348
6349# Code to be used in simple link tests
6350lt_simple_link_test_code='int main(){return(0);}\n'
6351
6352
6353# If no C compiler was specified, use CC.
6354LTCC=${LTCC-"$CC"}
6355
6356# If no C compiler flags were specified, use CFLAGS.
6357LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6358
6359# Allow CC to be a program name with arguments.
6360compiler=$CC
6361
6362
6363# save warnings/boilerplate of simple test code
6364ac_outfile=conftest.$ac_objext
6365printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6366eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6367_lt_compiler_boilerplate=`cat conftest.err`
6368$rm conftest*
6369
6370ac_outfile=conftest.$ac_objext
6371printf "$lt_simple_link_test_code" >conftest.$ac_ext
6372eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6373_lt_linker_boilerplate=`cat conftest.err`
6374$rm conftest*
6375
6376
6377
6378lt_prog_compiler_no_builtin_flag=
6379
6380if test "$GCC" = yes; then
6381  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6382
6383
6384echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6385echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6386if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6387  echo $ECHO_N "(cached) $ECHO_C" >&6
6388else
6389  lt_cv_prog_compiler_rtti_exceptions=no
6390  ac_outfile=conftest.$ac_objext
6391   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6392   lt_compiler_flag="-fno-rtti -fno-exceptions"
6393   # Insert the option either (1) after the last *FLAGS variable, or
6394   # (2) before a word containing "conftest.", or (3) at the end.
6395   # Note that $ac_compile itself does not contain backslashes and begins
6396   # with a dollar sign (not a hyphen), so the echo should work correctly.
6397   # The option is referenced via a variable to avoid confusing sed.
6398   lt_compile=`echo "$ac_compile" | $SED \
6399   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6400   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6401   -e 's:$: $lt_compiler_flag:'`
6402   (eval echo "\"\$as_me:6402: $lt_compile\"" >&5)
6403   (eval "$lt_compile" 2>conftest.err)
6404   ac_status=$?
6405   cat conftest.err >&5
6406   echo "$as_me:6406: \$? = $ac_status" >&5
6407   if (exit $ac_status) && test -s "$ac_outfile"; then
6408     # The compiler can only warn and ignore the option if not recognized
6409     # So say no if there are warnings other than the usual output.
6410     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6411     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6412     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6413       lt_cv_prog_compiler_rtti_exceptions=yes
6414     fi
6415   fi
6416   $rm conftest*
6417
6418fi
6419echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6420echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6421
6422if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6423    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6424else
6425    :
6426fi
6427
6428fi
6429
6430lt_prog_compiler_wl=
6431lt_prog_compiler_pic=
6432lt_prog_compiler_static=
6433
6434echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6435echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6436
6437  if test "$GCC" = yes; then
6438    lt_prog_compiler_wl='-Wl,'
6439    lt_prog_compiler_static='-static'
6440
6441    case $host_os in
6442      aix*)
6443      # All AIX code is PIC.
6444      if test "$host_cpu" = ia64; then
6445	# AIX 5 now supports IA64 processor
6446	lt_prog_compiler_static='-Bstatic'
6447      fi
6448      ;;
6449
6450    amigaos*)
6451      # FIXME: we need at least 68020 code to build shared libraries, but
6452      # adding the `-m68020' flag to GCC prevents building anything better,
6453      # like `-m68040'.
6454      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6455      ;;
6456
6457    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6458      # PIC is the default for these OSes.
6459      ;;
6460
6461    mingw* | pw32* | os2*)
6462      # This hack is so that the source file can tell whether it is being
6463      # built for inclusion in a dll (and should export symbols for example).
6464      lt_prog_compiler_pic='-DDLL_EXPORT'
6465      ;;
6466
6467    darwin* | rhapsody*)
6468      # PIC is the default on this platform
6469      # Common symbols not allowed in MH_DYLIB files
6470      lt_prog_compiler_pic='-fno-common'
6471      ;;
6472
6473    interix3*)
6474      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6475      # Instead, we relocate shared libraries at runtime.
6476      ;;
6477
6478    msdosdjgpp*)
6479      # Just because we use GCC doesn't mean we suddenly get shared libraries
6480      # on systems that don't support them.
6481      lt_prog_compiler_can_build_shared=no
6482      enable_shared=no
6483      ;;
6484
6485    sysv4*MP*)
6486      if test -d /usr/nec; then
6487	lt_prog_compiler_pic=-Kconform_pic
6488      fi
6489      ;;
6490
6491    hpux*)
6492      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6493      # not for PA HP-UX.
6494      case $host_cpu in
6495      hppa*64*|ia64*)
6496	# +Z the default
6497	;;
6498      *)
6499	lt_prog_compiler_pic='-fPIC'
6500	;;
6501      esac
6502      ;;
6503
6504    *)
6505      lt_prog_compiler_pic='-fPIC'
6506      ;;
6507    esac
6508  else
6509    # PORTME Check for flag to pass linker flags through the system compiler.
6510    case $host_os in
6511    aix*)
6512      lt_prog_compiler_wl='-Wl,'
6513      if test "$host_cpu" = ia64; then
6514	# AIX 5 now supports IA64 processor
6515	lt_prog_compiler_static='-Bstatic'
6516      else
6517	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6518      fi
6519      ;;
6520      darwin*)
6521        # PIC is the default on this platform
6522        # Common symbols not allowed in MH_DYLIB files
6523       case $cc_basename in
6524         xlc*)
6525         lt_prog_compiler_pic='-qnocommon'
6526         lt_prog_compiler_wl='-Wl,'
6527         ;;
6528       esac
6529       ;;
6530
6531    mingw* | pw32* | os2*)
6532      # This hack is so that the source file can tell whether it is being
6533      # built for inclusion in a dll (and should export symbols for example).
6534      lt_prog_compiler_pic='-DDLL_EXPORT'
6535      ;;
6536
6537    hpux9* | hpux10* | hpux11*)
6538      lt_prog_compiler_wl='-Wl,'
6539      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6540      # not for PA HP-UX.
6541      case $host_cpu in
6542      hppa*64*|ia64*)
6543	# +Z the default
6544	;;
6545      *)
6546	lt_prog_compiler_pic='+Z'
6547	;;
6548      esac
6549      # Is there a better lt_prog_compiler_static that works with the bundled CC?
6550      lt_prog_compiler_static='${wl}-a ${wl}archive'
6551      ;;
6552
6553    irix5* | irix6* | nonstopux*)
6554      lt_prog_compiler_wl='-Wl,'
6555      # PIC (with -KPIC) is the default.
6556      lt_prog_compiler_static='-non_shared'
6557      ;;
6558
6559    newsos6)
6560      lt_prog_compiler_pic='-KPIC'
6561      lt_prog_compiler_static='-Bstatic'
6562      ;;
6563
6564    linux*)
6565      case $cc_basename in
6566      icc* | ecc*)
6567	lt_prog_compiler_wl='-Wl,'
6568	lt_prog_compiler_pic='-KPIC'
6569	lt_prog_compiler_static='-static'
6570        ;;
6571      pgcc* | pgf77* | pgf90* | pgf95*)
6572        # Portland Group compilers (*not* the Pentium gcc compiler,
6573	# which looks to be a dead project)
6574	lt_prog_compiler_wl='-Wl,'
6575	lt_prog_compiler_pic='-fpic'
6576	lt_prog_compiler_static='-Bstatic'
6577        ;;
6578      ccc*)
6579        lt_prog_compiler_wl='-Wl,'
6580        # All Alpha code is PIC.
6581        lt_prog_compiler_static='-non_shared'
6582        ;;
6583      esac
6584      ;;
6585
6586    osf3* | osf4* | osf5*)
6587      lt_prog_compiler_wl='-Wl,'
6588      # All OSF/1 code is PIC.
6589      lt_prog_compiler_static='-non_shared'
6590      ;;
6591
6592    solaris*)
6593      lt_prog_compiler_pic='-KPIC'
6594      lt_prog_compiler_static='-Bstatic'
6595      case $cc_basename in
6596      f77* | f90* | f95*)
6597	lt_prog_compiler_wl='-Qoption ld ';;
6598      *)
6599	lt_prog_compiler_wl='-Wl,';;
6600      esac
6601      ;;
6602
6603    sunos4*)
6604      lt_prog_compiler_wl='-Qoption ld '
6605      lt_prog_compiler_pic='-PIC'
6606      lt_prog_compiler_static='-Bstatic'
6607      ;;
6608
6609    sysv4 | sysv4.2uw2* | sysv4.3*)
6610      lt_prog_compiler_wl='-Wl,'
6611      lt_prog_compiler_pic='-KPIC'
6612      lt_prog_compiler_static='-Bstatic'
6613      ;;
6614
6615    sysv4*MP*)
6616      if test -d /usr/nec ;then
6617	lt_prog_compiler_pic='-Kconform_pic'
6618	lt_prog_compiler_static='-Bstatic'
6619      fi
6620      ;;
6621
6622    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6623      lt_prog_compiler_wl='-Wl,'
6624      lt_prog_compiler_pic='-KPIC'
6625      lt_prog_compiler_static='-Bstatic'
6626      ;;
6627
6628    unicos*)
6629      lt_prog_compiler_wl='-Wl,'
6630      lt_prog_compiler_can_build_shared=no
6631      ;;
6632
6633    uts4*)
6634      lt_prog_compiler_pic='-pic'
6635      lt_prog_compiler_static='-Bstatic'
6636      ;;
6637
6638    *)
6639      lt_prog_compiler_can_build_shared=no
6640      ;;
6641    esac
6642  fi
6643
6644echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6645echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6646
6647#
6648# Check to make sure the PIC flag actually works.
6649#
6650if test -n "$lt_prog_compiler_pic"; then
6651
6652echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6653echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6654if test "${lt_prog_compiler_pic_works+set}" = set; then
6655  echo $ECHO_N "(cached) $ECHO_C" >&6
6656else
6657  lt_prog_compiler_pic_works=no
6658  ac_outfile=conftest.$ac_objext
6659   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6660   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6661   # Insert the option either (1) after the last *FLAGS variable, or
6662   # (2) before a word containing "conftest.", or (3) at the end.
6663   # Note that $ac_compile itself does not contain backslashes and begins
6664   # with a dollar sign (not a hyphen), so the echo should work correctly.
6665   # The option is referenced via a variable to avoid confusing sed.
6666   lt_compile=`echo "$ac_compile" | $SED \
6667   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6668   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6669   -e 's:$: $lt_compiler_flag:'`
6670   (eval echo "\"\$as_me:6670: $lt_compile\"" >&5)
6671   (eval "$lt_compile" 2>conftest.err)
6672   ac_status=$?
6673   cat conftest.err >&5
6674   echo "$as_me:6674: \$? = $ac_status" >&5
6675   if (exit $ac_status) && test -s "$ac_outfile"; then
6676     # The compiler can only warn and ignore the option if not recognized
6677     # So say no if there are warnings other than the usual output.
6678     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6679     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6680     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6681       lt_prog_compiler_pic_works=yes
6682     fi
6683   fi
6684   $rm conftest*
6685
6686fi
6687echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6688echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6689
6690if test x"$lt_prog_compiler_pic_works" = xyes; then
6691    case $lt_prog_compiler_pic in
6692     "" | " "*) ;;
6693     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6694     esac
6695else
6696    lt_prog_compiler_pic=
6697     lt_prog_compiler_can_build_shared=no
6698fi
6699
6700fi
6701case $host_os in
6702  # For platforms which do not support PIC, -DPIC is meaningless:
6703  *djgpp*)
6704    lt_prog_compiler_pic=
6705    ;;
6706  *)
6707    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6708    ;;
6709esac
6710
6711#
6712# Check to make sure the static flag actually works.
6713#
6714wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6715echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6716echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6717if test "${lt_prog_compiler_static_works+set}" = set; then
6718  echo $ECHO_N "(cached) $ECHO_C" >&6
6719else
6720  lt_prog_compiler_static_works=no
6721   save_LDFLAGS="$LDFLAGS"
6722   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6723   printf "$lt_simple_link_test_code" > conftest.$ac_ext
6724   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6725     # The linker can only warn and ignore the option if not recognized
6726     # So say no if there are warnings
6727     if test -s conftest.err; then
6728       # Append any errors to the config.log.
6729       cat conftest.err 1>&5
6730       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6731       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6732       if diff conftest.exp conftest.er2 >/dev/null; then
6733         lt_prog_compiler_static_works=yes
6734       fi
6735     else
6736       lt_prog_compiler_static_works=yes
6737     fi
6738   fi
6739   $rm conftest*
6740   LDFLAGS="$save_LDFLAGS"
6741
6742fi
6743echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6744echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6745
6746if test x"$lt_prog_compiler_static_works" = xyes; then
6747    :
6748else
6749    lt_prog_compiler_static=
6750fi
6751
6752
6753echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6754echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6755if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6756  echo $ECHO_N "(cached) $ECHO_C" >&6
6757else
6758  lt_cv_prog_compiler_c_o=no
6759   $rm -r conftest 2>/dev/null
6760   mkdir conftest
6761   cd conftest
6762   mkdir out
6763   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6764
6765   lt_compiler_flag="-o out/conftest2.$ac_objext"
6766   # Insert the option either (1) after the last *FLAGS variable, or
6767   # (2) before a word containing "conftest.", or (3) at the end.
6768   # Note that $ac_compile itself does not contain backslashes and begins
6769   # with a dollar sign (not a hyphen), so the echo should work correctly.
6770   lt_compile=`echo "$ac_compile" | $SED \
6771   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6772   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6773   -e 's:$: $lt_compiler_flag:'`
6774   (eval echo "\"\$as_me:6774: $lt_compile\"" >&5)
6775   (eval "$lt_compile" 2>out/conftest.err)
6776   ac_status=$?
6777   cat out/conftest.err >&5
6778   echo "$as_me:6778: \$? = $ac_status" >&5
6779   if (exit $ac_status) && test -s out/conftest2.$ac_objext
6780   then
6781     # The compiler can only warn and ignore the option if not recognized
6782     # So say no if there are warnings
6783     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6784     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6785     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6786       lt_cv_prog_compiler_c_o=yes
6787     fi
6788   fi
6789   chmod u+w . 2>&5
6790   $rm conftest*
6791   # SGI C++ compiler will create directory out/ii_files/ for
6792   # template instantiation
6793   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6794   $rm out/* && rmdir out
6795   cd ..
6796   rmdir conftest
6797   $rm conftest*
6798
6799fi
6800echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6801echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6802
6803
6804hard_links="nottested"
6805if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6806  # do not overwrite the value of need_locks provided by the user
6807  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6808echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6809  hard_links=yes
6810  $rm conftest*
6811  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6812  touch conftest.a
6813  ln conftest.a conftest.b 2>&5 || hard_links=no
6814  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6815  echo "$as_me:$LINENO: result: $hard_links" >&5
6816echo "${ECHO_T}$hard_links" >&6
6817  if test "$hard_links" = no; then
6818    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6819echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6820    need_locks=warn
6821  fi
6822else
6823  need_locks=no
6824fi
6825
6826echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6827echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6828
6829  runpath_var=
6830  allow_undefined_flag=
6831  enable_shared_with_static_runtimes=no
6832  archive_cmds=
6833  archive_expsym_cmds=
6834  old_archive_From_new_cmds=
6835  old_archive_from_expsyms_cmds=
6836  export_dynamic_flag_spec=
6837  whole_archive_flag_spec=
6838  thread_safe_flag_spec=
6839  hardcode_libdir_flag_spec=
6840  hardcode_libdir_flag_spec_ld=
6841  hardcode_libdir_separator=
6842  hardcode_direct=no
6843  hardcode_minus_L=no
6844  hardcode_shlibpath_var=unsupported
6845  link_all_deplibs=unknown
6846  hardcode_automatic=no
6847  module_cmds=
6848  module_expsym_cmds=
6849  always_export_symbols=no
6850  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6851  # include_expsyms should be a list of space-separated symbols to be *always*
6852  # included in the symbol list
6853  include_expsyms=
6854  # exclude_expsyms can be an extended regexp of symbols to exclude
6855  # it will be wrapped by ` (' and `)$', so one must not match beginning or
6856  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6857  # as well as any symbol that contains `d'.
6858  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6859  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6860  # platforms (ab)use it in PIC code, but their linkers get confused if
6861  # the symbol is explicitly referenced.  Since portable code cannot
6862  # rely on this symbol name, it's probably fine to never include it in
6863  # preloaded symbol tables.
6864  extract_expsyms_cmds=
6865  # Just being paranoid about ensuring that cc_basename is set.
6866  for cc_temp in $compiler""; do
6867  case $cc_temp in
6868    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6869    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6870    \-*) ;;
6871    *) break;;
6872  esac
6873done
6874cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6875
6876  case $host_os in
6877  cygwin* | mingw* | pw32*)
6878    # FIXME: the MSVC++ port hasn't been tested in a loooong time
6879    # When not using gcc, we currently assume that we are using
6880    # Microsoft Visual C++.
6881    if test "$GCC" != yes; then
6882      with_gnu_ld=no
6883    fi
6884    ;;
6885  interix*)
6886    # we just hope/assume this is gcc and not c89 (= MSVC++)
6887    with_gnu_ld=yes
6888    ;;
6889  openbsd*)
6890    with_gnu_ld=no
6891    ;;
6892  esac
6893
6894  ld_shlibs=yes
6895  if test "$with_gnu_ld" = yes; then
6896    # If archive_cmds runs LD, not CC, wlarc should be empty
6897    wlarc='${wl}'
6898
6899    # Set some defaults for GNU ld with shared library support. These
6900    # are reset later if shared libraries are not supported. Putting them
6901    # here allows them to be overridden if necessary.
6902    runpath_var=LD_RUN_PATH
6903    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6904    export_dynamic_flag_spec='${wl}--export-dynamic'
6905    # ancient GNU ld didn't support --whole-archive et. al.
6906    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6907	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6908      else
6909  	whole_archive_flag_spec=
6910    fi
6911    supports_anon_versioning=no
6912    case `$LD -v 2>/dev/null` in
6913      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6914      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6915      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6916      *\ 2.11.*) ;; # other 2.11 versions
6917      *) supports_anon_versioning=yes ;;
6918    esac
6919
6920    # See if GNU ld supports shared libraries.
6921    case $host_os in
6922    aix3* | aix4* | aix5*)
6923      # On AIX/PPC, the GNU linker is very broken
6924      if test "$host_cpu" != ia64; then
6925	ld_shlibs=no
6926	cat <<EOF 1>&2
6927
6928*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6929*** to be unable to reliably create shared libraries on AIX.
6930*** Therefore, libtool is disabling shared libraries support.  If you
6931*** really care for shared libraries, you may want to modify your PATH
6932*** so that a non-GNU linker is found, and then restart.
6933
6934EOF
6935      fi
6936      ;;
6937
6938    amigaos*)
6939      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)'
6940      hardcode_libdir_flag_spec='-L$libdir'
6941      hardcode_minus_L=yes
6942
6943      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6944      # that the semantics of dynamic libraries on AmigaOS, at least up
6945      # to version 4, is to share data among multiple programs linked
6946      # with the same dynamic library.  Since this doesn't match the
6947      # behavior of shared libraries on other platforms, we can't use
6948      # them.
6949      ld_shlibs=no
6950      ;;
6951
6952    beos*)
6953      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6954	allow_undefined_flag=unsupported
6955	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6956	# support --undefined.  This deserves some investigation.  FIXME
6957	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6958      else
6959	ld_shlibs=no
6960      fi
6961      ;;
6962
6963    cygwin* | mingw* | pw32*)
6964      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6965      # as there is no search path for DLLs.
6966      hardcode_libdir_flag_spec='-L$libdir'
6967      allow_undefined_flag=unsupported
6968      always_export_symbols=no
6969      enable_shared_with_static_runtimes=yes
6970      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6971
6972      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6973        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6974	# If the export-symbols file already is a .def file (1st line
6975	# is EXPORTS), use it as is; otherwise, prepend...
6976	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6977	  cp $export_symbols $output_objdir/$soname.def;
6978	else
6979	  echo EXPORTS > $output_objdir/$soname.def;
6980	  cat $export_symbols >> $output_objdir/$soname.def;
6981	fi~
6982	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6983      else
6984	ld_shlibs=no
6985      fi
6986      ;;
6987
6988    interix3*)
6989      hardcode_direct=no
6990      hardcode_shlibpath_var=no
6991      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6992      export_dynamic_flag_spec='${wl}-E'
6993      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6994      # Instead, shared libraries are loaded at an image base (0x10000000 by
6995      # default) and relocated if they conflict, which is a slow very memory
6996      # consuming and fragmenting process.  To avoid this, we pick a random,
6997      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6998      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
6999      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7000      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'
7001      ;;
7002
7003    linux*)
7004      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7005	tmp_addflag=
7006	case $cc_basename,$host_cpu in
7007	pgcc*)				# Portland Group C compiler
7008	  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'
7009	  tmp_addflag=' $pic_flag'
7010	  ;;
7011	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
7012	  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'
7013	  tmp_addflag=' $pic_flag -Mnomain' ;;
7014	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
7015	  tmp_addflag=' -i_dynamic' ;;
7016	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
7017	  tmp_addflag=' -i_dynamic -nofor_main' ;;
7018	ifc* | ifort*)			# Intel Fortran compiler
7019	  tmp_addflag=' -nofor_main' ;;
7020	esac
7021	archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7022
7023	if test $supports_anon_versioning = yes; then
7024	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7025  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7026  $echo "local: *; };" >> $output_objdir/$libname.ver~
7027	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7028	fi
7029      else
7030	ld_shlibs=no
7031      fi
7032      ;;
7033
7034    netbsd*)
7035      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7036	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7037	wlarc=
7038      else
7039	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7040	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7041      fi
7042      ;;
7043
7044    solaris*)
7045      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7046	ld_shlibs=no
7047	cat <<EOF 1>&2
7048
7049*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7050*** create shared libraries on Solaris systems.  Therefore, libtool
7051*** is disabling shared libraries support.  We urge you to upgrade GNU
7052*** binutils to release 2.9.1 or newer.  Another option is to modify
7053*** your PATH or compiler configuration so that the native linker is
7054*** used, and then restart.
7055
7056EOF
7057      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7058	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7059	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7060      else
7061	ld_shlibs=no
7062      fi
7063      ;;
7064
7065    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7066      case `$LD -v 2>&1` in
7067        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7068	ld_shlibs=no
7069	cat <<_LT_EOF 1>&2
7070
7071*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7072*** reliably create shared libraries on SCO systems.  Therefore, libtool
7073*** is disabling shared libraries support.  We urge you to upgrade GNU
7074*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7075*** your PATH or compiler configuration so that the native linker is
7076*** used, and then restart.
7077
7078_LT_EOF
7079	;;
7080	*)
7081	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7082	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7083	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7084	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7085	  else
7086	    ld_shlibs=no
7087	  fi
7088	;;
7089      esac
7090      ;;
7091
7092    sunos4*)
7093      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7094      wlarc=
7095      hardcode_direct=yes
7096      hardcode_shlibpath_var=no
7097      ;;
7098
7099    *)
7100      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7101	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7102	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7103      else
7104	ld_shlibs=no
7105      fi
7106      ;;
7107    esac
7108
7109    if test "$ld_shlibs" = no; then
7110      runpath_var=
7111      hardcode_libdir_flag_spec=
7112      export_dynamic_flag_spec=
7113      whole_archive_flag_spec=
7114    fi
7115  else
7116    # PORTME fill in a description of your system's linker (not GNU ld)
7117    case $host_os in
7118    aix3*)
7119      allow_undefined_flag=unsupported
7120      always_export_symbols=yes
7121      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'
7122      # Note: this linker hardcodes the directories in LIBPATH if there
7123      # are no directories specified by -L.
7124      hardcode_minus_L=yes
7125      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7126	# Neither direct hardcoding nor static linking is supported with a
7127	# broken collect2.
7128	hardcode_direct=unsupported
7129      fi
7130      ;;
7131
7132    aix4* | aix5*)
7133      if test "$host_cpu" = ia64; then
7134	# On IA64, the linker does run time linking by default, so we don't
7135	# have to do anything special.
7136	aix_use_runtimelinking=no
7137	exp_sym_flag='-Bexport'
7138	no_entry_flag=""
7139      else
7140	# If we're using GNU nm, then we don't want the "-C" option.
7141	# -C means demangle to AIX nm, but means don't demangle with GNU nm
7142	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7143	  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'
7144	else
7145	  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'
7146	fi
7147	aix_use_runtimelinking=no
7148
7149	# Test if we are trying to use run time linking or normal
7150	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
7151	# need to do runtime linking.
7152	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7153	  for ld_flag in $LDFLAGS; do
7154  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7155  	    aix_use_runtimelinking=yes
7156  	    break
7157  	  fi
7158	  done
7159	  ;;
7160	esac
7161
7162	exp_sym_flag='-bexport'
7163	no_entry_flag='-bnoentry'
7164      fi
7165
7166      # When large executables or shared objects are built, AIX ld can
7167      # have problems creating the table of contents.  If linking a library
7168      # or program results in "error TOC overflow" add -mminimal-toc to
7169      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7170      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7171
7172      archive_cmds=''
7173      hardcode_direct=yes
7174      hardcode_libdir_separator=':'
7175      link_all_deplibs=yes
7176
7177      if test "$GCC" = yes; then
7178	case $host_os in aix4.[012]|aix4.[012].*)
7179	# We only want to do this on AIX 4.2 and lower, the check
7180	# below for broken collect2 doesn't work under 4.3+
7181	  collect2name=`${CC} -print-prog-name=collect2`
7182	  if test -f "$collect2name" && \
7183  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
7184	  then
7185  	  # We have reworked collect2
7186  	  hardcode_direct=yes
7187	  else
7188  	  # We have old collect2
7189  	  hardcode_direct=unsupported
7190  	  # It fails to find uninstalled libraries when the uninstalled
7191  	  # path is not listed in the libpath.  Setting hardcode_minus_L
7192  	  # to unsupported forces relinking
7193  	  hardcode_minus_L=yes
7194  	  hardcode_libdir_flag_spec='-L$libdir'
7195  	  hardcode_libdir_separator=
7196	  fi
7197	  ;;
7198	esac
7199	shared_flag='-shared'
7200	if test "$aix_use_runtimelinking" = yes; then
7201	  shared_flag="$shared_flag "'${wl}-G'
7202	fi
7203      else
7204	# not using gcc
7205	if test "$host_cpu" = ia64; then
7206  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7207  	# chokes on -Wl,-G. The following line is correct:
7208	  shared_flag='-G'
7209	else
7210	  if test "$aix_use_runtimelinking" = yes; then
7211	    shared_flag='${wl}-G'
7212	  else
7213	    shared_flag='${wl}-bM:SRE'
7214	  fi
7215	fi
7216      fi
7217
7218      # It seems that -bexpall does not export symbols beginning with
7219      # underscore (_), so it is better to generate a list of symbols to export.
7220      always_export_symbols=yes
7221      if test "$aix_use_runtimelinking" = yes; then
7222	# Warning - without using the other runtime loading flags (-brtl),
7223	# -berok will link without error, but may produce a broken library.
7224	allow_undefined_flag='-berok'
7225       # Determine the default libpath from the value encoded in an empty executable.
7226       cat >conftest.$ac_ext <<_ACEOF
7227/* confdefs.h.  */
7228_ACEOF
7229cat confdefs.h >>conftest.$ac_ext
7230cat >>conftest.$ac_ext <<_ACEOF
7231/* end confdefs.h.  */
7232
7233int
7234main ()
7235{
7236
7237  ;
7238  return 0;
7239}
7240_ACEOF
7241rm -f conftest.$ac_objext conftest$ac_exeext
7242if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7243  (eval $ac_link) 2>conftest.er1
7244  ac_status=$?
7245  grep -v '^ *+' conftest.er1 >conftest.err
7246  rm -f conftest.er1
7247  cat conftest.err >&5
7248  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7249  (exit $ac_status); } &&
7250	 { ac_try='test -z "$ac_c_werror_flag"
7251			 || test ! -s conftest.err'
7252  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7253  (eval $ac_try) 2>&5
7254  ac_status=$?
7255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7256  (exit $ac_status); }; } &&
7257	 { ac_try='test -s conftest$ac_exeext'
7258  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7259  (eval $ac_try) 2>&5
7260  ac_status=$?
7261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7262  (exit $ac_status); }; }; then
7263
7264aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7265}'`
7266# Check for a 64-bit object if we didn't find anything.
7267if 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; }
7268}'`; fi
7269else
7270  echo "$as_me: failed program was:" >&5
7271sed 's/^/| /' conftest.$ac_ext >&5
7272
7273fi
7274rm -f conftest.err conftest.$ac_objext \
7275      conftest$ac_exeext conftest.$ac_ext
7276if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7277
7278       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7279	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"
7280       else
7281	if test "$host_cpu" = ia64; then
7282	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7283	  allow_undefined_flag="-z nodefs"
7284	  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"
7285	else
7286	 # Determine the default libpath from the value encoded in an empty executable.
7287	 cat >conftest.$ac_ext <<_ACEOF
7288/* confdefs.h.  */
7289_ACEOF
7290cat confdefs.h >>conftest.$ac_ext
7291cat >>conftest.$ac_ext <<_ACEOF
7292/* end confdefs.h.  */
7293
7294int
7295main ()
7296{
7297
7298  ;
7299  return 0;
7300}
7301_ACEOF
7302rm -f conftest.$ac_objext conftest$ac_exeext
7303if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7304  (eval $ac_link) 2>conftest.er1
7305  ac_status=$?
7306  grep -v '^ *+' conftest.er1 >conftest.err
7307  rm -f conftest.er1
7308  cat conftest.err >&5
7309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7310  (exit $ac_status); } &&
7311	 { ac_try='test -z "$ac_c_werror_flag"
7312			 || test ! -s conftest.err'
7313  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7314  (eval $ac_try) 2>&5
7315  ac_status=$?
7316  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7317  (exit $ac_status); }; } &&
7318	 { ac_try='test -s conftest$ac_exeext'
7319  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7320  (eval $ac_try) 2>&5
7321  ac_status=$?
7322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7323  (exit $ac_status); }; }; then
7324
7325aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7326}'`
7327# Check for a 64-bit object if we didn't find anything.
7328if 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; }
7329}'`; fi
7330else
7331  echo "$as_me: failed program was:" >&5
7332sed 's/^/| /' conftest.$ac_ext >&5
7333
7334fi
7335rm -f conftest.err conftest.$ac_objext \
7336      conftest$ac_exeext conftest.$ac_ext
7337if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7338
7339	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7340	  # Warning - without using the other run time loading flags,
7341	  # -berok will link without error, but may produce a broken library.
7342	  no_undefined_flag=' ${wl}-bernotok'
7343	  allow_undefined_flag=' ${wl}-berok'
7344	  # Exported symbols can be pulled into shared objects from archives
7345	  whole_archive_flag_spec='$convenience'
7346	  archive_cmds_need_lc=yes
7347	  # This is similar to how AIX traditionally builds its shared libraries.
7348	  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'
7349	fi
7350      fi
7351      ;;
7352
7353    amigaos*)
7354      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)'
7355      hardcode_libdir_flag_spec='-L$libdir'
7356      hardcode_minus_L=yes
7357      # see comment about different semantics on the GNU ld section
7358      ld_shlibs=no
7359      ;;
7360
7361    bsdi[45]*)
7362      export_dynamic_flag_spec=-rdynamic
7363      ;;
7364
7365    cygwin* | mingw* | pw32*)
7366      # When not using gcc, we currently assume that we are using
7367      # Microsoft Visual C++.
7368      # hardcode_libdir_flag_spec is actually meaningless, as there is
7369      # no search path for DLLs.
7370      hardcode_libdir_flag_spec=' '
7371      allow_undefined_flag=unsupported
7372      # Tell ltmain to make .lib files, not .a files.
7373      libext=lib
7374      # Tell ltmain to make .dll files, not .so files.
7375      shrext_cmds=".dll"
7376      # FIXME: Setting linknames here is a bad hack.
7377      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7378      # The linker will automatically build a .lib file if we build a DLL.
7379      old_archive_From_new_cmds='true'
7380      # FIXME: Should let the user specify the lib program.
7381      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7382      fix_srcfile_path='`cygpath -w "$srcfile"`'
7383      enable_shared_with_static_runtimes=yes
7384      ;;
7385
7386    darwin* | rhapsody*)
7387      case $host_os in
7388        rhapsody* | darwin1.[012])
7389         allow_undefined_flag='${wl}-undefined ${wl}suppress'
7390         ;;
7391       *) # Darwin 1.3 on
7392         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7393           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7394         else
7395           case ${MACOSX_DEPLOYMENT_TARGET} in
7396             10.[012])
7397               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7398               ;;
7399             10.*)
7400               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7401               ;;
7402           esac
7403         fi
7404         ;;
7405      esac
7406      archive_cmds_need_lc=no
7407      hardcode_direct=no
7408      hardcode_automatic=yes
7409      hardcode_shlibpath_var=unsupported
7410      whole_archive_flag_spec=''
7411      link_all_deplibs=yes
7412    if test "$GCC" = yes ; then
7413    	output_verbose_link_cmd='echo'
7414        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7415      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7416      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7417      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}'
7418      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}'
7419    else
7420      case $cc_basename in
7421        xlc*)
7422         output_verbose_link_cmd='echo'
7423         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7424         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7425          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7426         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}'
7427          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}'
7428          ;;
7429       *)
7430         ld_shlibs=no
7431          ;;
7432      esac
7433    fi
7434      ;;
7435
7436    dgux*)
7437      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7438      hardcode_libdir_flag_spec='-L$libdir'
7439      hardcode_shlibpath_var=no
7440      ;;
7441
7442    freebsd1*)
7443      ld_shlibs=no
7444      ;;
7445
7446    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7447    # support.  Future versions do this automatically, but an explicit c++rt0.o
7448    # does not break anything, and helps significantly (at the cost of a little
7449    # extra space).
7450    freebsd2.2*)
7451      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7452      hardcode_libdir_flag_spec='-R$libdir'
7453      hardcode_direct=yes
7454      hardcode_shlibpath_var=no
7455      ;;
7456
7457    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7458    freebsd2*)
7459      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7460      hardcode_direct=yes
7461      hardcode_minus_L=yes
7462      hardcode_shlibpath_var=no
7463      ;;
7464
7465    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7466    freebsd* | kfreebsd*-gnu | dragonfly*)
7467      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7468      hardcode_libdir_flag_spec='-R$libdir'
7469      hardcode_direct=yes
7470      hardcode_shlibpath_var=no
7471      ;;
7472
7473    hpux9*)
7474      if test "$GCC" = yes; then
7475	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'
7476      else
7477	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'
7478      fi
7479      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7480      hardcode_libdir_separator=:
7481      hardcode_direct=yes
7482
7483      # hardcode_minus_L: Not really in the search PATH,
7484      # but as the default location of the library.
7485      hardcode_minus_L=yes
7486      export_dynamic_flag_spec='${wl}-E'
7487      ;;
7488
7489    hpux10*)
7490      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7491	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7492      else
7493	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7494      fi
7495      if test "$with_gnu_ld" = no; then
7496	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7497	hardcode_libdir_separator=:
7498
7499	hardcode_direct=yes
7500	export_dynamic_flag_spec='${wl}-E'
7501
7502	# hardcode_minus_L: Not really in the search PATH,
7503	# but as the default location of the library.
7504	hardcode_minus_L=yes
7505      fi
7506      ;;
7507
7508    hpux11*)
7509      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7510	case $host_cpu in
7511	hppa*64*)
7512	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7513	  ;;
7514	ia64*)
7515	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7516	  ;;
7517	*)
7518	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7519	  ;;
7520	esac
7521      else
7522	case $host_cpu in
7523	hppa*64*)
7524	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7525	  ;;
7526	ia64*)
7527	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7528	  ;;
7529	*)
7530	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7531	  ;;
7532	esac
7533      fi
7534      if test "$with_gnu_ld" = no; then
7535	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7536	hardcode_libdir_separator=:
7537
7538	case $host_cpu in
7539	hppa*64*|ia64*)
7540	  hardcode_libdir_flag_spec_ld='+b $libdir'
7541	  hardcode_direct=no
7542	  hardcode_shlibpath_var=no
7543	  ;;
7544	*)
7545	  hardcode_direct=yes
7546	  export_dynamic_flag_spec='${wl}-E'
7547
7548	  # hardcode_minus_L: Not really in the search PATH,
7549	  # but as the default location of the library.
7550	  hardcode_minus_L=yes
7551	  ;;
7552	esac
7553      fi
7554      ;;
7555
7556    irix5* | irix6* | nonstopux*)
7557      if test "$GCC" = yes; then
7558	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'
7559      else
7560	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'
7561	hardcode_libdir_flag_spec_ld='-rpath $libdir'
7562      fi
7563      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7564      hardcode_libdir_separator=:
7565      link_all_deplibs=yes
7566      ;;
7567
7568    netbsd*)
7569      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7570	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7571      else
7572	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7573      fi
7574      hardcode_libdir_flag_spec='-R$libdir'
7575      hardcode_direct=yes
7576      hardcode_shlibpath_var=no
7577      ;;
7578
7579    newsos6)
7580      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7581      hardcode_direct=yes
7582      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7583      hardcode_libdir_separator=:
7584      hardcode_shlibpath_var=no
7585      ;;
7586
7587    openbsd*)
7588      hardcode_direct=yes
7589      hardcode_shlibpath_var=no
7590      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7591	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7592	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7593	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7594	export_dynamic_flag_spec='${wl}-E'
7595      else
7596       case $host_os in
7597	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7598	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7599	   hardcode_libdir_flag_spec='-R$libdir'
7600	   ;;
7601	 *)
7602	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7603	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7604	   ;;
7605       esac
7606      fi
7607      ;;
7608
7609    os2*)
7610      hardcode_libdir_flag_spec='-L$libdir'
7611      hardcode_minus_L=yes
7612      allow_undefined_flag=unsupported
7613      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'
7614      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7615      ;;
7616
7617    osf3*)
7618      if test "$GCC" = yes; then
7619	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7620	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'
7621      else
7622	allow_undefined_flag=' -expect_unresolved \*'
7623	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'
7624      fi
7625      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7626      hardcode_libdir_separator=:
7627      ;;
7628
7629    osf4* | osf5*)	# as osf3* with the addition of -msym flag
7630      if test "$GCC" = yes; then
7631	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7632	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'
7633	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7634      else
7635	allow_undefined_flag=' -expect_unresolved \*'
7636	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'
7637	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7638	$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'
7639
7640	# Both c and cxx compiler support -rpath directly
7641	hardcode_libdir_flag_spec='-rpath $libdir'
7642      fi
7643      hardcode_libdir_separator=:
7644      ;;
7645
7646    solaris*)
7647      no_undefined_flag=' -z text'
7648      if test "$GCC" = yes; then
7649	wlarc='${wl}'
7650	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7651	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7652	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7653      else
7654	wlarc=''
7655	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7656	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7657  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7658      fi
7659      hardcode_libdir_flag_spec='-R$libdir'
7660      hardcode_shlibpath_var=no
7661      case $host_os in
7662      solaris2.[0-5] | solaris2.[0-5].*) ;;
7663      *)
7664 	# The compiler driver will combine linker options so we
7665 	# cannot just pass the convience library names through
7666 	# without $wl, iff we do not link with $LD.
7667 	# Luckily, gcc supports the same syntax we need for Sun Studio.
7668 	# Supported since Solaris 2.6 (maybe 2.5.1?)
7669 	case $wlarc in
7670 	'')
7671 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7672 	*)
7673 	  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' ;;
7674 	esac ;;
7675      esac
7676      link_all_deplibs=yes
7677      ;;
7678
7679    sunos4*)
7680      if test "x$host_vendor" = xsequent; then
7681	# Use $CC to link under sequent, because it throws in some extra .o
7682	# files that make .init and .fini sections work.
7683	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7684      else
7685	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7686      fi
7687      hardcode_libdir_flag_spec='-L$libdir'
7688      hardcode_direct=yes
7689      hardcode_minus_L=yes
7690      hardcode_shlibpath_var=no
7691      ;;
7692
7693    sysv4)
7694      case $host_vendor in
7695	sni)
7696	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7697	  hardcode_direct=yes # is this really true???
7698	;;
7699	siemens)
7700	  ## LD is ld it makes a PLAMLIB
7701	  ## CC just makes a GrossModule.
7702	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7703	  reload_cmds='$CC -r -o $output$reload_objs'
7704	  hardcode_direct=no
7705        ;;
7706	motorola)
7707	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7708	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7709	;;
7710      esac
7711      runpath_var='LD_RUN_PATH'
7712      hardcode_shlibpath_var=no
7713      ;;
7714
7715    sysv4.3*)
7716      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7717      hardcode_shlibpath_var=no
7718      export_dynamic_flag_spec='-Bexport'
7719      ;;
7720
7721    sysv4*MP*)
7722      if test -d /usr/nec; then
7723	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7724	hardcode_shlibpath_var=no
7725	runpath_var=LD_RUN_PATH
7726	hardcode_runpath_var=yes
7727	ld_shlibs=yes
7728      fi
7729      ;;
7730
7731    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
7732      no_undefined_flag='${wl}-z,text'
7733      archive_cmds_need_lc=no
7734      hardcode_shlibpath_var=no
7735      runpath_var='LD_RUN_PATH'
7736
7737      if test "$GCC" = yes; then
7738	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7739	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7740      else
7741	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7742	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7743      fi
7744      ;;
7745
7746    sysv5* | sco3.2v5* | sco5v6*)
7747      # Note: We can NOT use -z defs as we might desire, because we do not
7748      # link with -lc, and that would cause any symbols used from libc to
7749      # always be unresolved, which means just about no library would
7750      # ever link correctly.  If we're not using GNU ld we use -z text
7751      # though, which does catch some bad symbols but isn't as heavy-handed
7752      # as -z defs.
7753      no_undefined_flag='${wl}-z,text'
7754      allow_undefined_flag='${wl}-z,nodefs'
7755      archive_cmds_need_lc=no
7756      hardcode_shlibpath_var=no
7757      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7758      hardcode_libdir_separator=':'
7759      link_all_deplibs=yes
7760      export_dynamic_flag_spec='${wl}-Bexport'
7761      runpath_var='LD_RUN_PATH'
7762
7763      if test "$GCC" = yes; then
7764	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7765	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7766      else
7767	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7768	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7769      fi
7770      ;;
7771
7772    uts4*)
7773      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7774      hardcode_libdir_flag_spec='-L$libdir'
7775      hardcode_shlibpath_var=no
7776      ;;
7777
7778    *)
7779      ld_shlibs=no
7780      ;;
7781    esac
7782  fi
7783
7784echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7785echo "${ECHO_T}$ld_shlibs" >&6
7786test "$ld_shlibs" = no && can_build_shared=no
7787
7788#
7789# Do we need to explicitly link libc?
7790#
7791case "x$archive_cmds_need_lc" in
7792x|xyes)
7793  # Assume -lc should be added
7794  archive_cmds_need_lc=yes
7795
7796  if test "$enable_shared" = yes && test "$GCC" = yes; then
7797    case $archive_cmds in
7798    *'~'*)
7799      # FIXME: we may have to deal with multi-command sequences.
7800      ;;
7801    '$CC '*)
7802      # Test whether the compiler implicitly links with -lc since on some
7803      # systems, -lgcc has to come before -lc. If gcc already passes -lc
7804      # to ld, don't add -lc before -lgcc.
7805      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7806echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7807      $rm conftest*
7808      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7809
7810      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7811  (eval $ac_compile) 2>&5
7812  ac_status=$?
7813  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7814  (exit $ac_status); } 2>conftest.err; then
7815        soname=conftest
7816        lib=conftest
7817        libobjs=conftest.$ac_objext
7818        deplibs=
7819        wl=$lt_prog_compiler_wl
7820	pic_flag=$lt_prog_compiler_pic
7821        compiler_flags=-v
7822        linker_flags=-v
7823        verstring=
7824        output_objdir=.
7825        libname=conftest
7826        lt_save_allow_undefined_flag=$allow_undefined_flag
7827        allow_undefined_flag=
7828        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7829  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7830  ac_status=$?
7831  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7832  (exit $ac_status); }
7833        then
7834	  archive_cmds_need_lc=no
7835        else
7836	  archive_cmds_need_lc=yes
7837        fi
7838        allow_undefined_flag=$lt_save_allow_undefined_flag
7839      else
7840        cat conftest.err 1>&5
7841      fi
7842      $rm conftest*
7843      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7844echo "${ECHO_T}$archive_cmds_need_lc" >&6
7845      ;;
7846    esac
7847  fi
7848  ;;
7849esac
7850
7851echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7852echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7853library_names_spec=
7854libname_spec='lib$name'
7855soname_spec=
7856shrext_cmds=".so"
7857postinstall_cmds=
7858postuninstall_cmds=
7859finish_cmds=
7860finish_eval=
7861shlibpath_var=
7862shlibpath_overrides_runpath=unknown
7863version_type=none
7864dynamic_linker="$host_os ld.so"
7865sys_lib_dlsearch_path_spec="/lib /usr/lib"
7866if test "$GCC" = yes; then
7867  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7868  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7869    # if the path contains ";" then we assume it to be the separator
7870    # otherwise default to the standard path separator (i.e. ":") - it is
7871    # assumed that no part of a normal pathname contains ";" but that should
7872    # okay in the real world where ";" in dirpaths is itself problematic.
7873    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7874  else
7875    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7876  fi
7877else
7878  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7879fi
7880need_lib_prefix=unknown
7881hardcode_into_libs=no
7882
7883# when you set need_version to no, make sure it does not cause -set_version
7884# flags to be left without arguments
7885need_version=unknown
7886
7887case $host_os in
7888aix3*)
7889  version_type=linux
7890  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7891  shlibpath_var=LIBPATH
7892
7893  # AIX 3 has no versioning support, so we append a major version to the name.
7894  soname_spec='${libname}${release}${shared_ext}$major'
7895  ;;
7896
7897aix4* | aix5*)
7898  version_type=linux
7899  need_lib_prefix=no
7900  need_version=no
7901  hardcode_into_libs=yes
7902  if test "$host_cpu" = ia64; then
7903    # AIX 5 supports IA64
7904    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7905    shlibpath_var=LD_LIBRARY_PATH
7906  else
7907    # With GCC up to 2.95.x, collect2 would create an import file
7908    # for dependence libraries.  The import file would start with
7909    # the line `#! .'.  This would cause the generated library to
7910    # depend on `.', always an invalid library.  This was fixed in
7911    # development snapshots of GCC prior to 3.0.
7912    case $host_os in
7913      aix4 | aix4.[01] | aix4.[01].*)
7914      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7915	   echo ' yes '
7916	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7917	:
7918      else
7919	can_build_shared=no
7920      fi
7921      ;;
7922    esac
7923    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7924    # soname into executable. Probably we can add versioning support to
7925    # collect2, so additional links can be useful in future.
7926    if test "$aix_use_runtimelinking" = yes; then
7927      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7928      # instead of lib<name>.a to let people know that these are not
7929      # typical AIX shared libraries.
7930      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7931    else
7932      # We preserve .a as extension for shared libraries through AIX4.2
7933      # and later when we are not doing run time linking.
7934      library_names_spec='${libname}${release}.a $libname.a'
7935      soname_spec='${libname}${release}${shared_ext}$major'
7936    fi
7937    shlibpath_var=LIBPATH
7938  fi
7939  ;;
7940
7941amigaos*)
7942  library_names_spec='$libname.ixlibrary $libname.a'
7943  # Create ${libname}_ixlibrary.a entries in /sys/libs.
7944  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'
7945  ;;
7946
7947beos*)
7948  library_names_spec='${libname}${shared_ext}'
7949  dynamic_linker="$host_os ld.so"
7950  shlibpath_var=LIBRARY_PATH
7951  ;;
7952
7953bsdi[45]*)
7954  version_type=linux
7955  need_version=no
7956  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7957  soname_spec='${libname}${release}${shared_ext}$major'
7958  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7959  shlibpath_var=LD_LIBRARY_PATH
7960  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7961  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7962  # the default ld.so.conf also contains /usr/contrib/lib and
7963  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7964  # libtool to hard-code these into programs
7965  ;;
7966
7967cygwin* | mingw* | pw32*)
7968  version_type=windows
7969  shrext_cmds=".dll"
7970  need_version=no
7971  need_lib_prefix=no
7972
7973  case $GCC,$host_os in
7974  yes,cygwin* | yes,mingw* | yes,pw32*)
7975    library_names_spec='$libname.dll.a'
7976    # DLL is installed to $(libdir)/../bin by postinstall_cmds
7977    postinstall_cmds='base_file=`basename \${file}`~
7978      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7979      dldir=$destdir/`dirname \$dlpath`~
7980      test -d \$dldir || mkdir -p \$dldir~
7981      $install_prog $dir/$dlname \$dldir/$dlname~
7982      chmod a+x \$dldir/$dlname'
7983    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7984      dlpath=$dir/\$dldll~
7985       $rm \$dlpath'
7986    shlibpath_overrides_runpath=yes
7987
7988    case $host_os in
7989    cygwin*)
7990      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7991      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7992      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7993      ;;
7994    mingw*)
7995      # MinGW DLLs use traditional 'lib' prefix
7996      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7997      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7998      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7999        # It is most probably a Windows format PATH printed by
8000        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8001        # path with ; separators, and with drive letters. We can handle the
8002        # drive letters (cygwin fileutils understands them), so leave them,
8003        # especially as we might pass files found there to a mingw objdump,
8004        # which wouldn't understand a cygwinified path. Ahh.
8005        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8006      else
8007        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8008      fi
8009      ;;
8010    pw32*)
8011      # pw32 DLLs use 'pw' prefix rather than 'lib'
8012      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8013      ;;
8014    esac
8015    ;;
8016
8017  *)
8018    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8019    ;;
8020  esac
8021  dynamic_linker='Win32 ld.exe'
8022  # FIXME: first we should search . and the directory the executable is in
8023  shlibpath_var=PATH
8024  ;;
8025
8026darwin* | rhapsody*)
8027  dynamic_linker="$host_os dyld"
8028  version_type=darwin
8029  need_lib_prefix=no
8030  need_version=no
8031  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8032  soname_spec='${libname}${release}${major}$shared_ext'
8033  shlibpath_overrides_runpath=yes
8034  shlibpath_var=DYLD_LIBRARY_PATH
8035  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8036  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8037  if test "$GCC" = yes; then
8038    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"`
8039  else
8040    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8041  fi
8042  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8043  ;;
8044
8045dgux*)
8046  version_type=linux
8047  need_lib_prefix=no
8048  need_version=no
8049  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8050  soname_spec='${libname}${release}${shared_ext}$major'
8051  shlibpath_var=LD_LIBRARY_PATH
8052  ;;
8053
8054freebsd1*)
8055  dynamic_linker=no
8056  ;;
8057
8058kfreebsd*-gnu)
8059  version_type=linux
8060  need_lib_prefix=no
8061  need_version=no
8062  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8063  soname_spec='${libname}${release}${shared_ext}$major'
8064  shlibpath_var=LD_LIBRARY_PATH
8065  shlibpath_overrides_runpath=no
8066  hardcode_into_libs=yes
8067  dynamic_linker='GNU ld.so'
8068  ;;
8069
8070freebsd* | dragonfly*)
8071  # DragonFly does not have aout.  When/if they implement a new
8072  # versioning mechanism, adjust this.
8073  if test -x /usr/bin/objformat; then
8074    objformat=`/usr/bin/objformat`
8075  else
8076    case $host_os in
8077    freebsd[123]*) objformat=aout ;;
8078    *) objformat=elf ;;
8079    esac
8080  fi
8081  version_type=freebsd-$objformat
8082  case $version_type in
8083    freebsd-elf*)
8084      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8085      need_version=no
8086      need_lib_prefix=no
8087      ;;
8088    freebsd-*)
8089      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8090      need_version=yes
8091      ;;
8092  esac
8093  shlibpath_var=LD_LIBRARY_PATH
8094  case $host_os in
8095  freebsd2*)
8096    shlibpath_overrides_runpath=yes
8097    ;;
8098  freebsd3.[01]* | freebsdelf3.[01]*)
8099    shlibpath_overrides_runpath=yes
8100    hardcode_into_libs=yes
8101    ;;
8102  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8103  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8104    shlibpath_overrides_runpath=no
8105    hardcode_into_libs=yes
8106    ;;
8107  freebsd*) # from 4.6 on
8108    shlibpath_overrides_runpath=yes
8109    hardcode_into_libs=yes
8110    ;;
8111  esac
8112  ;;
8113
8114gnu*)
8115  version_type=linux
8116  need_lib_prefix=no
8117  need_version=no
8118  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8119  soname_spec='${libname}${release}${shared_ext}$major'
8120  shlibpath_var=LD_LIBRARY_PATH
8121  hardcode_into_libs=yes
8122  ;;
8123
8124hpux9* | hpux10* | hpux11*)
8125  # Give a soname corresponding to the major version so that dld.sl refuses to
8126  # link against other versions.
8127  version_type=sunos
8128  need_lib_prefix=no
8129  need_version=no
8130  case $host_cpu in
8131  ia64*)
8132    shrext_cmds='.so'
8133    hardcode_into_libs=yes
8134    dynamic_linker="$host_os dld.so"
8135    shlibpath_var=LD_LIBRARY_PATH
8136    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8137    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8138    soname_spec='${libname}${release}${shared_ext}$major'
8139    if test "X$HPUX_IA64_MODE" = X32; then
8140      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8141    else
8142      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8143    fi
8144    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8145    ;;
8146   hppa*64*)
8147     shrext_cmds='.sl'
8148     hardcode_into_libs=yes
8149     dynamic_linker="$host_os dld.sl"
8150     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8151     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8152     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8153     soname_spec='${libname}${release}${shared_ext}$major'
8154     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8155     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8156     ;;
8157   *)
8158    shrext_cmds='.sl'
8159    dynamic_linker="$host_os dld.sl"
8160    shlibpath_var=SHLIB_PATH
8161    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8162    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8163    soname_spec='${libname}${release}${shared_ext}$major'
8164    ;;
8165  esac
8166  # HP-UX runs *really* slowly unless shared libraries are mode 555.
8167  postinstall_cmds='chmod 555 $lib'
8168  ;;
8169
8170interix3*)
8171  version_type=linux
8172  need_lib_prefix=no
8173  need_version=no
8174  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8175  soname_spec='${libname}${release}${shared_ext}$major'
8176  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8177  shlibpath_var=LD_LIBRARY_PATH
8178  shlibpath_overrides_runpath=no
8179  hardcode_into_libs=yes
8180  ;;
8181
8182irix5* | irix6* | nonstopux*)
8183  case $host_os in
8184    nonstopux*) version_type=nonstopux ;;
8185    *)
8186	if test "$lt_cv_prog_gnu_ld" = yes; then
8187		version_type=linux
8188	else
8189		version_type=irix
8190	fi ;;
8191  esac
8192  need_lib_prefix=no
8193  need_version=no
8194  soname_spec='${libname}${release}${shared_ext}$major'
8195  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8196  case $host_os in
8197  irix5* | nonstopux*)
8198    libsuff= shlibsuff=
8199    ;;
8200  *)
8201    case $LD in # libtool.m4 will add one of these switches to LD
8202    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8203      libsuff= shlibsuff= libmagic=32-bit;;
8204    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8205      libsuff=32 shlibsuff=N32 libmagic=N32;;
8206    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8207      libsuff=64 shlibsuff=64 libmagic=64-bit;;
8208    *) libsuff= shlibsuff= libmagic=never-match;;
8209    esac
8210    ;;
8211  esac
8212  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8213  shlibpath_overrides_runpath=no
8214  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8215  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8216  hardcode_into_libs=yes
8217  ;;
8218
8219# No shared lib support for Linux oldld, aout, or coff.
8220linux*oldld* | linux*aout* | linux*coff*)
8221  dynamic_linker=no
8222  ;;
8223
8224# This must be Linux ELF.
8225linux*)
8226  version_type=linux
8227  need_lib_prefix=no
8228  need_version=no
8229  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8230  soname_spec='${libname}${release}${shared_ext}$major'
8231  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8232  shlibpath_var=LD_LIBRARY_PATH
8233  shlibpath_overrides_runpath=no
8234  # This implies no fast_install, which is unacceptable.
8235  # Some rework will be needed to allow for fast_install
8236  # before this can be enabled.
8237  hardcode_into_libs=yes
8238
8239  # find out which ABI we are using
8240  libsuff=
8241  case "$host_cpu" in
8242  x86_64*|s390x*|powerpc64*)
8243    echo '#line 8243 "configure"' > conftest.$ac_ext
8244    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8245  (eval $ac_compile) 2>&5
8246  ac_status=$?
8247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8248  (exit $ac_status); }; then
8249      case `/usr/bin/file conftest.$ac_objext` in
8250      *64-bit*)
8251        libsuff=64
8252        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
8253        ;;
8254      esac
8255    fi
8256    rm -rf conftest*
8257    ;;
8258  esac
8259
8260  # Append ld.so.conf contents to the search path
8261  if test -f /etc/ld.so.conf; then
8262    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8263    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
8264  fi
8265
8266  # We used to test for /lib/ld.so.1 and disable shared libraries on
8267  # powerpc, because MkLinux only supported shared libraries with the
8268  # GNU dynamic linker.  Since this was broken with cross compilers,
8269  # most powerpc-linux boxes support dynamic linking these days and
8270  # people can always --disable-shared, the test was removed, and we
8271  # assume the GNU/Linux dynamic linker is in use.
8272  dynamic_linker='GNU/Linux ld.so'
8273  ;;
8274
8275knetbsd*-gnu)
8276  version_type=linux
8277  need_lib_prefix=no
8278  need_version=no
8279  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8280  soname_spec='${libname}${release}${shared_ext}$major'
8281  shlibpath_var=LD_LIBRARY_PATH
8282  shlibpath_overrides_runpath=no
8283  hardcode_into_libs=yes
8284  dynamic_linker='GNU ld.so'
8285  ;;
8286
8287netbsd*)
8288  version_type=sunos
8289  need_lib_prefix=no
8290  need_version=no
8291  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8292    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8293    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8294    dynamic_linker='NetBSD (a.out) ld.so'
8295  else
8296    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8297    soname_spec='${libname}${release}${shared_ext}$major'
8298    dynamic_linker='NetBSD ld.elf_so'
8299  fi
8300  shlibpath_var=LD_LIBRARY_PATH
8301  shlibpath_overrides_runpath=yes
8302  hardcode_into_libs=yes
8303  ;;
8304
8305newsos6)
8306  version_type=linux
8307  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8308  shlibpath_var=LD_LIBRARY_PATH
8309  shlibpath_overrides_runpath=yes
8310  ;;
8311
8312nto-qnx*)
8313  version_type=linux
8314  need_lib_prefix=no
8315  need_version=no
8316  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8317  soname_spec='${libname}${release}${shared_ext}$major'
8318  shlibpath_var=LD_LIBRARY_PATH
8319  shlibpath_overrides_runpath=yes
8320  ;;
8321
8322openbsd*)
8323  version_type=sunos
8324  sys_lib_dlsearch_path_spec="/usr/lib"
8325  need_lib_prefix=no
8326  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8327  case $host_os in
8328    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8329    *)                         need_version=no  ;;
8330  esac
8331  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8332  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8333  shlibpath_var=LD_LIBRARY_PATH
8334  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8335    case $host_os in
8336      openbsd2.[89] | openbsd2.[89].*)
8337	shlibpath_overrides_runpath=no
8338	;;
8339      *)
8340	shlibpath_overrides_runpath=yes
8341	;;
8342      esac
8343  else
8344    shlibpath_overrides_runpath=yes
8345  fi
8346  ;;
8347
8348os2*)
8349  libname_spec='$name'
8350  shrext_cmds=".dll"
8351  need_lib_prefix=no
8352  library_names_spec='$libname${shared_ext} $libname.a'
8353  dynamic_linker='OS/2 ld.exe'
8354  shlibpath_var=LIBPATH
8355  ;;
8356
8357osf3* | osf4* | osf5*)
8358  version_type=osf
8359  need_lib_prefix=no
8360  need_version=no
8361  soname_spec='${libname}${release}${shared_ext}$major'
8362  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8363  shlibpath_var=LD_LIBRARY_PATH
8364  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8365  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8366  ;;
8367
8368solaris*)
8369  version_type=linux
8370  need_lib_prefix=no
8371  need_version=no
8372  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8373  soname_spec='${libname}${release}${shared_ext}$major'
8374  shlibpath_var=LD_LIBRARY_PATH
8375  shlibpath_overrides_runpath=yes
8376  hardcode_into_libs=yes
8377  # ldd complains unless libraries are executable
8378  postinstall_cmds='chmod +x $lib'
8379  ;;
8380
8381sunos4*)
8382  version_type=sunos
8383  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8384  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8385  shlibpath_var=LD_LIBRARY_PATH
8386  shlibpath_overrides_runpath=yes
8387  if test "$with_gnu_ld" = yes; then
8388    need_lib_prefix=no
8389  fi
8390  need_version=yes
8391  ;;
8392
8393sysv4 | sysv4.3*)
8394  version_type=linux
8395  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8396  soname_spec='${libname}${release}${shared_ext}$major'
8397  shlibpath_var=LD_LIBRARY_PATH
8398  case $host_vendor in
8399    sni)
8400      shlibpath_overrides_runpath=no
8401      need_lib_prefix=no
8402      export_dynamic_flag_spec='${wl}-Blargedynsym'
8403      runpath_var=LD_RUN_PATH
8404      ;;
8405    siemens)
8406      need_lib_prefix=no
8407      ;;
8408    motorola)
8409      need_lib_prefix=no
8410      need_version=no
8411      shlibpath_overrides_runpath=no
8412      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8413      ;;
8414  esac
8415  ;;
8416
8417sysv4*MP*)
8418  if test -d /usr/nec ;then
8419    version_type=linux
8420    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8421    soname_spec='$libname${shared_ext}.$major'
8422    shlibpath_var=LD_LIBRARY_PATH
8423  fi
8424  ;;
8425
8426sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8427  version_type=freebsd-elf
8428  need_lib_prefix=no
8429  need_version=no
8430  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8431  soname_spec='${libname}${release}${shared_ext}$major'
8432  shlibpath_var=LD_LIBRARY_PATH
8433  hardcode_into_libs=yes
8434  if test "$with_gnu_ld" = yes; then
8435    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8436    shlibpath_overrides_runpath=no
8437  else
8438    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8439    shlibpath_overrides_runpath=yes
8440    case $host_os in
8441      sco3.2v5*)
8442        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8443	;;
8444    esac
8445  fi
8446  sys_lib_dlsearch_path_spec='/usr/lib'
8447  ;;
8448
8449uts4*)
8450  version_type=linux
8451  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8452  soname_spec='${libname}${release}${shared_ext}$major'
8453  shlibpath_var=LD_LIBRARY_PATH
8454  ;;
8455
8456*)
8457  dynamic_linker=no
8458  ;;
8459esac
8460echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8461echo "${ECHO_T}$dynamic_linker" >&6
8462test "$dynamic_linker" = no && can_build_shared=no
8463
8464variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8465if test "$GCC" = yes; then
8466  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8467fi
8468
8469echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8470echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8471hardcode_action=
8472if test -n "$hardcode_libdir_flag_spec" || \
8473   test -n "$runpath_var" || \
8474   test "X$hardcode_automatic" = "Xyes" ; then
8475
8476  # We can hardcode non-existant directories.
8477  if test "$hardcode_direct" != no &&
8478     # If the only mechanism to avoid hardcoding is shlibpath_var, we
8479     # have to relink, otherwise we might link with an installed library
8480     # when we should be linking with a yet-to-be-installed one
8481     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8482     test "$hardcode_minus_L" != no; then
8483    # Linking always hardcodes the temporary library directory.
8484    hardcode_action=relink
8485  else
8486    # We can link without hardcoding, and we can hardcode nonexisting dirs.
8487    hardcode_action=immediate
8488  fi
8489else
8490  # We cannot hardcode anything, or else we can only hardcode existing
8491  # directories.
8492  hardcode_action=unsupported
8493fi
8494echo "$as_me:$LINENO: result: $hardcode_action" >&5
8495echo "${ECHO_T}$hardcode_action" >&6
8496
8497if test "$hardcode_action" = relink; then
8498  # Fast installation is not supported
8499  enable_fast_install=no
8500elif test "$shlibpath_overrides_runpath" = yes ||
8501     test "$enable_shared" = no; then
8502  # Fast installation is not necessary
8503  enable_fast_install=needless
8504fi
8505
8506striplib=
8507old_striplib=
8508echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8509echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8510if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8511  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8512  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8513  echo "$as_me:$LINENO: result: yes" >&5
8514echo "${ECHO_T}yes" >&6
8515else
8516# FIXME - insert some real tests, host_os isn't really good enough
8517  case $host_os in
8518   darwin*)
8519       if test -n "$STRIP" ; then
8520         striplib="$STRIP -x"
8521         echo "$as_me:$LINENO: result: yes" >&5
8522echo "${ECHO_T}yes" >&6
8523       else
8524  echo "$as_me:$LINENO: result: no" >&5
8525echo "${ECHO_T}no" >&6
8526fi
8527       ;;
8528   *)
8529  echo "$as_me:$LINENO: result: no" >&5
8530echo "${ECHO_T}no" >&6
8531    ;;
8532  esac
8533fi
8534
8535if test "x$enable_dlopen" != xyes; then
8536  enable_dlopen=unknown
8537  enable_dlopen_self=unknown
8538  enable_dlopen_self_static=unknown
8539else
8540  lt_cv_dlopen=no
8541  lt_cv_dlopen_libs=
8542
8543  case $host_os in
8544  beos*)
8545    lt_cv_dlopen="load_add_on"
8546    lt_cv_dlopen_libs=
8547    lt_cv_dlopen_self=yes
8548    ;;
8549
8550  mingw* | pw32*)
8551    lt_cv_dlopen="LoadLibrary"
8552    lt_cv_dlopen_libs=
8553   ;;
8554
8555  cygwin*)
8556    lt_cv_dlopen="dlopen"
8557    lt_cv_dlopen_libs=
8558   ;;
8559
8560  darwin*)
8561  # if libdl is installed we need to link against it
8562    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8563echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8564if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8565  echo $ECHO_N "(cached) $ECHO_C" >&6
8566else
8567  ac_check_lib_save_LIBS=$LIBS
8568LIBS="-ldl  $LIBS"
8569cat >conftest.$ac_ext <<_ACEOF
8570/* confdefs.h.  */
8571_ACEOF
8572cat confdefs.h >>conftest.$ac_ext
8573cat >>conftest.$ac_ext <<_ACEOF
8574/* end confdefs.h.  */
8575
8576/* Override any gcc2 internal prototype to avoid an error.  */
8577#ifdef __cplusplus
8578extern "C"
8579#endif
8580/* We use char because int might match the return type of a gcc2
8581   builtin and then its argument prototype would still apply.  */
8582char dlopen ();
8583int
8584main ()
8585{
8586dlopen ();
8587  ;
8588  return 0;
8589}
8590_ACEOF
8591rm -f conftest.$ac_objext conftest$ac_exeext
8592if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8593  (eval $ac_link) 2>conftest.er1
8594  ac_status=$?
8595  grep -v '^ *+' conftest.er1 >conftest.err
8596  rm -f conftest.er1
8597  cat conftest.err >&5
8598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8599  (exit $ac_status); } &&
8600	 { ac_try='test -z "$ac_c_werror_flag"
8601			 || test ! -s conftest.err'
8602  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8603  (eval $ac_try) 2>&5
8604  ac_status=$?
8605  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8606  (exit $ac_status); }; } &&
8607	 { ac_try='test -s conftest$ac_exeext'
8608  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8609  (eval $ac_try) 2>&5
8610  ac_status=$?
8611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612  (exit $ac_status); }; }; then
8613  ac_cv_lib_dl_dlopen=yes
8614else
8615  echo "$as_me: failed program was:" >&5
8616sed 's/^/| /' conftest.$ac_ext >&5
8617
8618ac_cv_lib_dl_dlopen=no
8619fi
8620rm -f conftest.err conftest.$ac_objext \
8621      conftest$ac_exeext conftest.$ac_ext
8622LIBS=$ac_check_lib_save_LIBS
8623fi
8624echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8625echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8626if test $ac_cv_lib_dl_dlopen = yes; then
8627  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8628else
8629
8630    lt_cv_dlopen="dyld"
8631    lt_cv_dlopen_libs=
8632    lt_cv_dlopen_self=yes
8633
8634fi
8635
8636   ;;
8637
8638  *)
8639    echo "$as_me:$LINENO: checking for shl_load" >&5
8640echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8641if test "${ac_cv_func_shl_load+set}" = set; then
8642  echo $ECHO_N "(cached) $ECHO_C" >&6
8643else
8644  cat >conftest.$ac_ext <<_ACEOF
8645/* confdefs.h.  */
8646_ACEOF
8647cat confdefs.h >>conftest.$ac_ext
8648cat >>conftest.$ac_ext <<_ACEOF
8649/* end confdefs.h.  */
8650/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8651   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8652#define shl_load innocuous_shl_load
8653
8654/* System header to define __stub macros and hopefully few prototypes,
8655    which can conflict with char shl_load (); below.
8656    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8657    <limits.h> exists even on freestanding compilers.  */
8658
8659#ifdef __STDC__
8660# include <limits.h>
8661#else
8662# include <assert.h>
8663#endif
8664
8665#undef shl_load
8666
8667/* Override any gcc2 internal prototype to avoid an error.  */
8668#ifdef __cplusplus
8669extern "C"
8670{
8671#endif
8672/* We use char because int might match the return type of a gcc2
8673   builtin and then its argument prototype would still apply.  */
8674char shl_load ();
8675/* The GNU C library defines this for functions which it implements
8676    to always fail with ENOSYS.  Some functions are actually named
8677    something starting with __ and the normal name is an alias.  */
8678#if defined (__stub_shl_load) || defined (__stub___shl_load)
8679choke me
8680#else
8681char (*f) () = shl_load;
8682#endif
8683#ifdef __cplusplus
8684}
8685#endif
8686
8687int
8688main ()
8689{
8690return f != shl_load;
8691  ;
8692  return 0;
8693}
8694_ACEOF
8695rm -f conftest.$ac_objext conftest$ac_exeext
8696if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8697  (eval $ac_link) 2>conftest.er1
8698  ac_status=$?
8699  grep -v '^ *+' conftest.er1 >conftest.err
8700  rm -f conftest.er1
8701  cat conftest.err >&5
8702  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8703  (exit $ac_status); } &&
8704	 { ac_try='test -z "$ac_c_werror_flag"
8705			 || test ! -s conftest.err'
8706  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8707  (eval $ac_try) 2>&5
8708  ac_status=$?
8709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710  (exit $ac_status); }; } &&
8711	 { ac_try='test -s conftest$ac_exeext'
8712  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8713  (eval $ac_try) 2>&5
8714  ac_status=$?
8715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716  (exit $ac_status); }; }; then
8717  ac_cv_func_shl_load=yes
8718else
8719  echo "$as_me: failed program was:" >&5
8720sed 's/^/| /' conftest.$ac_ext >&5
8721
8722ac_cv_func_shl_load=no
8723fi
8724rm -f conftest.err conftest.$ac_objext \
8725      conftest$ac_exeext conftest.$ac_ext
8726fi
8727echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8728echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8729if test $ac_cv_func_shl_load = yes; then
8730  lt_cv_dlopen="shl_load"
8731else
8732  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8733echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8734if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8735  echo $ECHO_N "(cached) $ECHO_C" >&6
8736else
8737  ac_check_lib_save_LIBS=$LIBS
8738LIBS="-ldld  $LIBS"
8739cat >conftest.$ac_ext <<_ACEOF
8740/* confdefs.h.  */
8741_ACEOF
8742cat confdefs.h >>conftest.$ac_ext
8743cat >>conftest.$ac_ext <<_ACEOF
8744/* end confdefs.h.  */
8745
8746/* Override any gcc2 internal prototype to avoid an error.  */
8747#ifdef __cplusplus
8748extern "C"
8749#endif
8750/* We use char because int might match the return type of a gcc2
8751   builtin and then its argument prototype would still apply.  */
8752char shl_load ();
8753int
8754main ()
8755{
8756shl_load ();
8757  ;
8758  return 0;
8759}
8760_ACEOF
8761rm -f conftest.$ac_objext conftest$ac_exeext
8762if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8763  (eval $ac_link) 2>conftest.er1
8764  ac_status=$?
8765  grep -v '^ *+' conftest.er1 >conftest.err
8766  rm -f conftest.er1
8767  cat conftest.err >&5
8768  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8769  (exit $ac_status); } &&
8770	 { ac_try='test -z "$ac_c_werror_flag"
8771			 || test ! -s conftest.err'
8772  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8773  (eval $ac_try) 2>&5
8774  ac_status=$?
8775  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8776  (exit $ac_status); }; } &&
8777	 { ac_try='test -s conftest$ac_exeext'
8778  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8779  (eval $ac_try) 2>&5
8780  ac_status=$?
8781  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8782  (exit $ac_status); }; }; then
8783  ac_cv_lib_dld_shl_load=yes
8784else
8785  echo "$as_me: failed program was:" >&5
8786sed 's/^/| /' conftest.$ac_ext >&5
8787
8788ac_cv_lib_dld_shl_load=no
8789fi
8790rm -f conftest.err conftest.$ac_objext \
8791      conftest$ac_exeext conftest.$ac_ext
8792LIBS=$ac_check_lib_save_LIBS
8793fi
8794echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8795echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8796if test $ac_cv_lib_dld_shl_load = yes; then
8797  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8798else
8799  echo "$as_me:$LINENO: checking for dlopen" >&5
8800echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8801if test "${ac_cv_func_dlopen+set}" = set; then
8802  echo $ECHO_N "(cached) $ECHO_C" >&6
8803else
8804  cat >conftest.$ac_ext <<_ACEOF
8805/* confdefs.h.  */
8806_ACEOF
8807cat confdefs.h >>conftest.$ac_ext
8808cat >>conftest.$ac_ext <<_ACEOF
8809/* end confdefs.h.  */
8810/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8811   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8812#define dlopen innocuous_dlopen
8813
8814/* System header to define __stub macros and hopefully few prototypes,
8815    which can conflict with char dlopen (); below.
8816    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8817    <limits.h> exists even on freestanding compilers.  */
8818
8819#ifdef __STDC__
8820# include <limits.h>
8821#else
8822# include <assert.h>
8823#endif
8824
8825#undef dlopen
8826
8827/* Override any gcc2 internal prototype to avoid an error.  */
8828#ifdef __cplusplus
8829extern "C"
8830{
8831#endif
8832/* We use char because int might match the return type of a gcc2
8833   builtin and then its argument prototype would still apply.  */
8834char dlopen ();
8835/* The GNU C library defines this for functions which it implements
8836    to always fail with ENOSYS.  Some functions are actually named
8837    something starting with __ and the normal name is an alias.  */
8838#if defined (__stub_dlopen) || defined (__stub___dlopen)
8839choke me
8840#else
8841char (*f) () = dlopen;
8842#endif
8843#ifdef __cplusplus
8844}
8845#endif
8846
8847int
8848main ()
8849{
8850return f != dlopen;
8851  ;
8852  return 0;
8853}
8854_ACEOF
8855rm -f conftest.$ac_objext conftest$ac_exeext
8856if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8857  (eval $ac_link) 2>conftest.er1
8858  ac_status=$?
8859  grep -v '^ *+' conftest.er1 >conftest.err
8860  rm -f conftest.er1
8861  cat conftest.err >&5
8862  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8863  (exit $ac_status); } &&
8864	 { ac_try='test -z "$ac_c_werror_flag"
8865			 || test ! -s conftest.err'
8866  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8867  (eval $ac_try) 2>&5
8868  ac_status=$?
8869  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8870  (exit $ac_status); }; } &&
8871	 { ac_try='test -s conftest$ac_exeext'
8872  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8873  (eval $ac_try) 2>&5
8874  ac_status=$?
8875  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8876  (exit $ac_status); }; }; then
8877  ac_cv_func_dlopen=yes
8878else
8879  echo "$as_me: failed program was:" >&5
8880sed 's/^/| /' conftest.$ac_ext >&5
8881
8882ac_cv_func_dlopen=no
8883fi
8884rm -f conftest.err conftest.$ac_objext \
8885      conftest$ac_exeext conftest.$ac_ext
8886fi
8887echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8888echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8889if test $ac_cv_func_dlopen = yes; then
8890  lt_cv_dlopen="dlopen"
8891else
8892  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8893echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8894if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8895  echo $ECHO_N "(cached) $ECHO_C" >&6
8896else
8897  ac_check_lib_save_LIBS=$LIBS
8898LIBS="-ldl  $LIBS"
8899cat >conftest.$ac_ext <<_ACEOF
8900/* confdefs.h.  */
8901_ACEOF
8902cat confdefs.h >>conftest.$ac_ext
8903cat >>conftest.$ac_ext <<_ACEOF
8904/* end confdefs.h.  */
8905
8906/* Override any gcc2 internal prototype to avoid an error.  */
8907#ifdef __cplusplus
8908extern "C"
8909#endif
8910/* We use char because int might match the return type of a gcc2
8911   builtin and then its argument prototype would still apply.  */
8912char dlopen ();
8913int
8914main ()
8915{
8916dlopen ();
8917  ;
8918  return 0;
8919}
8920_ACEOF
8921rm -f conftest.$ac_objext conftest$ac_exeext
8922if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8923  (eval $ac_link) 2>conftest.er1
8924  ac_status=$?
8925  grep -v '^ *+' conftest.er1 >conftest.err
8926  rm -f conftest.er1
8927  cat conftest.err >&5
8928  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8929  (exit $ac_status); } &&
8930	 { ac_try='test -z "$ac_c_werror_flag"
8931			 || test ! -s conftest.err'
8932  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8933  (eval $ac_try) 2>&5
8934  ac_status=$?
8935  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8936  (exit $ac_status); }; } &&
8937	 { ac_try='test -s conftest$ac_exeext'
8938  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8939  (eval $ac_try) 2>&5
8940  ac_status=$?
8941  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8942  (exit $ac_status); }; }; then
8943  ac_cv_lib_dl_dlopen=yes
8944else
8945  echo "$as_me: failed program was:" >&5
8946sed 's/^/| /' conftest.$ac_ext >&5
8947
8948ac_cv_lib_dl_dlopen=no
8949fi
8950rm -f conftest.err conftest.$ac_objext \
8951      conftest$ac_exeext conftest.$ac_ext
8952LIBS=$ac_check_lib_save_LIBS
8953fi
8954echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8955echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8956if test $ac_cv_lib_dl_dlopen = yes; then
8957  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8958else
8959  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8960echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8961if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8962  echo $ECHO_N "(cached) $ECHO_C" >&6
8963else
8964  ac_check_lib_save_LIBS=$LIBS
8965LIBS="-lsvld  $LIBS"
8966cat >conftest.$ac_ext <<_ACEOF
8967/* confdefs.h.  */
8968_ACEOF
8969cat confdefs.h >>conftest.$ac_ext
8970cat >>conftest.$ac_ext <<_ACEOF
8971/* end confdefs.h.  */
8972
8973/* Override any gcc2 internal prototype to avoid an error.  */
8974#ifdef __cplusplus
8975extern "C"
8976#endif
8977/* We use char because int might match the return type of a gcc2
8978   builtin and then its argument prototype would still apply.  */
8979char dlopen ();
8980int
8981main ()
8982{
8983dlopen ();
8984  ;
8985  return 0;
8986}
8987_ACEOF
8988rm -f conftest.$ac_objext conftest$ac_exeext
8989if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8990  (eval $ac_link) 2>conftest.er1
8991  ac_status=$?
8992  grep -v '^ *+' conftest.er1 >conftest.err
8993  rm -f conftest.er1
8994  cat conftest.err >&5
8995  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8996  (exit $ac_status); } &&
8997	 { ac_try='test -z "$ac_c_werror_flag"
8998			 || test ! -s conftest.err'
8999  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9000  (eval $ac_try) 2>&5
9001  ac_status=$?
9002  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9003  (exit $ac_status); }; } &&
9004	 { ac_try='test -s conftest$ac_exeext'
9005  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9006  (eval $ac_try) 2>&5
9007  ac_status=$?
9008  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9009  (exit $ac_status); }; }; then
9010  ac_cv_lib_svld_dlopen=yes
9011else
9012  echo "$as_me: failed program was:" >&5
9013sed 's/^/| /' conftest.$ac_ext >&5
9014
9015ac_cv_lib_svld_dlopen=no
9016fi
9017rm -f conftest.err conftest.$ac_objext \
9018      conftest$ac_exeext conftest.$ac_ext
9019LIBS=$ac_check_lib_save_LIBS
9020fi
9021echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9022echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9023if test $ac_cv_lib_svld_dlopen = yes; then
9024  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9025else
9026  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9027echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9028if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9029  echo $ECHO_N "(cached) $ECHO_C" >&6
9030else
9031  ac_check_lib_save_LIBS=$LIBS
9032LIBS="-ldld  $LIBS"
9033cat >conftest.$ac_ext <<_ACEOF
9034/* confdefs.h.  */
9035_ACEOF
9036cat confdefs.h >>conftest.$ac_ext
9037cat >>conftest.$ac_ext <<_ACEOF
9038/* end confdefs.h.  */
9039
9040/* Override any gcc2 internal prototype to avoid an error.  */
9041#ifdef __cplusplus
9042extern "C"
9043#endif
9044/* We use char because int might match the return type of a gcc2
9045   builtin and then its argument prototype would still apply.  */
9046char dld_link ();
9047int
9048main ()
9049{
9050dld_link ();
9051  ;
9052  return 0;
9053}
9054_ACEOF
9055rm -f conftest.$ac_objext conftest$ac_exeext
9056if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9057  (eval $ac_link) 2>conftest.er1
9058  ac_status=$?
9059  grep -v '^ *+' conftest.er1 >conftest.err
9060  rm -f conftest.er1
9061  cat conftest.err >&5
9062  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9063  (exit $ac_status); } &&
9064	 { ac_try='test -z "$ac_c_werror_flag"
9065			 || test ! -s conftest.err'
9066  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9067  (eval $ac_try) 2>&5
9068  ac_status=$?
9069  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9070  (exit $ac_status); }; } &&
9071	 { ac_try='test -s conftest$ac_exeext'
9072  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9073  (eval $ac_try) 2>&5
9074  ac_status=$?
9075  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9076  (exit $ac_status); }; }; then
9077  ac_cv_lib_dld_dld_link=yes
9078else
9079  echo "$as_me: failed program was:" >&5
9080sed 's/^/| /' conftest.$ac_ext >&5
9081
9082ac_cv_lib_dld_dld_link=no
9083fi
9084rm -f conftest.err conftest.$ac_objext \
9085      conftest$ac_exeext conftest.$ac_ext
9086LIBS=$ac_check_lib_save_LIBS
9087fi
9088echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9089echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9090if test $ac_cv_lib_dld_dld_link = yes; then
9091  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9092fi
9093
9094
9095fi
9096
9097
9098fi
9099
9100
9101fi
9102
9103
9104fi
9105
9106
9107fi
9108
9109    ;;
9110  esac
9111
9112  if test "x$lt_cv_dlopen" != xno; then
9113    enable_dlopen=yes
9114  else
9115    enable_dlopen=no
9116  fi
9117
9118  case $lt_cv_dlopen in
9119  dlopen)
9120    save_CPPFLAGS="$CPPFLAGS"
9121    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9122
9123    save_LDFLAGS="$LDFLAGS"
9124    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9125
9126    save_LIBS="$LIBS"
9127    LIBS="$lt_cv_dlopen_libs $LIBS"
9128
9129    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9130echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9131if test "${lt_cv_dlopen_self+set}" = set; then
9132  echo $ECHO_N "(cached) $ECHO_C" >&6
9133else
9134  	  if test "$cross_compiling" = yes; then :
9135  lt_cv_dlopen_self=cross
9136else
9137  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9138  lt_status=$lt_dlunknown
9139  cat > conftest.$ac_ext <<EOF
9140#line 9140 "configure"
9141#include "confdefs.h"
9142
9143#if HAVE_DLFCN_H
9144#include <dlfcn.h>
9145#endif
9146
9147#include <stdio.h>
9148
9149#ifdef RTLD_GLOBAL
9150#  define LT_DLGLOBAL		RTLD_GLOBAL
9151#else
9152#  ifdef DL_GLOBAL
9153#    define LT_DLGLOBAL		DL_GLOBAL
9154#  else
9155#    define LT_DLGLOBAL		0
9156#  endif
9157#endif
9158
9159/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9160   find out it does not work in some platform. */
9161#ifndef LT_DLLAZY_OR_NOW
9162#  ifdef RTLD_LAZY
9163#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9164#  else
9165#    ifdef DL_LAZY
9166#      define LT_DLLAZY_OR_NOW		DL_LAZY
9167#    else
9168#      ifdef RTLD_NOW
9169#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9170#      else
9171#        ifdef DL_NOW
9172#          define LT_DLLAZY_OR_NOW	DL_NOW
9173#        else
9174#          define LT_DLLAZY_OR_NOW	0
9175#        endif
9176#      endif
9177#    endif
9178#  endif
9179#endif
9180
9181#ifdef __cplusplus
9182extern "C" void exit (int);
9183#endif
9184
9185void fnord() { int i=42;}
9186int main ()
9187{
9188  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9189  int status = $lt_dlunknown;
9190
9191  if (self)
9192    {
9193      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9194      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9195      /* dlclose (self); */
9196    }
9197  else
9198    puts (dlerror ());
9199
9200    exit (status);
9201}
9202EOF
9203  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9204  (eval $ac_link) 2>&5
9205  ac_status=$?
9206  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9207  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9208    (./conftest; exit; ) >&5 2>/dev/null
9209    lt_status=$?
9210    case x$lt_status in
9211      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9212      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9213      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9214    esac
9215  else :
9216    # compilation failed
9217    lt_cv_dlopen_self=no
9218  fi
9219fi
9220rm -fr conftest*
9221
9222
9223fi
9224echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9225echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9226
9227    if test "x$lt_cv_dlopen_self" = xyes; then
9228      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9229      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9230echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9231if test "${lt_cv_dlopen_self_static+set}" = set; then
9232  echo $ECHO_N "(cached) $ECHO_C" >&6
9233else
9234  	  if test "$cross_compiling" = yes; then :
9235  lt_cv_dlopen_self_static=cross
9236else
9237  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9238  lt_status=$lt_dlunknown
9239  cat > conftest.$ac_ext <<EOF
9240#line 9240 "configure"
9241#include "confdefs.h"
9242
9243#if HAVE_DLFCN_H
9244#include <dlfcn.h>
9245#endif
9246
9247#include <stdio.h>
9248
9249#ifdef RTLD_GLOBAL
9250#  define LT_DLGLOBAL		RTLD_GLOBAL
9251#else
9252#  ifdef DL_GLOBAL
9253#    define LT_DLGLOBAL		DL_GLOBAL
9254#  else
9255#    define LT_DLGLOBAL		0
9256#  endif
9257#endif
9258
9259/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9260   find out it does not work in some platform. */
9261#ifndef LT_DLLAZY_OR_NOW
9262#  ifdef RTLD_LAZY
9263#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9264#  else
9265#    ifdef DL_LAZY
9266#      define LT_DLLAZY_OR_NOW		DL_LAZY
9267#    else
9268#      ifdef RTLD_NOW
9269#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9270#      else
9271#        ifdef DL_NOW
9272#          define LT_DLLAZY_OR_NOW	DL_NOW
9273#        else
9274#          define LT_DLLAZY_OR_NOW	0
9275#        endif
9276#      endif
9277#    endif
9278#  endif
9279#endif
9280
9281#ifdef __cplusplus
9282extern "C" void exit (int);
9283#endif
9284
9285void fnord() { int i=42;}
9286int main ()
9287{
9288  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9289  int status = $lt_dlunknown;
9290
9291  if (self)
9292    {
9293      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9294      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9295      /* dlclose (self); */
9296    }
9297  else
9298    puts (dlerror ());
9299
9300    exit (status);
9301}
9302EOF
9303  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9304  (eval $ac_link) 2>&5
9305  ac_status=$?
9306  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9307  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9308    (./conftest; exit; ) >&5 2>/dev/null
9309    lt_status=$?
9310    case x$lt_status in
9311      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9312      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9313      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9314    esac
9315  else :
9316    # compilation failed
9317    lt_cv_dlopen_self_static=no
9318  fi
9319fi
9320rm -fr conftest*
9321
9322
9323fi
9324echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9325echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9326    fi
9327
9328    CPPFLAGS="$save_CPPFLAGS"
9329    LDFLAGS="$save_LDFLAGS"
9330    LIBS="$save_LIBS"
9331    ;;
9332  esac
9333
9334  case $lt_cv_dlopen_self in
9335  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9336  *) enable_dlopen_self=unknown ;;
9337  esac
9338
9339  case $lt_cv_dlopen_self_static in
9340  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9341  *) enable_dlopen_self_static=unknown ;;
9342  esac
9343fi
9344
9345
9346# Report which library types will actually be built
9347echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9348echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9349echo "$as_me:$LINENO: result: $can_build_shared" >&5
9350echo "${ECHO_T}$can_build_shared" >&6
9351
9352echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9353echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9354test "$can_build_shared" = "no" && enable_shared=no
9355
9356# On AIX, shared libraries and static libraries use the same namespace, and
9357# are all built from PIC.
9358case $host_os in
9359aix3*)
9360  test "$enable_shared" = yes && enable_static=no
9361  if test -n "$RANLIB"; then
9362    archive_cmds="$archive_cmds~\$RANLIB \$lib"
9363    postinstall_cmds='$RANLIB $lib'
9364  fi
9365  ;;
9366
9367aix4* | aix5*)
9368  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9369    test "$enable_shared" = yes && enable_static=no
9370  fi
9371    ;;
9372esac
9373echo "$as_me:$LINENO: result: $enable_shared" >&5
9374echo "${ECHO_T}$enable_shared" >&6
9375
9376echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9377echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9378# Make sure either enable_shared or enable_static is yes.
9379test "$enable_shared" = yes || enable_static=yes
9380echo "$as_me:$LINENO: result: $enable_static" >&5
9381echo "${ECHO_T}$enable_static" >&6
9382
9383# The else clause should only fire when bootstrapping the
9384# libtool distribution, otherwise you forgot to ship ltmain.sh
9385# with your package, and you will get complaints that there are
9386# no rules to generate ltmain.sh.
9387if test -f "$ltmain"; then
9388  # See if we are running on zsh, and set the options which allow our commands through
9389  # without removal of \ escapes.
9390  if test -n "${ZSH_VERSION+set}" ; then
9391    setopt NO_GLOB_SUBST
9392  fi
9393  # Now quote all the things that may contain metacharacters while being
9394  # careful not to overquote the AC_SUBSTed values.  We take copies of the
9395  # variables and quote the copies for generation of the libtool script.
9396  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9397    SED SHELL STRIP \
9398    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9399    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9400    deplibs_check_method reload_flag reload_cmds need_locks \
9401    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9402    lt_cv_sys_global_symbol_to_c_name_address \
9403    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9404    old_postinstall_cmds old_postuninstall_cmds \
9405    compiler \
9406    CC \
9407    LD \
9408    lt_prog_compiler_wl \
9409    lt_prog_compiler_pic \
9410    lt_prog_compiler_static \
9411    lt_prog_compiler_no_builtin_flag \
9412    export_dynamic_flag_spec \
9413    thread_safe_flag_spec \
9414    whole_archive_flag_spec \
9415    enable_shared_with_static_runtimes \
9416    old_archive_cmds \
9417    old_archive_from_new_cmds \
9418    predep_objects \
9419    postdep_objects \
9420    predeps \
9421    postdeps \
9422    compiler_lib_search_path \
9423    archive_cmds \
9424    archive_expsym_cmds \
9425    postinstall_cmds \
9426    postuninstall_cmds \
9427    old_archive_from_expsyms_cmds \
9428    allow_undefined_flag \
9429    no_undefined_flag \
9430    export_symbols_cmds \
9431    hardcode_libdir_flag_spec \
9432    hardcode_libdir_flag_spec_ld \
9433    hardcode_libdir_separator \
9434    hardcode_automatic \
9435    module_cmds \
9436    module_expsym_cmds \
9437    lt_cv_prog_compiler_c_o \
9438    exclude_expsyms \
9439    include_expsyms; do
9440
9441    case $var in
9442    old_archive_cmds | \
9443    old_archive_from_new_cmds | \
9444    archive_cmds | \
9445    archive_expsym_cmds | \
9446    module_cmds | \
9447    module_expsym_cmds | \
9448    old_archive_from_expsyms_cmds | \
9449    export_symbols_cmds | \
9450    extract_expsyms_cmds | reload_cmds | finish_cmds | \
9451    postinstall_cmds | postuninstall_cmds | \
9452    old_postinstall_cmds | old_postuninstall_cmds | \
9453    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9454      # Double-quote double-evaled strings.
9455      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9456      ;;
9457    *)
9458      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9459      ;;
9460    esac
9461  done
9462
9463  case $lt_echo in
9464  *'\$0 --fallback-echo"')
9465    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9466    ;;
9467  esac
9468
9469cfgfile="${ofile}T"
9470  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9471  $rm -f "$cfgfile"
9472  { echo "$as_me:$LINENO: creating $ofile" >&5
9473echo "$as_me: creating $ofile" >&6;}
9474
9475  cat <<__EOF__ >> "$cfgfile"
9476#! $SHELL
9477
9478# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9479# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9480# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9481#
9482# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9483# Free Software Foundation, Inc.
9484#
9485# This file is part of GNU Libtool:
9486# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9487#
9488# This program is free software; you can redistribute it and/or modify
9489# it under the terms of the GNU General Public License as published by
9490# the Free Software Foundation; either version 2 of the License, or
9491# (at your option) any later version.
9492#
9493# This program is distributed in the hope that it will be useful, but
9494# WITHOUT ANY WARRANTY; without even the implied warranty of
9495# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9496# General Public License for more details.
9497#
9498# You should have received a copy of the GNU General Public License
9499# along with this program; if not, write to the Free Software
9500# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9501#
9502# As a special exception to the GNU General Public License, if you
9503# distribute this file as part of a program that contains a
9504# configuration script generated by Autoconf, you may include it under
9505# the same distribution terms that you use for the rest of that program.
9506
9507# A sed program that does not truncate output.
9508SED=$lt_SED
9509
9510# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9511Xsed="$SED -e 1s/^X//"
9512
9513# The HP-UX ksh and POSIX shell print the target directory to stdout
9514# if CDPATH is set.
9515(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9516
9517# The names of the tagged configurations supported by this script.
9518available_tags=
9519
9520# ### BEGIN LIBTOOL CONFIG
9521
9522# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9523
9524# Shell to use when invoking shell scripts.
9525SHELL=$lt_SHELL
9526
9527# Whether or not to build shared libraries.
9528build_libtool_libs=$enable_shared
9529
9530# Whether or not to build static libraries.
9531build_old_libs=$enable_static
9532
9533# Whether or not to add -lc for building shared libraries.
9534build_libtool_need_lc=$archive_cmds_need_lc
9535
9536# Whether or not to disallow shared libs when runtime libs are static
9537allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9538
9539# Whether or not to optimize for fast installation.
9540fast_install=$enable_fast_install
9541
9542# The host system.
9543host_alias=$host_alias
9544host=$host
9545host_os=$host_os
9546
9547# The build system.
9548build_alias=$build_alias
9549build=$build
9550build_os=$build_os
9551
9552# An echo program that does not interpret backslashes.
9553echo=$lt_echo
9554
9555# The archiver.
9556AR=$lt_AR
9557AR_FLAGS=$lt_AR_FLAGS
9558
9559# A C compiler.
9560LTCC=$lt_LTCC
9561
9562# LTCC compiler flags.
9563LTCFLAGS=$lt_LTCFLAGS
9564
9565# A language-specific compiler.
9566CC=$lt_compiler
9567
9568# Is the compiler the GNU C compiler?
9569with_gcc=$GCC
9570
9571gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
9572gcc_ver=\`gcc -dumpversion\`
9573
9574# An ERE matcher.
9575EGREP=$lt_EGREP
9576
9577# The linker used to build libraries.
9578LD=$lt_LD
9579
9580# Whether we need hard or soft links.
9581LN_S=$lt_LN_S
9582
9583# A BSD-compatible nm program.
9584NM=$lt_NM
9585
9586# A symbol stripping program
9587STRIP=$lt_STRIP
9588
9589# Used to examine libraries when file_magic_cmd begins "file"
9590MAGIC_CMD=$MAGIC_CMD
9591
9592# Used on cygwin: DLL creation program.
9593DLLTOOL="$DLLTOOL"
9594
9595# Used on cygwin: object dumper.
9596OBJDUMP="$OBJDUMP"
9597
9598# Used on cygwin: assembler.
9599AS="$AS"
9600
9601# The name of the directory that contains temporary libtool files.
9602objdir=$objdir
9603
9604# How to create reloadable object files.
9605reload_flag=$lt_reload_flag
9606reload_cmds=$lt_reload_cmds
9607
9608# How to pass a linker flag through the compiler.
9609wl=$lt_lt_prog_compiler_wl
9610
9611# Object file suffix (normally "o").
9612objext="$ac_objext"
9613
9614# Old archive suffix (normally "a").
9615libext="$libext"
9616
9617# Shared library suffix (normally ".so").
9618shrext_cmds='$shrext_cmds'
9619
9620# Executable file suffix (normally "").
9621exeext="$exeext"
9622
9623# Additional compiler flags for building library objects.
9624pic_flag=$lt_lt_prog_compiler_pic
9625pic_mode=$pic_mode
9626
9627# What is the maximum length of a command?
9628max_cmd_len=$lt_cv_sys_max_cmd_len
9629
9630# Does compiler simultaneously support -c and -o options?
9631compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9632
9633# Must we lock files when doing compilation?
9634need_locks=$lt_need_locks
9635
9636# Do we need the lib prefix for modules?
9637need_lib_prefix=$need_lib_prefix
9638
9639# Do we need a version for libraries?
9640need_version=$need_version
9641
9642# Whether dlopen is supported.
9643dlopen_support=$enable_dlopen
9644
9645# Whether dlopen of programs is supported.
9646dlopen_self=$enable_dlopen_self
9647
9648# Whether dlopen of statically linked programs is supported.
9649dlopen_self_static=$enable_dlopen_self_static
9650
9651# Compiler flag to prevent dynamic linking.
9652link_static_flag=$lt_lt_prog_compiler_static
9653
9654# Compiler flag to turn off builtin functions.
9655no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9656
9657# Compiler flag to allow reflexive dlopens.
9658export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9659
9660# Compiler flag to generate shared objects directly from archives.
9661whole_archive_flag_spec=$lt_whole_archive_flag_spec
9662
9663# Compiler flag to generate thread-safe objects.
9664thread_safe_flag_spec=$lt_thread_safe_flag_spec
9665
9666# Library versioning type.
9667version_type=$version_type
9668
9669# Format of library name prefix.
9670libname_spec=$lt_libname_spec
9671
9672# List of archive names.  First name is the real one, the rest are links.
9673# The last name is the one that the linker finds with -lNAME.
9674library_names_spec=$lt_library_names_spec
9675
9676# The coded name of the library, if different from the real name.
9677soname_spec=$lt_soname_spec
9678
9679# Commands used to build and install an old-style archive.
9680RANLIB=$lt_RANLIB
9681old_archive_cmds=$lt_old_archive_cmds
9682old_postinstall_cmds=$lt_old_postinstall_cmds
9683old_postuninstall_cmds=$lt_old_postuninstall_cmds
9684
9685# Create an old-style archive from a shared archive.
9686old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9687
9688# Create a temporary old-style archive to link instead of a shared archive.
9689old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9690
9691# Commands used to build and install a shared archive.
9692archive_cmds=$lt_archive_cmds
9693archive_expsym_cmds=$lt_archive_expsym_cmds
9694postinstall_cmds=$lt_postinstall_cmds
9695postuninstall_cmds=$lt_postuninstall_cmds
9696
9697# Commands used to build a loadable module (assumed same as above if empty)
9698module_cmds=$lt_module_cmds
9699module_expsym_cmds=$lt_module_expsym_cmds
9700
9701# Commands to strip libraries.
9702old_striplib=$lt_old_striplib
9703striplib=$lt_striplib
9704
9705# Dependencies to place before the objects being linked to create a
9706# shared library.
9707predep_objects=\`echo $lt_predep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
9708
9709# Dependencies to place after the objects being linked to create a
9710# shared library.
9711postdep_objects=\`echo $lt_postdep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
9712
9713# Dependencies to place before the objects being linked to create a
9714# shared library.
9715predeps=$lt_predeps
9716
9717# Dependencies to place after the objects being linked to create a
9718# shared library.
9719postdeps=$lt_postdeps
9720
9721# The library search path used internally by the compiler when linking
9722# a shared library.
9723compiler_lib_search_path=\`echo $lt_compiler_lib_search_path | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
9724
9725# Method to check whether dependent libraries are shared objects.
9726deplibs_check_method=$lt_deplibs_check_method
9727
9728# Command to use when deplibs_check_method == file_magic.
9729file_magic_cmd=$lt_file_magic_cmd
9730
9731# Flag that allows shared libraries with undefined symbols to be built.
9732allow_undefined_flag=$lt_allow_undefined_flag
9733
9734# Flag that forces no undefined symbols.
9735no_undefined_flag=$lt_no_undefined_flag
9736
9737# Commands used to finish a libtool library installation in a directory.
9738finish_cmds=$lt_finish_cmds
9739
9740# Same as above, but a single script fragment to be evaled but not shown.
9741finish_eval=$lt_finish_eval
9742
9743# Take the output of nm and produce a listing of raw symbols and C names.
9744global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9745
9746# Transform the output of nm in a proper C declaration
9747global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9748
9749# Transform the output of nm in a C name address pair
9750global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9751
9752# This is the shared library runtime path variable.
9753runpath_var=$runpath_var
9754
9755# This is the shared library path variable.
9756shlibpath_var=$shlibpath_var
9757
9758# Is shlibpath searched before the hard-coded library search path?
9759shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9760
9761# How to hardcode a shared library path into an executable.
9762hardcode_action=$hardcode_action
9763
9764# Whether we should hardcode library paths into libraries.
9765hardcode_into_libs=$hardcode_into_libs
9766
9767# Flag to hardcode \$libdir into a binary during linking.
9768# This must work even if \$libdir does not exist.
9769hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9770
9771# If ld is used when linking, flag to hardcode \$libdir into
9772# a binary during linking. This must work even if \$libdir does
9773# not exist.
9774hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9775
9776# Whether we need a single -rpath flag with a separated argument.
9777hardcode_libdir_separator=$lt_hardcode_libdir_separator
9778
9779# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9780# resulting binary.
9781hardcode_direct=$hardcode_direct
9782
9783# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9784# resulting binary.
9785hardcode_minus_L=$hardcode_minus_L
9786
9787# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9788# the resulting binary.
9789hardcode_shlibpath_var=$hardcode_shlibpath_var
9790
9791# Set to yes if building a shared library automatically hardcodes DIR into the library
9792# and all subsequent libraries and executables linked against it.
9793hardcode_automatic=$hardcode_automatic
9794
9795# Variables whose values should be saved in libtool wrapper scripts and
9796# restored at relink time.
9797variables_saved_for_relink="$variables_saved_for_relink"
9798
9799# Whether libtool must link a program against all its dependency libraries.
9800link_all_deplibs=$link_all_deplibs
9801
9802# Compile-time system search path for libraries
9803sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
9804
9805# Run-time system search path for libraries
9806sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9807
9808# Fix the shell variable \$srcfile for the compiler.
9809fix_srcfile_path="$fix_srcfile_path"
9810
9811# Set to yes if exported symbols are required.
9812always_export_symbols=$always_export_symbols
9813
9814# The commands to list exported symbols.
9815export_symbols_cmds=$lt_export_symbols_cmds
9816
9817# The commands to extract the exported symbol list from a shared archive.
9818extract_expsyms_cmds=$lt_extract_expsyms_cmds
9819
9820# Symbols that should not be listed in the preloaded symbols.
9821exclude_expsyms=$lt_exclude_expsyms
9822
9823# Symbols that must always be exported.
9824include_expsyms=$lt_include_expsyms
9825
9826# ### END LIBTOOL CONFIG
9827
9828__EOF__
9829
9830
9831  case $host_os in
9832  aix3*)
9833    cat <<\EOF >> "$cfgfile"
9834
9835# AIX sometimes has problems with the GCC collect2 program.  For some
9836# reason, if we set the COLLECT_NAMES environment variable, the problems
9837# vanish in a puff of smoke.
9838if test "X${COLLECT_NAMES+set}" != Xset; then
9839  COLLECT_NAMES=
9840  export COLLECT_NAMES
9841fi
9842EOF
9843    ;;
9844  esac
9845
9846  # We use sed instead of cat because bash on DJGPP gets confused if
9847  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9848  # text mode, it properly converts lines to CR/LF.  This bash problem
9849  # is reportedly fixed, but why not run on old versions too?
9850  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9851
9852  mv -f "$cfgfile" "$ofile" || \
9853    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9854  chmod +x "$ofile"
9855
9856else
9857  # If there is no Makefile yet, we rely on a make rule to execute
9858  # `config.status --recheck' to rerun these tests and create the
9859  # libtool script then.
9860  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9861  if test -f "$ltmain_in"; then
9862    test -f Makefile && make "$ltmain"
9863  fi
9864fi
9865
9866
9867ac_ext=c
9868ac_cpp='$CPP $CPPFLAGS'
9869ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9870ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9871ac_compiler_gnu=$ac_cv_c_compiler_gnu
9872
9873CC="$lt_save_CC"
9874
9875
9876# Check whether --with-tags or --without-tags was given.
9877if test "${with_tags+set}" = set; then
9878  withval="$with_tags"
9879  tagnames="$withval"
9880fi;
9881
9882if test -f "$ltmain" && test -n "$tagnames"; then
9883  if test ! -f "${ofile}"; then
9884    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9885echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9886  fi
9887
9888  if test -z "$LTCC"; then
9889    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9890    if test -z "$LTCC"; then
9891      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9892echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9893    else
9894      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9895echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9896    fi
9897  fi
9898  if test -z "$LTCFLAGS"; then
9899    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
9900  fi
9901
9902  # Extract list of available tagged configurations in $ofile.
9903  # Note that this assumes the entire list is on one line.
9904  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9905
9906  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9907  for tagname in $tagnames; do
9908    IFS="$lt_save_ifs"
9909    # Check whether tagname contains only valid characters
9910    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9911    "") ;;
9912    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9913echo "$as_me: error: invalid tag name: $tagname" >&2;}
9914   { (exit 1); exit 1; }; }
9915	;;
9916    esac
9917
9918    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9919    then
9920      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9921echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9922   { (exit 1); exit 1; }; }
9923    fi
9924
9925    # Update the list of available tags.
9926    if test -n "$tagname"; then
9927      echo appending configuration tag \"$tagname\" to $ofile
9928
9929      case $tagname in
9930      CXX)
9931	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9932	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9933	    (test "X$CXX" != "Xg++"))) ; then
9934	  ac_ext=cc
9935ac_cpp='$CXXCPP $CPPFLAGS'
9936ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9937ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9938ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9939
9940
9941
9942
9943archive_cmds_need_lc_CXX=no
9944allow_undefined_flag_CXX=
9945always_export_symbols_CXX=no
9946archive_expsym_cmds_CXX=
9947export_dynamic_flag_spec_CXX=
9948hardcode_direct_CXX=no
9949hardcode_libdir_flag_spec_CXX=
9950hardcode_libdir_flag_spec_ld_CXX=
9951hardcode_libdir_separator_CXX=
9952hardcode_minus_L_CXX=no
9953hardcode_shlibpath_var_CXX=unsupported
9954hardcode_automatic_CXX=no
9955module_cmds_CXX=
9956module_expsym_cmds_CXX=
9957link_all_deplibs_CXX=unknown
9958old_archive_cmds_CXX=$old_archive_cmds
9959no_undefined_flag_CXX=
9960whole_archive_flag_spec_CXX=
9961enable_shared_with_static_runtimes_CXX=no
9962
9963# Dependencies to place before and after the object being linked:
9964predep_objects_CXX=
9965postdep_objects_CXX=
9966predeps_CXX=
9967postdeps_CXX=
9968compiler_lib_search_path_CXX=
9969
9970# Source file extension for C++ test sources.
9971ac_ext=cpp
9972
9973# Object file extension for compiled C++ test sources.
9974objext=o
9975objext_CXX=$objext
9976
9977# Code to be used in simple compile tests
9978lt_simple_compile_test_code="int some_variable = 0;\n"
9979
9980# Code to be used in simple link tests
9981lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
9982
9983# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9984
9985# If no C compiler was specified, use CC.
9986LTCC=${LTCC-"$CC"}
9987
9988# If no C compiler flags were specified, use CFLAGS.
9989LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9990
9991# Allow CC to be a program name with arguments.
9992compiler=$CC
9993
9994
9995# save warnings/boilerplate of simple test code
9996ac_outfile=conftest.$ac_objext
9997printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9998eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9999_lt_compiler_boilerplate=`cat conftest.err`
10000$rm conftest*
10001
10002ac_outfile=conftest.$ac_objext
10003printf "$lt_simple_link_test_code" >conftest.$ac_ext
10004eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10005_lt_linker_boilerplate=`cat conftest.err`
10006$rm conftest*
10007
10008
10009# Allow CC to be a program name with arguments.
10010lt_save_CC=$CC
10011lt_save_LD=$LD
10012lt_save_GCC=$GCC
10013GCC=$GXX
10014lt_save_with_gnu_ld=$with_gnu_ld
10015lt_save_path_LD=$lt_cv_path_LD
10016if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10017  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10018else
10019  $as_unset lt_cv_prog_gnu_ld
10020fi
10021if test -n "${lt_cv_path_LDCXX+set}"; then
10022  lt_cv_path_LD=$lt_cv_path_LDCXX
10023else
10024  $as_unset lt_cv_path_LD
10025fi
10026test -z "${LDCXX+set}" || LD=$LDCXX
10027CC=${CXX-"c++"}
10028compiler=$CC
10029compiler_CXX=$CC
10030for cc_temp in $compiler""; do
10031  case $cc_temp in
10032    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10033    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10034    \-*) ;;
10035    *) break;;
10036  esac
10037done
10038cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10039
10040
10041# We don't want -fno-exception wen compiling C++ code, so set the
10042# no_builtin_flag separately
10043if test "$GXX" = yes; then
10044  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10045else
10046  lt_prog_compiler_no_builtin_flag_CXX=
10047fi
10048
10049if test "$GXX" = yes; then
10050  # Set up default GNU C++ configuration
10051
10052
10053# Check whether --with-gnu-ld or --without-gnu-ld was given.
10054if test "${with_gnu_ld+set}" = set; then
10055  withval="$with_gnu_ld"
10056  test "$withval" = no || with_gnu_ld=yes
10057else
10058  with_gnu_ld=no
10059fi;
10060ac_prog=ld
10061if test "$GCC" = yes; then
10062  # Check if gcc -print-prog-name=ld gives a path.
10063  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10064echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10065  case $host in
10066  *-*-mingw*)
10067    # gcc leaves a trailing carriage return which upsets mingw
10068    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10069  *)
10070    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10071  esac
10072  case $ac_prog in
10073    # Accept absolute paths.
10074    [\\/]* | ?:[\\/]*)
10075      re_direlt='/[^/][^/]*/\.\./'
10076      # Canonicalize the pathname of ld
10077      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10078      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10079	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10080      done
10081      test -z "$LD" && LD="$ac_prog"
10082      ;;
10083  "")
10084    # If it fails, then pretend we aren't using GCC.
10085    ac_prog=ld
10086    ;;
10087  *)
10088    # If it is relative, then search for the first ld in PATH.
10089    with_gnu_ld=unknown
10090    ;;
10091  esac
10092elif test "$with_gnu_ld" = yes; then
10093  echo "$as_me:$LINENO: checking for GNU ld" >&5
10094echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10095else
10096  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10097echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10098fi
10099if test "${lt_cv_path_LD+set}" = set; then
10100  echo $ECHO_N "(cached) $ECHO_C" >&6
10101else
10102  if test -z "$LD"; then
10103  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10104  for ac_dir in $PATH; do
10105    IFS="$lt_save_ifs"
10106    test -z "$ac_dir" && ac_dir=.
10107    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10108      lt_cv_path_LD="$ac_dir/$ac_prog"
10109      # Check to see if the program is GNU ld.  I'd rather use --version,
10110      # but apparently some variants of GNU ld only accept -v.
10111      # Break only if it was the GNU/non-GNU ld that we prefer.
10112      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10113      *GNU* | *'with BFD'*)
10114	test "$with_gnu_ld" != no && break
10115	;;
10116      *)
10117	test "$with_gnu_ld" != yes && break
10118	;;
10119      esac
10120    fi
10121  done
10122  IFS="$lt_save_ifs"
10123else
10124  lt_cv_path_LD="$LD" # Let the user override the test with a path.
10125fi
10126fi
10127
10128LD="$lt_cv_path_LD"
10129if test -n "$LD"; then
10130  echo "$as_me:$LINENO: result: $LD" >&5
10131echo "${ECHO_T}$LD" >&6
10132else
10133  echo "$as_me:$LINENO: result: no" >&5
10134echo "${ECHO_T}no" >&6
10135fi
10136test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10137echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10138   { (exit 1); exit 1; }; }
10139echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10140echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10141if test "${lt_cv_prog_gnu_ld+set}" = set; then
10142  echo $ECHO_N "(cached) $ECHO_C" >&6
10143else
10144  # I'd rather use --version here, but apparently some GNU lds only accept -v.
10145case `$LD -v 2>&1 </dev/null` in
10146*GNU* | *'with BFD'*)
10147  lt_cv_prog_gnu_ld=yes
10148  ;;
10149*)
10150  lt_cv_prog_gnu_ld=no
10151  ;;
10152esac
10153fi
10154echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10155echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10156with_gnu_ld=$lt_cv_prog_gnu_ld
10157
10158
10159
10160  # Check if GNU C++ uses GNU ld as the underlying linker, since the
10161  # archiving commands below assume that GNU ld is being used.
10162  if test "$with_gnu_ld" = yes; then
10163    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10164    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'
10165
10166    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10167    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10168
10169    # If archive_cmds runs LD, not CC, wlarc should be empty
10170    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10171    #     investigate it a little bit more. (MM)
10172    wlarc='${wl}'
10173
10174    # ancient GNU ld didn't support --whole-archive et. al.
10175    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10176	grep 'no-whole-archive' > /dev/null; then
10177      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10178    else
10179      whole_archive_flag_spec_CXX=
10180    fi
10181  else
10182    with_gnu_ld=no
10183    wlarc=
10184
10185    # A generic and very simple default shared library creation
10186    # command for GNU C++ for the case where it uses the native
10187    # linker, instead of GNU ld.  If possible, this setting should
10188    # overridden to take advantage of the native linker features on
10189    # the platform it is being used on.
10190    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10191  fi
10192
10193  # Commands to make compiler produce verbose output that lists
10194  # what "hidden" libraries, object files and flags are used when
10195  # linking a shared library.
10196  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10197
10198else
10199  GXX=no
10200  with_gnu_ld=no
10201  wlarc=
10202fi
10203
10204# PORTME: fill in a description of your system's C++ link characteristics
10205echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10206echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10207ld_shlibs_CXX=yes
10208case $host_os in
10209  aix3*)
10210    # FIXME: insert proper C++ library support
10211    ld_shlibs_CXX=no
10212    ;;
10213  aix4* | aix5*)
10214    if test "$host_cpu" = ia64; then
10215      # On IA64, the linker does run time linking by default, so we don't
10216      # have to do anything special.
10217      aix_use_runtimelinking=no
10218      exp_sym_flag='-Bexport'
10219      no_entry_flag=""
10220    else
10221      aix_use_runtimelinking=no
10222
10223      # Test if we are trying to use run time linking or normal
10224      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10225      # need to do runtime linking.
10226      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10227	for ld_flag in $LDFLAGS; do
10228	  case $ld_flag in
10229	  *-brtl*)
10230	    aix_use_runtimelinking=yes
10231	    break
10232	    ;;
10233	  esac
10234	done
10235	;;
10236      esac
10237
10238      exp_sym_flag='-bexport'
10239      no_entry_flag='-bnoentry'
10240    fi
10241
10242    # When large executables or shared objects are built, AIX ld can
10243    # have problems creating the table of contents.  If linking a library
10244    # or program results in "error TOC overflow" add -mminimal-toc to
10245    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10246    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10247
10248    archive_cmds_CXX=''
10249    hardcode_direct_CXX=yes
10250    hardcode_libdir_separator_CXX=':'
10251    link_all_deplibs_CXX=yes
10252
10253    if test "$GXX" = yes; then
10254      case $host_os in aix4.[012]|aix4.[012].*)
10255      # We only want to do this on AIX 4.2 and lower, the check
10256      # below for broken collect2 doesn't work under 4.3+
10257	collect2name=`${CC} -print-prog-name=collect2`
10258	if test -f "$collect2name" && \
10259	   strings "$collect2name" | grep resolve_lib_name >/dev/null
10260	then
10261	  # We have reworked collect2
10262	  hardcode_direct_CXX=yes
10263	else
10264	  # We have old collect2
10265	  hardcode_direct_CXX=unsupported
10266	  # It fails to find uninstalled libraries when the uninstalled
10267	  # path is not listed in the libpath.  Setting hardcode_minus_L
10268	  # to unsupported forces relinking
10269	  hardcode_minus_L_CXX=yes
10270	  hardcode_libdir_flag_spec_CXX='-L$libdir'
10271	  hardcode_libdir_separator_CXX=
10272	fi
10273	;;
10274      esac
10275      shared_flag='-shared'
10276      if test "$aix_use_runtimelinking" = yes; then
10277	shared_flag="$shared_flag "'${wl}-G'
10278      fi
10279    else
10280      # not using gcc
10281      if test "$host_cpu" = ia64; then
10282	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10283	# chokes on -Wl,-G. The following line is correct:
10284	shared_flag='-G'
10285      else
10286	if test "$aix_use_runtimelinking" = yes; then
10287	  shared_flag='${wl}-G'
10288	else
10289	  shared_flag='${wl}-bM:SRE'
10290	fi
10291      fi
10292    fi
10293
10294    # It seems that -bexpall does not export symbols beginning with
10295    # underscore (_), so it is better to generate a list of symbols to export.
10296    always_export_symbols_CXX=yes
10297    if test "$aix_use_runtimelinking" = yes; then
10298      # Warning - without using the other runtime loading flags (-brtl),
10299      # -berok will link without error, but may produce a broken library.
10300      allow_undefined_flag_CXX='-berok'
10301      # Determine the default libpath from the value encoded in an empty executable.
10302      cat >conftest.$ac_ext <<_ACEOF
10303/* confdefs.h.  */
10304_ACEOF
10305cat confdefs.h >>conftest.$ac_ext
10306cat >>conftest.$ac_ext <<_ACEOF
10307/* end confdefs.h.  */
10308
10309int
10310main ()
10311{
10312
10313  ;
10314  return 0;
10315}
10316_ACEOF
10317rm -f conftest.$ac_objext conftest$ac_exeext
10318if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10319  (eval $ac_link) 2>conftest.er1
10320  ac_status=$?
10321  grep -v '^ *+' conftest.er1 >conftest.err
10322  rm -f conftest.er1
10323  cat conftest.err >&5
10324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10325  (exit $ac_status); } &&
10326	 { ac_try='test -z "$ac_cxx_werror_flag"
10327			 || test ! -s conftest.err'
10328  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10329  (eval $ac_try) 2>&5
10330  ac_status=$?
10331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10332  (exit $ac_status); }; } &&
10333	 { ac_try='test -s conftest$ac_exeext'
10334  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10335  (eval $ac_try) 2>&5
10336  ac_status=$?
10337  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10338  (exit $ac_status); }; }; then
10339
10340aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10341}'`
10342# Check for a 64-bit object if we didn't find anything.
10343if 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; }
10344}'`; fi
10345else
10346  echo "$as_me: failed program was:" >&5
10347sed 's/^/| /' conftest.$ac_ext >&5
10348
10349fi
10350rm -f conftest.err conftest.$ac_objext \
10351      conftest$ac_exeext conftest.$ac_ext
10352if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10353
10354      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10355
10356      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"
10357     else
10358      if test "$host_cpu" = ia64; then
10359	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10360	allow_undefined_flag_CXX="-z nodefs"
10361	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"
10362      else
10363	# Determine the default libpath from the value encoded in an empty executable.
10364	cat >conftest.$ac_ext <<_ACEOF
10365/* confdefs.h.  */
10366_ACEOF
10367cat confdefs.h >>conftest.$ac_ext
10368cat >>conftest.$ac_ext <<_ACEOF
10369/* end confdefs.h.  */
10370
10371int
10372main ()
10373{
10374
10375  ;
10376  return 0;
10377}
10378_ACEOF
10379rm -f conftest.$ac_objext conftest$ac_exeext
10380if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10381  (eval $ac_link) 2>conftest.er1
10382  ac_status=$?
10383  grep -v '^ *+' conftest.er1 >conftest.err
10384  rm -f conftest.er1
10385  cat conftest.err >&5
10386  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10387  (exit $ac_status); } &&
10388	 { ac_try='test -z "$ac_cxx_werror_flag"
10389			 || test ! -s conftest.err'
10390  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10391  (eval $ac_try) 2>&5
10392  ac_status=$?
10393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10394  (exit $ac_status); }; } &&
10395	 { ac_try='test -s conftest$ac_exeext'
10396  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10397  (eval $ac_try) 2>&5
10398  ac_status=$?
10399  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10400  (exit $ac_status); }; }; then
10401
10402aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10403}'`
10404# Check for a 64-bit object if we didn't find anything.
10405if 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; }
10406}'`; fi
10407else
10408  echo "$as_me: failed program was:" >&5
10409sed 's/^/| /' conftest.$ac_ext >&5
10410
10411fi
10412rm -f conftest.err conftest.$ac_objext \
10413      conftest$ac_exeext conftest.$ac_ext
10414if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10415
10416	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10417	# Warning - without using the other run time loading flags,
10418	# -berok will link without error, but may produce a broken library.
10419	no_undefined_flag_CXX=' ${wl}-bernotok'
10420	allow_undefined_flag_CXX=' ${wl}-berok'
10421	# Exported symbols can be pulled into shared objects from archives
10422	whole_archive_flag_spec_CXX='$convenience'
10423	archive_cmds_need_lc_CXX=yes
10424	# This is similar to how AIX traditionally builds its shared libraries.
10425	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'
10426      fi
10427    fi
10428    ;;
10429
10430  beos*)
10431    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10432      allow_undefined_flag_CXX=unsupported
10433      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10434      # support --undefined.  This deserves some investigation.  FIXME
10435      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10436    else
10437      ld_shlibs_CXX=no
10438    fi
10439    ;;
10440
10441  chorus*)
10442    case $cc_basename in
10443      *)
10444	# FIXME: insert proper C++ library support
10445	ld_shlibs_CXX=no
10446	;;
10447    esac
10448    ;;
10449
10450  cygwin* | mingw* | pw32*)
10451    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10452    # as there is no search path for DLLs.
10453    hardcode_libdir_flag_spec_CXX='-L$libdir'
10454    allow_undefined_flag_CXX=unsupported
10455    always_export_symbols_CXX=no
10456    enable_shared_with_static_runtimes_CXX=yes
10457
10458    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10459      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'
10460      # If the export-symbols file already is a .def file (1st line
10461      # is EXPORTS), use it as is; otherwise, prepend...
10462      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10463	cp $export_symbols $output_objdir/$soname.def;
10464      else
10465	echo EXPORTS > $output_objdir/$soname.def;
10466	cat $export_symbols >> $output_objdir/$soname.def;
10467      fi~
10468      $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'
10469    else
10470      ld_shlibs_CXX=no
10471    fi
10472  ;;
10473      darwin* | rhapsody*)
10474        case $host_os in
10475        rhapsody* | darwin1.[012])
10476         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10477         ;;
10478       *) # Darwin 1.3 on
10479         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10480           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10481         else
10482           case ${MACOSX_DEPLOYMENT_TARGET} in
10483             10.[012])
10484               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10485               ;;
10486             10.*)
10487               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10488               ;;
10489           esac
10490         fi
10491         ;;
10492        esac
10493      archive_cmds_need_lc_CXX=no
10494      hardcode_direct_CXX=no
10495      hardcode_automatic_CXX=yes
10496      hardcode_shlibpath_var_CXX=unsupported
10497      whole_archive_flag_spec_CXX=''
10498      link_all_deplibs_CXX=yes
10499
10500    if test "$GXX" = yes ; then
10501      lt_int_apple_cc_single_mod=no
10502      output_verbose_link_cmd='echo'
10503      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10504       lt_int_apple_cc_single_mod=yes
10505      fi
10506      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10507       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10508      else
10509          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'
10510        fi
10511        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10512        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10513          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10514            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}'
10515          else
10516            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}'
10517          fi
10518            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}'
10519      else
10520      case $cc_basename in
10521        xlc*)
10522         output_verbose_link_cmd='echo'
10523          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'
10524          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10525          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10526          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}'
10527          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}'
10528          ;;
10529       *)
10530         ld_shlibs_CXX=no
10531          ;;
10532      esac
10533      fi
10534        ;;
10535
10536  dgux*)
10537    case $cc_basename in
10538      ec++*)
10539	# FIXME: insert proper C++ library support
10540	ld_shlibs_CXX=no
10541	;;
10542      ghcx*)
10543	# Green Hills C++ Compiler
10544	# FIXME: insert proper C++ library support
10545	ld_shlibs_CXX=no
10546	;;
10547      *)
10548	# FIXME: insert proper C++ library support
10549	ld_shlibs_CXX=no
10550	;;
10551    esac
10552    ;;
10553  freebsd[12]*)
10554    # C++ shared libraries reported to be fairly broken before switch to ELF
10555    ld_shlibs_CXX=no
10556    ;;
10557  freebsd-elf*)
10558    archive_cmds_need_lc_CXX=no
10559    ;;
10560  freebsd* | kfreebsd*-gnu | dragonfly*)
10561    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10562    # conventions
10563    ld_shlibs_CXX=yes
10564    ;;
10565  gnu*)
10566    ;;
10567  hpux9*)
10568    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10569    hardcode_libdir_separator_CXX=:
10570    export_dynamic_flag_spec_CXX='${wl}-E'
10571    hardcode_direct_CXX=yes
10572    hardcode_minus_L_CXX=yes # Not in the search PATH,
10573				# but as the default
10574				# location of the library.
10575
10576    case $cc_basename in
10577    CC*)
10578      # FIXME: insert proper C++ library support
10579      ld_shlibs_CXX=no
10580      ;;
10581    aCC*)
10582      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'
10583      # Commands to make compiler produce verbose output that lists
10584      # what "hidden" libraries, object files and flags are used when
10585      # linking a shared library.
10586      #
10587      # There doesn't appear to be a way to prevent this compiler from
10588      # explicitly linking system object files so we need to strip them
10589      # from the output so that they don't get included in the library
10590      # dependencies.
10591      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'
10592      ;;
10593    *)
10594      if test "$GXX" = yes; then
10595        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'
10596      else
10597        # FIXME: insert proper C++ library support
10598        ld_shlibs_CXX=no
10599      fi
10600      ;;
10601    esac
10602    ;;
10603  hpux10*|hpux11*)
10604    if test $with_gnu_ld = no; then
10605      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10606      hardcode_libdir_separator_CXX=:
10607
10608      case $host_cpu in
10609      hppa*64*|ia64*)
10610	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10611        ;;
10612      *)
10613	export_dynamic_flag_spec_CXX='${wl}-E'
10614        ;;
10615      esac
10616    fi
10617    case $host_cpu in
10618    hppa*64*|ia64*)
10619      hardcode_direct_CXX=no
10620      hardcode_shlibpath_var_CXX=no
10621      ;;
10622    *)
10623      hardcode_direct_CXX=yes
10624      hardcode_minus_L_CXX=yes # Not in the search PATH,
10625					      # but as the default
10626					      # location of the library.
10627      ;;
10628    esac
10629
10630    case $cc_basename in
10631      CC*)
10632	# FIXME: insert proper C++ library support
10633	ld_shlibs_CXX=no
10634	;;
10635      aCC*)
10636	case $host_cpu in
10637	hppa*64*)
10638	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10639	  ;;
10640	ia64*)
10641	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10642	  ;;
10643	*)
10644	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10645	  ;;
10646	esac
10647	# Commands to make compiler produce verbose output that lists
10648	# what "hidden" libraries, object files and flags are used when
10649	# linking a shared library.
10650	#
10651	# There doesn't appear to be a way to prevent this compiler from
10652	# explicitly linking system object files so we need to strip them
10653	# from the output so that they don't get included in the library
10654	# dependencies.
10655	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'
10656	;;
10657      *)
10658	if test "$GXX" = yes; then
10659	  if test $with_gnu_ld = no; then
10660	    case $host_cpu in
10661	    hppa*64*)
10662	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10663	      ;;
10664	    ia64*)
10665	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10666	      ;;
10667	    *)
10668	      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'
10669	      ;;
10670	    esac
10671	  fi
10672	else
10673	  # FIXME: insert proper C++ library support
10674	  ld_shlibs_CXX=no
10675	fi
10676	;;
10677    esac
10678    ;;
10679  interix3*)
10680    hardcode_direct_CXX=no
10681    hardcode_shlibpath_var_CXX=no
10682    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10683    export_dynamic_flag_spec_CXX='${wl}-E'
10684    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10685    # Instead, shared libraries are loaded at an image base (0x10000000 by
10686    # default) and relocated if they conflict, which is a slow very memory
10687    # consuming and fragmenting process.  To avoid this, we pick a random,
10688    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10689    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10690    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'
10691    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'
10692    ;;
10693  irix5* | irix6*)
10694    case $cc_basename in
10695      CC*)
10696	# SGI C++
10697	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'
10698
10699	# Archives containing C++ object files must be created using
10700	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10701	# necessary to make sure instantiated templates are included
10702	# in the archive.
10703	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10704	;;
10705      *)
10706	if test "$GXX" = yes; then
10707	  if test "$with_gnu_ld" = no; then
10708	    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'
10709	  else
10710	    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'
10711	  fi
10712	fi
10713	link_all_deplibs_CXX=yes
10714	;;
10715    esac
10716    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10717    hardcode_libdir_separator_CXX=:
10718    ;;
10719  linux*)
10720    case $cc_basename in
10721      KCC*)
10722	# Kuck and Associates, Inc. (KAI) C++ Compiler
10723
10724	# KCC will only create a shared library if the output file
10725	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10726	# to its proper name (with version) after linking.
10727	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'
10728	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'
10729	# Commands to make compiler produce verbose output that lists
10730	# what "hidden" libraries, object files and flags are used when
10731	# linking a shared library.
10732	#
10733	# There doesn't appear to be a way to prevent this compiler from
10734	# explicitly linking system object files so we need to strip them
10735	# from the output so that they don't get included in the library
10736	# dependencies.
10737	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'
10738
10739	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10740	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10741
10742	# Archives containing C++ object files must be created using
10743	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10744	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10745	;;
10746      icpc*)
10747	# Intel C++
10748	with_gnu_ld=yes
10749	# version 8.0 and above of icpc choke on multiply defined symbols
10750	# if we add $predep_objects and $postdep_objects, however 7.1 and
10751	# earlier do not add the objects themselves.
10752	case `$CC -V 2>&1` in
10753	*"Version 7."*)
10754  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10755  	  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'
10756	  ;;
10757	*)  # Version 8.0 or newer
10758	  tmp_idyn=
10759	  case $host_cpu in
10760	    ia64*) tmp_idyn=' -i_dynamic';;
10761	  esac
10762  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10763	  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'
10764	  ;;
10765	esac
10766	archive_cmds_need_lc_CXX=no
10767	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10768	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10769	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10770	;;
10771      pgCC*)
10772        # Portland Group C++ compiler
10773	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10774  	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'
10775
10776	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10777	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10778	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'
10779        ;;
10780      cxx*)
10781	# Compaq C++
10782	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10783	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'
10784
10785	runpath_var=LD_RUN_PATH
10786	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10787	hardcode_libdir_separator_CXX=:
10788
10789	# Commands to make compiler produce verbose output that lists
10790	# what "hidden" libraries, object files and flags are used when
10791	# linking a shared library.
10792	#
10793	# There doesn't appear to be a way to prevent this compiler from
10794	# explicitly linking system object files so we need to strip them
10795	# from the output so that they don't get included in the library
10796	# dependencies.
10797	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'
10798	;;
10799    esac
10800    ;;
10801  lynxos*)
10802    # FIXME: insert proper C++ library support
10803    ld_shlibs_CXX=no
10804    ;;
10805  m88k*)
10806    # FIXME: insert proper C++ library support
10807    ld_shlibs_CXX=no
10808    ;;
10809  mvs*)
10810    case $cc_basename in
10811      cxx*)
10812	# FIXME: insert proper C++ library support
10813	ld_shlibs_CXX=no
10814	;;
10815      *)
10816	# FIXME: insert proper C++ library support
10817	ld_shlibs_CXX=no
10818	;;
10819    esac
10820    ;;
10821  netbsd*)
10822    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10823      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10824      wlarc=
10825      hardcode_libdir_flag_spec_CXX='-R$libdir'
10826      hardcode_direct_CXX=yes
10827      hardcode_shlibpath_var_CXX=no
10828    fi
10829    # Workaround some broken pre-1.5 toolchains
10830    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10831    ;;
10832  openbsd2*)
10833    # C++ shared libraries are fairly broken
10834    ld_shlibs_CXX=no
10835    ;;
10836  openbsd*)
10837    hardcode_direct_CXX=yes
10838    hardcode_shlibpath_var_CXX=no
10839    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10840    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10841    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10842      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10843      export_dynamic_flag_spec_CXX='${wl}-E'
10844      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10845    fi
10846    output_verbose_link_cmd='echo'
10847    ;;
10848  osf3*)
10849    case $cc_basename in
10850      KCC*)
10851	# Kuck and Associates, Inc. (KAI) C++ Compiler
10852
10853	# KCC will only create a shared library if the output file
10854	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10855	# to its proper name (with version) after linking.
10856	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'
10857
10858	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10859	hardcode_libdir_separator_CXX=:
10860
10861	# Archives containing C++ object files must be created using
10862	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10863	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10864
10865	;;
10866      RCC*)
10867	# Rational C++ 2.4.1
10868	# FIXME: insert proper C++ library support
10869	ld_shlibs_CXX=no
10870	;;
10871      cxx*)
10872	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10873	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'
10874
10875	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10876	hardcode_libdir_separator_CXX=:
10877
10878	# Commands to make compiler produce verbose output that lists
10879	# what "hidden" libraries, object files and flags are used when
10880	# linking a shared library.
10881	#
10882	# There doesn't appear to be a way to prevent this compiler from
10883	# explicitly linking system object files so we need to strip them
10884	# from the output so that they don't get included in the library
10885	# dependencies.
10886	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'
10887	;;
10888      *)
10889	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10890	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10891	  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'
10892
10893	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10894	  hardcode_libdir_separator_CXX=:
10895
10896	  # Commands to make compiler produce verbose output that lists
10897	  # what "hidden" libraries, object files and flags are used when
10898	  # linking a shared library.
10899	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10900
10901	else
10902	  # FIXME: insert proper C++ library support
10903	  ld_shlibs_CXX=no
10904	fi
10905	;;
10906    esac
10907    ;;
10908  osf4* | osf5*)
10909    case $cc_basename in
10910      KCC*)
10911	# Kuck and Associates, Inc. (KAI) C++ Compiler
10912
10913	# KCC will only create a shared library if the output file
10914	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10915	# to its proper name (with version) after linking.
10916	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'
10917
10918	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10919	hardcode_libdir_separator_CXX=:
10920
10921	# Archives containing C++ object files must be created using
10922	# the KAI C++ compiler.
10923	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10924	;;
10925      RCC*)
10926	# Rational C++ 2.4.1
10927	# FIXME: insert proper C++ library support
10928	ld_shlibs_CXX=no
10929	;;
10930      cxx*)
10931	allow_undefined_flag_CXX=' -expect_unresolved \*'
10932	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'
10933	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10934	  echo "-hidden">> $lib.exp~
10935	  $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~
10936	  $rm $lib.exp'
10937
10938	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10939	hardcode_libdir_separator_CXX=:
10940
10941	# Commands to make compiler produce verbose output that lists
10942	# what "hidden" libraries, object files and flags are used when
10943	# linking a shared library.
10944	#
10945	# There doesn't appear to be a way to prevent this compiler from
10946	# explicitly linking system object files so we need to strip them
10947	# from the output so that they don't get included in the library
10948	# dependencies.
10949	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'
10950	;;
10951      *)
10952	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10953	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10954	 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'
10955
10956	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10957	  hardcode_libdir_separator_CXX=:
10958
10959	  # Commands to make compiler produce verbose output that lists
10960	  # what "hidden" libraries, object files and flags are used when
10961	  # linking a shared library.
10962	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10963
10964	else
10965	  # FIXME: insert proper C++ library support
10966	  ld_shlibs_CXX=no
10967	fi
10968	;;
10969    esac
10970    ;;
10971  psos*)
10972    # FIXME: insert proper C++ library support
10973    ld_shlibs_CXX=no
10974    ;;
10975  sunos4*)
10976    case $cc_basename in
10977      CC*)
10978	# Sun C++ 4.x
10979	# FIXME: insert proper C++ library support
10980	ld_shlibs_CXX=no
10981	;;
10982      lcc*)
10983	# Lucid
10984	# FIXME: insert proper C++ library support
10985	ld_shlibs_CXX=no
10986	;;
10987      *)
10988	# FIXME: insert proper C++ library support
10989	ld_shlibs_CXX=no
10990	;;
10991    esac
10992    ;;
10993  solaris*)
10994    case $cc_basename in
10995      CC*)
10996	# Sun C++ 4.2, 5.x and Centerline C++
10997        archive_cmds_need_lc_CXX=yes
10998	no_undefined_flag_CXX=' -zdefs'
10999	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11000	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11001	$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'
11002
11003	hardcode_libdir_flag_spec_CXX='-R$libdir'
11004	hardcode_shlibpath_var_CXX=no
11005	case $host_os in
11006	  solaris2.[0-5] | solaris2.[0-5].*) ;;
11007	  *)
11008	    # The C++ compiler is used as linker so we must use $wl
11009	    # flag to pass the commands to the underlying system
11010	    # linker. We must also pass each convience library through
11011	    # to the system linker between allextract/defaultextract.
11012	    # The C++ compiler will combine linker options so we
11013	    # cannot just pass the convience library names through
11014	    # without $wl.
11015	    # Supported since Solaris 2.6 (maybe 2.5.1?)
11016	    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'
11017	    ;;
11018	esac
11019	link_all_deplibs_CXX=yes
11020
11021	output_verbose_link_cmd='echo'
11022
11023	# Archives containing C++ object files must be created using
11024	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
11025	# necessary to make sure instantiated templates are included
11026	# in the archive.
11027	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11028	;;
11029      gcx*)
11030	# Green Hills C++ Compiler
11031	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11032
11033	# The C++ compiler must be used to create the archive.
11034	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11035	;;
11036      *)
11037	# GNU C++ compiler with Solaris linker
11038	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11039	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11040	  if $CC --version | grep -v '^2\.7' > /dev/null; then
11041	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11042	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11043		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11044
11045	    # Commands to make compiler produce verbose output that lists
11046	    # what "hidden" libraries, object files and flags are used when
11047	    # linking a shared library.
11048	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11049	  else
11050	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
11051	    # platform.
11052	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11053	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11054		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11055
11056	    # Commands to make compiler produce verbose output that lists
11057	    # what "hidden" libraries, object files and flags are used when
11058	    # linking a shared library.
11059	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11060	  fi
11061
11062	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11063	fi
11064	;;
11065    esac
11066    ;;
11067  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11068    no_undefined_flag_CXX='${wl}-z,text'
11069    archive_cmds_need_lc_CXX=no
11070    hardcode_shlibpath_var_CXX=no
11071    runpath_var='LD_RUN_PATH'
11072
11073    case $cc_basename in
11074      CC*)
11075	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11076	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11077	;;
11078      *)
11079	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11080	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11081	;;
11082    esac
11083    ;;
11084  sysv5* | sco3.2v5* | sco5v6*)
11085    # Note: We can NOT use -z defs as we might desire, because we do not
11086    # link with -lc, and that would cause any symbols used from libc to
11087    # always be unresolved, which means just about no library would
11088    # ever link correctly.  If we're not using GNU ld we use -z text
11089    # though, which does catch some bad symbols but isn't as heavy-handed
11090    # as -z defs.
11091    # For security reasons, it is highly recommended that you always
11092    # use absolute paths for naming shared libraries, and exclude the
11093    # DT_RUNPATH tag from executables and libraries.  But doing so
11094    # requires that you compile everything twice, which is a pain.
11095    # So that behaviour is only enabled if SCOABSPATH is set to a
11096    # non-empty value in the environment.  Most likely only useful for
11097    # creating official distributions of packages.
11098    # This is a hack until libtool officially supports absolute path
11099    # names for shared libraries.
11100    no_undefined_flag_CXX='${wl}-z,text'
11101    allow_undefined_flag_CXX='${wl}-z,nodefs'
11102    archive_cmds_need_lc_CXX=no
11103    hardcode_shlibpath_var_CXX=no
11104    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11105    hardcode_libdir_separator_CXX=':'
11106    link_all_deplibs_CXX=yes
11107    export_dynamic_flag_spec_CXX='${wl}-Bexport'
11108    runpath_var='LD_RUN_PATH'
11109
11110    case $cc_basename in
11111      CC*)
11112	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11113	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11114	;;
11115      *)
11116	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11117	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11118	;;
11119    esac
11120    ;;
11121  tandem*)
11122    case $cc_basename in
11123      NCC*)
11124	# NonStop-UX NCC 3.20
11125	# FIXME: insert proper C++ library support
11126	ld_shlibs_CXX=no
11127	;;
11128      *)
11129	# FIXME: insert proper C++ library support
11130	ld_shlibs_CXX=no
11131	;;
11132    esac
11133    ;;
11134  vxworks*)
11135    # FIXME: insert proper C++ library support
11136    ld_shlibs_CXX=no
11137    ;;
11138  *)
11139    # FIXME: insert proper C++ library support
11140    ld_shlibs_CXX=no
11141    ;;
11142esac
11143echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11144echo "${ECHO_T}$ld_shlibs_CXX" >&6
11145test "$ld_shlibs_CXX" = no && can_build_shared=no
11146
11147GCC_CXX="$GXX"
11148LD_CXX="$LD"
11149
11150
11151cat > conftest.$ac_ext <<EOF
11152class Foo
11153{
11154public:
11155  Foo (void) { a = 0; }
11156private:
11157  int a;
11158};
11159EOF
11160
11161if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11162  (eval $ac_compile) 2>&5
11163  ac_status=$?
11164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11165  (exit $ac_status); }; then
11166  # Parse the compiler output and extract the necessary
11167  # objects, libraries and library flags.
11168
11169  # Sentinel used to keep track of whether or not we are before
11170  # the conftest object file.
11171  pre_test_object_deps_done=no
11172
11173  # The `*' in the case matches for architectures that use `case' in
11174  # $output_verbose_cmd can trigger glob expansion during the loop
11175  # eval without this substitution.
11176  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11177
11178  for p in `eval $output_verbose_link_cmd`; do
11179    case $p in
11180
11181    -L* | -R* | -l*)
11182       # Some compilers place space between "-{L,R}" and the path.
11183       # Remove the space.
11184       if test $p = "-L" \
11185	  || test $p = "-R"; then
11186	 prev=$p
11187	 continue
11188       else
11189	 prev=
11190       fi
11191
11192       if test "$pre_test_object_deps_done" = no; then
11193	 case $p in
11194	 -L* | -R*)
11195	   # Internal compiler library paths should come after those
11196	   # provided the user.  The postdeps already come after the
11197	   # user supplied libs so there is no need to process them.
11198	   if test -z "$compiler_lib_search_path_CXX"; then
11199	     compiler_lib_search_path_CXX="${prev}${p}"
11200	   else
11201	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11202	   fi
11203	   ;;
11204	 # The "-l" case would never come before the object being
11205	 # linked, so don't bother handling this case.
11206	 esac
11207       else
11208	 if test -z "$postdeps_CXX"; then
11209	   postdeps_CXX="${prev}${p}"
11210	 else
11211	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11212	 fi
11213       fi
11214       ;;
11215
11216    *.$objext)
11217       # This assumes that the test object file only shows up
11218       # once in the compiler output.
11219       if test "$p" = "conftest.$objext"; then
11220	 pre_test_object_deps_done=yes
11221	 continue
11222       fi
11223
11224       if test "$pre_test_object_deps_done" = no; then
11225	 if test -z "$predep_objects_CXX"; then
11226	   predep_objects_CXX="$p"
11227	 else
11228	   predep_objects_CXX="$predep_objects_CXX $p"
11229	 fi
11230       else
11231	 if test -z "$postdep_objects_CXX"; then
11232	   postdep_objects_CXX="$p"
11233	 else
11234	   postdep_objects_CXX="$postdep_objects_CXX $p"
11235	 fi
11236       fi
11237       ;;
11238
11239    *) ;; # Ignore the rest.
11240
11241    esac
11242  done
11243
11244  # Clean up.
11245  rm -f a.out a.exe
11246else
11247  echo "libtool.m4: error: problem compiling CXX test program"
11248fi
11249
11250$rm -f confest.$objext
11251
11252# PORTME: override above test on systems where it is broken
11253case $host_os in
11254interix3*)
11255  # Interix 3.5 installs completely hosed .la files for C++, so rather than
11256  # hack all around it, let's just trust "g++" to DTRT.
11257  predep_objects_CXX=
11258  postdep_objects_CXX=
11259  postdeps_CXX=
11260  ;;
11261
11262solaris*)
11263  case $cc_basename in
11264  CC*)
11265    # Adding this requires a known-good setup of shared libraries for
11266    # Sun compiler versions before 5.6, else PIC objects from an old
11267    # archive will be linked into the output, leading to subtle bugs.
11268    postdeps_CXX='-lCstd -lCrun'
11269    ;;
11270  esac
11271  ;;
11272esac
11273
11274
11275case " $postdeps_CXX " in
11276*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11277esac
11278
11279lt_prog_compiler_wl_CXX=
11280lt_prog_compiler_pic_CXX=
11281lt_prog_compiler_static_CXX=
11282
11283echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11284echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11285
11286  # C++ specific cases for pic, static, wl, etc.
11287  if test "$GXX" = yes; then
11288    lt_prog_compiler_wl_CXX='-Wl,'
11289    lt_prog_compiler_static_CXX='-static'
11290
11291    case $host_os in
11292    aix*)
11293      # All AIX code is PIC.
11294      if test "$host_cpu" = ia64; then
11295	# AIX 5 now supports IA64 processor
11296	lt_prog_compiler_static_CXX='-Bstatic'
11297      fi
11298      ;;
11299    amigaos*)
11300      # FIXME: we need at least 68020 code to build shared libraries, but
11301      # adding the `-m68020' flag to GCC prevents building anything better,
11302      # like `-m68040'.
11303      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11304      ;;
11305    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11306      # PIC is the default for these OSes.
11307      ;;
11308    mingw* | os2* | pw32*)
11309      # This hack is so that the source file can tell whether it is being
11310      # built for inclusion in a dll (and should export symbols for example).
11311      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11312      ;;
11313    darwin* | rhapsody*)
11314      # PIC is the default on this platform
11315      # Common symbols not allowed in MH_DYLIB files
11316      lt_prog_compiler_pic_CXX='-fno-common'
11317      ;;
11318    *djgpp*)
11319      # DJGPP does not support shared libraries at all
11320      lt_prog_compiler_pic_CXX=
11321      ;;
11322    interix3*)
11323      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11324      # Instead, we relocate shared libraries at runtime.
11325      ;;
11326    sysv4*MP*)
11327      if test -d /usr/nec; then
11328	lt_prog_compiler_pic_CXX=-Kconform_pic
11329      fi
11330      ;;
11331    hpux*)
11332      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11333      # not for PA HP-UX.
11334      case $host_cpu in
11335      hppa*64*|ia64*)
11336	;;
11337      *)
11338	lt_prog_compiler_pic_CXX='-fPIC'
11339	;;
11340      esac
11341      ;;
11342    *)
11343      lt_prog_compiler_pic_CXX='-fPIC'
11344      ;;
11345    esac
11346  else
11347    case $host_os in
11348      aix4* | aix5*)
11349	# All AIX code is PIC.
11350	if test "$host_cpu" = ia64; then
11351	  # AIX 5 now supports IA64 processor
11352	  lt_prog_compiler_static_CXX='-Bstatic'
11353	else
11354	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11355	fi
11356	;;
11357      chorus*)
11358	case $cc_basename in
11359	cxch68*)
11360	  # Green Hills C++ Compiler
11361	  # _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"
11362	  ;;
11363	esac
11364	;;
11365       darwin*)
11366         # PIC is the default on this platform
11367         # Common symbols not allowed in MH_DYLIB files
11368         case $cc_basename in
11369           xlc*)
11370           lt_prog_compiler_pic_CXX='-qnocommon'
11371           lt_prog_compiler_wl_CXX='-Wl,'
11372           ;;
11373         esac
11374       ;;
11375      dgux*)
11376	case $cc_basename in
11377	  ec++*)
11378	    lt_prog_compiler_pic_CXX='-KPIC'
11379	    ;;
11380	  ghcx*)
11381	    # Green Hills C++ Compiler
11382	    lt_prog_compiler_pic_CXX='-pic'
11383	    ;;
11384	  *)
11385	    ;;
11386	esac
11387	;;
11388      freebsd* | kfreebsd*-gnu | dragonfly*)
11389	# FreeBSD uses GNU C++
11390	;;
11391      hpux9* | hpux10* | hpux11*)
11392	case $cc_basename in
11393	  CC*)
11394	    lt_prog_compiler_wl_CXX='-Wl,'
11395	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11396	    if test "$host_cpu" != ia64; then
11397	      lt_prog_compiler_pic_CXX='+Z'
11398	    fi
11399	    ;;
11400	  aCC*)
11401	    lt_prog_compiler_wl_CXX='-Wl,'
11402	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11403	    case $host_cpu in
11404	    hppa*64*|ia64*)
11405	      # +Z the default
11406	      ;;
11407	    *)
11408	      lt_prog_compiler_pic_CXX='+Z'
11409	      ;;
11410	    esac
11411	    ;;
11412	  *)
11413	    ;;
11414	esac
11415	;;
11416      interix*)
11417	# This is c89, which is MS Visual C++ (no shared libs)
11418	# Anyone wants to do a port?
11419	;;
11420      irix5* | irix6* | nonstopux*)
11421	case $cc_basename in
11422	  CC*)
11423	    lt_prog_compiler_wl_CXX='-Wl,'
11424	    lt_prog_compiler_static_CXX='-non_shared'
11425	    # CC pic flag -KPIC is the default.
11426	    ;;
11427	  *)
11428	    ;;
11429	esac
11430	;;
11431      linux*)
11432	case $cc_basename in
11433	  KCC*)
11434	    # KAI C++ Compiler
11435	    lt_prog_compiler_wl_CXX='--backend -Wl,'
11436	    lt_prog_compiler_pic_CXX='-fPIC'
11437	    ;;
11438	  icpc* | ecpc*)
11439	    # Intel C++
11440	    lt_prog_compiler_wl_CXX='-Wl,'
11441	    lt_prog_compiler_pic_CXX='-KPIC'
11442	    lt_prog_compiler_static_CXX='-static'
11443	    ;;
11444	  pgCC*)
11445	    # Portland Group C++ compiler.
11446	    lt_prog_compiler_wl_CXX='-Wl,'
11447	    lt_prog_compiler_pic_CXX='-fpic'
11448	    lt_prog_compiler_static_CXX='-Bstatic'
11449	    ;;
11450	  cxx*)
11451	    # Compaq C++
11452	    # Make sure the PIC flag is empty.  It appears that all Alpha
11453	    # Linux and Compaq Tru64 Unix objects are PIC.
11454	    lt_prog_compiler_pic_CXX=
11455	    lt_prog_compiler_static_CXX='-non_shared'
11456	    ;;
11457	  *)
11458	    ;;
11459	esac
11460	;;
11461      lynxos*)
11462	;;
11463      m88k*)
11464	;;
11465      mvs*)
11466	case $cc_basename in
11467	  cxx*)
11468	    lt_prog_compiler_pic_CXX='-W c,exportall'
11469	    ;;
11470	  *)
11471	    ;;
11472	esac
11473	;;
11474      netbsd*)
11475	;;
11476      osf3* | osf4* | osf5*)
11477	case $cc_basename in
11478	  KCC*)
11479	    lt_prog_compiler_wl_CXX='--backend -Wl,'
11480	    ;;
11481	  RCC*)
11482	    # Rational C++ 2.4.1
11483	    lt_prog_compiler_pic_CXX='-pic'
11484	    ;;
11485	  cxx*)
11486	    # Digital/Compaq C++
11487	    lt_prog_compiler_wl_CXX='-Wl,'
11488	    # Make sure the PIC flag is empty.  It appears that all Alpha
11489	    # Linux and Compaq Tru64 Unix objects are PIC.
11490	    lt_prog_compiler_pic_CXX=
11491	    lt_prog_compiler_static_CXX='-non_shared'
11492	    ;;
11493	  *)
11494	    ;;
11495	esac
11496	;;
11497      psos*)
11498	;;
11499      solaris*)
11500	case $cc_basename in
11501	  CC*)
11502	    # Sun C++ 4.2, 5.x and Centerline C++
11503	    lt_prog_compiler_pic_CXX='-KPIC'
11504	    lt_prog_compiler_static_CXX='-Bstatic'
11505	    lt_prog_compiler_wl_CXX='-Qoption ld '
11506	    ;;
11507	  gcx*)
11508	    # Green Hills C++ Compiler
11509	    lt_prog_compiler_pic_CXX='-PIC'
11510	    ;;
11511	  *)
11512	    ;;
11513	esac
11514	;;
11515      sunos4*)
11516	case $cc_basename in
11517	  CC*)
11518	    # Sun C++ 4.x
11519	    lt_prog_compiler_pic_CXX='-pic'
11520	    lt_prog_compiler_static_CXX='-Bstatic'
11521	    ;;
11522	  lcc*)
11523	    # Lucid
11524	    lt_prog_compiler_pic_CXX='-pic'
11525	    ;;
11526	  *)
11527	    ;;
11528	esac
11529	;;
11530      tandem*)
11531	case $cc_basename in
11532	  NCC*)
11533	    # NonStop-UX NCC 3.20
11534	    lt_prog_compiler_pic_CXX='-KPIC'
11535	    ;;
11536	  *)
11537	    ;;
11538	esac
11539	;;
11540      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11541	case $cc_basename in
11542	  CC*)
11543	    lt_prog_compiler_wl_CXX='-Wl,'
11544	    lt_prog_compiler_pic_CXX='-KPIC'
11545	    lt_prog_compiler_static_CXX='-Bstatic'
11546	    ;;
11547	esac
11548	;;
11549      vxworks*)
11550	;;
11551      *)
11552	lt_prog_compiler_can_build_shared_CXX=no
11553	;;
11554    esac
11555  fi
11556
11557echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11558echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11559
11560#
11561# Check to make sure the PIC flag actually works.
11562#
11563if test -n "$lt_prog_compiler_pic_CXX"; then
11564
11565echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11566echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11567if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11568  echo $ECHO_N "(cached) $ECHO_C" >&6
11569else
11570  lt_prog_compiler_pic_works_CXX=no
11571  ac_outfile=conftest.$ac_objext
11572   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11573   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11574   # Insert the option either (1) after the last *FLAGS variable, or
11575   # (2) before a word containing "conftest.", or (3) at the end.
11576   # Note that $ac_compile itself does not contain backslashes and begins
11577   # with a dollar sign (not a hyphen), so the echo should work correctly.
11578   # The option is referenced via a variable to avoid confusing sed.
11579   lt_compile=`echo "$ac_compile" | $SED \
11580   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11581   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11582   -e 's:$: $lt_compiler_flag:'`
11583   (eval echo "\"\$as_me:11583: $lt_compile\"" >&5)
11584   (eval "$lt_compile" 2>conftest.err)
11585   ac_status=$?
11586   cat conftest.err >&5
11587   echo "$as_me:11587: \$? = $ac_status" >&5
11588   if (exit $ac_status) && test -s "$ac_outfile"; then
11589     # The compiler can only warn and ignore the option if not recognized
11590     # So say no if there are warnings other than the usual output.
11591     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11592     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11593     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11594       lt_prog_compiler_pic_works_CXX=yes
11595     fi
11596   fi
11597   $rm conftest*
11598
11599fi
11600echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11601echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11602
11603if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11604    case $lt_prog_compiler_pic_CXX in
11605     "" | " "*) ;;
11606     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11607     esac
11608else
11609    lt_prog_compiler_pic_CXX=
11610     lt_prog_compiler_can_build_shared_CXX=no
11611fi
11612
11613fi
11614case $host_os in
11615  # For platforms which do not support PIC, -DPIC is meaningless:
11616  *djgpp*)
11617    lt_prog_compiler_pic_CXX=
11618    ;;
11619  *)
11620    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11621    ;;
11622esac
11623
11624#
11625# Check to make sure the static flag actually works.
11626#
11627wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11628echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11629echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11630if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11631  echo $ECHO_N "(cached) $ECHO_C" >&6
11632else
11633  lt_prog_compiler_static_works_CXX=no
11634   save_LDFLAGS="$LDFLAGS"
11635   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11636   printf "$lt_simple_link_test_code" > conftest.$ac_ext
11637   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11638     # The linker can only warn and ignore the option if not recognized
11639     # So say no if there are warnings
11640     if test -s conftest.err; then
11641       # Append any errors to the config.log.
11642       cat conftest.err 1>&5
11643       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11644       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11645       if diff conftest.exp conftest.er2 >/dev/null; then
11646         lt_prog_compiler_static_works_CXX=yes
11647       fi
11648     else
11649       lt_prog_compiler_static_works_CXX=yes
11650     fi
11651   fi
11652   $rm conftest*
11653   LDFLAGS="$save_LDFLAGS"
11654
11655fi
11656echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11657echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
11658
11659if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11660    :
11661else
11662    lt_prog_compiler_static_CXX=
11663fi
11664
11665
11666echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11667echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11668if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11669  echo $ECHO_N "(cached) $ECHO_C" >&6
11670else
11671  lt_cv_prog_compiler_c_o_CXX=no
11672   $rm -r conftest 2>/dev/null
11673   mkdir conftest
11674   cd conftest
11675   mkdir out
11676   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11677
11678   lt_compiler_flag="-o out/conftest2.$ac_objext"
11679   # Insert the option either (1) after the last *FLAGS variable, or
11680   # (2) before a word containing "conftest.", or (3) at the end.
11681   # Note that $ac_compile itself does not contain backslashes and begins
11682   # with a dollar sign (not a hyphen), so the echo should work correctly.
11683   lt_compile=`echo "$ac_compile" | $SED \
11684   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11685   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11686   -e 's:$: $lt_compiler_flag:'`
11687   (eval echo "\"\$as_me:11687: $lt_compile\"" >&5)
11688   (eval "$lt_compile" 2>out/conftest.err)
11689   ac_status=$?
11690   cat out/conftest.err >&5
11691   echo "$as_me:11691: \$? = $ac_status" >&5
11692   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11693   then
11694     # The compiler can only warn and ignore the option if not recognized
11695     # So say no if there are warnings
11696     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11697     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11698     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11699       lt_cv_prog_compiler_c_o_CXX=yes
11700     fi
11701   fi
11702   chmod u+w . 2>&5
11703   $rm conftest*
11704   # SGI C++ compiler will create directory out/ii_files/ for
11705   # template instantiation
11706   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11707   $rm out/* && rmdir out
11708   cd ..
11709   rmdir conftest
11710   $rm conftest*
11711
11712fi
11713echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11714echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11715
11716
11717hard_links="nottested"
11718if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11719  # do not overwrite the value of need_locks provided by the user
11720  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11721echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11722  hard_links=yes
11723  $rm conftest*
11724  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11725  touch conftest.a
11726  ln conftest.a conftest.b 2>&5 || hard_links=no
11727  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11728  echo "$as_me:$LINENO: result: $hard_links" >&5
11729echo "${ECHO_T}$hard_links" >&6
11730  if test "$hard_links" = no; then
11731    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11732echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11733    need_locks=warn
11734  fi
11735else
11736  need_locks=no
11737fi
11738
11739echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11740echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11741
11742  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11743  case $host_os in
11744  aix4* | aix5*)
11745    # If we're using GNU nm, then we don't want the "-C" option.
11746    # -C means demangle to AIX nm, but means don't demangle with GNU nm
11747    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11748      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'
11749    else
11750      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'
11751    fi
11752    ;;
11753  pw32*)
11754    export_symbols_cmds_CXX="$ltdll_cmds"
11755  ;;
11756  cygwin* | mingw*)
11757    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'
11758  ;;
11759  *)
11760    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11761  ;;
11762  esac
11763
11764echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11765echo "${ECHO_T}$ld_shlibs_CXX" >&6
11766test "$ld_shlibs_CXX" = no && can_build_shared=no
11767
11768#
11769# Do we need to explicitly link libc?
11770#
11771case "x$archive_cmds_need_lc_CXX" in
11772x|xyes)
11773  # Assume -lc should be added
11774  archive_cmds_need_lc_CXX=yes
11775
11776  if test "$enable_shared" = yes && test "$GCC" = yes; then
11777    case $archive_cmds_CXX in
11778    *'~'*)
11779      # FIXME: we may have to deal with multi-command sequences.
11780      ;;
11781    '$CC '*)
11782      # Test whether the compiler implicitly links with -lc since on some
11783      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11784      # to ld, don't add -lc before -lgcc.
11785      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11786echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11787      $rm conftest*
11788      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11789
11790      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11791  (eval $ac_compile) 2>&5
11792  ac_status=$?
11793  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11794  (exit $ac_status); } 2>conftest.err; then
11795        soname=conftest
11796        lib=conftest
11797        libobjs=conftest.$ac_objext
11798        deplibs=
11799        wl=$lt_prog_compiler_wl_CXX
11800	pic_flag=$lt_prog_compiler_pic_CXX
11801        compiler_flags=-v
11802        linker_flags=-v
11803        verstring=
11804        output_objdir=.
11805        libname=conftest
11806        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11807        allow_undefined_flag_CXX=
11808        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11809  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11810  ac_status=$?
11811  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11812  (exit $ac_status); }
11813        then
11814	  archive_cmds_need_lc_CXX=no
11815        else
11816	  archive_cmds_need_lc_CXX=yes
11817        fi
11818        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11819      else
11820        cat conftest.err 1>&5
11821      fi
11822      $rm conftest*
11823      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11824echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11825      ;;
11826    esac
11827  fi
11828  ;;
11829esac
11830
11831echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11832echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11833library_names_spec=
11834libname_spec='lib$name'
11835soname_spec=
11836shrext_cmds=".so"
11837postinstall_cmds=
11838postuninstall_cmds=
11839finish_cmds=
11840finish_eval=
11841shlibpath_var=
11842shlibpath_overrides_runpath=unknown
11843version_type=none
11844dynamic_linker="$host_os ld.so"
11845sys_lib_dlsearch_path_spec="/lib /usr/lib"
11846if test "$GCC" = yes; then
11847  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11848  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11849    # if the path contains ";" then we assume it to be the separator
11850    # otherwise default to the standard path separator (i.e. ":") - it is
11851    # assumed that no part of a normal pathname contains ";" but that should
11852    # okay in the real world where ";" in dirpaths is itself problematic.
11853    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11854  else
11855    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11856  fi
11857else
11858  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11859fi
11860need_lib_prefix=unknown
11861hardcode_into_libs=no
11862
11863# when you set need_version to no, make sure it does not cause -set_version
11864# flags to be left without arguments
11865need_version=unknown
11866
11867case $host_os in
11868aix3*)
11869  version_type=linux
11870  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11871  shlibpath_var=LIBPATH
11872
11873  # AIX 3 has no versioning support, so we append a major version to the name.
11874  soname_spec='${libname}${release}${shared_ext}$major'
11875  ;;
11876
11877aix4* | aix5*)
11878  version_type=linux
11879  need_lib_prefix=no
11880  need_version=no
11881  hardcode_into_libs=yes
11882  if test "$host_cpu" = ia64; then
11883    # AIX 5 supports IA64
11884    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11885    shlibpath_var=LD_LIBRARY_PATH
11886  else
11887    # With GCC up to 2.95.x, collect2 would create an import file
11888    # for dependence libraries.  The import file would start with
11889    # the line `#! .'.  This would cause the generated library to
11890    # depend on `.', always an invalid library.  This was fixed in
11891    # development snapshots of GCC prior to 3.0.
11892    case $host_os in
11893      aix4 | aix4.[01] | aix4.[01].*)
11894      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11895	   echo ' yes '
11896	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11897	:
11898      else
11899	can_build_shared=no
11900      fi
11901      ;;
11902    esac
11903    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11904    # soname into executable. Probably we can add versioning support to
11905    # collect2, so additional links can be useful in future.
11906    if test "$aix_use_runtimelinking" = yes; then
11907      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11908      # instead of lib<name>.a to let people know that these are not
11909      # typical AIX shared libraries.
11910      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11911    else
11912      # We preserve .a as extension for shared libraries through AIX4.2
11913      # and later when we are not doing run time linking.
11914      library_names_spec='${libname}${release}.a $libname.a'
11915      soname_spec='${libname}${release}${shared_ext}$major'
11916    fi
11917    shlibpath_var=LIBPATH
11918  fi
11919  ;;
11920
11921amigaos*)
11922  library_names_spec='$libname.ixlibrary $libname.a'
11923  # Create ${libname}_ixlibrary.a entries in /sys/libs.
11924  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'
11925  ;;
11926
11927beos*)
11928  library_names_spec='${libname}${shared_ext}'
11929  dynamic_linker="$host_os ld.so"
11930  shlibpath_var=LIBRARY_PATH
11931  ;;
11932
11933bsdi[45]*)
11934  version_type=linux
11935  need_version=no
11936  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11937  soname_spec='${libname}${release}${shared_ext}$major'
11938  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11939  shlibpath_var=LD_LIBRARY_PATH
11940  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11941  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11942  # the default ld.so.conf also contains /usr/contrib/lib and
11943  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11944  # libtool to hard-code these into programs
11945  ;;
11946
11947cygwin* | mingw* | pw32*)
11948  version_type=windows
11949  shrext_cmds=".dll"
11950  need_version=no
11951  need_lib_prefix=no
11952
11953  case $GCC,$host_os in
11954  yes,cygwin* | yes,mingw* | yes,pw32*)
11955    library_names_spec='$libname.dll.a'
11956    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11957    postinstall_cmds='base_file=`basename \${file}`~
11958      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11959      dldir=$destdir/`dirname \$dlpath`~
11960      test -d \$dldir || mkdir -p \$dldir~
11961      $install_prog $dir/$dlname \$dldir/$dlname~
11962      chmod a+x \$dldir/$dlname'
11963    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11964      dlpath=$dir/\$dldll~
11965       $rm \$dlpath'
11966    shlibpath_overrides_runpath=yes
11967
11968    case $host_os in
11969    cygwin*)
11970      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11971      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11972      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11973      ;;
11974    mingw*)
11975      # MinGW DLLs use traditional 'lib' prefix
11976      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11977      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11978      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11979        # It is most probably a Windows format PATH printed by
11980        # mingw gcc, but we are running on Cygwin. Gcc prints its search
11981        # path with ; separators, and with drive letters. We can handle the
11982        # drive letters (cygwin fileutils understands them), so leave them,
11983        # especially as we might pass files found there to a mingw objdump,
11984        # which wouldn't understand a cygwinified path. Ahh.
11985        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11986      else
11987        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11988      fi
11989      ;;
11990    pw32*)
11991      # pw32 DLLs use 'pw' prefix rather than 'lib'
11992      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11993      ;;
11994    esac
11995    ;;
11996
11997  *)
11998    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11999    ;;
12000  esac
12001  dynamic_linker='Win32 ld.exe'
12002  # FIXME: first we should search . and the directory the executable is in
12003  shlibpath_var=PATH
12004  ;;
12005
12006darwin* | rhapsody*)
12007  dynamic_linker="$host_os dyld"
12008  version_type=darwin
12009  need_lib_prefix=no
12010  need_version=no
12011  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12012  soname_spec='${libname}${release}${major}$shared_ext'
12013  shlibpath_overrides_runpath=yes
12014  shlibpath_var=DYLD_LIBRARY_PATH
12015  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12016  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12017  if test "$GCC" = yes; then
12018    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"`
12019  else
12020    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12021  fi
12022  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12023  ;;
12024
12025dgux*)
12026  version_type=linux
12027  need_lib_prefix=no
12028  need_version=no
12029  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12030  soname_spec='${libname}${release}${shared_ext}$major'
12031  shlibpath_var=LD_LIBRARY_PATH
12032  ;;
12033
12034freebsd1*)
12035  dynamic_linker=no
12036  ;;
12037
12038kfreebsd*-gnu)
12039  version_type=linux
12040  need_lib_prefix=no
12041  need_version=no
12042  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12043  soname_spec='${libname}${release}${shared_ext}$major'
12044  shlibpath_var=LD_LIBRARY_PATH
12045  shlibpath_overrides_runpath=no
12046  hardcode_into_libs=yes
12047  dynamic_linker='GNU ld.so'
12048  ;;
12049
12050freebsd* | dragonfly*)
12051  # DragonFly does not have aout.  When/if they implement a new
12052  # versioning mechanism, adjust this.
12053  if test -x /usr/bin/objformat; then
12054    objformat=`/usr/bin/objformat`
12055  else
12056    case $host_os in
12057    freebsd[123]*) objformat=aout ;;
12058    *) objformat=elf ;;
12059    esac
12060  fi
12061  version_type=freebsd-$objformat
12062  case $version_type in
12063    freebsd-elf*)
12064      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12065      need_version=no
12066      need_lib_prefix=no
12067      ;;
12068    freebsd-*)
12069      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12070      need_version=yes
12071      ;;
12072  esac
12073  shlibpath_var=LD_LIBRARY_PATH
12074  case $host_os in
12075  freebsd2*)
12076    shlibpath_overrides_runpath=yes
12077    ;;
12078  freebsd3.[01]* | freebsdelf3.[01]*)
12079    shlibpath_overrides_runpath=yes
12080    hardcode_into_libs=yes
12081    ;;
12082  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12083  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12084    shlibpath_overrides_runpath=no
12085    hardcode_into_libs=yes
12086    ;;
12087  freebsd*) # from 4.6 on
12088    shlibpath_overrides_runpath=yes
12089    hardcode_into_libs=yes
12090    ;;
12091  esac
12092  ;;
12093
12094gnu*)
12095  version_type=linux
12096  need_lib_prefix=no
12097  need_version=no
12098  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12099  soname_spec='${libname}${release}${shared_ext}$major'
12100  shlibpath_var=LD_LIBRARY_PATH
12101  hardcode_into_libs=yes
12102  ;;
12103
12104hpux9* | hpux10* | hpux11*)
12105  # Give a soname corresponding to the major version so that dld.sl refuses to
12106  # link against other versions.
12107  version_type=sunos
12108  need_lib_prefix=no
12109  need_version=no
12110  case $host_cpu in
12111  ia64*)
12112    shrext_cmds='.so'
12113    hardcode_into_libs=yes
12114    dynamic_linker="$host_os dld.so"
12115    shlibpath_var=LD_LIBRARY_PATH
12116    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12117    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12118    soname_spec='${libname}${release}${shared_ext}$major'
12119    if test "X$HPUX_IA64_MODE" = X32; then
12120      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12121    else
12122      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12123    fi
12124    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12125    ;;
12126   hppa*64*)
12127     shrext_cmds='.sl'
12128     hardcode_into_libs=yes
12129     dynamic_linker="$host_os dld.sl"
12130     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12131     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12132     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12133     soname_spec='${libname}${release}${shared_ext}$major'
12134     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12135     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12136     ;;
12137   *)
12138    shrext_cmds='.sl'
12139    dynamic_linker="$host_os dld.sl"
12140    shlibpath_var=SHLIB_PATH
12141    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12142    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12143    soname_spec='${libname}${release}${shared_ext}$major'
12144    ;;
12145  esac
12146  # HP-UX runs *really* slowly unless shared libraries are mode 555.
12147  postinstall_cmds='chmod 555 $lib'
12148  ;;
12149
12150interix3*)
12151  version_type=linux
12152  need_lib_prefix=no
12153  need_version=no
12154  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12155  soname_spec='${libname}${release}${shared_ext}$major'
12156  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12157  shlibpath_var=LD_LIBRARY_PATH
12158  shlibpath_overrides_runpath=no
12159  hardcode_into_libs=yes
12160  ;;
12161
12162irix5* | irix6* | nonstopux*)
12163  case $host_os in
12164    nonstopux*) version_type=nonstopux ;;
12165    *)
12166	if test "$lt_cv_prog_gnu_ld" = yes; then
12167		version_type=linux
12168	else
12169		version_type=irix
12170	fi ;;
12171  esac
12172  need_lib_prefix=no
12173  need_version=no
12174  soname_spec='${libname}${release}${shared_ext}$major'
12175  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12176  case $host_os in
12177  irix5* | nonstopux*)
12178    libsuff= shlibsuff=
12179    ;;
12180  *)
12181    case $LD in # libtool.m4 will add one of these switches to LD
12182    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12183      libsuff= shlibsuff= libmagic=32-bit;;
12184    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12185      libsuff=32 shlibsuff=N32 libmagic=N32;;
12186    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12187      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12188    *) libsuff= shlibsuff= libmagic=never-match;;
12189    esac
12190    ;;
12191  esac
12192  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12193  shlibpath_overrides_runpath=no
12194  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12195  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12196  hardcode_into_libs=yes
12197  ;;
12198
12199# No shared lib support for Linux oldld, aout, or coff.
12200linux*oldld* | linux*aout* | linux*coff*)
12201  dynamic_linker=no
12202  ;;
12203
12204# This must be Linux ELF.
12205linux*)
12206  version_type=linux
12207  need_lib_prefix=no
12208  need_version=no
12209  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12210  soname_spec='${libname}${release}${shared_ext}$major'
12211  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12212  shlibpath_var=LD_LIBRARY_PATH
12213  shlibpath_overrides_runpath=no
12214  # This implies no fast_install, which is unacceptable.
12215  # Some rework will be needed to allow for fast_install
12216  # before this can be enabled.
12217  hardcode_into_libs=yes
12218
12219  # find out which ABI we are using
12220  libsuff=
12221  case "$host_cpu" in
12222  x86_64*|s390x*|powerpc64*)
12223    echo '#line 12223 "configure"' > conftest.$ac_ext
12224    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12225  (eval $ac_compile) 2>&5
12226  ac_status=$?
12227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12228  (exit $ac_status); }; then
12229      case `/usr/bin/file conftest.$ac_objext` in
12230      *64-bit*)
12231        libsuff=64
12232        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
12233        ;;
12234      esac
12235    fi
12236    rm -rf conftest*
12237    ;;
12238  esac
12239
12240  # Append ld.so.conf contents to the search path
12241  if test -f /etc/ld.so.conf; then
12242    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12243    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
12244  fi
12245
12246  # We used to test for /lib/ld.so.1 and disable shared libraries on
12247  # powerpc, because MkLinux only supported shared libraries with the
12248  # GNU dynamic linker.  Since this was broken with cross compilers,
12249  # most powerpc-linux boxes support dynamic linking these days and
12250  # people can always --disable-shared, the test was removed, and we
12251  # assume the GNU/Linux dynamic linker is in use.
12252  dynamic_linker='GNU/Linux ld.so'
12253  ;;
12254
12255knetbsd*-gnu)
12256  version_type=linux
12257  need_lib_prefix=no
12258  need_version=no
12259  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12260  soname_spec='${libname}${release}${shared_ext}$major'
12261  shlibpath_var=LD_LIBRARY_PATH
12262  shlibpath_overrides_runpath=no
12263  hardcode_into_libs=yes
12264  dynamic_linker='GNU ld.so'
12265  ;;
12266
12267netbsd*)
12268  version_type=sunos
12269  need_lib_prefix=no
12270  need_version=no
12271  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12272    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12273    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12274    dynamic_linker='NetBSD (a.out) ld.so'
12275  else
12276    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12277    soname_spec='${libname}${release}${shared_ext}$major'
12278    dynamic_linker='NetBSD ld.elf_so'
12279  fi
12280  shlibpath_var=LD_LIBRARY_PATH
12281  shlibpath_overrides_runpath=yes
12282  hardcode_into_libs=yes
12283  ;;
12284
12285newsos6)
12286  version_type=linux
12287  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12288  shlibpath_var=LD_LIBRARY_PATH
12289  shlibpath_overrides_runpath=yes
12290  ;;
12291
12292nto-qnx*)
12293  version_type=linux
12294  need_lib_prefix=no
12295  need_version=no
12296  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12297  soname_spec='${libname}${release}${shared_ext}$major'
12298  shlibpath_var=LD_LIBRARY_PATH
12299  shlibpath_overrides_runpath=yes
12300  ;;
12301
12302openbsd*)
12303  version_type=sunos
12304  sys_lib_dlsearch_path_spec="/usr/lib"
12305  need_lib_prefix=no
12306  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12307  case $host_os in
12308    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12309    *)                         need_version=no  ;;
12310  esac
12311  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12312  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12313  shlibpath_var=LD_LIBRARY_PATH
12314  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12315    case $host_os in
12316      openbsd2.[89] | openbsd2.[89].*)
12317	shlibpath_overrides_runpath=no
12318	;;
12319      *)
12320	shlibpath_overrides_runpath=yes
12321	;;
12322      esac
12323  else
12324    shlibpath_overrides_runpath=yes
12325  fi
12326  ;;
12327
12328os2*)
12329  libname_spec='$name'
12330  shrext_cmds=".dll"
12331  need_lib_prefix=no
12332  library_names_spec='$libname${shared_ext} $libname.a'
12333  dynamic_linker='OS/2 ld.exe'
12334  shlibpath_var=LIBPATH
12335  ;;
12336
12337osf3* | osf4* | osf5*)
12338  version_type=osf
12339  need_lib_prefix=no
12340  need_version=no
12341  soname_spec='${libname}${release}${shared_ext}$major'
12342  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12343  shlibpath_var=LD_LIBRARY_PATH
12344  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12345  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12346  ;;
12347
12348solaris*)
12349  version_type=linux
12350  need_lib_prefix=no
12351  need_version=no
12352  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12353  soname_spec='${libname}${release}${shared_ext}$major'
12354  shlibpath_var=LD_LIBRARY_PATH
12355  shlibpath_overrides_runpath=yes
12356  hardcode_into_libs=yes
12357  # ldd complains unless libraries are executable
12358  postinstall_cmds='chmod +x $lib'
12359  ;;
12360
12361sunos4*)
12362  version_type=sunos
12363  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12364  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12365  shlibpath_var=LD_LIBRARY_PATH
12366  shlibpath_overrides_runpath=yes
12367  if test "$with_gnu_ld" = yes; then
12368    need_lib_prefix=no
12369  fi
12370  need_version=yes
12371  ;;
12372
12373sysv4 | sysv4.3*)
12374  version_type=linux
12375  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12376  soname_spec='${libname}${release}${shared_ext}$major'
12377  shlibpath_var=LD_LIBRARY_PATH
12378  case $host_vendor in
12379    sni)
12380      shlibpath_overrides_runpath=no
12381      need_lib_prefix=no
12382      export_dynamic_flag_spec='${wl}-Blargedynsym'
12383      runpath_var=LD_RUN_PATH
12384      ;;
12385    siemens)
12386      need_lib_prefix=no
12387      ;;
12388    motorola)
12389      need_lib_prefix=no
12390      need_version=no
12391      shlibpath_overrides_runpath=no
12392      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12393      ;;
12394  esac
12395  ;;
12396
12397sysv4*MP*)
12398  if test -d /usr/nec ;then
12399    version_type=linux
12400    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12401    soname_spec='$libname${shared_ext}.$major'
12402    shlibpath_var=LD_LIBRARY_PATH
12403  fi
12404  ;;
12405
12406sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12407  version_type=freebsd-elf
12408  need_lib_prefix=no
12409  need_version=no
12410  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12411  soname_spec='${libname}${release}${shared_ext}$major'
12412  shlibpath_var=LD_LIBRARY_PATH
12413  hardcode_into_libs=yes
12414  if test "$with_gnu_ld" = yes; then
12415    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12416    shlibpath_overrides_runpath=no
12417  else
12418    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12419    shlibpath_overrides_runpath=yes
12420    case $host_os in
12421      sco3.2v5*)
12422        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12423	;;
12424    esac
12425  fi
12426  sys_lib_dlsearch_path_spec='/usr/lib'
12427  ;;
12428
12429uts4*)
12430  version_type=linux
12431  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12432  soname_spec='${libname}${release}${shared_ext}$major'
12433  shlibpath_var=LD_LIBRARY_PATH
12434  ;;
12435
12436*)
12437  dynamic_linker=no
12438  ;;
12439esac
12440echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12441echo "${ECHO_T}$dynamic_linker" >&6
12442test "$dynamic_linker" = no && can_build_shared=no
12443
12444variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12445if test "$GCC" = yes; then
12446  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12447fi
12448
12449echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12450echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12451hardcode_action_CXX=
12452if test -n "$hardcode_libdir_flag_spec_CXX" || \
12453   test -n "$runpath_var_CXX" || \
12454   test "X$hardcode_automatic_CXX" = "Xyes" ; then
12455
12456  # We can hardcode non-existant directories.
12457  if test "$hardcode_direct_CXX" != no &&
12458     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12459     # have to relink, otherwise we might link with an installed library
12460     # when we should be linking with a yet-to-be-installed one
12461     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12462     test "$hardcode_minus_L_CXX" != no; then
12463    # Linking always hardcodes the temporary library directory.
12464    hardcode_action_CXX=relink
12465  else
12466    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12467    hardcode_action_CXX=immediate
12468  fi
12469else
12470  # We cannot hardcode anything, or else we can only hardcode existing
12471  # directories.
12472  hardcode_action_CXX=unsupported
12473fi
12474echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12475echo "${ECHO_T}$hardcode_action_CXX" >&6
12476
12477if test "$hardcode_action_CXX" = relink; then
12478  # Fast installation is not supported
12479  enable_fast_install=no
12480elif test "$shlibpath_overrides_runpath" = yes ||
12481     test "$enable_shared" = no; then
12482  # Fast installation is not necessary
12483  enable_fast_install=needless
12484fi
12485
12486
12487# The else clause should only fire when bootstrapping the
12488# libtool distribution, otherwise you forgot to ship ltmain.sh
12489# with your package, and you will get complaints that there are
12490# no rules to generate ltmain.sh.
12491if test -f "$ltmain"; then
12492  # See if we are running on zsh, and set the options which allow our commands through
12493  # without removal of \ escapes.
12494  if test -n "${ZSH_VERSION+set}" ; then
12495    setopt NO_GLOB_SUBST
12496  fi
12497  # Now quote all the things that may contain metacharacters while being
12498  # careful not to overquote the AC_SUBSTed values.  We take copies of the
12499  # variables and quote the copies for generation of the libtool script.
12500  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12501    SED SHELL STRIP \
12502    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12503    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12504    deplibs_check_method reload_flag reload_cmds need_locks \
12505    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12506    lt_cv_sys_global_symbol_to_c_name_address \
12507    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12508    old_postinstall_cmds old_postuninstall_cmds \
12509    compiler_CXX \
12510    CC_CXX \
12511    LD_CXX \
12512    lt_prog_compiler_wl_CXX \
12513    lt_prog_compiler_pic_CXX \
12514    lt_prog_compiler_static_CXX \
12515    lt_prog_compiler_no_builtin_flag_CXX \
12516    export_dynamic_flag_spec_CXX \
12517    thread_safe_flag_spec_CXX \
12518    whole_archive_flag_spec_CXX \
12519    enable_shared_with_static_runtimes_CXX \
12520    old_archive_cmds_CXX \
12521    old_archive_from_new_cmds_CXX \
12522    predep_objects_CXX \
12523    postdep_objects_CXX \
12524    predeps_CXX \
12525    postdeps_CXX \
12526    compiler_lib_search_path_CXX \
12527    archive_cmds_CXX \
12528    archive_expsym_cmds_CXX \
12529    postinstall_cmds_CXX \
12530    postuninstall_cmds_CXX \
12531    old_archive_from_expsyms_cmds_CXX \
12532    allow_undefined_flag_CXX \
12533    no_undefined_flag_CXX \
12534    export_symbols_cmds_CXX \
12535    hardcode_libdir_flag_spec_CXX \
12536    hardcode_libdir_flag_spec_ld_CXX \
12537    hardcode_libdir_separator_CXX \
12538    hardcode_automatic_CXX \
12539    module_cmds_CXX \
12540    module_expsym_cmds_CXX \
12541    lt_cv_prog_compiler_c_o_CXX \
12542    exclude_expsyms_CXX \
12543    include_expsyms_CXX; do
12544
12545    case $var in
12546    old_archive_cmds_CXX | \
12547    old_archive_from_new_cmds_CXX | \
12548    archive_cmds_CXX | \
12549    archive_expsym_cmds_CXX | \
12550    module_cmds_CXX | \
12551    module_expsym_cmds_CXX | \
12552    old_archive_from_expsyms_cmds_CXX | \
12553    export_symbols_cmds_CXX | \
12554    extract_expsyms_cmds | reload_cmds | finish_cmds | \
12555    postinstall_cmds | postuninstall_cmds | \
12556    old_postinstall_cmds | old_postuninstall_cmds | \
12557    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12558      # Double-quote double-evaled strings.
12559      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12560      ;;
12561    *)
12562      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12563      ;;
12564    esac
12565  done
12566
12567  case $lt_echo in
12568  *'\$0 --fallback-echo"')
12569    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12570    ;;
12571  esac
12572
12573cfgfile="$ofile"
12574
12575  cat <<__EOF__ >> "$cfgfile"
12576# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12577
12578# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12579
12580# Shell to use when invoking shell scripts.
12581SHELL=$lt_SHELL
12582
12583# Whether or not to build shared libraries.
12584build_libtool_libs=$enable_shared
12585
12586# Whether or not to build static libraries.
12587build_old_libs=$enable_static
12588
12589# Whether or not to add -lc for building shared libraries.
12590build_libtool_need_lc=$archive_cmds_need_lc_CXX
12591
12592# Whether or not to disallow shared libs when runtime libs are static
12593allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12594
12595# Whether or not to optimize for fast installation.
12596fast_install=$enable_fast_install
12597
12598# The host system.
12599host_alias=$host_alias
12600host=$host
12601host_os=$host_os
12602
12603# The build system.
12604build_alias=$build_alias
12605build=$build
12606build_os=$build_os
12607
12608# An echo program that does not interpret backslashes.
12609echo=$lt_echo
12610
12611# The archiver.
12612AR=$lt_AR
12613AR_FLAGS=$lt_AR_FLAGS
12614
12615# A C compiler.
12616LTCC=$lt_LTCC
12617
12618# LTCC compiler flags.
12619LTCFLAGS=$lt_LTCFLAGS
12620
12621# A language-specific compiler.
12622CC=$lt_compiler_CXX
12623
12624# Is the compiler the GNU C compiler?
12625with_gcc=$GCC_CXX
12626
12627gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
12628gcc_ver=\`gcc -dumpversion\`
12629
12630# An ERE matcher.
12631EGREP=$lt_EGREP
12632
12633# The linker used to build libraries.
12634LD=$lt_LD_CXX
12635
12636# Whether we need hard or soft links.
12637LN_S=$lt_LN_S
12638
12639# A BSD-compatible nm program.
12640NM=$lt_NM
12641
12642# A symbol stripping program
12643STRIP=$lt_STRIP
12644
12645# Used to examine libraries when file_magic_cmd begins "file"
12646MAGIC_CMD=$MAGIC_CMD
12647
12648# Used on cygwin: DLL creation program.
12649DLLTOOL="$DLLTOOL"
12650
12651# Used on cygwin: object dumper.
12652OBJDUMP="$OBJDUMP"
12653
12654# Used on cygwin: assembler.
12655AS="$AS"
12656
12657# The name of the directory that contains temporary libtool files.
12658objdir=$objdir
12659
12660# How to create reloadable object files.
12661reload_flag=$lt_reload_flag
12662reload_cmds=$lt_reload_cmds
12663
12664# How to pass a linker flag through the compiler.
12665wl=$lt_lt_prog_compiler_wl_CXX
12666
12667# Object file suffix (normally "o").
12668objext="$ac_objext"
12669
12670# Old archive suffix (normally "a").
12671libext="$libext"
12672
12673# Shared library suffix (normally ".so").
12674shrext_cmds='$shrext_cmds'
12675
12676# Executable file suffix (normally "").
12677exeext="$exeext"
12678
12679# Additional compiler flags for building library objects.
12680pic_flag=$lt_lt_prog_compiler_pic_CXX
12681pic_mode=$pic_mode
12682
12683# What is the maximum length of a command?
12684max_cmd_len=$lt_cv_sys_max_cmd_len
12685
12686# Does compiler simultaneously support -c and -o options?
12687compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12688
12689# Must we lock files when doing compilation?
12690need_locks=$lt_need_locks
12691
12692# Do we need the lib prefix for modules?
12693need_lib_prefix=$need_lib_prefix
12694
12695# Do we need a version for libraries?
12696need_version=$need_version
12697
12698# Whether dlopen is supported.
12699dlopen_support=$enable_dlopen
12700
12701# Whether dlopen of programs is supported.
12702dlopen_self=$enable_dlopen_self
12703
12704# Whether dlopen of statically linked programs is supported.
12705dlopen_self_static=$enable_dlopen_self_static
12706
12707# Compiler flag to prevent dynamic linking.
12708link_static_flag=$lt_lt_prog_compiler_static_CXX
12709
12710# Compiler flag to turn off builtin functions.
12711no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12712
12713# Compiler flag to allow reflexive dlopens.
12714export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12715
12716# Compiler flag to generate shared objects directly from archives.
12717whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12718
12719# Compiler flag to generate thread-safe objects.
12720thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12721
12722# Library versioning type.
12723version_type=$version_type
12724
12725# Format of library name prefix.
12726libname_spec=$lt_libname_spec
12727
12728# List of archive names.  First name is the real one, the rest are links.
12729# The last name is the one that the linker finds with -lNAME.
12730library_names_spec=$lt_library_names_spec
12731
12732# The coded name of the library, if different from the real name.
12733soname_spec=$lt_soname_spec
12734
12735# Commands used to build and install an old-style archive.
12736RANLIB=$lt_RANLIB
12737old_archive_cmds=$lt_old_archive_cmds_CXX
12738old_postinstall_cmds=$lt_old_postinstall_cmds
12739old_postuninstall_cmds=$lt_old_postuninstall_cmds
12740
12741# Create an old-style archive from a shared archive.
12742old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12743
12744# Create a temporary old-style archive to link instead of a shared archive.
12745old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12746
12747# Commands used to build and install a shared archive.
12748archive_cmds=$lt_archive_cmds_CXX
12749archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12750postinstall_cmds=$lt_postinstall_cmds
12751postuninstall_cmds=$lt_postuninstall_cmds
12752
12753# Commands used to build a loadable module (assumed same as above if empty)
12754module_cmds=$lt_module_cmds_CXX
12755module_expsym_cmds=$lt_module_expsym_cmds_CXX
12756
12757# Commands to strip libraries.
12758old_striplib=$lt_old_striplib
12759striplib=$lt_striplib
12760
12761# Dependencies to place before the objects being linked to create a
12762# shared library.
12763predep_objects=\`echo $lt_predep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
12764
12765# Dependencies to place after the objects being linked to create a
12766# shared library.
12767postdep_objects=\`echo $lt_postdep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
12768
12769# Dependencies to place before the objects being linked to create a
12770# shared library.
12771predeps=$lt_predeps_CXX
12772
12773# Dependencies to place after the objects being linked to create a
12774# shared library.
12775postdeps=$lt_postdeps_CXX
12776
12777# The library search path used internally by the compiler when linking
12778# a shared library.
12779compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
12780
12781# Method to check whether dependent libraries are shared objects.
12782deplibs_check_method=$lt_deplibs_check_method
12783
12784# Command to use when deplibs_check_method == file_magic.
12785file_magic_cmd=$lt_file_magic_cmd
12786
12787# Flag that allows shared libraries with undefined symbols to be built.
12788allow_undefined_flag=$lt_allow_undefined_flag_CXX
12789
12790# Flag that forces no undefined symbols.
12791no_undefined_flag=$lt_no_undefined_flag_CXX
12792
12793# Commands used to finish a libtool library installation in a directory.
12794finish_cmds=$lt_finish_cmds
12795
12796# Same as above, but a single script fragment to be evaled but not shown.
12797finish_eval=$lt_finish_eval
12798
12799# Take the output of nm and produce a listing of raw symbols and C names.
12800global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12801
12802# Transform the output of nm in a proper C declaration
12803global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12804
12805# Transform the output of nm in a C name address pair
12806global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12807
12808# This is the shared library runtime path variable.
12809runpath_var=$runpath_var
12810
12811# This is the shared library path variable.
12812shlibpath_var=$shlibpath_var
12813
12814# Is shlibpath searched before the hard-coded library search path?
12815shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12816
12817# How to hardcode a shared library path into an executable.
12818hardcode_action=$hardcode_action_CXX
12819
12820# Whether we should hardcode library paths into libraries.
12821hardcode_into_libs=$hardcode_into_libs
12822
12823# Flag to hardcode \$libdir into a binary during linking.
12824# This must work even if \$libdir does not exist.
12825hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12826
12827# If ld is used when linking, flag to hardcode \$libdir into
12828# a binary during linking. This must work even if \$libdir does
12829# not exist.
12830hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12831
12832# Whether we need a single -rpath flag with a separated argument.
12833hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12834
12835# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12836# resulting binary.
12837hardcode_direct=$hardcode_direct_CXX
12838
12839# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12840# resulting binary.
12841hardcode_minus_L=$hardcode_minus_L_CXX
12842
12843# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12844# the resulting binary.
12845hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12846
12847# Set to yes if building a shared library automatically hardcodes DIR into the library
12848# and all subsequent libraries and executables linked against it.
12849hardcode_automatic=$hardcode_automatic_CXX
12850
12851# Variables whose values should be saved in libtool wrapper scripts and
12852# restored at relink time.
12853variables_saved_for_relink="$variables_saved_for_relink"
12854
12855# Whether libtool must link a program against all its dependency libraries.
12856link_all_deplibs=$link_all_deplibs_CXX
12857
12858# Compile-time system search path for libraries
12859sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
12860
12861# Run-time system search path for libraries
12862sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12863
12864# Fix the shell variable \$srcfile for the compiler.
12865fix_srcfile_path="$fix_srcfile_path_CXX"
12866
12867# Set to yes if exported symbols are required.
12868always_export_symbols=$always_export_symbols_CXX
12869
12870# The commands to list exported symbols.
12871export_symbols_cmds=$lt_export_symbols_cmds_CXX
12872
12873# The commands to extract the exported symbol list from a shared archive.
12874extract_expsyms_cmds=$lt_extract_expsyms_cmds
12875
12876# Symbols that should not be listed in the preloaded symbols.
12877exclude_expsyms=$lt_exclude_expsyms_CXX
12878
12879# Symbols that must always be exported.
12880include_expsyms=$lt_include_expsyms_CXX
12881
12882# ### END LIBTOOL TAG CONFIG: $tagname
12883
12884__EOF__
12885
12886
12887else
12888  # If there is no Makefile yet, we rely on a make rule to execute
12889  # `config.status --recheck' to rerun these tests and create the
12890  # libtool script then.
12891  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12892  if test -f "$ltmain_in"; then
12893    test -f Makefile && make "$ltmain"
12894  fi
12895fi
12896
12897
12898ac_ext=c
12899ac_cpp='$CPP $CPPFLAGS'
12900ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12901ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12902ac_compiler_gnu=$ac_cv_c_compiler_gnu
12903
12904CC=$lt_save_CC
12905LDCXX=$LD
12906LD=$lt_save_LD
12907GCC=$lt_save_GCC
12908with_gnu_ldcxx=$with_gnu_ld
12909with_gnu_ld=$lt_save_with_gnu_ld
12910lt_cv_path_LDCXX=$lt_cv_path_LD
12911lt_cv_path_LD=$lt_save_path_LD
12912lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12913lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12914
12915	else
12916	  tagname=""
12917	fi
12918	;;
12919
12920      F77)
12921	if test -n "$F77" && test "X$F77" != "Xno"; then
12922
12923ac_ext=f
12924ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12925ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12926ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12927
12928
12929archive_cmds_need_lc_F77=no
12930allow_undefined_flag_F77=
12931always_export_symbols_F77=no
12932archive_expsym_cmds_F77=
12933export_dynamic_flag_spec_F77=
12934hardcode_direct_F77=no
12935hardcode_libdir_flag_spec_F77=
12936hardcode_libdir_flag_spec_ld_F77=
12937hardcode_libdir_separator_F77=
12938hardcode_minus_L_F77=no
12939hardcode_automatic_F77=no
12940module_cmds_F77=
12941module_expsym_cmds_F77=
12942link_all_deplibs_F77=unknown
12943old_archive_cmds_F77=$old_archive_cmds
12944no_undefined_flag_F77=
12945whole_archive_flag_spec_F77=
12946enable_shared_with_static_runtimes_F77=no
12947
12948# Source file extension for f77 test sources.
12949ac_ext=f
12950
12951# Object file extension for compiled f77 test sources.
12952objext=o
12953objext_F77=$objext
12954
12955# Code to be used in simple compile tests
12956lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12957
12958# Code to be used in simple link tests
12959lt_simple_link_test_code="      program t\n      end\n"
12960
12961# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12962
12963# If no C compiler was specified, use CC.
12964LTCC=${LTCC-"$CC"}
12965
12966# If no C compiler flags were specified, use CFLAGS.
12967LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12968
12969# Allow CC to be a program name with arguments.
12970compiler=$CC
12971
12972
12973# save warnings/boilerplate of simple test code
12974ac_outfile=conftest.$ac_objext
12975printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12976eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12977_lt_compiler_boilerplate=`cat conftest.err`
12978$rm conftest*
12979
12980ac_outfile=conftest.$ac_objext
12981printf "$lt_simple_link_test_code" >conftest.$ac_ext
12982eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12983_lt_linker_boilerplate=`cat conftest.err`
12984$rm conftest*
12985
12986
12987# Allow CC to be a program name with arguments.
12988lt_save_CC="$CC"
12989CC=${F77-"f77"}
12990compiler=$CC
12991compiler_F77=$CC
12992for cc_temp in $compiler""; do
12993  case $cc_temp in
12994    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12995    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12996    \-*) ;;
12997    *) break;;
12998  esac
12999done
13000cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13001
13002
13003echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13004echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13005echo "$as_me:$LINENO: result: $can_build_shared" >&5
13006echo "${ECHO_T}$can_build_shared" >&6
13007
13008echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13009echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13010test "$can_build_shared" = "no" && enable_shared=no
13011
13012# On AIX, shared libraries and static libraries use the same namespace, and
13013# are all built from PIC.
13014case $host_os in
13015aix3*)
13016  test "$enable_shared" = yes && enable_static=no
13017  if test -n "$RANLIB"; then
13018    archive_cmds="$archive_cmds~\$RANLIB \$lib"
13019    postinstall_cmds='$RANLIB $lib'
13020  fi
13021  ;;
13022aix4* | aix5*)
13023  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13024    test "$enable_shared" = yes && enable_static=no
13025  fi
13026  ;;
13027esac
13028echo "$as_me:$LINENO: result: $enable_shared" >&5
13029echo "${ECHO_T}$enable_shared" >&6
13030
13031echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13032echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13033# Make sure either enable_shared or enable_static is yes.
13034test "$enable_shared" = yes || enable_static=yes
13035echo "$as_me:$LINENO: result: $enable_static" >&5
13036echo "${ECHO_T}$enable_static" >&6
13037
13038GCC_F77="$G77"
13039LD_F77="$LD"
13040
13041lt_prog_compiler_wl_F77=
13042lt_prog_compiler_pic_F77=
13043lt_prog_compiler_static_F77=
13044
13045echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13046echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13047
13048  if test "$GCC" = yes; then
13049    lt_prog_compiler_wl_F77='-Wl,'
13050    lt_prog_compiler_static_F77='-static'
13051
13052    case $host_os in
13053      aix*)
13054      # All AIX code is PIC.
13055      if test "$host_cpu" = ia64; then
13056	# AIX 5 now supports IA64 processor
13057	lt_prog_compiler_static_F77='-Bstatic'
13058      fi
13059      ;;
13060
13061    amigaos*)
13062      # FIXME: we need at least 68020 code to build shared libraries, but
13063      # adding the `-m68020' flag to GCC prevents building anything better,
13064      # like `-m68040'.
13065      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13066      ;;
13067
13068    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13069      # PIC is the default for these OSes.
13070      ;;
13071
13072    mingw* | pw32* | os2*)
13073      # This hack is so that the source file can tell whether it is being
13074      # built for inclusion in a dll (and should export symbols for example).
13075      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13076      ;;
13077
13078    darwin* | rhapsody*)
13079      # PIC is the default on this platform
13080      # Common symbols not allowed in MH_DYLIB files
13081      lt_prog_compiler_pic_F77='-fno-common'
13082      ;;
13083
13084    interix3*)
13085      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13086      # Instead, we relocate shared libraries at runtime.
13087      ;;
13088
13089    msdosdjgpp*)
13090      # Just because we use GCC doesn't mean we suddenly get shared libraries
13091      # on systems that don't support them.
13092      lt_prog_compiler_can_build_shared_F77=no
13093      enable_shared=no
13094      ;;
13095
13096    sysv4*MP*)
13097      if test -d /usr/nec; then
13098	lt_prog_compiler_pic_F77=-Kconform_pic
13099      fi
13100      ;;
13101
13102    hpux*)
13103      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13104      # not for PA HP-UX.
13105      case $host_cpu in
13106      hppa*64*|ia64*)
13107	# +Z the default
13108	;;
13109      *)
13110	lt_prog_compiler_pic_F77='-fPIC'
13111	;;
13112      esac
13113      ;;
13114
13115    *)
13116      lt_prog_compiler_pic_F77='-fPIC'
13117      ;;
13118    esac
13119  else
13120    # PORTME Check for flag to pass linker flags through the system compiler.
13121    case $host_os in
13122    aix*)
13123      lt_prog_compiler_wl_F77='-Wl,'
13124      if test "$host_cpu" = ia64; then
13125	# AIX 5 now supports IA64 processor
13126	lt_prog_compiler_static_F77='-Bstatic'
13127      else
13128	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13129      fi
13130      ;;
13131      darwin*)
13132        # PIC is the default on this platform
13133        # Common symbols not allowed in MH_DYLIB files
13134       case $cc_basename in
13135         xlc*)
13136         lt_prog_compiler_pic_F77='-qnocommon'
13137         lt_prog_compiler_wl_F77='-Wl,'
13138         ;;
13139       esac
13140       ;;
13141
13142    mingw* | pw32* | os2*)
13143      # This hack is so that the source file can tell whether it is being
13144      # built for inclusion in a dll (and should export symbols for example).
13145      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13146      ;;
13147
13148    hpux9* | hpux10* | hpux11*)
13149      lt_prog_compiler_wl_F77='-Wl,'
13150      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13151      # not for PA HP-UX.
13152      case $host_cpu in
13153      hppa*64*|ia64*)
13154	# +Z the default
13155	;;
13156      *)
13157	lt_prog_compiler_pic_F77='+Z'
13158	;;
13159      esac
13160      # Is there a better lt_prog_compiler_static that works with the bundled CC?
13161      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13162      ;;
13163
13164    irix5* | irix6* | nonstopux*)
13165      lt_prog_compiler_wl_F77='-Wl,'
13166      # PIC (with -KPIC) is the default.
13167      lt_prog_compiler_static_F77='-non_shared'
13168      ;;
13169
13170    newsos6)
13171      lt_prog_compiler_pic_F77='-KPIC'
13172      lt_prog_compiler_static_F77='-Bstatic'
13173      ;;
13174
13175    linux*)
13176      case $cc_basename in
13177      icc* | ecc*)
13178	lt_prog_compiler_wl_F77='-Wl,'
13179	lt_prog_compiler_pic_F77='-KPIC'
13180	lt_prog_compiler_static_F77='-static'
13181        ;;
13182      pgcc* | pgf77* | pgf90* | pgf95*)
13183        # Portland Group compilers (*not* the Pentium gcc compiler,
13184	# which looks to be a dead project)
13185	lt_prog_compiler_wl_F77='-Wl,'
13186	lt_prog_compiler_pic_F77='-fpic'
13187	lt_prog_compiler_static_F77='-Bstatic'
13188        ;;
13189      ccc*)
13190        lt_prog_compiler_wl_F77='-Wl,'
13191        # All Alpha code is PIC.
13192        lt_prog_compiler_static_F77='-non_shared'
13193        ;;
13194      esac
13195      ;;
13196
13197    osf3* | osf4* | osf5*)
13198      lt_prog_compiler_wl_F77='-Wl,'
13199      # All OSF/1 code is PIC.
13200      lt_prog_compiler_static_F77='-non_shared'
13201      ;;
13202
13203    solaris*)
13204      lt_prog_compiler_pic_F77='-KPIC'
13205      lt_prog_compiler_static_F77='-Bstatic'
13206      case $cc_basename in
13207      f77* | f90* | f95*)
13208	lt_prog_compiler_wl_F77='-Qoption ld ';;
13209      *)
13210	lt_prog_compiler_wl_F77='-Wl,';;
13211      esac
13212      ;;
13213
13214    sunos4*)
13215      lt_prog_compiler_wl_F77='-Qoption ld '
13216      lt_prog_compiler_pic_F77='-PIC'
13217      lt_prog_compiler_static_F77='-Bstatic'
13218      ;;
13219
13220    sysv4 | sysv4.2uw2* | sysv4.3*)
13221      lt_prog_compiler_wl_F77='-Wl,'
13222      lt_prog_compiler_pic_F77='-KPIC'
13223      lt_prog_compiler_static_F77='-Bstatic'
13224      ;;
13225
13226    sysv4*MP*)
13227      if test -d /usr/nec ;then
13228	lt_prog_compiler_pic_F77='-Kconform_pic'
13229	lt_prog_compiler_static_F77='-Bstatic'
13230      fi
13231      ;;
13232
13233    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13234      lt_prog_compiler_wl_F77='-Wl,'
13235      lt_prog_compiler_pic_F77='-KPIC'
13236      lt_prog_compiler_static_F77='-Bstatic'
13237      ;;
13238
13239    unicos*)
13240      lt_prog_compiler_wl_F77='-Wl,'
13241      lt_prog_compiler_can_build_shared_F77=no
13242      ;;
13243
13244    uts4*)
13245      lt_prog_compiler_pic_F77='-pic'
13246      lt_prog_compiler_static_F77='-Bstatic'
13247      ;;
13248
13249    *)
13250      lt_prog_compiler_can_build_shared_F77=no
13251      ;;
13252    esac
13253  fi
13254
13255echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13256echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13257
13258#
13259# Check to make sure the PIC flag actually works.
13260#
13261if test -n "$lt_prog_compiler_pic_F77"; then
13262
13263echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13264echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13265if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13266  echo $ECHO_N "(cached) $ECHO_C" >&6
13267else
13268  lt_prog_compiler_pic_works_F77=no
13269  ac_outfile=conftest.$ac_objext
13270   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13271   lt_compiler_flag="$lt_prog_compiler_pic_F77"
13272   # Insert the option either (1) after the last *FLAGS variable, or
13273   # (2) before a word containing "conftest.", or (3) at the end.
13274   # Note that $ac_compile itself does not contain backslashes and begins
13275   # with a dollar sign (not a hyphen), so the echo should work correctly.
13276   # The option is referenced via a variable to avoid confusing sed.
13277   lt_compile=`echo "$ac_compile" | $SED \
13278   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13279   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13280   -e 's:$: $lt_compiler_flag:'`
13281   (eval echo "\"\$as_me:13281: $lt_compile\"" >&5)
13282   (eval "$lt_compile" 2>conftest.err)
13283   ac_status=$?
13284   cat conftest.err >&5
13285   echo "$as_me:13285: \$? = $ac_status" >&5
13286   if (exit $ac_status) && test -s "$ac_outfile"; then
13287     # The compiler can only warn and ignore the option if not recognized
13288     # So say no if there are warnings other than the usual output.
13289     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13290     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13291     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13292       lt_prog_compiler_pic_works_F77=yes
13293     fi
13294   fi
13295   $rm conftest*
13296
13297fi
13298echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13299echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13300
13301if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13302    case $lt_prog_compiler_pic_F77 in
13303     "" | " "*) ;;
13304     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13305     esac
13306else
13307    lt_prog_compiler_pic_F77=
13308     lt_prog_compiler_can_build_shared_F77=no
13309fi
13310
13311fi
13312case $host_os in
13313  # For platforms which do not support PIC, -DPIC is meaningless:
13314  *djgpp*)
13315    lt_prog_compiler_pic_F77=
13316    ;;
13317  *)
13318    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13319    ;;
13320esac
13321
13322#
13323# Check to make sure the static flag actually works.
13324#
13325wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13326echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13327echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13328if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13329  echo $ECHO_N "(cached) $ECHO_C" >&6
13330else
13331  lt_prog_compiler_static_works_F77=no
13332   save_LDFLAGS="$LDFLAGS"
13333   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13334   printf "$lt_simple_link_test_code" > conftest.$ac_ext
13335   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13336     # The linker can only warn and ignore the option if not recognized
13337     # So say no if there are warnings
13338     if test -s conftest.err; then
13339       # Append any errors to the config.log.
13340       cat conftest.err 1>&5
13341       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13342       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13343       if diff conftest.exp conftest.er2 >/dev/null; then
13344         lt_prog_compiler_static_works_F77=yes
13345       fi
13346     else
13347       lt_prog_compiler_static_works_F77=yes
13348     fi
13349   fi
13350   $rm conftest*
13351   LDFLAGS="$save_LDFLAGS"
13352
13353fi
13354echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13355echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
13356
13357if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13358    :
13359else
13360    lt_prog_compiler_static_F77=
13361fi
13362
13363
13364echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13365echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13366if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13367  echo $ECHO_N "(cached) $ECHO_C" >&6
13368else
13369  lt_cv_prog_compiler_c_o_F77=no
13370   $rm -r conftest 2>/dev/null
13371   mkdir conftest
13372   cd conftest
13373   mkdir out
13374   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13375
13376   lt_compiler_flag="-o out/conftest2.$ac_objext"
13377   # Insert the option either (1) after the last *FLAGS variable, or
13378   # (2) before a word containing "conftest.", or (3) at the end.
13379   # Note that $ac_compile itself does not contain backslashes and begins
13380   # with a dollar sign (not a hyphen), so the echo should work correctly.
13381   lt_compile=`echo "$ac_compile" | $SED \
13382   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13383   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13384   -e 's:$: $lt_compiler_flag:'`
13385   (eval echo "\"\$as_me:13385: $lt_compile\"" >&5)
13386   (eval "$lt_compile" 2>out/conftest.err)
13387   ac_status=$?
13388   cat out/conftest.err >&5
13389   echo "$as_me:13389: \$? = $ac_status" >&5
13390   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13391   then
13392     # The compiler can only warn and ignore the option if not recognized
13393     # So say no if there are warnings
13394     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13395     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13396     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13397       lt_cv_prog_compiler_c_o_F77=yes
13398     fi
13399   fi
13400   chmod u+w . 2>&5
13401   $rm conftest*
13402   # SGI C++ compiler will create directory out/ii_files/ for
13403   # template instantiation
13404   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13405   $rm out/* && rmdir out
13406   cd ..
13407   rmdir conftest
13408   $rm conftest*
13409
13410fi
13411echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13412echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13413
13414
13415hard_links="nottested"
13416if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13417  # do not overwrite the value of need_locks provided by the user
13418  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13419echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13420  hard_links=yes
13421  $rm conftest*
13422  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13423  touch conftest.a
13424  ln conftest.a conftest.b 2>&5 || hard_links=no
13425  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13426  echo "$as_me:$LINENO: result: $hard_links" >&5
13427echo "${ECHO_T}$hard_links" >&6
13428  if test "$hard_links" = no; then
13429    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13430echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13431    need_locks=warn
13432  fi
13433else
13434  need_locks=no
13435fi
13436
13437echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13438echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13439
13440  runpath_var=
13441  allow_undefined_flag_F77=
13442  enable_shared_with_static_runtimes_F77=no
13443  archive_cmds_F77=
13444  archive_expsym_cmds_F77=
13445  old_archive_From_new_cmds_F77=
13446  old_archive_from_expsyms_cmds_F77=
13447  export_dynamic_flag_spec_F77=
13448  whole_archive_flag_spec_F77=
13449  thread_safe_flag_spec_F77=
13450  hardcode_libdir_flag_spec_F77=
13451  hardcode_libdir_flag_spec_ld_F77=
13452  hardcode_libdir_separator_F77=
13453  hardcode_direct_F77=no
13454  hardcode_minus_L_F77=no
13455  hardcode_shlibpath_var_F77=unsupported
13456  link_all_deplibs_F77=unknown
13457  hardcode_automatic_F77=no
13458  module_cmds_F77=
13459  module_expsym_cmds_F77=
13460  always_export_symbols_F77=no
13461  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13462  # include_expsyms should be a list of space-separated symbols to be *always*
13463  # included in the symbol list
13464  include_expsyms_F77=
13465  # exclude_expsyms can be an extended regexp of symbols to exclude
13466  # it will be wrapped by ` (' and `)$', so one must not match beginning or
13467  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13468  # as well as any symbol that contains `d'.
13469  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13470  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13471  # platforms (ab)use it in PIC code, but their linkers get confused if
13472  # the symbol is explicitly referenced.  Since portable code cannot
13473  # rely on this symbol name, it's probably fine to never include it in
13474  # preloaded symbol tables.
13475  extract_expsyms_cmds=
13476  # Just being paranoid about ensuring that cc_basename is set.
13477  for cc_temp in $compiler""; do
13478  case $cc_temp in
13479    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13480    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13481    \-*) ;;
13482    *) break;;
13483  esac
13484done
13485cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13486
13487  case $host_os in
13488  cygwin* | mingw* | pw32*)
13489    # FIXME: the MSVC++ port hasn't been tested in a loooong time
13490    # When not using gcc, we currently assume that we are using
13491    # Microsoft Visual C++.
13492    if test "$GCC" != yes; then
13493      with_gnu_ld=no
13494    fi
13495    ;;
13496  interix*)
13497    # we just hope/assume this is gcc and not c89 (= MSVC++)
13498    with_gnu_ld=yes
13499    ;;
13500  openbsd*)
13501    with_gnu_ld=no
13502    ;;
13503  esac
13504
13505  ld_shlibs_F77=yes
13506  if test "$with_gnu_ld" = yes; then
13507    # If archive_cmds runs LD, not CC, wlarc should be empty
13508    wlarc='${wl}'
13509
13510    # Set some defaults for GNU ld with shared library support. These
13511    # are reset later if shared libraries are not supported. Putting them
13512    # here allows them to be overridden if necessary.
13513    runpath_var=LD_RUN_PATH
13514    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13515    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13516    # ancient GNU ld didn't support --whole-archive et. al.
13517    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13518	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13519      else
13520  	whole_archive_flag_spec_F77=
13521    fi
13522    supports_anon_versioning=no
13523    case `$LD -v 2>/dev/null` in
13524      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13525      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13526      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13527      *\ 2.11.*) ;; # other 2.11 versions
13528      *) supports_anon_versioning=yes ;;
13529    esac
13530
13531    # See if GNU ld supports shared libraries.
13532    case $host_os in
13533    aix3* | aix4* | aix5*)
13534      # On AIX/PPC, the GNU linker is very broken
13535      if test "$host_cpu" != ia64; then
13536	ld_shlibs_F77=no
13537	cat <<EOF 1>&2
13538
13539*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13540*** to be unable to reliably create shared libraries on AIX.
13541*** Therefore, libtool is disabling shared libraries support.  If you
13542*** really care for shared libraries, you may want to modify your PATH
13543*** so that a non-GNU linker is found, and then restart.
13544
13545EOF
13546      fi
13547      ;;
13548
13549    amigaos*)
13550      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)'
13551      hardcode_libdir_flag_spec_F77='-L$libdir'
13552      hardcode_minus_L_F77=yes
13553
13554      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13555      # that the semantics of dynamic libraries on AmigaOS, at least up
13556      # to version 4, is to share data among multiple programs linked
13557      # with the same dynamic library.  Since this doesn't match the
13558      # behavior of shared libraries on other platforms, we can't use
13559      # them.
13560      ld_shlibs_F77=no
13561      ;;
13562
13563    beos*)
13564      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13565	allow_undefined_flag_F77=unsupported
13566	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13567	# support --undefined.  This deserves some investigation.  FIXME
13568	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13569      else
13570	ld_shlibs_F77=no
13571      fi
13572      ;;
13573
13574    cygwin* | mingw* | pw32*)
13575      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13576      # as there is no search path for DLLs.
13577      hardcode_libdir_flag_spec_F77='-L$libdir'
13578      allow_undefined_flag_F77=unsupported
13579      always_export_symbols_F77=no
13580      enable_shared_with_static_runtimes_F77=yes
13581      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13582
13583      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13584        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13585	# If the export-symbols file already is a .def file (1st line
13586	# is EXPORTS), use it as is; otherwise, prepend...
13587	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13588	  cp $export_symbols $output_objdir/$soname.def;
13589	else
13590	  echo EXPORTS > $output_objdir/$soname.def;
13591	  cat $export_symbols >> $output_objdir/$soname.def;
13592	fi~
13593	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13594      else
13595	ld_shlibs_F77=no
13596      fi
13597      ;;
13598
13599    interix3*)
13600      hardcode_direct_F77=no
13601      hardcode_shlibpath_var_F77=no
13602      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13603      export_dynamic_flag_spec_F77='${wl}-E'
13604      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13605      # Instead, shared libraries are loaded at an image base (0x10000000 by
13606      # default) and relocated if they conflict, which is a slow very memory
13607      # consuming and fragmenting process.  To avoid this, we pick a random,
13608      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13609      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13610      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'
13611      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'
13612      ;;
13613
13614    linux*)
13615      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13616	tmp_addflag=
13617	case $cc_basename,$host_cpu in
13618	pgcc*)				# Portland Group C compiler
13619	  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'
13620	  tmp_addflag=' $pic_flag'
13621	  ;;
13622	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
13623	  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'
13624	  tmp_addflag=' $pic_flag -Mnomain' ;;
13625	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
13626	  tmp_addflag=' -i_dynamic' ;;
13627	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
13628	  tmp_addflag=' -i_dynamic -nofor_main' ;;
13629	ifc* | ifort*)			# Intel Fortran compiler
13630	  tmp_addflag=' -nofor_main' ;;
13631	esac
13632	archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13633
13634	if test $supports_anon_versioning = yes; then
13635	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13636  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13637  $echo "local: *; };" >> $output_objdir/$libname.ver~
13638	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13639	fi
13640      else
13641	ld_shlibs_F77=no
13642      fi
13643      ;;
13644
13645    netbsd*)
13646      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13647	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13648	wlarc=
13649      else
13650	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13651	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13652      fi
13653      ;;
13654
13655    solaris*)
13656      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13657	ld_shlibs_F77=no
13658	cat <<EOF 1>&2
13659
13660*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13661*** create shared libraries on Solaris systems.  Therefore, libtool
13662*** is disabling shared libraries support.  We urge you to upgrade GNU
13663*** binutils to release 2.9.1 or newer.  Another option is to modify
13664*** your PATH or compiler configuration so that the native linker is
13665*** used, and then restart.
13666
13667EOF
13668      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13669	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13670	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13671      else
13672	ld_shlibs_F77=no
13673      fi
13674      ;;
13675
13676    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13677      case `$LD -v 2>&1` in
13678        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13679	ld_shlibs_F77=no
13680	cat <<_LT_EOF 1>&2
13681
13682*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13683*** reliably create shared libraries on SCO systems.  Therefore, libtool
13684*** is disabling shared libraries support.  We urge you to upgrade GNU
13685*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
13686*** your PATH or compiler configuration so that the native linker is
13687*** used, and then restart.
13688
13689_LT_EOF
13690	;;
13691	*)
13692	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13693	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13694	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13695	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13696	  else
13697	    ld_shlibs_F77=no
13698	  fi
13699	;;
13700      esac
13701      ;;
13702
13703    sunos4*)
13704      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13705      wlarc=
13706      hardcode_direct_F77=yes
13707      hardcode_shlibpath_var_F77=no
13708      ;;
13709
13710    *)
13711      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13712	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13713	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13714      else
13715	ld_shlibs_F77=no
13716      fi
13717      ;;
13718    esac
13719
13720    if test "$ld_shlibs_F77" = no; then
13721      runpath_var=
13722      hardcode_libdir_flag_spec_F77=
13723      export_dynamic_flag_spec_F77=
13724      whole_archive_flag_spec_F77=
13725    fi
13726  else
13727    # PORTME fill in a description of your system's linker (not GNU ld)
13728    case $host_os in
13729    aix3*)
13730      allow_undefined_flag_F77=unsupported
13731      always_export_symbols_F77=yes
13732      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'
13733      # Note: this linker hardcodes the directories in LIBPATH if there
13734      # are no directories specified by -L.
13735      hardcode_minus_L_F77=yes
13736      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13737	# Neither direct hardcoding nor static linking is supported with a
13738	# broken collect2.
13739	hardcode_direct_F77=unsupported
13740      fi
13741      ;;
13742
13743    aix4* | aix5*)
13744      if test "$host_cpu" = ia64; then
13745	# On IA64, the linker does run time linking by default, so we don't
13746	# have to do anything special.
13747	aix_use_runtimelinking=no
13748	exp_sym_flag='-Bexport'
13749	no_entry_flag=""
13750      else
13751	# If we're using GNU nm, then we don't want the "-C" option.
13752	# -C means demangle to AIX nm, but means don't demangle with GNU nm
13753	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13754	  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'
13755	else
13756	  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'
13757	fi
13758	aix_use_runtimelinking=no
13759
13760	# Test if we are trying to use run time linking or normal
13761	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
13762	# need to do runtime linking.
13763	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13764	  for ld_flag in $LDFLAGS; do
13765  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13766  	    aix_use_runtimelinking=yes
13767  	    break
13768  	  fi
13769	  done
13770	  ;;
13771	esac
13772
13773	exp_sym_flag='-bexport'
13774	no_entry_flag='-bnoentry'
13775      fi
13776
13777      # When large executables or shared objects are built, AIX ld can
13778      # have problems creating the table of contents.  If linking a library
13779      # or program results in "error TOC overflow" add -mminimal-toc to
13780      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13781      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13782
13783      archive_cmds_F77=''
13784      hardcode_direct_F77=yes
13785      hardcode_libdir_separator_F77=':'
13786      link_all_deplibs_F77=yes
13787
13788      if test "$GCC" = yes; then
13789	case $host_os in aix4.[012]|aix4.[012].*)
13790	# We only want to do this on AIX 4.2 and lower, the check
13791	# below for broken collect2 doesn't work under 4.3+
13792	  collect2name=`${CC} -print-prog-name=collect2`
13793	  if test -f "$collect2name" && \
13794  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
13795	  then
13796  	  # We have reworked collect2
13797  	  hardcode_direct_F77=yes
13798	  else
13799  	  # We have old collect2
13800  	  hardcode_direct_F77=unsupported
13801  	  # It fails to find uninstalled libraries when the uninstalled
13802  	  # path is not listed in the libpath.  Setting hardcode_minus_L
13803  	  # to unsupported forces relinking
13804  	  hardcode_minus_L_F77=yes
13805  	  hardcode_libdir_flag_spec_F77='-L$libdir'
13806  	  hardcode_libdir_separator_F77=
13807	  fi
13808	  ;;
13809	esac
13810	shared_flag='-shared'
13811	if test "$aix_use_runtimelinking" = yes; then
13812	  shared_flag="$shared_flag "'${wl}-G'
13813	fi
13814      else
13815	# not using gcc
13816	if test "$host_cpu" = ia64; then
13817  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13818  	# chokes on -Wl,-G. The following line is correct:
13819	  shared_flag='-G'
13820	else
13821	  if test "$aix_use_runtimelinking" = yes; then
13822	    shared_flag='${wl}-G'
13823	  else
13824	    shared_flag='${wl}-bM:SRE'
13825	  fi
13826	fi
13827      fi
13828
13829      # It seems that -bexpall does not export symbols beginning with
13830      # underscore (_), so it is better to generate a list of symbols to export.
13831      always_export_symbols_F77=yes
13832      if test "$aix_use_runtimelinking" = yes; then
13833	# Warning - without using the other runtime loading flags (-brtl),
13834	# -berok will link without error, but may produce a broken library.
13835	allow_undefined_flag_F77='-berok'
13836       # Determine the default libpath from the value encoded in an empty executable.
13837       cat >conftest.$ac_ext <<_ACEOF
13838      program main
13839
13840      end
13841_ACEOF
13842rm -f conftest.$ac_objext conftest$ac_exeext
13843if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13844  (eval $ac_link) 2>conftest.er1
13845  ac_status=$?
13846  grep -v '^ *+' conftest.er1 >conftest.err
13847  rm -f conftest.er1
13848  cat conftest.err >&5
13849  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13850  (exit $ac_status); } &&
13851	 { ac_try='test -z "$ac_f77_werror_flag"
13852			 || test ! -s conftest.err'
13853  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13854  (eval $ac_try) 2>&5
13855  ac_status=$?
13856  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13857  (exit $ac_status); }; } &&
13858	 { ac_try='test -s conftest$ac_exeext'
13859  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13860  (eval $ac_try) 2>&5
13861  ac_status=$?
13862  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13863  (exit $ac_status); }; }; then
13864
13865aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13866}'`
13867# Check for a 64-bit object if we didn't find anything.
13868if 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; }
13869}'`; fi
13870else
13871  echo "$as_me: failed program was:" >&5
13872sed 's/^/| /' conftest.$ac_ext >&5
13873
13874fi
13875rm -f conftest.err conftest.$ac_objext \
13876      conftest$ac_exeext conftest.$ac_ext
13877if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13878
13879       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13880	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"
13881       else
13882	if test "$host_cpu" = ia64; then
13883	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13884	  allow_undefined_flag_F77="-z nodefs"
13885	  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"
13886	else
13887	 # Determine the default libpath from the value encoded in an empty executable.
13888	 cat >conftest.$ac_ext <<_ACEOF
13889      program main
13890
13891      end
13892_ACEOF
13893rm -f conftest.$ac_objext conftest$ac_exeext
13894if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13895  (eval $ac_link) 2>conftest.er1
13896  ac_status=$?
13897  grep -v '^ *+' conftest.er1 >conftest.err
13898  rm -f conftest.er1
13899  cat conftest.err >&5
13900  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13901  (exit $ac_status); } &&
13902	 { ac_try='test -z "$ac_f77_werror_flag"
13903			 || test ! -s conftest.err'
13904  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13905  (eval $ac_try) 2>&5
13906  ac_status=$?
13907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13908  (exit $ac_status); }; } &&
13909	 { ac_try='test -s conftest$ac_exeext'
13910  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13911  (eval $ac_try) 2>&5
13912  ac_status=$?
13913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13914  (exit $ac_status); }; }; then
13915
13916aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13917}'`
13918# Check for a 64-bit object if we didn't find anything.
13919if 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; }
13920}'`; fi
13921else
13922  echo "$as_me: failed program was:" >&5
13923sed 's/^/| /' conftest.$ac_ext >&5
13924
13925fi
13926rm -f conftest.err conftest.$ac_objext \
13927      conftest$ac_exeext conftest.$ac_ext
13928if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13929
13930	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13931	  # Warning - without using the other run time loading flags,
13932	  # -berok will link without error, but may produce a broken library.
13933	  no_undefined_flag_F77=' ${wl}-bernotok'
13934	  allow_undefined_flag_F77=' ${wl}-berok'
13935	  # Exported symbols can be pulled into shared objects from archives
13936	  whole_archive_flag_spec_F77='$convenience'
13937	  archive_cmds_need_lc_F77=yes
13938	  # This is similar to how AIX traditionally builds its shared libraries.
13939	  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'
13940	fi
13941      fi
13942      ;;
13943
13944    amigaos*)
13945      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)'
13946      hardcode_libdir_flag_spec_F77='-L$libdir'
13947      hardcode_minus_L_F77=yes
13948      # see comment about different semantics on the GNU ld section
13949      ld_shlibs_F77=no
13950      ;;
13951
13952    bsdi[45]*)
13953      export_dynamic_flag_spec_F77=-rdynamic
13954      ;;
13955
13956    cygwin* | mingw* | pw32*)
13957      # When not using gcc, we currently assume that we are using
13958      # Microsoft Visual C++.
13959      # hardcode_libdir_flag_spec is actually meaningless, as there is
13960      # no search path for DLLs.
13961      hardcode_libdir_flag_spec_F77=' '
13962      allow_undefined_flag_F77=unsupported
13963      # Tell ltmain to make .lib files, not .a files.
13964      libext=lib
13965      # Tell ltmain to make .dll files, not .so files.
13966      shrext_cmds=".dll"
13967      # FIXME: Setting linknames here is a bad hack.
13968      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13969      # The linker will automatically build a .lib file if we build a DLL.
13970      old_archive_From_new_cmds_F77='true'
13971      # FIXME: Should let the user specify the lib program.
13972      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13973      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
13974      enable_shared_with_static_runtimes_F77=yes
13975      ;;
13976
13977    darwin* | rhapsody*)
13978      case $host_os in
13979        rhapsody* | darwin1.[012])
13980         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
13981         ;;
13982       *) # Darwin 1.3 on
13983         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13984           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13985         else
13986           case ${MACOSX_DEPLOYMENT_TARGET} in
13987             10.[012])
13988               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13989               ;;
13990             10.*)
13991               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
13992               ;;
13993           esac
13994         fi
13995         ;;
13996      esac
13997      archive_cmds_need_lc_F77=no
13998      hardcode_direct_F77=no
13999      hardcode_automatic_F77=yes
14000      hardcode_shlibpath_var_F77=unsupported
14001      whole_archive_flag_spec_F77=''
14002      link_all_deplibs_F77=yes
14003    if test "$GCC" = yes ; then
14004    	output_verbose_link_cmd='echo'
14005        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14006      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14007      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14008      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}'
14009      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}'
14010    else
14011      case $cc_basename in
14012        xlc*)
14013         output_verbose_link_cmd='echo'
14014         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14015         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14016          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14017         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}'
14018          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}'
14019          ;;
14020       *)
14021         ld_shlibs_F77=no
14022          ;;
14023      esac
14024    fi
14025      ;;
14026
14027    dgux*)
14028      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14029      hardcode_libdir_flag_spec_F77='-L$libdir'
14030      hardcode_shlibpath_var_F77=no
14031      ;;
14032
14033    freebsd1*)
14034      ld_shlibs_F77=no
14035      ;;
14036
14037    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14038    # support.  Future versions do this automatically, but an explicit c++rt0.o
14039    # does not break anything, and helps significantly (at the cost of a little
14040    # extra space).
14041    freebsd2.2*)
14042      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14043      hardcode_libdir_flag_spec_F77='-R$libdir'
14044      hardcode_direct_F77=yes
14045      hardcode_shlibpath_var_F77=no
14046      ;;
14047
14048    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14049    freebsd2*)
14050      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14051      hardcode_direct_F77=yes
14052      hardcode_minus_L_F77=yes
14053      hardcode_shlibpath_var_F77=no
14054      ;;
14055
14056    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14057    freebsd* | kfreebsd*-gnu | dragonfly*)
14058      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14059      hardcode_libdir_flag_spec_F77='-R$libdir'
14060      hardcode_direct_F77=yes
14061      hardcode_shlibpath_var_F77=no
14062      ;;
14063
14064    hpux9*)
14065      if test "$GCC" = yes; then
14066	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'
14067      else
14068	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'
14069      fi
14070      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14071      hardcode_libdir_separator_F77=:
14072      hardcode_direct_F77=yes
14073
14074      # hardcode_minus_L: Not really in the search PATH,
14075      # but as the default location of the library.
14076      hardcode_minus_L_F77=yes
14077      export_dynamic_flag_spec_F77='${wl}-E'
14078      ;;
14079
14080    hpux10*)
14081      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14082	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14083      else
14084	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14085      fi
14086      if test "$with_gnu_ld" = no; then
14087	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14088	hardcode_libdir_separator_F77=:
14089
14090	hardcode_direct_F77=yes
14091	export_dynamic_flag_spec_F77='${wl}-E'
14092
14093	# hardcode_minus_L: Not really in the search PATH,
14094	# but as the default location of the library.
14095	hardcode_minus_L_F77=yes
14096      fi
14097      ;;
14098
14099    hpux11*)
14100      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14101	case $host_cpu in
14102	hppa*64*)
14103	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14104	  ;;
14105	ia64*)
14106	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14107	  ;;
14108	*)
14109	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14110	  ;;
14111	esac
14112      else
14113	case $host_cpu in
14114	hppa*64*)
14115	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14116	  ;;
14117	ia64*)
14118	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14119	  ;;
14120	*)
14121	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14122	  ;;
14123	esac
14124      fi
14125      if test "$with_gnu_ld" = no; then
14126	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14127	hardcode_libdir_separator_F77=:
14128
14129	case $host_cpu in
14130	hppa*64*|ia64*)
14131	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14132	  hardcode_direct_F77=no
14133	  hardcode_shlibpath_var_F77=no
14134	  ;;
14135	*)
14136	  hardcode_direct_F77=yes
14137	  export_dynamic_flag_spec_F77='${wl}-E'
14138
14139	  # hardcode_minus_L: Not really in the search PATH,
14140	  # but as the default location of the library.
14141	  hardcode_minus_L_F77=yes
14142	  ;;
14143	esac
14144      fi
14145      ;;
14146
14147    irix5* | irix6* | nonstopux*)
14148      if test "$GCC" = yes; then
14149	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'
14150      else
14151	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'
14152	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14153      fi
14154      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14155      hardcode_libdir_separator_F77=:
14156      link_all_deplibs_F77=yes
14157      ;;
14158
14159    netbsd*)
14160      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14161	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14162      else
14163	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14164      fi
14165      hardcode_libdir_flag_spec_F77='-R$libdir'
14166      hardcode_direct_F77=yes
14167      hardcode_shlibpath_var_F77=no
14168      ;;
14169
14170    newsos6)
14171      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14172      hardcode_direct_F77=yes
14173      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14174      hardcode_libdir_separator_F77=:
14175      hardcode_shlibpath_var_F77=no
14176      ;;
14177
14178    openbsd*)
14179      hardcode_direct_F77=yes
14180      hardcode_shlibpath_var_F77=no
14181      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14182	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14183	archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14184	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14185	export_dynamic_flag_spec_F77='${wl}-E'
14186      else
14187       case $host_os in
14188	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14189	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14190	   hardcode_libdir_flag_spec_F77='-R$libdir'
14191	   ;;
14192	 *)
14193	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14194	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14195	   ;;
14196       esac
14197      fi
14198      ;;
14199
14200    os2*)
14201      hardcode_libdir_flag_spec_F77='-L$libdir'
14202      hardcode_minus_L_F77=yes
14203      allow_undefined_flag_F77=unsupported
14204      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'
14205      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14206      ;;
14207
14208    osf3*)
14209      if test "$GCC" = yes; then
14210	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14211	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'
14212      else
14213	allow_undefined_flag_F77=' -expect_unresolved \*'
14214	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'
14215      fi
14216      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14217      hardcode_libdir_separator_F77=:
14218      ;;
14219
14220    osf4* | osf5*)	# as osf3* with the addition of -msym flag
14221      if test "$GCC" = yes; then
14222	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14223	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'
14224	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14225      else
14226	allow_undefined_flag_F77=' -expect_unresolved \*'
14227	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'
14228	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~
14229	$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'
14230
14231	# Both c and cxx compiler support -rpath directly
14232	hardcode_libdir_flag_spec_F77='-rpath $libdir'
14233      fi
14234      hardcode_libdir_separator_F77=:
14235      ;;
14236
14237    solaris*)
14238      no_undefined_flag_F77=' -z text'
14239      if test "$GCC" = yes; then
14240	wlarc='${wl}'
14241	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14242	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14243	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14244      else
14245	wlarc=''
14246	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14247	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14248  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14249      fi
14250      hardcode_libdir_flag_spec_F77='-R$libdir'
14251      hardcode_shlibpath_var_F77=no
14252      case $host_os in
14253      solaris2.[0-5] | solaris2.[0-5].*) ;;
14254      *)
14255 	# The compiler driver will combine linker options so we
14256 	# cannot just pass the convience library names through
14257 	# without $wl, iff we do not link with $LD.
14258 	# Luckily, gcc supports the same syntax we need for Sun Studio.
14259 	# Supported since Solaris 2.6 (maybe 2.5.1?)
14260 	case $wlarc in
14261 	'')
14262 	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14263 	*)
14264 	  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' ;;
14265 	esac ;;
14266      esac
14267      link_all_deplibs_F77=yes
14268      ;;
14269
14270    sunos4*)
14271      if test "x$host_vendor" = xsequent; then
14272	# Use $CC to link under sequent, because it throws in some extra .o
14273	# files that make .init and .fini sections work.
14274	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14275      else
14276	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14277      fi
14278      hardcode_libdir_flag_spec_F77='-L$libdir'
14279      hardcode_direct_F77=yes
14280      hardcode_minus_L_F77=yes
14281      hardcode_shlibpath_var_F77=no
14282      ;;
14283
14284    sysv4)
14285      case $host_vendor in
14286	sni)
14287	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14288	  hardcode_direct_F77=yes # is this really true???
14289	;;
14290	siemens)
14291	  ## LD is ld it makes a PLAMLIB
14292	  ## CC just makes a GrossModule.
14293	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14294	  reload_cmds_F77='$CC -r -o $output$reload_objs'
14295	  hardcode_direct_F77=no
14296        ;;
14297	motorola)
14298	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14299	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14300	;;
14301      esac
14302      runpath_var='LD_RUN_PATH'
14303      hardcode_shlibpath_var_F77=no
14304      ;;
14305
14306    sysv4.3*)
14307      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14308      hardcode_shlibpath_var_F77=no
14309      export_dynamic_flag_spec_F77='-Bexport'
14310      ;;
14311
14312    sysv4*MP*)
14313      if test -d /usr/nec; then
14314	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14315	hardcode_shlibpath_var_F77=no
14316	runpath_var=LD_RUN_PATH
14317	hardcode_runpath_var=yes
14318	ld_shlibs_F77=yes
14319      fi
14320      ;;
14321
14322    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14323      no_undefined_flag_F77='${wl}-z,text'
14324      archive_cmds_need_lc_F77=no
14325      hardcode_shlibpath_var_F77=no
14326      runpath_var='LD_RUN_PATH'
14327
14328      if test "$GCC" = yes; then
14329	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14330	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14331      else
14332	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14333	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14334      fi
14335      ;;
14336
14337    sysv5* | sco3.2v5* | sco5v6*)
14338      # Note: We can NOT use -z defs as we might desire, because we do not
14339      # link with -lc, and that would cause any symbols used from libc to
14340      # always be unresolved, which means just about no library would
14341      # ever link correctly.  If we're not using GNU ld we use -z text
14342      # though, which does catch some bad symbols but isn't as heavy-handed
14343      # as -z defs.
14344      no_undefined_flag_F77='${wl}-z,text'
14345      allow_undefined_flag_F77='${wl}-z,nodefs'
14346      archive_cmds_need_lc_F77=no
14347      hardcode_shlibpath_var_F77=no
14348      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14349      hardcode_libdir_separator_F77=':'
14350      link_all_deplibs_F77=yes
14351      export_dynamic_flag_spec_F77='${wl}-Bexport'
14352      runpath_var='LD_RUN_PATH'
14353
14354      if test "$GCC" = yes; then
14355	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14356	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14357      else
14358	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14359	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14360      fi
14361      ;;
14362
14363    uts4*)
14364      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14365      hardcode_libdir_flag_spec_F77='-L$libdir'
14366      hardcode_shlibpath_var_F77=no
14367      ;;
14368
14369    *)
14370      ld_shlibs_F77=no
14371      ;;
14372    esac
14373  fi
14374
14375echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14376echo "${ECHO_T}$ld_shlibs_F77" >&6
14377test "$ld_shlibs_F77" = no && can_build_shared=no
14378
14379#
14380# Do we need to explicitly link libc?
14381#
14382case "x$archive_cmds_need_lc_F77" in
14383x|xyes)
14384  # Assume -lc should be added
14385  archive_cmds_need_lc_F77=yes
14386
14387  if test "$enable_shared" = yes && test "$GCC" = yes; then
14388    case $archive_cmds_F77 in
14389    *'~'*)
14390      # FIXME: we may have to deal with multi-command sequences.
14391      ;;
14392    '$CC '*)
14393      # Test whether the compiler implicitly links with -lc since on some
14394      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14395      # to ld, don't add -lc before -lgcc.
14396      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14397echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14398      $rm conftest*
14399      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14400
14401      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14402  (eval $ac_compile) 2>&5
14403  ac_status=$?
14404  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14405  (exit $ac_status); } 2>conftest.err; then
14406        soname=conftest
14407        lib=conftest
14408        libobjs=conftest.$ac_objext
14409        deplibs=
14410        wl=$lt_prog_compiler_wl_F77
14411	pic_flag=$lt_prog_compiler_pic_F77
14412        compiler_flags=-v
14413        linker_flags=-v
14414        verstring=
14415        output_objdir=.
14416        libname=conftest
14417        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14418        allow_undefined_flag_F77=
14419        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14420  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14421  ac_status=$?
14422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14423  (exit $ac_status); }
14424        then
14425	  archive_cmds_need_lc_F77=no
14426        else
14427	  archive_cmds_need_lc_F77=yes
14428        fi
14429        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14430      else
14431        cat conftest.err 1>&5
14432      fi
14433      $rm conftest*
14434      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14435echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14436      ;;
14437    esac
14438  fi
14439  ;;
14440esac
14441
14442echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14443echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14444library_names_spec=
14445libname_spec='lib$name'
14446soname_spec=
14447shrext_cmds=".so"
14448postinstall_cmds=
14449postuninstall_cmds=
14450finish_cmds=
14451finish_eval=
14452shlibpath_var=
14453shlibpath_overrides_runpath=unknown
14454version_type=none
14455dynamic_linker="$host_os ld.so"
14456sys_lib_dlsearch_path_spec="/lib /usr/lib"
14457if test "$GCC" = yes; then
14458  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14459  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14460    # if the path contains ";" then we assume it to be the separator
14461    # otherwise default to the standard path separator (i.e. ":") - it is
14462    # assumed that no part of a normal pathname contains ";" but that should
14463    # okay in the real world where ";" in dirpaths is itself problematic.
14464    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14465  else
14466    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14467  fi
14468else
14469  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14470fi
14471need_lib_prefix=unknown
14472hardcode_into_libs=no
14473
14474# when you set need_version to no, make sure it does not cause -set_version
14475# flags to be left without arguments
14476need_version=unknown
14477
14478case $host_os in
14479aix3*)
14480  version_type=linux
14481  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14482  shlibpath_var=LIBPATH
14483
14484  # AIX 3 has no versioning support, so we append a major version to the name.
14485  soname_spec='${libname}${release}${shared_ext}$major'
14486  ;;
14487
14488aix4* | aix5*)
14489  version_type=linux
14490  need_lib_prefix=no
14491  need_version=no
14492  hardcode_into_libs=yes
14493  if test "$host_cpu" = ia64; then
14494    # AIX 5 supports IA64
14495    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14496    shlibpath_var=LD_LIBRARY_PATH
14497  else
14498    # With GCC up to 2.95.x, collect2 would create an import file
14499    # for dependence libraries.  The import file would start with
14500    # the line `#! .'.  This would cause the generated library to
14501    # depend on `.', always an invalid library.  This was fixed in
14502    # development snapshots of GCC prior to 3.0.
14503    case $host_os in
14504      aix4 | aix4.[01] | aix4.[01].*)
14505      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14506	   echo ' yes '
14507	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14508	:
14509      else
14510	can_build_shared=no
14511      fi
14512      ;;
14513    esac
14514    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14515    # soname into executable. Probably we can add versioning support to
14516    # collect2, so additional links can be useful in future.
14517    if test "$aix_use_runtimelinking" = yes; then
14518      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14519      # instead of lib<name>.a to let people know that these are not
14520      # typical AIX shared libraries.
14521      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14522    else
14523      # We preserve .a as extension for shared libraries through AIX4.2
14524      # and later when we are not doing run time linking.
14525      library_names_spec='${libname}${release}.a $libname.a'
14526      soname_spec='${libname}${release}${shared_ext}$major'
14527    fi
14528    shlibpath_var=LIBPATH
14529  fi
14530  ;;
14531
14532amigaos*)
14533  library_names_spec='$libname.ixlibrary $libname.a'
14534  # Create ${libname}_ixlibrary.a entries in /sys/libs.
14535  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'
14536  ;;
14537
14538beos*)
14539  library_names_spec='${libname}${shared_ext}'
14540  dynamic_linker="$host_os ld.so"
14541  shlibpath_var=LIBRARY_PATH
14542  ;;
14543
14544bsdi[45]*)
14545  version_type=linux
14546  need_version=no
14547  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14548  soname_spec='${libname}${release}${shared_ext}$major'
14549  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14550  shlibpath_var=LD_LIBRARY_PATH
14551  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14552  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14553  # the default ld.so.conf also contains /usr/contrib/lib and
14554  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14555  # libtool to hard-code these into programs
14556  ;;
14557
14558cygwin* | mingw* | pw32*)
14559  version_type=windows
14560  shrext_cmds=".dll"
14561  need_version=no
14562  need_lib_prefix=no
14563
14564  case $GCC,$host_os in
14565  yes,cygwin* | yes,mingw* | yes,pw32*)
14566    library_names_spec='$libname.dll.a'
14567    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14568    postinstall_cmds='base_file=`basename \${file}`~
14569      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14570      dldir=$destdir/`dirname \$dlpath`~
14571      test -d \$dldir || mkdir -p \$dldir~
14572      $install_prog $dir/$dlname \$dldir/$dlname~
14573      chmod a+x \$dldir/$dlname'
14574    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14575      dlpath=$dir/\$dldll~
14576       $rm \$dlpath'
14577    shlibpath_overrides_runpath=yes
14578
14579    case $host_os in
14580    cygwin*)
14581      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14582      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14583      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14584      ;;
14585    mingw*)
14586      # MinGW DLLs use traditional 'lib' prefix
14587      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14588      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14589      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14590        # It is most probably a Windows format PATH printed by
14591        # mingw gcc, but we are running on Cygwin. Gcc prints its search
14592        # path with ; separators, and with drive letters. We can handle the
14593        # drive letters (cygwin fileutils understands them), so leave them,
14594        # especially as we might pass files found there to a mingw objdump,
14595        # which wouldn't understand a cygwinified path. Ahh.
14596        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14597      else
14598        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14599      fi
14600      ;;
14601    pw32*)
14602      # pw32 DLLs use 'pw' prefix rather than 'lib'
14603      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14604      ;;
14605    esac
14606    ;;
14607
14608  *)
14609    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14610    ;;
14611  esac
14612  dynamic_linker='Win32 ld.exe'
14613  # FIXME: first we should search . and the directory the executable is in
14614  shlibpath_var=PATH
14615  ;;
14616
14617darwin* | rhapsody*)
14618  dynamic_linker="$host_os dyld"
14619  version_type=darwin
14620  need_lib_prefix=no
14621  need_version=no
14622  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14623  soname_spec='${libname}${release}${major}$shared_ext'
14624  shlibpath_overrides_runpath=yes
14625  shlibpath_var=DYLD_LIBRARY_PATH
14626  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14627  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14628  if test "$GCC" = yes; then
14629    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"`
14630  else
14631    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14632  fi
14633  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14634  ;;
14635
14636dgux*)
14637  version_type=linux
14638  need_lib_prefix=no
14639  need_version=no
14640  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14641  soname_spec='${libname}${release}${shared_ext}$major'
14642  shlibpath_var=LD_LIBRARY_PATH
14643  ;;
14644
14645freebsd1*)
14646  dynamic_linker=no
14647  ;;
14648
14649kfreebsd*-gnu)
14650  version_type=linux
14651  need_lib_prefix=no
14652  need_version=no
14653  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14654  soname_spec='${libname}${release}${shared_ext}$major'
14655  shlibpath_var=LD_LIBRARY_PATH
14656  shlibpath_overrides_runpath=no
14657  hardcode_into_libs=yes
14658  dynamic_linker='GNU ld.so'
14659  ;;
14660
14661freebsd* | dragonfly*)
14662  # DragonFly does not have aout.  When/if they implement a new
14663  # versioning mechanism, adjust this.
14664  if test -x /usr/bin/objformat; then
14665    objformat=`/usr/bin/objformat`
14666  else
14667    case $host_os in
14668    freebsd[123]*) objformat=aout ;;
14669    *) objformat=elf ;;
14670    esac
14671  fi
14672  version_type=freebsd-$objformat
14673  case $version_type in
14674    freebsd-elf*)
14675      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14676      need_version=no
14677      need_lib_prefix=no
14678      ;;
14679    freebsd-*)
14680      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14681      need_version=yes
14682      ;;
14683  esac
14684  shlibpath_var=LD_LIBRARY_PATH
14685  case $host_os in
14686  freebsd2*)
14687    shlibpath_overrides_runpath=yes
14688    ;;
14689  freebsd3.[01]* | freebsdelf3.[01]*)
14690    shlibpath_overrides_runpath=yes
14691    hardcode_into_libs=yes
14692    ;;
14693  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14694  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14695    shlibpath_overrides_runpath=no
14696    hardcode_into_libs=yes
14697    ;;
14698  freebsd*) # from 4.6 on
14699    shlibpath_overrides_runpath=yes
14700    hardcode_into_libs=yes
14701    ;;
14702  esac
14703  ;;
14704
14705gnu*)
14706  version_type=linux
14707  need_lib_prefix=no
14708  need_version=no
14709  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14710  soname_spec='${libname}${release}${shared_ext}$major'
14711  shlibpath_var=LD_LIBRARY_PATH
14712  hardcode_into_libs=yes
14713  ;;
14714
14715hpux9* | hpux10* | hpux11*)
14716  # Give a soname corresponding to the major version so that dld.sl refuses to
14717  # link against other versions.
14718  version_type=sunos
14719  need_lib_prefix=no
14720  need_version=no
14721  case $host_cpu in
14722  ia64*)
14723    shrext_cmds='.so'
14724    hardcode_into_libs=yes
14725    dynamic_linker="$host_os dld.so"
14726    shlibpath_var=LD_LIBRARY_PATH
14727    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14728    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14729    soname_spec='${libname}${release}${shared_ext}$major'
14730    if test "X$HPUX_IA64_MODE" = X32; then
14731      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14732    else
14733      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14734    fi
14735    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14736    ;;
14737   hppa*64*)
14738     shrext_cmds='.sl'
14739     hardcode_into_libs=yes
14740     dynamic_linker="$host_os dld.sl"
14741     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14742     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14743     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14744     soname_spec='${libname}${release}${shared_ext}$major'
14745     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14746     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14747     ;;
14748   *)
14749    shrext_cmds='.sl'
14750    dynamic_linker="$host_os dld.sl"
14751    shlibpath_var=SHLIB_PATH
14752    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14753    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14754    soname_spec='${libname}${release}${shared_ext}$major'
14755    ;;
14756  esac
14757  # HP-UX runs *really* slowly unless shared libraries are mode 555.
14758  postinstall_cmds='chmod 555 $lib'
14759  ;;
14760
14761interix3*)
14762  version_type=linux
14763  need_lib_prefix=no
14764  need_version=no
14765  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14766  soname_spec='${libname}${release}${shared_ext}$major'
14767  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14768  shlibpath_var=LD_LIBRARY_PATH
14769  shlibpath_overrides_runpath=no
14770  hardcode_into_libs=yes
14771  ;;
14772
14773irix5* | irix6* | nonstopux*)
14774  case $host_os in
14775    nonstopux*) version_type=nonstopux ;;
14776    *)
14777	if test "$lt_cv_prog_gnu_ld" = yes; then
14778		version_type=linux
14779	else
14780		version_type=irix
14781	fi ;;
14782  esac
14783  need_lib_prefix=no
14784  need_version=no
14785  soname_spec='${libname}${release}${shared_ext}$major'
14786  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14787  case $host_os in
14788  irix5* | nonstopux*)
14789    libsuff= shlibsuff=
14790    ;;
14791  *)
14792    case $LD in # libtool.m4 will add one of these switches to LD
14793    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14794      libsuff= shlibsuff= libmagic=32-bit;;
14795    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14796      libsuff=32 shlibsuff=N32 libmagic=N32;;
14797    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14798      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14799    *) libsuff= shlibsuff= libmagic=never-match;;
14800    esac
14801    ;;
14802  esac
14803  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14804  shlibpath_overrides_runpath=no
14805  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14806  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14807  hardcode_into_libs=yes
14808  ;;
14809
14810# No shared lib support for Linux oldld, aout, or coff.
14811linux*oldld* | linux*aout* | linux*coff*)
14812  dynamic_linker=no
14813  ;;
14814
14815# This must be Linux ELF.
14816linux*)
14817  version_type=linux
14818  need_lib_prefix=no
14819  need_version=no
14820  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14821  soname_spec='${libname}${release}${shared_ext}$major'
14822  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14823  shlibpath_var=LD_LIBRARY_PATH
14824  shlibpath_overrides_runpath=no
14825  # This implies no fast_install, which is unacceptable.
14826  # Some rework will be needed to allow for fast_install
14827  # before this can be enabled.
14828  hardcode_into_libs=yes
14829
14830  # find out which ABI we are using
14831  libsuff=
14832  case "$host_cpu" in
14833  x86_64*|s390x*|powerpc64*)
14834    echo '#line 14834 "configure"' > conftest.$ac_ext
14835    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14836  (eval $ac_compile) 2>&5
14837  ac_status=$?
14838  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14839  (exit $ac_status); }; then
14840      case `/usr/bin/file conftest.$ac_objext` in
14841      *64-bit*)
14842        libsuff=64
14843        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
14844        ;;
14845      esac
14846    fi
14847    rm -rf conftest*
14848    ;;
14849  esac
14850
14851  # Append ld.so.conf contents to the search path
14852  if test -f /etc/ld.so.conf; then
14853    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14854    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
14855  fi
14856
14857  # We used to test for /lib/ld.so.1 and disable shared libraries on
14858  # powerpc, because MkLinux only supported shared libraries with the
14859  # GNU dynamic linker.  Since this was broken with cross compilers,
14860  # most powerpc-linux boxes support dynamic linking these days and
14861  # people can always --disable-shared, the test was removed, and we
14862  # assume the GNU/Linux dynamic linker is in use.
14863  dynamic_linker='GNU/Linux ld.so'
14864  ;;
14865
14866knetbsd*-gnu)
14867  version_type=linux
14868  need_lib_prefix=no
14869  need_version=no
14870  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14871  soname_spec='${libname}${release}${shared_ext}$major'
14872  shlibpath_var=LD_LIBRARY_PATH
14873  shlibpath_overrides_runpath=no
14874  hardcode_into_libs=yes
14875  dynamic_linker='GNU ld.so'
14876  ;;
14877
14878netbsd*)
14879  version_type=sunos
14880  need_lib_prefix=no
14881  need_version=no
14882  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14883    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14884    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14885    dynamic_linker='NetBSD (a.out) ld.so'
14886  else
14887    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14888    soname_spec='${libname}${release}${shared_ext}$major'
14889    dynamic_linker='NetBSD ld.elf_so'
14890  fi
14891  shlibpath_var=LD_LIBRARY_PATH
14892  shlibpath_overrides_runpath=yes
14893  hardcode_into_libs=yes
14894  ;;
14895
14896newsos6)
14897  version_type=linux
14898  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14899  shlibpath_var=LD_LIBRARY_PATH
14900  shlibpath_overrides_runpath=yes
14901  ;;
14902
14903nto-qnx*)
14904  version_type=linux
14905  need_lib_prefix=no
14906  need_version=no
14907  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14908  soname_spec='${libname}${release}${shared_ext}$major'
14909  shlibpath_var=LD_LIBRARY_PATH
14910  shlibpath_overrides_runpath=yes
14911  ;;
14912
14913openbsd*)
14914  version_type=sunos
14915  sys_lib_dlsearch_path_spec="/usr/lib"
14916  need_lib_prefix=no
14917  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14918  case $host_os in
14919    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14920    *)                         need_version=no  ;;
14921  esac
14922  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14923  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14924  shlibpath_var=LD_LIBRARY_PATH
14925  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14926    case $host_os in
14927      openbsd2.[89] | openbsd2.[89].*)
14928	shlibpath_overrides_runpath=no
14929	;;
14930      *)
14931	shlibpath_overrides_runpath=yes
14932	;;
14933      esac
14934  else
14935    shlibpath_overrides_runpath=yes
14936  fi
14937  ;;
14938
14939os2*)
14940  libname_spec='$name'
14941  shrext_cmds=".dll"
14942  need_lib_prefix=no
14943  library_names_spec='$libname${shared_ext} $libname.a'
14944  dynamic_linker='OS/2 ld.exe'
14945  shlibpath_var=LIBPATH
14946  ;;
14947
14948osf3* | osf4* | osf5*)
14949  version_type=osf
14950  need_lib_prefix=no
14951  need_version=no
14952  soname_spec='${libname}${release}${shared_ext}$major'
14953  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14954  shlibpath_var=LD_LIBRARY_PATH
14955  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14956  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14957  ;;
14958
14959solaris*)
14960  version_type=linux
14961  need_lib_prefix=no
14962  need_version=no
14963  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14964  soname_spec='${libname}${release}${shared_ext}$major'
14965  shlibpath_var=LD_LIBRARY_PATH
14966  shlibpath_overrides_runpath=yes
14967  hardcode_into_libs=yes
14968  # ldd complains unless libraries are executable
14969  postinstall_cmds='chmod +x $lib'
14970  ;;
14971
14972sunos4*)
14973  version_type=sunos
14974  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14975  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14976  shlibpath_var=LD_LIBRARY_PATH
14977  shlibpath_overrides_runpath=yes
14978  if test "$with_gnu_ld" = yes; then
14979    need_lib_prefix=no
14980  fi
14981  need_version=yes
14982  ;;
14983
14984sysv4 | sysv4.3*)
14985  version_type=linux
14986  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14987  soname_spec='${libname}${release}${shared_ext}$major'
14988  shlibpath_var=LD_LIBRARY_PATH
14989  case $host_vendor in
14990    sni)
14991      shlibpath_overrides_runpath=no
14992      need_lib_prefix=no
14993      export_dynamic_flag_spec='${wl}-Blargedynsym'
14994      runpath_var=LD_RUN_PATH
14995      ;;
14996    siemens)
14997      need_lib_prefix=no
14998      ;;
14999    motorola)
15000      need_lib_prefix=no
15001      need_version=no
15002      shlibpath_overrides_runpath=no
15003      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15004      ;;
15005  esac
15006  ;;
15007
15008sysv4*MP*)
15009  if test -d /usr/nec ;then
15010    version_type=linux
15011    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15012    soname_spec='$libname${shared_ext}.$major'
15013    shlibpath_var=LD_LIBRARY_PATH
15014  fi
15015  ;;
15016
15017sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15018  version_type=freebsd-elf
15019  need_lib_prefix=no
15020  need_version=no
15021  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15022  soname_spec='${libname}${release}${shared_ext}$major'
15023  shlibpath_var=LD_LIBRARY_PATH
15024  hardcode_into_libs=yes
15025  if test "$with_gnu_ld" = yes; then
15026    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15027    shlibpath_overrides_runpath=no
15028  else
15029    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15030    shlibpath_overrides_runpath=yes
15031    case $host_os in
15032      sco3.2v5*)
15033        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15034	;;
15035    esac
15036  fi
15037  sys_lib_dlsearch_path_spec='/usr/lib'
15038  ;;
15039
15040uts4*)
15041  version_type=linux
15042  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15043  soname_spec='${libname}${release}${shared_ext}$major'
15044  shlibpath_var=LD_LIBRARY_PATH
15045  ;;
15046
15047*)
15048  dynamic_linker=no
15049  ;;
15050esac
15051echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15052echo "${ECHO_T}$dynamic_linker" >&6
15053test "$dynamic_linker" = no && can_build_shared=no
15054
15055variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15056if test "$GCC" = yes; then
15057  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15058fi
15059
15060echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15061echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15062hardcode_action_F77=
15063if test -n "$hardcode_libdir_flag_spec_F77" || \
15064   test -n "$runpath_var_F77" || \
15065   test "X$hardcode_automatic_F77" = "Xyes" ; then
15066
15067  # We can hardcode non-existant directories.
15068  if test "$hardcode_direct_F77" != no &&
15069     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15070     # have to relink, otherwise we might link with an installed library
15071     # when we should be linking with a yet-to-be-installed one
15072     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15073     test "$hardcode_minus_L_F77" != no; then
15074    # Linking always hardcodes the temporary library directory.
15075    hardcode_action_F77=relink
15076  else
15077    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15078    hardcode_action_F77=immediate
15079  fi
15080else
15081  # We cannot hardcode anything, or else we can only hardcode existing
15082  # directories.
15083  hardcode_action_F77=unsupported
15084fi
15085echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15086echo "${ECHO_T}$hardcode_action_F77" >&6
15087
15088if test "$hardcode_action_F77" = relink; then
15089  # Fast installation is not supported
15090  enable_fast_install=no
15091elif test "$shlibpath_overrides_runpath" = yes ||
15092     test "$enable_shared" = no; then
15093  # Fast installation is not necessary
15094  enable_fast_install=needless
15095fi
15096
15097
15098# The else clause should only fire when bootstrapping the
15099# libtool distribution, otherwise you forgot to ship ltmain.sh
15100# with your package, and you will get complaints that there are
15101# no rules to generate ltmain.sh.
15102if test -f "$ltmain"; then
15103  # See if we are running on zsh, and set the options which allow our commands through
15104  # without removal of \ escapes.
15105  if test -n "${ZSH_VERSION+set}" ; then
15106    setopt NO_GLOB_SUBST
15107  fi
15108  # Now quote all the things that may contain metacharacters while being
15109  # careful not to overquote the AC_SUBSTed values.  We take copies of the
15110  # variables and quote the copies for generation of the libtool script.
15111  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15112    SED SHELL STRIP \
15113    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15114    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15115    deplibs_check_method reload_flag reload_cmds need_locks \
15116    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15117    lt_cv_sys_global_symbol_to_c_name_address \
15118    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15119    old_postinstall_cmds old_postuninstall_cmds \
15120    compiler_F77 \
15121    CC_F77 \
15122    LD_F77 \
15123    lt_prog_compiler_wl_F77 \
15124    lt_prog_compiler_pic_F77 \
15125    lt_prog_compiler_static_F77 \
15126    lt_prog_compiler_no_builtin_flag_F77 \
15127    export_dynamic_flag_spec_F77 \
15128    thread_safe_flag_spec_F77 \
15129    whole_archive_flag_spec_F77 \
15130    enable_shared_with_static_runtimes_F77 \
15131    old_archive_cmds_F77 \
15132    old_archive_from_new_cmds_F77 \
15133    predep_objects_F77 \
15134    postdep_objects_F77 \
15135    predeps_F77 \
15136    postdeps_F77 \
15137    compiler_lib_search_path_F77 \
15138    archive_cmds_F77 \
15139    archive_expsym_cmds_F77 \
15140    postinstall_cmds_F77 \
15141    postuninstall_cmds_F77 \
15142    old_archive_from_expsyms_cmds_F77 \
15143    allow_undefined_flag_F77 \
15144    no_undefined_flag_F77 \
15145    export_symbols_cmds_F77 \
15146    hardcode_libdir_flag_spec_F77 \
15147    hardcode_libdir_flag_spec_ld_F77 \
15148    hardcode_libdir_separator_F77 \
15149    hardcode_automatic_F77 \
15150    module_cmds_F77 \
15151    module_expsym_cmds_F77 \
15152    lt_cv_prog_compiler_c_o_F77 \
15153    exclude_expsyms_F77 \
15154    include_expsyms_F77; do
15155
15156    case $var in
15157    old_archive_cmds_F77 | \
15158    old_archive_from_new_cmds_F77 | \
15159    archive_cmds_F77 | \
15160    archive_expsym_cmds_F77 | \
15161    module_cmds_F77 | \
15162    module_expsym_cmds_F77 | \
15163    old_archive_from_expsyms_cmds_F77 | \
15164    export_symbols_cmds_F77 | \
15165    extract_expsyms_cmds | reload_cmds | finish_cmds | \
15166    postinstall_cmds | postuninstall_cmds | \
15167    old_postinstall_cmds | old_postuninstall_cmds | \
15168    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15169      # Double-quote double-evaled strings.
15170      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15171      ;;
15172    *)
15173      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15174      ;;
15175    esac
15176  done
15177
15178  case $lt_echo in
15179  *'\$0 --fallback-echo"')
15180    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15181    ;;
15182  esac
15183
15184cfgfile="$ofile"
15185
15186  cat <<__EOF__ >> "$cfgfile"
15187# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15188
15189# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15190
15191# Shell to use when invoking shell scripts.
15192SHELL=$lt_SHELL
15193
15194# Whether or not to build shared libraries.
15195build_libtool_libs=$enable_shared
15196
15197# Whether or not to build static libraries.
15198build_old_libs=$enable_static
15199
15200# Whether or not to add -lc for building shared libraries.
15201build_libtool_need_lc=$archive_cmds_need_lc_F77
15202
15203# Whether or not to disallow shared libs when runtime libs are static
15204allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15205
15206# Whether or not to optimize for fast installation.
15207fast_install=$enable_fast_install
15208
15209# The host system.
15210host_alias=$host_alias
15211host=$host
15212host_os=$host_os
15213
15214# The build system.
15215build_alias=$build_alias
15216build=$build
15217build_os=$build_os
15218
15219# An echo program that does not interpret backslashes.
15220echo=$lt_echo
15221
15222# The archiver.
15223AR=$lt_AR
15224AR_FLAGS=$lt_AR_FLAGS
15225
15226# A C compiler.
15227LTCC=$lt_LTCC
15228
15229# LTCC compiler flags.
15230LTCFLAGS=$lt_LTCFLAGS
15231
15232# A language-specific compiler.
15233CC=$lt_compiler_F77
15234
15235# Is the compiler the GNU C compiler?
15236with_gcc=$GCC_F77
15237
15238gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
15239gcc_ver=\`gcc -dumpversion\`
15240
15241# An ERE matcher.
15242EGREP=$lt_EGREP
15243
15244# The linker used to build libraries.
15245LD=$lt_LD_F77
15246
15247# Whether we need hard or soft links.
15248LN_S=$lt_LN_S
15249
15250# A BSD-compatible nm program.
15251NM=$lt_NM
15252
15253# A symbol stripping program
15254STRIP=$lt_STRIP
15255
15256# Used to examine libraries when file_magic_cmd begins "file"
15257MAGIC_CMD=$MAGIC_CMD
15258
15259# Used on cygwin: DLL creation program.
15260DLLTOOL="$DLLTOOL"
15261
15262# Used on cygwin: object dumper.
15263OBJDUMP="$OBJDUMP"
15264
15265# Used on cygwin: assembler.
15266AS="$AS"
15267
15268# The name of the directory that contains temporary libtool files.
15269objdir=$objdir
15270
15271# How to create reloadable object files.
15272reload_flag=$lt_reload_flag
15273reload_cmds=$lt_reload_cmds
15274
15275# How to pass a linker flag through the compiler.
15276wl=$lt_lt_prog_compiler_wl_F77
15277
15278# Object file suffix (normally "o").
15279objext="$ac_objext"
15280
15281# Old archive suffix (normally "a").
15282libext="$libext"
15283
15284# Shared library suffix (normally ".so").
15285shrext_cmds='$shrext_cmds'
15286
15287# Executable file suffix (normally "").
15288exeext="$exeext"
15289
15290# Additional compiler flags for building library objects.
15291pic_flag=$lt_lt_prog_compiler_pic_F77
15292pic_mode=$pic_mode
15293
15294# What is the maximum length of a command?
15295max_cmd_len=$lt_cv_sys_max_cmd_len
15296
15297# Does compiler simultaneously support -c and -o options?
15298compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15299
15300# Must we lock files when doing compilation?
15301need_locks=$lt_need_locks
15302
15303# Do we need the lib prefix for modules?
15304need_lib_prefix=$need_lib_prefix
15305
15306# Do we need a version for libraries?
15307need_version=$need_version
15308
15309# Whether dlopen is supported.
15310dlopen_support=$enable_dlopen
15311
15312# Whether dlopen of programs is supported.
15313dlopen_self=$enable_dlopen_self
15314
15315# Whether dlopen of statically linked programs is supported.
15316dlopen_self_static=$enable_dlopen_self_static
15317
15318# Compiler flag to prevent dynamic linking.
15319link_static_flag=$lt_lt_prog_compiler_static_F77
15320
15321# Compiler flag to turn off builtin functions.
15322no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15323
15324# Compiler flag to allow reflexive dlopens.
15325export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15326
15327# Compiler flag to generate shared objects directly from archives.
15328whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15329
15330# Compiler flag to generate thread-safe objects.
15331thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15332
15333# Library versioning type.
15334version_type=$version_type
15335
15336# Format of library name prefix.
15337libname_spec=$lt_libname_spec
15338
15339# List of archive names.  First name is the real one, the rest are links.
15340# The last name is the one that the linker finds with -lNAME.
15341library_names_spec=$lt_library_names_spec
15342
15343# The coded name of the library, if different from the real name.
15344soname_spec=$lt_soname_spec
15345
15346# Commands used to build and install an old-style archive.
15347RANLIB=$lt_RANLIB
15348old_archive_cmds=$lt_old_archive_cmds_F77
15349old_postinstall_cmds=$lt_old_postinstall_cmds
15350old_postuninstall_cmds=$lt_old_postuninstall_cmds
15351
15352# Create an old-style archive from a shared archive.
15353old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15354
15355# Create a temporary old-style archive to link instead of a shared archive.
15356old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15357
15358# Commands used to build and install a shared archive.
15359archive_cmds=$lt_archive_cmds_F77
15360archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15361postinstall_cmds=$lt_postinstall_cmds
15362postuninstall_cmds=$lt_postuninstall_cmds
15363
15364# Commands used to build a loadable module (assumed same as above if empty)
15365module_cmds=$lt_module_cmds_F77
15366module_expsym_cmds=$lt_module_expsym_cmds_F77
15367
15368# Commands to strip libraries.
15369old_striplib=$lt_old_striplib
15370striplib=$lt_striplib
15371
15372# Dependencies to place before the objects being linked to create a
15373# shared library.
15374predep_objects=\`echo $lt_predep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15375
15376# Dependencies to place after the objects being linked to create a
15377# shared library.
15378postdep_objects=\`echo $lt_postdep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15379
15380# Dependencies to place before the objects being linked to create a
15381# shared library.
15382predeps=$lt_predeps_F77
15383
15384# Dependencies to place after the objects being linked to create a
15385# shared library.
15386postdeps=$lt_postdeps_F77
15387
15388# The library search path used internally by the compiler when linking
15389# a shared library.
15390compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15391
15392# Method to check whether dependent libraries are shared objects.
15393deplibs_check_method=$lt_deplibs_check_method
15394
15395# Command to use when deplibs_check_method == file_magic.
15396file_magic_cmd=$lt_file_magic_cmd
15397
15398# Flag that allows shared libraries with undefined symbols to be built.
15399allow_undefined_flag=$lt_allow_undefined_flag_F77
15400
15401# Flag that forces no undefined symbols.
15402no_undefined_flag=$lt_no_undefined_flag_F77
15403
15404# Commands used to finish a libtool library installation in a directory.
15405finish_cmds=$lt_finish_cmds
15406
15407# Same as above, but a single script fragment to be evaled but not shown.
15408finish_eval=$lt_finish_eval
15409
15410# Take the output of nm and produce a listing of raw symbols and C names.
15411global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15412
15413# Transform the output of nm in a proper C declaration
15414global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15415
15416# Transform the output of nm in a C name address pair
15417global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15418
15419# This is the shared library runtime path variable.
15420runpath_var=$runpath_var
15421
15422# This is the shared library path variable.
15423shlibpath_var=$shlibpath_var
15424
15425# Is shlibpath searched before the hard-coded library search path?
15426shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15427
15428# How to hardcode a shared library path into an executable.
15429hardcode_action=$hardcode_action_F77
15430
15431# Whether we should hardcode library paths into libraries.
15432hardcode_into_libs=$hardcode_into_libs
15433
15434# Flag to hardcode \$libdir into a binary during linking.
15435# This must work even if \$libdir does not exist.
15436hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15437
15438# If ld is used when linking, flag to hardcode \$libdir into
15439# a binary during linking. This must work even if \$libdir does
15440# not exist.
15441hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15442
15443# Whether we need a single -rpath flag with a separated argument.
15444hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15445
15446# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15447# resulting binary.
15448hardcode_direct=$hardcode_direct_F77
15449
15450# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15451# resulting binary.
15452hardcode_minus_L=$hardcode_minus_L_F77
15453
15454# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15455# the resulting binary.
15456hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15457
15458# Set to yes if building a shared library automatically hardcodes DIR into the library
15459# and all subsequent libraries and executables linked against it.
15460hardcode_automatic=$hardcode_automatic_F77
15461
15462# Variables whose values should be saved in libtool wrapper scripts and
15463# restored at relink time.
15464variables_saved_for_relink="$variables_saved_for_relink"
15465
15466# Whether libtool must link a program against all its dependency libraries.
15467link_all_deplibs=$link_all_deplibs_F77
15468
15469# Compile-time system search path for libraries
15470sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15471
15472# Run-time system search path for libraries
15473sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15474
15475# Fix the shell variable \$srcfile for the compiler.
15476fix_srcfile_path="$fix_srcfile_path_F77"
15477
15478# Set to yes if exported symbols are required.
15479always_export_symbols=$always_export_symbols_F77
15480
15481# The commands to list exported symbols.
15482export_symbols_cmds=$lt_export_symbols_cmds_F77
15483
15484# The commands to extract the exported symbol list from a shared archive.
15485extract_expsyms_cmds=$lt_extract_expsyms_cmds
15486
15487# Symbols that should not be listed in the preloaded symbols.
15488exclude_expsyms=$lt_exclude_expsyms_F77
15489
15490# Symbols that must always be exported.
15491include_expsyms=$lt_include_expsyms_F77
15492
15493# ### END LIBTOOL TAG CONFIG: $tagname
15494
15495__EOF__
15496
15497
15498else
15499  # If there is no Makefile yet, we rely on a make rule to execute
15500  # `config.status --recheck' to rerun these tests and create the
15501  # libtool script then.
15502  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15503  if test -f "$ltmain_in"; then
15504    test -f Makefile && make "$ltmain"
15505  fi
15506fi
15507
15508
15509ac_ext=c
15510ac_cpp='$CPP $CPPFLAGS'
15511ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15512ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15513ac_compiler_gnu=$ac_cv_c_compiler_gnu
15514
15515CC="$lt_save_CC"
15516
15517	else
15518	  tagname=""
15519	fi
15520	;;
15521
15522      GCJ)
15523	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15524
15525
15526
15527# Source file extension for Java test sources.
15528ac_ext=java
15529
15530# Object file extension for compiled Java test sources.
15531objext=o
15532objext_GCJ=$objext
15533
15534# Code to be used in simple compile tests
15535lt_simple_compile_test_code="class foo {}\n"
15536
15537# Code to be used in simple link tests
15538lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15539
15540# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15541
15542# If no C compiler was specified, use CC.
15543LTCC=${LTCC-"$CC"}
15544
15545# If no C compiler flags were specified, use CFLAGS.
15546LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15547
15548# Allow CC to be a program name with arguments.
15549compiler=$CC
15550
15551
15552# save warnings/boilerplate of simple test code
15553ac_outfile=conftest.$ac_objext
15554printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15555eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15556_lt_compiler_boilerplate=`cat conftest.err`
15557$rm conftest*
15558
15559ac_outfile=conftest.$ac_objext
15560printf "$lt_simple_link_test_code" >conftest.$ac_ext
15561eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15562_lt_linker_boilerplate=`cat conftest.err`
15563$rm conftest*
15564
15565
15566# Allow CC to be a program name with arguments.
15567lt_save_CC="$CC"
15568CC=${GCJ-"gcj"}
15569compiler=$CC
15570compiler_GCJ=$CC
15571for cc_temp in $compiler""; do
15572  case $cc_temp in
15573    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15574    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15575    \-*) ;;
15576    *) break;;
15577  esac
15578done
15579cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15580
15581
15582# GCJ did not exist at the time GCC didn't implicitly link libc in.
15583archive_cmds_need_lc_GCJ=no
15584
15585old_archive_cmds_GCJ=$old_archive_cmds
15586
15587
15588lt_prog_compiler_no_builtin_flag_GCJ=
15589
15590if test "$GCC" = yes; then
15591  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15592
15593
15594echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15595echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15596if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15597  echo $ECHO_N "(cached) $ECHO_C" >&6
15598else
15599  lt_cv_prog_compiler_rtti_exceptions=no
15600  ac_outfile=conftest.$ac_objext
15601   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15602   lt_compiler_flag="-fno-rtti -fno-exceptions"
15603   # Insert the option either (1) after the last *FLAGS variable, or
15604   # (2) before a word containing "conftest.", or (3) at the end.
15605   # Note that $ac_compile itself does not contain backslashes and begins
15606   # with a dollar sign (not a hyphen), so the echo should work correctly.
15607   # The option is referenced via a variable to avoid confusing sed.
15608   lt_compile=`echo "$ac_compile" | $SED \
15609   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15610   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15611   -e 's:$: $lt_compiler_flag:'`
15612   (eval echo "\"\$as_me:15612: $lt_compile\"" >&5)
15613   (eval "$lt_compile" 2>conftest.err)
15614   ac_status=$?
15615   cat conftest.err >&5
15616   echo "$as_me:15616: \$? = $ac_status" >&5
15617   if (exit $ac_status) && test -s "$ac_outfile"; then
15618     # The compiler can only warn and ignore the option if not recognized
15619     # So say no if there are warnings other than the usual output.
15620     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15621     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15622     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15623       lt_cv_prog_compiler_rtti_exceptions=yes
15624     fi
15625   fi
15626   $rm conftest*
15627
15628fi
15629echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15630echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15631
15632if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15633    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15634else
15635    :
15636fi
15637
15638fi
15639
15640lt_prog_compiler_wl_GCJ=
15641lt_prog_compiler_pic_GCJ=
15642lt_prog_compiler_static_GCJ=
15643
15644echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15645echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15646
15647  if test "$GCC" = yes; then
15648    lt_prog_compiler_wl_GCJ='-Wl,'
15649    lt_prog_compiler_static_GCJ='-static'
15650
15651    case $host_os in
15652      aix*)
15653      # All AIX code is PIC.
15654      if test "$host_cpu" = ia64; then
15655	# AIX 5 now supports IA64 processor
15656	lt_prog_compiler_static_GCJ='-Bstatic'
15657      fi
15658      ;;
15659
15660    amigaos*)
15661      # FIXME: we need at least 68020 code to build shared libraries, but
15662      # adding the `-m68020' flag to GCC prevents building anything better,
15663      # like `-m68040'.
15664      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15665      ;;
15666
15667    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15668      # PIC is the default for these OSes.
15669      ;;
15670
15671    mingw* | pw32* | os2*)
15672      # This hack is so that the source file can tell whether it is being
15673      # built for inclusion in a dll (and should export symbols for example).
15674      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15675      ;;
15676
15677    darwin* | rhapsody*)
15678      # PIC is the default on this platform
15679      # Common symbols not allowed in MH_DYLIB files
15680      lt_prog_compiler_pic_GCJ='-fno-common'
15681      ;;
15682
15683    interix3*)
15684      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15685      # Instead, we relocate shared libraries at runtime.
15686      ;;
15687
15688    msdosdjgpp*)
15689      # Just because we use GCC doesn't mean we suddenly get shared libraries
15690      # on systems that don't support them.
15691      lt_prog_compiler_can_build_shared_GCJ=no
15692      enable_shared=no
15693      ;;
15694
15695    sysv4*MP*)
15696      if test -d /usr/nec; then
15697	lt_prog_compiler_pic_GCJ=-Kconform_pic
15698      fi
15699      ;;
15700
15701    hpux*)
15702      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15703      # not for PA HP-UX.
15704      case $host_cpu in
15705      hppa*64*|ia64*)
15706	# +Z the default
15707	;;
15708      *)
15709	lt_prog_compiler_pic_GCJ='-fPIC'
15710	;;
15711      esac
15712      ;;
15713
15714    *)
15715      lt_prog_compiler_pic_GCJ='-fPIC'
15716      ;;
15717    esac
15718  else
15719    # PORTME Check for flag to pass linker flags through the system compiler.
15720    case $host_os in
15721    aix*)
15722      lt_prog_compiler_wl_GCJ='-Wl,'
15723      if test "$host_cpu" = ia64; then
15724	# AIX 5 now supports IA64 processor
15725	lt_prog_compiler_static_GCJ='-Bstatic'
15726      else
15727	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15728      fi
15729      ;;
15730      darwin*)
15731        # PIC is the default on this platform
15732        # Common symbols not allowed in MH_DYLIB files
15733       case $cc_basename in
15734         xlc*)
15735         lt_prog_compiler_pic_GCJ='-qnocommon'
15736         lt_prog_compiler_wl_GCJ='-Wl,'
15737         ;;
15738       esac
15739       ;;
15740
15741    mingw* | pw32* | os2*)
15742      # This hack is so that the source file can tell whether it is being
15743      # built for inclusion in a dll (and should export symbols for example).
15744      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15745      ;;
15746
15747    hpux9* | hpux10* | hpux11*)
15748      lt_prog_compiler_wl_GCJ='-Wl,'
15749      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15750      # not for PA HP-UX.
15751      case $host_cpu in
15752      hppa*64*|ia64*)
15753	# +Z the default
15754	;;
15755      *)
15756	lt_prog_compiler_pic_GCJ='+Z'
15757	;;
15758      esac
15759      # Is there a better lt_prog_compiler_static that works with the bundled CC?
15760      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15761      ;;
15762
15763    irix5* | irix6* | nonstopux*)
15764      lt_prog_compiler_wl_GCJ='-Wl,'
15765      # PIC (with -KPIC) is the default.
15766      lt_prog_compiler_static_GCJ='-non_shared'
15767      ;;
15768
15769    newsos6)
15770      lt_prog_compiler_pic_GCJ='-KPIC'
15771      lt_prog_compiler_static_GCJ='-Bstatic'
15772      ;;
15773
15774    linux*)
15775      case $cc_basename in
15776      icc* | ecc*)
15777	lt_prog_compiler_wl_GCJ='-Wl,'
15778	lt_prog_compiler_pic_GCJ='-KPIC'
15779	lt_prog_compiler_static_GCJ='-static'
15780        ;;
15781      pgcc* | pgf77* | pgf90* | pgf95*)
15782        # Portland Group compilers (*not* the Pentium gcc compiler,
15783	# which looks to be a dead project)
15784	lt_prog_compiler_wl_GCJ='-Wl,'
15785	lt_prog_compiler_pic_GCJ='-fpic'
15786	lt_prog_compiler_static_GCJ='-Bstatic'
15787        ;;
15788      ccc*)
15789        lt_prog_compiler_wl_GCJ='-Wl,'
15790        # All Alpha code is PIC.
15791        lt_prog_compiler_static_GCJ='-non_shared'
15792        ;;
15793      esac
15794      ;;
15795
15796    osf3* | osf4* | osf5*)
15797      lt_prog_compiler_wl_GCJ='-Wl,'
15798      # All OSF/1 code is PIC.
15799      lt_prog_compiler_static_GCJ='-non_shared'
15800      ;;
15801
15802    solaris*)
15803      lt_prog_compiler_pic_GCJ='-KPIC'
15804      lt_prog_compiler_static_GCJ='-Bstatic'
15805      case $cc_basename in
15806      f77* | f90* | f95*)
15807	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
15808      *)
15809	lt_prog_compiler_wl_GCJ='-Wl,';;
15810      esac
15811      ;;
15812
15813    sunos4*)
15814      lt_prog_compiler_wl_GCJ='-Qoption ld '
15815      lt_prog_compiler_pic_GCJ='-PIC'
15816      lt_prog_compiler_static_GCJ='-Bstatic'
15817      ;;
15818
15819    sysv4 | sysv4.2uw2* | sysv4.3*)
15820      lt_prog_compiler_wl_GCJ='-Wl,'
15821      lt_prog_compiler_pic_GCJ='-KPIC'
15822      lt_prog_compiler_static_GCJ='-Bstatic'
15823      ;;
15824
15825    sysv4*MP*)
15826      if test -d /usr/nec ;then
15827	lt_prog_compiler_pic_GCJ='-Kconform_pic'
15828	lt_prog_compiler_static_GCJ='-Bstatic'
15829      fi
15830      ;;
15831
15832    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15833      lt_prog_compiler_wl_GCJ='-Wl,'
15834      lt_prog_compiler_pic_GCJ='-KPIC'
15835      lt_prog_compiler_static_GCJ='-Bstatic'
15836      ;;
15837
15838    unicos*)
15839      lt_prog_compiler_wl_GCJ='-Wl,'
15840      lt_prog_compiler_can_build_shared_GCJ=no
15841      ;;
15842
15843    uts4*)
15844      lt_prog_compiler_pic_GCJ='-pic'
15845      lt_prog_compiler_static_GCJ='-Bstatic'
15846      ;;
15847
15848    *)
15849      lt_prog_compiler_can_build_shared_GCJ=no
15850      ;;
15851    esac
15852  fi
15853
15854echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15855echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15856
15857#
15858# Check to make sure the PIC flag actually works.
15859#
15860if test -n "$lt_prog_compiler_pic_GCJ"; then
15861
15862echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15863echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15864if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15865  echo $ECHO_N "(cached) $ECHO_C" >&6
15866else
15867  lt_prog_compiler_pic_works_GCJ=no
15868  ac_outfile=conftest.$ac_objext
15869   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15870   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15871   # Insert the option either (1) after the last *FLAGS variable, or
15872   # (2) before a word containing "conftest.", or (3) at the end.
15873   # Note that $ac_compile itself does not contain backslashes and begins
15874   # with a dollar sign (not a hyphen), so the echo should work correctly.
15875   # The option is referenced via a variable to avoid confusing sed.
15876   lt_compile=`echo "$ac_compile" | $SED \
15877   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15878   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15879   -e 's:$: $lt_compiler_flag:'`
15880   (eval echo "\"\$as_me:15880: $lt_compile\"" >&5)
15881   (eval "$lt_compile" 2>conftest.err)
15882   ac_status=$?
15883   cat conftest.err >&5
15884   echo "$as_me:15884: \$? = $ac_status" >&5
15885   if (exit $ac_status) && test -s "$ac_outfile"; then
15886     # The compiler can only warn and ignore the option if not recognized
15887     # So say no if there are warnings other than the usual output.
15888     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15889     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15890     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15891       lt_prog_compiler_pic_works_GCJ=yes
15892     fi
15893   fi
15894   $rm conftest*
15895
15896fi
15897echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15898echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15899
15900if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15901    case $lt_prog_compiler_pic_GCJ in
15902     "" | " "*) ;;
15903     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15904     esac
15905else
15906    lt_prog_compiler_pic_GCJ=
15907     lt_prog_compiler_can_build_shared_GCJ=no
15908fi
15909
15910fi
15911case $host_os in
15912  # For platforms which do not support PIC, -DPIC is meaningless:
15913  *djgpp*)
15914    lt_prog_compiler_pic_GCJ=
15915    ;;
15916  *)
15917    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15918    ;;
15919esac
15920
15921#
15922# Check to make sure the static flag actually works.
15923#
15924wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
15925echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15926echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
15927if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
15928  echo $ECHO_N "(cached) $ECHO_C" >&6
15929else
15930  lt_prog_compiler_static_works_GCJ=no
15931   save_LDFLAGS="$LDFLAGS"
15932   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15933   printf "$lt_simple_link_test_code" > conftest.$ac_ext
15934   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15935     # The linker can only warn and ignore the option if not recognized
15936     # So say no if there are warnings
15937     if test -s conftest.err; then
15938       # Append any errors to the config.log.
15939       cat conftest.err 1>&5
15940       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15941       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15942       if diff conftest.exp conftest.er2 >/dev/null; then
15943         lt_prog_compiler_static_works_GCJ=yes
15944       fi
15945     else
15946       lt_prog_compiler_static_works_GCJ=yes
15947     fi
15948   fi
15949   $rm conftest*
15950   LDFLAGS="$save_LDFLAGS"
15951
15952fi
15953echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
15954echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
15955
15956if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
15957    :
15958else
15959    lt_prog_compiler_static_GCJ=
15960fi
15961
15962
15963echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15964echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15965if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15966  echo $ECHO_N "(cached) $ECHO_C" >&6
15967else
15968  lt_cv_prog_compiler_c_o_GCJ=no
15969   $rm -r conftest 2>/dev/null
15970   mkdir conftest
15971   cd conftest
15972   mkdir out
15973   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15974
15975   lt_compiler_flag="-o out/conftest2.$ac_objext"
15976   # Insert the option either (1) after the last *FLAGS variable, or
15977   # (2) before a word containing "conftest.", or (3) at the end.
15978   # Note that $ac_compile itself does not contain backslashes and begins
15979   # with a dollar sign (not a hyphen), so the echo should work correctly.
15980   lt_compile=`echo "$ac_compile" | $SED \
15981   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15982   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15983   -e 's:$: $lt_compiler_flag:'`
15984   (eval echo "\"\$as_me:15984: $lt_compile\"" >&5)
15985   (eval "$lt_compile" 2>out/conftest.err)
15986   ac_status=$?
15987   cat out/conftest.err >&5
15988   echo "$as_me:15988: \$? = $ac_status" >&5
15989   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15990   then
15991     # The compiler can only warn and ignore the option if not recognized
15992     # So say no if there are warnings
15993     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15994     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15995     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15996       lt_cv_prog_compiler_c_o_GCJ=yes
15997     fi
15998   fi
15999   chmod u+w . 2>&5
16000   $rm conftest*
16001   # SGI C++ compiler will create directory out/ii_files/ for
16002   # template instantiation
16003   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16004   $rm out/* && rmdir out
16005   cd ..
16006   rmdir conftest
16007   $rm conftest*
16008
16009fi
16010echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16011echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16012
16013
16014hard_links="nottested"
16015if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16016  # do not overwrite the value of need_locks provided by the user
16017  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16018echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16019  hard_links=yes
16020  $rm conftest*
16021  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16022  touch conftest.a
16023  ln conftest.a conftest.b 2>&5 || hard_links=no
16024  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16025  echo "$as_me:$LINENO: result: $hard_links" >&5
16026echo "${ECHO_T}$hard_links" >&6
16027  if test "$hard_links" = no; then
16028    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16029echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16030    need_locks=warn
16031  fi
16032else
16033  need_locks=no
16034fi
16035
16036echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16037echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16038
16039  runpath_var=
16040  allow_undefined_flag_GCJ=
16041  enable_shared_with_static_runtimes_GCJ=no
16042  archive_cmds_GCJ=
16043  archive_expsym_cmds_GCJ=
16044  old_archive_From_new_cmds_GCJ=
16045  old_archive_from_expsyms_cmds_GCJ=
16046  export_dynamic_flag_spec_GCJ=
16047  whole_archive_flag_spec_GCJ=
16048  thread_safe_flag_spec_GCJ=
16049  hardcode_libdir_flag_spec_GCJ=
16050  hardcode_libdir_flag_spec_ld_GCJ=
16051  hardcode_libdir_separator_GCJ=
16052  hardcode_direct_GCJ=no
16053  hardcode_minus_L_GCJ=no
16054  hardcode_shlibpath_var_GCJ=unsupported
16055  link_all_deplibs_GCJ=unknown
16056  hardcode_automatic_GCJ=no
16057  module_cmds_GCJ=
16058  module_expsym_cmds_GCJ=
16059  always_export_symbols_GCJ=no
16060  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16061  # include_expsyms should be a list of space-separated symbols to be *always*
16062  # included in the symbol list
16063  include_expsyms_GCJ=
16064  # exclude_expsyms can be an extended regexp of symbols to exclude
16065  # it will be wrapped by ` (' and `)$', so one must not match beginning or
16066  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16067  # as well as any symbol that contains `d'.
16068  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16069  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16070  # platforms (ab)use it in PIC code, but their linkers get confused if
16071  # the symbol is explicitly referenced.  Since portable code cannot
16072  # rely on this symbol name, it's probably fine to never include it in
16073  # preloaded symbol tables.
16074  extract_expsyms_cmds=
16075  # Just being paranoid about ensuring that cc_basename is set.
16076  for cc_temp in $compiler""; do
16077  case $cc_temp in
16078    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16079    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16080    \-*) ;;
16081    *) break;;
16082  esac
16083done
16084cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16085
16086  case $host_os in
16087  cygwin* | mingw* | pw32*)
16088    # FIXME: the MSVC++ port hasn't been tested in a loooong time
16089    # When not using gcc, we currently assume that we are using
16090    # Microsoft Visual C++.
16091    if test "$GCC" != yes; then
16092      with_gnu_ld=no
16093    fi
16094    ;;
16095  interix*)
16096    # we just hope/assume this is gcc and not c89 (= MSVC++)
16097    with_gnu_ld=yes
16098    ;;
16099  openbsd*)
16100    with_gnu_ld=no
16101    ;;
16102  esac
16103
16104  ld_shlibs_GCJ=yes
16105  if test "$with_gnu_ld" = yes; then
16106    # If archive_cmds runs LD, not CC, wlarc should be empty
16107    wlarc='${wl}'
16108
16109    # Set some defaults for GNU ld with shared library support. These
16110    # are reset later if shared libraries are not supported. Putting them
16111    # here allows them to be overridden if necessary.
16112    runpath_var=LD_RUN_PATH
16113    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16114    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16115    # ancient GNU ld didn't support --whole-archive et. al.
16116    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16117	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16118      else
16119  	whole_archive_flag_spec_GCJ=
16120    fi
16121    supports_anon_versioning=no
16122    case `$LD -v 2>/dev/null` in
16123      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16124      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16125      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16126      *\ 2.11.*) ;; # other 2.11 versions
16127      *) supports_anon_versioning=yes ;;
16128    esac
16129
16130    # See if GNU ld supports shared libraries.
16131    case $host_os in
16132    aix3* | aix4* | aix5*)
16133      # On AIX/PPC, the GNU linker is very broken
16134      if test "$host_cpu" != ia64; then
16135	ld_shlibs_GCJ=no
16136	cat <<EOF 1>&2
16137
16138*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16139*** to be unable to reliably create shared libraries on AIX.
16140*** Therefore, libtool is disabling shared libraries support.  If you
16141*** really care for shared libraries, you may want to modify your PATH
16142*** so that a non-GNU linker is found, and then restart.
16143
16144EOF
16145      fi
16146      ;;
16147
16148    amigaos*)
16149      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)'
16150      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16151      hardcode_minus_L_GCJ=yes
16152
16153      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16154      # that the semantics of dynamic libraries on AmigaOS, at least up
16155      # to version 4, is to share data among multiple programs linked
16156      # with the same dynamic library.  Since this doesn't match the
16157      # behavior of shared libraries on other platforms, we can't use
16158      # them.
16159      ld_shlibs_GCJ=no
16160      ;;
16161
16162    beos*)
16163      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16164	allow_undefined_flag_GCJ=unsupported
16165	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16166	# support --undefined.  This deserves some investigation.  FIXME
16167	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16168      else
16169	ld_shlibs_GCJ=no
16170      fi
16171      ;;
16172
16173    cygwin* | mingw* | pw32*)
16174      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16175      # as there is no search path for DLLs.
16176      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16177      allow_undefined_flag_GCJ=unsupported
16178      always_export_symbols_GCJ=no
16179      enable_shared_with_static_runtimes_GCJ=yes
16180      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16181
16182      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16183        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16184	# If the export-symbols file already is a .def file (1st line
16185	# is EXPORTS), use it as is; otherwise, prepend...
16186	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16187	  cp $export_symbols $output_objdir/$soname.def;
16188	else
16189	  echo EXPORTS > $output_objdir/$soname.def;
16190	  cat $export_symbols >> $output_objdir/$soname.def;
16191	fi~
16192	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16193      else
16194	ld_shlibs_GCJ=no
16195      fi
16196      ;;
16197
16198    interix3*)
16199      hardcode_direct_GCJ=no
16200      hardcode_shlibpath_var_GCJ=no
16201      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16202      export_dynamic_flag_spec_GCJ='${wl}-E'
16203      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16204      # Instead, shared libraries are loaded at an image base (0x10000000 by
16205      # default) and relocated if they conflict, which is a slow very memory
16206      # consuming and fragmenting process.  To avoid this, we pick a random,
16207      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16208      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16209      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'
16210      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'
16211      ;;
16212
16213    linux*)
16214      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16215	tmp_addflag=
16216	case $cc_basename,$host_cpu in
16217	pgcc*)				# Portland Group C compiler
16218	  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'
16219	  tmp_addflag=' $pic_flag'
16220	  ;;
16221	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
16222	  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'
16223	  tmp_addflag=' $pic_flag -Mnomain' ;;
16224	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
16225	  tmp_addflag=' -i_dynamic' ;;
16226	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
16227	  tmp_addflag=' -i_dynamic -nofor_main' ;;
16228	ifc* | ifort*)			# Intel Fortran compiler
16229	  tmp_addflag=' -nofor_main' ;;
16230	esac
16231	archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16232
16233	if test $supports_anon_versioning = yes; then
16234	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16235  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16236  $echo "local: *; };" >> $output_objdir/$libname.ver~
16237	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16238	fi
16239      else
16240	ld_shlibs_GCJ=no
16241      fi
16242      ;;
16243
16244    netbsd*)
16245      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16246	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16247	wlarc=
16248      else
16249	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16250	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16251      fi
16252      ;;
16253
16254    solaris*)
16255      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16256	ld_shlibs_GCJ=no
16257	cat <<EOF 1>&2
16258
16259*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16260*** create shared libraries on Solaris systems.  Therefore, libtool
16261*** is disabling shared libraries support.  We urge you to upgrade GNU
16262*** binutils to release 2.9.1 or newer.  Another option is to modify
16263*** your PATH or compiler configuration so that the native linker is
16264*** used, and then restart.
16265
16266EOF
16267      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16268	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16269	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16270      else
16271	ld_shlibs_GCJ=no
16272      fi
16273      ;;
16274
16275    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16276      case `$LD -v 2>&1` in
16277        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16278	ld_shlibs_GCJ=no
16279	cat <<_LT_EOF 1>&2
16280
16281*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16282*** reliably create shared libraries on SCO systems.  Therefore, libtool
16283*** is disabling shared libraries support.  We urge you to upgrade GNU
16284*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16285*** your PATH or compiler configuration so that the native linker is
16286*** used, and then restart.
16287
16288_LT_EOF
16289	;;
16290	*)
16291	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16292	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16293	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16294	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16295	  else
16296	    ld_shlibs_GCJ=no
16297	  fi
16298	;;
16299      esac
16300      ;;
16301
16302    sunos4*)
16303      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16304      wlarc=
16305      hardcode_direct_GCJ=yes
16306      hardcode_shlibpath_var_GCJ=no
16307      ;;
16308
16309    *)
16310      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16311	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16312	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16313      else
16314	ld_shlibs_GCJ=no
16315      fi
16316      ;;
16317    esac
16318
16319    if test "$ld_shlibs_GCJ" = no; then
16320      runpath_var=
16321      hardcode_libdir_flag_spec_GCJ=
16322      export_dynamic_flag_spec_GCJ=
16323      whole_archive_flag_spec_GCJ=
16324    fi
16325  else
16326    # PORTME fill in a description of your system's linker (not GNU ld)
16327    case $host_os in
16328    aix3*)
16329      allow_undefined_flag_GCJ=unsupported
16330      always_export_symbols_GCJ=yes
16331      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'
16332      # Note: this linker hardcodes the directories in LIBPATH if there
16333      # are no directories specified by -L.
16334      hardcode_minus_L_GCJ=yes
16335      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16336	# Neither direct hardcoding nor static linking is supported with a
16337	# broken collect2.
16338	hardcode_direct_GCJ=unsupported
16339      fi
16340      ;;
16341
16342    aix4* | aix5*)
16343      if test "$host_cpu" = ia64; then
16344	# On IA64, the linker does run time linking by default, so we don't
16345	# have to do anything special.
16346	aix_use_runtimelinking=no
16347	exp_sym_flag='-Bexport'
16348	no_entry_flag=""
16349      else
16350	# If we're using GNU nm, then we don't want the "-C" option.
16351	# -C means demangle to AIX nm, but means don't demangle with GNU nm
16352	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16353	  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'
16354	else
16355	  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'
16356	fi
16357	aix_use_runtimelinking=no
16358
16359	# Test if we are trying to use run time linking or normal
16360	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16361	# need to do runtime linking.
16362	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16363	  for ld_flag in $LDFLAGS; do
16364  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16365  	    aix_use_runtimelinking=yes
16366  	    break
16367  	  fi
16368	  done
16369	  ;;
16370	esac
16371
16372	exp_sym_flag='-bexport'
16373	no_entry_flag='-bnoentry'
16374      fi
16375
16376      # When large executables or shared objects are built, AIX ld can
16377      # have problems creating the table of contents.  If linking a library
16378      # or program results in "error TOC overflow" add -mminimal-toc to
16379      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16380      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16381
16382      archive_cmds_GCJ=''
16383      hardcode_direct_GCJ=yes
16384      hardcode_libdir_separator_GCJ=':'
16385      link_all_deplibs_GCJ=yes
16386
16387      if test "$GCC" = yes; then
16388	case $host_os in aix4.[012]|aix4.[012].*)
16389	# We only want to do this on AIX 4.2 and lower, the check
16390	# below for broken collect2 doesn't work under 4.3+
16391	  collect2name=`${CC} -print-prog-name=collect2`
16392	  if test -f "$collect2name" && \
16393  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
16394	  then
16395  	  # We have reworked collect2
16396  	  hardcode_direct_GCJ=yes
16397	  else
16398  	  # We have old collect2
16399  	  hardcode_direct_GCJ=unsupported
16400  	  # It fails to find uninstalled libraries when the uninstalled
16401  	  # path is not listed in the libpath.  Setting hardcode_minus_L
16402  	  # to unsupported forces relinking
16403  	  hardcode_minus_L_GCJ=yes
16404  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
16405  	  hardcode_libdir_separator_GCJ=
16406	  fi
16407	  ;;
16408	esac
16409	shared_flag='-shared'
16410	if test "$aix_use_runtimelinking" = yes; then
16411	  shared_flag="$shared_flag "'${wl}-G'
16412	fi
16413      else
16414	# not using gcc
16415	if test "$host_cpu" = ia64; then
16416  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16417  	# chokes on -Wl,-G. The following line is correct:
16418	  shared_flag='-G'
16419	else
16420	  if test "$aix_use_runtimelinking" = yes; then
16421	    shared_flag='${wl}-G'
16422	  else
16423	    shared_flag='${wl}-bM:SRE'
16424	  fi
16425	fi
16426      fi
16427
16428      # It seems that -bexpall does not export symbols beginning with
16429      # underscore (_), so it is better to generate a list of symbols to export.
16430      always_export_symbols_GCJ=yes
16431      if test "$aix_use_runtimelinking" = yes; then
16432	# Warning - without using the other runtime loading flags (-brtl),
16433	# -berok will link without error, but may produce a broken library.
16434	allow_undefined_flag_GCJ='-berok'
16435       # Determine the default libpath from the value encoded in an empty executable.
16436       cat >conftest.$ac_ext <<_ACEOF
16437/* confdefs.h.  */
16438_ACEOF
16439cat confdefs.h >>conftest.$ac_ext
16440cat >>conftest.$ac_ext <<_ACEOF
16441/* end confdefs.h.  */
16442
16443int
16444main ()
16445{
16446
16447  ;
16448  return 0;
16449}
16450_ACEOF
16451rm -f conftest.$ac_objext conftest$ac_exeext
16452if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16453  (eval $ac_link) 2>conftest.er1
16454  ac_status=$?
16455  grep -v '^ *+' conftest.er1 >conftest.err
16456  rm -f conftest.er1
16457  cat conftest.err >&5
16458  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16459  (exit $ac_status); } &&
16460	 { ac_try='test -z "$ac_c_werror_flag"
16461			 || test ! -s conftest.err'
16462  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16463  (eval $ac_try) 2>&5
16464  ac_status=$?
16465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16466  (exit $ac_status); }; } &&
16467	 { ac_try='test -s conftest$ac_exeext'
16468  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16469  (eval $ac_try) 2>&5
16470  ac_status=$?
16471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16472  (exit $ac_status); }; }; then
16473
16474aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16475}'`
16476# Check for a 64-bit object if we didn't find anything.
16477if 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; }
16478}'`; fi
16479else
16480  echo "$as_me: failed program was:" >&5
16481sed 's/^/| /' conftest.$ac_ext >&5
16482
16483fi
16484rm -f conftest.err conftest.$ac_objext \
16485      conftest$ac_exeext conftest.$ac_ext
16486if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16487
16488       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16489	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"
16490       else
16491	if test "$host_cpu" = ia64; then
16492	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16493	  allow_undefined_flag_GCJ="-z nodefs"
16494	  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"
16495	else
16496	 # Determine the default libpath from the value encoded in an empty executable.
16497	 cat >conftest.$ac_ext <<_ACEOF
16498/* confdefs.h.  */
16499_ACEOF
16500cat confdefs.h >>conftest.$ac_ext
16501cat >>conftest.$ac_ext <<_ACEOF
16502/* end confdefs.h.  */
16503
16504int
16505main ()
16506{
16507
16508  ;
16509  return 0;
16510}
16511_ACEOF
16512rm -f conftest.$ac_objext conftest$ac_exeext
16513if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16514  (eval $ac_link) 2>conftest.er1
16515  ac_status=$?
16516  grep -v '^ *+' conftest.er1 >conftest.err
16517  rm -f conftest.er1
16518  cat conftest.err >&5
16519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16520  (exit $ac_status); } &&
16521	 { ac_try='test -z "$ac_c_werror_flag"
16522			 || test ! -s conftest.err'
16523  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16524  (eval $ac_try) 2>&5
16525  ac_status=$?
16526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16527  (exit $ac_status); }; } &&
16528	 { ac_try='test -s conftest$ac_exeext'
16529  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16530  (eval $ac_try) 2>&5
16531  ac_status=$?
16532  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16533  (exit $ac_status); }; }; then
16534
16535aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16536}'`
16537# Check for a 64-bit object if we didn't find anything.
16538if 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; }
16539}'`; fi
16540else
16541  echo "$as_me: failed program was:" >&5
16542sed 's/^/| /' conftest.$ac_ext >&5
16543
16544fi
16545rm -f conftest.err conftest.$ac_objext \
16546      conftest$ac_exeext conftest.$ac_ext
16547if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16548
16549	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16550	  # Warning - without using the other run time loading flags,
16551	  # -berok will link without error, but may produce a broken library.
16552	  no_undefined_flag_GCJ=' ${wl}-bernotok'
16553	  allow_undefined_flag_GCJ=' ${wl}-berok'
16554	  # Exported symbols can be pulled into shared objects from archives
16555	  whole_archive_flag_spec_GCJ='$convenience'
16556	  archive_cmds_need_lc_GCJ=yes
16557	  # This is similar to how AIX traditionally builds its shared libraries.
16558	  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'
16559	fi
16560      fi
16561      ;;
16562
16563    amigaos*)
16564      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)'
16565      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16566      hardcode_minus_L_GCJ=yes
16567      # see comment about different semantics on the GNU ld section
16568      ld_shlibs_GCJ=no
16569      ;;
16570
16571    bsdi[45]*)
16572      export_dynamic_flag_spec_GCJ=-rdynamic
16573      ;;
16574
16575    cygwin* | mingw* | pw32*)
16576      # When not using gcc, we currently assume that we are using
16577      # Microsoft Visual C++.
16578      # hardcode_libdir_flag_spec is actually meaningless, as there is
16579      # no search path for DLLs.
16580      hardcode_libdir_flag_spec_GCJ=' '
16581      allow_undefined_flag_GCJ=unsupported
16582      # Tell ltmain to make .lib files, not .a files.
16583      libext=lib
16584      # Tell ltmain to make .dll files, not .so files.
16585      shrext_cmds=".dll"
16586      # FIXME: Setting linknames here is a bad hack.
16587      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16588      # The linker will automatically build a .lib file if we build a DLL.
16589      old_archive_From_new_cmds_GCJ='true'
16590      # FIXME: Should let the user specify the lib program.
16591      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16592      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16593      enable_shared_with_static_runtimes_GCJ=yes
16594      ;;
16595
16596    darwin* | rhapsody*)
16597      case $host_os in
16598        rhapsody* | darwin1.[012])
16599         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16600         ;;
16601       *) # Darwin 1.3 on
16602         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16603           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16604         else
16605           case ${MACOSX_DEPLOYMENT_TARGET} in
16606             10.[012])
16607               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16608               ;;
16609             10.*)
16610               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16611               ;;
16612           esac
16613         fi
16614         ;;
16615      esac
16616      archive_cmds_need_lc_GCJ=no
16617      hardcode_direct_GCJ=no
16618      hardcode_automatic_GCJ=yes
16619      hardcode_shlibpath_var_GCJ=unsupported
16620      whole_archive_flag_spec_GCJ=''
16621      link_all_deplibs_GCJ=yes
16622    if test "$GCC" = yes ; then
16623    	output_verbose_link_cmd='echo'
16624        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16625      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16626      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16627      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}'
16628      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}'
16629    else
16630      case $cc_basename in
16631        xlc*)
16632         output_verbose_link_cmd='echo'
16633         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16634         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16635          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16636         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}'
16637          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}'
16638          ;;
16639       *)
16640         ld_shlibs_GCJ=no
16641          ;;
16642      esac
16643    fi
16644      ;;
16645
16646    dgux*)
16647      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16648      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16649      hardcode_shlibpath_var_GCJ=no
16650      ;;
16651
16652    freebsd1*)
16653      ld_shlibs_GCJ=no
16654      ;;
16655
16656    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16657    # support.  Future versions do this automatically, but an explicit c++rt0.o
16658    # does not break anything, and helps significantly (at the cost of a little
16659    # extra space).
16660    freebsd2.2*)
16661      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16662      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16663      hardcode_direct_GCJ=yes
16664      hardcode_shlibpath_var_GCJ=no
16665      ;;
16666
16667    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16668    freebsd2*)
16669      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16670      hardcode_direct_GCJ=yes
16671      hardcode_minus_L_GCJ=yes
16672      hardcode_shlibpath_var_GCJ=no
16673      ;;
16674
16675    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16676    freebsd* | kfreebsd*-gnu | dragonfly*)
16677      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16678      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16679      hardcode_direct_GCJ=yes
16680      hardcode_shlibpath_var_GCJ=no
16681      ;;
16682
16683    hpux9*)
16684      if test "$GCC" = yes; then
16685	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'
16686      else
16687	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'
16688      fi
16689      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16690      hardcode_libdir_separator_GCJ=:
16691      hardcode_direct_GCJ=yes
16692
16693      # hardcode_minus_L: Not really in the search PATH,
16694      # but as the default location of the library.
16695      hardcode_minus_L_GCJ=yes
16696      export_dynamic_flag_spec_GCJ='${wl}-E'
16697      ;;
16698
16699    hpux10*)
16700      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16701	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16702      else
16703	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16704      fi
16705      if test "$with_gnu_ld" = no; then
16706	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16707	hardcode_libdir_separator_GCJ=:
16708
16709	hardcode_direct_GCJ=yes
16710	export_dynamic_flag_spec_GCJ='${wl}-E'
16711
16712	# hardcode_minus_L: Not really in the search PATH,
16713	# but as the default location of the library.
16714	hardcode_minus_L_GCJ=yes
16715      fi
16716      ;;
16717
16718    hpux11*)
16719      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16720	case $host_cpu in
16721	hppa*64*)
16722	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16723	  ;;
16724	ia64*)
16725	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16726	  ;;
16727	*)
16728	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16729	  ;;
16730	esac
16731      else
16732	case $host_cpu in
16733	hppa*64*)
16734	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16735	  ;;
16736	ia64*)
16737	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16738	  ;;
16739	*)
16740	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16741	  ;;
16742	esac
16743      fi
16744      if test "$with_gnu_ld" = no; then
16745	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16746	hardcode_libdir_separator_GCJ=:
16747
16748	case $host_cpu in
16749	hppa*64*|ia64*)
16750	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16751	  hardcode_direct_GCJ=no
16752	  hardcode_shlibpath_var_GCJ=no
16753	  ;;
16754	*)
16755	  hardcode_direct_GCJ=yes
16756	  export_dynamic_flag_spec_GCJ='${wl}-E'
16757
16758	  # hardcode_minus_L: Not really in the search PATH,
16759	  # but as the default location of the library.
16760	  hardcode_minus_L_GCJ=yes
16761	  ;;
16762	esac
16763      fi
16764      ;;
16765
16766    irix5* | irix6* | nonstopux*)
16767      if test "$GCC" = yes; then
16768	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'
16769      else
16770	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'
16771	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16772      fi
16773      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16774      hardcode_libdir_separator_GCJ=:
16775      link_all_deplibs_GCJ=yes
16776      ;;
16777
16778    netbsd*)
16779      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16780	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16781      else
16782	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16783      fi
16784      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16785      hardcode_direct_GCJ=yes
16786      hardcode_shlibpath_var_GCJ=no
16787      ;;
16788
16789    newsos6)
16790      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16791      hardcode_direct_GCJ=yes
16792      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16793      hardcode_libdir_separator_GCJ=:
16794      hardcode_shlibpath_var_GCJ=no
16795      ;;
16796
16797    openbsd*)
16798      hardcode_direct_GCJ=yes
16799      hardcode_shlibpath_var_GCJ=no
16800      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16801	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16802	archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16803	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16804	export_dynamic_flag_spec_GCJ='${wl}-E'
16805      else
16806       case $host_os in
16807	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16808	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16809	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
16810	   ;;
16811	 *)
16812	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16813	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16814	   ;;
16815       esac
16816      fi
16817      ;;
16818
16819    os2*)
16820      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16821      hardcode_minus_L_GCJ=yes
16822      allow_undefined_flag_GCJ=unsupported
16823      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'
16824      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16825      ;;
16826
16827    osf3*)
16828      if test "$GCC" = yes; then
16829	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16830	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'
16831      else
16832	allow_undefined_flag_GCJ=' -expect_unresolved \*'
16833	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'
16834      fi
16835      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16836      hardcode_libdir_separator_GCJ=:
16837      ;;
16838
16839    osf4* | osf5*)	# as osf3* with the addition of -msym flag
16840      if test "$GCC" = yes; then
16841	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16842	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'
16843	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16844      else
16845	allow_undefined_flag_GCJ=' -expect_unresolved \*'
16846	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'
16847	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~
16848	$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'
16849
16850	# Both c and cxx compiler support -rpath directly
16851	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16852      fi
16853      hardcode_libdir_separator_GCJ=:
16854      ;;
16855
16856    solaris*)
16857      no_undefined_flag_GCJ=' -z text'
16858      if test "$GCC" = yes; then
16859	wlarc='${wl}'
16860	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16861	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16862	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16863      else
16864	wlarc=''
16865	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16866	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16867  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16868      fi
16869      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16870      hardcode_shlibpath_var_GCJ=no
16871      case $host_os in
16872      solaris2.[0-5] | solaris2.[0-5].*) ;;
16873      *)
16874 	# The compiler driver will combine linker options so we
16875 	# cannot just pass the convience library names through
16876 	# without $wl, iff we do not link with $LD.
16877 	# Luckily, gcc supports the same syntax we need for Sun Studio.
16878 	# Supported since Solaris 2.6 (maybe 2.5.1?)
16879 	case $wlarc in
16880 	'')
16881 	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16882 	*)
16883 	  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' ;;
16884 	esac ;;
16885      esac
16886      link_all_deplibs_GCJ=yes
16887      ;;
16888
16889    sunos4*)
16890      if test "x$host_vendor" = xsequent; then
16891	# Use $CC to link under sequent, because it throws in some extra .o
16892	# files that make .init and .fini sections work.
16893	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16894      else
16895	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16896      fi
16897      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16898      hardcode_direct_GCJ=yes
16899      hardcode_minus_L_GCJ=yes
16900      hardcode_shlibpath_var_GCJ=no
16901      ;;
16902
16903    sysv4)
16904      case $host_vendor in
16905	sni)
16906	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16907	  hardcode_direct_GCJ=yes # is this really true???
16908	;;
16909	siemens)
16910	  ## LD is ld it makes a PLAMLIB
16911	  ## CC just makes a GrossModule.
16912	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16913	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16914	  hardcode_direct_GCJ=no
16915        ;;
16916	motorola)
16917	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16918	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16919	;;
16920      esac
16921      runpath_var='LD_RUN_PATH'
16922      hardcode_shlibpath_var_GCJ=no
16923      ;;
16924
16925    sysv4.3*)
16926      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16927      hardcode_shlibpath_var_GCJ=no
16928      export_dynamic_flag_spec_GCJ='-Bexport'
16929      ;;
16930
16931    sysv4*MP*)
16932      if test -d /usr/nec; then
16933	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16934	hardcode_shlibpath_var_GCJ=no
16935	runpath_var=LD_RUN_PATH
16936	hardcode_runpath_var=yes
16937	ld_shlibs_GCJ=yes
16938      fi
16939      ;;
16940
16941    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16942      no_undefined_flag_GCJ='${wl}-z,text'
16943      archive_cmds_need_lc_GCJ=no
16944      hardcode_shlibpath_var_GCJ=no
16945      runpath_var='LD_RUN_PATH'
16946
16947      if test "$GCC" = yes; then
16948	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16949	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16950      else
16951	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16952	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16953      fi
16954      ;;
16955
16956    sysv5* | sco3.2v5* | sco5v6*)
16957      # Note: We can NOT use -z defs as we might desire, because we do not
16958      # link with -lc, and that would cause any symbols used from libc to
16959      # always be unresolved, which means just about no library would
16960      # ever link correctly.  If we're not using GNU ld we use -z text
16961      # though, which does catch some bad symbols but isn't as heavy-handed
16962      # as -z defs.
16963      no_undefined_flag_GCJ='${wl}-z,text'
16964      allow_undefined_flag_GCJ='${wl}-z,nodefs'
16965      archive_cmds_need_lc_GCJ=no
16966      hardcode_shlibpath_var_GCJ=no
16967      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16968      hardcode_libdir_separator_GCJ=':'
16969      link_all_deplibs_GCJ=yes
16970      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16971      runpath_var='LD_RUN_PATH'
16972
16973      if test "$GCC" = yes; then
16974	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16975	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16976      else
16977	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16978	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16979      fi
16980      ;;
16981
16982    uts4*)
16983      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16984      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16985      hardcode_shlibpath_var_GCJ=no
16986      ;;
16987
16988    *)
16989      ld_shlibs_GCJ=no
16990      ;;
16991    esac
16992  fi
16993
16994echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16995echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16996test "$ld_shlibs_GCJ" = no && can_build_shared=no
16997
16998#
16999# Do we need to explicitly link libc?
17000#
17001case "x$archive_cmds_need_lc_GCJ" in
17002x|xyes)
17003  # Assume -lc should be added
17004  archive_cmds_need_lc_GCJ=yes
17005
17006  if test "$enable_shared" = yes && test "$GCC" = yes; then
17007    case $archive_cmds_GCJ in
17008    *'~'*)
17009      # FIXME: we may have to deal with multi-command sequences.
17010      ;;
17011    '$CC '*)
17012      # Test whether the compiler implicitly links with -lc since on some
17013      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17014      # to ld, don't add -lc before -lgcc.
17015      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17016echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17017      $rm conftest*
17018      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17019
17020      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17021  (eval $ac_compile) 2>&5
17022  ac_status=$?
17023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17024  (exit $ac_status); } 2>conftest.err; then
17025        soname=conftest
17026        lib=conftest
17027        libobjs=conftest.$ac_objext
17028        deplibs=
17029        wl=$lt_prog_compiler_wl_GCJ
17030	pic_flag=$lt_prog_compiler_pic_GCJ
17031        compiler_flags=-v
17032        linker_flags=-v
17033        verstring=
17034        output_objdir=.
17035        libname=conftest
17036        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17037        allow_undefined_flag_GCJ=
17038        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17039  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17040  ac_status=$?
17041  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17042  (exit $ac_status); }
17043        then
17044	  archive_cmds_need_lc_GCJ=no
17045        else
17046	  archive_cmds_need_lc_GCJ=yes
17047        fi
17048        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17049      else
17050        cat conftest.err 1>&5
17051      fi
17052      $rm conftest*
17053      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17054echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17055      ;;
17056    esac
17057  fi
17058  ;;
17059esac
17060
17061echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17062echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17063library_names_spec=
17064libname_spec='lib$name'
17065soname_spec=
17066shrext_cmds=".so"
17067postinstall_cmds=
17068postuninstall_cmds=
17069finish_cmds=
17070finish_eval=
17071shlibpath_var=
17072shlibpath_overrides_runpath=unknown
17073version_type=none
17074dynamic_linker="$host_os ld.so"
17075sys_lib_dlsearch_path_spec="/lib /usr/lib"
17076if test "$GCC" = yes; then
17077  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17078  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17079    # if the path contains ";" then we assume it to be the separator
17080    # otherwise default to the standard path separator (i.e. ":") - it is
17081    # assumed that no part of a normal pathname contains ";" but that should
17082    # okay in the real world where ";" in dirpaths is itself problematic.
17083    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17084  else
17085    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17086  fi
17087else
17088  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17089fi
17090need_lib_prefix=unknown
17091hardcode_into_libs=no
17092
17093# when you set need_version to no, make sure it does not cause -set_version
17094# flags to be left without arguments
17095need_version=unknown
17096
17097case $host_os in
17098aix3*)
17099  version_type=linux
17100  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17101  shlibpath_var=LIBPATH
17102
17103  # AIX 3 has no versioning support, so we append a major version to the name.
17104  soname_spec='${libname}${release}${shared_ext}$major'
17105  ;;
17106
17107aix4* | aix5*)
17108  version_type=linux
17109  need_lib_prefix=no
17110  need_version=no
17111  hardcode_into_libs=yes
17112  if test "$host_cpu" = ia64; then
17113    # AIX 5 supports IA64
17114    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17115    shlibpath_var=LD_LIBRARY_PATH
17116  else
17117    # With GCC up to 2.95.x, collect2 would create an import file
17118    # for dependence libraries.  The import file would start with
17119    # the line `#! .'.  This would cause the generated library to
17120    # depend on `.', always an invalid library.  This was fixed in
17121    # development snapshots of GCC prior to 3.0.
17122    case $host_os in
17123      aix4 | aix4.[01] | aix4.[01].*)
17124      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17125	   echo ' yes '
17126	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17127	:
17128      else
17129	can_build_shared=no
17130      fi
17131      ;;
17132    esac
17133    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17134    # soname into executable. Probably we can add versioning support to
17135    # collect2, so additional links can be useful in future.
17136    if test "$aix_use_runtimelinking" = yes; then
17137      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17138      # instead of lib<name>.a to let people know that these are not
17139      # typical AIX shared libraries.
17140      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17141    else
17142      # We preserve .a as extension for shared libraries through AIX4.2
17143      # and later when we are not doing run time linking.
17144      library_names_spec='${libname}${release}.a $libname.a'
17145      soname_spec='${libname}${release}${shared_ext}$major'
17146    fi
17147    shlibpath_var=LIBPATH
17148  fi
17149  ;;
17150
17151amigaos*)
17152  library_names_spec='$libname.ixlibrary $libname.a'
17153  # Create ${libname}_ixlibrary.a entries in /sys/libs.
17154  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'
17155  ;;
17156
17157beos*)
17158  library_names_spec='${libname}${shared_ext}'
17159  dynamic_linker="$host_os ld.so"
17160  shlibpath_var=LIBRARY_PATH
17161  ;;
17162
17163bsdi[45]*)
17164  version_type=linux
17165  need_version=no
17166  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17167  soname_spec='${libname}${release}${shared_ext}$major'
17168  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17169  shlibpath_var=LD_LIBRARY_PATH
17170  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17171  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17172  # the default ld.so.conf also contains /usr/contrib/lib and
17173  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17174  # libtool to hard-code these into programs
17175  ;;
17176
17177cygwin* | mingw* | pw32*)
17178  version_type=windows
17179  shrext_cmds=".dll"
17180  need_version=no
17181  need_lib_prefix=no
17182
17183  case $GCC,$host_os in
17184  yes,cygwin* | yes,mingw* | yes,pw32*)
17185    library_names_spec='$libname.dll.a'
17186    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17187    postinstall_cmds='base_file=`basename \${file}`~
17188      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17189      dldir=$destdir/`dirname \$dlpath`~
17190      test -d \$dldir || mkdir -p \$dldir~
17191      $install_prog $dir/$dlname \$dldir/$dlname~
17192      chmod a+x \$dldir/$dlname'
17193    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17194      dlpath=$dir/\$dldll~
17195       $rm \$dlpath'
17196    shlibpath_overrides_runpath=yes
17197
17198    case $host_os in
17199    cygwin*)
17200      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17201      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17202      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17203      ;;
17204    mingw*)
17205      # MinGW DLLs use traditional 'lib' prefix
17206      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17207      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17208      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17209        # It is most probably a Windows format PATH printed by
17210        # mingw gcc, but we are running on Cygwin. Gcc prints its search
17211        # path with ; separators, and with drive letters. We can handle the
17212        # drive letters (cygwin fileutils understands them), so leave them,
17213        # especially as we might pass files found there to a mingw objdump,
17214        # which wouldn't understand a cygwinified path. Ahh.
17215        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17216      else
17217        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17218      fi
17219      ;;
17220    pw32*)
17221      # pw32 DLLs use 'pw' prefix rather than 'lib'
17222      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17223      ;;
17224    esac
17225    ;;
17226
17227  *)
17228    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17229    ;;
17230  esac
17231  dynamic_linker='Win32 ld.exe'
17232  # FIXME: first we should search . and the directory the executable is in
17233  shlibpath_var=PATH
17234  ;;
17235
17236darwin* | rhapsody*)
17237  dynamic_linker="$host_os dyld"
17238  version_type=darwin
17239  need_lib_prefix=no
17240  need_version=no
17241  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17242  soname_spec='${libname}${release}${major}$shared_ext'
17243  shlibpath_overrides_runpath=yes
17244  shlibpath_var=DYLD_LIBRARY_PATH
17245  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17246  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17247  if test "$GCC" = yes; then
17248    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"`
17249  else
17250    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17251  fi
17252  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17253  ;;
17254
17255dgux*)
17256  version_type=linux
17257  need_lib_prefix=no
17258  need_version=no
17259  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17260  soname_spec='${libname}${release}${shared_ext}$major'
17261  shlibpath_var=LD_LIBRARY_PATH
17262  ;;
17263
17264freebsd1*)
17265  dynamic_linker=no
17266  ;;
17267
17268kfreebsd*-gnu)
17269  version_type=linux
17270  need_lib_prefix=no
17271  need_version=no
17272  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17273  soname_spec='${libname}${release}${shared_ext}$major'
17274  shlibpath_var=LD_LIBRARY_PATH
17275  shlibpath_overrides_runpath=no
17276  hardcode_into_libs=yes
17277  dynamic_linker='GNU ld.so'
17278  ;;
17279
17280freebsd* | dragonfly*)
17281  # DragonFly does not have aout.  When/if they implement a new
17282  # versioning mechanism, adjust this.
17283  if test -x /usr/bin/objformat; then
17284    objformat=`/usr/bin/objformat`
17285  else
17286    case $host_os in
17287    freebsd[123]*) objformat=aout ;;
17288    *) objformat=elf ;;
17289    esac
17290  fi
17291  version_type=freebsd-$objformat
17292  case $version_type in
17293    freebsd-elf*)
17294      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17295      need_version=no
17296      need_lib_prefix=no
17297      ;;
17298    freebsd-*)
17299      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17300      need_version=yes
17301      ;;
17302  esac
17303  shlibpath_var=LD_LIBRARY_PATH
17304  case $host_os in
17305  freebsd2*)
17306    shlibpath_overrides_runpath=yes
17307    ;;
17308  freebsd3.[01]* | freebsdelf3.[01]*)
17309    shlibpath_overrides_runpath=yes
17310    hardcode_into_libs=yes
17311    ;;
17312  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17313  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17314    shlibpath_overrides_runpath=no
17315    hardcode_into_libs=yes
17316    ;;
17317  freebsd*) # from 4.6 on
17318    shlibpath_overrides_runpath=yes
17319    hardcode_into_libs=yes
17320    ;;
17321  esac
17322  ;;
17323
17324gnu*)
17325  version_type=linux
17326  need_lib_prefix=no
17327  need_version=no
17328  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17329  soname_spec='${libname}${release}${shared_ext}$major'
17330  shlibpath_var=LD_LIBRARY_PATH
17331  hardcode_into_libs=yes
17332  ;;
17333
17334hpux9* | hpux10* | hpux11*)
17335  # Give a soname corresponding to the major version so that dld.sl refuses to
17336  # link against other versions.
17337  version_type=sunos
17338  need_lib_prefix=no
17339  need_version=no
17340  case $host_cpu in
17341  ia64*)
17342    shrext_cmds='.so'
17343    hardcode_into_libs=yes
17344    dynamic_linker="$host_os dld.so"
17345    shlibpath_var=LD_LIBRARY_PATH
17346    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17347    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17348    soname_spec='${libname}${release}${shared_ext}$major'
17349    if test "X$HPUX_IA64_MODE" = X32; then
17350      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17351    else
17352      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17353    fi
17354    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17355    ;;
17356   hppa*64*)
17357     shrext_cmds='.sl'
17358     hardcode_into_libs=yes
17359     dynamic_linker="$host_os dld.sl"
17360     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17361     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17362     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17363     soname_spec='${libname}${release}${shared_ext}$major'
17364     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17365     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17366     ;;
17367   *)
17368    shrext_cmds='.sl'
17369    dynamic_linker="$host_os dld.sl"
17370    shlibpath_var=SHLIB_PATH
17371    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17372    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17373    soname_spec='${libname}${release}${shared_ext}$major'
17374    ;;
17375  esac
17376  # HP-UX runs *really* slowly unless shared libraries are mode 555.
17377  postinstall_cmds='chmod 555 $lib'
17378  ;;
17379
17380interix3*)
17381  version_type=linux
17382  need_lib_prefix=no
17383  need_version=no
17384  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17385  soname_spec='${libname}${release}${shared_ext}$major'
17386  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17387  shlibpath_var=LD_LIBRARY_PATH
17388  shlibpath_overrides_runpath=no
17389  hardcode_into_libs=yes
17390  ;;
17391
17392irix5* | irix6* | nonstopux*)
17393  case $host_os in
17394    nonstopux*) version_type=nonstopux ;;
17395    *)
17396	if test "$lt_cv_prog_gnu_ld" = yes; then
17397		version_type=linux
17398	else
17399		version_type=irix
17400	fi ;;
17401  esac
17402  need_lib_prefix=no
17403  need_version=no
17404  soname_spec='${libname}${release}${shared_ext}$major'
17405  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17406  case $host_os in
17407  irix5* | nonstopux*)
17408    libsuff= shlibsuff=
17409    ;;
17410  *)
17411    case $LD in # libtool.m4 will add one of these switches to LD
17412    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17413      libsuff= shlibsuff= libmagic=32-bit;;
17414    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17415      libsuff=32 shlibsuff=N32 libmagic=N32;;
17416    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17417      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17418    *) libsuff= shlibsuff= libmagic=never-match;;
17419    esac
17420    ;;
17421  esac
17422  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17423  shlibpath_overrides_runpath=no
17424  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17425  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17426  hardcode_into_libs=yes
17427  ;;
17428
17429# No shared lib support for Linux oldld, aout, or coff.
17430linux*oldld* | linux*aout* | linux*coff*)
17431  dynamic_linker=no
17432  ;;
17433
17434# This must be Linux ELF.
17435linux*)
17436  version_type=linux
17437  need_lib_prefix=no
17438  need_version=no
17439  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17440  soname_spec='${libname}${release}${shared_ext}$major'
17441  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17442  shlibpath_var=LD_LIBRARY_PATH
17443  shlibpath_overrides_runpath=no
17444  # This implies no fast_install, which is unacceptable.
17445  # Some rework will be needed to allow for fast_install
17446  # before this can be enabled.
17447  hardcode_into_libs=yes
17448
17449  # find out which ABI we are using
17450  libsuff=
17451  case "$host_cpu" in
17452  x86_64*|s390x*|powerpc64*)
17453    echo '#line 17453 "configure"' > conftest.$ac_ext
17454    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17455  (eval $ac_compile) 2>&5
17456  ac_status=$?
17457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17458  (exit $ac_status); }; then
17459      case `/usr/bin/file conftest.$ac_objext` in
17460      *64-bit*)
17461        libsuff=64
17462        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
17463        ;;
17464      esac
17465    fi
17466    rm -rf conftest*
17467    ;;
17468  esac
17469
17470  # Append ld.so.conf contents to the search path
17471  if test -f /etc/ld.so.conf; then
17472    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17473    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
17474  fi
17475
17476  # We used to test for /lib/ld.so.1 and disable shared libraries on
17477  # powerpc, because MkLinux only supported shared libraries with the
17478  # GNU dynamic linker.  Since this was broken with cross compilers,
17479  # most powerpc-linux boxes support dynamic linking these days and
17480  # people can always --disable-shared, the test was removed, and we
17481  # assume the GNU/Linux dynamic linker is in use.
17482  dynamic_linker='GNU/Linux ld.so'
17483  ;;
17484
17485knetbsd*-gnu)
17486  version_type=linux
17487  need_lib_prefix=no
17488  need_version=no
17489  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17490  soname_spec='${libname}${release}${shared_ext}$major'
17491  shlibpath_var=LD_LIBRARY_PATH
17492  shlibpath_overrides_runpath=no
17493  hardcode_into_libs=yes
17494  dynamic_linker='GNU ld.so'
17495  ;;
17496
17497netbsd*)
17498  version_type=sunos
17499  need_lib_prefix=no
17500  need_version=no
17501  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17502    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17503    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17504    dynamic_linker='NetBSD (a.out) ld.so'
17505  else
17506    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17507    soname_spec='${libname}${release}${shared_ext}$major'
17508    dynamic_linker='NetBSD ld.elf_so'
17509  fi
17510  shlibpath_var=LD_LIBRARY_PATH
17511  shlibpath_overrides_runpath=yes
17512  hardcode_into_libs=yes
17513  ;;
17514
17515newsos6)
17516  version_type=linux
17517  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17518  shlibpath_var=LD_LIBRARY_PATH
17519  shlibpath_overrides_runpath=yes
17520  ;;
17521
17522nto-qnx*)
17523  version_type=linux
17524  need_lib_prefix=no
17525  need_version=no
17526  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17527  soname_spec='${libname}${release}${shared_ext}$major'
17528  shlibpath_var=LD_LIBRARY_PATH
17529  shlibpath_overrides_runpath=yes
17530  ;;
17531
17532openbsd*)
17533  version_type=sunos
17534  sys_lib_dlsearch_path_spec="/usr/lib"
17535  need_lib_prefix=no
17536  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17537  case $host_os in
17538    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17539    *)                         need_version=no  ;;
17540  esac
17541  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17542  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17543  shlibpath_var=LD_LIBRARY_PATH
17544  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17545    case $host_os in
17546      openbsd2.[89] | openbsd2.[89].*)
17547	shlibpath_overrides_runpath=no
17548	;;
17549      *)
17550	shlibpath_overrides_runpath=yes
17551	;;
17552      esac
17553  else
17554    shlibpath_overrides_runpath=yes
17555  fi
17556  ;;
17557
17558os2*)
17559  libname_spec='$name'
17560  shrext_cmds=".dll"
17561  need_lib_prefix=no
17562  library_names_spec='$libname${shared_ext} $libname.a'
17563  dynamic_linker='OS/2 ld.exe'
17564  shlibpath_var=LIBPATH
17565  ;;
17566
17567osf3* | osf4* | osf5*)
17568  version_type=osf
17569  need_lib_prefix=no
17570  need_version=no
17571  soname_spec='${libname}${release}${shared_ext}$major'
17572  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17573  shlibpath_var=LD_LIBRARY_PATH
17574  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17575  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17576  ;;
17577
17578solaris*)
17579  version_type=linux
17580  need_lib_prefix=no
17581  need_version=no
17582  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17583  soname_spec='${libname}${release}${shared_ext}$major'
17584  shlibpath_var=LD_LIBRARY_PATH
17585  shlibpath_overrides_runpath=yes
17586  hardcode_into_libs=yes
17587  # ldd complains unless libraries are executable
17588  postinstall_cmds='chmod +x $lib'
17589  ;;
17590
17591sunos4*)
17592  version_type=sunos
17593  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17594  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17595  shlibpath_var=LD_LIBRARY_PATH
17596  shlibpath_overrides_runpath=yes
17597  if test "$with_gnu_ld" = yes; then
17598    need_lib_prefix=no
17599  fi
17600  need_version=yes
17601  ;;
17602
17603sysv4 | sysv4.3*)
17604  version_type=linux
17605  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17606  soname_spec='${libname}${release}${shared_ext}$major'
17607  shlibpath_var=LD_LIBRARY_PATH
17608  case $host_vendor in
17609    sni)
17610      shlibpath_overrides_runpath=no
17611      need_lib_prefix=no
17612      export_dynamic_flag_spec='${wl}-Blargedynsym'
17613      runpath_var=LD_RUN_PATH
17614      ;;
17615    siemens)
17616      need_lib_prefix=no
17617      ;;
17618    motorola)
17619      need_lib_prefix=no
17620      need_version=no
17621      shlibpath_overrides_runpath=no
17622      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17623      ;;
17624  esac
17625  ;;
17626
17627sysv4*MP*)
17628  if test -d /usr/nec ;then
17629    version_type=linux
17630    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17631    soname_spec='$libname${shared_ext}.$major'
17632    shlibpath_var=LD_LIBRARY_PATH
17633  fi
17634  ;;
17635
17636sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17637  version_type=freebsd-elf
17638  need_lib_prefix=no
17639  need_version=no
17640  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17641  soname_spec='${libname}${release}${shared_ext}$major'
17642  shlibpath_var=LD_LIBRARY_PATH
17643  hardcode_into_libs=yes
17644  if test "$with_gnu_ld" = yes; then
17645    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17646    shlibpath_overrides_runpath=no
17647  else
17648    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17649    shlibpath_overrides_runpath=yes
17650    case $host_os in
17651      sco3.2v5*)
17652        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17653	;;
17654    esac
17655  fi
17656  sys_lib_dlsearch_path_spec='/usr/lib'
17657  ;;
17658
17659uts4*)
17660  version_type=linux
17661  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17662  soname_spec='${libname}${release}${shared_ext}$major'
17663  shlibpath_var=LD_LIBRARY_PATH
17664  ;;
17665
17666*)
17667  dynamic_linker=no
17668  ;;
17669esac
17670echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17671echo "${ECHO_T}$dynamic_linker" >&6
17672test "$dynamic_linker" = no && can_build_shared=no
17673
17674variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17675if test "$GCC" = yes; then
17676  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17677fi
17678
17679echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17680echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17681hardcode_action_GCJ=
17682if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17683   test -n "$runpath_var_GCJ" || \
17684   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17685
17686  # We can hardcode non-existant directories.
17687  if test "$hardcode_direct_GCJ" != no &&
17688     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17689     # have to relink, otherwise we might link with an installed library
17690     # when we should be linking with a yet-to-be-installed one
17691     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17692     test "$hardcode_minus_L_GCJ" != no; then
17693    # Linking always hardcodes the temporary library directory.
17694    hardcode_action_GCJ=relink
17695  else
17696    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17697    hardcode_action_GCJ=immediate
17698  fi
17699else
17700  # We cannot hardcode anything, or else we can only hardcode existing
17701  # directories.
17702  hardcode_action_GCJ=unsupported
17703fi
17704echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17705echo "${ECHO_T}$hardcode_action_GCJ" >&6
17706
17707if test "$hardcode_action_GCJ" = relink; then
17708  # Fast installation is not supported
17709  enable_fast_install=no
17710elif test "$shlibpath_overrides_runpath" = yes ||
17711     test "$enable_shared" = no; then
17712  # Fast installation is not necessary
17713  enable_fast_install=needless
17714fi
17715
17716
17717# The else clause should only fire when bootstrapping the
17718# libtool distribution, otherwise you forgot to ship ltmain.sh
17719# with your package, and you will get complaints that there are
17720# no rules to generate ltmain.sh.
17721if test -f "$ltmain"; then
17722  # See if we are running on zsh, and set the options which allow our commands through
17723  # without removal of \ escapes.
17724  if test -n "${ZSH_VERSION+set}" ; then
17725    setopt NO_GLOB_SUBST
17726  fi
17727  # Now quote all the things that may contain metacharacters while being
17728  # careful not to overquote the AC_SUBSTed values.  We take copies of the
17729  # variables and quote the copies for generation of the libtool script.
17730  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17731    SED SHELL STRIP \
17732    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17733    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17734    deplibs_check_method reload_flag reload_cmds need_locks \
17735    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17736    lt_cv_sys_global_symbol_to_c_name_address \
17737    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17738    old_postinstall_cmds old_postuninstall_cmds \
17739    compiler_GCJ \
17740    CC_GCJ \
17741    LD_GCJ \
17742    lt_prog_compiler_wl_GCJ \
17743    lt_prog_compiler_pic_GCJ \
17744    lt_prog_compiler_static_GCJ \
17745    lt_prog_compiler_no_builtin_flag_GCJ \
17746    export_dynamic_flag_spec_GCJ \
17747    thread_safe_flag_spec_GCJ \
17748    whole_archive_flag_spec_GCJ \
17749    enable_shared_with_static_runtimes_GCJ \
17750    old_archive_cmds_GCJ \
17751    old_archive_from_new_cmds_GCJ \
17752    predep_objects_GCJ \
17753    postdep_objects_GCJ \
17754    predeps_GCJ \
17755    postdeps_GCJ \
17756    compiler_lib_search_path_GCJ \
17757    archive_cmds_GCJ \
17758    archive_expsym_cmds_GCJ \
17759    postinstall_cmds_GCJ \
17760    postuninstall_cmds_GCJ \
17761    old_archive_from_expsyms_cmds_GCJ \
17762    allow_undefined_flag_GCJ \
17763    no_undefined_flag_GCJ \
17764    export_symbols_cmds_GCJ \
17765    hardcode_libdir_flag_spec_GCJ \
17766    hardcode_libdir_flag_spec_ld_GCJ \
17767    hardcode_libdir_separator_GCJ \
17768    hardcode_automatic_GCJ \
17769    module_cmds_GCJ \
17770    module_expsym_cmds_GCJ \
17771    lt_cv_prog_compiler_c_o_GCJ \
17772    exclude_expsyms_GCJ \
17773    include_expsyms_GCJ; do
17774
17775    case $var in
17776    old_archive_cmds_GCJ | \
17777    old_archive_from_new_cmds_GCJ | \
17778    archive_cmds_GCJ | \
17779    archive_expsym_cmds_GCJ | \
17780    module_cmds_GCJ | \
17781    module_expsym_cmds_GCJ | \
17782    old_archive_from_expsyms_cmds_GCJ | \
17783    export_symbols_cmds_GCJ | \
17784    extract_expsyms_cmds | reload_cmds | finish_cmds | \
17785    postinstall_cmds | postuninstall_cmds | \
17786    old_postinstall_cmds | old_postuninstall_cmds | \
17787    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17788      # Double-quote double-evaled strings.
17789      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17790      ;;
17791    *)
17792      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17793      ;;
17794    esac
17795  done
17796
17797  case $lt_echo in
17798  *'\$0 --fallback-echo"')
17799    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17800    ;;
17801  esac
17802
17803cfgfile="$ofile"
17804
17805  cat <<__EOF__ >> "$cfgfile"
17806# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17807
17808# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17809
17810# Shell to use when invoking shell scripts.
17811SHELL=$lt_SHELL
17812
17813# Whether or not to build shared libraries.
17814build_libtool_libs=$enable_shared
17815
17816# Whether or not to build static libraries.
17817build_old_libs=$enable_static
17818
17819# Whether or not to add -lc for building shared libraries.
17820build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17821
17822# Whether or not to disallow shared libs when runtime libs are static
17823allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17824
17825# Whether or not to optimize for fast installation.
17826fast_install=$enable_fast_install
17827
17828# The host system.
17829host_alias=$host_alias
17830host=$host
17831host_os=$host_os
17832
17833# The build system.
17834build_alias=$build_alias
17835build=$build
17836build_os=$build_os
17837
17838# An echo program that does not interpret backslashes.
17839echo=$lt_echo
17840
17841# The archiver.
17842AR=$lt_AR
17843AR_FLAGS=$lt_AR_FLAGS
17844
17845# A C compiler.
17846LTCC=$lt_LTCC
17847
17848# LTCC compiler flags.
17849LTCFLAGS=$lt_LTCFLAGS
17850
17851# A language-specific compiler.
17852CC=$lt_compiler_GCJ
17853
17854# Is the compiler the GNU C compiler?
17855with_gcc=$GCC_GCJ
17856
17857gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
17858gcc_ver=\`gcc -dumpversion\`
17859
17860# An ERE matcher.
17861EGREP=$lt_EGREP
17862
17863# The linker used to build libraries.
17864LD=$lt_LD_GCJ
17865
17866# Whether we need hard or soft links.
17867LN_S=$lt_LN_S
17868
17869# A BSD-compatible nm program.
17870NM=$lt_NM
17871
17872# A symbol stripping program
17873STRIP=$lt_STRIP
17874
17875# Used to examine libraries when file_magic_cmd begins "file"
17876MAGIC_CMD=$MAGIC_CMD
17877
17878# Used on cygwin: DLL creation program.
17879DLLTOOL="$DLLTOOL"
17880
17881# Used on cygwin: object dumper.
17882OBJDUMP="$OBJDUMP"
17883
17884# Used on cygwin: assembler.
17885AS="$AS"
17886
17887# The name of the directory that contains temporary libtool files.
17888objdir=$objdir
17889
17890# How to create reloadable object files.
17891reload_flag=$lt_reload_flag
17892reload_cmds=$lt_reload_cmds
17893
17894# How to pass a linker flag through the compiler.
17895wl=$lt_lt_prog_compiler_wl_GCJ
17896
17897# Object file suffix (normally "o").
17898objext="$ac_objext"
17899
17900# Old archive suffix (normally "a").
17901libext="$libext"
17902
17903# Shared library suffix (normally ".so").
17904shrext_cmds='$shrext_cmds'
17905
17906# Executable file suffix (normally "").
17907exeext="$exeext"
17908
17909# Additional compiler flags for building library objects.
17910pic_flag=$lt_lt_prog_compiler_pic_GCJ
17911pic_mode=$pic_mode
17912
17913# What is the maximum length of a command?
17914max_cmd_len=$lt_cv_sys_max_cmd_len
17915
17916# Does compiler simultaneously support -c and -o options?
17917compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17918
17919# Must we lock files when doing compilation?
17920need_locks=$lt_need_locks
17921
17922# Do we need the lib prefix for modules?
17923need_lib_prefix=$need_lib_prefix
17924
17925# Do we need a version for libraries?
17926need_version=$need_version
17927
17928# Whether dlopen is supported.
17929dlopen_support=$enable_dlopen
17930
17931# Whether dlopen of programs is supported.
17932dlopen_self=$enable_dlopen_self
17933
17934# Whether dlopen of statically linked programs is supported.
17935dlopen_self_static=$enable_dlopen_self_static
17936
17937# Compiler flag to prevent dynamic linking.
17938link_static_flag=$lt_lt_prog_compiler_static_GCJ
17939
17940# Compiler flag to turn off builtin functions.
17941no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17942
17943# Compiler flag to allow reflexive dlopens.
17944export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17945
17946# Compiler flag to generate shared objects directly from archives.
17947whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17948
17949# Compiler flag to generate thread-safe objects.
17950thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17951
17952# Library versioning type.
17953version_type=$version_type
17954
17955# Format of library name prefix.
17956libname_spec=$lt_libname_spec
17957
17958# List of archive names.  First name is the real one, the rest are links.
17959# The last name is the one that the linker finds with -lNAME.
17960library_names_spec=$lt_library_names_spec
17961
17962# The coded name of the library, if different from the real name.
17963soname_spec=$lt_soname_spec
17964
17965# Commands used to build and install an old-style archive.
17966RANLIB=$lt_RANLIB
17967old_archive_cmds=$lt_old_archive_cmds_GCJ
17968old_postinstall_cmds=$lt_old_postinstall_cmds
17969old_postuninstall_cmds=$lt_old_postuninstall_cmds
17970
17971# Create an old-style archive from a shared archive.
17972old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17973
17974# Create a temporary old-style archive to link instead of a shared archive.
17975old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17976
17977# Commands used to build and install a shared archive.
17978archive_cmds=$lt_archive_cmds_GCJ
17979archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17980postinstall_cmds=$lt_postinstall_cmds
17981postuninstall_cmds=$lt_postuninstall_cmds
17982
17983# Commands used to build a loadable module (assumed same as above if empty)
17984module_cmds=$lt_module_cmds_GCJ
17985module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17986
17987# Commands to strip libraries.
17988old_striplib=$lt_old_striplib
17989striplib=$lt_striplib
17990
17991# Dependencies to place before the objects being linked to create a
17992# shared library.
17993predep_objects=\`echo $lt_predep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
17994
17995# Dependencies to place after the objects being linked to create a
17996# shared library.
17997postdep_objects=\`echo $lt_postdep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
17998
17999# Dependencies to place before the objects being linked to create a
18000# shared library.
18001predeps=$lt_predeps_GCJ
18002
18003# Dependencies to place after the objects being linked to create a
18004# shared library.
18005postdeps=$lt_postdeps_GCJ
18006
18007# The library search path used internally by the compiler when linking
18008# a shared library.
18009compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18010
18011# Method to check whether dependent libraries are shared objects.
18012deplibs_check_method=$lt_deplibs_check_method
18013
18014# Command to use when deplibs_check_method == file_magic.
18015file_magic_cmd=$lt_file_magic_cmd
18016
18017# Flag that allows shared libraries with undefined symbols to be built.
18018allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18019
18020# Flag that forces no undefined symbols.
18021no_undefined_flag=$lt_no_undefined_flag_GCJ
18022
18023# Commands used to finish a libtool library installation in a directory.
18024finish_cmds=$lt_finish_cmds
18025
18026# Same as above, but a single script fragment to be evaled but not shown.
18027finish_eval=$lt_finish_eval
18028
18029# Take the output of nm and produce a listing of raw symbols and C names.
18030global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18031
18032# Transform the output of nm in a proper C declaration
18033global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18034
18035# Transform the output of nm in a C name address pair
18036global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18037
18038# This is the shared library runtime path variable.
18039runpath_var=$runpath_var
18040
18041# This is the shared library path variable.
18042shlibpath_var=$shlibpath_var
18043
18044# Is shlibpath searched before the hard-coded library search path?
18045shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18046
18047# How to hardcode a shared library path into an executable.
18048hardcode_action=$hardcode_action_GCJ
18049
18050# Whether we should hardcode library paths into libraries.
18051hardcode_into_libs=$hardcode_into_libs
18052
18053# Flag to hardcode \$libdir into a binary during linking.
18054# This must work even if \$libdir does not exist.
18055hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18056
18057# If ld is used when linking, flag to hardcode \$libdir into
18058# a binary during linking. This must work even if \$libdir does
18059# not exist.
18060hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18061
18062# Whether we need a single -rpath flag with a separated argument.
18063hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18064
18065# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18066# resulting binary.
18067hardcode_direct=$hardcode_direct_GCJ
18068
18069# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18070# resulting binary.
18071hardcode_minus_L=$hardcode_minus_L_GCJ
18072
18073# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18074# the resulting binary.
18075hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18076
18077# Set to yes if building a shared library automatically hardcodes DIR into the library
18078# and all subsequent libraries and executables linked against it.
18079hardcode_automatic=$hardcode_automatic_GCJ
18080
18081# Variables whose values should be saved in libtool wrapper scripts and
18082# restored at relink time.
18083variables_saved_for_relink="$variables_saved_for_relink"
18084
18085# Whether libtool must link a program against all its dependency libraries.
18086link_all_deplibs=$link_all_deplibs_GCJ
18087
18088# Compile-time system search path for libraries
18089sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18090
18091# Run-time system search path for libraries
18092sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18093
18094# Fix the shell variable \$srcfile for the compiler.
18095fix_srcfile_path="$fix_srcfile_path_GCJ"
18096
18097# Set to yes if exported symbols are required.
18098always_export_symbols=$always_export_symbols_GCJ
18099
18100# The commands to list exported symbols.
18101export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18102
18103# The commands to extract the exported symbol list from a shared archive.
18104extract_expsyms_cmds=$lt_extract_expsyms_cmds
18105
18106# Symbols that should not be listed in the preloaded symbols.
18107exclude_expsyms=$lt_exclude_expsyms_GCJ
18108
18109# Symbols that must always be exported.
18110include_expsyms=$lt_include_expsyms_GCJ
18111
18112# ### END LIBTOOL TAG CONFIG: $tagname
18113
18114__EOF__
18115
18116
18117else
18118  # If there is no Makefile yet, we rely on a make rule to execute
18119  # `config.status --recheck' to rerun these tests and create the
18120  # libtool script then.
18121  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18122  if test -f "$ltmain_in"; then
18123    test -f Makefile && make "$ltmain"
18124  fi
18125fi
18126
18127
18128ac_ext=c
18129ac_cpp='$CPP $CPPFLAGS'
18130ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18131ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18132ac_compiler_gnu=$ac_cv_c_compiler_gnu
18133
18134CC="$lt_save_CC"
18135
18136	else
18137	  tagname=""
18138	fi
18139	;;
18140
18141      RC)
18142
18143
18144
18145# Source file extension for RC test sources.
18146ac_ext=rc
18147
18148# Object file extension for compiled RC test sources.
18149objext=o
18150objext_RC=$objext
18151
18152# Code to be used in simple compile tests
18153lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18154
18155# Code to be used in simple link tests
18156lt_simple_link_test_code="$lt_simple_compile_test_code"
18157
18158# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18159
18160# If no C compiler was specified, use CC.
18161LTCC=${LTCC-"$CC"}
18162
18163# If no C compiler flags were specified, use CFLAGS.
18164LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18165
18166# Allow CC to be a program name with arguments.
18167compiler=$CC
18168
18169
18170# save warnings/boilerplate of simple test code
18171ac_outfile=conftest.$ac_objext
18172printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18173eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18174_lt_compiler_boilerplate=`cat conftest.err`
18175$rm conftest*
18176
18177ac_outfile=conftest.$ac_objext
18178printf "$lt_simple_link_test_code" >conftest.$ac_ext
18179eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18180_lt_linker_boilerplate=`cat conftest.err`
18181$rm conftest*
18182
18183
18184# Allow CC to be a program name with arguments.
18185lt_save_CC="$CC"
18186CC=${RC-"windres"}
18187compiler=$CC
18188compiler_RC=$CC
18189for cc_temp in $compiler""; do
18190  case $cc_temp in
18191    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18192    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18193    \-*) ;;
18194    *) break;;
18195  esac
18196done
18197cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18198
18199lt_cv_prog_compiler_c_o_RC=yes
18200
18201# The else clause should only fire when bootstrapping the
18202# libtool distribution, otherwise you forgot to ship ltmain.sh
18203# with your package, and you will get complaints that there are
18204# no rules to generate ltmain.sh.
18205if test -f "$ltmain"; then
18206  # See if we are running on zsh, and set the options which allow our commands through
18207  # without removal of \ escapes.
18208  if test -n "${ZSH_VERSION+set}" ; then
18209    setopt NO_GLOB_SUBST
18210  fi
18211  # Now quote all the things that may contain metacharacters while being
18212  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18213  # variables and quote the copies for generation of the libtool script.
18214  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18215    SED SHELL STRIP \
18216    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18217    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18218    deplibs_check_method reload_flag reload_cmds need_locks \
18219    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18220    lt_cv_sys_global_symbol_to_c_name_address \
18221    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18222    old_postinstall_cmds old_postuninstall_cmds \
18223    compiler_RC \
18224    CC_RC \
18225    LD_RC \
18226    lt_prog_compiler_wl_RC \
18227    lt_prog_compiler_pic_RC \
18228    lt_prog_compiler_static_RC \
18229    lt_prog_compiler_no_builtin_flag_RC \
18230    export_dynamic_flag_spec_RC \
18231    thread_safe_flag_spec_RC \
18232    whole_archive_flag_spec_RC \
18233    enable_shared_with_static_runtimes_RC \
18234    old_archive_cmds_RC \
18235    old_archive_from_new_cmds_RC \
18236    predep_objects_RC \
18237    postdep_objects_RC \
18238    predeps_RC \
18239    postdeps_RC \
18240    compiler_lib_search_path_RC \
18241    archive_cmds_RC \
18242    archive_expsym_cmds_RC \
18243    postinstall_cmds_RC \
18244    postuninstall_cmds_RC \
18245    old_archive_from_expsyms_cmds_RC \
18246    allow_undefined_flag_RC \
18247    no_undefined_flag_RC \
18248    export_symbols_cmds_RC \
18249    hardcode_libdir_flag_spec_RC \
18250    hardcode_libdir_flag_spec_ld_RC \
18251    hardcode_libdir_separator_RC \
18252    hardcode_automatic_RC \
18253    module_cmds_RC \
18254    module_expsym_cmds_RC \
18255    lt_cv_prog_compiler_c_o_RC \
18256    exclude_expsyms_RC \
18257    include_expsyms_RC; do
18258
18259    case $var in
18260    old_archive_cmds_RC | \
18261    old_archive_from_new_cmds_RC | \
18262    archive_cmds_RC | \
18263    archive_expsym_cmds_RC | \
18264    module_cmds_RC | \
18265    module_expsym_cmds_RC | \
18266    old_archive_from_expsyms_cmds_RC | \
18267    export_symbols_cmds_RC | \
18268    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18269    postinstall_cmds | postuninstall_cmds | \
18270    old_postinstall_cmds | old_postuninstall_cmds | \
18271    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18272      # Double-quote double-evaled strings.
18273      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18274      ;;
18275    *)
18276      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18277      ;;
18278    esac
18279  done
18280
18281  case $lt_echo in
18282  *'\$0 --fallback-echo"')
18283    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18284    ;;
18285  esac
18286
18287cfgfile="$ofile"
18288
18289  cat <<__EOF__ >> "$cfgfile"
18290# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18291
18292# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18293
18294# Shell to use when invoking shell scripts.
18295SHELL=$lt_SHELL
18296
18297# Whether or not to build shared libraries.
18298build_libtool_libs=$enable_shared
18299
18300# Whether or not to build static libraries.
18301build_old_libs=$enable_static
18302
18303# Whether or not to add -lc for building shared libraries.
18304build_libtool_need_lc=$archive_cmds_need_lc_RC
18305
18306# Whether or not to disallow shared libs when runtime libs are static
18307allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18308
18309# Whether or not to optimize for fast installation.
18310fast_install=$enable_fast_install
18311
18312# The host system.
18313host_alias=$host_alias
18314host=$host
18315host_os=$host_os
18316
18317# The build system.
18318build_alias=$build_alias
18319build=$build
18320build_os=$build_os
18321
18322# An echo program that does not interpret backslashes.
18323echo=$lt_echo
18324
18325# The archiver.
18326AR=$lt_AR
18327AR_FLAGS=$lt_AR_FLAGS
18328
18329# A C compiler.
18330LTCC=$lt_LTCC
18331
18332# LTCC compiler flags.
18333LTCFLAGS=$lt_LTCFLAGS
18334
18335# A language-specific compiler.
18336CC=$lt_compiler_RC
18337
18338# Is the compiler the GNU C compiler?
18339with_gcc=$GCC_RC
18340
18341gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
18342gcc_ver=\`gcc -dumpversion\`
18343
18344# An ERE matcher.
18345EGREP=$lt_EGREP
18346
18347# The linker used to build libraries.
18348LD=$lt_LD_RC
18349
18350# Whether we need hard or soft links.
18351LN_S=$lt_LN_S
18352
18353# A BSD-compatible nm program.
18354NM=$lt_NM
18355
18356# A symbol stripping program
18357STRIP=$lt_STRIP
18358
18359# Used to examine libraries when file_magic_cmd begins "file"
18360MAGIC_CMD=$MAGIC_CMD
18361
18362# Used on cygwin: DLL creation program.
18363DLLTOOL="$DLLTOOL"
18364
18365# Used on cygwin: object dumper.
18366OBJDUMP="$OBJDUMP"
18367
18368# Used on cygwin: assembler.
18369AS="$AS"
18370
18371# The name of the directory that contains temporary libtool files.
18372objdir=$objdir
18373
18374# How to create reloadable object files.
18375reload_flag=$lt_reload_flag
18376reload_cmds=$lt_reload_cmds
18377
18378# How to pass a linker flag through the compiler.
18379wl=$lt_lt_prog_compiler_wl_RC
18380
18381# Object file suffix (normally "o").
18382objext="$ac_objext"
18383
18384# Old archive suffix (normally "a").
18385libext="$libext"
18386
18387# Shared library suffix (normally ".so").
18388shrext_cmds='$shrext_cmds'
18389
18390# Executable file suffix (normally "").
18391exeext="$exeext"
18392
18393# Additional compiler flags for building library objects.
18394pic_flag=$lt_lt_prog_compiler_pic_RC
18395pic_mode=$pic_mode
18396
18397# What is the maximum length of a command?
18398max_cmd_len=$lt_cv_sys_max_cmd_len
18399
18400# Does compiler simultaneously support -c and -o options?
18401compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18402
18403# Must we lock files when doing compilation?
18404need_locks=$lt_need_locks
18405
18406# Do we need the lib prefix for modules?
18407need_lib_prefix=$need_lib_prefix
18408
18409# Do we need a version for libraries?
18410need_version=$need_version
18411
18412# Whether dlopen is supported.
18413dlopen_support=$enable_dlopen
18414
18415# Whether dlopen of programs is supported.
18416dlopen_self=$enable_dlopen_self
18417
18418# Whether dlopen of statically linked programs is supported.
18419dlopen_self_static=$enable_dlopen_self_static
18420
18421# Compiler flag to prevent dynamic linking.
18422link_static_flag=$lt_lt_prog_compiler_static_RC
18423
18424# Compiler flag to turn off builtin functions.
18425no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18426
18427# Compiler flag to allow reflexive dlopens.
18428export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18429
18430# Compiler flag to generate shared objects directly from archives.
18431whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18432
18433# Compiler flag to generate thread-safe objects.
18434thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18435
18436# Library versioning type.
18437version_type=$version_type
18438
18439# Format of library name prefix.
18440libname_spec=$lt_libname_spec
18441
18442# List of archive names.  First name is the real one, the rest are links.
18443# The last name is the one that the linker finds with -lNAME.
18444library_names_spec=$lt_library_names_spec
18445
18446# The coded name of the library, if different from the real name.
18447soname_spec=$lt_soname_spec
18448
18449# Commands used to build and install an old-style archive.
18450RANLIB=$lt_RANLIB
18451old_archive_cmds=$lt_old_archive_cmds_RC
18452old_postinstall_cmds=$lt_old_postinstall_cmds
18453old_postuninstall_cmds=$lt_old_postuninstall_cmds
18454
18455# Create an old-style archive from a shared archive.
18456old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18457
18458# Create a temporary old-style archive to link instead of a shared archive.
18459old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18460
18461# Commands used to build and install a shared archive.
18462archive_cmds=$lt_archive_cmds_RC
18463archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18464postinstall_cmds=$lt_postinstall_cmds
18465postuninstall_cmds=$lt_postuninstall_cmds
18466
18467# Commands used to build a loadable module (assumed same as above if empty)
18468module_cmds=$lt_module_cmds_RC
18469module_expsym_cmds=$lt_module_expsym_cmds_RC
18470
18471# Commands to strip libraries.
18472old_striplib=$lt_old_striplib
18473striplib=$lt_striplib
18474
18475# Dependencies to place before the objects being linked to create a
18476# shared library.
18477predep_objects=\`echo $lt_predep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18478
18479# Dependencies to place after the objects being linked to create a
18480# shared library.
18481postdep_objects=\`echo $lt_postdep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18482
18483# Dependencies to place before the objects being linked to create a
18484# shared library.
18485predeps=$lt_predeps_RC
18486
18487# Dependencies to place after the objects being linked to create a
18488# shared library.
18489postdeps=$lt_postdeps_RC
18490
18491# The library search path used internally by the compiler when linking
18492# a shared library.
18493compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18494
18495# Method to check whether dependent libraries are shared objects.
18496deplibs_check_method=$lt_deplibs_check_method
18497
18498# Command to use when deplibs_check_method == file_magic.
18499file_magic_cmd=$lt_file_magic_cmd
18500
18501# Flag that allows shared libraries with undefined symbols to be built.
18502allow_undefined_flag=$lt_allow_undefined_flag_RC
18503
18504# Flag that forces no undefined symbols.
18505no_undefined_flag=$lt_no_undefined_flag_RC
18506
18507# Commands used to finish a libtool library installation in a directory.
18508finish_cmds=$lt_finish_cmds
18509
18510# Same as above, but a single script fragment to be evaled but not shown.
18511finish_eval=$lt_finish_eval
18512
18513# Take the output of nm and produce a listing of raw symbols and C names.
18514global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18515
18516# Transform the output of nm in a proper C declaration
18517global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18518
18519# Transform the output of nm in a C name address pair
18520global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18521
18522# This is the shared library runtime path variable.
18523runpath_var=$runpath_var
18524
18525# This is the shared library path variable.
18526shlibpath_var=$shlibpath_var
18527
18528# Is shlibpath searched before the hard-coded library search path?
18529shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18530
18531# How to hardcode a shared library path into an executable.
18532hardcode_action=$hardcode_action_RC
18533
18534# Whether we should hardcode library paths into libraries.
18535hardcode_into_libs=$hardcode_into_libs
18536
18537# Flag to hardcode \$libdir into a binary during linking.
18538# This must work even if \$libdir does not exist.
18539hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18540
18541# If ld is used when linking, flag to hardcode \$libdir into
18542# a binary during linking. This must work even if \$libdir does
18543# not exist.
18544hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18545
18546# Whether we need a single -rpath flag with a separated argument.
18547hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18548
18549# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18550# resulting binary.
18551hardcode_direct=$hardcode_direct_RC
18552
18553# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18554# resulting binary.
18555hardcode_minus_L=$hardcode_minus_L_RC
18556
18557# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18558# the resulting binary.
18559hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18560
18561# Set to yes if building a shared library automatically hardcodes DIR into the library
18562# and all subsequent libraries and executables linked against it.
18563hardcode_automatic=$hardcode_automatic_RC
18564
18565# Variables whose values should be saved in libtool wrapper scripts and
18566# restored at relink time.
18567variables_saved_for_relink="$variables_saved_for_relink"
18568
18569# Whether libtool must link a program against all its dependency libraries.
18570link_all_deplibs=$link_all_deplibs_RC
18571
18572# Compile-time system search path for libraries
18573sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18574
18575# Run-time system search path for libraries
18576sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18577
18578# Fix the shell variable \$srcfile for the compiler.
18579fix_srcfile_path="$fix_srcfile_path_RC"
18580
18581# Set to yes if exported symbols are required.
18582always_export_symbols=$always_export_symbols_RC
18583
18584# The commands to list exported symbols.
18585export_symbols_cmds=$lt_export_symbols_cmds_RC
18586
18587# The commands to extract the exported symbol list from a shared archive.
18588extract_expsyms_cmds=$lt_extract_expsyms_cmds
18589
18590# Symbols that should not be listed in the preloaded symbols.
18591exclude_expsyms=$lt_exclude_expsyms_RC
18592
18593# Symbols that must always be exported.
18594include_expsyms=$lt_include_expsyms_RC
18595
18596# ### END LIBTOOL TAG CONFIG: $tagname
18597
18598__EOF__
18599
18600
18601else
18602  # If there is no Makefile yet, we rely on a make rule to execute
18603  # `config.status --recheck' to rerun these tests and create the
18604  # libtool script then.
18605  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18606  if test -f "$ltmain_in"; then
18607    test -f Makefile && make "$ltmain"
18608  fi
18609fi
18610
18611
18612ac_ext=c
18613ac_cpp='$CPP $CPPFLAGS'
18614ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18615ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18616ac_compiler_gnu=$ac_cv_c_compiler_gnu
18617
18618CC="$lt_save_CC"
18619
18620	;;
18621
18622      *)
18623	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18624echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18625   { (exit 1); exit 1; }; }
18626	;;
18627      esac
18628
18629      # Append the new tag name to the list of available tags.
18630      if test -n "$tagname" ; then
18631      available_tags="$available_tags $tagname"
18632    fi
18633    fi
18634  done
18635  IFS="$lt_save_ifs"
18636
18637  # Now substitute the updated list of available tags.
18638  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18639    mv "${ofile}T" "$ofile"
18640    chmod +x "$ofile"
18641  else
18642    rm -f "${ofile}T"
18643    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18644echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18645   { (exit 1); exit 1; }; }
18646  fi
18647fi
18648
18649
18650
18651# This can be used to rebuild libtool when needed
18652LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18653
18654# Always use our own libtool.
18655LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18656
18657# Prevent multiple expansion
18658
18659
18660
18661
18662
18663
18664
18665
18666
18667
18668
18669
18670
18671
18672
18673
18674
18675
18676
18677
18678ac_ext=c
18679ac_cpp='$CPP $CPPFLAGS'
18680ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18681ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18682ac_compiler_gnu=$ac_cv_c_compiler_gnu
18683if test -n "$ac_tool_prefix"; then
18684  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
18685set dummy ${ac_tool_prefix}gcc; ac_word=$2
18686echo "$as_me:$LINENO: checking for $ac_word" >&5
18687echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18688if test "${ac_cv_prog_CC+set}" = set; then
18689  echo $ECHO_N "(cached) $ECHO_C" >&6
18690else
18691  if test -n "$CC"; then
18692  ac_cv_prog_CC="$CC" # Let the user override the test.
18693else
18694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18695for as_dir in $PATH
18696do
18697  IFS=$as_save_IFS
18698  test -z "$as_dir" && as_dir=.
18699  for ac_exec_ext in '' $ac_executable_extensions; do
18700  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18701    ac_cv_prog_CC="${ac_tool_prefix}gcc"
18702    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18703    break 2
18704  fi
18705done
18706done
18707
18708fi
18709fi
18710CC=$ac_cv_prog_CC
18711if test -n "$CC"; then
18712  echo "$as_me:$LINENO: result: $CC" >&5
18713echo "${ECHO_T}$CC" >&6
18714else
18715  echo "$as_me:$LINENO: result: no" >&5
18716echo "${ECHO_T}no" >&6
18717fi
18718
18719fi
18720if test -z "$ac_cv_prog_CC"; then
18721  ac_ct_CC=$CC
18722  # Extract the first word of "gcc", so it can be a program name with args.
18723set dummy gcc; ac_word=$2
18724echo "$as_me:$LINENO: checking for $ac_word" >&5
18725echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18726if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
18727  echo $ECHO_N "(cached) $ECHO_C" >&6
18728else
18729  if test -n "$ac_ct_CC"; then
18730  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18731else
18732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18733for as_dir in $PATH
18734do
18735  IFS=$as_save_IFS
18736  test -z "$as_dir" && as_dir=.
18737  for ac_exec_ext in '' $ac_executable_extensions; do
18738  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18739    ac_cv_prog_ac_ct_CC="gcc"
18740    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18741    break 2
18742  fi
18743done
18744done
18745
18746fi
18747fi
18748ac_ct_CC=$ac_cv_prog_ac_ct_CC
18749if test -n "$ac_ct_CC"; then
18750  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
18751echo "${ECHO_T}$ac_ct_CC" >&6
18752else
18753  echo "$as_me:$LINENO: result: no" >&5
18754echo "${ECHO_T}no" >&6
18755fi
18756
18757  CC=$ac_ct_CC
18758else
18759  CC="$ac_cv_prog_CC"
18760fi
18761
18762if test -z "$CC"; then
18763  if test -n "$ac_tool_prefix"; then
18764  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
18765set dummy ${ac_tool_prefix}cc; ac_word=$2
18766echo "$as_me:$LINENO: checking for $ac_word" >&5
18767echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18768if test "${ac_cv_prog_CC+set}" = set; then
18769  echo $ECHO_N "(cached) $ECHO_C" >&6
18770else
18771  if test -n "$CC"; then
18772  ac_cv_prog_CC="$CC" # Let the user override the test.
18773else
18774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18775for as_dir in $PATH
18776do
18777  IFS=$as_save_IFS
18778  test -z "$as_dir" && as_dir=.
18779  for ac_exec_ext in '' $ac_executable_extensions; do
18780  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18781    ac_cv_prog_CC="${ac_tool_prefix}cc"
18782    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18783    break 2
18784  fi
18785done
18786done
18787
18788fi
18789fi
18790CC=$ac_cv_prog_CC
18791if test -n "$CC"; then
18792  echo "$as_me:$LINENO: result: $CC" >&5
18793echo "${ECHO_T}$CC" >&6
18794else
18795  echo "$as_me:$LINENO: result: no" >&5
18796echo "${ECHO_T}no" >&6
18797fi
18798
18799fi
18800if test -z "$ac_cv_prog_CC"; then
18801  ac_ct_CC=$CC
18802  # Extract the first word of "cc", so it can be a program name with args.
18803set dummy cc; ac_word=$2
18804echo "$as_me:$LINENO: checking for $ac_word" >&5
18805echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18806if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
18807  echo $ECHO_N "(cached) $ECHO_C" >&6
18808else
18809  if test -n "$ac_ct_CC"; then
18810  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18811else
18812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18813for as_dir in $PATH
18814do
18815  IFS=$as_save_IFS
18816  test -z "$as_dir" && as_dir=.
18817  for ac_exec_ext in '' $ac_executable_extensions; do
18818  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18819    ac_cv_prog_ac_ct_CC="cc"
18820    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18821    break 2
18822  fi
18823done
18824done
18825
18826fi
18827fi
18828ac_ct_CC=$ac_cv_prog_ac_ct_CC
18829if test -n "$ac_ct_CC"; then
18830  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
18831echo "${ECHO_T}$ac_ct_CC" >&6
18832else
18833  echo "$as_me:$LINENO: result: no" >&5
18834echo "${ECHO_T}no" >&6
18835fi
18836
18837  CC=$ac_ct_CC
18838else
18839  CC="$ac_cv_prog_CC"
18840fi
18841
18842fi
18843if test -z "$CC"; then
18844  # Extract the first word of "cc", so it can be a program name with args.
18845set dummy cc; ac_word=$2
18846echo "$as_me:$LINENO: checking for $ac_word" >&5
18847echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18848if test "${ac_cv_prog_CC+set}" = set; then
18849  echo $ECHO_N "(cached) $ECHO_C" >&6
18850else
18851  if test -n "$CC"; then
18852  ac_cv_prog_CC="$CC" # Let the user override the test.
18853else
18854  ac_prog_rejected=no
18855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18856for as_dir in $PATH
18857do
18858  IFS=$as_save_IFS
18859  test -z "$as_dir" && as_dir=.
18860  for ac_exec_ext in '' $ac_executable_extensions; do
18861  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18862    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
18863       ac_prog_rejected=yes
18864       continue
18865     fi
18866    ac_cv_prog_CC="cc"
18867    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18868    break 2
18869  fi
18870done
18871done
18872
18873if test $ac_prog_rejected = yes; then
18874  # We found a bogon in the path, so make sure we never use it.
18875  set dummy $ac_cv_prog_CC
18876  shift
18877  if test $# != 0; then
18878    # We chose a different compiler from the bogus one.
18879    # However, it has the same basename, so the bogon will be chosen
18880    # first if we set CC to just the basename; use the full file name.
18881    shift
18882    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
18883  fi
18884fi
18885fi
18886fi
18887CC=$ac_cv_prog_CC
18888if test -n "$CC"; then
18889  echo "$as_me:$LINENO: result: $CC" >&5
18890echo "${ECHO_T}$CC" >&6
18891else
18892  echo "$as_me:$LINENO: result: no" >&5
18893echo "${ECHO_T}no" >&6
18894fi
18895
18896fi
18897if test -z "$CC"; then
18898  if test -n "$ac_tool_prefix"; then
18899  for ac_prog in cl
18900  do
18901    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
18902set dummy $ac_tool_prefix$ac_prog; ac_word=$2
18903echo "$as_me:$LINENO: checking for $ac_word" >&5
18904echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18905if test "${ac_cv_prog_CC+set}" = set; then
18906  echo $ECHO_N "(cached) $ECHO_C" >&6
18907else
18908  if test -n "$CC"; then
18909  ac_cv_prog_CC="$CC" # Let the user override the test.
18910else
18911as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18912for as_dir in $PATH
18913do
18914  IFS=$as_save_IFS
18915  test -z "$as_dir" && as_dir=.
18916  for ac_exec_ext in '' $ac_executable_extensions; do
18917  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18918    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
18919    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18920    break 2
18921  fi
18922done
18923done
18924
18925fi
18926fi
18927CC=$ac_cv_prog_CC
18928if test -n "$CC"; then
18929  echo "$as_me:$LINENO: result: $CC" >&5
18930echo "${ECHO_T}$CC" >&6
18931else
18932  echo "$as_me:$LINENO: result: no" >&5
18933echo "${ECHO_T}no" >&6
18934fi
18935
18936    test -n "$CC" && break
18937  done
18938fi
18939if test -z "$CC"; then
18940  ac_ct_CC=$CC
18941  for ac_prog in cl
18942do
18943  # Extract the first word of "$ac_prog", so it can be a program name with args.
18944set dummy $ac_prog; ac_word=$2
18945echo "$as_me:$LINENO: checking for $ac_word" >&5
18946echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18947if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
18948  echo $ECHO_N "(cached) $ECHO_C" >&6
18949else
18950  if test -n "$ac_ct_CC"; then
18951  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18952else
18953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18954for as_dir in $PATH
18955do
18956  IFS=$as_save_IFS
18957  test -z "$as_dir" && as_dir=.
18958  for ac_exec_ext in '' $ac_executable_extensions; do
18959  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18960    ac_cv_prog_ac_ct_CC="$ac_prog"
18961    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18962    break 2
18963  fi
18964done
18965done
18966
18967fi
18968fi
18969ac_ct_CC=$ac_cv_prog_ac_ct_CC
18970if test -n "$ac_ct_CC"; then
18971  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
18972echo "${ECHO_T}$ac_ct_CC" >&6
18973else
18974  echo "$as_me:$LINENO: result: no" >&5
18975echo "${ECHO_T}no" >&6
18976fi
18977
18978  test -n "$ac_ct_CC" && break
18979done
18980
18981  CC=$ac_ct_CC
18982fi
18983
18984fi
18985
18986
18987test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
18988See \`config.log' for more details." >&5
18989echo "$as_me: error: no acceptable C compiler found in \$PATH
18990See \`config.log' for more details." >&2;}
18991   { (exit 1); exit 1; }; }
18992
18993# Provide some information about the compiler.
18994echo "$as_me:$LINENO:" \
18995     "checking for C compiler version" >&5
18996ac_compiler=`set X $ac_compile; echo $2`
18997{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
18998  (eval $ac_compiler --version </dev/null >&5) 2>&5
18999  ac_status=$?
19000  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19001  (exit $ac_status); }
19002{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
19003  (eval $ac_compiler -v </dev/null >&5) 2>&5
19004  ac_status=$?
19005  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19006  (exit $ac_status); }
19007{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
19008  (eval $ac_compiler -V </dev/null >&5) 2>&5
19009  ac_status=$?
19010  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19011  (exit $ac_status); }
19012
19013echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19014echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
19015if test "${ac_cv_c_compiler_gnu+set}" = set; then
19016  echo $ECHO_N "(cached) $ECHO_C" >&6
19017else
19018  cat >conftest.$ac_ext <<_ACEOF
19019/* confdefs.h.  */
19020_ACEOF
19021cat confdefs.h >>conftest.$ac_ext
19022cat >>conftest.$ac_ext <<_ACEOF
19023/* end confdefs.h.  */
19024
19025int
19026main ()
19027{
19028#ifndef __GNUC__
19029       choke me
19030#endif
19031
19032  ;
19033  return 0;
19034}
19035_ACEOF
19036rm -f conftest.$ac_objext
19037if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19038  (eval $ac_compile) 2>conftest.er1
19039  ac_status=$?
19040  grep -v '^ *+' conftest.er1 >conftest.err
19041  rm -f conftest.er1
19042  cat conftest.err >&5
19043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19044  (exit $ac_status); } &&
19045	 { ac_try='test -z "$ac_c_werror_flag"
19046			 || test ! -s conftest.err'
19047  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19048  (eval $ac_try) 2>&5
19049  ac_status=$?
19050  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19051  (exit $ac_status); }; } &&
19052	 { ac_try='test -s conftest.$ac_objext'
19053  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19054  (eval $ac_try) 2>&5
19055  ac_status=$?
19056  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19057  (exit $ac_status); }; }; then
19058  ac_compiler_gnu=yes
19059else
19060  echo "$as_me: failed program was:" >&5
19061sed 's/^/| /' conftest.$ac_ext >&5
19062
19063ac_compiler_gnu=no
19064fi
19065rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19066ac_cv_c_compiler_gnu=$ac_compiler_gnu
19067
19068fi
19069echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19070echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
19071GCC=`test $ac_compiler_gnu = yes && echo yes`
19072ac_test_CFLAGS=${CFLAGS+set}
19073ac_save_CFLAGS=$CFLAGS
19074CFLAGS="-g"
19075echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19076echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
19077if test "${ac_cv_prog_cc_g+set}" = set; then
19078  echo $ECHO_N "(cached) $ECHO_C" >&6
19079else
19080  cat >conftest.$ac_ext <<_ACEOF
19081/* confdefs.h.  */
19082_ACEOF
19083cat confdefs.h >>conftest.$ac_ext
19084cat >>conftest.$ac_ext <<_ACEOF
19085/* end confdefs.h.  */
19086
19087int
19088main ()
19089{
19090
19091  ;
19092  return 0;
19093}
19094_ACEOF
19095rm -f conftest.$ac_objext
19096if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19097  (eval $ac_compile) 2>conftest.er1
19098  ac_status=$?
19099  grep -v '^ *+' conftest.er1 >conftest.err
19100  rm -f conftest.er1
19101  cat conftest.err >&5
19102  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19103  (exit $ac_status); } &&
19104	 { ac_try='test -z "$ac_c_werror_flag"
19105			 || test ! -s conftest.err'
19106  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19107  (eval $ac_try) 2>&5
19108  ac_status=$?
19109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19110  (exit $ac_status); }; } &&
19111	 { ac_try='test -s conftest.$ac_objext'
19112  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19113  (eval $ac_try) 2>&5
19114  ac_status=$?
19115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19116  (exit $ac_status); }; }; then
19117  ac_cv_prog_cc_g=yes
19118else
19119  echo "$as_me: failed program was:" >&5
19120sed 's/^/| /' conftest.$ac_ext >&5
19121
19122ac_cv_prog_cc_g=no
19123fi
19124rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19125fi
19126echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19127echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
19128if test "$ac_test_CFLAGS" = set; then
19129  CFLAGS=$ac_save_CFLAGS
19130elif test $ac_cv_prog_cc_g = yes; then
19131  if test "$GCC" = yes; then
19132    CFLAGS="-g -O2"
19133  else
19134    CFLAGS="-g"
19135  fi
19136else
19137  if test "$GCC" = yes; then
19138    CFLAGS="-O2"
19139  else
19140    CFLAGS=
19141  fi
19142fi
19143echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
19144echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
19145if test "${ac_cv_prog_cc_stdc+set}" = set; then
19146  echo $ECHO_N "(cached) $ECHO_C" >&6
19147else
19148  ac_cv_prog_cc_stdc=no
19149ac_save_CC=$CC
19150cat >conftest.$ac_ext <<_ACEOF
19151/* confdefs.h.  */
19152_ACEOF
19153cat confdefs.h >>conftest.$ac_ext
19154cat >>conftest.$ac_ext <<_ACEOF
19155/* end confdefs.h.  */
19156#include <stdarg.h>
19157#include <stdio.h>
19158#include <sys/types.h>
19159#include <sys/stat.h>
19160/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
19161struct buf { int x; };
19162FILE * (*rcsopen) (struct buf *, struct stat *, int);
19163static char *e (p, i)
19164     char **p;
19165     int i;
19166{
19167  return p[i];
19168}
19169static char *f (char * (*g) (char **, int), char **p, ...)
19170{
19171  char *s;
19172  va_list v;
19173  va_start (v,p);
19174  s = g (p, va_arg (v,int));
19175  va_end (v);
19176  return s;
19177}
19178
19179/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
19180   function prototypes and stuff, but not '\xHH' hex character constants.
19181   These don't provoke an error unfortunately, instead are silently treated
19182   as 'x'.  The following induces an error, until -std1 is added to get
19183   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
19184   array size at least.  It's necessary to write '\x00'==0 to get something
19185   that's true only with -std1.  */
19186int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19187
19188int test (int i, double x);
19189struct s1 {int (*f) (int a);};
19190struct s2 {int (*f) (double a);};
19191int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19192int argc;
19193char **argv;
19194int
19195main ()
19196{
19197return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
19198  ;
19199  return 0;
19200}
19201_ACEOF
19202# Don't try gcc -ansi; that turns off useful extensions and
19203# breaks some systems' header files.
19204# AIX			-qlanglvl=ansi
19205# Ultrix and OSF/1	-std1
19206# HP-UX 10.20 and later	-Ae
19207# HP-UX older versions	-Aa -D_HPUX_SOURCE
19208# SVR4			-Xc -D__EXTENSIONS__
19209for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19210do
19211  CC="$ac_save_CC $ac_arg"
19212  rm -f conftest.$ac_objext
19213if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19214  (eval $ac_compile) 2>conftest.er1
19215  ac_status=$?
19216  grep -v '^ *+' conftest.er1 >conftest.err
19217  rm -f conftest.er1
19218  cat conftest.err >&5
19219  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19220  (exit $ac_status); } &&
19221	 { ac_try='test -z "$ac_c_werror_flag"
19222			 || test ! -s conftest.err'
19223  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19224  (eval $ac_try) 2>&5
19225  ac_status=$?
19226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19227  (exit $ac_status); }; } &&
19228	 { ac_try='test -s conftest.$ac_objext'
19229  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19230  (eval $ac_try) 2>&5
19231  ac_status=$?
19232  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19233  (exit $ac_status); }; }; then
19234  ac_cv_prog_cc_stdc=$ac_arg
19235break
19236else
19237  echo "$as_me: failed program was:" >&5
19238sed 's/^/| /' conftest.$ac_ext >&5
19239
19240fi
19241rm -f conftest.err conftest.$ac_objext
19242done
19243rm -f conftest.$ac_ext conftest.$ac_objext
19244CC=$ac_save_CC
19245
19246fi
19247
19248case "x$ac_cv_prog_cc_stdc" in
19249  x|xno)
19250    echo "$as_me:$LINENO: result: none needed" >&5
19251echo "${ECHO_T}none needed" >&6 ;;
19252  *)
19253    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
19254echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
19255    CC="$CC $ac_cv_prog_cc_stdc" ;;
19256esac
19257
19258# Some people use a C++ compiler to compile C.  Since we use `exit',
19259# in C++ we need to declare it.  In case someone uses the same compiler
19260# for both compiling C and C++ we need to have the C++ compiler decide
19261# the declaration of exit, since it's the most demanding environment.
19262cat >conftest.$ac_ext <<_ACEOF
19263#ifndef __cplusplus
19264  choke me
19265#endif
19266_ACEOF
19267rm -f conftest.$ac_objext
19268if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19269  (eval $ac_compile) 2>conftest.er1
19270  ac_status=$?
19271  grep -v '^ *+' conftest.er1 >conftest.err
19272  rm -f conftest.er1
19273  cat conftest.err >&5
19274  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19275  (exit $ac_status); } &&
19276	 { ac_try='test -z "$ac_c_werror_flag"
19277			 || test ! -s conftest.err'
19278  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19279  (eval $ac_try) 2>&5
19280  ac_status=$?
19281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19282  (exit $ac_status); }; } &&
19283	 { ac_try='test -s conftest.$ac_objext'
19284  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19285  (eval $ac_try) 2>&5
19286  ac_status=$?
19287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19288  (exit $ac_status); }; }; then
19289  for ac_declaration in \
19290   '' \
19291   'extern "C" void std::exit (int) throw (); using std::exit;' \
19292   'extern "C" void std::exit (int); using std::exit;' \
19293   'extern "C" void exit (int) throw ();' \
19294   'extern "C" void exit (int);' \
19295   'void exit (int);'
19296do
19297  cat >conftest.$ac_ext <<_ACEOF
19298/* confdefs.h.  */
19299_ACEOF
19300cat confdefs.h >>conftest.$ac_ext
19301cat >>conftest.$ac_ext <<_ACEOF
19302/* end confdefs.h.  */
19303$ac_declaration
19304#include <stdlib.h>
19305int
19306main ()
19307{
19308exit (42);
19309  ;
19310  return 0;
19311}
19312_ACEOF
19313rm -f conftest.$ac_objext
19314if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19315  (eval $ac_compile) 2>conftest.er1
19316  ac_status=$?
19317  grep -v '^ *+' conftest.er1 >conftest.err
19318  rm -f conftest.er1
19319  cat conftest.err >&5
19320  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19321  (exit $ac_status); } &&
19322	 { ac_try='test -z "$ac_c_werror_flag"
19323			 || test ! -s conftest.err'
19324  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19325  (eval $ac_try) 2>&5
19326  ac_status=$?
19327  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19328  (exit $ac_status); }; } &&
19329	 { ac_try='test -s conftest.$ac_objext'
19330  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19331  (eval $ac_try) 2>&5
19332  ac_status=$?
19333  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19334  (exit $ac_status); }; }; then
19335  :
19336else
19337  echo "$as_me: failed program was:" >&5
19338sed 's/^/| /' conftest.$ac_ext >&5
19339
19340continue
19341fi
19342rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19343  cat >conftest.$ac_ext <<_ACEOF
19344/* confdefs.h.  */
19345_ACEOF
19346cat confdefs.h >>conftest.$ac_ext
19347cat >>conftest.$ac_ext <<_ACEOF
19348/* end confdefs.h.  */
19349$ac_declaration
19350int
19351main ()
19352{
19353exit (42);
19354  ;
19355  return 0;
19356}
19357_ACEOF
19358rm -f conftest.$ac_objext
19359if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19360  (eval $ac_compile) 2>conftest.er1
19361  ac_status=$?
19362  grep -v '^ *+' conftest.er1 >conftest.err
19363  rm -f conftest.er1
19364  cat conftest.err >&5
19365  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19366  (exit $ac_status); } &&
19367	 { ac_try='test -z "$ac_c_werror_flag"
19368			 || test ! -s conftest.err'
19369  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19370  (eval $ac_try) 2>&5
19371  ac_status=$?
19372  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19373  (exit $ac_status); }; } &&
19374	 { ac_try='test -s conftest.$ac_objext'
19375  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19376  (eval $ac_try) 2>&5
19377  ac_status=$?
19378  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19379  (exit $ac_status); }; }; then
19380  break
19381else
19382  echo "$as_me: failed program was:" >&5
19383sed 's/^/| /' conftest.$ac_ext >&5
19384
19385fi
19386rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19387done
19388rm -f conftest*
19389if test -n "$ac_declaration"; then
19390  echo '#ifdef __cplusplus' >>confdefs.h
19391  echo $ac_declaration      >>confdefs.h
19392  echo '#endif'             >>confdefs.h
19393fi
19394
19395else
19396  echo "$as_me: failed program was:" >&5
19397sed 's/^/| /' conftest.$ac_ext >&5
19398
19399fi
19400rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19401ac_ext=c
19402ac_cpp='$CPP $CPPFLAGS'
19403ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19404ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19405ac_compiler_gnu=$ac_cv_c_compiler_gnu
19406
19407depcc="$CC"   am_compiler_list=
19408
19409echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19410echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
19411if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
19412  echo $ECHO_N "(cached) $ECHO_C" >&6
19413else
19414  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19415  # We make a subdir and do the tests there.  Otherwise we can end up
19416  # making bogus files that we don't know about and never remove.  For
19417  # instance it was reported that on HP-UX the gcc test will end up
19418  # making a dummy file named `D' -- because `-MD' means `put the output
19419  # in D'.
19420  mkdir conftest.dir
19421  # Copy depcomp to subdir because otherwise we won't find it if we're
19422  # using a relative directory.
19423  cp "$am_depcomp" conftest.dir
19424  cd conftest.dir
19425  # We will build objects and dependencies in a subdirectory because
19426  # it helps to detect inapplicable dependency modes.  For instance
19427  # both Tru64's cc and ICC support -MD to output dependencies as a
19428  # side effect of compilation, but ICC will put the dependencies in
19429  # the current directory while Tru64 will put them in the object
19430  # directory.
19431  mkdir sub
19432
19433  am_cv_CC_dependencies_compiler_type=none
19434  if test "$am_compiler_list" = ""; then
19435     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19436  fi
19437  for depmode in $am_compiler_list; do
19438    # Setup a source with many dependencies, because some compilers
19439    # like to wrap large dependency lists on column 80 (with \), and
19440    # we should not choose a depcomp mode which is confused by this.
19441    #
19442    # We need to recreate these files for each test, as the compiler may
19443    # overwrite some of them when testing with obscure command lines.
19444    # This happens at least with the AIX C compiler.
19445    : > sub/conftest.c
19446    for i in 1 2 3 4 5 6; do
19447      echo '#include "conftst'$i'.h"' >> sub/conftest.c
19448      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19449      # Solaris 8's {/usr,}/bin/sh.
19450      touch sub/conftst$i.h
19451    done
19452    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19453
19454    case $depmode in
19455    nosideeffect)
19456      # after this tag, mechanisms are not by side-effect, so they'll
19457      # only be used when explicitly requested
19458      if test "x$enable_dependency_tracking" = xyes; then
19459	continue
19460      else
19461	break
19462      fi
19463      ;;
19464    none) break ;;
19465    esac
19466    # We check with `-c' and `-o' for the sake of the "dashmstdout"
19467    # mode.  It turns out that the SunPro C++ compiler does not properly
19468    # handle `-M -o', and we need to detect this.
19469    if depmode=$depmode \
19470       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19471       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19472       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19473         >/dev/null 2>conftest.err &&
19474       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19475       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19476       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19477      # icc doesn't choke on unknown options, it will just issue warnings
19478      # or remarks (even with -Werror).  So we grep stderr for any message
19479      # that says an option was ignored or not supported.
19480      # When given -MP, icc 7.0 and 7.1 complain thusly:
19481      #   icc: Command line warning: ignoring option '-M'; no argument required
19482      # The diagnosis changed in icc 8.0:
19483      #   icc: Command line remark: option '-MP' not supported
19484      if (grep 'ignoring option' conftest.err ||
19485          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19486        am_cv_CC_dependencies_compiler_type=$depmode
19487        break
19488      fi
19489    fi
19490  done
19491
19492  cd ..
19493  rm -rf conftest.dir
19494else
19495  am_cv_CC_dependencies_compiler_type=none
19496fi
19497
19498fi
19499echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
19500echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
19501CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
19502
19503
19504
19505if
19506  test "x$enable_dependency_tracking" != xno \
19507  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
19508  am__fastdepCC_TRUE=
19509  am__fastdepCC_FALSE='#'
19510else
19511  am__fastdepCC_TRUE='#'
19512  am__fastdepCC_FALSE=
19513fi
19514
19515
19516# By default we simply use the C compiler to build assembly code.
19517
19518test "${CCAS+set}" = set || CCAS=$CC
19519test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
19520
19521
19522
19523
19524
19525
19526
19527
19528# Check whether --with-xorg-module-dir or --without-xorg-module-dir was given.
19529if test "${with_xorg_module_dir+set}" = set; then
19530  withval="$with_xorg_module_dir"
19531  moduledir="$withval"
19532else
19533  moduledir="$libdir/xorg/modules"
19534fi;
19535
19536# Checks for extensions
19537
19538	SAVE_CFLAGS="$CFLAGS"
19539	CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
19540	cat >conftest.$ac_ext <<_ACEOF
19541/* confdefs.h.  */
19542_ACEOF
19543cat confdefs.h >>conftest.$ac_ext
19544cat >>conftest.$ac_ext <<_ACEOF
19545/* end confdefs.h.  */
19546
19547#include "xorg-server.h"
19548#if !defined RANDR
19549#error RANDR not defined
19550#endif
19551
19552int
19553main ()
19554{
19555
19556  ;
19557  return 0;
19558}
19559_ACEOF
19560rm -f conftest.$ac_objext
19561if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19562  (eval $ac_compile) 2>conftest.er1
19563  ac_status=$?
19564  grep -v '^ *+' conftest.er1 >conftest.err
19565  rm -f conftest.er1
19566  cat conftest.err >&5
19567  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19568  (exit $ac_status); } &&
19569	 { ac_try='test -z "$ac_c_werror_flag"
19570			 || test ! -s conftest.err'
19571  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19572  (eval $ac_try) 2>&5
19573  ac_status=$?
19574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19575  (exit $ac_status); }; } &&
19576	 { ac_try='test -s conftest.$ac_objext'
19577  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19578  (eval $ac_try) 2>&5
19579  ac_status=$?
19580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19581  (exit $ac_status); }; }; then
19582  _EXT_CHECK=yes
19583else
19584  echo "$as_me: failed program was:" >&5
19585sed 's/^/| /' conftest.$ac_ext >&5
19586
19587_EXT_CHECK=no
19588fi
19589rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19590	CFLAGS="$SAVE_CFLAGS"
19591	echo "$as_me:$LINENO: checking if RANDR is defined" >&5
19592echo $ECHO_N "checking if RANDR is defined... $ECHO_C" >&6
19593	echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
19594echo "${ECHO_T}$_EXT_CHECK" >&6
19595	if test "$_EXT_CHECK" != no; then
19596		REQUIRED_MODULES="$REQUIRED_MODULES randrproto"
19597	fi
19598
19599
19600	SAVE_CFLAGS="$CFLAGS"
19601	CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
19602	cat >conftest.$ac_ext <<_ACEOF
19603/* confdefs.h.  */
19604_ACEOF
19605cat confdefs.h >>conftest.$ac_ext
19606cat >>conftest.$ac_ext <<_ACEOF
19607/* end confdefs.h.  */
19608
19609#include "xorg-server.h"
19610#if !defined RENDER
19611#error RENDER not defined
19612#endif
19613
19614int
19615main ()
19616{
19617
19618  ;
19619  return 0;
19620}
19621_ACEOF
19622rm -f conftest.$ac_objext
19623if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19624  (eval $ac_compile) 2>conftest.er1
19625  ac_status=$?
19626  grep -v '^ *+' conftest.er1 >conftest.err
19627  rm -f conftest.er1
19628  cat conftest.err >&5
19629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19630  (exit $ac_status); } &&
19631	 { ac_try='test -z "$ac_c_werror_flag"
19632			 || test ! -s conftest.err'
19633  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19634  (eval $ac_try) 2>&5
19635  ac_status=$?
19636  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19637  (exit $ac_status); }; } &&
19638	 { ac_try='test -s conftest.$ac_objext'
19639  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19640  (eval $ac_try) 2>&5
19641  ac_status=$?
19642  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19643  (exit $ac_status); }; }; then
19644  _EXT_CHECK=yes
19645else
19646  echo "$as_me: failed program was:" >&5
19647sed 's/^/| /' conftest.$ac_ext >&5
19648
19649_EXT_CHECK=no
19650fi
19651rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19652	CFLAGS="$SAVE_CFLAGS"
19653	echo "$as_me:$LINENO: checking if RENDER is defined" >&5
19654echo $ECHO_N "checking if RENDER is defined... $ECHO_C" >&6
19655	echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
19656echo "${ECHO_T}$_EXT_CHECK" >&6
19657	if test "$_EXT_CHECK" != no; then
19658		REQUIRED_MODULES="$REQUIRED_MODULES renderproto"
19659	fi
19660
19661
19662	SAVE_CFLAGS="$CFLAGS"
19663	CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
19664	cat >conftest.$ac_ext <<_ACEOF
19665/* confdefs.h.  */
19666_ACEOF
19667cat confdefs.h >>conftest.$ac_ext
19668cat >>conftest.$ac_ext <<_ACEOF
19669/* end confdefs.h.  */
19670
19671#include "xorg-server.h"
19672#if !defined XV
19673#error XV not defined
19674#endif
19675
19676int
19677main ()
19678{
19679
19680  ;
19681  return 0;
19682}
19683_ACEOF
19684rm -f conftest.$ac_objext
19685if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19686  (eval $ac_compile) 2>conftest.er1
19687  ac_status=$?
19688  grep -v '^ *+' conftest.er1 >conftest.err
19689  rm -f conftest.er1
19690  cat conftest.err >&5
19691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19692  (exit $ac_status); } &&
19693	 { ac_try='test -z "$ac_c_werror_flag"
19694			 || test ! -s conftest.err'
19695  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19696  (eval $ac_try) 2>&5
19697  ac_status=$?
19698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19699  (exit $ac_status); }; } &&
19700	 { ac_try='test -s conftest.$ac_objext'
19701  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19702  (eval $ac_try) 2>&5
19703  ac_status=$?
19704  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19705  (exit $ac_status); }; }; then
19706  _EXT_CHECK=yes
19707else
19708  echo "$as_me: failed program was:" >&5
19709sed 's/^/| /' conftest.$ac_ext >&5
19710
19711_EXT_CHECK=no
19712fi
19713rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19714	CFLAGS="$SAVE_CFLAGS"
19715	echo "$as_me:$LINENO: checking if XV is defined" >&5
19716echo $ECHO_N "checking if XV is defined... $ECHO_C" >&6
19717	echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
19718echo "${ECHO_T}$_EXT_CHECK" >&6
19719	if test "$_EXT_CHECK" != no; then
19720		REQUIRED_MODULES="$REQUIRED_MODULES videoproto"
19721	fi
19722
19723
19724	SAVE_CFLAGS="$CFLAGS"
19725	CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
19726	cat >conftest.$ac_ext <<_ACEOF
19727/* confdefs.h.  */
19728_ACEOF
19729cat confdefs.h >>conftest.$ac_ext
19730cat >>conftest.$ac_ext <<_ACEOF
19731/* end confdefs.h.  */
19732
19733#include "xorg-server.h"
19734#if !defined DPMSExtension
19735#error DPMSExtension not defined
19736#endif
19737
19738int
19739main ()
19740{
19741
19742  ;
19743  return 0;
19744}
19745_ACEOF
19746rm -f conftest.$ac_objext
19747if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19748  (eval $ac_compile) 2>conftest.er1
19749  ac_status=$?
19750  grep -v '^ *+' conftest.er1 >conftest.err
19751  rm -f conftest.er1
19752  cat conftest.err >&5
19753  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19754  (exit $ac_status); } &&
19755	 { ac_try='test -z "$ac_c_werror_flag"
19756			 || test ! -s conftest.err'
19757  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19758  (eval $ac_try) 2>&5
19759  ac_status=$?
19760  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19761  (exit $ac_status); }; } &&
19762	 { ac_try='test -s conftest.$ac_objext'
19763  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19764  (eval $ac_try) 2>&5
19765  ac_status=$?
19766  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19767  (exit $ac_status); }; }; then
19768  _EXT_CHECK=yes
19769else
19770  echo "$as_me: failed program was:" >&5
19771sed 's/^/| /' conftest.$ac_ext >&5
19772
19773_EXT_CHECK=no
19774fi
19775rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19776	CFLAGS="$SAVE_CFLAGS"
19777	echo "$as_me:$LINENO: checking if DPMSExtension is defined" >&5
19778echo $ECHO_N "checking if DPMSExtension is defined... $ECHO_C" >&6
19779	echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
19780echo "${ECHO_T}$_EXT_CHECK" >&6
19781	if test "$_EXT_CHECK" != no; then
19782		REQUIRED_MODULES="$REQUIRED_MODULES xextproto"
19783	fi
19784
19785
19786	SAVE_CFLAGS="$CFLAGS"
19787	CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`"
19788	cat >conftest.$ac_ext <<_ACEOF
19789/* confdefs.h.  */
19790_ACEOF
19791cat confdefs.h >>conftest.$ac_ext
19792cat >>conftest.$ac_ext <<_ACEOF
19793/* end confdefs.h.  */
19794
19795#include "xorg-server.h"
19796#if !defined XFreeXDGA
19797#error XFreeXDGA not defined
19798#endif
19799
19800int
19801main ()
19802{
19803
19804  ;
19805  return 0;
19806}
19807_ACEOF
19808rm -f conftest.$ac_objext
19809if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19810  (eval $ac_compile) 2>conftest.er1
19811  ac_status=$?
19812  grep -v '^ *+' conftest.er1 >conftest.err
19813  rm -f conftest.er1
19814  cat conftest.err >&5
19815  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19816  (exit $ac_status); } &&
19817	 { ac_try='test -z "$ac_c_werror_flag"
19818			 || test ! -s conftest.err'
19819  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19820  (eval $ac_try) 2>&5
19821  ac_status=$?
19822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19823  (exit $ac_status); }; } &&
19824	 { ac_try='test -s conftest.$ac_objext'
19825  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19826  (eval $ac_try) 2>&5
19827  ac_status=$?
19828  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19829  (exit $ac_status); }; }; then
19830  _EXT_CHECK=yes
19831else
19832  echo "$as_me: failed program was:" >&5
19833sed 's/^/| /' conftest.$ac_ext >&5
19834
19835_EXT_CHECK=no
19836fi
19837rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19838	CFLAGS="$SAVE_CFLAGS"
19839	echo "$as_me:$LINENO: checking if XFreeXDGA is defined" >&5
19840echo $ECHO_N "checking if XFreeXDGA is defined... $ECHO_C" >&6
19841	echo "$as_me:$LINENO: result: $_EXT_CHECK" >&5
19842echo "${ECHO_T}$_EXT_CHECK" >&6
19843	if test "$_EXT_CHECK" != no; then
19844		REQUIRED_MODULES="$REQUIRED_MODULES xf86dgaproto"
19845	fi
19846
19847
19848# Checks for pkg-config packages
19849
19850
19851if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19852	if test -n "$ac_tool_prefix"; then
19853  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19854set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19855echo "$as_me:$LINENO: checking for $ac_word" >&5
19856echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19857if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
19858  echo $ECHO_N "(cached) $ECHO_C" >&6
19859else
19860  case $PKG_CONFIG in
19861  [\\/]* | ?:[\\/]*)
19862  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19863  ;;
19864  *)
19865  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19866for as_dir in $PATH
19867do
19868  IFS=$as_save_IFS
19869  test -z "$as_dir" && as_dir=.
19870  for ac_exec_ext in '' $ac_executable_extensions; do
19871  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19872    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19873    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19874    break 2
19875  fi
19876done
19877done
19878
19879  ;;
19880esac
19881fi
19882PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19883
19884if test -n "$PKG_CONFIG"; then
19885  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
19886echo "${ECHO_T}$PKG_CONFIG" >&6
19887else
19888  echo "$as_me:$LINENO: result: no" >&5
19889echo "${ECHO_T}no" >&6
19890fi
19891
19892fi
19893if test -z "$ac_cv_path_PKG_CONFIG"; then
19894  ac_pt_PKG_CONFIG=$PKG_CONFIG
19895  # Extract the first word of "pkg-config", so it can be a program name with args.
19896set dummy pkg-config; ac_word=$2
19897echo "$as_me:$LINENO: checking for $ac_word" >&5
19898echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19899if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
19900  echo $ECHO_N "(cached) $ECHO_C" >&6
19901else
19902  case $ac_pt_PKG_CONFIG in
19903  [\\/]* | ?:[\\/]*)
19904  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19905  ;;
19906  *)
19907  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19908for as_dir in $PATH
19909do
19910  IFS=$as_save_IFS
19911  test -z "$as_dir" && as_dir=.
19912  for ac_exec_ext in '' $ac_executable_extensions; do
19913  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19914    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19915    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19916    break 2
19917  fi
19918done
19919done
19920
19921  ;;
19922esac
19923fi
19924ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19925
19926if test -n "$ac_pt_PKG_CONFIG"; then
19927  echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
19928echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
19929else
19930  echo "$as_me:$LINENO: result: no" >&5
19931echo "${ECHO_T}no" >&6
19932fi
19933
19934  PKG_CONFIG=$ac_pt_PKG_CONFIG
19935else
19936  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19937fi
19938
19939fi
19940if test -n "$PKG_CONFIG"; then
19941	_pkg_min_version=0.9.0
19942	echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
19943echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
19944	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
19945		echo "$as_me:$LINENO: result: yes" >&5
19946echo "${ECHO_T}yes" >&6
19947	else
19948		echo "$as_me:$LINENO: result: no" >&5
19949echo "${ECHO_T}no" >&6
19950		PKG_CONFIG=""
19951	fi
19952
19953fi
19954
19955pkg_failed=no
19956echo "$as_me:$LINENO: checking for XORG" >&5
19957echo $ECHO_N "checking for XORG... $ECHO_C" >&6
19958
19959if test -n "$PKG_CONFIG"; then
19960    if test -n "$XORG_CFLAGS"; then
19961        pkg_cv_XORG_CFLAGS="$XORG_CFLAGS"
19962    else
19963        if test -n "$PKG_CONFIG" && \
19964    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\"") >&5
19965  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
19966  ac_status=$?
19967  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19968  (exit $ac_status); }; then
19969  pkg_cv_XORG_CFLAGS=`$PKG_CONFIG --cflags "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
19970else
19971  pkg_failed=yes
19972fi
19973    fi
19974else
19975	pkg_failed=untried
19976fi
19977if test -n "$PKG_CONFIG"; then
19978    if test -n "$XORG_LIBS"; then
19979        pkg_cv_XORG_LIBS="$XORG_LIBS"
19980    else
19981        if test -n "$PKG_CONFIG" && \
19982    { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"xorg-server >= 1.0.99.901 xproto fontsproto \$REQUIRED_MODULES\"") >&5
19983  ($PKG_CONFIG --exists --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES") 2>&5
19984  ac_status=$?
19985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19986  (exit $ac_status); }; then
19987  pkg_cv_XORG_LIBS=`$PKG_CONFIG --libs "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES" 2>/dev/null`
19988else
19989  pkg_failed=yes
19990fi
19991    fi
19992else
19993	pkg_failed=untried
19994fi
19995
19996
19997
19998if test $pkg_failed = yes; then
19999
20000if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20001        _pkg_short_errors_supported=yes
20002else
20003        _pkg_short_errors_supported=no
20004fi
20005        if test $_pkg_short_errors_supported = yes; then
20006	        XORG_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES"`
20007        else
20008	        XORG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES"`
20009        fi
20010	# Put the nasty error message in config.log where it belongs
20011	echo "$XORG_PKG_ERRORS" >&5
20012
20013	{ { echo "$as_me:$LINENO: error: Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met:
20014
20015$XORG_PKG_ERRORS
20016
20017Consider adjusting the PKG_CONFIG_PATH environment variable if you
20018installed software in a non-standard prefix.
20019
20020Alternatively, you may set the environment variables XORG_CFLAGS
20021and XORG_LIBS to avoid the need to call pkg-config.
20022See the pkg-config man page for more details.
20023" >&5
20024echo "$as_me: error: Package requirements (xorg-server >= 1.0.99.901 xproto fontsproto $REQUIRED_MODULES) were not met:
20025
20026$XORG_PKG_ERRORS
20027
20028Consider adjusting the PKG_CONFIG_PATH environment variable if you
20029installed software in a non-standard prefix.
20030
20031Alternatively, you may set the environment variables XORG_CFLAGS
20032and XORG_LIBS to avoid the need to call pkg-config.
20033See the pkg-config man page for more details.
20034" >&2;}
20035   { (exit 1); exit 1; }; }
20036elif test $pkg_failed = untried; then
20037	{ { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
20038is in your PATH or set the PKG_CONFIG environment variable to the full
20039path to pkg-config.
20040
20041Alternatively, you may set the environment variables XORG_CFLAGS
20042and XORG_LIBS to avoid the need to call pkg-config.
20043See the pkg-config man page for more details.
20044
20045To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
20046See \`config.log' for more details." >&5
20047echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
20048is in your PATH or set the PKG_CONFIG environment variable to the full
20049path to pkg-config.
20050
20051Alternatively, you may set the environment variables XORG_CFLAGS
20052and XORG_LIBS to avoid the need to call pkg-config.
20053See the pkg-config man page for more details.
20054
20055To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
20056See \`config.log' for more details." >&2;}
20057   { (exit 1); exit 1; }; }
20058else
20059	XORG_CFLAGS=$pkg_cv_XORG_CFLAGS
20060	XORG_LIBS=$pkg_cv_XORG_LIBS
20061        echo "$as_me:$LINENO: result: yes" >&5
20062echo "${ECHO_T}yes" >&6
20063	:
20064fi
20065sdkdir=$(pkg-config --variable=sdkdir xorg-server)
20066
20067# Checks for libraries.
20068
20069# Checks for header files.
20070echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20071echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
20072if test "${ac_cv_header_stdc+set}" = set; then
20073  echo $ECHO_N "(cached) $ECHO_C" >&6
20074else
20075  cat >conftest.$ac_ext <<_ACEOF
20076/* confdefs.h.  */
20077_ACEOF
20078cat confdefs.h >>conftest.$ac_ext
20079cat >>conftest.$ac_ext <<_ACEOF
20080/* end confdefs.h.  */
20081#include <stdlib.h>
20082#include <stdarg.h>
20083#include <string.h>
20084#include <float.h>
20085
20086int
20087main ()
20088{
20089
20090  ;
20091  return 0;
20092}
20093_ACEOF
20094rm -f conftest.$ac_objext
20095if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20096  (eval $ac_compile) 2>conftest.er1
20097  ac_status=$?
20098  grep -v '^ *+' conftest.er1 >conftest.err
20099  rm -f conftest.er1
20100  cat conftest.err >&5
20101  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20102  (exit $ac_status); } &&
20103	 { ac_try='test -z "$ac_c_werror_flag"
20104			 || test ! -s conftest.err'
20105  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20106  (eval $ac_try) 2>&5
20107  ac_status=$?
20108  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20109  (exit $ac_status); }; } &&
20110	 { ac_try='test -s conftest.$ac_objext'
20111  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20112  (eval $ac_try) 2>&5
20113  ac_status=$?
20114  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20115  (exit $ac_status); }; }; then
20116  ac_cv_header_stdc=yes
20117else
20118  echo "$as_me: failed program was:" >&5
20119sed 's/^/| /' conftest.$ac_ext >&5
20120
20121ac_cv_header_stdc=no
20122fi
20123rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20124
20125if test $ac_cv_header_stdc = yes; then
20126  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20127  cat >conftest.$ac_ext <<_ACEOF
20128/* confdefs.h.  */
20129_ACEOF
20130cat confdefs.h >>conftest.$ac_ext
20131cat >>conftest.$ac_ext <<_ACEOF
20132/* end confdefs.h.  */
20133#include <string.h>
20134
20135_ACEOF
20136if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20137  $EGREP "memchr" >/dev/null 2>&1; then
20138  :
20139else
20140  ac_cv_header_stdc=no
20141fi
20142rm -f conftest*
20143
20144fi
20145
20146if test $ac_cv_header_stdc = yes; then
20147  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20148  cat >conftest.$ac_ext <<_ACEOF
20149/* confdefs.h.  */
20150_ACEOF
20151cat confdefs.h >>conftest.$ac_ext
20152cat >>conftest.$ac_ext <<_ACEOF
20153/* end confdefs.h.  */
20154#include <stdlib.h>
20155
20156_ACEOF
20157if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20158  $EGREP "free" >/dev/null 2>&1; then
20159  :
20160else
20161  ac_cv_header_stdc=no
20162fi
20163rm -f conftest*
20164
20165fi
20166
20167if test $ac_cv_header_stdc = yes; then
20168  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20169  if test "$cross_compiling" = yes; then
20170  :
20171else
20172  cat >conftest.$ac_ext <<_ACEOF
20173/* confdefs.h.  */
20174_ACEOF
20175cat confdefs.h >>conftest.$ac_ext
20176cat >>conftest.$ac_ext <<_ACEOF
20177/* end confdefs.h.  */
20178#include <ctype.h>
20179#if ((' ' & 0x0FF) == 0x020)
20180# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20181# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20182#else
20183# define ISLOWER(c) \
20184		   (('a' <= (c) && (c) <= 'i') \
20185		     || ('j' <= (c) && (c) <= 'r') \
20186		     || ('s' <= (c) && (c) <= 'z'))
20187# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20188#endif
20189
20190#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20191int
20192main ()
20193{
20194  int i;
20195  for (i = 0; i < 256; i++)
20196    if (XOR (islower (i), ISLOWER (i))
20197	|| toupper (i) != TOUPPER (i))
20198      exit(2);
20199  exit (0);
20200}
20201_ACEOF
20202rm -f conftest$ac_exeext
20203if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20204  (eval $ac_link) 2>&5
20205  ac_status=$?
20206  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20207  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20208  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20209  (eval $ac_try) 2>&5
20210  ac_status=$?
20211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20212  (exit $ac_status); }; }; then
20213  :
20214else
20215  echo "$as_me: program exited with status $ac_status" >&5
20216echo "$as_me: failed program was:" >&5
20217sed 's/^/| /' conftest.$ac_ext >&5
20218
20219( exit $ac_status )
20220ac_cv_header_stdc=no
20221fi
20222rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20223fi
20224fi
20225fi
20226echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20227echo "${ECHO_T}$ac_cv_header_stdc" >&6
20228if test $ac_cv_header_stdc = yes; then
20229
20230cat >>confdefs.h <<\_ACEOF
20231#define STDC_HEADERS 1
20232_ACEOF
20233
20234fi
20235
20236
20237
20238
20239
20240is386=false
20241
20242case $host_cpu in
20243  i*86)
20244	is386=true
20245	;;
20246esac
20247
20248# Unset is386 if compiling for AMD64/EM64T
20249if test $is386 = true ; then
20250	echo "$as_me:$LINENO: checking whether _LP64 is declared" >&5
20251echo $ECHO_N "checking whether _LP64 is declared... $ECHO_C" >&6
20252if test "${ac_cv_have_decl__LP64+set}" = set; then
20253  echo $ECHO_N "(cached) $ECHO_C" >&6
20254else
20255  cat >conftest.$ac_ext <<_ACEOF
20256/* confdefs.h.  */
20257_ACEOF
20258cat confdefs.h >>conftest.$ac_ext
20259cat >>conftest.$ac_ext <<_ACEOF
20260/* end confdefs.h.  */
20261$ac_includes_default
20262int
20263main ()
20264{
20265#ifndef _LP64
20266  char *p = (char *) _LP64;
20267#endif
20268
20269  ;
20270  return 0;
20271}
20272_ACEOF
20273rm -f conftest.$ac_objext
20274if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20275  (eval $ac_compile) 2>conftest.er1
20276  ac_status=$?
20277  grep -v '^ *+' conftest.er1 >conftest.err
20278  rm -f conftest.er1
20279  cat conftest.err >&5
20280  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20281  (exit $ac_status); } &&
20282	 { ac_try='test -z "$ac_c_werror_flag"
20283			 || test ! -s conftest.err'
20284  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20285  (eval $ac_try) 2>&5
20286  ac_status=$?
20287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20288  (exit $ac_status); }; } &&
20289	 { ac_try='test -s conftest.$ac_objext'
20290  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20291  (eval $ac_try) 2>&5
20292  ac_status=$?
20293  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20294  (exit $ac_status); }; }; then
20295  ac_cv_have_decl__LP64=yes
20296else
20297  echo "$as_me: failed program was:" >&5
20298sed 's/^/| /' conftest.$ac_ext >&5
20299
20300ac_cv_have_decl__LP64=no
20301fi
20302rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20303fi
20304echo "$as_me:$LINENO: result: $ac_cv_have_decl__LP64" >&5
20305echo "${ECHO_T}$ac_cv_have_decl__LP64" >&6
20306if test $ac_cv_have_decl__LP64 = yes; then
20307
20308cat >>confdefs.h <<_ACEOF
20309#define HAVE_DECL__LP64 1
20310_ACEOF
20311
20312is386=false
20313else
20314  cat >>confdefs.h <<_ACEOF
20315#define HAVE_DECL__LP64 0
20316_ACEOF
20317
20318
20319fi
20320echo "$as_me:$LINENO: checking whether __amd64__ is declared" >&5
20321echo $ECHO_N "checking whether __amd64__ is declared... $ECHO_C" >&6
20322if test "${ac_cv_have_decl___amd64__+set}" = set; then
20323  echo $ECHO_N "(cached) $ECHO_C" >&6
20324else
20325  cat >conftest.$ac_ext <<_ACEOF
20326/* confdefs.h.  */
20327_ACEOF
20328cat confdefs.h >>conftest.$ac_ext
20329cat >>conftest.$ac_ext <<_ACEOF
20330/* end confdefs.h.  */
20331$ac_includes_default
20332int
20333main ()
20334{
20335#ifndef __amd64__
20336  char *p = (char *) __amd64__;
20337#endif
20338
20339  ;
20340  return 0;
20341}
20342_ACEOF
20343rm -f conftest.$ac_objext
20344if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20345  (eval $ac_compile) 2>conftest.er1
20346  ac_status=$?
20347  grep -v '^ *+' conftest.er1 >conftest.err
20348  rm -f conftest.er1
20349  cat conftest.err >&5
20350  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20351  (exit $ac_status); } &&
20352	 { ac_try='test -z "$ac_c_werror_flag"
20353			 || test ! -s conftest.err'
20354  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20355  (eval $ac_try) 2>&5
20356  ac_status=$?
20357  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20358  (exit $ac_status); }; } &&
20359	 { ac_try='test -s conftest.$ac_objext'
20360  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20361  (eval $ac_try) 2>&5
20362  ac_status=$?
20363  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20364  (exit $ac_status); }; }; then
20365  ac_cv_have_decl___amd64__=yes
20366else
20367  echo "$as_me: failed program was:" >&5
20368sed 's/^/| /' conftest.$ac_ext >&5
20369
20370ac_cv_have_decl___amd64__=no
20371fi
20372rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20373fi
20374echo "$as_me:$LINENO: result: $ac_cv_have_decl___amd64__" >&5
20375echo "${ECHO_T}$ac_cv_have_decl___amd64__" >&6
20376if test $ac_cv_have_decl___amd64__ = yes; then
20377
20378cat >>confdefs.h <<_ACEOF
20379#define HAVE_DECL___AMD64__ 1
20380_ACEOF
20381
20382is386=false
20383else
20384  cat >>confdefs.h <<_ACEOF
20385#define HAVE_DECL___AMD64__ 0
20386_ACEOF
20387
20388
20389fi
20390echo "$as_me:$LINENO: checking whether amd64 is declared" >&5
20391echo $ECHO_N "checking whether amd64 is declared... $ECHO_C" >&6
20392if test "${ac_cv_have_decl_amd64+set}" = set; then
20393  echo $ECHO_N "(cached) $ECHO_C" >&6
20394else
20395  cat >conftest.$ac_ext <<_ACEOF
20396/* confdefs.h.  */
20397_ACEOF
20398cat confdefs.h >>conftest.$ac_ext
20399cat >>conftest.$ac_ext <<_ACEOF
20400/* end confdefs.h.  */
20401$ac_includes_default
20402int
20403main ()
20404{
20405#ifndef amd64
20406  char *p = (char *) amd64;
20407#endif
20408
20409  ;
20410  return 0;
20411}
20412_ACEOF
20413rm -f conftest.$ac_objext
20414if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20415  (eval $ac_compile) 2>conftest.er1
20416  ac_status=$?
20417  grep -v '^ *+' conftest.er1 >conftest.err
20418  rm -f conftest.er1
20419  cat conftest.err >&5
20420  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20421  (exit $ac_status); } &&
20422	 { ac_try='test -z "$ac_c_werror_flag"
20423			 || test ! -s conftest.err'
20424  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20425  (eval $ac_try) 2>&5
20426  ac_status=$?
20427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20428  (exit $ac_status); }; } &&
20429	 { ac_try='test -s conftest.$ac_objext'
20430  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20431  (eval $ac_try) 2>&5
20432  ac_status=$?
20433  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20434  (exit $ac_status); }; }; then
20435  ac_cv_have_decl_amd64=yes
20436else
20437  echo "$as_me: failed program was:" >&5
20438sed 's/^/| /' conftest.$ac_ext >&5
20439
20440ac_cv_have_decl_amd64=no
20441fi
20442rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20443fi
20444echo "$as_me:$LINENO: result: $ac_cv_have_decl_amd64" >&5
20445echo "${ECHO_T}$ac_cv_have_decl_amd64" >&6
20446if test $ac_cv_have_decl_amd64 = yes; then
20447
20448cat >>confdefs.h <<_ACEOF
20449#define HAVE_DECL_AMD64 1
20450_ACEOF
20451
20452is386=false
20453else
20454  cat >>confdefs.h <<_ACEOF
20455#define HAVE_DECL_AMD64 0
20456_ACEOF
20457
20458
20459fi
20460
20461
20462fi
20463
20464
20465
20466if test $is386 = true; then
20467  I386ARCH_TRUE=
20468  I386ARCH_FALSE='#'
20469else
20470  I386ARCH_TRUE='#'
20471  I386ARCH_FALSE=
20472fi
20473
20474
20475DRIVER_NAME=nsc
20476
20477
20478
20479
20480
20481if test x$APP_MAN_SUFFIX = x    ; then
20482    APP_MAN_SUFFIX=1
20483fi
20484if test x$APP_MAN_DIR = x    ; then
20485    APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
20486fi
20487
20488if test x$LIB_MAN_SUFFIX = x    ; then
20489    LIB_MAN_SUFFIX=3
20490fi
20491if test x$LIB_MAN_DIR = x    ; then
20492    LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
20493fi
20494
20495if test x$FILE_MAN_SUFFIX = x    ; then
20496    case $host_os in
20497	solaris*)	FILE_MAN_SUFFIX=4  ;;
20498	*)		FILE_MAN_SUFFIX=5  ;;
20499    esac
20500fi
20501if test x$FILE_MAN_DIR = x    ; then
20502    FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
20503fi
20504
20505if test x$MISC_MAN_SUFFIX = x    ; then
20506    case $host_os in
20507	solaris*)	MISC_MAN_SUFFIX=5  ;;
20508	*)		MISC_MAN_SUFFIX=7  ;;
20509    esac
20510fi
20511if test x$MISC_MAN_DIR = x    ; then
20512    MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
20513fi
20514
20515if test x$DRIVER_MAN_SUFFIX = x    ; then
20516    case $host_os in
20517	solaris*)	DRIVER_MAN_SUFFIX=7  ;;
20518	*)		DRIVER_MAN_SUFFIX=4  ;;
20519    esac
20520fi
20521if test x$DRIVER_MAN_DIR = x    ; then
20522    DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
20523fi
20524
20525if test x$ADMIN_MAN_SUFFIX = x    ; then
20526    case $host_os in
20527	solaris*)	ADMIN_MAN_SUFFIX=1m ;;
20528	*)		ADMIN_MAN_SUFFIX=8  ;;
20529    esac
20530fi
20531if test x$ADMIN_MAN_DIR = x    ; then
20532    ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
20533fi
20534
20535
20536
20537
20538
20539
20540
20541
20542
20543
20544
20545
20546
20547
20548
20549
20550
20551# Check whether --with-release-version or --without-release-version was given.
20552if test "${with_release_version+set}" = set; then
20553  withval="$with_release_version"
20554  RELEASE_VERSION="$withval"
20555else
20556  RELEASE_VERSION=""
20557fi;
20558	if test "x$RELEASE_VERSION" != "x"; then
20559		PACKAGE="$PACKAGE-$RELEASE_VERSION"
20560		PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION"
20561		{ echo "$as_me:$LINENO: Building with package name set to $PACKAGE" >&5
20562echo "$as_me: Building with package name set to $PACKAGE" >&6;}
20563	fi
20564
20565
20566                              ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile"
20567cat >confcache <<\_ACEOF
20568# This file is a shell script that caches the results of configure
20569# tests run on this system so they can be shared between configure
20570# scripts and configure runs, see configure's option --config-cache.
20571# It is not useful on other systems.  If it contains results you don't
20572# want to keep, you may remove or edit it.
20573#
20574# config.status only pays attention to the cache file if you give it
20575# the --recheck option to rerun configure.
20576#
20577# `ac_cv_env_foo' variables (set or unset) will be overridden when
20578# loading this file, other *unset* `ac_cv_foo' will be assigned the
20579# following values.
20580
20581_ACEOF
20582
20583# The following way of writing the cache mishandles newlines in values,
20584# but we know of no workaround that is simple, portable, and efficient.
20585# So, don't put newlines in cache variables' values.
20586# Ultrix sh set writes to stderr and can't be redirected directly,
20587# and sets the high bit in the cache file unless we assign to the vars.
20588{
20589  (set) 2>&1 |
20590    case `(ac_space=' '; set | grep ac_space) 2>&1` in
20591    *ac_space=\ *)
20592      # `set' does not quote correctly, so add quotes (double-quote
20593      # substitution turns \\\\ into \\, and sed turns \\ into \).
20594      sed -n \
20595	"s/'/'\\\\''/g;
20596	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20597      ;;
20598    *)
20599      # `set' quotes correctly as required by POSIX, so do not add quotes.
20600      sed -n \
20601	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20602      ;;
20603    esac;
20604} |
20605  sed '
20606     t clear
20607     : clear
20608     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20609     t end
20610     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20611     : end' >>confcache
20612if diff $cache_file confcache >/dev/null 2>&1; then :; else
20613  if test -w $cache_file; then
20614    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20615    cat confcache >$cache_file
20616  else
20617    echo "not updating unwritable cache $cache_file"
20618  fi
20619fi
20620rm -f confcache
20621
20622test "x$prefix" = xNONE && prefix=$ac_default_prefix
20623# Let make expand exec_prefix.
20624test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20625
20626# VPATH may cause trouble with some makes, so we remove $(srcdir),
20627# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20628# trailing colons and then remove the whole line if VPATH becomes empty
20629# (actually we leave an empty line to preserve line numbers).
20630if test "x$srcdir" = x.; then
20631  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
20632s/:*\$(srcdir):*/:/;
20633s/:*\${srcdir}:*/:/;
20634s/:*@srcdir@:*/:/;
20635s/^\([^=]*=[	 ]*\):*/\1/;
20636s/:*$//;
20637s/^[^=]*=[	 ]*$//;
20638}'
20639fi
20640
20641DEFS=-DHAVE_CONFIG_H
20642
20643ac_libobjs=
20644ac_ltlibobjs=
20645for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20646  # 1. Remove the extension, and $U if already installed.
20647  ac_i=`echo "$ac_i" |
20648	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20649  # 2. Add them.
20650  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20651  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20652done
20653LIBOBJS=$ac_libobjs
20654
20655LTLIBOBJS=$ac_ltlibobjs
20656
20657
20658if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20659  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
20660Usually this means the macro was only invoked conditionally." >&5
20661echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
20662Usually this means the macro was only invoked conditionally." >&2;}
20663   { (exit 1); exit 1; }; }
20664fi
20665if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20666  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20667Usually this means the macro was only invoked conditionally." >&5
20668echo "$as_me: error: conditional \"AMDEP\" was never defined.
20669Usually this means the macro was only invoked conditionally." >&2;}
20670   { (exit 1); exit 1; }; }
20671fi
20672if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20673  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20674Usually this means the macro was only invoked conditionally." >&5
20675echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20676Usually this means the macro was only invoked conditionally." >&2;}
20677   { (exit 1); exit 1; }; }
20678fi
20679if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20680  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20681Usually this means the macro was only invoked conditionally." >&5
20682echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20683Usually this means the macro was only invoked conditionally." >&2;}
20684   { (exit 1); exit 1; }; }
20685fi
20686if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20687  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20688Usually this means the macro was only invoked conditionally." >&5
20689echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20690Usually this means the macro was only invoked conditionally." >&2;}
20691   { (exit 1); exit 1; }; }
20692fi
20693if test -z "${I386ARCH_TRUE}" && test -z "${I386ARCH_FALSE}"; then
20694  { { echo "$as_me:$LINENO: error: conditional \"I386ARCH\" was never defined.
20695Usually this means the macro was only invoked conditionally." >&5
20696echo "$as_me: error: conditional \"I386ARCH\" was never defined.
20697Usually this means the macro was only invoked conditionally." >&2;}
20698   { (exit 1); exit 1; }; }
20699fi
20700
20701: ${CONFIG_STATUS=./config.status}
20702ac_clean_files_save=$ac_clean_files
20703ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20704{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20705echo "$as_me: creating $CONFIG_STATUS" >&6;}
20706cat >$CONFIG_STATUS <<_ACEOF
20707#! $SHELL
20708# Generated by $as_me.
20709# Run this file to recreate the current configuration.
20710# Compiler output produced by configure, useful for debugging
20711# configure, is in config.log if it exists.
20712
20713debug=false
20714ac_cs_recheck=false
20715ac_cs_silent=false
20716SHELL=\${CONFIG_SHELL-$SHELL}
20717_ACEOF
20718
20719cat >>$CONFIG_STATUS <<\_ACEOF
20720## --------------------- ##
20721## M4sh Initialization.  ##
20722## --------------------- ##
20723
20724# Be Bourne compatible
20725if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20726  emulate sh
20727  NULLCMD=:
20728  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20729  # is contrary to our usage.  Disable this feature.
20730  alias -g '${1+"$@"}'='"$@"'
20731elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20732  set -o posix
20733fi
20734DUALCASE=1; export DUALCASE # for MKS sh
20735
20736# Support unset when possible.
20737if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20738  as_unset=unset
20739else
20740  as_unset=false
20741fi
20742
20743
20744# Work around bugs in pre-3.0 UWIN ksh.
20745$as_unset ENV MAIL MAILPATH
20746PS1='$ '
20747PS2='> '
20748PS4='+ '
20749
20750# NLS nuisances.
20751for as_var in \
20752  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20753  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20754  LC_TELEPHONE LC_TIME
20755do
20756  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20757    eval $as_var=C; export $as_var
20758  else
20759    $as_unset $as_var
20760  fi
20761done
20762
20763# Required to use basename.
20764if expr a : '\(a\)' >/dev/null 2>&1; then
20765  as_expr=expr
20766else
20767  as_expr=false
20768fi
20769
20770if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20771  as_basename=basename
20772else
20773  as_basename=false
20774fi
20775
20776
20777# Name of the executable.
20778as_me=`$as_basename "$0" ||
20779$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20780	 X"$0" : 'X\(//\)$' \| \
20781	 X"$0" : 'X\(/\)$' \| \
20782	 .     : '\(.\)' 2>/dev/null ||
20783echo X/"$0" |
20784    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20785  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
20786  	  /^X\/\(\/\).*/{ s//\1/; q; }
20787  	  s/.*/./; q'`
20788
20789
20790# PATH needs CR, and LINENO needs CR and PATH.
20791# Avoid depending upon Character Ranges.
20792as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20793as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20794as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20795as_cr_digits='0123456789'
20796as_cr_alnum=$as_cr_Letters$as_cr_digits
20797
20798# The user is always right.
20799if test "${PATH_SEPARATOR+set}" != set; then
20800  echo "#! /bin/sh" >conf$$.sh
20801  echo  "exit 0"   >>conf$$.sh
20802  chmod +x conf$$.sh
20803  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20804    PATH_SEPARATOR=';'
20805  else
20806    PATH_SEPARATOR=:
20807  fi
20808  rm -f conf$$.sh
20809fi
20810
20811
20812  as_lineno_1=$LINENO
20813  as_lineno_2=$LINENO
20814  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20815  test "x$as_lineno_1" != "x$as_lineno_2" &&
20816  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
20817  # Find who we are.  Look in the path if we contain no path at all
20818  # relative or not.
20819  case $0 in
20820    *[\\/]* ) as_myself=$0 ;;
20821    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20822for as_dir in $PATH
20823do
20824  IFS=$as_save_IFS
20825  test -z "$as_dir" && as_dir=.
20826  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20827done
20828
20829       ;;
20830  esac
20831  # We did not find ourselves, most probably we were run as `sh COMMAND'
20832  # in which case we are not to be found in the path.
20833  if test "x$as_myself" = x; then
20834    as_myself=$0
20835  fi
20836  if test ! -f "$as_myself"; then
20837    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20838echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20839   { (exit 1); exit 1; }; }
20840  fi
20841  case $CONFIG_SHELL in
20842  '')
20843    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20844for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20845do
20846  IFS=$as_save_IFS
20847  test -z "$as_dir" && as_dir=.
20848  for as_base in sh bash ksh sh5; do
20849	 case $as_dir in
20850	 /*)
20851	   if ("$as_dir/$as_base" -c '
20852  as_lineno_1=$LINENO
20853  as_lineno_2=$LINENO
20854  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20855  test "x$as_lineno_1" != "x$as_lineno_2" &&
20856  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
20857	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20858	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20859	     CONFIG_SHELL=$as_dir/$as_base
20860	     export CONFIG_SHELL
20861	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20862	   fi;;
20863	 esac
20864       done
20865done
20866;;
20867  esac
20868
20869  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20870  # uniformly replaced by the line number.  The first 'sed' inserts a
20871  # line-number line before each line; the second 'sed' does the real
20872  # work.  The second script uses 'N' to pair each line-number line
20873  # with the numbered line, and appends trailing '-' during
20874  # substitution so that $LINENO is not a special case at line end.
20875  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20876  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
20877  sed '=' <$as_myself |
20878    sed '
20879      N
20880      s,$,-,
20881      : loop
20882      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20883      t loop
20884      s,-$,,
20885      s,^['$as_cr_digits']*\n,,
20886    ' >$as_me.lineno &&
20887  chmod +x $as_me.lineno ||
20888    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20889echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20890   { (exit 1); exit 1; }; }
20891
20892  # Don't try to exec as it changes $[0], causing all sort of problems
20893  # (the dirname of $[0] is not the place where we might find the
20894  # original and so on.  Autoconf is especially sensible to this).
20895  . ./$as_me.lineno
20896  # Exit status is that of the last command.
20897  exit
20898}
20899
20900
20901case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20902  *c*,-n*) ECHO_N= ECHO_C='
20903' ECHO_T='	' ;;
20904  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20905  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
20906esac
20907
20908if expr a : '\(a\)' >/dev/null 2>&1; then
20909  as_expr=expr
20910else
20911  as_expr=false
20912fi
20913
20914rm -f conf$$ conf$$.exe conf$$.file
20915echo >conf$$.file
20916if ln -s conf$$.file conf$$ 2>/dev/null; then
20917  # We could just check for DJGPP; but this test a) works b) is more generic
20918  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20919  if test -f conf$$.exe; then
20920    # Don't use ln at all; we don't have any links
20921    as_ln_s='cp -p'
20922  else
20923    as_ln_s='ln -s'
20924  fi
20925elif ln conf$$.file conf$$ 2>/dev/null; then
20926  as_ln_s=ln
20927else
20928  as_ln_s='cp -p'
20929fi
20930rm -f conf$$ conf$$.exe conf$$.file
20931
20932if mkdir -p . 2>/dev/null; then
20933  as_mkdir_p=:
20934else
20935  test -d ./-p && rmdir ./-p
20936  as_mkdir_p=false
20937fi
20938
20939as_executable_p="test -f"
20940
20941# Sed expression to map a string onto a valid CPP name.
20942as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20943
20944# Sed expression to map a string onto a valid variable name.
20945as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20946
20947
20948# IFS
20949# We need space, tab and new line, in precisely that order.
20950as_nl='
20951'
20952IFS=" 	$as_nl"
20953
20954# CDPATH.
20955$as_unset CDPATH
20956
20957exec 6>&1
20958
20959# Open the log real soon, to keep \$[0] and so on meaningful, and to
20960# report actual input values of CONFIG_FILES etc. instead of their
20961# values after options handling.  Logging --version etc. is OK.
20962exec 5>>config.log
20963{
20964  echo
20965  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20966## Running $as_me. ##
20967_ASBOX
20968} >&5
20969cat >&5 <<_CSEOF
20970
20971This file was extended by xf86-video-nsc $as_me 2.8.2, which was
20972generated by GNU Autoconf 2.59.  Invocation command line was
20973
20974  CONFIG_FILES    = $CONFIG_FILES
20975  CONFIG_HEADERS  = $CONFIG_HEADERS
20976  CONFIG_LINKS    = $CONFIG_LINKS
20977  CONFIG_COMMANDS = $CONFIG_COMMANDS
20978  $ $0 $@
20979
20980_CSEOF
20981echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20982echo >&5
20983_ACEOF
20984
20985# Files that config.status was made for.
20986if test -n "$ac_config_files"; then
20987  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20988fi
20989
20990if test -n "$ac_config_headers"; then
20991  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20992fi
20993
20994if test -n "$ac_config_links"; then
20995  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20996fi
20997
20998if test -n "$ac_config_commands"; then
20999  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21000fi
21001
21002cat >>$CONFIG_STATUS <<\_ACEOF
21003
21004ac_cs_usage="\
21005\`$as_me' instantiates files from templates according to the
21006current configuration.
21007
21008Usage: $0 [OPTIONS] [FILE]...
21009
21010  -h, --help       print this help, then exit
21011  -V, --version    print version number, then exit
21012  -q, --quiet      do not print progress messages
21013  -d, --debug      don't remove temporary files
21014      --recheck    update $as_me by reconfiguring in the same conditions
21015  --file=FILE[:TEMPLATE]
21016		   instantiate the configuration file FILE
21017  --header=FILE[:TEMPLATE]
21018		   instantiate the configuration header FILE
21019
21020Configuration files:
21021$config_files
21022
21023Configuration headers:
21024$config_headers
21025
21026Configuration commands:
21027$config_commands
21028
21029Report bugs to <bug-autoconf@gnu.org>."
21030_ACEOF
21031
21032cat >>$CONFIG_STATUS <<_ACEOF
21033ac_cs_version="\\
21034xf86-video-nsc config.status 2.8.2
21035configured by $0, generated by GNU Autoconf 2.59,
21036  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21037
21038Copyright (C) 2003 Free Software Foundation, Inc.
21039This config.status script is free software; the Free Software Foundation
21040gives unlimited permission to copy, distribute and modify it."
21041srcdir=$srcdir
21042INSTALL="$INSTALL"
21043_ACEOF
21044
21045cat >>$CONFIG_STATUS <<\_ACEOF
21046# If no file are specified by the user, then we need to provide default
21047# value.  By we need to know if files were specified by the user.
21048ac_need_defaults=:
21049while test $# != 0
21050do
21051  case $1 in
21052  --*=*)
21053    ac_option=`expr "x$1" : 'x\([^=]*\)='`
21054    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21055    ac_shift=:
21056    ;;
21057  -*)
21058    ac_option=$1
21059    ac_optarg=$2
21060    ac_shift=shift
21061    ;;
21062  *) # This is not an option, so the user has probably given explicit
21063     # arguments.
21064     ac_option=$1
21065     ac_need_defaults=false;;
21066  esac
21067
21068  case $ac_option in
21069  # Handling of the options.
21070_ACEOF
21071cat >>$CONFIG_STATUS <<\_ACEOF
21072  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21073    ac_cs_recheck=: ;;
21074  --version | --vers* | -V )
21075    echo "$ac_cs_version"; exit 0 ;;
21076  --he | --h)
21077    # Conflict between --help and --header
21078    { { echo "$as_me:$LINENO: error: ambiguous option: $1
21079Try \`$0 --help' for more information." >&5
21080echo "$as_me: error: ambiguous option: $1
21081Try \`$0 --help' for more information." >&2;}
21082   { (exit 1); exit 1; }; };;
21083  --help | --hel | -h )
21084    echo "$ac_cs_usage"; exit 0 ;;
21085  --debug | --d* | -d )
21086    debug=: ;;
21087  --file | --fil | --fi | --f )
21088    $ac_shift
21089    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21090    ac_need_defaults=false;;
21091  --header | --heade | --head | --hea )
21092    $ac_shift
21093    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21094    ac_need_defaults=false;;
21095  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21096  | -silent | --silent | --silen | --sile | --sil | --si | --s)
21097    ac_cs_silent=: ;;
21098
21099  # This is an error.
21100  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21101Try \`$0 --help' for more information." >&5
21102echo "$as_me: error: unrecognized option: $1
21103Try \`$0 --help' for more information." >&2;}
21104   { (exit 1); exit 1; }; } ;;
21105
21106  *) ac_config_targets="$ac_config_targets $1" ;;
21107
21108  esac
21109  shift
21110done
21111
21112ac_configure_extra_args=
21113
21114if $ac_cs_silent; then
21115  exec 6>/dev/null
21116  ac_configure_extra_args="$ac_configure_extra_args --silent"
21117fi
21118
21119_ACEOF
21120cat >>$CONFIG_STATUS <<_ACEOF
21121if \$ac_cs_recheck; then
21122  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21123  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21124fi
21125
21126_ACEOF
21127
21128cat >>$CONFIG_STATUS <<_ACEOF
21129#
21130# INIT-COMMANDS section.
21131#
21132
21133AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21134
21135_ACEOF
21136
21137
21138
21139cat >>$CONFIG_STATUS <<\_ACEOF
21140for ac_config_target in $ac_config_targets
21141do
21142  case "$ac_config_target" in
21143  # Handling of arguments.
21144  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21145  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21146  "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
21147  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21148  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21149  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21150echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21151   { (exit 1); exit 1; }; };;
21152  esac
21153done
21154
21155# If the user did not use the arguments to specify the items to instantiate,
21156# then the envvar interface is used.  Set only those that are not.
21157# We use the long form for the default assignment because of an extremely
21158# bizarre bug on SunOS 4.1.3.
21159if $ac_need_defaults; then
21160  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21161  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21162  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21163fi
21164
21165# Have a temporary directory for convenience.  Make it in the build tree
21166# simply because there is no reason to put it here, and in addition,
21167# creating and moving files from /tmp can sometimes cause problems.
21168# Create a temporary directory, and hook for its removal unless debugging.
21169$debug ||
21170{
21171  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21172  trap '{ (exit 1); exit 1; }' 1 2 13 15
21173}
21174
21175# Create a (secure) tmp directory for tmp files.
21176
21177{
21178  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21179  test -n "$tmp" && test -d "$tmp"
21180}  ||
21181{
21182  tmp=./confstat$$-$RANDOM
21183  (umask 077 && mkdir $tmp)
21184} ||
21185{
21186   echo "$me: cannot create a temporary directory in ." >&2
21187   { (exit 1); exit 1; }
21188}
21189
21190_ACEOF
21191
21192cat >>$CONFIG_STATUS <<_ACEOF
21193
21194#
21195# CONFIG_FILES section.
21196#
21197
21198# No need to generate the scripts if there are no CONFIG_FILES.
21199# This happens for instance when ./config.status config.h
21200if test -n "\$CONFIG_FILES"; then
21201  # Protect against being on the right side of a sed subst in config.status.
21202  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21203   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21204s,@SHELL@,$SHELL,;t t
21205s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21206s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21207s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21208s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21209s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21210s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21211s,@exec_prefix@,$exec_prefix,;t t
21212s,@prefix@,$prefix,;t t
21213s,@program_transform_name@,$program_transform_name,;t t
21214s,@bindir@,$bindir,;t t
21215s,@sbindir@,$sbindir,;t t
21216s,@libexecdir@,$libexecdir,;t t
21217s,@datadir@,$datadir,;t t
21218s,@sysconfdir@,$sysconfdir,;t t
21219s,@sharedstatedir@,$sharedstatedir,;t t
21220s,@localstatedir@,$localstatedir,;t t
21221s,@libdir@,$libdir,;t t
21222s,@includedir@,$includedir,;t t
21223s,@oldincludedir@,$oldincludedir,;t t
21224s,@infodir@,$infodir,;t t
21225s,@mandir@,$mandir,;t t
21226s,@build_alias@,$build_alias,;t t
21227s,@host_alias@,$host_alias,;t t
21228s,@target_alias@,$target_alias,;t t
21229s,@DEFS@,$DEFS,;t t
21230s,@ECHO_C@,$ECHO_C,;t t
21231s,@ECHO_N@,$ECHO_N,;t t
21232s,@ECHO_T@,$ECHO_T,;t t
21233s,@LIBS@,$LIBS,;t t
21234s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21235s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21236s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21237s,@CYGPATH_W@,$CYGPATH_W,;t t
21238s,@PACKAGE@,$PACKAGE,;t t
21239s,@VERSION@,$VERSION,;t t
21240s,@ACLOCAL@,$ACLOCAL,;t t
21241s,@AUTOCONF@,$AUTOCONF,;t t
21242s,@AUTOMAKE@,$AUTOMAKE,;t t
21243s,@AUTOHEADER@,$AUTOHEADER,;t t
21244s,@MAKEINFO@,$MAKEINFO,;t t
21245s,@install_sh@,$install_sh,;t t
21246s,@STRIP@,$STRIP,;t t
21247s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
21248s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
21249s,@mkdir_p@,$mkdir_p,;t t
21250s,@AWK@,$AWK,;t t
21251s,@SET_MAKE@,$SET_MAKE,;t t
21252s,@am__leading_dot@,$am__leading_dot,;t t
21253s,@AMTAR@,$AMTAR,;t t
21254s,@am__tar@,$am__tar,;t t
21255s,@am__untar@,$am__untar,;t t
21256s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
21257s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
21258s,@MAINT@,$MAINT,;t t
21259s,@build@,$build,;t t
21260s,@build_cpu@,$build_cpu,;t t
21261s,@build_vendor@,$build_vendor,;t t
21262s,@build_os@,$build_os,;t t
21263s,@host@,$host,;t t
21264s,@host_cpu@,$host_cpu,;t t
21265s,@host_vendor@,$host_vendor,;t t
21266s,@host_os@,$host_os,;t t
21267s,@CC@,$CC,;t t
21268s,@CFLAGS@,$CFLAGS,;t t
21269s,@LDFLAGS@,$LDFLAGS,;t t
21270s,@CPPFLAGS@,$CPPFLAGS,;t t
21271s,@ac_ct_CC@,$ac_ct_CC,;t t
21272s,@EXEEXT@,$EXEEXT,;t t
21273s,@OBJEXT@,$OBJEXT,;t t
21274s,@DEPDIR@,$DEPDIR,;t t
21275s,@am__include@,$am__include,;t t
21276s,@am__quote@,$am__quote,;t t
21277s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
21278s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
21279s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
21280s,@CCDEPMODE@,$CCDEPMODE,;t t
21281s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
21282s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
21283s,@SED@,$SED,;t t
21284s,@EGREP@,$EGREP,;t t
21285s,@LN_S@,$LN_S,;t t
21286s,@ECHO@,$ECHO,;t t
21287s,@AR@,$AR,;t t
21288s,@ac_ct_AR@,$ac_ct_AR,;t t
21289s,@RANLIB@,$RANLIB,;t t
21290s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21291s,@CPP@,$CPP,;t t
21292s,@CXX@,$CXX,;t t
21293s,@CXXFLAGS@,$CXXFLAGS,;t t
21294s,@ac_ct_CXX@,$ac_ct_CXX,;t t
21295s,@CXXDEPMODE@,$CXXDEPMODE,;t t
21296s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
21297s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
21298s,@CXXCPP@,$CXXCPP,;t t
21299s,@F77@,$F77,;t t
21300s,@FFLAGS@,$FFLAGS,;t t
21301s,@ac_ct_F77@,$ac_ct_F77,;t t
21302s,@LIBTOOL@,$LIBTOOL,;t t
21303s,@CCAS@,$CCAS,;t t
21304s,@CCASFLAGS@,$CCASFLAGS,;t t
21305s,@PKG_CONFIG@,$PKG_CONFIG,;t t
21306s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
21307s,@XORG_CFLAGS@,$XORG_CFLAGS,;t t
21308s,@XORG_LIBS@,$XORG_LIBS,;t t
21309s,@moduledir@,$moduledir,;t t
21310s,@I386ARCH_TRUE@,$I386ARCH_TRUE,;t t
21311s,@I386ARCH_FALSE@,$I386ARCH_FALSE,;t t
21312s,@DRIVER_NAME@,$DRIVER_NAME,;t t
21313s,@APP_MAN_SUFFIX@,$APP_MAN_SUFFIX,;t t
21314s,@LIB_MAN_SUFFIX@,$LIB_MAN_SUFFIX,;t t
21315s,@FILE_MAN_SUFFIX@,$FILE_MAN_SUFFIX,;t t
21316s,@MISC_MAN_SUFFIX@,$MISC_MAN_SUFFIX,;t t
21317s,@DRIVER_MAN_SUFFIX@,$DRIVER_MAN_SUFFIX,;t t
21318s,@ADMIN_MAN_SUFFIX@,$ADMIN_MAN_SUFFIX,;t t
21319s,@APP_MAN_DIR@,$APP_MAN_DIR,;t t
21320s,@LIB_MAN_DIR@,$LIB_MAN_DIR,;t t
21321s,@FILE_MAN_DIR@,$FILE_MAN_DIR,;t t
21322s,@MISC_MAN_DIR@,$MISC_MAN_DIR,;t t
21323s,@DRIVER_MAN_DIR@,$DRIVER_MAN_DIR,;t t
21324s,@ADMIN_MAN_DIR@,$ADMIN_MAN_DIR,;t t
21325s,@LIBOBJS@,$LIBOBJS,;t t
21326s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21327CEOF
21328
21329_ACEOF
21330
21331  cat >>$CONFIG_STATUS <<\_ACEOF
21332  # Split the substitutions into bite-sized pieces for seds with
21333  # small command number limits, like on Digital OSF/1 and HP-UX.
21334  ac_max_sed_lines=48
21335  ac_sed_frag=1 # Number of current file.
21336  ac_beg=1 # First line for current file.
21337  ac_end=$ac_max_sed_lines # Line after last line for current file.
21338  ac_more_lines=:
21339  ac_sed_cmds=
21340  while $ac_more_lines; do
21341    if test $ac_beg -gt 1; then
21342      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21343    else
21344      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21345    fi
21346    if test ! -s $tmp/subs.frag; then
21347      ac_more_lines=false
21348    else
21349      # The purpose of the label and of the branching condition is to
21350      # speed up the sed processing (if there are no `@' at all, there
21351      # is no need to browse any of the substitutions).
21352      # These are the two extra sed commands mentioned above.
21353      (echo ':t
21354  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21355      if test -z "$ac_sed_cmds"; then
21356	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21357      else
21358	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21359      fi
21360      ac_sed_frag=`expr $ac_sed_frag + 1`
21361      ac_beg=$ac_end
21362      ac_end=`expr $ac_end + $ac_max_sed_lines`
21363    fi
21364  done
21365  if test -z "$ac_sed_cmds"; then
21366    ac_sed_cmds=cat
21367  fi
21368fi # test -n "$CONFIG_FILES"
21369
21370_ACEOF
21371cat >>$CONFIG_STATUS <<\_ACEOF
21372for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21373  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21374  case $ac_file in
21375  - | *:- | *:-:* ) # input from stdin
21376	cat >$tmp/stdin
21377	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21378	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21379  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21380	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21381  * )   ac_file_in=$ac_file.in ;;
21382  esac
21383
21384  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21385  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21386$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21387	 X"$ac_file" : 'X\(//\)[^/]' \| \
21388	 X"$ac_file" : 'X\(//\)$' \| \
21389	 X"$ac_file" : 'X\(/\)' \| \
21390	 .     : '\(.\)' 2>/dev/null ||
21391echo X"$ac_file" |
21392    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21393  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21394  	  /^X\(\/\/\)$/{ s//\1/; q; }
21395  	  /^X\(\/\).*/{ s//\1/; q; }
21396  	  s/.*/./; q'`
21397  { if $as_mkdir_p; then
21398    mkdir -p "$ac_dir"
21399  else
21400    as_dir="$ac_dir"
21401    as_dirs=
21402    while test ! -d "$as_dir"; do
21403      as_dirs="$as_dir $as_dirs"
21404      as_dir=`(dirname "$as_dir") 2>/dev/null ||
21405$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21406	 X"$as_dir" : 'X\(//\)[^/]' \| \
21407	 X"$as_dir" : 'X\(//\)$' \| \
21408	 X"$as_dir" : 'X\(/\)' \| \
21409	 .     : '\(.\)' 2>/dev/null ||
21410echo X"$as_dir" |
21411    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21412  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21413  	  /^X\(\/\/\)$/{ s//\1/; q; }
21414  	  /^X\(\/\).*/{ s//\1/; q; }
21415  	  s/.*/./; q'`
21416    done
21417    test ! -n "$as_dirs" || mkdir $as_dirs
21418  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21419echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21420   { (exit 1); exit 1; }; }; }
21421
21422  ac_builddir=.
21423
21424if test "$ac_dir" != .; then
21425  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21426  # A "../" for each directory in $ac_dir_suffix.
21427  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21428else
21429  ac_dir_suffix= ac_top_builddir=
21430fi
21431
21432case $srcdir in
21433  .)  # No --srcdir option.  We are building in place.
21434    ac_srcdir=.
21435    if test -z "$ac_top_builddir"; then
21436       ac_top_srcdir=.
21437    else
21438       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21439    fi ;;
21440  [\\/]* | ?:[\\/]* )  # Absolute path.
21441    ac_srcdir=$srcdir$ac_dir_suffix;
21442    ac_top_srcdir=$srcdir ;;
21443  *) # Relative path.
21444    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21445    ac_top_srcdir=$ac_top_builddir$srcdir ;;
21446esac
21447
21448# Do not use `cd foo && pwd` to compute absolute paths, because
21449# the directories may not exist.
21450case `pwd` in
21451.) ac_abs_builddir="$ac_dir";;
21452*)
21453  case "$ac_dir" in
21454  .) ac_abs_builddir=`pwd`;;
21455  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21456  *) ac_abs_builddir=`pwd`/"$ac_dir";;
21457  esac;;
21458esac
21459case $ac_abs_builddir in
21460.) ac_abs_top_builddir=${ac_top_builddir}.;;
21461*)
21462  case ${ac_top_builddir}. in
21463  .) ac_abs_top_builddir=$ac_abs_builddir;;
21464  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21465  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21466  esac;;
21467esac
21468case $ac_abs_builddir in
21469.) ac_abs_srcdir=$ac_srcdir;;
21470*)
21471  case $ac_srcdir in
21472  .) ac_abs_srcdir=$ac_abs_builddir;;
21473  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21474  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21475  esac;;
21476esac
21477case $ac_abs_builddir in
21478.) ac_abs_top_srcdir=$ac_top_srcdir;;
21479*)
21480  case $ac_top_srcdir in
21481  .) ac_abs_top_srcdir=$ac_abs_builddir;;
21482  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21483  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21484  esac;;
21485esac
21486
21487
21488  case $INSTALL in
21489  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21490  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
21491  esac
21492
21493  if test x"$ac_file" != x-; then
21494    { echo "$as_me:$LINENO: creating $ac_file" >&5
21495echo "$as_me: creating $ac_file" >&6;}
21496    rm -f "$ac_file"
21497  fi
21498  # Let's still pretend it is `configure' which instantiates (i.e., don't
21499  # use $as_me), people would be surprised to read:
21500  #    /* config.h.  Generated by config.status.  */
21501  if test x"$ac_file" = x-; then
21502    configure_input=
21503  else
21504    configure_input="$ac_file.  "
21505  fi
21506  configure_input=$configure_input"Generated from `echo $ac_file_in |
21507				     sed 's,.*/,,'` by configure."
21508
21509  # First look for the input files in the build tree, otherwise in the
21510  # src tree.
21511  ac_file_inputs=`IFS=:
21512    for f in $ac_file_in; do
21513      case $f in
21514      -) echo $tmp/stdin ;;
21515      [\\/$]*)
21516	 # Absolute (can't be DOS-style, as IFS=:)
21517	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21518echo "$as_me: error: cannot find input file: $f" >&2;}
21519   { (exit 1); exit 1; }; }
21520	 echo "$f";;
21521      *) # Relative
21522	 if test -f "$f"; then
21523	   # Build tree
21524	   echo "$f"
21525	 elif test -f "$srcdir/$f"; then
21526	   # Source tree
21527	   echo "$srcdir/$f"
21528	 else
21529	   # /dev/null tree
21530	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21531echo "$as_me: error: cannot find input file: $f" >&2;}
21532   { (exit 1); exit 1; }; }
21533	 fi;;
21534      esac
21535    done` || { (exit 1); exit 1; }
21536_ACEOF
21537cat >>$CONFIG_STATUS <<_ACEOF
21538  sed "$ac_vpsub
21539$extrasub
21540_ACEOF
21541cat >>$CONFIG_STATUS <<\_ACEOF
21542:t
21543/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21544s,@configure_input@,$configure_input,;t t
21545s,@srcdir@,$ac_srcdir,;t t
21546s,@abs_srcdir@,$ac_abs_srcdir,;t t
21547s,@top_srcdir@,$ac_top_srcdir,;t t
21548s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21549s,@builddir@,$ac_builddir,;t t
21550s,@abs_builddir@,$ac_abs_builddir,;t t
21551s,@top_builddir@,$ac_top_builddir,;t t
21552s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21553s,@INSTALL@,$ac_INSTALL,;t t
21554" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21555  rm -f $tmp/stdin
21556  if test x"$ac_file" != x-; then
21557    mv $tmp/out $ac_file
21558  else
21559    cat $tmp/out
21560    rm -f $tmp/out
21561  fi
21562
21563done
21564_ACEOF
21565cat >>$CONFIG_STATUS <<\_ACEOF
21566
21567#
21568# CONFIG_HEADER section.
21569#
21570
21571# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21572# NAME is the cpp macro being defined and VALUE is the value it is being given.
21573#
21574# ac_d sets the value in "#define NAME VALUE" lines.
21575ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
21576ac_dB='[	 ].*$,\1#\2'
21577ac_dC=' '
21578ac_dD=',;t'
21579# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21580ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
21581ac_uB='$,\1#\2define\3'
21582ac_uC=' '
21583ac_uD=',;t'
21584
21585for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
21586  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21587  case $ac_file in
21588  - | *:- | *:-:* ) # input from stdin
21589	cat >$tmp/stdin
21590	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21591	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21592  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21593	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21594  * )   ac_file_in=$ac_file.in ;;
21595  esac
21596
21597  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
21598echo "$as_me: creating $ac_file" >&6;}
21599
21600  # First look for the input files in the build tree, otherwise in the
21601  # src tree.
21602  ac_file_inputs=`IFS=:
21603    for f in $ac_file_in; do
21604      case $f in
21605      -) echo $tmp/stdin ;;
21606      [\\/$]*)
21607	 # Absolute (can't be DOS-style, as IFS=:)
21608	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21609echo "$as_me: error: cannot find input file: $f" >&2;}
21610   { (exit 1); exit 1; }; }
21611	 # Do quote $f, to prevent DOS paths from being IFS'd.
21612	 echo "$f";;
21613      *) # Relative
21614	 if test -f "$f"; then
21615	   # Build tree
21616	   echo "$f"
21617	 elif test -f "$srcdir/$f"; then
21618	   # Source tree
21619	   echo "$srcdir/$f"
21620	 else
21621	   # /dev/null tree
21622	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21623echo "$as_me: error: cannot find input file: $f" >&2;}
21624   { (exit 1); exit 1; }; }
21625	 fi;;
21626      esac
21627    done` || { (exit 1); exit 1; }
21628  # Remove the trailing spaces.
21629  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
21630
21631_ACEOF
21632
21633# Transform confdefs.h into two sed scripts, `conftest.defines' and
21634# `conftest.undefs', that substitutes the proper values into
21635# config.h.in to produce config.h.  The first handles `#define'
21636# templates, and the second `#undef' templates.
21637# And first: Protect against being on the right side of a sed subst in
21638# config.status.  Protect against being in an unquoted here document
21639# in config.status.
21640rm -f conftest.defines conftest.undefs
21641# Using a here document instead of a string reduces the quoting nightmare.
21642# Putting comments in sed scripts is not portable.
21643#
21644# `end' is used to avoid that the second main sed command (meant for
21645# 0-ary CPP macros) applies to n-ary macro definitions.
21646# See the Autoconf documentation for `clear'.
21647cat >confdef2sed.sed <<\_ACEOF
21648s/[\\&,]/\\&/g
21649s,[\\$`],\\&,g
21650t clear
21651: clear
21652s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
21653t end
21654s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
21655: end
21656_ACEOF
21657# If some macros were called several times there might be several times
21658# the same #defines, which is useless.  Nevertheless, we may not want to
21659# sort them, since we want the *last* AC-DEFINE to be honored.
21660uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21661sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21662rm -f confdef2sed.sed
21663
21664# This sed command replaces #undef with comments.  This is necessary, for
21665# example, in the case of _POSIX_SOURCE, which is predefined and required
21666# on some systems where configure will not decide to define it.
21667cat >>conftest.undefs <<\_ACEOF
21668s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
21669_ACEOF
21670
21671# Break up conftest.defines because some shells have a limit on the size
21672# of here documents, and old seds have small limits too (100 cmds).
21673echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
21674echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
21675echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21676echo '  :' >>$CONFIG_STATUS
21677rm -f conftest.tail
21678while grep . conftest.defines >/dev/null
21679do
21680  # Write a limited-size here document to $tmp/defines.sed.
21681  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21682  # Speed up: don't consider the non `#define' lines.
21683  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
21684  # Work around the forget-to-reset-the-flag bug.
21685  echo 't clr' >>$CONFIG_STATUS
21686  echo ': clr' >>$CONFIG_STATUS
21687  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21688  echo 'CEOF
21689  sed -f $tmp/defines.sed $tmp/in >$tmp/out
21690  rm -f $tmp/in
21691  mv $tmp/out $tmp/in
21692' >>$CONFIG_STATUS
21693  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21694  rm -f conftest.defines
21695  mv conftest.tail conftest.defines
21696done
21697rm -f conftest.defines
21698echo '  fi # grep' >>$CONFIG_STATUS
21699echo >>$CONFIG_STATUS
21700
21701# Break up conftest.undefs because some shells have a limit on the size
21702# of here documents, and old seds have small limits too (100 cmds).
21703echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
21704rm -f conftest.tail
21705while grep . conftest.undefs >/dev/null
21706do
21707  # Write a limited-size here document to $tmp/undefs.sed.
21708  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21709  # Speed up: don't consider the non `#undef'
21710  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
21711  # Work around the forget-to-reset-the-flag bug.
21712  echo 't clr' >>$CONFIG_STATUS
21713  echo ': clr' >>$CONFIG_STATUS
21714  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21715  echo 'CEOF
21716  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21717  rm -f $tmp/in
21718  mv $tmp/out $tmp/in
21719' >>$CONFIG_STATUS
21720  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21721  rm -f conftest.undefs
21722  mv conftest.tail conftest.undefs
21723done
21724rm -f conftest.undefs
21725
21726cat >>$CONFIG_STATUS <<\_ACEOF
21727  # Let's still pretend it is `configure' which instantiates (i.e., don't
21728  # use $as_me), people would be surprised to read:
21729  #    /* config.h.  Generated by config.status.  */
21730  if test x"$ac_file" = x-; then
21731    echo "/* Generated by configure.  */" >$tmp/config.h
21732  else
21733    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
21734  fi
21735  cat $tmp/in >>$tmp/config.h
21736  rm -f $tmp/in
21737  if test x"$ac_file" != x-; then
21738    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21739      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21740echo "$as_me: $ac_file is unchanged" >&6;}
21741    else
21742      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21743$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21744	 X"$ac_file" : 'X\(//\)[^/]' \| \
21745	 X"$ac_file" : 'X\(//\)$' \| \
21746	 X"$ac_file" : 'X\(/\)' \| \
21747	 .     : '\(.\)' 2>/dev/null ||
21748echo X"$ac_file" |
21749    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21750  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21751  	  /^X\(\/\/\)$/{ s//\1/; q; }
21752  	  /^X\(\/\).*/{ s//\1/; q; }
21753  	  s/.*/./; q'`
21754      { if $as_mkdir_p; then
21755    mkdir -p "$ac_dir"
21756  else
21757    as_dir="$ac_dir"
21758    as_dirs=
21759    while test ! -d "$as_dir"; do
21760      as_dirs="$as_dir $as_dirs"
21761      as_dir=`(dirname "$as_dir") 2>/dev/null ||
21762$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21763	 X"$as_dir" : 'X\(//\)[^/]' \| \
21764	 X"$as_dir" : 'X\(//\)$' \| \
21765	 X"$as_dir" : 'X\(/\)' \| \
21766	 .     : '\(.\)' 2>/dev/null ||
21767echo X"$as_dir" |
21768    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21769  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21770  	  /^X\(\/\/\)$/{ s//\1/; q; }
21771  	  /^X\(\/\).*/{ s//\1/; q; }
21772  	  s/.*/./; q'`
21773    done
21774    test ! -n "$as_dirs" || mkdir $as_dirs
21775  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21776echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21777   { (exit 1); exit 1; }; }; }
21778
21779      rm -f $ac_file
21780      mv $tmp/config.h $ac_file
21781    fi
21782  else
21783    cat $tmp/config.h
21784    rm -f $tmp/config.h
21785  fi
21786# Compute $ac_file's index in $config_headers.
21787_am_stamp_count=1
21788for _am_header in $config_headers :; do
21789  case $_am_header in
21790    $ac_file | $ac_file:* )
21791      break ;;
21792    * )
21793      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21794  esac
21795done
21796echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
21797$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21798	 X$ac_file : 'X\(//\)[^/]' \| \
21799	 X$ac_file : 'X\(//\)$' \| \
21800	 X$ac_file : 'X\(/\)' \| \
21801	 .     : '\(.\)' 2>/dev/null ||
21802echo X$ac_file |
21803    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21804  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21805  	  /^X\(\/\/\)$/{ s//\1/; q; }
21806  	  /^X\(\/\).*/{ s//\1/; q; }
21807  	  s/.*/./; q'`/stamp-h$_am_stamp_count
21808done
21809_ACEOF
21810cat >>$CONFIG_STATUS <<\_ACEOF
21811
21812#
21813# CONFIG_COMMANDS section.
21814#
21815for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21816  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21817  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21818  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21819$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21820	 X"$ac_dest" : 'X\(//\)[^/]' \| \
21821	 X"$ac_dest" : 'X\(//\)$' \| \
21822	 X"$ac_dest" : 'X\(/\)' \| \
21823	 .     : '\(.\)' 2>/dev/null ||
21824echo X"$ac_dest" |
21825    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21826  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21827  	  /^X\(\/\/\)$/{ s//\1/; q; }
21828  	  /^X\(\/\).*/{ s//\1/; q; }
21829  	  s/.*/./; q'`
21830  { if $as_mkdir_p; then
21831    mkdir -p "$ac_dir"
21832  else
21833    as_dir="$ac_dir"
21834    as_dirs=
21835    while test ! -d "$as_dir"; do
21836      as_dirs="$as_dir $as_dirs"
21837      as_dir=`(dirname "$as_dir") 2>/dev/null ||
21838$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21839	 X"$as_dir" : 'X\(//\)[^/]' \| \
21840	 X"$as_dir" : 'X\(//\)$' \| \
21841	 X"$as_dir" : 'X\(/\)' \| \
21842	 .     : '\(.\)' 2>/dev/null ||
21843echo X"$as_dir" |
21844    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21845  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21846  	  /^X\(\/\/\)$/{ s//\1/; q; }
21847  	  /^X\(\/\).*/{ s//\1/; q; }
21848  	  s/.*/./; q'`
21849    done
21850    test ! -n "$as_dirs" || mkdir $as_dirs
21851  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21852echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21853   { (exit 1); exit 1; }; }; }
21854
21855  ac_builddir=.
21856
21857if test "$ac_dir" != .; then
21858  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21859  # A "../" for each directory in $ac_dir_suffix.
21860  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21861else
21862  ac_dir_suffix= ac_top_builddir=
21863fi
21864
21865case $srcdir in
21866  .)  # No --srcdir option.  We are building in place.
21867    ac_srcdir=.
21868    if test -z "$ac_top_builddir"; then
21869       ac_top_srcdir=.
21870    else
21871       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21872    fi ;;
21873  [\\/]* | ?:[\\/]* )  # Absolute path.
21874    ac_srcdir=$srcdir$ac_dir_suffix;
21875    ac_top_srcdir=$srcdir ;;
21876  *) # Relative path.
21877    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21878    ac_top_srcdir=$ac_top_builddir$srcdir ;;
21879esac
21880
21881# Do not use `cd foo && pwd` to compute absolute paths, because
21882# the directories may not exist.
21883case `pwd` in
21884.) ac_abs_builddir="$ac_dir";;
21885*)
21886  case "$ac_dir" in
21887  .) ac_abs_builddir=`pwd`;;
21888  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21889  *) ac_abs_builddir=`pwd`/"$ac_dir";;
21890  esac;;
21891esac
21892case $ac_abs_builddir in
21893.) ac_abs_top_builddir=${ac_top_builddir}.;;
21894*)
21895  case ${ac_top_builddir}. in
21896  .) ac_abs_top_builddir=$ac_abs_builddir;;
21897  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21898  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21899  esac;;
21900esac
21901case $ac_abs_builddir in
21902.) ac_abs_srcdir=$ac_srcdir;;
21903*)
21904  case $ac_srcdir in
21905  .) ac_abs_srcdir=$ac_abs_builddir;;
21906  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21907  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21908  esac;;
21909esac
21910case $ac_abs_builddir in
21911.) ac_abs_top_srcdir=$ac_top_srcdir;;
21912*)
21913  case $ac_top_srcdir in
21914  .) ac_abs_top_srcdir=$ac_abs_builddir;;
21915  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21916  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21917  esac;;
21918esac
21919
21920
21921  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21922echo "$as_me: executing $ac_dest commands" >&6;}
21923  case $ac_dest in
21924    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21925  # Strip MF so we end up with the name of the file.
21926  mf=`echo "$mf" | sed -e 's/:.*$//'`
21927  # Check whether this is an Automake generated Makefile or not.
21928  # We used to match only the files named `Makefile.in', but
21929  # some people rename them; so instead we look at the file content.
21930  # Grep'ing the first line is not enough: some people post-process
21931  # each Makefile.in and add a new line on top of each file to say so.
21932  # So let's grep whole file.
21933  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21934    dirpart=`(dirname "$mf") 2>/dev/null ||
21935$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21936	 X"$mf" : 'X\(//\)[^/]' \| \
21937	 X"$mf" : 'X\(//\)$' \| \
21938	 X"$mf" : 'X\(/\)' \| \
21939	 .     : '\(.\)' 2>/dev/null ||
21940echo X"$mf" |
21941    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21942  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21943  	  /^X\(\/\/\)$/{ s//\1/; q; }
21944  	  /^X\(\/\).*/{ s//\1/; q; }
21945  	  s/.*/./; q'`
21946  else
21947    continue
21948  fi
21949  # Extract the definition of DEPDIR, am__include, and am__quote
21950  # from the Makefile without running `make'.
21951  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21952  test -z "$DEPDIR" && continue
21953  am__include=`sed -n 's/^am__include = //p' < "$mf"`
21954  test -z "am__include" && continue
21955  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21956  # When using ansi2knr, U may be empty or an underscore; expand it
21957  U=`sed -n 's/^U = //p' < "$mf"`
21958  # Find all dependency output files, they are included files with
21959  # $(DEPDIR) in their names.  We invoke sed twice because it is the
21960  # simplest approach to changing $(DEPDIR) to its actual value in the
21961  # expansion.
21962  for file in `sed -n "
21963    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21964       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21965    # Make sure the directory exists.
21966    test -f "$dirpart/$file" && continue
21967    fdir=`(dirname "$file") 2>/dev/null ||
21968$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21969	 X"$file" : 'X\(//\)[^/]' \| \
21970	 X"$file" : 'X\(//\)$' \| \
21971	 X"$file" : 'X\(/\)' \| \
21972	 .     : '\(.\)' 2>/dev/null ||
21973echo X"$file" |
21974    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21975  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21976  	  /^X\(\/\/\)$/{ s//\1/; q; }
21977  	  /^X\(\/\).*/{ s//\1/; q; }
21978  	  s/.*/./; q'`
21979    { if $as_mkdir_p; then
21980    mkdir -p $dirpart/$fdir
21981  else
21982    as_dir=$dirpart/$fdir
21983    as_dirs=
21984    while test ! -d "$as_dir"; do
21985      as_dirs="$as_dir $as_dirs"
21986      as_dir=`(dirname "$as_dir") 2>/dev/null ||
21987$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21988	 X"$as_dir" : 'X\(//\)[^/]' \| \
21989	 X"$as_dir" : 'X\(//\)$' \| \
21990	 X"$as_dir" : 'X\(/\)' \| \
21991	 .     : '\(.\)' 2>/dev/null ||
21992echo X"$as_dir" |
21993    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21994  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21995  	  /^X\(\/\/\)$/{ s//\1/; q; }
21996  	  /^X\(\/\).*/{ s//\1/; q; }
21997  	  s/.*/./; q'`
21998    done
21999    test ! -n "$as_dirs" || mkdir $as_dirs
22000  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
22001echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
22002   { (exit 1); exit 1; }; }; }
22003
22004    # echo "creating $dirpart/$file"
22005    echo '# dummy' > "$dirpart/$file"
22006  done
22007done
22008 ;;
22009  esac
22010done
22011_ACEOF
22012
22013cat >>$CONFIG_STATUS <<\_ACEOF
22014
22015{ (exit 0); exit 0; }
22016_ACEOF
22017chmod +x $CONFIG_STATUS
22018ac_clean_files=$ac_clean_files_save
22019
22020
22021# configure is writing to config.log, and then calls config.status.
22022# config.status does its own redirection, appending to config.log.
22023# Unfortunately, on DOS this fails, as config.log is still kept open
22024# by configure, so config.status won't be able to write to it; its
22025# output is simply discarded.  So we exec the FD to /dev/null,
22026# effectively closing config.log, so it can be properly (re)opened and
22027# appended to by config.status.  When coming back to configure, we
22028# need to make the FD available again.
22029if test "$no_create" != yes; then
22030  ac_cs_success=:
22031  ac_config_status_args=
22032  test "$silent" = yes &&
22033    ac_config_status_args="$ac_config_status_args --quiet"
22034  exec 5>/dev/null
22035  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22036  exec 5>>config.log
22037  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22038  # would make configure fail if this is the last instruction.
22039  $ac_cs_success || { (exit 1); exit 1; }
22040fi
22041
22042