1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59.
4#
5# Copyright (C) 2003 Free Software Foundation, Inc.
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
8## --------------------- ##
9## M4sh Initialization.  ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14  emulate sh
15  NULLCMD=:
16  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17  # is contrary to our usage.  Disable this feature.
18  alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20  set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26  as_unset=unset
27else
28  as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42  LC_TELEPHONE LC_TIME
43do
44  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45    eval $as_var=C; export $as_var
46  else
47    $as_unset $as_var
48  fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53  as_expr=expr
54else
55  as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59  as_basename=basename
60else
61  as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68	 X"$0" : 'X\(//\)$' \| \
69	 X"$0" : 'X\(/\)$' \| \
70	 .     : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
74  	  /^X\/\(\/\).*/{ s//\1/; q; }
75  	  s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88  echo "#! /bin/sh" >conf$$.sh
89  echo  "exit 0"   >>conf$$.sh
90  chmod +x conf$$.sh
91  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92    PATH_SEPARATOR=';'
93  else
94    PATH_SEPARATOR=:
95  fi
96  rm -f conf$$.sh
97fi
98
99
100  as_lineno_1=$LINENO
101  as_lineno_2=$LINENO
102  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103  test "x$as_lineno_1" != "x$as_lineno_2" &&
104  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105  # Find who we are.  Look in the path if we contain no path at all
106  # relative or not.
107  case $0 in
108    *[\\/]* ) as_myself=$0 ;;
109    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112  IFS=$as_save_IFS
113  test -z "$as_dir" && as_dir=.
114  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117       ;;
118  esac
119  # We did not find ourselves, most probably we were run as `sh COMMAND'
120  # in which case we are not to be found in the path.
121  if test "x$as_myself" = x; then
122    as_myself=$0
123  fi
124  if test ! -f "$as_myself"; then
125    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126   { (exit 1); exit 1; }; }
127  fi
128  case $CONFIG_SHELL in
129  '')
130    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133  IFS=$as_save_IFS
134  test -z "$as_dir" && as_dir=.
135  for as_base in sh bash ksh sh5; do
136	 case $as_dir in
137	 /*)
138	   if ("$as_dir/$as_base" -c '
139  as_lineno_1=$LINENO
140  as_lineno_2=$LINENO
141  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142  test "x$as_lineno_1" != "x$as_lineno_2" &&
143  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146	     CONFIG_SHELL=$as_dir/$as_base
147	     export CONFIG_SHELL
148	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149	   fi;;
150	 esac
151       done
152done
153;;
154  esac
155
156  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157  # uniformly replaced by the line number.  The first 'sed' inserts a
158  # line-number line before each line; the second 'sed' does the real
159  # work.  The second script uses 'N' to pair each line-number line
160  # with the numbered line, and appends trailing '-' during
161  # substitution so that $LINENO is not a special case at line end.
162  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164  sed '=' <$as_myself |
165    sed '
166      N
167      s,$,-,
168      : loop
169      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170      t loop
171      s,-$,,
172      s,^['$as_cr_digits']*\n,,
173    ' >$as_me.lineno &&
174  chmod +x $as_me.lineno ||
175    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176   { (exit 1); exit 1; }; }
177
178  # Don't try to exec as it changes $[0], causing all sort of problems
179  # (the dirname of $[0] is not the place where we might find the
180  # original and so on.  Autoconf is especially sensible to this).
181  . ./$as_me.lineno
182  # Exit status is that of the last command.
183  exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188  *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T='	' ;;
190  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195  as_expr=expr
196else
197  as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203  # We could just check for DJGPP; but this test a) works b) is more generic
204  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205  if test -f conf$$.exe; then
206    # Don't use ln at all; we don't have any links
207    as_ln_s='cp -p'
208  else
209    as_ln_s='ln -s'
210  fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212  as_ln_s=ln
213else
214  as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219  as_mkdir_p=:
220else
221  test -d ./-p && rmdir ./-p
222  as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" 	$as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
244
245# Check that we are running under the correct shell.
246SHELL=${CONFIG_SHELL-/bin/sh}
247
248case X$ECHO in
249X*--fallback-echo)
250  # Remove one level of quotation (which was required for Make).
251  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
252  ;;
253esac
254
255echo=${ECHO-echo}
256if test "X$1" = X--no-reexec; then
257  # Discard the --no-reexec flag, and continue.
258  shift
259elif test "X$1" = X--fallback-echo; then
260  # Avoid inline document here, it may be left over
261  :
262elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
263  # Yippee, $echo works!
264  :
265else
266  # Restart under the correct shell.
267  exec $SHELL "$0" --no-reexec ${1+"$@"}
268fi
269
270if test "X$1" = X--fallback-echo; then
271  # used as fallback echo
272  shift
273  cat <<EOF
274$*
275EOF
276  exit 0
277fi
278
279# The HP-UX ksh and POSIX shell print the target directory to stdout
280# if CDPATH is set.
281(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
282
283if test -z "$ECHO"; then
284if test "X${echo_test_string+set}" != Xset; then
285# find a string as large as possible, as long as the shell can cope with it
286  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
289       echo_test_string=`eval $cmd` &&
290       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
291    then
292      break
293    fi
294  done
295fi
296
297if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
298   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
299   test "X$echo_testing_string" = "X$echo_test_string"; then
300  :
301else
302  # The Solaris, AIX, and Digital Unix default echo programs unquote
303  # backslashes.  This makes it impossible to quote backslashes using
304  #   echo "$something" | sed 's/\\/\\\\/g'
305  #
306  # So, first we look for a working echo in the user's PATH.
307
308  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
309  for dir in $PATH /usr/ucb; do
310    IFS="$lt_save_ifs"
311    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
312       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
314       test "X$echo_testing_string" = "X$echo_test_string"; then
315      echo="$dir/echo"
316      break
317    fi
318  done
319  IFS="$lt_save_ifs"
320
321  if test "X$echo" = Xecho; then
322    # We didn't find a better echo, so look for alternatives.
323    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
324       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
325       test "X$echo_testing_string" = "X$echo_test_string"; then
326      # This shell has a builtin print -r that does the trick.
327      echo='print -r'
328    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
329	 test "X$CONFIG_SHELL" != X/bin/ksh; then
330      # If we have ksh, try running configure again with it.
331      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
332      export ORIGINAL_CONFIG_SHELL
333      CONFIG_SHELL=/bin/ksh
334      export CONFIG_SHELL
335      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
336    else
337      # Try using printf.
338      echo='printf %s\n'
339      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
340	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
341	 test "X$echo_testing_string" = "X$echo_test_string"; then
342	# Cool, printf works
343	:
344      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
345	   test "X$echo_testing_string" = 'X\t' &&
346	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
347	   test "X$echo_testing_string" = "X$echo_test_string"; then
348	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
349	export CONFIG_SHELL
350	SHELL="$CONFIG_SHELL"
351	export SHELL
352	echo="$CONFIG_SHELL $0 --fallback-echo"
353      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354	   test "X$echo_testing_string" = 'X\t' &&
355	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356	   test "X$echo_testing_string" = "X$echo_test_string"; then
357	echo="$CONFIG_SHELL $0 --fallback-echo"
358      else
359	# maybe with a smaller string...
360	prev=:
361
362	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
363	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
364	  then
365	    break
366	  fi
367	  prev="$cmd"
368	done
369
370	if test "$prev" != 'sed 50q "$0"'; then
371	  echo_test_string=`eval $prev`
372	  export echo_test_string
373	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
374	else
375	  # Oops.  We lost completely, so just stick with echo.
376	  echo=echo
377	fi
378      fi
379    fi
380  fi
381fi
382fi
383
384# Copy echo and quote the copy suitably for passing to libtool from
385# the Makefile, instead of quoting the original, which is used later.
386ECHO=$echo
387if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
389fi
390
391
392
393
394tagnames=${tagnames+${tagnames},}CXX
395
396tagnames=${tagnames+${tagnames},}F77
397
398# Name of the host.
399# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400# so uname gets run too.
401ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
402
403exec 6>&1
404
405#
406# Initializations.
407#
408ac_default_prefix=/usr/local
409ac_config_libobj_dir=.
410cross_compiling=no
411subdirs=
412MFLAGS=
413MAKEFLAGS=
414SHELL=${CONFIG_SHELL-/bin/sh}
415
416# Maximum number of lines to put in a shell here document.
417# This variable seems obsolete.  It should probably be removed, and
418# only ac_max_sed_lines should be used.
419: ${ac_max_here_lines=38}
420
421# Identity of this package.
422PACKAGE_NAME=
423PACKAGE_TARNAME=
424PACKAGE_VERSION=
425PACKAGE_STRING=
426PACKAGE_BUGREPORT=
427
428ac_unique_file="src/feature.h"
429# Factoring default headers for most tests.
430ac_includes_default="\
431#include <stdio.h>
432#if HAVE_SYS_TYPES_H
433# include <sys/types.h>
434#endif
435#if HAVE_SYS_STAT_H
436# include <sys/stat.h>
437#endif
438#if STDC_HEADERS
439# include <stdlib.h>
440# include <stddef.h>
441#else
442# if HAVE_STDLIB_H
443#  include <stdlib.h>
444# endif
445#endif
446#if HAVE_STRING_H
447# if !STDC_HEADERS && HAVE_MEMORY_H
448#  include <memory.h>
449# endif
450# include <string.h>
451#endif
452#if HAVE_STRINGS_H
453# include <strings.h>
454#endif
455#if HAVE_INTTYPES_H
456# include <inttypes.h>
457#else
458# if HAVE_STDINT_H
459#  include <stdint.h>
460# endif
461#endif
462#if HAVE_UNISTD_H
463# include <unistd.h>
464#endif"
465
466ac_subst_vars='LIBTOOLIZE ACLOCAL AUTOCONF AUTOHEADER AUTOMAKE 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 MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DATE AUTHORS build build_cpu build_vendor build_os host host_cpu host_vendor host_os PGCC CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP CCAS CCASFLAGS EGREP SED LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL DIST_ROOT MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT RM CP CHMOD TAR MKDIR CTAGS MV TIC PERL X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS HAVE_MMX_TRUE HAVE_MMX_FALSE HAVE_SSE2_TRUE HAVE_SSE2_FALSE LIBAST_CONFIG DEF_FONT_IDX FONT0 FONT1 FONT2 FONT3 FONT4 MULTICHAR_ENCODING MFONT0 MFONT1 MFONT2 MFONT3 MFONT4 REMOVE_THEMES ac_prefix_program DBX GDB PSTACK GDB_CMD_FILE THREADLIBS LIBOBJS LTLIBOBJS'
467ac_subst_files=''
468
469# Initialize some variables set by options.
470ac_init_help=
471ac_init_version=false
472# The variables have the same names as the options, with
473# dashes changed to underlines.
474cache_file=/dev/null
475exec_prefix=NONE
476no_create=
477no_recursion=
478prefix=NONE
479program_prefix=NONE
480program_suffix=NONE
481program_transform_name=s,x,x,
482silent=
483site=
484srcdir=
485verbose=
486x_includes=NONE
487x_libraries=NONE
488
489# Installation directory options.
490# These are left unexpanded so users can "make install exec_prefix=/foo"
491# and all the variables that are supposed to be based on exec_prefix
492# by default will actually change.
493# Use braces instead of parens because sh, perl, etc. also accept them.
494bindir='${exec_prefix}/bin'
495sbindir='${exec_prefix}/sbin'
496libexecdir='${exec_prefix}/libexec'
497datadir='${prefix}/share'
498sysconfdir='${prefix}/etc'
499sharedstatedir='${prefix}/com'
500localstatedir='${prefix}/var'
501libdir='${exec_prefix}/lib'
502includedir='${prefix}/include'
503oldincludedir='/usr/include'
504infodir='${prefix}/info'
505mandir='${prefix}/man'
506
507ac_prev=
508for ac_option
509do
510  # If the previous option needs an argument, assign it.
511  if test -n "$ac_prev"; then
512    eval "$ac_prev=\$ac_option"
513    ac_prev=
514    continue
515  fi
516
517  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
518
519  # Accept the important Cygnus configure options, so we can diagnose typos.
520
521  case $ac_option in
522
523  -bindir | --bindir | --bindi | --bind | --bin | --bi)
524    ac_prev=bindir ;;
525  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
526    bindir=$ac_optarg ;;
527
528  -build | --build | --buil | --bui | --bu)
529    ac_prev=build_alias ;;
530  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
531    build_alias=$ac_optarg ;;
532
533  -cache-file | --cache-file | --cache-fil | --cache-fi \
534  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
535    ac_prev=cache_file ;;
536  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
537  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
538    cache_file=$ac_optarg ;;
539
540  --config-cache | -C)
541    cache_file=config.cache ;;
542
543  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
544    ac_prev=datadir ;;
545  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
546  | --da=*)
547    datadir=$ac_optarg ;;
548
549  -disable-* | --disable-*)
550    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
551    # Reject names that are not valid shell variable names.
552    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
554   { (exit 1); exit 1; }; }
555    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
556    eval "enable_$ac_feature=no" ;;
557
558  -enable-* | --enable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    case $ac_option in
566      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
567      *) ac_optarg=yes ;;
568    esac
569    eval "enable_$ac_feature='$ac_optarg'" ;;
570
571  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
572  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
573  | --exec | --exe | --ex)
574    ac_prev=exec_prefix ;;
575  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
576  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
577  | --exec=* | --exe=* | --ex=*)
578    exec_prefix=$ac_optarg ;;
579
580  -gas | --gas | --ga | --g)
581    # Obsolete; use --with-gas.
582    with_gas=yes ;;
583
584  -help | --help | --hel | --he | -h)
585    ac_init_help=long ;;
586  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
587    ac_init_help=recursive ;;
588  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
589    ac_init_help=short ;;
590
591  -host | --host | --hos | --ho)
592    ac_prev=host_alias ;;
593  -host=* | --host=* | --hos=* | --ho=*)
594    host_alias=$ac_optarg ;;
595
596  -includedir | --includedir | --includedi | --included | --include \
597  | --includ | --inclu | --incl | --inc)
598    ac_prev=includedir ;;
599  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
600  | --includ=* | --inclu=* | --incl=* | --inc=*)
601    includedir=$ac_optarg ;;
602
603  -infodir | --infodir | --infodi | --infod | --info | --inf)
604    ac_prev=infodir ;;
605  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
606    infodir=$ac_optarg ;;
607
608  -libdir | --libdir | --libdi | --libd)
609    ac_prev=libdir ;;
610  -libdir=* | --libdir=* | --libdi=* | --libd=*)
611    libdir=$ac_optarg ;;
612
613  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
614  | --libexe | --libex | --libe)
615    ac_prev=libexecdir ;;
616  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
617  | --libexe=* | --libex=* | --libe=*)
618    libexecdir=$ac_optarg ;;
619
620  -localstatedir | --localstatedir | --localstatedi | --localstated \
621  | --localstate | --localstat | --localsta | --localst \
622  | --locals | --local | --loca | --loc | --lo)
623    ac_prev=localstatedir ;;
624  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
625  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
626  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
627    localstatedir=$ac_optarg ;;
628
629  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
630    ac_prev=mandir ;;
631  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
632    mandir=$ac_optarg ;;
633
634  -nfp | --nfp | --nf)
635    # Obsolete; use --without-fp.
636    with_fp=no ;;
637
638  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
639  | --no-cr | --no-c | -n)
640    no_create=yes ;;
641
642  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
643  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
644    no_recursion=yes ;;
645
646  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
647  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
648  | --oldin | --oldi | --old | --ol | --o)
649    ac_prev=oldincludedir ;;
650  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
651  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
652  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
653    oldincludedir=$ac_optarg ;;
654
655  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
656    ac_prev=prefix ;;
657  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
658    prefix=$ac_optarg ;;
659
660  -program-prefix | --program-prefix | --program-prefi | --program-pref \
661  | --program-pre | --program-pr | --program-p)
662    ac_prev=program_prefix ;;
663  -program-prefix=* | --program-prefix=* | --program-prefi=* \
664  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
665    program_prefix=$ac_optarg ;;
666
667  -program-suffix | --program-suffix | --program-suffi | --program-suff \
668  | --program-suf | --program-su | --program-s)
669    ac_prev=program_suffix ;;
670  -program-suffix=* | --program-suffix=* | --program-suffi=* \
671  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
672    program_suffix=$ac_optarg ;;
673
674  -program-transform-name | --program-transform-name \
675  | --program-transform-nam | --program-transform-na \
676  | --program-transform-n | --program-transform- \
677  | --program-transform | --program-transfor \
678  | --program-transfo | --program-transf \
679  | --program-trans | --program-tran \
680  | --progr-tra | --program-tr | --program-t)
681    ac_prev=program_transform_name ;;
682  -program-transform-name=* | --program-transform-name=* \
683  | --program-transform-nam=* | --program-transform-na=* \
684  | --program-transform-n=* | --program-transform-=* \
685  | --program-transform=* | --program-transfor=* \
686  | --program-transfo=* | --program-transf=* \
687  | --program-trans=* | --program-tran=* \
688  | --progr-tra=* | --program-tr=* | --program-t=*)
689    program_transform_name=$ac_optarg ;;
690
691  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
692  | -silent | --silent | --silen | --sile | --sil)
693    silent=yes ;;
694
695  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
696    ac_prev=sbindir ;;
697  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
698  | --sbi=* | --sb=*)
699    sbindir=$ac_optarg ;;
700
701  -sharedstatedir | --sharedstatedir | --sharedstatedi \
702  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
703  | --sharedst | --shareds | --shared | --share | --shar \
704  | --sha | --sh)
705    ac_prev=sharedstatedir ;;
706  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
707  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
708  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
709  | --sha=* | --sh=*)
710    sharedstatedir=$ac_optarg ;;
711
712  -site | --site | --sit)
713    ac_prev=site ;;
714  -site=* | --site=* | --sit=*)
715    site=$ac_optarg ;;
716
717  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
718    ac_prev=srcdir ;;
719  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
720    srcdir=$ac_optarg ;;
721
722  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
723  | --syscon | --sysco | --sysc | --sys | --sy)
724    ac_prev=sysconfdir ;;
725  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
726  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
727    sysconfdir=$ac_optarg ;;
728
729  -target | --target | --targe | --targ | --tar | --ta | --t)
730    ac_prev=target_alias ;;
731  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
732    target_alias=$ac_optarg ;;
733
734  -v | -verbose | --verbose | --verbos | --verbo | --verb)
735    verbose=yes ;;
736
737  -version | --version | --versio | --versi | --vers | -V)
738    ac_init_version=: ;;
739
740  -with-* | --with-*)
741    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
742    # Reject names that are not valid shell variable names.
743    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
744      { echo "$as_me: error: invalid package name: $ac_package" >&2
745   { (exit 1); exit 1; }; }
746    ac_package=`echo $ac_package| sed 's/-/_/g'`
747    case $ac_option in
748      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
749      *) ac_optarg=yes ;;
750    esac
751    eval "with_$ac_package='$ac_optarg'" ;;
752
753  -without-* | --without-*)
754    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
755    # Reject names that are not valid shell variable names.
756    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
757      { echo "$as_me: error: invalid package name: $ac_package" >&2
758   { (exit 1); exit 1; }; }
759    ac_package=`echo $ac_package | sed 's/-/_/g'`
760    eval "with_$ac_package=no" ;;
761
762  --x)
763    # Obsolete; use --with-x.
764    with_x=yes ;;
765
766  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
767  | --x-incl | --x-inc | --x-in | --x-i)
768    ac_prev=x_includes ;;
769  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
770  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
771    x_includes=$ac_optarg ;;
772
773  -x-libraries | --x-libraries | --x-librarie | --x-librari \
774  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
775    ac_prev=x_libraries ;;
776  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
777  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
778    x_libraries=$ac_optarg ;;
779
780  -*) { echo "$as_me: error: unrecognized option: $ac_option
781Try \`$0 --help' for more information." >&2
782   { (exit 1); exit 1; }; }
783    ;;
784
785  *=*)
786    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
787    # Reject names that are not valid shell variable names.
788    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
789      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
790   { (exit 1); exit 1; }; }
791    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
792    eval "$ac_envvar='$ac_optarg'"
793    export $ac_envvar ;;
794
795  *)
796    # FIXME: should be removed in autoconf 3.0.
797    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
798    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
799      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
800    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
801    ;;
802
803  esac
804done
805
806if test -n "$ac_prev"; then
807  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
808  { echo "$as_me: error: missing argument to $ac_option" >&2
809   { (exit 1); exit 1; }; }
810fi
811
812# Be sure to have absolute paths.
813for ac_var in exec_prefix prefix
814do
815  eval ac_val=$`echo $ac_var`
816  case $ac_val in
817    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
818    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
819   { (exit 1); exit 1; }; };;
820  esac
821done
822
823# Be sure to have absolute paths.
824for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
825	      localstatedir libdir includedir oldincludedir infodir mandir
826do
827  eval ac_val=$`echo $ac_var`
828  case $ac_val in
829    [\\/$]* | ?:[\\/]* ) ;;
830    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
831   { (exit 1); exit 1; }; };;
832  esac
833done
834
835# There might be people who depend on the old broken behavior: `$host'
836# used to hold the argument of --host etc.
837# FIXME: To remove some day.
838build=$build_alias
839host=$host_alias
840target=$target_alias
841
842# FIXME: To remove some day.
843if test "x$host_alias" != x; then
844  if test "x$build_alias" = x; then
845    cross_compiling=maybe
846    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
847    If a cross compiler is detected then cross compile mode will be used." >&2
848  elif test "x$build_alias" != "x$host_alias"; then
849    cross_compiling=yes
850  fi
851fi
852
853ac_tool_prefix=
854test -n "$host_alias" && ac_tool_prefix=$host_alias-
855
856test "$silent" = yes && exec 6>/dev/null
857
858
859# Find the source files, if location was not specified.
860if test -z "$srcdir"; then
861  ac_srcdir_defaulted=yes
862  # Try the directory containing this script, then its parent.
863  ac_confdir=`(dirname "$0") 2>/dev/null ||
864$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
865	 X"$0" : 'X\(//\)[^/]' \| \
866	 X"$0" : 'X\(//\)$' \| \
867	 X"$0" : 'X\(/\)' \| \
868	 .     : '\(.\)' 2>/dev/null ||
869echo X"$0" |
870    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
871  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
872  	  /^X\(\/\/\)$/{ s//\1/; q; }
873  	  /^X\(\/\).*/{ s//\1/; q; }
874  	  s/.*/./; q'`
875  srcdir=$ac_confdir
876  if test ! -r $srcdir/$ac_unique_file; then
877    srcdir=..
878  fi
879else
880  ac_srcdir_defaulted=no
881fi
882if test ! -r $srcdir/$ac_unique_file; then
883  if test "$ac_srcdir_defaulted" = yes; then
884    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
885   { (exit 1); exit 1; }; }
886  else
887    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
888   { (exit 1); exit 1; }; }
889  fi
890fi
891(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
892  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
893   { (exit 1); exit 1; }; }
894srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
895ac_env_build_alias_set=${build_alias+set}
896ac_env_build_alias_value=$build_alias
897ac_cv_env_build_alias_set=${build_alias+set}
898ac_cv_env_build_alias_value=$build_alias
899ac_env_host_alias_set=${host_alias+set}
900ac_env_host_alias_value=$host_alias
901ac_cv_env_host_alias_set=${host_alias+set}
902ac_cv_env_host_alias_value=$host_alias
903ac_env_target_alias_set=${target_alias+set}
904ac_env_target_alias_value=$target_alias
905ac_cv_env_target_alias_set=${target_alias+set}
906ac_cv_env_target_alias_value=$target_alias
907ac_env_CC_set=${CC+set}
908ac_env_CC_value=$CC
909ac_cv_env_CC_set=${CC+set}
910ac_cv_env_CC_value=$CC
911ac_env_CFLAGS_set=${CFLAGS+set}
912ac_env_CFLAGS_value=$CFLAGS
913ac_cv_env_CFLAGS_set=${CFLAGS+set}
914ac_cv_env_CFLAGS_value=$CFLAGS
915ac_env_LDFLAGS_set=${LDFLAGS+set}
916ac_env_LDFLAGS_value=$LDFLAGS
917ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
918ac_cv_env_LDFLAGS_value=$LDFLAGS
919ac_env_CPPFLAGS_set=${CPPFLAGS+set}
920ac_env_CPPFLAGS_value=$CPPFLAGS
921ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
922ac_cv_env_CPPFLAGS_value=$CPPFLAGS
923ac_env_CPP_set=${CPP+set}
924ac_env_CPP_value=$CPP
925ac_cv_env_CPP_set=${CPP+set}
926ac_cv_env_CPP_value=$CPP
927ac_env_CCAS_set=${CCAS+set}
928ac_env_CCAS_value=$CCAS
929ac_cv_env_CCAS_set=${CCAS+set}
930ac_cv_env_CCAS_value=$CCAS
931ac_env_CCASFLAGS_set=${CCASFLAGS+set}
932ac_env_CCASFLAGS_value=$CCASFLAGS
933ac_cv_env_CCASFLAGS_set=${CCASFLAGS+set}
934ac_cv_env_CCASFLAGS_value=$CCASFLAGS
935ac_env_CXX_set=${CXX+set}
936ac_env_CXX_value=$CXX
937ac_cv_env_CXX_set=${CXX+set}
938ac_cv_env_CXX_value=$CXX
939ac_env_CXXFLAGS_set=${CXXFLAGS+set}
940ac_env_CXXFLAGS_value=$CXXFLAGS
941ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
942ac_cv_env_CXXFLAGS_value=$CXXFLAGS
943ac_env_CXXCPP_set=${CXXCPP+set}
944ac_env_CXXCPP_value=$CXXCPP
945ac_cv_env_CXXCPP_set=${CXXCPP+set}
946ac_cv_env_CXXCPP_value=$CXXCPP
947ac_env_F77_set=${F77+set}
948ac_env_F77_value=$F77
949ac_cv_env_F77_set=${F77+set}
950ac_cv_env_F77_value=$F77
951ac_env_FFLAGS_set=${FFLAGS+set}
952ac_env_FFLAGS_value=$FFLAGS
953ac_cv_env_FFLAGS_set=${FFLAGS+set}
954ac_cv_env_FFLAGS_value=$FFLAGS
955
956#
957# Report the --help message.
958#
959if test "$ac_init_help" = "long"; then
960  # Omit some internal or obsolete options to make the list less imposing.
961  # This message is too long to be a string in the A/UX 3.1 sh.
962  cat <<_ACEOF
963\`configure' configures this package to adapt to many kinds of systems.
964
965Usage: $0 [OPTION]... [VAR=VALUE]...
966
967To assign environment variables (e.g., CC, CFLAGS...), specify them as
968VAR=VALUE.  See below for descriptions of some of the useful variables.
969
970Defaults for the options are specified in brackets.
971
972Configuration:
973  -h, --help              display this help and exit
974      --help=short        display options specific to this package
975      --help=recursive    display the short help of all the included packages
976  -V, --version           display version information and exit
977  -q, --quiet, --silent   do not print \`checking...' messages
978      --cache-file=FILE   cache test results in FILE [disabled]
979  -C, --config-cache      alias for \`--cache-file=config.cache'
980  -n, --no-create         do not create output files
981      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
982
983_ACEOF
984
985  cat <<_ACEOF
986Installation directories:
987  --prefix=PREFIX         install architecture-independent files in PREFIX
988			  [$ac_default_prefix]
989  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
990			  [PREFIX]
991
992By default, \`make install' will install all the files in
993\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
994an installation prefix other than \`$ac_default_prefix' using \`--prefix',
995for instance \`--prefix=\$HOME'.
996
997For better control, use the options below.
998
999Fine tuning of the installation directories:
1000  --bindir=DIR           user executables [EPREFIX/bin]
1001  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1002  --libexecdir=DIR       program executables [EPREFIX/libexec]
1003  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1004  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1005  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1006  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1007  --libdir=DIR           object code libraries [EPREFIX/lib]
1008  --includedir=DIR       C header files [PREFIX/include]
1009  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1010  --infodir=DIR          info documentation [PREFIX/info]
1011  --mandir=DIR           man documentation [PREFIX/man]
1012_ACEOF
1013
1014  cat <<\_ACEOF
1015
1016Program names:
1017  --program-prefix=PREFIX            prepend PREFIX to installed program names
1018  --program-suffix=SUFFIX            append SUFFIX to installed program names
1019  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1020
1021X features:
1022  --x-includes=DIR    X include files are in DIR
1023  --x-libraries=DIR   X library files are in DIR
1024
1025System types:
1026  --build=BUILD     configure for building on BUILD [guessed]
1027  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1028_ACEOF
1029fi
1030
1031if test -n "$ac_init_help"; then
1032
1033  cat <<\_ACEOF
1034
1035Optional Features:
1036  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1037  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1038  --disable-dependency-tracking  speeds up one-time build
1039  --enable-dependency-tracking   do not reject slow dependency extractors
1040  --enable-shared[=PKGS]
1041                          build shared libraries [default=yes]
1042  --enable-static[=PKGS]
1043                          build static libraries [default=yes]
1044  --enable-fast-install[=PKGS]
1045                          optimize for fast installation [default=yes]
1046  --disable-libtool-lock  avoid locking (might break parallel builds)
1047  --enable-maintainer-mode  enable make rules and dependencies not useful
1048			  (and sometimes confusing) to the casual installer
1049  --enable-strict-icccm   compile with strict ICCCM compliant WM icon support
1050  --disable-escreen       disable Eterm's built-in screen support
1051  --enable-etwin          enable Eterm's built-in twin support
1052  --enable-escreen-fx     enable Escreen startup effects
1053  --enable-profile        compile with code profiling macros enabled
1054  --enable-trans          compile with transparency support
1055  --enable-mmx            enable MMX assembly routines
1056  --enable-sse2            enable SSE2 assembly routines
1057  --enable-utmp           compile with utmp support
1058  --enable-auto-encoding  compile with runtime automatic encoding setting
1059  --enable-multi-charset  compile with multibyte font support
1060  --enable-xim            compile with XIM support (default)
1061  --enable-greek          compile with support for Greek keyboards
1062  --disable-stack-trace   disable stack trace on abnormal termination
1063 --enable-name-reporting-escapes  Specify this to enable title/icon name reporting
1064
1065Optional Packages:
1066  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1067  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1068  --with-cc=compiler      force Eterm to build with a particular compiler (like pgcc, egcs, etc.)
1069  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1070  --with-pic              try to use only PIC/non-PIC objects [default=use
1071                          both]
1072  --with-tags[=TAGS]
1073                          include additional configurations [automatic]
1074  --with-dmalloc          use dmalloc, as in
1075			  http://www.dmalloc.com/dmalloc.tar.gz
1076  --with-x                use the X Window System
1077  --with-debugging=num  enable debugging output, num is an integer 0-9
1078  --with-pty-group=gid  specify the group that should own pty files
1079  --with(out)-saved-uids  specify that your OS has (does not have) saved uids, default is to guess
1080  --with-pablo=DIR      compile with Pablo I/O Tracing support (using Pablo prefix DIR)
1081  --with-imlib=DIR      compile with Imlib support (Imlib residing in DIR/lib) (default)
1082  --with-backspace=KEY    force backspace to send KEY (KEY is \"bs\" for ^H, \"del\" for ^?, \"auto\" to check stty)
1083  --with-delete=SETTING   force delete to SETTING (\"server\" to use the X server value always,
1084                          \"execute\" to send the old default execute escape sequence, \"del\" for ^?,
1085                          or a quoted string to use a specific string)
1086  --with-home=SEQUENCE    specify which sequence to use for the Home key ("xterm", "linux", or "vt102")
1087  --with-end=SEQUENCE     specify which sequence to use for the End key ("xterm", "linux", or "vt102")
1088  --without-mousewheel    disable built-in mousewheel support
1089  --without-terminfo      do not compile the Eterm terminfo file
1090  --with-theme-update     existing themes will be forceably removed and new ones installed
1091  --without-sense-of-humor   Specify this if you have no sense of humor
1092
1093Some influential environment variables:
1094  CC          C compiler command
1095  CFLAGS      C compiler flags
1096  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1097              nonstandard directory <lib dir>
1098  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1099              headers in a nonstandard directory <include dir>
1100  CPP         C preprocessor
1101  CCAS        assembler compiler command (defaults to CC)
1102  CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1103  CXX         C++ compiler command
1104  CXXFLAGS    C++ compiler flags
1105  CXXCPP      C++ preprocessor
1106  F77         Fortran 77 compiler command
1107  FFLAGS      Fortran 77 compiler flags
1108
1109Use these variables to override the choices made by `configure' or to help
1110it to find libraries and programs with nonstandard names/locations.
1111
1112_ACEOF
1113fi
1114
1115if test "$ac_init_help" = "recursive"; then
1116  # If there are subdirs, report their specific --help.
1117  ac_popdir=`pwd`
1118  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1119    test -d $ac_dir || continue
1120    ac_builddir=.
1121
1122if test "$ac_dir" != .; then
1123  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1124  # A "../" for each directory in $ac_dir_suffix.
1125  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1126else
1127  ac_dir_suffix= ac_top_builddir=
1128fi
1129
1130case $srcdir in
1131  .)  # No --srcdir option.  We are building in place.
1132    ac_srcdir=.
1133    if test -z "$ac_top_builddir"; then
1134       ac_top_srcdir=.
1135    else
1136       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1137    fi ;;
1138  [\\/]* | ?:[\\/]* )  # Absolute path.
1139    ac_srcdir=$srcdir$ac_dir_suffix;
1140    ac_top_srcdir=$srcdir ;;
1141  *) # Relative path.
1142    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1143    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1144esac
1145
1146# Do not use `cd foo && pwd` to compute absolute paths, because
1147# the directories may not exist.
1148case `pwd` in
1149.) ac_abs_builddir="$ac_dir";;
1150*)
1151  case "$ac_dir" in
1152  .) ac_abs_builddir=`pwd`;;
1153  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1154  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1155  esac;;
1156esac
1157case $ac_abs_builddir in
1158.) ac_abs_top_builddir=${ac_top_builddir}.;;
1159*)
1160  case ${ac_top_builddir}. in
1161  .) ac_abs_top_builddir=$ac_abs_builddir;;
1162  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1163  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1164  esac;;
1165esac
1166case $ac_abs_builddir in
1167.) ac_abs_srcdir=$ac_srcdir;;
1168*)
1169  case $ac_srcdir in
1170  .) ac_abs_srcdir=$ac_abs_builddir;;
1171  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1172  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1173  esac;;
1174esac
1175case $ac_abs_builddir in
1176.) ac_abs_top_srcdir=$ac_top_srcdir;;
1177*)
1178  case $ac_top_srcdir in
1179  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1180  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1181  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1182  esac;;
1183esac
1184
1185    cd $ac_dir
1186    # Check for guested configure; otherwise get Cygnus style configure.
1187    if test -f $ac_srcdir/configure.gnu; then
1188      echo
1189      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1190    elif test -f $ac_srcdir/configure; then
1191      echo
1192      $SHELL $ac_srcdir/configure  --help=recursive
1193    elif test -f $ac_srcdir/configure.ac ||
1194	   test -f $ac_srcdir/configure.in; then
1195      echo
1196      $ac_configure --help
1197    else
1198      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1199    fi
1200    cd $ac_popdir
1201  done
1202fi
1203
1204test -n "$ac_init_help" && exit 0
1205if $ac_init_version; then
1206  cat <<\_ACEOF
1207
1208Copyright (C) 2003 Free Software Foundation, Inc.
1209This configure script is free software; the Free Software Foundation
1210gives unlimited permission to copy, distribute and modify it.
1211_ACEOF
1212  exit 0
1213fi
1214exec 5>config.log
1215cat >&5 <<_ACEOF
1216This file contains any messages produced by compilers while
1217running configure, to aid debugging if configure makes a mistake.
1218
1219It was created by $as_me, which was
1220generated by GNU Autoconf 2.59.  Invocation command line was
1221
1222  $ $0 $@
1223
1224_ACEOF
1225{
1226cat <<_ASUNAME
1227## --------- ##
1228## Platform. ##
1229## --------- ##
1230
1231hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1232uname -m = `(uname -m) 2>/dev/null || echo unknown`
1233uname -r = `(uname -r) 2>/dev/null || echo unknown`
1234uname -s = `(uname -s) 2>/dev/null || echo unknown`
1235uname -v = `(uname -v) 2>/dev/null || echo unknown`
1236
1237/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1238/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1239
1240/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1241/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1242/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1243hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1244/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1245/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1246/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1247
1248_ASUNAME
1249
1250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1251for as_dir in $PATH
1252do
1253  IFS=$as_save_IFS
1254  test -z "$as_dir" && as_dir=.
1255  echo "PATH: $as_dir"
1256done
1257
1258} >&5
1259
1260cat >&5 <<_ACEOF
1261
1262
1263## ----------- ##
1264## Core tests. ##
1265## ----------- ##
1266
1267_ACEOF
1268
1269
1270# Keep a trace of the command line.
1271# Strip out --no-create and --no-recursion so they do not pile up.
1272# Strip out --silent because we don't want to record it for future runs.
1273# Also quote any args containing shell meta-characters.
1274# Make two passes to allow for proper duplicate-argument suppression.
1275ac_configure_args=
1276ac_configure_args0=
1277ac_configure_args1=
1278ac_sep=
1279ac_must_keep_next=false
1280for ac_pass in 1 2
1281do
1282  for ac_arg
1283  do
1284    case $ac_arg in
1285    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1286    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1287    | -silent | --silent | --silen | --sile | --sil)
1288      continue ;;
1289    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1290      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1291    esac
1292    case $ac_pass in
1293    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1294    2)
1295      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1296      if test $ac_must_keep_next = true; then
1297	ac_must_keep_next=false # Got value, back to normal.
1298      else
1299	case $ac_arg in
1300	  *=* | --config-cache | -C | -disable-* | --disable-* \
1301	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1302	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1303	  | -with-* | --with-* | -without-* | --without-* | --x)
1304	    case "$ac_configure_args0 " in
1305	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1306	    esac
1307	    ;;
1308	  -* ) ac_must_keep_next=true ;;
1309	esac
1310      fi
1311      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1312      # Get rid of the leading space.
1313      ac_sep=" "
1314      ;;
1315    esac
1316  done
1317done
1318$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1319$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1320
1321# When interrupted or exit'd, cleanup temporary files, and complete
1322# config.log.  We remove comments because anyway the quotes in there
1323# would cause problems or look ugly.
1324# WARNING: Be sure not to use single quotes in there, as some shells,
1325# such as our DU 5.0 friend, will then `close' the trap.
1326trap 'exit_status=$?
1327  # Save into config.log some information that might help in debugging.
1328  {
1329    echo
1330
1331    cat <<\_ASBOX
1332## ---------------- ##
1333## Cache variables. ##
1334## ---------------- ##
1335_ASBOX
1336    echo
1337    # The following way of writing the cache mishandles newlines in values,
1338{
1339  (set) 2>&1 |
1340    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1341    *ac_space=\ *)
1342      sed -n \
1343	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1344	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1345      ;;
1346    *)
1347      sed -n \
1348	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1349      ;;
1350    esac;
1351}
1352    echo
1353
1354    cat <<\_ASBOX
1355## ----------------- ##
1356## Output variables. ##
1357## ----------------- ##
1358_ASBOX
1359    echo
1360    for ac_var in $ac_subst_vars
1361    do
1362      eval ac_val=$`echo $ac_var`
1363      echo "$ac_var='"'"'$ac_val'"'"'"
1364    done | sort
1365    echo
1366
1367    if test -n "$ac_subst_files"; then
1368      cat <<\_ASBOX
1369## ------------- ##
1370## Output files. ##
1371## ------------- ##
1372_ASBOX
1373      echo
1374      for ac_var in $ac_subst_files
1375      do
1376	eval ac_val=$`echo $ac_var`
1377	echo "$ac_var='"'"'$ac_val'"'"'"
1378      done | sort
1379      echo
1380    fi
1381
1382    if test -s confdefs.h; then
1383      cat <<\_ASBOX
1384## ----------- ##
1385## confdefs.h. ##
1386## ----------- ##
1387_ASBOX
1388      echo
1389      sed "/^$/d" confdefs.h | sort
1390      echo
1391    fi
1392    test "$ac_signal" != 0 &&
1393      echo "$as_me: caught signal $ac_signal"
1394    echo "$as_me: exit $exit_status"
1395  } >&5
1396  rm -f core *.core &&
1397  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1398    exit $exit_status
1399     ' 0
1400for ac_signal in 1 2 13 15; do
1401  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1402done
1403ac_signal=0
1404
1405# confdefs.h avoids OS command line length limits that DEFS can exceed.
1406rm -rf conftest* confdefs.h
1407# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1408echo >confdefs.h
1409
1410# Predefined preprocessor variables.
1411
1412cat >>confdefs.h <<_ACEOF
1413#define PACKAGE_NAME "$PACKAGE_NAME"
1414_ACEOF
1415
1416
1417cat >>confdefs.h <<_ACEOF
1418#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1419_ACEOF
1420
1421
1422cat >>confdefs.h <<_ACEOF
1423#define PACKAGE_VERSION "$PACKAGE_VERSION"
1424_ACEOF
1425
1426
1427cat >>confdefs.h <<_ACEOF
1428#define PACKAGE_STRING "$PACKAGE_STRING"
1429_ACEOF
1430
1431
1432cat >>confdefs.h <<_ACEOF
1433#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1434_ACEOF
1435
1436
1437# Let the site file select an alternate cache file if it wants to.
1438# Prefer explicitly selected file to automatically selected ones.
1439if test -z "$CONFIG_SITE"; then
1440  if test "x$prefix" != xNONE; then
1441    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1442  else
1443    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1444  fi
1445fi
1446for ac_site_file in $CONFIG_SITE; do
1447  if test -r "$ac_site_file"; then
1448    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1449echo "$as_me: loading site script $ac_site_file" >&6;}
1450    sed 's/^/| /' "$ac_site_file" >&5
1451    . "$ac_site_file"
1452  fi
1453done
1454
1455if test -r "$cache_file"; then
1456  # Some versions of bash will fail to source /dev/null (special
1457  # files actually), so we avoid doing that.
1458  if test -f "$cache_file"; then
1459    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1460echo "$as_me: loading cache $cache_file" >&6;}
1461    case $cache_file in
1462      [\\/]* | ?:[\\/]* ) . $cache_file;;
1463      *)                      . ./$cache_file;;
1464    esac
1465  fi
1466else
1467  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1468echo "$as_me: creating cache $cache_file" >&6;}
1469  >$cache_file
1470fi
1471
1472# Check that the precious variables saved in the cache have kept the same
1473# value.
1474ac_cache_corrupted=false
1475for ac_var in `(set) 2>&1 |
1476	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1477  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1478  eval ac_new_set=\$ac_env_${ac_var}_set
1479  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1480  eval ac_new_val="\$ac_env_${ac_var}_value"
1481  case $ac_old_set,$ac_new_set in
1482    set,)
1483      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1484echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1485      ac_cache_corrupted=: ;;
1486    ,set)
1487      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1488echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1489      ac_cache_corrupted=: ;;
1490    ,);;
1491    *)
1492      if test "x$ac_old_val" != "x$ac_new_val"; then
1493	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1494echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1495	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1496echo "$as_me:   former value:  $ac_old_val" >&2;}
1497	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1498echo "$as_me:   current value: $ac_new_val" >&2;}
1499	ac_cache_corrupted=:
1500      fi;;
1501  esac
1502  # Pass precious variables to config.status.
1503  if test "$ac_new_set" = set; then
1504    case $ac_new_val in
1505    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1506      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1507    *) ac_arg=$ac_var=$ac_new_val ;;
1508    esac
1509    case " $ac_configure_args " in
1510      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1511      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1512    esac
1513  fi
1514done
1515if $ac_cache_corrupted; then
1516  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1517echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1518  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1519echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1520   { (exit 1); exit 1; }; }
1521fi
1522
1523ac_ext=c
1524ac_cpp='$CPP $CPPFLAGS'
1525ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1526ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1527ac_compiler_gnu=$ac_cv_c_compiler_gnu
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547am__api_version="1.9"
1548ac_aux_dir=
1549for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1550  if test -f $ac_dir/install-sh; then
1551    ac_aux_dir=$ac_dir
1552    ac_install_sh="$ac_aux_dir/install-sh -c"
1553    break
1554  elif test -f $ac_dir/install.sh; then
1555    ac_aux_dir=$ac_dir
1556    ac_install_sh="$ac_aux_dir/install.sh -c"
1557    break
1558  elif test -f $ac_dir/shtool; then
1559    ac_aux_dir=$ac_dir
1560    ac_install_sh="$ac_aux_dir/shtool install -c"
1561    break
1562  fi
1563done
1564if test -z "$ac_aux_dir"; then
1565  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1566echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1567   { (exit 1); exit 1; }; }
1568fi
1569ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1570ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1571ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1572
1573# Find a good install program.  We prefer a C program (faster),
1574# so one script is as good as another.  But avoid the broken or
1575# incompatible versions:
1576# SysV /etc/install, /usr/sbin/install
1577# SunOS /usr/etc/install
1578# IRIX /sbin/install
1579# AIX /bin/install
1580# AmigaOS /C/install, which installs bootblocks on floppy discs
1581# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1582# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1583# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1584# OS/2's system install, which has a completely different semantic
1585# ./install, which can be erroneously created by make from ./install.sh.
1586echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1587echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1588if test -z "$INSTALL"; then
1589if test "${ac_cv_path_install+set}" = set; then
1590  echo $ECHO_N "(cached) $ECHO_C" >&6
1591else
1592  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1593for as_dir in $PATH
1594do
1595  IFS=$as_save_IFS
1596  test -z "$as_dir" && as_dir=.
1597  # Account for people who put trailing slashes in PATH elements.
1598case $as_dir/ in
1599  ./ | .// | /cC/* | \
1600  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1601  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1602  /usr/ucb/* ) ;;
1603  *)
1604    # OSF1 and SCO ODT 3.0 have their own names for install.
1605    # Don't use installbsd from OSF since it installs stuff as root
1606    # by default.
1607    for ac_prog in ginstall scoinst install; do
1608      for ac_exec_ext in '' $ac_executable_extensions; do
1609	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1610	  if test $ac_prog = install &&
1611	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1612	    # AIX install.  It has an incompatible calling convention.
1613	    :
1614	  elif test $ac_prog = install &&
1615	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1616	    # program-specific install script used by HP pwplus--don't use.
1617	    :
1618	  else
1619	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1620	    break 3
1621	  fi
1622	fi
1623      done
1624    done
1625    ;;
1626esac
1627done
1628
1629
1630fi
1631  if test "${ac_cv_path_install+set}" = set; then
1632    INSTALL=$ac_cv_path_install
1633  else
1634    # As a last resort, use the slow shell script.  We don't cache a
1635    # path for INSTALL within a source directory, because that will
1636    # break other packages using the cache if that directory is
1637    # removed, or if the path is relative.
1638    INSTALL=$ac_install_sh
1639  fi
1640fi
1641echo "$as_me:$LINENO: result: $INSTALL" >&5
1642echo "${ECHO_T}$INSTALL" >&6
1643
1644# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1645# It thinks the first close brace ends the variable substitution.
1646test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1647
1648test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1649
1650test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1651
1652echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1653echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1654# Just in case
1655sleep 1
1656echo timestamp > conftest.file
1657# Do `set' in a subshell so we don't clobber the current shell's
1658# arguments.  Must try -L first in case configure is actually a
1659# symlink; some systems play weird games with the mod time of symlinks
1660# (eg FreeBSD returns the mod time of the symlink's containing
1661# directory).
1662if (
1663   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1664   if test "$*" = "X"; then
1665      # -L didn't work.
1666      set X `ls -t $srcdir/configure conftest.file`
1667   fi
1668   rm -f conftest.file
1669   if test "$*" != "X $srcdir/configure conftest.file" \
1670      && test "$*" != "X conftest.file $srcdir/configure"; then
1671
1672      # If neither matched, then we have a broken ls.  This can happen
1673      # if, for instance, CONFIG_SHELL is bash and it inherits a
1674      # broken ls alias from the environment.  This has actually
1675      # happened.  Such a system could not be considered "sane".
1676      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1677alias in your environment" >&5
1678echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1679alias in your environment" >&2;}
1680   { (exit 1); exit 1; }; }
1681   fi
1682
1683   test "$2" = conftest.file
1684   )
1685then
1686   # Ok.
1687   :
1688else
1689   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1690Check your system clock" >&5
1691echo "$as_me: error: newly created file is older than distributed files!
1692Check your system clock" >&2;}
1693   { (exit 1); exit 1; }; }
1694fi
1695echo "$as_me:$LINENO: result: yes" >&5
1696echo "${ECHO_T}yes" >&6
1697test "$program_prefix" != NONE &&
1698  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1699# Use a double $ so make ignores it.
1700test "$program_suffix" != NONE &&
1701  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1702# Double any \ or $.  echo might interpret backslashes.
1703# By default was `s,x,x', remove it if useless.
1704cat <<\_ACEOF >conftest.sed
1705s/[\\$]/&&/g;s/;s,x,x,$//
1706_ACEOF
1707program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1708rm conftest.sed
1709
1710# expand $ac_aux_dir to an absolute path
1711am_aux_dir=`cd $ac_aux_dir && pwd`
1712
1713test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1714# Use eval to expand $SHELL
1715if eval "$MISSING --run true"; then
1716  am_missing_run="$MISSING --run "
1717else
1718  am_missing_run=
1719  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1720echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1721fi
1722
1723if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1724  # We used to keeping the `.' as first argument, in order to
1725  # allow $(mkdir_p) to be used without argument.  As in
1726  #   $(mkdir_p) $(somedir)
1727  # where $(somedir) is conditionally defined.  However this is wrong
1728  # for two reasons:
1729  #  1. if the package is installed by a user who cannot write `.'
1730  #     make install will fail,
1731  #  2. the above comment should most certainly read
1732  #     $(mkdir_p) $(DESTDIR)$(somedir)
1733  #     so it does not work when $(somedir) is undefined and
1734  #     $(DESTDIR) is not.
1735  #  To support the latter case, we have to write
1736  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1737  #  so the `.' trick is pointless.
1738  mkdir_p='mkdir -p --'
1739else
1740  # On NextStep and OpenStep, the `mkdir' command does not
1741  # recognize any option.  It will interpret all options as
1742  # directories to create, and then abort because `.' already
1743  # exists.
1744  for d in ./-p ./--version;
1745  do
1746    test -d $d && rmdir $d
1747  done
1748  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1749  if test -f "$ac_aux_dir/mkinstalldirs"; then
1750    mkdir_p='$(mkinstalldirs)'
1751  else
1752    mkdir_p='$(install_sh) -d'
1753  fi
1754fi
1755
1756for ac_prog in gawk mawk nawk awk
1757do
1758  # Extract the first word of "$ac_prog", so it can be a program name with args.
1759set dummy $ac_prog; ac_word=$2
1760echo "$as_me:$LINENO: checking for $ac_word" >&5
1761echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1762if test "${ac_cv_prog_AWK+set}" = set; then
1763  echo $ECHO_N "(cached) $ECHO_C" >&6
1764else
1765  if test -n "$AWK"; then
1766  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1767else
1768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1769for as_dir in $PATH
1770do
1771  IFS=$as_save_IFS
1772  test -z "$as_dir" && as_dir=.
1773  for ac_exec_ext in '' $ac_executable_extensions; do
1774  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1775    ac_cv_prog_AWK="$ac_prog"
1776    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1777    break 2
1778  fi
1779done
1780done
1781
1782fi
1783fi
1784AWK=$ac_cv_prog_AWK
1785if test -n "$AWK"; then
1786  echo "$as_me:$LINENO: result: $AWK" >&5
1787echo "${ECHO_T}$AWK" >&6
1788else
1789  echo "$as_me:$LINENO: result: no" >&5
1790echo "${ECHO_T}no" >&6
1791fi
1792
1793  test -n "$AWK" && break
1794done
1795
1796echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1797echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1798set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1799if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1800  echo $ECHO_N "(cached) $ECHO_C" >&6
1801else
1802  cat >conftest.make <<\_ACEOF
1803all:
1804	@echo 'ac_maketemp="$(MAKE)"'
1805_ACEOF
1806# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1807eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1808if test -n "$ac_maketemp"; then
1809  eval ac_cv_prog_make_${ac_make}_set=yes
1810else
1811  eval ac_cv_prog_make_${ac_make}_set=no
1812fi
1813rm -f conftest.make
1814fi
1815if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1816  echo "$as_me:$LINENO: result: yes" >&5
1817echo "${ECHO_T}yes" >&6
1818  SET_MAKE=
1819else
1820  echo "$as_me:$LINENO: result: no" >&5
1821echo "${ECHO_T}no" >&6
1822  SET_MAKE="MAKE=${MAKE-make}"
1823fi
1824
1825rm -rf .tst 2>/dev/null
1826mkdir .tst 2>/dev/null
1827if test -d .tst; then
1828  am__leading_dot=.
1829else
1830  am__leading_dot=_
1831fi
1832rmdir .tst 2>/dev/null
1833
1834# test to see if srcdir already configured
1835if test "`cd $srcdir && pwd`" != "`pwd`" &&
1836   test -f $srcdir/config.status; then
1837  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1838echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1839   { (exit 1); exit 1; }; }
1840fi
1841
1842# test whether we have cygpath
1843if test -z "$CYGPATH_W"; then
1844  if (cygpath --version) >/dev/null 2>/dev/null; then
1845    CYGPATH_W='cygpath -w'
1846  else
1847    CYGPATH_W=echo
1848  fi
1849fi
1850
1851
1852# Define the identity of the package.
1853 PACKAGE=Eterm
1854 VERSION=0.9.6
1855
1856
1857cat >>confdefs.h <<_ACEOF
1858#define PACKAGE "$PACKAGE"
1859_ACEOF
1860
1861
1862cat >>confdefs.h <<_ACEOF
1863#define VERSION "$VERSION"
1864_ACEOF
1865
1866# Some tools Automake needs.
1867
1868ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1869
1870
1871AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1872
1873
1874AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1875
1876
1877AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1878
1879
1880MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1881
1882install_sh=${install_sh-"$am_aux_dir/install-sh"}
1883
1884# Installed binaries are usually stripped using `strip' when the user
1885# run `make install-strip'.  However `strip' might not be the right
1886# tool to use in cross-compilation environments, therefore Automake
1887# will honor the `STRIP' environment variable to overrule this program.
1888if test "$cross_compiling" != no; then
1889  if test -n "$ac_tool_prefix"; then
1890  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1891set dummy ${ac_tool_prefix}strip; ac_word=$2
1892echo "$as_me:$LINENO: checking for $ac_word" >&5
1893echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1894if test "${ac_cv_prog_STRIP+set}" = set; then
1895  echo $ECHO_N "(cached) $ECHO_C" >&6
1896else
1897  if test -n "$STRIP"; then
1898  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1899else
1900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1901for as_dir in $PATH
1902do
1903  IFS=$as_save_IFS
1904  test -z "$as_dir" && as_dir=.
1905  for ac_exec_ext in '' $ac_executable_extensions; do
1906  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1907    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1908    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1909    break 2
1910  fi
1911done
1912done
1913
1914fi
1915fi
1916STRIP=$ac_cv_prog_STRIP
1917if test -n "$STRIP"; then
1918  echo "$as_me:$LINENO: result: $STRIP" >&5
1919echo "${ECHO_T}$STRIP" >&6
1920else
1921  echo "$as_me:$LINENO: result: no" >&5
1922echo "${ECHO_T}no" >&6
1923fi
1924
1925fi
1926if test -z "$ac_cv_prog_STRIP"; then
1927  ac_ct_STRIP=$STRIP
1928  # Extract the first word of "strip", so it can be a program name with args.
1929set dummy strip; ac_word=$2
1930echo "$as_me:$LINENO: checking for $ac_word" >&5
1931echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1932if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1933  echo $ECHO_N "(cached) $ECHO_C" >&6
1934else
1935  if test -n "$ac_ct_STRIP"; then
1936  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1937else
1938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1939for as_dir in $PATH
1940do
1941  IFS=$as_save_IFS
1942  test -z "$as_dir" && as_dir=.
1943  for ac_exec_ext in '' $ac_executable_extensions; do
1944  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1945    ac_cv_prog_ac_ct_STRIP="strip"
1946    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1947    break 2
1948  fi
1949done
1950done
1951
1952  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1953fi
1954fi
1955ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1956if test -n "$ac_ct_STRIP"; then
1957  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1958echo "${ECHO_T}$ac_ct_STRIP" >&6
1959else
1960  echo "$as_me:$LINENO: result: no" >&5
1961echo "${ECHO_T}no" >&6
1962fi
1963
1964  STRIP=$ac_ct_STRIP
1965else
1966  STRIP="$ac_cv_prog_STRIP"
1967fi
1968
1969fi
1970INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1971
1972# We need awk for the "check" target.  The system "awk" is bad on
1973# some platforms.
1974# Always define AMTAR for backward compatibility.
1975
1976AMTAR=${AMTAR-"${am_missing_run}tar"}
1977
1978am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1979
1980
1981
1982
1983
1984
1985DATE="`date '+%d %B %Y'`"
1986
1987BUILD_DATE="`date`"
1988
1989cat >>confdefs.h <<_ACEOF
1990#define BUILD_DATE "$BUILD_DATE"
1991_ACEOF
1992
1993AUTHORS="Michael Jennings (mej@eterm.org) "
1994
1995
1996cat >>confdefs.h <<_ACEOF
1997#define AUTHORS "$AUTHORS"
1998_ACEOF
1999
2000
2001LIBTOOLIZE="${SAVE_LIBTOOLIZE:-libtoolize}"
2002ACLOCAL="${SAVE_ACLOCAL:-aclocal}"
2003AUTOCONF="${SAVE_AUTOCONF:-autoconf}"
2004AUTOHEADER="${SAVE_AUTOHEADER:-autoheader}"
2005AUTOMAKE="${SAVE_AUTOMAKE:-automake}"
2006
2007echo "$as_me:$LINENO: checking for preferred libtoolize" >&5
2008echo $ECHO_N "checking for preferred libtoolize... $ECHO_C" >&6
2009echo "$as_me:$LINENO: result: $LIBTOOLIZE" >&5
2010echo "${ECHO_T}$LIBTOOLIZE" >&6
2011echo "$as_me:$LINENO: checking for preferred aclocal" >&5
2012echo $ECHO_N "checking for preferred aclocal... $ECHO_C" >&6
2013echo "$as_me:$LINENO: result: $ACLOCAL" >&5
2014echo "${ECHO_T}$ACLOCAL" >&6
2015echo "$as_me:$LINENO: checking for preferred autoconf" >&5
2016echo $ECHO_N "checking for preferred autoconf... $ECHO_C" >&6
2017echo "$as_me:$LINENO: result: $AUTOCONF" >&5
2018echo "${ECHO_T}$AUTOCONF" >&6
2019echo "$as_me:$LINENO: checking for preferred autoheader" >&5
2020echo $ECHO_N "checking for preferred autoheader... $ECHO_C" >&6
2021echo "$as_me:$LINENO: result: $AUTOHEADER" >&5
2022echo "${ECHO_T}$AUTOHEADER" >&6
2023echo "$as_me:$LINENO: checking for preferred automake" >&5
2024echo $ECHO_N "checking for preferred automake... $ECHO_C" >&6
2025echo "$as_me:$LINENO: result: $AUTOMAKE" >&5
2026echo "${ECHO_T}$AUTOMAKE" >&6
2027
2028
2029cat >>confdefs.h <<_ACEOF
2030#define ACTIONS_IDENT "`grep '$''Id:' $srcdir/src/actions.c | sed 's/^.*\$''Id: //;s/ \$.*$//;s/.v / /;s/ Exp//'`"
2031_ACEOF
2032
2033
2034cat >>confdefs.h <<_ACEOF
2035#define BUTTONS_IDENT "`grep '$''Id:' $srcdir/src/buttons.c | sed 's/^.*\$''Id: //;s/ \$.*$//;s/.v / /;s/ Exp//'`"
2036_ACEOF
2037
2038
2039cat >>confdefs.h <<_ACEOF
2040#define COMMAND_IDENT "`grep '$''Id:' $srcdir/src/command.c | sed 's/^.*\$''Id: //;s/ \$.*$//;s/.v / /;s/ Exp//'`"
2041_ACEOF
2042
2043
2044cat >>confdefs.h <<_ACEOF
2045#define DRAW_IDENT "`grep '$''Id:' $srcdir/src/draw.c | sed 's/^.*\$''Id: //;s/ \$.*$//;s/.v / /;s/ Exp//'`"
2046_ACEOF
2047
2048
2049cat >>confdefs.h <<_ACEOF
2050#define E_IDENT "`grep '$''Id:' $srcdir/src/e.c | sed 's/^.*\$''Id: //;s/ \$.*$//;s/.v / /;s/ Exp//'`"
2051_ACEOF
2052
2053
2054cat >>confdefs.h <<_ACEOF
2055#define EVENTS_IDENT "`grep '$''Id:' $srcdir/src/events.c | sed 's/^.*\$''Id: //;s/ \$.*$//;s/.v / /;s/ Exp//'`"
2056_ACEOF
2057
2058
2059cat >>confdefs.h <<_ACEOF
2060#define FONT_IDENT "`grep '$''Id:' $srcdir/src/font.c | sed 's/^.*\$''Id: //;s/ \$.*$//;s/.v / /;s/ Exp//'`"
2061_ACEOF
2062
2063
2064cat >>confdefs.h <<_ACEOF
2065#define GRKELOT_IDENT "`grep '$''Id:' $srcdir/src/grkelot.c | sed 's/^.*\$''Id: //;s/ \$.*$//;s/.v / /;s/ Exp//'`"
2066_ACEOF
2067
2068
2069cat >>confdefs.h <<_ACEOF
2070#define MAIN_IDENT "`grep '$''Id:' $srcdir/src/main.c | sed 's/^.*\$''Id: //;s/ \$.*$//;s/.v / /;s/ Exp//'`"
2071_ACEOF
2072
2073
2074cat >>confdefs.h <<_ACEOF
2075#define MENUS_IDENT "`grep '$''Id:' $srcdir/src/menus.c | sed 's/^.*\$''Id: //;s/ \$.*$//;s/.v / /;s/ Exp//'`"
2076_ACEOF
2077
2078
2079cat >>confdefs.h <<_ACEOF
2080#define MISC_IDENT "`grep '$''Id:' $srcdir/src/misc.c | sed 's/^.*\$''Id: //;s/ \$.*$//;s/.v / /;s/ Exp//'`"
2081_ACEOF
2082
2083
2084cat >>confdefs.h <<_ACEOF
2085#define OPTIONS_IDENT "`grep '$''Id:' $srcdir/src/options.c | sed 's/^.*\$''Id: //;s/ \$.*$//;s/.v / /;s/ Exp//'`"
2086_ACEOF
2087
2088
2089cat >>confdefs.h <<_ACEOF
2090#define PIXMAP_IDENT "`grep '$''Id:' $srcdir/src/pixmap.c | sed 's/^.*\$''Id: //;s/ \$.*$//;s/.v / /;s/ Exp//'`"
2091_ACEOF
2092
2093
2094cat >>confdefs.h <<_ACEOF
2095#define SCREEN_IDENT "`grep '$''Id:' $srcdir/src/screen.c | sed 's/^.*\$''Id: //;s/ \$.*$//;s/.v / /;s/ Exp//'`"
2096_ACEOF
2097
2098
2099cat >>confdefs.h <<_ACEOF
2100#define SCROLLBAR_IDENT "`grep '$''Id:' $srcdir/src/scrollbar.c | sed 's/^.*\$''Id: //;s/ \$.*$//;s/.v / /;s/ Exp//'`"
2101_ACEOF
2102
2103
2104cat >>confdefs.h <<_ACEOF
2105#define STARTUP_IDENT "`grep '$''Id:' $srcdir/src/startup.c | sed 's/^.*\$''Id: //;s/ \$.*$//;s/.v / /;s/ Exp//'`"
2106_ACEOF
2107
2108
2109cat >>confdefs.h <<_ACEOF
2110#define SYSTEM_IDENT "`grep '$''Id:' $srcdir/src/system.c | sed 's/^.*\$''Id: //;s/ \$.*$//;s/.v / /;s/ Exp//'`"
2111_ACEOF
2112
2113
2114cat >>confdefs.h <<_ACEOF
2115#define TERM_IDENT "`grep '$''Id:' $srcdir/src/term.c | sed 's/^.*\$''Id: //;s/ \$.*$//;s/.v / /;s/ Exp//'`"
2116_ACEOF
2117
2118
2119cat >>confdefs.h <<_ACEOF
2120#define TIMER_IDENT "`grep '$''Id:' $srcdir/src/timer.c | sed 's/^.*\$''Id: //;s/ \$.*$//;s/.v / /;s/ Exp//'`"
2121_ACEOF
2122
2123
2124cat >>confdefs.h <<_ACEOF
2125#define UTMP_IDENT "`grep '$''Id:' $srcdir/src/utmp.c | sed 's/^.*\$''Id: //;s/ \$.*$//;s/.v / /;s/ Exp//'`"
2126_ACEOF
2127
2128
2129cat >>confdefs.h <<_ACEOF
2130#define WINDOWS_IDENT "`grep '$''Id:' $srcdir/src/windows.c | sed 's/^.*\$''Id: //;s/ \$.*$//;s/.v / /;s/ Exp//'`"
2131_ACEOF
2132
2133
2134# Make sure we can run config.sub.
2135$ac_config_sub sun4 >/dev/null 2>&1 ||
2136  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2137echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2138   { (exit 1); exit 1; }; }
2139
2140echo "$as_me:$LINENO: checking build system type" >&5
2141echo $ECHO_N "checking build system type... $ECHO_C" >&6
2142if test "${ac_cv_build+set}" = set; then
2143  echo $ECHO_N "(cached) $ECHO_C" >&6
2144else
2145  ac_cv_build_alias=$build_alias
2146test -z "$ac_cv_build_alias" &&
2147  ac_cv_build_alias=`$ac_config_guess`
2148test -z "$ac_cv_build_alias" &&
2149  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2150echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2151   { (exit 1); exit 1; }; }
2152ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2153  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2154echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2155   { (exit 1); exit 1; }; }
2156
2157fi
2158echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2159echo "${ECHO_T}$ac_cv_build" >&6
2160build=$ac_cv_build
2161build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2162build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2163build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2164
2165
2166echo "$as_me:$LINENO: checking host system type" >&5
2167echo $ECHO_N "checking host system type... $ECHO_C" >&6
2168if test "${ac_cv_host+set}" = set; then
2169  echo $ECHO_N "(cached) $ECHO_C" >&6
2170else
2171  ac_cv_host_alias=$host_alias
2172test -z "$ac_cv_host_alias" &&
2173  ac_cv_host_alias=$ac_cv_build_alias
2174ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2175  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2176echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2177   { (exit 1); exit 1; }; }
2178
2179fi
2180echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2181echo "${ECHO_T}$ac_cv_host" >&6
2182host=$ac_cv_host
2183host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2184host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2185host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2186
2187
2188
2189if test ! -z "${CFLAGS}" -o ! -z "${CCOPTS}"; then
2190  CFLAGS_GIVEN=1
2191else
2192  CFLAGS_GIVEN=0
2193fi
2194
2195if test -z "${CFLAGS}"; then
2196    if test -z "${CCOPTS}"; then
2197	CCOPTS="-O"
2198    fi
2199    CFLAGS="$CCOPTS"
2200fi
2201
2202
2203# Check whether --with-cc or --without-cc was given.
2204if test "${with_cc+set}" = set; then
2205  withval="$with_cc"
2206
2207            CC=$withval,
2208  if test -z "$CC"; then
2209    CC=check
2210  fi
2211
2212fi;
2213
2214if test "$CC" = "check"; then
2215    # Extract the first word of "pgcc", so it can be a program name with args.
2216set dummy pgcc; ac_word=$2
2217echo "$as_me:$LINENO: checking for $ac_word" >&5
2218echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2219if test "${ac_cv_prog_PGCC+set}" = set; then
2220  echo $ECHO_N "(cached) $ECHO_C" >&6
2221else
2222  if test -n "$PGCC"; then
2223  ac_cv_prog_PGCC="$PGCC" # Let the user override the test.
2224else
2225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2226for as_dir in $PATH
2227do
2228  IFS=$as_save_IFS
2229  test -z "$as_dir" && as_dir=.
2230  for ac_exec_ext in '' $ac_executable_extensions; do
2231  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2232    ac_cv_prog_PGCC="pgcc"
2233    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2234    break 2
2235  fi
2236done
2237done
2238
2239fi
2240fi
2241PGCC=$ac_cv_prog_PGCC
2242if test -n "$PGCC"; then
2243  echo "$as_me:$LINENO: result: $PGCC" >&5
2244echo "${ECHO_T}$PGCC" >&6
2245else
2246  echo "$as_me:$LINENO: result: no" >&5
2247echo "${ECHO_T}no" >&6
2248fi
2249
2250
2251  if test ! -z "$PGCC"; then
2252    CC=$PGCC
2253  else
2254    unset CC
2255  fi
2256fi
2257
2258ac_ext=c
2259ac_cpp='$CPP $CPPFLAGS'
2260ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2261ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2262ac_compiler_gnu=$ac_cv_c_compiler_gnu
2263if test -n "$ac_tool_prefix"; then
2264  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2265set dummy ${ac_tool_prefix}gcc; ac_word=$2
2266echo "$as_me:$LINENO: checking for $ac_word" >&5
2267echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2268if test "${ac_cv_prog_CC+set}" = set; then
2269  echo $ECHO_N "(cached) $ECHO_C" >&6
2270else
2271  if test -n "$CC"; then
2272  ac_cv_prog_CC="$CC" # Let the user override the test.
2273else
2274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2275for as_dir in $PATH
2276do
2277  IFS=$as_save_IFS
2278  test -z "$as_dir" && as_dir=.
2279  for ac_exec_ext in '' $ac_executable_extensions; do
2280  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2281    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2282    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2283    break 2
2284  fi
2285done
2286done
2287
2288fi
2289fi
2290CC=$ac_cv_prog_CC
2291if test -n "$CC"; then
2292  echo "$as_me:$LINENO: result: $CC" >&5
2293echo "${ECHO_T}$CC" >&6
2294else
2295  echo "$as_me:$LINENO: result: no" >&5
2296echo "${ECHO_T}no" >&6
2297fi
2298
2299fi
2300if test -z "$ac_cv_prog_CC"; then
2301  ac_ct_CC=$CC
2302  # Extract the first word of "gcc", so it can be a program name with args.
2303set dummy gcc; ac_word=$2
2304echo "$as_me:$LINENO: checking for $ac_word" >&5
2305echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2306if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2307  echo $ECHO_N "(cached) $ECHO_C" >&6
2308else
2309  if test -n "$ac_ct_CC"; then
2310  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2311else
2312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2313for as_dir in $PATH
2314do
2315  IFS=$as_save_IFS
2316  test -z "$as_dir" && as_dir=.
2317  for ac_exec_ext in '' $ac_executable_extensions; do
2318  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2319    ac_cv_prog_ac_ct_CC="gcc"
2320    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2321    break 2
2322  fi
2323done
2324done
2325
2326fi
2327fi
2328ac_ct_CC=$ac_cv_prog_ac_ct_CC
2329if test -n "$ac_ct_CC"; then
2330  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2331echo "${ECHO_T}$ac_ct_CC" >&6
2332else
2333  echo "$as_me:$LINENO: result: no" >&5
2334echo "${ECHO_T}no" >&6
2335fi
2336
2337  CC=$ac_ct_CC
2338else
2339  CC="$ac_cv_prog_CC"
2340fi
2341
2342if test -z "$CC"; then
2343  if test -n "$ac_tool_prefix"; then
2344  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2345set dummy ${ac_tool_prefix}cc; ac_word=$2
2346echo "$as_me:$LINENO: checking for $ac_word" >&5
2347echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2348if test "${ac_cv_prog_CC+set}" = set; then
2349  echo $ECHO_N "(cached) $ECHO_C" >&6
2350else
2351  if test -n "$CC"; then
2352  ac_cv_prog_CC="$CC" # Let the user override the test.
2353else
2354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2355for as_dir in $PATH
2356do
2357  IFS=$as_save_IFS
2358  test -z "$as_dir" && as_dir=.
2359  for ac_exec_ext in '' $ac_executable_extensions; do
2360  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2361    ac_cv_prog_CC="${ac_tool_prefix}cc"
2362    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2363    break 2
2364  fi
2365done
2366done
2367
2368fi
2369fi
2370CC=$ac_cv_prog_CC
2371if test -n "$CC"; then
2372  echo "$as_me:$LINENO: result: $CC" >&5
2373echo "${ECHO_T}$CC" >&6
2374else
2375  echo "$as_me:$LINENO: result: no" >&5
2376echo "${ECHO_T}no" >&6
2377fi
2378
2379fi
2380if test -z "$ac_cv_prog_CC"; then
2381  ac_ct_CC=$CC
2382  # Extract the first word of "cc", so it can be a program name with args.
2383set dummy cc; ac_word=$2
2384echo "$as_me:$LINENO: checking for $ac_word" >&5
2385echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2386if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2387  echo $ECHO_N "(cached) $ECHO_C" >&6
2388else
2389  if test -n "$ac_ct_CC"; then
2390  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2391else
2392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2393for as_dir in $PATH
2394do
2395  IFS=$as_save_IFS
2396  test -z "$as_dir" && as_dir=.
2397  for ac_exec_ext in '' $ac_executable_extensions; do
2398  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2399    ac_cv_prog_ac_ct_CC="cc"
2400    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2401    break 2
2402  fi
2403done
2404done
2405
2406fi
2407fi
2408ac_ct_CC=$ac_cv_prog_ac_ct_CC
2409if test -n "$ac_ct_CC"; then
2410  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2411echo "${ECHO_T}$ac_ct_CC" >&6
2412else
2413  echo "$as_me:$LINENO: result: no" >&5
2414echo "${ECHO_T}no" >&6
2415fi
2416
2417  CC=$ac_ct_CC
2418else
2419  CC="$ac_cv_prog_CC"
2420fi
2421
2422fi
2423if test -z "$CC"; then
2424  # Extract the first word of "cc", so it can be a program name with args.
2425set dummy cc; ac_word=$2
2426echo "$as_me:$LINENO: checking for $ac_word" >&5
2427echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2428if test "${ac_cv_prog_CC+set}" = set; then
2429  echo $ECHO_N "(cached) $ECHO_C" >&6
2430else
2431  if test -n "$CC"; then
2432  ac_cv_prog_CC="$CC" # Let the user override the test.
2433else
2434  ac_prog_rejected=no
2435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2436for as_dir in $PATH
2437do
2438  IFS=$as_save_IFS
2439  test -z "$as_dir" && as_dir=.
2440  for ac_exec_ext in '' $ac_executable_extensions; do
2441  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2442    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2443       ac_prog_rejected=yes
2444       continue
2445     fi
2446    ac_cv_prog_CC="cc"
2447    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2448    break 2
2449  fi
2450done
2451done
2452
2453if test $ac_prog_rejected = yes; then
2454  # We found a bogon in the path, so make sure we never use it.
2455  set dummy $ac_cv_prog_CC
2456  shift
2457  if test $# != 0; then
2458    # We chose a different compiler from the bogus one.
2459    # However, it has the same basename, so the bogon will be chosen
2460    # first if we set CC to just the basename; use the full file name.
2461    shift
2462    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2463  fi
2464fi
2465fi
2466fi
2467CC=$ac_cv_prog_CC
2468if test -n "$CC"; then
2469  echo "$as_me:$LINENO: result: $CC" >&5
2470echo "${ECHO_T}$CC" >&6
2471else
2472  echo "$as_me:$LINENO: result: no" >&5
2473echo "${ECHO_T}no" >&6
2474fi
2475
2476fi
2477if test -z "$CC"; then
2478  if test -n "$ac_tool_prefix"; then
2479  for ac_prog in cl
2480  do
2481    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2482set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2483echo "$as_me:$LINENO: checking for $ac_word" >&5
2484echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2485if test "${ac_cv_prog_CC+set}" = set; then
2486  echo $ECHO_N "(cached) $ECHO_C" >&6
2487else
2488  if test -n "$CC"; then
2489  ac_cv_prog_CC="$CC" # Let the user override the test.
2490else
2491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2492for as_dir in $PATH
2493do
2494  IFS=$as_save_IFS
2495  test -z "$as_dir" && as_dir=.
2496  for ac_exec_ext in '' $ac_executable_extensions; do
2497  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2498    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2499    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2500    break 2
2501  fi
2502done
2503done
2504
2505fi
2506fi
2507CC=$ac_cv_prog_CC
2508if test -n "$CC"; then
2509  echo "$as_me:$LINENO: result: $CC" >&5
2510echo "${ECHO_T}$CC" >&6
2511else
2512  echo "$as_me:$LINENO: result: no" >&5
2513echo "${ECHO_T}no" >&6
2514fi
2515
2516    test -n "$CC" && break
2517  done
2518fi
2519if test -z "$CC"; then
2520  ac_ct_CC=$CC
2521  for ac_prog in cl
2522do
2523  # Extract the first word of "$ac_prog", so it can be a program name with args.
2524set dummy $ac_prog; ac_word=$2
2525echo "$as_me:$LINENO: checking for $ac_word" >&5
2526echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2527if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2528  echo $ECHO_N "(cached) $ECHO_C" >&6
2529else
2530  if test -n "$ac_ct_CC"; then
2531  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2532else
2533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2534for as_dir in $PATH
2535do
2536  IFS=$as_save_IFS
2537  test -z "$as_dir" && as_dir=.
2538  for ac_exec_ext in '' $ac_executable_extensions; do
2539  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2540    ac_cv_prog_ac_ct_CC="$ac_prog"
2541    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2542    break 2
2543  fi
2544done
2545done
2546
2547fi
2548fi
2549ac_ct_CC=$ac_cv_prog_ac_ct_CC
2550if test -n "$ac_ct_CC"; then
2551  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2552echo "${ECHO_T}$ac_ct_CC" >&6
2553else
2554  echo "$as_me:$LINENO: result: no" >&5
2555echo "${ECHO_T}no" >&6
2556fi
2557
2558  test -n "$ac_ct_CC" && break
2559done
2560
2561  CC=$ac_ct_CC
2562fi
2563
2564fi
2565
2566
2567test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2568See \`config.log' for more details." >&5
2569echo "$as_me: error: no acceptable C compiler found in \$PATH
2570See \`config.log' for more details." >&2;}
2571   { (exit 1); exit 1; }; }
2572
2573# Provide some information about the compiler.
2574echo "$as_me:$LINENO:" \
2575     "checking for C compiler version" >&5
2576ac_compiler=`set X $ac_compile; echo $2`
2577{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2578  (eval $ac_compiler --version </dev/null >&5) 2>&5
2579  ac_status=$?
2580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581  (exit $ac_status); }
2582{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2583  (eval $ac_compiler -v </dev/null >&5) 2>&5
2584  ac_status=$?
2585  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586  (exit $ac_status); }
2587{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2588  (eval $ac_compiler -V </dev/null >&5) 2>&5
2589  ac_status=$?
2590  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2591  (exit $ac_status); }
2592
2593cat >conftest.$ac_ext <<_ACEOF
2594/* confdefs.h.  */
2595_ACEOF
2596cat confdefs.h >>conftest.$ac_ext
2597cat >>conftest.$ac_ext <<_ACEOF
2598/* end confdefs.h.  */
2599
2600int
2601main ()
2602{
2603
2604  ;
2605  return 0;
2606}
2607_ACEOF
2608ac_clean_files_save=$ac_clean_files
2609ac_clean_files="$ac_clean_files a.out a.exe b.out"
2610# Try to create an executable without -o first, disregard a.out.
2611# It will help us diagnose broken compilers, and finding out an intuition
2612# of exeext.
2613echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2614echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2615ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2616if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2617  (eval $ac_link_default) 2>&5
2618  ac_status=$?
2619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620  (exit $ac_status); }; then
2621  # Find the output, starting from the most likely.  This scheme is
2622# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2623# resort.
2624
2625# Be careful to initialize this variable, since it used to be cached.
2626# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2627ac_cv_exeext=
2628# b.out is created by i960 compilers.
2629for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2630do
2631  test -f "$ac_file" || continue
2632  case $ac_file in
2633    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2634	;;
2635    conftest.$ac_ext )
2636	# This is the source file.
2637	;;
2638    [ab].out )
2639	# We found the default executable, but exeext='' is most
2640	# certainly right.
2641	break;;
2642    *.* )
2643	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2644	# FIXME: I believe we export ac_cv_exeext for Libtool,
2645	# but it would be cool to find out if it's true.  Does anybody
2646	# maintain Libtool? --akim.
2647	export ac_cv_exeext
2648	break;;
2649    * )
2650	break;;
2651  esac
2652done
2653else
2654  echo "$as_me: failed program was:" >&5
2655sed 's/^/| /' conftest.$ac_ext >&5
2656
2657{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2658See \`config.log' for more details." >&5
2659echo "$as_me: error: C compiler cannot create executables
2660See \`config.log' for more details." >&2;}
2661   { (exit 77); exit 77; }; }
2662fi
2663
2664ac_exeext=$ac_cv_exeext
2665echo "$as_me:$LINENO: result: $ac_file" >&5
2666echo "${ECHO_T}$ac_file" >&6
2667
2668# Check the compiler produces executables we can run.  If not, either
2669# the compiler is broken, or we cross compile.
2670echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2671echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2672# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2673# If not cross compiling, check that we can run a simple program.
2674if test "$cross_compiling" != yes; then
2675  if { ac_try='./$ac_file'
2676  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2677  (eval $ac_try) 2>&5
2678  ac_status=$?
2679  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680  (exit $ac_status); }; }; then
2681    cross_compiling=no
2682  else
2683    if test "$cross_compiling" = maybe; then
2684	cross_compiling=yes
2685    else
2686	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2687If you meant to cross compile, use \`--host'.
2688See \`config.log' for more details." >&5
2689echo "$as_me: error: cannot run C compiled programs.
2690If you meant to cross compile, use \`--host'.
2691See \`config.log' for more details." >&2;}
2692   { (exit 1); exit 1; }; }
2693    fi
2694  fi
2695fi
2696echo "$as_me:$LINENO: result: yes" >&5
2697echo "${ECHO_T}yes" >&6
2698
2699rm -f a.out a.exe conftest$ac_cv_exeext b.out
2700ac_clean_files=$ac_clean_files_save
2701# Check the compiler produces executables we can run.  If not, either
2702# the compiler is broken, or we cross compile.
2703echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2704echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2705echo "$as_me:$LINENO: result: $cross_compiling" >&5
2706echo "${ECHO_T}$cross_compiling" >&6
2707
2708echo "$as_me:$LINENO: checking for suffix of executables" >&5
2709echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2710if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2711  (eval $ac_link) 2>&5
2712  ac_status=$?
2713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714  (exit $ac_status); }; then
2715  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2716# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2717# work properly (i.e., refer to `conftest.exe'), while it won't with
2718# `rm'.
2719for ac_file in conftest.exe conftest conftest.*; do
2720  test -f "$ac_file" || continue
2721  case $ac_file in
2722    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2723    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2724	  export ac_cv_exeext
2725	  break;;
2726    * ) break;;
2727  esac
2728done
2729else
2730  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2731See \`config.log' for more details." >&5
2732echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2733See \`config.log' for more details." >&2;}
2734   { (exit 1); exit 1; }; }
2735fi
2736
2737rm -f conftest$ac_cv_exeext
2738echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2739echo "${ECHO_T}$ac_cv_exeext" >&6
2740
2741rm -f conftest.$ac_ext
2742EXEEXT=$ac_cv_exeext
2743ac_exeext=$EXEEXT
2744echo "$as_me:$LINENO: checking for suffix of object files" >&5
2745echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2746if test "${ac_cv_objext+set}" = set; then
2747  echo $ECHO_N "(cached) $ECHO_C" >&6
2748else
2749  cat >conftest.$ac_ext <<_ACEOF
2750/* confdefs.h.  */
2751_ACEOF
2752cat confdefs.h >>conftest.$ac_ext
2753cat >>conftest.$ac_ext <<_ACEOF
2754/* end confdefs.h.  */
2755
2756int
2757main ()
2758{
2759
2760  ;
2761  return 0;
2762}
2763_ACEOF
2764rm -f conftest.o conftest.obj
2765if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2766  (eval $ac_compile) 2>&5
2767  ac_status=$?
2768  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2769  (exit $ac_status); }; then
2770  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2771  case $ac_file in
2772    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2773    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2774       break;;
2775  esac
2776done
2777else
2778  echo "$as_me: failed program was:" >&5
2779sed 's/^/| /' conftest.$ac_ext >&5
2780
2781{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2782See \`config.log' for more details." >&5
2783echo "$as_me: error: cannot compute suffix of object files: cannot compile
2784See \`config.log' for more details." >&2;}
2785   { (exit 1); exit 1; }; }
2786fi
2787
2788rm -f conftest.$ac_cv_objext conftest.$ac_ext
2789fi
2790echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2791echo "${ECHO_T}$ac_cv_objext" >&6
2792OBJEXT=$ac_cv_objext
2793ac_objext=$OBJEXT
2794echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2795echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2796if test "${ac_cv_c_compiler_gnu+set}" = set; then
2797  echo $ECHO_N "(cached) $ECHO_C" >&6
2798else
2799  cat >conftest.$ac_ext <<_ACEOF
2800/* confdefs.h.  */
2801_ACEOF
2802cat confdefs.h >>conftest.$ac_ext
2803cat >>conftest.$ac_ext <<_ACEOF
2804/* end confdefs.h.  */
2805
2806int
2807main ()
2808{
2809#ifndef __GNUC__
2810       choke me
2811#endif
2812
2813  ;
2814  return 0;
2815}
2816_ACEOF
2817rm -f conftest.$ac_objext
2818if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2819  (eval $ac_compile) 2>conftest.er1
2820  ac_status=$?
2821  grep -v '^ *+' conftest.er1 >conftest.err
2822  rm -f conftest.er1
2823  cat conftest.err >&5
2824  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2825  (exit $ac_status); } &&
2826	 { ac_try='test -z "$ac_c_werror_flag"
2827			 || test ! -s conftest.err'
2828  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2829  (eval $ac_try) 2>&5
2830  ac_status=$?
2831  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2832  (exit $ac_status); }; } &&
2833	 { ac_try='test -s conftest.$ac_objext'
2834  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2835  (eval $ac_try) 2>&5
2836  ac_status=$?
2837  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2838  (exit $ac_status); }; }; then
2839  ac_compiler_gnu=yes
2840else
2841  echo "$as_me: failed program was:" >&5
2842sed 's/^/| /' conftest.$ac_ext >&5
2843
2844ac_compiler_gnu=no
2845fi
2846rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2847ac_cv_c_compiler_gnu=$ac_compiler_gnu
2848
2849fi
2850echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2851echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2852GCC=`test $ac_compiler_gnu = yes && echo yes`
2853ac_test_CFLAGS=${CFLAGS+set}
2854ac_save_CFLAGS=$CFLAGS
2855CFLAGS="-g"
2856echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2857echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2858if test "${ac_cv_prog_cc_g+set}" = set; then
2859  echo $ECHO_N "(cached) $ECHO_C" >&6
2860else
2861  cat >conftest.$ac_ext <<_ACEOF
2862/* confdefs.h.  */
2863_ACEOF
2864cat confdefs.h >>conftest.$ac_ext
2865cat >>conftest.$ac_ext <<_ACEOF
2866/* end confdefs.h.  */
2867
2868int
2869main ()
2870{
2871
2872  ;
2873  return 0;
2874}
2875_ACEOF
2876rm -f conftest.$ac_objext
2877if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2878  (eval $ac_compile) 2>conftest.er1
2879  ac_status=$?
2880  grep -v '^ *+' conftest.er1 >conftest.err
2881  rm -f conftest.er1
2882  cat conftest.err >&5
2883  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2884  (exit $ac_status); } &&
2885	 { ac_try='test -z "$ac_c_werror_flag"
2886			 || test ! -s conftest.err'
2887  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2888  (eval $ac_try) 2>&5
2889  ac_status=$?
2890  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891  (exit $ac_status); }; } &&
2892	 { ac_try='test -s conftest.$ac_objext'
2893  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2894  (eval $ac_try) 2>&5
2895  ac_status=$?
2896  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2897  (exit $ac_status); }; }; then
2898  ac_cv_prog_cc_g=yes
2899else
2900  echo "$as_me: failed program was:" >&5
2901sed 's/^/| /' conftest.$ac_ext >&5
2902
2903ac_cv_prog_cc_g=no
2904fi
2905rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2906fi
2907echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2908echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2909if test "$ac_test_CFLAGS" = set; then
2910  CFLAGS=$ac_save_CFLAGS
2911elif test $ac_cv_prog_cc_g = yes; then
2912  if test "$GCC" = yes; then
2913    CFLAGS="-g -O2"
2914  else
2915    CFLAGS="-g"
2916  fi
2917else
2918  if test "$GCC" = yes; then
2919    CFLAGS="-O2"
2920  else
2921    CFLAGS=
2922  fi
2923fi
2924echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2925echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2926if test "${ac_cv_prog_cc_stdc+set}" = set; then
2927  echo $ECHO_N "(cached) $ECHO_C" >&6
2928else
2929  ac_cv_prog_cc_stdc=no
2930ac_save_CC=$CC
2931cat >conftest.$ac_ext <<_ACEOF
2932/* confdefs.h.  */
2933_ACEOF
2934cat confdefs.h >>conftest.$ac_ext
2935cat >>conftest.$ac_ext <<_ACEOF
2936/* end confdefs.h.  */
2937#include <stdarg.h>
2938#include <stdio.h>
2939#include <sys/types.h>
2940#include <sys/stat.h>
2941/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2942struct buf { int x; };
2943FILE * (*rcsopen) (struct buf *, struct stat *, int);
2944static char *e (p, i)
2945     char **p;
2946     int i;
2947{
2948  return p[i];
2949}
2950static char *f (char * (*g) (char **, int), char **p, ...)
2951{
2952  char *s;
2953  va_list v;
2954  va_start (v,p);
2955  s = g (p, va_arg (v,int));
2956  va_end (v);
2957  return s;
2958}
2959
2960/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2961   function prototypes and stuff, but not '\xHH' hex character constants.
2962   These don't provoke an error unfortunately, instead are silently treated
2963   as 'x'.  The following induces an error, until -std1 is added to get
2964   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2965   array size at least.  It's necessary to write '\x00'==0 to get something
2966   that's true only with -std1.  */
2967int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2968
2969int test (int i, double x);
2970struct s1 {int (*f) (int a);};
2971struct s2 {int (*f) (double a);};
2972int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2973int argc;
2974char **argv;
2975int
2976main ()
2977{
2978return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2979  ;
2980  return 0;
2981}
2982_ACEOF
2983# Don't try gcc -ansi; that turns off useful extensions and
2984# breaks some systems' header files.
2985# AIX			-qlanglvl=ansi
2986# Ultrix and OSF/1	-std1
2987# HP-UX 10.20 and later	-Ae
2988# HP-UX older versions	-Aa -D_HPUX_SOURCE
2989# SVR4			-Xc -D__EXTENSIONS__
2990for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2991do
2992  CC="$ac_save_CC $ac_arg"
2993  rm -f conftest.$ac_objext
2994if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2995  (eval $ac_compile) 2>conftest.er1
2996  ac_status=$?
2997  grep -v '^ *+' conftest.er1 >conftest.err
2998  rm -f conftest.er1
2999  cat conftest.err >&5
3000  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001  (exit $ac_status); } &&
3002	 { ac_try='test -z "$ac_c_werror_flag"
3003			 || test ! -s conftest.err'
3004  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3005  (eval $ac_try) 2>&5
3006  ac_status=$?
3007  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008  (exit $ac_status); }; } &&
3009	 { ac_try='test -s conftest.$ac_objext'
3010  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3011  (eval $ac_try) 2>&5
3012  ac_status=$?
3013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014  (exit $ac_status); }; }; then
3015  ac_cv_prog_cc_stdc=$ac_arg
3016break
3017else
3018  echo "$as_me: failed program was:" >&5
3019sed 's/^/| /' conftest.$ac_ext >&5
3020
3021fi
3022rm -f conftest.err conftest.$ac_objext
3023done
3024rm -f conftest.$ac_ext conftest.$ac_objext
3025CC=$ac_save_CC
3026
3027fi
3028
3029case "x$ac_cv_prog_cc_stdc" in
3030  x|xno)
3031    echo "$as_me:$LINENO: result: none needed" >&5
3032echo "${ECHO_T}none needed" >&6 ;;
3033  *)
3034    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3035echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3036    CC="$CC $ac_cv_prog_cc_stdc" ;;
3037esac
3038
3039# Some people use a C++ compiler to compile C.  Since we use `exit',
3040# in C++ we need to declare it.  In case someone uses the same compiler
3041# for both compiling C and C++ we need to have the C++ compiler decide
3042# the declaration of exit, since it's the most demanding environment.
3043cat >conftest.$ac_ext <<_ACEOF
3044#ifndef __cplusplus
3045  choke me
3046#endif
3047_ACEOF
3048rm -f conftest.$ac_objext
3049if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3050  (eval $ac_compile) 2>conftest.er1
3051  ac_status=$?
3052  grep -v '^ *+' conftest.er1 >conftest.err
3053  rm -f conftest.er1
3054  cat conftest.err >&5
3055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056  (exit $ac_status); } &&
3057	 { ac_try='test -z "$ac_c_werror_flag"
3058			 || test ! -s conftest.err'
3059  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3060  (eval $ac_try) 2>&5
3061  ac_status=$?
3062  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063  (exit $ac_status); }; } &&
3064	 { ac_try='test -s conftest.$ac_objext'
3065  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3066  (eval $ac_try) 2>&5
3067  ac_status=$?
3068  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069  (exit $ac_status); }; }; then
3070  for ac_declaration in \
3071   '' \
3072   'extern "C" void std::exit (int) throw (); using std::exit;' \
3073   'extern "C" void std::exit (int); using std::exit;' \
3074   'extern "C" void exit (int) throw ();' \
3075   'extern "C" void exit (int);' \
3076   'void exit (int);'
3077do
3078  cat >conftest.$ac_ext <<_ACEOF
3079/* confdefs.h.  */
3080_ACEOF
3081cat confdefs.h >>conftest.$ac_ext
3082cat >>conftest.$ac_ext <<_ACEOF
3083/* end confdefs.h.  */
3084$ac_declaration
3085#include <stdlib.h>
3086int
3087main ()
3088{
3089exit (42);
3090  ;
3091  return 0;
3092}
3093_ACEOF
3094rm -f conftest.$ac_objext
3095if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3096  (eval $ac_compile) 2>conftest.er1
3097  ac_status=$?
3098  grep -v '^ *+' conftest.er1 >conftest.err
3099  rm -f conftest.er1
3100  cat conftest.err >&5
3101  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102  (exit $ac_status); } &&
3103	 { ac_try='test -z "$ac_c_werror_flag"
3104			 || test ! -s conftest.err'
3105  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3106  (eval $ac_try) 2>&5
3107  ac_status=$?
3108  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109  (exit $ac_status); }; } &&
3110	 { ac_try='test -s conftest.$ac_objext'
3111  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3112  (eval $ac_try) 2>&5
3113  ac_status=$?
3114  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3115  (exit $ac_status); }; }; then
3116  :
3117else
3118  echo "$as_me: failed program was:" >&5
3119sed 's/^/| /' conftest.$ac_ext >&5
3120
3121continue
3122fi
3123rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3124  cat >conftest.$ac_ext <<_ACEOF
3125/* confdefs.h.  */
3126_ACEOF
3127cat confdefs.h >>conftest.$ac_ext
3128cat >>conftest.$ac_ext <<_ACEOF
3129/* end confdefs.h.  */
3130$ac_declaration
3131int
3132main ()
3133{
3134exit (42);
3135  ;
3136  return 0;
3137}
3138_ACEOF
3139rm -f conftest.$ac_objext
3140if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3141  (eval $ac_compile) 2>conftest.er1
3142  ac_status=$?
3143  grep -v '^ *+' conftest.er1 >conftest.err
3144  rm -f conftest.er1
3145  cat conftest.err >&5
3146  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147  (exit $ac_status); } &&
3148	 { ac_try='test -z "$ac_c_werror_flag"
3149			 || test ! -s conftest.err'
3150  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3151  (eval $ac_try) 2>&5
3152  ac_status=$?
3153  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154  (exit $ac_status); }; } &&
3155	 { ac_try='test -s conftest.$ac_objext'
3156  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3157  (eval $ac_try) 2>&5
3158  ac_status=$?
3159  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3160  (exit $ac_status); }; }; then
3161  break
3162else
3163  echo "$as_me: failed program was:" >&5
3164sed 's/^/| /' conftest.$ac_ext >&5
3165
3166fi
3167rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3168done
3169rm -f conftest*
3170if test -n "$ac_declaration"; then
3171  echo '#ifdef __cplusplus' >>confdefs.h
3172  echo $ac_declaration      >>confdefs.h
3173  echo '#endif'             >>confdefs.h
3174fi
3175
3176else
3177  echo "$as_me: failed program was:" >&5
3178sed 's/^/| /' conftest.$ac_ext >&5
3179
3180fi
3181rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3182ac_ext=c
3183ac_cpp='$CPP $CPPFLAGS'
3184ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3185ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3186ac_compiler_gnu=$ac_cv_c_compiler_gnu
3187DEPDIR="${am__leading_dot}deps"
3188
3189          ac_config_commands="$ac_config_commands depfiles"
3190
3191
3192am_make=${MAKE-make}
3193cat > confinc << 'END'
3194am__doit:
3195	@echo done
3196.PHONY: am__doit
3197END
3198# If we don't find an include directive, just comment out the code.
3199echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3200echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3201am__include="#"
3202am__quote=
3203_am_result=none
3204# First try GNU make style include.
3205echo "include confinc" > confmf
3206# We grep out `Entering directory' and `Leaving directory'
3207# messages which can occur if `w' ends up in MAKEFLAGS.
3208# In particular we don't look at `^make:' because GNU make might
3209# be invoked under some other name (usually "gmake"), in which
3210# case it prints its new name instead of `make'.
3211if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3212   am__include=include
3213   am__quote=
3214   _am_result=GNU
3215fi
3216# Now try BSD make style include.
3217if test "$am__include" = "#"; then
3218   echo '.include "confinc"' > confmf
3219   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3220      am__include=.include
3221      am__quote="\""
3222      _am_result=BSD
3223   fi
3224fi
3225
3226
3227echo "$as_me:$LINENO: result: $_am_result" >&5
3228echo "${ECHO_T}$_am_result" >&6
3229rm -f confinc confmf
3230
3231# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3232if test "${enable_dependency_tracking+set}" = set; then
3233  enableval="$enable_dependency_tracking"
3234
3235fi;
3236if test "x$enable_dependency_tracking" != xno; then
3237  am_depcomp="$ac_aux_dir/depcomp"
3238  AMDEPBACKSLASH='\'
3239fi
3240
3241
3242if test "x$enable_dependency_tracking" != xno; then
3243  AMDEP_TRUE=
3244  AMDEP_FALSE='#'
3245else
3246  AMDEP_TRUE='#'
3247  AMDEP_FALSE=
3248fi
3249
3250
3251
3252
3253depcc="$CC"   am_compiler_list=
3254
3255echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3256echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3257if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3258  echo $ECHO_N "(cached) $ECHO_C" >&6
3259else
3260  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3261  # We make a subdir and do the tests there.  Otherwise we can end up
3262  # making bogus files that we don't know about and never remove.  For
3263  # instance it was reported that on HP-UX the gcc test will end up
3264  # making a dummy file named `D' -- because `-MD' means `put the output
3265  # in D'.
3266  mkdir conftest.dir
3267  # Copy depcomp to subdir because otherwise we won't find it if we're
3268  # using a relative directory.
3269  cp "$am_depcomp" conftest.dir
3270  cd conftest.dir
3271  # We will build objects and dependencies in a subdirectory because
3272  # it helps to detect inapplicable dependency modes.  For instance
3273  # both Tru64's cc and ICC support -MD to output dependencies as a
3274  # side effect of compilation, but ICC will put the dependencies in
3275  # the current directory while Tru64 will put them in the object
3276  # directory.
3277  mkdir sub
3278
3279  am_cv_CC_dependencies_compiler_type=none
3280  if test "$am_compiler_list" = ""; then
3281     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3282  fi
3283  for depmode in $am_compiler_list; do
3284    # Setup a source with many dependencies, because some compilers
3285    # like to wrap large dependency lists on column 80 (with \), and
3286    # we should not choose a depcomp mode which is confused by this.
3287    #
3288    # We need to recreate these files for each test, as the compiler may
3289    # overwrite some of them when testing with obscure command lines.
3290    # This happens at least with the AIX C compiler.
3291    : > sub/conftest.c
3292    for i in 1 2 3 4 5 6; do
3293      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3294      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3295      # Solaris 8's {/usr,}/bin/sh.
3296      touch sub/conftst$i.h
3297    done
3298    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3299
3300    case $depmode in
3301    nosideeffect)
3302      # after this tag, mechanisms are not by side-effect, so they'll
3303      # only be used when explicitly requested
3304      if test "x$enable_dependency_tracking" = xyes; then
3305	continue
3306      else
3307	break
3308      fi
3309      ;;
3310    none) break ;;
3311    esac
3312    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3313    # mode.  It turns out that the SunPro C++ compiler does not properly
3314    # handle `-M -o', and we need to detect this.
3315    if depmode=$depmode \
3316       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3317       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3318       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3319         >/dev/null 2>conftest.err &&
3320       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3321       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3322       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3323      # icc doesn't choke on unknown options, it will just issue warnings
3324      # or remarks (even with -Werror).  So we grep stderr for any message
3325      # that says an option was ignored or not supported.
3326      # When given -MP, icc 7.0 and 7.1 complain thusly:
3327      #   icc: Command line warning: ignoring option '-M'; no argument required
3328      # The diagnosis changed in icc 8.0:
3329      #   icc: Command line remark: option '-MP' not supported
3330      if (grep 'ignoring option' conftest.err ||
3331          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3332        am_cv_CC_dependencies_compiler_type=$depmode
3333        break
3334      fi
3335    fi
3336  done
3337
3338  cd ..
3339  rm -rf conftest.dir
3340else
3341  am_cv_CC_dependencies_compiler_type=none
3342fi
3343
3344fi
3345echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3346echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3347CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3348
3349
3350
3351if
3352  test "x$enable_dependency_tracking" != xno \
3353  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3354  am__fastdepCC_TRUE=
3355  am__fastdepCC_FALSE='#'
3356else
3357  am__fastdepCC_TRUE='#'
3358  am__fastdepCC_FALSE=
3359fi
3360
3361
3362ac_ext=c
3363ac_cpp='$CPP $CPPFLAGS'
3364ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3365ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3366ac_compiler_gnu=$ac_cv_c_compiler_gnu
3367echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3368echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3369# On Suns, sometimes $CPP names a directory.
3370if test -n "$CPP" && test -d "$CPP"; then
3371  CPP=
3372fi
3373if test -z "$CPP"; then
3374  if test "${ac_cv_prog_CPP+set}" = set; then
3375  echo $ECHO_N "(cached) $ECHO_C" >&6
3376else
3377      # Double quotes because CPP needs to be expanded
3378    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3379    do
3380      ac_preproc_ok=false
3381for ac_c_preproc_warn_flag in '' yes
3382do
3383  # Use a header file that comes with gcc, so configuring glibc
3384  # with a fresh cross-compiler works.
3385  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3386  # <limits.h> exists even on freestanding compilers.
3387  # On the NeXT, cc -E runs the code through the compiler's parser,
3388  # not just through cpp. "Syntax error" is here to catch this case.
3389  cat >conftest.$ac_ext <<_ACEOF
3390/* confdefs.h.  */
3391_ACEOF
3392cat confdefs.h >>conftest.$ac_ext
3393cat >>conftest.$ac_ext <<_ACEOF
3394/* end confdefs.h.  */
3395#ifdef __STDC__
3396# include <limits.h>
3397#else
3398# include <assert.h>
3399#endif
3400		     Syntax error
3401_ACEOF
3402if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3403  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3404  ac_status=$?
3405  grep -v '^ *+' conftest.er1 >conftest.err
3406  rm -f conftest.er1
3407  cat conftest.err >&5
3408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3409  (exit $ac_status); } >/dev/null; then
3410  if test -s conftest.err; then
3411    ac_cpp_err=$ac_c_preproc_warn_flag
3412    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3413  else
3414    ac_cpp_err=
3415  fi
3416else
3417  ac_cpp_err=yes
3418fi
3419if test -z "$ac_cpp_err"; then
3420  :
3421else
3422  echo "$as_me: failed program was:" >&5
3423sed 's/^/| /' conftest.$ac_ext >&5
3424
3425  # Broken: fails on valid input.
3426continue
3427fi
3428rm -f conftest.err conftest.$ac_ext
3429
3430  # OK, works on sane cases.  Now check whether non-existent headers
3431  # can be detected and how.
3432  cat >conftest.$ac_ext <<_ACEOF
3433/* confdefs.h.  */
3434_ACEOF
3435cat confdefs.h >>conftest.$ac_ext
3436cat >>conftest.$ac_ext <<_ACEOF
3437/* end confdefs.h.  */
3438#include <ac_nonexistent.h>
3439_ACEOF
3440if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3441  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3442  ac_status=$?
3443  grep -v '^ *+' conftest.er1 >conftest.err
3444  rm -f conftest.er1
3445  cat conftest.err >&5
3446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3447  (exit $ac_status); } >/dev/null; then
3448  if test -s conftest.err; then
3449    ac_cpp_err=$ac_c_preproc_warn_flag
3450    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3451  else
3452    ac_cpp_err=
3453  fi
3454else
3455  ac_cpp_err=yes
3456fi
3457if test -z "$ac_cpp_err"; then
3458  # Broken: success on invalid input.
3459continue
3460else
3461  echo "$as_me: failed program was:" >&5
3462sed 's/^/| /' conftest.$ac_ext >&5
3463
3464  # Passes both tests.
3465ac_preproc_ok=:
3466break
3467fi
3468rm -f conftest.err conftest.$ac_ext
3469
3470done
3471# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3472rm -f conftest.err conftest.$ac_ext
3473if $ac_preproc_ok; then
3474  break
3475fi
3476
3477    done
3478    ac_cv_prog_CPP=$CPP
3479
3480fi
3481  CPP=$ac_cv_prog_CPP
3482else
3483  ac_cv_prog_CPP=$CPP
3484fi
3485echo "$as_me:$LINENO: result: $CPP" >&5
3486echo "${ECHO_T}$CPP" >&6
3487ac_preproc_ok=false
3488for ac_c_preproc_warn_flag in '' yes
3489do
3490  # Use a header file that comes with gcc, so configuring glibc
3491  # with a fresh cross-compiler works.
3492  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3493  # <limits.h> exists even on freestanding compilers.
3494  # On the NeXT, cc -E runs the code through the compiler's parser,
3495  # not just through cpp. "Syntax error" is here to catch this case.
3496  cat >conftest.$ac_ext <<_ACEOF
3497/* confdefs.h.  */
3498_ACEOF
3499cat confdefs.h >>conftest.$ac_ext
3500cat >>conftest.$ac_ext <<_ACEOF
3501/* end confdefs.h.  */
3502#ifdef __STDC__
3503# include <limits.h>
3504#else
3505# include <assert.h>
3506#endif
3507		     Syntax error
3508_ACEOF
3509if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3510  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3511  ac_status=$?
3512  grep -v '^ *+' conftest.er1 >conftest.err
3513  rm -f conftest.er1
3514  cat conftest.err >&5
3515  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3516  (exit $ac_status); } >/dev/null; then
3517  if test -s conftest.err; then
3518    ac_cpp_err=$ac_c_preproc_warn_flag
3519    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3520  else
3521    ac_cpp_err=
3522  fi
3523else
3524  ac_cpp_err=yes
3525fi
3526if test -z "$ac_cpp_err"; then
3527  :
3528else
3529  echo "$as_me: failed program was:" >&5
3530sed 's/^/| /' conftest.$ac_ext >&5
3531
3532  # Broken: fails on valid input.
3533continue
3534fi
3535rm -f conftest.err conftest.$ac_ext
3536
3537  # OK, works on sane cases.  Now check whether non-existent headers
3538  # can be detected and how.
3539  cat >conftest.$ac_ext <<_ACEOF
3540/* confdefs.h.  */
3541_ACEOF
3542cat confdefs.h >>conftest.$ac_ext
3543cat >>conftest.$ac_ext <<_ACEOF
3544/* end confdefs.h.  */
3545#include <ac_nonexistent.h>
3546_ACEOF
3547if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3548  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3549  ac_status=$?
3550  grep -v '^ *+' conftest.er1 >conftest.err
3551  rm -f conftest.er1
3552  cat conftest.err >&5
3553  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3554  (exit $ac_status); } >/dev/null; then
3555  if test -s conftest.err; then
3556    ac_cpp_err=$ac_c_preproc_warn_flag
3557    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3558  else
3559    ac_cpp_err=
3560  fi
3561else
3562  ac_cpp_err=yes
3563fi
3564if test -z "$ac_cpp_err"; then
3565  # Broken: success on invalid input.
3566continue
3567else
3568  echo "$as_me: failed program was:" >&5
3569sed 's/^/| /' conftest.$ac_ext >&5
3570
3571  # Passes both tests.
3572ac_preproc_ok=:
3573break
3574fi
3575rm -f conftest.err conftest.$ac_ext
3576
3577done
3578# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3579rm -f conftest.err conftest.$ac_ext
3580if $ac_preproc_ok; then
3581  :
3582else
3583  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3584See \`config.log' for more details." >&5
3585echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3586See \`config.log' for more details." >&2;}
3587   { (exit 1); exit 1; }; }
3588fi
3589
3590ac_ext=c
3591ac_cpp='$CPP $CPPFLAGS'
3592ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3593ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3594ac_compiler_gnu=$ac_cv_c_compiler_gnu
3595
3596# By default we simply use the C compiler to build assembly code.
3597
3598test "${CCAS+set}" = set || CCAS=$CC
3599test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
3600
3601
3602
3603
3604
3605
3606echo "$as_me:$LINENO: checking for egrep" >&5
3607echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3608if test "${ac_cv_prog_egrep+set}" = set; then
3609  echo $ECHO_N "(cached) $ECHO_C" >&6
3610else
3611  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3612    then ac_cv_prog_egrep='grep -E'
3613    else ac_cv_prog_egrep='egrep'
3614    fi
3615fi
3616echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3617echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3618 EGREP=$ac_cv_prog_egrep
3619
3620
3621
3622echo "$as_me:$LINENO: checking for AIX" >&5
3623echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3624cat >conftest.$ac_ext <<_ACEOF
3625/* confdefs.h.  */
3626_ACEOF
3627cat confdefs.h >>conftest.$ac_ext
3628cat >>conftest.$ac_ext <<_ACEOF
3629/* end confdefs.h.  */
3630#ifdef _AIX
3631  yes
3632#endif
3633
3634_ACEOF
3635if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3636  $EGREP "yes" >/dev/null 2>&1; then
3637  echo "$as_me:$LINENO: result: yes" >&5
3638echo "${ECHO_T}yes" >&6
3639cat >>confdefs.h <<\_ACEOF
3640#define _ALL_SOURCE 1
3641_ACEOF
3642
3643else
3644  echo "$as_me:$LINENO: result: no" >&5
3645echo "${ECHO_T}no" >&6
3646fi
3647rm -f conftest*
3648
3649
3650
3651        echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
3652echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
3653if test "${ac_cv_lib_cposix_strerror+set}" = set; then
3654  echo $ECHO_N "(cached) $ECHO_C" >&6
3655else
3656  ac_check_lib_save_LIBS=$LIBS
3657LIBS="-lcposix  $LIBS"
3658cat >conftest.$ac_ext <<_ACEOF
3659/* confdefs.h.  */
3660_ACEOF
3661cat confdefs.h >>conftest.$ac_ext
3662cat >>conftest.$ac_ext <<_ACEOF
3663/* end confdefs.h.  */
3664
3665/* Override any gcc2 internal prototype to avoid an error.  */
3666#ifdef __cplusplus
3667extern "C"
3668#endif
3669/* We use char because int might match the return type of a gcc2
3670   builtin and then its argument prototype would still apply.  */
3671char strerror ();
3672int
3673main ()
3674{
3675strerror ();
3676  ;
3677  return 0;
3678}
3679_ACEOF
3680rm -f conftest.$ac_objext conftest$ac_exeext
3681if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3682  (eval $ac_link) 2>conftest.er1
3683  ac_status=$?
3684  grep -v '^ *+' conftest.er1 >conftest.err
3685  rm -f conftest.er1
3686  cat conftest.err >&5
3687  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3688  (exit $ac_status); } &&
3689	 { ac_try='test -z "$ac_c_werror_flag"
3690			 || test ! -s conftest.err'
3691  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3692  (eval $ac_try) 2>&5
3693  ac_status=$?
3694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3695  (exit $ac_status); }; } &&
3696	 { ac_try='test -s conftest$ac_exeext'
3697  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3698  (eval $ac_try) 2>&5
3699  ac_status=$?
3700  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3701  (exit $ac_status); }; }; then
3702  ac_cv_lib_cposix_strerror=yes
3703else
3704  echo "$as_me: failed program was:" >&5
3705sed 's/^/| /' conftest.$ac_ext >&5
3706
3707ac_cv_lib_cposix_strerror=no
3708fi
3709rm -f conftest.err conftest.$ac_objext \
3710      conftest$ac_exeext conftest.$ac_ext
3711LIBS=$ac_check_lib_save_LIBS
3712fi
3713echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
3714echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
3715if test $ac_cv_lib_cposix_strerror = yes; then
3716  LIBS="$LIBS -lcposix"
3717fi
3718
3719
3720
3721echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3722echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3723if test "${ac_cv_header_stdc+set}" = set; then
3724  echo $ECHO_N "(cached) $ECHO_C" >&6
3725else
3726  cat >conftest.$ac_ext <<_ACEOF
3727/* confdefs.h.  */
3728_ACEOF
3729cat confdefs.h >>conftest.$ac_ext
3730cat >>conftest.$ac_ext <<_ACEOF
3731/* end confdefs.h.  */
3732#include <stdlib.h>
3733#include <stdarg.h>
3734#include <string.h>
3735#include <float.h>
3736
3737int
3738main ()
3739{
3740
3741  ;
3742  return 0;
3743}
3744_ACEOF
3745rm -f conftest.$ac_objext
3746if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3747  (eval $ac_compile) 2>conftest.er1
3748  ac_status=$?
3749  grep -v '^ *+' conftest.er1 >conftest.err
3750  rm -f conftest.er1
3751  cat conftest.err >&5
3752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3753  (exit $ac_status); } &&
3754	 { ac_try='test -z "$ac_c_werror_flag"
3755			 || test ! -s conftest.err'
3756  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3757  (eval $ac_try) 2>&5
3758  ac_status=$?
3759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3760  (exit $ac_status); }; } &&
3761	 { ac_try='test -s conftest.$ac_objext'
3762  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3763  (eval $ac_try) 2>&5
3764  ac_status=$?
3765  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3766  (exit $ac_status); }; }; then
3767  ac_cv_header_stdc=yes
3768else
3769  echo "$as_me: failed program was:" >&5
3770sed 's/^/| /' conftest.$ac_ext >&5
3771
3772ac_cv_header_stdc=no
3773fi
3774rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3775
3776if test $ac_cv_header_stdc = yes; then
3777  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3778  cat >conftest.$ac_ext <<_ACEOF
3779/* confdefs.h.  */
3780_ACEOF
3781cat confdefs.h >>conftest.$ac_ext
3782cat >>conftest.$ac_ext <<_ACEOF
3783/* end confdefs.h.  */
3784#include <string.h>
3785
3786_ACEOF
3787if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3788  $EGREP "memchr" >/dev/null 2>&1; then
3789  :
3790else
3791  ac_cv_header_stdc=no
3792fi
3793rm -f conftest*
3794
3795fi
3796
3797if test $ac_cv_header_stdc = yes; then
3798  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3799  cat >conftest.$ac_ext <<_ACEOF
3800/* confdefs.h.  */
3801_ACEOF
3802cat confdefs.h >>conftest.$ac_ext
3803cat >>conftest.$ac_ext <<_ACEOF
3804/* end confdefs.h.  */
3805#include <stdlib.h>
3806
3807_ACEOF
3808if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3809  $EGREP "free" >/dev/null 2>&1; then
3810  :
3811else
3812  ac_cv_header_stdc=no
3813fi
3814rm -f conftest*
3815
3816fi
3817
3818if test $ac_cv_header_stdc = yes; then
3819  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3820  if test "$cross_compiling" = yes; then
3821  :
3822else
3823  cat >conftest.$ac_ext <<_ACEOF
3824/* confdefs.h.  */
3825_ACEOF
3826cat confdefs.h >>conftest.$ac_ext
3827cat >>conftest.$ac_ext <<_ACEOF
3828/* end confdefs.h.  */
3829#include <ctype.h>
3830#if ((' ' & 0x0FF) == 0x020)
3831# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3832# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3833#else
3834# define ISLOWER(c) \
3835		   (('a' <= (c) && (c) <= 'i') \
3836		     || ('j' <= (c) && (c) <= 'r') \
3837		     || ('s' <= (c) && (c) <= 'z'))
3838# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3839#endif
3840
3841#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3842int
3843main ()
3844{
3845  int i;
3846  for (i = 0; i < 256; i++)
3847    if (XOR (islower (i), ISLOWER (i))
3848	|| toupper (i) != TOUPPER (i))
3849      exit(2);
3850  exit (0);
3851}
3852_ACEOF
3853rm -f conftest$ac_exeext
3854if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3855  (eval $ac_link) 2>&5
3856  ac_status=$?
3857  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3859  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3860  (eval $ac_try) 2>&5
3861  ac_status=$?
3862  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3863  (exit $ac_status); }; }; then
3864  :
3865else
3866  echo "$as_me: program exited with status $ac_status" >&5
3867echo "$as_me: failed program was:" >&5
3868sed 's/^/| /' conftest.$ac_ext >&5
3869
3870( exit $ac_status )
3871ac_cv_header_stdc=no
3872fi
3873rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3874fi
3875fi
3876fi
3877echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3878echo "${ECHO_T}$ac_cv_header_stdc" >&6
3879if test $ac_cv_header_stdc = yes; then
3880
3881cat >>confdefs.h <<\_ACEOF
3882#define STDC_HEADERS 1
3883_ACEOF
3884
3885fi
3886
3887# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3898		  inttypes.h stdint.h unistd.h
3899do
3900as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3901echo "$as_me:$LINENO: checking for $ac_header" >&5
3902echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3903if eval "test \"\${$as_ac_Header+set}\" = set"; then
3904  echo $ECHO_N "(cached) $ECHO_C" >&6
3905else
3906  cat >conftest.$ac_ext <<_ACEOF
3907/* confdefs.h.  */
3908_ACEOF
3909cat confdefs.h >>conftest.$ac_ext
3910cat >>conftest.$ac_ext <<_ACEOF
3911/* end confdefs.h.  */
3912$ac_includes_default
3913
3914#include <$ac_header>
3915_ACEOF
3916rm -f conftest.$ac_objext
3917if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3918  (eval $ac_compile) 2>conftest.er1
3919  ac_status=$?
3920  grep -v '^ *+' conftest.er1 >conftest.err
3921  rm -f conftest.er1
3922  cat conftest.err >&5
3923  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3924  (exit $ac_status); } &&
3925	 { ac_try='test -z "$ac_c_werror_flag"
3926			 || test ! -s conftest.err'
3927  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3928  (eval $ac_try) 2>&5
3929  ac_status=$?
3930  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3931  (exit $ac_status); }; } &&
3932	 { ac_try='test -s conftest.$ac_objext'
3933  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3934  (eval $ac_try) 2>&5
3935  ac_status=$?
3936  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3937  (exit $ac_status); }; }; then
3938  eval "$as_ac_Header=yes"
3939else
3940  echo "$as_me: failed program was:" >&5
3941sed 's/^/| /' conftest.$ac_ext >&5
3942
3943eval "$as_ac_Header=no"
3944fi
3945rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3946fi
3947echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3948echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3949if test `eval echo '${'$as_ac_Header'}'` = yes; then
3950  cat >>confdefs.h <<_ACEOF
3951#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3952_ACEOF
3953
3954fi
3955
3956done
3957
3958
3959if test "${ac_cv_header_minix_config_h+set}" = set; then
3960  echo "$as_me:$LINENO: checking for minix/config.h" >&5
3961echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3962if test "${ac_cv_header_minix_config_h+set}" = set; then
3963  echo $ECHO_N "(cached) $ECHO_C" >&6
3964fi
3965echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3966echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3967else
3968  # Is the header compilable?
3969echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3970echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3971cat >conftest.$ac_ext <<_ACEOF
3972/* confdefs.h.  */
3973_ACEOF
3974cat confdefs.h >>conftest.$ac_ext
3975cat >>conftest.$ac_ext <<_ACEOF
3976/* end confdefs.h.  */
3977$ac_includes_default
3978#include <minix/config.h>
3979_ACEOF
3980rm -f conftest.$ac_objext
3981if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3982  (eval $ac_compile) 2>conftest.er1
3983  ac_status=$?
3984  grep -v '^ *+' conftest.er1 >conftest.err
3985  rm -f conftest.er1
3986  cat conftest.err >&5
3987  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3988  (exit $ac_status); } &&
3989	 { ac_try='test -z "$ac_c_werror_flag"
3990			 || test ! -s conftest.err'
3991  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3992  (eval $ac_try) 2>&5
3993  ac_status=$?
3994  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3995  (exit $ac_status); }; } &&
3996	 { ac_try='test -s conftest.$ac_objext'
3997  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3998  (eval $ac_try) 2>&5
3999  ac_status=$?
4000  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4001  (exit $ac_status); }; }; then
4002  ac_header_compiler=yes
4003else
4004  echo "$as_me: failed program was:" >&5
4005sed 's/^/| /' conftest.$ac_ext >&5
4006
4007ac_header_compiler=no
4008fi
4009rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4010echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4011echo "${ECHO_T}$ac_header_compiler" >&6
4012
4013# Is the header present?
4014echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4015echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
4016cat >conftest.$ac_ext <<_ACEOF
4017/* confdefs.h.  */
4018_ACEOF
4019cat confdefs.h >>conftest.$ac_ext
4020cat >>conftest.$ac_ext <<_ACEOF
4021/* end confdefs.h.  */
4022#include <minix/config.h>
4023_ACEOF
4024if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4025  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4026  ac_status=$?
4027  grep -v '^ *+' conftest.er1 >conftest.err
4028  rm -f conftest.er1
4029  cat conftest.err >&5
4030  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4031  (exit $ac_status); } >/dev/null; then
4032  if test -s conftest.err; then
4033    ac_cpp_err=$ac_c_preproc_warn_flag
4034    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4035  else
4036    ac_cpp_err=
4037  fi
4038else
4039  ac_cpp_err=yes
4040fi
4041if test -z "$ac_cpp_err"; then
4042  ac_header_preproc=yes
4043else
4044  echo "$as_me: failed program was:" >&5
4045sed 's/^/| /' conftest.$ac_ext >&5
4046
4047  ac_header_preproc=no
4048fi
4049rm -f conftest.err conftest.$ac_ext
4050echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4051echo "${ECHO_T}$ac_header_preproc" >&6
4052
4053# So?  What about this header?
4054case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4055  yes:no: )
4056    { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4057echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4058    { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4059echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4060    ac_header_preproc=yes
4061    ;;
4062  no:yes:* )
4063    { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4064echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4065    { echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
4066echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
4067    { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4068echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4069    { echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
4070echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
4071    { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4072echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4073    { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4074echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4075    (
4076      cat <<\_ASBOX
4077## ------------------------------------------ ##
4078## Report this to the AC_PACKAGE_NAME lists.  ##
4079## ------------------------------------------ ##
4080_ASBOX
4081    ) |
4082      sed "s/^/$as_me: WARNING:     /" >&2
4083    ;;
4084esac
4085echo "$as_me:$LINENO: checking for minix/config.h" >&5
4086echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
4087if test "${ac_cv_header_minix_config_h+set}" = set; then
4088  echo $ECHO_N "(cached) $ECHO_C" >&6
4089else
4090  ac_cv_header_minix_config_h=$ac_header_preproc
4091fi
4092echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4093echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
4094
4095fi
4096if test $ac_cv_header_minix_config_h = yes; then
4097  MINIX=yes
4098else
4099  MINIX=
4100fi
4101
4102
4103if test "$MINIX" = yes; then
4104
4105cat >>confdefs.h <<\_ACEOF
4106#define _POSIX_SOURCE 1
4107_ACEOF
4108
4109
4110cat >>confdefs.h <<\_ACEOF
4111#define _POSIX_1_SOURCE 2
4112_ACEOF
4113
4114
4115cat >>confdefs.h <<\_ACEOF
4116#define _MINIX 1
4117_ACEOF
4118
4119fi
4120
4121
4122
4123case $host_os in
4124  *cygwin* ) CYGWIN=yes;;
4125	 * ) CYGWIN=no;;
4126esac
4127
4128
4129
4130# Check whether --enable-shared or --disable-shared was given.
4131if test "${enable_shared+set}" = set; then
4132  enableval="$enable_shared"
4133  p=${PACKAGE-default}
4134    case $enableval in
4135    yes) enable_shared=yes ;;
4136    no) enable_shared=no ;;
4137    *)
4138      enable_shared=no
4139      # Look at the argument we got.  We use all the common list separators.
4140      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4141      for pkg in $enableval; do
4142	IFS="$lt_save_ifs"
4143	if test "X$pkg" = "X$p"; then
4144	  enable_shared=yes
4145	fi
4146      done
4147      IFS="$lt_save_ifs"
4148      ;;
4149    esac
4150else
4151  enable_shared=yes
4152fi;
4153
4154# Check whether --enable-static or --disable-static was given.
4155if test "${enable_static+set}" = set; then
4156  enableval="$enable_static"
4157  p=${PACKAGE-default}
4158    case $enableval in
4159    yes) enable_static=yes ;;
4160    no) enable_static=no ;;
4161    *)
4162     enable_static=no
4163      # Look at the argument we got.  We use all the common list separators.
4164      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4165      for pkg in $enableval; do
4166	IFS="$lt_save_ifs"
4167	if test "X$pkg" = "X$p"; then
4168	  enable_static=yes
4169	fi
4170      done
4171      IFS="$lt_save_ifs"
4172      ;;
4173    esac
4174else
4175  enable_static=yes
4176fi;
4177
4178# Check whether --enable-fast-install or --disable-fast-install was given.
4179if test "${enable_fast_install+set}" = set; then
4180  enableval="$enable_fast_install"
4181  p=${PACKAGE-default}
4182    case $enableval in
4183    yes) enable_fast_install=yes ;;
4184    no) enable_fast_install=no ;;
4185    *)
4186      enable_fast_install=no
4187      # Look at the argument we got.  We use all the common list separators.
4188      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4189      for pkg in $enableval; do
4190	IFS="$lt_save_ifs"
4191	if test "X$pkg" = "X$p"; then
4192	  enable_fast_install=yes
4193	fi
4194      done
4195      IFS="$lt_save_ifs"
4196      ;;
4197    esac
4198else
4199  enable_fast_install=yes
4200fi;
4201
4202echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4203echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4204if test "${lt_cv_path_SED+set}" = set; then
4205  echo $ECHO_N "(cached) $ECHO_C" >&6
4206else
4207  # Loop through the user's path and test for sed and gsed.
4208# Then use that list of sed's as ones to test for truncation.
4209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4210for as_dir in $PATH
4211do
4212  IFS=$as_save_IFS
4213  test -z "$as_dir" && as_dir=.
4214  for lt_ac_prog in sed gsed; do
4215    for ac_exec_ext in '' $ac_executable_extensions; do
4216      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4217        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4218      fi
4219    done
4220  done
4221done
4222IFS=$as_save_IFS
4223lt_ac_max=0
4224lt_ac_count=0
4225# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4226# along with /bin/sed that truncates output.
4227for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4228  test ! -f $lt_ac_sed && continue
4229  cat /dev/null > conftest.in
4230  lt_ac_count=0
4231  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4232  # Check for GNU sed and select it if it is found.
4233  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4234    lt_cv_path_SED=$lt_ac_sed
4235    break
4236  fi
4237  while true; do
4238    cat conftest.in conftest.in >conftest.tmp
4239    mv conftest.tmp conftest.in
4240    cp conftest.in conftest.nl
4241    echo >>conftest.nl
4242    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4243    cmp -s conftest.out conftest.nl || break
4244    # 10000 chars as input seems more than enough
4245    test $lt_ac_count -gt 10 && break
4246    lt_ac_count=`expr $lt_ac_count + 1`
4247    if test $lt_ac_count -gt $lt_ac_max; then
4248      lt_ac_max=$lt_ac_count
4249      lt_cv_path_SED=$lt_ac_sed
4250    fi
4251  done
4252done
4253
4254fi
4255
4256SED=$lt_cv_path_SED
4257
4258echo "$as_me:$LINENO: result: $SED" >&5
4259echo "${ECHO_T}$SED" >&6
4260
4261
4262# Check whether --with-gnu-ld or --without-gnu-ld was given.
4263if test "${with_gnu_ld+set}" = set; then
4264  withval="$with_gnu_ld"
4265  test "$withval" = no || with_gnu_ld=yes
4266else
4267  with_gnu_ld=no
4268fi;
4269ac_prog=ld
4270if test "$GCC" = yes; then
4271  # Check if gcc -print-prog-name=ld gives a path.
4272  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4273echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4274  case $host in
4275  *-*-mingw*)
4276    # gcc leaves a trailing carriage return which upsets mingw
4277    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4278  *)
4279    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4280  esac
4281  case $ac_prog in
4282    # Accept absolute paths.
4283    [\\/]* | ?:[\\/]*)
4284      re_direlt='/[^/][^/]*/\.\./'
4285      # Canonicalize the pathname of ld
4286      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4287      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4288	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4289      done
4290      test -z "$LD" && LD="$ac_prog"
4291      ;;
4292  "")
4293    # If it fails, then pretend we aren't using GCC.
4294    ac_prog=ld
4295    ;;
4296  *)
4297    # If it is relative, then search for the first ld in PATH.
4298    with_gnu_ld=unknown
4299    ;;
4300  esac
4301elif test "$with_gnu_ld" = yes; then
4302  echo "$as_me:$LINENO: checking for GNU ld" >&5
4303echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4304else
4305  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4306echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4307fi
4308if test "${lt_cv_path_LD+set}" = set; then
4309  echo $ECHO_N "(cached) $ECHO_C" >&6
4310else
4311  if test -z "$LD"; then
4312  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4313  for ac_dir in $PATH; do
4314    IFS="$lt_save_ifs"
4315    test -z "$ac_dir" && ac_dir=.
4316    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4317      lt_cv_path_LD="$ac_dir/$ac_prog"
4318      # Check to see if the program is GNU ld.  I'd rather use --version,
4319      # but apparently some variants of GNU ld only accept -v.
4320      # Break only if it was the GNU/non-GNU ld that we prefer.
4321      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4322      *GNU* | *'with BFD'*)
4323	test "$with_gnu_ld" != no && break
4324	;;
4325      *)
4326	test "$with_gnu_ld" != yes && break
4327	;;
4328      esac
4329    fi
4330  done
4331  IFS="$lt_save_ifs"
4332else
4333  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4334fi
4335fi
4336
4337LD="$lt_cv_path_LD"
4338if test -n "$LD"; then
4339  echo "$as_me:$LINENO: result: $LD" >&5
4340echo "${ECHO_T}$LD" >&6
4341else
4342  echo "$as_me:$LINENO: result: no" >&5
4343echo "${ECHO_T}no" >&6
4344fi
4345test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4346echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4347   { (exit 1); exit 1; }; }
4348echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4349echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4350if test "${lt_cv_prog_gnu_ld+set}" = set; then
4351  echo $ECHO_N "(cached) $ECHO_C" >&6
4352else
4353  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4354case `$LD -v 2>&1 </dev/null` in
4355*GNU* | *'with BFD'*)
4356  lt_cv_prog_gnu_ld=yes
4357  ;;
4358*)
4359  lt_cv_prog_gnu_ld=no
4360  ;;
4361esac
4362fi
4363echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4364echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4365with_gnu_ld=$lt_cv_prog_gnu_ld
4366
4367
4368echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4369echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4370if test "${lt_cv_ld_reload_flag+set}" = set; then
4371  echo $ECHO_N "(cached) $ECHO_C" >&6
4372else
4373  lt_cv_ld_reload_flag='-r'
4374fi
4375echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4376echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4377reload_flag=$lt_cv_ld_reload_flag
4378case $reload_flag in
4379"" | " "*) ;;
4380*) reload_flag=" $reload_flag" ;;
4381esac
4382reload_cmds='$LD$reload_flag -o $output$reload_objs'
4383case $host_os in
4384  darwin*)
4385    if test "$GCC" = yes; then
4386      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4387    else
4388      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4389    fi
4390    ;;
4391esac
4392
4393echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4394echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4395if test "${lt_cv_path_NM+set}" = set; then
4396  echo $ECHO_N "(cached) $ECHO_C" >&6
4397else
4398  if test -n "$NM"; then
4399  # Let the user override the test.
4400  lt_cv_path_NM="$NM"
4401else
4402  lt_nm_to_check="${ac_tool_prefix}nm"
4403  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4404    lt_nm_to_check="$lt_nm_to_check nm"
4405  fi
4406  for lt_tmp_nm in $lt_nm_to_check; do
4407    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4408    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4409      IFS="$lt_save_ifs"
4410      test -z "$ac_dir" && ac_dir=.
4411      tmp_nm="$ac_dir/$lt_tmp_nm"
4412      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4413	# Check to see if the nm accepts a BSD-compat flag.
4414	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4415	#   nm: unknown option "B" ignored
4416	# Tru64's nm complains that /dev/null is an invalid object file
4417	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4418	*/dev/null* | *'Invalid file or object type'*)
4419	  lt_cv_path_NM="$tmp_nm -B"
4420	  break
4421	  ;;
4422	*)
4423	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4424	  */dev/null*)
4425	    lt_cv_path_NM="$tmp_nm -p"
4426	    break
4427	    ;;
4428	  *)
4429	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4430	    continue # so that we can try to find one that supports BSD flags
4431	    ;;
4432	  esac
4433	  ;;
4434	esac
4435      fi
4436    done
4437    IFS="$lt_save_ifs"
4438  done
4439  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4440fi
4441fi
4442echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4443echo "${ECHO_T}$lt_cv_path_NM" >&6
4444NM="$lt_cv_path_NM"
4445
4446echo "$as_me:$LINENO: checking whether ln -s works" >&5
4447echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4448LN_S=$as_ln_s
4449if test "$LN_S" = "ln -s"; then
4450  echo "$as_me:$LINENO: result: yes" >&5
4451echo "${ECHO_T}yes" >&6
4452else
4453  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4454echo "${ECHO_T}no, using $LN_S" >&6
4455fi
4456
4457echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4458echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4459if test "${lt_cv_deplibs_check_method+set}" = set; then
4460  echo $ECHO_N "(cached) $ECHO_C" >&6
4461else
4462  lt_cv_file_magic_cmd='$MAGIC_CMD'
4463lt_cv_file_magic_test_file=
4464lt_cv_deplibs_check_method='unknown'
4465# Need to set the preceding variable on all platforms that support
4466# interlibrary dependencies.
4467# 'none' -- dependencies not supported.
4468# `unknown' -- same as none, but documents that we really don't know.
4469# 'pass_all' -- all dependencies passed with no checks.
4470# 'test_compile' -- check by making test program.
4471# 'file_magic [[regex]]' -- check by looking for files in library path
4472# which responds to the $file_magic_cmd with a given extended regex.
4473# If you have `file' or equivalent on your system and you're not sure
4474# whether `pass_all' will *always* work, you probably want this one.
4475
4476case $host_os in
4477aix4* | aix5*)
4478  lt_cv_deplibs_check_method=pass_all
4479  ;;
4480
4481beos*)
4482  lt_cv_deplibs_check_method=pass_all
4483  ;;
4484
4485bsdi[45]*)
4486  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4487  lt_cv_file_magic_cmd='/usr/bin/file -L'
4488  lt_cv_file_magic_test_file=/shlib/libc.so
4489  ;;
4490
4491cygwin*)
4492  # func_win32_libid is a shell function defined in ltmain.sh
4493  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4494  lt_cv_file_magic_cmd='func_win32_libid'
4495  ;;
4496
4497mingw* | pw32*)
4498  # Base MSYS/MinGW do not provide the 'file' command needed by
4499  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4500  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4501  lt_cv_file_magic_cmd='$OBJDUMP -f'
4502  ;;
4503
4504darwin* | rhapsody*)
4505  lt_cv_deplibs_check_method=pass_all
4506  ;;
4507
4508freebsd* | kfreebsd*-gnu | dragonfly*)
4509  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4510    case $host_cpu in
4511    i*86 )
4512      # Not sure whether the presence of OpenBSD here was a mistake.
4513      # Let's accept both of them until this is cleared up.
4514      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4515      lt_cv_file_magic_cmd=/usr/bin/file
4516      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4517      ;;
4518    esac
4519  else
4520    lt_cv_deplibs_check_method=pass_all
4521  fi
4522  ;;
4523
4524gnu*)
4525  lt_cv_deplibs_check_method=pass_all
4526  ;;
4527
4528hpux10.20* | hpux11*)
4529  lt_cv_file_magic_cmd=/usr/bin/file
4530  case $host_cpu in
4531  ia64*)
4532    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4533    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4534    ;;
4535  hppa*64*)
4536    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]'
4537    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4538    ;;
4539  *)
4540    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4541    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4542    ;;
4543  esac
4544  ;;
4545
4546interix3*)
4547  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4548  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4549  ;;
4550
4551irix5* | irix6* | nonstopux*)
4552  case $LD in
4553  *-32|*"-32 ") libmagic=32-bit;;
4554  *-n32|*"-n32 ") libmagic=N32;;
4555  *-64|*"-64 ") libmagic=64-bit;;
4556  *) libmagic=never-match;;
4557  esac
4558  lt_cv_deplibs_check_method=pass_all
4559  ;;
4560
4561# This must be Linux ELF.
4562linux*)
4563  lt_cv_deplibs_check_method=pass_all
4564  ;;
4565
4566netbsd*)
4567  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4568    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4569  else
4570    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4571  fi
4572  ;;
4573
4574newos6*)
4575  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4576  lt_cv_file_magic_cmd=/usr/bin/file
4577  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4578  ;;
4579
4580nto-qnx*)
4581  lt_cv_deplibs_check_method=unknown
4582  ;;
4583
4584openbsd*)
4585  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4586    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4587  else
4588    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4589  fi
4590  ;;
4591
4592osf3* | osf4* | osf5*)
4593  lt_cv_deplibs_check_method=pass_all
4594  ;;
4595
4596solaris*)
4597  lt_cv_deplibs_check_method=pass_all
4598  ;;
4599
4600sysv4 | sysv4.3*)
4601  case $host_vendor in
4602  motorola)
4603    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]'
4604    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4605    ;;
4606  ncr)
4607    lt_cv_deplibs_check_method=pass_all
4608    ;;
4609  sequent)
4610    lt_cv_file_magic_cmd='/bin/file'
4611    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4612    ;;
4613  sni)
4614    lt_cv_file_magic_cmd='/bin/file'
4615    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4616    lt_cv_file_magic_test_file=/lib/libc.so
4617    ;;
4618  siemens)
4619    lt_cv_deplibs_check_method=pass_all
4620    ;;
4621  pc)
4622    lt_cv_deplibs_check_method=pass_all
4623    ;;
4624  esac
4625  ;;
4626
4627sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4628  lt_cv_deplibs_check_method=pass_all
4629  ;;
4630esac
4631
4632fi
4633echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4634echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4635file_magic_cmd=$lt_cv_file_magic_cmd
4636deplibs_check_method=$lt_cv_deplibs_check_method
4637test -z "$deplibs_check_method" && deplibs_check_method=unknown
4638
4639
4640
4641
4642# If no C compiler was specified, use CC.
4643LTCC=${LTCC-"$CC"}
4644
4645# If no C compiler flags were specified, use CFLAGS.
4646LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4647
4648# Allow CC to be a program name with arguments.
4649compiler=$CC
4650
4651# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4652if test "${enable_libtool_lock+set}" = set; then
4653  enableval="$enable_libtool_lock"
4654
4655fi;
4656test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4657
4658# Some flags need to be propagated to the compiler or linker for good
4659# libtool support.
4660case $host in
4661ia64-*-hpux*)
4662  # Find out which ABI we are using.
4663  echo 'int i;' > conftest.$ac_ext
4664  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4665  (eval $ac_compile) 2>&5
4666  ac_status=$?
4667  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4668  (exit $ac_status); }; then
4669    case `/usr/bin/file conftest.$ac_objext` in
4670    *ELF-32*)
4671      HPUX_IA64_MODE="32"
4672      ;;
4673    *ELF-64*)
4674      HPUX_IA64_MODE="64"
4675      ;;
4676    esac
4677  fi
4678  rm -rf conftest*
4679  ;;
4680*-*-irix6*)
4681  # Find out which ABI we are using.
4682  echo '#line 4682 "configure"' > conftest.$ac_ext
4683  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4684  (eval $ac_compile) 2>&5
4685  ac_status=$?
4686  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4687  (exit $ac_status); }; then
4688   if test "$lt_cv_prog_gnu_ld" = yes; then
4689    case `/usr/bin/file conftest.$ac_objext` in
4690    *32-bit*)
4691      LD="${LD-ld} -melf32bsmip"
4692      ;;
4693    *N32*)
4694      LD="${LD-ld} -melf32bmipn32"
4695      ;;
4696    *64-bit*)
4697      LD="${LD-ld} -melf64bmip"
4698      ;;
4699    esac
4700   else
4701    case `/usr/bin/file conftest.$ac_objext` in
4702    *32-bit*)
4703      LD="${LD-ld} -32"
4704      ;;
4705    *N32*)
4706      LD="${LD-ld} -n32"
4707      ;;
4708    *64-bit*)
4709      LD="${LD-ld} -64"
4710      ;;
4711    esac
4712   fi
4713  fi
4714  rm -rf conftest*
4715  ;;
4716
4717x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4718  # Find out which ABI we are using.
4719  echo 'int i;' > conftest.$ac_ext
4720  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4721  (eval $ac_compile) 2>&5
4722  ac_status=$?
4723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4724  (exit $ac_status); }; then
4725    case `/usr/bin/file conftest.o` in
4726    *32-bit*)
4727      case $host in
4728        x86_64-*linux*)
4729          LD="${LD-ld} -m elf_i386"
4730          ;;
4731        ppc64-*linux*|powerpc64-*linux*)
4732          LD="${LD-ld} -m elf32ppclinux"
4733          ;;
4734        s390x-*linux*)
4735          LD="${LD-ld} -m elf_s390"
4736          ;;
4737        sparc64-*linux*)
4738          LD="${LD-ld} -m elf32_sparc"
4739          ;;
4740      esac
4741      ;;
4742    *64-bit*)
4743      case $host in
4744        x86_64-*linux*)
4745          LD="${LD-ld} -m elf_x86_64"
4746          ;;
4747        ppc*-*linux*|powerpc*-*linux*)
4748          LD="${LD-ld} -m elf64ppc"
4749          ;;
4750        s390*-*linux*)
4751          LD="${LD-ld} -m elf64_s390"
4752          ;;
4753        sparc*-*linux*)
4754          LD="${LD-ld} -m elf64_sparc"
4755          ;;
4756      esac
4757      ;;
4758    esac
4759  fi
4760  rm -rf conftest*
4761  ;;
4762
4763*-*-sco3.2v5*)
4764  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4765  SAVE_CFLAGS="$CFLAGS"
4766  CFLAGS="$CFLAGS -belf"
4767  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4768echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4769if test "${lt_cv_cc_needs_belf+set}" = set; then
4770  echo $ECHO_N "(cached) $ECHO_C" >&6
4771else
4772  ac_ext=c
4773ac_cpp='$CPP $CPPFLAGS'
4774ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4775ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4776ac_compiler_gnu=$ac_cv_c_compiler_gnu
4777
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
4785int
4786main ()
4787{
4788
4789  ;
4790  return 0;
4791}
4792_ACEOF
4793rm -f conftest.$ac_objext conftest$ac_exeext
4794if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4795  (eval $ac_link) 2>conftest.er1
4796  ac_status=$?
4797  grep -v '^ *+' conftest.er1 >conftest.err
4798  rm -f conftest.er1
4799  cat conftest.err >&5
4800  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4801  (exit $ac_status); } &&
4802	 { ac_try='test -z "$ac_c_werror_flag"
4803			 || test ! -s conftest.err'
4804  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4805  (eval $ac_try) 2>&5
4806  ac_status=$?
4807  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4808  (exit $ac_status); }; } &&
4809	 { ac_try='test -s conftest$ac_exeext'
4810  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4811  (eval $ac_try) 2>&5
4812  ac_status=$?
4813  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4814  (exit $ac_status); }; }; then
4815  lt_cv_cc_needs_belf=yes
4816else
4817  echo "$as_me: failed program was:" >&5
4818sed 's/^/| /' conftest.$ac_ext >&5
4819
4820lt_cv_cc_needs_belf=no
4821fi
4822rm -f conftest.err conftest.$ac_objext \
4823      conftest$ac_exeext conftest.$ac_ext
4824     ac_ext=c
4825ac_cpp='$CPP $CPPFLAGS'
4826ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4827ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4828ac_compiler_gnu=$ac_cv_c_compiler_gnu
4829
4830fi
4831echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4832echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4833  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4834    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4835    CFLAGS="$SAVE_CFLAGS"
4836  fi
4837  ;;
4838sparc*-*solaris*)
4839  # Find out which ABI we are using.
4840  echo 'int i;' > conftest.$ac_ext
4841  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4842  (eval $ac_compile) 2>&5
4843  ac_status=$?
4844  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4845  (exit $ac_status); }; then
4846    case `/usr/bin/file conftest.o` in
4847    *64-bit*)
4848      case $lt_cv_prog_gnu_ld in
4849      yes*) LD="${LD-ld} -m elf64_sparc" ;;
4850      *)    LD="${LD-ld} -64" ;;
4851      esac
4852      ;;
4853    esac
4854  fi
4855  rm -rf conftest*
4856  ;;
4857
4858
4859esac
4860
4861need_locks="$enable_libtool_lock"
4862
4863
4864
4865for ac_header in dlfcn.h
4866do
4867as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4868if eval "test \"\${$as_ac_Header+set}\" = set"; then
4869  echo "$as_me:$LINENO: checking for $ac_header" >&5
4870echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4871if eval "test \"\${$as_ac_Header+set}\" = set"; then
4872  echo $ECHO_N "(cached) $ECHO_C" >&6
4873fi
4874echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4875echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4876else
4877  # Is the header compilable?
4878echo "$as_me:$LINENO: checking $ac_header usability" >&5
4879echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4880cat >conftest.$ac_ext <<_ACEOF
4881/* confdefs.h.  */
4882_ACEOF
4883cat confdefs.h >>conftest.$ac_ext
4884cat >>conftest.$ac_ext <<_ACEOF
4885/* end confdefs.h.  */
4886$ac_includes_default
4887#include <$ac_header>
4888_ACEOF
4889rm -f conftest.$ac_objext
4890if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4891  (eval $ac_compile) 2>conftest.er1
4892  ac_status=$?
4893  grep -v '^ *+' conftest.er1 >conftest.err
4894  rm -f conftest.er1
4895  cat conftest.err >&5
4896  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4897  (exit $ac_status); } &&
4898	 { ac_try='test -z "$ac_c_werror_flag"
4899			 || test ! -s conftest.err'
4900  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4901  (eval $ac_try) 2>&5
4902  ac_status=$?
4903  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4904  (exit $ac_status); }; } &&
4905	 { ac_try='test -s conftest.$ac_objext'
4906  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4907  (eval $ac_try) 2>&5
4908  ac_status=$?
4909  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4910  (exit $ac_status); }; }; then
4911  ac_header_compiler=yes
4912else
4913  echo "$as_me: failed program was:" >&5
4914sed 's/^/| /' conftest.$ac_ext >&5
4915
4916ac_header_compiler=no
4917fi
4918rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4919echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4920echo "${ECHO_T}$ac_header_compiler" >&6
4921
4922# Is the header present?
4923echo "$as_me:$LINENO: checking $ac_header presence" >&5
4924echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4925cat >conftest.$ac_ext <<_ACEOF
4926/* confdefs.h.  */
4927_ACEOF
4928cat confdefs.h >>conftest.$ac_ext
4929cat >>conftest.$ac_ext <<_ACEOF
4930/* end confdefs.h.  */
4931#include <$ac_header>
4932_ACEOF
4933if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4934  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4935  ac_status=$?
4936  grep -v '^ *+' conftest.er1 >conftest.err
4937  rm -f conftest.er1
4938  cat conftest.err >&5
4939  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4940  (exit $ac_status); } >/dev/null; then
4941  if test -s conftest.err; then
4942    ac_cpp_err=$ac_c_preproc_warn_flag
4943    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4944  else
4945    ac_cpp_err=
4946  fi
4947else
4948  ac_cpp_err=yes
4949fi
4950if test -z "$ac_cpp_err"; then
4951  ac_header_preproc=yes
4952else
4953  echo "$as_me: failed program was:" >&5
4954sed 's/^/| /' conftest.$ac_ext >&5
4955
4956  ac_header_preproc=no
4957fi
4958rm -f conftest.err conftest.$ac_ext
4959echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4960echo "${ECHO_T}$ac_header_preproc" >&6
4961
4962# So?  What about this header?
4963case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4964  yes:no: )
4965    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4966echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4967    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4968echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4969    ac_header_preproc=yes
4970    ;;
4971  no:yes:* )
4972    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4973echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4974    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4975echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4976    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4977echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4978    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4979echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4980    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4981echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4982    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4983echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4984    (
4985      cat <<\_ASBOX
4986## ------------------------------------------ ##
4987## Report this to the AC_PACKAGE_NAME lists.  ##
4988## ------------------------------------------ ##
4989_ASBOX
4990    ) |
4991      sed "s/^/$as_me: WARNING:     /" >&2
4992    ;;
4993esac
4994echo "$as_me:$LINENO: checking for $ac_header" >&5
4995echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4996if eval "test \"\${$as_ac_Header+set}\" = set"; then
4997  echo $ECHO_N "(cached) $ECHO_C" >&6
4998else
4999  eval "$as_ac_Header=\$ac_header_preproc"
5000fi
5001echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5002echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5003
5004fi
5005if test `eval echo '${'$as_ac_Header'}'` = yes; then
5006  cat >>confdefs.h <<_ACEOF
5007#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5008_ACEOF
5009
5010fi
5011
5012done
5013
5014ac_ext=cc
5015ac_cpp='$CXXCPP $CPPFLAGS'
5016ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5017ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5018ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5019if test -n "$ac_tool_prefix"; then
5020  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5021  do
5022    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5023set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5024echo "$as_me:$LINENO: checking for $ac_word" >&5
5025echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5026if test "${ac_cv_prog_CXX+set}" = set; then
5027  echo $ECHO_N "(cached) $ECHO_C" >&6
5028else
5029  if test -n "$CXX"; then
5030  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5031else
5032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5033for as_dir in $PATH
5034do
5035  IFS=$as_save_IFS
5036  test -z "$as_dir" && as_dir=.
5037  for ac_exec_ext in '' $ac_executable_extensions; do
5038  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5039    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5040    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5041    break 2
5042  fi
5043done
5044done
5045
5046fi
5047fi
5048CXX=$ac_cv_prog_CXX
5049if test -n "$CXX"; then
5050  echo "$as_me:$LINENO: result: $CXX" >&5
5051echo "${ECHO_T}$CXX" >&6
5052else
5053  echo "$as_me:$LINENO: result: no" >&5
5054echo "${ECHO_T}no" >&6
5055fi
5056
5057    test -n "$CXX" && break
5058  done
5059fi
5060if test -z "$CXX"; then
5061  ac_ct_CXX=$CXX
5062  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5063do
5064  # Extract the first word of "$ac_prog", so it can be a program name with args.
5065set dummy $ac_prog; ac_word=$2
5066echo "$as_me:$LINENO: checking for $ac_word" >&5
5067echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5068if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5069  echo $ECHO_N "(cached) $ECHO_C" >&6
5070else
5071  if test -n "$ac_ct_CXX"; then
5072  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5073else
5074as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5075for as_dir in $PATH
5076do
5077  IFS=$as_save_IFS
5078  test -z "$as_dir" && as_dir=.
5079  for ac_exec_ext in '' $ac_executable_extensions; do
5080  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5081    ac_cv_prog_ac_ct_CXX="$ac_prog"
5082    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5083    break 2
5084  fi
5085done
5086done
5087
5088fi
5089fi
5090ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5091if test -n "$ac_ct_CXX"; then
5092  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5093echo "${ECHO_T}$ac_ct_CXX" >&6
5094else
5095  echo "$as_me:$LINENO: result: no" >&5
5096echo "${ECHO_T}no" >&6
5097fi
5098
5099  test -n "$ac_ct_CXX" && break
5100done
5101test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
5102
5103  CXX=$ac_ct_CXX
5104fi
5105
5106
5107# Provide some information about the compiler.
5108echo "$as_me:$LINENO:" \
5109     "checking for C++ compiler version" >&5
5110ac_compiler=`set X $ac_compile; echo $2`
5111{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5112  (eval $ac_compiler --version </dev/null >&5) 2>&5
5113  ac_status=$?
5114  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5115  (exit $ac_status); }
5116{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5117  (eval $ac_compiler -v </dev/null >&5) 2>&5
5118  ac_status=$?
5119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5120  (exit $ac_status); }
5121{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5122  (eval $ac_compiler -V </dev/null >&5) 2>&5
5123  ac_status=$?
5124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5125  (exit $ac_status); }
5126
5127echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5128echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
5129if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5130  echo $ECHO_N "(cached) $ECHO_C" >&6
5131else
5132  cat >conftest.$ac_ext <<_ACEOF
5133/* confdefs.h.  */
5134_ACEOF
5135cat confdefs.h >>conftest.$ac_ext
5136cat >>conftest.$ac_ext <<_ACEOF
5137/* end confdefs.h.  */
5138
5139int
5140main ()
5141{
5142#ifndef __GNUC__
5143       choke me
5144#endif
5145
5146  ;
5147  return 0;
5148}
5149_ACEOF
5150rm -f conftest.$ac_objext
5151if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5152  (eval $ac_compile) 2>conftest.er1
5153  ac_status=$?
5154  grep -v '^ *+' conftest.er1 >conftest.err
5155  rm -f conftest.er1
5156  cat conftest.err >&5
5157  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5158  (exit $ac_status); } &&
5159	 { ac_try='test -z "$ac_cxx_werror_flag"
5160			 || test ! -s conftest.err'
5161  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5162  (eval $ac_try) 2>&5
5163  ac_status=$?
5164  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5165  (exit $ac_status); }; } &&
5166	 { ac_try='test -s conftest.$ac_objext'
5167  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5168  (eval $ac_try) 2>&5
5169  ac_status=$?
5170  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5171  (exit $ac_status); }; }; then
5172  ac_compiler_gnu=yes
5173else
5174  echo "$as_me: failed program was:" >&5
5175sed 's/^/| /' conftest.$ac_ext >&5
5176
5177ac_compiler_gnu=no
5178fi
5179rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5180ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5181
5182fi
5183echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5184echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5185GXX=`test $ac_compiler_gnu = yes && echo yes`
5186ac_test_CXXFLAGS=${CXXFLAGS+set}
5187ac_save_CXXFLAGS=$CXXFLAGS
5188CXXFLAGS="-g"
5189echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5190echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5191if test "${ac_cv_prog_cxx_g+set}" = set; then
5192  echo $ECHO_N "(cached) $ECHO_C" >&6
5193else
5194  cat >conftest.$ac_ext <<_ACEOF
5195/* confdefs.h.  */
5196_ACEOF
5197cat confdefs.h >>conftest.$ac_ext
5198cat >>conftest.$ac_ext <<_ACEOF
5199/* end confdefs.h.  */
5200
5201int
5202main ()
5203{
5204
5205  ;
5206  return 0;
5207}
5208_ACEOF
5209rm -f conftest.$ac_objext
5210if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5211  (eval $ac_compile) 2>conftest.er1
5212  ac_status=$?
5213  grep -v '^ *+' conftest.er1 >conftest.err
5214  rm -f conftest.er1
5215  cat conftest.err >&5
5216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5217  (exit $ac_status); } &&
5218	 { ac_try='test -z "$ac_cxx_werror_flag"
5219			 || test ! -s conftest.err'
5220  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5221  (eval $ac_try) 2>&5
5222  ac_status=$?
5223  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5224  (exit $ac_status); }; } &&
5225	 { ac_try='test -s conftest.$ac_objext'
5226  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5227  (eval $ac_try) 2>&5
5228  ac_status=$?
5229  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5230  (exit $ac_status); }; }; then
5231  ac_cv_prog_cxx_g=yes
5232else
5233  echo "$as_me: failed program was:" >&5
5234sed 's/^/| /' conftest.$ac_ext >&5
5235
5236ac_cv_prog_cxx_g=no
5237fi
5238rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5239fi
5240echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5241echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5242if test "$ac_test_CXXFLAGS" = set; then
5243  CXXFLAGS=$ac_save_CXXFLAGS
5244elif test $ac_cv_prog_cxx_g = yes; then
5245  if test "$GXX" = yes; then
5246    CXXFLAGS="-g -O2"
5247  else
5248    CXXFLAGS="-g"
5249  fi
5250else
5251  if test "$GXX" = yes; then
5252    CXXFLAGS="-O2"
5253  else
5254    CXXFLAGS=
5255  fi
5256fi
5257for ac_declaration in \
5258   '' \
5259   'extern "C" void std::exit (int) throw (); using std::exit;' \
5260   'extern "C" void std::exit (int); using std::exit;' \
5261   'extern "C" void exit (int) throw ();' \
5262   'extern "C" void exit (int);' \
5263   'void exit (int);'
5264do
5265  cat >conftest.$ac_ext <<_ACEOF
5266/* confdefs.h.  */
5267_ACEOF
5268cat confdefs.h >>conftest.$ac_ext
5269cat >>conftest.$ac_ext <<_ACEOF
5270/* end confdefs.h.  */
5271$ac_declaration
5272#include <stdlib.h>
5273int
5274main ()
5275{
5276exit (42);
5277  ;
5278  return 0;
5279}
5280_ACEOF
5281rm -f conftest.$ac_objext
5282if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5283  (eval $ac_compile) 2>conftest.er1
5284  ac_status=$?
5285  grep -v '^ *+' conftest.er1 >conftest.err
5286  rm -f conftest.er1
5287  cat conftest.err >&5
5288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5289  (exit $ac_status); } &&
5290	 { ac_try='test -z "$ac_cxx_werror_flag"
5291			 || test ! -s conftest.err'
5292  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5293  (eval $ac_try) 2>&5
5294  ac_status=$?
5295  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5296  (exit $ac_status); }; } &&
5297	 { ac_try='test -s conftest.$ac_objext'
5298  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5299  (eval $ac_try) 2>&5
5300  ac_status=$?
5301  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5302  (exit $ac_status); }; }; then
5303  :
5304else
5305  echo "$as_me: failed program was:" >&5
5306sed 's/^/| /' conftest.$ac_ext >&5
5307
5308continue
5309fi
5310rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5311  cat >conftest.$ac_ext <<_ACEOF
5312/* confdefs.h.  */
5313_ACEOF
5314cat confdefs.h >>conftest.$ac_ext
5315cat >>conftest.$ac_ext <<_ACEOF
5316/* end confdefs.h.  */
5317$ac_declaration
5318int
5319main ()
5320{
5321exit (42);
5322  ;
5323  return 0;
5324}
5325_ACEOF
5326rm -f conftest.$ac_objext
5327if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5328  (eval $ac_compile) 2>conftest.er1
5329  ac_status=$?
5330  grep -v '^ *+' conftest.er1 >conftest.err
5331  rm -f conftest.er1
5332  cat conftest.err >&5
5333  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5334  (exit $ac_status); } &&
5335	 { ac_try='test -z "$ac_cxx_werror_flag"
5336			 || test ! -s conftest.err'
5337  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5338  (eval $ac_try) 2>&5
5339  ac_status=$?
5340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5341  (exit $ac_status); }; } &&
5342	 { ac_try='test -s conftest.$ac_objext'
5343  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5344  (eval $ac_try) 2>&5
5345  ac_status=$?
5346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347  (exit $ac_status); }; }; then
5348  break
5349else
5350  echo "$as_me: failed program was:" >&5
5351sed 's/^/| /' conftest.$ac_ext >&5
5352
5353fi
5354rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5355done
5356rm -f conftest*
5357if test -n "$ac_declaration"; then
5358  echo '#ifdef __cplusplus' >>confdefs.h
5359  echo $ac_declaration      >>confdefs.h
5360  echo '#endif'             >>confdefs.h
5361fi
5362
5363ac_ext=cc
5364ac_cpp='$CXXCPP $CPPFLAGS'
5365ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5366ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5367ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5368
5369depcc="$CXX"  am_compiler_list=
5370
5371echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5372echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5373if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5374  echo $ECHO_N "(cached) $ECHO_C" >&6
5375else
5376  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5377  # We make a subdir and do the tests there.  Otherwise we can end up
5378  # making bogus files that we don't know about and never remove.  For
5379  # instance it was reported that on HP-UX the gcc test will end up
5380  # making a dummy file named `D' -- because `-MD' means `put the output
5381  # in D'.
5382  mkdir conftest.dir
5383  # Copy depcomp to subdir because otherwise we won't find it if we're
5384  # using a relative directory.
5385  cp "$am_depcomp" conftest.dir
5386  cd conftest.dir
5387  # We will build objects and dependencies in a subdirectory because
5388  # it helps to detect inapplicable dependency modes.  For instance
5389  # both Tru64's cc and ICC support -MD to output dependencies as a
5390  # side effect of compilation, but ICC will put the dependencies in
5391  # the current directory while Tru64 will put them in the object
5392  # directory.
5393  mkdir sub
5394
5395  am_cv_CXX_dependencies_compiler_type=none
5396  if test "$am_compiler_list" = ""; then
5397     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5398  fi
5399  for depmode in $am_compiler_list; do
5400    # Setup a source with many dependencies, because some compilers
5401    # like to wrap large dependency lists on column 80 (with \), and
5402    # we should not choose a depcomp mode which is confused by this.
5403    #
5404    # We need to recreate these files for each test, as the compiler may
5405    # overwrite some of them when testing with obscure command lines.
5406    # This happens at least with the AIX C compiler.
5407    : > sub/conftest.c
5408    for i in 1 2 3 4 5 6; do
5409      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5410      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5411      # Solaris 8's {/usr,}/bin/sh.
5412      touch sub/conftst$i.h
5413    done
5414    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5415
5416    case $depmode in
5417    nosideeffect)
5418      # after this tag, mechanisms are not by side-effect, so they'll
5419      # only be used when explicitly requested
5420      if test "x$enable_dependency_tracking" = xyes; then
5421	continue
5422      else
5423	break
5424      fi
5425      ;;
5426    none) break ;;
5427    esac
5428    # We check with `-c' and `-o' for the sake of the "dashmstdout"
5429    # mode.  It turns out that the SunPro C++ compiler does not properly
5430    # handle `-M -o', and we need to detect this.
5431    if depmode=$depmode \
5432       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5433       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5434       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5435         >/dev/null 2>conftest.err &&
5436       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5437       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5438       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5439      # icc doesn't choke on unknown options, it will just issue warnings
5440      # or remarks (even with -Werror).  So we grep stderr for any message
5441      # that says an option was ignored or not supported.
5442      # When given -MP, icc 7.0 and 7.1 complain thusly:
5443      #   icc: Command line warning: ignoring option '-M'; no argument required
5444      # The diagnosis changed in icc 8.0:
5445      #   icc: Command line remark: option '-MP' not supported
5446      if (grep 'ignoring option' conftest.err ||
5447          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5448        am_cv_CXX_dependencies_compiler_type=$depmode
5449        break
5450      fi
5451    fi
5452  done
5453
5454  cd ..
5455  rm -rf conftest.dir
5456else
5457  am_cv_CXX_dependencies_compiler_type=none
5458fi
5459
5460fi
5461echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5462echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5463CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5464
5465
5466
5467if
5468  test "x$enable_dependency_tracking" != xno \
5469  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5470  am__fastdepCXX_TRUE=
5471  am__fastdepCXX_FALSE='#'
5472else
5473  am__fastdepCXX_TRUE='#'
5474  am__fastdepCXX_FALSE=
5475fi
5476
5477
5478
5479
5480if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5481    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5482    (test "X$CXX" != "Xg++"))) ; then
5483  ac_ext=cc
5484ac_cpp='$CXXCPP $CPPFLAGS'
5485ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5486ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5487ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5488echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5489echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5490if test -z "$CXXCPP"; then
5491  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5492  echo $ECHO_N "(cached) $ECHO_C" >&6
5493else
5494      # Double quotes because CXXCPP needs to be expanded
5495    for CXXCPP in "$CXX -E" "/lib/cpp"
5496    do
5497      ac_preproc_ok=false
5498for ac_cxx_preproc_warn_flag in '' yes
5499do
5500  # Use a header file that comes with gcc, so configuring glibc
5501  # with a fresh cross-compiler works.
5502  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5503  # <limits.h> exists even on freestanding compilers.
5504  # On the NeXT, cc -E runs the code through the compiler's parser,
5505  # not just through cpp. "Syntax error" is here to catch this case.
5506  cat >conftest.$ac_ext <<_ACEOF
5507/* confdefs.h.  */
5508_ACEOF
5509cat confdefs.h >>conftest.$ac_ext
5510cat >>conftest.$ac_ext <<_ACEOF
5511/* end confdefs.h.  */
5512#ifdef __STDC__
5513# include <limits.h>
5514#else
5515# include <assert.h>
5516#endif
5517		     Syntax error
5518_ACEOF
5519if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5520  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5521  ac_status=$?
5522  grep -v '^ *+' conftest.er1 >conftest.err
5523  rm -f conftest.er1
5524  cat conftest.err >&5
5525  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5526  (exit $ac_status); } >/dev/null; then
5527  if test -s conftest.err; then
5528    ac_cpp_err=$ac_cxx_preproc_warn_flag
5529    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5530  else
5531    ac_cpp_err=
5532  fi
5533else
5534  ac_cpp_err=yes
5535fi
5536if test -z "$ac_cpp_err"; then
5537  :
5538else
5539  echo "$as_me: failed program was:" >&5
5540sed 's/^/| /' conftest.$ac_ext >&5
5541
5542  # Broken: fails on valid input.
5543continue
5544fi
5545rm -f conftest.err conftest.$ac_ext
5546
5547  # OK, works on sane cases.  Now check whether non-existent headers
5548  # can be detected and how.
5549  cat >conftest.$ac_ext <<_ACEOF
5550/* confdefs.h.  */
5551_ACEOF
5552cat confdefs.h >>conftest.$ac_ext
5553cat >>conftest.$ac_ext <<_ACEOF
5554/* end confdefs.h.  */
5555#include <ac_nonexistent.h>
5556_ACEOF
5557if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5558  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5559  ac_status=$?
5560  grep -v '^ *+' conftest.er1 >conftest.err
5561  rm -f conftest.er1
5562  cat conftest.err >&5
5563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5564  (exit $ac_status); } >/dev/null; then
5565  if test -s conftest.err; then
5566    ac_cpp_err=$ac_cxx_preproc_warn_flag
5567    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5568  else
5569    ac_cpp_err=
5570  fi
5571else
5572  ac_cpp_err=yes
5573fi
5574if test -z "$ac_cpp_err"; then
5575  # Broken: success on invalid input.
5576continue
5577else
5578  echo "$as_me: failed program was:" >&5
5579sed 's/^/| /' conftest.$ac_ext >&5
5580
5581  # Passes both tests.
5582ac_preproc_ok=:
5583break
5584fi
5585rm -f conftest.err conftest.$ac_ext
5586
5587done
5588# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5589rm -f conftest.err conftest.$ac_ext
5590if $ac_preproc_ok; then
5591  break
5592fi
5593
5594    done
5595    ac_cv_prog_CXXCPP=$CXXCPP
5596
5597fi
5598  CXXCPP=$ac_cv_prog_CXXCPP
5599else
5600  ac_cv_prog_CXXCPP=$CXXCPP
5601fi
5602echo "$as_me:$LINENO: result: $CXXCPP" >&5
5603echo "${ECHO_T}$CXXCPP" >&6
5604ac_preproc_ok=false
5605for ac_cxx_preproc_warn_flag in '' yes
5606do
5607  # Use a header file that comes with gcc, so configuring glibc
5608  # with a fresh cross-compiler works.
5609  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5610  # <limits.h> exists even on freestanding compilers.
5611  # On the NeXT, cc -E runs the code through the compiler's parser,
5612  # not just through cpp. "Syntax error" is here to catch this case.
5613  cat >conftest.$ac_ext <<_ACEOF
5614/* confdefs.h.  */
5615_ACEOF
5616cat confdefs.h >>conftest.$ac_ext
5617cat >>conftest.$ac_ext <<_ACEOF
5618/* end confdefs.h.  */
5619#ifdef __STDC__
5620# include <limits.h>
5621#else
5622# include <assert.h>
5623#endif
5624		     Syntax error
5625_ACEOF
5626if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5627  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5628  ac_status=$?
5629  grep -v '^ *+' conftest.er1 >conftest.err
5630  rm -f conftest.er1
5631  cat conftest.err >&5
5632  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633  (exit $ac_status); } >/dev/null; then
5634  if test -s conftest.err; then
5635    ac_cpp_err=$ac_cxx_preproc_warn_flag
5636    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5637  else
5638    ac_cpp_err=
5639  fi
5640else
5641  ac_cpp_err=yes
5642fi
5643if test -z "$ac_cpp_err"; then
5644  :
5645else
5646  echo "$as_me: failed program was:" >&5
5647sed 's/^/| /' conftest.$ac_ext >&5
5648
5649  # Broken: fails on valid input.
5650continue
5651fi
5652rm -f conftest.err conftest.$ac_ext
5653
5654  # OK, works on sane cases.  Now check whether non-existent headers
5655  # can be detected and how.
5656  cat >conftest.$ac_ext <<_ACEOF
5657/* confdefs.h.  */
5658_ACEOF
5659cat confdefs.h >>conftest.$ac_ext
5660cat >>conftest.$ac_ext <<_ACEOF
5661/* end confdefs.h.  */
5662#include <ac_nonexistent.h>
5663_ACEOF
5664if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5665  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5666  ac_status=$?
5667  grep -v '^ *+' conftest.er1 >conftest.err
5668  rm -f conftest.er1
5669  cat conftest.err >&5
5670  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5671  (exit $ac_status); } >/dev/null; then
5672  if test -s conftest.err; then
5673    ac_cpp_err=$ac_cxx_preproc_warn_flag
5674    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5675  else
5676    ac_cpp_err=
5677  fi
5678else
5679  ac_cpp_err=yes
5680fi
5681if test -z "$ac_cpp_err"; then
5682  # Broken: success on invalid input.
5683continue
5684else
5685  echo "$as_me: failed program was:" >&5
5686sed 's/^/| /' conftest.$ac_ext >&5
5687
5688  # Passes both tests.
5689ac_preproc_ok=:
5690break
5691fi
5692rm -f conftest.err conftest.$ac_ext
5693
5694done
5695# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5696rm -f conftest.err conftest.$ac_ext
5697if $ac_preproc_ok; then
5698  :
5699else
5700  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5701See \`config.log' for more details." >&5
5702echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5703See \`config.log' for more details." >&2;}
5704   { (exit 1); exit 1; }; }
5705fi
5706
5707ac_ext=cc
5708ac_cpp='$CXXCPP $CPPFLAGS'
5709ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5710ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5711ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5712
5713fi
5714
5715
5716ac_ext=f
5717ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5718ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5719ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5720if test -n "$ac_tool_prefix"; then
5721  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5722  do
5723    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5724set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5725echo "$as_me:$LINENO: checking for $ac_word" >&5
5726echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5727if test "${ac_cv_prog_F77+set}" = set; then
5728  echo $ECHO_N "(cached) $ECHO_C" >&6
5729else
5730  if test -n "$F77"; then
5731  ac_cv_prog_F77="$F77" # Let the user override the test.
5732else
5733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5734for as_dir in $PATH
5735do
5736  IFS=$as_save_IFS
5737  test -z "$as_dir" && as_dir=.
5738  for ac_exec_ext in '' $ac_executable_extensions; do
5739  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5740    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5741    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5742    break 2
5743  fi
5744done
5745done
5746
5747fi
5748fi
5749F77=$ac_cv_prog_F77
5750if test -n "$F77"; then
5751  echo "$as_me:$LINENO: result: $F77" >&5
5752echo "${ECHO_T}$F77" >&6
5753else
5754  echo "$as_me:$LINENO: result: no" >&5
5755echo "${ECHO_T}no" >&6
5756fi
5757
5758    test -n "$F77" && break
5759  done
5760fi
5761if test -z "$F77"; then
5762  ac_ct_F77=$F77
5763  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5764do
5765  # Extract the first word of "$ac_prog", so it can be a program name with args.
5766set dummy $ac_prog; ac_word=$2
5767echo "$as_me:$LINENO: checking for $ac_word" >&5
5768echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5769if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5770  echo $ECHO_N "(cached) $ECHO_C" >&6
5771else
5772  if test -n "$ac_ct_F77"; then
5773  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5774else
5775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5776for as_dir in $PATH
5777do
5778  IFS=$as_save_IFS
5779  test -z "$as_dir" && as_dir=.
5780  for ac_exec_ext in '' $ac_executable_extensions; do
5781  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5782    ac_cv_prog_ac_ct_F77="$ac_prog"
5783    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5784    break 2
5785  fi
5786done
5787done
5788
5789fi
5790fi
5791ac_ct_F77=$ac_cv_prog_ac_ct_F77
5792if test -n "$ac_ct_F77"; then
5793  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5794echo "${ECHO_T}$ac_ct_F77" >&6
5795else
5796  echo "$as_me:$LINENO: result: no" >&5
5797echo "${ECHO_T}no" >&6
5798fi
5799
5800  test -n "$ac_ct_F77" && break
5801done
5802
5803  F77=$ac_ct_F77
5804fi
5805
5806
5807# Provide some information about the compiler.
5808echo "$as_me:5808:" \
5809     "checking for Fortran 77 compiler version" >&5
5810ac_compiler=`set X $ac_compile; echo $2`
5811{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5812  (eval $ac_compiler --version </dev/null >&5) 2>&5
5813  ac_status=$?
5814  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5815  (exit $ac_status); }
5816{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5817  (eval $ac_compiler -v </dev/null >&5) 2>&5
5818  ac_status=$?
5819  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820  (exit $ac_status); }
5821{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5822  (eval $ac_compiler -V </dev/null >&5) 2>&5
5823  ac_status=$?
5824  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825  (exit $ac_status); }
5826rm -f a.out
5827
5828# If we don't use `.F' as extension, the preprocessor is not run on the
5829# input file.  (Note that this only needs to work for GNU compilers.)
5830ac_save_ext=$ac_ext
5831ac_ext=F
5832echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5833echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5834if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5835  echo $ECHO_N "(cached) $ECHO_C" >&6
5836else
5837  cat >conftest.$ac_ext <<_ACEOF
5838      program main
5839#ifndef __GNUC__
5840       choke me
5841#endif
5842
5843      end
5844_ACEOF
5845rm -f conftest.$ac_objext
5846if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5847  (eval $ac_compile) 2>conftest.er1
5848  ac_status=$?
5849  grep -v '^ *+' conftest.er1 >conftest.err
5850  rm -f conftest.er1
5851  cat conftest.err >&5
5852  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5853  (exit $ac_status); } &&
5854	 { ac_try='test -z "$ac_f77_werror_flag"
5855			 || test ! -s conftest.err'
5856  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5857  (eval $ac_try) 2>&5
5858  ac_status=$?
5859  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5860  (exit $ac_status); }; } &&
5861	 { ac_try='test -s conftest.$ac_objext'
5862  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5863  (eval $ac_try) 2>&5
5864  ac_status=$?
5865  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5866  (exit $ac_status); }; }; then
5867  ac_compiler_gnu=yes
5868else
5869  echo "$as_me: failed program was:" >&5
5870sed 's/^/| /' conftest.$ac_ext >&5
5871
5872ac_compiler_gnu=no
5873fi
5874rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5875ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5876
5877fi
5878echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5879echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5880ac_ext=$ac_save_ext
5881ac_test_FFLAGS=${FFLAGS+set}
5882ac_save_FFLAGS=$FFLAGS
5883FFLAGS=
5884echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5885echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5886if test "${ac_cv_prog_f77_g+set}" = set; then
5887  echo $ECHO_N "(cached) $ECHO_C" >&6
5888else
5889  FFLAGS=-g
5890cat >conftest.$ac_ext <<_ACEOF
5891      program main
5892
5893      end
5894_ACEOF
5895rm -f conftest.$ac_objext
5896if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5897  (eval $ac_compile) 2>conftest.er1
5898  ac_status=$?
5899  grep -v '^ *+' conftest.er1 >conftest.err
5900  rm -f conftest.er1
5901  cat conftest.err >&5
5902  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903  (exit $ac_status); } &&
5904	 { ac_try='test -z "$ac_f77_werror_flag"
5905			 || test ! -s conftest.err'
5906  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5907  (eval $ac_try) 2>&5
5908  ac_status=$?
5909  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5910  (exit $ac_status); }; } &&
5911	 { ac_try='test -s conftest.$ac_objext'
5912  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5913  (eval $ac_try) 2>&5
5914  ac_status=$?
5915  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916  (exit $ac_status); }; }; then
5917  ac_cv_prog_f77_g=yes
5918else
5919  echo "$as_me: failed program was:" >&5
5920sed 's/^/| /' conftest.$ac_ext >&5
5921
5922ac_cv_prog_f77_g=no
5923fi
5924rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5925
5926fi
5927echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5928echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5929if test "$ac_test_FFLAGS" = set; then
5930  FFLAGS=$ac_save_FFLAGS
5931elif test $ac_cv_prog_f77_g = yes; then
5932  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5933    FFLAGS="-g -O2"
5934  else
5935    FFLAGS="-g"
5936  fi
5937else
5938  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5939    FFLAGS="-O2"
5940  else
5941    FFLAGS=
5942  fi
5943fi
5944
5945G77=`test $ac_compiler_gnu = yes && echo yes`
5946ac_ext=c
5947ac_cpp='$CPP $CPPFLAGS'
5948ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5949ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5950ac_compiler_gnu=$ac_cv_c_compiler_gnu
5951
5952
5953
5954# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5955
5956# find the maximum length of command line arguments
5957echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5958echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5959if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5960  echo $ECHO_N "(cached) $ECHO_C" >&6
5961else
5962    i=0
5963  teststring="ABCD"
5964
5965  case $build_os in
5966  msdosdjgpp*)
5967    # On DJGPP, this test can blow up pretty badly due to problems in libc
5968    # (any single argument exceeding 2000 bytes causes a buffer overrun
5969    # during glob expansion).  Even if it were fixed, the result of this
5970    # check would be larger than it should be.
5971    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5972    ;;
5973
5974  gnu*)
5975    # Under GNU Hurd, this test is not required because there is
5976    # no limit to the length of command line arguments.
5977    # Libtool will interpret -1 as no limit whatsoever
5978    lt_cv_sys_max_cmd_len=-1;
5979    ;;
5980
5981  cygwin* | mingw*)
5982    # On Win9x/ME, this test blows up -- it succeeds, but takes
5983    # about 5 minutes as the teststring grows exponentially.
5984    # Worse, since 9x/ME are not pre-emptively multitasking,
5985    # you end up with a "frozen" computer, even though with patience
5986    # the test eventually succeeds (with a max line length of 256k).
5987    # Instead, let's just punt: use the minimum linelength reported by
5988    # all of the supported platforms: 8192 (on NT/2K/XP).
5989    lt_cv_sys_max_cmd_len=8192;
5990    ;;
5991
5992  amigaos*)
5993    # On AmigaOS with pdksh, this test takes hours, literally.
5994    # So we just punt and use a minimum line length of 8192.
5995    lt_cv_sys_max_cmd_len=8192;
5996    ;;
5997
5998  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5999    # This has been around since 386BSD, at least.  Likely further.
6000    if test -x /sbin/sysctl; then
6001      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6002    elif test -x /usr/sbin/sysctl; then
6003      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6004    else
6005      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6006    fi
6007    # And add a safety zone
6008    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6009    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6010    ;;
6011
6012  interix*)
6013    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6014    lt_cv_sys_max_cmd_len=196608
6015    ;;
6016
6017  osf*)
6018    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6019    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6020    # nice to cause kernel panics so lets avoid the loop below.
6021    # First set a reasonable default.
6022    lt_cv_sys_max_cmd_len=16384
6023    #
6024    if test -x /sbin/sysconfig; then
6025      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6026        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6027      esac
6028    fi
6029    ;;
6030  sco3.2v5*)
6031    lt_cv_sys_max_cmd_len=102400
6032    ;;
6033  sysv5* | sco5v6* | sysv4.2uw2*)
6034    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6035    if test -n "$kargmax"; then
6036      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
6037    else
6038      lt_cv_sys_max_cmd_len=32768
6039    fi
6040    ;;
6041  *)
6042    # If test is not a shell built-in, we'll probably end up computing a
6043    # maximum length that is only half of the actual maximum length, but
6044    # we can't tell.
6045    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6046    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6047	       = "XX$teststring") >/dev/null 2>&1 &&
6048	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
6049	    lt_cv_sys_max_cmd_len=$new_result &&
6050	    test $i != 17 # 1/2 MB should be enough
6051    do
6052      i=`expr $i + 1`
6053      teststring=$teststring$teststring
6054    done
6055    teststring=
6056    # Add a significant safety factor because C++ compilers can tack on massive
6057    # amounts of additional arguments before passing them to the linker.
6058    # It appears as though 1/2 is a usable value.
6059    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6060    ;;
6061  esac
6062
6063fi
6064
6065if test -n $lt_cv_sys_max_cmd_len ; then
6066  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6067echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6068else
6069  echo "$as_me:$LINENO: result: none" >&5
6070echo "${ECHO_T}none" >&6
6071fi
6072
6073
6074
6075
6076# Check for command to grab the raw symbol name followed by C symbol from nm.
6077echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6078echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6079if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6080  echo $ECHO_N "(cached) $ECHO_C" >&6
6081else
6082
6083# These are sane defaults that work on at least a few old systems.
6084# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6085
6086# Character class describing NM global symbol codes.
6087symcode='[BCDEGRST]'
6088
6089# Regexp to match symbols that can be accessed directly from C.
6090sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6091
6092# Transform an extracted symbol line into a proper C declaration
6093lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6094
6095# Transform an extracted symbol line into symbol name and symbol address
6096lt_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'"
6097
6098# Define system-specific variables.
6099case $host_os in
6100aix*)
6101  symcode='[BCDT]'
6102  ;;
6103cygwin* | mingw* | pw32*)
6104  symcode='[ABCDGISTW]'
6105  ;;
6106hpux*) # Its linker distinguishes data from code symbols
6107  if test "$host_cpu" = ia64; then
6108    symcode='[ABCDEGRST]'
6109  fi
6110  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6111  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'"
6112  ;;
6113linux*)
6114  if test "$host_cpu" = ia64; then
6115    symcode='[ABCDGIRSTW]'
6116    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6117    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'"
6118  fi
6119  ;;
6120irix* | nonstopux*)
6121  symcode='[BCDEGRST]'
6122  ;;
6123osf*)
6124  symcode='[BCDEGQRST]'
6125  ;;
6126solaris*)
6127  symcode='[BDRT]'
6128  ;;
6129sco3.2v5*)
6130  symcode='[DT]'
6131  ;;
6132sysv4.2uw2*)
6133  symcode='[DT]'
6134  ;;
6135sysv5* | sco5v6* | unixware* | OpenUNIX*)
6136  symcode='[ABDT]'
6137  ;;
6138sysv4)
6139  symcode='[DFNSTU]'
6140  ;;
6141esac
6142
6143# Handle CRLF in mingw tool chain
6144opt_cr=
6145case $build_os in
6146mingw*)
6147  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6148  ;;
6149esac
6150
6151# If we're using GNU nm, then use its standard symbol codes.
6152case `$NM -V 2>&1` in
6153*GNU* | *'with BFD'*)
6154  symcode='[ABCDGIRSTW]' ;;
6155esac
6156
6157# Try without a prefix undercore, then with it.
6158for ac_symprfx in "" "_"; do
6159
6160  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6161  symxfrm="\\1 $ac_symprfx\\2 \\2"
6162
6163  # Write the raw and C identifiers.
6164  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6165
6166  # Check to see that the pipe works correctly.
6167  pipe_works=no
6168
6169  rm -f conftest*
6170  cat > conftest.$ac_ext <<EOF
6171#ifdef __cplusplus
6172extern "C" {
6173#endif
6174char nm_test_var;
6175void nm_test_func(){}
6176#ifdef __cplusplus
6177}
6178#endif
6179int main(){nm_test_var='a';nm_test_func();return(0);}
6180EOF
6181
6182  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6183  (eval $ac_compile) 2>&5
6184  ac_status=$?
6185  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186  (exit $ac_status); }; then
6187    # Now try to grab the symbols.
6188    nlist=conftest.nm
6189    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6190  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6191  ac_status=$?
6192  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6193  (exit $ac_status); } && test -s "$nlist"; then
6194      # Try sorting and uniquifying the output.
6195      if sort "$nlist" | uniq > "$nlist"T; then
6196	mv -f "$nlist"T "$nlist"
6197      else
6198	rm -f "$nlist"T
6199      fi
6200
6201      # Make sure that we snagged all the symbols we need.
6202      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6203	if grep ' nm_test_func$' "$nlist" >/dev/null; then
6204	  cat <<EOF > conftest.$ac_ext
6205#ifdef __cplusplus
6206extern "C" {
6207#endif
6208
6209EOF
6210	  # Now generate the symbol file.
6211	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6212
6213	  cat <<EOF >> conftest.$ac_ext
6214#if defined (__STDC__) && __STDC__
6215# define lt_ptr_t void *
6216#else
6217# define lt_ptr_t char *
6218# define const
6219#endif
6220
6221/* The mapping between symbol names and symbols. */
6222const struct {
6223  const char *name;
6224  lt_ptr_t address;
6225}
6226lt_preloaded_symbols[] =
6227{
6228EOF
6229	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6230	  cat <<\EOF >> conftest.$ac_ext
6231  {0, (lt_ptr_t) 0}
6232};
6233
6234#ifdef __cplusplus
6235}
6236#endif
6237EOF
6238	  # Now try linking the two files.
6239	  mv conftest.$ac_objext conftstm.$ac_objext
6240	  lt_save_LIBS="$LIBS"
6241	  lt_save_CFLAGS="$CFLAGS"
6242	  LIBS="conftstm.$ac_objext"
6243	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6244	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6245  (eval $ac_link) 2>&5
6246  ac_status=$?
6247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6248  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6249	    pipe_works=yes
6250	  fi
6251	  LIBS="$lt_save_LIBS"
6252	  CFLAGS="$lt_save_CFLAGS"
6253	else
6254	  echo "cannot find nm_test_func in $nlist" >&5
6255	fi
6256      else
6257	echo "cannot find nm_test_var in $nlist" >&5
6258      fi
6259    else
6260      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6261    fi
6262  else
6263    echo "$progname: failed program was:" >&5
6264    cat conftest.$ac_ext >&5
6265  fi
6266  rm -f conftest* conftst*
6267
6268  # Do not use the global_symbol_pipe unless it works.
6269  if test "$pipe_works" = yes; then
6270    break
6271  else
6272    lt_cv_sys_global_symbol_pipe=
6273  fi
6274done
6275
6276fi
6277
6278if test -z "$lt_cv_sys_global_symbol_pipe"; then
6279  lt_cv_sys_global_symbol_to_cdecl=
6280fi
6281if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6282  echo "$as_me:$LINENO: result: failed" >&5
6283echo "${ECHO_T}failed" >&6
6284else
6285  echo "$as_me:$LINENO: result: ok" >&5
6286echo "${ECHO_T}ok" >&6
6287fi
6288
6289echo "$as_me:$LINENO: checking for objdir" >&5
6290echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6291if test "${lt_cv_objdir+set}" = set; then
6292  echo $ECHO_N "(cached) $ECHO_C" >&6
6293else
6294  rm -f .libs 2>/dev/null
6295mkdir .libs 2>/dev/null
6296if test -d .libs; then
6297  lt_cv_objdir=.libs
6298else
6299  # MS-DOS does not allow filenames that begin with a dot.
6300  lt_cv_objdir=_libs
6301fi
6302rmdir .libs 2>/dev/null
6303fi
6304echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6305echo "${ECHO_T}$lt_cv_objdir" >&6
6306objdir=$lt_cv_objdir
6307
6308
6309
6310
6311
6312case $host_os in
6313aix3*)
6314  # AIX sometimes has problems with the GCC collect2 program.  For some
6315  # reason, if we set the COLLECT_NAMES environment variable, the problems
6316  # vanish in a puff of smoke.
6317  if test "X${COLLECT_NAMES+set}" != Xset; then
6318    COLLECT_NAMES=
6319    export COLLECT_NAMES
6320  fi
6321  ;;
6322esac
6323
6324# Sed substitution that helps us do robust quoting.  It backslashifies
6325# metacharacters that are still active within double-quoted strings.
6326Xsed='sed -e 1s/^X//'
6327sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6328
6329# Same as above, but do not quote variable references.
6330double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6331
6332# Sed substitution to delay expansion of an escaped shell variable in a
6333# double_quote_subst'ed string.
6334delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6335
6336# Sed substitution to avoid accidental globbing in evaled expressions
6337no_glob_subst='s/\*/\\\*/g'
6338
6339# Constants:
6340rm="rm -f"
6341
6342# Global variables:
6343default_ofile=libtool
6344can_build_shared=yes
6345
6346# All known linkers require a `.a' archive for static linking (except MSVC,
6347# which needs '.lib').
6348libext=a
6349ltmain="$ac_aux_dir/ltmain.sh"
6350ofile="$default_ofile"
6351with_gnu_ld="$lt_cv_prog_gnu_ld"
6352
6353if test -n "$ac_tool_prefix"; then
6354  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6355set dummy ${ac_tool_prefix}ar; ac_word=$2
6356echo "$as_me:$LINENO: checking for $ac_word" >&5
6357echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6358if test "${ac_cv_prog_AR+set}" = set; then
6359  echo $ECHO_N "(cached) $ECHO_C" >&6
6360else
6361  if test -n "$AR"; then
6362  ac_cv_prog_AR="$AR" # Let the user override the test.
6363else
6364as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6365for as_dir in $PATH
6366do
6367  IFS=$as_save_IFS
6368  test -z "$as_dir" && as_dir=.
6369  for ac_exec_ext in '' $ac_executable_extensions; do
6370  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6371    ac_cv_prog_AR="${ac_tool_prefix}ar"
6372    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6373    break 2
6374  fi
6375done
6376done
6377
6378fi
6379fi
6380AR=$ac_cv_prog_AR
6381if test -n "$AR"; then
6382  echo "$as_me:$LINENO: result: $AR" >&5
6383echo "${ECHO_T}$AR" >&6
6384else
6385  echo "$as_me:$LINENO: result: no" >&5
6386echo "${ECHO_T}no" >&6
6387fi
6388
6389fi
6390if test -z "$ac_cv_prog_AR"; then
6391  ac_ct_AR=$AR
6392  # Extract the first word of "ar", so it can be a program name with args.
6393set dummy ar; ac_word=$2
6394echo "$as_me:$LINENO: checking for $ac_word" >&5
6395echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6396if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6397  echo $ECHO_N "(cached) $ECHO_C" >&6
6398else
6399  if test -n "$ac_ct_AR"; then
6400  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6401else
6402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6403for as_dir in $PATH
6404do
6405  IFS=$as_save_IFS
6406  test -z "$as_dir" && as_dir=.
6407  for ac_exec_ext in '' $ac_executable_extensions; do
6408  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6409    ac_cv_prog_ac_ct_AR="ar"
6410    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6411    break 2
6412  fi
6413done
6414done
6415
6416  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6417fi
6418fi
6419ac_ct_AR=$ac_cv_prog_ac_ct_AR
6420if test -n "$ac_ct_AR"; then
6421  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6422echo "${ECHO_T}$ac_ct_AR" >&6
6423else
6424  echo "$as_me:$LINENO: result: no" >&5
6425echo "${ECHO_T}no" >&6
6426fi
6427
6428  AR=$ac_ct_AR
6429else
6430  AR="$ac_cv_prog_AR"
6431fi
6432
6433if test -n "$ac_tool_prefix"; then
6434  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6435set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6436echo "$as_me:$LINENO: checking for $ac_word" >&5
6437echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6438if test "${ac_cv_prog_RANLIB+set}" = set; then
6439  echo $ECHO_N "(cached) $ECHO_C" >&6
6440else
6441  if test -n "$RANLIB"; then
6442  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6443else
6444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6445for as_dir in $PATH
6446do
6447  IFS=$as_save_IFS
6448  test -z "$as_dir" && as_dir=.
6449  for ac_exec_ext in '' $ac_executable_extensions; do
6450  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6451    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6452    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6453    break 2
6454  fi
6455done
6456done
6457
6458fi
6459fi
6460RANLIB=$ac_cv_prog_RANLIB
6461if test -n "$RANLIB"; then
6462  echo "$as_me:$LINENO: result: $RANLIB" >&5
6463echo "${ECHO_T}$RANLIB" >&6
6464else
6465  echo "$as_me:$LINENO: result: no" >&5
6466echo "${ECHO_T}no" >&6
6467fi
6468
6469fi
6470if test -z "$ac_cv_prog_RANLIB"; then
6471  ac_ct_RANLIB=$RANLIB
6472  # Extract the first word of "ranlib", so it can be a program name with args.
6473set dummy ranlib; ac_word=$2
6474echo "$as_me:$LINENO: checking for $ac_word" >&5
6475echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6476if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6477  echo $ECHO_N "(cached) $ECHO_C" >&6
6478else
6479  if test -n "$ac_ct_RANLIB"; then
6480  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6481else
6482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6483for as_dir in $PATH
6484do
6485  IFS=$as_save_IFS
6486  test -z "$as_dir" && as_dir=.
6487  for ac_exec_ext in '' $ac_executable_extensions; do
6488  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6489    ac_cv_prog_ac_ct_RANLIB="ranlib"
6490    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6491    break 2
6492  fi
6493done
6494done
6495
6496  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6497fi
6498fi
6499ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6500if test -n "$ac_ct_RANLIB"; then
6501  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6502echo "${ECHO_T}$ac_ct_RANLIB" >&6
6503else
6504  echo "$as_me:$LINENO: result: no" >&5
6505echo "${ECHO_T}no" >&6
6506fi
6507
6508  RANLIB=$ac_ct_RANLIB
6509else
6510  RANLIB="$ac_cv_prog_RANLIB"
6511fi
6512
6513if test -n "$ac_tool_prefix"; then
6514  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6515set dummy ${ac_tool_prefix}strip; ac_word=$2
6516echo "$as_me:$LINENO: checking for $ac_word" >&5
6517echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6518if test "${ac_cv_prog_STRIP+set}" = set; then
6519  echo $ECHO_N "(cached) $ECHO_C" >&6
6520else
6521  if test -n "$STRIP"; then
6522  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6523else
6524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6525for as_dir in $PATH
6526do
6527  IFS=$as_save_IFS
6528  test -z "$as_dir" && as_dir=.
6529  for ac_exec_ext in '' $ac_executable_extensions; do
6530  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6531    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6532    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6533    break 2
6534  fi
6535done
6536done
6537
6538fi
6539fi
6540STRIP=$ac_cv_prog_STRIP
6541if test -n "$STRIP"; then
6542  echo "$as_me:$LINENO: result: $STRIP" >&5
6543echo "${ECHO_T}$STRIP" >&6
6544else
6545  echo "$as_me:$LINENO: result: no" >&5
6546echo "${ECHO_T}no" >&6
6547fi
6548
6549fi
6550if test -z "$ac_cv_prog_STRIP"; then
6551  ac_ct_STRIP=$STRIP
6552  # Extract the first word of "strip", so it can be a program name with args.
6553set dummy strip; ac_word=$2
6554echo "$as_me:$LINENO: checking for $ac_word" >&5
6555echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6556if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6557  echo $ECHO_N "(cached) $ECHO_C" >&6
6558else
6559  if test -n "$ac_ct_STRIP"; then
6560  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6561else
6562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6563for as_dir in $PATH
6564do
6565  IFS=$as_save_IFS
6566  test -z "$as_dir" && as_dir=.
6567  for ac_exec_ext in '' $ac_executable_extensions; do
6568  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6569    ac_cv_prog_ac_ct_STRIP="strip"
6570    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6571    break 2
6572  fi
6573done
6574done
6575
6576  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6577fi
6578fi
6579ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6580if test -n "$ac_ct_STRIP"; then
6581  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6582echo "${ECHO_T}$ac_ct_STRIP" >&6
6583else
6584  echo "$as_me:$LINENO: result: no" >&5
6585echo "${ECHO_T}no" >&6
6586fi
6587
6588  STRIP=$ac_ct_STRIP
6589else
6590  STRIP="$ac_cv_prog_STRIP"
6591fi
6592
6593
6594old_CC="$CC"
6595old_CFLAGS="$CFLAGS"
6596
6597# Set sane defaults for various variables
6598test -z "$AR" && AR=ar
6599test -z "$AR_FLAGS" && AR_FLAGS=cru
6600test -z "$AS" && AS=as
6601test -z "$CC" && CC=cc
6602test -z "$LTCC" && LTCC=$CC
6603test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6604test -z "$DLLTOOL" && DLLTOOL=dlltool
6605test -z "$LD" && LD=ld
6606test -z "$LN_S" && LN_S="ln -s"
6607test -z "$MAGIC_CMD" && MAGIC_CMD=file
6608test -z "$NM" && NM=nm
6609test -z "$SED" && SED=sed
6610test -z "$OBJDUMP" && OBJDUMP=objdump
6611test -z "$RANLIB" && RANLIB=:
6612test -z "$STRIP" && STRIP=:
6613test -z "$ac_objext" && ac_objext=o
6614
6615# Determine commands to create old-style static archives.
6616old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6617old_postinstall_cmds='chmod 644 $oldlib'
6618old_postuninstall_cmds=
6619
6620if test -n "$RANLIB"; then
6621  case $host_os in
6622  openbsd*)
6623    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6624    ;;
6625  *)
6626    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6627    ;;
6628  esac
6629  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6630fi
6631
6632for cc_temp in $compiler""; do
6633  case $cc_temp in
6634    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6635    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6636    \-*) ;;
6637    *) break;;
6638  esac
6639done
6640cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6641
6642
6643# Only perform the check for file, if the check method requires it
6644case $deplibs_check_method in
6645file_magic*)
6646  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6647    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6648echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6649if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6650  echo $ECHO_N "(cached) $ECHO_C" >&6
6651else
6652  case $MAGIC_CMD in
6653[\\/*] |  ?:[\\/]*)
6654  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6655  ;;
6656*)
6657  lt_save_MAGIC_CMD="$MAGIC_CMD"
6658  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6659  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6660  for ac_dir in $ac_dummy; do
6661    IFS="$lt_save_ifs"
6662    test -z "$ac_dir" && ac_dir=.
6663    if test -f $ac_dir/${ac_tool_prefix}file; then
6664      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6665      if test -n "$file_magic_test_file"; then
6666	case $deplibs_check_method in
6667	"file_magic "*)
6668	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6669	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6670	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6671	    $EGREP "$file_magic_regex" > /dev/null; then
6672	    :
6673	  else
6674	    cat <<EOF 1>&2
6675
6676*** Warning: the command libtool uses to detect shared libraries,
6677*** $file_magic_cmd, produces output that libtool cannot recognize.
6678*** The result is that libtool may fail to recognize shared libraries
6679*** as such.  This will affect the creation of libtool libraries that
6680*** depend on shared libraries, but programs linked with such libtool
6681*** libraries will work regardless of this problem.  Nevertheless, you
6682*** may want to report the problem to your system manager and/or to
6683*** bug-libtool@gnu.org
6684
6685EOF
6686	  fi ;;
6687	esac
6688      fi
6689      break
6690    fi
6691  done
6692  IFS="$lt_save_ifs"
6693  MAGIC_CMD="$lt_save_MAGIC_CMD"
6694  ;;
6695esac
6696fi
6697
6698MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6699if test -n "$MAGIC_CMD"; then
6700  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6701echo "${ECHO_T}$MAGIC_CMD" >&6
6702else
6703  echo "$as_me:$LINENO: result: no" >&5
6704echo "${ECHO_T}no" >&6
6705fi
6706
6707if test -z "$lt_cv_path_MAGIC_CMD"; then
6708  if test -n "$ac_tool_prefix"; then
6709    echo "$as_me:$LINENO: checking for file" >&5
6710echo $ECHO_N "checking for file... $ECHO_C" >&6
6711if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6712  echo $ECHO_N "(cached) $ECHO_C" >&6
6713else
6714  case $MAGIC_CMD in
6715[\\/*] |  ?:[\\/]*)
6716  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6717  ;;
6718*)
6719  lt_save_MAGIC_CMD="$MAGIC_CMD"
6720  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6721  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6722  for ac_dir in $ac_dummy; do
6723    IFS="$lt_save_ifs"
6724    test -z "$ac_dir" && ac_dir=.
6725    if test -f $ac_dir/file; then
6726      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6727      if test -n "$file_magic_test_file"; then
6728	case $deplibs_check_method in
6729	"file_magic "*)
6730	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6731	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6732	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6733	    $EGREP "$file_magic_regex" > /dev/null; then
6734	    :
6735	  else
6736	    cat <<EOF 1>&2
6737
6738*** Warning: the command libtool uses to detect shared libraries,
6739*** $file_magic_cmd, produces output that libtool cannot recognize.
6740*** The result is that libtool may fail to recognize shared libraries
6741*** as such.  This will affect the creation of libtool libraries that
6742*** depend on shared libraries, but programs linked with such libtool
6743*** libraries will work regardless of this problem.  Nevertheless, you
6744*** may want to report the problem to your system manager and/or to
6745*** bug-libtool@gnu.org
6746
6747EOF
6748	  fi ;;
6749	esac
6750      fi
6751      break
6752    fi
6753  done
6754  IFS="$lt_save_ifs"
6755  MAGIC_CMD="$lt_save_MAGIC_CMD"
6756  ;;
6757esac
6758fi
6759
6760MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6761if test -n "$MAGIC_CMD"; then
6762  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6763echo "${ECHO_T}$MAGIC_CMD" >&6
6764else
6765  echo "$as_me:$LINENO: result: no" >&5
6766echo "${ECHO_T}no" >&6
6767fi
6768
6769  else
6770    MAGIC_CMD=:
6771  fi
6772fi
6773
6774  fi
6775  ;;
6776esac
6777
6778enable_dlopen=no
6779enable_win32_dll=no
6780
6781# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6782if test "${enable_libtool_lock+set}" = set; then
6783  enableval="$enable_libtool_lock"
6784
6785fi;
6786test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6787
6788
6789# Check whether --with-pic or --without-pic was given.
6790if test "${with_pic+set}" = set; then
6791  withval="$with_pic"
6792  pic_mode="$withval"
6793else
6794  pic_mode=default
6795fi;
6796test -z "$pic_mode" && pic_mode=default
6797
6798# Use C for the default configuration in the libtool script
6799tagname=
6800lt_save_CC="$CC"
6801ac_ext=c
6802ac_cpp='$CPP $CPPFLAGS'
6803ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6804ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6805ac_compiler_gnu=$ac_cv_c_compiler_gnu
6806
6807
6808# Source file extension for C test sources.
6809ac_ext=c
6810
6811# Object file extension for compiled C test sources.
6812objext=o
6813objext=$objext
6814
6815# Code to be used in simple compile tests
6816lt_simple_compile_test_code="int some_variable = 0;\n"
6817
6818# Code to be used in simple link tests
6819lt_simple_link_test_code='int main(){return(0);}\n'
6820
6821
6822# If no C compiler was specified, use CC.
6823LTCC=${LTCC-"$CC"}
6824
6825# If no C compiler flags were specified, use CFLAGS.
6826LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6827
6828# Allow CC to be a program name with arguments.
6829compiler=$CC
6830
6831
6832# save warnings/boilerplate of simple test code
6833ac_outfile=conftest.$ac_objext
6834printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6835eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6836_lt_compiler_boilerplate=`cat conftest.err`
6837$rm conftest*
6838
6839ac_outfile=conftest.$ac_objext
6840printf "$lt_simple_link_test_code" >conftest.$ac_ext
6841eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6842_lt_linker_boilerplate=`cat conftest.err`
6843$rm conftest*
6844
6845
6846
6847lt_prog_compiler_no_builtin_flag=
6848
6849if test "$GCC" = yes; then
6850  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6851
6852
6853echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6854echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6855if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6856  echo $ECHO_N "(cached) $ECHO_C" >&6
6857else
6858  lt_cv_prog_compiler_rtti_exceptions=no
6859  ac_outfile=conftest.$ac_objext
6860   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6861   lt_compiler_flag="-fno-rtti -fno-exceptions"
6862   # Insert the option either (1) after the last *FLAGS variable, or
6863   # (2) before a word containing "conftest.", or (3) at the end.
6864   # Note that $ac_compile itself does not contain backslashes and begins
6865   # with a dollar sign (not a hyphen), so the echo should work correctly.
6866   # The option is referenced via a variable to avoid confusing sed.
6867   lt_compile=`echo "$ac_compile" | $SED \
6868   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6869   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6870   -e 's:$: $lt_compiler_flag:'`
6871   (eval echo "\"\$as_me:6871: $lt_compile\"" >&5)
6872   (eval "$lt_compile" 2>conftest.err)
6873   ac_status=$?
6874   cat conftest.err >&5
6875   echo "$as_me:6875: \$? = $ac_status" >&5
6876   if (exit $ac_status) && test -s "$ac_outfile"; then
6877     # The compiler can only warn and ignore the option if not recognized
6878     # So say no if there are warnings other than the usual output.
6879     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6880     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6881     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6882       lt_cv_prog_compiler_rtti_exceptions=yes
6883     fi
6884   fi
6885   $rm conftest*
6886
6887fi
6888echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6889echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6890
6891if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6892    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6893else
6894    :
6895fi
6896
6897fi
6898
6899lt_prog_compiler_wl=
6900lt_prog_compiler_pic=
6901lt_prog_compiler_static=
6902
6903echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6904echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6905
6906  if test "$GCC" = yes; then
6907    lt_prog_compiler_wl='-Wl,'
6908    lt_prog_compiler_static='-static'
6909
6910    case $host_os in
6911      aix*)
6912      # All AIX code is PIC.
6913      if test "$host_cpu" = ia64; then
6914	# AIX 5 now supports IA64 processor
6915	lt_prog_compiler_static='-Bstatic'
6916      fi
6917      ;;
6918
6919    amigaos*)
6920      # FIXME: we need at least 68020 code to build shared libraries, but
6921      # adding the `-m68020' flag to GCC prevents building anything better,
6922      # like `-m68040'.
6923      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6924      ;;
6925
6926    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6927      # PIC is the default for these OSes.
6928      ;;
6929
6930    mingw* | pw32* | os2*)
6931      # This hack is so that the source file can tell whether it is being
6932      # built for inclusion in a dll (and should export symbols for example).
6933      lt_prog_compiler_pic='-DDLL_EXPORT'
6934      ;;
6935
6936    darwin* | rhapsody*)
6937      # PIC is the default on this platform
6938      # Common symbols not allowed in MH_DYLIB files
6939      lt_prog_compiler_pic='-fno-common'
6940      ;;
6941
6942    interix3*)
6943      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6944      # Instead, we relocate shared libraries at runtime.
6945      ;;
6946
6947    msdosdjgpp*)
6948      # Just because we use GCC doesn't mean we suddenly get shared libraries
6949      # on systems that don't support them.
6950      lt_prog_compiler_can_build_shared=no
6951      enable_shared=no
6952      ;;
6953
6954    sysv4*MP*)
6955      if test -d /usr/nec; then
6956	lt_prog_compiler_pic=-Kconform_pic
6957      fi
6958      ;;
6959
6960    hpux*)
6961      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6962      # not for PA HP-UX.
6963      case $host_cpu in
6964      hppa*64*|ia64*)
6965	# +Z the default
6966	;;
6967      *)
6968	lt_prog_compiler_pic='-fPIC'
6969	;;
6970      esac
6971      ;;
6972
6973    *)
6974      lt_prog_compiler_pic='-fPIC'
6975      ;;
6976    esac
6977  else
6978    # PORTME Check for flag to pass linker flags through the system compiler.
6979    case $host_os in
6980    aix*)
6981      lt_prog_compiler_wl='-Wl,'
6982      if test "$host_cpu" = ia64; then
6983	# AIX 5 now supports IA64 processor
6984	lt_prog_compiler_static='-Bstatic'
6985      else
6986	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6987      fi
6988      ;;
6989      darwin*)
6990        # PIC is the default on this platform
6991        # Common symbols not allowed in MH_DYLIB files
6992       case $cc_basename in
6993         xlc*)
6994         lt_prog_compiler_pic='-qnocommon'
6995         lt_prog_compiler_wl='-Wl,'
6996         ;;
6997       esac
6998       ;;
6999
7000    mingw* | pw32* | os2*)
7001      # This hack is so that the source file can tell whether it is being
7002      # built for inclusion in a dll (and should export symbols for example).
7003      lt_prog_compiler_pic='-DDLL_EXPORT'
7004      ;;
7005
7006    hpux9* | hpux10* | hpux11*)
7007      lt_prog_compiler_wl='-Wl,'
7008      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7009      # not for PA HP-UX.
7010      case $host_cpu in
7011      hppa*64*|ia64*)
7012	# +Z the default
7013	;;
7014      *)
7015	lt_prog_compiler_pic='+Z'
7016	;;
7017      esac
7018      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7019      lt_prog_compiler_static='${wl}-a ${wl}archive'
7020      ;;
7021
7022    irix5* | irix6* | nonstopux*)
7023      lt_prog_compiler_wl='-Wl,'
7024      # PIC (with -KPIC) is the default.
7025      lt_prog_compiler_static='-non_shared'
7026      ;;
7027
7028    newsos6)
7029      lt_prog_compiler_pic='-KPIC'
7030      lt_prog_compiler_static='-Bstatic'
7031      ;;
7032
7033    linux*)
7034      case $cc_basename in
7035      icc* | ecc*)
7036	lt_prog_compiler_wl='-Wl,'
7037	lt_prog_compiler_pic='-KPIC'
7038	lt_prog_compiler_static='-static'
7039        ;;
7040      pgcc* | pgf77* | pgf90* | pgf95*)
7041        # Portland Group compilers (*not* the Pentium gcc compiler,
7042	# which looks to be a dead project)
7043	lt_prog_compiler_wl='-Wl,'
7044	lt_prog_compiler_pic='-fpic'
7045	lt_prog_compiler_static='-Bstatic'
7046        ;;
7047      ccc*)
7048        lt_prog_compiler_wl='-Wl,'
7049        # All Alpha code is PIC.
7050        lt_prog_compiler_static='-non_shared'
7051        ;;
7052      esac
7053      ;;
7054
7055    osf3* | osf4* | osf5*)
7056      lt_prog_compiler_wl='-Wl,'
7057      # All OSF/1 code is PIC.
7058      lt_prog_compiler_static='-non_shared'
7059      ;;
7060
7061    solaris*)
7062      lt_prog_compiler_pic='-KPIC'
7063      lt_prog_compiler_static='-Bstatic'
7064      case $cc_basename in
7065      f77* | f90* | f95*)
7066	lt_prog_compiler_wl='-Qoption ld ';;
7067      *)
7068	lt_prog_compiler_wl='-Wl,';;
7069      esac
7070      ;;
7071
7072    sunos4*)
7073      lt_prog_compiler_wl='-Qoption ld '
7074      lt_prog_compiler_pic='-PIC'
7075      lt_prog_compiler_static='-Bstatic'
7076      ;;
7077
7078    sysv4 | sysv4.2uw2* | sysv4.3*)
7079      lt_prog_compiler_wl='-Wl,'
7080      lt_prog_compiler_pic='-KPIC'
7081      lt_prog_compiler_static='-Bstatic'
7082      ;;
7083
7084    sysv4*MP*)
7085      if test -d /usr/nec ;then
7086	lt_prog_compiler_pic='-Kconform_pic'
7087	lt_prog_compiler_static='-Bstatic'
7088      fi
7089      ;;
7090
7091    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7092      lt_prog_compiler_wl='-Wl,'
7093      lt_prog_compiler_pic='-KPIC'
7094      lt_prog_compiler_static='-Bstatic'
7095      ;;
7096
7097    unicos*)
7098      lt_prog_compiler_wl='-Wl,'
7099      lt_prog_compiler_can_build_shared=no
7100      ;;
7101
7102    uts4*)
7103      lt_prog_compiler_pic='-pic'
7104      lt_prog_compiler_static='-Bstatic'
7105      ;;
7106
7107    *)
7108      lt_prog_compiler_can_build_shared=no
7109      ;;
7110    esac
7111  fi
7112
7113echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7114echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7115
7116#
7117# Check to make sure the PIC flag actually works.
7118#
7119if test -n "$lt_prog_compiler_pic"; then
7120
7121echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7122echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7123if test "${lt_prog_compiler_pic_works+set}" = set; then
7124  echo $ECHO_N "(cached) $ECHO_C" >&6
7125else
7126  lt_prog_compiler_pic_works=no
7127  ac_outfile=conftest.$ac_objext
7128   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7129   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7130   # Insert the option either (1) after the last *FLAGS variable, or
7131   # (2) before a word containing "conftest.", or (3) at the end.
7132   # Note that $ac_compile itself does not contain backslashes and begins
7133   # with a dollar sign (not a hyphen), so the echo should work correctly.
7134   # The option is referenced via a variable to avoid confusing sed.
7135   lt_compile=`echo "$ac_compile" | $SED \
7136   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7137   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7138   -e 's:$: $lt_compiler_flag:'`
7139   (eval echo "\"\$as_me:7139: $lt_compile\"" >&5)
7140   (eval "$lt_compile" 2>conftest.err)
7141   ac_status=$?
7142   cat conftest.err >&5
7143   echo "$as_me:7143: \$? = $ac_status" >&5
7144   if (exit $ac_status) && test -s "$ac_outfile"; then
7145     # The compiler can only warn and ignore the option if not recognized
7146     # So say no if there are warnings other than the usual output.
7147     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7148     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7149     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7150       lt_prog_compiler_pic_works=yes
7151     fi
7152   fi
7153   $rm conftest*
7154
7155fi
7156echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7157echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7158
7159if test x"$lt_prog_compiler_pic_works" = xyes; then
7160    case $lt_prog_compiler_pic in
7161     "" | " "*) ;;
7162     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7163     esac
7164else
7165    lt_prog_compiler_pic=
7166     lt_prog_compiler_can_build_shared=no
7167fi
7168
7169fi
7170case $host_os in
7171  # For platforms which do not support PIC, -DPIC is meaningless:
7172  *djgpp*)
7173    lt_prog_compiler_pic=
7174    ;;
7175  *)
7176    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7177    ;;
7178esac
7179
7180#
7181# Check to make sure the static flag actually works.
7182#
7183wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7184echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7185echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7186if test "${lt_prog_compiler_static_works+set}" = set; then
7187  echo $ECHO_N "(cached) $ECHO_C" >&6
7188else
7189  lt_prog_compiler_static_works=no
7190   save_LDFLAGS="$LDFLAGS"
7191   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7192   printf "$lt_simple_link_test_code" > conftest.$ac_ext
7193   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7194     # The linker can only warn and ignore the option if not recognized
7195     # So say no if there are warnings
7196     if test -s conftest.err; then
7197       # Append any errors to the config.log.
7198       cat conftest.err 1>&5
7199       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7200       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7201       if diff conftest.exp conftest.er2 >/dev/null; then
7202         lt_prog_compiler_static_works=yes
7203       fi
7204     else
7205       lt_prog_compiler_static_works=yes
7206     fi
7207   fi
7208   $rm conftest*
7209   LDFLAGS="$save_LDFLAGS"
7210
7211fi
7212echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7213echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7214
7215if test x"$lt_prog_compiler_static_works" = xyes; then
7216    :
7217else
7218    lt_prog_compiler_static=
7219fi
7220
7221
7222echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7223echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7224if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7225  echo $ECHO_N "(cached) $ECHO_C" >&6
7226else
7227  lt_cv_prog_compiler_c_o=no
7228   $rm -r conftest 2>/dev/null
7229   mkdir conftest
7230   cd conftest
7231   mkdir out
7232   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7233
7234   lt_compiler_flag="-o out/conftest2.$ac_objext"
7235   # Insert the option either (1) after the last *FLAGS variable, or
7236   # (2) before a word containing "conftest.", or (3) at the end.
7237   # Note that $ac_compile itself does not contain backslashes and begins
7238   # with a dollar sign (not a hyphen), so the echo should work correctly.
7239   lt_compile=`echo "$ac_compile" | $SED \
7240   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7241   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7242   -e 's:$: $lt_compiler_flag:'`
7243   (eval echo "\"\$as_me:7243: $lt_compile\"" >&5)
7244   (eval "$lt_compile" 2>out/conftest.err)
7245   ac_status=$?
7246   cat out/conftest.err >&5
7247   echo "$as_me:7247: \$? = $ac_status" >&5
7248   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7249   then
7250     # The compiler can only warn and ignore the option if not recognized
7251     # So say no if there are warnings
7252     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7253     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7254     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7255       lt_cv_prog_compiler_c_o=yes
7256     fi
7257   fi
7258   chmod u+w . 2>&5
7259   $rm conftest*
7260   # SGI C++ compiler will create directory out/ii_files/ for
7261   # template instantiation
7262   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7263   $rm out/* && rmdir out
7264   cd ..
7265   rmdir conftest
7266   $rm conftest*
7267
7268fi
7269echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7270echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7271
7272
7273hard_links="nottested"
7274if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7275  # do not overwrite the value of need_locks provided by the user
7276  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7277echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7278  hard_links=yes
7279  $rm conftest*
7280  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7281  touch conftest.a
7282  ln conftest.a conftest.b 2>&5 || hard_links=no
7283  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7284  echo "$as_me:$LINENO: result: $hard_links" >&5
7285echo "${ECHO_T}$hard_links" >&6
7286  if test "$hard_links" = no; then
7287    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7288echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7289    need_locks=warn
7290  fi
7291else
7292  need_locks=no
7293fi
7294
7295echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7296echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7297
7298  runpath_var=
7299  allow_undefined_flag=
7300  enable_shared_with_static_runtimes=no
7301  archive_cmds=
7302  archive_expsym_cmds=
7303  old_archive_From_new_cmds=
7304  old_archive_from_expsyms_cmds=
7305  export_dynamic_flag_spec=
7306  whole_archive_flag_spec=
7307  thread_safe_flag_spec=
7308  hardcode_libdir_flag_spec=
7309  hardcode_libdir_flag_spec_ld=
7310  hardcode_libdir_separator=
7311  hardcode_direct=no
7312  hardcode_minus_L=no
7313  hardcode_shlibpath_var=unsupported
7314  link_all_deplibs=unknown
7315  hardcode_automatic=no
7316  module_cmds=
7317  module_expsym_cmds=
7318  always_export_symbols=no
7319  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7320  # include_expsyms should be a list of space-separated symbols to be *always*
7321  # included in the symbol list
7322  include_expsyms=
7323  # exclude_expsyms can be an extended regexp of symbols to exclude
7324  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7325  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7326  # as well as any symbol that contains `d'.
7327  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7328  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7329  # platforms (ab)use it in PIC code, but their linkers get confused if
7330  # the symbol is explicitly referenced.  Since portable code cannot
7331  # rely on this symbol name, it's probably fine to never include it in
7332  # preloaded symbol tables.
7333  extract_expsyms_cmds=
7334  # Just being paranoid about ensuring that cc_basename is set.
7335  for cc_temp in $compiler""; do
7336  case $cc_temp in
7337    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7338    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7339    \-*) ;;
7340    *) break;;
7341  esac
7342done
7343cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7344
7345  case $host_os in
7346  cygwin* | mingw* | pw32*)
7347    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7348    # When not using gcc, we currently assume that we are using
7349    # Microsoft Visual C++.
7350    if test "$GCC" != yes; then
7351      with_gnu_ld=no
7352    fi
7353    ;;
7354  interix*)
7355    # we just hope/assume this is gcc and not c89 (= MSVC++)
7356    with_gnu_ld=yes
7357    ;;
7358  openbsd*)
7359    with_gnu_ld=no
7360    ;;
7361  esac
7362
7363  ld_shlibs=yes
7364  if test "$with_gnu_ld" = yes; then
7365    # If archive_cmds runs LD, not CC, wlarc should be empty
7366    wlarc='${wl}'
7367
7368    # Set some defaults for GNU ld with shared library support. These
7369    # are reset later if shared libraries are not supported. Putting them
7370    # here allows them to be overridden if necessary.
7371    runpath_var=LD_RUN_PATH
7372    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7373    export_dynamic_flag_spec='${wl}--export-dynamic'
7374    # ancient GNU ld didn't support --whole-archive et. al.
7375    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7376	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7377      else
7378  	whole_archive_flag_spec=
7379    fi
7380    supports_anon_versioning=no
7381    case `$LD -v 2>/dev/null` in
7382      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7383      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7384      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7385      *\ 2.11.*) ;; # other 2.11 versions
7386      *) supports_anon_versioning=yes ;;
7387    esac
7388
7389    # See if GNU ld supports shared libraries.
7390    case $host_os in
7391    aix3* | aix4* | aix5*)
7392      # On AIX/PPC, the GNU linker is very broken
7393      if test "$host_cpu" != ia64; then
7394	ld_shlibs=no
7395	cat <<EOF 1>&2
7396
7397*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7398*** to be unable to reliably create shared libraries on AIX.
7399*** Therefore, libtool is disabling shared libraries support.  If you
7400*** really care for shared libraries, you may want to modify your PATH
7401*** so that a non-GNU linker is found, and then restart.
7402
7403EOF
7404      fi
7405      ;;
7406
7407    amigaos*)
7408      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)'
7409      hardcode_libdir_flag_spec='-L$libdir'
7410      hardcode_minus_L=yes
7411
7412      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7413      # that the semantics of dynamic libraries on AmigaOS, at least up
7414      # to version 4, is to share data among multiple programs linked
7415      # with the same dynamic library.  Since this doesn't match the
7416      # behavior of shared libraries on other platforms, we can't use
7417      # them.
7418      ld_shlibs=no
7419      ;;
7420
7421    beos*)
7422      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7423	allow_undefined_flag=unsupported
7424	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7425	# support --undefined.  This deserves some investigation.  FIXME
7426	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7427      else
7428	ld_shlibs=no
7429      fi
7430      ;;
7431
7432    cygwin* | mingw* | pw32*)
7433      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7434      # as there is no search path for DLLs.
7435      hardcode_libdir_flag_spec='-L$libdir'
7436      allow_undefined_flag=unsupported
7437      always_export_symbols=no
7438      enable_shared_with_static_runtimes=yes
7439      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7440
7441      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7442        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7443	# If the export-symbols file already is a .def file (1st line
7444	# is EXPORTS), use it as is; otherwise, prepend...
7445	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7446	  cp $export_symbols $output_objdir/$soname.def;
7447	else
7448	  echo EXPORTS > $output_objdir/$soname.def;
7449	  cat $export_symbols >> $output_objdir/$soname.def;
7450	fi~
7451	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7452      else
7453	ld_shlibs=no
7454      fi
7455      ;;
7456
7457    interix3*)
7458      hardcode_direct=no
7459      hardcode_shlibpath_var=no
7460      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7461      export_dynamic_flag_spec='${wl}-E'
7462      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7463      # Instead, shared libraries are loaded at an image base (0x10000000 by
7464      # default) and relocated if they conflict, which is a slow very memory
7465      # consuming and fragmenting process.  To avoid this, we pick a random,
7466      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7467      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7468      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7469      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'
7470      ;;
7471
7472    linux*)
7473      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7474	tmp_addflag=
7475	case $cc_basename,$host_cpu in
7476	pgcc*)				# Portland Group C compiler
7477	  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'
7478	  tmp_addflag=' $pic_flag'
7479	  ;;
7480	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
7481	  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'
7482	  tmp_addflag=' $pic_flag -Mnomain' ;;
7483	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
7484	  tmp_addflag=' -i_dynamic' ;;
7485	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
7486	  tmp_addflag=' -i_dynamic -nofor_main' ;;
7487	ifc* | ifort*)			# Intel Fortran compiler
7488	  tmp_addflag=' -nofor_main' ;;
7489	esac
7490	archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7491
7492	if test $supports_anon_versioning = yes; then
7493	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7494  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7495  $echo "local: *; };" >> $output_objdir/$libname.ver~
7496	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7497	fi
7498      else
7499	ld_shlibs=no
7500      fi
7501      ;;
7502
7503    netbsd*)
7504      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7505	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7506	wlarc=
7507      else
7508	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7509	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7510      fi
7511      ;;
7512
7513    solaris*)
7514      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7515	ld_shlibs=no
7516	cat <<EOF 1>&2
7517
7518*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7519*** create shared libraries on Solaris systems.  Therefore, libtool
7520*** is disabling shared libraries support.  We urge you to upgrade GNU
7521*** binutils to release 2.9.1 or newer.  Another option is to modify
7522*** your PATH or compiler configuration so that the native linker is
7523*** used, and then restart.
7524
7525EOF
7526      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7527	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7528	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7529      else
7530	ld_shlibs=no
7531      fi
7532      ;;
7533
7534    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7535      case `$LD -v 2>&1` in
7536        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7537	ld_shlibs=no
7538	cat <<_LT_EOF 1>&2
7539
7540*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7541*** reliably create shared libraries on SCO systems.  Therefore, libtool
7542*** is disabling shared libraries support.  We urge you to upgrade GNU
7543*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7544*** your PATH or compiler configuration so that the native linker is
7545*** used, and then restart.
7546
7547_LT_EOF
7548	;;
7549	*)
7550	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7551	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7552	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7553	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7554	  else
7555	    ld_shlibs=no
7556	  fi
7557	;;
7558      esac
7559      ;;
7560
7561    sunos4*)
7562      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7563      wlarc=
7564      hardcode_direct=yes
7565      hardcode_shlibpath_var=no
7566      ;;
7567
7568    *)
7569      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7570	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7571	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7572      else
7573	ld_shlibs=no
7574      fi
7575      ;;
7576    esac
7577
7578    if test "$ld_shlibs" = no; then
7579      runpath_var=
7580      hardcode_libdir_flag_spec=
7581      export_dynamic_flag_spec=
7582      whole_archive_flag_spec=
7583    fi
7584  else
7585    # PORTME fill in a description of your system's linker (not GNU ld)
7586    case $host_os in
7587    aix3*)
7588      allow_undefined_flag=unsupported
7589      always_export_symbols=yes
7590      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'
7591      # Note: this linker hardcodes the directories in LIBPATH if there
7592      # are no directories specified by -L.
7593      hardcode_minus_L=yes
7594      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7595	# Neither direct hardcoding nor static linking is supported with a
7596	# broken collect2.
7597	hardcode_direct=unsupported
7598      fi
7599      ;;
7600
7601    aix4* | aix5*)
7602      if test "$host_cpu" = ia64; then
7603	# On IA64, the linker does run time linking by default, so we don't
7604	# have to do anything special.
7605	aix_use_runtimelinking=no
7606	exp_sym_flag='-Bexport'
7607	no_entry_flag=""
7608      else
7609	# If we're using GNU nm, then we don't want the "-C" option.
7610	# -C means demangle to AIX nm, but means don't demangle with GNU nm
7611	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7612	  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'
7613	else
7614	  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'
7615	fi
7616	aix_use_runtimelinking=no
7617
7618	# Test if we are trying to use run time linking or normal
7619	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
7620	# need to do runtime linking.
7621	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7622	  for ld_flag in $LDFLAGS; do
7623  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7624  	    aix_use_runtimelinking=yes
7625  	    break
7626  	  fi
7627	  done
7628	  ;;
7629	esac
7630
7631	exp_sym_flag='-bexport'
7632	no_entry_flag='-bnoentry'
7633      fi
7634
7635      # When large executables or shared objects are built, AIX ld can
7636      # have problems creating the table of contents.  If linking a library
7637      # or program results in "error TOC overflow" add -mminimal-toc to
7638      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7639      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7640
7641      archive_cmds=''
7642      hardcode_direct=yes
7643      hardcode_libdir_separator=':'
7644      link_all_deplibs=yes
7645
7646      if test "$GCC" = yes; then
7647	case $host_os in aix4.[012]|aix4.[012].*)
7648	# We only want to do this on AIX 4.2 and lower, the check
7649	# below for broken collect2 doesn't work under 4.3+
7650	  collect2name=`${CC} -print-prog-name=collect2`
7651	  if test -f "$collect2name" && \
7652  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
7653	  then
7654  	  # We have reworked collect2
7655  	  hardcode_direct=yes
7656	  else
7657  	  # We have old collect2
7658  	  hardcode_direct=unsupported
7659  	  # It fails to find uninstalled libraries when the uninstalled
7660  	  # path is not listed in the libpath.  Setting hardcode_minus_L
7661  	  # to unsupported forces relinking
7662  	  hardcode_minus_L=yes
7663  	  hardcode_libdir_flag_spec='-L$libdir'
7664  	  hardcode_libdir_separator=
7665	  fi
7666	  ;;
7667	esac
7668	shared_flag='-shared'
7669	if test "$aix_use_runtimelinking" = yes; then
7670	  shared_flag="$shared_flag "'${wl}-G'
7671	fi
7672      else
7673	# not using gcc
7674	if test "$host_cpu" = ia64; then
7675  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7676  	# chokes on -Wl,-G. The following line is correct:
7677	  shared_flag='-G'
7678	else
7679	  if test "$aix_use_runtimelinking" = yes; then
7680	    shared_flag='${wl}-G'
7681	  else
7682	    shared_flag='${wl}-bM:SRE'
7683	  fi
7684	fi
7685      fi
7686
7687      # It seems that -bexpall does not export symbols beginning with
7688      # underscore (_), so it is better to generate a list of symbols to export.
7689      always_export_symbols=yes
7690      if test "$aix_use_runtimelinking" = yes; then
7691	# Warning - without using the other runtime loading flags (-brtl),
7692	# -berok will link without error, but may produce a broken library.
7693	allow_undefined_flag='-berok'
7694       # Determine the default libpath from the value encoded in an empty executable.
7695       cat >conftest.$ac_ext <<_ACEOF
7696/* confdefs.h.  */
7697_ACEOF
7698cat confdefs.h >>conftest.$ac_ext
7699cat >>conftest.$ac_ext <<_ACEOF
7700/* end confdefs.h.  */
7701
7702int
7703main ()
7704{
7705
7706  ;
7707  return 0;
7708}
7709_ACEOF
7710rm -f conftest.$ac_objext conftest$ac_exeext
7711if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7712  (eval $ac_link) 2>conftest.er1
7713  ac_status=$?
7714  grep -v '^ *+' conftest.er1 >conftest.err
7715  rm -f conftest.er1
7716  cat conftest.err >&5
7717  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7718  (exit $ac_status); } &&
7719	 { ac_try='test -z "$ac_c_werror_flag"
7720			 || test ! -s conftest.err'
7721  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7722  (eval $ac_try) 2>&5
7723  ac_status=$?
7724  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7725  (exit $ac_status); }; } &&
7726	 { ac_try='test -s conftest$ac_exeext'
7727  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7728  (eval $ac_try) 2>&5
7729  ac_status=$?
7730  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7731  (exit $ac_status); }; }; then
7732
7733aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7734}'`
7735# Check for a 64-bit object if we didn't find anything.
7736if 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; }
7737}'`; fi
7738else
7739  echo "$as_me: failed program was:" >&5
7740sed 's/^/| /' conftest.$ac_ext >&5
7741
7742fi
7743rm -f conftest.err conftest.$ac_objext \
7744      conftest$ac_exeext conftest.$ac_ext
7745if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7746
7747       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7748	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"
7749       else
7750	if test "$host_cpu" = ia64; then
7751	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7752	  allow_undefined_flag="-z nodefs"
7753	  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"
7754	else
7755	 # Determine the default libpath from the value encoded in an empty executable.
7756	 cat >conftest.$ac_ext <<_ACEOF
7757/* confdefs.h.  */
7758_ACEOF
7759cat confdefs.h >>conftest.$ac_ext
7760cat >>conftest.$ac_ext <<_ACEOF
7761/* end confdefs.h.  */
7762
7763int
7764main ()
7765{
7766
7767  ;
7768  return 0;
7769}
7770_ACEOF
7771rm -f conftest.$ac_objext conftest$ac_exeext
7772if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7773  (eval $ac_link) 2>conftest.er1
7774  ac_status=$?
7775  grep -v '^ *+' conftest.er1 >conftest.err
7776  rm -f conftest.er1
7777  cat conftest.err >&5
7778  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7779  (exit $ac_status); } &&
7780	 { ac_try='test -z "$ac_c_werror_flag"
7781			 || test ! -s conftest.err'
7782  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7783  (eval $ac_try) 2>&5
7784  ac_status=$?
7785  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7786  (exit $ac_status); }; } &&
7787	 { ac_try='test -s conftest$ac_exeext'
7788  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7789  (eval $ac_try) 2>&5
7790  ac_status=$?
7791  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7792  (exit $ac_status); }; }; then
7793
7794aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7795}'`
7796# Check for a 64-bit object if we didn't find anything.
7797if 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; }
7798}'`; fi
7799else
7800  echo "$as_me: failed program was:" >&5
7801sed 's/^/| /' conftest.$ac_ext >&5
7802
7803fi
7804rm -f conftest.err conftest.$ac_objext \
7805      conftest$ac_exeext conftest.$ac_ext
7806if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7807
7808	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7809	  # Warning - without using the other run time loading flags,
7810	  # -berok will link without error, but may produce a broken library.
7811	  no_undefined_flag=' ${wl}-bernotok'
7812	  allow_undefined_flag=' ${wl}-berok'
7813	  # Exported symbols can be pulled into shared objects from archives
7814	  whole_archive_flag_spec='$convenience'
7815	  archive_cmds_need_lc=yes
7816	  # This is similar to how AIX traditionally builds its shared libraries.
7817	  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'
7818	fi
7819      fi
7820      ;;
7821
7822    amigaos*)
7823      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)'
7824      hardcode_libdir_flag_spec='-L$libdir'
7825      hardcode_minus_L=yes
7826      # see comment about different semantics on the GNU ld section
7827      ld_shlibs=no
7828      ;;
7829
7830    bsdi[45]*)
7831      export_dynamic_flag_spec=-rdynamic
7832      ;;
7833
7834    cygwin* | mingw* | pw32*)
7835      # When not using gcc, we currently assume that we are using
7836      # Microsoft Visual C++.
7837      # hardcode_libdir_flag_spec is actually meaningless, as there is
7838      # no search path for DLLs.
7839      hardcode_libdir_flag_spec=' '
7840      allow_undefined_flag=unsupported
7841      # Tell ltmain to make .lib files, not .a files.
7842      libext=lib
7843      # Tell ltmain to make .dll files, not .so files.
7844      shrext_cmds=".dll"
7845      # FIXME: Setting linknames here is a bad hack.
7846      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7847      # The linker will automatically build a .lib file if we build a DLL.
7848      old_archive_From_new_cmds='true'
7849      # FIXME: Should let the user specify the lib program.
7850      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7851      fix_srcfile_path='`cygpath -w "$srcfile"`'
7852      enable_shared_with_static_runtimes=yes
7853      ;;
7854
7855    darwin* | rhapsody*)
7856      case $host_os in
7857        rhapsody* | darwin1.[012])
7858         allow_undefined_flag='${wl}-undefined ${wl}suppress'
7859         ;;
7860       *) # Darwin 1.3 on
7861         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7862           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7863         else
7864           case ${MACOSX_DEPLOYMENT_TARGET} in
7865             10.[012])
7866               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7867               ;;
7868             10.*)
7869               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7870               ;;
7871           esac
7872         fi
7873         ;;
7874      esac
7875      archive_cmds_need_lc=no
7876      hardcode_direct=no
7877      hardcode_automatic=yes
7878      hardcode_shlibpath_var=unsupported
7879      whole_archive_flag_spec=''
7880      link_all_deplibs=yes
7881    if test "$GCC" = yes ; then
7882    	output_verbose_link_cmd='echo'
7883        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7884      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7885      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7886      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}'
7887      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}'
7888    else
7889      case $cc_basename in
7890        xlc*)
7891         output_verbose_link_cmd='echo'
7892         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7893         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7894          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7895         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}'
7896          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}'
7897          ;;
7898       *)
7899         ld_shlibs=no
7900          ;;
7901      esac
7902    fi
7903      ;;
7904
7905    dgux*)
7906      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7907      hardcode_libdir_flag_spec='-L$libdir'
7908      hardcode_shlibpath_var=no
7909      ;;
7910
7911    freebsd1*)
7912      ld_shlibs=no
7913      ;;
7914
7915    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7916    # support.  Future versions do this automatically, but an explicit c++rt0.o
7917    # does not break anything, and helps significantly (at the cost of a little
7918    # extra space).
7919    freebsd2.2*)
7920      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7921      hardcode_libdir_flag_spec='-R$libdir'
7922      hardcode_direct=yes
7923      hardcode_shlibpath_var=no
7924      ;;
7925
7926    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7927    freebsd2*)
7928      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7929      hardcode_direct=yes
7930      hardcode_minus_L=yes
7931      hardcode_shlibpath_var=no
7932      ;;
7933
7934    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7935    freebsd* | kfreebsd*-gnu | dragonfly*)
7936      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7937      hardcode_libdir_flag_spec='-R$libdir'
7938      hardcode_direct=yes
7939      hardcode_shlibpath_var=no
7940      ;;
7941
7942    hpux9*)
7943      if test "$GCC" = yes; then
7944	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'
7945      else
7946	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'
7947      fi
7948      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7949      hardcode_libdir_separator=:
7950      hardcode_direct=yes
7951
7952      # hardcode_minus_L: Not really in the search PATH,
7953      # but as the default location of the library.
7954      hardcode_minus_L=yes
7955      export_dynamic_flag_spec='${wl}-E'
7956      ;;
7957
7958    hpux10*)
7959      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7960	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7961      else
7962	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7963      fi
7964      if test "$with_gnu_ld" = no; then
7965	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7966	hardcode_libdir_separator=:
7967
7968	hardcode_direct=yes
7969	export_dynamic_flag_spec='${wl}-E'
7970
7971	# hardcode_minus_L: Not really in the search PATH,
7972	# but as the default location of the library.
7973	hardcode_minus_L=yes
7974      fi
7975      ;;
7976
7977    hpux11*)
7978      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7979	case $host_cpu in
7980	hppa*64*)
7981	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7982	  ;;
7983	ia64*)
7984	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7985	  ;;
7986	*)
7987	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7988	  ;;
7989	esac
7990      else
7991	case $host_cpu in
7992	hppa*64*)
7993	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7994	  ;;
7995	ia64*)
7996	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7997	  ;;
7998	*)
7999	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8000	  ;;
8001	esac
8002      fi
8003      if test "$with_gnu_ld" = no; then
8004	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8005	hardcode_libdir_separator=:
8006
8007	case $host_cpu in
8008	hppa*64*|ia64*)
8009	  hardcode_libdir_flag_spec_ld='+b $libdir'
8010	  hardcode_direct=no
8011	  hardcode_shlibpath_var=no
8012	  ;;
8013	*)
8014	  hardcode_direct=yes
8015	  export_dynamic_flag_spec='${wl}-E'
8016
8017	  # hardcode_minus_L: Not really in the search PATH,
8018	  # but as the default location of the library.
8019	  hardcode_minus_L=yes
8020	  ;;
8021	esac
8022      fi
8023      ;;
8024
8025    irix5* | irix6* | nonstopux*)
8026      if test "$GCC" = yes; then
8027	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'
8028      else
8029	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'
8030	hardcode_libdir_flag_spec_ld='-rpath $libdir'
8031      fi
8032      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8033      hardcode_libdir_separator=:
8034      link_all_deplibs=yes
8035      ;;
8036
8037    netbsd*)
8038      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8039	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8040      else
8041	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8042      fi
8043      hardcode_libdir_flag_spec='-R$libdir'
8044      hardcode_direct=yes
8045      hardcode_shlibpath_var=no
8046      ;;
8047
8048    newsos6)
8049      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8050      hardcode_direct=yes
8051      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8052      hardcode_libdir_separator=:
8053      hardcode_shlibpath_var=no
8054      ;;
8055
8056    openbsd*)
8057      hardcode_direct=yes
8058      hardcode_shlibpath_var=no
8059      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8060	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8061	archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8062	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8063	export_dynamic_flag_spec='${wl}-E'
8064      else
8065       case $host_os in
8066	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8067	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8068	   hardcode_libdir_flag_spec='-R$libdir'
8069	   ;;
8070	 *)
8071	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8072	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8073	   ;;
8074       esac
8075      fi
8076      ;;
8077
8078    os2*)
8079      hardcode_libdir_flag_spec='-L$libdir'
8080      hardcode_minus_L=yes
8081      allow_undefined_flag=unsupported
8082      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'
8083      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8084      ;;
8085
8086    osf3*)
8087      if test "$GCC" = yes; then
8088	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8089	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'
8090      else
8091	allow_undefined_flag=' -expect_unresolved \*'
8092	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'
8093      fi
8094      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8095      hardcode_libdir_separator=:
8096      ;;
8097
8098    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8099      if test "$GCC" = yes; then
8100	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8101	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'
8102	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8103      else
8104	allow_undefined_flag=' -expect_unresolved \*'
8105	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'
8106	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8107	$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'
8108
8109	# Both c and cxx compiler support -rpath directly
8110	hardcode_libdir_flag_spec='-rpath $libdir'
8111      fi
8112      hardcode_libdir_separator=:
8113      ;;
8114
8115    solaris*)
8116      no_undefined_flag=' -z text'
8117      if test "$GCC" = yes; then
8118	wlarc='${wl}'
8119	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8120	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8121	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8122      else
8123	wlarc=''
8124	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8125	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8126  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8127      fi
8128      hardcode_libdir_flag_spec='-R$libdir'
8129      hardcode_shlibpath_var=no
8130      case $host_os in
8131      solaris2.[0-5] | solaris2.[0-5].*) ;;
8132      *)
8133 	# The compiler driver will combine linker options so we
8134 	# cannot just pass the convience library names through
8135 	# without $wl, iff we do not link with $LD.
8136 	# Luckily, gcc supports the same syntax we need for Sun Studio.
8137 	# Supported since Solaris 2.6 (maybe 2.5.1?)
8138 	case $wlarc in
8139 	'')
8140 	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8141 	*)
8142 	  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' ;;
8143 	esac ;;
8144      esac
8145      link_all_deplibs=yes
8146      ;;
8147
8148    sunos4*)
8149      if test "x$host_vendor" = xsequent; then
8150	# Use $CC to link under sequent, because it throws in some extra .o
8151	# files that make .init and .fini sections work.
8152	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8153      else
8154	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8155      fi
8156      hardcode_libdir_flag_spec='-L$libdir'
8157      hardcode_direct=yes
8158      hardcode_minus_L=yes
8159      hardcode_shlibpath_var=no
8160      ;;
8161
8162    sysv4)
8163      case $host_vendor in
8164	sni)
8165	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8166	  hardcode_direct=yes # is this really true???
8167	;;
8168	siemens)
8169	  ## LD is ld it makes a PLAMLIB
8170	  ## CC just makes a GrossModule.
8171	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8172	  reload_cmds='$CC -r -o $output$reload_objs'
8173	  hardcode_direct=no
8174        ;;
8175	motorola)
8176	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8177	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8178	;;
8179      esac
8180      runpath_var='LD_RUN_PATH'
8181      hardcode_shlibpath_var=no
8182      ;;
8183
8184    sysv4.3*)
8185      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8186      hardcode_shlibpath_var=no
8187      export_dynamic_flag_spec='-Bexport'
8188      ;;
8189
8190    sysv4*MP*)
8191      if test -d /usr/nec; then
8192	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8193	hardcode_shlibpath_var=no
8194	runpath_var=LD_RUN_PATH
8195	hardcode_runpath_var=yes
8196	ld_shlibs=yes
8197      fi
8198      ;;
8199
8200    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8201      no_undefined_flag='${wl}-z,text'
8202      archive_cmds_need_lc=no
8203      hardcode_shlibpath_var=no
8204      runpath_var='LD_RUN_PATH'
8205
8206      if test "$GCC" = yes; then
8207	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8208	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8209      else
8210	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8211	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8212      fi
8213      ;;
8214
8215    sysv5* | sco3.2v5* | sco5v6*)
8216      # Note: We can NOT use -z defs as we might desire, because we do not
8217      # link with -lc, and that would cause any symbols used from libc to
8218      # always be unresolved, which means just about no library would
8219      # ever link correctly.  If we're not using GNU ld we use -z text
8220      # though, which does catch some bad symbols but isn't as heavy-handed
8221      # as -z defs.
8222      no_undefined_flag='${wl}-z,text'
8223      allow_undefined_flag='${wl}-z,nodefs'
8224      archive_cmds_need_lc=no
8225      hardcode_shlibpath_var=no
8226      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8227      hardcode_libdir_separator=':'
8228      link_all_deplibs=yes
8229      export_dynamic_flag_spec='${wl}-Bexport'
8230      runpath_var='LD_RUN_PATH'
8231
8232      if test "$GCC" = yes; then
8233	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8234	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8235      else
8236	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8237	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8238      fi
8239      ;;
8240
8241    uts4*)
8242      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8243      hardcode_libdir_flag_spec='-L$libdir'
8244      hardcode_shlibpath_var=no
8245      ;;
8246
8247    *)
8248      ld_shlibs=no
8249      ;;
8250    esac
8251  fi
8252
8253echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8254echo "${ECHO_T}$ld_shlibs" >&6
8255test "$ld_shlibs" = no && can_build_shared=no
8256
8257#
8258# Do we need to explicitly link libc?
8259#
8260case "x$archive_cmds_need_lc" in
8261x|xyes)
8262  # Assume -lc should be added
8263  archive_cmds_need_lc=yes
8264
8265  if test "$enable_shared" = yes && test "$GCC" = yes; then
8266    case $archive_cmds in
8267    *'~'*)
8268      # FIXME: we may have to deal with multi-command sequences.
8269      ;;
8270    '$CC '*)
8271      # Test whether the compiler implicitly links with -lc since on some
8272      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8273      # to ld, don't add -lc before -lgcc.
8274      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8275echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8276      $rm conftest*
8277      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8278
8279      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8280  (eval $ac_compile) 2>&5
8281  ac_status=$?
8282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8283  (exit $ac_status); } 2>conftest.err; then
8284        soname=conftest
8285        lib=conftest
8286        libobjs=conftest.$ac_objext
8287        deplibs=
8288        wl=$lt_prog_compiler_wl
8289	pic_flag=$lt_prog_compiler_pic
8290        compiler_flags=-v
8291        linker_flags=-v
8292        verstring=
8293        output_objdir=.
8294        libname=conftest
8295        lt_save_allow_undefined_flag=$allow_undefined_flag
8296        allow_undefined_flag=
8297        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8298  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8299  ac_status=$?
8300  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8301  (exit $ac_status); }
8302        then
8303	  archive_cmds_need_lc=no
8304        else
8305	  archive_cmds_need_lc=yes
8306        fi
8307        allow_undefined_flag=$lt_save_allow_undefined_flag
8308      else
8309        cat conftest.err 1>&5
8310      fi
8311      $rm conftest*
8312      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8313echo "${ECHO_T}$archive_cmds_need_lc" >&6
8314      ;;
8315    esac
8316  fi
8317  ;;
8318esac
8319
8320echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8321echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8322library_names_spec=
8323libname_spec='lib$name'
8324soname_spec=
8325shrext_cmds=".so"
8326postinstall_cmds=
8327postuninstall_cmds=
8328finish_cmds=
8329finish_eval=
8330shlibpath_var=
8331shlibpath_overrides_runpath=unknown
8332version_type=none
8333dynamic_linker="$host_os ld.so"
8334sys_lib_dlsearch_path_spec="/lib /usr/lib"
8335if test "$GCC" = yes; then
8336  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8337  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8338    # if the path contains ";" then we assume it to be the separator
8339    # otherwise default to the standard path separator (i.e. ":") - it is
8340    # assumed that no part of a normal pathname contains ";" but that should
8341    # okay in the real world where ";" in dirpaths is itself problematic.
8342    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8343  else
8344    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8345  fi
8346else
8347  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8348fi
8349need_lib_prefix=unknown
8350hardcode_into_libs=no
8351
8352# when you set need_version to no, make sure it does not cause -set_version
8353# flags to be left without arguments
8354need_version=unknown
8355
8356case $host_os in
8357aix3*)
8358  version_type=linux
8359  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8360  shlibpath_var=LIBPATH
8361
8362  # AIX 3 has no versioning support, so we append a major version to the name.
8363  soname_spec='${libname}${release}${shared_ext}$major'
8364  ;;
8365
8366aix4* | aix5*)
8367  version_type=linux
8368  need_lib_prefix=no
8369  need_version=no
8370  hardcode_into_libs=yes
8371  if test "$host_cpu" = ia64; then
8372    # AIX 5 supports IA64
8373    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8374    shlibpath_var=LD_LIBRARY_PATH
8375  else
8376    # With GCC up to 2.95.x, collect2 would create an import file
8377    # for dependence libraries.  The import file would start with
8378    # the line `#! .'.  This would cause the generated library to
8379    # depend on `.', always an invalid library.  This was fixed in
8380    # development snapshots of GCC prior to 3.0.
8381    case $host_os in
8382      aix4 | aix4.[01] | aix4.[01].*)
8383      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8384	   echo ' yes '
8385	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8386	:
8387      else
8388	can_build_shared=no
8389      fi
8390      ;;
8391    esac
8392    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8393    # soname into executable. Probably we can add versioning support to
8394    # collect2, so additional links can be useful in future.
8395    if test "$aix_use_runtimelinking" = yes; then
8396      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8397      # instead of lib<name>.a to let people know that these are not
8398      # typical AIX shared libraries.
8399      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8400    else
8401      # We preserve .a as extension for shared libraries through AIX4.2
8402      # and later when we are not doing run time linking.
8403      library_names_spec='${libname}${release}.a $libname.a'
8404      soname_spec='${libname}${release}${shared_ext}$major'
8405    fi
8406    shlibpath_var=LIBPATH
8407  fi
8408  ;;
8409
8410amigaos*)
8411  library_names_spec='$libname.ixlibrary $libname.a'
8412  # Create ${libname}_ixlibrary.a entries in /sys/libs.
8413  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'
8414  ;;
8415
8416beos*)
8417  library_names_spec='${libname}${shared_ext}'
8418  dynamic_linker="$host_os ld.so"
8419  shlibpath_var=LIBRARY_PATH
8420  ;;
8421
8422bsdi[45]*)
8423  version_type=linux
8424  need_version=no
8425  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8426  soname_spec='${libname}${release}${shared_ext}$major'
8427  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8428  shlibpath_var=LD_LIBRARY_PATH
8429  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8430  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8431  # the default ld.so.conf also contains /usr/contrib/lib and
8432  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8433  # libtool to hard-code these into programs
8434  ;;
8435
8436cygwin* | mingw* | pw32*)
8437  version_type=windows
8438  shrext_cmds=".dll"
8439  need_version=no
8440  need_lib_prefix=no
8441
8442  case $GCC,$host_os in
8443  yes,cygwin* | yes,mingw* | yes,pw32*)
8444    library_names_spec='$libname.dll.a'
8445    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8446    postinstall_cmds='base_file=`basename \${file}`~
8447      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8448      dldir=$destdir/`dirname \$dlpath`~
8449      test -d \$dldir || mkdir -p \$dldir~
8450      $install_prog $dir/$dlname \$dldir/$dlname~
8451      chmod a+x \$dldir/$dlname'
8452    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8453      dlpath=$dir/\$dldll~
8454       $rm \$dlpath'
8455    shlibpath_overrides_runpath=yes
8456
8457    case $host_os in
8458    cygwin*)
8459      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8460      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8461      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8462      ;;
8463    mingw*)
8464      # MinGW DLLs use traditional 'lib' prefix
8465      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8466      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8467      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8468        # It is most probably a Windows format PATH printed by
8469        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8470        # path with ; separators, and with drive letters. We can handle the
8471        # drive letters (cygwin fileutils understands them), so leave them,
8472        # especially as we might pass files found there to a mingw objdump,
8473        # which wouldn't understand a cygwinified path. Ahh.
8474        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8475      else
8476        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8477      fi
8478      ;;
8479    pw32*)
8480      # pw32 DLLs use 'pw' prefix rather than 'lib'
8481      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8482      ;;
8483    esac
8484    ;;
8485
8486  *)
8487    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8488    ;;
8489  esac
8490  dynamic_linker='Win32 ld.exe'
8491  # FIXME: first we should search . and the directory the executable is in
8492  shlibpath_var=PATH
8493  ;;
8494
8495darwin* | rhapsody*)
8496  dynamic_linker="$host_os dyld"
8497  version_type=darwin
8498  need_lib_prefix=no
8499  need_version=no
8500  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8501  soname_spec='${libname}${release}${major}$shared_ext'
8502  shlibpath_overrides_runpath=yes
8503  shlibpath_var=DYLD_LIBRARY_PATH
8504  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8505  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8506  if test "$GCC" = yes; then
8507    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"`
8508  else
8509    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8510  fi
8511  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8512  ;;
8513
8514dgux*)
8515  version_type=linux
8516  need_lib_prefix=no
8517  need_version=no
8518  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8519  soname_spec='${libname}${release}${shared_ext}$major'
8520  shlibpath_var=LD_LIBRARY_PATH
8521  ;;
8522
8523freebsd1*)
8524  dynamic_linker=no
8525  ;;
8526
8527kfreebsd*-gnu)
8528  version_type=linux
8529  need_lib_prefix=no
8530  need_version=no
8531  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8532  soname_spec='${libname}${release}${shared_ext}$major'
8533  shlibpath_var=LD_LIBRARY_PATH
8534  shlibpath_overrides_runpath=no
8535  hardcode_into_libs=yes
8536  dynamic_linker='GNU ld.so'
8537  ;;
8538
8539freebsd* | dragonfly*)
8540  # DragonFly does not have aout.  When/if they implement a new
8541  # versioning mechanism, adjust this.
8542  if test -x /usr/bin/objformat; then
8543    objformat=`/usr/bin/objformat`
8544  else
8545    case $host_os in
8546    freebsd[123]*) objformat=aout ;;
8547    *) objformat=elf ;;
8548    esac
8549  fi
8550  version_type=freebsd-$objformat
8551  case $version_type in
8552    freebsd-elf*)
8553      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8554      need_version=no
8555      need_lib_prefix=no
8556      ;;
8557    freebsd-*)
8558      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8559      need_version=yes
8560      ;;
8561  esac
8562  shlibpath_var=LD_LIBRARY_PATH
8563  case $host_os in
8564  freebsd2*)
8565    shlibpath_overrides_runpath=yes
8566    ;;
8567  freebsd3.[01]* | freebsdelf3.[01]*)
8568    shlibpath_overrides_runpath=yes
8569    hardcode_into_libs=yes
8570    ;;
8571  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8572  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8573    shlibpath_overrides_runpath=no
8574    hardcode_into_libs=yes
8575    ;;
8576  freebsd*) # from 4.6 on
8577    shlibpath_overrides_runpath=yes
8578    hardcode_into_libs=yes
8579    ;;
8580  esac
8581  ;;
8582
8583gnu*)
8584  version_type=linux
8585  need_lib_prefix=no
8586  need_version=no
8587  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8588  soname_spec='${libname}${release}${shared_ext}$major'
8589  shlibpath_var=LD_LIBRARY_PATH
8590  hardcode_into_libs=yes
8591  ;;
8592
8593hpux9* | hpux10* | hpux11*)
8594  # Give a soname corresponding to the major version so that dld.sl refuses to
8595  # link against other versions.
8596  version_type=sunos
8597  need_lib_prefix=no
8598  need_version=no
8599  case $host_cpu in
8600  ia64*)
8601    shrext_cmds='.so'
8602    hardcode_into_libs=yes
8603    dynamic_linker="$host_os dld.so"
8604    shlibpath_var=LD_LIBRARY_PATH
8605    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8606    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8607    soname_spec='${libname}${release}${shared_ext}$major'
8608    if test "X$HPUX_IA64_MODE" = X32; then
8609      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8610    else
8611      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8612    fi
8613    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8614    ;;
8615   hppa*64*)
8616     shrext_cmds='.sl'
8617     hardcode_into_libs=yes
8618     dynamic_linker="$host_os dld.sl"
8619     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8620     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8621     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8622     soname_spec='${libname}${release}${shared_ext}$major'
8623     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8624     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8625     ;;
8626   *)
8627    shrext_cmds='.sl'
8628    dynamic_linker="$host_os dld.sl"
8629    shlibpath_var=SHLIB_PATH
8630    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8631    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8632    soname_spec='${libname}${release}${shared_ext}$major'
8633    ;;
8634  esac
8635  # HP-UX runs *really* slowly unless shared libraries are mode 555.
8636  postinstall_cmds='chmod 555 $lib'
8637  ;;
8638
8639interix3*)
8640  version_type=linux
8641  need_lib_prefix=no
8642  need_version=no
8643  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8644  soname_spec='${libname}${release}${shared_ext}$major'
8645  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8646  shlibpath_var=LD_LIBRARY_PATH
8647  shlibpath_overrides_runpath=no
8648  hardcode_into_libs=yes
8649  ;;
8650
8651irix5* | irix6* | nonstopux*)
8652  case $host_os in
8653    nonstopux*) version_type=nonstopux ;;
8654    *)
8655	if test "$lt_cv_prog_gnu_ld" = yes; then
8656		version_type=linux
8657	else
8658		version_type=irix
8659	fi ;;
8660  esac
8661  need_lib_prefix=no
8662  need_version=no
8663  soname_spec='${libname}${release}${shared_ext}$major'
8664  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8665  case $host_os in
8666  irix5* | nonstopux*)
8667    libsuff= shlibsuff=
8668    ;;
8669  *)
8670    case $LD in # libtool.m4 will add one of these switches to LD
8671    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8672      libsuff= shlibsuff= libmagic=32-bit;;
8673    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8674      libsuff=32 shlibsuff=N32 libmagic=N32;;
8675    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8676      libsuff=64 shlibsuff=64 libmagic=64-bit;;
8677    *) libsuff= shlibsuff= libmagic=never-match;;
8678    esac
8679    ;;
8680  esac
8681  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8682  shlibpath_overrides_runpath=no
8683  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8684  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8685  hardcode_into_libs=yes
8686  ;;
8687
8688# No shared lib support for Linux oldld, aout, or coff.
8689linux*oldld* | linux*aout* | linux*coff*)
8690  dynamic_linker=no
8691  ;;
8692
8693# This must be Linux ELF.
8694linux*)
8695  version_type=linux
8696  need_lib_prefix=no
8697  need_version=no
8698  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8699  soname_spec='${libname}${release}${shared_ext}$major'
8700  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8701  shlibpath_var=LD_LIBRARY_PATH
8702  shlibpath_overrides_runpath=no
8703  # This implies no fast_install, which is unacceptable.
8704  # Some rework will be needed to allow for fast_install
8705  # before this can be enabled.
8706  hardcode_into_libs=yes
8707
8708  # find out which ABI we are using
8709  libsuff=
8710  case "$host_cpu" in
8711  x86_64*|s390x*|powerpc64*)
8712    echo '#line 8712 "configure"' > conftest.$ac_ext
8713    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8714  (eval $ac_compile) 2>&5
8715  ac_status=$?
8716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8717  (exit $ac_status); }; then
8718      case `/usr/bin/file conftest.$ac_objext` in
8719      *64-bit*)
8720        libsuff=64
8721        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
8722        ;;
8723      esac
8724    fi
8725    rm -rf conftest*
8726    ;;
8727  esac
8728
8729  # Append ld.so.conf contents to the search path
8730  if test -f /etc/ld.so.conf; then
8731    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8732    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
8733  fi
8734
8735  # We used to test for /lib/ld.so.1 and disable shared libraries on
8736  # powerpc, because MkLinux only supported shared libraries with the
8737  # GNU dynamic linker.  Since this was broken with cross compilers,
8738  # most powerpc-linux boxes support dynamic linking these days and
8739  # people can always --disable-shared, the test was removed, and we
8740  # assume the GNU/Linux dynamic linker is in use.
8741  dynamic_linker='GNU/Linux ld.so'
8742  ;;
8743
8744knetbsd*-gnu)
8745  version_type=linux
8746  need_lib_prefix=no
8747  need_version=no
8748  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8749  soname_spec='${libname}${release}${shared_ext}$major'
8750  shlibpath_var=LD_LIBRARY_PATH
8751  shlibpath_overrides_runpath=no
8752  hardcode_into_libs=yes
8753  dynamic_linker='GNU ld.so'
8754  ;;
8755
8756netbsd*)
8757  version_type=sunos
8758  need_lib_prefix=no
8759  need_version=no
8760  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8761    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8762    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8763    dynamic_linker='NetBSD (a.out) ld.so'
8764  else
8765    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8766    soname_spec='${libname}${release}${shared_ext}$major'
8767    dynamic_linker='NetBSD ld.elf_so'
8768  fi
8769  shlibpath_var=LD_LIBRARY_PATH
8770  shlibpath_overrides_runpath=yes
8771  hardcode_into_libs=yes
8772  ;;
8773
8774newsos6)
8775  version_type=linux
8776  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8777  shlibpath_var=LD_LIBRARY_PATH
8778  shlibpath_overrides_runpath=yes
8779  ;;
8780
8781nto-qnx*)
8782  version_type=linux
8783  need_lib_prefix=no
8784  need_version=no
8785  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8786  soname_spec='${libname}${release}${shared_ext}$major'
8787  shlibpath_var=LD_LIBRARY_PATH
8788  shlibpath_overrides_runpath=yes
8789  ;;
8790
8791openbsd*)
8792  version_type=sunos
8793  sys_lib_dlsearch_path_spec="/usr/lib"
8794  need_lib_prefix=no
8795  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8796  case $host_os in
8797    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8798    *)                         need_version=no  ;;
8799  esac
8800  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8801  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8802  shlibpath_var=LD_LIBRARY_PATH
8803  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8804    case $host_os in
8805      openbsd2.[89] | openbsd2.[89].*)
8806	shlibpath_overrides_runpath=no
8807	;;
8808      *)
8809	shlibpath_overrides_runpath=yes
8810	;;
8811      esac
8812  else
8813    shlibpath_overrides_runpath=yes
8814  fi
8815  ;;
8816
8817os2*)
8818  libname_spec='$name'
8819  shrext_cmds=".dll"
8820  need_lib_prefix=no
8821  library_names_spec='$libname${shared_ext} $libname.a'
8822  dynamic_linker='OS/2 ld.exe'
8823  shlibpath_var=LIBPATH
8824  ;;
8825
8826osf3* | osf4* | osf5*)
8827  version_type=osf
8828  need_lib_prefix=no
8829  need_version=no
8830  soname_spec='${libname}${release}${shared_ext}$major'
8831  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8832  shlibpath_var=LD_LIBRARY_PATH
8833  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8834  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8835  ;;
8836
8837solaris*)
8838  version_type=linux
8839  need_lib_prefix=no
8840  need_version=no
8841  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8842  soname_spec='${libname}${release}${shared_ext}$major'
8843  shlibpath_var=LD_LIBRARY_PATH
8844  shlibpath_overrides_runpath=yes
8845  hardcode_into_libs=yes
8846  # ldd complains unless libraries are executable
8847  postinstall_cmds='chmod +x $lib'
8848  ;;
8849
8850sunos4*)
8851  version_type=sunos
8852  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8853  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8854  shlibpath_var=LD_LIBRARY_PATH
8855  shlibpath_overrides_runpath=yes
8856  if test "$with_gnu_ld" = yes; then
8857    need_lib_prefix=no
8858  fi
8859  need_version=yes
8860  ;;
8861
8862sysv4 | sysv4.3*)
8863  version_type=linux
8864  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8865  soname_spec='${libname}${release}${shared_ext}$major'
8866  shlibpath_var=LD_LIBRARY_PATH
8867  case $host_vendor in
8868    sni)
8869      shlibpath_overrides_runpath=no
8870      need_lib_prefix=no
8871      export_dynamic_flag_spec='${wl}-Blargedynsym'
8872      runpath_var=LD_RUN_PATH
8873      ;;
8874    siemens)
8875      need_lib_prefix=no
8876      ;;
8877    motorola)
8878      need_lib_prefix=no
8879      need_version=no
8880      shlibpath_overrides_runpath=no
8881      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8882      ;;
8883  esac
8884  ;;
8885
8886sysv4*MP*)
8887  if test -d /usr/nec ;then
8888    version_type=linux
8889    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8890    soname_spec='$libname${shared_ext}.$major'
8891    shlibpath_var=LD_LIBRARY_PATH
8892  fi
8893  ;;
8894
8895sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8896  version_type=freebsd-elf
8897  need_lib_prefix=no
8898  need_version=no
8899  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8900  soname_spec='${libname}${release}${shared_ext}$major'
8901  shlibpath_var=LD_LIBRARY_PATH
8902  hardcode_into_libs=yes
8903  if test "$with_gnu_ld" = yes; then
8904    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8905    shlibpath_overrides_runpath=no
8906  else
8907    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8908    shlibpath_overrides_runpath=yes
8909    case $host_os in
8910      sco3.2v5*)
8911        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8912	;;
8913    esac
8914  fi
8915  sys_lib_dlsearch_path_spec='/usr/lib'
8916  ;;
8917
8918uts4*)
8919  version_type=linux
8920  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8921  soname_spec='${libname}${release}${shared_ext}$major'
8922  shlibpath_var=LD_LIBRARY_PATH
8923  ;;
8924
8925*)
8926  dynamic_linker=no
8927  ;;
8928esac
8929echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8930echo "${ECHO_T}$dynamic_linker" >&6
8931test "$dynamic_linker" = no && can_build_shared=no
8932
8933variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8934if test "$GCC" = yes; then
8935  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8936fi
8937
8938echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8939echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8940hardcode_action=
8941if test -n "$hardcode_libdir_flag_spec" || \
8942   test -n "$runpath_var" || \
8943   test "X$hardcode_automatic" = "Xyes" ; then
8944
8945  # We can hardcode non-existant directories.
8946  if test "$hardcode_direct" != no &&
8947     # If the only mechanism to avoid hardcoding is shlibpath_var, we
8948     # have to relink, otherwise we might link with an installed library
8949     # when we should be linking with a yet-to-be-installed one
8950     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8951     test "$hardcode_minus_L" != no; then
8952    # Linking always hardcodes the temporary library directory.
8953    hardcode_action=relink
8954  else
8955    # We can link without hardcoding, and we can hardcode nonexisting dirs.
8956    hardcode_action=immediate
8957  fi
8958else
8959  # We cannot hardcode anything, or else we can only hardcode existing
8960  # directories.
8961  hardcode_action=unsupported
8962fi
8963echo "$as_me:$LINENO: result: $hardcode_action" >&5
8964echo "${ECHO_T}$hardcode_action" >&6
8965
8966if test "$hardcode_action" = relink; then
8967  # Fast installation is not supported
8968  enable_fast_install=no
8969elif test "$shlibpath_overrides_runpath" = yes ||
8970     test "$enable_shared" = no; then
8971  # Fast installation is not necessary
8972  enable_fast_install=needless
8973fi
8974
8975striplib=
8976old_striplib=
8977echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8978echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8979if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8980  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8981  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8982  echo "$as_me:$LINENO: result: yes" >&5
8983echo "${ECHO_T}yes" >&6
8984else
8985# FIXME - insert some real tests, host_os isn't really good enough
8986  case $host_os in
8987   darwin*)
8988       if test -n "$STRIP" ; then
8989         striplib="$STRIP -x"
8990         echo "$as_me:$LINENO: result: yes" >&5
8991echo "${ECHO_T}yes" >&6
8992       else
8993  echo "$as_me:$LINENO: result: no" >&5
8994echo "${ECHO_T}no" >&6
8995fi
8996       ;;
8997   *)
8998  echo "$as_me:$LINENO: result: no" >&5
8999echo "${ECHO_T}no" >&6
9000    ;;
9001  esac
9002fi
9003
9004if test "x$enable_dlopen" != xyes; then
9005  enable_dlopen=unknown
9006  enable_dlopen_self=unknown
9007  enable_dlopen_self_static=unknown
9008else
9009  lt_cv_dlopen=no
9010  lt_cv_dlopen_libs=
9011
9012  case $host_os in
9013  beos*)
9014    lt_cv_dlopen="load_add_on"
9015    lt_cv_dlopen_libs=
9016    lt_cv_dlopen_self=yes
9017    ;;
9018
9019  mingw* | pw32*)
9020    lt_cv_dlopen="LoadLibrary"
9021    lt_cv_dlopen_libs=
9022   ;;
9023
9024  cygwin*)
9025    lt_cv_dlopen="dlopen"
9026    lt_cv_dlopen_libs=
9027   ;;
9028
9029  darwin*)
9030  # if libdl is installed we need to link against it
9031    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9032echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9033if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9034  echo $ECHO_N "(cached) $ECHO_C" >&6
9035else
9036  ac_check_lib_save_LIBS=$LIBS
9037LIBS="-ldl  $LIBS"
9038cat >conftest.$ac_ext <<_ACEOF
9039/* confdefs.h.  */
9040_ACEOF
9041cat confdefs.h >>conftest.$ac_ext
9042cat >>conftest.$ac_ext <<_ACEOF
9043/* end confdefs.h.  */
9044
9045/* Override any gcc2 internal prototype to avoid an error.  */
9046#ifdef __cplusplus
9047extern "C"
9048#endif
9049/* We use char because int might match the return type of a gcc2
9050   builtin and then its argument prototype would still apply.  */
9051char dlopen ();
9052int
9053main ()
9054{
9055dlopen ();
9056  ;
9057  return 0;
9058}
9059_ACEOF
9060rm -f conftest.$ac_objext conftest$ac_exeext
9061if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9062  (eval $ac_link) 2>conftest.er1
9063  ac_status=$?
9064  grep -v '^ *+' conftest.er1 >conftest.err
9065  rm -f conftest.er1
9066  cat conftest.err >&5
9067  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9068  (exit $ac_status); } &&
9069	 { ac_try='test -z "$ac_c_werror_flag"
9070			 || test ! -s conftest.err'
9071  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9072  (eval $ac_try) 2>&5
9073  ac_status=$?
9074  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9075  (exit $ac_status); }; } &&
9076	 { ac_try='test -s conftest$ac_exeext'
9077  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9078  (eval $ac_try) 2>&5
9079  ac_status=$?
9080  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9081  (exit $ac_status); }; }; then
9082  ac_cv_lib_dl_dlopen=yes
9083else
9084  echo "$as_me: failed program was:" >&5
9085sed 's/^/| /' conftest.$ac_ext >&5
9086
9087ac_cv_lib_dl_dlopen=no
9088fi
9089rm -f conftest.err conftest.$ac_objext \
9090      conftest$ac_exeext conftest.$ac_ext
9091LIBS=$ac_check_lib_save_LIBS
9092fi
9093echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9094echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9095if test $ac_cv_lib_dl_dlopen = yes; then
9096  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9097else
9098
9099    lt_cv_dlopen="dyld"
9100    lt_cv_dlopen_libs=
9101    lt_cv_dlopen_self=yes
9102
9103fi
9104
9105   ;;
9106
9107  *)
9108    echo "$as_me:$LINENO: checking for shl_load" >&5
9109echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9110if test "${ac_cv_func_shl_load+set}" = set; then
9111  echo $ECHO_N "(cached) $ECHO_C" >&6
9112else
9113  cat >conftest.$ac_ext <<_ACEOF
9114/* confdefs.h.  */
9115_ACEOF
9116cat confdefs.h >>conftest.$ac_ext
9117cat >>conftest.$ac_ext <<_ACEOF
9118/* end confdefs.h.  */
9119/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9120   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9121#define shl_load innocuous_shl_load
9122
9123/* System header to define __stub macros and hopefully few prototypes,
9124    which can conflict with char shl_load (); below.
9125    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9126    <limits.h> exists even on freestanding compilers.  */
9127
9128#ifdef __STDC__
9129# include <limits.h>
9130#else
9131# include <assert.h>
9132#endif
9133
9134#undef shl_load
9135
9136/* Override any gcc2 internal prototype to avoid an error.  */
9137#ifdef __cplusplus
9138extern "C"
9139{
9140#endif
9141/* We use char because int might match the return type of a gcc2
9142   builtin and then its argument prototype would still apply.  */
9143char shl_load ();
9144/* The GNU C library defines this for functions which it implements
9145    to always fail with ENOSYS.  Some functions are actually named
9146    something starting with __ and the normal name is an alias.  */
9147#if defined (__stub_shl_load) || defined (__stub___shl_load)
9148choke me
9149#else
9150char (*f) () = shl_load;
9151#endif
9152#ifdef __cplusplus
9153}
9154#endif
9155
9156int
9157main ()
9158{
9159return f != shl_load;
9160  ;
9161  return 0;
9162}
9163_ACEOF
9164rm -f conftest.$ac_objext conftest$ac_exeext
9165if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9166  (eval $ac_link) 2>conftest.er1
9167  ac_status=$?
9168  grep -v '^ *+' conftest.er1 >conftest.err
9169  rm -f conftest.er1
9170  cat conftest.err >&5
9171  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9172  (exit $ac_status); } &&
9173	 { ac_try='test -z "$ac_c_werror_flag"
9174			 || test ! -s conftest.err'
9175  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9176  (eval $ac_try) 2>&5
9177  ac_status=$?
9178  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9179  (exit $ac_status); }; } &&
9180	 { ac_try='test -s conftest$ac_exeext'
9181  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9182  (eval $ac_try) 2>&5
9183  ac_status=$?
9184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9185  (exit $ac_status); }; }; then
9186  ac_cv_func_shl_load=yes
9187else
9188  echo "$as_me: failed program was:" >&5
9189sed 's/^/| /' conftest.$ac_ext >&5
9190
9191ac_cv_func_shl_load=no
9192fi
9193rm -f conftest.err conftest.$ac_objext \
9194      conftest$ac_exeext conftest.$ac_ext
9195fi
9196echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9197echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9198if test $ac_cv_func_shl_load = yes; then
9199  lt_cv_dlopen="shl_load"
9200else
9201  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9202echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9203if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9204  echo $ECHO_N "(cached) $ECHO_C" >&6
9205else
9206  ac_check_lib_save_LIBS=$LIBS
9207LIBS="-ldld  $LIBS"
9208cat >conftest.$ac_ext <<_ACEOF
9209/* confdefs.h.  */
9210_ACEOF
9211cat confdefs.h >>conftest.$ac_ext
9212cat >>conftest.$ac_ext <<_ACEOF
9213/* end confdefs.h.  */
9214
9215/* Override any gcc2 internal prototype to avoid an error.  */
9216#ifdef __cplusplus
9217extern "C"
9218#endif
9219/* We use char because int might match the return type of a gcc2
9220   builtin and then its argument prototype would still apply.  */
9221char shl_load ();
9222int
9223main ()
9224{
9225shl_load ();
9226  ;
9227  return 0;
9228}
9229_ACEOF
9230rm -f conftest.$ac_objext conftest$ac_exeext
9231if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9232  (eval $ac_link) 2>conftest.er1
9233  ac_status=$?
9234  grep -v '^ *+' conftest.er1 >conftest.err
9235  rm -f conftest.er1
9236  cat conftest.err >&5
9237  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9238  (exit $ac_status); } &&
9239	 { ac_try='test -z "$ac_c_werror_flag"
9240			 || test ! -s conftest.err'
9241  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9242  (eval $ac_try) 2>&5
9243  ac_status=$?
9244  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9245  (exit $ac_status); }; } &&
9246	 { ac_try='test -s conftest$ac_exeext'
9247  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9248  (eval $ac_try) 2>&5
9249  ac_status=$?
9250  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9251  (exit $ac_status); }; }; then
9252  ac_cv_lib_dld_shl_load=yes
9253else
9254  echo "$as_me: failed program was:" >&5
9255sed 's/^/| /' conftest.$ac_ext >&5
9256
9257ac_cv_lib_dld_shl_load=no
9258fi
9259rm -f conftest.err conftest.$ac_objext \
9260      conftest$ac_exeext conftest.$ac_ext
9261LIBS=$ac_check_lib_save_LIBS
9262fi
9263echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9264echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9265if test $ac_cv_lib_dld_shl_load = yes; then
9266  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9267else
9268  echo "$as_me:$LINENO: checking for dlopen" >&5
9269echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9270if test "${ac_cv_func_dlopen+set}" = set; then
9271  echo $ECHO_N "(cached) $ECHO_C" >&6
9272else
9273  cat >conftest.$ac_ext <<_ACEOF
9274/* confdefs.h.  */
9275_ACEOF
9276cat confdefs.h >>conftest.$ac_ext
9277cat >>conftest.$ac_ext <<_ACEOF
9278/* end confdefs.h.  */
9279/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9280   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9281#define dlopen innocuous_dlopen
9282
9283/* System header to define __stub macros and hopefully few prototypes,
9284    which can conflict with char dlopen (); below.
9285    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9286    <limits.h> exists even on freestanding compilers.  */
9287
9288#ifdef __STDC__
9289# include <limits.h>
9290#else
9291# include <assert.h>
9292#endif
9293
9294#undef dlopen
9295
9296/* Override any gcc2 internal prototype to avoid an error.  */
9297#ifdef __cplusplus
9298extern "C"
9299{
9300#endif
9301/* We use char because int might match the return type of a gcc2
9302   builtin and then its argument prototype would still apply.  */
9303char dlopen ();
9304/* The GNU C library defines this for functions which it implements
9305    to always fail with ENOSYS.  Some functions are actually named
9306    something starting with __ and the normal name is an alias.  */
9307#if defined (__stub_dlopen) || defined (__stub___dlopen)
9308choke me
9309#else
9310char (*f) () = dlopen;
9311#endif
9312#ifdef __cplusplus
9313}
9314#endif
9315
9316int
9317main ()
9318{
9319return f != dlopen;
9320  ;
9321  return 0;
9322}
9323_ACEOF
9324rm -f conftest.$ac_objext conftest$ac_exeext
9325if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9326  (eval $ac_link) 2>conftest.er1
9327  ac_status=$?
9328  grep -v '^ *+' conftest.er1 >conftest.err
9329  rm -f conftest.er1
9330  cat conftest.err >&5
9331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9332  (exit $ac_status); } &&
9333	 { ac_try='test -z "$ac_c_werror_flag"
9334			 || test ! -s conftest.err'
9335  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9336  (eval $ac_try) 2>&5
9337  ac_status=$?
9338  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9339  (exit $ac_status); }; } &&
9340	 { ac_try='test -s conftest$ac_exeext'
9341  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9342  (eval $ac_try) 2>&5
9343  ac_status=$?
9344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9345  (exit $ac_status); }; }; then
9346  ac_cv_func_dlopen=yes
9347else
9348  echo "$as_me: failed program was:" >&5
9349sed 's/^/| /' conftest.$ac_ext >&5
9350
9351ac_cv_func_dlopen=no
9352fi
9353rm -f conftest.err conftest.$ac_objext \
9354      conftest$ac_exeext conftest.$ac_ext
9355fi
9356echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9357echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9358if test $ac_cv_func_dlopen = yes; then
9359  lt_cv_dlopen="dlopen"
9360else
9361  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9362echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9363if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9364  echo $ECHO_N "(cached) $ECHO_C" >&6
9365else
9366  ac_check_lib_save_LIBS=$LIBS
9367LIBS="-ldl  $LIBS"
9368cat >conftest.$ac_ext <<_ACEOF
9369/* confdefs.h.  */
9370_ACEOF
9371cat confdefs.h >>conftest.$ac_ext
9372cat >>conftest.$ac_ext <<_ACEOF
9373/* end confdefs.h.  */
9374
9375/* Override any gcc2 internal prototype to avoid an error.  */
9376#ifdef __cplusplus
9377extern "C"
9378#endif
9379/* We use char because int might match the return type of a gcc2
9380   builtin and then its argument prototype would still apply.  */
9381char dlopen ();
9382int
9383main ()
9384{
9385dlopen ();
9386  ;
9387  return 0;
9388}
9389_ACEOF
9390rm -f conftest.$ac_objext conftest$ac_exeext
9391if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9392  (eval $ac_link) 2>conftest.er1
9393  ac_status=$?
9394  grep -v '^ *+' conftest.er1 >conftest.err
9395  rm -f conftest.er1
9396  cat conftest.err >&5
9397  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9398  (exit $ac_status); } &&
9399	 { ac_try='test -z "$ac_c_werror_flag"
9400			 || test ! -s conftest.err'
9401  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9402  (eval $ac_try) 2>&5
9403  ac_status=$?
9404  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9405  (exit $ac_status); }; } &&
9406	 { ac_try='test -s conftest$ac_exeext'
9407  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9408  (eval $ac_try) 2>&5
9409  ac_status=$?
9410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9411  (exit $ac_status); }; }; then
9412  ac_cv_lib_dl_dlopen=yes
9413else
9414  echo "$as_me: failed program was:" >&5
9415sed 's/^/| /' conftest.$ac_ext >&5
9416
9417ac_cv_lib_dl_dlopen=no
9418fi
9419rm -f conftest.err conftest.$ac_objext \
9420      conftest$ac_exeext conftest.$ac_ext
9421LIBS=$ac_check_lib_save_LIBS
9422fi
9423echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9424echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9425if test $ac_cv_lib_dl_dlopen = yes; then
9426  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9427else
9428  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9429echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9430if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9431  echo $ECHO_N "(cached) $ECHO_C" >&6
9432else
9433  ac_check_lib_save_LIBS=$LIBS
9434LIBS="-lsvld  $LIBS"
9435cat >conftest.$ac_ext <<_ACEOF
9436/* confdefs.h.  */
9437_ACEOF
9438cat confdefs.h >>conftest.$ac_ext
9439cat >>conftest.$ac_ext <<_ACEOF
9440/* end confdefs.h.  */
9441
9442/* Override any gcc2 internal prototype to avoid an error.  */
9443#ifdef __cplusplus
9444extern "C"
9445#endif
9446/* We use char because int might match the return type of a gcc2
9447   builtin and then its argument prototype would still apply.  */
9448char dlopen ();
9449int
9450main ()
9451{
9452dlopen ();
9453  ;
9454  return 0;
9455}
9456_ACEOF
9457rm -f conftest.$ac_objext conftest$ac_exeext
9458if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9459  (eval $ac_link) 2>conftest.er1
9460  ac_status=$?
9461  grep -v '^ *+' conftest.er1 >conftest.err
9462  rm -f conftest.er1
9463  cat conftest.err >&5
9464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9465  (exit $ac_status); } &&
9466	 { ac_try='test -z "$ac_c_werror_flag"
9467			 || test ! -s conftest.err'
9468  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9469  (eval $ac_try) 2>&5
9470  ac_status=$?
9471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9472  (exit $ac_status); }; } &&
9473	 { ac_try='test -s conftest$ac_exeext'
9474  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9475  (eval $ac_try) 2>&5
9476  ac_status=$?
9477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9478  (exit $ac_status); }; }; then
9479  ac_cv_lib_svld_dlopen=yes
9480else
9481  echo "$as_me: failed program was:" >&5
9482sed 's/^/| /' conftest.$ac_ext >&5
9483
9484ac_cv_lib_svld_dlopen=no
9485fi
9486rm -f conftest.err conftest.$ac_objext \
9487      conftest$ac_exeext conftest.$ac_ext
9488LIBS=$ac_check_lib_save_LIBS
9489fi
9490echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9491echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9492if test $ac_cv_lib_svld_dlopen = yes; then
9493  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9494else
9495  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9496echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9497if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9498  echo $ECHO_N "(cached) $ECHO_C" >&6
9499else
9500  ac_check_lib_save_LIBS=$LIBS
9501LIBS="-ldld  $LIBS"
9502cat >conftest.$ac_ext <<_ACEOF
9503/* confdefs.h.  */
9504_ACEOF
9505cat confdefs.h >>conftest.$ac_ext
9506cat >>conftest.$ac_ext <<_ACEOF
9507/* end confdefs.h.  */
9508
9509/* Override any gcc2 internal prototype to avoid an error.  */
9510#ifdef __cplusplus
9511extern "C"
9512#endif
9513/* We use char because int might match the return type of a gcc2
9514   builtin and then its argument prototype would still apply.  */
9515char dld_link ();
9516int
9517main ()
9518{
9519dld_link ();
9520  ;
9521  return 0;
9522}
9523_ACEOF
9524rm -f conftest.$ac_objext conftest$ac_exeext
9525if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9526  (eval $ac_link) 2>conftest.er1
9527  ac_status=$?
9528  grep -v '^ *+' conftest.er1 >conftest.err
9529  rm -f conftest.er1
9530  cat conftest.err >&5
9531  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9532  (exit $ac_status); } &&
9533	 { ac_try='test -z "$ac_c_werror_flag"
9534			 || test ! -s conftest.err'
9535  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9536  (eval $ac_try) 2>&5
9537  ac_status=$?
9538  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9539  (exit $ac_status); }; } &&
9540	 { ac_try='test -s conftest$ac_exeext'
9541  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9542  (eval $ac_try) 2>&5
9543  ac_status=$?
9544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9545  (exit $ac_status); }; }; then
9546  ac_cv_lib_dld_dld_link=yes
9547else
9548  echo "$as_me: failed program was:" >&5
9549sed 's/^/| /' conftest.$ac_ext >&5
9550
9551ac_cv_lib_dld_dld_link=no
9552fi
9553rm -f conftest.err conftest.$ac_objext \
9554      conftest$ac_exeext conftest.$ac_ext
9555LIBS=$ac_check_lib_save_LIBS
9556fi
9557echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9558echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9559if test $ac_cv_lib_dld_dld_link = yes; then
9560  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9561fi
9562
9563
9564fi
9565
9566
9567fi
9568
9569
9570fi
9571
9572
9573fi
9574
9575
9576fi
9577
9578    ;;
9579  esac
9580
9581  if test "x$lt_cv_dlopen" != xno; then
9582    enable_dlopen=yes
9583  else
9584    enable_dlopen=no
9585  fi
9586
9587  case $lt_cv_dlopen in
9588  dlopen)
9589    save_CPPFLAGS="$CPPFLAGS"
9590    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9591
9592    save_LDFLAGS="$LDFLAGS"
9593    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9594
9595    save_LIBS="$LIBS"
9596    LIBS="$lt_cv_dlopen_libs $LIBS"
9597
9598    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9599echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9600if test "${lt_cv_dlopen_self+set}" = set; then
9601  echo $ECHO_N "(cached) $ECHO_C" >&6
9602else
9603  	  if test "$cross_compiling" = yes; then :
9604  lt_cv_dlopen_self=cross
9605else
9606  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9607  lt_status=$lt_dlunknown
9608  cat > conftest.$ac_ext <<EOF
9609#line 9609 "configure"
9610#include "confdefs.h"
9611
9612#if HAVE_DLFCN_H
9613#include <dlfcn.h>
9614#endif
9615
9616#include <stdio.h>
9617
9618#ifdef RTLD_GLOBAL
9619#  define LT_DLGLOBAL		RTLD_GLOBAL
9620#else
9621#  ifdef DL_GLOBAL
9622#    define LT_DLGLOBAL		DL_GLOBAL
9623#  else
9624#    define LT_DLGLOBAL		0
9625#  endif
9626#endif
9627
9628/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9629   find out it does not work in some platform. */
9630#ifndef LT_DLLAZY_OR_NOW
9631#  ifdef RTLD_LAZY
9632#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9633#  else
9634#    ifdef DL_LAZY
9635#      define LT_DLLAZY_OR_NOW		DL_LAZY
9636#    else
9637#      ifdef RTLD_NOW
9638#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9639#      else
9640#        ifdef DL_NOW
9641#          define LT_DLLAZY_OR_NOW	DL_NOW
9642#        else
9643#          define LT_DLLAZY_OR_NOW	0
9644#        endif
9645#      endif
9646#    endif
9647#  endif
9648#endif
9649
9650#ifdef __cplusplus
9651extern "C" void exit (int);
9652#endif
9653
9654void fnord() { int i=42;}
9655int main ()
9656{
9657  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9658  int status = $lt_dlunknown;
9659
9660  if (self)
9661    {
9662      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9663      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9664      /* dlclose (self); */
9665    }
9666  else
9667    puts (dlerror ());
9668
9669    exit (status);
9670}
9671EOF
9672  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9673  (eval $ac_link) 2>&5
9674  ac_status=$?
9675  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9676  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9677    (./conftest; exit; ) >&5 2>/dev/null
9678    lt_status=$?
9679    case x$lt_status in
9680      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9681      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9682      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9683    esac
9684  else :
9685    # compilation failed
9686    lt_cv_dlopen_self=no
9687  fi
9688fi
9689rm -fr conftest*
9690
9691
9692fi
9693echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9694echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9695
9696    if test "x$lt_cv_dlopen_self" = xyes; then
9697      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9698      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9699echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9700if test "${lt_cv_dlopen_self_static+set}" = set; then
9701  echo $ECHO_N "(cached) $ECHO_C" >&6
9702else
9703  	  if test "$cross_compiling" = yes; then :
9704  lt_cv_dlopen_self_static=cross
9705else
9706  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9707  lt_status=$lt_dlunknown
9708  cat > conftest.$ac_ext <<EOF
9709#line 9709 "configure"
9710#include "confdefs.h"
9711
9712#if HAVE_DLFCN_H
9713#include <dlfcn.h>
9714#endif
9715
9716#include <stdio.h>
9717
9718#ifdef RTLD_GLOBAL
9719#  define LT_DLGLOBAL		RTLD_GLOBAL
9720#else
9721#  ifdef DL_GLOBAL
9722#    define LT_DLGLOBAL		DL_GLOBAL
9723#  else
9724#    define LT_DLGLOBAL		0
9725#  endif
9726#endif
9727
9728/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9729   find out it does not work in some platform. */
9730#ifndef LT_DLLAZY_OR_NOW
9731#  ifdef RTLD_LAZY
9732#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9733#  else
9734#    ifdef DL_LAZY
9735#      define LT_DLLAZY_OR_NOW		DL_LAZY
9736#    else
9737#      ifdef RTLD_NOW
9738#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9739#      else
9740#        ifdef DL_NOW
9741#          define LT_DLLAZY_OR_NOW	DL_NOW
9742#        else
9743#          define LT_DLLAZY_OR_NOW	0
9744#        endif
9745#      endif
9746#    endif
9747#  endif
9748#endif
9749
9750#ifdef __cplusplus
9751extern "C" void exit (int);
9752#endif
9753
9754void fnord() { int i=42;}
9755int main ()
9756{
9757  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9758  int status = $lt_dlunknown;
9759
9760  if (self)
9761    {
9762      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9763      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9764      /* dlclose (self); */
9765    }
9766  else
9767    puts (dlerror ());
9768
9769    exit (status);
9770}
9771EOF
9772  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9773  (eval $ac_link) 2>&5
9774  ac_status=$?
9775  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9776  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9777    (./conftest; exit; ) >&5 2>/dev/null
9778    lt_status=$?
9779    case x$lt_status in
9780      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9781      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9782      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9783    esac
9784  else :
9785    # compilation failed
9786    lt_cv_dlopen_self_static=no
9787  fi
9788fi
9789rm -fr conftest*
9790
9791
9792fi
9793echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9794echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9795    fi
9796
9797    CPPFLAGS="$save_CPPFLAGS"
9798    LDFLAGS="$save_LDFLAGS"
9799    LIBS="$save_LIBS"
9800    ;;
9801  esac
9802
9803  case $lt_cv_dlopen_self in
9804  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9805  *) enable_dlopen_self=unknown ;;
9806  esac
9807
9808  case $lt_cv_dlopen_self_static in
9809  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9810  *) enable_dlopen_self_static=unknown ;;
9811  esac
9812fi
9813
9814
9815# Report which library types will actually be built
9816echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9817echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9818echo "$as_me:$LINENO: result: $can_build_shared" >&5
9819echo "${ECHO_T}$can_build_shared" >&6
9820
9821echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9822echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9823test "$can_build_shared" = "no" && enable_shared=no
9824
9825# On AIX, shared libraries and static libraries use the same namespace, and
9826# are all built from PIC.
9827case $host_os in
9828aix3*)
9829  test "$enable_shared" = yes && enable_static=no
9830  if test -n "$RANLIB"; then
9831    archive_cmds="$archive_cmds~\$RANLIB \$lib"
9832    postinstall_cmds='$RANLIB $lib'
9833  fi
9834  ;;
9835
9836aix4* | aix5*)
9837  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9838    test "$enable_shared" = yes && enable_static=no
9839  fi
9840    ;;
9841esac
9842echo "$as_me:$LINENO: result: $enable_shared" >&5
9843echo "${ECHO_T}$enable_shared" >&6
9844
9845echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9846echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9847# Make sure either enable_shared or enable_static is yes.
9848test "$enable_shared" = yes || enable_static=yes
9849echo "$as_me:$LINENO: result: $enable_static" >&5
9850echo "${ECHO_T}$enable_static" >&6
9851
9852# The else clause should only fire when bootstrapping the
9853# libtool distribution, otherwise you forgot to ship ltmain.sh
9854# with your package, and you will get complaints that there are
9855# no rules to generate ltmain.sh.
9856if test -f "$ltmain"; then
9857  # See if we are running on zsh, and set the options which allow our commands through
9858  # without removal of \ escapes.
9859  if test -n "${ZSH_VERSION+set}" ; then
9860    setopt NO_GLOB_SUBST
9861  fi
9862  # Now quote all the things that may contain metacharacters while being
9863  # careful not to overquote the AC_SUBSTed values.  We take copies of the
9864  # variables and quote the copies for generation of the libtool script.
9865  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9866    SED SHELL STRIP \
9867    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9868    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9869    deplibs_check_method reload_flag reload_cmds need_locks \
9870    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9871    lt_cv_sys_global_symbol_to_c_name_address \
9872    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9873    old_postinstall_cmds old_postuninstall_cmds \
9874    compiler \
9875    CC \
9876    LD \
9877    lt_prog_compiler_wl \
9878    lt_prog_compiler_pic \
9879    lt_prog_compiler_static \
9880    lt_prog_compiler_no_builtin_flag \
9881    export_dynamic_flag_spec \
9882    thread_safe_flag_spec \
9883    whole_archive_flag_spec \
9884    enable_shared_with_static_runtimes \
9885    old_archive_cmds \
9886    old_archive_from_new_cmds \
9887    predep_objects \
9888    postdep_objects \
9889    predeps \
9890    postdeps \
9891    compiler_lib_search_path \
9892    archive_cmds \
9893    archive_expsym_cmds \
9894    postinstall_cmds \
9895    postuninstall_cmds \
9896    old_archive_from_expsyms_cmds \
9897    allow_undefined_flag \
9898    no_undefined_flag \
9899    export_symbols_cmds \
9900    hardcode_libdir_flag_spec \
9901    hardcode_libdir_flag_spec_ld \
9902    hardcode_libdir_separator \
9903    hardcode_automatic \
9904    module_cmds \
9905    module_expsym_cmds \
9906    lt_cv_prog_compiler_c_o \
9907    exclude_expsyms \
9908    include_expsyms; do
9909
9910    case $var in
9911    old_archive_cmds | \
9912    old_archive_from_new_cmds | \
9913    archive_cmds | \
9914    archive_expsym_cmds | \
9915    module_cmds | \
9916    module_expsym_cmds | \
9917    old_archive_from_expsyms_cmds | \
9918    export_symbols_cmds | \
9919    extract_expsyms_cmds | reload_cmds | finish_cmds | \
9920    postinstall_cmds | postuninstall_cmds | \
9921    old_postinstall_cmds | old_postuninstall_cmds | \
9922    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9923      # Double-quote double-evaled strings.
9924      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9925      ;;
9926    *)
9927      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9928      ;;
9929    esac
9930  done
9931
9932  case $lt_echo in
9933  *'\$0 --fallback-echo"')
9934    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9935    ;;
9936  esac
9937
9938cfgfile="${ofile}T"
9939  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9940  $rm -f "$cfgfile"
9941  { echo "$as_me:$LINENO: creating $ofile" >&5
9942echo "$as_me: creating $ofile" >&6;}
9943
9944  cat <<__EOF__ >> "$cfgfile"
9945#! $SHELL
9946
9947# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9948# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9949# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9950#
9951# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9952# Free Software Foundation, Inc.
9953#
9954# This file is part of GNU Libtool:
9955# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9956#
9957# This program is free software; you can redistribute it and/or modify
9958# it under the terms of the GNU General Public License as published by
9959# the Free Software Foundation; either version 2 of the License, or
9960# (at your option) any later version.
9961#
9962# This program is distributed in the hope that it will be useful, but
9963# WITHOUT ANY WARRANTY; without even the implied warranty of
9964# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9965# General Public License for more details.
9966#
9967# You should have received a copy of the GNU General Public License
9968# along with this program; if not, write to the Free Software
9969# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9970#
9971# As a special exception to the GNU General Public License, if you
9972# distribute this file as part of a program that contains a
9973# configuration script generated by Autoconf, you may include it under
9974# the same distribution terms that you use for the rest of that program.
9975
9976# A sed program that does not truncate output.
9977SED=$lt_SED
9978
9979# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9980Xsed="$SED -e 1s/^X//"
9981
9982# The HP-UX ksh and POSIX shell print the target directory to stdout
9983# if CDPATH is set.
9984(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9985
9986# The names of the tagged configurations supported by this script.
9987available_tags=
9988
9989# ### BEGIN LIBTOOL CONFIG
9990
9991# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9992
9993# Shell to use when invoking shell scripts.
9994SHELL=$lt_SHELL
9995
9996# Whether or not to build shared libraries.
9997build_libtool_libs=$enable_shared
9998
9999# Whether or not to build static libraries.
10000build_old_libs=$enable_static
10001
10002# Whether or not to add -lc for building shared libraries.
10003build_libtool_need_lc=$archive_cmds_need_lc
10004
10005# Whether or not to disallow shared libs when runtime libs are static
10006allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10007
10008# Whether or not to optimize for fast installation.
10009fast_install=$enable_fast_install
10010
10011# The host system.
10012host_alias=$host_alias
10013host=$host
10014host_os=$host_os
10015
10016# The build system.
10017build_alias=$build_alias
10018build=$build
10019build_os=$build_os
10020
10021# An echo program that does not interpret backslashes.
10022echo=$lt_echo
10023
10024# The archiver.
10025AR=$lt_AR
10026AR_FLAGS=$lt_AR_FLAGS
10027
10028# A C compiler.
10029LTCC=$lt_LTCC
10030
10031# LTCC compiler flags.
10032LTCFLAGS=$lt_LTCFLAGS
10033
10034# A language-specific compiler.
10035CC=$lt_compiler
10036
10037# Is the compiler the GNU C compiler?
10038with_gcc=$GCC
10039
10040gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
10041gcc_ver=\`gcc -dumpversion\`
10042
10043# An ERE matcher.
10044EGREP=$lt_EGREP
10045
10046# The linker used to build libraries.
10047LD=$lt_LD
10048
10049# Whether we need hard or soft links.
10050LN_S=$lt_LN_S
10051
10052# A BSD-compatible nm program.
10053NM=$lt_NM
10054
10055# A symbol stripping program
10056STRIP=$lt_STRIP
10057
10058# Used to examine libraries when file_magic_cmd begins "file"
10059MAGIC_CMD=$MAGIC_CMD
10060
10061# Used on cygwin: DLL creation program.
10062DLLTOOL="$DLLTOOL"
10063
10064# Used on cygwin: object dumper.
10065OBJDUMP="$OBJDUMP"
10066
10067# Used on cygwin: assembler.
10068AS="$AS"
10069
10070# The name of the directory that contains temporary libtool files.
10071objdir=$objdir
10072
10073# How to create reloadable object files.
10074reload_flag=$lt_reload_flag
10075reload_cmds=$lt_reload_cmds
10076
10077# How to pass a linker flag through the compiler.
10078wl=$lt_lt_prog_compiler_wl
10079
10080# Object file suffix (normally "o").
10081objext="$ac_objext"
10082
10083# Old archive suffix (normally "a").
10084libext="$libext"
10085
10086# Shared library suffix (normally ".so").
10087shrext_cmds='$shrext_cmds'
10088
10089# Executable file suffix (normally "").
10090exeext="$exeext"
10091
10092# Additional compiler flags for building library objects.
10093pic_flag=$lt_lt_prog_compiler_pic
10094pic_mode=$pic_mode
10095
10096# What is the maximum length of a command?
10097max_cmd_len=$lt_cv_sys_max_cmd_len
10098
10099# Does compiler simultaneously support -c and -o options?
10100compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10101
10102# Must we lock files when doing compilation?
10103need_locks=$lt_need_locks
10104
10105# Do we need the lib prefix for modules?
10106need_lib_prefix=$need_lib_prefix
10107
10108# Do we need a version for libraries?
10109need_version=$need_version
10110
10111# Whether dlopen is supported.
10112dlopen_support=$enable_dlopen
10113
10114# Whether dlopen of programs is supported.
10115dlopen_self=$enable_dlopen_self
10116
10117# Whether dlopen of statically linked programs is supported.
10118dlopen_self_static=$enable_dlopen_self_static
10119
10120# Compiler flag to prevent dynamic linking.
10121link_static_flag=$lt_lt_prog_compiler_static
10122
10123# Compiler flag to turn off builtin functions.
10124no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10125
10126# Compiler flag to allow reflexive dlopens.
10127export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10128
10129# Compiler flag to generate shared objects directly from archives.
10130whole_archive_flag_spec=$lt_whole_archive_flag_spec
10131
10132# Compiler flag to generate thread-safe objects.
10133thread_safe_flag_spec=$lt_thread_safe_flag_spec
10134
10135# Library versioning type.
10136version_type=$version_type
10137
10138# Format of library name prefix.
10139libname_spec=$lt_libname_spec
10140
10141# List of archive names.  First name is the real one, the rest are links.
10142# The last name is the one that the linker finds with -lNAME.
10143library_names_spec=$lt_library_names_spec
10144
10145# The coded name of the library, if different from the real name.
10146soname_spec=$lt_soname_spec
10147
10148# Commands used to build and install an old-style archive.
10149RANLIB=$lt_RANLIB
10150old_archive_cmds=$lt_old_archive_cmds
10151old_postinstall_cmds=$lt_old_postinstall_cmds
10152old_postuninstall_cmds=$lt_old_postuninstall_cmds
10153
10154# Create an old-style archive from a shared archive.
10155old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10156
10157# Create a temporary old-style archive to link instead of a shared archive.
10158old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10159
10160# Commands used to build and install a shared archive.
10161archive_cmds=$lt_archive_cmds
10162archive_expsym_cmds=$lt_archive_expsym_cmds
10163postinstall_cmds=$lt_postinstall_cmds
10164postuninstall_cmds=$lt_postuninstall_cmds
10165
10166# Commands used to build a loadable module (assumed same as above if empty)
10167module_cmds=$lt_module_cmds
10168module_expsym_cmds=$lt_module_expsym_cmds
10169
10170# Commands to strip libraries.
10171old_striplib=$lt_old_striplib
10172striplib=$lt_striplib
10173
10174# Dependencies to place before the objects being linked to create a
10175# shared library.
10176predep_objects=\`echo $lt_predep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10177
10178# Dependencies to place after the objects being linked to create a
10179# shared library.
10180postdep_objects=\`echo $lt_postdep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10181
10182# Dependencies to place before the objects being linked to create a
10183# shared library.
10184predeps=$lt_predeps
10185
10186# Dependencies to place after the objects being linked to create a
10187# shared library.
10188postdeps=$lt_postdeps
10189
10190# The library search path used internally by the compiler when linking
10191# a shared library.
10192compiler_lib_search_path=\`echo $lt_compiler_lib_search_path | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10193
10194# Method to check whether dependent libraries are shared objects.
10195deplibs_check_method=$lt_deplibs_check_method
10196
10197# Command to use when deplibs_check_method == file_magic.
10198file_magic_cmd=$lt_file_magic_cmd
10199
10200# Flag that allows shared libraries with undefined symbols to be built.
10201allow_undefined_flag=$lt_allow_undefined_flag
10202
10203# Flag that forces no undefined symbols.
10204no_undefined_flag=$lt_no_undefined_flag
10205
10206# Commands used to finish a libtool library installation in a directory.
10207finish_cmds=$lt_finish_cmds
10208
10209# Same as above, but a single script fragment to be evaled but not shown.
10210finish_eval=$lt_finish_eval
10211
10212# Take the output of nm and produce a listing of raw symbols and C names.
10213global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10214
10215# Transform the output of nm in a proper C declaration
10216global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10217
10218# Transform the output of nm in a C name address pair
10219global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10220
10221# This is the shared library runtime path variable.
10222runpath_var=$runpath_var
10223
10224# This is the shared library path variable.
10225shlibpath_var=$shlibpath_var
10226
10227# Is shlibpath searched before the hard-coded library search path?
10228shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10229
10230# How to hardcode a shared library path into an executable.
10231hardcode_action=$hardcode_action
10232
10233# Whether we should hardcode library paths into libraries.
10234hardcode_into_libs=$hardcode_into_libs
10235
10236# Flag to hardcode \$libdir into a binary during linking.
10237# This must work even if \$libdir does not exist.
10238hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10239
10240# If ld is used when linking, flag to hardcode \$libdir into
10241# a binary during linking. This must work even if \$libdir does
10242# not exist.
10243hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10244
10245# Whether we need a single -rpath flag with a separated argument.
10246hardcode_libdir_separator=$lt_hardcode_libdir_separator
10247
10248# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10249# resulting binary.
10250hardcode_direct=$hardcode_direct
10251
10252# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10253# resulting binary.
10254hardcode_minus_L=$hardcode_minus_L
10255
10256# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10257# the resulting binary.
10258hardcode_shlibpath_var=$hardcode_shlibpath_var
10259
10260# Set to yes if building a shared library automatically hardcodes DIR into the library
10261# and all subsequent libraries and executables linked against it.
10262hardcode_automatic=$hardcode_automatic
10263
10264# Variables whose values should be saved in libtool wrapper scripts and
10265# restored at relink time.
10266variables_saved_for_relink="$variables_saved_for_relink"
10267
10268# Whether libtool must link a program against all its dependency libraries.
10269link_all_deplibs=$link_all_deplibs
10270
10271# Compile-time system search path for libraries
10272sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
10273
10274# Run-time system search path for libraries
10275sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10276
10277# Fix the shell variable \$srcfile for the compiler.
10278fix_srcfile_path="$fix_srcfile_path"
10279
10280# Set to yes if exported symbols are required.
10281always_export_symbols=$always_export_symbols
10282
10283# The commands to list exported symbols.
10284export_symbols_cmds=$lt_export_symbols_cmds
10285
10286# The commands to extract the exported symbol list from a shared archive.
10287extract_expsyms_cmds=$lt_extract_expsyms_cmds
10288
10289# Symbols that should not be listed in the preloaded symbols.
10290exclude_expsyms=$lt_exclude_expsyms
10291
10292# Symbols that must always be exported.
10293include_expsyms=$lt_include_expsyms
10294
10295# ### END LIBTOOL CONFIG
10296
10297__EOF__
10298
10299
10300  case $host_os in
10301  aix3*)
10302    cat <<\EOF >> "$cfgfile"
10303
10304# AIX sometimes has problems with the GCC collect2 program.  For some
10305# reason, if we set the COLLECT_NAMES environment variable, the problems
10306# vanish in a puff of smoke.
10307if test "X${COLLECT_NAMES+set}" != Xset; then
10308  COLLECT_NAMES=
10309  export COLLECT_NAMES
10310fi
10311EOF
10312    ;;
10313  esac
10314
10315  # We use sed instead of cat because bash on DJGPP gets confused if
10316  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10317  # text mode, it properly converts lines to CR/LF.  This bash problem
10318  # is reportedly fixed, but why not run on old versions too?
10319  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10320
10321  mv -f "$cfgfile" "$ofile" || \
10322    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10323  chmod +x "$ofile"
10324
10325else
10326  # If there is no Makefile yet, we rely on a make rule to execute
10327  # `config.status --recheck' to rerun these tests and create the
10328  # libtool script then.
10329  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10330  if test -f "$ltmain_in"; then
10331    test -f Makefile && make "$ltmain"
10332  fi
10333fi
10334
10335
10336ac_ext=c
10337ac_cpp='$CPP $CPPFLAGS'
10338ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10339ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10340ac_compiler_gnu=$ac_cv_c_compiler_gnu
10341
10342CC="$lt_save_CC"
10343
10344
10345# Check whether --with-tags or --without-tags was given.
10346if test "${with_tags+set}" = set; then
10347  withval="$with_tags"
10348  tagnames="$withval"
10349fi;
10350
10351if test -f "$ltmain" && test -n "$tagnames"; then
10352  if test ! -f "${ofile}"; then
10353    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10354echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10355  fi
10356
10357  if test -z "$LTCC"; then
10358    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10359    if test -z "$LTCC"; then
10360      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10361echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10362    else
10363      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10364echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10365    fi
10366  fi
10367  if test -z "$LTCFLAGS"; then
10368    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10369  fi
10370
10371  # Extract list of available tagged configurations in $ofile.
10372  # Note that this assumes the entire list is on one line.
10373  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10374
10375  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10376  for tagname in $tagnames; do
10377    IFS="$lt_save_ifs"
10378    # Check whether tagname contains only valid characters
10379    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10380    "") ;;
10381    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10382echo "$as_me: error: invalid tag name: $tagname" >&2;}
10383   { (exit 1); exit 1; }; }
10384	;;
10385    esac
10386
10387    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10388    then
10389      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10390echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10391   { (exit 1); exit 1; }; }
10392    fi
10393
10394    # Update the list of available tags.
10395    if test -n "$tagname"; then
10396      echo appending configuration tag \"$tagname\" to $ofile
10397
10398      case $tagname in
10399      CXX)
10400	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10401	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10402	    (test "X$CXX" != "Xg++"))) ; then
10403	  ac_ext=cc
10404ac_cpp='$CXXCPP $CPPFLAGS'
10405ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10406ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10407ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10408
10409
10410
10411
10412archive_cmds_need_lc_CXX=no
10413allow_undefined_flag_CXX=
10414always_export_symbols_CXX=no
10415archive_expsym_cmds_CXX=
10416export_dynamic_flag_spec_CXX=
10417hardcode_direct_CXX=no
10418hardcode_libdir_flag_spec_CXX=
10419hardcode_libdir_flag_spec_ld_CXX=
10420hardcode_libdir_separator_CXX=
10421hardcode_minus_L_CXX=no
10422hardcode_shlibpath_var_CXX=unsupported
10423hardcode_automatic_CXX=no
10424module_cmds_CXX=
10425module_expsym_cmds_CXX=
10426link_all_deplibs_CXX=unknown
10427old_archive_cmds_CXX=$old_archive_cmds
10428no_undefined_flag_CXX=
10429whole_archive_flag_spec_CXX=
10430enable_shared_with_static_runtimes_CXX=no
10431
10432# Dependencies to place before and after the object being linked:
10433predep_objects_CXX=
10434postdep_objects_CXX=
10435predeps_CXX=
10436postdeps_CXX=
10437compiler_lib_search_path_CXX=
10438
10439# Source file extension for C++ test sources.
10440ac_ext=cpp
10441
10442# Object file extension for compiled C++ test sources.
10443objext=o
10444objext_CXX=$objext
10445
10446# Code to be used in simple compile tests
10447lt_simple_compile_test_code="int some_variable = 0;\n"
10448
10449# Code to be used in simple link tests
10450lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10451
10452# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10453
10454# If no C compiler was specified, use CC.
10455LTCC=${LTCC-"$CC"}
10456
10457# If no C compiler flags were specified, use CFLAGS.
10458LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10459
10460# Allow CC to be a program name with arguments.
10461compiler=$CC
10462
10463
10464# save warnings/boilerplate of simple test code
10465ac_outfile=conftest.$ac_objext
10466printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10467eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10468_lt_compiler_boilerplate=`cat conftest.err`
10469$rm conftest*
10470
10471ac_outfile=conftest.$ac_objext
10472printf "$lt_simple_link_test_code" >conftest.$ac_ext
10473eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10474_lt_linker_boilerplate=`cat conftest.err`
10475$rm conftest*
10476
10477
10478# Allow CC to be a program name with arguments.
10479lt_save_CC=$CC
10480lt_save_LD=$LD
10481lt_save_GCC=$GCC
10482GCC=$GXX
10483lt_save_with_gnu_ld=$with_gnu_ld
10484lt_save_path_LD=$lt_cv_path_LD
10485if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10486  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10487else
10488  $as_unset lt_cv_prog_gnu_ld
10489fi
10490if test -n "${lt_cv_path_LDCXX+set}"; then
10491  lt_cv_path_LD=$lt_cv_path_LDCXX
10492else
10493  $as_unset lt_cv_path_LD
10494fi
10495test -z "${LDCXX+set}" || LD=$LDCXX
10496CC=${CXX-"c++"}
10497compiler=$CC
10498compiler_CXX=$CC
10499for cc_temp in $compiler""; do
10500  case $cc_temp in
10501    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10502    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10503    \-*) ;;
10504    *) break;;
10505  esac
10506done
10507cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10508
10509
10510# We don't want -fno-exception wen compiling C++ code, so set the
10511# no_builtin_flag separately
10512if test "$GXX" = yes; then
10513  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10514else
10515  lt_prog_compiler_no_builtin_flag_CXX=
10516fi
10517
10518if test "$GXX" = yes; then
10519  # Set up default GNU C++ configuration
10520
10521
10522# Check whether --with-gnu-ld or --without-gnu-ld was given.
10523if test "${with_gnu_ld+set}" = set; then
10524  withval="$with_gnu_ld"
10525  test "$withval" = no || with_gnu_ld=yes
10526else
10527  with_gnu_ld=no
10528fi;
10529ac_prog=ld
10530if test "$GCC" = yes; then
10531  # Check if gcc -print-prog-name=ld gives a path.
10532  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10533echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10534  case $host in
10535  *-*-mingw*)
10536    # gcc leaves a trailing carriage return which upsets mingw
10537    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10538  *)
10539    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10540  esac
10541  case $ac_prog in
10542    # Accept absolute paths.
10543    [\\/]* | ?:[\\/]*)
10544      re_direlt='/[^/][^/]*/\.\./'
10545      # Canonicalize the pathname of ld
10546      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10547      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10548	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10549      done
10550      test -z "$LD" && LD="$ac_prog"
10551      ;;
10552  "")
10553    # If it fails, then pretend we aren't using GCC.
10554    ac_prog=ld
10555    ;;
10556  *)
10557    # If it is relative, then search for the first ld in PATH.
10558    with_gnu_ld=unknown
10559    ;;
10560  esac
10561elif test "$with_gnu_ld" = yes; then
10562  echo "$as_me:$LINENO: checking for GNU ld" >&5
10563echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10564else
10565  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10566echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10567fi
10568if test "${lt_cv_path_LD+set}" = set; then
10569  echo $ECHO_N "(cached) $ECHO_C" >&6
10570else
10571  if test -z "$LD"; then
10572  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10573  for ac_dir in $PATH; do
10574    IFS="$lt_save_ifs"
10575    test -z "$ac_dir" && ac_dir=.
10576    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10577      lt_cv_path_LD="$ac_dir/$ac_prog"
10578      # Check to see if the program is GNU ld.  I'd rather use --version,
10579      # but apparently some variants of GNU ld only accept -v.
10580      # Break only if it was the GNU/non-GNU ld that we prefer.
10581      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10582      *GNU* | *'with BFD'*)
10583	test "$with_gnu_ld" != no && break
10584	;;
10585      *)
10586	test "$with_gnu_ld" != yes && break
10587	;;
10588      esac
10589    fi
10590  done
10591  IFS="$lt_save_ifs"
10592else
10593  lt_cv_path_LD="$LD" # Let the user override the test with a path.
10594fi
10595fi
10596
10597LD="$lt_cv_path_LD"
10598if test -n "$LD"; then
10599  echo "$as_me:$LINENO: result: $LD" >&5
10600echo "${ECHO_T}$LD" >&6
10601else
10602  echo "$as_me:$LINENO: result: no" >&5
10603echo "${ECHO_T}no" >&6
10604fi
10605test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10606echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10607   { (exit 1); exit 1; }; }
10608echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10609echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10610if test "${lt_cv_prog_gnu_ld+set}" = set; then
10611  echo $ECHO_N "(cached) $ECHO_C" >&6
10612else
10613  # I'd rather use --version here, but apparently some GNU lds only accept -v.
10614case `$LD -v 2>&1 </dev/null` in
10615*GNU* | *'with BFD'*)
10616  lt_cv_prog_gnu_ld=yes
10617  ;;
10618*)
10619  lt_cv_prog_gnu_ld=no
10620  ;;
10621esac
10622fi
10623echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10624echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10625with_gnu_ld=$lt_cv_prog_gnu_ld
10626
10627
10628
10629  # Check if GNU C++ uses GNU ld as the underlying linker, since the
10630  # archiving commands below assume that GNU ld is being used.
10631  if test "$with_gnu_ld" = yes; then
10632    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10633    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'
10634
10635    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10636    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10637
10638    # If archive_cmds runs LD, not CC, wlarc should be empty
10639    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10640    #     investigate it a little bit more. (MM)
10641    wlarc='${wl}'
10642
10643    # ancient GNU ld didn't support --whole-archive et. al.
10644    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10645	grep 'no-whole-archive' > /dev/null; then
10646      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10647    else
10648      whole_archive_flag_spec_CXX=
10649    fi
10650  else
10651    with_gnu_ld=no
10652    wlarc=
10653
10654    # A generic and very simple default shared library creation
10655    # command for GNU C++ for the case where it uses the native
10656    # linker, instead of GNU ld.  If possible, this setting should
10657    # overridden to take advantage of the native linker features on
10658    # the platform it is being used on.
10659    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10660  fi
10661
10662  # Commands to make compiler produce verbose output that lists
10663  # what "hidden" libraries, object files and flags are used when
10664  # linking a shared library.
10665  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10666
10667else
10668  GXX=no
10669  with_gnu_ld=no
10670  wlarc=
10671fi
10672
10673# PORTME: fill in a description of your system's C++ link characteristics
10674echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10675echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10676ld_shlibs_CXX=yes
10677case $host_os in
10678  aix3*)
10679    # FIXME: insert proper C++ library support
10680    ld_shlibs_CXX=no
10681    ;;
10682  aix4* | aix5*)
10683    if test "$host_cpu" = ia64; then
10684      # On IA64, the linker does run time linking by default, so we don't
10685      # have to do anything special.
10686      aix_use_runtimelinking=no
10687      exp_sym_flag='-Bexport'
10688      no_entry_flag=""
10689    else
10690      aix_use_runtimelinking=no
10691
10692      # Test if we are trying to use run time linking or normal
10693      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10694      # need to do runtime linking.
10695      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10696	for ld_flag in $LDFLAGS; do
10697	  case $ld_flag in
10698	  *-brtl*)
10699	    aix_use_runtimelinking=yes
10700	    break
10701	    ;;
10702	  esac
10703	done
10704	;;
10705      esac
10706
10707      exp_sym_flag='-bexport'
10708      no_entry_flag='-bnoentry'
10709    fi
10710
10711    # When large executables or shared objects are built, AIX ld can
10712    # have problems creating the table of contents.  If linking a library
10713    # or program results in "error TOC overflow" add -mminimal-toc to
10714    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10715    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10716
10717    archive_cmds_CXX=''
10718    hardcode_direct_CXX=yes
10719    hardcode_libdir_separator_CXX=':'
10720    link_all_deplibs_CXX=yes
10721
10722    if test "$GXX" = yes; then
10723      case $host_os in aix4.[012]|aix4.[012].*)
10724      # We only want to do this on AIX 4.2 and lower, the check
10725      # below for broken collect2 doesn't work under 4.3+
10726	collect2name=`${CC} -print-prog-name=collect2`
10727	if test -f "$collect2name" && \
10728	   strings "$collect2name" | grep resolve_lib_name >/dev/null
10729	then
10730	  # We have reworked collect2
10731	  hardcode_direct_CXX=yes
10732	else
10733	  # We have old collect2
10734	  hardcode_direct_CXX=unsupported
10735	  # It fails to find uninstalled libraries when the uninstalled
10736	  # path is not listed in the libpath.  Setting hardcode_minus_L
10737	  # to unsupported forces relinking
10738	  hardcode_minus_L_CXX=yes
10739	  hardcode_libdir_flag_spec_CXX='-L$libdir'
10740	  hardcode_libdir_separator_CXX=
10741	fi
10742	;;
10743      esac
10744      shared_flag='-shared'
10745      if test "$aix_use_runtimelinking" = yes; then
10746	shared_flag="$shared_flag "'${wl}-G'
10747      fi
10748    else
10749      # not using gcc
10750      if test "$host_cpu" = ia64; then
10751	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10752	# chokes on -Wl,-G. The following line is correct:
10753	shared_flag='-G'
10754      else
10755	if test "$aix_use_runtimelinking" = yes; then
10756	  shared_flag='${wl}-G'
10757	else
10758	  shared_flag='${wl}-bM:SRE'
10759	fi
10760      fi
10761    fi
10762
10763    # It seems that -bexpall does not export symbols beginning with
10764    # underscore (_), so it is better to generate a list of symbols to export.
10765    always_export_symbols_CXX=yes
10766    if test "$aix_use_runtimelinking" = yes; then
10767      # Warning - without using the other runtime loading flags (-brtl),
10768      # -berok will link without error, but may produce a broken library.
10769      allow_undefined_flag_CXX='-berok'
10770      # Determine the default libpath from the value encoded in an empty executable.
10771      cat >conftest.$ac_ext <<_ACEOF
10772/* confdefs.h.  */
10773_ACEOF
10774cat confdefs.h >>conftest.$ac_ext
10775cat >>conftest.$ac_ext <<_ACEOF
10776/* end confdefs.h.  */
10777
10778int
10779main ()
10780{
10781
10782  ;
10783  return 0;
10784}
10785_ACEOF
10786rm -f conftest.$ac_objext conftest$ac_exeext
10787if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10788  (eval $ac_link) 2>conftest.er1
10789  ac_status=$?
10790  grep -v '^ *+' conftest.er1 >conftest.err
10791  rm -f conftest.er1
10792  cat conftest.err >&5
10793  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10794  (exit $ac_status); } &&
10795	 { ac_try='test -z "$ac_cxx_werror_flag"
10796			 || test ! -s conftest.err'
10797  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10798  (eval $ac_try) 2>&5
10799  ac_status=$?
10800  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10801  (exit $ac_status); }; } &&
10802	 { ac_try='test -s conftest$ac_exeext'
10803  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10804  (eval $ac_try) 2>&5
10805  ac_status=$?
10806  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10807  (exit $ac_status); }; }; then
10808
10809aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10810}'`
10811# Check for a 64-bit object if we didn't find anything.
10812if 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; }
10813}'`; fi
10814else
10815  echo "$as_me: failed program was:" >&5
10816sed 's/^/| /' conftest.$ac_ext >&5
10817
10818fi
10819rm -f conftest.err conftest.$ac_objext \
10820      conftest$ac_exeext conftest.$ac_ext
10821if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10822
10823      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10824
10825      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"
10826     else
10827      if test "$host_cpu" = ia64; then
10828	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10829	allow_undefined_flag_CXX="-z nodefs"
10830	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"
10831      else
10832	# Determine the default libpath from the value encoded in an empty executable.
10833	cat >conftest.$ac_ext <<_ACEOF
10834/* confdefs.h.  */
10835_ACEOF
10836cat confdefs.h >>conftest.$ac_ext
10837cat >>conftest.$ac_ext <<_ACEOF
10838/* end confdefs.h.  */
10839
10840int
10841main ()
10842{
10843
10844  ;
10845  return 0;
10846}
10847_ACEOF
10848rm -f conftest.$ac_objext conftest$ac_exeext
10849if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10850  (eval $ac_link) 2>conftest.er1
10851  ac_status=$?
10852  grep -v '^ *+' conftest.er1 >conftest.err
10853  rm -f conftest.er1
10854  cat conftest.err >&5
10855  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10856  (exit $ac_status); } &&
10857	 { ac_try='test -z "$ac_cxx_werror_flag"
10858			 || test ! -s conftest.err'
10859  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10860  (eval $ac_try) 2>&5
10861  ac_status=$?
10862  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10863  (exit $ac_status); }; } &&
10864	 { ac_try='test -s conftest$ac_exeext'
10865  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10866  (eval $ac_try) 2>&5
10867  ac_status=$?
10868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10869  (exit $ac_status); }; }; then
10870
10871aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10872}'`
10873# Check for a 64-bit object if we didn't find anything.
10874if 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; }
10875}'`; fi
10876else
10877  echo "$as_me: failed program was:" >&5
10878sed 's/^/| /' conftest.$ac_ext >&5
10879
10880fi
10881rm -f conftest.err conftest.$ac_objext \
10882      conftest$ac_exeext conftest.$ac_ext
10883if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10884
10885	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10886	# Warning - without using the other run time loading flags,
10887	# -berok will link without error, but may produce a broken library.
10888	no_undefined_flag_CXX=' ${wl}-bernotok'
10889	allow_undefined_flag_CXX=' ${wl}-berok'
10890	# Exported symbols can be pulled into shared objects from archives
10891	whole_archive_flag_spec_CXX='$convenience'
10892	archive_cmds_need_lc_CXX=yes
10893	# This is similar to how AIX traditionally builds its shared libraries.
10894	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'
10895      fi
10896    fi
10897    ;;
10898
10899  beos*)
10900    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10901      allow_undefined_flag_CXX=unsupported
10902      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10903      # support --undefined.  This deserves some investigation.  FIXME
10904      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10905    else
10906      ld_shlibs_CXX=no
10907    fi
10908    ;;
10909
10910  chorus*)
10911    case $cc_basename in
10912      *)
10913	# FIXME: insert proper C++ library support
10914	ld_shlibs_CXX=no
10915	;;
10916    esac
10917    ;;
10918
10919  cygwin* | mingw* | pw32*)
10920    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10921    # as there is no search path for DLLs.
10922    hardcode_libdir_flag_spec_CXX='-L$libdir'
10923    allow_undefined_flag_CXX=unsupported
10924    always_export_symbols_CXX=no
10925    enable_shared_with_static_runtimes_CXX=yes
10926
10927    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10928      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'
10929      # If the export-symbols file already is a .def file (1st line
10930      # is EXPORTS), use it as is; otherwise, prepend...
10931      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10932	cp $export_symbols $output_objdir/$soname.def;
10933      else
10934	echo EXPORTS > $output_objdir/$soname.def;
10935	cat $export_symbols >> $output_objdir/$soname.def;
10936      fi~
10937      $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'
10938    else
10939      ld_shlibs_CXX=no
10940    fi
10941  ;;
10942      darwin* | rhapsody*)
10943        case $host_os in
10944        rhapsody* | darwin1.[012])
10945         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10946         ;;
10947       *) # Darwin 1.3 on
10948         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10949           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10950         else
10951           case ${MACOSX_DEPLOYMENT_TARGET} in
10952             10.[012])
10953               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10954               ;;
10955             10.*)
10956               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10957               ;;
10958           esac
10959         fi
10960         ;;
10961        esac
10962      archive_cmds_need_lc_CXX=no
10963      hardcode_direct_CXX=no
10964      hardcode_automatic_CXX=yes
10965      hardcode_shlibpath_var_CXX=unsupported
10966      whole_archive_flag_spec_CXX=''
10967      link_all_deplibs_CXX=yes
10968
10969    if test "$GXX" = yes ; then
10970      lt_int_apple_cc_single_mod=no
10971      output_verbose_link_cmd='echo'
10972      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10973       lt_int_apple_cc_single_mod=yes
10974      fi
10975      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10976       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10977      else
10978          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'
10979        fi
10980        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10981        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10982          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10983            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}'
10984          else
10985            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}'
10986          fi
10987            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}'
10988      else
10989      case $cc_basename in
10990        xlc*)
10991         output_verbose_link_cmd='echo'
10992          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'
10993          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10994          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10995          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}'
10996          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}'
10997          ;;
10998       *)
10999         ld_shlibs_CXX=no
11000          ;;
11001      esac
11002      fi
11003        ;;
11004
11005  dgux*)
11006    case $cc_basename in
11007      ec++*)
11008	# FIXME: insert proper C++ library support
11009	ld_shlibs_CXX=no
11010	;;
11011      ghcx*)
11012	# Green Hills C++ Compiler
11013	# FIXME: insert proper C++ library support
11014	ld_shlibs_CXX=no
11015	;;
11016      *)
11017	# FIXME: insert proper C++ library support
11018	ld_shlibs_CXX=no
11019	;;
11020    esac
11021    ;;
11022  freebsd[12]*)
11023    # C++ shared libraries reported to be fairly broken before switch to ELF
11024    ld_shlibs_CXX=no
11025    ;;
11026  freebsd-elf*)
11027    archive_cmds_need_lc_CXX=no
11028    ;;
11029  freebsd* | kfreebsd*-gnu | dragonfly*)
11030    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11031    # conventions
11032    ld_shlibs_CXX=yes
11033    ;;
11034  gnu*)
11035    ;;
11036  hpux9*)
11037    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11038    hardcode_libdir_separator_CXX=:
11039    export_dynamic_flag_spec_CXX='${wl}-E'
11040    hardcode_direct_CXX=yes
11041    hardcode_minus_L_CXX=yes # Not in the search PATH,
11042				# but as the default
11043				# location of the library.
11044
11045    case $cc_basename in
11046    CC*)
11047      # FIXME: insert proper C++ library support
11048      ld_shlibs_CXX=no
11049      ;;
11050    aCC*)
11051      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'
11052      # Commands to make compiler produce verbose output that lists
11053      # what "hidden" libraries, object files and flags are used when
11054      # linking a shared library.
11055      #
11056      # There doesn't appear to be a way to prevent this compiler from
11057      # explicitly linking system object files so we need to strip them
11058      # from the output so that they don't get included in the library
11059      # dependencies.
11060      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'
11061      ;;
11062    *)
11063      if test "$GXX" = yes; then
11064        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'
11065      else
11066        # FIXME: insert proper C++ library support
11067        ld_shlibs_CXX=no
11068      fi
11069      ;;
11070    esac
11071    ;;
11072  hpux10*|hpux11*)
11073    if test $with_gnu_ld = no; then
11074      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11075      hardcode_libdir_separator_CXX=:
11076
11077      case $host_cpu in
11078      hppa*64*|ia64*)
11079	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11080        ;;
11081      *)
11082	export_dynamic_flag_spec_CXX='${wl}-E'
11083        ;;
11084      esac
11085    fi
11086    case $host_cpu in
11087    hppa*64*|ia64*)
11088      hardcode_direct_CXX=no
11089      hardcode_shlibpath_var_CXX=no
11090      ;;
11091    *)
11092      hardcode_direct_CXX=yes
11093      hardcode_minus_L_CXX=yes # Not in the search PATH,
11094					      # but as the default
11095					      # location of the library.
11096      ;;
11097    esac
11098
11099    case $cc_basename in
11100      CC*)
11101	# FIXME: insert proper C++ library support
11102	ld_shlibs_CXX=no
11103	;;
11104      aCC*)
11105	case $host_cpu in
11106	hppa*64*)
11107	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11108	  ;;
11109	ia64*)
11110	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11111	  ;;
11112	*)
11113	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11114	  ;;
11115	esac
11116	# Commands to make compiler produce verbose output that lists
11117	# what "hidden" libraries, object files and flags are used when
11118	# linking a shared library.
11119	#
11120	# There doesn't appear to be a way to prevent this compiler from
11121	# explicitly linking system object files so we need to strip them
11122	# from the output so that they don't get included in the library
11123	# dependencies.
11124	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'
11125	;;
11126      *)
11127	if test "$GXX" = yes; then
11128	  if test $with_gnu_ld = no; then
11129	    case $host_cpu in
11130	    hppa*64*)
11131	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11132	      ;;
11133	    ia64*)
11134	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11135	      ;;
11136	    *)
11137	      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'
11138	      ;;
11139	    esac
11140	  fi
11141	else
11142	  # FIXME: insert proper C++ library support
11143	  ld_shlibs_CXX=no
11144	fi
11145	;;
11146    esac
11147    ;;
11148  interix3*)
11149    hardcode_direct_CXX=no
11150    hardcode_shlibpath_var_CXX=no
11151    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11152    export_dynamic_flag_spec_CXX='${wl}-E'
11153    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11154    # Instead, shared libraries are loaded at an image base (0x10000000 by
11155    # default) and relocated if they conflict, which is a slow very memory
11156    # consuming and fragmenting process.  To avoid this, we pick a random,
11157    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11158    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11159    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'
11160    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'
11161    ;;
11162  irix5* | irix6*)
11163    case $cc_basename in
11164      CC*)
11165	# SGI C++
11166	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'
11167
11168	# Archives containing C++ object files must be created using
11169	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11170	# necessary to make sure instantiated templates are included
11171	# in the archive.
11172	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11173	;;
11174      *)
11175	if test "$GXX" = yes; then
11176	  if test "$with_gnu_ld" = no; then
11177	    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'
11178	  else
11179	    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'
11180	  fi
11181	fi
11182	link_all_deplibs_CXX=yes
11183	;;
11184    esac
11185    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11186    hardcode_libdir_separator_CXX=:
11187    ;;
11188  linux*)
11189    case $cc_basename in
11190      KCC*)
11191	# Kuck and Associates, Inc. (KAI) C++ Compiler
11192
11193	# KCC will only create a shared library if the output file
11194	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11195	# to its proper name (with version) after linking.
11196	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'
11197	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'
11198	# Commands to make compiler produce verbose output that lists
11199	# what "hidden" libraries, object files and flags are used when
11200	# linking a shared library.
11201	#
11202	# There doesn't appear to be a way to prevent this compiler from
11203	# explicitly linking system object files so we need to strip them
11204	# from the output so that they don't get included in the library
11205	# dependencies.
11206	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'
11207
11208	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11209	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11210
11211	# Archives containing C++ object files must be created using
11212	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11213	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11214	;;
11215      icpc*)
11216	# Intel C++
11217	with_gnu_ld=yes
11218	# version 8.0 and above of icpc choke on multiply defined symbols
11219	# if we add $predep_objects and $postdep_objects, however 7.1 and
11220	# earlier do not add the objects themselves.
11221	case `$CC -V 2>&1` in
11222	*"Version 7."*)
11223  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11224  	  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'
11225	  ;;
11226	*)  # Version 8.0 or newer
11227	  tmp_idyn=
11228	  case $host_cpu in
11229	    ia64*) tmp_idyn=' -i_dynamic';;
11230	  esac
11231  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11232	  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'
11233	  ;;
11234	esac
11235	archive_cmds_need_lc_CXX=no
11236	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11237	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11238	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11239	;;
11240      pgCC*)
11241        # Portland Group C++ compiler
11242	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11243  	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'
11244
11245	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11246	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11247	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'
11248        ;;
11249      cxx*)
11250	# Compaq C++
11251	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11252	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'
11253
11254	runpath_var=LD_RUN_PATH
11255	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11256	hardcode_libdir_separator_CXX=:
11257
11258	# Commands to make compiler produce verbose output that lists
11259	# what "hidden" libraries, object files and flags are used when
11260	# linking a shared library.
11261	#
11262	# There doesn't appear to be a way to prevent this compiler from
11263	# explicitly linking system object files so we need to strip them
11264	# from the output so that they don't get included in the library
11265	# dependencies.
11266	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'
11267	;;
11268    esac
11269    ;;
11270  lynxos*)
11271    # FIXME: insert proper C++ library support
11272    ld_shlibs_CXX=no
11273    ;;
11274  m88k*)
11275    # FIXME: insert proper C++ library support
11276    ld_shlibs_CXX=no
11277    ;;
11278  mvs*)
11279    case $cc_basename in
11280      cxx*)
11281	# FIXME: insert proper C++ library support
11282	ld_shlibs_CXX=no
11283	;;
11284      *)
11285	# FIXME: insert proper C++ library support
11286	ld_shlibs_CXX=no
11287	;;
11288    esac
11289    ;;
11290  netbsd*)
11291    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11292      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11293      wlarc=
11294      hardcode_libdir_flag_spec_CXX='-R$libdir'
11295      hardcode_direct_CXX=yes
11296      hardcode_shlibpath_var_CXX=no
11297    fi
11298    # Workaround some broken pre-1.5 toolchains
11299    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11300    ;;
11301  openbsd2*)
11302    # C++ shared libraries are fairly broken
11303    ld_shlibs_CXX=no
11304    ;;
11305  openbsd*)
11306    hardcode_direct_CXX=yes
11307    hardcode_shlibpath_var_CXX=no
11308    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11309    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11310    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11311      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11312      export_dynamic_flag_spec_CXX='${wl}-E'
11313      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11314    fi
11315    output_verbose_link_cmd='echo'
11316    ;;
11317  osf3*)
11318    case $cc_basename in
11319      KCC*)
11320	# Kuck and Associates, Inc. (KAI) C++ Compiler
11321
11322	# KCC will only create a shared library if the output file
11323	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11324	# to its proper name (with version) after linking.
11325	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'
11326
11327	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11328	hardcode_libdir_separator_CXX=:
11329
11330	# Archives containing C++ object files must be created using
11331	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11332	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11333
11334	;;
11335      RCC*)
11336	# Rational C++ 2.4.1
11337	# FIXME: insert proper C++ library support
11338	ld_shlibs_CXX=no
11339	;;
11340      cxx*)
11341	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11342	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'
11343
11344	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11345	hardcode_libdir_separator_CXX=:
11346
11347	# Commands to make compiler produce verbose output that lists
11348	# what "hidden" libraries, object files and flags are used when
11349	# linking a shared library.
11350	#
11351	# There doesn't appear to be a way to prevent this compiler from
11352	# explicitly linking system object files so we need to strip them
11353	# from the output so that they don't get included in the library
11354	# dependencies.
11355	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'
11356	;;
11357      *)
11358	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11359	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11360	  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'
11361
11362	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11363	  hardcode_libdir_separator_CXX=:
11364
11365	  # Commands to make compiler produce verbose output that lists
11366	  # what "hidden" libraries, object files and flags are used when
11367	  # linking a shared library.
11368	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11369
11370	else
11371	  # FIXME: insert proper C++ library support
11372	  ld_shlibs_CXX=no
11373	fi
11374	;;
11375    esac
11376    ;;
11377  osf4* | osf5*)
11378    case $cc_basename in
11379      KCC*)
11380	# Kuck and Associates, Inc. (KAI) C++ Compiler
11381
11382	# KCC will only create a shared library if the output file
11383	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11384	# to its proper name (with version) after linking.
11385	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'
11386
11387	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11388	hardcode_libdir_separator_CXX=:
11389
11390	# Archives containing C++ object files must be created using
11391	# the KAI C++ compiler.
11392	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11393	;;
11394      RCC*)
11395	# Rational C++ 2.4.1
11396	# FIXME: insert proper C++ library support
11397	ld_shlibs_CXX=no
11398	;;
11399      cxx*)
11400	allow_undefined_flag_CXX=' -expect_unresolved \*'
11401	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'
11402	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11403	  echo "-hidden">> $lib.exp~
11404	  $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~
11405	  $rm $lib.exp'
11406
11407	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11408	hardcode_libdir_separator_CXX=:
11409
11410	# Commands to make compiler produce verbose output that lists
11411	# what "hidden" libraries, object files and flags are used when
11412	# linking a shared library.
11413	#
11414	# There doesn't appear to be a way to prevent this compiler from
11415	# explicitly linking system object files so we need to strip them
11416	# from the output so that they don't get included in the library
11417	# dependencies.
11418	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'
11419	;;
11420      *)
11421	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11422	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11423	 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'
11424
11425	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11426	  hardcode_libdir_separator_CXX=:
11427
11428	  # Commands to make compiler produce verbose output that lists
11429	  # what "hidden" libraries, object files and flags are used when
11430	  # linking a shared library.
11431	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11432
11433	else
11434	  # FIXME: insert proper C++ library support
11435	  ld_shlibs_CXX=no
11436	fi
11437	;;
11438    esac
11439    ;;
11440  psos*)
11441    # FIXME: insert proper C++ library support
11442    ld_shlibs_CXX=no
11443    ;;
11444  sunos4*)
11445    case $cc_basename in
11446      CC*)
11447	# Sun C++ 4.x
11448	# FIXME: insert proper C++ library support
11449	ld_shlibs_CXX=no
11450	;;
11451      lcc*)
11452	# Lucid
11453	# FIXME: insert proper C++ library support
11454	ld_shlibs_CXX=no
11455	;;
11456      *)
11457	# FIXME: insert proper C++ library support
11458	ld_shlibs_CXX=no
11459	;;
11460    esac
11461    ;;
11462  solaris*)
11463    case $cc_basename in
11464      CC*)
11465	# Sun C++ 4.2, 5.x and Centerline C++
11466        archive_cmds_need_lc_CXX=yes
11467	no_undefined_flag_CXX=' -zdefs'
11468	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11469	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11470	$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'
11471
11472	hardcode_libdir_flag_spec_CXX='-R$libdir'
11473	hardcode_shlibpath_var_CXX=no
11474	case $host_os in
11475	  solaris2.[0-5] | solaris2.[0-5].*) ;;
11476	  *)
11477	    # The C++ compiler is used as linker so we must use $wl
11478	    # flag to pass the commands to the underlying system
11479	    # linker. We must also pass each convience library through
11480	    # to the system linker between allextract/defaultextract.
11481	    # The C++ compiler will combine linker options so we
11482	    # cannot just pass the convience library names through
11483	    # without $wl.
11484	    # Supported since Solaris 2.6 (maybe 2.5.1?)
11485	    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'
11486	    ;;
11487	esac
11488	link_all_deplibs_CXX=yes
11489
11490	output_verbose_link_cmd='echo'
11491
11492	# Archives containing C++ object files must be created using
11493	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
11494	# necessary to make sure instantiated templates are included
11495	# in the archive.
11496	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11497	;;
11498      gcx*)
11499	# Green Hills C++ Compiler
11500	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11501
11502	# The C++ compiler must be used to create the archive.
11503	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11504	;;
11505      *)
11506	# GNU C++ compiler with Solaris linker
11507	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11508	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11509	  if $CC --version | grep -v '^2\.7' > /dev/null; then
11510	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11511	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11512		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11513
11514	    # Commands to make compiler produce verbose output that lists
11515	    # what "hidden" libraries, object files and flags are used when
11516	    # linking a shared library.
11517	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11518	  else
11519	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
11520	    # platform.
11521	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11522	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11523		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11524
11525	    # Commands to make compiler produce verbose output that lists
11526	    # what "hidden" libraries, object files and flags are used when
11527	    # linking a shared library.
11528	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11529	  fi
11530
11531	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11532	fi
11533	;;
11534    esac
11535    ;;
11536  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11537    no_undefined_flag_CXX='${wl}-z,text'
11538    archive_cmds_need_lc_CXX=no
11539    hardcode_shlibpath_var_CXX=no
11540    runpath_var='LD_RUN_PATH'
11541
11542    case $cc_basename in
11543      CC*)
11544	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11545	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11546	;;
11547      *)
11548	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11549	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11550	;;
11551    esac
11552    ;;
11553  sysv5* | sco3.2v5* | sco5v6*)
11554    # Note: We can NOT use -z defs as we might desire, because we do not
11555    # link with -lc, and that would cause any symbols used from libc to
11556    # always be unresolved, which means just about no library would
11557    # ever link correctly.  If we're not using GNU ld we use -z text
11558    # though, which does catch some bad symbols but isn't as heavy-handed
11559    # as -z defs.
11560    # For security reasons, it is highly recommended that you always
11561    # use absolute paths for naming shared libraries, and exclude the
11562    # DT_RUNPATH tag from executables and libraries.  But doing so
11563    # requires that you compile everything twice, which is a pain.
11564    # So that behaviour is only enabled if SCOABSPATH is set to a
11565    # non-empty value in the environment.  Most likely only useful for
11566    # creating official distributions of packages.
11567    # This is a hack until libtool officially supports absolute path
11568    # names for shared libraries.
11569    no_undefined_flag_CXX='${wl}-z,text'
11570    allow_undefined_flag_CXX='${wl}-z,nodefs'
11571    archive_cmds_need_lc_CXX=no
11572    hardcode_shlibpath_var_CXX=no
11573    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11574    hardcode_libdir_separator_CXX=':'
11575    link_all_deplibs_CXX=yes
11576    export_dynamic_flag_spec_CXX='${wl}-Bexport'
11577    runpath_var='LD_RUN_PATH'
11578
11579    case $cc_basename in
11580      CC*)
11581	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11582	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11583	;;
11584      *)
11585	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11586	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11587	;;
11588    esac
11589    ;;
11590  tandem*)
11591    case $cc_basename in
11592      NCC*)
11593	# NonStop-UX NCC 3.20
11594	# FIXME: insert proper C++ library support
11595	ld_shlibs_CXX=no
11596	;;
11597      *)
11598	# FIXME: insert proper C++ library support
11599	ld_shlibs_CXX=no
11600	;;
11601    esac
11602    ;;
11603  vxworks*)
11604    # FIXME: insert proper C++ library support
11605    ld_shlibs_CXX=no
11606    ;;
11607  *)
11608    # FIXME: insert proper C++ library support
11609    ld_shlibs_CXX=no
11610    ;;
11611esac
11612echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11613echo "${ECHO_T}$ld_shlibs_CXX" >&6
11614test "$ld_shlibs_CXX" = no && can_build_shared=no
11615
11616GCC_CXX="$GXX"
11617LD_CXX="$LD"
11618
11619
11620cat > conftest.$ac_ext <<EOF
11621class Foo
11622{
11623public:
11624  Foo (void) { a = 0; }
11625private:
11626  int a;
11627};
11628EOF
11629
11630if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11631  (eval $ac_compile) 2>&5
11632  ac_status=$?
11633  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11634  (exit $ac_status); }; then
11635  # Parse the compiler output and extract the necessary
11636  # objects, libraries and library flags.
11637
11638  # Sentinel used to keep track of whether or not we are before
11639  # the conftest object file.
11640  pre_test_object_deps_done=no
11641
11642  # The `*' in the case matches for architectures that use `case' in
11643  # $output_verbose_cmd can trigger glob expansion during the loop
11644  # eval without this substitution.
11645  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11646
11647  for p in `eval $output_verbose_link_cmd`; do
11648    case $p in
11649
11650    -L* | -R* | -l*)
11651       # Some compilers place space between "-{L,R}" and the path.
11652       # Remove the space.
11653       if test $p = "-L" \
11654	  || test $p = "-R"; then
11655	 prev=$p
11656	 continue
11657       else
11658	 prev=
11659       fi
11660
11661       if test "$pre_test_object_deps_done" = no; then
11662	 case $p in
11663	 -L* | -R*)
11664	   # Internal compiler library paths should come after those
11665	   # provided the user.  The postdeps already come after the
11666	   # user supplied libs so there is no need to process them.
11667	   if test -z "$compiler_lib_search_path_CXX"; then
11668	     compiler_lib_search_path_CXX="${prev}${p}"
11669	   else
11670	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11671	   fi
11672	   ;;
11673	 # The "-l" case would never come before the object being
11674	 # linked, so don't bother handling this case.
11675	 esac
11676       else
11677	 if test -z "$postdeps_CXX"; then
11678	   postdeps_CXX="${prev}${p}"
11679	 else
11680	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11681	 fi
11682       fi
11683       ;;
11684
11685    *.$objext)
11686       # This assumes that the test object file only shows up
11687       # once in the compiler output.
11688       if test "$p" = "conftest.$objext"; then
11689	 pre_test_object_deps_done=yes
11690	 continue
11691       fi
11692
11693       if test "$pre_test_object_deps_done" = no; then
11694	 if test -z "$predep_objects_CXX"; then
11695	   predep_objects_CXX="$p"
11696	 else
11697	   predep_objects_CXX="$predep_objects_CXX $p"
11698	 fi
11699       else
11700	 if test -z "$postdep_objects_CXX"; then
11701	   postdep_objects_CXX="$p"
11702	 else
11703	   postdep_objects_CXX="$postdep_objects_CXX $p"
11704	 fi
11705       fi
11706       ;;
11707
11708    *) ;; # Ignore the rest.
11709
11710    esac
11711  done
11712
11713  # Clean up.
11714  rm -f a.out a.exe
11715else
11716  echo "libtool.m4: error: problem compiling CXX test program"
11717fi
11718
11719$rm -f confest.$objext
11720
11721# PORTME: override above test on systems where it is broken
11722case $host_os in
11723interix3*)
11724  # Interix 3.5 installs completely hosed .la files for C++, so rather than
11725  # hack all around it, let's just trust "g++" to DTRT.
11726  predep_objects_CXX=
11727  postdep_objects_CXX=
11728  postdeps_CXX=
11729  ;;
11730
11731solaris*)
11732  case $cc_basename in
11733  CC*)
11734    # Adding this requires a known-good setup of shared libraries for
11735    # Sun compiler versions before 5.6, else PIC objects from an old
11736    # archive will be linked into the output, leading to subtle bugs.
11737    postdeps_CXX='-lCstd -lCrun'
11738    ;;
11739  esac
11740  ;;
11741esac
11742
11743
11744case " $postdeps_CXX " in
11745*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11746esac
11747
11748lt_prog_compiler_wl_CXX=
11749lt_prog_compiler_pic_CXX=
11750lt_prog_compiler_static_CXX=
11751
11752echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11753echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11754
11755  # C++ specific cases for pic, static, wl, etc.
11756  if test "$GXX" = yes; then
11757    lt_prog_compiler_wl_CXX='-Wl,'
11758    lt_prog_compiler_static_CXX='-static'
11759
11760    case $host_os in
11761    aix*)
11762      # All AIX code is PIC.
11763      if test "$host_cpu" = ia64; then
11764	# AIX 5 now supports IA64 processor
11765	lt_prog_compiler_static_CXX='-Bstatic'
11766      fi
11767      ;;
11768    amigaos*)
11769      # FIXME: we need at least 68020 code to build shared libraries, but
11770      # adding the `-m68020' flag to GCC prevents building anything better,
11771      # like `-m68040'.
11772      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11773      ;;
11774    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11775      # PIC is the default for these OSes.
11776      ;;
11777    mingw* | os2* | pw32*)
11778      # This hack is so that the source file can tell whether it is being
11779      # built for inclusion in a dll (and should export symbols for example).
11780      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11781      ;;
11782    darwin* | rhapsody*)
11783      # PIC is the default on this platform
11784      # Common symbols not allowed in MH_DYLIB files
11785      lt_prog_compiler_pic_CXX='-fno-common'
11786      ;;
11787    *djgpp*)
11788      # DJGPP does not support shared libraries at all
11789      lt_prog_compiler_pic_CXX=
11790      ;;
11791    interix3*)
11792      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11793      # Instead, we relocate shared libraries at runtime.
11794      ;;
11795    sysv4*MP*)
11796      if test -d /usr/nec; then
11797	lt_prog_compiler_pic_CXX=-Kconform_pic
11798      fi
11799      ;;
11800    hpux*)
11801      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11802      # not for PA HP-UX.
11803      case $host_cpu in
11804      hppa*64*|ia64*)
11805	;;
11806      *)
11807	lt_prog_compiler_pic_CXX='-fPIC'
11808	;;
11809      esac
11810      ;;
11811    *)
11812      lt_prog_compiler_pic_CXX='-fPIC'
11813      ;;
11814    esac
11815  else
11816    case $host_os in
11817      aix4* | aix5*)
11818	# All AIX code is PIC.
11819	if test "$host_cpu" = ia64; then
11820	  # AIX 5 now supports IA64 processor
11821	  lt_prog_compiler_static_CXX='-Bstatic'
11822	else
11823	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11824	fi
11825	;;
11826      chorus*)
11827	case $cc_basename in
11828	cxch68*)
11829	  # Green Hills C++ Compiler
11830	  # _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"
11831	  ;;
11832	esac
11833	;;
11834       darwin*)
11835         # PIC is the default on this platform
11836         # Common symbols not allowed in MH_DYLIB files
11837         case $cc_basename in
11838           xlc*)
11839           lt_prog_compiler_pic_CXX='-qnocommon'
11840           lt_prog_compiler_wl_CXX='-Wl,'
11841           ;;
11842         esac
11843       ;;
11844      dgux*)
11845	case $cc_basename in
11846	  ec++*)
11847	    lt_prog_compiler_pic_CXX='-KPIC'
11848	    ;;
11849	  ghcx*)
11850	    # Green Hills C++ Compiler
11851	    lt_prog_compiler_pic_CXX='-pic'
11852	    ;;
11853	  *)
11854	    ;;
11855	esac
11856	;;
11857      freebsd* | kfreebsd*-gnu | dragonfly*)
11858	# FreeBSD uses GNU C++
11859	;;
11860      hpux9* | hpux10* | hpux11*)
11861	case $cc_basename in
11862	  CC*)
11863	    lt_prog_compiler_wl_CXX='-Wl,'
11864	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11865	    if test "$host_cpu" != ia64; then
11866	      lt_prog_compiler_pic_CXX='+Z'
11867	    fi
11868	    ;;
11869	  aCC*)
11870	    lt_prog_compiler_wl_CXX='-Wl,'
11871	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11872	    case $host_cpu in
11873	    hppa*64*|ia64*)
11874	      # +Z the default
11875	      ;;
11876	    *)
11877	      lt_prog_compiler_pic_CXX='+Z'
11878	      ;;
11879	    esac
11880	    ;;
11881	  *)
11882	    ;;
11883	esac
11884	;;
11885      interix*)
11886	# This is c89, which is MS Visual C++ (no shared libs)
11887	# Anyone wants to do a port?
11888	;;
11889      irix5* | irix6* | nonstopux*)
11890	case $cc_basename in
11891	  CC*)
11892	    lt_prog_compiler_wl_CXX='-Wl,'
11893	    lt_prog_compiler_static_CXX='-non_shared'
11894	    # CC pic flag -KPIC is the default.
11895	    ;;
11896	  *)
11897	    ;;
11898	esac
11899	;;
11900      linux*)
11901	case $cc_basename in
11902	  KCC*)
11903	    # KAI C++ Compiler
11904	    lt_prog_compiler_wl_CXX='--backend -Wl,'
11905	    lt_prog_compiler_pic_CXX='-fPIC'
11906	    ;;
11907	  icpc* | ecpc*)
11908	    # Intel C++
11909	    lt_prog_compiler_wl_CXX='-Wl,'
11910	    lt_prog_compiler_pic_CXX='-KPIC'
11911	    lt_prog_compiler_static_CXX='-static'
11912	    ;;
11913	  pgCC*)
11914	    # Portland Group C++ compiler.
11915	    lt_prog_compiler_wl_CXX='-Wl,'
11916	    lt_prog_compiler_pic_CXX='-fpic'
11917	    lt_prog_compiler_static_CXX='-Bstatic'
11918	    ;;
11919	  cxx*)
11920	    # Compaq C++
11921	    # Make sure the PIC flag is empty.  It appears that all Alpha
11922	    # Linux and Compaq Tru64 Unix objects are PIC.
11923	    lt_prog_compiler_pic_CXX=
11924	    lt_prog_compiler_static_CXX='-non_shared'
11925	    ;;
11926	  *)
11927	    ;;
11928	esac
11929	;;
11930      lynxos*)
11931	;;
11932      m88k*)
11933	;;
11934      mvs*)
11935	case $cc_basename in
11936	  cxx*)
11937	    lt_prog_compiler_pic_CXX='-W c,exportall'
11938	    ;;
11939	  *)
11940	    ;;
11941	esac
11942	;;
11943      netbsd*)
11944	;;
11945      osf3* | osf4* | osf5*)
11946	case $cc_basename in
11947	  KCC*)
11948	    lt_prog_compiler_wl_CXX='--backend -Wl,'
11949	    ;;
11950	  RCC*)
11951	    # Rational C++ 2.4.1
11952	    lt_prog_compiler_pic_CXX='-pic'
11953	    ;;
11954	  cxx*)
11955	    # Digital/Compaq C++
11956	    lt_prog_compiler_wl_CXX='-Wl,'
11957	    # Make sure the PIC flag is empty.  It appears that all Alpha
11958	    # Linux and Compaq Tru64 Unix objects are PIC.
11959	    lt_prog_compiler_pic_CXX=
11960	    lt_prog_compiler_static_CXX='-non_shared'
11961	    ;;
11962	  *)
11963	    ;;
11964	esac
11965	;;
11966      psos*)
11967	;;
11968      solaris*)
11969	case $cc_basename in
11970	  CC*)
11971	    # Sun C++ 4.2, 5.x and Centerline C++
11972	    lt_prog_compiler_pic_CXX='-KPIC'
11973	    lt_prog_compiler_static_CXX='-Bstatic'
11974	    lt_prog_compiler_wl_CXX='-Qoption ld '
11975	    ;;
11976	  gcx*)
11977	    # Green Hills C++ Compiler
11978	    lt_prog_compiler_pic_CXX='-PIC'
11979	    ;;
11980	  *)
11981	    ;;
11982	esac
11983	;;
11984      sunos4*)
11985	case $cc_basename in
11986	  CC*)
11987	    # Sun C++ 4.x
11988	    lt_prog_compiler_pic_CXX='-pic'
11989	    lt_prog_compiler_static_CXX='-Bstatic'
11990	    ;;
11991	  lcc*)
11992	    # Lucid
11993	    lt_prog_compiler_pic_CXX='-pic'
11994	    ;;
11995	  *)
11996	    ;;
11997	esac
11998	;;
11999      tandem*)
12000	case $cc_basename in
12001	  NCC*)
12002	    # NonStop-UX NCC 3.20
12003	    lt_prog_compiler_pic_CXX='-KPIC'
12004	    ;;
12005	  *)
12006	    ;;
12007	esac
12008	;;
12009      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12010	case $cc_basename in
12011	  CC*)
12012	    lt_prog_compiler_wl_CXX='-Wl,'
12013	    lt_prog_compiler_pic_CXX='-KPIC'
12014	    lt_prog_compiler_static_CXX='-Bstatic'
12015	    ;;
12016	esac
12017	;;
12018      vxworks*)
12019	;;
12020      *)
12021	lt_prog_compiler_can_build_shared_CXX=no
12022	;;
12023    esac
12024  fi
12025
12026echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12027echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
12028
12029#
12030# Check to make sure the PIC flag actually works.
12031#
12032if test -n "$lt_prog_compiler_pic_CXX"; then
12033
12034echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12035echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
12036if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12037  echo $ECHO_N "(cached) $ECHO_C" >&6
12038else
12039  lt_prog_compiler_pic_works_CXX=no
12040  ac_outfile=conftest.$ac_objext
12041   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12042   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12043   # Insert the option either (1) after the last *FLAGS variable, or
12044   # (2) before a word containing "conftest.", or (3) at the end.
12045   # Note that $ac_compile itself does not contain backslashes and begins
12046   # with a dollar sign (not a hyphen), so the echo should work correctly.
12047   # The option is referenced via a variable to avoid confusing sed.
12048   lt_compile=`echo "$ac_compile" | $SED \
12049   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12050   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12051   -e 's:$: $lt_compiler_flag:'`
12052   (eval echo "\"\$as_me:12052: $lt_compile\"" >&5)
12053   (eval "$lt_compile" 2>conftest.err)
12054   ac_status=$?
12055   cat conftest.err >&5
12056   echo "$as_me:12056: \$? = $ac_status" >&5
12057   if (exit $ac_status) && test -s "$ac_outfile"; then
12058     # The compiler can only warn and ignore the option if not recognized
12059     # So say no if there are warnings other than the usual output.
12060     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12061     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12062     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12063       lt_prog_compiler_pic_works_CXX=yes
12064     fi
12065   fi
12066   $rm conftest*
12067
12068fi
12069echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12070echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
12071
12072if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12073    case $lt_prog_compiler_pic_CXX in
12074     "" | " "*) ;;
12075     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12076     esac
12077else
12078    lt_prog_compiler_pic_CXX=
12079     lt_prog_compiler_can_build_shared_CXX=no
12080fi
12081
12082fi
12083case $host_os in
12084  # For platforms which do not support PIC, -DPIC is meaningless:
12085  *djgpp*)
12086    lt_prog_compiler_pic_CXX=
12087    ;;
12088  *)
12089    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12090    ;;
12091esac
12092
12093#
12094# Check to make sure the static flag actually works.
12095#
12096wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12097echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12098echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
12099if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12100  echo $ECHO_N "(cached) $ECHO_C" >&6
12101else
12102  lt_prog_compiler_static_works_CXX=no
12103   save_LDFLAGS="$LDFLAGS"
12104   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12105   printf "$lt_simple_link_test_code" > conftest.$ac_ext
12106   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12107     # The linker can only warn and ignore the option if not recognized
12108     # So say no if there are warnings
12109     if test -s conftest.err; then
12110       # Append any errors to the config.log.
12111       cat conftest.err 1>&5
12112       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12113       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12114       if diff conftest.exp conftest.er2 >/dev/null; then
12115         lt_prog_compiler_static_works_CXX=yes
12116       fi
12117     else
12118       lt_prog_compiler_static_works_CXX=yes
12119     fi
12120   fi
12121   $rm conftest*
12122   LDFLAGS="$save_LDFLAGS"
12123
12124fi
12125echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12126echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
12127
12128if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12129    :
12130else
12131    lt_prog_compiler_static_CXX=
12132fi
12133
12134
12135echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12136echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12137if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12138  echo $ECHO_N "(cached) $ECHO_C" >&6
12139else
12140  lt_cv_prog_compiler_c_o_CXX=no
12141   $rm -r conftest 2>/dev/null
12142   mkdir conftest
12143   cd conftest
12144   mkdir out
12145   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12146
12147   lt_compiler_flag="-o out/conftest2.$ac_objext"
12148   # Insert the option either (1) after the last *FLAGS variable, or
12149   # (2) before a word containing "conftest.", or (3) at the end.
12150   # Note that $ac_compile itself does not contain backslashes and begins
12151   # with a dollar sign (not a hyphen), so the echo should work correctly.
12152   lt_compile=`echo "$ac_compile" | $SED \
12153   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12154   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12155   -e 's:$: $lt_compiler_flag:'`
12156   (eval echo "\"\$as_me:12156: $lt_compile\"" >&5)
12157   (eval "$lt_compile" 2>out/conftest.err)
12158   ac_status=$?
12159   cat out/conftest.err >&5
12160   echo "$as_me:12160: \$? = $ac_status" >&5
12161   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12162   then
12163     # The compiler can only warn and ignore the option if not recognized
12164     # So say no if there are warnings
12165     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12166     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12167     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12168       lt_cv_prog_compiler_c_o_CXX=yes
12169     fi
12170   fi
12171   chmod u+w . 2>&5
12172   $rm conftest*
12173   # SGI C++ compiler will create directory out/ii_files/ for
12174   # template instantiation
12175   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12176   $rm out/* && rmdir out
12177   cd ..
12178   rmdir conftest
12179   $rm conftest*
12180
12181fi
12182echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12183echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
12184
12185
12186hard_links="nottested"
12187if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12188  # do not overwrite the value of need_locks provided by the user
12189  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12190echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12191  hard_links=yes
12192  $rm conftest*
12193  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12194  touch conftest.a
12195  ln conftest.a conftest.b 2>&5 || hard_links=no
12196  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12197  echo "$as_me:$LINENO: result: $hard_links" >&5
12198echo "${ECHO_T}$hard_links" >&6
12199  if test "$hard_links" = no; then
12200    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12201echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12202    need_locks=warn
12203  fi
12204else
12205  need_locks=no
12206fi
12207
12208echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12209echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12210
12211  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12212  case $host_os in
12213  aix4* | aix5*)
12214    # If we're using GNU nm, then we don't want the "-C" option.
12215    # -C means demangle to AIX nm, but means don't demangle with GNU nm
12216    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12217      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'
12218    else
12219      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'
12220    fi
12221    ;;
12222  pw32*)
12223    export_symbols_cmds_CXX="$ltdll_cmds"
12224  ;;
12225  cygwin* | mingw*)
12226    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'
12227  ;;
12228  *)
12229    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12230  ;;
12231  esac
12232
12233echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12234echo "${ECHO_T}$ld_shlibs_CXX" >&6
12235test "$ld_shlibs_CXX" = no && can_build_shared=no
12236
12237#
12238# Do we need to explicitly link libc?
12239#
12240case "x$archive_cmds_need_lc_CXX" in
12241x|xyes)
12242  # Assume -lc should be added
12243  archive_cmds_need_lc_CXX=yes
12244
12245  if test "$enable_shared" = yes && test "$GCC" = yes; then
12246    case $archive_cmds_CXX in
12247    *'~'*)
12248      # FIXME: we may have to deal with multi-command sequences.
12249      ;;
12250    '$CC '*)
12251      # Test whether the compiler implicitly links with -lc since on some
12252      # systems, -lgcc has to come before -lc. If gcc already passes -lc
12253      # to ld, don't add -lc before -lgcc.
12254      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12255echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12256      $rm conftest*
12257      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12258
12259      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12260  (eval $ac_compile) 2>&5
12261  ac_status=$?
12262  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12263  (exit $ac_status); } 2>conftest.err; then
12264        soname=conftest
12265        lib=conftest
12266        libobjs=conftest.$ac_objext
12267        deplibs=
12268        wl=$lt_prog_compiler_wl_CXX
12269	pic_flag=$lt_prog_compiler_pic_CXX
12270        compiler_flags=-v
12271        linker_flags=-v
12272        verstring=
12273        output_objdir=.
12274        libname=conftest
12275        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12276        allow_undefined_flag_CXX=
12277        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12278  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12279  ac_status=$?
12280  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12281  (exit $ac_status); }
12282        then
12283	  archive_cmds_need_lc_CXX=no
12284        else
12285	  archive_cmds_need_lc_CXX=yes
12286        fi
12287        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12288      else
12289        cat conftest.err 1>&5
12290      fi
12291      $rm conftest*
12292      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12293echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
12294      ;;
12295    esac
12296  fi
12297  ;;
12298esac
12299
12300echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12301echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12302library_names_spec=
12303libname_spec='lib$name'
12304soname_spec=
12305shrext_cmds=".so"
12306postinstall_cmds=
12307postuninstall_cmds=
12308finish_cmds=
12309finish_eval=
12310shlibpath_var=
12311shlibpath_overrides_runpath=unknown
12312version_type=none
12313dynamic_linker="$host_os ld.so"
12314sys_lib_dlsearch_path_spec="/lib /usr/lib"
12315if test "$GCC" = yes; then
12316  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12317  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12318    # if the path contains ";" then we assume it to be the separator
12319    # otherwise default to the standard path separator (i.e. ":") - it is
12320    # assumed that no part of a normal pathname contains ";" but that should
12321    # okay in the real world where ";" in dirpaths is itself problematic.
12322    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12323  else
12324    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12325  fi
12326else
12327  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12328fi
12329need_lib_prefix=unknown
12330hardcode_into_libs=no
12331
12332# when you set need_version to no, make sure it does not cause -set_version
12333# flags to be left without arguments
12334need_version=unknown
12335
12336case $host_os in
12337aix3*)
12338  version_type=linux
12339  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12340  shlibpath_var=LIBPATH
12341
12342  # AIX 3 has no versioning support, so we append a major version to the name.
12343  soname_spec='${libname}${release}${shared_ext}$major'
12344  ;;
12345
12346aix4* | aix5*)
12347  version_type=linux
12348  need_lib_prefix=no
12349  need_version=no
12350  hardcode_into_libs=yes
12351  if test "$host_cpu" = ia64; then
12352    # AIX 5 supports IA64
12353    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12354    shlibpath_var=LD_LIBRARY_PATH
12355  else
12356    # With GCC up to 2.95.x, collect2 would create an import file
12357    # for dependence libraries.  The import file would start with
12358    # the line `#! .'.  This would cause the generated library to
12359    # depend on `.', always an invalid library.  This was fixed in
12360    # development snapshots of GCC prior to 3.0.
12361    case $host_os in
12362      aix4 | aix4.[01] | aix4.[01].*)
12363      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12364	   echo ' yes '
12365	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12366	:
12367      else
12368	can_build_shared=no
12369      fi
12370      ;;
12371    esac
12372    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12373    # soname into executable. Probably we can add versioning support to
12374    # collect2, so additional links can be useful in future.
12375    if test "$aix_use_runtimelinking" = yes; then
12376      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12377      # instead of lib<name>.a to let people know that these are not
12378      # typical AIX shared libraries.
12379      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12380    else
12381      # We preserve .a as extension for shared libraries through AIX4.2
12382      # and later when we are not doing run time linking.
12383      library_names_spec='${libname}${release}.a $libname.a'
12384      soname_spec='${libname}${release}${shared_ext}$major'
12385    fi
12386    shlibpath_var=LIBPATH
12387  fi
12388  ;;
12389
12390amigaos*)
12391  library_names_spec='$libname.ixlibrary $libname.a'
12392  # Create ${libname}_ixlibrary.a entries in /sys/libs.
12393  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'
12394  ;;
12395
12396beos*)
12397  library_names_spec='${libname}${shared_ext}'
12398  dynamic_linker="$host_os ld.so"
12399  shlibpath_var=LIBRARY_PATH
12400  ;;
12401
12402bsdi[45]*)
12403  version_type=linux
12404  need_version=no
12405  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12406  soname_spec='${libname}${release}${shared_ext}$major'
12407  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12408  shlibpath_var=LD_LIBRARY_PATH
12409  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12410  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12411  # the default ld.so.conf also contains /usr/contrib/lib and
12412  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12413  # libtool to hard-code these into programs
12414  ;;
12415
12416cygwin* | mingw* | pw32*)
12417  version_type=windows
12418  shrext_cmds=".dll"
12419  need_version=no
12420  need_lib_prefix=no
12421
12422  case $GCC,$host_os in
12423  yes,cygwin* | yes,mingw* | yes,pw32*)
12424    library_names_spec='$libname.dll.a'
12425    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12426    postinstall_cmds='base_file=`basename \${file}`~
12427      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12428      dldir=$destdir/`dirname \$dlpath`~
12429      test -d \$dldir || mkdir -p \$dldir~
12430      $install_prog $dir/$dlname \$dldir/$dlname~
12431      chmod a+x \$dldir/$dlname'
12432    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12433      dlpath=$dir/\$dldll~
12434       $rm \$dlpath'
12435    shlibpath_overrides_runpath=yes
12436
12437    case $host_os in
12438    cygwin*)
12439      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12440      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12441      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12442      ;;
12443    mingw*)
12444      # MinGW DLLs use traditional 'lib' prefix
12445      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12446      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12447      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12448        # It is most probably a Windows format PATH printed by
12449        # mingw gcc, but we are running on Cygwin. Gcc prints its search
12450        # path with ; separators, and with drive letters. We can handle the
12451        # drive letters (cygwin fileutils understands them), so leave them,
12452        # especially as we might pass files found there to a mingw objdump,
12453        # which wouldn't understand a cygwinified path. Ahh.
12454        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12455      else
12456        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12457      fi
12458      ;;
12459    pw32*)
12460      # pw32 DLLs use 'pw' prefix rather than 'lib'
12461      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12462      ;;
12463    esac
12464    ;;
12465
12466  *)
12467    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12468    ;;
12469  esac
12470  dynamic_linker='Win32 ld.exe'
12471  # FIXME: first we should search . and the directory the executable is in
12472  shlibpath_var=PATH
12473  ;;
12474
12475darwin* | rhapsody*)
12476  dynamic_linker="$host_os dyld"
12477  version_type=darwin
12478  need_lib_prefix=no
12479  need_version=no
12480  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12481  soname_spec='${libname}${release}${major}$shared_ext'
12482  shlibpath_overrides_runpath=yes
12483  shlibpath_var=DYLD_LIBRARY_PATH
12484  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12485  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12486  if test "$GCC" = yes; then
12487    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"`
12488  else
12489    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12490  fi
12491  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12492  ;;
12493
12494dgux*)
12495  version_type=linux
12496  need_lib_prefix=no
12497  need_version=no
12498  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12499  soname_spec='${libname}${release}${shared_ext}$major'
12500  shlibpath_var=LD_LIBRARY_PATH
12501  ;;
12502
12503freebsd1*)
12504  dynamic_linker=no
12505  ;;
12506
12507kfreebsd*-gnu)
12508  version_type=linux
12509  need_lib_prefix=no
12510  need_version=no
12511  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12512  soname_spec='${libname}${release}${shared_ext}$major'
12513  shlibpath_var=LD_LIBRARY_PATH
12514  shlibpath_overrides_runpath=no
12515  hardcode_into_libs=yes
12516  dynamic_linker='GNU ld.so'
12517  ;;
12518
12519freebsd* | dragonfly*)
12520  # DragonFly does not have aout.  When/if they implement a new
12521  # versioning mechanism, adjust this.
12522  if test -x /usr/bin/objformat; then
12523    objformat=`/usr/bin/objformat`
12524  else
12525    case $host_os in
12526    freebsd[123]*) objformat=aout ;;
12527    *) objformat=elf ;;
12528    esac
12529  fi
12530  version_type=freebsd-$objformat
12531  case $version_type in
12532    freebsd-elf*)
12533      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12534      need_version=no
12535      need_lib_prefix=no
12536      ;;
12537    freebsd-*)
12538      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12539      need_version=yes
12540      ;;
12541  esac
12542  shlibpath_var=LD_LIBRARY_PATH
12543  case $host_os in
12544  freebsd2*)
12545    shlibpath_overrides_runpath=yes
12546    ;;
12547  freebsd3.[01]* | freebsdelf3.[01]*)
12548    shlibpath_overrides_runpath=yes
12549    hardcode_into_libs=yes
12550    ;;
12551  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12552  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12553    shlibpath_overrides_runpath=no
12554    hardcode_into_libs=yes
12555    ;;
12556  freebsd*) # from 4.6 on
12557    shlibpath_overrides_runpath=yes
12558    hardcode_into_libs=yes
12559    ;;
12560  esac
12561  ;;
12562
12563gnu*)
12564  version_type=linux
12565  need_lib_prefix=no
12566  need_version=no
12567  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12568  soname_spec='${libname}${release}${shared_ext}$major'
12569  shlibpath_var=LD_LIBRARY_PATH
12570  hardcode_into_libs=yes
12571  ;;
12572
12573hpux9* | hpux10* | hpux11*)
12574  # Give a soname corresponding to the major version so that dld.sl refuses to
12575  # link against other versions.
12576  version_type=sunos
12577  need_lib_prefix=no
12578  need_version=no
12579  case $host_cpu in
12580  ia64*)
12581    shrext_cmds='.so'
12582    hardcode_into_libs=yes
12583    dynamic_linker="$host_os dld.so"
12584    shlibpath_var=LD_LIBRARY_PATH
12585    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12586    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12587    soname_spec='${libname}${release}${shared_ext}$major'
12588    if test "X$HPUX_IA64_MODE" = X32; then
12589      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12590    else
12591      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12592    fi
12593    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12594    ;;
12595   hppa*64*)
12596     shrext_cmds='.sl'
12597     hardcode_into_libs=yes
12598     dynamic_linker="$host_os dld.sl"
12599     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12600     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12601     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12602     soname_spec='${libname}${release}${shared_ext}$major'
12603     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12604     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12605     ;;
12606   *)
12607    shrext_cmds='.sl'
12608    dynamic_linker="$host_os dld.sl"
12609    shlibpath_var=SHLIB_PATH
12610    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12611    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12612    soname_spec='${libname}${release}${shared_ext}$major'
12613    ;;
12614  esac
12615  # HP-UX runs *really* slowly unless shared libraries are mode 555.
12616  postinstall_cmds='chmod 555 $lib'
12617  ;;
12618
12619interix3*)
12620  version_type=linux
12621  need_lib_prefix=no
12622  need_version=no
12623  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12624  soname_spec='${libname}${release}${shared_ext}$major'
12625  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12626  shlibpath_var=LD_LIBRARY_PATH
12627  shlibpath_overrides_runpath=no
12628  hardcode_into_libs=yes
12629  ;;
12630
12631irix5* | irix6* | nonstopux*)
12632  case $host_os in
12633    nonstopux*) version_type=nonstopux ;;
12634    *)
12635	if test "$lt_cv_prog_gnu_ld" = yes; then
12636		version_type=linux
12637	else
12638		version_type=irix
12639	fi ;;
12640  esac
12641  need_lib_prefix=no
12642  need_version=no
12643  soname_spec='${libname}${release}${shared_ext}$major'
12644  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12645  case $host_os in
12646  irix5* | nonstopux*)
12647    libsuff= shlibsuff=
12648    ;;
12649  *)
12650    case $LD in # libtool.m4 will add one of these switches to LD
12651    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12652      libsuff= shlibsuff= libmagic=32-bit;;
12653    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12654      libsuff=32 shlibsuff=N32 libmagic=N32;;
12655    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12656      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12657    *) libsuff= shlibsuff= libmagic=never-match;;
12658    esac
12659    ;;
12660  esac
12661  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12662  shlibpath_overrides_runpath=no
12663  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12664  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12665  hardcode_into_libs=yes
12666  ;;
12667
12668# No shared lib support for Linux oldld, aout, or coff.
12669linux*oldld* | linux*aout* | linux*coff*)
12670  dynamic_linker=no
12671  ;;
12672
12673# This must be Linux ELF.
12674linux*)
12675  version_type=linux
12676  need_lib_prefix=no
12677  need_version=no
12678  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12679  soname_spec='${libname}${release}${shared_ext}$major'
12680  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12681  shlibpath_var=LD_LIBRARY_PATH
12682  shlibpath_overrides_runpath=no
12683  # This implies no fast_install, which is unacceptable.
12684  # Some rework will be needed to allow for fast_install
12685  # before this can be enabled.
12686  hardcode_into_libs=yes
12687
12688  # find out which ABI we are using
12689  libsuff=
12690  case "$host_cpu" in
12691  x86_64*|s390x*|powerpc64*)
12692    echo '#line 12692 "configure"' > conftest.$ac_ext
12693    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12694  (eval $ac_compile) 2>&5
12695  ac_status=$?
12696  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12697  (exit $ac_status); }; then
12698      case `/usr/bin/file conftest.$ac_objext` in
12699      *64-bit*)
12700        libsuff=64
12701        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
12702        ;;
12703      esac
12704    fi
12705    rm -rf conftest*
12706    ;;
12707  esac
12708
12709  # Append ld.so.conf contents to the search path
12710  if test -f /etc/ld.so.conf; then
12711    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12712    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
12713  fi
12714
12715  # We used to test for /lib/ld.so.1 and disable shared libraries on
12716  # powerpc, because MkLinux only supported shared libraries with the
12717  # GNU dynamic linker.  Since this was broken with cross compilers,
12718  # most powerpc-linux boxes support dynamic linking these days and
12719  # people can always --disable-shared, the test was removed, and we
12720  # assume the GNU/Linux dynamic linker is in use.
12721  dynamic_linker='GNU/Linux ld.so'
12722  ;;
12723
12724knetbsd*-gnu)
12725  version_type=linux
12726  need_lib_prefix=no
12727  need_version=no
12728  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12729  soname_spec='${libname}${release}${shared_ext}$major'
12730  shlibpath_var=LD_LIBRARY_PATH
12731  shlibpath_overrides_runpath=no
12732  hardcode_into_libs=yes
12733  dynamic_linker='GNU ld.so'
12734  ;;
12735
12736netbsd*)
12737  version_type=sunos
12738  need_lib_prefix=no
12739  need_version=no
12740  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12741    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12742    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12743    dynamic_linker='NetBSD (a.out) ld.so'
12744  else
12745    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12746    soname_spec='${libname}${release}${shared_ext}$major'
12747    dynamic_linker='NetBSD ld.elf_so'
12748  fi
12749  shlibpath_var=LD_LIBRARY_PATH
12750  shlibpath_overrides_runpath=yes
12751  hardcode_into_libs=yes
12752  ;;
12753
12754newsos6)
12755  version_type=linux
12756  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12757  shlibpath_var=LD_LIBRARY_PATH
12758  shlibpath_overrides_runpath=yes
12759  ;;
12760
12761nto-qnx*)
12762  version_type=linux
12763  need_lib_prefix=no
12764  need_version=no
12765  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12766  soname_spec='${libname}${release}${shared_ext}$major'
12767  shlibpath_var=LD_LIBRARY_PATH
12768  shlibpath_overrides_runpath=yes
12769  ;;
12770
12771openbsd*)
12772  version_type=sunos
12773  sys_lib_dlsearch_path_spec="/usr/lib"
12774  need_lib_prefix=no
12775  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12776  case $host_os in
12777    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12778    *)                         need_version=no  ;;
12779  esac
12780  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12781  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12782  shlibpath_var=LD_LIBRARY_PATH
12783  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12784    case $host_os in
12785      openbsd2.[89] | openbsd2.[89].*)
12786	shlibpath_overrides_runpath=no
12787	;;
12788      *)
12789	shlibpath_overrides_runpath=yes
12790	;;
12791      esac
12792  else
12793    shlibpath_overrides_runpath=yes
12794  fi
12795  ;;
12796
12797os2*)
12798  libname_spec='$name'
12799  shrext_cmds=".dll"
12800  need_lib_prefix=no
12801  library_names_spec='$libname${shared_ext} $libname.a'
12802  dynamic_linker='OS/2 ld.exe'
12803  shlibpath_var=LIBPATH
12804  ;;
12805
12806osf3* | osf4* | osf5*)
12807  version_type=osf
12808  need_lib_prefix=no
12809  need_version=no
12810  soname_spec='${libname}${release}${shared_ext}$major'
12811  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12812  shlibpath_var=LD_LIBRARY_PATH
12813  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12814  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12815  ;;
12816
12817solaris*)
12818  version_type=linux
12819  need_lib_prefix=no
12820  need_version=no
12821  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12822  soname_spec='${libname}${release}${shared_ext}$major'
12823  shlibpath_var=LD_LIBRARY_PATH
12824  shlibpath_overrides_runpath=yes
12825  hardcode_into_libs=yes
12826  # ldd complains unless libraries are executable
12827  postinstall_cmds='chmod +x $lib'
12828  ;;
12829
12830sunos4*)
12831  version_type=sunos
12832  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12833  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12834  shlibpath_var=LD_LIBRARY_PATH
12835  shlibpath_overrides_runpath=yes
12836  if test "$with_gnu_ld" = yes; then
12837    need_lib_prefix=no
12838  fi
12839  need_version=yes
12840  ;;
12841
12842sysv4 | sysv4.3*)
12843  version_type=linux
12844  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12845  soname_spec='${libname}${release}${shared_ext}$major'
12846  shlibpath_var=LD_LIBRARY_PATH
12847  case $host_vendor in
12848    sni)
12849      shlibpath_overrides_runpath=no
12850      need_lib_prefix=no
12851      export_dynamic_flag_spec='${wl}-Blargedynsym'
12852      runpath_var=LD_RUN_PATH
12853      ;;
12854    siemens)
12855      need_lib_prefix=no
12856      ;;
12857    motorola)
12858      need_lib_prefix=no
12859      need_version=no
12860      shlibpath_overrides_runpath=no
12861      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12862      ;;
12863  esac
12864  ;;
12865
12866sysv4*MP*)
12867  if test -d /usr/nec ;then
12868    version_type=linux
12869    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12870    soname_spec='$libname${shared_ext}.$major'
12871    shlibpath_var=LD_LIBRARY_PATH
12872  fi
12873  ;;
12874
12875sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12876  version_type=freebsd-elf
12877  need_lib_prefix=no
12878  need_version=no
12879  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12880  soname_spec='${libname}${release}${shared_ext}$major'
12881  shlibpath_var=LD_LIBRARY_PATH
12882  hardcode_into_libs=yes
12883  if test "$with_gnu_ld" = yes; then
12884    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12885    shlibpath_overrides_runpath=no
12886  else
12887    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12888    shlibpath_overrides_runpath=yes
12889    case $host_os in
12890      sco3.2v5*)
12891        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12892	;;
12893    esac
12894  fi
12895  sys_lib_dlsearch_path_spec='/usr/lib'
12896  ;;
12897
12898uts4*)
12899  version_type=linux
12900  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12901  soname_spec='${libname}${release}${shared_ext}$major'
12902  shlibpath_var=LD_LIBRARY_PATH
12903  ;;
12904
12905*)
12906  dynamic_linker=no
12907  ;;
12908esac
12909echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12910echo "${ECHO_T}$dynamic_linker" >&6
12911test "$dynamic_linker" = no && can_build_shared=no
12912
12913variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12914if test "$GCC" = yes; then
12915  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12916fi
12917
12918echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12919echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12920hardcode_action_CXX=
12921if test -n "$hardcode_libdir_flag_spec_CXX" || \
12922   test -n "$runpath_var_CXX" || \
12923   test "X$hardcode_automatic_CXX" = "Xyes" ; then
12924
12925  # We can hardcode non-existant directories.
12926  if test "$hardcode_direct_CXX" != no &&
12927     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12928     # have to relink, otherwise we might link with an installed library
12929     # when we should be linking with a yet-to-be-installed one
12930     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12931     test "$hardcode_minus_L_CXX" != no; then
12932    # Linking always hardcodes the temporary library directory.
12933    hardcode_action_CXX=relink
12934  else
12935    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12936    hardcode_action_CXX=immediate
12937  fi
12938else
12939  # We cannot hardcode anything, or else we can only hardcode existing
12940  # directories.
12941  hardcode_action_CXX=unsupported
12942fi
12943echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12944echo "${ECHO_T}$hardcode_action_CXX" >&6
12945
12946if test "$hardcode_action_CXX" = relink; then
12947  # Fast installation is not supported
12948  enable_fast_install=no
12949elif test "$shlibpath_overrides_runpath" = yes ||
12950     test "$enable_shared" = no; then
12951  # Fast installation is not necessary
12952  enable_fast_install=needless
12953fi
12954
12955
12956# The else clause should only fire when bootstrapping the
12957# libtool distribution, otherwise you forgot to ship ltmain.sh
12958# with your package, and you will get complaints that there are
12959# no rules to generate ltmain.sh.
12960if test -f "$ltmain"; then
12961  # See if we are running on zsh, and set the options which allow our commands through
12962  # without removal of \ escapes.
12963  if test -n "${ZSH_VERSION+set}" ; then
12964    setopt NO_GLOB_SUBST
12965  fi
12966  # Now quote all the things that may contain metacharacters while being
12967  # careful not to overquote the AC_SUBSTed values.  We take copies of the
12968  # variables and quote the copies for generation of the libtool script.
12969  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12970    SED SHELL STRIP \
12971    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12972    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12973    deplibs_check_method reload_flag reload_cmds need_locks \
12974    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12975    lt_cv_sys_global_symbol_to_c_name_address \
12976    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12977    old_postinstall_cmds old_postuninstall_cmds \
12978    compiler_CXX \
12979    CC_CXX \
12980    LD_CXX \
12981    lt_prog_compiler_wl_CXX \
12982    lt_prog_compiler_pic_CXX \
12983    lt_prog_compiler_static_CXX \
12984    lt_prog_compiler_no_builtin_flag_CXX \
12985    export_dynamic_flag_spec_CXX \
12986    thread_safe_flag_spec_CXX \
12987    whole_archive_flag_spec_CXX \
12988    enable_shared_with_static_runtimes_CXX \
12989    old_archive_cmds_CXX \
12990    old_archive_from_new_cmds_CXX \
12991    predep_objects_CXX \
12992    postdep_objects_CXX \
12993    predeps_CXX \
12994    postdeps_CXX \
12995    compiler_lib_search_path_CXX \
12996    archive_cmds_CXX \
12997    archive_expsym_cmds_CXX \
12998    postinstall_cmds_CXX \
12999    postuninstall_cmds_CXX \
13000    old_archive_from_expsyms_cmds_CXX \
13001    allow_undefined_flag_CXX \
13002    no_undefined_flag_CXX \
13003    export_symbols_cmds_CXX \
13004    hardcode_libdir_flag_spec_CXX \
13005    hardcode_libdir_flag_spec_ld_CXX \
13006    hardcode_libdir_separator_CXX \
13007    hardcode_automatic_CXX \
13008    module_cmds_CXX \
13009    module_expsym_cmds_CXX \
13010    lt_cv_prog_compiler_c_o_CXX \
13011    exclude_expsyms_CXX \
13012    include_expsyms_CXX; do
13013
13014    case $var in
13015    old_archive_cmds_CXX | \
13016    old_archive_from_new_cmds_CXX | \
13017    archive_cmds_CXX | \
13018    archive_expsym_cmds_CXX | \
13019    module_cmds_CXX | \
13020    module_expsym_cmds_CXX | \
13021    old_archive_from_expsyms_cmds_CXX | \
13022    export_symbols_cmds_CXX | \
13023    extract_expsyms_cmds | reload_cmds | finish_cmds | \
13024    postinstall_cmds | postuninstall_cmds | \
13025    old_postinstall_cmds | old_postuninstall_cmds | \
13026    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13027      # Double-quote double-evaled strings.
13028      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13029      ;;
13030    *)
13031      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13032      ;;
13033    esac
13034  done
13035
13036  case $lt_echo in
13037  *'\$0 --fallback-echo"')
13038    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13039    ;;
13040  esac
13041
13042cfgfile="$ofile"
13043
13044  cat <<__EOF__ >> "$cfgfile"
13045# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13046
13047# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13048
13049# Shell to use when invoking shell scripts.
13050SHELL=$lt_SHELL
13051
13052# Whether or not to build shared libraries.
13053build_libtool_libs=$enable_shared
13054
13055# Whether or not to build static libraries.
13056build_old_libs=$enable_static
13057
13058# Whether or not to add -lc for building shared libraries.
13059build_libtool_need_lc=$archive_cmds_need_lc_CXX
13060
13061# Whether or not to disallow shared libs when runtime libs are static
13062allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13063
13064# Whether or not to optimize for fast installation.
13065fast_install=$enable_fast_install
13066
13067# The host system.
13068host_alias=$host_alias
13069host=$host
13070host_os=$host_os
13071
13072# The build system.
13073build_alias=$build_alias
13074build=$build
13075build_os=$build_os
13076
13077# An echo program that does not interpret backslashes.
13078echo=$lt_echo
13079
13080# The archiver.
13081AR=$lt_AR
13082AR_FLAGS=$lt_AR_FLAGS
13083
13084# A C compiler.
13085LTCC=$lt_LTCC
13086
13087# LTCC compiler flags.
13088LTCFLAGS=$lt_LTCFLAGS
13089
13090# A language-specific compiler.
13091CC=$lt_compiler_CXX
13092
13093# Is the compiler the GNU C compiler?
13094with_gcc=$GCC_CXX
13095
13096gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
13097gcc_ver=\`gcc -dumpversion\`
13098
13099# An ERE matcher.
13100EGREP=$lt_EGREP
13101
13102# The linker used to build libraries.
13103LD=$lt_LD_CXX
13104
13105# Whether we need hard or soft links.
13106LN_S=$lt_LN_S
13107
13108# A BSD-compatible nm program.
13109NM=$lt_NM
13110
13111# A symbol stripping program
13112STRIP=$lt_STRIP
13113
13114# Used to examine libraries when file_magic_cmd begins "file"
13115MAGIC_CMD=$MAGIC_CMD
13116
13117# Used on cygwin: DLL creation program.
13118DLLTOOL="$DLLTOOL"
13119
13120# Used on cygwin: object dumper.
13121OBJDUMP="$OBJDUMP"
13122
13123# Used on cygwin: assembler.
13124AS="$AS"
13125
13126# The name of the directory that contains temporary libtool files.
13127objdir=$objdir
13128
13129# How to create reloadable object files.
13130reload_flag=$lt_reload_flag
13131reload_cmds=$lt_reload_cmds
13132
13133# How to pass a linker flag through the compiler.
13134wl=$lt_lt_prog_compiler_wl_CXX
13135
13136# Object file suffix (normally "o").
13137objext="$ac_objext"
13138
13139# Old archive suffix (normally "a").
13140libext="$libext"
13141
13142# Shared library suffix (normally ".so").
13143shrext_cmds='$shrext_cmds'
13144
13145# Executable file suffix (normally "").
13146exeext="$exeext"
13147
13148# Additional compiler flags for building library objects.
13149pic_flag=$lt_lt_prog_compiler_pic_CXX
13150pic_mode=$pic_mode
13151
13152# What is the maximum length of a command?
13153max_cmd_len=$lt_cv_sys_max_cmd_len
13154
13155# Does compiler simultaneously support -c and -o options?
13156compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13157
13158# Must we lock files when doing compilation?
13159need_locks=$lt_need_locks
13160
13161# Do we need the lib prefix for modules?
13162need_lib_prefix=$need_lib_prefix
13163
13164# Do we need a version for libraries?
13165need_version=$need_version
13166
13167# Whether dlopen is supported.
13168dlopen_support=$enable_dlopen
13169
13170# Whether dlopen of programs is supported.
13171dlopen_self=$enable_dlopen_self
13172
13173# Whether dlopen of statically linked programs is supported.
13174dlopen_self_static=$enable_dlopen_self_static
13175
13176# Compiler flag to prevent dynamic linking.
13177link_static_flag=$lt_lt_prog_compiler_static_CXX
13178
13179# Compiler flag to turn off builtin functions.
13180no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13181
13182# Compiler flag to allow reflexive dlopens.
13183export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13184
13185# Compiler flag to generate shared objects directly from archives.
13186whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13187
13188# Compiler flag to generate thread-safe objects.
13189thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13190
13191# Library versioning type.
13192version_type=$version_type
13193
13194# Format of library name prefix.
13195libname_spec=$lt_libname_spec
13196
13197# List of archive names.  First name is the real one, the rest are links.
13198# The last name is the one that the linker finds with -lNAME.
13199library_names_spec=$lt_library_names_spec
13200
13201# The coded name of the library, if different from the real name.
13202soname_spec=$lt_soname_spec
13203
13204# Commands used to build and install an old-style archive.
13205RANLIB=$lt_RANLIB
13206old_archive_cmds=$lt_old_archive_cmds_CXX
13207old_postinstall_cmds=$lt_old_postinstall_cmds
13208old_postuninstall_cmds=$lt_old_postuninstall_cmds
13209
13210# Create an old-style archive from a shared archive.
13211old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13212
13213# Create a temporary old-style archive to link instead of a shared archive.
13214old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13215
13216# Commands used to build and install a shared archive.
13217archive_cmds=$lt_archive_cmds_CXX
13218archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13219postinstall_cmds=$lt_postinstall_cmds
13220postuninstall_cmds=$lt_postuninstall_cmds
13221
13222# Commands used to build a loadable module (assumed same as above if empty)
13223module_cmds=$lt_module_cmds_CXX
13224module_expsym_cmds=$lt_module_expsym_cmds_CXX
13225
13226# Commands to strip libraries.
13227old_striplib=$lt_old_striplib
13228striplib=$lt_striplib
13229
13230# Dependencies to place before the objects being linked to create a
13231# shared library.
13232predep_objects=\`echo $lt_predep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13233
13234# Dependencies to place after the objects being linked to create a
13235# shared library.
13236postdep_objects=\`echo $lt_postdep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13237
13238# Dependencies to place before the objects being linked to create a
13239# shared library.
13240predeps=$lt_predeps_CXX
13241
13242# Dependencies to place after the objects being linked to create a
13243# shared library.
13244postdeps=$lt_postdeps_CXX
13245
13246# The library search path used internally by the compiler when linking
13247# a shared library.
13248compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13249
13250# Method to check whether dependent libraries are shared objects.
13251deplibs_check_method=$lt_deplibs_check_method
13252
13253# Command to use when deplibs_check_method == file_magic.
13254file_magic_cmd=$lt_file_magic_cmd
13255
13256# Flag that allows shared libraries with undefined symbols to be built.
13257allow_undefined_flag=$lt_allow_undefined_flag_CXX
13258
13259# Flag that forces no undefined symbols.
13260no_undefined_flag=$lt_no_undefined_flag_CXX
13261
13262# Commands used to finish a libtool library installation in a directory.
13263finish_cmds=$lt_finish_cmds
13264
13265# Same as above, but a single script fragment to be evaled but not shown.
13266finish_eval=$lt_finish_eval
13267
13268# Take the output of nm and produce a listing of raw symbols and C names.
13269global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13270
13271# Transform the output of nm in a proper C declaration
13272global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13273
13274# Transform the output of nm in a C name address pair
13275global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13276
13277# This is the shared library runtime path variable.
13278runpath_var=$runpath_var
13279
13280# This is the shared library path variable.
13281shlibpath_var=$shlibpath_var
13282
13283# Is shlibpath searched before the hard-coded library search path?
13284shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13285
13286# How to hardcode a shared library path into an executable.
13287hardcode_action=$hardcode_action_CXX
13288
13289# Whether we should hardcode library paths into libraries.
13290hardcode_into_libs=$hardcode_into_libs
13291
13292# Flag to hardcode \$libdir into a binary during linking.
13293# This must work even if \$libdir does not exist.
13294hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13295
13296# If ld is used when linking, flag to hardcode \$libdir into
13297# a binary during linking. This must work even if \$libdir does
13298# not exist.
13299hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13300
13301# Whether we need a single -rpath flag with a separated argument.
13302hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13303
13304# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13305# resulting binary.
13306hardcode_direct=$hardcode_direct_CXX
13307
13308# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13309# resulting binary.
13310hardcode_minus_L=$hardcode_minus_L_CXX
13311
13312# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13313# the resulting binary.
13314hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13315
13316# Set to yes if building a shared library automatically hardcodes DIR into the library
13317# and all subsequent libraries and executables linked against it.
13318hardcode_automatic=$hardcode_automatic_CXX
13319
13320# Variables whose values should be saved in libtool wrapper scripts and
13321# restored at relink time.
13322variables_saved_for_relink="$variables_saved_for_relink"
13323
13324# Whether libtool must link a program against all its dependency libraries.
13325link_all_deplibs=$link_all_deplibs_CXX
13326
13327# Compile-time system search path for libraries
13328sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
13329
13330# Run-time system search path for libraries
13331sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13332
13333# Fix the shell variable \$srcfile for the compiler.
13334fix_srcfile_path="$fix_srcfile_path_CXX"
13335
13336# Set to yes if exported symbols are required.
13337always_export_symbols=$always_export_symbols_CXX
13338
13339# The commands to list exported symbols.
13340export_symbols_cmds=$lt_export_symbols_cmds_CXX
13341
13342# The commands to extract the exported symbol list from a shared archive.
13343extract_expsyms_cmds=$lt_extract_expsyms_cmds
13344
13345# Symbols that should not be listed in the preloaded symbols.
13346exclude_expsyms=$lt_exclude_expsyms_CXX
13347
13348# Symbols that must always be exported.
13349include_expsyms=$lt_include_expsyms_CXX
13350
13351# ### END LIBTOOL TAG CONFIG: $tagname
13352
13353__EOF__
13354
13355
13356else
13357  # If there is no Makefile yet, we rely on a make rule to execute
13358  # `config.status --recheck' to rerun these tests and create the
13359  # libtool script then.
13360  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13361  if test -f "$ltmain_in"; then
13362    test -f Makefile && make "$ltmain"
13363  fi
13364fi
13365
13366
13367ac_ext=c
13368ac_cpp='$CPP $CPPFLAGS'
13369ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13370ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13371ac_compiler_gnu=$ac_cv_c_compiler_gnu
13372
13373CC=$lt_save_CC
13374LDCXX=$LD
13375LD=$lt_save_LD
13376GCC=$lt_save_GCC
13377with_gnu_ldcxx=$with_gnu_ld
13378with_gnu_ld=$lt_save_with_gnu_ld
13379lt_cv_path_LDCXX=$lt_cv_path_LD
13380lt_cv_path_LD=$lt_save_path_LD
13381lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13382lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13383
13384	else
13385	  tagname=""
13386	fi
13387	;;
13388
13389      F77)
13390	if test -n "$F77" && test "X$F77" != "Xno"; then
13391
13392ac_ext=f
13393ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13394ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13395ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13396
13397
13398archive_cmds_need_lc_F77=no
13399allow_undefined_flag_F77=
13400always_export_symbols_F77=no
13401archive_expsym_cmds_F77=
13402export_dynamic_flag_spec_F77=
13403hardcode_direct_F77=no
13404hardcode_libdir_flag_spec_F77=
13405hardcode_libdir_flag_spec_ld_F77=
13406hardcode_libdir_separator_F77=
13407hardcode_minus_L_F77=no
13408hardcode_automatic_F77=no
13409module_cmds_F77=
13410module_expsym_cmds_F77=
13411link_all_deplibs_F77=unknown
13412old_archive_cmds_F77=$old_archive_cmds
13413no_undefined_flag_F77=
13414whole_archive_flag_spec_F77=
13415enable_shared_with_static_runtimes_F77=no
13416
13417# Source file extension for f77 test sources.
13418ac_ext=f
13419
13420# Object file extension for compiled f77 test sources.
13421objext=o
13422objext_F77=$objext
13423
13424# Code to be used in simple compile tests
13425lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13426
13427# Code to be used in simple link tests
13428lt_simple_link_test_code="      program t\n      end\n"
13429
13430# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13431
13432# If no C compiler was specified, use CC.
13433LTCC=${LTCC-"$CC"}
13434
13435# If no C compiler flags were specified, use CFLAGS.
13436LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13437
13438# Allow CC to be a program name with arguments.
13439compiler=$CC
13440
13441
13442# save warnings/boilerplate of simple test code
13443ac_outfile=conftest.$ac_objext
13444printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13445eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13446_lt_compiler_boilerplate=`cat conftest.err`
13447$rm conftest*
13448
13449ac_outfile=conftest.$ac_objext
13450printf "$lt_simple_link_test_code" >conftest.$ac_ext
13451eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13452_lt_linker_boilerplate=`cat conftest.err`
13453$rm conftest*
13454
13455
13456# Allow CC to be a program name with arguments.
13457lt_save_CC="$CC"
13458CC=${F77-"f77"}
13459compiler=$CC
13460compiler_F77=$CC
13461for cc_temp in $compiler""; do
13462  case $cc_temp in
13463    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13464    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13465    \-*) ;;
13466    *) break;;
13467  esac
13468done
13469cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13470
13471
13472echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13473echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13474echo "$as_me:$LINENO: result: $can_build_shared" >&5
13475echo "${ECHO_T}$can_build_shared" >&6
13476
13477echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13478echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13479test "$can_build_shared" = "no" && enable_shared=no
13480
13481# On AIX, shared libraries and static libraries use the same namespace, and
13482# are all built from PIC.
13483case $host_os in
13484aix3*)
13485  test "$enable_shared" = yes && enable_static=no
13486  if test -n "$RANLIB"; then
13487    archive_cmds="$archive_cmds~\$RANLIB \$lib"
13488    postinstall_cmds='$RANLIB $lib'
13489  fi
13490  ;;
13491aix4* | aix5*)
13492  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13493    test "$enable_shared" = yes && enable_static=no
13494  fi
13495  ;;
13496esac
13497echo "$as_me:$LINENO: result: $enable_shared" >&5
13498echo "${ECHO_T}$enable_shared" >&6
13499
13500echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13501echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13502# Make sure either enable_shared or enable_static is yes.
13503test "$enable_shared" = yes || enable_static=yes
13504echo "$as_me:$LINENO: result: $enable_static" >&5
13505echo "${ECHO_T}$enable_static" >&6
13506
13507GCC_F77="$G77"
13508LD_F77="$LD"
13509
13510lt_prog_compiler_wl_F77=
13511lt_prog_compiler_pic_F77=
13512lt_prog_compiler_static_F77=
13513
13514echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13515echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13516
13517  if test "$GCC" = yes; then
13518    lt_prog_compiler_wl_F77='-Wl,'
13519    lt_prog_compiler_static_F77='-static'
13520
13521    case $host_os in
13522      aix*)
13523      # All AIX code is PIC.
13524      if test "$host_cpu" = ia64; then
13525	# AIX 5 now supports IA64 processor
13526	lt_prog_compiler_static_F77='-Bstatic'
13527      fi
13528      ;;
13529
13530    amigaos*)
13531      # FIXME: we need at least 68020 code to build shared libraries, but
13532      # adding the `-m68020' flag to GCC prevents building anything better,
13533      # like `-m68040'.
13534      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13535      ;;
13536
13537    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13538      # PIC is the default for these OSes.
13539      ;;
13540
13541    mingw* | pw32* | os2*)
13542      # This hack is so that the source file can tell whether it is being
13543      # built for inclusion in a dll (and should export symbols for example).
13544      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13545      ;;
13546
13547    darwin* | rhapsody*)
13548      # PIC is the default on this platform
13549      # Common symbols not allowed in MH_DYLIB files
13550      lt_prog_compiler_pic_F77='-fno-common'
13551      ;;
13552
13553    interix3*)
13554      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13555      # Instead, we relocate shared libraries at runtime.
13556      ;;
13557
13558    msdosdjgpp*)
13559      # Just because we use GCC doesn't mean we suddenly get shared libraries
13560      # on systems that don't support them.
13561      lt_prog_compiler_can_build_shared_F77=no
13562      enable_shared=no
13563      ;;
13564
13565    sysv4*MP*)
13566      if test -d /usr/nec; then
13567	lt_prog_compiler_pic_F77=-Kconform_pic
13568      fi
13569      ;;
13570
13571    hpux*)
13572      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13573      # not for PA HP-UX.
13574      case $host_cpu in
13575      hppa*64*|ia64*)
13576	# +Z the default
13577	;;
13578      *)
13579	lt_prog_compiler_pic_F77='-fPIC'
13580	;;
13581      esac
13582      ;;
13583
13584    *)
13585      lt_prog_compiler_pic_F77='-fPIC'
13586      ;;
13587    esac
13588  else
13589    # PORTME Check for flag to pass linker flags through the system compiler.
13590    case $host_os in
13591    aix*)
13592      lt_prog_compiler_wl_F77='-Wl,'
13593      if test "$host_cpu" = ia64; then
13594	# AIX 5 now supports IA64 processor
13595	lt_prog_compiler_static_F77='-Bstatic'
13596      else
13597	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13598      fi
13599      ;;
13600      darwin*)
13601        # PIC is the default on this platform
13602        # Common symbols not allowed in MH_DYLIB files
13603       case $cc_basename in
13604         xlc*)
13605         lt_prog_compiler_pic_F77='-qnocommon'
13606         lt_prog_compiler_wl_F77='-Wl,'
13607         ;;
13608       esac
13609       ;;
13610
13611    mingw* | pw32* | os2*)
13612      # This hack is so that the source file can tell whether it is being
13613      # built for inclusion in a dll (and should export symbols for example).
13614      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13615      ;;
13616
13617    hpux9* | hpux10* | hpux11*)
13618      lt_prog_compiler_wl_F77='-Wl,'
13619      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13620      # not for PA HP-UX.
13621      case $host_cpu in
13622      hppa*64*|ia64*)
13623	# +Z the default
13624	;;
13625      *)
13626	lt_prog_compiler_pic_F77='+Z'
13627	;;
13628      esac
13629      # Is there a better lt_prog_compiler_static that works with the bundled CC?
13630      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13631      ;;
13632
13633    irix5* | irix6* | nonstopux*)
13634      lt_prog_compiler_wl_F77='-Wl,'
13635      # PIC (with -KPIC) is the default.
13636      lt_prog_compiler_static_F77='-non_shared'
13637      ;;
13638
13639    newsos6)
13640      lt_prog_compiler_pic_F77='-KPIC'
13641      lt_prog_compiler_static_F77='-Bstatic'
13642      ;;
13643
13644    linux*)
13645      case $cc_basename in
13646      icc* | ecc*)
13647	lt_prog_compiler_wl_F77='-Wl,'
13648	lt_prog_compiler_pic_F77='-KPIC'
13649	lt_prog_compiler_static_F77='-static'
13650        ;;
13651      pgcc* | pgf77* | pgf90* | pgf95*)
13652        # Portland Group compilers (*not* the Pentium gcc compiler,
13653	# which looks to be a dead project)
13654	lt_prog_compiler_wl_F77='-Wl,'
13655	lt_prog_compiler_pic_F77='-fpic'
13656	lt_prog_compiler_static_F77='-Bstatic'
13657        ;;
13658      ccc*)
13659        lt_prog_compiler_wl_F77='-Wl,'
13660        # All Alpha code is PIC.
13661        lt_prog_compiler_static_F77='-non_shared'
13662        ;;
13663      esac
13664      ;;
13665
13666    osf3* | osf4* | osf5*)
13667      lt_prog_compiler_wl_F77='-Wl,'
13668      # All OSF/1 code is PIC.
13669      lt_prog_compiler_static_F77='-non_shared'
13670      ;;
13671
13672    solaris*)
13673      lt_prog_compiler_pic_F77='-KPIC'
13674      lt_prog_compiler_static_F77='-Bstatic'
13675      case $cc_basename in
13676      f77* | f90* | f95*)
13677	lt_prog_compiler_wl_F77='-Qoption ld ';;
13678      *)
13679	lt_prog_compiler_wl_F77='-Wl,';;
13680      esac
13681      ;;
13682
13683    sunos4*)
13684      lt_prog_compiler_wl_F77='-Qoption ld '
13685      lt_prog_compiler_pic_F77='-PIC'
13686      lt_prog_compiler_static_F77='-Bstatic'
13687      ;;
13688
13689    sysv4 | sysv4.2uw2* | sysv4.3*)
13690      lt_prog_compiler_wl_F77='-Wl,'
13691      lt_prog_compiler_pic_F77='-KPIC'
13692      lt_prog_compiler_static_F77='-Bstatic'
13693      ;;
13694
13695    sysv4*MP*)
13696      if test -d /usr/nec ;then
13697	lt_prog_compiler_pic_F77='-Kconform_pic'
13698	lt_prog_compiler_static_F77='-Bstatic'
13699      fi
13700      ;;
13701
13702    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13703      lt_prog_compiler_wl_F77='-Wl,'
13704      lt_prog_compiler_pic_F77='-KPIC'
13705      lt_prog_compiler_static_F77='-Bstatic'
13706      ;;
13707
13708    unicos*)
13709      lt_prog_compiler_wl_F77='-Wl,'
13710      lt_prog_compiler_can_build_shared_F77=no
13711      ;;
13712
13713    uts4*)
13714      lt_prog_compiler_pic_F77='-pic'
13715      lt_prog_compiler_static_F77='-Bstatic'
13716      ;;
13717
13718    *)
13719      lt_prog_compiler_can_build_shared_F77=no
13720      ;;
13721    esac
13722  fi
13723
13724echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13725echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13726
13727#
13728# Check to make sure the PIC flag actually works.
13729#
13730if test -n "$lt_prog_compiler_pic_F77"; then
13731
13732echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13733echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13734if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13735  echo $ECHO_N "(cached) $ECHO_C" >&6
13736else
13737  lt_prog_compiler_pic_works_F77=no
13738  ac_outfile=conftest.$ac_objext
13739   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13740   lt_compiler_flag="$lt_prog_compiler_pic_F77"
13741   # Insert the option either (1) after the last *FLAGS variable, or
13742   # (2) before a word containing "conftest.", or (3) at the end.
13743   # Note that $ac_compile itself does not contain backslashes and begins
13744   # with a dollar sign (not a hyphen), so the echo should work correctly.
13745   # The option is referenced via a variable to avoid confusing sed.
13746   lt_compile=`echo "$ac_compile" | $SED \
13747   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13748   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13749   -e 's:$: $lt_compiler_flag:'`
13750   (eval echo "\"\$as_me:13750: $lt_compile\"" >&5)
13751   (eval "$lt_compile" 2>conftest.err)
13752   ac_status=$?
13753   cat conftest.err >&5
13754   echo "$as_me:13754: \$? = $ac_status" >&5
13755   if (exit $ac_status) && test -s "$ac_outfile"; then
13756     # The compiler can only warn and ignore the option if not recognized
13757     # So say no if there are warnings other than the usual output.
13758     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13759     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13760     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13761       lt_prog_compiler_pic_works_F77=yes
13762     fi
13763   fi
13764   $rm conftest*
13765
13766fi
13767echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13768echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13769
13770if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13771    case $lt_prog_compiler_pic_F77 in
13772     "" | " "*) ;;
13773     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13774     esac
13775else
13776    lt_prog_compiler_pic_F77=
13777     lt_prog_compiler_can_build_shared_F77=no
13778fi
13779
13780fi
13781case $host_os in
13782  # For platforms which do not support PIC, -DPIC is meaningless:
13783  *djgpp*)
13784    lt_prog_compiler_pic_F77=
13785    ;;
13786  *)
13787    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13788    ;;
13789esac
13790
13791#
13792# Check to make sure the static flag actually works.
13793#
13794wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13795echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13796echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13797if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13798  echo $ECHO_N "(cached) $ECHO_C" >&6
13799else
13800  lt_prog_compiler_static_works_F77=no
13801   save_LDFLAGS="$LDFLAGS"
13802   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13803   printf "$lt_simple_link_test_code" > conftest.$ac_ext
13804   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13805     # The linker can only warn and ignore the option if not recognized
13806     # So say no if there are warnings
13807     if test -s conftest.err; then
13808       # Append any errors to the config.log.
13809       cat conftest.err 1>&5
13810       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13811       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13812       if diff conftest.exp conftest.er2 >/dev/null; then
13813         lt_prog_compiler_static_works_F77=yes
13814       fi
13815     else
13816       lt_prog_compiler_static_works_F77=yes
13817     fi
13818   fi
13819   $rm conftest*
13820   LDFLAGS="$save_LDFLAGS"
13821
13822fi
13823echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13824echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
13825
13826if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13827    :
13828else
13829    lt_prog_compiler_static_F77=
13830fi
13831
13832
13833echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13834echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13835if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13836  echo $ECHO_N "(cached) $ECHO_C" >&6
13837else
13838  lt_cv_prog_compiler_c_o_F77=no
13839   $rm -r conftest 2>/dev/null
13840   mkdir conftest
13841   cd conftest
13842   mkdir out
13843   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13844
13845   lt_compiler_flag="-o out/conftest2.$ac_objext"
13846   # Insert the option either (1) after the last *FLAGS variable, or
13847   # (2) before a word containing "conftest.", or (3) at the end.
13848   # Note that $ac_compile itself does not contain backslashes and begins
13849   # with a dollar sign (not a hyphen), so the echo should work correctly.
13850   lt_compile=`echo "$ac_compile" | $SED \
13851   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13852   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13853   -e 's:$: $lt_compiler_flag:'`
13854   (eval echo "\"\$as_me:13854: $lt_compile\"" >&5)
13855   (eval "$lt_compile" 2>out/conftest.err)
13856   ac_status=$?
13857   cat out/conftest.err >&5
13858   echo "$as_me:13858: \$? = $ac_status" >&5
13859   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13860   then
13861     # The compiler can only warn and ignore the option if not recognized
13862     # So say no if there are warnings
13863     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13864     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13865     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13866       lt_cv_prog_compiler_c_o_F77=yes
13867     fi
13868   fi
13869   chmod u+w . 2>&5
13870   $rm conftest*
13871   # SGI C++ compiler will create directory out/ii_files/ for
13872   # template instantiation
13873   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13874   $rm out/* && rmdir out
13875   cd ..
13876   rmdir conftest
13877   $rm conftest*
13878
13879fi
13880echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13881echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13882
13883
13884hard_links="nottested"
13885if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13886  # do not overwrite the value of need_locks provided by the user
13887  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13888echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13889  hard_links=yes
13890  $rm conftest*
13891  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13892  touch conftest.a
13893  ln conftest.a conftest.b 2>&5 || hard_links=no
13894  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13895  echo "$as_me:$LINENO: result: $hard_links" >&5
13896echo "${ECHO_T}$hard_links" >&6
13897  if test "$hard_links" = no; then
13898    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13899echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13900    need_locks=warn
13901  fi
13902else
13903  need_locks=no
13904fi
13905
13906echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13907echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13908
13909  runpath_var=
13910  allow_undefined_flag_F77=
13911  enable_shared_with_static_runtimes_F77=no
13912  archive_cmds_F77=
13913  archive_expsym_cmds_F77=
13914  old_archive_From_new_cmds_F77=
13915  old_archive_from_expsyms_cmds_F77=
13916  export_dynamic_flag_spec_F77=
13917  whole_archive_flag_spec_F77=
13918  thread_safe_flag_spec_F77=
13919  hardcode_libdir_flag_spec_F77=
13920  hardcode_libdir_flag_spec_ld_F77=
13921  hardcode_libdir_separator_F77=
13922  hardcode_direct_F77=no
13923  hardcode_minus_L_F77=no
13924  hardcode_shlibpath_var_F77=unsupported
13925  link_all_deplibs_F77=unknown
13926  hardcode_automatic_F77=no
13927  module_cmds_F77=
13928  module_expsym_cmds_F77=
13929  always_export_symbols_F77=no
13930  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13931  # include_expsyms should be a list of space-separated symbols to be *always*
13932  # included in the symbol list
13933  include_expsyms_F77=
13934  # exclude_expsyms can be an extended regexp of symbols to exclude
13935  # it will be wrapped by ` (' and `)$', so one must not match beginning or
13936  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13937  # as well as any symbol that contains `d'.
13938  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13939  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13940  # platforms (ab)use it in PIC code, but their linkers get confused if
13941  # the symbol is explicitly referenced.  Since portable code cannot
13942  # rely on this symbol name, it's probably fine to never include it in
13943  # preloaded symbol tables.
13944  extract_expsyms_cmds=
13945  # Just being paranoid about ensuring that cc_basename is set.
13946  for cc_temp in $compiler""; do
13947  case $cc_temp in
13948    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13949    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13950    \-*) ;;
13951    *) break;;
13952  esac
13953done
13954cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13955
13956  case $host_os in
13957  cygwin* | mingw* | pw32*)
13958    # FIXME: the MSVC++ port hasn't been tested in a loooong time
13959    # When not using gcc, we currently assume that we are using
13960    # Microsoft Visual C++.
13961    if test "$GCC" != yes; then
13962      with_gnu_ld=no
13963    fi
13964    ;;
13965  interix*)
13966    # we just hope/assume this is gcc and not c89 (= MSVC++)
13967    with_gnu_ld=yes
13968    ;;
13969  openbsd*)
13970    with_gnu_ld=no
13971    ;;
13972  esac
13973
13974  ld_shlibs_F77=yes
13975  if test "$with_gnu_ld" = yes; then
13976    # If archive_cmds runs LD, not CC, wlarc should be empty
13977    wlarc='${wl}'
13978
13979    # Set some defaults for GNU ld with shared library support. These
13980    # are reset later if shared libraries are not supported. Putting them
13981    # here allows them to be overridden if necessary.
13982    runpath_var=LD_RUN_PATH
13983    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13984    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13985    # ancient GNU ld didn't support --whole-archive et. al.
13986    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13987	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13988      else
13989  	whole_archive_flag_spec_F77=
13990    fi
13991    supports_anon_versioning=no
13992    case `$LD -v 2>/dev/null` in
13993      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13994      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13995      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13996      *\ 2.11.*) ;; # other 2.11 versions
13997      *) supports_anon_versioning=yes ;;
13998    esac
13999
14000    # See if GNU ld supports shared libraries.
14001    case $host_os in
14002    aix3* | aix4* | aix5*)
14003      # On AIX/PPC, the GNU linker is very broken
14004      if test "$host_cpu" != ia64; then
14005	ld_shlibs_F77=no
14006	cat <<EOF 1>&2
14007
14008*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14009*** to be unable to reliably create shared libraries on AIX.
14010*** Therefore, libtool is disabling shared libraries support.  If you
14011*** really care for shared libraries, you may want to modify your PATH
14012*** so that a non-GNU linker is found, and then restart.
14013
14014EOF
14015      fi
14016      ;;
14017
14018    amigaos*)
14019      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)'
14020      hardcode_libdir_flag_spec_F77='-L$libdir'
14021      hardcode_minus_L_F77=yes
14022
14023      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14024      # that the semantics of dynamic libraries on AmigaOS, at least up
14025      # to version 4, is to share data among multiple programs linked
14026      # with the same dynamic library.  Since this doesn't match the
14027      # behavior of shared libraries on other platforms, we can't use
14028      # them.
14029      ld_shlibs_F77=no
14030      ;;
14031
14032    beos*)
14033      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14034	allow_undefined_flag_F77=unsupported
14035	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14036	# support --undefined.  This deserves some investigation.  FIXME
14037	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14038      else
14039	ld_shlibs_F77=no
14040      fi
14041      ;;
14042
14043    cygwin* | mingw* | pw32*)
14044      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14045      # as there is no search path for DLLs.
14046      hardcode_libdir_flag_spec_F77='-L$libdir'
14047      allow_undefined_flag_F77=unsupported
14048      always_export_symbols_F77=no
14049      enable_shared_with_static_runtimes_F77=yes
14050      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14051
14052      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14053        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14054	# If the export-symbols file already is a .def file (1st line
14055	# is EXPORTS), use it as is; otherwise, prepend...
14056	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14057	  cp $export_symbols $output_objdir/$soname.def;
14058	else
14059	  echo EXPORTS > $output_objdir/$soname.def;
14060	  cat $export_symbols >> $output_objdir/$soname.def;
14061	fi~
14062	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14063      else
14064	ld_shlibs_F77=no
14065      fi
14066      ;;
14067
14068    interix3*)
14069      hardcode_direct_F77=no
14070      hardcode_shlibpath_var_F77=no
14071      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14072      export_dynamic_flag_spec_F77='${wl}-E'
14073      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14074      # Instead, shared libraries are loaded at an image base (0x10000000 by
14075      # default) and relocated if they conflict, which is a slow very memory
14076      # consuming and fragmenting process.  To avoid this, we pick a random,
14077      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14078      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14079      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'
14080      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'
14081      ;;
14082
14083    linux*)
14084      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14085	tmp_addflag=
14086	case $cc_basename,$host_cpu in
14087	pgcc*)				# Portland Group C compiler
14088	  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'
14089	  tmp_addflag=' $pic_flag'
14090	  ;;
14091	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
14092	  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'
14093	  tmp_addflag=' $pic_flag -Mnomain' ;;
14094	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
14095	  tmp_addflag=' -i_dynamic' ;;
14096	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
14097	  tmp_addflag=' -i_dynamic -nofor_main' ;;
14098	ifc* | ifort*)			# Intel Fortran compiler
14099	  tmp_addflag=' -nofor_main' ;;
14100	esac
14101	archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14102
14103	if test $supports_anon_versioning = yes; then
14104	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14105  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14106  $echo "local: *; };" >> $output_objdir/$libname.ver~
14107	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14108	fi
14109      else
14110	ld_shlibs_F77=no
14111      fi
14112      ;;
14113
14114    netbsd*)
14115      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14116	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14117	wlarc=
14118      else
14119	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14120	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14121      fi
14122      ;;
14123
14124    solaris*)
14125      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14126	ld_shlibs_F77=no
14127	cat <<EOF 1>&2
14128
14129*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14130*** create shared libraries on Solaris systems.  Therefore, libtool
14131*** is disabling shared libraries support.  We urge you to upgrade GNU
14132*** binutils to release 2.9.1 or newer.  Another option is to modify
14133*** your PATH or compiler configuration so that the native linker is
14134*** used, and then restart.
14135
14136EOF
14137      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14138	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14139	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14140      else
14141	ld_shlibs_F77=no
14142      fi
14143      ;;
14144
14145    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14146      case `$LD -v 2>&1` in
14147        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14148	ld_shlibs_F77=no
14149	cat <<_LT_EOF 1>&2
14150
14151*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14152*** reliably create shared libraries on SCO systems.  Therefore, libtool
14153*** is disabling shared libraries support.  We urge you to upgrade GNU
14154*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14155*** your PATH or compiler configuration so that the native linker is
14156*** used, and then restart.
14157
14158_LT_EOF
14159	;;
14160	*)
14161	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14162	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14163	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14164	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14165	  else
14166	    ld_shlibs_F77=no
14167	  fi
14168	;;
14169      esac
14170      ;;
14171
14172    sunos4*)
14173      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14174      wlarc=
14175      hardcode_direct_F77=yes
14176      hardcode_shlibpath_var_F77=no
14177      ;;
14178
14179    *)
14180      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14181	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14182	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14183      else
14184	ld_shlibs_F77=no
14185      fi
14186      ;;
14187    esac
14188
14189    if test "$ld_shlibs_F77" = no; then
14190      runpath_var=
14191      hardcode_libdir_flag_spec_F77=
14192      export_dynamic_flag_spec_F77=
14193      whole_archive_flag_spec_F77=
14194    fi
14195  else
14196    # PORTME fill in a description of your system's linker (not GNU ld)
14197    case $host_os in
14198    aix3*)
14199      allow_undefined_flag_F77=unsupported
14200      always_export_symbols_F77=yes
14201      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'
14202      # Note: this linker hardcodes the directories in LIBPATH if there
14203      # are no directories specified by -L.
14204      hardcode_minus_L_F77=yes
14205      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14206	# Neither direct hardcoding nor static linking is supported with a
14207	# broken collect2.
14208	hardcode_direct_F77=unsupported
14209      fi
14210      ;;
14211
14212    aix4* | aix5*)
14213      if test "$host_cpu" = ia64; then
14214	# On IA64, the linker does run time linking by default, so we don't
14215	# have to do anything special.
14216	aix_use_runtimelinking=no
14217	exp_sym_flag='-Bexport'
14218	no_entry_flag=""
14219      else
14220	# If we're using GNU nm, then we don't want the "-C" option.
14221	# -C means demangle to AIX nm, but means don't demangle with GNU nm
14222	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14223	  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'
14224	else
14225	  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'
14226	fi
14227	aix_use_runtimelinking=no
14228
14229	# Test if we are trying to use run time linking or normal
14230	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14231	# need to do runtime linking.
14232	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14233	  for ld_flag in $LDFLAGS; do
14234  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14235  	    aix_use_runtimelinking=yes
14236  	    break
14237  	  fi
14238	  done
14239	  ;;
14240	esac
14241
14242	exp_sym_flag='-bexport'
14243	no_entry_flag='-bnoentry'
14244      fi
14245
14246      # When large executables or shared objects are built, AIX ld can
14247      # have problems creating the table of contents.  If linking a library
14248      # or program results in "error TOC overflow" add -mminimal-toc to
14249      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14250      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14251
14252      archive_cmds_F77=''
14253      hardcode_direct_F77=yes
14254      hardcode_libdir_separator_F77=':'
14255      link_all_deplibs_F77=yes
14256
14257      if test "$GCC" = yes; then
14258	case $host_os in aix4.[012]|aix4.[012].*)
14259	# We only want to do this on AIX 4.2 and lower, the check
14260	# below for broken collect2 doesn't work under 4.3+
14261	  collect2name=`${CC} -print-prog-name=collect2`
14262	  if test -f "$collect2name" && \
14263  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
14264	  then
14265  	  # We have reworked collect2
14266  	  hardcode_direct_F77=yes
14267	  else
14268  	  # We have old collect2
14269  	  hardcode_direct_F77=unsupported
14270  	  # It fails to find uninstalled libraries when the uninstalled
14271  	  # path is not listed in the libpath.  Setting hardcode_minus_L
14272  	  # to unsupported forces relinking
14273  	  hardcode_minus_L_F77=yes
14274  	  hardcode_libdir_flag_spec_F77='-L$libdir'
14275  	  hardcode_libdir_separator_F77=
14276	  fi
14277	  ;;
14278	esac
14279	shared_flag='-shared'
14280	if test "$aix_use_runtimelinking" = yes; then
14281	  shared_flag="$shared_flag "'${wl}-G'
14282	fi
14283      else
14284	# not using gcc
14285	if test "$host_cpu" = ia64; then
14286  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14287  	# chokes on -Wl,-G. The following line is correct:
14288	  shared_flag='-G'
14289	else
14290	  if test "$aix_use_runtimelinking" = yes; then
14291	    shared_flag='${wl}-G'
14292	  else
14293	    shared_flag='${wl}-bM:SRE'
14294	  fi
14295	fi
14296      fi
14297
14298      # It seems that -bexpall does not export symbols beginning with
14299      # underscore (_), so it is better to generate a list of symbols to export.
14300      always_export_symbols_F77=yes
14301      if test "$aix_use_runtimelinking" = yes; then
14302	# Warning - without using the other runtime loading flags (-brtl),
14303	# -berok will link without error, but may produce a broken library.
14304	allow_undefined_flag_F77='-berok'
14305       # Determine the default libpath from the value encoded in an empty executable.
14306       cat >conftest.$ac_ext <<_ACEOF
14307      program main
14308
14309      end
14310_ACEOF
14311rm -f conftest.$ac_objext conftest$ac_exeext
14312if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14313  (eval $ac_link) 2>conftest.er1
14314  ac_status=$?
14315  grep -v '^ *+' conftest.er1 >conftest.err
14316  rm -f conftest.er1
14317  cat conftest.err >&5
14318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14319  (exit $ac_status); } &&
14320	 { ac_try='test -z "$ac_f77_werror_flag"
14321			 || test ! -s conftest.err'
14322  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14323  (eval $ac_try) 2>&5
14324  ac_status=$?
14325  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14326  (exit $ac_status); }; } &&
14327	 { ac_try='test -s conftest$ac_exeext'
14328  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14329  (eval $ac_try) 2>&5
14330  ac_status=$?
14331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14332  (exit $ac_status); }; }; then
14333
14334aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14335}'`
14336# Check for a 64-bit object if we didn't find anything.
14337if 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; }
14338}'`; fi
14339else
14340  echo "$as_me: failed program was:" >&5
14341sed 's/^/| /' conftest.$ac_ext >&5
14342
14343fi
14344rm -f conftest.err conftest.$ac_objext \
14345      conftest$ac_exeext conftest.$ac_ext
14346if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14347
14348       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14349	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"
14350       else
14351	if test "$host_cpu" = ia64; then
14352	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14353	  allow_undefined_flag_F77="-z nodefs"
14354	  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"
14355	else
14356	 # Determine the default libpath from the value encoded in an empty executable.
14357	 cat >conftest.$ac_ext <<_ACEOF
14358      program main
14359
14360      end
14361_ACEOF
14362rm -f conftest.$ac_objext conftest$ac_exeext
14363if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14364  (eval $ac_link) 2>conftest.er1
14365  ac_status=$?
14366  grep -v '^ *+' conftest.er1 >conftest.err
14367  rm -f conftest.er1
14368  cat conftest.err >&5
14369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14370  (exit $ac_status); } &&
14371	 { ac_try='test -z "$ac_f77_werror_flag"
14372			 || test ! -s conftest.err'
14373  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14374  (eval $ac_try) 2>&5
14375  ac_status=$?
14376  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14377  (exit $ac_status); }; } &&
14378	 { ac_try='test -s conftest$ac_exeext'
14379  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14380  (eval $ac_try) 2>&5
14381  ac_status=$?
14382  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14383  (exit $ac_status); }; }; then
14384
14385aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
14386}'`
14387# Check for a 64-bit object if we didn't find anything.
14388if 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; }
14389}'`; fi
14390else
14391  echo "$as_me: failed program was:" >&5
14392sed 's/^/| /' conftest.$ac_ext >&5
14393
14394fi
14395rm -f conftest.err conftest.$ac_objext \
14396      conftest$ac_exeext conftest.$ac_ext
14397if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14398
14399	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14400	  # Warning - without using the other run time loading flags,
14401	  # -berok will link without error, but may produce a broken library.
14402	  no_undefined_flag_F77=' ${wl}-bernotok'
14403	  allow_undefined_flag_F77=' ${wl}-berok'
14404	  # Exported symbols can be pulled into shared objects from archives
14405	  whole_archive_flag_spec_F77='$convenience'
14406	  archive_cmds_need_lc_F77=yes
14407	  # This is similar to how AIX traditionally builds its shared libraries.
14408	  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'
14409	fi
14410      fi
14411      ;;
14412
14413    amigaos*)
14414      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)'
14415      hardcode_libdir_flag_spec_F77='-L$libdir'
14416      hardcode_minus_L_F77=yes
14417      # see comment about different semantics on the GNU ld section
14418      ld_shlibs_F77=no
14419      ;;
14420
14421    bsdi[45]*)
14422      export_dynamic_flag_spec_F77=-rdynamic
14423      ;;
14424
14425    cygwin* | mingw* | pw32*)
14426      # When not using gcc, we currently assume that we are using
14427      # Microsoft Visual C++.
14428      # hardcode_libdir_flag_spec is actually meaningless, as there is
14429      # no search path for DLLs.
14430      hardcode_libdir_flag_spec_F77=' '
14431      allow_undefined_flag_F77=unsupported
14432      # Tell ltmain to make .lib files, not .a files.
14433      libext=lib
14434      # Tell ltmain to make .dll files, not .so files.
14435      shrext_cmds=".dll"
14436      # FIXME: Setting linknames here is a bad hack.
14437      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14438      # The linker will automatically build a .lib file if we build a DLL.
14439      old_archive_From_new_cmds_F77='true'
14440      # FIXME: Should let the user specify the lib program.
14441      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14442      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14443      enable_shared_with_static_runtimes_F77=yes
14444      ;;
14445
14446    darwin* | rhapsody*)
14447      case $host_os in
14448        rhapsody* | darwin1.[012])
14449         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14450         ;;
14451       *) # Darwin 1.3 on
14452         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14453           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14454         else
14455           case ${MACOSX_DEPLOYMENT_TARGET} in
14456             10.[012])
14457               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14458               ;;
14459             10.*)
14460               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14461               ;;
14462           esac
14463         fi
14464         ;;
14465      esac
14466      archive_cmds_need_lc_F77=no
14467      hardcode_direct_F77=no
14468      hardcode_automatic_F77=yes
14469      hardcode_shlibpath_var_F77=unsupported
14470      whole_archive_flag_spec_F77=''
14471      link_all_deplibs_F77=yes
14472    if test "$GCC" = yes ; then
14473    	output_verbose_link_cmd='echo'
14474        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14475      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14476      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14477      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}'
14478      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}'
14479    else
14480      case $cc_basename in
14481        xlc*)
14482         output_verbose_link_cmd='echo'
14483         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14484         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14485          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14486         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}'
14487          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}'
14488          ;;
14489       *)
14490         ld_shlibs_F77=no
14491          ;;
14492      esac
14493    fi
14494      ;;
14495
14496    dgux*)
14497      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14498      hardcode_libdir_flag_spec_F77='-L$libdir'
14499      hardcode_shlibpath_var_F77=no
14500      ;;
14501
14502    freebsd1*)
14503      ld_shlibs_F77=no
14504      ;;
14505
14506    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14507    # support.  Future versions do this automatically, but an explicit c++rt0.o
14508    # does not break anything, and helps significantly (at the cost of a little
14509    # extra space).
14510    freebsd2.2*)
14511      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14512      hardcode_libdir_flag_spec_F77='-R$libdir'
14513      hardcode_direct_F77=yes
14514      hardcode_shlibpath_var_F77=no
14515      ;;
14516
14517    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14518    freebsd2*)
14519      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14520      hardcode_direct_F77=yes
14521      hardcode_minus_L_F77=yes
14522      hardcode_shlibpath_var_F77=no
14523      ;;
14524
14525    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14526    freebsd* | kfreebsd*-gnu | dragonfly*)
14527      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14528      hardcode_libdir_flag_spec_F77='-R$libdir'
14529      hardcode_direct_F77=yes
14530      hardcode_shlibpath_var_F77=no
14531      ;;
14532
14533    hpux9*)
14534      if test "$GCC" = yes; then
14535	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'
14536      else
14537	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'
14538      fi
14539      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14540      hardcode_libdir_separator_F77=:
14541      hardcode_direct_F77=yes
14542
14543      # hardcode_minus_L: Not really in the search PATH,
14544      # but as the default location of the library.
14545      hardcode_minus_L_F77=yes
14546      export_dynamic_flag_spec_F77='${wl}-E'
14547      ;;
14548
14549    hpux10*)
14550      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14551	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14552      else
14553	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14554      fi
14555      if test "$with_gnu_ld" = no; then
14556	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14557	hardcode_libdir_separator_F77=:
14558
14559	hardcode_direct_F77=yes
14560	export_dynamic_flag_spec_F77='${wl}-E'
14561
14562	# hardcode_minus_L: Not really in the search PATH,
14563	# but as the default location of the library.
14564	hardcode_minus_L_F77=yes
14565      fi
14566      ;;
14567
14568    hpux11*)
14569      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14570	case $host_cpu in
14571	hppa*64*)
14572	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14573	  ;;
14574	ia64*)
14575	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14576	  ;;
14577	*)
14578	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14579	  ;;
14580	esac
14581      else
14582	case $host_cpu in
14583	hppa*64*)
14584	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14585	  ;;
14586	ia64*)
14587	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14588	  ;;
14589	*)
14590	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14591	  ;;
14592	esac
14593      fi
14594      if test "$with_gnu_ld" = no; then
14595	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14596	hardcode_libdir_separator_F77=:
14597
14598	case $host_cpu in
14599	hppa*64*|ia64*)
14600	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14601	  hardcode_direct_F77=no
14602	  hardcode_shlibpath_var_F77=no
14603	  ;;
14604	*)
14605	  hardcode_direct_F77=yes
14606	  export_dynamic_flag_spec_F77='${wl}-E'
14607
14608	  # hardcode_minus_L: Not really in the search PATH,
14609	  # but as the default location of the library.
14610	  hardcode_minus_L_F77=yes
14611	  ;;
14612	esac
14613      fi
14614      ;;
14615
14616    irix5* | irix6* | nonstopux*)
14617      if test "$GCC" = yes; then
14618	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'
14619      else
14620	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'
14621	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14622      fi
14623      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14624      hardcode_libdir_separator_F77=:
14625      link_all_deplibs_F77=yes
14626      ;;
14627
14628    netbsd*)
14629      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14630	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14631      else
14632	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14633      fi
14634      hardcode_libdir_flag_spec_F77='-R$libdir'
14635      hardcode_direct_F77=yes
14636      hardcode_shlibpath_var_F77=no
14637      ;;
14638
14639    newsos6)
14640      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14641      hardcode_direct_F77=yes
14642      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14643      hardcode_libdir_separator_F77=:
14644      hardcode_shlibpath_var_F77=no
14645      ;;
14646
14647    openbsd*)
14648      hardcode_direct_F77=yes
14649      hardcode_shlibpath_var_F77=no
14650      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14651	archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14652	archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14653	hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14654	export_dynamic_flag_spec_F77='${wl}-E'
14655      else
14656       case $host_os in
14657	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14658	   archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14659	   hardcode_libdir_flag_spec_F77='-R$libdir'
14660	   ;;
14661	 *)
14662	   archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14663	   hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14664	   ;;
14665       esac
14666      fi
14667      ;;
14668
14669    os2*)
14670      hardcode_libdir_flag_spec_F77='-L$libdir'
14671      hardcode_minus_L_F77=yes
14672      allow_undefined_flag_F77=unsupported
14673      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'
14674      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14675      ;;
14676
14677    osf3*)
14678      if test "$GCC" = yes; then
14679	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14680	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'
14681      else
14682	allow_undefined_flag_F77=' -expect_unresolved \*'
14683	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'
14684      fi
14685      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14686      hardcode_libdir_separator_F77=:
14687      ;;
14688
14689    osf4* | osf5*)	# as osf3* with the addition of -msym flag
14690      if test "$GCC" = yes; then
14691	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14692	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'
14693	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14694      else
14695	allow_undefined_flag_F77=' -expect_unresolved \*'
14696	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'
14697	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~
14698	$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'
14699
14700	# Both c and cxx compiler support -rpath directly
14701	hardcode_libdir_flag_spec_F77='-rpath $libdir'
14702      fi
14703      hardcode_libdir_separator_F77=:
14704      ;;
14705
14706    solaris*)
14707      no_undefined_flag_F77=' -z text'
14708      if test "$GCC" = yes; then
14709	wlarc='${wl}'
14710	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14711	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14712	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14713      else
14714	wlarc=''
14715	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14716	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14717  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14718      fi
14719      hardcode_libdir_flag_spec_F77='-R$libdir'
14720      hardcode_shlibpath_var_F77=no
14721      case $host_os in
14722      solaris2.[0-5] | solaris2.[0-5].*) ;;
14723      *)
14724 	# The compiler driver will combine linker options so we
14725 	# cannot just pass the convience library names through
14726 	# without $wl, iff we do not link with $LD.
14727 	# Luckily, gcc supports the same syntax we need for Sun Studio.
14728 	# Supported since Solaris 2.6 (maybe 2.5.1?)
14729 	case $wlarc in
14730 	'')
14731 	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14732 	*)
14733 	  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' ;;
14734 	esac ;;
14735      esac
14736      link_all_deplibs_F77=yes
14737      ;;
14738
14739    sunos4*)
14740      if test "x$host_vendor" = xsequent; then
14741	# Use $CC to link under sequent, because it throws in some extra .o
14742	# files that make .init and .fini sections work.
14743	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14744      else
14745	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14746      fi
14747      hardcode_libdir_flag_spec_F77='-L$libdir'
14748      hardcode_direct_F77=yes
14749      hardcode_minus_L_F77=yes
14750      hardcode_shlibpath_var_F77=no
14751      ;;
14752
14753    sysv4)
14754      case $host_vendor in
14755	sni)
14756	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14757	  hardcode_direct_F77=yes # is this really true???
14758	;;
14759	siemens)
14760	  ## LD is ld it makes a PLAMLIB
14761	  ## CC just makes a GrossModule.
14762	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14763	  reload_cmds_F77='$CC -r -o $output$reload_objs'
14764	  hardcode_direct_F77=no
14765        ;;
14766	motorola)
14767	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14768	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14769	;;
14770      esac
14771      runpath_var='LD_RUN_PATH'
14772      hardcode_shlibpath_var_F77=no
14773      ;;
14774
14775    sysv4.3*)
14776      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14777      hardcode_shlibpath_var_F77=no
14778      export_dynamic_flag_spec_F77='-Bexport'
14779      ;;
14780
14781    sysv4*MP*)
14782      if test -d /usr/nec; then
14783	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14784	hardcode_shlibpath_var_F77=no
14785	runpath_var=LD_RUN_PATH
14786	hardcode_runpath_var=yes
14787	ld_shlibs_F77=yes
14788      fi
14789      ;;
14790
14791    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14792      no_undefined_flag_F77='${wl}-z,text'
14793      archive_cmds_need_lc_F77=no
14794      hardcode_shlibpath_var_F77=no
14795      runpath_var='LD_RUN_PATH'
14796
14797      if test "$GCC" = yes; then
14798	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14799	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14800      else
14801	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14802	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14803      fi
14804      ;;
14805
14806    sysv5* | sco3.2v5* | sco5v6*)
14807      # Note: We can NOT use -z defs as we might desire, because we do not
14808      # link with -lc, and that would cause any symbols used from libc to
14809      # always be unresolved, which means just about no library would
14810      # ever link correctly.  If we're not using GNU ld we use -z text
14811      # though, which does catch some bad symbols but isn't as heavy-handed
14812      # as -z defs.
14813      no_undefined_flag_F77='${wl}-z,text'
14814      allow_undefined_flag_F77='${wl}-z,nodefs'
14815      archive_cmds_need_lc_F77=no
14816      hardcode_shlibpath_var_F77=no
14817      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14818      hardcode_libdir_separator_F77=':'
14819      link_all_deplibs_F77=yes
14820      export_dynamic_flag_spec_F77='${wl}-Bexport'
14821      runpath_var='LD_RUN_PATH'
14822
14823      if test "$GCC" = yes; then
14824	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14825	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14826      else
14827	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14828	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14829      fi
14830      ;;
14831
14832    uts4*)
14833      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14834      hardcode_libdir_flag_spec_F77='-L$libdir'
14835      hardcode_shlibpath_var_F77=no
14836      ;;
14837
14838    *)
14839      ld_shlibs_F77=no
14840      ;;
14841    esac
14842  fi
14843
14844echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14845echo "${ECHO_T}$ld_shlibs_F77" >&6
14846test "$ld_shlibs_F77" = no && can_build_shared=no
14847
14848#
14849# Do we need to explicitly link libc?
14850#
14851case "x$archive_cmds_need_lc_F77" in
14852x|xyes)
14853  # Assume -lc should be added
14854  archive_cmds_need_lc_F77=yes
14855
14856  if test "$enable_shared" = yes && test "$GCC" = yes; then
14857    case $archive_cmds_F77 in
14858    *'~'*)
14859      # FIXME: we may have to deal with multi-command sequences.
14860      ;;
14861    '$CC '*)
14862      # Test whether the compiler implicitly links with -lc since on some
14863      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14864      # to ld, don't add -lc before -lgcc.
14865      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14866echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14867      $rm conftest*
14868      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14869
14870      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14871  (eval $ac_compile) 2>&5
14872  ac_status=$?
14873  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14874  (exit $ac_status); } 2>conftest.err; then
14875        soname=conftest
14876        lib=conftest
14877        libobjs=conftest.$ac_objext
14878        deplibs=
14879        wl=$lt_prog_compiler_wl_F77
14880	pic_flag=$lt_prog_compiler_pic_F77
14881        compiler_flags=-v
14882        linker_flags=-v
14883        verstring=
14884        output_objdir=.
14885        libname=conftest
14886        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14887        allow_undefined_flag_F77=
14888        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14889  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14890  ac_status=$?
14891  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14892  (exit $ac_status); }
14893        then
14894	  archive_cmds_need_lc_F77=no
14895        else
14896	  archive_cmds_need_lc_F77=yes
14897        fi
14898        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14899      else
14900        cat conftest.err 1>&5
14901      fi
14902      $rm conftest*
14903      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14904echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14905      ;;
14906    esac
14907  fi
14908  ;;
14909esac
14910
14911echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14912echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14913library_names_spec=
14914libname_spec='lib$name'
14915soname_spec=
14916shrext_cmds=".so"
14917postinstall_cmds=
14918postuninstall_cmds=
14919finish_cmds=
14920finish_eval=
14921shlibpath_var=
14922shlibpath_overrides_runpath=unknown
14923version_type=none
14924dynamic_linker="$host_os ld.so"
14925sys_lib_dlsearch_path_spec="/lib /usr/lib"
14926if test "$GCC" = yes; then
14927  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14928  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14929    # if the path contains ";" then we assume it to be the separator
14930    # otherwise default to the standard path separator (i.e. ":") - it is
14931    # assumed that no part of a normal pathname contains ";" but that should
14932    # okay in the real world where ";" in dirpaths is itself problematic.
14933    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14934  else
14935    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14936  fi
14937else
14938  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14939fi
14940need_lib_prefix=unknown
14941hardcode_into_libs=no
14942
14943# when you set need_version to no, make sure it does not cause -set_version
14944# flags to be left without arguments
14945need_version=unknown
14946
14947case $host_os in
14948aix3*)
14949  version_type=linux
14950  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14951  shlibpath_var=LIBPATH
14952
14953  # AIX 3 has no versioning support, so we append a major version to the name.
14954  soname_spec='${libname}${release}${shared_ext}$major'
14955  ;;
14956
14957aix4* | aix5*)
14958  version_type=linux
14959  need_lib_prefix=no
14960  need_version=no
14961  hardcode_into_libs=yes
14962  if test "$host_cpu" = ia64; then
14963    # AIX 5 supports IA64
14964    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14965    shlibpath_var=LD_LIBRARY_PATH
14966  else
14967    # With GCC up to 2.95.x, collect2 would create an import file
14968    # for dependence libraries.  The import file would start with
14969    # the line `#! .'.  This would cause the generated library to
14970    # depend on `.', always an invalid library.  This was fixed in
14971    # development snapshots of GCC prior to 3.0.
14972    case $host_os in
14973      aix4 | aix4.[01] | aix4.[01].*)
14974      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14975	   echo ' yes '
14976	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14977	:
14978      else
14979	can_build_shared=no
14980      fi
14981      ;;
14982    esac
14983    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14984    # soname into executable. Probably we can add versioning support to
14985    # collect2, so additional links can be useful in future.
14986    if test "$aix_use_runtimelinking" = yes; then
14987      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14988      # instead of lib<name>.a to let people know that these are not
14989      # typical AIX shared libraries.
14990      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14991    else
14992      # We preserve .a as extension for shared libraries through AIX4.2
14993      # and later when we are not doing run time linking.
14994      library_names_spec='${libname}${release}.a $libname.a'
14995      soname_spec='${libname}${release}${shared_ext}$major'
14996    fi
14997    shlibpath_var=LIBPATH
14998  fi
14999  ;;
15000
15001amigaos*)
15002  library_names_spec='$libname.ixlibrary $libname.a'
15003  # Create ${libname}_ixlibrary.a entries in /sys/libs.
15004  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'
15005  ;;
15006
15007beos*)
15008  library_names_spec='${libname}${shared_ext}'
15009  dynamic_linker="$host_os ld.so"
15010  shlibpath_var=LIBRARY_PATH
15011  ;;
15012
15013bsdi[45]*)
15014  version_type=linux
15015  need_version=no
15016  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15017  soname_spec='${libname}${release}${shared_ext}$major'
15018  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15019  shlibpath_var=LD_LIBRARY_PATH
15020  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15021  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15022  # the default ld.so.conf also contains /usr/contrib/lib and
15023  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15024  # libtool to hard-code these into programs
15025  ;;
15026
15027cygwin* | mingw* | pw32*)
15028  version_type=windows
15029  shrext_cmds=".dll"
15030  need_version=no
15031  need_lib_prefix=no
15032
15033  case $GCC,$host_os in
15034  yes,cygwin* | yes,mingw* | yes,pw32*)
15035    library_names_spec='$libname.dll.a'
15036    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15037    postinstall_cmds='base_file=`basename \${file}`~
15038      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15039      dldir=$destdir/`dirname \$dlpath`~
15040      test -d \$dldir || mkdir -p \$dldir~
15041      $install_prog $dir/$dlname \$dldir/$dlname~
15042      chmod a+x \$dldir/$dlname'
15043    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15044      dlpath=$dir/\$dldll~
15045       $rm \$dlpath'
15046    shlibpath_overrides_runpath=yes
15047
15048    case $host_os in
15049    cygwin*)
15050      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15051      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15052      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15053      ;;
15054    mingw*)
15055      # MinGW DLLs use traditional 'lib' prefix
15056      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15057      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15058      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15059        # It is most probably a Windows format PATH printed by
15060        # mingw gcc, but we are running on Cygwin. Gcc prints its search
15061        # path with ; separators, and with drive letters. We can handle the
15062        # drive letters (cygwin fileutils understands them), so leave them,
15063        # especially as we might pass files found there to a mingw objdump,
15064        # which wouldn't understand a cygwinified path. Ahh.
15065        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15066      else
15067        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15068      fi
15069      ;;
15070    pw32*)
15071      # pw32 DLLs use 'pw' prefix rather than 'lib'
15072      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15073      ;;
15074    esac
15075    ;;
15076
15077  *)
15078    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15079    ;;
15080  esac
15081  dynamic_linker='Win32 ld.exe'
15082  # FIXME: first we should search . and the directory the executable is in
15083  shlibpath_var=PATH
15084  ;;
15085
15086darwin* | rhapsody*)
15087  dynamic_linker="$host_os dyld"
15088  version_type=darwin
15089  need_lib_prefix=no
15090  need_version=no
15091  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15092  soname_spec='${libname}${release}${major}$shared_ext'
15093  shlibpath_overrides_runpath=yes
15094  shlibpath_var=DYLD_LIBRARY_PATH
15095  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15096  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15097  if test "$GCC" = yes; then
15098    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"`
15099  else
15100    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15101  fi
15102  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15103  ;;
15104
15105dgux*)
15106  version_type=linux
15107  need_lib_prefix=no
15108  need_version=no
15109  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15110  soname_spec='${libname}${release}${shared_ext}$major'
15111  shlibpath_var=LD_LIBRARY_PATH
15112  ;;
15113
15114freebsd1*)
15115  dynamic_linker=no
15116  ;;
15117
15118kfreebsd*-gnu)
15119  version_type=linux
15120  need_lib_prefix=no
15121  need_version=no
15122  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15123  soname_spec='${libname}${release}${shared_ext}$major'
15124  shlibpath_var=LD_LIBRARY_PATH
15125  shlibpath_overrides_runpath=no
15126  hardcode_into_libs=yes
15127  dynamic_linker='GNU ld.so'
15128  ;;
15129
15130freebsd* | dragonfly*)
15131  # DragonFly does not have aout.  When/if they implement a new
15132  # versioning mechanism, adjust this.
15133  if test -x /usr/bin/objformat; then
15134    objformat=`/usr/bin/objformat`
15135  else
15136    case $host_os in
15137    freebsd[123]*) objformat=aout ;;
15138    *) objformat=elf ;;
15139    esac
15140  fi
15141  version_type=freebsd-$objformat
15142  case $version_type in
15143    freebsd-elf*)
15144      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15145      need_version=no
15146      need_lib_prefix=no
15147      ;;
15148    freebsd-*)
15149      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15150      need_version=yes
15151      ;;
15152  esac
15153  shlibpath_var=LD_LIBRARY_PATH
15154  case $host_os in
15155  freebsd2*)
15156    shlibpath_overrides_runpath=yes
15157    ;;
15158  freebsd3.[01]* | freebsdelf3.[01]*)
15159    shlibpath_overrides_runpath=yes
15160    hardcode_into_libs=yes
15161    ;;
15162  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15163  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15164    shlibpath_overrides_runpath=no
15165    hardcode_into_libs=yes
15166    ;;
15167  freebsd*) # from 4.6 on
15168    shlibpath_overrides_runpath=yes
15169    hardcode_into_libs=yes
15170    ;;
15171  esac
15172  ;;
15173
15174gnu*)
15175  version_type=linux
15176  need_lib_prefix=no
15177  need_version=no
15178  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15179  soname_spec='${libname}${release}${shared_ext}$major'
15180  shlibpath_var=LD_LIBRARY_PATH
15181  hardcode_into_libs=yes
15182  ;;
15183
15184hpux9* | hpux10* | hpux11*)
15185  # Give a soname corresponding to the major version so that dld.sl refuses to
15186  # link against other versions.
15187  version_type=sunos
15188  need_lib_prefix=no
15189  need_version=no
15190  case $host_cpu in
15191  ia64*)
15192    shrext_cmds='.so'
15193    hardcode_into_libs=yes
15194    dynamic_linker="$host_os dld.so"
15195    shlibpath_var=LD_LIBRARY_PATH
15196    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15197    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15198    soname_spec='${libname}${release}${shared_ext}$major'
15199    if test "X$HPUX_IA64_MODE" = X32; then
15200      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15201    else
15202      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15203    fi
15204    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15205    ;;
15206   hppa*64*)
15207     shrext_cmds='.sl'
15208     hardcode_into_libs=yes
15209     dynamic_linker="$host_os dld.sl"
15210     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15211     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15212     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15213     soname_spec='${libname}${release}${shared_ext}$major'
15214     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15215     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15216     ;;
15217   *)
15218    shrext_cmds='.sl'
15219    dynamic_linker="$host_os dld.sl"
15220    shlibpath_var=SHLIB_PATH
15221    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15222    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15223    soname_spec='${libname}${release}${shared_ext}$major'
15224    ;;
15225  esac
15226  # HP-UX runs *really* slowly unless shared libraries are mode 555.
15227  postinstall_cmds='chmod 555 $lib'
15228  ;;
15229
15230interix3*)
15231  version_type=linux
15232  need_lib_prefix=no
15233  need_version=no
15234  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15235  soname_spec='${libname}${release}${shared_ext}$major'
15236  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15237  shlibpath_var=LD_LIBRARY_PATH
15238  shlibpath_overrides_runpath=no
15239  hardcode_into_libs=yes
15240  ;;
15241
15242irix5* | irix6* | nonstopux*)
15243  case $host_os in
15244    nonstopux*) version_type=nonstopux ;;
15245    *)
15246	if test "$lt_cv_prog_gnu_ld" = yes; then
15247		version_type=linux
15248	else
15249		version_type=irix
15250	fi ;;
15251  esac
15252  need_lib_prefix=no
15253  need_version=no
15254  soname_spec='${libname}${release}${shared_ext}$major'
15255  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15256  case $host_os in
15257  irix5* | nonstopux*)
15258    libsuff= shlibsuff=
15259    ;;
15260  *)
15261    case $LD in # libtool.m4 will add one of these switches to LD
15262    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15263      libsuff= shlibsuff= libmagic=32-bit;;
15264    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15265      libsuff=32 shlibsuff=N32 libmagic=N32;;
15266    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15267      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15268    *) libsuff= shlibsuff= libmagic=never-match;;
15269    esac
15270    ;;
15271  esac
15272  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15273  shlibpath_overrides_runpath=no
15274  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15275  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15276  hardcode_into_libs=yes
15277  ;;
15278
15279# No shared lib support for Linux oldld, aout, or coff.
15280linux*oldld* | linux*aout* | linux*coff*)
15281  dynamic_linker=no
15282  ;;
15283
15284# This must be Linux ELF.
15285linux*)
15286  version_type=linux
15287  need_lib_prefix=no
15288  need_version=no
15289  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15290  soname_spec='${libname}${release}${shared_ext}$major'
15291  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15292  shlibpath_var=LD_LIBRARY_PATH
15293  shlibpath_overrides_runpath=no
15294  # This implies no fast_install, which is unacceptable.
15295  # Some rework will be needed to allow for fast_install
15296  # before this can be enabled.
15297  hardcode_into_libs=yes
15298
15299  # find out which ABI we are using
15300  libsuff=
15301  case "$host_cpu" in
15302  x86_64*|s390x*|powerpc64*)
15303    echo '#line 15303 "configure"' > conftest.$ac_ext
15304    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15305  (eval $ac_compile) 2>&5
15306  ac_status=$?
15307  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15308  (exit $ac_status); }; then
15309      case `/usr/bin/file conftest.$ac_objext` in
15310      *64-bit*)
15311        libsuff=64
15312        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
15313        ;;
15314      esac
15315    fi
15316    rm -rf conftest*
15317    ;;
15318  esac
15319
15320  # Append ld.so.conf contents to the search path
15321  if test -f /etc/ld.so.conf; then
15322    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15323    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
15324  fi
15325
15326  # We used to test for /lib/ld.so.1 and disable shared libraries on
15327  # powerpc, because MkLinux only supported shared libraries with the
15328  # GNU dynamic linker.  Since this was broken with cross compilers,
15329  # most powerpc-linux boxes support dynamic linking these days and
15330  # people can always --disable-shared, the test was removed, and we
15331  # assume the GNU/Linux dynamic linker is in use.
15332  dynamic_linker='GNU/Linux ld.so'
15333  ;;
15334
15335knetbsd*-gnu)
15336  version_type=linux
15337  need_lib_prefix=no
15338  need_version=no
15339  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15340  soname_spec='${libname}${release}${shared_ext}$major'
15341  shlibpath_var=LD_LIBRARY_PATH
15342  shlibpath_overrides_runpath=no
15343  hardcode_into_libs=yes
15344  dynamic_linker='GNU ld.so'
15345  ;;
15346
15347netbsd*)
15348  version_type=sunos
15349  need_lib_prefix=no
15350  need_version=no
15351  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15352    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15353    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15354    dynamic_linker='NetBSD (a.out) ld.so'
15355  else
15356    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15357    soname_spec='${libname}${release}${shared_ext}$major'
15358    dynamic_linker='NetBSD ld.elf_so'
15359  fi
15360  shlibpath_var=LD_LIBRARY_PATH
15361  shlibpath_overrides_runpath=yes
15362  hardcode_into_libs=yes
15363  ;;
15364
15365newsos6)
15366  version_type=linux
15367  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15368  shlibpath_var=LD_LIBRARY_PATH
15369  shlibpath_overrides_runpath=yes
15370  ;;
15371
15372nto-qnx*)
15373  version_type=linux
15374  need_lib_prefix=no
15375  need_version=no
15376  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15377  soname_spec='${libname}${release}${shared_ext}$major'
15378  shlibpath_var=LD_LIBRARY_PATH
15379  shlibpath_overrides_runpath=yes
15380  ;;
15381
15382openbsd*)
15383  version_type=sunos
15384  sys_lib_dlsearch_path_spec="/usr/lib"
15385  need_lib_prefix=no
15386  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15387  case $host_os in
15388    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15389    *)                         need_version=no  ;;
15390  esac
15391  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15392  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15393  shlibpath_var=LD_LIBRARY_PATH
15394  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15395    case $host_os in
15396      openbsd2.[89] | openbsd2.[89].*)
15397	shlibpath_overrides_runpath=no
15398	;;
15399      *)
15400	shlibpath_overrides_runpath=yes
15401	;;
15402      esac
15403  else
15404    shlibpath_overrides_runpath=yes
15405  fi
15406  ;;
15407
15408os2*)
15409  libname_spec='$name'
15410  shrext_cmds=".dll"
15411  need_lib_prefix=no
15412  library_names_spec='$libname${shared_ext} $libname.a'
15413  dynamic_linker='OS/2 ld.exe'
15414  shlibpath_var=LIBPATH
15415  ;;
15416
15417osf3* | osf4* | osf5*)
15418  version_type=osf
15419  need_lib_prefix=no
15420  need_version=no
15421  soname_spec='${libname}${release}${shared_ext}$major'
15422  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15423  shlibpath_var=LD_LIBRARY_PATH
15424  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15425  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15426  ;;
15427
15428solaris*)
15429  version_type=linux
15430  need_lib_prefix=no
15431  need_version=no
15432  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15433  soname_spec='${libname}${release}${shared_ext}$major'
15434  shlibpath_var=LD_LIBRARY_PATH
15435  shlibpath_overrides_runpath=yes
15436  hardcode_into_libs=yes
15437  # ldd complains unless libraries are executable
15438  postinstall_cmds='chmod +x $lib'
15439  ;;
15440
15441sunos4*)
15442  version_type=sunos
15443  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15444  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15445  shlibpath_var=LD_LIBRARY_PATH
15446  shlibpath_overrides_runpath=yes
15447  if test "$with_gnu_ld" = yes; then
15448    need_lib_prefix=no
15449  fi
15450  need_version=yes
15451  ;;
15452
15453sysv4 | sysv4.3*)
15454  version_type=linux
15455  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15456  soname_spec='${libname}${release}${shared_ext}$major'
15457  shlibpath_var=LD_LIBRARY_PATH
15458  case $host_vendor in
15459    sni)
15460      shlibpath_overrides_runpath=no
15461      need_lib_prefix=no
15462      export_dynamic_flag_spec='${wl}-Blargedynsym'
15463      runpath_var=LD_RUN_PATH
15464      ;;
15465    siemens)
15466      need_lib_prefix=no
15467      ;;
15468    motorola)
15469      need_lib_prefix=no
15470      need_version=no
15471      shlibpath_overrides_runpath=no
15472      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15473      ;;
15474  esac
15475  ;;
15476
15477sysv4*MP*)
15478  if test -d /usr/nec ;then
15479    version_type=linux
15480    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15481    soname_spec='$libname${shared_ext}.$major'
15482    shlibpath_var=LD_LIBRARY_PATH
15483  fi
15484  ;;
15485
15486sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15487  version_type=freebsd-elf
15488  need_lib_prefix=no
15489  need_version=no
15490  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15491  soname_spec='${libname}${release}${shared_ext}$major'
15492  shlibpath_var=LD_LIBRARY_PATH
15493  hardcode_into_libs=yes
15494  if test "$with_gnu_ld" = yes; then
15495    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15496    shlibpath_overrides_runpath=no
15497  else
15498    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15499    shlibpath_overrides_runpath=yes
15500    case $host_os in
15501      sco3.2v5*)
15502        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15503	;;
15504    esac
15505  fi
15506  sys_lib_dlsearch_path_spec='/usr/lib'
15507  ;;
15508
15509uts4*)
15510  version_type=linux
15511  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15512  soname_spec='${libname}${release}${shared_ext}$major'
15513  shlibpath_var=LD_LIBRARY_PATH
15514  ;;
15515
15516*)
15517  dynamic_linker=no
15518  ;;
15519esac
15520echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15521echo "${ECHO_T}$dynamic_linker" >&6
15522test "$dynamic_linker" = no && can_build_shared=no
15523
15524variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15525if test "$GCC" = yes; then
15526  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15527fi
15528
15529echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15530echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15531hardcode_action_F77=
15532if test -n "$hardcode_libdir_flag_spec_F77" || \
15533   test -n "$runpath_var_F77" || \
15534   test "X$hardcode_automatic_F77" = "Xyes" ; then
15535
15536  # We can hardcode non-existant directories.
15537  if test "$hardcode_direct_F77" != no &&
15538     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15539     # have to relink, otherwise we might link with an installed library
15540     # when we should be linking with a yet-to-be-installed one
15541     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15542     test "$hardcode_minus_L_F77" != no; then
15543    # Linking always hardcodes the temporary library directory.
15544    hardcode_action_F77=relink
15545  else
15546    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15547    hardcode_action_F77=immediate
15548  fi
15549else
15550  # We cannot hardcode anything, or else we can only hardcode existing
15551  # directories.
15552  hardcode_action_F77=unsupported
15553fi
15554echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15555echo "${ECHO_T}$hardcode_action_F77" >&6
15556
15557if test "$hardcode_action_F77" = relink; then
15558  # Fast installation is not supported
15559  enable_fast_install=no
15560elif test "$shlibpath_overrides_runpath" = yes ||
15561     test "$enable_shared" = no; then
15562  # Fast installation is not necessary
15563  enable_fast_install=needless
15564fi
15565
15566
15567# The else clause should only fire when bootstrapping the
15568# libtool distribution, otherwise you forgot to ship ltmain.sh
15569# with your package, and you will get complaints that there are
15570# no rules to generate ltmain.sh.
15571if test -f "$ltmain"; then
15572  # See if we are running on zsh, and set the options which allow our commands through
15573  # without removal of \ escapes.
15574  if test -n "${ZSH_VERSION+set}" ; then
15575    setopt NO_GLOB_SUBST
15576  fi
15577  # Now quote all the things that may contain metacharacters while being
15578  # careful not to overquote the AC_SUBSTed values.  We take copies of the
15579  # variables and quote the copies for generation of the libtool script.
15580  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15581    SED SHELL STRIP \
15582    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15583    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15584    deplibs_check_method reload_flag reload_cmds need_locks \
15585    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15586    lt_cv_sys_global_symbol_to_c_name_address \
15587    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15588    old_postinstall_cmds old_postuninstall_cmds \
15589    compiler_F77 \
15590    CC_F77 \
15591    LD_F77 \
15592    lt_prog_compiler_wl_F77 \
15593    lt_prog_compiler_pic_F77 \
15594    lt_prog_compiler_static_F77 \
15595    lt_prog_compiler_no_builtin_flag_F77 \
15596    export_dynamic_flag_spec_F77 \
15597    thread_safe_flag_spec_F77 \
15598    whole_archive_flag_spec_F77 \
15599    enable_shared_with_static_runtimes_F77 \
15600    old_archive_cmds_F77 \
15601    old_archive_from_new_cmds_F77 \
15602    predep_objects_F77 \
15603    postdep_objects_F77 \
15604    predeps_F77 \
15605    postdeps_F77 \
15606    compiler_lib_search_path_F77 \
15607    archive_cmds_F77 \
15608    archive_expsym_cmds_F77 \
15609    postinstall_cmds_F77 \
15610    postuninstall_cmds_F77 \
15611    old_archive_from_expsyms_cmds_F77 \
15612    allow_undefined_flag_F77 \
15613    no_undefined_flag_F77 \
15614    export_symbols_cmds_F77 \
15615    hardcode_libdir_flag_spec_F77 \
15616    hardcode_libdir_flag_spec_ld_F77 \
15617    hardcode_libdir_separator_F77 \
15618    hardcode_automatic_F77 \
15619    module_cmds_F77 \
15620    module_expsym_cmds_F77 \
15621    lt_cv_prog_compiler_c_o_F77 \
15622    exclude_expsyms_F77 \
15623    include_expsyms_F77; do
15624
15625    case $var in
15626    old_archive_cmds_F77 | \
15627    old_archive_from_new_cmds_F77 | \
15628    archive_cmds_F77 | \
15629    archive_expsym_cmds_F77 | \
15630    module_cmds_F77 | \
15631    module_expsym_cmds_F77 | \
15632    old_archive_from_expsyms_cmds_F77 | \
15633    export_symbols_cmds_F77 | \
15634    extract_expsyms_cmds | reload_cmds | finish_cmds | \
15635    postinstall_cmds | postuninstall_cmds | \
15636    old_postinstall_cmds | old_postuninstall_cmds | \
15637    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15638      # Double-quote double-evaled strings.
15639      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15640      ;;
15641    *)
15642      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15643      ;;
15644    esac
15645  done
15646
15647  case $lt_echo in
15648  *'\$0 --fallback-echo"')
15649    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15650    ;;
15651  esac
15652
15653cfgfile="$ofile"
15654
15655  cat <<__EOF__ >> "$cfgfile"
15656# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15657
15658# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15659
15660# Shell to use when invoking shell scripts.
15661SHELL=$lt_SHELL
15662
15663# Whether or not to build shared libraries.
15664build_libtool_libs=$enable_shared
15665
15666# Whether or not to build static libraries.
15667build_old_libs=$enable_static
15668
15669# Whether or not to add -lc for building shared libraries.
15670build_libtool_need_lc=$archive_cmds_need_lc_F77
15671
15672# Whether or not to disallow shared libs when runtime libs are static
15673allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15674
15675# Whether or not to optimize for fast installation.
15676fast_install=$enable_fast_install
15677
15678# The host system.
15679host_alias=$host_alias
15680host=$host
15681host_os=$host_os
15682
15683# The build system.
15684build_alias=$build_alias
15685build=$build
15686build_os=$build_os
15687
15688# An echo program that does not interpret backslashes.
15689echo=$lt_echo
15690
15691# The archiver.
15692AR=$lt_AR
15693AR_FLAGS=$lt_AR_FLAGS
15694
15695# A C compiler.
15696LTCC=$lt_LTCC
15697
15698# LTCC compiler flags.
15699LTCFLAGS=$lt_LTCFLAGS
15700
15701# A language-specific compiler.
15702CC=$lt_compiler_F77
15703
15704# Is the compiler the GNU C compiler?
15705with_gcc=$GCC_F77
15706
15707gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
15708gcc_ver=\`gcc -dumpversion\`
15709
15710# An ERE matcher.
15711EGREP=$lt_EGREP
15712
15713# The linker used to build libraries.
15714LD=$lt_LD_F77
15715
15716# Whether we need hard or soft links.
15717LN_S=$lt_LN_S
15718
15719# A BSD-compatible nm program.
15720NM=$lt_NM
15721
15722# A symbol stripping program
15723STRIP=$lt_STRIP
15724
15725# Used to examine libraries when file_magic_cmd begins "file"
15726MAGIC_CMD=$MAGIC_CMD
15727
15728# Used on cygwin: DLL creation program.
15729DLLTOOL="$DLLTOOL"
15730
15731# Used on cygwin: object dumper.
15732OBJDUMP="$OBJDUMP"
15733
15734# Used on cygwin: assembler.
15735AS="$AS"
15736
15737# The name of the directory that contains temporary libtool files.
15738objdir=$objdir
15739
15740# How to create reloadable object files.
15741reload_flag=$lt_reload_flag
15742reload_cmds=$lt_reload_cmds
15743
15744# How to pass a linker flag through the compiler.
15745wl=$lt_lt_prog_compiler_wl_F77
15746
15747# Object file suffix (normally "o").
15748objext="$ac_objext"
15749
15750# Old archive suffix (normally "a").
15751libext="$libext"
15752
15753# Shared library suffix (normally ".so").
15754shrext_cmds='$shrext_cmds'
15755
15756# Executable file suffix (normally "").
15757exeext="$exeext"
15758
15759# Additional compiler flags for building library objects.
15760pic_flag=$lt_lt_prog_compiler_pic_F77
15761pic_mode=$pic_mode
15762
15763# What is the maximum length of a command?
15764max_cmd_len=$lt_cv_sys_max_cmd_len
15765
15766# Does compiler simultaneously support -c and -o options?
15767compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15768
15769# Must we lock files when doing compilation?
15770need_locks=$lt_need_locks
15771
15772# Do we need the lib prefix for modules?
15773need_lib_prefix=$need_lib_prefix
15774
15775# Do we need a version for libraries?
15776need_version=$need_version
15777
15778# Whether dlopen is supported.
15779dlopen_support=$enable_dlopen
15780
15781# Whether dlopen of programs is supported.
15782dlopen_self=$enable_dlopen_self
15783
15784# Whether dlopen of statically linked programs is supported.
15785dlopen_self_static=$enable_dlopen_self_static
15786
15787# Compiler flag to prevent dynamic linking.
15788link_static_flag=$lt_lt_prog_compiler_static_F77
15789
15790# Compiler flag to turn off builtin functions.
15791no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15792
15793# Compiler flag to allow reflexive dlopens.
15794export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15795
15796# Compiler flag to generate shared objects directly from archives.
15797whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15798
15799# Compiler flag to generate thread-safe objects.
15800thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15801
15802# Library versioning type.
15803version_type=$version_type
15804
15805# Format of library name prefix.
15806libname_spec=$lt_libname_spec
15807
15808# List of archive names.  First name is the real one, the rest are links.
15809# The last name is the one that the linker finds with -lNAME.
15810library_names_spec=$lt_library_names_spec
15811
15812# The coded name of the library, if different from the real name.
15813soname_spec=$lt_soname_spec
15814
15815# Commands used to build and install an old-style archive.
15816RANLIB=$lt_RANLIB
15817old_archive_cmds=$lt_old_archive_cmds_F77
15818old_postinstall_cmds=$lt_old_postinstall_cmds
15819old_postuninstall_cmds=$lt_old_postuninstall_cmds
15820
15821# Create an old-style archive from a shared archive.
15822old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15823
15824# Create a temporary old-style archive to link instead of a shared archive.
15825old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15826
15827# Commands used to build and install a shared archive.
15828archive_cmds=$lt_archive_cmds_F77
15829archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15830postinstall_cmds=$lt_postinstall_cmds
15831postuninstall_cmds=$lt_postuninstall_cmds
15832
15833# Commands used to build a loadable module (assumed same as above if empty)
15834module_cmds=$lt_module_cmds_F77
15835module_expsym_cmds=$lt_module_expsym_cmds_F77
15836
15837# Commands to strip libraries.
15838old_striplib=$lt_old_striplib
15839striplib=$lt_striplib
15840
15841# Dependencies to place before the objects being linked to create a
15842# shared library.
15843predep_objects=\`echo $lt_predep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15844
15845# Dependencies to place after the objects being linked to create a
15846# shared library.
15847postdep_objects=\`echo $lt_postdep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15848
15849# Dependencies to place before the objects being linked to create a
15850# shared library.
15851predeps=$lt_predeps_F77
15852
15853# Dependencies to place after the objects being linked to create a
15854# shared library.
15855postdeps=$lt_postdeps_F77
15856
15857# The library search path used internally by the compiler when linking
15858# a shared library.
15859compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15860
15861# Method to check whether dependent libraries are shared objects.
15862deplibs_check_method=$lt_deplibs_check_method
15863
15864# Command to use when deplibs_check_method == file_magic.
15865file_magic_cmd=$lt_file_magic_cmd
15866
15867# Flag that allows shared libraries with undefined symbols to be built.
15868allow_undefined_flag=$lt_allow_undefined_flag_F77
15869
15870# Flag that forces no undefined symbols.
15871no_undefined_flag=$lt_no_undefined_flag_F77
15872
15873# Commands used to finish a libtool library installation in a directory.
15874finish_cmds=$lt_finish_cmds
15875
15876# Same as above, but a single script fragment to be evaled but not shown.
15877finish_eval=$lt_finish_eval
15878
15879# Take the output of nm and produce a listing of raw symbols and C names.
15880global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15881
15882# Transform the output of nm in a proper C declaration
15883global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15884
15885# Transform the output of nm in a C name address pair
15886global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15887
15888# This is the shared library runtime path variable.
15889runpath_var=$runpath_var
15890
15891# This is the shared library path variable.
15892shlibpath_var=$shlibpath_var
15893
15894# Is shlibpath searched before the hard-coded library search path?
15895shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15896
15897# How to hardcode a shared library path into an executable.
15898hardcode_action=$hardcode_action_F77
15899
15900# Whether we should hardcode library paths into libraries.
15901hardcode_into_libs=$hardcode_into_libs
15902
15903# Flag to hardcode \$libdir into a binary during linking.
15904# This must work even if \$libdir does not exist.
15905hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15906
15907# If ld is used when linking, flag to hardcode \$libdir into
15908# a binary during linking. This must work even if \$libdir does
15909# not exist.
15910hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15911
15912# Whether we need a single -rpath flag with a separated argument.
15913hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15914
15915# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15916# resulting binary.
15917hardcode_direct=$hardcode_direct_F77
15918
15919# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15920# resulting binary.
15921hardcode_minus_L=$hardcode_minus_L_F77
15922
15923# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15924# the resulting binary.
15925hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15926
15927# Set to yes if building a shared library automatically hardcodes DIR into the library
15928# and all subsequent libraries and executables linked against it.
15929hardcode_automatic=$hardcode_automatic_F77
15930
15931# Variables whose values should be saved in libtool wrapper scripts and
15932# restored at relink time.
15933variables_saved_for_relink="$variables_saved_for_relink"
15934
15935# Whether libtool must link a program against all its dependency libraries.
15936link_all_deplibs=$link_all_deplibs_F77
15937
15938# Compile-time system search path for libraries
15939sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15940
15941# Run-time system search path for libraries
15942sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15943
15944# Fix the shell variable \$srcfile for the compiler.
15945fix_srcfile_path="$fix_srcfile_path_F77"
15946
15947# Set to yes if exported symbols are required.
15948always_export_symbols=$always_export_symbols_F77
15949
15950# The commands to list exported symbols.
15951export_symbols_cmds=$lt_export_symbols_cmds_F77
15952
15953# The commands to extract the exported symbol list from a shared archive.
15954extract_expsyms_cmds=$lt_extract_expsyms_cmds
15955
15956# Symbols that should not be listed in the preloaded symbols.
15957exclude_expsyms=$lt_exclude_expsyms_F77
15958
15959# Symbols that must always be exported.
15960include_expsyms=$lt_include_expsyms_F77
15961
15962# ### END LIBTOOL TAG CONFIG: $tagname
15963
15964__EOF__
15965
15966
15967else
15968  # If there is no Makefile yet, we rely on a make rule to execute
15969  # `config.status --recheck' to rerun these tests and create the
15970  # libtool script then.
15971  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15972  if test -f "$ltmain_in"; then
15973    test -f Makefile && make "$ltmain"
15974  fi
15975fi
15976
15977
15978ac_ext=c
15979ac_cpp='$CPP $CPPFLAGS'
15980ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15981ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15982ac_compiler_gnu=$ac_cv_c_compiler_gnu
15983
15984CC="$lt_save_CC"
15985
15986	else
15987	  tagname=""
15988	fi
15989	;;
15990
15991      GCJ)
15992	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15993
15994
15995
15996# Source file extension for Java test sources.
15997ac_ext=java
15998
15999# Object file extension for compiled Java test sources.
16000objext=o
16001objext_GCJ=$objext
16002
16003# Code to be used in simple compile tests
16004lt_simple_compile_test_code="class foo {}\n"
16005
16006# Code to be used in simple link tests
16007lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16008
16009# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16010
16011# If no C compiler was specified, use CC.
16012LTCC=${LTCC-"$CC"}
16013
16014# If no C compiler flags were specified, use CFLAGS.
16015LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16016
16017# Allow CC to be a program name with arguments.
16018compiler=$CC
16019
16020
16021# save warnings/boilerplate of simple test code
16022ac_outfile=conftest.$ac_objext
16023printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16024eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16025_lt_compiler_boilerplate=`cat conftest.err`
16026$rm conftest*
16027
16028ac_outfile=conftest.$ac_objext
16029printf "$lt_simple_link_test_code" >conftest.$ac_ext
16030eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16031_lt_linker_boilerplate=`cat conftest.err`
16032$rm conftest*
16033
16034
16035# Allow CC to be a program name with arguments.
16036lt_save_CC="$CC"
16037CC=${GCJ-"gcj"}
16038compiler=$CC
16039compiler_GCJ=$CC
16040for cc_temp in $compiler""; do
16041  case $cc_temp in
16042    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16043    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16044    \-*) ;;
16045    *) break;;
16046  esac
16047done
16048cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16049
16050
16051# GCJ did not exist at the time GCC didn't implicitly link libc in.
16052archive_cmds_need_lc_GCJ=no
16053
16054old_archive_cmds_GCJ=$old_archive_cmds
16055
16056
16057lt_prog_compiler_no_builtin_flag_GCJ=
16058
16059if test "$GCC" = yes; then
16060  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16061
16062
16063echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16064echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16065if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16066  echo $ECHO_N "(cached) $ECHO_C" >&6
16067else
16068  lt_cv_prog_compiler_rtti_exceptions=no
16069  ac_outfile=conftest.$ac_objext
16070   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16071   lt_compiler_flag="-fno-rtti -fno-exceptions"
16072   # Insert the option either (1) after the last *FLAGS variable, or
16073   # (2) before a word containing "conftest.", or (3) at the end.
16074   # Note that $ac_compile itself does not contain backslashes and begins
16075   # with a dollar sign (not a hyphen), so the echo should work correctly.
16076   # The option is referenced via a variable to avoid confusing sed.
16077   lt_compile=`echo "$ac_compile" | $SED \
16078   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16079   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16080   -e 's:$: $lt_compiler_flag:'`
16081   (eval echo "\"\$as_me:16081: $lt_compile\"" >&5)
16082   (eval "$lt_compile" 2>conftest.err)
16083   ac_status=$?
16084   cat conftest.err >&5
16085   echo "$as_me:16085: \$? = $ac_status" >&5
16086   if (exit $ac_status) && test -s "$ac_outfile"; then
16087     # The compiler can only warn and ignore the option if not recognized
16088     # So say no if there are warnings other than the usual output.
16089     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16090     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16091     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16092       lt_cv_prog_compiler_rtti_exceptions=yes
16093     fi
16094   fi
16095   $rm conftest*
16096
16097fi
16098echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16099echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16100
16101if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16102    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16103else
16104    :
16105fi
16106
16107fi
16108
16109lt_prog_compiler_wl_GCJ=
16110lt_prog_compiler_pic_GCJ=
16111lt_prog_compiler_static_GCJ=
16112
16113echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16114echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16115
16116  if test "$GCC" = yes; then
16117    lt_prog_compiler_wl_GCJ='-Wl,'
16118    lt_prog_compiler_static_GCJ='-static'
16119
16120    case $host_os in
16121      aix*)
16122      # All AIX code is PIC.
16123      if test "$host_cpu" = ia64; then
16124	# AIX 5 now supports IA64 processor
16125	lt_prog_compiler_static_GCJ='-Bstatic'
16126      fi
16127      ;;
16128
16129    amigaos*)
16130      # FIXME: we need at least 68020 code to build shared libraries, but
16131      # adding the `-m68020' flag to GCC prevents building anything better,
16132      # like `-m68040'.
16133      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16134      ;;
16135
16136    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16137      # PIC is the default for these OSes.
16138      ;;
16139
16140    mingw* | pw32* | os2*)
16141      # This hack is so that the source file can tell whether it is being
16142      # built for inclusion in a dll (and should export symbols for example).
16143      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16144      ;;
16145
16146    darwin* | rhapsody*)
16147      # PIC is the default on this platform
16148      # Common symbols not allowed in MH_DYLIB files
16149      lt_prog_compiler_pic_GCJ='-fno-common'
16150      ;;
16151
16152    interix3*)
16153      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16154      # Instead, we relocate shared libraries at runtime.
16155      ;;
16156
16157    msdosdjgpp*)
16158      # Just because we use GCC doesn't mean we suddenly get shared libraries
16159      # on systems that don't support them.
16160      lt_prog_compiler_can_build_shared_GCJ=no
16161      enable_shared=no
16162      ;;
16163
16164    sysv4*MP*)
16165      if test -d /usr/nec; then
16166	lt_prog_compiler_pic_GCJ=-Kconform_pic
16167      fi
16168      ;;
16169
16170    hpux*)
16171      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16172      # not for PA HP-UX.
16173      case $host_cpu in
16174      hppa*64*|ia64*)
16175	# +Z the default
16176	;;
16177      *)
16178	lt_prog_compiler_pic_GCJ='-fPIC'
16179	;;
16180      esac
16181      ;;
16182
16183    *)
16184      lt_prog_compiler_pic_GCJ='-fPIC'
16185      ;;
16186    esac
16187  else
16188    # PORTME Check for flag to pass linker flags through the system compiler.
16189    case $host_os in
16190    aix*)
16191      lt_prog_compiler_wl_GCJ='-Wl,'
16192      if test "$host_cpu" = ia64; then
16193	# AIX 5 now supports IA64 processor
16194	lt_prog_compiler_static_GCJ='-Bstatic'
16195      else
16196	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16197      fi
16198      ;;
16199      darwin*)
16200        # PIC is the default on this platform
16201        # Common symbols not allowed in MH_DYLIB files
16202       case $cc_basename in
16203         xlc*)
16204         lt_prog_compiler_pic_GCJ='-qnocommon'
16205         lt_prog_compiler_wl_GCJ='-Wl,'
16206         ;;
16207       esac
16208       ;;
16209
16210    mingw* | pw32* | os2*)
16211      # This hack is so that the source file can tell whether it is being
16212      # built for inclusion in a dll (and should export symbols for example).
16213      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16214      ;;
16215
16216    hpux9* | hpux10* | hpux11*)
16217      lt_prog_compiler_wl_GCJ='-Wl,'
16218      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16219      # not for PA HP-UX.
16220      case $host_cpu in
16221      hppa*64*|ia64*)
16222	# +Z the default
16223	;;
16224      *)
16225	lt_prog_compiler_pic_GCJ='+Z'
16226	;;
16227      esac
16228      # Is there a better lt_prog_compiler_static that works with the bundled CC?
16229      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16230      ;;
16231
16232    irix5* | irix6* | nonstopux*)
16233      lt_prog_compiler_wl_GCJ='-Wl,'
16234      # PIC (with -KPIC) is the default.
16235      lt_prog_compiler_static_GCJ='-non_shared'
16236      ;;
16237
16238    newsos6)
16239      lt_prog_compiler_pic_GCJ='-KPIC'
16240      lt_prog_compiler_static_GCJ='-Bstatic'
16241      ;;
16242
16243    linux*)
16244      case $cc_basename in
16245      icc* | ecc*)
16246	lt_prog_compiler_wl_GCJ='-Wl,'
16247	lt_prog_compiler_pic_GCJ='-KPIC'
16248	lt_prog_compiler_static_GCJ='-static'
16249        ;;
16250      pgcc* | pgf77* | pgf90* | pgf95*)
16251        # Portland Group compilers (*not* the Pentium gcc compiler,
16252	# which looks to be a dead project)
16253	lt_prog_compiler_wl_GCJ='-Wl,'
16254	lt_prog_compiler_pic_GCJ='-fpic'
16255	lt_prog_compiler_static_GCJ='-Bstatic'
16256        ;;
16257      ccc*)
16258        lt_prog_compiler_wl_GCJ='-Wl,'
16259        # All Alpha code is PIC.
16260        lt_prog_compiler_static_GCJ='-non_shared'
16261        ;;
16262      esac
16263      ;;
16264
16265    osf3* | osf4* | osf5*)
16266      lt_prog_compiler_wl_GCJ='-Wl,'
16267      # All OSF/1 code is PIC.
16268      lt_prog_compiler_static_GCJ='-non_shared'
16269      ;;
16270
16271    solaris*)
16272      lt_prog_compiler_pic_GCJ='-KPIC'
16273      lt_prog_compiler_static_GCJ='-Bstatic'
16274      case $cc_basename in
16275      f77* | f90* | f95*)
16276	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16277      *)
16278	lt_prog_compiler_wl_GCJ='-Wl,';;
16279      esac
16280      ;;
16281
16282    sunos4*)
16283      lt_prog_compiler_wl_GCJ='-Qoption ld '
16284      lt_prog_compiler_pic_GCJ='-PIC'
16285      lt_prog_compiler_static_GCJ='-Bstatic'
16286      ;;
16287
16288    sysv4 | sysv4.2uw2* | sysv4.3*)
16289      lt_prog_compiler_wl_GCJ='-Wl,'
16290      lt_prog_compiler_pic_GCJ='-KPIC'
16291      lt_prog_compiler_static_GCJ='-Bstatic'
16292      ;;
16293
16294    sysv4*MP*)
16295      if test -d /usr/nec ;then
16296	lt_prog_compiler_pic_GCJ='-Kconform_pic'
16297	lt_prog_compiler_static_GCJ='-Bstatic'
16298      fi
16299      ;;
16300
16301    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16302      lt_prog_compiler_wl_GCJ='-Wl,'
16303      lt_prog_compiler_pic_GCJ='-KPIC'
16304      lt_prog_compiler_static_GCJ='-Bstatic'
16305      ;;
16306
16307    unicos*)
16308      lt_prog_compiler_wl_GCJ='-Wl,'
16309      lt_prog_compiler_can_build_shared_GCJ=no
16310      ;;
16311
16312    uts4*)
16313      lt_prog_compiler_pic_GCJ='-pic'
16314      lt_prog_compiler_static_GCJ='-Bstatic'
16315      ;;
16316
16317    *)
16318      lt_prog_compiler_can_build_shared_GCJ=no
16319      ;;
16320    esac
16321  fi
16322
16323echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16324echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16325
16326#
16327# Check to make sure the PIC flag actually works.
16328#
16329if test -n "$lt_prog_compiler_pic_GCJ"; then
16330
16331echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16332echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16333if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16334  echo $ECHO_N "(cached) $ECHO_C" >&6
16335else
16336  lt_prog_compiler_pic_works_GCJ=no
16337  ac_outfile=conftest.$ac_objext
16338   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16339   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16340   # Insert the option either (1) after the last *FLAGS variable, or
16341   # (2) before a word containing "conftest.", or (3) at the end.
16342   # Note that $ac_compile itself does not contain backslashes and begins
16343   # with a dollar sign (not a hyphen), so the echo should work correctly.
16344   # The option is referenced via a variable to avoid confusing sed.
16345   lt_compile=`echo "$ac_compile" | $SED \
16346   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16347   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16348   -e 's:$: $lt_compiler_flag:'`
16349   (eval echo "\"\$as_me:16349: $lt_compile\"" >&5)
16350   (eval "$lt_compile" 2>conftest.err)
16351   ac_status=$?
16352   cat conftest.err >&5
16353   echo "$as_me:16353: \$? = $ac_status" >&5
16354   if (exit $ac_status) && test -s "$ac_outfile"; then
16355     # The compiler can only warn and ignore the option if not recognized
16356     # So say no if there are warnings other than the usual output.
16357     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16358     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16359     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16360       lt_prog_compiler_pic_works_GCJ=yes
16361     fi
16362   fi
16363   $rm conftest*
16364
16365fi
16366echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16367echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16368
16369if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16370    case $lt_prog_compiler_pic_GCJ in
16371     "" | " "*) ;;
16372     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16373     esac
16374else
16375    lt_prog_compiler_pic_GCJ=
16376     lt_prog_compiler_can_build_shared_GCJ=no
16377fi
16378
16379fi
16380case $host_os in
16381  # For platforms which do not support PIC, -DPIC is meaningless:
16382  *djgpp*)
16383    lt_prog_compiler_pic_GCJ=
16384    ;;
16385  *)
16386    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16387    ;;
16388esac
16389
16390#
16391# Check to make sure the static flag actually works.
16392#
16393wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16394echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16395echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
16396if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16397  echo $ECHO_N "(cached) $ECHO_C" >&6
16398else
16399  lt_prog_compiler_static_works_GCJ=no
16400   save_LDFLAGS="$LDFLAGS"
16401   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16402   printf "$lt_simple_link_test_code" > conftest.$ac_ext
16403   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16404     # The linker can only warn and ignore the option if not recognized
16405     # So say no if there are warnings
16406     if test -s conftest.err; then
16407       # Append any errors to the config.log.
16408       cat conftest.err 1>&5
16409       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16410       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16411       if diff conftest.exp conftest.er2 >/dev/null; then
16412         lt_prog_compiler_static_works_GCJ=yes
16413       fi
16414     else
16415       lt_prog_compiler_static_works_GCJ=yes
16416     fi
16417   fi
16418   $rm conftest*
16419   LDFLAGS="$save_LDFLAGS"
16420
16421fi
16422echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16423echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
16424
16425if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16426    :
16427else
16428    lt_prog_compiler_static_GCJ=
16429fi
16430
16431
16432echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16433echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16434if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16435  echo $ECHO_N "(cached) $ECHO_C" >&6
16436else
16437  lt_cv_prog_compiler_c_o_GCJ=no
16438   $rm -r conftest 2>/dev/null
16439   mkdir conftest
16440   cd conftest
16441   mkdir out
16442   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16443
16444   lt_compiler_flag="-o out/conftest2.$ac_objext"
16445   # Insert the option either (1) after the last *FLAGS variable, or
16446   # (2) before a word containing "conftest.", or (3) at the end.
16447   # Note that $ac_compile itself does not contain backslashes and begins
16448   # with a dollar sign (not a hyphen), so the echo should work correctly.
16449   lt_compile=`echo "$ac_compile" | $SED \
16450   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16451   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16452   -e 's:$: $lt_compiler_flag:'`
16453   (eval echo "\"\$as_me:16453: $lt_compile\"" >&5)
16454   (eval "$lt_compile" 2>out/conftest.err)
16455   ac_status=$?
16456   cat out/conftest.err >&5
16457   echo "$as_me:16457: \$? = $ac_status" >&5
16458   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16459   then
16460     # The compiler can only warn and ignore the option if not recognized
16461     # So say no if there are warnings
16462     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16463     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16464     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16465       lt_cv_prog_compiler_c_o_GCJ=yes
16466     fi
16467   fi
16468   chmod u+w . 2>&5
16469   $rm conftest*
16470   # SGI C++ compiler will create directory out/ii_files/ for
16471   # template instantiation
16472   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16473   $rm out/* && rmdir out
16474   cd ..
16475   rmdir conftest
16476   $rm conftest*
16477
16478fi
16479echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16480echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16481
16482
16483hard_links="nottested"
16484if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16485  # do not overwrite the value of need_locks provided by the user
16486  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16487echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16488  hard_links=yes
16489  $rm conftest*
16490  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16491  touch conftest.a
16492  ln conftest.a conftest.b 2>&5 || hard_links=no
16493  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16494  echo "$as_me:$LINENO: result: $hard_links" >&5
16495echo "${ECHO_T}$hard_links" >&6
16496  if test "$hard_links" = no; then
16497    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16498echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16499    need_locks=warn
16500  fi
16501else
16502  need_locks=no
16503fi
16504
16505echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16506echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16507
16508  runpath_var=
16509  allow_undefined_flag_GCJ=
16510  enable_shared_with_static_runtimes_GCJ=no
16511  archive_cmds_GCJ=
16512  archive_expsym_cmds_GCJ=
16513  old_archive_From_new_cmds_GCJ=
16514  old_archive_from_expsyms_cmds_GCJ=
16515  export_dynamic_flag_spec_GCJ=
16516  whole_archive_flag_spec_GCJ=
16517  thread_safe_flag_spec_GCJ=
16518  hardcode_libdir_flag_spec_GCJ=
16519  hardcode_libdir_flag_spec_ld_GCJ=
16520  hardcode_libdir_separator_GCJ=
16521  hardcode_direct_GCJ=no
16522  hardcode_minus_L_GCJ=no
16523  hardcode_shlibpath_var_GCJ=unsupported
16524  link_all_deplibs_GCJ=unknown
16525  hardcode_automatic_GCJ=no
16526  module_cmds_GCJ=
16527  module_expsym_cmds_GCJ=
16528  always_export_symbols_GCJ=no
16529  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16530  # include_expsyms should be a list of space-separated symbols to be *always*
16531  # included in the symbol list
16532  include_expsyms_GCJ=
16533  # exclude_expsyms can be an extended regexp of symbols to exclude
16534  # it will be wrapped by ` (' and `)$', so one must not match beginning or
16535  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16536  # as well as any symbol that contains `d'.
16537  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16538  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16539  # platforms (ab)use it in PIC code, but their linkers get confused if
16540  # the symbol is explicitly referenced.  Since portable code cannot
16541  # rely on this symbol name, it's probably fine to never include it in
16542  # preloaded symbol tables.
16543  extract_expsyms_cmds=
16544  # Just being paranoid about ensuring that cc_basename is set.
16545  for cc_temp in $compiler""; do
16546  case $cc_temp in
16547    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16548    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16549    \-*) ;;
16550    *) break;;
16551  esac
16552done
16553cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16554
16555  case $host_os in
16556  cygwin* | mingw* | pw32*)
16557    # FIXME: the MSVC++ port hasn't been tested in a loooong time
16558    # When not using gcc, we currently assume that we are using
16559    # Microsoft Visual C++.
16560    if test "$GCC" != yes; then
16561      with_gnu_ld=no
16562    fi
16563    ;;
16564  interix*)
16565    # we just hope/assume this is gcc and not c89 (= MSVC++)
16566    with_gnu_ld=yes
16567    ;;
16568  openbsd*)
16569    with_gnu_ld=no
16570    ;;
16571  esac
16572
16573  ld_shlibs_GCJ=yes
16574  if test "$with_gnu_ld" = yes; then
16575    # If archive_cmds runs LD, not CC, wlarc should be empty
16576    wlarc='${wl}'
16577
16578    # Set some defaults for GNU ld with shared library support. These
16579    # are reset later if shared libraries are not supported. Putting them
16580    # here allows them to be overridden if necessary.
16581    runpath_var=LD_RUN_PATH
16582    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16583    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16584    # ancient GNU ld didn't support --whole-archive et. al.
16585    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16586	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16587      else
16588  	whole_archive_flag_spec_GCJ=
16589    fi
16590    supports_anon_versioning=no
16591    case `$LD -v 2>/dev/null` in
16592      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16593      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16594      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16595      *\ 2.11.*) ;; # other 2.11 versions
16596      *) supports_anon_versioning=yes ;;
16597    esac
16598
16599    # See if GNU ld supports shared libraries.
16600    case $host_os in
16601    aix3* | aix4* | aix5*)
16602      # On AIX/PPC, the GNU linker is very broken
16603      if test "$host_cpu" != ia64; then
16604	ld_shlibs_GCJ=no
16605	cat <<EOF 1>&2
16606
16607*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16608*** to be unable to reliably create shared libraries on AIX.
16609*** Therefore, libtool is disabling shared libraries support.  If you
16610*** really care for shared libraries, you may want to modify your PATH
16611*** so that a non-GNU linker is found, and then restart.
16612
16613EOF
16614      fi
16615      ;;
16616
16617    amigaos*)
16618      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)'
16619      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16620      hardcode_minus_L_GCJ=yes
16621
16622      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16623      # that the semantics of dynamic libraries on AmigaOS, at least up
16624      # to version 4, is to share data among multiple programs linked
16625      # with the same dynamic library.  Since this doesn't match the
16626      # behavior of shared libraries on other platforms, we can't use
16627      # them.
16628      ld_shlibs_GCJ=no
16629      ;;
16630
16631    beos*)
16632      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16633	allow_undefined_flag_GCJ=unsupported
16634	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16635	# support --undefined.  This deserves some investigation.  FIXME
16636	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16637      else
16638	ld_shlibs_GCJ=no
16639      fi
16640      ;;
16641
16642    cygwin* | mingw* | pw32*)
16643      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16644      # as there is no search path for DLLs.
16645      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16646      allow_undefined_flag_GCJ=unsupported
16647      always_export_symbols_GCJ=no
16648      enable_shared_with_static_runtimes_GCJ=yes
16649      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16650
16651      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16652        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16653	# If the export-symbols file already is a .def file (1st line
16654	# is EXPORTS), use it as is; otherwise, prepend...
16655	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16656	  cp $export_symbols $output_objdir/$soname.def;
16657	else
16658	  echo EXPORTS > $output_objdir/$soname.def;
16659	  cat $export_symbols >> $output_objdir/$soname.def;
16660	fi~
16661	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16662      else
16663	ld_shlibs_GCJ=no
16664      fi
16665      ;;
16666
16667    interix3*)
16668      hardcode_direct_GCJ=no
16669      hardcode_shlibpath_var_GCJ=no
16670      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16671      export_dynamic_flag_spec_GCJ='${wl}-E'
16672      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16673      # Instead, shared libraries are loaded at an image base (0x10000000 by
16674      # default) and relocated if they conflict, which is a slow very memory
16675      # consuming and fragmenting process.  To avoid this, we pick a random,
16676      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16677      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16678      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'
16679      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'
16680      ;;
16681
16682    linux*)
16683      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16684	tmp_addflag=
16685	case $cc_basename,$host_cpu in
16686	pgcc*)				# Portland Group C compiler
16687	  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'
16688	  tmp_addflag=' $pic_flag'
16689	  ;;
16690	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
16691	  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'
16692	  tmp_addflag=' $pic_flag -Mnomain' ;;
16693	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
16694	  tmp_addflag=' -i_dynamic' ;;
16695	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
16696	  tmp_addflag=' -i_dynamic -nofor_main' ;;
16697	ifc* | ifort*)			# Intel Fortran compiler
16698	  tmp_addflag=' -nofor_main' ;;
16699	esac
16700	archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16701
16702	if test $supports_anon_versioning = yes; then
16703	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16704  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16705  $echo "local: *; };" >> $output_objdir/$libname.ver~
16706	  $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16707	fi
16708      else
16709	ld_shlibs_GCJ=no
16710      fi
16711      ;;
16712
16713    netbsd*)
16714      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16715	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16716	wlarc=
16717      else
16718	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16719	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16720      fi
16721      ;;
16722
16723    solaris*)
16724      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16725	ld_shlibs_GCJ=no
16726	cat <<EOF 1>&2
16727
16728*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16729*** create shared libraries on Solaris systems.  Therefore, libtool
16730*** is disabling shared libraries support.  We urge you to upgrade GNU
16731*** binutils to release 2.9.1 or newer.  Another option is to modify
16732*** your PATH or compiler configuration so that the native linker is
16733*** used, and then restart.
16734
16735EOF
16736      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16737	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16738	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16739      else
16740	ld_shlibs_GCJ=no
16741      fi
16742      ;;
16743
16744    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16745      case `$LD -v 2>&1` in
16746        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16747	ld_shlibs_GCJ=no
16748	cat <<_LT_EOF 1>&2
16749
16750*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16751*** reliably create shared libraries on SCO systems.  Therefore, libtool
16752*** is disabling shared libraries support.  We urge you to upgrade GNU
16753*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16754*** your PATH or compiler configuration so that the native linker is
16755*** used, and then restart.
16756
16757_LT_EOF
16758	;;
16759	*)
16760	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16761	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16762	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16763	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16764	  else
16765	    ld_shlibs_GCJ=no
16766	  fi
16767	;;
16768      esac
16769      ;;
16770
16771    sunos4*)
16772      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16773      wlarc=
16774      hardcode_direct_GCJ=yes
16775      hardcode_shlibpath_var_GCJ=no
16776      ;;
16777
16778    *)
16779      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16780	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16781	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16782      else
16783	ld_shlibs_GCJ=no
16784      fi
16785      ;;
16786    esac
16787
16788    if test "$ld_shlibs_GCJ" = no; then
16789      runpath_var=
16790      hardcode_libdir_flag_spec_GCJ=
16791      export_dynamic_flag_spec_GCJ=
16792      whole_archive_flag_spec_GCJ=
16793    fi
16794  else
16795    # PORTME fill in a description of your system's linker (not GNU ld)
16796    case $host_os in
16797    aix3*)
16798      allow_undefined_flag_GCJ=unsupported
16799      always_export_symbols_GCJ=yes
16800      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'
16801      # Note: this linker hardcodes the directories in LIBPATH if there
16802      # are no directories specified by -L.
16803      hardcode_minus_L_GCJ=yes
16804      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16805	# Neither direct hardcoding nor static linking is supported with a
16806	# broken collect2.
16807	hardcode_direct_GCJ=unsupported
16808      fi
16809      ;;
16810
16811    aix4* | aix5*)
16812      if test "$host_cpu" = ia64; then
16813	# On IA64, the linker does run time linking by default, so we don't
16814	# have to do anything special.
16815	aix_use_runtimelinking=no
16816	exp_sym_flag='-Bexport'
16817	no_entry_flag=""
16818      else
16819	# If we're using GNU nm, then we don't want the "-C" option.
16820	# -C means demangle to AIX nm, but means don't demangle with GNU nm
16821	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16822	  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'
16823	else
16824	  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'
16825	fi
16826	aix_use_runtimelinking=no
16827
16828	# Test if we are trying to use run time linking or normal
16829	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16830	# need to do runtime linking.
16831	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16832	  for ld_flag in $LDFLAGS; do
16833  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16834  	    aix_use_runtimelinking=yes
16835  	    break
16836  	  fi
16837	  done
16838	  ;;
16839	esac
16840
16841	exp_sym_flag='-bexport'
16842	no_entry_flag='-bnoentry'
16843      fi
16844
16845      # When large executables or shared objects are built, AIX ld can
16846      # have problems creating the table of contents.  If linking a library
16847      # or program results in "error TOC overflow" add -mminimal-toc to
16848      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16849      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16850
16851      archive_cmds_GCJ=''
16852      hardcode_direct_GCJ=yes
16853      hardcode_libdir_separator_GCJ=':'
16854      link_all_deplibs_GCJ=yes
16855
16856      if test "$GCC" = yes; then
16857	case $host_os in aix4.[012]|aix4.[012].*)
16858	# We only want to do this on AIX 4.2 and lower, the check
16859	# below for broken collect2 doesn't work under 4.3+
16860	  collect2name=`${CC} -print-prog-name=collect2`
16861	  if test -f "$collect2name" && \
16862  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
16863	  then
16864  	  # We have reworked collect2
16865  	  hardcode_direct_GCJ=yes
16866	  else
16867  	  # We have old collect2
16868  	  hardcode_direct_GCJ=unsupported
16869  	  # It fails to find uninstalled libraries when the uninstalled
16870  	  # path is not listed in the libpath.  Setting hardcode_minus_L
16871  	  # to unsupported forces relinking
16872  	  hardcode_minus_L_GCJ=yes
16873  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
16874  	  hardcode_libdir_separator_GCJ=
16875	  fi
16876	  ;;
16877	esac
16878	shared_flag='-shared'
16879	if test "$aix_use_runtimelinking" = yes; then
16880	  shared_flag="$shared_flag "'${wl}-G'
16881	fi
16882      else
16883	# not using gcc
16884	if test "$host_cpu" = ia64; then
16885  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16886  	# chokes on -Wl,-G. The following line is correct:
16887	  shared_flag='-G'
16888	else
16889	  if test "$aix_use_runtimelinking" = yes; then
16890	    shared_flag='${wl}-G'
16891	  else
16892	    shared_flag='${wl}-bM:SRE'
16893	  fi
16894	fi
16895      fi
16896
16897      # It seems that -bexpall does not export symbols beginning with
16898      # underscore (_), so it is better to generate a list of symbols to export.
16899      always_export_symbols_GCJ=yes
16900      if test "$aix_use_runtimelinking" = yes; then
16901	# Warning - without using the other runtime loading flags (-brtl),
16902	# -berok will link without error, but may produce a broken library.
16903	allow_undefined_flag_GCJ='-berok'
16904       # Determine the default libpath from the value encoded in an empty executable.
16905       cat >conftest.$ac_ext <<_ACEOF
16906/* confdefs.h.  */
16907_ACEOF
16908cat confdefs.h >>conftest.$ac_ext
16909cat >>conftest.$ac_ext <<_ACEOF
16910/* end confdefs.h.  */
16911
16912int
16913main ()
16914{
16915
16916  ;
16917  return 0;
16918}
16919_ACEOF
16920rm -f conftest.$ac_objext conftest$ac_exeext
16921if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16922  (eval $ac_link) 2>conftest.er1
16923  ac_status=$?
16924  grep -v '^ *+' conftest.er1 >conftest.err
16925  rm -f conftest.er1
16926  cat conftest.err >&5
16927  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16928  (exit $ac_status); } &&
16929	 { ac_try='test -z "$ac_c_werror_flag"
16930			 || test ! -s conftest.err'
16931  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16932  (eval $ac_try) 2>&5
16933  ac_status=$?
16934  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16935  (exit $ac_status); }; } &&
16936	 { ac_try='test -s conftest$ac_exeext'
16937  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16938  (eval $ac_try) 2>&5
16939  ac_status=$?
16940  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16941  (exit $ac_status); }; }; then
16942
16943aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16944}'`
16945# Check for a 64-bit object if we didn't find anything.
16946if 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; }
16947}'`; fi
16948else
16949  echo "$as_me: failed program was:" >&5
16950sed 's/^/| /' conftest.$ac_ext >&5
16951
16952fi
16953rm -f conftest.err conftest.$ac_objext \
16954      conftest$ac_exeext conftest.$ac_ext
16955if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16956
16957       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16958	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"
16959       else
16960	if test "$host_cpu" = ia64; then
16961	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16962	  allow_undefined_flag_GCJ="-z nodefs"
16963	  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"
16964	else
16965	 # Determine the default libpath from the value encoded in an empty executable.
16966	 cat >conftest.$ac_ext <<_ACEOF
16967/* confdefs.h.  */
16968_ACEOF
16969cat confdefs.h >>conftest.$ac_ext
16970cat >>conftest.$ac_ext <<_ACEOF
16971/* end confdefs.h.  */
16972
16973int
16974main ()
16975{
16976
16977  ;
16978  return 0;
16979}
16980_ACEOF
16981rm -f conftest.$ac_objext conftest$ac_exeext
16982if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16983  (eval $ac_link) 2>conftest.er1
16984  ac_status=$?
16985  grep -v '^ *+' conftest.er1 >conftest.err
16986  rm -f conftest.er1
16987  cat conftest.err >&5
16988  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16989  (exit $ac_status); } &&
16990	 { ac_try='test -z "$ac_c_werror_flag"
16991			 || test ! -s conftest.err'
16992  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16993  (eval $ac_try) 2>&5
16994  ac_status=$?
16995  echo "$as_me:$LINENO: \$? = $ac_status" >&5
16996  (exit $ac_status); }; } &&
16997	 { ac_try='test -s conftest$ac_exeext'
16998  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16999  (eval $ac_try) 2>&5
17000  ac_status=$?
17001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17002  (exit $ac_status); }; }; then
17003
17004aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
17005}'`
17006# Check for a 64-bit object if we didn't find anything.
17007if 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; }
17008}'`; fi
17009else
17010  echo "$as_me: failed program was:" >&5
17011sed 's/^/| /' conftest.$ac_ext >&5
17012
17013fi
17014rm -f conftest.err conftest.$ac_objext \
17015      conftest$ac_exeext conftest.$ac_ext
17016if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17017
17018	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17019	  # Warning - without using the other run time loading flags,
17020	  # -berok will link without error, but may produce a broken library.
17021	  no_undefined_flag_GCJ=' ${wl}-bernotok'
17022	  allow_undefined_flag_GCJ=' ${wl}-berok'
17023	  # Exported symbols can be pulled into shared objects from archives
17024	  whole_archive_flag_spec_GCJ='$convenience'
17025	  archive_cmds_need_lc_GCJ=yes
17026	  # This is similar to how AIX traditionally builds its shared libraries.
17027	  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'
17028	fi
17029      fi
17030      ;;
17031
17032    amigaos*)
17033      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)'
17034      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17035      hardcode_minus_L_GCJ=yes
17036      # see comment about different semantics on the GNU ld section
17037      ld_shlibs_GCJ=no
17038      ;;
17039
17040    bsdi[45]*)
17041      export_dynamic_flag_spec_GCJ=-rdynamic
17042      ;;
17043
17044    cygwin* | mingw* | pw32*)
17045      # When not using gcc, we currently assume that we are using
17046      # Microsoft Visual C++.
17047      # hardcode_libdir_flag_spec is actually meaningless, as there is
17048      # no search path for DLLs.
17049      hardcode_libdir_flag_spec_GCJ=' '
17050      allow_undefined_flag_GCJ=unsupported
17051      # Tell ltmain to make .lib files, not .a files.
17052      libext=lib
17053      # Tell ltmain to make .dll files, not .so files.
17054      shrext_cmds=".dll"
17055      # FIXME: Setting linknames here is a bad hack.
17056      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17057      # The linker will automatically build a .lib file if we build a DLL.
17058      old_archive_From_new_cmds_GCJ='true'
17059      # FIXME: Should let the user specify the lib program.
17060      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17061      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17062      enable_shared_with_static_runtimes_GCJ=yes
17063      ;;
17064
17065    darwin* | rhapsody*)
17066      case $host_os in
17067        rhapsody* | darwin1.[012])
17068         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17069         ;;
17070       *) # Darwin 1.3 on
17071         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17072           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17073         else
17074           case ${MACOSX_DEPLOYMENT_TARGET} in
17075             10.[012])
17076               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17077               ;;
17078             10.*)
17079               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17080               ;;
17081           esac
17082         fi
17083         ;;
17084      esac
17085      archive_cmds_need_lc_GCJ=no
17086      hardcode_direct_GCJ=no
17087      hardcode_automatic_GCJ=yes
17088      hardcode_shlibpath_var_GCJ=unsupported
17089      whole_archive_flag_spec_GCJ=''
17090      link_all_deplibs_GCJ=yes
17091    if test "$GCC" = yes ; then
17092    	output_verbose_link_cmd='echo'
17093        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17094      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17095      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17096      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}'
17097      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}'
17098    else
17099      case $cc_basename in
17100        xlc*)
17101         output_verbose_link_cmd='echo'
17102         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17103         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17104          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17105         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}'
17106          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}'
17107          ;;
17108       *)
17109         ld_shlibs_GCJ=no
17110          ;;
17111      esac
17112    fi
17113      ;;
17114
17115    dgux*)
17116      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17117      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17118      hardcode_shlibpath_var_GCJ=no
17119      ;;
17120
17121    freebsd1*)
17122      ld_shlibs_GCJ=no
17123      ;;
17124
17125    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17126    # support.  Future versions do this automatically, but an explicit c++rt0.o
17127    # does not break anything, and helps significantly (at the cost of a little
17128    # extra space).
17129    freebsd2.2*)
17130      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17131      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17132      hardcode_direct_GCJ=yes
17133      hardcode_shlibpath_var_GCJ=no
17134      ;;
17135
17136    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17137    freebsd2*)
17138      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17139      hardcode_direct_GCJ=yes
17140      hardcode_minus_L_GCJ=yes
17141      hardcode_shlibpath_var_GCJ=no
17142      ;;
17143
17144    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17145    freebsd* | kfreebsd*-gnu | dragonfly*)
17146      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17147      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17148      hardcode_direct_GCJ=yes
17149      hardcode_shlibpath_var_GCJ=no
17150      ;;
17151
17152    hpux9*)
17153      if test "$GCC" = yes; then
17154	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'
17155      else
17156	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'
17157      fi
17158      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17159      hardcode_libdir_separator_GCJ=:
17160      hardcode_direct_GCJ=yes
17161
17162      # hardcode_minus_L: Not really in the search PATH,
17163      # but as the default location of the library.
17164      hardcode_minus_L_GCJ=yes
17165      export_dynamic_flag_spec_GCJ='${wl}-E'
17166      ;;
17167
17168    hpux10*)
17169      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17170	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17171      else
17172	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17173      fi
17174      if test "$with_gnu_ld" = no; then
17175	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17176	hardcode_libdir_separator_GCJ=:
17177
17178	hardcode_direct_GCJ=yes
17179	export_dynamic_flag_spec_GCJ='${wl}-E'
17180
17181	# hardcode_minus_L: Not really in the search PATH,
17182	# but as the default location of the library.
17183	hardcode_minus_L_GCJ=yes
17184      fi
17185      ;;
17186
17187    hpux11*)
17188      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17189	case $host_cpu in
17190	hppa*64*)
17191	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17192	  ;;
17193	ia64*)
17194	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17195	  ;;
17196	*)
17197	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17198	  ;;
17199	esac
17200      else
17201	case $host_cpu in
17202	hppa*64*)
17203	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17204	  ;;
17205	ia64*)
17206	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17207	  ;;
17208	*)
17209	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17210	  ;;
17211	esac
17212      fi
17213      if test "$with_gnu_ld" = no; then
17214	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17215	hardcode_libdir_separator_GCJ=:
17216
17217	case $host_cpu in
17218	hppa*64*|ia64*)
17219	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17220	  hardcode_direct_GCJ=no
17221	  hardcode_shlibpath_var_GCJ=no
17222	  ;;
17223	*)
17224	  hardcode_direct_GCJ=yes
17225	  export_dynamic_flag_spec_GCJ='${wl}-E'
17226
17227	  # hardcode_minus_L: Not really in the search PATH,
17228	  # but as the default location of the library.
17229	  hardcode_minus_L_GCJ=yes
17230	  ;;
17231	esac
17232      fi
17233      ;;
17234
17235    irix5* | irix6* | nonstopux*)
17236      if test "$GCC" = yes; then
17237	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'
17238      else
17239	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'
17240	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17241      fi
17242      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17243      hardcode_libdir_separator_GCJ=:
17244      link_all_deplibs_GCJ=yes
17245      ;;
17246
17247    netbsd*)
17248      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17249	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17250      else
17251	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17252      fi
17253      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17254      hardcode_direct_GCJ=yes
17255      hardcode_shlibpath_var_GCJ=no
17256      ;;
17257
17258    newsos6)
17259      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17260      hardcode_direct_GCJ=yes
17261      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17262      hardcode_libdir_separator_GCJ=:
17263      hardcode_shlibpath_var_GCJ=no
17264      ;;
17265
17266    openbsd*)
17267      hardcode_direct_GCJ=yes
17268      hardcode_shlibpath_var_GCJ=no
17269      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17270	archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17271	archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17272	hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17273	export_dynamic_flag_spec_GCJ='${wl}-E'
17274      else
17275       case $host_os in
17276	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17277	   archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17278	   hardcode_libdir_flag_spec_GCJ='-R$libdir'
17279	   ;;
17280	 *)
17281	   archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17282	   hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17283	   ;;
17284       esac
17285      fi
17286      ;;
17287
17288    os2*)
17289      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17290      hardcode_minus_L_GCJ=yes
17291      allow_undefined_flag_GCJ=unsupported
17292      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'
17293      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17294      ;;
17295
17296    osf3*)
17297      if test "$GCC" = yes; then
17298	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17299	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'
17300      else
17301	allow_undefined_flag_GCJ=' -expect_unresolved \*'
17302	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'
17303      fi
17304      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17305      hardcode_libdir_separator_GCJ=:
17306      ;;
17307
17308    osf4* | osf5*)	# as osf3* with the addition of -msym flag
17309      if test "$GCC" = yes; then
17310	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17311	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'
17312	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17313      else
17314	allow_undefined_flag_GCJ=' -expect_unresolved \*'
17315	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'
17316	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~
17317	$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'
17318
17319	# Both c and cxx compiler support -rpath directly
17320	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17321      fi
17322      hardcode_libdir_separator_GCJ=:
17323      ;;
17324
17325    solaris*)
17326      no_undefined_flag_GCJ=' -z text'
17327      if test "$GCC" = yes; then
17328	wlarc='${wl}'
17329	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17330	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17331	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17332      else
17333	wlarc=''
17334	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17335	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17336  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17337      fi
17338      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17339      hardcode_shlibpath_var_GCJ=no
17340      case $host_os in
17341      solaris2.[0-5] | solaris2.[0-5].*) ;;
17342      *)
17343 	# The compiler driver will combine linker options so we
17344 	# cannot just pass the convience library names through
17345 	# without $wl, iff we do not link with $LD.
17346 	# Luckily, gcc supports the same syntax we need for Sun Studio.
17347 	# Supported since Solaris 2.6 (maybe 2.5.1?)
17348 	case $wlarc in
17349 	'')
17350 	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17351 	*)
17352 	  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' ;;
17353 	esac ;;
17354      esac
17355      link_all_deplibs_GCJ=yes
17356      ;;
17357
17358    sunos4*)
17359      if test "x$host_vendor" = xsequent; then
17360	# Use $CC to link under sequent, because it throws in some extra .o
17361	# files that make .init and .fini sections work.
17362	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17363      else
17364	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17365      fi
17366      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17367      hardcode_direct_GCJ=yes
17368      hardcode_minus_L_GCJ=yes
17369      hardcode_shlibpath_var_GCJ=no
17370      ;;
17371
17372    sysv4)
17373      case $host_vendor in
17374	sni)
17375	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17376	  hardcode_direct_GCJ=yes # is this really true???
17377	;;
17378	siemens)
17379	  ## LD is ld it makes a PLAMLIB
17380	  ## CC just makes a GrossModule.
17381	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17382	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17383	  hardcode_direct_GCJ=no
17384        ;;
17385	motorola)
17386	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17387	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17388	;;
17389      esac
17390      runpath_var='LD_RUN_PATH'
17391      hardcode_shlibpath_var_GCJ=no
17392      ;;
17393
17394    sysv4.3*)
17395      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17396      hardcode_shlibpath_var_GCJ=no
17397      export_dynamic_flag_spec_GCJ='-Bexport'
17398      ;;
17399
17400    sysv4*MP*)
17401      if test -d /usr/nec; then
17402	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17403	hardcode_shlibpath_var_GCJ=no
17404	runpath_var=LD_RUN_PATH
17405	hardcode_runpath_var=yes
17406	ld_shlibs_GCJ=yes
17407      fi
17408      ;;
17409
17410    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17411      no_undefined_flag_GCJ='${wl}-z,text'
17412      archive_cmds_need_lc_GCJ=no
17413      hardcode_shlibpath_var_GCJ=no
17414      runpath_var='LD_RUN_PATH'
17415
17416      if test "$GCC" = yes; then
17417	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17418	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17419      else
17420	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17421	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17422      fi
17423      ;;
17424
17425    sysv5* | sco3.2v5* | sco5v6*)
17426      # Note: We can NOT use -z defs as we might desire, because we do not
17427      # link with -lc, and that would cause any symbols used from libc to
17428      # always be unresolved, which means just about no library would
17429      # ever link correctly.  If we're not using GNU ld we use -z text
17430      # though, which does catch some bad symbols but isn't as heavy-handed
17431      # as -z defs.
17432      no_undefined_flag_GCJ='${wl}-z,text'
17433      allow_undefined_flag_GCJ='${wl}-z,nodefs'
17434      archive_cmds_need_lc_GCJ=no
17435      hardcode_shlibpath_var_GCJ=no
17436      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17437      hardcode_libdir_separator_GCJ=':'
17438      link_all_deplibs_GCJ=yes
17439      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17440      runpath_var='LD_RUN_PATH'
17441
17442      if test "$GCC" = yes; then
17443	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17444	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17445      else
17446	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17447	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17448      fi
17449      ;;
17450
17451    uts4*)
17452      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17453      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17454      hardcode_shlibpath_var_GCJ=no
17455      ;;
17456
17457    *)
17458      ld_shlibs_GCJ=no
17459      ;;
17460    esac
17461  fi
17462
17463echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17464echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17465test "$ld_shlibs_GCJ" = no && can_build_shared=no
17466
17467#
17468# Do we need to explicitly link libc?
17469#
17470case "x$archive_cmds_need_lc_GCJ" in
17471x|xyes)
17472  # Assume -lc should be added
17473  archive_cmds_need_lc_GCJ=yes
17474
17475  if test "$enable_shared" = yes && test "$GCC" = yes; then
17476    case $archive_cmds_GCJ in
17477    *'~'*)
17478      # FIXME: we may have to deal with multi-command sequences.
17479      ;;
17480    '$CC '*)
17481      # Test whether the compiler implicitly links with -lc since on some
17482      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17483      # to ld, don't add -lc before -lgcc.
17484      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17485echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17486      $rm conftest*
17487      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17488
17489      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17490  (eval $ac_compile) 2>&5
17491  ac_status=$?
17492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17493  (exit $ac_status); } 2>conftest.err; then
17494        soname=conftest
17495        lib=conftest
17496        libobjs=conftest.$ac_objext
17497        deplibs=
17498        wl=$lt_prog_compiler_wl_GCJ
17499	pic_flag=$lt_prog_compiler_pic_GCJ
17500        compiler_flags=-v
17501        linker_flags=-v
17502        verstring=
17503        output_objdir=.
17504        libname=conftest
17505        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17506        allow_undefined_flag_GCJ=
17507        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17508  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17509  ac_status=$?
17510  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17511  (exit $ac_status); }
17512        then
17513	  archive_cmds_need_lc_GCJ=no
17514        else
17515	  archive_cmds_need_lc_GCJ=yes
17516        fi
17517        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17518      else
17519        cat conftest.err 1>&5
17520      fi
17521      $rm conftest*
17522      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17523echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17524      ;;
17525    esac
17526  fi
17527  ;;
17528esac
17529
17530echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17531echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17532library_names_spec=
17533libname_spec='lib$name'
17534soname_spec=
17535shrext_cmds=".so"
17536postinstall_cmds=
17537postuninstall_cmds=
17538finish_cmds=
17539finish_eval=
17540shlibpath_var=
17541shlibpath_overrides_runpath=unknown
17542version_type=none
17543dynamic_linker="$host_os ld.so"
17544sys_lib_dlsearch_path_spec="/lib /usr/lib"
17545if test "$GCC" = yes; then
17546  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17547  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17548    # if the path contains ";" then we assume it to be the separator
17549    # otherwise default to the standard path separator (i.e. ":") - it is
17550    # assumed that no part of a normal pathname contains ";" but that should
17551    # okay in the real world where ";" in dirpaths is itself problematic.
17552    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17553  else
17554    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17555  fi
17556else
17557  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17558fi
17559need_lib_prefix=unknown
17560hardcode_into_libs=no
17561
17562# when you set need_version to no, make sure it does not cause -set_version
17563# flags to be left without arguments
17564need_version=unknown
17565
17566case $host_os in
17567aix3*)
17568  version_type=linux
17569  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17570  shlibpath_var=LIBPATH
17571
17572  # AIX 3 has no versioning support, so we append a major version to the name.
17573  soname_spec='${libname}${release}${shared_ext}$major'
17574  ;;
17575
17576aix4* | aix5*)
17577  version_type=linux
17578  need_lib_prefix=no
17579  need_version=no
17580  hardcode_into_libs=yes
17581  if test "$host_cpu" = ia64; then
17582    # AIX 5 supports IA64
17583    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17584    shlibpath_var=LD_LIBRARY_PATH
17585  else
17586    # With GCC up to 2.95.x, collect2 would create an import file
17587    # for dependence libraries.  The import file would start with
17588    # the line `#! .'.  This would cause the generated library to
17589    # depend on `.', always an invalid library.  This was fixed in
17590    # development snapshots of GCC prior to 3.0.
17591    case $host_os in
17592      aix4 | aix4.[01] | aix4.[01].*)
17593      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17594	   echo ' yes '
17595	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17596	:
17597      else
17598	can_build_shared=no
17599      fi
17600      ;;
17601    esac
17602    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17603    # soname into executable. Probably we can add versioning support to
17604    # collect2, so additional links can be useful in future.
17605    if test "$aix_use_runtimelinking" = yes; then
17606      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17607      # instead of lib<name>.a to let people know that these are not
17608      # typical AIX shared libraries.
17609      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17610    else
17611      # We preserve .a as extension for shared libraries through AIX4.2
17612      # and later when we are not doing run time linking.
17613      library_names_spec='${libname}${release}.a $libname.a'
17614      soname_spec='${libname}${release}${shared_ext}$major'
17615    fi
17616    shlibpath_var=LIBPATH
17617  fi
17618  ;;
17619
17620amigaos*)
17621  library_names_spec='$libname.ixlibrary $libname.a'
17622  # Create ${libname}_ixlibrary.a entries in /sys/libs.
17623  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'
17624  ;;
17625
17626beos*)
17627  library_names_spec='${libname}${shared_ext}'
17628  dynamic_linker="$host_os ld.so"
17629  shlibpath_var=LIBRARY_PATH
17630  ;;
17631
17632bsdi[45]*)
17633  version_type=linux
17634  need_version=no
17635  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17636  soname_spec='${libname}${release}${shared_ext}$major'
17637  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17638  shlibpath_var=LD_LIBRARY_PATH
17639  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17640  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17641  # the default ld.so.conf also contains /usr/contrib/lib and
17642  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17643  # libtool to hard-code these into programs
17644  ;;
17645
17646cygwin* | mingw* | pw32*)
17647  version_type=windows
17648  shrext_cmds=".dll"
17649  need_version=no
17650  need_lib_prefix=no
17651
17652  case $GCC,$host_os in
17653  yes,cygwin* | yes,mingw* | yes,pw32*)
17654    library_names_spec='$libname.dll.a'
17655    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17656    postinstall_cmds='base_file=`basename \${file}`~
17657      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17658      dldir=$destdir/`dirname \$dlpath`~
17659      test -d \$dldir || mkdir -p \$dldir~
17660      $install_prog $dir/$dlname \$dldir/$dlname~
17661      chmod a+x \$dldir/$dlname'
17662    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17663      dlpath=$dir/\$dldll~
17664       $rm \$dlpath'
17665    shlibpath_overrides_runpath=yes
17666
17667    case $host_os in
17668    cygwin*)
17669      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17670      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17671      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17672      ;;
17673    mingw*)
17674      # MinGW DLLs use traditional 'lib' prefix
17675      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17676      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17677      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17678        # It is most probably a Windows format PATH printed by
17679        # mingw gcc, but we are running on Cygwin. Gcc prints its search
17680        # path with ; separators, and with drive letters. We can handle the
17681        # drive letters (cygwin fileutils understands them), so leave them,
17682        # especially as we might pass files found there to a mingw objdump,
17683        # which wouldn't understand a cygwinified path. Ahh.
17684        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17685      else
17686        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17687      fi
17688      ;;
17689    pw32*)
17690      # pw32 DLLs use 'pw' prefix rather than 'lib'
17691      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17692      ;;
17693    esac
17694    ;;
17695
17696  *)
17697    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17698    ;;
17699  esac
17700  dynamic_linker='Win32 ld.exe'
17701  # FIXME: first we should search . and the directory the executable is in
17702  shlibpath_var=PATH
17703  ;;
17704
17705darwin* | rhapsody*)
17706  dynamic_linker="$host_os dyld"
17707  version_type=darwin
17708  need_lib_prefix=no
17709  need_version=no
17710  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17711  soname_spec='${libname}${release}${major}$shared_ext'
17712  shlibpath_overrides_runpath=yes
17713  shlibpath_var=DYLD_LIBRARY_PATH
17714  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17715  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17716  if test "$GCC" = yes; then
17717    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"`
17718  else
17719    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17720  fi
17721  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17722  ;;
17723
17724dgux*)
17725  version_type=linux
17726  need_lib_prefix=no
17727  need_version=no
17728  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17729  soname_spec='${libname}${release}${shared_ext}$major'
17730  shlibpath_var=LD_LIBRARY_PATH
17731  ;;
17732
17733freebsd1*)
17734  dynamic_linker=no
17735  ;;
17736
17737kfreebsd*-gnu)
17738  version_type=linux
17739  need_lib_prefix=no
17740  need_version=no
17741  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17742  soname_spec='${libname}${release}${shared_ext}$major'
17743  shlibpath_var=LD_LIBRARY_PATH
17744  shlibpath_overrides_runpath=no
17745  hardcode_into_libs=yes
17746  dynamic_linker='GNU ld.so'
17747  ;;
17748
17749freebsd* | dragonfly*)
17750  # DragonFly does not have aout.  When/if they implement a new
17751  # versioning mechanism, adjust this.
17752  if test -x /usr/bin/objformat; then
17753    objformat=`/usr/bin/objformat`
17754  else
17755    case $host_os in
17756    freebsd[123]*) objformat=aout ;;
17757    *) objformat=elf ;;
17758    esac
17759  fi
17760  version_type=freebsd-$objformat
17761  case $version_type in
17762    freebsd-elf*)
17763      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17764      need_version=no
17765      need_lib_prefix=no
17766      ;;
17767    freebsd-*)
17768      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17769      need_version=yes
17770      ;;
17771  esac
17772  shlibpath_var=LD_LIBRARY_PATH
17773  case $host_os in
17774  freebsd2*)
17775    shlibpath_overrides_runpath=yes
17776    ;;
17777  freebsd3.[01]* | freebsdelf3.[01]*)
17778    shlibpath_overrides_runpath=yes
17779    hardcode_into_libs=yes
17780    ;;
17781  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17782  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17783    shlibpath_overrides_runpath=no
17784    hardcode_into_libs=yes
17785    ;;
17786  freebsd*) # from 4.6 on
17787    shlibpath_overrides_runpath=yes
17788    hardcode_into_libs=yes
17789    ;;
17790  esac
17791  ;;
17792
17793gnu*)
17794  version_type=linux
17795  need_lib_prefix=no
17796  need_version=no
17797  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17798  soname_spec='${libname}${release}${shared_ext}$major'
17799  shlibpath_var=LD_LIBRARY_PATH
17800  hardcode_into_libs=yes
17801  ;;
17802
17803hpux9* | hpux10* | hpux11*)
17804  # Give a soname corresponding to the major version so that dld.sl refuses to
17805  # link against other versions.
17806  version_type=sunos
17807  need_lib_prefix=no
17808  need_version=no
17809  case $host_cpu in
17810  ia64*)
17811    shrext_cmds='.so'
17812    hardcode_into_libs=yes
17813    dynamic_linker="$host_os dld.so"
17814    shlibpath_var=LD_LIBRARY_PATH
17815    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17816    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17817    soname_spec='${libname}${release}${shared_ext}$major'
17818    if test "X$HPUX_IA64_MODE" = X32; then
17819      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17820    else
17821      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17822    fi
17823    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17824    ;;
17825   hppa*64*)
17826     shrext_cmds='.sl'
17827     hardcode_into_libs=yes
17828     dynamic_linker="$host_os dld.sl"
17829     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17830     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17831     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17832     soname_spec='${libname}${release}${shared_ext}$major'
17833     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17834     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17835     ;;
17836   *)
17837    shrext_cmds='.sl'
17838    dynamic_linker="$host_os dld.sl"
17839    shlibpath_var=SHLIB_PATH
17840    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17841    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17842    soname_spec='${libname}${release}${shared_ext}$major'
17843    ;;
17844  esac
17845  # HP-UX runs *really* slowly unless shared libraries are mode 555.
17846  postinstall_cmds='chmod 555 $lib'
17847  ;;
17848
17849interix3*)
17850  version_type=linux
17851  need_lib_prefix=no
17852  need_version=no
17853  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17854  soname_spec='${libname}${release}${shared_ext}$major'
17855  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17856  shlibpath_var=LD_LIBRARY_PATH
17857  shlibpath_overrides_runpath=no
17858  hardcode_into_libs=yes
17859  ;;
17860
17861irix5* | irix6* | nonstopux*)
17862  case $host_os in
17863    nonstopux*) version_type=nonstopux ;;
17864    *)
17865	if test "$lt_cv_prog_gnu_ld" = yes; then
17866		version_type=linux
17867	else
17868		version_type=irix
17869	fi ;;
17870  esac
17871  need_lib_prefix=no
17872  need_version=no
17873  soname_spec='${libname}${release}${shared_ext}$major'
17874  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17875  case $host_os in
17876  irix5* | nonstopux*)
17877    libsuff= shlibsuff=
17878    ;;
17879  *)
17880    case $LD in # libtool.m4 will add one of these switches to LD
17881    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17882      libsuff= shlibsuff= libmagic=32-bit;;
17883    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17884      libsuff=32 shlibsuff=N32 libmagic=N32;;
17885    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17886      libsuff=64 shlibsuff=64 libmagic=64-bit;;
17887    *) libsuff= shlibsuff= libmagic=never-match;;
17888    esac
17889    ;;
17890  esac
17891  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17892  shlibpath_overrides_runpath=no
17893  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17894  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17895  hardcode_into_libs=yes
17896  ;;
17897
17898# No shared lib support for Linux oldld, aout, or coff.
17899linux*oldld* | linux*aout* | linux*coff*)
17900  dynamic_linker=no
17901  ;;
17902
17903# This must be Linux ELF.
17904linux*)
17905  version_type=linux
17906  need_lib_prefix=no
17907  need_version=no
17908  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17909  soname_spec='${libname}${release}${shared_ext}$major'
17910  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17911  shlibpath_var=LD_LIBRARY_PATH
17912  shlibpath_overrides_runpath=no
17913  # This implies no fast_install, which is unacceptable.
17914  # Some rework will be needed to allow for fast_install
17915  # before this can be enabled.
17916  hardcode_into_libs=yes
17917
17918  # find out which ABI we are using
17919  libsuff=
17920  case "$host_cpu" in
17921  x86_64*|s390x*|powerpc64*)
17922    echo '#line 17922 "configure"' > conftest.$ac_ext
17923    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17924  (eval $ac_compile) 2>&5
17925  ac_status=$?
17926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17927  (exit $ac_status); }; then
17928      case `/usr/bin/file conftest.$ac_objext` in
17929      *64-bit*)
17930        libsuff=64
17931        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
17932        ;;
17933      esac
17934    fi
17935    rm -rf conftest*
17936    ;;
17937  esac
17938
17939  # Append ld.so.conf contents to the search path
17940  if test -f /etc/ld.so.conf; then
17941    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17942    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
17943  fi
17944
17945  # We used to test for /lib/ld.so.1 and disable shared libraries on
17946  # powerpc, because MkLinux only supported shared libraries with the
17947  # GNU dynamic linker.  Since this was broken with cross compilers,
17948  # most powerpc-linux boxes support dynamic linking these days and
17949  # people can always --disable-shared, the test was removed, and we
17950  # assume the GNU/Linux dynamic linker is in use.
17951  dynamic_linker='GNU/Linux ld.so'
17952  ;;
17953
17954knetbsd*-gnu)
17955  version_type=linux
17956  need_lib_prefix=no
17957  need_version=no
17958  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17959  soname_spec='${libname}${release}${shared_ext}$major'
17960  shlibpath_var=LD_LIBRARY_PATH
17961  shlibpath_overrides_runpath=no
17962  hardcode_into_libs=yes
17963  dynamic_linker='GNU ld.so'
17964  ;;
17965
17966netbsd*)
17967  version_type=sunos
17968  need_lib_prefix=no
17969  need_version=no
17970  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17971    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17972    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17973    dynamic_linker='NetBSD (a.out) ld.so'
17974  else
17975    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17976    soname_spec='${libname}${release}${shared_ext}$major'
17977    dynamic_linker='NetBSD ld.elf_so'
17978  fi
17979  shlibpath_var=LD_LIBRARY_PATH
17980  shlibpath_overrides_runpath=yes
17981  hardcode_into_libs=yes
17982  ;;
17983
17984newsos6)
17985  version_type=linux
17986  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17987  shlibpath_var=LD_LIBRARY_PATH
17988  shlibpath_overrides_runpath=yes
17989  ;;
17990
17991nto-qnx*)
17992  version_type=linux
17993  need_lib_prefix=no
17994  need_version=no
17995  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17996  soname_spec='${libname}${release}${shared_ext}$major'
17997  shlibpath_var=LD_LIBRARY_PATH
17998  shlibpath_overrides_runpath=yes
17999  ;;
18000
18001openbsd*)
18002  version_type=sunos
18003  sys_lib_dlsearch_path_spec="/usr/lib"
18004  need_lib_prefix=no
18005  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18006  case $host_os in
18007    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18008    *)                         need_version=no  ;;
18009  esac
18010  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18011  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18012  shlibpath_var=LD_LIBRARY_PATH
18013  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18014    case $host_os in
18015      openbsd2.[89] | openbsd2.[89].*)
18016	shlibpath_overrides_runpath=no
18017	;;
18018      *)
18019	shlibpath_overrides_runpath=yes
18020	;;
18021      esac
18022  else
18023    shlibpath_overrides_runpath=yes
18024  fi
18025  ;;
18026
18027os2*)
18028  libname_spec='$name'
18029  shrext_cmds=".dll"
18030  need_lib_prefix=no
18031  library_names_spec='$libname${shared_ext} $libname.a'
18032  dynamic_linker='OS/2 ld.exe'
18033  shlibpath_var=LIBPATH
18034  ;;
18035
18036osf3* | osf4* | osf5*)
18037  version_type=osf
18038  need_lib_prefix=no
18039  need_version=no
18040  soname_spec='${libname}${release}${shared_ext}$major'
18041  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18042  shlibpath_var=LD_LIBRARY_PATH
18043  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18044  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18045  ;;
18046
18047solaris*)
18048  version_type=linux
18049  need_lib_prefix=no
18050  need_version=no
18051  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18052  soname_spec='${libname}${release}${shared_ext}$major'
18053  shlibpath_var=LD_LIBRARY_PATH
18054  shlibpath_overrides_runpath=yes
18055  hardcode_into_libs=yes
18056  # ldd complains unless libraries are executable
18057  postinstall_cmds='chmod +x $lib'
18058  ;;
18059
18060sunos4*)
18061  version_type=sunos
18062  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18063  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18064  shlibpath_var=LD_LIBRARY_PATH
18065  shlibpath_overrides_runpath=yes
18066  if test "$with_gnu_ld" = yes; then
18067    need_lib_prefix=no
18068  fi
18069  need_version=yes
18070  ;;
18071
18072sysv4 | sysv4.3*)
18073  version_type=linux
18074  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18075  soname_spec='${libname}${release}${shared_ext}$major'
18076  shlibpath_var=LD_LIBRARY_PATH
18077  case $host_vendor in
18078    sni)
18079      shlibpath_overrides_runpath=no
18080      need_lib_prefix=no
18081      export_dynamic_flag_spec='${wl}-Blargedynsym'
18082      runpath_var=LD_RUN_PATH
18083      ;;
18084    siemens)
18085      need_lib_prefix=no
18086      ;;
18087    motorola)
18088      need_lib_prefix=no
18089      need_version=no
18090      shlibpath_overrides_runpath=no
18091      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18092      ;;
18093  esac
18094  ;;
18095
18096sysv4*MP*)
18097  if test -d /usr/nec ;then
18098    version_type=linux
18099    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18100    soname_spec='$libname${shared_ext}.$major'
18101    shlibpath_var=LD_LIBRARY_PATH
18102  fi
18103  ;;
18104
18105sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18106  version_type=freebsd-elf
18107  need_lib_prefix=no
18108  need_version=no
18109  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18110  soname_spec='${libname}${release}${shared_ext}$major'
18111  shlibpath_var=LD_LIBRARY_PATH
18112  hardcode_into_libs=yes
18113  if test "$with_gnu_ld" = yes; then
18114    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18115    shlibpath_overrides_runpath=no
18116  else
18117    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18118    shlibpath_overrides_runpath=yes
18119    case $host_os in
18120      sco3.2v5*)
18121        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18122	;;
18123    esac
18124  fi
18125  sys_lib_dlsearch_path_spec='/usr/lib'
18126  ;;
18127
18128uts4*)
18129  version_type=linux
18130  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18131  soname_spec='${libname}${release}${shared_ext}$major'
18132  shlibpath_var=LD_LIBRARY_PATH
18133  ;;
18134
18135*)
18136  dynamic_linker=no
18137  ;;
18138esac
18139echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18140echo "${ECHO_T}$dynamic_linker" >&6
18141test "$dynamic_linker" = no && can_build_shared=no
18142
18143variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18144if test "$GCC" = yes; then
18145  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18146fi
18147
18148echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18149echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18150hardcode_action_GCJ=
18151if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18152   test -n "$runpath_var_GCJ" || \
18153   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18154
18155  # We can hardcode non-existant directories.
18156  if test "$hardcode_direct_GCJ" != no &&
18157     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18158     # have to relink, otherwise we might link with an installed library
18159     # when we should be linking with a yet-to-be-installed one
18160     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18161     test "$hardcode_minus_L_GCJ" != no; then
18162    # Linking always hardcodes the temporary library directory.
18163    hardcode_action_GCJ=relink
18164  else
18165    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18166    hardcode_action_GCJ=immediate
18167  fi
18168else
18169  # We cannot hardcode anything, or else we can only hardcode existing
18170  # directories.
18171  hardcode_action_GCJ=unsupported
18172fi
18173echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18174echo "${ECHO_T}$hardcode_action_GCJ" >&6
18175
18176if test "$hardcode_action_GCJ" = relink; then
18177  # Fast installation is not supported
18178  enable_fast_install=no
18179elif test "$shlibpath_overrides_runpath" = yes ||
18180     test "$enable_shared" = no; then
18181  # Fast installation is not necessary
18182  enable_fast_install=needless
18183fi
18184
18185
18186# The else clause should only fire when bootstrapping the
18187# libtool distribution, otherwise you forgot to ship ltmain.sh
18188# with your package, and you will get complaints that there are
18189# no rules to generate ltmain.sh.
18190if test -f "$ltmain"; then
18191  # See if we are running on zsh, and set the options which allow our commands through
18192  # without removal of \ escapes.
18193  if test -n "${ZSH_VERSION+set}" ; then
18194    setopt NO_GLOB_SUBST
18195  fi
18196  # Now quote all the things that may contain metacharacters while being
18197  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18198  # variables and quote the copies for generation of the libtool script.
18199  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18200    SED SHELL STRIP \
18201    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18202    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18203    deplibs_check_method reload_flag reload_cmds need_locks \
18204    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18205    lt_cv_sys_global_symbol_to_c_name_address \
18206    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18207    old_postinstall_cmds old_postuninstall_cmds \
18208    compiler_GCJ \
18209    CC_GCJ \
18210    LD_GCJ \
18211    lt_prog_compiler_wl_GCJ \
18212    lt_prog_compiler_pic_GCJ \
18213    lt_prog_compiler_static_GCJ \
18214    lt_prog_compiler_no_builtin_flag_GCJ \
18215    export_dynamic_flag_spec_GCJ \
18216    thread_safe_flag_spec_GCJ \
18217    whole_archive_flag_spec_GCJ \
18218    enable_shared_with_static_runtimes_GCJ \
18219    old_archive_cmds_GCJ \
18220    old_archive_from_new_cmds_GCJ \
18221    predep_objects_GCJ \
18222    postdep_objects_GCJ \
18223    predeps_GCJ \
18224    postdeps_GCJ \
18225    compiler_lib_search_path_GCJ \
18226    archive_cmds_GCJ \
18227    archive_expsym_cmds_GCJ \
18228    postinstall_cmds_GCJ \
18229    postuninstall_cmds_GCJ \
18230    old_archive_from_expsyms_cmds_GCJ \
18231    allow_undefined_flag_GCJ \
18232    no_undefined_flag_GCJ \
18233    export_symbols_cmds_GCJ \
18234    hardcode_libdir_flag_spec_GCJ \
18235    hardcode_libdir_flag_spec_ld_GCJ \
18236    hardcode_libdir_separator_GCJ \
18237    hardcode_automatic_GCJ \
18238    module_cmds_GCJ \
18239    module_expsym_cmds_GCJ \
18240    lt_cv_prog_compiler_c_o_GCJ \
18241    exclude_expsyms_GCJ \
18242    include_expsyms_GCJ; do
18243
18244    case $var in
18245    old_archive_cmds_GCJ | \
18246    old_archive_from_new_cmds_GCJ | \
18247    archive_cmds_GCJ | \
18248    archive_expsym_cmds_GCJ | \
18249    module_cmds_GCJ | \
18250    module_expsym_cmds_GCJ | \
18251    old_archive_from_expsyms_cmds_GCJ | \
18252    export_symbols_cmds_GCJ | \
18253    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18254    postinstall_cmds | postuninstall_cmds | \
18255    old_postinstall_cmds | old_postuninstall_cmds | \
18256    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18257      # Double-quote double-evaled strings.
18258      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18259      ;;
18260    *)
18261      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18262      ;;
18263    esac
18264  done
18265
18266  case $lt_echo in
18267  *'\$0 --fallback-echo"')
18268    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18269    ;;
18270  esac
18271
18272cfgfile="$ofile"
18273
18274  cat <<__EOF__ >> "$cfgfile"
18275# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18276
18277# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18278
18279# Shell to use when invoking shell scripts.
18280SHELL=$lt_SHELL
18281
18282# Whether or not to build shared libraries.
18283build_libtool_libs=$enable_shared
18284
18285# Whether or not to build static libraries.
18286build_old_libs=$enable_static
18287
18288# Whether or not to add -lc for building shared libraries.
18289build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18290
18291# Whether or not to disallow shared libs when runtime libs are static
18292allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18293
18294# Whether or not to optimize for fast installation.
18295fast_install=$enable_fast_install
18296
18297# The host system.
18298host_alias=$host_alias
18299host=$host
18300host_os=$host_os
18301
18302# The build system.
18303build_alias=$build_alias
18304build=$build
18305build_os=$build_os
18306
18307# An echo program that does not interpret backslashes.
18308echo=$lt_echo
18309
18310# The archiver.
18311AR=$lt_AR
18312AR_FLAGS=$lt_AR_FLAGS
18313
18314# A C compiler.
18315LTCC=$lt_LTCC
18316
18317# LTCC compiler flags.
18318LTCFLAGS=$lt_LTCFLAGS
18319
18320# A language-specific compiler.
18321CC=$lt_compiler_GCJ
18322
18323# Is the compiler the GNU C compiler?
18324with_gcc=$GCC_GCJ
18325
18326gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
18327gcc_ver=\`gcc -dumpversion\`
18328
18329# An ERE matcher.
18330EGREP=$lt_EGREP
18331
18332# The linker used to build libraries.
18333LD=$lt_LD_GCJ
18334
18335# Whether we need hard or soft links.
18336LN_S=$lt_LN_S
18337
18338# A BSD-compatible nm program.
18339NM=$lt_NM
18340
18341# A symbol stripping program
18342STRIP=$lt_STRIP
18343
18344# Used to examine libraries when file_magic_cmd begins "file"
18345MAGIC_CMD=$MAGIC_CMD
18346
18347# Used on cygwin: DLL creation program.
18348DLLTOOL="$DLLTOOL"
18349
18350# Used on cygwin: object dumper.
18351OBJDUMP="$OBJDUMP"
18352
18353# Used on cygwin: assembler.
18354AS="$AS"
18355
18356# The name of the directory that contains temporary libtool files.
18357objdir=$objdir
18358
18359# How to create reloadable object files.
18360reload_flag=$lt_reload_flag
18361reload_cmds=$lt_reload_cmds
18362
18363# How to pass a linker flag through the compiler.
18364wl=$lt_lt_prog_compiler_wl_GCJ
18365
18366# Object file suffix (normally "o").
18367objext="$ac_objext"
18368
18369# Old archive suffix (normally "a").
18370libext="$libext"
18371
18372# Shared library suffix (normally ".so").
18373shrext_cmds='$shrext_cmds'
18374
18375# Executable file suffix (normally "").
18376exeext="$exeext"
18377
18378# Additional compiler flags for building library objects.
18379pic_flag=$lt_lt_prog_compiler_pic_GCJ
18380pic_mode=$pic_mode
18381
18382# What is the maximum length of a command?
18383max_cmd_len=$lt_cv_sys_max_cmd_len
18384
18385# Does compiler simultaneously support -c and -o options?
18386compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18387
18388# Must we lock files when doing compilation?
18389need_locks=$lt_need_locks
18390
18391# Do we need the lib prefix for modules?
18392need_lib_prefix=$need_lib_prefix
18393
18394# Do we need a version for libraries?
18395need_version=$need_version
18396
18397# Whether dlopen is supported.
18398dlopen_support=$enable_dlopen
18399
18400# Whether dlopen of programs is supported.
18401dlopen_self=$enable_dlopen_self
18402
18403# Whether dlopen of statically linked programs is supported.
18404dlopen_self_static=$enable_dlopen_self_static
18405
18406# Compiler flag to prevent dynamic linking.
18407link_static_flag=$lt_lt_prog_compiler_static_GCJ
18408
18409# Compiler flag to turn off builtin functions.
18410no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18411
18412# Compiler flag to allow reflexive dlopens.
18413export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18414
18415# Compiler flag to generate shared objects directly from archives.
18416whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18417
18418# Compiler flag to generate thread-safe objects.
18419thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18420
18421# Library versioning type.
18422version_type=$version_type
18423
18424# Format of library name prefix.
18425libname_spec=$lt_libname_spec
18426
18427# List of archive names.  First name is the real one, the rest are links.
18428# The last name is the one that the linker finds with -lNAME.
18429library_names_spec=$lt_library_names_spec
18430
18431# The coded name of the library, if different from the real name.
18432soname_spec=$lt_soname_spec
18433
18434# Commands used to build and install an old-style archive.
18435RANLIB=$lt_RANLIB
18436old_archive_cmds=$lt_old_archive_cmds_GCJ
18437old_postinstall_cmds=$lt_old_postinstall_cmds
18438old_postuninstall_cmds=$lt_old_postuninstall_cmds
18439
18440# Create an old-style archive from a shared archive.
18441old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18442
18443# Create a temporary old-style archive to link instead of a shared archive.
18444old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18445
18446# Commands used to build and install a shared archive.
18447archive_cmds=$lt_archive_cmds_GCJ
18448archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18449postinstall_cmds=$lt_postinstall_cmds
18450postuninstall_cmds=$lt_postuninstall_cmds
18451
18452# Commands used to build a loadable module (assumed same as above if empty)
18453module_cmds=$lt_module_cmds_GCJ
18454module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18455
18456# Commands to strip libraries.
18457old_striplib=$lt_old_striplib
18458striplib=$lt_striplib
18459
18460# Dependencies to place before the objects being linked to create a
18461# shared library.
18462predep_objects=\`echo $lt_predep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18463
18464# Dependencies to place after the objects being linked to create a
18465# shared library.
18466postdep_objects=\`echo $lt_postdep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18467
18468# Dependencies to place before the objects being linked to create a
18469# shared library.
18470predeps=$lt_predeps_GCJ
18471
18472# Dependencies to place after the objects being linked to create a
18473# shared library.
18474postdeps=$lt_postdeps_GCJ
18475
18476# The library search path used internally by the compiler when linking
18477# a shared library.
18478compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18479
18480# Method to check whether dependent libraries are shared objects.
18481deplibs_check_method=$lt_deplibs_check_method
18482
18483# Command to use when deplibs_check_method == file_magic.
18484file_magic_cmd=$lt_file_magic_cmd
18485
18486# Flag that allows shared libraries with undefined symbols to be built.
18487allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18488
18489# Flag that forces no undefined symbols.
18490no_undefined_flag=$lt_no_undefined_flag_GCJ
18491
18492# Commands used to finish a libtool library installation in a directory.
18493finish_cmds=$lt_finish_cmds
18494
18495# Same as above, but a single script fragment to be evaled but not shown.
18496finish_eval=$lt_finish_eval
18497
18498# Take the output of nm and produce a listing of raw symbols and C names.
18499global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18500
18501# Transform the output of nm in a proper C declaration
18502global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18503
18504# Transform the output of nm in a C name address pair
18505global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18506
18507# This is the shared library runtime path variable.
18508runpath_var=$runpath_var
18509
18510# This is the shared library path variable.
18511shlibpath_var=$shlibpath_var
18512
18513# Is shlibpath searched before the hard-coded library search path?
18514shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18515
18516# How to hardcode a shared library path into an executable.
18517hardcode_action=$hardcode_action_GCJ
18518
18519# Whether we should hardcode library paths into libraries.
18520hardcode_into_libs=$hardcode_into_libs
18521
18522# Flag to hardcode \$libdir into a binary during linking.
18523# This must work even if \$libdir does not exist.
18524hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18525
18526# If ld is used when linking, flag to hardcode \$libdir into
18527# a binary during linking. This must work even if \$libdir does
18528# not exist.
18529hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18530
18531# Whether we need a single -rpath flag with a separated argument.
18532hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18533
18534# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18535# resulting binary.
18536hardcode_direct=$hardcode_direct_GCJ
18537
18538# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18539# resulting binary.
18540hardcode_minus_L=$hardcode_minus_L_GCJ
18541
18542# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18543# the resulting binary.
18544hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18545
18546# Set to yes if building a shared library automatically hardcodes DIR into the library
18547# and all subsequent libraries and executables linked against it.
18548hardcode_automatic=$hardcode_automatic_GCJ
18549
18550# Variables whose values should be saved in libtool wrapper scripts and
18551# restored at relink time.
18552variables_saved_for_relink="$variables_saved_for_relink"
18553
18554# Whether libtool must link a program against all its dependency libraries.
18555link_all_deplibs=$link_all_deplibs_GCJ
18556
18557# Compile-time system search path for libraries
18558sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18559
18560# Run-time system search path for libraries
18561sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18562
18563# Fix the shell variable \$srcfile for the compiler.
18564fix_srcfile_path="$fix_srcfile_path_GCJ"
18565
18566# Set to yes if exported symbols are required.
18567always_export_symbols=$always_export_symbols_GCJ
18568
18569# The commands to list exported symbols.
18570export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18571
18572# The commands to extract the exported symbol list from a shared archive.
18573extract_expsyms_cmds=$lt_extract_expsyms_cmds
18574
18575# Symbols that should not be listed in the preloaded symbols.
18576exclude_expsyms=$lt_exclude_expsyms_GCJ
18577
18578# Symbols that must always be exported.
18579include_expsyms=$lt_include_expsyms_GCJ
18580
18581# ### END LIBTOOL TAG CONFIG: $tagname
18582
18583__EOF__
18584
18585
18586else
18587  # If there is no Makefile yet, we rely on a make rule to execute
18588  # `config.status --recheck' to rerun these tests and create the
18589  # libtool script then.
18590  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18591  if test -f "$ltmain_in"; then
18592    test -f Makefile && make "$ltmain"
18593  fi
18594fi
18595
18596
18597ac_ext=c
18598ac_cpp='$CPP $CPPFLAGS'
18599ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18600ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18601ac_compiler_gnu=$ac_cv_c_compiler_gnu
18602
18603CC="$lt_save_CC"
18604
18605	else
18606	  tagname=""
18607	fi
18608	;;
18609
18610      RC)
18611
18612
18613
18614# Source file extension for RC test sources.
18615ac_ext=rc
18616
18617# Object file extension for compiled RC test sources.
18618objext=o
18619objext_RC=$objext
18620
18621# Code to be used in simple compile tests
18622lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18623
18624# Code to be used in simple link tests
18625lt_simple_link_test_code="$lt_simple_compile_test_code"
18626
18627# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18628
18629# If no C compiler was specified, use CC.
18630LTCC=${LTCC-"$CC"}
18631
18632# If no C compiler flags were specified, use CFLAGS.
18633LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18634
18635# Allow CC to be a program name with arguments.
18636compiler=$CC
18637
18638
18639# save warnings/boilerplate of simple test code
18640ac_outfile=conftest.$ac_objext
18641printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18642eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18643_lt_compiler_boilerplate=`cat conftest.err`
18644$rm conftest*
18645
18646ac_outfile=conftest.$ac_objext
18647printf "$lt_simple_link_test_code" >conftest.$ac_ext
18648eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18649_lt_linker_boilerplate=`cat conftest.err`
18650$rm conftest*
18651
18652
18653# Allow CC to be a program name with arguments.
18654lt_save_CC="$CC"
18655CC=${RC-"windres"}
18656compiler=$CC
18657compiler_RC=$CC
18658for cc_temp in $compiler""; do
18659  case $cc_temp in
18660    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18661    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18662    \-*) ;;
18663    *) break;;
18664  esac
18665done
18666cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18667
18668lt_cv_prog_compiler_c_o_RC=yes
18669
18670# The else clause should only fire when bootstrapping the
18671# libtool distribution, otherwise you forgot to ship ltmain.sh
18672# with your package, and you will get complaints that there are
18673# no rules to generate ltmain.sh.
18674if test -f "$ltmain"; then
18675  # See if we are running on zsh, and set the options which allow our commands through
18676  # without removal of \ escapes.
18677  if test -n "${ZSH_VERSION+set}" ; then
18678    setopt NO_GLOB_SUBST
18679  fi
18680  # Now quote all the things that may contain metacharacters while being
18681  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18682  # variables and quote the copies for generation of the libtool script.
18683  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18684    SED SHELL STRIP \
18685    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18686    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18687    deplibs_check_method reload_flag reload_cmds need_locks \
18688    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18689    lt_cv_sys_global_symbol_to_c_name_address \
18690    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18691    old_postinstall_cmds old_postuninstall_cmds \
18692    compiler_RC \
18693    CC_RC \
18694    LD_RC \
18695    lt_prog_compiler_wl_RC \
18696    lt_prog_compiler_pic_RC \
18697    lt_prog_compiler_static_RC \
18698    lt_prog_compiler_no_builtin_flag_RC \
18699    export_dynamic_flag_spec_RC \
18700    thread_safe_flag_spec_RC \
18701    whole_archive_flag_spec_RC \
18702    enable_shared_with_static_runtimes_RC \
18703    old_archive_cmds_RC \
18704    old_archive_from_new_cmds_RC \
18705    predep_objects_RC \
18706    postdep_objects_RC \
18707    predeps_RC \
18708    postdeps_RC \
18709    compiler_lib_search_path_RC \
18710    archive_cmds_RC \
18711    archive_expsym_cmds_RC \
18712    postinstall_cmds_RC \
18713    postuninstall_cmds_RC \
18714    old_archive_from_expsyms_cmds_RC \
18715    allow_undefined_flag_RC \
18716    no_undefined_flag_RC \
18717    export_symbols_cmds_RC \
18718    hardcode_libdir_flag_spec_RC \
18719    hardcode_libdir_flag_spec_ld_RC \
18720    hardcode_libdir_separator_RC \
18721    hardcode_automatic_RC \
18722    module_cmds_RC \
18723    module_expsym_cmds_RC \
18724    lt_cv_prog_compiler_c_o_RC \
18725    exclude_expsyms_RC \
18726    include_expsyms_RC; do
18727
18728    case $var in
18729    old_archive_cmds_RC | \
18730    old_archive_from_new_cmds_RC | \
18731    archive_cmds_RC | \
18732    archive_expsym_cmds_RC | \
18733    module_cmds_RC | \
18734    module_expsym_cmds_RC | \
18735    old_archive_from_expsyms_cmds_RC | \
18736    export_symbols_cmds_RC | \
18737    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18738    postinstall_cmds | postuninstall_cmds | \
18739    old_postinstall_cmds | old_postuninstall_cmds | \
18740    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18741      # Double-quote double-evaled strings.
18742      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18743      ;;
18744    *)
18745      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18746      ;;
18747    esac
18748  done
18749
18750  case $lt_echo in
18751  *'\$0 --fallback-echo"')
18752    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18753    ;;
18754  esac
18755
18756cfgfile="$ofile"
18757
18758  cat <<__EOF__ >> "$cfgfile"
18759# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18760
18761# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18762
18763# Shell to use when invoking shell scripts.
18764SHELL=$lt_SHELL
18765
18766# Whether or not to build shared libraries.
18767build_libtool_libs=$enable_shared
18768
18769# Whether or not to build static libraries.
18770build_old_libs=$enable_static
18771
18772# Whether or not to add -lc for building shared libraries.
18773build_libtool_need_lc=$archive_cmds_need_lc_RC
18774
18775# Whether or not to disallow shared libs when runtime libs are static
18776allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18777
18778# Whether or not to optimize for fast installation.
18779fast_install=$enable_fast_install
18780
18781# The host system.
18782host_alias=$host_alias
18783host=$host
18784host_os=$host_os
18785
18786# The build system.
18787build_alias=$build_alias
18788build=$build
18789build_os=$build_os
18790
18791# An echo program that does not interpret backslashes.
18792echo=$lt_echo
18793
18794# The archiver.
18795AR=$lt_AR
18796AR_FLAGS=$lt_AR_FLAGS
18797
18798# A C compiler.
18799LTCC=$lt_LTCC
18800
18801# LTCC compiler flags.
18802LTCFLAGS=$lt_LTCFLAGS
18803
18804# A language-specific compiler.
18805CC=$lt_compiler_RC
18806
18807# Is the compiler the GNU C compiler?
18808with_gcc=$GCC_RC
18809
18810gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
18811gcc_ver=\`gcc -dumpversion\`
18812
18813# An ERE matcher.
18814EGREP=$lt_EGREP
18815
18816# The linker used to build libraries.
18817LD=$lt_LD_RC
18818
18819# Whether we need hard or soft links.
18820LN_S=$lt_LN_S
18821
18822# A BSD-compatible nm program.
18823NM=$lt_NM
18824
18825# A symbol stripping program
18826STRIP=$lt_STRIP
18827
18828# Used to examine libraries when file_magic_cmd begins "file"
18829MAGIC_CMD=$MAGIC_CMD
18830
18831# Used on cygwin: DLL creation program.
18832DLLTOOL="$DLLTOOL"
18833
18834# Used on cygwin: object dumper.
18835OBJDUMP="$OBJDUMP"
18836
18837# Used on cygwin: assembler.
18838AS="$AS"
18839
18840# The name of the directory that contains temporary libtool files.
18841objdir=$objdir
18842
18843# How to create reloadable object files.
18844reload_flag=$lt_reload_flag
18845reload_cmds=$lt_reload_cmds
18846
18847# How to pass a linker flag through the compiler.
18848wl=$lt_lt_prog_compiler_wl_RC
18849
18850# Object file suffix (normally "o").
18851objext="$ac_objext"
18852
18853# Old archive suffix (normally "a").
18854libext="$libext"
18855
18856# Shared library suffix (normally ".so").
18857shrext_cmds='$shrext_cmds'
18858
18859# Executable file suffix (normally "").
18860exeext="$exeext"
18861
18862# Additional compiler flags for building library objects.
18863pic_flag=$lt_lt_prog_compiler_pic_RC
18864pic_mode=$pic_mode
18865
18866# What is the maximum length of a command?
18867max_cmd_len=$lt_cv_sys_max_cmd_len
18868
18869# Does compiler simultaneously support -c and -o options?
18870compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18871
18872# Must we lock files when doing compilation?
18873need_locks=$lt_need_locks
18874
18875# Do we need the lib prefix for modules?
18876need_lib_prefix=$need_lib_prefix
18877
18878# Do we need a version for libraries?
18879need_version=$need_version
18880
18881# Whether dlopen is supported.
18882dlopen_support=$enable_dlopen
18883
18884# Whether dlopen of programs is supported.
18885dlopen_self=$enable_dlopen_self
18886
18887# Whether dlopen of statically linked programs is supported.
18888dlopen_self_static=$enable_dlopen_self_static
18889
18890# Compiler flag to prevent dynamic linking.
18891link_static_flag=$lt_lt_prog_compiler_static_RC
18892
18893# Compiler flag to turn off builtin functions.
18894no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18895
18896# Compiler flag to allow reflexive dlopens.
18897export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18898
18899# Compiler flag to generate shared objects directly from archives.
18900whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18901
18902# Compiler flag to generate thread-safe objects.
18903thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18904
18905# Library versioning type.
18906version_type=$version_type
18907
18908# Format of library name prefix.
18909libname_spec=$lt_libname_spec
18910
18911# List of archive names.  First name is the real one, the rest are links.
18912# The last name is the one that the linker finds with -lNAME.
18913library_names_spec=$lt_library_names_spec
18914
18915# The coded name of the library, if different from the real name.
18916soname_spec=$lt_soname_spec
18917
18918# Commands used to build and install an old-style archive.
18919RANLIB=$lt_RANLIB
18920old_archive_cmds=$lt_old_archive_cmds_RC
18921old_postinstall_cmds=$lt_old_postinstall_cmds
18922old_postuninstall_cmds=$lt_old_postuninstall_cmds
18923
18924# Create an old-style archive from a shared archive.
18925old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18926
18927# Create a temporary old-style archive to link instead of a shared archive.
18928old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18929
18930# Commands used to build and install a shared archive.
18931archive_cmds=$lt_archive_cmds_RC
18932archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18933postinstall_cmds=$lt_postinstall_cmds
18934postuninstall_cmds=$lt_postuninstall_cmds
18935
18936# Commands used to build a loadable module (assumed same as above if empty)
18937module_cmds=$lt_module_cmds_RC
18938module_expsym_cmds=$lt_module_expsym_cmds_RC
18939
18940# Commands to strip libraries.
18941old_striplib=$lt_old_striplib
18942striplib=$lt_striplib
18943
18944# Dependencies to place before the objects being linked to create a
18945# shared library.
18946predep_objects=\`echo $lt_predep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18947
18948# Dependencies to place after the objects being linked to create a
18949# shared library.
18950postdep_objects=\`echo $lt_postdep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18951
18952# Dependencies to place before the objects being linked to create a
18953# shared library.
18954predeps=$lt_predeps_RC
18955
18956# Dependencies to place after the objects being linked to create a
18957# shared library.
18958postdeps=$lt_postdeps_RC
18959
18960# The library search path used internally by the compiler when linking
18961# a shared library.
18962compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18963
18964# Method to check whether dependent libraries are shared objects.
18965deplibs_check_method=$lt_deplibs_check_method
18966
18967# Command to use when deplibs_check_method == file_magic.
18968file_magic_cmd=$lt_file_magic_cmd
18969
18970# Flag that allows shared libraries with undefined symbols to be built.
18971allow_undefined_flag=$lt_allow_undefined_flag_RC
18972
18973# Flag that forces no undefined symbols.
18974no_undefined_flag=$lt_no_undefined_flag_RC
18975
18976# Commands used to finish a libtool library installation in a directory.
18977finish_cmds=$lt_finish_cmds
18978
18979# Same as above, but a single script fragment to be evaled but not shown.
18980finish_eval=$lt_finish_eval
18981
18982# Take the output of nm and produce a listing of raw symbols and C names.
18983global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18984
18985# Transform the output of nm in a proper C declaration
18986global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18987
18988# Transform the output of nm in a C name address pair
18989global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18990
18991# This is the shared library runtime path variable.
18992runpath_var=$runpath_var
18993
18994# This is the shared library path variable.
18995shlibpath_var=$shlibpath_var
18996
18997# Is shlibpath searched before the hard-coded library search path?
18998shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18999
19000# How to hardcode a shared library path into an executable.
19001hardcode_action=$hardcode_action_RC
19002
19003# Whether we should hardcode library paths into libraries.
19004hardcode_into_libs=$hardcode_into_libs
19005
19006# Flag to hardcode \$libdir into a binary during linking.
19007# This must work even if \$libdir does not exist.
19008hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19009
19010# If ld is used when linking, flag to hardcode \$libdir into
19011# a binary during linking. This must work even if \$libdir does
19012# not exist.
19013hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19014
19015# Whether we need a single -rpath flag with a separated argument.
19016hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19017
19018# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19019# resulting binary.
19020hardcode_direct=$hardcode_direct_RC
19021
19022# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19023# resulting binary.
19024hardcode_minus_L=$hardcode_minus_L_RC
19025
19026# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19027# the resulting binary.
19028hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19029
19030# Set to yes if building a shared library automatically hardcodes DIR into the library
19031# and all subsequent libraries and executables linked against it.
19032hardcode_automatic=$hardcode_automatic_RC
19033
19034# Variables whose values should be saved in libtool wrapper scripts and
19035# restored at relink time.
19036variables_saved_for_relink="$variables_saved_for_relink"
19037
19038# Whether libtool must link a program against all its dependency libraries.
19039link_all_deplibs=$link_all_deplibs_RC
19040
19041# Compile-time system search path for libraries
19042sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
19043
19044# Run-time system search path for libraries
19045sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19046
19047# Fix the shell variable \$srcfile for the compiler.
19048fix_srcfile_path="$fix_srcfile_path_RC"
19049
19050# Set to yes if exported symbols are required.
19051always_export_symbols=$always_export_symbols_RC
19052
19053# The commands to list exported symbols.
19054export_symbols_cmds=$lt_export_symbols_cmds_RC
19055
19056# The commands to extract the exported symbol list from a shared archive.
19057extract_expsyms_cmds=$lt_extract_expsyms_cmds
19058
19059# Symbols that should not be listed in the preloaded symbols.
19060exclude_expsyms=$lt_exclude_expsyms_RC
19061
19062# Symbols that must always be exported.
19063include_expsyms=$lt_include_expsyms_RC
19064
19065# ### END LIBTOOL TAG CONFIG: $tagname
19066
19067__EOF__
19068
19069
19070else
19071  # If there is no Makefile yet, we rely on a make rule to execute
19072  # `config.status --recheck' to rerun these tests and create the
19073  # libtool script then.
19074  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19075  if test -f "$ltmain_in"; then
19076    test -f Makefile && make "$ltmain"
19077  fi
19078fi
19079
19080
19081ac_ext=c
19082ac_cpp='$CPP $CPPFLAGS'
19083ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19084ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19085ac_compiler_gnu=$ac_cv_c_compiler_gnu
19086
19087CC="$lt_save_CC"
19088
19089	;;
19090
19091      *)
19092	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19093echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19094   { (exit 1); exit 1; }; }
19095	;;
19096      esac
19097
19098      # Append the new tag name to the list of available tags.
19099      if test -n "$tagname" ; then
19100      available_tags="$available_tags $tagname"
19101    fi
19102    fi
19103  done
19104  IFS="$lt_save_ifs"
19105
19106  # Now substitute the updated list of available tags.
19107  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19108    mv "${ofile}T" "$ofile"
19109    chmod +x "$ofile"
19110  else
19111    rm -f "${ofile}T"
19112    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19113echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19114   { (exit 1); exit 1; }; }
19115  fi
19116fi
19117
19118
19119
19120# This can be used to rebuild libtool when needed
19121LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19122
19123# Always use our own libtool.
19124LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19125
19126# Prevent multiple expansion
19127
19128
19129
19130
19131
19132
19133
19134
19135
19136
19137
19138
19139
19140
19141
19142
19143
19144
19145
19146
19147
19148
19149echo "$as_me:$LINENO: checking for distribution root" >&5
19150echo $ECHO_N "checking for distribution root... $ECHO_C" >&6
19151DIST_ROOT=`pwd`
19152
19153echo "$as_me:$LINENO: result: $DIST_ROOT" >&5
19154echo "${ECHO_T}$DIST_ROOT" >&6
19155
19156if test $ac_cv_c_compiler_gnu = yes; then
19157    echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
19158echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
19159if test "${ac_cv_prog_gcc_traditional+set}" = set; then
19160  echo $ECHO_N "(cached) $ECHO_C" >&6
19161else
19162    ac_pattern="Autoconf.*'x'"
19163  cat >conftest.$ac_ext <<_ACEOF
19164/* confdefs.h.  */
19165_ACEOF
19166cat confdefs.h >>conftest.$ac_ext
19167cat >>conftest.$ac_ext <<_ACEOF
19168/* end confdefs.h.  */
19169#include <sgtty.h>
19170Autoconf TIOCGETP
19171_ACEOF
19172if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19173  $EGREP "$ac_pattern" >/dev/null 2>&1; then
19174  ac_cv_prog_gcc_traditional=yes
19175else
19176  ac_cv_prog_gcc_traditional=no
19177fi
19178rm -f conftest*
19179
19180
19181  if test $ac_cv_prog_gcc_traditional = no; then
19182    cat >conftest.$ac_ext <<_ACEOF
19183/* confdefs.h.  */
19184_ACEOF
19185cat confdefs.h >>conftest.$ac_ext
19186cat >>conftest.$ac_ext <<_ACEOF
19187/* end confdefs.h.  */
19188#include <termio.h>
19189Autoconf TCGETA
19190_ACEOF
19191if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19192  $EGREP "$ac_pattern" >/dev/null 2>&1; then
19193  ac_cv_prog_gcc_traditional=yes
19194fi
19195rm -f conftest*
19196
19197  fi
19198fi
19199echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
19200echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
19201  if test $ac_cv_prog_gcc_traditional = yes; then
19202    CC="$CC -traditional"
19203  fi
19204fi
19205
19206
19207if test "${CFLAGS_GIVEN}" -ne 1; then
19208    if test "$GCC" = "yes"; then
19209	if test "$ac_cv_prog_cc_g" = "yes"; then
19210	    CCOPTS='-g -O2'
19211	else
19212	    CCOPTS='-O2'
19213	fi
19214	CFLAGS="$CCOPTS"
19215    fi
19216fi
19217
19218# Find a good install program.  We prefer a C program (faster),
19219# so one script is as good as another.  But avoid the broken or
19220# incompatible versions:
19221# SysV /etc/install, /usr/sbin/install
19222# SunOS /usr/etc/install
19223# IRIX /sbin/install
19224# AIX /bin/install
19225# AmigaOS /C/install, which installs bootblocks on floppy discs
19226# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
19227# AFS /usr/afsws/bin/install, which mishandles nonexistent args
19228# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
19229# OS/2's system install, which has a completely different semantic
19230# ./install, which can be erroneously created by make from ./install.sh.
19231echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
19232echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
19233if test -z "$INSTALL"; then
19234if test "${ac_cv_path_install+set}" = set; then
19235  echo $ECHO_N "(cached) $ECHO_C" >&6
19236else
19237  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19238for as_dir in $PATH
19239do
19240  IFS=$as_save_IFS
19241  test -z "$as_dir" && as_dir=.
19242  # Account for people who put trailing slashes in PATH elements.
19243case $as_dir/ in
19244  ./ | .// | /cC/* | \
19245  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
19246  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
19247  /usr/ucb/* ) ;;
19248  *)
19249    # OSF1 and SCO ODT 3.0 have their own names for install.
19250    # Don't use installbsd from OSF since it installs stuff as root
19251    # by default.
19252    for ac_prog in ginstall scoinst install; do
19253      for ac_exec_ext in '' $ac_executable_extensions; do
19254	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
19255	  if test $ac_prog = install &&
19256	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19257	    # AIX install.  It has an incompatible calling convention.
19258	    :
19259	  elif test $ac_prog = install &&
19260	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19261	    # program-specific install script used by HP pwplus--don't use.
19262	    :
19263	  else
19264	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
19265	    break 3
19266	  fi
19267	fi
19268      done
19269    done
19270    ;;
19271esac
19272done
19273
19274
19275fi
19276  if test "${ac_cv_path_install+set}" = set; then
19277    INSTALL=$ac_cv_path_install
19278  else
19279    # As a last resort, use the slow shell script.  We don't cache a
19280    # path for INSTALL within a source directory, because that will
19281    # break other packages using the cache if that directory is
19282    # removed, or if the path is relative.
19283    INSTALL=$ac_install_sh
19284  fi
19285fi
19286echo "$as_me:$LINENO: result: $INSTALL" >&5
19287echo "${ECHO_T}$INSTALL" >&6
19288
19289# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
19290# It thinks the first close brace ends the variable substitution.
19291test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
19292
19293test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
19294
19295test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
19296
19297
19298CCASFLAGS="$CCASFLAGS -I.. -I."
19299CCAS=$CC
19300
19301
19302
19303echo "$as_me:$LINENO: checking whether build environment is sane" >&5
19304echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
19305# Just in case
19306sleep 1
19307echo timestamp > conftest.file
19308# Do `set' in a subshell so we don't clobber the current shell's
19309# arguments.  Must try -L first in case configure is actually a
19310# symlink; some systems play weird games with the mod time of symlinks
19311# (eg FreeBSD returns the mod time of the symlink's containing
19312# directory).
19313if (
19314   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
19315   if test "$*" = "X"; then
19316      # -L didn't work.
19317      set X `ls -t $srcdir/configure conftest.file`
19318   fi
19319   rm -f conftest.file
19320   if test "$*" != "X $srcdir/configure conftest.file" \
19321      && test "$*" != "X conftest.file $srcdir/configure"; then
19322
19323      # If neither matched, then we have a broken ls.  This can happen
19324      # if, for instance, CONFIG_SHELL is bash and it inherits a
19325      # broken ls alias from the environment.  This has actually
19326      # happened.  Such a system could not be considered "sane".
19327      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
19328alias in your environment" >&5
19329echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
19330alias in your environment" >&2;}
19331   { (exit 1); exit 1; }; }
19332   fi
19333
19334   test "$2" = conftest.file
19335   )
19336then
19337   # Ok.
19338   :
19339else
19340   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
19341Check your system clock" >&5
19342echo "$as_me: error: newly created file is older than distributed files!
19343Check your system clock" >&2;}
19344   { (exit 1); exit 1; }; }
19345fi
19346echo "$as_me:$LINENO: result: yes" >&5
19347echo "${ECHO_T}yes" >&6
19348
19349echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
19350echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
19351    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
19352if test "${enable_maintainer_mode+set}" = set; then
19353  enableval="$enable_maintainer_mode"
19354  USE_MAINTAINER_MODE=$enableval
19355else
19356  USE_MAINTAINER_MODE=no
19357fi;
19358  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
19359echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
19360
19361
19362if test $USE_MAINTAINER_MODE = yes; then
19363  MAINTAINER_MODE_TRUE=
19364  MAINTAINER_MODE_FALSE='#'
19365else
19366  MAINTAINER_MODE_TRUE='#'
19367  MAINTAINER_MODE_FALSE=
19368fi
19369
19370  MAINT=$MAINTAINER_MODE_TRUE
19371
19372
19373
19374echo "$as_me:$LINENO: checking if malloc debugging is wanted" >&5
19375echo $ECHO_N "checking if malloc debugging is wanted... $ECHO_C" >&6
19376
19377# Check whether --with-dmalloc or --without-dmalloc was given.
19378if test "${with_dmalloc+set}" = set; then
19379  withval="$with_dmalloc"
19380  if test "$withval" = yes; then
19381  echo "$as_me:$LINENO: result: yes" >&5
19382echo "${ECHO_T}yes" >&6
19383
19384cat >>confdefs.h <<\_ACEOF
19385#define WITH_DMALLOC 1
19386_ACEOF
19387
19388  LIBS="$LIBS -ldmalloc"
19389  LDFLAGS="$LDFLAGS -g"
19390else
19391  echo "$as_me:$LINENO: result: no" >&5
19392echo "${ECHO_T}no" >&6
19393fi
19394else
19395  echo "$as_me:$LINENO: result: no" >&5
19396echo "${ECHO_T}no" >&6
19397fi;
19398
19399
19400# Extract the first word of "sed", so it can be a program name with args.
19401set dummy sed; ac_word=$2
19402echo "$as_me:$LINENO: checking for $ac_word" >&5
19403echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19404if test "${ac_cv_prog_SED+set}" = set; then
19405  echo $ECHO_N "(cached) $ECHO_C" >&6
19406else
19407  if test -n "$SED"; then
19408  ac_cv_prog_SED="$SED" # Let the user override the test.
19409else
19410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19411for as_dir in $PATH
19412do
19413  IFS=$as_save_IFS
19414  test -z "$as_dir" && as_dir=.
19415  for ac_exec_ext in '' $ac_executable_extensions; do
19416  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19417    ac_cv_prog_SED="sed"
19418    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19419    break 2
19420  fi
19421done
19422done
19423
19424  test -z "$ac_cv_prog_SED" && ac_cv_prog_SED="false"
19425fi
19426fi
19427SED=$ac_cv_prog_SED
19428if test -n "$SED"; then
19429  echo "$as_me:$LINENO: result: $SED" >&5
19430echo "${ECHO_T}$SED" >&6
19431else
19432  echo "$as_me:$LINENO: result: no" >&5
19433echo "${ECHO_T}no" >&6
19434fi
19435
19436# Extract the first word of "rm", so it can be a program name with args.
19437set dummy rm; ac_word=$2
19438echo "$as_me:$LINENO: checking for $ac_word" >&5
19439echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19440if test "${ac_cv_prog_RM+set}" = set; then
19441  echo $ECHO_N "(cached) $ECHO_C" >&6
19442else
19443  if test -n "$RM"; then
19444  ac_cv_prog_RM="$RM" # Let the user override the test.
19445else
19446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19447for as_dir in $PATH
19448do
19449  IFS=$as_save_IFS
19450  test -z "$as_dir" && as_dir=.
19451  for ac_exec_ext in '' $ac_executable_extensions; do
19452  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19453    ac_cv_prog_RM="rm"
19454    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19455    break 2
19456  fi
19457done
19458done
19459
19460  test -z "$ac_cv_prog_RM" && ac_cv_prog_RM="true"
19461fi
19462fi
19463RM=$ac_cv_prog_RM
19464if test -n "$RM"; then
19465  echo "$as_me:$LINENO: result: $RM" >&5
19466echo "${ECHO_T}$RM" >&6
19467else
19468  echo "$as_me:$LINENO: result: no" >&5
19469echo "${ECHO_T}no" >&6
19470fi
19471
19472# Extract the first word of "cp", so it can be a program name with args.
19473set dummy cp; ac_word=$2
19474echo "$as_me:$LINENO: checking for $ac_word" >&5
19475echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19476if test "${ac_cv_prog_CP+set}" = set; then
19477  echo $ECHO_N "(cached) $ECHO_C" >&6
19478else
19479  if test -n "$CP"; then
19480  ac_cv_prog_CP="$CP" # Let the user override the test.
19481else
19482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19483for as_dir in $PATH
19484do
19485  IFS=$as_save_IFS
19486  test -z "$as_dir" && as_dir=.
19487  for ac_exec_ext in '' $ac_executable_extensions; do
19488  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19489    ac_cv_prog_CP="cp"
19490    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19491    break 2
19492  fi
19493done
19494done
19495
19496  test -z "$ac_cv_prog_CP" && ac_cv_prog_CP="false"
19497fi
19498fi
19499CP=$ac_cv_prog_CP
19500if test -n "$CP"; then
19501  echo "$as_me:$LINENO: result: $CP" >&5
19502echo "${ECHO_T}$CP" >&6
19503else
19504  echo "$as_me:$LINENO: result: no" >&5
19505echo "${ECHO_T}no" >&6
19506fi
19507
19508# Extract the first word of "chmod", so it can be a program name with args.
19509set dummy chmod; ac_word=$2
19510echo "$as_me:$LINENO: checking for $ac_word" >&5
19511echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19512if test "${ac_cv_prog_CHMOD+set}" = set; then
19513  echo $ECHO_N "(cached) $ECHO_C" >&6
19514else
19515  if test -n "$CHMOD"; then
19516  ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
19517else
19518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19519for as_dir in $PATH
19520do
19521  IFS=$as_save_IFS
19522  test -z "$as_dir" && as_dir=.
19523  for ac_exec_ext in '' $ac_executable_extensions; do
19524  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19525    ac_cv_prog_CHMOD="chmod"
19526    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19527    break 2
19528  fi
19529done
19530done
19531
19532  test -z "$ac_cv_prog_CHMOD" && ac_cv_prog_CHMOD="true"
19533fi
19534fi
19535CHMOD=$ac_cv_prog_CHMOD
19536if test -n "$CHMOD"; then
19537  echo "$as_me:$LINENO: result: $CHMOD" >&5
19538echo "${ECHO_T}$CHMOD" >&6
19539else
19540  echo "$as_me:$LINENO: result: no" >&5
19541echo "${ECHO_T}no" >&6
19542fi
19543
19544# Extract the first word of "tar", so it can be a program name with args.
19545set dummy tar; ac_word=$2
19546echo "$as_me:$LINENO: checking for $ac_word" >&5
19547echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19548if test "${ac_cv_prog_TAR+set}" = set; then
19549  echo $ECHO_N "(cached) $ECHO_C" >&6
19550else
19551  if test -n "$TAR"; then
19552  ac_cv_prog_TAR="$TAR" # Let the user override the test.
19553else
19554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19555for as_dir in $PATH
19556do
19557  IFS=$as_save_IFS
19558  test -z "$as_dir" && as_dir=.
19559  for ac_exec_ext in '' $ac_executable_extensions; do
19560  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19561    ac_cv_prog_TAR="tar"
19562    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19563    break 2
19564  fi
19565done
19566done
19567
19568  test -z "$ac_cv_prog_TAR" && ac_cv_prog_TAR="tar"
19569fi
19570fi
19571TAR=$ac_cv_prog_TAR
19572if test -n "$TAR"; then
19573  echo "$as_me:$LINENO: result: $TAR" >&5
19574echo "${ECHO_T}$TAR" >&6
19575else
19576  echo "$as_me:$LINENO: result: no" >&5
19577echo "${ECHO_T}no" >&6
19578fi
19579
19580# Extract the first word of "mkdir", so it can be a program name with args.
19581set dummy mkdir; ac_word=$2
19582echo "$as_me:$LINENO: checking for $ac_word" >&5
19583echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19584if test "${ac_cv_prog_MKDIR+set}" = set; then
19585  echo $ECHO_N "(cached) $ECHO_C" >&6
19586else
19587  if test -n "$MKDIR"; then
19588  ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
19589else
19590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19591for as_dir in $PATH
19592do
19593  IFS=$as_save_IFS
19594  test -z "$as_dir" && as_dir=.
19595  for ac_exec_ext in '' $ac_executable_extensions; do
19596  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19597    ac_cv_prog_MKDIR="mkdir"
19598    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19599    break 2
19600  fi
19601done
19602done
19603
19604  test -z "$ac_cv_prog_MKDIR" && ac_cv_prog_MKDIR="false"
19605fi
19606fi
19607MKDIR=$ac_cv_prog_MKDIR
19608if test -n "$MKDIR"; then
19609  echo "$as_me:$LINENO: result: $MKDIR" >&5
19610echo "${ECHO_T}$MKDIR" >&6
19611else
19612  echo "$as_me:$LINENO: result: no" >&5
19613echo "${ECHO_T}no" >&6
19614fi
19615
19616# Extract the first word of "ctags", so it can be a program name with args.
19617set dummy ctags; ac_word=$2
19618echo "$as_me:$LINENO: checking for $ac_word" >&5
19619echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19620if test "${ac_cv_prog_CTAGS+set}" = set; then
19621  echo $ECHO_N "(cached) $ECHO_C" >&6
19622else
19623  if test -n "$CTAGS"; then
19624  ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
19625else
19626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19627for as_dir in $PATH
19628do
19629  IFS=$as_save_IFS
19630  test -z "$as_dir" && as_dir=.
19631  for ac_exec_ext in '' $ac_executable_extensions; do
19632  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19633    ac_cv_prog_CTAGS="ctags"
19634    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19635    break 2
19636  fi
19637done
19638done
19639
19640  test -z "$ac_cv_prog_CTAGS" && ac_cv_prog_CTAGS="true"
19641fi
19642fi
19643CTAGS=$ac_cv_prog_CTAGS
19644if test -n "$CTAGS"; then
19645  echo "$as_me:$LINENO: result: $CTAGS" >&5
19646echo "${ECHO_T}$CTAGS" >&6
19647else
19648  echo "$as_me:$LINENO: result: no" >&5
19649echo "${ECHO_T}no" >&6
19650fi
19651
19652# Extract the first word of "ar", so it can be a program name with args.
19653set dummy ar; ac_word=$2
19654echo "$as_me:$LINENO: checking for $ac_word" >&5
19655echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19656if test "${ac_cv_prog_AR+set}" = set; then
19657  echo $ECHO_N "(cached) $ECHO_C" >&6
19658else
19659  if test -n "$AR"; then
19660  ac_cv_prog_AR="$AR" # Let the user override the test.
19661else
19662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19663for as_dir in $PATH
19664do
19665  IFS=$as_save_IFS
19666  test -z "$as_dir" && as_dir=.
19667  for ac_exec_ext in '' $ac_executable_extensions; do
19668  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19669    ac_cv_prog_AR="ar"
19670    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19671    break 2
19672  fi
19673done
19674done
19675
19676  test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="false"
19677fi
19678fi
19679AR=$ac_cv_prog_AR
19680if test -n "$AR"; then
19681  echo "$as_me:$LINENO: result: $AR" >&5
19682echo "${ECHO_T}$AR" >&6
19683else
19684  echo "$as_me:$LINENO: result: no" >&5
19685echo "${ECHO_T}no" >&6
19686fi
19687
19688# Extract the first word of "mv", so it can be a program name with args.
19689set dummy mv; ac_word=$2
19690echo "$as_me:$LINENO: checking for $ac_word" >&5
19691echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19692if test "${ac_cv_prog_MV+set}" = set; then
19693  echo $ECHO_N "(cached) $ECHO_C" >&6
19694else
19695  if test -n "$MV"; then
19696  ac_cv_prog_MV="$MV" # Let the user override the test.
19697else
19698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19699for as_dir in $PATH
19700do
19701  IFS=$as_save_IFS
19702  test -z "$as_dir" && as_dir=.
19703  for ac_exec_ext in '' $ac_executable_extensions; do
19704  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19705    ac_cv_prog_MV="mv"
19706    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19707    break 2
19708  fi
19709done
19710done
19711
19712  test -z "$ac_cv_prog_MV" && ac_cv_prog_MV="true"
19713fi
19714fi
19715MV=$ac_cv_prog_MV
19716if test -n "$MV"; then
19717  echo "$as_me:$LINENO: result: $MV" >&5
19718echo "${ECHO_T}$MV" >&6
19719else
19720  echo "$as_me:$LINENO: result: no" >&5
19721echo "${ECHO_T}no" >&6
19722fi
19723
19724# Extract the first word of "tic", so it can be a program name with args.
19725set dummy tic; ac_word=$2
19726echo "$as_me:$LINENO: checking for $ac_word" >&5
19727echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19728if test "${ac_cv_prog_TIC+set}" = set; then
19729  echo $ECHO_N "(cached) $ECHO_C" >&6
19730else
19731  if test -n "$TIC"; then
19732  ac_cv_prog_TIC="$TIC" # Let the user override the test.
19733else
19734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19735for as_dir in $PATH
19736do
19737  IFS=$as_save_IFS
19738  test -z "$as_dir" && as_dir=.
19739  for ac_exec_ext in '' $ac_executable_extensions; do
19740  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19741    ac_cv_prog_TIC="tic"
19742    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19743    break 2
19744  fi
19745done
19746done
19747
19748  test -z "$ac_cv_prog_TIC" && ac_cv_prog_TIC="true"
19749fi
19750fi
19751TIC=$ac_cv_prog_TIC
19752if test -n "$TIC"; then
19753  echo "$as_me:$LINENO: result: $TIC" >&5
19754echo "${ECHO_T}$TIC" >&6
19755else
19756  echo "$as_me:$LINENO: result: no" >&5
19757echo "${ECHO_T}no" >&6
19758fi
19759
19760echo "$as_me:$LINENO: checking whether ln -s works" >&5
19761echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
19762LN_S=$as_ln_s
19763if test "$LN_S" = "ln -s"; then
19764  echo "$as_me:$LINENO: result: yes" >&5
19765echo "${ECHO_T}yes" >&6
19766else
19767  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
19768echo "${ECHO_T}no, using $LN_S" >&6
19769fi
19770
19771# Extract the first word of "perl", so it can be a program name with args.
19772set dummy perl; ac_word=$2
19773echo "$as_me:$LINENO: checking for $ac_word" >&5
19774echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19775if test "${ac_cv_path_PERL+set}" = set; then
19776  echo $ECHO_N "(cached) $ECHO_C" >&6
19777else
19778  case $PERL in
19779  [\\/]* | ?:[\\/]*)
19780  ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
19781  ;;
19782  *)
19783  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19784for as_dir in $PATH
19785do
19786  IFS=$as_save_IFS
19787  test -z "$as_dir" && as_dir=.
19788  for ac_exec_ext in '' $ac_executable_extensions; do
19789  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19790    ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
19791    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19792    break 2
19793  fi
19794done
19795done
19796
19797  test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
19798  ;;
19799esac
19800fi
19801PERL=$ac_cv_path_PERL
19802
19803if test -n "$PERL"; then
19804  echo "$as_me:$LINENO: result: $PERL" >&5
19805echo "${ECHO_T}$PERL" >&6
19806else
19807  echo "$as_me:$LINENO: result: no" >&5
19808echo "${ECHO_T}no" >&6
19809fi
19810
19811for ac_prog in gawk mawk nawk awk
19812do
19813  # Extract the first word of "$ac_prog", so it can be a program name with args.
19814set dummy $ac_prog; ac_word=$2
19815echo "$as_me:$LINENO: checking for $ac_word" >&5
19816echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19817if test "${ac_cv_prog_AWK+set}" = set; then
19818  echo $ECHO_N "(cached) $ECHO_C" >&6
19819else
19820  if test -n "$AWK"; then
19821  ac_cv_prog_AWK="$AWK" # Let the user override the test.
19822else
19823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19824for as_dir in $PATH
19825do
19826  IFS=$as_save_IFS
19827  test -z "$as_dir" && as_dir=.
19828  for ac_exec_ext in '' $ac_executable_extensions; do
19829  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19830    ac_cv_prog_AWK="$ac_prog"
19831    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19832    break 2
19833  fi
19834done
19835done
19836
19837fi
19838fi
19839AWK=$ac_cv_prog_AWK
19840if test -n "$AWK"; then
19841  echo "$as_me:$LINENO: result: $AWK" >&5
19842echo "${ECHO_T}$AWK" >&6
19843else
19844  echo "$as_me:$LINENO: result: no" >&5
19845echo "${ECHO_T}no" >&6
19846fi
19847
19848  test -n "$AWK" && break
19849done
19850
19851export PERL AWK
19852
19853echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19854echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
19855if test "${ac_cv_c_const+set}" = set; then
19856  echo $ECHO_N "(cached) $ECHO_C" >&6
19857else
19858  cat >conftest.$ac_ext <<_ACEOF
19859/* confdefs.h.  */
19860_ACEOF
19861cat confdefs.h >>conftest.$ac_ext
19862cat >>conftest.$ac_ext <<_ACEOF
19863/* end confdefs.h.  */
19864
19865int
19866main ()
19867{
19868/* FIXME: Include the comments suggested by Paul. */
19869#ifndef __cplusplus
19870  /* Ultrix mips cc rejects this.  */
19871  typedef int charset[2];
19872  const charset x;
19873  /* SunOS 4.1.1 cc rejects this.  */
19874  char const *const *ccp;
19875  char **p;
19876  /* NEC SVR4.0.2 mips cc rejects this.  */
19877  struct point {int x, y;};
19878  static struct point const zero = {0,0};
19879  /* AIX XL C 1.02.0.0 rejects this.
19880     It does not let you subtract one const X* pointer from another in
19881     an arm of an if-expression whose if-part is not a constant
19882     expression */
19883  const char *g = "string";
19884  ccp = &g + (g ? g-g : 0);
19885  /* HPUX 7.0 cc rejects these. */
19886  ++ccp;
19887  p = (char**) ccp;
19888  ccp = (char const *const *) p;
19889  { /* SCO 3.2v4 cc rejects this.  */
19890    char *t;
19891    char const *s = 0 ? (char *) 0 : (char const *) 0;
19892
19893    *t++ = 0;
19894  }
19895  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
19896    int x[] = {25, 17};
19897    const int *foo = &x[0];
19898    ++foo;
19899  }
19900  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19901    typedef const int *iptr;
19902    iptr p = 0;
19903    ++p;
19904  }
19905  { /* AIX XL C 1.02.0.0 rejects this saying
19906       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19907    struct s { int j; const int *ap[3]; };
19908    struct s *b; b->j = 5;
19909  }
19910  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19911    const int foo = 10;
19912  }
19913#endif
19914
19915  ;
19916  return 0;
19917}
19918_ACEOF
19919rm -f conftest.$ac_objext
19920if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19921  (eval $ac_compile) 2>conftest.er1
19922  ac_status=$?
19923  grep -v '^ *+' conftest.er1 >conftest.err
19924  rm -f conftest.er1
19925  cat conftest.err >&5
19926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19927  (exit $ac_status); } &&
19928	 { ac_try='test -z "$ac_c_werror_flag"
19929			 || test ! -s conftest.err'
19930  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19931  (eval $ac_try) 2>&5
19932  ac_status=$?
19933  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19934  (exit $ac_status); }; } &&
19935	 { ac_try='test -s conftest.$ac_objext'
19936  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19937  (eval $ac_try) 2>&5
19938  ac_status=$?
19939  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19940  (exit $ac_status); }; }; then
19941  ac_cv_c_const=yes
19942else
19943  echo "$as_me: failed program was:" >&5
19944sed 's/^/| /' conftest.$ac_ext >&5
19945
19946ac_cv_c_const=no
19947fi
19948rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19949fi
19950echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19951echo "${ECHO_T}$ac_cv_c_const" >&6
19952if test $ac_cv_c_const = no; then
19953
19954cat >>confdefs.h <<\_ACEOF
19955#define const
19956_ACEOF
19957
19958fi
19959
19960echo "$as_me:$LINENO: checking for inline" >&5
19961echo $ECHO_N "checking for inline... $ECHO_C" >&6
19962if test "${ac_cv_c_inline+set}" = set; then
19963  echo $ECHO_N "(cached) $ECHO_C" >&6
19964else
19965  ac_cv_c_inline=no
19966for ac_kw in inline __inline__ __inline; do
19967  cat >conftest.$ac_ext <<_ACEOF
19968/* confdefs.h.  */
19969_ACEOF
19970cat confdefs.h >>conftest.$ac_ext
19971cat >>conftest.$ac_ext <<_ACEOF
19972/* end confdefs.h.  */
19973#ifndef __cplusplus
19974typedef int foo_t;
19975static $ac_kw foo_t static_foo () {return 0; }
19976$ac_kw foo_t foo () {return 0; }
19977#endif
19978
19979_ACEOF
19980rm -f conftest.$ac_objext
19981if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19982  (eval $ac_compile) 2>conftest.er1
19983  ac_status=$?
19984  grep -v '^ *+' conftest.er1 >conftest.err
19985  rm -f conftest.er1
19986  cat conftest.err >&5
19987  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19988  (exit $ac_status); } &&
19989	 { ac_try='test -z "$ac_c_werror_flag"
19990			 || test ! -s conftest.err'
19991  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19992  (eval $ac_try) 2>&5
19993  ac_status=$?
19994  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19995  (exit $ac_status); }; } &&
19996	 { ac_try='test -s conftest.$ac_objext'
19997  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19998  (eval $ac_try) 2>&5
19999  ac_status=$?
20000  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20001  (exit $ac_status); }; }; then
20002  ac_cv_c_inline=$ac_kw; break
20003else
20004  echo "$as_me: failed program was:" >&5
20005sed 's/^/| /' conftest.$ac_ext >&5
20006
20007fi
20008rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20009done
20010
20011fi
20012echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
20013echo "${ECHO_T}$ac_cv_c_inline" >&6
20014
20015
20016case $ac_cv_c_inline in
20017  inline | yes) ;;
20018  *)
20019    case $ac_cv_c_inline in
20020      no) ac_val=;;
20021      *) ac_val=$ac_cv_c_inline;;
20022    esac
20023    cat >>confdefs.h <<_ACEOF
20024#ifndef __cplusplus
20025#define inline $ac_val
20026#endif
20027_ACEOF
20028    ;;
20029esac
20030
20031echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20032echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20033if test "${ac_cv_c_bigendian+set}" = set; then
20034  echo $ECHO_N "(cached) $ECHO_C" >&6
20035else
20036  # See if sys/param.h defines the BYTE_ORDER macro.
20037cat >conftest.$ac_ext <<_ACEOF
20038/* confdefs.h.  */
20039_ACEOF
20040cat confdefs.h >>conftest.$ac_ext
20041cat >>conftest.$ac_ext <<_ACEOF
20042/* end confdefs.h.  */
20043#include <sys/types.h>
20044#include <sys/param.h>
20045
20046int
20047main ()
20048{
20049#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20050 bogus endian macros
20051#endif
20052
20053  ;
20054  return 0;
20055}
20056_ACEOF
20057rm -f conftest.$ac_objext
20058if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20059  (eval $ac_compile) 2>conftest.er1
20060  ac_status=$?
20061  grep -v '^ *+' conftest.er1 >conftest.err
20062  rm -f conftest.er1
20063  cat conftest.err >&5
20064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20065  (exit $ac_status); } &&
20066	 { ac_try='test -z "$ac_c_werror_flag"
20067			 || test ! -s conftest.err'
20068  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20069  (eval $ac_try) 2>&5
20070  ac_status=$?
20071  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20072  (exit $ac_status); }; } &&
20073	 { ac_try='test -s conftest.$ac_objext'
20074  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20075  (eval $ac_try) 2>&5
20076  ac_status=$?
20077  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20078  (exit $ac_status); }; }; then
20079  # It does; now see whether it defined to BIG_ENDIAN or not.
20080cat >conftest.$ac_ext <<_ACEOF
20081/* confdefs.h.  */
20082_ACEOF
20083cat confdefs.h >>conftest.$ac_ext
20084cat >>conftest.$ac_ext <<_ACEOF
20085/* end confdefs.h.  */
20086#include <sys/types.h>
20087#include <sys/param.h>
20088
20089int
20090main ()
20091{
20092#if BYTE_ORDER != BIG_ENDIAN
20093 not big endian
20094#endif
20095
20096  ;
20097  return 0;
20098}
20099_ACEOF
20100rm -f conftest.$ac_objext
20101if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20102  (eval $ac_compile) 2>conftest.er1
20103  ac_status=$?
20104  grep -v '^ *+' conftest.er1 >conftest.err
20105  rm -f conftest.er1
20106  cat conftest.err >&5
20107  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20108  (exit $ac_status); } &&
20109	 { ac_try='test -z "$ac_c_werror_flag"
20110			 || test ! -s conftest.err'
20111  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20112  (eval $ac_try) 2>&5
20113  ac_status=$?
20114  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20115  (exit $ac_status); }; } &&
20116	 { ac_try='test -s conftest.$ac_objext'
20117  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20118  (eval $ac_try) 2>&5
20119  ac_status=$?
20120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20121  (exit $ac_status); }; }; then
20122  ac_cv_c_bigendian=yes
20123else
20124  echo "$as_me: failed program was:" >&5
20125sed 's/^/| /' conftest.$ac_ext >&5
20126
20127ac_cv_c_bigendian=no
20128fi
20129rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20130else
20131  echo "$as_me: failed program was:" >&5
20132sed 's/^/| /' conftest.$ac_ext >&5
20133
20134# It does not; compile a test program.
20135if test "$cross_compiling" = yes; then
20136  # try to guess the endianness by grepping values into an object file
20137  ac_cv_c_bigendian=unknown
20138  cat >conftest.$ac_ext <<_ACEOF
20139/* confdefs.h.  */
20140_ACEOF
20141cat confdefs.h >>conftest.$ac_ext
20142cat >>conftest.$ac_ext <<_ACEOF
20143/* end confdefs.h.  */
20144short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20145short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20146void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20147short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20148short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20149void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20150int
20151main ()
20152{
20153 _ascii (); _ebcdic ();
20154  ;
20155  return 0;
20156}
20157_ACEOF
20158rm -f conftest.$ac_objext
20159if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20160  (eval $ac_compile) 2>conftest.er1
20161  ac_status=$?
20162  grep -v '^ *+' conftest.er1 >conftest.err
20163  rm -f conftest.er1
20164  cat conftest.err >&5
20165  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20166  (exit $ac_status); } &&
20167	 { ac_try='test -z "$ac_c_werror_flag"
20168			 || test ! -s conftest.err'
20169  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20170  (eval $ac_try) 2>&5
20171  ac_status=$?
20172  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20173  (exit $ac_status); }; } &&
20174	 { ac_try='test -s conftest.$ac_objext'
20175  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20176  (eval $ac_try) 2>&5
20177  ac_status=$?
20178  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20179  (exit $ac_status); }; }; then
20180  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
20181  ac_cv_c_bigendian=yes
20182fi
20183if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20184  if test "$ac_cv_c_bigendian" = unknown; then
20185    ac_cv_c_bigendian=no
20186  else
20187    # finding both strings is unlikely to happen, but who knows?
20188    ac_cv_c_bigendian=unknown
20189  fi
20190fi
20191else
20192  echo "$as_me: failed program was:" >&5
20193sed 's/^/| /' conftest.$ac_ext >&5
20194
20195fi
20196rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20197else
20198  cat >conftest.$ac_ext <<_ACEOF
20199/* confdefs.h.  */
20200_ACEOF
20201cat confdefs.h >>conftest.$ac_ext
20202cat >>conftest.$ac_ext <<_ACEOF
20203/* end confdefs.h.  */
20204int
20205main ()
20206{
20207  /* Are we little or big endian?  From Harbison&Steele.  */
20208  union
20209  {
20210    long l;
20211    char c[sizeof (long)];
20212  } u;
20213  u.l = 1;
20214  exit (u.c[sizeof (long) - 1] == 1);
20215}
20216_ACEOF
20217rm -f conftest$ac_exeext
20218if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20219  (eval $ac_link) 2>&5
20220  ac_status=$?
20221  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20222  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20223  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20224  (eval $ac_try) 2>&5
20225  ac_status=$?
20226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20227  (exit $ac_status); }; }; then
20228  ac_cv_c_bigendian=no
20229else
20230  echo "$as_me: program exited with status $ac_status" >&5
20231echo "$as_me: failed program was:" >&5
20232sed 's/^/| /' conftest.$ac_ext >&5
20233
20234( exit $ac_status )
20235ac_cv_c_bigendian=yes
20236fi
20237rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20238fi
20239fi
20240rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20241fi
20242echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20243echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20244case $ac_cv_c_bigendian in
20245  yes)
20246
20247cat >>confdefs.h <<\_ACEOF
20248#define WORDS_BIGENDIAN 1
20249_ACEOF
20250 ;;
20251  no)
20252     ;;
20253  *)
20254    { { echo "$as_me:$LINENO: error: unknown endianness
20255presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20256echo "$as_me: error: unknown endianness
20257presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20258   { (exit 1); exit 1; }; } ;;
20259esac
20260
20261
20262echo "$as_me:$LINENO: checking for X" >&5
20263echo $ECHO_N "checking for X... $ECHO_C" >&6
20264
20265
20266# Check whether --with-x or --without-x was given.
20267if test "${with_x+set}" = set; then
20268  withval="$with_x"
20269
20270fi;
20271# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
20272if test "x$with_x" = xno; then
20273  # The user explicitly disabled X.
20274  have_x=disabled
20275else
20276  if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
20277    # Both variables are already set.
20278    have_x=yes
20279  else
20280    if test "${ac_cv_have_x+set}" = set; then
20281  echo $ECHO_N "(cached) $ECHO_C" >&6
20282else
20283  # One or both of the vars are not set, and there is no cached value.
20284ac_x_includes=no ac_x_libraries=no
20285rm -fr conftest.dir
20286if mkdir conftest.dir; then
20287  cd conftest.dir
20288  # Make sure to not put "make" in the Imakefile rules, since we grep it out.
20289  cat >Imakefile <<'_ACEOF'
20290acfindx:
20291	@echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
20292_ACEOF
20293  if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
20294    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20295    eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
20296    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
20297    for ac_extension in a so sl; do
20298      if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
20299	 test -f $ac_im_libdir/libX11.$ac_extension; then
20300	ac_im_usrlibdir=$ac_im_libdir; break
20301      fi
20302    done
20303    # Screen out bogus values from the imake configuration.  They are
20304    # bogus both because they are the default anyway, and because
20305    # using them would break gcc on systems where it needs fixed includes.
20306    case $ac_im_incroot in
20307	/usr/include) ;;
20308	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
20309    esac
20310    case $ac_im_usrlibdir in
20311	/usr/lib | /lib) ;;
20312	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
20313    esac
20314  fi
20315  cd ..
20316  rm -fr conftest.dir
20317fi
20318
20319# Standard set of common directories for X headers.
20320# Check X11 before X11Rn because it is often a symlink to the current release.
20321ac_x_header_dirs='
20322/usr/X11/include
20323/usr/X11R6/include
20324/usr/X11R5/include
20325/usr/X11R4/include
20326
20327/usr/include/X11
20328/usr/include/X11R6
20329/usr/include/X11R5
20330/usr/include/X11R4
20331
20332/usr/local/X11/include
20333/usr/local/X11R6/include
20334/usr/local/X11R5/include
20335/usr/local/X11R4/include
20336
20337/usr/local/include/X11
20338/usr/local/include/X11R6
20339/usr/local/include/X11R5
20340/usr/local/include/X11R4
20341
20342/usr/X386/include
20343/usr/x386/include
20344/usr/XFree86/include/X11
20345
20346/usr/include
20347/usr/local/include
20348/usr/unsupported/include
20349/usr/athena/include
20350/usr/local/x11r5/include
20351/usr/lpp/Xamples/include
20352
20353/usr/openwin/include
20354/usr/openwin/share/include'
20355
20356if test "$ac_x_includes" = no; then
20357  # Guess where to find include files, by looking for Xlib.h.
20358  # First, try using that file with no special directory specified.
20359  cat >conftest.$ac_ext <<_ACEOF
20360/* confdefs.h.  */
20361_ACEOF
20362cat confdefs.h >>conftest.$ac_ext
20363cat >>conftest.$ac_ext <<_ACEOF
20364/* end confdefs.h.  */
20365#include <X11/Xlib.h>
20366_ACEOF
20367if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20368  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20369  ac_status=$?
20370  grep -v '^ *+' conftest.er1 >conftest.err
20371  rm -f conftest.er1
20372  cat conftest.err >&5
20373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20374  (exit $ac_status); } >/dev/null; then
20375  if test -s conftest.err; then
20376    ac_cpp_err=$ac_c_preproc_warn_flag
20377    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20378  else
20379    ac_cpp_err=
20380  fi
20381else
20382  ac_cpp_err=yes
20383fi
20384if test -z "$ac_cpp_err"; then
20385  # We can compile using X headers with no special include directory.
20386ac_x_includes=
20387else
20388  echo "$as_me: failed program was:" >&5
20389sed 's/^/| /' conftest.$ac_ext >&5
20390
20391  for ac_dir in $ac_x_header_dirs; do
20392  if test -r "$ac_dir/X11/Xlib.h"; then
20393    ac_x_includes=$ac_dir
20394    break
20395  fi
20396done
20397fi
20398rm -f conftest.err conftest.$ac_ext
20399fi # $ac_x_includes = no
20400
20401if test "$ac_x_libraries" = no; then
20402  # Check for the libraries.
20403  # See if we find them without any special options.
20404  # Don't add to $LIBS permanently.
20405  ac_save_LIBS=$LIBS
20406  LIBS="-lX11 $LIBS"
20407  cat >conftest.$ac_ext <<_ACEOF
20408/* confdefs.h.  */
20409_ACEOF
20410cat confdefs.h >>conftest.$ac_ext
20411cat >>conftest.$ac_ext <<_ACEOF
20412/* end confdefs.h.  */
20413#include <X11/Xlib.h>
20414int
20415main ()
20416{
20417XrmInitialize ()
20418  ;
20419  return 0;
20420}
20421_ACEOF
20422rm -f conftest.$ac_objext conftest$ac_exeext
20423if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20424  (eval $ac_link) 2>conftest.er1
20425  ac_status=$?
20426  grep -v '^ *+' conftest.er1 >conftest.err
20427  rm -f conftest.er1
20428  cat conftest.err >&5
20429  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20430  (exit $ac_status); } &&
20431	 { ac_try='test -z "$ac_c_werror_flag"
20432			 || 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  LIBS=$ac_save_LIBS
20445# We can link X programs with no special library path.
20446ac_x_libraries=
20447else
20448  echo "$as_me: failed program was:" >&5
20449sed 's/^/| /' conftest.$ac_ext >&5
20450
20451LIBS=$ac_save_LIBS
20452for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
20453do
20454  # Don't even attempt the hair of trying to link an X program!
20455  for ac_extension in a so sl; do
20456    if test -r $ac_dir/libXt.$ac_extension; then
20457      ac_x_libraries=$ac_dir
20458      break 2
20459    fi
20460  done
20461done
20462fi
20463rm -f conftest.err conftest.$ac_objext \
20464      conftest$ac_exeext conftest.$ac_ext
20465fi # $ac_x_libraries = no
20466
20467if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
20468  # Didn't find X anywhere.  Cache the known absence of X.
20469  ac_cv_have_x="have_x=no"
20470else
20471  # Record where we found X for the cache.
20472  ac_cv_have_x="have_x=yes \
20473		ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
20474fi
20475fi
20476
20477  fi
20478  eval "$ac_cv_have_x"
20479fi # $with_x != no
20480
20481if test "$have_x" != yes; then
20482  echo "$as_me:$LINENO: result: $have_x" >&5
20483echo "${ECHO_T}$have_x" >&6
20484  no_x=yes
20485else
20486  # If each of the values was on the command line, it overrides each guess.
20487  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
20488  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
20489  # Update the cache value to reflect the command line values.
20490  ac_cv_have_x="have_x=yes \
20491		ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
20492  echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
20493echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
20494fi
20495
20496if test "$no_x" = yes; then
20497  # Not all programs may use this symbol, but it does not hurt to define it.
20498
20499cat >>confdefs.h <<\_ACEOF
20500#define X_DISPLAY_MISSING 1
20501_ACEOF
20502
20503  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
20504else
20505  if test -n "$x_includes"; then
20506    X_CFLAGS="$X_CFLAGS -I$x_includes"
20507  fi
20508
20509  # It would also be nice to do this for all -L options, not just this one.
20510  if test -n "$x_libraries"; then
20511    X_LIBS="$X_LIBS -L$x_libraries"
20512    # For Solaris; some versions of Sun CC require a space after -R and
20513    # others require no space.  Words are not sufficient . . . .
20514    case `(uname -sr) 2>/dev/null` in
20515    "SunOS 5"*)
20516      echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
20517echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
20518      ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
20519      cat >conftest.$ac_ext <<_ACEOF
20520/* confdefs.h.  */
20521_ACEOF
20522cat confdefs.h >>conftest.$ac_ext
20523cat >>conftest.$ac_ext <<_ACEOF
20524/* end confdefs.h.  */
20525
20526int
20527main ()
20528{
20529
20530  ;
20531  return 0;
20532}
20533_ACEOF
20534rm -f conftest.$ac_objext conftest$ac_exeext
20535if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20536  (eval $ac_link) 2>conftest.er1
20537  ac_status=$?
20538  grep -v '^ *+' conftest.er1 >conftest.err
20539  rm -f conftest.er1
20540  cat conftest.err >&5
20541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20542  (exit $ac_status); } &&
20543	 { ac_try='test -z "$ac_c_werror_flag"
20544			 || test ! -s conftest.err'
20545  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20546  (eval $ac_try) 2>&5
20547  ac_status=$?
20548  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20549  (exit $ac_status); }; } &&
20550	 { ac_try='test -s conftest$ac_exeext'
20551  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20552  (eval $ac_try) 2>&5
20553  ac_status=$?
20554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20555  (exit $ac_status); }; }; then
20556  ac_R_nospace=yes
20557else
20558  echo "$as_me: failed program was:" >&5
20559sed 's/^/| /' conftest.$ac_ext >&5
20560
20561ac_R_nospace=no
20562fi
20563rm -f conftest.err conftest.$ac_objext \
20564      conftest$ac_exeext conftest.$ac_ext
20565      if test $ac_R_nospace = yes; then
20566	echo "$as_me:$LINENO: result: no" >&5
20567echo "${ECHO_T}no" >&6
20568	X_LIBS="$X_LIBS -R$x_libraries"
20569      else
20570	LIBS="$ac_xsave_LIBS -R $x_libraries"
20571	cat >conftest.$ac_ext <<_ACEOF
20572/* confdefs.h.  */
20573_ACEOF
20574cat confdefs.h >>conftest.$ac_ext
20575cat >>conftest.$ac_ext <<_ACEOF
20576/* end confdefs.h.  */
20577
20578int
20579main ()
20580{
20581
20582  ;
20583  return 0;
20584}
20585_ACEOF
20586rm -f conftest.$ac_objext conftest$ac_exeext
20587if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20588  (eval $ac_link) 2>conftest.er1
20589  ac_status=$?
20590  grep -v '^ *+' conftest.er1 >conftest.err
20591  rm -f conftest.er1
20592  cat conftest.err >&5
20593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20594  (exit $ac_status); } &&
20595	 { ac_try='test -z "$ac_c_werror_flag"
20596			 || test ! -s conftest.err'
20597  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20598  (eval $ac_try) 2>&5
20599  ac_status=$?
20600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20601  (exit $ac_status); }; } &&
20602	 { ac_try='test -s conftest$ac_exeext'
20603  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20604  (eval $ac_try) 2>&5
20605  ac_status=$?
20606  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20607  (exit $ac_status); }; }; then
20608  ac_R_space=yes
20609else
20610  echo "$as_me: failed program was:" >&5
20611sed 's/^/| /' conftest.$ac_ext >&5
20612
20613ac_R_space=no
20614fi
20615rm -f conftest.err conftest.$ac_objext \
20616      conftest$ac_exeext conftest.$ac_ext
20617	if test $ac_R_space = yes; then
20618	  echo "$as_me:$LINENO: result: yes" >&5
20619echo "${ECHO_T}yes" >&6
20620	  X_LIBS="$X_LIBS -R $x_libraries"
20621	else
20622	  echo "$as_me:$LINENO: result: neither works" >&5
20623echo "${ECHO_T}neither works" >&6
20624	fi
20625      fi
20626      LIBS=$ac_xsave_LIBS
20627    esac
20628  fi
20629
20630  # Check for system-dependent libraries X programs must link with.
20631  # Do this before checking for the system-independent R6 libraries
20632  # (-lICE), since we may need -lsocket or whatever for X linking.
20633
20634  if test "$ISC" = yes; then
20635    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
20636  else
20637    # Martyn Johnson says this is needed for Ultrix, if the X
20638    # libraries were built with DECnet support.  And Karl Berry says
20639    # the Alpha needs dnet_stub (dnet does not exist).
20640    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
20641    cat >conftest.$ac_ext <<_ACEOF
20642/* confdefs.h.  */
20643_ACEOF
20644cat confdefs.h >>conftest.$ac_ext
20645cat >>conftest.$ac_ext <<_ACEOF
20646/* end confdefs.h.  */
20647
20648/* Override any gcc2 internal prototype to avoid an error.  */
20649#ifdef __cplusplus
20650extern "C"
20651#endif
20652/* We use char because int might match the return type of a gcc2
20653   builtin and then its argument prototype would still apply.  */
20654char XOpenDisplay ();
20655int
20656main ()
20657{
20658XOpenDisplay ();
20659  ;
20660  return 0;
20661}
20662_ACEOF
20663rm -f conftest.$ac_objext conftest$ac_exeext
20664if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20665  (eval $ac_link) 2>conftest.er1
20666  ac_status=$?
20667  grep -v '^ *+' conftest.er1 >conftest.err
20668  rm -f conftest.er1
20669  cat conftest.err >&5
20670  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20671  (exit $ac_status); } &&
20672	 { ac_try='test -z "$ac_c_werror_flag"
20673			 || test ! -s conftest.err'
20674  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20675  (eval $ac_try) 2>&5
20676  ac_status=$?
20677  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20678  (exit $ac_status); }; } &&
20679	 { ac_try='test -s conftest$ac_exeext'
20680  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20681  (eval $ac_try) 2>&5
20682  ac_status=$?
20683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20684  (exit $ac_status); }; }; then
20685  :
20686else
20687  echo "$as_me: failed program was:" >&5
20688sed 's/^/| /' conftest.$ac_ext >&5
20689
20690echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
20691echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
20692if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
20693  echo $ECHO_N "(cached) $ECHO_C" >&6
20694else
20695  ac_check_lib_save_LIBS=$LIBS
20696LIBS="-ldnet  $LIBS"
20697cat >conftest.$ac_ext <<_ACEOF
20698/* confdefs.h.  */
20699_ACEOF
20700cat confdefs.h >>conftest.$ac_ext
20701cat >>conftest.$ac_ext <<_ACEOF
20702/* end confdefs.h.  */
20703
20704/* Override any gcc2 internal prototype to avoid an error.  */
20705#ifdef __cplusplus
20706extern "C"
20707#endif
20708/* We use char because int might match the return type of a gcc2
20709   builtin and then its argument prototype would still apply.  */
20710char dnet_ntoa ();
20711int
20712main ()
20713{
20714dnet_ntoa ();
20715  ;
20716  return 0;
20717}
20718_ACEOF
20719rm -f conftest.$ac_objext conftest$ac_exeext
20720if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20721  (eval $ac_link) 2>conftest.er1
20722  ac_status=$?
20723  grep -v '^ *+' conftest.er1 >conftest.err
20724  rm -f conftest.er1
20725  cat conftest.err >&5
20726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20727  (exit $ac_status); } &&
20728	 { ac_try='test -z "$ac_c_werror_flag"
20729			 || test ! -s conftest.err'
20730  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20731  (eval $ac_try) 2>&5
20732  ac_status=$?
20733  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20734  (exit $ac_status); }; } &&
20735	 { ac_try='test -s conftest$ac_exeext'
20736  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20737  (eval $ac_try) 2>&5
20738  ac_status=$?
20739  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20740  (exit $ac_status); }; }; then
20741  ac_cv_lib_dnet_dnet_ntoa=yes
20742else
20743  echo "$as_me: failed program was:" >&5
20744sed 's/^/| /' conftest.$ac_ext >&5
20745
20746ac_cv_lib_dnet_dnet_ntoa=no
20747fi
20748rm -f conftest.err conftest.$ac_objext \
20749      conftest$ac_exeext conftest.$ac_ext
20750LIBS=$ac_check_lib_save_LIBS
20751fi
20752echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
20753echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
20754if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
20755  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
20756fi
20757
20758    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
20759      echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
20760echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
20761if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
20762  echo $ECHO_N "(cached) $ECHO_C" >&6
20763else
20764  ac_check_lib_save_LIBS=$LIBS
20765LIBS="-ldnet_stub  $LIBS"
20766cat >conftest.$ac_ext <<_ACEOF
20767/* confdefs.h.  */
20768_ACEOF
20769cat confdefs.h >>conftest.$ac_ext
20770cat >>conftest.$ac_ext <<_ACEOF
20771/* end confdefs.h.  */
20772
20773/* Override any gcc2 internal prototype to avoid an error.  */
20774#ifdef __cplusplus
20775extern "C"
20776#endif
20777/* We use char because int might match the return type of a gcc2
20778   builtin and then its argument prototype would still apply.  */
20779char dnet_ntoa ();
20780int
20781main ()
20782{
20783dnet_ntoa ();
20784  ;
20785  return 0;
20786}
20787_ACEOF
20788rm -f conftest.$ac_objext conftest$ac_exeext
20789if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20790  (eval $ac_link) 2>conftest.er1
20791  ac_status=$?
20792  grep -v '^ *+' conftest.er1 >conftest.err
20793  rm -f conftest.er1
20794  cat conftest.err >&5
20795  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20796  (exit $ac_status); } &&
20797	 { ac_try='test -z "$ac_c_werror_flag"
20798			 || test ! -s conftest.err'
20799  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20800  (eval $ac_try) 2>&5
20801  ac_status=$?
20802  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20803  (exit $ac_status); }; } &&
20804	 { ac_try='test -s conftest$ac_exeext'
20805  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20806  (eval $ac_try) 2>&5
20807  ac_status=$?
20808  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20809  (exit $ac_status); }; }; then
20810  ac_cv_lib_dnet_stub_dnet_ntoa=yes
20811else
20812  echo "$as_me: failed program was:" >&5
20813sed 's/^/| /' conftest.$ac_ext >&5
20814
20815ac_cv_lib_dnet_stub_dnet_ntoa=no
20816fi
20817rm -f conftest.err conftest.$ac_objext \
20818      conftest$ac_exeext conftest.$ac_ext
20819LIBS=$ac_check_lib_save_LIBS
20820fi
20821echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
20822echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
20823if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
20824  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
20825fi
20826
20827    fi
20828fi
20829rm -f conftest.err conftest.$ac_objext \
20830      conftest$ac_exeext conftest.$ac_ext
20831    LIBS="$ac_xsave_LIBS"
20832
20833    # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
20834    # to get the SysV transport functions.
20835    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
20836    # needs -lnsl.
20837    # The nsl library prevents programs from opening the X display
20838    # on Irix 5.2, according to T.E. Dickey.
20839    # The functions gethostbyname, getservbyname, and inet_addr are
20840    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
20841    echo "$as_me:$LINENO: checking for gethostbyname" >&5
20842echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
20843if test "${ac_cv_func_gethostbyname+set}" = set; then
20844  echo $ECHO_N "(cached) $ECHO_C" >&6
20845else
20846  cat >conftest.$ac_ext <<_ACEOF
20847/* confdefs.h.  */
20848_ACEOF
20849cat confdefs.h >>conftest.$ac_ext
20850cat >>conftest.$ac_ext <<_ACEOF
20851/* end confdefs.h.  */
20852/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
20853   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20854#define gethostbyname innocuous_gethostbyname
20855
20856/* System header to define __stub macros and hopefully few prototypes,
20857    which can conflict with char gethostbyname (); below.
20858    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20859    <limits.h> exists even on freestanding compilers.  */
20860
20861#ifdef __STDC__
20862# include <limits.h>
20863#else
20864# include <assert.h>
20865#endif
20866
20867#undef gethostbyname
20868
20869/* Override any gcc2 internal prototype to avoid an error.  */
20870#ifdef __cplusplus
20871extern "C"
20872{
20873#endif
20874/* We use char because int might match the return type of a gcc2
20875   builtin and then its argument prototype would still apply.  */
20876char gethostbyname ();
20877/* The GNU C library defines this for functions which it implements
20878    to always fail with ENOSYS.  Some functions are actually named
20879    something starting with __ and the normal name is an alias.  */
20880#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
20881choke me
20882#else
20883char (*f) () = gethostbyname;
20884#endif
20885#ifdef __cplusplus
20886}
20887#endif
20888
20889int
20890main ()
20891{
20892return f != gethostbyname;
20893  ;
20894  return 0;
20895}
20896_ACEOF
20897rm -f conftest.$ac_objext conftest$ac_exeext
20898if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20899  (eval $ac_link) 2>conftest.er1
20900  ac_status=$?
20901  grep -v '^ *+' conftest.er1 >conftest.err
20902  rm -f conftest.er1
20903  cat conftest.err >&5
20904  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20905  (exit $ac_status); } &&
20906	 { ac_try='test -z "$ac_c_werror_flag"
20907			 || test ! -s conftest.err'
20908  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20909  (eval $ac_try) 2>&5
20910  ac_status=$?
20911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20912  (exit $ac_status); }; } &&
20913	 { ac_try='test -s conftest$ac_exeext'
20914  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20915  (eval $ac_try) 2>&5
20916  ac_status=$?
20917  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20918  (exit $ac_status); }; }; then
20919  ac_cv_func_gethostbyname=yes
20920else
20921  echo "$as_me: failed program was:" >&5
20922sed 's/^/| /' conftest.$ac_ext >&5
20923
20924ac_cv_func_gethostbyname=no
20925fi
20926rm -f conftest.err conftest.$ac_objext \
20927      conftest$ac_exeext conftest.$ac_ext
20928fi
20929echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
20930echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
20931
20932    if test $ac_cv_func_gethostbyname = no; then
20933      echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
20934echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
20935if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
20936  echo $ECHO_N "(cached) $ECHO_C" >&6
20937else
20938  ac_check_lib_save_LIBS=$LIBS
20939LIBS="-lnsl  $LIBS"
20940cat >conftest.$ac_ext <<_ACEOF
20941/* confdefs.h.  */
20942_ACEOF
20943cat confdefs.h >>conftest.$ac_ext
20944cat >>conftest.$ac_ext <<_ACEOF
20945/* end confdefs.h.  */
20946
20947/* Override any gcc2 internal prototype to avoid an error.  */
20948#ifdef __cplusplus
20949extern "C"
20950#endif
20951/* We use char because int might match the return type of a gcc2
20952   builtin and then its argument prototype would still apply.  */
20953char gethostbyname ();
20954int
20955main ()
20956{
20957gethostbyname ();
20958  ;
20959  return 0;
20960}
20961_ACEOF
20962rm -f conftest.$ac_objext conftest$ac_exeext
20963if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20964  (eval $ac_link) 2>conftest.er1
20965  ac_status=$?
20966  grep -v '^ *+' conftest.er1 >conftest.err
20967  rm -f conftest.er1
20968  cat conftest.err >&5
20969  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20970  (exit $ac_status); } &&
20971	 { ac_try='test -z "$ac_c_werror_flag"
20972			 || test ! -s conftest.err'
20973  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20974  (eval $ac_try) 2>&5
20975  ac_status=$?
20976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20977  (exit $ac_status); }; } &&
20978	 { ac_try='test -s conftest$ac_exeext'
20979  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20980  (eval $ac_try) 2>&5
20981  ac_status=$?
20982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20983  (exit $ac_status); }; }; then
20984  ac_cv_lib_nsl_gethostbyname=yes
20985else
20986  echo "$as_me: failed program was:" >&5
20987sed 's/^/| /' conftest.$ac_ext >&5
20988
20989ac_cv_lib_nsl_gethostbyname=no
20990fi
20991rm -f conftest.err conftest.$ac_objext \
20992      conftest$ac_exeext conftest.$ac_ext
20993LIBS=$ac_check_lib_save_LIBS
20994fi
20995echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
20996echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
20997if test $ac_cv_lib_nsl_gethostbyname = yes; then
20998  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
20999fi
21000
21001      if test $ac_cv_lib_nsl_gethostbyname = no; then
21002	echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
21003echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
21004if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
21005  echo $ECHO_N "(cached) $ECHO_C" >&6
21006else
21007  ac_check_lib_save_LIBS=$LIBS
21008LIBS="-lbsd  $LIBS"
21009cat >conftest.$ac_ext <<_ACEOF
21010/* confdefs.h.  */
21011_ACEOF
21012cat confdefs.h >>conftest.$ac_ext
21013cat >>conftest.$ac_ext <<_ACEOF
21014/* end confdefs.h.  */
21015
21016/* Override any gcc2 internal prototype to avoid an error.  */
21017#ifdef __cplusplus
21018extern "C"
21019#endif
21020/* We use char because int might match the return type of a gcc2
21021   builtin and then its argument prototype would still apply.  */
21022char gethostbyname ();
21023int
21024main ()
21025{
21026gethostbyname ();
21027  ;
21028  return 0;
21029}
21030_ACEOF
21031rm -f conftest.$ac_objext conftest$ac_exeext
21032if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21033  (eval $ac_link) 2>conftest.er1
21034  ac_status=$?
21035  grep -v '^ *+' conftest.er1 >conftest.err
21036  rm -f conftest.er1
21037  cat conftest.err >&5
21038  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21039  (exit $ac_status); } &&
21040	 { ac_try='test -z "$ac_c_werror_flag"
21041			 || test ! -s conftest.err'
21042  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21043  (eval $ac_try) 2>&5
21044  ac_status=$?
21045  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21046  (exit $ac_status); }; } &&
21047	 { ac_try='test -s conftest$ac_exeext'
21048  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21049  (eval $ac_try) 2>&5
21050  ac_status=$?
21051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21052  (exit $ac_status); }; }; then
21053  ac_cv_lib_bsd_gethostbyname=yes
21054else
21055  echo "$as_me: failed program was:" >&5
21056sed 's/^/| /' conftest.$ac_ext >&5
21057
21058ac_cv_lib_bsd_gethostbyname=no
21059fi
21060rm -f conftest.err conftest.$ac_objext \
21061      conftest$ac_exeext conftest.$ac_ext
21062LIBS=$ac_check_lib_save_LIBS
21063fi
21064echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
21065echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
21066if test $ac_cv_lib_bsd_gethostbyname = yes; then
21067  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
21068fi
21069
21070      fi
21071    fi
21072
21073    # lieder@skyler.mavd.honeywell.com says without -lsocket,
21074    # socket/setsockopt and other routines are undefined under SCO ODT
21075    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
21076    # on later versions), says Simon Leinen: it contains gethostby*
21077    # variants that don't use the name server (or something).  -lsocket
21078    # must be given before -lnsl if both are needed.  We assume that
21079    # if connect needs -lnsl, so does gethostbyname.
21080    echo "$as_me:$LINENO: checking for connect" >&5
21081echo $ECHO_N "checking for connect... $ECHO_C" >&6
21082if test "${ac_cv_func_connect+set}" = set; then
21083  echo $ECHO_N "(cached) $ECHO_C" >&6
21084else
21085  cat >conftest.$ac_ext <<_ACEOF
21086/* confdefs.h.  */
21087_ACEOF
21088cat confdefs.h >>conftest.$ac_ext
21089cat >>conftest.$ac_ext <<_ACEOF
21090/* end confdefs.h.  */
21091/* Define connect to an innocuous variant, in case <limits.h> declares connect.
21092   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21093#define connect innocuous_connect
21094
21095/* System header to define __stub macros and hopefully few prototypes,
21096    which can conflict with char connect (); below.
21097    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21098    <limits.h> exists even on freestanding compilers.  */
21099
21100#ifdef __STDC__
21101# include <limits.h>
21102#else
21103# include <assert.h>
21104#endif
21105
21106#undef connect
21107
21108/* Override any gcc2 internal prototype to avoid an error.  */
21109#ifdef __cplusplus
21110extern "C"
21111{
21112#endif
21113/* We use char because int might match the return type of a gcc2
21114   builtin and then its argument prototype would still apply.  */
21115char connect ();
21116/* The GNU C library defines this for functions which it implements
21117    to always fail with ENOSYS.  Some functions are actually named
21118    something starting with __ and the normal name is an alias.  */
21119#if defined (__stub_connect) || defined (__stub___connect)
21120choke me
21121#else
21122char (*f) () = connect;
21123#endif
21124#ifdef __cplusplus
21125}
21126#endif
21127
21128int
21129main ()
21130{
21131return f != connect;
21132  ;
21133  return 0;
21134}
21135_ACEOF
21136rm -f conftest.$ac_objext conftest$ac_exeext
21137if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21138  (eval $ac_link) 2>conftest.er1
21139  ac_status=$?
21140  grep -v '^ *+' conftest.er1 >conftest.err
21141  rm -f conftest.er1
21142  cat conftest.err >&5
21143  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21144  (exit $ac_status); } &&
21145	 { ac_try='test -z "$ac_c_werror_flag"
21146			 || test ! -s conftest.err'
21147  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21148  (eval $ac_try) 2>&5
21149  ac_status=$?
21150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21151  (exit $ac_status); }; } &&
21152	 { ac_try='test -s conftest$ac_exeext'
21153  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21154  (eval $ac_try) 2>&5
21155  ac_status=$?
21156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21157  (exit $ac_status); }; }; then
21158  ac_cv_func_connect=yes
21159else
21160  echo "$as_me: failed program was:" >&5
21161sed 's/^/| /' conftest.$ac_ext >&5
21162
21163ac_cv_func_connect=no
21164fi
21165rm -f conftest.err conftest.$ac_objext \
21166      conftest$ac_exeext conftest.$ac_ext
21167fi
21168echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
21169echo "${ECHO_T}$ac_cv_func_connect" >&6
21170
21171    if test $ac_cv_func_connect = no; then
21172      echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
21173echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
21174if test "${ac_cv_lib_socket_connect+set}" = set; then
21175  echo $ECHO_N "(cached) $ECHO_C" >&6
21176else
21177  ac_check_lib_save_LIBS=$LIBS
21178LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
21179cat >conftest.$ac_ext <<_ACEOF
21180/* confdefs.h.  */
21181_ACEOF
21182cat confdefs.h >>conftest.$ac_ext
21183cat >>conftest.$ac_ext <<_ACEOF
21184/* end confdefs.h.  */
21185
21186/* Override any gcc2 internal prototype to avoid an error.  */
21187#ifdef __cplusplus
21188extern "C"
21189#endif
21190/* We use char because int might match the return type of a gcc2
21191   builtin and then its argument prototype would still apply.  */
21192char connect ();
21193int
21194main ()
21195{
21196connect ();
21197  ;
21198  return 0;
21199}
21200_ACEOF
21201rm -f conftest.$ac_objext conftest$ac_exeext
21202if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21203  (eval $ac_link) 2>conftest.er1
21204  ac_status=$?
21205  grep -v '^ *+' conftest.er1 >conftest.err
21206  rm -f conftest.er1
21207  cat conftest.err >&5
21208  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21209  (exit $ac_status); } &&
21210	 { ac_try='test -z "$ac_c_werror_flag"
21211			 || test ! -s conftest.err'
21212  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21213  (eval $ac_try) 2>&5
21214  ac_status=$?
21215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21216  (exit $ac_status); }; } &&
21217	 { ac_try='test -s conftest$ac_exeext'
21218  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21219  (eval $ac_try) 2>&5
21220  ac_status=$?
21221  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21222  (exit $ac_status); }; }; then
21223  ac_cv_lib_socket_connect=yes
21224else
21225  echo "$as_me: failed program was:" >&5
21226sed 's/^/| /' conftest.$ac_ext >&5
21227
21228ac_cv_lib_socket_connect=no
21229fi
21230rm -f conftest.err conftest.$ac_objext \
21231      conftest$ac_exeext conftest.$ac_ext
21232LIBS=$ac_check_lib_save_LIBS
21233fi
21234echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
21235echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
21236if test $ac_cv_lib_socket_connect = yes; then
21237  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
21238fi
21239
21240    fi
21241
21242    # Guillermo Gomez says -lposix is necessary on A/UX.
21243    echo "$as_me:$LINENO: checking for remove" >&5
21244echo $ECHO_N "checking for remove... $ECHO_C" >&6
21245if test "${ac_cv_func_remove+set}" = set; then
21246  echo $ECHO_N "(cached) $ECHO_C" >&6
21247else
21248  cat >conftest.$ac_ext <<_ACEOF
21249/* confdefs.h.  */
21250_ACEOF
21251cat confdefs.h >>conftest.$ac_ext
21252cat >>conftest.$ac_ext <<_ACEOF
21253/* end confdefs.h.  */
21254/* Define remove to an innocuous variant, in case <limits.h> declares remove.
21255   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21256#define remove innocuous_remove
21257
21258/* System header to define __stub macros and hopefully few prototypes,
21259    which can conflict with char remove (); below.
21260    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21261    <limits.h> exists even on freestanding compilers.  */
21262
21263#ifdef __STDC__
21264# include <limits.h>
21265#else
21266# include <assert.h>
21267#endif
21268
21269#undef remove
21270
21271/* Override any gcc2 internal prototype to avoid an error.  */
21272#ifdef __cplusplus
21273extern "C"
21274{
21275#endif
21276/* We use char because int might match the return type of a gcc2
21277   builtin and then its argument prototype would still apply.  */
21278char remove ();
21279/* The GNU C library defines this for functions which it implements
21280    to always fail with ENOSYS.  Some functions are actually named
21281    something starting with __ and the normal name is an alias.  */
21282#if defined (__stub_remove) || defined (__stub___remove)
21283choke me
21284#else
21285char (*f) () = remove;
21286#endif
21287#ifdef __cplusplus
21288}
21289#endif
21290
21291int
21292main ()
21293{
21294return f != remove;
21295  ;
21296  return 0;
21297}
21298_ACEOF
21299rm -f conftest.$ac_objext conftest$ac_exeext
21300if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21301  (eval $ac_link) 2>conftest.er1
21302  ac_status=$?
21303  grep -v '^ *+' conftest.er1 >conftest.err
21304  rm -f conftest.er1
21305  cat conftest.err >&5
21306  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21307  (exit $ac_status); } &&
21308	 { ac_try='test -z "$ac_c_werror_flag"
21309			 || test ! -s conftest.err'
21310  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21311  (eval $ac_try) 2>&5
21312  ac_status=$?
21313  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21314  (exit $ac_status); }; } &&
21315	 { ac_try='test -s conftest$ac_exeext'
21316  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21317  (eval $ac_try) 2>&5
21318  ac_status=$?
21319  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21320  (exit $ac_status); }; }; then
21321  ac_cv_func_remove=yes
21322else
21323  echo "$as_me: failed program was:" >&5
21324sed 's/^/| /' conftest.$ac_ext >&5
21325
21326ac_cv_func_remove=no
21327fi
21328rm -f conftest.err conftest.$ac_objext \
21329      conftest$ac_exeext conftest.$ac_ext
21330fi
21331echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
21332echo "${ECHO_T}$ac_cv_func_remove" >&6
21333
21334    if test $ac_cv_func_remove = no; then
21335      echo "$as_me:$LINENO: checking for remove in -lposix" >&5
21336echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
21337if test "${ac_cv_lib_posix_remove+set}" = set; then
21338  echo $ECHO_N "(cached) $ECHO_C" >&6
21339else
21340  ac_check_lib_save_LIBS=$LIBS
21341LIBS="-lposix  $LIBS"
21342cat >conftest.$ac_ext <<_ACEOF
21343/* confdefs.h.  */
21344_ACEOF
21345cat confdefs.h >>conftest.$ac_ext
21346cat >>conftest.$ac_ext <<_ACEOF
21347/* end confdefs.h.  */
21348
21349/* Override any gcc2 internal prototype to avoid an error.  */
21350#ifdef __cplusplus
21351extern "C"
21352#endif
21353/* We use char because int might match the return type of a gcc2
21354   builtin and then its argument prototype would still apply.  */
21355char remove ();
21356int
21357main ()
21358{
21359remove ();
21360  ;
21361  return 0;
21362}
21363_ACEOF
21364rm -f conftest.$ac_objext conftest$ac_exeext
21365if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21366  (eval $ac_link) 2>conftest.er1
21367  ac_status=$?
21368  grep -v '^ *+' conftest.er1 >conftest.err
21369  rm -f conftest.er1
21370  cat conftest.err >&5
21371  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21372  (exit $ac_status); } &&
21373	 { ac_try='test -z "$ac_c_werror_flag"
21374			 || test ! -s conftest.err'
21375  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21376  (eval $ac_try) 2>&5
21377  ac_status=$?
21378  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21379  (exit $ac_status); }; } &&
21380	 { ac_try='test -s conftest$ac_exeext'
21381  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21382  (eval $ac_try) 2>&5
21383  ac_status=$?
21384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21385  (exit $ac_status); }; }; then
21386  ac_cv_lib_posix_remove=yes
21387else
21388  echo "$as_me: failed program was:" >&5
21389sed 's/^/| /' conftest.$ac_ext >&5
21390
21391ac_cv_lib_posix_remove=no
21392fi
21393rm -f conftest.err conftest.$ac_objext \
21394      conftest$ac_exeext conftest.$ac_ext
21395LIBS=$ac_check_lib_save_LIBS
21396fi
21397echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
21398echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
21399if test $ac_cv_lib_posix_remove = yes; then
21400  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
21401fi
21402
21403    fi
21404
21405    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
21406    echo "$as_me:$LINENO: checking for shmat" >&5
21407echo $ECHO_N "checking for shmat... $ECHO_C" >&6
21408if test "${ac_cv_func_shmat+set}" = set; then
21409  echo $ECHO_N "(cached) $ECHO_C" >&6
21410else
21411  cat >conftest.$ac_ext <<_ACEOF
21412/* confdefs.h.  */
21413_ACEOF
21414cat confdefs.h >>conftest.$ac_ext
21415cat >>conftest.$ac_ext <<_ACEOF
21416/* end confdefs.h.  */
21417/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
21418   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21419#define shmat innocuous_shmat
21420
21421/* System header to define __stub macros and hopefully few prototypes,
21422    which can conflict with char shmat (); below.
21423    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21424    <limits.h> exists even on freestanding compilers.  */
21425
21426#ifdef __STDC__
21427# include <limits.h>
21428#else
21429# include <assert.h>
21430#endif
21431
21432#undef shmat
21433
21434/* Override any gcc2 internal prototype to avoid an error.  */
21435#ifdef __cplusplus
21436extern "C"
21437{
21438#endif
21439/* We use char because int might match the return type of a gcc2
21440   builtin and then its argument prototype would still apply.  */
21441char shmat ();
21442/* The GNU C library defines this for functions which it implements
21443    to always fail with ENOSYS.  Some functions are actually named
21444    something starting with __ and the normal name is an alias.  */
21445#if defined (__stub_shmat) || defined (__stub___shmat)
21446choke me
21447#else
21448char (*f) () = shmat;
21449#endif
21450#ifdef __cplusplus
21451}
21452#endif
21453
21454int
21455main ()
21456{
21457return f != shmat;
21458  ;
21459  return 0;
21460}
21461_ACEOF
21462rm -f conftest.$ac_objext conftest$ac_exeext
21463if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21464  (eval $ac_link) 2>conftest.er1
21465  ac_status=$?
21466  grep -v '^ *+' conftest.er1 >conftest.err
21467  rm -f conftest.er1
21468  cat conftest.err >&5
21469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21470  (exit $ac_status); } &&
21471	 { ac_try='test -z "$ac_c_werror_flag"
21472			 || test ! -s conftest.err'
21473  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21474  (eval $ac_try) 2>&5
21475  ac_status=$?
21476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21477  (exit $ac_status); }; } &&
21478	 { ac_try='test -s conftest$ac_exeext'
21479  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21480  (eval $ac_try) 2>&5
21481  ac_status=$?
21482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21483  (exit $ac_status); }; }; then
21484  ac_cv_func_shmat=yes
21485else
21486  echo "$as_me: failed program was:" >&5
21487sed 's/^/| /' conftest.$ac_ext >&5
21488
21489ac_cv_func_shmat=no
21490fi
21491rm -f conftest.err conftest.$ac_objext \
21492      conftest$ac_exeext conftest.$ac_ext
21493fi
21494echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
21495echo "${ECHO_T}$ac_cv_func_shmat" >&6
21496
21497    if test $ac_cv_func_shmat = no; then
21498      echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
21499echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
21500if test "${ac_cv_lib_ipc_shmat+set}" = set; then
21501  echo $ECHO_N "(cached) $ECHO_C" >&6
21502else
21503  ac_check_lib_save_LIBS=$LIBS
21504LIBS="-lipc  $LIBS"
21505cat >conftest.$ac_ext <<_ACEOF
21506/* confdefs.h.  */
21507_ACEOF
21508cat confdefs.h >>conftest.$ac_ext
21509cat >>conftest.$ac_ext <<_ACEOF
21510/* end confdefs.h.  */
21511
21512/* Override any gcc2 internal prototype to avoid an error.  */
21513#ifdef __cplusplus
21514extern "C"
21515#endif
21516/* We use char because int might match the return type of a gcc2
21517   builtin and then its argument prototype would still apply.  */
21518char shmat ();
21519int
21520main ()
21521{
21522shmat ();
21523  ;
21524  return 0;
21525}
21526_ACEOF
21527rm -f conftest.$ac_objext conftest$ac_exeext
21528if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21529  (eval $ac_link) 2>conftest.er1
21530  ac_status=$?
21531  grep -v '^ *+' conftest.er1 >conftest.err
21532  rm -f conftest.er1
21533  cat conftest.err >&5
21534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21535  (exit $ac_status); } &&
21536	 { ac_try='test -z "$ac_c_werror_flag"
21537			 || test ! -s conftest.err'
21538  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21539  (eval $ac_try) 2>&5
21540  ac_status=$?
21541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21542  (exit $ac_status); }; } &&
21543	 { ac_try='test -s conftest$ac_exeext'
21544  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21545  (eval $ac_try) 2>&5
21546  ac_status=$?
21547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21548  (exit $ac_status); }; }; then
21549  ac_cv_lib_ipc_shmat=yes
21550else
21551  echo "$as_me: failed program was:" >&5
21552sed 's/^/| /' conftest.$ac_ext >&5
21553
21554ac_cv_lib_ipc_shmat=no
21555fi
21556rm -f conftest.err conftest.$ac_objext \
21557      conftest$ac_exeext conftest.$ac_ext
21558LIBS=$ac_check_lib_save_LIBS
21559fi
21560echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
21561echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
21562if test $ac_cv_lib_ipc_shmat = yes; then
21563  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
21564fi
21565
21566    fi
21567  fi
21568
21569  # Check for libraries that X11R6 Xt/Xaw programs need.
21570  ac_save_LDFLAGS=$LDFLAGS
21571  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
21572  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
21573  # check for ICE first), but we must link in the order -lSM -lICE or
21574  # we get undefined symbols.  So assume we have SM if we have ICE.
21575  # These have to be linked with before -lX11, unlike the other
21576  # libraries we check for below, so use a different variable.
21577  # John Interrante, Karl Berry
21578  echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
21579echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
21580if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
21581  echo $ECHO_N "(cached) $ECHO_C" >&6
21582else
21583  ac_check_lib_save_LIBS=$LIBS
21584LIBS="-lICE $X_EXTRA_LIBS $LIBS"
21585cat >conftest.$ac_ext <<_ACEOF
21586/* confdefs.h.  */
21587_ACEOF
21588cat confdefs.h >>conftest.$ac_ext
21589cat >>conftest.$ac_ext <<_ACEOF
21590/* end confdefs.h.  */
21591
21592/* Override any gcc2 internal prototype to avoid an error.  */
21593#ifdef __cplusplus
21594extern "C"
21595#endif
21596/* We use char because int might match the return type of a gcc2
21597   builtin and then its argument prototype would still apply.  */
21598char IceConnectionNumber ();
21599int
21600main ()
21601{
21602IceConnectionNumber ();
21603  ;
21604  return 0;
21605}
21606_ACEOF
21607rm -f conftest.$ac_objext conftest$ac_exeext
21608if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21609  (eval $ac_link) 2>conftest.er1
21610  ac_status=$?
21611  grep -v '^ *+' conftest.er1 >conftest.err
21612  rm -f conftest.er1
21613  cat conftest.err >&5
21614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21615  (exit $ac_status); } &&
21616	 { ac_try='test -z "$ac_c_werror_flag"
21617			 || test ! -s conftest.err'
21618  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21619  (eval $ac_try) 2>&5
21620  ac_status=$?
21621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21622  (exit $ac_status); }; } &&
21623	 { ac_try='test -s conftest$ac_exeext'
21624  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21625  (eval $ac_try) 2>&5
21626  ac_status=$?
21627  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21628  (exit $ac_status); }; }; then
21629  ac_cv_lib_ICE_IceConnectionNumber=yes
21630else
21631  echo "$as_me: failed program was:" >&5
21632sed 's/^/| /' conftest.$ac_ext >&5
21633
21634ac_cv_lib_ICE_IceConnectionNumber=no
21635fi
21636rm -f conftest.err conftest.$ac_objext \
21637      conftest$ac_exeext conftest.$ac_ext
21638LIBS=$ac_check_lib_save_LIBS
21639fi
21640echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
21641echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
21642if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
21643  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
21644fi
21645
21646  LDFLAGS=$ac_save_LDFLAGS
21647
21648fi
21649
21650
21651if test ! -z "$X_CFLAGS"; then
21652  if test -z "$CPPFLAGS"; then
21653    CPPFLAGS="$X_CFLAGS"
21654  else
21655    CPPFLAGS="$CPPFLAGS $X_CFLAGS"
21656  fi
21657fi
21658if test ! -z "$X_LIBS"; then
21659  if test -z "$LDFLAGS"; then
21660    LDFLAGS="$X_LIBS"
21661  else
21662    LDFLAGS="$LDFLAGS $X_LIBS"
21663  fi
21664fi
21665
21666echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
21667echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
21668if test "${ac_cv_header_sys_wait_h+set}" = set; then
21669  echo $ECHO_N "(cached) $ECHO_C" >&6
21670else
21671  cat >conftest.$ac_ext <<_ACEOF
21672/* confdefs.h.  */
21673_ACEOF
21674cat confdefs.h >>conftest.$ac_ext
21675cat >>conftest.$ac_ext <<_ACEOF
21676/* end confdefs.h.  */
21677#include <sys/types.h>
21678#include <sys/wait.h>
21679#ifndef WEXITSTATUS
21680# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
21681#endif
21682#ifndef WIFEXITED
21683# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
21684#endif
21685
21686int
21687main ()
21688{
21689  int s;
21690  wait (&s);
21691  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
21692  ;
21693  return 0;
21694}
21695_ACEOF
21696rm -f conftest.$ac_objext
21697if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21698  (eval $ac_compile) 2>conftest.er1
21699  ac_status=$?
21700  grep -v '^ *+' conftest.er1 >conftest.err
21701  rm -f conftest.er1
21702  cat conftest.err >&5
21703  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21704  (exit $ac_status); } &&
21705	 { ac_try='test -z "$ac_c_werror_flag"
21706			 || test ! -s conftest.err'
21707  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21708  (eval $ac_try) 2>&5
21709  ac_status=$?
21710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21711  (exit $ac_status); }; } &&
21712	 { ac_try='test -s conftest.$ac_objext'
21713  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21714  (eval $ac_try) 2>&5
21715  ac_status=$?
21716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21717  (exit $ac_status); }; }; then
21718  ac_cv_header_sys_wait_h=yes
21719else
21720  echo "$as_me: failed program was:" >&5
21721sed 's/^/| /' conftest.$ac_ext >&5
21722
21723ac_cv_header_sys_wait_h=no
21724fi
21725rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21726fi
21727echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
21728echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
21729if test $ac_cv_header_sys_wait_h = yes; then
21730
21731cat >>confdefs.h <<\_ACEOF
21732#define HAVE_SYS_WAIT_H 1
21733_ACEOF
21734
21735fi
21736
21737
21738
21739
21740
21741
21742
21743
21744
21745
21746
21747
21748
21749
21750
21751
21752
21753
21754
21755for ac_header in fcntl.h termios.h \
21756sys/ioctl.h sys/select.h sys/time.h \
21757sys/sockio.h sys/byteorder.h malloc.h \
21758utmpx.h unistd.h bsd/signal.h regex.h \
21759regexp.h stdarg.h X11/X.h X11/Xlib.h \
21760X11/Sunkeysym.h X11/Xlocale.h \
21761
21762do
21763as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21764if eval "test \"\${$as_ac_Header+set}\" = set"; then
21765  echo "$as_me:$LINENO: checking for $ac_header" >&5
21766echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21767if eval "test \"\${$as_ac_Header+set}\" = set"; then
21768  echo $ECHO_N "(cached) $ECHO_C" >&6
21769fi
21770echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21771echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21772else
21773  # Is the header compilable?
21774echo "$as_me:$LINENO: checking $ac_header usability" >&5
21775echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21776cat >conftest.$ac_ext <<_ACEOF
21777/* confdefs.h.  */
21778_ACEOF
21779cat confdefs.h >>conftest.$ac_ext
21780cat >>conftest.$ac_ext <<_ACEOF
21781/* end confdefs.h.  */
21782$ac_includes_default
21783#include <$ac_header>
21784_ACEOF
21785rm -f conftest.$ac_objext
21786if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21787  (eval $ac_compile) 2>conftest.er1
21788  ac_status=$?
21789  grep -v '^ *+' conftest.er1 >conftest.err
21790  rm -f conftest.er1
21791  cat conftest.err >&5
21792  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21793  (exit $ac_status); } &&
21794	 { ac_try='test -z "$ac_c_werror_flag"
21795			 || test ! -s conftest.err'
21796  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21797  (eval $ac_try) 2>&5
21798  ac_status=$?
21799  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21800  (exit $ac_status); }; } &&
21801	 { ac_try='test -s conftest.$ac_objext'
21802  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21803  (eval $ac_try) 2>&5
21804  ac_status=$?
21805  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21806  (exit $ac_status); }; }; then
21807  ac_header_compiler=yes
21808else
21809  echo "$as_me: failed program was:" >&5
21810sed 's/^/| /' conftest.$ac_ext >&5
21811
21812ac_header_compiler=no
21813fi
21814rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21815echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21816echo "${ECHO_T}$ac_header_compiler" >&6
21817
21818# Is the header present?
21819echo "$as_me:$LINENO: checking $ac_header presence" >&5
21820echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21821cat >conftest.$ac_ext <<_ACEOF
21822/* confdefs.h.  */
21823_ACEOF
21824cat confdefs.h >>conftest.$ac_ext
21825cat >>conftest.$ac_ext <<_ACEOF
21826/* end confdefs.h.  */
21827#include <$ac_header>
21828_ACEOF
21829if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21830  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21831  ac_status=$?
21832  grep -v '^ *+' conftest.er1 >conftest.err
21833  rm -f conftest.er1
21834  cat conftest.err >&5
21835  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21836  (exit $ac_status); } >/dev/null; then
21837  if test -s conftest.err; then
21838    ac_cpp_err=$ac_c_preproc_warn_flag
21839    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21840  else
21841    ac_cpp_err=
21842  fi
21843else
21844  ac_cpp_err=yes
21845fi
21846if test -z "$ac_cpp_err"; then
21847  ac_header_preproc=yes
21848else
21849  echo "$as_me: failed program was:" >&5
21850sed 's/^/| /' conftest.$ac_ext >&5
21851
21852  ac_header_preproc=no
21853fi
21854rm -f conftest.err conftest.$ac_ext
21855echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21856echo "${ECHO_T}$ac_header_preproc" >&6
21857
21858# So?  What about this header?
21859case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21860  yes:no: )
21861    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21862echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21863    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21864echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21865    ac_header_preproc=yes
21866    ;;
21867  no:yes:* )
21868    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21869echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21870    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21871echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21872    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21873echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21874    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21875echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21876    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21877echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21878    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21879echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21880    (
21881      cat <<\_ASBOX
21882## ------------------------------------------ ##
21883## Report this to the AC_PACKAGE_NAME lists.  ##
21884## ------------------------------------------ ##
21885_ASBOX
21886    ) |
21887      sed "s/^/$as_me: WARNING:     /" >&2
21888    ;;
21889esac
21890echo "$as_me:$LINENO: checking for $ac_header" >&5
21891echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21892if eval "test \"\${$as_ac_Header+set}\" = set"; then
21893  echo $ECHO_N "(cached) $ECHO_C" >&6
21894else
21895  eval "$as_ac_Header=\$ac_header_preproc"
21896fi
21897echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21898echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21899
21900fi
21901if test `eval echo '${'$as_ac_Header'}'` = yes; then
21902  cat >>confdefs.h <<_ACEOF
21903#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21904_ACEOF
21905
21906fi
21907
21908done
21909
21910echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21911echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
21912if test "${ac_cv_header_time+set}" = set; then
21913  echo $ECHO_N "(cached) $ECHO_C" >&6
21914else
21915  cat >conftest.$ac_ext <<_ACEOF
21916/* confdefs.h.  */
21917_ACEOF
21918cat confdefs.h >>conftest.$ac_ext
21919cat >>conftest.$ac_ext <<_ACEOF
21920/* end confdefs.h.  */
21921#include <sys/types.h>
21922#include <sys/time.h>
21923#include <time.h>
21924
21925int
21926main ()
21927{
21928if ((struct tm *) 0)
21929return 0;
21930  ;
21931  return 0;
21932}
21933_ACEOF
21934rm -f conftest.$ac_objext
21935if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21936  (eval $ac_compile) 2>conftest.er1
21937  ac_status=$?
21938  grep -v '^ *+' conftest.er1 >conftest.err
21939  rm -f conftest.er1
21940  cat conftest.err >&5
21941  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21942  (exit $ac_status); } &&
21943	 { ac_try='test -z "$ac_c_werror_flag"
21944			 || test ! -s conftest.err'
21945  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21946  (eval $ac_try) 2>&5
21947  ac_status=$?
21948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21949  (exit $ac_status); }; } &&
21950	 { ac_try='test -s conftest.$ac_objext'
21951  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21952  (eval $ac_try) 2>&5
21953  ac_status=$?
21954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21955  (exit $ac_status); }; }; then
21956  ac_cv_header_time=yes
21957else
21958  echo "$as_me: failed program was:" >&5
21959sed 's/^/| /' conftest.$ac_ext >&5
21960
21961ac_cv_header_time=no
21962fi
21963rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21964fi
21965echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21966echo "${ECHO_T}$ac_cv_header_time" >&6
21967if test $ac_cv_header_time = yes; then
21968
21969cat >>confdefs.h <<\_ACEOF
21970#define TIME_WITH_SYS_TIME 1
21971_ACEOF
21972
21973fi
21974
21975
21976echo "$as_me:$LINENO: checking for mode_t" >&5
21977echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
21978if test "${ac_cv_type_mode_t+set}" = set; then
21979  echo $ECHO_N "(cached) $ECHO_C" >&6
21980else
21981  cat >conftest.$ac_ext <<_ACEOF
21982/* confdefs.h.  */
21983_ACEOF
21984cat confdefs.h >>conftest.$ac_ext
21985cat >>conftest.$ac_ext <<_ACEOF
21986/* end confdefs.h.  */
21987$ac_includes_default
21988int
21989main ()
21990{
21991if ((mode_t *) 0)
21992  return 0;
21993if (sizeof (mode_t))
21994  return 0;
21995  ;
21996  return 0;
21997}
21998_ACEOF
21999rm -f conftest.$ac_objext
22000if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22001  (eval $ac_compile) 2>conftest.er1
22002  ac_status=$?
22003  grep -v '^ *+' conftest.er1 >conftest.err
22004  rm -f conftest.er1
22005  cat conftest.err >&5
22006  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22007  (exit $ac_status); } &&
22008	 { ac_try='test -z "$ac_c_werror_flag"
22009			 || test ! -s conftest.err'
22010  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22011  (eval $ac_try) 2>&5
22012  ac_status=$?
22013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22014  (exit $ac_status); }; } &&
22015	 { ac_try='test -s conftest.$ac_objext'
22016  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22017  (eval $ac_try) 2>&5
22018  ac_status=$?
22019  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22020  (exit $ac_status); }; }; then
22021  ac_cv_type_mode_t=yes
22022else
22023  echo "$as_me: failed program was:" >&5
22024sed 's/^/| /' conftest.$ac_ext >&5
22025
22026ac_cv_type_mode_t=no
22027fi
22028rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22029fi
22030echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
22031echo "${ECHO_T}$ac_cv_type_mode_t" >&6
22032if test $ac_cv_type_mode_t = yes; then
22033  :
22034else
22035
22036cat >>confdefs.h <<_ACEOF
22037#define mode_t int
22038_ACEOF
22039
22040fi
22041
22042echo "$as_me:$LINENO: checking for off_t" >&5
22043echo $ECHO_N "checking for off_t... $ECHO_C" >&6
22044if test "${ac_cv_type_off_t+set}" = set; then
22045  echo $ECHO_N "(cached) $ECHO_C" >&6
22046else
22047  cat >conftest.$ac_ext <<_ACEOF
22048/* confdefs.h.  */
22049_ACEOF
22050cat confdefs.h >>conftest.$ac_ext
22051cat >>conftest.$ac_ext <<_ACEOF
22052/* end confdefs.h.  */
22053$ac_includes_default
22054int
22055main ()
22056{
22057if ((off_t *) 0)
22058  return 0;
22059if (sizeof (off_t))
22060  return 0;
22061  ;
22062  return 0;
22063}
22064_ACEOF
22065rm -f conftest.$ac_objext
22066if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22067  (eval $ac_compile) 2>conftest.er1
22068  ac_status=$?
22069  grep -v '^ *+' conftest.er1 >conftest.err
22070  rm -f conftest.er1
22071  cat conftest.err >&5
22072  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22073  (exit $ac_status); } &&
22074	 { ac_try='test -z "$ac_c_werror_flag"
22075			 || test ! -s conftest.err'
22076  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22077  (eval $ac_try) 2>&5
22078  ac_status=$?
22079  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22080  (exit $ac_status); }; } &&
22081	 { ac_try='test -s conftest.$ac_objext'
22082  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22083  (eval $ac_try) 2>&5
22084  ac_status=$?
22085  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22086  (exit $ac_status); }; }; then
22087  ac_cv_type_off_t=yes
22088else
22089  echo "$as_me: failed program was:" >&5
22090sed 's/^/| /' conftest.$ac_ext >&5
22091
22092ac_cv_type_off_t=no
22093fi
22094rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22095fi
22096echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
22097echo "${ECHO_T}$ac_cv_type_off_t" >&6
22098if test $ac_cv_type_off_t = yes; then
22099  :
22100else
22101
22102cat >>confdefs.h <<_ACEOF
22103#define off_t long
22104_ACEOF
22105
22106fi
22107
22108echo "$as_me:$LINENO: checking for pid_t" >&5
22109echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
22110if test "${ac_cv_type_pid_t+set}" = set; then
22111  echo $ECHO_N "(cached) $ECHO_C" >&6
22112else
22113  cat >conftest.$ac_ext <<_ACEOF
22114/* confdefs.h.  */
22115_ACEOF
22116cat confdefs.h >>conftest.$ac_ext
22117cat >>conftest.$ac_ext <<_ACEOF
22118/* end confdefs.h.  */
22119$ac_includes_default
22120int
22121main ()
22122{
22123if ((pid_t *) 0)
22124  return 0;
22125if (sizeof (pid_t))
22126  return 0;
22127  ;
22128  return 0;
22129}
22130_ACEOF
22131rm -f conftest.$ac_objext
22132if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22133  (eval $ac_compile) 2>conftest.er1
22134  ac_status=$?
22135  grep -v '^ *+' conftest.er1 >conftest.err
22136  rm -f conftest.er1
22137  cat conftest.err >&5
22138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22139  (exit $ac_status); } &&
22140	 { ac_try='test -z "$ac_c_werror_flag"
22141			 || test ! -s conftest.err'
22142  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22143  (eval $ac_try) 2>&5
22144  ac_status=$?
22145  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22146  (exit $ac_status); }; } &&
22147	 { ac_try='test -s conftest.$ac_objext'
22148  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22149  (eval $ac_try) 2>&5
22150  ac_status=$?
22151  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22152  (exit $ac_status); }; }; then
22153  ac_cv_type_pid_t=yes
22154else
22155  echo "$as_me: failed program was:" >&5
22156sed 's/^/| /' conftest.$ac_ext >&5
22157
22158ac_cv_type_pid_t=no
22159fi
22160rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22161fi
22162echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22163echo "${ECHO_T}$ac_cv_type_pid_t" >&6
22164if test $ac_cv_type_pid_t = yes; then
22165  :
22166else
22167
22168cat >>confdefs.h <<_ACEOF
22169#define pid_t int
22170_ACEOF
22171
22172fi
22173
22174echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
22175echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
22176if test "${ac_cv_type_uid_t+set}" = set; then
22177  echo $ECHO_N "(cached) $ECHO_C" >&6
22178else
22179  cat >conftest.$ac_ext <<_ACEOF
22180/* confdefs.h.  */
22181_ACEOF
22182cat confdefs.h >>conftest.$ac_ext
22183cat >>conftest.$ac_ext <<_ACEOF
22184/* end confdefs.h.  */
22185#include <sys/types.h>
22186
22187_ACEOF
22188if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22189  $EGREP "uid_t" >/dev/null 2>&1; then
22190  ac_cv_type_uid_t=yes
22191else
22192  ac_cv_type_uid_t=no
22193fi
22194rm -f conftest*
22195
22196fi
22197echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
22198echo "${ECHO_T}$ac_cv_type_uid_t" >&6
22199if test $ac_cv_type_uid_t = no; then
22200
22201cat >>confdefs.h <<\_ACEOF
22202#define uid_t int
22203_ACEOF
22204
22205
22206cat >>confdefs.h <<\_ACEOF
22207#define gid_t int
22208_ACEOF
22209
22210fi
22211
22212
22213echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22214echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
22215if test "${ac_cv_type_signal+set}" = set; then
22216  echo $ECHO_N "(cached) $ECHO_C" >&6
22217else
22218  cat >conftest.$ac_ext <<_ACEOF
22219/* confdefs.h.  */
22220_ACEOF
22221cat confdefs.h >>conftest.$ac_ext
22222cat >>conftest.$ac_ext <<_ACEOF
22223/* end confdefs.h.  */
22224#include <sys/types.h>
22225#include <signal.h>
22226#ifdef signal
22227# undef signal
22228#endif
22229#ifdef __cplusplus
22230extern "C" void (*signal (int, void (*)(int)))(int);
22231#else
22232void (*signal ()) ();
22233#endif
22234
22235int
22236main ()
22237{
22238int i;
22239  ;
22240  return 0;
22241}
22242_ACEOF
22243rm -f conftest.$ac_objext
22244if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22245  (eval $ac_compile) 2>conftest.er1
22246  ac_status=$?
22247  grep -v '^ *+' conftest.er1 >conftest.err
22248  rm -f conftest.er1
22249  cat conftest.err >&5
22250  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22251  (exit $ac_status); } &&
22252	 { ac_try='test -z "$ac_c_werror_flag"
22253			 || test ! -s conftest.err'
22254  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22255  (eval $ac_try) 2>&5
22256  ac_status=$?
22257  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22258  (exit $ac_status); }; } &&
22259	 { ac_try='test -s conftest.$ac_objext'
22260  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22261  (eval $ac_try) 2>&5
22262  ac_status=$?
22263  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22264  (exit $ac_status); }; }; then
22265  ac_cv_type_signal=void
22266else
22267  echo "$as_me: failed program was:" >&5
22268sed 's/^/| /' conftest.$ac_ext >&5
22269
22270ac_cv_type_signal=int
22271fi
22272rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22273fi
22274echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22275echo "${ECHO_T}$ac_cv_type_signal" >&6
22276
22277cat >>confdefs.h <<_ACEOF
22278#define RETSIGTYPE $ac_cv_type_signal
22279_ACEOF
22280
22281
22282
22283
22284
22285
22286
22287
22288
22289
22290
22291
22292
22293
22294
22295
22296
22297
22298
22299
22300for ac_func in atexit _exit unsetenv setutent \
22301seteuid memmove putenv strsep setresuid setresgid \
22302memmem usleep snprintf strcasestr strcasechr \
22303strcasepbrk strrev nl_langinfo \
22304
22305do
22306as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22307echo "$as_me:$LINENO: checking for $ac_func" >&5
22308echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22309if eval "test \"\${$as_ac_var+set}\" = set"; then
22310  echo $ECHO_N "(cached) $ECHO_C" >&6
22311else
22312  cat >conftest.$ac_ext <<_ACEOF
22313/* confdefs.h.  */
22314_ACEOF
22315cat confdefs.h >>conftest.$ac_ext
22316cat >>conftest.$ac_ext <<_ACEOF
22317/* end confdefs.h.  */
22318/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22319   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22320#define $ac_func innocuous_$ac_func
22321
22322/* System header to define __stub macros and hopefully few prototypes,
22323    which can conflict with char $ac_func (); below.
22324    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22325    <limits.h> exists even on freestanding compilers.  */
22326
22327#ifdef __STDC__
22328# include <limits.h>
22329#else
22330# include <assert.h>
22331#endif
22332
22333#undef $ac_func
22334
22335/* Override any gcc2 internal prototype to avoid an error.  */
22336#ifdef __cplusplus
22337extern "C"
22338{
22339#endif
22340/* We use char because int might match the return type of a gcc2
22341   builtin and then its argument prototype would still apply.  */
22342char $ac_func ();
22343/* The GNU C library defines this for functions which it implements
22344    to always fail with ENOSYS.  Some functions are actually named
22345    something starting with __ and the normal name is an alias.  */
22346#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22347choke me
22348#else
22349char (*f) () = $ac_func;
22350#endif
22351#ifdef __cplusplus
22352}
22353#endif
22354
22355int
22356main ()
22357{
22358return f != $ac_func;
22359  ;
22360  return 0;
22361}
22362_ACEOF
22363rm -f conftest.$ac_objext conftest$ac_exeext
22364if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22365  (eval $ac_link) 2>conftest.er1
22366  ac_status=$?
22367  grep -v '^ *+' conftest.er1 >conftest.err
22368  rm -f conftest.er1
22369  cat conftest.err >&5
22370  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22371  (exit $ac_status); } &&
22372	 { ac_try='test -z "$ac_c_werror_flag"
22373			 || test ! -s conftest.err'
22374  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22375  (eval $ac_try) 2>&5
22376  ac_status=$?
22377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22378  (exit $ac_status); }; } &&
22379	 { ac_try='test -s conftest$ac_exeext'
22380  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22381  (eval $ac_try) 2>&5
22382  ac_status=$?
22383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22384  (exit $ac_status); }; }; then
22385  eval "$as_ac_var=yes"
22386else
22387  echo "$as_me: failed program was:" >&5
22388sed 's/^/| /' conftest.$ac_ext >&5
22389
22390eval "$as_ac_var=no"
22391fi
22392rm -f conftest.err conftest.$ac_objext \
22393      conftest$ac_exeext conftest.$ac_ext
22394fi
22395echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22396echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22397if test `eval echo '${'$as_ac_var'}'` = yes; then
22398  cat >>confdefs.h <<_ACEOF
22399#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22400_ACEOF
22401
22402fi
22403done
22404
22405
22406# NOTE:  The following line is NOT NOT NOT NOT NOT a typo!
22407# If you are having problems with it, libast.m4 is not installed
22408# or aclocal couldn't find it.  Hence the problem is on YOUR end.
22409
22410    echo "$as_me:$LINENO: checking whether snprintf ignores n" >&5
22411echo $ECHO_N "checking whether snprintf ignores n... $ECHO_C" >&6
22412    if test "${dps_cv_snprintf_bug+set}" = set; then
22413  echo $ECHO_N "(cached) $ECHO_C" >&6
22414else
22415
22416        if test "$cross_compiling" = yes; then
22417  dps_cv_snprintf_bug=2
22418else
22419  cat >conftest.$ac_ext <<_ACEOF
22420/* confdefs.h.  */
22421_ACEOF
22422cat confdefs.h >>conftest.$ac_ext
22423cat >>conftest.$ac_ext <<_ACEOF
22424/* end confdefs.h.  */
22425#include <stdio.h>
22426
22427#ifndef HAVE_SNPRINTF
22428#include "src/snprintf.c"
22429#endif /* HAVE_SNPRINTF */
22430
22431int main(void)
22432{
22433char ovbuf[7];
22434int i;
22435for (i=0; i<7; i++) ovbuf[i]='x';
22436snprintf(ovbuf, 4,"foo%s", "bar");
22437if (ovbuf[5]!='x') exit(1);
22438snprintf(ovbuf, 4,"foo%d", 666);
22439if (ovbuf[5]!='x') exit(1);
22440exit(0);
22441}
22442
22443
22444_ACEOF
22445rm -f conftest$ac_exeext
22446if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22447  (eval $ac_link) 2>&5
22448  ac_status=$?
22449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22450  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22451  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22452  (eval $ac_try) 2>&5
22453  ac_status=$?
22454  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22455  (exit $ac_status); }; }; then
22456  dps_cv_snprintf_bug=0
22457else
22458  echo "$as_me: program exited with status $ac_status" >&5
22459echo "$as_me: failed program was:" >&5
22460sed 's/^/| /' conftest.$ac_ext >&5
22461
22462( exit $ac_status )
22463dps_cv_snprintf_bug=1
22464fi
22465rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22466fi
22467
22468fi
22469
22470    if test $dps_cv_snprintf_bug -eq 0; then
22471        echo "$as_me:$LINENO: result: no, snprintf is ok" >&5
22472echo "${ECHO_T}no, snprintf is ok" >&6
22473    elif test $dps_cv_snprint_bug -eq 1; then
22474        echo "$as_me:$LINENO: result: yes, snprintf is broken" >&5
22475echo "${ECHO_T}yes, snprintf is broken" >&6
22476
22477cat >>confdefs.h <<\_ACEOF
22478#define HAVE_SNPRINTF_BUG 1
22479_ACEOF
22480
22481    else
22482        echo "$as_me:$LINENO: result: unknown, assuming yes" >&5
22483echo "${ECHO_T}unknown, assuming yes" >&6
22484
22485cat >>confdefs.h <<\_ACEOF
22486#define HAVE_SNPRINTF_BUG 1
22487_ACEOF
22488
22489    fi
22490
22491
22492
22493echo "$as_me:$LINENO: checking for pow in -lm" >&5
22494echo $ECHO_N "checking for pow in -lm... $ECHO_C" >&6
22495if test "${ac_cv_lib_m_pow+set}" = set; then
22496  echo $ECHO_N "(cached) $ECHO_C" >&6
22497else
22498  ac_check_lib_save_LIBS=$LIBS
22499LIBS="-lm  $LIBS"
22500cat >conftest.$ac_ext <<_ACEOF
22501/* confdefs.h.  */
22502_ACEOF
22503cat confdefs.h >>conftest.$ac_ext
22504cat >>conftest.$ac_ext <<_ACEOF
22505/* end confdefs.h.  */
22506
22507/* Override any gcc2 internal prototype to avoid an error.  */
22508#ifdef __cplusplus
22509extern "C"
22510#endif
22511/* We use char because int might match the return type of a gcc2
22512   builtin and then its argument prototype would still apply.  */
22513char pow ();
22514int
22515main ()
22516{
22517pow ();
22518  ;
22519  return 0;
22520}
22521_ACEOF
22522rm -f conftest.$ac_objext conftest$ac_exeext
22523if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22524  (eval $ac_link) 2>conftest.er1
22525  ac_status=$?
22526  grep -v '^ *+' conftest.er1 >conftest.err
22527  rm -f conftest.er1
22528  cat conftest.err >&5
22529  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22530  (exit $ac_status); } &&
22531	 { ac_try='test -z "$ac_c_werror_flag"
22532			 || test ! -s conftest.err'
22533  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22534  (eval $ac_try) 2>&5
22535  ac_status=$?
22536  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22537  (exit $ac_status); }; } &&
22538	 { ac_try='test -s conftest$ac_exeext'
22539  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22540  (eval $ac_try) 2>&5
22541  ac_status=$?
22542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22543  (exit $ac_status); }; }; then
22544  ac_cv_lib_m_pow=yes
22545else
22546  echo "$as_me: failed program was:" >&5
22547sed 's/^/| /' conftest.$ac_ext >&5
22548
22549ac_cv_lib_m_pow=no
22550fi
22551rm -f conftest.err conftest.$ac_objext \
22552      conftest$ac_exeext conftest.$ac_ext
22553LIBS=$ac_check_lib_save_LIBS
22554fi
22555echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
22556echo "${ECHO_T}$ac_cv_lib_m_pow" >&6
22557if test $ac_cv_lib_m_pow = yes; then
22558  cat >>confdefs.h <<_ACEOF
22559#define HAVE_LIBM 1
22560_ACEOF
22561
22562  LIBS="-lm $LIBS"
22563
22564fi
22565
22566
22567echo "$as_me:$LINENO: checking for library containing login" >&5
22568echo $ECHO_N "checking for library containing login... $ECHO_C" >&6
22569if test "${ac_cv_search_login+set}" = set; then
22570  echo $ECHO_N "(cached) $ECHO_C" >&6
22571else
22572  ac_func_search_save_LIBS=$LIBS
22573ac_cv_search_login=no
22574cat >conftest.$ac_ext <<_ACEOF
22575/* confdefs.h.  */
22576_ACEOF
22577cat confdefs.h >>conftest.$ac_ext
22578cat >>conftest.$ac_ext <<_ACEOF
22579/* end confdefs.h.  */
22580
22581/* Override any gcc2 internal prototype to avoid an error.  */
22582#ifdef __cplusplus
22583extern "C"
22584#endif
22585/* We use char because int might match the return type of a gcc2
22586   builtin and then its argument prototype would still apply.  */
22587char login ();
22588int
22589main ()
22590{
22591login ();
22592  ;
22593  return 0;
22594}
22595_ACEOF
22596rm -f conftest.$ac_objext conftest$ac_exeext
22597if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22598  (eval $ac_link) 2>conftest.er1
22599  ac_status=$?
22600  grep -v '^ *+' conftest.er1 >conftest.err
22601  rm -f conftest.er1
22602  cat conftest.err >&5
22603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22604  (exit $ac_status); } &&
22605	 { ac_try='test -z "$ac_c_werror_flag"
22606			 || test ! -s conftest.err'
22607  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22608  (eval $ac_try) 2>&5
22609  ac_status=$?
22610  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22611  (exit $ac_status); }; } &&
22612	 { ac_try='test -s conftest$ac_exeext'
22613  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22614  (eval $ac_try) 2>&5
22615  ac_status=$?
22616  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22617  (exit $ac_status); }; }; then
22618  ac_cv_search_login="none required"
22619else
22620  echo "$as_me: failed program was:" >&5
22621sed 's/^/| /' conftest.$ac_ext >&5
22622
22623fi
22624rm -f conftest.err conftest.$ac_objext \
22625      conftest$ac_exeext conftest.$ac_ext
22626if test "$ac_cv_search_login" = no; then
22627  for ac_lib in bsd ucb util; do
22628    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22629    cat >conftest.$ac_ext <<_ACEOF
22630/* confdefs.h.  */
22631_ACEOF
22632cat confdefs.h >>conftest.$ac_ext
22633cat >>conftest.$ac_ext <<_ACEOF
22634/* end confdefs.h.  */
22635
22636/* Override any gcc2 internal prototype to avoid an error.  */
22637#ifdef __cplusplus
22638extern "C"
22639#endif
22640/* We use char because int might match the return type of a gcc2
22641   builtin and then its argument prototype would still apply.  */
22642char login ();
22643int
22644main ()
22645{
22646login ();
22647  ;
22648  return 0;
22649}
22650_ACEOF
22651rm -f conftest.$ac_objext conftest$ac_exeext
22652if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22653  (eval $ac_link) 2>conftest.er1
22654  ac_status=$?
22655  grep -v '^ *+' conftest.er1 >conftest.err
22656  rm -f conftest.er1
22657  cat conftest.err >&5
22658  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22659  (exit $ac_status); } &&
22660	 { ac_try='test -z "$ac_c_werror_flag"
22661			 || test ! -s conftest.err'
22662  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22663  (eval $ac_try) 2>&5
22664  ac_status=$?
22665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22666  (exit $ac_status); }; } &&
22667	 { ac_try='test -s conftest$ac_exeext'
22668  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22669  (eval $ac_try) 2>&5
22670  ac_status=$?
22671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22672  (exit $ac_status); }; }; then
22673  ac_cv_search_login="-l$ac_lib"
22674break
22675else
22676  echo "$as_me: failed program was:" >&5
22677sed 's/^/| /' conftest.$ac_ext >&5
22678
22679fi
22680rm -f conftest.err conftest.$ac_objext \
22681      conftest$ac_exeext conftest.$ac_ext
22682  done
22683fi
22684LIBS=$ac_func_search_save_LIBS
22685fi
22686echo "$as_me:$LINENO: result: $ac_cv_search_login" >&5
22687echo "${ECHO_T}$ac_cv_search_login" >&6
22688if test "$ac_cv_search_login" != no; then
22689  test "$ac_cv_search_login" = "none required" || LIBS="$ac_cv_search_login $LIBS"
22690
22691fi
22692
22693echo "$as_me:$LINENO: checking for library containing logout" >&5
22694echo $ECHO_N "checking for library containing logout... $ECHO_C" >&6
22695if test "${ac_cv_search_logout+set}" = set; then
22696  echo $ECHO_N "(cached) $ECHO_C" >&6
22697else
22698  ac_func_search_save_LIBS=$LIBS
22699ac_cv_search_logout=no
22700cat >conftest.$ac_ext <<_ACEOF
22701/* confdefs.h.  */
22702_ACEOF
22703cat confdefs.h >>conftest.$ac_ext
22704cat >>conftest.$ac_ext <<_ACEOF
22705/* end confdefs.h.  */
22706
22707/* Override any gcc2 internal prototype to avoid an error.  */
22708#ifdef __cplusplus
22709extern "C"
22710#endif
22711/* We use char because int might match the return type of a gcc2
22712   builtin and then its argument prototype would still apply.  */
22713char logout ();
22714int
22715main ()
22716{
22717logout ();
22718  ;
22719  return 0;
22720}
22721_ACEOF
22722rm -f conftest.$ac_objext conftest$ac_exeext
22723if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22724  (eval $ac_link) 2>conftest.er1
22725  ac_status=$?
22726  grep -v '^ *+' conftest.er1 >conftest.err
22727  rm -f conftest.er1
22728  cat conftest.err >&5
22729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22730  (exit $ac_status); } &&
22731	 { ac_try='test -z "$ac_c_werror_flag"
22732			 || test ! -s conftest.err'
22733  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22734  (eval $ac_try) 2>&5
22735  ac_status=$?
22736  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22737  (exit $ac_status); }; } &&
22738	 { ac_try='test -s conftest$ac_exeext'
22739  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22740  (eval $ac_try) 2>&5
22741  ac_status=$?
22742  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22743  (exit $ac_status); }; }; then
22744  ac_cv_search_logout="none required"
22745else
22746  echo "$as_me: failed program was:" >&5
22747sed 's/^/| /' conftest.$ac_ext >&5
22748
22749fi
22750rm -f conftest.err conftest.$ac_objext \
22751      conftest$ac_exeext conftest.$ac_ext
22752if test "$ac_cv_search_logout" = no; then
22753  for ac_lib in util; do
22754    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22755    cat >conftest.$ac_ext <<_ACEOF
22756/* confdefs.h.  */
22757_ACEOF
22758cat confdefs.h >>conftest.$ac_ext
22759cat >>conftest.$ac_ext <<_ACEOF
22760/* end confdefs.h.  */
22761
22762/* Override any gcc2 internal prototype to avoid an error.  */
22763#ifdef __cplusplus
22764extern "C"
22765#endif
22766/* We use char because int might match the return type of a gcc2
22767   builtin and then its argument prototype would still apply.  */
22768char logout ();
22769int
22770main ()
22771{
22772logout ();
22773  ;
22774  return 0;
22775}
22776_ACEOF
22777rm -f conftest.$ac_objext conftest$ac_exeext
22778if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22779  (eval $ac_link) 2>conftest.er1
22780  ac_status=$?
22781  grep -v '^ *+' conftest.er1 >conftest.err
22782  rm -f conftest.er1
22783  cat conftest.err >&5
22784  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22785  (exit $ac_status); } &&
22786	 { ac_try='test -z "$ac_c_werror_flag"
22787			 || test ! -s conftest.err'
22788  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22789  (eval $ac_try) 2>&5
22790  ac_status=$?
22791  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22792  (exit $ac_status); }; } &&
22793	 { ac_try='test -s conftest$ac_exeext'
22794  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22795  (eval $ac_try) 2>&5
22796  ac_status=$?
22797  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22798  (exit $ac_status); }; }; then
22799  ac_cv_search_logout="-l$ac_lib"
22800break
22801else
22802  echo "$as_me: failed program was:" >&5
22803sed 's/^/| /' conftest.$ac_ext >&5
22804
22805fi
22806rm -f conftest.err conftest.$ac_objext \
22807      conftest$ac_exeext conftest.$ac_ext
22808  done
22809fi
22810LIBS=$ac_func_search_save_LIBS
22811fi
22812echo "$as_me:$LINENO: result: $ac_cv_search_logout" >&5
22813echo "${ECHO_T}$ac_cv_search_logout" >&6
22814if test "$ac_cv_search_logout" != no; then
22815  test "$ac_cv_search_logout" = "none required" || LIBS="$ac_cv_search_logout $LIBS"
22816
22817fi
22818
22819echo "$as_me:$LINENO: checking for library containing getpwuid" >&5
22820echo $ECHO_N "checking for library containing getpwuid... $ECHO_C" >&6
22821if test "${ac_cv_search_getpwuid+set}" = set; then
22822  echo $ECHO_N "(cached) $ECHO_C" >&6
22823else
22824  ac_func_search_save_LIBS=$LIBS
22825ac_cv_search_getpwuid=no
22826cat >conftest.$ac_ext <<_ACEOF
22827/* confdefs.h.  */
22828_ACEOF
22829cat confdefs.h >>conftest.$ac_ext
22830cat >>conftest.$ac_ext <<_ACEOF
22831/* end confdefs.h.  */
22832
22833/* Override any gcc2 internal prototype to avoid an error.  */
22834#ifdef __cplusplus
22835extern "C"
22836#endif
22837/* We use char because int might match the return type of a gcc2
22838   builtin and then its argument prototype would still apply.  */
22839char getpwuid ();
22840int
22841main ()
22842{
22843getpwuid ();
22844  ;
22845  return 0;
22846}
22847_ACEOF
22848rm -f conftest.$ac_objext conftest$ac_exeext
22849if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22850  (eval $ac_link) 2>conftest.er1
22851  ac_status=$?
22852  grep -v '^ *+' conftest.er1 >conftest.err
22853  rm -f conftest.er1
22854  cat conftest.err >&5
22855  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22856  (exit $ac_status); } &&
22857	 { ac_try='test -z "$ac_c_werror_flag"
22858			 || test ! -s conftest.err'
22859  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22860  (eval $ac_try) 2>&5
22861  ac_status=$?
22862  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22863  (exit $ac_status); }; } &&
22864	 { ac_try='test -s conftest$ac_exeext'
22865  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22866  (eval $ac_try) 2>&5
22867  ac_status=$?
22868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22869  (exit $ac_status); }; }; then
22870  ac_cv_search_getpwuid="none required"
22871else
22872  echo "$as_me: failed program was:" >&5
22873sed 's/^/| /' conftest.$ac_ext >&5
22874
22875fi
22876rm -f conftest.err conftest.$ac_objext \
22877      conftest$ac_exeext conftest.$ac_ext
22878if test "$ac_cv_search_getpwuid" = no; then
22879  for ac_lib in sun; do
22880    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22881    cat >conftest.$ac_ext <<_ACEOF
22882/* confdefs.h.  */
22883_ACEOF
22884cat confdefs.h >>conftest.$ac_ext
22885cat >>conftest.$ac_ext <<_ACEOF
22886/* end confdefs.h.  */
22887
22888/* Override any gcc2 internal prototype to avoid an error.  */
22889#ifdef __cplusplus
22890extern "C"
22891#endif
22892/* We use char because int might match the return type of a gcc2
22893   builtin and then its argument prototype would still apply.  */
22894char getpwuid ();
22895int
22896main ()
22897{
22898getpwuid ();
22899  ;
22900  return 0;
22901}
22902_ACEOF
22903rm -f conftest.$ac_objext conftest$ac_exeext
22904if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22905  (eval $ac_link) 2>conftest.er1
22906  ac_status=$?
22907  grep -v '^ *+' conftest.er1 >conftest.err
22908  rm -f conftest.er1
22909  cat conftest.err >&5
22910  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22911  (exit $ac_status); } &&
22912	 { ac_try='test -z "$ac_c_werror_flag"
22913			 || test ! -s conftest.err'
22914  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22915  (eval $ac_try) 2>&5
22916  ac_status=$?
22917  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22918  (exit $ac_status); }; } &&
22919	 { ac_try='test -s conftest$ac_exeext'
22920  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22921  (eval $ac_try) 2>&5
22922  ac_status=$?
22923  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22924  (exit $ac_status); }; }; then
22925  ac_cv_search_getpwuid="-l$ac_lib"
22926break
22927else
22928  echo "$as_me: failed program was:" >&5
22929sed 's/^/| /' conftest.$ac_ext >&5
22930
22931fi
22932rm -f conftest.err conftest.$ac_objext \
22933      conftest$ac_exeext conftest.$ac_ext
22934  done
22935fi
22936LIBS=$ac_func_search_save_LIBS
22937fi
22938echo "$as_me:$LINENO: result: $ac_cv_search_getpwuid" >&5
22939echo "${ECHO_T}$ac_cv_search_getpwuid" >&6
22940if test "$ac_cv_search_getpwuid" != no; then
22941  test "$ac_cv_search_getpwuid" = "none required" || LIBS="$ac_cv_search_getpwuid $LIBS"
22942
22943fi
22944
22945
22946echo "$as_me:$LINENO: checking for debugging level" >&5
22947echo $ECHO_N "checking for debugging level... $ECHO_C" >&6
22948
22949# Check whether --with-debugging or --without-debugging was given.
22950if test "${with_debugging+set}" = set; then
22951  withval="$with_debugging"
22952
22953              if test "$withval" = "yes"; then
22954                  withval=4
22955              else
22956                  :
22957              fi
22958              if test "$withval" != "no"; then
22959                  echo "$withval"
22960
22961cat >>confdefs.h <<_ACEOF
22962#define DEBUG $withval
22963_ACEOF
22964
22965              else
22966                  echo "no debugging"
22967
22968cat >>confdefs.h <<_ACEOF
22969#define DEBUG 0
22970_ACEOF
22971
22972              fi
22973else
22974  echo "4"
22975
22976cat >>confdefs.h <<_ACEOF
22977#define DEBUG 4
22978_ACEOF
22979
22980
22981fi;
22982
22983echo "$as_me:$LINENO: checking for posix_openpt" >&5
22984echo $ECHO_N "checking for posix_openpt... $ECHO_C" >&6
22985if test "${ac_cv_func_posix_openpt+set}" = set; then
22986  echo $ECHO_N "(cached) $ECHO_C" >&6
22987else
22988  cat >conftest.$ac_ext <<_ACEOF
22989/* confdefs.h.  */
22990_ACEOF
22991cat confdefs.h >>conftest.$ac_ext
22992cat >>conftest.$ac_ext <<_ACEOF
22993/* end confdefs.h.  */
22994/* Define posix_openpt to an innocuous variant, in case <limits.h> declares posix_openpt.
22995   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22996#define posix_openpt innocuous_posix_openpt
22997
22998/* System header to define __stub macros and hopefully few prototypes,
22999    which can conflict with char posix_openpt (); below.
23000    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23001    <limits.h> exists even on freestanding compilers.  */
23002
23003#ifdef __STDC__
23004# include <limits.h>
23005#else
23006# include <assert.h>
23007#endif
23008
23009#undef posix_openpt
23010
23011/* Override any gcc2 internal prototype to avoid an error.  */
23012#ifdef __cplusplus
23013extern "C"
23014{
23015#endif
23016/* We use char because int might match the return type of a gcc2
23017   builtin and then its argument prototype would still apply.  */
23018char posix_openpt ();
23019/* The GNU C library defines this for functions which it implements
23020    to always fail with ENOSYS.  Some functions are actually named
23021    something starting with __ and the normal name is an alias.  */
23022#if defined (__stub_posix_openpt) || defined (__stub___posix_openpt)
23023choke me
23024#else
23025char (*f) () = posix_openpt;
23026#endif
23027#ifdef __cplusplus
23028}
23029#endif
23030
23031int
23032main ()
23033{
23034return f != posix_openpt;
23035  ;
23036  return 0;
23037}
23038_ACEOF
23039rm -f conftest.$ac_objext conftest$ac_exeext
23040if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23041  (eval $ac_link) 2>conftest.er1
23042  ac_status=$?
23043  grep -v '^ *+' conftest.er1 >conftest.err
23044  rm -f conftest.er1
23045  cat conftest.err >&5
23046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23047  (exit $ac_status); } &&
23048	 { ac_try='test -z "$ac_c_werror_flag"
23049			 || test ! -s conftest.err'
23050  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23051  (eval $ac_try) 2>&5
23052  ac_status=$?
23053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23054  (exit $ac_status); }; } &&
23055	 { ac_try='test -s conftest$ac_exeext'
23056  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23057  (eval $ac_try) 2>&5
23058  ac_status=$?
23059  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23060  (exit $ac_status); }; }; then
23061  ac_cv_func_posix_openpt=yes
23062else
23063  echo "$as_me: failed program was:" >&5
23064sed 's/^/| /' conftest.$ac_ext >&5
23065
23066ac_cv_func_posix_openpt=no
23067fi
23068rm -f conftest.err conftest.$ac_objext \
23069      conftest$ac_exeext conftest.$ac_ext
23070fi
23071echo "$as_me:$LINENO: result: $ac_cv_func_posix_openpt" >&5
23072echo "${ECHO_T}$ac_cv_func_posix_openpt" >&6
23073if test $ac_cv_func_posix_openpt = yes; then
23074  HAVE_POSIX_OPENPT=yes
23075
23076fi
23077
23078echo "$as_me:$LINENO: checking for ptsname" >&5
23079echo $ECHO_N "checking for ptsname... $ECHO_C" >&6
23080if test "${ac_cv_func_ptsname+set}" = set; then
23081  echo $ECHO_N "(cached) $ECHO_C" >&6
23082else
23083  cat >conftest.$ac_ext <<_ACEOF
23084/* confdefs.h.  */
23085_ACEOF
23086cat confdefs.h >>conftest.$ac_ext
23087cat >>conftest.$ac_ext <<_ACEOF
23088/* end confdefs.h.  */
23089/* Define ptsname to an innocuous variant, in case <limits.h> declares ptsname.
23090   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23091#define ptsname innocuous_ptsname
23092
23093/* System header to define __stub macros and hopefully few prototypes,
23094    which can conflict with char ptsname (); below.
23095    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23096    <limits.h> exists even on freestanding compilers.  */
23097
23098#ifdef __STDC__
23099# include <limits.h>
23100#else
23101# include <assert.h>
23102#endif
23103
23104#undef ptsname
23105
23106/* Override any gcc2 internal prototype to avoid an error.  */
23107#ifdef __cplusplus
23108extern "C"
23109{
23110#endif
23111/* We use char because int might match the return type of a gcc2
23112   builtin and then its argument prototype would still apply.  */
23113char ptsname ();
23114/* The GNU C library defines this for functions which it implements
23115    to always fail with ENOSYS.  Some functions are actually named
23116    something starting with __ and the normal name is an alias.  */
23117#if defined (__stub_ptsname) || defined (__stub___ptsname)
23118choke me
23119#else
23120char (*f) () = ptsname;
23121#endif
23122#ifdef __cplusplus
23123}
23124#endif
23125
23126int
23127main ()
23128{
23129return f != ptsname;
23130  ;
23131  return 0;
23132}
23133_ACEOF
23134rm -f conftest.$ac_objext conftest$ac_exeext
23135if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23136  (eval $ac_link) 2>conftest.er1
23137  ac_status=$?
23138  grep -v '^ *+' conftest.er1 >conftest.err
23139  rm -f conftest.er1
23140  cat conftest.err >&5
23141  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23142  (exit $ac_status); } &&
23143	 { ac_try='test -z "$ac_c_werror_flag"
23144			 || test ! -s conftest.err'
23145  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23146  (eval $ac_try) 2>&5
23147  ac_status=$?
23148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23149  (exit $ac_status); }; } &&
23150	 { ac_try='test -s conftest$ac_exeext'
23151  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23152  (eval $ac_try) 2>&5
23153  ac_status=$?
23154  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23155  (exit $ac_status); }; }; then
23156  ac_cv_func_ptsname=yes
23157else
23158  echo "$as_me: failed program was:" >&5
23159sed 's/^/| /' conftest.$ac_ext >&5
23160
23161ac_cv_func_ptsname=no
23162fi
23163rm -f conftest.err conftest.$ac_objext \
23164      conftest$ac_exeext conftest.$ac_ext
23165fi
23166echo "$as_me:$LINENO: result: $ac_cv_func_ptsname" >&5
23167echo "${ECHO_T}$ac_cv_func_ptsname" >&6
23168if test $ac_cv_func_ptsname = yes; then
23169  HAVE_PTSNAME=yes
23170
23171fi
23172
23173echo "$as_me:$LINENO: checking for grantpt" >&5
23174echo $ECHO_N "checking for grantpt... $ECHO_C" >&6
23175if test "${ac_cv_func_grantpt+set}" = set; then
23176  echo $ECHO_N "(cached) $ECHO_C" >&6
23177else
23178  cat >conftest.$ac_ext <<_ACEOF
23179/* confdefs.h.  */
23180_ACEOF
23181cat confdefs.h >>conftest.$ac_ext
23182cat >>conftest.$ac_ext <<_ACEOF
23183/* end confdefs.h.  */
23184/* Define grantpt to an innocuous variant, in case <limits.h> declares grantpt.
23185   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23186#define grantpt innocuous_grantpt
23187
23188/* System header to define __stub macros and hopefully few prototypes,
23189    which can conflict with char grantpt (); below.
23190    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23191    <limits.h> exists even on freestanding compilers.  */
23192
23193#ifdef __STDC__
23194# include <limits.h>
23195#else
23196# include <assert.h>
23197#endif
23198
23199#undef grantpt
23200
23201/* Override any gcc2 internal prototype to avoid an error.  */
23202#ifdef __cplusplus
23203extern "C"
23204{
23205#endif
23206/* We use char because int might match the return type of a gcc2
23207   builtin and then its argument prototype would still apply.  */
23208char grantpt ();
23209/* The GNU C library defines this for functions which it implements
23210    to always fail with ENOSYS.  Some functions are actually named
23211    something starting with __ and the normal name is an alias.  */
23212#if defined (__stub_grantpt) || defined (__stub___grantpt)
23213choke me
23214#else
23215char (*f) () = grantpt;
23216#endif
23217#ifdef __cplusplus
23218}
23219#endif
23220
23221int
23222main ()
23223{
23224return f != grantpt;
23225  ;
23226  return 0;
23227}
23228_ACEOF
23229rm -f conftest.$ac_objext conftest$ac_exeext
23230if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23231  (eval $ac_link) 2>conftest.er1
23232  ac_status=$?
23233  grep -v '^ *+' conftest.er1 >conftest.err
23234  rm -f conftest.er1
23235  cat conftest.err >&5
23236  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23237  (exit $ac_status); } &&
23238	 { ac_try='test -z "$ac_c_werror_flag"
23239			 || test ! -s conftest.err'
23240  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23241  (eval $ac_try) 2>&5
23242  ac_status=$?
23243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23244  (exit $ac_status); }; } &&
23245	 { ac_try='test -s conftest$ac_exeext'
23246  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23247  (eval $ac_try) 2>&5
23248  ac_status=$?
23249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23250  (exit $ac_status); }; }; then
23251  ac_cv_func_grantpt=yes
23252else
23253  echo "$as_me: failed program was:" >&5
23254sed 's/^/| /' conftest.$ac_ext >&5
23255
23256ac_cv_func_grantpt=no
23257fi
23258rm -f conftest.err conftest.$ac_objext \
23259      conftest$ac_exeext conftest.$ac_ext
23260fi
23261echo "$as_me:$LINENO: result: $ac_cv_func_grantpt" >&5
23262echo "${ECHO_T}$ac_cv_func_grantpt" >&6
23263if test $ac_cv_func_grantpt = yes; then
23264  HAVE_GRANTPT=yes
23265
23266fi
23267
23268echo "$as_me:$LINENO: checking for unlockpt" >&5
23269echo $ECHO_N "checking for unlockpt... $ECHO_C" >&6
23270if test "${ac_cv_func_unlockpt+set}" = set; then
23271  echo $ECHO_N "(cached) $ECHO_C" >&6
23272else
23273  cat >conftest.$ac_ext <<_ACEOF
23274/* confdefs.h.  */
23275_ACEOF
23276cat confdefs.h >>conftest.$ac_ext
23277cat >>conftest.$ac_ext <<_ACEOF
23278/* end confdefs.h.  */
23279/* Define unlockpt to an innocuous variant, in case <limits.h> declares unlockpt.
23280   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23281#define unlockpt innocuous_unlockpt
23282
23283/* System header to define __stub macros and hopefully few prototypes,
23284    which can conflict with char unlockpt (); below.
23285    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23286    <limits.h> exists even on freestanding compilers.  */
23287
23288#ifdef __STDC__
23289# include <limits.h>
23290#else
23291# include <assert.h>
23292#endif
23293
23294#undef unlockpt
23295
23296/* Override any gcc2 internal prototype to avoid an error.  */
23297#ifdef __cplusplus
23298extern "C"
23299{
23300#endif
23301/* We use char because int might match the return type of a gcc2
23302   builtin and then its argument prototype would still apply.  */
23303char unlockpt ();
23304/* The GNU C library defines this for functions which it implements
23305    to always fail with ENOSYS.  Some functions are actually named
23306    something starting with __ and the normal name is an alias.  */
23307#if defined (__stub_unlockpt) || defined (__stub___unlockpt)
23308choke me
23309#else
23310char (*f) () = unlockpt;
23311#endif
23312#ifdef __cplusplus
23313}
23314#endif
23315
23316int
23317main ()
23318{
23319return f != unlockpt;
23320  ;
23321  return 0;
23322}
23323_ACEOF
23324rm -f conftest.$ac_objext conftest$ac_exeext
23325if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23326  (eval $ac_link) 2>conftest.er1
23327  ac_status=$?
23328  grep -v '^ *+' conftest.er1 >conftest.err
23329  rm -f conftest.er1
23330  cat conftest.err >&5
23331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23332  (exit $ac_status); } &&
23333	 { ac_try='test -z "$ac_c_werror_flag"
23334			 || test ! -s conftest.err'
23335  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23336  (eval $ac_try) 2>&5
23337  ac_status=$?
23338  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23339  (exit $ac_status); }; } &&
23340	 { ac_try='test -s conftest$ac_exeext'
23341  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23342  (eval $ac_try) 2>&5
23343  ac_status=$?
23344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23345  (exit $ac_status); }; }; then
23346  ac_cv_func_unlockpt=yes
23347else
23348  echo "$as_me: failed program was:" >&5
23349sed 's/^/| /' conftest.$ac_ext >&5
23350
23351ac_cv_func_unlockpt=no
23352fi
23353rm -f conftest.err conftest.$ac_objext \
23354      conftest$ac_exeext conftest.$ac_ext
23355fi
23356echo "$as_me:$LINENO: result: $ac_cv_func_unlockpt" >&5
23357echo "${ECHO_T}$ac_cv_func_unlockpt" >&6
23358if test $ac_cv_func_unlockpt = yes; then
23359  HAVE_UNLOCKPT=yes
23360
23361fi
23362
23363echo "$as_me:$LINENO: checking for pty mechanism" >&5
23364echo $ECHO_N "checking for pty mechanism... $ECHO_C" >&6
23365PTY_MECH=""
23366if test ! -z "$HAVE_POSIX_OPENPT" -a ! -z "$HAVE_PTSNAME" -a ! -z "$HAVE_GRANTPT" -a ! -z "$HAVE_UNLOCKPT"; then
23367
23368cat >>confdefs.h <<\_ACEOF
23369#define HAVE_POSIX_OPENPT
23370_ACEOF
23371
23372  PTY_MECH="POSIX $PTY_MECH"
23373fi
23374if test -c /dev/ptc ; then
23375
23376cat >>confdefs.h <<\_ACEOF
23377#define HAVE_DEV_PTC
23378_ACEOF
23379
23380  PTY_MECH="AIX $PTY_MECH"
23381fi
23382if test -r /dev/ptmx -a ! -z "$HAVE_PTSNAME" -a ! -z "$HAVE_GRANTPT" -a ! -z "$HAVE_UNLOCKPT"; then
23383
23384cat >>confdefs.h <<\_ACEOF
23385#define HAVE_DEV_PTMX
23386_ACEOF
23387
23388  PTY_MECH="SVR4 $PTY_MECH"
23389fi
23390if test -c /dev/ptyp128 ; then
23391
23392cat >>confdefs.h <<\_ACEOF
23393#define HAVE_SCO_PTYS
23394_ACEOF
23395
23396  PTY_MECH="SCO $PTY_MECH"
23397fi
23398if test "X$PTY_MECH" = "X"; then
23399  echo "$as_me:$LINENO: result: generic only" >&5
23400echo "${ECHO_T}generic only" >&6
23401else
23402  echo "$as_me:$LINENO: result: $PTY_MECH" >&5
23403echo "${ECHO_T}$PTY_MECH" >&6
23404fi
23405echo "$as_me:$LINENO: checking for pty group" >&5
23406echo $ECHO_N "checking for pty group... $ECHO_C" >&6
23407
23408# Check whether --with-pty-group or --without-pty-group was given.
23409if test "${with_pty_group+set}" = set; then
23410  withval="$with_pty_group"
23411
23412            if test "$withval" = "yes"; then
23413              PTY_GRP_NAME=`ls -1l /dev/pty* 2>/dev/null | head -n 1 | awk '{print $4}'`
23414              if test ! -z "$PTY_GRP_NAME"; then
23415                echo "$as_me:$LINENO: result: $PTY_GRP_NAME" >&5
23416echo "${ECHO_T}$PTY_GRP_NAME" >&6
23417
23418cat >>confdefs.h <<_ACEOF
23419#define PTY_GRP_NAME "$PTY_GRP_NAME"
23420_ACEOF
23421
23422              else
23423                echo "$as_me:$LINENO: result: unable to determine.  This feature will not be enabled." >&5
23424echo "${ECHO_T}unable to determine.  This feature will not be enabled." >&6
23425              fi
23426            elif test "$withval" = "no"; then
23427              echo "$as_me:$LINENO: result: none" >&5
23428echo "${ECHO_T}none" >&6
23429            else
23430              echo "$as_me:$LINENO: result: $withval" >&5
23431echo "${ECHO_T}$withval" >&6
23432
23433cat >>confdefs.h <<_ACEOF
23434#define PTY_GRP_NAME "$withval"
23435_ACEOF
23436
23437            fi
23438
23439else
23440
23441            PTY_GRP_NAME=`ls -1l /dev/pty* 2>/dev/null | head -n 1 | awk '{print $4}'`
23442            if test ! -z "$PTY_GRP_NAME"; then
23443              echo "$as_me:$LINENO: result: $PTY_GRP_NAME" >&5
23444echo "${ECHO_T}$PTY_GRP_NAME" >&6
23445
23446cat >>confdefs.h <<_ACEOF
23447#define PTY_GRP_NAME "$PTY_GRP_NAME"
23448_ACEOF
23449
23450            else
23451              echo "$as_me:$LINENO: result: none" >&5
23452echo "${ECHO_T}none" >&6
23453            fi
23454
23455fi;
23456echo "$as_me:$LINENO: checking for saved uids" >&5
23457echo $ECHO_N "checking for saved uids... $ECHO_C" >&6
23458
23459# Check whether --with-saved-uids or --without-saved-uids was given.
23460if test "${with_saved_uids+set}" = set; then
23461  withval="$with_saved_uids"
23462
23463            if test "$withval" = "yes"; then
23464                echo "$as_me:$LINENO: result: user specified yes" >&5
23465echo "${ECHO_T}user specified yes" >&6
23466                HAVE_SAVED_UIDS=1
23467            elif test "$withval" = "no"; then
23468                echo "$as_me:$LINENO: result: user specified no" >&5
23469echo "${ECHO_T}user specified no" >&6
23470                HAVE_SAVED_UIDS=0
23471            fi
23472
23473fi;
23474if test "x$HAVE_SAVED_UIDS" = "x"; then
23475    case `uname -s` in
23476        Linux | linux | GNU*Linux)  HAVE_SAVED_UIDS=1 ;;
23477        HP*UX | hp*ux)              HAVE_SAVED_UIDS=1 ;;
23478        AIX | aix)                  HAVE_SAVED_UIDS=1 ;;
23479        Solaris | SunOS | Ssun)   HAVE_SAVED_UIDS=1 ;;
23480        *BSD)                       HAVE_SAVED_UIDS=0 ;;
23481    esac
23482    if test "x$HAVE_SAVED_UIDS" = "x"; then
23483        echo "$as_me:$LINENO: result: unknown...assuming no support" >&5
23484echo "${ECHO_T}unknown...assuming no support" >&6
23485        HAVE_SAVED_UIDS=0
23486    elif test $HAVE_SAVED_UIDS -eq 1; then
23487        echo "$as_me:$LINENO: result: yes" >&5
23488echo "${ECHO_T}yes" >&6
23489
23490cat >>confdefs.h <<\_ACEOF
23491#define HAVE_SAVED_UIDS
23492_ACEOF
23493
23494    else
23495        echo "$as_me:$LINENO: result: no" >&5
23496echo "${ECHO_T}no" >&6
23497    fi
23498fi
23499echo "$as_me:$LINENO: checking if strict ICCCM compliance should be enabled" >&5
23500echo $ECHO_N "checking if strict ICCCM compliance should be enabled... $ECHO_C" >&6
23501# Check whether --enable-strict-icccm or --disable-strict-icccm was given.
23502if test "${enable_strict_icccm+set}" = set; then
23503  enableval="$enable_strict_icccm"
23504
23505              if test "$enableval" = "yes"; then
23506                  echo "$as_me:$LINENO: result: yes" >&5
23507echo "${ECHO_T}yes" >&6
23508
23509cat >>confdefs.h <<\_ACEOF
23510#define STRICT_ICCCM
23511_ACEOF
23512
23513              else
23514                  echo "$as_me:$LINENO: result: no" >&5
23515echo "${ECHO_T}no" >&6
23516              fi
23517
23518else
23519  echo "$as_me:$LINENO: result: no" >&5
23520echo "${ECHO_T}no" >&6
23521fi;
23522
23523
23524echo "$as_me:$LINENO: checking for XOpenDisplay in -lX11" >&5
23525echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
23526if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
23527  echo $ECHO_N "(cached) $ECHO_C" >&6
23528else
23529  ac_check_lib_save_LIBS=$LIBS
23530LIBS="-lX11  $LIBS"
23531cat >conftest.$ac_ext <<_ACEOF
23532/* confdefs.h.  */
23533_ACEOF
23534cat confdefs.h >>conftest.$ac_ext
23535cat >>conftest.$ac_ext <<_ACEOF
23536/* end confdefs.h.  */
23537
23538/* Override any gcc2 internal prototype to avoid an error.  */
23539#ifdef __cplusplus
23540extern "C"
23541#endif
23542/* We use char because int might match the return type of a gcc2
23543   builtin and then its argument prototype would still apply.  */
23544char XOpenDisplay ();
23545int
23546main ()
23547{
23548XOpenDisplay ();
23549  ;
23550  return 0;
23551}
23552_ACEOF
23553rm -f conftest.$ac_objext conftest$ac_exeext
23554if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23555  (eval $ac_link) 2>conftest.er1
23556  ac_status=$?
23557  grep -v '^ *+' conftest.er1 >conftest.err
23558  rm -f conftest.er1
23559  cat conftest.err >&5
23560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23561  (exit $ac_status); } &&
23562	 { ac_try='test -z "$ac_c_werror_flag"
23563			 || test ! -s conftest.err'
23564  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23565  (eval $ac_try) 2>&5
23566  ac_status=$?
23567  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23568  (exit $ac_status); }; } &&
23569	 { ac_try='test -s conftest$ac_exeext'
23570  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23571  (eval $ac_try) 2>&5
23572  ac_status=$?
23573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23574  (exit $ac_status); }; }; then
23575  ac_cv_lib_X11_XOpenDisplay=yes
23576else
23577  echo "$as_me: failed program was:" >&5
23578sed 's/^/| /' conftest.$ac_ext >&5
23579
23580ac_cv_lib_X11_XOpenDisplay=no
23581fi
23582rm -f conftest.err conftest.$ac_objext \
23583      conftest$ac_exeext conftest.$ac_ext
23584LIBS=$ac_check_lib_save_LIBS
23585fi
23586echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XOpenDisplay" >&5
23587echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
23588if test $ac_cv_lib_X11_XOpenDisplay = yes; then
23589  cat >>confdefs.h <<_ACEOF
23590#define HAVE_LIBX11 1
23591_ACEOF
23592
23593  LIBS="-lX11 $LIBS"
23594
23595else
23596
23597echo "ERROR:  You need libX11 to build Eterm.  Verify that you have libX11.a or";
23598echo "        libX11.so installed and that it is located in the X libraries";
23599echo "        directory shown above.  If it is in a different directory, try using";
23600echo "        the --x-libraries parameter to configure.";
23601             { { echo "$as_me:$LINENO: error: Fatal:  libX11 not found." >&5
23602echo "$as_me: error: Fatal:  libX11 not found." >&2;}
23603   { (exit 1); exit 1; }; }
23604fi
23605
23606
23607echo "$as_me:$LINENO: checking for XextAddDisplay in -lXext" >&5
23608echo $ECHO_N "checking for XextAddDisplay in -lXext... $ECHO_C" >&6
23609if test "${ac_cv_lib_Xext_XextAddDisplay+set}" = set; then
23610  echo $ECHO_N "(cached) $ECHO_C" >&6
23611else
23612  ac_check_lib_save_LIBS=$LIBS
23613LIBS="-lXext  $LIBS"
23614cat >conftest.$ac_ext <<_ACEOF
23615/* confdefs.h.  */
23616_ACEOF
23617cat confdefs.h >>conftest.$ac_ext
23618cat >>conftest.$ac_ext <<_ACEOF
23619/* end confdefs.h.  */
23620
23621/* Override any gcc2 internal prototype to avoid an error.  */
23622#ifdef __cplusplus
23623extern "C"
23624#endif
23625/* We use char because int might match the return type of a gcc2
23626   builtin and then its argument prototype would still apply.  */
23627char XextAddDisplay ();
23628int
23629main ()
23630{
23631XextAddDisplay ();
23632  ;
23633  return 0;
23634}
23635_ACEOF
23636rm -f conftest.$ac_objext conftest$ac_exeext
23637if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23638  (eval $ac_link) 2>conftest.er1
23639  ac_status=$?
23640  grep -v '^ *+' conftest.er1 >conftest.err
23641  rm -f conftest.er1
23642  cat conftest.err >&5
23643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23644  (exit $ac_status); } &&
23645	 { ac_try='test -z "$ac_c_werror_flag"
23646			 || test ! -s conftest.err'
23647  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23648  (eval $ac_try) 2>&5
23649  ac_status=$?
23650  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23651  (exit $ac_status); }; } &&
23652	 { ac_try='test -s conftest$ac_exeext'
23653  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23654  (eval $ac_try) 2>&5
23655  ac_status=$?
23656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23657  (exit $ac_status); }; }; then
23658  ac_cv_lib_Xext_XextAddDisplay=yes
23659else
23660  echo "$as_me: failed program was:" >&5
23661sed 's/^/| /' conftest.$ac_ext >&5
23662
23663ac_cv_lib_Xext_XextAddDisplay=no
23664fi
23665rm -f conftest.err conftest.$ac_objext \
23666      conftest$ac_exeext conftest.$ac_ext
23667LIBS=$ac_check_lib_save_LIBS
23668fi
23669echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XextAddDisplay" >&5
23670echo "${ECHO_T}$ac_cv_lib_Xext_XextAddDisplay" >&6
23671if test $ac_cv_lib_Xext_XextAddDisplay = yes; then
23672  cat >>confdefs.h <<_ACEOF
23673#define HAVE_LIBXEXT 1
23674_ACEOF
23675
23676  LIBS="-lXext $LIBS"
23677
23678else
23679
23680echo "ERROR:  You need libXext to build Eterm.  Verify that you have libXext.a or";
23681echo "        libXext.so installed and that it is located in the X libraries";
23682echo "        directory shown above.  If it is in a different directory, try using";
23683echo "        the --x-libraries parameter to configure.";
23684             { { echo "$as_me:$LINENO: error: Fatal:  libXext not found." >&5
23685echo "$as_me: error: Fatal:  libXext not found." >&2;}
23686   { (exit 1); exit 1; }; }
23687fi
23688
23689
23690echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
23691echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
23692if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
23693  echo $ECHO_N "(cached) $ECHO_C" >&6
23694else
23695  ac_check_lib_save_LIBS=$LIBS
23696LIBS="-lXext  $LIBS"
23697cat >conftest.$ac_ext <<_ACEOF
23698/* confdefs.h.  */
23699_ACEOF
23700cat confdefs.h >>conftest.$ac_ext
23701cat >>conftest.$ac_ext <<_ACEOF
23702/* end confdefs.h.  */
23703
23704/* Override any gcc2 internal prototype to avoid an error.  */
23705#ifdef __cplusplus
23706extern "C"
23707#endif
23708/* We use char because int might match the return type of a gcc2
23709   builtin and then its argument prototype would still apply.  */
23710char XShapeQueryExtension ();
23711int
23712main ()
23713{
23714XShapeQueryExtension ();
23715  ;
23716  return 0;
23717}
23718_ACEOF
23719rm -f conftest.$ac_objext conftest$ac_exeext
23720if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23721  (eval $ac_link) 2>conftest.er1
23722  ac_status=$?
23723  grep -v '^ *+' conftest.er1 >conftest.err
23724  rm -f conftest.er1
23725  cat conftest.err >&5
23726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23727  (exit $ac_status); } &&
23728	 { ac_try='test -z "$ac_c_werror_flag"
23729			 || test ! -s conftest.err'
23730  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23731  (eval $ac_try) 2>&5
23732  ac_status=$?
23733  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23734  (exit $ac_status); }; } &&
23735	 { ac_try='test -s conftest$ac_exeext'
23736  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23737  (eval $ac_try) 2>&5
23738  ac_status=$?
23739  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23740  (exit $ac_status); }; }; then
23741  ac_cv_lib_Xext_XShapeQueryExtension=yes
23742else
23743  echo "$as_me: failed program was:" >&5
23744sed 's/^/| /' conftest.$ac_ext >&5
23745
23746ac_cv_lib_Xext_XShapeQueryExtension=no
23747fi
23748rm -f conftest.err conftest.$ac_objext \
23749      conftest$ac_exeext conftest.$ac_ext
23750LIBS=$ac_check_lib_save_LIBS
23751fi
23752echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
23753echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
23754if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
23755
23756cat >>confdefs.h <<\_ACEOF
23757#define HAVE_X_SHAPE_EXT
23758_ACEOF
23759
23760fi
23761
23762
23763echo "$as_me:$LINENO: checking if Pablo support is wanted" >&5
23764echo $ECHO_N "checking if Pablo support is wanted... $ECHO_C" >&6
23765
23766# Check whether --with-pablo or --without-pablo was given.
23767if test "${with_pablo+set}" = set; then
23768  withval="$with_pablo"
23769
23770            if test "$withval" != "no"; then
23771              echo "$as_me:$LINENO: result: yes" >&5
23772echo "${ECHO_T}yes" >&6
23773              if test "$withval" != "yes"; then
23774                CPPFLAGS="$CPPFLAGS -I${withval}/include"
23775                LDFLAGS="$LDFLAGS -L${withval}/lib"
23776              fi
23777              if test "${ac_cv_header_IOTrace_h+set}" = set; then
23778  echo "$as_me:$LINENO: checking for IOTrace.h" >&5
23779echo $ECHO_N "checking for IOTrace.h... $ECHO_C" >&6
23780if test "${ac_cv_header_IOTrace_h+set}" = set; then
23781  echo $ECHO_N "(cached) $ECHO_C" >&6
23782fi
23783echo "$as_me:$LINENO: result: $ac_cv_header_IOTrace_h" >&5
23784echo "${ECHO_T}$ac_cv_header_IOTrace_h" >&6
23785else
23786  # Is the header compilable?
23787echo "$as_me:$LINENO: checking IOTrace.h usability" >&5
23788echo $ECHO_N "checking IOTrace.h usability... $ECHO_C" >&6
23789cat >conftest.$ac_ext <<_ACEOF
23790/* confdefs.h.  */
23791_ACEOF
23792cat confdefs.h >>conftest.$ac_ext
23793cat >>conftest.$ac_ext <<_ACEOF
23794/* end confdefs.h.  */
23795$ac_includes_default
23796#include <IOTrace.h>
23797_ACEOF
23798rm -f conftest.$ac_objext
23799if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23800  (eval $ac_compile) 2>conftest.er1
23801  ac_status=$?
23802  grep -v '^ *+' conftest.er1 >conftest.err
23803  rm -f conftest.er1
23804  cat conftest.err >&5
23805  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23806  (exit $ac_status); } &&
23807	 { ac_try='test -z "$ac_c_werror_flag"
23808			 || test ! -s conftest.err'
23809  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23810  (eval $ac_try) 2>&5
23811  ac_status=$?
23812  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23813  (exit $ac_status); }; } &&
23814	 { ac_try='test -s conftest.$ac_objext'
23815  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23816  (eval $ac_try) 2>&5
23817  ac_status=$?
23818  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23819  (exit $ac_status); }; }; then
23820  ac_header_compiler=yes
23821else
23822  echo "$as_me: failed program was:" >&5
23823sed 's/^/| /' conftest.$ac_ext >&5
23824
23825ac_header_compiler=no
23826fi
23827rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23828echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23829echo "${ECHO_T}$ac_header_compiler" >&6
23830
23831# Is the header present?
23832echo "$as_me:$LINENO: checking IOTrace.h presence" >&5
23833echo $ECHO_N "checking IOTrace.h presence... $ECHO_C" >&6
23834cat >conftest.$ac_ext <<_ACEOF
23835/* confdefs.h.  */
23836_ACEOF
23837cat confdefs.h >>conftest.$ac_ext
23838cat >>conftest.$ac_ext <<_ACEOF
23839/* end confdefs.h.  */
23840#include <IOTrace.h>
23841_ACEOF
23842if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23843  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23844  ac_status=$?
23845  grep -v '^ *+' conftest.er1 >conftest.err
23846  rm -f conftest.er1
23847  cat conftest.err >&5
23848  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23849  (exit $ac_status); } >/dev/null; then
23850  if test -s conftest.err; then
23851    ac_cpp_err=$ac_c_preproc_warn_flag
23852    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23853  else
23854    ac_cpp_err=
23855  fi
23856else
23857  ac_cpp_err=yes
23858fi
23859if test -z "$ac_cpp_err"; then
23860  ac_header_preproc=yes
23861else
23862  echo "$as_me: failed program was:" >&5
23863sed 's/^/| /' conftest.$ac_ext >&5
23864
23865  ac_header_preproc=no
23866fi
23867rm -f conftest.err conftest.$ac_ext
23868echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23869echo "${ECHO_T}$ac_header_preproc" >&6
23870
23871# So?  What about this header?
23872case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23873  yes:no: )
23874    { echo "$as_me:$LINENO: WARNING: IOTrace.h: accepted by the compiler, rejected by the preprocessor!" >&5
23875echo "$as_me: WARNING: IOTrace.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23876    { echo "$as_me:$LINENO: WARNING: IOTrace.h: proceeding with the compiler's result" >&5
23877echo "$as_me: WARNING: IOTrace.h: proceeding with the compiler's result" >&2;}
23878    ac_header_preproc=yes
23879    ;;
23880  no:yes:* )
23881    { echo "$as_me:$LINENO: WARNING: IOTrace.h: present but cannot be compiled" >&5
23882echo "$as_me: WARNING: IOTrace.h: present but cannot be compiled" >&2;}
23883    { echo "$as_me:$LINENO: WARNING: IOTrace.h:     check for missing prerequisite headers?" >&5
23884echo "$as_me: WARNING: IOTrace.h:     check for missing prerequisite headers?" >&2;}
23885    { echo "$as_me:$LINENO: WARNING: IOTrace.h: see the Autoconf documentation" >&5
23886echo "$as_me: WARNING: IOTrace.h: see the Autoconf documentation" >&2;}
23887    { echo "$as_me:$LINENO: WARNING: IOTrace.h:     section \"Present But Cannot Be Compiled\"" >&5
23888echo "$as_me: WARNING: IOTrace.h:     section \"Present But Cannot Be Compiled\"" >&2;}
23889    { echo "$as_me:$LINENO: WARNING: IOTrace.h: proceeding with the preprocessor's result" >&5
23890echo "$as_me: WARNING: IOTrace.h: proceeding with the preprocessor's result" >&2;}
23891    { echo "$as_me:$LINENO: WARNING: IOTrace.h: in the future, the compiler will take precedence" >&5
23892echo "$as_me: WARNING: IOTrace.h: in the future, the compiler will take precedence" >&2;}
23893    (
23894      cat <<\_ASBOX
23895## ------------------------------------------ ##
23896## Report this to the AC_PACKAGE_NAME lists.  ##
23897## ------------------------------------------ ##
23898_ASBOX
23899    ) |
23900      sed "s/^/$as_me: WARNING:     /" >&2
23901    ;;
23902esac
23903echo "$as_me:$LINENO: checking for IOTrace.h" >&5
23904echo $ECHO_N "checking for IOTrace.h... $ECHO_C" >&6
23905if test "${ac_cv_header_IOTrace_h+set}" = set; then
23906  echo $ECHO_N "(cached) $ECHO_C" >&6
23907else
23908  ac_cv_header_IOTrace_h=$ac_header_preproc
23909fi
23910echo "$as_me:$LINENO: result: $ac_cv_header_IOTrace_h" >&5
23911echo "${ECHO_T}$ac_cv_header_IOTrace_h" >&6
23912
23913fi
23914if test $ac_cv_header_IOTrace_h = yes; then
23915
23916                              echo "$as_me:$LINENO: checking for initIOTrace in -lPabloTraceExt" >&5
23917echo $ECHO_N "checking for initIOTrace in -lPabloTraceExt... $ECHO_C" >&6
23918if test "${ac_cv_lib_PabloTraceExt_initIOTrace+set}" = set; then
23919  echo $ECHO_N "(cached) $ECHO_C" >&6
23920else
23921  ac_check_lib_save_LIBS=$LIBS
23922LIBS="-lPabloTraceExt -lPabloTrace $LIBS"
23923cat >conftest.$ac_ext <<_ACEOF
23924/* confdefs.h.  */
23925_ACEOF
23926cat confdefs.h >>conftest.$ac_ext
23927cat >>conftest.$ac_ext <<_ACEOF
23928/* end confdefs.h.  */
23929
23930/* Override any gcc2 internal prototype to avoid an error.  */
23931#ifdef __cplusplus
23932extern "C"
23933#endif
23934/* We use char because int might match the return type of a gcc2
23935   builtin and then its argument prototype would still apply.  */
23936char initIOTrace ();
23937int
23938main ()
23939{
23940initIOTrace ();
23941  ;
23942  return 0;
23943}
23944_ACEOF
23945rm -f conftest.$ac_objext conftest$ac_exeext
23946if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23947  (eval $ac_link) 2>conftest.er1
23948  ac_status=$?
23949  grep -v '^ *+' conftest.er1 >conftest.err
23950  rm -f conftest.er1
23951  cat conftest.err >&5
23952  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23953  (exit $ac_status); } &&
23954	 { ac_try='test -z "$ac_c_werror_flag"
23955			 || test ! -s conftest.err'
23956  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23957  (eval $ac_try) 2>&5
23958  ac_status=$?
23959  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23960  (exit $ac_status); }; } &&
23961	 { ac_try='test -s conftest$ac_exeext'
23962  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23963  (eval $ac_try) 2>&5
23964  ac_status=$?
23965  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23966  (exit $ac_status); }; }; then
23967  ac_cv_lib_PabloTraceExt_initIOTrace=yes
23968else
23969  echo "$as_me: failed program was:" >&5
23970sed 's/^/| /' conftest.$ac_ext >&5
23971
23972ac_cv_lib_PabloTraceExt_initIOTrace=no
23973fi
23974rm -f conftest.err conftest.$ac_objext \
23975      conftest$ac_exeext conftest.$ac_ext
23976LIBS=$ac_check_lib_save_LIBS
23977fi
23978echo "$as_me:$LINENO: result: $ac_cv_lib_PabloTraceExt_initIOTrace" >&5
23979echo "${ECHO_T}$ac_cv_lib_PabloTraceExt_initIOTrace" >&6
23980if test $ac_cv_lib_PabloTraceExt_initIOTrace = yes; then
23981
23982
23983cat >>confdefs.h <<\_ACEOF
23984#define IOTRACE
23985_ACEOF
23986
23987                                           LIBS="$LIBS -lPabloTraceExt -lPabloTrace"
23988                                           echo "Pablo support enabled.  Headers in ${withval}/include.  Libraries in ${withval}/lib."
23989
23990else
23991
23992                                           echo "*** ERROR:  Pablo support was requested but the Pablo libraries could not be"
23993                                           echo "***         found.  Please check config.log for further information."
23994                                           echo "***         Pablo support will NOT be included."
23995
23996fi
23997
23998
23999else
24000
24001                              echo "*** ERROR:  Pablo support was requested but the Pablo header files could not be"
24002                              echo "***         found.  Please check the value you passed to --with-pablo."
24003                              echo "***         Pablo support will NOT be included."
24004
24005fi
24006
24007
24008            else
24009              echo "$as_me:$LINENO: result: no" >&5
24010echo "${ECHO_T}no" >&6
24011            fi
24012else
24013  echo "$as_me:$LINENO: result: no" >&5
24014echo "${ECHO_T}no" >&6
24015
24016fi;
24017echo "$as_me:$LINENO: checking for Escreen support" >&5
24018echo $ECHO_N "checking for Escreen support... $ECHO_C" >&6
24019# Check whether --enable-escreen or --disable-escreen was given.
24020if test "${enable_escreen+set}" = set; then
24021  enableval="$enable_escreen"
24022
24023            if test "$enableval" = "yes"; then
24024              FOUND_SCREEN=1
24025
24026cat >>confdefs.h <<\_ACEOF
24027#define NS_HAVE_SCREEN 1
24028_ACEOF
24029
24030              echo "$as_me:$LINENO: result: yes" >&5
24031echo "${ECHO_T}yes" >&6
24032            else
24033              echo "$as_me:$LINENO: result: no" >&5
24034echo "${ECHO_T}no" >&6
24035            fi
24036
24037else
24038
24039            FOUND_SCREEN=1
24040
24041cat >>confdefs.h <<\_ACEOF
24042#define NS_HAVE_SCREEN 1
24043_ACEOF
24044
24045            echo "$as_me:$LINENO: result: yes" >&5
24046echo "${ECHO_T}yes" >&6
24047
24048
24049fi;
24050echo "$as_me:$LINENO: checking for Etwin support" >&5
24051echo $ECHO_N "checking for Etwin support... $ECHO_C" >&6
24052# Check whether --enable-etwin or --disable-etwin was given.
24053if test "${enable_etwin+set}" = set; then
24054  enableval="$enable_etwin"
24055
24056            if test "$enableval" = "yes"; then
24057              echo "$as_me:$LINENO: checking for Tw_Open in -lTw" >&5
24058echo $ECHO_N "checking for Tw_Open in -lTw... $ECHO_C" >&6
24059if test "${ac_cv_lib_Tw_Tw_Open+set}" = set; then
24060  echo $ECHO_N "(cached) $ECHO_C" >&6
24061else
24062  ac_check_lib_save_LIBS=$LIBS
24063LIBS="-lTw $GRLIBS $LIBS"
24064cat >conftest.$ac_ext <<_ACEOF
24065/* confdefs.h.  */
24066_ACEOF
24067cat confdefs.h >>conftest.$ac_ext
24068cat >>conftest.$ac_ext <<_ACEOF
24069/* end confdefs.h.  */
24070
24071/* Override any gcc2 internal prototype to avoid an error.  */
24072#ifdef __cplusplus
24073extern "C"
24074#endif
24075/* We use char because int might match the return type of a gcc2
24076   builtin and then its argument prototype would still apply.  */
24077char Tw_Open ();
24078int
24079main ()
24080{
24081Tw_Open ();
24082  ;
24083  return 0;
24084}
24085_ACEOF
24086rm -f conftest.$ac_objext conftest$ac_exeext
24087if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24088  (eval $ac_link) 2>conftest.er1
24089  ac_status=$?
24090  grep -v '^ *+' conftest.er1 >conftest.err
24091  rm -f conftest.er1
24092  cat conftest.err >&5
24093  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24094  (exit $ac_status); } &&
24095	 { ac_try='test -z "$ac_c_werror_flag"
24096			 || test ! -s conftest.err'
24097  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24098  (eval $ac_try) 2>&5
24099  ac_status=$?
24100  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24101  (exit $ac_status); }; } &&
24102	 { ac_try='test -s conftest$ac_exeext'
24103  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24104  (eval $ac_try) 2>&5
24105  ac_status=$?
24106  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24107  (exit $ac_status); }; }; then
24108  ac_cv_lib_Tw_Tw_Open=yes
24109else
24110  echo "$as_me: failed program was:" >&5
24111sed 's/^/| /' conftest.$ac_ext >&5
24112
24113ac_cv_lib_Tw_Tw_Open=no
24114fi
24115rm -f conftest.err conftest.$ac_objext \
24116      conftest$ac_exeext conftest.$ac_ext
24117LIBS=$ac_check_lib_save_LIBS
24118fi
24119echo "$as_me:$LINENO: result: $ac_cv_lib_Tw_Tw_Open" >&5
24120echo "${ECHO_T}$ac_cv_lib_Tw_Tw_Open" >&6
24121if test $ac_cv_lib_Tw_Tw_Open = yes; then
24122  FOUND_LIBTWIN=1
24123else
24124  FOUND_LIBTWIN=0
24125fi
24126
24127              if test "$FOUND_LIBTWIN" -ne "1"; then
24128                { echo "$as_me:$LINENO: WARNING: *** Twin support has been disabled because libTw was not found ***" >&5
24129echo "$as_me: WARNING: *** Twin support has been disabled because libTw was not found ***" >&2;}
24130              else
24131
24132cat >>confdefs.h <<\_ACEOF
24133#define NS_HAVE_TWIN 1
24134_ACEOF
24135
24136                LIBS="$LIBS -lTw"
24137              fi
24138            else
24139              echo "$as_me:$LINENO: result: no" >&5
24140echo "${ECHO_T}no" >&6
24141            fi
24142else
24143  echo "$as_me:$LINENO: result: no" >&5
24144echo "${ECHO_T}no" >&6
24145
24146fi;
24147
24148if test ! -z "$FOUND_SCREEN" || test ! -z "$FOUND_LIBTWIN"; then
24149
24150cat >>confdefs.h <<\_ACEOF
24151#define ESCREEN
24152_ACEOF
24153
24154    echo "$as_me:$LINENO: checking for Escreen startup effects" >&5
24155echo $ECHO_N "checking for Escreen startup effects... $ECHO_C" >&6
24156    # Check whether --enable-escreen-fx or --disable-escreen-fx was given.
24157if test "${enable_escreen_fx+set}" = set; then
24158  enableval="$enable_escreen_fx"
24159
24160            if test "$enableval" = "yes"; then
24161                echo "$as_me:$LINENO: result: yes" >&5
24162echo "${ECHO_T}yes" >&6
24163
24164cat >>confdefs.h <<\_ACEOF
24165#define ESCREEN_FX
24166_ACEOF
24167
24168            else
24169                echo "$as_me:$LINENO: result: no" >&5
24170echo "${ECHO_T}no" >&6
24171            fi
24172
24173else
24174
24175            echo "$as_me:$LINENO: result: no" >&5
24176echo "${ECHO_T}no" >&6
24177
24178
24179fi;
24180fi
24181
24182echo "$as_me:$LINENO: checking if profiling macros should be included" >&5
24183echo $ECHO_N "checking if profiling macros should be included... $ECHO_C" >&6
24184# Check whether --enable-profile or --disable-profile was given.
24185if test "${enable_profile+set}" = set; then
24186  enableval="$enable_profile"
24187
24188            if test "$enableval" = "yes"; then
24189              echo "$as_me:$LINENO: result: yes" >&5
24190echo "${ECHO_T}yes" >&6
24191
24192cat >>confdefs.h <<\_ACEOF
24193#define ENABLE_PROFILE
24194_ACEOF
24195
24196            else
24197              echo "$as_me:$LINENO: result: no" >&5
24198echo "${ECHO_T}no" >&6
24199            fi
24200else
24201  echo "$as_me:$LINENO: result: no" >&5
24202echo "${ECHO_T}no" >&6
24203
24204fi;
24205echo "$as_me:$LINENO: checking for pixmap support" >&5
24206echo $ECHO_N "checking for pixmap support... $ECHO_C" >&6
24207
24208# Check whether --with-imlib or --without-imlib was given.
24209if test "${with_imlib+set}" = set; then
24210  withval="$with_imlib"
24211
24212            if test "$withval" != "no"; then
24213              echo "$as_me:$LINENO: result: yes" >&5
24214echo "${ECHO_T}yes" >&6
24215              if test "$withval" != "yes"; then
24216                CPPFLAGS="$CPPFLAGS -I${withval}/include"
24217                LDFLAGS="$LDFLAGS -L${withval}/lib"
24218              fi
24219              USE_IMLIB=1
24220            else
24221              echo "$as_me:$LINENO: result: no" >&5
24222echo "${ECHO_T}no" >&6
24223              GRLIBS=""
24224              USE_IMLIB=0
24225              { echo "$as_me:$LINENO: WARNING: *** Pixmap support has been disabled at your request.  This ***" >&5
24226echo "$as_me: WARNING: *** Pixmap support has been disabled at your request.  This ***" >&2;}
24227              { echo "$as_me:$LINENO: WARNING: *** is generally a bad idea since it really doesn't save    ***" >&5
24228echo "$as_me: WARNING: *** is generally a bad idea since it really doesn't save    ***" >&2;}
24229              { echo "$as_me:$LINENO: WARNING: *** much memory.  And the developers almost never test that ***" >&5
24230echo "$as_me: WARNING: *** much memory.  And the developers almost never test that ***" >&2;}
24231              { echo "$as_me:$LINENO: WARNING: *** configuration.  So I'd reconsider if I were you....     ***" >&5
24232echo "$as_me: WARNING: *** configuration.  So I'd reconsider if I were you....     ***" >&2;}
24233            fi
24234else
24235  echo "$as_me:$LINENO: result: yes" >&5
24236echo "${ECHO_T}yes" >&6
24237                USE_IMLIB=1
24238
24239fi;
24240if test $USE_IMLIB -eq 1 ; then
24241  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
24242echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
24243if test "${ac_cv_lib_dl_dlopen+set}" = set; then
24244  echo $ECHO_N "(cached) $ECHO_C" >&6
24245else
24246  ac_check_lib_save_LIBS=$LIBS
24247LIBS="-ldl $GRLIBS $LIBS"
24248cat >conftest.$ac_ext <<_ACEOF
24249/* confdefs.h.  */
24250_ACEOF
24251cat confdefs.h >>conftest.$ac_ext
24252cat >>conftest.$ac_ext <<_ACEOF
24253/* end confdefs.h.  */
24254
24255/* Override any gcc2 internal prototype to avoid an error.  */
24256#ifdef __cplusplus
24257extern "C"
24258#endif
24259/* We use char because int might match the return type of a gcc2
24260   builtin and then its argument prototype would still apply.  */
24261char dlopen ();
24262int
24263main ()
24264{
24265dlopen ();
24266  ;
24267  return 0;
24268}
24269_ACEOF
24270rm -f conftest.$ac_objext conftest$ac_exeext
24271if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24272  (eval $ac_link) 2>conftest.er1
24273  ac_status=$?
24274  grep -v '^ *+' conftest.er1 >conftest.err
24275  rm -f conftest.er1
24276  cat conftest.err >&5
24277  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24278  (exit $ac_status); } &&
24279	 { ac_try='test -z "$ac_c_werror_flag"
24280			 || test ! -s conftest.err'
24281  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24282  (eval $ac_try) 2>&5
24283  ac_status=$?
24284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24285  (exit $ac_status); }; } &&
24286	 { ac_try='test -s conftest$ac_exeext'
24287  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24288  (eval $ac_try) 2>&5
24289  ac_status=$?
24290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24291  (exit $ac_status); }; }; then
24292  ac_cv_lib_dl_dlopen=yes
24293else
24294  echo "$as_me: failed program was:" >&5
24295sed 's/^/| /' conftest.$ac_ext >&5
24296
24297ac_cv_lib_dl_dlopen=no
24298fi
24299rm -f conftest.err conftest.$ac_objext \
24300      conftest$ac_exeext conftest.$ac_ext
24301LIBS=$ac_check_lib_save_LIBS
24302fi
24303echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
24304echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
24305if test $ac_cv_lib_dl_dlopen = yes; then
24306  GRLIBS="-ldl"
24307fi
24308
24309  echo "$as_me:$LINENO: checking for TT_Init_FreeType in -lttf" >&5
24310echo $ECHO_N "checking for TT_Init_FreeType in -lttf... $ECHO_C" >&6
24311if test "${ac_cv_lib_ttf_TT_Init_FreeType+set}" = set; then
24312  echo $ECHO_N "(cached) $ECHO_C" >&6
24313else
24314  ac_check_lib_save_LIBS=$LIBS
24315LIBS="-lttf $GRLIBS $LIBS"
24316cat >conftest.$ac_ext <<_ACEOF
24317/* confdefs.h.  */
24318_ACEOF
24319cat confdefs.h >>conftest.$ac_ext
24320cat >>conftest.$ac_ext <<_ACEOF
24321/* end confdefs.h.  */
24322
24323/* Override any gcc2 internal prototype to avoid an error.  */
24324#ifdef __cplusplus
24325extern "C"
24326#endif
24327/* We use char because int might match the return type of a gcc2
24328   builtin and then its argument prototype would still apply.  */
24329char TT_Init_FreeType ();
24330int
24331main ()
24332{
24333TT_Init_FreeType ();
24334  ;
24335  return 0;
24336}
24337_ACEOF
24338rm -f conftest.$ac_objext conftest$ac_exeext
24339if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24340  (eval $ac_link) 2>conftest.er1
24341  ac_status=$?
24342  grep -v '^ *+' conftest.er1 >conftest.err
24343  rm -f conftest.er1
24344  cat conftest.err >&5
24345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24346  (exit $ac_status); } &&
24347	 { ac_try='test -z "$ac_c_werror_flag"
24348			 || test ! -s conftest.err'
24349  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24350  (eval $ac_try) 2>&5
24351  ac_status=$?
24352  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24353  (exit $ac_status); }; } &&
24354	 { ac_try='test -s conftest$ac_exeext'
24355  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24356  (eval $ac_try) 2>&5
24357  ac_status=$?
24358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24359  (exit $ac_status); }; }; then
24360  ac_cv_lib_ttf_TT_Init_FreeType=yes
24361else
24362  echo "$as_me: failed program was:" >&5
24363sed 's/^/| /' conftest.$ac_ext >&5
24364
24365ac_cv_lib_ttf_TT_Init_FreeType=no
24366fi
24367rm -f conftest.err conftest.$ac_objext \
24368      conftest$ac_exeext conftest.$ac_ext
24369LIBS=$ac_check_lib_save_LIBS
24370fi
24371echo "$as_me:$LINENO: result: $ac_cv_lib_ttf_TT_Init_FreeType" >&5
24372echo "${ECHO_T}$ac_cv_lib_ttf_TT_Init_FreeType" >&6
24373if test $ac_cv_lib_ttf_TT_Init_FreeType = yes; then
24374  GRLIBS="-lttf $GRLIBS"
24375fi
24376
24377  echo "$as_me:$LINENO: checking for imlib_create_image in -lImlib2" >&5
24378echo $ECHO_N "checking for imlib_create_image in -lImlib2... $ECHO_C" >&6
24379if test "${ac_cv_lib_Imlib2_imlib_create_image+set}" = set; then
24380  echo $ECHO_N "(cached) $ECHO_C" >&6
24381else
24382  ac_check_lib_save_LIBS=$LIBS
24383LIBS="-lImlib2 $GRLIBS $LIBS"
24384cat >conftest.$ac_ext <<_ACEOF
24385/* confdefs.h.  */
24386_ACEOF
24387cat confdefs.h >>conftest.$ac_ext
24388cat >>conftest.$ac_ext <<_ACEOF
24389/* end confdefs.h.  */
24390
24391/* Override any gcc2 internal prototype to avoid an error.  */
24392#ifdef __cplusplus
24393extern "C"
24394#endif
24395/* We use char because int might match the return type of a gcc2
24396   builtin and then its argument prototype would still apply.  */
24397char imlib_create_image ();
24398int
24399main ()
24400{
24401imlib_create_image ();
24402  ;
24403  return 0;
24404}
24405_ACEOF
24406rm -f conftest.$ac_objext conftest$ac_exeext
24407if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24408  (eval $ac_link) 2>conftest.er1
24409  ac_status=$?
24410  grep -v '^ *+' conftest.er1 >conftest.err
24411  rm -f conftest.er1
24412  cat conftest.err >&5
24413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24414  (exit $ac_status); } &&
24415	 { ac_try='test -z "$ac_c_werror_flag"
24416			 || test ! -s conftest.err'
24417  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24418  (eval $ac_try) 2>&5
24419  ac_status=$?
24420  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24421  (exit $ac_status); }; } &&
24422	 { ac_try='test -s conftest$ac_exeext'
24423  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24424  (eval $ac_try) 2>&5
24425  ac_status=$?
24426  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24427  (exit $ac_status); }; }; then
24428  ac_cv_lib_Imlib2_imlib_create_image=yes
24429else
24430  echo "$as_me: failed program was:" >&5
24431sed 's/^/| /' conftest.$ac_ext >&5
24432
24433ac_cv_lib_Imlib2_imlib_create_image=no
24434fi
24435rm -f conftest.err conftest.$ac_objext \
24436      conftest$ac_exeext conftest.$ac_ext
24437LIBS=$ac_check_lib_save_LIBS
24438fi
24439echo "$as_me:$LINENO: result: $ac_cv_lib_Imlib2_imlib_create_image" >&5
24440echo "${ECHO_T}$ac_cv_lib_Imlib2_imlib_create_image" >&6
24441if test $ac_cv_lib_Imlib2_imlib_create_image = yes; then
24442
24443               GRLIBS="-lImlib2 $GRLIBS"
24444
24445cat >>confdefs.h <<\_ACEOF
24446#define HAVE_LIBIMLIB2
24447_ACEOF
24448
24449
24450cat >>confdefs.h <<\_ACEOF
24451#define PIXMAP_SUPPORT
24452_ACEOF
24453
24454
24455cat >>confdefs.h <<\_ACEOF
24456#define BACKING_STORE
24457_ACEOF
24458
24459
24460else
24461
24462               { echo "$as_me:$LINENO: WARNING: *** Pixmap support has been disabled because Imlib2 was not found ***" >&5
24463echo "$as_me: WARNING: *** Pixmap support has been disabled because Imlib2 was not found ***" >&2;}
24464               { echo "$as_me:$LINENO: WARNING: *** or could not be linked.  Eterm should still work" >&5
24465echo "$as_me: WARNING: *** or could not be linked.  Eterm should still work" >&2;}
24466               { echo "$as_me:$LINENO: WARNING: *** not be very happy.  Check config.log for more detailed        ***" >&5
24467echo "$as_me: WARNING: *** not be very happy.  Check config.log for more detailed        ***" >&2;}
24468               { echo "$as_me:$LINENO: WARNING: *** information on why my attempt to link with Imlib2 failed.     ***" >&5
24469echo "$as_me: WARNING: *** information on why my attempt to link with Imlib2 failed.     ***" >&2;}
24470
24471fi
24472
24473
24474fi
24475
24476echo "$as_me:$LINENO: checking for transparency support" >&5
24477echo $ECHO_N "checking for transparency support... $ECHO_C" >&6
24478# Check whether --enable-trans or --disable-trans was given.
24479if test "${enable_trans+set}" = set; then
24480  enableval="$enable_trans"
24481
24482            if test "$enableval" != "no"; then
24483              echo "$as_me:$LINENO: result: yes" >&5
24484echo "${ECHO_T}yes" >&6
24485
24486cat >>confdefs.h <<\_ACEOF
24487#define PIXMAP_OFFSET
24488_ACEOF
24489
24490            else
24491              echo "$as_me:$LINENO: result: no" >&5
24492echo "${ECHO_T}no" >&6
24493            fi
24494else
24495  echo "$as_me:$LINENO: result: yes" >&5
24496echo "${ECHO_T}yes" >&6
24497
24498cat >>confdefs.h <<\_ACEOF
24499#define PIXMAP_OFFSET
24500_ACEOF
24501
24502
24503fi;
24504
24505echo "$as_me:$LINENO: checking for MMX support" >&5
24506echo $ECHO_N "checking for MMX support... $ECHO_C" >&6
24507HAVE_MMX=""
24508# Check whether --enable-mmx or --disable-mmx was given.
24509if test "${enable_mmx+set}" = set; then
24510  enableval="$enable_mmx"
24511
24512                  test "x$enableval" = "xyes" && HAVE_MMX="yes"
24513
24514else
24515
24516                  case $host_cpu in
24517                      i*86)
24518                          grep mmx /proc/cpuinfo >/dev/null 2>&1 && HAVE_MMX="yes"
24519                          ;;
24520                  esac
24521
24522fi;
24523if test "x$HAVE_MMX" = "xyes"; then
24524    echo "$as_me:$LINENO: result: yes (32-bit)" >&5
24525echo "${ECHO_T}yes (32-bit)" >&6
24526
24527cat >>confdefs.h <<\_ACEOF
24528#define HAVE_MMX
24529_ACEOF
24530
24531else
24532    echo "$as_me:$LINENO: result: no (no MMX detected)" >&5
24533echo "${ECHO_T}no (no MMX detected)" >&6
24534fi
24535
24536
24537if test "x$HAVE_MMX" = "xyes"; then
24538  HAVE_MMX_TRUE=
24539  HAVE_MMX_FALSE='#'
24540else
24541  HAVE_MMX_TRUE='#'
24542  HAVE_MMX_FALSE=
24543fi
24544
24545
24546echo "$as_me:$LINENO: checking for SSE2 support" >&5
24547echo $ECHO_N "checking for SSE2 support... $ECHO_C" >&6
24548HAVE_SSE2=""
24549# Check whether --enable-sse2 or --disable-sse2 was given.
24550if test "${enable_sse2+set}" = set; then
24551  enableval="$enable_sse2"
24552
24553                  test "x$enableval" = "xyes" && HAVE_SSE2="yes"
24554
24555else
24556
24557                  case $host_cpu in
24558                      x86_64)
24559                          grep sse2 /proc/cpuinfo >/dev/null 2>&1 && HAVE_SSE2="yes"
24560                          ;;
24561                  esac
24562
24563fi;
24564if test "x$HAVE_SSE2" = "xyes"; then
24565    echo "$as_me:$LINENO: result: yes" >&5
24566echo "${ECHO_T}yes" >&6
24567
24568cat >>confdefs.h <<\_ACEOF
24569#define HAVE_SSE2
24570_ACEOF
24571
24572else
24573    echo "$as_me:$LINENO: result: no (no SSE2 detected)" >&5
24574echo "${ECHO_T}no (no SSE2 detected)" >&6
24575fi
24576
24577
24578if test "x$HAVE_SSE2" = "xyes"; then
24579  HAVE_SSE2_TRUE=
24580  HAVE_SSE2_FALSE='#'
24581else
24582  HAVE_SSE2_TRUE='#'
24583  HAVE_SSE2_FALSE=
24584fi
24585
24586
24587LIBAST_MIN=5
24588# Extract the first word of "libast-config", so it can be a program name with args.
24589set dummy libast-config; ac_word=$2
24590echo "$as_me:$LINENO: checking for $ac_word" >&5
24591echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24592if test "${ac_cv_prog_LIBAST_CONFIG+set}" = set; then
24593  echo $ECHO_N "(cached) $ECHO_C" >&6
24594else
24595  if test -n "$LIBAST_CONFIG"; then
24596  ac_cv_prog_LIBAST_CONFIG="$LIBAST_CONFIG" # Let the user override the test.
24597else
24598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24599for as_dir in $PATH
24600do
24601  IFS=$as_save_IFS
24602  test -z "$as_dir" && as_dir=.
24603  for ac_exec_ext in '' $ac_executable_extensions; do
24604  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24605    ac_cv_prog_LIBAST_CONFIG="libast-config"
24606    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24607    break 2
24608  fi
24609done
24610done
24611
24612  test -z "$ac_cv_prog_LIBAST_CONFIG" && ac_cv_prog_LIBAST_CONFIG="false"
24613fi
24614fi
24615LIBAST_CONFIG=$ac_cv_prog_LIBAST_CONFIG
24616if test -n "$LIBAST_CONFIG"; then
24617  echo "$as_me:$LINENO: result: $LIBAST_CONFIG" >&5
24618echo "${ECHO_T}$LIBAST_CONFIG" >&6
24619else
24620  echo "$as_me:$LINENO: result: no" >&5
24621echo "${ECHO_T}no" >&6
24622fi
24623
24624if test "$LIBAST_CONFIG" = "false"; then
24625    FOUND_LIBAST=0
24626else
24627    FOUND_LIBAST=`$LIBAST_CONFIG --version | awk -F. '{print $2}'`
24628    CPPFLAGS="$CPPFLAGS `$LIBAST_CONFIG --cppflags`"
24629    LDFLAGS="$LDFLAGS `$LIBAST_CONFIG --ldflags`"
24630    GRLIBS="$GRLIBS `$LIBAST_CONFIG --libs`"
24631fi
24632
24633echo "$as_me:$LINENO: checking for libast_set_program_name in -last" >&5
24634echo $ECHO_N "checking for libast_set_program_name in -last... $ECHO_C" >&6
24635if test "${ac_cv_lib_ast_libast_set_program_name+set}" = set; then
24636  echo $ECHO_N "(cached) $ECHO_C" >&6
24637else
24638  ac_check_lib_save_LIBS=$LIBS
24639LIBS="-last $GRLIBS $LIBS"
24640cat >conftest.$ac_ext <<_ACEOF
24641/* confdefs.h.  */
24642_ACEOF
24643cat confdefs.h >>conftest.$ac_ext
24644cat >>conftest.$ac_ext <<_ACEOF
24645/* end confdefs.h.  */
24646
24647/* Override any gcc2 internal prototype to avoid an error.  */
24648#ifdef __cplusplus
24649extern "C"
24650#endif
24651/* We use char because int might match the return type of a gcc2
24652   builtin and then its argument prototype would still apply.  */
24653char libast_set_program_name ();
24654int
24655main ()
24656{
24657libast_set_program_name ();
24658  ;
24659  return 0;
24660}
24661_ACEOF
24662rm -f conftest.$ac_objext conftest$ac_exeext
24663if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24664  (eval $ac_link) 2>conftest.er1
24665  ac_status=$?
24666  grep -v '^ *+' conftest.er1 >conftest.err
24667  rm -f conftest.er1
24668  cat conftest.err >&5
24669  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24670  (exit $ac_status); } &&
24671	 { ac_try='test -z "$ac_c_werror_flag"
24672			 || test ! -s conftest.err'
24673  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24674  (eval $ac_try) 2>&5
24675  ac_status=$?
24676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24677  (exit $ac_status); }; } &&
24678	 { ac_try='test -s conftest$ac_exeext'
24679  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24680  (eval $ac_try) 2>&5
24681  ac_status=$?
24682  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24683  (exit $ac_status); }; }; then
24684  ac_cv_lib_ast_libast_set_program_name=yes
24685else
24686  echo "$as_me: failed program was:" >&5
24687sed 's/^/| /' conftest.$ac_ext >&5
24688
24689ac_cv_lib_ast_libast_set_program_name=no
24690fi
24691rm -f conftest.err conftest.$ac_objext \
24692      conftest$ac_exeext conftest.$ac_ext
24693LIBS=$ac_check_lib_save_LIBS
24694fi
24695echo "$as_me:$LINENO: result: $ac_cv_lib_ast_libast_set_program_name" >&5
24696echo "${ECHO_T}$ac_cv_lib_ast_libast_set_program_name" >&6
24697if test $ac_cv_lib_ast_libast_set_program_name = yes; then
24698  cat >>confdefs.h <<_ACEOF
24699#define HAVE_LIBAST 1
24700_ACEOF
24701
24702  LIBS="-last $LIBS"
24703
24704else
24705  FOUND_LIBAST=0
24706fi
24707
24708
24709if test "$FOUND_LIBAST" -lt "$LIBAST_MIN"; then
24710  echo "ERROR:  You need LibAST 0.$LIBAST_MIN or higher to build Eterm.  If you already have it,";
24711  echo "        you may have it installed in a strange place, or you may need to run";
24712  echo "        /sbin/ldconfig.  If you don't have it, I can download it for you.";
24713  echo "        Shall I retrieve and build LibAST now (y/n)?";
24714  read ANS
24715  if test "x$ANS" = "xy" -o "x$ANS" = "xyes" -o "x$ANS" = "xY" -o "x$ANS" = "xYES"; then
24716      # Download from CVS server
24717      CVSROOT=":pserver:anonymous@cvs.enlightenment.sourceforge.net:/cvsroot/enlightenment"
24718      test -f $HOME/.cvspass || touch $HOME/.cvspass
24719      grep $CVSROOT $HOME/.cvspass >/dev/null 2>&1 || cvs -d $CVSROOT login
24720      cvs -z3 -d $CVSROOT co -d libast eterm/libast
24721      (cd libast && ./autogen.sh $ac_configure_args && make install && cd .. && rm -rf libast)
24722      if test $? -ne 0; then
24723          echo 'ERROR:  Unable to auto-get libast, sorry.' 1>&2
24724          exit 1
24725      fi
24726      FOUND_LIBAST=1
24727      # Extract the first word of "libast-config", so it can be a program name with args.
24728set dummy libast-config; ac_word=$2
24729echo "$as_me:$LINENO: checking for $ac_word" >&5
24730echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24731if test "${ac_cv_prog_LIBAST_CONFIG+set}" = set; then
24732  echo $ECHO_N "(cached) $ECHO_C" >&6
24733else
24734  if test -n "$LIBAST_CONFIG"; then
24735  ac_cv_prog_LIBAST_CONFIG="$LIBAST_CONFIG" # Let the user override the test.
24736else
24737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24738for as_dir in $PATH
24739do
24740  IFS=$as_save_IFS
24741  test -z "$as_dir" && as_dir=.
24742  for ac_exec_ext in '' $ac_executable_extensions; do
24743  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24744    ac_cv_prog_LIBAST_CONFIG="libast-config"
24745    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24746    break 2
24747  fi
24748done
24749done
24750
24751  test -z "$ac_cv_prog_LIBAST_CONFIG" && ac_cv_prog_LIBAST_CONFIG="false"
24752fi
24753fi
24754LIBAST_CONFIG=$ac_cv_prog_LIBAST_CONFIG
24755if test -n "$LIBAST_CONFIG"; then
24756  echo "$as_me:$LINENO: result: $LIBAST_CONFIG" >&5
24757echo "${ECHO_T}$LIBAST_CONFIG" >&6
24758else
24759  echo "$as_me:$LINENO: result: no" >&5
24760echo "${ECHO_T}no" >&6
24761fi
24762
24763      test "$LIBAST_CONFIG" = "false" && FOUND_LIBAST=0
24764  fi
24765fi
24766if test "$FOUND_LIBAST" -ge "$LIBAST_MIN"; then
24767  if test ! -z "$LIBAST_CONFIG"; then
24768    #GRLIBS="-last $GRLIBS"
24769
24770cat >>confdefs.h <<\_ACEOF
24771#define HAVE_LIBAST
24772_ACEOF
24773
24774    test "$prefix" = "NONE" && prefix="`$LIBAST_CONFIG --prefix`"
24775    SUPPORT_FLAGS="`$LIBAST_CONFIG --support`"
24776    for i in $SUPPORT_FLAGS ; do
24777      case $i in
24778        MMX)
24779
24780cat >>confdefs.h <<\_ACEOF
24781#define LIBAST_MMX_SUPPORT 1
24782_ACEOF
24783
24784          ;;
24785        X11)
24786
24787cat >>confdefs.h <<\_ACEOF
24788#define LIBAST_X11_SUPPORT 1
24789_ACEOF
24790
24791          ;;
24792        Imlib2)
24793
24794cat >>confdefs.h <<\_ACEOF
24795#define LIBAST_IMLIB2_SUPPORT 1
24796_ACEOF
24797
24798          ;;
24799      esac
24800    done
24801  fi
24802else
24803  { { echo "$as_me:$LINENO: error: Fatal:  libast not found." >&5
24804echo "$as_me: error: Fatal:  libast not found." >&2;}
24805   { (exit 1); exit 1; }; }
24806fi
24807
24808echo "$as_me:$LINENO: checking for utmp support" >&5
24809echo $ECHO_N "checking for utmp support... $ECHO_C" >&6
24810# Check whether --enable-utmp or --disable-utmp was given.
24811if test "${enable_utmp+set}" = set; then
24812  enableval="$enable_utmp"
24813
24814            if test "$enableval" != "no"; then
24815              echo "$as_me:$LINENO: result: yes" >&5
24816echo "${ECHO_T}yes" >&6
24817              UTMP=1
24818
24819cat >>confdefs.h <<\_ACEOF
24820#define UTMP_SUPPORT
24821_ACEOF
24822
24823            else
24824              echo "$as_me:$LINENO: result: no" >&5
24825echo "${ECHO_T}no" >&6
24826              UTMP=0
24827            fi
24828else
24829  echo "$as_me:$LINENO: result: yes" >&5
24830echo "${ECHO_T}yes" >&6
24831
24832cat >>confdefs.h <<\_ACEOF
24833#define UTMP_SUPPORT
24834_ACEOF
24835
24836                UTMP=1
24837
24838fi;
24839if test $UTMP -eq 1; then
24840
24841echo "$as_me:$LINENO: checking for addToUtmp in -lutempter" >&5
24842echo $ECHO_N "checking for addToUtmp in -lutempter... $ECHO_C" >&6
24843if test "${ac_cv_lib_utempter_addToUtmp+set}" = set; then
24844  echo $ECHO_N "(cached) $ECHO_C" >&6
24845else
24846  ac_check_lib_save_LIBS=$LIBS
24847LIBS="-lutempter  $LIBS"
24848cat >conftest.$ac_ext <<_ACEOF
24849/* confdefs.h.  */
24850_ACEOF
24851cat confdefs.h >>conftest.$ac_ext
24852cat >>conftest.$ac_ext <<_ACEOF
24853/* end confdefs.h.  */
24854
24855/* Override any gcc2 internal prototype to avoid an error.  */
24856#ifdef __cplusplus
24857extern "C"
24858#endif
24859/* We use char because int might match the return type of a gcc2
24860   builtin and then its argument prototype would still apply.  */
24861char addToUtmp ();
24862int
24863main ()
24864{
24865addToUtmp ();
24866  ;
24867  return 0;
24868}
24869_ACEOF
24870rm -f conftest.$ac_objext conftest$ac_exeext
24871if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24872  (eval $ac_link) 2>conftest.er1
24873  ac_status=$?
24874  grep -v '^ *+' conftest.er1 >conftest.err
24875  rm -f conftest.er1
24876  cat conftest.err >&5
24877  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24878  (exit $ac_status); } &&
24879	 { ac_try='test -z "$ac_c_werror_flag"
24880			 || test ! -s conftest.err'
24881  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24882  (eval $ac_try) 2>&5
24883  ac_status=$?
24884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24885  (exit $ac_status); }; } &&
24886	 { ac_try='test -s conftest$ac_exeext'
24887  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24888  (eval $ac_try) 2>&5
24889  ac_status=$?
24890  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24891  (exit $ac_status); }; }; then
24892  ac_cv_lib_utempter_addToUtmp=yes
24893else
24894  echo "$as_me: failed program was:" >&5
24895sed 's/^/| /' conftest.$ac_ext >&5
24896
24897ac_cv_lib_utempter_addToUtmp=no
24898fi
24899rm -f conftest.err conftest.$ac_objext \
24900      conftest$ac_exeext conftest.$ac_ext
24901LIBS=$ac_check_lib_save_LIBS
24902fi
24903echo "$as_me:$LINENO: result: $ac_cv_lib_utempter_addToUtmp" >&5
24904echo "${ECHO_T}$ac_cv_lib_utempter_addToUtmp" >&6
24905if test $ac_cv_lib_utempter_addToUtmp = yes; then
24906  cat >>confdefs.h <<_ACEOF
24907#define HAVE_LIBUTEMPTER 1
24908_ACEOF
24909
24910  LIBS="-lutempter $LIBS"
24911
24912fi
24913
24914fi
24915echo "$as_me:$LINENO: checking for backspace key configuration" >&5
24916echo $ECHO_N "checking for backspace key configuration... $ECHO_C" >&6
24917
24918# Check whether --with-backspace or --without-backspace was given.
24919if test "${with_backspace+set}" = set; then
24920  withval="$with_backspace"
24921
24922            if test "$withval" = "bs"; then
24923              echo "$as_me:$LINENO: result: forcing Backspace to send Ctrl-H" >&5
24924echo "${ECHO_T}forcing Backspace to send Ctrl-H" >&6
24925
24926cat >>confdefs.h <<\_ACEOF
24927#define FORCE_BACKSPACE
24928_ACEOF
24929
24930            elif test "$withval" = "del"; then
24931              echo "$as_me:$LINENO: result: forcing Backspace to send Ctrl-?" >&5
24932echo "${ECHO_T}forcing Backspace to send Ctrl-?" >&6
24933
24934cat >>confdefs.h <<\_ACEOF
24935#define FORCE_DELETE
24936_ACEOF
24937
24938            elif test "$withval" = "detect" -o "$withval" = "auto"; then
24939              echo "$as_me:$LINENO: result: attempt to auto-detect" >&5
24940echo "${ECHO_T}attempt to auto-detect" >&6
24941            else
24942              echo "$as_me:$LINENO: result: default" >&5
24943echo "${ECHO_T}default" >&6
24944
24945cat >>confdefs.h <<\_ACEOF
24946#define FORCE_BACKSPACE
24947_ACEOF
24948
24949            fi
24950else
24951  echo "$as_me:$LINENO: result: default" >&5
24952echo "${ECHO_T}default" >&6
24953
24954cat >>confdefs.h <<\_ACEOF
24955#define FORCE_BACKSPACE
24956_ACEOF
24957
24958
24959fi;
24960echo "$as_me:$LINENO: checking for delete key configuration" >&5
24961echo $ECHO_N "checking for delete key configuration... $ECHO_C" >&6
24962
24963# Check whether --with-delete or --without-delete was given.
24964if test "${with_delete+set}" = set; then
24965  withval="$with_delete"
24966
24967            if test "$withval" = "server"; then
24968              echo "$as_me:$LINENO: result: X server value" >&5
24969echo "${ECHO_T}X server value" >&6
24970
24971cat >>confdefs.h <<\_ACEOF
24972#define NO_DELETE_KEY
24973_ACEOF
24974
24975            elif test "$withval" = "no"; then
24976              echo "$as_me:$LINENO: result: X server value" >&5
24977echo "${ECHO_T}X server value" >&6
24978
24979cat >>confdefs.h <<\_ACEOF
24980#define NO_DELETE_KEY
24981_ACEOF
24982
24983            elif test "$withval" = "execute"; then
24984              echo "$as_me:$LINENO: result: send execute sequence" >&5
24985echo "${ECHO_T}send execute sequence" >&6
24986            elif test "$withval" = "del"; then
24987              echo "$as_me:$LINENO: result: send Ctrl-?" >&5
24988echo "${ECHO_T}send Ctrl-?" >&6
24989
24990cat >>confdefs.h <<_ACEOF
24991#define KS_DELETE "\177"
24992_ACEOF
24993
24994            else
24995              echo "$as_me:$LINENO: result: forcing Delete to send \"$withval\"" >&5
24996echo "${ECHO_T}forcing Delete to send \"$withval\"" >&6
24997
24998cat >>confdefs.h <<_ACEOF
24999#define KS_DELETE "$withval"
25000_ACEOF
25001
25002            fi
25003else
25004  echo "$as_me:$LINENO: result: default" >&5
25005echo "${ECHO_T}default" >&6
25006
25007fi;
25008XTERM_HOME="\033\133H"
25009LINUX_HOME="\033\1331~"
25010echo "$as_me:$LINENO: checking for home key configuration" >&5
25011echo $ECHO_N "checking for home key configuration... $ECHO_C" >&6
25012
25013# Check whether --with-home or --without-home was given.
25014if test "${with_home+set}" = set; then
25015  withval="$with_home"
25016
25017            if test "$withval" = "xterm"; then
25018              echo "$as_me:$LINENO: result: emulate xterm" >&5
25019echo "${ECHO_T}emulate xterm" >&6
25020
25021cat >>confdefs.h <<_ACEOF
25022#define KS_HOME "$XTERM_HOME"
25023_ACEOF
25024
25025            elif test "$withval" = "linux"; then
25026              echo "$as_me:$LINENO: result: emulate linux console/vt220" >&5
25027echo "${ECHO_T}emulate linux console/vt220" >&6
25028
25029cat >>confdefs.h <<_ACEOF
25030#define KS_HOME "$LINUX_HOME"
25031_ACEOF
25032
25033            else
25034              echo "$as_me:$LINENO: result: default vt102" >&5
25035echo "${ECHO_T}default vt102" >&6
25036            fi
25037else
25038  echo "$as_me:$LINENO: result: default" >&5
25039echo "${ECHO_T}default" >&6
25040
25041fi;
25042XTERM_END="\033\133F"
25043LINUX_END="\033\1334~"
25044echo "$as_me:$LINENO: checking for end key configuration" >&5
25045echo $ECHO_N "checking for end key configuration... $ECHO_C" >&6
25046
25047# Check whether --with-end or --without-end was given.
25048if test "${with_end+set}" = set; then
25049  withval="$with_end"
25050
25051            if test "$withval" = "xterm"; then
25052              echo "$as_me:$LINENO: result: emulate xterm" >&5
25053echo "${ECHO_T}emulate xterm" >&6
25054
25055cat >>confdefs.h <<_ACEOF
25056#define KS_END "$XTERM_END"
25057_ACEOF
25058
25059            elif test "$withval" = "linux"; then
25060              echo "$as_me:$LINENO: result: emulate linux console/vt220" >&5
25061echo "${ECHO_T}emulate linux console/vt220" >&6
25062
25063cat >>confdefs.h <<_ACEOF
25064#define KS_END "$LINUX_END"
25065_ACEOF
25066
25067            else
25068              echo "$as_me:$LINENO: result: default vt102" >&5
25069echo "${ECHO_T}default vt102" >&6
25070            fi
25071else
25072  echo "$as_me:$LINENO: result: default" >&5
25073echo "${ECHO_T}default" >&6
25074
25075fi;
25076echo "$as_me:$LINENO: checking if mousewheel support should be enabled" >&5
25077echo $ECHO_N "checking if mousewheel support should be enabled... $ECHO_C" >&6
25078
25079# Check whether --with-mousewheel or --without-mousewheel was given.
25080if test "${with_mousewheel+set}" = set; then
25081  withval="$with_mousewheel"
25082
25083            if test "$withval" = "no"; then
25084              echo "$as_me:$LINENO: result: no" >&5
25085echo "${ECHO_T}no" >&6
25086            else
25087              echo "$as_me:$LINENO: result: yes" >&5
25088echo "${ECHO_T}yes" >&6
25089
25090cat >>confdefs.h <<\_ACEOF
25091#define MOUSEWHEEL
25092_ACEOF
25093
25094            fi
25095else
25096  echo "$as_me:$LINENO: result: yes" >&5
25097echo "${ECHO_T}yes" >&6
25098
25099cat >>confdefs.h <<\_ACEOF
25100#define MOUSEWHEEL
25101_ACEOF
25102
25103
25104fi;
25105
25106echo "$as_me:$LINENO: checking for automatic encoding" >&5
25107echo $ECHO_N "checking for automatic encoding... $ECHO_C" >&6
25108# Check whether --enable-auto-encoding or --disable-auto-encoding was given.
25109if test "${enable_auto_encoding+set}" = set; then
25110  enableval="$enable_auto_encoding"
25111  if test "$enableval" = "no"; then
25112               echo "$as_me:$LINENO: result: no" >&5
25113echo "${ECHO_T}no" >&6
25114             else
25115               echo "$as_me:$LINENO: result: yes" >&5
25116echo "${ECHO_T}yes" >&6
25117
25118cat >>confdefs.h <<\_ACEOF
25119#define AUTO_ENCODING 1
25120_ACEOF
25121
25122             fi
25123else
25124  echo "$as_me:$LINENO: result: yes" >&5
25125echo "${ECHO_T}yes" >&6
25126
25127cat >>confdefs.h <<\_ACEOF
25128#define AUTO_ENCODING 1
25129_ACEOF
25130
25131
25132fi;
25133
25134MULTICHAR_ENCODING=""
25135echo "$as_me:$LINENO: checking for multi-charset support" >&5
25136echo $ECHO_N "checking for multi-charset support... $ECHO_C" >&6
25137# Check whether --enable-multi-charset or --disable-multi-charset was given.
25138if test "${enable_multi_charset+set}" = set; then
25139  enableval="$enable_multi_charset"
25140
25141            if test "$enableval" = "no"; then
25142              MULTI_CHARSET_TYPE=""
25143            elif test "$enableval" = "yes"; then
25144              MULTI_CHARSET_TYPE="unicode"
25145            else
25146              MULTI_CHARSET_TYPE="$enableval"
25147            fi
25148else
25149
25150            if (xlsfonts 2>/dev/null | grep 10646 >&5 2>&5); then
25151              MULTI_CHARSET_TYPE="unicode"
25152            else
25153              MULTI_CHARSET_TYPE=""
25154            fi
25155
25156fi;
25157
25158if test "x$MULTI_CHARSET_TYPE" != "x"; then
25159  if test "$MULTI_CHARSET_TYPE" = "kanji"; then
25160    echo "$as_me:$LINENO: result: kanji" >&5
25161echo "${ECHO_T}kanji" >&6
25162
25163cat >>confdefs.h <<\_ACEOF
25164#define MULTI_CHARSET
25165_ACEOF
25166
25167    DEF_FONT_IDX=0
25168    MULTICHAR_ENCODING="eucj"
25169    FONT0="7x14"
25170    FONT1="a10"
25171    FONT2="r12"
25172    FONT3="8x16"
25173    FONT4="12x24"
25174    MFONT0="k14"
25175    MFONT1="k10"
25176    MFONT2="k12"
25177    MFONT3="kanji16"
25178    MFONT4="kanji24"
25179  elif test "$MULTI_CHARSET_TYPE" = "euc-kr" -o "$MULTI_CHARSET_TYPE" = "euckr"; then
25180    echo "$as_me:$LINENO: result: euckr" >&5
25181echo "${ECHO_T}euckr" >&6
25182
25183cat >>confdefs.h <<\_ACEOF
25184#define MULTI_CHARSET
25185_ACEOF
25186
25187    DEF_FONT_IDX=1
25188    MULTICHAR_ENCODING="euckr"
25189    FONT0="7x14"
25190    FONT1="8x16"
25191    FONT2="9x18"
25192    FONT3="10x20"
25193    FONT4="12x24"
25194    MFONT0="-*-gulim-medium-r-normal--14-*-*-*-*-140-ksc5601.1987-0"
25195    MFONT1="-*-gulim-medium-r-normal--16-*-*-*-*-160-ksc5601.1987-0"
25196    MFONT2="-*-gulim-medium-r-normal--18-*-*-*-*-180-ksc5601.1987-0"
25197    MFONT3="-*-gulim-medium-r-normal--20-*-*-*-*-200-ksc5601.1987-0"
25198    MFONT4="-*-gulim-medium-r-normal--24-*-*-*-*-240-ksc5601.1987-0"
25199  elif test "$MULTI_CHARSET_TYPE" = "unicode" -o "$MULTI_CHARSET_TYPE" = "utf-8" -o "$MULTI_CHARSET_TYPE" = "utf8"; then
25200    echo "$as_me:$LINENO: result: ISO-10646" >&5
25201echo "${ECHO_T}ISO-10646" >&6
25202
25203cat >>confdefs.h <<\_ACEOF
25204#define MULTI_CHARSET
25205_ACEOF
25206
25207    DEF_FONT_IDX=2
25208    MULTICHAR_ENCODING="iso-10646"
25209    MFONT0="-misc-fixed-medium-r-normal--7-70-75-75-c-50-iso10646-1"
25210    MFONT1="-misc-fixed-medium-r-normal--10-100-75-75-c-60-iso10646-1"
25211    MFONT2="-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso10646-1"
25212    MFONT3="-misc-fixed-medium-r-normal--14-130-75-75-c-70-iso10646-1"
25213    MFONT4="-misc-fixed-medium-r-normal--15-140-75-75-c-90-iso10646-1"
25214    FONT0="5x7"
25215    FONT1="6x10"
25216    FONT2="fixed"
25217    FONT3="8x13"
25218    FONT4="9x15"
25219  elif test "$MULTI_CHARSET_TYPE" = "big5"; then
25220    echo "$as_me:$LINENO: result: big5" >&5
25221echo "${ECHO_T}big5" >&6
25222
25223cat >>confdefs.h <<\_ACEOF
25224#define MULTI_CHARSET
25225_ACEOF
25226
25227    DEF_FONT_IDX=0
25228    MULTICHAR_ENCODING="big5"
25229    FONT0="8x16"
25230    FONT1="9x18"
25231    FONT2="10x20"
25232    FONT3="12x24"
25233    FONT4="13x26"
25234    MFONT0="-*-ming-medium-r-normal--16-*-*-*-c-*-big5-0"
25235    MFONT1="-*-ming-medium-r-normal--18-*-*-*-c-*-big5-0"
25236    MFONT2="-*-ming-medium-r-normal--20-*-*-*-c-*-big5-0"
25237    MFONT3="-*-ming-medium-r-normal--24-*-*-*-c-*-big5-0"
25238    MFONT4="-*-ming-medium-r-normal--26-*-*-*-c-*-big5-0"
25239  else
25240    MULTI_CHARSET_TYPE=""
25241  fi
25242fi
25243if test "x$MULTI_CHARSET_TYPE" = "x"; then
25244  echo "$as_me:$LINENO: result: no" >&5
25245echo "${ECHO_T}no" >&6
25246  DEF_FONT_IDX=2
25247  MULTICHAR_ENCODING=none
25248  MFONT0=none
25249  MFONT1=none
25250  MFONT2=none
25251  MFONT3=none
25252  MFONT4=none
25253  FONT0="5x7"
25254  FONT1="6x10"
25255  FONT2="fixed"
25256  FONT3="8x13"
25257  FONT4="9x15"
25258fi
25259
25260
25261cat >>confdefs.h <<_ACEOF
25262#define DEF_FONT_IDX $DEF_FONT_IDX
25263_ACEOF
25264
25265
25266cat >>confdefs.h <<_ACEOF
25267#define FONT0 "$FONT0"
25268_ACEOF
25269
25270
25271cat >>confdefs.h <<_ACEOF
25272#define FONT1 "$FONT1"
25273_ACEOF
25274
25275
25276cat >>confdefs.h <<_ACEOF
25277#define FONT2 "$FONT2"
25278_ACEOF
25279
25280
25281cat >>confdefs.h <<_ACEOF
25282#define FONT3 "$FONT3"
25283_ACEOF
25284
25285
25286cat >>confdefs.h <<_ACEOF
25287#define FONT4 "$FONT4"
25288_ACEOF
25289
25290
25291
25292
25293
25294
25295
25296export FONT0 FONT1 FONT2 FONT3 FONT4 DEF_FONT_IDX
25297
25298
25299cat >>confdefs.h <<_ACEOF
25300#define MULTICHAR_ENCODING "$MULTICHAR_ENCODING"
25301_ACEOF
25302
25303
25304cat >>confdefs.h <<_ACEOF
25305#define MFONT0 "$MFONT0"
25306_ACEOF
25307
25308
25309cat >>confdefs.h <<_ACEOF
25310#define MFONT1 "$MFONT1"
25311_ACEOF
25312
25313
25314cat >>confdefs.h <<_ACEOF
25315#define MFONT2 "$MFONT2"
25316_ACEOF
25317
25318
25319cat >>confdefs.h <<_ACEOF
25320#define MFONT3 "$MFONT3"
25321_ACEOF
25322
25323
25324cat >>confdefs.h <<_ACEOF
25325#define MFONT4 "$MFONT4"
25326_ACEOF
25327
25328
25329
25330
25331
25332
25333
25334export MFONT0 MFONT1 MFONT2 MFONT3 MFONT4 MULTICHAR_ENCODING
25335
25336echo "$as_me:$LINENO: checking for XIM support" >&5
25337echo $ECHO_N "checking for XIM support... $ECHO_C" >&6
25338# Check whether --enable-xim or --disable-xim was given.
25339if test "${enable_xim+set}" = set; then
25340  enableval="$enable_xim"
25341
25342            if test "$enableval" = "no"; then
25343              echo "$as_me:$LINENO: result: no" >&5
25344echo "${ECHO_T}no" >&6
25345	      XIM="FALSE"
25346            else
25347              echo "$as_me:$LINENO: result: yes" >&5
25348echo "${ECHO_T}yes" >&6
25349
25350cat >>confdefs.h <<\_ACEOF
25351#define USE_XIM
25352_ACEOF
25353
25354	      XIM="TRUE"
25355            fi
25356else
25357  echo "$as_me:$LINENO: result: yes" >&5
25358echo "${ECHO_T}yes" >&6
25359
25360cat >>confdefs.h <<\_ACEOF
25361#define USE_XIM
25362_ACEOF
25363
25364	        XIM="TRUE"
25365
25366fi;
25367
25368# check X11R6 for XIM
25369if test "$XIM" = "TRUE"; then
25370  echo "$as_me:$LINENO: checking for XRegisterIMInstantiateCallback in -lX11" >&5
25371echo $ECHO_N "checking for XRegisterIMInstantiateCallback in -lX11... $ECHO_C" >&6
25372if test "${ac_cv_lib_X11_XRegisterIMInstantiateCallback+set}" = set; then
25373  echo $ECHO_N "(cached) $ECHO_C" >&6
25374else
25375  ac_check_lib_save_LIBS=$LIBS
25376LIBS="-lX11  $LIBS"
25377cat >conftest.$ac_ext <<_ACEOF
25378/* confdefs.h.  */
25379_ACEOF
25380cat confdefs.h >>conftest.$ac_ext
25381cat >>conftest.$ac_ext <<_ACEOF
25382/* end confdefs.h.  */
25383
25384/* Override any gcc2 internal prototype to avoid an error.  */
25385#ifdef __cplusplus
25386extern "C"
25387#endif
25388/* We use char because int might match the return type of a gcc2
25389   builtin and then its argument prototype would still apply.  */
25390char XRegisterIMInstantiateCallback ();
25391int
25392main ()
25393{
25394XRegisterIMInstantiateCallback ();
25395  ;
25396  return 0;
25397}
25398_ACEOF
25399rm -f conftest.$ac_objext conftest$ac_exeext
25400if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25401  (eval $ac_link) 2>conftest.er1
25402  ac_status=$?
25403  grep -v '^ *+' conftest.er1 >conftest.err
25404  rm -f conftest.er1
25405  cat conftest.err >&5
25406  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25407  (exit $ac_status); } &&
25408	 { ac_try='test -z "$ac_c_werror_flag"
25409			 || test ! -s conftest.err'
25410  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25411  (eval $ac_try) 2>&5
25412  ac_status=$?
25413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25414  (exit $ac_status); }; } &&
25415	 { ac_try='test -s conftest$ac_exeext'
25416  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25417  (eval $ac_try) 2>&5
25418  ac_status=$?
25419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25420  (exit $ac_status); }; }; then
25421  ac_cv_lib_X11_XRegisterIMInstantiateCallback=yes
25422else
25423  echo "$as_me: failed program was:" >&5
25424sed 's/^/| /' conftest.$ac_ext >&5
25425
25426ac_cv_lib_X11_XRegisterIMInstantiateCallback=no
25427fi
25428rm -f conftest.err conftest.$ac_objext \
25429      conftest$ac_exeext conftest.$ac_ext
25430LIBS=$ac_check_lib_save_LIBS
25431fi
25432echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XRegisterIMInstantiateCallback" >&5
25433echo "${ECHO_T}$ac_cv_lib_X11_XRegisterIMInstantiateCallback" >&6
25434if test $ac_cv_lib_X11_XRegisterIMInstantiateCallback = yes; then
25435
25436cat >>confdefs.h <<\_ACEOF
25437#define USE_X11R6_XIM
25438_ACEOF
25439
25440fi
25441
25442fi
25443
25444# Check for XResource extension
25445echo "$as_me:$LINENO: checking for X11/extensions/XRes.h" >&5
25446echo $ECHO_N "checking for X11/extensions/XRes.h... $ECHO_C" >&6
25447if test "${ac_cv_header_X11_extensions_XRes_h+set}" = set; then
25448  echo $ECHO_N "(cached) $ECHO_C" >&6
25449else
25450  cat >conftest.$ac_ext <<_ACEOF
25451/* confdefs.h.  */
25452_ACEOF
25453cat confdefs.h >>conftest.$ac_ext
25454cat >>conftest.$ac_ext <<_ACEOF
25455/* end confdefs.h.  */
25456
25457#ifdef HAVE_X11_X_H
25458#  include <X11/X.h>
25459#endif
25460#ifdef HAVE_X11_XLIB_H
25461#  include <X11/Xlib.h>
25462#endif
25463
25464
25465#include <X11/extensions/XRes.h>
25466_ACEOF
25467rm -f conftest.$ac_objext
25468if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25469  (eval $ac_compile) 2>conftest.er1
25470  ac_status=$?
25471  grep -v '^ *+' conftest.er1 >conftest.err
25472  rm -f conftest.er1
25473  cat conftest.err >&5
25474  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25475  (exit $ac_status); } &&
25476	 { ac_try='test -z "$ac_c_werror_flag"
25477			 || test ! -s conftest.err'
25478  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25479  (eval $ac_try) 2>&5
25480  ac_status=$?
25481  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25482  (exit $ac_status); }; } &&
25483	 { ac_try='test -s conftest.$ac_objext'
25484  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25485  (eval $ac_try) 2>&5
25486  ac_status=$?
25487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25488  (exit $ac_status); }; }; then
25489  ac_cv_header_X11_extensions_XRes_h=yes
25490else
25491  echo "$as_me: failed program was:" >&5
25492sed 's/^/| /' conftest.$ac_ext >&5
25493
25494ac_cv_header_X11_extensions_XRes_h=no
25495fi
25496rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25497fi
25498echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_XRes_h" >&5
25499echo "${ECHO_T}$ac_cv_header_X11_extensions_XRes_h" >&6
25500if test $ac_cv_header_X11_extensions_XRes_h = yes; then
25501
25502
25503cat >>confdefs.h <<\_ACEOF
25504#define HAVE_X11_EXTENSIONS_XRES_H
25505_ACEOF
25506
25507
25508fi
25509
25510
25511echo "$as_me:$LINENO: checking for XResQueryExtension in -lXRes" >&5
25512echo $ECHO_N "checking for XResQueryExtension in -lXRes... $ECHO_C" >&6
25513if test "${ac_cv_lib_XRes_XResQueryExtension+set}" = set; then
25514  echo $ECHO_N "(cached) $ECHO_C" >&6
25515else
25516  ac_check_lib_save_LIBS=$LIBS
25517LIBS="-lXRes  $LIBS"
25518cat >conftest.$ac_ext <<_ACEOF
25519/* confdefs.h.  */
25520_ACEOF
25521cat confdefs.h >>conftest.$ac_ext
25522cat >>conftest.$ac_ext <<_ACEOF
25523/* end confdefs.h.  */
25524
25525/* Override any gcc2 internal prototype to avoid an error.  */
25526#ifdef __cplusplus
25527extern "C"
25528#endif
25529/* We use char because int might match the return type of a gcc2
25530   builtin and then its argument prototype would still apply.  */
25531char XResQueryExtension ();
25532int
25533main ()
25534{
25535XResQueryExtension ();
25536  ;
25537  return 0;
25538}
25539_ACEOF
25540rm -f conftest.$ac_objext conftest$ac_exeext
25541if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25542  (eval $ac_link) 2>conftest.er1
25543  ac_status=$?
25544  grep -v '^ *+' conftest.er1 >conftest.err
25545  rm -f conftest.er1
25546  cat conftest.err >&5
25547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25548  (exit $ac_status); } &&
25549	 { ac_try='test -z "$ac_c_werror_flag"
25550			 || test ! -s conftest.err'
25551  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25552  (eval $ac_try) 2>&5
25553  ac_status=$?
25554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25555  (exit $ac_status); }; } &&
25556	 { ac_try='test -s conftest$ac_exeext'
25557  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25558  (eval $ac_try) 2>&5
25559  ac_status=$?
25560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25561  (exit $ac_status); }; }; then
25562  ac_cv_lib_XRes_XResQueryExtension=yes
25563else
25564  echo "$as_me: failed program was:" >&5
25565sed 's/^/| /' conftest.$ac_ext >&5
25566
25567ac_cv_lib_XRes_XResQueryExtension=no
25568fi
25569rm -f conftest.err conftest.$ac_objext \
25570      conftest$ac_exeext conftest.$ac_ext
25571LIBS=$ac_check_lib_save_LIBS
25572fi
25573echo "$as_me:$LINENO: result: $ac_cv_lib_XRes_XResQueryExtension" >&5
25574echo "${ECHO_T}$ac_cv_lib_XRes_XResQueryExtension" >&6
25575if test $ac_cv_lib_XRes_XResQueryExtension = yes; then
25576
25577                 GRLIBS="$GRLIBS -lXRes"
25578
25579cat >>confdefs.h <<\_ACEOF
25580#define HAVE_XRES_EXT
25581_ACEOF
25582
25583
25584fi
25585
25586
25587echo "$as_me:$LINENO: checking for Greek keyboard support" >&5
25588echo $ECHO_N "checking for Greek keyboard support... $ECHO_C" >&6
25589# Check whether --enable-greek or --disable-greek was given.
25590if test "${enable_greek+set}" = set; then
25591  enableval="$enable_greek"
25592
25593            if test "$enableval" = "yes"; then
25594              echo "$as_me:$LINENO: result: yes" >&5
25595echo "${ECHO_T}yes" >&6
25596
25597cat >>confdefs.h <<\_ACEOF
25598#define GREEK_SUPPORT
25599_ACEOF
25600
25601            else
25602              echo "$as_me:$LINENO: result: no" >&5
25603echo "${ECHO_T}no" >&6
25604            fi
25605else
25606  echo "$as_me:$LINENO: result: no" >&5
25607echo "${ECHO_T}no" >&6
25608
25609fi;
25610
25611
25612# Check whether --with-terminfo or --without-terminfo was given.
25613if test "${with_terminfo+set}" = set; then
25614  withval="$with_terminfo"
25615
25616            if test "$withval" = "no"; then
25617              TIC=true
25618            fi
25619
25620fi;
25621
25622
25623# Check whether --with-theme-update or --without-theme-update was given.
25624if test "${with_theme_update+set}" = set; then
25625  withval="$with_theme_update"
25626
25627            if test "$withval" = "yes"; then
25628              REMOVE_THEMES=yes
25629            else
25630              REMOVE_THEMES=no
25631            fi
25632else
25633  REMOVE_THEMES=no
25634
25635fi;
25636
25637
25638
25639if test "x$prefix" = xNONE; then
25640  echo $ECHO_N "checking for prefix by $ECHO_C" >&6
25641  # Extract the first word of "Eterm", so it can be a program name with args.
25642set dummy Eterm; ac_word=$2
25643echo "$as_me:$LINENO: checking for $ac_word" >&5
25644echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25645if test "${ac_cv_path_ac_prefix_program+set}" = set; then
25646  echo $ECHO_N "(cached) $ECHO_C" >&6
25647else
25648  case $ac_prefix_program in
25649  [\\/]* | ?:[\\/]*)
25650  ac_cv_path_ac_prefix_program="$ac_prefix_program" # Let the user override the test with a path.
25651  ;;
25652  *)
25653  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25654for as_dir in $PATH
25655do
25656  IFS=$as_save_IFS
25657  test -z "$as_dir" && as_dir=.
25658  for ac_exec_ext in '' $ac_executable_extensions; do
25659  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25660    ac_cv_path_ac_prefix_program="$as_dir/$ac_word$ac_exec_ext"
25661    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25662    break 2
25663  fi
25664done
25665done
25666
25667  ;;
25668esac
25669fi
25670ac_prefix_program=$ac_cv_path_ac_prefix_program
25671
25672if test -n "$ac_prefix_program"; then
25673  echo "$as_me:$LINENO: result: $ac_prefix_program" >&5
25674echo "${ECHO_T}$ac_prefix_program" >&6
25675else
25676  echo "$as_me:$LINENO: result: no" >&5
25677echo "${ECHO_T}no" >&6
25678fi
25679
25680  if test -n "$ac_prefix_program"; then
25681    prefix=`(dirname "$ac_prefix_program") 2>/dev/null ||
25682$as_expr X"$ac_prefix_program" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25683	 X"$ac_prefix_program" : 'X\(//\)[^/]' \| \
25684	 X"$ac_prefix_program" : 'X\(//\)$' \| \
25685	 X"$ac_prefix_program" : 'X\(/\)' \| \
25686	 .     : '\(.\)' 2>/dev/null ||
25687echo X"$ac_prefix_program" |
25688    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25689  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25690  	  /^X\(\/\/\)$/{ s//\1/; q; }
25691  	  /^X\(\/\).*/{ s//\1/; q; }
25692  	  s/.*/./; q'`
25693    prefix=`(dirname "$prefix") 2>/dev/null ||
25694$as_expr X"$prefix" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25695	 X"$prefix" : 'X\(//\)[^/]' \| \
25696	 X"$prefix" : 'X\(//\)$' \| \
25697	 X"$prefix" : 'X\(/\)' \| \
25698	 .     : '\(.\)' 2>/dev/null ||
25699echo X"$prefix" |
25700    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25701  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25702  	  /^X\(\/\/\)$/{ s//\1/; q; }
25703  	  /^X\(\/\).*/{ s//\1/; q; }
25704  	  s/.*/./; q'`
25705  fi
25706fi
25707
25708if test "x$prefix" = xNONE; then
25709  echo $ECHO_N "checking for prefix by $ECHO_C" >&6
25710  # Extract the first word of "gcc", so it can be a program name with args.
25711set dummy gcc; ac_word=$2
25712echo "$as_me:$LINENO: checking for $ac_word" >&5
25713echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25714if test "${ac_cv_path_ac_prefix_program+set}" = set; then
25715  echo $ECHO_N "(cached) $ECHO_C" >&6
25716else
25717  case $ac_prefix_program in
25718  [\\/]* | ?:[\\/]*)
25719  ac_cv_path_ac_prefix_program="$ac_prefix_program" # Let the user override the test with a path.
25720  ;;
25721  *)
25722  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25723for as_dir in $PATH
25724do
25725  IFS=$as_save_IFS
25726  test -z "$as_dir" && as_dir=.
25727  for ac_exec_ext in '' $ac_executable_extensions; do
25728  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25729    ac_cv_path_ac_prefix_program="$as_dir/$ac_word$ac_exec_ext"
25730    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25731    break 2
25732  fi
25733done
25734done
25735
25736  ;;
25737esac
25738fi
25739ac_prefix_program=$ac_cv_path_ac_prefix_program
25740
25741if test -n "$ac_prefix_program"; then
25742  echo "$as_me:$LINENO: result: $ac_prefix_program" >&5
25743echo "${ECHO_T}$ac_prefix_program" >&6
25744else
25745  echo "$as_me:$LINENO: result: no" >&5
25746echo "${ECHO_T}no" >&6
25747fi
25748
25749  if test -n "$ac_prefix_program"; then
25750    prefix=`(dirname "$ac_prefix_program") 2>/dev/null ||
25751$as_expr X"$ac_prefix_program" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25752	 X"$ac_prefix_program" : 'X\(//\)[^/]' \| \
25753	 X"$ac_prefix_program" : 'X\(//\)$' \| \
25754	 X"$ac_prefix_program" : 'X\(/\)' \| \
25755	 .     : '\(.\)' 2>/dev/null ||
25756echo X"$ac_prefix_program" |
25757    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25758  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25759  	  /^X\(\/\/\)$/{ s//\1/; q; }
25760  	  /^X\(\/\).*/{ s//\1/; q; }
25761  	  s/.*/./; q'`
25762    prefix=`(dirname "$prefix") 2>/dev/null ||
25763$as_expr X"$prefix" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25764	 X"$prefix" : 'X\(//\)[^/]' \| \
25765	 X"$prefix" : 'X\(//\)$' \| \
25766	 X"$prefix" : 'X\(/\)' \| \
25767	 .     : '\(.\)' 2>/dev/null ||
25768echo X"$prefix" |
25769    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25770  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25771  	  /^X\(\/\/\)$/{ s//\1/; q; }
25772  	  /^X\(\/\).*/{ s//\1/; q; }
25773  	  s/.*/./; q'`
25774  fi
25775fi
25776
25777if test "$prefix" = "NONE"; then
25778  prefix=$ac_default_prefix
25779fi
25780if test "$exec_prefix" = "NONE"; then
25781  exec_prefix=$prefix
25782fi
25783
25784# Check whether --enable-stack-trace or --disable-stack-trace was given.
25785if test "${enable_stack_trace+set}" = set; then
25786  enableval="$enable_stack_trace"
25787
25788  if test "$enableval" = "no"; then
25789
25790cat >>confdefs.h <<\_ACEOF
25791#define NO_STACK_TRACE
25792_ACEOF
25793
25794    NO_STACK_TRACE=1
25795  fi
25796
25797fi;
25798
25799if test "$NO_STACK_TRACE" != "1"; then
25800  # Extract the first word of "dbx", so it can be a program name with args.
25801set dummy dbx; ac_word=$2
25802echo "$as_me:$LINENO: checking for $ac_word" >&5
25803echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25804if test "${ac_cv_path_DBX+set}" = set; then
25805  echo $ECHO_N "(cached) $ECHO_C" >&6
25806else
25807  case $DBX in
25808  [\\/]* | ?:[\\/]*)
25809  ac_cv_path_DBX="$DBX" # Let the user override the test with a path.
25810  ;;
25811  *)
25812  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25813for as_dir in $PATH
25814do
25815  IFS=$as_save_IFS
25816  test -z "$as_dir" && as_dir=.
25817  for ac_exec_ext in '' $ac_executable_extensions; do
25818  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25819    ac_cv_path_DBX="$as_dir/$ac_word$ac_exec_ext"
25820    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25821    break 2
25822  fi
25823done
25824done
25825
25826  test -z "$ac_cv_path_DBX" && ac_cv_path_DBX="no"
25827  ;;
25828esac
25829fi
25830DBX=$ac_cv_path_DBX
25831
25832if test -n "$DBX"; then
25833  echo "$as_me:$LINENO: result: $DBX" >&5
25834echo "${ECHO_T}$DBX" >&6
25835else
25836  echo "$as_me:$LINENO: result: no" >&5
25837echo "${ECHO_T}no" >&6
25838fi
25839
25840  if test "$DBX" != "no"; then
25841
25842cat >>confdefs.h <<_ACEOF
25843#define DBX "$DBX"
25844_ACEOF
25845
25846  fi
25847  # Extract the first word of "gdb", so it can be a program name with args.
25848set dummy gdb; ac_word=$2
25849echo "$as_me:$LINENO: checking for $ac_word" >&5
25850echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25851if test "${ac_cv_path_GDB+set}" = set; then
25852  echo $ECHO_N "(cached) $ECHO_C" >&6
25853else
25854  case $GDB in
25855  [\\/]* | ?:[\\/]*)
25856  ac_cv_path_GDB="$GDB" # Let the user override the test with a path.
25857  ;;
25858  *)
25859  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25860for as_dir in $PATH
25861do
25862  IFS=$as_save_IFS
25863  test -z "$as_dir" && as_dir=.
25864  for ac_exec_ext in '' $ac_executable_extensions; do
25865  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25866    ac_cv_path_GDB="$as_dir/$ac_word$ac_exec_ext"
25867    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25868    break 2
25869  fi
25870done
25871done
25872
25873  test -z "$ac_cv_path_GDB" && ac_cv_path_GDB="no"
25874  ;;
25875esac
25876fi
25877GDB=$ac_cv_path_GDB
25878
25879if test -n "$GDB"; then
25880  echo "$as_me:$LINENO: result: $GDB" >&5
25881echo "${ECHO_T}$GDB" >&6
25882else
25883  echo "$as_me:$LINENO: result: no" >&5
25884echo "${ECHO_T}no" >&6
25885fi
25886
25887  if test "$GDB" != "no"; then
25888
25889cat >>confdefs.h <<_ACEOF
25890#define GDB "$GDB"
25891_ACEOF
25892
25893  fi
25894  # Extract the first word of "pstack", so it can be a program name with args.
25895set dummy pstack; ac_word=$2
25896echo "$as_me:$LINENO: checking for $ac_word" >&5
25897echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25898if test "${ac_cv_path_PSTACK+set}" = set; then
25899  echo $ECHO_N "(cached) $ECHO_C" >&6
25900else
25901  case $PSTACK in
25902  [\\/]* | ?:[\\/]*)
25903  ac_cv_path_PSTACK="$PSTACK" # Let the user override the test with a path.
25904  ;;
25905  *)
25906  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25907as_dummy="$PATH:/usr/proc/bin:/usr/sbin"
25908for as_dir in $as_dummy
25909do
25910  IFS=$as_save_IFS
25911  test -z "$as_dir" && as_dir=.
25912  for ac_exec_ext in '' $ac_executable_extensions; do
25913  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25914    ac_cv_path_PSTACK="$as_dir/$ac_word$ac_exec_ext"
25915    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25916    break 2
25917  fi
25918done
25919done
25920
25921  test -z "$ac_cv_path_PSTACK" && ac_cv_path_PSTACK="no"
25922  ;;
25923esac
25924fi
25925PSTACK=$ac_cv_path_PSTACK
25926
25927if test -n "$PSTACK"; then
25928  echo "$as_me:$LINENO: result: $PSTACK" >&5
25929echo "${ECHO_T}$PSTACK" >&6
25930else
25931  echo "$as_me:$LINENO: result: no" >&5
25932echo "${ECHO_T}no" >&6
25933fi
25934
25935  if test "$PSTACK" != "no"; then
25936
25937cat >>confdefs.h <<_ACEOF
25938#define PSTACK "$PSTACK"
25939_ACEOF
25940
25941  fi
25942  echo "$as_me:$LINENO: checking for U_STACK_TRACE in -lcl" >&5
25943echo $ECHO_N "checking for U_STACK_TRACE in -lcl... $ECHO_C" >&6
25944if test "${ac_cv_lib_cl_U_STACK_TRACE+set}" = set; then
25945  echo $ECHO_N "(cached) $ECHO_C" >&6
25946else
25947  ac_check_lib_save_LIBS=$LIBS
25948LIBS="-lcl  $LIBS"
25949cat >conftest.$ac_ext <<_ACEOF
25950/* confdefs.h.  */
25951_ACEOF
25952cat confdefs.h >>conftest.$ac_ext
25953cat >>conftest.$ac_ext <<_ACEOF
25954/* end confdefs.h.  */
25955
25956/* Override any gcc2 internal prototype to avoid an error.  */
25957#ifdef __cplusplus
25958extern "C"
25959#endif
25960/* We use char because int might match the return type of a gcc2
25961   builtin and then its argument prototype would still apply.  */
25962char U_STACK_TRACE ();
25963int
25964main ()
25965{
25966U_STACK_TRACE ();
25967  ;
25968  return 0;
25969}
25970_ACEOF
25971rm -f conftest.$ac_objext conftest$ac_exeext
25972if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25973  (eval $ac_link) 2>conftest.er1
25974  ac_status=$?
25975  grep -v '^ *+' conftest.er1 >conftest.err
25976  rm -f conftest.er1
25977  cat conftest.err >&5
25978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25979  (exit $ac_status); } &&
25980	 { ac_try='test -z "$ac_c_werror_flag"
25981			 || test ! -s conftest.err'
25982  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25983  (eval $ac_try) 2>&5
25984  ac_status=$?
25985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25986  (exit $ac_status); }; } &&
25987	 { ac_try='test -s conftest$ac_exeext'
25988  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25989  (eval $ac_try) 2>&5
25990  ac_status=$?
25991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25992  (exit $ac_status); }; }; then
25993  ac_cv_lib_cl_U_STACK_TRACE=yes
25994else
25995  echo "$as_me: failed program was:" >&5
25996sed 's/^/| /' conftest.$ac_ext >&5
25997
25998ac_cv_lib_cl_U_STACK_TRACE=no
25999fi
26000rm -f conftest.err conftest.$ac_objext \
26001      conftest$ac_exeext conftest.$ac_ext
26002LIBS=$ac_check_lib_save_LIBS
26003fi
26004echo "$as_me:$LINENO: result: $ac_cv_lib_cl_U_STACK_TRACE" >&5
26005echo "${ECHO_T}$ac_cv_lib_cl_U_STACK_TRACE" >&6
26006if test $ac_cv_lib_cl_U_STACK_TRACE = yes; then
26007  LIBS="$LIBS -lcl"
26008fi
26009
26010fi
26011
26012echo "$as_me:$LINENO: checking for Linux 2.1 or higher" >&5
26013echo $ECHO_N "checking for Linux 2.1 or higher... $ECHO_C" >&6
26014OS_NAME=`uname -s`
26015if test "$OS_NAME" = "Linux"; then
26016  OS_REV=`uname -r`
26017  OS_MAJOR=`echo $OS_REV | cut -d. -f1`
26018  OS_MINOR=`echo $OS_REV | cut -d. -f2`
26019  if test "$OS_MAJOR" -ge "2" -a "$OS_MINOR" -ge "1"; then
26020    echo "$as_me:$LINENO: result: yes" >&5
26021echo "${ECHO_T}yes" >&6
26022
26023cat >>confdefs.h <<\_ACEOF
26024#define NEED_LINUX_HACK
26025_ACEOF
26026
26027  else
26028    echo "$as_me:$LINENO: result: no" >&5
26029echo "${ECHO_T}no" >&6
26030  fi
26031else
26032  echo "$as_me:$LINENO: result: no" >&5
26033echo "${ECHO_T}no" >&6
26034fi
26035
26036echo "$as_me:$LINENO: checking if we should enable name reporting escape sequences" >&5
26037echo $ECHO_N "checking if we should enable name reporting escape sequences... $ECHO_C" >&6
26038# Check whether --enable-name-reporting-escapes or --disable-name-reporting-escapes was given.
26039if test "${enable_name_reporting_escapes+set}" = set; then
26040  enableval="$enable_name_reporting_escapes"
26041
26042              if test "$enableval" = "yes"; then
26043                  echo "$as_me:$LINENO: result: yes" >&5
26044echo "${ECHO_T}yes" >&6
26045
26046cat >>confdefs.h <<\_ACEOF
26047#define ENABLE_NAME_REPORTING_ESCAPES 1
26048_ACEOF
26049
26050              else
26051                  echo "$as_me:$LINENO: result: no" >&5
26052echo "${ECHO_T}no" >&6
26053              fi
26054
26055else
26056  echo "$as_me:$LINENO: result: no" >&5
26057echo "${ECHO_T}no" >&6
26058fi;
26059
26060
26061# Check whether --with-sense-of-humor or --without-sense-of-humor was given.
26062if test "${with_sense_of_humor+set}" = set; then
26063  withval="$with_sense_of_humor"
26064
26065            if test "$withval" = "no"; then
26066              HUMOR=none
26067            fi
26068
26069fi;
26070
26071if test -z "$HUMOR"; then
26072
26073echo "$as_me:$LINENO: checking for life_signs in -lKenny" >&5
26074echo $ECHO_N "checking for life_signs in -lKenny... $ECHO_C" >&6
26075if test "${ac_cv_lib_Kenny_life_signs+set}" = set; then
26076  echo $ECHO_N "(cached) $ECHO_C" >&6
26077else
26078  ac_check_lib_save_LIBS=$LIBS
26079LIBS="-lKenny  $LIBS"
26080cat >conftest.$ac_ext <<_ACEOF
26081/* confdefs.h.  */
26082_ACEOF
26083cat confdefs.h >>conftest.$ac_ext
26084cat >>conftest.$ac_ext <<_ACEOF
26085/* end confdefs.h.  */
26086
26087/* Override any gcc2 internal prototype to avoid an error.  */
26088#ifdef __cplusplus
26089extern "C"
26090#endif
26091/* We use char because int might match the return type of a gcc2
26092   builtin and then its argument prototype would still apply.  */
26093char life_signs ();
26094int
26095main ()
26096{
26097life_signs ();
26098  ;
26099  return 0;
26100}
26101_ACEOF
26102rm -f conftest.$ac_objext conftest$ac_exeext
26103if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26104  (eval $ac_link) 2>conftest.er1
26105  ac_status=$?
26106  grep -v '^ *+' conftest.er1 >conftest.err
26107  rm -f conftest.er1
26108  cat conftest.err >&5
26109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26110  (exit $ac_status); } &&
26111	 { ac_try='test -z "$ac_c_werror_flag"
26112			 || test ! -s conftest.err'
26113  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26114  (eval $ac_try) 2>&5
26115  ac_status=$?
26116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26117  (exit $ac_status); }; } &&
26118	 { ac_try='test -s conftest$ac_exeext'
26119  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26120  (eval $ac_try) 2>&5
26121  ac_status=$?
26122  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26123  (exit $ac_status); }; }; then
26124  ac_cv_lib_Kenny_life_signs=yes
26125else
26126  echo "$as_me: failed program was:" >&5
26127sed 's/^/| /' conftest.$ac_ext >&5
26128
26129ac_cv_lib_Kenny_life_signs=no
26130fi
26131rm -f conftest.err conftest.$ac_objext \
26132      conftest$ac_exeext conftest.$ac_ext
26133LIBS=$ac_check_lib_save_LIBS
26134fi
26135echo "$as_me:$LINENO: result: $ac_cv_lib_Kenny_life_signs" >&5
26136echo "${ECHO_T}$ac_cv_lib_Kenny_life_signs" >&6
26137if test $ac_cv_lib_Kenny_life_signs = yes; then
26138  cat >>confdefs.h <<_ACEOF
26139#define HAVE_LIBKENNY 1
26140_ACEOF
26141
26142  LIBS="-lKenny $LIBS"
26143
26144else
26145
26146  echo "  Oh my god, they killed Kenny!  You bastards!"
26147
26148cat >>confdefs.h <<\_ACEOF
26149#define HAVE_HUMOR 1
26150_ACEOF
26151
26152
26153fi
26154
26155fi
26156
26157CONFIG_SEARCH_PATH=`eval eval eval eval eval echo "${sysconfdir}/$PACKAGE/themes:/etc/$PACKAGE/themes:${datadir}/$PACKAGE/themes"`
26158CONFIG_SEARCH_PATH=`eval eval eval eval eval echo "$CONFIG_SEARCH_PATH:${sysconfdir}/$PACKAGE:/etc/$PACKAGE:${datadir}/$PACKAGE"`
26159
26160cat >>confdefs.h <<_ACEOF
26161#define CONFIG_SEARCH_PATH "~/.Eterm/themes:~/.Eterm:$CONFIG_SEARCH_PATH"
26162_ACEOF
26163
26164# Do replacements on theme files and such.  All variables to be replaced
26165# by this routine MUST be exported before the awk script runs.
26166if test "X$PKGDATADIR" = "X" ; then
26167  PKGDATADIR=`eval eval eval eval echo "$datadir/$PACKAGE"`
26168fi
26169export PKGDATADIR
26170
26171cat >>confdefs.h <<_ACEOF
26172#define PKGDATADIR "$PKGDATADIR"
26173_ACEOF
26174
26175if test "$GDB" != "no"; then
26176  GDB_CMD_FILE="$PKGDATADIR/gdb.scr"
26177
26178cat >>confdefs.h <<_ACEOF
26179#define GDB_CMD_FILE "$GDB_CMD_FILE"
26180_ACEOF
26181
26182else
26183  GDB_CMD_FILE=""
26184fi
26185
26186
26187CPPFLAGS=`eval eval eval eval eval echo "-I$includedir -I$prefix/include $CPPFLAGS"`
26188CPPFLAGS=`echo $CPPFLAGS | tr ' ' '\n' | uniq | grep -v NONE | tr '\n' ' '`
26189CFLAGS=${CFLAGS--O}
26190LDFLAGS=`eval eval eval eval eval echo "-L$libdir -L$prefix/lib ${LDFLAGS--O}"`
26191LDFLAGS=`echo $LDFLAGS | tr ' ' '\n' | uniq | grep -v NONE | tr '\n' ' '`
26192LIBS="$GRLIBS $X_PRE_LIBS $LIBS $X_EXTRA_LIBS"
26193
26194
26195
26196
26197
26198
26199
26200
26201basedir=.
26202
26203          ac_config_headers="$ac_config_headers config.h"
26204
26205
26206                                                                      ac_config_files="$ac_config_files Makefile bg/Makefile doc/Makefile utils/Makefile pix/Makefile src/Makefile themes/Makefile"
26207cat >confcache <<\_ACEOF
26208# This file is a shell script that caches the results of configure
26209# tests run on this system so they can be shared between configure
26210# scripts and configure runs, see configure's option --config-cache.
26211# It is not useful on other systems.  If it contains results you don't
26212# want to keep, you may remove or edit it.
26213#
26214# config.status only pays attention to the cache file if you give it
26215# the --recheck option to rerun configure.
26216#
26217# `ac_cv_env_foo' variables (set or unset) will be overridden when
26218# loading this file, other *unset* `ac_cv_foo' will be assigned the
26219# following values.
26220
26221_ACEOF
26222
26223# The following way of writing the cache mishandles newlines in values,
26224# but we know of no workaround that is simple, portable, and efficient.
26225# So, don't put newlines in cache variables' values.
26226# Ultrix sh set writes to stderr and can't be redirected directly,
26227# and sets the high bit in the cache file unless we assign to the vars.
26228{
26229  (set) 2>&1 |
26230    case `(ac_space=' '; set | grep ac_space) 2>&1` in
26231    *ac_space=\ *)
26232      # `set' does not quote correctly, so add quotes (double-quote
26233      # substitution turns \\\\ into \\, and sed turns \\ into \).
26234      sed -n \
26235	"s/'/'\\\\''/g;
26236	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26237      ;;
26238    *)
26239      # `set' quotes correctly as required by POSIX, so do not add quotes.
26240      sed -n \
26241	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
26242      ;;
26243    esac;
26244} |
26245  sed '
26246     t clear
26247     : clear
26248     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26249     t end
26250     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26251     : end' >>confcache
26252if diff $cache_file confcache >/dev/null 2>&1; then :; else
26253  if test -w $cache_file; then
26254    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
26255    cat confcache >$cache_file
26256  else
26257    echo "not updating unwritable cache $cache_file"
26258  fi
26259fi
26260rm -f confcache
26261
26262test "x$prefix" = xNONE && prefix=$ac_default_prefix
26263# Let make expand exec_prefix.
26264test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26265
26266# VPATH may cause trouble with some makes, so we remove $(srcdir),
26267# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26268# trailing colons and then remove the whole line if VPATH becomes empty
26269# (actually we leave an empty line to preserve line numbers).
26270if test "x$srcdir" = x.; then
26271  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
26272s/:*\$(srcdir):*/:/;
26273s/:*\${srcdir}:*/:/;
26274s/:*@srcdir@:*/:/;
26275s/^\([^=]*=[	 ]*\):*/\1/;
26276s/:*$//;
26277s/^[^=]*=[	 ]*$//;
26278}'
26279fi
26280
26281DEFS=-DHAVE_CONFIG_H
26282
26283ac_libobjs=
26284ac_ltlibobjs=
26285for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26286  # 1. Remove the extension, and $U if already installed.
26287  ac_i=`echo "$ac_i" |
26288	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
26289  # 2. Add them.
26290  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
26291  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
26292done
26293LIBOBJS=$ac_libobjs
26294
26295LTLIBOBJS=$ac_ltlibobjs
26296
26297
26298if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26299  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
26300Usually this means the macro was only invoked conditionally." >&5
26301echo "$as_me: error: conditional \"AMDEP\" was never defined.
26302Usually this means the macro was only invoked conditionally." >&2;}
26303   { (exit 1); exit 1; }; }
26304fi
26305if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26306  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
26307Usually this means the macro was only invoked conditionally." >&5
26308echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
26309Usually this means the macro was only invoked conditionally." >&2;}
26310   { (exit 1); exit 1; }; }
26311fi
26312if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
26313  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
26314Usually this means the macro was only invoked conditionally." >&5
26315echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
26316Usually this means the macro was only invoked conditionally." >&2;}
26317   { (exit 1); exit 1; }; }
26318fi
26319if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
26320  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
26321Usually this means the macro was only invoked conditionally." >&5
26322echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
26323Usually this means the macro was only invoked conditionally." >&2;}
26324   { (exit 1); exit 1; }; }
26325fi
26326if test -z "${HAVE_MMX_TRUE}" && test -z "${HAVE_MMX_FALSE}"; then
26327  { { echo "$as_me:$LINENO: error: conditional \"HAVE_MMX\" was never defined.
26328Usually this means the macro was only invoked conditionally." >&5
26329echo "$as_me: error: conditional \"HAVE_MMX\" was never defined.
26330Usually this means the macro was only invoked conditionally." >&2;}
26331   { (exit 1); exit 1; }; }
26332fi
26333if test -z "${HAVE_SSE2_TRUE}" && test -z "${HAVE_SSE2_FALSE}"; then
26334  { { echo "$as_me:$LINENO: error: conditional \"HAVE_SSE2\" was never defined.
26335Usually this means the macro was only invoked conditionally." >&5
26336echo "$as_me: error: conditional \"HAVE_SSE2\" was never defined.
26337Usually this means the macro was only invoked conditionally." >&2;}
26338   { (exit 1); exit 1; }; }
26339fi
26340
26341: ${CONFIG_STATUS=./config.status}
26342ac_clean_files_save=$ac_clean_files
26343ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26344{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26345echo "$as_me: creating $CONFIG_STATUS" >&6;}
26346cat >$CONFIG_STATUS <<_ACEOF
26347#! $SHELL
26348# Generated by $as_me.
26349# Run this file to recreate the current configuration.
26350# Compiler output produced by configure, useful for debugging
26351# configure, is in config.log if it exists.
26352
26353debug=false
26354ac_cs_recheck=false
26355ac_cs_silent=false
26356SHELL=\${CONFIG_SHELL-$SHELL}
26357_ACEOF
26358
26359cat >>$CONFIG_STATUS <<\_ACEOF
26360## --------------------- ##
26361## M4sh Initialization.  ##
26362## --------------------- ##
26363
26364# Be Bourne compatible
26365if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26366  emulate sh
26367  NULLCMD=:
26368  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26369  # is contrary to our usage.  Disable this feature.
26370  alias -g '${1+"$@"}'='"$@"'
26371elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26372  set -o posix
26373fi
26374DUALCASE=1; export DUALCASE # for MKS sh
26375
26376# Support unset when possible.
26377if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26378  as_unset=unset
26379else
26380  as_unset=false
26381fi
26382
26383
26384# Work around bugs in pre-3.0 UWIN ksh.
26385$as_unset ENV MAIL MAILPATH
26386PS1='$ '
26387PS2='> '
26388PS4='+ '
26389
26390# NLS nuisances.
26391for as_var in \
26392  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26393  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26394  LC_TELEPHONE LC_TIME
26395do
26396  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26397    eval $as_var=C; export $as_var
26398  else
26399    $as_unset $as_var
26400  fi
26401done
26402
26403# Required to use basename.
26404if expr a : '\(a\)' >/dev/null 2>&1; then
26405  as_expr=expr
26406else
26407  as_expr=false
26408fi
26409
26410if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
26411  as_basename=basename
26412else
26413  as_basename=false
26414fi
26415
26416
26417# Name of the executable.
26418as_me=`$as_basename "$0" ||
26419$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26420	 X"$0" : 'X\(//\)$' \| \
26421	 X"$0" : 'X\(/\)$' \| \
26422	 .     : '\(.\)' 2>/dev/null ||
26423echo X/"$0" |
26424    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
26425  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
26426  	  /^X\/\(\/\).*/{ s//\1/; q; }
26427  	  s/.*/./; q'`
26428
26429
26430# PATH needs CR, and LINENO needs CR and PATH.
26431# Avoid depending upon Character Ranges.
26432as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26433as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26434as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26435as_cr_digits='0123456789'
26436as_cr_alnum=$as_cr_Letters$as_cr_digits
26437
26438# The user is always right.
26439if test "${PATH_SEPARATOR+set}" != set; then
26440  echo "#! /bin/sh" >conf$$.sh
26441  echo  "exit 0"   >>conf$$.sh
26442  chmod +x conf$$.sh
26443  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26444    PATH_SEPARATOR=';'
26445  else
26446    PATH_SEPARATOR=:
26447  fi
26448  rm -f conf$$.sh
26449fi
26450
26451
26452  as_lineno_1=$LINENO
26453  as_lineno_2=$LINENO
26454  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
26455  test "x$as_lineno_1" != "x$as_lineno_2" &&
26456  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
26457  # Find who we are.  Look in the path if we contain no path at all
26458  # relative or not.
26459  case $0 in
26460    *[\\/]* ) as_myself=$0 ;;
26461    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26462for as_dir in $PATH
26463do
26464  IFS=$as_save_IFS
26465  test -z "$as_dir" && as_dir=.
26466  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26467done
26468
26469       ;;
26470  esac
26471  # We did not find ourselves, most probably we were run as `sh COMMAND'
26472  # in which case we are not to be found in the path.
26473  if test "x$as_myself" = x; then
26474    as_myself=$0
26475  fi
26476  if test ! -f "$as_myself"; then
26477    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
26478echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
26479   { (exit 1); exit 1; }; }
26480  fi
26481  case $CONFIG_SHELL in
26482  '')
26483    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26484for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
26485do
26486  IFS=$as_save_IFS
26487  test -z "$as_dir" && as_dir=.
26488  for as_base in sh bash ksh sh5; do
26489	 case $as_dir in
26490	 /*)
26491	   if ("$as_dir/$as_base" -c '
26492  as_lineno_1=$LINENO
26493  as_lineno_2=$LINENO
26494  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
26495  test "x$as_lineno_1" != "x$as_lineno_2" &&
26496  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
26497	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
26498	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
26499	     CONFIG_SHELL=$as_dir/$as_base
26500	     export CONFIG_SHELL
26501	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
26502	   fi;;
26503	 esac
26504       done
26505done
26506;;
26507  esac
26508
26509  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26510  # uniformly replaced by the line number.  The first 'sed' inserts a
26511  # line-number line before each line; the second 'sed' does the real
26512  # work.  The second script uses 'N' to pair each line-number line
26513  # with the numbered line, and appends trailing '-' during
26514  # substitution so that $LINENO is not a special case at line end.
26515  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26516  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
26517  sed '=' <$as_myself |
26518    sed '
26519      N
26520      s,$,-,
26521      : loop
26522      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
26523      t loop
26524      s,-$,,
26525      s,^['$as_cr_digits']*\n,,
26526    ' >$as_me.lineno &&
26527  chmod +x $as_me.lineno ||
26528    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
26529echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
26530   { (exit 1); exit 1; }; }
26531
26532  # Don't try to exec as it changes $[0], causing all sort of problems
26533  # (the dirname of $[0] is not the place where we might find the
26534  # original and so on.  Autoconf is especially sensible to this).
26535  . ./$as_me.lineno
26536  # Exit status is that of the last command.
26537  exit
26538}
26539
26540
26541case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
26542  *c*,-n*) ECHO_N= ECHO_C='
26543' ECHO_T='	' ;;
26544  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
26545  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
26546esac
26547
26548if expr a : '\(a\)' >/dev/null 2>&1; then
26549  as_expr=expr
26550else
26551  as_expr=false
26552fi
26553
26554rm -f conf$$ conf$$.exe conf$$.file
26555echo >conf$$.file
26556if ln -s conf$$.file conf$$ 2>/dev/null; then
26557  # We could just check for DJGPP; but this test a) works b) is more generic
26558  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
26559  if test -f conf$$.exe; then
26560    # Don't use ln at all; we don't have any links
26561    as_ln_s='cp -p'
26562  else
26563    as_ln_s='ln -s'
26564  fi
26565elif ln conf$$.file conf$$ 2>/dev/null; then
26566  as_ln_s=ln
26567else
26568  as_ln_s='cp -p'
26569fi
26570rm -f conf$$ conf$$.exe conf$$.file
26571
26572if mkdir -p . 2>/dev/null; then
26573  as_mkdir_p=:
26574else
26575  test -d ./-p && rmdir ./-p
26576  as_mkdir_p=false
26577fi
26578
26579as_executable_p="test -f"
26580
26581# Sed expression to map a string onto a valid CPP name.
26582as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26583
26584# Sed expression to map a string onto a valid variable name.
26585as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26586
26587
26588# IFS
26589# We need space, tab and new line, in precisely that order.
26590as_nl='
26591'
26592IFS=" 	$as_nl"
26593
26594# CDPATH.
26595$as_unset CDPATH
26596
26597exec 6>&1
26598
26599# Open the log real soon, to keep \$[0] and so on meaningful, and to
26600# report actual input values of CONFIG_FILES etc. instead of their
26601# values after options handling.  Logging --version etc. is OK.
26602exec 5>>config.log
26603{
26604  echo
26605  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26606## Running $as_me. ##
26607_ASBOX
26608} >&5
26609cat >&5 <<_CSEOF
26610
26611This file was extended by $as_me, which was
26612generated by GNU Autoconf 2.59.  Invocation command line was
26613
26614  CONFIG_FILES    = $CONFIG_FILES
26615  CONFIG_HEADERS  = $CONFIG_HEADERS
26616  CONFIG_LINKS    = $CONFIG_LINKS
26617  CONFIG_COMMANDS = $CONFIG_COMMANDS
26618  $ $0 $@
26619
26620_CSEOF
26621echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
26622echo >&5
26623_ACEOF
26624
26625# Files that config.status was made for.
26626if test -n "$ac_config_files"; then
26627  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
26628fi
26629
26630if test -n "$ac_config_headers"; then
26631  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
26632fi
26633
26634if test -n "$ac_config_links"; then
26635  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
26636fi
26637
26638if test -n "$ac_config_commands"; then
26639  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
26640fi
26641
26642cat >>$CONFIG_STATUS <<\_ACEOF
26643
26644ac_cs_usage="\
26645\`$as_me' instantiates files from templates according to the
26646current configuration.
26647
26648Usage: $0 [OPTIONS] [FILE]...
26649
26650  -h, --help       print this help, then exit
26651  -V, --version    print version number, then exit
26652  -q, --quiet      do not print progress messages
26653  -d, --debug      don't remove temporary files
26654      --recheck    update $as_me by reconfiguring in the same conditions
26655  --file=FILE[:TEMPLATE]
26656		   instantiate the configuration file FILE
26657  --header=FILE[:TEMPLATE]
26658		   instantiate the configuration header FILE
26659
26660Configuration files:
26661$config_files
26662
26663Configuration headers:
26664$config_headers
26665
26666Configuration commands:
26667$config_commands
26668
26669Report bugs to <bug-autoconf@gnu.org>."
26670_ACEOF
26671
26672cat >>$CONFIG_STATUS <<_ACEOF
26673ac_cs_version="\\
26674config.status
26675configured by $0, generated by GNU Autoconf 2.59,
26676  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
26677
26678Copyright (C) 2003 Free Software Foundation, Inc.
26679This config.status script is free software; the Free Software Foundation
26680gives unlimited permission to copy, distribute and modify it."
26681srcdir=$srcdir
26682INSTALL="$INSTALL"
26683_ACEOF
26684
26685cat >>$CONFIG_STATUS <<\_ACEOF
26686# If no file are specified by the user, then we need to provide default
26687# value.  By we need to know if files were specified by the user.
26688ac_need_defaults=:
26689while test $# != 0
26690do
26691  case $1 in
26692  --*=*)
26693    ac_option=`expr "x$1" : 'x\([^=]*\)='`
26694    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
26695    ac_shift=:
26696    ;;
26697  -*)
26698    ac_option=$1
26699    ac_optarg=$2
26700    ac_shift=shift
26701    ;;
26702  *) # This is not an option, so the user has probably given explicit
26703     # arguments.
26704     ac_option=$1
26705     ac_need_defaults=false;;
26706  esac
26707
26708  case $ac_option in
26709  # Handling of the options.
26710_ACEOF
26711cat >>$CONFIG_STATUS <<\_ACEOF
26712  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26713    ac_cs_recheck=: ;;
26714  --version | --vers* | -V )
26715    echo "$ac_cs_version"; exit 0 ;;
26716  --he | --h)
26717    # Conflict between --help and --header
26718    { { echo "$as_me:$LINENO: error: ambiguous option: $1
26719Try \`$0 --help' for more information." >&5
26720echo "$as_me: error: ambiguous option: $1
26721Try \`$0 --help' for more information." >&2;}
26722   { (exit 1); exit 1; }; };;
26723  --help | --hel | -h )
26724    echo "$ac_cs_usage"; exit 0 ;;
26725  --debug | --d* | -d )
26726    debug=: ;;
26727  --file | --fil | --fi | --f )
26728    $ac_shift
26729    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
26730    ac_need_defaults=false;;
26731  --header | --heade | --head | --hea )
26732    $ac_shift
26733    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
26734    ac_need_defaults=false;;
26735  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26736  | -silent | --silent | --silen | --sile | --sil | --si | --s)
26737    ac_cs_silent=: ;;
26738
26739  # This is an error.
26740  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
26741Try \`$0 --help' for more information." >&5
26742echo "$as_me: error: unrecognized option: $1
26743Try \`$0 --help' for more information." >&2;}
26744   { (exit 1); exit 1; }; } ;;
26745
26746  *) ac_config_targets="$ac_config_targets $1" ;;
26747
26748  esac
26749  shift
26750done
26751
26752ac_configure_extra_args=
26753
26754if $ac_cs_silent; then
26755  exec 6>/dev/null
26756  ac_configure_extra_args="$ac_configure_extra_args --silent"
26757fi
26758
26759_ACEOF
26760cat >>$CONFIG_STATUS <<_ACEOF
26761if \$ac_cs_recheck; then
26762  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26763  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26764fi
26765
26766_ACEOF
26767
26768cat >>$CONFIG_STATUS <<_ACEOF
26769#
26770# INIT-COMMANDS section.
26771#
26772
26773AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
26774
26775_ACEOF
26776
26777
26778
26779cat >>$CONFIG_STATUS <<\_ACEOF
26780for ac_config_target in $ac_config_targets
26781do
26782  case "$ac_config_target" in
26783  # Handling of arguments.
26784  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26785  "bg/Makefile" ) CONFIG_FILES="$CONFIG_FILES bg/Makefile" ;;
26786  "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
26787  "utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
26788  "pix/Makefile" ) CONFIG_FILES="$CONFIG_FILES pix/Makefile" ;;
26789  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
26790  "themes/Makefile" ) CONFIG_FILES="$CONFIG_FILES themes/Makefile" ;;
26791  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26792  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
26793  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26794echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26795   { (exit 1); exit 1; }; };;
26796  esac
26797done
26798
26799# If the user did not use the arguments to specify the items to instantiate,
26800# then the envvar interface is used.  Set only those that are not.
26801# We use the long form for the default assignment because of an extremely
26802# bizarre bug on SunOS 4.1.3.
26803if $ac_need_defaults; then
26804  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26805  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26806  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26807fi
26808
26809# Have a temporary directory for convenience.  Make it in the build tree
26810# simply because there is no reason to put it here, and in addition,
26811# creating and moving files from /tmp can sometimes cause problems.
26812# Create a temporary directory, and hook for its removal unless debugging.
26813$debug ||
26814{
26815  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
26816  trap '{ (exit 1); exit 1; }' 1 2 13 15
26817}
26818
26819# Create a (secure) tmp directory for tmp files.
26820
26821{
26822  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
26823  test -n "$tmp" && test -d "$tmp"
26824}  ||
26825{
26826  tmp=./confstat$$-$RANDOM
26827  (umask 077 && mkdir $tmp)
26828} ||
26829{
26830   echo "$me: cannot create a temporary directory in ." >&2
26831   { (exit 1); exit 1; }
26832}
26833
26834_ACEOF
26835
26836cat >>$CONFIG_STATUS <<_ACEOF
26837
26838#
26839# CONFIG_FILES section.
26840#
26841
26842# No need to generate the scripts if there are no CONFIG_FILES.
26843# This happens for instance when ./config.status config.h
26844if test -n "\$CONFIG_FILES"; then
26845  # Protect against being on the right side of a sed subst in config.status.
26846  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
26847   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
26848s,@LIBTOOLIZE@,$LIBTOOLIZE,;t t
26849s,@ACLOCAL@,$ACLOCAL,;t t
26850s,@AUTOCONF@,$AUTOCONF,;t t
26851s,@AUTOHEADER@,$AUTOHEADER,;t t
26852s,@AUTOMAKE@,$AUTOMAKE,;t t
26853s,@SHELL@,$SHELL,;t t
26854s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
26855s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
26856s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
26857s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
26858s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
26859s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
26860s,@exec_prefix@,$exec_prefix,;t t
26861s,@prefix@,$prefix,;t t
26862s,@program_transform_name@,$program_transform_name,;t t
26863s,@bindir@,$bindir,;t t
26864s,@sbindir@,$sbindir,;t t
26865s,@libexecdir@,$libexecdir,;t t
26866s,@datadir@,$datadir,;t t
26867s,@sysconfdir@,$sysconfdir,;t t
26868s,@sharedstatedir@,$sharedstatedir,;t t
26869s,@localstatedir@,$localstatedir,;t t
26870s,@libdir@,$libdir,;t t
26871s,@includedir@,$includedir,;t t
26872s,@oldincludedir@,$oldincludedir,;t t
26873s,@infodir@,$infodir,;t t
26874s,@mandir@,$mandir,;t t
26875s,@build_alias@,$build_alias,;t t
26876s,@host_alias@,$host_alias,;t t
26877s,@target_alias@,$target_alias,;t t
26878s,@DEFS@,$DEFS,;t t
26879s,@ECHO_C@,$ECHO_C,;t t
26880s,@ECHO_N@,$ECHO_N,;t t
26881s,@ECHO_T@,$ECHO_T,;t t
26882s,@LIBS@,$LIBS,;t t
26883s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
26884s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
26885s,@INSTALL_DATA@,$INSTALL_DATA,;t t
26886s,@CYGPATH_W@,$CYGPATH_W,;t t
26887s,@PACKAGE@,$PACKAGE,;t t
26888s,@VERSION@,$VERSION,;t t
26889s,@MAKEINFO@,$MAKEINFO,;t t
26890s,@install_sh@,$install_sh,;t t
26891s,@STRIP@,$STRIP,;t t
26892s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
26893s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
26894s,@mkdir_p@,$mkdir_p,;t t
26895s,@AWK@,$AWK,;t t
26896s,@SET_MAKE@,$SET_MAKE,;t t
26897s,@am__leading_dot@,$am__leading_dot,;t t
26898s,@AMTAR@,$AMTAR,;t t
26899s,@am__tar@,$am__tar,;t t
26900s,@am__untar@,$am__untar,;t t
26901s,@DATE@,$DATE,;t t
26902s,@AUTHORS@,$AUTHORS,;t t
26903s,@build@,$build,;t t
26904s,@build_cpu@,$build_cpu,;t t
26905s,@build_vendor@,$build_vendor,;t t
26906s,@build_os@,$build_os,;t t
26907s,@host@,$host,;t t
26908s,@host_cpu@,$host_cpu,;t t
26909s,@host_vendor@,$host_vendor,;t t
26910s,@host_os@,$host_os,;t t
26911s,@PGCC@,$PGCC,;t t
26912s,@CC@,$CC,;t t
26913s,@CFLAGS@,$CFLAGS,;t t
26914s,@LDFLAGS@,$LDFLAGS,;t t
26915s,@CPPFLAGS@,$CPPFLAGS,;t t
26916s,@ac_ct_CC@,$ac_ct_CC,;t t
26917s,@EXEEXT@,$EXEEXT,;t t
26918s,@OBJEXT@,$OBJEXT,;t t
26919s,@DEPDIR@,$DEPDIR,;t t
26920s,@am__include@,$am__include,;t t
26921s,@am__quote@,$am__quote,;t t
26922s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
26923s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
26924s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
26925s,@CCDEPMODE@,$CCDEPMODE,;t t
26926s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
26927s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
26928s,@CPP@,$CPP,;t t
26929s,@CCAS@,$CCAS,;t t
26930s,@CCASFLAGS@,$CCASFLAGS,;t t
26931s,@EGREP@,$EGREP,;t t
26932s,@SED@,$SED,;t t
26933s,@LN_S@,$LN_S,;t t
26934s,@ECHO@,$ECHO,;t t
26935s,@AR@,$AR,;t t
26936s,@ac_ct_AR@,$ac_ct_AR,;t t
26937s,@RANLIB@,$RANLIB,;t t
26938s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
26939s,@CXX@,$CXX,;t t
26940s,@CXXFLAGS@,$CXXFLAGS,;t t
26941s,@ac_ct_CXX@,$ac_ct_CXX,;t t
26942s,@CXXDEPMODE@,$CXXDEPMODE,;t t
26943s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
26944s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
26945s,@CXXCPP@,$CXXCPP,;t t
26946s,@F77@,$F77,;t t
26947s,@FFLAGS@,$FFLAGS,;t t
26948s,@ac_ct_F77@,$ac_ct_F77,;t t
26949s,@LIBTOOL@,$LIBTOOL,;t t
26950s,@DIST_ROOT@,$DIST_ROOT,;t t
26951s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
26952s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
26953s,@MAINT@,$MAINT,;t t
26954s,@RM@,$RM,;t t
26955s,@CP@,$CP,;t t
26956s,@CHMOD@,$CHMOD,;t t
26957s,@TAR@,$TAR,;t t
26958s,@MKDIR@,$MKDIR,;t t
26959s,@CTAGS@,$CTAGS,;t t
26960s,@MV@,$MV,;t t
26961s,@TIC@,$TIC,;t t
26962s,@PERL@,$PERL,;t t
26963s,@X_CFLAGS@,$X_CFLAGS,;t t
26964s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
26965s,@X_LIBS@,$X_LIBS,;t t
26966s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
26967s,@HAVE_MMX_TRUE@,$HAVE_MMX_TRUE,;t t
26968s,@HAVE_MMX_FALSE@,$HAVE_MMX_FALSE,;t t
26969s,@HAVE_SSE2_TRUE@,$HAVE_SSE2_TRUE,;t t
26970s,@HAVE_SSE2_FALSE@,$HAVE_SSE2_FALSE,;t t
26971s,@LIBAST_CONFIG@,$LIBAST_CONFIG,;t t
26972s,@DEF_FONT_IDX@,$DEF_FONT_IDX,;t t
26973s,@FONT0@,$FONT0,;t t
26974s,@FONT1@,$FONT1,;t t
26975s,@FONT2@,$FONT2,;t t
26976s,@FONT3@,$FONT3,;t t
26977s,@FONT4@,$FONT4,;t t
26978s,@MULTICHAR_ENCODING@,$MULTICHAR_ENCODING,;t t
26979s,@MFONT0@,$MFONT0,;t t
26980s,@MFONT1@,$MFONT1,;t t
26981s,@MFONT2@,$MFONT2,;t t
26982s,@MFONT3@,$MFONT3,;t t
26983s,@MFONT4@,$MFONT4,;t t
26984s,@REMOVE_THEMES@,$REMOVE_THEMES,;t t
26985s,@ac_prefix_program@,$ac_prefix_program,;t t
26986s,@DBX@,$DBX,;t t
26987s,@GDB@,$GDB,;t t
26988s,@PSTACK@,$PSTACK,;t t
26989s,@GDB_CMD_FILE@,$GDB_CMD_FILE,;t t
26990s,@THREADLIBS@,$THREADLIBS,;t t
26991s,@LIBOBJS@,$LIBOBJS,;t t
26992s,@LTLIBOBJS@,$LTLIBOBJS,;t t
26993CEOF
26994
26995_ACEOF
26996
26997  cat >>$CONFIG_STATUS <<\_ACEOF
26998  # Split the substitutions into bite-sized pieces for seds with
26999  # small command number limits, like on Digital OSF/1 and HP-UX.
27000  ac_max_sed_lines=48
27001  ac_sed_frag=1 # Number of current file.
27002  ac_beg=1 # First line for current file.
27003  ac_end=$ac_max_sed_lines # Line after last line for current file.
27004  ac_more_lines=:
27005  ac_sed_cmds=
27006  while $ac_more_lines; do
27007    if test $ac_beg -gt 1; then
27008      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
27009    else
27010      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
27011    fi
27012    if test ! -s $tmp/subs.frag; then
27013      ac_more_lines=false
27014    else
27015      # The purpose of the label and of the branching condition is to
27016      # speed up the sed processing (if there are no `@' at all, there
27017      # is no need to browse any of the substitutions).
27018      # These are the two extra sed commands mentioned above.
27019      (echo ':t
27020  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
27021      if test -z "$ac_sed_cmds"; then
27022	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
27023      else
27024	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
27025      fi
27026      ac_sed_frag=`expr $ac_sed_frag + 1`
27027      ac_beg=$ac_end
27028      ac_end=`expr $ac_end + $ac_max_sed_lines`
27029    fi
27030  done
27031  if test -z "$ac_sed_cmds"; then
27032    ac_sed_cmds=cat
27033  fi
27034fi # test -n "$CONFIG_FILES"
27035
27036_ACEOF
27037cat >>$CONFIG_STATUS <<\_ACEOF
27038for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
27039  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
27040  case $ac_file in
27041  - | *:- | *:-:* ) # input from stdin
27042	cat >$tmp/stdin
27043	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27044	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27045  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27046	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27047  * )   ac_file_in=$ac_file.in ;;
27048  esac
27049
27050  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
27051  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
27052$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27053	 X"$ac_file" : 'X\(//\)[^/]' \| \
27054	 X"$ac_file" : 'X\(//\)$' \| \
27055	 X"$ac_file" : 'X\(/\)' \| \
27056	 .     : '\(.\)' 2>/dev/null ||
27057echo X"$ac_file" |
27058    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27059  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27060  	  /^X\(\/\/\)$/{ s//\1/; q; }
27061  	  /^X\(\/\).*/{ s//\1/; q; }
27062  	  s/.*/./; q'`
27063  { if $as_mkdir_p; then
27064    mkdir -p "$ac_dir"
27065  else
27066    as_dir="$ac_dir"
27067    as_dirs=
27068    while test ! -d "$as_dir"; do
27069      as_dirs="$as_dir $as_dirs"
27070      as_dir=`(dirname "$as_dir") 2>/dev/null ||
27071$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27072	 X"$as_dir" : 'X\(//\)[^/]' \| \
27073	 X"$as_dir" : 'X\(//\)$' \| \
27074	 X"$as_dir" : 'X\(/\)' \| \
27075	 .     : '\(.\)' 2>/dev/null ||
27076echo X"$as_dir" |
27077    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27078  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27079  	  /^X\(\/\/\)$/{ s//\1/; q; }
27080  	  /^X\(\/\).*/{ s//\1/; q; }
27081  	  s/.*/./; q'`
27082    done
27083    test ! -n "$as_dirs" || mkdir $as_dirs
27084  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27085echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27086   { (exit 1); exit 1; }; }; }
27087
27088  ac_builddir=.
27089
27090if test "$ac_dir" != .; then
27091  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27092  # A "../" for each directory in $ac_dir_suffix.
27093  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27094else
27095  ac_dir_suffix= ac_top_builddir=
27096fi
27097
27098case $srcdir in
27099  .)  # No --srcdir option.  We are building in place.
27100    ac_srcdir=.
27101    if test -z "$ac_top_builddir"; then
27102       ac_top_srcdir=.
27103    else
27104       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27105    fi ;;
27106  [\\/]* | ?:[\\/]* )  # Absolute path.
27107    ac_srcdir=$srcdir$ac_dir_suffix;
27108    ac_top_srcdir=$srcdir ;;
27109  *) # Relative path.
27110    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27111    ac_top_srcdir=$ac_top_builddir$srcdir ;;
27112esac
27113
27114# Do not use `cd foo && pwd` to compute absolute paths, because
27115# the directories may not exist.
27116case `pwd` in
27117.) ac_abs_builddir="$ac_dir";;
27118*)
27119  case "$ac_dir" in
27120  .) ac_abs_builddir=`pwd`;;
27121  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
27122  *) ac_abs_builddir=`pwd`/"$ac_dir";;
27123  esac;;
27124esac
27125case $ac_abs_builddir in
27126.) ac_abs_top_builddir=${ac_top_builddir}.;;
27127*)
27128  case ${ac_top_builddir}. in
27129  .) ac_abs_top_builddir=$ac_abs_builddir;;
27130  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27131  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27132  esac;;
27133esac
27134case $ac_abs_builddir in
27135.) ac_abs_srcdir=$ac_srcdir;;
27136*)
27137  case $ac_srcdir in
27138  .) ac_abs_srcdir=$ac_abs_builddir;;
27139  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27140  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27141  esac;;
27142esac
27143case $ac_abs_builddir in
27144.) ac_abs_top_srcdir=$ac_top_srcdir;;
27145*)
27146  case $ac_top_srcdir in
27147  .) ac_abs_top_srcdir=$ac_abs_builddir;;
27148  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27149  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27150  esac;;
27151esac
27152
27153
27154  case $INSTALL in
27155  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27156  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
27157  esac
27158
27159  if test x"$ac_file" != x-; then
27160    { echo "$as_me:$LINENO: creating $ac_file" >&5
27161echo "$as_me: creating $ac_file" >&6;}
27162    rm -f "$ac_file"
27163  fi
27164  # Let's still pretend it is `configure' which instantiates (i.e., don't
27165  # use $as_me), people would be surprised to read:
27166  #    /* config.h.  Generated by config.status.  */
27167  if test x"$ac_file" = x-; then
27168    configure_input=
27169  else
27170    configure_input="$ac_file.  "
27171  fi
27172  configure_input=$configure_input"Generated from `echo $ac_file_in |
27173				     sed 's,.*/,,'` by configure."
27174
27175  # First look for the input files in the build tree, otherwise in the
27176  # src tree.
27177  ac_file_inputs=`IFS=:
27178    for f in $ac_file_in; do
27179      case $f in
27180      -) echo $tmp/stdin ;;
27181      [\\/$]*)
27182	 # Absolute (can't be DOS-style, as IFS=:)
27183	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27184echo "$as_me: error: cannot find input file: $f" >&2;}
27185   { (exit 1); exit 1; }; }
27186	 echo "$f";;
27187      *) # Relative
27188	 if test -f "$f"; then
27189	   # Build tree
27190	   echo "$f"
27191	 elif test -f "$srcdir/$f"; then
27192	   # Source tree
27193	   echo "$srcdir/$f"
27194	 else
27195	   # /dev/null tree
27196	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27197echo "$as_me: error: cannot find input file: $f" >&2;}
27198   { (exit 1); exit 1; }; }
27199	 fi;;
27200      esac
27201    done` || { (exit 1); exit 1; }
27202_ACEOF
27203cat >>$CONFIG_STATUS <<_ACEOF
27204  sed "$ac_vpsub
27205$extrasub
27206_ACEOF
27207cat >>$CONFIG_STATUS <<\_ACEOF
27208:t
27209/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27210s,@configure_input@,$configure_input,;t t
27211s,@srcdir@,$ac_srcdir,;t t
27212s,@abs_srcdir@,$ac_abs_srcdir,;t t
27213s,@top_srcdir@,$ac_top_srcdir,;t t
27214s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
27215s,@builddir@,$ac_builddir,;t t
27216s,@abs_builddir@,$ac_abs_builddir,;t t
27217s,@top_builddir@,$ac_top_builddir,;t t
27218s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
27219s,@INSTALL@,$ac_INSTALL,;t t
27220" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
27221  rm -f $tmp/stdin
27222  if test x"$ac_file" != x-; then
27223    mv $tmp/out $ac_file
27224  else
27225    cat $tmp/out
27226    rm -f $tmp/out
27227  fi
27228
27229done
27230_ACEOF
27231cat >>$CONFIG_STATUS <<\_ACEOF
27232
27233#
27234# CONFIG_HEADER section.
27235#
27236
27237# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
27238# NAME is the cpp macro being defined and VALUE is the value it is being given.
27239#
27240# ac_d sets the value in "#define NAME VALUE" lines.
27241ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
27242ac_dB='[	 ].*$,\1#\2'
27243ac_dC=' '
27244ac_dD=',;t'
27245# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
27246ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
27247ac_uB='$,\1#\2define\3'
27248ac_uC=' '
27249ac_uD=',;t'
27250
27251for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
27252  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
27253  case $ac_file in
27254  - | *:- | *:-:* ) # input from stdin
27255	cat >$tmp/stdin
27256	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27257	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27258  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27259	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27260  * )   ac_file_in=$ac_file.in ;;
27261  esac
27262
27263  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
27264echo "$as_me: creating $ac_file" >&6;}
27265
27266  # First look for the input files in the build tree, otherwise in the
27267  # src tree.
27268  ac_file_inputs=`IFS=:
27269    for f in $ac_file_in; do
27270      case $f in
27271      -) echo $tmp/stdin ;;
27272      [\\/$]*)
27273	 # Absolute (can't be DOS-style, as IFS=:)
27274	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27275echo "$as_me: error: cannot find input file: $f" >&2;}
27276   { (exit 1); exit 1; }; }
27277	 # Do quote $f, to prevent DOS paths from being IFS'd.
27278	 echo "$f";;
27279      *) # Relative
27280	 if test -f "$f"; then
27281	   # Build tree
27282	   echo "$f"
27283	 elif test -f "$srcdir/$f"; then
27284	   # Source tree
27285	   echo "$srcdir/$f"
27286	 else
27287	   # /dev/null tree
27288	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27289echo "$as_me: error: cannot find input file: $f" >&2;}
27290   { (exit 1); exit 1; }; }
27291	 fi;;
27292      esac
27293    done` || { (exit 1); exit 1; }
27294  # Remove the trailing spaces.
27295  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
27296
27297_ACEOF
27298
27299# Transform confdefs.h into two sed scripts, `conftest.defines' and
27300# `conftest.undefs', that substitutes the proper values into
27301# config.h.in to produce config.h.  The first handles `#define'
27302# templates, and the second `#undef' templates.
27303# And first: Protect against being on the right side of a sed subst in
27304# config.status.  Protect against being in an unquoted here document
27305# in config.status.
27306rm -f conftest.defines conftest.undefs
27307# Using a here document instead of a string reduces the quoting nightmare.
27308# Putting comments in sed scripts is not portable.
27309#
27310# `end' is used to avoid that the second main sed command (meant for
27311# 0-ary CPP macros) applies to n-ary macro definitions.
27312# See the Autoconf documentation for `clear'.
27313cat >confdef2sed.sed <<\_ACEOF
27314s/[\\&,]/\\&/g
27315s,[\\$`],\\&,g
27316t clear
27317: clear
27318s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
27319t end
27320s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
27321: end
27322_ACEOF
27323# If some macros were called several times there might be several times
27324# the same #defines, which is useless.  Nevertheless, we may not want to
27325# sort them, since we want the *last* AC-DEFINE to be honored.
27326uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
27327sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
27328rm -f confdef2sed.sed
27329
27330# This sed command replaces #undef with comments.  This is necessary, for
27331# example, in the case of _POSIX_SOURCE, which is predefined and required
27332# on some systems where configure will not decide to define it.
27333cat >>conftest.undefs <<\_ACEOF
27334s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
27335_ACEOF
27336
27337# Break up conftest.defines because some shells have a limit on the size
27338# of here documents, and old seds have small limits too (100 cmds).
27339echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
27340echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
27341echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
27342echo '  :' >>$CONFIG_STATUS
27343rm -f conftest.tail
27344while grep . conftest.defines >/dev/null
27345do
27346  # Write a limited-size here document to $tmp/defines.sed.
27347  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
27348  # Speed up: don't consider the non `#define' lines.
27349  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
27350  # Work around the forget-to-reset-the-flag bug.
27351  echo 't clr' >>$CONFIG_STATUS
27352  echo ': clr' >>$CONFIG_STATUS
27353  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
27354  echo 'CEOF
27355  sed -f $tmp/defines.sed $tmp/in >$tmp/out
27356  rm -f $tmp/in
27357  mv $tmp/out $tmp/in
27358' >>$CONFIG_STATUS
27359  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
27360  rm -f conftest.defines
27361  mv conftest.tail conftest.defines
27362done
27363rm -f conftest.defines
27364echo '  fi # grep' >>$CONFIG_STATUS
27365echo >>$CONFIG_STATUS
27366
27367# Break up conftest.undefs because some shells have a limit on the size
27368# of here documents, and old seds have small limits too (100 cmds).
27369echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
27370rm -f conftest.tail
27371while grep . conftest.undefs >/dev/null
27372do
27373  # Write a limited-size here document to $tmp/undefs.sed.
27374  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
27375  # Speed up: don't consider the non `#undef'
27376  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
27377  # Work around the forget-to-reset-the-flag bug.
27378  echo 't clr' >>$CONFIG_STATUS
27379  echo ': clr' >>$CONFIG_STATUS
27380  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
27381  echo 'CEOF
27382  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
27383  rm -f $tmp/in
27384  mv $tmp/out $tmp/in
27385' >>$CONFIG_STATUS
27386  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
27387  rm -f conftest.undefs
27388  mv conftest.tail conftest.undefs
27389done
27390rm -f conftest.undefs
27391
27392cat >>$CONFIG_STATUS <<\_ACEOF
27393  # Let's still pretend it is `configure' which instantiates (i.e., don't
27394  # use $as_me), people would be surprised to read:
27395  #    /* config.h.  Generated by config.status.  */
27396  if test x"$ac_file" = x-; then
27397    echo "/* Generated by configure.  */" >$tmp/config.h
27398  else
27399    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
27400  fi
27401  cat $tmp/in >>$tmp/config.h
27402  rm -f $tmp/in
27403  if test x"$ac_file" != x-; then
27404    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
27405      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27406echo "$as_me: $ac_file is unchanged" >&6;}
27407    else
27408      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
27409$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27410	 X"$ac_file" : 'X\(//\)[^/]' \| \
27411	 X"$ac_file" : 'X\(//\)$' \| \
27412	 X"$ac_file" : 'X\(/\)' \| \
27413	 .     : '\(.\)' 2>/dev/null ||
27414echo X"$ac_file" |
27415    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27416  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27417  	  /^X\(\/\/\)$/{ s//\1/; q; }
27418  	  /^X\(\/\).*/{ s//\1/; q; }
27419  	  s/.*/./; q'`
27420      { if $as_mkdir_p; then
27421    mkdir -p "$ac_dir"
27422  else
27423    as_dir="$ac_dir"
27424    as_dirs=
27425    while test ! -d "$as_dir"; do
27426      as_dirs="$as_dir $as_dirs"
27427      as_dir=`(dirname "$as_dir") 2>/dev/null ||
27428$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27429	 X"$as_dir" : 'X\(//\)[^/]' \| \
27430	 X"$as_dir" : 'X\(//\)$' \| \
27431	 X"$as_dir" : 'X\(/\)' \| \
27432	 .     : '\(.\)' 2>/dev/null ||
27433echo X"$as_dir" |
27434    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27435  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27436  	  /^X\(\/\/\)$/{ s//\1/; q; }
27437  	  /^X\(\/\).*/{ s//\1/; q; }
27438  	  s/.*/./; q'`
27439    done
27440    test ! -n "$as_dirs" || mkdir $as_dirs
27441  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27442echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27443   { (exit 1); exit 1; }; }; }
27444
27445      rm -f $ac_file
27446      mv $tmp/config.h $ac_file
27447    fi
27448  else
27449    cat $tmp/config.h
27450    rm -f $tmp/config.h
27451  fi
27452# Compute $ac_file's index in $config_headers.
27453_am_stamp_count=1
27454for _am_header in $config_headers :; do
27455  case $_am_header in
27456    $ac_file | $ac_file:* )
27457      break ;;
27458    * )
27459      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
27460  esac
27461done
27462echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
27463$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27464	 X$ac_file : 'X\(//\)[^/]' \| \
27465	 X$ac_file : 'X\(//\)$' \| \
27466	 X$ac_file : 'X\(/\)' \| \
27467	 .     : '\(.\)' 2>/dev/null ||
27468echo X$ac_file |
27469    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27470  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27471  	  /^X\(\/\/\)$/{ s//\1/; q; }
27472  	  /^X\(\/\).*/{ s//\1/; q; }
27473  	  s/.*/./; q'`/stamp-h$_am_stamp_count
27474done
27475_ACEOF
27476cat >>$CONFIG_STATUS <<\_ACEOF
27477
27478#
27479# CONFIG_COMMANDS section.
27480#
27481for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
27482  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
27483  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
27484  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
27485$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27486	 X"$ac_dest" : 'X\(//\)[^/]' \| \
27487	 X"$ac_dest" : 'X\(//\)$' \| \
27488	 X"$ac_dest" : 'X\(/\)' \| \
27489	 .     : '\(.\)' 2>/dev/null ||
27490echo X"$ac_dest" |
27491    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27492  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27493  	  /^X\(\/\/\)$/{ s//\1/; q; }
27494  	  /^X\(\/\).*/{ s//\1/; q; }
27495  	  s/.*/./; q'`
27496  { if $as_mkdir_p; then
27497    mkdir -p "$ac_dir"
27498  else
27499    as_dir="$ac_dir"
27500    as_dirs=
27501    while test ! -d "$as_dir"; do
27502      as_dirs="$as_dir $as_dirs"
27503      as_dir=`(dirname "$as_dir") 2>/dev/null ||
27504$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27505	 X"$as_dir" : 'X\(//\)[^/]' \| \
27506	 X"$as_dir" : 'X\(//\)$' \| \
27507	 X"$as_dir" : 'X\(/\)' \| \
27508	 .     : '\(.\)' 2>/dev/null ||
27509echo X"$as_dir" |
27510    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27511  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27512  	  /^X\(\/\/\)$/{ s//\1/; q; }
27513  	  /^X\(\/\).*/{ s//\1/; q; }
27514  	  s/.*/./; q'`
27515    done
27516    test ! -n "$as_dirs" || mkdir $as_dirs
27517  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27518echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27519   { (exit 1); exit 1; }; }; }
27520
27521  ac_builddir=.
27522
27523if test "$ac_dir" != .; then
27524  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27525  # A "../" for each directory in $ac_dir_suffix.
27526  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27527else
27528  ac_dir_suffix= ac_top_builddir=
27529fi
27530
27531case $srcdir in
27532  .)  # No --srcdir option.  We are building in place.
27533    ac_srcdir=.
27534    if test -z "$ac_top_builddir"; then
27535       ac_top_srcdir=.
27536    else
27537       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27538    fi ;;
27539  [\\/]* | ?:[\\/]* )  # Absolute path.
27540    ac_srcdir=$srcdir$ac_dir_suffix;
27541    ac_top_srcdir=$srcdir ;;
27542  *) # Relative path.
27543    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27544    ac_top_srcdir=$ac_top_builddir$srcdir ;;
27545esac
27546
27547# Do not use `cd foo && pwd` to compute absolute paths, because
27548# the directories may not exist.
27549case `pwd` in
27550.) ac_abs_builddir="$ac_dir";;
27551*)
27552  case "$ac_dir" in
27553  .) ac_abs_builddir=`pwd`;;
27554  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
27555  *) ac_abs_builddir=`pwd`/"$ac_dir";;
27556  esac;;
27557esac
27558case $ac_abs_builddir in
27559.) ac_abs_top_builddir=${ac_top_builddir}.;;
27560*)
27561  case ${ac_top_builddir}. in
27562  .) ac_abs_top_builddir=$ac_abs_builddir;;
27563  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27564  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27565  esac;;
27566esac
27567case $ac_abs_builddir in
27568.) ac_abs_srcdir=$ac_srcdir;;
27569*)
27570  case $ac_srcdir in
27571  .) ac_abs_srcdir=$ac_abs_builddir;;
27572  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27573  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27574  esac;;
27575esac
27576case $ac_abs_builddir in
27577.) ac_abs_top_srcdir=$ac_top_srcdir;;
27578*)
27579  case $ac_top_srcdir in
27580  .) ac_abs_top_srcdir=$ac_abs_builddir;;
27581  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27582  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27583  esac;;
27584esac
27585
27586
27587  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
27588echo "$as_me: executing $ac_dest commands" >&6;}
27589  case $ac_dest in
27590    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
27591  # Strip MF so we end up with the name of the file.
27592  mf=`echo "$mf" | sed -e 's/:.*$//'`
27593  # Check whether this is an Automake generated Makefile or not.
27594  # We used to match only the files named `Makefile.in', but
27595  # some people rename them; so instead we look at the file content.
27596  # Grep'ing the first line is not enough: some people post-process
27597  # each Makefile.in and add a new line on top of each file to say so.
27598  # So let's grep whole file.
27599  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
27600    dirpart=`(dirname "$mf") 2>/dev/null ||
27601$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27602	 X"$mf" : 'X\(//\)[^/]' \| \
27603	 X"$mf" : 'X\(//\)$' \| \
27604	 X"$mf" : 'X\(/\)' \| \
27605	 .     : '\(.\)' 2>/dev/null ||
27606echo X"$mf" |
27607    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27608  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27609  	  /^X\(\/\/\)$/{ s//\1/; q; }
27610  	  /^X\(\/\).*/{ s//\1/; q; }
27611  	  s/.*/./; q'`
27612  else
27613    continue
27614  fi
27615  # Extract the definition of DEPDIR, am__include, and am__quote
27616  # from the Makefile without running `make'.
27617  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
27618  test -z "$DEPDIR" && continue
27619  am__include=`sed -n 's/^am__include = //p' < "$mf"`
27620  test -z "am__include" && continue
27621  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
27622  # When using ansi2knr, U may be empty or an underscore; expand it
27623  U=`sed -n 's/^U = //p' < "$mf"`
27624  # Find all dependency output files, they are included files with
27625  # $(DEPDIR) in their names.  We invoke sed twice because it is the
27626  # simplest approach to changing $(DEPDIR) to its actual value in the
27627  # expansion.
27628  for file in `sed -n "
27629    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
27630       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
27631    # Make sure the directory exists.
27632    test -f "$dirpart/$file" && continue
27633    fdir=`(dirname "$file") 2>/dev/null ||
27634$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27635	 X"$file" : 'X\(//\)[^/]' \| \
27636	 X"$file" : 'X\(//\)$' \| \
27637	 X"$file" : 'X\(/\)' \| \
27638	 .     : '\(.\)' 2>/dev/null ||
27639echo X"$file" |
27640    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27641  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27642  	  /^X\(\/\/\)$/{ s//\1/; q; }
27643  	  /^X\(\/\).*/{ s//\1/; q; }
27644  	  s/.*/./; q'`
27645    { if $as_mkdir_p; then
27646    mkdir -p $dirpart/$fdir
27647  else
27648    as_dir=$dirpart/$fdir
27649    as_dirs=
27650    while test ! -d "$as_dir"; do
27651      as_dirs="$as_dir $as_dirs"
27652      as_dir=`(dirname "$as_dir") 2>/dev/null ||
27653$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27654	 X"$as_dir" : 'X\(//\)[^/]' \| \
27655	 X"$as_dir" : 'X\(//\)$' \| \
27656	 X"$as_dir" : 'X\(/\)' \| \
27657	 .     : '\(.\)' 2>/dev/null ||
27658echo X"$as_dir" |
27659    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27660  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27661  	  /^X\(\/\/\)$/{ s//\1/; q; }
27662  	  /^X\(\/\).*/{ s//\1/; q; }
27663  	  s/.*/./; q'`
27664    done
27665    test ! -n "$as_dirs" || mkdir $as_dirs
27666  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
27667echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
27668   { (exit 1); exit 1; }; }; }
27669
27670    # echo "creating $dirpart/$file"
27671    echo '# dummy' > "$dirpart/$file"
27672  done
27673done
27674 ;;
27675  esac
27676done
27677_ACEOF
27678
27679cat >>$CONFIG_STATUS <<\_ACEOF
27680
27681{ (exit 0); exit 0; }
27682_ACEOF
27683chmod +x $CONFIG_STATUS
27684ac_clean_files=$ac_clean_files_save
27685
27686
27687# configure is writing to config.log, and then calls config.status.
27688# config.status does its own redirection, appending to config.log.
27689# Unfortunately, on DOS this fails, as config.log is still kept open
27690# by configure, so config.status won't be able to write to it; its
27691# output is simply discarded.  So we exec the FD to /dev/null,
27692# effectively closing config.log, so it can be properly (re)opened and
27693# appended to by config.status.  When coming back to configure, we
27694# need to make the FD available again.
27695if test "$no_create" != yes; then
27696  ac_cs_success=:
27697  ac_config_status_args=
27698  test "$silent" = yes &&
27699    ac_config_status_args="$ac_config_status_args --quiet"
27700  exec 5>/dev/null
27701  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27702  exec 5>>config.log
27703  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27704  # would make configure fail if this is the last instruction.
27705  $ac_cs_success || { (exit 1); exit 1; }
27706fi
27707
27708
27709# Mega evals to make sure all the relative variables get resolved.
27710BINDIR=`eval eval eval eval echo ${bindir}`
27711export BINDIR bindir prefix exec_prefix datadir PACKAGE
27712
27713# The awk-fu below replaces @VAR@ in theme config files with the corresponding
27714# environment variables, kinda like AC_OUTPUT above.
27715
27716for i in utils/kEsetroot themes/Eterm/theme.cfg themes/auto/theme.cfg themes/Escreen/theme.cfg \
27717         themes/trans/theme.cfg ; do
27718  echo creating $i
27719  $AWK '{if (match($0,/@[A-Za-z0-9_]*@/)) {
27720           i=ENVIRON[substr($0,RSTART+1,RLENGTH-2)];
27721           outp=$0;
27722           gsub(/@[A-Za-z0-9_]*@/,i,outp);
27723           print outp;
27724         } else {
27725           print $0;
27726         }
27727        }' $i.in > $i
27728done
27729
27730
27731if test -z "$GRLIBS"; then
27732  sed -e 's/^bin_PROGRAMS.*$//g' $srcdir/doc/Makefile > $srcdir/doc/Makefile.new
27733  mv $srcdir/doc/Makefile.new $srcdir/doc/Makefile
27734fi
27735
27736echo "
27737$PACKAGE $VERSION
27738Configuration:
27739--------------
27740
27741  Source code location:       $srcdir
27742  Host System Type:           $host
27743  Preprocessor:               $CPP $CPPFLAGS
27744  Compiler:                   $CC $CFLAGS
27745  Linker:                     $CC $LDFLAGS $LIBS
27746  Install path:               $prefix
27747
27748  See src/feature.h for further configuration information.
27749
27750  Now type 'make' to build $PACKAGE $VERSION.
27751"
27752