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="libs/pdcore/pc_config.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='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 PDFLIB_MAJOR PDFLIB_MINOR PDFLIB_REVISION PDFLIB_LTVERSION PLOP_LTVERSION TET_LTVERSION PCOS_LTVERSION PDFLIB_LTCURRENT PDFLIB_LTREVISION PDFLIB_LTAGE PDFLIBNAME build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA MAC_CFLAGS MAC_LDFLAGS FLATE_ASM_OBJ NO_O SED EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CXX CXXFLAGS ac_ct_CXX CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL PLATFORM_ID VERSION RM TIFFWRITE PDFOPTIMIZE JAVAINCLUDE PERL PERLINCLUDE PERLLIBDIR PERLBOOLDEF PERLLINK PYINCLUDE PYTHONBIN PYTHONLIBDIR RUBY RUBYINCLUDE RUBYLIBDIR TCL TCLINCLUDE TCLPACKAGEDIR TCLBIN PDCORELIBINC PDCORELIBLINK FONTLIBLINK FONTLIBINC FLATELIBLINK FLATELIBINC PNGLIBINC PNGLIBLINK TIFFLIBINC TIFFLIBLINK JPEGLIBINC JPEGLIBLINK EXPATLIBINC EXPATLIBLINK OPENSSLLIBINC OPENSSLLIBLINK ICULIBINC ICULIBLINK ICUTLELIBINC ICUTLELIBLINK PDILIBINC PDILIBLINK PDIMAKEOBJS PLOPLIBINC PLOPLIBLINK PLOPLIB_LINK PDFLIBCONVENIENT PDFLIBINC PDFLIBLINK PDFLIB_LINK PCOSLIBINC PCOSLIBLINK PCOSLIB_LINK TETLIBINC TETLIBLINK TETLIB_LINK PDPAGELIBINC PDPAGELIBLINK CLLIBINC CLLIBLINK UTILLIBINC UTILLIBLINK ATSLIBINC ATSLIBLINK STDCPP PDFWALL PDFCPEDANTIC PDFPEDANTIC JAVA_COMPATIBILITY LIBTARGETS BINDTARGETS PROGTARGETS BINDINGS PLOPBINDINGS TETBINDINGS PCOSBINDINGS PTFDIR PROGSDIR INTERNDIR WITH_PDI RPATH EXTERNALLIBS WITH_SHARED 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_CXX_set=${CXX+set}
928ac_env_CXX_value=$CXX
929ac_cv_env_CXX_set=${CXX+set}
930ac_cv_env_CXX_value=$CXX
931ac_env_CXXFLAGS_set=${CXXFLAGS+set}
932ac_env_CXXFLAGS_value=$CXXFLAGS
933ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
934ac_cv_env_CXXFLAGS_value=$CXXFLAGS
935ac_env_CXXCPP_set=${CXXCPP+set}
936ac_env_CXXCPP_value=$CXXCPP
937ac_cv_env_CXXCPP_set=${CXXCPP+set}
938ac_cv_env_CXXCPP_value=$CXXCPP
939ac_env_F77_set=${F77+set}
940ac_env_F77_value=$F77
941ac_cv_env_F77_set=${F77+set}
942ac_cv_env_F77_value=$F77
943ac_env_FFLAGS_set=${FFLAGS+set}
944ac_env_FFLAGS_value=$FFLAGS
945ac_cv_env_FFLAGS_set=${FFLAGS+set}
946ac_cv_env_FFLAGS_value=$FFLAGS
947
948#
949# Report the --help message.
950#
951if test "$ac_init_help" = "long"; then
952  # Omit some internal or obsolete options to make the list less imposing.
953  # This message is too long to be a string in the A/UX 3.1 sh.
954  cat <<_ACEOF
955\`configure' configures this package to adapt to many kinds of systems.
956
957Usage: $0 [OPTION]... [VAR=VALUE]...
958
959To assign environment variables (e.g., CC, CFLAGS...), specify them as
960VAR=VALUE.  See below for descriptions of some of the useful variables.
961
962Defaults for the options are specified in brackets.
963
964Configuration:
965  -h, --help              display this help and exit
966      --help=short        display options specific to this package
967      --help=recursive    display the short help of all the included packages
968  -V, --version           display version information and exit
969  -q, --quiet, --silent   do not print \`checking...' messages
970      --cache-file=FILE   cache test results in FILE [disabled]
971  -C, --config-cache      alias for \`--cache-file=config.cache'
972  -n, --no-create         do not create output files
973      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
974
975_ACEOF
976
977  cat <<_ACEOF
978Installation directories:
979  --prefix=PREFIX         install architecture-independent files in PREFIX
980			  [$ac_default_prefix]
981  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
982			  [PREFIX]
983
984By default, \`make install' will install all the files in
985\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
986an installation prefix other than \`$ac_default_prefix' using \`--prefix',
987for instance \`--prefix=\$HOME'.
988
989For better control, use the options below.
990
991Fine tuning of the installation directories:
992  --bindir=DIR           user executables [EPREFIX/bin]
993  --sbindir=DIR          system admin executables [EPREFIX/sbin]
994  --libexecdir=DIR       program executables [EPREFIX/libexec]
995  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
996  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
997  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
998  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
999  --libdir=DIR           object code libraries [EPREFIX/lib]
1000  --includedir=DIR       C header files [PREFIX/include]
1001  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1002  --infodir=DIR          info documentation [PREFIX/info]
1003  --mandir=DIR           man documentation [PREFIX/man]
1004_ACEOF
1005
1006  cat <<\_ACEOF
1007
1008System types:
1009  --build=BUILD     configure for building on BUILD [guessed]
1010  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1011_ACEOF
1012fi
1013
1014if test -n "$ac_init_help"; then
1015
1016  cat <<\_ACEOF
1017
1018Optional Features:
1019  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1020  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1021  --enable-debug          turn on debugging
1022  --enable-profile        turn on profiling
1023  --enable-64bit          turn on 64bit build
1024  --enable-sfio           turn on sfio build
1025  --enable-mac_legacy     build legacy (carbon, ...) binaries (Mac), unsupported
1026  --enable-universal      build universal binaries (Mac), unsupported
1027  --enable-large_files    enable support for files large than 2GB
1028  --enable-xplink         xplink and dynamic linking (z/OS USS)
1029  --enable-tiffwrite      enable write support for tifflib
1030  --disable-security      Build without Security Code
1031  --enable-shared[=PKGS]
1032                          build shared libraries [default=yes]
1033  --enable-static[=PKGS]
1034                          build static libraries [default=yes]
1035  --enable-fast-install[=PKGS]
1036                          optimize for fast installation [default=yes]
1037  --disable-libtool-lock  avoid locking (might break parallel builds)
1038  --enable-icu            enable ICU support default=no
1039  --enable-cxx            enable C++ language binding default=yes
1040  --enable-pedantic       enable pedantic warnings (gcc only)]
1041
1042Optional Packages:
1043  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1044  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1045  --with-pdflibname=name  set file name of generated library default=pdf
1046  --with-libm=name        set math library option default=-lm
1047  --with-macarch=architecture  Mac OSX architecture to build for, unsupported.
1048  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1049  --with-pic              try to use only PIC/non-PIC objects [default=use
1050                          both]
1051  --with-tags[=TAGS]
1052                          include additional configurations [automatic]
1053  --with-java=path        full path of Java Developers Kit, or no
1054  --with-perl=path        full path of Perl executable, or no
1055  --with-perlincl=path    full path of Perl include directory
1056  --with-py=path          full path of Python root directory, or no
1057  --with-pyincl=path      full path of Python include directory
1058  --with-ruby=path        x, or no
1059  --with-rubyincl=path    full path of Ruby include directory
1060  --with-tcl=path         full path of Tcl executable, or no
1061  --with-tclpkg=path      full path of Tcl package install directory
1062  --with-tclincl=path     full path of Tcl include directory
1063  --with-openssl          include openssl support
1064  --without-PLOP          don't include PLOP
1065  --without-PCOS          don't include PCOS
1066  --without-TET           don't include TET
1067  --without-CL            don't include CL
1068
1069Some influential environment variables:
1070  CC          C compiler command
1071  CFLAGS      C compiler flags
1072  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1073              nonstandard directory <lib dir>
1074  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1075              headers in a nonstandard directory <include dir>
1076  CPP         C preprocessor
1077  CXX         C++ compiler command
1078  CXXFLAGS    C++ compiler flags
1079  CXXCPP      C++ preprocessor
1080  F77         Fortran 77 compiler command
1081  FFLAGS      Fortran 77 compiler flags
1082
1083Use these variables to override the choices made by `configure' or to help
1084it to find libraries and programs with nonstandard names/locations.
1085
1086_ACEOF
1087fi
1088
1089if test "$ac_init_help" = "recursive"; then
1090  # If there are subdirs, report their specific --help.
1091  ac_popdir=`pwd`
1092  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1093    test -d $ac_dir || continue
1094    ac_builddir=.
1095
1096if test "$ac_dir" != .; then
1097  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1098  # A "../" for each directory in $ac_dir_suffix.
1099  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1100else
1101  ac_dir_suffix= ac_top_builddir=
1102fi
1103
1104case $srcdir in
1105  .)  # No --srcdir option.  We are building in place.
1106    ac_srcdir=.
1107    if test -z "$ac_top_builddir"; then
1108       ac_top_srcdir=.
1109    else
1110       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1111    fi ;;
1112  [\\/]* | ?:[\\/]* )  # Absolute path.
1113    ac_srcdir=$srcdir$ac_dir_suffix;
1114    ac_top_srcdir=$srcdir ;;
1115  *) # Relative path.
1116    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1117    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1118esac
1119
1120# Do not use `cd foo && pwd` to compute absolute paths, because
1121# the directories may not exist.
1122case `pwd` in
1123.) ac_abs_builddir="$ac_dir";;
1124*)
1125  case "$ac_dir" in
1126  .) ac_abs_builddir=`pwd`;;
1127  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1128  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1129  esac;;
1130esac
1131case $ac_abs_builddir in
1132.) ac_abs_top_builddir=${ac_top_builddir}.;;
1133*)
1134  case ${ac_top_builddir}. in
1135  .) ac_abs_top_builddir=$ac_abs_builddir;;
1136  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1137  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1138  esac;;
1139esac
1140case $ac_abs_builddir in
1141.) ac_abs_srcdir=$ac_srcdir;;
1142*)
1143  case $ac_srcdir in
1144  .) ac_abs_srcdir=$ac_abs_builddir;;
1145  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1146  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1147  esac;;
1148esac
1149case $ac_abs_builddir in
1150.) ac_abs_top_srcdir=$ac_top_srcdir;;
1151*)
1152  case $ac_top_srcdir in
1153  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1154  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1155  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1156  esac;;
1157esac
1158
1159    cd $ac_dir
1160    # Check for guested configure; otherwise get Cygnus style configure.
1161    if test -f $ac_srcdir/configure.gnu; then
1162      echo
1163      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1164    elif test -f $ac_srcdir/configure; then
1165      echo
1166      $SHELL $ac_srcdir/configure  --help=recursive
1167    elif test -f $ac_srcdir/configure.ac ||
1168	   test -f $ac_srcdir/configure.in; then
1169      echo
1170      $ac_configure --help
1171    else
1172      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1173    fi
1174    cd $ac_popdir
1175  done
1176fi
1177
1178test -n "$ac_init_help" && exit 0
1179if $ac_init_version; then
1180  cat <<\_ACEOF
1181
1182Copyright (C) 2003 Free Software Foundation, Inc.
1183This configure script is free software; the Free Software Foundation
1184gives unlimited permission to copy, distribute and modify it.
1185_ACEOF
1186  exit 0
1187fi
1188exec 5>config.log
1189cat >&5 <<_ACEOF
1190This file contains any messages produced by compilers while
1191running configure, to aid debugging if configure makes a mistake.
1192
1193It was created by $as_me, which was
1194generated by GNU Autoconf 2.59.  Invocation command line was
1195
1196  $ $0 $@
1197
1198_ACEOF
1199{
1200cat <<_ASUNAME
1201## --------- ##
1202## Platform. ##
1203## --------- ##
1204
1205hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1206uname -m = `(uname -m) 2>/dev/null || echo unknown`
1207uname -r = `(uname -r) 2>/dev/null || echo unknown`
1208uname -s = `(uname -s) 2>/dev/null || echo unknown`
1209uname -v = `(uname -v) 2>/dev/null || echo unknown`
1210
1211/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1212/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1213
1214/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1215/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1216/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1217hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1218/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1219/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1220/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1221
1222_ASUNAME
1223
1224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1225for as_dir in $PATH
1226do
1227  IFS=$as_save_IFS
1228  test -z "$as_dir" && as_dir=.
1229  echo "PATH: $as_dir"
1230done
1231
1232} >&5
1233
1234cat >&5 <<_ACEOF
1235
1236
1237## ----------- ##
1238## Core tests. ##
1239## ----------- ##
1240
1241_ACEOF
1242
1243
1244# Keep a trace of the command line.
1245# Strip out --no-create and --no-recursion so they do not pile up.
1246# Strip out --silent because we don't want to record it for future runs.
1247# Also quote any args containing shell meta-characters.
1248# Make two passes to allow for proper duplicate-argument suppression.
1249ac_configure_args=
1250ac_configure_args0=
1251ac_configure_args1=
1252ac_sep=
1253ac_must_keep_next=false
1254for ac_pass in 1 2
1255do
1256  for ac_arg
1257  do
1258    case $ac_arg in
1259    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1260    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1261    | -silent | --silent | --silen | --sile | --sil)
1262      continue ;;
1263    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1264      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1265    esac
1266    case $ac_pass in
1267    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1268    2)
1269      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1270      if test $ac_must_keep_next = true; then
1271	ac_must_keep_next=false # Got value, back to normal.
1272      else
1273	case $ac_arg in
1274	  *=* | --config-cache | -C | -disable-* | --disable-* \
1275	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1276	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1277	  | -with-* | --with-* | -without-* | --without-* | --x)
1278	    case "$ac_configure_args0 " in
1279	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1280	    esac
1281	    ;;
1282	  -* ) ac_must_keep_next=true ;;
1283	esac
1284      fi
1285      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1286      # Get rid of the leading space.
1287      ac_sep=" "
1288      ;;
1289    esac
1290  done
1291done
1292$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1293$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1294
1295# When interrupted or exit'd, cleanup temporary files, and complete
1296# config.log.  We remove comments because anyway the quotes in there
1297# would cause problems or look ugly.
1298# WARNING: Be sure not to use single quotes in there, as some shells,
1299# such as our DU 5.0 friend, will then `close' the trap.
1300trap 'exit_status=$?
1301  # Save into config.log some information that might help in debugging.
1302  {
1303    echo
1304
1305    cat <<\_ASBOX
1306## ---------------- ##
1307## Cache variables. ##
1308## ---------------- ##
1309_ASBOX
1310    echo
1311    # The following way of writing the cache mishandles newlines in values,
1312{
1313  (set) 2>&1 |
1314    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1315    *ac_space=\ *)
1316      sed -n \
1317	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1318	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1319      ;;
1320    *)
1321      sed -n \
1322	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1323      ;;
1324    esac;
1325}
1326    echo
1327
1328    cat <<\_ASBOX
1329## ----------------- ##
1330## Output variables. ##
1331## ----------------- ##
1332_ASBOX
1333    echo
1334    for ac_var in $ac_subst_vars
1335    do
1336      eval ac_val=$`echo $ac_var`
1337      echo "$ac_var='"'"'$ac_val'"'"'"
1338    done | sort
1339    echo
1340
1341    if test -n "$ac_subst_files"; then
1342      cat <<\_ASBOX
1343## ------------- ##
1344## Output files. ##
1345## ------------- ##
1346_ASBOX
1347      echo
1348      for ac_var in $ac_subst_files
1349      do
1350	eval ac_val=$`echo $ac_var`
1351	echo "$ac_var='"'"'$ac_val'"'"'"
1352      done | sort
1353      echo
1354    fi
1355
1356    if test -s confdefs.h; then
1357      cat <<\_ASBOX
1358## ----------- ##
1359## confdefs.h. ##
1360## ----------- ##
1361_ASBOX
1362      echo
1363      sed "/^$/d" confdefs.h | sort
1364      echo
1365    fi
1366    test "$ac_signal" != 0 &&
1367      echo "$as_me: caught signal $ac_signal"
1368    echo "$as_me: exit $exit_status"
1369  } >&5
1370  rm -f core *.core &&
1371  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1372    exit $exit_status
1373     ' 0
1374for ac_signal in 1 2 13 15; do
1375  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1376done
1377ac_signal=0
1378
1379# confdefs.h avoids OS command line length limits that DEFS can exceed.
1380rm -rf conftest* confdefs.h
1381# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1382echo >confdefs.h
1383
1384# Predefined preprocessor variables.
1385
1386cat >>confdefs.h <<_ACEOF
1387#define PACKAGE_NAME "$PACKAGE_NAME"
1388_ACEOF
1389
1390
1391cat >>confdefs.h <<_ACEOF
1392#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1393_ACEOF
1394
1395
1396cat >>confdefs.h <<_ACEOF
1397#define PACKAGE_VERSION "$PACKAGE_VERSION"
1398_ACEOF
1399
1400
1401cat >>confdefs.h <<_ACEOF
1402#define PACKAGE_STRING "$PACKAGE_STRING"
1403_ACEOF
1404
1405
1406cat >>confdefs.h <<_ACEOF
1407#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1408_ACEOF
1409
1410
1411# Let the site file select an alternate cache file if it wants to.
1412# Prefer explicitly selected file to automatically selected ones.
1413if test -z "$CONFIG_SITE"; then
1414  if test "x$prefix" != xNONE; then
1415    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1416  else
1417    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1418  fi
1419fi
1420for ac_site_file in $CONFIG_SITE; do
1421  if test -r "$ac_site_file"; then
1422    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1423echo "$as_me: loading site script $ac_site_file" >&6;}
1424    sed 's/^/| /' "$ac_site_file" >&5
1425    . "$ac_site_file"
1426  fi
1427done
1428
1429if test -r "$cache_file"; then
1430  # Some versions of bash will fail to source /dev/null (special
1431  # files actually), so we avoid doing that.
1432  if test -f "$cache_file"; then
1433    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1434echo "$as_me: loading cache $cache_file" >&6;}
1435    case $cache_file in
1436      [\\/]* | ?:[\\/]* ) . $cache_file;;
1437      *)                      . ./$cache_file;;
1438    esac
1439  fi
1440else
1441  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1442echo "$as_me: creating cache $cache_file" >&6;}
1443  >$cache_file
1444fi
1445
1446# Check that the precious variables saved in the cache have kept the same
1447# value.
1448ac_cache_corrupted=false
1449for ac_var in `(set) 2>&1 |
1450	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1451  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1452  eval ac_new_set=\$ac_env_${ac_var}_set
1453  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1454  eval ac_new_val="\$ac_env_${ac_var}_value"
1455  case $ac_old_set,$ac_new_set in
1456    set,)
1457      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1458echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1459      ac_cache_corrupted=: ;;
1460    ,set)
1461      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1462echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1463      ac_cache_corrupted=: ;;
1464    ,);;
1465    *)
1466      if test "x$ac_old_val" != "x$ac_new_val"; then
1467	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1468echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1469	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1470echo "$as_me:   former value:  $ac_old_val" >&2;}
1471	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1472echo "$as_me:   current value: $ac_new_val" >&2;}
1473	ac_cache_corrupted=:
1474      fi;;
1475  esac
1476  # Pass precious variables to config.status.
1477  if test "$ac_new_set" = set; then
1478    case $ac_new_val in
1479    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1480      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1481    *) ac_arg=$ac_var=$ac_new_val ;;
1482    esac
1483    case " $ac_configure_args " in
1484      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1485      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1486    esac
1487  fi
1488done
1489if $ac_cache_corrupted; then
1490  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1491echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1492  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1493echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1494   { (exit 1); exit 1; }; }
1495fi
1496
1497ac_ext=c
1498ac_cpp='$CPP $CPPFLAGS'
1499ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1500ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1501ac_compiler_gnu=$ac_cv_c_compiler_gnu
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522VERSION="7.0.5"
1523PDFLIB_MAJOR=7
1524PDFLIB_MINOR=0
1525PDFLIB_REVISION=5
1526
1527
1528
1529
1530
1531
1532PDFLIB_LTCURRENT=6
1533PDFLIB_LTREVISION=5
1534PDFLIB_LTAGE=0
1535
1536PLOP_LTCURRENT=1
1537PLOP_LTREVISION=0
1538PLOP_LTAGE=0
1539
1540TET_LTCURRENT=2
1541TET_LTREVISION=0
1542TET_LTAGE=1
1543
1544PCOS_LTCURRENT=1
1545PCOS_LTREVISION=0
1546PCOS_LTAGE=0
1547
1548PDFLIB_LTVERSION="$PDFLIB_LTCURRENT:$PDFLIB_LTREVISION:$PDFLIB_LTAGE"
1549PLOP_LTVERSION="$PLOP_LTCURRENT:$PLOP_LTREVISION:$PLOP_LTAGE"
1550TET_LTVERSION="$TET_LTCURRENT:$TET_LTREVISION:$TET_LTAGE"
1551PCOS_LTVERSION="$PCOS_LTCURRENT:$PCOS_LTREVISION:$PCOS_LTAGE"
1552
1553
1554
1555
1556
1557
1558# do not remove this second RCS Id as we want to have it in the generated
1559# configure script
1560# $Id: configure,v 1.10.2.26 2010/04/28 18:00:10 rjs Exp $
1561# required for the pdflib-config script
1562
1563
1564
1565
1566
1567PDFLIBNAME=pdf
1568
1569# Check whether --with-pdflibname or --without-pdflibname was given.
1570if test "${with_pdflibname+set}" = set; then
1571  withval="$with_pdflibname"
1572  PDFLIBNAME="$withval"
1573fi;
1574
1575MATHLIB="-lm"
1576
1577# Check whether --with-libm or --without-libm was given.
1578if test "${with_libm+set}" = set; then
1579  withval="$with_libm"
1580  MATHLIB="$withval"
1581fi;
1582
1583
1584
1585ac_aux_dir=
1586for ac_dir in config $srcdir/config; do
1587  if test -f $ac_dir/install-sh; then
1588    ac_aux_dir=$ac_dir
1589    ac_install_sh="$ac_aux_dir/install-sh -c"
1590    break
1591  elif test -f $ac_dir/install.sh; then
1592    ac_aux_dir=$ac_dir
1593    ac_install_sh="$ac_aux_dir/install.sh -c"
1594    break
1595  elif test -f $ac_dir/shtool; then
1596    ac_aux_dir=$ac_dir
1597    ac_install_sh="$ac_aux_dir/shtool install -c"
1598    break
1599  fi
1600done
1601if test -z "$ac_aux_dir"; then
1602  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1603echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1604   { (exit 1); exit 1; }; }
1605fi
1606ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1607ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1608ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1609
1610
1611# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
1612## Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007
1613## Free Software Foundation, Inc.
1614## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
1615##
1616## This file is free software; the Free Software Foundation gives
1617## unlimited permission to copy and/or distribute it, with or without
1618## modifications, as long as this notice is preserved.
1619
1620# serial 51 AC_PROG_LIBTOOL
1621
1622
1623# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
1624# -----------------------------------------------------------
1625# If this macro is not defined by Autoconf, define it here.
1626
1627
1628
1629# AC_PROG_LIBTOOL
1630# ---------------
1631# AC_PROG_LIBTOOL
1632
1633
1634# _AC_PROG_LIBTOOL
1635# ----------------
1636# _AC_PROG_LIBTOOL
1637
1638
1639# AC_LIBTOOL_SETUP
1640# ----------------
1641# AC_LIBTOOL_SETUP
1642
1643
1644# _LT_AC_SYS_COMPILER
1645# -------------------
1646# _LT_AC_SYS_COMPILER
1647
1648
1649# _LT_CC_BASENAME(CC)
1650# -------------------
1651# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
1652
1653
1654
1655# _LT_COMPILER_BOILERPLATE
1656# ------------------------
1657# Check for compiler boilerplate output or warnings with
1658# the simple compiler test code.
1659# _LT_COMPILER_BOILERPLATE
1660
1661
1662# _LT_LINKER_BOILERPLATE
1663# ----------------------
1664# Check for linker boilerplate output or warnings with
1665# the simple link test code.
1666# _LT_LINKER_BOILERPLATE
1667
1668
1669# _LT_AC_SYS_LIBPATH_AIX
1670# ----------------------
1671# Links a minimal program and checks the executable
1672# for the system default hardcoded library path. In most cases,
1673# this is /usr/lib:/lib, but when the MPI compilers are used
1674# the location of the communication and MPI libs are included too.
1675# If we don't find anything, use the default library path according
1676# to the aix ld manual.
1677# _LT_AC_SYS_LIBPATH_AIX
1678
1679
1680# _LT_AC_SHELL_INIT(ARG)
1681# ----------------------
1682# _LT_AC_SHELL_INIT
1683
1684
1685# _LT_AC_PROG_ECHO_BACKSLASH
1686# --------------------------
1687# Add some code to the start of the generated configure script which
1688# will find an echo command which doesn't interpret backslashes.
1689# _LT_AC_PROG_ECHO_BACKSLASH
1690
1691
1692# _LT_AC_LOCK
1693# -----------
1694# _LT_AC_LOCK
1695
1696
1697# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1698#		[OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
1699# ----------------------------------------------------------------
1700# Check whether the given compiler option works
1701# AC_LIBTOOL_COMPILER_OPTION
1702
1703
1704# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1705#                          [ACTION-SUCCESS], [ACTION-FAILURE])
1706# ------------------------------------------------------------
1707# Check whether the given compiler option works
1708# AC_LIBTOOL_LINKER_OPTION
1709
1710
1711# AC_LIBTOOL_SYS_MAX_CMD_LEN
1712# --------------------------
1713# AC_LIBTOOL_SYS_MAX_CMD_LEN
1714
1715
1716# _LT_AC_CHECK_DLFCN
1717# ------------------
1718# _LT_AC_CHECK_DLFCN
1719
1720
1721# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
1722#                           ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
1723# ---------------------------------------------------------------------
1724# _LT_AC_TRY_DLOPEN_SELF
1725
1726
1727# AC_LIBTOOL_DLOPEN_SELF
1728# ----------------------
1729# AC_LIBTOOL_DLOPEN_SELF
1730
1731
1732# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
1733# ---------------------------------
1734# Check to see if options -c and -o are simultaneously supported by compiler
1735# AC_LIBTOOL_PROG_CC_C_O
1736
1737
1738# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
1739# -----------------------------------------
1740# Check to see if we can do hard links to lock some files if needed
1741# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
1742
1743
1744# AC_LIBTOOL_OBJDIR
1745# -----------------
1746# AC_LIBTOOL_OBJDIR
1747
1748
1749# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
1750# ----------------------------------------------
1751# Check hardcoding attributes.
1752# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
1753
1754
1755# AC_LIBTOOL_SYS_LIB_STRIP
1756# ------------------------
1757# AC_LIBTOOL_SYS_LIB_STRIP
1758
1759
1760# AC_LIBTOOL_SYS_DYNAMIC_LINKER
1761# -----------------------------
1762# PORTME Fill in your ld.so characteristics
1763# AC_LIBTOOL_SYS_DYNAMIC_LINKER
1764
1765
1766# _LT_AC_TAGCONFIG
1767# ----------------
1768# _LT_AC_TAGCONFIG
1769
1770
1771# AC_LIBTOOL_DLOPEN
1772# -----------------
1773# enable checks for dlopen support
1774# AC_LIBTOOL_DLOPEN
1775
1776
1777# AC_LIBTOOL_WIN32_DLL
1778# --------------------
1779# declare package support for building win32 DLLs
1780# AC_LIBTOOL_WIN32_DLL
1781
1782
1783# AC_ENABLE_SHARED([DEFAULT])
1784# ---------------------------
1785# implement the --enable-shared flag
1786# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
1787# AC_ENABLE_SHARED
1788
1789
1790# AC_DISABLE_SHARED
1791# -----------------
1792# set the default shared flag to --disable-shared
1793# AC_DISABLE_SHARED
1794
1795
1796# AC_ENABLE_STATIC([DEFAULT])
1797# ---------------------------
1798# implement the --enable-static flag
1799# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
1800# AC_ENABLE_STATIC
1801
1802
1803# AC_DISABLE_STATIC
1804# -----------------
1805# set the default static flag to --disable-static
1806# AC_DISABLE_STATIC
1807
1808
1809# AC_ENABLE_FAST_INSTALL([DEFAULT])
1810# ---------------------------------
1811# implement the --enable-fast-install flag
1812# DEFAULT is either `yes' or `no'.  If omitted, it defaults to `yes'.
1813# AC_ENABLE_FAST_INSTALL
1814
1815
1816# AC_DISABLE_FAST_INSTALL
1817# -----------------------
1818# set the default to --disable-fast-install
1819# AC_DISABLE_FAST_INSTALL
1820
1821
1822# AC_LIBTOOL_PICMODE([MODE])
1823# --------------------------
1824# implement the --with-pic flag
1825# MODE is either `yes' or `no'.  If omitted, it defaults to `both'.
1826# AC_LIBTOOL_PICMODE
1827
1828
1829# AC_PROG_EGREP
1830# -------------
1831# This is predefined starting with Autoconf 2.54, so this conditional
1832# definition can be removed once we require Autoconf 2.54 or later.
1833
1834
1835
1836# AC_PATH_TOOL_PREFIX
1837# -------------------
1838# find a file program which can recognize shared library
1839# AC_PATH_TOOL_PREFIX
1840
1841
1842# AC_PATH_MAGIC
1843# -------------
1844# find a file program which can recognize a shared library
1845# AC_PATH_MAGIC
1846
1847
1848# AC_PROG_LD
1849# ----------
1850# find the pathname to the GNU or non-GNU linker
1851# AC_PROG_LD
1852
1853
1854# AC_PROG_LD_GNU
1855# --------------
1856# AC_PROG_LD_GNU
1857
1858
1859# AC_PROG_LD_RELOAD_FLAG
1860# ----------------------
1861# find reload flag for linker
1862#   -- PORTME Some linkers may need a different reload flag.
1863# AC_PROG_LD_RELOAD_FLAG
1864
1865
1866# AC_DEPLIBS_CHECK_METHOD
1867# -----------------------
1868# how to check for library dependencies
1869#  -- PORTME fill in with the dynamic library characteristics
1870# AC_DEPLIBS_CHECK_METHOD
1871
1872
1873# AC_PROG_NM
1874# ----------
1875# find the pathname to a BSD-compatible name lister
1876# AC_PROG_NM
1877
1878
1879# AC_CHECK_LIBM
1880# -------------
1881# check for math library
1882# AC_CHECK_LIBM
1883
1884
1885# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
1886# -----------------------------------
1887# sets LIBLTDL to the link flags for the libltdl convenience library and
1888# LTDLINCL to the include flags for the libltdl header and adds
1889# --enable-ltdl-convenience to the configure arguments.  Note that
1890# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
1891# it is assumed to be `libltdl'.  LIBLTDL will be prefixed with
1892# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
1893# (note the single quotes!).  If your package is not flat and you're not
1894# using automake, define top_builddir and top_srcdir appropriately in
1895# the Makefiles.
1896# AC_LIBLTDL_CONVENIENCE
1897
1898
1899# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
1900# -----------------------------------
1901# sets LIBLTDL to the link flags for the libltdl installable library and
1902# LTDLINCL to the include flags for the libltdl header and adds
1903# --enable-ltdl-install to the configure arguments.  Note that
1904# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
1905# and an installed libltdl is not found, it is assumed to be `libltdl'.
1906# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
1907# '${top_srcdir}/' (note the single quotes!).  If your package is not
1908# flat and you're not using automake, define top_builddir and top_srcdir
1909# appropriately in the Makefiles.
1910# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
1911# AC_LIBLTDL_INSTALLABLE
1912
1913
1914# AC_LIBTOOL_CXX
1915# --------------
1916# enable support for C++ libraries
1917# AC_LIBTOOL_CXX
1918
1919
1920# _LT_AC_LANG_CXX
1921# ---------------
1922# _LT_AC_LANG_CXX
1923
1924# _LT_AC_PROG_CXXCPP
1925# ------------------
1926# _LT_AC_PROG_CXXCPP
1927
1928# AC_LIBTOOL_F77
1929# --------------
1930# enable support for Fortran 77 libraries
1931# AC_LIBTOOL_F77
1932
1933
1934# _LT_AC_LANG_F77
1935# ---------------
1936# _LT_AC_LANG_F77
1937
1938
1939# AC_LIBTOOL_GCJ
1940# --------------
1941# enable support for GCJ libraries
1942# AC_LIBTOOL_GCJ
1943
1944
1945# _LT_AC_LANG_GCJ
1946# ---------------
1947# _LT_AC_LANG_GCJ
1948
1949
1950# AC_LIBTOOL_RC
1951# -------------
1952# enable support for Windows resource files
1953# AC_LIBTOOL_RC
1954
1955
1956# AC_LIBTOOL_LANG_C_CONFIG
1957# ------------------------
1958# Ensure that the configuration vars for the C compiler are
1959# suitably defined.  Those variables are subsequently used by
1960# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
1961
1962# AC_LIBTOOL_LANG_C_CONFIG
1963
1964
1965# AC_LIBTOOL_LANG_CXX_CONFIG
1966# --------------------------
1967# Ensure that the configuration vars for the C compiler are
1968# suitably defined.  Those variables are subsequently used by
1969# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
1970
1971# AC_LIBTOOL_LANG_CXX_CONFIG
1972
1973# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
1974# ------------------------------------
1975# Figure out "hidden" library dependencies from verbose
1976# compiler output when linking a shared library.
1977# Parse the compiler output and extract the necessary
1978# objects, libraries and library flags.
1979# AC_LIBTOOL_POSTDEP_PREDEP
1980
1981# AC_LIBTOOL_LANG_F77_CONFIG
1982# --------------------------
1983# Ensure that the configuration vars for the C compiler are
1984# suitably defined.  Those variables are subsequently used by
1985# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
1986
1987# AC_LIBTOOL_LANG_F77_CONFIG
1988
1989
1990# AC_LIBTOOL_LANG_GCJ_CONFIG
1991# --------------------------
1992# Ensure that the configuration vars for the C compiler are
1993# suitably defined.  Those variables are subsequently used by
1994# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
1995
1996# AC_LIBTOOL_LANG_GCJ_CONFIG
1997
1998
1999# AC_LIBTOOL_LANG_RC_CONFIG
2000# -------------------------
2001# Ensure that the configuration vars for the Windows resource compiler are
2002# suitably defined.  Those variables are subsequently used by
2003# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
2004
2005# AC_LIBTOOL_LANG_RC_CONFIG
2006
2007
2008# AC_LIBTOOL_CONFIG([TAGNAME])
2009# ----------------------------
2010# If TAGNAME is not passed, then create an initial libtool script
2011# with a default configuration from the untagged config vars.  Otherwise
2012# add code to config.status for appending the configuration named by
2013# TAGNAME from the matching tagged config vars.
2014# AC_LIBTOOL_CONFIG
2015
2016
2017# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
2018# -------------------------------------------
2019# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
2020
2021
2022# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
2023# ---------------------------------
2024 # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
2025
2026
2027# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
2028# ---------------------------------------
2029
2030
2031
2032# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
2033# ------------------------------------
2034# See if the linker supports building shared libraries.
2035# AC_LIBTOOL_PROG_LD_SHLIBS
2036
2037
2038# _LT_AC_FILE_LTDLL_C
2039# -------------------
2040# Be careful that the start marker always follows a newline.
2041# _LT_AC_FILE_LTDLL_C
2042
2043
2044# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
2045# ---------------------------------
2046
2047
2048
2049# old names
2050
2051
2052
2053
2054
2055
2056
2057
2058# This is just to silence aclocal about the macro not being used
2059
2060
2061
2062
2063
2064
2065
2066# Cheap backport of AS_EXECUTABLE_P and required macros
2067# from Autoconf 2.59; we should not use $as_executable_p directly.
2068
2069# _AS_TEST_PREPARE
2070# ----------------
2071# _AS_TEST_PREPARE
2072
2073# AS_EXECUTABLE_P
2074# ---------------
2075# Check whether a file is executable.
2076# AS_EXECUTABLE_P
2077
2078############################################################
2079# NOTE: This macro has been submitted for inclusion into   #
2080#  GNU Autoconf as AC_PROG_SED.  When it is available in   #
2081#  a released version of Autoconf we should remove this    #
2082#  macro and use it instead.                               #
2083############################################################
2084# LT_AC_PROG_SED
2085# --------------
2086# Check for a fully-functional sed program, that truncates
2087# as few characters as possible.  Prefer GNU sed if found.
2088
2089
2090
2091# Make sure we can run config.sub.
2092$ac_config_sub sun4 >/dev/null 2>&1 ||
2093  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2094echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2095   { (exit 1); exit 1; }; }
2096
2097echo "$as_me:$LINENO: checking build system type" >&5
2098echo $ECHO_N "checking build system type... $ECHO_C" >&6
2099if test "${ac_cv_build+set}" = set; then
2100  echo $ECHO_N "(cached) $ECHO_C" >&6
2101else
2102  ac_cv_build_alias=$build_alias
2103test -z "$ac_cv_build_alias" &&
2104  ac_cv_build_alias=`$ac_config_guess`
2105test -z "$ac_cv_build_alias" &&
2106  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2107echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2108   { (exit 1); exit 1; }; }
2109ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2110  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2111echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2112   { (exit 1); exit 1; }; }
2113
2114fi
2115echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2116echo "${ECHO_T}$ac_cv_build" >&6
2117build=$ac_cv_build
2118build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2119build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2120build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2121
2122
2123echo "$as_me:$LINENO: checking host system type" >&5
2124echo $ECHO_N "checking host system type... $ECHO_C" >&6
2125if test "${ac_cv_host+set}" = set; then
2126  echo $ECHO_N "(cached) $ECHO_C" >&6
2127else
2128  ac_cv_host_alias=$host_alias
2129test -z "$ac_cv_host_alias" &&
2130  ac_cv_host_alias=$ac_cv_build_alias
2131ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2132  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2133echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2134   { (exit 1); exit 1; }; }
2135
2136fi
2137echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2138echo "${ECHO_T}$ac_cv_host" >&6
2139host=$ac_cv_host
2140host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2141host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2142host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2143
2144
2145
2146echo "$as_me:$LINENO: checking MACHDEP" >&5
2147echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6
2148if test -z "$MACHDEP"
2149then
2150    if test -f /usr/lib/NextStep/software_version; then
2151	set X `hostinfo | grep 'NeXT Mach.*:' | \
2152		sed -e 's/://' -e 's/\./_/'` && \
2153	ac_sys_system=next && ac_sys_release=$4
2154	MACHDEP="$ac_sys_system$ac_sys_release$ac_sys_cpu"
2155    else
2156	ac_sys_system=`uname -s`
2157	if test "$ac_sys_system" = "AIX" ; then
2158		ac_sys_release=`uname -v`
2159	else
2160		ac_sys_release=`uname -r`
2161	fi
2162	ac_md_system=`echo $ac_sys_system |
2163			   tr -d '/ ' | tr '[A-Z]' '[a-z]'`
2164	ac_md_release=`echo $ac_sys_release |
2165			   tr -d '/ ' | sed 's/\..*//'`
2166	MACHDEP="$ac_md_system$ac_md_release"
2167    fi
2168    case MACHDEP in
2169    '')	MACHDEP=unknown;;
2170    esac
2171fi
2172
2173echo "$as_me:$LINENO: result: $MACHDEP" >&5
2174echo "${ECHO_T}$MACHDEP" >&6
2175
2176ac_ext=c
2177ac_cpp='$CPP $CPPFLAGS'
2178ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2179ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2180ac_compiler_gnu=$ac_cv_c_compiler_gnu
2181if test -n "$ac_tool_prefix"; then
2182  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2183set dummy ${ac_tool_prefix}gcc; ac_word=$2
2184echo "$as_me:$LINENO: checking for $ac_word" >&5
2185echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2186if test "${ac_cv_prog_CC+set}" = set; then
2187  echo $ECHO_N "(cached) $ECHO_C" >&6
2188else
2189  if test -n "$CC"; then
2190  ac_cv_prog_CC="$CC" # Let the user override the test.
2191else
2192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2193for as_dir in $PATH
2194do
2195  IFS=$as_save_IFS
2196  test -z "$as_dir" && as_dir=.
2197  for ac_exec_ext in '' $ac_executable_extensions; do
2198  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2199    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2200    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2201    break 2
2202  fi
2203done
2204done
2205
2206fi
2207fi
2208CC=$ac_cv_prog_CC
2209if test -n "$CC"; then
2210  echo "$as_me:$LINENO: result: $CC" >&5
2211echo "${ECHO_T}$CC" >&6
2212else
2213  echo "$as_me:$LINENO: result: no" >&5
2214echo "${ECHO_T}no" >&6
2215fi
2216
2217fi
2218if test -z "$ac_cv_prog_CC"; then
2219  ac_ct_CC=$CC
2220  # Extract the first word of "gcc", so it can be a program name with args.
2221set dummy gcc; ac_word=$2
2222echo "$as_me:$LINENO: checking for $ac_word" >&5
2223echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2224if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2225  echo $ECHO_N "(cached) $ECHO_C" >&6
2226else
2227  if test -n "$ac_ct_CC"; then
2228  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2229else
2230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2231for as_dir in $PATH
2232do
2233  IFS=$as_save_IFS
2234  test -z "$as_dir" && as_dir=.
2235  for ac_exec_ext in '' $ac_executable_extensions; do
2236  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2237    ac_cv_prog_ac_ct_CC="gcc"
2238    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2239    break 2
2240  fi
2241done
2242done
2243
2244fi
2245fi
2246ac_ct_CC=$ac_cv_prog_ac_ct_CC
2247if test -n "$ac_ct_CC"; then
2248  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2249echo "${ECHO_T}$ac_ct_CC" >&6
2250else
2251  echo "$as_me:$LINENO: result: no" >&5
2252echo "${ECHO_T}no" >&6
2253fi
2254
2255  CC=$ac_ct_CC
2256else
2257  CC="$ac_cv_prog_CC"
2258fi
2259
2260if test -z "$CC"; then
2261  if test -n "$ac_tool_prefix"; then
2262  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2263set dummy ${ac_tool_prefix}cc; ac_word=$2
2264echo "$as_me:$LINENO: checking for $ac_word" >&5
2265echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2266if test "${ac_cv_prog_CC+set}" = set; then
2267  echo $ECHO_N "(cached) $ECHO_C" >&6
2268else
2269  if test -n "$CC"; then
2270  ac_cv_prog_CC="$CC" # Let the user override the test.
2271else
2272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2273for as_dir in $PATH
2274do
2275  IFS=$as_save_IFS
2276  test -z "$as_dir" && as_dir=.
2277  for ac_exec_ext in '' $ac_executable_extensions; do
2278  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2279    ac_cv_prog_CC="${ac_tool_prefix}cc"
2280    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2281    break 2
2282  fi
2283done
2284done
2285
2286fi
2287fi
2288CC=$ac_cv_prog_CC
2289if test -n "$CC"; then
2290  echo "$as_me:$LINENO: result: $CC" >&5
2291echo "${ECHO_T}$CC" >&6
2292else
2293  echo "$as_me:$LINENO: result: no" >&5
2294echo "${ECHO_T}no" >&6
2295fi
2296
2297fi
2298if test -z "$ac_cv_prog_CC"; then
2299  ac_ct_CC=$CC
2300  # Extract the first word of "cc", so it can be a program name with args.
2301set dummy cc; ac_word=$2
2302echo "$as_me:$LINENO: checking for $ac_word" >&5
2303echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2304if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2305  echo $ECHO_N "(cached) $ECHO_C" >&6
2306else
2307  if test -n "$ac_ct_CC"; then
2308  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2309else
2310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2311for as_dir in $PATH
2312do
2313  IFS=$as_save_IFS
2314  test -z "$as_dir" && as_dir=.
2315  for ac_exec_ext in '' $ac_executable_extensions; do
2316  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2317    ac_cv_prog_ac_ct_CC="cc"
2318    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2319    break 2
2320  fi
2321done
2322done
2323
2324fi
2325fi
2326ac_ct_CC=$ac_cv_prog_ac_ct_CC
2327if test -n "$ac_ct_CC"; then
2328  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2329echo "${ECHO_T}$ac_ct_CC" >&6
2330else
2331  echo "$as_me:$LINENO: result: no" >&5
2332echo "${ECHO_T}no" >&6
2333fi
2334
2335  CC=$ac_ct_CC
2336else
2337  CC="$ac_cv_prog_CC"
2338fi
2339
2340fi
2341if test -z "$CC"; then
2342  # Extract the first word of "cc", so it can be a program name with args.
2343set dummy cc; ac_word=$2
2344echo "$as_me:$LINENO: checking for $ac_word" >&5
2345echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2346if test "${ac_cv_prog_CC+set}" = set; then
2347  echo $ECHO_N "(cached) $ECHO_C" >&6
2348else
2349  if test -n "$CC"; then
2350  ac_cv_prog_CC="$CC" # Let the user override the test.
2351else
2352  ac_prog_rejected=no
2353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2354for as_dir in $PATH
2355do
2356  IFS=$as_save_IFS
2357  test -z "$as_dir" && as_dir=.
2358  for ac_exec_ext in '' $ac_executable_extensions; do
2359  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2360    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2361       ac_prog_rejected=yes
2362       continue
2363     fi
2364    ac_cv_prog_CC="cc"
2365    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2366    break 2
2367  fi
2368done
2369done
2370
2371if test $ac_prog_rejected = yes; then
2372  # We found a bogon in the path, so make sure we never use it.
2373  set dummy $ac_cv_prog_CC
2374  shift
2375  if test $# != 0; then
2376    # We chose a different compiler from the bogus one.
2377    # However, it has the same basename, so the bogon will be chosen
2378    # first if we set CC to just the basename; use the full file name.
2379    shift
2380    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2381  fi
2382fi
2383fi
2384fi
2385CC=$ac_cv_prog_CC
2386if test -n "$CC"; then
2387  echo "$as_me:$LINENO: result: $CC" >&5
2388echo "${ECHO_T}$CC" >&6
2389else
2390  echo "$as_me:$LINENO: result: no" >&5
2391echo "${ECHO_T}no" >&6
2392fi
2393
2394fi
2395if test -z "$CC"; then
2396  if test -n "$ac_tool_prefix"; then
2397  for ac_prog in cl
2398  do
2399    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2400set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2401echo "$as_me:$LINENO: checking for $ac_word" >&5
2402echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2403if test "${ac_cv_prog_CC+set}" = set; then
2404  echo $ECHO_N "(cached) $ECHO_C" >&6
2405else
2406  if test -n "$CC"; then
2407  ac_cv_prog_CC="$CC" # Let the user override the test.
2408else
2409as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2410for as_dir in $PATH
2411do
2412  IFS=$as_save_IFS
2413  test -z "$as_dir" && as_dir=.
2414  for ac_exec_ext in '' $ac_executable_extensions; do
2415  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2416    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2417    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2418    break 2
2419  fi
2420done
2421done
2422
2423fi
2424fi
2425CC=$ac_cv_prog_CC
2426if test -n "$CC"; then
2427  echo "$as_me:$LINENO: result: $CC" >&5
2428echo "${ECHO_T}$CC" >&6
2429else
2430  echo "$as_me:$LINENO: result: no" >&5
2431echo "${ECHO_T}no" >&6
2432fi
2433
2434    test -n "$CC" && break
2435  done
2436fi
2437if test -z "$CC"; then
2438  ac_ct_CC=$CC
2439  for ac_prog in cl
2440do
2441  # Extract the first word of "$ac_prog", so it can be a program name with args.
2442set dummy $ac_prog; ac_word=$2
2443echo "$as_me:$LINENO: checking for $ac_word" >&5
2444echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2445if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2446  echo $ECHO_N "(cached) $ECHO_C" >&6
2447else
2448  if test -n "$ac_ct_CC"; then
2449  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2450else
2451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2452for as_dir in $PATH
2453do
2454  IFS=$as_save_IFS
2455  test -z "$as_dir" && as_dir=.
2456  for ac_exec_ext in '' $ac_executable_extensions; do
2457  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2458    ac_cv_prog_ac_ct_CC="$ac_prog"
2459    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2460    break 2
2461  fi
2462done
2463done
2464
2465fi
2466fi
2467ac_ct_CC=$ac_cv_prog_ac_ct_CC
2468if test -n "$ac_ct_CC"; then
2469  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2470echo "${ECHO_T}$ac_ct_CC" >&6
2471else
2472  echo "$as_me:$LINENO: result: no" >&5
2473echo "${ECHO_T}no" >&6
2474fi
2475
2476  test -n "$ac_ct_CC" && break
2477done
2478
2479  CC=$ac_ct_CC
2480fi
2481
2482fi
2483
2484
2485test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2486See \`config.log' for more details." >&5
2487echo "$as_me: error: no acceptable C compiler found in \$PATH
2488See \`config.log' for more details." >&2;}
2489   { (exit 1); exit 1; }; }
2490
2491# Provide some information about the compiler.
2492echo "$as_me:$LINENO:" \
2493     "checking for C compiler version" >&5
2494ac_compiler=`set X $ac_compile; echo $2`
2495{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2496  (eval $ac_compiler --version </dev/null >&5) 2>&5
2497  ac_status=$?
2498  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2499  (exit $ac_status); }
2500{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2501  (eval $ac_compiler -v </dev/null >&5) 2>&5
2502  ac_status=$?
2503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2504  (exit $ac_status); }
2505{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2506  (eval $ac_compiler -V </dev/null >&5) 2>&5
2507  ac_status=$?
2508  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509  (exit $ac_status); }
2510
2511cat >conftest.$ac_ext <<_ACEOF
2512/* confdefs.h.  */
2513_ACEOF
2514cat confdefs.h >>conftest.$ac_ext
2515cat >>conftest.$ac_ext <<_ACEOF
2516/* end confdefs.h.  */
2517
2518int
2519main ()
2520{
2521
2522  ;
2523  return 0;
2524}
2525_ACEOF
2526ac_clean_files_save=$ac_clean_files
2527ac_clean_files="$ac_clean_files a.out a.exe b.out"
2528# Try to create an executable without -o first, disregard a.out.
2529# It will help us diagnose broken compilers, and finding out an intuition
2530# of exeext.
2531echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2532echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2533ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2534if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2535  (eval $ac_link_default) 2>&5
2536  ac_status=$?
2537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2538  (exit $ac_status); }; then
2539  # Find the output, starting from the most likely.  This scheme is
2540# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2541# resort.
2542
2543# Be careful to initialize this variable, since it used to be cached.
2544# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2545ac_cv_exeext=
2546# b.out is created by i960 compilers.
2547for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2548do
2549  test -f "$ac_file" || continue
2550  case $ac_file in
2551    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2552	;;
2553    conftest.$ac_ext )
2554	# This is the source file.
2555	;;
2556    [ab].out )
2557	# We found the default executable, but exeext='' is most
2558	# certainly right.
2559	break;;
2560    *.* )
2561	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2562	# FIXME: I believe we export ac_cv_exeext for Libtool,
2563	# but it would be cool to find out if it's true.  Does anybody
2564	# maintain Libtool? --akim.
2565	export ac_cv_exeext
2566	break;;
2567    * )
2568	break;;
2569  esac
2570done
2571else
2572  echo "$as_me: failed program was:" >&5
2573sed 's/^/| /' conftest.$ac_ext >&5
2574
2575{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2576See \`config.log' for more details." >&5
2577echo "$as_me: error: C compiler cannot create executables
2578See \`config.log' for more details." >&2;}
2579   { (exit 77); exit 77; }; }
2580fi
2581
2582ac_exeext=$ac_cv_exeext
2583echo "$as_me:$LINENO: result: $ac_file" >&5
2584echo "${ECHO_T}$ac_file" >&6
2585
2586# Check the compiler produces executables we can run.  If not, either
2587# the compiler is broken, or we cross compile.
2588echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2589echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2590# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2591# If not cross compiling, check that we can run a simple program.
2592if test "$cross_compiling" != yes; then
2593  if { ac_try='./$ac_file'
2594  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2595  (eval $ac_try) 2>&5
2596  ac_status=$?
2597  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2598  (exit $ac_status); }; }; then
2599    cross_compiling=no
2600  else
2601    if test "$cross_compiling" = maybe; then
2602	cross_compiling=yes
2603    else
2604	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2605If you meant to cross compile, use \`--host'.
2606See \`config.log' for more details." >&5
2607echo "$as_me: error: cannot run C compiled programs.
2608If you meant to cross compile, use \`--host'.
2609See \`config.log' for more details." >&2;}
2610   { (exit 1); exit 1; }; }
2611    fi
2612  fi
2613fi
2614echo "$as_me:$LINENO: result: yes" >&5
2615echo "${ECHO_T}yes" >&6
2616
2617rm -f a.out a.exe conftest$ac_cv_exeext b.out
2618ac_clean_files=$ac_clean_files_save
2619# Check the compiler produces executables we can run.  If not, either
2620# the compiler is broken, or we cross compile.
2621echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2622echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2623echo "$as_me:$LINENO: result: $cross_compiling" >&5
2624echo "${ECHO_T}$cross_compiling" >&6
2625
2626echo "$as_me:$LINENO: checking for suffix of executables" >&5
2627echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2628if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2629  (eval $ac_link) 2>&5
2630  ac_status=$?
2631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632  (exit $ac_status); }; then
2633  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2634# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2635# work properly (i.e., refer to `conftest.exe'), while it won't with
2636# `rm'.
2637for ac_file in conftest.exe conftest conftest.*; do
2638  test -f "$ac_file" || continue
2639  case $ac_file in
2640    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2641    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2642	  export ac_cv_exeext
2643	  break;;
2644    * ) break;;
2645  esac
2646done
2647else
2648  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2649See \`config.log' for more details." >&5
2650echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2651See \`config.log' for more details." >&2;}
2652   { (exit 1); exit 1; }; }
2653fi
2654
2655rm -f conftest$ac_cv_exeext
2656echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2657echo "${ECHO_T}$ac_cv_exeext" >&6
2658
2659rm -f conftest.$ac_ext
2660EXEEXT=$ac_cv_exeext
2661ac_exeext=$EXEEXT
2662echo "$as_me:$LINENO: checking for suffix of object files" >&5
2663echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2664if test "${ac_cv_objext+set}" = set; then
2665  echo $ECHO_N "(cached) $ECHO_C" >&6
2666else
2667  cat >conftest.$ac_ext <<_ACEOF
2668/* confdefs.h.  */
2669_ACEOF
2670cat confdefs.h >>conftest.$ac_ext
2671cat >>conftest.$ac_ext <<_ACEOF
2672/* end confdefs.h.  */
2673
2674int
2675main ()
2676{
2677
2678  ;
2679  return 0;
2680}
2681_ACEOF
2682rm -f conftest.o conftest.obj
2683if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2684  (eval $ac_compile) 2>&5
2685  ac_status=$?
2686  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687  (exit $ac_status); }; then
2688  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2689  case $ac_file in
2690    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2691    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2692       break;;
2693  esac
2694done
2695else
2696  echo "$as_me: failed program was:" >&5
2697sed 's/^/| /' conftest.$ac_ext >&5
2698
2699{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2700See \`config.log' for more details." >&5
2701echo "$as_me: error: cannot compute suffix of object files: cannot compile
2702See \`config.log' for more details." >&2;}
2703   { (exit 1); exit 1; }; }
2704fi
2705
2706rm -f conftest.$ac_cv_objext conftest.$ac_ext
2707fi
2708echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2709echo "${ECHO_T}$ac_cv_objext" >&6
2710OBJEXT=$ac_cv_objext
2711ac_objext=$OBJEXT
2712echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2713echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2714if test "${ac_cv_c_compiler_gnu+set}" = set; then
2715  echo $ECHO_N "(cached) $ECHO_C" >&6
2716else
2717  cat >conftest.$ac_ext <<_ACEOF
2718/* confdefs.h.  */
2719_ACEOF
2720cat confdefs.h >>conftest.$ac_ext
2721cat >>conftest.$ac_ext <<_ACEOF
2722/* end confdefs.h.  */
2723
2724int
2725main ()
2726{
2727#ifndef __GNUC__
2728       choke me
2729#endif
2730
2731  ;
2732  return 0;
2733}
2734_ACEOF
2735rm -f conftest.$ac_objext
2736if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2737  (eval $ac_compile) 2>conftest.er1
2738  ac_status=$?
2739  grep -v '^ *+' conftest.er1 >conftest.err
2740  rm -f conftest.er1
2741  cat conftest.err >&5
2742  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743  (exit $ac_status); } &&
2744	 { ac_try='test -z "$ac_c_werror_flag"
2745			 || test ! -s conftest.err'
2746  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2747  (eval $ac_try) 2>&5
2748  ac_status=$?
2749  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750  (exit $ac_status); }; } &&
2751	 { ac_try='test -s conftest.$ac_objext'
2752  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2753  (eval $ac_try) 2>&5
2754  ac_status=$?
2755  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2756  (exit $ac_status); }; }; then
2757  ac_compiler_gnu=yes
2758else
2759  echo "$as_me: failed program was:" >&5
2760sed 's/^/| /' conftest.$ac_ext >&5
2761
2762ac_compiler_gnu=no
2763fi
2764rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2765ac_cv_c_compiler_gnu=$ac_compiler_gnu
2766
2767fi
2768echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2769echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2770GCC=`test $ac_compiler_gnu = yes && echo yes`
2771ac_test_CFLAGS=${CFLAGS+set}
2772ac_save_CFLAGS=$CFLAGS
2773CFLAGS="-g"
2774echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2775echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2776if test "${ac_cv_prog_cc_g+set}" = set; then
2777  echo $ECHO_N "(cached) $ECHO_C" >&6
2778else
2779  cat >conftest.$ac_ext <<_ACEOF
2780/* confdefs.h.  */
2781_ACEOF
2782cat confdefs.h >>conftest.$ac_ext
2783cat >>conftest.$ac_ext <<_ACEOF
2784/* end confdefs.h.  */
2785
2786int
2787main ()
2788{
2789
2790  ;
2791  return 0;
2792}
2793_ACEOF
2794rm -f conftest.$ac_objext
2795if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2796  (eval $ac_compile) 2>conftest.er1
2797  ac_status=$?
2798  grep -v '^ *+' conftest.er1 >conftest.err
2799  rm -f conftest.er1
2800  cat conftest.err >&5
2801  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802  (exit $ac_status); } &&
2803	 { ac_try='test -z "$ac_c_werror_flag"
2804			 || test ! -s conftest.err'
2805  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2806  (eval $ac_try) 2>&5
2807  ac_status=$?
2808  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2809  (exit $ac_status); }; } &&
2810	 { ac_try='test -s conftest.$ac_objext'
2811  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2812  (eval $ac_try) 2>&5
2813  ac_status=$?
2814  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2815  (exit $ac_status); }; }; then
2816  ac_cv_prog_cc_g=yes
2817else
2818  echo "$as_me: failed program was:" >&5
2819sed 's/^/| /' conftest.$ac_ext >&5
2820
2821ac_cv_prog_cc_g=no
2822fi
2823rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2824fi
2825echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2826echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2827if test "$ac_test_CFLAGS" = set; then
2828  CFLAGS=$ac_save_CFLAGS
2829elif test $ac_cv_prog_cc_g = yes; then
2830  if test "$GCC" = yes; then
2831    CFLAGS="-g -O2"
2832  else
2833    CFLAGS="-g"
2834  fi
2835else
2836  if test "$GCC" = yes; then
2837    CFLAGS="-O2"
2838  else
2839    CFLAGS=
2840  fi
2841fi
2842echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2843echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2844if test "${ac_cv_prog_cc_stdc+set}" = set; then
2845  echo $ECHO_N "(cached) $ECHO_C" >&6
2846else
2847  ac_cv_prog_cc_stdc=no
2848ac_save_CC=$CC
2849cat >conftest.$ac_ext <<_ACEOF
2850/* confdefs.h.  */
2851_ACEOF
2852cat confdefs.h >>conftest.$ac_ext
2853cat >>conftest.$ac_ext <<_ACEOF
2854/* end confdefs.h.  */
2855#include <stdarg.h>
2856#include <stdio.h>
2857#include <sys/types.h>
2858#include <sys/stat.h>
2859/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2860struct buf { int x; };
2861FILE * (*rcsopen) (struct buf *, struct stat *, int);
2862static char *e (p, i)
2863     char **p;
2864     int i;
2865{
2866  return p[i];
2867}
2868static char *f (char * (*g) (char **, int), char **p, ...)
2869{
2870  char *s;
2871  va_list v;
2872  va_start (v,p);
2873  s = g (p, va_arg (v,int));
2874  va_end (v);
2875  return s;
2876}
2877
2878/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2879   function prototypes and stuff, but not '\xHH' hex character constants.
2880   These don't provoke an error unfortunately, instead are silently treated
2881   as 'x'.  The following induces an error, until -std1 is added to get
2882   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2883   array size at least.  It's necessary to write '\x00'==0 to get something
2884   that's true only with -std1.  */
2885int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2886
2887int test (int i, double x);
2888struct s1 {int (*f) (int a);};
2889struct s2 {int (*f) (double a);};
2890int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2891int argc;
2892char **argv;
2893int
2894main ()
2895{
2896return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2897  ;
2898  return 0;
2899}
2900_ACEOF
2901# Don't try gcc -ansi; that turns off useful extensions and
2902# breaks some systems' header files.
2903# AIX			-qlanglvl=ansi
2904# Ultrix and OSF/1	-std1
2905# HP-UX 10.20 and later	-Ae
2906# HP-UX older versions	-Aa -D_HPUX_SOURCE
2907# SVR4			-Xc -D__EXTENSIONS__
2908for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2909do
2910  CC="$ac_save_CC $ac_arg"
2911  rm -f conftest.$ac_objext
2912if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2913  (eval $ac_compile) 2>conftest.er1
2914  ac_status=$?
2915  grep -v '^ *+' conftest.er1 >conftest.err
2916  rm -f conftest.er1
2917  cat conftest.err >&5
2918  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2919  (exit $ac_status); } &&
2920	 { ac_try='test -z "$ac_c_werror_flag"
2921			 || test ! -s conftest.err'
2922  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2923  (eval $ac_try) 2>&5
2924  ac_status=$?
2925  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2926  (exit $ac_status); }; } &&
2927	 { ac_try='test -s conftest.$ac_objext'
2928  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2929  (eval $ac_try) 2>&5
2930  ac_status=$?
2931  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932  (exit $ac_status); }; }; then
2933  ac_cv_prog_cc_stdc=$ac_arg
2934break
2935else
2936  echo "$as_me: failed program was:" >&5
2937sed 's/^/| /' conftest.$ac_ext >&5
2938
2939fi
2940rm -f conftest.err conftest.$ac_objext
2941done
2942rm -f conftest.$ac_ext conftest.$ac_objext
2943CC=$ac_save_CC
2944
2945fi
2946
2947case "x$ac_cv_prog_cc_stdc" in
2948  x|xno)
2949    echo "$as_me:$LINENO: result: none needed" >&5
2950echo "${ECHO_T}none needed" >&6 ;;
2951  *)
2952    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2953echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2954    CC="$CC $ac_cv_prog_cc_stdc" ;;
2955esac
2956
2957# Some people use a C++ compiler to compile C.  Since we use `exit',
2958# in C++ we need to declare it.  In case someone uses the same compiler
2959# for both compiling C and C++ we need to have the C++ compiler decide
2960# the declaration of exit, since it's the most demanding environment.
2961cat >conftest.$ac_ext <<_ACEOF
2962#ifndef __cplusplus
2963  choke me
2964#endif
2965_ACEOF
2966rm -f conftest.$ac_objext
2967if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2968  (eval $ac_compile) 2>conftest.er1
2969  ac_status=$?
2970  grep -v '^ *+' conftest.er1 >conftest.err
2971  rm -f conftest.er1
2972  cat conftest.err >&5
2973  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2974  (exit $ac_status); } &&
2975	 { ac_try='test -z "$ac_c_werror_flag"
2976			 || test ! -s conftest.err'
2977  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2978  (eval $ac_try) 2>&5
2979  ac_status=$?
2980  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981  (exit $ac_status); }; } &&
2982	 { ac_try='test -s conftest.$ac_objext'
2983  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2984  (eval $ac_try) 2>&5
2985  ac_status=$?
2986  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987  (exit $ac_status); }; }; then
2988  for ac_declaration in \
2989   '' \
2990   'extern "C" void std::exit (int) throw (); using std::exit;' \
2991   'extern "C" void std::exit (int); using std::exit;' \
2992   'extern "C" void exit (int) throw ();' \
2993   'extern "C" void exit (int);' \
2994   'void exit (int);'
2995do
2996  cat >conftest.$ac_ext <<_ACEOF
2997/* confdefs.h.  */
2998_ACEOF
2999cat confdefs.h >>conftest.$ac_ext
3000cat >>conftest.$ac_ext <<_ACEOF
3001/* end confdefs.h.  */
3002$ac_declaration
3003#include <stdlib.h>
3004int
3005main ()
3006{
3007exit (42);
3008  ;
3009  return 0;
3010}
3011_ACEOF
3012rm -f conftest.$ac_objext
3013if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3014  (eval $ac_compile) 2>conftest.er1
3015  ac_status=$?
3016  grep -v '^ *+' conftest.er1 >conftest.err
3017  rm -f conftest.er1
3018  cat conftest.err >&5
3019  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3020  (exit $ac_status); } &&
3021	 { ac_try='test -z "$ac_c_werror_flag"
3022			 || test ! -s conftest.err'
3023  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3024  (eval $ac_try) 2>&5
3025  ac_status=$?
3026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027  (exit $ac_status); }; } &&
3028	 { ac_try='test -s conftest.$ac_objext'
3029  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3030  (eval $ac_try) 2>&5
3031  ac_status=$?
3032  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033  (exit $ac_status); }; }; then
3034  :
3035else
3036  echo "$as_me: failed program was:" >&5
3037sed 's/^/| /' conftest.$ac_ext >&5
3038
3039continue
3040fi
3041rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3042  cat >conftest.$ac_ext <<_ACEOF
3043/* confdefs.h.  */
3044_ACEOF
3045cat confdefs.h >>conftest.$ac_ext
3046cat >>conftest.$ac_ext <<_ACEOF
3047/* end confdefs.h.  */
3048$ac_declaration
3049int
3050main ()
3051{
3052exit (42);
3053  ;
3054  return 0;
3055}
3056_ACEOF
3057rm -f conftest.$ac_objext
3058if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3059  (eval $ac_compile) 2>conftest.er1
3060  ac_status=$?
3061  grep -v '^ *+' conftest.er1 >conftest.err
3062  rm -f conftest.er1
3063  cat conftest.err >&5
3064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3065  (exit $ac_status); } &&
3066	 { ac_try='test -z "$ac_c_werror_flag"
3067			 || test ! -s conftest.err'
3068  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3069  (eval $ac_try) 2>&5
3070  ac_status=$?
3071  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3072  (exit $ac_status); }; } &&
3073	 { ac_try='test -s conftest.$ac_objext'
3074  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3075  (eval $ac_try) 2>&5
3076  ac_status=$?
3077  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3078  (exit $ac_status); }; }; then
3079  break
3080else
3081  echo "$as_me: failed program was:" >&5
3082sed 's/^/| /' conftest.$ac_ext >&5
3083
3084fi
3085rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3086done
3087rm -f conftest*
3088if test -n "$ac_declaration"; then
3089  echo '#ifdef __cplusplus' >>confdefs.h
3090  echo $ac_declaration      >>confdefs.h
3091  echo '#endif'             >>confdefs.h
3092fi
3093
3094else
3095  echo "$as_me: failed program was:" >&5
3096sed 's/^/| /' conftest.$ac_ext >&5
3097
3098fi
3099rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3100ac_ext=c
3101ac_cpp='$CPP $CPPFLAGS'
3102ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3103ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3104ac_compiler_gnu=$ac_cv_c_compiler_gnu
3105
3106ac_ext=c
3107ac_cpp='$CPP $CPPFLAGS'
3108ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3109ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3110ac_compiler_gnu=$ac_cv_c_compiler_gnu
3111echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3112echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3113# On Suns, sometimes $CPP names a directory.
3114if test -n "$CPP" && test -d "$CPP"; then
3115  CPP=
3116fi
3117if test -z "$CPP"; then
3118  if test "${ac_cv_prog_CPP+set}" = set; then
3119  echo $ECHO_N "(cached) $ECHO_C" >&6
3120else
3121      # Double quotes because CPP needs to be expanded
3122    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3123    do
3124      ac_preproc_ok=false
3125for ac_c_preproc_warn_flag in '' yes
3126do
3127  # Use a header file that comes with gcc, so configuring glibc
3128  # with a fresh cross-compiler works.
3129  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3130  # <limits.h> exists even on freestanding compilers.
3131  # On the NeXT, cc -E runs the code through the compiler's parser,
3132  # not just through cpp. "Syntax error" is here to catch this case.
3133  cat >conftest.$ac_ext <<_ACEOF
3134/* confdefs.h.  */
3135_ACEOF
3136cat confdefs.h >>conftest.$ac_ext
3137cat >>conftest.$ac_ext <<_ACEOF
3138/* end confdefs.h.  */
3139#ifdef __STDC__
3140# include <limits.h>
3141#else
3142# include <assert.h>
3143#endif
3144		     Syntax error
3145_ACEOF
3146if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3147  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3148  ac_status=$?
3149  grep -v '^ *+' conftest.er1 >conftest.err
3150  rm -f conftest.er1
3151  cat conftest.err >&5
3152  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3153  (exit $ac_status); } >/dev/null; then
3154  if test -s conftest.err; then
3155    ac_cpp_err=$ac_c_preproc_warn_flag
3156    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3157  else
3158    ac_cpp_err=
3159  fi
3160else
3161  ac_cpp_err=yes
3162fi
3163if test -z "$ac_cpp_err"; then
3164  :
3165else
3166  echo "$as_me: failed program was:" >&5
3167sed 's/^/| /' conftest.$ac_ext >&5
3168
3169  # Broken: fails on valid input.
3170continue
3171fi
3172rm -f conftest.err conftest.$ac_ext
3173
3174  # OK, works on sane cases.  Now check whether non-existent headers
3175  # can be detected and how.
3176  cat >conftest.$ac_ext <<_ACEOF
3177/* confdefs.h.  */
3178_ACEOF
3179cat confdefs.h >>conftest.$ac_ext
3180cat >>conftest.$ac_ext <<_ACEOF
3181/* end confdefs.h.  */
3182#include <ac_nonexistent.h>
3183_ACEOF
3184if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3185  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3186  ac_status=$?
3187  grep -v '^ *+' conftest.er1 >conftest.err
3188  rm -f conftest.er1
3189  cat conftest.err >&5
3190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191  (exit $ac_status); } >/dev/null; then
3192  if test -s conftest.err; then
3193    ac_cpp_err=$ac_c_preproc_warn_flag
3194    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3195  else
3196    ac_cpp_err=
3197  fi
3198else
3199  ac_cpp_err=yes
3200fi
3201if test -z "$ac_cpp_err"; then
3202  # Broken: success on invalid input.
3203continue
3204else
3205  echo "$as_me: failed program was:" >&5
3206sed 's/^/| /' conftest.$ac_ext >&5
3207
3208  # Passes both tests.
3209ac_preproc_ok=:
3210break
3211fi
3212rm -f conftest.err conftest.$ac_ext
3213
3214done
3215# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3216rm -f conftest.err conftest.$ac_ext
3217if $ac_preproc_ok; then
3218  break
3219fi
3220
3221    done
3222    ac_cv_prog_CPP=$CPP
3223
3224fi
3225  CPP=$ac_cv_prog_CPP
3226else
3227  ac_cv_prog_CPP=$CPP
3228fi
3229echo "$as_me:$LINENO: result: $CPP" >&5
3230echo "${ECHO_T}$CPP" >&6
3231ac_preproc_ok=false
3232for ac_c_preproc_warn_flag in '' yes
3233do
3234  # Use a header file that comes with gcc, so configuring glibc
3235  # with a fresh cross-compiler works.
3236  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3237  # <limits.h> exists even on freestanding compilers.
3238  # On the NeXT, cc -E runs the code through the compiler's parser,
3239  # not just through cpp. "Syntax error" is here to catch this case.
3240  cat >conftest.$ac_ext <<_ACEOF
3241/* confdefs.h.  */
3242_ACEOF
3243cat confdefs.h >>conftest.$ac_ext
3244cat >>conftest.$ac_ext <<_ACEOF
3245/* end confdefs.h.  */
3246#ifdef __STDC__
3247# include <limits.h>
3248#else
3249# include <assert.h>
3250#endif
3251		     Syntax error
3252_ACEOF
3253if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3254  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3255  ac_status=$?
3256  grep -v '^ *+' conftest.er1 >conftest.err
3257  rm -f conftest.er1
3258  cat conftest.err >&5
3259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3260  (exit $ac_status); } >/dev/null; then
3261  if test -s conftest.err; then
3262    ac_cpp_err=$ac_c_preproc_warn_flag
3263    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3264  else
3265    ac_cpp_err=
3266  fi
3267else
3268  ac_cpp_err=yes
3269fi
3270if test -z "$ac_cpp_err"; then
3271  :
3272else
3273  echo "$as_me: failed program was:" >&5
3274sed 's/^/| /' conftest.$ac_ext >&5
3275
3276  # Broken: fails on valid input.
3277continue
3278fi
3279rm -f conftest.err conftest.$ac_ext
3280
3281  # OK, works on sane cases.  Now check whether non-existent headers
3282  # can be detected and how.
3283  cat >conftest.$ac_ext <<_ACEOF
3284/* confdefs.h.  */
3285_ACEOF
3286cat confdefs.h >>conftest.$ac_ext
3287cat >>conftest.$ac_ext <<_ACEOF
3288/* end confdefs.h.  */
3289#include <ac_nonexistent.h>
3290_ACEOF
3291if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3292  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3293  ac_status=$?
3294  grep -v '^ *+' conftest.er1 >conftest.err
3295  rm -f conftest.er1
3296  cat conftest.err >&5
3297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298  (exit $ac_status); } >/dev/null; then
3299  if test -s conftest.err; then
3300    ac_cpp_err=$ac_c_preproc_warn_flag
3301    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3302  else
3303    ac_cpp_err=
3304  fi
3305else
3306  ac_cpp_err=yes
3307fi
3308if test -z "$ac_cpp_err"; then
3309  # Broken: success on invalid input.
3310continue
3311else
3312  echo "$as_me: failed program was:" >&5
3313sed 's/^/| /' conftest.$ac_ext >&5
3314
3315  # Passes both tests.
3316ac_preproc_ok=:
3317break
3318fi
3319rm -f conftest.err conftest.$ac_ext
3320
3321done
3322# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3323rm -f conftest.err conftest.$ac_ext
3324if $ac_preproc_ok; then
3325  :
3326else
3327   :
3328fi
3329
3330ac_ext=c
3331ac_cpp='$CPP $CPPFLAGS'
3332ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3333ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3334ac_compiler_gnu=$ac_cv_c_compiler_gnu
3335
3336# Find a good install program.  We prefer a C program (faster),
3337# so one script is as good as another.  But avoid the broken or
3338# incompatible versions:
3339# SysV /etc/install, /usr/sbin/install
3340# SunOS /usr/etc/install
3341# IRIX /sbin/install
3342# AIX /bin/install
3343# AmigaOS /C/install, which installs bootblocks on floppy discs
3344# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3345# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3346# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3347# OS/2's system install, which has a completely different semantic
3348# ./install, which can be erroneously created by make from ./install.sh.
3349echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3350echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3351if test -z "$INSTALL"; then
3352if test "${ac_cv_path_install+set}" = set; then
3353  echo $ECHO_N "(cached) $ECHO_C" >&6
3354else
3355  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3356for as_dir in $PATH
3357do
3358  IFS=$as_save_IFS
3359  test -z "$as_dir" && as_dir=.
3360  # Account for people who put trailing slashes in PATH elements.
3361case $as_dir/ in
3362  ./ | .// | /cC/* | \
3363  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3364  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3365  /usr/ucb/* ) ;;
3366  *)
3367    # OSF1 and SCO ODT 3.0 have their own names for install.
3368    # Don't use installbsd from OSF since it installs stuff as root
3369    # by default.
3370    for ac_prog in ginstall scoinst install; do
3371      for ac_exec_ext in '' $ac_executable_extensions; do
3372	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3373	  if test $ac_prog = install &&
3374	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3375	    # AIX install.  It has an incompatible calling convention.
3376	    :
3377	  elif test $ac_prog = install &&
3378	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3379	    # program-specific install script used by HP pwplus--don't use.
3380	    :
3381	  else
3382	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3383	    break 3
3384	  fi
3385	fi
3386      done
3387    done
3388    ;;
3389esac
3390done
3391
3392
3393fi
3394  if test "${ac_cv_path_install+set}" = set; then
3395    INSTALL=$ac_cv_path_install
3396  else
3397    # As a last resort, use the slow shell script.  We don't cache a
3398    # path for INSTALL within a source directory, because that will
3399    # break other packages using the cache if that directory is
3400    # removed, or if the path is relative.
3401    INSTALL=$ac_install_sh
3402  fi
3403fi
3404echo "$as_me:$LINENO: result: $INSTALL" >&5
3405echo "${ECHO_T}$INSTALL" >&6
3406
3407# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3408# It thinks the first close brace ends the variable substitution.
3409test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3410
3411test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3412
3413test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3414
3415SHELL="/bin/sh"
3416RM="rm -rf"
3417
3418WITH_DEBUG=no
3419# Check whether --enable-debug or --disable-debug was given.
3420if test "${enable_debug+set}" = set; then
3421  enableval="$enable_debug"
3422  if test "$enableval" = "yes" ; then
3423    WITH_DEBUG=yes
3424fi
3425fi;
3426
3427WITH_PROFILE=no
3428# Check whether --enable-profile or --disable-profile was given.
3429if test "${enable_profile+set}" = set; then
3430  enableval="$enable_profile"
3431  if test "$enableval" = "yes" ; then
3432    WITH_PROFILE=yes
3433fi
3434fi;
3435
3436# detect -O2 (only GCC) and move -O2 to PDFOPTIMIZE so that it can be
3437# overwritten somewhere where needed
3438if test "x$GCC" != "x"; then
3439    if test "$CFLAGS" = "-g -O2"; then
3440        CFLAGS="-g"
3441        PDFOPTIMIZE="-O2"
3442    fi
3443fi
3444
3445if test "$WITH_DEBUG" = "yes"; then
3446    if test "$PDFOPTIMIZE" = "-O2"; then
3447        PDFOPTIMIZE="-DDEBUG"
3448    fi
3449fi
3450
3451if test "$WITH_PROFILE" = "yes"; then
3452    CFLAGS="$CFLAGS -pg"
3453    LDFLAGS="$LDFLAGS -pg"
3454fi
3455
3456
3457PLATFORM_ID=$ac_sys_system
3458PLATFORM="-DPDF_PLATFORM=\\\"\"$ac_sys_system\"\\\""
3459WITH_LARGE_FILES=no
3460WITH_64BIT=no
3461WITH_UNIVERSAL=no
3462JAVA_COMPATIBILITY="-source 6"
3463
3464case $ac_sys_system in
3465            aix*|AIX*)
3466	if test "$ac_sys_release" = "4"; then
3467	    PLATFORM="-DPDF_PLATFORM=\\\"\"AIX4\"\\\""
3468	fi
3469	CFLAGS="$CFLAGS -DAIX -DPDC_PF_AIX"
3470        WITH_LARGE_FILES=yes
3471	if test "$GCC" = ""; then
3472	    CFLAGS="$CFLAGS -O2 -qthreaded -mxl-compat -D_THREAD_SAFE_ERRNO"
3473	    CFLAGS="$CFLAGS -O2"
3474	    CXXFLAGS="$CXXFLAGS -O2"
3475	    LDFLAGS="$LDFLAGS -O2"
3476	else
3477	    if test "$ac_sys_release" = "5"; then
3478		CFLAGS="$CFLAGS -O2 -pthread"
3479	    fi
3480	fi
3481        if test "$CXX" = "g++"; then
3482	    CXXFLAGS="$CXXFLAGS -mxl-compat"
3483 	fi
3484        # Check whether --enable-64bit or --disable-64bit was given.
3485if test "${enable_64bit+set}" = set; then
3486  enableval="$enable_64bit"
3487  if test "$enableval" = "yes" ; then
3488            WITH_64BIT=yes
3489        fi
3490fi;
3491        if test "$WITH_64BIT" = "yes"; then
3492            PLATFORM="-DPDF_PLATFORM=\\\"\"AIX64\"\\\""
3493	    CFLAGS="$CFLAGS -DPDC_PF_AIX64"
3494            if test "$GCC" = ""; then
3495		CFLAGS="$CFLAGS -q64"
3496	    else
3497		CFLAGS="$CFLAGS -maix64"
3498	    fi
3499	fi
3500	;;
3501
3502    cyg*|CYG*) CPPFLAGS="$CPPFLAGS -U_WIN32 -UWIN32 -U__WIN32__ -U_Windows";;
3503
3504        hp*|HP*)
3505        ac_sys_arch=`uname -m`
3506	JAVA_COMPATIBILITY=""
3507        WITH_LARGE_FILES=yes
3508        # Check whether --enable-64bit or --disable-64bit was given.
3509if test "${enable_64bit+set}" = set; then
3510  enableval="$enable_64bit"
3511  if test "$enableval" = "yes" ; then
3512            WITH_64BIT=yes
3513        fi
3514fi;
3515	if test "$GCC" = ""; then
3516	    CFLAGS="$CFLAGS -mt"
3517	    CFLAGS="$CFLAGS -O"
3518	    CXXFLAGS="$CXXFLAGS -O"
3519	    LDFLAGS="$LDFLAGS -O"
3520	else
3521	    CFLAGS="$CFLAGS -pthreads"
3522	fi
3523        if test "$CXX" != "g++"; then
3524	    CXXFLAGS="$CXXFLAGS -AA"
3525 	fi
3526        if test "$WITH_64BIT" = "yes"; then
3527            if test "$ac_sys_arch" = "ia64" ; then
3528                PLATFORM="-DPDF_PLATFORM=\\\"\"HP-UX-ia64-LP64\"\\\""
3529            else
3530                PLATFORM="-DPDF_PLATFORM=\\\"\"HP-UX-LP64\"\\\""
3531            fi
3532            CFLAGS="$CFLAGS -DPDC_PF_HPUX_PARISC64"
3533            if test "$GCC" = ""; then
3534               if test "$ac_sys_arch" = "ia64" ; then
3535                  CFLAGS="$CFLAGS -Ae +DD64"
3536		  LDFLAGS="$LDFLAGS +DD64"
3537		  CXXFLAGS="$CXXFLAGS +DD64"
3538               else
3539                  CFLAGS="$CFLAGS -Ae +DA2.0W"
3540		  LDFLAGS="$LDFLAGS +DA2.0W"
3541		  CXXFLAGS="$CXXFLAGS +DA2.0W"
3542               fi
3543            else
3544               if test "$ac_sys_arch" = "ia64" ; then
3545		   true
3546               else
3547		   CFLAGS="$CFLAGS -D_INCLUDE_POSIX_SOURCE"
3548		   CFLAGS="$CFLAGS -mpa-risc-2-0"
3549		   CXXFLAGS="$CXXFLAGS -mpa-risc-2-0"
3550               fi
3551	    fi
3552        else
3553            if test "$ac_sys_arch" = "ia64" ; then
3554               PLATFORM_ID="HP-UX-ia64"
3555               PLATFORM="-DPDF_PLATFORM=\\\"\"HP-UX-ia64\"\\\""
3556               CFLAGS="$CFLAGS -DPDC_PF_HPUX_IA64"
3557            else
3558               CFLAGS="$CFLAGS -DPDC_PF_HPUX_PARISC"
3559                if test "$GCC" = ""; then
3560                    CFLAGS="$CFLAGS -Ae +DAportable"
3561                else
3562                    CFLAGS="$CFLAGS -mpa-risc-1-1"
3563                fi
3564            fi
3565        fi
3566  		;;
3567
3568    irix*|IRIX*)
3569	WITH_LARGE_FILES=yes
3570	;;
3571
3572
3573            osf1*|OSF1*)
3574	WITH_LARGE_FILES=yes
3575	if test "$GCC" = ""; then
3576	    CFLAGS="$CFLAGS -pthread"
3577	else
3578	    CFLAGS="$CFLAGS -pthreads"
3579	fi;;
3580
3581    SunOS*)
3582        ac_sys_arch=`uname -p`
3583	# Check whether --enable-64bit or --disable-64bit was given.
3584if test "${enable_64bit+set}" = set; then
3585  enableval="$enable_64bit"
3586  if test "$enableval" = "yes" ; then
3587		WITH_64BIT=yes
3588	fi
3589fi;
3590
3591	WITH_LARGE_FILES=yes
3592	if test "$GCC" = ""; then
3593	    CFLAGS="$CFLAGS -mt"
3594	    LDFLAGS="$LDFLAGS -mt"
3595            if test "$ac_sys_arch" = "sparc" ; then
3596		CFLAGS="$CFLAGS -xmemalign"
3597	    fi
3598	    CFLAGS="$CFLAGS -O"
3599	    CXXFLAGS="$CXXFLAGS -O"
3600	    LDFLAGS="$LDFLAGS -O"
3601	else
3602	    CFLAGS="$CFLAGS -pthreads"
3603	fi
3604
3605        if test "$WITH_64BIT" = "yes"; then
3606            PLATFORM="-DPDF_PLATFORM=\\\"\"SunOS64\"\\\""
3607            if test "$ac_sys_arch" = "sparc" ; then
3608		LDFLAGS="$LDFLAGS -xarch=v9"
3609                CFLAGS="$CFLAGS -DPDC_PF_SOLARIS_SPARC64"
3610		if test "$GCC" = ""; then CFLAGS="$CFLAGS -xarch=v9";
3611		    CXXFLAGS="$CXXFLAGS -xarch=v9";
3612		fi
3613            fi
3614            if test "$ac_sys_arch" = "i386" ; then
3615		LDFLAGS="$LDFLAGS -m64"
3616                CFLAGS="$CFLAGS -DPDC_PF_SOLARIS_AMD64"
3617                PLATFORM_ID="SunOS-amd64"
3618		if test "$GCC" = ""; then
3619		    CFLAGS="$CFLAGS -m64";
3620		    CXXFLAGS="$CXXFLAGS -m64";
3621		fi
3622            fi
3623        else
3624            PLATFORM="-DPDF_PLATFORM=\\\"\"SunOS\"\\\""
3625	    # Check whether --enable-sfio or --disable-sfio was given.
3626if test "${enable_sfio+set}" = set; then
3627  enableval="$enable_sfio"
3628  if test "$enableval" = "yes" ; then
3629                CFLAGS="$CFLAGS -DPDFLIB_SFIO_BUILD"
3630                CPPFLAGS="$CPPFLAGS -I/space/home/rjs/src/sfio/include"
3631		if test "$ac_sys_arch" = "sparc" ; then
3632                    EXTERNALLIBS="$EXTERNALLIBS /space/home/rjs/src/sfio/lib/libsfio-mt.a"
3633		else
3634                    EXTERNALLIBS="$EXTERNALLIBS /space/home/rjs/src/sfio/lib/libsfio.a"
3635		fi
3636	    fi
3637fi;
3638            if test "$ac_sys_arch" = "sparc" ; then
3639                PLATFORM_ID="SunOS"
3640                CFLAGS="$CFLAGS -DPDC_PF_SOLARIS_SPARC"
3641            fi
3642            if test "$ac_sys_arch" = "i386" ; then
3643                PLATFORM_ID="SunOS-i386"
3644                CFLAGS="$CFLAGS -DPDC_PF_SOLARIS_INTEL"
3645            fi
3646        fi
3647        ;;
3648
3649                rhapsody|Rhapsody|darwin|Darwin)
3650	ac_sys_arch=`uname -p`
3651	ac_sys_vers=`uname -r`
3652        MAC_ARCH=""
3653	LEGACY_ID=""
3654
3655	PLATFORM_ID="MacOSX"
3656        WITH_LARGE_FILES=yes
3657	ENABLE_MAC_LEGACY="no"
3658	MATHLIB=""
3659	with_gnu_ld=yes
3660
3661	# choose if we do a legacy build (carbon, ...)
3662        # Check whether --enable-mac_legacy or --disable-mac_legacy was given.
3663if test "${enable_mac_legacy+set}" = set; then
3664  enableval="$enable_mac_legacy"
3665  if test "$enableval" = "yes" ; then
3666	    ENABLE_MAC_LEGACY="yes"
3667	    PLATFORM_ID="MacOSX"
3668	fi
3669fi;
3670
3671	# selecet correct SDK for build
3672	# and set min Mac Version we want to be compatible for
3673	if test "$ENABLE_MAC_LEGACY" = "yes"; then
3674	    CPPFLAGS="$CPPFLAGS -DPDF_MAC_LEGACY"
3675	    DEVSDK="/Developer/SDKs/MacOSX10.4u.sdk"
3676	    MAC_LDFLAGS="$MAC_LDFLAGS -mmacosx-version-min=10.2"
3677	    # add Framework ApplicationServices
3678	    LEGACY_ID="-10.4"
3679	else
3680	    case $ac_sys_vers in
3681	    9.*)
3682		DEVSDK="/Developer/SDKs/MacOSX10.5.sdk" ;;
3683	    10.*)
3684		DEVSDK="/Developer/SDKs/MacOSX10.6.sdk"
3685	    ;;
3686	    esac
3687	fi
3688	CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon"
3689	LDFLAGS="$LDFLAGS -framework ApplicationServices"
3690	MAC_CFLAGS="$MAC_CFLAGS -isysroot $DEVSDK"
3691	MAC_LDFLAGS="$MAC_LDFLAGS -Wl,-syslibroot,$DEVSDK"
3692
3693	# set PLATFROM ID
3694	# will be completed in pc_config.h (32/64 ppc/intel)
3695	case $ac_sys_system in
3696	rhapsody|Rhapsody)
3697	    PLATFORM="-DPDF_MAC_PLATFORM=\\\"\"Mac OS X Server$LEGACY_ID\"\\\"";;
3698	darwin|Darwin)
3699	    PLATFORM="-DPDF_MAC_PLATFORM=\\\"\"Mac OS X$LEGACY_ID\"\\\"";;
3700	esac
3701
3702	# Build Universal Binaries ?
3703        # Check whether --enable-universal or --disable-universal was given.
3704if test "${enable_universal+set}" = set; then
3705  enableval="$enable_universal"
3706  if test "$enableval" = "yes" ; then
3707	    WITH_UNIVERSAL=yes
3708	fi
3709fi;
3710
3711	# set --arch flags
3712
3713# Check whether --with-macarch or --without-macarch was given.
3714if test "${with_macarch+set}" = set; then
3715  withval="$with_macarch"
3716  MAC_ARCH="$withval"
3717else
3718  MAC_ARCH=default
3719fi;
3720	echo "$as_me:$LINENO: checking Mac build Architecture" >&5
3721echo $ECHO_N "checking Mac build Architecture... $ECHO_C" >&6
3722	case $MAC_ARCH in
3723	    i386)
3724		MAC_CFLAGS="$MAC_CFLAGS -arch i386"
3725		MAC_LDFLAGS="$MAC_LDFLAGS -arch i386"
3726	    ;;
3727	    x86_64)
3728		# we do 64 bit builds >= 10.5 only
3729		case $ac_sys_vers in
3730		9.*)
3731		    MAC_CFLAGS="$MAC_CFLAGS -arch x86_64"
3732		    MAC_LDFLAGS="$MAC_LDFLAGS -arch x86_64"
3733		;;
3734		10.*)
3735		    MAC_CFLAGS="$MAC_CFLAGS -arch x86_64"
3736		    MAC_LDFLAGS="$MAC_LDFLAGS -arch x86_64"
3737		;;
3738		esac
3739	    ;;
3740	    ppc)
3741		# not on 10.6
3742		case $ac_sys_vers in
3743		8.*| 9.*)
3744		    MAC_CFLAGS="$MAC_CFLAGS -arch ppc"
3745		    MAC_LDFLAGS="$MAC_LDFLAGS -arch ppc"
3746		;;
3747		esac
3748	    ;;
3749	    ppc64)
3750		# we do 64 bit builds on 10.5 only
3751		case $ac_sys_vers in
3752		9.*)
3753		    MAC_CFLAGS="$MAC_CFLAGS -arch ppc64"
3754		    MAC_LDFLAGS="$MAC_LDFLAGS -arch ppc64"
3755		;;
3756		esac
3757	    ;;
3758	    universal)
3759		case $ac_sys_vers in
3760		8.*)
3761		    MAC_CFLAGS="$MAC_CFLAGS -arch i386 -arch ppc"
3762		    MAC_LDFLAGS="$MAC_LDFLAGS -arch i386 -arch ppc"
3763		;;
3764		9.*)
3765		    MAC_CFLAGS="$MAC_CFLAGS -arch i386 -arch ppc -arch ppc64 -arch x86_64"
3766		    MAC_LDFLAGS="$MAC_LDFLAGS -arch i386 -arch ppc -arch ppc64 -arch x86_64"
3767		;;
3768		10.*)
3769		    MAC_CFLAGS="$MAC_CFLAGS -arch i386 -arch x86_64"
3770		    MAC_LDFLAGS="$MAC_LDFLAGS -arch i386 -arch x86_64"
3771		;;
3772		esac
3773	    ;;
3774	    *) echo"unknown architecture (--with-macarch)"
3775	    ;;
3776	esac
3777
3778
3779	echo "$as_me:$LINENO: result: $MAC_CFLAGS $MAC_LDFLAGS" >&5
3780echo "${ECHO_T}$MAC_CFLAGS $MAC_LDFLAGS" >&6
3781	;;
3782
3783        linux|Linux*)
3784       ac_sys_arch=`uname -m`
3785       WITH_LARGE_FILES=yes
3786
3787       # neccesary to allow gcc 2.95 builds to be used with gcc3 systems
3788       CFLAGS="$CFLAGS -D__NO_CTYPE"
3789       if test "$ac_sys_arch" = "s390" ; then
3790	   CFLAGS="$CFLAGS -DPDC_PF_LINUX_OS390"
3791	   PLATFORM_ID="zSeries-Linux"
3792	   PLATFORM="-DPDF_PLATFORM=\\\"\"zSeries Linux\"\\\""
3793       fi
3794       if test "$ac_sys_arch" = "ppc" ; then
3795	   PLATFORM_ID="Linux-ppc"
3796	   PLATFORM="-DPDF_PLATFORM=\\\"\"Linux-ppc\"\\\""
3797       fi
3798       if test "$ac_sys_arch" = "i686" ; then
3799	   CFLAGS="$CFLAGS -DPDC_PF_LINUX_IA32"
3800	   # add assemblymodule for zlib
3801	   FLATE_ASM_OBJ="match\$(LO)"
3802	   CFLAGS="$CFLAGS -DASMV"
3803
3804	   # strange errors with optimizer for some modules on this platform
3805	   NO_O="_no-O"
3806
3807       fi
3808       if test "$ac_sys_arch" = "ia64" ; then
3809	   CFLAGS="$CFLAGS -DPDC_PF_LINUX_IA64"
3810           PLATFORM_ID="Linux-ia64"
3811           PLATFORM="-DPDF_PLATFORM=\\\"\"Linux-ia64\"\\\""
3812       fi
3813       if test "$ac_sys_arch" = "x86_64" ; then
3814	   CFLAGS="$CFLAGS -DPDC_PF_LINUX_X86_64"
3815           PLATFORM_ID="Linux-x86_64"
3816           PLATFORM="-DPDF_PLATFORM=\\\"\"Linux-x86_64\"\\\""
3817       fi
3818       ;;
3819
3820
3821    FreeBSD)
3822       WITH_LARGE_FILES=yes
3823       tmp_vers=`uname -r`
3824       case $tmp_vers in
3825       5.*)
3826           PLATFORM="-DPDF_PLATFORM=\\\"\"FreeBSD5\"\\\"" ;;
3827       6.*)
3828           PLATFORM="-DPDF_PLATFORM=\\\"\"FreeBSD6\"\\\"" ;;
3829       7.*)
3830           PLATFORM="-DPDF_PLATFORM=\\\"\"FreeBSD7\"\\\"" ;;
3831       esac
3832       ;;
3833
3834    OpenBSD)
3835       WITH_LARGE_FILES=yes
3836       CFLAGS="$CFLAGS -DPDC_PF_OPENBSD"
3837       tmp_vers=`uname -r`
3838       if test "$tmp_vers" = "3.4" ; then
3839           PLATFORM="-DPDF_PLATFORM=\\\"\"OpenBSD34\"\\\""
3840       fi
3841       ;;
3842
3843        *OS/390*)
3844	CFLAGS="$CFLAGS -DOS390"
3845	CC=c89
3846	LD=c89
3847	WITH_LARGE_FILES=yes
3848	PLATFORM_ID=OS390
3849        PLATFORM="-DPDF_PLATFORM=\\\"\"zSeries USS\"\\\""
3850
3851	CFLAGS="$CFLAGS -2 -W \"c,GONUM,LANGLVL(EXTENDED),FLOAT(IEEE),RENT,ENUM(INT)\""
3852	;;
3853
3854    *)	;;
3855esac
3856
3857GENERATED_FILES=""
3858
3859# Check whether --enable-large_files or --disable-large_files was given.
3860if test "${enable_large_files+set}" = set; then
3861  enableval="$enable_large_files"
3862  if test "$enableval" = "yes" ; then
3863    WITH_LARGE_FILES=yes
3864else
3865    WITH_LARGE_FILES=no
3866fi
3867fi;
3868
3869
3870WITH_XPLINK=no
3871# Check whether --enable-xplink or --disable-xplink was given.
3872if test "${enable_xplink+set}" = set; then
3873  enableval="$enable_xplink"
3874  if test "$enableval" = "yes" ; then
3875    WITH_XPLINK=yes
3876fi
3877fi;
3878
3879if test "$WITH_XPLINK" = "yes"; then
3880    case $ac_sys_system in
3881    *OS/390*)
3882                        	CFLAGS="-Wc,XPLINK,DLL $CFLAGS"
3883	LDFLAGS="-Wl,XPLINK,DLL $LDFLAGS"
3884	;;
3885    *)	;;
3886    esac
3887fi
3888
3889# on z/OS USS, having -g on the command line overrides the optimization
3890# always, but configure will always add it to the CFLAGS if the compiler
3891# does accept it, so we have to remove it if debugging is not explicitely
3892# switched on
3893if test "$WITH_DEBUG" = "no"; then
3894    case $ac_sys_system in
3895    *OS/390*)
3896	CFLAGS=`echo "$CFLAGS" | sed -e s/-g//`
3897	;;
3898    *)	;;
3899    esac
3900fi
3901
3902# Check whether --enable-tiffwrite or --disable-tiffwrite was given.
3903if test "${enable_tiffwrite+set}" = set; then
3904  enableval="$enable_tiffwrite"
3905  if test "$enableval" = "yes" ; then
3906    TIFFWRITE=" -DPDFLIB_TIFFWRITE_SUPPORT"
3907else
3908    TIFFWRITE=""
3909fi
3910fi;
3911
3912# Check whether --enable-security or --disable-security was given.
3913if test "${enable_security+set}" = set; then
3914  enableval="$enable_security"
3915  if test "$enableval" = "no" ; then
3916    CFLAGS="$CFLAGS -DPDF_NOSECURITY_BUILD"
3917fi
3918fi;
3919
3920# Don't set the EXE suffix, as cygwin builds don't work then
3921#AC_EXEEXT
3922
3923
3924
3925
3926
3927
3928
3929
3930# Check whether --enable-shared or --disable-shared was given.
3931if test "${enable_shared+set}" = set; then
3932  enableval="$enable_shared"
3933  p=${PACKAGE-default}
3934    case $enableval in
3935    yes) enable_shared=yes ;;
3936    no) enable_shared=no ;;
3937    *)
3938      enable_shared=no
3939      # Look at the argument we got.  We use all the common list separators.
3940      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3941      for pkg in $enableval; do
3942	IFS="$lt_save_ifs"
3943	if test "X$pkg" = "X$p"; then
3944	  enable_shared=yes
3945	fi
3946      done
3947      IFS="$lt_save_ifs"
3948      ;;
3949    esac
3950else
3951  enable_shared=yes
3952fi;
3953
3954# Check whether --enable-static or --disable-static was given.
3955if test "${enable_static+set}" = set; then
3956  enableval="$enable_static"
3957  p=${PACKAGE-default}
3958    case $enableval in
3959    yes) enable_static=yes ;;
3960    no) enable_static=no ;;
3961    *)
3962     enable_static=no
3963      # Look at the argument we got.  We use all the common list separators.
3964      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3965      for pkg in $enableval; do
3966	IFS="$lt_save_ifs"
3967	if test "X$pkg" = "X$p"; then
3968	  enable_static=yes
3969	fi
3970      done
3971      IFS="$lt_save_ifs"
3972      ;;
3973    esac
3974else
3975  enable_static=yes
3976fi;
3977
3978# Check whether --enable-fast-install or --disable-fast-install was given.
3979if test "${enable_fast_install+set}" = set; then
3980  enableval="$enable_fast_install"
3981  p=${PACKAGE-default}
3982    case $enableval in
3983    yes) enable_fast_install=yes ;;
3984    no) enable_fast_install=no ;;
3985    *)
3986      enable_fast_install=no
3987      # Look at the argument we got.  We use all the common list separators.
3988      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3989      for pkg in $enableval; do
3990	IFS="$lt_save_ifs"
3991	if test "X$pkg" = "X$p"; then
3992	  enable_fast_install=yes
3993	fi
3994      done
3995      IFS="$lt_save_ifs"
3996      ;;
3997    esac
3998else
3999  enable_fast_install=yes
4000fi;
4001
4002echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4003echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4004if test "${lt_cv_path_SED+set}" = set; then
4005  echo $ECHO_N "(cached) $ECHO_C" >&6
4006else
4007  # Loop through the user's path and test for sed and gsed.
4008# Then use that list of sed's as ones to test for truncation.
4009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4010for as_dir in $PATH
4011do
4012  IFS=$as_save_IFS
4013  test -z "$as_dir" && as_dir=.
4014  for lt_ac_prog in sed gsed; do
4015    for ac_exec_ext in '' $ac_executable_extensions; do
4016      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4017        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4018      fi
4019    done
4020  done
4021done
4022IFS=$as_save_IFS
4023lt_ac_max=0
4024lt_ac_count=0
4025# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4026# along with /bin/sed that truncates output.
4027for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4028  test ! -f $lt_ac_sed && continue
4029  cat /dev/null > conftest.in
4030  lt_ac_count=0
4031  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4032  # Check for GNU sed and select it if it is found.
4033  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4034    lt_cv_path_SED=$lt_ac_sed
4035    break
4036  fi
4037  while true; do
4038    cat conftest.in conftest.in >conftest.tmp
4039    mv conftest.tmp conftest.in
4040    cp conftest.in conftest.nl
4041    echo >>conftest.nl
4042    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4043    cmp -s conftest.out conftest.nl || break
4044    # 10000 chars as input seems more than enough
4045    test $lt_ac_count -gt 10 && break
4046    lt_ac_count=`expr $lt_ac_count + 1`
4047    if test $lt_ac_count -gt $lt_ac_max; then
4048      lt_ac_max=$lt_ac_count
4049      lt_cv_path_SED=$lt_ac_sed
4050    fi
4051  done
4052done
4053
4054fi
4055
4056SED=$lt_cv_path_SED
4057
4058echo "$as_me:$LINENO: result: $SED" >&5
4059echo "${ECHO_T}$SED" >&6
4060
4061echo "$as_me:$LINENO: checking for egrep" >&5
4062echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4063if test "${ac_cv_prog_egrep+set}" = set; then
4064  echo $ECHO_N "(cached) $ECHO_C" >&6
4065else
4066  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4067    then ac_cv_prog_egrep='grep -E'
4068    else ac_cv_prog_egrep='egrep'
4069    fi
4070fi
4071echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4072echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4073 EGREP=$ac_cv_prog_egrep
4074
4075
4076
4077# Check whether --with-gnu-ld or --without-gnu-ld was given.
4078if test "${with_gnu_ld+set}" = set; then
4079  withval="$with_gnu_ld"
4080  test "$withval" = no || with_gnu_ld=yes
4081else
4082  with_gnu_ld=no
4083fi;
4084ac_prog=ld
4085if test "$GCC" = yes; then
4086  # Check if gcc -print-prog-name=ld gives a path.
4087  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4088echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4089  case $host in
4090  *-*-mingw*)
4091    # gcc leaves a trailing carriage return which upsets mingw
4092    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4093  *)
4094    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4095  esac
4096  case $ac_prog in
4097    # Accept absolute paths.
4098    [\\/]* | ?:[\\/]*)
4099      re_direlt='/[^/][^/]*/\.\./'
4100      # Canonicalize the pathname of ld
4101      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4102      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4103	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4104      done
4105      test -z "$LD" && LD="$ac_prog"
4106      ;;
4107  "")
4108    # If it fails, then pretend we aren't using GCC.
4109    ac_prog=ld
4110    ;;
4111  *)
4112    # If it is relative, then search for the first ld in PATH.
4113    with_gnu_ld=unknown
4114    ;;
4115  esac
4116elif test "$with_gnu_ld" = yes; then
4117  echo "$as_me:$LINENO: checking for GNU ld" >&5
4118echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4119else
4120  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4121echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4122fi
4123if test "${lt_cv_path_LD+set}" = set; then
4124  echo $ECHO_N "(cached) $ECHO_C" >&6
4125else
4126  if test -z "$LD"; then
4127  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4128  for ac_dir in $PATH; do
4129    IFS="$lt_save_ifs"
4130    test -z "$ac_dir" && ac_dir=.
4131    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4132      lt_cv_path_LD="$ac_dir/$ac_prog"
4133      # Check to see if the program is GNU ld.  I'd rather use --version,
4134      # but apparently some variants of GNU ld only accept -v.
4135      # Break only if it was the GNU/non-GNU ld that we prefer.
4136      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4137      *GNU* | *'with BFD'*)
4138	test "$with_gnu_ld" != no && break
4139	;;
4140      *)
4141	test "$with_gnu_ld" != yes && break
4142	;;
4143      esac
4144    fi
4145  done
4146  IFS="$lt_save_ifs"
4147else
4148  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4149fi
4150fi
4151
4152LD="$lt_cv_path_LD"
4153if test -n "$LD"; then
4154  echo "$as_me:$LINENO: result: $LD" >&5
4155echo "${ECHO_T}$LD" >&6
4156else
4157  echo "$as_me:$LINENO: result: no" >&5
4158echo "${ECHO_T}no" >&6
4159fi
4160test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4161echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4162   { (exit 1); exit 1; }; }
4163echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4164echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4165if test "${lt_cv_prog_gnu_ld+set}" = set; then
4166  echo $ECHO_N "(cached) $ECHO_C" >&6
4167else
4168  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4169case `$LD -v 2>&1 </dev/null` in
4170*GNU* | *'with BFD'*)
4171  lt_cv_prog_gnu_ld=yes
4172  ;;
4173*)
4174  lt_cv_prog_gnu_ld=no
4175  ;;
4176esac
4177fi
4178echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4179echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4180with_gnu_ld=$lt_cv_prog_gnu_ld
4181
4182
4183echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4184echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4185if test "${lt_cv_ld_reload_flag+set}" = set; then
4186  echo $ECHO_N "(cached) $ECHO_C" >&6
4187else
4188  lt_cv_ld_reload_flag='-r'
4189fi
4190echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4191echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4192reload_flag=$lt_cv_ld_reload_flag
4193case $reload_flag in
4194"" | " "*) ;;
4195*) reload_flag=" $reload_flag" ;;
4196esac
4197reload_cmds='$LD$reload_flag -o $output$reload_objs'
4198case $host_os in
4199  darwin*)
4200    if test "$GCC" = yes; then
4201      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4202    else
4203      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4204    fi
4205    ;;
4206esac
4207
4208echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4209echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4210if test "${lt_cv_path_NM+set}" = set; then
4211  echo $ECHO_N "(cached) $ECHO_C" >&6
4212else
4213  if test -n "$NM"; then
4214  # Let the user override the test.
4215  lt_cv_path_NM="$NM"
4216else
4217  lt_nm_to_check="${ac_tool_prefix}nm"
4218  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4219    lt_nm_to_check="$lt_nm_to_check nm"
4220  fi
4221  for lt_tmp_nm in $lt_nm_to_check; do
4222    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4223    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4224      IFS="$lt_save_ifs"
4225      test -z "$ac_dir" && ac_dir=.
4226      tmp_nm="$ac_dir/$lt_tmp_nm"
4227      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4228	# Check to see if the nm accepts a BSD-compat flag.
4229	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4230	#   nm: unknown option "B" ignored
4231	# Tru64's nm complains that /dev/null is an invalid object file
4232	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4233	*/dev/null* | *'Invalid file or object type'*)
4234	  lt_cv_path_NM="$tmp_nm -B"
4235	  break
4236	  ;;
4237	*)
4238	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4239	  */dev/null*)
4240	    lt_cv_path_NM="$tmp_nm -p"
4241	    break
4242	    ;;
4243	  *)
4244	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4245	    continue # so that we can try to find one that supports BSD flags
4246	    ;;
4247	  esac
4248	  ;;
4249	esac
4250      fi
4251    done
4252    IFS="$lt_save_ifs"
4253  done
4254  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4255fi
4256fi
4257echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4258echo "${ECHO_T}$lt_cv_path_NM" >&6
4259NM="$lt_cv_path_NM"
4260
4261echo "$as_me:$LINENO: checking whether ln -s works" >&5
4262echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4263LN_S=$as_ln_s
4264if test "$LN_S" = "ln -s"; then
4265  echo "$as_me:$LINENO: result: yes" >&5
4266echo "${ECHO_T}yes" >&6
4267else
4268  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4269echo "${ECHO_T}no, using $LN_S" >&6
4270fi
4271
4272echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4273echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
4274if test "${lt_cv_deplibs_check_method+set}" = set; then
4275  echo $ECHO_N "(cached) $ECHO_C" >&6
4276else
4277  lt_cv_file_magic_cmd='$MAGIC_CMD'
4278lt_cv_file_magic_test_file=
4279lt_cv_deplibs_check_method='unknown'
4280# Need to set the preceding variable on all platforms that support
4281# interlibrary dependencies.
4282# 'none' -- dependencies not supported.
4283# `unknown' -- same as none, but documents that we really don't know.
4284# 'pass_all' -- all dependencies passed with no checks.
4285# 'test_compile' -- check by making test program.
4286# 'file_magic [[regex]]' -- check by looking for files in library path
4287# which responds to the $file_magic_cmd with a given extended regex.
4288# If you have `file' or equivalent on your system and you're not sure
4289# whether `pass_all' will *always* work, you probably want this one.
4290
4291case $host_os in
4292aix4* | aix5*)
4293  lt_cv_deplibs_check_method=pass_all
4294  ;;
4295
4296beos*)
4297  lt_cv_deplibs_check_method=pass_all
4298  ;;
4299
4300bsdi[45]*)
4301  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4302  lt_cv_file_magic_cmd='/usr/bin/file -L'
4303  lt_cv_file_magic_test_file=/shlib/libc.so
4304  ;;
4305
4306cygwin*)
4307  # func_win32_libid is a shell function defined in ltmain.sh
4308  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4309  lt_cv_file_magic_cmd='func_win32_libid'
4310  ;;
4311
4312mingw* | pw32*)
4313  # Base MSYS/MinGW do not provide the 'file' command needed by
4314  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4315  # unless we find 'file', for example because we are cross-compiling.
4316  if ( file / ) >/dev/null 2>&1; then
4317    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4318    lt_cv_file_magic_cmd='func_win32_libid'
4319  else
4320    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4321    lt_cv_file_magic_cmd='$OBJDUMP -f'
4322  fi
4323  ;;
4324
4325darwin* | rhapsody*)
4326  lt_cv_deplibs_check_method=pass_all
4327  ;;
4328
4329freebsd* | dragonfly*)
4330  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4331    case $host_cpu in
4332    i*86 )
4333      # Not sure whether the presence of OpenBSD here was a mistake.
4334      # Let's accept both of them until this is cleared up.
4335      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4336      lt_cv_file_magic_cmd=/usr/bin/file
4337      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4338      ;;
4339    esac
4340  else
4341    lt_cv_deplibs_check_method=pass_all
4342  fi
4343  ;;
4344
4345gnu*)
4346  lt_cv_deplibs_check_method=pass_all
4347  ;;
4348
4349hpux10.20* | hpux11*)
4350  lt_cv_file_magic_cmd=/usr/bin/file
4351  case $host_cpu in
4352  ia64*)
4353    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4354    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4355    ;;
4356  hppa*64*)
4357    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]'
4358    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4359    ;;
4360  *)
4361    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4362    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4363    ;;
4364  esac
4365  ;;
4366
4367interix[3-9]*)
4368  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4369  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4370  ;;
4371
4372irix5* | irix6* | nonstopux*)
4373  case $LD in
4374  *-32|*"-32 ") libmagic=32-bit;;
4375  *-n32|*"-n32 ") libmagic=N32;;
4376  *-64|*"-64 ") libmagic=64-bit;;
4377  *) libmagic=never-match;;
4378  esac
4379  lt_cv_deplibs_check_method=pass_all
4380  ;;
4381
4382# This must be Linux ELF.
4383linux* | k*bsd*-gnu)
4384  lt_cv_deplibs_check_method=pass_all
4385  ;;
4386
4387netbsd*)
4388  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4389    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4390  else
4391    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4392  fi
4393  ;;
4394
4395newos6*)
4396  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4397  lt_cv_file_magic_cmd=/usr/bin/file
4398  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4399  ;;
4400
4401nto-qnx*)
4402  lt_cv_deplibs_check_method=unknown
4403  ;;
4404
4405openbsd*)
4406  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4407    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4408  else
4409    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4410  fi
4411  ;;
4412
4413osf3* | osf4* | osf5*)
4414  lt_cv_deplibs_check_method=pass_all
4415  ;;
4416
4417rdos*)
4418  lt_cv_deplibs_check_method=pass_all
4419  ;;
4420
4421solaris*)
4422  lt_cv_deplibs_check_method=pass_all
4423  ;;
4424
4425sysv4 | sysv4.3*)
4426  case $host_vendor in
4427  motorola)
4428    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]'
4429    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4430    ;;
4431  ncr)
4432    lt_cv_deplibs_check_method=pass_all
4433    ;;
4434  sequent)
4435    lt_cv_file_magic_cmd='/bin/file'
4436    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4437    ;;
4438  sni)
4439    lt_cv_file_magic_cmd='/bin/file'
4440    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4441    lt_cv_file_magic_test_file=/lib/libc.so
4442    ;;
4443  siemens)
4444    lt_cv_deplibs_check_method=pass_all
4445    ;;
4446  pc)
4447    lt_cv_deplibs_check_method=pass_all
4448    ;;
4449  esac
4450  ;;
4451
4452sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4453  lt_cv_deplibs_check_method=pass_all
4454  ;;
4455esac
4456
4457fi
4458echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4459echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4460file_magic_cmd=$lt_cv_file_magic_cmd
4461deplibs_check_method=$lt_cv_deplibs_check_method
4462test -z "$deplibs_check_method" && deplibs_check_method=unknown
4463
4464
4465
4466# If no C compiler was specified, use CC.
4467LTCC=${LTCC-"$CC"}
4468
4469# If no C compiler flags were specified, use CFLAGS.
4470LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4471
4472# Allow CC to be a program name with arguments.
4473compiler=$CC
4474
4475
4476# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4477if test "${enable_libtool_lock+set}" = set; then
4478  enableval="$enable_libtool_lock"
4479
4480fi;
4481test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4482
4483# Some flags need to be propagated to the compiler or linker for good
4484# libtool support.
4485case $host in
4486ia64-*-hpux*)
4487  # Find out which ABI we are using.
4488  echo 'int i;' > conftest.$ac_ext
4489  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4490  (eval $ac_compile) 2>&5
4491  ac_status=$?
4492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4493  (exit $ac_status); }; then
4494    case `/usr/bin/file conftest.$ac_objext` in
4495    *ELF-32*)
4496      HPUX_IA64_MODE="32"
4497      ;;
4498    *ELF-64*)
4499      HPUX_IA64_MODE="64"
4500      ;;
4501    esac
4502  fi
4503  rm -rf conftest*
4504  ;;
4505*-*-irix6*)
4506  # Find out which ABI we are using.
4507  echo '#line 4511 "configure"' > conftest.$ac_ext
4508  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4509  (eval $ac_compile) 2>&5
4510  ac_status=$?
4511  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4512  (exit $ac_status); }; then
4513   if test "$lt_cv_prog_gnu_ld" = yes; then
4514    case `/usr/bin/file conftest.$ac_objext` in
4515    *32-bit*)
4516      LD="${LD-ld} -melf32bsmip"
4517      ;;
4518    *N32*)
4519      LD="${LD-ld} -melf32bmipn32"
4520      ;;
4521    *64-bit*)
4522      LD="${LD-ld} -melf64bmip"
4523      ;;
4524    esac
4525   else
4526    case `/usr/bin/file conftest.$ac_objext` in
4527    *32-bit*)
4528      LD="${LD-ld} -32"
4529      ;;
4530    *N32*)
4531      LD="${LD-ld} -n32"
4532      ;;
4533    *64-bit*)
4534      LD="${LD-ld} -64"
4535      ;;
4536    esac
4537   fi
4538  fi
4539  rm -rf conftest*
4540  ;;
4541
4542x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4543s390*-*linux*|sparc*-*linux*)
4544  # Find out which ABI we are using.
4545  echo 'int i;' > conftest.$ac_ext
4546  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4547  (eval $ac_compile) 2>&5
4548  ac_status=$?
4549  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4550  (exit $ac_status); }; then
4551    case `/usr/bin/file conftest.o` in
4552    *32-bit*)
4553      case $host in
4554        x86_64-*kfreebsd*-gnu)
4555          LD="${LD-ld} -m elf_i386_fbsd"
4556          ;;
4557        x86_64-*linux*)
4558          LD="${LD-ld} -m elf_i386"
4559          ;;
4560        ppc64-*linux*|powerpc64-*linux*)
4561          LD="${LD-ld} -m elf32ppclinux"
4562          ;;
4563        s390x-*linux*)
4564          LD="${LD-ld} -m elf_s390"
4565          ;;
4566        sparc64-*linux*)
4567          LD="${LD-ld} -m elf32_sparc"
4568          ;;
4569      esac
4570      ;;
4571    *64-bit*)
4572      case $host in
4573        x86_64-*kfreebsd*-gnu)
4574          LD="${LD-ld} -m elf_x86_64_fbsd"
4575          ;;
4576        x86_64-*linux*)
4577          LD="${LD-ld} -m elf_x86_64"
4578          ;;
4579        ppc*-*linux*|powerpc*-*linux*)
4580          LD="${LD-ld} -m elf64ppc"
4581          ;;
4582        s390*-*linux*)
4583          LD="${LD-ld} -m elf64_s390"
4584          ;;
4585        sparc*-*linux*)
4586          LD="${LD-ld} -m elf64_sparc"
4587          ;;
4588      esac
4589      ;;
4590    esac
4591  fi
4592  rm -rf conftest*
4593  ;;
4594
4595*-*-sco3.2v5*)
4596  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4597  SAVE_CFLAGS="$CFLAGS"
4598  CFLAGS="$CFLAGS -belf"
4599  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4600echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4601if test "${lt_cv_cc_needs_belf+set}" = set; then
4602  echo $ECHO_N "(cached) $ECHO_C" >&6
4603else
4604  ac_ext=c
4605ac_cpp='$CPP $CPPFLAGS'
4606ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4607ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4608ac_compiler_gnu=$ac_cv_c_compiler_gnu
4609
4610     cat >conftest.$ac_ext <<_ACEOF
4611/* confdefs.h.  */
4612_ACEOF
4613cat confdefs.h >>conftest.$ac_ext
4614cat >>conftest.$ac_ext <<_ACEOF
4615/* end confdefs.h.  */
4616
4617int
4618main ()
4619{
4620
4621  ;
4622  return 0;
4623}
4624_ACEOF
4625rm -f conftest.$ac_objext conftest$ac_exeext
4626if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4627  (eval $ac_link) 2>conftest.er1
4628  ac_status=$?
4629  grep -v '^ *+' conftest.er1 >conftest.err
4630  rm -f conftest.er1
4631  cat conftest.err >&5
4632  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4633  (exit $ac_status); } &&
4634	 { ac_try='test -z "$ac_c_werror_flag"
4635			 || test ! -s conftest.err'
4636  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4637  (eval $ac_try) 2>&5
4638  ac_status=$?
4639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4640  (exit $ac_status); }; } &&
4641	 { ac_try='test -s conftest$ac_exeext'
4642  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4643  (eval $ac_try) 2>&5
4644  ac_status=$?
4645  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4646  (exit $ac_status); }; }; then
4647  lt_cv_cc_needs_belf=yes
4648else
4649  echo "$as_me: failed program was:" >&5
4650sed 's/^/| /' conftest.$ac_ext >&5
4651
4652lt_cv_cc_needs_belf=no
4653fi
4654rm -f conftest.err conftest.$ac_objext \
4655      conftest$ac_exeext conftest.$ac_ext
4656     ac_ext=c
4657ac_cpp='$CPP $CPPFLAGS'
4658ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4659ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4660ac_compiler_gnu=$ac_cv_c_compiler_gnu
4661
4662fi
4663echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4664echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4665  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4666    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4667    CFLAGS="$SAVE_CFLAGS"
4668  fi
4669  ;;
4670sparc*-*solaris*)
4671  # Find out which ABI we are using.
4672  echo 'int i;' > conftest.$ac_ext
4673  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4674  (eval $ac_compile) 2>&5
4675  ac_status=$?
4676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4677  (exit $ac_status); }; then
4678    case `/usr/bin/file conftest.o` in
4679    *64-bit*)
4680      case $lt_cv_prog_gnu_ld in
4681      yes*) LD="${LD-ld} -m elf64_sparc" ;;
4682      *)    LD="${LD-ld} -64" ;;
4683      esac
4684      ;;
4685    esac
4686  fi
4687  rm -rf conftest*
4688  ;;
4689
4690*-*-cygwin* | *-*-mingw* | *-*-pw32*)
4691  if test -n "$ac_tool_prefix"; then
4692  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4693set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4694echo "$as_me:$LINENO: checking for $ac_word" >&5
4695echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4696if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4697  echo $ECHO_N "(cached) $ECHO_C" >&6
4698else
4699  if test -n "$DLLTOOL"; then
4700  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4701else
4702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4703for as_dir in $PATH
4704do
4705  IFS=$as_save_IFS
4706  test -z "$as_dir" && as_dir=.
4707  for ac_exec_ext in '' $ac_executable_extensions; do
4708  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4709    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4710    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4711    break 2
4712  fi
4713done
4714done
4715
4716fi
4717fi
4718DLLTOOL=$ac_cv_prog_DLLTOOL
4719if test -n "$DLLTOOL"; then
4720  echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4721echo "${ECHO_T}$DLLTOOL" >&6
4722else
4723  echo "$as_me:$LINENO: result: no" >&5
4724echo "${ECHO_T}no" >&6
4725fi
4726
4727fi
4728if test -z "$ac_cv_prog_DLLTOOL"; then
4729  ac_ct_DLLTOOL=$DLLTOOL
4730  # Extract the first word of "dlltool", so it can be a program name with args.
4731set dummy dlltool; ac_word=$2
4732echo "$as_me:$LINENO: checking for $ac_word" >&5
4733echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4734if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4735  echo $ECHO_N "(cached) $ECHO_C" >&6
4736else
4737  if test -n "$ac_ct_DLLTOOL"; then
4738  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4739else
4740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4741for as_dir in $PATH
4742do
4743  IFS=$as_save_IFS
4744  test -z "$as_dir" && as_dir=.
4745  for ac_exec_ext in '' $ac_executable_extensions; do
4746  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4747    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4748    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4749    break 2
4750  fi
4751done
4752done
4753
4754  test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
4755fi
4756fi
4757ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4758if test -n "$ac_ct_DLLTOOL"; then
4759  echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4760echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
4761else
4762  echo "$as_me:$LINENO: result: no" >&5
4763echo "${ECHO_T}no" >&6
4764fi
4765
4766  DLLTOOL=$ac_ct_DLLTOOL
4767else
4768  DLLTOOL="$ac_cv_prog_DLLTOOL"
4769fi
4770
4771  if test -n "$ac_tool_prefix"; then
4772  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4773set dummy ${ac_tool_prefix}as; ac_word=$2
4774echo "$as_me:$LINENO: checking for $ac_word" >&5
4775echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4776if test "${ac_cv_prog_AS+set}" = set; then
4777  echo $ECHO_N "(cached) $ECHO_C" >&6
4778else
4779  if test -n "$AS"; then
4780  ac_cv_prog_AS="$AS" # Let the user override the test.
4781else
4782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4783for as_dir in $PATH
4784do
4785  IFS=$as_save_IFS
4786  test -z "$as_dir" && as_dir=.
4787  for ac_exec_ext in '' $ac_executable_extensions; do
4788  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4789    ac_cv_prog_AS="${ac_tool_prefix}as"
4790    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4791    break 2
4792  fi
4793done
4794done
4795
4796fi
4797fi
4798AS=$ac_cv_prog_AS
4799if test -n "$AS"; then
4800  echo "$as_me:$LINENO: result: $AS" >&5
4801echo "${ECHO_T}$AS" >&6
4802else
4803  echo "$as_me:$LINENO: result: no" >&5
4804echo "${ECHO_T}no" >&6
4805fi
4806
4807fi
4808if test -z "$ac_cv_prog_AS"; then
4809  ac_ct_AS=$AS
4810  # Extract the first word of "as", so it can be a program name with args.
4811set dummy as; ac_word=$2
4812echo "$as_me:$LINENO: checking for $ac_word" >&5
4813echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4814if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4815  echo $ECHO_N "(cached) $ECHO_C" >&6
4816else
4817  if test -n "$ac_ct_AS"; then
4818  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4819else
4820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4821for as_dir in $PATH
4822do
4823  IFS=$as_save_IFS
4824  test -z "$as_dir" && as_dir=.
4825  for ac_exec_ext in '' $ac_executable_extensions; do
4826  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4827    ac_cv_prog_ac_ct_AS="as"
4828    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4829    break 2
4830  fi
4831done
4832done
4833
4834  test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
4835fi
4836fi
4837ac_ct_AS=$ac_cv_prog_ac_ct_AS
4838if test -n "$ac_ct_AS"; then
4839  echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4840echo "${ECHO_T}$ac_ct_AS" >&6
4841else
4842  echo "$as_me:$LINENO: result: no" >&5
4843echo "${ECHO_T}no" >&6
4844fi
4845
4846  AS=$ac_ct_AS
4847else
4848  AS="$ac_cv_prog_AS"
4849fi
4850
4851  if test -n "$ac_tool_prefix"; then
4852  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4853set dummy ${ac_tool_prefix}objdump; ac_word=$2
4854echo "$as_me:$LINENO: checking for $ac_word" >&5
4855echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4856if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4857  echo $ECHO_N "(cached) $ECHO_C" >&6
4858else
4859  if test -n "$OBJDUMP"; then
4860  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4861else
4862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4863for as_dir in $PATH
4864do
4865  IFS=$as_save_IFS
4866  test -z "$as_dir" && as_dir=.
4867  for ac_exec_ext in '' $ac_executable_extensions; do
4868  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4869    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4870    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4871    break 2
4872  fi
4873done
4874done
4875
4876fi
4877fi
4878OBJDUMP=$ac_cv_prog_OBJDUMP
4879if test -n "$OBJDUMP"; then
4880  echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4881echo "${ECHO_T}$OBJDUMP" >&6
4882else
4883  echo "$as_me:$LINENO: result: no" >&5
4884echo "${ECHO_T}no" >&6
4885fi
4886
4887fi
4888if test -z "$ac_cv_prog_OBJDUMP"; then
4889  ac_ct_OBJDUMP=$OBJDUMP
4890  # Extract the first word of "objdump", so it can be a program name with args.
4891set dummy objdump; ac_word=$2
4892echo "$as_me:$LINENO: checking for $ac_word" >&5
4893echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4894if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4895  echo $ECHO_N "(cached) $ECHO_C" >&6
4896else
4897  if test -n "$ac_ct_OBJDUMP"; then
4898  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4899else
4900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4901for as_dir in $PATH
4902do
4903  IFS=$as_save_IFS
4904  test -z "$as_dir" && as_dir=.
4905  for ac_exec_ext in '' $ac_executable_extensions; do
4906  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4907    ac_cv_prog_ac_ct_OBJDUMP="objdump"
4908    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4909    break 2
4910  fi
4911done
4912done
4913
4914  test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
4915fi
4916fi
4917ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4918if test -n "$ac_ct_OBJDUMP"; then
4919  echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4920echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
4921else
4922  echo "$as_me:$LINENO: result: no" >&5
4923echo "${ECHO_T}no" >&6
4924fi
4925
4926  OBJDUMP=$ac_ct_OBJDUMP
4927else
4928  OBJDUMP="$ac_cv_prog_OBJDUMP"
4929fi
4930
4931  ;;
4932
4933esac
4934
4935need_locks="$enable_libtool_lock"
4936
4937
4938
4939echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4940echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4941if test "${ac_cv_header_stdc+set}" = set; then
4942  echo $ECHO_N "(cached) $ECHO_C" >&6
4943else
4944  cat >conftest.$ac_ext <<_ACEOF
4945/* confdefs.h.  */
4946_ACEOF
4947cat confdefs.h >>conftest.$ac_ext
4948cat >>conftest.$ac_ext <<_ACEOF
4949/* end confdefs.h.  */
4950#include <stdlib.h>
4951#include <stdarg.h>
4952#include <string.h>
4953#include <float.h>
4954
4955int
4956main ()
4957{
4958
4959  ;
4960  return 0;
4961}
4962_ACEOF
4963rm -f conftest.$ac_objext
4964if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4965  (eval $ac_compile) 2>conftest.er1
4966  ac_status=$?
4967  grep -v '^ *+' conftest.er1 >conftest.err
4968  rm -f conftest.er1
4969  cat conftest.err >&5
4970  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4971  (exit $ac_status); } &&
4972	 { ac_try='test -z "$ac_c_werror_flag"
4973			 || test ! -s conftest.err'
4974  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4975  (eval $ac_try) 2>&5
4976  ac_status=$?
4977  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4978  (exit $ac_status); }; } &&
4979	 { ac_try='test -s conftest.$ac_objext'
4980  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4981  (eval $ac_try) 2>&5
4982  ac_status=$?
4983  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4984  (exit $ac_status); }; }; then
4985  ac_cv_header_stdc=yes
4986else
4987  echo "$as_me: failed program was:" >&5
4988sed 's/^/| /' conftest.$ac_ext >&5
4989
4990ac_cv_header_stdc=no
4991fi
4992rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4993
4994if test $ac_cv_header_stdc = yes; then
4995  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4996  cat >conftest.$ac_ext <<_ACEOF
4997/* confdefs.h.  */
4998_ACEOF
4999cat confdefs.h >>conftest.$ac_ext
5000cat >>conftest.$ac_ext <<_ACEOF
5001/* end confdefs.h.  */
5002#include <string.h>
5003
5004_ACEOF
5005if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5006  $EGREP "memchr" >/dev/null 2>&1; then
5007  :
5008else
5009  ac_cv_header_stdc=no
5010fi
5011rm -f conftest*
5012
5013fi
5014
5015if test $ac_cv_header_stdc = yes; then
5016  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5017  cat >conftest.$ac_ext <<_ACEOF
5018/* confdefs.h.  */
5019_ACEOF
5020cat confdefs.h >>conftest.$ac_ext
5021cat >>conftest.$ac_ext <<_ACEOF
5022/* end confdefs.h.  */
5023#include <stdlib.h>
5024
5025_ACEOF
5026if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5027  $EGREP "free" >/dev/null 2>&1; then
5028  :
5029else
5030  ac_cv_header_stdc=no
5031fi
5032rm -f conftest*
5033
5034fi
5035
5036if test $ac_cv_header_stdc = yes; then
5037  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5038  if test "$cross_compiling" = yes; then
5039  :
5040else
5041  cat >conftest.$ac_ext <<_ACEOF
5042/* confdefs.h.  */
5043_ACEOF
5044cat confdefs.h >>conftest.$ac_ext
5045cat >>conftest.$ac_ext <<_ACEOF
5046/* end confdefs.h.  */
5047#include <ctype.h>
5048#if ((' ' & 0x0FF) == 0x020)
5049# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5050# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5051#else
5052# define ISLOWER(c) \
5053		   (('a' <= (c) && (c) <= 'i') \
5054		     || ('j' <= (c) && (c) <= 'r') \
5055		     || ('s' <= (c) && (c) <= 'z'))
5056# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5057#endif
5058
5059#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5060int
5061main ()
5062{
5063  int i;
5064  for (i = 0; i < 256; i++)
5065    if (XOR (islower (i), ISLOWER (i))
5066	|| toupper (i) != TOUPPER (i))
5067      exit(2);
5068  exit (0);
5069}
5070_ACEOF
5071rm -f conftest$ac_exeext
5072if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5073  (eval $ac_link) 2>&5
5074  ac_status=$?
5075  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5076  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5077  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5078  (eval $ac_try) 2>&5
5079  ac_status=$?
5080  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5081  (exit $ac_status); }; }; then
5082  :
5083else
5084  echo "$as_me: program exited with status $ac_status" >&5
5085echo "$as_me: failed program was:" >&5
5086sed 's/^/| /' conftest.$ac_ext >&5
5087
5088( exit $ac_status )
5089ac_cv_header_stdc=no
5090fi
5091rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5092fi
5093fi
5094fi
5095echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5096echo "${ECHO_T}$ac_cv_header_stdc" >&6
5097if test $ac_cv_header_stdc = yes; then
5098
5099cat >>confdefs.h <<\_ACEOF
5100#define STDC_HEADERS 1
5101_ACEOF
5102
5103fi
5104
5105# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5116		  inttypes.h stdint.h unistd.h
5117do
5118as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5119echo "$as_me:$LINENO: checking for $ac_header" >&5
5120echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5121if eval "test \"\${$as_ac_Header+set}\" = set"; then
5122  echo $ECHO_N "(cached) $ECHO_C" >&6
5123else
5124  cat >conftest.$ac_ext <<_ACEOF
5125/* confdefs.h.  */
5126_ACEOF
5127cat confdefs.h >>conftest.$ac_ext
5128cat >>conftest.$ac_ext <<_ACEOF
5129/* end confdefs.h.  */
5130$ac_includes_default
5131
5132#include <$ac_header>
5133_ACEOF
5134rm -f conftest.$ac_objext
5135if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5136  (eval $ac_compile) 2>conftest.er1
5137  ac_status=$?
5138  grep -v '^ *+' conftest.er1 >conftest.err
5139  rm -f conftest.er1
5140  cat conftest.err >&5
5141  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5142  (exit $ac_status); } &&
5143	 { ac_try='test -z "$ac_c_werror_flag"
5144			 || test ! -s conftest.err'
5145  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5146  (eval $ac_try) 2>&5
5147  ac_status=$?
5148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5149  (exit $ac_status); }; } &&
5150	 { ac_try='test -s conftest.$ac_objext'
5151  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5152  (eval $ac_try) 2>&5
5153  ac_status=$?
5154  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5155  (exit $ac_status); }; }; then
5156  eval "$as_ac_Header=yes"
5157else
5158  echo "$as_me: failed program was:" >&5
5159sed 's/^/| /' conftest.$ac_ext >&5
5160
5161eval "$as_ac_Header=no"
5162fi
5163rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5164fi
5165echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5166echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5167if test `eval echo '${'$as_ac_Header'}'` = yes; then
5168  cat >>confdefs.h <<_ACEOF
5169#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5170_ACEOF
5171
5172fi
5173
5174done
5175
5176
5177
5178for ac_header in dlfcn.h
5179do
5180as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5181if eval "test \"\${$as_ac_Header+set}\" = set"; then
5182  echo "$as_me:$LINENO: checking for $ac_header" >&5
5183echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5184if eval "test \"\${$as_ac_Header+set}\" = set"; then
5185  echo $ECHO_N "(cached) $ECHO_C" >&6
5186fi
5187echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5188echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5189else
5190  # Is the header compilable?
5191echo "$as_me:$LINENO: checking $ac_header usability" >&5
5192echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5193cat >conftest.$ac_ext <<_ACEOF
5194/* confdefs.h.  */
5195_ACEOF
5196cat confdefs.h >>conftest.$ac_ext
5197cat >>conftest.$ac_ext <<_ACEOF
5198/* end confdefs.h.  */
5199$ac_includes_default
5200#include <$ac_header>
5201_ACEOF
5202rm -f conftest.$ac_objext
5203if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5204  (eval $ac_compile) 2>conftest.er1
5205  ac_status=$?
5206  grep -v '^ *+' conftest.er1 >conftest.err
5207  rm -f conftest.er1
5208  cat conftest.err >&5
5209  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5210  (exit $ac_status); } &&
5211	 { ac_try='test -z "$ac_c_werror_flag"
5212			 || test ! -s conftest.err'
5213  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5214  (eval $ac_try) 2>&5
5215  ac_status=$?
5216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5217  (exit $ac_status); }; } &&
5218	 { ac_try='test -s conftest.$ac_objext'
5219  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5220  (eval $ac_try) 2>&5
5221  ac_status=$?
5222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5223  (exit $ac_status); }; }; then
5224  ac_header_compiler=yes
5225else
5226  echo "$as_me: failed program was:" >&5
5227sed 's/^/| /' conftest.$ac_ext >&5
5228
5229ac_header_compiler=no
5230fi
5231rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5232echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5233echo "${ECHO_T}$ac_header_compiler" >&6
5234
5235# Is the header present?
5236echo "$as_me:$LINENO: checking $ac_header presence" >&5
5237echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5238cat >conftest.$ac_ext <<_ACEOF
5239/* confdefs.h.  */
5240_ACEOF
5241cat confdefs.h >>conftest.$ac_ext
5242cat >>conftest.$ac_ext <<_ACEOF
5243/* end confdefs.h.  */
5244#include <$ac_header>
5245_ACEOF
5246if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5247  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5248  ac_status=$?
5249  grep -v '^ *+' conftest.er1 >conftest.err
5250  rm -f conftest.er1
5251  cat conftest.err >&5
5252  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5253  (exit $ac_status); } >/dev/null; then
5254  if test -s conftest.err; then
5255    ac_cpp_err=$ac_c_preproc_warn_flag
5256    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5257  else
5258    ac_cpp_err=
5259  fi
5260else
5261  ac_cpp_err=yes
5262fi
5263if test -z "$ac_cpp_err"; then
5264  ac_header_preproc=yes
5265else
5266  echo "$as_me: failed program was:" >&5
5267sed 's/^/| /' conftest.$ac_ext >&5
5268
5269  ac_header_preproc=no
5270fi
5271rm -f conftest.err conftest.$ac_ext
5272echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5273echo "${ECHO_T}$ac_header_preproc" >&6
5274
5275# So?  What about this header?
5276case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5277  yes:no: )
5278    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5279echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5280    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5281echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5282    ac_header_preproc=yes
5283    ;;
5284  no:yes:* )
5285    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5286echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5287    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5288echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5289    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5290echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5291    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5292echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5293    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5294echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5295    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5296echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5297    (
5298      cat <<\_ASBOX
5299## ------------------------------------------ ##
5300## Report this to the AC_PACKAGE_NAME lists.  ##
5301## ------------------------------------------ ##
5302_ASBOX
5303    ) |
5304      sed "s/^/$as_me: WARNING:     /" >&2
5305    ;;
5306esac
5307echo "$as_me:$LINENO: checking for $ac_header" >&5
5308echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5309if eval "test \"\${$as_ac_Header+set}\" = set"; then
5310  echo $ECHO_N "(cached) $ECHO_C" >&6
5311else
5312  eval "$as_ac_Header=\$ac_header_preproc"
5313fi
5314echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5315echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5316
5317fi
5318if test `eval echo '${'$as_ac_Header'}'` = yes; then
5319  cat >>confdefs.h <<_ACEOF
5320#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5321_ACEOF
5322
5323fi
5324
5325done
5326
5327ac_ext=cc
5328ac_cpp='$CXXCPP $CPPFLAGS'
5329ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5330ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5331ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5332if test -n "$ac_tool_prefix"; then
5333  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5334  do
5335    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5336set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5337echo "$as_me:$LINENO: checking for $ac_word" >&5
5338echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5339if test "${ac_cv_prog_CXX+set}" = set; then
5340  echo $ECHO_N "(cached) $ECHO_C" >&6
5341else
5342  if test -n "$CXX"; then
5343  ac_cv_prog_CXX="$CXX" # Let the user override the test.
5344else
5345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5346for as_dir in $PATH
5347do
5348  IFS=$as_save_IFS
5349  test -z "$as_dir" && as_dir=.
5350  for ac_exec_ext in '' $ac_executable_extensions; do
5351  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5352    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5353    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5354    break 2
5355  fi
5356done
5357done
5358
5359fi
5360fi
5361CXX=$ac_cv_prog_CXX
5362if test -n "$CXX"; then
5363  echo "$as_me:$LINENO: result: $CXX" >&5
5364echo "${ECHO_T}$CXX" >&6
5365else
5366  echo "$as_me:$LINENO: result: no" >&5
5367echo "${ECHO_T}no" >&6
5368fi
5369
5370    test -n "$CXX" && break
5371  done
5372fi
5373if test -z "$CXX"; then
5374  ac_ct_CXX=$CXX
5375  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5376do
5377  # Extract the first word of "$ac_prog", so it can be a program name with args.
5378set dummy $ac_prog; ac_word=$2
5379echo "$as_me:$LINENO: checking for $ac_word" >&5
5380echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5381if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5382  echo $ECHO_N "(cached) $ECHO_C" >&6
5383else
5384  if test -n "$ac_ct_CXX"; then
5385  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5386else
5387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5388for as_dir in $PATH
5389do
5390  IFS=$as_save_IFS
5391  test -z "$as_dir" && as_dir=.
5392  for ac_exec_ext in '' $ac_executable_extensions; do
5393  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5394    ac_cv_prog_ac_ct_CXX="$ac_prog"
5395    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5396    break 2
5397  fi
5398done
5399done
5400
5401fi
5402fi
5403ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5404if test -n "$ac_ct_CXX"; then
5405  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5406echo "${ECHO_T}$ac_ct_CXX" >&6
5407else
5408  echo "$as_me:$LINENO: result: no" >&5
5409echo "${ECHO_T}no" >&6
5410fi
5411
5412  test -n "$ac_ct_CXX" && break
5413done
5414test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
5415
5416  CXX=$ac_ct_CXX
5417fi
5418
5419
5420# Provide some information about the compiler.
5421echo "$as_me:$LINENO:" \
5422     "checking for C++ compiler version" >&5
5423ac_compiler=`set X $ac_compile; echo $2`
5424{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5425  (eval $ac_compiler --version </dev/null >&5) 2>&5
5426  ac_status=$?
5427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5428  (exit $ac_status); }
5429{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5430  (eval $ac_compiler -v </dev/null >&5) 2>&5
5431  ac_status=$?
5432  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5433  (exit $ac_status); }
5434{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5435  (eval $ac_compiler -V </dev/null >&5) 2>&5
5436  ac_status=$?
5437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5438  (exit $ac_status); }
5439
5440echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5441echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
5442if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5443  echo $ECHO_N "(cached) $ECHO_C" >&6
5444else
5445  cat >conftest.$ac_ext <<_ACEOF
5446/* confdefs.h.  */
5447_ACEOF
5448cat confdefs.h >>conftest.$ac_ext
5449cat >>conftest.$ac_ext <<_ACEOF
5450/* end confdefs.h.  */
5451
5452int
5453main ()
5454{
5455#ifndef __GNUC__
5456       choke me
5457#endif
5458
5459  ;
5460  return 0;
5461}
5462_ACEOF
5463rm -f conftest.$ac_objext
5464if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5465  (eval $ac_compile) 2>conftest.er1
5466  ac_status=$?
5467  grep -v '^ *+' conftest.er1 >conftest.err
5468  rm -f conftest.er1
5469  cat conftest.err >&5
5470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5471  (exit $ac_status); } &&
5472	 { ac_try='test -z "$ac_cxx_werror_flag"
5473			 || test ! -s conftest.err'
5474  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5475  (eval $ac_try) 2>&5
5476  ac_status=$?
5477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5478  (exit $ac_status); }; } &&
5479	 { ac_try='test -s conftest.$ac_objext'
5480  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5481  (eval $ac_try) 2>&5
5482  ac_status=$?
5483  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5484  (exit $ac_status); }; }; then
5485  ac_compiler_gnu=yes
5486else
5487  echo "$as_me: failed program was:" >&5
5488sed 's/^/| /' conftest.$ac_ext >&5
5489
5490ac_compiler_gnu=no
5491fi
5492rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5493ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5494
5495fi
5496echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5497echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5498GXX=`test $ac_compiler_gnu = yes && echo yes`
5499ac_test_CXXFLAGS=${CXXFLAGS+set}
5500ac_save_CXXFLAGS=$CXXFLAGS
5501CXXFLAGS="-g"
5502echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5503echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5504if test "${ac_cv_prog_cxx_g+set}" = set; then
5505  echo $ECHO_N "(cached) $ECHO_C" >&6
5506else
5507  cat >conftest.$ac_ext <<_ACEOF
5508/* confdefs.h.  */
5509_ACEOF
5510cat confdefs.h >>conftest.$ac_ext
5511cat >>conftest.$ac_ext <<_ACEOF
5512/* end confdefs.h.  */
5513
5514int
5515main ()
5516{
5517
5518  ;
5519  return 0;
5520}
5521_ACEOF
5522rm -f conftest.$ac_objext
5523if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5524  (eval $ac_compile) 2>conftest.er1
5525  ac_status=$?
5526  grep -v '^ *+' conftest.er1 >conftest.err
5527  rm -f conftest.er1
5528  cat conftest.err >&5
5529  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5530  (exit $ac_status); } &&
5531	 { ac_try='test -z "$ac_cxx_werror_flag"
5532			 || test ! -s conftest.err'
5533  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5534  (eval $ac_try) 2>&5
5535  ac_status=$?
5536  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5537  (exit $ac_status); }; } &&
5538	 { ac_try='test -s conftest.$ac_objext'
5539  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5540  (eval $ac_try) 2>&5
5541  ac_status=$?
5542  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5543  (exit $ac_status); }; }; then
5544  ac_cv_prog_cxx_g=yes
5545else
5546  echo "$as_me: failed program was:" >&5
5547sed 's/^/| /' conftest.$ac_ext >&5
5548
5549ac_cv_prog_cxx_g=no
5550fi
5551rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5552fi
5553echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5554echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5555if test "$ac_test_CXXFLAGS" = set; then
5556  CXXFLAGS=$ac_save_CXXFLAGS
5557elif test $ac_cv_prog_cxx_g = yes; then
5558  if test "$GXX" = yes; then
5559    CXXFLAGS="-g -O2"
5560  else
5561    CXXFLAGS="-g"
5562  fi
5563else
5564  if test "$GXX" = yes; then
5565    CXXFLAGS="-O2"
5566  else
5567    CXXFLAGS=
5568  fi
5569fi
5570for ac_declaration in \
5571   '' \
5572   'extern "C" void std::exit (int) throw (); using std::exit;' \
5573   'extern "C" void std::exit (int); using std::exit;' \
5574   'extern "C" void exit (int) throw ();' \
5575   'extern "C" void exit (int);' \
5576   'void exit (int);'
5577do
5578  cat >conftest.$ac_ext <<_ACEOF
5579/* confdefs.h.  */
5580_ACEOF
5581cat confdefs.h >>conftest.$ac_ext
5582cat >>conftest.$ac_ext <<_ACEOF
5583/* end confdefs.h.  */
5584$ac_declaration
5585#include <stdlib.h>
5586int
5587main ()
5588{
5589exit (42);
5590  ;
5591  return 0;
5592}
5593_ACEOF
5594rm -f conftest.$ac_objext
5595if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5596  (eval $ac_compile) 2>conftest.er1
5597  ac_status=$?
5598  grep -v '^ *+' conftest.er1 >conftest.err
5599  rm -f conftest.er1
5600  cat conftest.err >&5
5601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5602  (exit $ac_status); } &&
5603	 { ac_try='test -z "$ac_cxx_werror_flag"
5604			 || test ! -s conftest.err'
5605  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5606  (eval $ac_try) 2>&5
5607  ac_status=$?
5608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5609  (exit $ac_status); }; } &&
5610	 { ac_try='test -s conftest.$ac_objext'
5611  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5612  (eval $ac_try) 2>&5
5613  ac_status=$?
5614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615  (exit $ac_status); }; }; then
5616  :
5617else
5618  echo "$as_me: failed program was:" >&5
5619sed 's/^/| /' conftest.$ac_ext >&5
5620
5621continue
5622fi
5623rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5624  cat >conftest.$ac_ext <<_ACEOF
5625/* confdefs.h.  */
5626_ACEOF
5627cat confdefs.h >>conftest.$ac_ext
5628cat >>conftest.$ac_ext <<_ACEOF
5629/* end confdefs.h.  */
5630$ac_declaration
5631int
5632main ()
5633{
5634exit (42);
5635  ;
5636  return 0;
5637}
5638_ACEOF
5639rm -f conftest.$ac_objext
5640if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5641  (eval $ac_compile) 2>conftest.er1
5642  ac_status=$?
5643  grep -v '^ *+' conftest.er1 >conftest.err
5644  rm -f conftest.er1
5645  cat conftest.err >&5
5646  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5647  (exit $ac_status); } &&
5648	 { ac_try='test -z "$ac_cxx_werror_flag"
5649			 || test ! -s conftest.err'
5650  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5651  (eval $ac_try) 2>&5
5652  ac_status=$?
5653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5654  (exit $ac_status); }; } &&
5655	 { ac_try='test -s conftest.$ac_objext'
5656  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5657  (eval $ac_try) 2>&5
5658  ac_status=$?
5659  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5660  (exit $ac_status); }; }; then
5661  break
5662else
5663  echo "$as_me: failed program was:" >&5
5664sed 's/^/| /' conftest.$ac_ext >&5
5665
5666fi
5667rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5668done
5669rm -f conftest*
5670if test -n "$ac_declaration"; then
5671  echo '#ifdef __cplusplus' >>confdefs.h
5672  echo $ac_declaration      >>confdefs.h
5673  echo '#endif'             >>confdefs.h
5674fi
5675
5676ac_ext=cc
5677ac_cpp='$CXXCPP $CPPFLAGS'
5678ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5679ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5680ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5681
5682
5683
5684if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5685    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5686    (test "X$CXX" != "Xg++"))) ; then
5687  ac_ext=cc
5688ac_cpp='$CXXCPP $CPPFLAGS'
5689ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5690ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5691ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5692echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5693echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5694if test -z "$CXXCPP"; then
5695  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5696  echo $ECHO_N "(cached) $ECHO_C" >&6
5697else
5698      # Double quotes because CXXCPP needs to be expanded
5699    for CXXCPP in "$CXX -E" "/lib/cpp"
5700    do
5701      ac_preproc_ok=false
5702for ac_cxx_preproc_warn_flag in '' yes
5703do
5704  # Use a header file that comes with gcc, so configuring glibc
5705  # with a fresh cross-compiler works.
5706  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5707  # <limits.h> exists even on freestanding compilers.
5708  # On the NeXT, cc -E runs the code through the compiler's parser,
5709  # not just through cpp. "Syntax error" is here to catch this case.
5710  cat >conftest.$ac_ext <<_ACEOF
5711/* confdefs.h.  */
5712_ACEOF
5713cat confdefs.h >>conftest.$ac_ext
5714cat >>conftest.$ac_ext <<_ACEOF
5715/* end confdefs.h.  */
5716#ifdef __STDC__
5717# include <limits.h>
5718#else
5719# include <assert.h>
5720#endif
5721		     Syntax error
5722_ACEOF
5723if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5724  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5725  ac_status=$?
5726  grep -v '^ *+' conftest.er1 >conftest.err
5727  rm -f conftest.er1
5728  cat conftest.err >&5
5729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730  (exit $ac_status); } >/dev/null; then
5731  if test -s conftest.err; then
5732    ac_cpp_err=$ac_cxx_preproc_warn_flag
5733    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5734  else
5735    ac_cpp_err=
5736  fi
5737else
5738  ac_cpp_err=yes
5739fi
5740if test -z "$ac_cpp_err"; then
5741  :
5742else
5743  echo "$as_me: failed program was:" >&5
5744sed 's/^/| /' conftest.$ac_ext >&5
5745
5746  # Broken: fails on valid input.
5747continue
5748fi
5749rm -f conftest.err conftest.$ac_ext
5750
5751  # OK, works on sane cases.  Now check whether non-existent headers
5752  # can be detected and how.
5753  cat >conftest.$ac_ext <<_ACEOF
5754/* confdefs.h.  */
5755_ACEOF
5756cat confdefs.h >>conftest.$ac_ext
5757cat >>conftest.$ac_ext <<_ACEOF
5758/* end confdefs.h.  */
5759#include <ac_nonexistent.h>
5760_ACEOF
5761if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5762  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5763  ac_status=$?
5764  grep -v '^ *+' conftest.er1 >conftest.err
5765  rm -f conftest.er1
5766  cat conftest.err >&5
5767  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5768  (exit $ac_status); } >/dev/null; then
5769  if test -s conftest.err; then
5770    ac_cpp_err=$ac_cxx_preproc_warn_flag
5771    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5772  else
5773    ac_cpp_err=
5774  fi
5775else
5776  ac_cpp_err=yes
5777fi
5778if test -z "$ac_cpp_err"; then
5779  # Broken: success on invalid input.
5780continue
5781else
5782  echo "$as_me: failed program was:" >&5
5783sed 's/^/| /' conftest.$ac_ext >&5
5784
5785  # Passes both tests.
5786ac_preproc_ok=:
5787break
5788fi
5789rm -f conftest.err conftest.$ac_ext
5790
5791done
5792# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5793rm -f conftest.err conftest.$ac_ext
5794if $ac_preproc_ok; then
5795  break
5796fi
5797
5798    done
5799    ac_cv_prog_CXXCPP=$CXXCPP
5800
5801fi
5802  CXXCPP=$ac_cv_prog_CXXCPP
5803else
5804  ac_cv_prog_CXXCPP=$CXXCPP
5805fi
5806echo "$as_me:$LINENO: result: $CXXCPP" >&5
5807echo "${ECHO_T}$CXXCPP" >&6
5808ac_preproc_ok=false
5809for ac_cxx_preproc_warn_flag in '' yes
5810do
5811  # Use a header file that comes with gcc, so configuring glibc
5812  # with a fresh cross-compiler works.
5813  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5814  # <limits.h> exists even on freestanding compilers.
5815  # On the NeXT, cc -E runs the code through the compiler's parser,
5816  # not just through cpp. "Syntax error" is here to catch this case.
5817  cat >conftest.$ac_ext <<_ACEOF
5818/* confdefs.h.  */
5819_ACEOF
5820cat confdefs.h >>conftest.$ac_ext
5821cat >>conftest.$ac_ext <<_ACEOF
5822/* end confdefs.h.  */
5823#ifdef __STDC__
5824# include <limits.h>
5825#else
5826# include <assert.h>
5827#endif
5828		     Syntax error
5829_ACEOF
5830if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5831  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5832  ac_status=$?
5833  grep -v '^ *+' conftest.er1 >conftest.err
5834  rm -f conftest.er1
5835  cat conftest.err >&5
5836  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5837  (exit $ac_status); } >/dev/null; then
5838  if test -s conftest.err; then
5839    ac_cpp_err=$ac_cxx_preproc_warn_flag
5840    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5841  else
5842    ac_cpp_err=
5843  fi
5844else
5845  ac_cpp_err=yes
5846fi
5847if test -z "$ac_cpp_err"; then
5848  :
5849else
5850  echo "$as_me: failed program was:" >&5
5851sed 's/^/| /' conftest.$ac_ext >&5
5852
5853  # Broken: fails on valid input.
5854continue
5855fi
5856rm -f conftest.err conftest.$ac_ext
5857
5858  # OK, works on sane cases.  Now check whether non-existent headers
5859  # can be detected and how.
5860  cat >conftest.$ac_ext <<_ACEOF
5861/* confdefs.h.  */
5862_ACEOF
5863cat confdefs.h >>conftest.$ac_ext
5864cat >>conftest.$ac_ext <<_ACEOF
5865/* end confdefs.h.  */
5866#include <ac_nonexistent.h>
5867_ACEOF
5868if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5869  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5870  ac_status=$?
5871  grep -v '^ *+' conftest.er1 >conftest.err
5872  rm -f conftest.er1
5873  cat conftest.err >&5
5874  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5875  (exit $ac_status); } >/dev/null; then
5876  if test -s conftest.err; then
5877    ac_cpp_err=$ac_cxx_preproc_warn_flag
5878    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5879  else
5880    ac_cpp_err=
5881  fi
5882else
5883  ac_cpp_err=yes
5884fi
5885if test -z "$ac_cpp_err"; then
5886  # Broken: success on invalid input.
5887continue
5888else
5889  echo "$as_me: failed program was:" >&5
5890sed 's/^/| /' conftest.$ac_ext >&5
5891
5892  # Passes both tests.
5893ac_preproc_ok=:
5894break
5895fi
5896rm -f conftest.err conftest.$ac_ext
5897
5898done
5899# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5900rm -f conftest.err conftest.$ac_ext
5901if $ac_preproc_ok; then
5902  :
5903else
5904   :
5905fi
5906
5907ac_ext=cc
5908ac_cpp='$CXXCPP $CPPFLAGS'
5909ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5910ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5911ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5912
5913fi
5914
5915
5916ac_ext=f
5917ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5918ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5919ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5920if test -n "$ac_tool_prefix"; then
5921  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5922  do
5923    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5924set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5925echo "$as_me:$LINENO: checking for $ac_word" >&5
5926echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5927if test "${ac_cv_prog_F77+set}" = set; then
5928  echo $ECHO_N "(cached) $ECHO_C" >&6
5929else
5930  if test -n "$F77"; then
5931  ac_cv_prog_F77="$F77" # Let the user override the test.
5932else
5933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5934for as_dir in $PATH
5935do
5936  IFS=$as_save_IFS
5937  test -z "$as_dir" && as_dir=.
5938  for ac_exec_ext in '' $ac_executable_extensions; do
5939  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5940    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5941    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5942    break 2
5943  fi
5944done
5945done
5946
5947fi
5948fi
5949F77=$ac_cv_prog_F77
5950if test -n "$F77"; then
5951  echo "$as_me:$LINENO: result: $F77" >&5
5952echo "${ECHO_T}$F77" >&6
5953else
5954  echo "$as_me:$LINENO: result: no" >&5
5955echo "${ECHO_T}no" >&6
5956fi
5957
5958    test -n "$F77" && break
5959  done
5960fi
5961if test -z "$F77"; then
5962  ac_ct_F77=$F77
5963  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5964do
5965  # Extract the first word of "$ac_prog", so it can be a program name with args.
5966set dummy $ac_prog; ac_word=$2
5967echo "$as_me:$LINENO: checking for $ac_word" >&5
5968echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5969if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5970  echo $ECHO_N "(cached) $ECHO_C" >&6
5971else
5972  if test -n "$ac_ct_F77"; then
5973  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5974else
5975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5976for as_dir in $PATH
5977do
5978  IFS=$as_save_IFS
5979  test -z "$as_dir" && as_dir=.
5980  for ac_exec_ext in '' $ac_executable_extensions; do
5981  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5982    ac_cv_prog_ac_ct_F77="$ac_prog"
5983    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5984    break 2
5985  fi
5986done
5987done
5988
5989fi
5990fi
5991ac_ct_F77=$ac_cv_prog_ac_ct_F77
5992if test -n "$ac_ct_F77"; then
5993  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5994echo "${ECHO_T}$ac_ct_F77" >&6
5995else
5996  echo "$as_me:$LINENO: result: no" >&5
5997echo "${ECHO_T}no" >&6
5998fi
5999
6000  test -n "$ac_ct_F77" && break
6001done
6002
6003  F77=$ac_ct_F77
6004fi
6005
6006
6007# Provide some information about the compiler.
6008echo "$as_me:6016:" \
6009     "checking for Fortran 77 compiler version" >&5
6010ac_compiler=`set X $ac_compile; echo $2`
6011{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6012  (eval $ac_compiler --version </dev/null >&5) 2>&5
6013  ac_status=$?
6014  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015  (exit $ac_status); }
6016{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6017  (eval $ac_compiler -v </dev/null >&5) 2>&5
6018  ac_status=$?
6019  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020  (exit $ac_status); }
6021{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6022  (eval $ac_compiler -V </dev/null >&5) 2>&5
6023  ac_status=$?
6024  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6025  (exit $ac_status); }
6026rm -f a.out
6027
6028# If we don't use `.F' as extension, the preprocessor is not run on the
6029# input file.  (Note that this only needs to work for GNU compilers.)
6030ac_save_ext=$ac_ext
6031ac_ext=F
6032echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6033echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
6034if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6035  echo $ECHO_N "(cached) $ECHO_C" >&6
6036else
6037  cat >conftest.$ac_ext <<_ACEOF
6038      program main
6039#ifndef __GNUC__
6040       choke me
6041#endif
6042
6043      end
6044_ACEOF
6045rm -f conftest.$ac_objext
6046if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6047  (eval $ac_compile) 2>conftest.er1
6048  ac_status=$?
6049  grep -v '^ *+' conftest.er1 >conftest.err
6050  rm -f conftest.er1
6051  cat conftest.err >&5
6052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053  (exit $ac_status); } &&
6054	 { ac_try='test -z "$ac_f77_werror_flag"
6055			 || test ! -s conftest.err'
6056  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6057  (eval $ac_try) 2>&5
6058  ac_status=$?
6059  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6060  (exit $ac_status); }; } &&
6061	 { ac_try='test -s conftest.$ac_objext'
6062  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6063  (eval $ac_try) 2>&5
6064  ac_status=$?
6065  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6066  (exit $ac_status); }; }; then
6067  ac_compiler_gnu=yes
6068else
6069  echo "$as_me: failed program was:" >&5
6070sed 's/^/| /' conftest.$ac_ext >&5
6071
6072ac_compiler_gnu=no
6073fi
6074rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6075ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6076
6077fi
6078echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6079echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
6080ac_ext=$ac_save_ext
6081ac_test_FFLAGS=${FFLAGS+set}
6082ac_save_FFLAGS=$FFLAGS
6083FFLAGS=
6084echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6085echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
6086if test "${ac_cv_prog_f77_g+set}" = set; then
6087  echo $ECHO_N "(cached) $ECHO_C" >&6
6088else
6089  FFLAGS=-g
6090cat >conftest.$ac_ext <<_ACEOF
6091      program main
6092
6093      end
6094_ACEOF
6095rm -f conftest.$ac_objext
6096if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6097  (eval $ac_compile) 2>conftest.er1
6098  ac_status=$?
6099  grep -v '^ *+' conftest.er1 >conftest.err
6100  rm -f conftest.er1
6101  cat conftest.err >&5
6102  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6103  (exit $ac_status); } &&
6104	 { ac_try='test -z "$ac_f77_werror_flag"
6105			 || test ! -s conftest.err'
6106  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6107  (eval $ac_try) 2>&5
6108  ac_status=$?
6109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6110  (exit $ac_status); }; } &&
6111	 { ac_try='test -s conftest.$ac_objext'
6112  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6113  (eval $ac_try) 2>&5
6114  ac_status=$?
6115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6116  (exit $ac_status); }; }; then
6117  ac_cv_prog_f77_g=yes
6118else
6119  echo "$as_me: failed program was:" >&5
6120sed 's/^/| /' conftest.$ac_ext >&5
6121
6122ac_cv_prog_f77_g=no
6123fi
6124rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6125
6126fi
6127echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6128echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
6129if test "$ac_test_FFLAGS" = set; then
6130  FFLAGS=$ac_save_FFLAGS
6131elif test $ac_cv_prog_f77_g = yes; then
6132  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6133    FFLAGS="-g -O2"
6134  else
6135    FFLAGS="-g"
6136  fi
6137else
6138  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6139    FFLAGS="-O2"
6140  else
6141    FFLAGS=
6142  fi
6143fi
6144
6145G77=`test $ac_compiler_gnu = yes && echo yes`
6146ac_ext=c
6147ac_cpp='$CPP $CPPFLAGS'
6148ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6149ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6150ac_compiler_gnu=$ac_cv_c_compiler_gnu
6151
6152
6153
6154# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6155
6156# find the maximum length of command line arguments
6157echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6158echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
6159if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6160  echo $ECHO_N "(cached) $ECHO_C" >&6
6161else
6162    i=0
6163  teststring="ABCD"
6164
6165  case $build_os in
6166  msdosdjgpp*)
6167    # On DJGPP, this test can blow up pretty badly due to problems in libc
6168    # (any single argument exceeding 2000 bytes causes a buffer overrun
6169    # during glob expansion).  Even if it were fixed, the result of this
6170    # check would be larger than it should be.
6171    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6172    ;;
6173
6174  gnu*)
6175    # Under GNU Hurd, this test is not required because there is
6176    # no limit to the length of command line arguments.
6177    # Libtool will interpret -1 as no limit whatsoever
6178    lt_cv_sys_max_cmd_len=-1;
6179    ;;
6180
6181  cygwin* | mingw*)
6182    # On Win9x/ME, this test blows up -- it succeeds, but takes
6183    # about 5 minutes as the teststring grows exponentially.
6184    # Worse, since 9x/ME are not pre-emptively multitasking,
6185    # you end up with a "frozen" computer, even though with patience
6186    # the test eventually succeeds (with a max line length of 256k).
6187    # Instead, let's just punt: use the minimum linelength reported by
6188    # all of the supported platforms: 8192 (on NT/2K/XP).
6189    lt_cv_sys_max_cmd_len=8192;
6190    ;;
6191
6192  amigaos*)
6193    # On AmigaOS with pdksh, this test takes hours, literally.
6194    # So we just punt and use a minimum line length of 8192.
6195    lt_cv_sys_max_cmd_len=8192;
6196    ;;
6197
6198  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6199    # This has been around since 386BSD, at least.  Likely further.
6200    if test -x /sbin/sysctl; then
6201      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6202    elif test -x /usr/sbin/sysctl; then
6203      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6204    else
6205      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6206    fi
6207    # And add a safety zone
6208    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6209    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6210    ;;
6211
6212  interix*)
6213    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6214    lt_cv_sys_max_cmd_len=196608
6215    ;;
6216
6217  osf*)
6218    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6219    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6220    # nice to cause kernel panics so lets avoid the loop below.
6221    # First set a reasonable default.
6222    lt_cv_sys_max_cmd_len=16384
6223    #
6224    if test -x /sbin/sysconfig; then
6225      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6226        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6227      esac
6228    fi
6229    ;;
6230  sco3.2v5*)
6231    lt_cv_sys_max_cmd_len=102400
6232    ;;
6233  sysv5* | sco5v6* | sysv4.2uw2*)
6234    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6235    if test -n "$kargmax"; then
6236      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
6237    else
6238      lt_cv_sys_max_cmd_len=32768
6239    fi
6240    ;;
6241  *)
6242    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6243    if test -n "$lt_cv_sys_max_cmd_len"; then
6244      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6245      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6246    else
6247      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6248      while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6249	       = "XX$teststring") >/dev/null 2>&1 &&
6250	      new_result=`expr "X$teststring" : ".*" 2>&1` &&
6251	      lt_cv_sys_max_cmd_len=$new_result &&
6252	      test $i != 17 # 1/2 MB should be enough
6253      do
6254        i=`expr $i + 1`
6255        teststring=$teststring$teststring
6256      done
6257      teststring=
6258      # Add a significant safety factor because C++ compilers can tack on massive
6259      # amounts of additional arguments before passing them to the linker.
6260      # It appears as though 1/2 is a usable value.
6261      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6262    fi
6263    ;;
6264  esac
6265
6266fi
6267
6268if test -n $lt_cv_sys_max_cmd_len ; then
6269  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6270echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
6271else
6272  echo "$as_me:$LINENO: result: none" >&5
6273echo "${ECHO_T}none" >&6
6274fi
6275
6276
6277
6278
6279
6280# Check for command to grab the raw symbol name followed by C symbol from nm.
6281echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6282echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
6283if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6284  echo $ECHO_N "(cached) $ECHO_C" >&6
6285else
6286
6287# These are sane defaults that work on at least a few old systems.
6288# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6289
6290# Character class describing NM global symbol codes.
6291symcode='[BCDEGRST]'
6292
6293# Regexp to match symbols that can be accessed directly from C.
6294sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6295
6296# Transform an extracted symbol line into a proper C declaration
6297lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6298
6299# Transform an extracted symbol line into symbol name and symbol address
6300lt_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'"
6301
6302# Define system-specific variables.
6303case $host_os in
6304aix*)
6305  symcode='[BCDT]'
6306  ;;
6307cygwin* | mingw* | pw32*)
6308  symcode='[ABCDGISTW]'
6309  ;;
6310hpux*) # Its linker distinguishes data from code symbols
6311  if test "$host_cpu" = ia64; then
6312    symcode='[ABCDEGRST]'
6313  fi
6314  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6315  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'"
6316  ;;
6317linux* | k*bsd*-gnu)
6318  if test "$host_cpu" = ia64; then
6319    symcode='[ABCDGIRSTW]'
6320    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6321    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'"
6322  fi
6323  ;;
6324irix* | nonstopux*)
6325  symcode='[BCDEGRST]'
6326  ;;
6327osf*)
6328  symcode='[BCDEGQRST]'
6329  ;;
6330solaris*)
6331  symcode='[BDRT]'
6332  ;;
6333sco3.2v5*)
6334  symcode='[DT]'
6335  ;;
6336sysv4.2uw2*)
6337  symcode='[DT]'
6338  ;;
6339sysv5* | sco5v6* | unixware* | OpenUNIX*)
6340  symcode='[ABDT]'
6341  ;;
6342sysv4)
6343  symcode='[DFNSTU]'
6344  ;;
6345esac
6346
6347# Handle CRLF in mingw tool chain
6348opt_cr=
6349case $build_os in
6350mingw*)
6351  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6352  ;;
6353esac
6354
6355# If we're using GNU nm, then use its standard symbol codes.
6356case `$NM -V 2>&1` in
6357*GNU* | *'with BFD'*)
6358  symcode='[ABCDGIRSTW]' ;;
6359esac
6360
6361# Try without a prefix undercore, then with it.
6362for ac_symprfx in "" "_"; do
6363
6364  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6365  symxfrm="\\1 $ac_symprfx\\2 \\2"
6366
6367  # Write the raw and C identifiers.
6368  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6369
6370  # Check to see that the pipe works correctly.
6371  pipe_works=no
6372
6373  rm -f conftest*
6374  cat > conftest.$ac_ext <<EOF
6375#ifdef __cplusplus
6376extern "C" {
6377#endif
6378char nm_test_var;
6379void nm_test_func(){}
6380#ifdef __cplusplus
6381}
6382#endif
6383int main(){nm_test_var='a';nm_test_func();return(0);}
6384EOF
6385
6386  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6387  (eval $ac_compile) 2>&5
6388  ac_status=$?
6389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6390  (exit $ac_status); }; then
6391    # Now try to grab the symbols.
6392    nlist=conftest.nm
6393    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6394  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6395  ac_status=$?
6396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6397  (exit $ac_status); } && test -s "$nlist"; then
6398      # Try sorting and uniquifying the output.
6399      if sort "$nlist" | uniq > "$nlist"T; then
6400	mv -f "$nlist"T "$nlist"
6401      else
6402	rm -f "$nlist"T
6403      fi
6404
6405      # Make sure that we snagged all the symbols we need.
6406      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6407	if grep ' nm_test_func$' "$nlist" >/dev/null; then
6408	  cat <<EOF > conftest.$ac_ext
6409#ifdef __cplusplus
6410extern "C" {
6411#endif
6412
6413EOF
6414	  # Now generate the symbol file.
6415	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6416
6417	  cat <<EOF >> conftest.$ac_ext
6418#if defined (__STDC__) && __STDC__
6419# define lt_ptr_t void *
6420#else
6421# define lt_ptr_t char *
6422# define const
6423#endif
6424
6425/* The mapping between symbol names and symbols. */
6426const struct {
6427  const char *name;
6428  lt_ptr_t address;
6429}
6430lt_preloaded_symbols[] =
6431{
6432EOF
6433	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6434	  cat <<\EOF >> conftest.$ac_ext
6435  {0, (lt_ptr_t) 0}
6436};
6437
6438#ifdef __cplusplus
6439}
6440#endif
6441EOF
6442	  # Now try linking the two files.
6443	  mv conftest.$ac_objext conftstm.$ac_objext
6444	  lt_save_LIBS="$LIBS"
6445	  lt_save_CFLAGS="$CFLAGS"
6446	  LIBS="conftstm.$ac_objext"
6447	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6448	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6449  (eval $ac_link) 2>&5
6450  ac_status=$?
6451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6452  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6453	    pipe_works=yes
6454	  fi
6455	  LIBS="$lt_save_LIBS"
6456	  CFLAGS="$lt_save_CFLAGS"
6457	else
6458	  echo "cannot find nm_test_func in $nlist" >&5
6459	fi
6460      else
6461	echo "cannot find nm_test_var in $nlist" >&5
6462      fi
6463    else
6464      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6465    fi
6466  else
6467    echo "$progname: failed program was:" >&5
6468    cat conftest.$ac_ext >&5
6469  fi
6470  rm -f conftest* conftst*
6471
6472  # Do not use the global_symbol_pipe unless it works.
6473  if test "$pipe_works" = yes; then
6474    break
6475  else
6476    lt_cv_sys_global_symbol_pipe=
6477  fi
6478done
6479
6480fi
6481
6482if test -z "$lt_cv_sys_global_symbol_pipe"; then
6483  lt_cv_sys_global_symbol_to_cdecl=
6484fi
6485if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6486  echo "$as_me:$LINENO: result: failed" >&5
6487echo "${ECHO_T}failed" >&6
6488else
6489  echo "$as_me:$LINENO: result: ok" >&5
6490echo "${ECHO_T}ok" >&6
6491fi
6492
6493echo "$as_me:$LINENO: checking for objdir" >&5
6494echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6495if test "${lt_cv_objdir+set}" = set; then
6496  echo $ECHO_N "(cached) $ECHO_C" >&6
6497else
6498  rm -f .libs 2>/dev/null
6499mkdir .libs 2>/dev/null
6500if test -d .libs; then
6501  lt_cv_objdir=.libs
6502else
6503  # MS-DOS does not allow filenames that begin with a dot.
6504  lt_cv_objdir=_libs
6505fi
6506rmdir .libs 2>/dev/null
6507fi
6508echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6509echo "${ECHO_T}$lt_cv_objdir" >&6
6510objdir=$lt_cv_objdir
6511
6512
6513
6514
6515
6516case $host_os in
6517aix3*)
6518  # AIX sometimes has problems with the GCC collect2 program.  For some
6519  # reason, if we set the COLLECT_NAMES environment variable, the problems
6520  # vanish in a puff of smoke.
6521  if test "X${COLLECT_NAMES+set}" != Xset; then
6522    COLLECT_NAMES=
6523    export COLLECT_NAMES
6524  fi
6525  ;;
6526esac
6527
6528# Sed substitution that helps us do robust quoting.  It backslashifies
6529# metacharacters that are still active within double-quoted strings.
6530Xsed='sed -e 1s/^X//'
6531sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6532
6533# Same as above, but do not quote variable references.
6534double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6535
6536# Sed substitution to delay expansion of an escaped shell variable in a
6537# double_quote_subst'ed string.
6538delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6539
6540# Sed substitution to avoid accidental globbing in evaled expressions
6541no_glob_subst='s/\*/\\\*/g'
6542
6543# Constants:
6544rm="rm -f"
6545
6546# Global variables:
6547default_ofile=libtool
6548can_build_shared=yes
6549
6550# All known linkers require a `.a' archive for static linking (except MSVC,
6551# which needs '.lib').
6552libext=a
6553ltmain="$ac_aux_dir/ltmain.sh"
6554ofile="$default_ofile"
6555with_gnu_ld="$lt_cv_prog_gnu_ld"
6556
6557if test -n "$ac_tool_prefix"; then
6558  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6559set dummy ${ac_tool_prefix}ar; ac_word=$2
6560echo "$as_me:$LINENO: checking for $ac_word" >&5
6561echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6562if test "${ac_cv_prog_AR+set}" = set; then
6563  echo $ECHO_N "(cached) $ECHO_C" >&6
6564else
6565  if test -n "$AR"; then
6566  ac_cv_prog_AR="$AR" # Let the user override the test.
6567else
6568as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6569for as_dir in $PATH
6570do
6571  IFS=$as_save_IFS
6572  test -z "$as_dir" && as_dir=.
6573  for ac_exec_ext in '' $ac_executable_extensions; do
6574  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6575    ac_cv_prog_AR="${ac_tool_prefix}ar"
6576    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6577    break 2
6578  fi
6579done
6580done
6581
6582fi
6583fi
6584AR=$ac_cv_prog_AR
6585if test -n "$AR"; then
6586  echo "$as_me:$LINENO: result: $AR" >&5
6587echo "${ECHO_T}$AR" >&6
6588else
6589  echo "$as_me:$LINENO: result: no" >&5
6590echo "${ECHO_T}no" >&6
6591fi
6592
6593fi
6594if test -z "$ac_cv_prog_AR"; then
6595  ac_ct_AR=$AR
6596  # Extract the first word of "ar", so it can be a program name with args.
6597set dummy ar; ac_word=$2
6598echo "$as_me:$LINENO: checking for $ac_word" >&5
6599echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6600if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6601  echo $ECHO_N "(cached) $ECHO_C" >&6
6602else
6603  if test -n "$ac_ct_AR"; then
6604  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6605else
6606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6607for as_dir in $PATH
6608do
6609  IFS=$as_save_IFS
6610  test -z "$as_dir" && as_dir=.
6611  for ac_exec_ext in '' $ac_executable_extensions; do
6612  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6613    ac_cv_prog_ac_ct_AR="ar"
6614    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6615    break 2
6616  fi
6617done
6618done
6619
6620  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6621fi
6622fi
6623ac_ct_AR=$ac_cv_prog_ac_ct_AR
6624if test -n "$ac_ct_AR"; then
6625  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6626echo "${ECHO_T}$ac_ct_AR" >&6
6627else
6628  echo "$as_me:$LINENO: result: no" >&5
6629echo "${ECHO_T}no" >&6
6630fi
6631
6632  AR=$ac_ct_AR
6633else
6634  AR="$ac_cv_prog_AR"
6635fi
6636
6637if test -n "$ac_tool_prefix"; then
6638  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6639set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6640echo "$as_me:$LINENO: checking for $ac_word" >&5
6641echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6642if test "${ac_cv_prog_RANLIB+set}" = set; then
6643  echo $ECHO_N "(cached) $ECHO_C" >&6
6644else
6645  if test -n "$RANLIB"; then
6646  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6647else
6648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6649for as_dir in $PATH
6650do
6651  IFS=$as_save_IFS
6652  test -z "$as_dir" && as_dir=.
6653  for ac_exec_ext in '' $ac_executable_extensions; do
6654  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6655    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6656    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6657    break 2
6658  fi
6659done
6660done
6661
6662fi
6663fi
6664RANLIB=$ac_cv_prog_RANLIB
6665if test -n "$RANLIB"; then
6666  echo "$as_me:$LINENO: result: $RANLIB" >&5
6667echo "${ECHO_T}$RANLIB" >&6
6668else
6669  echo "$as_me:$LINENO: result: no" >&5
6670echo "${ECHO_T}no" >&6
6671fi
6672
6673fi
6674if test -z "$ac_cv_prog_RANLIB"; then
6675  ac_ct_RANLIB=$RANLIB
6676  # Extract the first word of "ranlib", so it can be a program name with args.
6677set dummy ranlib; ac_word=$2
6678echo "$as_me:$LINENO: checking for $ac_word" >&5
6679echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6680if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6681  echo $ECHO_N "(cached) $ECHO_C" >&6
6682else
6683  if test -n "$ac_ct_RANLIB"; then
6684  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6685else
6686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6687for as_dir in $PATH
6688do
6689  IFS=$as_save_IFS
6690  test -z "$as_dir" && as_dir=.
6691  for ac_exec_ext in '' $ac_executable_extensions; do
6692  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6693    ac_cv_prog_ac_ct_RANLIB="ranlib"
6694    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6695    break 2
6696  fi
6697done
6698done
6699
6700  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6701fi
6702fi
6703ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6704if test -n "$ac_ct_RANLIB"; then
6705  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6706echo "${ECHO_T}$ac_ct_RANLIB" >&6
6707else
6708  echo "$as_me:$LINENO: result: no" >&5
6709echo "${ECHO_T}no" >&6
6710fi
6711
6712  RANLIB=$ac_ct_RANLIB
6713else
6714  RANLIB="$ac_cv_prog_RANLIB"
6715fi
6716
6717if test -n "$ac_tool_prefix"; then
6718  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6719set dummy ${ac_tool_prefix}strip; ac_word=$2
6720echo "$as_me:$LINENO: checking for $ac_word" >&5
6721echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6722if test "${ac_cv_prog_STRIP+set}" = set; then
6723  echo $ECHO_N "(cached) $ECHO_C" >&6
6724else
6725  if test -n "$STRIP"; then
6726  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6727else
6728as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6729for as_dir in $PATH
6730do
6731  IFS=$as_save_IFS
6732  test -z "$as_dir" && as_dir=.
6733  for ac_exec_ext in '' $ac_executable_extensions; do
6734  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6735    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6736    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6737    break 2
6738  fi
6739done
6740done
6741
6742fi
6743fi
6744STRIP=$ac_cv_prog_STRIP
6745if test -n "$STRIP"; then
6746  echo "$as_me:$LINENO: result: $STRIP" >&5
6747echo "${ECHO_T}$STRIP" >&6
6748else
6749  echo "$as_me:$LINENO: result: no" >&5
6750echo "${ECHO_T}no" >&6
6751fi
6752
6753fi
6754if test -z "$ac_cv_prog_STRIP"; then
6755  ac_ct_STRIP=$STRIP
6756  # Extract the first word of "strip", so it can be a program name with args.
6757set dummy strip; ac_word=$2
6758echo "$as_me:$LINENO: checking for $ac_word" >&5
6759echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6760if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6761  echo $ECHO_N "(cached) $ECHO_C" >&6
6762else
6763  if test -n "$ac_ct_STRIP"; then
6764  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6765else
6766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6767for as_dir in $PATH
6768do
6769  IFS=$as_save_IFS
6770  test -z "$as_dir" && as_dir=.
6771  for ac_exec_ext in '' $ac_executable_extensions; do
6772  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6773    ac_cv_prog_ac_ct_STRIP="strip"
6774    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6775    break 2
6776  fi
6777done
6778done
6779
6780  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6781fi
6782fi
6783ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6784if test -n "$ac_ct_STRIP"; then
6785  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6786echo "${ECHO_T}$ac_ct_STRIP" >&6
6787else
6788  echo "$as_me:$LINENO: result: no" >&5
6789echo "${ECHO_T}no" >&6
6790fi
6791
6792  STRIP=$ac_ct_STRIP
6793else
6794  STRIP="$ac_cv_prog_STRIP"
6795fi
6796
6797
6798old_CC="$CC"
6799old_CFLAGS="$CFLAGS"
6800
6801# Set sane defaults for various variables
6802test -z "$AR" && AR=ar
6803test -z "$AR_FLAGS" && AR_FLAGS=cru
6804test -z "$AS" && AS=as
6805test -z "$CC" && CC=cc
6806test -z "$LTCC" && LTCC=$CC
6807test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6808test -z "$DLLTOOL" && DLLTOOL=dlltool
6809test -z "$LD" && LD=ld
6810test -z "$LN_S" && LN_S="ln -s"
6811test -z "$MAGIC_CMD" && MAGIC_CMD=file
6812test -z "$NM" && NM=nm
6813test -z "$SED" && SED=sed
6814test -z "$OBJDUMP" && OBJDUMP=objdump
6815test -z "$RANLIB" && RANLIB=:
6816test -z "$STRIP" && STRIP=:
6817test -z "$ac_objext" && ac_objext=o
6818
6819# Determine commands to create old-style static archives.
6820old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6821old_postinstall_cmds='chmod 644 $oldlib'
6822old_postuninstall_cmds=
6823
6824if test -n "$RANLIB"; then
6825  case $host_os in
6826  openbsd*)
6827    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6828    ;;
6829  *)
6830    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6831    ;;
6832  esac
6833  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6834fi
6835
6836for cc_temp in $compiler""; do
6837  case $cc_temp in
6838    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6839    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6840    \-*) ;;
6841    *) break;;
6842  esac
6843done
6844cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6845
6846
6847# Only perform the check for file, if the check method requires it
6848case $deplibs_check_method in
6849file_magic*)
6850  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6851    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6852echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6853if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6854  echo $ECHO_N "(cached) $ECHO_C" >&6
6855else
6856  case $MAGIC_CMD in
6857[\\/*] |  ?:[\\/]*)
6858  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6859  ;;
6860*)
6861  lt_save_MAGIC_CMD="$MAGIC_CMD"
6862  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6863  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6864  for ac_dir in $ac_dummy; do
6865    IFS="$lt_save_ifs"
6866    test -z "$ac_dir" && ac_dir=.
6867    if test -f $ac_dir/${ac_tool_prefix}file; then
6868      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6869      if test -n "$file_magic_test_file"; then
6870	case $deplibs_check_method in
6871	"file_magic "*)
6872	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6873	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6874	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6875	    $EGREP "$file_magic_regex" > /dev/null; then
6876	    :
6877	  else
6878	    cat <<EOF 1>&2
6879
6880*** Warning: the command libtool uses to detect shared libraries,
6881*** $file_magic_cmd, produces output that libtool cannot recognize.
6882*** The result is that libtool may fail to recognize shared libraries
6883*** as such.  This will affect the creation of libtool libraries that
6884*** depend on shared libraries, but programs linked with such libtool
6885*** libraries will work regardless of this problem.  Nevertheless, you
6886*** may want to report the problem to your system manager and/or to
6887*** bug-libtool@gnu.org
6888
6889EOF
6890	  fi ;;
6891	esac
6892      fi
6893      break
6894    fi
6895  done
6896  IFS="$lt_save_ifs"
6897  MAGIC_CMD="$lt_save_MAGIC_CMD"
6898  ;;
6899esac
6900fi
6901
6902MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6903if test -n "$MAGIC_CMD"; then
6904  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6905echo "${ECHO_T}$MAGIC_CMD" >&6
6906else
6907  echo "$as_me:$LINENO: result: no" >&5
6908echo "${ECHO_T}no" >&6
6909fi
6910
6911if test -z "$lt_cv_path_MAGIC_CMD"; then
6912  if test -n "$ac_tool_prefix"; then
6913    echo "$as_me:$LINENO: checking for file" >&5
6914echo $ECHO_N "checking for file... $ECHO_C" >&6
6915if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6916  echo $ECHO_N "(cached) $ECHO_C" >&6
6917else
6918  case $MAGIC_CMD in
6919[\\/*] |  ?:[\\/]*)
6920  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6921  ;;
6922*)
6923  lt_save_MAGIC_CMD="$MAGIC_CMD"
6924  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6925  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6926  for ac_dir in $ac_dummy; do
6927    IFS="$lt_save_ifs"
6928    test -z "$ac_dir" && ac_dir=.
6929    if test -f $ac_dir/file; then
6930      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6931      if test -n "$file_magic_test_file"; then
6932	case $deplibs_check_method in
6933	"file_magic "*)
6934	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6935	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6936	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6937	    $EGREP "$file_magic_regex" > /dev/null; then
6938	    :
6939	  else
6940	    cat <<EOF 1>&2
6941
6942*** Warning: the command libtool uses to detect shared libraries,
6943*** $file_magic_cmd, produces output that libtool cannot recognize.
6944*** The result is that libtool may fail to recognize shared libraries
6945*** as such.  This will affect the creation of libtool libraries that
6946*** depend on shared libraries, but programs linked with such libtool
6947*** libraries will work regardless of this problem.  Nevertheless, you
6948*** may want to report the problem to your system manager and/or to
6949*** bug-libtool@gnu.org
6950
6951EOF
6952	  fi ;;
6953	esac
6954      fi
6955      break
6956    fi
6957  done
6958  IFS="$lt_save_ifs"
6959  MAGIC_CMD="$lt_save_MAGIC_CMD"
6960  ;;
6961esac
6962fi
6963
6964MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6965if test -n "$MAGIC_CMD"; then
6966  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6967echo "${ECHO_T}$MAGIC_CMD" >&6
6968else
6969  echo "$as_me:$LINENO: result: no" >&5
6970echo "${ECHO_T}no" >&6
6971fi
6972
6973  else
6974    MAGIC_CMD=:
6975  fi
6976fi
6977
6978  fi
6979  ;;
6980esac
6981
6982enable_dlopen=yes
6983enable_win32_dll=yes
6984
6985# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6986if test "${enable_libtool_lock+set}" = set; then
6987  enableval="$enable_libtool_lock"
6988
6989fi;
6990test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6991
6992
6993# Check whether --with-pic or --without-pic was given.
6994if test "${with_pic+set}" = set; then
6995  withval="$with_pic"
6996  pic_mode="$withval"
6997else
6998  pic_mode=default
6999fi;
7000test -z "$pic_mode" && pic_mode=default
7001
7002# Use C for the default configuration in the libtool script
7003tagname=
7004lt_save_CC="$CC"
7005ac_ext=c
7006ac_cpp='$CPP $CPPFLAGS'
7007ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7008ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7009ac_compiler_gnu=$ac_cv_c_compiler_gnu
7010
7011
7012# Source file extension for C test sources.
7013ac_ext=c
7014
7015# Object file extension for compiled C test sources.
7016objext=o
7017objext=$objext
7018
7019# Code to be used in simple compile tests
7020lt_simple_compile_test_code="int some_variable = 0;"
7021
7022# Code to be used in simple link tests
7023lt_simple_link_test_code='int main(){return(0);}'
7024
7025
7026# If no C compiler was specified, use CC.
7027LTCC=${LTCC-"$CC"}
7028
7029# If no C compiler flags were specified, use CFLAGS.
7030LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7031
7032# Allow CC to be a program name with arguments.
7033compiler=$CC
7034
7035
7036# save warnings/boilerplate of simple test code
7037ac_outfile=conftest.$ac_objext
7038echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7039eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7040_lt_compiler_boilerplate=`cat conftest.err`
7041$rm conftest*
7042
7043ac_outfile=conftest.$ac_objext
7044echo "$lt_simple_link_test_code" >conftest.$ac_ext
7045eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7046_lt_linker_boilerplate=`cat conftest.err`
7047$rm conftest*
7048
7049
7050## CAVEAT EMPTOR:
7051## There is no encapsulation within the following macros, do not change
7052## the running order or otherwise move them around unless you know exactly
7053## what you are doing...
7054
7055lt_prog_compiler_no_builtin_flag=
7056
7057if test "$GCC" = yes; then
7058  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7059
7060
7061echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7062echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
7063if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7064  echo $ECHO_N "(cached) $ECHO_C" >&6
7065else
7066  lt_cv_prog_compiler_rtti_exceptions=no
7067  ac_outfile=conftest.$ac_objext
7068   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7069   lt_compiler_flag="-fno-rtti -fno-exceptions"
7070   # Insert the option either (1) after the last *FLAGS variable, or
7071   # (2) before a word containing "conftest.", or (3) at the end.
7072   # Note that $ac_compile itself does not contain backslashes and begins
7073   # with a dollar sign (not a hyphen), so the echo should work correctly.
7074   # The option is referenced via a variable to avoid confusing sed.
7075   lt_compile=`echo "$ac_compile" | $SED \
7076   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7077   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7078   -e 's:$: $lt_compiler_flag:'`
7079   (eval echo "\"\$as_me:7087: $lt_compile\"" >&5)
7080   (eval "$lt_compile" 2>conftest.err)
7081   ac_status=$?
7082   cat conftest.err >&5
7083   echo "$as_me:7091: \$? = $ac_status" >&5
7084   if (exit $ac_status) && test -s "$ac_outfile"; then
7085     # The compiler can only warn and ignore the option if not recognized
7086     # So say no if there are warnings other than the usual output.
7087     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7088     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7089     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7090       lt_cv_prog_compiler_rtti_exceptions=yes
7091     fi
7092   fi
7093   $rm conftest*
7094
7095fi
7096echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7097echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
7098
7099if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7100    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7101else
7102    :
7103fi
7104
7105fi
7106
7107lt_prog_compiler_wl=
7108lt_prog_compiler_pic=
7109lt_prog_compiler_static=
7110
7111echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7112echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
7113
7114  if test "$GCC" = yes; then
7115    lt_prog_compiler_wl='-Wl,'
7116    lt_prog_compiler_static='-static'
7117
7118    case $host_os in
7119      aix*)
7120      # All AIX code is PIC.
7121      if test "$host_cpu" = ia64; then
7122	# AIX 5 now supports IA64 processor
7123	lt_prog_compiler_static='-Bstatic'
7124      fi
7125      ;;
7126
7127    amigaos*)
7128      # FIXME: we need at least 68020 code to build shared libraries, but
7129      # adding the `-m68020' flag to GCC prevents building anything better,
7130      # like `-m68040'.
7131      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7132      ;;
7133
7134    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7135      # PIC is the default for these OSes.
7136      ;;
7137
7138    mingw* | cygwin* | pw32* | os2*)
7139      # This hack is so that the source file can tell whether it is being
7140      # built for inclusion in a dll (and should export symbols for example).
7141      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7142      # (--disable-auto-import) libraries
7143      lt_prog_compiler_pic='-DDLL_EXPORT'
7144      ;;
7145
7146    darwin* | rhapsody*)
7147      # PIC is the default on this platform
7148      # Common symbols not allowed in MH_DYLIB files
7149      lt_prog_compiler_pic='-fno-common'
7150      ;;
7151
7152    interix[3-9]*)
7153      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7154      # Instead, we relocate shared libraries at runtime.
7155      ;;
7156
7157    msdosdjgpp*)
7158      # Just because we use GCC doesn't mean we suddenly get shared libraries
7159      # on systems that don't support them.
7160      lt_prog_compiler_can_build_shared=no
7161      enable_shared=no
7162      ;;
7163
7164    sysv4*MP*)
7165      if test -d /usr/nec; then
7166	lt_prog_compiler_pic=-Kconform_pic
7167      fi
7168      ;;
7169
7170    hpux*)
7171      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7172      # not for PA HP-UX.
7173      case $host_cpu in
7174      hppa*64*|ia64*)
7175	# +Z the default
7176	;;
7177      *)
7178	lt_prog_compiler_pic='-fPIC'
7179	;;
7180      esac
7181      ;;
7182
7183    *)
7184      lt_prog_compiler_pic='-fPIC'
7185      ;;
7186    esac
7187  else
7188    # PORTME Check for flag to pass linker flags through the system compiler.
7189    case $host_os in
7190    aix*)
7191      lt_prog_compiler_wl='-Wl,'
7192      if test "$host_cpu" = ia64; then
7193	# AIX 5 now supports IA64 processor
7194	lt_prog_compiler_static='-Bstatic'
7195      else
7196	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7197      fi
7198      ;;
7199      darwin*)
7200        # PIC is the default on this platform
7201        # Common symbols not allowed in MH_DYLIB files
7202       case $cc_basename in
7203         xlc*)
7204         lt_prog_compiler_pic='-qnocommon'
7205         lt_prog_compiler_wl='-Wl,'
7206         ;;
7207       esac
7208       ;;
7209
7210    mingw* | cygwin* | pw32* | os2*)
7211      # This hack is so that the source file can tell whether it is being
7212      # built for inclusion in a dll (and should export symbols for example).
7213      lt_prog_compiler_pic='-DDLL_EXPORT'
7214      ;;
7215
7216    hpux9* | hpux10* | hpux11*)
7217      lt_prog_compiler_wl='-Wl,'
7218      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7219      # not for PA HP-UX.
7220      case $host_cpu in
7221      hppa*64*|ia64*)
7222	# +Z the default
7223	;;
7224      *)
7225	lt_prog_compiler_pic='+Z'
7226	;;
7227      esac
7228      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7229      lt_prog_compiler_static='${wl}-a ${wl}archive'
7230      ;;
7231
7232    irix5* | irix6* | nonstopux*)
7233      lt_prog_compiler_wl='-Wl,'
7234      # PIC (with -KPIC) is the default.
7235      lt_prog_compiler_static='-non_shared'
7236      ;;
7237
7238    newsos6)
7239      lt_prog_compiler_pic='-KPIC'
7240      lt_prog_compiler_static='-Bstatic'
7241      ;;
7242
7243    linux* | k*bsd*-gnu)
7244      case $cc_basename in
7245      icc* | ecc*)
7246	lt_prog_compiler_wl='-Wl,'
7247	lt_prog_compiler_pic='-KPIC'
7248	lt_prog_compiler_static='-static'
7249        ;;
7250      pgcc* | pgf77* | pgf90* | pgf95*)
7251        # Portland Group compilers (*not* the Pentium gcc compiler,
7252	# which looks to be a dead project)
7253	lt_prog_compiler_wl='-Wl,'
7254	lt_prog_compiler_pic='-fpic'
7255	lt_prog_compiler_static='-Bstatic'
7256        ;;
7257      ccc*)
7258        lt_prog_compiler_wl='-Wl,'
7259        # All Alpha code is PIC.
7260        lt_prog_compiler_static='-non_shared'
7261        ;;
7262      *)
7263        case `$CC -V 2>&1 | sed 5q` in
7264	*Sun\ C*)
7265	  # Sun C 5.9
7266	  lt_prog_compiler_pic='-KPIC'
7267	  lt_prog_compiler_static='-Bstatic'
7268	  lt_prog_compiler_wl='-Wl,'
7269	  ;;
7270	*Sun\ F*)
7271	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7272	  lt_prog_compiler_pic='-KPIC'
7273	  lt_prog_compiler_static='-Bstatic'
7274	  lt_prog_compiler_wl=''
7275	  ;;
7276	esac
7277	;;
7278      esac
7279      ;;
7280
7281    osf3* | osf4* | osf5*)
7282      lt_prog_compiler_wl='-Wl,'
7283      # All OSF/1 code is PIC.
7284      lt_prog_compiler_static='-non_shared'
7285      ;;
7286
7287    rdos*)
7288      lt_prog_compiler_static='-non_shared'
7289      ;;
7290
7291    solaris*)
7292      lt_prog_compiler_pic='-KPIC'
7293      lt_prog_compiler_static='-Bstatic'
7294      case $cc_basename in
7295      f77* | f90* | f95*)
7296	lt_prog_compiler_wl='-Qoption ld ';;
7297      *)
7298	lt_prog_compiler_wl='-Wl,';;
7299      esac
7300      ;;
7301
7302    sunos4*)
7303      lt_prog_compiler_wl='-Qoption ld '
7304      lt_prog_compiler_pic='-PIC'
7305      lt_prog_compiler_static='-Bstatic'
7306      ;;
7307
7308    sysv4 | sysv4.2uw2* | sysv4.3*)
7309      lt_prog_compiler_wl='-Wl,'
7310      lt_prog_compiler_pic='-KPIC'
7311      lt_prog_compiler_static='-Bstatic'
7312      ;;
7313
7314    sysv4*MP*)
7315      if test -d /usr/nec ;then
7316	lt_prog_compiler_pic='-Kconform_pic'
7317	lt_prog_compiler_static='-Bstatic'
7318      fi
7319      ;;
7320
7321    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7322      lt_prog_compiler_wl='-Wl,'
7323      lt_prog_compiler_pic='-KPIC'
7324      lt_prog_compiler_static='-Bstatic'
7325      ;;
7326
7327    unicos*)
7328      lt_prog_compiler_wl='-Wl,'
7329      lt_prog_compiler_can_build_shared=no
7330      ;;
7331
7332    uts4*)
7333      lt_prog_compiler_pic='-pic'
7334      lt_prog_compiler_static='-Bstatic'
7335      ;;
7336
7337    *)
7338      lt_prog_compiler_can_build_shared=no
7339      ;;
7340    esac
7341  fi
7342
7343echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7344echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7345
7346#
7347# Check to make sure the PIC flag actually works.
7348#
7349if test -n "$lt_prog_compiler_pic"; then
7350
7351echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7352echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7353if test "${lt_prog_compiler_pic_works+set}" = set; then
7354  echo $ECHO_N "(cached) $ECHO_C" >&6
7355else
7356  lt_prog_compiler_pic_works=no
7357  ac_outfile=conftest.$ac_objext
7358   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7359   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7360   # Insert the option either (1) after the last *FLAGS variable, or
7361   # (2) before a word containing "conftest.", or (3) at the end.
7362   # Note that $ac_compile itself does not contain backslashes and begins
7363   # with a dollar sign (not a hyphen), so the echo should work correctly.
7364   # The option is referenced via a variable to avoid confusing sed.
7365   lt_compile=`echo "$ac_compile" | $SED \
7366   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7367   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7368   -e 's:$: $lt_compiler_flag:'`
7369   (eval echo "\"\$as_me:7377: $lt_compile\"" >&5)
7370   (eval "$lt_compile" 2>conftest.err)
7371   ac_status=$?
7372   cat conftest.err >&5
7373   echo "$as_me:7381: \$? = $ac_status" >&5
7374   if (exit $ac_status) && test -s "$ac_outfile"; then
7375     # The compiler can only warn and ignore the option if not recognized
7376     # So say no if there are warnings other than the usual output.
7377     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7378     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7379     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7380       lt_prog_compiler_pic_works=yes
7381     fi
7382   fi
7383   $rm conftest*
7384
7385fi
7386echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7387echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7388
7389if test x"$lt_prog_compiler_pic_works" = xyes; then
7390    case $lt_prog_compiler_pic in
7391     "" | " "*) ;;
7392     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7393     esac
7394else
7395    lt_prog_compiler_pic=
7396     lt_prog_compiler_can_build_shared=no
7397fi
7398
7399fi
7400case $host_os in
7401  # For platforms which do not support PIC, -DPIC is meaningless:
7402  *djgpp*)
7403    lt_prog_compiler_pic=
7404    ;;
7405  *)
7406    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7407    ;;
7408esac
7409
7410#
7411# Check to make sure the static flag actually works.
7412#
7413wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7414echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7415echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7416if test "${lt_prog_compiler_static_works+set}" = set; then
7417  echo $ECHO_N "(cached) $ECHO_C" >&6
7418else
7419  lt_prog_compiler_static_works=no
7420   save_LDFLAGS="$LDFLAGS"
7421   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7422   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7423   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7424     # The linker can only warn and ignore the option if not recognized
7425     # So say no if there are warnings
7426     if test -s conftest.err; then
7427       # Append any errors to the config.log.
7428       cat conftest.err 1>&5
7429       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7430       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7431       if diff conftest.exp conftest.er2 >/dev/null; then
7432         lt_prog_compiler_static_works=yes
7433       fi
7434     else
7435       lt_prog_compiler_static_works=yes
7436     fi
7437   fi
7438   $rm conftest*
7439   LDFLAGS="$save_LDFLAGS"
7440
7441fi
7442echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7443echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7444
7445if test x"$lt_prog_compiler_static_works" = xyes; then
7446    :
7447else
7448    lt_prog_compiler_static=
7449fi
7450
7451
7452echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7453echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7454if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7455  echo $ECHO_N "(cached) $ECHO_C" >&6
7456else
7457  lt_cv_prog_compiler_c_o=no
7458   $rm -r conftest 2>/dev/null
7459   mkdir conftest
7460   cd conftest
7461   mkdir out
7462   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7463
7464   lt_compiler_flag="-o out/conftest2.$ac_objext"
7465   # Insert the option either (1) after the last *FLAGS variable, or
7466   # (2) before a word containing "conftest.", or (3) at the end.
7467   # Note that $ac_compile itself does not contain backslashes and begins
7468   # with a dollar sign (not a hyphen), so the echo should work correctly.
7469   lt_compile=`echo "$ac_compile" | $SED \
7470   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7471   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7472   -e 's:$: $lt_compiler_flag:'`
7473   (eval echo "\"\$as_me:7481: $lt_compile\"" >&5)
7474   (eval "$lt_compile" 2>out/conftest.err)
7475   ac_status=$?
7476   cat out/conftest.err >&5
7477   echo "$as_me:7485: \$? = $ac_status" >&5
7478   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7479   then
7480     # The compiler can only warn and ignore the option if not recognized
7481     # So say no if there are warnings
7482     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7483     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7484     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7485       lt_cv_prog_compiler_c_o=yes
7486     fi
7487   fi
7488   chmod u+w . 2>&5
7489   $rm conftest*
7490   # SGI C++ compiler will create directory out/ii_files/ for
7491   # template instantiation
7492   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7493   $rm out/* && rmdir out
7494   cd ..
7495   rmdir conftest
7496   $rm conftest*
7497
7498fi
7499echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7500echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7501
7502
7503hard_links="nottested"
7504if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7505  # do not overwrite the value of need_locks provided by the user
7506  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7507echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7508  hard_links=yes
7509  $rm conftest*
7510  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7511  touch conftest.a
7512  ln conftest.a conftest.b 2>&5 || hard_links=no
7513  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7514  echo "$as_me:$LINENO: result: $hard_links" >&5
7515echo "${ECHO_T}$hard_links" >&6
7516  if test "$hard_links" = no; then
7517    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7518echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7519    need_locks=warn
7520  fi
7521else
7522  need_locks=no
7523fi
7524
7525echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7526echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7527
7528  runpath_var=
7529  allow_undefined_flag=
7530  enable_shared_with_static_runtimes=no
7531  archive_cmds=
7532  archive_expsym_cmds=
7533  old_archive_From_new_cmds=
7534  old_archive_from_expsyms_cmds=
7535  export_dynamic_flag_spec=
7536  whole_archive_flag_spec=
7537  thread_safe_flag_spec=
7538  hardcode_libdir_flag_spec=
7539  hardcode_libdir_flag_spec_ld=
7540  hardcode_libdir_separator=
7541  hardcode_direct=no
7542  hardcode_minus_L=no
7543  hardcode_shlibpath_var=unsupported
7544  link_all_deplibs=unknown
7545  hardcode_automatic=no
7546  module_cmds=
7547  module_expsym_cmds=
7548  always_export_symbols=no
7549  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7550  # include_expsyms should be a list of space-separated symbols to be *always*
7551  # included in the symbol list
7552  include_expsyms=
7553  # exclude_expsyms can be an extended regexp of symbols to exclude
7554  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7555  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7556  # as well as any symbol that contains `d'.
7557  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7558  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7559  # platforms (ab)use it in PIC code, but their linkers get confused if
7560  # the symbol is explicitly referenced.  Since portable code cannot
7561  # rely on this symbol name, it's probably fine to never include it in
7562  # preloaded symbol tables.
7563  extract_expsyms_cmds=
7564  # Just being paranoid about ensuring that cc_basename is set.
7565  for cc_temp in $compiler""; do
7566  case $cc_temp in
7567    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7568    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7569    \-*) ;;
7570    *) break;;
7571  esac
7572done
7573cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7574
7575  case $host_os in
7576  cygwin* | mingw* | pw32*)
7577    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7578    # When not using gcc, we currently assume that we are using
7579    # Microsoft Visual C++.
7580    if test "$GCC" != yes; then
7581      with_gnu_ld=no
7582    fi
7583    ;;
7584  interix*)
7585    # we just hope/assume this is gcc and not c89 (= MSVC++)
7586    with_gnu_ld=yes
7587    ;;
7588  openbsd*)
7589    with_gnu_ld=no
7590    ;;
7591  esac
7592
7593  ld_shlibs=yes
7594  if test "$with_gnu_ld" = yes; then
7595    # If archive_cmds runs LD, not CC, wlarc should be empty
7596    wlarc='${wl}'
7597
7598    # Set some defaults for GNU ld with shared library support. These
7599    # are reset later if shared libraries are not supported. Putting them
7600    # here allows them to be overridden if necessary.
7601    runpath_var=LD_RUN_PATH
7602    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7603    export_dynamic_flag_spec='${wl}--export-dynamic'
7604    # ancient GNU ld didn't support --whole-archive et. al.
7605    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7606	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7607      else
7608  	whole_archive_flag_spec=
7609    fi
7610    supports_anon_versioning=no
7611    case `$LD -v 2>/dev/null` in
7612      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7613      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7614      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7615      *\ 2.11.*) ;; # other 2.11 versions
7616      *) supports_anon_versioning=yes ;;
7617    esac
7618
7619    # See if GNU ld supports shared libraries.
7620    case $host_os in
7621    aix3* | aix4* | aix5*)
7622      # On AIX/PPC, the GNU linker is very broken
7623      if test "$host_cpu" != ia64; then
7624	ld_shlibs=no
7625	cat <<EOF 1>&2
7626
7627*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7628*** to be unable to reliably create shared libraries on AIX.
7629*** Therefore, libtool is disabling shared libraries support.  If you
7630*** really care for shared libraries, you may want to modify your PATH
7631*** so that a non-GNU linker is found, and then restart.
7632
7633EOF
7634      fi
7635      ;;
7636
7637    amigaos*)
7638      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)'
7639      hardcode_libdir_flag_spec='-L$libdir'
7640      hardcode_minus_L=yes
7641
7642      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7643      # that the semantics of dynamic libraries on AmigaOS, at least up
7644      # to version 4, is to share data among multiple programs linked
7645      # with the same dynamic library.  Since this doesn't match the
7646      # behavior of shared libraries on other platforms, we can't use
7647      # them.
7648      ld_shlibs=no
7649      ;;
7650
7651    beos*)
7652      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7653	allow_undefined_flag=unsupported
7654	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7655	# support --undefined.  This deserves some investigation.  FIXME
7656	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7657      else
7658	ld_shlibs=no
7659      fi
7660      ;;
7661
7662    cygwin* | mingw* | pw32*)
7663      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7664      # as there is no search path for DLLs.
7665      hardcode_libdir_flag_spec='-L$libdir'
7666      allow_undefined_flag=unsupported
7667      always_export_symbols=no
7668      enable_shared_with_static_runtimes=yes
7669      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7670
7671      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7672        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7673	# If the export-symbols file already is a .def file (1st line
7674	# is EXPORTS), use it as is; otherwise, prepend...
7675	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7676	  cp $export_symbols $output_objdir/$soname.def;
7677	else
7678	  echo EXPORTS > $output_objdir/$soname.def;
7679	  cat $export_symbols >> $output_objdir/$soname.def;
7680	fi~
7681	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7682      else
7683	ld_shlibs=no
7684      fi
7685      ;;
7686
7687    interix[3-9]*)
7688      hardcode_direct=no
7689      hardcode_shlibpath_var=no
7690      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7691      export_dynamic_flag_spec='${wl}-E'
7692      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7693      # Instead, shared libraries are loaded at an image base (0x10000000 by
7694      # default) and relocated if they conflict, which is a slow very memory
7695      # consuming and fragmenting process.  To avoid this, we pick a random,
7696      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7697      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7698      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7699      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'
7700      ;;
7701
7702    gnu* | linux* | k*bsd*-gnu)
7703      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7704	tmp_addflag=
7705	case $cc_basename,$host_cpu in
7706	pgcc*)				# Portland Group C compiler
7707	  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'
7708	  tmp_addflag=' $pic_flag'
7709	  ;;
7710	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
7711	  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'
7712	  tmp_addflag=' $pic_flag -Mnomain' ;;
7713	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
7714	  tmp_addflag=' -i_dynamic' ;;
7715	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
7716	  tmp_addflag=' -i_dynamic -nofor_main' ;;
7717	ifc* | ifort*)			# Intel Fortran compiler
7718	  tmp_addflag=' -nofor_main' ;;
7719	esac
7720	case `$CC -V 2>&1 | sed 5q` in
7721	*Sun\ C*)			# Sun C 5.9
7722	  whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7723	  tmp_sharedflag='-G' ;;
7724	*Sun\ F*)			# Sun Fortran 8.3
7725	  tmp_sharedflag='-G' ;;
7726	*)
7727	  tmp_sharedflag='-shared' ;;
7728	esac
7729	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7730
7731	if test $supports_anon_versioning = yes; then
7732	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7733  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7734  $echo "local: *; };" >> $output_objdir/$libname.ver~
7735	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7736	fi
7737      else
7738	ld_shlibs=no
7739      fi
7740      ;;
7741
7742    netbsd*)
7743      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7744	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7745	wlarc=
7746      else
7747	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7748	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7749      fi
7750      ;;
7751
7752    solaris*)
7753      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7754	ld_shlibs=no
7755	cat <<EOF 1>&2
7756
7757*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7758*** create shared libraries on Solaris systems.  Therefore, libtool
7759*** is disabling shared libraries support.  We urge you to upgrade GNU
7760*** binutils to release 2.9.1 or newer.  Another option is to modify
7761*** your PATH or compiler configuration so that the native linker is
7762*** used, and then restart.
7763
7764EOF
7765      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7766	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7767	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7768      else
7769	ld_shlibs=no
7770      fi
7771      ;;
7772
7773    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7774      case `$LD -v 2>&1` in
7775        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7776	ld_shlibs=no
7777	cat <<_LT_EOF 1>&2
7778
7779*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7780*** reliably create shared libraries on SCO systems.  Therefore, libtool
7781*** is disabling shared libraries support.  We urge you to upgrade GNU
7782*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7783*** your PATH or compiler configuration so that the native linker is
7784*** used, and then restart.
7785
7786_LT_EOF
7787	;;
7788	*)
7789	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7790	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7791	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7792	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7793	  else
7794	    ld_shlibs=no
7795	  fi
7796	;;
7797      esac
7798      ;;
7799
7800    sunos4*)
7801      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7802      wlarc=
7803      hardcode_direct=yes
7804      hardcode_shlibpath_var=no
7805      ;;
7806
7807    *)
7808      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7809	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7810	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7811      else
7812	ld_shlibs=no
7813      fi
7814      ;;
7815    esac
7816
7817    if test "$ld_shlibs" = no; then
7818      runpath_var=
7819      hardcode_libdir_flag_spec=
7820      export_dynamic_flag_spec=
7821      whole_archive_flag_spec=
7822    fi
7823  else
7824    # PORTME fill in a description of your system's linker (not GNU ld)
7825    case $host_os in
7826    aix3*)
7827      allow_undefined_flag=unsupported
7828      always_export_symbols=yes
7829      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'
7830      # Note: this linker hardcodes the directories in LIBPATH if there
7831      # are no directories specified by -L.
7832      hardcode_minus_L=yes
7833      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7834	# Neither direct hardcoding nor static linking is supported with a
7835	# broken collect2.
7836	hardcode_direct=unsupported
7837      fi
7838      ;;
7839
7840    aix4* | aix5*)
7841      if test "$host_cpu" = ia64; then
7842	# On IA64, the linker does run time linking by default, so we don't
7843	# have to do anything special.
7844	aix_use_runtimelinking=no
7845	exp_sym_flag='-Bexport'
7846	no_entry_flag=""
7847      else
7848	# If we're using GNU nm, then we don't want the "-C" option.
7849	# -C means demangle to AIX nm, but means don't demangle with GNU nm
7850	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7851	  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'
7852	else
7853	  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'
7854	fi
7855	aix_use_runtimelinking=no
7856
7857	# Test if we are trying to use run time linking or normal
7858	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
7859	# need to do runtime linking.
7860	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7861	  for ld_flag in $LDFLAGS; do
7862  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7863  	    aix_use_runtimelinking=yes
7864  	    break
7865  	  fi
7866	  done
7867	  ;;
7868	esac
7869
7870	exp_sym_flag='-bexport'
7871	no_entry_flag='-bnoentry'
7872      fi
7873
7874      # When large executables or shared objects are built, AIX ld can
7875      # have problems creating the table of contents.  If linking a library
7876      # or program results in "error TOC overflow" add -mminimal-toc to
7877      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7878      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7879
7880      archive_cmds=''
7881      hardcode_direct=yes
7882      hardcode_libdir_separator=':'
7883      link_all_deplibs=yes
7884
7885      if test "$GCC" = yes; then
7886	case $host_os in aix4.[012]|aix4.[012].*)
7887	# We only want to do this on AIX 4.2 and lower, the check
7888	# below for broken collect2 doesn't work under 4.3+
7889	  collect2name=`${CC} -print-prog-name=collect2`
7890	  if test -f "$collect2name" && \
7891  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
7892	  then
7893  	  # We have reworked collect2
7894  	  :
7895	  else
7896  	  # We have old collect2
7897  	  hardcode_direct=unsupported
7898  	  # It fails to find uninstalled libraries when the uninstalled
7899  	  # path is not listed in the libpath.  Setting hardcode_minus_L
7900  	  # to unsupported forces relinking
7901  	  hardcode_minus_L=yes
7902  	  hardcode_libdir_flag_spec='-L$libdir'
7903  	  hardcode_libdir_separator=
7904	  fi
7905	  ;;
7906	esac
7907	shared_flag='-shared'
7908	if test "$aix_use_runtimelinking" = yes; then
7909	  shared_flag="$shared_flag "'${wl}-G'
7910	fi
7911      else
7912	# not using gcc
7913	if test "$host_cpu" = ia64; then
7914  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7915  	# chokes on -Wl,-G. The following line is correct:
7916	  shared_flag='-G'
7917	else
7918	  if test "$aix_use_runtimelinking" = yes; then
7919	    shared_flag='${wl}-G'
7920	  else
7921	    shared_flag='${wl}-bM:SRE'
7922	  fi
7923	fi
7924      fi
7925
7926      # It seems that -bexpall does not export symbols beginning with
7927      # underscore (_), so it is better to generate a list of symbols to export.
7928      always_export_symbols=yes
7929      if test "$aix_use_runtimelinking" = yes; then
7930	# Warning - without using the other runtime loading flags (-brtl),
7931	# -berok will link without error, but may produce a broken library.
7932	allow_undefined_flag='-berok'
7933       # Determine the default libpath from the value encoded in an empty executable.
7934       cat >conftest.$ac_ext <<_ACEOF
7935/* confdefs.h.  */
7936_ACEOF
7937cat confdefs.h >>conftest.$ac_ext
7938cat >>conftest.$ac_ext <<_ACEOF
7939/* end confdefs.h.  */
7940
7941int
7942main ()
7943{
7944
7945  ;
7946  return 0;
7947}
7948_ACEOF
7949rm -f conftest.$ac_objext conftest$ac_exeext
7950if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7951  (eval $ac_link) 2>conftest.er1
7952  ac_status=$?
7953  grep -v '^ *+' conftest.er1 >conftest.err
7954  rm -f conftest.er1
7955  cat conftest.err >&5
7956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7957  (exit $ac_status); } &&
7958	 { ac_try='test -z "$ac_c_werror_flag"
7959			 || test ! -s conftest.err'
7960  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7961  (eval $ac_try) 2>&5
7962  ac_status=$?
7963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7964  (exit $ac_status); }; } &&
7965	 { ac_try='test -s conftest$ac_exeext'
7966  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7967  (eval $ac_try) 2>&5
7968  ac_status=$?
7969  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7970  (exit $ac_status); }; }; then
7971
7972lt_aix_libpath_sed='
7973    /Import File Strings/,/^$/ {
7974	/^0/ {
7975	    s/^0  *\(.*\)$/\1/
7976	    p
7977	}
7978    }'
7979aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7980# Check for a 64-bit object if we didn't find anything.
7981if test -z "$aix_libpath"; then
7982  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7983fi
7984else
7985  echo "$as_me: failed program was:" >&5
7986sed 's/^/| /' conftest.$ac_ext >&5
7987
7988fi
7989rm -f conftest.err conftest.$ac_objext \
7990      conftest$ac_exeext conftest.$ac_ext
7991if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7992
7993       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7994	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"
7995       else
7996	if test "$host_cpu" = ia64; then
7997	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7998	  allow_undefined_flag="-z nodefs"
7999	  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"
8000	else
8001	 # Determine the default libpath from the value encoded in an empty executable.
8002	 cat >conftest.$ac_ext <<_ACEOF
8003/* confdefs.h.  */
8004_ACEOF
8005cat confdefs.h >>conftest.$ac_ext
8006cat >>conftest.$ac_ext <<_ACEOF
8007/* end confdefs.h.  */
8008
8009int
8010main ()
8011{
8012
8013  ;
8014  return 0;
8015}
8016_ACEOF
8017rm -f conftest.$ac_objext conftest$ac_exeext
8018if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8019  (eval $ac_link) 2>conftest.er1
8020  ac_status=$?
8021  grep -v '^ *+' conftest.er1 >conftest.err
8022  rm -f conftest.er1
8023  cat conftest.err >&5
8024  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025  (exit $ac_status); } &&
8026	 { ac_try='test -z "$ac_c_werror_flag"
8027			 || test ! -s conftest.err'
8028  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8029  (eval $ac_try) 2>&5
8030  ac_status=$?
8031  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8032  (exit $ac_status); }; } &&
8033	 { ac_try='test -s conftest$ac_exeext'
8034  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8035  (eval $ac_try) 2>&5
8036  ac_status=$?
8037  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8038  (exit $ac_status); }; }; then
8039
8040lt_aix_libpath_sed='
8041    /Import File Strings/,/^$/ {
8042	/^0/ {
8043	    s/^0  *\(.*\)$/\1/
8044	    p
8045	}
8046    }'
8047aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8048# Check for a 64-bit object if we didn't find anything.
8049if test -z "$aix_libpath"; then
8050  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8051fi
8052else
8053  echo "$as_me: failed program was:" >&5
8054sed 's/^/| /' conftest.$ac_ext >&5
8055
8056fi
8057rm -f conftest.err conftest.$ac_objext \
8058      conftest$ac_exeext conftest.$ac_ext
8059if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8060
8061	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8062	  # Warning - without using the other run time loading flags,
8063	  # -berok will link without error, but may produce a broken library.
8064	  no_undefined_flag=' ${wl}-bernotok'
8065	  allow_undefined_flag=' ${wl}-berok'
8066	  # Exported symbols can be pulled into shared objects from archives
8067	  whole_archive_flag_spec='$convenience'
8068	  archive_cmds_need_lc=yes
8069	  # This is similar to how AIX traditionally builds its shared libraries.
8070	  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'
8071	fi
8072      fi
8073      ;;
8074
8075    amigaos*)
8076      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)'
8077      hardcode_libdir_flag_spec='-L$libdir'
8078      hardcode_minus_L=yes
8079      # see comment about different semantics on the GNU ld section
8080      ld_shlibs=no
8081      ;;
8082
8083    bsdi[45]*)
8084      export_dynamic_flag_spec=-rdynamic
8085      ;;
8086
8087    cygwin* | mingw* | pw32*)
8088      # When not using gcc, we currently assume that we are using
8089      # Microsoft Visual C++.
8090      # hardcode_libdir_flag_spec is actually meaningless, as there is
8091      # no search path for DLLs.
8092      hardcode_libdir_flag_spec=' '
8093      allow_undefined_flag=unsupported
8094      # Tell ltmain to make .lib files, not .a files.
8095      libext=lib
8096      # Tell ltmain to make .dll files, not .so files.
8097      shrext_cmds=".dll"
8098      # FIXME: Setting linknames here is a bad hack.
8099      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8100      # The linker will automatically build a .lib file if we build a DLL.
8101      old_archive_From_new_cmds='true'
8102      # FIXME: Should let the user specify the lib program.
8103      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8104      fix_srcfile_path='`cygpath -w "$srcfile"`'
8105      enable_shared_with_static_runtimes=yes
8106      ;;
8107
8108    darwin* | rhapsody*)
8109      case $host_os in
8110        rhapsody* | darwin1.[012])
8111         allow_undefined_flag='${wl}-undefined ${wl}suppress'
8112         ;;
8113       *) # Darwin 1.3 on
8114         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8115           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8116         else
8117           case ${MACOSX_DEPLOYMENT_TARGET} in
8118             10.[012])
8119               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8120               ;;
8121             10.*)
8122               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8123               ;;
8124           esac
8125         fi
8126         ;;
8127      esac
8128      archive_cmds_need_lc=no
8129      hardcode_direct=no
8130      hardcode_automatic=yes
8131      hardcode_shlibpath_var=unsupported
8132      whole_archive_flag_spec=''
8133      link_all_deplibs=yes
8134    if test "$GCC" = yes ; then
8135    	output_verbose_link_cmd='echo'
8136        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8137      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8138      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8139      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}'
8140      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}'
8141    else
8142      case $cc_basename in
8143        xlc*)
8144         output_verbose_link_cmd='echo'
8145         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8146         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8147          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8148         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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8149          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}'
8150          ;;
8151       *)
8152         ld_shlibs=no
8153          ;;
8154      esac
8155    fi
8156      ;;
8157
8158    dgux*)
8159      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8160      hardcode_libdir_flag_spec='-L$libdir'
8161      hardcode_shlibpath_var=no
8162      ;;
8163
8164    freebsd1*)
8165      ld_shlibs=no
8166      ;;
8167
8168    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8169    # support.  Future versions do this automatically, but an explicit c++rt0.o
8170    # does not break anything, and helps significantly (at the cost of a little
8171    # extra space).
8172    freebsd2.2*)
8173      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8174      hardcode_libdir_flag_spec='-R$libdir'
8175      hardcode_direct=yes
8176      hardcode_shlibpath_var=no
8177      ;;
8178
8179    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8180    freebsd2*)
8181      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8182      hardcode_direct=yes
8183      hardcode_minus_L=yes
8184      hardcode_shlibpath_var=no
8185      ;;
8186
8187    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8188    freebsd* | dragonfly*)
8189      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8190      hardcode_libdir_flag_spec='-R$libdir'
8191      hardcode_direct=yes
8192      hardcode_shlibpath_var=no
8193      ;;
8194
8195    hpux9*)
8196      if test "$GCC" = yes; then
8197	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'
8198      else
8199	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'
8200      fi
8201      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8202      hardcode_libdir_separator=:
8203      hardcode_direct=yes
8204
8205      # hardcode_minus_L: Not really in the search PATH,
8206      # but as the default location of the library.
8207      hardcode_minus_L=yes
8208      export_dynamic_flag_spec='${wl}-E'
8209      ;;
8210
8211    hpux10*)
8212      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8213	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8214      else
8215	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8216      fi
8217      if test "$with_gnu_ld" = no; then
8218	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8219	hardcode_libdir_separator=:
8220
8221	hardcode_direct=yes
8222	export_dynamic_flag_spec='${wl}-E'
8223
8224	# hardcode_minus_L: Not really in the search PATH,
8225	# but as the default location of the library.
8226	hardcode_minus_L=yes
8227      fi
8228      ;;
8229
8230    hpux11*)
8231      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8232	case $host_cpu in
8233	hppa*64*)
8234	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8235	  ;;
8236	ia64*)
8237	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8238	  ;;
8239	*)
8240	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8241	  ;;
8242	esac
8243      else
8244	case $host_cpu in
8245	hppa*64*)
8246	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8247	  ;;
8248	ia64*)
8249	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8250	  ;;
8251	*)
8252	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8253	  ;;
8254	esac
8255      fi
8256      if test "$with_gnu_ld" = no; then
8257	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8258	hardcode_libdir_separator=:
8259
8260	case $host_cpu in
8261	hppa*64*|ia64*)
8262	  hardcode_libdir_flag_spec_ld='+b $libdir'
8263	  hardcode_direct=no
8264	  hardcode_shlibpath_var=no
8265	  ;;
8266	*)
8267	  hardcode_direct=yes
8268	  export_dynamic_flag_spec='${wl}-E'
8269
8270	  # hardcode_minus_L: Not really in the search PATH,
8271	  # but as the default location of the library.
8272	  hardcode_minus_L=yes
8273	  ;;
8274	esac
8275      fi
8276      ;;
8277
8278    irix5* | irix6* | nonstopux*)
8279      if test "$GCC" = yes; then
8280	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'
8281      else
8282	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'
8283	hardcode_libdir_flag_spec_ld='-rpath $libdir'
8284      fi
8285      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8286      hardcode_libdir_separator=:
8287      link_all_deplibs=yes
8288      ;;
8289
8290    netbsd*)
8291      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8292	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8293      else
8294	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8295      fi
8296      hardcode_libdir_flag_spec='-R$libdir'
8297      hardcode_direct=yes
8298      hardcode_shlibpath_var=no
8299      ;;
8300
8301    newsos6)
8302      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8303      hardcode_direct=yes
8304      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8305      hardcode_libdir_separator=:
8306      hardcode_shlibpath_var=no
8307      ;;
8308
8309    openbsd*)
8310      if test -f /usr/libexec/ld.so; then
8311	hardcode_direct=yes
8312	hardcode_shlibpath_var=no
8313	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8314	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8315	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8316	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8317	  export_dynamic_flag_spec='${wl}-E'
8318	else
8319	  case $host_os in
8320	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8321	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8322	     hardcode_libdir_flag_spec='-R$libdir'
8323	     ;;
8324	   *)
8325	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8326	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8327	     ;;
8328	  esac
8329        fi
8330      else
8331	ld_shlibs=no
8332      fi
8333      ;;
8334
8335    os2*)
8336      hardcode_libdir_flag_spec='-L$libdir'
8337      hardcode_minus_L=yes
8338      allow_undefined_flag=unsupported
8339      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'
8340      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8341      ;;
8342
8343    osf3*)
8344      if test "$GCC" = yes; then
8345	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8346	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'
8347      else
8348	allow_undefined_flag=' -expect_unresolved \*'
8349	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'
8350      fi
8351      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8352      hardcode_libdir_separator=:
8353      ;;
8354
8355    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8356      if test "$GCC" = yes; then
8357	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8358	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'
8359	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8360      else
8361	allow_undefined_flag=' -expect_unresolved \*'
8362	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'
8363	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8364	$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'
8365
8366	# Both c and cxx compiler support -rpath directly
8367	hardcode_libdir_flag_spec='-rpath $libdir'
8368      fi
8369      hardcode_libdir_separator=:
8370      ;;
8371
8372    solaris*)
8373      no_undefined_flag=' -z text'
8374      if test "$GCC" = yes; then
8375	wlarc='${wl}'
8376	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8377	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8378	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8379      else
8380	wlarc=''
8381	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8382	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8383  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8384      fi
8385      hardcode_libdir_flag_spec='-R$libdir'
8386      hardcode_shlibpath_var=no
8387      case $host_os in
8388      solaris2.[0-5] | solaris2.[0-5].*) ;;
8389      *)
8390	# The compiler driver will combine and reorder linker options,
8391	# but understands `-z linker_flag'.  GCC discards it without `$wl',
8392	# but is careful enough not to reorder.
8393 	# Supported since Solaris 2.6 (maybe 2.5.1?)
8394	if test "$GCC" = yes; then
8395	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8396	else
8397	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8398	fi
8399	;;
8400      esac
8401      link_all_deplibs=yes
8402      ;;
8403
8404    sunos4*)
8405      if test "x$host_vendor" = xsequent; then
8406	# Use $CC to link under sequent, because it throws in some extra .o
8407	# files that make .init and .fini sections work.
8408	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8409      else
8410	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8411      fi
8412      hardcode_libdir_flag_spec='-L$libdir'
8413      hardcode_direct=yes
8414      hardcode_minus_L=yes
8415      hardcode_shlibpath_var=no
8416      ;;
8417
8418    sysv4)
8419      case $host_vendor in
8420	sni)
8421	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8422	  hardcode_direct=yes # is this really true???
8423	;;
8424	siemens)
8425	  ## LD is ld it makes a PLAMLIB
8426	  ## CC just makes a GrossModule.
8427	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8428	  reload_cmds='$CC -r -o $output$reload_objs'
8429	  hardcode_direct=no
8430        ;;
8431	motorola)
8432	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8433	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8434	;;
8435      esac
8436      runpath_var='LD_RUN_PATH'
8437      hardcode_shlibpath_var=no
8438      ;;
8439
8440    sysv4.3*)
8441      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8442      hardcode_shlibpath_var=no
8443      export_dynamic_flag_spec='-Bexport'
8444      ;;
8445
8446    sysv4*MP*)
8447      if test -d /usr/nec; then
8448	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8449	hardcode_shlibpath_var=no
8450	runpath_var=LD_RUN_PATH
8451	hardcode_runpath_var=yes
8452	ld_shlibs=yes
8453      fi
8454      ;;
8455
8456    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8457      no_undefined_flag='${wl}-z,text'
8458      archive_cmds_need_lc=no
8459      hardcode_shlibpath_var=no
8460      runpath_var='LD_RUN_PATH'
8461
8462      if test "$GCC" = yes; then
8463	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8464	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8465      else
8466	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8467	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8468      fi
8469      ;;
8470
8471    sysv5* | sco3.2v5* | sco5v6*)
8472      # Note: We can NOT use -z defs as we might desire, because we do not
8473      # link with -lc, and that would cause any symbols used from libc to
8474      # always be unresolved, which means just about no library would
8475      # ever link correctly.  If we're not using GNU ld we use -z text
8476      # though, which does catch some bad symbols but isn't as heavy-handed
8477      # as -z defs.
8478      no_undefined_flag='${wl}-z,text'
8479      allow_undefined_flag='${wl}-z,nodefs'
8480      archive_cmds_need_lc=no
8481      hardcode_shlibpath_var=no
8482      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8483      hardcode_libdir_separator=':'
8484      link_all_deplibs=yes
8485      export_dynamic_flag_spec='${wl}-Bexport'
8486      runpath_var='LD_RUN_PATH'
8487
8488      if test "$GCC" = yes; then
8489	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8490	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8491      else
8492	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8493	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8494      fi
8495      ;;
8496
8497    uts4*)
8498      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8499      hardcode_libdir_flag_spec='-L$libdir'
8500      hardcode_shlibpath_var=no
8501      ;;
8502
8503    *)
8504      ld_shlibs=no
8505      ;;
8506    esac
8507  fi
8508
8509echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8510echo "${ECHO_T}$ld_shlibs" >&6
8511test "$ld_shlibs" = no && can_build_shared=no
8512
8513#
8514# Do we need to explicitly link libc?
8515#
8516case "x$archive_cmds_need_lc" in
8517x|xyes)
8518  # Assume -lc should be added
8519  archive_cmds_need_lc=yes
8520
8521  if test "$enable_shared" = yes && test "$GCC" = yes; then
8522    case $archive_cmds in
8523    *'~'*)
8524      # FIXME: we may have to deal with multi-command sequences.
8525      ;;
8526    '$CC '*)
8527      # Test whether the compiler implicitly links with -lc since on some
8528      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8529      # to ld, don't add -lc before -lgcc.
8530      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8531echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8532      $rm conftest*
8533      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8534
8535      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8536  (eval $ac_compile) 2>&5
8537  ac_status=$?
8538  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8539  (exit $ac_status); } 2>conftest.err; then
8540        soname=conftest
8541        lib=conftest
8542        libobjs=conftest.$ac_objext
8543        deplibs=
8544        wl=$lt_prog_compiler_wl
8545	pic_flag=$lt_prog_compiler_pic
8546        compiler_flags=-v
8547        linker_flags=-v
8548        verstring=
8549        output_objdir=.
8550        libname=conftest
8551        lt_save_allow_undefined_flag=$allow_undefined_flag
8552        allow_undefined_flag=
8553        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8554  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8555  ac_status=$?
8556  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8557  (exit $ac_status); }
8558        then
8559	  archive_cmds_need_lc=no
8560        else
8561	  archive_cmds_need_lc=yes
8562        fi
8563        allow_undefined_flag=$lt_save_allow_undefined_flag
8564      else
8565        cat conftest.err 1>&5
8566      fi
8567      $rm conftest*
8568      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8569echo "${ECHO_T}$archive_cmds_need_lc" >&6
8570      ;;
8571    esac
8572  fi
8573  ;;
8574esac
8575
8576echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8577echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8578library_names_spec=
8579libname_spec='lib$name'
8580soname_spec=
8581shrext_cmds=".so"
8582postinstall_cmds=
8583postuninstall_cmds=
8584finish_cmds=
8585finish_eval=
8586shlibpath_var=
8587shlibpath_overrides_runpath=unknown
8588version_type=none
8589dynamic_linker="$host_os ld.so"
8590sys_lib_dlsearch_path_spec="/lib /usr/lib"
8591
8592if test "$GCC" = yes; then
8593  case $host_os in
8594    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8595    *) lt_awk_arg="/^libraries:/" ;;
8596  esac
8597  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8598  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8599    # if the path contains ";" then we assume it to be the separator
8600    # otherwise default to the standard path separator (i.e. ":") - it is
8601    # assumed that no part of a normal pathname contains ";" but that should
8602    # okay in the real world where ";" in dirpaths is itself problematic.
8603    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8604  else
8605    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8606  fi
8607  # Ok, now we have the path, separated by spaces, we can step through it
8608  # and add multilib dir if necessary.
8609  lt_tmp_lt_search_path_spec=
8610  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8611  for lt_sys_path in $lt_search_path_spec; do
8612    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8613      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8614    else
8615      test -d "$lt_sys_path" && \
8616	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8617    fi
8618  done
8619  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8620BEGIN {RS=" "; FS="/|\n";} {
8621  lt_foo="";
8622  lt_count=0;
8623  for (lt_i = NF; lt_i > 0; lt_i--) {
8624    if ($lt_i != "" && $lt_i != ".") {
8625      if ($lt_i == "..") {
8626        lt_count++;
8627      } else {
8628        if (lt_count == 0) {
8629          lt_foo="/" $lt_i lt_foo;
8630        } else {
8631          lt_count--;
8632        }
8633      }
8634    }
8635  }
8636  if (lt_foo != "") { lt_freq[lt_foo]++; }
8637  if (lt_freq[lt_foo] == 1) { print lt_foo; }
8638}'`
8639  sys_lib_search_path_spec=`echo $lt_search_path_spec`
8640else
8641  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8642fi
8643need_lib_prefix=unknown
8644hardcode_into_libs=no
8645
8646# when you set need_version to no, make sure it does not cause -set_version
8647# flags to be left without arguments
8648need_version=unknown
8649
8650case $host_os in
8651aix3*)
8652  version_type=linux
8653  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8654  shlibpath_var=LIBPATH
8655
8656  # AIX 3 has no versioning support, so we append a major version to the name.
8657  soname_spec='${libname}${release}${shared_ext}$major'
8658  ;;
8659
8660aix4* | aix5*)
8661  version_type=linux
8662  need_lib_prefix=no
8663  need_version=no
8664  hardcode_into_libs=yes
8665  if test "$host_cpu" = ia64; then
8666    # AIX 5 supports IA64
8667    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8668    shlibpath_var=LD_LIBRARY_PATH
8669  else
8670    # With GCC up to 2.95.x, collect2 would create an import file
8671    # for dependence libraries.  The import file would start with
8672    # the line `#! .'.  This would cause the generated library to
8673    # depend on `.', always an invalid library.  This was fixed in
8674    # development snapshots of GCC prior to 3.0.
8675    case $host_os in
8676      aix4 | aix4.[01] | aix4.[01].*)
8677      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8678	   echo ' yes '
8679	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8680	:
8681      else
8682	can_build_shared=no
8683      fi
8684      ;;
8685    esac
8686    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8687    # soname into executable. Probably we can add versioning support to
8688    # collect2, so additional links can be useful in future.
8689    if test "$aix_use_runtimelinking" = yes; then
8690      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8691      # instead of lib<name>.a to let people know that these are not
8692      # typical AIX shared libraries.
8693      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8694    else
8695      # We preserve .a as extension for shared libraries through AIX4.2
8696      # and later when we are not doing run time linking.
8697      library_names_spec='${libname}${release}.a $libname.a'
8698      soname_spec='${libname}${release}${shared_ext}$major'
8699    fi
8700    shlibpath_var=LIBPATH
8701  fi
8702  ;;
8703
8704amigaos*)
8705  library_names_spec='$libname.ixlibrary $libname.a'
8706  # Create ${libname}_ixlibrary.a entries in /sys/libs.
8707  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'
8708  ;;
8709
8710beos*)
8711  library_names_spec='${libname}${shared_ext}'
8712  dynamic_linker="$host_os ld.so"
8713  shlibpath_var=LIBRARY_PATH
8714  ;;
8715
8716bsdi[45]*)
8717  version_type=linux
8718  need_version=no
8719  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8720  soname_spec='${libname}${release}${shared_ext}$major'
8721  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8722  shlibpath_var=LD_LIBRARY_PATH
8723  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8724  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8725  # the default ld.so.conf also contains /usr/contrib/lib and
8726  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8727  # libtool to hard-code these into programs
8728  ;;
8729
8730cygwin* | mingw* | pw32*)
8731  version_type=windows
8732  shrext_cmds=".dll"
8733  need_version=no
8734  need_lib_prefix=no
8735
8736  case $GCC,$host_os in
8737  yes,cygwin* | yes,mingw* | yes,pw32*)
8738    library_names_spec='$libname.dll.a'
8739    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8740    postinstall_cmds='base_file=`basename \${file}`~
8741      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8742      dldir=$destdir/`dirname \$dlpath`~
8743      test -d \$dldir || mkdir -p \$dldir~
8744      $install_prog $dir/$dlname \$dldir/$dlname~
8745      chmod a+x \$dldir/$dlname'
8746    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8747      dlpath=$dir/\$dldll~
8748       $rm \$dlpath'
8749    shlibpath_overrides_runpath=yes
8750
8751    case $host_os in
8752    cygwin*)
8753      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8754      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8755      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8756      ;;
8757    mingw*)
8758      # MinGW DLLs use traditional 'lib' prefix
8759      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8760      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8761      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8762        # It is most probably a Windows format PATH printed by
8763        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8764        # path with ; separators, and with drive letters. We can handle the
8765        # drive letters (cygwin fileutils understands them), so leave them,
8766        # especially as we might pass files found there to a mingw objdump,
8767        # which wouldn't understand a cygwinified path. Ahh.
8768        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8769      else
8770        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8771      fi
8772      ;;
8773    pw32*)
8774      # pw32 DLLs use 'pw' prefix rather than 'lib'
8775      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8776      ;;
8777    esac
8778    ;;
8779
8780  *)
8781    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8782    ;;
8783  esac
8784  dynamic_linker='Win32 ld.exe'
8785  # FIXME: first we should search . and the directory the executable is in
8786  shlibpath_var=PATH
8787  ;;
8788
8789darwin* | rhapsody*)
8790  dynamic_linker="$host_os dyld"
8791  version_type=darwin
8792  need_lib_prefix=no
8793  need_version=no
8794  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8795  soname_spec='${libname}${release}${major}$shared_ext'
8796  shlibpath_overrides_runpath=yes
8797  shlibpath_var=DYLD_LIBRARY_PATH
8798  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8799
8800  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8801  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8802  ;;
8803
8804dgux*)
8805  version_type=linux
8806  need_lib_prefix=no
8807  need_version=no
8808  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8809  soname_spec='${libname}${release}${shared_ext}$major'
8810  shlibpath_var=LD_LIBRARY_PATH
8811  ;;
8812
8813freebsd1*)
8814  dynamic_linker=no
8815  ;;
8816
8817freebsd* | dragonfly*)
8818  # DragonFly does not have aout.  When/if they implement a new
8819  # versioning mechanism, adjust this.
8820  if test -x /usr/bin/objformat; then
8821    objformat=`/usr/bin/objformat`
8822  else
8823    case $host_os in
8824    freebsd[123]*) objformat=aout ;;
8825    *) objformat=elf ;;
8826    esac
8827  fi
8828  version_type=freebsd-$objformat
8829  case $version_type in
8830    freebsd-elf*)
8831      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8832      need_version=no
8833      need_lib_prefix=no
8834      ;;
8835    freebsd-*)
8836      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8837      need_version=yes
8838      ;;
8839  esac
8840  shlibpath_var=LD_LIBRARY_PATH
8841  case $host_os in
8842  freebsd2*)
8843    shlibpath_overrides_runpath=yes
8844    ;;
8845  freebsd3.[01]* | freebsdelf3.[01]*)
8846    shlibpath_overrides_runpath=yes
8847    hardcode_into_libs=yes
8848    ;;
8849  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8850  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8851    shlibpath_overrides_runpath=no
8852    hardcode_into_libs=yes
8853    ;;
8854  *) # from 4.6 on, and DragonFly
8855    shlibpath_overrides_runpath=yes
8856    hardcode_into_libs=yes
8857    ;;
8858  esac
8859  ;;
8860
8861gnu*)
8862  version_type=linux
8863  need_lib_prefix=no
8864  need_version=no
8865  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8866  soname_spec='${libname}${release}${shared_ext}$major'
8867  shlibpath_var=LD_LIBRARY_PATH
8868  hardcode_into_libs=yes
8869  ;;
8870
8871hpux9* | hpux10* | hpux11*)
8872  # Give a soname corresponding to the major version so that dld.sl refuses to
8873  # link against other versions.
8874  version_type=sunos
8875  need_lib_prefix=no
8876  need_version=no
8877  case $host_cpu in
8878  ia64*)
8879    shrext_cmds='.so'
8880    hardcode_into_libs=yes
8881    dynamic_linker="$host_os dld.so"
8882    shlibpath_var=LD_LIBRARY_PATH
8883    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8884    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8885    soname_spec='${libname}${release}${shared_ext}$major'
8886    if test "X$HPUX_IA64_MODE" = X32; then
8887      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8888    else
8889      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8890    fi
8891    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8892    ;;
8893   hppa*64*)
8894     shrext_cmds='.sl'
8895     hardcode_into_libs=yes
8896     dynamic_linker="$host_os dld.sl"
8897     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8898     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8899     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8900     soname_spec='${libname}${release}${shared_ext}$major'
8901     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8902     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8903     ;;
8904   *)
8905    shrext_cmds='.sl'
8906    dynamic_linker="$host_os dld.sl"
8907    shlibpath_var=SHLIB_PATH
8908    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8909    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8910    soname_spec='${libname}${release}${shared_ext}$major'
8911    ;;
8912  esac
8913  # HP-UX runs *really* slowly unless shared libraries are mode 555.
8914  postinstall_cmds='chmod 555 $lib'
8915  ;;
8916
8917interix[3-9]*)
8918  version_type=linux
8919  need_lib_prefix=no
8920  need_version=no
8921  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8922  soname_spec='${libname}${release}${shared_ext}$major'
8923  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8924  shlibpath_var=LD_LIBRARY_PATH
8925  shlibpath_overrides_runpath=no
8926  hardcode_into_libs=yes
8927  ;;
8928
8929irix5* | irix6* | nonstopux*)
8930  case $host_os in
8931    nonstopux*) version_type=nonstopux ;;
8932    *)
8933	if test "$lt_cv_prog_gnu_ld" = yes; then
8934		version_type=linux
8935	else
8936		version_type=irix
8937	fi ;;
8938  esac
8939  need_lib_prefix=no
8940  need_version=no
8941  soname_spec='${libname}${release}${shared_ext}$major'
8942  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8943  case $host_os in
8944  irix5* | nonstopux*)
8945    libsuff= shlibsuff=
8946    ;;
8947  *)
8948    case $LD in # libtool.m4 will add one of these switches to LD
8949    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8950      libsuff= shlibsuff= libmagic=32-bit;;
8951    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8952      libsuff=32 shlibsuff=N32 libmagic=N32;;
8953    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8954      libsuff=64 shlibsuff=64 libmagic=64-bit;;
8955    *) libsuff= shlibsuff= libmagic=never-match;;
8956    esac
8957    ;;
8958  esac
8959  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8960  shlibpath_overrides_runpath=no
8961  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8962  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8963  hardcode_into_libs=yes
8964  ;;
8965
8966# No shared lib support for Linux oldld, aout, or coff.
8967linux*oldld* | linux*aout* | linux*coff*)
8968  dynamic_linker=no
8969  ;;
8970
8971# This must be Linux ELF.
8972linux* | k*bsd*-gnu)
8973  version_type=linux
8974  need_lib_prefix=no
8975  need_version=no
8976  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8977  soname_spec='${libname}${release}${shared_ext}$major'
8978  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8979  shlibpath_var=LD_LIBRARY_PATH
8980  shlibpath_overrides_runpath=no
8981  # This implies no fast_install, which is unacceptable.
8982  # Some rework will be needed to allow for fast_install
8983  # before this can be enabled.
8984  hardcode_into_libs=yes
8985
8986  # Append ld.so.conf contents to the search path
8987  if test -f /etc/ld.so.conf; then
8988    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/#.*//;/^[ 	]*hwcap[ 	]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8989    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8990  fi
8991
8992  # We used to test for /lib/ld.so.1 and disable shared libraries on
8993  # powerpc, because MkLinux only supported shared libraries with the
8994  # GNU dynamic linker.  Since this was broken with cross compilers,
8995  # most powerpc-linux boxes support dynamic linking these days and
8996  # people can always --disable-shared, the test was removed, and we
8997  # assume the GNU/Linux dynamic linker is in use.
8998  dynamic_linker='GNU/Linux ld.so'
8999  ;;
9000
9001netbsd*)
9002  version_type=sunos
9003  need_lib_prefix=no
9004  need_version=no
9005  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9006    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9007    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9008    dynamic_linker='NetBSD (a.out) ld.so'
9009  else
9010    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9011    soname_spec='${libname}${release}${shared_ext}$major'
9012    dynamic_linker='NetBSD ld.elf_so'
9013  fi
9014  shlibpath_var=LD_LIBRARY_PATH
9015  shlibpath_overrides_runpath=yes
9016  hardcode_into_libs=yes
9017  ;;
9018
9019newsos6)
9020  version_type=linux
9021  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9022  shlibpath_var=LD_LIBRARY_PATH
9023  shlibpath_overrides_runpath=yes
9024  ;;
9025
9026nto-qnx*)
9027  version_type=linux
9028  need_lib_prefix=no
9029  need_version=no
9030  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9031  soname_spec='${libname}${release}${shared_ext}$major'
9032  shlibpath_var=LD_LIBRARY_PATH
9033  shlibpath_overrides_runpath=yes
9034  ;;
9035
9036openbsd*)
9037  version_type=sunos
9038  sys_lib_dlsearch_path_spec="/usr/lib"
9039  need_lib_prefix=no
9040  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9041  case $host_os in
9042    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9043    *)                         need_version=no  ;;
9044  esac
9045  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9046  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9047  shlibpath_var=LD_LIBRARY_PATH
9048  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9049    case $host_os in
9050      openbsd2.[89] | openbsd2.[89].*)
9051	shlibpath_overrides_runpath=no
9052	;;
9053      *)
9054	shlibpath_overrides_runpath=yes
9055	;;
9056      esac
9057  else
9058    shlibpath_overrides_runpath=yes
9059  fi
9060  ;;
9061
9062os2*)
9063  libname_spec='$name'
9064  shrext_cmds=".dll"
9065  need_lib_prefix=no
9066  library_names_spec='$libname${shared_ext} $libname.a'
9067  dynamic_linker='OS/2 ld.exe'
9068  shlibpath_var=LIBPATH
9069  ;;
9070
9071osf3* | osf4* | osf5*)
9072  version_type=osf
9073  need_lib_prefix=no
9074  need_version=no
9075  soname_spec='${libname}${release}${shared_ext}$major'
9076  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9077  shlibpath_var=LD_LIBRARY_PATH
9078  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9079  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9080  ;;
9081
9082rdos*)
9083  dynamic_linker=no
9084  ;;
9085
9086solaris*)
9087  version_type=linux
9088  need_lib_prefix=no
9089  need_version=no
9090  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9091  soname_spec='${libname}${release}${shared_ext}$major'
9092  shlibpath_var=LD_LIBRARY_PATH
9093  shlibpath_overrides_runpath=yes
9094  hardcode_into_libs=yes
9095  # ldd complains unless libraries are executable
9096  postinstall_cmds='chmod +x $lib'
9097  ;;
9098
9099sunos4*)
9100  version_type=sunos
9101  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9102  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9103  shlibpath_var=LD_LIBRARY_PATH
9104  shlibpath_overrides_runpath=yes
9105  if test "$with_gnu_ld" = yes; then
9106    need_lib_prefix=no
9107  fi
9108  need_version=yes
9109  ;;
9110
9111sysv4 | sysv4.3*)
9112  version_type=linux
9113  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9114  soname_spec='${libname}${release}${shared_ext}$major'
9115  shlibpath_var=LD_LIBRARY_PATH
9116  case $host_vendor in
9117    sni)
9118      shlibpath_overrides_runpath=no
9119      need_lib_prefix=no
9120      export_dynamic_flag_spec='${wl}-Blargedynsym'
9121      runpath_var=LD_RUN_PATH
9122      ;;
9123    siemens)
9124      need_lib_prefix=no
9125      ;;
9126    motorola)
9127      need_lib_prefix=no
9128      need_version=no
9129      shlibpath_overrides_runpath=no
9130      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9131      ;;
9132  esac
9133  ;;
9134
9135sysv4*MP*)
9136  if test -d /usr/nec ;then
9137    version_type=linux
9138    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9139    soname_spec='$libname${shared_ext}.$major'
9140    shlibpath_var=LD_LIBRARY_PATH
9141  fi
9142  ;;
9143
9144sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9145  version_type=freebsd-elf
9146  need_lib_prefix=no
9147  need_version=no
9148  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9149  soname_spec='${libname}${release}${shared_ext}$major'
9150  shlibpath_var=LD_LIBRARY_PATH
9151  hardcode_into_libs=yes
9152  if test "$with_gnu_ld" = yes; then
9153    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9154    shlibpath_overrides_runpath=no
9155  else
9156    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9157    shlibpath_overrides_runpath=yes
9158    case $host_os in
9159      sco3.2v5*)
9160        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9161	;;
9162    esac
9163  fi
9164  sys_lib_dlsearch_path_spec='/usr/lib'
9165  ;;
9166
9167uts4*)
9168  version_type=linux
9169  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9170  soname_spec='${libname}${release}${shared_ext}$major'
9171  shlibpath_var=LD_LIBRARY_PATH
9172  ;;
9173
9174*)
9175  dynamic_linker=no
9176  ;;
9177esac
9178echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9179echo "${ECHO_T}$dynamic_linker" >&6
9180test "$dynamic_linker" = no && can_build_shared=no
9181
9182variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9183if test "$GCC" = yes; then
9184  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9185fi
9186
9187echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9188echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9189hardcode_action=
9190if test -n "$hardcode_libdir_flag_spec" || \
9191   test -n "$runpath_var" || \
9192   test "X$hardcode_automatic" = "Xyes" ; then
9193
9194  # We can hardcode non-existant directories.
9195  if test "$hardcode_direct" != no &&
9196     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9197     # have to relink, otherwise we might link with an installed library
9198     # when we should be linking with a yet-to-be-installed one
9199     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9200     test "$hardcode_minus_L" != no; then
9201    # Linking always hardcodes the temporary library directory.
9202    hardcode_action=relink
9203  else
9204    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9205    hardcode_action=immediate
9206  fi
9207else
9208  # We cannot hardcode anything, or else we can only hardcode existing
9209  # directories.
9210  hardcode_action=unsupported
9211fi
9212echo "$as_me:$LINENO: result: $hardcode_action" >&5
9213echo "${ECHO_T}$hardcode_action" >&6
9214
9215if test "$hardcode_action" = relink; then
9216  # Fast installation is not supported
9217  enable_fast_install=no
9218elif test "$shlibpath_overrides_runpath" = yes ||
9219     test "$enable_shared" = no; then
9220  # Fast installation is not necessary
9221  enable_fast_install=needless
9222fi
9223
9224striplib=
9225old_striplib=
9226echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9227echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9228if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9229  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9230  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9231  echo "$as_me:$LINENO: result: yes" >&5
9232echo "${ECHO_T}yes" >&6
9233else
9234# FIXME - insert some real tests, host_os isn't really good enough
9235  case $host_os in
9236   darwin*)
9237       if test -n "$STRIP" ; then
9238         striplib="$STRIP -x"
9239         old_striplib="$STRIP -S"
9240         echo "$as_me:$LINENO: result: yes" >&5
9241echo "${ECHO_T}yes" >&6
9242       else
9243  echo "$as_me:$LINENO: result: no" >&5
9244echo "${ECHO_T}no" >&6
9245fi
9246       ;;
9247   *)
9248  echo "$as_me:$LINENO: result: no" >&5
9249echo "${ECHO_T}no" >&6
9250    ;;
9251  esac
9252fi
9253
9254if test "x$enable_dlopen" != xyes; then
9255  enable_dlopen=unknown
9256  enable_dlopen_self=unknown
9257  enable_dlopen_self_static=unknown
9258else
9259  lt_cv_dlopen=no
9260  lt_cv_dlopen_libs=
9261
9262  case $host_os in
9263  beos*)
9264    lt_cv_dlopen="load_add_on"
9265    lt_cv_dlopen_libs=
9266    lt_cv_dlopen_self=yes
9267    ;;
9268
9269  mingw* | pw32*)
9270    lt_cv_dlopen="LoadLibrary"
9271    lt_cv_dlopen_libs=
9272   ;;
9273
9274  cygwin*)
9275    lt_cv_dlopen="dlopen"
9276    lt_cv_dlopen_libs=
9277   ;;
9278
9279  darwin*)
9280  # if libdl is installed we need to link against it
9281    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9282echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9283if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9284  echo $ECHO_N "(cached) $ECHO_C" >&6
9285else
9286  ac_check_lib_save_LIBS=$LIBS
9287LIBS="-ldl  $LIBS"
9288cat >conftest.$ac_ext <<_ACEOF
9289/* confdefs.h.  */
9290_ACEOF
9291cat confdefs.h >>conftest.$ac_ext
9292cat >>conftest.$ac_ext <<_ACEOF
9293/* end confdefs.h.  */
9294
9295/* Override any gcc2 internal prototype to avoid an error.  */
9296#ifdef __cplusplus
9297extern "C"
9298#endif
9299/* We use char because int might match the return type of a gcc2
9300   builtin and then its argument prototype would still apply.  */
9301char dlopen ();
9302int
9303main ()
9304{
9305dlopen ();
9306  ;
9307  return 0;
9308}
9309_ACEOF
9310rm -f conftest.$ac_objext conftest$ac_exeext
9311if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9312  (eval $ac_link) 2>conftest.er1
9313  ac_status=$?
9314  grep -v '^ *+' conftest.er1 >conftest.err
9315  rm -f conftest.er1
9316  cat conftest.err >&5
9317  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9318  (exit $ac_status); } &&
9319	 { ac_try='test -z "$ac_c_werror_flag"
9320			 || test ! -s conftest.err'
9321  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9322  (eval $ac_try) 2>&5
9323  ac_status=$?
9324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9325  (exit $ac_status); }; } &&
9326	 { ac_try='test -s conftest$ac_exeext'
9327  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9328  (eval $ac_try) 2>&5
9329  ac_status=$?
9330  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9331  (exit $ac_status); }; }; then
9332  ac_cv_lib_dl_dlopen=yes
9333else
9334  echo "$as_me: failed program was:" >&5
9335sed 's/^/| /' conftest.$ac_ext >&5
9336
9337ac_cv_lib_dl_dlopen=no
9338fi
9339rm -f conftest.err conftest.$ac_objext \
9340      conftest$ac_exeext conftest.$ac_ext
9341LIBS=$ac_check_lib_save_LIBS
9342fi
9343echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9344echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9345if test $ac_cv_lib_dl_dlopen = yes; then
9346  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9347else
9348
9349    lt_cv_dlopen="dyld"
9350    lt_cv_dlopen_libs=
9351    lt_cv_dlopen_self=yes
9352
9353fi
9354
9355   ;;
9356
9357  *)
9358    echo "$as_me:$LINENO: checking for shl_load" >&5
9359echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9360if test "${ac_cv_func_shl_load+set}" = set; then
9361  echo $ECHO_N "(cached) $ECHO_C" >&6
9362else
9363  cat >conftest.$ac_ext <<_ACEOF
9364/* confdefs.h.  */
9365_ACEOF
9366cat confdefs.h >>conftest.$ac_ext
9367cat >>conftest.$ac_ext <<_ACEOF
9368/* end confdefs.h.  */
9369/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9370   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9371#define shl_load innocuous_shl_load
9372
9373/* System header to define __stub macros and hopefully few prototypes,
9374    which can conflict with char shl_load (); below.
9375    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9376    <limits.h> exists even on freestanding compilers.  */
9377
9378#ifdef __STDC__
9379# include <limits.h>
9380#else
9381# include <assert.h>
9382#endif
9383
9384#undef shl_load
9385
9386/* Override any gcc2 internal prototype to avoid an error.  */
9387#ifdef __cplusplus
9388extern "C"
9389{
9390#endif
9391/* We use char because int might match the return type of a gcc2
9392   builtin and then its argument prototype would still apply.  */
9393char shl_load ();
9394/* The GNU C library defines this for functions which it implements
9395    to always fail with ENOSYS.  Some functions are actually named
9396    something starting with __ and the normal name is an alias.  */
9397#if defined (__stub_shl_load) || defined (__stub___shl_load)
9398choke me
9399#else
9400char (*f) () = shl_load;
9401#endif
9402#ifdef __cplusplus
9403}
9404#endif
9405
9406int
9407main ()
9408{
9409return f != shl_load;
9410  ;
9411  return 0;
9412}
9413_ACEOF
9414rm -f conftest.$ac_objext conftest$ac_exeext
9415if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9416  (eval $ac_link) 2>conftest.er1
9417  ac_status=$?
9418  grep -v '^ *+' conftest.er1 >conftest.err
9419  rm -f conftest.er1
9420  cat conftest.err >&5
9421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9422  (exit $ac_status); } &&
9423	 { ac_try='test -z "$ac_c_werror_flag"
9424			 || test ! -s conftest.err'
9425  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9426  (eval $ac_try) 2>&5
9427  ac_status=$?
9428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9429  (exit $ac_status); }; } &&
9430	 { ac_try='test -s conftest$ac_exeext'
9431  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9432  (eval $ac_try) 2>&5
9433  ac_status=$?
9434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9435  (exit $ac_status); }; }; then
9436  ac_cv_func_shl_load=yes
9437else
9438  echo "$as_me: failed program was:" >&5
9439sed 's/^/| /' conftest.$ac_ext >&5
9440
9441ac_cv_func_shl_load=no
9442fi
9443rm -f conftest.err conftest.$ac_objext \
9444      conftest$ac_exeext conftest.$ac_ext
9445fi
9446echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9447echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9448if test $ac_cv_func_shl_load = yes; then
9449  lt_cv_dlopen="shl_load"
9450else
9451  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9452echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9453if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9454  echo $ECHO_N "(cached) $ECHO_C" >&6
9455else
9456  ac_check_lib_save_LIBS=$LIBS
9457LIBS="-ldld  $LIBS"
9458cat >conftest.$ac_ext <<_ACEOF
9459/* confdefs.h.  */
9460_ACEOF
9461cat confdefs.h >>conftest.$ac_ext
9462cat >>conftest.$ac_ext <<_ACEOF
9463/* end confdefs.h.  */
9464
9465/* Override any gcc2 internal prototype to avoid an error.  */
9466#ifdef __cplusplus
9467extern "C"
9468#endif
9469/* We use char because int might match the return type of a gcc2
9470   builtin and then its argument prototype would still apply.  */
9471char shl_load ();
9472int
9473main ()
9474{
9475shl_load ();
9476  ;
9477  return 0;
9478}
9479_ACEOF
9480rm -f conftest.$ac_objext conftest$ac_exeext
9481if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9482  (eval $ac_link) 2>conftest.er1
9483  ac_status=$?
9484  grep -v '^ *+' conftest.er1 >conftest.err
9485  rm -f conftest.er1
9486  cat conftest.err >&5
9487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9488  (exit $ac_status); } &&
9489	 { ac_try='test -z "$ac_c_werror_flag"
9490			 || test ! -s conftest.err'
9491  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9492  (eval $ac_try) 2>&5
9493  ac_status=$?
9494  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9495  (exit $ac_status); }; } &&
9496	 { ac_try='test -s conftest$ac_exeext'
9497  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9498  (eval $ac_try) 2>&5
9499  ac_status=$?
9500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9501  (exit $ac_status); }; }; then
9502  ac_cv_lib_dld_shl_load=yes
9503else
9504  echo "$as_me: failed program was:" >&5
9505sed 's/^/| /' conftest.$ac_ext >&5
9506
9507ac_cv_lib_dld_shl_load=no
9508fi
9509rm -f conftest.err conftest.$ac_objext \
9510      conftest$ac_exeext conftest.$ac_ext
9511LIBS=$ac_check_lib_save_LIBS
9512fi
9513echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9514echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9515if test $ac_cv_lib_dld_shl_load = yes; then
9516  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9517else
9518  echo "$as_me:$LINENO: checking for dlopen" >&5
9519echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9520if test "${ac_cv_func_dlopen+set}" = set; then
9521  echo $ECHO_N "(cached) $ECHO_C" >&6
9522else
9523  cat >conftest.$ac_ext <<_ACEOF
9524/* confdefs.h.  */
9525_ACEOF
9526cat confdefs.h >>conftest.$ac_ext
9527cat >>conftest.$ac_ext <<_ACEOF
9528/* end confdefs.h.  */
9529/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9530   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9531#define dlopen innocuous_dlopen
9532
9533/* System header to define __stub macros and hopefully few prototypes,
9534    which can conflict with char dlopen (); below.
9535    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9536    <limits.h> exists even on freestanding compilers.  */
9537
9538#ifdef __STDC__
9539# include <limits.h>
9540#else
9541# include <assert.h>
9542#endif
9543
9544#undef dlopen
9545
9546/* Override any gcc2 internal prototype to avoid an error.  */
9547#ifdef __cplusplus
9548extern "C"
9549{
9550#endif
9551/* We use char because int might match the return type of a gcc2
9552   builtin and then its argument prototype would still apply.  */
9553char dlopen ();
9554/* The GNU C library defines this for functions which it implements
9555    to always fail with ENOSYS.  Some functions are actually named
9556    something starting with __ and the normal name is an alias.  */
9557#if defined (__stub_dlopen) || defined (__stub___dlopen)
9558choke me
9559#else
9560char (*f) () = dlopen;
9561#endif
9562#ifdef __cplusplus
9563}
9564#endif
9565
9566int
9567main ()
9568{
9569return f != dlopen;
9570  ;
9571  return 0;
9572}
9573_ACEOF
9574rm -f conftest.$ac_objext conftest$ac_exeext
9575if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9576  (eval $ac_link) 2>conftest.er1
9577  ac_status=$?
9578  grep -v '^ *+' conftest.er1 >conftest.err
9579  rm -f conftest.er1
9580  cat conftest.err >&5
9581  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9582  (exit $ac_status); } &&
9583	 { ac_try='test -z "$ac_c_werror_flag"
9584			 || test ! -s conftest.err'
9585  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9586  (eval $ac_try) 2>&5
9587  ac_status=$?
9588  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9589  (exit $ac_status); }; } &&
9590	 { ac_try='test -s conftest$ac_exeext'
9591  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9592  (eval $ac_try) 2>&5
9593  ac_status=$?
9594  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9595  (exit $ac_status); }; }; then
9596  ac_cv_func_dlopen=yes
9597else
9598  echo "$as_me: failed program was:" >&5
9599sed 's/^/| /' conftest.$ac_ext >&5
9600
9601ac_cv_func_dlopen=no
9602fi
9603rm -f conftest.err conftest.$ac_objext \
9604      conftest$ac_exeext conftest.$ac_ext
9605fi
9606echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9607echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9608if test $ac_cv_func_dlopen = yes; then
9609  lt_cv_dlopen="dlopen"
9610else
9611  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9612echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9613if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9614  echo $ECHO_N "(cached) $ECHO_C" >&6
9615else
9616  ac_check_lib_save_LIBS=$LIBS
9617LIBS="-ldl  $LIBS"
9618cat >conftest.$ac_ext <<_ACEOF
9619/* confdefs.h.  */
9620_ACEOF
9621cat confdefs.h >>conftest.$ac_ext
9622cat >>conftest.$ac_ext <<_ACEOF
9623/* end confdefs.h.  */
9624
9625/* Override any gcc2 internal prototype to avoid an error.  */
9626#ifdef __cplusplus
9627extern "C"
9628#endif
9629/* We use char because int might match the return type of a gcc2
9630   builtin and then its argument prototype would still apply.  */
9631char dlopen ();
9632int
9633main ()
9634{
9635dlopen ();
9636  ;
9637  return 0;
9638}
9639_ACEOF
9640rm -f conftest.$ac_objext conftest$ac_exeext
9641if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9642  (eval $ac_link) 2>conftest.er1
9643  ac_status=$?
9644  grep -v '^ *+' conftest.er1 >conftest.err
9645  rm -f conftest.er1
9646  cat conftest.err >&5
9647  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9648  (exit $ac_status); } &&
9649	 { ac_try='test -z "$ac_c_werror_flag"
9650			 || test ! -s conftest.err'
9651  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9652  (eval $ac_try) 2>&5
9653  ac_status=$?
9654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9655  (exit $ac_status); }; } &&
9656	 { ac_try='test -s conftest$ac_exeext'
9657  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9658  (eval $ac_try) 2>&5
9659  ac_status=$?
9660  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9661  (exit $ac_status); }; }; then
9662  ac_cv_lib_dl_dlopen=yes
9663else
9664  echo "$as_me: failed program was:" >&5
9665sed 's/^/| /' conftest.$ac_ext >&5
9666
9667ac_cv_lib_dl_dlopen=no
9668fi
9669rm -f conftest.err conftest.$ac_objext \
9670      conftest$ac_exeext conftest.$ac_ext
9671LIBS=$ac_check_lib_save_LIBS
9672fi
9673echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9674echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9675if test $ac_cv_lib_dl_dlopen = yes; then
9676  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9677else
9678  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9679echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9680if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9681  echo $ECHO_N "(cached) $ECHO_C" >&6
9682else
9683  ac_check_lib_save_LIBS=$LIBS
9684LIBS="-lsvld  $LIBS"
9685cat >conftest.$ac_ext <<_ACEOF
9686/* confdefs.h.  */
9687_ACEOF
9688cat confdefs.h >>conftest.$ac_ext
9689cat >>conftest.$ac_ext <<_ACEOF
9690/* end confdefs.h.  */
9691
9692/* Override any gcc2 internal prototype to avoid an error.  */
9693#ifdef __cplusplus
9694extern "C"
9695#endif
9696/* We use char because int might match the return type of a gcc2
9697   builtin and then its argument prototype would still apply.  */
9698char dlopen ();
9699int
9700main ()
9701{
9702dlopen ();
9703  ;
9704  return 0;
9705}
9706_ACEOF
9707rm -f conftest.$ac_objext conftest$ac_exeext
9708if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9709  (eval $ac_link) 2>conftest.er1
9710  ac_status=$?
9711  grep -v '^ *+' conftest.er1 >conftest.err
9712  rm -f conftest.er1
9713  cat conftest.err >&5
9714  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9715  (exit $ac_status); } &&
9716	 { ac_try='test -z "$ac_c_werror_flag"
9717			 || test ! -s conftest.err'
9718  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9719  (eval $ac_try) 2>&5
9720  ac_status=$?
9721  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9722  (exit $ac_status); }; } &&
9723	 { ac_try='test -s conftest$ac_exeext'
9724  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9725  (eval $ac_try) 2>&5
9726  ac_status=$?
9727  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9728  (exit $ac_status); }; }; then
9729  ac_cv_lib_svld_dlopen=yes
9730else
9731  echo "$as_me: failed program was:" >&5
9732sed 's/^/| /' conftest.$ac_ext >&5
9733
9734ac_cv_lib_svld_dlopen=no
9735fi
9736rm -f conftest.err conftest.$ac_objext \
9737      conftest$ac_exeext conftest.$ac_ext
9738LIBS=$ac_check_lib_save_LIBS
9739fi
9740echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9741echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9742if test $ac_cv_lib_svld_dlopen = yes; then
9743  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9744else
9745  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9746echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9747if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9748  echo $ECHO_N "(cached) $ECHO_C" >&6
9749else
9750  ac_check_lib_save_LIBS=$LIBS
9751LIBS="-ldld  $LIBS"
9752cat >conftest.$ac_ext <<_ACEOF
9753/* confdefs.h.  */
9754_ACEOF
9755cat confdefs.h >>conftest.$ac_ext
9756cat >>conftest.$ac_ext <<_ACEOF
9757/* end confdefs.h.  */
9758
9759/* Override any gcc2 internal prototype to avoid an error.  */
9760#ifdef __cplusplus
9761extern "C"
9762#endif
9763/* We use char because int might match the return type of a gcc2
9764   builtin and then its argument prototype would still apply.  */
9765char dld_link ();
9766int
9767main ()
9768{
9769dld_link ();
9770  ;
9771  return 0;
9772}
9773_ACEOF
9774rm -f conftest.$ac_objext conftest$ac_exeext
9775if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9776  (eval $ac_link) 2>conftest.er1
9777  ac_status=$?
9778  grep -v '^ *+' conftest.er1 >conftest.err
9779  rm -f conftest.er1
9780  cat conftest.err >&5
9781  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9782  (exit $ac_status); } &&
9783	 { ac_try='test -z "$ac_c_werror_flag"
9784			 || test ! -s conftest.err'
9785  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9786  (eval $ac_try) 2>&5
9787  ac_status=$?
9788  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9789  (exit $ac_status); }; } &&
9790	 { ac_try='test -s conftest$ac_exeext'
9791  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9792  (eval $ac_try) 2>&5
9793  ac_status=$?
9794  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795  (exit $ac_status); }; }; then
9796  ac_cv_lib_dld_dld_link=yes
9797else
9798  echo "$as_me: failed program was:" >&5
9799sed 's/^/| /' conftest.$ac_ext >&5
9800
9801ac_cv_lib_dld_dld_link=no
9802fi
9803rm -f conftest.err conftest.$ac_objext \
9804      conftest$ac_exeext conftest.$ac_ext
9805LIBS=$ac_check_lib_save_LIBS
9806fi
9807echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9808echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9809if test $ac_cv_lib_dld_dld_link = yes; then
9810  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9811fi
9812
9813
9814fi
9815
9816
9817fi
9818
9819
9820fi
9821
9822
9823fi
9824
9825
9826fi
9827
9828    ;;
9829  esac
9830
9831  if test "x$lt_cv_dlopen" != xno; then
9832    enable_dlopen=yes
9833  else
9834    enable_dlopen=no
9835  fi
9836
9837  case $lt_cv_dlopen in
9838  dlopen)
9839    save_CPPFLAGS="$CPPFLAGS"
9840    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9841
9842    save_LDFLAGS="$LDFLAGS"
9843    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9844
9845    save_LIBS="$LIBS"
9846    LIBS="$lt_cv_dlopen_libs $LIBS"
9847
9848    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9849echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9850if test "${lt_cv_dlopen_self+set}" = set; then
9851  echo $ECHO_N "(cached) $ECHO_C" >&6
9852else
9853  	  if test "$cross_compiling" = yes; then :
9854  lt_cv_dlopen_self=cross
9855else
9856  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9857  lt_status=$lt_dlunknown
9858  cat > conftest.$ac_ext <<EOF
9859#line 9867 "configure"
9860#include "confdefs.h"
9861
9862#if HAVE_DLFCN_H
9863#include <dlfcn.h>
9864#endif
9865
9866#include <stdio.h>
9867
9868#ifdef RTLD_GLOBAL
9869#  define LT_DLGLOBAL		RTLD_GLOBAL
9870#else
9871#  ifdef DL_GLOBAL
9872#    define LT_DLGLOBAL		DL_GLOBAL
9873#  else
9874#    define LT_DLGLOBAL		0
9875#  endif
9876#endif
9877
9878/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9879   find out it does not work in some platform. */
9880#ifndef LT_DLLAZY_OR_NOW
9881#  ifdef RTLD_LAZY
9882#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9883#  else
9884#    ifdef DL_LAZY
9885#      define LT_DLLAZY_OR_NOW		DL_LAZY
9886#    else
9887#      ifdef RTLD_NOW
9888#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9889#      else
9890#        ifdef DL_NOW
9891#          define LT_DLLAZY_OR_NOW	DL_NOW
9892#        else
9893#          define LT_DLLAZY_OR_NOW	0
9894#        endif
9895#      endif
9896#    endif
9897#  endif
9898#endif
9899
9900#ifdef __cplusplus
9901extern "C" void exit (int);
9902#endif
9903
9904void fnord() { int i=42;}
9905int main ()
9906{
9907  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9908  int status = $lt_dlunknown;
9909
9910  if (self)
9911    {
9912      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9913      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9914      /* dlclose (self); */
9915    }
9916  else
9917    puts (dlerror ());
9918
9919    exit (status);
9920}
9921EOF
9922  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9923  (eval $ac_link) 2>&5
9924  ac_status=$?
9925  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9926  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9927    (./conftest; exit; ) >&5 2>/dev/null
9928    lt_status=$?
9929    case x$lt_status in
9930      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9931      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9932      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9933    esac
9934  else :
9935    # compilation failed
9936    lt_cv_dlopen_self=no
9937  fi
9938fi
9939rm -fr conftest*
9940
9941
9942fi
9943echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9944echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9945
9946    if test "x$lt_cv_dlopen_self" = xyes; then
9947      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9948      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9949echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9950if test "${lt_cv_dlopen_self_static+set}" = set; then
9951  echo $ECHO_N "(cached) $ECHO_C" >&6
9952else
9953  	  if test "$cross_compiling" = yes; then :
9954  lt_cv_dlopen_self_static=cross
9955else
9956  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9957  lt_status=$lt_dlunknown
9958  cat > conftest.$ac_ext <<EOF
9959#line 9967 "configure"
9960#include "confdefs.h"
9961
9962#if HAVE_DLFCN_H
9963#include <dlfcn.h>
9964#endif
9965
9966#include <stdio.h>
9967
9968#ifdef RTLD_GLOBAL
9969#  define LT_DLGLOBAL		RTLD_GLOBAL
9970#else
9971#  ifdef DL_GLOBAL
9972#    define LT_DLGLOBAL		DL_GLOBAL
9973#  else
9974#    define LT_DLGLOBAL		0
9975#  endif
9976#endif
9977
9978/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9979   find out it does not work in some platform. */
9980#ifndef LT_DLLAZY_OR_NOW
9981#  ifdef RTLD_LAZY
9982#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9983#  else
9984#    ifdef DL_LAZY
9985#      define LT_DLLAZY_OR_NOW		DL_LAZY
9986#    else
9987#      ifdef RTLD_NOW
9988#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9989#      else
9990#        ifdef DL_NOW
9991#          define LT_DLLAZY_OR_NOW	DL_NOW
9992#        else
9993#          define LT_DLLAZY_OR_NOW	0
9994#        endif
9995#      endif
9996#    endif
9997#  endif
9998#endif
9999
10000#ifdef __cplusplus
10001extern "C" void exit (int);
10002#endif
10003
10004void fnord() { int i=42;}
10005int main ()
10006{
10007  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10008  int status = $lt_dlunknown;
10009
10010  if (self)
10011    {
10012      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10013      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10014      /* dlclose (self); */
10015    }
10016  else
10017    puts (dlerror ());
10018
10019    exit (status);
10020}
10021EOF
10022  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10023  (eval $ac_link) 2>&5
10024  ac_status=$?
10025  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10026  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10027    (./conftest; exit; ) >&5 2>/dev/null
10028    lt_status=$?
10029    case x$lt_status in
10030      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10031      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10032      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10033    esac
10034  else :
10035    # compilation failed
10036    lt_cv_dlopen_self_static=no
10037  fi
10038fi
10039rm -fr conftest*
10040
10041
10042fi
10043echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10044echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10045    fi
10046
10047    CPPFLAGS="$save_CPPFLAGS"
10048    LDFLAGS="$save_LDFLAGS"
10049    LIBS="$save_LIBS"
10050    ;;
10051  esac
10052
10053  case $lt_cv_dlopen_self in
10054  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10055  *) enable_dlopen_self=unknown ;;
10056  esac
10057
10058  case $lt_cv_dlopen_self_static in
10059  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10060  *) enable_dlopen_self_static=unknown ;;
10061  esac
10062fi
10063
10064
10065# Report which library types will actually be built
10066echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10067echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10068echo "$as_me:$LINENO: result: $can_build_shared" >&5
10069echo "${ECHO_T}$can_build_shared" >&6
10070
10071echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10072echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10073test "$can_build_shared" = "no" && enable_shared=no
10074
10075# On AIX, shared libraries and static libraries use the same namespace, and
10076# are all built from PIC.
10077case $host_os in
10078aix3*)
10079  test "$enable_shared" = yes && enable_static=no
10080  if test -n "$RANLIB"; then
10081    archive_cmds="$archive_cmds~\$RANLIB \$lib"
10082    postinstall_cmds='$RANLIB $lib'
10083  fi
10084  ;;
10085
10086aix4* | aix5*)
10087  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10088    test "$enable_shared" = yes && enable_static=no
10089  fi
10090    ;;
10091esac
10092echo "$as_me:$LINENO: result: $enable_shared" >&5
10093echo "${ECHO_T}$enable_shared" >&6
10094
10095echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10096echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10097# Make sure either enable_shared or enable_static is yes.
10098test "$enable_shared" = yes || enable_static=yes
10099echo "$as_me:$LINENO: result: $enable_static" >&5
10100echo "${ECHO_T}$enable_static" >&6
10101
10102# The else clause should only fire when bootstrapping the
10103# libtool distribution, otherwise you forgot to ship ltmain.sh
10104# with your package, and you will get complaints that there are
10105# no rules to generate ltmain.sh.
10106if test -f "$ltmain"; then
10107  # See if we are running on zsh, and set the options which allow our commands through
10108  # without removal of \ escapes.
10109  if test -n "${ZSH_VERSION+set}" ; then
10110    setopt NO_GLOB_SUBST
10111  fi
10112  # Now quote all the things that may contain metacharacters while being
10113  # careful not to overquote the AC_SUBSTed values.  We take copies of the
10114  # variables and quote the copies for generation of the libtool script.
10115  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10116    SED SHELL STRIP \
10117    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10118    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10119    deplibs_check_method reload_flag reload_cmds need_locks \
10120    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10121    lt_cv_sys_global_symbol_to_c_name_address \
10122    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10123    old_postinstall_cmds old_postuninstall_cmds \
10124    compiler \
10125    CC \
10126    LD \
10127    lt_prog_compiler_wl \
10128    lt_prog_compiler_pic \
10129    lt_prog_compiler_static \
10130    lt_prog_compiler_no_builtin_flag \
10131    export_dynamic_flag_spec \
10132    thread_safe_flag_spec \
10133    whole_archive_flag_spec \
10134    enable_shared_with_static_runtimes \
10135    old_archive_cmds \
10136    old_archive_from_new_cmds \
10137    predep_objects \
10138    postdep_objects \
10139    predeps \
10140    postdeps \
10141    compiler_lib_search_path \
10142    archive_cmds \
10143    archive_expsym_cmds \
10144    postinstall_cmds \
10145    postuninstall_cmds \
10146    old_archive_from_expsyms_cmds \
10147    allow_undefined_flag \
10148    no_undefined_flag \
10149    export_symbols_cmds \
10150    hardcode_libdir_flag_spec \
10151    hardcode_libdir_flag_spec_ld \
10152    hardcode_libdir_separator \
10153    hardcode_automatic \
10154    module_cmds \
10155    module_expsym_cmds \
10156    lt_cv_prog_compiler_c_o \
10157    fix_srcfile_path \
10158    exclude_expsyms \
10159    include_expsyms; do
10160
10161    case $var in
10162    old_archive_cmds | \
10163    old_archive_from_new_cmds | \
10164    archive_cmds | \
10165    archive_expsym_cmds | \
10166    module_cmds | \
10167    module_expsym_cmds | \
10168    old_archive_from_expsyms_cmds | \
10169    export_symbols_cmds | \
10170    extract_expsyms_cmds | reload_cmds | finish_cmds | \
10171    postinstall_cmds | postuninstall_cmds | \
10172    old_postinstall_cmds | old_postuninstall_cmds | \
10173    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10174      # Double-quote double-evaled strings.
10175      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10176      ;;
10177    *)
10178      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10179      ;;
10180    esac
10181  done
10182
10183  case $lt_echo in
10184  *'\$0 --fallback-echo"')
10185    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10186    ;;
10187  esac
10188
10189cfgfile="${ofile}T"
10190  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10191  $rm -f "$cfgfile"
10192  { echo "$as_me:$LINENO: creating $ofile" >&5
10193echo "$as_me: creating $ofile" >&6;}
10194
10195  cat <<__EOF__ >> "$cfgfile"
10196#! $SHELL
10197
10198# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10199# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10200# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10201#
10202# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
10203# Free Software Foundation, Inc.
10204#
10205# This file is part of GNU Libtool:
10206# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10207#
10208# This program is free software; you can redistribute it and/or modify
10209# it under the terms of the GNU General Public License as published by
10210# the Free Software Foundation; either version 2 of the License, or
10211# (at your option) any later version.
10212#
10213# This program is distributed in the hope that it will be useful, but
10214# WITHOUT ANY WARRANTY; without even the implied warranty of
10215# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10216# General Public License for more details.
10217#
10218# You should have received a copy of the GNU General Public License
10219# along with this program; if not, write to the Free Software
10220# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10221#
10222# As a special exception to the GNU General Public License, if you
10223# distribute this file as part of a program that contains a
10224# configuration script generated by Autoconf, you may include it under
10225# the same distribution terms that you use for the rest of that program.
10226
10227# A sed program that does not truncate output.
10228SED=$lt_SED
10229
10230# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10231Xsed="$SED -e 1s/^X//"
10232
10233# The HP-UX ksh and POSIX shell print the target directory to stdout
10234# if CDPATH is set.
10235(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10236
10237# The names of the tagged configurations supported by this script.
10238available_tags=
10239
10240# ### BEGIN LIBTOOL CONFIG
10241
10242# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10243
10244# Shell to use when invoking shell scripts.
10245SHELL=$lt_SHELL
10246
10247# Whether or not to build shared libraries.
10248build_libtool_libs=$enable_shared
10249
10250# Whether or not to build static libraries.
10251build_old_libs=$enable_static
10252
10253# Whether or not to add -lc for building shared libraries.
10254build_libtool_need_lc=$archive_cmds_need_lc
10255
10256# Whether or not to disallow shared libs when runtime libs are static
10257allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10258
10259# Whether or not to optimize for fast installation.
10260fast_install=$enable_fast_install
10261
10262# The host system.
10263host_alias=$host_alias
10264host=$host
10265host_os=$host_os
10266
10267# The build system.
10268build_alias=$build_alias
10269build=$build
10270build_os=$build_os
10271
10272# An echo program that does not interpret backslashes.
10273echo=$lt_echo
10274
10275# The archiver.
10276AR=$lt_AR
10277AR_FLAGS=$lt_AR_FLAGS
10278
10279# A C compiler.
10280LTCC=$lt_LTCC
10281
10282# LTCC compiler flags.
10283LTCFLAGS=$lt_LTCFLAGS
10284
10285# A language-specific compiler.
10286CC=$lt_compiler
10287
10288# Is the compiler the GNU C compiler?
10289with_gcc=$GCC
10290
10291# An ERE matcher.
10292EGREP=$lt_EGREP
10293
10294# The linker used to build libraries.
10295LD=$lt_LD
10296
10297# Whether we need hard or soft links.
10298LN_S=$lt_LN_S
10299
10300# A BSD-compatible nm program.
10301NM=$lt_NM
10302
10303# A symbol stripping program
10304STRIP=$lt_STRIP
10305
10306# Used to examine libraries when file_magic_cmd begins "file"
10307MAGIC_CMD=$MAGIC_CMD
10308
10309# Used on cygwin: DLL creation program.
10310DLLTOOL="$DLLTOOL"
10311
10312# Used on cygwin: object dumper.
10313OBJDUMP="$OBJDUMP"
10314
10315# Used on cygwin: assembler.
10316AS="$AS"
10317
10318# The name of the directory that contains temporary libtool files.
10319objdir=$objdir
10320
10321# How to create reloadable object files.
10322reload_flag=$lt_reload_flag
10323reload_cmds=$lt_reload_cmds
10324
10325# How to pass a linker flag through the compiler.
10326wl=$lt_lt_prog_compiler_wl
10327
10328# Object file suffix (normally "o").
10329objext="$ac_objext"
10330
10331# Old archive suffix (normally "a").
10332libext="$libext"
10333
10334# Shared library suffix (normally ".so").
10335shrext_cmds='$shrext_cmds'
10336
10337# Executable file suffix (normally "").
10338exeext="$exeext"
10339
10340# Additional compiler flags for building library objects.
10341pic_flag=$lt_lt_prog_compiler_pic
10342pic_mode=$pic_mode
10343
10344# What is the maximum length of a command?
10345max_cmd_len=$lt_cv_sys_max_cmd_len
10346
10347# Does compiler simultaneously support -c and -o options?
10348compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10349
10350# Must we lock files when doing compilation?
10351need_locks=$lt_need_locks
10352
10353# Do we need the lib prefix for modules?
10354need_lib_prefix=$need_lib_prefix
10355
10356# Do we need a version for libraries?
10357need_version=$need_version
10358
10359# Whether dlopen is supported.
10360dlopen_support=$enable_dlopen
10361
10362# Whether dlopen of programs is supported.
10363dlopen_self=$enable_dlopen_self
10364
10365# Whether dlopen of statically linked programs is supported.
10366dlopen_self_static=$enable_dlopen_self_static
10367
10368# Compiler flag to prevent dynamic linking.
10369link_static_flag=$lt_lt_prog_compiler_static
10370
10371# Compiler flag to turn off builtin functions.
10372no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10373
10374# Compiler flag to allow reflexive dlopens.
10375export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10376
10377# Compiler flag to generate shared objects directly from archives.
10378whole_archive_flag_spec=$lt_whole_archive_flag_spec
10379
10380# Compiler flag to generate thread-safe objects.
10381thread_safe_flag_spec=$lt_thread_safe_flag_spec
10382
10383# Library versioning type.
10384version_type=$version_type
10385
10386# Format of library name prefix.
10387libname_spec=$lt_libname_spec
10388
10389# List of archive names.  First name is the real one, the rest are links.
10390# The last name is the one that the linker finds with -lNAME.
10391library_names_spec=$lt_library_names_spec
10392
10393# The coded name of the library, if different from the real name.
10394soname_spec=$lt_soname_spec
10395
10396# Commands used to build and install an old-style archive.
10397RANLIB=$lt_RANLIB
10398old_archive_cmds=$lt_old_archive_cmds
10399old_postinstall_cmds=$lt_old_postinstall_cmds
10400old_postuninstall_cmds=$lt_old_postuninstall_cmds
10401
10402# Create an old-style archive from a shared archive.
10403old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10404
10405# Create a temporary old-style archive to link instead of a shared archive.
10406old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10407
10408# Commands used to build and install a shared archive.
10409archive_cmds=$lt_archive_cmds
10410archive_expsym_cmds=$lt_archive_expsym_cmds
10411postinstall_cmds=$lt_postinstall_cmds
10412postuninstall_cmds=$lt_postuninstall_cmds
10413
10414# Commands used to build a loadable module (assumed same as above if empty)
10415module_cmds=$lt_module_cmds
10416module_expsym_cmds=$lt_module_expsym_cmds
10417
10418# Commands to strip libraries.
10419old_striplib=$lt_old_striplib
10420striplib=$lt_striplib
10421
10422# Dependencies to place before the objects being linked to create a
10423# shared library.
10424predep_objects=$lt_predep_objects
10425
10426# Dependencies to place after the objects being linked to create a
10427# shared library.
10428postdep_objects=$lt_postdep_objects
10429
10430# Dependencies to place before the objects being linked to create a
10431# shared library.
10432predeps=$lt_predeps
10433
10434# Dependencies to place after the objects being linked to create a
10435# shared library.
10436postdeps=$lt_postdeps
10437
10438# The library search path used internally by the compiler when linking
10439# a shared library.
10440compiler_lib_search_path=$lt_compiler_lib_search_path
10441
10442# Method to check whether dependent libraries are shared objects.
10443deplibs_check_method=$lt_deplibs_check_method
10444
10445# Command to use when deplibs_check_method == file_magic.
10446file_magic_cmd=$lt_file_magic_cmd
10447
10448# Flag that allows shared libraries with undefined symbols to be built.
10449allow_undefined_flag=$lt_allow_undefined_flag
10450
10451# Flag that forces no undefined symbols.
10452no_undefined_flag=$lt_no_undefined_flag
10453
10454# Commands used to finish a libtool library installation in a directory.
10455finish_cmds=$lt_finish_cmds
10456
10457# Same as above, but a single script fragment to be evaled but not shown.
10458finish_eval=$lt_finish_eval
10459
10460# Take the output of nm and produce a listing of raw symbols and C names.
10461global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10462
10463# Transform the output of nm in a proper C declaration
10464global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10465
10466# Transform the output of nm in a C name address pair
10467global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10468
10469# This is the shared library runtime path variable.
10470runpath_var=$runpath_var
10471
10472# This is the shared library path variable.
10473shlibpath_var=$shlibpath_var
10474
10475# Is shlibpath searched before the hard-coded library search path?
10476shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10477
10478# How to hardcode a shared library path into an executable.
10479hardcode_action=$hardcode_action
10480
10481# Whether we should hardcode library paths into libraries.
10482hardcode_into_libs=$hardcode_into_libs
10483
10484# Flag to hardcode \$libdir into a binary during linking.
10485# This must work even if \$libdir does not exist.
10486hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10487
10488# If ld is used when linking, flag to hardcode \$libdir into
10489# a binary during linking. This must work even if \$libdir does
10490# not exist.
10491hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10492
10493# Whether we need a single -rpath flag with a separated argument.
10494hardcode_libdir_separator=$lt_hardcode_libdir_separator
10495
10496# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10497# resulting binary.
10498hardcode_direct=$hardcode_direct
10499
10500# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10501# resulting binary.
10502hardcode_minus_L=$hardcode_minus_L
10503
10504# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10505# the resulting binary.
10506hardcode_shlibpath_var=$hardcode_shlibpath_var
10507
10508# Set to yes if building a shared library automatically hardcodes DIR into the library
10509# and all subsequent libraries and executables linked against it.
10510hardcode_automatic=$hardcode_automatic
10511
10512# Variables whose values should be saved in libtool wrapper scripts and
10513# restored at relink time.
10514variables_saved_for_relink="$variables_saved_for_relink"
10515
10516# Whether libtool must link a program against all its dependency libraries.
10517link_all_deplibs=$link_all_deplibs
10518
10519# Compile-time system search path for libraries
10520sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10521
10522# Run-time system search path for libraries
10523sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10524
10525# Fix the shell variable \$srcfile for the compiler.
10526fix_srcfile_path=$lt_fix_srcfile_path
10527
10528# Set to yes if exported symbols are required.
10529always_export_symbols=$always_export_symbols
10530
10531# The commands to list exported symbols.
10532export_symbols_cmds=$lt_export_symbols_cmds
10533
10534# The commands to extract the exported symbol list from a shared archive.
10535extract_expsyms_cmds=$lt_extract_expsyms_cmds
10536
10537# Symbols that should not be listed in the preloaded symbols.
10538exclude_expsyms=$lt_exclude_expsyms
10539
10540# Symbols that must always be exported.
10541include_expsyms=$lt_include_expsyms
10542
10543# ### END LIBTOOL CONFIG
10544
10545__EOF__
10546
10547
10548  case $host_os in
10549  aix3*)
10550    cat <<\EOF >> "$cfgfile"
10551
10552# AIX sometimes has problems with the GCC collect2 program.  For some
10553# reason, if we set the COLLECT_NAMES environment variable, the problems
10554# vanish in a puff of smoke.
10555if test "X${COLLECT_NAMES+set}" != Xset; then
10556  COLLECT_NAMES=
10557  export COLLECT_NAMES
10558fi
10559EOF
10560    ;;
10561  esac
10562
10563  # We use sed instead of cat because bash on DJGPP gets confused if
10564  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10565  # text mode, it properly converts lines to CR/LF.  This bash problem
10566  # is reportedly fixed, but why not run on old versions too?
10567  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10568
10569  mv -f "$cfgfile" "$ofile" || \
10570    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10571  chmod +x "$ofile"
10572
10573else
10574  # If there is no Makefile yet, we rely on a make rule to execute
10575  # `config.status --recheck' to rerun these tests and create the
10576  # libtool script then.
10577  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10578  if test -f "$ltmain_in"; then
10579    test -f Makefile && make "$ltmain"
10580  fi
10581fi
10582
10583
10584ac_ext=c
10585ac_cpp='$CPP $CPPFLAGS'
10586ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10587ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10588ac_compiler_gnu=$ac_cv_c_compiler_gnu
10589
10590CC="$lt_save_CC"
10591
10592
10593# Check whether --with-tags or --without-tags was given.
10594if test "${with_tags+set}" = set; then
10595  withval="$with_tags"
10596  tagnames="$withval"
10597fi;
10598
10599if test -f "$ltmain" && test -n "$tagnames"; then
10600  if test ! -f "${ofile}"; then
10601    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10602echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10603  fi
10604
10605  if test -z "$LTCC"; then
10606    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10607    if test -z "$LTCC"; then
10608      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10609echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10610    else
10611      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10612echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10613    fi
10614  fi
10615  if test -z "$LTCFLAGS"; then
10616    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10617  fi
10618
10619  # Extract list of available tagged configurations in $ofile.
10620  # Note that this assumes the entire list is on one line.
10621  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10622
10623  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10624  for tagname in $tagnames; do
10625    IFS="$lt_save_ifs"
10626    # Check whether tagname contains only valid characters
10627    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10628    "") ;;
10629    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10630echo "$as_me: error: invalid tag name: $tagname" >&2;}
10631   { (exit 1); exit 1; }; }
10632	;;
10633    esac
10634
10635    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10636    then
10637      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10638echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10639   { (exit 1); exit 1; }; }
10640    fi
10641
10642    # Update the list of available tags.
10643    if test -n "$tagname"; then
10644      echo appending configuration tag \"$tagname\" to $ofile
10645
10646      case $tagname in
10647      CXX)
10648	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10649	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10650	    (test "X$CXX" != "Xg++"))) ; then
10651	  ac_ext=cc
10652ac_cpp='$CXXCPP $CPPFLAGS'
10653ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10654ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10655ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10656
10657
10658
10659
10660archive_cmds_need_lc_CXX=no
10661allow_undefined_flag_CXX=
10662always_export_symbols_CXX=no
10663archive_expsym_cmds_CXX=
10664export_dynamic_flag_spec_CXX=
10665hardcode_direct_CXX=no
10666hardcode_libdir_flag_spec_CXX=
10667hardcode_libdir_flag_spec_ld_CXX=
10668hardcode_libdir_separator_CXX=
10669hardcode_minus_L_CXX=no
10670hardcode_shlibpath_var_CXX=unsupported
10671hardcode_automatic_CXX=no
10672module_cmds_CXX=
10673module_expsym_cmds_CXX=
10674link_all_deplibs_CXX=unknown
10675old_archive_cmds_CXX=$old_archive_cmds
10676no_undefined_flag_CXX=
10677whole_archive_flag_spec_CXX=
10678enable_shared_with_static_runtimes_CXX=no
10679
10680# Dependencies to place before and after the object being linked:
10681predep_objects_CXX=
10682postdep_objects_CXX=
10683predeps_CXX=
10684postdeps_CXX=
10685compiler_lib_search_path_CXX=
10686
10687# Source file extension for C++ test sources.
10688ac_ext=cpp
10689
10690# Object file extension for compiled C++ test sources.
10691objext=o
10692objext_CXX=$objext
10693
10694# Code to be used in simple compile tests
10695lt_simple_compile_test_code="int some_variable = 0;"
10696
10697# Code to be used in simple link tests
10698lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10699
10700# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10701
10702# If no C compiler was specified, use CC.
10703LTCC=${LTCC-"$CC"}
10704
10705# If no C compiler flags were specified, use CFLAGS.
10706LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10707
10708# Allow CC to be a program name with arguments.
10709compiler=$CC
10710
10711
10712# save warnings/boilerplate of simple test code
10713ac_outfile=conftest.$ac_objext
10714echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10715eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10716_lt_compiler_boilerplate=`cat conftest.err`
10717$rm conftest*
10718
10719ac_outfile=conftest.$ac_objext
10720echo "$lt_simple_link_test_code" >conftest.$ac_ext
10721eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10722_lt_linker_boilerplate=`cat conftest.err`
10723$rm conftest*
10724
10725
10726# Allow CC to be a program name with arguments.
10727lt_save_CC=$CC
10728lt_save_LD=$LD
10729lt_save_GCC=$GCC
10730GCC=$GXX
10731lt_save_with_gnu_ld=$with_gnu_ld
10732lt_save_path_LD=$lt_cv_path_LD
10733if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10734  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10735else
10736  $as_unset lt_cv_prog_gnu_ld
10737fi
10738if test -n "${lt_cv_path_LDCXX+set}"; then
10739  lt_cv_path_LD=$lt_cv_path_LDCXX
10740else
10741  $as_unset lt_cv_path_LD
10742fi
10743test -z "${LDCXX+set}" || LD=$LDCXX
10744CC=${CXX-"c++"}
10745compiler=$CC
10746compiler_CXX=$CC
10747for cc_temp in $compiler""; do
10748  case $cc_temp in
10749    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10750    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10751    \-*) ;;
10752    *) break;;
10753  esac
10754done
10755cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10756
10757
10758# We don't want -fno-exception wen compiling C++ code, so set the
10759# no_builtin_flag separately
10760if test "$GXX" = yes; then
10761  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10762else
10763  lt_prog_compiler_no_builtin_flag_CXX=
10764fi
10765
10766if test "$GXX" = yes; then
10767  # Set up default GNU C++ configuration
10768
10769
10770# Check whether --with-gnu-ld or --without-gnu-ld was given.
10771if test "${with_gnu_ld+set}" = set; then
10772  withval="$with_gnu_ld"
10773  test "$withval" = no || with_gnu_ld=yes
10774else
10775  with_gnu_ld=no
10776fi;
10777ac_prog=ld
10778if test "$GCC" = yes; then
10779  # Check if gcc -print-prog-name=ld gives a path.
10780  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10781echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10782  case $host in
10783  *-*-mingw*)
10784    # gcc leaves a trailing carriage return which upsets mingw
10785    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10786  *)
10787    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10788  esac
10789  case $ac_prog in
10790    # Accept absolute paths.
10791    [\\/]* | ?:[\\/]*)
10792      re_direlt='/[^/][^/]*/\.\./'
10793      # Canonicalize the pathname of ld
10794      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10795      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10796	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10797      done
10798      test -z "$LD" && LD="$ac_prog"
10799      ;;
10800  "")
10801    # If it fails, then pretend we aren't using GCC.
10802    ac_prog=ld
10803    ;;
10804  *)
10805    # If it is relative, then search for the first ld in PATH.
10806    with_gnu_ld=unknown
10807    ;;
10808  esac
10809elif test "$with_gnu_ld" = yes; then
10810  echo "$as_me:$LINENO: checking for GNU ld" >&5
10811echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10812else
10813  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10814echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10815fi
10816if test "${lt_cv_path_LD+set}" = set; then
10817  echo $ECHO_N "(cached) $ECHO_C" >&6
10818else
10819  if test -z "$LD"; then
10820  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10821  for ac_dir in $PATH; do
10822    IFS="$lt_save_ifs"
10823    test -z "$ac_dir" && ac_dir=.
10824    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10825      lt_cv_path_LD="$ac_dir/$ac_prog"
10826      # Check to see if the program is GNU ld.  I'd rather use --version,
10827      # but apparently some variants of GNU ld only accept -v.
10828      # Break only if it was the GNU/non-GNU ld that we prefer.
10829      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10830      *GNU* | *'with BFD'*)
10831	test "$with_gnu_ld" != no && break
10832	;;
10833      *)
10834	test "$with_gnu_ld" != yes && break
10835	;;
10836      esac
10837    fi
10838  done
10839  IFS="$lt_save_ifs"
10840else
10841  lt_cv_path_LD="$LD" # Let the user override the test with a path.
10842fi
10843fi
10844
10845LD="$lt_cv_path_LD"
10846if test -n "$LD"; then
10847  echo "$as_me:$LINENO: result: $LD" >&5
10848echo "${ECHO_T}$LD" >&6
10849else
10850  echo "$as_me:$LINENO: result: no" >&5
10851echo "${ECHO_T}no" >&6
10852fi
10853test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10854echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10855   { (exit 1); exit 1; }; }
10856echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10857echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10858if test "${lt_cv_prog_gnu_ld+set}" = set; then
10859  echo $ECHO_N "(cached) $ECHO_C" >&6
10860else
10861  # I'd rather use --version here, but apparently some GNU lds only accept -v.
10862case `$LD -v 2>&1 </dev/null` in
10863*GNU* | *'with BFD'*)
10864  lt_cv_prog_gnu_ld=yes
10865  ;;
10866*)
10867  lt_cv_prog_gnu_ld=no
10868  ;;
10869esac
10870fi
10871echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10872echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10873with_gnu_ld=$lt_cv_prog_gnu_ld
10874
10875
10876
10877  # Check if GNU C++ uses GNU ld as the underlying linker, since the
10878  # archiving commands below assume that GNU ld is being used.
10879  if test "$with_gnu_ld" = yes; then
10880    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10881    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'
10882
10883    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10884    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10885
10886    # If archive_cmds runs LD, not CC, wlarc should be empty
10887    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10888    #     investigate it a little bit more. (MM)
10889    wlarc='${wl}'
10890
10891    # ancient GNU ld didn't support --whole-archive et. al.
10892    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10893	grep 'no-whole-archive' > /dev/null; then
10894      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10895    else
10896      whole_archive_flag_spec_CXX=
10897    fi
10898  else
10899    with_gnu_ld=no
10900    wlarc=
10901
10902    # A generic and very simple default shared library creation
10903    # command for GNU C++ for the case where it uses the native
10904    # linker, instead of GNU ld.  If possible, this setting should
10905    # overridden to take advantage of the native linker features on
10906    # the platform it is being used on.
10907    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10908  fi
10909
10910  # Commands to make compiler produce verbose output that lists
10911  # what "hidden" libraries, object files and flags are used when
10912  # linking a shared library.
10913  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10914
10915else
10916  GXX=no
10917  with_gnu_ld=no
10918  wlarc=
10919fi
10920
10921# PORTME: fill in a description of your system's C++ link characteristics
10922echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10923echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10924ld_shlibs_CXX=yes
10925case $host_os in
10926  aix3*)
10927    # FIXME: insert proper C++ library support
10928    ld_shlibs_CXX=no
10929    ;;
10930  aix4* | aix5*)
10931    if test "$host_cpu" = ia64; then
10932      # On IA64, the linker does run time linking by default, so we don't
10933      # have to do anything special.
10934      aix_use_runtimelinking=no
10935      exp_sym_flag='-Bexport'
10936      no_entry_flag=""
10937    else
10938      aix_use_runtimelinking=no
10939
10940      # Test if we are trying to use run time linking or normal
10941      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10942      # need to do runtime linking.
10943      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10944	for ld_flag in $LDFLAGS; do
10945	  case $ld_flag in
10946	  *-brtl*)
10947	    aix_use_runtimelinking=yes
10948	    break
10949	    ;;
10950	  esac
10951	done
10952	;;
10953      esac
10954
10955      exp_sym_flag='-bexport'
10956      no_entry_flag='-bnoentry'
10957    fi
10958
10959    # When large executables or shared objects are built, AIX ld can
10960    # have problems creating the table of contents.  If linking a library
10961    # or program results in "error TOC overflow" add -mminimal-toc to
10962    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10963    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10964
10965    archive_cmds_CXX=''
10966    hardcode_direct_CXX=yes
10967    hardcode_libdir_separator_CXX=':'
10968    link_all_deplibs_CXX=yes
10969
10970    if test "$GXX" = yes; then
10971      case $host_os in aix4.[012]|aix4.[012].*)
10972      # We only want to do this on AIX 4.2 and lower, the check
10973      # below for broken collect2 doesn't work under 4.3+
10974	collect2name=`${CC} -print-prog-name=collect2`
10975	if test -f "$collect2name" && \
10976	   strings "$collect2name" | grep resolve_lib_name >/dev/null
10977	then
10978	  # We have reworked collect2
10979	  :
10980	else
10981	  # We have old collect2
10982	  hardcode_direct_CXX=unsupported
10983	  # It fails to find uninstalled libraries when the uninstalled
10984	  # path is not listed in the libpath.  Setting hardcode_minus_L
10985	  # to unsupported forces relinking
10986	  hardcode_minus_L_CXX=yes
10987	  hardcode_libdir_flag_spec_CXX='-L$libdir'
10988	  hardcode_libdir_separator_CXX=
10989	fi
10990	;;
10991      esac
10992      shared_flag='-shared'
10993      if test "$aix_use_runtimelinking" = yes; then
10994	shared_flag="$shared_flag "'${wl}-G'
10995      fi
10996    else
10997      # not using gcc
10998      if test "$host_cpu" = ia64; then
10999	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11000	# chokes on -Wl,-G. The following line is correct:
11001	shared_flag='-G'
11002      else
11003	if test "$aix_use_runtimelinking" = yes; then
11004	  shared_flag='${wl}-G'
11005	else
11006	  shared_flag='${wl}-bM:SRE'
11007	fi
11008      fi
11009    fi
11010
11011    # It seems that -bexpall does not export symbols beginning with
11012    # underscore (_), so it is better to generate a list of symbols to export.
11013    always_export_symbols_CXX=yes
11014    if test "$aix_use_runtimelinking" = yes; then
11015      # Warning - without using the other runtime loading flags (-brtl),
11016      # -berok will link without error, but may produce a broken library.
11017      allow_undefined_flag_CXX='-berok'
11018      # Determine the default libpath from the value encoded in an empty executable.
11019      cat >conftest.$ac_ext <<_ACEOF
11020/* confdefs.h.  */
11021_ACEOF
11022cat confdefs.h >>conftest.$ac_ext
11023cat >>conftest.$ac_ext <<_ACEOF
11024/* end confdefs.h.  */
11025
11026int
11027main ()
11028{
11029
11030  ;
11031  return 0;
11032}
11033_ACEOF
11034rm -f conftest.$ac_objext conftest$ac_exeext
11035if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11036  (eval $ac_link) 2>conftest.er1
11037  ac_status=$?
11038  grep -v '^ *+' conftest.er1 >conftest.err
11039  rm -f conftest.er1
11040  cat conftest.err >&5
11041  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11042  (exit $ac_status); } &&
11043	 { ac_try='test -z "$ac_cxx_werror_flag"
11044			 || test ! -s conftest.err'
11045  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11046  (eval $ac_try) 2>&5
11047  ac_status=$?
11048  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11049  (exit $ac_status); }; } &&
11050	 { ac_try='test -s conftest$ac_exeext'
11051  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11052  (eval $ac_try) 2>&5
11053  ac_status=$?
11054  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11055  (exit $ac_status); }; }; then
11056
11057lt_aix_libpath_sed='
11058    /Import File Strings/,/^$/ {
11059	/^0/ {
11060	    s/^0  *\(.*\)$/\1/
11061	    p
11062	}
11063    }'
11064aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11065# Check for a 64-bit object if we didn't find anything.
11066if test -z "$aix_libpath"; then
11067  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11068fi
11069else
11070  echo "$as_me: failed program was:" >&5
11071sed 's/^/| /' conftest.$ac_ext >&5
11072
11073fi
11074rm -f conftest.err conftest.$ac_objext \
11075      conftest$ac_exeext conftest.$ac_ext
11076if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11077
11078      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11079
11080      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"
11081     else
11082      if test "$host_cpu" = ia64; then
11083	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11084	allow_undefined_flag_CXX="-z nodefs"
11085	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"
11086      else
11087	# Determine the default libpath from the value encoded in an empty executable.
11088	cat >conftest.$ac_ext <<_ACEOF
11089/* confdefs.h.  */
11090_ACEOF
11091cat confdefs.h >>conftest.$ac_ext
11092cat >>conftest.$ac_ext <<_ACEOF
11093/* end confdefs.h.  */
11094
11095int
11096main ()
11097{
11098
11099  ;
11100  return 0;
11101}
11102_ACEOF
11103rm -f conftest.$ac_objext conftest$ac_exeext
11104if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11105  (eval $ac_link) 2>conftest.er1
11106  ac_status=$?
11107  grep -v '^ *+' conftest.er1 >conftest.err
11108  rm -f conftest.er1
11109  cat conftest.err >&5
11110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11111  (exit $ac_status); } &&
11112	 { ac_try='test -z "$ac_cxx_werror_flag"
11113			 || test ! -s conftest.err'
11114  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11115  (eval $ac_try) 2>&5
11116  ac_status=$?
11117  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11118  (exit $ac_status); }; } &&
11119	 { ac_try='test -s conftest$ac_exeext'
11120  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11121  (eval $ac_try) 2>&5
11122  ac_status=$?
11123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11124  (exit $ac_status); }; }; then
11125
11126lt_aix_libpath_sed='
11127    /Import File Strings/,/^$/ {
11128	/^0/ {
11129	    s/^0  *\(.*\)$/\1/
11130	    p
11131	}
11132    }'
11133aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11134# Check for a 64-bit object if we didn't find anything.
11135if test -z "$aix_libpath"; then
11136  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11137fi
11138else
11139  echo "$as_me: failed program was:" >&5
11140sed 's/^/| /' conftest.$ac_ext >&5
11141
11142fi
11143rm -f conftest.err conftest.$ac_objext \
11144      conftest$ac_exeext conftest.$ac_ext
11145if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11146
11147	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11148	# Warning - without using the other run time loading flags,
11149	# -berok will link without error, but may produce a broken library.
11150	no_undefined_flag_CXX=' ${wl}-bernotok'
11151	allow_undefined_flag_CXX=' ${wl}-berok'
11152	# Exported symbols can be pulled into shared objects from archives
11153	whole_archive_flag_spec_CXX='$convenience'
11154	archive_cmds_need_lc_CXX=yes
11155	# This is similar to how AIX traditionally builds its shared libraries.
11156	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'
11157      fi
11158    fi
11159    ;;
11160
11161  beos*)
11162    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11163      allow_undefined_flag_CXX=unsupported
11164      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11165      # support --undefined.  This deserves some investigation.  FIXME
11166      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11167    else
11168      ld_shlibs_CXX=no
11169    fi
11170    ;;
11171
11172  chorus*)
11173    case $cc_basename in
11174      *)
11175	# FIXME: insert proper C++ library support
11176	ld_shlibs_CXX=no
11177	;;
11178    esac
11179    ;;
11180
11181  cygwin* | mingw* | pw32*)
11182    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11183    # as there is no search path for DLLs.
11184    hardcode_libdir_flag_spec_CXX='-L$libdir'
11185    allow_undefined_flag_CXX=unsupported
11186    always_export_symbols_CXX=no
11187    enable_shared_with_static_runtimes_CXX=yes
11188
11189    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11190      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'
11191      # If the export-symbols file already is a .def file (1st line
11192      # is EXPORTS), use it as is; otherwise, prepend...
11193      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11194	cp $export_symbols $output_objdir/$soname.def;
11195      else
11196	echo EXPORTS > $output_objdir/$soname.def;
11197	cat $export_symbols >> $output_objdir/$soname.def;
11198      fi~
11199      $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'
11200    else
11201      ld_shlibs_CXX=no
11202    fi
11203  ;;
11204      darwin* | rhapsody*)
11205        case $host_os in
11206        rhapsody* | darwin1.[012])
11207         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11208         ;;
11209       *) # Darwin 1.3 on
11210         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11211           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11212         else
11213           case ${MACOSX_DEPLOYMENT_TARGET} in
11214             10.[012])
11215               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11216               ;;
11217             10.*)
11218               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11219               ;;
11220           esac
11221         fi
11222         ;;
11223        esac
11224      archive_cmds_need_lc_CXX=no
11225      hardcode_direct_CXX=no
11226      hardcode_automatic_CXX=yes
11227      hardcode_shlibpath_var_CXX=unsupported
11228      whole_archive_flag_spec_CXX=''
11229      link_all_deplibs_CXX=yes
11230
11231    if test "$GXX" = yes ; then
11232      lt_int_apple_cc_single_mod=no
11233      output_verbose_link_cmd='echo'
11234      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11235       lt_int_apple_cc_single_mod=yes
11236      fi
11237      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11238       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11239      else
11240          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'
11241        fi
11242        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11243        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11244          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11245            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}'
11246          else
11247            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}'
11248          fi
11249            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}'
11250      else
11251      case $cc_basename in
11252        xlc*)
11253         output_verbose_link_cmd='echo'
11254          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11255          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11256          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11257          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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11258          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}'
11259          ;;
11260       *)
11261         ld_shlibs_CXX=no
11262          ;;
11263      esac
11264      fi
11265        ;;
11266
11267  dgux*)
11268    case $cc_basename in
11269      ec++*)
11270	# FIXME: insert proper C++ library support
11271	ld_shlibs_CXX=no
11272	;;
11273      ghcx*)
11274	# Green Hills C++ Compiler
11275	# FIXME: insert proper C++ library support
11276	ld_shlibs_CXX=no
11277	;;
11278      *)
11279	# FIXME: insert proper C++ library support
11280	ld_shlibs_CXX=no
11281	;;
11282    esac
11283    ;;
11284  freebsd[12]*)
11285    # C++ shared libraries reported to be fairly broken before switch to ELF
11286    ld_shlibs_CXX=no
11287    ;;
11288  freebsd-elf*)
11289    archive_cmds_need_lc_CXX=no
11290    ;;
11291  freebsd* | dragonfly*)
11292    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11293    # conventions
11294    ld_shlibs_CXX=yes
11295    ;;
11296  gnu*)
11297    ;;
11298  hpux9*)
11299    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11300    hardcode_libdir_separator_CXX=:
11301    export_dynamic_flag_spec_CXX='${wl}-E'
11302    hardcode_direct_CXX=yes
11303    hardcode_minus_L_CXX=yes # Not in the search PATH,
11304				# but as the default
11305				# location of the library.
11306
11307    case $cc_basename in
11308    CC*)
11309      # FIXME: insert proper C++ library support
11310      ld_shlibs_CXX=no
11311      ;;
11312    aCC*)
11313      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'
11314      # Commands to make compiler produce verbose output that lists
11315      # what "hidden" libraries, object files and flags are used when
11316      # linking a shared library.
11317      #
11318      # There doesn't appear to be a way to prevent this compiler from
11319      # explicitly linking system object files so we need to strip them
11320      # from the output so that they don't get included in the library
11321      # dependencies.
11322      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'
11323      ;;
11324    *)
11325      if test "$GXX" = yes; then
11326        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'
11327      else
11328        # FIXME: insert proper C++ library support
11329        ld_shlibs_CXX=no
11330      fi
11331      ;;
11332    esac
11333    ;;
11334  hpux10*|hpux11*)
11335    if test $with_gnu_ld = no; then
11336      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11337      hardcode_libdir_separator_CXX=:
11338
11339      case $host_cpu in
11340      hppa*64*|ia64*) ;;
11341      *)
11342	export_dynamic_flag_spec_CXX='${wl}-E'
11343        ;;
11344      esac
11345    fi
11346    case $host_cpu in
11347    hppa*64*|ia64*)
11348      hardcode_direct_CXX=no
11349      hardcode_shlibpath_var_CXX=no
11350      ;;
11351    *)
11352      hardcode_direct_CXX=yes
11353      hardcode_minus_L_CXX=yes # Not in the search PATH,
11354					      # but as the default
11355					      # location of the library.
11356      ;;
11357    esac
11358
11359    case $cc_basename in
11360      CC*)
11361	# FIXME: insert proper C++ library support
11362	ld_shlibs_CXX=no
11363	;;
11364      aCC*)
11365	case $host_cpu in
11366	hppa*64*)
11367	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11368	  ;;
11369	ia64*)
11370	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11371	  ;;
11372	*)
11373	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11374	  ;;
11375	esac
11376	# Commands to make compiler produce verbose output that lists
11377	# what "hidden" libraries, object files and flags are used when
11378	# linking a shared library.
11379	#
11380	# There doesn't appear to be a way to prevent this compiler from
11381	# explicitly linking system object files so we need to strip them
11382	# from the output so that they don't get included in the library
11383	# dependencies.
11384	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'
11385	;;
11386      *)
11387	if test "$GXX" = yes; then
11388	  if test $with_gnu_ld = no; then
11389	    case $host_cpu in
11390	    hppa*64*)
11391	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11392	      ;;
11393	    ia64*)
11394	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11395	      ;;
11396	    *)
11397	      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'
11398	      ;;
11399	    esac
11400	  fi
11401	else
11402	  # FIXME: insert proper C++ library support
11403	  ld_shlibs_CXX=no
11404	fi
11405	;;
11406    esac
11407    ;;
11408  interix[3-9]*)
11409    hardcode_direct_CXX=no
11410    hardcode_shlibpath_var_CXX=no
11411    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11412    export_dynamic_flag_spec_CXX='${wl}-E'
11413    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11414    # Instead, shared libraries are loaded at an image base (0x10000000 by
11415    # default) and relocated if they conflict, which is a slow very memory
11416    # consuming and fragmenting process.  To avoid this, we pick a random,
11417    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11418    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11419    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'
11420    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'
11421    ;;
11422  irix5* | irix6*)
11423    case $cc_basename in
11424      CC*)
11425	# SGI C++
11426	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'
11427
11428	# Archives containing C++ object files must be created using
11429	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11430	# necessary to make sure instantiated templates are included
11431	# in the archive.
11432	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11433	;;
11434      *)
11435	if test "$GXX" = yes; then
11436	  if test "$with_gnu_ld" = no; then
11437	    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'
11438	  else
11439	    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'
11440	  fi
11441	fi
11442	link_all_deplibs_CXX=yes
11443	;;
11444    esac
11445    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11446    hardcode_libdir_separator_CXX=:
11447    ;;
11448  linux* | k*bsd*-gnu)
11449    case $cc_basename in
11450      KCC*)
11451	# Kuck and Associates, Inc. (KAI) C++ Compiler
11452
11453	# KCC will only create a shared library if the output file
11454	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11455	# to its proper name (with version) after linking.
11456	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'
11457	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'
11458	# Commands to make compiler produce verbose output that lists
11459	# what "hidden" libraries, object files and flags are used when
11460	# linking a shared library.
11461	#
11462	# There doesn't appear to be a way to prevent this compiler from
11463	# explicitly linking system object files so we need to strip them
11464	# from the output so that they don't get included in the library
11465	# dependencies.
11466	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'
11467
11468	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11469	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11470
11471	# Archives containing C++ object files must be created using
11472	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11473	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11474	;;
11475      icpc*)
11476	# Intel C++
11477	with_gnu_ld=yes
11478	# version 8.0 and above of icpc choke on multiply defined symbols
11479	# if we add $predep_objects and $postdep_objects, however 7.1 and
11480	# earlier do not add the objects themselves.
11481	case `$CC -V 2>&1` in
11482	*"Version 7."*)
11483  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11484  	  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'
11485	  ;;
11486	*)  # Version 8.0 or newer
11487	  tmp_idyn=
11488	  case $host_cpu in
11489	    ia64*) tmp_idyn=' -i_dynamic';;
11490	  esac
11491  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11492	  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'
11493	  ;;
11494	esac
11495	archive_cmds_need_lc_CXX=no
11496	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11497	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11498	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11499	;;
11500      pgCC*)
11501        # Portland Group C++ compiler
11502	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11503  	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'
11504
11505	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11506	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11507	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'
11508        ;;
11509      cxx*)
11510	# Compaq C++
11511	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11512	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'
11513
11514	runpath_var=LD_RUN_PATH
11515	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11516	hardcode_libdir_separator_CXX=:
11517
11518	# Commands to make compiler produce verbose output that lists
11519	# what "hidden" libraries, object files and flags are used when
11520	# linking a shared library.
11521	#
11522	# There doesn't appear to be a way to prevent this compiler from
11523	# explicitly linking system object files so we need to strip them
11524	# from the output so that they don't get included in the library
11525	# dependencies.
11526	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'
11527	;;
11528      *)
11529	case `$CC -V 2>&1 | sed 5q` in
11530	*Sun\ C*)
11531	  # Sun C++ 5.9
11532	  no_undefined_flag_CXX=' -zdefs'
11533	  archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11534	  archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
11535	  hardcode_libdir_flag_spec_CXX='-R$libdir'
11536	  whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11537
11538	  # Not sure whether something based on
11539	  # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11540	  # would be better.
11541	  output_verbose_link_cmd='echo'
11542
11543	  # Archives containing C++ object files must be created using
11544	  # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11545	  # necessary to make sure instantiated templates are included
11546	  # in the archive.
11547	  old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11548	  ;;
11549	esac
11550	;;
11551    esac
11552    ;;
11553  lynxos*)
11554    # FIXME: insert proper C++ library support
11555    ld_shlibs_CXX=no
11556    ;;
11557  m88k*)
11558    # FIXME: insert proper C++ library support
11559    ld_shlibs_CXX=no
11560    ;;
11561  mvs*)
11562    case $cc_basename in
11563      cxx*)
11564	# FIXME: insert proper C++ library support
11565	ld_shlibs_CXX=no
11566	;;
11567      *)
11568	# FIXME: insert proper C++ library support
11569	ld_shlibs_CXX=no
11570	;;
11571    esac
11572    ;;
11573  netbsd*)
11574    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11575      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11576      wlarc=
11577      hardcode_libdir_flag_spec_CXX='-R$libdir'
11578      hardcode_direct_CXX=yes
11579      hardcode_shlibpath_var_CXX=no
11580    fi
11581    # Workaround some broken pre-1.5 toolchains
11582    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11583    ;;
11584  openbsd2*)
11585    # C++ shared libraries are fairly broken
11586    ld_shlibs_CXX=no
11587    ;;
11588  openbsd*)
11589    if test -f /usr/libexec/ld.so; then
11590      hardcode_direct_CXX=yes
11591      hardcode_shlibpath_var_CXX=no
11592      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11593      hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11594      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11595	archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11596	export_dynamic_flag_spec_CXX='${wl}-E'
11597	whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11598      fi
11599      output_verbose_link_cmd='echo'
11600    else
11601      ld_shlibs_CXX=no
11602    fi
11603    ;;
11604  osf3*)
11605    case $cc_basename in
11606      KCC*)
11607	# Kuck and Associates, Inc. (KAI) C++ Compiler
11608
11609	# KCC will only create a shared library if the output file
11610	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11611	# to its proper name (with version) after linking.
11612	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'
11613
11614	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11615	hardcode_libdir_separator_CXX=:
11616
11617	# Archives containing C++ object files must be created using
11618	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11619	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11620
11621	;;
11622      RCC*)
11623	# Rational C++ 2.4.1
11624	# FIXME: insert proper C++ library support
11625	ld_shlibs_CXX=no
11626	;;
11627      cxx*)
11628	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11629	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'
11630
11631	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11632	hardcode_libdir_separator_CXX=:
11633
11634	# Commands to make compiler produce verbose output that lists
11635	# what "hidden" libraries, object files and flags are used when
11636	# linking a shared library.
11637	#
11638	# There doesn't appear to be a way to prevent this compiler from
11639	# explicitly linking system object files so we need to strip them
11640	# from the output so that they don't get included in the library
11641	# dependencies.
11642	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'
11643	;;
11644      *)
11645	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11646	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11647	  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'
11648
11649	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11650	  hardcode_libdir_separator_CXX=:
11651
11652	  # Commands to make compiler produce verbose output that lists
11653	  # what "hidden" libraries, object files and flags are used when
11654	  # linking a shared library.
11655	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11656
11657	else
11658	  # FIXME: insert proper C++ library support
11659	  ld_shlibs_CXX=no
11660	fi
11661	;;
11662    esac
11663    ;;
11664  osf4* | osf5*)
11665    case $cc_basename in
11666      KCC*)
11667	# Kuck and Associates, Inc. (KAI) C++ Compiler
11668
11669	# KCC will only create a shared library if the output file
11670	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11671	# to its proper name (with version) after linking.
11672	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'
11673
11674	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11675	hardcode_libdir_separator_CXX=:
11676
11677	# Archives containing C++ object files must be created using
11678	# the KAI C++ compiler.
11679	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11680	;;
11681      RCC*)
11682	# Rational C++ 2.4.1
11683	# FIXME: insert proper C++ library support
11684	ld_shlibs_CXX=no
11685	;;
11686      cxx*)
11687	allow_undefined_flag_CXX=' -expect_unresolved \*'
11688	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'
11689	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11690	  echo "-hidden">> $lib.exp~
11691	  $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~
11692	  $rm $lib.exp'
11693
11694	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11695	hardcode_libdir_separator_CXX=:
11696
11697	# Commands to make compiler produce verbose output that lists
11698	# what "hidden" libraries, object files and flags are used when
11699	# linking a shared library.
11700	#
11701	# There doesn't appear to be a way to prevent this compiler from
11702	# explicitly linking system object files so we need to strip them
11703	# from the output so that they don't get included in the library
11704	# dependencies.
11705	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'
11706	;;
11707      *)
11708	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11709	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11710	 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'
11711
11712	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11713	  hardcode_libdir_separator_CXX=:
11714
11715	  # Commands to make compiler produce verbose output that lists
11716	  # what "hidden" libraries, object files and flags are used when
11717	  # linking a shared library.
11718	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11719
11720	else
11721	  # FIXME: insert proper C++ library support
11722	  ld_shlibs_CXX=no
11723	fi
11724	;;
11725    esac
11726    ;;
11727  psos*)
11728    # FIXME: insert proper C++ library support
11729    ld_shlibs_CXX=no
11730    ;;
11731  sunos4*)
11732    case $cc_basename in
11733      CC*)
11734	# Sun C++ 4.x
11735	# FIXME: insert proper C++ library support
11736	ld_shlibs_CXX=no
11737	;;
11738      lcc*)
11739	# Lucid
11740	# FIXME: insert proper C++ library support
11741	ld_shlibs_CXX=no
11742	;;
11743      *)
11744	# FIXME: insert proper C++ library support
11745	ld_shlibs_CXX=no
11746	;;
11747    esac
11748    ;;
11749  solaris*)
11750    case $cc_basename in
11751      CC*)
11752	# Sun C++ 4.2, 5.x and Centerline C++
11753        archive_cmds_need_lc_CXX=yes
11754	no_undefined_flag_CXX=' -zdefs'
11755	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11756	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11757	$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'
11758
11759	hardcode_libdir_flag_spec_CXX='-R$libdir'
11760	hardcode_shlibpath_var_CXX=no
11761	case $host_os in
11762	  solaris2.[0-5] | solaris2.[0-5].*) ;;
11763	  *)
11764	    # The compiler driver will combine and reorder linker options,
11765	    # but understands `-z linker_flag'.
11766	    # Supported since Solaris 2.6 (maybe 2.5.1?)
11767	    whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
11768	    ;;
11769	esac
11770	link_all_deplibs_CXX=yes
11771
11772	output_verbose_link_cmd='echo'
11773
11774	# Archives containing C++ object files must be created using
11775	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
11776	# necessary to make sure instantiated templates are included
11777	# in the archive.
11778	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11779	;;
11780      gcx*)
11781	# Green Hills C++ Compiler
11782	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11783
11784	# The C++ compiler must be used to create the archive.
11785	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11786	;;
11787      *)
11788	# GNU C++ compiler with Solaris linker
11789	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11790	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11791	  if $CC --version | grep -v '^2\.7' > /dev/null; then
11792	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11793	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11794		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11795
11796	    # Commands to make compiler produce verbose output that lists
11797	    # what "hidden" libraries, object files and flags are used when
11798	    # linking a shared library.
11799	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11800	  else
11801	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
11802	    # platform.
11803	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11804	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11805		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11806
11807	    # Commands to make compiler produce verbose output that lists
11808	    # what "hidden" libraries, object files and flags are used when
11809	    # linking a shared library.
11810	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11811	  fi
11812
11813	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11814	  case $host_os in
11815	  solaris2.[0-5] | solaris2.[0-5].*) ;;
11816	  *)
11817	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11818	    ;;
11819	  esac
11820	fi
11821	;;
11822    esac
11823    ;;
11824  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11825    no_undefined_flag_CXX='${wl}-z,text'
11826    archive_cmds_need_lc_CXX=no
11827    hardcode_shlibpath_var_CXX=no
11828    runpath_var='LD_RUN_PATH'
11829
11830    case $cc_basename in
11831      CC*)
11832	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11833	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11834	;;
11835      *)
11836	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11837	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11838	;;
11839    esac
11840    ;;
11841  sysv5* | sco3.2v5* | sco5v6*)
11842    # Note: We can NOT use -z defs as we might desire, because we do not
11843    # link with -lc, and that would cause any symbols used from libc to
11844    # always be unresolved, which means just about no library would
11845    # ever link correctly.  If we're not using GNU ld we use -z text
11846    # though, which does catch some bad symbols but isn't as heavy-handed
11847    # as -z defs.
11848    # For security reasons, it is highly recommended that you always
11849    # use absolute paths for naming shared libraries, and exclude the
11850    # DT_RUNPATH tag from executables and libraries.  But doing so
11851    # requires that you compile everything twice, which is a pain.
11852    # So that behaviour is only enabled if SCOABSPATH is set to a
11853    # non-empty value in the environment.  Most likely only useful for
11854    # creating official distributions of packages.
11855    # This is a hack until libtool officially supports absolute path
11856    # names for shared libraries.
11857    no_undefined_flag_CXX='${wl}-z,text'
11858    allow_undefined_flag_CXX='${wl}-z,nodefs'
11859    archive_cmds_need_lc_CXX=no
11860    hardcode_shlibpath_var_CXX=no
11861    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11862    hardcode_libdir_separator_CXX=':'
11863    link_all_deplibs_CXX=yes
11864    export_dynamic_flag_spec_CXX='${wl}-Bexport'
11865    runpath_var='LD_RUN_PATH'
11866
11867    case $cc_basename in
11868      CC*)
11869	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11870	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11871	;;
11872      *)
11873	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11874	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11875	;;
11876    esac
11877    ;;
11878  tandem*)
11879    case $cc_basename in
11880      NCC*)
11881	# NonStop-UX NCC 3.20
11882	# FIXME: insert proper C++ library support
11883	ld_shlibs_CXX=no
11884	;;
11885      *)
11886	# FIXME: insert proper C++ library support
11887	ld_shlibs_CXX=no
11888	;;
11889    esac
11890    ;;
11891  vxworks*)
11892    # FIXME: insert proper C++ library support
11893    ld_shlibs_CXX=no
11894    ;;
11895  *)
11896    # FIXME: insert proper C++ library support
11897    ld_shlibs_CXX=no
11898    ;;
11899esac
11900echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11901echo "${ECHO_T}$ld_shlibs_CXX" >&6
11902test "$ld_shlibs_CXX" = no && can_build_shared=no
11903
11904GCC_CXX="$GXX"
11905LD_CXX="$LD"
11906
11907## CAVEAT EMPTOR:
11908## There is no encapsulation within the following macros, do not change
11909## the running order or otherwise move them around unless you know exactly
11910## what you are doing...
11911
11912cat > conftest.$ac_ext <<EOF
11913class Foo
11914{
11915public:
11916  Foo (void) { a = 0; }
11917private:
11918  int a;
11919};
11920EOF
11921
11922if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11923  (eval $ac_compile) 2>&5
11924  ac_status=$?
11925  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11926  (exit $ac_status); }; then
11927  # Parse the compiler output and extract the necessary
11928  # objects, libraries and library flags.
11929
11930  # Sentinel used to keep track of whether or not we are before
11931  # the conftest object file.
11932  pre_test_object_deps_done=no
11933
11934  # The `*' in the case matches for architectures that use `case' in
11935  # $output_verbose_cmd can trigger glob expansion during the loop
11936  # eval without this substitution.
11937  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11938
11939  for p in `eval $output_verbose_link_cmd`; do
11940    case $p in
11941
11942    -L* | -R* | -l*)
11943       # Some compilers place space between "-{L,R}" and the path.
11944       # Remove the space.
11945       if test $p = "-L" \
11946	  || test $p = "-R"; then
11947	 prev=$p
11948	 continue
11949       else
11950	 prev=
11951       fi
11952
11953       if test "$pre_test_object_deps_done" = no; then
11954	 case $p in
11955	 -L* | -R*)
11956	   # Internal compiler library paths should come after those
11957	   # provided the user.  The postdeps already come after the
11958	   # user supplied libs so there is no need to process them.
11959	   if test -z "$compiler_lib_search_path_CXX"; then
11960	     compiler_lib_search_path_CXX="${prev}${p}"
11961	   else
11962	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11963	   fi
11964	   ;;
11965	 # The "-l" case would never come before the object being
11966	 # linked, so don't bother handling this case.
11967	 esac
11968       else
11969	 if test -z "$postdeps_CXX"; then
11970	   postdeps_CXX="${prev}${p}"
11971	 else
11972	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11973	 fi
11974       fi
11975       ;;
11976
11977    *.$objext)
11978       # This assumes that the test object file only shows up
11979       # once in the compiler output.
11980       if test "$p" = "conftest.$objext"; then
11981	 pre_test_object_deps_done=yes
11982	 continue
11983       fi
11984
11985       if test "$pre_test_object_deps_done" = no; then
11986	 if test -z "$predep_objects_CXX"; then
11987	   predep_objects_CXX="$p"
11988	 else
11989	   predep_objects_CXX="$predep_objects_CXX $p"
11990	 fi
11991       else
11992	 if test -z "$postdep_objects_CXX"; then
11993	   postdep_objects_CXX="$p"
11994	 else
11995	   postdep_objects_CXX="$postdep_objects_CXX $p"
11996	 fi
11997       fi
11998       ;;
11999
12000    *) ;; # Ignore the rest.
12001
12002    esac
12003  done
12004
12005  # Clean up.
12006  rm -f a.out a.exe
12007else
12008  echo "libtool.m4: error: problem compiling CXX test program"
12009fi
12010
12011$rm -f confest.$objext
12012
12013# PORTME: override above test on systems where it is broken
12014case $host_os in
12015interix[3-9]*)
12016  # Interix 3.5 installs completely hosed .la files for C++, so rather than
12017  # hack all around it, let's just trust "g++" to DTRT.
12018  predep_objects_CXX=
12019  postdep_objects_CXX=
12020  postdeps_CXX=
12021  ;;
12022
12023linux*)
12024  case `$CC -V 2>&1 | sed 5q` in
12025  *Sun\ C*)
12026    # Sun C++ 5.9
12027    #
12028    # The more standards-conforming stlport4 library is
12029    # incompatible with the Cstd library. Avoid specifying
12030    # it if it's in CXXFLAGS. Ignore libCrun as
12031    # -library=stlport4 depends on it.
12032    case " $CXX $CXXFLAGS " in
12033    *" -library=stlport4 "*)
12034      solaris_use_stlport4=yes
12035      ;;
12036    esac
12037    if test "$solaris_use_stlport4" != yes; then
12038      postdeps_CXX='-library=Cstd -library=Crun'
12039    fi
12040    ;;
12041  esac
12042  ;;
12043
12044solaris*)
12045  case $cc_basename in
12046  CC*)
12047    # The more standards-conforming stlport4 library is
12048    # incompatible with the Cstd library. Avoid specifying
12049    # it if it's in CXXFLAGS. Ignore libCrun as
12050    # -library=stlport4 depends on it.
12051    case " $CXX $CXXFLAGS " in
12052    *" -library=stlport4 "*)
12053      solaris_use_stlport4=yes
12054      ;;
12055    esac
12056
12057    # Adding this requires a known-good setup of shared libraries for
12058    # Sun compiler versions before 5.6, else PIC objects from an old
12059    # archive will be linked into the output, leading to subtle bugs.
12060    if test "$solaris_use_stlport4" != yes; then
12061      postdeps_CXX='-library=Cstd -library=Crun'
12062    fi
12063    ;;
12064  esac
12065  ;;
12066esac
12067
12068
12069case " $postdeps_CXX " in
12070*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12071esac
12072
12073lt_prog_compiler_wl_CXX=
12074lt_prog_compiler_pic_CXX=
12075lt_prog_compiler_static_CXX=
12076
12077echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12078echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12079
12080  # C++ specific cases for pic, static, wl, etc.
12081  if test "$GXX" = yes; then
12082    lt_prog_compiler_wl_CXX='-Wl,'
12083    lt_prog_compiler_static_CXX='-static'
12084
12085    case $host_os in
12086    aix*)
12087      # All AIX code is PIC.
12088      if test "$host_cpu" = ia64; then
12089	# AIX 5 now supports IA64 processor
12090	lt_prog_compiler_static_CXX='-Bstatic'
12091      fi
12092      ;;
12093    amigaos*)
12094      # FIXME: we need at least 68020 code to build shared libraries, but
12095      # adding the `-m68020' flag to GCC prevents building anything better,
12096      # like `-m68040'.
12097      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12098      ;;
12099    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12100      # PIC is the default for these OSes.
12101      ;;
12102    mingw* | cygwin* | os2* | pw32*)
12103      # This hack is so that the source file can tell whether it is being
12104      # built for inclusion in a dll (and should export symbols for example).
12105      # Although the cygwin gcc ignores -fPIC, still need this for old-style
12106      # (--disable-auto-import) libraries
12107      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12108      ;;
12109    darwin* | rhapsody*)
12110      # PIC is the default on this platform
12111      # Common symbols not allowed in MH_DYLIB files
12112      lt_prog_compiler_pic_CXX='-fno-common'
12113      ;;
12114    *djgpp*)
12115      # DJGPP does not support shared libraries at all
12116      lt_prog_compiler_pic_CXX=
12117      ;;
12118    interix[3-9]*)
12119      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12120      # Instead, we relocate shared libraries at runtime.
12121      ;;
12122    sysv4*MP*)
12123      if test -d /usr/nec; then
12124	lt_prog_compiler_pic_CXX=-Kconform_pic
12125      fi
12126      ;;
12127    hpux*)
12128      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12129      # not for PA HP-UX.
12130      case $host_cpu in
12131      hppa*64*|ia64*)
12132	;;
12133      *)
12134	lt_prog_compiler_pic_CXX='-fPIC'
12135	;;
12136      esac
12137      ;;
12138    *)
12139      lt_prog_compiler_pic_CXX='-fPIC'
12140      ;;
12141    esac
12142  else
12143    case $host_os in
12144      aix4* | aix5*)
12145	# All AIX code is PIC.
12146	if test "$host_cpu" = ia64; then
12147	  # AIX 5 now supports IA64 processor
12148	  lt_prog_compiler_static_CXX='-Bstatic'
12149	else
12150	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12151	fi
12152	;;
12153      chorus*)
12154	case $cc_basename in
12155	cxch68*)
12156	  # Green Hills C++ Compiler
12157	  # _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"
12158	  ;;
12159	esac
12160	;;
12161       darwin*)
12162         # PIC is the default on this platform
12163         # Common symbols not allowed in MH_DYLIB files
12164         case $cc_basename in
12165           xlc*)
12166           lt_prog_compiler_pic_CXX='-qnocommon'
12167           lt_prog_compiler_wl_CXX='-Wl,'
12168           ;;
12169         esac
12170       ;;
12171      dgux*)
12172	case $cc_basename in
12173	  ec++*)
12174	    lt_prog_compiler_pic_CXX='-KPIC'
12175	    ;;
12176	  ghcx*)
12177	    # Green Hills C++ Compiler
12178	    lt_prog_compiler_pic_CXX='-pic'
12179	    ;;
12180	  *)
12181	    ;;
12182	esac
12183	;;
12184      freebsd* | dragonfly*)
12185	# FreeBSD uses GNU C++
12186	;;
12187      hpux9* | hpux10* | hpux11*)
12188	case $cc_basename in
12189	  CC*)
12190	    lt_prog_compiler_wl_CXX='-Wl,'
12191	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12192	    if test "$host_cpu" != ia64; then
12193	      lt_prog_compiler_pic_CXX='+Z'
12194	    fi
12195	    ;;
12196	  aCC*)
12197	    lt_prog_compiler_wl_CXX='-Wl,'
12198	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12199	    case $host_cpu in
12200	    hppa*64*|ia64*)
12201	      # +Z the default
12202	      ;;
12203	    *)
12204	      lt_prog_compiler_pic_CXX='+Z'
12205	      ;;
12206	    esac
12207	    ;;
12208	  *)
12209	    ;;
12210	esac
12211	;;
12212      interix*)
12213	# This is c89, which is MS Visual C++ (no shared libs)
12214	# Anyone wants to do a port?
12215	;;
12216      irix5* | irix6* | nonstopux*)
12217	case $cc_basename in
12218	  CC*)
12219	    lt_prog_compiler_wl_CXX='-Wl,'
12220	    lt_prog_compiler_static_CXX='-non_shared'
12221	    # CC pic flag -KPIC is the default.
12222	    ;;
12223	  *)
12224	    ;;
12225	esac
12226	;;
12227      linux* | k*bsd*-gnu)
12228	case $cc_basename in
12229	  KCC*)
12230	    # KAI C++ Compiler
12231	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12232	    lt_prog_compiler_pic_CXX='-fPIC'
12233	    ;;
12234	  icpc* | ecpc*)
12235	    # Intel C++
12236	    lt_prog_compiler_wl_CXX='-Wl,'
12237	    lt_prog_compiler_pic_CXX='-KPIC'
12238	    lt_prog_compiler_static_CXX='-static'
12239	    ;;
12240	  pgCC*)
12241	    # Portland Group C++ compiler.
12242	    lt_prog_compiler_wl_CXX='-Wl,'
12243	    lt_prog_compiler_pic_CXX='-fpic'
12244	    lt_prog_compiler_static_CXX='-Bstatic'
12245	    ;;
12246	  cxx*)
12247	    # Compaq C++
12248	    # Make sure the PIC flag is empty.  It appears that all Alpha
12249	    # Linux and Compaq Tru64 Unix objects are PIC.
12250	    lt_prog_compiler_pic_CXX=
12251	    lt_prog_compiler_static_CXX='-non_shared'
12252	    ;;
12253	  *)
12254	    case `$CC -V 2>&1 | sed 5q` in
12255	    *Sun\ C*)
12256	      # Sun C++ 5.9
12257	      lt_prog_compiler_pic_CXX='-KPIC'
12258	      lt_prog_compiler_static_CXX='-Bstatic'
12259	      lt_prog_compiler_wl_CXX='-Qoption ld '
12260	      ;;
12261	    esac
12262	    ;;
12263	esac
12264	;;
12265      lynxos*)
12266	;;
12267      m88k*)
12268	;;
12269      mvs*)
12270	case $cc_basename in
12271	  cxx*)
12272	    lt_prog_compiler_pic_CXX='-W c,exportall'
12273	    ;;
12274	  *)
12275	    ;;
12276	esac
12277	;;
12278      netbsd*)
12279	;;
12280      osf3* | osf4* | osf5*)
12281	case $cc_basename in
12282	  KCC*)
12283	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12284	    ;;
12285	  RCC*)
12286	    # Rational C++ 2.4.1
12287	    lt_prog_compiler_pic_CXX='-pic'
12288	    ;;
12289	  cxx*)
12290	    # Digital/Compaq C++
12291	    lt_prog_compiler_wl_CXX='-Wl,'
12292	    # Make sure the PIC flag is empty.  It appears that all Alpha
12293	    # Linux and Compaq Tru64 Unix objects are PIC.
12294	    lt_prog_compiler_pic_CXX=
12295	    lt_prog_compiler_static_CXX='-non_shared'
12296	    ;;
12297	  *)
12298	    ;;
12299	esac
12300	;;
12301      psos*)
12302	;;
12303      solaris*)
12304	case $cc_basename in
12305	  CC*)
12306	    # Sun C++ 4.2, 5.x and Centerline C++
12307	    lt_prog_compiler_pic_CXX='-KPIC'
12308	    lt_prog_compiler_static_CXX='-Bstatic'
12309	    lt_prog_compiler_wl_CXX='-Qoption ld '
12310	    ;;
12311	  gcx*)
12312	    # Green Hills C++ Compiler
12313	    lt_prog_compiler_pic_CXX='-PIC'
12314	    ;;
12315	  *)
12316	    ;;
12317	esac
12318	;;
12319      sunos4*)
12320	case $cc_basename in
12321	  CC*)
12322	    # Sun C++ 4.x
12323	    lt_prog_compiler_pic_CXX='-pic'
12324	    lt_prog_compiler_static_CXX='-Bstatic'
12325	    ;;
12326	  lcc*)
12327	    # Lucid
12328	    lt_prog_compiler_pic_CXX='-pic'
12329	    ;;
12330	  *)
12331	    ;;
12332	esac
12333	;;
12334      tandem*)
12335	case $cc_basename in
12336	  NCC*)
12337	    # NonStop-UX NCC 3.20
12338	    lt_prog_compiler_pic_CXX='-KPIC'
12339	    ;;
12340	  *)
12341	    ;;
12342	esac
12343	;;
12344      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12345	case $cc_basename in
12346	  CC*)
12347	    lt_prog_compiler_wl_CXX='-Wl,'
12348	    lt_prog_compiler_pic_CXX='-KPIC'
12349	    lt_prog_compiler_static_CXX='-Bstatic'
12350	    ;;
12351	esac
12352	;;
12353      vxworks*)
12354	;;
12355      *)
12356	lt_prog_compiler_can_build_shared_CXX=no
12357	;;
12358    esac
12359  fi
12360
12361echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12362echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
12363
12364#
12365# Check to make sure the PIC flag actually works.
12366#
12367if test -n "$lt_prog_compiler_pic_CXX"; then
12368
12369echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12370echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
12371if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12372  echo $ECHO_N "(cached) $ECHO_C" >&6
12373else
12374  lt_prog_compiler_pic_works_CXX=no
12375  ac_outfile=conftest.$ac_objext
12376   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12377   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12378   # Insert the option either (1) after the last *FLAGS variable, or
12379   # (2) before a word containing "conftest.", or (3) at the end.
12380   # Note that $ac_compile itself does not contain backslashes and begins
12381   # with a dollar sign (not a hyphen), so the echo should work correctly.
12382   # The option is referenced via a variable to avoid confusing sed.
12383   lt_compile=`echo "$ac_compile" | $SED \
12384   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12385   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12386   -e 's:$: $lt_compiler_flag:'`
12387   (eval echo "\"\$as_me:12395: $lt_compile\"" >&5)
12388   (eval "$lt_compile" 2>conftest.err)
12389   ac_status=$?
12390   cat conftest.err >&5
12391   echo "$as_me:12399: \$? = $ac_status" >&5
12392   if (exit $ac_status) && test -s "$ac_outfile"; then
12393     # The compiler can only warn and ignore the option if not recognized
12394     # So say no if there are warnings other than the usual output.
12395     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12396     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12397     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12398       lt_prog_compiler_pic_works_CXX=yes
12399     fi
12400   fi
12401   $rm conftest*
12402
12403fi
12404echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12405echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
12406
12407if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12408    case $lt_prog_compiler_pic_CXX in
12409     "" | " "*) ;;
12410     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12411     esac
12412else
12413    lt_prog_compiler_pic_CXX=
12414     lt_prog_compiler_can_build_shared_CXX=no
12415fi
12416
12417fi
12418case $host_os in
12419  # For platforms which do not support PIC, -DPIC is meaningless:
12420  *djgpp*)
12421    lt_prog_compiler_pic_CXX=
12422    ;;
12423  *)
12424    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12425    ;;
12426esac
12427
12428#
12429# Check to make sure the static flag actually works.
12430#
12431wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12432echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12433echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
12434if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12435  echo $ECHO_N "(cached) $ECHO_C" >&6
12436else
12437  lt_prog_compiler_static_works_CXX=no
12438   save_LDFLAGS="$LDFLAGS"
12439   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12440   echo "$lt_simple_link_test_code" > conftest.$ac_ext
12441   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12442     # The linker can only warn and ignore the option if not recognized
12443     # So say no if there are warnings
12444     if test -s conftest.err; then
12445       # Append any errors to the config.log.
12446       cat conftest.err 1>&5
12447       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12448       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12449       if diff conftest.exp conftest.er2 >/dev/null; then
12450         lt_prog_compiler_static_works_CXX=yes
12451       fi
12452     else
12453       lt_prog_compiler_static_works_CXX=yes
12454     fi
12455   fi
12456   $rm conftest*
12457   LDFLAGS="$save_LDFLAGS"
12458
12459fi
12460echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12461echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
12462
12463if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12464    :
12465else
12466    lt_prog_compiler_static_CXX=
12467fi
12468
12469
12470echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12471echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12472if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12473  echo $ECHO_N "(cached) $ECHO_C" >&6
12474else
12475  lt_cv_prog_compiler_c_o_CXX=no
12476   $rm -r conftest 2>/dev/null
12477   mkdir conftest
12478   cd conftest
12479   mkdir out
12480   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12481
12482   lt_compiler_flag="-o out/conftest2.$ac_objext"
12483   # Insert the option either (1) after the last *FLAGS variable, or
12484   # (2) before a word containing "conftest.", or (3) at the end.
12485   # Note that $ac_compile itself does not contain backslashes and begins
12486   # with a dollar sign (not a hyphen), so the echo should work correctly.
12487   lt_compile=`echo "$ac_compile" | $SED \
12488   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12489   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12490   -e 's:$: $lt_compiler_flag:'`
12491   (eval echo "\"\$as_me:12499: $lt_compile\"" >&5)
12492   (eval "$lt_compile" 2>out/conftest.err)
12493   ac_status=$?
12494   cat out/conftest.err >&5
12495   echo "$as_me:12503: \$? = $ac_status" >&5
12496   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12497   then
12498     # The compiler can only warn and ignore the option if not recognized
12499     # So say no if there are warnings
12500     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12501     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12502     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12503       lt_cv_prog_compiler_c_o_CXX=yes
12504     fi
12505   fi
12506   chmod u+w . 2>&5
12507   $rm conftest*
12508   # SGI C++ compiler will create directory out/ii_files/ for
12509   # template instantiation
12510   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12511   $rm out/* && rmdir out
12512   cd ..
12513   rmdir conftest
12514   $rm conftest*
12515
12516fi
12517echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12518echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
12519
12520
12521hard_links="nottested"
12522if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12523  # do not overwrite the value of need_locks provided by the user
12524  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12525echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12526  hard_links=yes
12527  $rm conftest*
12528  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12529  touch conftest.a
12530  ln conftest.a conftest.b 2>&5 || hard_links=no
12531  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12532  echo "$as_me:$LINENO: result: $hard_links" >&5
12533echo "${ECHO_T}$hard_links" >&6
12534  if test "$hard_links" = no; then
12535    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12536echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12537    need_locks=warn
12538  fi
12539else
12540  need_locks=no
12541fi
12542
12543echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12544echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12545
12546  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12547  case $host_os in
12548  aix4* | aix5*)
12549    # If we're using GNU nm, then we don't want the "-C" option.
12550    # -C means demangle to AIX nm, but means don't demangle with GNU nm
12551    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12552      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'
12553    else
12554      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'
12555    fi
12556    ;;
12557  pw32*)
12558    export_symbols_cmds_CXX="$ltdll_cmds"
12559  ;;
12560  cygwin* | mingw*)
12561    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'
12562  ;;
12563  *)
12564    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12565  ;;
12566  esac
12567
12568echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12569echo "${ECHO_T}$ld_shlibs_CXX" >&6
12570test "$ld_shlibs_CXX" = no && can_build_shared=no
12571
12572#
12573# Do we need to explicitly link libc?
12574#
12575case "x$archive_cmds_need_lc_CXX" in
12576x|xyes)
12577  # Assume -lc should be added
12578  archive_cmds_need_lc_CXX=yes
12579
12580  if test "$enable_shared" = yes && test "$GCC" = yes; then
12581    case $archive_cmds_CXX in
12582    *'~'*)
12583      # FIXME: we may have to deal with multi-command sequences.
12584      ;;
12585    '$CC '*)
12586      # Test whether the compiler implicitly links with -lc since on some
12587      # systems, -lgcc has to come before -lc. If gcc already passes -lc
12588      # to ld, don't add -lc before -lgcc.
12589      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12590echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12591      $rm conftest*
12592      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12593
12594      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12595  (eval $ac_compile) 2>&5
12596  ac_status=$?
12597  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12598  (exit $ac_status); } 2>conftest.err; then
12599        soname=conftest
12600        lib=conftest
12601        libobjs=conftest.$ac_objext
12602        deplibs=
12603        wl=$lt_prog_compiler_wl_CXX
12604	pic_flag=$lt_prog_compiler_pic_CXX
12605        compiler_flags=-v
12606        linker_flags=-v
12607        verstring=
12608        output_objdir=.
12609        libname=conftest
12610        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12611        allow_undefined_flag_CXX=
12612        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12613  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12614  ac_status=$?
12615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12616  (exit $ac_status); }
12617        then
12618	  archive_cmds_need_lc_CXX=no
12619        else
12620	  archive_cmds_need_lc_CXX=yes
12621        fi
12622        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12623      else
12624        cat conftest.err 1>&5
12625      fi
12626      $rm conftest*
12627      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12628echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
12629      ;;
12630    esac
12631  fi
12632  ;;
12633esac
12634
12635echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12636echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12637library_names_spec=
12638libname_spec='lib$name'
12639soname_spec=
12640shrext_cmds=".so"
12641postinstall_cmds=
12642postuninstall_cmds=
12643finish_cmds=
12644finish_eval=
12645shlibpath_var=
12646shlibpath_overrides_runpath=unknown
12647version_type=none
12648dynamic_linker="$host_os ld.so"
12649sys_lib_dlsearch_path_spec="/lib /usr/lib"
12650
12651need_lib_prefix=unknown
12652hardcode_into_libs=no
12653
12654# when you set need_version to no, make sure it does not cause -set_version
12655# flags to be left without arguments
12656need_version=unknown
12657
12658case $host_os in
12659aix3*)
12660  version_type=linux
12661  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12662  shlibpath_var=LIBPATH
12663
12664  # AIX 3 has no versioning support, so we append a major version to the name.
12665  soname_spec='${libname}${release}${shared_ext}$major'
12666  ;;
12667
12668aix4* | aix5*)
12669  version_type=linux
12670  need_lib_prefix=no
12671  need_version=no
12672  hardcode_into_libs=yes
12673  if test "$host_cpu" = ia64; then
12674    # AIX 5 supports IA64
12675    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12676    shlibpath_var=LD_LIBRARY_PATH
12677  else
12678    # With GCC up to 2.95.x, collect2 would create an import file
12679    # for dependence libraries.  The import file would start with
12680    # the line `#! .'.  This would cause the generated library to
12681    # depend on `.', always an invalid library.  This was fixed in
12682    # development snapshots of GCC prior to 3.0.
12683    case $host_os in
12684      aix4 | aix4.[01] | aix4.[01].*)
12685      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12686	   echo ' yes '
12687	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12688	:
12689      else
12690	can_build_shared=no
12691      fi
12692      ;;
12693    esac
12694    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12695    # soname into executable. Probably we can add versioning support to
12696    # collect2, so additional links can be useful in future.
12697    if test "$aix_use_runtimelinking" = yes; then
12698      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12699      # instead of lib<name>.a to let people know that these are not
12700      # typical AIX shared libraries.
12701      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12702    else
12703      # We preserve .a as extension for shared libraries through AIX4.2
12704      # and later when we are not doing run time linking.
12705      library_names_spec='${libname}${release}.a $libname.a'
12706      soname_spec='${libname}${release}${shared_ext}$major'
12707    fi
12708    shlibpath_var=LIBPATH
12709  fi
12710  ;;
12711
12712amigaos*)
12713  library_names_spec='$libname.ixlibrary $libname.a'
12714  # Create ${libname}_ixlibrary.a entries in /sys/libs.
12715  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'
12716  ;;
12717
12718beos*)
12719  library_names_spec='${libname}${shared_ext}'
12720  dynamic_linker="$host_os ld.so"
12721  shlibpath_var=LIBRARY_PATH
12722  ;;
12723
12724bsdi[45]*)
12725  version_type=linux
12726  need_version=no
12727  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12728  soname_spec='${libname}${release}${shared_ext}$major'
12729  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12730  shlibpath_var=LD_LIBRARY_PATH
12731  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12732  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12733  # the default ld.so.conf also contains /usr/contrib/lib and
12734  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12735  # libtool to hard-code these into programs
12736  ;;
12737
12738cygwin* | mingw* | pw32*)
12739  version_type=windows
12740  shrext_cmds=".dll"
12741  need_version=no
12742  need_lib_prefix=no
12743
12744  case $GCC,$host_os in
12745  yes,cygwin* | yes,mingw* | yes,pw32*)
12746    library_names_spec='$libname.dll.a'
12747    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12748    postinstall_cmds='base_file=`basename \${file}`~
12749      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12750      dldir=$destdir/`dirname \$dlpath`~
12751      test -d \$dldir || mkdir -p \$dldir~
12752      $install_prog $dir/$dlname \$dldir/$dlname~
12753      chmod a+x \$dldir/$dlname'
12754    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12755      dlpath=$dir/\$dldll~
12756       $rm \$dlpath'
12757    shlibpath_overrides_runpath=yes
12758
12759    case $host_os in
12760    cygwin*)
12761      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12762      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12763      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12764      ;;
12765    mingw*)
12766      # MinGW DLLs use traditional 'lib' prefix
12767      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12768      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12769      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12770        # It is most probably a Windows format PATH printed by
12771        # mingw gcc, but we are running on Cygwin. Gcc prints its search
12772        # path with ; separators, and with drive letters. We can handle the
12773        # drive letters (cygwin fileutils understands them), so leave them,
12774        # especially as we might pass files found there to a mingw objdump,
12775        # which wouldn't understand a cygwinified path. Ahh.
12776        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12777      else
12778        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12779      fi
12780      ;;
12781    pw32*)
12782      # pw32 DLLs use 'pw' prefix rather than 'lib'
12783      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12784      ;;
12785    esac
12786    ;;
12787
12788  *)
12789    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12790    ;;
12791  esac
12792  dynamic_linker='Win32 ld.exe'
12793  # FIXME: first we should search . and the directory the executable is in
12794  shlibpath_var=PATH
12795  ;;
12796
12797darwin* | rhapsody*)
12798  dynamic_linker="$host_os dyld"
12799  version_type=darwin
12800  need_lib_prefix=no
12801  need_version=no
12802  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12803  soname_spec='${libname}${release}${major}$shared_ext'
12804  shlibpath_overrides_runpath=yes
12805  shlibpath_var=DYLD_LIBRARY_PATH
12806  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12807
12808  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12809  ;;
12810
12811dgux*)
12812  version_type=linux
12813  need_lib_prefix=no
12814  need_version=no
12815  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12816  soname_spec='${libname}${release}${shared_ext}$major'
12817  shlibpath_var=LD_LIBRARY_PATH
12818  ;;
12819
12820freebsd1*)
12821  dynamic_linker=no
12822  ;;
12823
12824freebsd* | dragonfly*)
12825  # DragonFly does not have aout.  When/if they implement a new
12826  # versioning mechanism, adjust this.
12827  if test -x /usr/bin/objformat; then
12828    objformat=`/usr/bin/objformat`
12829  else
12830    case $host_os in
12831    freebsd[123]*) objformat=aout ;;
12832    *) objformat=elf ;;
12833    esac
12834  fi
12835  version_type=freebsd-$objformat
12836  case $version_type in
12837    freebsd-elf*)
12838      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12839      need_version=no
12840      need_lib_prefix=no
12841      ;;
12842    freebsd-*)
12843      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12844      need_version=yes
12845      ;;
12846  esac
12847  shlibpath_var=LD_LIBRARY_PATH
12848  case $host_os in
12849  freebsd2*)
12850    shlibpath_overrides_runpath=yes
12851    ;;
12852  freebsd3.[01]* | freebsdelf3.[01]*)
12853    shlibpath_overrides_runpath=yes
12854    hardcode_into_libs=yes
12855    ;;
12856  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12857  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12858    shlibpath_overrides_runpath=no
12859    hardcode_into_libs=yes
12860    ;;
12861  *) # from 4.6 on, and DragonFly
12862    shlibpath_overrides_runpath=yes
12863    hardcode_into_libs=yes
12864    ;;
12865  esac
12866  ;;
12867
12868gnu*)
12869  version_type=linux
12870  need_lib_prefix=no
12871  need_version=no
12872  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12873  soname_spec='${libname}${release}${shared_ext}$major'
12874  shlibpath_var=LD_LIBRARY_PATH
12875  hardcode_into_libs=yes
12876  ;;
12877
12878hpux9* | hpux10* | hpux11*)
12879  # Give a soname corresponding to the major version so that dld.sl refuses to
12880  # link against other versions.
12881  version_type=sunos
12882  need_lib_prefix=no
12883  need_version=no
12884  case $host_cpu in
12885  ia64*)
12886    shrext_cmds='.so'
12887    hardcode_into_libs=yes
12888    dynamic_linker="$host_os dld.so"
12889    shlibpath_var=LD_LIBRARY_PATH
12890    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12891    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12892    soname_spec='${libname}${release}${shared_ext}$major'
12893    if test "X$HPUX_IA64_MODE" = X32; then
12894      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12895    else
12896      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12897    fi
12898    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12899    ;;
12900   hppa*64*)
12901     shrext_cmds='.sl'
12902     hardcode_into_libs=yes
12903     dynamic_linker="$host_os dld.sl"
12904     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12905     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12906     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12907     soname_spec='${libname}${release}${shared_ext}$major'
12908     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12909     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12910     ;;
12911   *)
12912    shrext_cmds='.sl'
12913    dynamic_linker="$host_os dld.sl"
12914    shlibpath_var=SHLIB_PATH
12915    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12916    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12917    soname_spec='${libname}${release}${shared_ext}$major'
12918    ;;
12919  esac
12920  # HP-UX runs *really* slowly unless shared libraries are mode 555.
12921  postinstall_cmds='chmod 555 $lib'
12922  ;;
12923
12924interix[3-9]*)
12925  version_type=linux
12926  need_lib_prefix=no
12927  need_version=no
12928  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12929  soname_spec='${libname}${release}${shared_ext}$major'
12930  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12931  shlibpath_var=LD_LIBRARY_PATH
12932  shlibpath_overrides_runpath=no
12933  hardcode_into_libs=yes
12934  ;;
12935
12936irix5* | irix6* | nonstopux*)
12937  case $host_os in
12938    nonstopux*) version_type=nonstopux ;;
12939    *)
12940	if test "$lt_cv_prog_gnu_ld" = yes; then
12941		version_type=linux
12942	else
12943		version_type=irix
12944	fi ;;
12945  esac
12946  need_lib_prefix=no
12947  need_version=no
12948  soname_spec='${libname}${release}${shared_ext}$major'
12949  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12950  case $host_os in
12951  irix5* | nonstopux*)
12952    libsuff= shlibsuff=
12953    ;;
12954  *)
12955    case $LD in # libtool.m4 will add one of these switches to LD
12956    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12957      libsuff= shlibsuff= libmagic=32-bit;;
12958    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12959      libsuff=32 shlibsuff=N32 libmagic=N32;;
12960    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12961      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12962    *) libsuff= shlibsuff= libmagic=never-match;;
12963    esac
12964    ;;
12965  esac
12966  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12967  shlibpath_overrides_runpath=no
12968  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12969  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12970  hardcode_into_libs=yes
12971  ;;
12972
12973# No shared lib support for Linux oldld, aout, or coff.
12974linux*oldld* | linux*aout* | linux*coff*)
12975  dynamic_linker=no
12976  ;;
12977
12978# This must be Linux ELF.
12979linux* | k*bsd*-gnu)
12980  version_type=linux
12981  need_lib_prefix=no
12982  need_version=no
12983  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12984  soname_spec='${libname}${release}${shared_ext}$major'
12985  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12986  shlibpath_var=LD_LIBRARY_PATH
12987  shlibpath_overrides_runpath=no
12988  # This implies no fast_install, which is unacceptable.
12989  # Some rework will be needed to allow for fast_install
12990  # before this can be enabled.
12991  hardcode_into_libs=yes
12992
12993  # Append ld.so.conf contents to the search path
12994  if test -f /etc/ld.so.conf; then
12995    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/#.*//;/^[ 	]*hwcap[ 	]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12996    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12997  fi
12998
12999  # We used to test for /lib/ld.so.1 and disable shared libraries on
13000  # powerpc, because MkLinux only supported shared libraries with the
13001  # GNU dynamic linker.  Since this was broken with cross compilers,
13002  # most powerpc-linux boxes support dynamic linking these days and
13003  # people can always --disable-shared, the test was removed, and we
13004  # assume the GNU/Linux dynamic linker is in use.
13005  dynamic_linker='GNU/Linux ld.so'
13006  ;;
13007
13008netbsd*)
13009  version_type=sunos
13010  need_lib_prefix=no
13011  need_version=no
13012  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13013    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13014    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13015    dynamic_linker='NetBSD (a.out) ld.so'
13016  else
13017    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13018    soname_spec='${libname}${release}${shared_ext}$major'
13019    dynamic_linker='NetBSD ld.elf_so'
13020  fi
13021  shlibpath_var=LD_LIBRARY_PATH
13022  shlibpath_overrides_runpath=yes
13023  hardcode_into_libs=yes
13024  ;;
13025
13026newsos6)
13027  version_type=linux
13028  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13029  shlibpath_var=LD_LIBRARY_PATH
13030  shlibpath_overrides_runpath=yes
13031  ;;
13032
13033nto-qnx*)
13034  version_type=linux
13035  need_lib_prefix=no
13036  need_version=no
13037  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13038  soname_spec='${libname}${release}${shared_ext}$major'
13039  shlibpath_var=LD_LIBRARY_PATH
13040  shlibpath_overrides_runpath=yes
13041  ;;
13042
13043openbsd*)
13044  version_type=sunos
13045  sys_lib_dlsearch_path_spec="/usr/lib"
13046  need_lib_prefix=no
13047  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13048  case $host_os in
13049    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13050    *)                         need_version=no  ;;
13051  esac
13052  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13053  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13054  shlibpath_var=LD_LIBRARY_PATH
13055  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13056    case $host_os in
13057      openbsd2.[89] | openbsd2.[89].*)
13058	shlibpath_overrides_runpath=no
13059	;;
13060      *)
13061	shlibpath_overrides_runpath=yes
13062	;;
13063      esac
13064  else
13065    shlibpath_overrides_runpath=yes
13066  fi
13067  ;;
13068
13069os2*)
13070  libname_spec='$name'
13071  shrext_cmds=".dll"
13072  need_lib_prefix=no
13073  library_names_spec='$libname${shared_ext} $libname.a'
13074  dynamic_linker='OS/2 ld.exe'
13075  shlibpath_var=LIBPATH
13076  ;;
13077
13078osf3* | osf4* | osf5*)
13079  version_type=osf
13080  need_lib_prefix=no
13081  need_version=no
13082  soname_spec='${libname}${release}${shared_ext}$major'
13083  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13084  shlibpath_var=LD_LIBRARY_PATH
13085  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13086  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13087  ;;
13088
13089rdos*)
13090  dynamic_linker=no
13091  ;;
13092
13093solaris*)
13094  version_type=linux
13095  need_lib_prefix=no
13096  need_version=no
13097  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13098  soname_spec='${libname}${release}${shared_ext}$major'
13099  shlibpath_var=LD_LIBRARY_PATH
13100  shlibpath_overrides_runpath=yes
13101  hardcode_into_libs=yes
13102  # ldd complains unless libraries are executable
13103  postinstall_cmds='chmod +x $lib'
13104  ;;
13105
13106sunos4*)
13107  version_type=sunos
13108  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13109  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13110  shlibpath_var=LD_LIBRARY_PATH
13111  shlibpath_overrides_runpath=yes
13112  if test "$with_gnu_ld" = yes; then
13113    need_lib_prefix=no
13114  fi
13115  need_version=yes
13116  ;;
13117
13118sysv4 | sysv4.3*)
13119  version_type=linux
13120  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13121  soname_spec='${libname}${release}${shared_ext}$major'
13122  shlibpath_var=LD_LIBRARY_PATH
13123  case $host_vendor in
13124    sni)
13125      shlibpath_overrides_runpath=no
13126      need_lib_prefix=no
13127      export_dynamic_flag_spec='${wl}-Blargedynsym'
13128      runpath_var=LD_RUN_PATH
13129      ;;
13130    siemens)
13131      need_lib_prefix=no
13132      ;;
13133    motorola)
13134      need_lib_prefix=no
13135      need_version=no
13136      shlibpath_overrides_runpath=no
13137      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13138      ;;
13139  esac
13140  ;;
13141
13142sysv4*MP*)
13143  if test -d /usr/nec ;then
13144    version_type=linux
13145    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13146    soname_spec='$libname${shared_ext}.$major'
13147    shlibpath_var=LD_LIBRARY_PATH
13148  fi
13149  ;;
13150
13151sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13152  version_type=freebsd-elf
13153  need_lib_prefix=no
13154  need_version=no
13155  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13156  soname_spec='${libname}${release}${shared_ext}$major'
13157  shlibpath_var=LD_LIBRARY_PATH
13158  hardcode_into_libs=yes
13159  if test "$with_gnu_ld" = yes; then
13160    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13161    shlibpath_overrides_runpath=no
13162  else
13163    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13164    shlibpath_overrides_runpath=yes
13165    case $host_os in
13166      sco3.2v5*)
13167        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13168	;;
13169    esac
13170  fi
13171  sys_lib_dlsearch_path_spec='/usr/lib'
13172  ;;
13173
13174uts4*)
13175  version_type=linux
13176  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13177  soname_spec='${libname}${release}${shared_ext}$major'
13178  shlibpath_var=LD_LIBRARY_PATH
13179  ;;
13180
13181*)
13182  dynamic_linker=no
13183  ;;
13184esac
13185echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13186echo "${ECHO_T}$dynamic_linker" >&6
13187test "$dynamic_linker" = no && can_build_shared=no
13188
13189variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13190if test "$GCC" = yes; then
13191  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13192fi
13193
13194echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13195echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13196hardcode_action_CXX=
13197if test -n "$hardcode_libdir_flag_spec_CXX" || \
13198   test -n "$runpath_var_CXX" || \
13199   test "X$hardcode_automatic_CXX" = "Xyes" ; then
13200
13201  # We can hardcode non-existant directories.
13202  if test "$hardcode_direct_CXX" != no &&
13203     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13204     # have to relink, otherwise we might link with an installed library
13205     # when we should be linking with a yet-to-be-installed one
13206     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13207     test "$hardcode_minus_L_CXX" != no; then
13208    # Linking always hardcodes the temporary library directory.
13209    hardcode_action_CXX=relink
13210  else
13211    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13212    hardcode_action_CXX=immediate
13213  fi
13214else
13215  # We cannot hardcode anything, or else we can only hardcode existing
13216  # directories.
13217  hardcode_action_CXX=unsupported
13218fi
13219echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13220echo "${ECHO_T}$hardcode_action_CXX" >&6
13221
13222if test "$hardcode_action_CXX" = relink; then
13223  # Fast installation is not supported
13224  enable_fast_install=no
13225elif test "$shlibpath_overrides_runpath" = yes ||
13226     test "$enable_shared" = no; then
13227  # Fast installation is not necessary
13228  enable_fast_install=needless
13229fi
13230
13231
13232# The else clause should only fire when bootstrapping the
13233# libtool distribution, otherwise you forgot to ship ltmain.sh
13234# with your package, and you will get complaints that there are
13235# no rules to generate ltmain.sh.
13236if test -f "$ltmain"; then
13237  # See if we are running on zsh, and set the options which allow our commands through
13238  # without removal of \ escapes.
13239  if test -n "${ZSH_VERSION+set}" ; then
13240    setopt NO_GLOB_SUBST
13241  fi
13242  # Now quote all the things that may contain metacharacters while being
13243  # careful not to overquote the AC_SUBSTed values.  We take copies of the
13244  # variables and quote the copies for generation of the libtool script.
13245  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13246    SED SHELL STRIP \
13247    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13248    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13249    deplibs_check_method reload_flag reload_cmds need_locks \
13250    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13251    lt_cv_sys_global_symbol_to_c_name_address \
13252    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13253    old_postinstall_cmds old_postuninstall_cmds \
13254    compiler_CXX \
13255    CC_CXX \
13256    LD_CXX \
13257    lt_prog_compiler_wl_CXX \
13258    lt_prog_compiler_pic_CXX \
13259    lt_prog_compiler_static_CXX \
13260    lt_prog_compiler_no_builtin_flag_CXX \
13261    export_dynamic_flag_spec_CXX \
13262    thread_safe_flag_spec_CXX \
13263    whole_archive_flag_spec_CXX \
13264    enable_shared_with_static_runtimes_CXX \
13265    old_archive_cmds_CXX \
13266    old_archive_from_new_cmds_CXX \
13267    predep_objects_CXX \
13268    postdep_objects_CXX \
13269    predeps_CXX \
13270    postdeps_CXX \
13271    compiler_lib_search_path_CXX \
13272    archive_cmds_CXX \
13273    archive_expsym_cmds_CXX \
13274    postinstall_cmds_CXX \
13275    postuninstall_cmds_CXX \
13276    old_archive_from_expsyms_cmds_CXX \
13277    allow_undefined_flag_CXX \
13278    no_undefined_flag_CXX \
13279    export_symbols_cmds_CXX \
13280    hardcode_libdir_flag_spec_CXX \
13281    hardcode_libdir_flag_spec_ld_CXX \
13282    hardcode_libdir_separator_CXX \
13283    hardcode_automatic_CXX \
13284    module_cmds_CXX \
13285    module_expsym_cmds_CXX \
13286    lt_cv_prog_compiler_c_o_CXX \
13287    fix_srcfile_path_CXX \
13288    exclude_expsyms_CXX \
13289    include_expsyms_CXX; do
13290
13291    case $var in
13292    old_archive_cmds_CXX | \
13293    old_archive_from_new_cmds_CXX | \
13294    archive_cmds_CXX | \
13295    archive_expsym_cmds_CXX | \
13296    module_cmds_CXX | \
13297    module_expsym_cmds_CXX | \
13298    old_archive_from_expsyms_cmds_CXX | \
13299    export_symbols_cmds_CXX | \
13300    extract_expsyms_cmds | reload_cmds | finish_cmds | \
13301    postinstall_cmds | postuninstall_cmds | \
13302    old_postinstall_cmds | old_postuninstall_cmds | \
13303    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13304      # Double-quote double-evaled strings.
13305      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13306      ;;
13307    *)
13308      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13309      ;;
13310    esac
13311  done
13312
13313  case $lt_echo in
13314  *'\$0 --fallback-echo"')
13315    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13316    ;;
13317  esac
13318
13319cfgfile="$ofile"
13320
13321  cat <<__EOF__ >> "$cfgfile"
13322# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13323
13324# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13325
13326# Shell to use when invoking shell scripts.
13327SHELL=$lt_SHELL
13328
13329# Whether or not to build shared libraries.
13330build_libtool_libs=$enable_shared
13331
13332# Whether or not to build static libraries.
13333build_old_libs=$enable_static
13334
13335# Whether or not to add -lc for building shared libraries.
13336build_libtool_need_lc=$archive_cmds_need_lc_CXX
13337
13338# Whether or not to disallow shared libs when runtime libs are static
13339allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13340
13341# Whether or not to optimize for fast installation.
13342fast_install=$enable_fast_install
13343
13344# The host system.
13345host_alias=$host_alias
13346host=$host
13347host_os=$host_os
13348
13349# The build system.
13350build_alias=$build_alias
13351build=$build
13352build_os=$build_os
13353
13354# An echo program that does not interpret backslashes.
13355echo=$lt_echo
13356
13357# The archiver.
13358AR=$lt_AR
13359AR_FLAGS=$lt_AR_FLAGS
13360
13361# A C compiler.
13362LTCC=$lt_LTCC
13363
13364# LTCC compiler flags.
13365LTCFLAGS=$lt_LTCFLAGS
13366
13367# A language-specific compiler.
13368CC=$lt_compiler_CXX
13369
13370# Is the compiler the GNU C compiler?
13371with_gcc=$GCC_CXX
13372
13373# An ERE matcher.
13374EGREP=$lt_EGREP
13375
13376# The linker used to build libraries.
13377LD=$lt_LD_CXX
13378
13379# Whether we need hard or soft links.
13380LN_S=$lt_LN_S
13381
13382# A BSD-compatible nm program.
13383NM=$lt_NM
13384
13385# A symbol stripping program
13386STRIP=$lt_STRIP
13387
13388# Used to examine libraries when file_magic_cmd begins "file"
13389MAGIC_CMD=$MAGIC_CMD
13390
13391# Used on cygwin: DLL creation program.
13392DLLTOOL="$DLLTOOL"
13393
13394# Used on cygwin: object dumper.
13395OBJDUMP="$OBJDUMP"
13396
13397# Used on cygwin: assembler.
13398AS="$AS"
13399
13400# The name of the directory that contains temporary libtool files.
13401objdir=$objdir
13402
13403# How to create reloadable object files.
13404reload_flag=$lt_reload_flag
13405reload_cmds=$lt_reload_cmds
13406
13407# How to pass a linker flag through the compiler.
13408wl=$lt_lt_prog_compiler_wl_CXX
13409
13410# Object file suffix (normally "o").
13411objext="$ac_objext"
13412
13413# Old archive suffix (normally "a").
13414libext="$libext"
13415
13416# Shared library suffix (normally ".so").
13417shrext_cmds='$shrext_cmds'
13418
13419# Executable file suffix (normally "").
13420exeext="$exeext"
13421
13422# Additional compiler flags for building library objects.
13423pic_flag=$lt_lt_prog_compiler_pic_CXX
13424pic_mode=$pic_mode
13425
13426# What is the maximum length of a command?
13427max_cmd_len=$lt_cv_sys_max_cmd_len
13428
13429# Does compiler simultaneously support -c and -o options?
13430compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13431
13432# Must we lock files when doing compilation?
13433need_locks=$lt_need_locks
13434
13435# Do we need the lib prefix for modules?
13436need_lib_prefix=$need_lib_prefix
13437
13438# Do we need a version for libraries?
13439need_version=$need_version
13440
13441# Whether dlopen is supported.
13442dlopen_support=$enable_dlopen
13443
13444# Whether dlopen of programs is supported.
13445dlopen_self=$enable_dlopen_self
13446
13447# Whether dlopen of statically linked programs is supported.
13448dlopen_self_static=$enable_dlopen_self_static
13449
13450# Compiler flag to prevent dynamic linking.
13451link_static_flag=$lt_lt_prog_compiler_static_CXX
13452
13453# Compiler flag to turn off builtin functions.
13454no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13455
13456# Compiler flag to allow reflexive dlopens.
13457export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13458
13459# Compiler flag to generate shared objects directly from archives.
13460whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13461
13462# Compiler flag to generate thread-safe objects.
13463thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13464
13465# Library versioning type.
13466version_type=$version_type
13467
13468# Format of library name prefix.
13469libname_spec=$lt_libname_spec
13470
13471# List of archive names.  First name is the real one, the rest are links.
13472# The last name is the one that the linker finds with -lNAME.
13473library_names_spec=$lt_library_names_spec
13474
13475# The coded name of the library, if different from the real name.
13476soname_spec=$lt_soname_spec
13477
13478# Commands used to build and install an old-style archive.
13479RANLIB=$lt_RANLIB
13480old_archive_cmds=$lt_old_archive_cmds_CXX
13481old_postinstall_cmds=$lt_old_postinstall_cmds
13482old_postuninstall_cmds=$lt_old_postuninstall_cmds
13483
13484# Create an old-style archive from a shared archive.
13485old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13486
13487# Create a temporary old-style archive to link instead of a shared archive.
13488old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13489
13490# Commands used to build and install a shared archive.
13491archive_cmds=$lt_archive_cmds_CXX
13492archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13493postinstall_cmds=$lt_postinstall_cmds
13494postuninstall_cmds=$lt_postuninstall_cmds
13495
13496# Commands used to build a loadable module (assumed same as above if empty)
13497module_cmds=$lt_module_cmds_CXX
13498module_expsym_cmds=$lt_module_expsym_cmds_CXX
13499
13500# Commands to strip libraries.
13501old_striplib=$lt_old_striplib
13502striplib=$lt_striplib
13503
13504# Dependencies to place before the objects being linked to create a
13505# shared library.
13506predep_objects=$lt_predep_objects_CXX
13507
13508# Dependencies to place after the objects being linked to create a
13509# shared library.
13510postdep_objects=$lt_postdep_objects_CXX
13511
13512# Dependencies to place before the objects being linked to create a
13513# shared library.
13514predeps=$lt_predeps_CXX
13515
13516# Dependencies to place after the objects being linked to create a
13517# shared library.
13518postdeps=$lt_postdeps_CXX
13519
13520# The library search path used internally by the compiler when linking
13521# a shared library.
13522compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13523
13524# Method to check whether dependent libraries are shared objects.
13525deplibs_check_method=$lt_deplibs_check_method
13526
13527# Command to use when deplibs_check_method == file_magic.
13528file_magic_cmd=$lt_file_magic_cmd
13529
13530# Flag that allows shared libraries with undefined symbols to be built.
13531allow_undefined_flag=$lt_allow_undefined_flag_CXX
13532
13533# Flag that forces no undefined symbols.
13534no_undefined_flag=$lt_no_undefined_flag_CXX
13535
13536# Commands used to finish a libtool library installation in a directory.
13537finish_cmds=$lt_finish_cmds
13538
13539# Same as above, but a single script fragment to be evaled but not shown.
13540finish_eval=$lt_finish_eval
13541
13542# Take the output of nm and produce a listing of raw symbols and C names.
13543global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13544
13545# Transform the output of nm in a proper C declaration
13546global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13547
13548# Transform the output of nm in a C name address pair
13549global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13550
13551# This is the shared library runtime path variable.
13552runpath_var=$runpath_var
13553
13554# This is the shared library path variable.
13555shlibpath_var=$shlibpath_var
13556
13557# Is shlibpath searched before the hard-coded library search path?
13558shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13559
13560# How to hardcode a shared library path into an executable.
13561hardcode_action=$hardcode_action_CXX
13562
13563# Whether we should hardcode library paths into libraries.
13564hardcode_into_libs=$hardcode_into_libs
13565
13566# Flag to hardcode \$libdir into a binary during linking.
13567# This must work even if \$libdir does not exist.
13568hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13569
13570# If ld is used when linking, flag to hardcode \$libdir into
13571# a binary during linking. This must work even if \$libdir does
13572# not exist.
13573hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13574
13575# Whether we need a single -rpath flag with a separated argument.
13576hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13577
13578# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13579# resulting binary.
13580hardcode_direct=$hardcode_direct_CXX
13581
13582# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13583# resulting binary.
13584hardcode_minus_L=$hardcode_minus_L_CXX
13585
13586# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13587# the resulting binary.
13588hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13589
13590# Set to yes if building a shared library automatically hardcodes DIR into the library
13591# and all subsequent libraries and executables linked against it.
13592hardcode_automatic=$hardcode_automatic_CXX
13593
13594# Variables whose values should be saved in libtool wrapper scripts and
13595# restored at relink time.
13596variables_saved_for_relink="$variables_saved_for_relink"
13597
13598# Whether libtool must link a program against all its dependency libraries.
13599link_all_deplibs=$link_all_deplibs_CXX
13600
13601# Compile-time system search path for libraries
13602sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13603
13604# Run-time system search path for libraries
13605sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13606
13607# Fix the shell variable \$srcfile for the compiler.
13608fix_srcfile_path=$lt_fix_srcfile_path
13609
13610# Set to yes if exported symbols are required.
13611always_export_symbols=$always_export_symbols_CXX
13612
13613# The commands to list exported symbols.
13614export_symbols_cmds=$lt_export_symbols_cmds_CXX
13615
13616# The commands to extract the exported symbol list from a shared archive.
13617extract_expsyms_cmds=$lt_extract_expsyms_cmds
13618
13619# Symbols that should not be listed in the preloaded symbols.
13620exclude_expsyms=$lt_exclude_expsyms_CXX
13621
13622# Symbols that must always be exported.
13623include_expsyms=$lt_include_expsyms_CXX
13624
13625# ### END LIBTOOL TAG CONFIG: $tagname
13626
13627__EOF__
13628
13629
13630else
13631  # If there is no Makefile yet, we rely on a make rule to execute
13632  # `config.status --recheck' to rerun these tests and create the
13633  # libtool script then.
13634  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13635  if test -f "$ltmain_in"; then
13636    test -f Makefile && make "$ltmain"
13637  fi
13638fi
13639
13640
13641ac_ext=c
13642ac_cpp='$CPP $CPPFLAGS'
13643ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13644ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13645ac_compiler_gnu=$ac_cv_c_compiler_gnu
13646
13647CC=$lt_save_CC
13648LDCXX=$LD
13649LD=$lt_save_LD
13650GCC=$lt_save_GCC
13651with_gnu_ldcxx=$with_gnu_ld
13652with_gnu_ld=$lt_save_with_gnu_ld
13653lt_cv_path_LDCXX=$lt_cv_path_LD
13654lt_cv_path_LD=$lt_save_path_LD
13655lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13656lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13657
13658	else
13659	  tagname=""
13660	fi
13661	;;
13662
13663      F77)
13664	if test -n "$F77" && test "X$F77" != "Xno"; then
13665
13666ac_ext=f
13667ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13668ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13669ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13670
13671
13672archive_cmds_need_lc_F77=no
13673allow_undefined_flag_F77=
13674always_export_symbols_F77=no
13675archive_expsym_cmds_F77=
13676export_dynamic_flag_spec_F77=
13677hardcode_direct_F77=no
13678hardcode_libdir_flag_spec_F77=
13679hardcode_libdir_flag_spec_ld_F77=
13680hardcode_libdir_separator_F77=
13681hardcode_minus_L_F77=no
13682hardcode_automatic_F77=no
13683module_cmds_F77=
13684module_expsym_cmds_F77=
13685link_all_deplibs_F77=unknown
13686old_archive_cmds_F77=$old_archive_cmds
13687no_undefined_flag_F77=
13688whole_archive_flag_spec_F77=
13689enable_shared_with_static_runtimes_F77=no
13690
13691# Source file extension for f77 test sources.
13692ac_ext=f
13693
13694# Object file extension for compiled f77 test sources.
13695objext=o
13696objext_F77=$objext
13697
13698# Code to be used in simple compile tests
13699lt_simple_compile_test_code="\
13700      subroutine t
13701      return
13702      end
13703"
13704
13705# Code to be used in simple link tests
13706lt_simple_link_test_code="\
13707      program t
13708      end
13709"
13710
13711# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13712
13713# If no C compiler was specified, use CC.
13714LTCC=${LTCC-"$CC"}
13715
13716# If no C compiler flags were specified, use CFLAGS.
13717LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13718
13719# Allow CC to be a program name with arguments.
13720compiler=$CC
13721
13722
13723# save warnings/boilerplate of simple test code
13724ac_outfile=conftest.$ac_objext
13725echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13726eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13727_lt_compiler_boilerplate=`cat conftest.err`
13728$rm conftest*
13729
13730ac_outfile=conftest.$ac_objext
13731echo "$lt_simple_link_test_code" >conftest.$ac_ext
13732eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13733_lt_linker_boilerplate=`cat conftest.err`
13734$rm conftest*
13735
13736
13737# Allow CC to be a program name with arguments.
13738lt_save_CC="$CC"
13739CC=${F77-"f77"}
13740compiler=$CC
13741compiler_F77=$CC
13742for cc_temp in $compiler""; do
13743  case $cc_temp in
13744    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13745    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13746    \-*) ;;
13747    *) break;;
13748  esac
13749done
13750cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13751
13752
13753echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13754echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13755echo "$as_me:$LINENO: result: $can_build_shared" >&5
13756echo "${ECHO_T}$can_build_shared" >&6
13757
13758echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13759echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13760test "$can_build_shared" = "no" && enable_shared=no
13761
13762# On AIX, shared libraries and static libraries use the same namespace, and
13763# are all built from PIC.
13764case $host_os in
13765aix3*)
13766  test "$enable_shared" = yes && enable_static=no
13767  if test -n "$RANLIB"; then
13768    archive_cmds="$archive_cmds~\$RANLIB \$lib"
13769    postinstall_cmds='$RANLIB $lib'
13770  fi
13771  ;;
13772aix4* | aix5*)
13773  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13774    test "$enable_shared" = yes && enable_static=no
13775  fi
13776  ;;
13777esac
13778echo "$as_me:$LINENO: result: $enable_shared" >&5
13779echo "${ECHO_T}$enable_shared" >&6
13780
13781echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13782echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13783# Make sure either enable_shared or enable_static is yes.
13784test "$enable_shared" = yes || enable_static=yes
13785echo "$as_me:$LINENO: result: $enable_static" >&5
13786echo "${ECHO_T}$enable_static" >&6
13787
13788GCC_F77="$G77"
13789LD_F77="$LD"
13790
13791lt_prog_compiler_wl_F77=
13792lt_prog_compiler_pic_F77=
13793lt_prog_compiler_static_F77=
13794
13795echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13796echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13797
13798  if test "$GCC" = yes; then
13799    lt_prog_compiler_wl_F77='-Wl,'
13800    lt_prog_compiler_static_F77='-static'
13801
13802    case $host_os in
13803      aix*)
13804      # All AIX code is PIC.
13805      if test "$host_cpu" = ia64; then
13806	# AIX 5 now supports IA64 processor
13807	lt_prog_compiler_static_F77='-Bstatic'
13808      fi
13809      ;;
13810
13811    amigaos*)
13812      # FIXME: we need at least 68020 code to build shared libraries, but
13813      # adding the `-m68020' flag to GCC prevents building anything better,
13814      # like `-m68040'.
13815      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13816      ;;
13817
13818    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13819      # PIC is the default for these OSes.
13820      ;;
13821
13822    mingw* | cygwin* | pw32* | os2*)
13823      # This hack is so that the source file can tell whether it is being
13824      # built for inclusion in a dll (and should export symbols for example).
13825      # Although the cygwin gcc ignores -fPIC, still need this for old-style
13826      # (--disable-auto-import) libraries
13827      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13828      ;;
13829
13830    darwin* | rhapsody*)
13831      # PIC is the default on this platform
13832      # Common symbols not allowed in MH_DYLIB files
13833      lt_prog_compiler_pic_F77='-fno-common'
13834      ;;
13835
13836    interix[3-9]*)
13837      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13838      # Instead, we relocate shared libraries at runtime.
13839      ;;
13840
13841    msdosdjgpp*)
13842      # Just because we use GCC doesn't mean we suddenly get shared libraries
13843      # on systems that don't support them.
13844      lt_prog_compiler_can_build_shared_F77=no
13845      enable_shared=no
13846      ;;
13847
13848    sysv4*MP*)
13849      if test -d /usr/nec; then
13850	lt_prog_compiler_pic_F77=-Kconform_pic
13851      fi
13852      ;;
13853
13854    hpux*)
13855      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13856      # not for PA HP-UX.
13857      case $host_cpu in
13858      hppa*64*|ia64*)
13859	# +Z the default
13860	;;
13861      *)
13862	lt_prog_compiler_pic_F77='-fPIC'
13863	;;
13864      esac
13865      ;;
13866
13867    *)
13868      lt_prog_compiler_pic_F77='-fPIC'
13869      ;;
13870    esac
13871  else
13872    # PORTME Check for flag to pass linker flags through the system compiler.
13873    case $host_os in
13874    aix*)
13875      lt_prog_compiler_wl_F77='-Wl,'
13876      if test "$host_cpu" = ia64; then
13877	# AIX 5 now supports IA64 processor
13878	lt_prog_compiler_static_F77='-Bstatic'
13879      else
13880	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13881      fi
13882      ;;
13883      darwin*)
13884        # PIC is the default on this platform
13885        # Common symbols not allowed in MH_DYLIB files
13886       case $cc_basename in
13887         xlc*)
13888         lt_prog_compiler_pic_F77='-qnocommon'
13889         lt_prog_compiler_wl_F77='-Wl,'
13890         ;;
13891       esac
13892       ;;
13893
13894    mingw* | cygwin* | pw32* | os2*)
13895      # This hack is so that the source file can tell whether it is being
13896      # built for inclusion in a dll (and should export symbols for example).
13897      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13898      ;;
13899
13900    hpux9* | hpux10* | hpux11*)
13901      lt_prog_compiler_wl_F77='-Wl,'
13902      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13903      # not for PA HP-UX.
13904      case $host_cpu in
13905      hppa*64*|ia64*)
13906	# +Z the default
13907	;;
13908      *)
13909	lt_prog_compiler_pic_F77='+Z'
13910	;;
13911      esac
13912      # Is there a better lt_prog_compiler_static that works with the bundled CC?
13913      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13914      ;;
13915
13916    irix5* | irix6* | nonstopux*)
13917      lt_prog_compiler_wl_F77='-Wl,'
13918      # PIC (with -KPIC) is the default.
13919      lt_prog_compiler_static_F77='-non_shared'
13920      ;;
13921
13922    newsos6)
13923      lt_prog_compiler_pic_F77='-KPIC'
13924      lt_prog_compiler_static_F77='-Bstatic'
13925      ;;
13926
13927    linux* | k*bsd*-gnu)
13928      case $cc_basename in
13929      icc* | ecc*)
13930	lt_prog_compiler_wl_F77='-Wl,'
13931	lt_prog_compiler_pic_F77='-KPIC'
13932	lt_prog_compiler_static_F77='-static'
13933        ;;
13934      pgcc* | pgf77* | pgf90* | pgf95*)
13935        # Portland Group compilers (*not* the Pentium gcc compiler,
13936	# which looks to be a dead project)
13937	lt_prog_compiler_wl_F77='-Wl,'
13938	lt_prog_compiler_pic_F77='-fpic'
13939	lt_prog_compiler_static_F77='-Bstatic'
13940        ;;
13941      ccc*)
13942        lt_prog_compiler_wl_F77='-Wl,'
13943        # All Alpha code is PIC.
13944        lt_prog_compiler_static_F77='-non_shared'
13945        ;;
13946      *)
13947        case `$CC -V 2>&1 | sed 5q` in
13948	*Sun\ C*)
13949	  # Sun C 5.9
13950	  lt_prog_compiler_pic_F77='-KPIC'
13951	  lt_prog_compiler_static_F77='-Bstatic'
13952	  lt_prog_compiler_wl_F77='-Wl,'
13953	  ;;
13954	*Sun\ F*)
13955	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
13956	  lt_prog_compiler_pic_F77='-KPIC'
13957	  lt_prog_compiler_static_F77='-Bstatic'
13958	  lt_prog_compiler_wl_F77=''
13959	  ;;
13960	esac
13961	;;
13962      esac
13963      ;;
13964
13965    osf3* | osf4* | osf5*)
13966      lt_prog_compiler_wl_F77='-Wl,'
13967      # All OSF/1 code is PIC.
13968      lt_prog_compiler_static_F77='-non_shared'
13969      ;;
13970
13971    rdos*)
13972      lt_prog_compiler_static_F77='-non_shared'
13973      ;;
13974
13975    solaris*)
13976      lt_prog_compiler_pic_F77='-KPIC'
13977      lt_prog_compiler_static_F77='-Bstatic'
13978      case $cc_basename in
13979      f77* | f90* | f95*)
13980	lt_prog_compiler_wl_F77='-Qoption ld ';;
13981      *)
13982	lt_prog_compiler_wl_F77='-Wl,';;
13983      esac
13984      ;;
13985
13986    sunos4*)
13987      lt_prog_compiler_wl_F77='-Qoption ld '
13988      lt_prog_compiler_pic_F77='-PIC'
13989      lt_prog_compiler_static_F77='-Bstatic'
13990      ;;
13991
13992    sysv4 | sysv4.2uw2* | sysv4.3*)
13993      lt_prog_compiler_wl_F77='-Wl,'
13994      lt_prog_compiler_pic_F77='-KPIC'
13995      lt_prog_compiler_static_F77='-Bstatic'
13996      ;;
13997
13998    sysv4*MP*)
13999      if test -d /usr/nec ;then
14000	lt_prog_compiler_pic_F77='-Kconform_pic'
14001	lt_prog_compiler_static_F77='-Bstatic'
14002      fi
14003      ;;
14004
14005    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14006      lt_prog_compiler_wl_F77='-Wl,'
14007      lt_prog_compiler_pic_F77='-KPIC'
14008      lt_prog_compiler_static_F77='-Bstatic'
14009      ;;
14010
14011    unicos*)
14012      lt_prog_compiler_wl_F77='-Wl,'
14013      lt_prog_compiler_can_build_shared_F77=no
14014      ;;
14015
14016    uts4*)
14017      lt_prog_compiler_pic_F77='-pic'
14018      lt_prog_compiler_static_F77='-Bstatic'
14019      ;;
14020
14021    *)
14022      lt_prog_compiler_can_build_shared_F77=no
14023      ;;
14024    esac
14025  fi
14026
14027echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14028echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
14029
14030#
14031# Check to make sure the PIC flag actually works.
14032#
14033if test -n "$lt_prog_compiler_pic_F77"; then
14034
14035echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14036echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
14037if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14038  echo $ECHO_N "(cached) $ECHO_C" >&6
14039else
14040  lt_prog_compiler_pic_works_F77=no
14041  ac_outfile=conftest.$ac_objext
14042   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14043   lt_compiler_flag="$lt_prog_compiler_pic_F77"
14044   # Insert the option either (1) after the last *FLAGS variable, or
14045   # (2) before a word containing "conftest.", or (3) at the end.
14046   # Note that $ac_compile itself does not contain backslashes and begins
14047   # with a dollar sign (not a hyphen), so the echo should work correctly.
14048   # The option is referenced via a variable to avoid confusing sed.
14049   lt_compile=`echo "$ac_compile" | $SED \
14050   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14051   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14052   -e 's:$: $lt_compiler_flag:'`
14053   (eval echo "\"\$as_me:14061: $lt_compile\"" >&5)
14054   (eval "$lt_compile" 2>conftest.err)
14055   ac_status=$?
14056   cat conftest.err >&5
14057   echo "$as_me:14065: \$? = $ac_status" >&5
14058   if (exit $ac_status) && test -s "$ac_outfile"; then
14059     # The compiler can only warn and ignore the option if not recognized
14060     # So say no if there are warnings other than the usual output.
14061     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14062     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14063     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14064       lt_prog_compiler_pic_works_F77=yes
14065     fi
14066   fi
14067   $rm conftest*
14068
14069fi
14070echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14071echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
14072
14073if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14074    case $lt_prog_compiler_pic_F77 in
14075     "" | " "*) ;;
14076     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14077     esac
14078else
14079    lt_prog_compiler_pic_F77=
14080     lt_prog_compiler_can_build_shared_F77=no
14081fi
14082
14083fi
14084case $host_os in
14085  # For platforms which do not support PIC, -DPIC is meaningless:
14086  *djgpp*)
14087    lt_prog_compiler_pic_F77=
14088    ;;
14089  *)
14090    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14091    ;;
14092esac
14093
14094#
14095# Check to make sure the static flag actually works.
14096#
14097wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14098echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14099echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
14100if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14101  echo $ECHO_N "(cached) $ECHO_C" >&6
14102else
14103  lt_prog_compiler_static_works_F77=no
14104   save_LDFLAGS="$LDFLAGS"
14105   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14106   echo "$lt_simple_link_test_code" > conftest.$ac_ext
14107   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14108     # The linker can only warn and ignore the option if not recognized
14109     # So say no if there are warnings
14110     if test -s conftest.err; then
14111       # Append any errors to the config.log.
14112       cat conftest.err 1>&5
14113       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14114       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14115       if diff conftest.exp conftest.er2 >/dev/null; then
14116         lt_prog_compiler_static_works_F77=yes
14117       fi
14118     else
14119       lt_prog_compiler_static_works_F77=yes
14120     fi
14121   fi
14122   $rm conftest*
14123   LDFLAGS="$save_LDFLAGS"
14124
14125fi
14126echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14127echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
14128
14129if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14130    :
14131else
14132    lt_prog_compiler_static_F77=
14133fi
14134
14135
14136echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14137echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14138if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14139  echo $ECHO_N "(cached) $ECHO_C" >&6
14140else
14141  lt_cv_prog_compiler_c_o_F77=no
14142   $rm -r conftest 2>/dev/null
14143   mkdir conftest
14144   cd conftest
14145   mkdir out
14146   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14147
14148   lt_compiler_flag="-o out/conftest2.$ac_objext"
14149   # Insert the option either (1) after the last *FLAGS variable, or
14150   # (2) before a word containing "conftest.", or (3) at the end.
14151   # Note that $ac_compile itself does not contain backslashes and begins
14152   # with a dollar sign (not a hyphen), so the echo should work correctly.
14153   lt_compile=`echo "$ac_compile" | $SED \
14154   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14155   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14156   -e 's:$: $lt_compiler_flag:'`
14157   (eval echo "\"\$as_me:14165: $lt_compile\"" >&5)
14158   (eval "$lt_compile" 2>out/conftest.err)
14159   ac_status=$?
14160   cat out/conftest.err >&5
14161   echo "$as_me:14169: \$? = $ac_status" >&5
14162   if (exit $ac_status) && test -s out/conftest2.$ac_objext
14163   then
14164     # The compiler can only warn and ignore the option if not recognized
14165     # So say no if there are warnings
14166     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14167     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14168     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14169       lt_cv_prog_compiler_c_o_F77=yes
14170     fi
14171   fi
14172   chmod u+w . 2>&5
14173   $rm conftest*
14174   # SGI C++ compiler will create directory out/ii_files/ for
14175   # template instantiation
14176   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14177   $rm out/* && rmdir out
14178   cd ..
14179   rmdir conftest
14180   $rm conftest*
14181
14182fi
14183echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14184echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
14185
14186
14187hard_links="nottested"
14188if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14189  # do not overwrite the value of need_locks provided by the user
14190  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14191echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14192  hard_links=yes
14193  $rm conftest*
14194  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14195  touch conftest.a
14196  ln conftest.a conftest.b 2>&5 || hard_links=no
14197  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14198  echo "$as_me:$LINENO: result: $hard_links" >&5
14199echo "${ECHO_T}$hard_links" >&6
14200  if test "$hard_links" = no; then
14201    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14202echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14203    need_locks=warn
14204  fi
14205else
14206  need_locks=no
14207fi
14208
14209echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14210echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14211
14212  runpath_var=
14213  allow_undefined_flag_F77=
14214  enable_shared_with_static_runtimes_F77=no
14215  archive_cmds_F77=
14216  archive_expsym_cmds_F77=
14217  old_archive_From_new_cmds_F77=
14218  old_archive_from_expsyms_cmds_F77=
14219  export_dynamic_flag_spec_F77=
14220  whole_archive_flag_spec_F77=
14221  thread_safe_flag_spec_F77=
14222  hardcode_libdir_flag_spec_F77=
14223  hardcode_libdir_flag_spec_ld_F77=
14224  hardcode_libdir_separator_F77=
14225  hardcode_direct_F77=no
14226  hardcode_minus_L_F77=no
14227  hardcode_shlibpath_var_F77=unsupported
14228  link_all_deplibs_F77=unknown
14229  hardcode_automatic_F77=no
14230  module_cmds_F77=
14231  module_expsym_cmds_F77=
14232  always_export_symbols_F77=no
14233  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14234  # include_expsyms should be a list of space-separated symbols to be *always*
14235  # included in the symbol list
14236  include_expsyms_F77=
14237  # exclude_expsyms can be an extended regexp of symbols to exclude
14238  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14239  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14240  # as well as any symbol that contains `d'.
14241  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14242  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14243  # platforms (ab)use it in PIC code, but their linkers get confused if
14244  # the symbol is explicitly referenced.  Since portable code cannot
14245  # rely on this symbol name, it's probably fine to never include it in
14246  # preloaded symbol tables.
14247  extract_expsyms_cmds=
14248  # Just being paranoid about ensuring that cc_basename is set.
14249  for cc_temp in $compiler""; do
14250  case $cc_temp in
14251    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14252    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14253    \-*) ;;
14254    *) break;;
14255  esac
14256done
14257cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14258
14259  case $host_os in
14260  cygwin* | mingw* | pw32*)
14261    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14262    # When not using gcc, we currently assume that we are using
14263    # Microsoft Visual C++.
14264    if test "$GCC" != yes; then
14265      with_gnu_ld=no
14266    fi
14267    ;;
14268  interix*)
14269    # we just hope/assume this is gcc and not c89 (= MSVC++)
14270    with_gnu_ld=yes
14271    ;;
14272  openbsd*)
14273    with_gnu_ld=no
14274    ;;
14275  esac
14276
14277  ld_shlibs_F77=yes
14278  if test "$with_gnu_ld" = yes; then
14279    # If archive_cmds runs LD, not CC, wlarc should be empty
14280    wlarc='${wl}'
14281
14282    # Set some defaults for GNU ld with shared library support. These
14283    # are reset later if shared libraries are not supported. Putting them
14284    # here allows them to be overridden if necessary.
14285    runpath_var=LD_RUN_PATH
14286    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14287    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14288    # ancient GNU ld didn't support --whole-archive et. al.
14289    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14290	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14291      else
14292  	whole_archive_flag_spec_F77=
14293    fi
14294    supports_anon_versioning=no
14295    case `$LD -v 2>/dev/null` in
14296      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14297      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14298      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14299      *\ 2.11.*) ;; # other 2.11 versions
14300      *) supports_anon_versioning=yes ;;
14301    esac
14302
14303    # See if GNU ld supports shared libraries.
14304    case $host_os in
14305    aix3* | aix4* | aix5*)
14306      # On AIX/PPC, the GNU linker is very broken
14307      if test "$host_cpu" != ia64; then
14308	ld_shlibs_F77=no
14309	cat <<EOF 1>&2
14310
14311*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14312*** to be unable to reliably create shared libraries on AIX.
14313*** Therefore, libtool is disabling shared libraries support.  If you
14314*** really care for shared libraries, you may want to modify your PATH
14315*** so that a non-GNU linker is found, and then restart.
14316
14317EOF
14318      fi
14319      ;;
14320
14321    amigaos*)
14322      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)'
14323      hardcode_libdir_flag_spec_F77='-L$libdir'
14324      hardcode_minus_L_F77=yes
14325
14326      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14327      # that the semantics of dynamic libraries on AmigaOS, at least up
14328      # to version 4, is to share data among multiple programs linked
14329      # with the same dynamic library.  Since this doesn't match the
14330      # behavior of shared libraries on other platforms, we can't use
14331      # them.
14332      ld_shlibs_F77=no
14333      ;;
14334
14335    beos*)
14336      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14337	allow_undefined_flag_F77=unsupported
14338	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14339	# support --undefined.  This deserves some investigation.  FIXME
14340	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14341      else
14342	ld_shlibs_F77=no
14343      fi
14344      ;;
14345
14346    cygwin* | mingw* | pw32*)
14347      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14348      # as there is no search path for DLLs.
14349      hardcode_libdir_flag_spec_F77='-L$libdir'
14350      allow_undefined_flag_F77=unsupported
14351      always_export_symbols_F77=no
14352      enable_shared_with_static_runtimes_F77=yes
14353      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14354
14355      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14356        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14357	# If the export-symbols file already is a .def file (1st line
14358	# is EXPORTS), use it as is; otherwise, prepend...
14359	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14360	  cp $export_symbols $output_objdir/$soname.def;
14361	else
14362	  echo EXPORTS > $output_objdir/$soname.def;
14363	  cat $export_symbols >> $output_objdir/$soname.def;
14364	fi~
14365	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14366      else
14367	ld_shlibs_F77=no
14368      fi
14369      ;;
14370
14371    interix[3-9]*)
14372      hardcode_direct_F77=no
14373      hardcode_shlibpath_var_F77=no
14374      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14375      export_dynamic_flag_spec_F77='${wl}-E'
14376      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14377      # Instead, shared libraries are loaded at an image base (0x10000000 by
14378      # default) and relocated if they conflict, which is a slow very memory
14379      # consuming and fragmenting process.  To avoid this, we pick a random,
14380      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14381      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14382      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'
14383      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'
14384      ;;
14385
14386    gnu* | linux* | k*bsd*-gnu)
14387      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14388	tmp_addflag=
14389	case $cc_basename,$host_cpu in
14390	pgcc*)				# Portland Group C compiler
14391	  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'
14392	  tmp_addflag=' $pic_flag'
14393	  ;;
14394	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
14395	  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'
14396	  tmp_addflag=' $pic_flag -Mnomain' ;;
14397	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
14398	  tmp_addflag=' -i_dynamic' ;;
14399	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
14400	  tmp_addflag=' -i_dynamic -nofor_main' ;;
14401	ifc* | ifort*)			# Intel Fortran compiler
14402	  tmp_addflag=' -nofor_main' ;;
14403	esac
14404	case `$CC -V 2>&1 | sed 5q` in
14405	*Sun\ C*)			# Sun C 5.9
14406	  whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14407	  tmp_sharedflag='-G' ;;
14408	*Sun\ F*)			# Sun Fortran 8.3
14409	  tmp_sharedflag='-G' ;;
14410	*)
14411	  tmp_sharedflag='-shared' ;;
14412	esac
14413	archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14414
14415	if test $supports_anon_versioning = yes; then
14416	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14417  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14418  $echo "local: *; };" >> $output_objdir/$libname.ver~
14419	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14420	fi
14421      else
14422	ld_shlibs_F77=no
14423      fi
14424      ;;
14425
14426    netbsd*)
14427      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14428	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14429	wlarc=
14430      else
14431	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14432	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14433      fi
14434      ;;
14435
14436    solaris*)
14437      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14438	ld_shlibs_F77=no
14439	cat <<EOF 1>&2
14440
14441*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14442*** create shared libraries on Solaris systems.  Therefore, libtool
14443*** is disabling shared libraries support.  We urge you to upgrade GNU
14444*** binutils to release 2.9.1 or newer.  Another option is to modify
14445*** your PATH or compiler configuration so that the native linker is
14446*** used, and then restart.
14447
14448EOF
14449      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14450	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14451	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14452      else
14453	ld_shlibs_F77=no
14454      fi
14455      ;;
14456
14457    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14458      case `$LD -v 2>&1` in
14459        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14460	ld_shlibs_F77=no
14461	cat <<_LT_EOF 1>&2
14462
14463*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14464*** reliably create shared libraries on SCO systems.  Therefore, libtool
14465*** is disabling shared libraries support.  We urge you to upgrade GNU
14466*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14467*** your PATH or compiler configuration so that the native linker is
14468*** used, and then restart.
14469
14470_LT_EOF
14471	;;
14472	*)
14473	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14474	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14475	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14476	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14477	  else
14478	    ld_shlibs_F77=no
14479	  fi
14480	;;
14481      esac
14482      ;;
14483
14484    sunos4*)
14485      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14486      wlarc=
14487      hardcode_direct_F77=yes
14488      hardcode_shlibpath_var_F77=no
14489      ;;
14490
14491    *)
14492      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14493	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14494	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14495      else
14496	ld_shlibs_F77=no
14497      fi
14498      ;;
14499    esac
14500
14501    if test "$ld_shlibs_F77" = no; then
14502      runpath_var=
14503      hardcode_libdir_flag_spec_F77=
14504      export_dynamic_flag_spec_F77=
14505      whole_archive_flag_spec_F77=
14506    fi
14507  else
14508    # PORTME fill in a description of your system's linker (not GNU ld)
14509    case $host_os in
14510    aix3*)
14511      allow_undefined_flag_F77=unsupported
14512      always_export_symbols_F77=yes
14513      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'
14514      # Note: this linker hardcodes the directories in LIBPATH if there
14515      # are no directories specified by -L.
14516      hardcode_minus_L_F77=yes
14517      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14518	# Neither direct hardcoding nor static linking is supported with a
14519	# broken collect2.
14520	hardcode_direct_F77=unsupported
14521      fi
14522      ;;
14523
14524    aix4* | aix5*)
14525      if test "$host_cpu" = ia64; then
14526	# On IA64, the linker does run time linking by default, so we don't
14527	# have to do anything special.
14528	aix_use_runtimelinking=no
14529	exp_sym_flag='-Bexport'
14530	no_entry_flag=""
14531      else
14532	# If we're using GNU nm, then we don't want the "-C" option.
14533	# -C means demangle to AIX nm, but means don't demangle with GNU nm
14534	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14535	  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'
14536	else
14537	  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'
14538	fi
14539	aix_use_runtimelinking=no
14540
14541	# Test if we are trying to use run time linking or normal
14542	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14543	# need to do runtime linking.
14544	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14545	  for ld_flag in $LDFLAGS; do
14546  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14547  	    aix_use_runtimelinking=yes
14548  	    break
14549  	  fi
14550	  done
14551	  ;;
14552	esac
14553
14554	exp_sym_flag='-bexport'
14555	no_entry_flag='-bnoentry'
14556      fi
14557
14558      # When large executables or shared objects are built, AIX ld can
14559      # have problems creating the table of contents.  If linking a library
14560      # or program results in "error TOC overflow" add -mminimal-toc to
14561      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14562      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14563
14564      archive_cmds_F77=''
14565      hardcode_direct_F77=yes
14566      hardcode_libdir_separator_F77=':'
14567      link_all_deplibs_F77=yes
14568
14569      if test "$GCC" = yes; then
14570	case $host_os in aix4.[012]|aix4.[012].*)
14571	# We only want to do this on AIX 4.2 and lower, the check
14572	# below for broken collect2 doesn't work under 4.3+
14573	  collect2name=`${CC} -print-prog-name=collect2`
14574	  if test -f "$collect2name" && \
14575  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
14576	  then
14577  	  # We have reworked collect2
14578  	  :
14579	  else
14580  	  # We have old collect2
14581  	  hardcode_direct_F77=unsupported
14582  	  # It fails to find uninstalled libraries when the uninstalled
14583  	  # path is not listed in the libpath.  Setting hardcode_minus_L
14584  	  # to unsupported forces relinking
14585  	  hardcode_minus_L_F77=yes
14586  	  hardcode_libdir_flag_spec_F77='-L$libdir'
14587  	  hardcode_libdir_separator_F77=
14588	  fi
14589	  ;;
14590	esac
14591	shared_flag='-shared'
14592	if test "$aix_use_runtimelinking" = yes; then
14593	  shared_flag="$shared_flag "'${wl}-G'
14594	fi
14595      else
14596	# not using gcc
14597	if test "$host_cpu" = ia64; then
14598  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14599  	# chokes on -Wl,-G. The following line is correct:
14600	  shared_flag='-G'
14601	else
14602	  if test "$aix_use_runtimelinking" = yes; then
14603	    shared_flag='${wl}-G'
14604	  else
14605	    shared_flag='${wl}-bM:SRE'
14606	  fi
14607	fi
14608      fi
14609
14610      # It seems that -bexpall does not export symbols beginning with
14611      # underscore (_), so it is better to generate a list of symbols to export.
14612      always_export_symbols_F77=yes
14613      if test "$aix_use_runtimelinking" = yes; then
14614	# Warning - without using the other runtime loading flags (-brtl),
14615	# -berok will link without error, but may produce a broken library.
14616	allow_undefined_flag_F77='-berok'
14617       # Determine the default libpath from the value encoded in an empty executable.
14618       cat >conftest.$ac_ext <<_ACEOF
14619      program main
14620
14621      end
14622_ACEOF
14623rm -f conftest.$ac_objext conftest$ac_exeext
14624if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14625  (eval $ac_link) 2>conftest.er1
14626  ac_status=$?
14627  grep -v '^ *+' conftest.er1 >conftest.err
14628  rm -f conftest.er1
14629  cat conftest.err >&5
14630  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14631  (exit $ac_status); } &&
14632	 { ac_try='test -z "$ac_f77_werror_flag"
14633			 || test ! -s conftest.err'
14634  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14635  (eval $ac_try) 2>&5
14636  ac_status=$?
14637  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14638  (exit $ac_status); }; } &&
14639	 { ac_try='test -s conftest$ac_exeext'
14640  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14641  (eval $ac_try) 2>&5
14642  ac_status=$?
14643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14644  (exit $ac_status); }; }; then
14645
14646lt_aix_libpath_sed='
14647    /Import File Strings/,/^$/ {
14648	/^0/ {
14649	    s/^0  *\(.*\)$/\1/
14650	    p
14651	}
14652    }'
14653aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14654# Check for a 64-bit object if we didn't find anything.
14655if test -z "$aix_libpath"; then
14656  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14657fi
14658else
14659  echo "$as_me: failed program was:" >&5
14660sed 's/^/| /' conftest.$ac_ext >&5
14661
14662fi
14663rm -f conftest.err conftest.$ac_objext \
14664      conftest$ac_exeext conftest.$ac_ext
14665if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14666
14667       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14668	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"
14669       else
14670	if test "$host_cpu" = ia64; then
14671	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14672	  allow_undefined_flag_F77="-z nodefs"
14673	  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"
14674	else
14675	 # Determine the default libpath from the value encoded in an empty executable.
14676	 cat >conftest.$ac_ext <<_ACEOF
14677      program main
14678
14679      end
14680_ACEOF
14681rm -f conftest.$ac_objext conftest$ac_exeext
14682if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14683  (eval $ac_link) 2>conftest.er1
14684  ac_status=$?
14685  grep -v '^ *+' conftest.er1 >conftest.err
14686  rm -f conftest.er1
14687  cat conftest.err >&5
14688  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14689  (exit $ac_status); } &&
14690	 { ac_try='test -z "$ac_f77_werror_flag"
14691			 || test ! -s conftest.err'
14692  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14693  (eval $ac_try) 2>&5
14694  ac_status=$?
14695  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14696  (exit $ac_status); }; } &&
14697	 { ac_try='test -s conftest$ac_exeext'
14698  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14699  (eval $ac_try) 2>&5
14700  ac_status=$?
14701  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14702  (exit $ac_status); }; }; then
14703
14704lt_aix_libpath_sed='
14705    /Import File Strings/,/^$/ {
14706	/^0/ {
14707	    s/^0  *\(.*\)$/\1/
14708	    p
14709	}
14710    }'
14711aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14712# Check for a 64-bit object if we didn't find anything.
14713if test -z "$aix_libpath"; then
14714  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14715fi
14716else
14717  echo "$as_me: failed program was:" >&5
14718sed 's/^/| /' conftest.$ac_ext >&5
14719
14720fi
14721rm -f conftest.err conftest.$ac_objext \
14722      conftest$ac_exeext conftest.$ac_ext
14723if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14724
14725	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14726	  # Warning - without using the other run time loading flags,
14727	  # -berok will link without error, but may produce a broken library.
14728	  no_undefined_flag_F77=' ${wl}-bernotok'
14729	  allow_undefined_flag_F77=' ${wl}-berok'
14730	  # Exported symbols can be pulled into shared objects from archives
14731	  whole_archive_flag_spec_F77='$convenience'
14732	  archive_cmds_need_lc_F77=yes
14733	  # This is similar to how AIX traditionally builds its shared libraries.
14734	  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'
14735	fi
14736      fi
14737      ;;
14738
14739    amigaos*)
14740      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)'
14741      hardcode_libdir_flag_spec_F77='-L$libdir'
14742      hardcode_minus_L_F77=yes
14743      # see comment about different semantics on the GNU ld section
14744      ld_shlibs_F77=no
14745      ;;
14746
14747    bsdi[45]*)
14748      export_dynamic_flag_spec_F77=-rdynamic
14749      ;;
14750
14751    cygwin* | mingw* | pw32*)
14752      # When not using gcc, we currently assume that we are using
14753      # Microsoft Visual C++.
14754      # hardcode_libdir_flag_spec is actually meaningless, as there is
14755      # no search path for DLLs.
14756      hardcode_libdir_flag_spec_F77=' '
14757      allow_undefined_flag_F77=unsupported
14758      # Tell ltmain to make .lib files, not .a files.
14759      libext=lib
14760      # Tell ltmain to make .dll files, not .so files.
14761      shrext_cmds=".dll"
14762      # FIXME: Setting linknames here is a bad hack.
14763      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14764      # The linker will automatically build a .lib file if we build a DLL.
14765      old_archive_From_new_cmds_F77='true'
14766      # FIXME: Should let the user specify the lib program.
14767      old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
14768      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14769      enable_shared_with_static_runtimes_F77=yes
14770      ;;
14771
14772    darwin* | rhapsody*)
14773      case $host_os in
14774        rhapsody* | darwin1.[012])
14775         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14776         ;;
14777       *) # Darwin 1.3 on
14778         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14779           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14780         else
14781           case ${MACOSX_DEPLOYMENT_TARGET} in
14782             10.[012])
14783               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14784               ;;
14785             10.*)
14786               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14787               ;;
14788           esac
14789         fi
14790         ;;
14791      esac
14792      archive_cmds_need_lc_F77=no
14793      hardcode_direct_F77=no
14794      hardcode_automatic_F77=yes
14795      hardcode_shlibpath_var_F77=unsupported
14796      whole_archive_flag_spec_F77=''
14797      link_all_deplibs_F77=yes
14798    if test "$GCC" = yes ; then
14799    	output_verbose_link_cmd='echo'
14800        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14801      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14802      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14803      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}'
14804      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}'
14805    else
14806      case $cc_basename in
14807        xlc*)
14808         output_verbose_link_cmd='echo'
14809         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
14810         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14811          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14812         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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14813          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}'
14814          ;;
14815       *)
14816         ld_shlibs_F77=no
14817          ;;
14818      esac
14819    fi
14820      ;;
14821
14822    dgux*)
14823      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14824      hardcode_libdir_flag_spec_F77='-L$libdir'
14825      hardcode_shlibpath_var_F77=no
14826      ;;
14827
14828    freebsd1*)
14829      ld_shlibs_F77=no
14830      ;;
14831
14832    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14833    # support.  Future versions do this automatically, but an explicit c++rt0.o
14834    # does not break anything, and helps significantly (at the cost of a little
14835    # extra space).
14836    freebsd2.2*)
14837      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14838      hardcode_libdir_flag_spec_F77='-R$libdir'
14839      hardcode_direct_F77=yes
14840      hardcode_shlibpath_var_F77=no
14841      ;;
14842
14843    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14844    freebsd2*)
14845      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14846      hardcode_direct_F77=yes
14847      hardcode_minus_L_F77=yes
14848      hardcode_shlibpath_var_F77=no
14849      ;;
14850
14851    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14852    freebsd* | dragonfly*)
14853      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14854      hardcode_libdir_flag_spec_F77='-R$libdir'
14855      hardcode_direct_F77=yes
14856      hardcode_shlibpath_var_F77=no
14857      ;;
14858
14859    hpux9*)
14860      if test "$GCC" = yes; then
14861	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'
14862      else
14863	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'
14864      fi
14865      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14866      hardcode_libdir_separator_F77=:
14867      hardcode_direct_F77=yes
14868
14869      # hardcode_minus_L: Not really in the search PATH,
14870      # but as the default location of the library.
14871      hardcode_minus_L_F77=yes
14872      export_dynamic_flag_spec_F77='${wl}-E'
14873      ;;
14874
14875    hpux10*)
14876      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14877	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14878      else
14879	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14880      fi
14881      if test "$with_gnu_ld" = no; then
14882	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14883	hardcode_libdir_separator_F77=:
14884
14885	hardcode_direct_F77=yes
14886	export_dynamic_flag_spec_F77='${wl}-E'
14887
14888	# hardcode_minus_L: Not really in the search PATH,
14889	# but as the default location of the library.
14890	hardcode_minus_L_F77=yes
14891      fi
14892      ;;
14893
14894    hpux11*)
14895      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14896	case $host_cpu in
14897	hppa*64*)
14898	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14899	  ;;
14900	ia64*)
14901	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14902	  ;;
14903	*)
14904	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14905	  ;;
14906	esac
14907      else
14908	case $host_cpu in
14909	hppa*64*)
14910	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14911	  ;;
14912	ia64*)
14913	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14914	  ;;
14915	*)
14916	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14917	  ;;
14918	esac
14919      fi
14920      if test "$with_gnu_ld" = no; then
14921	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14922	hardcode_libdir_separator_F77=:
14923
14924	case $host_cpu in
14925	hppa*64*|ia64*)
14926	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14927	  hardcode_direct_F77=no
14928	  hardcode_shlibpath_var_F77=no
14929	  ;;
14930	*)
14931	  hardcode_direct_F77=yes
14932	  export_dynamic_flag_spec_F77='${wl}-E'
14933
14934	  # hardcode_minus_L: Not really in the search PATH,
14935	  # but as the default location of the library.
14936	  hardcode_minus_L_F77=yes
14937	  ;;
14938	esac
14939      fi
14940      ;;
14941
14942    irix5* | irix6* | nonstopux*)
14943      if test "$GCC" = yes; then
14944	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'
14945      else
14946	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'
14947	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14948      fi
14949      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14950      hardcode_libdir_separator_F77=:
14951      link_all_deplibs_F77=yes
14952      ;;
14953
14954    netbsd*)
14955      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14956	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14957      else
14958	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14959      fi
14960      hardcode_libdir_flag_spec_F77='-R$libdir'
14961      hardcode_direct_F77=yes
14962      hardcode_shlibpath_var_F77=no
14963      ;;
14964
14965    newsos6)
14966      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14967      hardcode_direct_F77=yes
14968      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14969      hardcode_libdir_separator_F77=:
14970      hardcode_shlibpath_var_F77=no
14971      ;;
14972
14973    openbsd*)
14974      if test -f /usr/libexec/ld.so; then
14975	hardcode_direct_F77=yes
14976	hardcode_shlibpath_var_F77=no
14977	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14978	  archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14979	  archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14980	  hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14981	  export_dynamic_flag_spec_F77='${wl}-E'
14982	else
14983	  case $host_os in
14984	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14985	     archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14986	     hardcode_libdir_flag_spec_F77='-R$libdir'
14987	     ;;
14988	   *)
14989	     archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14990	     hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14991	     ;;
14992	  esac
14993        fi
14994      else
14995	ld_shlibs_F77=no
14996      fi
14997      ;;
14998
14999    os2*)
15000      hardcode_libdir_flag_spec_F77='-L$libdir'
15001      hardcode_minus_L_F77=yes
15002      allow_undefined_flag_F77=unsupported
15003      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'
15004      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15005      ;;
15006
15007    osf3*)
15008      if test "$GCC" = yes; then
15009	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15010	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'
15011      else
15012	allow_undefined_flag_F77=' -expect_unresolved \*'
15013	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'
15014      fi
15015      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15016      hardcode_libdir_separator_F77=:
15017      ;;
15018
15019    osf4* | osf5*)	# as osf3* with the addition of -msym flag
15020      if test "$GCC" = yes; then
15021	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15022	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'
15023	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15024      else
15025	allow_undefined_flag_F77=' -expect_unresolved \*'
15026	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'
15027	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~
15028	$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'
15029
15030	# Both c and cxx compiler support -rpath directly
15031	hardcode_libdir_flag_spec_F77='-rpath $libdir'
15032      fi
15033      hardcode_libdir_separator_F77=:
15034      ;;
15035
15036    solaris*)
15037      no_undefined_flag_F77=' -z text'
15038      if test "$GCC" = yes; then
15039	wlarc='${wl}'
15040	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15041	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15042	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15043      else
15044	wlarc=''
15045	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15046	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15047  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15048      fi
15049      hardcode_libdir_flag_spec_F77='-R$libdir'
15050      hardcode_shlibpath_var_F77=no
15051      case $host_os in
15052      solaris2.[0-5] | solaris2.[0-5].*) ;;
15053      *)
15054	# The compiler driver will combine and reorder linker options,
15055	# but understands `-z linker_flag'.  GCC discards it without `$wl',
15056	# but is careful enough not to reorder.
15057 	# Supported since Solaris 2.6 (maybe 2.5.1?)
15058	if test "$GCC" = yes; then
15059	  whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15060	else
15061	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15062	fi
15063	;;
15064      esac
15065      link_all_deplibs_F77=yes
15066      ;;
15067
15068    sunos4*)
15069      if test "x$host_vendor" = xsequent; then
15070	# Use $CC to link under sequent, because it throws in some extra .o
15071	# files that make .init and .fini sections work.
15072	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15073      else
15074	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15075      fi
15076      hardcode_libdir_flag_spec_F77='-L$libdir'
15077      hardcode_direct_F77=yes
15078      hardcode_minus_L_F77=yes
15079      hardcode_shlibpath_var_F77=no
15080      ;;
15081
15082    sysv4)
15083      case $host_vendor in
15084	sni)
15085	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15086	  hardcode_direct_F77=yes # is this really true???
15087	;;
15088	siemens)
15089	  ## LD is ld it makes a PLAMLIB
15090	  ## CC just makes a GrossModule.
15091	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15092	  reload_cmds_F77='$CC -r -o $output$reload_objs'
15093	  hardcode_direct_F77=no
15094        ;;
15095	motorola)
15096	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15097	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15098	;;
15099      esac
15100      runpath_var='LD_RUN_PATH'
15101      hardcode_shlibpath_var_F77=no
15102      ;;
15103
15104    sysv4.3*)
15105      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15106      hardcode_shlibpath_var_F77=no
15107      export_dynamic_flag_spec_F77='-Bexport'
15108      ;;
15109
15110    sysv4*MP*)
15111      if test -d /usr/nec; then
15112	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15113	hardcode_shlibpath_var_F77=no
15114	runpath_var=LD_RUN_PATH
15115	hardcode_runpath_var=yes
15116	ld_shlibs_F77=yes
15117      fi
15118      ;;
15119
15120    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15121      no_undefined_flag_F77='${wl}-z,text'
15122      archive_cmds_need_lc_F77=no
15123      hardcode_shlibpath_var_F77=no
15124      runpath_var='LD_RUN_PATH'
15125
15126      if test "$GCC" = yes; then
15127	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15128	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15129      else
15130	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15131	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15132      fi
15133      ;;
15134
15135    sysv5* | sco3.2v5* | sco5v6*)
15136      # Note: We can NOT use -z defs as we might desire, because we do not
15137      # link with -lc, and that would cause any symbols used from libc to
15138      # always be unresolved, which means just about no library would
15139      # ever link correctly.  If we're not using GNU ld we use -z text
15140      # though, which does catch some bad symbols but isn't as heavy-handed
15141      # as -z defs.
15142      no_undefined_flag_F77='${wl}-z,text'
15143      allow_undefined_flag_F77='${wl}-z,nodefs'
15144      archive_cmds_need_lc_F77=no
15145      hardcode_shlibpath_var_F77=no
15146      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15147      hardcode_libdir_separator_F77=':'
15148      link_all_deplibs_F77=yes
15149      export_dynamic_flag_spec_F77='${wl}-Bexport'
15150      runpath_var='LD_RUN_PATH'
15151
15152      if test "$GCC" = yes; then
15153	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15154	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15155      else
15156	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15157	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15158      fi
15159      ;;
15160
15161    uts4*)
15162      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15163      hardcode_libdir_flag_spec_F77='-L$libdir'
15164      hardcode_shlibpath_var_F77=no
15165      ;;
15166
15167    *)
15168      ld_shlibs_F77=no
15169      ;;
15170    esac
15171  fi
15172
15173echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15174echo "${ECHO_T}$ld_shlibs_F77" >&6
15175test "$ld_shlibs_F77" = no && can_build_shared=no
15176
15177#
15178# Do we need to explicitly link libc?
15179#
15180case "x$archive_cmds_need_lc_F77" in
15181x|xyes)
15182  # Assume -lc should be added
15183  archive_cmds_need_lc_F77=yes
15184
15185  if test "$enable_shared" = yes && test "$GCC" = yes; then
15186    case $archive_cmds_F77 in
15187    *'~'*)
15188      # FIXME: we may have to deal with multi-command sequences.
15189      ;;
15190    '$CC '*)
15191      # Test whether the compiler implicitly links with -lc since on some
15192      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15193      # to ld, don't add -lc before -lgcc.
15194      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15195echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15196      $rm conftest*
15197      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15198
15199      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15200  (eval $ac_compile) 2>&5
15201  ac_status=$?
15202  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15203  (exit $ac_status); } 2>conftest.err; then
15204        soname=conftest
15205        lib=conftest
15206        libobjs=conftest.$ac_objext
15207        deplibs=
15208        wl=$lt_prog_compiler_wl_F77
15209	pic_flag=$lt_prog_compiler_pic_F77
15210        compiler_flags=-v
15211        linker_flags=-v
15212        verstring=
15213        output_objdir=.
15214        libname=conftest
15215        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15216        allow_undefined_flag_F77=
15217        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15218  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15219  ac_status=$?
15220  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15221  (exit $ac_status); }
15222        then
15223	  archive_cmds_need_lc_F77=no
15224        else
15225	  archive_cmds_need_lc_F77=yes
15226        fi
15227        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15228      else
15229        cat conftest.err 1>&5
15230      fi
15231      $rm conftest*
15232      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15233echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
15234      ;;
15235    esac
15236  fi
15237  ;;
15238esac
15239
15240echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15241echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15242library_names_spec=
15243libname_spec='lib$name'
15244soname_spec=
15245shrext_cmds=".so"
15246postinstall_cmds=
15247postuninstall_cmds=
15248finish_cmds=
15249finish_eval=
15250shlibpath_var=
15251shlibpath_overrides_runpath=unknown
15252version_type=none
15253dynamic_linker="$host_os ld.so"
15254sys_lib_dlsearch_path_spec="/lib /usr/lib"
15255
15256need_lib_prefix=unknown
15257hardcode_into_libs=no
15258
15259# when you set need_version to no, make sure it does not cause -set_version
15260# flags to be left without arguments
15261need_version=unknown
15262
15263case $host_os in
15264aix3*)
15265  version_type=linux
15266  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15267  shlibpath_var=LIBPATH
15268
15269  # AIX 3 has no versioning support, so we append a major version to the name.
15270  soname_spec='${libname}${release}${shared_ext}$major'
15271  ;;
15272
15273aix4* | aix5*)
15274  version_type=linux
15275  need_lib_prefix=no
15276  need_version=no
15277  hardcode_into_libs=yes
15278  if test "$host_cpu" = ia64; then
15279    # AIX 5 supports IA64
15280    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15281    shlibpath_var=LD_LIBRARY_PATH
15282  else
15283    # With GCC up to 2.95.x, collect2 would create an import file
15284    # for dependence libraries.  The import file would start with
15285    # the line `#! .'.  This would cause the generated library to
15286    # depend on `.', always an invalid library.  This was fixed in
15287    # development snapshots of GCC prior to 3.0.
15288    case $host_os in
15289      aix4 | aix4.[01] | aix4.[01].*)
15290      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15291	   echo ' yes '
15292	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15293	:
15294      else
15295	can_build_shared=no
15296      fi
15297      ;;
15298    esac
15299    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15300    # soname into executable. Probably we can add versioning support to
15301    # collect2, so additional links can be useful in future.
15302    if test "$aix_use_runtimelinking" = yes; then
15303      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15304      # instead of lib<name>.a to let people know that these are not
15305      # typical AIX shared libraries.
15306      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15307    else
15308      # We preserve .a as extension for shared libraries through AIX4.2
15309      # and later when we are not doing run time linking.
15310      library_names_spec='${libname}${release}.a $libname.a'
15311      soname_spec='${libname}${release}${shared_ext}$major'
15312    fi
15313    shlibpath_var=LIBPATH
15314  fi
15315  ;;
15316
15317amigaos*)
15318  library_names_spec='$libname.ixlibrary $libname.a'
15319  # Create ${libname}_ixlibrary.a entries in /sys/libs.
15320  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'
15321  ;;
15322
15323beos*)
15324  library_names_spec='${libname}${shared_ext}'
15325  dynamic_linker="$host_os ld.so"
15326  shlibpath_var=LIBRARY_PATH
15327  ;;
15328
15329bsdi[45]*)
15330  version_type=linux
15331  need_version=no
15332  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15333  soname_spec='${libname}${release}${shared_ext}$major'
15334  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15335  shlibpath_var=LD_LIBRARY_PATH
15336  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15337  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15338  # the default ld.so.conf also contains /usr/contrib/lib and
15339  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15340  # libtool to hard-code these into programs
15341  ;;
15342
15343cygwin* | mingw* | pw32*)
15344  version_type=windows
15345  shrext_cmds=".dll"
15346  need_version=no
15347  need_lib_prefix=no
15348
15349  case $GCC,$host_os in
15350  yes,cygwin* | yes,mingw* | yes,pw32*)
15351    library_names_spec='$libname.dll.a'
15352    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15353    postinstall_cmds='base_file=`basename \${file}`~
15354      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15355      dldir=$destdir/`dirname \$dlpath`~
15356      test -d \$dldir || mkdir -p \$dldir~
15357      $install_prog $dir/$dlname \$dldir/$dlname~
15358      chmod a+x \$dldir/$dlname'
15359    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15360      dlpath=$dir/\$dldll~
15361       $rm \$dlpath'
15362    shlibpath_overrides_runpath=yes
15363
15364    case $host_os in
15365    cygwin*)
15366      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15367      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15368      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15369      ;;
15370    mingw*)
15371      # MinGW DLLs use traditional 'lib' prefix
15372      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15373      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15374      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15375        # It is most probably a Windows format PATH printed by
15376        # mingw gcc, but we are running on Cygwin. Gcc prints its search
15377        # path with ; separators, and with drive letters. We can handle the
15378        # drive letters (cygwin fileutils understands them), so leave them,
15379        # especially as we might pass files found there to a mingw objdump,
15380        # which wouldn't understand a cygwinified path. Ahh.
15381        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15382      else
15383        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15384      fi
15385      ;;
15386    pw32*)
15387      # pw32 DLLs use 'pw' prefix rather than 'lib'
15388      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15389      ;;
15390    esac
15391    ;;
15392
15393  *)
15394    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15395    ;;
15396  esac
15397  dynamic_linker='Win32 ld.exe'
15398  # FIXME: first we should search . and the directory the executable is in
15399  shlibpath_var=PATH
15400  ;;
15401
15402darwin* | rhapsody*)
15403  dynamic_linker="$host_os dyld"
15404  version_type=darwin
15405  need_lib_prefix=no
15406  need_version=no
15407  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15408  soname_spec='${libname}${release}${major}$shared_ext'
15409  shlibpath_overrides_runpath=yes
15410  shlibpath_var=DYLD_LIBRARY_PATH
15411  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15412
15413  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15414  ;;
15415
15416dgux*)
15417  version_type=linux
15418  need_lib_prefix=no
15419  need_version=no
15420  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15421  soname_spec='${libname}${release}${shared_ext}$major'
15422  shlibpath_var=LD_LIBRARY_PATH
15423  ;;
15424
15425freebsd1*)
15426  dynamic_linker=no
15427  ;;
15428
15429freebsd* | dragonfly*)
15430  # DragonFly does not have aout.  When/if they implement a new
15431  # versioning mechanism, adjust this.
15432  if test -x /usr/bin/objformat; then
15433    objformat=`/usr/bin/objformat`
15434  else
15435    case $host_os in
15436    freebsd[123]*) objformat=aout ;;
15437    *) objformat=elf ;;
15438    esac
15439  fi
15440  version_type=freebsd-$objformat
15441  case $version_type in
15442    freebsd-elf*)
15443      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15444      need_version=no
15445      need_lib_prefix=no
15446      ;;
15447    freebsd-*)
15448      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15449      need_version=yes
15450      ;;
15451  esac
15452  shlibpath_var=LD_LIBRARY_PATH
15453  case $host_os in
15454  freebsd2*)
15455    shlibpath_overrides_runpath=yes
15456    ;;
15457  freebsd3.[01]* | freebsdelf3.[01]*)
15458    shlibpath_overrides_runpath=yes
15459    hardcode_into_libs=yes
15460    ;;
15461  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15462  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15463    shlibpath_overrides_runpath=no
15464    hardcode_into_libs=yes
15465    ;;
15466  *) # from 4.6 on, and DragonFly
15467    shlibpath_overrides_runpath=yes
15468    hardcode_into_libs=yes
15469    ;;
15470  esac
15471  ;;
15472
15473gnu*)
15474  version_type=linux
15475  need_lib_prefix=no
15476  need_version=no
15477  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15478  soname_spec='${libname}${release}${shared_ext}$major'
15479  shlibpath_var=LD_LIBRARY_PATH
15480  hardcode_into_libs=yes
15481  ;;
15482
15483hpux9* | hpux10* | hpux11*)
15484  # Give a soname corresponding to the major version so that dld.sl refuses to
15485  # link against other versions.
15486  version_type=sunos
15487  need_lib_prefix=no
15488  need_version=no
15489  case $host_cpu in
15490  ia64*)
15491    shrext_cmds='.so'
15492    hardcode_into_libs=yes
15493    dynamic_linker="$host_os dld.so"
15494    shlibpath_var=LD_LIBRARY_PATH
15495    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15496    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15497    soname_spec='${libname}${release}${shared_ext}$major'
15498    if test "X$HPUX_IA64_MODE" = X32; then
15499      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15500    else
15501      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15502    fi
15503    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15504    ;;
15505   hppa*64*)
15506     shrext_cmds='.sl'
15507     hardcode_into_libs=yes
15508     dynamic_linker="$host_os dld.sl"
15509     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15510     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15514     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15515     ;;
15516   *)
15517    shrext_cmds='.sl'
15518    dynamic_linker="$host_os dld.sl"
15519    shlibpath_var=SHLIB_PATH
15520    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15521    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15522    soname_spec='${libname}${release}${shared_ext}$major'
15523    ;;
15524  esac
15525  # HP-UX runs *really* slowly unless shared libraries are mode 555.
15526  postinstall_cmds='chmod 555 $lib'
15527  ;;
15528
15529interix[3-9]*)
15530  version_type=linux
15531  need_lib_prefix=no
15532  need_version=no
15533  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15534  soname_spec='${libname}${release}${shared_ext}$major'
15535  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15536  shlibpath_var=LD_LIBRARY_PATH
15537  shlibpath_overrides_runpath=no
15538  hardcode_into_libs=yes
15539  ;;
15540
15541irix5* | irix6* | nonstopux*)
15542  case $host_os in
15543    nonstopux*) version_type=nonstopux ;;
15544    *)
15545	if test "$lt_cv_prog_gnu_ld" = yes; then
15546		version_type=linux
15547	else
15548		version_type=irix
15549	fi ;;
15550  esac
15551  need_lib_prefix=no
15552  need_version=no
15553  soname_spec='${libname}${release}${shared_ext}$major'
15554  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15555  case $host_os in
15556  irix5* | nonstopux*)
15557    libsuff= shlibsuff=
15558    ;;
15559  *)
15560    case $LD in # libtool.m4 will add one of these switches to LD
15561    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15562      libsuff= shlibsuff= libmagic=32-bit;;
15563    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15564      libsuff=32 shlibsuff=N32 libmagic=N32;;
15565    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15566      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15567    *) libsuff= shlibsuff= libmagic=never-match;;
15568    esac
15569    ;;
15570  esac
15571  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15572  shlibpath_overrides_runpath=no
15573  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15574  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15575  hardcode_into_libs=yes
15576  ;;
15577
15578# No shared lib support for Linux oldld, aout, or coff.
15579linux*oldld* | linux*aout* | linux*coff*)
15580  dynamic_linker=no
15581  ;;
15582
15583# This must be Linux ELF.
15584linux* | k*bsd*-gnu)
15585  version_type=linux
15586  need_lib_prefix=no
15587  need_version=no
15588  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15589  soname_spec='${libname}${release}${shared_ext}$major'
15590  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15591  shlibpath_var=LD_LIBRARY_PATH
15592  shlibpath_overrides_runpath=no
15593  # This implies no fast_install, which is unacceptable.
15594  # Some rework will be needed to allow for fast_install
15595  # before this can be enabled.
15596  hardcode_into_libs=yes
15597
15598  # Append ld.so.conf contents to the search path
15599  if test -f /etc/ld.so.conf; then
15600    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/#.*//;/^[ 	]*hwcap[ 	]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15601    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15602  fi
15603
15604  # We used to test for /lib/ld.so.1 and disable shared libraries on
15605  # powerpc, because MkLinux only supported shared libraries with the
15606  # GNU dynamic linker.  Since this was broken with cross compilers,
15607  # most powerpc-linux boxes support dynamic linking these days and
15608  # people can always --disable-shared, the test was removed, and we
15609  # assume the GNU/Linux dynamic linker is in use.
15610  dynamic_linker='GNU/Linux ld.so'
15611  ;;
15612
15613netbsd*)
15614  version_type=sunos
15615  need_lib_prefix=no
15616  need_version=no
15617  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15618    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15619    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15620    dynamic_linker='NetBSD (a.out) ld.so'
15621  else
15622    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15623    soname_spec='${libname}${release}${shared_ext}$major'
15624    dynamic_linker='NetBSD ld.elf_so'
15625  fi
15626  shlibpath_var=LD_LIBRARY_PATH
15627  shlibpath_overrides_runpath=yes
15628  hardcode_into_libs=yes
15629  ;;
15630
15631newsos6)
15632  version_type=linux
15633  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15634  shlibpath_var=LD_LIBRARY_PATH
15635  shlibpath_overrides_runpath=yes
15636  ;;
15637
15638nto-qnx*)
15639  version_type=linux
15640  need_lib_prefix=no
15641  need_version=no
15642  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15643  soname_spec='${libname}${release}${shared_ext}$major'
15644  shlibpath_var=LD_LIBRARY_PATH
15645  shlibpath_overrides_runpath=yes
15646  ;;
15647
15648openbsd*)
15649  version_type=sunos
15650  sys_lib_dlsearch_path_spec="/usr/lib"
15651  need_lib_prefix=no
15652  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15653  case $host_os in
15654    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15655    *)                         need_version=no  ;;
15656  esac
15657  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15658  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15659  shlibpath_var=LD_LIBRARY_PATH
15660  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15661    case $host_os in
15662      openbsd2.[89] | openbsd2.[89].*)
15663	shlibpath_overrides_runpath=no
15664	;;
15665      *)
15666	shlibpath_overrides_runpath=yes
15667	;;
15668      esac
15669  else
15670    shlibpath_overrides_runpath=yes
15671  fi
15672  ;;
15673
15674os2*)
15675  libname_spec='$name'
15676  shrext_cmds=".dll"
15677  need_lib_prefix=no
15678  library_names_spec='$libname${shared_ext} $libname.a'
15679  dynamic_linker='OS/2 ld.exe'
15680  shlibpath_var=LIBPATH
15681  ;;
15682
15683osf3* | osf4* | osf5*)
15684  version_type=osf
15685  need_lib_prefix=no
15686  need_version=no
15687  soname_spec='${libname}${release}${shared_ext}$major'
15688  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15689  shlibpath_var=LD_LIBRARY_PATH
15690  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15691  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15692  ;;
15693
15694rdos*)
15695  dynamic_linker=no
15696  ;;
15697
15698solaris*)
15699  version_type=linux
15700  need_lib_prefix=no
15701  need_version=no
15702  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15703  soname_spec='${libname}${release}${shared_ext}$major'
15704  shlibpath_var=LD_LIBRARY_PATH
15705  shlibpath_overrides_runpath=yes
15706  hardcode_into_libs=yes
15707  # ldd complains unless libraries are executable
15708  postinstall_cmds='chmod +x $lib'
15709  ;;
15710
15711sunos4*)
15712  version_type=sunos
15713  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15714  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15715  shlibpath_var=LD_LIBRARY_PATH
15716  shlibpath_overrides_runpath=yes
15717  if test "$with_gnu_ld" = yes; then
15718    need_lib_prefix=no
15719  fi
15720  need_version=yes
15721  ;;
15722
15723sysv4 | sysv4.3*)
15724  version_type=linux
15725  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15726  soname_spec='${libname}${release}${shared_ext}$major'
15727  shlibpath_var=LD_LIBRARY_PATH
15728  case $host_vendor in
15729    sni)
15730      shlibpath_overrides_runpath=no
15731      need_lib_prefix=no
15732      export_dynamic_flag_spec='${wl}-Blargedynsym'
15733      runpath_var=LD_RUN_PATH
15734      ;;
15735    siemens)
15736      need_lib_prefix=no
15737      ;;
15738    motorola)
15739      need_lib_prefix=no
15740      need_version=no
15741      shlibpath_overrides_runpath=no
15742      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15743      ;;
15744  esac
15745  ;;
15746
15747sysv4*MP*)
15748  if test -d /usr/nec ;then
15749    version_type=linux
15750    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15751    soname_spec='$libname${shared_ext}.$major'
15752    shlibpath_var=LD_LIBRARY_PATH
15753  fi
15754  ;;
15755
15756sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15757  version_type=freebsd-elf
15758  need_lib_prefix=no
15759  need_version=no
15760  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15761  soname_spec='${libname}${release}${shared_ext}$major'
15762  shlibpath_var=LD_LIBRARY_PATH
15763  hardcode_into_libs=yes
15764  if test "$with_gnu_ld" = yes; then
15765    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15766    shlibpath_overrides_runpath=no
15767  else
15768    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15769    shlibpath_overrides_runpath=yes
15770    case $host_os in
15771      sco3.2v5*)
15772        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15773	;;
15774    esac
15775  fi
15776  sys_lib_dlsearch_path_spec='/usr/lib'
15777  ;;
15778
15779uts4*)
15780  version_type=linux
15781  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15782  soname_spec='${libname}${release}${shared_ext}$major'
15783  shlibpath_var=LD_LIBRARY_PATH
15784  ;;
15785
15786*)
15787  dynamic_linker=no
15788  ;;
15789esac
15790echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15791echo "${ECHO_T}$dynamic_linker" >&6
15792test "$dynamic_linker" = no && can_build_shared=no
15793
15794variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15795if test "$GCC" = yes; then
15796  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15797fi
15798
15799echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15800echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15801hardcode_action_F77=
15802if test -n "$hardcode_libdir_flag_spec_F77" || \
15803   test -n "$runpath_var_F77" || \
15804   test "X$hardcode_automatic_F77" = "Xyes" ; then
15805
15806  # We can hardcode non-existant directories.
15807  if test "$hardcode_direct_F77" != no &&
15808     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15809     # have to relink, otherwise we might link with an installed library
15810     # when we should be linking with a yet-to-be-installed one
15811     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15812     test "$hardcode_minus_L_F77" != no; then
15813    # Linking always hardcodes the temporary library directory.
15814    hardcode_action_F77=relink
15815  else
15816    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15817    hardcode_action_F77=immediate
15818  fi
15819else
15820  # We cannot hardcode anything, or else we can only hardcode existing
15821  # directories.
15822  hardcode_action_F77=unsupported
15823fi
15824echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15825echo "${ECHO_T}$hardcode_action_F77" >&6
15826
15827if test "$hardcode_action_F77" = relink; then
15828  # Fast installation is not supported
15829  enable_fast_install=no
15830elif test "$shlibpath_overrides_runpath" = yes ||
15831     test "$enable_shared" = no; then
15832  # Fast installation is not necessary
15833  enable_fast_install=needless
15834fi
15835
15836
15837# The else clause should only fire when bootstrapping the
15838# libtool distribution, otherwise you forgot to ship ltmain.sh
15839# with your package, and you will get complaints that there are
15840# no rules to generate ltmain.sh.
15841if test -f "$ltmain"; then
15842  # See if we are running on zsh, and set the options which allow our commands through
15843  # without removal of \ escapes.
15844  if test -n "${ZSH_VERSION+set}" ; then
15845    setopt NO_GLOB_SUBST
15846  fi
15847  # Now quote all the things that may contain metacharacters while being
15848  # careful not to overquote the AC_SUBSTed values.  We take copies of the
15849  # variables and quote the copies for generation of the libtool script.
15850  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15851    SED SHELL STRIP \
15852    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15853    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15854    deplibs_check_method reload_flag reload_cmds need_locks \
15855    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15856    lt_cv_sys_global_symbol_to_c_name_address \
15857    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15858    old_postinstall_cmds old_postuninstall_cmds \
15859    compiler_F77 \
15860    CC_F77 \
15861    LD_F77 \
15862    lt_prog_compiler_wl_F77 \
15863    lt_prog_compiler_pic_F77 \
15864    lt_prog_compiler_static_F77 \
15865    lt_prog_compiler_no_builtin_flag_F77 \
15866    export_dynamic_flag_spec_F77 \
15867    thread_safe_flag_spec_F77 \
15868    whole_archive_flag_spec_F77 \
15869    enable_shared_with_static_runtimes_F77 \
15870    old_archive_cmds_F77 \
15871    old_archive_from_new_cmds_F77 \
15872    predep_objects_F77 \
15873    postdep_objects_F77 \
15874    predeps_F77 \
15875    postdeps_F77 \
15876    compiler_lib_search_path_F77 \
15877    archive_cmds_F77 \
15878    archive_expsym_cmds_F77 \
15879    postinstall_cmds_F77 \
15880    postuninstall_cmds_F77 \
15881    old_archive_from_expsyms_cmds_F77 \
15882    allow_undefined_flag_F77 \
15883    no_undefined_flag_F77 \
15884    export_symbols_cmds_F77 \
15885    hardcode_libdir_flag_spec_F77 \
15886    hardcode_libdir_flag_spec_ld_F77 \
15887    hardcode_libdir_separator_F77 \
15888    hardcode_automatic_F77 \
15889    module_cmds_F77 \
15890    module_expsym_cmds_F77 \
15891    lt_cv_prog_compiler_c_o_F77 \
15892    fix_srcfile_path_F77 \
15893    exclude_expsyms_F77 \
15894    include_expsyms_F77; do
15895
15896    case $var in
15897    old_archive_cmds_F77 | \
15898    old_archive_from_new_cmds_F77 | \
15899    archive_cmds_F77 | \
15900    archive_expsym_cmds_F77 | \
15901    module_cmds_F77 | \
15902    module_expsym_cmds_F77 | \
15903    old_archive_from_expsyms_cmds_F77 | \
15904    export_symbols_cmds_F77 | \
15905    extract_expsyms_cmds | reload_cmds | finish_cmds | \
15906    postinstall_cmds | postuninstall_cmds | \
15907    old_postinstall_cmds | old_postuninstall_cmds | \
15908    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15909      # Double-quote double-evaled strings.
15910      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15911      ;;
15912    *)
15913      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15914      ;;
15915    esac
15916  done
15917
15918  case $lt_echo in
15919  *'\$0 --fallback-echo"')
15920    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15921    ;;
15922  esac
15923
15924cfgfile="$ofile"
15925
15926  cat <<__EOF__ >> "$cfgfile"
15927# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15928
15929# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15930
15931# Shell to use when invoking shell scripts.
15932SHELL=$lt_SHELL
15933
15934# Whether or not to build shared libraries.
15935build_libtool_libs=$enable_shared
15936
15937# Whether or not to build static libraries.
15938build_old_libs=$enable_static
15939
15940# Whether or not to add -lc for building shared libraries.
15941build_libtool_need_lc=$archive_cmds_need_lc_F77
15942
15943# Whether or not to disallow shared libs when runtime libs are static
15944allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15945
15946# Whether or not to optimize for fast installation.
15947fast_install=$enable_fast_install
15948
15949# The host system.
15950host_alias=$host_alias
15951host=$host
15952host_os=$host_os
15953
15954# The build system.
15955build_alias=$build_alias
15956build=$build
15957build_os=$build_os
15958
15959# An echo program that does not interpret backslashes.
15960echo=$lt_echo
15961
15962# The archiver.
15963AR=$lt_AR
15964AR_FLAGS=$lt_AR_FLAGS
15965
15966# A C compiler.
15967LTCC=$lt_LTCC
15968
15969# LTCC compiler flags.
15970LTCFLAGS=$lt_LTCFLAGS
15971
15972# A language-specific compiler.
15973CC=$lt_compiler_F77
15974
15975# Is the compiler the GNU C compiler?
15976with_gcc=$GCC_F77
15977
15978# An ERE matcher.
15979EGREP=$lt_EGREP
15980
15981# The linker used to build libraries.
15982LD=$lt_LD_F77
15983
15984# Whether we need hard or soft links.
15985LN_S=$lt_LN_S
15986
15987# A BSD-compatible nm program.
15988NM=$lt_NM
15989
15990# A symbol stripping program
15991STRIP=$lt_STRIP
15992
15993# Used to examine libraries when file_magic_cmd begins "file"
15994MAGIC_CMD=$MAGIC_CMD
15995
15996# Used on cygwin: DLL creation program.
15997DLLTOOL="$DLLTOOL"
15998
15999# Used on cygwin: object dumper.
16000OBJDUMP="$OBJDUMP"
16001
16002# Used on cygwin: assembler.
16003AS="$AS"
16004
16005# The name of the directory that contains temporary libtool files.
16006objdir=$objdir
16007
16008# How to create reloadable object files.
16009reload_flag=$lt_reload_flag
16010reload_cmds=$lt_reload_cmds
16011
16012# How to pass a linker flag through the compiler.
16013wl=$lt_lt_prog_compiler_wl_F77
16014
16015# Object file suffix (normally "o").
16016objext="$ac_objext"
16017
16018# Old archive suffix (normally "a").
16019libext="$libext"
16020
16021# Shared library suffix (normally ".so").
16022shrext_cmds='$shrext_cmds'
16023
16024# Executable file suffix (normally "").
16025exeext="$exeext"
16026
16027# Additional compiler flags for building library objects.
16028pic_flag=$lt_lt_prog_compiler_pic_F77
16029pic_mode=$pic_mode
16030
16031# What is the maximum length of a command?
16032max_cmd_len=$lt_cv_sys_max_cmd_len
16033
16034# Does compiler simultaneously support -c and -o options?
16035compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16036
16037# Must we lock files when doing compilation?
16038need_locks=$lt_need_locks
16039
16040# Do we need the lib prefix for modules?
16041need_lib_prefix=$need_lib_prefix
16042
16043# Do we need a version for libraries?
16044need_version=$need_version
16045
16046# Whether dlopen is supported.
16047dlopen_support=$enable_dlopen
16048
16049# Whether dlopen of programs is supported.
16050dlopen_self=$enable_dlopen_self
16051
16052# Whether dlopen of statically linked programs is supported.
16053dlopen_self_static=$enable_dlopen_self_static
16054
16055# Compiler flag to prevent dynamic linking.
16056link_static_flag=$lt_lt_prog_compiler_static_F77
16057
16058# Compiler flag to turn off builtin functions.
16059no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16060
16061# Compiler flag to allow reflexive dlopens.
16062export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16063
16064# Compiler flag to generate shared objects directly from archives.
16065whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16066
16067# Compiler flag to generate thread-safe objects.
16068thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16069
16070# Library versioning type.
16071version_type=$version_type
16072
16073# Format of library name prefix.
16074libname_spec=$lt_libname_spec
16075
16076# List of archive names.  First name is the real one, the rest are links.
16077# The last name is the one that the linker finds with -lNAME.
16078library_names_spec=$lt_library_names_spec
16079
16080# The coded name of the library, if different from the real name.
16081soname_spec=$lt_soname_spec
16082
16083# Commands used to build and install an old-style archive.
16084RANLIB=$lt_RANLIB
16085old_archive_cmds=$lt_old_archive_cmds_F77
16086old_postinstall_cmds=$lt_old_postinstall_cmds
16087old_postuninstall_cmds=$lt_old_postuninstall_cmds
16088
16089# Create an old-style archive from a shared archive.
16090old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16091
16092# Create a temporary old-style archive to link instead of a shared archive.
16093old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16094
16095# Commands used to build and install a shared archive.
16096archive_cmds=$lt_archive_cmds_F77
16097archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16098postinstall_cmds=$lt_postinstall_cmds
16099postuninstall_cmds=$lt_postuninstall_cmds
16100
16101# Commands used to build a loadable module (assumed same as above if empty)
16102module_cmds=$lt_module_cmds_F77
16103module_expsym_cmds=$lt_module_expsym_cmds_F77
16104
16105# Commands to strip libraries.
16106old_striplib=$lt_old_striplib
16107striplib=$lt_striplib
16108
16109# Dependencies to place before the objects being linked to create a
16110# shared library.
16111predep_objects=$lt_predep_objects_F77
16112
16113# Dependencies to place after the objects being linked to create a
16114# shared library.
16115postdep_objects=$lt_postdep_objects_F77
16116
16117# Dependencies to place before the objects being linked to create a
16118# shared library.
16119predeps=$lt_predeps_F77
16120
16121# Dependencies to place after the objects being linked to create a
16122# shared library.
16123postdeps=$lt_postdeps_F77
16124
16125# The library search path used internally by the compiler when linking
16126# a shared library.
16127compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16128
16129# Method to check whether dependent libraries are shared objects.
16130deplibs_check_method=$lt_deplibs_check_method
16131
16132# Command to use when deplibs_check_method == file_magic.
16133file_magic_cmd=$lt_file_magic_cmd
16134
16135# Flag that allows shared libraries with undefined symbols to be built.
16136allow_undefined_flag=$lt_allow_undefined_flag_F77
16137
16138# Flag that forces no undefined symbols.
16139no_undefined_flag=$lt_no_undefined_flag_F77
16140
16141# Commands used to finish a libtool library installation in a directory.
16142finish_cmds=$lt_finish_cmds
16143
16144# Same as above, but a single script fragment to be evaled but not shown.
16145finish_eval=$lt_finish_eval
16146
16147# Take the output of nm and produce a listing of raw symbols and C names.
16148global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16149
16150# Transform the output of nm in a proper C declaration
16151global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16152
16153# Transform the output of nm in a C name address pair
16154global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16155
16156# This is the shared library runtime path variable.
16157runpath_var=$runpath_var
16158
16159# This is the shared library path variable.
16160shlibpath_var=$shlibpath_var
16161
16162# Is shlibpath searched before the hard-coded library search path?
16163shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16164
16165# How to hardcode a shared library path into an executable.
16166hardcode_action=$hardcode_action_F77
16167
16168# Whether we should hardcode library paths into libraries.
16169hardcode_into_libs=$hardcode_into_libs
16170
16171# Flag to hardcode \$libdir into a binary during linking.
16172# This must work even if \$libdir does not exist.
16173hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16174
16175# If ld is used when linking, flag to hardcode \$libdir into
16176# a binary during linking. This must work even if \$libdir does
16177# not exist.
16178hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16179
16180# Whether we need a single -rpath flag with a separated argument.
16181hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16182
16183# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16184# resulting binary.
16185hardcode_direct=$hardcode_direct_F77
16186
16187# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16188# resulting binary.
16189hardcode_minus_L=$hardcode_minus_L_F77
16190
16191# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16192# the resulting binary.
16193hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16194
16195# Set to yes if building a shared library automatically hardcodes DIR into the library
16196# and all subsequent libraries and executables linked against it.
16197hardcode_automatic=$hardcode_automatic_F77
16198
16199# Variables whose values should be saved in libtool wrapper scripts and
16200# restored at relink time.
16201variables_saved_for_relink="$variables_saved_for_relink"
16202
16203# Whether libtool must link a program against all its dependency libraries.
16204link_all_deplibs=$link_all_deplibs_F77
16205
16206# Compile-time system search path for libraries
16207sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16208
16209# Run-time system search path for libraries
16210sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16211
16212# Fix the shell variable \$srcfile for the compiler.
16213fix_srcfile_path=$lt_fix_srcfile_path
16214
16215# Set to yes if exported symbols are required.
16216always_export_symbols=$always_export_symbols_F77
16217
16218# The commands to list exported symbols.
16219export_symbols_cmds=$lt_export_symbols_cmds_F77
16220
16221# The commands to extract the exported symbol list from a shared archive.
16222extract_expsyms_cmds=$lt_extract_expsyms_cmds
16223
16224# Symbols that should not be listed in the preloaded symbols.
16225exclude_expsyms=$lt_exclude_expsyms_F77
16226
16227# Symbols that must always be exported.
16228include_expsyms=$lt_include_expsyms_F77
16229
16230# ### END LIBTOOL TAG CONFIG: $tagname
16231
16232__EOF__
16233
16234
16235else
16236  # If there is no Makefile yet, we rely on a make rule to execute
16237  # `config.status --recheck' to rerun these tests and create the
16238  # libtool script then.
16239  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16240  if test -f "$ltmain_in"; then
16241    test -f Makefile && make "$ltmain"
16242  fi
16243fi
16244
16245
16246ac_ext=c
16247ac_cpp='$CPP $CPPFLAGS'
16248ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16249ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16250ac_compiler_gnu=$ac_cv_c_compiler_gnu
16251
16252CC="$lt_save_CC"
16253
16254	else
16255	  tagname=""
16256	fi
16257	;;
16258
16259      GCJ)
16260	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16261
16262
16263
16264# Source file extension for Java test sources.
16265ac_ext=java
16266
16267# Object file extension for compiled Java test sources.
16268objext=o
16269objext_GCJ=$objext
16270
16271# Code to be used in simple compile tests
16272lt_simple_compile_test_code="class foo {}"
16273
16274# Code to be used in simple link tests
16275lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16276
16277# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16278
16279# If no C compiler was specified, use CC.
16280LTCC=${LTCC-"$CC"}
16281
16282# If no C compiler flags were specified, use CFLAGS.
16283LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16284
16285# Allow CC to be a program name with arguments.
16286compiler=$CC
16287
16288
16289# save warnings/boilerplate of simple test code
16290ac_outfile=conftest.$ac_objext
16291echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16292eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16293_lt_compiler_boilerplate=`cat conftest.err`
16294$rm conftest*
16295
16296ac_outfile=conftest.$ac_objext
16297echo "$lt_simple_link_test_code" >conftest.$ac_ext
16298eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16299_lt_linker_boilerplate=`cat conftest.err`
16300$rm conftest*
16301
16302
16303# Allow CC to be a program name with arguments.
16304lt_save_CC="$CC"
16305CC=${GCJ-"gcj"}
16306compiler=$CC
16307compiler_GCJ=$CC
16308for cc_temp in $compiler""; do
16309  case $cc_temp in
16310    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16311    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16312    \-*) ;;
16313    *) break;;
16314  esac
16315done
16316cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16317
16318
16319# GCJ did not exist at the time GCC didn't implicitly link libc in.
16320archive_cmds_need_lc_GCJ=no
16321
16322old_archive_cmds_GCJ=$old_archive_cmds
16323
16324## CAVEAT EMPTOR:
16325## There is no encapsulation within the following macros, do not change
16326## the running order or otherwise move them around unless you know exactly
16327## what you are doing...
16328
16329lt_prog_compiler_no_builtin_flag_GCJ=
16330
16331if test "$GCC" = yes; then
16332  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16333
16334
16335echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16336echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16337if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16338  echo $ECHO_N "(cached) $ECHO_C" >&6
16339else
16340  lt_cv_prog_compiler_rtti_exceptions=no
16341  ac_outfile=conftest.$ac_objext
16342   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16343   lt_compiler_flag="-fno-rtti -fno-exceptions"
16344   # Insert the option either (1) after the last *FLAGS variable, or
16345   # (2) before a word containing "conftest.", or (3) at the end.
16346   # Note that $ac_compile itself does not contain backslashes and begins
16347   # with a dollar sign (not a hyphen), so the echo should work correctly.
16348   # The option is referenced via a variable to avoid confusing sed.
16349   lt_compile=`echo "$ac_compile" | $SED \
16350   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16351   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16352   -e 's:$: $lt_compiler_flag:'`
16353   (eval echo "\"\$as_me:16361: $lt_compile\"" >&5)
16354   (eval "$lt_compile" 2>conftest.err)
16355   ac_status=$?
16356   cat conftest.err >&5
16357   echo "$as_me:16365: \$? = $ac_status" >&5
16358   if (exit $ac_status) && test -s "$ac_outfile"; then
16359     # The compiler can only warn and ignore the option if not recognized
16360     # So say no if there are warnings other than the usual output.
16361     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16362     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16363     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16364       lt_cv_prog_compiler_rtti_exceptions=yes
16365     fi
16366   fi
16367   $rm conftest*
16368
16369fi
16370echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16371echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16372
16373if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16374    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16375else
16376    :
16377fi
16378
16379fi
16380
16381lt_prog_compiler_wl_GCJ=
16382lt_prog_compiler_pic_GCJ=
16383lt_prog_compiler_static_GCJ=
16384
16385echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16386echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16387
16388  if test "$GCC" = yes; then
16389    lt_prog_compiler_wl_GCJ='-Wl,'
16390    lt_prog_compiler_static_GCJ='-static'
16391
16392    case $host_os in
16393      aix*)
16394      # All AIX code is PIC.
16395      if test "$host_cpu" = ia64; then
16396	# AIX 5 now supports IA64 processor
16397	lt_prog_compiler_static_GCJ='-Bstatic'
16398      fi
16399      ;;
16400
16401    amigaos*)
16402      # FIXME: we need at least 68020 code to build shared libraries, but
16403      # adding the `-m68020' flag to GCC prevents building anything better,
16404      # like `-m68040'.
16405      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16406      ;;
16407
16408    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16409      # PIC is the default for these OSes.
16410      ;;
16411
16412    mingw* | cygwin* | pw32* | os2*)
16413      # This hack is so that the source file can tell whether it is being
16414      # built for inclusion in a dll (and should export symbols for example).
16415      # Although the cygwin gcc ignores -fPIC, still need this for old-style
16416      # (--disable-auto-import) libraries
16417      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16418      ;;
16419
16420    darwin* | rhapsody*)
16421      # PIC is the default on this platform
16422      # Common symbols not allowed in MH_DYLIB files
16423      lt_prog_compiler_pic_GCJ='-fno-common'
16424      ;;
16425
16426    interix[3-9]*)
16427      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16428      # Instead, we relocate shared libraries at runtime.
16429      ;;
16430
16431    msdosdjgpp*)
16432      # Just because we use GCC doesn't mean we suddenly get shared libraries
16433      # on systems that don't support them.
16434      lt_prog_compiler_can_build_shared_GCJ=no
16435      enable_shared=no
16436      ;;
16437
16438    sysv4*MP*)
16439      if test -d /usr/nec; then
16440	lt_prog_compiler_pic_GCJ=-Kconform_pic
16441      fi
16442      ;;
16443
16444    hpux*)
16445      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16446      # not for PA HP-UX.
16447      case $host_cpu in
16448      hppa*64*|ia64*)
16449	# +Z the default
16450	;;
16451      *)
16452	lt_prog_compiler_pic_GCJ='-fPIC'
16453	;;
16454      esac
16455      ;;
16456
16457    *)
16458      lt_prog_compiler_pic_GCJ='-fPIC'
16459      ;;
16460    esac
16461  else
16462    # PORTME Check for flag to pass linker flags through the system compiler.
16463    case $host_os in
16464    aix*)
16465      lt_prog_compiler_wl_GCJ='-Wl,'
16466      if test "$host_cpu" = ia64; then
16467	# AIX 5 now supports IA64 processor
16468	lt_prog_compiler_static_GCJ='-Bstatic'
16469      else
16470	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16471      fi
16472      ;;
16473      darwin*)
16474        # PIC is the default on this platform
16475        # Common symbols not allowed in MH_DYLIB files
16476       case $cc_basename in
16477         xlc*)
16478         lt_prog_compiler_pic_GCJ='-qnocommon'
16479         lt_prog_compiler_wl_GCJ='-Wl,'
16480         ;;
16481       esac
16482       ;;
16483
16484    mingw* | cygwin* | pw32* | os2*)
16485      # This hack is so that the source file can tell whether it is being
16486      # built for inclusion in a dll (and should export symbols for example).
16487      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16488      ;;
16489
16490    hpux9* | hpux10* | hpux11*)
16491      lt_prog_compiler_wl_GCJ='-Wl,'
16492      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16493      # not for PA HP-UX.
16494      case $host_cpu in
16495      hppa*64*|ia64*)
16496	# +Z the default
16497	;;
16498      *)
16499	lt_prog_compiler_pic_GCJ='+Z'
16500	;;
16501      esac
16502      # Is there a better lt_prog_compiler_static that works with the bundled CC?
16503      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16504      ;;
16505
16506    irix5* | irix6* | nonstopux*)
16507      lt_prog_compiler_wl_GCJ='-Wl,'
16508      # PIC (with -KPIC) is the default.
16509      lt_prog_compiler_static_GCJ='-non_shared'
16510      ;;
16511
16512    newsos6)
16513      lt_prog_compiler_pic_GCJ='-KPIC'
16514      lt_prog_compiler_static_GCJ='-Bstatic'
16515      ;;
16516
16517    linux* | k*bsd*-gnu)
16518      case $cc_basename in
16519      icc* | ecc*)
16520	lt_prog_compiler_wl_GCJ='-Wl,'
16521	lt_prog_compiler_pic_GCJ='-KPIC'
16522	lt_prog_compiler_static_GCJ='-static'
16523        ;;
16524      pgcc* | pgf77* | pgf90* | pgf95*)
16525        # Portland Group compilers (*not* the Pentium gcc compiler,
16526	# which looks to be a dead project)
16527	lt_prog_compiler_wl_GCJ='-Wl,'
16528	lt_prog_compiler_pic_GCJ='-fpic'
16529	lt_prog_compiler_static_GCJ='-Bstatic'
16530        ;;
16531      ccc*)
16532        lt_prog_compiler_wl_GCJ='-Wl,'
16533        # All Alpha code is PIC.
16534        lt_prog_compiler_static_GCJ='-non_shared'
16535        ;;
16536      *)
16537        case `$CC -V 2>&1 | sed 5q` in
16538	*Sun\ C*)
16539	  # Sun C 5.9
16540	  lt_prog_compiler_pic_GCJ='-KPIC'
16541	  lt_prog_compiler_static_GCJ='-Bstatic'
16542	  lt_prog_compiler_wl_GCJ='-Wl,'
16543	  ;;
16544	*Sun\ F*)
16545	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
16546	  lt_prog_compiler_pic_GCJ='-KPIC'
16547	  lt_prog_compiler_static_GCJ='-Bstatic'
16548	  lt_prog_compiler_wl_GCJ=''
16549	  ;;
16550	esac
16551	;;
16552      esac
16553      ;;
16554
16555    osf3* | osf4* | osf5*)
16556      lt_prog_compiler_wl_GCJ='-Wl,'
16557      # All OSF/1 code is PIC.
16558      lt_prog_compiler_static_GCJ='-non_shared'
16559      ;;
16560
16561    rdos*)
16562      lt_prog_compiler_static_GCJ='-non_shared'
16563      ;;
16564
16565    solaris*)
16566      lt_prog_compiler_pic_GCJ='-KPIC'
16567      lt_prog_compiler_static_GCJ='-Bstatic'
16568      case $cc_basename in
16569      f77* | f90* | f95*)
16570	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16571      *)
16572	lt_prog_compiler_wl_GCJ='-Wl,';;
16573      esac
16574      ;;
16575
16576    sunos4*)
16577      lt_prog_compiler_wl_GCJ='-Qoption ld '
16578      lt_prog_compiler_pic_GCJ='-PIC'
16579      lt_prog_compiler_static_GCJ='-Bstatic'
16580      ;;
16581
16582    sysv4 | sysv4.2uw2* | sysv4.3*)
16583      lt_prog_compiler_wl_GCJ='-Wl,'
16584      lt_prog_compiler_pic_GCJ='-KPIC'
16585      lt_prog_compiler_static_GCJ='-Bstatic'
16586      ;;
16587
16588    sysv4*MP*)
16589      if test -d /usr/nec ;then
16590	lt_prog_compiler_pic_GCJ='-Kconform_pic'
16591	lt_prog_compiler_static_GCJ='-Bstatic'
16592      fi
16593      ;;
16594
16595    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16596      lt_prog_compiler_wl_GCJ='-Wl,'
16597      lt_prog_compiler_pic_GCJ='-KPIC'
16598      lt_prog_compiler_static_GCJ='-Bstatic'
16599      ;;
16600
16601    unicos*)
16602      lt_prog_compiler_wl_GCJ='-Wl,'
16603      lt_prog_compiler_can_build_shared_GCJ=no
16604      ;;
16605
16606    uts4*)
16607      lt_prog_compiler_pic_GCJ='-pic'
16608      lt_prog_compiler_static_GCJ='-Bstatic'
16609      ;;
16610
16611    *)
16612      lt_prog_compiler_can_build_shared_GCJ=no
16613      ;;
16614    esac
16615  fi
16616
16617echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16618echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16619
16620#
16621# Check to make sure the PIC flag actually works.
16622#
16623if test -n "$lt_prog_compiler_pic_GCJ"; then
16624
16625echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16626echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16627if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16628  echo $ECHO_N "(cached) $ECHO_C" >&6
16629else
16630  lt_prog_compiler_pic_works_GCJ=no
16631  ac_outfile=conftest.$ac_objext
16632   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16633   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16634   # Insert the option either (1) after the last *FLAGS variable, or
16635   # (2) before a word containing "conftest.", or (3) at the end.
16636   # Note that $ac_compile itself does not contain backslashes and begins
16637   # with a dollar sign (not a hyphen), so the echo should work correctly.
16638   # The option is referenced via a variable to avoid confusing sed.
16639   lt_compile=`echo "$ac_compile" | $SED \
16640   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16641   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16642   -e 's:$: $lt_compiler_flag:'`
16643   (eval echo "\"\$as_me:16651: $lt_compile\"" >&5)
16644   (eval "$lt_compile" 2>conftest.err)
16645   ac_status=$?
16646   cat conftest.err >&5
16647   echo "$as_me:16655: \$? = $ac_status" >&5
16648   if (exit $ac_status) && test -s "$ac_outfile"; then
16649     # The compiler can only warn and ignore the option if not recognized
16650     # So say no if there are warnings other than the usual output.
16651     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16652     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16653     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16654       lt_prog_compiler_pic_works_GCJ=yes
16655     fi
16656   fi
16657   $rm conftest*
16658
16659fi
16660echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16661echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16662
16663if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16664    case $lt_prog_compiler_pic_GCJ in
16665     "" | " "*) ;;
16666     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16667     esac
16668else
16669    lt_prog_compiler_pic_GCJ=
16670     lt_prog_compiler_can_build_shared_GCJ=no
16671fi
16672
16673fi
16674case $host_os in
16675  # For platforms which do not support PIC, -DPIC is meaningless:
16676  *djgpp*)
16677    lt_prog_compiler_pic_GCJ=
16678    ;;
16679  *)
16680    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16681    ;;
16682esac
16683
16684#
16685# Check to make sure the static flag actually works.
16686#
16687wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16688echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16689echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
16690if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16691  echo $ECHO_N "(cached) $ECHO_C" >&6
16692else
16693  lt_prog_compiler_static_works_GCJ=no
16694   save_LDFLAGS="$LDFLAGS"
16695   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16696   echo "$lt_simple_link_test_code" > conftest.$ac_ext
16697   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16698     # The linker can only warn and ignore the option if not recognized
16699     # So say no if there are warnings
16700     if test -s conftest.err; then
16701       # Append any errors to the config.log.
16702       cat conftest.err 1>&5
16703       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16704       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16705       if diff conftest.exp conftest.er2 >/dev/null; then
16706         lt_prog_compiler_static_works_GCJ=yes
16707       fi
16708     else
16709       lt_prog_compiler_static_works_GCJ=yes
16710     fi
16711   fi
16712   $rm conftest*
16713   LDFLAGS="$save_LDFLAGS"
16714
16715fi
16716echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16717echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
16718
16719if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16720    :
16721else
16722    lt_prog_compiler_static_GCJ=
16723fi
16724
16725
16726echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16727echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16728if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16729  echo $ECHO_N "(cached) $ECHO_C" >&6
16730else
16731  lt_cv_prog_compiler_c_o_GCJ=no
16732   $rm -r conftest 2>/dev/null
16733   mkdir conftest
16734   cd conftest
16735   mkdir out
16736   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16737
16738   lt_compiler_flag="-o out/conftest2.$ac_objext"
16739   # Insert the option either (1) after the last *FLAGS variable, or
16740   # (2) before a word containing "conftest.", or (3) at the end.
16741   # Note that $ac_compile itself does not contain backslashes and begins
16742   # with a dollar sign (not a hyphen), so the echo should work correctly.
16743   lt_compile=`echo "$ac_compile" | $SED \
16744   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16745   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16746   -e 's:$: $lt_compiler_flag:'`
16747   (eval echo "\"\$as_me:16755: $lt_compile\"" >&5)
16748   (eval "$lt_compile" 2>out/conftest.err)
16749   ac_status=$?
16750   cat out/conftest.err >&5
16751   echo "$as_me:16759: \$? = $ac_status" >&5
16752   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16753   then
16754     # The compiler can only warn and ignore the option if not recognized
16755     # So say no if there are warnings
16756     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16757     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16758     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16759       lt_cv_prog_compiler_c_o_GCJ=yes
16760     fi
16761   fi
16762   chmod u+w . 2>&5
16763   $rm conftest*
16764   # SGI C++ compiler will create directory out/ii_files/ for
16765   # template instantiation
16766   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16767   $rm out/* && rmdir out
16768   cd ..
16769   rmdir conftest
16770   $rm conftest*
16771
16772fi
16773echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16774echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16775
16776
16777hard_links="nottested"
16778if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16779  # do not overwrite the value of need_locks provided by the user
16780  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16781echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16782  hard_links=yes
16783  $rm conftest*
16784  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16785  touch conftest.a
16786  ln conftest.a conftest.b 2>&5 || hard_links=no
16787  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16788  echo "$as_me:$LINENO: result: $hard_links" >&5
16789echo "${ECHO_T}$hard_links" >&6
16790  if test "$hard_links" = no; then
16791    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16792echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16793    need_locks=warn
16794  fi
16795else
16796  need_locks=no
16797fi
16798
16799echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16800echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16801
16802  runpath_var=
16803  allow_undefined_flag_GCJ=
16804  enable_shared_with_static_runtimes_GCJ=no
16805  archive_cmds_GCJ=
16806  archive_expsym_cmds_GCJ=
16807  old_archive_From_new_cmds_GCJ=
16808  old_archive_from_expsyms_cmds_GCJ=
16809  export_dynamic_flag_spec_GCJ=
16810  whole_archive_flag_spec_GCJ=
16811  thread_safe_flag_spec_GCJ=
16812  hardcode_libdir_flag_spec_GCJ=
16813  hardcode_libdir_flag_spec_ld_GCJ=
16814  hardcode_libdir_separator_GCJ=
16815  hardcode_direct_GCJ=no
16816  hardcode_minus_L_GCJ=no
16817  hardcode_shlibpath_var_GCJ=unsupported
16818  link_all_deplibs_GCJ=unknown
16819  hardcode_automatic_GCJ=no
16820  module_cmds_GCJ=
16821  module_expsym_cmds_GCJ=
16822  always_export_symbols_GCJ=no
16823  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16824  # include_expsyms should be a list of space-separated symbols to be *always*
16825  # included in the symbol list
16826  include_expsyms_GCJ=
16827  # exclude_expsyms can be an extended regexp of symbols to exclude
16828  # it will be wrapped by ` (' and `)$', so one must not match beginning or
16829  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16830  # as well as any symbol that contains `d'.
16831  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16832  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16833  # platforms (ab)use it in PIC code, but their linkers get confused if
16834  # the symbol is explicitly referenced.  Since portable code cannot
16835  # rely on this symbol name, it's probably fine to never include it in
16836  # preloaded symbol tables.
16837  extract_expsyms_cmds=
16838  # Just being paranoid about ensuring that cc_basename is set.
16839  for cc_temp in $compiler""; do
16840  case $cc_temp in
16841    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16842    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16843    \-*) ;;
16844    *) break;;
16845  esac
16846done
16847cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16848
16849  case $host_os in
16850  cygwin* | mingw* | pw32*)
16851    # FIXME: the MSVC++ port hasn't been tested in a loooong time
16852    # When not using gcc, we currently assume that we are using
16853    # Microsoft Visual C++.
16854    if test "$GCC" != yes; then
16855      with_gnu_ld=no
16856    fi
16857    ;;
16858  interix*)
16859    # we just hope/assume this is gcc and not c89 (= MSVC++)
16860    with_gnu_ld=yes
16861    ;;
16862  openbsd*)
16863    with_gnu_ld=no
16864    ;;
16865  esac
16866
16867  ld_shlibs_GCJ=yes
16868  if test "$with_gnu_ld" = yes; then
16869    # If archive_cmds runs LD, not CC, wlarc should be empty
16870    wlarc='${wl}'
16871
16872    # Set some defaults for GNU ld with shared library support. These
16873    # are reset later if shared libraries are not supported. Putting them
16874    # here allows them to be overridden if necessary.
16875    runpath_var=LD_RUN_PATH
16876    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16877    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16878    # ancient GNU ld didn't support --whole-archive et. al.
16879    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16880	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16881      else
16882  	whole_archive_flag_spec_GCJ=
16883    fi
16884    supports_anon_versioning=no
16885    case `$LD -v 2>/dev/null` in
16886      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16887      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16888      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16889      *\ 2.11.*) ;; # other 2.11 versions
16890      *) supports_anon_versioning=yes ;;
16891    esac
16892
16893    # See if GNU ld supports shared libraries.
16894    case $host_os in
16895    aix3* | aix4* | aix5*)
16896      # On AIX/PPC, the GNU linker is very broken
16897      if test "$host_cpu" != ia64; then
16898	ld_shlibs_GCJ=no
16899	cat <<EOF 1>&2
16900
16901*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16902*** to be unable to reliably create shared libraries on AIX.
16903*** Therefore, libtool is disabling shared libraries support.  If you
16904*** really care for shared libraries, you may want to modify your PATH
16905*** so that a non-GNU linker is found, and then restart.
16906
16907EOF
16908      fi
16909      ;;
16910
16911    amigaos*)
16912      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)'
16913      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16914      hardcode_minus_L_GCJ=yes
16915
16916      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16917      # that the semantics of dynamic libraries on AmigaOS, at least up
16918      # to version 4, is to share data among multiple programs linked
16919      # with the same dynamic library.  Since this doesn't match the
16920      # behavior of shared libraries on other platforms, we can't use
16921      # them.
16922      ld_shlibs_GCJ=no
16923      ;;
16924
16925    beos*)
16926      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16927	allow_undefined_flag_GCJ=unsupported
16928	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16929	# support --undefined.  This deserves some investigation.  FIXME
16930	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16931      else
16932	ld_shlibs_GCJ=no
16933      fi
16934      ;;
16935
16936    cygwin* | mingw* | pw32*)
16937      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16938      # as there is no search path for DLLs.
16939      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16940      allow_undefined_flag_GCJ=unsupported
16941      always_export_symbols_GCJ=no
16942      enable_shared_with_static_runtimes_GCJ=yes
16943      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16944
16945      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16946        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16947	# If the export-symbols file already is a .def file (1st line
16948	# is EXPORTS), use it as is; otherwise, prepend...
16949	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16950	  cp $export_symbols $output_objdir/$soname.def;
16951	else
16952	  echo EXPORTS > $output_objdir/$soname.def;
16953	  cat $export_symbols >> $output_objdir/$soname.def;
16954	fi~
16955	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16956      else
16957	ld_shlibs_GCJ=no
16958      fi
16959      ;;
16960
16961    interix[3-9]*)
16962      hardcode_direct_GCJ=no
16963      hardcode_shlibpath_var_GCJ=no
16964      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16965      export_dynamic_flag_spec_GCJ='${wl}-E'
16966      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16967      # Instead, shared libraries are loaded at an image base (0x10000000 by
16968      # default) and relocated if they conflict, which is a slow very memory
16969      # consuming and fragmenting process.  To avoid this, we pick a random,
16970      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16971      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16972      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'
16973      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'
16974      ;;
16975
16976    gnu* | linux* | k*bsd*-gnu)
16977      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16978	tmp_addflag=
16979	case $cc_basename,$host_cpu in
16980	pgcc*)				# Portland Group C compiler
16981	  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'
16982	  tmp_addflag=' $pic_flag'
16983	  ;;
16984	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
16985	  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'
16986	  tmp_addflag=' $pic_flag -Mnomain' ;;
16987	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
16988	  tmp_addflag=' -i_dynamic' ;;
16989	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
16990	  tmp_addflag=' -i_dynamic -nofor_main' ;;
16991	ifc* | ifort*)			# Intel Fortran compiler
16992	  tmp_addflag=' -nofor_main' ;;
16993	esac
16994	case `$CC -V 2>&1 | sed 5q` in
16995	*Sun\ C*)			# Sun C 5.9
16996	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16997	  tmp_sharedflag='-G' ;;
16998	*Sun\ F*)			# Sun Fortran 8.3
16999	  tmp_sharedflag='-G' ;;
17000	*)
17001	  tmp_sharedflag='-shared' ;;
17002	esac
17003	archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17004
17005	if test $supports_anon_versioning = yes; then
17006	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17007  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17008  $echo "local: *; };" >> $output_objdir/$libname.ver~
17009	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17010	fi
17011      else
17012	ld_shlibs_GCJ=no
17013      fi
17014      ;;
17015
17016    netbsd*)
17017      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17018	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17019	wlarc=
17020      else
17021	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17022	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17023      fi
17024      ;;
17025
17026    solaris*)
17027      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17028	ld_shlibs_GCJ=no
17029	cat <<EOF 1>&2
17030
17031*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17032*** create shared libraries on Solaris systems.  Therefore, libtool
17033*** is disabling shared libraries support.  We urge you to upgrade GNU
17034*** binutils to release 2.9.1 or newer.  Another option is to modify
17035*** your PATH or compiler configuration so that the native linker is
17036*** used, and then restart.
17037
17038EOF
17039      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17040	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17041	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17042      else
17043	ld_shlibs_GCJ=no
17044      fi
17045      ;;
17046
17047    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17048      case `$LD -v 2>&1` in
17049        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17050	ld_shlibs_GCJ=no
17051	cat <<_LT_EOF 1>&2
17052
17053*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17054*** reliably create shared libraries on SCO systems.  Therefore, libtool
17055*** is disabling shared libraries support.  We urge you to upgrade GNU
17056*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17057*** your PATH or compiler configuration so that the native linker is
17058*** used, and then restart.
17059
17060_LT_EOF
17061	;;
17062	*)
17063	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17064	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17065	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17066	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17067	  else
17068	    ld_shlibs_GCJ=no
17069	  fi
17070	;;
17071      esac
17072      ;;
17073
17074    sunos4*)
17075      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17076      wlarc=
17077      hardcode_direct_GCJ=yes
17078      hardcode_shlibpath_var_GCJ=no
17079      ;;
17080
17081    *)
17082      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17083	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17084	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17085      else
17086	ld_shlibs_GCJ=no
17087      fi
17088      ;;
17089    esac
17090
17091    if test "$ld_shlibs_GCJ" = no; then
17092      runpath_var=
17093      hardcode_libdir_flag_spec_GCJ=
17094      export_dynamic_flag_spec_GCJ=
17095      whole_archive_flag_spec_GCJ=
17096    fi
17097  else
17098    # PORTME fill in a description of your system's linker (not GNU ld)
17099    case $host_os in
17100    aix3*)
17101      allow_undefined_flag_GCJ=unsupported
17102      always_export_symbols_GCJ=yes
17103      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'
17104      # Note: this linker hardcodes the directories in LIBPATH if there
17105      # are no directories specified by -L.
17106      hardcode_minus_L_GCJ=yes
17107      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17108	# Neither direct hardcoding nor static linking is supported with a
17109	# broken collect2.
17110	hardcode_direct_GCJ=unsupported
17111      fi
17112      ;;
17113
17114    aix4* | aix5*)
17115      if test "$host_cpu" = ia64; then
17116	# On IA64, the linker does run time linking by default, so we don't
17117	# have to do anything special.
17118	aix_use_runtimelinking=no
17119	exp_sym_flag='-Bexport'
17120	no_entry_flag=""
17121      else
17122	# If we're using GNU nm, then we don't want the "-C" option.
17123	# -C means demangle to AIX nm, but means don't demangle with GNU nm
17124	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17125	  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'
17126	else
17127	  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'
17128	fi
17129	aix_use_runtimelinking=no
17130
17131	# Test if we are trying to use run time linking or normal
17132	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
17133	# need to do runtime linking.
17134	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17135	  for ld_flag in $LDFLAGS; do
17136  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17137  	    aix_use_runtimelinking=yes
17138  	    break
17139  	  fi
17140	  done
17141	  ;;
17142	esac
17143
17144	exp_sym_flag='-bexport'
17145	no_entry_flag='-bnoentry'
17146      fi
17147
17148      # When large executables or shared objects are built, AIX ld can
17149      # have problems creating the table of contents.  If linking a library
17150      # or program results in "error TOC overflow" add -mminimal-toc to
17151      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
17152      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17153
17154      archive_cmds_GCJ=''
17155      hardcode_direct_GCJ=yes
17156      hardcode_libdir_separator_GCJ=':'
17157      link_all_deplibs_GCJ=yes
17158
17159      if test "$GCC" = yes; then
17160	case $host_os in aix4.[012]|aix4.[012].*)
17161	# We only want to do this on AIX 4.2 and lower, the check
17162	# below for broken collect2 doesn't work under 4.3+
17163	  collect2name=`${CC} -print-prog-name=collect2`
17164	  if test -f "$collect2name" && \
17165  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
17166	  then
17167  	  # We have reworked collect2
17168  	  :
17169	  else
17170  	  # We have old collect2
17171  	  hardcode_direct_GCJ=unsupported
17172  	  # It fails to find uninstalled libraries when the uninstalled
17173  	  # path is not listed in the libpath.  Setting hardcode_minus_L
17174  	  # to unsupported forces relinking
17175  	  hardcode_minus_L_GCJ=yes
17176  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
17177  	  hardcode_libdir_separator_GCJ=
17178	  fi
17179	  ;;
17180	esac
17181	shared_flag='-shared'
17182	if test "$aix_use_runtimelinking" = yes; then
17183	  shared_flag="$shared_flag "'${wl}-G'
17184	fi
17185      else
17186	# not using gcc
17187	if test "$host_cpu" = ia64; then
17188  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17189  	# chokes on -Wl,-G. The following line is correct:
17190	  shared_flag='-G'
17191	else
17192	  if test "$aix_use_runtimelinking" = yes; then
17193	    shared_flag='${wl}-G'
17194	  else
17195	    shared_flag='${wl}-bM:SRE'
17196	  fi
17197	fi
17198      fi
17199
17200      # It seems that -bexpall does not export symbols beginning with
17201      # underscore (_), so it is better to generate a list of symbols to export.
17202      always_export_symbols_GCJ=yes
17203      if test "$aix_use_runtimelinking" = yes; then
17204	# Warning - without using the other runtime loading flags (-brtl),
17205	# -berok will link without error, but may produce a broken library.
17206	allow_undefined_flag_GCJ='-berok'
17207       # Determine the default libpath from the value encoded in an empty executable.
17208       cat >conftest.$ac_ext <<_ACEOF
17209/* confdefs.h.  */
17210_ACEOF
17211cat confdefs.h >>conftest.$ac_ext
17212cat >>conftest.$ac_ext <<_ACEOF
17213/* end confdefs.h.  */
17214
17215int
17216main ()
17217{
17218
17219  ;
17220  return 0;
17221}
17222_ACEOF
17223rm -f conftest.$ac_objext conftest$ac_exeext
17224if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17225  (eval $ac_link) 2>conftest.er1
17226  ac_status=$?
17227  grep -v '^ *+' conftest.er1 >conftest.err
17228  rm -f conftest.er1
17229  cat conftest.err >&5
17230  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17231  (exit $ac_status); } &&
17232	 { ac_try='test -z "$ac_c_werror_flag"
17233			 || test ! -s conftest.err'
17234  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17235  (eval $ac_try) 2>&5
17236  ac_status=$?
17237  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17238  (exit $ac_status); }; } &&
17239	 { ac_try='test -s conftest$ac_exeext'
17240  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17241  (eval $ac_try) 2>&5
17242  ac_status=$?
17243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17244  (exit $ac_status); }; }; then
17245
17246lt_aix_libpath_sed='
17247    /Import File Strings/,/^$/ {
17248	/^0/ {
17249	    s/^0  *\(.*\)$/\1/
17250	    p
17251	}
17252    }'
17253aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17254# Check for a 64-bit object if we didn't find anything.
17255if test -z "$aix_libpath"; then
17256  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17257fi
17258else
17259  echo "$as_me: failed program was:" >&5
17260sed 's/^/| /' conftest.$ac_ext >&5
17261
17262fi
17263rm -f conftest.err conftest.$ac_objext \
17264      conftest$ac_exeext conftest.$ac_ext
17265if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17266
17267       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17268	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"
17269       else
17270	if test "$host_cpu" = ia64; then
17271	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17272	  allow_undefined_flag_GCJ="-z nodefs"
17273	  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"
17274	else
17275	 # Determine the default libpath from the value encoded in an empty executable.
17276	 cat >conftest.$ac_ext <<_ACEOF
17277/* confdefs.h.  */
17278_ACEOF
17279cat confdefs.h >>conftest.$ac_ext
17280cat >>conftest.$ac_ext <<_ACEOF
17281/* end confdefs.h.  */
17282
17283int
17284main ()
17285{
17286
17287  ;
17288  return 0;
17289}
17290_ACEOF
17291rm -f conftest.$ac_objext conftest$ac_exeext
17292if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17293  (eval $ac_link) 2>conftest.er1
17294  ac_status=$?
17295  grep -v '^ *+' conftest.er1 >conftest.err
17296  rm -f conftest.er1
17297  cat conftest.err >&5
17298  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17299  (exit $ac_status); } &&
17300	 { ac_try='test -z "$ac_c_werror_flag"
17301			 || test ! -s conftest.err'
17302  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17303  (eval $ac_try) 2>&5
17304  ac_status=$?
17305  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17306  (exit $ac_status); }; } &&
17307	 { ac_try='test -s conftest$ac_exeext'
17308  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17309  (eval $ac_try) 2>&5
17310  ac_status=$?
17311  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17312  (exit $ac_status); }; }; then
17313
17314lt_aix_libpath_sed='
17315    /Import File Strings/,/^$/ {
17316	/^0/ {
17317	    s/^0  *\(.*\)$/\1/
17318	    p
17319	}
17320    }'
17321aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17322# Check for a 64-bit object if we didn't find anything.
17323if test -z "$aix_libpath"; then
17324  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17325fi
17326else
17327  echo "$as_me: failed program was:" >&5
17328sed 's/^/| /' conftest.$ac_ext >&5
17329
17330fi
17331rm -f conftest.err conftest.$ac_objext \
17332      conftest$ac_exeext conftest.$ac_ext
17333if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17334
17335	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17336	  # Warning - without using the other run time loading flags,
17337	  # -berok will link without error, but may produce a broken library.
17338	  no_undefined_flag_GCJ=' ${wl}-bernotok'
17339	  allow_undefined_flag_GCJ=' ${wl}-berok'
17340	  # Exported symbols can be pulled into shared objects from archives
17341	  whole_archive_flag_spec_GCJ='$convenience'
17342	  archive_cmds_need_lc_GCJ=yes
17343	  # This is similar to how AIX traditionally builds its shared libraries.
17344	  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'
17345	fi
17346      fi
17347      ;;
17348
17349    amigaos*)
17350      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)'
17351      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17352      hardcode_minus_L_GCJ=yes
17353      # see comment about different semantics on the GNU ld section
17354      ld_shlibs_GCJ=no
17355      ;;
17356
17357    bsdi[45]*)
17358      export_dynamic_flag_spec_GCJ=-rdynamic
17359      ;;
17360
17361    cygwin* | mingw* | pw32*)
17362      # When not using gcc, we currently assume that we are using
17363      # Microsoft Visual C++.
17364      # hardcode_libdir_flag_spec is actually meaningless, as there is
17365      # no search path for DLLs.
17366      hardcode_libdir_flag_spec_GCJ=' '
17367      allow_undefined_flag_GCJ=unsupported
17368      # Tell ltmain to make .lib files, not .a files.
17369      libext=lib
17370      # Tell ltmain to make .dll files, not .so files.
17371      shrext_cmds=".dll"
17372      # FIXME: Setting linknames here is a bad hack.
17373      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17374      # The linker will automatically build a .lib file if we build a DLL.
17375      old_archive_From_new_cmds_GCJ='true'
17376      # FIXME: Should let the user specify the lib program.
17377      old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17378      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17379      enable_shared_with_static_runtimes_GCJ=yes
17380      ;;
17381
17382    darwin* | rhapsody*)
17383      case $host_os in
17384        rhapsody* | darwin1.[012])
17385         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17386         ;;
17387       *) # Darwin 1.3 on
17388         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17389           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17390         else
17391           case ${MACOSX_DEPLOYMENT_TARGET} in
17392             10.[012])
17393               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17394               ;;
17395             10.*)
17396               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17397               ;;
17398           esac
17399         fi
17400         ;;
17401      esac
17402      archive_cmds_need_lc_GCJ=no
17403      hardcode_direct_GCJ=no
17404      hardcode_automatic_GCJ=yes
17405      hardcode_shlibpath_var_GCJ=unsupported
17406      whole_archive_flag_spec_GCJ=''
17407      link_all_deplibs_GCJ=yes
17408    if test "$GCC" = yes ; then
17409    	output_verbose_link_cmd='echo'
17410        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17411      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17412      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17413      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}'
17414      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}'
17415    else
17416      case $cc_basename in
17417        xlc*)
17418         output_verbose_link_cmd='echo'
17419         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17420         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17421          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17422         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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17423          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}'
17424          ;;
17425       *)
17426         ld_shlibs_GCJ=no
17427          ;;
17428      esac
17429    fi
17430      ;;
17431
17432    dgux*)
17433      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17434      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17435      hardcode_shlibpath_var_GCJ=no
17436      ;;
17437
17438    freebsd1*)
17439      ld_shlibs_GCJ=no
17440      ;;
17441
17442    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17443    # support.  Future versions do this automatically, but an explicit c++rt0.o
17444    # does not break anything, and helps significantly (at the cost of a little
17445    # extra space).
17446    freebsd2.2*)
17447      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17448      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17449      hardcode_direct_GCJ=yes
17450      hardcode_shlibpath_var_GCJ=no
17451      ;;
17452
17453    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17454    freebsd2*)
17455      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17456      hardcode_direct_GCJ=yes
17457      hardcode_minus_L_GCJ=yes
17458      hardcode_shlibpath_var_GCJ=no
17459      ;;
17460
17461    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17462    freebsd* | dragonfly*)
17463      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17464      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17465      hardcode_direct_GCJ=yes
17466      hardcode_shlibpath_var_GCJ=no
17467      ;;
17468
17469    hpux9*)
17470      if test "$GCC" = yes; then
17471	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'
17472      else
17473	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'
17474      fi
17475      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17476      hardcode_libdir_separator_GCJ=:
17477      hardcode_direct_GCJ=yes
17478
17479      # hardcode_minus_L: Not really in the search PATH,
17480      # but as the default location of the library.
17481      hardcode_minus_L_GCJ=yes
17482      export_dynamic_flag_spec_GCJ='${wl}-E'
17483      ;;
17484
17485    hpux10*)
17486      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17487	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17488      else
17489	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17490      fi
17491      if test "$with_gnu_ld" = no; then
17492	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17493	hardcode_libdir_separator_GCJ=:
17494
17495	hardcode_direct_GCJ=yes
17496	export_dynamic_flag_spec_GCJ='${wl}-E'
17497
17498	# hardcode_minus_L: Not really in the search PATH,
17499	# but as the default location of the library.
17500	hardcode_minus_L_GCJ=yes
17501      fi
17502      ;;
17503
17504    hpux11*)
17505      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17506	case $host_cpu in
17507	hppa*64*)
17508	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17509	  ;;
17510	ia64*)
17511	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17512	  ;;
17513	*)
17514	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17515	  ;;
17516	esac
17517      else
17518	case $host_cpu in
17519	hppa*64*)
17520	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17521	  ;;
17522	ia64*)
17523	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17524	  ;;
17525	*)
17526	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17527	  ;;
17528	esac
17529      fi
17530      if test "$with_gnu_ld" = no; then
17531	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17532	hardcode_libdir_separator_GCJ=:
17533
17534	case $host_cpu in
17535	hppa*64*|ia64*)
17536	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17537	  hardcode_direct_GCJ=no
17538	  hardcode_shlibpath_var_GCJ=no
17539	  ;;
17540	*)
17541	  hardcode_direct_GCJ=yes
17542	  export_dynamic_flag_spec_GCJ='${wl}-E'
17543
17544	  # hardcode_minus_L: Not really in the search PATH,
17545	  # but as the default location of the library.
17546	  hardcode_minus_L_GCJ=yes
17547	  ;;
17548	esac
17549      fi
17550      ;;
17551
17552    irix5* | irix6* | nonstopux*)
17553      if test "$GCC" = yes; then
17554	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'
17555      else
17556	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'
17557	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17558      fi
17559      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17560      hardcode_libdir_separator_GCJ=:
17561      link_all_deplibs_GCJ=yes
17562      ;;
17563
17564    netbsd*)
17565      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17566	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17567      else
17568	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17569      fi
17570      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17571      hardcode_direct_GCJ=yes
17572      hardcode_shlibpath_var_GCJ=no
17573      ;;
17574
17575    newsos6)
17576      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17577      hardcode_direct_GCJ=yes
17578      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17579      hardcode_libdir_separator_GCJ=:
17580      hardcode_shlibpath_var_GCJ=no
17581      ;;
17582
17583    openbsd*)
17584      if test -f /usr/libexec/ld.so; then
17585	hardcode_direct_GCJ=yes
17586	hardcode_shlibpath_var_GCJ=no
17587	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17588	  archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17589	  archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17590	  hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17591	  export_dynamic_flag_spec_GCJ='${wl}-E'
17592	else
17593	  case $host_os in
17594	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17595	     archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17596	     hardcode_libdir_flag_spec_GCJ='-R$libdir'
17597	     ;;
17598	   *)
17599	     archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17600	     hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17601	     ;;
17602	  esac
17603        fi
17604      else
17605	ld_shlibs_GCJ=no
17606      fi
17607      ;;
17608
17609    os2*)
17610      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17611      hardcode_minus_L_GCJ=yes
17612      allow_undefined_flag_GCJ=unsupported
17613      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'
17614      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17615      ;;
17616
17617    osf3*)
17618      if test "$GCC" = yes; then
17619	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17620	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'
17621      else
17622	allow_undefined_flag_GCJ=' -expect_unresolved \*'
17623	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'
17624      fi
17625      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17626      hardcode_libdir_separator_GCJ=:
17627      ;;
17628
17629    osf4* | osf5*)	# as osf3* with the addition of -msym flag
17630      if test "$GCC" = yes; then
17631	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17632	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'
17633	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17634      else
17635	allow_undefined_flag_GCJ=' -expect_unresolved \*'
17636	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'
17637	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~
17638	$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'
17639
17640	# Both c and cxx compiler support -rpath directly
17641	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17642      fi
17643      hardcode_libdir_separator_GCJ=:
17644      ;;
17645
17646    solaris*)
17647      no_undefined_flag_GCJ=' -z text'
17648      if test "$GCC" = yes; then
17649	wlarc='${wl}'
17650	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17651	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17652	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17653      else
17654	wlarc=''
17655	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17656	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17657  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17658      fi
17659      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17660      hardcode_shlibpath_var_GCJ=no
17661      case $host_os in
17662      solaris2.[0-5] | solaris2.[0-5].*) ;;
17663      *)
17664	# The compiler driver will combine and reorder linker options,
17665	# but understands `-z linker_flag'.  GCC discards it without `$wl',
17666	# but is careful enough not to reorder.
17667 	# Supported since Solaris 2.6 (maybe 2.5.1?)
17668	if test "$GCC" = yes; then
17669	  whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17670	else
17671	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
17672	fi
17673	;;
17674      esac
17675      link_all_deplibs_GCJ=yes
17676      ;;
17677
17678    sunos4*)
17679      if test "x$host_vendor" = xsequent; then
17680	# Use $CC to link under sequent, because it throws in some extra .o
17681	# files that make .init and .fini sections work.
17682	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17683      else
17684	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17685      fi
17686      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17687      hardcode_direct_GCJ=yes
17688      hardcode_minus_L_GCJ=yes
17689      hardcode_shlibpath_var_GCJ=no
17690      ;;
17691
17692    sysv4)
17693      case $host_vendor in
17694	sni)
17695	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17696	  hardcode_direct_GCJ=yes # is this really true???
17697	;;
17698	siemens)
17699	  ## LD is ld it makes a PLAMLIB
17700	  ## CC just makes a GrossModule.
17701	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17702	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17703	  hardcode_direct_GCJ=no
17704        ;;
17705	motorola)
17706	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17707	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17708	;;
17709      esac
17710      runpath_var='LD_RUN_PATH'
17711      hardcode_shlibpath_var_GCJ=no
17712      ;;
17713
17714    sysv4.3*)
17715      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17716      hardcode_shlibpath_var_GCJ=no
17717      export_dynamic_flag_spec_GCJ='-Bexport'
17718      ;;
17719
17720    sysv4*MP*)
17721      if test -d /usr/nec; then
17722	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17723	hardcode_shlibpath_var_GCJ=no
17724	runpath_var=LD_RUN_PATH
17725	hardcode_runpath_var=yes
17726	ld_shlibs_GCJ=yes
17727      fi
17728      ;;
17729
17730    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17731      no_undefined_flag_GCJ='${wl}-z,text'
17732      archive_cmds_need_lc_GCJ=no
17733      hardcode_shlibpath_var_GCJ=no
17734      runpath_var='LD_RUN_PATH'
17735
17736      if test "$GCC" = yes; then
17737	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17738	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17739      else
17740	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17741	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17742      fi
17743      ;;
17744
17745    sysv5* | sco3.2v5* | sco5v6*)
17746      # Note: We can NOT use -z defs as we might desire, because we do not
17747      # link with -lc, and that would cause any symbols used from libc to
17748      # always be unresolved, which means just about no library would
17749      # ever link correctly.  If we're not using GNU ld we use -z text
17750      # though, which does catch some bad symbols but isn't as heavy-handed
17751      # as -z defs.
17752      no_undefined_flag_GCJ='${wl}-z,text'
17753      allow_undefined_flag_GCJ='${wl}-z,nodefs'
17754      archive_cmds_need_lc_GCJ=no
17755      hardcode_shlibpath_var_GCJ=no
17756      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17757      hardcode_libdir_separator_GCJ=':'
17758      link_all_deplibs_GCJ=yes
17759      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17760      runpath_var='LD_RUN_PATH'
17761
17762      if test "$GCC" = yes; then
17763	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17764	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17765      else
17766	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17767	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17768      fi
17769      ;;
17770
17771    uts4*)
17772      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17773      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17774      hardcode_shlibpath_var_GCJ=no
17775      ;;
17776
17777    *)
17778      ld_shlibs_GCJ=no
17779      ;;
17780    esac
17781  fi
17782
17783echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17784echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17785test "$ld_shlibs_GCJ" = no && can_build_shared=no
17786
17787#
17788# Do we need to explicitly link libc?
17789#
17790case "x$archive_cmds_need_lc_GCJ" in
17791x|xyes)
17792  # Assume -lc should be added
17793  archive_cmds_need_lc_GCJ=yes
17794
17795  if test "$enable_shared" = yes && test "$GCC" = yes; then
17796    case $archive_cmds_GCJ in
17797    *'~'*)
17798      # FIXME: we may have to deal with multi-command sequences.
17799      ;;
17800    '$CC '*)
17801      # Test whether the compiler implicitly links with -lc since on some
17802      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17803      # to ld, don't add -lc before -lgcc.
17804      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17805echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17806      $rm conftest*
17807      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17808
17809      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17810  (eval $ac_compile) 2>&5
17811  ac_status=$?
17812  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17813  (exit $ac_status); } 2>conftest.err; then
17814        soname=conftest
17815        lib=conftest
17816        libobjs=conftest.$ac_objext
17817        deplibs=
17818        wl=$lt_prog_compiler_wl_GCJ
17819	pic_flag=$lt_prog_compiler_pic_GCJ
17820        compiler_flags=-v
17821        linker_flags=-v
17822        verstring=
17823        output_objdir=.
17824        libname=conftest
17825        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17826        allow_undefined_flag_GCJ=
17827        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17828  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17829  ac_status=$?
17830  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17831  (exit $ac_status); }
17832        then
17833	  archive_cmds_need_lc_GCJ=no
17834        else
17835	  archive_cmds_need_lc_GCJ=yes
17836        fi
17837        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17838      else
17839        cat conftest.err 1>&5
17840      fi
17841      $rm conftest*
17842      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17843echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17844      ;;
17845    esac
17846  fi
17847  ;;
17848esac
17849
17850echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17851echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17852library_names_spec=
17853libname_spec='lib$name'
17854soname_spec=
17855shrext_cmds=".so"
17856postinstall_cmds=
17857postuninstall_cmds=
17858finish_cmds=
17859finish_eval=
17860shlibpath_var=
17861shlibpath_overrides_runpath=unknown
17862version_type=none
17863dynamic_linker="$host_os ld.so"
17864sys_lib_dlsearch_path_spec="/lib /usr/lib"
17865
17866need_lib_prefix=unknown
17867hardcode_into_libs=no
17868
17869# when you set need_version to no, make sure it does not cause -set_version
17870# flags to be left without arguments
17871need_version=unknown
17872
17873case $host_os in
17874aix3*)
17875  version_type=linux
17876  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17877  shlibpath_var=LIBPATH
17878
17879  # AIX 3 has no versioning support, so we append a major version to the name.
17880  soname_spec='${libname}${release}${shared_ext}$major'
17881  ;;
17882
17883aix4* | aix5*)
17884  version_type=linux
17885  need_lib_prefix=no
17886  need_version=no
17887  hardcode_into_libs=yes
17888  if test "$host_cpu" = ia64; then
17889    # AIX 5 supports IA64
17890    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17891    shlibpath_var=LD_LIBRARY_PATH
17892  else
17893    # With GCC up to 2.95.x, collect2 would create an import file
17894    # for dependence libraries.  The import file would start with
17895    # the line `#! .'.  This would cause the generated library to
17896    # depend on `.', always an invalid library.  This was fixed in
17897    # development snapshots of GCC prior to 3.0.
17898    case $host_os in
17899      aix4 | aix4.[01] | aix4.[01].*)
17900      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17901	   echo ' yes '
17902	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17903	:
17904      else
17905	can_build_shared=no
17906      fi
17907      ;;
17908    esac
17909    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17910    # soname into executable. Probably we can add versioning support to
17911    # collect2, so additional links can be useful in future.
17912    if test "$aix_use_runtimelinking" = yes; then
17913      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17914      # instead of lib<name>.a to let people know that these are not
17915      # typical AIX shared libraries.
17916      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17917    else
17918      # We preserve .a as extension for shared libraries through AIX4.2
17919      # and later when we are not doing run time linking.
17920      library_names_spec='${libname}${release}.a $libname.a'
17921      soname_spec='${libname}${release}${shared_ext}$major'
17922    fi
17923    shlibpath_var=LIBPATH
17924  fi
17925  ;;
17926
17927amigaos*)
17928  library_names_spec='$libname.ixlibrary $libname.a'
17929  # Create ${libname}_ixlibrary.a entries in /sys/libs.
17930  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'
17931  ;;
17932
17933beos*)
17934  library_names_spec='${libname}${shared_ext}'
17935  dynamic_linker="$host_os ld.so"
17936  shlibpath_var=LIBRARY_PATH
17937  ;;
17938
17939bsdi[45]*)
17940  version_type=linux
17941  need_version=no
17942  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17943  soname_spec='${libname}${release}${shared_ext}$major'
17944  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17945  shlibpath_var=LD_LIBRARY_PATH
17946  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17947  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17948  # the default ld.so.conf also contains /usr/contrib/lib and
17949  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17950  # libtool to hard-code these into programs
17951  ;;
17952
17953cygwin* | mingw* | pw32*)
17954  version_type=windows
17955  shrext_cmds=".dll"
17956  need_version=no
17957  need_lib_prefix=no
17958
17959  case $GCC,$host_os in
17960  yes,cygwin* | yes,mingw* | yes,pw32*)
17961    library_names_spec='$libname.dll.a'
17962    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17963    postinstall_cmds='base_file=`basename \${file}`~
17964      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17965      dldir=$destdir/`dirname \$dlpath`~
17966      test -d \$dldir || mkdir -p \$dldir~
17967      $install_prog $dir/$dlname \$dldir/$dlname~
17968      chmod a+x \$dldir/$dlname'
17969    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17970      dlpath=$dir/\$dldll~
17971       $rm \$dlpath'
17972    shlibpath_overrides_runpath=yes
17973
17974    case $host_os in
17975    cygwin*)
17976      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17977      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17978      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17979      ;;
17980    mingw*)
17981      # MinGW DLLs use traditional 'lib' prefix
17982      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17983      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17984      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17985        # It is most probably a Windows format PATH printed by
17986        # mingw gcc, but we are running on Cygwin. Gcc prints its search
17987        # path with ; separators, and with drive letters. We can handle the
17988        # drive letters (cygwin fileutils understands them), so leave them,
17989        # especially as we might pass files found there to a mingw objdump,
17990        # which wouldn't understand a cygwinified path. Ahh.
17991        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17992      else
17993        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17994      fi
17995      ;;
17996    pw32*)
17997      # pw32 DLLs use 'pw' prefix rather than 'lib'
17998      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17999      ;;
18000    esac
18001    ;;
18002
18003  *)
18004    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18005    ;;
18006  esac
18007  dynamic_linker='Win32 ld.exe'
18008  # FIXME: first we should search . and the directory the executable is in
18009  shlibpath_var=PATH
18010  ;;
18011
18012darwin* | rhapsody*)
18013  dynamic_linker="$host_os dyld"
18014  version_type=darwin
18015  need_lib_prefix=no
18016  need_version=no
18017  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18018  soname_spec='${libname}${release}${major}$shared_ext'
18019  shlibpath_overrides_runpath=yes
18020  shlibpath_var=DYLD_LIBRARY_PATH
18021  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18022
18023  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18024  ;;
18025
18026dgux*)
18027  version_type=linux
18028  need_lib_prefix=no
18029  need_version=no
18030  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18031  soname_spec='${libname}${release}${shared_ext}$major'
18032  shlibpath_var=LD_LIBRARY_PATH
18033  ;;
18034
18035freebsd1*)
18036  dynamic_linker=no
18037  ;;
18038
18039freebsd* | dragonfly*)
18040  # DragonFly does not have aout.  When/if they implement a new
18041  # versioning mechanism, adjust this.
18042  if test -x /usr/bin/objformat; then
18043    objformat=`/usr/bin/objformat`
18044  else
18045    case $host_os in
18046    freebsd[123]*) objformat=aout ;;
18047    *) objformat=elf ;;
18048    esac
18049  fi
18050  version_type=freebsd-$objformat
18051  case $version_type in
18052    freebsd-elf*)
18053      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18054      need_version=no
18055      need_lib_prefix=no
18056      ;;
18057    freebsd-*)
18058      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18059      need_version=yes
18060      ;;
18061  esac
18062  shlibpath_var=LD_LIBRARY_PATH
18063  case $host_os in
18064  freebsd2*)
18065    shlibpath_overrides_runpath=yes
18066    ;;
18067  freebsd3.[01]* | freebsdelf3.[01]*)
18068    shlibpath_overrides_runpath=yes
18069    hardcode_into_libs=yes
18070    ;;
18071  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18072  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18073    shlibpath_overrides_runpath=no
18074    hardcode_into_libs=yes
18075    ;;
18076  *) # from 4.6 on, and DragonFly
18077    shlibpath_overrides_runpath=yes
18078    hardcode_into_libs=yes
18079    ;;
18080  esac
18081  ;;
18082
18083gnu*)
18084  version_type=linux
18085  need_lib_prefix=no
18086  need_version=no
18087  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18088  soname_spec='${libname}${release}${shared_ext}$major'
18089  shlibpath_var=LD_LIBRARY_PATH
18090  hardcode_into_libs=yes
18091  ;;
18092
18093hpux9* | hpux10* | hpux11*)
18094  # Give a soname corresponding to the major version so that dld.sl refuses to
18095  # link against other versions.
18096  version_type=sunos
18097  need_lib_prefix=no
18098  need_version=no
18099  case $host_cpu in
18100  ia64*)
18101    shrext_cmds='.so'
18102    hardcode_into_libs=yes
18103    dynamic_linker="$host_os dld.so"
18104    shlibpath_var=LD_LIBRARY_PATH
18105    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18106    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18107    soname_spec='${libname}${release}${shared_ext}$major'
18108    if test "X$HPUX_IA64_MODE" = X32; then
18109      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18110    else
18111      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18112    fi
18113    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18114    ;;
18115   hppa*64*)
18116     shrext_cmds='.sl'
18117     hardcode_into_libs=yes
18118     dynamic_linker="$host_os dld.sl"
18119     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18120     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18121     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18122     soname_spec='${libname}${release}${shared_ext}$major'
18123     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18124     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18125     ;;
18126   *)
18127    shrext_cmds='.sl'
18128    dynamic_linker="$host_os dld.sl"
18129    shlibpath_var=SHLIB_PATH
18130    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18131    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18132    soname_spec='${libname}${release}${shared_ext}$major'
18133    ;;
18134  esac
18135  # HP-UX runs *really* slowly unless shared libraries are mode 555.
18136  postinstall_cmds='chmod 555 $lib'
18137  ;;
18138
18139interix[3-9]*)
18140  version_type=linux
18141  need_lib_prefix=no
18142  need_version=no
18143  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18144  soname_spec='${libname}${release}${shared_ext}$major'
18145  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18146  shlibpath_var=LD_LIBRARY_PATH
18147  shlibpath_overrides_runpath=no
18148  hardcode_into_libs=yes
18149  ;;
18150
18151irix5* | irix6* | nonstopux*)
18152  case $host_os in
18153    nonstopux*) version_type=nonstopux ;;
18154    *)
18155	if test "$lt_cv_prog_gnu_ld" = yes; then
18156		version_type=linux
18157	else
18158		version_type=irix
18159	fi ;;
18160  esac
18161  need_lib_prefix=no
18162  need_version=no
18163  soname_spec='${libname}${release}${shared_ext}$major'
18164  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18165  case $host_os in
18166  irix5* | nonstopux*)
18167    libsuff= shlibsuff=
18168    ;;
18169  *)
18170    case $LD in # libtool.m4 will add one of these switches to LD
18171    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18172      libsuff= shlibsuff= libmagic=32-bit;;
18173    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18174      libsuff=32 shlibsuff=N32 libmagic=N32;;
18175    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18176      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18177    *) libsuff= shlibsuff= libmagic=never-match;;
18178    esac
18179    ;;
18180  esac
18181  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18182  shlibpath_overrides_runpath=no
18183  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18184  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18185  hardcode_into_libs=yes
18186  ;;
18187
18188# No shared lib support for Linux oldld, aout, or coff.
18189linux*oldld* | linux*aout* | linux*coff*)
18190  dynamic_linker=no
18191  ;;
18192
18193# This must be Linux ELF.
18194linux* | k*bsd*-gnu)
18195  version_type=linux
18196  need_lib_prefix=no
18197  need_version=no
18198  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18199  soname_spec='${libname}${release}${shared_ext}$major'
18200  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18201  shlibpath_var=LD_LIBRARY_PATH
18202  shlibpath_overrides_runpath=no
18203  # This implies no fast_install, which is unacceptable.
18204  # Some rework will be needed to allow for fast_install
18205  # before this can be enabled.
18206  hardcode_into_libs=yes
18207
18208  # Append ld.so.conf contents to the search path
18209  if test -f /etc/ld.so.conf; then
18210    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/#.*//;/^[ 	]*hwcap[ 	]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18211    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18212  fi
18213
18214  # We used to test for /lib/ld.so.1 and disable shared libraries on
18215  # powerpc, because MkLinux only supported shared libraries with the
18216  # GNU dynamic linker.  Since this was broken with cross compilers,
18217  # most powerpc-linux boxes support dynamic linking these days and
18218  # people can always --disable-shared, the test was removed, and we
18219  # assume the GNU/Linux dynamic linker is in use.
18220  dynamic_linker='GNU/Linux ld.so'
18221  ;;
18222
18223netbsd*)
18224  version_type=sunos
18225  need_lib_prefix=no
18226  need_version=no
18227  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18228    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18229    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18230    dynamic_linker='NetBSD (a.out) ld.so'
18231  else
18232    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18233    soname_spec='${libname}${release}${shared_ext}$major'
18234    dynamic_linker='NetBSD ld.elf_so'
18235  fi
18236  shlibpath_var=LD_LIBRARY_PATH
18237  shlibpath_overrides_runpath=yes
18238  hardcode_into_libs=yes
18239  ;;
18240
18241newsos6)
18242  version_type=linux
18243  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18244  shlibpath_var=LD_LIBRARY_PATH
18245  shlibpath_overrides_runpath=yes
18246  ;;
18247
18248nto-qnx*)
18249  version_type=linux
18250  need_lib_prefix=no
18251  need_version=no
18252  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18253  soname_spec='${libname}${release}${shared_ext}$major'
18254  shlibpath_var=LD_LIBRARY_PATH
18255  shlibpath_overrides_runpath=yes
18256  ;;
18257
18258openbsd*)
18259  version_type=sunos
18260  sys_lib_dlsearch_path_spec="/usr/lib"
18261  need_lib_prefix=no
18262  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18263  case $host_os in
18264    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18265    *)                         need_version=no  ;;
18266  esac
18267  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18268  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18269  shlibpath_var=LD_LIBRARY_PATH
18270  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18271    case $host_os in
18272      openbsd2.[89] | openbsd2.[89].*)
18273	shlibpath_overrides_runpath=no
18274	;;
18275      *)
18276	shlibpath_overrides_runpath=yes
18277	;;
18278      esac
18279  else
18280    shlibpath_overrides_runpath=yes
18281  fi
18282  ;;
18283
18284os2*)
18285  libname_spec='$name'
18286  shrext_cmds=".dll"
18287  need_lib_prefix=no
18288  library_names_spec='$libname${shared_ext} $libname.a'
18289  dynamic_linker='OS/2 ld.exe'
18290  shlibpath_var=LIBPATH
18291  ;;
18292
18293osf3* | osf4* | osf5*)
18294  version_type=osf
18295  need_lib_prefix=no
18296  need_version=no
18297  soname_spec='${libname}${release}${shared_ext}$major'
18298  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18299  shlibpath_var=LD_LIBRARY_PATH
18300  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18301  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18302  ;;
18303
18304rdos*)
18305  dynamic_linker=no
18306  ;;
18307
18308solaris*)
18309  version_type=linux
18310  need_lib_prefix=no
18311  need_version=no
18312  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18313  soname_spec='${libname}${release}${shared_ext}$major'
18314  shlibpath_var=LD_LIBRARY_PATH
18315  shlibpath_overrides_runpath=yes
18316  hardcode_into_libs=yes
18317  # ldd complains unless libraries are executable
18318  postinstall_cmds='chmod +x $lib'
18319  ;;
18320
18321sunos4*)
18322  version_type=sunos
18323  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18324  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18325  shlibpath_var=LD_LIBRARY_PATH
18326  shlibpath_overrides_runpath=yes
18327  if test "$with_gnu_ld" = yes; then
18328    need_lib_prefix=no
18329  fi
18330  need_version=yes
18331  ;;
18332
18333sysv4 | sysv4.3*)
18334  version_type=linux
18335  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18336  soname_spec='${libname}${release}${shared_ext}$major'
18337  shlibpath_var=LD_LIBRARY_PATH
18338  case $host_vendor in
18339    sni)
18340      shlibpath_overrides_runpath=no
18341      need_lib_prefix=no
18342      export_dynamic_flag_spec='${wl}-Blargedynsym'
18343      runpath_var=LD_RUN_PATH
18344      ;;
18345    siemens)
18346      need_lib_prefix=no
18347      ;;
18348    motorola)
18349      need_lib_prefix=no
18350      need_version=no
18351      shlibpath_overrides_runpath=no
18352      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18353      ;;
18354  esac
18355  ;;
18356
18357sysv4*MP*)
18358  if test -d /usr/nec ;then
18359    version_type=linux
18360    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18361    soname_spec='$libname${shared_ext}.$major'
18362    shlibpath_var=LD_LIBRARY_PATH
18363  fi
18364  ;;
18365
18366sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18367  version_type=freebsd-elf
18368  need_lib_prefix=no
18369  need_version=no
18370  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18371  soname_spec='${libname}${release}${shared_ext}$major'
18372  shlibpath_var=LD_LIBRARY_PATH
18373  hardcode_into_libs=yes
18374  if test "$with_gnu_ld" = yes; then
18375    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18376    shlibpath_overrides_runpath=no
18377  else
18378    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18379    shlibpath_overrides_runpath=yes
18380    case $host_os in
18381      sco3.2v5*)
18382        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18383	;;
18384    esac
18385  fi
18386  sys_lib_dlsearch_path_spec='/usr/lib'
18387  ;;
18388
18389uts4*)
18390  version_type=linux
18391  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18392  soname_spec='${libname}${release}${shared_ext}$major'
18393  shlibpath_var=LD_LIBRARY_PATH
18394  ;;
18395
18396*)
18397  dynamic_linker=no
18398  ;;
18399esac
18400echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18401echo "${ECHO_T}$dynamic_linker" >&6
18402test "$dynamic_linker" = no && can_build_shared=no
18403
18404variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18405if test "$GCC" = yes; then
18406  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18407fi
18408
18409echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18410echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18411hardcode_action_GCJ=
18412if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18413   test -n "$runpath_var_GCJ" || \
18414   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18415
18416  # We can hardcode non-existant directories.
18417  if test "$hardcode_direct_GCJ" != no &&
18418     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18419     # have to relink, otherwise we might link with an installed library
18420     # when we should be linking with a yet-to-be-installed one
18421     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18422     test "$hardcode_minus_L_GCJ" != no; then
18423    # Linking always hardcodes the temporary library directory.
18424    hardcode_action_GCJ=relink
18425  else
18426    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18427    hardcode_action_GCJ=immediate
18428  fi
18429else
18430  # We cannot hardcode anything, or else we can only hardcode existing
18431  # directories.
18432  hardcode_action_GCJ=unsupported
18433fi
18434echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18435echo "${ECHO_T}$hardcode_action_GCJ" >&6
18436
18437if test "$hardcode_action_GCJ" = relink; then
18438  # Fast installation is not supported
18439  enable_fast_install=no
18440elif test "$shlibpath_overrides_runpath" = yes ||
18441     test "$enable_shared" = no; then
18442  # Fast installation is not necessary
18443  enable_fast_install=needless
18444fi
18445
18446
18447# The else clause should only fire when bootstrapping the
18448# libtool distribution, otherwise you forgot to ship ltmain.sh
18449# with your package, and you will get complaints that there are
18450# no rules to generate ltmain.sh.
18451if test -f "$ltmain"; then
18452  # See if we are running on zsh, and set the options which allow our commands through
18453  # without removal of \ escapes.
18454  if test -n "${ZSH_VERSION+set}" ; then
18455    setopt NO_GLOB_SUBST
18456  fi
18457  # Now quote all the things that may contain metacharacters while being
18458  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18459  # variables and quote the copies for generation of the libtool script.
18460  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18461    SED SHELL STRIP \
18462    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18463    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18464    deplibs_check_method reload_flag reload_cmds need_locks \
18465    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18466    lt_cv_sys_global_symbol_to_c_name_address \
18467    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18468    old_postinstall_cmds old_postuninstall_cmds \
18469    compiler_GCJ \
18470    CC_GCJ \
18471    LD_GCJ \
18472    lt_prog_compiler_wl_GCJ \
18473    lt_prog_compiler_pic_GCJ \
18474    lt_prog_compiler_static_GCJ \
18475    lt_prog_compiler_no_builtin_flag_GCJ \
18476    export_dynamic_flag_spec_GCJ \
18477    thread_safe_flag_spec_GCJ \
18478    whole_archive_flag_spec_GCJ \
18479    enable_shared_with_static_runtimes_GCJ \
18480    old_archive_cmds_GCJ \
18481    old_archive_from_new_cmds_GCJ \
18482    predep_objects_GCJ \
18483    postdep_objects_GCJ \
18484    predeps_GCJ \
18485    postdeps_GCJ \
18486    compiler_lib_search_path_GCJ \
18487    archive_cmds_GCJ \
18488    archive_expsym_cmds_GCJ \
18489    postinstall_cmds_GCJ \
18490    postuninstall_cmds_GCJ \
18491    old_archive_from_expsyms_cmds_GCJ \
18492    allow_undefined_flag_GCJ \
18493    no_undefined_flag_GCJ \
18494    export_symbols_cmds_GCJ \
18495    hardcode_libdir_flag_spec_GCJ \
18496    hardcode_libdir_flag_spec_ld_GCJ \
18497    hardcode_libdir_separator_GCJ \
18498    hardcode_automatic_GCJ \
18499    module_cmds_GCJ \
18500    module_expsym_cmds_GCJ \
18501    lt_cv_prog_compiler_c_o_GCJ \
18502    fix_srcfile_path_GCJ \
18503    exclude_expsyms_GCJ \
18504    include_expsyms_GCJ; do
18505
18506    case $var in
18507    old_archive_cmds_GCJ | \
18508    old_archive_from_new_cmds_GCJ | \
18509    archive_cmds_GCJ | \
18510    archive_expsym_cmds_GCJ | \
18511    module_cmds_GCJ | \
18512    module_expsym_cmds_GCJ | \
18513    old_archive_from_expsyms_cmds_GCJ | \
18514    export_symbols_cmds_GCJ | \
18515    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18516    postinstall_cmds | postuninstall_cmds | \
18517    old_postinstall_cmds | old_postuninstall_cmds | \
18518    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18519      # Double-quote double-evaled strings.
18520      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18521      ;;
18522    *)
18523      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18524      ;;
18525    esac
18526  done
18527
18528  case $lt_echo in
18529  *'\$0 --fallback-echo"')
18530    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18531    ;;
18532  esac
18533
18534cfgfile="$ofile"
18535
18536  cat <<__EOF__ >> "$cfgfile"
18537# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18538
18539# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18540
18541# Shell to use when invoking shell scripts.
18542SHELL=$lt_SHELL
18543
18544# Whether or not to build shared libraries.
18545build_libtool_libs=$enable_shared
18546
18547# Whether or not to build static libraries.
18548build_old_libs=$enable_static
18549
18550# Whether or not to add -lc for building shared libraries.
18551build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18552
18553# Whether or not to disallow shared libs when runtime libs are static
18554allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18555
18556# Whether or not to optimize for fast installation.
18557fast_install=$enable_fast_install
18558
18559# The host system.
18560host_alias=$host_alias
18561host=$host
18562host_os=$host_os
18563
18564# The build system.
18565build_alias=$build_alias
18566build=$build
18567build_os=$build_os
18568
18569# An echo program that does not interpret backslashes.
18570echo=$lt_echo
18571
18572# The archiver.
18573AR=$lt_AR
18574AR_FLAGS=$lt_AR_FLAGS
18575
18576# A C compiler.
18577LTCC=$lt_LTCC
18578
18579# LTCC compiler flags.
18580LTCFLAGS=$lt_LTCFLAGS
18581
18582# A language-specific compiler.
18583CC=$lt_compiler_GCJ
18584
18585# Is the compiler the GNU C compiler?
18586with_gcc=$GCC_GCJ
18587
18588# An ERE matcher.
18589EGREP=$lt_EGREP
18590
18591# The linker used to build libraries.
18592LD=$lt_LD_GCJ
18593
18594# Whether we need hard or soft links.
18595LN_S=$lt_LN_S
18596
18597# A BSD-compatible nm program.
18598NM=$lt_NM
18599
18600# A symbol stripping program
18601STRIP=$lt_STRIP
18602
18603# Used to examine libraries when file_magic_cmd begins "file"
18604MAGIC_CMD=$MAGIC_CMD
18605
18606# Used on cygwin: DLL creation program.
18607DLLTOOL="$DLLTOOL"
18608
18609# Used on cygwin: object dumper.
18610OBJDUMP="$OBJDUMP"
18611
18612# Used on cygwin: assembler.
18613AS="$AS"
18614
18615# The name of the directory that contains temporary libtool files.
18616objdir=$objdir
18617
18618# How to create reloadable object files.
18619reload_flag=$lt_reload_flag
18620reload_cmds=$lt_reload_cmds
18621
18622# How to pass a linker flag through the compiler.
18623wl=$lt_lt_prog_compiler_wl_GCJ
18624
18625# Object file suffix (normally "o").
18626objext="$ac_objext"
18627
18628# Old archive suffix (normally "a").
18629libext="$libext"
18630
18631# Shared library suffix (normally ".so").
18632shrext_cmds='$shrext_cmds'
18633
18634# Executable file suffix (normally "").
18635exeext="$exeext"
18636
18637# Additional compiler flags for building library objects.
18638pic_flag=$lt_lt_prog_compiler_pic_GCJ
18639pic_mode=$pic_mode
18640
18641# What is the maximum length of a command?
18642max_cmd_len=$lt_cv_sys_max_cmd_len
18643
18644# Does compiler simultaneously support -c and -o options?
18645compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18646
18647# Must we lock files when doing compilation?
18648need_locks=$lt_need_locks
18649
18650# Do we need the lib prefix for modules?
18651need_lib_prefix=$need_lib_prefix
18652
18653# Do we need a version for libraries?
18654need_version=$need_version
18655
18656# Whether dlopen is supported.
18657dlopen_support=$enable_dlopen
18658
18659# Whether dlopen of programs is supported.
18660dlopen_self=$enable_dlopen_self
18661
18662# Whether dlopen of statically linked programs is supported.
18663dlopen_self_static=$enable_dlopen_self_static
18664
18665# Compiler flag to prevent dynamic linking.
18666link_static_flag=$lt_lt_prog_compiler_static_GCJ
18667
18668# Compiler flag to turn off builtin functions.
18669no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18670
18671# Compiler flag to allow reflexive dlopens.
18672export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18673
18674# Compiler flag to generate shared objects directly from archives.
18675whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18676
18677# Compiler flag to generate thread-safe objects.
18678thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18679
18680# Library versioning type.
18681version_type=$version_type
18682
18683# Format of library name prefix.
18684libname_spec=$lt_libname_spec
18685
18686# List of archive names.  First name is the real one, the rest are links.
18687# The last name is the one that the linker finds with -lNAME.
18688library_names_spec=$lt_library_names_spec
18689
18690# The coded name of the library, if different from the real name.
18691soname_spec=$lt_soname_spec
18692
18693# Commands used to build and install an old-style archive.
18694RANLIB=$lt_RANLIB
18695old_archive_cmds=$lt_old_archive_cmds_GCJ
18696old_postinstall_cmds=$lt_old_postinstall_cmds
18697old_postuninstall_cmds=$lt_old_postuninstall_cmds
18698
18699# Create an old-style archive from a shared archive.
18700old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18701
18702# Create a temporary old-style archive to link instead of a shared archive.
18703old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18704
18705# Commands used to build and install a shared archive.
18706archive_cmds=$lt_archive_cmds_GCJ
18707archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18708postinstall_cmds=$lt_postinstall_cmds
18709postuninstall_cmds=$lt_postuninstall_cmds
18710
18711# Commands used to build a loadable module (assumed same as above if empty)
18712module_cmds=$lt_module_cmds_GCJ
18713module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18714
18715# Commands to strip libraries.
18716old_striplib=$lt_old_striplib
18717striplib=$lt_striplib
18718
18719# Dependencies to place before the objects being linked to create a
18720# shared library.
18721predep_objects=$lt_predep_objects_GCJ
18722
18723# Dependencies to place after the objects being linked to create a
18724# shared library.
18725postdep_objects=$lt_postdep_objects_GCJ
18726
18727# Dependencies to place before the objects being linked to create a
18728# shared library.
18729predeps=$lt_predeps_GCJ
18730
18731# Dependencies to place after the objects being linked to create a
18732# shared library.
18733postdeps=$lt_postdeps_GCJ
18734
18735# The library search path used internally by the compiler when linking
18736# a shared library.
18737compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18738
18739# Method to check whether dependent libraries are shared objects.
18740deplibs_check_method=$lt_deplibs_check_method
18741
18742# Command to use when deplibs_check_method == file_magic.
18743file_magic_cmd=$lt_file_magic_cmd
18744
18745# Flag that allows shared libraries with undefined symbols to be built.
18746allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18747
18748# Flag that forces no undefined symbols.
18749no_undefined_flag=$lt_no_undefined_flag_GCJ
18750
18751# Commands used to finish a libtool library installation in a directory.
18752finish_cmds=$lt_finish_cmds
18753
18754# Same as above, but a single script fragment to be evaled but not shown.
18755finish_eval=$lt_finish_eval
18756
18757# Take the output of nm and produce a listing of raw symbols and C names.
18758global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18759
18760# Transform the output of nm in a proper C declaration
18761global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18762
18763# Transform the output of nm in a C name address pair
18764global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18765
18766# This is the shared library runtime path variable.
18767runpath_var=$runpath_var
18768
18769# This is the shared library path variable.
18770shlibpath_var=$shlibpath_var
18771
18772# Is shlibpath searched before the hard-coded library search path?
18773shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18774
18775# How to hardcode a shared library path into an executable.
18776hardcode_action=$hardcode_action_GCJ
18777
18778# Whether we should hardcode library paths into libraries.
18779hardcode_into_libs=$hardcode_into_libs
18780
18781# Flag to hardcode \$libdir into a binary during linking.
18782# This must work even if \$libdir does not exist.
18783hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18784
18785# If ld is used when linking, flag to hardcode \$libdir into
18786# a binary during linking. This must work even if \$libdir does
18787# not exist.
18788hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18789
18790# Whether we need a single -rpath flag with a separated argument.
18791hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18792
18793# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18794# resulting binary.
18795hardcode_direct=$hardcode_direct_GCJ
18796
18797# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18798# resulting binary.
18799hardcode_minus_L=$hardcode_minus_L_GCJ
18800
18801# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18802# the resulting binary.
18803hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18804
18805# Set to yes if building a shared library automatically hardcodes DIR into the library
18806# and all subsequent libraries and executables linked against it.
18807hardcode_automatic=$hardcode_automatic_GCJ
18808
18809# Variables whose values should be saved in libtool wrapper scripts and
18810# restored at relink time.
18811variables_saved_for_relink="$variables_saved_for_relink"
18812
18813# Whether libtool must link a program against all its dependency libraries.
18814link_all_deplibs=$link_all_deplibs_GCJ
18815
18816# Compile-time system search path for libraries
18817sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18818
18819# Run-time system search path for libraries
18820sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18821
18822# Fix the shell variable \$srcfile for the compiler.
18823fix_srcfile_path=$lt_fix_srcfile_path
18824
18825# Set to yes if exported symbols are required.
18826always_export_symbols=$always_export_symbols_GCJ
18827
18828# The commands to list exported symbols.
18829export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18830
18831# The commands to extract the exported symbol list from a shared archive.
18832extract_expsyms_cmds=$lt_extract_expsyms_cmds
18833
18834# Symbols that should not be listed in the preloaded symbols.
18835exclude_expsyms=$lt_exclude_expsyms_GCJ
18836
18837# Symbols that must always be exported.
18838include_expsyms=$lt_include_expsyms_GCJ
18839
18840# ### END LIBTOOL TAG CONFIG: $tagname
18841
18842__EOF__
18843
18844
18845else
18846  # If there is no Makefile yet, we rely on a make rule to execute
18847  # `config.status --recheck' to rerun these tests and create the
18848  # libtool script then.
18849  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18850  if test -f "$ltmain_in"; then
18851    test -f Makefile && make "$ltmain"
18852  fi
18853fi
18854
18855
18856ac_ext=c
18857ac_cpp='$CPP $CPPFLAGS'
18858ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18859ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18860ac_compiler_gnu=$ac_cv_c_compiler_gnu
18861
18862CC="$lt_save_CC"
18863
18864	else
18865	  tagname=""
18866	fi
18867	;;
18868
18869      RC)
18870
18871
18872
18873# Source file extension for RC test sources.
18874ac_ext=rc
18875
18876# Object file extension for compiled RC test sources.
18877objext=o
18878objext_RC=$objext
18879
18880# Code to be used in simple compile tests
18881lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
18882
18883# Code to be used in simple link tests
18884lt_simple_link_test_code="$lt_simple_compile_test_code"
18885
18886# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18887
18888# If no C compiler was specified, use CC.
18889LTCC=${LTCC-"$CC"}
18890
18891# If no C compiler flags were specified, use CFLAGS.
18892LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18893
18894# Allow CC to be a program name with arguments.
18895compiler=$CC
18896
18897
18898# save warnings/boilerplate of simple test code
18899ac_outfile=conftest.$ac_objext
18900echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18901eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18902_lt_compiler_boilerplate=`cat conftest.err`
18903$rm conftest*
18904
18905ac_outfile=conftest.$ac_objext
18906echo "$lt_simple_link_test_code" >conftest.$ac_ext
18907eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18908_lt_linker_boilerplate=`cat conftest.err`
18909$rm conftest*
18910
18911
18912# Allow CC to be a program name with arguments.
18913lt_save_CC="$CC"
18914CC=${RC-"windres"}
18915compiler=$CC
18916compiler_RC=$CC
18917for cc_temp in $compiler""; do
18918  case $cc_temp in
18919    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18920    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18921    \-*) ;;
18922    *) break;;
18923  esac
18924done
18925cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18926
18927lt_cv_prog_compiler_c_o_RC=yes
18928
18929# The else clause should only fire when bootstrapping the
18930# libtool distribution, otherwise you forgot to ship ltmain.sh
18931# with your package, and you will get complaints that there are
18932# no rules to generate ltmain.sh.
18933if test -f "$ltmain"; then
18934  # See if we are running on zsh, and set the options which allow our commands through
18935  # without removal of \ escapes.
18936  if test -n "${ZSH_VERSION+set}" ; then
18937    setopt NO_GLOB_SUBST
18938  fi
18939  # Now quote all the things that may contain metacharacters while being
18940  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18941  # variables and quote the copies for generation of the libtool script.
18942  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18943    SED SHELL STRIP \
18944    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18945    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18946    deplibs_check_method reload_flag reload_cmds need_locks \
18947    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18948    lt_cv_sys_global_symbol_to_c_name_address \
18949    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18950    old_postinstall_cmds old_postuninstall_cmds \
18951    compiler_RC \
18952    CC_RC \
18953    LD_RC \
18954    lt_prog_compiler_wl_RC \
18955    lt_prog_compiler_pic_RC \
18956    lt_prog_compiler_static_RC \
18957    lt_prog_compiler_no_builtin_flag_RC \
18958    export_dynamic_flag_spec_RC \
18959    thread_safe_flag_spec_RC \
18960    whole_archive_flag_spec_RC \
18961    enable_shared_with_static_runtimes_RC \
18962    old_archive_cmds_RC \
18963    old_archive_from_new_cmds_RC \
18964    predep_objects_RC \
18965    postdep_objects_RC \
18966    predeps_RC \
18967    postdeps_RC \
18968    compiler_lib_search_path_RC \
18969    archive_cmds_RC \
18970    archive_expsym_cmds_RC \
18971    postinstall_cmds_RC \
18972    postuninstall_cmds_RC \
18973    old_archive_from_expsyms_cmds_RC \
18974    allow_undefined_flag_RC \
18975    no_undefined_flag_RC \
18976    export_symbols_cmds_RC \
18977    hardcode_libdir_flag_spec_RC \
18978    hardcode_libdir_flag_spec_ld_RC \
18979    hardcode_libdir_separator_RC \
18980    hardcode_automatic_RC \
18981    module_cmds_RC \
18982    module_expsym_cmds_RC \
18983    lt_cv_prog_compiler_c_o_RC \
18984    fix_srcfile_path_RC \
18985    exclude_expsyms_RC \
18986    include_expsyms_RC; do
18987
18988    case $var in
18989    old_archive_cmds_RC | \
18990    old_archive_from_new_cmds_RC | \
18991    archive_cmds_RC | \
18992    archive_expsym_cmds_RC | \
18993    module_cmds_RC | \
18994    module_expsym_cmds_RC | \
18995    old_archive_from_expsyms_cmds_RC | \
18996    export_symbols_cmds_RC | \
18997    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18998    postinstall_cmds | postuninstall_cmds | \
18999    old_postinstall_cmds | old_postuninstall_cmds | \
19000    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19001      # Double-quote double-evaled strings.
19002      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19003      ;;
19004    *)
19005      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19006      ;;
19007    esac
19008  done
19009
19010  case $lt_echo in
19011  *'\$0 --fallback-echo"')
19012    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19013    ;;
19014  esac
19015
19016cfgfile="$ofile"
19017
19018  cat <<__EOF__ >> "$cfgfile"
19019# ### BEGIN LIBTOOL TAG CONFIG: $tagname
19020
19021# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19022
19023# Shell to use when invoking shell scripts.
19024SHELL=$lt_SHELL
19025
19026# Whether or not to build shared libraries.
19027build_libtool_libs=$enable_shared
19028
19029# Whether or not to build static libraries.
19030build_old_libs=$enable_static
19031
19032# Whether or not to add -lc for building shared libraries.
19033build_libtool_need_lc=$archive_cmds_need_lc_RC
19034
19035# Whether or not to disallow shared libs when runtime libs are static
19036allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19037
19038# Whether or not to optimize for fast installation.
19039fast_install=$enable_fast_install
19040
19041# The host system.
19042host_alias=$host_alias
19043host=$host
19044host_os=$host_os
19045
19046# The build system.
19047build_alias=$build_alias
19048build=$build
19049build_os=$build_os
19050
19051# An echo program that does not interpret backslashes.
19052echo=$lt_echo
19053
19054# The archiver.
19055AR=$lt_AR
19056AR_FLAGS=$lt_AR_FLAGS
19057
19058# A C compiler.
19059LTCC=$lt_LTCC
19060
19061# LTCC compiler flags.
19062LTCFLAGS=$lt_LTCFLAGS
19063
19064# A language-specific compiler.
19065CC=$lt_compiler_RC
19066
19067# Is the compiler the GNU C compiler?
19068with_gcc=$GCC_RC
19069
19070# An ERE matcher.
19071EGREP=$lt_EGREP
19072
19073# The linker used to build libraries.
19074LD=$lt_LD_RC
19075
19076# Whether we need hard or soft links.
19077LN_S=$lt_LN_S
19078
19079# A BSD-compatible nm program.
19080NM=$lt_NM
19081
19082# A symbol stripping program
19083STRIP=$lt_STRIP
19084
19085# Used to examine libraries when file_magic_cmd begins "file"
19086MAGIC_CMD=$MAGIC_CMD
19087
19088# Used on cygwin: DLL creation program.
19089DLLTOOL="$DLLTOOL"
19090
19091# Used on cygwin: object dumper.
19092OBJDUMP="$OBJDUMP"
19093
19094# Used on cygwin: assembler.
19095AS="$AS"
19096
19097# The name of the directory that contains temporary libtool files.
19098objdir=$objdir
19099
19100# How to create reloadable object files.
19101reload_flag=$lt_reload_flag
19102reload_cmds=$lt_reload_cmds
19103
19104# How to pass a linker flag through the compiler.
19105wl=$lt_lt_prog_compiler_wl_RC
19106
19107# Object file suffix (normally "o").
19108objext="$ac_objext"
19109
19110# Old archive suffix (normally "a").
19111libext="$libext"
19112
19113# Shared library suffix (normally ".so").
19114shrext_cmds='$shrext_cmds'
19115
19116# Executable file suffix (normally "").
19117exeext="$exeext"
19118
19119# Additional compiler flags for building library objects.
19120pic_flag=$lt_lt_prog_compiler_pic_RC
19121pic_mode=$pic_mode
19122
19123# What is the maximum length of a command?
19124max_cmd_len=$lt_cv_sys_max_cmd_len
19125
19126# Does compiler simultaneously support -c and -o options?
19127compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19128
19129# Must we lock files when doing compilation?
19130need_locks=$lt_need_locks
19131
19132# Do we need the lib prefix for modules?
19133need_lib_prefix=$need_lib_prefix
19134
19135# Do we need a version for libraries?
19136need_version=$need_version
19137
19138# Whether dlopen is supported.
19139dlopen_support=$enable_dlopen
19140
19141# Whether dlopen of programs is supported.
19142dlopen_self=$enable_dlopen_self
19143
19144# Whether dlopen of statically linked programs is supported.
19145dlopen_self_static=$enable_dlopen_self_static
19146
19147# Compiler flag to prevent dynamic linking.
19148link_static_flag=$lt_lt_prog_compiler_static_RC
19149
19150# Compiler flag to turn off builtin functions.
19151no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19152
19153# Compiler flag to allow reflexive dlopens.
19154export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19155
19156# Compiler flag to generate shared objects directly from archives.
19157whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19158
19159# Compiler flag to generate thread-safe objects.
19160thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19161
19162# Library versioning type.
19163version_type=$version_type
19164
19165# Format of library name prefix.
19166libname_spec=$lt_libname_spec
19167
19168# List of archive names.  First name is the real one, the rest are links.
19169# The last name is the one that the linker finds with -lNAME.
19170library_names_spec=$lt_library_names_spec
19171
19172# The coded name of the library, if different from the real name.
19173soname_spec=$lt_soname_spec
19174
19175# Commands used to build and install an old-style archive.
19176RANLIB=$lt_RANLIB
19177old_archive_cmds=$lt_old_archive_cmds_RC
19178old_postinstall_cmds=$lt_old_postinstall_cmds
19179old_postuninstall_cmds=$lt_old_postuninstall_cmds
19180
19181# Create an old-style archive from a shared archive.
19182old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19183
19184# Create a temporary old-style archive to link instead of a shared archive.
19185old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19186
19187# Commands used to build and install a shared archive.
19188archive_cmds=$lt_archive_cmds_RC
19189archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19190postinstall_cmds=$lt_postinstall_cmds
19191postuninstall_cmds=$lt_postuninstall_cmds
19192
19193# Commands used to build a loadable module (assumed same as above if empty)
19194module_cmds=$lt_module_cmds_RC
19195module_expsym_cmds=$lt_module_expsym_cmds_RC
19196
19197# Commands to strip libraries.
19198old_striplib=$lt_old_striplib
19199striplib=$lt_striplib
19200
19201# Dependencies to place before the objects being linked to create a
19202# shared library.
19203predep_objects=$lt_predep_objects_RC
19204
19205# Dependencies to place after the objects being linked to create a
19206# shared library.
19207postdep_objects=$lt_postdep_objects_RC
19208
19209# Dependencies to place before the objects being linked to create a
19210# shared library.
19211predeps=$lt_predeps_RC
19212
19213# Dependencies to place after the objects being linked to create a
19214# shared library.
19215postdeps=$lt_postdeps_RC
19216
19217# The library search path used internally by the compiler when linking
19218# a shared library.
19219compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19220
19221# Method to check whether dependent libraries are shared objects.
19222deplibs_check_method=$lt_deplibs_check_method
19223
19224# Command to use when deplibs_check_method == file_magic.
19225file_magic_cmd=$lt_file_magic_cmd
19226
19227# Flag that allows shared libraries with undefined symbols to be built.
19228allow_undefined_flag=$lt_allow_undefined_flag_RC
19229
19230# Flag that forces no undefined symbols.
19231no_undefined_flag=$lt_no_undefined_flag_RC
19232
19233# Commands used to finish a libtool library installation in a directory.
19234finish_cmds=$lt_finish_cmds
19235
19236# Same as above, but a single script fragment to be evaled but not shown.
19237finish_eval=$lt_finish_eval
19238
19239# Take the output of nm and produce a listing of raw symbols and C names.
19240global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19241
19242# Transform the output of nm in a proper C declaration
19243global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19244
19245# Transform the output of nm in a C name address pair
19246global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19247
19248# This is the shared library runtime path variable.
19249runpath_var=$runpath_var
19250
19251# This is the shared library path variable.
19252shlibpath_var=$shlibpath_var
19253
19254# Is shlibpath searched before the hard-coded library search path?
19255shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19256
19257# How to hardcode a shared library path into an executable.
19258hardcode_action=$hardcode_action_RC
19259
19260# Whether we should hardcode library paths into libraries.
19261hardcode_into_libs=$hardcode_into_libs
19262
19263# Flag to hardcode \$libdir into a binary during linking.
19264# This must work even if \$libdir does not exist.
19265hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19266
19267# If ld is used when linking, flag to hardcode \$libdir into
19268# a binary during linking. This must work even if \$libdir does
19269# not exist.
19270hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19271
19272# Whether we need a single -rpath flag with a separated argument.
19273hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19274
19275# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19276# resulting binary.
19277hardcode_direct=$hardcode_direct_RC
19278
19279# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19280# resulting binary.
19281hardcode_minus_L=$hardcode_minus_L_RC
19282
19283# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19284# the resulting binary.
19285hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19286
19287# Set to yes if building a shared library automatically hardcodes DIR into the library
19288# and all subsequent libraries and executables linked against it.
19289hardcode_automatic=$hardcode_automatic_RC
19290
19291# Variables whose values should be saved in libtool wrapper scripts and
19292# restored at relink time.
19293variables_saved_for_relink="$variables_saved_for_relink"
19294
19295# Whether libtool must link a program against all its dependency libraries.
19296link_all_deplibs=$link_all_deplibs_RC
19297
19298# Compile-time system search path for libraries
19299sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19300
19301# Run-time system search path for libraries
19302sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19303
19304# Fix the shell variable \$srcfile for the compiler.
19305fix_srcfile_path=$lt_fix_srcfile_path
19306
19307# Set to yes if exported symbols are required.
19308always_export_symbols=$always_export_symbols_RC
19309
19310# The commands to list exported symbols.
19311export_symbols_cmds=$lt_export_symbols_cmds_RC
19312
19313# The commands to extract the exported symbol list from a shared archive.
19314extract_expsyms_cmds=$lt_extract_expsyms_cmds
19315
19316# Symbols that should not be listed in the preloaded symbols.
19317exclude_expsyms=$lt_exclude_expsyms_RC
19318
19319# Symbols that must always be exported.
19320include_expsyms=$lt_include_expsyms_RC
19321
19322# ### END LIBTOOL TAG CONFIG: $tagname
19323
19324__EOF__
19325
19326
19327else
19328  # If there is no Makefile yet, we rely on a make rule to execute
19329  # `config.status --recheck' to rerun these tests and create the
19330  # libtool script then.
19331  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19332  if test -f "$ltmain_in"; then
19333    test -f Makefile && make "$ltmain"
19334  fi
19335fi
19336
19337
19338ac_ext=c
19339ac_cpp='$CPP $CPPFLAGS'
19340ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19341ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19342ac_compiler_gnu=$ac_cv_c_compiler_gnu
19343
19344CC="$lt_save_CC"
19345
19346	;;
19347
19348      *)
19349	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19350echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19351   { (exit 1); exit 1; }; }
19352	;;
19353      esac
19354
19355      # Append the new tag name to the list of available tags.
19356      if test -n "$tagname" ; then
19357      available_tags="$available_tags $tagname"
19358    fi
19359    fi
19360  done
19361  IFS="$lt_save_ifs"
19362
19363  # Now substitute the updated list of available tags.
19364  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19365    mv "${ofile}T" "$ofile"
19366    chmod +x "$ofile"
19367  else
19368    rm -f "${ofile}T"
19369    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19370echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19371   { (exit 1); exit 1; }; }
19372  fi
19373fi
19374
19375
19376
19377# This can be used to rebuild libtool when needed
19378LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19379
19380# Always use our own libtool.
19381LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19382
19383# Prevent multiple expansion
19384
19385
19386
19387
19388
19389
19390
19391
19392
19393
19394
19395
19396
19397
19398
19399
19400
19401
19402
19403
19404
19405
19406
19407
19408
19409
19410
19411
19412
19413
19414# --------------------------------------------------------------------
19415# 	PDFlib Java binding (JNI)
19416# --------------------------------------------------------------------
19417
19418WITH_JAVA=yes
19419JAVAINCLUDE=""
19420JAVAPACKAGE=""
19421
19422
19423# Check whether --with-java or --without-java was given.
19424if test "${with_java+set}" = set; then
19425  withval="$with_java"
19426
19427case $withval in
19428    no) WITH_JAVA=no ;;
19429    yes) WITH_JAVA=yes ;;
19430    *) JAVAPACKAGE=$withval
19431    ;;
19432esac
19433
19434fi;
19435
19436if test "$WITH_JAVA" != "no" ; then
19437    WITH_JAVA=no
19438    echo "$as_me:$LINENO: checking for Java header files" >&5
19439echo $ECHO_N "checking for Java header files... $ECHO_C" >&6
19440
19441    # try without any precautions
19442    cat >conftest.$ac_ext <<_ACEOF
19443/* confdefs.h.  */
19444_ACEOF
19445cat confdefs.h >>conftest.$ac_ext
19446cat >>conftest.$ac_ext <<_ACEOF
19447/* end confdefs.h.  */
19448#include <jni.h>
19449_ACEOF
19450if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19451  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19452  ac_status=$?
19453  grep -v '^ *+' conftest.er1 >conftest.err
19454  rm -f conftest.er1
19455  cat conftest.err >&5
19456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19457  (exit $ac_status); } >/dev/null; then
19458  if test -s conftest.err; then
19459    ac_cpp_err=$ac_c_preproc_warn_flag
19460    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19461  else
19462    ac_cpp_err=
19463  fi
19464else
19465  ac_cpp_err=yes
19466fi
19467if test -z "$ac_cpp_err"; then
19468  WITH_JAVA=yes
19469else
19470  echo "$as_me: failed program was:" >&5
19471sed 's/^/| /' conftest.$ac_ext >&5
19472
19473   dirs="$prefix /usr/lib/java /usr/java /usr/local/diablo-jdk1.5.0 /usr/java/jdk1.4 /usr/lib/jdk1.4 /opt/java1.4 /usr/lpp/java/J1.4 /usr/java/jdk1.4 /usr/lib/jdk1.4 /usr/jdk14 /jdk1.4 /usr/java/jdk1.3 /usr/include/java /usr/local/java /usr/local/include/kaffe /usr/lib/jdk1.3 /opt/java1.3 /usr/lpp/java/J1.3 /usr/java/jdk1.2 /usr/lib/jdk1.2.2 /usr/lib/jdk1.2.1 /usr/jdk122 /usr/lib/jdk122 /usr/lib/jdk1.2.1 /opt/java1.2 /usr/lpp/java/J1.2 /usr/lib/jdk1.1.8 /usr/jdk118 /usr/lib/jdk118 /usr/lpp/java/J1.1 /opt/java1.1 /usr /opt/local /jdk1.3 /jdk1.2.3 /jdk1.2.2 /jdk1.2.1 /usr/java130 /System/Library/Frameworks/JavaVM.framework/Headers /usr/jdk_base/include /usr/java14 /u/open1/pdf/java/J1.4"
19474
19475	if test "$JAVAPACKAGE" != ""; then
19476	    dirs="$JAVAPACKAGE $dirs"
19477	fi
19478
19479	# now try to find jni.h
19480	for i in $dirs ; do
19481	    if test -r $i/jni.h; then
19482		JAVAINCLUDE="$i"
19483		break
19484	    elif test -r $i/include/jni.h; then
19485		JAVAINCLUDE="$i/include"
19486		break
19487	    fi
19488	done
19489
19490fi
19491rm -f conftest.err conftest.$ac_ext
19492
19493    # now try with an include path
19494    if test "$JAVAINCLUDE" != ""; then
19495	OCPPFLAGS="$CPPFLAGS"
19496	CPPFLAGS="-I$JAVAINCLUDE $OCPPFLAGS"
19497	cat >conftest.$ac_ext <<_ACEOF
19498/* confdefs.h.  */
19499_ACEOF
19500cat confdefs.h >>conftest.$ac_ext
19501cat >>conftest.$ac_ext <<_ACEOF
19502/* end confdefs.h.  */
19503#include <jni.h>
19504_ACEOF
19505if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19506  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19507  ac_status=$?
19508  grep -v '^ *+' conftest.er1 >conftest.err
19509  rm -f conftest.er1
19510  cat conftest.err >&5
19511  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19512  (exit $ac_status); } >/dev/null; then
19513  if test -s conftest.err; then
19514    ac_cpp_err=$ac_c_preproc_warn_flag
19515    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19516  else
19517    ac_cpp_err=
19518  fi
19519else
19520  ac_cpp_err=yes
19521fi
19522if test -z "$ac_cpp_err"; then
19523
19524		WITH_JAVA=yes
19525		JAVAINCLUDE="-I$JAVAINCLUDE"
19526
19527else
19528  echo "$as_me: failed program was:" >&5
19529sed 's/^/| /' conftest.$ac_ext >&5
19530
19531
19532fi
19533rm -f conftest.err conftest.$ac_ext
19534	CPPFLAGS="$OCPPFLAGS"
19535    fi
19536
19537    # if the above didn't work probably jni_md.h is missing
19538    if test "WITH_JAVA" != "yes" ; then
19539	if test "$JAVAINCLUDE" != ""; then
19540	    subdirs="$JAVAINCLUDE $JAVAINCLUDE/$MACHDEP $JAVAINCLUDE/$ac_md_system $JAVAINCLUDE/solaris $JAVAINCLUDE/genunix $JAVAINCLUDE/alpha $JAVAINCLUDE/win32 $JAVAINCLUDE/mvs $JAVAINCLUDE/irix"
19541	    for i in $subdirs ; do
19542		if test -r $i/jni_md.h; then
19543		    JAVAINCLUDE="-I$JAVAINCLUDE -I$i"
19544		    WITH_JAVA=yes
19545		    break
19546		fi
19547	    done
19548	fi
19549    fi
19550
19551    if test "$WITH_JAVA" = "no"; then
19552	echo "$as_me:$LINENO: result: not found" >&5
19553echo "${ECHO_T}not found" >&6
19554    else
19555	echo "$as_me:$LINENO: result: $JAVAINCLUDE" >&5
19556echo "${ECHO_T}$JAVAINCLUDE" >&6
19557
19558    fi
19559
19560fi
19561
19562# ----------------------------------------------------------------
19563#  PDFlib Perl binding
19564# ----------------------------------------------------------------
19565
19566WITH_PERL=yes
19567PERLBIN=nope
19568PERLINCLUDE=nope
19569
19570
19571# Check whether --with-perl or --without-perl was given.
19572if test "${with_perl+set}" = set; then
19573  withval="$with_perl"
19574  PERLBIN="$withval"
19575else
19576  PERLBIN=nope
19577fi;
19578
19579if test "$PERLBIN" = "no" ; then
19580    WITH_PERL=no
19581fi
19582
19583
19584# Check whether --with-perlincl or --without-perlincl was given.
19585if test "${with_perlincl+set}" = set; then
19586  withval="$with_perlincl"
19587  PERLINCLUDE="$withval"
19588else
19589  PERLINCLUDE=nope
19590fi;
19591
19592if test "$WITH_PERL" = "yes" ; then
19593
19594    WITH_PERL=no
19595        if test "$PERLBIN" = "nope"; then
19596	for ac_prog in perl perl5.7.0 perl5.6.0 perl5.005 perl5.004 perl5.003 perl5.002 perl5.001 perl5
19597do
19598  # Extract the first word of "$ac_prog", so it can be a program name with args.
19599set dummy $ac_prog; ac_word=$2
19600echo "$as_me:$LINENO: checking for $ac_word" >&5
19601echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19602if test "${ac_cv_prog_PERL+set}" = set; then
19603  echo $ECHO_N "(cached) $ECHO_C" >&6
19604else
19605  if test -n "$PERL"; then
19606  ac_cv_prog_PERL="$PERL" # Let the user override the test.
19607else
19608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19609for as_dir in $PATH
19610do
19611  IFS=$as_save_IFS
19612  test -z "$as_dir" && as_dir=.
19613  for ac_exec_ext in '' $ac_executable_extensions; do
19614  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19615    ac_cv_prog_PERL="$ac_prog"
19616    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19617    break 2
19618  fi
19619done
19620done
19621
19622fi
19623fi
19624PERL=$ac_cv_prog_PERL
19625if test -n "$PERL"; then
19626  echo "$as_me:$LINENO: result: $PERL" >&5
19627echo "${ECHO_T}$PERL" >&6
19628else
19629  echo "$as_me:$LINENO: result: no" >&5
19630echo "${ECHO_T}no" >&6
19631fi
19632
19633  test -n "$PERL" && break
19634done
19635test -n "$PERL" || PERL="nope"
19636
19637    else
19638	PERL="$PERLBIN"
19639    fi
19640    echo "$as_me:$LINENO: checking for Perl header file" >&5
19641echo $ECHO_N "checking for Perl header file... $ECHO_C" >&6
19642    if test "$PERL" != "nope"; then
19643	PERL5DIR=`($PERL -e 'use Config; print $Config{archlib};') 2>/dev/null`
19644	if test "$PERL5DIR" != ""; then
19645	    if test "$PERLINCLUDE" = "nope"; then
19646		if test -r "$PERL5DIR/perl.h"; then
19647		    echo "$as_me:$LINENO: result: PERL5DIR/perl.h" >&5
19648echo "${ECHO_T}PERL5DIR/perl.h" >&6
19649		    WITH_PERL=yes
19650		    PERLINCLUDE="$PERL5DIR"
19651		elif test -r "$PERL5DIR/CORE/perl.h"; then
19652		    echo "$as_me:$LINENO: result: $PERL5DIR/CORE/perl.h" >&5
19653echo "${ECHO_T}$PERL5DIR/CORE/perl.h" >&6
19654		    WITH_PERL=yes
19655		    PERLINCLUDE="$PERL5DIR/CORE"
19656		fi
19657	    else
19658		WITH_PERL=yes
19659		echo "$as_me:$LINENO: result: $PERLINCLUDE" >&5
19660echo "${ECHO_T}$PERLINCLUDE" >&6
19661	    fi
19662	    if test "$PERLINCLUDE" = "nope"; then
19663		echo "$as_me:$LINENO: result: could not locate perl.h..." >&5
19664echo "${ECHO_T}could not locate perl.h..." >&6
19665		WITH_PERL=no
19666	    fi
19667	else
19668	    echo "$as_me:$LINENO: result: unable to determine Perl configuration" >&5
19669echo "${ECHO_T}unable to determine Perl configuration" >&6
19670	    WITH_PERL=no
19671	fi
19672
19673	PERLLIBDIR=`($PERL -e 'use Config; print $Config{sitearchexp};') 2>/dev/null`
19674	if test -z "$PERLLIBDIR" -o ! -d "$PERLLIBDIR"; then
19675	    echo "$as_me:$LINENO: result: unable to determine perl shared library directory" >&5
19676echo "${ECHO_T}unable to determine perl shared library directory" >&6
19677	fi
19678
19679    else
19680	echo "$as_me:$LINENO: result: could not figure out how to run perl" >&5
19681echo "${ECHO_T}could not figure out how to run perl" >&6
19682	PERLINCLUDE="/usr/local/lib/perl5/5.6.0/archname/CORE"
19683    fi
19684
19685
19686    case $ac_sys_system in
19687	    NeXT|next) PERLBOOLDEF="";;
19688	    *)	PERLBOOLDEF="-Dbool=char -DHAS_BOOL";;
19689    esac
19690
19691
19692    case $ac_sys_system/$ac_sys_release in
19693	hp*|HP*)     PERLLINK="";;
19694	cyg*|CYG*)   PERLLINK="-L$PERLINCLUDE -lperl $PERLLINK";;
19695	aix*|AIX*)   PERLLINK="-L$PERLINCLUDE -lperl $PERLLINK";;
19696	osf1*|OSF1*) PERLLINK="-L$PERLINCLUDE -lperl $PERLLINK";;
19697	darwin|Darwin*) PERLLINK="-L$PERLINCLUDE -lperl $PERLLINK";;
19698	dragonfly|DragonFly*) PERLLINK=`perl -V:lddlflags|sed -e "s|.*='\(.*\)';|\1|"`;;
19699	freebsd|FreeBSD*) PERLLINK=`perl -V:lddlflags|sed -e "s|.*='\(.*\)';|\1|"`;;
19700	*) ;;
19701    esac
19702
19703    PERLINCLUDE="-I$PERLINCLUDE"
19704
19705
19706
19707
19708
19709fi
19710
19711# ----------------------------------------------------------------
19712#  PDFlib Python binding
19713# ----------------------------------------------------------------
19714
19715if test -d bind/pdflib/python; then
19716    WITH_PYTHON=yes
19717else
19718    WITH_PYTHON=no
19719fi
19720
19721PYINCLUDE=nope
19722PYPACKAGE=nope
19723
19724
19725# Check whether --with-py or --without-py was given.
19726if test "${with_py+set}" = set; then
19727  withval="$with_py"
19728  PYPACKAGE="$withval"
19729else
19730  PYPACKAGE=nope
19731fi;
19732
19733if test "$PYPACKAGE" = "no" ; then
19734    WITH_PYTHON=no
19735fi
19736
19737
19738# Check whether --with-pyincl or --without-pyincl was given.
19739if test "${with_pyincl+set}" = set; then
19740  withval="$with_pyincl"
19741  PYINCLUDE="$withval"
19742else
19743  PYINCLUDE=nope
19744fi;
19745
19746if test "$PYINCLUDE" = "nope" -a "$PYPACKAGE" != "nope"; then
19747	PYINCLUDE="$PYPACKAGE/include"
19748fi
19749
19750if test "$WITH_PYTHON" != "no" ; then
19751    WITH_PYTHON=no
19752    echo "$as_me:$LINENO: checking for Python header files" >&5
19753echo $ECHO_N "checking for Python header files... $ECHO_C" >&6
19754
19755    dirs="$PYINCLUDE 			\
19756    $PYINCLUDE/python2.5                \
19757    $prefix/include/python2.5           \
19758    /usr/local/include/python2.5        \
19759    /usr/include/python2.5              \
19760    $prefix/include/python2.5           \
19761    $PYINCLUDE/python2.4                \
19762    $prefix/include/python2.4           \
19763    /usr/local/include/python2.4        \
19764    /usr/include/python2.4              \
19765    $prefix/include/python2.4           \
19766    $PYINCLUDE/python2.3                \
19767    $prefix/include/python2.3           \
19768    /usr/local/include/python2.3        \
19769    /usr/include/python2.3              \
19770    $prefix/include/python2.3           \
19771    $PYINCLUDE/python2.2                \
19772    $prefix/include/python2.2           \
19773    /usr/local/include/python2.2        \
19774    /usr/include/python2.2              \
19775    $prefix/include/python2.2           \
19776    $PYINCLUDE/python2.1                \
19777    $prefix/include/python2.1           \
19778    /usr/local/include/python2.1        \
19779    /usr/include/python2.1              \
19780    $prefix/include/python2.1           \
19781    $PYINCLUDE/python2.0 		\
19782    $prefix/include/python2.0 		\
19783    /usr/local/include/python2.0 	\
19784    /usr/include/python2.0 		\
19785    $prefix/include/python2.0		\
19786    $PYINCLUDE/python1.6		\
19787    $prefix/include/python1.6		\
19788    /usr/local/include/python1.6	\
19789    /usr/include/python1.6		\
19790    $prefix/include/python1.6		\
19791    $PYINCLUDE/python1.5		\
19792    $prefix/include/python1.5		\
19793    /usr/local/include/python1.5	\
19794    /usr/include/python1.5		\
19795    $prefix/include/python1.5		\
19796    $PYINCLUDE/python1.4		\
19797    $prefix/include/python1.4		\
19798    /usr/local/include/python1.4	\
19799    /usr/include/python1.4		\
19800    $prefix/include/python1.4"
19801    for i in $dirs ; do
19802	    if test -r $i/Python.h; then
19803		    echo "$as_me:$LINENO: result: $i" >&5
19804echo "${ECHO_T}$i" >&6
19805		    PYINCLUDE="-I$i"
19806		    WITH_PYTHON=yes
19807		    break
19808	    fi
19809    done
19810    if test "$PYINCLUDE" = "nope" -o "$PYINCLUDE" = "$PYPACKAGE/include"; then
19811	echo "$as_me:$LINENO: result: not found" >&5
19812echo "${ECHO_T}not found" >&6
19813	WITH_PYTHON=no
19814    fi
19815
19816
19817
19818    for ac_prog in python
19819do
19820  # Extract the first word of "$ac_prog", so it can be a program name with args.
19821set dummy $ac_prog; ac_word=$2
19822echo "$as_me:$LINENO: checking for $ac_word" >&5
19823echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19824if test "${ac_cv_prog_PYTHONBIN+set}" = set; then
19825  echo $ECHO_N "(cached) $ECHO_C" >&6
19826else
19827  if test -n "$PYTHONBIN"; then
19828  ac_cv_prog_PYTHONBIN="$PYTHONBIN" # Let the user override the test.
19829else
19830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19831for as_dir in $PATH
19832do
19833  IFS=$as_save_IFS
19834  test -z "$as_dir" && as_dir=.
19835  for ac_exec_ext in '' $ac_executable_extensions; do
19836  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19837    ac_cv_prog_PYTHONBIN="$ac_prog"
19838    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19839    break 2
19840  fi
19841done
19842done
19843
19844fi
19845fi
19846PYTHONBIN=$ac_cv_prog_PYTHONBIN
19847if test -n "$PYTHONBIN"; then
19848  echo "$as_me:$LINENO: result: $PYTHONBIN" >&5
19849echo "${ECHO_T}$PYTHONBIN" >&6
19850else
19851  echo "$as_me:$LINENO: result: no" >&5
19852echo "${ECHO_T}no" >&6
19853fi
19854
19855  test -n "$PYTHONBIN" && break
19856done
19857test -n "$PYTHONBIN" || PYTHONBIN="nope"
19858
19859
19860    if test "$PYTHONBIN" = "nope" ; then
19861	WITH_PYTHON=no
19862    fi
19863
19864    if test "$WITH_PYTHON" = "yes" ; then
19865	echo "$as_me:$LINENO: checking for Python shared library path" >&5
19866echo $ECHO_N "checking for Python shared library path... $ECHO_C" >&6
19867
19868	if test "$PYTHONBIN" = "nope" ; then
19869	    WITH_PYTHON=no
19870	else
19871	    PYTHONLIBDIR=`cat << EOF | python
19872import sys
19873import string
19874print string.join(filter(lambda x: -1 != string.find(x, 'dynload'), sys.path))
19875EOF
19876`
19877	    if test "$PYTHONLIBDIR" = "" ; then
19878		PYTHONLIBDIR=/usr/lib
19879	    fi
19880
19881
19882	fi
19883
19884	echo "$as_me:$LINENO: result: $PYTHONLIBDIR" >&5
19885echo "${ECHO_T}$PYTHONLIBDIR" >&6
19886    fi
19887fi
19888
19889# ----------------------------------------------------------------
19890#  PDFlib Ruby binding
19891# ----------------------------------------------------------------
19892
19893if test -d bind/pdflib/ruby; then
19894    WITH_RUBY=yes
19895else
19896    WITH_RUBY=no
19897fi
19898
19899RUBYINCLUDE=nope
19900RUBYBIN=nope
19901
19902
19903# Check whether --with-ruby or --without-ruby was given.
19904if test "${with_ruby+set}" = set; then
19905  withval="$with_ruby"
19906  RUBYBIN="$withval"
19907else
19908  RUBYBIN=nope
19909fi;
19910
19911if test "$RUBYBIN" = "no" ; then
19912    WITH_RUBY=no
19913fi
19914
19915
19916# Check whether --with-rubyincl or --without-rubyincl was given.
19917if test "${with_rubyincl+set}" = set; then
19918  withval="$with_rubyincl"
19919  RUBYINCLUDE="$withval"
19920else
19921  RUBYINCLUDE=nope
19922fi;
19923
19924if test "$WITH_RUBY" != "no" ; then
19925    WITH_RUBY=no
19926        if test "$RUBYBIN" = "nope"; then
19927	for ac_prog in ruby
19928do
19929  # Extract the first word of "$ac_prog", so it can be a program name with args.
19930set dummy $ac_prog; ac_word=$2
19931echo "$as_me:$LINENO: checking for $ac_word" >&5
19932echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19933if test "${ac_cv_prog_RUBY+set}" = set; then
19934  echo $ECHO_N "(cached) $ECHO_C" >&6
19935else
19936  if test -n "$RUBY"; then
19937  ac_cv_prog_RUBY="$RUBY" # Let the user override the test.
19938else
19939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19940for as_dir in $PATH
19941do
19942  IFS=$as_save_IFS
19943  test -z "$as_dir" && as_dir=.
19944  for ac_exec_ext in '' $ac_executable_extensions; do
19945  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19946    ac_cv_prog_RUBY="$ac_prog"
19947    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19948    break 2
19949  fi
19950done
19951done
19952
19953fi
19954fi
19955RUBY=$ac_cv_prog_RUBY
19956if test -n "$RUBY"; then
19957  echo "$as_me:$LINENO: result: $RUBY" >&5
19958echo "${ECHO_T}$RUBY" >&6
19959else
19960  echo "$as_me:$LINENO: result: no" >&5
19961echo "${ECHO_T}no" >&6
19962fi
19963
19964  test -n "$RUBY" && break
19965done
19966test -n "$RUBY" || RUBY="nope"
19967
19968    else
19969	RUBY="$RUBYBIN"
19970    fi
19971
19972if test "$RUBYBIN" = "nope" ; then
19973    WITH_RUBY=no
19974fi
19975
19976    echo "$as_me:$LINENO: checking for Ruby header files" >&5
19977echo $ECHO_N "checking for Ruby header files... $ECHO_C" >&6
19978
19979    dirs="$RUBYINCLUDE 			\
19980    /usr/lib/ruby/1.8/i686-linux 	\
19981    /usr/lib/ruby/1.8/universal-darwin9.0 \
19982    /usr/lib/ruby/1.8/universal-darwin8.0 \
19983    /usr/local/lib/ruby/1.8/i686-linux 	\
19984    /usr/local/lib/ruby/1.8/x86_64-linux 	\
19985    /usr/local/lib/ruby/1.8/sparc-solaris2.8 	\
19986    /usr/local/lib/ruby/1.8/sparc-solaris2.9 	\
19987    /usr/local/lib/ruby/1.8/sparc-solaris2.10 	\
19988    /usr/local/lib/ruby/1.8/i386-solaris2.10 	\
19989    /opt/sfw/lib/ruby/1.8/i386-solaris2.10 	\
19990    /usr/local/lib/ruby/1.8/i386-freebsd4.8 	\
19991    /usr/local/lib/ruby/1.8/i386-freebsd5.3 	\
19992    /usr/local/lib/ruby/1.8/amd64-freebsd6	\
19993    /usr/local/lib/ruby/1.8/i386-freebsd6 	\
19994    /usr/local/lib/ruby/1.8/amd64-freebsd7	\
19995    /usr/local/lib/ruby/1.8/i386-freebsd7 	\
19996    /usr/local/lib/ruby/1.8/universal-darwin8.0 \
19997    /usr/local/lib/ruby/1.8/powerpc-darwin7.9.0 \
19998    /usr/lib/ruby/1.8/universal-darwin9.0	\
19999    /usr/lib/ruby/1.8/universal-darwin10.0	\
20000    "
20001    for i in $dirs ; do
20002	if test -r $i/ruby.h; then
20003	    echo "$as_me:$LINENO: result: $i" >&5
20004echo "${ECHO_T}$i" >&6
20005	    RUBYINCLUDE="-I$i"
20006	    RUBYLIBDIR="$i"
20007	    WITH_RUBY=yes
20008	    break
20009	fi
20010    done
20011    if test "$RUBYINCLUDE" = "nope"; then
20012	echo "$as_me:$LINENO: result: not found" >&5
20013echo "${ECHO_T}not found" >&6
20014	WITH_RUBY=no
20015    fi
20016
20017
20018
20019
20020
20021fi
20022
20023# --------------------------------------------------------------------
20024# 	PDFlib Tcl binding
20025# --------------------------------------------------------------------
20026
20027if test -d bind/pdflib/tcl; then
20028    WITH_TCL=yes
20029else
20030    WITH_TCL=no
20031fi
20032
20033TCLINCLUDE=nope
20034TCLPACKAGEDIR=nope
20035TCLBIN=nope
20036
20037
20038# Check whether --with-tcl or --without-tcl was given.
20039if test "${with_tcl+set}" = set; then
20040  withval="$with_tcl"
20041  TCLBIN="$withval"
20042fi;
20043
20044if test "$TCLBIN" = "no" ; then
20045    WITH_TCL=no
20046fi
20047
20048
20049# Check whether --with-tclpkg or --without-tclpkg was given.
20050if test "${with_tclpkg+set}" = set; then
20051  withval="$with_tclpkg"
20052  TCLPACKAGEDIR="$withval"
20053else
20054  TCLPACKAGEDIR=nope
20055fi;
20056
20057
20058# Check whether --with-tclincl or --without-tclincl was given.
20059if test "${with_tclincl+set}" = set; then
20060  withval="$with_tclincl"
20061  TCLINCLUDE="$withval"
20062else
20063  TCLINCLUDE=nope
20064fi;
20065
20066if test "$WITH_TCL" = "yes" ; then
20067    WITH_TCL=no
20068    echo "$as_me:$LINENO: checking for Tcl header files" >&5
20069echo $ECHO_N "checking for Tcl header files... $ECHO_C" >&6
20070
20071    if test "$TCLINCLUDE" = "nope"; then
20072	cat >conftest.$ac_ext <<_ACEOF
20073/* confdefs.h.  */
20074_ACEOF
20075cat confdefs.h >>conftest.$ac_ext
20076cat >>conftest.$ac_ext <<_ACEOF
20077/* end confdefs.h.  */
20078#include <tcl.h>
20079_ACEOF
20080if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20081  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20082  ac_status=$?
20083  grep -v '^ *+' conftest.er1 >conftest.err
20084  rm -f conftest.er1
20085  cat conftest.err >&5
20086  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20087  (exit $ac_status); } >/dev/null; then
20088  if test -s conftest.err; then
20089    ac_cpp_err=$ac_c_preproc_warn_flag
20090    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20091  else
20092    ac_cpp_err=
20093  fi
20094else
20095  ac_cpp_err=yes
20096fi
20097if test -z "$ac_cpp_err"; then
20098  :
20099else
20100  echo "$as_me: failed program was:" >&5
20101sed 's/^/| /' conftest.$ac_ext >&5
20102
20103  TCLINCLUDE="nope"
20104fi
20105rm -f conftest.err conftest.$ac_ext
20106	if test "$TCLINCLUDE" = "nope"; then
20107	    dirs="\
20108	    $prefix/include \
20109	    /usr/sfw/include \
20110	    /opt/sfw/include \
20111	    /usr/local/include/tcl8.4 \
20112	    /usr/local/include \
20113	    /usr/include \
20114	    /opt/local/include \
20115	    /home/sci/local/include \
20116	    /usr/pkg/include \
20117	    /System/Library/Frameworks/Tcl.framework/Versions/8.3/Headers \
20118	    /System/Library/Frameworks/Tcl.framework/Versions/8.2/Headers"
20119	    for i in $dirs ; do
20120		if test -r $i/tcl.h; then
20121		    echo "$as_me:$LINENO: result: $i" >&5
20122echo "${ECHO_T}$i" >&6
20123		    TCLINCLUDE="$i"
20124		    WITH_TCL=yes
20125		    break
20126		fi
20127	    done
20128	fi
20129
20130	if test "$TCLINCLUDE" = "nope"; then
20131	    echo "$as_me:$LINENO: result: not found" >&5
20132echo "${ECHO_T}not found" >&6
20133	    WITH_TCL=no
20134	fi
20135    else
20136	echo "$as_me:$LINENO: result: $TCLINCLUDE" >&5
20137echo "${ECHO_T}$TCLINCLUDE" >&6
20138    fi
20139
20140
20141    if test "$TCLINCLUDE" != "nope" -a "$TCLBIN" = "nope"; then
20142	for ac_prog in tclsh tclsh8.4 tclsh8.3 tclsh8.2 tclsh8.1 tclsh8.0
20143do
20144  # Extract the first word of "$ac_prog", so it can be a program name with args.
20145set dummy $ac_prog; ac_word=$2
20146echo "$as_me:$LINENO: checking for $ac_word" >&5
20147echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20148if test "${ac_cv_prog_TCL+set}" = set; then
20149  echo $ECHO_N "(cached) $ECHO_C" >&6
20150else
20151  if test -n "$TCL"; then
20152  ac_cv_prog_TCL="$TCL" # Let the user override the test.
20153else
20154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20155for as_dir in $PATH
20156do
20157  IFS=$as_save_IFS
20158  test -z "$as_dir" && as_dir=.
20159  for ac_exec_ext in '' $ac_executable_extensions; do
20160  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20161    ac_cv_prog_TCL="$ac_prog"
20162    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20163    break 2
20164  fi
20165done
20166done
20167
20168fi
20169fi
20170TCL=$ac_cv_prog_TCL
20171if test -n "$TCL"; then
20172  echo "$as_me:$LINENO: result: $TCL" >&5
20173echo "${ECHO_T}$TCL" >&6
20174else
20175  echo "$as_me:$LINENO: result: no" >&5
20176echo "${ECHO_T}no" >&6
20177fi
20178
20179  test -n "$TCL" && break
20180done
20181test -n "$TCL" || TCL="nope"
20182
20183	TCLBIN=$TCL
20184    fi
20185
20186    if test "$TCLINCLUDE" = "nope" -o "$TCLBIN" = "nope"; then
20187	WITH_TCL=no
20188    else
20189		TCLVERSION=`echo "puts [info tclversion]" | $TCLBIN`
20190	if test  "$TCLVERSION" = "7.6" -o "$TCLVERSION" = "7.5" -o  "$TCLVERSION" = "7.4" -o "$TCLVERSION" = "7.3" -o "$TCLVERSION" = "7.1" -o "$TCLVERSION" = "7.0"; then
20191	    echo "$as_me:$LINENO: result:          Tcl version 8.0 or newer is required for PDFlib." >&5
20192echo "${ECHO_T}         Tcl version 8.0 or newer is required for PDFlib." >&6
20193	    echo "$as_me:$LINENO: result:          PDFlib support for Tcl will not be built." >&5
20194echo "${ECHO_T}         PDFlib support for Tcl will not be built." >&6
20195	    WITH_TCL=no
20196	else
20197	    if test  "$TCLVERSION" = "8.0" -o "$TCLVERSION" = "8.1"; then
20198		echo "$as_me:$LINENO: result:          The PDFlib build process requires Tcl 8.2 or above. Please read" >&5
20199echo "${ECHO_T}         The PDFlib build process requires Tcl 8.2 or above. Please read" >&6
20200		echo "$as_me:$LINENO: result:          bind/tcl/readme.txt for instructions on manually building PDFlib" >&5
20201echo "${ECHO_T}         bind/tcl/readme.txt for instructions on manually building PDFlib" >&6
20202		echo "$as_me:$LINENO: result:          for Tcl 8.0 or 8.1." >&5
20203echo "${ECHO_T}         for Tcl 8.0 or 8.1." >&6
20204	    fi
20205
20206	    if test "$TCLPACKAGEDIR" = "nope"; then
20207	    		TCLPACKAGEDIR=`(echo "puts \\$auto_path" | "$TCLBIN" | awk '{print $1}') 2>/dev/null`
20208	    fi
20209
20210	    if test "$TCLPACKAGEDIR" = "nope" -o -z "$TCLPACKAGEDIR" -o ! -d "$TCLPACKAGEDIR"; then
20211		echo "$as_me:$LINENO: result: unable to determine Tcl package directory" >&5
20212echo "${ECHO_T}unable to determine Tcl package directory" >&6
20213		WITH_TCL=no
20214
20215	    else
20216
20217		TCLPACKAGEDIR=$TCLPACKAGEDIR/pdflib
20218		WITH_TCL=yes
20219	    fi
20220	fi
20221    fi
20222fi
20223
20224TCLINCLUDE="-I$TCLINCLUDE"
20225
20226
20227
20228
20229# ----------------------------------------------------------------
20230#  PDFlib/PLOP auxiliary libraries:
20231#  We support only our own copy of tifflib, libpng and zlib
20232#  pdcore is needed in all configurations
20233# ----------------------------------------------------------------
20234
20235# The list of Makefile targets for our internal libraries
20236# pdcore is always needed
20237
20238PDCORELIBINC="-I\$(top_builddir)/libs/pdcore"
20239PDCORELIBLINK="\$(top_builddir)/libs/pdcore/libpdcore\$(LA)"
20240LIBTARGETS="$LIBTARGETS pdcore"
20241BINDTARGETS=""
20242PROGTARGETS=""
20243
20244
20245
20246
20247echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20248echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20249if test "${ac_cv_c_bigendian+set}" = set; then
20250  echo $ECHO_N "(cached) $ECHO_C" >&6
20251else
20252  # See if sys/param.h defines the BYTE_ORDER macro.
20253cat >conftest.$ac_ext <<_ACEOF
20254/* confdefs.h.  */
20255_ACEOF
20256cat confdefs.h >>conftest.$ac_ext
20257cat >>conftest.$ac_ext <<_ACEOF
20258/* end confdefs.h.  */
20259#include <sys/types.h>
20260#include <sys/param.h>
20261
20262int
20263main ()
20264{
20265#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20266 bogus endian macros
20267#endif
20268
20269  ;
20270  return 0;
20271}
20272_ACEOF
20273rm -f conftest.$ac_objext
20274if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20275  (eval $ac_compile) 2>conftest.er1
20276  ac_status=$?
20277  grep -v '^ *+' conftest.er1 >conftest.err
20278  rm -f conftest.er1
20279  cat conftest.err >&5
20280  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20281  (exit $ac_status); } &&
20282	 { ac_try='test -z "$ac_c_werror_flag"
20283			 || test ! -s conftest.err'
20284  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20285  (eval $ac_try) 2>&5
20286  ac_status=$?
20287  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20288  (exit $ac_status); }; } &&
20289	 { ac_try='test -s conftest.$ac_objext'
20290  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20291  (eval $ac_try) 2>&5
20292  ac_status=$?
20293  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20294  (exit $ac_status); }; }; then
20295  # It does; now see whether it defined to BIG_ENDIAN or not.
20296cat >conftest.$ac_ext <<_ACEOF
20297/* confdefs.h.  */
20298_ACEOF
20299cat confdefs.h >>conftest.$ac_ext
20300cat >>conftest.$ac_ext <<_ACEOF
20301/* end confdefs.h.  */
20302#include <sys/types.h>
20303#include <sys/param.h>
20304
20305int
20306main ()
20307{
20308#if BYTE_ORDER != BIG_ENDIAN
20309 not big endian
20310#endif
20311
20312  ;
20313  return 0;
20314}
20315_ACEOF
20316rm -f conftest.$ac_objext
20317if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20318  (eval $ac_compile) 2>conftest.er1
20319  ac_status=$?
20320  grep -v '^ *+' conftest.er1 >conftest.err
20321  rm -f conftest.er1
20322  cat conftest.err >&5
20323  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20324  (exit $ac_status); } &&
20325	 { ac_try='test -z "$ac_c_werror_flag"
20326			 || test ! -s conftest.err'
20327  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20328  (eval $ac_try) 2>&5
20329  ac_status=$?
20330  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20331  (exit $ac_status); }; } &&
20332	 { ac_try='test -s conftest.$ac_objext'
20333  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20334  (eval $ac_try) 2>&5
20335  ac_status=$?
20336  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20337  (exit $ac_status); }; }; then
20338  ac_cv_c_bigendian=yes
20339else
20340  echo "$as_me: failed program was:" >&5
20341sed 's/^/| /' conftest.$ac_ext >&5
20342
20343ac_cv_c_bigendian=no
20344fi
20345rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20346else
20347  echo "$as_me: failed program was:" >&5
20348sed 's/^/| /' conftest.$ac_ext >&5
20349
20350# It does not; compile a test program.
20351if test "$cross_compiling" = yes; then
20352  # try to guess the endianness by grepping values into an object file
20353  ac_cv_c_bigendian=unknown
20354  cat >conftest.$ac_ext <<_ACEOF
20355/* confdefs.h.  */
20356_ACEOF
20357cat confdefs.h >>conftest.$ac_ext
20358cat >>conftest.$ac_ext <<_ACEOF
20359/* end confdefs.h.  */
20360short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20361short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20362void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20363short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20364short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20365void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20366int
20367main ()
20368{
20369 _ascii (); _ebcdic ();
20370  ;
20371  return 0;
20372}
20373_ACEOF
20374rm -f conftest.$ac_objext
20375if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20376  (eval $ac_compile) 2>conftest.er1
20377  ac_status=$?
20378  grep -v '^ *+' conftest.er1 >conftest.err
20379  rm -f conftest.er1
20380  cat conftest.err >&5
20381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20382  (exit $ac_status); } &&
20383	 { ac_try='test -z "$ac_c_werror_flag"
20384			 || test ! -s conftest.err'
20385  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20386  (eval $ac_try) 2>&5
20387  ac_status=$?
20388  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20389  (exit $ac_status); }; } &&
20390	 { ac_try='test -s conftest.$ac_objext'
20391  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20392  (eval $ac_try) 2>&5
20393  ac_status=$?
20394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20395  (exit $ac_status); }; }; then
20396  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
20397  ac_cv_c_bigendian=yes
20398fi
20399if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20400  if test "$ac_cv_c_bigendian" = unknown; then
20401    ac_cv_c_bigendian=no
20402  else
20403    # finding both strings is unlikely to happen, but who knows?
20404    ac_cv_c_bigendian=unknown
20405  fi
20406fi
20407else
20408  echo "$as_me: failed program was:" >&5
20409sed 's/^/| /' conftest.$ac_ext >&5
20410
20411fi
20412rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20413else
20414  cat >conftest.$ac_ext <<_ACEOF
20415/* confdefs.h.  */
20416_ACEOF
20417cat confdefs.h >>conftest.$ac_ext
20418cat >>conftest.$ac_ext <<_ACEOF
20419/* end confdefs.h.  */
20420int
20421main ()
20422{
20423  /* Are we little or big endian?  From Harbison&Steele.  */
20424  union
20425  {
20426    long l;
20427    char c[sizeof (long)];
20428  } u;
20429  u.l = 1;
20430  exit (u.c[sizeof (long) - 1] == 1);
20431}
20432_ACEOF
20433rm -f conftest$ac_exeext
20434if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20435  (eval $ac_link) 2>&5
20436  ac_status=$?
20437  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20438  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20439  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20440  (eval $ac_try) 2>&5
20441  ac_status=$?
20442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20443  (exit $ac_status); }; }; then
20444  ac_cv_c_bigendian=no
20445else
20446  echo "$as_me: program exited with status $ac_status" >&5
20447echo "$as_me: failed program was:" >&5
20448sed 's/^/| /' conftest.$ac_ext >&5
20449
20450( exit $ac_status )
20451ac_cv_c_bigendian=yes
20452fi
20453rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20454fi
20455fi
20456rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20457fi
20458echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20459echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20460case $ac_cv_c_bigendian in
20461  yes)
20462
20463cat >>confdefs.h <<\_ACEOF
20464#define WORDS_BIGENDIAN 1
20465_ACEOF
20466 ;;
20467  no)
20468     ;;
20469  *)
20470    { { echo "$as_me:$LINENO: error: unknown endianness
20471presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20472echo "$as_me: error: unknown endianness
20473presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20474   { (exit 1); exit 1; }; } ;;
20475esac
20476
20477
20478# font
20479if test -d libs/font ; then
20480    FONTLIBINC="-I\$(top_builddir)/libs/font"
20481    FONTLIBLINK="\$(top_builddir)/libs/font/libfont\$(LA)"
20482    LIBTARGETS="$LIBTARGETS font"
20483else
20484    FONTLIBINC=""
20485    FONTLIBLINK=""
20486fi
20487
20488
20489
20490# zlib
20491if test -d libs/flate ; then
20492    FLATELIBINC="-I\$(top_builddir)/libs/flate"
20493    FLATELIBLINK="\$(top_builddir)/libs/flate/libz\$(LA)"
20494    LIBTARGETS="$LIBTARGETS flate"
20495else
20496    FLATELIBINC=""
20497    FLATELIBLINK=""
20498fi
20499
20500
20501
20502# pnglib
20503if test -d libs/png ; then
20504    PNGLIBINC="-I\$(top_builddir)/libs/png"
20505    PNGLIBLINK="\$(top_builddir)/libs/png/libpng\$(LA)"
20506    LIBTARGETS="$LIBTARGETS png"
20507else
20508    PNGLIBINC=""
20509    PNGLIBLINK=""
20510fi
20511
20512
20513
20514# tifflib
20515if test -d libs/tiff ; then
20516    TIFFLIBINC="-I\$(top_builddir)/libs/tiff"
20517    TIFFLIBLINK="\$(top_builddir)/libs/tiff/libtiff\$(LA)"
20518    LIBTARGETS="$LIBTARGETS tiff"
20519else
20520    TIFFLIBINC=""
20521    TIFFLIBLINK=""
20522fi
20523
20524
20525
20526# jpeglib
20527if test -d libs/jpeg ; then
20528    JPEGLIBINC="-I\$(top_builddir)/libs/jpeg"
20529    JPEGLIBLINK="\$(top_builddir)/libs/jpeg/libjpeg\$(LA)"
20530    LIBTARGETS="$LIBTARGETS jpeg"
20531else
20532    JPEGLIBINC=""
20533    JPEGLIBLINK=""
20534fi
20535
20536
20537
20538# expat
20539if test -d libs/expat ; then
20540    EXPATLIBINC="-I\$(top_builddir)/libs/expat"
20541    EXPATLIBLINK="\$(top_builddir)/libs/expat/libexpat\$(LA)"
20542    LIBTARGETS="$LIBTARGETS expat"
20543else
20544    EXPATLIBINC=""
20545    EXPATLIBLINK=""
20546fi
20547
20548
20549
20550# OpenSSL
20551WITH_OPENSSL=no
20552OPENSSLLIBINC=""
20553OPENSSLLIBLINK=""
20554
20555
20556# Check whether --with-openssl or --without-openssl was given.
20557if test "${with_openssl+set}" = set; then
20558  withval="$with_openssl"
20559
20560WITH_OPENSSL=$withval
20561fi;
20562
20563if test "$WITH_OPENSSL" != "no" ; then
20564  if test -d /usr/local/ssl ; then
20565    WITH_OPENSSL=yes
20566    OPENSSLLIBINC="-DPDF_FEATURE_DIGSIG -I/usr/local/ssl/include"
20567    OPENSSLLIBLINK="-L/usr/local/ssl/lib -lcrypto -lssl"
20568    LIBTARGETS="$LIBTARGETS expat"
20569  else
20570    WITH_OPENSLL=no
20571  fi
20572fi
20573
20574
20575
20576# ICU Support
20577WITH_ICU=no
20578ICULIBINC=""
20579ICULIBLINK=""
20580ICUTLELIBINC=""
20581ICUTLELIBLINK=""
20582
20583# Check whether --enable-icu or --disable-icu was given.
20584if test "${enable_icu+set}" = set; then
20585  enableval="$enable_icu"
20586  WITH_ICU=$enableval
20587fi;
20588
20589if test "$WITH_ICU" = "yes"; then
20590    if test -d "libs/icu"; then
20591        WITH_ICU=yes
20592        ICUDIR="\$(top_builddir)/libs/icu"
20593        ICULIBINC="-I$ICUDIR/include"
20594        ICULIBLINK="-L$ICUDIR/lib -lsicuio -lsicuuc -lsicui18n -lsicudata -lsicule -lsiculx"
20595
20596	# icutle
20597	if test -d libs/icutle ; then
20598	    ICUTLELIBINC="-I\$(top_builddir)/libs/icutle"
20599	    ICUTLELIBLINK="\$(top_builddir)/libs/icutle/libicutle\$(LA)"
20600	    LIBTARGETS="$LIBTARGETS icutle"
20601	fi
20602    else
20603	WITH_ICU=no
20604    fi
20605fi
20606
20607
20608
20609
20610
20611
20612
20613# ----------------------------------------------------------------
20614#  PDFlib auxiliary library: PDI (PDF import library)
20615# ----------------------------------------------------------------
20616
20617WITH_PDI=no
20618
20619echo "$as_me:$LINENO: checking for PDF import library PDI" >&5
20620echo $ECHO_N "checking for PDF import library PDI... $ECHO_C" >&6
20621
20622if test -d libs/pdi ; then
20623    WITH_PDI=yes
20624        PDIMAKEOBJS="../pdi/Make_objs.inc"
20625    PDILIBINC="-I\$(top_builddir)/libs/pdi"
20626    PDILIBLINK="\$(top_builddir)/libs/pdi/libpdi\$(LA)"
20627
20628    LIBTARGETS="$LIBTARGETS pdi"
20629    echo "$as_me:$LINENO: result: found" >&5
20630echo "${ECHO_T}found" >&6
20631else
20632    PDIMAKEOBJS=""
20633    PDILIBINC=""
20634    PDILIBLINK=""
20635    echo "$as_me:$LINENO: result: not found" >&5
20636echo "${ECHO_T}not found" >&6
20637fi
20638
20639
20640
20641
20642# ----------------------------------------------------------------
20643#  PDFlib auxiliary library: PLOP (PDF Linearization, Optimization, Privacy)
20644# ----------------------------------------------------------------
20645
20646WITH_PLOP=no
20647PLOPLIBINC=""
20648PLOPLIBLINK=""
20649PLOPLIB_LINK=""
20650
20651echo "$as_me:$LINENO: checking for PDFlib PLOP (PDF Linearization, Optimization, Privacy)" >&5
20652echo $ECHO_N "checking for PDFlib PLOP (PDF Linearization, Optimization, Privacy)... $ECHO_C" >&6
20653
20654if test -d libs/plop ; then
20655    WITH_PLOP=yes
20656
20657# Check whether --with-PLOP or --without-PLOP was given.
20658if test "${with_PLOP+set}" = set; then
20659  withval="$with_PLOP"
20660  WITH_PLOP="$withval"
20661fi;
20662    LIBTARGETS="$LIBTARGETS plop"
20663    PLOPLIBINC="-I\$(top_builddir)/libs/plop"
20664    PLOPLIB_LINK="\$(topbuilddir)/libs/plop/libplop_\$(LA)"
20665    if test "$WITH_PLOP" = "yes"; then
20666	if test -d bind/plop ; then
20667	    BINDTARGETS="$BINDTARGETS plop"
20668	fi
20669	if test -d progs/plop ; then
20670	    PROGTARGETS="$PROGTARGETS plop"
20671	fi
20672	echo "$as_me:$LINENO: result: found" >&5
20673echo "${ECHO_T}found" >&6
20674    else
20675	echo "$as_me:$LINENO: result: not used" >&5
20676echo "${ECHO_T}not used" >&6
20677    fi
20678else
20679    echo "$as_me:$LINENO: result: not found" >&5
20680echo "${ECHO_T}not found" >&6
20681fi
20682
20683
20684
20685
20686# ----------------------------------------------------------------
20687#  PDFlib main library: not needed for PLOP
20688# ----------------------------------------------------------------
20689
20690
20691EXTERNALLIBS="$EXTERNALLIBS $MATHLIB"
20692
20693WITH_PDFLIB=no
20694
20695echo "$as_me:$LINENO: checking for PDFlib base library pdflib" >&5
20696echo $ECHO_N "checking for PDFlib base library pdflib... $ECHO_C" >&6
20697
20698if test -d libs/pdflib ; then
20699    WITH_PDFLIB=yes
20700    PDFLIBINC="-I\$(top_builddir)/libs/pdflib"
20701    if test "$WITH_UNIVERSAL" = "yes"; then
20702	PDFLIBLINK="\$(top_builddir)/libs/pdflib/.libs/libs_lib$PDFLIBNAME.al"
20703print "UNIVERSAL: .libs/libs_libpdflib.al"
20704    else
20705	PDFLIBLINK="\$(top_builddir)/libs/pdflib/libs_lib$PDFLIBNAME\$(LA)"
20706    fi
20707    PDFLIB_LINK="\$(top_builddir)/libs/pdflib/libpdf_\$(LA)"
20708    LIBTARGETS="$LIBTARGETS pdflib"
20709    BINDTARGETS="$BINDTARGETS pdflib"
20710    PROGTARGETS="$PROGTARGETS pdflib"
20711    echo "$as_me:$LINENO: result: found" >&5
20712echo "${ECHO_T}found" >&6
20713else
20714    PDFLIBINC=""
20715    PDFLIBLINK=""
20716    PDFLIB_LINK=""
20717    PDFLIBCONVENIENT=""
20718    echo "$as_me:$LINENO: result: not found" >&5
20719echo "${ECHO_T}not found" >&6
20720fi
20721
20722
20723
20724
20725
20726
20727
20728# ----------------------------------------------------------------
20729#  pCOS
20730# ----------------------------------------------------------------
20731
20732WITH_PCOS=no
20733PCOSLIBINC=""
20734PCOSLIBLINK=""
20735PCOSLIB_LINK=""
20736
20737echo "$as_me:$LINENO: checking for pCOS" >&5
20738echo $ECHO_N "checking for pCOS... $ECHO_C" >&6
20739
20740if test -d libs/pcos ; then
20741    WITH_PCOS=yes
20742
20743# Check whether --with-PCOS or --without-PCOS was given.
20744if test "${with_PCOS+set}" = set; then
20745  withval="$with_PCOS"
20746  WITH_PCOS="$withval"
20747fi;
20748    LIBTARGETS="$LIBTARGETS pcos"
20749    PCOSLIBINC="-I\$(top_builddir)/libs/pcos"
20750    PCOSLIB_LINK="\$(topbuilddir)/libs/pcos/libpcos_\$(LA)"
20751    if test "$WITH_PCOS" = "yes"; then
20752	BINDTARGETS="$BINDTARGETS pcos"
20753	PROGTARGETS="$PROGTARGETS pcos"
20754	PCOSLIBLINK="\$(topbuilddir)/libs/pcos/libpcos\$(LA)"
20755	echo "$as_me:$LINENO: result: found" >&5
20756echo "${ECHO_T}found" >&6
20757    else
20758	echo "$as_me:$LINENO: result: not used" >&5
20759echo "${ECHO_T}not used" >&6
20760    fi
20761else
20762    echo "$as_me:$LINENO: result: not found" >&5
20763echo "${ECHO_T}not found" >&6
20764fi
20765
20766
20767
20768
20769# ----------------------------------------------------------------
20770#  PDFlib auxiliary library: TET
20771# ----------------------------------------------------------------
20772
20773WITH_TET=no
20774TETLIBINC=""
20775TETLIBLINK=""
20776TETLIB_LINK=""
20777
20778echo "$as_me:$LINENO: checking for PDFlib TET" >&5
20779echo $ECHO_N "checking for PDFlib TET... $ECHO_C" >&6
20780
20781if test -d libs/tet ; then
20782    WITH_TET=yes
20783
20784# Check whether --with-TET or --without-TET was given.
20785if test "${with_TET+set}" = set; then
20786  withval="$with_TET"
20787  WITH_TET="$withval"
20788fi;
20789    if test "$WITH_TET" = "yes"; then
20790	LIBTARGETS="$LIBTARGETS tet"
20791	BINDTARGETS="$BINDTARGETS tet"
20792	PROGTARGETS="$PROGTARGETS tet"
20793	TETLIBINC="-I\$(top_builddir)/libs/tet"
20794	TETLIBLINK="\$(topbuilddir)/libs/tet/libs_libtet\$(LA)"
20795	TETLIB_LINK="\$(topbuilddir)/libs/tet/libtet_\$(LA)"
20796	echo "$as_me:$LINENO: result: found" >&5
20797echo "${ECHO_T}found" >&6
20798    else
20799	echo "$as_me:$LINENO: result: not used" >&5
20800echo "${ECHO_T}not used" >&6
20801    fi
20802else
20803    echo "$as_me:$LINENO: result: not found" >&5
20804echo "${ECHO_T}not found" >&6
20805fi
20806
20807
20808
20809
20810# ----------------------------------------------------------------
20811#  PDFlib auxiliary library: PDPAGE
20812# ----------------------------------------------------------------
20813
20814WITH_PDPAGE=no
20815
20816echo "$as_me:$LINENO: checking for PDFlib PDPAGE" >&5
20817echo $ECHO_N "checking for PDFlib PDPAGE... $ECHO_C" >&6
20818
20819if test -d libs/pdpage ; then
20820    WITH_PDPAGE=yes
20821fi
20822if test "$WITH_PDPAGE" = "yes" ; then
20823    LIBTARGETS="pdpage $LIBTARGETS"
20824    PDPAGELIBINC="-I\$(top_builddir)/libs/pdpage"
20825    PDPAGELIBLINK="\$(topbuilddir)/libs/pdpage/libpdpage\$(LA)"
20826    echo "$as_me:$LINENO: result: found" >&5
20827echo "${ECHO_T}found" >&6
20828else
20829    PDPAGELIBINC=""
20830    PDPAGELIBLINK=""
20831    echo "$as_me:$LINENO: result: not found" >&5
20832echo "${ECHO_T}not found" >&6
20833fi
20834
20835
20836
20837# ----------------------------------------------------------------
20838#  PDFlib auxiliary library: cl
20839# ----------------------------------------------------------------
20840#
20841WITH_CL=no
20842CLLIBINC=""
20843CLLIBLINK=""
20844
20845echo "$as_me:$LINENO: checking for PDFlib lib CL" >&5
20846echo $ECHO_N "checking for PDFlib lib CL... $ECHO_C" >&6
20847
20848if test -d libs/cl ; then
20849    WITH_CL=yes
20850
20851# Check whether --with-CL or --without-CL was given.
20852if test "${with_CL+set}" = set; then
20853  withval="$with_CL"
20854  WITH_CL="$withval"
20855fi;
20856    if test "$WITH_CL" = "yes"; then
20857	LIBTARGETS="$LIBTARGETS cl"
20858	CLLIBINC="-I\$(top_builddir)/libs/cl"
20859	CLLIBLINK="\$(topbuilddir)/libs/cl/libcl\$(LA)"
20860	echo "$as_me:$LINENO: result: found" >&5
20861echo "${ECHO_T}found" >&6
20862    else
20863	echo "$as_me:$LINENO: result: not used" >&5
20864echo "${ECHO_T}not used" >&6
20865    fi
20866else
20867    echo "$as_me:$LINENO: result: not found" >&5
20868echo "${ECHO_T}not found" >&6
20869fi
20870
20871
20872
20873# ----------------------------------------------------------------
20874#  PDFlib internal utilities library: util
20875# ----------------------------------------------------------------
20876#
20877UTILLIBINC=""
20878UTILLIBLINK=""
20879
20880if test -d intern/libs/util ; then
20881    UTILLIBINC="-I\$(top_builddir)/intern/libs/util"
20882    UTILLIBLINK="\$(topbuilddir)/intern/libs/util/libutil\$(LA)"
20883fi
20884
20885
20886
20887ATSLIBINC=""
20888ATSLIBLINK=""
20889
20890if test -d intern/libs/util ; then
20891    ATSLIBINC="-I\$(top_builddir)/intern/libs/ats"
20892    ATSLIBLINK="\$(topbuilddir)/intern/libs/ats/libats\$(LA)"
20893fi
20894
20895
20896
20897# --------------------------------------------------------------------
20898# 	PDFlib C++ language binding
20899# --------------------------------------------------------------------
20900
20901WITH_CXX=yes
20902
20903STDCPP=""
20904
20905# Check whether --enable-cxx or --disable-cxx was given.
20906if test "${enable_cxx+set}" = set; then
20907  enableval="$enable_cxx"
20908  WITH_CXX=$enableval
20909fi;
20910
20911if test "$WITH_CXX" = "yes"; then
20912    ac_ext=cc
20913ac_cpp='$CXXCPP $CPPFLAGS'
20914ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20915ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20916ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20917
20918    ac_ext=cc
20919ac_cpp='$CXXCPP $CPPFLAGS'
20920ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20921ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20922ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20923if test -n "$ac_tool_prefix"; then
20924  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
20925  do
20926    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20927set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20928echo "$as_me:$LINENO: checking for $ac_word" >&5
20929echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20930if test "${ac_cv_prog_CXX+set}" = set; then
20931  echo $ECHO_N "(cached) $ECHO_C" >&6
20932else
20933  if test -n "$CXX"; then
20934  ac_cv_prog_CXX="$CXX" # Let the user override the test.
20935else
20936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20937for as_dir in $PATH
20938do
20939  IFS=$as_save_IFS
20940  test -z "$as_dir" && as_dir=.
20941  for ac_exec_ext in '' $ac_executable_extensions; do
20942  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20943    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
20944    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20945    break 2
20946  fi
20947done
20948done
20949
20950fi
20951fi
20952CXX=$ac_cv_prog_CXX
20953if test -n "$CXX"; then
20954  echo "$as_me:$LINENO: result: $CXX" >&5
20955echo "${ECHO_T}$CXX" >&6
20956else
20957  echo "$as_me:$LINENO: result: no" >&5
20958echo "${ECHO_T}no" >&6
20959fi
20960
20961    test -n "$CXX" && break
20962  done
20963fi
20964if test -z "$CXX"; then
20965  ac_ct_CXX=$CXX
20966  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
20967do
20968  # Extract the first word of "$ac_prog", so it can be a program name with args.
20969set dummy $ac_prog; ac_word=$2
20970echo "$as_me:$LINENO: checking for $ac_word" >&5
20971echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20972if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
20973  echo $ECHO_N "(cached) $ECHO_C" >&6
20974else
20975  if test -n "$ac_ct_CXX"; then
20976  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
20977else
20978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20979for as_dir in $PATH
20980do
20981  IFS=$as_save_IFS
20982  test -z "$as_dir" && as_dir=.
20983  for ac_exec_ext in '' $ac_executable_extensions; do
20984  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20985    ac_cv_prog_ac_ct_CXX="$ac_prog"
20986    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20987    break 2
20988  fi
20989done
20990done
20991
20992fi
20993fi
20994ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
20995if test -n "$ac_ct_CXX"; then
20996  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
20997echo "${ECHO_T}$ac_ct_CXX" >&6
20998else
20999  echo "$as_me:$LINENO: result: no" >&5
21000echo "${ECHO_T}no" >&6
21001fi
21002
21003  test -n "$ac_ct_CXX" && break
21004done
21005test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
21006
21007  CXX=$ac_ct_CXX
21008fi
21009
21010
21011# Provide some information about the compiler.
21012echo "$as_me:$LINENO:" \
21013     "checking for C++ compiler version" >&5
21014ac_compiler=`set X $ac_compile; echo $2`
21015{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
21016  (eval $ac_compiler --version </dev/null >&5) 2>&5
21017  ac_status=$?
21018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21019  (exit $ac_status); }
21020{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
21021  (eval $ac_compiler -v </dev/null >&5) 2>&5
21022  ac_status=$?
21023  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21024  (exit $ac_status); }
21025{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
21026  (eval $ac_compiler -V </dev/null >&5) 2>&5
21027  ac_status=$?
21028  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21029  (exit $ac_status); }
21030
21031echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
21032echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
21033if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
21034  echo $ECHO_N "(cached) $ECHO_C" >&6
21035else
21036  cat >conftest.$ac_ext <<_ACEOF
21037/* confdefs.h.  */
21038_ACEOF
21039cat confdefs.h >>conftest.$ac_ext
21040cat >>conftest.$ac_ext <<_ACEOF
21041/* end confdefs.h.  */
21042
21043int
21044main ()
21045{
21046#ifndef __GNUC__
21047       choke me
21048#endif
21049
21050  ;
21051  return 0;
21052}
21053_ACEOF
21054rm -f conftest.$ac_objext
21055if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21056  (eval $ac_compile) 2>conftest.er1
21057  ac_status=$?
21058  grep -v '^ *+' conftest.er1 >conftest.err
21059  rm -f conftest.er1
21060  cat conftest.err >&5
21061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21062  (exit $ac_status); } &&
21063	 { ac_try='test -z "$ac_cxx_werror_flag"
21064			 || test ! -s conftest.err'
21065  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21066  (eval $ac_try) 2>&5
21067  ac_status=$?
21068  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21069  (exit $ac_status); }; } &&
21070	 { ac_try='test -s conftest.$ac_objext'
21071  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21072  (eval $ac_try) 2>&5
21073  ac_status=$?
21074  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21075  (exit $ac_status); }; }; then
21076  ac_compiler_gnu=yes
21077else
21078  echo "$as_me: failed program was:" >&5
21079sed 's/^/| /' conftest.$ac_ext >&5
21080
21081ac_compiler_gnu=no
21082fi
21083rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21084ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
21085
21086fi
21087echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
21088echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
21089GXX=`test $ac_compiler_gnu = yes && echo yes`
21090ac_test_CXXFLAGS=${CXXFLAGS+set}
21091ac_save_CXXFLAGS=$CXXFLAGS
21092CXXFLAGS="-g"
21093echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
21094echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
21095if test "${ac_cv_prog_cxx_g+set}" = set; then
21096  echo $ECHO_N "(cached) $ECHO_C" >&6
21097else
21098  cat >conftest.$ac_ext <<_ACEOF
21099/* confdefs.h.  */
21100_ACEOF
21101cat confdefs.h >>conftest.$ac_ext
21102cat >>conftest.$ac_ext <<_ACEOF
21103/* end confdefs.h.  */
21104
21105int
21106main ()
21107{
21108
21109  ;
21110  return 0;
21111}
21112_ACEOF
21113rm -f conftest.$ac_objext
21114if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21115  (eval $ac_compile) 2>conftest.er1
21116  ac_status=$?
21117  grep -v '^ *+' conftest.er1 >conftest.err
21118  rm -f conftest.er1
21119  cat conftest.err >&5
21120  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21121  (exit $ac_status); } &&
21122	 { ac_try='test -z "$ac_cxx_werror_flag"
21123			 || test ! -s conftest.err'
21124  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21125  (eval $ac_try) 2>&5
21126  ac_status=$?
21127  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21128  (exit $ac_status); }; } &&
21129	 { ac_try='test -s conftest.$ac_objext'
21130  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21131  (eval $ac_try) 2>&5
21132  ac_status=$?
21133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21134  (exit $ac_status); }; }; then
21135  ac_cv_prog_cxx_g=yes
21136else
21137  echo "$as_me: failed program was:" >&5
21138sed 's/^/| /' conftest.$ac_ext >&5
21139
21140ac_cv_prog_cxx_g=no
21141fi
21142rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21143fi
21144echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
21145echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
21146if test "$ac_test_CXXFLAGS" = set; then
21147  CXXFLAGS=$ac_save_CXXFLAGS
21148elif test $ac_cv_prog_cxx_g = yes; then
21149  if test "$GXX" = yes; then
21150    CXXFLAGS="-g -O2"
21151  else
21152    CXXFLAGS="-g"
21153  fi
21154else
21155  if test "$GXX" = yes; then
21156    CXXFLAGS="-O2"
21157  else
21158    CXXFLAGS=
21159  fi
21160fi
21161for ac_declaration in \
21162   '' \
21163   'extern "C" void std::exit (int) throw (); using std::exit;' \
21164   'extern "C" void std::exit (int); using std::exit;' \
21165   'extern "C" void exit (int) throw ();' \
21166   'extern "C" void exit (int);' \
21167   'void exit (int);'
21168do
21169  cat >conftest.$ac_ext <<_ACEOF
21170/* confdefs.h.  */
21171_ACEOF
21172cat confdefs.h >>conftest.$ac_ext
21173cat >>conftest.$ac_ext <<_ACEOF
21174/* end confdefs.h.  */
21175$ac_declaration
21176#include <stdlib.h>
21177int
21178main ()
21179{
21180exit (42);
21181  ;
21182  return 0;
21183}
21184_ACEOF
21185rm -f conftest.$ac_objext
21186if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21187  (eval $ac_compile) 2>conftest.er1
21188  ac_status=$?
21189  grep -v '^ *+' conftest.er1 >conftest.err
21190  rm -f conftest.er1
21191  cat conftest.err >&5
21192  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21193  (exit $ac_status); } &&
21194	 { ac_try='test -z "$ac_cxx_werror_flag"
21195			 || test ! -s conftest.err'
21196  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21197  (eval $ac_try) 2>&5
21198  ac_status=$?
21199  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21200  (exit $ac_status); }; } &&
21201	 { ac_try='test -s conftest.$ac_objext'
21202  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21203  (eval $ac_try) 2>&5
21204  ac_status=$?
21205  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21206  (exit $ac_status); }; }; then
21207  :
21208else
21209  echo "$as_me: failed program was:" >&5
21210sed 's/^/| /' conftest.$ac_ext >&5
21211
21212continue
21213fi
21214rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21215  cat >conftest.$ac_ext <<_ACEOF
21216/* confdefs.h.  */
21217_ACEOF
21218cat confdefs.h >>conftest.$ac_ext
21219cat >>conftest.$ac_ext <<_ACEOF
21220/* end confdefs.h.  */
21221$ac_declaration
21222int
21223main ()
21224{
21225exit (42);
21226  ;
21227  return 0;
21228}
21229_ACEOF
21230rm -f conftest.$ac_objext
21231if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21232  (eval $ac_compile) 2>conftest.er1
21233  ac_status=$?
21234  grep -v '^ *+' conftest.er1 >conftest.err
21235  rm -f conftest.er1
21236  cat conftest.err >&5
21237  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21238  (exit $ac_status); } &&
21239	 { ac_try='test -z "$ac_cxx_werror_flag"
21240			 || test ! -s conftest.err'
21241  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21242  (eval $ac_try) 2>&5
21243  ac_status=$?
21244  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21245  (exit $ac_status); }; } &&
21246	 { ac_try='test -s conftest.$ac_objext'
21247  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21248  (eval $ac_try) 2>&5
21249  ac_status=$?
21250  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21251  (exit $ac_status); }; }; then
21252  break
21253else
21254  echo "$as_me: failed program was:" >&5
21255sed 's/^/| /' conftest.$ac_ext >&5
21256
21257fi
21258rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21259done
21260rm -f conftest*
21261if test -n "$ac_declaration"; then
21262  echo '#ifdef __cplusplus' >>confdefs.h
21263  echo $ac_declaration      >>confdefs.h
21264  echo '#endif'             >>confdefs.h
21265fi
21266
21267ac_ext=cc
21268ac_cpp='$CXXCPP $CPPFLAGS'
21269ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21270ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21271ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21272
21273    echo "$as_me:$LINENO: checking whether the previously found C++ compiler works" >&5
21274echo $ECHO_N "checking whether the previously found C++ compiler works... $ECHO_C" >&6
21275    cat >conftest.$ac_ext <<_ACEOF
21276/* confdefs.h.  */
21277_ACEOF
21278cat confdefs.h >>conftest.$ac_ext
21279cat >>conftest.$ac_ext <<_ACEOF
21280/* end confdefs.h.  */
21281
21282int
21283main ()
21284{
21285class a { int b; }
21286  ;
21287  return 0;
21288}
21289_ACEOF
21290rm -f conftest.$ac_objext
21291if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21292  (eval $ac_compile) 2>conftest.er1
21293  ac_status=$?
21294  grep -v '^ *+' conftest.er1 >conftest.err
21295  rm -f conftest.er1
21296  cat conftest.err >&5
21297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21298  (exit $ac_status); } &&
21299	 { ac_try='test -z "$ac_cxx_werror_flag"
21300			 || test ! -s conftest.err'
21301  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21302  (eval $ac_try) 2>&5
21303  ac_status=$?
21304  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21305  (exit $ac_status); }; } &&
21306	 { ac_try='test -s conftest.$ac_objext'
21307  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21308  (eval $ac_try) 2>&5
21309  ac_status=$?
21310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21311  (exit $ac_status); }; }; then
21312  WITH_CXX=yes
21313else
21314  echo "$as_me: failed program was:" >&5
21315sed 's/^/| /' conftest.$ac_ext >&5
21316
21317WITH_CXX=no
21318fi
21319rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21320    ac_ext=c
21321ac_cpp='$CPP $CPPFLAGS'
21322ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21323ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21324ac_compiler_gnu=$ac_cv_c_compiler_gnu
21325
21326
21327    case $ac_sys_system/$ac_sys_release in
21328	osf1*|OSF1*) STDCPP="";;
21329
21330	*)			;;
21331    esac
21332
21333        if test "x$GCC" != "x"; then
21334	STDCPP="-lstdc++"
21335    fi
21336
21337    if test "$WITH_CXX" = "yes"; then
21338
21339
21340	echo "$as_me:$LINENO: result: yes" >&5
21341echo "${ECHO_T}yes" >&6
21342    else
21343	echo "$as_me:$LINENO: result: no" >&5
21344echo "${ECHO_T}no" >&6
21345    fi
21346fi
21347
21348# ----------------------------------------------------------------
21349#  PDFlib wrapup
21350# ----------------------------------------------------------------
21351
21352
21353
21354WITHPEDANTIC=no
21355# Check whether --enable-pedantic or --disable-pedantic was given.
21356if test "${enable_pedantic+set}" = set; then
21357  enableval="$enable_pedantic"
21358  WITHPEDANTIC=$enableval
21359fi;
21360
21361if test "x$GCC" != "x"; then
21362        PDFWALL="-Wall"
21363    if test "$WITHPEDANTIC" = "yes"; then
21364		PDFCPEDANTIC="-Wmissing-declarations"
21365	PDFPEDANTIC="-Wshadow -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wunused-parameter \$(PDFCPEDANTIC)"
21366    fi
21367fi
21368
21369if test "$WITH_LARGE_FILES" = "yes"; then
21370        case $ac_sys_system in
21371    *OS/390*)
21372	CFLAGS="$CFLAGS -D_LARGE_FILES=1 -D_LARGEFILE_SOURCE" ;;
21373    aix*|AIX*)
21374	CFLAGS="$CFLAGS -D_LARGE_FILES=1 -D_LARGEFILE_SOURCE" ;;
21375    *)
21376	CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" ;;
21377    esac
21378else
21379    if test "$WITHPEDANTIC" = "yes"; then
21380		if test "x$GCC" != "x"; then
21381	  PDFPEDANTIC="$PDFPEDANTIC -ansi -pedantic "
21382	fi
21383    fi
21384fi
21385
21386
21387
21388
21389
21390
21391BINDINGS="c"
21392PLOPBINDINGS="c"
21393TETBINDINGS="c cpp"
21394PCOSBINDINGS="c cpp"
21395
21396WITH_SHARED=yes
21397
21398if ${CONFIG_SHELL-/bin/sh} ./libtool --features | grep "disable shared" >/dev/null; then
21399    WITH_SHARED=no
21400fi
21401
21402if test "$WITH_SHARED" = "no"; then
21403    WITH_JAVA=no
21404    WITH_PERL=no
21405    WITH_PYTHON=no
21406    WITH_RUBY=no
21407    WITH_TCL=no
21408fi
21409
21410if test "$WITH_CXX" = "yes" ; then
21411    BINDINGS="$BINDINGS cpp"
21412fi
21413if test "$WITH_PERL" = "yes" ; then
21414    BINDINGS="$BINDINGS perl"
21415fi
21416if test "$WITH_JAVA" = "yes" ; then
21417    BINDINGS="$BINDINGS java"
21418    PLOPBINDINGS="$PLOPBINDINGS java"
21419    TETBINDINGS="$TETBINDINGS java"
21420    PCOSBINDINGS="$PCOSBINDINGS java"
21421fi
21422
21423if test -f progs/Makefile ; then
21424    PROGSDIR="progs"
21425fi
21426
21427if test -f intern/Makefile ; then
21428    INTERNDIR="intern"
21429fi
21430
21431CFLAGS="$CFLAGS $PLATFORM"
21432
21433PDFLIBCONVENIENT="$PDFLIB_LINK \$(top_builddir)/libs/pdflib/\$(OO)/pdflib\$(LO) $PDCORELIBLINK $PNGLIBLINK $FLATELIBLINK $TIFFLIBLINK $PDILIBLINK $JPEGLIBLINK $PLOPLIB_LINK $FONTLIBLINK $PDPAGELIBLINK $EXPATLIBLINK"
21434
21435if test "$WITH_SHARED" = "no"; then
21436        RPATH=""
21437else
21438        RPATH="-rpath \$(libdir) -version-info \$(LTVERSIONINFO)"
21439
21440fi
21441
21442
21443
21444
21445
21446
21447
21448
21449
21450
21451
21452
21453
21454
21455
21456
21457
21458
21459
21460
21461
21462
21463
21464
21465
21466
21467if test -f pdflib-config.in ; then
21468    GENERATED_FILES="$GENERATED_FILES pdflib-config"
21469fi
21470
21471# for USS XPLINK a special mkcommon.inc is created and then copied over the standard mkcommon.inc
21472if test "$WITH_XPLINK" = "yes" ; then
21473    GENERATED_FILES="$GENERATED_FILES config/mkbind.uss_xplink.inc config/mkcommon.uss_xplink.inc config/mklibs.uss_xplink.inc config/mkmainlib.uss_xplink.inc config/mkprogs.uss_xplink.inc config/mkpsubdirs.inc config/mksubdirs.inc"
21474else
21475  if test "$WITH_UNIVERSAL" = "yes"; then
21476print "UNIVERSAL: create mklibs.inc.mac"
21477    GENERATED_FILES="$GENERATED_FILES config/mkbind.inc.mac config/mkcommon.inc.mac config/mklibs.inc.mac config/mkmainlib.inc.mac config/mkprogs.inc config/mkpsubdirs.inc config/mkprogs.inc.mac config/mksubdirs.inc"
21478  else
21479    GENERATED_FILES="$GENERATED_FILES config/mkbind.inc config/mkcommon.inc config/mklibs.inc config/mkmainlib.inc config/mkprogs.inc config/mkpsubdirs.inc config/mksubdirs.inc"
21480  fi
21481fi
21482
21483if test -d intern/libs/util ; then
21484    GENERATED_FILES="$GENERATED_FILES config/mkats.inc"
21485fi
21486
21487          ac_config_files="$ac_config_files $GENERATED_FILES"
21488          ac_config_commands="$ac_config_commands default"
21489cat >confcache <<\_ACEOF
21490# This file is a shell script that caches the results of configure
21491# tests run on this system so they can be shared between configure
21492# scripts and configure runs, see configure's option --config-cache.
21493# It is not useful on other systems.  If it contains results you don't
21494# want to keep, you may remove or edit it.
21495#
21496# config.status only pays attention to the cache file if you give it
21497# the --recheck option to rerun configure.
21498#
21499# `ac_cv_env_foo' variables (set or unset) will be overridden when
21500# loading this file, other *unset* `ac_cv_foo' will be assigned the
21501# following values.
21502
21503_ACEOF
21504
21505# The following way of writing the cache mishandles newlines in values,
21506# but we know of no workaround that is simple, portable, and efficient.
21507# So, don't put newlines in cache variables' values.
21508# Ultrix sh set writes to stderr and can't be redirected directly,
21509# and sets the high bit in the cache file unless we assign to the vars.
21510{
21511  (set) 2>&1 |
21512    case `(ac_space=' '; set | grep ac_space) 2>&1` in
21513    *ac_space=\ *)
21514      # `set' does not quote correctly, so add quotes (double-quote
21515      # substitution turns \\\\ into \\, and sed turns \\ into \).
21516      sed -n \
21517	"s/'/'\\\\''/g;
21518	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21519      ;;
21520    *)
21521      # `set' quotes correctly as required by POSIX, so do not add quotes.
21522      sed -n \
21523	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21524      ;;
21525    esac;
21526} |
21527  sed '
21528     t clear
21529     : clear
21530     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21531     t end
21532     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21533     : end' >>confcache
21534if diff $cache_file confcache >/dev/null 2>&1; then :; else
21535  if test -w $cache_file; then
21536    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21537    cat confcache >$cache_file
21538  else
21539    echo "not updating unwritable cache $cache_file"
21540  fi
21541fi
21542rm -f confcache
21543
21544test "x$prefix" = xNONE && prefix=$ac_default_prefix
21545# Let make expand exec_prefix.
21546test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21547
21548# VPATH may cause trouble with some makes, so we remove $(srcdir),
21549# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21550# trailing colons and then remove the whole line if VPATH becomes empty
21551# (actually we leave an empty line to preserve line numbers).
21552if test "x$srcdir" = x.; then
21553  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
21554s/:*\$(srcdir):*/:/;
21555s/:*\${srcdir}:*/:/;
21556s/:*@srcdir@:*/:/;
21557s/^\([^=]*=[	 ]*\):*/\1/;
21558s/:*$//;
21559s/^[^=]*=[	 ]*$//;
21560}'
21561fi
21562
21563# Transform confdefs.h into DEFS.
21564# Protect against shell expansion while executing Makefile rules.
21565# Protect against Makefile macro expansion.
21566#
21567# If the first sed substitution is executed (which looks for macros that
21568# take arguments), then we branch to the quote section.  Otherwise,
21569# look for a macro that doesn't take arguments.
21570cat >confdef2opt.sed <<\_ACEOF
21571t clear
21572: clear
21573s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\),-D\1=\2,g
21574t quote
21575s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\),-D\1=\2,g
21576t quote
21577d
21578: quote
21579s,[	 `~#$^&*(){}\\|;'"<>?],\\&,g
21580s,\[,\\&,g
21581s,\],\\&,g
21582s,\$,$$,g
21583p
21584_ACEOF
21585# We use echo to avoid assuming a particular line-breaking character.
21586# The extra dot is to prevent the shell from consuming trailing
21587# line-breaks from the sub-command output.  A line-break within
21588# single-quotes doesn't work because, if this script is created in a
21589# platform that uses two characters for line-breaks (e.g., DOS), tr
21590# would break.
21591ac_LF_and_DOT=`echo; echo .`
21592DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
21593rm -f confdef2opt.sed
21594
21595
21596ac_libobjs=
21597ac_ltlibobjs=
21598for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21599  # 1. Remove the extension, and $U if already installed.
21600  ac_i=`echo "$ac_i" |
21601	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21602  # 2. Add them.
21603  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21604  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21605done
21606LIBOBJS=$ac_libobjs
21607
21608LTLIBOBJS=$ac_ltlibobjs
21609
21610
21611
21612: ${CONFIG_STATUS=./config.status}
21613ac_clean_files_save=$ac_clean_files
21614ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21615{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21616echo "$as_me: creating $CONFIG_STATUS" >&6;}
21617cat >$CONFIG_STATUS <<_ACEOF
21618#! $SHELL
21619# Generated by $as_me.
21620# Run this file to recreate the current configuration.
21621# Compiler output produced by configure, useful for debugging
21622# configure, is in config.log if it exists.
21623
21624debug=false
21625ac_cs_recheck=false
21626ac_cs_silent=false
21627SHELL=\${CONFIG_SHELL-$SHELL}
21628_ACEOF
21629
21630cat >>$CONFIG_STATUS <<\_ACEOF
21631## --------------------- ##
21632## M4sh Initialization.  ##
21633## --------------------- ##
21634
21635# Be Bourne compatible
21636if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21637  emulate sh
21638  NULLCMD=:
21639  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21640  # is contrary to our usage.  Disable this feature.
21641  alias -g '${1+"$@"}'='"$@"'
21642elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21643  set -o posix
21644fi
21645DUALCASE=1; export DUALCASE # for MKS sh
21646
21647# Support unset when possible.
21648if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21649  as_unset=unset
21650else
21651  as_unset=false
21652fi
21653
21654
21655# Work around bugs in pre-3.0 UWIN ksh.
21656$as_unset ENV MAIL MAILPATH
21657PS1='$ '
21658PS2='> '
21659PS4='+ '
21660
21661# NLS nuisances.
21662for as_var in \
21663  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21664  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21665  LC_TELEPHONE LC_TIME
21666do
21667  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21668    eval $as_var=C; export $as_var
21669  else
21670    $as_unset $as_var
21671  fi
21672done
21673
21674# Required to use basename.
21675if expr a : '\(a\)' >/dev/null 2>&1; then
21676  as_expr=expr
21677else
21678  as_expr=false
21679fi
21680
21681if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21682  as_basename=basename
21683else
21684  as_basename=false
21685fi
21686
21687
21688# Name of the executable.
21689as_me=`$as_basename "$0" ||
21690$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21691	 X"$0" : 'X\(//\)$' \| \
21692	 X"$0" : 'X\(/\)$' \| \
21693	 .     : '\(.\)' 2>/dev/null ||
21694echo X/"$0" |
21695    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21696  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
21697  	  /^X\/\(\/\).*/{ s//\1/; q; }
21698  	  s/.*/./; q'`
21699
21700
21701# PATH needs CR, and LINENO needs CR and PATH.
21702# Avoid depending upon Character Ranges.
21703as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21704as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21705as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21706as_cr_digits='0123456789'
21707as_cr_alnum=$as_cr_Letters$as_cr_digits
21708
21709# The user is always right.
21710if test "${PATH_SEPARATOR+set}" != set; then
21711  echo "#! /bin/sh" >conf$$.sh
21712  echo  "exit 0"   >>conf$$.sh
21713  chmod +x conf$$.sh
21714  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21715    PATH_SEPARATOR=';'
21716  else
21717    PATH_SEPARATOR=:
21718  fi
21719  rm -f conf$$.sh
21720fi
21721
21722
21723  as_lineno_1=$LINENO
21724  as_lineno_2=$LINENO
21725  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21726  test "x$as_lineno_1" != "x$as_lineno_2" &&
21727  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
21728  # Find who we are.  Look in the path if we contain no path at all
21729  # relative or not.
21730  case $0 in
21731    *[\\/]* ) as_myself=$0 ;;
21732    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21733for as_dir in $PATH
21734do
21735  IFS=$as_save_IFS
21736  test -z "$as_dir" && as_dir=.
21737  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21738done
21739
21740       ;;
21741  esac
21742  # We did not find ourselves, most probably we were run as `sh COMMAND'
21743  # in which case we are not to be found in the path.
21744  if test "x$as_myself" = x; then
21745    as_myself=$0
21746  fi
21747  if test ! -f "$as_myself"; then
21748    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21749echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21750   { (exit 1); exit 1; }; }
21751  fi
21752  case $CONFIG_SHELL in
21753  '')
21754    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21755for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21756do
21757  IFS=$as_save_IFS
21758  test -z "$as_dir" && as_dir=.
21759  for as_base in sh bash ksh sh5; do
21760	 case $as_dir in
21761	 /*)
21762	   if ("$as_dir/$as_base" -c '
21763  as_lineno_1=$LINENO
21764  as_lineno_2=$LINENO
21765  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21766  test "x$as_lineno_1" != "x$as_lineno_2" &&
21767  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
21768	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21769	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21770	     CONFIG_SHELL=$as_dir/$as_base
21771	     export CONFIG_SHELL
21772	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21773	   fi;;
21774	 esac
21775       done
21776done
21777;;
21778  esac
21779
21780  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21781  # uniformly replaced by the line number.  The first 'sed' inserts a
21782  # line-number line before each line; the second 'sed' does the real
21783  # work.  The second script uses 'N' to pair each line-number line
21784  # with the numbered line, and appends trailing '-' during
21785  # substitution so that $LINENO is not a special case at line end.
21786  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21787  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
21788  sed '=' <$as_myself |
21789    sed '
21790      N
21791      s,$,-,
21792      : loop
21793      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21794      t loop
21795      s,-$,,
21796      s,^['$as_cr_digits']*\n,,
21797    ' >$as_me.lineno &&
21798  chmod +x $as_me.lineno ||
21799    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21800echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21801   { (exit 1); exit 1; }; }
21802
21803  # Don't try to exec as it changes $[0], causing all sort of problems
21804  # (the dirname of $[0] is not the place where we might find the
21805  # original and so on.  Autoconf is especially sensible to this).
21806  . ./$as_me.lineno
21807  # Exit status is that of the last command.
21808  exit
21809}
21810
21811
21812case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21813  *c*,-n*) ECHO_N= ECHO_C='
21814' ECHO_T='	' ;;
21815  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21816  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
21817esac
21818
21819if expr a : '\(a\)' >/dev/null 2>&1; then
21820  as_expr=expr
21821else
21822  as_expr=false
21823fi
21824
21825rm -f conf$$ conf$$.exe conf$$.file
21826echo >conf$$.file
21827if ln -s conf$$.file conf$$ 2>/dev/null; then
21828  # We could just check for DJGPP; but this test a) works b) is more generic
21829  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21830  if test -f conf$$.exe; then
21831    # Don't use ln at all; we don't have any links
21832    as_ln_s='cp -p'
21833  else
21834    as_ln_s='ln -s'
21835  fi
21836elif ln conf$$.file conf$$ 2>/dev/null; then
21837  as_ln_s=ln
21838else
21839  as_ln_s='cp -p'
21840fi
21841rm -f conf$$ conf$$.exe conf$$.file
21842
21843if mkdir -p . 2>/dev/null; then
21844  as_mkdir_p=:
21845else
21846  test -d ./-p && rmdir ./-p
21847  as_mkdir_p=false
21848fi
21849
21850as_executable_p="test -f"
21851
21852# Sed expression to map a string onto a valid CPP name.
21853as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21854
21855# Sed expression to map a string onto a valid variable name.
21856as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21857
21858
21859# IFS
21860# We need space, tab and new line, in precisely that order.
21861as_nl='
21862'
21863IFS=" 	$as_nl"
21864
21865# CDPATH.
21866$as_unset CDPATH
21867
21868exec 6>&1
21869
21870# Open the log real soon, to keep \$[0] and so on meaningful, and to
21871# report actual input values of CONFIG_FILES etc. instead of their
21872# values after options handling.  Logging --version etc. is OK.
21873exec 5>>config.log
21874{
21875  echo
21876  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21877## Running $as_me. ##
21878_ASBOX
21879} >&5
21880cat >&5 <<_CSEOF
21881
21882This file was extended by $as_me, which was
21883generated by GNU Autoconf 2.59.  Invocation command line was
21884
21885  CONFIG_FILES    = $CONFIG_FILES
21886  CONFIG_HEADERS  = $CONFIG_HEADERS
21887  CONFIG_LINKS    = $CONFIG_LINKS
21888  CONFIG_COMMANDS = $CONFIG_COMMANDS
21889  $ $0 $@
21890
21891_CSEOF
21892echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21893echo >&5
21894_ACEOF
21895
21896# Files that config.status was made for.
21897if test -n "$ac_config_files"; then
21898  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21899fi
21900
21901if test -n "$ac_config_headers"; then
21902  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21903fi
21904
21905if test -n "$ac_config_links"; then
21906  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21907fi
21908
21909if test -n "$ac_config_commands"; then
21910  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21911fi
21912
21913cat >>$CONFIG_STATUS <<\_ACEOF
21914
21915ac_cs_usage="\
21916\`$as_me' instantiates files from templates according to the
21917current configuration.
21918
21919Usage: $0 [OPTIONS] [FILE]...
21920
21921  -h, --help       print this help, then exit
21922  -V, --version    print version number, then exit
21923  -q, --quiet      do not print progress messages
21924  -d, --debug      don't remove temporary files
21925      --recheck    update $as_me by reconfiguring in the same conditions
21926  --file=FILE[:TEMPLATE]
21927		   instantiate the configuration file FILE
21928
21929Configuration files:
21930$config_files
21931
21932Configuration commands:
21933$config_commands
21934
21935Report bugs to <bug-autoconf@gnu.org>."
21936_ACEOF
21937
21938cat >>$CONFIG_STATUS <<_ACEOF
21939ac_cs_version="\\
21940config.status
21941configured by $0, generated by GNU Autoconf 2.59,
21942  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21943
21944Copyright (C) 2003 Free Software Foundation, Inc.
21945This config.status script is free software; the Free Software Foundation
21946gives unlimited permission to copy, distribute and modify it."
21947srcdir=$srcdir
21948INSTALL="$INSTALL"
21949_ACEOF
21950
21951cat >>$CONFIG_STATUS <<\_ACEOF
21952# If no file are specified by the user, then we need to provide default
21953# value.  By we need to know if files were specified by the user.
21954ac_need_defaults=:
21955while test $# != 0
21956do
21957  case $1 in
21958  --*=*)
21959    ac_option=`expr "x$1" : 'x\([^=]*\)='`
21960    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21961    ac_shift=:
21962    ;;
21963  -*)
21964    ac_option=$1
21965    ac_optarg=$2
21966    ac_shift=shift
21967    ;;
21968  *) # This is not an option, so the user has probably given explicit
21969     # arguments.
21970     ac_option=$1
21971     ac_need_defaults=false;;
21972  esac
21973
21974  case $ac_option in
21975  # Handling of the options.
21976_ACEOF
21977cat >>$CONFIG_STATUS <<\_ACEOF
21978  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21979    ac_cs_recheck=: ;;
21980  --version | --vers* | -V )
21981    echo "$ac_cs_version"; exit 0 ;;
21982  --he | --h)
21983    # Conflict between --help and --header
21984    { { echo "$as_me:$LINENO: error: ambiguous option: $1
21985Try \`$0 --help' for more information." >&5
21986echo "$as_me: error: ambiguous option: $1
21987Try \`$0 --help' for more information." >&2;}
21988   { (exit 1); exit 1; }; };;
21989  --help | --hel | -h )
21990    echo "$ac_cs_usage"; exit 0 ;;
21991  --debug | --d* | -d )
21992    debug=: ;;
21993  --file | --fil | --fi | --f )
21994    $ac_shift
21995    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21996    ac_need_defaults=false;;
21997  --header | --heade | --head | --hea )
21998    $ac_shift
21999    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22000    ac_need_defaults=false;;
22001  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22002  | -silent | --silent | --silen | --sile | --sil | --si | --s)
22003    ac_cs_silent=: ;;
22004
22005  # This is an error.
22006  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22007Try \`$0 --help' for more information." >&5
22008echo "$as_me: error: unrecognized option: $1
22009Try \`$0 --help' for more information." >&2;}
22010   { (exit 1); exit 1; }; } ;;
22011
22012  *) ac_config_targets="$ac_config_targets $1" ;;
22013
22014  esac
22015  shift
22016done
22017
22018ac_configure_extra_args=
22019
22020if $ac_cs_silent; then
22021  exec 6>/dev/null
22022  ac_configure_extra_args="$ac_configure_extra_args --silent"
22023fi
22024
22025_ACEOF
22026cat >>$CONFIG_STATUS <<_ACEOF
22027if \$ac_cs_recheck; then
22028  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22029  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22030fi
22031
22032_ACEOF
22033
22034
22035
22036
22037
22038cat >>$CONFIG_STATUS <<\_ACEOF
22039for ac_config_target in $ac_config_targets
22040do
22041  case "$ac_config_target" in
22042  # Handling of arguments.
22043  "$GENERATED_FILES" ) CONFIG_FILES="$CONFIG_FILES $GENERATED_FILES" ;;
22044  "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
22045  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22046echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22047   { (exit 1); exit 1; }; };;
22048  esac
22049done
22050
22051# If the user did not use the arguments to specify the items to instantiate,
22052# then the envvar interface is used.  Set only those that are not.
22053# We use the long form for the default assignment because of an extremely
22054# bizarre bug on SunOS 4.1.3.
22055if $ac_need_defaults; then
22056  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22057  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22058fi
22059
22060# Have a temporary directory for convenience.  Make it in the build tree
22061# simply because there is no reason to put it here, and in addition,
22062# creating and moving files from /tmp can sometimes cause problems.
22063# Create a temporary directory, and hook for its removal unless debugging.
22064$debug ||
22065{
22066  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22067  trap '{ (exit 1); exit 1; }' 1 2 13 15
22068}
22069
22070# Create a (secure) tmp directory for tmp files.
22071
22072{
22073  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22074  test -n "$tmp" && test -d "$tmp"
22075}  ||
22076{
22077  tmp=./confstat$$-$RANDOM
22078  (umask 077 && mkdir $tmp)
22079} ||
22080{
22081   echo "$me: cannot create a temporary directory in ." >&2
22082   { (exit 1); exit 1; }
22083}
22084
22085_ACEOF
22086
22087cat >>$CONFIG_STATUS <<_ACEOF
22088
22089#
22090# CONFIG_FILES section.
22091#
22092
22093# No need to generate the scripts if there are no CONFIG_FILES.
22094# This happens for instance when ./config.status config.h
22095if test -n "\$CONFIG_FILES"; then
22096  # Protect against being on the right side of a sed subst in config.status.
22097  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22098   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22099s,@SHELL@,$SHELL,;t t
22100s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22101s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22102s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22103s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22104s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22105s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22106s,@exec_prefix@,$exec_prefix,;t t
22107s,@prefix@,$prefix,;t t
22108s,@program_transform_name@,$program_transform_name,;t t
22109s,@bindir@,$bindir,;t t
22110s,@sbindir@,$sbindir,;t t
22111s,@libexecdir@,$libexecdir,;t t
22112s,@datadir@,$datadir,;t t
22113s,@sysconfdir@,$sysconfdir,;t t
22114s,@sharedstatedir@,$sharedstatedir,;t t
22115s,@localstatedir@,$localstatedir,;t t
22116s,@libdir@,$libdir,;t t
22117s,@includedir@,$includedir,;t t
22118s,@oldincludedir@,$oldincludedir,;t t
22119s,@infodir@,$infodir,;t t
22120s,@mandir@,$mandir,;t t
22121s,@build_alias@,$build_alias,;t t
22122s,@host_alias@,$host_alias,;t t
22123s,@target_alias@,$target_alias,;t t
22124s,@DEFS@,$DEFS,;t t
22125s,@ECHO_C@,$ECHO_C,;t t
22126s,@ECHO_N@,$ECHO_N,;t t
22127s,@ECHO_T@,$ECHO_T,;t t
22128s,@LIBS@,$LIBS,;t t
22129s,@PDFLIB_MAJOR@,$PDFLIB_MAJOR,;t t
22130s,@PDFLIB_MINOR@,$PDFLIB_MINOR,;t t
22131s,@PDFLIB_REVISION@,$PDFLIB_REVISION,;t t
22132s,@PDFLIB_LTVERSION@,$PDFLIB_LTVERSION,;t t
22133s,@PLOP_LTVERSION@,$PLOP_LTVERSION,;t t
22134s,@TET_LTVERSION@,$TET_LTVERSION,;t t
22135s,@PCOS_LTVERSION@,$PCOS_LTVERSION,;t t
22136s,@PDFLIB_LTCURRENT@,$PDFLIB_LTCURRENT,;t t
22137s,@PDFLIB_LTREVISION@,$PDFLIB_LTREVISION,;t t
22138s,@PDFLIB_LTAGE@,$PDFLIB_LTAGE,;t t
22139s,@PDFLIBNAME@,$PDFLIBNAME,;t t
22140s,@build@,$build,;t t
22141s,@build_cpu@,$build_cpu,;t t
22142s,@build_vendor@,$build_vendor,;t t
22143s,@build_os@,$build_os,;t t
22144s,@host@,$host,;t t
22145s,@host_cpu@,$host_cpu,;t t
22146s,@host_vendor@,$host_vendor,;t t
22147s,@host_os@,$host_os,;t t
22148s,@CC@,$CC,;t t
22149s,@CFLAGS@,$CFLAGS,;t t
22150s,@LDFLAGS@,$LDFLAGS,;t t
22151s,@CPPFLAGS@,$CPPFLAGS,;t t
22152s,@ac_ct_CC@,$ac_ct_CC,;t t
22153s,@EXEEXT@,$EXEEXT,;t t
22154s,@OBJEXT@,$OBJEXT,;t t
22155s,@CPP@,$CPP,;t t
22156s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22157s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22158s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22159s,@MAC_CFLAGS@,$MAC_CFLAGS,;t t
22160s,@MAC_LDFLAGS@,$MAC_LDFLAGS,;t t
22161s,@FLATE_ASM_OBJ@,$FLATE_ASM_OBJ,;t t
22162s,@NO_O@,$NO_O,;t t
22163s,@SED@,$SED,;t t
22164s,@EGREP@,$EGREP,;t t
22165s,@LN_S@,$LN_S,;t t
22166s,@ECHO@,$ECHO,;t t
22167s,@AR@,$AR,;t t
22168s,@ac_ct_AR@,$ac_ct_AR,;t t
22169s,@RANLIB@,$RANLIB,;t t
22170s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22171s,@STRIP@,$STRIP,;t t
22172s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22173s,@DLLTOOL@,$DLLTOOL,;t t
22174s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
22175s,@AS@,$AS,;t t
22176s,@ac_ct_AS@,$ac_ct_AS,;t t
22177s,@OBJDUMP@,$OBJDUMP,;t t
22178s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
22179s,@CXX@,$CXX,;t t
22180s,@CXXFLAGS@,$CXXFLAGS,;t t
22181s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22182s,@CXXCPP@,$CXXCPP,;t t
22183s,@F77@,$F77,;t t
22184s,@FFLAGS@,$FFLAGS,;t t
22185s,@ac_ct_F77@,$ac_ct_F77,;t t
22186s,@LIBTOOL@,$LIBTOOL,;t t
22187s,@PLATFORM_ID@,$PLATFORM_ID,;t t
22188s,@VERSION@,$VERSION,;t t
22189s,@RM@,$RM,;t t
22190s,@TIFFWRITE@,$TIFFWRITE,;t t
22191s,@PDFOPTIMIZE@,$PDFOPTIMIZE,;t t
22192s,@JAVAINCLUDE@,$JAVAINCLUDE,;t t
22193s,@PERL@,$PERL,;t t
22194s,@PERLINCLUDE@,$PERLINCLUDE,;t t
22195s,@PERLLIBDIR@,$PERLLIBDIR,;t t
22196s,@PERLBOOLDEF@,$PERLBOOLDEF,;t t
22197s,@PERLLINK@,$PERLLINK,;t t
22198s,@PYINCLUDE@,$PYINCLUDE,;t t
22199s,@PYTHONBIN@,$PYTHONBIN,;t t
22200s,@PYTHONLIBDIR@,$PYTHONLIBDIR,;t t
22201s,@RUBY@,$RUBY,;t t
22202s,@RUBYINCLUDE@,$RUBYINCLUDE,;t t
22203s,@RUBYLIBDIR@,$RUBYLIBDIR,;t t
22204s,@TCL@,$TCL,;t t
22205s,@TCLINCLUDE@,$TCLINCLUDE,;t t
22206s,@TCLPACKAGEDIR@,$TCLPACKAGEDIR,;t t
22207s,@TCLBIN@,$TCLBIN,;t t
22208s,@PDCORELIBINC@,$PDCORELIBINC,;t t
22209s,@PDCORELIBLINK@,$PDCORELIBLINK,;t t
22210s,@FONTLIBLINK@,$FONTLIBLINK,;t t
22211s,@FONTLIBINC@,$FONTLIBINC,;t t
22212s,@FLATELIBLINK@,$FLATELIBLINK,;t t
22213s,@FLATELIBINC@,$FLATELIBINC,;t t
22214s,@PNGLIBINC@,$PNGLIBINC,;t t
22215s,@PNGLIBLINK@,$PNGLIBLINK,;t t
22216s,@TIFFLIBINC@,$TIFFLIBINC,;t t
22217s,@TIFFLIBLINK@,$TIFFLIBLINK,;t t
22218s,@JPEGLIBINC@,$JPEGLIBINC,;t t
22219s,@JPEGLIBLINK@,$JPEGLIBLINK,;t t
22220s,@EXPATLIBINC@,$EXPATLIBINC,;t t
22221s,@EXPATLIBLINK@,$EXPATLIBLINK,;t t
22222s,@OPENSSLLIBINC@,$OPENSSLLIBINC,;t t
22223s,@OPENSSLLIBLINK@,$OPENSSLLIBLINK,;t t
22224s,@ICULIBINC@,$ICULIBINC,;t t
22225s,@ICULIBLINK@,$ICULIBLINK,;t t
22226s,@ICUTLELIBINC@,$ICUTLELIBINC,;t t
22227s,@ICUTLELIBLINK@,$ICUTLELIBLINK,;t t
22228s,@PDILIBINC@,$PDILIBINC,;t t
22229s,@PDILIBLINK@,$PDILIBLINK,;t t
22230s,@PDIMAKEOBJS@,$PDIMAKEOBJS,;t t
22231s,@PLOPLIBINC@,$PLOPLIBINC,;t t
22232s,@PLOPLIBLINK@,$PLOPLIBLINK,;t t
22233s,@PLOPLIB_LINK@,$PLOPLIB_LINK,;t t
22234s,@PDFLIBCONVENIENT@,$PDFLIBCONVENIENT,;t t
22235s,@PDFLIBINC@,$PDFLIBINC,;t t
22236s,@PDFLIBLINK@,$PDFLIBLINK,;t t
22237s,@PDFLIB_LINK@,$PDFLIB_LINK,;t t
22238s,@PCOSLIBINC@,$PCOSLIBINC,;t t
22239s,@PCOSLIBLINK@,$PCOSLIBLINK,;t t
22240s,@PCOSLIB_LINK@,$PCOSLIB_LINK,;t t
22241s,@TETLIBINC@,$TETLIBINC,;t t
22242s,@TETLIBLINK@,$TETLIBLINK,;t t
22243s,@TETLIB_LINK@,$TETLIB_LINK,;t t
22244s,@PDPAGELIBINC@,$PDPAGELIBINC,;t t
22245s,@PDPAGELIBLINK@,$PDPAGELIBLINK,;t t
22246s,@CLLIBINC@,$CLLIBINC,;t t
22247s,@CLLIBLINK@,$CLLIBLINK,;t t
22248s,@UTILLIBINC@,$UTILLIBINC,;t t
22249s,@UTILLIBLINK@,$UTILLIBLINK,;t t
22250s,@ATSLIBINC@,$ATSLIBINC,;t t
22251s,@ATSLIBLINK@,$ATSLIBLINK,;t t
22252s,@STDCPP@,$STDCPP,;t t
22253s,@PDFWALL@,$PDFWALL,;t t
22254s,@PDFCPEDANTIC@,$PDFCPEDANTIC,;t t
22255s,@PDFPEDANTIC@,$PDFPEDANTIC,;t t
22256s,@JAVA_COMPATIBILITY@,$JAVA_COMPATIBILITY,;t t
22257s,@LIBTARGETS@,$LIBTARGETS,;t t
22258s,@BINDTARGETS@,$BINDTARGETS,;t t
22259s,@PROGTARGETS@,$PROGTARGETS,;t t
22260s,@BINDINGS@,$BINDINGS,;t t
22261s,@PLOPBINDINGS@,$PLOPBINDINGS,;t t
22262s,@TETBINDINGS@,$TETBINDINGS,;t t
22263s,@PCOSBINDINGS@,$PCOSBINDINGS,;t t
22264s,@PTFDIR@,$PTFDIR,;t t
22265s,@PROGSDIR@,$PROGSDIR,;t t
22266s,@INTERNDIR@,$INTERNDIR,;t t
22267s,@WITH_PDI@,$WITH_PDI,;t t
22268s,@RPATH@,$RPATH,;t t
22269s,@EXTERNALLIBS@,$EXTERNALLIBS,;t t
22270s,@WITH_SHARED@,$WITH_SHARED,;t t
22271s,@LIBOBJS@,$LIBOBJS,;t t
22272s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22273CEOF
22274
22275_ACEOF
22276
22277  cat >>$CONFIG_STATUS <<\_ACEOF
22278  # Split the substitutions into bite-sized pieces for seds with
22279  # small command number limits, like on Digital OSF/1 and HP-UX.
22280  ac_max_sed_lines=48
22281  ac_sed_frag=1 # Number of current file.
22282  ac_beg=1 # First line for current file.
22283  ac_end=$ac_max_sed_lines # Line after last line for current file.
22284  ac_more_lines=:
22285  ac_sed_cmds=
22286  while $ac_more_lines; do
22287    if test $ac_beg -gt 1; then
22288      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22289    else
22290      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22291    fi
22292    if test ! -s $tmp/subs.frag; then
22293      ac_more_lines=false
22294    else
22295      # The purpose of the label and of the branching condition is to
22296      # speed up the sed processing (if there are no `@' at all, there
22297      # is no need to browse any of the substitutions).
22298      # These are the two extra sed commands mentioned above.
22299      (echo ':t
22300  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22301      if test -z "$ac_sed_cmds"; then
22302	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22303      else
22304	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22305      fi
22306      ac_sed_frag=`expr $ac_sed_frag + 1`
22307      ac_beg=$ac_end
22308      ac_end=`expr $ac_end + $ac_max_sed_lines`
22309    fi
22310  done
22311  if test -z "$ac_sed_cmds"; then
22312    ac_sed_cmds=cat
22313  fi
22314fi # test -n "$CONFIG_FILES"
22315
22316_ACEOF
22317cat >>$CONFIG_STATUS <<\_ACEOF
22318for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22319  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22320  case $ac_file in
22321  - | *:- | *:-:* ) # input from stdin
22322	cat >$tmp/stdin
22323	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22324	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22325  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22326	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22327  * )   ac_file_in=$ac_file.in ;;
22328  esac
22329
22330  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22331  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22332$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22333	 X"$ac_file" : 'X\(//\)[^/]' \| \
22334	 X"$ac_file" : 'X\(//\)$' \| \
22335	 X"$ac_file" : 'X\(/\)' \| \
22336	 .     : '\(.\)' 2>/dev/null ||
22337echo X"$ac_file" |
22338    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22339  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22340  	  /^X\(\/\/\)$/{ s//\1/; q; }
22341  	  /^X\(\/\).*/{ s//\1/; q; }
22342  	  s/.*/./; q'`
22343  { if $as_mkdir_p; then
22344    mkdir -p "$ac_dir"
22345  else
22346    as_dir="$ac_dir"
22347    as_dirs=
22348    while test ! -d "$as_dir"; do
22349      as_dirs="$as_dir $as_dirs"
22350      as_dir=`(dirname "$as_dir") 2>/dev/null ||
22351$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22352	 X"$as_dir" : 'X\(//\)[^/]' \| \
22353	 X"$as_dir" : 'X\(//\)$' \| \
22354	 X"$as_dir" : 'X\(/\)' \| \
22355	 .     : '\(.\)' 2>/dev/null ||
22356echo X"$as_dir" |
22357    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22358  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22359  	  /^X\(\/\/\)$/{ s//\1/; q; }
22360  	  /^X\(\/\).*/{ s//\1/; q; }
22361  	  s/.*/./; q'`
22362    done
22363    test ! -n "$as_dirs" || mkdir $as_dirs
22364  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22365echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22366   { (exit 1); exit 1; }; }; }
22367
22368  ac_builddir=.
22369
22370if test "$ac_dir" != .; then
22371  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22372  # A "../" for each directory in $ac_dir_suffix.
22373  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22374else
22375  ac_dir_suffix= ac_top_builddir=
22376fi
22377
22378case $srcdir in
22379  .)  # No --srcdir option.  We are building in place.
22380    ac_srcdir=.
22381    if test -z "$ac_top_builddir"; then
22382       ac_top_srcdir=.
22383    else
22384       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22385    fi ;;
22386  [\\/]* | ?:[\\/]* )  # Absolute path.
22387    ac_srcdir=$srcdir$ac_dir_suffix;
22388    ac_top_srcdir=$srcdir ;;
22389  *) # Relative path.
22390    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22391    ac_top_srcdir=$ac_top_builddir$srcdir ;;
22392esac
22393
22394# Do not use `cd foo && pwd` to compute absolute paths, because
22395# the directories may not exist.
22396case `pwd` in
22397.) ac_abs_builddir="$ac_dir";;
22398*)
22399  case "$ac_dir" in
22400  .) ac_abs_builddir=`pwd`;;
22401  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22402  *) ac_abs_builddir=`pwd`/"$ac_dir";;
22403  esac;;
22404esac
22405case $ac_abs_builddir in
22406.) ac_abs_top_builddir=${ac_top_builddir}.;;
22407*)
22408  case ${ac_top_builddir}. in
22409  .) ac_abs_top_builddir=$ac_abs_builddir;;
22410  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22411  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22412  esac;;
22413esac
22414case $ac_abs_builddir in
22415.) ac_abs_srcdir=$ac_srcdir;;
22416*)
22417  case $ac_srcdir in
22418  .) ac_abs_srcdir=$ac_abs_builddir;;
22419  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22420  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22421  esac;;
22422esac
22423case $ac_abs_builddir in
22424.) ac_abs_top_srcdir=$ac_top_srcdir;;
22425*)
22426  case $ac_top_srcdir in
22427  .) ac_abs_top_srcdir=$ac_abs_builddir;;
22428  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22429  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22430  esac;;
22431esac
22432
22433
22434  case $INSTALL in
22435  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22436  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22437  esac
22438
22439  if test x"$ac_file" != x-; then
22440    { echo "$as_me:$LINENO: creating $ac_file" >&5
22441echo "$as_me: creating $ac_file" >&6;}
22442    rm -f "$ac_file"
22443  fi
22444  # Let's still pretend it is `configure' which instantiates (i.e., don't
22445  # use $as_me), people would be surprised to read:
22446  #    /* config.h.  Generated by config.status.  */
22447  if test x"$ac_file" = x-; then
22448    configure_input=
22449  else
22450    configure_input="$ac_file.  "
22451  fi
22452  configure_input=$configure_input"Generated from `echo $ac_file_in |
22453				     sed 's,.*/,,'` by configure."
22454
22455  # First look for the input files in the build tree, otherwise in the
22456  # src tree.
22457  ac_file_inputs=`IFS=:
22458    for f in $ac_file_in; do
22459      case $f in
22460      -) echo $tmp/stdin ;;
22461      [\\/$]*)
22462	 # Absolute (can't be DOS-style, as IFS=:)
22463	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22464echo "$as_me: error: cannot find input file: $f" >&2;}
22465   { (exit 1); exit 1; }; }
22466	 echo "$f";;
22467      *) # Relative
22468	 if test -f "$f"; then
22469	   # Build tree
22470	   echo "$f"
22471	 elif test -f "$srcdir/$f"; then
22472	   # Source tree
22473	   echo "$srcdir/$f"
22474	 else
22475	   # /dev/null tree
22476	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22477echo "$as_me: error: cannot find input file: $f" >&2;}
22478   { (exit 1); exit 1; }; }
22479	 fi;;
22480      esac
22481    done` || { (exit 1); exit 1; }
22482_ACEOF
22483cat >>$CONFIG_STATUS <<_ACEOF
22484  sed "$ac_vpsub
22485$extrasub
22486_ACEOF
22487cat >>$CONFIG_STATUS <<\_ACEOF
22488:t
22489/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22490s,@configure_input@,$configure_input,;t t
22491s,@srcdir@,$ac_srcdir,;t t
22492s,@abs_srcdir@,$ac_abs_srcdir,;t t
22493s,@top_srcdir@,$ac_top_srcdir,;t t
22494s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22495s,@builddir@,$ac_builddir,;t t
22496s,@abs_builddir@,$ac_abs_builddir,;t t
22497s,@top_builddir@,$ac_top_builddir,;t t
22498s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22499s,@INSTALL@,$ac_INSTALL,;t t
22500" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22501  rm -f $tmp/stdin
22502  if test x"$ac_file" != x-; then
22503    mv $tmp/out $ac_file
22504  else
22505    cat $tmp/out
22506    rm -f $tmp/out
22507  fi
22508
22509done
22510_ACEOF
22511cat >>$CONFIG_STATUS <<\_ACEOF
22512
22513#
22514# CONFIG_COMMANDS section.
22515#
22516for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22517  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22518  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22519  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22520$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22521	 X"$ac_dest" : 'X\(//\)[^/]' \| \
22522	 X"$ac_dest" : 'X\(//\)$' \| \
22523	 X"$ac_dest" : 'X\(/\)' \| \
22524	 .     : '\(.\)' 2>/dev/null ||
22525echo X"$ac_dest" |
22526    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22527  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22528  	  /^X\(\/\/\)$/{ s//\1/; q; }
22529  	  /^X\(\/\).*/{ s//\1/; q; }
22530  	  s/.*/./; q'`
22531  { if $as_mkdir_p; then
22532    mkdir -p "$ac_dir"
22533  else
22534    as_dir="$ac_dir"
22535    as_dirs=
22536    while test ! -d "$as_dir"; do
22537      as_dirs="$as_dir $as_dirs"
22538      as_dir=`(dirname "$as_dir") 2>/dev/null ||
22539$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22540	 X"$as_dir" : 'X\(//\)[^/]' \| \
22541	 X"$as_dir" : 'X\(//\)$' \| \
22542	 X"$as_dir" : 'X\(/\)' \| \
22543	 .     : '\(.\)' 2>/dev/null ||
22544echo X"$as_dir" |
22545    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22546  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22547  	  /^X\(\/\/\)$/{ s//\1/; q; }
22548  	  /^X\(\/\).*/{ s//\1/; q; }
22549  	  s/.*/./; q'`
22550    done
22551    test ! -n "$as_dirs" || mkdir $as_dirs
22552  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22553echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22554   { (exit 1); exit 1; }; }; }
22555
22556  ac_builddir=.
22557
22558if test "$ac_dir" != .; then
22559  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22560  # A "../" for each directory in $ac_dir_suffix.
22561  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22562else
22563  ac_dir_suffix= ac_top_builddir=
22564fi
22565
22566case $srcdir in
22567  .)  # No --srcdir option.  We are building in place.
22568    ac_srcdir=.
22569    if test -z "$ac_top_builddir"; then
22570       ac_top_srcdir=.
22571    else
22572       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22573    fi ;;
22574  [\\/]* | ?:[\\/]* )  # Absolute path.
22575    ac_srcdir=$srcdir$ac_dir_suffix;
22576    ac_top_srcdir=$srcdir ;;
22577  *) # Relative path.
22578    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22579    ac_top_srcdir=$ac_top_builddir$srcdir ;;
22580esac
22581
22582# Do not use `cd foo && pwd` to compute absolute paths, because
22583# the directories may not exist.
22584case `pwd` in
22585.) ac_abs_builddir="$ac_dir";;
22586*)
22587  case "$ac_dir" in
22588  .) ac_abs_builddir=`pwd`;;
22589  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22590  *) ac_abs_builddir=`pwd`/"$ac_dir";;
22591  esac;;
22592esac
22593case $ac_abs_builddir in
22594.) ac_abs_top_builddir=${ac_top_builddir}.;;
22595*)
22596  case ${ac_top_builddir}. in
22597  .) ac_abs_top_builddir=$ac_abs_builddir;;
22598  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22599  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22600  esac;;
22601esac
22602case $ac_abs_builddir in
22603.) ac_abs_srcdir=$ac_srcdir;;
22604*)
22605  case $ac_srcdir in
22606  .) ac_abs_srcdir=$ac_abs_builddir;;
22607  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22608  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22609  esac;;
22610esac
22611case $ac_abs_builddir in
22612.) ac_abs_top_srcdir=$ac_top_srcdir;;
22613*)
22614  case $ac_top_srcdir in
22615  .) ac_abs_top_srcdir=$ac_abs_builddir;;
22616  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22617  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22618  esac;;
22619esac
22620
22621
22622  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22623echo "$as_me: executing $ac_dest commands" >&6;}
22624  case $ac_dest in
22625    default )
22626    if test -f pdflib-config.in ; then
22627	chmod +x pdflib-config
22628    fi
22629 ;;
22630  esac
22631done
22632_ACEOF
22633
22634cat >>$CONFIG_STATUS <<\_ACEOF
22635
22636{ (exit 0); exit 0; }
22637_ACEOF
22638chmod +x $CONFIG_STATUS
22639ac_clean_files=$ac_clean_files_save
22640
22641
22642# configure is writing to config.log, and then calls config.status.
22643# config.status does its own redirection, appending to config.log.
22644# Unfortunately, on DOS this fails, as config.log is still kept open
22645# by configure, so config.status won't be able to write to it; its
22646# output is simply discarded.  So we exec the FD to /dev/null,
22647# effectively closing config.log, so it can be properly (re)opened and
22648# appended to by config.status.  When coming back to configure, we
22649# need to make the FD available again.
22650if test "$no_create" != yes; then
22651  ac_cs_success=:
22652  ac_config_status_args=
22653  test "$silent" = yes &&
22654    ac_config_status_args="$ac_config_status_args --quiet"
22655  exec 5>/dev/null
22656  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22657  exec 5>>config.log
22658  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22659  # would make configure fail if this is the last instruction.
22660  $ac_cs_success || { (exit 1); exit 1; }
22661fi
22662
22663
22664# for USS XPLINK a special mk*.incs are created and then copied over the
22665# standard pathnames
22666if test "$WITH_XPLINK" = "yes" ; then
22667    mv config/mkcommon.uss_xplink.inc config/mkcommon.inc
22668    mv config/mklibs.uss_xplink.inc config/mklibs.inc
22669    mv config/mkmainlib.uss_xplink.inc config/mkmainlib.inc
22670    mv config/mkprogs.uss_xplink.inc config/mkprogs.inc
22671    mv config/mkbind.uss_xplink.inc config/mkbind.inc
22672fi
22673
22674if test "$WITH_UNIVERSAL" = "yes"; then
22675print "UNIVERSAL: mv mklibs.inc.mac"
22676    mv config/mkcommon.inc.mac config/mkcommon.inc
22677    mv config/mklibs.inc.mac config/mklibs.inc
22678    mv config/mkmainlib.inc.mac config/mkmainlib.inc
22679    mv config/mkbind.inc.mac config/mkbind.inc
22680    mv config/mkprogs.inc.mac config/mkprogs.inc
22681fi
22682
22683if test "$WITH_SHARED" = "no" ; then
22684    { echo "$as_me:$LINENO: WARNING: Can't create shared PDFlib libraries on this platform." >&5
22685echo "$as_me: WARNING: Can't create shared PDFlib libraries on this platform." >&2;}
22686    { echo "$as_me:$LINENO: WARNING: PDFlib will work when linked to a C or C++ program," >&5
22687echo "$as_me: WARNING: PDFlib will work when linked to a C or C++ program," >&2;}
22688    { echo "$as_me:$LINENO: WARNING: but other language bindings will be unavailable." >&5
22689echo "$as_me: WARNING: but other language bindings will be unavailable." >&2;}
22690fi
22691
22692if test "$WITH_PLOP" = "yes" ; then
22693echo "$as_me:$LINENO: result: _____________________________________________________________" >&5
22694echo "${ECHO_T}_____________________________________________________________" >&6
22695echo "$as_me:$LINENO: result: For your convenience, here's a summary of configure's results:" >&5
22696echo "${ECHO_T}For your convenience, here's a summary of configure's results:" >&6
22697echo "$as_me:$LINENO: result: Java language binding for PLOP:       $WITH_JAVA" >&5
22698echo "${ECHO_T}Java language binding for PLOP:       $WITH_JAVA" >&6
22699fi
22700
22701if test "$WITH_TET" = "yes" ; then
22702echo "$as_me:$LINENO: result: _____________________________________________________________" >&5
22703echo "${ECHO_T}_____________________________________________________________" >&6
22704echo "$as_me:$LINENO: result: For your convenience, here's a summary of configure's results:" >&5
22705echo "${ECHO_T}For your convenience, here's a summary of configure's results:" >&6
22706echo "$as_me:$LINENO: result: Java language binding for TET:       $WITH_JAVA" >&5
22707echo "${ECHO_T}Java language binding for TET:       $WITH_JAVA" >&6
22708echo "$as_me:$LINENO: result: Perl language binding for TET:       $WITH_PERL" >&5
22709echo "${ECHO_T}Perl language binding for TET:       $WITH_PERL" >&6
22710fi
22711
22712if test "$WITH_PDFLIB" = "yes" ; then
22713echo "$as_me:$LINENO: result: _____________________________________________________________" >&5
22714echo "${ECHO_T}_____________________________________________________________" >&6
22715echo "$as_me:$LINENO: result: For your convenience, here's a summary of configure's results:" >&5
22716echo "${ECHO_T}For your convenience, here's a summary of configure's results:" >&6
22717echo "$as_me:$LINENO: result: " >&5
22718echo "${ECHO_T}" >&6
22719echo "$as_me:$LINENO: result: Support for shared libraries:           $WITH_SHARED" >&5
22720echo "${ECHO_T}Support for shared libraries:           $WITH_SHARED" >&6
22721echo "$as_me:$LINENO: result: C++ language binding for PDFlib:        $WITH_CXX" >&5
22722echo "${ECHO_T}C++ language binding for PDFlib:        $WITH_CXX" >&6
22723echo "$as_me:$LINENO: result: Java language binding for PDFlib:       $WITH_JAVA" >&5
22724echo "${ECHO_T}Java language binding for PDFlib:       $WITH_JAVA" >&6
22725echo "$as_me:$LINENO: result: Perl language binding for PDFlib:       $WITH_PERL" >&5
22726echo "${ECHO_T}Perl language binding for PDFlib:       $WITH_PERL" >&6
22727echo "$as_me:$LINENO: result: Python language binding for PDFlib:     $WITH_PYTHON" >&5
22728echo "${ECHO_T}Python language binding for PDFlib:     $WITH_PYTHON" >&6
22729echo "$as_me:$LINENO: result: Ruby language binding for PDFlib:       $WITH_RUBY" >&5
22730echo "${ECHO_T}Ruby language binding for PDFlib:       $WITH_RUBY" >&6
22731echo "$as_me:$LINENO: result: Tcl language binding for PDFlib:        $WITH_TCL" >&5
22732echo "${ECHO_T}Tcl language binding for PDFlib:        $WITH_TCL" >&6
22733echo "$as_me:$LINENO: result: PDF import library (PDI):               $WITH_PDI" >&5
22734echo "${ECHO_T}PDF import library (PDI):               $WITH_PDI" >&6
22735echo "$as_me:$LINENO: result: Large file support:                     $WITH_LARGE_FILES" >&5
22736echo "${ECHO_T}Large file support:                     $WITH_LARGE_FILES" >&6
22737if test "$WITH_ICU" = "yes" ; then
22738echo "$as_me:$LINENO: result: ICU Library support:                    $WITH_ICU" >&5
22739echo "${ECHO_T}ICU Library support:                    $WITH_ICU" >&6
22740fi
22741
22742if test "$WITH_PDI" = "no" ; then
22743    echo "$as_me:$LINENO: result:      Note: if you purchase the additional PDF import library (PDI)" >&5
22744echo "${ECHO_T}     Note: if you purchase the additional PDF import library (PDI)" >&6
22745    echo "$as_me:$LINENO: result:      you can also manipulate existing PDF documents with PDFlib." >&5
22746echo "${ECHO_T}     you can also manipulate existing PDF documents with PDFlib." >&6
22747    echo "$as_me:$LINENO: result:      The additional block feature can be used to personalize PDF." >&5
22748echo "${ECHO_T}     The additional block feature can be used to personalize PDF." >&6
22749    echo "$as_me:$LINENO: result:      See http://www.pdflib.com for details." >&5
22750echo "${ECHO_T}     See http://www.pdflib.com for details." >&6
22751fi
22752fi
22753
22754echo "$as_me:$LINENO: result: " >&5
22755echo "${ECHO_T}" >&6
22756echo "$as_me:$LINENO: result: Please observe the licensing terms for commercial PDFlib usage." >&5
22757echo "${ECHO_T}Please observe the licensing terms for commercial PDFlib usage." >&6
22758echo "$as_me:$LINENO: result: PDFlib license agreement and purchase order can be found in the doc directory." >&5
22759echo "${ECHO_T}PDFlib license agreement and purchase order can be found in the doc directory." >&6
22760echo "$as_me:$LINENO: result: " >&5
22761echo "${ECHO_T}" >&6
22762