1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for Quesa 1.8.
4#
5# Report bugs to <quesa_list@designcommunity.com>.
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='Quesa'
425PACKAGE_TARNAME='quesa'
426PACKAGE_VERSION='1.8'
427PACKAGE_STRING='Quesa 1.8'
428PACKAGE_BUGREPORT='quesa_list@designcommunity.com'
429
430ac_unique_file="Source/Core/Glue/QD3DCamera.c"
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 AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS GL_CFLAGS GL_LIBS 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
949
950#
951# Report the --help message.
952#
953if test "$ac_init_help" = "long"; then
954  # Omit some internal or obsolete options to make the list less imposing.
955  # This message is too long to be a string in the A/UX 3.1 sh.
956  cat <<_ACEOF
957\`configure' configures Quesa 1.8 to adapt to many kinds of systems.
958
959Usage: $0 [OPTION]... [VAR=VALUE]...
960
961To assign environment variables (e.g., CC, CFLAGS...), specify them as
962VAR=VALUE.  See below for descriptions of some of the useful variables.
963
964Defaults for the options are specified in brackets.
965
966Configuration:
967  -h, --help              display this help and exit
968      --help=short        display options specific to this package
969      --help=recursive    display the short help of all the included packages
970  -V, --version           display version information and exit
971  -q, --quiet, --silent   do not print \`checking...' messages
972      --cache-file=FILE   cache test results in FILE [disabled]
973  -C, --config-cache      alias for \`--cache-file=config.cache'
974  -n, --no-create         do not create output files
975      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
976
977_ACEOF
978
979  cat <<_ACEOF
980Installation directories:
981  --prefix=PREFIX         install architecture-independent files in PREFIX
982			  [$ac_default_prefix]
983  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
984			  [PREFIX]
985
986By default, \`make install' will install all the files in
987\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
988an installation prefix other than \`$ac_default_prefix' using \`--prefix',
989for instance \`--prefix=\$HOME'.
990
991For better control, use the options below.
992
993Fine tuning of the installation directories:
994  --bindir=DIR           user executables [EPREFIX/bin]
995  --sbindir=DIR          system admin executables [EPREFIX/sbin]
996  --libexecdir=DIR       program executables [EPREFIX/libexec]
997  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
998  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
999  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1000  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1001  --libdir=DIR           object code libraries [EPREFIX/lib]
1002  --includedir=DIR       C header files [PREFIX/include]
1003  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1004  --infodir=DIR          info documentation [PREFIX/info]
1005  --mandir=DIR           man documentation [PREFIX/man]
1006_ACEOF
1007
1008  cat <<\_ACEOF
1009
1010Program names:
1011  --program-prefix=PREFIX            prepend PREFIX to installed program names
1012  --program-suffix=SUFFIX            append SUFFIX to installed program names
1013  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1014
1015X features:
1016  --x-includes=DIR    X include files are in DIR
1017  --x-libraries=DIR   X library files are in DIR
1018
1019System types:
1020  --build=BUILD     configure for building on BUILD [guessed]
1021  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1022_ACEOF
1023fi
1024
1025if test -n "$ac_init_help"; then
1026  case $ac_init_help in
1027     short | recursive ) echo "Configuration of Quesa 1.8:";;
1028   esac
1029  cat <<\_ACEOF
1030
1031Optional Features:
1032  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1033  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1034  --enable-maintainer-mode enable make rules and dependencies not useful
1035                          (and sometimes confusing) to the casual installer
1036  --enable-shared[=PKGS]
1037                          build shared libraries [default=yes]
1038  --enable-static[=PKGS]
1039                          build static libraries [default=yes]
1040  --enable-fast-install[=PKGS]
1041                          optimize for fast installation [default=yes]
1042  --disable-libtool-lock  avoid locking (might break parallel builds)
1043$with_Mesa_help_string
1044
1045Optional Packages:
1046  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1047  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1048  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1049  --with-pic              try to use only PIC/non-PIC objects [default=use
1050                          both]
1051  --with-tags[=TAGS]
1052                          include additional configurations [automatic]
1053  --with-x                use the X Window System
1054Prefer the Mesa library over a vendors native OpenGL library (default=yes)
1055
1056Some influential environment variables:
1057  CC          C compiler command
1058  CFLAGS      C compiler flags
1059  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1060              nonstandard directory <lib dir>
1061  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1062              headers in a nonstandard directory <include dir>
1063  CPP         C preprocessor
1064  CXX         C++ compiler command
1065  CXXFLAGS    C++ compiler flags
1066  CXXCPP      C++ preprocessor
1067  F77         Fortran 77 compiler command
1068  FFLAGS      Fortran 77 compiler flags
1069
1070Use these variables to override the choices made by `configure' or to help
1071it to find libraries and programs with nonstandard names/locations.
1072
1073Report bugs to <quesa_list@designcommunity.com>.
1074_ACEOF
1075fi
1076
1077if test "$ac_init_help" = "recursive"; then
1078  # If there are subdirs, report their specific --help.
1079  ac_popdir=`pwd`
1080  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1081    test -d $ac_dir || continue
1082    ac_builddir=.
1083
1084if test "$ac_dir" != .; then
1085  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1086  # A "../" for each directory in $ac_dir_suffix.
1087  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1088else
1089  ac_dir_suffix= ac_top_builddir=
1090fi
1091
1092case $srcdir in
1093  .)  # No --srcdir option.  We are building in place.
1094    ac_srcdir=.
1095    if test -z "$ac_top_builddir"; then
1096       ac_top_srcdir=.
1097    else
1098       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1099    fi ;;
1100  [\\/]* | ?:[\\/]* )  # Absolute path.
1101    ac_srcdir=$srcdir$ac_dir_suffix;
1102    ac_top_srcdir=$srcdir ;;
1103  *) # Relative path.
1104    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1105    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1106esac
1107
1108# Do not use `cd foo && pwd` to compute absolute paths, because
1109# the directories may not exist.
1110case `pwd` in
1111.) ac_abs_builddir="$ac_dir";;
1112*)
1113  case "$ac_dir" in
1114  .) ac_abs_builddir=`pwd`;;
1115  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1116  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1117  esac;;
1118esac
1119case $ac_abs_builddir in
1120.) ac_abs_top_builddir=${ac_top_builddir}.;;
1121*)
1122  case ${ac_top_builddir}. in
1123  .) ac_abs_top_builddir=$ac_abs_builddir;;
1124  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1125  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1126  esac;;
1127esac
1128case $ac_abs_builddir in
1129.) ac_abs_srcdir=$ac_srcdir;;
1130*)
1131  case $ac_srcdir in
1132  .) ac_abs_srcdir=$ac_abs_builddir;;
1133  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1134  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1135  esac;;
1136esac
1137case $ac_abs_builddir in
1138.) ac_abs_top_srcdir=$ac_top_srcdir;;
1139*)
1140  case $ac_top_srcdir in
1141  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1142  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1143  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1144  esac;;
1145esac
1146
1147    cd $ac_dir
1148    # Check for guested configure; otherwise get Cygnus style configure.
1149    if test -f $ac_srcdir/configure.gnu; then
1150      echo
1151      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1152    elif test -f $ac_srcdir/configure; then
1153      echo
1154      $SHELL $ac_srcdir/configure  --help=recursive
1155    elif test -f $ac_srcdir/configure.ac ||
1156	   test -f $ac_srcdir/configure.in; then
1157      echo
1158      $ac_configure --help
1159    else
1160      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1161    fi
1162    cd "$ac_popdir"
1163  done
1164fi
1165
1166test -n "$ac_init_help" && exit 0
1167if $ac_init_version; then
1168  cat <<\_ACEOF
1169Quesa configure 1.8
1170generated by GNU Autoconf 2.59
1171
1172Copyright (C) 2003 Free Software Foundation, Inc.
1173This configure script is free software; the Free Software Foundation
1174gives unlimited permission to copy, distribute and modify it.
1175_ACEOF
1176  exit 0
1177fi
1178exec 5>config.log
1179cat >&5 <<_ACEOF
1180This file contains any messages produced by compilers while
1181running configure, to aid debugging if configure makes a mistake.
1182
1183It was created by Quesa $as_me 1.8, which was
1184generated by GNU Autoconf 2.59.  Invocation command line was
1185
1186  $ $0 $@
1187
1188_ACEOF
1189{
1190cat <<_ASUNAME
1191## --------- ##
1192## Platform. ##
1193## --------- ##
1194
1195hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1196uname -m = `(uname -m) 2>/dev/null || echo unknown`
1197uname -r = `(uname -r) 2>/dev/null || echo unknown`
1198uname -s = `(uname -s) 2>/dev/null || echo unknown`
1199uname -v = `(uname -v) 2>/dev/null || echo unknown`
1200
1201/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1202/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1203
1204/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1205/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1206/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1207hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1208/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1209/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1210/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1211
1212_ASUNAME
1213
1214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1215for as_dir in $PATH
1216do
1217  IFS=$as_save_IFS
1218  test -z "$as_dir" && as_dir=.
1219  echo "PATH: $as_dir"
1220done
1221
1222} >&5
1223
1224cat >&5 <<_ACEOF
1225
1226
1227## ----------- ##
1228## Core tests. ##
1229## ----------- ##
1230
1231_ACEOF
1232
1233
1234# Keep a trace of the command line.
1235# Strip out --no-create and --no-recursion so they do not pile up.
1236# Strip out --silent because we don't want to record it for future runs.
1237# Also quote any args containing shell meta-characters.
1238# Make two passes to allow for proper duplicate-argument suppression.
1239ac_configure_args=
1240ac_configure_args0=
1241ac_configure_args1=
1242ac_sep=
1243ac_must_keep_next=false
1244for ac_pass in 1 2
1245do
1246  for ac_arg
1247  do
1248    case $ac_arg in
1249    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1250    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1251    | -silent | --silent | --silen | --sile | --sil)
1252      continue ;;
1253    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1254      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1255    esac
1256    case $ac_pass in
1257    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1258    2)
1259      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1260      if test $ac_must_keep_next = true; then
1261	ac_must_keep_next=false # Got value, back to normal.
1262      else
1263	case $ac_arg in
1264	  *=* | --config-cache | -C | -disable-* | --disable-* \
1265	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1266	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1267	  | -with-* | --with-* | -without-* | --without-* | --x)
1268	    case "$ac_configure_args0 " in
1269	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1270	    esac
1271	    ;;
1272	  -* ) ac_must_keep_next=true ;;
1273	esac
1274      fi
1275      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1276      # Get rid of the leading space.
1277      ac_sep=" "
1278      ;;
1279    esac
1280  done
1281done
1282$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1283$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1284
1285# When interrupted or exit'd, cleanup temporary files, and complete
1286# config.log.  We remove comments because anyway the quotes in there
1287# would cause problems or look ugly.
1288# WARNING: Be sure not to use single quotes in there, as some shells,
1289# such as our DU 5.0 friend, will then `close' the trap.
1290trap 'exit_status=$?
1291  # Save into config.log some information that might help in debugging.
1292  {
1293    echo
1294
1295    cat <<\_ASBOX
1296## ---------------- ##
1297## Cache variables. ##
1298## ---------------- ##
1299_ASBOX
1300    echo
1301    # The following way of writing the cache mishandles newlines in values,
1302{
1303  (set) 2>&1 |
1304    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1305    *ac_space=\ *)
1306      sed -n \
1307	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1308	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1309      ;;
1310    *)
1311      sed -n \
1312	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1313      ;;
1314    esac;
1315}
1316    echo
1317
1318    cat <<\_ASBOX
1319## ----------------- ##
1320## Output variables. ##
1321## ----------------- ##
1322_ASBOX
1323    echo
1324    for ac_var in $ac_subst_vars
1325    do
1326      eval ac_val=$`echo $ac_var`
1327      echo "$ac_var='"'"'$ac_val'"'"'"
1328    done | sort
1329    echo
1330
1331    if test -n "$ac_subst_files"; then
1332      cat <<\_ASBOX
1333## ------------- ##
1334## Output files. ##
1335## ------------- ##
1336_ASBOX
1337      echo
1338      for ac_var in $ac_subst_files
1339      do
1340	eval ac_val=$`echo $ac_var`
1341	echo "$ac_var='"'"'$ac_val'"'"'"
1342      done | sort
1343      echo
1344    fi
1345
1346    if test -s confdefs.h; then
1347      cat <<\_ASBOX
1348## ----------- ##
1349## confdefs.h. ##
1350## ----------- ##
1351_ASBOX
1352      echo
1353      sed "/^$/d" confdefs.h | sort
1354      echo
1355    fi
1356    test "$ac_signal" != 0 &&
1357      echo "$as_me: caught signal $ac_signal"
1358    echo "$as_me: exit $exit_status"
1359  } >&5
1360  rm -f core *.core &&
1361  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1362    exit $exit_status
1363     ' 0
1364for ac_signal in 1 2 13 15; do
1365  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1366done
1367ac_signal=0
1368
1369# confdefs.h avoids OS command line length limits that DEFS can exceed.
1370rm -rf conftest* confdefs.h
1371# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1372echo >confdefs.h
1373
1374# Predefined preprocessor variables.
1375
1376cat >>confdefs.h <<_ACEOF
1377#define PACKAGE_NAME "$PACKAGE_NAME"
1378_ACEOF
1379
1380
1381cat >>confdefs.h <<_ACEOF
1382#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1383_ACEOF
1384
1385
1386cat >>confdefs.h <<_ACEOF
1387#define PACKAGE_VERSION "$PACKAGE_VERSION"
1388_ACEOF
1389
1390
1391cat >>confdefs.h <<_ACEOF
1392#define PACKAGE_STRING "$PACKAGE_STRING"
1393_ACEOF
1394
1395
1396cat >>confdefs.h <<_ACEOF
1397#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1398_ACEOF
1399
1400
1401# Let the site file select an alternate cache file if it wants to.
1402# Prefer explicitly selected file to automatically selected ones.
1403if test -z "$CONFIG_SITE"; then
1404  if test "x$prefix" != xNONE; then
1405    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1406  else
1407    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1408  fi
1409fi
1410for ac_site_file in $CONFIG_SITE; do
1411  if test -r "$ac_site_file"; then
1412    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1413echo "$as_me: loading site script $ac_site_file" >&6;}
1414    sed 's/^/| /' "$ac_site_file" >&5
1415    . "$ac_site_file"
1416  fi
1417done
1418
1419if test -r "$cache_file"; then
1420  # Some versions of bash will fail to source /dev/null (special
1421  # files actually), so we avoid doing that.
1422  if test -f "$cache_file"; then
1423    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1424echo "$as_me: loading cache $cache_file" >&6;}
1425    case $cache_file in
1426      [\\/]* | ?:[\\/]* ) . $cache_file;;
1427      *)                      . ./$cache_file;;
1428    esac
1429  fi
1430else
1431  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1432echo "$as_me: creating cache $cache_file" >&6;}
1433  >$cache_file
1434fi
1435
1436# Check that the precious variables saved in the cache have kept the same
1437# value.
1438ac_cache_corrupted=false
1439for ac_var in `(set) 2>&1 |
1440	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1441  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1442  eval ac_new_set=\$ac_env_${ac_var}_set
1443  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1444  eval ac_new_val="\$ac_env_${ac_var}_value"
1445  case $ac_old_set,$ac_new_set in
1446    set,)
1447      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1448echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1449      ac_cache_corrupted=: ;;
1450    ,set)
1451      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1452echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1453      ac_cache_corrupted=: ;;
1454    ,);;
1455    *)
1456      if test "x$ac_old_val" != "x$ac_new_val"; then
1457	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1458echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1459	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1460echo "$as_me:   former value:  $ac_old_val" >&2;}
1461	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1462echo "$as_me:   current value: $ac_new_val" >&2;}
1463	ac_cache_corrupted=:
1464      fi;;
1465  esac
1466  # Pass precious variables to config.status.
1467  if test "$ac_new_set" = set; then
1468    case $ac_new_val in
1469    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1470      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1471    *) ac_arg=$ac_var=$ac_new_val ;;
1472    esac
1473    case " $ac_configure_args " in
1474      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1475      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1476    esac
1477  fi
1478done
1479if $ac_cache_corrupted; then
1480  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1481echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1482  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1483echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1484   { (exit 1); exit 1; }; }
1485fi
1486
1487ac_ext=c
1488ac_cpp='$CPP $CPPFLAGS'
1489ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1490ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1491ac_compiler_gnu=$ac_cv_c_compiler_gnu
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521am__api_version="1.7"
1522ac_aux_dir=
1523for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1524  if test -f $ac_dir/install-sh; then
1525    ac_aux_dir=$ac_dir
1526    ac_install_sh="$ac_aux_dir/install-sh -c"
1527    break
1528  elif test -f $ac_dir/install.sh; then
1529    ac_aux_dir=$ac_dir
1530    ac_install_sh="$ac_aux_dir/install.sh -c"
1531    break
1532  elif test -f $ac_dir/shtool; then
1533    ac_aux_dir=$ac_dir
1534    ac_install_sh="$ac_aux_dir/shtool install -c"
1535    break
1536  fi
1537done
1538if test -z "$ac_aux_dir"; then
1539  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1540echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1541   { (exit 1); exit 1; }; }
1542fi
1543ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1544ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1545ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1546
1547# Find a good install program.  We prefer a C program (faster),
1548# so one script is as good as another.  But avoid the broken or
1549# incompatible versions:
1550# SysV /etc/install, /usr/sbin/install
1551# SunOS /usr/etc/install
1552# IRIX /sbin/install
1553# AIX /bin/install
1554# AmigaOS /C/install, which installs bootblocks on floppy discs
1555# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1556# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1557# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1558# OS/2's system install, which has a completely different semantic
1559# ./install, which can be erroneously created by make from ./install.sh.
1560echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1561echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1562if test -z "$INSTALL"; then
1563if test "${ac_cv_path_install+set}" = set; then
1564  echo $ECHO_N "(cached) $ECHO_C" >&6
1565else
1566  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1567for as_dir in $PATH
1568do
1569  IFS=$as_save_IFS
1570  test -z "$as_dir" && as_dir=.
1571  # Account for people who put trailing slashes in PATH elements.
1572case $as_dir/ in
1573  ./ | .// | /cC/* | \
1574  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1575  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1576  /usr/ucb/* ) ;;
1577  *)
1578    # OSF1 and SCO ODT 3.0 have their own names for install.
1579    # Don't use installbsd from OSF since it installs stuff as root
1580    # by default.
1581    for ac_prog in ginstall scoinst install; do
1582      for ac_exec_ext in '' $ac_executable_extensions; do
1583	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1584	  if test $ac_prog = install &&
1585	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1586	    # AIX install.  It has an incompatible calling convention.
1587	    :
1588	  elif test $ac_prog = install &&
1589	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1590	    # program-specific install script used by HP pwplus--don't use.
1591	    :
1592	  else
1593	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1594	    break 3
1595	  fi
1596	fi
1597      done
1598    done
1599    ;;
1600esac
1601done
1602
1603
1604fi
1605  if test "${ac_cv_path_install+set}" = set; then
1606    INSTALL=$ac_cv_path_install
1607  else
1608    # As a last resort, use the slow shell script.  We don't cache a
1609    # path for INSTALL within a source directory, because that will
1610    # break other packages using the cache if that directory is
1611    # removed, or if the path is relative.
1612    INSTALL=$ac_install_sh
1613  fi
1614fi
1615echo "$as_me:$LINENO: result: $INSTALL" >&5
1616echo "${ECHO_T}$INSTALL" >&6
1617
1618# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1619# It thinks the first close brace ends the variable substitution.
1620test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1621
1622test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1623
1624test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1625
1626echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1627echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1628# Just in case
1629sleep 1
1630echo timestamp > conftest.file
1631# Do `set' in a subshell so we don't clobber the current shell's
1632# arguments.  Must try -L first in case configure is actually a
1633# symlink; some systems play weird games with the mod time of symlinks
1634# (eg FreeBSD returns the mod time of the symlink's containing
1635# directory).
1636if (
1637   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1638   if test "$*" = "X"; then
1639      # -L didn't work.
1640      set X `ls -t $srcdir/configure conftest.file`
1641   fi
1642   rm -f conftest.file
1643   if test "$*" != "X $srcdir/configure conftest.file" \
1644      && test "$*" != "X conftest.file $srcdir/configure"; then
1645
1646      # If neither matched, then we have a broken ls.  This can happen
1647      # if, for instance, CONFIG_SHELL is bash and it inherits a
1648      # broken ls alias from the environment.  This has actually
1649      # happened.  Such a system could not be considered "sane".
1650      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1651alias in your environment" >&5
1652echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1653alias in your environment" >&2;}
1654   { (exit 1); exit 1; }; }
1655   fi
1656
1657   test "$2" = conftest.file
1658   )
1659then
1660   # Ok.
1661   :
1662else
1663   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1664Check your system clock" >&5
1665echo "$as_me: error: newly created file is older than distributed files!
1666Check your system clock" >&2;}
1667   { (exit 1); exit 1; }; }
1668fi
1669echo "$as_me:$LINENO: result: yes" >&5
1670echo "${ECHO_T}yes" >&6
1671test "$program_prefix" != NONE &&
1672  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1673# Use a double $ so make ignores it.
1674test "$program_suffix" != NONE &&
1675  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1676# Double any \ or $.  echo might interpret backslashes.
1677# By default was `s,x,x', remove it if useless.
1678cat <<\_ACEOF >conftest.sed
1679s/[\\$]/&&/g;s/;s,x,x,$//
1680_ACEOF
1681program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1682rm conftest.sed
1683
1684
1685# expand $ac_aux_dir to an absolute path
1686am_aux_dir=`cd $ac_aux_dir && pwd`
1687
1688test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1689# Use eval to expand $SHELL
1690if eval "$MISSING --run true"; then
1691  am_missing_run="$MISSING --run "
1692else
1693  am_missing_run=
1694  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1695echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1696fi
1697
1698for ac_prog in gawk mawk nawk awk
1699do
1700  # Extract the first word of "$ac_prog", so it can be a program name with args.
1701set dummy $ac_prog; ac_word=$2
1702echo "$as_me:$LINENO: checking for $ac_word" >&5
1703echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1704if test "${ac_cv_prog_AWK+set}" = set; then
1705  echo $ECHO_N "(cached) $ECHO_C" >&6
1706else
1707  if test -n "$AWK"; then
1708  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1709else
1710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1711for as_dir in $PATH
1712do
1713  IFS=$as_save_IFS
1714  test -z "$as_dir" && as_dir=.
1715  for ac_exec_ext in '' $ac_executable_extensions; do
1716  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1717    ac_cv_prog_AWK="$ac_prog"
1718    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1719    break 2
1720  fi
1721done
1722done
1723
1724fi
1725fi
1726AWK=$ac_cv_prog_AWK
1727if test -n "$AWK"; then
1728  echo "$as_me:$LINENO: result: $AWK" >&5
1729echo "${ECHO_T}$AWK" >&6
1730else
1731  echo "$as_me:$LINENO: result: no" >&5
1732echo "${ECHO_T}no" >&6
1733fi
1734
1735  test -n "$AWK" && break
1736done
1737
1738echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1739echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1740set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1741if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1742  echo $ECHO_N "(cached) $ECHO_C" >&6
1743else
1744  cat >conftest.make <<\_ACEOF
1745all:
1746	@echo 'ac_maketemp="$(MAKE)"'
1747_ACEOF
1748# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1749eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1750if test -n "$ac_maketemp"; then
1751  eval ac_cv_prog_make_${ac_make}_set=yes
1752else
1753  eval ac_cv_prog_make_${ac_make}_set=no
1754fi
1755rm -f conftest.make
1756fi
1757if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1758  echo "$as_me:$LINENO: result: yes" >&5
1759echo "${ECHO_T}yes" >&6
1760  SET_MAKE=
1761else
1762  echo "$as_me:$LINENO: result: no" >&5
1763echo "${ECHO_T}no" >&6
1764  SET_MAKE="MAKE=${MAKE-make}"
1765fi
1766
1767rm -rf .tst 2>/dev/null
1768mkdir .tst 2>/dev/null
1769if test -d .tst; then
1770  am__leading_dot=.
1771else
1772  am__leading_dot=_
1773fi
1774rmdir .tst 2>/dev/null
1775
1776 # test to see if srcdir already configured
1777if test "`cd $srcdir && pwd`" != "`pwd`" &&
1778   test -f $srcdir/config.status; then
1779  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1780echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1781   { (exit 1); exit 1; }; }
1782fi
1783
1784# test whether we have cygpath
1785if test -z "$CYGPATH_W"; then
1786  if (cygpath --version) >/dev/null 2>/dev/null; then
1787    CYGPATH_W='cygpath -w'
1788  else
1789    CYGPATH_W=echo
1790  fi
1791fi
1792
1793
1794# Define the identity of the package.
1795 PACKAGE='quesa'
1796 VERSION='1.8'
1797
1798
1799cat >>confdefs.h <<_ACEOF
1800#define PACKAGE "$PACKAGE"
1801_ACEOF
1802
1803
1804cat >>confdefs.h <<_ACEOF
1805#define VERSION "$VERSION"
1806_ACEOF
1807
1808# Some tools Automake needs.
1809
1810ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1811
1812
1813AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1814
1815
1816AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1817
1818
1819AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1820
1821
1822MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1823
1824
1825AMTAR=${AMTAR-"${am_missing_run}tar"}
1826
1827install_sh=${install_sh-"$am_aux_dir/install-sh"}
1828
1829# Installed binaries are usually stripped using `strip' when the user
1830# run `make install-strip'.  However `strip' might not be the right
1831# tool to use in cross-compilation environments, therefore Automake
1832# will honor the `STRIP' environment variable to overrule this program.
1833if test "$cross_compiling" != no; then
1834  if test -n "$ac_tool_prefix"; then
1835  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1836set dummy ${ac_tool_prefix}strip; ac_word=$2
1837echo "$as_me:$LINENO: checking for $ac_word" >&5
1838echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1839if test "${ac_cv_prog_STRIP+set}" = set; then
1840  echo $ECHO_N "(cached) $ECHO_C" >&6
1841else
1842  if test -n "$STRIP"; then
1843  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1844else
1845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1846for as_dir in $PATH
1847do
1848  IFS=$as_save_IFS
1849  test -z "$as_dir" && as_dir=.
1850  for ac_exec_ext in '' $ac_executable_extensions; do
1851  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1852    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1853    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1854    break 2
1855  fi
1856done
1857done
1858
1859fi
1860fi
1861STRIP=$ac_cv_prog_STRIP
1862if test -n "$STRIP"; then
1863  echo "$as_me:$LINENO: result: $STRIP" >&5
1864echo "${ECHO_T}$STRIP" >&6
1865else
1866  echo "$as_me:$LINENO: result: no" >&5
1867echo "${ECHO_T}no" >&6
1868fi
1869
1870fi
1871if test -z "$ac_cv_prog_STRIP"; then
1872  ac_ct_STRIP=$STRIP
1873  # Extract the first word of "strip", so it can be a program name with args.
1874set dummy strip; ac_word=$2
1875echo "$as_me:$LINENO: checking for $ac_word" >&5
1876echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1877if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1878  echo $ECHO_N "(cached) $ECHO_C" >&6
1879else
1880  if test -n "$ac_ct_STRIP"; then
1881  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1882else
1883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1884for as_dir in $PATH
1885do
1886  IFS=$as_save_IFS
1887  test -z "$as_dir" && as_dir=.
1888  for ac_exec_ext in '' $ac_executable_extensions; do
1889  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1890    ac_cv_prog_ac_ct_STRIP="strip"
1891    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1892    break 2
1893  fi
1894done
1895done
1896
1897  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1898fi
1899fi
1900ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1901if test -n "$ac_ct_STRIP"; then
1902  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1903echo "${ECHO_T}$ac_ct_STRIP" >&6
1904else
1905  echo "$as_me:$LINENO: result: no" >&5
1906echo "${ECHO_T}no" >&6
1907fi
1908
1909  STRIP=$ac_ct_STRIP
1910else
1911  STRIP="$ac_cv_prog_STRIP"
1912fi
1913
1914fi
1915INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1916
1917# We need awk for the "check" target.  The system "awk" is bad on
1918# some platforms.
1919
1920
1921
1922echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1923echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1924    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1925if test "${enable_maintainer_mode+set}" = set; then
1926  enableval="$enable_maintainer_mode"
1927  USE_MAINTAINER_MODE=$enableval
1928else
1929  USE_MAINTAINER_MODE=no
1930fi;
1931  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1932echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1933
1934
1935if test $USE_MAINTAINER_MODE = yes; then
1936  MAINTAINER_MODE_TRUE=
1937  MAINTAINER_MODE_FALSE='#'
1938else
1939  MAINTAINER_MODE_TRUE='#'
1940  MAINTAINER_MODE_FALSE=
1941fi
1942
1943  MAINT=$MAINTAINER_MODE_TRUE
1944
1945
1946
1947ac_ext=c
1948ac_cpp='$CPP $CPPFLAGS'
1949ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1950ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1951ac_compiler_gnu=$ac_cv_c_compiler_gnu
1952if test -n "$ac_tool_prefix"; then
1953  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1954set dummy ${ac_tool_prefix}gcc; ac_word=$2
1955echo "$as_me:$LINENO: checking for $ac_word" >&5
1956echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1957if test "${ac_cv_prog_CC+set}" = set; then
1958  echo $ECHO_N "(cached) $ECHO_C" >&6
1959else
1960  if test -n "$CC"; then
1961  ac_cv_prog_CC="$CC" # Let the user override the test.
1962else
1963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1964for as_dir in $PATH
1965do
1966  IFS=$as_save_IFS
1967  test -z "$as_dir" && as_dir=.
1968  for ac_exec_ext in '' $ac_executable_extensions; do
1969  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1970    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1971    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1972    break 2
1973  fi
1974done
1975done
1976
1977fi
1978fi
1979CC=$ac_cv_prog_CC
1980if test -n "$CC"; then
1981  echo "$as_me:$LINENO: result: $CC" >&5
1982echo "${ECHO_T}$CC" >&6
1983else
1984  echo "$as_me:$LINENO: result: no" >&5
1985echo "${ECHO_T}no" >&6
1986fi
1987
1988fi
1989if test -z "$ac_cv_prog_CC"; then
1990  ac_ct_CC=$CC
1991  # Extract the first word of "gcc", so it can be a program name with args.
1992set dummy gcc; ac_word=$2
1993echo "$as_me:$LINENO: checking for $ac_word" >&5
1994echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1995if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1996  echo $ECHO_N "(cached) $ECHO_C" >&6
1997else
1998  if test -n "$ac_ct_CC"; then
1999  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2000else
2001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2002for as_dir in $PATH
2003do
2004  IFS=$as_save_IFS
2005  test -z "$as_dir" && as_dir=.
2006  for ac_exec_ext in '' $ac_executable_extensions; do
2007  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2008    ac_cv_prog_ac_ct_CC="gcc"
2009    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2010    break 2
2011  fi
2012done
2013done
2014
2015fi
2016fi
2017ac_ct_CC=$ac_cv_prog_ac_ct_CC
2018if test -n "$ac_ct_CC"; then
2019  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2020echo "${ECHO_T}$ac_ct_CC" >&6
2021else
2022  echo "$as_me:$LINENO: result: no" >&5
2023echo "${ECHO_T}no" >&6
2024fi
2025
2026  CC=$ac_ct_CC
2027else
2028  CC="$ac_cv_prog_CC"
2029fi
2030
2031if test -z "$CC"; then
2032  if test -n "$ac_tool_prefix"; then
2033  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2034set dummy ${ac_tool_prefix}cc; ac_word=$2
2035echo "$as_me:$LINENO: checking for $ac_word" >&5
2036echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2037if test "${ac_cv_prog_CC+set}" = set; then
2038  echo $ECHO_N "(cached) $ECHO_C" >&6
2039else
2040  if test -n "$CC"; then
2041  ac_cv_prog_CC="$CC" # Let the user override the test.
2042else
2043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2044for as_dir in $PATH
2045do
2046  IFS=$as_save_IFS
2047  test -z "$as_dir" && as_dir=.
2048  for ac_exec_ext in '' $ac_executable_extensions; do
2049  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2050    ac_cv_prog_CC="${ac_tool_prefix}cc"
2051    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2052    break 2
2053  fi
2054done
2055done
2056
2057fi
2058fi
2059CC=$ac_cv_prog_CC
2060if test -n "$CC"; then
2061  echo "$as_me:$LINENO: result: $CC" >&5
2062echo "${ECHO_T}$CC" >&6
2063else
2064  echo "$as_me:$LINENO: result: no" >&5
2065echo "${ECHO_T}no" >&6
2066fi
2067
2068fi
2069if test -z "$ac_cv_prog_CC"; then
2070  ac_ct_CC=$CC
2071  # Extract the first word of "cc", so it can be a program name with args.
2072set dummy cc; ac_word=$2
2073echo "$as_me:$LINENO: checking for $ac_word" >&5
2074echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2075if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2076  echo $ECHO_N "(cached) $ECHO_C" >&6
2077else
2078  if test -n "$ac_ct_CC"; then
2079  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2080else
2081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2082for as_dir in $PATH
2083do
2084  IFS=$as_save_IFS
2085  test -z "$as_dir" && as_dir=.
2086  for ac_exec_ext in '' $ac_executable_extensions; do
2087  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2088    ac_cv_prog_ac_ct_CC="cc"
2089    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2090    break 2
2091  fi
2092done
2093done
2094
2095fi
2096fi
2097ac_ct_CC=$ac_cv_prog_ac_ct_CC
2098if test -n "$ac_ct_CC"; then
2099  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2100echo "${ECHO_T}$ac_ct_CC" >&6
2101else
2102  echo "$as_me:$LINENO: result: no" >&5
2103echo "${ECHO_T}no" >&6
2104fi
2105
2106  CC=$ac_ct_CC
2107else
2108  CC="$ac_cv_prog_CC"
2109fi
2110
2111fi
2112if test -z "$CC"; then
2113  # Extract the first word of "cc", so it can be a program name with args.
2114set dummy cc; ac_word=$2
2115echo "$as_me:$LINENO: checking for $ac_word" >&5
2116echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2117if test "${ac_cv_prog_CC+set}" = set; then
2118  echo $ECHO_N "(cached) $ECHO_C" >&6
2119else
2120  if test -n "$CC"; then
2121  ac_cv_prog_CC="$CC" # Let the user override the test.
2122else
2123  ac_prog_rejected=no
2124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2125for as_dir in $PATH
2126do
2127  IFS=$as_save_IFS
2128  test -z "$as_dir" && as_dir=.
2129  for ac_exec_ext in '' $ac_executable_extensions; do
2130  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2131    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2132       ac_prog_rejected=yes
2133       continue
2134     fi
2135    ac_cv_prog_CC="cc"
2136    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2137    break 2
2138  fi
2139done
2140done
2141
2142if test $ac_prog_rejected = yes; then
2143  # We found a bogon in the path, so make sure we never use it.
2144  set dummy $ac_cv_prog_CC
2145  shift
2146  if test $# != 0; then
2147    # We chose a different compiler from the bogus one.
2148    # However, it has the same basename, so the bogon will be chosen
2149    # first if we set CC to just the basename; use the full file name.
2150    shift
2151    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2152  fi
2153fi
2154fi
2155fi
2156CC=$ac_cv_prog_CC
2157if test -n "$CC"; then
2158  echo "$as_me:$LINENO: result: $CC" >&5
2159echo "${ECHO_T}$CC" >&6
2160else
2161  echo "$as_me:$LINENO: result: no" >&5
2162echo "${ECHO_T}no" >&6
2163fi
2164
2165fi
2166if test -z "$CC"; then
2167  if test -n "$ac_tool_prefix"; then
2168  for ac_prog in cl
2169  do
2170    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2171set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2172echo "$as_me:$LINENO: checking for $ac_word" >&5
2173echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2174if test "${ac_cv_prog_CC+set}" = set; then
2175  echo $ECHO_N "(cached) $ECHO_C" >&6
2176else
2177  if test -n "$CC"; then
2178  ac_cv_prog_CC="$CC" # Let the user override the test.
2179else
2180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2181for as_dir in $PATH
2182do
2183  IFS=$as_save_IFS
2184  test -z "$as_dir" && as_dir=.
2185  for ac_exec_ext in '' $ac_executable_extensions; do
2186  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2187    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2188    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2189    break 2
2190  fi
2191done
2192done
2193
2194fi
2195fi
2196CC=$ac_cv_prog_CC
2197if test -n "$CC"; then
2198  echo "$as_me:$LINENO: result: $CC" >&5
2199echo "${ECHO_T}$CC" >&6
2200else
2201  echo "$as_me:$LINENO: result: no" >&5
2202echo "${ECHO_T}no" >&6
2203fi
2204
2205    test -n "$CC" && break
2206  done
2207fi
2208if test -z "$CC"; then
2209  ac_ct_CC=$CC
2210  for ac_prog in cl
2211do
2212  # Extract the first word of "$ac_prog", so it can be a program name with args.
2213set dummy $ac_prog; ac_word=$2
2214echo "$as_me:$LINENO: checking for $ac_word" >&5
2215echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2216if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2217  echo $ECHO_N "(cached) $ECHO_C" >&6
2218else
2219  if test -n "$ac_ct_CC"; then
2220  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2221else
2222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2223for as_dir in $PATH
2224do
2225  IFS=$as_save_IFS
2226  test -z "$as_dir" && as_dir=.
2227  for ac_exec_ext in '' $ac_executable_extensions; do
2228  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2229    ac_cv_prog_ac_ct_CC="$ac_prog"
2230    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2231    break 2
2232  fi
2233done
2234done
2235
2236fi
2237fi
2238ac_ct_CC=$ac_cv_prog_ac_ct_CC
2239if test -n "$ac_ct_CC"; then
2240  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2241echo "${ECHO_T}$ac_ct_CC" >&6
2242else
2243  echo "$as_me:$LINENO: result: no" >&5
2244echo "${ECHO_T}no" >&6
2245fi
2246
2247  test -n "$ac_ct_CC" && break
2248done
2249
2250  CC=$ac_ct_CC
2251fi
2252
2253fi
2254
2255
2256test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2257See \`config.log' for more details." >&5
2258echo "$as_me: error: no acceptable C compiler found in \$PATH
2259See \`config.log' for more details." >&2;}
2260   { (exit 1); exit 1; }; }
2261
2262# Provide some information about the compiler.
2263echo "$as_me:$LINENO:" \
2264     "checking for C compiler version" >&5
2265ac_compiler=`set X $ac_compile; echo $2`
2266{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2267  (eval $ac_compiler --version </dev/null >&5) 2>&5
2268  ac_status=$?
2269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270  (exit $ac_status); }
2271{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2272  (eval $ac_compiler -v </dev/null >&5) 2>&5
2273  ac_status=$?
2274  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2275  (exit $ac_status); }
2276{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2277  (eval $ac_compiler -V </dev/null >&5) 2>&5
2278  ac_status=$?
2279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280  (exit $ac_status); }
2281
2282cat >conftest.$ac_ext <<_ACEOF
2283/* confdefs.h.  */
2284_ACEOF
2285cat confdefs.h >>conftest.$ac_ext
2286cat >>conftest.$ac_ext <<_ACEOF
2287/* end confdefs.h.  */
2288
2289int
2290main ()
2291{
2292
2293  ;
2294  return 0;
2295}
2296_ACEOF
2297ac_clean_files_save=$ac_clean_files
2298ac_clean_files="$ac_clean_files a.out a.exe b.out"
2299# Try to create an executable without -o first, disregard a.out.
2300# It will help us diagnose broken compilers, and finding out an intuition
2301# of exeext.
2302echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2303echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2304ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2305if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2306  (eval $ac_link_default) 2>&5
2307  ac_status=$?
2308  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2309  (exit $ac_status); }; then
2310  # Find the output, starting from the most likely.  This scheme is
2311# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2312# resort.
2313
2314# Be careful to initialize this variable, since it used to be cached.
2315# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2316ac_cv_exeext=
2317# b.out is created by i960 compilers.
2318for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2319do
2320  test -f "$ac_file" || continue
2321  case $ac_file in
2322    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2323	;;
2324    conftest.$ac_ext )
2325	# This is the source file.
2326	;;
2327    [ab].out )
2328	# We found the default executable, but exeext='' is most
2329	# certainly right.
2330	break;;
2331    *.* )
2332	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2333	# FIXME: I believe we export ac_cv_exeext for Libtool,
2334	# but it would be cool to find out if it's true.  Does anybody
2335	# maintain Libtool? --akim.
2336	export ac_cv_exeext
2337	break;;
2338    * )
2339	break;;
2340  esac
2341done
2342else
2343  echo "$as_me: failed program was:" >&5
2344sed 's/^/| /' conftest.$ac_ext >&5
2345
2346{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2347See \`config.log' for more details." >&5
2348echo "$as_me: error: C compiler cannot create executables
2349See \`config.log' for more details." >&2;}
2350   { (exit 77); exit 77; }; }
2351fi
2352
2353ac_exeext=$ac_cv_exeext
2354echo "$as_me:$LINENO: result: $ac_file" >&5
2355echo "${ECHO_T}$ac_file" >&6
2356
2357# Check the compiler produces executables we can run.  If not, either
2358# the compiler is broken, or we cross compile.
2359echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2360echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2361# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2362# If not cross compiling, check that we can run a simple program.
2363if test "$cross_compiling" != yes; then
2364  if { ac_try='./$ac_file'
2365  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2366  (eval $ac_try) 2>&5
2367  ac_status=$?
2368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2369  (exit $ac_status); }; }; then
2370    cross_compiling=no
2371  else
2372    if test "$cross_compiling" = maybe; then
2373	cross_compiling=yes
2374    else
2375	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2376If you meant to cross compile, use \`--host'.
2377See \`config.log' for more details." >&5
2378echo "$as_me: error: cannot run C compiled programs.
2379If you meant to cross compile, use \`--host'.
2380See \`config.log' for more details." >&2;}
2381   { (exit 1); exit 1; }; }
2382    fi
2383  fi
2384fi
2385echo "$as_me:$LINENO: result: yes" >&5
2386echo "${ECHO_T}yes" >&6
2387
2388rm -f a.out a.exe conftest$ac_cv_exeext b.out
2389ac_clean_files=$ac_clean_files_save
2390# Check the compiler produces executables we can run.  If not, either
2391# the compiler is broken, or we cross compile.
2392echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2393echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2394echo "$as_me:$LINENO: result: $cross_compiling" >&5
2395echo "${ECHO_T}$cross_compiling" >&6
2396
2397echo "$as_me:$LINENO: checking for suffix of executables" >&5
2398echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2399if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2400  (eval $ac_link) 2>&5
2401  ac_status=$?
2402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403  (exit $ac_status); }; then
2404  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2405# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2406# work properly (i.e., refer to `conftest.exe'), while it won't with
2407# `rm'.
2408for ac_file in conftest.exe conftest conftest.*; do
2409  test -f "$ac_file" || continue
2410  case $ac_file in
2411    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2412    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2413	  export ac_cv_exeext
2414	  break;;
2415    * ) break;;
2416  esac
2417done
2418else
2419  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2420See \`config.log' for more details." >&5
2421echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2422See \`config.log' for more details." >&2;}
2423   { (exit 1); exit 1; }; }
2424fi
2425
2426rm -f conftest$ac_cv_exeext
2427echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2428echo "${ECHO_T}$ac_cv_exeext" >&6
2429
2430rm -f conftest.$ac_ext
2431EXEEXT=$ac_cv_exeext
2432ac_exeext=$EXEEXT
2433echo "$as_me:$LINENO: checking for suffix of object files" >&5
2434echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2435if test "${ac_cv_objext+set}" = set; then
2436  echo $ECHO_N "(cached) $ECHO_C" >&6
2437else
2438  cat >conftest.$ac_ext <<_ACEOF
2439/* confdefs.h.  */
2440_ACEOF
2441cat confdefs.h >>conftest.$ac_ext
2442cat >>conftest.$ac_ext <<_ACEOF
2443/* end confdefs.h.  */
2444
2445int
2446main ()
2447{
2448
2449  ;
2450  return 0;
2451}
2452_ACEOF
2453rm -f conftest.o conftest.obj
2454if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2455  (eval $ac_compile) 2>&5
2456  ac_status=$?
2457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458  (exit $ac_status); }; then
2459  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2460  case $ac_file in
2461    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2462    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2463       break;;
2464  esac
2465done
2466else
2467  echo "$as_me: failed program was:" >&5
2468sed 's/^/| /' conftest.$ac_ext >&5
2469
2470{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2471See \`config.log' for more details." >&5
2472echo "$as_me: error: cannot compute suffix of object files: cannot compile
2473See \`config.log' for more details." >&2;}
2474   { (exit 1); exit 1; }; }
2475fi
2476
2477rm -f conftest.$ac_cv_objext conftest.$ac_ext
2478fi
2479echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2480echo "${ECHO_T}$ac_cv_objext" >&6
2481OBJEXT=$ac_cv_objext
2482ac_objext=$OBJEXT
2483echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2484echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2485if test "${ac_cv_c_compiler_gnu+set}" = set; then
2486  echo $ECHO_N "(cached) $ECHO_C" >&6
2487else
2488  cat >conftest.$ac_ext <<_ACEOF
2489/* confdefs.h.  */
2490_ACEOF
2491cat confdefs.h >>conftest.$ac_ext
2492cat >>conftest.$ac_ext <<_ACEOF
2493/* end confdefs.h.  */
2494
2495int
2496main ()
2497{
2498#ifndef __GNUC__
2499       choke me
2500#endif
2501
2502  ;
2503  return 0;
2504}
2505_ACEOF
2506rm -f conftest.$ac_objext
2507if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2508  (eval $ac_compile) 2>conftest.er1
2509  ac_status=$?
2510  grep -v '^ *+' conftest.er1 >conftest.err
2511  rm -f conftest.er1
2512  cat conftest.err >&5
2513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514  (exit $ac_status); } &&
2515	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
2516  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2517  (eval $ac_try) 2>&5
2518  ac_status=$?
2519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2520  (exit $ac_status); }; } &&
2521	 { ac_try='test -s conftest.$ac_objext'
2522  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2523  (eval $ac_try) 2>&5
2524  ac_status=$?
2525  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2526  (exit $ac_status); }; }; then
2527  ac_compiler_gnu=yes
2528else
2529  echo "$as_me: failed program was:" >&5
2530sed 's/^/| /' conftest.$ac_ext >&5
2531
2532ac_compiler_gnu=no
2533fi
2534rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2535ac_cv_c_compiler_gnu=$ac_compiler_gnu
2536
2537fi
2538echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2539echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2540GCC=`test $ac_compiler_gnu = yes && echo yes`
2541ac_test_CFLAGS=${CFLAGS+set}
2542ac_save_CFLAGS=$CFLAGS
2543CFLAGS="-g"
2544echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2545echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2546if test "${ac_cv_prog_cc_g+set}" = set; then
2547  echo $ECHO_N "(cached) $ECHO_C" >&6
2548else
2549  cat >conftest.$ac_ext <<_ACEOF
2550/* confdefs.h.  */
2551_ACEOF
2552cat confdefs.h >>conftest.$ac_ext
2553cat >>conftest.$ac_ext <<_ACEOF
2554/* end confdefs.h.  */
2555
2556int
2557main ()
2558{
2559
2560  ;
2561  return 0;
2562}
2563_ACEOF
2564rm -f conftest.$ac_objext
2565if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2566  (eval $ac_compile) 2>conftest.er1
2567  ac_status=$?
2568  grep -v '^ *+' conftest.er1 >conftest.err
2569  rm -f conftest.er1
2570  cat conftest.err >&5
2571  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572  (exit $ac_status); } &&
2573	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
2574  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2575  (eval $ac_try) 2>&5
2576  ac_status=$?
2577  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578  (exit $ac_status); }; } &&
2579	 { ac_try='test -s conftest.$ac_objext'
2580  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2581  (eval $ac_try) 2>&5
2582  ac_status=$?
2583  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2584  (exit $ac_status); }; }; then
2585  ac_cv_prog_cc_g=yes
2586else
2587  echo "$as_me: failed program was:" >&5
2588sed 's/^/| /' conftest.$ac_ext >&5
2589
2590ac_cv_prog_cc_g=no
2591fi
2592rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2593fi
2594echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2595echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2596if test "$ac_test_CFLAGS" = set; then
2597  CFLAGS=$ac_save_CFLAGS
2598elif test $ac_cv_prog_cc_g = yes; then
2599  if test "$GCC" = yes; then
2600    CFLAGS="-g -O2"
2601  else
2602    CFLAGS="-g"
2603  fi
2604else
2605  if test "$GCC" = yes; then
2606    CFLAGS="-O2"
2607  else
2608    CFLAGS=
2609  fi
2610fi
2611echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2612echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2613if test "${ac_cv_prog_cc_stdc+set}" = set; then
2614  echo $ECHO_N "(cached) $ECHO_C" >&6
2615else
2616  ac_cv_prog_cc_stdc=no
2617ac_save_CC=$CC
2618cat >conftest.$ac_ext <<_ACEOF
2619/* confdefs.h.  */
2620_ACEOF
2621cat confdefs.h >>conftest.$ac_ext
2622cat >>conftest.$ac_ext <<_ACEOF
2623/* end confdefs.h.  */
2624#include <stdarg.h>
2625#include <stdio.h>
2626#include <sys/types.h>
2627#include <sys/stat.h>
2628/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2629struct buf { int x; };
2630FILE * (*rcsopen) (struct buf *, struct stat *, int);
2631static char *e (p, i)
2632     char **p;
2633     int i;
2634{
2635  return p[i];
2636}
2637static char *f (char * (*g) (char **, int), char **p, ...)
2638{
2639  char *s;
2640  va_list v;
2641  va_start (v,p);
2642  s = g (p, va_arg (v,int));
2643  va_end (v);
2644  return s;
2645}
2646
2647/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2648   function prototypes and stuff, but not '\xHH' hex character constants.
2649   These don't provoke an error unfortunately, instead are silently treated
2650   as 'x'.  The following induces an error, until -std1 is added to get
2651   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2652   array size at least.  It's necessary to write '\x00'==0 to get something
2653   that's true only with -std1.  */
2654int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2655
2656int test (int i, double x);
2657struct s1 {int (*f) (int a);};
2658struct s2 {int (*f) (double a);};
2659int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2660int argc;
2661char **argv;
2662int
2663main ()
2664{
2665return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2666  ;
2667  return 0;
2668}
2669_ACEOF
2670# Don't try gcc -ansi; that turns off useful extensions and
2671# breaks some systems' header files.
2672# AIX			-qlanglvl=ansi
2673# Ultrix and OSF/1	-std1
2674# HP-UX 10.20 and later	-Ae
2675# HP-UX older versions	-Aa -D_HPUX_SOURCE
2676# SVR4			-Xc -D__EXTENSIONS__
2677for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2678do
2679  CC="$ac_save_CC $ac_arg"
2680  rm -f conftest.$ac_objext
2681if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2682  (eval $ac_compile) 2>conftest.er1
2683  ac_status=$?
2684  grep -v '^ *+' conftest.er1 >conftest.err
2685  rm -f conftest.er1
2686  cat conftest.err >&5
2687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2688  (exit $ac_status); } &&
2689	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
2690  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2691  (eval $ac_try) 2>&5
2692  ac_status=$?
2693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2694  (exit $ac_status); }; } &&
2695	 { ac_try='test -s conftest.$ac_objext'
2696  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2697  (eval $ac_try) 2>&5
2698  ac_status=$?
2699  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700  (exit $ac_status); }; }; then
2701  ac_cv_prog_cc_stdc=$ac_arg
2702break
2703else
2704  echo "$as_me: failed program was:" >&5
2705sed 's/^/| /' conftest.$ac_ext >&5
2706
2707fi
2708rm -f conftest.err conftest.$ac_objext
2709done
2710rm -f conftest.$ac_ext conftest.$ac_objext
2711CC=$ac_save_CC
2712
2713fi
2714
2715case "x$ac_cv_prog_cc_stdc" in
2716  x|xno)
2717    echo "$as_me:$LINENO: result: none needed" >&5
2718echo "${ECHO_T}none needed" >&6 ;;
2719  *)
2720    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2721echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2722    CC="$CC $ac_cv_prog_cc_stdc" ;;
2723esac
2724
2725# Some people use a C++ compiler to compile C.  Since we use `exit',
2726# in C++ we need to declare it.  In case someone uses the same compiler
2727# for both compiling C and C++ we need to have the C++ compiler decide
2728# the declaration of exit, since it's the most demanding environment.
2729cat >conftest.$ac_ext <<_ACEOF
2730#ifndef __cplusplus
2731  choke me
2732#endif
2733_ACEOF
2734rm -f conftest.$ac_objext
2735if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2736  (eval $ac_compile) 2>conftest.er1
2737  ac_status=$?
2738  grep -v '^ *+' conftest.er1 >conftest.err
2739  rm -f conftest.er1
2740  cat conftest.err >&5
2741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742  (exit $ac_status); } &&
2743	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
2744  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2745  (eval $ac_try) 2>&5
2746  ac_status=$?
2747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748  (exit $ac_status); }; } &&
2749	 { ac_try='test -s conftest.$ac_objext'
2750  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2751  (eval $ac_try) 2>&5
2752  ac_status=$?
2753  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2754  (exit $ac_status); }; }; then
2755  for ac_declaration in \
2756   '' \
2757   'extern "C" void std::exit (int) throw (); using std::exit;' \
2758   'extern "C" void std::exit (int); using std::exit;' \
2759   'extern "C" void exit (int) throw ();' \
2760   'extern "C" void exit (int);' \
2761   'void exit (int);'
2762do
2763  cat >conftest.$ac_ext <<_ACEOF
2764/* confdefs.h.  */
2765_ACEOF
2766cat confdefs.h >>conftest.$ac_ext
2767cat >>conftest.$ac_ext <<_ACEOF
2768/* end confdefs.h.  */
2769$ac_declaration
2770#include <stdlib.h>
2771int
2772main ()
2773{
2774exit (42);
2775  ;
2776  return 0;
2777}
2778_ACEOF
2779rm -f conftest.$ac_objext
2780if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2781  (eval $ac_compile) 2>conftest.er1
2782  ac_status=$?
2783  grep -v '^ *+' conftest.er1 >conftest.err
2784  rm -f conftest.er1
2785  cat conftest.err >&5
2786  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787  (exit $ac_status); } &&
2788	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
2789  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2790  (eval $ac_try) 2>&5
2791  ac_status=$?
2792  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793  (exit $ac_status); }; } &&
2794	 { ac_try='test -s conftest.$ac_objext'
2795  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2796  (eval $ac_try) 2>&5
2797  ac_status=$?
2798  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2799  (exit $ac_status); }; }; then
2800  :
2801else
2802  echo "$as_me: failed program was:" >&5
2803sed 's/^/| /' conftest.$ac_ext >&5
2804
2805continue
2806fi
2807rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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$ac_declaration
2815int
2816main ()
2817{
2818exit (42);
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"			 || test ! -s conftest.err'
2833  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2834  (eval $ac_try) 2>&5
2835  ac_status=$?
2836  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2837  (exit $ac_status); }; } &&
2838	 { ac_try='test -s conftest.$ac_objext'
2839  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2840  (eval $ac_try) 2>&5
2841  ac_status=$?
2842  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843  (exit $ac_status); }; }; then
2844  break
2845else
2846  echo "$as_me: failed program was:" >&5
2847sed 's/^/| /' conftest.$ac_ext >&5
2848
2849fi
2850rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2851done
2852rm -f conftest*
2853if test -n "$ac_declaration"; then
2854  echo '#ifdef __cplusplus' >>confdefs.h
2855  echo $ac_declaration      >>confdefs.h
2856  echo '#endif'             >>confdefs.h
2857fi
2858
2859else
2860  echo "$as_me: failed program was:" >&5
2861sed 's/^/| /' conftest.$ac_ext >&5
2862
2863fi
2864rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2865ac_ext=c
2866ac_cpp='$CPP $CPPFLAGS'
2867ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2868ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2869ac_compiler_gnu=$ac_cv_c_compiler_gnu
2870
2871# Check whether --enable-shared or --disable-shared was given.
2872if test "${enable_shared+set}" = set; then
2873  enableval="$enable_shared"
2874  p=${PACKAGE-default}
2875    case $enableval in
2876    yes) enable_shared=yes ;;
2877    no) enable_shared=no ;;
2878    *)
2879      enable_shared=no
2880      # Look at the argument we got.  We use all the common list separators.
2881      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2882      for pkg in $enableval; do
2883	IFS="$lt_save_ifs"
2884	if test "X$pkg" = "X$p"; then
2885	  enable_shared=yes
2886	fi
2887      done
2888      IFS="$lt_save_ifs"
2889      ;;
2890    esac
2891else
2892  enable_shared=yes
2893fi;
2894
2895# Check whether --enable-static or --disable-static was given.
2896if test "${enable_static+set}" = set; then
2897  enableval="$enable_static"
2898  p=${PACKAGE-default}
2899    case $enableval in
2900    yes) enable_static=yes ;;
2901    no) enable_static=no ;;
2902    *)
2903     enable_static=no
2904      # Look at the argument we got.  We use all the common list separators.
2905      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2906      for pkg in $enableval; do
2907	IFS="$lt_save_ifs"
2908	if test "X$pkg" = "X$p"; then
2909	  enable_static=yes
2910	fi
2911      done
2912      IFS="$lt_save_ifs"
2913      ;;
2914    esac
2915else
2916  enable_static=yes
2917fi;
2918
2919# Check whether --enable-fast-install or --disable-fast-install was given.
2920if test "${enable_fast_install+set}" = set; then
2921  enableval="$enable_fast_install"
2922  p=${PACKAGE-default}
2923    case $enableval in
2924    yes) enable_fast_install=yes ;;
2925    no) enable_fast_install=no ;;
2926    *)
2927      enable_fast_install=no
2928      # Look at the argument we got.  We use all the common list separators.
2929      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2930      for pkg in $enableval; do
2931	IFS="$lt_save_ifs"
2932	if test "X$pkg" = "X$p"; then
2933	  enable_fast_install=yes
2934	fi
2935      done
2936      IFS="$lt_save_ifs"
2937      ;;
2938    esac
2939else
2940  enable_fast_install=yes
2941fi;
2942
2943# Make sure we can run config.sub.
2944$ac_config_sub sun4 >/dev/null 2>&1 ||
2945  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2946echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2947   { (exit 1); exit 1; }; }
2948
2949echo "$as_me:$LINENO: checking build system type" >&5
2950echo $ECHO_N "checking build system type... $ECHO_C" >&6
2951if test "${ac_cv_build+set}" = set; then
2952  echo $ECHO_N "(cached) $ECHO_C" >&6
2953else
2954  ac_cv_build_alias=$build_alias
2955test -z "$ac_cv_build_alias" &&
2956  ac_cv_build_alias=`$ac_config_guess`
2957test -z "$ac_cv_build_alias" &&
2958  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2959echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2960   { (exit 1); exit 1; }; }
2961ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2962  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2963echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2964   { (exit 1); exit 1; }; }
2965
2966fi
2967echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2968echo "${ECHO_T}$ac_cv_build" >&6
2969build=$ac_cv_build
2970build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2971build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2972build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2973
2974
2975echo "$as_me:$LINENO: checking host system type" >&5
2976echo $ECHO_N "checking host system type... $ECHO_C" >&6
2977if test "${ac_cv_host+set}" = set; then
2978  echo $ECHO_N "(cached) $ECHO_C" >&6
2979else
2980  ac_cv_host_alias=$host_alias
2981test -z "$ac_cv_host_alias" &&
2982  ac_cv_host_alias=$ac_cv_build_alias
2983ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2984  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2985echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2986   { (exit 1); exit 1; }; }
2987
2988fi
2989echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2990echo "${ECHO_T}$ac_cv_host" >&6
2991host=$ac_cv_host
2992host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2993host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2994host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2995
2996
2997echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
2998echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
2999if test "${lt_cv_path_SED+set}" = set; then
3000  echo $ECHO_N "(cached) $ECHO_C" >&6
3001else
3002  # Loop through the user's path and test for sed and gsed.
3003# Then use that list of sed's as ones to test for truncation.
3004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3005for as_dir in $PATH
3006do
3007  IFS=$as_save_IFS
3008  test -z "$as_dir" && as_dir=.
3009  for lt_ac_prog in sed gsed; do
3010    for ac_exec_ext in '' $ac_executable_extensions; do
3011      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3012        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3013      fi
3014    done
3015  done
3016done
3017lt_ac_max=0
3018lt_ac_count=0
3019# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3020# along with /bin/sed that truncates output.
3021for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3022  test ! -f $lt_ac_sed && continue
3023  cat /dev/null > conftest.in
3024  lt_ac_count=0
3025  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3026  # Check for GNU sed and select it if it is found.
3027  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3028    lt_cv_path_SED=$lt_ac_sed
3029    break
3030  fi
3031  while true; do
3032    cat conftest.in conftest.in >conftest.tmp
3033    mv conftest.tmp conftest.in
3034    cp conftest.in conftest.nl
3035    echo >>conftest.nl
3036    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3037    cmp -s conftest.out conftest.nl || break
3038    # 10000 chars as input seems more than enough
3039    test $lt_ac_count -gt 10 && break
3040    lt_ac_count=`expr $lt_ac_count + 1`
3041    if test $lt_ac_count -gt $lt_ac_max; then
3042      lt_ac_max=$lt_ac_count
3043      lt_cv_path_SED=$lt_ac_sed
3044    fi
3045  done
3046done
3047
3048fi
3049
3050SED=$lt_cv_path_SED
3051echo "$as_me:$LINENO: result: $SED" >&5
3052echo "${ECHO_T}$SED" >&6
3053
3054echo "$as_me:$LINENO: checking for egrep" >&5
3055echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3056if test "${ac_cv_prog_egrep+set}" = set; then
3057  echo $ECHO_N "(cached) $ECHO_C" >&6
3058else
3059  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3060    then ac_cv_prog_egrep='grep -E'
3061    else ac_cv_prog_egrep='egrep'
3062    fi
3063fi
3064echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3065echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3066 EGREP=$ac_cv_prog_egrep
3067
3068
3069
3070# Check whether --with-gnu-ld or --without-gnu-ld was given.
3071if test "${with_gnu_ld+set}" = set; then
3072  withval="$with_gnu_ld"
3073  test "$withval" = no || with_gnu_ld=yes
3074else
3075  with_gnu_ld=no
3076fi;
3077ac_prog=ld
3078if test "$GCC" = yes; then
3079  # Check if gcc -print-prog-name=ld gives a path.
3080  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3081echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3082  case $host in
3083  *-*-mingw*)
3084    # gcc leaves a trailing carriage return which upsets mingw
3085    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3086  *)
3087    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3088  esac
3089  case $ac_prog in
3090    # Accept absolute paths.
3091    [\\/]* | ?:[\\/]*)
3092      re_direlt='/[^/][^/]*/\.\./'
3093      # Canonicalize the pathname of ld
3094      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3095      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3096	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3097      done
3098      test -z "$LD" && LD="$ac_prog"
3099      ;;
3100  "")
3101    # If it fails, then pretend we aren't using GCC.
3102    ac_prog=ld
3103    ;;
3104  *)
3105    # If it is relative, then search for the first ld in PATH.
3106    with_gnu_ld=unknown
3107    ;;
3108  esac
3109elif test "$with_gnu_ld" = yes; then
3110  echo "$as_me:$LINENO: checking for GNU ld" >&5
3111echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3112else
3113  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3114echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3115fi
3116if test "${lt_cv_path_LD+set}" = set; then
3117  echo $ECHO_N "(cached) $ECHO_C" >&6
3118else
3119  if test -z "$LD"; then
3120  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3121  for ac_dir in $PATH; do
3122    IFS="$lt_save_ifs"
3123    test -z "$ac_dir" && ac_dir=.
3124    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3125      lt_cv_path_LD="$ac_dir/$ac_prog"
3126      # Check to see if the program is GNU ld.  I'd rather use --version,
3127      # but apparently some variants of GNU ld only accept -v.
3128      # Break only if it was the GNU/non-GNU ld that we prefer.
3129      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3130      *GNU* | *'with BFD'*)
3131	test "$with_gnu_ld" != no && break
3132	;;
3133      *)
3134	test "$with_gnu_ld" != yes && break
3135	;;
3136      esac
3137    fi
3138  done
3139  IFS="$lt_save_ifs"
3140else
3141  lt_cv_path_LD="$LD" # Let the user override the test with a path.
3142fi
3143fi
3144
3145LD="$lt_cv_path_LD"
3146if test -n "$LD"; then
3147  echo "$as_me:$LINENO: result: $LD" >&5
3148echo "${ECHO_T}$LD" >&6
3149else
3150  echo "$as_me:$LINENO: result: no" >&5
3151echo "${ECHO_T}no" >&6
3152fi
3153test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3154echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3155   { (exit 1); exit 1; }; }
3156echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3157echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3158if test "${lt_cv_prog_gnu_ld+set}" = set; then
3159  echo $ECHO_N "(cached) $ECHO_C" >&6
3160else
3161  # I'd rather use --version here, but apparently some GNU lds only accept -v.
3162case `$LD -v 2>&1 </dev/null` in
3163*GNU* | *'with BFD'*)
3164  lt_cv_prog_gnu_ld=yes
3165  ;;
3166*)
3167  lt_cv_prog_gnu_ld=no
3168  ;;
3169esac
3170fi
3171echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3172echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3173with_gnu_ld=$lt_cv_prog_gnu_ld
3174
3175
3176echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3177echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3178if test "${lt_cv_ld_reload_flag+set}" = set; then
3179  echo $ECHO_N "(cached) $ECHO_C" >&6
3180else
3181  lt_cv_ld_reload_flag='-r'
3182fi
3183echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3184echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3185reload_flag=$lt_cv_ld_reload_flag
3186case $reload_flag in
3187"" | " "*) ;;
3188*) reload_flag=" $reload_flag" ;;
3189esac
3190reload_cmds='$LD$reload_flag -o $output$reload_objs'
3191case $host_os in
3192  darwin*)
3193    if test "$GCC" = yes; then
3194      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3195    else
3196      reload_cmds='$LD$reload_flag -o $output$reload_objs'
3197    fi
3198    ;;
3199esac
3200
3201echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3202echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3203if test "${lt_cv_path_NM+set}" = set; then
3204  echo $ECHO_N "(cached) $ECHO_C" >&6
3205else
3206  if test -n "$NM"; then
3207  # Let the user override the test.
3208  lt_cv_path_NM="$NM"
3209else
3210  lt_nm_to_check="${ac_tool_prefix}nm"
3211  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3212    lt_nm_to_check="$lt_nm_to_check nm"
3213  fi
3214  for lt_tmp_nm in $lt_nm_to_check; do
3215    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3216    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3217      IFS="$lt_save_ifs"
3218      test -z "$ac_dir" && ac_dir=.
3219      tmp_nm="$ac_dir/$lt_tmp_nm"
3220      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3221	# Check to see if the nm accepts a BSD-compat flag.
3222	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
3223	#   nm: unknown option "B" ignored
3224	# Tru64's nm complains that /dev/null is an invalid object file
3225	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3226	*/dev/null* | *'Invalid file or object type'*)
3227	  lt_cv_path_NM="$tmp_nm -B"
3228	  break
3229	  ;;
3230	*)
3231	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3232	  */dev/null*)
3233	    lt_cv_path_NM="$tmp_nm -p"
3234	    break
3235	    ;;
3236	  *)
3237	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3238	    continue # so that we can try to find one that supports BSD flags
3239	    ;;
3240	  esac
3241	  ;;
3242	esac
3243      fi
3244    done
3245    IFS="$lt_save_ifs"
3246  done
3247  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3248fi
3249fi
3250echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3251echo "${ECHO_T}$lt_cv_path_NM" >&6
3252NM="$lt_cv_path_NM"
3253
3254echo "$as_me:$LINENO: checking whether ln -s works" >&5
3255echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3256LN_S=$as_ln_s
3257if test "$LN_S" = "ln -s"; then
3258  echo "$as_me:$LINENO: result: yes" >&5
3259echo "${ECHO_T}yes" >&6
3260else
3261  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3262echo "${ECHO_T}no, using $LN_S" >&6
3263fi
3264
3265echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3266echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3267if test "${lt_cv_deplibs_check_method+set}" = set; then
3268  echo $ECHO_N "(cached) $ECHO_C" >&6
3269else
3270  lt_cv_file_magic_cmd='$MAGIC_CMD'
3271lt_cv_file_magic_test_file=
3272lt_cv_deplibs_check_method='unknown'
3273# Need to set the preceding variable on all platforms that support
3274# interlibrary dependencies.
3275# 'none' -- dependencies not supported.
3276# `unknown' -- same as none, but documents that we really don't know.
3277# 'pass_all' -- all dependencies passed with no checks.
3278# 'test_compile' -- check by making test program.
3279# 'file_magic [[regex]]' -- check by looking for files in library path
3280# which responds to the $file_magic_cmd with a given extended regex.
3281# If you have `file' or equivalent on your system and you're not sure
3282# whether `pass_all' will *always* work, you probably want this one.
3283
3284case $host_os in
3285aix4* | aix5*)
3286  lt_cv_deplibs_check_method=pass_all
3287  ;;
3288
3289beos*)
3290  lt_cv_deplibs_check_method=pass_all
3291  ;;
3292
3293bsdi[45]*)
3294  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3295  lt_cv_file_magic_cmd='/usr/bin/file -L'
3296  lt_cv_file_magic_test_file=/shlib/libc.so
3297  ;;
3298
3299cygwin*)
3300  # func_win32_libid is a shell function defined in ltmain.sh
3301  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3302  lt_cv_file_magic_cmd='func_win32_libid'
3303  ;;
3304
3305mingw* | pw32*)
3306  # Base MSYS/MinGW do not provide the 'file' command needed by
3307  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3308  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3309  lt_cv_file_magic_cmd='$OBJDUMP -f'
3310  ;;
3311
3312darwin* | rhapsody*)
3313  lt_cv_deplibs_check_method=pass_all
3314  ;;
3315
3316freebsd* | dragonfly*)
3317  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3318    case $host_cpu in
3319    i*86 )
3320      # Not sure whether the presence of OpenBSD here was a mistake.
3321      # Let's accept both of them until this is cleared up.
3322      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3323      lt_cv_file_magic_cmd=/usr/bin/file
3324      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3325      ;;
3326    esac
3327  else
3328    lt_cv_deplibs_check_method=pass_all
3329  fi
3330  ;;
3331
3332gnu*)
3333  lt_cv_deplibs_check_method=pass_all
3334  ;;
3335
3336hpux10.20* | hpux11*)
3337  lt_cv_file_magic_cmd=/usr/bin/file
3338  case $host_cpu in
3339  ia64*)
3340    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3341    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3342    ;;
3343  hppa*64*)
3344    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]'
3345    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3346    ;;
3347  *)
3348    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3349    lt_cv_file_magic_test_file=/usr/lib/libc.sl
3350    ;;
3351  esac
3352  ;;
3353
3354interix3*)
3355  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3356  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3357  ;;
3358
3359irix5* | irix6* | nonstopux*)
3360  case $LD in
3361  *-32|*"-32 ") libmagic=32-bit;;
3362  *-n32|*"-n32 ") libmagic=N32;;
3363  *-64|*"-64 ") libmagic=64-bit;;
3364  *) libmagic=never-match;;
3365  esac
3366  lt_cv_deplibs_check_method=pass_all
3367  ;;
3368
3369# This must be Linux ELF.
3370linux* | k*bsd*-gnu)
3371  lt_cv_deplibs_check_method=pass_all
3372  ;;
3373
3374netbsd* | netbsdelf*-gnu)
3375  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3376    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3377  else
3378    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3379  fi
3380  ;;
3381
3382newos6*)
3383  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3384  lt_cv_file_magic_cmd=/usr/bin/file
3385  lt_cv_file_magic_test_file=/usr/lib/libnls.so
3386  ;;
3387
3388nto-qnx*)
3389  lt_cv_deplibs_check_method=unknown
3390  ;;
3391
3392openbsd*)
3393  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3394    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3395  else
3396    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3397  fi
3398  ;;
3399
3400osf3* | osf4* | osf5*)
3401  lt_cv_deplibs_check_method=pass_all
3402  ;;
3403
3404solaris*)
3405  lt_cv_deplibs_check_method=pass_all
3406  ;;
3407
3408sysv4 | sysv4.3*)
3409  case $host_vendor in
3410  motorola)
3411    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]'
3412    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3413    ;;
3414  ncr)
3415    lt_cv_deplibs_check_method=pass_all
3416    ;;
3417  sequent)
3418    lt_cv_file_magic_cmd='/bin/file'
3419    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3420    ;;
3421  sni)
3422    lt_cv_file_magic_cmd='/bin/file'
3423    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3424    lt_cv_file_magic_test_file=/lib/libc.so
3425    ;;
3426  siemens)
3427    lt_cv_deplibs_check_method=pass_all
3428    ;;
3429  pc)
3430    lt_cv_deplibs_check_method=pass_all
3431    ;;
3432  esac
3433  ;;
3434
3435sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3436  lt_cv_deplibs_check_method=pass_all
3437  ;;
3438esac
3439
3440fi
3441echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3442echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3443file_magic_cmd=$lt_cv_file_magic_cmd
3444deplibs_check_method=$lt_cv_deplibs_check_method
3445test -z "$deplibs_check_method" && deplibs_check_method=unknown
3446
3447
3448
3449
3450# If no C compiler was specified, use CC.
3451LTCC=${LTCC-"$CC"}
3452
3453# If no C compiler flags were specified, use CFLAGS.
3454LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3455
3456# Allow CC to be a program name with arguments.
3457compiler=$CC
3458
3459
3460# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3461if test "${enable_libtool_lock+set}" = set; then
3462  enableval="$enable_libtool_lock"
3463
3464fi;
3465test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3466
3467# Some flags need to be propagated to the compiler or linker for good
3468# libtool support.
3469case $host in
3470ia64-*-hpux*)
3471  # Find out which ABI we are using.
3472  echo 'int i;' > conftest.$ac_ext
3473  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3474  (eval $ac_compile) 2>&5
3475  ac_status=$?
3476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3477  (exit $ac_status); }; then
3478    case `/usr/bin/file conftest.$ac_objext` in
3479    *ELF-32*)
3480      HPUX_IA64_MODE="32"
3481      ;;
3482    *ELF-64*)
3483      HPUX_IA64_MODE="64"
3484      ;;
3485    esac
3486  fi
3487  rm -rf conftest*
3488  ;;
3489*-*-irix6*)
3490  # Find out which ABI we are using.
3491  echo '#line 3491 "configure"' > conftest.$ac_ext
3492  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3493  (eval $ac_compile) 2>&5
3494  ac_status=$?
3495  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3496  (exit $ac_status); }; then
3497   if test "$lt_cv_prog_gnu_ld" = yes; then
3498    case `/usr/bin/file conftest.$ac_objext` in
3499    *32-bit*)
3500      LD="${LD-ld} -melf32bsmip"
3501      ;;
3502    *N32*)
3503      LD="${LD-ld} -melf32bmipn32"
3504      ;;
3505    *64-bit*)
3506      LD="${LD-ld} -melf64bmip"
3507      ;;
3508    esac
3509   else
3510    case `/usr/bin/file conftest.$ac_objext` in
3511    *32-bit*)
3512      LD="${LD-ld} -32"
3513      ;;
3514    *N32*)
3515      LD="${LD-ld} -n32"
3516      ;;
3517    *64-bit*)
3518      LD="${LD-ld} -64"
3519      ;;
3520    esac
3521   fi
3522  fi
3523  rm -rf conftest*
3524  ;;
3525
3526x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3527  # Find out which ABI we are using.
3528  echo 'int i;' > conftest.$ac_ext
3529  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3530  (eval $ac_compile) 2>&5
3531  ac_status=$?
3532  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533  (exit $ac_status); }; then
3534    case `/usr/bin/file conftest.o` in
3535    *32-bit*)
3536      case $host in
3537        x86_64-*linux*)
3538          LD="${LD-ld} -m elf_i386"
3539          ;;
3540        ppc64-*linux*|powerpc64-*linux*)
3541          LD="${LD-ld} -m elf32ppclinux"
3542          ;;
3543        s390x-*linux*)
3544          LD="${LD-ld} -m elf_s390"
3545          ;;
3546        sparc64-*linux*)
3547          LD="${LD-ld} -m elf32_sparc"
3548          ;;
3549      esac
3550      ;;
3551    *64-bit*)
3552      case $host in
3553        x86_64-*linux*)
3554          LD="${LD-ld} -m elf_x86_64"
3555          ;;
3556        ppc*-*linux*|powerpc*-*linux*)
3557          LD="${LD-ld} -m elf64ppc"
3558          ;;
3559        s390*-*linux*)
3560          LD="${LD-ld} -m elf64_s390"
3561          ;;
3562        sparc*-*linux*)
3563          LD="${LD-ld} -m elf64_sparc"
3564          ;;
3565      esac
3566      ;;
3567    esac
3568  fi
3569  rm -rf conftest*
3570  ;;
3571
3572*-*-sco3.2v5*)
3573  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3574  SAVE_CFLAGS="$CFLAGS"
3575  CFLAGS="$CFLAGS -belf"
3576  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3577echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3578if test "${lt_cv_cc_needs_belf+set}" = set; then
3579  echo $ECHO_N "(cached) $ECHO_C" >&6
3580else
3581  ac_ext=c
3582ac_cpp='$CPP $CPPFLAGS'
3583ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3584ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3585ac_compiler_gnu=$ac_cv_c_compiler_gnu
3586
3587     cat >conftest.$ac_ext <<_ACEOF
3588/* confdefs.h.  */
3589_ACEOF
3590cat confdefs.h >>conftest.$ac_ext
3591cat >>conftest.$ac_ext <<_ACEOF
3592/* end confdefs.h.  */
3593
3594int
3595main ()
3596{
3597
3598  ;
3599  return 0;
3600}
3601_ACEOF
3602rm -f conftest.$ac_objext conftest$ac_exeext
3603if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3604  (eval $ac_link) 2>conftest.er1
3605  ac_status=$?
3606  grep -v '^ *+' conftest.er1 >conftest.err
3607  rm -f conftest.er1
3608  cat conftest.err >&5
3609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3610  (exit $ac_status); } &&
3611	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
3612  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3613  (eval $ac_try) 2>&5
3614  ac_status=$?
3615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3616  (exit $ac_status); }; } &&
3617	 { ac_try='test -s conftest$ac_exeext'
3618  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3619  (eval $ac_try) 2>&5
3620  ac_status=$?
3621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3622  (exit $ac_status); }; }; then
3623  lt_cv_cc_needs_belf=yes
3624else
3625  echo "$as_me: failed program was:" >&5
3626sed 's/^/| /' conftest.$ac_ext >&5
3627
3628lt_cv_cc_needs_belf=no
3629fi
3630rm -f conftest.err conftest.$ac_objext \
3631      conftest$ac_exeext conftest.$ac_ext
3632     ac_ext=c
3633ac_cpp='$CPP $CPPFLAGS'
3634ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3635ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3636ac_compiler_gnu=$ac_cv_c_compiler_gnu
3637
3638fi
3639echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3640echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3641  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3642    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3643    CFLAGS="$SAVE_CFLAGS"
3644  fi
3645  ;;
3646sparc*-*solaris*)
3647  # Find out which ABI we are using.
3648  echo 'int i;' > conftest.$ac_ext
3649  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3650  (eval $ac_compile) 2>&5
3651  ac_status=$?
3652  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3653  (exit $ac_status); }; then
3654    case `/usr/bin/file conftest.o` in
3655    *64-bit*)
3656      case $lt_cv_prog_gnu_ld in
3657      yes*) LD="${LD-ld} -m elf64_sparc" ;;
3658      *)    LD="${LD-ld} -64" ;;
3659      esac
3660      ;;
3661    esac
3662  fi
3663  rm -rf conftest*
3664  ;;
3665
3666
3667esac
3668
3669need_locks="$enable_libtool_lock"
3670
3671
3672ac_ext=c
3673ac_cpp='$CPP $CPPFLAGS'
3674ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3675ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3676ac_compiler_gnu=$ac_cv_c_compiler_gnu
3677echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3678echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3679# On Suns, sometimes $CPP names a directory.
3680if test -n "$CPP" && test -d "$CPP"; then
3681  CPP=
3682fi
3683if test -z "$CPP"; then
3684  if test "${ac_cv_prog_CPP+set}" = set; then
3685  echo $ECHO_N "(cached) $ECHO_C" >&6
3686else
3687      # Double quotes because CPP needs to be expanded
3688    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3689    do
3690      ac_preproc_ok=false
3691for ac_c_preproc_warn_flag in '' yes
3692do
3693  # Use a header file that comes with gcc, so configuring glibc
3694  # with a fresh cross-compiler works.
3695  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3696  # <limits.h> exists even on freestanding compilers.
3697  # On the NeXT, cc -E runs the code through the compiler's parser,
3698  # not just through cpp. "Syntax error" is here to catch this case.
3699  cat >conftest.$ac_ext <<_ACEOF
3700/* confdefs.h.  */
3701_ACEOF
3702cat confdefs.h >>conftest.$ac_ext
3703cat >>conftest.$ac_ext <<_ACEOF
3704/* end confdefs.h.  */
3705#ifdef __STDC__
3706# include <limits.h>
3707#else
3708# include <assert.h>
3709#endif
3710		     Syntax error
3711_ACEOF
3712if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3713  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3714  ac_status=$?
3715  grep -v '^ *+' conftest.er1 >conftest.err
3716  rm -f conftest.er1
3717  cat conftest.err >&5
3718  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719  (exit $ac_status); } >/dev/null; then
3720  if test -s conftest.err; then
3721    ac_cpp_err=$ac_c_preproc_warn_flag
3722    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3723  else
3724    ac_cpp_err=
3725  fi
3726else
3727  ac_cpp_err=yes
3728fi
3729if test -z "$ac_cpp_err"; then
3730  :
3731else
3732  echo "$as_me: failed program was:" >&5
3733sed 's/^/| /' conftest.$ac_ext >&5
3734
3735  # Broken: fails on valid input.
3736continue
3737fi
3738rm -f conftest.err conftest.$ac_ext
3739
3740  # OK, works on sane cases.  Now check whether non-existent headers
3741  # can be detected and how.
3742  cat >conftest.$ac_ext <<_ACEOF
3743/* confdefs.h.  */
3744_ACEOF
3745cat confdefs.h >>conftest.$ac_ext
3746cat >>conftest.$ac_ext <<_ACEOF
3747/* end confdefs.h.  */
3748#include <ac_nonexistent.h>
3749_ACEOF
3750if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3751  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3752  ac_status=$?
3753  grep -v '^ *+' conftest.er1 >conftest.err
3754  rm -f conftest.er1
3755  cat conftest.err >&5
3756  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3757  (exit $ac_status); } >/dev/null; then
3758  if test -s conftest.err; then
3759    ac_cpp_err=$ac_c_preproc_warn_flag
3760    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3761  else
3762    ac_cpp_err=
3763  fi
3764else
3765  ac_cpp_err=yes
3766fi
3767if test -z "$ac_cpp_err"; then
3768  # Broken: success on invalid input.
3769continue
3770else
3771  echo "$as_me: failed program was:" >&5
3772sed 's/^/| /' conftest.$ac_ext >&5
3773
3774  # Passes both tests.
3775ac_preproc_ok=:
3776break
3777fi
3778rm -f conftest.err conftest.$ac_ext
3779
3780done
3781# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3782rm -f conftest.err conftest.$ac_ext
3783if $ac_preproc_ok; then
3784  break
3785fi
3786
3787    done
3788    ac_cv_prog_CPP=$CPP
3789
3790fi
3791  CPP=$ac_cv_prog_CPP
3792else
3793  ac_cv_prog_CPP=$CPP
3794fi
3795echo "$as_me:$LINENO: result: $CPP" >&5
3796echo "${ECHO_T}$CPP" >&6
3797ac_preproc_ok=false
3798for ac_c_preproc_warn_flag in '' yes
3799do
3800  # Use a header file that comes with gcc, so configuring glibc
3801  # with a fresh cross-compiler works.
3802  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3803  # <limits.h> exists even on freestanding compilers.
3804  # On the NeXT, cc -E runs the code through the compiler's parser,
3805  # not just through cpp. "Syntax error" is here to catch this case.
3806  cat >conftest.$ac_ext <<_ACEOF
3807/* confdefs.h.  */
3808_ACEOF
3809cat confdefs.h >>conftest.$ac_ext
3810cat >>conftest.$ac_ext <<_ACEOF
3811/* end confdefs.h.  */
3812#ifdef __STDC__
3813# include <limits.h>
3814#else
3815# include <assert.h>
3816#endif
3817		     Syntax error
3818_ACEOF
3819if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3820  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3821  ac_status=$?
3822  grep -v '^ *+' conftest.er1 >conftest.err
3823  rm -f conftest.er1
3824  cat conftest.err >&5
3825  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3826  (exit $ac_status); } >/dev/null; then
3827  if test -s conftest.err; then
3828    ac_cpp_err=$ac_c_preproc_warn_flag
3829    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3830  else
3831    ac_cpp_err=
3832  fi
3833else
3834  ac_cpp_err=yes
3835fi
3836if test -z "$ac_cpp_err"; then
3837  :
3838else
3839  echo "$as_me: failed program was:" >&5
3840sed 's/^/| /' conftest.$ac_ext >&5
3841
3842  # Broken: fails on valid input.
3843continue
3844fi
3845rm -f conftest.err conftest.$ac_ext
3846
3847  # OK, works on sane cases.  Now check whether non-existent headers
3848  # can be detected and how.
3849  cat >conftest.$ac_ext <<_ACEOF
3850/* confdefs.h.  */
3851_ACEOF
3852cat confdefs.h >>conftest.$ac_ext
3853cat >>conftest.$ac_ext <<_ACEOF
3854/* end confdefs.h.  */
3855#include <ac_nonexistent.h>
3856_ACEOF
3857if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3858  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3859  ac_status=$?
3860  grep -v '^ *+' conftest.er1 >conftest.err
3861  rm -f conftest.er1
3862  cat conftest.err >&5
3863  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3864  (exit $ac_status); } >/dev/null; then
3865  if test -s conftest.err; then
3866    ac_cpp_err=$ac_c_preproc_warn_flag
3867    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3868  else
3869    ac_cpp_err=
3870  fi
3871else
3872  ac_cpp_err=yes
3873fi
3874if test -z "$ac_cpp_err"; then
3875  # Broken: success on invalid input.
3876continue
3877else
3878  echo "$as_me: failed program was:" >&5
3879sed 's/^/| /' conftest.$ac_ext >&5
3880
3881  # Passes both tests.
3882ac_preproc_ok=:
3883break
3884fi
3885rm -f conftest.err conftest.$ac_ext
3886
3887done
3888# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3889rm -f conftest.err conftest.$ac_ext
3890if $ac_preproc_ok; then
3891  :
3892else
3893  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3894See \`config.log' for more details." >&5
3895echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3896See \`config.log' for more details." >&2;}
3897   { (exit 1); exit 1; }; }
3898fi
3899
3900ac_ext=c
3901ac_cpp='$CPP $CPPFLAGS'
3902ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3903ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3904ac_compiler_gnu=$ac_cv_c_compiler_gnu
3905
3906
3907echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3908echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3909if test "${ac_cv_header_stdc+set}" = set; then
3910  echo $ECHO_N "(cached) $ECHO_C" >&6
3911else
3912  cat >conftest.$ac_ext <<_ACEOF
3913/* confdefs.h.  */
3914_ACEOF
3915cat confdefs.h >>conftest.$ac_ext
3916cat >>conftest.$ac_ext <<_ACEOF
3917/* end confdefs.h.  */
3918#include <stdlib.h>
3919#include <stdarg.h>
3920#include <string.h>
3921#include <float.h>
3922
3923int
3924main ()
3925{
3926
3927  ;
3928  return 0;
3929}
3930_ACEOF
3931rm -f conftest.$ac_objext
3932if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3933  (eval $ac_compile) 2>conftest.er1
3934  ac_status=$?
3935  grep -v '^ *+' conftest.er1 >conftest.err
3936  rm -f conftest.er1
3937  cat conftest.err >&5
3938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3939  (exit $ac_status); } &&
3940	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
3941  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3942  (eval $ac_try) 2>&5
3943  ac_status=$?
3944  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3945  (exit $ac_status); }; } &&
3946	 { ac_try='test -s conftest.$ac_objext'
3947  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3948  (eval $ac_try) 2>&5
3949  ac_status=$?
3950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3951  (exit $ac_status); }; }; then
3952  ac_cv_header_stdc=yes
3953else
3954  echo "$as_me: failed program was:" >&5
3955sed 's/^/| /' conftest.$ac_ext >&5
3956
3957ac_cv_header_stdc=no
3958fi
3959rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3960
3961if test $ac_cv_header_stdc = yes; then
3962  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3963  cat >conftest.$ac_ext <<_ACEOF
3964/* confdefs.h.  */
3965_ACEOF
3966cat confdefs.h >>conftest.$ac_ext
3967cat >>conftest.$ac_ext <<_ACEOF
3968/* end confdefs.h.  */
3969#include <string.h>
3970
3971_ACEOF
3972if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3973  $EGREP "memchr" >/dev/null 2>&1; then
3974  :
3975else
3976  ac_cv_header_stdc=no
3977fi
3978rm -f conftest*
3979
3980fi
3981
3982if test $ac_cv_header_stdc = yes; then
3983  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3984  cat >conftest.$ac_ext <<_ACEOF
3985/* confdefs.h.  */
3986_ACEOF
3987cat confdefs.h >>conftest.$ac_ext
3988cat >>conftest.$ac_ext <<_ACEOF
3989/* end confdefs.h.  */
3990#include <stdlib.h>
3991
3992_ACEOF
3993if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3994  $EGREP "free" >/dev/null 2>&1; then
3995  :
3996else
3997  ac_cv_header_stdc=no
3998fi
3999rm -f conftest*
4000
4001fi
4002
4003if test $ac_cv_header_stdc = yes; then
4004  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4005  if test "$cross_compiling" = yes; then
4006  :
4007else
4008  cat >conftest.$ac_ext <<_ACEOF
4009/* confdefs.h.  */
4010_ACEOF
4011cat confdefs.h >>conftest.$ac_ext
4012cat >>conftest.$ac_ext <<_ACEOF
4013/* end confdefs.h.  */
4014#include <ctype.h>
4015#if ((' ' & 0x0FF) == 0x020)
4016# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4017# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4018#else
4019# define ISLOWER(c) \
4020		   (('a' <= (c) && (c) <= 'i') \
4021		     || ('j' <= (c) && (c) <= 'r') \
4022		     || ('s' <= (c) && (c) <= 'z'))
4023# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4024#endif
4025
4026#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4027int
4028main ()
4029{
4030  int i;
4031  for (i = 0; i < 256; i++)
4032    if (XOR (islower (i), ISLOWER (i))
4033	|| toupper (i) != TOUPPER (i))
4034      exit(2);
4035  exit (0);
4036}
4037_ACEOF
4038rm -f conftest$ac_exeext
4039if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4040  (eval $ac_link) 2>&5
4041  ac_status=$?
4042  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4043  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4044  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4045  (eval $ac_try) 2>&5
4046  ac_status=$?
4047  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4048  (exit $ac_status); }; }; then
4049  :
4050else
4051  echo "$as_me: program exited with status $ac_status" >&5
4052echo "$as_me: failed program was:" >&5
4053sed 's/^/| /' conftest.$ac_ext >&5
4054
4055( exit $ac_status )
4056ac_cv_header_stdc=no
4057fi
4058rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4059fi
4060fi
4061fi
4062echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4063echo "${ECHO_T}$ac_cv_header_stdc" >&6
4064if test $ac_cv_header_stdc = yes; then
4065
4066cat >>confdefs.h <<\_ACEOF
4067#define STDC_HEADERS 1
4068_ACEOF
4069
4070fi
4071
4072# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4083		  inttypes.h stdint.h unistd.h
4084do
4085as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4086echo "$as_me:$LINENO: checking for $ac_header" >&5
4087echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4088if eval "test \"\${$as_ac_Header+set}\" = set"; then
4089  echo $ECHO_N "(cached) $ECHO_C" >&6
4090else
4091  cat >conftest.$ac_ext <<_ACEOF
4092/* confdefs.h.  */
4093_ACEOF
4094cat confdefs.h >>conftest.$ac_ext
4095cat >>conftest.$ac_ext <<_ACEOF
4096/* end confdefs.h.  */
4097$ac_includes_default
4098
4099#include <$ac_header>
4100_ACEOF
4101rm -f conftest.$ac_objext
4102if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4103  (eval $ac_compile) 2>conftest.er1
4104  ac_status=$?
4105  grep -v '^ *+' conftest.er1 >conftest.err
4106  rm -f conftest.er1
4107  cat conftest.err >&5
4108  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4109  (exit $ac_status); } &&
4110	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
4111  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4112  (eval $ac_try) 2>&5
4113  ac_status=$?
4114  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4115  (exit $ac_status); }; } &&
4116	 { ac_try='test -s conftest.$ac_objext'
4117  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4118  (eval $ac_try) 2>&5
4119  ac_status=$?
4120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4121  (exit $ac_status); }; }; then
4122  eval "$as_ac_Header=yes"
4123else
4124  echo "$as_me: failed program was:" >&5
4125sed 's/^/| /' conftest.$ac_ext >&5
4126
4127eval "$as_ac_Header=no"
4128fi
4129rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4130fi
4131echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4132echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4133if test `eval echo '${'$as_ac_Header'}'` = yes; then
4134  cat >>confdefs.h <<_ACEOF
4135#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4136_ACEOF
4137
4138fi
4139
4140done
4141
4142
4143
4144for ac_header in dlfcn.h
4145do
4146as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4147if eval "test \"\${$as_ac_Header+set}\" = set"; then
4148  echo "$as_me:$LINENO: checking for $ac_header" >&5
4149echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4150if eval "test \"\${$as_ac_Header+set}\" = set"; then
4151  echo $ECHO_N "(cached) $ECHO_C" >&6
4152fi
4153echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4154echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4155else
4156  # Is the header compilable?
4157echo "$as_me:$LINENO: checking $ac_header usability" >&5
4158echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4159cat >conftest.$ac_ext <<_ACEOF
4160/* confdefs.h.  */
4161_ACEOF
4162cat confdefs.h >>conftest.$ac_ext
4163cat >>conftest.$ac_ext <<_ACEOF
4164/* end confdefs.h.  */
4165$ac_includes_default
4166#include <$ac_header>
4167_ACEOF
4168rm -f conftest.$ac_objext
4169if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4170  (eval $ac_compile) 2>conftest.er1
4171  ac_status=$?
4172  grep -v '^ *+' conftest.er1 >conftest.err
4173  rm -f conftest.er1
4174  cat conftest.err >&5
4175  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4176  (exit $ac_status); } &&
4177	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
4178  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4179  (eval $ac_try) 2>&5
4180  ac_status=$?
4181  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182  (exit $ac_status); }; } &&
4183	 { ac_try='test -s conftest.$ac_objext'
4184  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4185  (eval $ac_try) 2>&5
4186  ac_status=$?
4187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188  (exit $ac_status); }; }; then
4189  ac_header_compiler=yes
4190else
4191  echo "$as_me: failed program was:" >&5
4192sed 's/^/| /' conftest.$ac_ext >&5
4193
4194ac_header_compiler=no
4195fi
4196rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4197echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4198echo "${ECHO_T}$ac_header_compiler" >&6
4199
4200# Is the header present?
4201echo "$as_me:$LINENO: checking $ac_header presence" >&5
4202echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4203cat >conftest.$ac_ext <<_ACEOF
4204/* confdefs.h.  */
4205_ACEOF
4206cat confdefs.h >>conftest.$ac_ext
4207cat >>conftest.$ac_ext <<_ACEOF
4208/* end confdefs.h.  */
4209#include <$ac_header>
4210_ACEOF
4211if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4212  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4213  ac_status=$?
4214  grep -v '^ *+' conftest.er1 >conftest.err
4215  rm -f conftest.er1
4216  cat conftest.err >&5
4217  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4218  (exit $ac_status); } >/dev/null; then
4219  if test -s conftest.err; then
4220    ac_cpp_err=$ac_c_preproc_warn_flag
4221    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4222  else
4223    ac_cpp_err=
4224  fi
4225else
4226  ac_cpp_err=yes
4227fi
4228if test -z "$ac_cpp_err"; then
4229  ac_header_preproc=yes
4230else
4231  echo "$as_me: failed program was:" >&5
4232sed 's/^/| /' conftest.$ac_ext >&5
4233
4234  ac_header_preproc=no
4235fi
4236rm -f conftest.err conftest.$ac_ext
4237echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4238echo "${ECHO_T}$ac_header_preproc" >&6
4239
4240# So?  What about this header?
4241case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4242  yes:no: )
4243    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4244echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4245    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4246echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4247    ac_header_preproc=yes
4248    ;;
4249  no:yes:* )
4250    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4251echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4252    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4253echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4254    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4255echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4256    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4257echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4258    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4259echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4260    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4261echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4262    (
4263      cat <<\_ASBOX
4264## --------------------------------------------- ##
4265## Report this to quesa_list@designcommunity.com ##
4266## --------------------------------------------- ##
4267_ASBOX
4268    ) |
4269      sed "s/^/$as_me: WARNING:     /" >&2
4270    ;;
4271esac
4272echo "$as_me:$LINENO: checking for $ac_header" >&5
4273echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4274if eval "test \"\${$as_ac_Header+set}\" = set"; then
4275  echo $ECHO_N "(cached) $ECHO_C" >&6
4276else
4277  eval "$as_ac_Header=\$ac_header_preproc"
4278fi
4279echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4280echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4281
4282fi
4283if test `eval echo '${'$as_ac_Header'}'` = yes; then
4284  cat >>confdefs.h <<_ACEOF
4285#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4286_ACEOF
4287
4288fi
4289
4290done
4291
4292ac_ext=cc
4293ac_cpp='$CXXCPP $CPPFLAGS'
4294ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4295ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4296ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4297if test -n "$ac_tool_prefix"; then
4298  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4299  do
4300    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4301set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4302echo "$as_me:$LINENO: checking for $ac_word" >&5
4303echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4304if test "${ac_cv_prog_CXX+set}" = set; then
4305  echo $ECHO_N "(cached) $ECHO_C" >&6
4306else
4307  if test -n "$CXX"; then
4308  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4309else
4310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4311for as_dir in $PATH
4312do
4313  IFS=$as_save_IFS
4314  test -z "$as_dir" && as_dir=.
4315  for ac_exec_ext in '' $ac_executable_extensions; do
4316  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4317    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4318    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4319    break 2
4320  fi
4321done
4322done
4323
4324fi
4325fi
4326CXX=$ac_cv_prog_CXX
4327if test -n "$CXX"; then
4328  echo "$as_me:$LINENO: result: $CXX" >&5
4329echo "${ECHO_T}$CXX" >&6
4330else
4331  echo "$as_me:$LINENO: result: no" >&5
4332echo "${ECHO_T}no" >&6
4333fi
4334
4335    test -n "$CXX" && break
4336  done
4337fi
4338if test -z "$CXX"; then
4339  ac_ct_CXX=$CXX
4340  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4341do
4342  # Extract the first word of "$ac_prog", so it can be a program name with args.
4343set dummy $ac_prog; ac_word=$2
4344echo "$as_me:$LINENO: checking for $ac_word" >&5
4345echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4346if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4347  echo $ECHO_N "(cached) $ECHO_C" >&6
4348else
4349  if test -n "$ac_ct_CXX"; then
4350  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4351else
4352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4353for as_dir in $PATH
4354do
4355  IFS=$as_save_IFS
4356  test -z "$as_dir" && as_dir=.
4357  for ac_exec_ext in '' $ac_executable_extensions; do
4358  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4359    ac_cv_prog_ac_ct_CXX="$ac_prog"
4360    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4361    break 2
4362  fi
4363done
4364done
4365
4366fi
4367fi
4368ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4369if test -n "$ac_ct_CXX"; then
4370  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4371echo "${ECHO_T}$ac_ct_CXX" >&6
4372else
4373  echo "$as_me:$LINENO: result: no" >&5
4374echo "${ECHO_T}no" >&6
4375fi
4376
4377  test -n "$ac_ct_CXX" && break
4378done
4379test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4380
4381  CXX=$ac_ct_CXX
4382fi
4383
4384
4385# Provide some information about the compiler.
4386echo "$as_me:$LINENO:" \
4387     "checking for C++ compiler version" >&5
4388ac_compiler=`set X $ac_compile; echo $2`
4389{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4390  (eval $ac_compiler --version </dev/null >&5) 2>&5
4391  ac_status=$?
4392  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393  (exit $ac_status); }
4394{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4395  (eval $ac_compiler -v </dev/null >&5) 2>&5
4396  ac_status=$?
4397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4398  (exit $ac_status); }
4399{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4400  (eval $ac_compiler -V </dev/null >&5) 2>&5
4401  ac_status=$?
4402  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4403  (exit $ac_status); }
4404
4405echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4406echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4407if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4408  echo $ECHO_N "(cached) $ECHO_C" >&6
4409else
4410  cat >conftest.$ac_ext <<_ACEOF
4411/* confdefs.h.  */
4412_ACEOF
4413cat confdefs.h >>conftest.$ac_ext
4414cat >>conftest.$ac_ext <<_ACEOF
4415/* end confdefs.h.  */
4416
4417int
4418main ()
4419{
4420#ifndef __GNUC__
4421       choke me
4422#endif
4423
4424  ;
4425  return 0;
4426}
4427_ACEOF
4428rm -f conftest.$ac_objext
4429if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4430  (eval $ac_compile) 2>conftest.er1
4431  ac_status=$?
4432  grep -v '^ *+' conftest.er1 >conftest.err
4433  rm -f conftest.er1
4434  cat conftest.err >&5
4435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4436  (exit $ac_status); } &&
4437	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
4438  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4439  (eval $ac_try) 2>&5
4440  ac_status=$?
4441  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4442  (exit $ac_status); }; } &&
4443	 { ac_try='test -s conftest.$ac_objext'
4444  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4445  (eval $ac_try) 2>&5
4446  ac_status=$?
4447  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4448  (exit $ac_status); }; }; then
4449  ac_compiler_gnu=yes
4450else
4451  echo "$as_me: failed program was:" >&5
4452sed 's/^/| /' conftest.$ac_ext >&5
4453
4454ac_compiler_gnu=no
4455fi
4456rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4457ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4458
4459fi
4460echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4461echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4462GXX=`test $ac_compiler_gnu = yes && echo yes`
4463ac_test_CXXFLAGS=${CXXFLAGS+set}
4464ac_save_CXXFLAGS=$CXXFLAGS
4465CXXFLAGS="-g"
4466echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4467echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4468if test "${ac_cv_prog_cxx_g+set}" = set; then
4469  echo $ECHO_N "(cached) $ECHO_C" >&6
4470else
4471  cat >conftest.$ac_ext <<_ACEOF
4472/* confdefs.h.  */
4473_ACEOF
4474cat confdefs.h >>conftest.$ac_ext
4475cat >>conftest.$ac_ext <<_ACEOF
4476/* end confdefs.h.  */
4477
4478int
4479main ()
4480{
4481
4482  ;
4483  return 0;
4484}
4485_ACEOF
4486rm -f conftest.$ac_objext
4487if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4488  (eval $ac_compile) 2>conftest.er1
4489  ac_status=$?
4490  grep -v '^ *+' conftest.er1 >conftest.err
4491  rm -f conftest.er1
4492  cat conftest.err >&5
4493  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494  (exit $ac_status); } &&
4495	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
4496  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4497  (eval $ac_try) 2>&5
4498  ac_status=$?
4499  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4500  (exit $ac_status); }; } &&
4501	 { ac_try='test -s conftest.$ac_objext'
4502  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4503  (eval $ac_try) 2>&5
4504  ac_status=$?
4505  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4506  (exit $ac_status); }; }; then
4507  ac_cv_prog_cxx_g=yes
4508else
4509  echo "$as_me: failed program was:" >&5
4510sed 's/^/| /' conftest.$ac_ext >&5
4511
4512ac_cv_prog_cxx_g=no
4513fi
4514rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4515fi
4516echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4517echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4518if test "$ac_test_CXXFLAGS" = set; then
4519  CXXFLAGS=$ac_save_CXXFLAGS
4520elif test $ac_cv_prog_cxx_g = yes; then
4521  if test "$GXX" = yes; then
4522    CXXFLAGS="-g -O2"
4523  else
4524    CXXFLAGS="-g"
4525  fi
4526else
4527  if test "$GXX" = yes; then
4528    CXXFLAGS="-O2"
4529  else
4530    CXXFLAGS=
4531  fi
4532fi
4533for ac_declaration in \
4534   '' \
4535   'extern "C" void std::exit (int) throw (); using std::exit;' \
4536   'extern "C" void std::exit (int); using std::exit;' \
4537   'extern "C" void exit (int) throw ();' \
4538   'extern "C" void exit (int);' \
4539   'void exit (int);'
4540do
4541  cat >conftest.$ac_ext <<_ACEOF
4542/* confdefs.h.  */
4543_ACEOF
4544cat confdefs.h >>conftest.$ac_ext
4545cat >>conftest.$ac_ext <<_ACEOF
4546/* end confdefs.h.  */
4547$ac_declaration
4548#include <stdlib.h>
4549int
4550main ()
4551{
4552exit (42);
4553  ;
4554  return 0;
4555}
4556_ACEOF
4557rm -f conftest.$ac_objext
4558if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4559  (eval $ac_compile) 2>conftest.er1
4560  ac_status=$?
4561  grep -v '^ *+' conftest.er1 >conftest.err
4562  rm -f conftest.er1
4563  cat conftest.err >&5
4564  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4565  (exit $ac_status); } &&
4566	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
4567  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4568  (eval $ac_try) 2>&5
4569  ac_status=$?
4570  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571  (exit $ac_status); }; } &&
4572	 { ac_try='test -s conftest.$ac_objext'
4573  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4574  (eval $ac_try) 2>&5
4575  ac_status=$?
4576  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4577  (exit $ac_status); }; }; then
4578  :
4579else
4580  echo "$as_me: failed program was:" >&5
4581sed 's/^/| /' conftest.$ac_ext >&5
4582
4583continue
4584fi
4585rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4586  cat >conftest.$ac_ext <<_ACEOF
4587/* confdefs.h.  */
4588_ACEOF
4589cat confdefs.h >>conftest.$ac_ext
4590cat >>conftest.$ac_ext <<_ACEOF
4591/* end confdefs.h.  */
4592$ac_declaration
4593int
4594main ()
4595{
4596exit (42);
4597  ;
4598  return 0;
4599}
4600_ACEOF
4601rm -f conftest.$ac_objext
4602if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4603  (eval $ac_compile) 2>conftest.er1
4604  ac_status=$?
4605  grep -v '^ *+' conftest.er1 >conftest.err
4606  rm -f conftest.er1
4607  cat conftest.err >&5
4608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4609  (exit $ac_status); } &&
4610	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
4611  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4612  (eval $ac_try) 2>&5
4613  ac_status=$?
4614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4615  (exit $ac_status); }; } &&
4616	 { ac_try='test -s conftest.$ac_objext'
4617  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4618  (eval $ac_try) 2>&5
4619  ac_status=$?
4620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4621  (exit $ac_status); }; }; then
4622  break
4623else
4624  echo "$as_me: failed program was:" >&5
4625sed 's/^/| /' conftest.$ac_ext >&5
4626
4627fi
4628rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4629done
4630rm -f conftest*
4631if test -n "$ac_declaration"; then
4632  echo '#ifdef __cplusplus' >>confdefs.h
4633  echo $ac_declaration      >>confdefs.h
4634  echo '#endif'             >>confdefs.h
4635fi
4636
4637ac_ext=cc
4638ac_cpp='$CXXCPP $CPPFLAGS'
4639ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4640ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4641ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4642
4643
4644
4645if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4646    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4647    (test "X$CXX" != "Xg++"))) ; then
4648  ac_ext=cc
4649ac_cpp='$CXXCPP $CPPFLAGS'
4650ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4651ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4652ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4653echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4654echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4655if test -z "$CXXCPP"; then
4656  if test "${ac_cv_prog_CXXCPP+set}" = set; then
4657  echo $ECHO_N "(cached) $ECHO_C" >&6
4658else
4659      # Double quotes because CXXCPP needs to be expanded
4660    for CXXCPP in "$CXX -E" "/lib/cpp"
4661    do
4662      ac_preproc_ok=false
4663for ac_cxx_preproc_warn_flag in '' yes
4664do
4665  # Use a header file that comes with gcc, so configuring glibc
4666  # with a fresh cross-compiler works.
4667  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4668  # <limits.h> exists even on freestanding compilers.
4669  # On the NeXT, cc -E runs the code through the compiler's parser,
4670  # not just through cpp. "Syntax error" is here to catch this case.
4671  cat >conftest.$ac_ext <<_ACEOF
4672/* confdefs.h.  */
4673_ACEOF
4674cat confdefs.h >>conftest.$ac_ext
4675cat >>conftest.$ac_ext <<_ACEOF
4676/* end confdefs.h.  */
4677#ifdef __STDC__
4678# include <limits.h>
4679#else
4680# include <assert.h>
4681#endif
4682		     Syntax error
4683_ACEOF
4684if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4685  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4686  ac_status=$?
4687  grep -v '^ *+' conftest.er1 >conftest.err
4688  rm -f conftest.er1
4689  cat conftest.err >&5
4690  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4691  (exit $ac_status); } >/dev/null; then
4692  if test -s conftest.err; then
4693    ac_cpp_err=$ac_cxx_preproc_warn_flag
4694    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4695  else
4696    ac_cpp_err=
4697  fi
4698else
4699  ac_cpp_err=yes
4700fi
4701if test -z "$ac_cpp_err"; then
4702  :
4703else
4704  echo "$as_me: failed program was:" >&5
4705sed 's/^/| /' conftest.$ac_ext >&5
4706
4707  # Broken: fails on valid input.
4708continue
4709fi
4710rm -f conftest.err conftest.$ac_ext
4711
4712  # OK, works on sane cases.  Now check whether non-existent headers
4713  # can be detected and how.
4714  cat >conftest.$ac_ext <<_ACEOF
4715/* confdefs.h.  */
4716_ACEOF
4717cat confdefs.h >>conftest.$ac_ext
4718cat >>conftest.$ac_ext <<_ACEOF
4719/* end confdefs.h.  */
4720#include <ac_nonexistent.h>
4721_ACEOF
4722if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4723  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4724  ac_status=$?
4725  grep -v '^ *+' conftest.er1 >conftest.err
4726  rm -f conftest.er1
4727  cat conftest.err >&5
4728  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4729  (exit $ac_status); } >/dev/null; then
4730  if test -s conftest.err; then
4731    ac_cpp_err=$ac_cxx_preproc_warn_flag
4732    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4733  else
4734    ac_cpp_err=
4735  fi
4736else
4737  ac_cpp_err=yes
4738fi
4739if test -z "$ac_cpp_err"; then
4740  # Broken: success on invalid input.
4741continue
4742else
4743  echo "$as_me: failed program was:" >&5
4744sed 's/^/| /' conftest.$ac_ext >&5
4745
4746  # Passes both tests.
4747ac_preproc_ok=:
4748break
4749fi
4750rm -f conftest.err conftest.$ac_ext
4751
4752done
4753# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4754rm -f conftest.err conftest.$ac_ext
4755if $ac_preproc_ok; then
4756  break
4757fi
4758
4759    done
4760    ac_cv_prog_CXXCPP=$CXXCPP
4761
4762fi
4763  CXXCPP=$ac_cv_prog_CXXCPP
4764else
4765  ac_cv_prog_CXXCPP=$CXXCPP
4766fi
4767echo "$as_me:$LINENO: result: $CXXCPP" >&5
4768echo "${ECHO_T}$CXXCPP" >&6
4769ac_preproc_ok=false
4770for ac_cxx_preproc_warn_flag in '' yes
4771do
4772  # Use a header file that comes with gcc, so configuring glibc
4773  # with a fresh cross-compiler works.
4774  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4775  # <limits.h> exists even on freestanding compilers.
4776  # On the NeXT, cc -E runs the code through the compiler's parser,
4777  # not just through cpp. "Syntax error" is here to catch this case.
4778  cat >conftest.$ac_ext <<_ACEOF
4779/* confdefs.h.  */
4780_ACEOF
4781cat confdefs.h >>conftest.$ac_ext
4782cat >>conftest.$ac_ext <<_ACEOF
4783/* end confdefs.h.  */
4784#ifdef __STDC__
4785# include <limits.h>
4786#else
4787# include <assert.h>
4788#endif
4789		     Syntax error
4790_ACEOF
4791if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4792  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4793  ac_status=$?
4794  grep -v '^ *+' conftest.er1 >conftest.err
4795  rm -f conftest.er1
4796  cat conftest.err >&5
4797  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4798  (exit $ac_status); } >/dev/null; then
4799  if test -s conftest.err; then
4800    ac_cpp_err=$ac_cxx_preproc_warn_flag
4801    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4802  else
4803    ac_cpp_err=
4804  fi
4805else
4806  ac_cpp_err=yes
4807fi
4808if test -z "$ac_cpp_err"; then
4809  :
4810else
4811  echo "$as_me: failed program was:" >&5
4812sed 's/^/| /' conftest.$ac_ext >&5
4813
4814  # Broken: fails on valid input.
4815continue
4816fi
4817rm -f conftest.err conftest.$ac_ext
4818
4819  # OK, works on sane cases.  Now check whether non-existent headers
4820  # can be detected and how.
4821  cat >conftest.$ac_ext <<_ACEOF
4822/* confdefs.h.  */
4823_ACEOF
4824cat confdefs.h >>conftest.$ac_ext
4825cat >>conftest.$ac_ext <<_ACEOF
4826/* end confdefs.h.  */
4827#include <ac_nonexistent.h>
4828_ACEOF
4829if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4830  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4831  ac_status=$?
4832  grep -v '^ *+' conftest.er1 >conftest.err
4833  rm -f conftest.er1
4834  cat conftest.err >&5
4835  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4836  (exit $ac_status); } >/dev/null; then
4837  if test -s conftest.err; then
4838    ac_cpp_err=$ac_cxx_preproc_warn_flag
4839    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4840  else
4841    ac_cpp_err=
4842  fi
4843else
4844  ac_cpp_err=yes
4845fi
4846if test -z "$ac_cpp_err"; then
4847  # Broken: success on invalid input.
4848continue
4849else
4850  echo "$as_me: failed program was:" >&5
4851sed 's/^/| /' conftest.$ac_ext >&5
4852
4853  # Passes both tests.
4854ac_preproc_ok=:
4855break
4856fi
4857rm -f conftest.err conftest.$ac_ext
4858
4859done
4860# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4861rm -f conftest.err conftest.$ac_ext
4862if $ac_preproc_ok; then
4863  :
4864else
4865  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4866See \`config.log' for more details." >&5
4867echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4868See \`config.log' for more details." >&2;}
4869   { (exit 1); exit 1; }; }
4870fi
4871
4872ac_ext=cc
4873ac_cpp='$CXXCPP $CPPFLAGS'
4874ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4875ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4876ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4877
4878fi
4879
4880
4881ac_ext=f
4882ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4883ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4884ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4885if test -n "$ac_tool_prefix"; then
4886  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4887  do
4888    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4889set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4890echo "$as_me:$LINENO: checking for $ac_word" >&5
4891echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4892if test "${ac_cv_prog_F77+set}" = set; then
4893  echo $ECHO_N "(cached) $ECHO_C" >&6
4894else
4895  if test -n "$F77"; then
4896  ac_cv_prog_F77="$F77" # Let the user override the test.
4897else
4898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4899for as_dir in $PATH
4900do
4901  IFS=$as_save_IFS
4902  test -z "$as_dir" && as_dir=.
4903  for ac_exec_ext in '' $ac_executable_extensions; do
4904  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4905    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4906    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4907    break 2
4908  fi
4909done
4910done
4911
4912fi
4913fi
4914F77=$ac_cv_prog_F77
4915if test -n "$F77"; then
4916  echo "$as_me:$LINENO: result: $F77" >&5
4917echo "${ECHO_T}$F77" >&6
4918else
4919  echo "$as_me:$LINENO: result: no" >&5
4920echo "${ECHO_T}no" >&6
4921fi
4922
4923    test -n "$F77" && break
4924  done
4925fi
4926if test -z "$F77"; then
4927  ac_ct_F77=$F77
4928  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4929do
4930  # Extract the first word of "$ac_prog", so it can be a program name with args.
4931set dummy $ac_prog; ac_word=$2
4932echo "$as_me:$LINENO: checking for $ac_word" >&5
4933echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4934if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4935  echo $ECHO_N "(cached) $ECHO_C" >&6
4936else
4937  if test -n "$ac_ct_F77"; then
4938  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4939else
4940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4941for as_dir in $PATH
4942do
4943  IFS=$as_save_IFS
4944  test -z "$as_dir" && as_dir=.
4945  for ac_exec_ext in '' $ac_executable_extensions; do
4946  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4947    ac_cv_prog_ac_ct_F77="$ac_prog"
4948    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4949    break 2
4950  fi
4951done
4952done
4953
4954fi
4955fi
4956ac_ct_F77=$ac_cv_prog_ac_ct_F77
4957if test -n "$ac_ct_F77"; then
4958  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4959echo "${ECHO_T}$ac_ct_F77" >&6
4960else
4961  echo "$as_me:$LINENO: result: no" >&5
4962echo "${ECHO_T}no" >&6
4963fi
4964
4965  test -n "$ac_ct_F77" && break
4966done
4967
4968  F77=$ac_ct_F77
4969fi
4970
4971
4972# Provide some information about the compiler.
4973echo "$as_me:4973:" \
4974     "checking for Fortran 77 compiler version" >&5
4975ac_compiler=`set X $ac_compile; echo $2`
4976{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4977  (eval $ac_compiler --version </dev/null >&5) 2>&5
4978  ac_status=$?
4979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4980  (exit $ac_status); }
4981{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4982  (eval $ac_compiler -v </dev/null >&5) 2>&5
4983  ac_status=$?
4984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985  (exit $ac_status); }
4986{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4987  (eval $ac_compiler -V </dev/null >&5) 2>&5
4988  ac_status=$?
4989  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4990  (exit $ac_status); }
4991rm -f a.out
4992
4993# If we don't use `.F' as extension, the preprocessor is not run on the
4994# input file.  (Note that this only needs to work for GNU compilers.)
4995ac_save_ext=$ac_ext
4996ac_ext=F
4997echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4998echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4999if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5000  echo $ECHO_N "(cached) $ECHO_C" >&6
5001else
5002  cat >conftest.$ac_ext <<_ACEOF
5003      program main
5004#ifndef __GNUC__
5005       choke me
5006#endif
5007
5008      end
5009_ACEOF
5010rm -f conftest.$ac_objext
5011if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5012  (eval $ac_compile) 2>conftest.er1
5013  ac_status=$?
5014  grep -v '^ *+' conftest.er1 >conftest.err
5015  rm -f conftest.er1
5016  cat conftest.err >&5
5017  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5018  (exit $ac_status); } &&
5019	 { ac_try='test -z "$ac_f77_werror_flag"			 || test ! -s conftest.err'
5020  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5021  (eval $ac_try) 2>&5
5022  ac_status=$?
5023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5024  (exit $ac_status); }; } &&
5025	 { ac_try='test -s conftest.$ac_objext'
5026  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5027  (eval $ac_try) 2>&5
5028  ac_status=$?
5029  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5030  (exit $ac_status); }; }; then
5031  ac_compiler_gnu=yes
5032else
5033  echo "$as_me: failed program was:" >&5
5034sed 's/^/| /' conftest.$ac_ext >&5
5035
5036ac_compiler_gnu=no
5037fi
5038rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5039ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5040
5041fi
5042echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5043echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5044ac_ext=$ac_save_ext
5045ac_test_FFLAGS=${FFLAGS+set}
5046ac_save_FFLAGS=$FFLAGS
5047FFLAGS=
5048echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5049echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5050if test "${ac_cv_prog_f77_g+set}" = set; then
5051  echo $ECHO_N "(cached) $ECHO_C" >&6
5052else
5053  FFLAGS=-g
5054cat >conftest.$ac_ext <<_ACEOF
5055      program main
5056
5057      end
5058_ACEOF
5059rm -f conftest.$ac_objext
5060if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5061  (eval $ac_compile) 2>conftest.er1
5062  ac_status=$?
5063  grep -v '^ *+' conftest.er1 >conftest.err
5064  rm -f conftest.er1
5065  cat conftest.err >&5
5066  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5067  (exit $ac_status); } &&
5068	 { ac_try='test -z "$ac_f77_werror_flag"			 || test ! -s conftest.err'
5069  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5070  (eval $ac_try) 2>&5
5071  ac_status=$?
5072  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5073  (exit $ac_status); }; } &&
5074	 { ac_try='test -s conftest.$ac_objext'
5075  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5076  (eval $ac_try) 2>&5
5077  ac_status=$?
5078  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5079  (exit $ac_status); }; }; then
5080  ac_cv_prog_f77_g=yes
5081else
5082  echo "$as_me: failed program was:" >&5
5083sed 's/^/| /' conftest.$ac_ext >&5
5084
5085ac_cv_prog_f77_g=no
5086fi
5087rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5088
5089fi
5090echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5091echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5092if test "$ac_test_FFLAGS" = set; then
5093  FFLAGS=$ac_save_FFLAGS
5094elif test $ac_cv_prog_f77_g = yes; then
5095  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5096    FFLAGS="-g -O2"
5097  else
5098    FFLAGS="-g"
5099  fi
5100else
5101  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5102    FFLAGS="-O2"
5103  else
5104    FFLAGS=
5105  fi
5106fi
5107
5108G77=`test $ac_compiler_gnu = yes && echo yes`
5109ac_ext=c
5110ac_cpp='$CPP $CPPFLAGS'
5111ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5112ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5113ac_compiler_gnu=$ac_cv_c_compiler_gnu
5114
5115
5116
5117# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5118
5119# find the maximum length of command line arguments
5120echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5121echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5122if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5123  echo $ECHO_N "(cached) $ECHO_C" >&6
5124else
5125    i=0
5126  teststring="ABCD"
5127
5128  case $build_os in
5129  msdosdjgpp*)
5130    # On DJGPP, this test can blow up pretty badly due to problems in libc
5131    # (any single argument exceeding 2000 bytes causes a buffer overrun
5132    # during glob expansion).  Even if it were fixed, the result of this
5133    # check would be larger than it should be.
5134    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5135    ;;
5136
5137  gnu*)
5138    # Under GNU Hurd, this test is not required because there is
5139    # no limit to the length of command line arguments.
5140    # Libtool will interpret -1 as no limit whatsoever
5141    lt_cv_sys_max_cmd_len=-1;
5142    ;;
5143
5144  cygwin* | mingw*)
5145    # On Win9x/ME, this test blows up -- it succeeds, but takes
5146    # about 5 minutes as the teststring grows exponentially.
5147    # Worse, since 9x/ME are not pre-emptively multitasking,
5148    # you end up with a "frozen" computer, even though with patience
5149    # the test eventually succeeds (with a max line length of 256k).
5150    # Instead, let's just punt: use the minimum linelength reported by
5151    # all of the supported platforms: 8192 (on NT/2K/XP).
5152    lt_cv_sys_max_cmd_len=8192;
5153    ;;
5154
5155  amigaos*)
5156    # On AmigaOS with pdksh, this test takes hours, literally.
5157    # So we just punt and use a minimum line length of 8192.
5158    lt_cv_sys_max_cmd_len=8192;
5159    ;;
5160
5161  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5162    # This has been around since 386BSD, at least.  Likely further.
5163    if test -x /sbin/sysctl; then
5164      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5165    elif test -x /usr/sbin/sysctl; then
5166      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5167    else
5168      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5169    fi
5170    # And add a safety zone
5171    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5172    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5173    ;;
5174
5175  interix*)
5176    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5177    lt_cv_sys_max_cmd_len=196608
5178    ;;
5179
5180  osf*)
5181    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5182    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5183    # nice to cause kernel panics so lets avoid the loop below.
5184    # First set a reasonable default.
5185    lt_cv_sys_max_cmd_len=16384
5186    #
5187    if test -x /sbin/sysconfig; then
5188      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5189        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5190      esac
5191    fi
5192    ;;
5193  sco3.2v5*)
5194    lt_cv_sys_max_cmd_len=102400
5195    ;;
5196  sysv5* | sco5v6* | sysv4.2uw2*)
5197    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5198    if test -n "$kargmax"; then
5199      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
5200    else
5201      lt_cv_sys_max_cmd_len=32768
5202    fi
5203    ;;
5204  *)
5205    # If test is not a shell built-in, we'll probably end up computing a
5206    # maximum length that is only half of the actual maximum length, but
5207    # we can't tell.
5208    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5209    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5210	       = "XX$teststring") >/dev/null 2>&1 &&
5211	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
5212	    lt_cv_sys_max_cmd_len=$new_result &&
5213	    test $i != 17 # 1/2 MB should be enough
5214    do
5215      i=`expr $i + 1`
5216      teststring=$teststring$teststring
5217    done
5218    teststring=
5219    # Add a significant safety factor because C++ compilers can tack on massive
5220    # amounts of additional arguments before passing them to the linker.
5221    # It appears as though 1/2 is a usable value.
5222    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5223    ;;
5224  esac
5225
5226fi
5227
5228if test -n $lt_cv_sys_max_cmd_len ; then
5229  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5230echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5231else
5232  echo "$as_me:$LINENO: result: none" >&5
5233echo "${ECHO_T}none" >&6
5234fi
5235
5236
5237
5238
5239# Check for command to grab the raw symbol name followed by C symbol from nm.
5240echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5241echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5242if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5243  echo $ECHO_N "(cached) $ECHO_C" >&6
5244else
5245
5246# These are sane defaults that work on at least a few old systems.
5247# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5248
5249# Character class describing NM global symbol codes.
5250symcode='[BCDEGRST]'
5251
5252# Regexp to match symbols that can be accessed directly from C.
5253sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5254
5255# Transform an extracted symbol line into a proper C declaration
5256lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5257
5258# Transform an extracted symbol line into symbol name and symbol address
5259lt_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'"
5260
5261# Define system-specific variables.
5262case $host_os in
5263aix*)
5264  symcode='[BCDT]'
5265  ;;
5266cygwin* | mingw* | pw32*)
5267  symcode='[ABCDGISTW]'
5268  ;;
5269hpux*) # Its linker distinguishes data from code symbols
5270  if test "$host_cpu" = ia64; then
5271    symcode='[ABCDEGRST]'
5272  fi
5273  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5274  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'"
5275  ;;
5276linux* | k*bsd*-gnu)
5277  if test "$host_cpu" = ia64; then
5278    symcode='[ABCDGIRSTW]'
5279    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5280    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'"
5281  fi
5282  ;;
5283irix* | nonstopux*)
5284  symcode='[BCDEGRST]'
5285  ;;
5286osf*)
5287  symcode='[BCDEGQRST]'
5288  ;;
5289solaris*)
5290  symcode='[BDRT]'
5291  ;;
5292sco3.2v5*)
5293  symcode='[DT]'
5294  ;;
5295sysv4.2uw2*)
5296  symcode='[DT]'
5297  ;;
5298sysv5* | sco5v6* | unixware* | OpenUNIX*)
5299  symcode='[ABDT]'
5300  ;;
5301sysv4)
5302  symcode='[DFNSTU]'
5303  ;;
5304esac
5305
5306# Handle CRLF in mingw tool chain
5307opt_cr=
5308case $build_os in
5309mingw*)
5310  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5311  ;;
5312esac
5313
5314# If we're using GNU nm, then use its standard symbol codes.
5315case `$NM -V 2>&1` in
5316*GNU* | *'with BFD'*)
5317  symcode='[ABCDGIRSTW]' ;;
5318esac
5319
5320# Try without a prefix undercore, then with it.
5321for ac_symprfx in "" "_"; do
5322
5323  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5324  symxfrm="\\1 $ac_symprfx\\2 \\2"
5325
5326  # Write the raw and C identifiers.
5327  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5328
5329  # Check to see that the pipe works correctly.
5330  pipe_works=no
5331
5332  rm -f conftest*
5333  cat > conftest.$ac_ext <<EOF
5334#ifdef __cplusplus
5335extern "C" {
5336#endif
5337char nm_test_var;
5338void nm_test_func(){}
5339#ifdef __cplusplus
5340}
5341#endif
5342int main(){nm_test_var='a';nm_test_func();return(0);}
5343EOF
5344
5345  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5346  (eval $ac_compile) 2>&5
5347  ac_status=$?
5348  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5349  (exit $ac_status); }; then
5350    # Now try to grab the symbols.
5351    nlist=conftest.nm
5352    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5353  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5354  ac_status=$?
5355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5356  (exit $ac_status); } && test -s "$nlist"; then
5357      # Try sorting and uniquifying the output.
5358      if sort "$nlist" | uniq > "$nlist"T; then
5359	mv -f "$nlist"T "$nlist"
5360      else
5361	rm -f "$nlist"T
5362      fi
5363
5364      # Make sure that we snagged all the symbols we need.
5365      if grep ' nm_test_var$' "$nlist" >/dev/null; then
5366	if grep ' nm_test_func$' "$nlist" >/dev/null; then
5367	  cat <<EOF > conftest.$ac_ext
5368#ifdef __cplusplus
5369extern "C" {
5370#endif
5371
5372EOF
5373	  # Now generate the symbol file.
5374	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5375
5376	  cat <<EOF >> conftest.$ac_ext
5377#if defined (__STDC__) && __STDC__
5378# define lt_ptr_t void *
5379#else
5380# define lt_ptr_t char *
5381# define const
5382#endif
5383
5384/* The mapping between symbol names and symbols. */
5385const struct {
5386  const char *name;
5387  lt_ptr_t address;
5388}
5389lt_preloaded_symbols[] =
5390{
5391EOF
5392	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5393	  cat <<\EOF >> conftest.$ac_ext
5394  {0, (lt_ptr_t) 0}
5395};
5396
5397#ifdef __cplusplus
5398}
5399#endif
5400EOF
5401	  # Now try linking the two files.
5402	  mv conftest.$ac_objext conftstm.$ac_objext
5403	  lt_save_LIBS="$LIBS"
5404	  lt_save_CFLAGS="$CFLAGS"
5405	  LIBS="conftstm.$ac_objext"
5406	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5407	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5408  (eval $ac_link) 2>&5
5409  ac_status=$?
5410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411  (exit $ac_status); } && test -s conftest${ac_exeext}; then
5412	    pipe_works=yes
5413	  fi
5414	  LIBS="$lt_save_LIBS"
5415	  CFLAGS="$lt_save_CFLAGS"
5416	else
5417	  echo "cannot find nm_test_func in $nlist" >&5
5418	fi
5419      else
5420	echo "cannot find nm_test_var in $nlist" >&5
5421      fi
5422    else
5423      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5424    fi
5425  else
5426    echo "$progname: failed program was:" >&5
5427    cat conftest.$ac_ext >&5
5428  fi
5429  rm -f conftest* conftst*
5430
5431  # Do not use the global_symbol_pipe unless it works.
5432  if test "$pipe_works" = yes; then
5433    break
5434  else
5435    lt_cv_sys_global_symbol_pipe=
5436  fi
5437done
5438
5439fi
5440
5441if test -z "$lt_cv_sys_global_symbol_pipe"; then
5442  lt_cv_sys_global_symbol_to_cdecl=
5443fi
5444if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5445  echo "$as_me:$LINENO: result: failed" >&5
5446echo "${ECHO_T}failed" >&6
5447else
5448  echo "$as_me:$LINENO: result: ok" >&5
5449echo "${ECHO_T}ok" >&6
5450fi
5451
5452echo "$as_me:$LINENO: checking for objdir" >&5
5453echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5454if test "${lt_cv_objdir+set}" = set; then
5455  echo $ECHO_N "(cached) $ECHO_C" >&6
5456else
5457  rm -f .libs 2>/dev/null
5458mkdir .libs 2>/dev/null
5459if test -d .libs; then
5460  lt_cv_objdir=.libs
5461else
5462  # MS-DOS does not allow filenames that begin with a dot.
5463  lt_cv_objdir=_libs
5464fi
5465rmdir .libs 2>/dev/null
5466fi
5467echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5468echo "${ECHO_T}$lt_cv_objdir" >&6
5469objdir=$lt_cv_objdir
5470
5471
5472
5473
5474
5475case $host_os in
5476aix3*)
5477  # AIX sometimes has problems with the GCC collect2 program.  For some
5478  # reason, if we set the COLLECT_NAMES environment variable, the problems
5479  # vanish in a puff of smoke.
5480  if test "X${COLLECT_NAMES+set}" != Xset; then
5481    COLLECT_NAMES=
5482    export COLLECT_NAMES
5483  fi
5484  ;;
5485esac
5486
5487# Sed substitution that helps us do robust quoting.  It backslashifies
5488# metacharacters that are still active within double-quoted strings.
5489Xsed='sed -e 1s/^X//'
5490sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5491
5492# Same as above, but do not quote variable references.
5493double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5494
5495# Sed substitution to delay expansion of an escaped shell variable in a
5496# double_quote_subst'ed string.
5497delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5498
5499# Sed substitution to avoid accidental globbing in evaled expressions
5500no_glob_subst='s/\*/\\\*/g'
5501
5502# Constants:
5503rm="rm -f"
5504
5505# Global variables:
5506default_ofile=libtool
5507can_build_shared=yes
5508
5509# All known linkers require a `.a' archive for static linking (except MSVC,
5510# which needs '.lib').
5511libext=a
5512ltmain="$ac_aux_dir/ltmain.sh"
5513ofile="$default_ofile"
5514with_gnu_ld="$lt_cv_prog_gnu_ld"
5515
5516if test -n "$ac_tool_prefix"; then
5517  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5518set dummy ${ac_tool_prefix}ar; ac_word=$2
5519echo "$as_me:$LINENO: checking for $ac_word" >&5
5520echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5521if test "${ac_cv_prog_AR+set}" = set; then
5522  echo $ECHO_N "(cached) $ECHO_C" >&6
5523else
5524  if test -n "$AR"; then
5525  ac_cv_prog_AR="$AR" # Let the user override the test.
5526else
5527as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5528for as_dir in $PATH
5529do
5530  IFS=$as_save_IFS
5531  test -z "$as_dir" && as_dir=.
5532  for ac_exec_ext in '' $ac_executable_extensions; do
5533  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5534    ac_cv_prog_AR="${ac_tool_prefix}ar"
5535    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5536    break 2
5537  fi
5538done
5539done
5540
5541fi
5542fi
5543AR=$ac_cv_prog_AR
5544if test -n "$AR"; then
5545  echo "$as_me:$LINENO: result: $AR" >&5
5546echo "${ECHO_T}$AR" >&6
5547else
5548  echo "$as_me:$LINENO: result: no" >&5
5549echo "${ECHO_T}no" >&6
5550fi
5551
5552fi
5553if test -z "$ac_cv_prog_AR"; then
5554  ac_ct_AR=$AR
5555  # Extract the first word of "ar", so it can be a program name with args.
5556set dummy ar; ac_word=$2
5557echo "$as_me:$LINENO: checking for $ac_word" >&5
5558echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5559if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5560  echo $ECHO_N "(cached) $ECHO_C" >&6
5561else
5562  if test -n "$ac_ct_AR"; then
5563  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5564else
5565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5566for as_dir in $PATH
5567do
5568  IFS=$as_save_IFS
5569  test -z "$as_dir" && as_dir=.
5570  for ac_exec_ext in '' $ac_executable_extensions; do
5571  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5572    ac_cv_prog_ac_ct_AR="ar"
5573    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5574    break 2
5575  fi
5576done
5577done
5578
5579  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5580fi
5581fi
5582ac_ct_AR=$ac_cv_prog_ac_ct_AR
5583if test -n "$ac_ct_AR"; then
5584  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5585echo "${ECHO_T}$ac_ct_AR" >&6
5586else
5587  echo "$as_me:$LINENO: result: no" >&5
5588echo "${ECHO_T}no" >&6
5589fi
5590
5591  AR=$ac_ct_AR
5592else
5593  AR="$ac_cv_prog_AR"
5594fi
5595
5596if test -n "$ac_tool_prefix"; then
5597  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5598set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5599echo "$as_me:$LINENO: checking for $ac_word" >&5
5600echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5601if test "${ac_cv_prog_RANLIB+set}" = set; then
5602  echo $ECHO_N "(cached) $ECHO_C" >&6
5603else
5604  if test -n "$RANLIB"; then
5605  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5606else
5607as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5608for as_dir in $PATH
5609do
5610  IFS=$as_save_IFS
5611  test -z "$as_dir" && as_dir=.
5612  for ac_exec_ext in '' $ac_executable_extensions; do
5613  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5614    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5615    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5616    break 2
5617  fi
5618done
5619done
5620
5621fi
5622fi
5623RANLIB=$ac_cv_prog_RANLIB
5624if test -n "$RANLIB"; then
5625  echo "$as_me:$LINENO: result: $RANLIB" >&5
5626echo "${ECHO_T}$RANLIB" >&6
5627else
5628  echo "$as_me:$LINENO: result: no" >&5
5629echo "${ECHO_T}no" >&6
5630fi
5631
5632fi
5633if test -z "$ac_cv_prog_RANLIB"; then
5634  ac_ct_RANLIB=$RANLIB
5635  # Extract the first word of "ranlib", so it can be a program name with args.
5636set dummy ranlib; ac_word=$2
5637echo "$as_me:$LINENO: checking for $ac_word" >&5
5638echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5639if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5640  echo $ECHO_N "(cached) $ECHO_C" >&6
5641else
5642  if test -n "$ac_ct_RANLIB"; then
5643  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5644else
5645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5646for as_dir in $PATH
5647do
5648  IFS=$as_save_IFS
5649  test -z "$as_dir" && as_dir=.
5650  for ac_exec_ext in '' $ac_executable_extensions; do
5651  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5652    ac_cv_prog_ac_ct_RANLIB="ranlib"
5653    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5654    break 2
5655  fi
5656done
5657done
5658
5659  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5660fi
5661fi
5662ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5663if test -n "$ac_ct_RANLIB"; then
5664  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5665echo "${ECHO_T}$ac_ct_RANLIB" >&6
5666else
5667  echo "$as_me:$LINENO: result: no" >&5
5668echo "${ECHO_T}no" >&6
5669fi
5670
5671  RANLIB=$ac_ct_RANLIB
5672else
5673  RANLIB="$ac_cv_prog_RANLIB"
5674fi
5675
5676if test -n "$ac_tool_prefix"; then
5677  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5678set dummy ${ac_tool_prefix}strip; ac_word=$2
5679echo "$as_me:$LINENO: checking for $ac_word" >&5
5680echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5681if test "${ac_cv_prog_STRIP+set}" = set; then
5682  echo $ECHO_N "(cached) $ECHO_C" >&6
5683else
5684  if test -n "$STRIP"; then
5685  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5686else
5687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5688for as_dir in $PATH
5689do
5690  IFS=$as_save_IFS
5691  test -z "$as_dir" && as_dir=.
5692  for ac_exec_ext in '' $ac_executable_extensions; do
5693  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5694    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5695    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5696    break 2
5697  fi
5698done
5699done
5700
5701fi
5702fi
5703STRIP=$ac_cv_prog_STRIP
5704if test -n "$STRIP"; then
5705  echo "$as_me:$LINENO: result: $STRIP" >&5
5706echo "${ECHO_T}$STRIP" >&6
5707else
5708  echo "$as_me:$LINENO: result: no" >&5
5709echo "${ECHO_T}no" >&6
5710fi
5711
5712fi
5713if test -z "$ac_cv_prog_STRIP"; then
5714  ac_ct_STRIP=$STRIP
5715  # Extract the first word of "strip", so it can be a program name with args.
5716set dummy strip; ac_word=$2
5717echo "$as_me:$LINENO: checking for $ac_word" >&5
5718echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5719if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5720  echo $ECHO_N "(cached) $ECHO_C" >&6
5721else
5722  if test -n "$ac_ct_STRIP"; then
5723  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5724else
5725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5726for as_dir in $PATH
5727do
5728  IFS=$as_save_IFS
5729  test -z "$as_dir" && as_dir=.
5730  for ac_exec_ext in '' $ac_executable_extensions; do
5731  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5732    ac_cv_prog_ac_ct_STRIP="strip"
5733    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5734    break 2
5735  fi
5736done
5737done
5738
5739  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5740fi
5741fi
5742ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5743if test -n "$ac_ct_STRIP"; then
5744  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5745echo "${ECHO_T}$ac_ct_STRIP" >&6
5746else
5747  echo "$as_me:$LINENO: result: no" >&5
5748echo "${ECHO_T}no" >&6
5749fi
5750
5751  STRIP=$ac_ct_STRIP
5752else
5753  STRIP="$ac_cv_prog_STRIP"
5754fi
5755
5756
5757old_CC="$CC"
5758old_CFLAGS="$CFLAGS"
5759
5760# Set sane defaults for various variables
5761test -z "$AR" && AR=ar
5762test -z "$AR_FLAGS" && AR_FLAGS=cru
5763test -z "$AS" && AS=as
5764test -z "$CC" && CC=cc
5765test -z "$LTCC" && LTCC=$CC
5766test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
5767test -z "$DLLTOOL" && DLLTOOL=dlltool
5768test -z "$LD" && LD=ld
5769test -z "$LN_S" && LN_S="ln -s"
5770test -z "$MAGIC_CMD" && MAGIC_CMD=file
5771test -z "$NM" && NM=nm
5772test -z "$SED" && SED=sed
5773test -z "$OBJDUMP" && OBJDUMP=objdump
5774test -z "$RANLIB" && RANLIB=:
5775test -z "$STRIP" && STRIP=:
5776test -z "$ac_objext" && ac_objext=o
5777
5778# Determine commands to create old-style static archives.
5779old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5780old_postinstall_cmds='chmod 644 $oldlib'
5781old_postuninstall_cmds=
5782
5783if test -n "$RANLIB"; then
5784  case $host_os in
5785  openbsd*)
5786    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5787    ;;
5788  *)
5789    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5790    ;;
5791  esac
5792  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5793fi
5794
5795for cc_temp in $compiler""; do
5796  case $cc_temp in
5797    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
5798    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
5799    \-*) ;;
5800    *) break;;
5801  esac
5802done
5803cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
5804
5805
5806# Only perform the check for file, if the check method requires it
5807case $deplibs_check_method in
5808file_magic*)
5809  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5810    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5811echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5812if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5813  echo $ECHO_N "(cached) $ECHO_C" >&6
5814else
5815  case $MAGIC_CMD in
5816[\\/*] |  ?:[\\/]*)
5817  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5818  ;;
5819*)
5820  lt_save_MAGIC_CMD="$MAGIC_CMD"
5821  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5822  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5823  for ac_dir in $ac_dummy; do
5824    IFS="$lt_save_ifs"
5825    test -z "$ac_dir" && ac_dir=.
5826    if test -f $ac_dir/${ac_tool_prefix}file; then
5827      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5828      if test -n "$file_magic_test_file"; then
5829	case $deplibs_check_method in
5830	"file_magic "*)
5831	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5832	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5833	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5834	    $EGREP "$file_magic_regex" > /dev/null; then
5835	    :
5836	  else
5837	    cat <<EOF 1>&2
5838
5839*** Warning: the command libtool uses to detect shared libraries,
5840*** $file_magic_cmd, produces output that libtool cannot recognize.
5841*** The result is that libtool may fail to recognize shared libraries
5842*** as such.  This will affect the creation of libtool libraries that
5843*** depend on shared libraries, but programs linked with such libtool
5844*** libraries will work regardless of this problem.  Nevertheless, you
5845*** may want to report the problem to your system manager and/or to
5846*** bug-libtool@gnu.org
5847
5848EOF
5849	  fi ;;
5850	esac
5851      fi
5852      break
5853    fi
5854  done
5855  IFS="$lt_save_ifs"
5856  MAGIC_CMD="$lt_save_MAGIC_CMD"
5857  ;;
5858esac
5859fi
5860
5861MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5862if test -n "$MAGIC_CMD"; then
5863  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5864echo "${ECHO_T}$MAGIC_CMD" >&6
5865else
5866  echo "$as_me:$LINENO: result: no" >&5
5867echo "${ECHO_T}no" >&6
5868fi
5869
5870if test -z "$lt_cv_path_MAGIC_CMD"; then
5871  if test -n "$ac_tool_prefix"; then
5872    echo "$as_me:$LINENO: checking for file" >&5
5873echo $ECHO_N "checking for file... $ECHO_C" >&6
5874if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5875  echo $ECHO_N "(cached) $ECHO_C" >&6
5876else
5877  case $MAGIC_CMD in
5878[\\/*] |  ?:[\\/]*)
5879  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5880  ;;
5881*)
5882  lt_save_MAGIC_CMD="$MAGIC_CMD"
5883  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5884  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5885  for ac_dir in $ac_dummy; do
5886    IFS="$lt_save_ifs"
5887    test -z "$ac_dir" && ac_dir=.
5888    if test -f $ac_dir/file; then
5889      lt_cv_path_MAGIC_CMD="$ac_dir/file"
5890      if test -n "$file_magic_test_file"; then
5891	case $deplibs_check_method in
5892	"file_magic "*)
5893	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
5894	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5895	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5896	    $EGREP "$file_magic_regex" > /dev/null; then
5897	    :
5898	  else
5899	    cat <<EOF 1>&2
5900
5901*** Warning: the command libtool uses to detect shared libraries,
5902*** $file_magic_cmd, produces output that libtool cannot recognize.
5903*** The result is that libtool may fail to recognize shared libraries
5904*** as such.  This will affect the creation of libtool libraries that
5905*** depend on shared libraries, but programs linked with such libtool
5906*** libraries will work regardless of this problem.  Nevertheless, you
5907*** may want to report the problem to your system manager and/or to
5908*** bug-libtool@gnu.org
5909
5910EOF
5911	  fi ;;
5912	esac
5913      fi
5914      break
5915    fi
5916  done
5917  IFS="$lt_save_ifs"
5918  MAGIC_CMD="$lt_save_MAGIC_CMD"
5919  ;;
5920esac
5921fi
5922
5923MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5924if test -n "$MAGIC_CMD"; then
5925  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5926echo "${ECHO_T}$MAGIC_CMD" >&6
5927else
5928  echo "$as_me:$LINENO: result: no" >&5
5929echo "${ECHO_T}no" >&6
5930fi
5931
5932  else
5933    MAGIC_CMD=:
5934  fi
5935fi
5936
5937  fi
5938  ;;
5939esac
5940
5941enable_dlopen=no
5942enable_win32_dll=no
5943
5944# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5945if test "${enable_libtool_lock+set}" = set; then
5946  enableval="$enable_libtool_lock"
5947
5948fi;
5949test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5950
5951
5952# Check whether --with-pic or --without-pic was given.
5953if test "${with_pic+set}" = set; then
5954  withval="$with_pic"
5955  pic_mode="$withval"
5956else
5957  pic_mode=default
5958fi;
5959test -z "$pic_mode" && pic_mode=default
5960
5961# Use C for the default configuration in the libtool script
5962tagname=
5963lt_save_CC="$CC"
5964ac_ext=c
5965ac_cpp='$CPP $CPPFLAGS'
5966ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5967ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5968ac_compiler_gnu=$ac_cv_c_compiler_gnu
5969
5970
5971# Source file extension for C test sources.
5972ac_ext=c
5973
5974# Object file extension for compiled C test sources.
5975objext=o
5976objext=$objext
5977
5978# Code to be used in simple compile tests
5979lt_simple_compile_test_code="int some_variable = 0;\n"
5980
5981# Code to be used in simple link tests
5982lt_simple_link_test_code='int main(){return(0);}\n'
5983
5984
5985# If no C compiler was specified, use CC.
5986LTCC=${LTCC-"$CC"}
5987
5988# If no C compiler flags were specified, use CFLAGS.
5989LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5990
5991# Allow CC to be a program name with arguments.
5992compiler=$CC
5993
5994
5995# save warnings/boilerplate of simple test code
5996ac_outfile=conftest.$ac_objext
5997printf "$lt_simple_compile_test_code" >conftest.$ac_ext
5998eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
5999_lt_compiler_boilerplate=`cat conftest.err`
6000$rm conftest*
6001
6002ac_outfile=conftest.$ac_objext
6003printf "$lt_simple_link_test_code" >conftest.$ac_ext
6004eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6005_lt_linker_boilerplate=`cat conftest.err`
6006$rm conftest*
6007
6008
6009
6010lt_prog_compiler_no_builtin_flag=
6011
6012if test "$GCC" = yes; then
6013  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6014
6015
6016echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6017echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6018if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6019  echo $ECHO_N "(cached) $ECHO_C" >&6
6020else
6021  lt_cv_prog_compiler_rtti_exceptions=no
6022  ac_outfile=conftest.$ac_objext
6023   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6024   lt_compiler_flag="-fno-rtti -fno-exceptions"
6025   # Insert the option either (1) after the last *FLAGS variable, or
6026   # (2) before a word containing "conftest.", or (3) at the end.
6027   # Note that $ac_compile itself does not contain backslashes and begins
6028   # with a dollar sign (not a hyphen), so the echo should work correctly.
6029   # The option is referenced via a variable to avoid confusing sed.
6030   lt_compile=`echo "$ac_compile" | $SED \
6031   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6032   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6033   -e 's:$: $lt_compiler_flag:'`
6034   (eval echo "\"\$as_me:6034: $lt_compile\"" >&5)
6035   (eval "$lt_compile" 2>conftest.err)
6036   ac_status=$?
6037   cat conftest.err >&5
6038   echo "$as_me:6038: \$? = $ac_status" >&5
6039   if (exit $ac_status) && test -s "$ac_outfile"; then
6040     # The compiler can only warn and ignore the option if not recognized
6041     # So say no if there are warnings other than the usual output.
6042     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6043     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6044     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6045       lt_cv_prog_compiler_rtti_exceptions=yes
6046     fi
6047   fi
6048   $rm conftest*
6049
6050fi
6051echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6052echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6053
6054if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6055    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6056else
6057    :
6058fi
6059
6060fi
6061
6062lt_prog_compiler_wl=
6063lt_prog_compiler_pic=
6064lt_prog_compiler_static=
6065
6066echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6067echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6068
6069  if test "$GCC" = yes; then
6070    lt_prog_compiler_wl='-Wl,'
6071    lt_prog_compiler_static='-static'
6072
6073    case $host_os in
6074      aix*)
6075      # All AIX code is PIC.
6076      if test "$host_cpu" = ia64; then
6077	# AIX 5 now supports IA64 processor
6078	lt_prog_compiler_static='-Bstatic'
6079      fi
6080      ;;
6081
6082    amigaos*)
6083      # FIXME: we need at least 68020 code to build shared libraries, but
6084      # adding the `-m68020' flag to GCC prevents building anything better,
6085      # like `-m68040'.
6086      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6087      ;;
6088
6089    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6090      # PIC is the default for these OSes.
6091      ;;
6092
6093    mingw* | pw32* | os2*)
6094      # This hack is so that the source file can tell whether it is being
6095      # built for inclusion in a dll (and should export symbols for example).
6096      lt_prog_compiler_pic='-DDLL_EXPORT'
6097      ;;
6098
6099    darwin* | rhapsody*)
6100      # PIC is the default on this platform
6101      # Common symbols not allowed in MH_DYLIB files
6102      lt_prog_compiler_pic='-fno-common'
6103      ;;
6104
6105    interix3*)
6106      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6107      # Instead, we relocate shared libraries at runtime.
6108      ;;
6109
6110    msdosdjgpp*)
6111      # Just because we use GCC doesn't mean we suddenly get shared libraries
6112      # on systems that don't support them.
6113      lt_prog_compiler_can_build_shared=no
6114      enable_shared=no
6115      ;;
6116
6117    sysv4*MP*)
6118      if test -d /usr/nec; then
6119	lt_prog_compiler_pic=-Kconform_pic
6120      fi
6121      ;;
6122
6123    hpux*)
6124      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6125      # not for PA HP-UX.
6126      case $host_cpu in
6127      hppa*64*|ia64*)
6128	# +Z the default
6129	;;
6130      *)
6131	lt_prog_compiler_pic='-fPIC'
6132	;;
6133      esac
6134      ;;
6135
6136    *)
6137      lt_prog_compiler_pic='-fPIC'
6138      ;;
6139    esac
6140  else
6141    # PORTME Check for flag to pass linker flags through the system compiler.
6142    case $host_os in
6143    aix*)
6144      lt_prog_compiler_wl='-Wl,'
6145      if test "$host_cpu" = ia64; then
6146	# AIX 5 now supports IA64 processor
6147	lt_prog_compiler_static='-Bstatic'
6148      else
6149	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6150      fi
6151      ;;
6152      darwin*)
6153        # PIC is the default on this platform
6154        # Common symbols not allowed in MH_DYLIB files
6155       case $cc_basename in
6156         xlc*)
6157         lt_prog_compiler_pic='-qnocommon'
6158         lt_prog_compiler_wl='-Wl,'
6159         ;;
6160       esac
6161       ;;
6162
6163    mingw* | pw32* | os2*)
6164      # This hack is so that the source file can tell whether it is being
6165      # built for inclusion in a dll (and should export symbols for example).
6166      lt_prog_compiler_pic='-DDLL_EXPORT'
6167      ;;
6168
6169    hpux9* | hpux10* | hpux11*)
6170      lt_prog_compiler_wl='-Wl,'
6171      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6172      # not for PA HP-UX.
6173      case $host_cpu in
6174      hppa*64*|ia64*)
6175	# +Z the default
6176	;;
6177      *)
6178	lt_prog_compiler_pic='+Z'
6179	;;
6180      esac
6181      # Is there a better lt_prog_compiler_static that works with the bundled CC?
6182      lt_prog_compiler_static='${wl}-a ${wl}archive'
6183      ;;
6184
6185    irix5* | irix6* | nonstopux*)
6186      lt_prog_compiler_wl='-Wl,'
6187      # PIC (with -KPIC) is the default.
6188      lt_prog_compiler_static='-non_shared'
6189      ;;
6190
6191    newsos6)
6192      lt_prog_compiler_pic='-KPIC'
6193      lt_prog_compiler_static='-Bstatic'
6194      ;;
6195
6196    linux* | k*bsd*-gnu)
6197      case $cc_basename in
6198      icc* | ecc*)
6199	lt_prog_compiler_wl='-Wl,'
6200	lt_prog_compiler_pic='-KPIC'
6201	lt_prog_compiler_static='-static'
6202        ;;
6203      pgcc* | pgf77* | pgf90* | pgf95*)
6204        # Portland Group compilers (*not* the Pentium gcc compiler,
6205	# which looks to be a dead project)
6206	lt_prog_compiler_wl='-Wl,'
6207	lt_prog_compiler_pic='-fpic'
6208	lt_prog_compiler_static='-Bstatic'
6209        ;;
6210      ccc*)
6211        lt_prog_compiler_wl='-Wl,'
6212        # All Alpha code is PIC.
6213        lt_prog_compiler_static='-non_shared'
6214        ;;
6215      esac
6216      ;;
6217
6218    osf3* | osf4* | osf5*)
6219      lt_prog_compiler_wl='-Wl,'
6220      # All OSF/1 code is PIC.
6221      lt_prog_compiler_static='-non_shared'
6222      ;;
6223
6224    solaris*)
6225      lt_prog_compiler_pic='-KPIC'
6226      lt_prog_compiler_static='-Bstatic'
6227      case $cc_basename in
6228      f77* | f90* | f95*)
6229	lt_prog_compiler_wl='-Qoption ld ';;
6230      *)
6231	lt_prog_compiler_wl='-Wl,';;
6232      esac
6233      ;;
6234
6235    sunos4*)
6236      lt_prog_compiler_wl='-Qoption ld '
6237      lt_prog_compiler_pic='-PIC'
6238      lt_prog_compiler_static='-Bstatic'
6239      ;;
6240
6241    sysv4 | sysv4.2uw2* | sysv4.3*)
6242      lt_prog_compiler_wl='-Wl,'
6243      lt_prog_compiler_pic='-KPIC'
6244      lt_prog_compiler_static='-Bstatic'
6245      ;;
6246
6247    sysv4*MP*)
6248      if test -d /usr/nec ;then
6249	lt_prog_compiler_pic='-Kconform_pic'
6250	lt_prog_compiler_static='-Bstatic'
6251      fi
6252      ;;
6253
6254    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6255      lt_prog_compiler_wl='-Wl,'
6256      lt_prog_compiler_pic='-KPIC'
6257      lt_prog_compiler_static='-Bstatic'
6258      ;;
6259
6260    unicos*)
6261      lt_prog_compiler_wl='-Wl,'
6262      lt_prog_compiler_can_build_shared=no
6263      ;;
6264
6265    uts4*)
6266      lt_prog_compiler_pic='-pic'
6267      lt_prog_compiler_static='-Bstatic'
6268      ;;
6269
6270    *)
6271      lt_prog_compiler_can_build_shared=no
6272      ;;
6273    esac
6274  fi
6275
6276echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6277echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6278
6279#
6280# Check to make sure the PIC flag actually works.
6281#
6282if test -n "$lt_prog_compiler_pic"; then
6283
6284echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6285echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6286if test "${lt_prog_compiler_pic_works+set}" = set; then
6287  echo $ECHO_N "(cached) $ECHO_C" >&6
6288else
6289  lt_prog_compiler_pic_works=no
6290  ac_outfile=conftest.$ac_objext
6291   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6292   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6293   # Insert the option either (1) after the last *FLAGS variable, or
6294   # (2) before a word containing "conftest.", or (3) at the end.
6295   # Note that $ac_compile itself does not contain backslashes and begins
6296   # with a dollar sign (not a hyphen), so the echo should work correctly.
6297   # The option is referenced via a variable to avoid confusing sed.
6298   lt_compile=`echo "$ac_compile" | $SED \
6299   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6300   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6301   -e 's:$: $lt_compiler_flag:'`
6302   (eval echo "\"\$as_me:6302: $lt_compile\"" >&5)
6303   (eval "$lt_compile" 2>conftest.err)
6304   ac_status=$?
6305   cat conftest.err >&5
6306   echo "$as_me:6306: \$? = $ac_status" >&5
6307   if (exit $ac_status) && test -s "$ac_outfile"; then
6308     # The compiler can only warn and ignore the option if not recognized
6309     # So say no if there are warnings other than the usual output.
6310     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6311     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6312     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6313       lt_prog_compiler_pic_works=yes
6314     fi
6315   fi
6316   $rm conftest*
6317
6318fi
6319echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6320echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6321
6322if test x"$lt_prog_compiler_pic_works" = xyes; then
6323    case $lt_prog_compiler_pic in
6324     "" | " "*) ;;
6325     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6326     esac
6327else
6328    lt_prog_compiler_pic=
6329     lt_prog_compiler_can_build_shared=no
6330fi
6331
6332fi
6333case $host_os in
6334  # For platforms which do not support PIC, -DPIC is meaningless:
6335  *djgpp*)
6336    lt_prog_compiler_pic=
6337    ;;
6338  *)
6339    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6340    ;;
6341esac
6342
6343#
6344# Check to make sure the static flag actually works.
6345#
6346wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6347echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6348echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6349if test "${lt_prog_compiler_static_works+set}" = set; then
6350  echo $ECHO_N "(cached) $ECHO_C" >&6
6351else
6352  lt_prog_compiler_static_works=no
6353   save_LDFLAGS="$LDFLAGS"
6354   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6355   printf "$lt_simple_link_test_code" > conftest.$ac_ext
6356   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6357     # The linker can only warn and ignore the option if not recognized
6358     # So say no if there are warnings
6359     if test -s conftest.err; then
6360       # Append any errors to the config.log.
6361       cat conftest.err 1>&5
6362       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6363       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6364       if diff conftest.exp conftest.er2 >/dev/null; then
6365         lt_prog_compiler_static_works=yes
6366       fi
6367     else
6368       lt_prog_compiler_static_works=yes
6369     fi
6370   fi
6371   $rm conftest*
6372   LDFLAGS="$save_LDFLAGS"
6373
6374fi
6375echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6376echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6377
6378if test x"$lt_prog_compiler_static_works" = xyes; then
6379    :
6380else
6381    lt_prog_compiler_static=
6382fi
6383
6384
6385echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6386echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6387if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6388  echo $ECHO_N "(cached) $ECHO_C" >&6
6389else
6390  lt_cv_prog_compiler_c_o=no
6391   $rm -r conftest 2>/dev/null
6392   mkdir conftest
6393   cd conftest
6394   mkdir out
6395   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6396
6397   lt_compiler_flag="-o out/conftest2.$ac_objext"
6398   # Insert the option either (1) after the last *FLAGS variable, or
6399   # (2) before a word containing "conftest.", or (3) at the end.
6400   # Note that $ac_compile itself does not contain backslashes and begins
6401   # with a dollar sign (not a hyphen), so the echo should work correctly.
6402   lt_compile=`echo "$ac_compile" | $SED \
6403   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6404   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6405   -e 's:$: $lt_compiler_flag:'`
6406   (eval echo "\"\$as_me:6406: $lt_compile\"" >&5)
6407   (eval "$lt_compile" 2>out/conftest.err)
6408   ac_status=$?
6409   cat out/conftest.err >&5
6410   echo "$as_me:6410: \$? = $ac_status" >&5
6411   if (exit $ac_status) && test -s out/conftest2.$ac_objext
6412   then
6413     # The compiler can only warn and ignore the option if not recognized
6414     # So say no if there are warnings
6415     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6416     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6417     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6418       lt_cv_prog_compiler_c_o=yes
6419     fi
6420   fi
6421   chmod u+w . 2>&5
6422   $rm conftest*
6423   # SGI C++ compiler will create directory out/ii_files/ for
6424   # template instantiation
6425   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6426   $rm out/* && rmdir out
6427   cd ..
6428   rmdir conftest
6429   $rm conftest*
6430
6431fi
6432echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6433echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6434
6435
6436hard_links="nottested"
6437if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6438  # do not overwrite the value of need_locks provided by the user
6439  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6440echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6441  hard_links=yes
6442  $rm conftest*
6443  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6444  touch conftest.a
6445  ln conftest.a conftest.b 2>&5 || hard_links=no
6446  ln conftest.a conftest.b 2>/dev/null && hard_links=no
6447  echo "$as_me:$LINENO: result: $hard_links" >&5
6448echo "${ECHO_T}$hard_links" >&6
6449  if test "$hard_links" = no; then
6450    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6451echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6452    need_locks=warn
6453  fi
6454else
6455  need_locks=no
6456fi
6457
6458echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6459echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6460
6461  runpath_var=
6462  allow_undefined_flag=
6463  enable_shared_with_static_runtimes=no
6464  archive_cmds=
6465  archive_expsym_cmds=
6466  old_archive_From_new_cmds=
6467  old_archive_from_expsyms_cmds=
6468  export_dynamic_flag_spec=
6469  whole_archive_flag_spec=
6470  thread_safe_flag_spec=
6471  hardcode_libdir_flag_spec=
6472  hardcode_libdir_flag_spec_ld=
6473  hardcode_libdir_separator=
6474  hardcode_direct=no
6475  hardcode_minus_L=no
6476  hardcode_shlibpath_var=unsupported
6477  link_all_deplibs=unknown
6478  hardcode_automatic=no
6479  module_cmds=
6480  module_expsym_cmds=
6481  always_export_symbols=no
6482  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6483  # include_expsyms should be a list of space-separated symbols to be *always*
6484  # included in the symbol list
6485  include_expsyms=
6486  # exclude_expsyms can be an extended regexp of symbols to exclude
6487  # it will be wrapped by ` (' and `)$', so one must not match beginning or
6488  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6489  # as well as any symbol that contains `d'.
6490  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6491  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6492  # platforms (ab)use it in PIC code, but their linkers get confused if
6493  # the symbol is explicitly referenced.  Since portable code cannot
6494  # rely on this symbol name, it's probably fine to never include it in
6495  # preloaded symbol tables.
6496  extract_expsyms_cmds=
6497  # Just being paranoid about ensuring that cc_basename is set.
6498  for cc_temp in $compiler""; do
6499  case $cc_temp in
6500    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6501    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6502    \-*) ;;
6503    *) break;;
6504  esac
6505done
6506cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6507
6508  case $host_os in
6509  cygwin* | mingw* | pw32*)
6510    # FIXME: the MSVC++ port hasn't been tested in a loooong time
6511    # When not using gcc, we currently assume that we are using
6512    # Microsoft Visual C++.
6513    if test "$GCC" != yes; then
6514      with_gnu_ld=no
6515    fi
6516    ;;
6517  interix*)
6518    # we just hope/assume this is gcc and not c89 (= MSVC++)
6519    with_gnu_ld=yes
6520    ;;
6521  openbsd*)
6522    with_gnu_ld=no
6523    ;;
6524  esac
6525
6526  ld_shlibs=yes
6527  if test "$with_gnu_ld" = yes; then
6528    # If archive_cmds runs LD, not CC, wlarc should be empty
6529    wlarc='${wl}'
6530
6531    # Set some defaults for GNU ld with shared library support. These
6532    # are reset later if shared libraries are not supported. Putting them
6533    # here allows them to be overridden if necessary.
6534    runpath_var=LD_RUN_PATH
6535    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6536    export_dynamic_flag_spec='${wl}--export-dynamic'
6537    # ancient GNU ld didn't support --whole-archive et. al.
6538    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6539	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6540      else
6541  	whole_archive_flag_spec=
6542    fi
6543    supports_anon_versioning=no
6544    case `$LD -v 2>/dev/null` in
6545      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6546      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6547      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6548      *\ 2.11.*) ;; # other 2.11 versions
6549      *) supports_anon_versioning=yes ;;
6550    esac
6551
6552    # See if GNU ld supports shared libraries.
6553    case $host_os in
6554    aix3* | aix4* | aix5*)
6555      # On AIX/PPC, the GNU linker is very broken
6556      if test "$host_cpu" != ia64; then
6557	ld_shlibs=no
6558	cat <<EOF 1>&2
6559
6560*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6561*** to be unable to reliably create shared libraries on AIX.
6562*** Therefore, libtool is disabling shared libraries support.  If you
6563*** really care for shared libraries, you may want to modify your PATH
6564*** so that a non-GNU linker is found, and then restart.
6565
6566EOF
6567      fi
6568      ;;
6569
6570    amigaos*)
6571      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)'
6572      hardcode_libdir_flag_spec='-L$libdir'
6573      hardcode_minus_L=yes
6574
6575      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6576      # that the semantics of dynamic libraries on AmigaOS, at least up
6577      # to version 4, is to share data among multiple programs linked
6578      # with the same dynamic library.  Since this doesn't match the
6579      # behavior of shared libraries on other platforms, we can't use
6580      # them.
6581      ld_shlibs=no
6582      ;;
6583
6584    beos*)
6585      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6586	allow_undefined_flag=unsupported
6587	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6588	# support --undefined.  This deserves some investigation.  FIXME
6589	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6590      else
6591	ld_shlibs=no
6592      fi
6593      ;;
6594
6595    cygwin* | mingw* | pw32*)
6596      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6597      # as there is no search path for DLLs.
6598      hardcode_libdir_flag_spec='-L$libdir'
6599      allow_undefined_flag=unsupported
6600      always_export_symbols=no
6601      enable_shared_with_static_runtimes=yes
6602      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6603
6604      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6605        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6606	# If the export-symbols file already is a .def file (1st line
6607	# is EXPORTS), use it as is; otherwise, prepend...
6608	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6609	  cp $export_symbols $output_objdir/$soname.def;
6610	else
6611	  echo EXPORTS > $output_objdir/$soname.def;
6612	  cat $export_symbols >> $output_objdir/$soname.def;
6613	fi~
6614	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6615      else
6616	ld_shlibs=no
6617      fi
6618      ;;
6619
6620    interix3*)
6621      hardcode_direct=no
6622      hardcode_shlibpath_var=no
6623      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6624      export_dynamic_flag_spec='${wl}-E'
6625      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6626      # Instead, shared libraries are loaded at an image base (0x10000000 by
6627      # default) and relocated if they conflict, which is a slow very memory
6628      # consuming and fragmenting process.  To avoid this, we pick a random,
6629      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6630      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
6631      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6632      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'
6633      ;;
6634
6635    linux* | k*bsd*-gnu)
6636      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6637	tmp_addflag=
6638	case $cc_basename,$host_cpu in
6639	pgcc*)				# Portland Group C compiler
6640	  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'
6641	  tmp_addflag=' $pic_flag'
6642	  ;;
6643	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
6644	  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'
6645	  tmp_addflag=' $pic_flag -Mnomain' ;;
6646	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
6647	  tmp_addflag=' -i_dynamic' ;;
6648	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
6649	  tmp_addflag=' -i_dynamic -nofor_main' ;;
6650	ifc* | ifort*)			# Intel Fortran compiler
6651	  tmp_addflag=' -nofor_main' ;;
6652	esac
6653	archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6654
6655	if test $supports_anon_versioning = yes; then
6656	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6657  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6658  $echo "local: *; };" >> $output_objdir/$libname.ver~
6659	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6660	fi
6661	link_all_deplibs=no
6662      else
6663	ld_shlibs=no
6664      fi
6665      ;;
6666
6667    netbsd* | netbsdelf*-gnu)
6668      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6669	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6670	wlarc=
6671      else
6672	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6673	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6674      fi
6675      ;;
6676
6677    solaris*)
6678      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6679	ld_shlibs=no
6680	cat <<EOF 1>&2
6681
6682*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6683*** create shared libraries on Solaris systems.  Therefore, libtool
6684*** is disabling shared libraries support.  We urge you to upgrade GNU
6685*** binutils to release 2.9.1 or newer.  Another option is to modify
6686*** your PATH or compiler configuration so that the native linker is
6687*** used, and then restart.
6688
6689EOF
6690      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6691	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6692	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6693      else
6694	ld_shlibs=no
6695      fi
6696      ;;
6697
6698    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
6699      case `$LD -v 2>&1` in
6700        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
6701	ld_shlibs=no
6702	cat <<_LT_EOF 1>&2
6703
6704*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
6705*** reliably create shared libraries on SCO systems.  Therefore, libtool
6706*** is disabling shared libraries support.  We urge you to upgrade GNU
6707*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
6708*** your PATH or compiler configuration so that the native linker is
6709*** used, and then restart.
6710
6711_LT_EOF
6712	;;
6713	*)
6714	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6715	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
6716	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
6717	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
6718	  else
6719	    ld_shlibs=no
6720	  fi
6721	;;
6722      esac
6723      ;;
6724
6725    sunos4*)
6726      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6727      wlarc=
6728      hardcode_direct=yes
6729      hardcode_shlibpath_var=no
6730      ;;
6731
6732    *)
6733      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6734	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6735	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6736      else
6737	ld_shlibs=no
6738      fi
6739      ;;
6740    esac
6741
6742    if test "$ld_shlibs" = no; then
6743      runpath_var=
6744      hardcode_libdir_flag_spec=
6745      export_dynamic_flag_spec=
6746      whole_archive_flag_spec=
6747    fi
6748  else
6749    # PORTME fill in a description of your system's linker (not GNU ld)
6750    case $host_os in
6751    aix3*)
6752      allow_undefined_flag=unsupported
6753      always_export_symbols=yes
6754      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'
6755      # Note: this linker hardcodes the directories in LIBPATH if there
6756      # are no directories specified by -L.
6757      hardcode_minus_L=yes
6758      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
6759	# Neither direct hardcoding nor static linking is supported with a
6760	# broken collect2.
6761	hardcode_direct=unsupported
6762      fi
6763      ;;
6764
6765    aix4* | aix5*)
6766      if test "$host_cpu" = ia64; then
6767	# On IA64, the linker does run time linking by default, so we don't
6768	# have to do anything special.
6769	aix_use_runtimelinking=no
6770	exp_sym_flag='-Bexport'
6771	no_entry_flag=""
6772      else
6773	# If we're using GNU nm, then we don't want the "-C" option.
6774	# -C means demangle to AIX nm, but means don't demangle with GNU nm
6775	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6776	  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'
6777	else
6778	  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'
6779	fi
6780	aix_use_runtimelinking=no
6781
6782	# Test if we are trying to use run time linking or normal
6783	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
6784	# need to do runtime linking.
6785	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6786	  for ld_flag in $LDFLAGS; do
6787  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6788  	    aix_use_runtimelinking=yes
6789  	    break
6790  	  fi
6791	  done
6792	  ;;
6793	esac
6794
6795	exp_sym_flag='-bexport'
6796	no_entry_flag='-bnoentry'
6797      fi
6798
6799      # When large executables or shared objects are built, AIX ld can
6800      # have problems creating the table of contents.  If linking a library
6801      # or program results in "error TOC overflow" add -mminimal-toc to
6802      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6803      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6804
6805      archive_cmds=''
6806      hardcode_direct=yes
6807      hardcode_libdir_separator=':'
6808      link_all_deplibs=yes
6809
6810      if test "$GCC" = yes; then
6811	case $host_os in aix4.[012]|aix4.[012].*)
6812	# We only want to do this on AIX 4.2 and lower, the check
6813	# below for broken collect2 doesn't work under 4.3+
6814	  collect2name=`${CC} -print-prog-name=collect2`
6815	  if test -f "$collect2name" && \
6816  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
6817	  then
6818  	  # We have reworked collect2
6819  	  hardcode_direct=yes
6820	  else
6821  	  # We have old collect2
6822  	  hardcode_direct=unsupported
6823  	  # It fails to find uninstalled libraries when the uninstalled
6824  	  # path is not listed in the libpath.  Setting hardcode_minus_L
6825  	  # to unsupported forces relinking
6826  	  hardcode_minus_L=yes
6827  	  hardcode_libdir_flag_spec='-L$libdir'
6828  	  hardcode_libdir_separator=
6829	  fi
6830	  ;;
6831	esac
6832	shared_flag='-shared'
6833	if test "$aix_use_runtimelinking" = yes; then
6834	  shared_flag="$shared_flag "'${wl}-G'
6835	fi
6836      else
6837	# not using gcc
6838	if test "$host_cpu" = ia64; then
6839  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6840  	# chokes on -Wl,-G. The following line is correct:
6841	  shared_flag='-G'
6842	else
6843	  if test "$aix_use_runtimelinking" = yes; then
6844	    shared_flag='${wl}-G'
6845	  else
6846	    shared_flag='${wl}-bM:SRE'
6847	  fi
6848	fi
6849      fi
6850
6851      # It seems that -bexpall does not export symbols beginning with
6852      # underscore (_), so it is better to generate a list of symbols to export.
6853      always_export_symbols=yes
6854      if test "$aix_use_runtimelinking" = yes; then
6855	# Warning - without using the other runtime loading flags (-brtl),
6856	# -berok will link without error, but may produce a broken library.
6857	allow_undefined_flag='-berok'
6858       # Determine the default libpath from the value encoded in an empty executable.
6859       cat >conftest.$ac_ext <<_ACEOF
6860/* confdefs.h.  */
6861_ACEOF
6862cat confdefs.h >>conftest.$ac_ext
6863cat >>conftest.$ac_ext <<_ACEOF
6864/* end confdefs.h.  */
6865
6866int
6867main ()
6868{
6869
6870  ;
6871  return 0;
6872}
6873_ACEOF
6874rm -f conftest.$ac_objext conftest$ac_exeext
6875if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6876  (eval $ac_link) 2>conftest.er1
6877  ac_status=$?
6878  grep -v '^ *+' conftest.er1 >conftest.err
6879  rm -f conftest.er1
6880  cat conftest.err >&5
6881  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6882  (exit $ac_status); } &&
6883	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
6884  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6885  (eval $ac_try) 2>&5
6886  ac_status=$?
6887  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6888  (exit $ac_status); }; } &&
6889	 { ac_try='test -s conftest$ac_exeext'
6890  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6891  (eval $ac_try) 2>&5
6892  ac_status=$?
6893  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6894  (exit $ac_status); }; }; then
6895
6896aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6897}'`
6898# Check for a 64-bit object if we didn't find anything.
6899if 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; }
6900}'`; fi
6901else
6902  echo "$as_me: failed program was:" >&5
6903sed 's/^/| /' conftest.$ac_ext >&5
6904
6905fi
6906rm -f conftest.err conftest.$ac_objext \
6907      conftest$ac_exeext conftest.$ac_ext
6908if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6909
6910       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6911	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"
6912       else
6913	if test "$host_cpu" = ia64; then
6914	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6915	  allow_undefined_flag="-z nodefs"
6916	  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"
6917	else
6918	 # Determine the default libpath from the value encoded in an empty executable.
6919	 cat >conftest.$ac_ext <<_ACEOF
6920/* confdefs.h.  */
6921_ACEOF
6922cat confdefs.h >>conftest.$ac_ext
6923cat >>conftest.$ac_ext <<_ACEOF
6924/* end confdefs.h.  */
6925
6926int
6927main ()
6928{
6929
6930  ;
6931  return 0;
6932}
6933_ACEOF
6934rm -f conftest.$ac_objext conftest$ac_exeext
6935if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6936  (eval $ac_link) 2>conftest.er1
6937  ac_status=$?
6938  grep -v '^ *+' conftest.er1 >conftest.err
6939  rm -f conftest.er1
6940  cat conftest.err >&5
6941  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6942  (exit $ac_status); } &&
6943	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
6944  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6945  (eval $ac_try) 2>&5
6946  ac_status=$?
6947  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6948  (exit $ac_status); }; } &&
6949	 { ac_try='test -s conftest$ac_exeext'
6950  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6951  (eval $ac_try) 2>&5
6952  ac_status=$?
6953  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6954  (exit $ac_status); }; }; then
6955
6956aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
6957}'`
6958# Check for a 64-bit object if we didn't find anything.
6959if 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; }
6960}'`; fi
6961else
6962  echo "$as_me: failed program was:" >&5
6963sed 's/^/| /' conftest.$ac_ext >&5
6964
6965fi
6966rm -f conftest.err conftest.$ac_objext \
6967      conftest$ac_exeext conftest.$ac_ext
6968if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6969
6970	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6971	  # Warning - without using the other run time loading flags,
6972	  # -berok will link without error, but may produce a broken library.
6973	  no_undefined_flag=' ${wl}-bernotok'
6974	  allow_undefined_flag=' ${wl}-berok'
6975	  # Exported symbols can be pulled into shared objects from archives
6976	  whole_archive_flag_spec='$convenience'
6977	  archive_cmds_need_lc=yes
6978	  # This is similar to how AIX traditionally builds its shared libraries.
6979	  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'
6980	fi
6981      fi
6982      ;;
6983
6984    amigaos*)
6985      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)'
6986      hardcode_libdir_flag_spec='-L$libdir'
6987      hardcode_minus_L=yes
6988      # see comment about different semantics on the GNU ld section
6989      ld_shlibs=no
6990      ;;
6991
6992    bsdi[45]*)
6993      export_dynamic_flag_spec=-rdynamic
6994      ;;
6995
6996    cygwin* | mingw* | pw32*)
6997      # When not using gcc, we currently assume that we are using
6998      # Microsoft Visual C++.
6999      # hardcode_libdir_flag_spec is actually meaningless, as there is
7000      # no search path for DLLs.
7001      hardcode_libdir_flag_spec=' '
7002      allow_undefined_flag=unsupported
7003      # Tell ltmain to make .lib files, not .a files.
7004      libext=lib
7005      # Tell ltmain to make .dll files, not .so files.
7006      shrext_cmds=".dll"
7007      # FIXME: Setting linknames here is a bad hack.
7008      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7009      # The linker will automatically build a .lib file if we build a DLL.
7010      old_archive_From_new_cmds='true'
7011      # FIXME: Should let the user specify the lib program.
7012      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7013      fix_srcfile_path='`cygpath -w "$srcfile"`'
7014      enable_shared_with_static_runtimes=yes
7015      ;;
7016
7017    darwin* | rhapsody*)
7018      case $host_os in
7019        rhapsody* | darwin1.[012])
7020         allow_undefined_flag='${wl}-undefined ${wl}suppress'
7021         ;;
7022       *) # Darwin 1.3 on
7023         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7024           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7025         else
7026           case ${MACOSX_DEPLOYMENT_TARGET} in
7027             10.[012])
7028               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7029               ;;
7030             10.*)
7031               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7032               ;;
7033           esac
7034         fi
7035         ;;
7036      esac
7037      archive_cmds_need_lc=no
7038      hardcode_direct=no
7039      hardcode_automatic=yes
7040      hardcode_shlibpath_var=unsupported
7041      whole_archive_flag_spec=''
7042      link_all_deplibs=yes
7043    if test "$GCC" = yes ; then
7044    	output_verbose_link_cmd='echo'
7045        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7046      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7047      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7048      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}'
7049      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}'
7050    else
7051      case $cc_basename in
7052        xlc*)
7053         output_verbose_link_cmd='echo'
7054         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7055         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7056          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7057         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}'
7058          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}'
7059          ;;
7060       *)
7061         ld_shlibs=no
7062          ;;
7063      esac
7064    fi
7065      ;;
7066
7067    dgux*)
7068      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7069      hardcode_libdir_flag_spec='-L$libdir'
7070      hardcode_shlibpath_var=no
7071      ;;
7072
7073    freebsd1*)
7074      ld_shlibs=no
7075      ;;
7076
7077    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7078    # support.  Future versions do this automatically, but an explicit c++rt0.o
7079    # does not break anything, and helps significantly (at the cost of a little
7080    # extra space).
7081    freebsd2.2*)
7082      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7083      hardcode_libdir_flag_spec='-R$libdir'
7084      hardcode_direct=yes
7085      hardcode_shlibpath_var=no
7086      ;;
7087
7088    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7089    freebsd2*)
7090      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7091      hardcode_direct=yes
7092      hardcode_minus_L=yes
7093      hardcode_shlibpath_var=no
7094      ;;
7095
7096    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7097    freebsd* | dragonfly*)
7098      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7099      hardcode_libdir_flag_spec='-R$libdir'
7100      hardcode_direct=yes
7101      hardcode_shlibpath_var=no
7102      ;;
7103
7104    hpux9*)
7105      if test "$GCC" = yes; then
7106	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'
7107      else
7108	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'
7109      fi
7110      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7111      hardcode_libdir_separator=:
7112      hardcode_direct=yes
7113
7114      # hardcode_minus_L: Not really in the search PATH,
7115      # but as the default location of the library.
7116      hardcode_minus_L=yes
7117      export_dynamic_flag_spec='${wl}-E'
7118      ;;
7119
7120    hpux10*)
7121      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7122	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7123      else
7124	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7125      fi
7126      if test "$with_gnu_ld" = no; then
7127	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7128	hardcode_libdir_separator=:
7129
7130	hardcode_direct=yes
7131	export_dynamic_flag_spec='${wl}-E'
7132
7133	# hardcode_minus_L: Not really in the search PATH,
7134	# but as the default location of the library.
7135	hardcode_minus_L=yes
7136      fi
7137      ;;
7138
7139    hpux11*)
7140      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7141	case $host_cpu in
7142	hppa*64*)
7143	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7144	  ;;
7145	ia64*)
7146	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7147	  ;;
7148	*)
7149	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7150	  ;;
7151	esac
7152      else
7153	case $host_cpu in
7154	hppa*64*)
7155	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7156	  ;;
7157	ia64*)
7158	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7159	  ;;
7160	*)
7161	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7162	  ;;
7163	esac
7164      fi
7165      if test "$with_gnu_ld" = no; then
7166	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7167	hardcode_libdir_separator=:
7168
7169	case $host_cpu in
7170	hppa*64*|ia64*)
7171	  hardcode_libdir_flag_spec_ld='+b $libdir'
7172	  hardcode_direct=no
7173	  hardcode_shlibpath_var=no
7174	  ;;
7175	*)
7176	  hardcode_direct=yes
7177	  export_dynamic_flag_spec='${wl}-E'
7178
7179	  # hardcode_minus_L: Not really in the search PATH,
7180	  # but as the default location of the library.
7181	  hardcode_minus_L=yes
7182	  ;;
7183	esac
7184      fi
7185      ;;
7186
7187    irix5* | irix6* | nonstopux*)
7188      if test "$GCC" = yes; then
7189	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'
7190      else
7191	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'
7192	hardcode_libdir_flag_spec_ld='-rpath $libdir'
7193      fi
7194      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7195      hardcode_libdir_separator=:
7196      link_all_deplibs=yes
7197      ;;
7198
7199    netbsd* | netbsdelf*-gnu)
7200      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7201	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7202      else
7203	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7204      fi
7205      hardcode_libdir_flag_spec='-R$libdir'
7206      hardcode_direct=yes
7207      hardcode_shlibpath_var=no
7208      ;;
7209
7210    newsos6)
7211      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7212      hardcode_direct=yes
7213      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7214      hardcode_libdir_separator=:
7215      hardcode_shlibpath_var=no
7216      ;;
7217
7218    openbsd*)
7219      hardcode_direct=yes
7220      hardcode_shlibpath_var=no
7221      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7222	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7223	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7224	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7225	export_dynamic_flag_spec='${wl}-E'
7226      else
7227       case $host_os in
7228	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7229	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7230	   hardcode_libdir_flag_spec='-R$libdir'
7231	   ;;
7232	 *)
7233	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7234	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7235	   ;;
7236       esac
7237      fi
7238      ;;
7239
7240    os2*)
7241      hardcode_libdir_flag_spec='-L$libdir'
7242      hardcode_minus_L=yes
7243      allow_undefined_flag=unsupported
7244      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'
7245      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7246      ;;
7247
7248    osf3*)
7249      if test "$GCC" = yes; then
7250	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7251	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'
7252      else
7253	allow_undefined_flag=' -expect_unresolved \*'
7254	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'
7255      fi
7256      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7257      hardcode_libdir_separator=:
7258      ;;
7259
7260    osf4* | osf5*)	# as osf3* with the addition of -msym flag
7261      if test "$GCC" = yes; then
7262	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7263	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'
7264	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7265      else
7266	allow_undefined_flag=' -expect_unresolved \*'
7267	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'
7268	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7269	$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'
7270
7271	# Both c and cxx compiler support -rpath directly
7272	hardcode_libdir_flag_spec='-rpath $libdir'
7273      fi
7274      hardcode_libdir_separator=:
7275      ;;
7276
7277    solaris*)
7278      no_undefined_flag=' -z text'
7279      if test "$GCC" = yes; then
7280	wlarc='${wl}'
7281	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7282	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7283	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7284      else
7285	wlarc=''
7286	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7287	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7288  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7289      fi
7290      hardcode_libdir_flag_spec='-R$libdir'
7291      hardcode_shlibpath_var=no
7292      case $host_os in
7293      solaris2.[0-5] | solaris2.[0-5].*) ;;
7294      *)
7295 	# The compiler driver will combine linker options so we
7296 	# cannot just pass the convience library names through
7297 	# without $wl, iff we do not link with $LD.
7298 	# Luckily, gcc supports the same syntax we need for Sun Studio.
7299 	# Supported since Solaris 2.6 (maybe 2.5.1?)
7300 	case $wlarc in
7301 	'')
7302 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7303 	*)
7304 	  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' ;;
7305 	esac ;;
7306      esac
7307      link_all_deplibs=yes
7308      ;;
7309
7310    sunos4*)
7311      if test "x$host_vendor" = xsequent; then
7312	# Use $CC to link under sequent, because it throws in some extra .o
7313	# files that make .init and .fini sections work.
7314	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7315      else
7316	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7317      fi
7318      hardcode_libdir_flag_spec='-L$libdir'
7319      hardcode_direct=yes
7320      hardcode_minus_L=yes
7321      hardcode_shlibpath_var=no
7322      ;;
7323
7324    sysv4)
7325      case $host_vendor in
7326	sni)
7327	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7328	  hardcode_direct=yes # is this really true???
7329	;;
7330	siemens)
7331	  ## LD is ld it makes a PLAMLIB
7332	  ## CC just makes a GrossModule.
7333	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7334	  reload_cmds='$CC -r -o $output$reload_objs'
7335	  hardcode_direct=no
7336        ;;
7337	motorola)
7338	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7339	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7340	;;
7341      esac
7342      runpath_var='LD_RUN_PATH'
7343      hardcode_shlibpath_var=no
7344      ;;
7345
7346    sysv4.3*)
7347      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7348      hardcode_shlibpath_var=no
7349      export_dynamic_flag_spec='-Bexport'
7350      ;;
7351
7352    sysv4*MP*)
7353      if test -d /usr/nec; then
7354	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7355	hardcode_shlibpath_var=no
7356	runpath_var=LD_RUN_PATH
7357	hardcode_runpath_var=yes
7358	ld_shlibs=yes
7359      fi
7360      ;;
7361
7362    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
7363      no_undefined_flag='${wl}-z,text'
7364      archive_cmds_need_lc=no
7365      hardcode_shlibpath_var=no
7366      runpath_var='LD_RUN_PATH'
7367
7368      if test "$GCC" = yes; then
7369	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7370	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7371      else
7372	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7373	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7374      fi
7375      ;;
7376
7377    sysv5* | sco3.2v5* | sco5v6*)
7378      # Note: We can NOT use -z defs as we might desire, because we do not
7379      # link with -lc, and that would cause any symbols used from libc to
7380      # always be unresolved, which means just about no library would
7381      # ever link correctly.  If we're not using GNU ld we use -z text
7382      # though, which does catch some bad symbols but isn't as heavy-handed
7383      # as -z defs.
7384      no_undefined_flag='${wl}-z,text'
7385      allow_undefined_flag='${wl}-z,nodefs'
7386      archive_cmds_need_lc=no
7387      hardcode_shlibpath_var=no
7388      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7389      hardcode_libdir_separator=':'
7390      link_all_deplibs=yes
7391      export_dynamic_flag_spec='${wl}-Bexport'
7392      runpath_var='LD_RUN_PATH'
7393
7394      if test "$GCC" = yes; then
7395	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7396	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7397      else
7398	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7399	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7400      fi
7401      ;;
7402
7403    uts4*)
7404      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7405      hardcode_libdir_flag_spec='-L$libdir'
7406      hardcode_shlibpath_var=no
7407      ;;
7408
7409    *)
7410      ld_shlibs=no
7411      ;;
7412    esac
7413  fi
7414
7415echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7416echo "${ECHO_T}$ld_shlibs" >&6
7417test "$ld_shlibs" = no && can_build_shared=no
7418
7419#
7420# Do we need to explicitly link libc?
7421#
7422case "x$archive_cmds_need_lc" in
7423x|xyes)
7424  # Assume -lc should be added
7425  archive_cmds_need_lc=yes
7426
7427  if test "$enable_shared" = yes && test "$GCC" = yes; then
7428    case $archive_cmds in
7429    *'~'*)
7430      # FIXME: we may have to deal with multi-command sequences.
7431      ;;
7432    '$CC '*)
7433      # Test whether the compiler implicitly links with -lc since on some
7434      # systems, -lgcc has to come before -lc. If gcc already passes -lc
7435      # to ld, don't add -lc before -lgcc.
7436      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7437echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7438      $rm conftest*
7439      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7440
7441      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7442  (eval $ac_compile) 2>&5
7443  ac_status=$?
7444  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7445  (exit $ac_status); } 2>conftest.err; then
7446        soname=conftest
7447        lib=conftest
7448        libobjs=conftest.$ac_objext
7449        deplibs=
7450        wl=$lt_prog_compiler_wl
7451	pic_flag=$lt_prog_compiler_pic
7452        compiler_flags=-v
7453        linker_flags=-v
7454        verstring=
7455        output_objdir=.
7456        libname=conftest
7457        lt_save_allow_undefined_flag=$allow_undefined_flag
7458        allow_undefined_flag=
7459        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7460  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7461  ac_status=$?
7462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7463  (exit $ac_status); }
7464        then
7465	  archive_cmds_need_lc=no
7466        else
7467	  archive_cmds_need_lc=yes
7468        fi
7469        allow_undefined_flag=$lt_save_allow_undefined_flag
7470      else
7471        cat conftest.err 1>&5
7472      fi
7473      $rm conftest*
7474      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7475echo "${ECHO_T}$archive_cmds_need_lc" >&6
7476      ;;
7477    esac
7478  fi
7479  ;;
7480esac
7481
7482echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7483echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7484library_names_spec=
7485libname_spec='lib$name'
7486soname_spec=
7487shrext_cmds=".so"
7488postinstall_cmds=
7489postuninstall_cmds=
7490finish_cmds=
7491finish_eval=
7492shlibpath_var=
7493shlibpath_overrides_runpath=unknown
7494version_type=none
7495dynamic_linker="$host_os ld.so"
7496sys_lib_dlsearch_path_spec="/lib /usr/lib"
7497if test "$GCC" = yes; then
7498  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7499  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7500    # if the path contains ";" then we assume it to be the separator
7501    # otherwise default to the standard path separator (i.e. ":") - it is
7502    # assumed that no part of a normal pathname contains ";" but that should
7503    # okay in the real world where ";" in dirpaths is itself problematic.
7504    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7505  else
7506    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7507  fi
7508else
7509  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7510fi
7511need_lib_prefix=unknown
7512hardcode_into_libs=no
7513
7514# when you set need_version to no, make sure it does not cause -set_version
7515# flags to be left without arguments
7516need_version=unknown
7517
7518case $host_os in
7519aix3*)
7520  version_type=linux
7521  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7522  shlibpath_var=LIBPATH
7523
7524  # AIX 3 has no versioning support, so we append a major version to the name.
7525  soname_spec='${libname}${release}${shared_ext}$major'
7526  ;;
7527
7528aix4* | aix5*)
7529  version_type=linux
7530  need_lib_prefix=no
7531  need_version=no
7532  hardcode_into_libs=yes
7533  if test "$host_cpu" = ia64; then
7534    # AIX 5 supports IA64
7535    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7536    shlibpath_var=LD_LIBRARY_PATH
7537  else
7538    # With GCC up to 2.95.x, collect2 would create an import file
7539    # for dependence libraries.  The import file would start with
7540    # the line `#! .'.  This would cause the generated library to
7541    # depend on `.', always an invalid library.  This was fixed in
7542    # development snapshots of GCC prior to 3.0.
7543    case $host_os in
7544      aix4 | aix4.[01] | aix4.[01].*)
7545      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7546	   echo ' yes '
7547	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7548	:
7549      else
7550	can_build_shared=no
7551      fi
7552      ;;
7553    esac
7554    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7555    # soname into executable. Probably we can add versioning support to
7556    # collect2, so additional links can be useful in future.
7557    if test "$aix_use_runtimelinking" = yes; then
7558      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7559      # instead of lib<name>.a to let people know that these are not
7560      # typical AIX shared libraries.
7561      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7562    else
7563      # We preserve .a as extension for shared libraries through AIX4.2
7564      # and later when we are not doing run time linking.
7565      library_names_spec='${libname}${release}.a $libname.a'
7566      soname_spec='${libname}${release}${shared_ext}$major'
7567    fi
7568    shlibpath_var=LIBPATH
7569  fi
7570  ;;
7571
7572amigaos*)
7573  library_names_spec='$libname.ixlibrary $libname.a'
7574  # Create ${libname}_ixlibrary.a entries in /sys/libs.
7575  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'
7576  ;;
7577
7578beos*)
7579  library_names_spec='${libname}${shared_ext}'
7580  dynamic_linker="$host_os ld.so"
7581  shlibpath_var=LIBRARY_PATH
7582  ;;
7583
7584bsdi[45]*)
7585  version_type=linux
7586  need_version=no
7587  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7588  soname_spec='${libname}${release}${shared_ext}$major'
7589  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7590  shlibpath_var=LD_LIBRARY_PATH
7591  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7592  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7593  # the default ld.so.conf also contains /usr/contrib/lib and
7594  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7595  # libtool to hard-code these into programs
7596  ;;
7597
7598cygwin* | mingw* | pw32*)
7599  version_type=windows
7600  shrext_cmds=".dll"
7601  need_version=no
7602  need_lib_prefix=no
7603
7604  case $GCC,$host_os in
7605  yes,cygwin* | yes,mingw* | yes,pw32*)
7606    library_names_spec='$libname.dll.a'
7607    # DLL is installed to $(libdir)/../bin by postinstall_cmds
7608    postinstall_cmds='base_file=`basename \${file}`~
7609      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7610      dldir=$destdir/`dirname \$dlpath`~
7611      test -d \$dldir || mkdir -p \$dldir~
7612      $install_prog $dir/$dlname \$dldir/$dlname~
7613      chmod a+x \$dldir/$dlname'
7614    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7615      dlpath=$dir/\$dldll~
7616       $rm \$dlpath'
7617    shlibpath_overrides_runpath=yes
7618
7619    case $host_os in
7620    cygwin*)
7621      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7622      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7623      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7624      ;;
7625    mingw*)
7626      # MinGW DLLs use traditional 'lib' prefix
7627      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7628      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7629      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7630        # It is most probably a Windows format PATH printed by
7631        # mingw gcc, but we are running on Cygwin. Gcc prints its search
7632        # path with ; separators, and with drive letters. We can handle the
7633        # drive letters (cygwin fileutils understands them), so leave them,
7634        # especially as we might pass files found there to a mingw objdump,
7635        # which wouldn't understand a cygwinified path. Ahh.
7636        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7637      else
7638        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7639      fi
7640      ;;
7641    pw32*)
7642      # pw32 DLLs use 'pw' prefix rather than 'lib'
7643      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7644      ;;
7645    esac
7646    ;;
7647
7648  *)
7649    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7650    ;;
7651  esac
7652  dynamic_linker='Win32 ld.exe'
7653  # FIXME: first we should search . and the directory the executable is in
7654  shlibpath_var=PATH
7655  ;;
7656
7657darwin* | rhapsody*)
7658  dynamic_linker="$host_os dyld"
7659  version_type=darwin
7660  need_lib_prefix=no
7661  need_version=no
7662  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7663  soname_spec='${libname}${release}${major}$shared_ext'
7664  shlibpath_overrides_runpath=yes
7665  shlibpath_var=DYLD_LIBRARY_PATH
7666  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
7667  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7668  if test "$GCC" = yes; then
7669    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"`
7670  else
7671    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7672  fi
7673  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7674  ;;
7675
7676dgux*)
7677  version_type=linux
7678  need_lib_prefix=no
7679  need_version=no
7680  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7681  soname_spec='${libname}${release}${shared_ext}$major'
7682  shlibpath_var=LD_LIBRARY_PATH
7683  ;;
7684
7685freebsd1*)
7686  dynamic_linker=no
7687  ;;
7688
7689freebsd* | dragonfly*)
7690  # DragonFly does not have aout.  When/if they implement a new
7691  # versioning mechanism, adjust this.
7692  if test -x /usr/bin/objformat; then
7693    objformat=`/usr/bin/objformat`
7694  else
7695    case $host_os in
7696    freebsd[123]*) objformat=aout ;;
7697    *) objformat=elf ;;
7698    esac
7699  fi
7700  version_type=freebsd-$objformat
7701  case $version_type in
7702    freebsd-elf*)
7703      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7704      need_version=no
7705      need_lib_prefix=no
7706      ;;
7707    freebsd-*)
7708      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7709      need_version=yes
7710      ;;
7711  esac
7712  shlibpath_var=LD_LIBRARY_PATH
7713  case $host_os in
7714  freebsd2*)
7715    shlibpath_overrides_runpath=yes
7716    ;;
7717  freebsd3.[01]* | freebsdelf3.[01]*)
7718    shlibpath_overrides_runpath=yes
7719    hardcode_into_libs=yes
7720    ;;
7721  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
7722  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
7723    shlibpath_overrides_runpath=no
7724    hardcode_into_libs=yes
7725    ;;
7726  freebsd*) # from 4.6 on
7727    shlibpath_overrides_runpath=yes
7728    hardcode_into_libs=yes
7729    ;;
7730  esac
7731  ;;
7732
7733gnu*)
7734  version_type=linux
7735  need_lib_prefix=no
7736  need_version=no
7737  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7738  soname_spec='${libname}${release}${shared_ext}$major'
7739  shlibpath_var=LD_LIBRARY_PATH
7740  hardcode_into_libs=yes
7741  ;;
7742
7743hpux9* | hpux10* | hpux11*)
7744  # Give a soname corresponding to the major version so that dld.sl refuses to
7745  # link against other versions.
7746  version_type=sunos
7747  need_lib_prefix=no
7748  need_version=no
7749  case $host_cpu in
7750  ia64*)
7751    shrext_cmds='.so'
7752    hardcode_into_libs=yes
7753    dynamic_linker="$host_os dld.so"
7754    shlibpath_var=LD_LIBRARY_PATH
7755    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7756    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7757    soname_spec='${libname}${release}${shared_ext}$major'
7758    if test "X$HPUX_IA64_MODE" = X32; then
7759      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7760    else
7761      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7762    fi
7763    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7764    ;;
7765   hppa*64*)
7766     shrext_cmds='.sl'
7767     hardcode_into_libs=yes
7768     dynamic_linker="$host_os dld.sl"
7769     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7770     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7771     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7772     soname_spec='${libname}${release}${shared_ext}$major'
7773     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7774     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7775     ;;
7776   *)
7777    shrext_cmds='.sl'
7778    dynamic_linker="$host_os dld.sl"
7779    shlibpath_var=SHLIB_PATH
7780    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7781    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7782    soname_spec='${libname}${release}${shared_ext}$major'
7783    ;;
7784  esac
7785  # HP-UX runs *really* slowly unless shared libraries are mode 555.
7786  postinstall_cmds='chmod 555 $lib'
7787  ;;
7788
7789interix3*)
7790  version_type=linux
7791  need_lib_prefix=no
7792  need_version=no
7793  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7794  soname_spec='${libname}${release}${shared_ext}$major'
7795  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
7796  shlibpath_var=LD_LIBRARY_PATH
7797  shlibpath_overrides_runpath=no
7798  hardcode_into_libs=yes
7799  ;;
7800
7801irix5* | irix6* | nonstopux*)
7802  case $host_os in
7803    nonstopux*) version_type=nonstopux ;;
7804    *)
7805	if test "$lt_cv_prog_gnu_ld" = yes; then
7806		version_type=linux
7807	else
7808		version_type=irix
7809	fi ;;
7810  esac
7811  need_lib_prefix=no
7812  need_version=no
7813  soname_spec='${libname}${release}${shared_ext}$major'
7814  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7815  case $host_os in
7816  irix5* | nonstopux*)
7817    libsuff= shlibsuff=
7818    ;;
7819  *)
7820    case $LD in # libtool.m4 will add one of these switches to LD
7821    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7822      libsuff= shlibsuff= libmagic=32-bit;;
7823    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7824      libsuff=32 shlibsuff=N32 libmagic=N32;;
7825    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7826      libsuff=64 shlibsuff=64 libmagic=64-bit;;
7827    *) libsuff= shlibsuff= libmagic=never-match;;
7828    esac
7829    ;;
7830  esac
7831  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7832  shlibpath_overrides_runpath=no
7833  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7834  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7835  hardcode_into_libs=yes
7836  ;;
7837
7838# No shared lib support for Linux oldld, aout, or coff.
7839linux*oldld* | linux*aout* | linux*coff*)
7840  dynamic_linker=no
7841  ;;
7842
7843# This must be Linux ELF.
7844linux* | k*bsd*-gnu)
7845  version_type=linux
7846  need_lib_prefix=no
7847  need_version=no
7848  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7849  soname_spec='${libname}${release}${shared_ext}$major'
7850  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7851  shlibpath_var=LD_LIBRARY_PATH
7852  shlibpath_overrides_runpath=no
7853  # This implies no fast_install, which is unacceptable.
7854  # Some rework will be needed to allow for fast_install
7855  # before this can be enabled.
7856  hardcode_into_libs=yes
7857
7858  # Append ld.so.conf contents to the search path
7859  if test -f /etc/ld.so.conf; then
7860    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
7861    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7862  fi
7863
7864  # We used to test for /lib/ld.so.1 and disable shared libraries on
7865  # powerpc, because MkLinux only supported shared libraries with the
7866  # GNU dynamic linker.  Since this was broken with cross compilers,
7867  # most powerpc-linux boxes support dynamic linking these days and
7868  # people can always --disable-shared, the test was removed, and we
7869  # assume the GNU/Linux dynamic linker is in use.
7870  dynamic_linker='GNU/Linux ld.so'
7871  ;;
7872
7873netbsdelf*-gnu)
7874  version_type=linux
7875  need_lib_prefix=no
7876  need_version=no
7877  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7878  soname_spec='${libname}${release}${shared_ext}$major'
7879  shlibpath_var=LD_LIBRARY_PATH
7880  shlibpath_overrides_runpath=no
7881  hardcode_into_libs=yes
7882  dynamic_linker='NetBSD ld.elf_so'
7883  ;;
7884
7885netbsd*)
7886  version_type=sunos
7887  need_lib_prefix=no
7888  need_version=no
7889  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7890    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7891    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7892    dynamic_linker='NetBSD (a.out) ld.so'
7893  else
7894    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7895    soname_spec='${libname}${release}${shared_ext}$major'
7896    dynamic_linker='NetBSD ld.elf_so'
7897  fi
7898  shlibpath_var=LD_LIBRARY_PATH
7899  shlibpath_overrides_runpath=yes
7900  hardcode_into_libs=yes
7901  ;;
7902
7903newsos6)
7904  version_type=linux
7905  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7906  shlibpath_var=LD_LIBRARY_PATH
7907  shlibpath_overrides_runpath=yes
7908  ;;
7909
7910nto-qnx*)
7911  version_type=linux
7912  need_lib_prefix=no
7913  need_version=no
7914  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7915  soname_spec='${libname}${release}${shared_ext}$major'
7916  shlibpath_var=LD_LIBRARY_PATH
7917  shlibpath_overrides_runpath=yes
7918  ;;
7919
7920openbsd*)
7921  version_type=sunos
7922  sys_lib_dlsearch_path_spec="/usr/lib"
7923  need_lib_prefix=no
7924  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
7925  case $host_os in
7926    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
7927    *)                         need_version=no  ;;
7928  esac
7929  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7930  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7931  shlibpath_var=LD_LIBRARY_PATH
7932  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7933    case $host_os in
7934      openbsd2.[89] | openbsd2.[89].*)
7935	shlibpath_overrides_runpath=no
7936	;;
7937      *)
7938	shlibpath_overrides_runpath=yes
7939	;;
7940      esac
7941  else
7942    shlibpath_overrides_runpath=yes
7943  fi
7944  ;;
7945
7946os2*)
7947  libname_spec='$name'
7948  shrext_cmds=".dll"
7949  need_lib_prefix=no
7950  library_names_spec='$libname${shared_ext} $libname.a'
7951  dynamic_linker='OS/2 ld.exe'
7952  shlibpath_var=LIBPATH
7953  ;;
7954
7955osf3* | osf4* | osf5*)
7956  version_type=osf
7957  need_lib_prefix=no
7958  need_version=no
7959  soname_spec='${libname}${release}${shared_ext}$major'
7960  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7961  shlibpath_var=LD_LIBRARY_PATH
7962  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7963  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7964  ;;
7965
7966solaris*)
7967  version_type=linux
7968  need_lib_prefix=no
7969  need_version=no
7970  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7971  soname_spec='${libname}${release}${shared_ext}$major'
7972  shlibpath_var=LD_LIBRARY_PATH
7973  shlibpath_overrides_runpath=yes
7974  hardcode_into_libs=yes
7975  # ldd complains unless libraries are executable
7976  postinstall_cmds='chmod +x $lib'
7977  ;;
7978
7979sunos4*)
7980  version_type=sunos
7981  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7982  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7983  shlibpath_var=LD_LIBRARY_PATH
7984  shlibpath_overrides_runpath=yes
7985  if test "$with_gnu_ld" = yes; then
7986    need_lib_prefix=no
7987  fi
7988  need_version=yes
7989  ;;
7990
7991sysv4 | sysv4.3*)
7992  version_type=linux
7993  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7994  soname_spec='${libname}${release}${shared_ext}$major'
7995  shlibpath_var=LD_LIBRARY_PATH
7996  case $host_vendor in
7997    sni)
7998      shlibpath_overrides_runpath=no
7999      need_lib_prefix=no
8000      export_dynamic_flag_spec='${wl}-Blargedynsym'
8001      runpath_var=LD_RUN_PATH
8002      ;;
8003    siemens)
8004      need_lib_prefix=no
8005      ;;
8006    motorola)
8007      need_lib_prefix=no
8008      need_version=no
8009      shlibpath_overrides_runpath=no
8010      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8011      ;;
8012  esac
8013  ;;
8014
8015sysv4*MP*)
8016  if test -d /usr/nec ;then
8017    version_type=linux
8018    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8019    soname_spec='$libname${shared_ext}.$major'
8020    shlibpath_var=LD_LIBRARY_PATH
8021  fi
8022  ;;
8023
8024sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8025  version_type=freebsd-elf
8026  need_lib_prefix=no
8027  need_version=no
8028  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8029  soname_spec='${libname}${release}${shared_ext}$major'
8030  shlibpath_var=LD_LIBRARY_PATH
8031  hardcode_into_libs=yes
8032  if test "$with_gnu_ld" = yes; then
8033    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8034    shlibpath_overrides_runpath=no
8035  else
8036    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8037    shlibpath_overrides_runpath=yes
8038    case $host_os in
8039      sco3.2v5*)
8040        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8041	;;
8042    esac
8043  fi
8044  sys_lib_dlsearch_path_spec='/usr/lib'
8045  ;;
8046
8047uts4*)
8048  version_type=linux
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
8054*)
8055  dynamic_linker=no
8056  ;;
8057esac
8058echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8059echo "${ECHO_T}$dynamic_linker" >&6
8060test "$dynamic_linker" = no && can_build_shared=no
8061
8062variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8063if test "$GCC" = yes; then
8064  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8065fi
8066
8067echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8068echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8069hardcode_action=
8070if test -n "$hardcode_libdir_flag_spec" || \
8071   test -n "$runpath_var" || \
8072   test "X$hardcode_automatic" = "Xyes" ; then
8073
8074  # We can hardcode non-existant directories.
8075  if test "$hardcode_direct" != no &&
8076     # If the only mechanism to avoid hardcoding is shlibpath_var, we
8077     # have to relink, otherwise we might link with an installed library
8078     # when we should be linking with a yet-to-be-installed one
8079     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8080     test "$hardcode_minus_L" != no; then
8081    # Linking always hardcodes the temporary library directory.
8082    hardcode_action=relink
8083  else
8084    # We can link without hardcoding, and we can hardcode nonexisting dirs.
8085    hardcode_action=immediate
8086  fi
8087else
8088  # We cannot hardcode anything, or else we can only hardcode existing
8089  # directories.
8090  hardcode_action=unsupported
8091fi
8092echo "$as_me:$LINENO: result: $hardcode_action" >&5
8093echo "${ECHO_T}$hardcode_action" >&6
8094
8095if test "$hardcode_action" = relink; then
8096  # Fast installation is not supported
8097  enable_fast_install=no
8098elif test "$shlibpath_overrides_runpath" = yes ||
8099     test "$enable_shared" = no; then
8100  # Fast installation is not necessary
8101  enable_fast_install=needless
8102fi
8103
8104striplib=
8105old_striplib=
8106echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8107echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8108if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8109  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8110  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8111  echo "$as_me:$LINENO: result: yes" >&5
8112echo "${ECHO_T}yes" >&6
8113else
8114# FIXME - insert some real tests, host_os isn't really good enough
8115  case $host_os in
8116   darwin*)
8117       if test -n "$STRIP" ; then
8118         striplib="$STRIP -x"
8119         echo "$as_me:$LINENO: result: yes" >&5
8120echo "${ECHO_T}yes" >&6
8121       else
8122  echo "$as_me:$LINENO: result: no" >&5
8123echo "${ECHO_T}no" >&6
8124fi
8125       ;;
8126   *)
8127  echo "$as_me:$LINENO: result: no" >&5
8128echo "${ECHO_T}no" >&6
8129    ;;
8130  esac
8131fi
8132
8133if test "x$enable_dlopen" != xyes; then
8134  enable_dlopen=unknown
8135  enable_dlopen_self=unknown
8136  enable_dlopen_self_static=unknown
8137else
8138  lt_cv_dlopen=no
8139  lt_cv_dlopen_libs=
8140
8141  case $host_os in
8142  beos*)
8143    lt_cv_dlopen="load_add_on"
8144    lt_cv_dlopen_libs=
8145    lt_cv_dlopen_self=yes
8146    ;;
8147
8148  mingw* | pw32*)
8149    lt_cv_dlopen="LoadLibrary"
8150    lt_cv_dlopen_libs=
8151   ;;
8152
8153  cygwin*)
8154    lt_cv_dlopen="dlopen"
8155    lt_cv_dlopen_libs=
8156   ;;
8157
8158  darwin*)
8159  # if libdl is installed we need to link against it
8160    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8161echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8162if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8163  echo $ECHO_N "(cached) $ECHO_C" >&6
8164else
8165  ac_check_lib_save_LIBS=$LIBS
8166LIBS="-ldl  $LIBS"
8167cat >conftest.$ac_ext <<_ACEOF
8168/* confdefs.h.  */
8169_ACEOF
8170cat confdefs.h >>conftest.$ac_ext
8171cat >>conftest.$ac_ext <<_ACEOF
8172/* end confdefs.h.  */
8173
8174/* Override any gcc2 internal prototype to avoid an error.  */
8175#ifdef __cplusplus
8176extern "C"
8177#endif
8178/* We use char because int might match the return type of a gcc2
8179   builtin and then its argument prototype would still apply.  */
8180char dlopen ();
8181int
8182main ()
8183{
8184dlopen ();
8185  ;
8186  return 0;
8187}
8188_ACEOF
8189rm -f conftest.$ac_objext conftest$ac_exeext
8190if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8191  (eval $ac_link) 2>conftest.er1
8192  ac_status=$?
8193  grep -v '^ *+' conftest.er1 >conftest.err
8194  rm -f conftest.er1
8195  cat conftest.err >&5
8196  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8197  (exit $ac_status); } &&
8198	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
8199  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8200  (eval $ac_try) 2>&5
8201  ac_status=$?
8202  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8203  (exit $ac_status); }; } &&
8204	 { ac_try='test -s conftest$ac_exeext'
8205  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8206  (eval $ac_try) 2>&5
8207  ac_status=$?
8208  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8209  (exit $ac_status); }; }; then
8210  ac_cv_lib_dl_dlopen=yes
8211else
8212  echo "$as_me: failed program was:" >&5
8213sed 's/^/| /' conftest.$ac_ext >&5
8214
8215ac_cv_lib_dl_dlopen=no
8216fi
8217rm -f conftest.err conftest.$ac_objext \
8218      conftest$ac_exeext conftest.$ac_ext
8219LIBS=$ac_check_lib_save_LIBS
8220fi
8221echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8222echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8223if test $ac_cv_lib_dl_dlopen = yes; then
8224  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8225else
8226
8227    lt_cv_dlopen="dyld"
8228    lt_cv_dlopen_libs=
8229    lt_cv_dlopen_self=yes
8230
8231fi
8232
8233   ;;
8234
8235  *)
8236    echo "$as_me:$LINENO: checking for shl_load" >&5
8237echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8238if test "${ac_cv_func_shl_load+set}" = set; then
8239  echo $ECHO_N "(cached) $ECHO_C" >&6
8240else
8241  cat >conftest.$ac_ext <<_ACEOF
8242/* confdefs.h.  */
8243_ACEOF
8244cat confdefs.h >>conftest.$ac_ext
8245cat >>conftest.$ac_ext <<_ACEOF
8246/* end confdefs.h.  */
8247/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8248   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8249#define shl_load innocuous_shl_load
8250
8251/* System header to define __stub macros and hopefully few prototypes,
8252    which can conflict with char shl_load (); below.
8253    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8254    <limits.h> exists even on freestanding compilers.  */
8255
8256#ifdef __STDC__
8257# include <limits.h>
8258#else
8259# include <assert.h>
8260#endif
8261
8262#undef shl_load
8263
8264/* Override any gcc2 internal prototype to avoid an error.  */
8265#ifdef __cplusplus
8266extern "C"
8267{
8268#endif
8269/* We use char because int might match the return type of a gcc2
8270   builtin and then its argument prototype would still apply.  */
8271char shl_load ();
8272/* The GNU C library defines this for functions which it implements
8273    to always fail with ENOSYS.  Some functions are actually named
8274    something starting with __ and the normal name is an alias.  */
8275#if defined (__stub_shl_load) || defined (__stub___shl_load)
8276choke me
8277#else
8278char (*f) () = shl_load;
8279#endif
8280#ifdef __cplusplus
8281}
8282#endif
8283
8284int
8285main ()
8286{
8287return f != shl_load;
8288  ;
8289  return 0;
8290}
8291_ACEOF
8292rm -f conftest.$ac_objext conftest$ac_exeext
8293if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8294  (eval $ac_link) 2>conftest.er1
8295  ac_status=$?
8296  grep -v '^ *+' conftest.er1 >conftest.err
8297  rm -f conftest.er1
8298  cat conftest.err >&5
8299  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8300  (exit $ac_status); } &&
8301	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
8302  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8303  (eval $ac_try) 2>&5
8304  ac_status=$?
8305  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8306  (exit $ac_status); }; } &&
8307	 { ac_try='test -s conftest$ac_exeext'
8308  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8309  (eval $ac_try) 2>&5
8310  ac_status=$?
8311  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8312  (exit $ac_status); }; }; then
8313  ac_cv_func_shl_load=yes
8314else
8315  echo "$as_me: failed program was:" >&5
8316sed 's/^/| /' conftest.$ac_ext >&5
8317
8318ac_cv_func_shl_load=no
8319fi
8320rm -f conftest.err conftest.$ac_objext \
8321      conftest$ac_exeext conftest.$ac_ext
8322fi
8323echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8324echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8325if test $ac_cv_func_shl_load = yes; then
8326  lt_cv_dlopen="shl_load"
8327else
8328  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8329echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8330if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8331  echo $ECHO_N "(cached) $ECHO_C" >&6
8332else
8333  ac_check_lib_save_LIBS=$LIBS
8334LIBS="-ldld  $LIBS"
8335cat >conftest.$ac_ext <<_ACEOF
8336/* confdefs.h.  */
8337_ACEOF
8338cat confdefs.h >>conftest.$ac_ext
8339cat >>conftest.$ac_ext <<_ACEOF
8340/* end confdefs.h.  */
8341
8342/* Override any gcc2 internal prototype to avoid an error.  */
8343#ifdef __cplusplus
8344extern "C"
8345#endif
8346/* We use char because int might match the return type of a gcc2
8347   builtin and then its argument prototype would still apply.  */
8348char shl_load ();
8349int
8350main ()
8351{
8352shl_load ();
8353  ;
8354  return 0;
8355}
8356_ACEOF
8357rm -f conftest.$ac_objext conftest$ac_exeext
8358if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8359  (eval $ac_link) 2>conftest.er1
8360  ac_status=$?
8361  grep -v '^ *+' conftest.er1 >conftest.err
8362  rm -f conftest.er1
8363  cat conftest.err >&5
8364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8365  (exit $ac_status); } &&
8366	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
8367  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8368  (eval $ac_try) 2>&5
8369  ac_status=$?
8370  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371  (exit $ac_status); }; } &&
8372	 { ac_try='test -s conftest$ac_exeext'
8373  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8374  (eval $ac_try) 2>&5
8375  ac_status=$?
8376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8377  (exit $ac_status); }; }; then
8378  ac_cv_lib_dld_shl_load=yes
8379else
8380  echo "$as_me: failed program was:" >&5
8381sed 's/^/| /' conftest.$ac_ext >&5
8382
8383ac_cv_lib_dld_shl_load=no
8384fi
8385rm -f conftest.err conftest.$ac_objext \
8386      conftest$ac_exeext conftest.$ac_ext
8387LIBS=$ac_check_lib_save_LIBS
8388fi
8389echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8390echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8391if test $ac_cv_lib_dld_shl_load = yes; then
8392  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8393else
8394  echo "$as_me:$LINENO: checking for dlopen" >&5
8395echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8396if test "${ac_cv_func_dlopen+set}" = set; then
8397  echo $ECHO_N "(cached) $ECHO_C" >&6
8398else
8399  cat >conftest.$ac_ext <<_ACEOF
8400/* confdefs.h.  */
8401_ACEOF
8402cat confdefs.h >>conftest.$ac_ext
8403cat >>conftest.$ac_ext <<_ACEOF
8404/* end confdefs.h.  */
8405/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8406   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8407#define dlopen innocuous_dlopen
8408
8409/* System header to define __stub macros and hopefully few prototypes,
8410    which can conflict with char dlopen (); below.
8411    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8412    <limits.h> exists even on freestanding compilers.  */
8413
8414#ifdef __STDC__
8415# include <limits.h>
8416#else
8417# include <assert.h>
8418#endif
8419
8420#undef dlopen
8421
8422/* Override any gcc2 internal prototype to avoid an error.  */
8423#ifdef __cplusplus
8424extern "C"
8425{
8426#endif
8427/* We use char because int might match the return type of a gcc2
8428   builtin and then its argument prototype would still apply.  */
8429char dlopen ();
8430/* The GNU C library defines this for functions which it implements
8431    to always fail with ENOSYS.  Some functions are actually named
8432    something starting with __ and the normal name is an alias.  */
8433#if defined (__stub_dlopen) || defined (__stub___dlopen)
8434choke me
8435#else
8436char (*f) () = dlopen;
8437#endif
8438#ifdef __cplusplus
8439}
8440#endif
8441
8442int
8443main ()
8444{
8445return f != dlopen;
8446  ;
8447  return 0;
8448}
8449_ACEOF
8450rm -f conftest.$ac_objext conftest$ac_exeext
8451if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8452  (eval $ac_link) 2>conftest.er1
8453  ac_status=$?
8454  grep -v '^ *+' conftest.er1 >conftest.err
8455  rm -f conftest.er1
8456  cat conftest.err >&5
8457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8458  (exit $ac_status); } &&
8459	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
8460  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8461  (eval $ac_try) 2>&5
8462  ac_status=$?
8463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8464  (exit $ac_status); }; } &&
8465	 { ac_try='test -s conftest$ac_exeext'
8466  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8467  (eval $ac_try) 2>&5
8468  ac_status=$?
8469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8470  (exit $ac_status); }; }; then
8471  ac_cv_func_dlopen=yes
8472else
8473  echo "$as_me: failed program was:" >&5
8474sed 's/^/| /' conftest.$ac_ext >&5
8475
8476ac_cv_func_dlopen=no
8477fi
8478rm -f conftest.err conftest.$ac_objext \
8479      conftest$ac_exeext conftest.$ac_ext
8480fi
8481echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8482echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8483if test $ac_cv_func_dlopen = yes; then
8484  lt_cv_dlopen="dlopen"
8485else
8486  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8487echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8488if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8489  echo $ECHO_N "(cached) $ECHO_C" >&6
8490else
8491  ac_check_lib_save_LIBS=$LIBS
8492LIBS="-ldl  $LIBS"
8493cat >conftest.$ac_ext <<_ACEOF
8494/* confdefs.h.  */
8495_ACEOF
8496cat confdefs.h >>conftest.$ac_ext
8497cat >>conftest.$ac_ext <<_ACEOF
8498/* end confdefs.h.  */
8499
8500/* Override any gcc2 internal prototype to avoid an error.  */
8501#ifdef __cplusplus
8502extern "C"
8503#endif
8504/* We use char because int might match the return type of a gcc2
8505   builtin and then its argument prototype would still apply.  */
8506char dlopen ();
8507int
8508main ()
8509{
8510dlopen ();
8511  ;
8512  return 0;
8513}
8514_ACEOF
8515rm -f conftest.$ac_objext conftest$ac_exeext
8516if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8517  (eval $ac_link) 2>conftest.er1
8518  ac_status=$?
8519  grep -v '^ *+' conftest.er1 >conftest.err
8520  rm -f conftest.er1
8521  cat conftest.err >&5
8522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8523  (exit $ac_status); } &&
8524	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
8525  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8526  (eval $ac_try) 2>&5
8527  ac_status=$?
8528  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8529  (exit $ac_status); }; } &&
8530	 { ac_try='test -s conftest$ac_exeext'
8531  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8532  (eval $ac_try) 2>&5
8533  ac_status=$?
8534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535  (exit $ac_status); }; }; then
8536  ac_cv_lib_dl_dlopen=yes
8537else
8538  echo "$as_me: failed program was:" >&5
8539sed 's/^/| /' conftest.$ac_ext >&5
8540
8541ac_cv_lib_dl_dlopen=no
8542fi
8543rm -f conftest.err conftest.$ac_objext \
8544      conftest$ac_exeext conftest.$ac_ext
8545LIBS=$ac_check_lib_save_LIBS
8546fi
8547echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8548echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8549if test $ac_cv_lib_dl_dlopen = yes; then
8550  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8551else
8552  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8553echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8554if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8555  echo $ECHO_N "(cached) $ECHO_C" >&6
8556else
8557  ac_check_lib_save_LIBS=$LIBS
8558LIBS="-lsvld  $LIBS"
8559cat >conftest.$ac_ext <<_ACEOF
8560/* confdefs.h.  */
8561_ACEOF
8562cat confdefs.h >>conftest.$ac_ext
8563cat >>conftest.$ac_ext <<_ACEOF
8564/* end confdefs.h.  */
8565
8566/* Override any gcc2 internal prototype to avoid an error.  */
8567#ifdef __cplusplus
8568extern "C"
8569#endif
8570/* We use char because int might match the return type of a gcc2
8571   builtin and then its argument prototype would still apply.  */
8572char dlopen ();
8573int
8574main ()
8575{
8576dlopen ();
8577  ;
8578  return 0;
8579}
8580_ACEOF
8581rm -f conftest.$ac_objext conftest$ac_exeext
8582if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8583  (eval $ac_link) 2>conftest.er1
8584  ac_status=$?
8585  grep -v '^ *+' conftest.er1 >conftest.err
8586  rm -f conftest.er1
8587  cat conftest.err >&5
8588  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8589  (exit $ac_status); } &&
8590	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
8591  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8592  (eval $ac_try) 2>&5
8593  ac_status=$?
8594  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8595  (exit $ac_status); }; } &&
8596	 { ac_try='test -s conftest$ac_exeext'
8597  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8598  (eval $ac_try) 2>&5
8599  ac_status=$?
8600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8601  (exit $ac_status); }; }; then
8602  ac_cv_lib_svld_dlopen=yes
8603else
8604  echo "$as_me: failed program was:" >&5
8605sed 's/^/| /' conftest.$ac_ext >&5
8606
8607ac_cv_lib_svld_dlopen=no
8608fi
8609rm -f conftest.err conftest.$ac_objext \
8610      conftest$ac_exeext conftest.$ac_ext
8611LIBS=$ac_check_lib_save_LIBS
8612fi
8613echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8614echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8615if test $ac_cv_lib_svld_dlopen = yes; then
8616  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8617else
8618  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8619echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8620if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8621  echo $ECHO_N "(cached) $ECHO_C" >&6
8622else
8623  ac_check_lib_save_LIBS=$LIBS
8624LIBS="-ldld  $LIBS"
8625cat >conftest.$ac_ext <<_ACEOF
8626/* confdefs.h.  */
8627_ACEOF
8628cat confdefs.h >>conftest.$ac_ext
8629cat >>conftest.$ac_ext <<_ACEOF
8630/* end confdefs.h.  */
8631
8632/* Override any gcc2 internal prototype to avoid an error.  */
8633#ifdef __cplusplus
8634extern "C"
8635#endif
8636/* We use char because int might match the return type of a gcc2
8637   builtin and then its argument prototype would still apply.  */
8638char dld_link ();
8639int
8640main ()
8641{
8642dld_link ();
8643  ;
8644  return 0;
8645}
8646_ACEOF
8647rm -f conftest.$ac_objext conftest$ac_exeext
8648if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8649  (eval $ac_link) 2>conftest.er1
8650  ac_status=$?
8651  grep -v '^ *+' conftest.er1 >conftest.err
8652  rm -f conftest.er1
8653  cat conftest.err >&5
8654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8655  (exit $ac_status); } &&
8656	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
8657  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8658  (eval $ac_try) 2>&5
8659  ac_status=$?
8660  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8661  (exit $ac_status); }; } &&
8662	 { ac_try='test -s conftest$ac_exeext'
8663  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8664  (eval $ac_try) 2>&5
8665  ac_status=$?
8666  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8667  (exit $ac_status); }; }; then
8668  ac_cv_lib_dld_dld_link=yes
8669else
8670  echo "$as_me: failed program was:" >&5
8671sed 's/^/| /' conftest.$ac_ext >&5
8672
8673ac_cv_lib_dld_dld_link=no
8674fi
8675rm -f conftest.err conftest.$ac_objext \
8676      conftest$ac_exeext conftest.$ac_ext
8677LIBS=$ac_check_lib_save_LIBS
8678fi
8679echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8680echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8681if test $ac_cv_lib_dld_dld_link = yes; then
8682  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8683fi
8684
8685
8686fi
8687
8688
8689fi
8690
8691
8692fi
8693
8694
8695fi
8696
8697
8698fi
8699
8700    ;;
8701  esac
8702
8703  if test "x$lt_cv_dlopen" != xno; then
8704    enable_dlopen=yes
8705  else
8706    enable_dlopen=no
8707  fi
8708
8709  case $lt_cv_dlopen in
8710  dlopen)
8711    save_CPPFLAGS="$CPPFLAGS"
8712    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8713
8714    save_LDFLAGS="$LDFLAGS"
8715    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8716
8717    save_LIBS="$LIBS"
8718    LIBS="$lt_cv_dlopen_libs $LIBS"
8719
8720    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8721echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8722if test "${lt_cv_dlopen_self+set}" = set; then
8723  echo $ECHO_N "(cached) $ECHO_C" >&6
8724else
8725  	  if test "$cross_compiling" = yes; then :
8726  lt_cv_dlopen_self=cross
8727else
8728  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8729  lt_status=$lt_dlunknown
8730  cat > conftest.$ac_ext <<EOF
8731#line 8731 "configure"
8732#include "confdefs.h"
8733
8734#if HAVE_DLFCN_H
8735#include <dlfcn.h>
8736#endif
8737
8738#include <stdio.h>
8739
8740#ifdef RTLD_GLOBAL
8741#  define LT_DLGLOBAL		RTLD_GLOBAL
8742#else
8743#  ifdef DL_GLOBAL
8744#    define LT_DLGLOBAL		DL_GLOBAL
8745#  else
8746#    define LT_DLGLOBAL		0
8747#  endif
8748#endif
8749
8750/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8751   find out it does not work in some platform. */
8752#ifndef LT_DLLAZY_OR_NOW
8753#  ifdef RTLD_LAZY
8754#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
8755#  else
8756#    ifdef DL_LAZY
8757#      define LT_DLLAZY_OR_NOW		DL_LAZY
8758#    else
8759#      ifdef RTLD_NOW
8760#        define LT_DLLAZY_OR_NOW	RTLD_NOW
8761#      else
8762#        ifdef DL_NOW
8763#          define LT_DLLAZY_OR_NOW	DL_NOW
8764#        else
8765#          define LT_DLLAZY_OR_NOW	0
8766#        endif
8767#      endif
8768#    endif
8769#  endif
8770#endif
8771
8772#ifdef __cplusplus
8773extern "C" void exit (int);
8774#endif
8775
8776void fnord() { int i=42;}
8777int main ()
8778{
8779  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8780  int status = $lt_dlunknown;
8781
8782  if (self)
8783    {
8784      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8785      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8786      /* dlclose (self); */
8787    }
8788  else
8789    puts (dlerror ());
8790
8791    exit (status);
8792}
8793EOF
8794  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8795  (eval $ac_link) 2>&5
8796  ac_status=$?
8797  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8798  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8799    (./conftest; exit; ) >&5 2>/dev/null
8800    lt_status=$?
8801    case x$lt_status in
8802      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8803      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8804      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
8805    esac
8806  else :
8807    # compilation failed
8808    lt_cv_dlopen_self=no
8809  fi
8810fi
8811rm -fr conftest*
8812
8813
8814fi
8815echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8816echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8817
8818    if test "x$lt_cv_dlopen_self" = xyes; then
8819      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
8820      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8821echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8822if test "${lt_cv_dlopen_self_static+set}" = set; then
8823  echo $ECHO_N "(cached) $ECHO_C" >&6
8824else
8825  	  if test "$cross_compiling" = yes; then :
8826  lt_cv_dlopen_self_static=cross
8827else
8828  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8829  lt_status=$lt_dlunknown
8830  cat > conftest.$ac_ext <<EOF
8831#line 8831 "configure"
8832#include "confdefs.h"
8833
8834#if HAVE_DLFCN_H
8835#include <dlfcn.h>
8836#endif
8837
8838#include <stdio.h>
8839
8840#ifdef RTLD_GLOBAL
8841#  define LT_DLGLOBAL		RTLD_GLOBAL
8842#else
8843#  ifdef DL_GLOBAL
8844#    define LT_DLGLOBAL		DL_GLOBAL
8845#  else
8846#    define LT_DLGLOBAL		0
8847#  endif
8848#endif
8849
8850/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8851   find out it does not work in some platform. */
8852#ifndef LT_DLLAZY_OR_NOW
8853#  ifdef RTLD_LAZY
8854#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
8855#  else
8856#    ifdef DL_LAZY
8857#      define LT_DLLAZY_OR_NOW		DL_LAZY
8858#    else
8859#      ifdef RTLD_NOW
8860#        define LT_DLLAZY_OR_NOW	RTLD_NOW
8861#      else
8862#        ifdef DL_NOW
8863#          define LT_DLLAZY_OR_NOW	DL_NOW
8864#        else
8865#          define LT_DLLAZY_OR_NOW	0
8866#        endif
8867#      endif
8868#    endif
8869#  endif
8870#endif
8871
8872#ifdef __cplusplus
8873extern "C" void exit (int);
8874#endif
8875
8876void fnord() { int i=42;}
8877int main ()
8878{
8879  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8880  int status = $lt_dlunknown;
8881
8882  if (self)
8883    {
8884      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8885      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8886      /* dlclose (self); */
8887    }
8888  else
8889    puts (dlerror ());
8890
8891    exit (status);
8892}
8893EOF
8894  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8895  (eval $ac_link) 2>&5
8896  ac_status=$?
8897  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8898  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8899    (./conftest; exit; ) >&5 2>/dev/null
8900    lt_status=$?
8901    case x$lt_status in
8902      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8903      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8904      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
8905    esac
8906  else :
8907    # compilation failed
8908    lt_cv_dlopen_self_static=no
8909  fi
8910fi
8911rm -fr conftest*
8912
8913
8914fi
8915echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8916echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8917    fi
8918
8919    CPPFLAGS="$save_CPPFLAGS"
8920    LDFLAGS="$save_LDFLAGS"
8921    LIBS="$save_LIBS"
8922    ;;
8923  esac
8924
8925  case $lt_cv_dlopen_self in
8926  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8927  *) enable_dlopen_self=unknown ;;
8928  esac
8929
8930  case $lt_cv_dlopen_self_static in
8931  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8932  *) enable_dlopen_self_static=unknown ;;
8933  esac
8934fi
8935
8936
8937# Report which library types will actually be built
8938echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8939echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8940echo "$as_me:$LINENO: result: $can_build_shared" >&5
8941echo "${ECHO_T}$can_build_shared" >&6
8942
8943echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8944echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8945test "$can_build_shared" = "no" && enable_shared=no
8946
8947# On AIX, shared libraries and static libraries use the same namespace, and
8948# are all built from PIC.
8949case $host_os in
8950aix3*)
8951  test "$enable_shared" = yes && enable_static=no
8952  if test -n "$RANLIB"; then
8953    archive_cmds="$archive_cmds~\$RANLIB \$lib"
8954    postinstall_cmds='$RANLIB $lib'
8955  fi
8956  ;;
8957
8958aix4* | aix5*)
8959  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8960    test "$enable_shared" = yes && enable_static=no
8961  fi
8962    ;;
8963esac
8964echo "$as_me:$LINENO: result: $enable_shared" >&5
8965echo "${ECHO_T}$enable_shared" >&6
8966
8967echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8968echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8969# Make sure either enable_shared or enable_static is yes.
8970test "$enable_shared" = yes || enable_static=yes
8971echo "$as_me:$LINENO: result: $enable_static" >&5
8972echo "${ECHO_T}$enable_static" >&6
8973
8974# The else clause should only fire when bootstrapping the
8975# libtool distribution, otherwise you forgot to ship ltmain.sh
8976# with your package, and you will get complaints that there are
8977# no rules to generate ltmain.sh.
8978if test -f "$ltmain"; then
8979  # See if we are running on zsh, and set the options which allow our commands through
8980  # without removal of \ escapes.
8981  if test -n "${ZSH_VERSION+set}" ; then
8982    setopt NO_GLOB_SUBST
8983  fi
8984  # Now quote all the things that may contain metacharacters while being
8985  # careful not to overquote the AC_SUBSTed values.  We take copies of the
8986  # variables and quote the copies for generation of the libtool script.
8987  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
8988    SED SHELL STRIP \
8989    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8990    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8991    deplibs_check_method reload_flag reload_cmds need_locks \
8992    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8993    lt_cv_sys_global_symbol_to_c_name_address \
8994    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8995    old_postinstall_cmds old_postuninstall_cmds \
8996    compiler \
8997    CC \
8998    LD \
8999    lt_prog_compiler_wl \
9000    lt_prog_compiler_pic \
9001    lt_prog_compiler_static \
9002    lt_prog_compiler_no_builtin_flag \
9003    export_dynamic_flag_spec \
9004    thread_safe_flag_spec \
9005    whole_archive_flag_spec \
9006    enable_shared_with_static_runtimes \
9007    old_archive_cmds \
9008    old_archive_from_new_cmds \
9009    predep_objects \
9010    postdep_objects \
9011    predeps \
9012    postdeps \
9013    compiler_lib_search_path \
9014    archive_cmds \
9015    archive_expsym_cmds \
9016    postinstall_cmds \
9017    postuninstall_cmds \
9018    old_archive_from_expsyms_cmds \
9019    allow_undefined_flag \
9020    no_undefined_flag \
9021    export_symbols_cmds \
9022    hardcode_libdir_flag_spec \
9023    hardcode_libdir_flag_spec_ld \
9024    hardcode_libdir_separator \
9025    hardcode_automatic \
9026    module_cmds \
9027    module_expsym_cmds \
9028    lt_cv_prog_compiler_c_o \
9029    exclude_expsyms \
9030    include_expsyms; do
9031
9032    case $var in
9033    old_archive_cmds | \
9034    old_archive_from_new_cmds | \
9035    archive_cmds | \
9036    archive_expsym_cmds | \
9037    module_cmds | \
9038    module_expsym_cmds | \
9039    old_archive_from_expsyms_cmds | \
9040    export_symbols_cmds | \
9041    extract_expsyms_cmds | reload_cmds | finish_cmds | \
9042    postinstall_cmds | postuninstall_cmds | \
9043    old_postinstall_cmds | old_postuninstall_cmds | \
9044    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9045      # Double-quote double-evaled strings.
9046      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9047      ;;
9048    *)
9049      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9050      ;;
9051    esac
9052  done
9053
9054  case $lt_echo in
9055  *'\$0 --fallback-echo"')
9056    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9057    ;;
9058  esac
9059
9060cfgfile="${ofile}T"
9061  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9062  $rm -f "$cfgfile"
9063  { echo "$as_me:$LINENO: creating $ofile" >&5
9064echo "$as_me: creating $ofile" >&6;}
9065
9066  cat <<__EOF__ >> "$cfgfile"
9067#! $SHELL
9068
9069# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9070# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9071# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9072#
9073# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9074# Free Software Foundation, Inc.
9075#
9076# This file is part of GNU Libtool:
9077# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9078#
9079# This program is free software; you can redistribute it and/or modify
9080# it under the terms of the GNU General Public License as published by
9081# the Free Software Foundation; either version 2 of the License, or
9082# (at your option) any later version.
9083#
9084# This program is distributed in the hope that it will be useful, but
9085# WITHOUT ANY WARRANTY; without even the implied warranty of
9086# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9087# General Public License for more details.
9088#
9089# You should have received a copy of the GNU General Public License
9090# along with this program; if not, write to the Free Software
9091# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9092#
9093# As a special exception to the GNU General Public License, if you
9094# distribute this file as part of a program that contains a
9095# configuration script generated by Autoconf, you may include it under
9096# the same distribution terms that you use for the rest of that program.
9097
9098# A sed program that does not truncate output.
9099SED=$lt_SED
9100
9101# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9102Xsed="$SED -e 1s/^X//"
9103
9104# The HP-UX ksh and POSIX shell print the target directory to stdout
9105# if CDPATH is set.
9106(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9107
9108# The names of the tagged configurations supported by this script.
9109available_tags=
9110
9111# ### BEGIN LIBTOOL CONFIG
9112
9113# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9114
9115# Shell to use when invoking shell scripts.
9116SHELL=$lt_SHELL
9117
9118# Whether or not to build shared libraries.
9119build_libtool_libs=$enable_shared
9120
9121# Whether or not to build static libraries.
9122build_old_libs=$enable_static
9123
9124# Whether or not to add -lc for building shared libraries.
9125build_libtool_need_lc=$archive_cmds_need_lc
9126
9127# Whether or not to disallow shared libs when runtime libs are static
9128allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9129
9130# Whether or not to optimize for fast installation.
9131fast_install=$enable_fast_install
9132
9133# The host system.
9134host_alias=$host_alias
9135host=$host
9136host_os=$host_os
9137
9138# The build system.
9139build_alias=$build_alias
9140build=$build
9141build_os=$build_os
9142
9143# An echo program that does not interpret backslashes.
9144echo=$lt_echo
9145
9146# The archiver.
9147AR=$lt_AR
9148AR_FLAGS=$lt_AR_FLAGS
9149
9150# A C compiler.
9151LTCC=$lt_LTCC
9152
9153# LTCC compiler flags.
9154LTCFLAGS=$lt_LTCFLAGS
9155
9156# A language-specific compiler.
9157CC=$lt_compiler
9158
9159# Is the compiler the GNU C compiler?
9160with_gcc=$GCC
9161
9162# An ERE matcher.
9163EGREP=$lt_EGREP
9164
9165# The linker used to build libraries.
9166LD=$lt_LD
9167
9168# Whether we need hard or soft links.
9169LN_S=$lt_LN_S
9170
9171# A BSD-compatible nm program.
9172NM=$lt_NM
9173
9174# A symbol stripping program
9175STRIP=$lt_STRIP
9176
9177# Used to examine libraries when file_magic_cmd begins "file"
9178MAGIC_CMD=$MAGIC_CMD
9179
9180# Used on cygwin: DLL creation program.
9181DLLTOOL="$DLLTOOL"
9182
9183# Used on cygwin: object dumper.
9184OBJDUMP="$OBJDUMP"
9185
9186# Used on cygwin: assembler.
9187AS="$AS"
9188
9189# The name of the directory that contains temporary libtool files.
9190objdir=$objdir
9191
9192# How to create reloadable object files.
9193reload_flag=$lt_reload_flag
9194reload_cmds=$lt_reload_cmds
9195
9196# How to pass a linker flag through the compiler.
9197wl=$lt_lt_prog_compiler_wl
9198
9199# Object file suffix (normally "o").
9200objext="$ac_objext"
9201
9202# Old archive suffix (normally "a").
9203libext="$libext"
9204
9205# Shared library suffix (normally ".so").
9206shrext_cmds='$shrext_cmds'
9207
9208# Executable file suffix (normally "").
9209exeext="$exeext"
9210
9211# Additional compiler flags for building library objects.
9212pic_flag=$lt_lt_prog_compiler_pic
9213pic_mode=$pic_mode
9214
9215# What is the maximum length of a command?
9216max_cmd_len=$lt_cv_sys_max_cmd_len
9217
9218# Does compiler simultaneously support -c and -o options?
9219compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9220
9221# Must we lock files when doing compilation?
9222need_locks=$lt_need_locks
9223
9224# Do we need the lib prefix for modules?
9225need_lib_prefix=$need_lib_prefix
9226
9227# Do we need a version for libraries?
9228need_version=$need_version
9229
9230# Whether dlopen is supported.
9231dlopen_support=$enable_dlopen
9232
9233# Whether dlopen of programs is supported.
9234dlopen_self=$enable_dlopen_self
9235
9236# Whether dlopen of statically linked programs is supported.
9237dlopen_self_static=$enable_dlopen_self_static
9238
9239# Compiler flag to prevent dynamic linking.
9240link_static_flag=$lt_lt_prog_compiler_static
9241
9242# Compiler flag to turn off builtin functions.
9243no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9244
9245# Compiler flag to allow reflexive dlopens.
9246export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9247
9248# Compiler flag to generate shared objects directly from archives.
9249whole_archive_flag_spec=$lt_whole_archive_flag_spec
9250
9251# Compiler flag to generate thread-safe objects.
9252thread_safe_flag_spec=$lt_thread_safe_flag_spec
9253
9254# Library versioning type.
9255version_type=$version_type
9256
9257# Format of library name prefix.
9258libname_spec=$lt_libname_spec
9259
9260# List of archive names.  First name is the real one, the rest are links.
9261# The last name is the one that the linker finds with -lNAME.
9262library_names_spec=$lt_library_names_spec
9263
9264# The coded name of the library, if different from the real name.
9265soname_spec=$lt_soname_spec
9266
9267# Commands used to build and install an old-style archive.
9268RANLIB=$lt_RANLIB
9269old_archive_cmds=$lt_old_archive_cmds
9270old_postinstall_cmds=$lt_old_postinstall_cmds
9271old_postuninstall_cmds=$lt_old_postuninstall_cmds
9272
9273# Create an old-style archive from a shared archive.
9274old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9275
9276# Create a temporary old-style archive to link instead of a shared archive.
9277old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9278
9279# Commands used to build and install a shared archive.
9280archive_cmds=$lt_archive_cmds
9281archive_expsym_cmds=$lt_archive_expsym_cmds
9282postinstall_cmds=$lt_postinstall_cmds
9283postuninstall_cmds=$lt_postuninstall_cmds
9284
9285# Commands used to build a loadable module (assumed same as above if empty)
9286module_cmds=$lt_module_cmds
9287module_expsym_cmds=$lt_module_expsym_cmds
9288
9289# Commands to strip libraries.
9290old_striplib=$lt_old_striplib
9291striplib=$lt_striplib
9292
9293# Dependencies to place before the objects being linked to create a
9294# shared library.
9295predep_objects=$lt_predep_objects
9296
9297# Dependencies to place after the objects being linked to create a
9298# shared library.
9299postdep_objects=$lt_postdep_objects
9300
9301# Dependencies to place before the objects being linked to create a
9302# shared library.
9303predeps=$lt_predeps
9304
9305# Dependencies to place after the objects being linked to create a
9306# shared library.
9307postdeps=$lt_postdeps
9308
9309# The library search path used internally by the compiler when linking
9310# a shared library.
9311compiler_lib_search_path=$lt_compiler_lib_search_path
9312
9313# Method to check whether dependent libraries are shared objects.
9314deplibs_check_method=$lt_deplibs_check_method
9315
9316# Command to use when deplibs_check_method == file_magic.
9317file_magic_cmd=$lt_file_magic_cmd
9318
9319# Flag that allows shared libraries with undefined symbols to be built.
9320allow_undefined_flag=$lt_allow_undefined_flag
9321
9322# Flag that forces no undefined symbols.
9323no_undefined_flag=$lt_no_undefined_flag
9324
9325# Commands used to finish a libtool library installation in a directory.
9326finish_cmds=$lt_finish_cmds
9327
9328# Same as above, but a single script fragment to be evaled but not shown.
9329finish_eval=$lt_finish_eval
9330
9331# Take the output of nm and produce a listing of raw symbols and C names.
9332global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9333
9334# Transform the output of nm in a proper C declaration
9335global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9336
9337# Transform the output of nm in a C name address pair
9338global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9339
9340# This is the shared library runtime path variable.
9341runpath_var=$runpath_var
9342
9343# This is the shared library path variable.
9344shlibpath_var=$shlibpath_var
9345
9346# Is shlibpath searched before the hard-coded library search path?
9347shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9348
9349# How to hardcode a shared library path into an executable.
9350hardcode_action=$hardcode_action
9351
9352# Whether we should hardcode library paths into libraries.
9353hardcode_into_libs=$hardcode_into_libs
9354
9355# Flag to hardcode \$libdir into a binary during linking.
9356# This must work even if \$libdir does not exist.
9357hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9358
9359# If ld is used when linking, flag to hardcode \$libdir into
9360# a binary during linking. This must work even if \$libdir does
9361# not exist.
9362hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9363
9364# Whether we need a single -rpath flag with a separated argument.
9365hardcode_libdir_separator=$lt_hardcode_libdir_separator
9366
9367# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9368# resulting binary.
9369hardcode_direct=$hardcode_direct
9370
9371# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9372# resulting binary.
9373hardcode_minus_L=$hardcode_minus_L
9374
9375# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9376# the resulting binary.
9377hardcode_shlibpath_var=$hardcode_shlibpath_var
9378
9379# Set to yes if building a shared library automatically hardcodes DIR into the library
9380# and all subsequent libraries and executables linked against it.
9381hardcode_automatic=$hardcode_automatic
9382
9383# Variables whose values should be saved in libtool wrapper scripts and
9384# restored at relink time.
9385variables_saved_for_relink="$variables_saved_for_relink"
9386
9387# Whether libtool must link a program against all its dependency libraries.
9388link_all_deplibs=$link_all_deplibs
9389
9390# Compile-time system search path for libraries
9391sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9392
9393# Run-time system search path for libraries
9394sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9395
9396# Fix the shell variable \$srcfile for the compiler.
9397fix_srcfile_path="$fix_srcfile_path"
9398
9399# Set to yes if exported symbols are required.
9400always_export_symbols=$always_export_symbols
9401
9402# The commands to list exported symbols.
9403export_symbols_cmds=$lt_export_symbols_cmds
9404
9405# The commands to extract the exported symbol list from a shared archive.
9406extract_expsyms_cmds=$lt_extract_expsyms_cmds
9407
9408# Symbols that should not be listed in the preloaded symbols.
9409exclude_expsyms=$lt_exclude_expsyms
9410
9411# Symbols that must always be exported.
9412include_expsyms=$lt_include_expsyms
9413
9414# ### END LIBTOOL CONFIG
9415
9416__EOF__
9417
9418
9419  case $host_os in
9420  aix3*)
9421    cat <<\EOF >> "$cfgfile"
9422
9423# AIX sometimes has problems with the GCC collect2 program.  For some
9424# reason, if we set the COLLECT_NAMES environment variable, the problems
9425# vanish in a puff of smoke.
9426if test "X${COLLECT_NAMES+set}" != Xset; then
9427  COLLECT_NAMES=
9428  export COLLECT_NAMES
9429fi
9430EOF
9431    ;;
9432  esac
9433
9434  # We use sed instead of cat because bash on DJGPP gets confused if
9435  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9436  # text mode, it properly converts lines to CR/LF.  This bash problem
9437  # is reportedly fixed, but why not run on old versions too?
9438  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9439
9440  mv -f "$cfgfile" "$ofile" || \
9441    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9442  chmod +x "$ofile"
9443
9444else
9445  # If there is no Makefile yet, we rely on a make rule to execute
9446  # `config.status --recheck' to rerun these tests and create the
9447  # libtool script then.
9448  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9449  if test -f "$ltmain_in"; then
9450    test -f Makefile && make "$ltmain"
9451  fi
9452fi
9453
9454
9455ac_ext=c
9456ac_cpp='$CPP $CPPFLAGS'
9457ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9458ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9459ac_compiler_gnu=$ac_cv_c_compiler_gnu
9460
9461CC="$lt_save_CC"
9462
9463
9464# Check whether --with-tags or --without-tags was given.
9465if test "${with_tags+set}" = set; then
9466  withval="$with_tags"
9467  tagnames="$withval"
9468fi;
9469
9470if test -f "$ltmain" && test -n "$tagnames"; then
9471  if test ! -f "${ofile}"; then
9472    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9473echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9474  fi
9475
9476  if test -z "$LTCC"; then
9477    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9478    if test -z "$LTCC"; then
9479      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9480echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9481    else
9482      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9483echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9484    fi
9485  fi
9486  if test -z "$LTCFLAGS"; then
9487    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
9488  fi
9489
9490  # Extract list of available tagged configurations in $ofile.
9491  # Note that this assumes the entire list is on one line.
9492  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9493
9494  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9495  for tagname in $tagnames; do
9496    IFS="$lt_save_ifs"
9497    # Check whether tagname contains only valid characters
9498    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9499    "") ;;
9500    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9501echo "$as_me: error: invalid tag name: $tagname" >&2;}
9502   { (exit 1); exit 1; }; }
9503	;;
9504    esac
9505
9506    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9507    then
9508      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9509echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9510   { (exit 1); exit 1; }; }
9511    fi
9512
9513    # Update the list of available tags.
9514    if test -n "$tagname"; then
9515      echo appending configuration tag \"$tagname\" to $ofile
9516
9517      case $tagname in
9518      CXX)
9519	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9520	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9521	    (test "X$CXX" != "Xg++"))) ; then
9522	  ac_ext=cc
9523ac_cpp='$CXXCPP $CPPFLAGS'
9524ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9525ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9526ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9527
9528
9529
9530
9531archive_cmds_need_lc_CXX=no
9532allow_undefined_flag_CXX=
9533always_export_symbols_CXX=no
9534archive_expsym_cmds_CXX=
9535export_dynamic_flag_spec_CXX=
9536hardcode_direct_CXX=no
9537hardcode_libdir_flag_spec_CXX=
9538hardcode_libdir_flag_spec_ld_CXX=
9539hardcode_libdir_separator_CXX=
9540hardcode_minus_L_CXX=no
9541hardcode_shlibpath_var_CXX=unsupported
9542hardcode_automatic_CXX=no
9543module_cmds_CXX=
9544module_expsym_cmds_CXX=
9545link_all_deplibs_CXX=unknown
9546old_archive_cmds_CXX=$old_archive_cmds
9547no_undefined_flag_CXX=
9548whole_archive_flag_spec_CXX=
9549enable_shared_with_static_runtimes_CXX=no
9550
9551# Dependencies to place before and after the object being linked:
9552predep_objects_CXX=
9553postdep_objects_CXX=
9554predeps_CXX=
9555postdeps_CXX=
9556compiler_lib_search_path_CXX=
9557
9558# Source file extension for C++ test sources.
9559ac_ext=cpp
9560
9561# Object file extension for compiled C++ test sources.
9562objext=o
9563objext_CXX=$objext
9564
9565# Code to be used in simple compile tests
9566lt_simple_compile_test_code="int some_variable = 0;\n"
9567
9568# Code to be used in simple link tests
9569lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
9570
9571# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9572
9573# If no C compiler was specified, use CC.
9574LTCC=${LTCC-"$CC"}
9575
9576# If no C compiler flags were specified, use CFLAGS.
9577LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9578
9579# Allow CC to be a program name with arguments.
9580compiler=$CC
9581
9582
9583# save warnings/boilerplate of simple test code
9584ac_outfile=conftest.$ac_objext
9585printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9586eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9587_lt_compiler_boilerplate=`cat conftest.err`
9588$rm conftest*
9589
9590ac_outfile=conftest.$ac_objext
9591printf "$lt_simple_link_test_code" >conftest.$ac_ext
9592eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9593_lt_linker_boilerplate=`cat conftest.err`
9594$rm conftest*
9595
9596
9597# Allow CC to be a program name with arguments.
9598lt_save_CC=$CC
9599lt_save_LD=$LD
9600lt_save_GCC=$GCC
9601GCC=$GXX
9602lt_save_with_gnu_ld=$with_gnu_ld
9603lt_save_path_LD=$lt_cv_path_LD
9604if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9605  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9606else
9607  $as_unset lt_cv_prog_gnu_ld
9608fi
9609if test -n "${lt_cv_path_LDCXX+set}"; then
9610  lt_cv_path_LD=$lt_cv_path_LDCXX
9611else
9612  $as_unset lt_cv_path_LD
9613fi
9614test -z "${LDCXX+set}" || LD=$LDCXX
9615CC=${CXX-"c++"}
9616compiler=$CC
9617compiler_CXX=$CC
9618for cc_temp in $compiler""; do
9619  case $cc_temp in
9620    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9621    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9622    \-*) ;;
9623    *) break;;
9624  esac
9625done
9626cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9627
9628
9629# We don't want -fno-exception wen compiling C++ code, so set the
9630# no_builtin_flag separately
9631if test "$GXX" = yes; then
9632  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9633else
9634  lt_prog_compiler_no_builtin_flag_CXX=
9635fi
9636
9637if test "$GXX" = yes; then
9638  # Set up default GNU C++ configuration
9639
9640
9641# Check whether --with-gnu-ld or --without-gnu-ld was given.
9642if test "${with_gnu_ld+set}" = set; then
9643  withval="$with_gnu_ld"
9644  test "$withval" = no || with_gnu_ld=yes
9645else
9646  with_gnu_ld=no
9647fi;
9648ac_prog=ld
9649if test "$GCC" = yes; then
9650  # Check if gcc -print-prog-name=ld gives a path.
9651  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9652echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9653  case $host in
9654  *-*-mingw*)
9655    # gcc leaves a trailing carriage return which upsets mingw
9656    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9657  *)
9658    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9659  esac
9660  case $ac_prog in
9661    # Accept absolute paths.
9662    [\\/]* | ?:[\\/]*)
9663      re_direlt='/[^/][^/]*/\.\./'
9664      # Canonicalize the pathname of ld
9665      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9666      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9667	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9668      done
9669      test -z "$LD" && LD="$ac_prog"
9670      ;;
9671  "")
9672    # If it fails, then pretend we aren't using GCC.
9673    ac_prog=ld
9674    ;;
9675  *)
9676    # If it is relative, then search for the first ld in PATH.
9677    with_gnu_ld=unknown
9678    ;;
9679  esac
9680elif test "$with_gnu_ld" = yes; then
9681  echo "$as_me:$LINENO: checking for GNU ld" >&5
9682echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9683else
9684  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9685echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9686fi
9687if test "${lt_cv_path_LD+set}" = set; then
9688  echo $ECHO_N "(cached) $ECHO_C" >&6
9689else
9690  if test -z "$LD"; then
9691  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9692  for ac_dir in $PATH; do
9693    IFS="$lt_save_ifs"
9694    test -z "$ac_dir" && ac_dir=.
9695    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9696      lt_cv_path_LD="$ac_dir/$ac_prog"
9697      # Check to see if the program is GNU ld.  I'd rather use --version,
9698      # but apparently some variants of GNU ld only accept -v.
9699      # Break only if it was the GNU/non-GNU ld that we prefer.
9700      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9701      *GNU* | *'with BFD'*)
9702	test "$with_gnu_ld" != no && break
9703	;;
9704      *)
9705	test "$with_gnu_ld" != yes && break
9706	;;
9707      esac
9708    fi
9709  done
9710  IFS="$lt_save_ifs"
9711else
9712  lt_cv_path_LD="$LD" # Let the user override the test with a path.
9713fi
9714fi
9715
9716LD="$lt_cv_path_LD"
9717if test -n "$LD"; then
9718  echo "$as_me:$LINENO: result: $LD" >&5
9719echo "${ECHO_T}$LD" >&6
9720else
9721  echo "$as_me:$LINENO: result: no" >&5
9722echo "${ECHO_T}no" >&6
9723fi
9724test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9725echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9726   { (exit 1); exit 1; }; }
9727echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9728echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9729if test "${lt_cv_prog_gnu_ld+set}" = set; then
9730  echo $ECHO_N "(cached) $ECHO_C" >&6
9731else
9732  # I'd rather use --version here, but apparently some GNU lds only accept -v.
9733case `$LD -v 2>&1 </dev/null` in
9734*GNU* | *'with BFD'*)
9735  lt_cv_prog_gnu_ld=yes
9736  ;;
9737*)
9738  lt_cv_prog_gnu_ld=no
9739  ;;
9740esac
9741fi
9742echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9743echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9744with_gnu_ld=$lt_cv_prog_gnu_ld
9745
9746
9747
9748  # Check if GNU C++ uses GNU ld as the underlying linker, since the
9749  # archiving commands below assume that GNU ld is being used.
9750  if test "$with_gnu_ld" = yes; then
9751    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9752    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'
9753
9754    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9755    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9756
9757    # If archive_cmds runs LD, not CC, wlarc should be empty
9758    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9759    #     investigate it a little bit more. (MM)
9760    wlarc='${wl}'
9761
9762    # ancient GNU ld didn't support --whole-archive et. al.
9763    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9764	grep 'no-whole-archive' > /dev/null; then
9765      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9766    else
9767      whole_archive_flag_spec_CXX=
9768    fi
9769  else
9770    with_gnu_ld=no
9771    wlarc=
9772
9773    # A generic and very simple default shared library creation
9774    # command for GNU C++ for the case where it uses the native
9775    # linker, instead of GNU ld.  If possible, this setting should
9776    # overridden to take advantage of the native linker features on
9777    # the platform it is being used on.
9778    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9779  fi
9780
9781  # Commands to make compiler produce verbose output that lists
9782  # what "hidden" libraries, object files and flags are used when
9783  # linking a shared library.
9784  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9785
9786else
9787  GXX=no
9788  with_gnu_ld=no
9789  wlarc=
9790fi
9791
9792# PORTME: fill in a description of your system's C++ link characteristics
9793echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9794echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9795ld_shlibs_CXX=yes
9796case $host_os in
9797  aix3*)
9798    # FIXME: insert proper C++ library support
9799    ld_shlibs_CXX=no
9800    ;;
9801  aix4* | aix5*)
9802    if test "$host_cpu" = ia64; then
9803      # On IA64, the linker does run time linking by default, so we don't
9804      # have to do anything special.
9805      aix_use_runtimelinking=no
9806      exp_sym_flag='-Bexport'
9807      no_entry_flag=""
9808    else
9809      aix_use_runtimelinking=no
9810
9811      # Test if we are trying to use run time linking or normal
9812      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9813      # need to do runtime linking.
9814      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9815	for ld_flag in $LDFLAGS; do
9816	  case $ld_flag in
9817	  *-brtl*)
9818	    aix_use_runtimelinking=yes
9819	    break
9820	    ;;
9821	  esac
9822	done
9823	;;
9824      esac
9825
9826      exp_sym_flag='-bexport'
9827      no_entry_flag='-bnoentry'
9828    fi
9829
9830    # When large executables or shared objects are built, AIX ld can
9831    # have problems creating the table of contents.  If linking a library
9832    # or program results in "error TOC overflow" add -mminimal-toc to
9833    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9834    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9835
9836    archive_cmds_CXX=''
9837    hardcode_direct_CXX=yes
9838    hardcode_libdir_separator_CXX=':'
9839    link_all_deplibs_CXX=yes
9840
9841    if test "$GXX" = yes; then
9842      case $host_os in aix4.[012]|aix4.[012].*)
9843      # We only want to do this on AIX 4.2 and lower, the check
9844      # below for broken collect2 doesn't work under 4.3+
9845	collect2name=`${CC} -print-prog-name=collect2`
9846	if test -f "$collect2name" && \
9847	   strings "$collect2name" | grep resolve_lib_name >/dev/null
9848	then
9849	  # We have reworked collect2
9850	  hardcode_direct_CXX=yes
9851	else
9852	  # We have old collect2
9853	  hardcode_direct_CXX=unsupported
9854	  # It fails to find uninstalled libraries when the uninstalled
9855	  # path is not listed in the libpath.  Setting hardcode_minus_L
9856	  # to unsupported forces relinking
9857	  hardcode_minus_L_CXX=yes
9858	  hardcode_libdir_flag_spec_CXX='-L$libdir'
9859	  hardcode_libdir_separator_CXX=
9860	fi
9861	;;
9862      esac
9863      shared_flag='-shared'
9864      if test "$aix_use_runtimelinking" = yes; then
9865	shared_flag="$shared_flag "'${wl}-G'
9866      fi
9867    else
9868      # not using gcc
9869      if test "$host_cpu" = ia64; then
9870	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9871	# chokes on -Wl,-G. The following line is correct:
9872	shared_flag='-G'
9873      else
9874	if test "$aix_use_runtimelinking" = yes; then
9875	  shared_flag='${wl}-G'
9876	else
9877	  shared_flag='${wl}-bM:SRE'
9878	fi
9879      fi
9880    fi
9881
9882    # It seems that -bexpall does not export symbols beginning with
9883    # underscore (_), so it is better to generate a list of symbols to export.
9884    always_export_symbols_CXX=yes
9885    if test "$aix_use_runtimelinking" = yes; then
9886      # Warning - without using the other runtime loading flags (-brtl),
9887      # -berok will link without error, but may produce a broken library.
9888      allow_undefined_flag_CXX='-berok'
9889      # Determine the default libpath from the value encoded in an empty executable.
9890      cat >conftest.$ac_ext <<_ACEOF
9891/* confdefs.h.  */
9892_ACEOF
9893cat confdefs.h >>conftest.$ac_ext
9894cat >>conftest.$ac_ext <<_ACEOF
9895/* end confdefs.h.  */
9896
9897int
9898main ()
9899{
9900
9901  ;
9902  return 0;
9903}
9904_ACEOF
9905rm -f conftest.$ac_objext conftest$ac_exeext
9906if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9907  (eval $ac_link) 2>conftest.er1
9908  ac_status=$?
9909  grep -v '^ *+' conftest.er1 >conftest.err
9910  rm -f conftest.er1
9911  cat conftest.err >&5
9912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913  (exit $ac_status); } &&
9914	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
9915  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9916  (eval $ac_try) 2>&5
9917  ac_status=$?
9918  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9919  (exit $ac_status); }; } &&
9920	 { ac_try='test -s conftest$ac_exeext'
9921  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9922  (eval $ac_try) 2>&5
9923  ac_status=$?
9924  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9925  (exit $ac_status); }; }; then
9926
9927aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9928}'`
9929# Check for a 64-bit object if we didn't find anything.
9930if 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; }
9931}'`; fi
9932else
9933  echo "$as_me: failed program was:" >&5
9934sed 's/^/| /' conftest.$ac_ext >&5
9935
9936fi
9937rm -f conftest.err conftest.$ac_objext \
9938      conftest$ac_exeext conftest.$ac_ext
9939if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9940
9941      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9942
9943      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"
9944     else
9945      if test "$host_cpu" = ia64; then
9946	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9947	allow_undefined_flag_CXX="-z nodefs"
9948	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"
9949      else
9950	# Determine the default libpath from the value encoded in an empty executable.
9951	cat >conftest.$ac_ext <<_ACEOF
9952/* confdefs.h.  */
9953_ACEOF
9954cat confdefs.h >>conftest.$ac_ext
9955cat >>conftest.$ac_ext <<_ACEOF
9956/* end confdefs.h.  */
9957
9958int
9959main ()
9960{
9961
9962  ;
9963  return 0;
9964}
9965_ACEOF
9966rm -f conftest.$ac_objext conftest$ac_exeext
9967if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9968  (eval $ac_link) 2>conftest.er1
9969  ac_status=$?
9970  grep -v '^ *+' conftest.er1 >conftest.err
9971  rm -f conftest.er1
9972  cat conftest.err >&5
9973  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9974  (exit $ac_status); } &&
9975	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
9976  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9977  (eval $ac_try) 2>&5
9978  ac_status=$?
9979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9980  (exit $ac_status); }; } &&
9981	 { ac_try='test -s conftest$ac_exeext'
9982  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9983  (eval $ac_try) 2>&5
9984  ac_status=$?
9985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9986  (exit $ac_status); }; }; then
9987
9988aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9989}'`
9990# Check for a 64-bit object if we didn't find anything.
9991if 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; }
9992}'`; fi
9993else
9994  echo "$as_me: failed program was:" >&5
9995sed 's/^/| /' conftest.$ac_ext >&5
9996
9997fi
9998rm -f conftest.err conftest.$ac_objext \
9999      conftest$ac_exeext conftest.$ac_ext
10000if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10001
10002	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10003	# Warning - without using the other run time loading flags,
10004	# -berok will link without error, but may produce a broken library.
10005	no_undefined_flag_CXX=' ${wl}-bernotok'
10006	allow_undefined_flag_CXX=' ${wl}-berok'
10007	# Exported symbols can be pulled into shared objects from archives
10008	whole_archive_flag_spec_CXX='$convenience'
10009	archive_cmds_need_lc_CXX=yes
10010	# This is similar to how AIX traditionally builds its shared libraries.
10011	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'
10012      fi
10013    fi
10014    ;;
10015
10016  beos*)
10017    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10018      allow_undefined_flag_CXX=unsupported
10019      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10020      # support --undefined.  This deserves some investigation.  FIXME
10021      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10022    else
10023      ld_shlibs_CXX=no
10024    fi
10025    ;;
10026
10027  chorus*)
10028    case $cc_basename in
10029      *)
10030	# FIXME: insert proper C++ library support
10031	ld_shlibs_CXX=no
10032	;;
10033    esac
10034    ;;
10035
10036  cygwin* | mingw* | pw32*)
10037    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10038    # as there is no search path for DLLs.
10039    hardcode_libdir_flag_spec_CXX='-L$libdir'
10040    allow_undefined_flag_CXX=unsupported
10041    always_export_symbols_CXX=no
10042    enable_shared_with_static_runtimes_CXX=yes
10043
10044    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10045      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'
10046      # If the export-symbols file already is a .def file (1st line
10047      # is EXPORTS), use it as is; otherwise, prepend...
10048      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10049	cp $export_symbols $output_objdir/$soname.def;
10050      else
10051	echo EXPORTS > $output_objdir/$soname.def;
10052	cat $export_symbols >> $output_objdir/$soname.def;
10053      fi~
10054      $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'
10055    else
10056      ld_shlibs_CXX=no
10057    fi
10058  ;;
10059      darwin* | rhapsody*)
10060        case $host_os in
10061        rhapsody* | darwin1.[012])
10062         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10063         ;;
10064       *) # Darwin 1.3 on
10065         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10066           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10067         else
10068           case ${MACOSX_DEPLOYMENT_TARGET} in
10069             10.[012])
10070               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10071               ;;
10072             10.*)
10073               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10074               ;;
10075           esac
10076         fi
10077         ;;
10078        esac
10079      archive_cmds_need_lc_CXX=no
10080      hardcode_direct_CXX=no
10081      hardcode_automatic_CXX=yes
10082      hardcode_shlibpath_var_CXX=unsupported
10083      whole_archive_flag_spec_CXX=''
10084      link_all_deplibs_CXX=yes
10085
10086    if test "$GXX" = yes ; then
10087      lt_int_apple_cc_single_mod=no
10088      output_verbose_link_cmd='echo'
10089      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10090       lt_int_apple_cc_single_mod=yes
10091      fi
10092      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10093       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10094      else
10095          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'
10096        fi
10097        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10098        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10099          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10100            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}'
10101          else
10102            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}'
10103          fi
10104            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}'
10105      else
10106      case $cc_basename in
10107        xlc*)
10108         output_verbose_link_cmd='echo'
10109          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'
10110          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10111          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10112          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}'
10113          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}'
10114          ;;
10115       *)
10116         ld_shlibs_CXX=no
10117          ;;
10118      esac
10119      fi
10120        ;;
10121
10122  dgux*)
10123    case $cc_basename in
10124      ec++*)
10125	# FIXME: insert proper C++ library support
10126	ld_shlibs_CXX=no
10127	;;
10128      ghcx*)
10129	# Green Hills C++ Compiler
10130	# FIXME: insert proper C++ library support
10131	ld_shlibs_CXX=no
10132	;;
10133      *)
10134	# FIXME: insert proper C++ library support
10135	ld_shlibs_CXX=no
10136	;;
10137    esac
10138    ;;
10139  freebsd[12]*)
10140    # C++ shared libraries reported to be fairly broken before switch to ELF
10141    ld_shlibs_CXX=no
10142    ;;
10143  freebsd-elf*)
10144    archive_cmds_need_lc_CXX=no
10145    ;;
10146  freebsd* | dragonfly*)
10147    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10148    # conventions
10149    ld_shlibs_CXX=yes
10150    ;;
10151  gnu*)
10152    ;;
10153  hpux9*)
10154    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10155    hardcode_libdir_separator_CXX=:
10156    export_dynamic_flag_spec_CXX='${wl}-E'
10157    hardcode_direct_CXX=yes
10158    hardcode_minus_L_CXX=yes # Not in the search PATH,
10159				# but as the default
10160				# location of the library.
10161
10162    case $cc_basename in
10163    CC*)
10164      # FIXME: insert proper C++ library support
10165      ld_shlibs_CXX=no
10166      ;;
10167    aCC*)
10168      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'
10169      # Commands to make compiler produce verbose output that lists
10170      # what "hidden" libraries, object files and flags are used when
10171      # linking a shared library.
10172      #
10173      # There doesn't appear to be a way to prevent this compiler from
10174      # explicitly linking system object files so we need to strip them
10175      # from the output so that they don't get included in the library
10176      # dependencies.
10177      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'
10178      ;;
10179    *)
10180      if test "$GXX" = yes; then
10181        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'
10182      else
10183        # FIXME: insert proper C++ library support
10184        ld_shlibs_CXX=no
10185      fi
10186      ;;
10187    esac
10188    ;;
10189  hpux10*|hpux11*)
10190    if test $with_gnu_ld = no; then
10191      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10192      hardcode_libdir_separator_CXX=:
10193
10194      case $host_cpu in
10195      hppa*64*|ia64*)
10196	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10197        ;;
10198      *)
10199	export_dynamic_flag_spec_CXX='${wl}-E'
10200        ;;
10201      esac
10202    fi
10203    case $host_cpu in
10204    hppa*64*|ia64*)
10205      hardcode_direct_CXX=no
10206      hardcode_shlibpath_var_CXX=no
10207      ;;
10208    *)
10209      hardcode_direct_CXX=yes
10210      hardcode_minus_L_CXX=yes # Not in the search PATH,
10211					      # but as the default
10212					      # location of the library.
10213      ;;
10214    esac
10215
10216    case $cc_basename in
10217      CC*)
10218	# FIXME: insert proper C++ library support
10219	ld_shlibs_CXX=no
10220	;;
10221      aCC*)
10222	case $host_cpu in
10223	hppa*64*)
10224	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10225	  ;;
10226	ia64*)
10227	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10228	  ;;
10229	*)
10230	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10231	  ;;
10232	esac
10233	# Commands to make compiler produce verbose output that lists
10234	# what "hidden" libraries, object files and flags are used when
10235	# linking a shared library.
10236	#
10237	# There doesn't appear to be a way to prevent this compiler from
10238	# explicitly linking system object files so we need to strip them
10239	# from the output so that they don't get included in the library
10240	# dependencies.
10241	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'
10242	;;
10243      *)
10244	if test "$GXX" = yes; then
10245	  if test $with_gnu_ld = no; then
10246	    case $host_cpu in
10247	    hppa*64*)
10248	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10249	      ;;
10250	    ia64*)
10251	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10252	      ;;
10253	    *)
10254	      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'
10255	      ;;
10256	    esac
10257	  fi
10258	else
10259	  # FIXME: insert proper C++ library support
10260	  ld_shlibs_CXX=no
10261	fi
10262	;;
10263    esac
10264    ;;
10265  interix3*)
10266    hardcode_direct_CXX=no
10267    hardcode_shlibpath_var_CXX=no
10268    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10269    export_dynamic_flag_spec_CXX='${wl}-E'
10270    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10271    # Instead, shared libraries are loaded at an image base (0x10000000 by
10272    # default) and relocated if they conflict, which is a slow very memory
10273    # consuming and fragmenting process.  To avoid this, we pick a random,
10274    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10275    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10276    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'
10277    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'
10278    ;;
10279  irix5* | irix6*)
10280    case $cc_basename in
10281      CC*)
10282	# SGI C++
10283	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'
10284
10285	# Archives containing C++ object files must be created using
10286	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10287	# necessary to make sure instantiated templates are included
10288	# in the archive.
10289	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10290	;;
10291      *)
10292	if test "$GXX" = yes; then
10293	  if test "$with_gnu_ld" = no; then
10294	    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'
10295	  else
10296	    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'
10297	  fi
10298	fi
10299	link_all_deplibs_CXX=yes
10300	;;
10301    esac
10302    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10303    hardcode_libdir_separator_CXX=:
10304    ;;
10305  linux* | k*bsd*-gnu)
10306    case $cc_basename in
10307      KCC*)
10308	# Kuck and Associates, Inc. (KAI) C++ Compiler
10309
10310	# KCC will only create a shared library if the output file
10311	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10312	# to its proper name (with version) after linking.
10313	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'
10314	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'
10315	# Commands to make compiler produce verbose output that lists
10316	# what "hidden" libraries, object files and flags are used when
10317	# linking a shared library.
10318	#
10319	# There doesn't appear to be a way to prevent this compiler from
10320	# explicitly linking system object files so we need to strip them
10321	# from the output so that they don't get included in the library
10322	# dependencies.
10323	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'
10324
10325	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10326	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10327
10328	# Archives containing C++ object files must be created using
10329	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10330	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10331	;;
10332      icpc*)
10333	# Intel C++
10334	with_gnu_ld=yes
10335	# version 8.0 and above of icpc choke on multiply defined symbols
10336	# if we add $predep_objects and $postdep_objects, however 7.1 and
10337	# earlier do not add the objects themselves.
10338	case `$CC -V 2>&1` in
10339	*"Version 7."*)
10340  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10341  	  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'
10342	  ;;
10343	*)  # Version 8.0 or newer
10344	  tmp_idyn=
10345	  case $host_cpu in
10346	    ia64*) tmp_idyn=' -i_dynamic';;
10347	  esac
10348  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10349	  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'
10350	  ;;
10351	esac
10352	archive_cmds_need_lc_CXX=no
10353	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10354	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10355	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10356	;;
10357      pgCC*)
10358        # Portland Group C++ compiler
10359	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10360  	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'
10361
10362	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10363	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10364	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'
10365        ;;
10366      cxx*)
10367	# Compaq C++
10368	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10369	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'
10370
10371	runpath_var=LD_RUN_PATH
10372	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10373	hardcode_libdir_separator_CXX=:
10374
10375	# Commands to make compiler produce verbose output that lists
10376	# what "hidden" libraries, object files and flags are used when
10377	# linking a shared library.
10378	#
10379	# There doesn't appear to be a way to prevent this compiler from
10380	# explicitly linking system object files so we need to strip them
10381	# from the output so that they don't get included in the library
10382	# dependencies.
10383	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'
10384	;;
10385    esac
10386    ;;
10387  lynxos*)
10388    # FIXME: insert proper C++ library support
10389    ld_shlibs_CXX=no
10390    ;;
10391  m88k*)
10392    # FIXME: insert proper C++ library support
10393    ld_shlibs_CXX=no
10394    ;;
10395  mvs*)
10396    case $cc_basename in
10397      cxx*)
10398	# FIXME: insert proper C++ library support
10399	ld_shlibs_CXX=no
10400	;;
10401      *)
10402	# FIXME: insert proper C++ library support
10403	ld_shlibs_CXX=no
10404	;;
10405    esac
10406    ;;
10407  netbsd* | netbsdelf*-gnu)
10408    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10409      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10410      wlarc=
10411      hardcode_libdir_flag_spec_CXX='-R$libdir'
10412      hardcode_direct_CXX=yes
10413      hardcode_shlibpath_var_CXX=no
10414    fi
10415    # Workaround some broken pre-1.5 toolchains
10416    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10417    ;;
10418  openbsd2*)
10419    # C++ shared libraries are fairly broken
10420    ld_shlibs_CXX=no
10421    ;;
10422  openbsd*)
10423    hardcode_direct_CXX=yes
10424    hardcode_shlibpath_var_CXX=no
10425    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10426    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10427    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10428      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10429      export_dynamic_flag_spec_CXX='${wl}-E'
10430      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10431    fi
10432    output_verbose_link_cmd='echo'
10433    ;;
10434  osf3*)
10435    case $cc_basename in
10436      KCC*)
10437	# Kuck and Associates, Inc. (KAI) C++ Compiler
10438
10439	# KCC will only create a shared library if the output file
10440	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10441	# to its proper name (with version) after linking.
10442	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'
10443
10444	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10445	hardcode_libdir_separator_CXX=:
10446
10447	# Archives containing C++ object files must be created using
10448	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10449	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10450
10451	;;
10452      RCC*)
10453	# Rational C++ 2.4.1
10454	# FIXME: insert proper C++ library support
10455	ld_shlibs_CXX=no
10456	;;
10457      cxx*)
10458	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10459	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'
10460
10461	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10462	hardcode_libdir_separator_CXX=:
10463
10464	# Commands to make compiler produce verbose output that lists
10465	# what "hidden" libraries, object files and flags are used when
10466	# linking a shared library.
10467	#
10468	# There doesn't appear to be a way to prevent this compiler from
10469	# explicitly linking system object files so we need to strip them
10470	# from the output so that they don't get included in the library
10471	# dependencies.
10472	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'
10473	;;
10474      *)
10475	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10476	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10477	  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'
10478
10479	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10480	  hardcode_libdir_separator_CXX=:
10481
10482	  # Commands to make compiler produce verbose output that lists
10483	  # what "hidden" libraries, object files and flags are used when
10484	  # linking a shared library.
10485	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10486
10487	else
10488	  # FIXME: insert proper C++ library support
10489	  ld_shlibs_CXX=no
10490	fi
10491	;;
10492    esac
10493    ;;
10494  osf4* | osf5*)
10495    case $cc_basename in
10496      KCC*)
10497	# Kuck and Associates, Inc. (KAI) C++ Compiler
10498
10499	# KCC will only create a shared library if the output file
10500	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10501	# to its proper name (with version) after linking.
10502	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'
10503
10504	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10505	hardcode_libdir_separator_CXX=:
10506
10507	# Archives containing C++ object files must be created using
10508	# the KAI C++ compiler.
10509	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10510	;;
10511      RCC*)
10512	# Rational C++ 2.4.1
10513	# FIXME: insert proper C++ library support
10514	ld_shlibs_CXX=no
10515	;;
10516      cxx*)
10517	allow_undefined_flag_CXX=' -expect_unresolved \*'
10518	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'
10519	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10520	  echo "-hidden">> $lib.exp~
10521	  $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~
10522	  $rm $lib.exp'
10523
10524	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10525	hardcode_libdir_separator_CXX=:
10526
10527	# Commands to make compiler produce verbose output that lists
10528	# what "hidden" libraries, object files and flags are used when
10529	# linking a shared library.
10530	#
10531	# There doesn't appear to be a way to prevent this compiler from
10532	# explicitly linking system object files so we need to strip them
10533	# from the output so that they don't get included in the library
10534	# dependencies.
10535	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'
10536	;;
10537      *)
10538	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10539	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10540	 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'
10541
10542	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10543	  hardcode_libdir_separator_CXX=:
10544
10545	  # Commands to make compiler produce verbose output that lists
10546	  # what "hidden" libraries, object files and flags are used when
10547	  # linking a shared library.
10548	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10549
10550	else
10551	  # FIXME: insert proper C++ library support
10552	  ld_shlibs_CXX=no
10553	fi
10554	;;
10555    esac
10556    ;;
10557  psos*)
10558    # FIXME: insert proper C++ library support
10559    ld_shlibs_CXX=no
10560    ;;
10561  sunos4*)
10562    case $cc_basename in
10563      CC*)
10564	# Sun C++ 4.x
10565	# FIXME: insert proper C++ library support
10566	ld_shlibs_CXX=no
10567	;;
10568      lcc*)
10569	# Lucid
10570	# FIXME: insert proper C++ library support
10571	ld_shlibs_CXX=no
10572	;;
10573      *)
10574	# FIXME: insert proper C++ library support
10575	ld_shlibs_CXX=no
10576	;;
10577    esac
10578    ;;
10579  solaris*)
10580    case $cc_basename in
10581      CC*)
10582	# Sun C++ 4.2, 5.x and Centerline C++
10583        archive_cmds_need_lc_CXX=yes
10584	no_undefined_flag_CXX=' -zdefs'
10585	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10586	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10587	$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'
10588
10589	hardcode_libdir_flag_spec_CXX='-R$libdir'
10590	hardcode_shlibpath_var_CXX=no
10591	case $host_os in
10592	  solaris2.[0-5] | solaris2.[0-5].*) ;;
10593	  *)
10594	    # The C++ compiler is used as linker so we must use $wl
10595	    # flag to pass the commands to the underlying system
10596	    # linker. We must also pass each convience library through
10597	    # to the system linker between allextract/defaultextract.
10598	    # The C++ compiler will combine linker options so we
10599	    # cannot just pass the convience library names through
10600	    # without $wl.
10601	    # Supported since Solaris 2.6 (maybe 2.5.1?)
10602	    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'
10603	    ;;
10604	esac
10605	link_all_deplibs_CXX=yes
10606
10607	output_verbose_link_cmd='echo'
10608
10609	# Archives containing C++ object files must be created using
10610	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
10611	# necessary to make sure instantiated templates are included
10612	# in the archive.
10613	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10614	;;
10615      gcx*)
10616	# Green Hills C++ Compiler
10617	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10618
10619	# The C++ compiler must be used to create the archive.
10620	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10621	;;
10622      *)
10623	# GNU C++ compiler with Solaris linker
10624	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10625	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10626	  if $CC --version | grep -v '^2\.7' > /dev/null; then
10627	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10628	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10629		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10630
10631	    # Commands to make compiler produce verbose output that lists
10632	    # what "hidden" libraries, object files and flags are used when
10633	    # linking a shared library.
10634	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10635	  else
10636	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
10637	    # platform.
10638	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10639	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10640		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10641
10642	    # Commands to make compiler produce verbose output that lists
10643	    # what "hidden" libraries, object files and flags are used when
10644	    # linking a shared library.
10645	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10646	  fi
10647
10648	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10649	fi
10650	;;
10651    esac
10652    ;;
10653  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10654    no_undefined_flag_CXX='${wl}-z,text'
10655    archive_cmds_need_lc_CXX=no
10656    hardcode_shlibpath_var_CXX=no
10657    runpath_var='LD_RUN_PATH'
10658
10659    case $cc_basename in
10660      CC*)
10661	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10662	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10663	;;
10664      *)
10665	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10666	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10667	;;
10668    esac
10669    ;;
10670  sysv5* | sco3.2v5* | sco5v6*)
10671    # Note: We can NOT use -z defs as we might desire, because we do not
10672    # link with -lc, and that would cause any symbols used from libc to
10673    # always be unresolved, which means just about no library would
10674    # ever link correctly.  If we're not using GNU ld we use -z text
10675    # though, which does catch some bad symbols but isn't as heavy-handed
10676    # as -z defs.
10677    # For security reasons, it is highly recommended that you always
10678    # use absolute paths for naming shared libraries, and exclude the
10679    # DT_RUNPATH tag from executables and libraries.  But doing so
10680    # requires that you compile everything twice, which is a pain.
10681    # So that behaviour is only enabled if SCOABSPATH is set to a
10682    # non-empty value in the environment.  Most likely only useful for
10683    # creating official distributions of packages.
10684    # This is a hack until libtool officially supports absolute path
10685    # names for shared libraries.
10686    no_undefined_flag_CXX='${wl}-z,text'
10687    allow_undefined_flag_CXX='${wl}-z,nodefs'
10688    archive_cmds_need_lc_CXX=no
10689    hardcode_shlibpath_var_CXX=no
10690    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10691    hardcode_libdir_separator_CXX=':'
10692    link_all_deplibs_CXX=yes
10693    export_dynamic_flag_spec_CXX='${wl}-Bexport'
10694    runpath_var='LD_RUN_PATH'
10695
10696    case $cc_basename in
10697      CC*)
10698	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10699	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10700	;;
10701      *)
10702	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10703	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10704	;;
10705    esac
10706    ;;
10707  tandem*)
10708    case $cc_basename in
10709      NCC*)
10710	# NonStop-UX NCC 3.20
10711	# FIXME: insert proper C++ library support
10712	ld_shlibs_CXX=no
10713	;;
10714      *)
10715	# FIXME: insert proper C++ library support
10716	ld_shlibs_CXX=no
10717	;;
10718    esac
10719    ;;
10720  vxworks*)
10721    # FIXME: insert proper C++ library support
10722    ld_shlibs_CXX=no
10723    ;;
10724  *)
10725    # FIXME: insert proper C++ library support
10726    ld_shlibs_CXX=no
10727    ;;
10728esac
10729echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10730echo "${ECHO_T}$ld_shlibs_CXX" >&6
10731test "$ld_shlibs_CXX" = no && can_build_shared=no
10732
10733GCC_CXX="$GXX"
10734LD_CXX="$LD"
10735
10736
10737cat > conftest.$ac_ext <<EOF
10738class Foo
10739{
10740public:
10741  Foo (void) { a = 0; }
10742private:
10743  int a;
10744};
10745EOF
10746
10747if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10748  (eval $ac_compile) 2>&5
10749  ac_status=$?
10750  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10751  (exit $ac_status); }; then
10752  # Parse the compiler output and extract the necessary
10753  # objects, libraries and library flags.
10754
10755  # Sentinel used to keep track of whether or not we are before
10756  # the conftest object file.
10757  pre_test_object_deps_done=no
10758
10759  # The `*' in the case matches for architectures that use `case' in
10760  # $output_verbose_cmd can trigger glob expansion during the loop
10761  # eval without this substitution.
10762  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
10763
10764  for p in `eval $output_verbose_link_cmd`; do
10765    case $p in
10766
10767    -L* | -R* | -l*)
10768       # Some compilers place space between "-{L,R}" and the path.
10769       # Remove the space.
10770       if test $p = "-L" \
10771	  || test $p = "-R"; then
10772	 prev=$p
10773	 continue
10774       else
10775	 prev=
10776       fi
10777
10778       if test "$pre_test_object_deps_done" = no; then
10779	 case $p in
10780	 -L* | -R*)
10781	   # Internal compiler library paths should come after those
10782	   # provided the user.  The postdeps already come after the
10783	   # user supplied libs so there is no need to process them.
10784	   if test -z "$compiler_lib_search_path_CXX"; then
10785	     compiler_lib_search_path_CXX="${prev}${p}"
10786	   else
10787	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10788	   fi
10789	   ;;
10790	 # The "-l" case would never come before the object being
10791	 # linked, so don't bother handling this case.
10792	 esac
10793       else
10794	 if test -z "$postdeps_CXX"; then
10795	   postdeps_CXX="${prev}${p}"
10796	 else
10797	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10798	 fi
10799       fi
10800       ;;
10801
10802    *.$objext)
10803       # This assumes that the test object file only shows up
10804       # once in the compiler output.
10805       if test "$p" = "conftest.$objext"; then
10806	 pre_test_object_deps_done=yes
10807	 continue
10808       fi
10809
10810       if test "$pre_test_object_deps_done" = no; then
10811	 if test -z "$predep_objects_CXX"; then
10812	   predep_objects_CXX="$p"
10813	 else
10814	   predep_objects_CXX="$predep_objects_CXX $p"
10815	 fi
10816       else
10817	 if test -z "$postdep_objects_CXX"; then
10818	   postdep_objects_CXX="$p"
10819	 else
10820	   postdep_objects_CXX="$postdep_objects_CXX $p"
10821	 fi
10822       fi
10823       ;;
10824
10825    *) ;; # Ignore the rest.
10826
10827    esac
10828  done
10829
10830  # Clean up.
10831  rm -f a.out a.exe
10832else
10833  echo "libtool.m4: error: problem compiling CXX test program"
10834fi
10835
10836$rm -f confest.$objext
10837
10838# PORTME: override above test on systems where it is broken
10839case $host_os in
10840interix3*)
10841  # Interix 3.5 installs completely hosed .la files for C++, so rather than
10842  # hack all around it, let's just trust "g++" to DTRT.
10843  predep_objects_CXX=
10844  postdep_objects_CXX=
10845  postdeps_CXX=
10846  ;;
10847
10848solaris*)
10849  case $cc_basename in
10850  CC*)
10851    # Adding this requires a known-good setup of shared libraries for
10852    # Sun compiler versions before 5.6, else PIC objects from an old
10853    # archive will be linked into the output, leading to subtle bugs.
10854    postdeps_CXX='-lCstd -lCrun'
10855    ;;
10856  esac
10857  ;;
10858esac
10859
10860
10861case " $postdeps_CXX " in
10862*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10863esac
10864
10865lt_prog_compiler_wl_CXX=
10866lt_prog_compiler_pic_CXX=
10867lt_prog_compiler_static_CXX=
10868
10869echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10870echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10871
10872  # C++ specific cases for pic, static, wl, etc.
10873  if test "$GXX" = yes; then
10874    lt_prog_compiler_wl_CXX='-Wl,'
10875    lt_prog_compiler_static_CXX='-static'
10876
10877    case $host_os in
10878    aix*)
10879      # All AIX code is PIC.
10880      if test "$host_cpu" = ia64; then
10881	# AIX 5 now supports IA64 processor
10882	lt_prog_compiler_static_CXX='-Bstatic'
10883      fi
10884      ;;
10885    amigaos*)
10886      # FIXME: we need at least 68020 code to build shared libraries, but
10887      # adding the `-m68020' flag to GCC prevents building anything better,
10888      # like `-m68040'.
10889      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10890      ;;
10891    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10892      # PIC is the default for these OSes.
10893      ;;
10894    mingw* | os2* | pw32*)
10895      # This hack is so that the source file can tell whether it is being
10896      # built for inclusion in a dll (and should export symbols for example).
10897      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10898      ;;
10899    darwin* | rhapsody*)
10900      # PIC is the default on this platform
10901      # Common symbols not allowed in MH_DYLIB files
10902      lt_prog_compiler_pic_CXX='-fno-common'
10903      ;;
10904    *djgpp*)
10905      # DJGPP does not support shared libraries at all
10906      lt_prog_compiler_pic_CXX=
10907      ;;
10908    interix3*)
10909      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10910      # Instead, we relocate shared libraries at runtime.
10911      ;;
10912    sysv4*MP*)
10913      if test -d /usr/nec; then
10914	lt_prog_compiler_pic_CXX=-Kconform_pic
10915      fi
10916      ;;
10917    hpux*)
10918      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10919      # not for PA HP-UX.
10920      case $host_cpu in
10921      hppa*64*|ia64*)
10922	;;
10923      *)
10924	lt_prog_compiler_pic_CXX='-fPIC'
10925	;;
10926      esac
10927      ;;
10928    *)
10929      lt_prog_compiler_pic_CXX='-fPIC'
10930      ;;
10931    esac
10932  else
10933    case $host_os in
10934      aix4* | aix5*)
10935	# All AIX code is PIC.
10936	if test "$host_cpu" = ia64; then
10937	  # AIX 5 now supports IA64 processor
10938	  lt_prog_compiler_static_CXX='-Bstatic'
10939	else
10940	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10941	fi
10942	;;
10943      chorus*)
10944	case $cc_basename in
10945	cxch68*)
10946	  # Green Hills C++ Compiler
10947	  # _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"
10948	  ;;
10949	esac
10950	;;
10951       darwin*)
10952         # PIC is the default on this platform
10953         # Common symbols not allowed in MH_DYLIB files
10954         case $cc_basename in
10955           xlc*)
10956           lt_prog_compiler_pic_CXX='-qnocommon'
10957           lt_prog_compiler_wl_CXX='-Wl,'
10958           ;;
10959         esac
10960       ;;
10961      dgux*)
10962	case $cc_basename in
10963	  ec++*)
10964	    lt_prog_compiler_pic_CXX='-KPIC'
10965	    ;;
10966	  ghcx*)
10967	    # Green Hills C++ Compiler
10968	    lt_prog_compiler_pic_CXX='-pic'
10969	    ;;
10970	  *)
10971	    ;;
10972	esac
10973	;;
10974      freebsd* | dragonfly*)
10975	# FreeBSD uses GNU C++
10976	;;
10977      hpux9* | hpux10* | hpux11*)
10978	case $cc_basename in
10979	  CC*)
10980	    lt_prog_compiler_wl_CXX='-Wl,'
10981	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
10982	    if test "$host_cpu" != ia64; then
10983	      lt_prog_compiler_pic_CXX='+Z'
10984	    fi
10985	    ;;
10986	  aCC*)
10987	    lt_prog_compiler_wl_CXX='-Wl,'
10988	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
10989	    case $host_cpu in
10990	    hppa*64*|ia64*)
10991	      # +Z the default
10992	      ;;
10993	    *)
10994	      lt_prog_compiler_pic_CXX='+Z'
10995	      ;;
10996	    esac
10997	    ;;
10998	  *)
10999	    ;;
11000	esac
11001	;;
11002      interix*)
11003	# This is c89, which is MS Visual C++ (no shared libs)
11004	# Anyone wants to do a port?
11005	;;
11006      irix5* | irix6* | nonstopux*)
11007	case $cc_basename in
11008	  CC*)
11009	    lt_prog_compiler_wl_CXX='-Wl,'
11010	    lt_prog_compiler_static_CXX='-non_shared'
11011	    # CC pic flag -KPIC is the default.
11012	    ;;
11013	  *)
11014	    ;;
11015	esac
11016	;;
11017      linux* | k*bsd*-gnu)
11018	case $cc_basename in
11019	  KCC*)
11020	    # KAI C++ Compiler
11021	    lt_prog_compiler_wl_CXX='--backend -Wl,'
11022	    lt_prog_compiler_pic_CXX='-fPIC'
11023	    ;;
11024	  icpc* | ecpc*)
11025	    # Intel C++
11026	    lt_prog_compiler_wl_CXX='-Wl,'
11027	    lt_prog_compiler_pic_CXX='-KPIC'
11028	    lt_prog_compiler_static_CXX='-static'
11029	    ;;
11030	  pgCC*)
11031	    # Portland Group C++ compiler.
11032	    lt_prog_compiler_wl_CXX='-Wl,'
11033	    lt_prog_compiler_pic_CXX='-fpic'
11034	    lt_prog_compiler_static_CXX='-Bstatic'
11035	    ;;
11036	  cxx*)
11037	    # Compaq C++
11038	    # Make sure the PIC flag is empty.  It appears that all Alpha
11039	    # Linux and Compaq Tru64 Unix objects are PIC.
11040	    lt_prog_compiler_pic_CXX=
11041	    lt_prog_compiler_static_CXX='-non_shared'
11042	    ;;
11043	  *)
11044	    ;;
11045	esac
11046	;;
11047      lynxos*)
11048	;;
11049      m88k*)
11050	;;
11051      mvs*)
11052	case $cc_basename in
11053	  cxx*)
11054	    lt_prog_compiler_pic_CXX='-W c,exportall'
11055	    ;;
11056	  *)
11057	    ;;
11058	esac
11059	;;
11060      netbsd* | netbsdelf*-gnu)
11061	;;
11062      osf3* | osf4* | osf5*)
11063	case $cc_basename in
11064	  KCC*)
11065	    lt_prog_compiler_wl_CXX='--backend -Wl,'
11066	    ;;
11067	  RCC*)
11068	    # Rational C++ 2.4.1
11069	    lt_prog_compiler_pic_CXX='-pic'
11070	    ;;
11071	  cxx*)
11072	    # Digital/Compaq C++
11073	    lt_prog_compiler_wl_CXX='-Wl,'
11074	    # Make sure the PIC flag is empty.  It appears that all Alpha
11075	    # Linux and Compaq Tru64 Unix objects are PIC.
11076	    lt_prog_compiler_pic_CXX=
11077	    lt_prog_compiler_static_CXX='-non_shared'
11078	    ;;
11079	  *)
11080	    ;;
11081	esac
11082	;;
11083      psos*)
11084	;;
11085      solaris*)
11086	case $cc_basename in
11087	  CC*)
11088	    # Sun C++ 4.2, 5.x and Centerline C++
11089	    lt_prog_compiler_pic_CXX='-KPIC'
11090	    lt_prog_compiler_static_CXX='-Bstatic'
11091	    lt_prog_compiler_wl_CXX='-Qoption ld '
11092	    ;;
11093	  gcx*)
11094	    # Green Hills C++ Compiler
11095	    lt_prog_compiler_pic_CXX='-PIC'
11096	    ;;
11097	  *)
11098	    ;;
11099	esac
11100	;;
11101      sunos4*)
11102	case $cc_basename in
11103	  CC*)
11104	    # Sun C++ 4.x
11105	    lt_prog_compiler_pic_CXX='-pic'
11106	    lt_prog_compiler_static_CXX='-Bstatic'
11107	    ;;
11108	  lcc*)
11109	    # Lucid
11110	    lt_prog_compiler_pic_CXX='-pic'
11111	    ;;
11112	  *)
11113	    ;;
11114	esac
11115	;;
11116      tandem*)
11117	case $cc_basename in
11118	  NCC*)
11119	    # NonStop-UX NCC 3.20
11120	    lt_prog_compiler_pic_CXX='-KPIC'
11121	    ;;
11122	  *)
11123	    ;;
11124	esac
11125	;;
11126      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11127	case $cc_basename in
11128	  CC*)
11129	    lt_prog_compiler_wl_CXX='-Wl,'
11130	    lt_prog_compiler_pic_CXX='-KPIC'
11131	    lt_prog_compiler_static_CXX='-Bstatic'
11132	    ;;
11133	esac
11134	;;
11135      vxworks*)
11136	;;
11137      *)
11138	lt_prog_compiler_can_build_shared_CXX=no
11139	;;
11140    esac
11141  fi
11142
11143echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11144echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11145
11146#
11147# Check to make sure the PIC flag actually works.
11148#
11149if test -n "$lt_prog_compiler_pic_CXX"; then
11150
11151echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11152echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11153if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11154  echo $ECHO_N "(cached) $ECHO_C" >&6
11155else
11156  lt_prog_compiler_pic_works_CXX=no
11157  ac_outfile=conftest.$ac_objext
11158   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11159   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11160   # Insert the option either (1) after the last *FLAGS variable, or
11161   # (2) before a word containing "conftest.", or (3) at the end.
11162   # Note that $ac_compile itself does not contain backslashes and begins
11163   # with a dollar sign (not a hyphen), so the echo should work correctly.
11164   # The option is referenced via a variable to avoid confusing sed.
11165   lt_compile=`echo "$ac_compile" | $SED \
11166   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11167   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11168   -e 's:$: $lt_compiler_flag:'`
11169   (eval echo "\"\$as_me:11169: $lt_compile\"" >&5)
11170   (eval "$lt_compile" 2>conftest.err)
11171   ac_status=$?
11172   cat conftest.err >&5
11173   echo "$as_me:11173: \$? = $ac_status" >&5
11174   if (exit $ac_status) && test -s "$ac_outfile"; then
11175     # The compiler can only warn and ignore the option if not recognized
11176     # So say no if there are warnings other than the usual output.
11177     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11178     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11179     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11180       lt_prog_compiler_pic_works_CXX=yes
11181     fi
11182   fi
11183   $rm conftest*
11184
11185fi
11186echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11187echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11188
11189if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11190    case $lt_prog_compiler_pic_CXX in
11191     "" | " "*) ;;
11192     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11193     esac
11194else
11195    lt_prog_compiler_pic_CXX=
11196     lt_prog_compiler_can_build_shared_CXX=no
11197fi
11198
11199fi
11200case $host_os in
11201  # For platforms which do not support PIC, -DPIC is meaningless:
11202  *djgpp*)
11203    lt_prog_compiler_pic_CXX=
11204    ;;
11205  *)
11206    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11207    ;;
11208esac
11209
11210#
11211# Check to make sure the static flag actually works.
11212#
11213wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11214echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11215echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11216if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11217  echo $ECHO_N "(cached) $ECHO_C" >&6
11218else
11219  lt_prog_compiler_static_works_CXX=no
11220   save_LDFLAGS="$LDFLAGS"
11221   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11222   printf "$lt_simple_link_test_code" > conftest.$ac_ext
11223   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11224     # The linker can only warn and ignore the option if not recognized
11225     # So say no if there are warnings
11226     if test -s conftest.err; then
11227       # Append any errors to the config.log.
11228       cat conftest.err 1>&5
11229       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11230       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11231       if diff conftest.exp conftest.er2 >/dev/null; then
11232         lt_prog_compiler_static_works_CXX=yes
11233       fi
11234     else
11235       lt_prog_compiler_static_works_CXX=yes
11236     fi
11237   fi
11238   $rm conftest*
11239   LDFLAGS="$save_LDFLAGS"
11240
11241fi
11242echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11243echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
11244
11245if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11246    :
11247else
11248    lt_prog_compiler_static_CXX=
11249fi
11250
11251
11252echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11253echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11254if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11255  echo $ECHO_N "(cached) $ECHO_C" >&6
11256else
11257  lt_cv_prog_compiler_c_o_CXX=no
11258   $rm -r conftest 2>/dev/null
11259   mkdir conftest
11260   cd conftest
11261   mkdir out
11262   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11263
11264   lt_compiler_flag="-o out/conftest2.$ac_objext"
11265   # Insert the option either (1) after the last *FLAGS variable, or
11266   # (2) before a word containing "conftest.", or (3) at the end.
11267   # Note that $ac_compile itself does not contain backslashes and begins
11268   # with a dollar sign (not a hyphen), so the echo should work correctly.
11269   lt_compile=`echo "$ac_compile" | $SED \
11270   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11271   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11272   -e 's:$: $lt_compiler_flag:'`
11273   (eval echo "\"\$as_me:11273: $lt_compile\"" >&5)
11274   (eval "$lt_compile" 2>out/conftest.err)
11275   ac_status=$?
11276   cat out/conftest.err >&5
11277   echo "$as_me:11277: \$? = $ac_status" >&5
11278   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11279   then
11280     # The compiler can only warn and ignore the option if not recognized
11281     # So say no if there are warnings
11282     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11283     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11284     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11285       lt_cv_prog_compiler_c_o_CXX=yes
11286     fi
11287   fi
11288   chmod u+w . 2>&5
11289   $rm conftest*
11290   # SGI C++ compiler will create directory out/ii_files/ for
11291   # template instantiation
11292   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11293   $rm out/* && rmdir out
11294   cd ..
11295   rmdir conftest
11296   $rm conftest*
11297
11298fi
11299echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11300echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11301
11302
11303hard_links="nottested"
11304if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11305  # do not overwrite the value of need_locks provided by the user
11306  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11307echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11308  hard_links=yes
11309  $rm conftest*
11310  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11311  touch conftest.a
11312  ln conftest.a conftest.b 2>&5 || hard_links=no
11313  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11314  echo "$as_me:$LINENO: result: $hard_links" >&5
11315echo "${ECHO_T}$hard_links" >&6
11316  if test "$hard_links" = no; then
11317    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11318echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11319    need_locks=warn
11320  fi
11321else
11322  need_locks=no
11323fi
11324
11325echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11326echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11327
11328  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11329  case $host_os in
11330  aix4* | aix5*)
11331    # If we're using GNU nm, then we don't want the "-C" option.
11332    # -C means demangle to AIX nm, but means don't demangle with GNU nm
11333    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11334      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'
11335    else
11336      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'
11337    fi
11338    ;;
11339  pw32*)
11340    export_symbols_cmds_CXX="$ltdll_cmds"
11341  ;;
11342  cygwin* | mingw*)
11343    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'
11344  ;;
11345  linux* | k*bsd*-gnu)
11346    link_all_deplibs_CXX=no
11347  ;;
11348  *)
11349    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11350  ;;
11351  esac
11352
11353echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11354echo "${ECHO_T}$ld_shlibs_CXX" >&6
11355test "$ld_shlibs_CXX" = no && can_build_shared=no
11356
11357#
11358# Do we need to explicitly link libc?
11359#
11360case "x$archive_cmds_need_lc_CXX" in
11361x|xyes)
11362  # Assume -lc should be added
11363  archive_cmds_need_lc_CXX=yes
11364
11365  if test "$enable_shared" = yes && test "$GCC" = yes; then
11366    case $archive_cmds_CXX in
11367    *'~'*)
11368      # FIXME: we may have to deal with multi-command sequences.
11369      ;;
11370    '$CC '*)
11371      # Test whether the compiler implicitly links with -lc since on some
11372      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11373      # to ld, don't add -lc before -lgcc.
11374      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11375echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11376      $rm conftest*
11377      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11378
11379      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11380  (eval $ac_compile) 2>&5
11381  ac_status=$?
11382  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11383  (exit $ac_status); } 2>conftest.err; then
11384        soname=conftest
11385        lib=conftest
11386        libobjs=conftest.$ac_objext
11387        deplibs=
11388        wl=$lt_prog_compiler_wl_CXX
11389	pic_flag=$lt_prog_compiler_pic_CXX
11390        compiler_flags=-v
11391        linker_flags=-v
11392        verstring=
11393        output_objdir=.
11394        libname=conftest
11395        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11396        allow_undefined_flag_CXX=
11397        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11398  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11399  ac_status=$?
11400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11401  (exit $ac_status); }
11402        then
11403	  archive_cmds_need_lc_CXX=no
11404        else
11405	  archive_cmds_need_lc_CXX=yes
11406        fi
11407        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11408      else
11409        cat conftest.err 1>&5
11410      fi
11411      $rm conftest*
11412      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11413echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11414      ;;
11415    esac
11416  fi
11417  ;;
11418esac
11419
11420echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11421echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11422library_names_spec=
11423libname_spec='lib$name'
11424soname_spec=
11425shrext_cmds=".so"
11426postinstall_cmds=
11427postuninstall_cmds=
11428finish_cmds=
11429finish_eval=
11430shlibpath_var=
11431shlibpath_overrides_runpath=unknown
11432version_type=none
11433dynamic_linker="$host_os ld.so"
11434sys_lib_dlsearch_path_spec="/lib /usr/lib"
11435if test "$GCC" = yes; then
11436  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11437  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11438    # if the path contains ";" then we assume it to be the separator
11439    # otherwise default to the standard path separator (i.e. ":") - it is
11440    # assumed that no part of a normal pathname contains ";" but that should
11441    # okay in the real world where ";" in dirpaths is itself problematic.
11442    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11443  else
11444    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11445  fi
11446else
11447  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11448fi
11449need_lib_prefix=unknown
11450hardcode_into_libs=no
11451
11452# when you set need_version to no, make sure it does not cause -set_version
11453# flags to be left without arguments
11454need_version=unknown
11455
11456case $host_os in
11457aix3*)
11458  version_type=linux
11459  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11460  shlibpath_var=LIBPATH
11461
11462  # AIX 3 has no versioning support, so we append a major version to the name.
11463  soname_spec='${libname}${release}${shared_ext}$major'
11464  ;;
11465
11466aix4* | aix5*)
11467  version_type=linux
11468  need_lib_prefix=no
11469  need_version=no
11470  hardcode_into_libs=yes
11471  if test "$host_cpu" = ia64; then
11472    # AIX 5 supports IA64
11473    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11474    shlibpath_var=LD_LIBRARY_PATH
11475  else
11476    # With GCC up to 2.95.x, collect2 would create an import file
11477    # for dependence libraries.  The import file would start with
11478    # the line `#! .'.  This would cause the generated library to
11479    # depend on `.', always an invalid library.  This was fixed in
11480    # development snapshots of GCC prior to 3.0.
11481    case $host_os in
11482      aix4 | aix4.[01] | aix4.[01].*)
11483      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11484	   echo ' yes '
11485	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11486	:
11487      else
11488	can_build_shared=no
11489      fi
11490      ;;
11491    esac
11492    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11493    # soname into executable. Probably we can add versioning support to
11494    # collect2, so additional links can be useful in future.
11495    if test "$aix_use_runtimelinking" = yes; then
11496      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11497      # instead of lib<name>.a to let people know that these are not
11498      # typical AIX shared libraries.
11499      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11500    else
11501      # We preserve .a as extension for shared libraries through AIX4.2
11502      # and later when we are not doing run time linking.
11503      library_names_spec='${libname}${release}.a $libname.a'
11504      soname_spec='${libname}${release}${shared_ext}$major'
11505    fi
11506    shlibpath_var=LIBPATH
11507  fi
11508  ;;
11509
11510amigaos*)
11511  library_names_spec='$libname.ixlibrary $libname.a'
11512  # Create ${libname}_ixlibrary.a entries in /sys/libs.
11513  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'
11514  ;;
11515
11516beos*)
11517  library_names_spec='${libname}${shared_ext}'
11518  dynamic_linker="$host_os ld.so"
11519  shlibpath_var=LIBRARY_PATH
11520  ;;
11521
11522bsdi[45]*)
11523  version_type=linux
11524  need_version=no
11525  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11526  soname_spec='${libname}${release}${shared_ext}$major'
11527  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11528  shlibpath_var=LD_LIBRARY_PATH
11529  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11530  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11531  # the default ld.so.conf also contains /usr/contrib/lib and
11532  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11533  # libtool to hard-code these into programs
11534  ;;
11535
11536cygwin* | mingw* | pw32*)
11537  version_type=windows
11538  shrext_cmds=".dll"
11539  need_version=no
11540  need_lib_prefix=no
11541
11542  case $GCC,$host_os in
11543  yes,cygwin* | yes,mingw* | yes,pw32*)
11544    library_names_spec='$libname.dll.a'
11545    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11546    postinstall_cmds='base_file=`basename \${file}`~
11547      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11548      dldir=$destdir/`dirname \$dlpath`~
11549      test -d \$dldir || mkdir -p \$dldir~
11550      $install_prog $dir/$dlname \$dldir/$dlname~
11551      chmod a+x \$dldir/$dlname'
11552    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11553      dlpath=$dir/\$dldll~
11554       $rm \$dlpath'
11555    shlibpath_overrides_runpath=yes
11556
11557    case $host_os in
11558    cygwin*)
11559      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11560      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11561      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11562      ;;
11563    mingw*)
11564      # MinGW DLLs use traditional 'lib' prefix
11565      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11566      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11567      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11568        # It is most probably a Windows format PATH printed by
11569        # mingw gcc, but we are running on Cygwin. Gcc prints its search
11570        # path with ; separators, and with drive letters. We can handle the
11571        # drive letters (cygwin fileutils understands them), so leave them,
11572        # especially as we might pass files found there to a mingw objdump,
11573        # which wouldn't understand a cygwinified path. Ahh.
11574        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11575      else
11576        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11577      fi
11578      ;;
11579    pw32*)
11580      # pw32 DLLs use 'pw' prefix rather than 'lib'
11581      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11582      ;;
11583    esac
11584    ;;
11585
11586  *)
11587    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11588    ;;
11589  esac
11590  dynamic_linker='Win32 ld.exe'
11591  # FIXME: first we should search . and the directory the executable is in
11592  shlibpath_var=PATH
11593  ;;
11594
11595darwin* | rhapsody*)
11596  dynamic_linker="$host_os dyld"
11597  version_type=darwin
11598  need_lib_prefix=no
11599  need_version=no
11600  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11601  soname_spec='${libname}${release}${major}$shared_ext'
11602  shlibpath_overrides_runpath=yes
11603  shlibpath_var=DYLD_LIBRARY_PATH
11604  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11605  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11606  if test "$GCC" = yes; then
11607    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"`
11608  else
11609    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11610  fi
11611  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11612  ;;
11613
11614dgux*)
11615  version_type=linux
11616  need_lib_prefix=no
11617  need_version=no
11618  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11619  soname_spec='${libname}${release}${shared_ext}$major'
11620  shlibpath_var=LD_LIBRARY_PATH
11621  ;;
11622
11623freebsd1*)
11624  dynamic_linker=no
11625  ;;
11626
11627freebsd* | dragonfly*)
11628  # DragonFly does not have aout.  When/if they implement a new
11629  # versioning mechanism, adjust this.
11630  if test -x /usr/bin/objformat; then
11631    objformat=`/usr/bin/objformat`
11632  else
11633    case $host_os in
11634    freebsd[123]*) objformat=aout ;;
11635    *) objformat=elf ;;
11636    esac
11637  fi
11638  version_type=freebsd-$objformat
11639  case $version_type in
11640    freebsd-elf*)
11641      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11642      need_version=no
11643      need_lib_prefix=no
11644      ;;
11645    freebsd-*)
11646      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11647      need_version=yes
11648      ;;
11649  esac
11650  shlibpath_var=LD_LIBRARY_PATH
11651  case $host_os in
11652  freebsd2*)
11653    shlibpath_overrides_runpath=yes
11654    ;;
11655  freebsd3.[01]* | freebsdelf3.[01]*)
11656    shlibpath_overrides_runpath=yes
11657    hardcode_into_libs=yes
11658    ;;
11659  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11660  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11661    shlibpath_overrides_runpath=no
11662    hardcode_into_libs=yes
11663    ;;
11664  freebsd*) # from 4.6 on
11665    shlibpath_overrides_runpath=yes
11666    hardcode_into_libs=yes
11667    ;;
11668  esac
11669  ;;
11670
11671gnu*)
11672  version_type=linux
11673  need_lib_prefix=no
11674  need_version=no
11675  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11676  soname_spec='${libname}${release}${shared_ext}$major'
11677  shlibpath_var=LD_LIBRARY_PATH
11678  hardcode_into_libs=yes
11679  ;;
11680
11681hpux9* | hpux10* | hpux11*)
11682  # Give a soname corresponding to the major version so that dld.sl refuses to
11683  # link against other versions.
11684  version_type=sunos
11685  need_lib_prefix=no
11686  need_version=no
11687  case $host_cpu in
11688  ia64*)
11689    shrext_cmds='.so'
11690    hardcode_into_libs=yes
11691    dynamic_linker="$host_os dld.so"
11692    shlibpath_var=LD_LIBRARY_PATH
11693    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11694    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11695    soname_spec='${libname}${release}${shared_ext}$major'
11696    if test "X$HPUX_IA64_MODE" = X32; then
11697      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11698    else
11699      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11700    fi
11701    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11702    ;;
11703   hppa*64*)
11704     shrext_cmds='.sl'
11705     hardcode_into_libs=yes
11706     dynamic_linker="$host_os dld.sl"
11707     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11708     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11709     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11710     soname_spec='${libname}${release}${shared_ext}$major'
11711     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11712     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11713     ;;
11714   *)
11715    shrext_cmds='.sl'
11716    dynamic_linker="$host_os dld.sl"
11717    shlibpath_var=SHLIB_PATH
11718    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11719    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11720    soname_spec='${libname}${release}${shared_ext}$major'
11721    ;;
11722  esac
11723  # HP-UX runs *really* slowly unless shared libraries are mode 555.
11724  postinstall_cmds='chmod 555 $lib'
11725  ;;
11726
11727interix3*)
11728  version_type=linux
11729  need_lib_prefix=no
11730  need_version=no
11731  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11732  soname_spec='${libname}${release}${shared_ext}$major'
11733  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11734  shlibpath_var=LD_LIBRARY_PATH
11735  shlibpath_overrides_runpath=no
11736  hardcode_into_libs=yes
11737  ;;
11738
11739irix5* | irix6* | nonstopux*)
11740  case $host_os in
11741    nonstopux*) version_type=nonstopux ;;
11742    *)
11743	if test "$lt_cv_prog_gnu_ld" = yes; then
11744		version_type=linux
11745	else
11746		version_type=irix
11747	fi ;;
11748  esac
11749  need_lib_prefix=no
11750  need_version=no
11751  soname_spec='${libname}${release}${shared_ext}$major'
11752  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11753  case $host_os in
11754  irix5* | nonstopux*)
11755    libsuff= shlibsuff=
11756    ;;
11757  *)
11758    case $LD in # libtool.m4 will add one of these switches to LD
11759    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11760      libsuff= shlibsuff= libmagic=32-bit;;
11761    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11762      libsuff=32 shlibsuff=N32 libmagic=N32;;
11763    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11764      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11765    *) libsuff= shlibsuff= libmagic=never-match;;
11766    esac
11767    ;;
11768  esac
11769  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11770  shlibpath_overrides_runpath=no
11771  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11772  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11773  hardcode_into_libs=yes
11774  ;;
11775
11776# No shared lib support for Linux oldld, aout, or coff.
11777linux*oldld* | linux*aout* | linux*coff*)
11778  dynamic_linker=no
11779  ;;
11780
11781# This must be Linux ELF.
11782linux* | k*bsd*-gnu)
11783  version_type=linux
11784  need_lib_prefix=no
11785  need_version=no
11786  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11787  soname_spec='${libname}${release}${shared_ext}$major'
11788  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11789  shlibpath_var=LD_LIBRARY_PATH
11790  shlibpath_overrides_runpath=no
11791  # This implies no fast_install, which is unacceptable.
11792  # Some rework will be needed to allow for fast_install
11793  # before this can be enabled.
11794  hardcode_into_libs=yes
11795
11796  # Append ld.so.conf contents to the search path
11797  if test -f /etc/ld.so.conf; then
11798    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
11799    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11800  fi
11801
11802  # We used to test for /lib/ld.so.1 and disable shared libraries on
11803  # powerpc, because MkLinux only supported shared libraries with the
11804  # GNU dynamic linker.  Since this was broken with cross compilers,
11805  # most powerpc-linux boxes support dynamic linking these days and
11806  # people can always --disable-shared, the test was removed, and we
11807  # assume the GNU/Linux dynamic linker is in use.
11808  dynamic_linker='GNU/Linux ld.so'
11809  ;;
11810
11811netbsdelf*-gnu)
11812  version_type=linux
11813  need_lib_prefix=no
11814  need_version=no
11815  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11816  soname_spec='${libname}${release}${shared_ext}$major'
11817  shlibpath_var=LD_LIBRARY_PATH
11818  shlibpath_overrides_runpath=no
11819  hardcode_into_libs=yes
11820  dynamic_linker='NetBSD ld.elf_so'
11821  ;;
11822
11823netbsd*)
11824  version_type=sunos
11825  need_lib_prefix=no
11826  need_version=no
11827  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11828    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11829    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11830    dynamic_linker='NetBSD (a.out) ld.so'
11831  else
11832    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11833    soname_spec='${libname}${release}${shared_ext}$major'
11834    dynamic_linker='NetBSD ld.elf_so'
11835  fi
11836  shlibpath_var=LD_LIBRARY_PATH
11837  shlibpath_overrides_runpath=yes
11838  hardcode_into_libs=yes
11839  ;;
11840
11841newsos6)
11842  version_type=linux
11843  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11844  shlibpath_var=LD_LIBRARY_PATH
11845  shlibpath_overrides_runpath=yes
11846  ;;
11847
11848nto-qnx*)
11849  version_type=linux
11850  need_lib_prefix=no
11851  need_version=no
11852  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11853  soname_spec='${libname}${release}${shared_ext}$major'
11854  shlibpath_var=LD_LIBRARY_PATH
11855  shlibpath_overrides_runpath=yes
11856  ;;
11857
11858openbsd*)
11859  version_type=sunos
11860  sys_lib_dlsearch_path_spec="/usr/lib"
11861  need_lib_prefix=no
11862  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11863  case $host_os in
11864    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11865    *)                         need_version=no  ;;
11866  esac
11867  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11868  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11869  shlibpath_var=LD_LIBRARY_PATH
11870  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11871    case $host_os in
11872      openbsd2.[89] | openbsd2.[89].*)
11873	shlibpath_overrides_runpath=no
11874	;;
11875      *)
11876	shlibpath_overrides_runpath=yes
11877	;;
11878      esac
11879  else
11880    shlibpath_overrides_runpath=yes
11881  fi
11882  ;;
11883
11884os2*)
11885  libname_spec='$name'
11886  shrext_cmds=".dll"
11887  need_lib_prefix=no
11888  library_names_spec='$libname${shared_ext} $libname.a'
11889  dynamic_linker='OS/2 ld.exe'
11890  shlibpath_var=LIBPATH
11891  ;;
11892
11893osf3* | osf4* | osf5*)
11894  version_type=osf
11895  need_lib_prefix=no
11896  need_version=no
11897  soname_spec='${libname}${release}${shared_ext}$major'
11898  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11899  shlibpath_var=LD_LIBRARY_PATH
11900  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11901  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11902  ;;
11903
11904solaris*)
11905  version_type=linux
11906  need_lib_prefix=no
11907  need_version=no
11908  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11909  soname_spec='${libname}${release}${shared_ext}$major'
11910  shlibpath_var=LD_LIBRARY_PATH
11911  shlibpath_overrides_runpath=yes
11912  hardcode_into_libs=yes
11913  # ldd complains unless libraries are executable
11914  postinstall_cmds='chmod +x $lib'
11915  ;;
11916
11917sunos4*)
11918  version_type=sunos
11919  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11920  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11921  shlibpath_var=LD_LIBRARY_PATH
11922  shlibpath_overrides_runpath=yes
11923  if test "$with_gnu_ld" = yes; then
11924    need_lib_prefix=no
11925  fi
11926  need_version=yes
11927  ;;
11928
11929sysv4 | sysv4.3*)
11930  version_type=linux
11931  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11932  soname_spec='${libname}${release}${shared_ext}$major'
11933  shlibpath_var=LD_LIBRARY_PATH
11934  case $host_vendor in
11935    sni)
11936      shlibpath_overrides_runpath=no
11937      need_lib_prefix=no
11938      export_dynamic_flag_spec='${wl}-Blargedynsym'
11939      runpath_var=LD_RUN_PATH
11940      ;;
11941    siemens)
11942      need_lib_prefix=no
11943      ;;
11944    motorola)
11945      need_lib_prefix=no
11946      need_version=no
11947      shlibpath_overrides_runpath=no
11948      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11949      ;;
11950  esac
11951  ;;
11952
11953sysv4*MP*)
11954  if test -d /usr/nec ;then
11955    version_type=linux
11956    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11957    soname_spec='$libname${shared_ext}.$major'
11958    shlibpath_var=LD_LIBRARY_PATH
11959  fi
11960  ;;
11961
11962sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11963  version_type=freebsd-elf
11964  need_lib_prefix=no
11965  need_version=no
11966  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11967  soname_spec='${libname}${release}${shared_ext}$major'
11968  shlibpath_var=LD_LIBRARY_PATH
11969  hardcode_into_libs=yes
11970  if test "$with_gnu_ld" = yes; then
11971    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11972    shlibpath_overrides_runpath=no
11973  else
11974    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11975    shlibpath_overrides_runpath=yes
11976    case $host_os in
11977      sco3.2v5*)
11978        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11979	;;
11980    esac
11981  fi
11982  sys_lib_dlsearch_path_spec='/usr/lib'
11983  ;;
11984
11985uts4*)
11986  version_type=linux
11987  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11988  soname_spec='${libname}${release}${shared_ext}$major'
11989  shlibpath_var=LD_LIBRARY_PATH
11990  ;;
11991
11992*)
11993  dynamic_linker=no
11994  ;;
11995esac
11996echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11997echo "${ECHO_T}$dynamic_linker" >&6
11998test "$dynamic_linker" = no && can_build_shared=no
11999
12000variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12001if test "$GCC" = yes; then
12002  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12003fi
12004
12005echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12006echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12007hardcode_action_CXX=
12008if test -n "$hardcode_libdir_flag_spec_CXX" || \
12009   test -n "$runpath_var_CXX" || \
12010   test "X$hardcode_automatic_CXX" = "Xyes" ; then
12011
12012  # We can hardcode non-existant directories.
12013  if test "$hardcode_direct_CXX" != no &&
12014     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12015     # have to relink, otherwise we might link with an installed library
12016     # when we should be linking with a yet-to-be-installed one
12017     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12018     test "$hardcode_minus_L_CXX" != no; then
12019    # Linking always hardcodes the temporary library directory.
12020    hardcode_action_CXX=relink
12021  else
12022    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12023    hardcode_action_CXX=immediate
12024  fi
12025else
12026  # We cannot hardcode anything, or else we can only hardcode existing
12027  # directories.
12028  hardcode_action_CXX=unsupported
12029fi
12030echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12031echo "${ECHO_T}$hardcode_action_CXX" >&6
12032
12033if test "$hardcode_action_CXX" = relink; then
12034  # Fast installation is not supported
12035  enable_fast_install=no
12036elif test "$shlibpath_overrides_runpath" = yes ||
12037     test "$enable_shared" = no; then
12038  # Fast installation is not necessary
12039  enable_fast_install=needless
12040fi
12041
12042
12043# The else clause should only fire when bootstrapping the
12044# libtool distribution, otherwise you forgot to ship ltmain.sh
12045# with your package, and you will get complaints that there are
12046# no rules to generate ltmain.sh.
12047if test -f "$ltmain"; then
12048  # See if we are running on zsh, and set the options which allow our commands through
12049  # without removal of \ escapes.
12050  if test -n "${ZSH_VERSION+set}" ; then
12051    setopt NO_GLOB_SUBST
12052  fi
12053  # Now quote all the things that may contain metacharacters while being
12054  # careful not to overquote the AC_SUBSTed values.  We take copies of the
12055  # variables and quote the copies for generation of the libtool script.
12056  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12057    SED SHELL STRIP \
12058    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12059    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12060    deplibs_check_method reload_flag reload_cmds need_locks \
12061    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12062    lt_cv_sys_global_symbol_to_c_name_address \
12063    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12064    old_postinstall_cmds old_postuninstall_cmds \
12065    compiler_CXX \
12066    CC_CXX \
12067    LD_CXX \
12068    lt_prog_compiler_wl_CXX \
12069    lt_prog_compiler_pic_CXX \
12070    lt_prog_compiler_static_CXX \
12071    lt_prog_compiler_no_builtin_flag_CXX \
12072    export_dynamic_flag_spec_CXX \
12073    thread_safe_flag_spec_CXX \
12074    whole_archive_flag_spec_CXX \
12075    enable_shared_with_static_runtimes_CXX \
12076    old_archive_cmds_CXX \
12077    old_archive_from_new_cmds_CXX \
12078    predep_objects_CXX \
12079    postdep_objects_CXX \
12080    predeps_CXX \
12081    postdeps_CXX \
12082    compiler_lib_search_path_CXX \
12083    archive_cmds_CXX \
12084    archive_expsym_cmds_CXX \
12085    postinstall_cmds_CXX \
12086    postuninstall_cmds_CXX \
12087    old_archive_from_expsyms_cmds_CXX \
12088    allow_undefined_flag_CXX \
12089    no_undefined_flag_CXX \
12090    export_symbols_cmds_CXX \
12091    hardcode_libdir_flag_spec_CXX \
12092    hardcode_libdir_flag_spec_ld_CXX \
12093    hardcode_libdir_separator_CXX \
12094    hardcode_automatic_CXX \
12095    module_cmds_CXX \
12096    module_expsym_cmds_CXX \
12097    lt_cv_prog_compiler_c_o_CXX \
12098    exclude_expsyms_CXX \
12099    include_expsyms_CXX; do
12100
12101    case $var in
12102    old_archive_cmds_CXX | \
12103    old_archive_from_new_cmds_CXX | \
12104    archive_cmds_CXX | \
12105    archive_expsym_cmds_CXX | \
12106    module_cmds_CXX | \
12107    module_expsym_cmds_CXX | \
12108    old_archive_from_expsyms_cmds_CXX | \
12109    export_symbols_cmds_CXX | \
12110    extract_expsyms_cmds | reload_cmds | finish_cmds | \
12111    postinstall_cmds | postuninstall_cmds | \
12112    old_postinstall_cmds | old_postuninstall_cmds | \
12113    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12114      # Double-quote double-evaled strings.
12115      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12116      ;;
12117    *)
12118      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12119      ;;
12120    esac
12121  done
12122
12123  case $lt_echo in
12124  *'\$0 --fallback-echo"')
12125    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12126    ;;
12127  esac
12128
12129cfgfile="$ofile"
12130
12131  cat <<__EOF__ >> "$cfgfile"
12132# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12133
12134# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12135
12136# Shell to use when invoking shell scripts.
12137SHELL=$lt_SHELL
12138
12139# Whether or not to build shared libraries.
12140build_libtool_libs=$enable_shared
12141
12142# Whether or not to build static libraries.
12143build_old_libs=$enable_static
12144
12145# Whether or not to add -lc for building shared libraries.
12146build_libtool_need_lc=$archive_cmds_need_lc_CXX
12147
12148# Whether or not to disallow shared libs when runtime libs are static
12149allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12150
12151# Whether or not to optimize for fast installation.
12152fast_install=$enable_fast_install
12153
12154# The host system.
12155host_alias=$host_alias
12156host=$host
12157host_os=$host_os
12158
12159# The build system.
12160build_alias=$build_alias
12161build=$build
12162build_os=$build_os
12163
12164# An echo program that does not interpret backslashes.
12165echo=$lt_echo
12166
12167# The archiver.
12168AR=$lt_AR
12169AR_FLAGS=$lt_AR_FLAGS
12170
12171# A C compiler.
12172LTCC=$lt_LTCC
12173
12174# LTCC compiler flags.
12175LTCFLAGS=$lt_LTCFLAGS
12176
12177# A language-specific compiler.
12178CC=$lt_compiler_CXX
12179
12180# Is the compiler the GNU C compiler?
12181with_gcc=$GCC_CXX
12182
12183# An ERE matcher.
12184EGREP=$lt_EGREP
12185
12186# The linker used to build libraries.
12187LD=$lt_LD_CXX
12188
12189# Whether we need hard or soft links.
12190LN_S=$lt_LN_S
12191
12192# A BSD-compatible nm program.
12193NM=$lt_NM
12194
12195# A symbol stripping program
12196STRIP=$lt_STRIP
12197
12198# Used to examine libraries when file_magic_cmd begins "file"
12199MAGIC_CMD=$MAGIC_CMD
12200
12201# Used on cygwin: DLL creation program.
12202DLLTOOL="$DLLTOOL"
12203
12204# Used on cygwin: object dumper.
12205OBJDUMP="$OBJDUMP"
12206
12207# Used on cygwin: assembler.
12208AS="$AS"
12209
12210# The name of the directory that contains temporary libtool files.
12211objdir=$objdir
12212
12213# How to create reloadable object files.
12214reload_flag=$lt_reload_flag
12215reload_cmds=$lt_reload_cmds
12216
12217# How to pass a linker flag through the compiler.
12218wl=$lt_lt_prog_compiler_wl_CXX
12219
12220# Object file suffix (normally "o").
12221objext="$ac_objext"
12222
12223# Old archive suffix (normally "a").
12224libext="$libext"
12225
12226# Shared library suffix (normally ".so").
12227shrext_cmds='$shrext_cmds'
12228
12229# Executable file suffix (normally "").
12230exeext="$exeext"
12231
12232# Additional compiler flags for building library objects.
12233pic_flag=$lt_lt_prog_compiler_pic_CXX
12234pic_mode=$pic_mode
12235
12236# What is the maximum length of a command?
12237max_cmd_len=$lt_cv_sys_max_cmd_len
12238
12239# Does compiler simultaneously support -c and -o options?
12240compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12241
12242# Must we lock files when doing compilation?
12243need_locks=$lt_need_locks
12244
12245# Do we need the lib prefix for modules?
12246need_lib_prefix=$need_lib_prefix
12247
12248# Do we need a version for libraries?
12249need_version=$need_version
12250
12251# Whether dlopen is supported.
12252dlopen_support=$enable_dlopen
12253
12254# Whether dlopen of programs is supported.
12255dlopen_self=$enable_dlopen_self
12256
12257# Whether dlopen of statically linked programs is supported.
12258dlopen_self_static=$enable_dlopen_self_static
12259
12260# Compiler flag to prevent dynamic linking.
12261link_static_flag=$lt_lt_prog_compiler_static_CXX
12262
12263# Compiler flag to turn off builtin functions.
12264no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12265
12266# Compiler flag to allow reflexive dlopens.
12267export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12268
12269# Compiler flag to generate shared objects directly from archives.
12270whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12271
12272# Compiler flag to generate thread-safe objects.
12273thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12274
12275# Library versioning type.
12276version_type=$version_type
12277
12278# Format of library name prefix.
12279libname_spec=$lt_libname_spec
12280
12281# List of archive names.  First name is the real one, the rest are links.
12282# The last name is the one that the linker finds with -lNAME.
12283library_names_spec=$lt_library_names_spec
12284
12285# The coded name of the library, if different from the real name.
12286soname_spec=$lt_soname_spec
12287
12288# Commands used to build and install an old-style archive.
12289RANLIB=$lt_RANLIB
12290old_archive_cmds=$lt_old_archive_cmds_CXX
12291old_postinstall_cmds=$lt_old_postinstall_cmds
12292old_postuninstall_cmds=$lt_old_postuninstall_cmds
12293
12294# Create an old-style archive from a shared archive.
12295old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12296
12297# Create a temporary old-style archive to link instead of a shared archive.
12298old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12299
12300# Commands used to build and install a shared archive.
12301archive_cmds=$lt_archive_cmds_CXX
12302archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12303postinstall_cmds=$lt_postinstall_cmds
12304postuninstall_cmds=$lt_postuninstall_cmds
12305
12306# Commands used to build a loadable module (assumed same as above if empty)
12307module_cmds=$lt_module_cmds_CXX
12308module_expsym_cmds=$lt_module_expsym_cmds_CXX
12309
12310# Commands to strip libraries.
12311old_striplib=$lt_old_striplib
12312striplib=$lt_striplib
12313
12314# Dependencies to place before the objects being linked to create a
12315# shared library.
12316predep_objects=$lt_predep_objects_CXX
12317
12318# Dependencies to place after the objects being linked to create a
12319# shared library.
12320postdep_objects=$lt_postdep_objects_CXX
12321
12322# Dependencies to place before the objects being linked to create a
12323# shared library.
12324predeps=$lt_predeps_CXX
12325
12326# Dependencies to place after the objects being linked to create a
12327# shared library.
12328postdeps=$lt_postdeps_CXX
12329
12330# The library search path used internally by the compiler when linking
12331# a shared library.
12332compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12333
12334# Method to check whether dependent libraries are shared objects.
12335deplibs_check_method=$lt_deplibs_check_method
12336
12337# Command to use when deplibs_check_method == file_magic.
12338file_magic_cmd=$lt_file_magic_cmd
12339
12340# Flag that allows shared libraries with undefined symbols to be built.
12341allow_undefined_flag=$lt_allow_undefined_flag_CXX
12342
12343# Flag that forces no undefined symbols.
12344no_undefined_flag=$lt_no_undefined_flag_CXX
12345
12346# Commands used to finish a libtool library installation in a directory.
12347finish_cmds=$lt_finish_cmds
12348
12349# Same as above, but a single script fragment to be evaled but not shown.
12350finish_eval=$lt_finish_eval
12351
12352# Take the output of nm and produce a listing of raw symbols and C names.
12353global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12354
12355# Transform the output of nm in a proper C declaration
12356global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12357
12358# Transform the output of nm in a C name address pair
12359global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12360
12361# This is the shared library runtime path variable.
12362runpath_var=$runpath_var
12363
12364# This is the shared library path variable.
12365shlibpath_var=$shlibpath_var
12366
12367# Is shlibpath searched before the hard-coded library search path?
12368shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12369
12370# How to hardcode a shared library path into an executable.
12371hardcode_action=$hardcode_action_CXX
12372
12373# Whether we should hardcode library paths into libraries.
12374hardcode_into_libs=$hardcode_into_libs
12375
12376# Flag to hardcode \$libdir into a binary during linking.
12377# This must work even if \$libdir does not exist.
12378hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12379
12380# If ld is used when linking, flag to hardcode \$libdir into
12381# a binary during linking. This must work even if \$libdir does
12382# not exist.
12383hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12384
12385# Whether we need a single -rpath flag with a separated argument.
12386hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12387
12388# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12389# resulting binary.
12390hardcode_direct=$hardcode_direct_CXX
12391
12392# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12393# resulting binary.
12394hardcode_minus_L=$hardcode_minus_L_CXX
12395
12396# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12397# the resulting binary.
12398hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12399
12400# Set to yes if building a shared library automatically hardcodes DIR into the library
12401# and all subsequent libraries and executables linked against it.
12402hardcode_automatic=$hardcode_automatic_CXX
12403
12404# Variables whose values should be saved in libtool wrapper scripts and
12405# restored at relink time.
12406variables_saved_for_relink="$variables_saved_for_relink"
12407
12408# Whether libtool must link a program against all its dependency libraries.
12409link_all_deplibs=$link_all_deplibs_CXX
12410
12411# Compile-time system search path for libraries
12412sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12413
12414# Run-time system search path for libraries
12415sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12416
12417# Fix the shell variable \$srcfile for the compiler.
12418fix_srcfile_path="$fix_srcfile_path_CXX"
12419
12420# Set to yes if exported symbols are required.
12421always_export_symbols=$always_export_symbols_CXX
12422
12423# The commands to list exported symbols.
12424export_symbols_cmds=$lt_export_symbols_cmds_CXX
12425
12426# The commands to extract the exported symbol list from a shared archive.
12427extract_expsyms_cmds=$lt_extract_expsyms_cmds
12428
12429# Symbols that should not be listed in the preloaded symbols.
12430exclude_expsyms=$lt_exclude_expsyms_CXX
12431
12432# Symbols that must always be exported.
12433include_expsyms=$lt_include_expsyms_CXX
12434
12435# ### END LIBTOOL TAG CONFIG: $tagname
12436
12437__EOF__
12438
12439
12440else
12441  # If there is no Makefile yet, we rely on a make rule to execute
12442  # `config.status --recheck' to rerun these tests and create the
12443  # libtool script then.
12444  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12445  if test -f "$ltmain_in"; then
12446    test -f Makefile && make "$ltmain"
12447  fi
12448fi
12449
12450
12451ac_ext=c
12452ac_cpp='$CPP $CPPFLAGS'
12453ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12454ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12455ac_compiler_gnu=$ac_cv_c_compiler_gnu
12456
12457CC=$lt_save_CC
12458LDCXX=$LD
12459LD=$lt_save_LD
12460GCC=$lt_save_GCC
12461with_gnu_ldcxx=$with_gnu_ld
12462with_gnu_ld=$lt_save_with_gnu_ld
12463lt_cv_path_LDCXX=$lt_cv_path_LD
12464lt_cv_path_LD=$lt_save_path_LD
12465lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12466lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12467
12468	else
12469	  tagname=""
12470	fi
12471	;;
12472
12473      F77)
12474	if test -n "$F77" && test "X$F77" != "Xno"; then
12475
12476ac_ext=f
12477ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12478ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12479ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12480
12481
12482archive_cmds_need_lc_F77=no
12483allow_undefined_flag_F77=
12484always_export_symbols_F77=no
12485archive_expsym_cmds_F77=
12486export_dynamic_flag_spec_F77=
12487hardcode_direct_F77=no
12488hardcode_libdir_flag_spec_F77=
12489hardcode_libdir_flag_spec_ld_F77=
12490hardcode_libdir_separator_F77=
12491hardcode_minus_L_F77=no
12492hardcode_automatic_F77=no
12493module_cmds_F77=
12494module_expsym_cmds_F77=
12495link_all_deplibs_F77=unknown
12496old_archive_cmds_F77=$old_archive_cmds
12497no_undefined_flag_F77=
12498whole_archive_flag_spec_F77=
12499enable_shared_with_static_runtimes_F77=no
12500
12501# Source file extension for f77 test sources.
12502ac_ext=f
12503
12504# Object file extension for compiled f77 test sources.
12505objext=o
12506objext_F77=$objext
12507
12508# Code to be used in simple compile tests
12509lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12510
12511# Code to be used in simple link tests
12512lt_simple_link_test_code="      program t\n      end\n"
12513
12514# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12515
12516# If no C compiler was specified, use CC.
12517LTCC=${LTCC-"$CC"}
12518
12519# If no C compiler flags were specified, use CFLAGS.
12520LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12521
12522# Allow CC to be a program name with arguments.
12523compiler=$CC
12524
12525
12526# save warnings/boilerplate of simple test code
12527ac_outfile=conftest.$ac_objext
12528printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12529eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12530_lt_compiler_boilerplate=`cat conftest.err`
12531$rm conftest*
12532
12533ac_outfile=conftest.$ac_objext
12534printf "$lt_simple_link_test_code" >conftest.$ac_ext
12535eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12536_lt_linker_boilerplate=`cat conftest.err`
12537$rm conftest*
12538
12539
12540# Allow CC to be a program name with arguments.
12541lt_save_CC="$CC"
12542CC=${F77-"f77"}
12543compiler=$CC
12544compiler_F77=$CC
12545for cc_temp in $compiler""; do
12546  case $cc_temp in
12547    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12548    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12549    \-*) ;;
12550    *) break;;
12551  esac
12552done
12553cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12554
12555
12556echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12557echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12558echo "$as_me:$LINENO: result: $can_build_shared" >&5
12559echo "${ECHO_T}$can_build_shared" >&6
12560
12561echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12562echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12563test "$can_build_shared" = "no" && enable_shared=no
12564
12565# On AIX, shared libraries and static libraries use the same namespace, and
12566# are all built from PIC.
12567case $host_os in
12568aix3*)
12569  test "$enable_shared" = yes && enable_static=no
12570  if test -n "$RANLIB"; then
12571    archive_cmds="$archive_cmds~\$RANLIB \$lib"
12572    postinstall_cmds='$RANLIB $lib'
12573  fi
12574  ;;
12575aix4* | aix5*)
12576  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12577    test "$enable_shared" = yes && enable_static=no
12578  fi
12579  ;;
12580esac
12581echo "$as_me:$LINENO: result: $enable_shared" >&5
12582echo "${ECHO_T}$enable_shared" >&6
12583
12584echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12585echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12586# Make sure either enable_shared or enable_static is yes.
12587test "$enable_shared" = yes || enable_static=yes
12588echo "$as_me:$LINENO: result: $enable_static" >&5
12589echo "${ECHO_T}$enable_static" >&6
12590
12591GCC_F77="$G77"
12592LD_F77="$LD"
12593
12594lt_prog_compiler_wl_F77=
12595lt_prog_compiler_pic_F77=
12596lt_prog_compiler_static_F77=
12597
12598echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12599echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12600
12601  if test "$GCC" = yes; then
12602    lt_prog_compiler_wl_F77='-Wl,'
12603    lt_prog_compiler_static_F77='-static'
12604
12605    case $host_os in
12606      aix*)
12607      # All AIX code is PIC.
12608      if test "$host_cpu" = ia64; then
12609	# AIX 5 now supports IA64 processor
12610	lt_prog_compiler_static_F77='-Bstatic'
12611      fi
12612      ;;
12613
12614    amigaos*)
12615      # FIXME: we need at least 68020 code to build shared libraries, but
12616      # adding the `-m68020' flag to GCC prevents building anything better,
12617      # like `-m68040'.
12618      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12619      ;;
12620
12621    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12622      # PIC is the default for these OSes.
12623      ;;
12624
12625    mingw* | pw32* | os2*)
12626      # This hack is so that the source file can tell whether it is being
12627      # built for inclusion in a dll (and should export symbols for example).
12628      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12629      ;;
12630
12631    darwin* | rhapsody*)
12632      # PIC is the default on this platform
12633      # Common symbols not allowed in MH_DYLIB files
12634      lt_prog_compiler_pic_F77='-fno-common'
12635      ;;
12636
12637    interix3*)
12638      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12639      # Instead, we relocate shared libraries at runtime.
12640      ;;
12641
12642    msdosdjgpp*)
12643      # Just because we use GCC doesn't mean we suddenly get shared libraries
12644      # on systems that don't support them.
12645      lt_prog_compiler_can_build_shared_F77=no
12646      enable_shared=no
12647      ;;
12648
12649    sysv4*MP*)
12650      if test -d /usr/nec; then
12651	lt_prog_compiler_pic_F77=-Kconform_pic
12652      fi
12653      ;;
12654
12655    hpux*)
12656      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12657      # not for PA HP-UX.
12658      case $host_cpu in
12659      hppa*64*|ia64*)
12660	# +Z the default
12661	;;
12662      *)
12663	lt_prog_compiler_pic_F77='-fPIC'
12664	;;
12665      esac
12666      ;;
12667
12668    *)
12669      lt_prog_compiler_pic_F77='-fPIC'
12670      ;;
12671    esac
12672  else
12673    # PORTME Check for flag to pass linker flags through the system compiler.
12674    case $host_os in
12675    aix*)
12676      lt_prog_compiler_wl_F77='-Wl,'
12677      if test "$host_cpu" = ia64; then
12678	# AIX 5 now supports IA64 processor
12679	lt_prog_compiler_static_F77='-Bstatic'
12680      else
12681	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12682      fi
12683      ;;
12684      darwin*)
12685        # PIC is the default on this platform
12686        # Common symbols not allowed in MH_DYLIB files
12687       case $cc_basename in
12688         xlc*)
12689         lt_prog_compiler_pic_F77='-qnocommon'
12690         lt_prog_compiler_wl_F77='-Wl,'
12691         ;;
12692       esac
12693       ;;
12694
12695    mingw* | pw32* | os2*)
12696      # This hack is so that the source file can tell whether it is being
12697      # built for inclusion in a dll (and should export symbols for example).
12698      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12699      ;;
12700
12701    hpux9* | hpux10* | hpux11*)
12702      lt_prog_compiler_wl_F77='-Wl,'
12703      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12704      # not for PA HP-UX.
12705      case $host_cpu in
12706      hppa*64*|ia64*)
12707	# +Z the default
12708	;;
12709      *)
12710	lt_prog_compiler_pic_F77='+Z'
12711	;;
12712      esac
12713      # Is there a better lt_prog_compiler_static that works with the bundled CC?
12714      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12715      ;;
12716
12717    irix5* | irix6* | nonstopux*)
12718      lt_prog_compiler_wl_F77='-Wl,'
12719      # PIC (with -KPIC) is the default.
12720      lt_prog_compiler_static_F77='-non_shared'
12721      ;;
12722
12723    newsos6)
12724      lt_prog_compiler_pic_F77='-KPIC'
12725      lt_prog_compiler_static_F77='-Bstatic'
12726      ;;
12727
12728    linux* | k*bsd*-gnu)
12729      case $cc_basename in
12730      icc* | ecc*)
12731	lt_prog_compiler_wl_F77='-Wl,'
12732	lt_prog_compiler_pic_F77='-KPIC'
12733	lt_prog_compiler_static_F77='-static'
12734        ;;
12735      pgcc* | pgf77* | pgf90* | pgf95*)
12736        # Portland Group compilers (*not* the Pentium gcc compiler,
12737	# which looks to be a dead project)
12738	lt_prog_compiler_wl_F77='-Wl,'
12739	lt_prog_compiler_pic_F77='-fpic'
12740	lt_prog_compiler_static_F77='-Bstatic'
12741        ;;
12742      ccc*)
12743        lt_prog_compiler_wl_F77='-Wl,'
12744        # All Alpha code is PIC.
12745        lt_prog_compiler_static_F77='-non_shared'
12746        ;;
12747      esac
12748      ;;
12749
12750    osf3* | osf4* | osf5*)
12751      lt_prog_compiler_wl_F77='-Wl,'
12752      # All OSF/1 code is PIC.
12753      lt_prog_compiler_static_F77='-non_shared'
12754      ;;
12755
12756    solaris*)
12757      lt_prog_compiler_pic_F77='-KPIC'
12758      lt_prog_compiler_static_F77='-Bstatic'
12759      case $cc_basename in
12760      f77* | f90* | f95*)
12761	lt_prog_compiler_wl_F77='-Qoption ld ';;
12762      *)
12763	lt_prog_compiler_wl_F77='-Wl,';;
12764      esac
12765      ;;
12766
12767    sunos4*)
12768      lt_prog_compiler_wl_F77='-Qoption ld '
12769      lt_prog_compiler_pic_F77='-PIC'
12770      lt_prog_compiler_static_F77='-Bstatic'
12771      ;;
12772
12773    sysv4 | sysv4.2uw2* | sysv4.3*)
12774      lt_prog_compiler_wl_F77='-Wl,'
12775      lt_prog_compiler_pic_F77='-KPIC'
12776      lt_prog_compiler_static_F77='-Bstatic'
12777      ;;
12778
12779    sysv4*MP*)
12780      if test -d /usr/nec ;then
12781	lt_prog_compiler_pic_F77='-Kconform_pic'
12782	lt_prog_compiler_static_F77='-Bstatic'
12783      fi
12784      ;;
12785
12786    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12787      lt_prog_compiler_wl_F77='-Wl,'
12788      lt_prog_compiler_pic_F77='-KPIC'
12789      lt_prog_compiler_static_F77='-Bstatic'
12790      ;;
12791
12792    unicos*)
12793      lt_prog_compiler_wl_F77='-Wl,'
12794      lt_prog_compiler_can_build_shared_F77=no
12795      ;;
12796
12797    uts4*)
12798      lt_prog_compiler_pic_F77='-pic'
12799      lt_prog_compiler_static_F77='-Bstatic'
12800      ;;
12801
12802    *)
12803      lt_prog_compiler_can_build_shared_F77=no
12804      ;;
12805    esac
12806  fi
12807
12808echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12809echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12810
12811#
12812# Check to make sure the PIC flag actually works.
12813#
12814if test -n "$lt_prog_compiler_pic_F77"; then
12815
12816echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12817echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
12818if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
12819  echo $ECHO_N "(cached) $ECHO_C" >&6
12820else
12821  lt_prog_compiler_pic_works_F77=no
12822  ac_outfile=conftest.$ac_objext
12823   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12824   lt_compiler_flag="$lt_prog_compiler_pic_F77"
12825   # Insert the option either (1) after the last *FLAGS variable, or
12826   # (2) before a word containing "conftest.", or (3) at the end.
12827   # Note that $ac_compile itself does not contain backslashes and begins
12828   # with a dollar sign (not a hyphen), so the echo should work correctly.
12829   # The option is referenced via a variable to avoid confusing sed.
12830   lt_compile=`echo "$ac_compile" | $SED \
12831   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12832   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12833   -e 's:$: $lt_compiler_flag:'`
12834   (eval echo "\"\$as_me:12834: $lt_compile\"" >&5)
12835   (eval "$lt_compile" 2>conftest.err)
12836   ac_status=$?
12837   cat conftest.err >&5
12838   echo "$as_me:12838: \$? = $ac_status" >&5
12839   if (exit $ac_status) && test -s "$ac_outfile"; then
12840     # The compiler can only warn and ignore the option if not recognized
12841     # So say no if there are warnings other than the usual output.
12842     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12843     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12844     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12845       lt_prog_compiler_pic_works_F77=yes
12846     fi
12847   fi
12848   $rm conftest*
12849
12850fi
12851echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
12852echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
12853
12854if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
12855    case $lt_prog_compiler_pic_F77 in
12856     "" | " "*) ;;
12857     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
12858     esac
12859else
12860    lt_prog_compiler_pic_F77=
12861     lt_prog_compiler_can_build_shared_F77=no
12862fi
12863
12864fi
12865case $host_os in
12866  # For platforms which do not support PIC, -DPIC is meaningless:
12867  *djgpp*)
12868    lt_prog_compiler_pic_F77=
12869    ;;
12870  *)
12871    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
12872    ;;
12873esac
12874
12875#
12876# Check to make sure the static flag actually works.
12877#
12878wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
12879echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12880echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
12881if test "${lt_prog_compiler_static_works_F77+set}" = set; then
12882  echo $ECHO_N "(cached) $ECHO_C" >&6
12883else
12884  lt_prog_compiler_static_works_F77=no
12885   save_LDFLAGS="$LDFLAGS"
12886   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12887   printf "$lt_simple_link_test_code" > conftest.$ac_ext
12888   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12889     # The linker can only warn and ignore the option if not recognized
12890     # So say no if there are warnings
12891     if test -s conftest.err; then
12892       # Append any errors to the config.log.
12893       cat conftest.err 1>&5
12894       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12895       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12896       if diff conftest.exp conftest.er2 >/dev/null; then
12897         lt_prog_compiler_static_works_F77=yes
12898       fi
12899     else
12900       lt_prog_compiler_static_works_F77=yes
12901     fi
12902   fi
12903   $rm conftest*
12904   LDFLAGS="$save_LDFLAGS"
12905
12906fi
12907echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
12908echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
12909
12910if test x"$lt_prog_compiler_static_works_F77" = xyes; then
12911    :
12912else
12913    lt_prog_compiler_static_F77=
12914fi
12915
12916
12917echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12918echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12919if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
12920  echo $ECHO_N "(cached) $ECHO_C" >&6
12921else
12922  lt_cv_prog_compiler_c_o_F77=no
12923   $rm -r conftest 2>/dev/null
12924   mkdir conftest
12925   cd conftest
12926   mkdir out
12927   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12928
12929   lt_compiler_flag="-o out/conftest2.$ac_objext"
12930   # Insert the option either (1) after the last *FLAGS variable, or
12931   # (2) before a word containing "conftest.", or (3) at the end.
12932   # Note that $ac_compile itself does not contain backslashes and begins
12933   # with a dollar sign (not a hyphen), so the echo should work correctly.
12934   lt_compile=`echo "$ac_compile" | $SED \
12935   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12936   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12937   -e 's:$: $lt_compiler_flag:'`
12938   (eval echo "\"\$as_me:12938: $lt_compile\"" >&5)
12939   (eval "$lt_compile" 2>out/conftest.err)
12940   ac_status=$?
12941   cat out/conftest.err >&5
12942   echo "$as_me:12942: \$? = $ac_status" >&5
12943   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12944   then
12945     # The compiler can only warn and ignore the option if not recognized
12946     # So say no if there are warnings
12947     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12948     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12949     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12950       lt_cv_prog_compiler_c_o_F77=yes
12951     fi
12952   fi
12953   chmod u+w . 2>&5
12954   $rm conftest*
12955   # SGI C++ compiler will create directory out/ii_files/ for
12956   # template instantiation
12957   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12958   $rm out/* && rmdir out
12959   cd ..
12960   rmdir conftest
12961   $rm conftest*
12962
12963fi
12964echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
12965echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
12966
12967
12968hard_links="nottested"
12969if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
12970  # do not overwrite the value of need_locks provided by the user
12971  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12972echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12973  hard_links=yes
12974  $rm conftest*
12975  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12976  touch conftest.a
12977  ln conftest.a conftest.b 2>&5 || hard_links=no
12978  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12979  echo "$as_me:$LINENO: result: $hard_links" >&5
12980echo "${ECHO_T}$hard_links" >&6
12981  if test "$hard_links" = no; then
12982    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12983echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12984    need_locks=warn
12985  fi
12986else
12987  need_locks=no
12988fi
12989
12990echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12991echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12992
12993  runpath_var=
12994  allow_undefined_flag_F77=
12995  enable_shared_with_static_runtimes_F77=no
12996  archive_cmds_F77=
12997  archive_expsym_cmds_F77=
12998  old_archive_From_new_cmds_F77=
12999  old_archive_from_expsyms_cmds_F77=
13000  export_dynamic_flag_spec_F77=
13001  whole_archive_flag_spec_F77=
13002  thread_safe_flag_spec_F77=
13003  hardcode_libdir_flag_spec_F77=
13004  hardcode_libdir_flag_spec_ld_F77=
13005  hardcode_libdir_separator_F77=
13006  hardcode_direct_F77=no
13007  hardcode_minus_L_F77=no
13008  hardcode_shlibpath_var_F77=unsupported
13009  link_all_deplibs_F77=unknown
13010  hardcode_automatic_F77=no
13011  module_cmds_F77=
13012  module_expsym_cmds_F77=
13013  always_export_symbols_F77=no
13014  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13015  # include_expsyms should be a list of space-separated symbols to be *always*
13016  # included in the symbol list
13017  include_expsyms_F77=
13018  # exclude_expsyms can be an extended regexp of symbols to exclude
13019  # it will be wrapped by ` (' and `)$', so one must not match beginning or
13020  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13021  # as well as any symbol that contains `d'.
13022  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13023  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13024  # platforms (ab)use it in PIC code, but their linkers get confused if
13025  # the symbol is explicitly referenced.  Since portable code cannot
13026  # rely on this symbol name, it's probably fine to never include it in
13027  # preloaded symbol tables.
13028  extract_expsyms_cmds=
13029  # Just being paranoid about ensuring that cc_basename is set.
13030  for cc_temp in $compiler""; do
13031  case $cc_temp in
13032    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13033    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13034    \-*) ;;
13035    *) break;;
13036  esac
13037done
13038cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13039
13040  case $host_os in
13041  cygwin* | mingw* | pw32*)
13042    # FIXME: the MSVC++ port hasn't been tested in a loooong time
13043    # When not using gcc, we currently assume that we are using
13044    # Microsoft Visual C++.
13045    if test "$GCC" != yes; then
13046      with_gnu_ld=no
13047    fi
13048    ;;
13049  interix*)
13050    # we just hope/assume this is gcc and not c89 (= MSVC++)
13051    with_gnu_ld=yes
13052    ;;
13053  openbsd*)
13054    with_gnu_ld=no
13055    ;;
13056  esac
13057
13058  ld_shlibs_F77=yes
13059  if test "$with_gnu_ld" = yes; then
13060    # If archive_cmds runs LD, not CC, wlarc should be empty
13061    wlarc='${wl}'
13062
13063    # Set some defaults for GNU ld with shared library support. These
13064    # are reset later if shared libraries are not supported. Putting them
13065    # here allows them to be overridden if necessary.
13066    runpath_var=LD_RUN_PATH
13067    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13068    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13069    # ancient GNU ld didn't support --whole-archive et. al.
13070    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13071	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13072      else
13073  	whole_archive_flag_spec_F77=
13074    fi
13075    supports_anon_versioning=no
13076    case `$LD -v 2>/dev/null` in
13077      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13078      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13079      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13080      *\ 2.11.*) ;; # other 2.11 versions
13081      *) supports_anon_versioning=yes ;;
13082    esac
13083
13084    # See if GNU ld supports shared libraries.
13085    case $host_os in
13086    aix3* | aix4* | aix5*)
13087      # On AIX/PPC, the GNU linker is very broken
13088      if test "$host_cpu" != ia64; then
13089	ld_shlibs_F77=no
13090	cat <<EOF 1>&2
13091
13092*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13093*** to be unable to reliably create shared libraries on AIX.
13094*** Therefore, libtool is disabling shared libraries support.  If you
13095*** really care for shared libraries, you may want to modify your PATH
13096*** so that a non-GNU linker is found, and then restart.
13097
13098EOF
13099      fi
13100      ;;
13101
13102    amigaos*)
13103      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)'
13104      hardcode_libdir_flag_spec_F77='-L$libdir'
13105      hardcode_minus_L_F77=yes
13106
13107      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13108      # that the semantics of dynamic libraries on AmigaOS, at least up
13109      # to version 4, is to share data among multiple programs linked
13110      # with the same dynamic library.  Since this doesn't match the
13111      # behavior of shared libraries on other platforms, we can't use
13112      # them.
13113      ld_shlibs_F77=no
13114      ;;
13115
13116    beos*)
13117      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13118	allow_undefined_flag_F77=unsupported
13119	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13120	# support --undefined.  This deserves some investigation.  FIXME
13121	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13122      else
13123	ld_shlibs_F77=no
13124      fi
13125      ;;
13126
13127    cygwin* | mingw* | pw32*)
13128      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13129      # as there is no search path for DLLs.
13130      hardcode_libdir_flag_spec_F77='-L$libdir'
13131      allow_undefined_flag_F77=unsupported
13132      always_export_symbols_F77=no
13133      enable_shared_with_static_runtimes_F77=yes
13134      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13135
13136      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13137        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13138	# If the export-symbols file already is a .def file (1st line
13139	# is EXPORTS), use it as is; otherwise, prepend...
13140	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13141	  cp $export_symbols $output_objdir/$soname.def;
13142	else
13143	  echo EXPORTS > $output_objdir/$soname.def;
13144	  cat $export_symbols >> $output_objdir/$soname.def;
13145	fi~
13146	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13147      else
13148	ld_shlibs_F77=no
13149      fi
13150      ;;
13151
13152    interix3*)
13153      hardcode_direct_F77=no
13154      hardcode_shlibpath_var_F77=no
13155      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13156      export_dynamic_flag_spec_F77='${wl}-E'
13157      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13158      # Instead, shared libraries are loaded at an image base (0x10000000 by
13159      # default) and relocated if they conflict, which is a slow very memory
13160      # consuming and fragmenting process.  To avoid this, we pick a random,
13161      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13162      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13163      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'
13164      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'
13165      ;;
13166
13167    linux* | k*bsd*-gnu)
13168      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13169	tmp_addflag=
13170	case $cc_basename,$host_cpu in
13171	pgcc*)				# Portland Group C compiler
13172	  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'
13173	  tmp_addflag=' $pic_flag'
13174	  ;;
13175	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
13176	  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'
13177	  tmp_addflag=' $pic_flag -Mnomain' ;;
13178	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
13179	  tmp_addflag=' -i_dynamic' ;;
13180	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
13181	  tmp_addflag=' -i_dynamic -nofor_main' ;;
13182	ifc* | ifort*)			# Intel Fortran compiler
13183	  tmp_addflag=' -nofor_main' ;;
13184	esac
13185	archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13186
13187	if test $supports_anon_versioning = yes; then
13188	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13189  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13190  $echo "local: *; };" >> $output_objdir/$libname.ver~
13191	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13192	fi
13193	link_all_deplibs_F77=no
13194      else
13195	ld_shlibs_F77=no
13196      fi
13197      ;;
13198
13199    netbsd* | netbsdelf*-gnu)
13200      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13201	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13202	wlarc=
13203      else
13204	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13205	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13206      fi
13207      ;;
13208
13209    solaris*)
13210      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13211	ld_shlibs_F77=no
13212	cat <<EOF 1>&2
13213
13214*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13215*** create shared libraries on Solaris systems.  Therefore, libtool
13216*** is disabling shared libraries support.  We urge you to upgrade GNU
13217*** binutils to release 2.9.1 or newer.  Another option is to modify
13218*** your PATH or compiler configuration so that the native linker is
13219*** used, and then restart.
13220
13221EOF
13222      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13223	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13224	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13225      else
13226	ld_shlibs_F77=no
13227      fi
13228      ;;
13229
13230    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13231      case `$LD -v 2>&1` in
13232        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13233	ld_shlibs_F77=no
13234	cat <<_LT_EOF 1>&2
13235
13236*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13237*** reliably create shared libraries on SCO systems.  Therefore, libtool
13238*** is disabling shared libraries support.  We urge you to upgrade GNU
13239*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
13240*** your PATH or compiler configuration so that the native linker is
13241*** used, and then restart.
13242
13243_LT_EOF
13244	;;
13245	*)
13246	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13247	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13248	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13249	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13250	  else
13251	    ld_shlibs_F77=no
13252	  fi
13253	;;
13254      esac
13255      ;;
13256
13257    sunos4*)
13258      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13259      wlarc=
13260      hardcode_direct_F77=yes
13261      hardcode_shlibpath_var_F77=no
13262      ;;
13263
13264    *)
13265      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13266	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13267	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13268      else
13269	ld_shlibs_F77=no
13270      fi
13271      ;;
13272    esac
13273
13274    if test "$ld_shlibs_F77" = no; then
13275      runpath_var=
13276      hardcode_libdir_flag_spec_F77=
13277      export_dynamic_flag_spec_F77=
13278      whole_archive_flag_spec_F77=
13279    fi
13280  else
13281    # PORTME fill in a description of your system's linker (not GNU ld)
13282    case $host_os in
13283    aix3*)
13284      allow_undefined_flag_F77=unsupported
13285      always_export_symbols_F77=yes
13286      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'
13287      # Note: this linker hardcodes the directories in LIBPATH if there
13288      # are no directories specified by -L.
13289      hardcode_minus_L_F77=yes
13290      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13291	# Neither direct hardcoding nor static linking is supported with a
13292	# broken collect2.
13293	hardcode_direct_F77=unsupported
13294      fi
13295      ;;
13296
13297    aix4* | aix5*)
13298      if test "$host_cpu" = ia64; then
13299	# On IA64, the linker does run time linking by default, so we don't
13300	# have to do anything special.
13301	aix_use_runtimelinking=no
13302	exp_sym_flag='-Bexport'
13303	no_entry_flag=""
13304      else
13305	# If we're using GNU nm, then we don't want the "-C" option.
13306	# -C means demangle to AIX nm, but means don't demangle with GNU nm
13307	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13308	  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'
13309	else
13310	  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'
13311	fi
13312	aix_use_runtimelinking=no
13313
13314	# Test if we are trying to use run time linking or normal
13315	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
13316	# need to do runtime linking.
13317	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13318	  for ld_flag in $LDFLAGS; do
13319  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13320  	    aix_use_runtimelinking=yes
13321  	    break
13322  	  fi
13323	  done
13324	  ;;
13325	esac
13326
13327	exp_sym_flag='-bexport'
13328	no_entry_flag='-bnoentry'
13329      fi
13330
13331      # When large executables or shared objects are built, AIX ld can
13332      # have problems creating the table of contents.  If linking a library
13333      # or program results in "error TOC overflow" add -mminimal-toc to
13334      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13335      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13336
13337      archive_cmds_F77=''
13338      hardcode_direct_F77=yes
13339      hardcode_libdir_separator_F77=':'
13340      link_all_deplibs_F77=yes
13341
13342      if test "$GCC" = yes; then
13343	case $host_os in aix4.[012]|aix4.[012].*)
13344	# We only want to do this on AIX 4.2 and lower, the check
13345	# below for broken collect2 doesn't work under 4.3+
13346	  collect2name=`${CC} -print-prog-name=collect2`
13347	  if test -f "$collect2name" && \
13348  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
13349	  then
13350  	  # We have reworked collect2
13351  	  hardcode_direct_F77=yes
13352	  else
13353  	  # We have old collect2
13354  	  hardcode_direct_F77=unsupported
13355  	  # It fails to find uninstalled libraries when the uninstalled
13356  	  # path is not listed in the libpath.  Setting hardcode_minus_L
13357  	  # to unsupported forces relinking
13358  	  hardcode_minus_L_F77=yes
13359  	  hardcode_libdir_flag_spec_F77='-L$libdir'
13360  	  hardcode_libdir_separator_F77=
13361	  fi
13362	  ;;
13363	esac
13364	shared_flag='-shared'
13365	if test "$aix_use_runtimelinking" = yes; then
13366	  shared_flag="$shared_flag "'${wl}-G'
13367	fi
13368      else
13369	# not using gcc
13370	if test "$host_cpu" = ia64; then
13371  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13372  	# chokes on -Wl,-G. The following line is correct:
13373	  shared_flag='-G'
13374	else
13375	  if test "$aix_use_runtimelinking" = yes; then
13376	    shared_flag='${wl}-G'
13377	  else
13378	    shared_flag='${wl}-bM:SRE'
13379	  fi
13380	fi
13381      fi
13382
13383      # It seems that -bexpall does not export symbols beginning with
13384      # underscore (_), so it is better to generate a list of symbols to export.
13385      always_export_symbols_F77=yes
13386      if test "$aix_use_runtimelinking" = yes; then
13387	# Warning - without using the other runtime loading flags (-brtl),
13388	# -berok will link without error, but may produce a broken library.
13389	allow_undefined_flag_F77='-berok'
13390       # Determine the default libpath from the value encoded in an empty executable.
13391       cat >conftest.$ac_ext <<_ACEOF
13392      program main
13393
13394      end
13395_ACEOF
13396rm -f conftest.$ac_objext conftest$ac_exeext
13397if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13398  (eval $ac_link) 2>conftest.er1
13399  ac_status=$?
13400  grep -v '^ *+' conftest.er1 >conftest.err
13401  rm -f conftest.er1
13402  cat conftest.err >&5
13403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13404  (exit $ac_status); } &&
13405	 { ac_try='test -z "$ac_f77_werror_flag"			 || test ! -s conftest.err'
13406  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13407  (eval $ac_try) 2>&5
13408  ac_status=$?
13409  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13410  (exit $ac_status); }; } &&
13411	 { ac_try='test -s conftest$ac_exeext'
13412  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13413  (eval $ac_try) 2>&5
13414  ac_status=$?
13415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13416  (exit $ac_status); }; }; then
13417
13418aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13419}'`
13420# Check for a 64-bit object if we didn't find anything.
13421if 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; }
13422}'`; fi
13423else
13424  echo "$as_me: failed program was:" >&5
13425sed 's/^/| /' conftest.$ac_ext >&5
13426
13427fi
13428rm -f conftest.err conftest.$ac_objext \
13429      conftest$ac_exeext conftest.$ac_ext
13430if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13431
13432       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13433	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"
13434       else
13435	if test "$host_cpu" = ia64; then
13436	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13437	  allow_undefined_flag_F77="-z nodefs"
13438	  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"
13439	else
13440	 # Determine the default libpath from the value encoded in an empty executable.
13441	 cat >conftest.$ac_ext <<_ACEOF
13442      program main
13443
13444      end
13445_ACEOF
13446rm -f conftest.$ac_objext conftest$ac_exeext
13447if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13448  (eval $ac_link) 2>conftest.er1
13449  ac_status=$?
13450  grep -v '^ *+' conftest.er1 >conftest.err
13451  rm -f conftest.er1
13452  cat conftest.err >&5
13453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13454  (exit $ac_status); } &&
13455	 { ac_try='test -z "$ac_f77_werror_flag"			 || test ! -s conftest.err'
13456  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13457  (eval $ac_try) 2>&5
13458  ac_status=$?
13459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13460  (exit $ac_status); }; } &&
13461	 { ac_try='test -s conftest$ac_exeext'
13462  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13463  (eval $ac_try) 2>&5
13464  ac_status=$?
13465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13466  (exit $ac_status); }; }; then
13467
13468aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13469}'`
13470# Check for a 64-bit object if we didn't find anything.
13471if 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; }
13472}'`; fi
13473else
13474  echo "$as_me: failed program was:" >&5
13475sed 's/^/| /' conftest.$ac_ext >&5
13476
13477fi
13478rm -f conftest.err conftest.$ac_objext \
13479      conftest$ac_exeext conftest.$ac_ext
13480if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13481
13482	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13483	  # Warning - without using the other run time loading flags,
13484	  # -berok will link without error, but may produce a broken library.
13485	  no_undefined_flag_F77=' ${wl}-bernotok'
13486	  allow_undefined_flag_F77=' ${wl}-berok'
13487	  # Exported symbols can be pulled into shared objects from archives
13488	  whole_archive_flag_spec_F77='$convenience'
13489	  archive_cmds_need_lc_F77=yes
13490	  # This is similar to how AIX traditionally builds its shared libraries.
13491	  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'
13492	fi
13493      fi
13494      ;;
13495
13496    amigaos*)
13497      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)'
13498      hardcode_libdir_flag_spec_F77='-L$libdir'
13499      hardcode_minus_L_F77=yes
13500      # see comment about different semantics on the GNU ld section
13501      ld_shlibs_F77=no
13502      ;;
13503
13504    bsdi[45]*)
13505      export_dynamic_flag_spec_F77=-rdynamic
13506      ;;
13507
13508    cygwin* | mingw* | pw32*)
13509      # When not using gcc, we currently assume that we are using
13510      # Microsoft Visual C++.
13511      # hardcode_libdir_flag_spec is actually meaningless, as there is
13512      # no search path for DLLs.
13513      hardcode_libdir_flag_spec_F77=' '
13514      allow_undefined_flag_F77=unsupported
13515      # Tell ltmain to make .lib files, not .a files.
13516      libext=lib
13517      # Tell ltmain to make .dll files, not .so files.
13518      shrext_cmds=".dll"
13519      # FIXME: Setting linknames here is a bad hack.
13520      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13521      # The linker will automatically build a .lib file if we build a DLL.
13522      old_archive_From_new_cmds_F77='true'
13523      # FIXME: Should let the user specify the lib program.
13524      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13525      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
13526      enable_shared_with_static_runtimes_F77=yes
13527      ;;
13528
13529    darwin* | rhapsody*)
13530      case $host_os in
13531        rhapsody* | darwin1.[012])
13532         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
13533         ;;
13534       *) # Darwin 1.3 on
13535         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13536           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13537         else
13538           case ${MACOSX_DEPLOYMENT_TARGET} in
13539             10.[012])
13540               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13541               ;;
13542             10.*)
13543               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
13544               ;;
13545           esac
13546         fi
13547         ;;
13548      esac
13549      archive_cmds_need_lc_F77=no
13550      hardcode_direct_F77=no
13551      hardcode_automatic_F77=yes
13552      hardcode_shlibpath_var_F77=unsupported
13553      whole_archive_flag_spec_F77=''
13554      link_all_deplibs_F77=yes
13555    if test "$GCC" = yes ; then
13556    	output_verbose_link_cmd='echo'
13557        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13558      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13559      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13560      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}'
13561      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}'
13562    else
13563      case $cc_basename in
13564        xlc*)
13565         output_verbose_link_cmd='echo'
13566         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13567         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13568          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13569         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}'
13570          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}'
13571          ;;
13572       *)
13573         ld_shlibs_F77=no
13574          ;;
13575      esac
13576    fi
13577      ;;
13578
13579    dgux*)
13580      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13581      hardcode_libdir_flag_spec_F77='-L$libdir'
13582      hardcode_shlibpath_var_F77=no
13583      ;;
13584
13585    freebsd1*)
13586      ld_shlibs_F77=no
13587      ;;
13588
13589    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13590    # support.  Future versions do this automatically, but an explicit c++rt0.o
13591    # does not break anything, and helps significantly (at the cost of a little
13592    # extra space).
13593    freebsd2.2*)
13594      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13595      hardcode_libdir_flag_spec_F77='-R$libdir'
13596      hardcode_direct_F77=yes
13597      hardcode_shlibpath_var_F77=no
13598      ;;
13599
13600    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13601    freebsd2*)
13602      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13603      hardcode_direct_F77=yes
13604      hardcode_minus_L_F77=yes
13605      hardcode_shlibpath_var_F77=no
13606      ;;
13607
13608    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13609    freebsd* | dragonfly*)
13610      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13611      hardcode_libdir_flag_spec_F77='-R$libdir'
13612      hardcode_direct_F77=yes
13613      hardcode_shlibpath_var_F77=no
13614      ;;
13615
13616    hpux9*)
13617      if test "$GCC" = yes; then
13618	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'
13619      else
13620	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'
13621      fi
13622      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13623      hardcode_libdir_separator_F77=:
13624      hardcode_direct_F77=yes
13625
13626      # hardcode_minus_L: Not really in the search PATH,
13627      # but as the default location of the library.
13628      hardcode_minus_L_F77=yes
13629      export_dynamic_flag_spec_F77='${wl}-E'
13630      ;;
13631
13632    hpux10*)
13633      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13634	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13635      else
13636	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13637      fi
13638      if test "$with_gnu_ld" = no; then
13639	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13640	hardcode_libdir_separator_F77=:
13641
13642	hardcode_direct_F77=yes
13643	export_dynamic_flag_spec_F77='${wl}-E'
13644
13645	# hardcode_minus_L: Not really in the search PATH,
13646	# but as the default location of the library.
13647	hardcode_minus_L_F77=yes
13648      fi
13649      ;;
13650
13651    hpux11*)
13652      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13653	case $host_cpu in
13654	hppa*64*)
13655	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13656	  ;;
13657	ia64*)
13658	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13659	  ;;
13660	*)
13661	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13662	  ;;
13663	esac
13664      else
13665	case $host_cpu in
13666	hppa*64*)
13667	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13668	  ;;
13669	ia64*)
13670	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13671	  ;;
13672	*)
13673	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13674	  ;;
13675	esac
13676      fi
13677      if test "$with_gnu_ld" = no; then
13678	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13679	hardcode_libdir_separator_F77=:
13680
13681	case $host_cpu in
13682	hppa*64*|ia64*)
13683	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13684	  hardcode_direct_F77=no
13685	  hardcode_shlibpath_var_F77=no
13686	  ;;
13687	*)
13688	  hardcode_direct_F77=yes
13689	  export_dynamic_flag_spec_F77='${wl}-E'
13690
13691	  # hardcode_minus_L: Not really in the search PATH,
13692	  # but as the default location of the library.
13693	  hardcode_minus_L_F77=yes
13694	  ;;
13695	esac
13696      fi
13697      ;;
13698
13699    irix5* | irix6* | nonstopux*)
13700      if test "$GCC" = yes; then
13701	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'
13702      else
13703	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'
13704	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13705      fi
13706      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13707      hardcode_libdir_separator_F77=:
13708      link_all_deplibs_F77=yes
13709      ;;
13710
13711    netbsd* | netbsdelf*-gnu)
13712      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13713	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13714      else
13715	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13716      fi
13717      hardcode_libdir_flag_spec_F77='-R$libdir'
13718      hardcode_direct_F77=yes
13719      hardcode_shlibpath_var_F77=no
13720      ;;
13721
13722    newsos6)
13723      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13724      hardcode_direct_F77=yes
13725      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13726      hardcode_libdir_separator_F77=:
13727      hardcode_shlibpath_var_F77=no
13728      ;;
13729
13730    openbsd*)
13731      hardcode_direct_F77=yes
13732      hardcode_shlibpath_var_F77=no
13733      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13734	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13735	archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13736	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13737	export_dynamic_flag_spec_F77='${wl}-E'
13738      else
13739       case $host_os in
13740	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13741	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13742	   hardcode_libdir_flag_spec_F77='-R$libdir'
13743	   ;;
13744	 *)
13745	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13746	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13747	   ;;
13748       esac
13749      fi
13750      ;;
13751
13752    os2*)
13753      hardcode_libdir_flag_spec_F77='-L$libdir'
13754      hardcode_minus_L_F77=yes
13755      allow_undefined_flag_F77=unsupported
13756      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'
13757      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13758      ;;
13759
13760    osf3*)
13761      if test "$GCC" = yes; then
13762	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13763	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'
13764      else
13765	allow_undefined_flag_F77=' -expect_unresolved \*'
13766	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'
13767      fi
13768      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13769      hardcode_libdir_separator_F77=:
13770      ;;
13771
13772    osf4* | osf5*)	# as osf3* with the addition of -msym flag
13773      if test "$GCC" = yes; then
13774	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13775	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'
13776	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13777      else
13778	allow_undefined_flag_F77=' -expect_unresolved \*'
13779	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'
13780	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~
13781	$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'
13782
13783	# Both c and cxx compiler support -rpath directly
13784	hardcode_libdir_flag_spec_F77='-rpath $libdir'
13785      fi
13786      hardcode_libdir_separator_F77=:
13787      ;;
13788
13789    solaris*)
13790      no_undefined_flag_F77=' -z text'
13791      if test "$GCC" = yes; then
13792	wlarc='${wl}'
13793	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13794	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13795	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13796      else
13797	wlarc=''
13798	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13799	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13800  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13801      fi
13802      hardcode_libdir_flag_spec_F77='-R$libdir'
13803      hardcode_shlibpath_var_F77=no
13804      case $host_os in
13805      solaris2.[0-5] | solaris2.[0-5].*) ;;
13806      *)
13807 	# The compiler driver will combine linker options so we
13808 	# cannot just pass the convience library names through
13809 	# without $wl, iff we do not link with $LD.
13810 	# Luckily, gcc supports the same syntax we need for Sun Studio.
13811 	# Supported since Solaris 2.6 (maybe 2.5.1?)
13812 	case $wlarc in
13813 	'')
13814 	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13815 	*)
13816 	  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' ;;
13817 	esac ;;
13818      esac
13819      link_all_deplibs_F77=yes
13820      ;;
13821
13822    sunos4*)
13823      if test "x$host_vendor" = xsequent; then
13824	# Use $CC to link under sequent, because it throws in some extra .o
13825	# files that make .init and .fini sections work.
13826	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13827      else
13828	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13829      fi
13830      hardcode_libdir_flag_spec_F77='-L$libdir'
13831      hardcode_direct_F77=yes
13832      hardcode_minus_L_F77=yes
13833      hardcode_shlibpath_var_F77=no
13834      ;;
13835
13836    sysv4)
13837      case $host_vendor in
13838	sni)
13839	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13840	  hardcode_direct_F77=yes # is this really true???
13841	;;
13842	siemens)
13843	  ## LD is ld it makes a PLAMLIB
13844	  ## CC just makes a GrossModule.
13845	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13846	  reload_cmds_F77='$CC -r -o $output$reload_objs'
13847	  hardcode_direct_F77=no
13848        ;;
13849	motorola)
13850	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13851	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13852	;;
13853      esac
13854      runpath_var='LD_RUN_PATH'
13855      hardcode_shlibpath_var_F77=no
13856      ;;
13857
13858    sysv4.3*)
13859      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13860      hardcode_shlibpath_var_F77=no
13861      export_dynamic_flag_spec_F77='-Bexport'
13862      ;;
13863
13864    sysv4*MP*)
13865      if test -d /usr/nec; then
13866	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13867	hardcode_shlibpath_var_F77=no
13868	runpath_var=LD_RUN_PATH
13869	hardcode_runpath_var=yes
13870	ld_shlibs_F77=yes
13871      fi
13872      ;;
13873
13874    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
13875      no_undefined_flag_F77='${wl}-z,text'
13876      archive_cmds_need_lc_F77=no
13877      hardcode_shlibpath_var_F77=no
13878      runpath_var='LD_RUN_PATH'
13879
13880      if test "$GCC" = yes; then
13881	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13882	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13883      else
13884	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13885	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13886      fi
13887      ;;
13888
13889    sysv5* | sco3.2v5* | sco5v6*)
13890      # Note: We can NOT use -z defs as we might desire, because we do not
13891      # link with -lc, and that would cause any symbols used from libc to
13892      # always be unresolved, which means just about no library would
13893      # ever link correctly.  If we're not using GNU ld we use -z text
13894      # though, which does catch some bad symbols but isn't as heavy-handed
13895      # as -z defs.
13896      no_undefined_flag_F77='${wl}-z,text'
13897      allow_undefined_flag_F77='${wl}-z,nodefs'
13898      archive_cmds_need_lc_F77=no
13899      hardcode_shlibpath_var_F77=no
13900      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
13901      hardcode_libdir_separator_F77=':'
13902      link_all_deplibs_F77=yes
13903      export_dynamic_flag_spec_F77='${wl}-Bexport'
13904      runpath_var='LD_RUN_PATH'
13905
13906      if test "$GCC" = yes; then
13907	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13908	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13909      else
13910	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13911	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13912      fi
13913      ;;
13914
13915    uts4*)
13916      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13917      hardcode_libdir_flag_spec_F77='-L$libdir'
13918      hardcode_shlibpath_var_F77=no
13919      ;;
13920
13921    *)
13922      ld_shlibs_F77=no
13923      ;;
13924    esac
13925  fi
13926
13927echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13928echo "${ECHO_T}$ld_shlibs_F77" >&6
13929test "$ld_shlibs_F77" = no && can_build_shared=no
13930
13931#
13932# Do we need to explicitly link libc?
13933#
13934case "x$archive_cmds_need_lc_F77" in
13935x|xyes)
13936  # Assume -lc should be added
13937  archive_cmds_need_lc_F77=yes
13938
13939  if test "$enable_shared" = yes && test "$GCC" = yes; then
13940    case $archive_cmds_F77 in
13941    *'~'*)
13942      # FIXME: we may have to deal with multi-command sequences.
13943      ;;
13944    '$CC '*)
13945      # Test whether the compiler implicitly links with -lc since on some
13946      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13947      # to ld, don't add -lc before -lgcc.
13948      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13949echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13950      $rm conftest*
13951      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13952
13953      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13954  (eval $ac_compile) 2>&5
13955  ac_status=$?
13956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13957  (exit $ac_status); } 2>conftest.err; then
13958        soname=conftest
13959        lib=conftest
13960        libobjs=conftest.$ac_objext
13961        deplibs=
13962        wl=$lt_prog_compiler_wl_F77
13963	pic_flag=$lt_prog_compiler_pic_F77
13964        compiler_flags=-v
13965        linker_flags=-v
13966        verstring=
13967        output_objdir=.
13968        libname=conftest
13969        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13970        allow_undefined_flag_F77=
13971        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13972  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13973  ac_status=$?
13974  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13975  (exit $ac_status); }
13976        then
13977	  archive_cmds_need_lc_F77=no
13978        else
13979	  archive_cmds_need_lc_F77=yes
13980        fi
13981        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13982      else
13983        cat conftest.err 1>&5
13984      fi
13985      $rm conftest*
13986      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13987echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13988      ;;
13989    esac
13990  fi
13991  ;;
13992esac
13993
13994echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13995echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13996library_names_spec=
13997libname_spec='lib$name'
13998soname_spec=
13999shrext_cmds=".so"
14000postinstall_cmds=
14001postuninstall_cmds=
14002finish_cmds=
14003finish_eval=
14004shlibpath_var=
14005shlibpath_overrides_runpath=unknown
14006version_type=none
14007dynamic_linker="$host_os ld.so"
14008sys_lib_dlsearch_path_spec="/lib /usr/lib"
14009if test "$GCC" = yes; then
14010  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14011  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14012    # if the path contains ";" then we assume it to be the separator
14013    # otherwise default to the standard path separator (i.e. ":") - it is
14014    # assumed that no part of a normal pathname contains ";" but that should
14015    # okay in the real world where ";" in dirpaths is itself problematic.
14016    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14017  else
14018    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14019  fi
14020else
14021  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14022fi
14023need_lib_prefix=unknown
14024hardcode_into_libs=no
14025
14026# when you set need_version to no, make sure it does not cause -set_version
14027# flags to be left without arguments
14028need_version=unknown
14029
14030case $host_os in
14031aix3*)
14032  version_type=linux
14033  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14034  shlibpath_var=LIBPATH
14035
14036  # AIX 3 has no versioning support, so we append a major version to the name.
14037  soname_spec='${libname}${release}${shared_ext}$major'
14038  ;;
14039
14040aix4* | aix5*)
14041  version_type=linux
14042  need_lib_prefix=no
14043  need_version=no
14044  hardcode_into_libs=yes
14045  if test "$host_cpu" = ia64; then
14046    # AIX 5 supports IA64
14047    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14048    shlibpath_var=LD_LIBRARY_PATH
14049  else
14050    # With GCC up to 2.95.x, collect2 would create an import file
14051    # for dependence libraries.  The import file would start with
14052    # the line `#! .'.  This would cause the generated library to
14053    # depend on `.', always an invalid library.  This was fixed in
14054    # development snapshots of GCC prior to 3.0.
14055    case $host_os in
14056      aix4 | aix4.[01] | aix4.[01].*)
14057      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14058	   echo ' yes '
14059	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14060	:
14061      else
14062	can_build_shared=no
14063      fi
14064      ;;
14065    esac
14066    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14067    # soname into executable. Probably we can add versioning support to
14068    # collect2, so additional links can be useful in future.
14069    if test "$aix_use_runtimelinking" = yes; then
14070      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14071      # instead of lib<name>.a to let people know that these are not
14072      # typical AIX shared libraries.
14073      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14074    else
14075      # We preserve .a as extension for shared libraries through AIX4.2
14076      # and later when we are not doing run time linking.
14077      library_names_spec='${libname}${release}.a $libname.a'
14078      soname_spec='${libname}${release}${shared_ext}$major'
14079    fi
14080    shlibpath_var=LIBPATH
14081  fi
14082  ;;
14083
14084amigaos*)
14085  library_names_spec='$libname.ixlibrary $libname.a'
14086  # Create ${libname}_ixlibrary.a entries in /sys/libs.
14087  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'
14088  ;;
14089
14090beos*)
14091  library_names_spec='${libname}${shared_ext}'
14092  dynamic_linker="$host_os ld.so"
14093  shlibpath_var=LIBRARY_PATH
14094  ;;
14095
14096bsdi[45]*)
14097  version_type=linux
14098  need_version=no
14099  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14100  soname_spec='${libname}${release}${shared_ext}$major'
14101  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14102  shlibpath_var=LD_LIBRARY_PATH
14103  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14104  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14105  # the default ld.so.conf also contains /usr/contrib/lib and
14106  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14107  # libtool to hard-code these into programs
14108  ;;
14109
14110cygwin* | mingw* | pw32*)
14111  version_type=windows
14112  shrext_cmds=".dll"
14113  need_version=no
14114  need_lib_prefix=no
14115
14116  case $GCC,$host_os in
14117  yes,cygwin* | yes,mingw* | yes,pw32*)
14118    library_names_spec='$libname.dll.a'
14119    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14120    postinstall_cmds='base_file=`basename \${file}`~
14121      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14122      dldir=$destdir/`dirname \$dlpath`~
14123      test -d \$dldir || mkdir -p \$dldir~
14124      $install_prog $dir/$dlname \$dldir/$dlname~
14125      chmod a+x \$dldir/$dlname'
14126    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14127      dlpath=$dir/\$dldll~
14128       $rm \$dlpath'
14129    shlibpath_overrides_runpath=yes
14130
14131    case $host_os in
14132    cygwin*)
14133      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14134      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14135      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14136      ;;
14137    mingw*)
14138      # MinGW DLLs use traditional 'lib' prefix
14139      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14140      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14141      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14142        # It is most probably a Windows format PATH printed by
14143        # mingw gcc, but we are running on Cygwin. Gcc prints its search
14144        # path with ; separators, and with drive letters. We can handle the
14145        # drive letters (cygwin fileutils understands them), so leave them,
14146        # especially as we might pass files found there to a mingw objdump,
14147        # which wouldn't understand a cygwinified path. Ahh.
14148        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14149      else
14150        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14151      fi
14152      ;;
14153    pw32*)
14154      # pw32 DLLs use 'pw' prefix rather than 'lib'
14155      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14156      ;;
14157    esac
14158    ;;
14159
14160  *)
14161    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14162    ;;
14163  esac
14164  dynamic_linker='Win32 ld.exe'
14165  # FIXME: first we should search . and the directory the executable is in
14166  shlibpath_var=PATH
14167  ;;
14168
14169darwin* | rhapsody*)
14170  dynamic_linker="$host_os dyld"
14171  version_type=darwin
14172  need_lib_prefix=no
14173  need_version=no
14174  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14175  soname_spec='${libname}${release}${major}$shared_ext'
14176  shlibpath_overrides_runpath=yes
14177  shlibpath_var=DYLD_LIBRARY_PATH
14178  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14179  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14180  if test "$GCC" = yes; then
14181    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"`
14182  else
14183    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14184  fi
14185  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14186  ;;
14187
14188dgux*)
14189  version_type=linux
14190  need_lib_prefix=no
14191  need_version=no
14192  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14193  soname_spec='${libname}${release}${shared_ext}$major'
14194  shlibpath_var=LD_LIBRARY_PATH
14195  ;;
14196
14197freebsd1*)
14198  dynamic_linker=no
14199  ;;
14200
14201freebsd* | dragonfly*)
14202  # DragonFly does not have aout.  When/if they implement a new
14203  # versioning mechanism, adjust this.
14204  if test -x /usr/bin/objformat; then
14205    objformat=`/usr/bin/objformat`
14206  else
14207    case $host_os in
14208    freebsd[123]*) objformat=aout ;;
14209    *) objformat=elf ;;
14210    esac
14211  fi
14212  version_type=freebsd-$objformat
14213  case $version_type in
14214    freebsd-elf*)
14215      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14216      need_version=no
14217      need_lib_prefix=no
14218      ;;
14219    freebsd-*)
14220      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14221      need_version=yes
14222      ;;
14223  esac
14224  shlibpath_var=LD_LIBRARY_PATH
14225  case $host_os in
14226  freebsd2*)
14227    shlibpath_overrides_runpath=yes
14228    ;;
14229  freebsd3.[01]* | freebsdelf3.[01]*)
14230    shlibpath_overrides_runpath=yes
14231    hardcode_into_libs=yes
14232    ;;
14233  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14234  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14235    shlibpath_overrides_runpath=no
14236    hardcode_into_libs=yes
14237    ;;
14238  freebsd*) # from 4.6 on
14239    shlibpath_overrides_runpath=yes
14240    hardcode_into_libs=yes
14241    ;;
14242  esac
14243  ;;
14244
14245gnu*)
14246  version_type=linux
14247  need_lib_prefix=no
14248  need_version=no
14249  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14250  soname_spec='${libname}${release}${shared_ext}$major'
14251  shlibpath_var=LD_LIBRARY_PATH
14252  hardcode_into_libs=yes
14253  ;;
14254
14255hpux9* | hpux10* | hpux11*)
14256  # Give a soname corresponding to the major version so that dld.sl refuses to
14257  # link against other versions.
14258  version_type=sunos
14259  need_lib_prefix=no
14260  need_version=no
14261  case $host_cpu in
14262  ia64*)
14263    shrext_cmds='.so'
14264    hardcode_into_libs=yes
14265    dynamic_linker="$host_os dld.so"
14266    shlibpath_var=LD_LIBRARY_PATH
14267    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14268    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14269    soname_spec='${libname}${release}${shared_ext}$major'
14270    if test "X$HPUX_IA64_MODE" = X32; then
14271      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14272    else
14273      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14274    fi
14275    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14276    ;;
14277   hppa*64*)
14278     shrext_cmds='.sl'
14279     hardcode_into_libs=yes
14280     dynamic_linker="$host_os dld.sl"
14281     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14282     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14283     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14284     soname_spec='${libname}${release}${shared_ext}$major'
14285     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14286     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14287     ;;
14288   *)
14289    shrext_cmds='.sl'
14290    dynamic_linker="$host_os dld.sl"
14291    shlibpath_var=SHLIB_PATH
14292    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14293    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14294    soname_spec='${libname}${release}${shared_ext}$major'
14295    ;;
14296  esac
14297  # HP-UX runs *really* slowly unless shared libraries are mode 555.
14298  postinstall_cmds='chmod 555 $lib'
14299  ;;
14300
14301interix3*)
14302  version_type=linux
14303  need_lib_prefix=no
14304  need_version=no
14305  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14306  soname_spec='${libname}${release}${shared_ext}$major'
14307  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14308  shlibpath_var=LD_LIBRARY_PATH
14309  shlibpath_overrides_runpath=no
14310  hardcode_into_libs=yes
14311  ;;
14312
14313irix5* | irix6* | nonstopux*)
14314  case $host_os in
14315    nonstopux*) version_type=nonstopux ;;
14316    *)
14317	if test "$lt_cv_prog_gnu_ld" = yes; then
14318		version_type=linux
14319	else
14320		version_type=irix
14321	fi ;;
14322  esac
14323  need_lib_prefix=no
14324  need_version=no
14325  soname_spec='${libname}${release}${shared_ext}$major'
14326  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14327  case $host_os in
14328  irix5* | nonstopux*)
14329    libsuff= shlibsuff=
14330    ;;
14331  *)
14332    case $LD in # libtool.m4 will add one of these switches to LD
14333    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14334      libsuff= shlibsuff= libmagic=32-bit;;
14335    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14336      libsuff=32 shlibsuff=N32 libmagic=N32;;
14337    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14338      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14339    *) libsuff= shlibsuff= libmagic=never-match;;
14340    esac
14341    ;;
14342  esac
14343  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14344  shlibpath_overrides_runpath=no
14345  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14346  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14347  hardcode_into_libs=yes
14348  ;;
14349
14350# No shared lib support for Linux oldld, aout, or coff.
14351linux*oldld* | linux*aout* | linux*coff*)
14352  dynamic_linker=no
14353  ;;
14354
14355# This must be Linux ELF.
14356linux* | k*bsd*-gnu)
14357  version_type=linux
14358  need_lib_prefix=no
14359  need_version=no
14360  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14361  soname_spec='${libname}${release}${shared_ext}$major'
14362  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14363  shlibpath_var=LD_LIBRARY_PATH
14364  shlibpath_overrides_runpath=no
14365  # This implies no fast_install, which is unacceptable.
14366  # Some rework will be needed to allow for fast_install
14367  # before this can be enabled.
14368  hardcode_into_libs=yes
14369
14370  # Append ld.so.conf contents to the search path
14371  if test -f /etc/ld.so.conf; then
14372    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14373    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14374  fi
14375
14376  # We used to test for /lib/ld.so.1 and disable shared libraries on
14377  # powerpc, because MkLinux only supported shared libraries with the
14378  # GNU dynamic linker.  Since this was broken with cross compilers,
14379  # most powerpc-linux boxes support dynamic linking these days and
14380  # people can always --disable-shared, the test was removed, and we
14381  # assume the GNU/Linux dynamic linker is in use.
14382  dynamic_linker='GNU/Linux ld.so'
14383  ;;
14384
14385netbsdelf*-gnu)
14386  version_type=linux
14387  need_lib_prefix=no
14388  need_version=no
14389  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14390  soname_spec='${libname}${release}${shared_ext}$major'
14391  shlibpath_var=LD_LIBRARY_PATH
14392  shlibpath_overrides_runpath=no
14393  hardcode_into_libs=yes
14394  dynamic_linker='NetBSD ld.elf_so'
14395  ;;
14396
14397netbsd*)
14398  version_type=sunos
14399  need_lib_prefix=no
14400  need_version=no
14401  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14402    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14403    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14404    dynamic_linker='NetBSD (a.out) ld.so'
14405  else
14406    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14407    soname_spec='${libname}${release}${shared_ext}$major'
14408    dynamic_linker='NetBSD ld.elf_so'
14409  fi
14410  shlibpath_var=LD_LIBRARY_PATH
14411  shlibpath_overrides_runpath=yes
14412  hardcode_into_libs=yes
14413  ;;
14414
14415newsos6)
14416  version_type=linux
14417  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14418  shlibpath_var=LD_LIBRARY_PATH
14419  shlibpath_overrides_runpath=yes
14420  ;;
14421
14422nto-qnx*)
14423  version_type=linux
14424  need_lib_prefix=no
14425  need_version=no
14426  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14427  soname_spec='${libname}${release}${shared_ext}$major'
14428  shlibpath_var=LD_LIBRARY_PATH
14429  shlibpath_overrides_runpath=yes
14430  ;;
14431
14432openbsd*)
14433  version_type=sunos
14434  sys_lib_dlsearch_path_spec="/usr/lib"
14435  need_lib_prefix=no
14436  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14437  case $host_os in
14438    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14439    *)                         need_version=no  ;;
14440  esac
14441  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14442  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14443  shlibpath_var=LD_LIBRARY_PATH
14444  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14445    case $host_os in
14446      openbsd2.[89] | openbsd2.[89].*)
14447	shlibpath_overrides_runpath=no
14448	;;
14449      *)
14450	shlibpath_overrides_runpath=yes
14451	;;
14452      esac
14453  else
14454    shlibpath_overrides_runpath=yes
14455  fi
14456  ;;
14457
14458os2*)
14459  libname_spec='$name'
14460  shrext_cmds=".dll"
14461  need_lib_prefix=no
14462  library_names_spec='$libname${shared_ext} $libname.a'
14463  dynamic_linker='OS/2 ld.exe'
14464  shlibpath_var=LIBPATH
14465  ;;
14466
14467osf3* | osf4* | osf5*)
14468  version_type=osf
14469  need_lib_prefix=no
14470  need_version=no
14471  soname_spec='${libname}${release}${shared_ext}$major'
14472  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14473  shlibpath_var=LD_LIBRARY_PATH
14474  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14475  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14476  ;;
14477
14478solaris*)
14479  version_type=linux
14480  need_lib_prefix=no
14481  need_version=no
14482  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14483  soname_spec='${libname}${release}${shared_ext}$major'
14484  shlibpath_var=LD_LIBRARY_PATH
14485  shlibpath_overrides_runpath=yes
14486  hardcode_into_libs=yes
14487  # ldd complains unless libraries are executable
14488  postinstall_cmds='chmod +x $lib'
14489  ;;
14490
14491sunos4*)
14492  version_type=sunos
14493  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14494  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14495  shlibpath_var=LD_LIBRARY_PATH
14496  shlibpath_overrides_runpath=yes
14497  if test "$with_gnu_ld" = yes; then
14498    need_lib_prefix=no
14499  fi
14500  need_version=yes
14501  ;;
14502
14503sysv4 | sysv4.3*)
14504  version_type=linux
14505  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14506  soname_spec='${libname}${release}${shared_ext}$major'
14507  shlibpath_var=LD_LIBRARY_PATH
14508  case $host_vendor in
14509    sni)
14510      shlibpath_overrides_runpath=no
14511      need_lib_prefix=no
14512      export_dynamic_flag_spec='${wl}-Blargedynsym'
14513      runpath_var=LD_RUN_PATH
14514      ;;
14515    siemens)
14516      need_lib_prefix=no
14517      ;;
14518    motorola)
14519      need_lib_prefix=no
14520      need_version=no
14521      shlibpath_overrides_runpath=no
14522      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14523      ;;
14524  esac
14525  ;;
14526
14527sysv4*MP*)
14528  if test -d /usr/nec ;then
14529    version_type=linux
14530    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14531    soname_spec='$libname${shared_ext}.$major'
14532    shlibpath_var=LD_LIBRARY_PATH
14533  fi
14534  ;;
14535
14536sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14537  version_type=freebsd-elf
14538  need_lib_prefix=no
14539  need_version=no
14540  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14541  soname_spec='${libname}${release}${shared_ext}$major'
14542  shlibpath_var=LD_LIBRARY_PATH
14543  hardcode_into_libs=yes
14544  if test "$with_gnu_ld" = yes; then
14545    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14546    shlibpath_overrides_runpath=no
14547  else
14548    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14549    shlibpath_overrides_runpath=yes
14550    case $host_os in
14551      sco3.2v5*)
14552        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14553	;;
14554    esac
14555  fi
14556  sys_lib_dlsearch_path_spec='/usr/lib'
14557  ;;
14558
14559uts4*)
14560  version_type=linux
14561  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14562  soname_spec='${libname}${release}${shared_ext}$major'
14563  shlibpath_var=LD_LIBRARY_PATH
14564  ;;
14565
14566*)
14567  dynamic_linker=no
14568  ;;
14569esac
14570echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14571echo "${ECHO_T}$dynamic_linker" >&6
14572test "$dynamic_linker" = no && can_build_shared=no
14573
14574variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14575if test "$GCC" = yes; then
14576  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14577fi
14578
14579echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14580echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14581hardcode_action_F77=
14582if test -n "$hardcode_libdir_flag_spec_F77" || \
14583   test -n "$runpath_var_F77" || \
14584   test "X$hardcode_automatic_F77" = "Xyes" ; then
14585
14586  # We can hardcode non-existant directories.
14587  if test "$hardcode_direct_F77" != no &&
14588     # If the only mechanism to avoid hardcoding is shlibpath_var, we
14589     # have to relink, otherwise we might link with an installed library
14590     # when we should be linking with a yet-to-be-installed one
14591     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14592     test "$hardcode_minus_L_F77" != no; then
14593    # Linking always hardcodes the temporary library directory.
14594    hardcode_action_F77=relink
14595  else
14596    # We can link without hardcoding, and we can hardcode nonexisting dirs.
14597    hardcode_action_F77=immediate
14598  fi
14599else
14600  # We cannot hardcode anything, or else we can only hardcode existing
14601  # directories.
14602  hardcode_action_F77=unsupported
14603fi
14604echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14605echo "${ECHO_T}$hardcode_action_F77" >&6
14606
14607if test "$hardcode_action_F77" = relink; then
14608  # Fast installation is not supported
14609  enable_fast_install=no
14610elif test "$shlibpath_overrides_runpath" = yes ||
14611     test "$enable_shared" = no; then
14612  # Fast installation is not necessary
14613  enable_fast_install=needless
14614fi
14615
14616
14617# The else clause should only fire when bootstrapping the
14618# libtool distribution, otherwise you forgot to ship ltmain.sh
14619# with your package, and you will get complaints that there are
14620# no rules to generate ltmain.sh.
14621if test -f "$ltmain"; then
14622  # See if we are running on zsh, and set the options which allow our commands through
14623  # without removal of \ escapes.
14624  if test -n "${ZSH_VERSION+set}" ; then
14625    setopt NO_GLOB_SUBST
14626  fi
14627  # Now quote all the things that may contain metacharacters while being
14628  # careful not to overquote the AC_SUBSTed values.  We take copies of the
14629  # variables and quote the copies for generation of the libtool script.
14630  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14631    SED SHELL STRIP \
14632    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14633    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14634    deplibs_check_method reload_flag reload_cmds need_locks \
14635    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14636    lt_cv_sys_global_symbol_to_c_name_address \
14637    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14638    old_postinstall_cmds old_postuninstall_cmds \
14639    compiler_F77 \
14640    CC_F77 \
14641    LD_F77 \
14642    lt_prog_compiler_wl_F77 \
14643    lt_prog_compiler_pic_F77 \
14644    lt_prog_compiler_static_F77 \
14645    lt_prog_compiler_no_builtin_flag_F77 \
14646    export_dynamic_flag_spec_F77 \
14647    thread_safe_flag_spec_F77 \
14648    whole_archive_flag_spec_F77 \
14649    enable_shared_with_static_runtimes_F77 \
14650    old_archive_cmds_F77 \
14651    old_archive_from_new_cmds_F77 \
14652    predep_objects_F77 \
14653    postdep_objects_F77 \
14654    predeps_F77 \
14655    postdeps_F77 \
14656    compiler_lib_search_path_F77 \
14657    archive_cmds_F77 \
14658    archive_expsym_cmds_F77 \
14659    postinstall_cmds_F77 \
14660    postuninstall_cmds_F77 \
14661    old_archive_from_expsyms_cmds_F77 \
14662    allow_undefined_flag_F77 \
14663    no_undefined_flag_F77 \
14664    export_symbols_cmds_F77 \
14665    hardcode_libdir_flag_spec_F77 \
14666    hardcode_libdir_flag_spec_ld_F77 \
14667    hardcode_libdir_separator_F77 \
14668    hardcode_automatic_F77 \
14669    module_cmds_F77 \
14670    module_expsym_cmds_F77 \
14671    lt_cv_prog_compiler_c_o_F77 \
14672    exclude_expsyms_F77 \
14673    include_expsyms_F77; do
14674
14675    case $var in
14676    old_archive_cmds_F77 | \
14677    old_archive_from_new_cmds_F77 | \
14678    archive_cmds_F77 | \
14679    archive_expsym_cmds_F77 | \
14680    module_cmds_F77 | \
14681    module_expsym_cmds_F77 | \
14682    old_archive_from_expsyms_cmds_F77 | \
14683    export_symbols_cmds_F77 | \
14684    extract_expsyms_cmds | reload_cmds | finish_cmds | \
14685    postinstall_cmds | postuninstall_cmds | \
14686    old_postinstall_cmds | old_postuninstall_cmds | \
14687    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14688      # Double-quote double-evaled strings.
14689      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14690      ;;
14691    *)
14692      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14693      ;;
14694    esac
14695  done
14696
14697  case $lt_echo in
14698  *'\$0 --fallback-echo"')
14699    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14700    ;;
14701  esac
14702
14703cfgfile="$ofile"
14704
14705  cat <<__EOF__ >> "$cfgfile"
14706# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14707
14708# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14709
14710# Shell to use when invoking shell scripts.
14711SHELL=$lt_SHELL
14712
14713# Whether or not to build shared libraries.
14714build_libtool_libs=$enable_shared
14715
14716# Whether or not to build static libraries.
14717build_old_libs=$enable_static
14718
14719# Whether or not to add -lc for building shared libraries.
14720build_libtool_need_lc=$archive_cmds_need_lc_F77
14721
14722# Whether or not to disallow shared libs when runtime libs are static
14723allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14724
14725# Whether or not to optimize for fast installation.
14726fast_install=$enable_fast_install
14727
14728# The host system.
14729host_alias=$host_alias
14730host=$host
14731host_os=$host_os
14732
14733# The build system.
14734build_alias=$build_alias
14735build=$build
14736build_os=$build_os
14737
14738# An echo program that does not interpret backslashes.
14739echo=$lt_echo
14740
14741# The archiver.
14742AR=$lt_AR
14743AR_FLAGS=$lt_AR_FLAGS
14744
14745# A C compiler.
14746LTCC=$lt_LTCC
14747
14748# LTCC compiler flags.
14749LTCFLAGS=$lt_LTCFLAGS
14750
14751# A language-specific compiler.
14752CC=$lt_compiler_F77
14753
14754# Is the compiler the GNU C compiler?
14755with_gcc=$GCC_F77
14756
14757# An ERE matcher.
14758EGREP=$lt_EGREP
14759
14760# The linker used to build libraries.
14761LD=$lt_LD_F77
14762
14763# Whether we need hard or soft links.
14764LN_S=$lt_LN_S
14765
14766# A BSD-compatible nm program.
14767NM=$lt_NM
14768
14769# A symbol stripping program
14770STRIP=$lt_STRIP
14771
14772# Used to examine libraries when file_magic_cmd begins "file"
14773MAGIC_CMD=$MAGIC_CMD
14774
14775# Used on cygwin: DLL creation program.
14776DLLTOOL="$DLLTOOL"
14777
14778# Used on cygwin: object dumper.
14779OBJDUMP="$OBJDUMP"
14780
14781# Used on cygwin: assembler.
14782AS="$AS"
14783
14784# The name of the directory that contains temporary libtool files.
14785objdir=$objdir
14786
14787# How to create reloadable object files.
14788reload_flag=$lt_reload_flag
14789reload_cmds=$lt_reload_cmds
14790
14791# How to pass a linker flag through the compiler.
14792wl=$lt_lt_prog_compiler_wl_F77
14793
14794# Object file suffix (normally "o").
14795objext="$ac_objext"
14796
14797# Old archive suffix (normally "a").
14798libext="$libext"
14799
14800# Shared library suffix (normally ".so").
14801shrext_cmds='$shrext_cmds'
14802
14803# Executable file suffix (normally "").
14804exeext="$exeext"
14805
14806# Additional compiler flags for building library objects.
14807pic_flag=$lt_lt_prog_compiler_pic_F77
14808pic_mode=$pic_mode
14809
14810# What is the maximum length of a command?
14811max_cmd_len=$lt_cv_sys_max_cmd_len
14812
14813# Does compiler simultaneously support -c and -o options?
14814compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14815
14816# Must we lock files when doing compilation?
14817need_locks=$lt_need_locks
14818
14819# Do we need the lib prefix for modules?
14820need_lib_prefix=$need_lib_prefix
14821
14822# Do we need a version for libraries?
14823need_version=$need_version
14824
14825# Whether dlopen is supported.
14826dlopen_support=$enable_dlopen
14827
14828# Whether dlopen of programs is supported.
14829dlopen_self=$enable_dlopen_self
14830
14831# Whether dlopen of statically linked programs is supported.
14832dlopen_self_static=$enable_dlopen_self_static
14833
14834# Compiler flag to prevent dynamic linking.
14835link_static_flag=$lt_lt_prog_compiler_static_F77
14836
14837# Compiler flag to turn off builtin functions.
14838no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14839
14840# Compiler flag to allow reflexive dlopens.
14841export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14842
14843# Compiler flag to generate shared objects directly from archives.
14844whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14845
14846# Compiler flag to generate thread-safe objects.
14847thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14848
14849# Library versioning type.
14850version_type=$version_type
14851
14852# Format of library name prefix.
14853libname_spec=$lt_libname_spec
14854
14855# List of archive names.  First name is the real one, the rest are links.
14856# The last name is the one that the linker finds with -lNAME.
14857library_names_spec=$lt_library_names_spec
14858
14859# The coded name of the library, if different from the real name.
14860soname_spec=$lt_soname_spec
14861
14862# Commands used to build and install an old-style archive.
14863RANLIB=$lt_RANLIB
14864old_archive_cmds=$lt_old_archive_cmds_F77
14865old_postinstall_cmds=$lt_old_postinstall_cmds
14866old_postuninstall_cmds=$lt_old_postuninstall_cmds
14867
14868# Create an old-style archive from a shared archive.
14869old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14870
14871# Create a temporary old-style archive to link instead of a shared archive.
14872old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14873
14874# Commands used to build and install a shared archive.
14875archive_cmds=$lt_archive_cmds_F77
14876archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14877postinstall_cmds=$lt_postinstall_cmds
14878postuninstall_cmds=$lt_postuninstall_cmds
14879
14880# Commands used to build a loadable module (assumed same as above if empty)
14881module_cmds=$lt_module_cmds_F77
14882module_expsym_cmds=$lt_module_expsym_cmds_F77
14883
14884# Commands to strip libraries.
14885old_striplib=$lt_old_striplib
14886striplib=$lt_striplib
14887
14888# Dependencies to place before the objects being linked to create a
14889# shared library.
14890predep_objects=$lt_predep_objects_F77
14891
14892# Dependencies to place after the objects being linked to create a
14893# shared library.
14894postdep_objects=$lt_postdep_objects_F77
14895
14896# Dependencies to place before the objects being linked to create a
14897# shared library.
14898predeps=$lt_predeps_F77
14899
14900# Dependencies to place after the objects being linked to create a
14901# shared library.
14902postdeps=$lt_postdeps_F77
14903
14904# The library search path used internally by the compiler when linking
14905# a shared library.
14906compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14907
14908# Method to check whether dependent libraries are shared objects.
14909deplibs_check_method=$lt_deplibs_check_method
14910
14911# Command to use when deplibs_check_method == file_magic.
14912file_magic_cmd=$lt_file_magic_cmd
14913
14914# Flag that allows shared libraries with undefined symbols to be built.
14915allow_undefined_flag=$lt_allow_undefined_flag_F77
14916
14917# Flag that forces no undefined symbols.
14918no_undefined_flag=$lt_no_undefined_flag_F77
14919
14920# Commands used to finish a libtool library installation in a directory.
14921finish_cmds=$lt_finish_cmds
14922
14923# Same as above, but a single script fragment to be evaled but not shown.
14924finish_eval=$lt_finish_eval
14925
14926# Take the output of nm and produce a listing of raw symbols and C names.
14927global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14928
14929# Transform the output of nm in a proper C declaration
14930global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14931
14932# Transform the output of nm in a C name address pair
14933global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14934
14935# This is the shared library runtime path variable.
14936runpath_var=$runpath_var
14937
14938# This is the shared library path variable.
14939shlibpath_var=$shlibpath_var
14940
14941# Is shlibpath searched before the hard-coded library search path?
14942shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14943
14944# How to hardcode a shared library path into an executable.
14945hardcode_action=$hardcode_action_F77
14946
14947# Whether we should hardcode library paths into libraries.
14948hardcode_into_libs=$hardcode_into_libs
14949
14950# Flag to hardcode \$libdir into a binary during linking.
14951# This must work even if \$libdir does not exist.
14952hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14953
14954# If ld is used when linking, flag to hardcode \$libdir into
14955# a binary during linking. This must work even if \$libdir does
14956# not exist.
14957hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14958
14959# Whether we need a single -rpath flag with a separated argument.
14960hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14961
14962# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14963# resulting binary.
14964hardcode_direct=$hardcode_direct_F77
14965
14966# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14967# resulting binary.
14968hardcode_minus_L=$hardcode_minus_L_F77
14969
14970# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14971# the resulting binary.
14972hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14973
14974# Set to yes if building a shared library automatically hardcodes DIR into the library
14975# and all subsequent libraries and executables linked against it.
14976hardcode_automatic=$hardcode_automatic_F77
14977
14978# Variables whose values should be saved in libtool wrapper scripts and
14979# restored at relink time.
14980variables_saved_for_relink="$variables_saved_for_relink"
14981
14982# Whether libtool must link a program against all its dependency libraries.
14983link_all_deplibs=$link_all_deplibs_F77
14984
14985# Compile-time system search path for libraries
14986sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14987
14988# Run-time system search path for libraries
14989sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14990
14991# Fix the shell variable \$srcfile for the compiler.
14992fix_srcfile_path="$fix_srcfile_path_F77"
14993
14994# Set to yes if exported symbols are required.
14995always_export_symbols=$always_export_symbols_F77
14996
14997# The commands to list exported symbols.
14998export_symbols_cmds=$lt_export_symbols_cmds_F77
14999
15000# The commands to extract the exported symbol list from a shared archive.
15001extract_expsyms_cmds=$lt_extract_expsyms_cmds
15002
15003# Symbols that should not be listed in the preloaded symbols.
15004exclude_expsyms=$lt_exclude_expsyms_F77
15005
15006# Symbols that must always be exported.
15007include_expsyms=$lt_include_expsyms_F77
15008
15009# ### END LIBTOOL TAG CONFIG: $tagname
15010
15011__EOF__
15012
15013
15014else
15015  # If there is no Makefile yet, we rely on a make rule to execute
15016  # `config.status --recheck' to rerun these tests and create the
15017  # libtool script then.
15018  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15019  if test -f "$ltmain_in"; then
15020    test -f Makefile && make "$ltmain"
15021  fi
15022fi
15023
15024
15025ac_ext=c
15026ac_cpp='$CPP $CPPFLAGS'
15027ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15028ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15029ac_compiler_gnu=$ac_cv_c_compiler_gnu
15030
15031CC="$lt_save_CC"
15032
15033	else
15034	  tagname=""
15035	fi
15036	;;
15037
15038      GCJ)
15039	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15040
15041
15042
15043# Source file extension for Java test sources.
15044ac_ext=java
15045
15046# Object file extension for compiled Java test sources.
15047objext=o
15048objext_GCJ=$objext
15049
15050# Code to be used in simple compile tests
15051lt_simple_compile_test_code="class foo {}\n"
15052
15053# Code to be used in simple link tests
15054lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15055
15056# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15057
15058# If no C compiler was specified, use CC.
15059LTCC=${LTCC-"$CC"}
15060
15061# If no C compiler flags were specified, use CFLAGS.
15062LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15063
15064# Allow CC to be a program name with arguments.
15065compiler=$CC
15066
15067
15068# save warnings/boilerplate of simple test code
15069ac_outfile=conftest.$ac_objext
15070printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15071eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15072_lt_compiler_boilerplate=`cat conftest.err`
15073$rm conftest*
15074
15075ac_outfile=conftest.$ac_objext
15076printf "$lt_simple_link_test_code" >conftest.$ac_ext
15077eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15078_lt_linker_boilerplate=`cat conftest.err`
15079$rm conftest*
15080
15081
15082# Allow CC to be a program name with arguments.
15083lt_save_CC="$CC"
15084CC=${GCJ-"gcj"}
15085compiler=$CC
15086compiler_GCJ=$CC
15087for cc_temp in $compiler""; do
15088  case $cc_temp in
15089    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15090    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15091    \-*) ;;
15092    *) break;;
15093  esac
15094done
15095cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15096
15097
15098# GCJ did not exist at the time GCC didn't implicitly link libc in.
15099archive_cmds_need_lc_GCJ=no
15100
15101old_archive_cmds_GCJ=$old_archive_cmds
15102
15103
15104lt_prog_compiler_no_builtin_flag_GCJ=
15105
15106if test "$GCC" = yes; then
15107  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15108
15109
15110echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15111echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15112if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15113  echo $ECHO_N "(cached) $ECHO_C" >&6
15114else
15115  lt_cv_prog_compiler_rtti_exceptions=no
15116  ac_outfile=conftest.$ac_objext
15117   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15118   lt_compiler_flag="-fno-rtti -fno-exceptions"
15119   # Insert the option either (1) after the last *FLAGS variable, or
15120   # (2) before a word containing "conftest.", or (3) at the end.
15121   # Note that $ac_compile itself does not contain backslashes and begins
15122   # with a dollar sign (not a hyphen), so the echo should work correctly.
15123   # The option is referenced via a variable to avoid confusing sed.
15124   lt_compile=`echo "$ac_compile" | $SED \
15125   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15126   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15127   -e 's:$: $lt_compiler_flag:'`
15128   (eval echo "\"\$as_me:15128: $lt_compile\"" >&5)
15129   (eval "$lt_compile" 2>conftest.err)
15130   ac_status=$?
15131   cat conftest.err >&5
15132   echo "$as_me:15132: \$? = $ac_status" >&5
15133   if (exit $ac_status) && test -s "$ac_outfile"; then
15134     # The compiler can only warn and ignore the option if not recognized
15135     # So say no if there are warnings other than the usual output.
15136     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15137     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15138     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15139       lt_cv_prog_compiler_rtti_exceptions=yes
15140     fi
15141   fi
15142   $rm conftest*
15143
15144fi
15145echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15146echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15147
15148if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15149    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15150else
15151    :
15152fi
15153
15154fi
15155
15156lt_prog_compiler_wl_GCJ=
15157lt_prog_compiler_pic_GCJ=
15158lt_prog_compiler_static_GCJ=
15159
15160echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15161echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15162
15163  if test "$GCC" = yes; then
15164    lt_prog_compiler_wl_GCJ='-Wl,'
15165    lt_prog_compiler_static_GCJ='-static'
15166
15167    case $host_os in
15168      aix*)
15169      # All AIX code is PIC.
15170      if test "$host_cpu" = ia64; then
15171	# AIX 5 now supports IA64 processor
15172	lt_prog_compiler_static_GCJ='-Bstatic'
15173      fi
15174      ;;
15175
15176    amigaos*)
15177      # FIXME: we need at least 68020 code to build shared libraries, but
15178      # adding the `-m68020' flag to GCC prevents building anything better,
15179      # like `-m68040'.
15180      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15181      ;;
15182
15183    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15184      # PIC is the default for these OSes.
15185      ;;
15186
15187    mingw* | pw32* | os2*)
15188      # This hack is so that the source file can tell whether it is being
15189      # built for inclusion in a dll (and should export symbols for example).
15190      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15191      ;;
15192
15193    darwin* | rhapsody*)
15194      # PIC is the default on this platform
15195      # Common symbols not allowed in MH_DYLIB files
15196      lt_prog_compiler_pic_GCJ='-fno-common'
15197      ;;
15198
15199    interix3*)
15200      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15201      # Instead, we relocate shared libraries at runtime.
15202      ;;
15203
15204    msdosdjgpp*)
15205      # Just because we use GCC doesn't mean we suddenly get shared libraries
15206      # on systems that don't support them.
15207      lt_prog_compiler_can_build_shared_GCJ=no
15208      enable_shared=no
15209      ;;
15210
15211    sysv4*MP*)
15212      if test -d /usr/nec; then
15213	lt_prog_compiler_pic_GCJ=-Kconform_pic
15214      fi
15215      ;;
15216
15217    hpux*)
15218      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15219      # not for PA HP-UX.
15220      case $host_cpu in
15221      hppa*64*|ia64*)
15222	# +Z the default
15223	;;
15224      *)
15225	lt_prog_compiler_pic_GCJ='-fPIC'
15226	;;
15227      esac
15228      ;;
15229
15230    *)
15231      lt_prog_compiler_pic_GCJ='-fPIC'
15232      ;;
15233    esac
15234  else
15235    # PORTME Check for flag to pass linker flags through the system compiler.
15236    case $host_os in
15237    aix*)
15238      lt_prog_compiler_wl_GCJ='-Wl,'
15239      if test "$host_cpu" = ia64; then
15240	# AIX 5 now supports IA64 processor
15241	lt_prog_compiler_static_GCJ='-Bstatic'
15242      else
15243	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15244      fi
15245      ;;
15246      darwin*)
15247        # PIC is the default on this platform
15248        # Common symbols not allowed in MH_DYLIB files
15249       case $cc_basename in
15250         xlc*)
15251         lt_prog_compiler_pic_GCJ='-qnocommon'
15252         lt_prog_compiler_wl_GCJ='-Wl,'
15253         ;;
15254       esac
15255       ;;
15256
15257    mingw* | pw32* | os2*)
15258      # This hack is so that the source file can tell whether it is being
15259      # built for inclusion in a dll (and should export symbols for example).
15260      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15261      ;;
15262
15263    hpux9* | hpux10* | hpux11*)
15264      lt_prog_compiler_wl_GCJ='-Wl,'
15265      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15266      # not for PA HP-UX.
15267      case $host_cpu in
15268      hppa*64*|ia64*)
15269	# +Z the default
15270	;;
15271      *)
15272	lt_prog_compiler_pic_GCJ='+Z'
15273	;;
15274      esac
15275      # Is there a better lt_prog_compiler_static that works with the bundled CC?
15276      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15277      ;;
15278
15279    irix5* | irix6* | nonstopux*)
15280      lt_prog_compiler_wl_GCJ='-Wl,'
15281      # PIC (with -KPIC) is the default.
15282      lt_prog_compiler_static_GCJ='-non_shared'
15283      ;;
15284
15285    newsos6)
15286      lt_prog_compiler_pic_GCJ='-KPIC'
15287      lt_prog_compiler_static_GCJ='-Bstatic'
15288      ;;
15289
15290    linux* | k*bsd*-gnu)
15291      case $cc_basename in
15292      icc* | ecc*)
15293	lt_prog_compiler_wl_GCJ='-Wl,'
15294	lt_prog_compiler_pic_GCJ='-KPIC'
15295	lt_prog_compiler_static_GCJ='-static'
15296        ;;
15297      pgcc* | pgf77* | pgf90* | pgf95*)
15298        # Portland Group compilers (*not* the Pentium gcc compiler,
15299	# which looks to be a dead project)
15300	lt_prog_compiler_wl_GCJ='-Wl,'
15301	lt_prog_compiler_pic_GCJ='-fpic'
15302	lt_prog_compiler_static_GCJ='-Bstatic'
15303        ;;
15304      ccc*)
15305        lt_prog_compiler_wl_GCJ='-Wl,'
15306        # All Alpha code is PIC.
15307        lt_prog_compiler_static_GCJ='-non_shared'
15308        ;;
15309      esac
15310      ;;
15311
15312    osf3* | osf4* | osf5*)
15313      lt_prog_compiler_wl_GCJ='-Wl,'
15314      # All OSF/1 code is PIC.
15315      lt_prog_compiler_static_GCJ='-non_shared'
15316      ;;
15317
15318    solaris*)
15319      lt_prog_compiler_pic_GCJ='-KPIC'
15320      lt_prog_compiler_static_GCJ='-Bstatic'
15321      case $cc_basename in
15322      f77* | f90* | f95*)
15323	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
15324      *)
15325	lt_prog_compiler_wl_GCJ='-Wl,';;
15326      esac
15327      ;;
15328
15329    sunos4*)
15330      lt_prog_compiler_wl_GCJ='-Qoption ld '
15331      lt_prog_compiler_pic_GCJ='-PIC'
15332      lt_prog_compiler_static_GCJ='-Bstatic'
15333      ;;
15334
15335    sysv4 | sysv4.2uw2* | sysv4.3*)
15336      lt_prog_compiler_wl_GCJ='-Wl,'
15337      lt_prog_compiler_pic_GCJ='-KPIC'
15338      lt_prog_compiler_static_GCJ='-Bstatic'
15339      ;;
15340
15341    sysv4*MP*)
15342      if test -d /usr/nec ;then
15343	lt_prog_compiler_pic_GCJ='-Kconform_pic'
15344	lt_prog_compiler_static_GCJ='-Bstatic'
15345      fi
15346      ;;
15347
15348    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15349      lt_prog_compiler_wl_GCJ='-Wl,'
15350      lt_prog_compiler_pic_GCJ='-KPIC'
15351      lt_prog_compiler_static_GCJ='-Bstatic'
15352      ;;
15353
15354    unicos*)
15355      lt_prog_compiler_wl_GCJ='-Wl,'
15356      lt_prog_compiler_can_build_shared_GCJ=no
15357      ;;
15358
15359    uts4*)
15360      lt_prog_compiler_pic_GCJ='-pic'
15361      lt_prog_compiler_static_GCJ='-Bstatic'
15362      ;;
15363
15364    *)
15365      lt_prog_compiler_can_build_shared_GCJ=no
15366      ;;
15367    esac
15368  fi
15369
15370echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15371echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15372
15373#
15374# Check to make sure the PIC flag actually works.
15375#
15376if test -n "$lt_prog_compiler_pic_GCJ"; then
15377
15378echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15379echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15380if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15381  echo $ECHO_N "(cached) $ECHO_C" >&6
15382else
15383  lt_prog_compiler_pic_works_GCJ=no
15384  ac_outfile=conftest.$ac_objext
15385   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15386   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15387   # Insert the option either (1) after the last *FLAGS variable, or
15388   # (2) before a word containing "conftest.", or (3) at the end.
15389   # Note that $ac_compile itself does not contain backslashes and begins
15390   # with a dollar sign (not a hyphen), so the echo should work correctly.
15391   # The option is referenced via a variable to avoid confusing sed.
15392   lt_compile=`echo "$ac_compile" | $SED \
15393   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15394   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15395   -e 's:$: $lt_compiler_flag:'`
15396   (eval echo "\"\$as_me:15396: $lt_compile\"" >&5)
15397   (eval "$lt_compile" 2>conftest.err)
15398   ac_status=$?
15399   cat conftest.err >&5
15400   echo "$as_me:15400: \$? = $ac_status" >&5
15401   if (exit $ac_status) && test -s "$ac_outfile"; then
15402     # The compiler can only warn and ignore the option if not recognized
15403     # So say no if there are warnings other than the usual output.
15404     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15405     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15406     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15407       lt_prog_compiler_pic_works_GCJ=yes
15408     fi
15409   fi
15410   $rm conftest*
15411
15412fi
15413echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15414echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15415
15416if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15417    case $lt_prog_compiler_pic_GCJ in
15418     "" | " "*) ;;
15419     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15420     esac
15421else
15422    lt_prog_compiler_pic_GCJ=
15423     lt_prog_compiler_can_build_shared_GCJ=no
15424fi
15425
15426fi
15427case $host_os in
15428  # For platforms which do not support PIC, -DPIC is meaningless:
15429  *djgpp*)
15430    lt_prog_compiler_pic_GCJ=
15431    ;;
15432  *)
15433    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15434    ;;
15435esac
15436
15437#
15438# Check to make sure the static flag actually works.
15439#
15440wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
15441echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15442echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
15443if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
15444  echo $ECHO_N "(cached) $ECHO_C" >&6
15445else
15446  lt_prog_compiler_static_works_GCJ=no
15447   save_LDFLAGS="$LDFLAGS"
15448   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15449   printf "$lt_simple_link_test_code" > conftest.$ac_ext
15450   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15451     # The linker can only warn and ignore the option if not recognized
15452     # So say no if there are warnings
15453     if test -s conftest.err; then
15454       # Append any errors to the config.log.
15455       cat conftest.err 1>&5
15456       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15457       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15458       if diff conftest.exp conftest.er2 >/dev/null; then
15459         lt_prog_compiler_static_works_GCJ=yes
15460       fi
15461     else
15462       lt_prog_compiler_static_works_GCJ=yes
15463     fi
15464   fi
15465   $rm conftest*
15466   LDFLAGS="$save_LDFLAGS"
15467
15468fi
15469echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
15470echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
15471
15472if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
15473    :
15474else
15475    lt_prog_compiler_static_GCJ=
15476fi
15477
15478
15479echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15480echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15481if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15482  echo $ECHO_N "(cached) $ECHO_C" >&6
15483else
15484  lt_cv_prog_compiler_c_o_GCJ=no
15485   $rm -r conftest 2>/dev/null
15486   mkdir conftest
15487   cd conftest
15488   mkdir out
15489   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15490
15491   lt_compiler_flag="-o out/conftest2.$ac_objext"
15492   # Insert the option either (1) after the last *FLAGS variable, or
15493   # (2) before a word containing "conftest.", or (3) at the end.
15494   # Note that $ac_compile itself does not contain backslashes and begins
15495   # with a dollar sign (not a hyphen), so the echo should work correctly.
15496   lt_compile=`echo "$ac_compile" | $SED \
15497   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15498   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15499   -e 's:$: $lt_compiler_flag:'`
15500   (eval echo "\"\$as_me:15500: $lt_compile\"" >&5)
15501   (eval "$lt_compile" 2>out/conftest.err)
15502   ac_status=$?
15503   cat out/conftest.err >&5
15504   echo "$as_me:15504: \$? = $ac_status" >&5
15505   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15506   then
15507     # The compiler can only warn and ignore the option if not recognized
15508     # So say no if there are warnings
15509     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15510     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15511     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15512       lt_cv_prog_compiler_c_o_GCJ=yes
15513     fi
15514   fi
15515   chmod u+w . 2>&5
15516   $rm conftest*
15517   # SGI C++ compiler will create directory out/ii_files/ for
15518   # template instantiation
15519   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15520   $rm out/* && rmdir out
15521   cd ..
15522   rmdir conftest
15523   $rm conftest*
15524
15525fi
15526echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15527echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15528
15529
15530hard_links="nottested"
15531if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15532  # do not overwrite the value of need_locks provided by the user
15533  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15534echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15535  hard_links=yes
15536  $rm conftest*
15537  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15538  touch conftest.a
15539  ln conftest.a conftest.b 2>&5 || hard_links=no
15540  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15541  echo "$as_me:$LINENO: result: $hard_links" >&5
15542echo "${ECHO_T}$hard_links" >&6
15543  if test "$hard_links" = no; then
15544    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15545echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15546    need_locks=warn
15547  fi
15548else
15549  need_locks=no
15550fi
15551
15552echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15553echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15554
15555  runpath_var=
15556  allow_undefined_flag_GCJ=
15557  enable_shared_with_static_runtimes_GCJ=no
15558  archive_cmds_GCJ=
15559  archive_expsym_cmds_GCJ=
15560  old_archive_From_new_cmds_GCJ=
15561  old_archive_from_expsyms_cmds_GCJ=
15562  export_dynamic_flag_spec_GCJ=
15563  whole_archive_flag_spec_GCJ=
15564  thread_safe_flag_spec_GCJ=
15565  hardcode_libdir_flag_spec_GCJ=
15566  hardcode_libdir_flag_spec_ld_GCJ=
15567  hardcode_libdir_separator_GCJ=
15568  hardcode_direct_GCJ=no
15569  hardcode_minus_L_GCJ=no
15570  hardcode_shlibpath_var_GCJ=unsupported
15571  link_all_deplibs_GCJ=unknown
15572  hardcode_automatic_GCJ=no
15573  module_cmds_GCJ=
15574  module_expsym_cmds_GCJ=
15575  always_export_symbols_GCJ=no
15576  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15577  # include_expsyms should be a list of space-separated symbols to be *always*
15578  # included in the symbol list
15579  include_expsyms_GCJ=
15580  # exclude_expsyms can be an extended regexp of symbols to exclude
15581  # it will be wrapped by ` (' and `)$', so one must not match beginning or
15582  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15583  # as well as any symbol that contains `d'.
15584  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15585  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15586  # platforms (ab)use it in PIC code, but their linkers get confused if
15587  # the symbol is explicitly referenced.  Since portable code cannot
15588  # rely on this symbol name, it's probably fine to never include it in
15589  # preloaded symbol tables.
15590  extract_expsyms_cmds=
15591  # Just being paranoid about ensuring that cc_basename is set.
15592  for cc_temp in $compiler""; do
15593  case $cc_temp in
15594    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15595    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15596    \-*) ;;
15597    *) break;;
15598  esac
15599done
15600cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15601
15602  case $host_os in
15603  cygwin* | mingw* | pw32*)
15604    # FIXME: the MSVC++ port hasn't been tested in a loooong time
15605    # When not using gcc, we currently assume that we are using
15606    # Microsoft Visual C++.
15607    if test "$GCC" != yes; then
15608      with_gnu_ld=no
15609    fi
15610    ;;
15611  interix*)
15612    # we just hope/assume this is gcc and not c89 (= MSVC++)
15613    with_gnu_ld=yes
15614    ;;
15615  openbsd*)
15616    with_gnu_ld=no
15617    ;;
15618  esac
15619
15620  ld_shlibs_GCJ=yes
15621  if test "$with_gnu_ld" = yes; then
15622    # If archive_cmds runs LD, not CC, wlarc should be empty
15623    wlarc='${wl}'
15624
15625    # Set some defaults for GNU ld with shared library support. These
15626    # are reset later if shared libraries are not supported. Putting them
15627    # here allows them to be overridden if necessary.
15628    runpath_var=LD_RUN_PATH
15629    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15630    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15631    # ancient GNU ld didn't support --whole-archive et. al.
15632    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15633	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15634      else
15635  	whole_archive_flag_spec_GCJ=
15636    fi
15637    supports_anon_versioning=no
15638    case `$LD -v 2>/dev/null` in
15639      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15640      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15641      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15642      *\ 2.11.*) ;; # other 2.11 versions
15643      *) supports_anon_versioning=yes ;;
15644    esac
15645
15646    # See if GNU ld supports shared libraries.
15647    case $host_os in
15648    aix3* | aix4* | aix5*)
15649      # On AIX/PPC, the GNU linker is very broken
15650      if test "$host_cpu" != ia64; then
15651	ld_shlibs_GCJ=no
15652	cat <<EOF 1>&2
15653
15654*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15655*** to be unable to reliably create shared libraries on AIX.
15656*** Therefore, libtool is disabling shared libraries support.  If you
15657*** really care for shared libraries, you may want to modify your PATH
15658*** so that a non-GNU linker is found, and then restart.
15659
15660EOF
15661      fi
15662      ;;
15663
15664    amigaos*)
15665      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)'
15666      hardcode_libdir_flag_spec_GCJ='-L$libdir'
15667      hardcode_minus_L_GCJ=yes
15668
15669      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15670      # that the semantics of dynamic libraries on AmigaOS, at least up
15671      # to version 4, is to share data among multiple programs linked
15672      # with the same dynamic library.  Since this doesn't match the
15673      # behavior of shared libraries on other platforms, we can't use
15674      # them.
15675      ld_shlibs_GCJ=no
15676      ;;
15677
15678    beos*)
15679      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15680	allow_undefined_flag_GCJ=unsupported
15681	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15682	# support --undefined.  This deserves some investigation.  FIXME
15683	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15684      else
15685	ld_shlibs_GCJ=no
15686      fi
15687      ;;
15688
15689    cygwin* | mingw* | pw32*)
15690      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15691      # as there is no search path for DLLs.
15692      hardcode_libdir_flag_spec_GCJ='-L$libdir'
15693      allow_undefined_flag_GCJ=unsupported
15694      always_export_symbols_GCJ=no
15695      enable_shared_with_static_runtimes_GCJ=yes
15696      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15697
15698      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15699        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15700	# If the export-symbols file already is a .def file (1st line
15701	# is EXPORTS), use it as is; otherwise, prepend...
15702	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15703	  cp $export_symbols $output_objdir/$soname.def;
15704	else
15705	  echo EXPORTS > $output_objdir/$soname.def;
15706	  cat $export_symbols >> $output_objdir/$soname.def;
15707	fi~
15708	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15709      else
15710	ld_shlibs_GCJ=no
15711      fi
15712      ;;
15713
15714    interix3*)
15715      hardcode_direct_GCJ=no
15716      hardcode_shlibpath_var_GCJ=no
15717      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15718      export_dynamic_flag_spec_GCJ='${wl}-E'
15719      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15720      # Instead, shared libraries are loaded at an image base (0x10000000 by
15721      # default) and relocated if they conflict, which is a slow very memory
15722      # consuming and fragmenting process.  To avoid this, we pick a random,
15723      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15724      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15725      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'
15726      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'
15727      ;;
15728
15729    linux* | k*bsd*-gnu)
15730      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15731	tmp_addflag=
15732	case $cc_basename,$host_cpu in
15733	pgcc*)				# Portland Group C compiler
15734	  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'
15735	  tmp_addflag=' $pic_flag'
15736	  ;;
15737	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
15738	  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'
15739	  tmp_addflag=' $pic_flag -Mnomain' ;;
15740	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
15741	  tmp_addflag=' -i_dynamic' ;;
15742	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
15743	  tmp_addflag=' -i_dynamic -nofor_main' ;;
15744	ifc* | ifort*)			# Intel Fortran compiler
15745	  tmp_addflag=' -nofor_main' ;;
15746	esac
15747	archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15748
15749	if test $supports_anon_versioning = yes; then
15750	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
15751  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15752  $echo "local: *; };" >> $output_objdir/$libname.ver~
15753	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15754	fi
15755	link_all_deplibs_GCJ=no
15756      else
15757	ld_shlibs_GCJ=no
15758      fi
15759      ;;
15760
15761    netbsd* | netbsdelf*-gnu)
15762      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15763	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15764	wlarc=
15765      else
15766	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15767	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15768      fi
15769      ;;
15770
15771    solaris*)
15772      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15773	ld_shlibs_GCJ=no
15774	cat <<EOF 1>&2
15775
15776*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15777*** create shared libraries on Solaris systems.  Therefore, libtool
15778*** is disabling shared libraries support.  We urge you to upgrade GNU
15779*** binutils to release 2.9.1 or newer.  Another option is to modify
15780*** your PATH or compiler configuration so that the native linker is
15781*** used, and then restart.
15782
15783EOF
15784      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15785	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15786	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15787      else
15788	ld_shlibs_GCJ=no
15789      fi
15790      ;;
15791
15792    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15793      case `$LD -v 2>&1` in
15794        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15795	ld_shlibs_GCJ=no
15796	cat <<_LT_EOF 1>&2
15797
15798*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15799*** reliably create shared libraries on SCO systems.  Therefore, libtool
15800*** is disabling shared libraries support.  We urge you to upgrade GNU
15801*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15802*** your PATH or compiler configuration so that the native linker is
15803*** used, and then restart.
15804
15805_LT_EOF
15806	;;
15807	*)
15808	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15809	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15810	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15811	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15812	  else
15813	    ld_shlibs_GCJ=no
15814	  fi
15815	;;
15816      esac
15817      ;;
15818
15819    sunos4*)
15820      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15821      wlarc=
15822      hardcode_direct_GCJ=yes
15823      hardcode_shlibpath_var_GCJ=no
15824      ;;
15825
15826    *)
15827      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15828	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15829	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15830      else
15831	ld_shlibs_GCJ=no
15832      fi
15833      ;;
15834    esac
15835
15836    if test "$ld_shlibs_GCJ" = no; then
15837      runpath_var=
15838      hardcode_libdir_flag_spec_GCJ=
15839      export_dynamic_flag_spec_GCJ=
15840      whole_archive_flag_spec_GCJ=
15841    fi
15842  else
15843    # PORTME fill in a description of your system's linker (not GNU ld)
15844    case $host_os in
15845    aix3*)
15846      allow_undefined_flag_GCJ=unsupported
15847      always_export_symbols_GCJ=yes
15848      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'
15849      # Note: this linker hardcodes the directories in LIBPATH if there
15850      # are no directories specified by -L.
15851      hardcode_minus_L_GCJ=yes
15852      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15853	# Neither direct hardcoding nor static linking is supported with a
15854	# broken collect2.
15855	hardcode_direct_GCJ=unsupported
15856      fi
15857      ;;
15858
15859    aix4* | aix5*)
15860      if test "$host_cpu" = ia64; then
15861	# On IA64, the linker does run time linking by default, so we don't
15862	# have to do anything special.
15863	aix_use_runtimelinking=no
15864	exp_sym_flag='-Bexport'
15865	no_entry_flag=""
15866      else
15867	# If we're using GNU nm, then we don't want the "-C" option.
15868	# -C means demangle to AIX nm, but means don't demangle with GNU nm
15869	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15870	  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'
15871	else
15872	  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'
15873	fi
15874	aix_use_runtimelinking=no
15875
15876	# Test if we are trying to use run time linking or normal
15877	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
15878	# need to do runtime linking.
15879	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15880	  for ld_flag in $LDFLAGS; do
15881  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15882  	    aix_use_runtimelinking=yes
15883  	    break
15884  	  fi
15885	  done
15886	  ;;
15887	esac
15888
15889	exp_sym_flag='-bexport'
15890	no_entry_flag='-bnoentry'
15891      fi
15892
15893      # When large executables or shared objects are built, AIX ld can
15894      # have problems creating the table of contents.  If linking a library
15895      # or program results in "error TOC overflow" add -mminimal-toc to
15896      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15897      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15898
15899      archive_cmds_GCJ=''
15900      hardcode_direct_GCJ=yes
15901      hardcode_libdir_separator_GCJ=':'
15902      link_all_deplibs_GCJ=yes
15903
15904      if test "$GCC" = yes; then
15905	case $host_os in aix4.[012]|aix4.[012].*)
15906	# We only want to do this on AIX 4.2 and lower, the check
15907	# below for broken collect2 doesn't work under 4.3+
15908	  collect2name=`${CC} -print-prog-name=collect2`
15909	  if test -f "$collect2name" && \
15910  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
15911	  then
15912  	  # We have reworked collect2
15913  	  hardcode_direct_GCJ=yes
15914	  else
15915  	  # We have old collect2
15916  	  hardcode_direct_GCJ=unsupported
15917  	  # It fails to find uninstalled libraries when the uninstalled
15918  	  # path is not listed in the libpath.  Setting hardcode_minus_L
15919  	  # to unsupported forces relinking
15920  	  hardcode_minus_L_GCJ=yes
15921  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
15922  	  hardcode_libdir_separator_GCJ=
15923	  fi
15924	  ;;
15925	esac
15926	shared_flag='-shared'
15927	if test "$aix_use_runtimelinking" = yes; then
15928	  shared_flag="$shared_flag "'${wl}-G'
15929	fi
15930      else
15931	# not using gcc
15932	if test "$host_cpu" = ia64; then
15933  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15934  	# chokes on -Wl,-G. The following line is correct:
15935	  shared_flag='-G'
15936	else
15937	  if test "$aix_use_runtimelinking" = yes; then
15938	    shared_flag='${wl}-G'
15939	  else
15940	    shared_flag='${wl}-bM:SRE'
15941	  fi
15942	fi
15943      fi
15944
15945      # It seems that -bexpall does not export symbols beginning with
15946      # underscore (_), so it is better to generate a list of symbols to export.
15947      always_export_symbols_GCJ=yes
15948      if test "$aix_use_runtimelinking" = yes; then
15949	# Warning - without using the other runtime loading flags (-brtl),
15950	# -berok will link without error, but may produce a broken library.
15951	allow_undefined_flag_GCJ='-berok'
15952       # Determine the default libpath from the value encoded in an empty executable.
15953       cat >conftest.$ac_ext <<_ACEOF
15954/* confdefs.h.  */
15955_ACEOF
15956cat confdefs.h >>conftest.$ac_ext
15957cat >>conftest.$ac_ext <<_ACEOF
15958/* end confdefs.h.  */
15959
15960int
15961main ()
15962{
15963
15964  ;
15965  return 0;
15966}
15967_ACEOF
15968rm -f conftest.$ac_objext conftest$ac_exeext
15969if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15970  (eval $ac_link) 2>conftest.er1
15971  ac_status=$?
15972  grep -v '^ *+' conftest.er1 >conftest.err
15973  rm -f conftest.er1
15974  cat conftest.err >&5
15975  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15976  (exit $ac_status); } &&
15977	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
15978  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15979  (eval $ac_try) 2>&5
15980  ac_status=$?
15981  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15982  (exit $ac_status); }; } &&
15983	 { ac_try='test -s conftest$ac_exeext'
15984  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15985  (eval $ac_try) 2>&5
15986  ac_status=$?
15987  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15988  (exit $ac_status); }; }; then
15989
15990aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15991}'`
15992# Check for a 64-bit object if we didn't find anything.
15993if 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; }
15994}'`; fi
15995else
15996  echo "$as_me: failed program was:" >&5
15997sed 's/^/| /' conftest.$ac_ext >&5
15998
15999fi
16000rm -f conftest.err conftest.$ac_objext \
16001      conftest$ac_exeext conftest.$ac_ext
16002if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16003
16004       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16005	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"
16006       else
16007	if test "$host_cpu" = ia64; then
16008	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16009	  allow_undefined_flag_GCJ="-z nodefs"
16010	  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"
16011	else
16012	 # Determine the default libpath from the value encoded in an empty executable.
16013	 cat >conftest.$ac_ext <<_ACEOF
16014/* confdefs.h.  */
16015_ACEOF
16016cat confdefs.h >>conftest.$ac_ext
16017cat >>conftest.$ac_ext <<_ACEOF
16018/* end confdefs.h.  */
16019
16020int
16021main ()
16022{
16023
16024  ;
16025  return 0;
16026}
16027_ACEOF
16028rm -f conftest.$ac_objext conftest$ac_exeext
16029if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16030  (eval $ac_link) 2>conftest.er1
16031  ac_status=$?
16032  grep -v '^ *+' conftest.er1 >conftest.err
16033  rm -f conftest.er1
16034  cat conftest.err >&5
16035  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16036  (exit $ac_status); } &&
16037	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
16038  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16039  (eval $ac_try) 2>&5
16040  ac_status=$?
16041  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16042  (exit $ac_status); }; } &&
16043	 { ac_try='test -s conftest$ac_exeext'
16044  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16045  (eval $ac_try) 2>&5
16046  ac_status=$?
16047  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16048  (exit $ac_status); }; }; then
16049
16050aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16051}'`
16052# Check for a 64-bit object if we didn't find anything.
16053if 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; }
16054}'`; fi
16055else
16056  echo "$as_me: failed program was:" >&5
16057sed 's/^/| /' conftest.$ac_ext >&5
16058
16059fi
16060rm -f conftest.err conftest.$ac_objext \
16061      conftest$ac_exeext conftest.$ac_ext
16062if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16063
16064	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16065	  # Warning - without using the other run time loading flags,
16066	  # -berok will link without error, but may produce a broken library.
16067	  no_undefined_flag_GCJ=' ${wl}-bernotok'
16068	  allow_undefined_flag_GCJ=' ${wl}-berok'
16069	  # Exported symbols can be pulled into shared objects from archives
16070	  whole_archive_flag_spec_GCJ='$convenience'
16071	  archive_cmds_need_lc_GCJ=yes
16072	  # This is similar to how AIX traditionally builds its shared libraries.
16073	  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'
16074	fi
16075      fi
16076      ;;
16077
16078    amigaos*)
16079      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)'
16080      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16081      hardcode_minus_L_GCJ=yes
16082      # see comment about different semantics on the GNU ld section
16083      ld_shlibs_GCJ=no
16084      ;;
16085
16086    bsdi[45]*)
16087      export_dynamic_flag_spec_GCJ=-rdynamic
16088      ;;
16089
16090    cygwin* | mingw* | pw32*)
16091      # When not using gcc, we currently assume that we are using
16092      # Microsoft Visual C++.
16093      # hardcode_libdir_flag_spec is actually meaningless, as there is
16094      # no search path for DLLs.
16095      hardcode_libdir_flag_spec_GCJ=' '
16096      allow_undefined_flag_GCJ=unsupported
16097      # Tell ltmain to make .lib files, not .a files.
16098      libext=lib
16099      # Tell ltmain to make .dll files, not .so files.
16100      shrext_cmds=".dll"
16101      # FIXME: Setting linknames here is a bad hack.
16102      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16103      # The linker will automatically build a .lib file if we build a DLL.
16104      old_archive_From_new_cmds_GCJ='true'
16105      # FIXME: Should let the user specify the lib program.
16106      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16107      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16108      enable_shared_with_static_runtimes_GCJ=yes
16109      ;;
16110
16111    darwin* | rhapsody*)
16112      case $host_os in
16113        rhapsody* | darwin1.[012])
16114         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16115         ;;
16116       *) # Darwin 1.3 on
16117         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16118           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16119         else
16120           case ${MACOSX_DEPLOYMENT_TARGET} in
16121             10.[012])
16122               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16123               ;;
16124             10.*)
16125               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16126               ;;
16127           esac
16128         fi
16129         ;;
16130      esac
16131      archive_cmds_need_lc_GCJ=no
16132      hardcode_direct_GCJ=no
16133      hardcode_automatic_GCJ=yes
16134      hardcode_shlibpath_var_GCJ=unsupported
16135      whole_archive_flag_spec_GCJ=''
16136      link_all_deplibs_GCJ=yes
16137    if test "$GCC" = yes ; then
16138    	output_verbose_link_cmd='echo'
16139        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16140      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16141      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16142      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}'
16143      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}'
16144    else
16145      case $cc_basename in
16146        xlc*)
16147         output_verbose_link_cmd='echo'
16148         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16149         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16150          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16151         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}'
16152          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}'
16153          ;;
16154       *)
16155         ld_shlibs_GCJ=no
16156          ;;
16157      esac
16158    fi
16159      ;;
16160
16161    dgux*)
16162      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16163      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16164      hardcode_shlibpath_var_GCJ=no
16165      ;;
16166
16167    freebsd1*)
16168      ld_shlibs_GCJ=no
16169      ;;
16170
16171    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16172    # support.  Future versions do this automatically, but an explicit c++rt0.o
16173    # does not break anything, and helps significantly (at the cost of a little
16174    # extra space).
16175    freebsd2.2*)
16176      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16177      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16178      hardcode_direct_GCJ=yes
16179      hardcode_shlibpath_var_GCJ=no
16180      ;;
16181
16182    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16183    freebsd2*)
16184      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16185      hardcode_direct_GCJ=yes
16186      hardcode_minus_L_GCJ=yes
16187      hardcode_shlibpath_var_GCJ=no
16188      ;;
16189
16190    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16191    freebsd* | dragonfly*)
16192      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16193      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16194      hardcode_direct_GCJ=yes
16195      hardcode_shlibpath_var_GCJ=no
16196      ;;
16197
16198    hpux9*)
16199      if test "$GCC" = yes; then
16200	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'
16201      else
16202	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'
16203      fi
16204      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16205      hardcode_libdir_separator_GCJ=:
16206      hardcode_direct_GCJ=yes
16207
16208      # hardcode_minus_L: Not really in the search PATH,
16209      # but as the default location of the library.
16210      hardcode_minus_L_GCJ=yes
16211      export_dynamic_flag_spec_GCJ='${wl}-E'
16212      ;;
16213
16214    hpux10*)
16215      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16216	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16217      else
16218	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16219      fi
16220      if test "$with_gnu_ld" = no; then
16221	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16222	hardcode_libdir_separator_GCJ=:
16223
16224	hardcode_direct_GCJ=yes
16225	export_dynamic_flag_spec_GCJ='${wl}-E'
16226
16227	# hardcode_minus_L: Not really in the search PATH,
16228	# but as the default location of the library.
16229	hardcode_minus_L_GCJ=yes
16230      fi
16231      ;;
16232
16233    hpux11*)
16234      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16235	case $host_cpu in
16236	hppa*64*)
16237	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16238	  ;;
16239	ia64*)
16240	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16241	  ;;
16242	*)
16243	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16244	  ;;
16245	esac
16246      else
16247	case $host_cpu in
16248	hppa*64*)
16249	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16250	  ;;
16251	ia64*)
16252	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16253	  ;;
16254	*)
16255	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16256	  ;;
16257	esac
16258      fi
16259      if test "$with_gnu_ld" = no; then
16260	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16261	hardcode_libdir_separator_GCJ=:
16262
16263	case $host_cpu in
16264	hppa*64*|ia64*)
16265	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16266	  hardcode_direct_GCJ=no
16267	  hardcode_shlibpath_var_GCJ=no
16268	  ;;
16269	*)
16270	  hardcode_direct_GCJ=yes
16271	  export_dynamic_flag_spec_GCJ='${wl}-E'
16272
16273	  # hardcode_minus_L: Not really in the search PATH,
16274	  # but as the default location of the library.
16275	  hardcode_minus_L_GCJ=yes
16276	  ;;
16277	esac
16278      fi
16279      ;;
16280
16281    irix5* | irix6* | nonstopux*)
16282      if test "$GCC" = yes; then
16283	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'
16284      else
16285	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'
16286	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16287      fi
16288      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16289      hardcode_libdir_separator_GCJ=:
16290      link_all_deplibs_GCJ=yes
16291      ;;
16292
16293    netbsd* | netbsdelf*-gnu)
16294      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16295	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16296      else
16297	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16298      fi
16299      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16300      hardcode_direct_GCJ=yes
16301      hardcode_shlibpath_var_GCJ=no
16302      ;;
16303
16304    newsos6)
16305      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16306      hardcode_direct_GCJ=yes
16307      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16308      hardcode_libdir_separator_GCJ=:
16309      hardcode_shlibpath_var_GCJ=no
16310      ;;
16311
16312    openbsd*)
16313      hardcode_direct_GCJ=yes
16314      hardcode_shlibpath_var_GCJ=no
16315      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16316	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16317	archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16318	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16319	export_dynamic_flag_spec_GCJ='${wl}-E'
16320      else
16321       case $host_os in
16322	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16323	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16324	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
16325	   ;;
16326	 *)
16327	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16328	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16329	   ;;
16330       esac
16331      fi
16332      ;;
16333
16334    os2*)
16335      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16336      hardcode_minus_L_GCJ=yes
16337      allow_undefined_flag_GCJ=unsupported
16338      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'
16339      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16340      ;;
16341
16342    osf3*)
16343      if test "$GCC" = yes; then
16344	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16345	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'
16346      else
16347	allow_undefined_flag_GCJ=' -expect_unresolved \*'
16348	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'
16349      fi
16350      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16351      hardcode_libdir_separator_GCJ=:
16352      ;;
16353
16354    osf4* | osf5*)	# as osf3* with the addition of -msym flag
16355      if test "$GCC" = yes; then
16356	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16357	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'
16358	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16359      else
16360	allow_undefined_flag_GCJ=' -expect_unresolved \*'
16361	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'
16362	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~
16363	$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'
16364
16365	# Both c and cxx compiler support -rpath directly
16366	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16367      fi
16368      hardcode_libdir_separator_GCJ=:
16369      ;;
16370
16371    solaris*)
16372      no_undefined_flag_GCJ=' -z text'
16373      if test "$GCC" = yes; then
16374	wlarc='${wl}'
16375	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16376	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16377	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16378      else
16379	wlarc=''
16380	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16381	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16382  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16383      fi
16384      hardcode_libdir_flag_spec_GCJ='-R$libdir'
16385      hardcode_shlibpath_var_GCJ=no
16386      case $host_os in
16387      solaris2.[0-5] | solaris2.[0-5].*) ;;
16388      *)
16389 	# The compiler driver will combine linker options so we
16390 	# cannot just pass the convience library names through
16391 	# without $wl, iff we do not link with $LD.
16392 	# Luckily, gcc supports the same syntax we need for Sun Studio.
16393 	# Supported since Solaris 2.6 (maybe 2.5.1?)
16394 	case $wlarc in
16395 	'')
16396 	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16397 	*)
16398 	  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' ;;
16399 	esac ;;
16400      esac
16401      link_all_deplibs_GCJ=yes
16402      ;;
16403
16404    sunos4*)
16405      if test "x$host_vendor" = xsequent; then
16406	# Use $CC to link under sequent, because it throws in some extra .o
16407	# files that make .init and .fini sections work.
16408	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16409      else
16410	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16411      fi
16412      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16413      hardcode_direct_GCJ=yes
16414      hardcode_minus_L_GCJ=yes
16415      hardcode_shlibpath_var_GCJ=no
16416      ;;
16417
16418    sysv4)
16419      case $host_vendor in
16420	sni)
16421	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16422	  hardcode_direct_GCJ=yes # is this really true???
16423	;;
16424	siemens)
16425	  ## LD is ld it makes a PLAMLIB
16426	  ## CC just makes a GrossModule.
16427	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16428	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16429	  hardcode_direct_GCJ=no
16430        ;;
16431	motorola)
16432	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16433	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16434	;;
16435      esac
16436      runpath_var='LD_RUN_PATH'
16437      hardcode_shlibpath_var_GCJ=no
16438      ;;
16439
16440    sysv4.3*)
16441      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16442      hardcode_shlibpath_var_GCJ=no
16443      export_dynamic_flag_spec_GCJ='-Bexport'
16444      ;;
16445
16446    sysv4*MP*)
16447      if test -d /usr/nec; then
16448	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16449	hardcode_shlibpath_var_GCJ=no
16450	runpath_var=LD_RUN_PATH
16451	hardcode_runpath_var=yes
16452	ld_shlibs_GCJ=yes
16453      fi
16454      ;;
16455
16456    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16457      no_undefined_flag_GCJ='${wl}-z,text'
16458      archive_cmds_need_lc_GCJ=no
16459      hardcode_shlibpath_var_GCJ=no
16460      runpath_var='LD_RUN_PATH'
16461
16462      if test "$GCC" = yes; then
16463	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16464	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16465      else
16466	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16467	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16468      fi
16469      ;;
16470
16471    sysv5* | sco3.2v5* | sco5v6*)
16472      # Note: We can NOT use -z defs as we might desire, because we do not
16473      # link with -lc, and that would cause any symbols used from libc to
16474      # always be unresolved, which means just about no library would
16475      # ever link correctly.  If we're not using GNU ld we use -z text
16476      # though, which does catch some bad symbols but isn't as heavy-handed
16477      # as -z defs.
16478      no_undefined_flag_GCJ='${wl}-z,text'
16479      allow_undefined_flag_GCJ='${wl}-z,nodefs'
16480      archive_cmds_need_lc_GCJ=no
16481      hardcode_shlibpath_var_GCJ=no
16482      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16483      hardcode_libdir_separator_GCJ=':'
16484      link_all_deplibs_GCJ=yes
16485      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16486      runpath_var='LD_RUN_PATH'
16487
16488      if test "$GCC" = yes; then
16489	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16490	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16491      else
16492	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16493	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16494      fi
16495      ;;
16496
16497    uts4*)
16498      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16499      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16500      hardcode_shlibpath_var_GCJ=no
16501      ;;
16502
16503    *)
16504      ld_shlibs_GCJ=no
16505      ;;
16506    esac
16507  fi
16508
16509echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16510echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16511test "$ld_shlibs_GCJ" = no && can_build_shared=no
16512
16513#
16514# Do we need to explicitly link libc?
16515#
16516case "x$archive_cmds_need_lc_GCJ" in
16517x|xyes)
16518  # Assume -lc should be added
16519  archive_cmds_need_lc_GCJ=yes
16520
16521  if test "$enable_shared" = yes && test "$GCC" = yes; then
16522    case $archive_cmds_GCJ in
16523    *'~'*)
16524      # FIXME: we may have to deal with multi-command sequences.
16525      ;;
16526    '$CC '*)
16527      # Test whether the compiler implicitly links with -lc since on some
16528      # systems, -lgcc has to come before -lc. If gcc already passes -lc
16529      # to ld, don't add -lc before -lgcc.
16530      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16531echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16532      $rm conftest*
16533      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16534
16535      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16536  (eval $ac_compile) 2>&5
16537  ac_status=$?
16538  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16539  (exit $ac_status); } 2>conftest.err; then
16540        soname=conftest
16541        lib=conftest
16542        libobjs=conftest.$ac_objext
16543        deplibs=
16544        wl=$lt_prog_compiler_wl_GCJ
16545	pic_flag=$lt_prog_compiler_pic_GCJ
16546        compiler_flags=-v
16547        linker_flags=-v
16548        verstring=
16549        output_objdir=.
16550        libname=conftest
16551        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16552        allow_undefined_flag_GCJ=
16553        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16554  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16555  ac_status=$?
16556  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16557  (exit $ac_status); }
16558        then
16559	  archive_cmds_need_lc_GCJ=no
16560        else
16561	  archive_cmds_need_lc_GCJ=yes
16562        fi
16563        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16564      else
16565        cat conftest.err 1>&5
16566      fi
16567      $rm conftest*
16568      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16569echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16570      ;;
16571    esac
16572  fi
16573  ;;
16574esac
16575
16576echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16577echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16578library_names_spec=
16579libname_spec='lib$name'
16580soname_spec=
16581shrext_cmds=".so"
16582postinstall_cmds=
16583postuninstall_cmds=
16584finish_cmds=
16585finish_eval=
16586shlibpath_var=
16587shlibpath_overrides_runpath=unknown
16588version_type=none
16589dynamic_linker="$host_os ld.so"
16590sys_lib_dlsearch_path_spec="/lib /usr/lib"
16591if test "$GCC" = yes; then
16592  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16593  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16594    # if the path contains ";" then we assume it to be the separator
16595    # otherwise default to the standard path separator (i.e. ":") - it is
16596    # assumed that no part of a normal pathname contains ";" but that should
16597    # okay in the real world where ";" in dirpaths is itself problematic.
16598    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16599  else
16600    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16601  fi
16602else
16603  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16604fi
16605need_lib_prefix=unknown
16606hardcode_into_libs=no
16607
16608# when you set need_version to no, make sure it does not cause -set_version
16609# flags to be left without arguments
16610need_version=unknown
16611
16612case $host_os in
16613aix3*)
16614  version_type=linux
16615  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16616  shlibpath_var=LIBPATH
16617
16618  # AIX 3 has no versioning support, so we append a major version to the name.
16619  soname_spec='${libname}${release}${shared_ext}$major'
16620  ;;
16621
16622aix4* | aix5*)
16623  version_type=linux
16624  need_lib_prefix=no
16625  need_version=no
16626  hardcode_into_libs=yes
16627  if test "$host_cpu" = ia64; then
16628    # AIX 5 supports IA64
16629    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16630    shlibpath_var=LD_LIBRARY_PATH
16631  else
16632    # With GCC up to 2.95.x, collect2 would create an import file
16633    # for dependence libraries.  The import file would start with
16634    # the line `#! .'.  This would cause the generated library to
16635    # depend on `.', always an invalid library.  This was fixed in
16636    # development snapshots of GCC prior to 3.0.
16637    case $host_os in
16638      aix4 | aix4.[01] | aix4.[01].*)
16639      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16640	   echo ' yes '
16641	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16642	:
16643      else
16644	can_build_shared=no
16645      fi
16646      ;;
16647    esac
16648    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16649    # soname into executable. Probably we can add versioning support to
16650    # collect2, so additional links can be useful in future.
16651    if test "$aix_use_runtimelinking" = yes; then
16652      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16653      # instead of lib<name>.a to let people know that these are not
16654      # typical AIX shared libraries.
16655      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16656    else
16657      # We preserve .a as extension for shared libraries through AIX4.2
16658      # and later when we are not doing run time linking.
16659      library_names_spec='${libname}${release}.a $libname.a'
16660      soname_spec='${libname}${release}${shared_ext}$major'
16661    fi
16662    shlibpath_var=LIBPATH
16663  fi
16664  ;;
16665
16666amigaos*)
16667  library_names_spec='$libname.ixlibrary $libname.a'
16668  # Create ${libname}_ixlibrary.a entries in /sys/libs.
16669  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'
16670  ;;
16671
16672beos*)
16673  library_names_spec='${libname}${shared_ext}'
16674  dynamic_linker="$host_os ld.so"
16675  shlibpath_var=LIBRARY_PATH
16676  ;;
16677
16678bsdi[45]*)
16679  version_type=linux
16680  need_version=no
16681  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16682  soname_spec='${libname}${release}${shared_ext}$major'
16683  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16684  shlibpath_var=LD_LIBRARY_PATH
16685  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16686  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16687  # the default ld.so.conf also contains /usr/contrib/lib and
16688  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16689  # libtool to hard-code these into programs
16690  ;;
16691
16692cygwin* | mingw* | pw32*)
16693  version_type=windows
16694  shrext_cmds=".dll"
16695  need_version=no
16696  need_lib_prefix=no
16697
16698  case $GCC,$host_os in
16699  yes,cygwin* | yes,mingw* | yes,pw32*)
16700    library_names_spec='$libname.dll.a'
16701    # DLL is installed to $(libdir)/../bin by postinstall_cmds
16702    postinstall_cmds='base_file=`basename \${file}`~
16703      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16704      dldir=$destdir/`dirname \$dlpath`~
16705      test -d \$dldir || mkdir -p \$dldir~
16706      $install_prog $dir/$dlname \$dldir/$dlname~
16707      chmod a+x \$dldir/$dlname'
16708    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16709      dlpath=$dir/\$dldll~
16710       $rm \$dlpath'
16711    shlibpath_overrides_runpath=yes
16712
16713    case $host_os in
16714    cygwin*)
16715      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16716      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16717      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16718      ;;
16719    mingw*)
16720      # MinGW DLLs use traditional 'lib' prefix
16721      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16722      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16723      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16724        # It is most probably a Windows format PATH printed by
16725        # mingw gcc, but we are running on Cygwin. Gcc prints its search
16726        # path with ; separators, and with drive letters. We can handle the
16727        # drive letters (cygwin fileutils understands them), so leave them,
16728        # especially as we might pass files found there to a mingw objdump,
16729        # which wouldn't understand a cygwinified path. Ahh.
16730        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16731      else
16732        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16733      fi
16734      ;;
16735    pw32*)
16736      # pw32 DLLs use 'pw' prefix rather than 'lib'
16737      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16738      ;;
16739    esac
16740    ;;
16741
16742  *)
16743    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16744    ;;
16745  esac
16746  dynamic_linker='Win32 ld.exe'
16747  # FIXME: first we should search . and the directory the executable is in
16748  shlibpath_var=PATH
16749  ;;
16750
16751darwin* | rhapsody*)
16752  dynamic_linker="$host_os dyld"
16753  version_type=darwin
16754  need_lib_prefix=no
16755  need_version=no
16756  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16757  soname_spec='${libname}${release}${major}$shared_ext'
16758  shlibpath_overrides_runpath=yes
16759  shlibpath_var=DYLD_LIBRARY_PATH
16760  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16761  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16762  if test "$GCC" = yes; then
16763    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"`
16764  else
16765    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16766  fi
16767  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16768  ;;
16769
16770dgux*)
16771  version_type=linux
16772  need_lib_prefix=no
16773  need_version=no
16774  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16775  soname_spec='${libname}${release}${shared_ext}$major'
16776  shlibpath_var=LD_LIBRARY_PATH
16777  ;;
16778
16779freebsd1*)
16780  dynamic_linker=no
16781  ;;
16782
16783freebsd* | dragonfly*)
16784  # DragonFly does not have aout.  When/if they implement a new
16785  # versioning mechanism, adjust this.
16786  if test -x /usr/bin/objformat; then
16787    objformat=`/usr/bin/objformat`
16788  else
16789    case $host_os in
16790    freebsd[123]*) objformat=aout ;;
16791    *) objformat=elf ;;
16792    esac
16793  fi
16794  version_type=freebsd-$objformat
16795  case $version_type in
16796    freebsd-elf*)
16797      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16798      need_version=no
16799      need_lib_prefix=no
16800      ;;
16801    freebsd-*)
16802      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16803      need_version=yes
16804      ;;
16805  esac
16806  shlibpath_var=LD_LIBRARY_PATH
16807  case $host_os in
16808  freebsd2*)
16809    shlibpath_overrides_runpath=yes
16810    ;;
16811  freebsd3.[01]* | freebsdelf3.[01]*)
16812    shlibpath_overrides_runpath=yes
16813    hardcode_into_libs=yes
16814    ;;
16815  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16816  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16817    shlibpath_overrides_runpath=no
16818    hardcode_into_libs=yes
16819    ;;
16820  freebsd*) # from 4.6 on
16821    shlibpath_overrides_runpath=yes
16822    hardcode_into_libs=yes
16823    ;;
16824  esac
16825  ;;
16826
16827gnu*)
16828  version_type=linux
16829  need_lib_prefix=no
16830  need_version=no
16831  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16832  soname_spec='${libname}${release}${shared_ext}$major'
16833  shlibpath_var=LD_LIBRARY_PATH
16834  hardcode_into_libs=yes
16835  ;;
16836
16837hpux9* | hpux10* | hpux11*)
16838  # Give a soname corresponding to the major version so that dld.sl refuses to
16839  # link against other versions.
16840  version_type=sunos
16841  need_lib_prefix=no
16842  need_version=no
16843  case $host_cpu in
16844  ia64*)
16845    shrext_cmds='.so'
16846    hardcode_into_libs=yes
16847    dynamic_linker="$host_os dld.so"
16848    shlibpath_var=LD_LIBRARY_PATH
16849    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16850    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16851    soname_spec='${libname}${release}${shared_ext}$major'
16852    if test "X$HPUX_IA64_MODE" = X32; then
16853      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16854    else
16855      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16856    fi
16857    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16858    ;;
16859   hppa*64*)
16860     shrext_cmds='.sl'
16861     hardcode_into_libs=yes
16862     dynamic_linker="$host_os dld.sl"
16863     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16864     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16865     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16866     soname_spec='${libname}${release}${shared_ext}$major'
16867     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16868     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16869     ;;
16870   *)
16871    shrext_cmds='.sl'
16872    dynamic_linker="$host_os dld.sl"
16873    shlibpath_var=SHLIB_PATH
16874    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16875    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16876    soname_spec='${libname}${release}${shared_ext}$major'
16877    ;;
16878  esac
16879  # HP-UX runs *really* slowly unless shared libraries are mode 555.
16880  postinstall_cmds='chmod 555 $lib'
16881  ;;
16882
16883interix3*)
16884  version_type=linux
16885  need_lib_prefix=no
16886  need_version=no
16887  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16888  soname_spec='${libname}${release}${shared_ext}$major'
16889  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16890  shlibpath_var=LD_LIBRARY_PATH
16891  shlibpath_overrides_runpath=no
16892  hardcode_into_libs=yes
16893  ;;
16894
16895irix5* | irix6* | nonstopux*)
16896  case $host_os in
16897    nonstopux*) version_type=nonstopux ;;
16898    *)
16899	if test "$lt_cv_prog_gnu_ld" = yes; then
16900		version_type=linux
16901	else
16902		version_type=irix
16903	fi ;;
16904  esac
16905  need_lib_prefix=no
16906  need_version=no
16907  soname_spec='${libname}${release}${shared_ext}$major'
16908  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16909  case $host_os in
16910  irix5* | nonstopux*)
16911    libsuff= shlibsuff=
16912    ;;
16913  *)
16914    case $LD in # libtool.m4 will add one of these switches to LD
16915    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16916      libsuff= shlibsuff= libmagic=32-bit;;
16917    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16918      libsuff=32 shlibsuff=N32 libmagic=N32;;
16919    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16920      libsuff=64 shlibsuff=64 libmagic=64-bit;;
16921    *) libsuff= shlibsuff= libmagic=never-match;;
16922    esac
16923    ;;
16924  esac
16925  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16926  shlibpath_overrides_runpath=no
16927  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16928  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16929  hardcode_into_libs=yes
16930  ;;
16931
16932# No shared lib support for Linux oldld, aout, or coff.
16933linux*oldld* | linux*aout* | linux*coff*)
16934  dynamic_linker=no
16935  ;;
16936
16937# This must be Linux ELF.
16938linux* | k*bsd*-gnu)
16939  version_type=linux
16940  need_lib_prefix=no
16941  need_version=no
16942  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16943  soname_spec='${libname}${release}${shared_ext}$major'
16944  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16945  shlibpath_var=LD_LIBRARY_PATH
16946  shlibpath_overrides_runpath=no
16947  # This implies no fast_install, which is unacceptable.
16948  # Some rework will be needed to allow for fast_install
16949  # before this can be enabled.
16950  hardcode_into_libs=yes
16951
16952  # Append ld.so.conf contents to the search path
16953  if test -f /etc/ld.so.conf; then
16954    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16955    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16956  fi
16957
16958  # We used to test for /lib/ld.so.1 and disable shared libraries on
16959  # powerpc, because MkLinux only supported shared libraries with the
16960  # GNU dynamic linker.  Since this was broken with cross compilers,
16961  # most powerpc-linux boxes support dynamic linking these days and
16962  # people can always --disable-shared, the test was removed, and we
16963  # assume the GNU/Linux dynamic linker is in use.
16964  dynamic_linker='GNU/Linux ld.so'
16965  ;;
16966
16967netbsdelf*-gnu)
16968  version_type=linux
16969  need_lib_prefix=no
16970  need_version=no
16971  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16972  soname_spec='${libname}${release}${shared_ext}$major'
16973  shlibpath_var=LD_LIBRARY_PATH
16974  shlibpath_overrides_runpath=no
16975  hardcode_into_libs=yes
16976  dynamic_linker='NetBSD ld.elf_so'
16977  ;;
16978
16979netbsd*)
16980  version_type=sunos
16981  need_lib_prefix=no
16982  need_version=no
16983  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16984    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16985    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16986    dynamic_linker='NetBSD (a.out) ld.so'
16987  else
16988    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16989    soname_spec='${libname}${release}${shared_ext}$major'
16990    dynamic_linker='NetBSD ld.elf_so'
16991  fi
16992  shlibpath_var=LD_LIBRARY_PATH
16993  shlibpath_overrides_runpath=yes
16994  hardcode_into_libs=yes
16995  ;;
16996
16997newsos6)
16998  version_type=linux
16999  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17000  shlibpath_var=LD_LIBRARY_PATH
17001  shlibpath_overrides_runpath=yes
17002  ;;
17003
17004nto-qnx*)
17005  version_type=linux
17006  need_lib_prefix=no
17007  need_version=no
17008  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17009  soname_spec='${libname}${release}${shared_ext}$major'
17010  shlibpath_var=LD_LIBRARY_PATH
17011  shlibpath_overrides_runpath=yes
17012  ;;
17013
17014openbsd*)
17015  version_type=sunos
17016  sys_lib_dlsearch_path_spec="/usr/lib"
17017  need_lib_prefix=no
17018  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17019  case $host_os in
17020    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17021    *)                         need_version=no  ;;
17022  esac
17023  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17024  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17025  shlibpath_var=LD_LIBRARY_PATH
17026  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17027    case $host_os in
17028      openbsd2.[89] | openbsd2.[89].*)
17029	shlibpath_overrides_runpath=no
17030	;;
17031      *)
17032	shlibpath_overrides_runpath=yes
17033	;;
17034      esac
17035  else
17036    shlibpath_overrides_runpath=yes
17037  fi
17038  ;;
17039
17040os2*)
17041  libname_spec='$name'
17042  shrext_cmds=".dll"
17043  need_lib_prefix=no
17044  library_names_spec='$libname${shared_ext} $libname.a'
17045  dynamic_linker='OS/2 ld.exe'
17046  shlibpath_var=LIBPATH
17047  ;;
17048
17049osf3* | osf4* | osf5*)
17050  version_type=osf
17051  need_lib_prefix=no
17052  need_version=no
17053  soname_spec='${libname}${release}${shared_ext}$major'
17054  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17055  shlibpath_var=LD_LIBRARY_PATH
17056  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17057  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17058  ;;
17059
17060solaris*)
17061  version_type=linux
17062  need_lib_prefix=no
17063  need_version=no
17064  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17065  soname_spec='${libname}${release}${shared_ext}$major'
17066  shlibpath_var=LD_LIBRARY_PATH
17067  shlibpath_overrides_runpath=yes
17068  hardcode_into_libs=yes
17069  # ldd complains unless libraries are executable
17070  postinstall_cmds='chmod +x $lib'
17071  ;;
17072
17073sunos4*)
17074  version_type=sunos
17075  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17076  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17077  shlibpath_var=LD_LIBRARY_PATH
17078  shlibpath_overrides_runpath=yes
17079  if test "$with_gnu_ld" = yes; then
17080    need_lib_prefix=no
17081  fi
17082  need_version=yes
17083  ;;
17084
17085sysv4 | sysv4.3*)
17086  version_type=linux
17087  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17088  soname_spec='${libname}${release}${shared_ext}$major'
17089  shlibpath_var=LD_LIBRARY_PATH
17090  case $host_vendor in
17091    sni)
17092      shlibpath_overrides_runpath=no
17093      need_lib_prefix=no
17094      export_dynamic_flag_spec='${wl}-Blargedynsym'
17095      runpath_var=LD_RUN_PATH
17096      ;;
17097    siemens)
17098      need_lib_prefix=no
17099      ;;
17100    motorola)
17101      need_lib_prefix=no
17102      need_version=no
17103      shlibpath_overrides_runpath=no
17104      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17105      ;;
17106  esac
17107  ;;
17108
17109sysv4*MP*)
17110  if test -d /usr/nec ;then
17111    version_type=linux
17112    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17113    soname_spec='$libname${shared_ext}.$major'
17114    shlibpath_var=LD_LIBRARY_PATH
17115  fi
17116  ;;
17117
17118sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17119  version_type=freebsd-elf
17120  need_lib_prefix=no
17121  need_version=no
17122  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17123  soname_spec='${libname}${release}${shared_ext}$major'
17124  shlibpath_var=LD_LIBRARY_PATH
17125  hardcode_into_libs=yes
17126  if test "$with_gnu_ld" = yes; then
17127    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17128    shlibpath_overrides_runpath=no
17129  else
17130    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17131    shlibpath_overrides_runpath=yes
17132    case $host_os in
17133      sco3.2v5*)
17134        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17135	;;
17136    esac
17137  fi
17138  sys_lib_dlsearch_path_spec='/usr/lib'
17139  ;;
17140
17141uts4*)
17142  version_type=linux
17143  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17144  soname_spec='${libname}${release}${shared_ext}$major'
17145  shlibpath_var=LD_LIBRARY_PATH
17146  ;;
17147
17148*)
17149  dynamic_linker=no
17150  ;;
17151esac
17152echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17153echo "${ECHO_T}$dynamic_linker" >&6
17154test "$dynamic_linker" = no && can_build_shared=no
17155
17156variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17157if test "$GCC" = yes; then
17158  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17159fi
17160
17161echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17162echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17163hardcode_action_GCJ=
17164if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17165   test -n "$runpath_var_GCJ" || \
17166   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17167
17168  # We can hardcode non-existant directories.
17169  if test "$hardcode_direct_GCJ" != no &&
17170     # If the only mechanism to avoid hardcoding is shlibpath_var, we
17171     # have to relink, otherwise we might link with an installed library
17172     # when we should be linking with a yet-to-be-installed one
17173     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17174     test "$hardcode_minus_L_GCJ" != no; then
17175    # Linking always hardcodes the temporary library directory.
17176    hardcode_action_GCJ=relink
17177  else
17178    # We can link without hardcoding, and we can hardcode nonexisting dirs.
17179    hardcode_action_GCJ=immediate
17180  fi
17181else
17182  # We cannot hardcode anything, or else we can only hardcode existing
17183  # directories.
17184  hardcode_action_GCJ=unsupported
17185fi
17186echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17187echo "${ECHO_T}$hardcode_action_GCJ" >&6
17188
17189if test "$hardcode_action_GCJ" = relink; then
17190  # Fast installation is not supported
17191  enable_fast_install=no
17192elif test "$shlibpath_overrides_runpath" = yes ||
17193     test "$enable_shared" = no; then
17194  # Fast installation is not necessary
17195  enable_fast_install=needless
17196fi
17197
17198
17199# The else clause should only fire when bootstrapping the
17200# libtool distribution, otherwise you forgot to ship ltmain.sh
17201# with your package, and you will get complaints that there are
17202# no rules to generate ltmain.sh.
17203if test -f "$ltmain"; then
17204  # See if we are running on zsh, and set the options which allow our commands through
17205  # without removal of \ escapes.
17206  if test -n "${ZSH_VERSION+set}" ; then
17207    setopt NO_GLOB_SUBST
17208  fi
17209  # Now quote all the things that may contain metacharacters while being
17210  # careful not to overquote the AC_SUBSTed values.  We take copies of the
17211  # variables and quote the copies for generation of the libtool script.
17212  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17213    SED SHELL STRIP \
17214    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17215    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17216    deplibs_check_method reload_flag reload_cmds need_locks \
17217    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17218    lt_cv_sys_global_symbol_to_c_name_address \
17219    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17220    old_postinstall_cmds old_postuninstall_cmds \
17221    compiler_GCJ \
17222    CC_GCJ \
17223    LD_GCJ \
17224    lt_prog_compiler_wl_GCJ \
17225    lt_prog_compiler_pic_GCJ \
17226    lt_prog_compiler_static_GCJ \
17227    lt_prog_compiler_no_builtin_flag_GCJ \
17228    export_dynamic_flag_spec_GCJ \
17229    thread_safe_flag_spec_GCJ \
17230    whole_archive_flag_spec_GCJ \
17231    enable_shared_with_static_runtimes_GCJ \
17232    old_archive_cmds_GCJ \
17233    old_archive_from_new_cmds_GCJ \
17234    predep_objects_GCJ \
17235    postdep_objects_GCJ \
17236    predeps_GCJ \
17237    postdeps_GCJ \
17238    compiler_lib_search_path_GCJ \
17239    archive_cmds_GCJ \
17240    archive_expsym_cmds_GCJ \
17241    postinstall_cmds_GCJ \
17242    postuninstall_cmds_GCJ \
17243    old_archive_from_expsyms_cmds_GCJ \
17244    allow_undefined_flag_GCJ \
17245    no_undefined_flag_GCJ \
17246    export_symbols_cmds_GCJ \
17247    hardcode_libdir_flag_spec_GCJ \
17248    hardcode_libdir_flag_spec_ld_GCJ \
17249    hardcode_libdir_separator_GCJ \
17250    hardcode_automatic_GCJ \
17251    module_cmds_GCJ \
17252    module_expsym_cmds_GCJ \
17253    lt_cv_prog_compiler_c_o_GCJ \
17254    exclude_expsyms_GCJ \
17255    include_expsyms_GCJ; do
17256
17257    case $var in
17258    old_archive_cmds_GCJ | \
17259    old_archive_from_new_cmds_GCJ | \
17260    archive_cmds_GCJ | \
17261    archive_expsym_cmds_GCJ | \
17262    module_cmds_GCJ | \
17263    module_expsym_cmds_GCJ | \
17264    old_archive_from_expsyms_cmds_GCJ | \
17265    export_symbols_cmds_GCJ | \
17266    extract_expsyms_cmds | reload_cmds | finish_cmds | \
17267    postinstall_cmds | postuninstall_cmds | \
17268    old_postinstall_cmds | old_postuninstall_cmds | \
17269    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17270      # Double-quote double-evaled strings.
17271      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17272      ;;
17273    *)
17274      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17275      ;;
17276    esac
17277  done
17278
17279  case $lt_echo in
17280  *'\$0 --fallback-echo"')
17281    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17282    ;;
17283  esac
17284
17285cfgfile="$ofile"
17286
17287  cat <<__EOF__ >> "$cfgfile"
17288# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17289
17290# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17291
17292# Shell to use when invoking shell scripts.
17293SHELL=$lt_SHELL
17294
17295# Whether or not to build shared libraries.
17296build_libtool_libs=$enable_shared
17297
17298# Whether or not to build static libraries.
17299build_old_libs=$enable_static
17300
17301# Whether or not to add -lc for building shared libraries.
17302build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17303
17304# Whether or not to disallow shared libs when runtime libs are static
17305allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17306
17307# Whether or not to optimize for fast installation.
17308fast_install=$enable_fast_install
17309
17310# The host system.
17311host_alias=$host_alias
17312host=$host
17313host_os=$host_os
17314
17315# The build system.
17316build_alias=$build_alias
17317build=$build
17318build_os=$build_os
17319
17320# An echo program that does not interpret backslashes.
17321echo=$lt_echo
17322
17323# The archiver.
17324AR=$lt_AR
17325AR_FLAGS=$lt_AR_FLAGS
17326
17327# A C compiler.
17328LTCC=$lt_LTCC
17329
17330# LTCC compiler flags.
17331LTCFLAGS=$lt_LTCFLAGS
17332
17333# A language-specific compiler.
17334CC=$lt_compiler_GCJ
17335
17336# Is the compiler the GNU C compiler?
17337with_gcc=$GCC_GCJ
17338
17339# An ERE matcher.
17340EGREP=$lt_EGREP
17341
17342# The linker used to build libraries.
17343LD=$lt_LD_GCJ
17344
17345# Whether we need hard or soft links.
17346LN_S=$lt_LN_S
17347
17348# A BSD-compatible nm program.
17349NM=$lt_NM
17350
17351# A symbol stripping program
17352STRIP=$lt_STRIP
17353
17354# Used to examine libraries when file_magic_cmd begins "file"
17355MAGIC_CMD=$MAGIC_CMD
17356
17357# Used on cygwin: DLL creation program.
17358DLLTOOL="$DLLTOOL"
17359
17360# Used on cygwin: object dumper.
17361OBJDUMP="$OBJDUMP"
17362
17363# Used on cygwin: assembler.
17364AS="$AS"
17365
17366# The name of the directory that contains temporary libtool files.
17367objdir=$objdir
17368
17369# How to create reloadable object files.
17370reload_flag=$lt_reload_flag
17371reload_cmds=$lt_reload_cmds
17372
17373# How to pass a linker flag through the compiler.
17374wl=$lt_lt_prog_compiler_wl_GCJ
17375
17376# Object file suffix (normally "o").
17377objext="$ac_objext"
17378
17379# Old archive suffix (normally "a").
17380libext="$libext"
17381
17382# Shared library suffix (normally ".so").
17383shrext_cmds='$shrext_cmds'
17384
17385# Executable file suffix (normally "").
17386exeext="$exeext"
17387
17388# Additional compiler flags for building library objects.
17389pic_flag=$lt_lt_prog_compiler_pic_GCJ
17390pic_mode=$pic_mode
17391
17392# What is the maximum length of a command?
17393max_cmd_len=$lt_cv_sys_max_cmd_len
17394
17395# Does compiler simultaneously support -c and -o options?
17396compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17397
17398# Must we lock files when doing compilation?
17399need_locks=$lt_need_locks
17400
17401# Do we need the lib prefix for modules?
17402need_lib_prefix=$need_lib_prefix
17403
17404# Do we need a version for libraries?
17405need_version=$need_version
17406
17407# Whether dlopen is supported.
17408dlopen_support=$enable_dlopen
17409
17410# Whether dlopen of programs is supported.
17411dlopen_self=$enable_dlopen_self
17412
17413# Whether dlopen of statically linked programs is supported.
17414dlopen_self_static=$enable_dlopen_self_static
17415
17416# Compiler flag to prevent dynamic linking.
17417link_static_flag=$lt_lt_prog_compiler_static_GCJ
17418
17419# Compiler flag to turn off builtin functions.
17420no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17421
17422# Compiler flag to allow reflexive dlopens.
17423export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17424
17425# Compiler flag to generate shared objects directly from archives.
17426whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17427
17428# Compiler flag to generate thread-safe objects.
17429thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17430
17431# Library versioning type.
17432version_type=$version_type
17433
17434# Format of library name prefix.
17435libname_spec=$lt_libname_spec
17436
17437# List of archive names.  First name is the real one, the rest are links.
17438# The last name is the one that the linker finds with -lNAME.
17439library_names_spec=$lt_library_names_spec
17440
17441# The coded name of the library, if different from the real name.
17442soname_spec=$lt_soname_spec
17443
17444# Commands used to build and install an old-style archive.
17445RANLIB=$lt_RANLIB
17446old_archive_cmds=$lt_old_archive_cmds_GCJ
17447old_postinstall_cmds=$lt_old_postinstall_cmds
17448old_postuninstall_cmds=$lt_old_postuninstall_cmds
17449
17450# Create an old-style archive from a shared archive.
17451old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17452
17453# Create a temporary old-style archive to link instead of a shared archive.
17454old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17455
17456# Commands used to build and install a shared archive.
17457archive_cmds=$lt_archive_cmds_GCJ
17458archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17459postinstall_cmds=$lt_postinstall_cmds
17460postuninstall_cmds=$lt_postuninstall_cmds
17461
17462# Commands used to build a loadable module (assumed same as above if empty)
17463module_cmds=$lt_module_cmds_GCJ
17464module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17465
17466# Commands to strip libraries.
17467old_striplib=$lt_old_striplib
17468striplib=$lt_striplib
17469
17470# Dependencies to place before the objects being linked to create a
17471# shared library.
17472predep_objects=$lt_predep_objects_GCJ
17473
17474# Dependencies to place after the objects being linked to create a
17475# shared library.
17476postdep_objects=$lt_postdep_objects_GCJ
17477
17478# Dependencies to place before the objects being linked to create a
17479# shared library.
17480predeps=$lt_predeps_GCJ
17481
17482# Dependencies to place after the objects being linked to create a
17483# shared library.
17484postdeps=$lt_postdeps_GCJ
17485
17486# The library search path used internally by the compiler when linking
17487# a shared library.
17488compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17489
17490# Method to check whether dependent libraries are shared objects.
17491deplibs_check_method=$lt_deplibs_check_method
17492
17493# Command to use when deplibs_check_method == file_magic.
17494file_magic_cmd=$lt_file_magic_cmd
17495
17496# Flag that allows shared libraries with undefined symbols to be built.
17497allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17498
17499# Flag that forces no undefined symbols.
17500no_undefined_flag=$lt_no_undefined_flag_GCJ
17501
17502# Commands used to finish a libtool library installation in a directory.
17503finish_cmds=$lt_finish_cmds
17504
17505# Same as above, but a single script fragment to be evaled but not shown.
17506finish_eval=$lt_finish_eval
17507
17508# Take the output of nm and produce a listing of raw symbols and C names.
17509global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17510
17511# Transform the output of nm in a proper C declaration
17512global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17513
17514# Transform the output of nm in a C name address pair
17515global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17516
17517# This is the shared library runtime path variable.
17518runpath_var=$runpath_var
17519
17520# This is the shared library path variable.
17521shlibpath_var=$shlibpath_var
17522
17523# Is shlibpath searched before the hard-coded library search path?
17524shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17525
17526# How to hardcode a shared library path into an executable.
17527hardcode_action=$hardcode_action_GCJ
17528
17529# Whether we should hardcode library paths into libraries.
17530hardcode_into_libs=$hardcode_into_libs
17531
17532# Flag to hardcode \$libdir into a binary during linking.
17533# This must work even if \$libdir does not exist.
17534hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17535
17536# If ld is used when linking, flag to hardcode \$libdir into
17537# a binary during linking. This must work even if \$libdir does
17538# not exist.
17539hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17540
17541# Whether we need a single -rpath flag with a separated argument.
17542hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17543
17544# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17545# resulting binary.
17546hardcode_direct=$hardcode_direct_GCJ
17547
17548# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17549# resulting binary.
17550hardcode_minus_L=$hardcode_minus_L_GCJ
17551
17552# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17553# the resulting binary.
17554hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17555
17556# Set to yes if building a shared library automatically hardcodes DIR into the library
17557# and all subsequent libraries and executables linked against it.
17558hardcode_automatic=$hardcode_automatic_GCJ
17559
17560# Variables whose values should be saved in libtool wrapper scripts and
17561# restored at relink time.
17562variables_saved_for_relink="$variables_saved_for_relink"
17563
17564# Whether libtool must link a program against all its dependency libraries.
17565link_all_deplibs=$link_all_deplibs_GCJ
17566
17567# Compile-time system search path for libraries
17568sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17569
17570# Run-time system search path for libraries
17571sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17572
17573# Fix the shell variable \$srcfile for the compiler.
17574fix_srcfile_path="$fix_srcfile_path_GCJ"
17575
17576# Set to yes if exported symbols are required.
17577always_export_symbols=$always_export_symbols_GCJ
17578
17579# The commands to list exported symbols.
17580export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17581
17582# The commands to extract the exported symbol list from a shared archive.
17583extract_expsyms_cmds=$lt_extract_expsyms_cmds
17584
17585# Symbols that should not be listed in the preloaded symbols.
17586exclude_expsyms=$lt_exclude_expsyms_GCJ
17587
17588# Symbols that must always be exported.
17589include_expsyms=$lt_include_expsyms_GCJ
17590
17591# ### END LIBTOOL TAG CONFIG: $tagname
17592
17593__EOF__
17594
17595
17596else
17597  # If there is no Makefile yet, we rely on a make rule to execute
17598  # `config.status --recheck' to rerun these tests and create the
17599  # libtool script then.
17600  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17601  if test -f "$ltmain_in"; then
17602    test -f Makefile && make "$ltmain"
17603  fi
17604fi
17605
17606
17607ac_ext=c
17608ac_cpp='$CPP $CPPFLAGS'
17609ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17610ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17611ac_compiler_gnu=$ac_cv_c_compiler_gnu
17612
17613CC="$lt_save_CC"
17614
17615	else
17616	  tagname=""
17617	fi
17618	;;
17619
17620      RC)
17621
17622
17623
17624# Source file extension for RC test sources.
17625ac_ext=rc
17626
17627# Object file extension for compiled RC test sources.
17628objext=o
17629objext_RC=$objext
17630
17631# Code to be used in simple compile tests
17632lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17633
17634# Code to be used in simple link tests
17635lt_simple_link_test_code="$lt_simple_compile_test_code"
17636
17637# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17638
17639# If no C compiler was specified, use CC.
17640LTCC=${LTCC-"$CC"}
17641
17642# If no C compiler flags were specified, use CFLAGS.
17643LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17644
17645# Allow CC to be a program name with arguments.
17646compiler=$CC
17647
17648
17649# save warnings/boilerplate of simple test code
17650ac_outfile=conftest.$ac_objext
17651printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17652eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17653_lt_compiler_boilerplate=`cat conftest.err`
17654$rm conftest*
17655
17656ac_outfile=conftest.$ac_objext
17657printf "$lt_simple_link_test_code" >conftest.$ac_ext
17658eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17659_lt_linker_boilerplate=`cat conftest.err`
17660$rm conftest*
17661
17662
17663# Allow CC to be a program name with arguments.
17664lt_save_CC="$CC"
17665CC=${RC-"windres"}
17666compiler=$CC
17667compiler_RC=$CC
17668for cc_temp in $compiler""; do
17669  case $cc_temp in
17670    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17671    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17672    \-*) ;;
17673    *) break;;
17674  esac
17675done
17676cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17677
17678lt_cv_prog_compiler_c_o_RC=yes
17679
17680# The else clause should only fire when bootstrapping the
17681# libtool distribution, otherwise you forgot to ship ltmain.sh
17682# with your package, and you will get complaints that there are
17683# no rules to generate ltmain.sh.
17684if test -f "$ltmain"; then
17685  # See if we are running on zsh, and set the options which allow our commands through
17686  # without removal of \ escapes.
17687  if test -n "${ZSH_VERSION+set}" ; then
17688    setopt NO_GLOB_SUBST
17689  fi
17690  # Now quote all the things that may contain metacharacters while being
17691  # careful not to overquote the AC_SUBSTed values.  We take copies of the
17692  # variables and quote the copies for generation of the libtool script.
17693  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17694    SED SHELL STRIP \
17695    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17696    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17697    deplibs_check_method reload_flag reload_cmds need_locks \
17698    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17699    lt_cv_sys_global_symbol_to_c_name_address \
17700    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17701    old_postinstall_cmds old_postuninstall_cmds \
17702    compiler_RC \
17703    CC_RC \
17704    LD_RC \
17705    lt_prog_compiler_wl_RC \
17706    lt_prog_compiler_pic_RC \
17707    lt_prog_compiler_static_RC \
17708    lt_prog_compiler_no_builtin_flag_RC \
17709    export_dynamic_flag_spec_RC \
17710    thread_safe_flag_spec_RC \
17711    whole_archive_flag_spec_RC \
17712    enable_shared_with_static_runtimes_RC \
17713    old_archive_cmds_RC \
17714    old_archive_from_new_cmds_RC \
17715    predep_objects_RC \
17716    postdep_objects_RC \
17717    predeps_RC \
17718    postdeps_RC \
17719    compiler_lib_search_path_RC \
17720    archive_cmds_RC \
17721    archive_expsym_cmds_RC \
17722    postinstall_cmds_RC \
17723    postuninstall_cmds_RC \
17724    old_archive_from_expsyms_cmds_RC \
17725    allow_undefined_flag_RC \
17726    no_undefined_flag_RC \
17727    export_symbols_cmds_RC \
17728    hardcode_libdir_flag_spec_RC \
17729    hardcode_libdir_flag_spec_ld_RC \
17730    hardcode_libdir_separator_RC \
17731    hardcode_automatic_RC \
17732    module_cmds_RC \
17733    module_expsym_cmds_RC \
17734    lt_cv_prog_compiler_c_o_RC \
17735    exclude_expsyms_RC \
17736    include_expsyms_RC; do
17737
17738    case $var in
17739    old_archive_cmds_RC | \
17740    old_archive_from_new_cmds_RC | \
17741    archive_cmds_RC | \
17742    archive_expsym_cmds_RC | \
17743    module_cmds_RC | \
17744    module_expsym_cmds_RC | \
17745    old_archive_from_expsyms_cmds_RC | \
17746    export_symbols_cmds_RC | \
17747    extract_expsyms_cmds | reload_cmds | finish_cmds | \
17748    postinstall_cmds | postuninstall_cmds | \
17749    old_postinstall_cmds | old_postuninstall_cmds | \
17750    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17751      # Double-quote double-evaled strings.
17752      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17753      ;;
17754    *)
17755      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17756      ;;
17757    esac
17758  done
17759
17760  case $lt_echo in
17761  *'\$0 --fallback-echo"')
17762    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17763    ;;
17764  esac
17765
17766cfgfile="$ofile"
17767
17768  cat <<__EOF__ >> "$cfgfile"
17769# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17770
17771# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17772
17773# Shell to use when invoking shell scripts.
17774SHELL=$lt_SHELL
17775
17776# Whether or not to build shared libraries.
17777build_libtool_libs=$enable_shared
17778
17779# Whether or not to build static libraries.
17780build_old_libs=$enable_static
17781
17782# Whether or not to add -lc for building shared libraries.
17783build_libtool_need_lc=$archive_cmds_need_lc_RC
17784
17785# Whether or not to disallow shared libs when runtime libs are static
17786allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
17787
17788# Whether or not to optimize for fast installation.
17789fast_install=$enable_fast_install
17790
17791# The host system.
17792host_alias=$host_alias
17793host=$host
17794host_os=$host_os
17795
17796# The build system.
17797build_alias=$build_alias
17798build=$build
17799build_os=$build_os
17800
17801# An echo program that does not interpret backslashes.
17802echo=$lt_echo
17803
17804# The archiver.
17805AR=$lt_AR
17806AR_FLAGS=$lt_AR_FLAGS
17807
17808# A C compiler.
17809LTCC=$lt_LTCC
17810
17811# LTCC compiler flags.
17812LTCFLAGS=$lt_LTCFLAGS
17813
17814# A language-specific compiler.
17815CC=$lt_compiler_RC
17816
17817# Is the compiler the GNU C compiler?
17818with_gcc=$GCC_RC
17819
17820# An ERE matcher.
17821EGREP=$lt_EGREP
17822
17823# The linker used to build libraries.
17824LD=$lt_LD_RC
17825
17826# Whether we need hard or soft links.
17827LN_S=$lt_LN_S
17828
17829# A BSD-compatible nm program.
17830NM=$lt_NM
17831
17832# A symbol stripping program
17833STRIP=$lt_STRIP
17834
17835# Used to examine libraries when file_magic_cmd begins "file"
17836MAGIC_CMD=$MAGIC_CMD
17837
17838# Used on cygwin: DLL creation program.
17839DLLTOOL="$DLLTOOL"
17840
17841# Used on cygwin: object dumper.
17842OBJDUMP="$OBJDUMP"
17843
17844# Used on cygwin: assembler.
17845AS="$AS"
17846
17847# The name of the directory that contains temporary libtool files.
17848objdir=$objdir
17849
17850# How to create reloadable object files.
17851reload_flag=$lt_reload_flag
17852reload_cmds=$lt_reload_cmds
17853
17854# How to pass a linker flag through the compiler.
17855wl=$lt_lt_prog_compiler_wl_RC
17856
17857# Object file suffix (normally "o").
17858objext="$ac_objext"
17859
17860# Old archive suffix (normally "a").
17861libext="$libext"
17862
17863# Shared library suffix (normally ".so").
17864shrext_cmds='$shrext_cmds'
17865
17866# Executable file suffix (normally "").
17867exeext="$exeext"
17868
17869# Additional compiler flags for building library objects.
17870pic_flag=$lt_lt_prog_compiler_pic_RC
17871pic_mode=$pic_mode
17872
17873# What is the maximum length of a command?
17874max_cmd_len=$lt_cv_sys_max_cmd_len
17875
17876# Does compiler simultaneously support -c and -o options?
17877compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
17878
17879# Must we lock files when doing compilation?
17880need_locks=$lt_need_locks
17881
17882# Do we need the lib prefix for modules?
17883need_lib_prefix=$need_lib_prefix
17884
17885# Do we need a version for libraries?
17886need_version=$need_version
17887
17888# Whether dlopen is supported.
17889dlopen_support=$enable_dlopen
17890
17891# Whether dlopen of programs is supported.
17892dlopen_self=$enable_dlopen_self
17893
17894# Whether dlopen of statically linked programs is supported.
17895dlopen_self_static=$enable_dlopen_self_static
17896
17897# Compiler flag to prevent dynamic linking.
17898link_static_flag=$lt_lt_prog_compiler_static_RC
17899
17900# Compiler flag to turn off builtin functions.
17901no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
17902
17903# Compiler flag to allow reflexive dlopens.
17904export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
17905
17906# Compiler flag to generate shared objects directly from archives.
17907whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
17908
17909# Compiler flag to generate thread-safe objects.
17910thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
17911
17912# Library versioning type.
17913version_type=$version_type
17914
17915# Format of library name prefix.
17916libname_spec=$lt_libname_spec
17917
17918# List of archive names.  First name is the real one, the rest are links.
17919# The last name is the one that the linker finds with -lNAME.
17920library_names_spec=$lt_library_names_spec
17921
17922# The coded name of the library, if different from the real name.
17923soname_spec=$lt_soname_spec
17924
17925# Commands used to build and install an old-style archive.
17926RANLIB=$lt_RANLIB
17927old_archive_cmds=$lt_old_archive_cmds_RC
17928old_postinstall_cmds=$lt_old_postinstall_cmds
17929old_postuninstall_cmds=$lt_old_postuninstall_cmds
17930
17931# Create an old-style archive from a shared archive.
17932old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
17933
17934# Create a temporary old-style archive to link instead of a shared archive.
17935old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
17936
17937# Commands used to build and install a shared archive.
17938archive_cmds=$lt_archive_cmds_RC
17939archive_expsym_cmds=$lt_archive_expsym_cmds_RC
17940postinstall_cmds=$lt_postinstall_cmds
17941postuninstall_cmds=$lt_postuninstall_cmds
17942
17943# Commands used to build a loadable module (assumed same as above if empty)
17944module_cmds=$lt_module_cmds_RC
17945module_expsym_cmds=$lt_module_expsym_cmds_RC
17946
17947# Commands to strip libraries.
17948old_striplib=$lt_old_striplib
17949striplib=$lt_striplib
17950
17951# Dependencies to place before the objects being linked to create a
17952# shared library.
17953predep_objects=$lt_predep_objects_RC
17954
17955# Dependencies to place after the objects being linked to create a
17956# shared library.
17957postdep_objects=$lt_postdep_objects_RC
17958
17959# Dependencies to place before the objects being linked to create a
17960# shared library.
17961predeps=$lt_predeps_RC
17962
17963# Dependencies to place after the objects being linked to create a
17964# shared library.
17965postdeps=$lt_postdeps_RC
17966
17967# The library search path used internally by the compiler when linking
17968# a shared library.
17969compiler_lib_search_path=$lt_compiler_lib_search_path_RC
17970
17971# Method to check whether dependent libraries are shared objects.
17972deplibs_check_method=$lt_deplibs_check_method
17973
17974# Command to use when deplibs_check_method == file_magic.
17975file_magic_cmd=$lt_file_magic_cmd
17976
17977# Flag that allows shared libraries with undefined symbols to be built.
17978allow_undefined_flag=$lt_allow_undefined_flag_RC
17979
17980# Flag that forces no undefined symbols.
17981no_undefined_flag=$lt_no_undefined_flag_RC
17982
17983# Commands used to finish a libtool library installation in a directory.
17984finish_cmds=$lt_finish_cmds
17985
17986# Same as above, but a single script fragment to be evaled but not shown.
17987finish_eval=$lt_finish_eval
17988
17989# Take the output of nm and produce a listing of raw symbols and C names.
17990global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17991
17992# Transform the output of nm in a proper C declaration
17993global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17994
17995# Transform the output of nm in a C name address pair
17996global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17997
17998# This is the shared library runtime path variable.
17999runpath_var=$runpath_var
18000
18001# This is the shared library path variable.
18002shlibpath_var=$shlibpath_var
18003
18004# Is shlibpath searched before the hard-coded library search path?
18005shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18006
18007# How to hardcode a shared library path into an executable.
18008hardcode_action=$hardcode_action_RC
18009
18010# Whether we should hardcode library paths into libraries.
18011hardcode_into_libs=$hardcode_into_libs
18012
18013# Flag to hardcode \$libdir into a binary during linking.
18014# This must work even if \$libdir does not exist.
18015hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18016
18017# If ld is used when linking, flag to hardcode \$libdir into
18018# a binary during linking. This must work even if \$libdir does
18019# not exist.
18020hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18021
18022# Whether we need a single -rpath flag with a separated argument.
18023hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18024
18025# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18026# resulting binary.
18027hardcode_direct=$hardcode_direct_RC
18028
18029# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18030# resulting binary.
18031hardcode_minus_L=$hardcode_minus_L_RC
18032
18033# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18034# the resulting binary.
18035hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18036
18037# Set to yes if building a shared library automatically hardcodes DIR into the library
18038# and all subsequent libraries and executables linked against it.
18039hardcode_automatic=$hardcode_automatic_RC
18040
18041# Variables whose values should be saved in libtool wrapper scripts and
18042# restored at relink time.
18043variables_saved_for_relink="$variables_saved_for_relink"
18044
18045# Whether libtool must link a program against all its dependency libraries.
18046link_all_deplibs=$link_all_deplibs_RC
18047
18048# Compile-time system search path for libraries
18049sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18050
18051# Run-time system search path for libraries
18052sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18053
18054# Fix the shell variable \$srcfile for the compiler.
18055fix_srcfile_path="$fix_srcfile_path_RC"
18056
18057# Set to yes if exported symbols are required.
18058always_export_symbols=$always_export_symbols_RC
18059
18060# The commands to list exported symbols.
18061export_symbols_cmds=$lt_export_symbols_cmds_RC
18062
18063# The commands to extract the exported symbol list from a shared archive.
18064extract_expsyms_cmds=$lt_extract_expsyms_cmds
18065
18066# Symbols that should not be listed in the preloaded symbols.
18067exclude_expsyms=$lt_exclude_expsyms_RC
18068
18069# Symbols that must always be exported.
18070include_expsyms=$lt_include_expsyms_RC
18071
18072# ### END LIBTOOL TAG CONFIG: $tagname
18073
18074__EOF__
18075
18076
18077else
18078  # If there is no Makefile yet, we rely on a make rule to execute
18079  # `config.status --recheck' to rerun these tests and create the
18080  # libtool script then.
18081  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18082  if test -f "$ltmain_in"; then
18083    test -f Makefile && make "$ltmain"
18084  fi
18085fi
18086
18087
18088ac_ext=c
18089ac_cpp='$CPP $CPPFLAGS'
18090ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18091ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18092ac_compiler_gnu=$ac_cv_c_compiler_gnu
18093
18094CC="$lt_save_CC"
18095
18096	;;
18097
18098      *)
18099	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18100echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18101   { (exit 1); exit 1; }; }
18102	;;
18103      esac
18104
18105      # Append the new tag name to the list of available tags.
18106      if test -n "$tagname" ; then
18107      available_tags="$available_tags $tagname"
18108    fi
18109    fi
18110  done
18111  IFS="$lt_save_ifs"
18112
18113  # Now substitute the updated list of available tags.
18114  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18115    mv "${ofile}T" "$ofile"
18116    chmod +x "$ofile"
18117  else
18118    rm -f "${ofile}T"
18119    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18120echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18121   { (exit 1); exit 1; }; }
18122  fi
18123fi
18124
18125
18126
18127# This can be used to rebuild libtool when needed
18128LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18129
18130# Always use our own libtool.
18131LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18132
18133# Prevent multiple expansion
18134
18135
18136
18137
18138
18139
18140
18141
18142
18143
18144
18145
18146
18147
18148
18149
18150
18151
18152
18153
18154if test -n "$ac_tool_prefix"; then
18155  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
18156set dummy ${ac_tool_prefix}ranlib; ac_word=$2
18157echo "$as_me:$LINENO: checking for $ac_word" >&5
18158echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18159if test "${ac_cv_prog_RANLIB+set}" = set; then
18160  echo $ECHO_N "(cached) $ECHO_C" >&6
18161else
18162  if test -n "$RANLIB"; then
18163  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
18164else
18165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18166for as_dir in $PATH
18167do
18168  IFS=$as_save_IFS
18169  test -z "$as_dir" && as_dir=.
18170  for ac_exec_ext in '' $ac_executable_extensions; do
18171  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18172    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
18173    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18174    break 2
18175  fi
18176done
18177done
18178
18179fi
18180fi
18181RANLIB=$ac_cv_prog_RANLIB
18182if test -n "$RANLIB"; then
18183  echo "$as_me:$LINENO: result: $RANLIB" >&5
18184echo "${ECHO_T}$RANLIB" >&6
18185else
18186  echo "$as_me:$LINENO: result: no" >&5
18187echo "${ECHO_T}no" >&6
18188fi
18189
18190fi
18191if test -z "$ac_cv_prog_RANLIB"; then
18192  ac_ct_RANLIB=$RANLIB
18193  # Extract the first word of "ranlib", so it can be a program name with args.
18194set dummy ranlib; ac_word=$2
18195echo "$as_me:$LINENO: checking for $ac_word" >&5
18196echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18197if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
18198  echo $ECHO_N "(cached) $ECHO_C" >&6
18199else
18200  if test -n "$ac_ct_RANLIB"; then
18201  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
18202else
18203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18204for as_dir in $PATH
18205do
18206  IFS=$as_save_IFS
18207  test -z "$as_dir" && as_dir=.
18208  for ac_exec_ext in '' $ac_executable_extensions; do
18209  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18210    ac_cv_prog_ac_ct_RANLIB="ranlib"
18211    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18212    break 2
18213  fi
18214done
18215done
18216
18217  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
18218fi
18219fi
18220ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
18221if test -n "$ac_ct_RANLIB"; then
18222  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
18223echo "${ECHO_T}$ac_ct_RANLIB" >&6
18224else
18225  echo "$as_me:$LINENO: result: no" >&5
18226echo "${ECHO_T}no" >&6
18227fi
18228
18229  RANLIB=$ac_ct_RANLIB
18230else
18231  RANLIB="$ac_cv_prog_RANLIB"
18232fi
18233
18234
18235echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
18236echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
18237if test "${ac_cv_c_bigendian+set}" = set; then
18238  echo $ECHO_N "(cached) $ECHO_C" >&6
18239else
18240  ac_cv_c_bigendian=unknown
18241# See if sys/param.h defines the BYTE_ORDER macro.
18242cat >conftest.$ac_ext <<_ACEOF
18243/* confdefs.h.  */
18244_ACEOF
18245cat confdefs.h >>conftest.$ac_ext
18246cat >>conftest.$ac_ext <<_ACEOF
18247/* end confdefs.h.  */
18248#include <sys/types.h>
18249#include <sys/param.h>
18250
18251int
18252main ()
18253{
18254#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
18255 bogus endian macros
18256#endif
18257
18258  ;
18259  return 0;
18260}
18261_ACEOF
18262rm -f conftest.$ac_objext
18263if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18264  (eval $ac_compile) 2>conftest.er1
18265  ac_status=$?
18266  grep -v '^ *+' conftest.er1 >conftest.err
18267  rm -f conftest.er1
18268  cat conftest.err >&5
18269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18270  (exit $ac_status); } &&
18271	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
18272  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18273  (eval $ac_try) 2>&5
18274  ac_status=$?
18275  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18276  (exit $ac_status); }; } &&
18277	 { ac_try='test -s conftest.$ac_objext'
18278  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18279  (eval $ac_try) 2>&5
18280  ac_status=$?
18281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18282  (exit $ac_status); }; }; then
18283  # It does; now see whether it defined to BIG_ENDIAN or not.
18284cat >conftest.$ac_ext <<_ACEOF
18285/* confdefs.h.  */
18286_ACEOF
18287cat confdefs.h >>conftest.$ac_ext
18288cat >>conftest.$ac_ext <<_ACEOF
18289/* end confdefs.h.  */
18290#include <sys/types.h>
18291#include <sys/param.h>
18292
18293int
18294main ()
18295{
18296#if BYTE_ORDER != BIG_ENDIAN
18297 not big endian
18298#endif
18299
18300  ;
18301  return 0;
18302}
18303_ACEOF
18304rm -f conftest.$ac_objext
18305if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18306  (eval $ac_compile) 2>conftest.er1
18307  ac_status=$?
18308  grep -v '^ *+' conftest.er1 >conftest.err
18309  rm -f conftest.er1
18310  cat conftest.err >&5
18311  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18312  (exit $ac_status); } &&
18313	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
18314  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18315  (eval $ac_try) 2>&5
18316  ac_status=$?
18317  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18318  (exit $ac_status); }; } &&
18319	 { ac_try='test -s conftest.$ac_objext'
18320  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18321  (eval $ac_try) 2>&5
18322  ac_status=$?
18323  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18324  (exit $ac_status); }; }; then
18325  ac_cv_c_bigendian=yes
18326else
18327  echo "$as_me: failed program was:" >&5
18328sed 's/^/| /' conftest.$ac_ext >&5
18329
18330ac_cv_c_bigendian=no
18331fi
18332rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18333else
18334  echo "$as_me: failed program was:" >&5
18335sed 's/^/| /' conftest.$ac_ext >&5
18336
18337fi
18338rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18339if test $ac_cv_c_bigendian = unknown; then
18340if test "$cross_compiling" = yes; then
18341  { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
18342See \`config.log' for more details." >&5
18343echo "$as_me: error: cannot run test program while cross compiling
18344See \`config.log' for more details." >&2;}
18345   { (exit 1); exit 1; }; }
18346else
18347  cat >conftest.$ac_ext <<_ACEOF
18348/* confdefs.h.  */
18349_ACEOF
18350cat confdefs.h >>conftest.$ac_ext
18351cat >>conftest.$ac_ext <<_ACEOF
18352/* end confdefs.h.  */
18353int
18354main ()
18355{
18356  /* Are we little or big endian?  From Harbison&Steele.  */
18357  union
18358  {
18359    long l;
18360    char c[sizeof (long)];
18361  } u;
18362  u.l = 1;
18363  exit (u.c[sizeof (long) - 1] == 1);
18364}
18365_ACEOF
18366rm -f conftest$ac_exeext
18367if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18368  (eval $ac_link) 2>&5
18369  ac_status=$?
18370  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18371  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18372  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18373  (eval $ac_try) 2>&5
18374  ac_status=$?
18375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18376  (exit $ac_status); }; }; then
18377  ac_cv_c_bigendian=no
18378else
18379  echo "$as_me: program exited with status $ac_status" >&5
18380echo "$as_me: failed program was:" >&5
18381sed 's/^/| /' conftest.$ac_ext >&5
18382
18383( exit $ac_status )
18384ac_cv_c_bigendian=yes
18385fi
18386rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18387fi
18388fi
18389fi
18390echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
18391echo "${ECHO_T}$ac_cv_c_bigendian" >&6
18392if test $ac_cv_c_bigendian = no; then
18393  CFLAGS="-DQUESA_HOST_IS_BIG_ENDIAN=0 ${CFLAGS}"
18394fi
18395if test $ac_cv_c_bigendian = yes; then
18396  CFLAGS="-DQUESA_HOST_IS_BIG_ENDIAN=1 ${CFLAGS}"
18397fi
18398
18399
18400
18401
18402echo "$as_me:$LINENO: checking for X" >&5
18403echo $ECHO_N "checking for X... $ECHO_C" >&6
18404
18405ac_path_x_has_been_run=yes
18406
18407# Check whether --with-x or --without-x was given.
18408if test "${with_x+set}" = set; then
18409  withval="$with_x"
18410
18411fi;
18412# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
18413if test "x$with_x" = xno; then
18414  # The user explicitly disabled X.
18415  have_x=disabled
18416else
18417  if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
18418    # Both variables are already set.
18419    have_x=yes
18420  else
18421    if test "${ac_cv_have_x+set}" = set; then
18422  echo $ECHO_N "(cached) $ECHO_C" >&6
18423else
18424  # One or both of the vars are not set, and there is no cached value.
18425ac_x_includes=no ac_x_libraries=no
18426rm -fr conftest.dir
18427if mkdir conftest.dir; then
18428  cd conftest.dir
18429  # Make sure to not put "make" in the Imakefile rules, since we grep it out.
18430  cat >Imakefile <<'_ACEOF'
18431acfindx:
18432	@echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
18433_ACEOF
18434  if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
18435    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
18436    eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
18437    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
18438    for ac_extension in a so sl; do
18439      if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
18440	 test -f $ac_im_libdir/libX11.$ac_extension; then
18441	ac_im_usrlibdir=$ac_im_libdir; break
18442      fi
18443    done
18444    # Screen out bogus values from the imake configuration.  They are
18445    # bogus both because they are the default anyway, and because
18446    # using them would break gcc on systems where it needs fixed includes.
18447    case $ac_im_incroot in
18448	/usr/include) ;;
18449	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
18450    esac
18451    case $ac_im_usrlibdir in
18452	/usr/lib | /lib) ;;
18453	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
18454    esac
18455  fi
18456  cd ..
18457  rm -fr conftest.dir
18458fi
18459
18460# Standard set of common directories for X headers.
18461# Check X11 before X11Rn because it is often a symlink to the current release.
18462ac_x_header_dirs='
18463/usr/X11/include
18464/usr/X11R6/include
18465/usr/X11R5/include
18466/usr/X11R4/include
18467
18468/usr/include/X11
18469/usr/include/X11R6
18470/usr/include/X11R5
18471/usr/include/X11R4
18472
18473/usr/local/X11/include
18474/usr/local/X11R6/include
18475/usr/local/X11R5/include
18476/usr/local/X11R4/include
18477
18478/usr/local/include/X11
18479/usr/local/include/X11R6
18480/usr/local/include/X11R5
18481/usr/local/include/X11R4
18482
18483/usr/X386/include
18484/usr/x386/include
18485/usr/XFree86/include/X11
18486
18487/usr/include
18488/usr/local/include
18489/usr/unsupported/include
18490/usr/athena/include
18491/usr/local/x11r5/include
18492/usr/lpp/Xamples/include
18493
18494/usr/openwin/include
18495/usr/openwin/share/include'
18496
18497if test "$ac_x_includes" = no; then
18498  # Guess where to find include files, by looking for a specified header file.
18499  # First, try using that file with no special directory specified.
18500  cat >conftest.$ac_ext <<_ACEOF
18501/* confdefs.h.  */
18502_ACEOF
18503cat confdefs.h >>conftest.$ac_ext
18504cat >>conftest.$ac_ext <<_ACEOF
18505/* end confdefs.h.  */
18506#include <X11/Xlib.h>
18507_ACEOF
18508if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18509  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18510  ac_status=$?
18511  grep -v '^ *+' conftest.er1 >conftest.err
18512  rm -f conftest.er1
18513  cat conftest.err >&5
18514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18515  (exit $ac_status); } >/dev/null; then
18516  if test -s conftest.err; then
18517    ac_cpp_err=$ac_c_preproc_warn_flag
18518    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18519  else
18520    ac_cpp_err=
18521  fi
18522else
18523  ac_cpp_err=yes
18524fi
18525if test -z "$ac_cpp_err"; then
18526  # We can compile using X headers with no special include directory.
18527ac_x_includes=
18528else
18529  echo "$as_me: failed program was:" >&5
18530sed 's/^/| /' conftest.$ac_ext >&5
18531
18532  for ac_dir in $ac_x_header_dirs; do
18533  if test -r "$ac_dir/X11/Xlib.h"; then
18534    ac_x_includes=$ac_dir
18535    break
18536  fi
18537done
18538fi
18539rm -f conftest.err conftest.$ac_ext
18540fi # $ac_x_includes = no
18541
18542if test "$ac_x_libraries" = no; then
18543  # Check for the libraries.
18544  # See if we find them without any special options.
18545  # Don't add to $LIBS permanently.
18546  ac_save_LIBS=$LIBS
18547  LIBS="-lX11 $LIBS"
18548  cat >conftest.$ac_ext <<_ACEOF
18549/* confdefs.h.  */
18550_ACEOF
18551cat confdefs.h >>conftest.$ac_ext
18552cat >>conftest.$ac_ext <<_ACEOF
18553/* end confdefs.h.  */
18554#include <X11/Xlib.h>
18555int
18556main ()
18557{
18558XrmInitialize ()
18559  ;
18560  return 0;
18561}
18562_ACEOF
18563rm -f conftest.$ac_objext conftest$ac_exeext
18564if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18565  (eval $ac_link) 2>conftest.er1
18566  ac_status=$?
18567  grep -v '^ *+' conftest.er1 >conftest.err
18568  rm -f conftest.er1
18569  cat conftest.err >&5
18570  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18571  (exit $ac_status); } &&
18572	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
18573  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18574  (eval $ac_try) 2>&5
18575  ac_status=$?
18576  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18577  (exit $ac_status); }; } &&
18578	 { ac_try='test -s conftest$ac_exeext'
18579  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18580  (eval $ac_try) 2>&5
18581  ac_status=$?
18582  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18583  (exit $ac_status); }; }; then
18584  LIBS=$ac_save_LIBS
18585# We can link X programs with no special library path.
18586ac_x_libraries=
18587else
18588  echo "$as_me: failed program was:" >&5
18589sed 's/^/| /' conftest.$ac_ext >&5
18590
18591LIBS=$ac_save_LIBS
18592for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
18593do
18594  # Don't even attempt the hair of trying to link an X program!
18595  for ac_extension in a so sl; do
18596    if test -r $ac_dir/libX11.$ac_extension; then
18597      ac_x_libraries=$ac_dir
18598      break 2
18599    fi
18600  done
18601done
18602fi
18603rm -f conftest.err conftest.$ac_objext \
18604      conftest$ac_exeext conftest.$ac_ext
18605fi # $ac_x_libraries = no
18606
18607if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
18608  # Didn't find X anywhere.  Cache the known absence of X.
18609  ac_cv_have_x="have_x=no"
18610else
18611  # Record where we found X for the cache.
18612  ac_cv_have_x="have_x=yes \
18613		ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
18614fi
18615fi
18616
18617  fi
18618  eval "$ac_cv_have_x"
18619fi # $with_x != no
18620
18621if test "$have_x" != yes; then
18622  echo "$as_me:$LINENO: result: $have_x" >&5
18623echo "${ECHO_T}$have_x" >&6
18624  no_x=yes
18625else
18626  # If each of the values was on the command line, it overrides each guess.
18627  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
18628  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
18629  # Update the cache value to reflect the command line values.
18630  ac_cv_have_x="have_x=yes \
18631		ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
18632  # It might be that x_includes is empty (headers are found in the
18633  # standard search path. Then output the corresponding message
18634  ac_out_x_includes=$x_includes
18635  test "x$x_includes" = x && ac_out_x_includes="in standard search path"
18636  echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
18637echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
18638fi
18639
18640if test $have_x != yes; then
18641	{ { echo "$as_me:$LINENO: error: Fatal - can't find X - Stopping here." >&5
18642echo "$as_me: error: Fatal - can't find X - Stopping here." >&2;}
18643   { (exit 1); exit 1; }; }
18644fi
18645
18646
18647if test "x$ac_path_x_has_been_run" != xyes; then
18648  echo "$as_me:$LINENO: checking for X" >&5
18649echo $ECHO_N "checking for X... $ECHO_C" >&6
18650
18651ac_path_x_has_been_run=yes
18652
18653# Check whether --with-x or --without-x was given.
18654if test "${with_x+set}" = set; then
18655  withval="$with_x"
18656
18657fi;
18658# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
18659if test "x$with_x" = xno; then
18660  # The user explicitly disabled X.
18661  have_x=disabled
18662else
18663  if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
18664    # Both variables are already set.
18665    have_x=yes
18666  else
18667    if test "${ac_cv_have_x+set}" = set; then
18668  echo $ECHO_N "(cached) $ECHO_C" >&6
18669else
18670  # One or both of the vars are not set, and there is no cached value.
18671ac_x_includes=no ac_x_libraries=no
18672rm -fr conftest.dir
18673if mkdir conftest.dir; then
18674  cd conftest.dir
18675  # Make sure to not put "make" in the Imakefile rules, since we grep it out.
18676  cat >Imakefile <<'_ACEOF'
18677acfindx:
18678	@echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
18679_ACEOF
18680  if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
18681    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
18682    eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
18683    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
18684    for ac_extension in a so sl; do
18685      if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
18686	 test -f $ac_im_libdir/libX11.$ac_extension; then
18687	ac_im_usrlibdir=$ac_im_libdir; break
18688      fi
18689    done
18690    # Screen out bogus values from the imake configuration.  They are
18691    # bogus both because they are the default anyway, and because
18692    # using them would break gcc on systems where it needs fixed includes.
18693    case $ac_im_incroot in
18694	/usr/include) ;;
18695	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
18696    esac
18697    case $ac_im_usrlibdir in
18698	/usr/lib | /lib) ;;
18699	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
18700    esac
18701  fi
18702  cd ..
18703  rm -fr conftest.dir
18704fi
18705
18706# Standard set of common directories for X headers.
18707# Check X11 before X11Rn because it is often a symlink to the current release.
18708ac_x_header_dirs='
18709/usr/X11/include
18710/usr/X11R6/include
18711/usr/X11R5/include
18712/usr/X11R4/include
18713
18714/usr/include/X11
18715/usr/include/X11R6
18716/usr/include/X11R5
18717/usr/include/X11R4
18718
18719/usr/local/X11/include
18720/usr/local/X11R6/include
18721/usr/local/X11R5/include
18722/usr/local/X11R4/include
18723
18724/usr/local/include/X11
18725/usr/local/include/X11R6
18726/usr/local/include/X11R5
18727/usr/local/include/X11R4
18728
18729/usr/X386/include
18730/usr/x386/include
18731/usr/XFree86/include/X11
18732
18733/usr/include
18734/usr/local/include
18735/usr/unsupported/include
18736/usr/athena/include
18737/usr/local/x11r5/include
18738/usr/lpp/Xamples/include
18739
18740/usr/openwin/include
18741/usr/openwin/share/include'
18742
18743if test "$ac_x_includes" = no; then
18744  # Guess where to find include files, by looking for a specified header file.
18745  # First, try using that file with no special directory specified.
18746  cat >conftest.$ac_ext <<_ACEOF
18747/* confdefs.h.  */
18748_ACEOF
18749cat confdefs.h >>conftest.$ac_ext
18750cat >>conftest.$ac_ext <<_ACEOF
18751/* end confdefs.h.  */
18752#include <X11/Xlib.h>
18753_ACEOF
18754if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18755  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18756  ac_status=$?
18757  grep -v '^ *+' conftest.er1 >conftest.err
18758  rm -f conftest.er1
18759  cat conftest.err >&5
18760  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18761  (exit $ac_status); } >/dev/null; then
18762  if test -s conftest.err; then
18763    ac_cpp_err=$ac_c_preproc_warn_flag
18764    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18765  else
18766    ac_cpp_err=
18767  fi
18768else
18769  ac_cpp_err=yes
18770fi
18771if test -z "$ac_cpp_err"; then
18772  # We can compile using X headers with no special include directory.
18773ac_x_includes=
18774else
18775  echo "$as_me: failed program was:" >&5
18776sed 's/^/| /' conftest.$ac_ext >&5
18777
18778  for ac_dir in $ac_x_header_dirs; do
18779  if test -r "$ac_dir/X11/Xlib.h"; then
18780    ac_x_includes=$ac_dir
18781    break
18782  fi
18783done
18784fi
18785rm -f conftest.err conftest.$ac_ext
18786fi # $ac_x_includes = no
18787
18788if test "$ac_x_libraries" = no; then
18789  # Check for the libraries.
18790  # See if we find them without any special options.
18791  # Don't add to $LIBS permanently.
18792  ac_save_LIBS=$LIBS
18793  LIBS="-lX11 $LIBS"
18794  cat >conftest.$ac_ext <<_ACEOF
18795/* confdefs.h.  */
18796_ACEOF
18797cat confdefs.h >>conftest.$ac_ext
18798cat >>conftest.$ac_ext <<_ACEOF
18799/* end confdefs.h.  */
18800#include <X11/Xlib.h>
18801int
18802main ()
18803{
18804XrmInitialize ()
18805  ;
18806  return 0;
18807}
18808_ACEOF
18809rm -f conftest.$ac_objext conftest$ac_exeext
18810if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18811  (eval $ac_link) 2>conftest.er1
18812  ac_status=$?
18813  grep -v '^ *+' conftest.er1 >conftest.err
18814  rm -f conftest.er1
18815  cat conftest.err >&5
18816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18817  (exit $ac_status); } &&
18818	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
18819  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18820  (eval $ac_try) 2>&5
18821  ac_status=$?
18822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18823  (exit $ac_status); }; } &&
18824	 { ac_try='test -s conftest$ac_exeext'
18825  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18826  (eval $ac_try) 2>&5
18827  ac_status=$?
18828  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18829  (exit $ac_status); }; }; then
18830  LIBS=$ac_save_LIBS
18831# We can link X programs with no special library path.
18832ac_x_libraries=
18833else
18834  echo "$as_me: failed program was:" >&5
18835sed 's/^/| /' conftest.$ac_ext >&5
18836
18837LIBS=$ac_save_LIBS
18838for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
18839do
18840  # Don't even attempt the hair of trying to link an X program!
18841  for ac_extension in a so sl; do
18842    if test -r $ac_dir/libX11.$ac_extension; then
18843      ac_x_libraries=$ac_dir
18844      break 2
18845    fi
18846  done
18847done
18848fi
18849rm -f conftest.err conftest.$ac_objext \
18850      conftest$ac_exeext conftest.$ac_ext
18851fi # $ac_x_libraries = no
18852
18853if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
18854  # Didn't find X anywhere.  Cache the known absence of X.
18855  ac_cv_have_x="have_x=no"
18856else
18857  # Record where we found X for the cache.
18858  ac_cv_have_x="have_x=yes \
18859		ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
18860fi
18861fi
18862
18863  fi
18864  eval "$ac_cv_have_x"
18865fi # $with_x != no
18866
18867if test "$have_x" != yes; then
18868  echo "$as_me:$LINENO: result: $have_x" >&5
18869echo "${ECHO_T}$have_x" >&6
18870  no_x=yes
18871else
18872  # If each of the values was on the command line, it overrides each guess.
18873  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
18874  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
18875  # Update the cache value to reflect the command line values.
18876  ac_cv_have_x="have_x=yes \
18877		ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
18878  # It might be that x_includes is empty (headers are found in the
18879  # standard search path. Then output the corresponding message
18880  ac_out_x_includes=$x_includes
18881  test "x$x_includes" = x && ac_out_x_includes="in standard search path"
18882  echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
18883echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
18884fi
18885
18886fi
18887if test "$no_x" = yes; then
18888  # Not all programs may use this symbol, but it does not hurt to define it.
18889
18890cat >>confdefs.h <<\_ACEOF
18891#define X_DISPLAY_MISSING 1
18892_ACEOF
18893
18894  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
18895else
18896  if test -n "$x_includes"; then
18897    X_CFLAGS="$X_CFLAGS -I$x_includes"
18898  fi
18899
18900  # It would also be nice to do this for all -L options, not just this one.
18901  if test -n "$x_libraries"; then
18902    X_LIBS="$X_LIBS -L$x_libraries"
18903    # For Solaris; some versions of Sun CC require a space after -R and
18904    # others require no space.  Words are not sufficient . . . .
18905    case `(uname -sr) 2>/dev/null` in
18906    "SunOS 5"*)
18907      echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
18908echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
18909      ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
18910      cat >conftest.$ac_ext <<_ACEOF
18911/* confdefs.h.  */
18912_ACEOF
18913cat confdefs.h >>conftest.$ac_ext
18914cat >>conftest.$ac_ext <<_ACEOF
18915/* end confdefs.h.  */
18916
18917int
18918main ()
18919{
18920
18921  ;
18922  return 0;
18923}
18924_ACEOF
18925rm -f conftest.$ac_objext conftest$ac_exeext
18926if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18927  (eval $ac_link) 2>conftest.er1
18928  ac_status=$?
18929  grep -v '^ *+' conftest.er1 >conftest.err
18930  rm -f conftest.er1
18931  cat conftest.err >&5
18932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18933  (exit $ac_status); } &&
18934	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
18935  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18936  (eval $ac_try) 2>&5
18937  ac_status=$?
18938  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18939  (exit $ac_status); }; } &&
18940	 { ac_try='test -s conftest$ac_exeext'
18941  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18942  (eval $ac_try) 2>&5
18943  ac_status=$?
18944  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18945  (exit $ac_status); }; }; then
18946  ac_R_nospace=yes
18947else
18948  echo "$as_me: failed program was:" >&5
18949sed 's/^/| /' conftest.$ac_ext >&5
18950
18951ac_R_nospace=no
18952fi
18953rm -f conftest.err conftest.$ac_objext \
18954      conftest$ac_exeext conftest.$ac_ext
18955      if test $ac_R_nospace = yes; then
18956	echo "$as_me:$LINENO: result: no" >&5
18957echo "${ECHO_T}no" >&6
18958	X_LIBS="$X_LIBS -R$x_libraries"
18959      else
18960	LIBS="$ac_xsave_LIBS -R $x_libraries"
18961	cat >conftest.$ac_ext <<_ACEOF
18962/* confdefs.h.  */
18963_ACEOF
18964cat confdefs.h >>conftest.$ac_ext
18965cat >>conftest.$ac_ext <<_ACEOF
18966/* end confdefs.h.  */
18967
18968int
18969main ()
18970{
18971
18972  ;
18973  return 0;
18974}
18975_ACEOF
18976rm -f conftest.$ac_objext conftest$ac_exeext
18977if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18978  (eval $ac_link) 2>conftest.er1
18979  ac_status=$?
18980  grep -v '^ *+' conftest.er1 >conftest.err
18981  rm -f conftest.er1
18982  cat conftest.err >&5
18983  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18984  (exit $ac_status); } &&
18985	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
18986  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18987  (eval $ac_try) 2>&5
18988  ac_status=$?
18989  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18990  (exit $ac_status); }; } &&
18991	 { ac_try='test -s conftest$ac_exeext'
18992  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18993  (eval $ac_try) 2>&5
18994  ac_status=$?
18995  echo "$as_me:$LINENO: \$? = $ac_status" >&5
18996  (exit $ac_status); }; }; then
18997  ac_R_space=yes
18998else
18999  echo "$as_me: failed program was:" >&5
19000sed 's/^/| /' conftest.$ac_ext >&5
19001
19002ac_R_space=no
19003fi
19004rm -f conftest.err conftest.$ac_objext \
19005      conftest$ac_exeext conftest.$ac_ext
19006	if test $ac_R_space = yes; then
19007	  echo "$as_me:$LINENO: result: yes" >&5
19008echo "${ECHO_T}yes" >&6
19009	  X_LIBS="$X_LIBS -R $x_libraries"
19010	else
19011	  echo "$as_me:$LINENO: result: neither works" >&5
19012echo "${ECHO_T}neither works" >&6
19013	fi
19014      fi
19015      LIBS=$ac_xsave_LIBS
19016    esac
19017  fi
19018
19019  # Check for system-dependent libraries X programs must link with.
19020  # Do this before checking for the system-independent R6 libraries
19021  # (-lICE), since we may need -lsocket or whatever for X linking.
19022
19023  if test "$ISC" = yes; then
19024    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
19025  else
19026    # Martyn Johnson says this is needed for Ultrix, if the X
19027    # libraries were built with DECnet support.  And Karl Berry says
19028    # the Alpha needs dnet_stub (dnet does not exist).
19029    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
19030    cat >conftest.$ac_ext <<_ACEOF
19031/* confdefs.h.  */
19032_ACEOF
19033cat confdefs.h >>conftest.$ac_ext
19034cat >>conftest.$ac_ext <<_ACEOF
19035/* end confdefs.h.  */
19036
19037/* Override any gcc2 internal prototype to avoid an error.  */
19038#ifdef __cplusplus
19039extern "C"
19040#endif
19041/* We use char because int might match the return type of a gcc2
19042   builtin and then its argument prototype would still apply.  */
19043char XOpenDisplay ();
19044int
19045main ()
19046{
19047XOpenDisplay ();
19048  ;
19049  return 0;
19050}
19051_ACEOF
19052rm -f conftest.$ac_objext conftest$ac_exeext
19053if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19054  (eval $ac_link) 2>conftest.er1
19055  ac_status=$?
19056  grep -v '^ *+' conftest.er1 >conftest.err
19057  rm -f conftest.er1
19058  cat conftest.err >&5
19059  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19060  (exit $ac_status); } &&
19061	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
19062  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19063  (eval $ac_try) 2>&5
19064  ac_status=$?
19065  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19066  (exit $ac_status); }; } &&
19067	 { ac_try='test -s conftest$ac_exeext'
19068  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19069  (eval $ac_try) 2>&5
19070  ac_status=$?
19071  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19072  (exit $ac_status); }; }; then
19073  :
19074else
19075  echo "$as_me: failed program was:" >&5
19076sed 's/^/| /' conftest.$ac_ext >&5
19077
19078echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
19079echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
19080if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
19081  echo $ECHO_N "(cached) $ECHO_C" >&6
19082else
19083  ac_check_lib_save_LIBS=$LIBS
19084LIBS="-ldnet  $LIBS"
19085cat >conftest.$ac_ext <<_ACEOF
19086/* confdefs.h.  */
19087_ACEOF
19088cat confdefs.h >>conftest.$ac_ext
19089cat >>conftest.$ac_ext <<_ACEOF
19090/* end confdefs.h.  */
19091
19092/* Override any gcc2 internal prototype to avoid an error.  */
19093#ifdef __cplusplus
19094extern "C"
19095#endif
19096/* We use char because int might match the return type of a gcc2
19097   builtin and then its argument prototype would still apply.  */
19098char dnet_ntoa ();
19099int
19100main ()
19101{
19102dnet_ntoa ();
19103  ;
19104  return 0;
19105}
19106_ACEOF
19107rm -f conftest.$ac_objext conftest$ac_exeext
19108if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19109  (eval $ac_link) 2>conftest.er1
19110  ac_status=$?
19111  grep -v '^ *+' conftest.er1 >conftest.err
19112  rm -f conftest.er1
19113  cat conftest.err >&5
19114  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19115  (exit $ac_status); } &&
19116	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
19117  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19118  (eval $ac_try) 2>&5
19119  ac_status=$?
19120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19121  (exit $ac_status); }; } &&
19122	 { ac_try='test -s conftest$ac_exeext'
19123  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19124  (eval $ac_try) 2>&5
19125  ac_status=$?
19126  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19127  (exit $ac_status); }; }; then
19128  ac_cv_lib_dnet_dnet_ntoa=yes
19129else
19130  echo "$as_me: failed program was:" >&5
19131sed 's/^/| /' conftest.$ac_ext >&5
19132
19133ac_cv_lib_dnet_dnet_ntoa=no
19134fi
19135rm -f conftest.err conftest.$ac_objext \
19136      conftest$ac_exeext conftest.$ac_ext
19137LIBS=$ac_check_lib_save_LIBS
19138fi
19139echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
19140echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
19141if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
19142  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
19143fi
19144
19145    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
19146      echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
19147echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
19148if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
19149  echo $ECHO_N "(cached) $ECHO_C" >&6
19150else
19151  ac_check_lib_save_LIBS=$LIBS
19152LIBS="-ldnet_stub  $LIBS"
19153cat >conftest.$ac_ext <<_ACEOF
19154/* confdefs.h.  */
19155_ACEOF
19156cat confdefs.h >>conftest.$ac_ext
19157cat >>conftest.$ac_ext <<_ACEOF
19158/* end confdefs.h.  */
19159
19160/* Override any gcc2 internal prototype to avoid an error.  */
19161#ifdef __cplusplus
19162extern "C"
19163#endif
19164/* We use char because int might match the return type of a gcc2
19165   builtin and then its argument prototype would still apply.  */
19166char dnet_ntoa ();
19167int
19168main ()
19169{
19170dnet_ntoa ();
19171  ;
19172  return 0;
19173}
19174_ACEOF
19175rm -f conftest.$ac_objext conftest$ac_exeext
19176if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19177  (eval $ac_link) 2>conftest.er1
19178  ac_status=$?
19179  grep -v '^ *+' conftest.er1 >conftest.err
19180  rm -f conftest.er1
19181  cat conftest.err >&5
19182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19183  (exit $ac_status); } &&
19184	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
19185  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19186  (eval $ac_try) 2>&5
19187  ac_status=$?
19188  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19189  (exit $ac_status); }; } &&
19190	 { ac_try='test -s conftest$ac_exeext'
19191  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19192  (eval $ac_try) 2>&5
19193  ac_status=$?
19194  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19195  (exit $ac_status); }; }; then
19196  ac_cv_lib_dnet_stub_dnet_ntoa=yes
19197else
19198  echo "$as_me: failed program was:" >&5
19199sed 's/^/| /' conftest.$ac_ext >&5
19200
19201ac_cv_lib_dnet_stub_dnet_ntoa=no
19202fi
19203rm -f conftest.err conftest.$ac_objext \
19204      conftest$ac_exeext conftest.$ac_ext
19205LIBS=$ac_check_lib_save_LIBS
19206fi
19207echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
19208echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
19209if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
19210  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
19211fi
19212
19213    fi
19214fi
19215rm -f conftest.err conftest.$ac_objext \
19216      conftest$ac_exeext conftest.$ac_ext
19217    LIBS="$ac_xsave_LIBS"
19218
19219    # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
19220    # to get the SysV transport functions.
19221    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
19222    # needs -lnsl.
19223    # The nsl library prevents programs from opening the X display
19224    # on Irix 5.2, according to T.E. Dickey.
19225    # The functions gethostbyname, getservbyname, and inet_addr are
19226    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
19227    echo "$as_me:$LINENO: checking for gethostbyname" >&5
19228echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
19229if test "${ac_cv_func_gethostbyname+set}" = set; then
19230  echo $ECHO_N "(cached) $ECHO_C" >&6
19231else
19232  cat >conftest.$ac_ext <<_ACEOF
19233/* confdefs.h.  */
19234_ACEOF
19235cat confdefs.h >>conftest.$ac_ext
19236cat >>conftest.$ac_ext <<_ACEOF
19237/* end confdefs.h.  */
19238/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
19239   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19240#define gethostbyname innocuous_gethostbyname
19241
19242/* System header to define __stub macros and hopefully few prototypes,
19243    which can conflict with char gethostbyname (); below.
19244    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19245    <limits.h> exists even on freestanding compilers.  */
19246
19247#ifdef __STDC__
19248# include <limits.h>
19249#else
19250# include <assert.h>
19251#endif
19252
19253#undef gethostbyname
19254
19255/* Override any gcc2 internal prototype to avoid an error.  */
19256#ifdef __cplusplus
19257extern "C"
19258{
19259#endif
19260/* We use char because int might match the return type of a gcc2
19261   builtin and then its argument prototype would still apply.  */
19262char gethostbyname ();
19263/* The GNU C library defines this for functions which it implements
19264    to always fail with ENOSYS.  Some functions are actually named
19265    something starting with __ and the normal name is an alias.  */
19266#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
19267choke me
19268#else
19269char (*f) () = gethostbyname;
19270#endif
19271#ifdef __cplusplus
19272}
19273#endif
19274
19275int
19276main ()
19277{
19278return f != gethostbyname;
19279  ;
19280  return 0;
19281}
19282_ACEOF
19283rm -f conftest.$ac_objext conftest$ac_exeext
19284if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19285  (eval $ac_link) 2>conftest.er1
19286  ac_status=$?
19287  grep -v '^ *+' conftest.er1 >conftest.err
19288  rm -f conftest.er1
19289  cat conftest.err >&5
19290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19291  (exit $ac_status); } &&
19292	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
19293  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19294  (eval $ac_try) 2>&5
19295  ac_status=$?
19296  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19297  (exit $ac_status); }; } &&
19298	 { ac_try='test -s conftest$ac_exeext'
19299  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19300  (eval $ac_try) 2>&5
19301  ac_status=$?
19302  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19303  (exit $ac_status); }; }; then
19304  ac_cv_func_gethostbyname=yes
19305else
19306  echo "$as_me: failed program was:" >&5
19307sed 's/^/| /' conftest.$ac_ext >&5
19308
19309ac_cv_func_gethostbyname=no
19310fi
19311rm -f conftest.err conftest.$ac_objext \
19312      conftest$ac_exeext conftest.$ac_ext
19313fi
19314echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
19315echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
19316
19317    if test $ac_cv_func_gethostbyname = no; then
19318      echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
19319echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
19320if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
19321  echo $ECHO_N "(cached) $ECHO_C" >&6
19322else
19323  ac_check_lib_save_LIBS=$LIBS
19324LIBS="-lnsl  $LIBS"
19325cat >conftest.$ac_ext <<_ACEOF
19326/* confdefs.h.  */
19327_ACEOF
19328cat confdefs.h >>conftest.$ac_ext
19329cat >>conftest.$ac_ext <<_ACEOF
19330/* end confdefs.h.  */
19331
19332/* Override any gcc2 internal prototype to avoid an error.  */
19333#ifdef __cplusplus
19334extern "C"
19335#endif
19336/* We use char because int might match the return type of a gcc2
19337   builtin and then its argument prototype would still apply.  */
19338char gethostbyname ();
19339int
19340main ()
19341{
19342gethostbyname ();
19343  ;
19344  return 0;
19345}
19346_ACEOF
19347rm -f conftest.$ac_objext conftest$ac_exeext
19348if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19349  (eval $ac_link) 2>conftest.er1
19350  ac_status=$?
19351  grep -v '^ *+' conftest.er1 >conftest.err
19352  rm -f conftest.er1
19353  cat conftest.err >&5
19354  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19355  (exit $ac_status); } &&
19356	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
19357  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19358  (eval $ac_try) 2>&5
19359  ac_status=$?
19360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19361  (exit $ac_status); }; } &&
19362	 { ac_try='test -s conftest$ac_exeext'
19363  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19364  (eval $ac_try) 2>&5
19365  ac_status=$?
19366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19367  (exit $ac_status); }; }; then
19368  ac_cv_lib_nsl_gethostbyname=yes
19369else
19370  echo "$as_me: failed program was:" >&5
19371sed 's/^/| /' conftest.$ac_ext >&5
19372
19373ac_cv_lib_nsl_gethostbyname=no
19374fi
19375rm -f conftest.err conftest.$ac_objext \
19376      conftest$ac_exeext conftest.$ac_ext
19377LIBS=$ac_check_lib_save_LIBS
19378fi
19379echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
19380echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
19381if test $ac_cv_lib_nsl_gethostbyname = yes; then
19382  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
19383fi
19384
19385      if test $ac_cv_lib_nsl_gethostbyname = no; then
19386	echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
19387echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
19388if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
19389  echo $ECHO_N "(cached) $ECHO_C" >&6
19390else
19391  ac_check_lib_save_LIBS=$LIBS
19392LIBS="-lbsd  $LIBS"
19393cat >conftest.$ac_ext <<_ACEOF
19394/* confdefs.h.  */
19395_ACEOF
19396cat confdefs.h >>conftest.$ac_ext
19397cat >>conftest.$ac_ext <<_ACEOF
19398/* end confdefs.h.  */
19399
19400/* Override any gcc2 internal prototype to avoid an error.  */
19401#ifdef __cplusplus
19402extern "C"
19403#endif
19404/* We use char because int might match the return type of a gcc2
19405   builtin and then its argument prototype would still apply.  */
19406char gethostbyname ();
19407int
19408main ()
19409{
19410gethostbyname ();
19411  ;
19412  return 0;
19413}
19414_ACEOF
19415rm -f conftest.$ac_objext conftest$ac_exeext
19416if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19417  (eval $ac_link) 2>conftest.er1
19418  ac_status=$?
19419  grep -v '^ *+' conftest.er1 >conftest.err
19420  rm -f conftest.er1
19421  cat conftest.err >&5
19422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19423  (exit $ac_status); } &&
19424	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
19425  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19426  (eval $ac_try) 2>&5
19427  ac_status=$?
19428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19429  (exit $ac_status); }; } &&
19430	 { ac_try='test -s conftest$ac_exeext'
19431  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19432  (eval $ac_try) 2>&5
19433  ac_status=$?
19434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19435  (exit $ac_status); }; }; then
19436  ac_cv_lib_bsd_gethostbyname=yes
19437else
19438  echo "$as_me: failed program was:" >&5
19439sed 's/^/| /' conftest.$ac_ext >&5
19440
19441ac_cv_lib_bsd_gethostbyname=no
19442fi
19443rm -f conftest.err conftest.$ac_objext \
19444      conftest$ac_exeext conftest.$ac_ext
19445LIBS=$ac_check_lib_save_LIBS
19446fi
19447echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
19448echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
19449if test $ac_cv_lib_bsd_gethostbyname = yes; then
19450  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
19451fi
19452
19453      fi
19454    fi
19455
19456    # lieder@skyler.mavd.honeywell.com says without -lsocket,
19457    # socket/setsockopt and other routines are undefined under SCO ODT
19458    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
19459    # on later versions), says Simon Leinen: it contains gethostby*
19460    # variants that don't use the name server (or something).  -lsocket
19461    # must be given before -lnsl if both are needed.  We assume that
19462    # if connect needs -lnsl, so does gethostbyname.
19463    echo "$as_me:$LINENO: checking for connect" >&5
19464echo $ECHO_N "checking for connect... $ECHO_C" >&6
19465if test "${ac_cv_func_connect+set}" = set; then
19466  echo $ECHO_N "(cached) $ECHO_C" >&6
19467else
19468  cat >conftest.$ac_ext <<_ACEOF
19469/* confdefs.h.  */
19470_ACEOF
19471cat confdefs.h >>conftest.$ac_ext
19472cat >>conftest.$ac_ext <<_ACEOF
19473/* end confdefs.h.  */
19474/* Define connect to an innocuous variant, in case <limits.h> declares connect.
19475   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19476#define connect innocuous_connect
19477
19478/* System header to define __stub macros and hopefully few prototypes,
19479    which can conflict with char connect (); below.
19480    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19481    <limits.h> exists even on freestanding compilers.  */
19482
19483#ifdef __STDC__
19484# include <limits.h>
19485#else
19486# include <assert.h>
19487#endif
19488
19489#undef connect
19490
19491/* Override any gcc2 internal prototype to avoid an error.  */
19492#ifdef __cplusplus
19493extern "C"
19494{
19495#endif
19496/* We use char because int might match the return type of a gcc2
19497   builtin and then its argument prototype would still apply.  */
19498char connect ();
19499/* The GNU C library defines this for functions which it implements
19500    to always fail with ENOSYS.  Some functions are actually named
19501    something starting with __ and the normal name is an alias.  */
19502#if defined (__stub_connect) || defined (__stub___connect)
19503choke me
19504#else
19505char (*f) () = connect;
19506#endif
19507#ifdef __cplusplus
19508}
19509#endif
19510
19511int
19512main ()
19513{
19514return f != connect;
19515  ;
19516  return 0;
19517}
19518_ACEOF
19519rm -f conftest.$ac_objext conftest$ac_exeext
19520if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19521  (eval $ac_link) 2>conftest.er1
19522  ac_status=$?
19523  grep -v '^ *+' conftest.er1 >conftest.err
19524  rm -f conftest.er1
19525  cat conftest.err >&5
19526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19527  (exit $ac_status); } &&
19528	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
19529  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19530  (eval $ac_try) 2>&5
19531  ac_status=$?
19532  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19533  (exit $ac_status); }; } &&
19534	 { ac_try='test -s conftest$ac_exeext'
19535  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19536  (eval $ac_try) 2>&5
19537  ac_status=$?
19538  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19539  (exit $ac_status); }; }; then
19540  ac_cv_func_connect=yes
19541else
19542  echo "$as_me: failed program was:" >&5
19543sed 's/^/| /' conftest.$ac_ext >&5
19544
19545ac_cv_func_connect=no
19546fi
19547rm -f conftest.err conftest.$ac_objext \
19548      conftest$ac_exeext conftest.$ac_ext
19549fi
19550echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
19551echo "${ECHO_T}$ac_cv_func_connect" >&6
19552
19553    if test $ac_cv_func_connect = no; then
19554      echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
19555echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
19556if test "${ac_cv_lib_socket_connect+set}" = set; then
19557  echo $ECHO_N "(cached) $ECHO_C" >&6
19558else
19559  ac_check_lib_save_LIBS=$LIBS
19560LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
19561cat >conftest.$ac_ext <<_ACEOF
19562/* confdefs.h.  */
19563_ACEOF
19564cat confdefs.h >>conftest.$ac_ext
19565cat >>conftest.$ac_ext <<_ACEOF
19566/* end confdefs.h.  */
19567
19568/* Override any gcc2 internal prototype to avoid an error.  */
19569#ifdef __cplusplus
19570extern "C"
19571#endif
19572/* We use char because int might match the return type of a gcc2
19573   builtin and then its argument prototype would still apply.  */
19574char connect ();
19575int
19576main ()
19577{
19578connect ();
19579  ;
19580  return 0;
19581}
19582_ACEOF
19583rm -f conftest.$ac_objext conftest$ac_exeext
19584if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19585  (eval $ac_link) 2>conftest.er1
19586  ac_status=$?
19587  grep -v '^ *+' conftest.er1 >conftest.err
19588  rm -f conftest.er1
19589  cat conftest.err >&5
19590  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19591  (exit $ac_status); } &&
19592	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
19593  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19594  (eval $ac_try) 2>&5
19595  ac_status=$?
19596  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19597  (exit $ac_status); }; } &&
19598	 { ac_try='test -s conftest$ac_exeext'
19599  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19600  (eval $ac_try) 2>&5
19601  ac_status=$?
19602  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19603  (exit $ac_status); }; }; then
19604  ac_cv_lib_socket_connect=yes
19605else
19606  echo "$as_me: failed program was:" >&5
19607sed 's/^/| /' conftest.$ac_ext >&5
19608
19609ac_cv_lib_socket_connect=no
19610fi
19611rm -f conftest.err conftest.$ac_objext \
19612      conftest$ac_exeext conftest.$ac_ext
19613LIBS=$ac_check_lib_save_LIBS
19614fi
19615echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
19616echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
19617if test $ac_cv_lib_socket_connect = yes; then
19618  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
19619fi
19620
19621    fi
19622
19623    # Guillermo Gomez says -lposix is necessary on A/UX.
19624    echo "$as_me:$LINENO: checking for remove" >&5
19625echo $ECHO_N "checking for remove... $ECHO_C" >&6
19626if test "${ac_cv_func_remove+set}" = set; then
19627  echo $ECHO_N "(cached) $ECHO_C" >&6
19628else
19629  cat >conftest.$ac_ext <<_ACEOF
19630/* confdefs.h.  */
19631_ACEOF
19632cat confdefs.h >>conftest.$ac_ext
19633cat >>conftest.$ac_ext <<_ACEOF
19634/* end confdefs.h.  */
19635/* Define remove to an innocuous variant, in case <limits.h> declares remove.
19636   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19637#define remove innocuous_remove
19638
19639/* System header to define __stub macros and hopefully few prototypes,
19640    which can conflict with char remove (); below.
19641    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19642    <limits.h> exists even on freestanding compilers.  */
19643
19644#ifdef __STDC__
19645# include <limits.h>
19646#else
19647# include <assert.h>
19648#endif
19649
19650#undef remove
19651
19652/* Override any gcc2 internal prototype to avoid an error.  */
19653#ifdef __cplusplus
19654extern "C"
19655{
19656#endif
19657/* We use char because int might match the return type of a gcc2
19658   builtin and then its argument prototype would still apply.  */
19659char remove ();
19660/* The GNU C library defines this for functions which it implements
19661    to always fail with ENOSYS.  Some functions are actually named
19662    something starting with __ and the normal name is an alias.  */
19663#if defined (__stub_remove) || defined (__stub___remove)
19664choke me
19665#else
19666char (*f) () = remove;
19667#endif
19668#ifdef __cplusplus
19669}
19670#endif
19671
19672int
19673main ()
19674{
19675return f != remove;
19676  ;
19677  return 0;
19678}
19679_ACEOF
19680rm -f conftest.$ac_objext conftest$ac_exeext
19681if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19682  (eval $ac_link) 2>conftest.er1
19683  ac_status=$?
19684  grep -v '^ *+' conftest.er1 >conftest.err
19685  rm -f conftest.er1
19686  cat conftest.err >&5
19687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19688  (exit $ac_status); } &&
19689	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
19690  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19691  (eval $ac_try) 2>&5
19692  ac_status=$?
19693  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19694  (exit $ac_status); }; } &&
19695	 { ac_try='test -s conftest$ac_exeext'
19696  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19697  (eval $ac_try) 2>&5
19698  ac_status=$?
19699  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19700  (exit $ac_status); }; }; then
19701  ac_cv_func_remove=yes
19702else
19703  echo "$as_me: failed program was:" >&5
19704sed 's/^/| /' conftest.$ac_ext >&5
19705
19706ac_cv_func_remove=no
19707fi
19708rm -f conftest.err conftest.$ac_objext \
19709      conftest$ac_exeext conftest.$ac_ext
19710fi
19711echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
19712echo "${ECHO_T}$ac_cv_func_remove" >&6
19713
19714    if test $ac_cv_func_remove = no; then
19715      echo "$as_me:$LINENO: checking for remove in -lposix" >&5
19716echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
19717if test "${ac_cv_lib_posix_remove+set}" = set; then
19718  echo $ECHO_N "(cached) $ECHO_C" >&6
19719else
19720  ac_check_lib_save_LIBS=$LIBS
19721LIBS="-lposix  $LIBS"
19722cat >conftest.$ac_ext <<_ACEOF
19723/* confdefs.h.  */
19724_ACEOF
19725cat confdefs.h >>conftest.$ac_ext
19726cat >>conftest.$ac_ext <<_ACEOF
19727/* end confdefs.h.  */
19728
19729/* Override any gcc2 internal prototype to avoid an error.  */
19730#ifdef __cplusplus
19731extern "C"
19732#endif
19733/* We use char because int might match the return type of a gcc2
19734   builtin and then its argument prototype would still apply.  */
19735char remove ();
19736int
19737main ()
19738{
19739remove ();
19740  ;
19741  return 0;
19742}
19743_ACEOF
19744rm -f conftest.$ac_objext conftest$ac_exeext
19745if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19746  (eval $ac_link) 2>conftest.er1
19747  ac_status=$?
19748  grep -v '^ *+' conftest.er1 >conftest.err
19749  rm -f conftest.er1
19750  cat conftest.err >&5
19751  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19752  (exit $ac_status); } &&
19753	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
19754  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19755  (eval $ac_try) 2>&5
19756  ac_status=$?
19757  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19758  (exit $ac_status); }; } &&
19759	 { ac_try='test -s conftest$ac_exeext'
19760  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19761  (eval $ac_try) 2>&5
19762  ac_status=$?
19763  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19764  (exit $ac_status); }; }; then
19765  ac_cv_lib_posix_remove=yes
19766else
19767  echo "$as_me: failed program was:" >&5
19768sed 's/^/| /' conftest.$ac_ext >&5
19769
19770ac_cv_lib_posix_remove=no
19771fi
19772rm -f conftest.err conftest.$ac_objext \
19773      conftest$ac_exeext conftest.$ac_ext
19774LIBS=$ac_check_lib_save_LIBS
19775fi
19776echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
19777echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
19778if test $ac_cv_lib_posix_remove = yes; then
19779  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
19780fi
19781
19782    fi
19783
19784    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
19785    echo "$as_me:$LINENO: checking for shmat" >&5
19786echo $ECHO_N "checking for shmat... $ECHO_C" >&6
19787if test "${ac_cv_func_shmat+set}" = set; then
19788  echo $ECHO_N "(cached) $ECHO_C" >&6
19789else
19790  cat >conftest.$ac_ext <<_ACEOF
19791/* confdefs.h.  */
19792_ACEOF
19793cat confdefs.h >>conftest.$ac_ext
19794cat >>conftest.$ac_ext <<_ACEOF
19795/* end confdefs.h.  */
19796/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
19797   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19798#define shmat innocuous_shmat
19799
19800/* System header to define __stub macros and hopefully few prototypes,
19801    which can conflict with char shmat (); below.
19802    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19803    <limits.h> exists even on freestanding compilers.  */
19804
19805#ifdef __STDC__
19806# include <limits.h>
19807#else
19808# include <assert.h>
19809#endif
19810
19811#undef shmat
19812
19813/* Override any gcc2 internal prototype to avoid an error.  */
19814#ifdef __cplusplus
19815extern "C"
19816{
19817#endif
19818/* We use char because int might match the return type of a gcc2
19819   builtin and then its argument prototype would still apply.  */
19820char shmat ();
19821/* The GNU C library defines this for functions which it implements
19822    to always fail with ENOSYS.  Some functions are actually named
19823    something starting with __ and the normal name is an alias.  */
19824#if defined (__stub_shmat) || defined (__stub___shmat)
19825choke me
19826#else
19827char (*f) () = shmat;
19828#endif
19829#ifdef __cplusplus
19830}
19831#endif
19832
19833int
19834main ()
19835{
19836return f != shmat;
19837  ;
19838  return 0;
19839}
19840_ACEOF
19841rm -f conftest.$ac_objext conftest$ac_exeext
19842if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19843  (eval $ac_link) 2>conftest.er1
19844  ac_status=$?
19845  grep -v '^ *+' conftest.er1 >conftest.err
19846  rm -f conftest.er1
19847  cat conftest.err >&5
19848  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19849  (exit $ac_status); } &&
19850	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
19851  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19852  (eval $ac_try) 2>&5
19853  ac_status=$?
19854  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19855  (exit $ac_status); }; } &&
19856	 { ac_try='test -s conftest$ac_exeext'
19857  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19858  (eval $ac_try) 2>&5
19859  ac_status=$?
19860  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19861  (exit $ac_status); }; }; then
19862  ac_cv_func_shmat=yes
19863else
19864  echo "$as_me: failed program was:" >&5
19865sed 's/^/| /' conftest.$ac_ext >&5
19866
19867ac_cv_func_shmat=no
19868fi
19869rm -f conftest.err conftest.$ac_objext \
19870      conftest$ac_exeext conftest.$ac_ext
19871fi
19872echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
19873echo "${ECHO_T}$ac_cv_func_shmat" >&6
19874
19875    if test $ac_cv_func_shmat = no; then
19876      echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
19877echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
19878if test "${ac_cv_lib_ipc_shmat+set}" = set; then
19879  echo $ECHO_N "(cached) $ECHO_C" >&6
19880else
19881  ac_check_lib_save_LIBS=$LIBS
19882LIBS="-lipc  $LIBS"
19883cat >conftest.$ac_ext <<_ACEOF
19884/* confdefs.h.  */
19885_ACEOF
19886cat confdefs.h >>conftest.$ac_ext
19887cat >>conftest.$ac_ext <<_ACEOF
19888/* end confdefs.h.  */
19889
19890/* Override any gcc2 internal prototype to avoid an error.  */
19891#ifdef __cplusplus
19892extern "C"
19893#endif
19894/* We use char because int might match the return type of a gcc2
19895   builtin and then its argument prototype would still apply.  */
19896char shmat ();
19897int
19898main ()
19899{
19900shmat ();
19901  ;
19902  return 0;
19903}
19904_ACEOF
19905rm -f conftest.$ac_objext conftest$ac_exeext
19906if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19907  (eval $ac_link) 2>conftest.er1
19908  ac_status=$?
19909  grep -v '^ *+' conftest.er1 >conftest.err
19910  rm -f conftest.er1
19911  cat conftest.err >&5
19912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19913  (exit $ac_status); } &&
19914	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
19915  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19916  (eval $ac_try) 2>&5
19917  ac_status=$?
19918  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19919  (exit $ac_status); }; } &&
19920	 { ac_try='test -s conftest$ac_exeext'
19921  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19922  (eval $ac_try) 2>&5
19923  ac_status=$?
19924  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19925  (exit $ac_status); }; }; then
19926  ac_cv_lib_ipc_shmat=yes
19927else
19928  echo "$as_me: failed program was:" >&5
19929sed 's/^/| /' conftest.$ac_ext >&5
19930
19931ac_cv_lib_ipc_shmat=no
19932fi
19933rm -f conftest.err conftest.$ac_objext \
19934      conftest$ac_exeext conftest.$ac_ext
19935LIBS=$ac_check_lib_save_LIBS
19936fi
19937echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
19938echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
19939if test $ac_cv_lib_ipc_shmat = yes; then
19940  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
19941fi
19942
19943    fi
19944  fi
19945
19946  # Check for libraries that X11R6 Xt/Xaw programs need.
19947  ac_save_LDFLAGS=$LDFLAGS
19948  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
19949  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
19950  # check for ICE first), but we must link in the order -lSM -lICE or
19951  # we get undefined symbols.  So assume we have SM if we have ICE.
19952  # These have to be linked with before -lX11, unlike the other
19953  # libraries we check for below, so use a different variable.
19954  # John Interrante, Karl Berry
19955  echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
19956echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
19957if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
19958  echo $ECHO_N "(cached) $ECHO_C" >&6
19959else
19960  ac_check_lib_save_LIBS=$LIBS
19961LIBS="-lICE $X_EXTRA_LIBS $LIBS"
19962cat >conftest.$ac_ext <<_ACEOF
19963/* confdefs.h.  */
19964_ACEOF
19965cat confdefs.h >>conftest.$ac_ext
19966cat >>conftest.$ac_ext <<_ACEOF
19967/* end confdefs.h.  */
19968
19969/* Override any gcc2 internal prototype to avoid an error.  */
19970#ifdef __cplusplus
19971extern "C"
19972#endif
19973/* We use char because int might match the return type of a gcc2
19974   builtin and then its argument prototype would still apply.  */
19975char IceConnectionNumber ();
19976int
19977main ()
19978{
19979IceConnectionNumber ();
19980  ;
19981  return 0;
19982}
19983_ACEOF
19984rm -f conftest.$ac_objext conftest$ac_exeext
19985if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19986  (eval $ac_link) 2>conftest.er1
19987  ac_status=$?
19988  grep -v '^ *+' conftest.er1 >conftest.err
19989  rm -f conftest.er1
19990  cat conftest.err >&5
19991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19992  (exit $ac_status); } &&
19993	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
19994  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19995  (eval $ac_try) 2>&5
19996  ac_status=$?
19997  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19998  (exit $ac_status); }; } &&
19999	 { ac_try='test -s conftest$ac_exeext'
20000  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20001  (eval $ac_try) 2>&5
20002  ac_status=$?
20003  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20004  (exit $ac_status); }; }; then
20005  ac_cv_lib_ICE_IceConnectionNumber=yes
20006else
20007  echo "$as_me: failed program was:" >&5
20008sed 's/^/| /' conftest.$ac_ext >&5
20009
20010ac_cv_lib_ICE_IceConnectionNumber=no
20011fi
20012rm -f conftest.err conftest.$ac_objext \
20013      conftest$ac_exeext conftest.$ac_ext
20014LIBS=$ac_check_lib_save_LIBS
20015fi
20016echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
20017echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
20018if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
20019  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
20020fi
20021
20022  LDFLAGS=$ac_save_LDFLAGS
20023
20024fi
20025
20026
20027
20028
20029
20030
20031  echo "$as_me:$LINENO: checking for OpenGL" >&5
20032echo $ECHO_N "checking for OpenGL... $ECHO_C" >&6
20033if test "${mdl_cv_have_OpenGL+set}" = set; then
20034  echo $ECHO_N "(cached) $ECHO_C" >&6
20035else
20036
20037
20038# Check whether --with---with-Mesa or --without---with-Mesa was given.
20039if test "${with___with_Mesa+set}" = set; then
20040  withval="$with___with_Mesa"
20041  with_Mesa_help_string
20042fi;
20043    # Check whether --enable-Mesa or --disable-Mesa was given.
20044if test "${enable_Mesa+set}" = set; then
20045  enableval="$enable_Mesa"
20046  use_Mesa=$enableval
20047else
20048  use_Mesa=yes
20049fi;
20050
20051    if test x"$use_Mesa" = xyes; then
20052       GL_search_list="MesaGL   GL"
20053      GLU_search_list="MesaGLU GLU"
20054      GLX_search_list="MesaGLX GLX"
20055    else
20056      GL_search_list="GL  MesaGL"
20057      GLU_search_list="GLU MesaGLU"
20058      GLX_search_list="GLX MesaGLX"
20059    fi
20060
20061
20062
20063    ac_ext=c
20064ac_cpp='$CPP $CPPFLAGS'
20065ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20066ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20067ac_compiler_gnu=$ac_cv_c_compiler_gnu
20068
20069
20070if test x"$no_x" != xyes; then
20071  GL_CFLAGS="$X_CFLAGS"
20072  GL_X_LIBS="$X_PRE_LIBS $X_LIBS -lX11 -lXext -lXt -lXi $X_EXTRA_LIBS"
20073fi
20074    GL_save_CPPFLAGS="$CPPFLAGS"
20075    CPPFLAGS="$GL_CFLAGS"
20076
20077    GL_save_LIBS="$LIBS"
20078    LIBS="$GL_X_LIBS"
20079
20080
20081    # Save the "AC_MSG_RESULT file descriptor" to FD 8.
20082    exec 8>&6
20083
20084    # Temporarily turn off AC_MSG_RESULT so that the user gets pretty
20085    # messages.
20086    exec 6>/dev/null
20087
20088    echo "$as_me:$LINENO: checking for library containing glAccum" >&5
20089echo $ECHO_N "checking for library containing glAccum... $ECHO_C" >&6
20090if test "${ac_cv_search_glAccum+set}" = set; then
20091  echo $ECHO_N "(cached) $ECHO_C" >&6
20092else
20093  ac_func_search_save_LIBS=$LIBS
20094ac_cv_search_glAccum=no
20095cat >conftest.$ac_ext <<_ACEOF
20096/* confdefs.h.  */
20097_ACEOF
20098cat confdefs.h >>conftest.$ac_ext
20099cat >>conftest.$ac_ext <<_ACEOF
20100/* end confdefs.h.  */
20101
20102/* Override any gcc2 internal prototype to avoid an error.  */
20103#ifdef __cplusplus
20104extern "C"
20105#endif
20106/* We use char because int might match the return type of a gcc2
20107   builtin and then its argument prototype would still apply.  */
20108char glAccum ();
20109int
20110main ()
20111{
20112glAccum ();
20113  ;
20114  return 0;
20115}
20116_ACEOF
20117rm -f conftest.$ac_objext conftest$ac_exeext
20118if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20119  (eval $ac_link) 2>conftest.er1
20120  ac_status=$?
20121  grep -v '^ *+' conftest.er1 >conftest.err
20122  rm -f conftest.er1
20123  cat conftest.err >&5
20124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20125  (exit $ac_status); } &&
20126	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
20127  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20128  (eval $ac_try) 2>&5
20129  ac_status=$?
20130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20131  (exit $ac_status); }; } &&
20132	 { ac_try='test -s conftest$ac_exeext'
20133  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20134  (eval $ac_try) 2>&5
20135  ac_status=$?
20136  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20137  (exit $ac_status); }; }; then
20138  ac_cv_search_glAccum="none required"
20139else
20140  echo "$as_me: failed program was:" >&5
20141sed 's/^/| /' conftest.$ac_ext >&5
20142
20143fi
20144rm -f conftest.err conftest.$ac_objext \
20145      conftest$ac_exeext conftest.$ac_ext
20146if test "$ac_cv_search_glAccum" = no; then
20147  for ac_lib in $GL_search_list; do
20148    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20149    cat >conftest.$ac_ext <<_ACEOF
20150/* confdefs.h.  */
20151_ACEOF
20152cat confdefs.h >>conftest.$ac_ext
20153cat >>conftest.$ac_ext <<_ACEOF
20154/* end confdefs.h.  */
20155
20156/* Override any gcc2 internal prototype to avoid an error.  */
20157#ifdef __cplusplus
20158extern "C"
20159#endif
20160/* We use char because int might match the return type of a gcc2
20161   builtin and then its argument prototype would still apply.  */
20162char glAccum ();
20163int
20164main ()
20165{
20166glAccum ();
20167  ;
20168  return 0;
20169}
20170_ACEOF
20171rm -f conftest.$ac_objext conftest$ac_exeext
20172if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20173  (eval $ac_link) 2>conftest.er1
20174  ac_status=$?
20175  grep -v '^ *+' conftest.er1 >conftest.err
20176  rm -f conftest.er1
20177  cat conftest.err >&5
20178  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20179  (exit $ac_status); } &&
20180	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
20181  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20182  (eval $ac_try) 2>&5
20183  ac_status=$?
20184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20185  (exit $ac_status); }; } &&
20186	 { ac_try='test -s conftest$ac_exeext'
20187  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20188  (eval $ac_try) 2>&5
20189  ac_status=$?
20190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20191  (exit $ac_status); }; }; then
20192  ac_cv_search_glAccum="-l$ac_lib"
20193break
20194else
20195  echo "$as_me: failed program was:" >&5
20196sed 's/^/| /' conftest.$ac_ext >&5
20197
20198fi
20199rm -f conftest.err conftest.$ac_objext \
20200      conftest$ac_exeext conftest.$ac_ext
20201  done
20202fi
20203LIBS=$ac_func_search_save_LIBS
20204fi
20205echo "$as_me:$LINENO: result: $ac_cv_search_glAccum" >&5
20206echo "${ECHO_T}$ac_cv_search_glAccum" >&6
20207if test "$ac_cv_search_glAccum" != no; then
20208  test "$ac_cv_search_glAccum" = "none required" || LIBS="$ac_cv_search_glAccum $LIBS"
20209  have_GL=yes
20210else
20211  have_GL=no
20212fi
20213
20214    echo "$as_me:$LINENO: checking for library containing gluBeginCurve" >&5
20215echo $ECHO_N "checking for library containing gluBeginCurve... $ECHO_C" >&6
20216if test "${ac_cv_search_gluBeginCurve+set}" = set; then
20217  echo $ECHO_N "(cached) $ECHO_C" >&6
20218else
20219  ac_func_search_save_LIBS=$LIBS
20220ac_cv_search_gluBeginCurve=no
20221cat >conftest.$ac_ext <<_ACEOF
20222/* confdefs.h.  */
20223_ACEOF
20224cat confdefs.h >>conftest.$ac_ext
20225cat >>conftest.$ac_ext <<_ACEOF
20226/* end confdefs.h.  */
20227
20228/* Override any gcc2 internal prototype to avoid an error.  */
20229#ifdef __cplusplus
20230extern "C"
20231#endif
20232/* We use char because int might match the return type of a gcc2
20233   builtin and then its argument prototype would still apply.  */
20234char gluBeginCurve ();
20235int
20236main ()
20237{
20238gluBeginCurve ();
20239  ;
20240  return 0;
20241}
20242_ACEOF
20243rm -f conftest.$ac_objext conftest$ac_exeext
20244if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20245  (eval $ac_link) 2>conftest.er1
20246  ac_status=$?
20247  grep -v '^ *+' conftest.er1 >conftest.err
20248  rm -f conftest.er1
20249  cat conftest.err >&5
20250  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20251  (exit $ac_status); } &&
20252	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
20253  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20254  (eval $ac_try) 2>&5
20255  ac_status=$?
20256  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20257  (exit $ac_status); }; } &&
20258	 { ac_try='test -s conftest$ac_exeext'
20259  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20260  (eval $ac_try) 2>&5
20261  ac_status=$?
20262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20263  (exit $ac_status); }; }; then
20264  ac_cv_search_gluBeginCurve="none required"
20265else
20266  echo "$as_me: failed program was:" >&5
20267sed 's/^/| /' conftest.$ac_ext >&5
20268
20269fi
20270rm -f conftest.err conftest.$ac_objext \
20271      conftest$ac_exeext conftest.$ac_ext
20272if test "$ac_cv_search_gluBeginCurve" = no; then
20273  for ac_lib in $GLU_search_list; do
20274    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20275    cat >conftest.$ac_ext <<_ACEOF
20276/* confdefs.h.  */
20277_ACEOF
20278cat confdefs.h >>conftest.$ac_ext
20279cat >>conftest.$ac_ext <<_ACEOF
20280/* end confdefs.h.  */
20281
20282/* Override any gcc2 internal prototype to avoid an error.  */
20283#ifdef __cplusplus
20284extern "C"
20285#endif
20286/* We use char because int might match the return type of a gcc2
20287   builtin and then its argument prototype would still apply.  */
20288char gluBeginCurve ();
20289int
20290main ()
20291{
20292gluBeginCurve ();
20293  ;
20294  return 0;
20295}
20296_ACEOF
20297rm -f conftest.$ac_objext conftest$ac_exeext
20298if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20299  (eval $ac_link) 2>conftest.er1
20300  ac_status=$?
20301  grep -v '^ *+' conftest.er1 >conftest.err
20302  rm -f conftest.er1
20303  cat conftest.err >&5
20304  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20305  (exit $ac_status); } &&
20306	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
20307  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20308  (eval $ac_try) 2>&5
20309  ac_status=$?
20310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20311  (exit $ac_status); }; } &&
20312	 { ac_try='test -s conftest$ac_exeext'
20313  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20314  (eval $ac_try) 2>&5
20315  ac_status=$?
20316  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20317  (exit $ac_status); }; }; then
20318  ac_cv_search_gluBeginCurve="-l$ac_lib"
20319break
20320else
20321  echo "$as_me: failed program was:" >&5
20322sed 's/^/| /' conftest.$ac_ext >&5
20323
20324fi
20325rm -f conftest.err conftest.$ac_objext \
20326      conftest$ac_exeext conftest.$ac_ext
20327  done
20328fi
20329LIBS=$ac_func_search_save_LIBS
20330fi
20331echo "$as_me:$LINENO: result: $ac_cv_search_gluBeginCurve" >&5
20332echo "${ECHO_T}$ac_cv_search_gluBeginCurve" >&6
20333if test "$ac_cv_search_gluBeginCurve" != no; then
20334  test "$ac_cv_search_gluBeginCurve" = "none required" || LIBS="$ac_cv_search_gluBeginCurve $LIBS"
20335  have_GLU=yes
20336else
20337  have_GLU=no
20338fi
20339
20340    echo "$as_me:$LINENO: checking for library containing glXChooseVisual" >&5
20341echo $ECHO_N "checking for library containing glXChooseVisual... $ECHO_C" >&6
20342if test "${ac_cv_search_glXChooseVisual+set}" = set; then
20343  echo $ECHO_N "(cached) $ECHO_C" >&6
20344else
20345  ac_func_search_save_LIBS=$LIBS
20346ac_cv_search_glXChooseVisual=no
20347cat >conftest.$ac_ext <<_ACEOF
20348/* confdefs.h.  */
20349_ACEOF
20350cat confdefs.h >>conftest.$ac_ext
20351cat >>conftest.$ac_ext <<_ACEOF
20352/* end confdefs.h.  */
20353
20354/* Override any gcc2 internal prototype to avoid an error.  */
20355#ifdef __cplusplus
20356extern "C"
20357#endif
20358/* We use char because int might match the return type of a gcc2
20359   builtin and then its argument prototype would still apply.  */
20360char glXChooseVisual ();
20361int
20362main ()
20363{
20364glXChooseVisual ();
20365  ;
20366  return 0;
20367}
20368_ACEOF
20369rm -f conftest.$ac_objext conftest$ac_exeext
20370if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20371  (eval $ac_link) 2>conftest.er1
20372  ac_status=$?
20373  grep -v '^ *+' conftest.er1 >conftest.err
20374  rm -f conftest.er1
20375  cat conftest.err >&5
20376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20377  (exit $ac_status); } &&
20378	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
20379  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20380  (eval $ac_try) 2>&5
20381  ac_status=$?
20382  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20383  (exit $ac_status); }; } &&
20384	 { ac_try='test -s conftest$ac_exeext'
20385  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20386  (eval $ac_try) 2>&5
20387  ac_status=$?
20388  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20389  (exit $ac_status); }; }; then
20390  ac_cv_search_glXChooseVisual="none required"
20391else
20392  echo "$as_me: failed program was:" >&5
20393sed 's/^/| /' conftest.$ac_ext >&5
20394
20395fi
20396rm -f conftest.err conftest.$ac_objext \
20397      conftest$ac_exeext conftest.$ac_ext
20398if test "$ac_cv_search_glXChooseVisual" = no; then
20399  for ac_lib in $GLX_search_list; do
20400    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20401    cat >conftest.$ac_ext <<_ACEOF
20402/* confdefs.h.  */
20403_ACEOF
20404cat confdefs.h >>conftest.$ac_ext
20405cat >>conftest.$ac_ext <<_ACEOF
20406/* end confdefs.h.  */
20407
20408/* Override any gcc2 internal prototype to avoid an error.  */
20409#ifdef __cplusplus
20410extern "C"
20411#endif
20412/* We use char because int might match the return type of a gcc2
20413   builtin and then its argument prototype would still apply.  */
20414char glXChooseVisual ();
20415int
20416main ()
20417{
20418glXChooseVisual ();
20419  ;
20420  return 0;
20421}
20422_ACEOF
20423rm -f conftest.$ac_objext conftest$ac_exeext
20424if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20425  (eval $ac_link) 2>conftest.er1
20426  ac_status=$?
20427  grep -v '^ *+' conftest.er1 >conftest.err
20428  rm -f conftest.er1
20429  cat conftest.err >&5
20430  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20431  (exit $ac_status); } &&
20432	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
20433  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20434  (eval $ac_try) 2>&5
20435  ac_status=$?
20436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20437  (exit $ac_status); }; } &&
20438	 { ac_try='test -s conftest$ac_exeext'
20439  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20440  (eval $ac_try) 2>&5
20441  ac_status=$?
20442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20443  (exit $ac_status); }; }; then
20444  ac_cv_search_glXChooseVisual="-l$ac_lib"
20445break
20446else
20447  echo "$as_me: failed program was:" >&5
20448sed 's/^/| /' conftest.$ac_ext >&5
20449
20450fi
20451rm -f conftest.err conftest.$ac_objext \
20452      conftest$ac_exeext conftest.$ac_ext
20453  done
20454fi
20455LIBS=$ac_func_search_save_LIBS
20456fi
20457echo "$as_me:$LINENO: result: $ac_cv_search_glXChooseVisual" >&5
20458echo "${ECHO_T}$ac_cv_search_glXChooseVisual" >&6
20459if test "$ac_cv_search_glXChooseVisual" != no; then
20460  test "$ac_cv_search_glXChooseVisual" = "none required" || LIBS="$ac_cv_search_glXChooseVisual $LIBS"
20461  have_GLX=yes
20462else
20463  have_GLX=no
20464fi
20465
20466    echo "$as_me:$LINENO: checking for library containing glutInit" >&5
20467echo $ECHO_N "checking for library containing glutInit... $ECHO_C" >&6
20468if test "${ac_cv_search_glutInit+set}" = set; then
20469  echo $ECHO_N "(cached) $ECHO_C" >&6
20470else
20471  ac_func_search_save_LIBS=$LIBS
20472ac_cv_search_glutInit=no
20473cat >conftest.$ac_ext <<_ACEOF
20474/* confdefs.h.  */
20475_ACEOF
20476cat confdefs.h >>conftest.$ac_ext
20477cat >>conftest.$ac_ext <<_ACEOF
20478/* end confdefs.h.  */
20479
20480/* Override any gcc2 internal prototype to avoid an error.  */
20481#ifdef __cplusplus
20482extern "C"
20483#endif
20484/* We use char because int might match the return type of a gcc2
20485   builtin and then its argument prototype would still apply.  */
20486char glutInit ();
20487int
20488main ()
20489{
20490glutInit ();
20491  ;
20492  return 0;
20493}
20494_ACEOF
20495rm -f conftest.$ac_objext conftest$ac_exeext
20496if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20497  (eval $ac_link) 2>conftest.er1
20498  ac_status=$?
20499  grep -v '^ *+' conftest.er1 >conftest.err
20500  rm -f conftest.er1
20501  cat conftest.err >&5
20502  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20503  (exit $ac_status); } &&
20504	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
20505  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20506  (eval $ac_try) 2>&5
20507  ac_status=$?
20508  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20509  (exit $ac_status); }; } &&
20510	 { ac_try='test -s conftest$ac_exeext'
20511  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20512  (eval $ac_try) 2>&5
20513  ac_status=$?
20514  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20515  (exit $ac_status); }; }; then
20516  ac_cv_search_glutInit="none required"
20517else
20518  echo "$as_me: failed program was:" >&5
20519sed 's/^/| /' conftest.$ac_ext >&5
20520
20521fi
20522rm -f conftest.err conftest.$ac_objext \
20523      conftest$ac_exeext conftest.$ac_ext
20524if test "$ac_cv_search_glutInit" = no; then
20525  for ac_lib in glut; do
20526    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20527    cat >conftest.$ac_ext <<_ACEOF
20528/* confdefs.h.  */
20529_ACEOF
20530cat confdefs.h >>conftest.$ac_ext
20531cat >>conftest.$ac_ext <<_ACEOF
20532/* end confdefs.h.  */
20533
20534/* Override any gcc2 internal prototype to avoid an error.  */
20535#ifdef __cplusplus
20536extern "C"
20537#endif
20538/* We use char because int might match the return type of a gcc2
20539   builtin and then its argument prototype would still apply.  */
20540char glutInit ();
20541int
20542main ()
20543{
20544glutInit ();
20545  ;
20546  return 0;
20547}
20548_ACEOF
20549rm -f conftest.$ac_objext conftest$ac_exeext
20550if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20551  (eval $ac_link) 2>conftest.er1
20552  ac_status=$?
20553  grep -v '^ *+' conftest.er1 >conftest.err
20554  rm -f conftest.er1
20555  cat conftest.err >&5
20556  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20557  (exit $ac_status); } &&
20558	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
20559  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20560  (eval $ac_try) 2>&5
20561  ac_status=$?
20562  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20563  (exit $ac_status); }; } &&
20564	 { ac_try='test -s conftest$ac_exeext'
20565  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20566  (eval $ac_try) 2>&5
20567  ac_status=$?
20568  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20569  (exit $ac_status); }; }; then
20570  ac_cv_search_glutInit="-l$ac_lib"
20571break
20572else
20573  echo "$as_me: failed program was:" >&5
20574sed 's/^/| /' conftest.$ac_ext >&5
20575
20576fi
20577rm -f conftest.err conftest.$ac_objext \
20578      conftest$ac_exeext conftest.$ac_ext
20579  done
20580fi
20581LIBS=$ac_func_search_save_LIBS
20582fi
20583echo "$as_me:$LINENO: result: $ac_cv_search_glutInit" >&5
20584echo "${ECHO_T}$ac_cv_search_glutInit" >&6
20585if test "$ac_cv_search_glutInit" != no; then
20586  test "$ac_cv_search_glutInit" = "none required" || LIBS="$ac_cv_search_glutInit $LIBS"
20587  have_glut=yes
20588else
20589  have_glut=no
20590fi
20591
20592
20593
20594
20595    # Restore pretty messages.
20596    exec 6>&8
20597
20598    if test -n "$LIBS"; then
20599      mdl_cv_have_OpenGL=yes
20600      GL_LIBS="$LIBS"
20601
20602
20603    else
20604      mdl_cv_have_OpenGL=no
20605      GL_CFLAGS=
20606    fi
20607
20608    GL_X_LIBS=
20609
20610    LIBS="$GL_save_LIBS"
20611    CPPFLAGS="$GL_save_CPPFLAGS"
20612
20613    ac_ext=c
20614ac_cpp='$CPP $CPPFLAGS'
20615ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20616ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20617ac_compiler_gnu=$ac_cv_c_compiler_gnu
20618
20619
20620    mdl_cv_GL_CFLAGS="$GL_CFLAGS"
20621    mdl_cv_GL_LIBS="$GL_LIBS"
20622    mdl_cv_have_GL="$have_GL"
20623    mdl_cv_have_GLU="$have_GLU"
20624    mdl_cv_have_GLX="$have_GLX"
20625    mdl_cv_have_glut="$have_glut"
20626
20627fi
20628echo "$as_me:$LINENO: result: $mdl_cv_have_OpenGL" >&5
20629echo "${ECHO_T}$mdl_cv_have_OpenGL" >&6
20630  GL_CFLAGS="$mdl_cv_GL_CFLAGS"
20631  GL_LIBS="$mdl_cv_GL_LIBS"
20632  have_GL="$mdl_cv_have_GL"
20633  have_GLU="$mdl_cv_have_GLU"
20634  have_GLX="$mdl_cv_have_GLX"
20635  have_glut="$mdl_cv_have_glut"
20636
20637
20638if test $have_GL != yes; then
20639	{ { echo "$as_me:$LINENO: error: Fatal - can't find OpenGL Libraries - Stopping here." >&5
20640echo "$as_me: error: Fatal - can't find OpenGL Libraries - Stopping here." >&2;}
20641   { (exit 1); exit 1; }; }
20642else
20643if test $have_GLU != yes; then
20644	{ { echo "$as_me:$LINENO: error: Fatal - can't find GLU Libraries - Stopping here." >&5
20645echo "$as_me: error: Fatal - can't find GLU Libraries - Stopping here." >&2;}
20646   { (exit 1); exit 1; }; }
20647else
20648	LDFLAGS="${GL_LIBS} $LDFLAGS"
20649	CPPFLAGS="${GL_CFLAGS} $CPPFLAGS"
20650fi
20651
20652fi
20653
20654
20655          ac_config_files="$ac_config_files Makefile"
20656cat >confcache <<\_ACEOF
20657# This file is a shell script that caches the results of configure
20658# tests run on this system so they can be shared between configure
20659# scripts and configure runs, see configure's option --config-cache.
20660# It is not useful on other systems.  If it contains results you don't
20661# want to keep, you may remove or edit it.
20662#
20663# config.status only pays attention to the cache file if you give it
20664# the --recheck option to rerun configure.
20665#
20666# `ac_cv_env_foo' variables (set or unset) will be overridden when
20667# loading this file, other *unset* `ac_cv_foo' will be assigned the
20668# following values.
20669
20670_ACEOF
20671
20672# The following way of writing the cache mishandles newlines in values,
20673# but we know of no workaround that is simple, portable, and efficient.
20674# So, don't put newlines in cache variables' values.
20675# Ultrix sh set writes to stderr and can't be redirected directly,
20676# and sets the high bit in the cache file unless we assign to the vars.
20677{
20678  (set) 2>&1 |
20679    case `(ac_space=' '; set | grep ac_space) 2>&1` in
20680    *ac_space=\ *)
20681      # `set' does not quote correctly, so add quotes (double-quote
20682      # substitution turns \\\\ into \\, and sed turns \\ into \).
20683      sed -n \
20684	"s/'/'\\\\''/g;
20685	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20686      ;;
20687    *)
20688      # `set' quotes correctly as required by POSIX, so do not add quotes.
20689      sed -n \
20690	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20691      ;;
20692    esac;
20693} |
20694  sed '
20695     t clear
20696     : clear
20697     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20698     t end
20699     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20700     : end' >>confcache
20701if diff $cache_file confcache >/dev/null 2>&1; then :; else
20702  if test -w $cache_file; then
20703    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20704    cat confcache >$cache_file
20705  else
20706    echo "not updating unwritable cache $cache_file"
20707  fi
20708fi
20709rm -f confcache
20710
20711test "x$prefix" = xNONE && prefix=$ac_default_prefix
20712# Let make expand exec_prefix.
20713test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20714
20715# VPATH may cause trouble with some makes, so we remove $(srcdir),
20716# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20717# trailing colons and then remove the whole line if VPATH becomes empty
20718# (actually we leave an empty line to preserve line numbers).
20719if test "x$srcdir" = x.; then
20720  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
20721s/:*\$(srcdir):*/:/;
20722s/:*\${srcdir}:*/:/;
20723s/:*@srcdir@:*/:/;
20724s/^\([^=]*=[	 ]*\):*/\1/;
20725s/:*$//;
20726s/^[^=]*=[	 ]*$//;
20727}'
20728fi
20729
20730# Transform confdefs.h into DEFS.
20731# Protect against shell expansion while executing Makefile rules.
20732# Protect against Makefile macro expansion.
20733#
20734# If the first sed substitution is executed (which looks for macros that
20735# take arguments), then we branch to the quote section.  Otherwise,
20736# look for a macro that doesn't take arguments.
20737cat >confdef2opt.sed <<\_ACEOF
20738t clear
20739: clear
20740s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\),-D\1=\2,g
20741t quote
20742s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\),-D\1=\2,g
20743t quote
20744d
20745: quote
20746s,[	 `~#$^&*(){}\\|;'"<>?],\\&,g
20747s,\[,\\&,g
20748s,\],\\&,g
20749s,\$,$$,g
20750p
20751_ACEOF
20752# We use echo to avoid assuming a particular line-breaking character.
20753# The extra dot is to prevent the shell from consuming trailing
20754# line-breaks from the sub-command output.  A line-break within
20755# single-quotes doesn't work because, if this script is created in a
20756# platform that uses two characters for line-breaks (e.g., DOS), tr
20757# would break.
20758ac_LF_and_DOT=`echo; echo .`
20759DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
20760rm -f confdef2opt.sed
20761
20762
20763ac_libobjs=
20764ac_ltlibobjs=
20765for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20766  # 1. Remove the extension, and $U if already installed.
20767  ac_i=`echo "$ac_i" |
20768	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20769  # 2. Add them.
20770  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20771  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20772done
20773LIBOBJS=$ac_libobjs
20774
20775LTLIBOBJS=$ac_ltlibobjs
20776
20777
20778if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20779  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
20780Usually this means the macro was only invoked conditionally." >&5
20781echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
20782Usually this means the macro was only invoked conditionally." >&2;}
20783   { (exit 1); exit 1; }; }
20784fi
20785
20786: ${CONFIG_STATUS=./config.status}
20787ac_clean_files_save=$ac_clean_files
20788ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20789{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20790echo "$as_me: creating $CONFIG_STATUS" >&6;}
20791cat >$CONFIG_STATUS <<_ACEOF
20792#! $SHELL
20793# Generated by $as_me.
20794# Run this file to recreate the current configuration.
20795# Compiler output produced by configure, useful for debugging
20796# configure, is in config.log if it exists.
20797
20798debug=false
20799ac_cs_recheck=false
20800ac_cs_silent=false
20801SHELL=\${CONFIG_SHELL-$SHELL}
20802_ACEOF
20803
20804cat >>$CONFIG_STATUS <<\_ACEOF
20805## --------------------- ##
20806## M4sh Initialization.  ##
20807## --------------------- ##
20808
20809# Be Bourne compatible
20810if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20811  emulate sh
20812  NULLCMD=:
20813  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20814  # is contrary to our usage.  Disable this feature.
20815  alias -g '${1+"$@"}'='"$@"'
20816elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20817  set -o posix
20818fi
20819DUALCASE=1; export DUALCASE # for MKS sh
20820
20821# Support unset when possible.
20822if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20823  as_unset=unset
20824else
20825  as_unset=false
20826fi
20827
20828
20829# Work around bugs in pre-3.0 UWIN ksh.
20830$as_unset ENV MAIL MAILPATH
20831PS1='$ '
20832PS2='> '
20833PS4='+ '
20834
20835# NLS nuisances.
20836for as_var in \
20837  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20838  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20839  LC_TELEPHONE LC_TIME
20840do
20841  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20842    eval $as_var=C; export $as_var
20843  else
20844    $as_unset $as_var
20845  fi
20846done
20847
20848# Required to use basename.
20849if expr a : '\(a\)' >/dev/null 2>&1; then
20850  as_expr=expr
20851else
20852  as_expr=false
20853fi
20854
20855if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20856  as_basename=basename
20857else
20858  as_basename=false
20859fi
20860
20861
20862# Name of the executable.
20863as_me=`$as_basename "$0" ||
20864$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20865	 X"$0" : 'X\(//\)$' \| \
20866	 X"$0" : 'X\(/\)$' \| \
20867	 .     : '\(.\)' 2>/dev/null ||
20868echo X/"$0" |
20869    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20870  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
20871  	  /^X\/\(\/\).*/{ s//\1/; q; }
20872  	  s/.*/./; q'`
20873
20874
20875# PATH needs CR, and LINENO needs CR and PATH.
20876# Avoid depending upon Character Ranges.
20877as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20878as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20879as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20880as_cr_digits='0123456789'
20881as_cr_alnum=$as_cr_Letters$as_cr_digits
20882
20883# The user is always right.
20884if test "${PATH_SEPARATOR+set}" != set; then
20885  echo "#! /bin/sh" >conf$$.sh
20886  echo  "exit 0"   >>conf$$.sh
20887  chmod +x conf$$.sh
20888  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20889    PATH_SEPARATOR=';'
20890  else
20891    PATH_SEPARATOR=:
20892  fi
20893  rm -f conf$$.sh
20894fi
20895
20896
20897  as_lineno_1=$LINENO
20898  as_lineno_2=$LINENO
20899  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20900  test "x$as_lineno_1" != "x$as_lineno_2" &&
20901  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
20902  # Find who we are.  Look in the path if we contain no path at all
20903  # relative or not.
20904  case $0 in
20905    *[\\/]* ) as_myself=$0 ;;
20906    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20907for as_dir in $PATH
20908do
20909  IFS=$as_save_IFS
20910  test -z "$as_dir" && as_dir=.
20911  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20912done
20913
20914       ;;
20915  esac
20916  # We did not find ourselves, most probably we were run as `sh COMMAND'
20917  # in which case we are not to be found in the path.
20918  if test "x$as_myself" = x; then
20919    as_myself=$0
20920  fi
20921  if test ! -f "$as_myself"; then
20922    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20923echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20924   { (exit 1); exit 1; }; }
20925  fi
20926  case $CONFIG_SHELL in
20927  '')
20928    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20929for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20930do
20931  IFS=$as_save_IFS
20932  test -z "$as_dir" && as_dir=.
20933  for as_base in sh bash ksh sh5; do
20934	 case $as_dir in
20935	 /*)
20936	   if ("$as_dir/$as_base" -c '
20937  as_lineno_1=$LINENO
20938  as_lineno_2=$LINENO
20939  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20940  test "x$as_lineno_1" != "x$as_lineno_2" &&
20941  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
20942	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20943	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20944	     CONFIG_SHELL=$as_dir/$as_base
20945	     export CONFIG_SHELL
20946	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20947	   fi;;
20948	 esac
20949       done
20950done
20951;;
20952  esac
20953
20954  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20955  # uniformly replaced by the line number.  The first 'sed' inserts a
20956  # line-number line before each line; the second 'sed' does the real
20957  # work.  The second script uses 'N' to pair each line-number line
20958  # with the numbered line, and appends trailing '-' during
20959  # substitution so that $LINENO is not a special case at line end.
20960  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20961  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
20962  sed '=' <$as_myself |
20963    sed '
20964      N
20965      s,$,-,
20966      : loop
20967      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20968      t loop
20969      s,-$,,
20970      s,^['$as_cr_digits']*\n,,
20971    ' >$as_me.lineno &&
20972  chmod +x $as_me.lineno ||
20973    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20974echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20975   { (exit 1); exit 1; }; }
20976
20977  # Don't try to exec as it changes $[0], causing all sort of problems
20978  # (the dirname of $[0] is not the place where we might find the
20979  # original and so on.  Autoconf is especially sensible to this).
20980  . ./$as_me.lineno
20981  # Exit status is that of the last command.
20982  exit
20983}
20984
20985
20986case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20987  *c*,-n*) ECHO_N= ECHO_C='
20988' ECHO_T='	' ;;
20989  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20990  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
20991esac
20992
20993if expr a : '\(a\)' >/dev/null 2>&1; then
20994  as_expr=expr
20995else
20996  as_expr=false
20997fi
20998
20999rm -f conf$$ conf$$.exe conf$$.file
21000echo >conf$$.file
21001if ln -s conf$$.file conf$$ 2>/dev/null; then
21002  # We could just check for DJGPP; but this test a) works b) is more generic
21003  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21004  if test -f conf$$.exe; then
21005    # Don't use ln at all; we don't have any links
21006    as_ln_s='cp -p'
21007  else
21008    as_ln_s='ln -s'
21009  fi
21010elif ln conf$$.file conf$$ 2>/dev/null; then
21011  as_ln_s=ln
21012else
21013  as_ln_s='cp -p'
21014fi
21015rm -f conf$$ conf$$.exe conf$$.file
21016
21017if mkdir -p . 2>/dev/null; then
21018  as_mkdir_p=:
21019else
21020  test -d ./-p && rmdir ./-p
21021  as_mkdir_p=false
21022fi
21023
21024as_executable_p="test -f"
21025
21026# Sed expression to map a string onto a valid CPP name.
21027as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21028
21029# Sed expression to map a string onto a valid variable name.
21030as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21031
21032
21033# IFS
21034# We need space, tab and new line, in precisely that order.
21035as_nl='
21036'
21037IFS=" 	$as_nl"
21038
21039# CDPATH.
21040$as_unset CDPATH
21041
21042exec 6>&1
21043
21044# Open the log real soon, to keep \$[0] and so on meaningful, and to
21045# report actual input values of CONFIG_FILES etc. instead of their
21046# values after options handling.  Logging --version etc. is OK.
21047exec 5>>config.log
21048{
21049  echo
21050  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21051## Running $as_me. ##
21052_ASBOX
21053} >&5
21054cat >&5 <<_CSEOF
21055
21056This file was extended by Quesa $as_me 1.8, which was
21057generated by GNU Autoconf 2.59.  Invocation command line was
21058
21059  CONFIG_FILES    = $CONFIG_FILES
21060  CONFIG_HEADERS  = $CONFIG_HEADERS
21061  CONFIG_LINKS    = $CONFIG_LINKS
21062  CONFIG_COMMANDS = $CONFIG_COMMANDS
21063  $ $0 $@
21064
21065_CSEOF
21066echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21067echo >&5
21068_ACEOF
21069
21070# Files that config.status was made for.
21071if test -n "$ac_config_files"; then
21072  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21073fi
21074
21075if test -n "$ac_config_headers"; then
21076  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21077fi
21078
21079if test -n "$ac_config_links"; then
21080  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21081fi
21082
21083if test -n "$ac_config_commands"; then
21084  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21085fi
21086
21087cat >>$CONFIG_STATUS <<\_ACEOF
21088
21089ac_cs_usage="\
21090\`$as_me' instantiates files from templates according to the
21091current configuration.
21092
21093Usage: $0 [OPTIONS] [FILE]...
21094
21095  -h, --help       print this help, then exit
21096  -V, --version    print version number, then exit
21097  -q, --quiet      do not print progress messages
21098  -d, --debug      don't remove temporary files
21099      --recheck    update $as_me by reconfiguring in the same conditions
21100  --file=FILE[:TEMPLATE]
21101		   instantiate the configuration file FILE
21102
21103Configuration files:
21104$config_files
21105
21106Report bugs to <bug-autoconf@gnu.org>."
21107_ACEOF
21108
21109cat >>$CONFIG_STATUS <<_ACEOF
21110ac_cs_version="\\
21111Quesa config.status 1.8
21112configured by $0, generated by GNU Autoconf 2.59,
21113  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21114
21115Copyright (C) 2003 Free Software Foundation, Inc.
21116This config.status script is free software; the Free Software Foundation
21117gives unlimited permission to copy, distribute and modify it."
21118srcdir=$srcdir
21119INSTALL="$INSTALL"
21120_ACEOF
21121
21122cat >>$CONFIG_STATUS <<\_ACEOF
21123# If no file are specified by the user, then we need to provide default
21124# value.  By we need to know if files were specified by the user.
21125ac_need_defaults=:
21126while test $# != 0
21127do
21128  case $1 in
21129  --*=*)
21130    ac_option=`expr "x$1" : 'x\([^=]*\)='`
21131    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21132    ac_shift=:
21133    ;;
21134  -*)
21135    ac_option=$1
21136    ac_optarg=$2
21137    ac_shift=shift
21138    ;;
21139  *) # This is not an option, so the user has probably given explicit
21140     # arguments.
21141     ac_option=$1
21142     ac_need_defaults=false;;
21143  esac
21144
21145  case $ac_option in
21146  # Handling of the options.
21147_ACEOF
21148cat >>$CONFIG_STATUS <<\_ACEOF
21149  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21150    ac_cs_recheck=: ;;
21151  --version | --vers* | -V )
21152    echo "$ac_cs_version"; exit 0 ;;
21153  --he | --h)
21154    # Conflict between --help and --header
21155    { { echo "$as_me:$LINENO: error: ambiguous option: $1
21156Try \`$0 --help' for more information." >&5
21157echo "$as_me: error: ambiguous option: $1
21158Try \`$0 --help' for more information." >&2;}
21159   { (exit 1); exit 1; }; };;
21160  --help | --hel | -h )
21161    echo "$ac_cs_usage"; exit 0 ;;
21162  --debug | --d* | -d )
21163    debug=: ;;
21164  --file | --fil | --fi | --f )
21165    $ac_shift
21166    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21167    ac_need_defaults=false;;
21168  --header | --heade | --head | --hea )
21169    $ac_shift
21170    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21171    ac_need_defaults=false;;
21172  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21173  | -silent | --silent | --silen | --sile | --sil | --si | --s)
21174    ac_cs_silent=: ;;
21175
21176  # This is an error.
21177  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21178Try \`$0 --help' for more information." >&5
21179echo "$as_me: error: unrecognized option: $1
21180Try \`$0 --help' for more information." >&2;}
21181   { (exit 1); exit 1; }; } ;;
21182
21183  *) ac_config_targets="$ac_config_targets $1" ;;
21184
21185  esac
21186  shift
21187done
21188
21189ac_configure_extra_args=
21190
21191if $ac_cs_silent; then
21192  exec 6>/dev/null
21193  ac_configure_extra_args="$ac_configure_extra_args --silent"
21194fi
21195
21196_ACEOF
21197cat >>$CONFIG_STATUS <<_ACEOF
21198if \$ac_cs_recheck; then
21199  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21200  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21201fi
21202
21203_ACEOF
21204
21205
21206
21207
21208
21209cat >>$CONFIG_STATUS <<\_ACEOF
21210for ac_config_target in $ac_config_targets
21211do
21212  case "$ac_config_target" in
21213  # Handling of arguments.
21214  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21215  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21216echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21217   { (exit 1); exit 1; }; };;
21218  esac
21219done
21220
21221# If the user did not use the arguments to specify the items to instantiate,
21222# then the envvar interface is used.  Set only those that are not.
21223# We use the long form for the default assignment because of an extremely
21224# bizarre bug on SunOS 4.1.3.
21225if $ac_need_defaults; then
21226  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21227fi
21228
21229# Have a temporary directory for convenience.  Make it in the build tree
21230# simply because there is no reason to put it here, and in addition,
21231# creating and moving files from /tmp can sometimes cause problems.
21232# Create a temporary directory, and hook for its removal unless debugging.
21233$debug ||
21234{
21235  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21236  trap '{ (exit 1); exit 1; }' 1 2 13 15
21237}
21238
21239# Create a (secure) tmp directory for tmp files.
21240
21241{
21242  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21243  test -n "$tmp" && test -d "$tmp"
21244}  ||
21245{
21246  tmp=./confstat$$-$RANDOM
21247  (umask 077 && mkdir $tmp)
21248} ||
21249{
21250   echo "$me: cannot create a temporary directory in ." >&2
21251   { (exit 1); exit 1; }
21252}
21253
21254_ACEOF
21255
21256cat >>$CONFIG_STATUS <<_ACEOF
21257
21258#
21259# CONFIG_FILES section.
21260#
21261
21262# No need to generate the scripts if there are no CONFIG_FILES.
21263# This happens for instance when ./config.status config.h
21264if test -n "\$CONFIG_FILES"; then
21265  # Protect against being on the right side of a sed subst in config.status.
21266  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21267   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21268s,@SHELL@,$SHELL,;t t
21269s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21270s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21271s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21272s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21273s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21274s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21275s,@exec_prefix@,$exec_prefix,;t t
21276s,@prefix@,$prefix,;t t
21277s,@program_transform_name@,$program_transform_name,;t t
21278s,@bindir@,$bindir,;t t
21279s,@sbindir@,$sbindir,;t t
21280s,@libexecdir@,$libexecdir,;t t
21281s,@datadir@,$datadir,;t t
21282s,@sysconfdir@,$sysconfdir,;t t
21283s,@sharedstatedir@,$sharedstatedir,;t t
21284s,@localstatedir@,$localstatedir,;t t
21285s,@libdir@,$libdir,;t t
21286s,@includedir@,$includedir,;t t
21287s,@oldincludedir@,$oldincludedir,;t t
21288s,@infodir@,$infodir,;t t
21289s,@mandir@,$mandir,;t t
21290s,@build_alias@,$build_alias,;t t
21291s,@host_alias@,$host_alias,;t t
21292s,@target_alias@,$target_alias,;t t
21293s,@DEFS@,$DEFS,;t t
21294s,@ECHO_C@,$ECHO_C,;t t
21295s,@ECHO_N@,$ECHO_N,;t t
21296s,@ECHO_T@,$ECHO_T,;t t
21297s,@LIBS@,$LIBS,;t t
21298s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21299s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21300s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21301s,@CYGPATH_W@,$CYGPATH_W,;t t
21302s,@PACKAGE@,$PACKAGE,;t t
21303s,@VERSION@,$VERSION,;t t
21304s,@ACLOCAL@,$ACLOCAL,;t t
21305s,@AUTOCONF@,$AUTOCONF,;t t
21306s,@AUTOMAKE@,$AUTOMAKE,;t t
21307s,@AUTOHEADER@,$AUTOHEADER,;t t
21308s,@MAKEINFO@,$MAKEINFO,;t t
21309s,@AMTAR@,$AMTAR,;t t
21310s,@install_sh@,$install_sh,;t t
21311s,@STRIP@,$STRIP,;t t
21312s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
21313s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
21314s,@AWK@,$AWK,;t t
21315s,@SET_MAKE@,$SET_MAKE,;t t
21316s,@am__leading_dot@,$am__leading_dot,;t t
21317s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
21318s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
21319s,@MAINT@,$MAINT,;t t
21320s,@CC@,$CC,;t t
21321s,@CFLAGS@,$CFLAGS,;t t
21322s,@LDFLAGS@,$LDFLAGS,;t t
21323s,@CPPFLAGS@,$CPPFLAGS,;t t
21324s,@ac_ct_CC@,$ac_ct_CC,;t t
21325s,@EXEEXT@,$EXEEXT,;t t
21326s,@OBJEXT@,$OBJEXT,;t t
21327s,@build@,$build,;t t
21328s,@build_cpu@,$build_cpu,;t t
21329s,@build_vendor@,$build_vendor,;t t
21330s,@build_os@,$build_os,;t t
21331s,@host@,$host,;t t
21332s,@host_cpu@,$host_cpu,;t t
21333s,@host_vendor@,$host_vendor,;t t
21334s,@host_os@,$host_os,;t t
21335s,@EGREP@,$EGREP,;t t
21336s,@LN_S@,$LN_S,;t t
21337s,@ECHO@,$ECHO,;t t
21338s,@AR@,$AR,;t t
21339s,@ac_ct_AR@,$ac_ct_AR,;t t
21340s,@RANLIB@,$RANLIB,;t t
21341s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21342s,@CPP@,$CPP,;t t
21343s,@CXX@,$CXX,;t t
21344s,@CXXFLAGS@,$CXXFLAGS,;t t
21345s,@ac_ct_CXX@,$ac_ct_CXX,;t t
21346s,@CXXCPP@,$CXXCPP,;t t
21347s,@F77@,$F77,;t t
21348s,@FFLAGS@,$FFLAGS,;t t
21349s,@ac_ct_F77@,$ac_ct_F77,;t t
21350s,@LIBTOOL@,$LIBTOOL,;t t
21351s,@X_CFLAGS@,$X_CFLAGS,;t t
21352s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
21353s,@X_LIBS@,$X_LIBS,;t t
21354s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
21355s,@GL_CFLAGS@,$GL_CFLAGS,;t t
21356s,@GL_LIBS@,$GL_LIBS,;t t
21357s,@LIBOBJS@,$LIBOBJS,;t t
21358s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21359CEOF
21360
21361_ACEOF
21362
21363  cat >>$CONFIG_STATUS <<\_ACEOF
21364  # Split the substitutions into bite-sized pieces for seds with
21365  # small command number limits, like on Digital OSF/1 and HP-UX.
21366  ac_max_sed_lines=48
21367  ac_sed_frag=1 # Number of current file.
21368  ac_beg=1 # First line for current file.
21369  ac_end=$ac_max_sed_lines # Line after last line for current file.
21370  ac_more_lines=:
21371  ac_sed_cmds=
21372  while $ac_more_lines; do
21373    if test $ac_beg -gt 1; then
21374      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21375    else
21376      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21377    fi
21378    if test ! -s $tmp/subs.frag; then
21379      ac_more_lines=false
21380    else
21381      # The purpose of the label and of the branching condition is to
21382      # speed up the sed processing (if there are no `@' at all, there
21383      # is no need to browse any of the substitutions).
21384      # These are the two extra sed commands mentioned above.
21385      (echo ':t
21386  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21387      if test -z "$ac_sed_cmds"; then
21388	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21389      else
21390	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21391      fi
21392      ac_sed_frag=`expr $ac_sed_frag + 1`
21393      ac_beg=$ac_end
21394      ac_end=`expr $ac_end + $ac_max_sed_lines`
21395    fi
21396  done
21397  if test -z "$ac_sed_cmds"; then
21398    ac_sed_cmds=cat
21399  fi
21400fi # test -n "$CONFIG_FILES"
21401
21402_ACEOF
21403cat >>$CONFIG_STATUS <<\_ACEOF
21404for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21405  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21406  case $ac_file in
21407  - | *:- | *:-:* ) # input from stdin
21408	cat >$tmp/stdin
21409	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21410	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21411  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21412	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21413  * )   ac_file_in=$ac_file.in ;;
21414  esac
21415
21416  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21417  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21418$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21419	 X"$ac_file" : 'X\(//\)[^/]' \| \
21420	 X"$ac_file" : 'X\(//\)$' \| \
21421	 X"$ac_file" : 'X\(/\)' \| \
21422	 .     : '\(.\)' 2>/dev/null ||
21423echo X"$ac_file" |
21424    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21425  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21426  	  /^X\(\/\/\)$/{ s//\1/; q; }
21427  	  /^X\(\/\).*/{ s//\1/; q; }
21428  	  s/.*/./; q'`
21429  { if $as_mkdir_p; then
21430    mkdir -p "$ac_dir"
21431  else
21432    as_dir="$ac_dir"
21433    as_dirs=
21434    while test ! -d "$as_dir"; do
21435      as_dirs="$as_dir $as_dirs"
21436      as_dir=`(dirname "$as_dir") 2>/dev/null ||
21437$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21438	 X"$as_dir" : 'X\(//\)[^/]' \| \
21439	 X"$as_dir" : 'X\(//\)$' \| \
21440	 X"$as_dir" : 'X\(/\)' \| \
21441	 .     : '\(.\)' 2>/dev/null ||
21442echo X"$as_dir" |
21443    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21444  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21445  	  /^X\(\/\/\)$/{ s//\1/; q; }
21446  	  /^X\(\/\).*/{ s//\1/; q; }
21447  	  s/.*/./; q'`
21448    done
21449    test ! -n "$as_dirs" || mkdir $as_dirs
21450  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21451echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21452   { (exit 1); exit 1; }; }; }
21453
21454  ac_builddir=.
21455
21456if test "$ac_dir" != .; then
21457  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21458  # A "../" for each directory in $ac_dir_suffix.
21459  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21460else
21461  ac_dir_suffix= ac_top_builddir=
21462fi
21463
21464case $srcdir in
21465  .)  # No --srcdir option.  We are building in place.
21466    ac_srcdir=.
21467    if test -z "$ac_top_builddir"; then
21468       ac_top_srcdir=.
21469    else
21470       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21471    fi ;;
21472  [\\/]* | ?:[\\/]* )  # Absolute path.
21473    ac_srcdir=$srcdir$ac_dir_suffix;
21474    ac_top_srcdir=$srcdir ;;
21475  *) # Relative path.
21476    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21477    ac_top_srcdir=$ac_top_builddir$srcdir ;;
21478esac
21479
21480# Do not use `cd foo && pwd` to compute absolute paths, because
21481# the directories may not exist.
21482case `pwd` in
21483.) ac_abs_builddir="$ac_dir";;
21484*)
21485  case "$ac_dir" in
21486  .) ac_abs_builddir=`pwd`;;
21487  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21488  *) ac_abs_builddir=`pwd`/"$ac_dir";;
21489  esac;;
21490esac
21491case $ac_abs_builddir in
21492.) ac_abs_top_builddir=${ac_top_builddir}.;;
21493*)
21494  case ${ac_top_builddir}. in
21495  .) ac_abs_top_builddir=$ac_abs_builddir;;
21496  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21497  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21498  esac;;
21499esac
21500case $ac_abs_builddir in
21501.) ac_abs_srcdir=$ac_srcdir;;
21502*)
21503  case $ac_srcdir in
21504  .) ac_abs_srcdir=$ac_abs_builddir;;
21505  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21506  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21507  esac;;
21508esac
21509case $ac_abs_builddir in
21510.) ac_abs_top_srcdir=$ac_top_srcdir;;
21511*)
21512  case $ac_top_srcdir in
21513  .) ac_abs_top_srcdir=$ac_abs_builddir;;
21514  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21515  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21516  esac;;
21517esac
21518
21519
21520  case $INSTALL in
21521  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21522  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
21523  esac
21524
21525  # Let's still pretend it is `configure' which instantiates (i.e., don't
21526  # use $as_me), people would be surprised to read:
21527  #    /* config.h.  Generated by config.status.  */
21528  if test x"$ac_file" = x-; then
21529    configure_input=
21530  else
21531    configure_input="$ac_file.  "
21532  fi
21533  configure_input=$configure_input"Generated from `echo $ac_file_in |
21534				     sed 's,.*/,,'` by configure."
21535
21536  # First look for the input files in the build tree, otherwise in the
21537  # src tree.
21538  ac_file_inputs=`IFS=:
21539    for f in $ac_file_in; do
21540      case $f in
21541      -) echo $tmp/stdin ;;
21542      [\\/$]*)
21543	 # Absolute (can't be DOS-style, as IFS=:)
21544	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21545echo "$as_me: error: cannot find input file: $f" >&2;}
21546   { (exit 1); exit 1; }; }
21547	 echo "$f";;
21548      *) # Relative
21549	 if test -f "$f"; then
21550	   # Build tree
21551	   echo "$f"
21552	 elif test -f "$srcdir/$f"; then
21553	   # Source tree
21554	   echo "$srcdir/$f"
21555	 else
21556	   # /dev/null tree
21557	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21558echo "$as_me: error: cannot find input file: $f" >&2;}
21559   { (exit 1); exit 1; }; }
21560	 fi;;
21561      esac
21562    done` || { (exit 1); exit 1; }
21563
21564  if test x"$ac_file" != x-; then
21565    { echo "$as_me:$LINENO: creating $ac_file" >&5
21566echo "$as_me: creating $ac_file" >&6;}
21567    rm -f "$ac_file"
21568  fi
21569_ACEOF
21570cat >>$CONFIG_STATUS <<_ACEOF
21571  sed "$ac_vpsub
21572$extrasub
21573_ACEOF
21574cat >>$CONFIG_STATUS <<\_ACEOF
21575:t
21576/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21577s,@configure_input@,$configure_input,;t t
21578s,@srcdir@,$ac_srcdir,;t t
21579s,@abs_srcdir@,$ac_abs_srcdir,;t t
21580s,@top_srcdir@,$ac_top_srcdir,;t t
21581s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21582s,@builddir@,$ac_builddir,;t t
21583s,@abs_builddir@,$ac_abs_builddir,;t t
21584s,@top_builddir@,$ac_top_builddir,;t t
21585s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21586s,@INSTALL@,$ac_INSTALL,;t t
21587" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21588  rm -f $tmp/stdin
21589  if test x"$ac_file" != x-; then
21590    mv $tmp/out $ac_file
21591  else
21592    cat $tmp/out
21593    rm -f $tmp/out
21594  fi
21595
21596done
21597_ACEOF
21598
21599cat >>$CONFIG_STATUS <<\_ACEOF
21600
21601{ (exit 0); exit 0; }
21602_ACEOF
21603chmod +x $CONFIG_STATUS
21604ac_clean_files=$ac_clean_files_save
21605
21606
21607# configure is writing to config.log, and then calls config.status.
21608# config.status does its own redirection, appending to config.log.
21609# Unfortunately, on DOS this fails, as config.log is still kept open
21610# by configure, so config.status won't be able to write to it; its
21611# output is simply discarded.  So we exec the FD to /dev/null,
21612# effectively closing config.log, so it can be properly (re)opened and
21613# appended to by config.status.  When coming back to configure, we
21614# need to make the FD available again.
21615if test "$no_create" != yes; then
21616  ac_cs_success=:
21617  ac_config_status_args=
21618  test "$silent" = yes &&
21619    ac_config_status_args="$ac_config_status_args --quiet"
21620  exec 5>/dev/null
21621  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21622  exec 5>>config.log
21623  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21624  # would make configure fail if this is the last instruction.
21625  $ac_cs_success || { (exit 1); exit 1; }
21626fi
21627
21628