1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by Autoconf 2.52.
4#
5# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6# Free Software Foundation, Inc.
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9
10# Find the correct PATH separator.  Usually this is `:', but
11# DJGPP uses `;' like DOS.
12if test "X${PATH_SEPARATOR+set}" != Xset; then
13  UNAME=${UNAME-`uname 2>/dev/null`}
14  case X$UNAME in
15    *-DOS) PATH_SEPARATOR=';' ;;
16    *)     PATH_SEPARATOR=':' ;;
17  esac
18fi
19
20# Check that we are running under the correct shell.
21SHELL=${CONFIG_SHELL-/bin/sh}
22
23case X$ECHO in
24X*--fallback-echo)
25  # Remove one level of quotation (which was required for Make).
26  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
27  ;;
28esac
29
30echo=${ECHO-echo}
31if test "X$1" = X--no-reexec; then
32  # Discard the --no-reexec flag, and continue.
33  shift
34elif test "X$1" = X--fallback-echo; then
35  # Avoid inline document here, it may be left over
36  :
37elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
38  # Yippee, $echo works!
39  :
40else
41  # Restart under the correct shell.
42  exec $SHELL "$0" --no-reexec ${1+"$@"}
43fi
44
45if test "X$1" = X--fallback-echo; then
46  # used as fallback echo
47  shift
48  cat <<EOF
49$*
50EOF
51  exit 0
52fi
53
54# The HP-UX ksh and POSIX shell print the target directory to stdout
55# if CDPATH is set.
56if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
57
58if test -z "$ECHO"; then
59if test "X${echo_test_string+set}" != Xset; then
60# find a string as large as possible, as long as the shell can cope with it
61  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
62    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
63    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
64       echo_test_string="`eval $cmd`" &&
65       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
66    then
67      break
68    fi
69  done
70fi
71
72if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
73   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
74   test "X$echo_testing_string" = "X$echo_test_string"; then
75  :
76else
77  # The Solaris, AIX, and Digital Unix default echo programs unquote
78  # backslashes.  This makes it impossible to quote backslashes using
79  #   echo "$something" | sed 's/\\/\\\\/g'
80  #
81  # So, first we look for a working echo in the user's PATH.
82
83  IFS="${IFS= 	}"; lt_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
84  for dir in $PATH /usr/ucb; do
85    IFS="$lt_save_ifs"
86    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
87       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
88       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
89       test "X$echo_testing_string" = "X$echo_test_string"; then
90      echo="$dir/echo"
91      break
92    fi
93  done
94  IFS="$lt_save_ifs"
95
96  if test "X$echo" = Xecho; then
97    # We didn't find a better echo, so look for alternatives.
98    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
99       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
100       test "X$echo_testing_string" = "X$echo_test_string"; then
101      # This shell has a builtin print -r that does the trick.
102      echo='print -r'
103    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
104	 test "X$CONFIG_SHELL" != X/bin/ksh; then
105      # If we have ksh, try running configure again with it.
106      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
107      export ORIGINAL_CONFIG_SHELL
108      CONFIG_SHELL=/bin/ksh
109      export CONFIG_SHELL
110      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
111    else
112      # Try using printf.
113      echo='printf %s\n'
114      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
115	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
116	 test "X$echo_testing_string" = "X$echo_test_string"; then
117	# Cool, printf works
118	:
119      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
120	   test "X$echo_testing_string" = 'X\t' &&
121	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
122	   test "X$echo_testing_string" = "X$echo_test_string"; then
123	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
124	export CONFIG_SHELL
125	SHELL="$CONFIG_SHELL"
126	export SHELL
127	echo="$CONFIG_SHELL $0 --fallback-echo"
128      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
129	   test "X$echo_testing_string" = 'X\t' &&
130	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
131	   test "X$echo_testing_string" = "X$echo_test_string"; then
132	echo="$CONFIG_SHELL $0 --fallback-echo"
133      else
134	# maybe with a smaller string...
135	prev=:
136
137	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
138	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
139	  then
140	    break
141	  fi
142	  prev="$cmd"
143	done
144
145	if test "$prev" != 'sed 50q "$0"'; then
146	  echo_test_string=`eval $prev`
147	  export echo_test_string
148	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
149	else
150	  # Oops.  We lost completely, so just stick with echo.
151	  echo=echo
152	fi
153      fi
154    fi
155  fi
156fi
157fi
158
159# Copy echo and quote the copy suitably for passing to libtool from
160# the Makefile, instead of quoting the original, which is used later.
161ECHO=$echo
162if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
163   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
164fi
165
166# Avoid depending upon Character Ranges.
167as_cr_letters='abcdefghijklmnopqrstuvwxyz'
168as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
169as_cr_Letters=$as_cr_letters$as_cr_LETTERS
170as_cr_digits='0123456789'
171as_cr_alnum=$as_cr_Letters$as_cr_digits
172
173# Sed expression to map a string onto a valid variable name.
174as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
175
176# Sed expression to map a string onto a valid CPP name.
177as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
178
179# Be Bourne compatible
180if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
181  emulate sh
182  NULLCMD=:
183elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
184  set -o posix
185fi
186
187# Name of the executable.
188as_me=`echo "$0" |sed 's,.*[\\/],,'`
189
190if expr a : '\(a\)' >/dev/null 2>&1; then
191  as_expr=expr
192else
193  as_expr=false
194fi
195
196rm -f conf$$ conf$$.exe conf$$.file
197echo >conf$$.file
198if ln -s conf$$.file conf$$ 2>/dev/null; then
199  # We could just check for DJGPP; but this test a) works b) is more generic
200  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
201  if test -f conf$$.exe; then
202    # Don't use ln at all; we don't have any links
203    as_ln_s='cp -p'
204  else
205    as_ln_s='ln -s'
206  fi
207elif ln conf$$.file conf$$ 2>/dev/null; then
208  as_ln_s=ln
209else
210  as_ln_s='cp -p'
211fi
212rm -f conf$$ conf$$.exe conf$$.file
213
214as_executable_p="test -f"
215
216# Support unset when possible.
217if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
218  as_unset=unset
219else
220  as_unset=false
221fi
222
223# NLS nuisances.
224$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
225$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
226$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
227$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
228$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
229$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
230$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
231$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
232
233# IFS
234# We need space, tab and new line, in precisely that order.
235as_nl='
236'
237IFS=" 	$as_nl"
238
239# CDPATH.
240$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
241
242# Name of the host.
243# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
244# so uname gets run too.
245ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
246
247exec 6>&1
248
249#
250# Initializations.
251#
252ac_default_prefix=/usr/local
253cross_compiling=no
254subdirs=
255MFLAGS= MAKEFLAGS=
256SHELL=${CONFIG_SHELL-/bin/sh}
257
258# Maximum number of lines to put in a shell here document.
259# This variable seems obsolete.  It should probably be removed, and
260# only ac_max_sed_lines should be used.
261: ${ac_max_here_lines=38}
262
263ac_unique_file="src/tetradraw.h"
264
265# Initialize some variables set by options.
266ac_init_help=
267ac_init_version=false
268# The variables have the same names as the options, with
269# dashes changed to underlines.
270cache_file=/dev/null
271exec_prefix=NONE
272no_create=
273no_recursion=
274prefix=NONE
275program_prefix=NONE
276program_suffix=NONE
277program_transform_name=s,x,x,
278silent=
279site=
280srcdir=
281verbose=
282x_includes=NONE
283x_libraries=NONE
284
285# Installation directory options.
286# These are left unexpanded so users can "make install exec_prefix=/foo"
287# and all the variables that are supposed to be based on exec_prefix
288# by default will actually change.
289# Use braces instead of parens because sh, perl, etc. also accept them.
290bindir='${exec_prefix}/bin'
291sbindir='${exec_prefix}/sbin'
292libexecdir='${exec_prefix}/libexec'
293datadir='${prefix}/share'
294sysconfdir='${prefix}/etc'
295sharedstatedir='${prefix}/com'
296localstatedir='${prefix}/var'
297libdir='${exec_prefix}/lib'
298includedir='${prefix}/include'
299oldincludedir='/usr/include'
300infodir='${prefix}/info'
301mandir='${prefix}/man'
302
303# Identity of this package.
304PACKAGE_NAME=
305PACKAGE_TARNAME=
306PACKAGE_VERSION=
307PACKAGE_STRING=
308PACKAGE_BUGREPORT=
309
310ac_prev=
311for ac_option
312do
313  # If the previous option needs an argument, assign it.
314  if test -n "$ac_prev"; then
315    eval "$ac_prev=\$ac_option"
316    ac_prev=
317    continue
318  fi
319
320  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
321
322  # Accept the important Cygnus configure options, so we can diagnose typos.
323
324  case $ac_option in
325
326  -bindir | --bindir | --bindi | --bind | --bin | --bi)
327    ac_prev=bindir ;;
328  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
329    bindir=$ac_optarg ;;
330
331  -build | --build | --buil | --bui | --bu)
332    ac_prev=build_alias ;;
333  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
334    build_alias=$ac_optarg ;;
335
336  -cache-file | --cache-file | --cache-fil | --cache-fi \
337  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
338    ac_prev=cache_file ;;
339  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
340  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
341    cache_file=$ac_optarg ;;
342
343  --config-cache | -C)
344    cache_file=config.cache ;;
345
346  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
347    ac_prev=datadir ;;
348  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
349  | --da=*)
350    datadir=$ac_optarg ;;
351
352  -disable-* | --disable-*)
353    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
354    # Reject names that are not valid shell variable names.
355    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
356      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
357   { (exit 1); exit 1; }; }
358    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
359    eval "enable_$ac_feature=no" ;;
360
361  -enable-* | --enable-*)
362    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
363    # Reject names that are not valid shell variable names.
364    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
365      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
366   { (exit 1); exit 1; }; }
367    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
368    case $ac_option in
369      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
370      *) ac_optarg=yes ;;
371    esac
372    eval "enable_$ac_feature='$ac_optarg'" ;;
373
374  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
375  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
376  | --exec | --exe | --ex)
377    ac_prev=exec_prefix ;;
378  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
379  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
380  | --exec=* | --exe=* | --ex=*)
381    exec_prefix=$ac_optarg ;;
382
383  -gas | --gas | --ga | --g)
384    # Obsolete; use --with-gas.
385    with_gas=yes ;;
386
387  -help | --help | --hel | --he | -h)
388    ac_init_help=long ;;
389  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
390    ac_init_help=recursive ;;
391  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
392    ac_init_help=short ;;
393
394  -host | --host | --hos | --ho)
395    ac_prev=host_alias ;;
396  -host=* | --host=* | --hos=* | --ho=*)
397    host_alias=$ac_optarg ;;
398
399  -includedir | --includedir | --includedi | --included | --include \
400  | --includ | --inclu | --incl | --inc)
401    ac_prev=includedir ;;
402  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
403  | --includ=* | --inclu=* | --incl=* | --inc=*)
404    includedir=$ac_optarg ;;
405
406  -infodir | --infodir | --infodi | --infod | --info | --inf)
407    ac_prev=infodir ;;
408  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
409    infodir=$ac_optarg ;;
410
411  -libdir | --libdir | --libdi | --libd)
412    ac_prev=libdir ;;
413  -libdir=* | --libdir=* | --libdi=* | --libd=*)
414    libdir=$ac_optarg ;;
415
416  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
417  | --libexe | --libex | --libe)
418    ac_prev=libexecdir ;;
419  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
420  | --libexe=* | --libex=* | --libe=*)
421    libexecdir=$ac_optarg ;;
422
423  -localstatedir | --localstatedir | --localstatedi | --localstated \
424  | --localstate | --localstat | --localsta | --localst \
425  | --locals | --local | --loca | --loc | --lo)
426    ac_prev=localstatedir ;;
427  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
428  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
429  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
430    localstatedir=$ac_optarg ;;
431
432  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
433    ac_prev=mandir ;;
434  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
435    mandir=$ac_optarg ;;
436
437  -nfp | --nfp | --nf)
438    # Obsolete; use --without-fp.
439    with_fp=no ;;
440
441  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
442  | --no-cr | --no-c)
443    no_create=yes ;;
444
445  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
446  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
447    no_recursion=yes ;;
448
449  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
450  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
451  | --oldin | --oldi | --old | --ol | --o)
452    ac_prev=oldincludedir ;;
453  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
454  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
455  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
456    oldincludedir=$ac_optarg ;;
457
458  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
459    ac_prev=prefix ;;
460  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
461    prefix=$ac_optarg ;;
462
463  -program-prefix | --program-prefix | --program-prefi | --program-pref \
464  | --program-pre | --program-pr | --program-p)
465    ac_prev=program_prefix ;;
466  -program-prefix=* | --program-prefix=* | --program-prefi=* \
467  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
468    program_prefix=$ac_optarg ;;
469
470  -program-suffix | --program-suffix | --program-suffi | --program-suff \
471  | --program-suf | --program-su | --program-s)
472    ac_prev=program_suffix ;;
473  -program-suffix=* | --program-suffix=* | --program-suffi=* \
474  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
475    program_suffix=$ac_optarg ;;
476
477  -program-transform-name | --program-transform-name \
478  | --program-transform-nam | --program-transform-na \
479  | --program-transform-n | --program-transform- \
480  | --program-transform | --program-transfor \
481  | --program-transfo | --program-transf \
482  | --program-trans | --program-tran \
483  | --progr-tra | --program-tr | --program-t)
484    ac_prev=program_transform_name ;;
485  -program-transform-name=* | --program-transform-name=* \
486  | --program-transform-nam=* | --program-transform-na=* \
487  | --program-transform-n=* | --program-transform-=* \
488  | --program-transform=* | --program-transfor=* \
489  | --program-transfo=* | --program-transf=* \
490  | --program-trans=* | --program-tran=* \
491  | --progr-tra=* | --program-tr=* | --program-t=*)
492    program_transform_name=$ac_optarg ;;
493
494  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
495  | -silent | --silent | --silen | --sile | --sil)
496    silent=yes ;;
497
498  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
499    ac_prev=sbindir ;;
500  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
501  | --sbi=* | --sb=*)
502    sbindir=$ac_optarg ;;
503
504  -sharedstatedir | --sharedstatedir | --sharedstatedi \
505  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
506  | --sharedst | --shareds | --shared | --share | --shar \
507  | --sha | --sh)
508    ac_prev=sharedstatedir ;;
509  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
510  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
511  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
512  | --sha=* | --sh=*)
513    sharedstatedir=$ac_optarg ;;
514
515  -site | --site | --sit)
516    ac_prev=site ;;
517  -site=* | --site=* | --sit=*)
518    site=$ac_optarg ;;
519
520  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
521    ac_prev=srcdir ;;
522  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
523    srcdir=$ac_optarg ;;
524
525  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
526  | --syscon | --sysco | --sysc | --sys | --sy)
527    ac_prev=sysconfdir ;;
528  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
529  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
530    sysconfdir=$ac_optarg ;;
531
532  -target | --target | --targe | --targ | --tar | --ta | --t)
533    ac_prev=target_alias ;;
534  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
535    target_alias=$ac_optarg ;;
536
537  -v | -verbose | --verbose | --verbos | --verbo | --verb)
538    verbose=yes ;;
539
540  -version | --version | --versio | --versi | --vers | -V)
541    ac_init_version=: ;;
542
543  -with-* | --with-*)
544    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
545    # Reject names that are not valid shell variable names.
546    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
547      { echo "$as_me: error: invalid package name: $ac_package" >&2
548   { (exit 1); exit 1; }; }
549    ac_package=`echo $ac_package| sed 's/-/_/g'`
550    case $ac_option in
551      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
552      *) ac_optarg=yes ;;
553    esac
554    eval "with_$ac_package='$ac_optarg'" ;;
555
556  -without-* | --without-*)
557    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
558    # Reject names that are not valid shell variable names.
559    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
560      { echo "$as_me: error: invalid package name: $ac_package" >&2
561   { (exit 1); exit 1; }; }
562    ac_package=`echo $ac_package | sed 's/-/_/g'`
563    eval "with_$ac_package=no" ;;
564
565  --x)
566    # Obsolete; use --with-x.
567    with_x=yes ;;
568
569  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
570  | --x-incl | --x-inc | --x-in | --x-i)
571    ac_prev=x_includes ;;
572  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
573  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
574    x_includes=$ac_optarg ;;
575
576  -x-libraries | --x-libraries | --x-librarie | --x-librari \
577  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
578    ac_prev=x_libraries ;;
579  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
580  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
581    x_libraries=$ac_optarg ;;
582
583  -*) { echo "$as_me: error: unrecognized option: $ac_option
584Try \`$0 --help' for more information." >&2
585   { (exit 1); exit 1; }; }
586    ;;
587
588  *=*)
589    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
590    # Reject names that are not valid shell variable names.
591    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
592      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
593   { (exit 1); exit 1; }; }
594    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
595    eval "$ac_envvar='$ac_optarg'"
596    export $ac_envvar ;;
597
598  *)
599    # FIXME: should be removed in autoconf 3.0.
600    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
601    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
602      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
603    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
604    ;;
605
606  esac
607done
608
609if test -n "$ac_prev"; then
610  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
611  { echo "$as_me: error: missing argument to $ac_option" >&2
612   { (exit 1); exit 1; }; }
613fi
614
615# Be sure to have absolute paths.
616for ac_var in exec_prefix prefix
617do
618  eval ac_val=$`echo $ac_var`
619  case $ac_val in
620    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
621    *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
622   { (exit 1); exit 1; }; };;
623  esac
624done
625
626# Be sure to have absolute paths.
627for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
628              localstatedir libdir includedir oldincludedir infodir mandir
629do
630  eval ac_val=$`echo $ac_var`
631  case $ac_val in
632    [\\/$]* | ?:[\\/]* ) ;;
633    *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
634   { (exit 1); exit 1; }; };;
635  esac
636done
637
638# There might be people who depend on the old broken behavior: `$host'
639# used to hold the argument of --host etc.
640build=$build_alias
641host=$host_alias
642target=$target_alias
643
644# FIXME: should be removed in autoconf 3.0.
645if test "x$host_alias" != x; then
646  if test "x$build_alias" = x; then
647    cross_compiling=maybe
648    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
649    If a cross compiler is detected then cross compile mode will be used." >&2
650  elif test "x$build_alias" != "x$host_alias"; then
651    cross_compiling=yes
652  fi
653fi
654
655ac_tool_prefix=
656test -n "$host_alias" && ac_tool_prefix=$host_alias-
657
658test "$silent" = yes && exec 6>/dev/null
659
660# Find the source files, if location was not specified.
661if test -z "$srcdir"; then
662  ac_srcdir_defaulted=yes
663  # Try the directory containing this script, then its parent.
664  ac_prog=$0
665  ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
666  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
667  srcdir=$ac_confdir
668  if test ! -r $srcdir/$ac_unique_file; then
669    srcdir=..
670  fi
671else
672  ac_srcdir_defaulted=no
673fi
674if test ! -r $srcdir/$ac_unique_file; then
675  if test "$ac_srcdir_defaulted" = yes; then
676    { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
677   { (exit 1); exit 1; }; }
678  else
679    { echo "$as_me: error: cannot find sources in $srcdir" >&2
680   { (exit 1); exit 1; }; }
681  fi
682fi
683srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
684ac_env_build_alias_set=${build_alias+set}
685ac_env_build_alias_value=$build_alias
686ac_cv_env_build_alias_set=${build_alias+set}
687ac_cv_env_build_alias_value=$build_alias
688ac_env_host_alias_set=${host_alias+set}
689ac_env_host_alias_value=$host_alias
690ac_cv_env_host_alias_set=${host_alias+set}
691ac_cv_env_host_alias_value=$host_alias
692ac_env_target_alias_set=${target_alias+set}
693ac_env_target_alias_value=$target_alias
694ac_cv_env_target_alias_set=${target_alias+set}
695ac_cv_env_target_alias_value=$target_alias
696ac_env_CC_set=${CC+set}
697ac_env_CC_value=$CC
698ac_cv_env_CC_set=${CC+set}
699ac_cv_env_CC_value=$CC
700ac_env_CFLAGS_set=${CFLAGS+set}
701ac_env_CFLAGS_value=$CFLAGS
702ac_cv_env_CFLAGS_set=${CFLAGS+set}
703ac_cv_env_CFLAGS_value=$CFLAGS
704ac_env_LDFLAGS_set=${LDFLAGS+set}
705ac_env_LDFLAGS_value=$LDFLAGS
706ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
707ac_cv_env_LDFLAGS_value=$LDFLAGS
708ac_env_CPPFLAGS_set=${CPPFLAGS+set}
709ac_env_CPPFLAGS_value=$CPPFLAGS
710ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
711ac_cv_env_CPPFLAGS_value=$CPPFLAGS
712ac_env_CPP_set=${CPP+set}
713ac_env_CPP_value=$CPP
714ac_cv_env_CPP_set=${CPP+set}
715ac_cv_env_CPP_value=$CPP
716ac_env_CXX_set=${CXX+set}
717ac_env_CXX_value=$CXX
718ac_cv_env_CXX_set=${CXX+set}
719ac_cv_env_CXX_value=$CXX
720ac_env_CXXFLAGS_set=${CXXFLAGS+set}
721ac_env_CXXFLAGS_value=$CXXFLAGS
722ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
723ac_cv_env_CXXFLAGS_value=$CXXFLAGS
724ac_env_CXXCPP_set=${CXXCPP+set}
725ac_env_CXXCPP_value=$CXXCPP
726ac_cv_env_CXXCPP_set=${CXXCPP+set}
727ac_cv_env_CXXCPP_value=$CXXCPP
728
729#
730# Report the --help message.
731#
732if test "$ac_init_help" = "long"; then
733  # Omit some internal or obsolete options to make the list less imposing.
734  # This message is too long to be a string in the A/UX 3.1 sh.
735  cat <<EOF
736\`configure' configures this package to adapt to many kinds of systems.
737
738Usage: $0 [OPTION]... [VAR=VALUE]...
739
740To assign environment variables (e.g., CC, CFLAGS...), specify them as
741VAR=VALUE.  See below for descriptions of some of the useful variables.
742
743Defaults for the options are specified in brackets.
744
745Configuration:
746  -h, --help              display this help and exit
747      --help=short        display options specific to this package
748      --help=recursive    display the short help of all the included packages
749  -V, --version           display version information and exit
750  -q, --quiet, --silent   do not print \`checking...' messages
751      --cache-file=FILE   cache test results in FILE [disabled]
752  -C, --config-cache      alias for \`--cache-file=config.cache'
753  -n, --no-create         do not create output files
754      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
755
756EOF
757
758  cat <<EOF
759Installation directories:
760  --prefix=PREFIX         install architecture-independent files in PREFIX
761                          [$ac_default_prefix]
762  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
763                          [PREFIX]
764
765By default, \`make install' will install all the files in
766\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
767an installation prefix other than \`$ac_default_prefix' using \`--prefix',
768for instance \`--prefix=\$HOME'.
769
770For better control, use the options below.
771
772Fine tuning of the installation directories:
773  --bindir=DIR           user executables [EPREFIX/bin]
774  --sbindir=DIR          system admin executables [EPREFIX/sbin]
775  --libexecdir=DIR       program executables [EPREFIX/libexec]
776  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
777  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
778  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
779  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
780  --libdir=DIR           object code libraries [EPREFIX/lib]
781  --includedir=DIR       C header files [PREFIX/include]
782  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
783  --infodir=DIR          info documentation [PREFIX/info]
784  --mandir=DIR           man documentation [PREFIX/man]
785EOF
786
787  cat <<\EOF
788
789Program names:
790  --program-prefix=PREFIX            prepend PREFIX to installed program names
791  --program-suffix=SUFFIX            append SUFFIX to installed program names
792  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
793
794System types:
795  --build=BUILD     configure for building on BUILD [guessed]
796  --host=HOST       build programs to run on HOST [BUILD]
797  --target=TARGET   configure for building compilers for TARGET [HOST]
798EOF
799fi
800
801if test -n "$ac_init_help"; then
802
803  cat <<\EOF
804
805Optional Features:
806  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
807  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
808  --enable-shared[=PKGS]
809                          build shared libraries [default=yes]
810  --enable-static[=PKGS]
811                          build static libraries [default=yes]
812  --enable-fast-install[=PKGS]
813                          optimize for fast installation [default=yes]
814  --disable-libtool-lock  avoid locking (might break parallel builds)
815
816Optional Packages:
817  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
818  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
819  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
820  --with-pic              try to use only PIC/non-PIC objects [default=use
821                          both]
822  --with-tags=TAGS        include additional configurations [CXX,GCJ]
823
824Some influential environment variables:
825  CC          C compiler command
826  CFLAGS      C compiler flags
827  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
828              nonstandard directory <lib dir>
829  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
830              headers in a nonstandard directory <include dir>
831  CPP         C preprocessor
832  CXX         C++ compiler command
833  CXXFLAGS    C++ compiler flags
834  CXXCPP      C++ preprocessor
835
836Use these variables to override the choices made by `configure' or to help
837it to find libraries and programs with nonstandard names/locations.
838
839EOF
840fi
841
842if test "$ac_init_help" = "recursive"; then
843  # If there are subdirs, report their specific --help.
844  ac_popdir=`pwd`
845  for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
846    cd $ac_subdir
847    # A "../" for each directory in /$ac_subdir.
848    ac_dots=`echo $ac_subdir |
849             sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
850
851    case $srcdir in
852    .) # No --srcdir option.  We are building in place.
853      ac_sub_srcdir=$srcdir ;;
854    [\\/]* | ?:[\\/]* ) # Absolute path.
855      ac_sub_srcdir=$srcdir/$ac_subdir ;;
856    *) # Relative path.
857      ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
858    esac
859
860    # Check for guested configure; otherwise get Cygnus style configure.
861    if test -f $ac_sub_srcdir/configure.gnu; then
862      echo
863      $SHELL $ac_sub_srcdir/configure.gnu  --help=recursive
864    elif test -f $ac_sub_srcdir/configure; then
865      echo
866      $SHELL $ac_sub_srcdir/configure  --help=recursive
867    elif test -f $ac_sub_srcdir/configure.ac ||
868           test -f $ac_sub_srcdir/configure.in; then
869      echo
870      $ac_configure --help
871    else
872      echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
873    fi
874    cd $ac_popdir
875  done
876fi
877
878test -n "$ac_init_help" && exit 0
879if $ac_init_version; then
880  cat <<\EOF
881
882Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
883Free Software Foundation, Inc.
884This configure script is free software; the Free Software Foundation
885gives unlimited permission to copy, distribute and modify it.
886EOF
887  exit 0
888fi
889exec 5>config.log
890cat >&5 <<EOF
891This file contains any messages produced by compilers while
892running configure, to aid debugging if configure makes a mistake.
893
894It was created by $as_me, which was
895generated by GNU Autoconf 2.52.  Invocation command line was
896
897  $ $0 $@
898
899EOF
900{
901cat <<_ASUNAME
902## ---------- ##
903## Platform.  ##
904## ---------- ##
905
906hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
907uname -m = `(uname -m) 2>/dev/null || echo unknown`
908uname -r = `(uname -r) 2>/dev/null || echo unknown`
909uname -s = `(uname -s) 2>/dev/null || echo unknown`
910uname -v = `(uname -v) 2>/dev/null || echo unknown`
911
912/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
913/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
914
915/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
916/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
917/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
918hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
919/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
920/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
921/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
922
923PATH = $PATH
924
925_ASUNAME
926} >&5
927
928cat >&5 <<EOF
929## ------------ ##
930## Core tests.  ##
931## ------------ ##
932
933EOF
934
935# Keep a trace of the command line.
936# Strip out --no-create and --no-recursion so they do not pile up.
937# Also quote any args containing shell meta-characters.
938ac_configure_args=
939ac_sep=
940for ac_arg
941do
942  case $ac_arg in
943  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
944  | --no-cr | --no-c) ;;
945  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
946  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
947  *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
948    ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
949    ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
950    ac_sep=" " ;;
951  *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
952     ac_sep=" " ;;
953  esac
954  # Get rid of the leading space.
955done
956
957# When interrupted or exit'd, cleanup temporary files, and complete
958# config.log.  We remove comments because anyway the quotes in there
959# would cause problems or look ugly.
960trap 'exit_status=$?
961  # Save into config.log some information that might help in debugging.
962  echo >&5
963  echo "## ----------------- ##" >&5
964  echo "## Cache variables.  ##" >&5
965  echo "## ----------------- ##" >&5
966  echo >&5
967  # The following way of writing the cache mishandles newlines in values,
968{
969  (set) 2>&1 |
970    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
971    *ac_space=\ *)
972      sed -n \
973        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
974    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
975      ;;
976    *)
977      sed -n \
978        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
979      ;;
980    esac;
981} >&5
982  sed "/^$/d" confdefs.h >conftest.log
983  if test -s conftest.log; then
984    echo >&5
985    echo "## ------------ ##" >&5
986    echo "## confdefs.h.  ##" >&5
987    echo "## ------------ ##" >&5
988    echo >&5
989    cat conftest.log >&5
990  fi
991  (echo; echo) >&5
992  test "$ac_signal" != 0 &&
993    echo "$as_me: caught signal $ac_signal" >&5
994  echo "$as_me: exit $exit_status" >&5
995  rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
996    exit $exit_status
997     ' 0
998for ac_signal in 1 2 13 15; do
999  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1000done
1001ac_signal=0
1002
1003# confdefs.h avoids OS command line length limits that DEFS can exceed.
1004rm -rf conftest* confdefs.h
1005# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1006echo >confdefs.h
1007
1008# Let the site file select an alternate cache file if it wants to.
1009# Prefer explicitly selected file to automatically selected ones.
1010if test -z "$CONFIG_SITE"; then
1011  if test "x$prefix" != xNONE; then
1012    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1013  else
1014    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1015  fi
1016fi
1017for ac_site_file in $CONFIG_SITE; do
1018  if test -r "$ac_site_file"; then
1019    { echo "$as_me:1019: loading site script $ac_site_file" >&5
1020echo "$as_me: loading site script $ac_site_file" >&6;}
1021    cat "$ac_site_file" >&5
1022    . "$ac_site_file"
1023  fi
1024done
1025
1026if test -r "$cache_file"; then
1027  # Some versions of bash will fail to source /dev/null (special
1028  # files actually), so we avoid doing that.
1029  if test -f "$cache_file"; then
1030    { echo "$as_me:1030: loading cache $cache_file" >&5
1031echo "$as_me: loading cache $cache_file" >&6;}
1032    case $cache_file in
1033      [\\/]* | ?:[\\/]* ) . $cache_file;;
1034      *)                      . ./$cache_file;;
1035    esac
1036  fi
1037else
1038  { echo "$as_me:1038: creating cache $cache_file" >&5
1039echo "$as_me: creating cache $cache_file" >&6;}
1040  >$cache_file
1041fi
1042
1043# Check that the precious variables saved in the cache have kept the same
1044# value.
1045ac_cache_corrupted=false
1046for ac_var in `(set) 2>&1 |
1047               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1048  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1049  eval ac_new_set=\$ac_env_${ac_var}_set
1050  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1051  eval ac_new_val="\$ac_env_${ac_var}_value"
1052  case $ac_old_set,$ac_new_set in
1053    set,)
1054      { echo "$as_me:1054: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1055echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1056      ac_cache_corrupted=: ;;
1057    ,set)
1058      { echo "$as_me:1058: error: \`$ac_var' was not set in the previous run" >&5
1059echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1060      ac_cache_corrupted=: ;;
1061    ,);;
1062    *)
1063      if test "x$ac_old_val" != "x$ac_new_val"; then
1064        { echo "$as_me:1064: error: \`$ac_var' has changed since the previous run:" >&5
1065echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1066        { echo "$as_me:1066:   former value:  $ac_old_val" >&5
1067echo "$as_me:   former value:  $ac_old_val" >&2;}
1068        { echo "$as_me:1068:   current value: $ac_new_val" >&5
1069echo "$as_me:   current value: $ac_new_val" >&2;}
1070        ac_cache_corrupted=:
1071      fi;;
1072  esac
1073  # Pass precious variables to config.status.  It doesn't matter if
1074  # we pass some twice (in addition to the command line arguments).
1075  if test "$ac_new_set" = set; then
1076    case $ac_new_val in
1077    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1078      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1079      ac_configure_args="$ac_configure_args '$ac_arg'"
1080      ;;
1081    *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1082       ;;
1083    esac
1084  fi
1085done
1086if $ac_cache_corrupted; then
1087  { echo "$as_me:1087: error: changes in the environment can compromise the build" >&5
1088echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1089  { { echo "$as_me:1089: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1090echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1091   { (exit 1); exit 1; }; }
1092fi
1093
1094ac_ext=c
1095ac_cpp='$CPP $CPPFLAGS'
1096ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1097ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1098ac_compiler_gnu=$ac_cv_c_compiler_gnu
1099
1100case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
1101  *c*,-n*) ECHO_N= ECHO_C='
1102' ECHO_T='	' ;;
1103  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1104  *)      ECHO_N= ECHO_C='\c' ECHO_T= ;;
1105esac
1106echo "#! $SHELL" >conftest.sh
1107echo  "exit 0"   >>conftest.sh
1108chmod +x conftest.sh
1109if { (echo "$as_me:1109: PATH=\".;.\"; conftest.sh") >&5
1110  (PATH=".;."; conftest.sh) 2>&5
1111  ac_status=$?
1112  echo "$as_me:1112: \$? = $ac_status" >&5
1113  (exit $ac_status); }; then
1114  ac_path_separator=';'
1115else
1116  ac_path_separator=:
1117fi
1118PATH_SEPARATOR="$ac_path_separator"
1119rm -f conftest.sh
1120
1121ac_config_headers="$ac_config_headers config.h"
1122
1123ac_config_commands="$ac_config_commands default-1"
1124
1125ac_aux_dir=
1126for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1127  if test -f $ac_dir/install-sh; then
1128    ac_aux_dir=$ac_dir
1129    ac_install_sh="$ac_aux_dir/install-sh -c"
1130    break
1131  elif test -f $ac_dir/install.sh; then
1132    ac_aux_dir=$ac_dir
1133    ac_install_sh="$ac_aux_dir/install.sh -c"
1134    break
1135  elif test -f $ac_dir/shtool; then
1136    ac_aux_dir=$ac_dir
1137    ac_install_sh="$ac_aux_dir/shtool install -c"
1138    break
1139  fi
1140done
1141if test -z "$ac_aux_dir"; then
1142  { { echo "$as_me:1142: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1143echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1144   { (exit 1); exit 1; }; }
1145fi
1146ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1147ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1148ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1149
1150# Make sure we can run config.sub.
1151$ac_config_sub sun4 >/dev/null 2>&1 ||
1152  { { echo "$as_me:1152: error: cannot run $ac_config_sub" >&5
1153echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1154   { (exit 1); exit 1; }; }
1155
1156echo "$as_me:1156: checking build system type" >&5
1157echo $ECHO_N "checking build system type... $ECHO_C" >&6
1158if test "${ac_cv_build+set}" = set; then
1159  echo $ECHO_N "(cached) $ECHO_C" >&6
1160else
1161  ac_cv_build_alias=$build_alias
1162test -z "$ac_cv_build_alias" &&
1163  ac_cv_build_alias=`$ac_config_guess`
1164test -z "$ac_cv_build_alias" &&
1165  { { echo "$as_me:1165: error: cannot guess build type; you must specify one" >&5
1166echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1167   { (exit 1); exit 1; }; }
1168ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1169  { { echo "$as_me:1169: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1170echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1171   { (exit 1); exit 1; }; }
1172
1173fi
1174echo "$as_me:1174: result: $ac_cv_build" >&5
1175echo "${ECHO_T}$ac_cv_build" >&6
1176build=$ac_cv_build
1177build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1178build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1179build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1180
1181echo "$as_me:1181: checking host system type" >&5
1182echo $ECHO_N "checking host system type... $ECHO_C" >&6
1183if test "${ac_cv_host+set}" = set; then
1184  echo $ECHO_N "(cached) $ECHO_C" >&6
1185else
1186  ac_cv_host_alias=$host_alias
1187test -z "$ac_cv_host_alias" &&
1188  ac_cv_host_alias=$ac_cv_build_alias
1189ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1190  { { echo "$as_me:1190: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1191echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1192   { (exit 1); exit 1; }; }
1193
1194fi
1195echo "$as_me:1195: result: $ac_cv_host" >&5
1196echo "${ECHO_T}$ac_cv_host" >&6
1197host=$ac_cv_host
1198host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1199host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1200host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1201
1202echo "$as_me:1202: checking target system type" >&5
1203echo $ECHO_N "checking target system type... $ECHO_C" >&6
1204if test "${ac_cv_target+set}" = set; then
1205  echo $ECHO_N "(cached) $ECHO_C" >&6
1206else
1207  ac_cv_target_alias=$target_alias
1208test "x$ac_cv_target_alias" = "x" &&
1209  ac_cv_target_alias=$ac_cv_host_alias
1210ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1211  { { echo "$as_me:1211: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1212echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1213   { (exit 1); exit 1; }; }
1214
1215fi
1216echo "$as_me:1216: result: $ac_cv_target" >&5
1217echo "${ECHO_T}$ac_cv_target" >&6
1218target=$ac_cv_target
1219target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1220target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1221target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1222
1223# The aliases save the names the user supplied, while $host etc.
1224# will get canonicalized.
1225test -n "$target_alias" &&
1226  test "$program_prefix$program_suffix$program_transform_name" = \
1227    NONENONEs,x,x, &&
1228  program_prefix=${target_alias}-
1229
1230# Find a good install program.  We prefer a C program (faster),
1231# so one script is as good as another.  But avoid the broken or
1232# incompatible versions:
1233# SysV /etc/install, /usr/sbin/install
1234# SunOS /usr/etc/install
1235# IRIX /sbin/install
1236# AIX /bin/install
1237# AmigaOS /C/install, which installs bootblocks on floppy discs
1238# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1239# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1240# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1241# ./install, which can be erroneously created by make from ./install.sh.
1242echo "$as_me:1242: checking for a BSD compatible install" >&5
1243echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
1244if test -z "$INSTALL"; then
1245if test "${ac_cv_path_install+set}" = set; then
1246  echo $ECHO_N "(cached) $ECHO_C" >&6
1247else
1248    ac_save_IFS=$IFS; IFS=$ac_path_separator
1249  for ac_dir in $PATH; do
1250    IFS=$ac_save_IFS
1251    # Account for people who put trailing slashes in PATH elements.
1252    case $ac_dir/ in
1253    / | ./ | .// | /cC/* \
1254    | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
1255    | /usr/ucb/* ) ;;
1256    *)
1257      # OSF1 and SCO ODT 3.0 have their own names for install.
1258      # Don't use installbsd from OSF since it installs stuff as root
1259      # by default.
1260      for ac_prog in ginstall scoinst install; do
1261        if $as_executable_p "$ac_dir/$ac_prog"; then
1262	  if test $ac_prog = install &&
1263            grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1264	    # AIX install.  It has an incompatible calling convention.
1265	    :
1266	  elif test $ac_prog = install &&
1267	    grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1268	    # program-specific install script used by HP pwplus--don't use.
1269	    :
1270	  else
1271	    ac_cv_path_install="$ac_dir/$ac_prog -c"
1272	    break 2
1273	  fi
1274	fi
1275      done
1276      ;;
1277    esac
1278  done
1279
1280fi
1281  if test "${ac_cv_path_install+set}" = set; then
1282    INSTALL=$ac_cv_path_install
1283  else
1284    # As a last resort, use the slow shell script.  We don't cache a
1285    # path for INSTALL within a source directory, because that will
1286    # break other packages using the cache if that directory is
1287    # removed, or if the path is relative.
1288    INSTALL=$ac_install_sh
1289  fi
1290fi
1291echo "$as_me:1291: result: $INSTALL" >&5
1292echo "${ECHO_T}$INSTALL" >&6
1293
1294# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1295# It thinks the first close brace ends the variable substitution.
1296test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1297
1298test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1299
1300test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1301
1302echo "$as_me:1302: checking whether build environment is sane" >&5
1303echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1304# Just in case
1305sleep 1
1306echo timestamp > conftestfile
1307# Do `set' in a subshell so we don't clobber the current shell's
1308# arguments.  Must try -L first in case configure is actually a
1309# symlink; some systems play weird games with the mod time of symlinks
1310# (eg FreeBSD returns the mod time of the symlink's containing
1311# directory).
1312if (
1313   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1314   if test "$*" = "X"; then
1315      # -L didn't work.
1316      set X `ls -t $srcdir/configure conftestfile`
1317   fi
1318   if test "$*" != "X $srcdir/configure conftestfile" \
1319      && test "$*" != "X conftestfile $srcdir/configure"; then
1320
1321      # If neither matched, then we have a broken ls.  This can happen
1322      # if, for instance, CONFIG_SHELL is bash and it inherits a
1323      # broken ls alias from the environment.  This has actually
1324      # happened.  Such a system could not be considered "sane".
1325      { { echo "$as_me:1325: error: ls -t appears to fail.  Make sure there is not a broken
1326alias in your environment" >&5
1327echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1328alias in your environment" >&2;}
1329   { (exit 1); exit 1; }; }
1330   fi
1331
1332   test "$2" = conftestfile
1333   )
1334then
1335   # Ok.
1336   :
1337else
1338   { { echo "$as_me:1338: error: newly created file is older than distributed files!
1339Check your system clock" >&5
1340echo "$as_me: error: newly created file is older than distributed files!
1341Check your system clock" >&2;}
1342   { (exit 1); exit 1; }; }
1343fi
1344rm -f conftest*
1345echo "$as_me:1345: result: yes" >&5
1346echo "${ECHO_T}yes" >&6
1347test "$program_prefix" != NONE &&
1348  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1349# Use a double $ so make ignores it.
1350test "$program_suffix" != NONE &&
1351  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1352# Double any \ or $.  echo might interpret backslashes.
1353# By default was `s,x,x', remove it if useless.
1354cat <<\_ACEOF >conftest.sed
1355s/[\\$]/&&/g;s/;s,x,x,$//
1356_ACEOF
1357program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1358rm conftest.sed
1359
1360echo "$as_me:1360: checking whether ${MAKE-make} sets \${MAKE}" >&5
1361echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1362set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1363if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1364  echo $ECHO_N "(cached) $ECHO_C" >&6
1365else
1366  cat >conftest.make <<\EOF
1367all:
1368	@echo 'ac_maketemp="${MAKE}"'
1369EOF
1370# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1371eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1372if test -n "$ac_maketemp"; then
1373  eval ac_cv_prog_make_${ac_make}_set=yes
1374else
1375  eval ac_cv_prog_make_${ac_make}_set=no
1376fi
1377rm -f conftest.make
1378fi
1379if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1380  echo "$as_me:1380: result: yes" >&5
1381echo "${ECHO_T}yes" >&6
1382  SET_MAKE=
1383else
1384  echo "$as_me:1384: result: no" >&5
1385echo "${ECHO_T}no" >&6
1386  SET_MAKE="MAKE=${MAKE-make}"
1387fi
1388
1389PACKAGE=tetradraw
1390
1391VERSION=2.0.2
1392
1393if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1394  { { echo "$as_me:1394: error: source directory already configured; run \"make distclean\" there first" >&5
1395echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1396   { (exit 1); exit 1; }; }
1397fi
1398
1399cat >>confdefs.h <<EOF
1400#define PACKAGE "$PACKAGE"
1401EOF
1402
1403cat >>confdefs.h <<EOF
1404#define VERSION "$VERSION"
1405EOF
1406
1407missing_dir=`cd $ac_aux_dir && pwd`
1408echo "$as_me:1408: checking for working aclocal" >&5
1409echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6
1410# Run test in a subshell; some versions of sh will print an error if
1411# an executable is not found, even if stderr is redirected.
1412# Redirect stdin to placate older versions of autoconf.  Sigh.
1413if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1414   ACLOCAL=aclocal
1415   echo "$as_me:1415: result: found" >&5
1416echo "${ECHO_T}found" >&6
1417else
1418   ACLOCAL="$missing_dir/missing aclocal"
1419   echo "$as_me:1419: result: missing" >&5
1420echo "${ECHO_T}missing" >&6
1421fi
1422
1423echo "$as_me:1423: checking for working autoconf" >&5
1424echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
1425# Run test in a subshell; some versions of sh will print an error if
1426# an executable is not found, even if stderr is redirected.
1427# Redirect stdin to placate older versions of autoconf.  Sigh.
1428if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1429   AUTOCONF=autoconf
1430   echo "$as_me:1430: result: found" >&5
1431echo "${ECHO_T}found" >&6
1432else
1433   AUTOCONF="$missing_dir/missing autoconf"
1434   echo "$as_me:1434: result: missing" >&5
1435echo "${ECHO_T}missing" >&6
1436fi
1437
1438echo "$as_me:1438: checking for working automake" >&5
1439echo $ECHO_N "checking for working automake... $ECHO_C" >&6
1440# Run test in a subshell; some versions of sh will print an error if
1441# an executable is not found, even if stderr is redirected.
1442# Redirect stdin to placate older versions of autoconf.  Sigh.
1443if (automake --version) < /dev/null > /dev/null 2>&1; then
1444   AUTOMAKE=automake
1445   echo "$as_me:1445: result: found" >&5
1446echo "${ECHO_T}found" >&6
1447else
1448   AUTOMAKE="$missing_dir/missing automake"
1449   echo "$as_me:1449: result: missing" >&5
1450echo "${ECHO_T}missing" >&6
1451fi
1452
1453echo "$as_me:1453: checking for working autoheader" >&5
1454echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
1455# Run test in a subshell; some versions of sh will print an error if
1456# an executable is not found, even if stderr is redirected.
1457# Redirect stdin to placate older versions of autoconf.  Sigh.
1458if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1459   AUTOHEADER=autoheader
1460   echo "$as_me:1460: result: found" >&5
1461echo "${ECHO_T}found" >&6
1462else
1463   AUTOHEADER="$missing_dir/missing autoheader"
1464   echo "$as_me:1464: result: missing" >&5
1465echo "${ECHO_T}missing" >&6
1466fi
1467
1468echo "$as_me:1468: checking for working makeinfo" >&5
1469echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
1470# Run test in a subshell; some versions of sh will print an error if
1471# an executable is not found, even if stderr is redirected.
1472# Redirect stdin to placate older versions of autoconf.  Sigh.
1473if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1474   MAKEINFO=makeinfo
1475   echo "$as_me:1475: result: found" >&5
1476echo "${ECHO_T}found" >&6
1477else
1478   MAKEINFO="$missing_dir/missing makeinfo"
1479   echo "$as_me:1479: result: missing" >&5
1480echo "${ECHO_T}missing" >&6
1481fi
1482
1483ac_ext=c
1484ac_cpp='$CPP $CPPFLAGS'
1485ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1486ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1487ac_compiler_gnu=$ac_cv_c_compiler_gnu
1488if test -n "$ac_tool_prefix"; then
1489  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1490set dummy ${ac_tool_prefix}gcc; ac_word=$2
1491echo "$as_me:1491: checking for $ac_word" >&5
1492echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1493if test "${ac_cv_prog_CC+set}" = set; then
1494  echo $ECHO_N "(cached) $ECHO_C" >&6
1495else
1496  if test -n "$CC"; then
1497  ac_cv_prog_CC="$CC" # Let the user override the test.
1498else
1499  ac_save_IFS=$IFS; IFS=$ac_path_separator
1500ac_dummy="$PATH"
1501for ac_dir in $ac_dummy; do
1502  IFS=$ac_save_IFS
1503  test -z "$ac_dir" && ac_dir=.
1504  $as_executable_p "$ac_dir/$ac_word" || continue
1505ac_cv_prog_CC="${ac_tool_prefix}gcc"
1506echo "$as_me:1506: found $ac_dir/$ac_word" >&5
1507break
1508done
1509
1510fi
1511fi
1512CC=$ac_cv_prog_CC
1513if test -n "$CC"; then
1514  echo "$as_me:1514: result: $CC" >&5
1515echo "${ECHO_T}$CC" >&6
1516else
1517  echo "$as_me:1517: result: no" >&5
1518echo "${ECHO_T}no" >&6
1519fi
1520
1521fi
1522if test -z "$ac_cv_prog_CC"; then
1523  ac_ct_CC=$CC
1524  # Extract the first word of "gcc", so it can be a program name with args.
1525set dummy gcc; ac_word=$2
1526echo "$as_me:1526: checking for $ac_word" >&5
1527echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1528if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1529  echo $ECHO_N "(cached) $ECHO_C" >&6
1530else
1531  if test -n "$ac_ct_CC"; then
1532  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1533else
1534  ac_save_IFS=$IFS; IFS=$ac_path_separator
1535ac_dummy="$PATH"
1536for ac_dir in $ac_dummy; do
1537  IFS=$ac_save_IFS
1538  test -z "$ac_dir" && ac_dir=.
1539  $as_executable_p "$ac_dir/$ac_word" || continue
1540ac_cv_prog_ac_ct_CC="gcc"
1541echo "$as_me:1541: found $ac_dir/$ac_word" >&5
1542break
1543done
1544
1545fi
1546fi
1547ac_ct_CC=$ac_cv_prog_ac_ct_CC
1548if test -n "$ac_ct_CC"; then
1549  echo "$as_me:1549: result: $ac_ct_CC" >&5
1550echo "${ECHO_T}$ac_ct_CC" >&6
1551else
1552  echo "$as_me:1552: result: no" >&5
1553echo "${ECHO_T}no" >&6
1554fi
1555
1556  CC=$ac_ct_CC
1557else
1558  CC="$ac_cv_prog_CC"
1559fi
1560
1561if test -z "$CC"; then
1562  if test -n "$ac_tool_prefix"; then
1563  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1564set dummy ${ac_tool_prefix}cc; ac_word=$2
1565echo "$as_me:1565: checking for $ac_word" >&5
1566echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1567if test "${ac_cv_prog_CC+set}" = set; then
1568  echo $ECHO_N "(cached) $ECHO_C" >&6
1569else
1570  if test -n "$CC"; then
1571  ac_cv_prog_CC="$CC" # Let the user override the test.
1572else
1573  ac_save_IFS=$IFS; IFS=$ac_path_separator
1574ac_dummy="$PATH"
1575for ac_dir in $ac_dummy; do
1576  IFS=$ac_save_IFS
1577  test -z "$ac_dir" && ac_dir=.
1578  $as_executable_p "$ac_dir/$ac_word" || continue
1579ac_cv_prog_CC="${ac_tool_prefix}cc"
1580echo "$as_me:1580: found $ac_dir/$ac_word" >&5
1581break
1582done
1583
1584fi
1585fi
1586CC=$ac_cv_prog_CC
1587if test -n "$CC"; then
1588  echo "$as_me:1588: result: $CC" >&5
1589echo "${ECHO_T}$CC" >&6
1590else
1591  echo "$as_me:1591: result: no" >&5
1592echo "${ECHO_T}no" >&6
1593fi
1594
1595fi
1596if test -z "$ac_cv_prog_CC"; then
1597  ac_ct_CC=$CC
1598  # Extract the first word of "cc", so it can be a program name with args.
1599set dummy cc; ac_word=$2
1600echo "$as_me:1600: checking for $ac_word" >&5
1601echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1602if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1603  echo $ECHO_N "(cached) $ECHO_C" >&6
1604else
1605  if test -n "$ac_ct_CC"; then
1606  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1607else
1608  ac_save_IFS=$IFS; IFS=$ac_path_separator
1609ac_dummy="$PATH"
1610for ac_dir in $ac_dummy; do
1611  IFS=$ac_save_IFS
1612  test -z "$ac_dir" && ac_dir=.
1613  $as_executable_p "$ac_dir/$ac_word" || continue
1614ac_cv_prog_ac_ct_CC="cc"
1615echo "$as_me:1615: found $ac_dir/$ac_word" >&5
1616break
1617done
1618
1619fi
1620fi
1621ac_ct_CC=$ac_cv_prog_ac_ct_CC
1622if test -n "$ac_ct_CC"; then
1623  echo "$as_me:1623: result: $ac_ct_CC" >&5
1624echo "${ECHO_T}$ac_ct_CC" >&6
1625else
1626  echo "$as_me:1626: result: no" >&5
1627echo "${ECHO_T}no" >&6
1628fi
1629
1630  CC=$ac_ct_CC
1631else
1632  CC="$ac_cv_prog_CC"
1633fi
1634
1635fi
1636if test -z "$CC"; then
1637  # Extract the first word of "cc", so it can be a program name with args.
1638set dummy cc; ac_word=$2
1639echo "$as_me:1639: checking for $ac_word" >&5
1640echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1641if test "${ac_cv_prog_CC+set}" = set; then
1642  echo $ECHO_N "(cached) $ECHO_C" >&6
1643else
1644  if test -n "$CC"; then
1645  ac_cv_prog_CC="$CC" # Let the user override the test.
1646else
1647  ac_prog_rejected=no
1648  ac_save_IFS=$IFS; IFS=$ac_path_separator
1649ac_dummy="$PATH"
1650for ac_dir in $ac_dummy; do
1651  IFS=$ac_save_IFS
1652  test -z "$ac_dir" && ac_dir=.
1653  $as_executable_p "$ac_dir/$ac_word" || continue
1654if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1655  ac_prog_rejected=yes
1656  continue
1657fi
1658ac_cv_prog_CC="cc"
1659echo "$as_me:1659: found $ac_dir/$ac_word" >&5
1660break
1661done
1662
1663if test $ac_prog_rejected = yes; then
1664  # We found a bogon in the path, so make sure we never use it.
1665  set dummy $ac_cv_prog_CC
1666  shift
1667  if test $# != 0; then
1668    # We chose a different compiler from the bogus one.
1669    # However, it has the same basename, so the bogon will be chosen
1670    # first if we set CC to just the basename; use the full file name.
1671    shift
1672    set dummy "$ac_dir/$ac_word" ${1+"$@"}
1673    shift
1674    ac_cv_prog_CC="$@"
1675  fi
1676fi
1677fi
1678fi
1679CC=$ac_cv_prog_CC
1680if test -n "$CC"; then
1681  echo "$as_me:1681: result: $CC" >&5
1682echo "${ECHO_T}$CC" >&6
1683else
1684  echo "$as_me:1684: result: no" >&5
1685echo "${ECHO_T}no" >&6
1686fi
1687
1688fi
1689if test -z "$CC"; then
1690  if test -n "$ac_tool_prefix"; then
1691  for ac_prog in cl
1692  do
1693    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1694set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1695echo "$as_me:1695: checking for $ac_word" >&5
1696echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1697if test "${ac_cv_prog_CC+set}" = set; then
1698  echo $ECHO_N "(cached) $ECHO_C" >&6
1699else
1700  if test -n "$CC"; then
1701  ac_cv_prog_CC="$CC" # Let the user override the test.
1702else
1703  ac_save_IFS=$IFS; IFS=$ac_path_separator
1704ac_dummy="$PATH"
1705for ac_dir in $ac_dummy; do
1706  IFS=$ac_save_IFS
1707  test -z "$ac_dir" && ac_dir=.
1708  $as_executable_p "$ac_dir/$ac_word" || continue
1709ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1710echo "$as_me:1710: found $ac_dir/$ac_word" >&5
1711break
1712done
1713
1714fi
1715fi
1716CC=$ac_cv_prog_CC
1717if test -n "$CC"; then
1718  echo "$as_me:1718: result: $CC" >&5
1719echo "${ECHO_T}$CC" >&6
1720else
1721  echo "$as_me:1721: result: no" >&5
1722echo "${ECHO_T}no" >&6
1723fi
1724
1725    test -n "$CC" && break
1726  done
1727fi
1728if test -z "$CC"; then
1729  ac_ct_CC=$CC
1730  for ac_prog in cl
1731do
1732  # Extract the first word of "$ac_prog", so it can be a program name with args.
1733set dummy $ac_prog; ac_word=$2
1734echo "$as_me:1734: checking for $ac_word" >&5
1735echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1736if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1737  echo $ECHO_N "(cached) $ECHO_C" >&6
1738else
1739  if test -n "$ac_ct_CC"; then
1740  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1741else
1742  ac_save_IFS=$IFS; IFS=$ac_path_separator
1743ac_dummy="$PATH"
1744for ac_dir in $ac_dummy; do
1745  IFS=$ac_save_IFS
1746  test -z "$ac_dir" && ac_dir=.
1747  $as_executable_p "$ac_dir/$ac_word" || continue
1748ac_cv_prog_ac_ct_CC="$ac_prog"
1749echo "$as_me:1749: found $ac_dir/$ac_word" >&5
1750break
1751done
1752
1753fi
1754fi
1755ac_ct_CC=$ac_cv_prog_ac_ct_CC
1756if test -n "$ac_ct_CC"; then
1757  echo "$as_me:1757: result: $ac_ct_CC" >&5
1758echo "${ECHO_T}$ac_ct_CC" >&6
1759else
1760  echo "$as_me:1760: result: no" >&5
1761echo "${ECHO_T}no" >&6
1762fi
1763
1764  test -n "$ac_ct_CC" && break
1765done
1766
1767  CC=$ac_ct_CC
1768fi
1769
1770fi
1771
1772test -z "$CC" && { { echo "$as_me:1772: error: no acceptable cc found in \$PATH" >&5
1773echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1774   { (exit 1); exit 1; }; }
1775
1776# Provide some information about the compiler.
1777echo "$as_me:1777:" \
1778     "checking for C compiler version" >&5
1779ac_compiler=`set X $ac_compile; echo $2`
1780{ (eval echo "$as_me:1780: \"$ac_compiler --version </dev/null >&5\"") >&5
1781  (eval $ac_compiler --version </dev/null >&5) 2>&5
1782  ac_status=$?
1783  echo "$as_me:1783: \$? = $ac_status" >&5
1784  (exit $ac_status); }
1785{ (eval echo "$as_me:1785: \"$ac_compiler -v </dev/null >&5\"") >&5
1786  (eval $ac_compiler -v </dev/null >&5) 2>&5
1787  ac_status=$?
1788  echo "$as_me:1788: \$? = $ac_status" >&5
1789  (exit $ac_status); }
1790{ (eval echo "$as_me:1790: \"$ac_compiler -V </dev/null >&5\"") >&5
1791  (eval $ac_compiler -V </dev/null >&5) 2>&5
1792  ac_status=$?
1793  echo "$as_me:1793: \$? = $ac_status" >&5
1794  (exit $ac_status); }
1795
1796cat >conftest.$ac_ext <<_ACEOF
1797#line 1797 "configure"
1798#include "confdefs.h"
1799
1800int
1801main ()
1802{
1803
1804  ;
1805  return 0;
1806}
1807_ACEOF
1808ac_clean_files_save=$ac_clean_files
1809ac_clean_files="$ac_clean_files a.out a.exe"
1810# Try to create an executable without -o first, disregard a.out.
1811# It will help us diagnose broken compilers, and finding out an intuition
1812# of exeext.
1813echo "$as_me:1813: checking for C compiler default output" >&5
1814echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1815ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1816if { (eval echo "$as_me:1816: \"$ac_link_default\"") >&5
1817  (eval $ac_link_default) 2>&5
1818  ac_status=$?
1819  echo "$as_me:1819: \$? = $ac_status" >&5
1820  (exit $ac_status); }; then
1821  # Find the output, starting from the most likely.  This scheme is
1822# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1823# resort.
1824for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1825                ls a.out conftest 2>/dev/null;
1826                ls a.* conftest.* 2>/dev/null`; do
1827  case $ac_file in
1828    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1829    a.out ) # We found the default executable, but exeext='' is most
1830            # certainly right.
1831            break;;
1832    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1833          # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1834          export ac_cv_exeext
1835          break;;
1836    * ) break;;
1837  esac
1838done
1839else
1840  echo "$as_me: failed program was:" >&5
1841cat conftest.$ac_ext >&5
1842{ { echo "$as_me:1842: error: C compiler cannot create executables" >&5
1843echo "$as_me: error: C compiler cannot create executables" >&2;}
1844   { (exit 77); exit 77; }; }
1845fi
1846
1847ac_exeext=$ac_cv_exeext
1848echo "$as_me:1848: result: $ac_file" >&5
1849echo "${ECHO_T}$ac_file" >&6
1850
1851# Check the compiler produces executables we can run.  If not, either
1852# the compiler is broken, or we cross compile.
1853echo "$as_me:1853: checking whether the C compiler works" >&5
1854echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1855# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1856# If not cross compiling, check that we can run a simple program.
1857if test "$cross_compiling" != yes; then
1858  if { ac_try='./$ac_file'
1859  { (eval echo "$as_me:1859: \"$ac_try\"") >&5
1860  (eval $ac_try) 2>&5
1861  ac_status=$?
1862  echo "$as_me:1862: \$? = $ac_status" >&5
1863  (exit $ac_status); }; }; then
1864    cross_compiling=no
1865  else
1866    if test "$cross_compiling" = maybe; then
1867	cross_compiling=yes
1868    else
1869	{ { echo "$as_me:1869: error: cannot run C compiled programs.
1870If you meant to cross compile, use \`--host'." >&5
1871echo "$as_me: error: cannot run C compiled programs.
1872If you meant to cross compile, use \`--host'." >&2;}
1873   { (exit 1); exit 1; }; }
1874    fi
1875  fi
1876fi
1877echo "$as_me:1877: result: yes" >&5
1878echo "${ECHO_T}yes" >&6
1879
1880rm -f a.out a.exe conftest$ac_cv_exeext
1881ac_clean_files=$ac_clean_files_save
1882# Check the compiler produces executables we can run.  If not, either
1883# the compiler is broken, or we cross compile.
1884echo "$as_me:1884: checking whether we are cross compiling" >&5
1885echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1886echo "$as_me:1886: result: $cross_compiling" >&5
1887echo "${ECHO_T}$cross_compiling" >&6
1888
1889echo "$as_me:1889: checking for executable suffix" >&5
1890echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1891if { (eval echo "$as_me:1891: \"$ac_link\"") >&5
1892  (eval $ac_link) 2>&5
1893  ac_status=$?
1894  echo "$as_me:1894: \$? = $ac_status" >&5
1895  (exit $ac_status); }; then
1896  # If both `conftest.exe' and `conftest' are `present' (well, observable)
1897# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1898# work properly (i.e., refer to `conftest.exe'), while it won't with
1899# `rm'.
1900for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1901  case $ac_file in
1902    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1903    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1904          export ac_cv_exeext
1905          break;;
1906    * ) break;;
1907  esac
1908done
1909else
1910  { { echo "$as_me:1910: error: cannot compute EXEEXT: cannot compile and link" >&5
1911echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1912   { (exit 1); exit 1; }; }
1913fi
1914
1915rm -f conftest$ac_cv_exeext
1916echo "$as_me:1916: result: $ac_cv_exeext" >&5
1917echo "${ECHO_T}$ac_cv_exeext" >&6
1918
1919rm -f conftest.$ac_ext
1920EXEEXT=$ac_cv_exeext
1921ac_exeext=$EXEEXT
1922echo "$as_me:1922: checking for object suffix" >&5
1923echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1924if test "${ac_cv_objext+set}" = set; then
1925  echo $ECHO_N "(cached) $ECHO_C" >&6
1926else
1927  cat >conftest.$ac_ext <<_ACEOF
1928#line 1928 "configure"
1929#include "confdefs.h"
1930
1931int
1932main ()
1933{
1934
1935  ;
1936  return 0;
1937}
1938_ACEOF
1939rm -f conftest.o conftest.obj
1940if { (eval echo "$as_me:1940: \"$ac_compile\"") >&5
1941  (eval $ac_compile) 2>&5
1942  ac_status=$?
1943  echo "$as_me:1943: \$? = $ac_status" >&5
1944  (exit $ac_status); }; then
1945  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1946  case $ac_file in
1947    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1948    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1949       break;;
1950  esac
1951done
1952else
1953  echo "$as_me: failed program was:" >&5
1954cat conftest.$ac_ext >&5
1955{ { echo "$as_me:1955: error: cannot compute OBJEXT: cannot compile" >&5
1956echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1957   { (exit 1); exit 1; }; }
1958fi
1959
1960rm -f conftest.$ac_cv_objext conftest.$ac_ext
1961fi
1962echo "$as_me:1962: result: $ac_cv_objext" >&5
1963echo "${ECHO_T}$ac_cv_objext" >&6
1964OBJEXT=$ac_cv_objext
1965ac_objext=$OBJEXT
1966echo "$as_me:1966: checking whether we are using the GNU C compiler" >&5
1967echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1968if test "${ac_cv_c_compiler_gnu+set}" = set; then
1969  echo $ECHO_N "(cached) $ECHO_C" >&6
1970else
1971  cat >conftest.$ac_ext <<_ACEOF
1972#line 1972 "configure"
1973#include "confdefs.h"
1974
1975int
1976main ()
1977{
1978#ifndef __GNUC__
1979       choke me
1980#endif
1981
1982  ;
1983  return 0;
1984}
1985_ACEOF
1986rm -f conftest.$ac_objext
1987if { (eval echo "$as_me:1987: \"$ac_compile\"") >&5
1988  (eval $ac_compile) 2>&5
1989  ac_status=$?
1990  echo "$as_me:1990: \$? = $ac_status" >&5
1991  (exit $ac_status); } &&
1992         { ac_try='test -s conftest.$ac_objext'
1993  { (eval echo "$as_me:1993: \"$ac_try\"") >&5
1994  (eval $ac_try) 2>&5
1995  ac_status=$?
1996  echo "$as_me:1996: \$? = $ac_status" >&5
1997  (exit $ac_status); }; }; then
1998  ac_compiler_gnu=yes
1999else
2000  echo "$as_me: failed program was:" >&5
2001cat conftest.$ac_ext >&5
2002ac_compiler_gnu=no
2003fi
2004rm -f conftest.$ac_objext conftest.$ac_ext
2005ac_cv_c_compiler_gnu=$ac_compiler_gnu
2006
2007fi
2008echo "$as_me:2008: result: $ac_cv_c_compiler_gnu" >&5
2009echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2010GCC=`test $ac_compiler_gnu = yes && echo yes`
2011ac_test_CFLAGS=${CFLAGS+set}
2012ac_save_CFLAGS=$CFLAGS
2013CFLAGS="-g"
2014echo "$as_me:2014: checking whether $CC accepts -g" >&5
2015echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2016if test "${ac_cv_prog_cc_g+set}" = set; then
2017  echo $ECHO_N "(cached) $ECHO_C" >&6
2018else
2019  cat >conftest.$ac_ext <<_ACEOF
2020#line 2020 "configure"
2021#include "confdefs.h"
2022
2023int
2024main ()
2025{
2026
2027  ;
2028  return 0;
2029}
2030_ACEOF
2031rm -f conftest.$ac_objext
2032if { (eval echo "$as_me:2032: \"$ac_compile\"") >&5
2033  (eval $ac_compile) 2>&5
2034  ac_status=$?
2035  echo "$as_me:2035: \$? = $ac_status" >&5
2036  (exit $ac_status); } &&
2037         { ac_try='test -s conftest.$ac_objext'
2038  { (eval echo "$as_me:2038: \"$ac_try\"") >&5
2039  (eval $ac_try) 2>&5
2040  ac_status=$?
2041  echo "$as_me:2041: \$? = $ac_status" >&5
2042  (exit $ac_status); }; }; then
2043  ac_cv_prog_cc_g=yes
2044else
2045  echo "$as_me: failed program was:" >&5
2046cat conftest.$ac_ext >&5
2047ac_cv_prog_cc_g=no
2048fi
2049rm -f conftest.$ac_objext conftest.$ac_ext
2050fi
2051echo "$as_me:2051: result: $ac_cv_prog_cc_g" >&5
2052echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2053if test "$ac_test_CFLAGS" = set; then
2054  CFLAGS=$ac_save_CFLAGS
2055elif test $ac_cv_prog_cc_g = yes; then
2056  if test "$GCC" = yes; then
2057    CFLAGS="-g -O2"
2058  else
2059    CFLAGS="-g"
2060  fi
2061else
2062  if test "$GCC" = yes; then
2063    CFLAGS="-O2"
2064  else
2065    CFLAGS=
2066  fi
2067fi
2068# Some people use a C++ compiler to compile C.  Since we use `exit',
2069# in C++ we need to declare it.  In case someone uses the same compiler
2070# for both compiling C and C++ we need to have the C++ compiler decide
2071# the declaration of exit, since it's the most demanding environment.
2072cat >conftest.$ac_ext <<_ACEOF
2073#ifndef __cplusplus
2074  choke me
2075#endif
2076_ACEOF
2077rm -f conftest.$ac_objext
2078if { (eval echo "$as_me:2078: \"$ac_compile\"") >&5
2079  (eval $ac_compile) 2>&5
2080  ac_status=$?
2081  echo "$as_me:2081: \$? = $ac_status" >&5
2082  (exit $ac_status); } &&
2083         { ac_try='test -s conftest.$ac_objext'
2084  { (eval echo "$as_me:2084: \"$ac_try\"") >&5
2085  (eval $ac_try) 2>&5
2086  ac_status=$?
2087  echo "$as_me:2087: \$? = $ac_status" >&5
2088  (exit $ac_status); }; }; then
2089  for ac_declaration in \
2090   ''\
2091   '#include <stdlib.h>' \
2092   'extern "C" void std::exit (int) throw (); using std::exit;' \
2093   'extern "C" void std::exit (int); using std::exit;' \
2094   'extern "C" void exit (int) throw ();' \
2095   'extern "C" void exit (int);' \
2096   'void exit (int);'
2097do
2098  cat >conftest.$ac_ext <<_ACEOF
2099#line 2099 "configure"
2100#include "confdefs.h"
2101#include <stdlib.h>
2102$ac_declaration
2103int
2104main ()
2105{
2106exit (42);
2107  ;
2108  return 0;
2109}
2110_ACEOF
2111rm -f conftest.$ac_objext
2112if { (eval echo "$as_me:2112: \"$ac_compile\"") >&5
2113  (eval $ac_compile) 2>&5
2114  ac_status=$?
2115  echo "$as_me:2115: \$? = $ac_status" >&5
2116  (exit $ac_status); } &&
2117         { ac_try='test -s conftest.$ac_objext'
2118  { (eval echo "$as_me:2118: \"$ac_try\"") >&5
2119  (eval $ac_try) 2>&5
2120  ac_status=$?
2121  echo "$as_me:2121: \$? = $ac_status" >&5
2122  (exit $ac_status); }; }; then
2123  :
2124else
2125  echo "$as_me: failed program was:" >&5
2126cat conftest.$ac_ext >&5
2127continue
2128fi
2129rm -f conftest.$ac_objext conftest.$ac_ext
2130  cat >conftest.$ac_ext <<_ACEOF
2131#line 2131 "configure"
2132#include "confdefs.h"
2133$ac_declaration
2134int
2135main ()
2136{
2137exit (42);
2138  ;
2139  return 0;
2140}
2141_ACEOF
2142rm -f conftest.$ac_objext
2143if { (eval echo "$as_me:2143: \"$ac_compile\"") >&5
2144  (eval $ac_compile) 2>&5
2145  ac_status=$?
2146  echo "$as_me:2146: \$? = $ac_status" >&5
2147  (exit $ac_status); } &&
2148         { ac_try='test -s conftest.$ac_objext'
2149  { (eval echo "$as_me:2149: \"$ac_try\"") >&5
2150  (eval $ac_try) 2>&5
2151  ac_status=$?
2152  echo "$as_me:2152: \$? = $ac_status" >&5
2153  (exit $ac_status); }; }; then
2154  break
2155else
2156  echo "$as_me: failed program was:" >&5
2157cat conftest.$ac_ext >&5
2158fi
2159rm -f conftest.$ac_objext conftest.$ac_ext
2160done
2161rm -f conftest*
2162if test -n "$ac_declaration"; then
2163  echo '#ifdef __cplusplus' >>confdefs.h
2164  echo $ac_declaration      >>confdefs.h
2165  echo '#endif'             >>confdefs.h
2166fi
2167
2168else
2169  echo "$as_me: failed program was:" >&5
2170cat conftest.$ac_ext >&5
2171fi
2172rm -f conftest.$ac_objext conftest.$ac_ext
2173ac_ext=c
2174ac_cpp='$CPP $CPPFLAGS'
2175ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2176ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2177ac_compiler_gnu=$ac_cv_c_compiler_gnu
2178
2179echo "$as_me:2179: checking for $CC option to accept ANSI C" >&5
2180echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2181if test "${ac_cv_prog_cc_stdc+set}" = set; then
2182  echo $ECHO_N "(cached) $ECHO_C" >&6
2183else
2184  ac_cv_prog_cc_stdc=no
2185ac_save_CC=$CC
2186cat >conftest.$ac_ext <<_ACEOF
2187#line 2187 "configure"
2188#include "confdefs.h"
2189#include <stdarg.h>
2190#include <stdio.h>
2191#include <sys/types.h>
2192#include <sys/stat.h>
2193/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2194struct buf { int x; };
2195FILE * (*rcsopen) (struct buf *, struct stat *, int);
2196static char *e (p, i)
2197     char **p;
2198     int i;
2199{
2200  return p[i];
2201}
2202static char *f (char * (*g) (char **, int), char **p, ...)
2203{
2204  char *s;
2205  va_list v;
2206  va_start (v,p);
2207  s = g (p, va_arg (v,int));
2208  va_end (v);
2209  return s;
2210}
2211int test (int i, double x);
2212struct s1 {int (*f) (int a);};
2213struct s2 {int (*f) (double a);};
2214int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2215int argc;
2216char **argv;
2217int
2218main ()
2219{
2220return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2221  ;
2222  return 0;
2223}
2224_ACEOF
2225# Don't try gcc -ansi; that turns off useful extensions and
2226# breaks some systems' header files.
2227# AIX			-qlanglvl=ansi
2228# Ultrix and OSF/1	-std1
2229# HP-UX 10.20 and later	-Ae
2230# HP-UX older versions	-Aa -D_HPUX_SOURCE
2231# SVR4			-Xc -D__EXTENSIONS__
2232for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2233do
2234  CC="$ac_save_CC $ac_arg"
2235  rm -f conftest.$ac_objext
2236if { (eval echo "$as_me:2236: \"$ac_compile\"") >&5
2237  (eval $ac_compile) 2>&5
2238  ac_status=$?
2239  echo "$as_me:2239: \$? = $ac_status" >&5
2240  (exit $ac_status); } &&
2241         { ac_try='test -s conftest.$ac_objext'
2242  { (eval echo "$as_me:2242: \"$ac_try\"") >&5
2243  (eval $ac_try) 2>&5
2244  ac_status=$?
2245  echo "$as_me:2245: \$? = $ac_status" >&5
2246  (exit $ac_status); }; }; then
2247  ac_cv_prog_cc_stdc=$ac_arg
2248break
2249else
2250  echo "$as_me: failed program was:" >&5
2251cat conftest.$ac_ext >&5
2252fi
2253rm -f conftest.$ac_objext
2254done
2255rm -f conftest.$ac_ext conftest.$ac_objext
2256CC=$ac_save_CC
2257
2258fi
2259
2260case "x$ac_cv_prog_cc_stdc" in
2261  x|xno)
2262    echo "$as_me:2262: result: none needed" >&5
2263echo "${ECHO_T}none needed" >&6 ;;
2264  *)
2265    echo "$as_me:2265: result: $ac_cv_prog_cc_stdc" >&5
2266echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2267    CC="$CC $ac_cv_prog_cc_stdc" ;;
2268esac
2269
2270echo "$as_me:2270: checking for an ANSI C-conforming const" >&5
2271echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
2272if test "${ac_cv_c_const+set}" = set; then
2273  echo $ECHO_N "(cached) $ECHO_C" >&6
2274else
2275  cat >conftest.$ac_ext <<_ACEOF
2276#line 2276 "configure"
2277#include "confdefs.h"
2278
2279int
2280main ()
2281{
2282/* FIXME: Include the comments suggested by Paul. */
2283#ifndef __cplusplus
2284  /* Ultrix mips cc rejects this.  */
2285  typedef int charset[2];
2286  const charset x;
2287  /* SunOS 4.1.1 cc rejects this.  */
2288  char const *const *ccp;
2289  char **p;
2290  /* NEC SVR4.0.2 mips cc rejects this.  */
2291  struct point {int x, y;};
2292  static struct point const zero = {0,0};
2293  /* AIX XL C 1.02.0.0 rejects this.
2294     It does not let you subtract one const X* pointer from another in
2295     an arm of an if-expression whose if-part is not a constant
2296     expression */
2297  const char *g = "string";
2298  ccp = &g + (g ? g-g : 0);
2299  /* HPUX 7.0 cc rejects these. */
2300  ++ccp;
2301  p = (char**) ccp;
2302  ccp = (char const *const *) p;
2303  { /* SCO 3.2v4 cc rejects this.  */
2304    char *t;
2305    char const *s = 0 ? (char *) 0 : (char const *) 0;
2306
2307    *t++ = 0;
2308  }
2309  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
2310    int x[] = {25, 17};
2311    const int *foo = &x[0];
2312    ++foo;
2313  }
2314  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2315    typedef const int *iptr;
2316    iptr p = 0;
2317    ++p;
2318  }
2319  { /* AIX XL C 1.02.0.0 rejects this saying
2320       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2321    struct s { int j; const int *ap[3]; };
2322    struct s *b; b->j = 5;
2323  }
2324  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2325    const int foo = 10;
2326  }
2327#endif
2328
2329  ;
2330  return 0;
2331}
2332_ACEOF
2333rm -f conftest.$ac_objext
2334if { (eval echo "$as_me:2334: \"$ac_compile\"") >&5
2335  (eval $ac_compile) 2>&5
2336  ac_status=$?
2337  echo "$as_me:2337: \$? = $ac_status" >&5
2338  (exit $ac_status); } &&
2339         { ac_try='test -s conftest.$ac_objext'
2340  { (eval echo "$as_me:2340: \"$ac_try\"") >&5
2341  (eval $ac_try) 2>&5
2342  ac_status=$?
2343  echo "$as_me:2343: \$? = $ac_status" >&5
2344  (exit $ac_status); }; }; then
2345  ac_cv_c_const=yes
2346else
2347  echo "$as_me: failed program was:" >&5
2348cat conftest.$ac_ext >&5
2349ac_cv_c_const=no
2350fi
2351rm -f conftest.$ac_objext conftest.$ac_ext
2352fi
2353echo "$as_me:2353: result: $ac_cv_c_const" >&5
2354echo "${ECHO_T}$ac_cv_c_const" >&6
2355if test $ac_cv_c_const = no; then
2356
2357cat >>confdefs.h <<\EOF
2358#define const
2359EOF
2360
2361fi
2362
2363# Find the correct PATH separator.  Usually this is `:', but
2364# DJGPP uses `;' like DOS.
2365if test "X${PATH_SEPARATOR+set}" != Xset; then
2366  UNAME=${UNAME-`uname 2>/dev/null`}
2367  case X$UNAME in
2368    *-DOS) PATH_SEPARATOR=';' ;;
2369    *)     PATH_SEPARATOR=':' ;;
2370  esac
2371fi
2372
2373# Check whether --enable-shared or --disable-shared was given.
2374if test "${enable_shared+set}" = set; then
2375  enableval="$enable_shared"
2376  p=${PACKAGE-default}
2377    case $enableval in
2378    yes) enable_shared=yes ;;
2379    no) enable_shared=no ;;
2380    *)
2381      enable_shared=no
2382      # Look at the argument we got.  We use all the common list separators.
2383      IFS="${IFS= 	}"; lt_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:},"
2384      for pkg in $enableval; do
2385        IFS="$lt_save_ifs"
2386        if test "X$pkg" = "X$p"; then
2387          enable_shared=yes
2388        fi
2389      done
2390      IFS="$lt_save_ifs"
2391      ;;
2392    esac
2393else
2394  enable_shared=yes
2395fi;
2396
2397# Check whether --enable-static or --disable-static was given.
2398if test "${enable_static+set}" = set; then
2399  enableval="$enable_static"
2400  p=${PACKAGE-default}
2401    case $enableval in
2402    yes) enable_static=yes ;;
2403    no) enable_static=no ;;
2404    *)
2405     enable_static=no
2406      # Look at the argument we got.  We use all the common list separators.
2407      IFS="${IFS= 	}"; lt_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:},"
2408      for pkg in $enableval; do
2409        IFS="$lt_save_ifs"
2410        if test "X$pkg" = "X$p"; then
2411          enable_static=yes
2412        fi
2413      done
2414      IFS="$lt_save_ifs"
2415      ;;
2416    esac
2417else
2418  enable_static=yes
2419fi;
2420
2421# Check whether --enable-fast-install or --disable-fast-install was given.
2422if test "${enable_fast_install+set}" = set; then
2423  enableval="$enable_fast_install"
2424  p=${PACKAGE-default}
2425    case $enableval in
2426    yes) enable_fast_install=yes ;;
2427    no) enable_fast_install=no ;;
2428    *)
2429      enable_fast_install=no
2430      # Look at the argument we got.  We use all the common list separators.
2431      IFS="${IFS= 	}"; lt_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:},"
2432      for pkg in $enableval; do
2433        IFS="$lt_save_ifs"
2434        if test "X$pkg" = "X$p"; then
2435          enable_fast_install=yes
2436        fi
2437      done
2438      IFS="$lt_save_ifs"
2439      ;;
2440    esac
2441else
2442  enable_fast_install=yes
2443fi;
2444
2445# Check whether --with-gnu-ld or --without-gnu-ld was given.
2446if test "${with_gnu_ld+set}" = set; then
2447  withval="$with_gnu_ld"
2448  test "$withval" = no || with_gnu_ld=yes
2449else
2450  with_gnu_ld=no
2451fi;
2452ac_prog=ld
2453if test "$GCC" = yes; then
2454  # Check if gcc -print-prog-name=ld gives a path.
2455  echo "$as_me:2455: checking for ld used by GCC" >&5
2456echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
2457  case $host in
2458  *-*-mingw*)
2459    # gcc leaves a trailing carriage return which upsets mingw
2460    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2461  *)
2462    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2463  esac
2464  case $ac_prog in
2465    # Accept absolute paths.
2466    [\\/]* | ?:[\\/]*)
2467      re_direlt='/[^/][^/]*/\.\./'
2468      # Canonicalize the path of ld
2469      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2470      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2471	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2472      done
2473      test -z "$LD" && LD="$ac_prog"
2474      ;;
2475  "")
2476    # If it fails, then pretend we aren't using GCC.
2477    ac_prog=ld
2478    ;;
2479  *)
2480    # If it is relative, then search for the first ld in PATH.
2481    with_gnu_ld=unknown
2482    ;;
2483  esac
2484elif test "$with_gnu_ld" = yes; then
2485  echo "$as_me:2485: checking for GNU ld" >&5
2486echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
2487else
2488  echo "$as_me:2488: checking for non-GNU ld" >&5
2489echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
2490fi
2491if test "${lt_cv_path_LD+set}" = set; then
2492  echo $ECHO_N "(cached) $ECHO_C" >&6
2493else
2494  if test -z "$LD"; then
2495  IFS="${IFS= 	}"; lt_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2496  for ac_dir in $PATH; do
2497    IFS="$lt_save_ifs"
2498    test -z "$ac_dir" && ac_dir=.
2499    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2500      lt_cv_path_LD="$ac_dir/$ac_prog"
2501      # Check to see if the program is GNU ld.  I'd rather use --version,
2502      # but apparently some GNU ld's only accept -v.
2503      # Break only if it was the GNU/non-GNU ld that we prefer.
2504      if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2505	test "$with_gnu_ld" != no && break
2506      else
2507	test "$with_gnu_ld" != yes && break
2508      fi
2509    fi
2510  done
2511  IFS="$lt_save_ifs"
2512else
2513  lt_cv_path_LD="$LD" # Let the user override the test with a path.
2514fi
2515fi
2516
2517LD="$lt_cv_path_LD"
2518if test -n "$LD"; then
2519  echo "$as_me:2519: result: $LD" >&5
2520echo "${ECHO_T}$LD" >&6
2521else
2522  echo "$as_me:2522: result: no" >&5
2523echo "${ECHO_T}no" >&6
2524fi
2525test -z "$LD" && { { echo "$as_me:2525: error: no acceptable ld found in \$PATH" >&5
2526echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
2527   { (exit 1); exit 1; }; }
2528echo "$as_me:2528: checking if the linker ($LD) is GNU ld" >&5
2529echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
2530if test "${lt_cv_prog_gnu_ld+set}" = set; then
2531  echo $ECHO_N "(cached) $ECHO_C" >&6
2532else
2533  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2534if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2535  lt_cv_prog_gnu_ld=yes
2536else
2537  lt_cv_prog_gnu_ld=no
2538fi
2539fi
2540echo "$as_me:2540: result: $lt_cv_prog_gnu_ld" >&5
2541echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
2542with_gnu_ld=$lt_cv_prog_gnu_ld
2543
2544echo "$as_me:2544: checking for $LD option to reload object files" >&5
2545echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
2546if test "${lt_cv_ld_reload_flag+set}" = set; then
2547  echo $ECHO_N "(cached) $ECHO_C" >&6
2548else
2549  lt_cv_ld_reload_flag='-r'
2550fi
2551echo "$as_me:2551: result: $lt_cv_ld_reload_flag" >&5
2552echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
2553reload_flag=$lt_cv_ld_reload_flag
2554case $reload_flag in
2555"" | " "*) ;;
2556*) reload_flag=" $reload_flag" ;;
2557esac
2558reload_cmds='$LD$reload_flag -o $output$reload_objs'
2559
2560echo "$as_me:2560: checking for BSD-compatible nm" >&5
2561echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
2562if test "${lt_cv_path_NM+set}" = set; then
2563  echo $ECHO_N "(cached) $ECHO_C" >&6
2564else
2565  if test -n "$NM"; then
2566  # Let the user override the test.
2567  lt_cv_path_NM="$NM"
2568else
2569  IFS="${IFS= 	}"; lt_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2570  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2571    IFS="$lt_save_ifs"
2572    test -z "$ac_dir" && ac_dir=.
2573    tmp_nm=$ac_dir/${ac_tool_prefix}nm
2574    if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
2575      # Check to see if the nm accepts a BSD-compat flag.
2576      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2577      #   nm: unknown option "B" ignored
2578      # Tru64's nm complains that /dev/null is an invalid object file
2579      if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
2580	lt_cv_path_NM="$tmp_nm -B"
2581	break
2582      elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2583	lt_cv_path_NM="$tmp_nm -p"
2584	break
2585      else
2586	lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2587	continue # so that we can try to find one that supports BSD flags
2588      fi
2589    fi
2590  done
2591  IFS="$lt_save_ifs"
2592  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2593fi
2594fi
2595echo "$as_me:2595: result: $lt_cv_path_NM" >&5
2596echo "${ECHO_T}$lt_cv_path_NM" >&6
2597NM="$lt_cv_path_NM"
2598
2599echo "$as_me:2599: checking whether ln -s works" >&5
2600echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2601LN_S=$as_ln_s
2602if test "$LN_S" = "ln -s"; then
2603  echo "$as_me:2603: result: yes" >&5
2604echo "${ECHO_T}yes" >&6
2605else
2606  echo "$as_me:2606: result: no, using $LN_S" >&5
2607echo "${ECHO_T}no, using $LN_S" >&6
2608fi
2609
2610echo "$as_me:2610: checking how to recognise dependant libraries" >&5
2611echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
2612if test "${lt_cv_deplibs_check_method+set}" = set; then
2613  echo $ECHO_N "(cached) $ECHO_C" >&6
2614else
2615  lt_cv_file_magic_cmd='$MAGIC_CMD'
2616lt_cv_file_magic_test_file=
2617lt_cv_deplibs_check_method='unknown'
2618# Need to set the preceding variable on all platforms that support
2619# interlibrary dependencies.
2620# 'none' -- dependencies not supported.
2621# `unknown' -- same as none, but documents that we really don't know.
2622# 'pass_all' -- all dependencies passed with no checks.
2623# 'test_compile' -- check by making test program.
2624# ['file_magic [regex]'] -- check by looking for files in library path
2625# which responds to the $file_magic_cmd with a given egrep regex.
2626# If you have `file' or equivalent on your system and you're not sure
2627# whether `pass_all' will *always* work, you probably want this one.
2628
2629case $host_os in
2630aix4* | aix5*)
2631  lt_cv_deplibs_check_method=pass_all
2632  ;;
2633
2634beos*)
2635  lt_cv_deplibs_check_method=pass_all
2636  ;;
2637
2638bsdi4*)
2639  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
2640  lt_cv_file_magic_cmd='/usr/bin/file -L'
2641  lt_cv_file_magic_test_file=/shlib/libc.so
2642  ;;
2643
2644cygwin* | mingw* | pw32*)
2645  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2646  lt_cv_file_magic_cmd='$OBJDUMP -f'
2647  ;;
2648
2649darwin* | rhapsody*)
2650  lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
2651  lt_cv_file_magic_cmd='/usr/bin/file -L'
2652  case "$host_os" in
2653  rhapsody* | darwin1.012)
2654    lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
2655    ;;
2656  *) # Darwin 1.3 on
2657    lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
2658    ;;
2659  esac
2660  ;;
2661
2662freebsd*)
2663  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2664    case $host_cpu in
2665    i*86 )
2666      # Not sure whether the presence of OpenBSD here was a mistake.
2667      # Let's accept both of them until this is cleared up.
2668      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
2669      lt_cv_file_magic_cmd=/usr/bin/file
2670      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2671      ;;
2672    esac
2673  else
2674    lt_cv_deplibs_check_method=pass_all
2675  fi
2676  ;;
2677
2678gnu*)
2679  lt_cv_deplibs_check_method=pass_all
2680  ;;
2681
2682hpux10.20* | hpux11*)
2683  lt_cv_file_magic_cmd=/usr/bin/file
2684  if test "$host_cpu" = ia64; then
2685    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
2686    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
2687  else
2688    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2689    lt_cv_file_magic_test_file=/usr/lib/libc.sl
2690  fi
2691  ;;
2692
2693irix5* | irix6*)
2694  case $host_os in
2695  irix5*)
2696    # this will be overridden with pass_all, but let us keep it just in case
2697    lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2698    ;;
2699  *)
2700    case $LD in
2701    *-32|*"-32 ") libmagic=32-bit;;
2702    *-n32|*"-n32 ") libmagic=N32;;
2703    *-64|*"-64 ") libmagic=64-bit;;
2704    *) libmagic=never-match;;
2705    esac
2706    # this will be overridden with pass_all, but let us keep it just in case
2707    lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2708    ;;
2709  esac
2710  lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2711  lt_cv_deplibs_check_method=pass_all
2712  ;;
2713
2714# This must be Linux ELF.
2715linux*)
2716  case $host_cpu in
2717  alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
2718    lt_cv_deplibs_check_method=pass_all ;;
2719  *)
2720    # glibc up to 2.1.1 does not perform some relocations on ARM
2721    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2722  esac
2723  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2724  ;;
2725
2726netbsd*)
2727  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2728    lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2729  else
2730    lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2731  fi
2732  ;;
2733
2734newos6*)
2735  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2736  lt_cv_file_magic_cmd=/usr/bin/file
2737  lt_cv_file_magic_test_file=/usr/lib/libnls.so
2738  ;;
2739
2740nto-qnx)
2741  lt_cv_deplibs_check_method=unknown
2742  ;;
2743
2744osf3* | osf4* | osf5*)
2745  # this will be overridden with pass_all, but let us keep it just in case
2746  lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2747  lt_cv_file_magic_test_file=/shlib/libc.so
2748  lt_cv_deplibs_check_method=pass_all
2749  ;;
2750
2751sco3.2v5*)
2752  lt_cv_deplibs_check_method=pass_all
2753  ;;
2754
2755solaris*)
2756  lt_cv_deplibs_check_method=pass_all
2757  lt_cv_file_magic_test_file=/lib/libc.so
2758  ;;
2759
2760sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2761  case $host_vendor in
2762  motorola)
2763    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]'
2764    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2765    ;;
2766  ncr)
2767    lt_cv_deplibs_check_method=pass_all
2768    ;;
2769  sequent)
2770    lt_cv_file_magic_cmd='/bin/file'
2771    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
2772    ;;
2773  sni)
2774    lt_cv_file_magic_cmd='/bin/file'
2775    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
2776    lt_cv_file_magic_test_file=/lib/libc.so
2777    ;;
2778  esac
2779  ;;
2780
2781sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
2782  lt_cv_deplibs_check_method=pass_all
2783  ;;
2784esac
2785
2786fi
2787echo "$as_me:2787: result: $lt_cv_deplibs_check_method" >&5
2788echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
2789file_magic_cmd=$lt_cv_file_magic_cmd
2790deplibs_check_method=$lt_cv_deplibs_check_method
2791test -z "$deplibs_check_method" && deplibs_check_method=unknown
2792
2793# If no C compiler was specified, use CC.
2794LTCC=${LTCC-"$CC"}
2795
2796# Allow CC to be a program name with arguments.
2797set dummy $CC
2798compiler="$2"
2799
2800# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2801if test "${enable_libtool_lock+set}" = set; then
2802  enableval="$enable_libtool_lock"
2803
2804fi;
2805test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
2806
2807# Some flags need to be propagated to the compiler or linker for good
2808# libtool support.
2809case $host in
2810ia64-*-hpux*)
2811  # Find out which ABI we are using.
2812  echo 'int i;' > conftest.$ac_ext
2813  if { (eval echo "$as_me:2813: \"$ac_compile\"") >&5
2814  (eval $ac_compile) 2>&5
2815  ac_status=$?
2816  echo "$as_me:2816: \$? = $ac_status" >&5
2817  (exit $ac_status); }; then
2818    case `/usr/bin/file conftest.$ac_objext` in
2819    *ELF-32*)
2820      HPUX_IA64_MODE="32"
2821      ;;
2822    *ELF-64*)
2823      HPUX_IA64_MODE="64"
2824      ;;
2825    esac
2826  fi
2827  rm -rf conftest*
2828  ;;
2829*-*-irix6*)
2830  # Find out which ABI we are using.
2831  echo '#line 2831 "configure"' > conftest.$ac_ext
2832  if { (eval echo "$as_me:2832: \"$ac_compile\"") >&5
2833  (eval $ac_compile) 2>&5
2834  ac_status=$?
2835  echo "$as_me:2835: \$? = $ac_status" >&5
2836  (exit $ac_status); }; then
2837    case `/usr/bin/file conftest.$ac_objext` in
2838    *32-bit*)
2839      LD="${LD-ld} -32"
2840      ;;
2841    *N32*)
2842      LD="${LD-ld} -n32"
2843      ;;
2844    *64-bit*)
2845      LD="${LD-ld} -64"
2846      ;;
2847    esac
2848  fi
2849  rm -rf conftest*
2850  ;;
2851
2852*-*-sco3.2v5*)
2853  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2854  SAVE_CFLAGS="$CFLAGS"
2855  CFLAGS="$CFLAGS -belf"
2856  echo "$as_me:2856: checking whether the C compiler needs -belf" >&5
2857echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
2858if test "${lt_cv_cc_needs_belf+set}" = set; then
2859  echo $ECHO_N "(cached) $ECHO_C" >&6
2860else
2861  ac_ext=c
2862ac_cpp='$CPP $CPPFLAGS'
2863ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2864ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2865ac_compiler_gnu=$ac_cv_c_compiler_gnu
2866
2867     cat >conftest.$ac_ext <<_ACEOF
2868#line 2868 "configure"
2869#include "confdefs.h"
2870
2871int
2872main ()
2873{
2874
2875  ;
2876  return 0;
2877}
2878_ACEOF
2879rm -f conftest.$ac_objext conftest$ac_exeext
2880if { (eval echo "$as_me:2880: \"$ac_link\"") >&5
2881  (eval $ac_link) 2>&5
2882  ac_status=$?
2883  echo "$as_me:2883: \$? = $ac_status" >&5
2884  (exit $ac_status); } &&
2885         { ac_try='test -s conftest$ac_exeext'
2886  { (eval echo "$as_me:2886: \"$ac_try\"") >&5
2887  (eval $ac_try) 2>&5
2888  ac_status=$?
2889  echo "$as_me:2889: \$? = $ac_status" >&5
2890  (exit $ac_status); }; }; then
2891  lt_cv_cc_needs_belf=yes
2892else
2893  echo "$as_me: failed program was:" >&5
2894cat conftest.$ac_ext >&5
2895lt_cv_cc_needs_belf=no
2896fi
2897rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2898     ac_ext=c
2899ac_cpp='$CPP $CPPFLAGS'
2900ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2901ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2902ac_compiler_gnu=$ac_cv_c_compiler_gnu
2903
2904fi
2905echo "$as_me:2905: result: $lt_cv_cc_needs_belf" >&5
2906echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
2907  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2908    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2909    CFLAGS="$SAVE_CFLAGS"
2910  fi
2911  ;;
2912
2913esac
2914
2915need_locks="$enable_libtool_lock"
2916
2917ac_ext=c
2918ac_cpp='$CPP $CPPFLAGS'
2919ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2920ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2921ac_compiler_gnu=$ac_cv_c_compiler_gnu
2922echo "$as_me:2922: checking how to run the C preprocessor" >&5
2923echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2924# On Suns, sometimes $CPP names a directory.
2925if test -n "$CPP" && test -d "$CPP"; then
2926  CPP=
2927fi
2928if test -z "$CPP"; then
2929  if test "${ac_cv_prog_CPP+set}" = set; then
2930  echo $ECHO_N "(cached) $ECHO_C" >&6
2931else
2932      # Double quotes because CPP needs to be expanded
2933    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2934    do
2935      ac_preproc_ok=false
2936for ac_c_preproc_warn_flag in '' yes
2937do
2938  # Use a header file that comes with gcc, so configuring glibc
2939  # with a fresh cross-compiler works.
2940  # On the NeXT, cc -E runs the code through the compiler's parser,
2941  # not just through cpp. "Syntax error" is here to catch this case.
2942  cat >conftest.$ac_ext <<_ACEOF
2943#line 2943 "configure"
2944#include "confdefs.h"
2945#include <assert.h>
2946                     Syntax error
2947_ACEOF
2948if { (eval echo "$as_me:2948: \"$ac_cpp conftest.$ac_ext\"") >&5
2949  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2950  ac_status=$?
2951  egrep -v '^ *\+' conftest.er1 >conftest.err
2952  rm -f conftest.er1
2953  cat conftest.err >&5
2954  echo "$as_me:2954: \$? = $ac_status" >&5
2955  (exit $ac_status); } >/dev/null; then
2956  if test -s conftest.err; then
2957    ac_cpp_err=$ac_c_preproc_warn_flag
2958  else
2959    ac_cpp_err=
2960  fi
2961else
2962  ac_cpp_err=yes
2963fi
2964if test -z "$ac_cpp_err"; then
2965  :
2966else
2967  echo "$as_me: failed program was:" >&5
2968  cat conftest.$ac_ext >&5
2969  # Broken: fails on valid input.
2970continue
2971fi
2972rm -f conftest.err conftest.$ac_ext
2973
2974  # OK, works on sane cases.  Now check whether non-existent headers
2975  # can be detected and how.
2976  cat >conftest.$ac_ext <<_ACEOF
2977#line 2977 "configure"
2978#include "confdefs.h"
2979#include <ac_nonexistent.h>
2980_ACEOF
2981if { (eval echo "$as_me:2981: \"$ac_cpp conftest.$ac_ext\"") >&5
2982  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2983  ac_status=$?
2984  egrep -v '^ *\+' conftest.er1 >conftest.err
2985  rm -f conftest.er1
2986  cat conftest.err >&5
2987  echo "$as_me:2987: \$? = $ac_status" >&5
2988  (exit $ac_status); } >/dev/null; then
2989  if test -s conftest.err; then
2990    ac_cpp_err=$ac_c_preproc_warn_flag
2991  else
2992    ac_cpp_err=
2993  fi
2994else
2995  ac_cpp_err=yes
2996fi
2997if test -z "$ac_cpp_err"; then
2998  # Broken: success on invalid input.
2999continue
3000else
3001  echo "$as_me: failed program was:" >&5
3002  cat conftest.$ac_ext >&5
3003  # Passes both tests.
3004ac_preproc_ok=:
3005break
3006fi
3007rm -f conftest.err conftest.$ac_ext
3008
3009done
3010# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3011rm -f conftest.err conftest.$ac_ext
3012if $ac_preproc_ok; then
3013  break
3014fi
3015
3016    done
3017    ac_cv_prog_CPP=$CPP
3018
3019fi
3020  CPP=$ac_cv_prog_CPP
3021else
3022  ac_cv_prog_CPP=$CPP
3023fi
3024echo "$as_me:3024: result: $CPP" >&5
3025echo "${ECHO_T}$CPP" >&6
3026ac_preproc_ok=false
3027for ac_c_preproc_warn_flag in '' yes
3028do
3029  # Use a header file that comes with gcc, so configuring glibc
3030  # with a fresh cross-compiler works.
3031  # On the NeXT, cc -E runs the code through the compiler's parser,
3032  # not just through cpp. "Syntax error" is here to catch this case.
3033  cat >conftest.$ac_ext <<_ACEOF
3034#line 3034 "configure"
3035#include "confdefs.h"
3036#include <assert.h>
3037                     Syntax error
3038_ACEOF
3039if { (eval echo "$as_me:3039: \"$ac_cpp conftest.$ac_ext\"") >&5
3040  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3041  ac_status=$?
3042  egrep -v '^ *\+' conftest.er1 >conftest.err
3043  rm -f conftest.er1
3044  cat conftest.err >&5
3045  echo "$as_me:3045: \$? = $ac_status" >&5
3046  (exit $ac_status); } >/dev/null; then
3047  if test -s conftest.err; then
3048    ac_cpp_err=$ac_c_preproc_warn_flag
3049  else
3050    ac_cpp_err=
3051  fi
3052else
3053  ac_cpp_err=yes
3054fi
3055if test -z "$ac_cpp_err"; then
3056  :
3057else
3058  echo "$as_me: failed program was:" >&5
3059  cat conftest.$ac_ext >&5
3060  # Broken: fails on valid input.
3061continue
3062fi
3063rm -f conftest.err conftest.$ac_ext
3064
3065  # OK, works on sane cases.  Now check whether non-existent headers
3066  # can be detected and how.
3067  cat >conftest.$ac_ext <<_ACEOF
3068#line 3068 "configure"
3069#include "confdefs.h"
3070#include <ac_nonexistent.h>
3071_ACEOF
3072if { (eval echo "$as_me:3072: \"$ac_cpp conftest.$ac_ext\"") >&5
3073  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3074  ac_status=$?
3075  egrep -v '^ *\+' conftest.er1 >conftest.err
3076  rm -f conftest.er1
3077  cat conftest.err >&5
3078  echo "$as_me:3078: \$? = $ac_status" >&5
3079  (exit $ac_status); } >/dev/null; then
3080  if test -s conftest.err; then
3081    ac_cpp_err=$ac_c_preproc_warn_flag
3082  else
3083    ac_cpp_err=
3084  fi
3085else
3086  ac_cpp_err=yes
3087fi
3088if test -z "$ac_cpp_err"; then
3089  # Broken: success on invalid input.
3090continue
3091else
3092  echo "$as_me: failed program was:" >&5
3093  cat conftest.$ac_ext >&5
3094  # Passes both tests.
3095ac_preproc_ok=:
3096break
3097fi
3098rm -f conftest.err conftest.$ac_ext
3099
3100done
3101# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3102rm -f conftest.err conftest.$ac_ext
3103if $ac_preproc_ok; then
3104  :
3105else
3106  { { echo "$as_me:3106: error: C preprocessor \"$CPP\" fails sanity check" >&5
3107echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3108   { (exit 1); exit 1; }; }
3109fi
3110
3111ac_ext=c
3112ac_cpp='$CPP $CPPFLAGS'
3113ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3114ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3115ac_compiler_gnu=$ac_cv_c_compiler_gnu
3116
3117for ac_header in dlfcn.h
3118do
3119as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3120echo "$as_me:3120: checking for $ac_header" >&5
3121echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3122if eval "test \"\${$as_ac_Header+set}\" = set"; then
3123  echo $ECHO_N "(cached) $ECHO_C" >&6
3124else
3125  cat >conftest.$ac_ext <<_ACEOF
3126#line 3126 "configure"
3127#include "confdefs.h"
3128#include <$ac_header>
3129_ACEOF
3130if { (eval echo "$as_me:3130: \"$ac_cpp conftest.$ac_ext\"") >&5
3131  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3132  ac_status=$?
3133  egrep -v '^ *\+' conftest.er1 >conftest.err
3134  rm -f conftest.er1
3135  cat conftest.err >&5
3136  echo "$as_me:3136: \$? = $ac_status" >&5
3137  (exit $ac_status); } >/dev/null; then
3138  if test -s conftest.err; then
3139    ac_cpp_err=$ac_c_preproc_warn_flag
3140  else
3141    ac_cpp_err=
3142  fi
3143else
3144  ac_cpp_err=yes
3145fi
3146if test -z "$ac_cpp_err"; then
3147  eval "$as_ac_Header=yes"
3148else
3149  echo "$as_me: failed program was:" >&5
3150  cat conftest.$ac_ext >&5
3151  eval "$as_ac_Header=no"
3152fi
3153rm -f conftest.err conftest.$ac_ext
3154fi
3155echo "$as_me:3155: result: `eval echo '${'$as_ac_Header'}'`" >&5
3156echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3157if test `eval echo '${'$as_ac_Header'}'` = yes; then
3158  cat >>confdefs.h <<EOF
3159#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3160EOF
3161
3162fi
3163done
3164
3165ac_ext=cc
3166ac_cpp='$CXXCPP $CPPFLAGS'
3167ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3168ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3169ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3170if test -n "$ac_tool_prefix"; then
3171  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3172  do
3173    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3174set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3175echo "$as_me:3175: checking for $ac_word" >&5
3176echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3177if test "${ac_cv_prog_CXX+set}" = set; then
3178  echo $ECHO_N "(cached) $ECHO_C" >&6
3179else
3180  if test -n "$CXX"; then
3181  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3182else
3183  ac_save_IFS=$IFS; IFS=$ac_path_separator
3184ac_dummy="$PATH"
3185for ac_dir in $ac_dummy; do
3186  IFS=$ac_save_IFS
3187  test -z "$ac_dir" && ac_dir=.
3188  $as_executable_p "$ac_dir/$ac_word" || continue
3189ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3190echo "$as_me:3190: found $ac_dir/$ac_word" >&5
3191break
3192done
3193
3194fi
3195fi
3196CXX=$ac_cv_prog_CXX
3197if test -n "$CXX"; then
3198  echo "$as_me:3198: result: $CXX" >&5
3199echo "${ECHO_T}$CXX" >&6
3200else
3201  echo "$as_me:3201: result: no" >&5
3202echo "${ECHO_T}no" >&6
3203fi
3204
3205    test -n "$CXX" && break
3206  done
3207fi
3208if test -z "$CXX"; then
3209  ac_ct_CXX=$CXX
3210  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3211do
3212  # Extract the first word of "$ac_prog", so it can be a program name with args.
3213set dummy $ac_prog; ac_word=$2
3214echo "$as_me:3214: checking for $ac_word" >&5
3215echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3216if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3217  echo $ECHO_N "(cached) $ECHO_C" >&6
3218else
3219  if test -n "$ac_ct_CXX"; then
3220  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3221else
3222  ac_save_IFS=$IFS; IFS=$ac_path_separator
3223ac_dummy="$PATH"
3224for ac_dir in $ac_dummy; do
3225  IFS=$ac_save_IFS
3226  test -z "$ac_dir" && ac_dir=.
3227  $as_executable_p "$ac_dir/$ac_word" || continue
3228ac_cv_prog_ac_ct_CXX="$ac_prog"
3229echo "$as_me:3229: found $ac_dir/$ac_word" >&5
3230break
3231done
3232
3233fi
3234fi
3235ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3236if test -n "$ac_ct_CXX"; then
3237  echo "$as_me:3237: result: $ac_ct_CXX" >&5
3238echo "${ECHO_T}$ac_ct_CXX" >&6
3239else
3240  echo "$as_me:3240: result: no" >&5
3241echo "${ECHO_T}no" >&6
3242fi
3243
3244  test -n "$ac_ct_CXX" && break
3245done
3246test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3247
3248  CXX=$ac_ct_CXX
3249fi
3250
3251# Provide some information about the compiler.
3252echo "$as_me:3252:" \
3253     "checking for C++ compiler version" >&5
3254ac_compiler=`set X $ac_compile; echo $2`
3255{ (eval echo "$as_me:3255: \"$ac_compiler --version </dev/null >&5\"") >&5
3256  (eval $ac_compiler --version </dev/null >&5) 2>&5
3257  ac_status=$?
3258  echo "$as_me:3258: \$? = $ac_status" >&5
3259  (exit $ac_status); }
3260{ (eval echo "$as_me:3260: \"$ac_compiler -v </dev/null >&5\"") >&5
3261  (eval $ac_compiler -v </dev/null >&5) 2>&5
3262  ac_status=$?
3263  echo "$as_me:3263: \$? = $ac_status" >&5
3264  (exit $ac_status); }
3265{ (eval echo "$as_me:3265: \"$ac_compiler -V </dev/null >&5\"") >&5
3266  (eval $ac_compiler -V </dev/null >&5) 2>&5
3267  ac_status=$?
3268  echo "$as_me:3268: \$? = $ac_status" >&5
3269  (exit $ac_status); }
3270
3271echo "$as_me:3271: checking whether we are using the GNU C++ compiler" >&5
3272echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3273if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3274  echo $ECHO_N "(cached) $ECHO_C" >&6
3275else
3276  cat >conftest.$ac_ext <<_ACEOF
3277#line 3277 "configure"
3278#include "confdefs.h"
3279
3280int
3281main ()
3282{
3283#ifndef __GNUC__
3284       choke me
3285#endif
3286
3287  ;
3288  return 0;
3289}
3290_ACEOF
3291rm -f conftest.$ac_objext
3292if { (eval echo "$as_me:3292: \"$ac_compile\"") >&5
3293  (eval $ac_compile) 2>&5
3294  ac_status=$?
3295  echo "$as_me:3295: \$? = $ac_status" >&5
3296  (exit $ac_status); } &&
3297         { ac_try='test -s conftest.$ac_objext'
3298  { (eval echo "$as_me:3298: \"$ac_try\"") >&5
3299  (eval $ac_try) 2>&5
3300  ac_status=$?
3301  echo "$as_me:3301: \$? = $ac_status" >&5
3302  (exit $ac_status); }; }; then
3303  ac_compiler_gnu=yes
3304else
3305  echo "$as_me: failed program was:" >&5
3306cat conftest.$ac_ext >&5
3307ac_compiler_gnu=no
3308fi
3309rm -f conftest.$ac_objext conftest.$ac_ext
3310ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3311
3312fi
3313echo "$as_me:3313: result: $ac_cv_cxx_compiler_gnu" >&5
3314echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3315GXX=`test $ac_compiler_gnu = yes && echo yes`
3316ac_test_CXXFLAGS=${CXXFLAGS+set}
3317ac_save_CXXFLAGS=$CXXFLAGS
3318CXXFLAGS="-g"
3319echo "$as_me:3319: checking whether $CXX accepts -g" >&5
3320echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3321if test "${ac_cv_prog_cxx_g+set}" = set; then
3322  echo $ECHO_N "(cached) $ECHO_C" >&6
3323else
3324  cat >conftest.$ac_ext <<_ACEOF
3325#line 3325 "configure"
3326#include "confdefs.h"
3327
3328int
3329main ()
3330{
3331
3332  ;
3333  return 0;
3334}
3335_ACEOF
3336rm -f conftest.$ac_objext
3337if { (eval echo "$as_me:3337: \"$ac_compile\"") >&5
3338  (eval $ac_compile) 2>&5
3339  ac_status=$?
3340  echo "$as_me:3340: \$? = $ac_status" >&5
3341  (exit $ac_status); } &&
3342         { ac_try='test -s conftest.$ac_objext'
3343  { (eval echo "$as_me:3343: \"$ac_try\"") >&5
3344  (eval $ac_try) 2>&5
3345  ac_status=$?
3346  echo "$as_me:3346: \$? = $ac_status" >&5
3347  (exit $ac_status); }; }; then
3348  ac_cv_prog_cxx_g=yes
3349else
3350  echo "$as_me: failed program was:" >&5
3351cat conftest.$ac_ext >&5
3352ac_cv_prog_cxx_g=no
3353fi
3354rm -f conftest.$ac_objext conftest.$ac_ext
3355fi
3356echo "$as_me:3356: result: $ac_cv_prog_cxx_g" >&5
3357echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3358if test "$ac_test_CXXFLAGS" = set; then
3359  CXXFLAGS=$ac_save_CXXFLAGS
3360elif test $ac_cv_prog_cxx_g = yes; then
3361  if test "$GXX" = yes; then
3362    CXXFLAGS="-g -O2"
3363  else
3364    CXXFLAGS="-g"
3365  fi
3366else
3367  if test "$GXX" = yes; then
3368    CXXFLAGS="-O2"
3369  else
3370    CXXFLAGS=
3371  fi
3372fi
3373for ac_declaration in \
3374   ''\
3375   '#include <stdlib.h>' \
3376   'extern "C" void std::exit (int) throw (); using std::exit;' \
3377   'extern "C" void std::exit (int); using std::exit;' \
3378   'extern "C" void exit (int) throw ();' \
3379   'extern "C" void exit (int);' \
3380   'void exit (int);'
3381do
3382  cat >conftest.$ac_ext <<_ACEOF
3383#line 3383 "configure"
3384#include "confdefs.h"
3385#include <stdlib.h>
3386$ac_declaration
3387int
3388main ()
3389{
3390exit (42);
3391  ;
3392  return 0;
3393}
3394_ACEOF
3395rm -f conftest.$ac_objext
3396if { (eval echo "$as_me:3396: \"$ac_compile\"") >&5
3397  (eval $ac_compile) 2>&5
3398  ac_status=$?
3399  echo "$as_me:3399: \$? = $ac_status" >&5
3400  (exit $ac_status); } &&
3401         { ac_try='test -s conftest.$ac_objext'
3402  { (eval echo "$as_me:3402: \"$ac_try\"") >&5
3403  (eval $ac_try) 2>&5
3404  ac_status=$?
3405  echo "$as_me:3405: \$? = $ac_status" >&5
3406  (exit $ac_status); }; }; then
3407  :
3408else
3409  echo "$as_me: failed program was:" >&5
3410cat conftest.$ac_ext >&5
3411continue
3412fi
3413rm -f conftest.$ac_objext conftest.$ac_ext
3414  cat >conftest.$ac_ext <<_ACEOF
3415#line 3415 "configure"
3416#include "confdefs.h"
3417$ac_declaration
3418int
3419main ()
3420{
3421exit (42);
3422  ;
3423  return 0;
3424}
3425_ACEOF
3426rm -f conftest.$ac_objext
3427if { (eval echo "$as_me:3427: \"$ac_compile\"") >&5
3428  (eval $ac_compile) 2>&5
3429  ac_status=$?
3430  echo "$as_me:3430: \$? = $ac_status" >&5
3431  (exit $ac_status); } &&
3432         { ac_try='test -s conftest.$ac_objext'
3433  { (eval echo "$as_me:3433: \"$ac_try\"") >&5
3434  (eval $ac_try) 2>&5
3435  ac_status=$?
3436  echo "$as_me:3436: \$? = $ac_status" >&5
3437  (exit $ac_status); }; }; then
3438  break
3439else
3440  echo "$as_me: failed program was:" >&5
3441cat conftest.$ac_ext >&5
3442fi
3443rm -f conftest.$ac_objext conftest.$ac_ext
3444done
3445rm -f conftest*
3446if test -n "$ac_declaration"; then
3447  echo '#ifdef __cplusplus' >>confdefs.h
3448  echo $ac_declaration      >>confdefs.h
3449  echo '#endif'             >>confdefs.h
3450fi
3451
3452ac_ext=cc
3453ac_cpp='$CXXCPP $CPPFLAGS'
3454ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3455ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3456ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3457
3458ac_ext=cc
3459ac_cpp='$CXXCPP $CPPFLAGS'
3460ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3461ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3462ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3463echo "$as_me:3463: checking how to run the C++ preprocessor" >&5
3464echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
3465if test -z "$CXXCPP"; then
3466  if test "${ac_cv_prog_CXXCPP+set}" = set; then
3467  echo $ECHO_N "(cached) $ECHO_C" >&6
3468else
3469      # Double quotes because CXXCPP needs to be expanded
3470    for CXXCPP in "$CXX -E" "/lib/cpp"
3471    do
3472      ac_preproc_ok=false
3473for ac_cxx_preproc_warn_flag in '' yes
3474do
3475  # Use a header file that comes with gcc, so configuring glibc
3476  # with a fresh cross-compiler works.
3477  # On the NeXT, cc -E runs the code through the compiler's parser,
3478  # not just through cpp. "Syntax error" is here to catch this case.
3479  cat >conftest.$ac_ext <<_ACEOF
3480#line 3480 "configure"
3481#include "confdefs.h"
3482#include <assert.h>
3483                     Syntax error
3484_ACEOF
3485if { (eval echo "$as_me:3485: \"$ac_cpp conftest.$ac_ext\"") >&5
3486  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3487  ac_status=$?
3488  egrep -v '^ *\+' conftest.er1 >conftest.err
3489  rm -f conftest.er1
3490  cat conftest.err >&5
3491  echo "$as_me:3491: \$? = $ac_status" >&5
3492  (exit $ac_status); } >/dev/null; then
3493  if test -s conftest.err; then
3494    ac_cpp_err=$ac_cxx_preproc_warn_flag
3495  else
3496    ac_cpp_err=
3497  fi
3498else
3499  ac_cpp_err=yes
3500fi
3501if test -z "$ac_cpp_err"; then
3502  :
3503else
3504  echo "$as_me: failed program was:" >&5
3505  cat conftest.$ac_ext >&5
3506  # Broken: fails on valid input.
3507continue
3508fi
3509rm -f conftest.err conftest.$ac_ext
3510
3511  # OK, works on sane cases.  Now check whether non-existent headers
3512  # can be detected and how.
3513  cat >conftest.$ac_ext <<_ACEOF
3514#line 3514 "configure"
3515#include "confdefs.h"
3516#include <ac_nonexistent.h>
3517_ACEOF
3518if { (eval echo "$as_me:3518: \"$ac_cpp conftest.$ac_ext\"") >&5
3519  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3520  ac_status=$?
3521  egrep -v '^ *\+' conftest.er1 >conftest.err
3522  rm -f conftest.er1
3523  cat conftest.err >&5
3524  echo "$as_me:3524: \$? = $ac_status" >&5
3525  (exit $ac_status); } >/dev/null; then
3526  if test -s conftest.err; then
3527    ac_cpp_err=$ac_cxx_preproc_warn_flag
3528  else
3529    ac_cpp_err=
3530  fi
3531else
3532  ac_cpp_err=yes
3533fi
3534if test -z "$ac_cpp_err"; then
3535  # Broken: success on invalid input.
3536continue
3537else
3538  echo "$as_me: failed program was:" >&5
3539  cat conftest.$ac_ext >&5
3540  # Passes both tests.
3541ac_preproc_ok=:
3542break
3543fi
3544rm -f conftest.err conftest.$ac_ext
3545
3546done
3547# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3548rm -f conftest.err conftest.$ac_ext
3549if $ac_preproc_ok; then
3550  break
3551fi
3552
3553    done
3554    ac_cv_prog_CXXCPP=$CXXCPP
3555
3556fi
3557  CXXCPP=$ac_cv_prog_CXXCPP
3558else
3559  ac_cv_prog_CXXCPP=$CXXCPP
3560fi
3561echo "$as_me:3561: result: $CXXCPP" >&5
3562echo "${ECHO_T}$CXXCPP" >&6
3563ac_preproc_ok=false
3564for ac_cxx_preproc_warn_flag in '' yes
3565do
3566  # Use a header file that comes with gcc, so configuring glibc
3567  # with a fresh cross-compiler works.
3568  # On the NeXT, cc -E runs the code through the compiler's parser,
3569  # not just through cpp. "Syntax error" is here to catch this case.
3570  cat >conftest.$ac_ext <<_ACEOF
3571#line 3571 "configure"
3572#include "confdefs.h"
3573#include <assert.h>
3574                     Syntax error
3575_ACEOF
3576if { (eval echo "$as_me:3576: \"$ac_cpp conftest.$ac_ext\"") >&5
3577  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3578  ac_status=$?
3579  egrep -v '^ *\+' conftest.er1 >conftest.err
3580  rm -f conftest.er1
3581  cat conftest.err >&5
3582  echo "$as_me:3582: \$? = $ac_status" >&5
3583  (exit $ac_status); } >/dev/null; then
3584  if test -s conftest.err; then
3585    ac_cpp_err=$ac_cxx_preproc_warn_flag
3586  else
3587    ac_cpp_err=
3588  fi
3589else
3590  ac_cpp_err=yes
3591fi
3592if test -z "$ac_cpp_err"; then
3593  :
3594else
3595  echo "$as_me: failed program was:" >&5
3596  cat conftest.$ac_ext >&5
3597  # Broken: fails on valid input.
3598continue
3599fi
3600rm -f conftest.err conftest.$ac_ext
3601
3602  # OK, works on sane cases.  Now check whether non-existent headers
3603  # can be detected and how.
3604  cat >conftest.$ac_ext <<_ACEOF
3605#line 3605 "configure"
3606#include "confdefs.h"
3607#include <ac_nonexistent.h>
3608_ACEOF
3609if { (eval echo "$as_me:3609: \"$ac_cpp conftest.$ac_ext\"") >&5
3610  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3611  ac_status=$?
3612  egrep -v '^ *\+' conftest.er1 >conftest.err
3613  rm -f conftest.er1
3614  cat conftest.err >&5
3615  echo "$as_me:3615: \$? = $ac_status" >&5
3616  (exit $ac_status); } >/dev/null; then
3617  if test -s conftest.err; then
3618    ac_cpp_err=$ac_cxx_preproc_warn_flag
3619  else
3620    ac_cpp_err=
3621  fi
3622else
3623  ac_cpp_err=yes
3624fi
3625if test -z "$ac_cpp_err"; then
3626  # Broken: success on invalid input.
3627continue
3628else
3629  echo "$as_me: failed program was:" >&5
3630  cat conftest.$ac_ext >&5
3631  # Passes both tests.
3632ac_preproc_ok=:
3633break
3634fi
3635rm -f conftest.err conftest.$ac_ext
3636
3637done
3638# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3639rm -f conftest.err conftest.$ac_ext
3640if $ac_preproc_ok; then
3641  :
3642else
3643  { { echo "$as_me:3643: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
3644echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
3645   { (exit 1); exit 1; }; }
3646fi
3647
3648ac_ext=cc
3649ac_cpp='$CXXCPP $CPPFLAGS'
3650ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3651ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3652ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3653
3654# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
3655
3656# find the maximum length of command line arguments
3657echo "$as_me:3657: checking the maximum length of command line arguments" >&5
3658echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
3659if test "${lt_cv_sys_max_cmd_len+set}" = set; then
3660  echo $ECHO_N "(cached) $ECHO_C" >&6
3661else
3662    i=0
3663  testring="ABCD"
3664
3665  case $host_os in
3666  msdosdjgpp*)
3667    # On DJGPP, this test can blow up pretty badly due to problems in libc
3668    # (any single argument exceeding 2000 bytes causes a buffer overrun
3669    # during glob expansion).  Even if it were fixed, the result of this
3670    # check would be larger than it should be.
3671    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
3672    ;;
3673
3674  gnu*)
3675    # Under GNU Hurd, this test is not required because there is
3676    # no limit to the length of command line arguments.
3677    # Libtool will interpret -1 as no limit whatsoever
3678    lt_cv_sys_max_cmd_len=-1;
3679    ;;
3680
3681  *)
3682    # If test is not a shell built-in, we'll probably end up computing a
3683    # maximum length that is only half of the actual maximum length, but
3684    # we can't tell.
3685    while test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
3686               = "XX$testring" &&
3687            new_result=`expr "X$testring" : ".*" 2>&1` &&
3688            lt_cv_sys_max_cmd_len=$new_result &&
3689            test $i != 17 # 1/2 MB should be enough
3690    do
3691      i=`expr $i + 1`
3692      testring=$testring$testring
3693    done
3694    testring=
3695    # add a significant safety factor because C++ compilers can tack on massive
3696    # amounts of additional arguments before passing them to the linker.  1/4
3697    # should be good.
3698    len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3699    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len - $len`
3700    ;;
3701  esac
3702
3703fi
3704
3705if test -n $lt_cv_sys_max_cmd_len ; then
3706  echo "$as_me:3706: result: $lt_cv_sys_max_cmd_len" >&5
3707echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
3708else
3709  echo "$as_me:3709: result: none" >&5
3710echo "${ECHO_T}none" >&6
3711fi
3712
3713# Check for command to grab the raw symbol name followed by C symbol from nm.
3714echo "$as_me:3714: checking command to parse $NM output from $compiler object" >&5
3715echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
3716if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
3717  echo $ECHO_N "(cached) $ECHO_C" >&6
3718else
3719
3720# These are sane defaults that work on at least a few old systems.
3721# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
3722
3723# Character class describing NM global symbol codes.
3724symcode='[BCDEGRST]'
3725
3726# Regexp to match symbols that can be accessed directly from C.
3727sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3728
3729# Transform the above into a raw symbol and a C symbol.
3730symxfrm='\1 \2\3 \3'
3731
3732# Transform an extracted symbol line into a proper C declaration
3733lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
3734
3735# Transform an extracted symbol line into symbol name and symbol address
3736lt_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'"
3737
3738# Define system-specific variables.
3739case $host_os in
3740aix*)
3741  symcode='[BCDT]'
3742  ;;
3743cygwin* | mingw* | pw32*)
3744  symcode='[ABCDGISTW]'
3745  ;;
3746hpux*) # Its linker distinguishes data from code symbols
3747  if test "$host_cpu" = ia64; then
3748    symcode='[ABCDEGRST]'
3749  fi
3750  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3751  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'"
3752  ;;
3753irix*)
3754  symcode='[BCDEGRST]'
3755  ;;
3756solaris* | sysv5*)
3757  symcode='[BDT]'
3758  ;;
3759sysv4)
3760  symcode='[DFNSTU]'
3761  ;;
3762esac
3763
3764# Handle CRLF in mingw tool chain
3765opt_cr=
3766case $host_os in
3767mingw*)
3768  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3769  ;;
3770esac
3771
3772# If we're using GNU nm, then use its standard symbol codes.
3773if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3774  symcode='[ABCDGISTW]'
3775fi
3776
3777# Try without a prefix undercore, then with it.
3778for ac_symprfx in "" "_"; do
3779
3780  # Write the raw and C identifiers.
3781lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3782
3783  # Check to see that the pipe works correctly.
3784  pipe_works=no
3785
3786  rm -f conftest*
3787  cat > conftest.$ac_ext <<EOF
3788#ifdef __cplusplus
3789extern "C" {
3790#endif
3791char nm_test_var;
3792void nm_test_func(){}
3793#ifdef __cplusplus
3794}
3795#endif
3796int main(){nm_test_var='a';nm_test_func();return(0);}
3797EOF
3798
3799  if { (eval echo "$as_me:3799: \"$ac_compile\"") >&5
3800  (eval $ac_compile) 2>&5
3801  ac_status=$?
3802  echo "$as_me:3802: \$? = $ac_status" >&5
3803  (exit $ac_status); }; then
3804    # Now try to grab the symbols.
3805    nlist=conftest.nm
3806    if { (eval echo "$as_me:3806: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
3807  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3808  ac_status=$?
3809  echo "$as_me:3809: \$? = $ac_status" >&5
3810  (exit $ac_status); } && test -s "$nlist"; then
3811      # Try sorting and uniquifying the output.
3812      if sort "$nlist" | uniq > "$nlist"T; then
3813	mv -f "$nlist"T "$nlist"
3814      else
3815	rm -f "$nlist"T
3816      fi
3817
3818      # Make sure that we snagged all the symbols we need.
3819      if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3820	if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3821	  cat <<EOF > conftest.$ac_ext
3822#ifdef __cplusplus
3823extern "C" {
3824#endif
3825
3826EOF
3827	  # Now generate the symbol file.
3828	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
3829
3830	  cat <<EOF >> conftest.$ac_ext
3831#if defined (__STDC__) && __STDC__
3832# define lt_ptr_t void *
3833#else
3834# define lt_ptr_t char *
3835# define const
3836#endif
3837
3838/* The mapping between symbol names and symbols. */
3839const struct {
3840  const char *name;
3841  lt_ptr_t address;
3842}
3843lt_preloaded_symbols[] =
3844{
3845EOF
3846	  sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" >> conftest.$ac_ext
3847	  cat <<\EOF >> conftest.$ac_ext
3848  {0, (lt_ptr_t) 0}
3849};
3850
3851#ifdef __cplusplus
3852}
3853#endif
3854EOF
3855	  # Now try linking the two files.
3856	  mv conftest.$ac_objext conftstm.$ac_objext
3857	  lt_save_LIBS="$LIBS"
3858	  lt_save_CFLAGS="$CFLAGS"
3859	  LIBS="conftstm.$ac_objext"
3860	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
3861	  if { (eval echo "$as_me:3861: \"$ac_link\"") >&5
3862  (eval $ac_link) 2>&5
3863  ac_status=$?
3864  echo "$as_me:3864: \$? = $ac_status" >&5
3865  (exit $ac_status); } && test -s conftest${ac_exeext}; then
3866	    pipe_works=yes
3867	  fi
3868	  LIBS="$lt_save_LIBS"
3869	  CFLAGS="$lt_save_CFLAGS"
3870	else
3871	  echo "cannot find nm_test_func in $nlist" >&5
3872	fi
3873      else
3874	echo "cannot find nm_test_var in $nlist" >&5
3875      fi
3876    else
3877      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
3878    fi
3879  else
3880    echo "$progname: failed program was:" >&5
3881    cat conftest.$ac_ext >&5
3882  fi
3883  rm -f conftest* conftst*
3884
3885  # Do not use the global_symbol_pipe unless it works.
3886  if test "$pipe_works" = yes; then
3887    break
3888  else
3889    lt_cv_sys_global_symbol_pipe=
3890  fi
3891done
3892
3893fi
3894
3895if test -z "$lt_cv_sys_global_symbol_pipe"; then
3896  lt_cv_sys_global_symbol_to_cdecl=
3897fi
3898if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
3899  echo "$as_me:3899: result: failed" >&5
3900echo "${ECHO_T}failed" >&6
3901else
3902  echo "$as_me:3902: result: ok" >&5
3903echo "${ECHO_T}ok" >&6
3904fi
3905
3906echo "$as_me:3906: checking for objdir" >&5
3907echo $ECHO_N "checking for objdir... $ECHO_C" >&6
3908if test "${lt_cv_objdir+set}" = set; then
3909  echo $ECHO_N "(cached) $ECHO_C" >&6
3910else
3911  rm -f .libs 2>/dev/null
3912mkdir .libs 2>/dev/null
3913if test -d .libs; then
3914  lt_cv_objdir=.libs
3915else
3916  # MS-DOS does not allow filenames that begin with a dot.
3917  lt_cv_objdir=_libs
3918fi
3919rmdir .libs 2>/dev/null
3920fi
3921echo "$as_me:3921: result: $lt_cv_objdir" >&5
3922echo "${ECHO_T}$lt_cv_objdir" >&6
3923objdir=$lt_cv_objdir
3924
3925case $host_os in
3926aix3*)
3927  # AIX sometimes has problems with the GCC collect2 program.  For some
3928  # reason, if we set the COLLECT_NAMES environment variable, the problems
3929  # vanish in a puff of smoke.
3930  if test "X${COLLECT_NAMES+set}" != Xset; then
3931    COLLECT_NAMES=
3932    export COLLECT_NAMES
3933  fi
3934  ;;
3935esac
3936
3937# Sed substitution that helps us do robust quoting.  It backslashifies
3938# metacharacters that are still active within double-quoted strings.
3939Xsed='sed -e s/^X//'
3940sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
3941
3942# Same as above, but do not quote variable references.
3943double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
3944
3945# Sed substitution to delay expansion of an escaped shell variable in a
3946# double_quote_subst'ed string.
3947delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3948
3949# Sed substitution to avoid accidental globbing in evaled expressions
3950no_glob_subst='s/\*/\\\*/g'
3951
3952# Constants:
3953rm="rm -f"
3954
3955# Global variables:
3956default_ofile=libtool
3957can_build_shared=yes
3958
3959# All known linkers require a `.a' archive for static linking (except M$VC,
3960# which needs '.lib').
3961libext=a
3962ltmain="$ac_aux_dir/ltmain.sh"
3963ofile="$default_ofile"
3964with_gnu_ld="$lt_cv_prog_gnu_ld"
3965
3966if test -n "$ac_tool_prefix"; then
3967  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3968set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3969echo "$as_me:3969: checking for $ac_word" >&5
3970echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3971if test "${ac_cv_prog_RANLIB+set}" = set; then
3972  echo $ECHO_N "(cached) $ECHO_C" >&6
3973else
3974  if test -n "$RANLIB"; then
3975  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3976else
3977  ac_save_IFS=$IFS; IFS=$ac_path_separator
3978ac_dummy="$PATH"
3979for ac_dir in $ac_dummy; do
3980  IFS=$ac_save_IFS
3981  test -z "$ac_dir" && ac_dir=.
3982  $as_executable_p "$ac_dir/$ac_word" || continue
3983ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3984echo "$as_me:3984: found $ac_dir/$ac_word" >&5
3985break
3986done
3987
3988fi
3989fi
3990RANLIB=$ac_cv_prog_RANLIB
3991if test -n "$RANLIB"; then
3992  echo "$as_me:3992: result: $RANLIB" >&5
3993echo "${ECHO_T}$RANLIB" >&6
3994else
3995  echo "$as_me:3995: result: no" >&5
3996echo "${ECHO_T}no" >&6
3997fi
3998
3999fi
4000if test -z "$ac_cv_prog_RANLIB"; then
4001  ac_ct_RANLIB=$RANLIB
4002  # Extract the first word of "ranlib", so it can be a program name with args.
4003set dummy ranlib; ac_word=$2
4004echo "$as_me:4004: checking for $ac_word" >&5
4005echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4006if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4007  echo $ECHO_N "(cached) $ECHO_C" >&6
4008else
4009  if test -n "$ac_ct_RANLIB"; then
4010  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4011else
4012  ac_save_IFS=$IFS; IFS=$ac_path_separator
4013ac_dummy="$PATH"
4014for ac_dir in $ac_dummy; do
4015  IFS=$ac_save_IFS
4016  test -z "$ac_dir" && ac_dir=.
4017  $as_executable_p "$ac_dir/$ac_word" || continue
4018ac_cv_prog_ac_ct_RANLIB="ranlib"
4019echo "$as_me:4019: found $ac_dir/$ac_word" >&5
4020break
4021done
4022
4023  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4024fi
4025fi
4026ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4027if test -n "$ac_ct_RANLIB"; then
4028  echo "$as_me:4028: result: $ac_ct_RANLIB" >&5
4029echo "${ECHO_T}$ac_ct_RANLIB" >&6
4030else
4031  echo "$as_me:4031: result: no" >&5
4032echo "${ECHO_T}no" >&6
4033fi
4034
4035  RANLIB=$ac_ct_RANLIB
4036else
4037  RANLIB="$ac_cv_prog_RANLIB"
4038fi
4039
4040if test -n "$ac_tool_prefix"; then
4041  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4042set dummy ${ac_tool_prefix}strip; ac_word=$2
4043echo "$as_me:4043: checking for $ac_word" >&5
4044echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4045if test "${ac_cv_prog_STRIP+set}" = set; then
4046  echo $ECHO_N "(cached) $ECHO_C" >&6
4047else
4048  if test -n "$STRIP"; then
4049  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4050else
4051  ac_save_IFS=$IFS; IFS=$ac_path_separator
4052ac_dummy="$PATH"
4053for ac_dir in $ac_dummy; do
4054  IFS=$ac_save_IFS
4055  test -z "$ac_dir" && ac_dir=.
4056  $as_executable_p "$ac_dir/$ac_word" || continue
4057ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4058echo "$as_me:4058: found $ac_dir/$ac_word" >&5
4059break
4060done
4061
4062fi
4063fi
4064STRIP=$ac_cv_prog_STRIP
4065if test -n "$STRIP"; then
4066  echo "$as_me:4066: result: $STRIP" >&5
4067echo "${ECHO_T}$STRIP" >&6
4068else
4069  echo "$as_me:4069: result: no" >&5
4070echo "${ECHO_T}no" >&6
4071fi
4072
4073fi
4074if test -z "$ac_cv_prog_STRIP"; then
4075  ac_ct_STRIP=$STRIP
4076  # Extract the first word of "strip", so it can be a program name with args.
4077set dummy strip; ac_word=$2
4078echo "$as_me:4078: checking for $ac_word" >&5
4079echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4080if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4081  echo $ECHO_N "(cached) $ECHO_C" >&6
4082else
4083  if test -n "$ac_ct_STRIP"; then
4084  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4085else
4086  ac_save_IFS=$IFS; IFS=$ac_path_separator
4087ac_dummy="$PATH"
4088for ac_dir in $ac_dummy; do
4089  IFS=$ac_save_IFS
4090  test -z "$ac_dir" && ac_dir=.
4091  $as_executable_p "$ac_dir/$ac_word" || continue
4092ac_cv_prog_ac_ct_STRIP="strip"
4093echo "$as_me:4093: found $ac_dir/$ac_word" >&5
4094break
4095done
4096
4097  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4098fi
4099fi
4100ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4101if test -n "$ac_ct_STRIP"; then
4102  echo "$as_me:4102: result: $ac_ct_STRIP" >&5
4103echo "${ECHO_T}$ac_ct_STRIP" >&6
4104else
4105  echo "$as_me:4105: result: no" >&5
4106echo "${ECHO_T}no" >&6
4107fi
4108
4109  STRIP=$ac_ct_STRIP
4110else
4111  STRIP="$ac_cv_prog_STRIP"
4112fi
4113
4114old_CC="$CC"
4115old_CFLAGS="$CFLAGS"
4116
4117# Set sane defaults for various variables
4118test -z "$AR" && AR=ar
4119test -z "$AR_FLAGS" && AR_FLAGS=cru
4120test -z "$AS" && AS=as
4121test -z "$CC" && CC=cc
4122test -z "$LTCC" && LTCC=$CC
4123test -z "$DLLTOOL" && DLLTOOL=dlltool
4124test -z "$LD" && LD=ld
4125test -z "$LN_S" && LN_S="ln -s"
4126test -z "$MAGIC_CMD" && MAGIC_CMD=file
4127test -z "$NM" && NM=nm
4128test -z "$OBJDUMP" && OBJDUMP=objdump
4129test -z "$RANLIB" && RANLIB=:
4130test -z "$STRIP" && STRIP=:
4131test -z "$ac_objext" && ac_objext=o
4132
4133# Determine commands to create old-style static archives.
4134old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4135old_postinstall_cmds='chmod 644 $oldlib'
4136old_postuninstall_cmds=
4137
4138if test -n "$RANLIB"; then
4139  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4140  old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
4141fi
4142
4143# Only perform the check for file, if the check method requires it
4144case $deplibs_check_method in
4145file_magic*)
4146  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4147    echo "$as_me:4147: checking for ${ac_tool_prefix}file" >&5
4148echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4149if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4150  echo $ECHO_N "(cached) $ECHO_C" >&6
4151else
4152  case $MAGIC_CMD in
4153\\/* |  ?:\\/*)
4154  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4155  ;;
4156*)
4157  lt_save_MAGIC_CMD="$MAGIC_CMD"
4158  IFS="${IFS=   }"; lt_save_ifs="$IFS"; IFS="${PATH_SEPARATOR-:}"
4159  ac_dummy="/usr/bin${PATH_SEPARATOR-:}$PATH"
4160  for ac_dir in $ac_dummy; do
4161    IFS="$lt_save_ifs"
4162    test -z "$ac_dir" && ac_dir=.
4163    if test -f $ac_dir/${ac_tool_prefix}file; then
4164      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4165      if test -n "$file_magic_test_file"; then
4166	case $deplibs_check_method in
4167	"file_magic "*)
4168	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4169	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4170	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4171	    egrep "$file_magic_regex" > /dev/null; then
4172	    :
4173	  else
4174	    cat <<EOF 1>&2
4175
4176*** Warning: the command libtool uses to detect shared libraries,
4177*** $file_magic_cmd, produces output that libtool cannot recognize.
4178*** The result is that libtool may fail to recognize shared libraries
4179*** as such.  This will affect the creation of libtool libraries that
4180*** depend on shared libraries, but programs linked with such libtool
4181*** libraries will work regardless of this problem.  Nevertheless, you
4182*** may want to report the problem to your system manager and/or to
4183*** bug-libtool@gnu.org
4184
4185EOF
4186	  fi ;;
4187	esac
4188      fi
4189      break
4190    fi
4191  done
4192  IFS="$lt_save_ifs"
4193  MAGIC_CMD="$lt_save_MAGIC_CMD"
4194  ;;
4195esac
4196fi
4197
4198MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4199if test -n "$MAGIC_CMD"; then
4200  echo "$as_me:4200: result: $MAGIC_CMD" >&5
4201echo "${ECHO_T}$MAGIC_CMD" >&6
4202else
4203  echo "$as_me:4203: result: no" >&5
4204echo "${ECHO_T}no" >&6
4205fi
4206
4207if test -z "$lt_cv_path_MAGIC_CMD"; then
4208  if test -n "$ac_tool_prefix"; then
4209    echo "$as_me:4209: checking for file" >&5
4210echo $ECHO_N "checking for file... $ECHO_C" >&6
4211if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4212  echo $ECHO_N "(cached) $ECHO_C" >&6
4213else
4214  case $MAGIC_CMD in
4215\\/* |  ?:\\/*)
4216  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4217  ;;
4218*)
4219  lt_save_MAGIC_CMD="$MAGIC_CMD"
4220  IFS="${IFS=   }"; lt_save_ifs="$IFS"; IFS="${PATH_SEPARATOR-:}"
4221  ac_dummy="/usr/bin${PATH_SEPARATOR-:}$PATH"
4222  for ac_dir in $ac_dummy; do
4223    IFS="$lt_save_ifs"
4224    test -z "$ac_dir" && ac_dir=.
4225    if test -f $ac_dir/file; then
4226      lt_cv_path_MAGIC_CMD="$ac_dir/file"
4227      if test -n "$file_magic_test_file"; then
4228	case $deplibs_check_method in
4229	"file_magic "*)
4230	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4231	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4232	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4233	    egrep "$file_magic_regex" > /dev/null; then
4234	    :
4235	  else
4236	    cat <<EOF 1>&2
4237
4238*** Warning: the command libtool uses to detect shared libraries,
4239*** $file_magic_cmd, produces output that libtool cannot recognize.
4240*** The result is that libtool may fail to recognize shared libraries
4241*** as such.  This will affect the creation of libtool libraries that
4242*** depend on shared libraries, but programs linked with such libtool
4243*** libraries will work regardless of this problem.  Nevertheless, you
4244*** may want to report the problem to your system manager and/or to
4245*** bug-libtool@gnu.org
4246
4247EOF
4248	  fi ;;
4249	esac
4250      fi
4251      break
4252    fi
4253  done
4254  IFS="$lt_save_ifs"
4255  MAGIC_CMD="$lt_save_MAGIC_CMD"
4256  ;;
4257esac
4258fi
4259
4260MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4261if test -n "$MAGIC_CMD"; then
4262  echo "$as_me:4262: result: $MAGIC_CMD" >&5
4263echo "${ECHO_T}$MAGIC_CMD" >&6
4264else
4265  echo "$as_me:4265: result: no" >&5
4266echo "${ECHO_T}no" >&6
4267fi
4268
4269  else
4270    MAGIC_CMD=:
4271  fi
4272fi
4273
4274  fi
4275  ;;
4276esac
4277
4278enable_dlopen=no
4279enable_win32_dll=no
4280
4281# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4282if test "${enable_libtool_lock+set}" = set; then
4283  enableval="$enable_libtool_lock"
4284
4285fi;
4286test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4287
4288# Check whether --with-pic or --without-pic was given.
4289if test "${with_pic+set}" = set; then
4290  withval="$with_pic"
4291  pic_mode="$withval"
4292else
4293  pic_mode=default
4294fi;
4295test -z "$pic_mode" && pic_mode=default
4296
4297# Use C for the default configuration in the libtool script
4298tagname=
4299lt_save_CC="$CC"
4300ac_ext=c
4301ac_cpp='$CPP $CPPFLAGS'
4302ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4303ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4304ac_compiler_gnu=$ac_cv_c_compiler_gnu
4305
4306# Source file extension for C test sources.
4307ac_ext=c
4308
4309# Object file extension for compiled C test sources.
4310objext=o
4311objext=$objext
4312
4313# Code to be used in simple compile tests
4314lt_simple_compile_test_code="int some_variable = 0;"
4315
4316# Code to be used in simple link tests
4317lt_simple_link_test_code='main(){return(0);}'
4318
4319# If no C compiler was specified, use CC.
4320LTCC=${LTCC-"$CC"}
4321
4322# Allow CC to be a program name with arguments.
4323set dummy $CC
4324compiler="$2"
4325
4326#
4327# Check for any special shared library compilation flags.
4328#
4329lt_prog_cc_shlib=
4330if test "$GCC" = no; then
4331  case $host_os in
4332  sco3.2v5*)
4333    lt_prog_cc_shlib='-belf'
4334    ;;
4335  esac
4336fi
4337if test -n "$lt_prog_cc_shlib"; then
4338  { echo "$as_me:4338: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
4339echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
4340  if echo "$old_CC $old_CFLAGS " | egrep -e "[ 	]$lt_prog_cc_shlib[ 	]" >/dev/null; then :
4341  else
4342    { echo "$as_me:4342: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
4343echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
4344    lt_cv_prog_cc_can_build_shared=no
4345  fi
4346fi
4347
4348#
4349# Check to make sure the static flag actually works.
4350#
4351echo "$as_me:4351: checking if $compiler static flag $lt_prog_compiler_static works" >&5
4352echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
4353if test "${lt_prog_compiler_static_works+set}" = set; then
4354  echo $ECHO_N "(cached) $ECHO_C" >&6
4355else
4356  lt_prog_compiler_static_works=no
4357   save_LDFLAGS="$LDFLAGS"
4358   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
4359   echo "$lt_simple_link_test_code" > conftest.$ac_ext
4360   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
4361     # The compiler can only warn and ignore the option if not recognized
4362     # So say no if there are warnings
4363     if test -s conftest.err; then
4364       # Append any errors to the config.log.
4365       cat conftest.err 1>&5
4366     else
4367       lt_prog_compiler_static_works=yes
4368     fi
4369   fi
4370   $rm conftest*
4371   LDFLAGS="$save_LDFLAGS"
4372
4373fi
4374echo "$as_me:4374: result: $lt_prog_compiler_static_works" >&5
4375echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
4376
4377if test x"$lt_prog_compiler_static_works" = xyes; then
4378    :
4379else
4380    lt_prog_compiler_static=
4381fi
4382
4383lt_prog_compiler_no_builtin_flag=
4384
4385if test "$GCC" = yes; then
4386  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
4387
4388  echo "$as_me:4388: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
4389echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
4390if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
4391  echo $ECHO_N "(cached) $ECHO_C" >&6
4392else
4393  lt_cv_prog_compiler_rtti_exceptions=no
4394  ac_outfile=conftest.$ac_objext
4395   save_CFLAGS="$CFLAGS"
4396   CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
4397   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
4398   if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
4399     # The compiler can only warn and ignore the option if not recognized
4400     # So say no if there are warnings
4401     if test -s conftest.err; then
4402       # Append any errors to the config.log.
4403       cat conftest.err 1>&5
4404     else
4405       lt_cv_prog_compiler_rtti_exceptions=yes
4406     fi
4407   fi
4408   $rm conftest*
4409   CFLAGS="$save_CFLAGS"
4410
4411fi
4412echo "$as_me:4412: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
4413echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
4414
4415if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
4416    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
4417else
4418    :
4419fi
4420
4421fi
4422
4423lt_prog_compiler_wl=
4424lt_prog_compiler_pic=
4425lt_prog_compiler_static=
4426
4427echo "$as_me:4427: checking for $compiler option to produce PIC" >&5
4428echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
4429  if test "$GCC" = yes; then
4430    lt_prog_compiler_wl='-Wl,'
4431    lt_prog_compiler_static='-static'
4432
4433    case $host_os in
4434      aix*)
4435      # All AIX code is PIC.
4436      if test "$host_cpu" = ia64; then
4437        # AIX 5 now supports IA64 processor
4438        lt_prog_compiler_static='-Bstatic'
4439      fi
4440      ;;
4441
4442    amigaos*)
4443      # FIXME: we need at least 68020 code to build shared libraries, but
4444      # adding the `-m68020' flag to GCC prevents building anything better,
4445      # like `-m68040'.
4446      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
4447      ;;
4448
4449    beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
4450      # PIC is the default for these OSes.
4451      ;;
4452
4453    cygwin* | mingw* | pw32* | os2*)
4454      # This hack is so that the source file can tell whether it is being
4455      # built for inclusion in a dll (and should export symbols for example).
4456      lt_prog_compiler_pic='-DDLL_EXPORT'
4457      ;;
4458
4459    darwin* | rhapsody*)
4460      # PIC is the default on this platform
4461      # Common symbols not allowed in MH_DYLIB files
4462      lt_prog_compiler_pic='-fno-common'
4463      ;;
4464
4465    msdosdjgpp*)
4466      # Just because we use GCC doesn't mean we suddenly get shared libraries
4467      # on systems that don't support them.
4468      lt_prog_compiler_can_build_shared=no
4469      enable_shared=no
4470      ;;
4471
4472    sysv4*MP*)
4473      if test -d /usr/nec; then
4474        lt_prog_compiler_pic=-Kconform_pic
4475      fi
4476      ;;
4477
4478    hpux*)
4479      # PIC is the default for IA64 HP-UX, but not for PA HP-UX.
4480      if test "$host_cpu" != ia64; then
4481        lt_prog_compiler_pic='-fPIC'
4482      fi
4483      ;;
4484
4485    *)
4486      lt_prog_compiler_pic='-fPIC'
4487      ;;
4488    esac
4489  else
4490    # PORTME Check for flag to pass linker flags through the system compiler.
4491    case $host_os in
4492    aix*)
4493      lt_prog_compiler_wl='-Wl,'
4494      if test "$host_cpu" = ia64; then
4495        # AIX 5 now supports IA64 processor
4496        lt_prog_compiler_static='-Bstatic'
4497      else
4498        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
4499      fi
4500      ;;
4501
4502    cygwin* | mingw* | pw32* | os2*)
4503      # This hack is so that the source file can tell whether it is being
4504      # built for inclusion in a dll (and should export symbols for example).
4505      lt_prog_compiler_pic='-DDLL_EXPORT'
4506      ;;
4507
4508    hpux9* | hpux10* | hpux11*)
4509      lt_prog_compiler_wl='-Wl,'
4510      if test "$host_cpu" != ia64; then
4511        lt_prog_compiler_pic='+Z'
4512      fi
4513      # Is there a better lt_prog_compiler_static that works with the bundled CC?
4514      lt_prog_compiler_static='${wl}-a ${wl}archive'
4515      ;;
4516
4517    irix5* | irix6*)
4518      lt_prog_compiler_wl='-Wl,'
4519      # PIC (with -KPIC) is the default.
4520      lt_prog_compiler_static='-non_shared'
4521      ;;
4522
4523    newsos6)
4524      lt_prog_compiler_pic='-KPIC'
4525      lt_prog_compiler_static='-Bstatic'
4526      ;;
4527
4528    osf3* | osf4* | osf5*)
4529      lt_prog_compiler_wl='-Wl,'
4530      # All OSF/1 code is PIC.
4531      lt_prog_compiler_static='-non_shared'
4532      ;;
4533
4534    sco3.2v5*)
4535      lt_prog_compiler_pic='-Kpic'
4536      lt_prog_compiler_static='-dn'
4537      ;;
4538
4539    solaris*)
4540      lt_prog_compiler_wl='-Wl,'
4541      lt_prog_compiler_pic='-KPIC'
4542      lt_prog_compiler_static='-Bstatic'
4543      ;;
4544
4545    sunos4*)
4546      lt_prog_compiler_wl='-Qoption ld '
4547      lt_prog_compiler_pic='-PIC'
4548      lt_prog_compiler_static='-Bstatic'
4549      ;;
4550
4551    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4552      if test "x$host_vendor" = xsni; then
4553        lt_prog_compiler_wl='-LD'
4554      else
4555        lt_prog_compiler_wl='-Wl,'
4556      fi
4557      lt_prog_compiler_pic='-KPIC'
4558      lt_prog_compiler_static='-Bstatic'
4559      ;;
4560
4561    sysv4*MP*)
4562      if test -d /usr/nec ;then
4563        lt_prog_compiler_pic='-Kconform_pic'
4564        lt_prog_compiler_static='-Bstatic'
4565      fi
4566      ;;
4567
4568    uts4*)
4569      lt_prog_compiler_pic='-pic'
4570      lt_prog_compiler_static='-Bstatic'
4571      ;;
4572
4573    *)
4574      lt_prog_compiler_can_build_shared=no
4575      ;;
4576    esac
4577  fi
4578
4579echo "$as_me:4579: result: $lt_prog_compiler_pic" >&5
4580echo "${ECHO_T}$lt_prog_compiler_pic" >&6
4581
4582#
4583# Check to make sure the PIC flag actually works.
4584#
4585if test -n "$lt_prog_compiler_pic"; then
4586  echo "$as_me:4586: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
4587echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
4588if test "${lt_prog_compiler_pic_works+set}" = set; then
4589  echo $ECHO_N "(cached) $ECHO_C" >&6
4590else
4591  lt_prog_compiler_pic_works=no
4592  ac_outfile=conftest.$ac_objext
4593   save_CFLAGS="$CFLAGS"
4594   CFLAGS="$CFLAGS $lt_prog_compiler_pic -DPIC"
4595   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
4596   if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
4597     # The compiler can only warn and ignore the option if not recognized
4598     # So say no if there are warnings
4599     if test -s conftest.err; then
4600       # Append any errors to the config.log.
4601       cat conftest.err 1>&5
4602     else
4603       lt_prog_compiler_pic_works=yes
4604     fi
4605   fi
4606   $rm conftest*
4607   CFLAGS="$save_CFLAGS"
4608
4609fi
4610echo "$as_me:4610: result: $lt_prog_compiler_pic_works" >&5
4611echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
4612
4613if test x"$lt_prog_compiler_pic_works" = xyes; then
4614    case $lt_prog_compiler_pic in
4615     "" | " "*) ;;
4616     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
4617     esac
4618else
4619    lt_prog_compiler_pic=
4620     lt_prog_compiler_can_build_shared=no
4621fi
4622
4623fi
4624case "$host_os" in
4625  # For platforms which do not support PIC, -DPIC is meaningless:
4626  *djgpp*)
4627    lt_prog_compiler_pic=
4628    ;;
4629  *)
4630    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
4631    ;;
4632esac
4633
4634echo "$as_me:4634: checking if $compiler supports -c -o file.$ac_objext" >&5
4635echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
4636if test "${lt_cv_prog_compiler_c_o+set}" = set; then
4637  echo $ECHO_N "(cached) $ECHO_C" >&6
4638else
4639  lt_cv_prog_compiler_c_o=no
4640   $rm -r conftest 2>/dev/null
4641   mkdir conftest
4642   cd conftest
4643   mkdir out
4644   save_CFLAGS="$CFLAGS"
4645                   CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
4646   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
4647
4648   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
4649   # that will create temporary files in the current directory regardless of
4650   # the output directory.  Thus, making CWD read-only will cause this test
4651   # to fail, enabling locking or at least warning the user not to do parallel
4652   # builds.
4653   chmod -w .
4654
4655   if (eval $ac_compile 2>out/conftest.err) && test -s out/conftest2.$ac_objext
4656   then
4657     # The compiler can only warn and ignore the option if not recognized
4658     # So say no if there are warnings
4659     if test -s out/conftest.err; then
4660       # Append any errors to the config.log.
4661       cat out/conftest.err 1>&5
4662     else
4663       lt_cv_prog_compiler_c_o=yes
4664     fi
4665   fi
4666   CFLAGS="$save_CFLAGS"
4667   chmod u+w .
4668   $rm conftest* out/*
4669   rmdir out
4670   cd ..
4671   rmdir conftest
4672   $rm conftest*
4673
4674fi
4675echo "$as_me:4675: result: $lt_cv_prog_compiler_c_o" >&5
4676echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
4677
4678hard_links="nottested"
4679if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
4680  # do not overwrite the value of need_locks provided by the user
4681  echo "$as_me:4681: checking if we can lock with hard links" >&5
4682echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
4683  hard_links=yes
4684  $rm conftest*
4685  ln conftest.a conftest.b 2>/dev/null && hard_links=no
4686  touch conftest.a
4687  ln conftest.a conftest.b 2>&5 || hard_links=no
4688  ln conftest.a conftest.b 2>/dev/null && hard_links=no
4689  echo "$as_me:4689: result: $hard_links" >&5
4690echo "${ECHO_T}$hard_links" >&6
4691  if test "$hard_links" = no; then
4692    { echo "$as_me:4692: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
4693echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
4694    need_locks=warn
4695  fi
4696else
4697  need_locks=no
4698fi
4699
4700echo "$as_me:4700: checking whether the $compiler linker ($LD) supports shared libraries" >&5
4701echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
4702
4703  runpath_var=
4704  allow_undefined_flag=
4705
4706  archive_cmds=
4707  archive_cmds_need_lc=
4708  archive_expsym_cmds=
4709  old_archive_From_new_cmds=
4710  old_archive_from_expsyms_cmds=
4711  export_dynamic_flag_spec=
4712  whole_archive_flag_spec=
4713  thread_safe_flag_spec=
4714  hardcode_libdir_flag_spec=
4715  hardcode_libdir_separator=
4716  hardcode_direct=no
4717  hardcode_minus_L=no
4718  hardcode_shlibpath_var=unsupported
4719  link_all_deplibs=unknown
4720  always_export_symbols=no
4721  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
4722  # include_expsyms should be a list of space-separated symbols to be *always*
4723  # included in the symbol list
4724  include_expsyms=
4725  # exclude_expsyms can be an egrep regular expression of symbols to exclude
4726  # it will be wrapped by ` (' and `)$', so one must not match beginning or
4727  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
4728  # as well as any symbol that contains `d'.
4729  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
4730  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
4731  # platforms (ab)use it in PIC code, but their linkers get confused if
4732  # the symbol is explicitly referenced.  Since portable code cannot
4733  # rely on this symbol name, it's probably fine to never include it in
4734  # preloaded symbol tables.
4735  extract_expsyms_cmds=
4736
4737  case $host_os in
4738  cygwin* | mingw* | pw32*)
4739    # FIXME: the MSVC++ port hasn't been tested in a loooong time
4740    # When not using gcc, we currently assume that we are using
4741    # Microsoft Visual C++.
4742    if test "$GCC" != yes; then
4743      with_gnu_ld=no
4744    fi
4745    ;;
4746  openbsd*)
4747    with_gnu_ld=no
4748    ;;
4749  esac
4750
4751  ld_shlibs=yes
4752  if test "$with_gnu_ld" = yes; then
4753    # If archive_cmds runs LD, not CC, wlarc should be empty
4754    wlarc='${wl}'
4755
4756    # See if GNU ld supports shared libraries.
4757    case $host_os in
4758    aix3* | aix4* | aix5*)
4759      # On AIX/PPC, the GNU linker is very broken
4760      if test "$host_cpu" != ia64; then
4761        ld_shlibs=no
4762        cat <<EOF 1>&2
4763
4764*** Warning: the GNU linker, at least up to release 2.9.1, is reported
4765*** to be unable to reliably create shared libraries on AIX.
4766*** Therefore, libtool is disabling shared libraries support.  If you
4767*** really care for shared libraries, you may want to modify your PATH
4768*** so that a non-GNU linker is found, and then restart.
4769
4770EOF
4771      fi
4772      ;;
4773
4774    amigaos*)
4775      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)'
4776      hardcode_libdir_flag_spec='-L$libdir'
4777      hardcode_minus_L=yes
4778
4779      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
4780      # that the semantics of dynamic libraries on AmigaOS, at least up
4781      # to version 4, is to share data among multiple programs linked
4782      # with the same dynamic library.  Since this doesn't match the
4783      # behavior of shared libraries on other platforms, we can't use
4784      # them.
4785      ld_shlibs=no
4786      ;;
4787
4788    beos*)
4789      if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4790        allow_undefined_flag=unsupported
4791        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
4792        # support --undefined.  This deserves some investigation.  FIXME
4793        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4794      else
4795        ld_shlibs=no
4796      fi
4797      ;;
4798
4799    cygwin* | mingw* | pw32*)
4800      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, as there is
4801      # no search path for DLLs.
4802      hardcode_libdir_flag_spec='-L$libdir'
4803      allow_undefined_flag=unsupported
4804      always_export_symbols=yes
4805
4806      extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
4807        sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
4808        test -f $output_objdir/impgen.exe || (cd $output_objdir && \
4809        if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
4810        else $CC -o impgen impgen.c ; fi)~
4811        $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
4812
4813      old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
4814
4815      # cygwin and mingw dlls have different entry points and sets of symbols
4816      # to exclude.
4817      # FIXME: what about values for MSVC?
4818      dll_entry=__cygwin_dll_entry@12
4819      dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
4820      case $host_os in
4821      mingw*)
4822        # mingw values
4823        dll_entry=_DllMainCRTStartup@12
4824        dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
4825        ;;
4826      esac
4827
4828      # mingw and cygwin differ, and it's simplest to just exclude the union
4829      # of the two symbol sets.
4830      dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
4831
4832      # recent cygwin and mingw systems supply a stub DllMain which the user
4833      # can override, but on older systems we have to supply one (in ltdll.c)
4834      if test "x$lt_cv_need_dllmain" = "xyes"; then
4835        ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
4836        ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
4837  	test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
4838      else
4839        ltdll_obj=
4840        ltdll_cmds=
4841      fi
4842
4843      # Extract the symbol export list from an `--export-all' def file,
4844      # then regenerate the def file from the symbol export list, so that
4845      # the compiled dll only exports the symbol export list.
4846      # Be careful not to strip the DATA tag left by newer dlltools.
4847      export_symbols_cmds="$ltdll_cmds"'
4848        $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
4849        sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
4850
4851      # If the export-symbols file already is a .def file (1st line
4852      # is EXPORTS), use it as is.
4853      # If DATA tags from a recent dlltool are present, honour them!
4854      archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
4855          cp $export_symbols $output_objdir/$soname-def;
4856        else
4857          echo EXPORTS > $output_objdir/$soname-def;
4858          _lt_hint=1;
4859          cat $export_symbols | while read symbol; do
4860           set dummy \$symbol;
4861           case \$# in
4862             2) echo "   \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
4863             *) echo "   \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
4864           esac;
4865           _lt_hint=`expr 1 + \$_lt_hint`;
4866          done;
4867        fi~
4868        '"$ltdll_cmds"'
4869        $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
4870        $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
4871        $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
4872        $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
4873        $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
4874      ;;
4875
4876    darwin* | rhapsody*)
4877      allow_undefined_flag='-undefined suppress'
4878      # FIXME: Relying on posixy $() will cause problems for
4879      #        cross-compilation, but unfortunately the echo tests do not
4880      #        yet detect zsh echo's removal of \ escapes.
4881      archive_cmds='$CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linkopts -install_name $rpath/$soname $(test -n "$verstring" -a x$verstring != x0.0 && echo $verstring)'
4882      # We need to add '_' to the symbols in $export_symbols first
4883      #_LT_AC_TAGVAR(archive_expsym_cmds, )="$_LT_AC_TAGVAR(archive_cmds, )"' && strip -s $export_symbols'
4884      hardcode_direct=yes
4885      hardcode_shlibpath_var=no
4886      whole_archive_flag_spec='-all_load $convenience'
4887      ;;
4888
4889    netbsd*)
4890      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4891        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
4892        wlarc=
4893      else
4894        archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4895        archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4896      fi
4897      ;;
4898
4899    solaris* | sysv5*)
4900      if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
4901        ld_shlibs=no
4902        cat <<EOF 1>&2
4903
4904*** Warning: The releases 2.8.* of the GNU linker cannot reliably
4905*** create shared libraries on Solaris systems.  Therefore, libtool
4906*** is disabling shared libraries support.  We urge you to upgrade GNU
4907*** binutils to release 2.9.1 or newer.  Another option is to modify
4908*** your PATH or compiler configuration so that the native linker is
4909*** used, and then restart.
4910
4911EOF
4912      elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4913        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4914        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4915      else
4916        ld_shlibs=no
4917      fi
4918      ;;
4919
4920    sunos4*)
4921      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4922      wlarc=
4923      hardcode_direct=yes
4924      hardcode_shlibpath_var=no
4925      ;;
4926
4927    *)
4928      if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4929        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4930        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4931      else
4932        ld_shlibs=no
4933      fi
4934      ;;
4935    esac
4936
4937    if test "$ld_shlibs" = yes; then
4938      runpath_var=LD_RUN_PATH
4939      hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
4940      export_dynamic_flag_spec='${wl}--export-dynamic'
4941      case $host_os in
4942      cygwin* | mingw* | pw32*)
4943        # dlltool doesn't understand --whole-archive et. al.
4944        whole_archive_flag_spec=
4945        ;;
4946      *)
4947        # ancient GNU ld didn't support --whole-archive et. al.
4948        if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
4949  	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4950        else
4951  	whole_archive_flag_spec=
4952        fi
4953        ;;
4954      esac
4955    fi
4956  else
4957    # PORTME fill in a description of your system's linker (not GNU ld)
4958    case $host_os in
4959    aix3*)
4960      allow_undefined_flag=unsupported
4961      always_export_symbols=yes
4962      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'
4963      # Note: this linker hardcodes the directories in LIBPATH if there
4964      # are no directories specified by -L.
4965      hardcode_minus_L=yes
4966      if test "$GCC" = yes && test -z "$link_static_flag"; then
4967        # Neither direct hardcoding nor static linking is supported with a
4968        # broken collect2.
4969        hardcode_direct=unsupported
4970      fi
4971      ;;
4972
4973    aix4* | aix5*)
4974      if test "$host_cpu" = ia64; then
4975        # On IA64, the linker does run time linking by default, so we don't
4976        # have to do anything special.
4977        aix_use_runtimelinking=no
4978        exp_sym_flag='-Bexport'
4979        no_entry_flag=""
4980      else
4981        aix_use_runtimelinking=no
4982
4983        # Test if we are trying to use run time linking or normal
4984        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
4985        # need to do runtime linking.
4986        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
4987          for ld_flag in $LDFLAGS; do
4988  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
4989  	    aix_use_runtimelinking=yes
4990  	    break
4991  	  fi
4992          done
4993        esac
4994
4995        exp_sym_flag='-bexport'
4996        no_entry_flag='-bnoentry'
4997      fi
4998
4999      # When large executables or shared objects are built, AIX ld can
5000      # have problems creating the table of contents.  If linking a library
5001      # or program results in "error TOC overflow" add -mminimal-toc to
5002      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
5003      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5004
5005      archive_cmds=''
5006      hardcode_direct=yes
5007      hardcode_libdir_separator=':'
5008      link_all_deplibs=yes
5009
5010      if test "$GCC" = yes; then
5011        case $host_os in aix4.012|aix4.012.*)
5012        # We only want to do this on AIX 4.2 and lower, the check
5013        # below for broken collect2 doesn't work under 4.3+
5014          collect2name=`${CC} -print-prog-name=collect2`
5015          if test -f "$collect2name" && \
5016  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
5017          then
5018  	  # We have reworked collect2
5019  	  hardcode_direct=yes
5020          else
5021  	  # We have old collect2
5022  	  hardcode_direct=unsupported
5023  	  # It fails to find uninstalled libraries when the uninstalled
5024  	  # path is not listed in the libpath.  Setting hardcode_minus_L
5025  	  # to unsupported forces relinking
5026  	  hardcode_minus_L=yes
5027  	  hardcode_libdir_flag_spec='-L$libdir'
5028  	  hardcode_libdir_separator=
5029          fi
5030        esac
5031        shared_flag='-shared'
5032      else
5033        # not using gcc
5034        if test "$host_cpu" = ia64; then
5035  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
5036  	# chokes on -Wl,-G. The following line is correct:
5037          shared_flag='-G'
5038        else
5039  	if test "$aix_use_runtimelinking" = yes; then
5040            shared_flag='${wl}-G'
5041          else
5042            shared_flag='${wl}-bM:SRE'
5043  	fi
5044        fi
5045      fi
5046
5047      # It seems that -bexpall does not export symbols beginning with
5048      # underscore (_), so it is better to generate a list of symbols to export.
5049      always_export_symbols=yes
5050      if test "$aix_use_runtimelinking" = yes; then
5051        # Warning - without using the other runtime loading flags (-brtl),
5052        # -berok will link without error, but may produce a broken library.
5053        allow_undefined_flag='-berok'
5054       # Determine the default libpath from the value encoded in an empty executable.
5055       cat >conftest.$ac_ext <<_ACEOF
5056#line 5056 "configure"
5057#include "confdefs.h"
5058
5059int
5060main ()
5061{
5062
5063  ;
5064  return 0;
5065}
5066_ACEOF
5067rm -f conftest.$ac_objext conftest$ac_exeext
5068if { (eval echo "$as_me:5068: \"$ac_link\"") >&5
5069  (eval $ac_link) 2>&5
5070  ac_status=$?
5071  echo "$as_me:5071: \$? = $ac_status" >&5
5072  (exit $ac_status); } &&
5073         { ac_try='test -s conftest$ac_exeext'
5074  { (eval echo "$as_me:5074: \"$ac_try\"") >&5
5075  (eval $ac_try) 2>&5
5076  ac_status=$?
5077  echo "$as_me:5077: \$? = $ac_status" >&5
5078  (exit $ac_status); }; }; then
5079
5080aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | ${AWK-awk} '/Import File Strings/ { getline; getline; if ($2 ~ /^\//) print $2 }'`
5081# Check for a 64-bit object if we didn't find anything.
5082if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | ${AWK-awk} '/Import File Strings/ { getline; getline; if ($2 ~ /^\//) print $2 }'`; fi
5083else
5084  echo "$as_me: failed program was:" >&5
5085cat conftest.$ac_ext >&5
5086fi
5087rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5088if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
5089
5090       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
5091        archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5092       else
5093        if test "$host_cpu" = ia64; then
5094          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5095          allow_undefined_flag="-z nodefs"
5096          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
5097        else
5098         # Determine the default libpath from the value encoded in an empty executable.
5099         cat >conftest.$ac_ext <<_ACEOF
5100#line 5100 "configure"
5101#include "confdefs.h"
5102
5103int
5104main ()
5105{
5106
5107  ;
5108  return 0;
5109}
5110_ACEOF
5111rm -f conftest.$ac_objext conftest$ac_exeext
5112if { (eval echo "$as_me:5112: \"$ac_link\"") >&5
5113  (eval $ac_link) 2>&5
5114  ac_status=$?
5115  echo "$as_me:5115: \$? = $ac_status" >&5
5116  (exit $ac_status); } &&
5117         { ac_try='test -s conftest$ac_exeext'
5118  { (eval echo "$as_me:5118: \"$ac_try\"") >&5
5119  (eval $ac_try) 2>&5
5120  ac_status=$?
5121  echo "$as_me:5121: \$? = $ac_status" >&5
5122  (exit $ac_status); }; }; then
5123
5124aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | ${AWK-awk} '/Import File Strings/ { getline; getline; if ($2 ~ /^\//) print $2 }'`
5125# Check for a 64-bit object if we didn't find anything.
5126if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | ${AWK-awk} '/Import File Strings/ { getline; getline; if ($2 ~ /^\//) print $2 }'`; fi
5127else
5128  echo "$as_me: failed program was:" >&5
5129cat conftest.$ac_ext >&5
5130fi
5131rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5132if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
5133
5134         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
5135          # Warning - without using the other run time loading flags,
5136          # -berok will link without error, but may produce a broken library.
5137          no_undefined_flag=' ${wl}-bernotok'
5138          allow_undefined_flag=' ${wl}-berok'
5139          # -bexpall does not export symbols beginning with underscore (_)
5140          always_export_symbols=yes
5141          # Exported symbols can be pulled into shared objects from archives
5142          whole_archive_flag_spec=' '
5143          archive_cmds_need_lc=yes
5144          # This is similar to how AIX traditionally builds it's shared libraries.
5145          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
5146        fi
5147      fi
5148      ;;
5149
5150    amigaos*)
5151      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)'
5152      hardcode_libdir_flag_spec='-L$libdir'
5153      hardcode_minus_L=yes
5154      # see comment about different semantics on the GNU ld section
5155      ld_shlibs=no
5156      ;;
5157
5158    bsdi4*)
5159      export_dynamic_flag_spec=-rdynamic
5160      ;;
5161
5162    cygwin* | mingw* | pw32*)
5163      # When not using gcc, we currently assume that we are using
5164      # Microsoft Visual C++.
5165      # hardcode_libdir_flag_spec is actually meaningless, as there is
5166      # no search path for DLLs.
5167      hardcode_libdir_flag_spec=' '
5168      allow_undefined_flag=unsupported
5169      # Tell ltmain to make .lib files, not .a files.
5170      libext=lib
5171      # FIXME: Setting linknames here is a bad hack.
5172      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5173      # The linker will automatically build a .lib file if we build a DLL.
5174      old_archive_From_new_cmds='true'
5175      # FIXME: Should let the user specify the lib program.
5176      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5177      fix_srcfile_path='`cygpath -w "$srcfile"`'
5178      ;;
5179
5180    dgux*)
5181      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5182      hardcode_libdir_flag_spec='-L$libdir'
5183      hardcode_shlibpath_var=no
5184      ;;
5185
5186    freebsd1*)
5187      ld_shlibs=no
5188      ;;
5189
5190    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5191    # support.  Future versions do this automatically, but an explicit c++rt0.o
5192    # does not break anything, and helps significantly (at the cost of a little
5193    # extra space).
5194    freebsd2.2*)
5195      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5196      hardcode_libdir_flag_spec='-R$libdir'
5197      hardcode_direct=yes
5198      hardcode_shlibpath_var=no
5199      ;;
5200
5201    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5202    freebsd2*)
5203      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5204      hardcode_direct=yes
5205      hardcode_minus_L=yes
5206      hardcode_shlibpath_var=no
5207      ;;
5208
5209    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5210    freebsd*)
5211      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5212      hardcode_libdir_flag_spec='-R$libdir'
5213      hardcode_direct=yes
5214      hardcode_shlibpath_var=no
5215      ;;
5216
5217    hpux9* | hpux10* | hpux11*)
5218      if test $GXX = yes; then
5219        case $host_os in
5220          hpux9*)
5221            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'
5222            ;;
5223        *)
5224            if test "$host_cpu" = ia64; then
5225              archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5226            else
5227              archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5228            fi
5229            ;;
5230        esac
5231      else
5232        case $host_os in
5233          hpux9*)
5234            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'
5235            ;;
5236          *)
5237            if test "$host_cpu" = ia64; then
5238              archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
5239            else
5240              archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
5241            fi
5242            ;;
5243        esac
5244      fi
5245      if test "$host_cpu" = ia64; then
5246        hardcode_libdir_flag_spec='-L$libdir'
5247        hardcode_direct=no
5248        hardcode_shlibpath_var=no
5249      else
5250        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5251        hardcode_libdir_separator=:
5252        hardcode_direct=yes
5253      fi
5254      # hardcode_minus_L: Not really in the search PATH,
5255      # but as the default location of the library.
5256      hardcode_minus_L=yes
5257      export_dynamic_flag_spec='${wl}-E'
5258      ;;
5259
5260    irix5* | irix6*)
5261      if test "$GCC" = yes; then
5262        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'
5263      else
5264        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'
5265      fi
5266      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5267      hardcode_libdir_separator=:
5268      link_all_deplibs=yes
5269      ;;
5270
5271    netbsd*)
5272      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5273        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
5274      else
5275        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
5276      fi
5277      hardcode_libdir_flag_spec='-R$libdir'
5278      hardcode_direct=yes
5279      hardcode_shlibpath_var=no
5280      ;;
5281
5282    newsos6)
5283      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
5284      hardcode_direct=yes
5285      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5286      hardcode_libdir_separator=:
5287      hardcode_shlibpath_var=no
5288      ;;
5289
5290    openbsd*)
5291      hardcode_direct=yes
5292      hardcode_shlibpath_var=no
5293
5294      case "$host_os" in
5295        openbsd01.* | openbsd2.0-7 | openbsd2.0-7.*)
5296          archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5297          hardcode_libdir_flag_spec='-R$libdir'
5298        ;;
5299        *)
5300          archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5301          hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5302          if  "`echo __ELF__ | $CC -E - | grep __ELF__`" = "" -o "$host_os-$host_cpu" = "openbsd2.8-powerpc" ; then
5303           export_dynamic_flag_spec='${wl}-E'
5304          fi
5305        ;;
5306      esac
5307      ;;
5308
5309    os2*)
5310      hardcode_libdir_flag_spec='-L$libdir'
5311      hardcode_minus_L=yes
5312      allow_undefined_flag=unsupported
5313      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'
5314      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5315      ;;
5316
5317    osf3*)
5318      if test "$GCC" = yes; then
5319        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5320        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'
5321      else
5322        allow_undefined_flag=' -expect_unresolved \*'
5323        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'
5324      fi
5325      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5326      hardcode_libdir_separator=:
5327      ;;
5328
5329    osf4* | osf5*)	# as osf3* with the addition of -msym flag
5330      if test "$GCC" = yes; then
5331        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5332        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'
5333        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5334      else
5335        allow_undefined_flag=' -expect_unresolved \*'
5336        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'
5337        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5338        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
5339
5340        # Both c and cxx compiler support -rpath directly
5341        hardcode_libdir_flag_spec='-rpath $libdir'
5342      fi
5343      hardcode_libdir_separator=:
5344      ;;
5345
5346    sco3.2v5*)
5347      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5348      hardcode_shlibpath_var=no
5349      export_dynamic_flag_spec='${wl}-Bexport'
5350      runpath_var=LD_RUN_PATH
5351      hardcode_runpath_var=yes
5352      ;;
5353
5354    solaris*)
5355      no_undefined_flag=' -z defs'
5356      if test "$GXX" = yes; then
5357        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5358        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5359          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
5360      else
5361        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5362        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5363  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5364      fi
5365      hardcode_libdir_flag_spec='-R$libdir'
5366      hardcode_shlibpath_var=no
5367      case $host_os in
5368      solaris2.[0-5] | solaris2.[0-5].*) ;;
5369      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
5370        whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
5371      esac
5372      link_all_deplibs=yes
5373      ;;
5374
5375    sunos4*)
5376      if test "x$host_vendor" = xsequent; then
5377        # Use $CC to link under sequent, because it throws in some extra .o
5378        # files that make .init and .fini sections work.
5379        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5380      else
5381        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5382      fi
5383      hardcode_libdir_flag_spec='-L$libdir'
5384      hardcode_direct=yes
5385      hardcode_minus_L=yes
5386      hardcode_shlibpath_var=no
5387      ;;
5388
5389    sysv4)
5390      if test "x$host_vendor" = xsni; then
5391        archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linkopts'
5392        hardcode_direct=yes # is this really true???
5393      else
5394        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5395        hardcode_direct=no #Motorola manual says yes, but my tests say they lie
5396      fi
5397      runpath_var='LD_RUN_PATH'
5398      hardcode_shlibpath_var=no
5399      ;;
5400
5401    sysv4.3*)
5402      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5403      hardcode_shlibpath_var=no
5404      export_dynamic_flag_spec='-Bexport'
5405      ;;
5406
5407    sysv4*MP*)
5408      if test -d /usr/nec; then
5409        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5410        hardcode_shlibpath_var=no
5411        runpath_var=LD_RUN_PATH
5412        hardcode_runpath_var=yes
5413        ld_shlibs=yes
5414      fi
5415      ;;
5416
5417    sysv4.2uw2*)
5418      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5419      hardcode_direct=yes
5420      hardcode_minus_L=no
5421      hardcode_shlibpath_var=no
5422      hardcode_runpath_var=yes
5423      runpath_var=LD_RUN_PATH
5424      ;;
5425
5426   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
5427      no_undefined_flag='${wl}-z ${wl}text'
5428      if test "$GCC" = yes; then
5429        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5430      else
5431        archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5432      fi
5433      runpath_var='LD_RUN_PATH'
5434      hardcode_shlibpath_var=no
5435      ;;
5436
5437    sysv5*)
5438      no_undefined_flag=' -z text'
5439      # $CC -shared without GNU ld will not create a library from C++
5440      # object files and a static libstdc++, better avoid it by now
5441      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5442      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5443  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5444      hardcode_libdir_flag_spec=
5445      hardcode_shlibpath_var=no
5446      runpath_var='LD_RUN_PATH'
5447      ;;
5448
5449    uts4*)
5450      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5451      hardcode_libdir_flag_spec='-L$libdir'
5452      hardcode_shlibpath_var=no
5453      ;;
5454
5455    *)
5456      ld_shlibs=no
5457      ;;
5458    esac
5459  fi
5460
5461echo "$as_me:5461: result: $ld_shlibs" >&5
5462echo "${ECHO_T}$ld_shlibs" >&6
5463test "$ld_shlibs" = no && can_build_shared=no
5464
5465variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
5466if test "$GCC" = yes; then
5467  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
5468fi
5469
5470#
5471# Do we need to explicitly link libc?
5472#
5473archive_cmds_need_lc=yes
5474if test "$enable_shared" = yes && test "$GCC" = yes; then
5475  case $archive_cmds in
5476  *'~'*)
5477    # FIXME: we may have to deal with multi-command sequences.
5478    ;;
5479  '$CC '*)
5480    # Test whether the compiler implicitly links with -lc since on some
5481    # systems, -lgcc has to come before -lc. If gcc already passes -lc
5482    # to ld, don't add -lc before -lgcc.
5483    echo "$as_me:5483: checking whether -lc should be explicitly linked in" >&5
5484echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
5485    $rm conftest*
5486    echo 'static int dummy;' > conftest.$ac_ext
5487
5488    if { (eval echo "$as_me:5488: \"$ac_compile\"") >&5
5489  (eval $ac_compile) 2>&5
5490  ac_status=$?
5491  echo "$as_me:5491: \$? = $ac_status" >&5
5492  (exit $ac_status); } 2>conftest.err; then
5493      soname=conftest
5494      lib=conftest
5495      libobjs=conftest.$ac_objext
5496      deplibs=
5497      wl=$lt_prog_compiler_wl
5498      compiler_flags=-v
5499      linker_flags=-v
5500      verstring=
5501      output_objdir=.
5502      libname=conftest
5503      lt_save_allow_undefined_flag=$allow_undefined_flag
5504      allow_undefined_flag=
5505      if { (eval echo "$as_me:5505: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
5506  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
5507  ac_status=$?
5508  echo "$as_me:5508: \$? = $ac_status" >&5
5509  (exit $ac_status); }
5510      then
5511	archive_cmds_need_lc=no
5512      else
5513	archive_cmds_need_lc=yes
5514      fi
5515      allow_undefined_flag=$lt_save_allow_undefined_flag
5516    else
5517      cat conftest.err 1>&5
5518    fi
5519    $rm conftest*
5520    echo "$as_me:5520: result: $archive_cmds_need_lc" >&5
5521echo "${ECHO_T}$archive_cmds_need_lc" >&6
5522    ;;
5523  esac
5524fi
5525
5526echo "$as_me:5526: checking how to hardcode library paths into programs" >&5
5527echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
5528hardcode_action=
5529if test -n "$hardcode_libdir_flag_spec" || \
5530   test -n "$runpath_var "; then
5531
5532  # We can hardcode non-existant directories.
5533  if test "$hardcode_direct" != no &&
5534     # If the only mechanism to avoid hardcoding is shlibpath_var, we
5535     # have to relink, otherwise we might link with an installed library
5536     # when we should be linking with a yet-to-be-installed one
5537     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
5538     test "$hardcode_minus_L" != no; then
5539    # Linking always hardcodes the temporary library directory.
5540    hardcode_action=relink
5541  else
5542    # We can link without hardcoding, and we can hardcode nonexisting dirs.
5543    hardcode_action=immediate
5544  fi
5545else
5546  # We cannot hardcode anything, or else we can only hardcode existing
5547  # directories.
5548  hardcode_action=unsupported
5549fi
5550echo "$as_me:5550: result: $hardcode_action" >&5
5551echo "${ECHO_T}$hardcode_action" >&6
5552
5553if test "$hardcode_action" = relink; then
5554  # Fast installation is not supported
5555  enable_fast_install=no
5556elif test "$shlibpath_overrides_runpath" = yes ||
5557     test "$enable_shared" = no; then
5558  # Fast installation is not necessary
5559  enable_fast_install=needless
5560fi
5561
5562striplib=
5563old_striplib=
5564echo "$as_me:5564: checking whether stripping libraries is possible" >&5
5565echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
5566if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
5567  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
5568  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
5569  echo "$as_me:5569: result: yes" >&5
5570echo "${ECHO_T}yes" >&6
5571else
5572  echo "$as_me:5572: result: no" >&5
5573echo "${ECHO_T}no" >&6
5574fi
5575
5576echo "$as_me:5576: checking dynamic linker characteristics" >&5
5577echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
5578library_names_spec=
5579libname_spec='lib$name'
5580soname_spec=
5581postinstall_cmds=
5582postuninstall_cmds=
5583finish_cmds=
5584finish_eval=
5585shlibpath_var=
5586shlibpath_overrides_runpath=unknown
5587version_type=none
5588dynamic_linker="$host_os ld.so"
5589sys_lib_dlsearch_path_spec="/lib /usr/lib"
5590sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
5591need_lib_prefix=unknown
5592hardcode_into_libs=no
5593
5594# when you set need_version to no, make sure it does not cause -set_version
5595# flags to be left without arguments
5596need_version=unknown
5597
5598case $host_os in
5599aix3*)
5600  version_type=linux
5601  library_names_spec='${libname}${release}.so$versuffix $libname.a'
5602  shlibpath_var=LIBPATH
5603
5604  # AIX 3 has no versioning support, so we append a major version to the name.
5605  soname_spec='${libname}${release}.so$major'
5606  ;;
5607
5608aix4* | aix5*)
5609  version_type=linux
5610  if test "$host_cpu" = ia64; then
5611    # AIX 5 supports IA64
5612    library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
5613    shlibpath_var=LD_LIBRARY_PATH
5614  else
5615    # With GCC up to 2.95.x, collect2 would create an import file
5616    # for dependence libraries.  The import file would start with
5617    # the line `#! .'.  This would cause the generated library to
5618    # depend on `.', always an invalid library.  This was fixed in
5619    # development snapshots of GCC prior to 3.0.
5620    case $host_os in
5621       aix4 | aix4.[01] | aix4.[01].*)
5622      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
5623           echo ' yes '
5624           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
5625        :
5626      else
5627        can_build_shared=no
5628      fi
5629      ;;
5630    esac
5631    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
5632    # soname into executable. Probably we can add versioning support to
5633    # collect2, so additional links can be useful in future.
5634    if test "$aix_use_runtimelinking" = yes; then
5635      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
5636      # instead of lib<name>.a to let people know that these are not
5637      # typical AIX shared libraries.
5638      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5639    else
5640      # We preserve .a as extension for shared libraries through AIX4.2
5641      # and later when we are not doing run time linking.
5642      library_names_spec='${libname}${release}.a $libname.a'
5643      soname_spec='${libname}${release}.so$major'
5644    fi
5645    shlibpath_var=LIBPATH
5646    deplibs_check_method=pass_all
5647  fi
5648  ;;
5649
5650amigaos*)
5651  library_names_spec='$libname.ixlibrary $libname.a'
5652  # Create ${libname}_ixlibrary.a entries in /sys/libs.
5653  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'
5654  ;;
5655
5656beos*)
5657  library_names_spec='${libname}.so'
5658  dynamic_linker="$host_os ld.so"
5659  shlibpath_var=LIBRARY_PATH
5660  ;;
5661
5662bsdi4*)
5663  version_type=linux
5664  need_version=no
5665  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5666  soname_spec='${libname}${release}.so$major'
5667  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
5668  shlibpath_var=LD_LIBRARY_PATH
5669  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
5670  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
5671  # the default ld.so.conf also contains /usr/contrib/lib and
5672  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
5673  # libtool to hard-code these into programs
5674  ;;
5675
5676cygwin* | mingw* | pw32*)
5677  version_type=windows
5678  need_version=no
5679  need_lib_prefix=no
5680  case $GCC,$host_os in
5681  yes,cygwin*)
5682    library_names_spec='$libname.dll.a'
5683    sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
5684    soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5685    postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
5686      dldir=$destdir/`dirname \$dlpath`~
5687      test -d \$dldir || mkdir -p \$dldir~
5688      $install_prog .libs/$dlname \$dldir/$dlname'
5689    postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
5690      dlpath=$dir/\$dldll~
5691       $rm \$dlpath'
5692    ;;
5693  yes,mingw*)
5694    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5695    sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/$PATH_SEPARATOR/ /g"`
5696    ;;
5697  yes,pw32*)
5698    library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
5699    ;;
5700  *)
5701    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
5702    ;;
5703  esac
5704  dynamic_linker='Win32 ld.exe'
5705  # FIXME: first we should search . and the directory the executable is in
5706  shlibpath_var=PATH
5707  ;;
5708
5709darwin* | rhapsody*)
5710  dynamic_linker="$host_os dyld"
5711  version_type=darwin
5712  need_lib_prefix=no
5713  need_version=no
5714  # FIXME: Relying on posixy $() will cause problems for
5715  #        cross-compilation, but unfortunately the echo tests do not
5716  #        yet detect zsh echo's removal of \ escapes.
5717  library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
5718  soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
5719  shlibpath_overrides_runpath=yes
5720  shlibpath_var=DYLD_LIBRARY_PATH
5721  ;;
5722
5723dgux*)
5724  version_type=linux
5725  need_lib_prefix=no
5726  need_version=no
5727  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5728  soname_spec='${libname}${release}.so$major'
5729  shlibpath_var=LD_LIBRARY_PATH
5730  ;;
5731
5732freebsd1*)
5733  dynamic_linker=no
5734  ;;
5735
5736freebsd*)
5737  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
5738  version_type=freebsd-$objformat
5739  case $version_type in
5740    freebsd-elf*)
5741      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5742      need_version=no
5743      need_lib_prefix=no
5744      ;;
5745    freebsd-*)
5746      library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
5747      need_version=yes
5748      ;;
5749  esac
5750  shlibpath_var=LD_LIBRARY_PATH
5751  case $host_os in
5752  freebsd2*)
5753    shlibpath_overrides_runpath=yes
5754    ;;
5755  freebsd3.01* | freebsdelf3.01*)
5756    shlibpath_overrides_runpath=yes
5757    hardcode_into_libs=yes
5758    ;;
5759  *) # from 3.2 on
5760    shlibpath_overrides_runpath=no
5761    hardcode_into_libs=yes
5762    ;;
5763  esac
5764  ;;
5765
5766gnu*)
5767  version_type=linux
5768  need_lib_prefix=no
5769  need_version=no
5770  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
5771  soname_spec='${libname}${release}.so$major'
5772  shlibpath_var=LD_LIBRARY_PATH
5773  hardcode_into_libs=yes
5774  ;;
5775
5776hpux9* | hpux10* | hpux11*)
5777  # Give a soname corresponding to the major version so that dld.sl refuses to
5778  # link against other versions.
5779  version_type=sunos
5780  need_lib_prefix=no
5781  need_version=no
5782  if test "$host_cpu" = ia64; then
5783    hardcode_into_libs=yes
5784    dynamic_linker="$host_os dld.so"
5785    shlibpath_var=LD_LIBRARY_PATH
5786    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
5787    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5788    soname_spec='${libname}${release}.so$major'
5789    if test "X$HPUX_IA64_MODE" = X32; then
5790      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
5791    else
5792      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
5793    fi
5794    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
5795  else
5796    dynamic_linker="$host_os dld.sl"
5797    shlibpath_var=SHLIB_PATH
5798    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
5799    library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
5800    soname_spec='${libname}${release}.sl$major'
5801  fi
5802  # HP-UX runs *really* slowly unless shared libraries are mode 555.
5803  postinstall_cmds='chmod 555 $lib'
5804  ;;
5805
5806irix5* | irix6*)
5807  version_type=irix
5808  need_lib_prefix=no
5809  need_version=no
5810  soname_spec='${libname}${release}.so$major'
5811  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
5812  case $host_os in
5813  irix5*)
5814    libsuff= shlibsuff=
5815    ;;
5816  *)
5817    case $LD in # libtool.m4 will add one of these switches to LD
5818    *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
5819    *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
5820    *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
5821    *) libsuff= shlibsuff= libmagic=never-match;;
5822    esac
5823    ;;
5824  esac
5825  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
5826  shlibpath_overrides_runpath=no
5827  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
5828  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
5829  ;;
5830
5831# No shared lib support for Linux oldld, aout, or coff.
5832linux*oldld* | linux*aout* | linux*coff*)
5833  dynamic_linker=no
5834  ;;
5835
5836# This must be Linux ELF.
5837linux*)
5838  version_type=linux
5839  need_lib_prefix=no
5840  need_version=no
5841  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5842  soname_spec='${libname}${release}.so$major'
5843  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
5844  shlibpath_var=LD_LIBRARY_PATH
5845  shlibpath_overrides_runpath=no
5846  # This implies no fast_install, which is unacceptable.
5847  # Some rework will be needed to allow for fast_install
5848  # before this can be enabled.
5849  hardcode_into_libs=yes
5850
5851  # We used to test for /lib/ld.so.1 and disable shared libraries on
5852  # powerpc, because MkLinux only supported shared libraries with the
5853  # GNU dynamic linker.  Since this was broken with cross compilers,
5854  # most powerpc-linux boxes support dynamic linking these days and
5855  # people can always --disable-shared, the test was removed, and we
5856  # assume the GNU/Linux dynamic linker is in use.
5857  dynamic_linker='GNU/Linux ld.so'
5858  ;;
5859
5860netbsd*)
5861  version_type=sunos
5862  need_lib_prefix=no
5863  need_version=no
5864  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5865    library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5866    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5867    dynamic_linker='NetBSD (a.out) ld.so'
5868  else
5869    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
5870    soname_spec='${libname}${release}.so$major'
5871    dynamic_linker='NetBSD ld.elf_so'
5872  fi
5873  shlibpath_var=LD_LIBRARY_PATH
5874  shlibpath_overrides_runpath=yes
5875  hardcode_into_libs=yes
5876  ;;
5877
5878newsos6)
5879  version_type=linux
5880  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5881  shlibpath_var=LD_LIBRARY_PATH
5882  shlibpath_overrides_runpath=yes
5883  ;;
5884
5885nto-qnx)
5886  version_type=linux
5887  need_lib_prefix=no
5888  need_version=no
5889  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5890  soname_spec='${libname}${release}.so$major'
5891  shlibpath_var=LD_LIBRARY_PATH
5892  shlibpath_overrides_runpath=yes
5893  ;;
5894
5895openbsd*)
5896  version_type=sunos
5897  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5898  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5899  shlibpath_var=LD_LIBRARY_PATH
5900  file_magic_cmd=/usr/bin/file
5901  file_magic_test_file=`echo /usr/lib/libc.so.*`
5902  if  "`echo __ELF__ | $CC -E - | grep __ELF__`" = "" -o "$host_os-$host_cpu" = "openbsd2.8-powerpc" ; then
5903    deplibs_check_method='file_magic ELF 0-90-9*-bit LMSB shared object'
5904  else
5905    deplibs_check_method='file_magic OpenBSD.* shared library'
5906  fi
5907  ;;
5908
5909os2*)
5910  libname_spec='$name'
5911  need_lib_prefix=no
5912  library_names_spec='$libname.dll $libname.a'
5913  dynamic_linker='OS/2 ld.exe'
5914  shlibpath_var=LIBPATH
5915  ;;
5916
5917osf3* | osf4* | osf5*)
5918  version_type=osf
5919  need_version=no
5920  soname_spec='${libname}${release}.so'
5921  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5922  shlibpath_var=LD_LIBRARY_PATH
5923  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
5924  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
5925  ;;
5926
5927sco3.2v5*)
5928  version_type=osf
5929  soname_spec='${libname}${release}.so$major'
5930  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5931  shlibpath_var=LD_LIBRARY_PATH
5932  ;;
5933
5934solaris*)
5935  version_type=linux
5936  need_lib_prefix=no
5937  need_version=no
5938  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5939  soname_spec='${libname}${release}.so$major'
5940  shlibpath_var=LD_LIBRARY_PATH
5941  shlibpath_overrides_runpath=yes
5942  hardcode_into_libs=yes
5943  # ldd complains unless libraries are executable
5944  postinstall_cmds='chmod +x $lib'
5945  ;;
5946
5947sunos4*)
5948  version_type=sunos
5949  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5950  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
5951  shlibpath_var=LD_LIBRARY_PATH
5952  shlibpath_overrides_runpath=yes
5953  if test "$with_gnu_ld" = yes; then
5954    need_lib_prefix=no
5955  fi
5956  need_version=yes
5957  ;;
5958
5959sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5960  version_type=linux
5961  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5962  soname_spec='${libname}${release}.so$major'
5963  shlibpath_var=LD_LIBRARY_PATH
5964  case $host_vendor in
5965    sni)
5966      shlibpath_overrides_runpath=no
5967      ;;
5968    motorola)
5969      need_lib_prefix=no
5970      need_version=no
5971      shlibpath_overrides_runpath=no
5972      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
5973      ;;
5974  esac
5975  ;;
5976
5977sysv4*MP*)
5978  if test -d /usr/nec ;then
5979    version_type=linux
5980    library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
5981    soname_spec='$libname.so.$major'
5982    shlibpath_var=LD_LIBRARY_PATH
5983  fi
5984  ;;
5985
5986uts4*)
5987  version_type=linux
5988  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5989  soname_spec='${libname}${release}.so$major'
5990  shlibpath_var=LD_LIBRARY_PATH
5991  ;;
5992
5993*)
5994  dynamic_linker=no
5995  ;;
5996esac
5997echo "$as_me:5997: result: $dynamic_linker" >&5
5998echo "${ECHO_T}$dynamic_linker" >&6
5999test "$dynamic_linker" = no && can_build_shared=no
6000
6001if test "x$enable_dlopen" != xyes; then
6002  enable_dlopen=unknown
6003  enable_dlopen_self=unknown
6004  enable_dlopen_self_static=unknown
6005else
6006  lt_cv_dlopen=no
6007  lt_cv_dlopen_libs=
6008
6009  case $host_os in
6010  beos*)
6011    lt_cv_dlopen="load_add_on"
6012    lt_cv_dlopen_libs=
6013    lt_cv_dlopen_self=yes
6014    ;;
6015
6016  cygwin* | mingw* | pw32*)
6017    lt_cv_dlopen="LoadLibrary"
6018    lt_cv_dlopen_libs=
6019   ;;
6020
6021  *)
6022    echo "$as_me:6022: checking for shl_load" >&5
6023echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
6024if test "${ac_cv_func_shl_load+set}" = set; then
6025  echo $ECHO_N "(cached) $ECHO_C" >&6
6026else
6027  cat >conftest.$ac_ext <<_ACEOF
6028#line 6028 "configure"
6029#include "confdefs.h"
6030/* System header to define __stub macros and hopefully few prototypes,
6031    which can conflict with char shl_load (); below.  */
6032#include <assert.h>
6033/* Override any gcc2 internal prototype to avoid an error.  */
6034#ifdef __cplusplus
6035extern "C"
6036#endif
6037/* We use char because int might match the return type of a gcc2
6038   builtin and then its argument prototype would still apply.  */
6039char shl_load ();
6040char (*f) ();
6041
6042int
6043main ()
6044{
6045/* The GNU C library defines this for functions which it implements
6046    to always fail with ENOSYS.  Some functions are actually named
6047    something starting with __ and the normal name is an alias.  */
6048#if defined (__stub_shl_load) || defined (__stub___shl_load)
6049choke me
6050#else
6051f = shl_load;
6052#endif
6053
6054  ;
6055  return 0;
6056}
6057_ACEOF
6058rm -f conftest.$ac_objext conftest$ac_exeext
6059if { (eval echo "$as_me:6059: \"$ac_link\"") >&5
6060  (eval $ac_link) 2>&5
6061  ac_status=$?
6062  echo "$as_me:6062: \$? = $ac_status" >&5
6063  (exit $ac_status); } &&
6064         { ac_try='test -s conftest$ac_exeext'
6065  { (eval echo "$as_me:6065: \"$ac_try\"") >&5
6066  (eval $ac_try) 2>&5
6067  ac_status=$?
6068  echo "$as_me:6068: \$? = $ac_status" >&5
6069  (exit $ac_status); }; }; then
6070  ac_cv_func_shl_load=yes
6071else
6072  echo "$as_me: failed program was:" >&5
6073cat conftest.$ac_ext >&5
6074ac_cv_func_shl_load=no
6075fi
6076rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6077fi
6078echo "$as_me:6078: result: $ac_cv_func_shl_load" >&5
6079echo "${ECHO_T}$ac_cv_func_shl_load" >&6
6080if test $ac_cv_func_shl_load = yes; then
6081  lt_cv_dlopen="shl_load"
6082else
6083  echo "$as_me:6083: checking for shl_load in -ldld" >&5
6084echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
6085if test "${ac_cv_lib_dld_shl_load+set}" = set; then
6086  echo $ECHO_N "(cached) $ECHO_C" >&6
6087else
6088  ac_check_lib_save_LIBS=$LIBS
6089LIBS="-ldld  $LIBS"
6090cat >conftest.$ac_ext <<_ACEOF
6091#line 6091 "configure"
6092#include "confdefs.h"
6093
6094/* Override any gcc2 internal prototype to avoid an error.  */
6095#ifdef __cplusplus
6096extern "C"
6097#endif
6098/* We use char because int might match the return type of a gcc2
6099   builtin and then its argument prototype would still apply.  */
6100char shl_load ();
6101int
6102main ()
6103{
6104shl_load ();
6105  ;
6106  return 0;
6107}
6108_ACEOF
6109rm -f conftest.$ac_objext conftest$ac_exeext
6110if { (eval echo "$as_me:6110: \"$ac_link\"") >&5
6111  (eval $ac_link) 2>&5
6112  ac_status=$?
6113  echo "$as_me:6113: \$? = $ac_status" >&5
6114  (exit $ac_status); } &&
6115         { ac_try='test -s conftest$ac_exeext'
6116  { (eval echo "$as_me:6116: \"$ac_try\"") >&5
6117  (eval $ac_try) 2>&5
6118  ac_status=$?
6119  echo "$as_me:6119: \$? = $ac_status" >&5
6120  (exit $ac_status); }; }; then
6121  ac_cv_lib_dld_shl_load=yes
6122else
6123  echo "$as_me: failed program was:" >&5
6124cat conftest.$ac_ext >&5
6125ac_cv_lib_dld_shl_load=no
6126fi
6127rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6128LIBS=$ac_check_lib_save_LIBS
6129fi
6130echo "$as_me:6130: result: $ac_cv_lib_dld_shl_load" >&5
6131echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
6132if test $ac_cv_lib_dld_shl_load = yes; then
6133  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6134else
6135  echo "$as_me:6135: checking for dlopen in -ldl" >&5
6136echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
6137if test "${ac_cv_lib_dl_dlopen+set}" = set; then
6138  echo $ECHO_N "(cached) $ECHO_C" >&6
6139else
6140  ac_check_lib_save_LIBS=$LIBS
6141LIBS="-ldl  $LIBS"
6142cat >conftest.$ac_ext <<_ACEOF
6143#line 6143 "configure"
6144#include "confdefs.h"
6145
6146/* Override any gcc2 internal prototype to avoid an error.  */
6147#ifdef __cplusplus
6148extern "C"
6149#endif
6150/* We use char because int might match the return type of a gcc2
6151   builtin and then its argument prototype would still apply.  */
6152char dlopen ();
6153int
6154main ()
6155{
6156dlopen ();
6157  ;
6158  return 0;
6159}
6160_ACEOF
6161rm -f conftest.$ac_objext conftest$ac_exeext
6162if { (eval echo "$as_me:6162: \"$ac_link\"") >&5
6163  (eval $ac_link) 2>&5
6164  ac_status=$?
6165  echo "$as_me:6165: \$? = $ac_status" >&5
6166  (exit $ac_status); } &&
6167         { ac_try='test -s conftest$ac_exeext'
6168  { (eval echo "$as_me:6168: \"$ac_try\"") >&5
6169  (eval $ac_try) 2>&5
6170  ac_status=$?
6171  echo "$as_me:6171: \$? = $ac_status" >&5
6172  (exit $ac_status); }; }; then
6173  ac_cv_lib_dl_dlopen=yes
6174else
6175  echo "$as_me: failed program was:" >&5
6176cat conftest.$ac_ext >&5
6177ac_cv_lib_dl_dlopen=no
6178fi
6179rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6180LIBS=$ac_check_lib_save_LIBS
6181fi
6182echo "$as_me:6182: result: $ac_cv_lib_dl_dlopen" >&5
6183echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
6184if test $ac_cv_lib_dl_dlopen = yes; then
6185  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6186else
6187  echo "$as_me:6187: checking for dlopen" >&5
6188echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
6189if test "${ac_cv_func_dlopen+set}" = set; then
6190  echo $ECHO_N "(cached) $ECHO_C" >&6
6191else
6192  cat >conftest.$ac_ext <<_ACEOF
6193#line 6193 "configure"
6194#include "confdefs.h"
6195/* System header to define __stub macros and hopefully few prototypes,
6196    which can conflict with char dlopen (); below.  */
6197#include <assert.h>
6198/* Override any gcc2 internal prototype to avoid an error.  */
6199#ifdef __cplusplus
6200extern "C"
6201#endif
6202/* We use char because int might match the return type of a gcc2
6203   builtin and then its argument prototype would still apply.  */
6204char dlopen ();
6205char (*f) ();
6206
6207int
6208main ()
6209{
6210/* The GNU C library defines this for functions which it implements
6211    to always fail with ENOSYS.  Some functions are actually named
6212    something starting with __ and the normal name is an alias.  */
6213#if defined (__stub_dlopen) || defined (__stub___dlopen)
6214choke me
6215#else
6216f = dlopen;
6217#endif
6218
6219  ;
6220  return 0;
6221}
6222_ACEOF
6223rm -f conftest.$ac_objext conftest$ac_exeext
6224if { (eval echo "$as_me:6224: \"$ac_link\"") >&5
6225  (eval $ac_link) 2>&5
6226  ac_status=$?
6227  echo "$as_me:6227: \$? = $ac_status" >&5
6228  (exit $ac_status); } &&
6229         { ac_try='test -s conftest$ac_exeext'
6230  { (eval echo "$as_me:6230: \"$ac_try\"") >&5
6231  (eval $ac_try) 2>&5
6232  ac_status=$?
6233  echo "$as_me:6233: \$? = $ac_status" >&5
6234  (exit $ac_status); }; }; then
6235  ac_cv_func_dlopen=yes
6236else
6237  echo "$as_me: failed program was:" >&5
6238cat conftest.$ac_ext >&5
6239ac_cv_func_dlopen=no
6240fi
6241rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6242fi
6243echo "$as_me:6243: result: $ac_cv_func_dlopen" >&5
6244echo "${ECHO_T}$ac_cv_func_dlopen" >&6
6245if test $ac_cv_func_dlopen = yes; then
6246  lt_cv_dlopen="dlopen"
6247else
6248  echo "$as_me:6248: checking for dlopen in -lsvld" >&5
6249echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
6250if test "${ac_cv_lib_svld_dlopen+set}" = set; then
6251  echo $ECHO_N "(cached) $ECHO_C" >&6
6252else
6253  ac_check_lib_save_LIBS=$LIBS
6254LIBS="-lsvld  $LIBS"
6255cat >conftest.$ac_ext <<_ACEOF
6256#line 6256 "configure"
6257#include "confdefs.h"
6258
6259/* Override any gcc2 internal prototype to avoid an error.  */
6260#ifdef __cplusplus
6261extern "C"
6262#endif
6263/* We use char because int might match the return type of a gcc2
6264   builtin and then its argument prototype would still apply.  */
6265char dlopen ();
6266int
6267main ()
6268{
6269dlopen ();
6270  ;
6271  return 0;
6272}
6273_ACEOF
6274rm -f conftest.$ac_objext conftest$ac_exeext
6275if { (eval echo "$as_me:6275: \"$ac_link\"") >&5
6276  (eval $ac_link) 2>&5
6277  ac_status=$?
6278  echo "$as_me:6278: \$? = $ac_status" >&5
6279  (exit $ac_status); } &&
6280         { ac_try='test -s conftest$ac_exeext'
6281  { (eval echo "$as_me:6281: \"$ac_try\"") >&5
6282  (eval $ac_try) 2>&5
6283  ac_status=$?
6284  echo "$as_me:6284: \$? = $ac_status" >&5
6285  (exit $ac_status); }; }; then
6286  ac_cv_lib_svld_dlopen=yes
6287else
6288  echo "$as_me: failed program was:" >&5
6289cat conftest.$ac_ext >&5
6290ac_cv_lib_svld_dlopen=no
6291fi
6292rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6293LIBS=$ac_check_lib_save_LIBS
6294fi
6295echo "$as_me:6295: result: $ac_cv_lib_svld_dlopen" >&5
6296echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
6297if test $ac_cv_lib_svld_dlopen = yes; then
6298  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6299fi
6300
6301fi
6302
6303fi
6304
6305fi
6306
6307fi
6308
6309    ;;
6310  esac
6311
6312  if test "x$lt_cv_dlopen" != xno; then
6313    enable_dlopen=yes
6314  else
6315    enable_dlopen=no
6316  fi
6317
6318  case $lt_cv_dlopen in
6319  dlopen)
6320    save_CPPFLAGS="$CPPFLAGS"
6321    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
6322
6323    save_LDFLAGS="$LDFLAGS"
6324    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6325
6326    save_LIBS="$LIBS"
6327    LIBS="$lt_cv_dlopen_libs $LIBS"
6328
6329    echo "$as_me:6329: checking whether a program can dlopen itself" >&5
6330echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
6331if test "${lt_cv_dlopen_self+set}" = set; then
6332  echo $ECHO_N "(cached) $ECHO_C" >&6
6333else
6334  	  if test "$cross_compiling" = yes; then :
6335  lt_cv_dlopen_self=cross
6336else
6337  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6338  lt_status=$lt_dlunknown
6339  cat > conftest.$ac_ext <<EOF
6340#line 6340 "configure"
6341#include "confdefs.h"
6342
6343#if HAVE_DLFCN_H
6344#include <dlfcn.h>
6345#endif
6346
6347#include <stdio.h>
6348
6349#ifdef RTLD_GLOBAL
6350#  define LT_DLGLOBAL		RTLD_GLOBAL
6351#else
6352#  ifdef DL_GLOBAL
6353#    define LT_DLGLOBAL		DL_GLOBAL
6354#  else
6355#    define LT_DLGLOBAL		0
6356#  endif
6357#endif
6358
6359/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6360   find out it does not work in some platform. */
6361#ifndef LT_DLLAZY_OR_NOW
6362#  ifdef RTLD_LAZY
6363#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
6364#  else
6365#    ifdef DL_LAZY
6366#      define LT_DLLAZY_OR_NOW		DL_LAZY
6367#    else
6368#      ifdef RTLD_NOW
6369#        define LT_DLLAZY_OR_NOW	RTLD_NOW
6370#      else
6371#        ifdef DL_NOW
6372#          define LT_DLLAZY_OR_NOW	DL_NOW
6373#        else
6374#          define LT_DLLAZY_OR_NOW	0
6375#        endif
6376#      endif
6377#    endif
6378#  endif
6379#endif
6380
6381#ifdef __cplusplus
6382extern "C" void exit (int);
6383#endif
6384
6385void fnord() { int i=42;}
6386int main ()
6387{
6388  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6389  int status = $lt_dlunknown;
6390
6391  if (self)
6392    {
6393      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
6394      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6395      /* dlclose (self); */
6396    }
6397
6398    exit (status);
6399}
6400EOF
6401  if { (eval echo "$as_me:6401: \"$ac_link\"") >&5
6402  (eval $ac_link) 2>&5
6403  ac_status=$?
6404  echo "$as_me:6404: \$? = $ac_status" >&5
6405  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6406    (./conftest; exit; ) 2>/dev/null
6407    lt_status=$?
6408    case x$lt_status in
6409      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
6410      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
6411      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
6412    esac
6413  else :
6414    # compilation failed
6415    lt_cv_dlopen_self=no
6416  fi
6417fi
6418rm -fr conftest*
6419
6420fi
6421echo "$as_me:6421: result: $lt_cv_dlopen_self" >&5
6422echo "${ECHO_T}$lt_cv_dlopen_self" >&6
6423
6424    if test "x$lt_cv_dlopen_self" = xyes; then
6425      LDFLAGS="$LDFLAGS $link_static_flag"
6426      echo "$as_me:6426: checking whether a statically linked program can dlopen itself" >&5
6427echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
6428if test "${lt_cv_dlopen_self_static+set}" = set; then
6429  echo $ECHO_N "(cached) $ECHO_C" >&6
6430else
6431  	  if test "$cross_compiling" = yes; then :
6432  lt_cv_dlopen_self_static=cross
6433else
6434  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6435  lt_status=$lt_dlunknown
6436  cat > conftest.$ac_ext <<EOF
6437#line 6437 "configure"
6438#include "confdefs.h"
6439
6440#if HAVE_DLFCN_H
6441#include <dlfcn.h>
6442#endif
6443
6444#include <stdio.h>
6445
6446#ifdef RTLD_GLOBAL
6447#  define LT_DLGLOBAL		RTLD_GLOBAL
6448#else
6449#  ifdef DL_GLOBAL
6450#    define LT_DLGLOBAL		DL_GLOBAL
6451#  else
6452#    define LT_DLGLOBAL		0
6453#  endif
6454#endif
6455
6456/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6457   find out it does not work in some platform. */
6458#ifndef LT_DLLAZY_OR_NOW
6459#  ifdef RTLD_LAZY
6460#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
6461#  else
6462#    ifdef DL_LAZY
6463#      define LT_DLLAZY_OR_NOW		DL_LAZY
6464#    else
6465#      ifdef RTLD_NOW
6466#        define LT_DLLAZY_OR_NOW	RTLD_NOW
6467#      else
6468#        ifdef DL_NOW
6469#          define LT_DLLAZY_OR_NOW	DL_NOW
6470#        else
6471#          define LT_DLLAZY_OR_NOW	0
6472#        endif
6473#      endif
6474#    endif
6475#  endif
6476#endif
6477
6478#ifdef __cplusplus
6479extern "C" void exit (int);
6480#endif
6481
6482void fnord() { int i=42;}
6483int main ()
6484{
6485  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6486  int status = $lt_dlunknown;
6487
6488  if (self)
6489    {
6490      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
6491      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6492      /* dlclose (self); */
6493    }
6494
6495    exit (status);
6496}
6497EOF
6498  if { (eval echo "$as_me:6498: \"$ac_link\"") >&5
6499  (eval $ac_link) 2>&5
6500  ac_status=$?
6501  echo "$as_me:6501: \$? = $ac_status" >&5
6502  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6503    (./conftest; exit; ) 2>/dev/null
6504    lt_status=$?
6505    case x$lt_status in
6506      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
6507      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
6508      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
6509    esac
6510  else :
6511    # compilation failed
6512    lt_cv_dlopen_self_static=no
6513  fi
6514fi
6515rm -fr conftest*
6516
6517fi
6518echo "$as_me:6518: result: $lt_cv_dlopen_self_static" >&5
6519echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
6520    fi
6521
6522    CPPFLAGS="$save_CPPFLAGS"
6523    LDFLAGS="$save_LDFLAGS"
6524    LIBS="$save_LIBS"
6525    ;;
6526  esac
6527
6528  case $lt_cv_dlopen_self in
6529  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
6530  *) enable_dlopen_self=unknown ;;
6531  esac
6532
6533  case $lt_cv_dlopen_self_static in
6534  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
6535  *) enable_dlopen_self_static=unknown ;;
6536  esac
6537fi
6538
6539# Report which librarie types wil actually be built
6540echo "$as_me:6540: checking if libtool supports shared libraries" >&5
6541echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
6542echo "$as_me:6542: result: $can_build_shared" >&5
6543echo "${ECHO_T}$can_build_shared" >&6
6544
6545echo "$as_me:6545: checking whether to build shared libraries" >&5
6546echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
6547test "$can_build_shared" = "no" && enable_shared=no
6548
6549# On AIX, shared libraries and static libraries use the same namespace, and
6550# are all built from PIC.
6551case "$host_os" in
6552aix3*)
6553  test "$enable_shared" = yes && enable_static=no
6554  if test -n "$RANLIB"; then
6555    archive_cmds="$archive_cmds~\$RANLIB \$lib"
6556    postinstall_cmds='$RANLIB $lib'
6557  fi
6558  ;;
6559
6560aix4*)
6561  test "$enable_shared" = yes && enable_static=no
6562  ;;
6563esac
6564echo "$as_me:6564: result: $enable_shared" >&5
6565echo "${ECHO_T}$enable_shared" >&6
6566
6567echo "$as_me:6567: checking whether to build static libraries" >&5
6568echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
6569# Make sure either enable_shared or enable_static is yes.
6570test "$enable_shared" = yes || enable_static=yes
6571echo "$as_me:6571: result: $enable_static" >&5
6572echo "${ECHO_T}$enable_static" >&6
6573
6574# The else clause should only fire when bootstrapping the
6575# libtool distribution, otherwise you forgot to ship ltmain.sh
6576# with your package, and you will get complaints that there are
6577# no rules to generate ltmain.sh.
6578if test -f "$ltmain"; then
6579  # Now quote all the things that may contain metacharacters while being
6580  # careful not to overquote the AC_SUBSTed values.  We take copies of the
6581  # variables and quote the copies for generation of the libtool script.
6582  for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S NM SHELL \
6583    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
6584    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
6585    deplibs_check_method reload_flag reload_cmds need_locks \
6586    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
6587    lt_cv_sys_global_symbol_to_c_name_address \
6588    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
6589    old_postinstall_cmds old_postuninstall_cmds \
6590    compiler \
6591    CC \
6592    LD \
6593    lt_prog_compiler_wl \
6594    lt_prog_compiler_pic \
6595    lt_prog_compiler_static \
6596    lt_prog_compiler_no_builtin_flag \
6597    export_dynamic_flag_spec \
6598    thread_safe_flag_spec \
6599    whole_archive_flag_spec \
6600    old_archive_cmds \
6601    old_archive_from_new_cmds \
6602    predep_objects \
6603    postdep_objects \
6604    predeps \
6605    postdeps \
6606    compiler_lib_search_path \
6607    archive_cmds \
6608    archive_expsym_cmds \
6609    postinstall_cmds \
6610    postuninstall_cmds \
6611    old_archive_from_expsyms_cmds \
6612    allow_undefined_flag \
6613    no_undefined_flag \
6614    export_symbols_cmds \
6615    hardcode_libdir_flag_spec \
6616    hardcode_libdir_separator \
6617    lt_cv_prog_compiler_c_o \
6618    exclude_expsyms \
6619    include_expsyms; do
6620
6621    case $var in
6622    old_archive_cmds | \
6623    old_archive_from_new_cmds | \
6624    archive_cmds | \
6625    archive_expsym_cmds | \
6626    old_archive_from_expsyms_cmds | \
6627    export_symbols_cmds | \
6628    extract_expsyms_cmds | reload_cmds | finish_cmds | \
6629    postinstall_cmds | postuninstall_cmds | \
6630    old_postinstall_cmds | old_postuninstall_cmds | \
6631    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
6632      # Double-quote double-evaled strings.
6633      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
6634      ;;
6635    *)
6636      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
6637      ;;
6638    esac
6639  done
6640
6641  case $lt_echo in
6642  *'\$0 --fallback-echo"')
6643    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
6644    ;;
6645  esac
6646
6647cfgfile="${ofile}T"
6648  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
6649  $rm -f "$cfgfile"
6650  { echo "$as_me:6650: creating $ofile" >&5
6651echo "$as_me: creating $ofile" >&6;}
6652
6653  cat <<__EOF__ >> "$cfgfile"
6654#! $SHELL
6655
6656# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
6657# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
6658# NOTE: Changes made to this file will be lost: look at ltmain.sh.
6659#
6660# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
6661# Free Software Foundation, Inc.
6662#
6663# This file is part of GNU Libtool:
6664# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
6665#
6666# This program is free software; you can redistribute it and/or modify
6667# it under the terms of the GNU General Public License as published by
6668# the Free Software Foundation; either version 2 of the License, or
6669# (at your option) any later version.
6670#
6671# This program is distributed in the hope that it will be useful, but
6672# WITHOUT ANY WARRANTY; without even the implied warranty of
6673# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
6674# General Public License for more details.
6675#
6676# You should have received a copy of the GNU General Public License
6677# along with this program; if not, write to the Free Software
6678# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
6679#
6680# As a special exception to the GNU General Public License, if you
6681# distribute this file as part of a program that contains a
6682# configuration script generated by Autoconf, you may include it under
6683# the same distribution terms that you use for the rest of that program.
6684
6685# Sed that helps us avoid accidentally triggering echo(1) options like -n.
6686Xsed="sed -e s/^X//"
6687
6688# The HP-UX ksh and POSIX shell print the target directory to stdout
6689# if CDPATH is set.
6690if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
6691
6692# The names of the tagged configurations supported by this script.
6693available_tags=
6694
6695# ### BEGIN LIBTOOL CONFIG
6696
6697# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6698
6699# Shell to use when invoking shell scripts.
6700SHELL=$lt_SHELL
6701
6702# Whether or not to build shared libraries.
6703build_libtool_libs=$enable_shared
6704
6705# Whether or not to build static libraries.
6706build_old_libs=$enable_static
6707
6708# Whether or not to add -lc for building shared libraries.
6709build_libtool_need_lc=$archive_cmds_need_lc
6710
6711# Whether or not to optimize for fast installation.
6712fast_install=$enable_fast_install
6713
6714# The host system.
6715host_alias=$host_alias
6716host=$host
6717
6718# An echo program that does not interpret backslashes.
6719echo=$lt_echo
6720
6721# The archiver.
6722AR=$lt_AR
6723AR_FLAGS=$lt_AR_FLAGS
6724
6725# A C compiler.
6726LTCC=$LTCC
6727
6728# A language-specific compiler.
6729CC=$lt_compiler
6730
6731# Is the compiler the GNU C compiler?
6732with_gcc=$GCC
6733
6734# The linker used to build libraries.
6735LD=$lt_LD
6736
6737# Whether we need hard or soft links.
6738LN_S=$lt_LN_S
6739
6740# A BSD-compatible nm program.
6741NM=$lt_NM
6742
6743# A symbol stripping program
6744STRIP=$STRIP
6745
6746# Used to examine libraries when file_magic_cmd begins "file"
6747MAGIC_CMD=$MAGIC_CMD
6748
6749# Used on cygwin: DLL creation program.
6750DLLTOOL="$DLLTOOL"
6751
6752# Used on cygwin: object dumper.
6753OBJDUMP="$OBJDUMP"
6754
6755# Used on cygwin: assembler.
6756AS="$AS"
6757
6758# The name of the directory that contains temporary libtool files.
6759objdir=$objdir
6760
6761# How to create reloadable object files.
6762reload_flag=$lt_reload_flag
6763reload_cmds=$lt_reload_cmds
6764
6765# How to pass a linker flag through the compiler.
6766wl=$lt_lt_prog_compiler_wl
6767
6768# Object file suffix (normally "o").
6769objext="$ac_objext"
6770
6771# Old archive suffix (normally "a").
6772libext="$libext"
6773
6774# Executable file suffix (normally "").
6775exeext="$exeext"
6776
6777# Additional compiler flags for building library objects.
6778pic_flag=$lt_lt_prog_compiler_pic
6779pic_mode=$pic_mode
6780
6781# What is the maximum length of a command?
6782max_cmd_len=$lt_cv_sys_max_cmd_len
6783
6784# Does compiler simultaneously support -c and -o options?
6785compiler_c_o=$lt_lt_cv_prog_compiler_c_o
6786
6787# Must we lock files when doing compilation ?
6788need_locks=$lt_need_locks
6789
6790# Do we need the lib prefix for modules?
6791need_lib_prefix=$need_lib_prefix
6792
6793# Do we need a version for libraries?
6794need_version=$need_version
6795
6796# Whether dlopen is supported.
6797dlopen_support=$enable_dlopen
6798
6799# Whether dlopen of programs is supported.
6800dlopen_self=$enable_dlopen_self
6801
6802# Whether dlopen of statically linked programs is supported.
6803dlopen_self_static=$enable_dlopen_self_static
6804
6805# Compiler flag to prevent dynamic linking.
6806link_static_flag=$lt_lt_prog_compiler_static
6807
6808# Compiler flag to turn off builtin functions.
6809no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
6810
6811# Compiler flag to allow reflexive dlopens.
6812export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
6813
6814# Compiler flag to generate shared objects directly from archives.
6815whole_archive_flag_spec=$lt_whole_archive_flag_spec
6816
6817# Compiler flag to generate thread-safe objects.
6818thread_safe_flag_spec=$lt_thread_safe_flag_spec
6819
6820# Library versioning type.
6821version_type=$version_type
6822
6823# Format of library name prefix.
6824libname_spec=$lt_libname_spec
6825
6826# List of archive names.  First name is the real one, the rest are links.
6827# The last name is the one that the linker finds with -lNAME.
6828library_names_spec=$lt_library_names_spec
6829
6830# The coded name of the library, if different from the real name.
6831soname_spec=$lt_soname_spec
6832
6833# Commands used to build and install an old-style archive.
6834RANLIB=$lt_RANLIB
6835old_archive_cmds=$lt_old_archive_cmds
6836old_postinstall_cmds=$lt_old_postinstall_cmds
6837old_postuninstall_cmds=$lt_old_postuninstall_cmds
6838
6839# Create an old-style archive from a shared archive.
6840old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
6841
6842# Create a temporary old-style archive to link instead of a shared archive.
6843old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
6844
6845# Commands used to build and install a shared archive.
6846archive_cmds=$lt_archive_cmds
6847archive_expsym_cmds=$lt_archive_expsym_cmds
6848postinstall_cmds=$lt_postinstall_cmds
6849postuninstall_cmds=$lt_postuninstall_cmds
6850
6851# Commands to strip libraries.
6852old_striplib=$lt_old_striplib
6853striplib=$lt_striplib
6854
6855# Dependencies to place before the objects being linked to create a
6856# shared library.
6857predep_objects=$lt_predep_objects
6858
6859# Dependencies to place after the objects being linked to create a
6860# shared library.
6861postdep_objects=$lt_postdep_objects
6862
6863# Dependencies to place before the objects being linked to create a
6864# shared library.
6865predeps=$lt_predeps
6866
6867# Dependencies to place after the objects being linked to create a
6868# shared library.
6869postdeps=$lt_postdeps
6870
6871# The library search path used internally by the compiler when linking
6872# a shared library.
6873compiler_lib_search_path=$lt_compiler_lib_search_path
6874
6875# Method to check whether dependent libraries are shared objects.
6876deplibs_check_method=$lt_deplibs_check_method
6877
6878# Command to use when deplibs_check_method == file_magic.
6879file_magic_cmd=$lt_file_magic_cmd
6880
6881# Flag that allows shared libraries with undefined symbols to be built.
6882allow_undefined_flag=$lt_allow_undefined_flag
6883
6884# Flag that forces no undefined symbols.
6885no_undefined_flag=$lt_no_undefined_flag
6886
6887# Commands used to finish a libtool library installation in a directory.
6888finish_cmds=$lt_finish_cmds
6889
6890# Same as above, but a single script fragment to be evaled but not shown.
6891finish_eval=$lt_finish_eval
6892
6893# Take the output of nm and produce a listing of raw symbols and C names.
6894global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
6895
6896# Transform the output of nm in a proper C declaration
6897global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
6898
6899# Transform the output of nm in a C name address pair
6900global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
6901
6902# This is the shared library runtime path variable.
6903runpath_var=$runpath_var
6904
6905# This is the shared library path variable.
6906shlibpath_var=$shlibpath_var
6907
6908# Is shlibpath searched before the hard-coded library search path?
6909shlibpath_overrides_runpath=$shlibpath_overrides_runpath
6910
6911# How to hardcode a shared library path into an executable.
6912hardcode_action=$hardcode_action
6913
6914# Whether we should hardcode library paths into libraries.
6915hardcode_into_libs=$hardcode_into_libs
6916
6917# Flag to hardcode \$libdir into a binary during linking.
6918# This must work even if \$libdir does not exist.
6919hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
6920
6921# Whether we need a single -rpath flag with a separated argument.
6922hardcode_libdir_separator=$lt_hardcode_libdir_separator
6923
6924# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
6925# resulting binary.
6926hardcode_direct=$hardcode_direct
6927
6928# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
6929# resulting binary.
6930hardcode_minus_L=$hardcode_minus_L
6931
6932# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
6933# the resulting binary.
6934hardcode_shlibpath_var=$hardcode_shlibpath_var
6935
6936# Variables whose values should be saved in libtool wrapper scripts and
6937# restored at relink time.
6938variables_saved_for_relink="$variables_saved_for_relink"
6939
6940# Whether libtool must link a program against all its dependency libraries.
6941link_all_deplibs=$link_all_deplibs
6942
6943# Compile-time system search path for libraries
6944sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
6945
6946# Run-time system search path for libraries
6947sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
6948
6949# Fix the shell variable \$srcfile for the compiler.
6950fix_srcfile_path="$fix_srcfile_path"
6951
6952# Set to yes if exported symbols are required.
6953always_export_symbols=$always_export_symbols
6954
6955# The commands to list exported symbols.
6956export_symbols_cmds=$lt_export_symbols_cmds
6957
6958# The commands to extract the exported symbol list from a shared archive.
6959extract_expsyms_cmds=$lt_extract_expsyms_cmds
6960
6961# Symbols that should not be listed in the preloaded symbols.
6962exclude_expsyms=$lt_exclude_expsyms
6963
6964# Symbols that must always be exported.
6965include_expsyms=$lt_include_expsyms
6966
6967# ### END LIBTOOL CONFIG
6968
6969__EOF__
6970
6971  case $host_os in
6972  aix3*)
6973    cat <<\EOF >> "$cfgfile"
6974
6975# AIX sometimes has problems with the GCC collect2 program.  For some
6976# reason, if we set the COLLECT_NAMES environment variable, the problems
6977# vanish in a puff of smoke.
6978if test "X${COLLECT_NAMES+set}" != Xset; then
6979  COLLECT_NAMES=
6980  export COLLECT_NAMES
6981fi
6982EOF
6983    ;;
6984
6985  cygwin* | mingw* | pw32* | os2*)
6986    cat <<'EOF' >> "$cfgfile"
6987    # This is a source program that is used to create dlls on Windows
6988    # Don't remove nor modify the starting and closing comments
6989    # /* ltdll.c starts here */
6990# #define WIN32_LEAN_AND_MEAN
6991# #include <windows.h>
6992# #undef WIN32_LEAN_AND_MEAN
6993# #include <stdio.h>
6994#
6995# #ifndef __CYGWIN__
6996# #  ifdef __CYGWIN32__
6997# #    define __CYGWIN__ __CYGWIN32__
6998# #  endif
6999# #endif
7000#
7001# #ifdef __cplusplus
7002# extern "C" {
7003# #endif
7004# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7005# #ifdef __cplusplus
7006# }
7007# #endif
7008#
7009# #ifdef __CYGWIN__
7010# #include <cygwin/cygwin_dll.h>
7011# DECLARE_CYGWIN_DLL( DllMain );
7012# #endif
7013# HINSTANCE __hDllInstance_base;
7014#
7015# BOOL APIENTRY
7016# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7017# {
7018#   __hDllInstance_base = hInst;
7019#   return TRUE;
7020# }
7021# /* ltdll.c ends here */
7022
7023    # This is a source program that is used to create import libraries
7024    # on Windows for dlls which lack them. Don't remove nor modify the
7025    # starting and closing comments
7026    # /* impgen.c starts here */
7027# /*   Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
7028#
7029#  This file is part of GNU libtool.
7030#
7031#  This program is free software; you can redistribute it and/or modify
7032#  it under the terms of the GNU General Public License as published by
7033#  the Free Software Foundation; either version 2 of the License, or
7034#  (at your option) any later version.
7035#
7036#  This program is distributed in the hope that it will be useful,
7037#  but WITHOUT ANY WARRANTY; without even the implied warranty of
7038#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
7039#  GNU General Public License for more details.
7040#
7041#  You should have received a copy of the GNU General Public License
7042#  along with this program; if not, write to the Free Software
7043#  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7044#  */
7045#
7046# #include <stdio.h>		/* for printf() */
7047# #include <unistd.h>		/* for open(), lseek(), read() */
7048# #include <fcntl.h>		/* for O_RDONLY, O_BINARY */
7049# #include <string.h>		/* for strdup() */
7050#
7051# /* O_BINARY isn't required (or even defined sometimes) under Unix */
7052# #ifndef O_BINARY
7053# #define O_BINARY 0
7054# #endif
7055#
7056# static unsigned int
7057# pe_get16 (fd, offset)
7058#      int fd;
7059#      int offset;
7060# {
7061#   unsigned char b[2];
7062#   lseek (fd, offset, SEEK_SET);
7063#   read (fd, b, 2);
7064#   return b[0] + (b[1]<<8);
7065# }
7066#
7067# static unsigned int
7068# pe_get32 (fd, offset)
7069#     int fd;
7070#     int offset;
7071# {
7072#   unsigned char b[4];
7073#   lseek (fd, offset, SEEK_SET);
7074#   read (fd, b, 4);
7075#   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7076# }
7077#
7078# static unsigned int
7079# pe_as32 (ptr)
7080#      void *ptr;
7081# {
7082#   unsigned char *b = ptr;
7083#   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7084# }
7085#
7086# int
7087# main (argc, argv)
7088#     int argc;
7089#     char *argv[];
7090# {
7091#     int dll;
7092#     unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7093#     unsigned long export_rva, export_size, nsections, secptr, expptr;
7094#     unsigned long name_rvas, nexp;
7095#     unsigned char *expdata, *erva;
7096#     char *filename, *dll_name;
7097#
7098#     filename = argv[1];
7099#
7100#     dll = open(filename, O_RDONLY|O_BINARY);
7101#     if (dll < 1)
7102# 	return 1;
7103#
7104#     dll_name = filename;
7105#
7106#     for (i=0; filename[i]; i++)
7107# 	if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':')
7108# 	    dll_name = filename + i +1;
7109#
7110#     pe_header_offset = pe_get32 (dll, 0x3c);
7111#     opthdr_ofs = pe_header_offset + 4 + 20;
7112#     num_entries = pe_get32 (dll, opthdr_ofs + 92);
7113#
7114#     if (num_entries < 1) /* no exports */
7115# 	return 1;
7116#
7117#     export_rva = pe_get32 (dll, opthdr_ofs + 96);
7118#     export_size = pe_get32 (dll, opthdr_ofs + 100);
7119#     nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7120#     secptr = (pe_header_offset + 4 + 20 +
7121# 	      pe_get16 (dll, pe_header_offset + 4 + 16));
7122#
7123#     expptr = 0;
7124#     for (i = 0; i < nsections; i++)
7125#     {
7126# 	char sname[8];
7127# 	unsigned long secptr1 = secptr + 40 * i;
7128# 	unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7129# 	unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7130# 	unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7131# 	lseek(dll, secptr1, SEEK_SET);
7132# 	read(dll, sname, 8);
7133# 	if (vaddr <= export_rva && vaddr+vsize > export_rva)
7134# 	{
7135# 	    expptr = fptr + (export_rva - vaddr);
7136# 	    if (export_rva + export_size > vaddr + vsize)
7137# 		export_size = vsize - (export_rva - vaddr);
7138# 	    break;
7139# 	}
7140#     }
7141#
7142#     expdata = (unsigned char*)malloc(export_size);
7143#     lseek (dll, expptr, SEEK_SET);
7144#     read (dll, expdata, export_size);
7145#     erva = expdata - export_rva;
7146#
7147#     nexp = pe_as32 (expdata+24);
7148#     name_rvas = pe_as32 (expdata+32);
7149#
7150#     printf ("EXPORTS\n");
7151#     for (i = 0; i<nexp; i++)
7152#     {
7153# 	unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7154# 	printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7155#     }
7156#
7157#     return 0;
7158# }
7159# /* impgen.c ends here */
7160
7161EOF
7162    ;;
7163  esac
7164
7165  # We use sed instead of cat because bash on DJGPP gets confused if
7166  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
7167  # text mode, it properly converts lines to CR/LF.  This bash problem
7168  # is reportedly fixed, but why not run on old versions too?
7169  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
7170
7171  mv -f "$cfgfile" "$ofile" || \
7172    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
7173  chmod +x "$ofile"
7174
7175else
7176  # If there is no Makefile yet, we rely on a make rule to execute
7177  # `config.status --recheck' to rerun these tests and create the
7178  # libtool script then.
7179  test -f Makefile && make "$ltmain"
7180fi
7181
7182ac_ext=c
7183ac_cpp='$CPP $CPPFLAGS'
7184ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7185ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7186ac_compiler_gnu=$ac_cv_c_compiler_gnu
7187
7188CC="$lt_save_CC"
7189
7190# Check whether --with-tags or --without-tags was given.
7191if test "${with_tags+set}" = set; then
7192  withval="$with_tags"
7193  tagnames="$withval"
7194else
7195  tagnames="CXX,GCJ"
7196fi;
7197
7198if test -f "$ltmain" && test -n "$tagnames"; then
7199  if test ! -f "${ofile}"; then
7200    { echo "$as_me:7200: WARNING: output file \`$ofile' does not exist" >&5
7201echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
7202  fi
7203
7204  if test -z "$LTCC"; then
7205    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
7206    if test -z "$LTCC"; then
7207      { echo "$as_me:7207: WARNING: output file \`$ofile' does not look like a libtool script" >&5
7208echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
7209    else
7210      { echo "$as_me:7210: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
7211echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
7212    fi
7213  fi
7214
7215  # Extract list of available tagged configurations in $ofile.
7216  # Note that this assumes the entire list is on one line.
7217  available_tags=`grep "^available_tags=" "${ofile}" | sed -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
7218
7219  IFS="${IFS= 	}"; lt_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:},"
7220  for tagname in $tagnames; do
7221    IFS="$lt_save_ifs"
7222    # Check whether tagname contains only valid characters
7223    case `$echo "X$tagname" | $Xsed -e 's/[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]//g'` in
7224    "") ;;
7225    *)  { { echo "$as_me:7225: error: invalid tag name: $tagname" >&5
7226echo "$as_me: error: invalid tag name: $tagname" >&2;}
7227   { (exit 1); exit 1; }; }
7228        ;;
7229    esac
7230
7231    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
7232    then
7233      { { echo "$as_me:7233: error: tag name $tagname already exists" >&5
7234echo "$as_me: error: tag name $tagname already exists" >&2;}
7235   { (exit 1); exit 1; }; }
7236    fi
7237
7238    # Update the list of available tags.
7239    if test -n "$tagname"; then
7240      echo appending configuration tag \"$tagname\" to $ofile
7241
7242      case $tagname in
7243      CXX)
7244        ac_ext=cc
7245ac_cpp='$CXXCPP $CPPFLAGS'
7246ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7247ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7248ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7249
7250archive_cmds_need_lc_CXX=no
7251allow_undefined_flag_CXX=
7252always_export_symbols_CXX=no
7253archive_expsym_cmds_CXX=
7254export_dynamic_flag_spec_CXX=
7255hardcode_direct_CXX=no
7256hardcode_libdir_flag_spec_CXX=
7257hardcode_libdir_separator_CXX=
7258hardcode_minus_L_CXX=no
7259link_all_deplibs_CXX=unknown
7260old_archive_cmds_CXX=$old_archive_cmds
7261no_undefined_flag_CXX=
7262whole_archive_flag_spec_CXX=
7263
7264# Dependencies to place before and after the object being linked:
7265predep_objects_CXX=
7266postdep_objects_CXX=
7267predeps_CXX=
7268postdeps_CXX=
7269compiler_lib_search_path_CXX=
7270
7271# Source file extension for C test sources.
7272ac_ext=cc
7273
7274# Object file extension for compiled C test sources.
7275objext=o
7276objext_CXX=$objext
7277
7278# Code to be used in simple compile tests
7279lt_simple_compile_test_code="int some_variable = 0;"
7280
7281# Code to be used in simple link tests
7282lt_simple_link_test_code='int main(int char *) { return(0); }'
7283
7284# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7285
7286# If no C compiler was specified, use CC.
7287LTCC=${LTCC-"$CC"}
7288
7289# Allow CC to be a program name with arguments.
7290set dummy $CC
7291compiler="$2"
7292
7293# Allow CC to be a program name with arguments.
7294lt_save_CC="$CC"
7295CC=${CXX-"c++"}
7296set dummy $CC
7297compiler="$2"
7298compiler_CXX=$CC
7299cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
7300
7301# We don't want -fno-exception wen compiling C++ code, so set the
7302# no_builtin_flag separately
7303if test "$GXX" = yes; then
7304  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
7305else
7306  lt_prog_compiler_no_builtin_flag_CXX=
7307fi
7308
7309if test "$GXX" = yes; then
7310  # Set up default GNU C++ configuration
7311
7312  # Check if GNU C++ uses GNU ld as the underlying linker, since the
7313  # archiving commands below assume that GNU ld is being used.
7314  if eval "`$CC -print-prog-name=ld` --version 2>&1" | \
7315      egrep 'GNU ld' > /dev/null; then
7316    with_gnu_ld=yes
7317
7318    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
7319    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'
7320
7321    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
7322    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
7323
7324    # If archive_cmds runs LD, not CC, wlarc should be empty
7325    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
7326    #     investigate it a little bit more. (MM)
7327    wlarc='${wl}'
7328
7329    # ancient GNU ld didn't support --whole-archive et. al.
7330    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
7331        egrep 'no-whole-archive' > /dev/null; then
7332      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7333    else
7334      whole_archive_flag_spec_CXX=
7335    fi
7336  else
7337    with_gnu_ld=no
7338    wlarc=
7339
7340    # A generic and very simple default shared library creation
7341    # command for GNU C++ for the case where it uses the native
7342    # linker, instead of GNU ld.  If possible, this setting should
7343    # overridden to take advantage of the native linker features on
7344    # the platform it is being used on.
7345    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
7346  fi
7347
7348  # Commands to make compiler produce verbose output that lists
7349  # what "hidden" libraries, object files and flags are used when
7350  # linking a shared library.
7351  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep "\-L"'
7352
7353else
7354  GXX=no
7355  with_gnu_ld=no
7356  wlarc=
7357fi
7358
7359# PORTME: fill in a description of your system's C++ link characteristics
7360echo "$as_me:7360: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7361echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7362ld_shlibs_CXX=yes
7363case $host_os in
7364  aix3*)
7365    # FIXME: insert proper C++ library support
7366    ld_shlibs_CXX=no
7367    ;;
7368  aix4* | aix5*)
7369    if test "$host_cpu" = ia64; then
7370      # On IA64, the linker does run time linking by default, so we don't
7371      # have to do anything special.
7372      aix_use_runtimelinking=no
7373      exp_sym_flag='-Bexport'
7374      no_entry_flag=""
7375    else
7376      aix_use_runtimelinking=no
7377
7378      # Test if we are trying to use run time linking or normal
7379      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7380      # need to do runtime linking.
7381      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7382        for ld_flag in $LDFLAGS; do
7383	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7384	    aix_use_runtimelinking=yes
7385	    break
7386	  fi
7387        done
7388      esac
7389
7390      exp_sym_flag='-bexport'
7391      no_entry_flag='-bnoentry'
7392    fi
7393
7394    # When large executables or shared objects are built, AIX ld can
7395    # have problems creating the table of contents.  If linking a library
7396    # or program results in "error TOC overflow" add -mminimal-toc to
7397    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7398    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7399
7400    archive_cmds_CXX=''
7401    hardcode_direct_CXX=yes
7402    hardcode_libdir_separator_CXX=':'
7403    link_all_deplibs_CXX=yes
7404
7405    if test "$GXX" = yes; then
7406      case $host_os in aix4.012|aix4.012.*)
7407      # We only want to do this on AIX 4.2 and lower, the check
7408      # below for broken collect2 doesn't work under 4.3+
7409        collect2name=`${CC} -print-prog-name=collect2`
7410        if test -f "$collect2name" && \
7411	   strings "$collect2name" | grep resolve_lib_name >/dev/null
7412        then
7413	  # We have reworked collect2
7414	  hardcode_direct_CXX=yes
7415        else
7416	  # We have old collect2
7417	  hardcode_direct_CXX=unsupported
7418	  # It fails to find uninstalled libraries when the uninstalled
7419	  # path is not listed in the libpath.  Setting hardcode_minus_L
7420	  # to unsupported forces relinking
7421	  hardcode_minus_L_CXX=yes
7422	  hardcode_libdir_flag_spec_CXX='-L$libdir'
7423	  hardcode_libdir_separator_CXX=
7424        fi
7425      esac
7426      shared_flag='-shared'
7427    else
7428      # not using gcc
7429      if test "$host_cpu" = ia64; then
7430	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7431	# chokes on -Wl,-G. The following line is correct:
7432        shared_flag='-G'
7433      else
7434	if test "$aix_use_runtimelinking" = yes; then
7435          shared_flag='${wl}-G'
7436        else
7437          shared_flag='${wl}-bM:SRE'
7438	fi
7439      fi
7440    fi
7441
7442    # It seems that -bexpall does not export symbols beginning with
7443    # underscore (_), so it is better to generate a list of symbols to export.
7444    always_export_symbols_CXX=yes
7445    if test "$aix_use_runtimelinking" = yes; then
7446      # Warning - without using the other runtime loading flags (-brtl),
7447      # -berok will link without error, but may produce a broken library.
7448      allow_undefined_flag_CXX='-berok'
7449      # Determine the default libpath from the value encoded in an empty executable.
7450      cat >conftest.$ac_ext <<_ACEOF
7451#line 7451 "configure"
7452#include "confdefs.h"
7453
7454int
7455main ()
7456{
7457
7458  ;
7459  return 0;
7460}
7461_ACEOF
7462rm -f conftest.$ac_objext conftest$ac_exeext
7463if { (eval echo "$as_me:7463: \"$ac_link\"") >&5
7464  (eval $ac_link) 2>&5
7465  ac_status=$?
7466  echo "$as_me:7466: \$? = $ac_status" >&5
7467  (exit $ac_status); } &&
7468         { ac_try='test -s conftest$ac_exeext'
7469  { (eval echo "$as_me:7469: \"$ac_try\"") >&5
7470  (eval $ac_try) 2>&5
7471  ac_status=$?
7472  echo "$as_me:7472: \$? = $ac_status" >&5
7473  (exit $ac_status); }; }; then
7474
7475aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | ${AWK-awk} '/Import File Strings/ { getline; getline; if ($2 ~ /^\//) print $2 }'`
7476# Check for a 64-bit object if we didn't find anything.
7477if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | ${AWK-awk} '/Import File Strings/ { getline; getline; if ($2 ~ /^\//) print $2 }'`; fi
7478else
7479  echo "$as_me: failed program was:" >&5
7480cat conftest.$ac_ext >&5
7481fi
7482rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7483if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7484
7485      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
7486
7487      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7488     else
7489      if test "$host_cpu" = ia64; then
7490        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
7491        allow_undefined_flag_CXX="-z nodefs"
7492        archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
7493      else
7494        # Determine the default libpath from the value encoded in an empty executable.
7495        cat >conftest.$ac_ext <<_ACEOF
7496#line 7496 "configure"
7497#include "confdefs.h"
7498
7499int
7500main ()
7501{
7502
7503  ;
7504  return 0;
7505}
7506_ACEOF
7507rm -f conftest.$ac_objext conftest$ac_exeext
7508if { (eval echo "$as_me:7508: \"$ac_link\"") >&5
7509  (eval $ac_link) 2>&5
7510  ac_status=$?
7511  echo "$as_me:7511: \$? = $ac_status" >&5
7512  (exit $ac_status); } &&
7513         { ac_try='test -s conftest$ac_exeext'
7514  { (eval echo "$as_me:7514: \"$ac_try\"") >&5
7515  (eval $ac_try) 2>&5
7516  ac_status=$?
7517  echo "$as_me:7517: \$? = $ac_status" >&5
7518  (exit $ac_status); }; }; then
7519
7520aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | ${AWK-awk} '/Import File Strings/ { getline; getline; if ($2 ~ /^\//) print $2 }'`
7521# Check for a 64-bit object if we didn't find anything.
7522if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | ${AWK-awk} '/Import File Strings/ { getline; getline; if ($2 ~ /^\//) print $2 }'`; fi
7523else
7524  echo "$as_me: failed program was:" >&5
7525cat conftest.$ac_ext >&5
7526fi
7527rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7528if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7529
7530        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
7531        # Warning - without using the other run time loading flags,
7532        # -berok will link without error, but may produce a broken library.
7533        no_undefined_flag_CXX=' ${wl}-bernotok'
7534        allow_undefined_flag_CXX=' ${wl}-berok'
7535        # -bexpall does not export symbols beginning with underscore (_)
7536        always_export_symbols_CXX=yes
7537        # Exported symbols can be pulled into shared objects from archives
7538        whole_archive_flag_spec_CXX=' '
7539        archive_cmds_need_lc_CXX=yes
7540        # This is similar to how AIX traditionally builds it's shared libraries.
7541        archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7542      fi
7543    fi
7544    ;;
7545  chorus*)
7546    case $cc_basename in
7547      *)
7548        # FIXME: insert proper C++ library support
7549        ld_shlibs_CXX=no
7550        ;;
7551    esac
7552    ;;
7553  dgux*)
7554    case $cc_basename in
7555      ec++)
7556        # FIXME: insert proper C++ library support
7557        ld_shlibs_CXX=no
7558        ;;
7559      ghcx)
7560        # Green Hills C++ Compiler
7561        # FIXME: insert proper C++ library support
7562        ld_shlibs_CXX=no
7563        ;;
7564      *)
7565        # FIXME: insert proper C++ library support
7566        ld_shlibs_CXX=no
7567        ;;
7568    esac
7569    ;;
7570  freebsd12*)
7571    # C++ shared libraries reported to be fairly broken before switch to ELF
7572    ld_shlibs_CXX=no
7573    ;;
7574  freebsd-elf*)
7575    archive_cmds_need_lc_CXX=no
7576    ;;
7577  freebsd*)
7578    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
7579    # conventions
7580    ld_shlibs_CXX=yes
7581    ;;
7582  gnu*)
7583    ;;
7584  hpux*)
7585    if test $with_gnu_ld = no; then
7586      if test "$host_cpu" = ia64; then
7587        hardcode_libdir_flag_spec_CXX='-L$libdir'
7588      else
7589        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
7590        hardcode_libdir_separator_CXX=:
7591        export_dynamic_flag_spec_CXX='${wl}-E'
7592      fi
7593    fi
7594    if test "$host_cpu" = ia64; then
7595      hardcode_direct_CXX=no
7596      hardcode_shlibpath_var_CXX=no
7597    else
7598      hardcode_direct_CXX=yes
7599    fi
7600    hardcode_minus_L_CXX=yes # Not in the search PATH, but as the default
7601			 # location of the library.
7602
7603    case $cc_basename in
7604      CC)
7605        # FIXME: insert proper C++ library support
7606        ld_shlibs_CXX=no
7607        ;;
7608      aCC)
7609	case $host_os in
7610        hpux9*)
7611            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'
7612          ;;
7613      *)
7614          if test "$host_cpu" = ia64; then
7615            archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
7616          else
7617            archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
7618          fi
7619          ;;
7620	esac
7621        # Commands to make compiler produce verbose output that lists
7622        # what "hidden" libraries, object files and flags are used when
7623        # linking a shared library.
7624        #
7625        # There doesn't appear to be a way to prevent this compiler from
7626        # explicitly linking system object files so we need to strip them
7627        # from the output so that they don't get included in the library
7628        # dependencies.
7629        output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
7630        ;;
7631      *)
7632        if test $GXX = yes; then
7633	  if test $with_gnu_ld = no; then
7634	    case "$host_os" in
7635            hpux9*)
7636                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'
7637                ;;
7638          *)
7639                if test "$host_cpu" = ia64; then
7640                  archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
7641                else
7642                  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'
7643                fi
7644                ;;
7645	    esac
7646	  fi
7647	else
7648	  # FIXME: insert proper C++ library support
7649          ld_shlibs_CXX=no
7650	fi
7651        ;;
7652    esac
7653    ;;
7654  irix5* | irix6*)
7655    case $cc_basename in
7656      CC)
7657        # SGI C++
7658        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 ${objdir}/so_locations -o $lib'
7659
7660	# Archives containing C++ object files must be created using
7661	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
7662	# necessary to make sure instantiated templates are included
7663	# in the archive.
7664	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
7665	;;
7666      *)
7667        if test "$GXX" = yes; then
7668          if test "$with_gnu_ld" = no; then
7669            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}${objdir}/so_locations -o $lib'
7670          else
7671            archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -o $lib'
7672          fi
7673        fi
7674        link_all_deplibs_CXX=yes
7675        ;;
7676    esac
7677    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
7678    hardcode_libdir_separator_CXX=:
7679    ;;
7680  linux*)
7681    case $cc_basename in
7682      KCC)
7683        # Kuck and Associates, Inc. (KAI) C++ Compiler
7684
7685        # KCC will only create a shared library if the output file
7686        # ends with ".so" (or ".sl" for HP-UX), so rename the library
7687        # to its proper name (with version) after linking.
7688        archive_cmds_CXX='templib=`echo $lib | sed -e "s/\.so\..*/\.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
7689        archive_expsym_cmds_CXX='templib=`echo $lib | sed -e "s/\.so\..*/\.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
7690
7691        # Commands to make compiler produce verbose output that lists
7692        # what "hidden" libraries, object files and flags are used when
7693        # linking a shared library.
7694        #
7695        # There doesn't appear to be a way to prevent this compiler from
7696        # explicitly linking system object files so we need to strip them
7697        # from the output so that they don't get included in the library
7698        # dependencies.
7699        output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest.so 2>&1 | egrep "ld"`; rm -f libconftest.so; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
7700
7701        hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
7702        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
7703
7704	# Archives containing C++ object files must be created using
7705	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
7706        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
7707        ;;
7708      cxx)
7709        # Compaq C++
7710        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
7711        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'
7712
7713        runpath_var=LD_RUN_PATH
7714        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
7715        hardcode_libdir_separator_CXX=:
7716
7717        # Commands to make compiler produce verbose output that lists
7718        # what "hidden" libraries, object files and flags are used when
7719        # linking a shared library.
7720        #
7721        # There doesn't appear to be a way to prevent this compiler from
7722        # explicitly linking system object files so we need to strip them
7723        # from the output so that they don't get included in the library
7724        # dependencies.
7725        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'
7726        ;;
7727    esac
7728    ;;
7729  lynxos*)
7730    # FIXME: insert proper C++ library support
7731    ld_shlibs_CXX=no
7732    ;;
7733  m88k*)
7734    # FIXME: insert proper C++ library support
7735    ld_shlibs_CXX=no
7736    ;;
7737  mvs*)
7738    case $cc_basename in
7739      cxx)
7740        # FIXME: insert proper C++ library support
7741        ld_shlibs_CXX=no
7742        ;;
7743      *)
7744        # FIXME: insert proper C++ library support
7745        ld_shlibs_CXX=no
7746        ;;
7747    esac
7748    ;;
7749  netbsd*)
7750    # NetBSD uses g++ - do we need to do anything?
7751    ;;
7752  osf3*)
7753    case $cc_basename in
7754      KCC)
7755        # Kuck and Associates, Inc. (KAI) C++ Compiler
7756
7757        # KCC will only create a shared library if the output file
7758        # ends with ".so" (or ".sl" for HP-UX), so rename the library
7759        # to its proper name (with version) after linking.
7760        archive_cmds_CXX='templib=`echo $lib | sed -e "s/\.so\..*/\.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
7761
7762        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
7763        hardcode_libdir_separator_CXX=:
7764
7765	# Archives containing C++ object files must be created using
7766	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
7767        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
7768
7769        ;;
7770      RCC)
7771        # Rational C++ 2.4.1
7772        # FIXME: insert proper C++ library support
7773        ld_shlibs_CXX=no
7774        ;;
7775      cxx)
7776        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
7777        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 ${objdir}/so_locations -o $lib'
7778
7779        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
7780        hardcode_libdir_separator_CXX=:
7781
7782        # Commands to make compiler produce verbose output that lists
7783        # what "hidden" libraries, object files and flags are used when
7784        # linking a shared library.
7785        #
7786        # There doesn't appear to be a way to prevent this compiler from
7787        # explicitly linking system object files so we need to strip them
7788        # from the output so that they don't get included in the library
7789        # dependencies.
7790        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'
7791        ;;
7792      *)
7793        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
7794          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
7795          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}${objdir}/so_locations -o $lib'
7796
7797          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
7798          hardcode_libdir_separator_CXX=:
7799
7800          # Commands to make compiler produce verbose output that lists
7801          # what "hidden" libraries, object files and flags are used when
7802          # linking a shared library.
7803          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep "\-L"'
7804
7805	else
7806          # FIXME: insert proper C++ library support
7807          ld_shlibs_CXX=no
7808        fi
7809        ;;
7810    esac
7811    ;;
7812  osf4* | osf5*)
7813    case $cc_basename in
7814      KCC)
7815        # Kuck and Associates, Inc. (KAI) C++ Compiler
7816
7817        # KCC will only create a shared library if the output file
7818        # ends with ".so" (or ".sl" for HP-UX), so rename the library
7819        # to its proper name (with version) after linking.
7820        archive_cmds_CXX='templib=`echo $lib | sed -e "s/\.so\..*/\.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
7821
7822        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
7823        hardcode_libdir_separator_CXX=:
7824
7825	# Archives containing C++ object files must be created using
7826	# the KAI C++ compiler.
7827        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
7828        ;;
7829      RCC)
7830        # Rational C++ 2.4.1
7831        # FIXME: insert proper C++ library support
7832        ld_shlibs_CXX=no
7833        ;;
7834      cxx)
7835        allow_undefined_flag_CXX=' -expect_unresolved \*'
7836        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 ${objdir}/so_locations -o $lib'
7837	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done~
7838	  echo "-hidden">> $lib.exp~
7839	  $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 $objdir/so_locations -o $lib~
7840	  $rm $lib.exp'
7841
7842        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
7843        hardcode_libdir_separator_CXX=:
7844
7845        # Commands to make compiler produce verbose output that lists
7846        # what "hidden" libraries, object files and flags are used when
7847        # linking a shared library.
7848        #
7849        # There doesn't appear to be a way to prevent this compiler from
7850        # explicitly linking system object files so we need to strip them
7851        # from the output so that they don't get included in the library
7852        # dependencies.
7853        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'
7854        ;;
7855      *)
7856        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
7857          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
7858         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}${objdir}/so_locations -o $lib'
7859
7860          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
7861          hardcode_libdir_separator_CXX=:
7862
7863          # Commands to make compiler produce verbose output that lists
7864          # what "hidden" libraries, object files and flags are used when
7865          # linking a shared library.
7866          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep "\-L"'
7867
7868	else
7869          # FIXME: insert proper C++ library support
7870          ld_shlibs_CXX=no
7871	fi
7872        ;;
7873    esac
7874    ;;
7875  psos*)
7876    # FIXME: insert proper C++ library support
7877    ld_shlibs_CXX=no
7878    ;;
7879  sco*)
7880    case $cc_basename in
7881      CC)
7882        # FIXME: insert proper C++ library support
7883        ld_shlibs_CXX=no
7884        ;;
7885      *)
7886        # FIXME: insert proper C++ library support
7887        ld_shlibs_CXX=no
7888        ;;
7889    esac
7890    ;;
7891  sunos4*)
7892    case $cc_basename in
7893      CC)
7894        # Sun C++ 4.x
7895        # FIXME: insert proper C++ library support
7896        ld_shlibs_CXX=no
7897        ;;
7898      lcc)
7899        # Lucid
7900        # FIXME: insert proper C++ library support
7901        ld_shlibs_CXX=no
7902        ;;
7903      *)
7904        # FIXME: insert proper C++ library support
7905        ld_shlibs_CXX=no
7906        ;;
7907    esac
7908    ;;
7909  solaris*)
7910    case $cc_basename in
7911      CC)
7912	# Sun C++ 4.2, 5.x and Centerline C++
7913        no_undefined_flag_CXX=' -zdefs'
7914        archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
7915        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7916        $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
7917
7918        hardcode_libdir_flag_spec_CXX='-R$libdir'
7919        hardcode_shlibpath_var_CXX=no
7920        case $host_os in
7921          solaris2.0-5 | solaris2.0-5.*) ;;
7922          *)
7923            # The C++ compiler is used as linker so we must use $wl
7924            # flag to pass the commands to the underlying system
7925            # linker.
7926            # Supported since Solaris 2.6 (maybe 2.5.1?)
7927            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
7928            ;;
7929        esac
7930        link_all_deplibs_CXX=yes
7931
7932        # Commands to make compiler produce verbose output that lists
7933        # what "hidden" libraries, object files and flags are used when
7934        # linking a shared library.
7935        #
7936        # There doesn't appear to be a way to prevent this compiler from
7937        # explicitly linking system object files so we need to strip them
7938        # from the output so that they don't get included in the library
7939        # dependencies.
7940        output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | egrep "\-R|\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
7941
7942	# Archives containing C++ object files must be created using
7943	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
7944        # necessary to make sure instantiated templates are included
7945        # in the archive.
7946        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
7947        ;;
7948      gcx)
7949        # Green Hills C++ Compiler
7950        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
7951
7952        # The C++ compiler must be used to create the archive.
7953        old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
7954        ;;
7955      *)
7956        # GNU C++ compiler with Solaris linker
7957        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
7958	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
7959          if $CC --version | egrep -v '^2\.7' > /dev/null; then
7960            archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $linker_flags ${wl}-h $wl$soname -o $lib'
7961            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7962		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags~$rm $lib.exp'
7963
7964            # Commands to make compiler produce verbose output that lists
7965            # what "hidden" libraries, object files and flags are used when
7966            # linking a shared library.
7967            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | egrep \"\-L\""
7968          else
7969            # g++ 2.7 appears to require `-G' NOT `-shared' on this
7970            # platform.
7971            archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $linker_flags ${wl}-h $wl$soname -o $lib'
7972            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7973		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags~$rm $lib.exp'
7974
7975            # Commands to make compiler produce verbose output that lists
7976            # what "hidden" libraries, object files and flags are used when
7977            # linking a shared library.
7978            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | egrep \"\-L\""
7979          fi
7980
7981          hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
7982        fi
7983        ;;
7984    esac
7985    ;;
7986  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7987    archive_cmds_need_lc=no
7988    ;;
7989  tandem*)
7990    case $cc_basename in
7991      NCC)
7992        # NonStop-UX NCC 3.20
7993        # FIXME: insert proper C++ library support
7994        ld_shlibs_CXX=no
7995        ;;
7996      *)
7997        # FIXME: insert proper C++ library support
7998        ld_shlibs_CXX=no
7999        ;;
8000    esac
8001    ;;
8002  vxworks*)
8003    # FIXME: insert proper C++ library support
8004    ld_shlibs_CXX=no
8005    ;;
8006  *)
8007    # FIXME: insert proper C++ library support
8008    ld_shlibs_CXX=no
8009    ;;
8010esac
8011echo "$as_me:8011: result: $ld_shlibs_CXX" >&5
8012echo "${ECHO_T}$ld_shlibs_CXX" >&6
8013test "$ld_shlibs_CXX" = no && can_build_shared=no
8014
8015# Figure out "hidden" C++ library dependencies from verbose
8016# compiler output whening linking a shared library.
8017cat > conftest.$ac_ext <<EOF
8018class Foo
8019{
8020public:
8021  Foo (void) { a = 0; }
8022private:
8023  int a;
8024};
8025EOF
8026
8027if { (eval echo "$as_me:8027: \"$ac_compile\"") >&5
8028  (eval $ac_compile) 2>&5
8029  ac_status=$?
8030  echo "$as_me:8030: \$? = $ac_status" >&5
8031  (exit $ac_status); }; then
8032  # Parse the compiler output and extract the necessary
8033  # objects, libraries and library flags.
8034
8035  # Sentinel used to keep track of whether or not we are before
8036  # the conftest object file.
8037  pre_test_object_deps_done=no
8038
8039  # The `*' in the case matches for architectures that use `case' in
8040  # $output_verbose_cmd can trigger glob expansion during the loop
8041  # eval without this substitution.
8042  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
8043
8044  for p in `eval $output_verbose_link_cmd`; do
8045    case $p in
8046
8047    -L* | -R* | -l*)
8048       # Some compilers place space between "-{L,R}" and the path.
8049       # Remove the space.
8050       if test $p = "-L" \
8051          || test $p = "-R"; then
8052         prev=$p
8053         continue
8054       else
8055         prev=
8056       fi
8057
8058       if test "$pre_test_object_deps_done" = no; then
8059         case $p in
8060	 -L* | -R*)
8061	   # Internal compiler library paths should come after those
8062	   # provided the user.  The postdeps already come after the
8063	   # user supplied libs so there is no need to process them.
8064           if test -z "$compiler_lib_search_path_CXX"; then
8065             compiler_lib_search_path_CXX="${prev}${p}"
8066           else
8067             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
8068           fi
8069           ;;
8070         # The "-l" case would never come before the object being
8071         # linked, so don't bother handling this case.
8072         esac
8073       else
8074         if test -z "$postdeps_CXX"; then
8075           postdeps_CXX="${prev}${p}"
8076         else
8077           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
8078         fi
8079       fi
8080       ;;
8081
8082    *.$objext)
8083       # This assumes that the test object file only shows up
8084       # once in the compiler output.
8085       if test "$p" = "conftest.$objext"; then
8086         pre_test_object_deps_done=yes
8087         continue
8088       fi
8089
8090       if test "$pre_test_object_deps_done" = no; then
8091         if test -z "$predep_objects_CXX"; then
8092           predep_objects_CXX="$p"
8093         else
8094           predep_objects_CXX="$predep_objects_CXX $p"
8095         fi
8096       else
8097         if test -z "$postdep_objects_CXX"; then
8098           postdep_objects_CXX="$p"
8099         else
8100           postdep_objects_CXX="$postdep_objects_CXX $p"
8101         fi
8102       fi
8103       ;;
8104
8105    *) ;; # Ignore the rest.
8106
8107    esac
8108  done
8109
8110  # Clean up.
8111  rm -f a.out
8112else
8113  echo "ltcf-cxx.sh: error: problem compiling test program"
8114fi
8115
8116$rm -f confest.$objext
8117
8118case " $postdeps_CXX " in
8119*" -lc "*) archive_cmds_need_lc_CXX=no ;;
8120*) archive_cmds_need_lc_CXX=yes ;;
8121esac
8122
8123GCC_CXX="$GXX"
8124LD_CXX="$LD"
8125
8126lt_prog_compiler_wl_CXX=
8127lt_prog_compiler_pic_CXX=
8128lt_prog_compiler_static_CXX=
8129
8130  # C++ specific cases for pic, static, wl, etc.
8131  if test "$GXX" = yes; then
8132    lt_prog_compiler_wl_CXX='-Wl,'
8133    lt_prog_compiler_static_CXX='-static'
8134
8135    case $host_os in
8136    aix*)
8137      # All AIX code is PIC.
8138      if test "$host_cpu" = ia64; then
8139        # AIX 5 now supports IA64 processor
8140        lt_prog_compiler_static_CXX='-Bstatic'
8141      fi
8142      ;;
8143    amigaos*)
8144      # FIXME: we need at least 68020 code to build shared libraries, but
8145      # adding the `-m68020' flag to GCC prevents building anything better,
8146      # like `-m68040'.
8147      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
8148      ;;
8149    beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
8150      # PIC is the default for these OSes.
8151      ;;
8152    cygwin* | mingw* | os2*)
8153      # This hack is so that the source file can tell whether it is being
8154      # built for inclusion in a dll (and should export symbols for example).
8155      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
8156      ;;
8157    darwin* | rhapsody*)
8158      # PIC is the default on this platform
8159      # Common symbols not allowed in MH_DYLIB files
8160      lt_prog_compiler_pic_CXX='-fno-common'
8161      ;;
8162    *djgpp*)
8163      # DJGPP does not support shared libraries at all
8164      lt_prog_compiler_pic_CXX=
8165      ;;
8166    sysv4*MP*)
8167      if test -d /usr/nec; then
8168        lt_prog_compiler_pic_CXX=-Kconform_pic
8169      fi
8170      ;;
8171    hpux*)
8172      # PIC is the default for IA64 HP-UX, but not for PA HP-UX.
8173      if test "$host_cpu" != ia64; then
8174        lt_prog_compiler_pic_CXX='-fPIC'
8175      fi
8176      ;;
8177    *)
8178      lt_prog_compiler_pic_CXX='-fPIC'
8179      ;;
8180    esac
8181  else
8182    case $host_os in
8183      aix4* | aix5*)
8184        # All AIX code is PIC.
8185        if test "$host_cpu" = ia64; then
8186          # AIX 5 now supports IA64 processor
8187          lt_prog_compiler_static_CXX='-Bstatic'
8188        else
8189          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
8190        fi
8191        ;;
8192      chorus*)
8193        case $cc_basename in
8194        cxch68)
8195          # Green Hills C++ Compiler
8196          # _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"
8197          ;;
8198        esac
8199        ;;
8200      dgux*)
8201        case $cc_basename in
8202          ec++)
8203            lt_prog_compiler_pic_CXX='-KPIC'
8204            ;;
8205          ghcx)
8206            # Green Hills C++ Compiler
8207            lt_prog_compiler_pic_CXX='-pic'
8208            ;;
8209          *)
8210            ;;
8211        esac
8212        ;;
8213      freebsd*)
8214        # FreeBSD uses GNU C++
8215        ;;
8216      hpux9* | hpux10* | hpux11*)
8217        case $cc_basename in
8218          CC)
8219            lt_prog_compiler_wl_CXX='-Wl,'
8220            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
8221            if test "$host_cpu" != ia64; then
8222              lt_prog_compiler_pic_CXX='+Z'
8223            fi
8224            ;;
8225          aCC)
8226            lt_prog_compiler_wl_CXX='-Wl,'
8227            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
8228            if test "$host_cpu" != ia64; then
8229              lt_prog_compiler_pic_CXX='+Z'
8230            fi
8231            ;;
8232          *)
8233            ;;
8234        esac
8235        ;;
8236      irix5* | irix6*)
8237        case $cc_basename in
8238          CC)
8239            lt_prog_compiler_wl_CXX='-Wl,'
8240            lt_prog_compiler_static_CXX='-non_shared'
8241	    # CC pic flag -KPIC is the default.
8242            ;;
8243          *)
8244            ;;
8245        esac
8246        ;;
8247      linux*)
8248        case $cc_basename in
8249          KCC)
8250            # KAI C++ Compiler
8251            lt_prog_compiler_wl_CXX='--backend -Wl,'
8252            lt_prog_compiler_pic_CXX='-fPIC'
8253            ;;
8254          cxx)
8255            # Compaq C++
8256            # Make sure the PIC flag is empty.  It appears that all Alpha
8257            # Linux and Compaq Tru64 Unix objects are PIC.
8258            lt_prog_compiler_pic_CXX=
8259            lt_prog_compiler_static_CXX='-non_shared'
8260            ;;
8261          *)
8262            ;;
8263        esac
8264        ;;
8265      lynxos*)
8266        ;;
8267      m88k*)
8268        ;;
8269      mvs*)
8270        case $cc_basename in
8271          cxx)
8272            lt_prog_compiler_pic_CXX='-W c,exportall'
8273            ;;
8274          *)
8275            ;;
8276        esac
8277        ;;
8278      netbsd*)
8279        ;;
8280      osf3* | osf4* | osf5*)
8281        case $cc_basename in
8282          KCC)
8283            lt_prog_compiler_wl_CXX='--backend -Wl,'
8284            ;;
8285          RCC)
8286            # Rational C++ 2.4.1
8287            lt_prog_compiler_pic_CXX='-pic'
8288            ;;
8289          cxx)
8290            # Digital/Compaq C++
8291            lt_prog_compiler_wl_CXX='-Wl,'
8292            # Make sure the PIC flag is empty.  It appears that all Alpha
8293            # Linux and Compaq Tru64 Unix objects are PIC.
8294            lt_prog_compiler_pic_CXX=
8295            lt_prog_compiler_static_CXX='-non_shared'
8296            ;;
8297          *)
8298            ;;
8299        esac
8300        ;;
8301      psos*)
8302        ;;
8303      sco*)
8304        case $cc_basename in
8305          CC)
8306            lt_prog_compiler_pic_CXX='-fPIC'
8307            ;;
8308          *)
8309            ;;
8310        esac
8311        ;;
8312      solaris*)
8313        case $cc_basename in
8314          CC)
8315            # Sun C++ 4.2, 5.x and Centerline C++
8316            lt_prog_compiler_pic_CXX='-KPIC'
8317            lt_prog_compiler_static_CXX='-Bstatic'
8318            lt_prog_compiler_wl_CXX='-Qoption ld '
8319            ;;
8320          gcx)
8321            # Green Hills C++ Compiler
8322            lt_prog_compiler_pic_CXX='-PIC'
8323            ;;
8324          *)
8325            ;;
8326        esac
8327        ;;
8328      sunos4*)
8329        case $cc_basename in
8330          CC)
8331            # Sun C++ 4.x
8332            lt_prog_compiler_pic_CXX='-pic'
8333            lt_prog_compiler_static_CXX='-Bstatic'
8334            ;;
8335          lcc)
8336            # Lucid
8337            lt_prog_compiler_pic_CXX='-pic'
8338            ;;
8339          *)
8340            ;;
8341        esac
8342        ;;
8343      tandem*)
8344        case $cc_basename in
8345          NCC)
8346            # NonStop-UX NCC 3.20
8347            lt_prog_compiler_pic_CXX='-KPIC'
8348            ;;
8349          *)
8350            ;;
8351        esac
8352        ;;
8353      unixware*)
8354        ;;
8355      vxworks*)
8356        ;;
8357      *)
8358        lt_prog_compiler_can_build_shared_CXX=no
8359        ;;
8360    esac
8361  fi
8362
8363echo "$as_me:8363: result: $lt_prog_compiler_pic_CXX" >&5
8364echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
8365
8366#
8367# Check to make sure the PIC flag actually works.
8368#
8369if test -n "$lt_prog_compiler_pic_CXX"; then
8370  echo "$as_me:8370: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
8371echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
8372if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
8373  echo $ECHO_N "(cached) $ECHO_C" >&6
8374else
8375  lt_prog_compiler_pic_works_CXX=no
8376  ac_outfile=conftest.$ac_objext
8377   save_CFLAGS="$CFLAGS"
8378   CFLAGS="$CFLAGS $lt_prog_compiler_pic_CXX -DPIC"
8379   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8380   if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
8381     # The compiler can only warn and ignore the option if not recognized
8382     # So say no if there are warnings
8383     if test -s conftest.err; then
8384       # Append any errors to the config.log.
8385       cat conftest.err 1>&5
8386     else
8387       lt_prog_compiler_pic_works_CXX=yes
8388     fi
8389   fi
8390   $rm conftest*
8391   CFLAGS="$save_CFLAGS"
8392
8393fi
8394echo "$as_me:8394: result: $lt_prog_compiler_pic_works_CXX" >&5
8395echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
8396
8397if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
8398    case $lt_prog_compiler_pic_CXX in
8399     "" | " "*) ;;
8400     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
8401     esac
8402else
8403    lt_prog_compiler_pic_CXX=
8404     lt_prog_compiler_can_build_shared_CXX=no
8405fi
8406
8407fi
8408case "$host_os" in
8409  # For platforms which do not support PIC, -DPIC is meaningless:
8410  *djgpp*)
8411    lt_prog_compiler_pic_CXX=
8412    ;;
8413  *)
8414    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
8415    ;;
8416esac
8417
8418echo "$as_me:8418: checking if $compiler supports -c -o file.$ac_objext" >&5
8419echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8420if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
8421  echo $ECHO_N "(cached) $ECHO_C" >&6
8422else
8423  lt_cv_prog_compiler_c_o_CXX=no
8424   $rm -r conftest 2>/dev/null
8425   mkdir conftest
8426   cd conftest
8427   mkdir out
8428   save_CXXFLAGS="$CXXFLAGS"
8429                   CXXFLAGS="$CXXFLAGS -o out/conftest2.$ac_objext"
8430   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8431
8432   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
8433   # that will create temporary files in the current directory regardless of
8434   # the output directory.  Thus, making CWD read-only will cause this test
8435   # to fail, enabling locking or at least warning the user not to do parallel
8436   # builds.
8437   chmod -w .
8438
8439   if (eval $ac_compile 2>out/conftest.err) && test -s out/conftest2.$ac_objext
8440   then
8441     # The compiler can only warn and ignore the option if not recognized
8442     # So say no if there are warnings
8443     if test -s out/conftest.err; then
8444       # Append any errors to the config.log.
8445       cat out/conftest.err 1>&5
8446     else
8447       lt_cv_prog_compiler_c_o_CXX=yes
8448     fi
8449   fi
8450   CXXFLAGS="$save_CXXFLAGS"
8451   chmod u+w .
8452   $rm conftest* out/*
8453   rmdir out
8454   cd ..
8455   rmdir conftest
8456   $rm conftest*
8457
8458fi
8459echo "$as_me:8459: result: $lt_cv_prog_compiler_c_o_CXX" >&5
8460echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
8461
8462hard_links="nottested"
8463if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
8464  # do not overwrite the value of need_locks provided by the user
8465  echo "$as_me:8465: checking if we can lock with hard links" >&5
8466echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8467  hard_links=yes
8468  $rm conftest*
8469  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8470  touch conftest.a
8471  ln conftest.a conftest.b 2>&5 || hard_links=no
8472  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8473  echo "$as_me:8473: result: $hard_links" >&5
8474echo "${ECHO_T}$hard_links" >&6
8475  if test "$hard_links" = no; then
8476    { echo "$as_me:8476: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8477echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8478    need_locks=warn
8479  fi
8480else
8481  need_locks=no
8482fi
8483
8484echo "$as_me:8484: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8485echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8486
8487echo "$as_me:8487: result: $ld_shlibs_CXX" >&5
8488echo "${ECHO_T}$ld_shlibs_CXX" >&6
8489test "$ld_shlibs_CXX" = no && can_build_shared=no
8490
8491variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8492if test "$GCC" = yes; then
8493  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8494fi
8495
8496#
8497# Do we need to explicitly link libc?
8498#
8499archive_cmds_need_lc_CXX=yes
8500if test "$enable_shared" = yes && test "$GCC" = yes; then
8501  case $archive_cmds_CXX in
8502  *'~'*)
8503    # FIXME: we may have to deal with multi-command sequences.
8504    ;;
8505  '$CC '*)
8506    # Test whether the compiler implicitly links with -lc since on some
8507    # systems, -lgcc has to come before -lc. If gcc already passes -lc
8508    # to ld, don't add -lc before -lgcc.
8509    echo "$as_me:8509: checking whether -lc should be explicitly linked in" >&5
8510echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8511    $rm conftest*
8512    echo 'static int dummy;' > conftest.$ac_ext
8513
8514    if { (eval echo "$as_me:8514: \"$ac_compile\"") >&5
8515  (eval $ac_compile) 2>&5
8516  ac_status=$?
8517  echo "$as_me:8517: \$? = $ac_status" >&5
8518  (exit $ac_status); } 2>conftest.err; then
8519      soname=conftest
8520      lib=conftest
8521      libobjs=conftest.$ac_objext
8522      deplibs=
8523      wl=$lt_prog_compiler_wl_CXX
8524      compiler_flags=-v
8525      linker_flags=-v
8526      verstring=
8527      output_objdir=.
8528      libname=conftest
8529      lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
8530      allow_undefined_flag_CXX=
8531      if { (eval echo "$as_me:8531: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8532  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8533  ac_status=$?
8534  echo "$as_me:8534: \$? = $ac_status" >&5
8535  (exit $ac_status); }
8536      then
8537	archive_cmds_need_lc_CXX=no
8538      else
8539	archive_cmds_need_lc_CXX=yes
8540      fi
8541      allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
8542    else
8543      cat conftest.err 1>&5
8544    fi
8545    $rm conftest*
8546    echo "$as_me:8546: result: $archive_cmds_need_lc_CXX" >&5
8547echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
8548    ;;
8549  esac
8550fi
8551
8552echo "$as_me:8552: checking how to hardcode library paths into programs" >&5
8553echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8554hardcode_action_CXX=
8555if test -n "$hardcode_libdir_flag_spec_CXX" || \
8556   test -n "$runpath_var CXX"; then
8557
8558  # We can hardcode non-existant directories.
8559  if test "$hardcode_direct_CXX" != no &&
8560     # If the only mechanism to avoid hardcoding is shlibpath_var, we
8561     # have to relink, otherwise we might link with an installed library
8562     # when we should be linking with a yet-to-be-installed one
8563     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
8564     test "$hardcode_minus_L_CXX" != no; then
8565    # Linking always hardcodes the temporary library directory.
8566    hardcode_action_CXX=relink
8567  else
8568    # We can link without hardcoding, and we can hardcode nonexisting dirs.
8569    hardcode_action_CXX=immediate
8570  fi
8571else
8572  # We cannot hardcode anything, or else we can only hardcode existing
8573  # directories.
8574  hardcode_action_CXX=unsupported
8575fi
8576echo "$as_me:8576: result: $hardcode_action_CXX" >&5
8577echo "${ECHO_T}$hardcode_action_CXX" >&6
8578
8579if test "$hardcode_action_CXX" = relink; then
8580  # Fast installation is not supported
8581  enable_fast_install=no
8582elif test "$shlibpath_overrides_runpath" = yes ||
8583     test "$enable_shared" = no; then
8584  # Fast installation is not necessary
8585  enable_fast_install=needless
8586fi
8587
8588striplib=
8589old_striplib=
8590echo "$as_me:8590: checking whether stripping libraries is possible" >&5
8591echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8592if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8593  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8594  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8595  echo "$as_me:8595: result: yes" >&5
8596echo "${ECHO_T}yes" >&6
8597else
8598  echo "$as_me:8598: result: no" >&5
8599echo "${ECHO_T}no" >&6
8600fi
8601
8602echo "$as_me:8602: checking dynamic linker characteristics" >&5
8603echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8604library_names_spec=
8605libname_spec='lib$name'
8606soname_spec=
8607postinstall_cmds=
8608postuninstall_cmds=
8609finish_cmds=
8610finish_eval=
8611shlibpath_var=
8612shlibpath_overrides_runpath=unknown
8613version_type=none
8614dynamic_linker="$host_os ld.so"
8615sys_lib_dlsearch_path_spec="/lib /usr/lib"
8616sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8617need_lib_prefix=unknown
8618hardcode_into_libs=no
8619
8620# when you set need_version to no, make sure it does not cause -set_version
8621# flags to be left without arguments
8622need_version=unknown
8623
8624case $host_os in
8625aix3*)
8626  version_type=linux
8627  library_names_spec='${libname}${release}.so$versuffix $libname.a'
8628  shlibpath_var=LIBPATH
8629
8630  # AIX 3 has no versioning support, so we append a major version to the name.
8631  soname_spec='${libname}${release}.so$major'
8632  ;;
8633
8634aix4* | aix5*)
8635  version_type=linux
8636  if test "$host_cpu" = ia64; then
8637    # AIX 5 supports IA64
8638    library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
8639    shlibpath_var=LD_LIBRARY_PATH
8640  else
8641    # With GCC up to 2.95.x, collect2 would create an import file
8642    # for dependence libraries.  The import file would start with
8643    # the line `#! .'.  This would cause the generated library to
8644    # depend on `.', always an invalid library.  This was fixed in
8645    # development snapshots of GCC prior to 3.0.
8646    case $host_os in
8647       aix4 | aix4.[01] | aix4.[01].*)
8648      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8649           echo ' yes '
8650           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8651        :
8652      else
8653        can_build_shared=no
8654      fi
8655      ;;
8656    esac
8657    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8658    # soname into executable. Probably we can add versioning support to
8659    # collect2, so additional links can be useful in future.
8660    if test "$aix_use_runtimelinking" = yes; then
8661      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8662      # instead of lib<name>.a to let people know that these are not
8663      # typical AIX shared libraries.
8664      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
8665    else
8666      # We preserve .a as extension for shared libraries through AIX4.2
8667      # and later when we are not doing run time linking.
8668      library_names_spec='${libname}${release}.a $libname.a'
8669      soname_spec='${libname}${release}.so$major'
8670    fi
8671    shlibpath_var=LIBPATH
8672    deplibs_check_method=pass_all
8673  fi
8674  ;;
8675
8676amigaos*)
8677  library_names_spec='$libname.ixlibrary $libname.a'
8678  # Create ${libname}_ixlibrary.a entries in /sys/libs.
8679  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'
8680  ;;
8681
8682beos*)
8683  library_names_spec='${libname}.so'
8684  dynamic_linker="$host_os ld.so"
8685  shlibpath_var=LIBRARY_PATH
8686  ;;
8687
8688bsdi4*)
8689  version_type=linux
8690  need_version=no
8691  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
8692  soname_spec='${libname}${release}.so$major'
8693  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8694  shlibpath_var=LD_LIBRARY_PATH
8695  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8696  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8697  # the default ld.so.conf also contains /usr/contrib/lib and
8698  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8699  # libtool to hard-code these into programs
8700  ;;
8701
8702cygwin* | mingw* | pw32*)
8703  version_type=windows
8704  need_version=no
8705  need_lib_prefix=no
8706  case $GCC,$host_os in
8707  yes,cygwin*)
8708    library_names_spec='$libname.dll.a'
8709    sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
8710    soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
8711    postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
8712      dldir=$destdir/`dirname \$dlpath`~
8713      test -d \$dldir || mkdir -p \$dldir~
8714      $install_prog .libs/$dlname \$dldir/$dlname'
8715    postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
8716      dlpath=$dir/\$dldll~
8717       $rm \$dlpath'
8718    ;;
8719  yes,mingw*)
8720    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
8721    sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/$PATH_SEPARATOR/ /g"`
8722    ;;
8723  yes,pw32*)
8724    library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
8725    ;;
8726  *)
8727    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
8728    ;;
8729  esac
8730  dynamic_linker='Win32 ld.exe'
8731  # FIXME: first we should search . and the directory the executable is in
8732  shlibpath_var=PATH
8733  ;;
8734
8735darwin* | rhapsody*)
8736  dynamic_linker="$host_os dyld"
8737  version_type=darwin
8738  need_lib_prefix=no
8739  need_version=no
8740  # FIXME: Relying on posixy $() will cause problems for
8741  #        cross-compilation, but unfortunately the echo tests do not
8742  #        yet detect zsh echo's removal of \ escapes.
8743  library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
8744  soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
8745  shlibpath_overrides_runpath=yes
8746  shlibpath_var=DYLD_LIBRARY_PATH
8747  ;;
8748
8749dgux*)
8750  version_type=linux
8751  need_lib_prefix=no
8752  need_version=no
8753  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
8754  soname_spec='${libname}${release}.so$major'
8755  shlibpath_var=LD_LIBRARY_PATH
8756  ;;
8757
8758freebsd1*)
8759  dynamic_linker=no
8760  ;;
8761
8762freebsd*)
8763  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
8764  version_type=freebsd-$objformat
8765  case $version_type in
8766    freebsd-elf*)
8767      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
8768      need_version=no
8769      need_lib_prefix=no
8770      ;;
8771    freebsd-*)
8772      library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
8773      need_version=yes
8774      ;;
8775  esac
8776  shlibpath_var=LD_LIBRARY_PATH
8777  case $host_os in
8778  freebsd2*)
8779    shlibpath_overrides_runpath=yes
8780    ;;
8781  freebsd3.01* | freebsdelf3.01*)
8782    shlibpath_overrides_runpath=yes
8783    hardcode_into_libs=yes
8784    ;;
8785  *) # from 3.2 on
8786    shlibpath_overrides_runpath=no
8787    hardcode_into_libs=yes
8788    ;;
8789  esac
8790  ;;
8791
8792gnu*)
8793  version_type=linux
8794  need_lib_prefix=no
8795  need_version=no
8796  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
8797  soname_spec='${libname}${release}.so$major'
8798  shlibpath_var=LD_LIBRARY_PATH
8799  hardcode_into_libs=yes
8800  ;;
8801
8802hpux9* | hpux10* | hpux11*)
8803  # Give a soname corresponding to the major version so that dld.sl refuses to
8804  # link against other versions.
8805  version_type=sunos
8806  need_lib_prefix=no
8807  need_version=no
8808  if test "$host_cpu" = ia64; then
8809    hardcode_into_libs=yes
8810    dynamic_linker="$host_os dld.so"
8811    shlibpath_var=LD_LIBRARY_PATH
8812    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8813    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
8814    soname_spec='${libname}${release}.so$major'
8815    if test "X$HPUX_IA64_MODE" = X32; then
8816      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8817    else
8818      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8819    fi
8820    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8821  else
8822    dynamic_linker="$host_os dld.sl"
8823    shlibpath_var=SHLIB_PATH
8824    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8825    library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
8826    soname_spec='${libname}${release}.sl$major'
8827  fi
8828  # HP-UX runs *really* slowly unless shared libraries are mode 555.
8829  postinstall_cmds='chmod 555 $lib'
8830  ;;
8831
8832irix5* | irix6*)
8833  version_type=irix
8834  need_lib_prefix=no
8835  need_version=no
8836  soname_spec='${libname}${release}.so$major'
8837  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
8838  case $host_os in
8839  irix5*)
8840    libsuff= shlibsuff=
8841    ;;
8842  *)
8843    case $LD in # libtool.m4 will add one of these switches to LD
8844    *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
8845    *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
8846    *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
8847    *) libsuff= shlibsuff= libmagic=never-match;;
8848    esac
8849    ;;
8850  esac
8851  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8852  shlibpath_overrides_runpath=no
8853  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8854  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8855  ;;
8856
8857# No shared lib support for Linux oldld, aout, or coff.
8858linux*oldld* | linux*aout* | linux*coff*)
8859  dynamic_linker=no
8860  ;;
8861
8862# This must be Linux ELF.
8863linux*)
8864  version_type=linux
8865  need_lib_prefix=no
8866  need_version=no
8867  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
8868  soname_spec='${libname}${release}.so$major'
8869  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8870  shlibpath_var=LD_LIBRARY_PATH
8871  shlibpath_overrides_runpath=no
8872  # This implies no fast_install, which is unacceptable.
8873  # Some rework will be needed to allow for fast_install
8874  # before this can be enabled.
8875  hardcode_into_libs=yes
8876
8877  # We used to test for /lib/ld.so.1 and disable shared libraries on
8878  # powerpc, because MkLinux only supported shared libraries with the
8879  # GNU dynamic linker.  Since this was broken with cross compilers,
8880  # most powerpc-linux boxes support dynamic linking these days and
8881  # people can always --disable-shared, the test was removed, and we
8882  # assume the GNU/Linux dynamic linker is in use.
8883  dynamic_linker='GNU/Linux ld.so'
8884  ;;
8885
8886netbsd*)
8887  version_type=sunos
8888  need_lib_prefix=no
8889  need_version=no
8890  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8891    library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
8892    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8893    dynamic_linker='NetBSD (a.out) ld.so'
8894  else
8895    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
8896    soname_spec='${libname}${release}.so$major'
8897    dynamic_linker='NetBSD ld.elf_so'
8898  fi
8899  shlibpath_var=LD_LIBRARY_PATH
8900  shlibpath_overrides_runpath=yes
8901  hardcode_into_libs=yes
8902  ;;
8903
8904newsos6)
8905  version_type=linux
8906  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
8907  shlibpath_var=LD_LIBRARY_PATH
8908  shlibpath_overrides_runpath=yes
8909  ;;
8910
8911nto-qnx)
8912  version_type=linux
8913  need_lib_prefix=no
8914  need_version=no
8915  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
8916  soname_spec='${libname}${release}.so$major'
8917  shlibpath_var=LD_LIBRARY_PATH
8918  shlibpath_overrides_runpath=yes
8919  ;;
8920
8921openbsd*)
8922  version_type=sunos
8923  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
8924  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8925  shlibpath_var=LD_LIBRARY_PATH
8926  file_magic_cmd=/usr/bin/file
8927  file_magic_test_file=`echo /usr/lib/libc.so.*`
8928  if  "`echo __ELF__ | $CC -E - | grep __ELF__`" = "" -o "$host_os-$host_cpu" = "openbsd2.8-powerpc" ; then
8929    deplibs_check_method='file_magic ELF 0-90-9*-bit LMSB shared object'
8930  else
8931    deplibs_check_method='file_magic OpenBSD.* shared library'
8932  fi
8933  ;;
8934
8935os2*)
8936  libname_spec='$name'
8937  need_lib_prefix=no
8938  library_names_spec='$libname.dll $libname.a'
8939  dynamic_linker='OS/2 ld.exe'
8940  shlibpath_var=LIBPATH
8941  ;;
8942
8943osf3* | osf4* | osf5*)
8944  version_type=osf
8945  need_version=no
8946  soname_spec='${libname}${release}.so'
8947  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
8948  shlibpath_var=LD_LIBRARY_PATH
8949  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8950  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8951  ;;
8952
8953sco3.2v5*)
8954  version_type=osf
8955  soname_spec='${libname}${release}.so$major'
8956  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
8957  shlibpath_var=LD_LIBRARY_PATH
8958  ;;
8959
8960solaris*)
8961  version_type=linux
8962  need_lib_prefix=no
8963  need_version=no
8964  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
8965  soname_spec='${libname}${release}.so$major'
8966  shlibpath_var=LD_LIBRARY_PATH
8967  shlibpath_overrides_runpath=yes
8968  hardcode_into_libs=yes
8969  # ldd complains unless libraries are executable
8970  postinstall_cmds='chmod +x $lib'
8971  ;;
8972
8973sunos4*)
8974  version_type=sunos
8975  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
8976  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8977  shlibpath_var=LD_LIBRARY_PATH
8978  shlibpath_overrides_runpath=yes
8979  if test "$with_gnu_ld" = yes; then
8980    need_lib_prefix=no
8981  fi
8982  need_version=yes
8983  ;;
8984
8985sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8986  version_type=linux
8987  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
8988  soname_spec='${libname}${release}.so$major'
8989  shlibpath_var=LD_LIBRARY_PATH
8990  case $host_vendor in
8991    sni)
8992      shlibpath_overrides_runpath=no
8993      ;;
8994    motorola)
8995      need_lib_prefix=no
8996      need_version=no
8997      shlibpath_overrides_runpath=no
8998      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8999      ;;
9000  esac
9001  ;;
9002
9003sysv4*MP*)
9004  if test -d /usr/nec ;then
9005    version_type=linux
9006    library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
9007    soname_spec='$libname.so.$major'
9008    shlibpath_var=LD_LIBRARY_PATH
9009  fi
9010  ;;
9011
9012uts4*)
9013  version_type=linux
9014  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
9015  soname_spec='${libname}${release}.so$major'
9016  shlibpath_var=LD_LIBRARY_PATH
9017  ;;
9018
9019*)
9020  dynamic_linker=no
9021  ;;
9022esac
9023echo "$as_me:9023: result: $dynamic_linker" >&5
9024echo "${ECHO_T}$dynamic_linker" >&6
9025test "$dynamic_linker" = no && can_build_shared=no
9026
9027if test "x$enable_dlopen" != xyes; then
9028  enable_dlopen=unknown
9029  enable_dlopen_self=unknown
9030  enable_dlopen_self_static=unknown
9031else
9032  lt_cv_dlopen=no
9033  lt_cv_dlopen_libs=
9034
9035  case $host_os in
9036  beos*)
9037    lt_cv_dlopen="load_add_on"
9038    lt_cv_dlopen_libs=
9039    lt_cv_dlopen_self=yes
9040    ;;
9041
9042  cygwin* | mingw* | pw32*)
9043    lt_cv_dlopen="LoadLibrary"
9044    lt_cv_dlopen_libs=
9045   ;;
9046
9047  *)
9048    echo "$as_me:9048: checking for shl_load" >&5
9049echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9050if test "${ac_cv_func_shl_load+set}" = set; then
9051  echo $ECHO_N "(cached) $ECHO_C" >&6
9052else
9053  cat >conftest.$ac_ext <<_ACEOF
9054#line 9054 "configure"
9055#include "confdefs.h"
9056/* System header to define __stub macros and hopefully few prototypes,
9057    which can conflict with char shl_load (); below.  */
9058#include <assert.h>
9059/* Override any gcc2 internal prototype to avoid an error.  */
9060#ifdef __cplusplus
9061extern "C"
9062#endif
9063/* We use char because int might match the return type of a gcc2
9064   builtin and then its argument prototype would still apply.  */
9065char shl_load ();
9066char (*f) ();
9067
9068int
9069main ()
9070{
9071/* The GNU C library defines this for functions which it implements
9072    to always fail with ENOSYS.  Some functions are actually named
9073    something starting with __ and the normal name is an alias.  */
9074#if defined (__stub_shl_load) || defined (__stub___shl_load)
9075choke me
9076#else
9077f = shl_load;
9078#endif
9079
9080  ;
9081  return 0;
9082}
9083_ACEOF
9084rm -f conftest.$ac_objext conftest$ac_exeext
9085if { (eval echo "$as_me:9085: \"$ac_link\"") >&5
9086  (eval $ac_link) 2>&5
9087  ac_status=$?
9088  echo "$as_me:9088: \$? = $ac_status" >&5
9089  (exit $ac_status); } &&
9090         { ac_try='test -s conftest$ac_exeext'
9091  { (eval echo "$as_me:9091: \"$ac_try\"") >&5
9092  (eval $ac_try) 2>&5
9093  ac_status=$?
9094  echo "$as_me:9094: \$? = $ac_status" >&5
9095  (exit $ac_status); }; }; then
9096  ac_cv_func_shl_load=yes
9097else
9098  echo "$as_me: failed program was:" >&5
9099cat conftest.$ac_ext >&5
9100ac_cv_func_shl_load=no
9101fi
9102rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9103fi
9104echo "$as_me:9104: result: $ac_cv_func_shl_load" >&5
9105echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9106if test $ac_cv_func_shl_load = yes; then
9107  lt_cv_dlopen="shl_load"
9108else
9109  echo "$as_me:9109: checking for shl_load in -ldld" >&5
9110echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9111if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9112  echo $ECHO_N "(cached) $ECHO_C" >&6
9113else
9114  ac_check_lib_save_LIBS=$LIBS
9115LIBS="-ldld  $LIBS"
9116cat >conftest.$ac_ext <<_ACEOF
9117#line 9117 "configure"
9118#include "confdefs.h"
9119
9120/* Override any gcc2 internal prototype to avoid an error.  */
9121#ifdef __cplusplus
9122extern "C"
9123#endif
9124/* We use char because int might match the return type of a gcc2
9125   builtin and then its argument prototype would still apply.  */
9126char shl_load ();
9127int
9128main ()
9129{
9130shl_load ();
9131  ;
9132  return 0;
9133}
9134_ACEOF
9135rm -f conftest.$ac_objext conftest$ac_exeext
9136if { (eval echo "$as_me:9136: \"$ac_link\"") >&5
9137  (eval $ac_link) 2>&5
9138  ac_status=$?
9139  echo "$as_me:9139: \$? = $ac_status" >&5
9140  (exit $ac_status); } &&
9141         { ac_try='test -s conftest$ac_exeext'
9142  { (eval echo "$as_me:9142: \"$ac_try\"") >&5
9143  (eval $ac_try) 2>&5
9144  ac_status=$?
9145  echo "$as_me:9145: \$? = $ac_status" >&5
9146  (exit $ac_status); }; }; then
9147  ac_cv_lib_dld_shl_load=yes
9148else
9149  echo "$as_me: failed program was:" >&5
9150cat conftest.$ac_ext >&5
9151ac_cv_lib_dld_shl_load=no
9152fi
9153rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9154LIBS=$ac_check_lib_save_LIBS
9155fi
9156echo "$as_me:9156: result: $ac_cv_lib_dld_shl_load" >&5
9157echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9158if test $ac_cv_lib_dld_shl_load = yes; then
9159  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9160else
9161  echo "$as_me:9161: checking for dlopen in -ldl" >&5
9162echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9163if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9164  echo $ECHO_N "(cached) $ECHO_C" >&6
9165else
9166  ac_check_lib_save_LIBS=$LIBS
9167LIBS="-ldl  $LIBS"
9168cat >conftest.$ac_ext <<_ACEOF
9169#line 9169 "configure"
9170#include "confdefs.h"
9171
9172/* Override any gcc2 internal prototype to avoid an error.  */
9173#ifdef __cplusplus
9174extern "C"
9175#endif
9176/* We use char because int might match the return type of a gcc2
9177   builtin and then its argument prototype would still apply.  */
9178char dlopen ();
9179int
9180main ()
9181{
9182dlopen ();
9183  ;
9184  return 0;
9185}
9186_ACEOF
9187rm -f conftest.$ac_objext conftest$ac_exeext
9188if { (eval echo "$as_me:9188: \"$ac_link\"") >&5
9189  (eval $ac_link) 2>&5
9190  ac_status=$?
9191  echo "$as_me:9191: \$? = $ac_status" >&5
9192  (exit $ac_status); } &&
9193         { ac_try='test -s conftest$ac_exeext'
9194  { (eval echo "$as_me:9194: \"$ac_try\"") >&5
9195  (eval $ac_try) 2>&5
9196  ac_status=$?
9197  echo "$as_me:9197: \$? = $ac_status" >&5
9198  (exit $ac_status); }; }; then
9199  ac_cv_lib_dl_dlopen=yes
9200else
9201  echo "$as_me: failed program was:" >&5
9202cat conftest.$ac_ext >&5
9203ac_cv_lib_dl_dlopen=no
9204fi
9205rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9206LIBS=$ac_check_lib_save_LIBS
9207fi
9208echo "$as_me:9208: result: $ac_cv_lib_dl_dlopen" >&5
9209echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9210if test $ac_cv_lib_dl_dlopen = yes; then
9211  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9212else
9213  echo "$as_me:9213: checking for dlopen" >&5
9214echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9215if test "${ac_cv_func_dlopen+set}" = set; then
9216  echo $ECHO_N "(cached) $ECHO_C" >&6
9217else
9218  cat >conftest.$ac_ext <<_ACEOF
9219#line 9219 "configure"
9220#include "confdefs.h"
9221/* System header to define __stub macros and hopefully few prototypes,
9222    which can conflict with char dlopen (); below.  */
9223#include <assert.h>
9224/* Override any gcc2 internal prototype to avoid an error.  */
9225#ifdef __cplusplus
9226extern "C"
9227#endif
9228/* We use char because int might match the return type of a gcc2
9229   builtin and then its argument prototype would still apply.  */
9230char dlopen ();
9231char (*f) ();
9232
9233int
9234main ()
9235{
9236/* The GNU C library defines this for functions which it implements
9237    to always fail with ENOSYS.  Some functions are actually named
9238    something starting with __ and the normal name is an alias.  */
9239#if defined (__stub_dlopen) || defined (__stub___dlopen)
9240choke me
9241#else
9242f = dlopen;
9243#endif
9244
9245  ;
9246  return 0;
9247}
9248_ACEOF
9249rm -f conftest.$ac_objext conftest$ac_exeext
9250if { (eval echo "$as_me:9250: \"$ac_link\"") >&5
9251  (eval $ac_link) 2>&5
9252  ac_status=$?
9253  echo "$as_me:9253: \$? = $ac_status" >&5
9254  (exit $ac_status); } &&
9255         { ac_try='test -s conftest$ac_exeext'
9256  { (eval echo "$as_me:9256: \"$ac_try\"") >&5
9257  (eval $ac_try) 2>&5
9258  ac_status=$?
9259  echo "$as_me:9259: \$? = $ac_status" >&5
9260  (exit $ac_status); }; }; then
9261  ac_cv_func_dlopen=yes
9262else
9263  echo "$as_me: failed program was:" >&5
9264cat conftest.$ac_ext >&5
9265ac_cv_func_dlopen=no
9266fi
9267rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9268fi
9269echo "$as_me:9269: result: $ac_cv_func_dlopen" >&5
9270echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9271if test $ac_cv_func_dlopen = yes; then
9272  lt_cv_dlopen="dlopen"
9273else
9274  echo "$as_me:9274: checking for dlopen in -lsvld" >&5
9275echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9276if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9277  echo $ECHO_N "(cached) $ECHO_C" >&6
9278else
9279  ac_check_lib_save_LIBS=$LIBS
9280LIBS="-lsvld  $LIBS"
9281cat >conftest.$ac_ext <<_ACEOF
9282#line 9282 "configure"
9283#include "confdefs.h"
9284
9285/* Override any gcc2 internal prototype to avoid an error.  */
9286#ifdef __cplusplus
9287extern "C"
9288#endif
9289/* We use char because int might match the return type of a gcc2
9290   builtin and then its argument prototype would still apply.  */
9291char dlopen ();
9292int
9293main ()
9294{
9295dlopen ();
9296  ;
9297  return 0;
9298}
9299_ACEOF
9300rm -f conftest.$ac_objext conftest$ac_exeext
9301if { (eval echo "$as_me:9301: \"$ac_link\"") >&5
9302  (eval $ac_link) 2>&5
9303  ac_status=$?
9304  echo "$as_me:9304: \$? = $ac_status" >&5
9305  (exit $ac_status); } &&
9306         { ac_try='test -s conftest$ac_exeext'
9307  { (eval echo "$as_me:9307: \"$ac_try\"") >&5
9308  (eval $ac_try) 2>&5
9309  ac_status=$?
9310  echo "$as_me:9310: \$? = $ac_status" >&5
9311  (exit $ac_status); }; }; then
9312  ac_cv_lib_svld_dlopen=yes
9313else
9314  echo "$as_me: failed program was:" >&5
9315cat conftest.$ac_ext >&5
9316ac_cv_lib_svld_dlopen=no
9317fi
9318rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9319LIBS=$ac_check_lib_save_LIBS
9320fi
9321echo "$as_me:9321: result: $ac_cv_lib_svld_dlopen" >&5
9322echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9323if test $ac_cv_lib_svld_dlopen = yes; then
9324  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9325fi
9326
9327fi
9328
9329fi
9330
9331fi
9332
9333fi
9334
9335    ;;
9336  esac
9337
9338  if test "x$lt_cv_dlopen" != xno; then
9339    enable_dlopen=yes
9340  else
9341    enable_dlopen=no
9342  fi
9343
9344  case $lt_cv_dlopen in
9345  dlopen)
9346    save_CPPFLAGS="$CPPFLAGS"
9347    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9348
9349    save_LDFLAGS="$LDFLAGS"
9350    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9351
9352    save_LIBS="$LIBS"
9353    LIBS="$lt_cv_dlopen_libs $LIBS"
9354
9355    echo "$as_me:9355: checking whether a program can dlopen itself" >&5
9356echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9357if test "${lt_cv_dlopen_self+set}" = set; then
9358  echo $ECHO_N "(cached) $ECHO_C" >&6
9359else
9360  	  if test "$cross_compiling" = yes; then :
9361  lt_cv_dlopen_self=cross
9362else
9363  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9364  lt_status=$lt_dlunknown
9365  cat > conftest.$ac_ext <<EOF
9366#line 9366 "configure"
9367#include "confdefs.h"
9368
9369#if HAVE_DLFCN_H
9370#include <dlfcn.h>
9371#endif
9372
9373#include <stdio.h>
9374
9375#ifdef RTLD_GLOBAL
9376#  define LT_DLGLOBAL		RTLD_GLOBAL
9377#else
9378#  ifdef DL_GLOBAL
9379#    define LT_DLGLOBAL		DL_GLOBAL
9380#  else
9381#    define LT_DLGLOBAL		0
9382#  endif
9383#endif
9384
9385/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9386   find out it does not work in some platform. */
9387#ifndef LT_DLLAZY_OR_NOW
9388#  ifdef RTLD_LAZY
9389#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9390#  else
9391#    ifdef DL_LAZY
9392#      define LT_DLLAZY_OR_NOW		DL_LAZY
9393#    else
9394#      ifdef RTLD_NOW
9395#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9396#      else
9397#        ifdef DL_NOW
9398#          define LT_DLLAZY_OR_NOW	DL_NOW
9399#        else
9400#          define LT_DLLAZY_OR_NOW	0
9401#        endif
9402#      endif
9403#    endif
9404#  endif
9405#endif
9406
9407#ifdef __cplusplus
9408extern "C" void exit (int);
9409#endif
9410
9411void fnord() { int i=42;}
9412int main ()
9413{
9414  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9415  int status = $lt_dlunknown;
9416
9417  if (self)
9418    {
9419      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9420      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9421      /* dlclose (self); */
9422    }
9423
9424    exit (status);
9425}
9426EOF
9427  if { (eval echo "$as_me:9427: \"$ac_link\"") >&5
9428  (eval $ac_link) 2>&5
9429  ac_status=$?
9430  echo "$as_me:9430: \$? = $ac_status" >&5
9431  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9432    (./conftest; exit; ) 2>/dev/null
9433    lt_status=$?
9434    case x$lt_status in
9435      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9436      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9437      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9438    esac
9439  else :
9440    # compilation failed
9441    lt_cv_dlopen_self=no
9442  fi
9443fi
9444rm -fr conftest*
9445
9446fi
9447echo "$as_me:9447: result: $lt_cv_dlopen_self" >&5
9448echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9449
9450    if test "x$lt_cv_dlopen_self" = xyes; then
9451      LDFLAGS="$LDFLAGS $link_static_flag"
9452      echo "$as_me:9452: checking whether a statically linked program can dlopen itself" >&5
9453echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9454if test "${lt_cv_dlopen_self_static+set}" = set; then
9455  echo $ECHO_N "(cached) $ECHO_C" >&6
9456else
9457  	  if test "$cross_compiling" = yes; then :
9458  lt_cv_dlopen_self_static=cross
9459else
9460  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9461  lt_status=$lt_dlunknown
9462  cat > conftest.$ac_ext <<EOF
9463#line 9463 "configure"
9464#include "confdefs.h"
9465
9466#if HAVE_DLFCN_H
9467#include <dlfcn.h>
9468#endif
9469
9470#include <stdio.h>
9471
9472#ifdef RTLD_GLOBAL
9473#  define LT_DLGLOBAL		RTLD_GLOBAL
9474#else
9475#  ifdef DL_GLOBAL
9476#    define LT_DLGLOBAL		DL_GLOBAL
9477#  else
9478#    define LT_DLGLOBAL		0
9479#  endif
9480#endif
9481
9482/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9483   find out it does not work in some platform. */
9484#ifndef LT_DLLAZY_OR_NOW
9485#  ifdef RTLD_LAZY
9486#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9487#  else
9488#    ifdef DL_LAZY
9489#      define LT_DLLAZY_OR_NOW		DL_LAZY
9490#    else
9491#      ifdef RTLD_NOW
9492#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9493#      else
9494#        ifdef DL_NOW
9495#          define LT_DLLAZY_OR_NOW	DL_NOW
9496#        else
9497#          define LT_DLLAZY_OR_NOW	0
9498#        endif
9499#      endif
9500#    endif
9501#  endif
9502#endif
9503
9504#ifdef __cplusplus
9505extern "C" void exit (int);
9506#endif
9507
9508void fnord() { int i=42;}
9509int main ()
9510{
9511  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9512  int status = $lt_dlunknown;
9513
9514  if (self)
9515    {
9516      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9517      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9518      /* dlclose (self); */
9519    }
9520
9521    exit (status);
9522}
9523EOF
9524  if { (eval echo "$as_me:9524: \"$ac_link\"") >&5
9525  (eval $ac_link) 2>&5
9526  ac_status=$?
9527  echo "$as_me:9527: \$? = $ac_status" >&5
9528  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9529    (./conftest; exit; ) 2>/dev/null
9530    lt_status=$?
9531    case x$lt_status in
9532      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9533      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9534      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9535    esac
9536  else :
9537    # compilation failed
9538    lt_cv_dlopen_self_static=no
9539  fi
9540fi
9541rm -fr conftest*
9542
9543fi
9544echo "$as_me:9544: result: $lt_cv_dlopen_self_static" >&5
9545echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9546    fi
9547
9548    CPPFLAGS="$save_CPPFLAGS"
9549    LDFLAGS="$save_LDFLAGS"
9550    LIBS="$save_LIBS"
9551    ;;
9552  esac
9553
9554  case $lt_cv_dlopen_self in
9555  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9556  *) enable_dlopen_self=unknown ;;
9557  esac
9558
9559  case $lt_cv_dlopen_self_static in
9560  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9561  *) enable_dlopen_self_static=unknown ;;
9562  esac
9563fi
9564
9565# The else clause should only fire when bootstrapping the
9566# libtool distribution, otherwise you forgot to ship ltmain.sh
9567# with your package, and you will get complaints that there are
9568# no rules to generate ltmain.sh.
9569if test -f "$ltmain"; then
9570  # Now quote all the things that may contain metacharacters while being
9571  # careful not to overquote the AC_SUBSTed values.  We take copies of the
9572  # variables and quote the copies for generation of the libtool script.
9573  for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S NM SHELL \
9574    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9575    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9576    deplibs_check_method reload_flag reload_cmds need_locks \
9577    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9578    lt_cv_sys_global_symbol_to_c_name_address \
9579    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9580    old_postinstall_cmds old_postuninstall_cmds \
9581    compiler_CXX \
9582    CC_CXX \
9583    LD_CXX \
9584    lt_prog_compiler_wl_CXX \
9585    lt_prog_compiler_pic_CXX \
9586    lt_prog_compiler_static_CXX \
9587    lt_prog_compiler_no_builtin_flag_CXX \
9588    export_dynamic_flag_spec_CXX \
9589    thread_safe_flag_spec_CXX \
9590    whole_archive_flag_spec_CXX \
9591    old_archive_cmds_CXX \
9592    old_archive_from_new_cmds_CXX \
9593    predep_objects_CXX \
9594    postdep_objects_CXX \
9595    predeps_CXX \
9596    postdeps_CXX \
9597    compiler_lib_search_path_CXX \
9598    archive_cmds_CXX \
9599    archive_expsym_cmds_CXX \
9600    postinstall_cmds_CXX \
9601    postuninstall_cmds_CXX \
9602    old_archive_from_expsyms_cmds_CXX \
9603    allow_undefined_flag_CXX \
9604    no_undefined_flag_CXX \
9605    export_symbols_cmds_CXX \
9606    hardcode_libdir_flag_spec_CXX \
9607    hardcode_libdir_separator_CXX \
9608    lt_cv_prog_compiler_c_o_CXX \
9609    exclude_expsyms_CXX \
9610    include_expsyms_CXX; do
9611
9612    case $var in
9613    old_archive_cmds_CXX | \
9614    old_archive_from_new_cmds_CXX | \
9615    archive_cmds_CXX | \
9616    archive_expsym_cmds_CXX | \
9617    old_archive_from_expsyms_cmds_CXX | \
9618    export_symbols_cmds_CXX | \
9619    extract_expsyms_cmds | reload_cmds | finish_cmds | \
9620    postinstall_cmds | postuninstall_cmds | \
9621    old_postinstall_cmds | old_postuninstall_cmds | \
9622    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9623      # Double-quote double-evaled strings.
9624      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9625      ;;
9626    *)
9627      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9628      ;;
9629    esac
9630  done
9631
9632  case $lt_echo in
9633  *'\$0 --fallback-echo"')
9634    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9635    ;;
9636  esac
9637
9638cfgfile="$ofile"
9639
9640  cat <<__EOF__ >> "$cfgfile"
9641# ### BEGIN LIBTOOL TAG CONFIG: $tagname
9642
9643# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9644
9645# Shell to use when invoking shell scripts.
9646SHELL=$lt_SHELL
9647
9648# Whether or not to build shared libraries.
9649build_libtool_libs=$enable_shared
9650
9651# Whether or not to build static libraries.
9652build_old_libs=$enable_static
9653
9654# Whether or not to add -lc for building shared libraries.
9655build_libtool_need_lc=$archive_cmds_need_lc_CXX
9656
9657# Whether or not to optimize for fast installation.
9658fast_install=$enable_fast_install
9659
9660# The host system.
9661host_alias=$host_alias
9662host=$host
9663
9664# An echo program that does not interpret backslashes.
9665echo=$lt_echo
9666
9667# The archiver.
9668AR=$lt_AR
9669AR_FLAGS=$lt_AR_FLAGS
9670
9671# A C compiler.
9672LTCC=$LTCC
9673
9674# A language-specific compiler.
9675CC=$lt_compiler_CXX
9676
9677# Is the compiler the GNU C compiler?
9678with_gcc=$GCC_CXX
9679
9680# The linker used to build libraries.
9681LD=$lt_LD_CXX
9682
9683# Whether we need hard or soft links.
9684LN_S=$lt_LN_S
9685
9686# A BSD-compatible nm program.
9687NM=$lt_NM
9688
9689# A symbol stripping program
9690STRIP=$STRIP
9691
9692# Used to examine libraries when file_magic_cmd begins "file"
9693MAGIC_CMD=$MAGIC_CMD
9694
9695# Used on cygwin: DLL creation program.
9696DLLTOOL="$DLLTOOL"
9697
9698# Used on cygwin: object dumper.
9699OBJDUMP="$OBJDUMP"
9700
9701# Used on cygwin: assembler.
9702AS="$AS"
9703
9704# The name of the directory that contains temporary libtool files.
9705objdir=$objdir
9706
9707# How to create reloadable object files.
9708reload_flag=$lt_reload_flag
9709reload_cmds=$lt_reload_cmds
9710
9711# How to pass a linker flag through the compiler.
9712wl=$lt_lt_prog_compiler_wl_CXX
9713
9714# Object file suffix (normally "o").
9715objext="$ac_objext"
9716
9717# Old archive suffix (normally "a").
9718libext="$libext"
9719
9720# Executable file suffix (normally "").
9721exeext="$exeext"
9722
9723# Additional compiler flags for building library objects.
9724pic_flag=$lt_lt_prog_compiler_pic_CXX
9725pic_mode=$pic_mode
9726
9727# What is the maximum length of a command?
9728max_cmd_len=$lt_cv_sys_max_cmd_len
9729
9730# Does compiler simultaneously support -c and -o options?
9731compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
9732
9733# Must we lock files when doing compilation ?
9734need_locks=$lt_need_locks
9735
9736# Do we need the lib prefix for modules?
9737need_lib_prefix=$need_lib_prefix
9738
9739# Do we need a version for libraries?
9740need_version=$need_version
9741
9742# Whether dlopen is supported.
9743dlopen_support=$enable_dlopen
9744
9745# Whether dlopen of programs is supported.
9746dlopen_self=$enable_dlopen_self
9747
9748# Whether dlopen of statically linked programs is supported.
9749dlopen_self_static=$enable_dlopen_self_static
9750
9751# Compiler flag to prevent dynamic linking.
9752link_static_flag=$lt_lt_prog_compiler_static_CXX
9753
9754# Compiler flag to turn off builtin functions.
9755no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
9756
9757# Compiler flag to allow reflexive dlopens.
9758export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
9759
9760# Compiler flag to generate shared objects directly from archives.
9761whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
9762
9763# Compiler flag to generate thread-safe objects.
9764thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
9765
9766# Library versioning type.
9767version_type=$version_type
9768
9769# Format of library name prefix.
9770libname_spec=$lt_libname_spec
9771
9772# List of archive names.  First name is the real one, the rest are links.
9773# The last name is the one that the linker finds with -lNAME.
9774library_names_spec=$lt_library_names_spec
9775
9776# The coded name of the library, if different from the real name.
9777soname_spec=$lt_soname_spec
9778
9779# Commands used to build and install an old-style archive.
9780RANLIB=$lt_RANLIB
9781old_archive_cmds=$lt_old_archive_cmds_CXX
9782old_postinstall_cmds=$lt_old_postinstall_cmds
9783old_postuninstall_cmds=$lt_old_postuninstall_cmds
9784
9785# Create an old-style archive from a shared archive.
9786old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
9787
9788# Create a temporary old-style archive to link instead of a shared archive.
9789old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
9790
9791# Commands used to build and install a shared archive.
9792archive_cmds=$lt_archive_cmds_CXX
9793archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
9794postinstall_cmds=$lt_postinstall_cmds
9795postuninstall_cmds=$lt_postuninstall_cmds
9796
9797# Commands to strip libraries.
9798old_striplib=$lt_old_striplib
9799striplib=$lt_striplib
9800
9801# Dependencies to place before the objects being linked to create a
9802# shared library.
9803predep_objects=$lt_predep_objects_CXX
9804
9805# Dependencies to place after the objects being linked to create a
9806# shared library.
9807postdep_objects=$lt_postdep_objects_CXX
9808
9809# Dependencies to place before the objects being linked to create a
9810# shared library.
9811predeps=$lt_predeps_CXX
9812
9813# Dependencies to place after the objects being linked to create a
9814# shared library.
9815postdeps=$lt_postdeps_CXX
9816
9817# The library search path used internally by the compiler when linking
9818# a shared library.
9819compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
9820
9821# Method to check whether dependent libraries are shared objects.
9822deplibs_check_method=$lt_deplibs_check_method
9823
9824# Command to use when deplibs_check_method == file_magic.
9825file_magic_cmd=$lt_file_magic_cmd
9826
9827# Flag that allows shared libraries with undefined symbols to be built.
9828allow_undefined_flag=$lt_allow_undefined_flag_CXX
9829
9830# Flag that forces no undefined symbols.
9831no_undefined_flag=$lt_no_undefined_flag_CXX
9832
9833# Commands used to finish a libtool library installation in a directory.
9834finish_cmds=$lt_finish_cmds
9835
9836# Same as above, but a single script fragment to be evaled but not shown.
9837finish_eval=$lt_finish_eval
9838
9839# Take the output of nm and produce a listing of raw symbols and C names.
9840global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9841
9842# Transform the output of nm in a proper C declaration
9843global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9844
9845# Transform the output of nm in a C name address pair
9846global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9847
9848# This is the shared library runtime path variable.
9849runpath_var=$runpath_var
9850
9851# This is the shared library path variable.
9852shlibpath_var=$shlibpath_var
9853
9854# Is shlibpath searched before the hard-coded library search path?
9855shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9856
9857# How to hardcode a shared library path into an executable.
9858hardcode_action=$hardcode_action_CXX
9859
9860# Whether we should hardcode library paths into libraries.
9861hardcode_into_libs=$hardcode_into_libs
9862
9863# Flag to hardcode \$libdir into a binary during linking.
9864# This must work even if \$libdir does not exist.
9865hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
9866
9867# Whether we need a single -rpath flag with a separated argument.
9868hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
9869
9870# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
9871# resulting binary.
9872hardcode_direct=$hardcode_direct_CXX
9873
9874# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9875# resulting binary.
9876hardcode_minus_L=$hardcode_minus_L_CXX
9877
9878# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9879# the resulting binary.
9880hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
9881
9882# Variables whose values should be saved in libtool wrapper scripts and
9883# restored at relink time.
9884variables_saved_for_relink="$variables_saved_for_relink"
9885
9886# Whether libtool must link a program against all its dependency libraries.
9887link_all_deplibs=$link_all_deplibs_CXX
9888
9889# Compile-time system search path for libraries
9890sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9891
9892# Run-time system search path for libraries
9893sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9894
9895# Fix the shell variable \$srcfile for the compiler.
9896fix_srcfile_path="$fix_srcfile_path_CXX"
9897
9898# Set to yes if exported symbols are required.
9899always_export_symbols=$always_export_symbols_CXX
9900
9901# The commands to list exported symbols.
9902export_symbols_cmds=$lt_export_symbols_cmds_CXX
9903
9904# The commands to extract the exported symbol list from a shared archive.
9905extract_expsyms_cmds=$lt_extract_expsyms_cmds
9906
9907# Symbols that should not be listed in the preloaded symbols.
9908exclude_expsyms=$lt_exclude_expsyms_CXX
9909
9910# Symbols that must always be exported.
9911include_expsyms=$lt_include_expsyms_CXX
9912
9913# ### END LIBTOOL TAG CONFIG: $tagname
9914
9915__EOF__
9916
9917else
9918  # If there is no Makefile yet, we rely on a make rule to execute
9919  # `config.status --recheck' to rerun these tests and create the
9920  # libtool script then.
9921  test -f Makefile && make "$ltmain"
9922fi
9923
9924ac_ext=c
9925ac_cpp='$CPP $CPPFLAGS'
9926ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9927ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9928ac_compiler_gnu=$ac_cv_c_compiler_gnu
9929
9930CC="$lt_save_CC"
9931
9932        ;;
9933
9934      GCJ)
9935
9936# Source file extension for C test sources.
9937ac_ext=java
9938
9939# Object file extension for compiled C test sources.
9940objext=o
9941objext_GCJ=$objext
9942
9943# Code to be used in simple compile tests
9944lt_simple_compile_test_code="class foo {}"
9945
9946# Code to be used in simple link tests
9947lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }'
9948
9949# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9950
9951# If no C compiler was specified, use CC.
9952LTCC=${LTCC-"$CC"}
9953
9954# Allow CC to be a program name with arguments.
9955set dummy $CC
9956compiler="$2"
9957
9958# Allow CC to be a program name with arguments.
9959lt_save_CC="$CC"
9960CC=${GCJ-"gcj"}
9961set dummy $CC
9962compiler="$2"
9963compiler_GCJ=$CC
9964
9965# GCJ did not exist at the time GCC didn't implicitly link libc in.
9966archive_cmds_need_lc_GCJ=no
9967
9968lt_prog_compiler_no_builtin_flag_GCJ=
9969
9970if test "$GCC" = yes; then
9971  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
9972
9973  echo "$as_me:9973: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9974echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
9975if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
9976  echo $ECHO_N "(cached) $ECHO_C" >&6
9977else
9978  lt_cv_prog_compiler_rtti_exceptions=no
9979  ac_outfile=conftest.$ac_objext
9980   save_CFLAGS="$CFLAGS"
9981   CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
9982   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9983   if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
9984     # The compiler can only warn and ignore the option if not recognized
9985     # So say no if there are warnings
9986     if test -s conftest.err; then
9987       # Append any errors to the config.log.
9988       cat conftest.err 1>&5
9989     else
9990       lt_cv_prog_compiler_rtti_exceptions=yes
9991     fi
9992   fi
9993   $rm conftest*
9994   CFLAGS="$save_CFLAGS"
9995
9996fi
9997echo "$as_me:9997: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9998echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
9999
10000if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10001    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
10002else
10003    :
10004fi
10005
10006fi
10007
10008lt_prog_compiler_wl_GCJ=
10009lt_prog_compiler_pic_GCJ=
10010lt_prog_compiler_static_GCJ=
10011
10012echo "$as_me:10012: checking for $compiler option to produce PIC" >&5
10013echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10014  if test "$GCC" = yes; then
10015    lt_prog_compiler_wl_GCJ='-Wl,'
10016    lt_prog_compiler_static_GCJ='-static'
10017
10018    case $host_os in
10019      aix*)
10020      # All AIX code is PIC.
10021      if test "$host_cpu" = ia64; then
10022        # AIX 5 now supports IA64 processor
10023        lt_prog_compiler_static_GCJ='-Bstatic'
10024      fi
10025      ;;
10026
10027    amigaos*)
10028      # FIXME: we need at least 68020 code to build shared libraries, but
10029      # adding the `-m68020' flag to GCC prevents building anything better,
10030      # like `-m68040'.
10031      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
10032      ;;
10033
10034    beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
10035      # PIC is the default for these OSes.
10036      ;;
10037
10038    cygwin* | mingw* | pw32* | os2*)
10039      # This hack is so that the source file can tell whether it is being
10040      # built for inclusion in a dll (and should export symbols for example).
10041      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
10042      ;;
10043
10044    darwin* | rhapsody*)
10045      # PIC is the default on this platform
10046      # Common symbols not allowed in MH_DYLIB files
10047      lt_prog_compiler_pic_GCJ='-fno-common'
10048      ;;
10049
10050    msdosdjgpp*)
10051      # Just because we use GCC doesn't mean we suddenly get shared libraries
10052      # on systems that don't support them.
10053      lt_prog_compiler_can_build_shared_GCJ=no
10054      enable_shared=no
10055      ;;
10056
10057    sysv4*MP*)
10058      if test -d /usr/nec; then
10059        lt_prog_compiler_pic_GCJ=-Kconform_pic
10060      fi
10061      ;;
10062
10063    hpux*)
10064      # PIC is the default for IA64 HP-UX, but not for PA HP-UX.
10065      if test "$host_cpu" != ia64; then
10066        lt_prog_compiler_pic_GCJ='-fPIC'
10067      fi
10068      ;;
10069
10070    *)
10071      lt_prog_compiler_pic_GCJ='-fPIC'
10072      ;;
10073    esac
10074  else
10075    # PORTME Check for flag to pass linker flags through the system compiler.
10076    case $host_os in
10077    aix*)
10078      lt_prog_compiler_wl_GCJ='-Wl,'
10079      if test "$host_cpu" = ia64; then
10080        # AIX 5 now supports IA64 processor
10081        lt_prog_compiler_static_GCJ='-Bstatic'
10082      else
10083        lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
10084      fi
10085      ;;
10086
10087    cygwin* | mingw* | pw32* | os2*)
10088      # This hack is so that the source file can tell whether it is being
10089      # built for inclusion in a dll (and should export symbols for example).
10090      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
10091      ;;
10092
10093    hpux9* | hpux10* | hpux11*)
10094      lt_prog_compiler_wl_GCJ='-Wl,'
10095      if test "$host_cpu" != ia64; then
10096        lt_prog_compiler_pic_GCJ='+Z'
10097      fi
10098      # Is there a better lt_prog_compiler_static that works with the bundled CC?
10099      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
10100      ;;
10101
10102    irix5* | irix6*)
10103      lt_prog_compiler_wl_GCJ='-Wl,'
10104      # PIC (with -KPIC) is the default.
10105      lt_prog_compiler_static_GCJ='-non_shared'
10106      ;;
10107
10108    newsos6)
10109      lt_prog_compiler_pic_GCJ='-KPIC'
10110      lt_prog_compiler_static_GCJ='-Bstatic'
10111      ;;
10112
10113    osf3* | osf4* | osf5*)
10114      lt_prog_compiler_wl_GCJ='-Wl,'
10115      # All OSF/1 code is PIC.
10116      lt_prog_compiler_static_GCJ='-non_shared'
10117      ;;
10118
10119    sco3.2v5*)
10120      lt_prog_compiler_pic_GCJ='-Kpic'
10121      lt_prog_compiler_static_GCJ='-dn'
10122      ;;
10123
10124    solaris*)
10125      lt_prog_compiler_wl_GCJ='-Wl,'
10126      lt_prog_compiler_pic_GCJ='-KPIC'
10127      lt_prog_compiler_static_GCJ='-Bstatic'
10128      ;;
10129
10130    sunos4*)
10131      lt_prog_compiler_wl_GCJ='-Qoption ld '
10132      lt_prog_compiler_pic_GCJ='-PIC'
10133      lt_prog_compiler_static_GCJ='-Bstatic'
10134      ;;
10135
10136    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10137      if test "x$host_vendor" = xsni; then
10138        lt_prog_compiler_wl_GCJ='-LD'
10139      else
10140        lt_prog_compiler_wl_GCJ='-Wl,'
10141      fi
10142      lt_prog_compiler_pic_GCJ='-KPIC'
10143      lt_prog_compiler_static_GCJ='-Bstatic'
10144      ;;
10145
10146    sysv4*MP*)
10147      if test -d /usr/nec ;then
10148        lt_prog_compiler_pic_GCJ='-Kconform_pic'
10149        lt_prog_compiler_static_GCJ='-Bstatic'
10150      fi
10151      ;;
10152
10153    uts4*)
10154      lt_prog_compiler_pic_GCJ='-pic'
10155      lt_prog_compiler_static_GCJ='-Bstatic'
10156      ;;
10157
10158    *)
10159      lt_prog_compiler_can_build_shared_GCJ=no
10160      ;;
10161    esac
10162  fi
10163
10164echo "$as_me:10164: result: $lt_prog_compiler_pic_GCJ" >&5
10165echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
10166
10167#
10168# Check to make sure the PIC flag actually works.
10169#
10170if test -n "$lt_prog_compiler_pic_GCJ"; then
10171  echo "$as_me:10171: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
10172echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
10173if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
10174  echo $ECHO_N "(cached) $ECHO_C" >&6
10175else
10176  lt_prog_compiler_pic_works_GCJ=no
10177  ac_outfile=conftest.$ac_objext
10178   save_CFLAGS="$CFLAGS"
10179   CFLAGS="$CFLAGS $lt_prog_compiler_pic_GCJ -DPIC"
10180   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10181   if (eval $ac_compile 2>conftest.err) && test -s $ac_outfile; then
10182     # The compiler can only warn and ignore the option if not recognized
10183     # So say no if there are warnings
10184     if test -s conftest.err; then
10185       # Append any errors to the config.log.
10186       cat conftest.err 1>&5
10187     else
10188       lt_prog_compiler_pic_works_GCJ=yes
10189     fi
10190   fi
10191   $rm conftest*
10192   CFLAGS="$save_CFLAGS"
10193
10194fi
10195echo "$as_me:10195: result: $lt_prog_compiler_pic_works_GCJ" >&5
10196echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
10197
10198if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
10199    case $lt_prog_compiler_pic_GCJ in
10200     "" | " "*) ;;
10201     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
10202     esac
10203else
10204    lt_prog_compiler_pic_GCJ=
10205     lt_prog_compiler_can_build_shared_GCJ=no
10206fi
10207
10208fi
10209case "$host_os" in
10210  # For platforms which do not support PIC, -DPIC is meaningless:
10211  *djgpp*)
10212    lt_prog_compiler_pic_GCJ=
10213    ;;
10214  *)
10215    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ -DPIC"
10216    ;;
10217esac
10218
10219echo "$as_me:10219: checking if $compiler supports -c -o file.$ac_objext" >&5
10220echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10221if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
10222  echo $ECHO_N "(cached) $ECHO_C" >&6
10223else
10224  lt_cv_prog_compiler_c_o_GCJ=no
10225   $rm -r conftest 2>/dev/null
10226   mkdir conftest
10227   cd conftest
10228   mkdir out
10229   save_GCJFLAGS="$GCJFLAGS"
10230                   GCJFLAGS="$GCJFLAGS -o out/conftest2.$ac_objext"
10231   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10232
10233   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10234   # that will create temporary files in the current directory regardless of
10235   # the output directory.  Thus, making CWD read-only will cause this test
10236   # to fail, enabling locking or at least warning the user not to do parallel
10237   # builds.
10238   chmod -w .
10239
10240   if (eval $ac_compile 2>out/conftest.err) && test -s out/conftest2.$ac_objext
10241   then
10242     # The compiler can only warn and ignore the option if not recognized
10243     # So say no if there are warnings
10244     if test -s out/conftest.err; then
10245       # Append any errors to the config.log.
10246       cat out/conftest.err 1>&5
10247     else
10248       lt_cv_prog_compiler_c_o_GCJ=yes
10249     fi
10250   fi
10251   GCJFLAGS="$save_GCJFLAGS"
10252   chmod u+w .
10253   $rm conftest* out/*
10254   rmdir out
10255   cd ..
10256   rmdir conftest
10257   $rm conftest*
10258
10259fi
10260echo "$as_me:10260: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
10261echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
10262
10263hard_links="nottested"
10264if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
10265  # do not overwrite the value of need_locks provided by the user
10266  echo "$as_me:10266: checking if we can lock with hard links" >&5
10267echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10268  hard_links=yes
10269  $rm conftest*
10270  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10271  touch conftest.a
10272  ln conftest.a conftest.b 2>&5 || hard_links=no
10273  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10274  echo "$as_me:10274: result: $hard_links" >&5
10275echo "${ECHO_T}$hard_links" >&6
10276  if test "$hard_links" = no; then
10277    { echo "$as_me:10277: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10278echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10279    need_locks=warn
10280  fi
10281else
10282  need_locks=no
10283fi
10284
10285echo "$as_me:10285: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10286echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10287
10288  runpath_var=
10289  allow_undefined_flag_GCJ=
10290
10291  archive_cmds_GCJ=
10292  archive_cmds_need_lc_GCJ=
10293  archive_expsym_cmds_GCJ=
10294  old_archive_From_new_cmds_GCJ=
10295  old_archive_from_expsyms_cmds_GCJ=
10296  export_dynamic_flag_spec_GCJ=
10297  whole_archive_flag_spec_GCJ=
10298  thread_safe_flag_spec_GCJ=
10299  hardcode_libdir_flag_spec_GCJ=
10300  hardcode_libdir_separator_GCJ=
10301  hardcode_direct_GCJ=no
10302  hardcode_minus_L_GCJ=no
10303  hardcode_shlibpath_var_GCJ=unsupported
10304  link_all_deplibs_GCJ=unknown
10305  always_export_symbols_GCJ=no
10306  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
10307  # include_expsyms should be a list of space-separated symbols to be *always*
10308  # included in the symbol list
10309  include_expsyms_GCJ=
10310  # exclude_expsyms can be an egrep regular expression of symbols to exclude
10311  # it will be wrapped by ` (' and `)$', so one must not match beginning or
10312  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10313  # as well as any symbol that contains `d'.
10314  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
10315  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10316  # platforms (ab)use it in PIC code, but their linkers get confused if
10317  # the symbol is explicitly referenced.  Since portable code cannot
10318  # rely on this symbol name, it's probably fine to never include it in
10319  # preloaded symbol tables.
10320  extract_expsyms_cmds=
10321
10322  case $host_os in
10323  cygwin* | mingw* | pw32*)
10324    # FIXME: the MSVC++ port hasn't been tested in a loooong time
10325    # When not using gcc, we currently assume that we are using
10326    # Microsoft Visual C++.
10327    if test "$GCC" != yes; then
10328      with_gnu_ld=no
10329    fi
10330    ;;
10331  openbsd*)
10332    with_gnu_ld=no
10333    ;;
10334  esac
10335
10336  ld_shlibs_GCJ=yes
10337  if test "$with_gnu_ld" = yes; then
10338    # If archive_cmds runs LD, not CC, wlarc should be empty
10339    wlarc='${wl}'
10340
10341    # See if GNU ld supports shared libraries.
10342    case $host_os in
10343    aix3* | aix4* | aix5*)
10344      # On AIX/PPC, the GNU linker is very broken
10345      if test "$host_cpu" != ia64; then
10346        ld_shlibs_GCJ=no
10347        cat <<EOF 1>&2
10348
10349*** Warning: the GNU linker, at least up to release 2.9.1, is reported
10350*** to be unable to reliably create shared libraries on AIX.
10351*** Therefore, libtool is disabling shared libraries support.  If you
10352*** really care for shared libraries, you may want to modify your PATH
10353*** so that a non-GNU linker is found, and then restart.
10354
10355EOF
10356      fi
10357      ;;
10358
10359    amigaos*)
10360      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)'
10361      hardcode_libdir_flag_spec_GCJ='-L$libdir'
10362      hardcode_minus_L_GCJ=yes
10363
10364      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
10365      # that the semantics of dynamic libraries on AmigaOS, at least up
10366      # to version 4, is to share data among multiple programs linked
10367      # with the same dynamic library.  Since this doesn't match the
10368      # behavior of shared libraries on other platforms, we can't use
10369      # them.
10370      ld_shlibs_GCJ=no
10371      ;;
10372
10373    beos*)
10374      if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
10375        allow_undefined_flag_GCJ=unsupported
10376        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10377        # support --undefined.  This deserves some investigation.  FIXME
10378        archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10379      else
10380        ld_shlibs_GCJ=no
10381      fi
10382      ;;
10383
10384    cygwin* | mingw* | pw32*)
10385      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, as there is
10386      # no search path for DLLs.
10387      hardcode_libdir_flag_spec_GCJ='-L$libdir'
10388      allow_undefined_flag_GCJ=unsupported
10389      always_export_symbols_GCJ=yes
10390
10391      extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
10392        sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
10393        test -f $output_objdir/impgen.exe || (cd $output_objdir && \
10394        if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
10395        else $CC -o impgen impgen.c ; fi)~
10396        $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
10397
10398      old_archive_from_expsyms_cmds_GCJ='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
10399
10400      # cygwin and mingw dlls have different entry points and sets of symbols
10401      # to exclude.
10402      # FIXME: what about values for MSVC?
10403      dll_entry=__cygwin_dll_entry@12
10404      dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
10405      case $host_os in
10406      mingw*)
10407        # mingw values
10408        dll_entry=_DllMainCRTStartup@12
10409        dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
10410        ;;
10411      esac
10412
10413      # mingw and cygwin differ, and it's simplest to just exclude the union
10414      # of the two symbol sets.
10415      dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
10416
10417      # recent cygwin and mingw systems supply a stub DllMain which the user
10418      # can override, but on older systems we have to supply one (in ltdll.c)
10419      if test "x$lt_cv_need_dllmain" = "xyes"; then
10420        ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
10421        ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
10422  	test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
10423      else
10424        ltdll_obj=
10425        ltdll_cmds=
10426      fi
10427
10428      # Extract the symbol export list from an `--export-all' def file,
10429      # then regenerate the def file from the symbol export list, so that
10430      # the compiled dll only exports the symbol export list.
10431      # Be careful not to strip the DATA tag left by newer dlltools.
10432      export_symbols_cmds_GCJ="$ltdll_cmds"'
10433        $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
10434        sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
10435
10436      # If the export-symbols file already is a .def file (1st line
10437      # is EXPORTS), use it as is.
10438      # If DATA tags from a recent dlltool are present, honour them!
10439      archive_expsym_cmds_GCJ='if test "x`head -1 $export_symbols`" = xEXPORTS; then
10440          cp $export_symbols $output_objdir/$soname-def;
10441        else
10442          echo EXPORTS > $output_objdir/$soname-def;
10443          _lt_hint=1;
10444          cat $export_symbols | while read symbol; do
10445           set dummy \$symbol;
10446           case \$# in
10447             2) echo "   \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
10448             *) echo "   \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
10449           esac;
10450           _lt_hint=`expr 1 + \$_lt_hint`;
10451          done;
10452        fi~
10453        '"$ltdll_cmds"'
10454        $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
10455        $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
10456        $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
10457        $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
10458        $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
10459      ;;
10460
10461    darwin* | rhapsody*)
10462      allow_undefined_flag_GCJ='-undefined suppress'
10463      # FIXME: Relying on posixy $() will cause problems for
10464      #        cross-compilation, but unfortunately the echo tests do not
10465      #        yet detect zsh echo's removal of \ escapes.
10466      archive_cmds_GCJ='$CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linkopts -install_name $rpath/$soname $(test -n "$verstring" -a x$verstring != x0.0 && echo $verstring)'
10467      # We need to add '_' to the symbols in $export_symbols first
10468      #_LT_AC_TAGVAR(archive_expsym_cmds, GCJ)="$_LT_AC_TAGVAR(archive_cmds, GCJ)"' && strip -s $export_symbols'
10469      hardcode_direct_GCJ=yes
10470      hardcode_shlibpath_var_GCJ=no
10471      whole_archive_flag_spec_GCJ='-all_load $convenience'
10472      ;;
10473
10474    netbsd*)
10475      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10476        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10477        wlarc=
10478      else
10479        archive_cmds_GCJ='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10480        archive_expsym_cmds_GCJ='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10481      fi
10482      ;;
10483
10484    solaris* | sysv5*)
10485      if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
10486        ld_shlibs_GCJ=no
10487        cat <<EOF 1>&2
10488
10489*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10490*** create shared libraries on Solaris systems.  Therefore, libtool
10491*** is disabling shared libraries support.  We urge you to upgrade GNU
10492*** binutils to release 2.9.1 or newer.  Another option is to modify
10493*** your PATH or compiler configuration so that the native linker is
10494*** used, and then restart.
10495
10496EOF
10497      elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
10498        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10499        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10500      else
10501        ld_shlibs_GCJ=no
10502      fi
10503      ;;
10504
10505    sunos4*)
10506      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10507      wlarc=
10508      hardcode_direct_GCJ=yes
10509      hardcode_shlibpath_var_GCJ=no
10510      ;;
10511
10512    *)
10513      if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
10514        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10515        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10516      else
10517        ld_shlibs_GCJ=no
10518      fi
10519      ;;
10520    esac
10521
10522    if test "$ld_shlibs_GCJ" = yes; then
10523      runpath_var=LD_RUN_PATH
10524      hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
10525      export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
10526      case $host_os in
10527      cygwin* | mingw* | pw32*)
10528        # dlltool doesn't understand --whole-archive et. al.
10529        whole_archive_flag_spec_GCJ=
10530        ;;
10531      *)
10532        # ancient GNU ld didn't support --whole-archive et. al.
10533        if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
10534  	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10535        else
10536  	whole_archive_flag_spec_GCJ=
10537        fi
10538        ;;
10539      esac
10540    fi
10541  else
10542    # PORTME fill in a description of your system's linker (not GNU ld)
10543    case $host_os in
10544    aix3*)
10545      allow_undefined_flag_GCJ=unsupported
10546      always_export_symbols_GCJ=yes
10547      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'
10548      # Note: this linker hardcodes the directories in LIBPATH if there
10549      # are no directories specified by -L.
10550      hardcode_minus_L_GCJ=yes
10551      if test "$GCC" = yes && test -z "$link_static_flag"; then
10552        # Neither direct hardcoding nor static linking is supported with a
10553        # broken collect2.
10554        hardcode_direct_GCJ=unsupported
10555      fi
10556      ;;
10557
10558    aix4* | aix5*)
10559      if test "$host_cpu" = ia64; then
10560        # On IA64, the linker does run time linking by default, so we don't
10561        # have to do anything special.
10562        aix_use_runtimelinking=no
10563        exp_sym_flag='-Bexport'
10564        no_entry_flag=""
10565      else
10566        aix_use_runtimelinking=no
10567
10568        # Test if we are trying to use run time linking or normal
10569        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10570        # need to do runtime linking.
10571        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10572          for ld_flag in $LDFLAGS; do
10573  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10574  	    aix_use_runtimelinking=yes
10575  	    break
10576  	  fi
10577          done
10578        esac
10579
10580        exp_sym_flag='-bexport'
10581        no_entry_flag='-bnoentry'
10582      fi
10583
10584      # When large executables or shared objects are built, AIX ld can
10585      # have problems creating the table of contents.  If linking a library
10586      # or program results in "error TOC overflow" add -mminimal-toc to
10587      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10588      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10589
10590      archive_cmds_GCJ=''
10591      hardcode_direct_GCJ=yes
10592      hardcode_libdir_separator_GCJ=':'
10593      link_all_deplibs_GCJ=yes
10594
10595      if test "$GCC" = yes; then
10596        case $host_os in aix4.012|aix4.012.*)
10597        # We only want to do this on AIX 4.2 and lower, the check
10598        # below for broken collect2 doesn't work under 4.3+
10599          collect2name=`${CC} -print-prog-name=collect2`
10600          if test -f "$collect2name" && \
10601  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
10602          then
10603  	  # We have reworked collect2
10604  	  hardcode_direct_GCJ=yes
10605          else
10606  	  # We have old collect2
10607  	  hardcode_direct_GCJ=unsupported
10608  	  # It fails to find uninstalled libraries when the uninstalled
10609  	  # path is not listed in the libpath.  Setting hardcode_minus_L
10610  	  # to unsupported forces relinking
10611  	  hardcode_minus_L_GCJ=yes
10612  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
10613  	  hardcode_libdir_separator_GCJ=
10614          fi
10615        esac
10616        shared_flag='-shared'
10617      else
10618        # not using gcc
10619        if test "$host_cpu" = ia64; then
10620  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10621  	# chokes on -Wl,-G. The following line is correct:
10622          shared_flag='-G'
10623        else
10624  	if test "$aix_use_runtimelinking" = yes; then
10625            shared_flag='${wl}-G'
10626          else
10627            shared_flag='${wl}-bM:SRE'
10628  	fi
10629        fi
10630      fi
10631
10632      # It seems that -bexpall does not export symbols beginning with
10633      # underscore (_), so it is better to generate a list of symbols to export.
10634      always_export_symbols_GCJ=yes
10635      if test "$aix_use_runtimelinking" = yes; then
10636        # Warning - without using the other runtime loading flags (-brtl),
10637        # -berok will link without error, but may produce a broken library.
10638        allow_undefined_flag_GCJ='-berok'
10639       # Determine the default libpath from the value encoded in an empty executable.
10640       cat >conftest.$ac_ext <<_ACEOF
10641#line 10641 "configure"
10642#include "confdefs.h"
10643
10644int
10645main ()
10646{
10647
10648  ;
10649  return 0;
10650}
10651_ACEOF
10652rm -f conftest.$ac_objext conftest$ac_exeext
10653if { (eval echo "$as_me:10653: \"$ac_link\"") >&5
10654  (eval $ac_link) 2>&5
10655  ac_status=$?
10656  echo "$as_me:10656: \$? = $ac_status" >&5
10657  (exit $ac_status); } &&
10658         { ac_try='test -s conftest$ac_exeext'
10659  { (eval echo "$as_me:10659: \"$ac_try\"") >&5
10660  (eval $ac_try) 2>&5
10661  ac_status=$?
10662  echo "$as_me:10662: \$? = $ac_status" >&5
10663  (exit $ac_status); }; }; then
10664
10665aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | ${AWK-awk} '/Import File Strings/ { getline; getline; if ($2 ~ /^\//) print $2 }'`
10666# Check for a 64-bit object if we didn't find anything.
10667if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | ${AWK-awk} '/Import File Strings/ { getline; getline; if ($2 ~ /^\//) print $2 }'`; fi
10668else
10669  echo "$as_me: failed program was:" >&5
10670cat conftest.$ac_ext >&5
10671fi
10672rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10673if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10674
10675       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
10676        archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10677       else
10678        if test "$host_cpu" = ia64; then
10679          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
10680          allow_undefined_flag_GCJ="-z nodefs"
10681          archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
10682        else
10683         # Determine the default libpath from the value encoded in an empty executable.
10684         cat >conftest.$ac_ext <<_ACEOF
10685#line 10685 "configure"
10686#include "confdefs.h"
10687
10688int
10689main ()
10690{
10691
10692  ;
10693  return 0;
10694}
10695_ACEOF
10696rm -f conftest.$ac_objext conftest$ac_exeext
10697if { (eval echo "$as_me:10697: \"$ac_link\"") >&5
10698  (eval $ac_link) 2>&5
10699  ac_status=$?
10700  echo "$as_me:10700: \$? = $ac_status" >&5
10701  (exit $ac_status); } &&
10702         { ac_try='test -s conftest$ac_exeext'
10703  { (eval echo "$as_me:10703: \"$ac_try\"") >&5
10704  (eval $ac_try) 2>&5
10705  ac_status=$?
10706  echo "$as_me:10706: \$? = $ac_status" >&5
10707  (exit $ac_status); }; }; then
10708
10709aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | ${AWK-awk} '/Import File Strings/ { getline; getline; if ($2 ~ /^\//) print $2 }'`
10710# Check for a 64-bit object if we didn't find anything.
10711if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | ${AWK-awk} '/Import File Strings/ { getline; getline; if ($2 ~ /^\//) print $2 }'`; fi
10712else
10713  echo "$as_me: failed program was:" >&5
10714cat conftest.$ac_ext >&5
10715fi
10716rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10717if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10718
10719         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
10720          # Warning - without using the other run time loading flags,
10721          # -berok will link without error, but may produce a broken library.
10722          no_undefined_flag_GCJ=' ${wl}-bernotok'
10723          allow_undefined_flag_GCJ=' ${wl}-berok'
10724          # -bexpall does not export symbols beginning with underscore (_)
10725          always_export_symbols_GCJ=yes
10726          # Exported symbols can be pulled into shared objects from archives
10727          whole_archive_flag_spec_GCJ=' '
10728          archive_cmds_need_lc_GCJ=yes
10729          # This is similar to how AIX traditionally builds it's shared libraries.
10730          archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10731        fi
10732      fi
10733      ;;
10734
10735    amigaos*)
10736      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)'
10737      hardcode_libdir_flag_spec_GCJ='-L$libdir'
10738      hardcode_minus_L_GCJ=yes
10739      # see comment about different semantics on the GNU ld section
10740      ld_shlibs_GCJ=no
10741      ;;
10742
10743    bsdi4*)
10744      export_dynamic_flag_spec_GCJ=-rdynamic
10745      ;;
10746
10747    cygwin* | mingw* | pw32*)
10748      # When not using gcc, we currently assume that we are using
10749      # Microsoft Visual C++.
10750      # hardcode_libdir_flag_spec is actually meaningless, as there is
10751      # no search path for DLLs.
10752      hardcode_libdir_flag_spec_GCJ=' '
10753      allow_undefined_flag_GCJ=unsupported
10754      # Tell ltmain to make .lib files, not .a files.
10755      libext=lib
10756      # FIXME: Setting linknames here is a bad hack.
10757      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10758      # The linker will automatically build a .lib file if we build a DLL.
10759      old_archive_From_new_cmds_GCJ='true'
10760      # FIXME: Should let the user specify the lib program.
10761      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
10762      fix_srcfile_path='`cygpath -w "$srcfile"`'
10763      ;;
10764
10765    dgux*)
10766      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10767      hardcode_libdir_flag_spec_GCJ='-L$libdir'
10768      hardcode_shlibpath_var_GCJ=no
10769      ;;
10770
10771    freebsd1*)
10772      ld_shlibs_GCJ=no
10773      ;;
10774
10775    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10776    # support.  Future versions do this automatically, but an explicit c++rt0.o
10777    # does not break anything, and helps significantly (at the cost of a little
10778    # extra space).
10779    freebsd2.2*)
10780      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10781      hardcode_libdir_flag_spec_GCJ='-R$libdir'
10782      hardcode_direct_GCJ=yes
10783      hardcode_shlibpath_var_GCJ=no
10784      ;;
10785
10786    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10787    freebsd2*)
10788      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10789      hardcode_direct_GCJ=yes
10790      hardcode_minus_L_GCJ=yes
10791      hardcode_shlibpath_var_GCJ=no
10792      ;;
10793
10794    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10795    freebsd*)
10796      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10797      hardcode_libdir_flag_spec_GCJ='-R$libdir'
10798      hardcode_direct_GCJ=yes
10799      hardcode_shlibpath_var_GCJ=no
10800      ;;
10801
10802    hpux9* | hpux10* | hpux11*)
10803      if test $GXX = yes; then
10804        case $host_os in
10805          hpux9*)
10806            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'
10807            ;;
10808        *)
10809            if test "$host_cpu" = ia64; then
10810              archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10811            else
10812              archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10813            fi
10814            ;;
10815        esac
10816      else
10817        case $host_os in
10818          hpux9*)
10819            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'
10820            ;;
10821          *)
10822            if test "$host_cpu" = ia64; then
10823              archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
10824            else
10825              archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10826            fi
10827            ;;
10828        esac
10829      fi
10830      if test "$host_cpu" = ia64; then
10831        hardcode_libdir_flag_spec_GCJ='-L$libdir'
10832        hardcode_direct_GCJ=no
10833        hardcode_shlibpath_var_GCJ=no
10834      else
10835        hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
10836        hardcode_libdir_separator_GCJ=:
10837        hardcode_direct_GCJ=yes
10838      fi
10839      # hardcode_minus_L: Not really in the search PATH,
10840      # but as the default location of the library.
10841      hardcode_minus_L_GCJ=yes
10842      export_dynamic_flag_spec_GCJ='${wl}-E'
10843      ;;
10844
10845    irix5* | irix6*)
10846      if test "$GCC" = yes; then
10847        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'
10848      else
10849        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'
10850      fi
10851      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
10852      hardcode_libdir_separator_GCJ=:
10853      link_all_deplibs_GCJ=yes
10854      ;;
10855
10856    netbsd*)
10857      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10858        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10859      else
10860        archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10861      fi
10862      hardcode_libdir_flag_spec_GCJ='-R$libdir'
10863      hardcode_direct_GCJ=yes
10864      hardcode_shlibpath_var_GCJ=no
10865      ;;
10866
10867    newsos6)
10868      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
10869      hardcode_direct_GCJ=yes
10870      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
10871      hardcode_libdir_separator_GCJ=:
10872      hardcode_shlibpath_var_GCJ=no
10873      ;;
10874
10875    openbsd*)
10876      hardcode_direct_GCJ=yes
10877      hardcode_shlibpath_var_GCJ=no
10878
10879      case "$host_os" in
10880        openbsd01.* | openbsd2.0-7 | openbsd2.0-7.*)
10881          archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10882          hardcode_libdir_flag_spec_GCJ='-R$libdir'
10883        ;;
10884        *)
10885          archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
10886          hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
10887          if  "`echo __ELF__ | $CC -E - | grep __ELF__`" = "" -o "$host_os-$host_cpu" = "openbsd2.8-powerpc" ; then
10888           export_dynamic_flag_spec_GCJ='${wl}-E'
10889          fi
10890        ;;
10891      esac
10892      ;;
10893
10894    os2*)
10895      hardcode_libdir_flag_spec_GCJ='-L$libdir'
10896      hardcode_minus_L_GCJ=yes
10897      allow_undefined_flag_GCJ=unsupported
10898      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'
10899      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10900      ;;
10901
10902    osf3*)
10903      if test "$GCC" = yes; then
10904        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
10905        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'
10906      else
10907        allow_undefined_flag_GCJ=' -expect_unresolved \*'
10908        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'
10909      fi
10910      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
10911      hardcode_libdir_separator_GCJ=:
10912      ;;
10913
10914    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10915      if test "$GCC" = yes; then
10916        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
10917        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'
10918        hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
10919      else
10920        allow_undefined_flag_GCJ=' -expect_unresolved \*'
10921        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'
10922        archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
10923        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
10924
10925        # Both c and cxx compiler support -rpath directly
10926        hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
10927      fi
10928      hardcode_libdir_separator_GCJ=:
10929      ;;
10930
10931    sco3.2v5*)
10932      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10933      hardcode_shlibpath_var_GCJ=no
10934      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
10935      runpath_var=LD_RUN_PATH
10936      hardcode_runpath_var=yes
10937      ;;
10938
10939    solaris*)
10940      no_undefined_flag_GCJ=' -z defs'
10941      if test "$GXX" = yes; then
10942        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10943        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10944          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
10945      else
10946        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10947        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10948  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
10949      fi
10950      hardcode_libdir_flag_spec_GCJ='-R$libdir'
10951      hardcode_shlibpath_var_GCJ=no
10952      case $host_os in
10953      solaris2.[0-5] | solaris2.[0-5].*) ;;
10954      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
10955        whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
10956      esac
10957      link_all_deplibs_GCJ=yes
10958      ;;
10959
10960    sunos4*)
10961      if test "x$host_vendor" = xsequent; then
10962        # Use $CC to link under sequent, because it throws in some extra .o
10963        # files that make .init and .fini sections work.
10964        archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10965      else
10966        archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10967      fi
10968      hardcode_libdir_flag_spec_GCJ='-L$libdir'
10969      hardcode_direct_GCJ=yes
10970      hardcode_minus_L_GCJ=yes
10971      hardcode_shlibpath_var_GCJ=no
10972      ;;
10973
10974    sysv4)
10975      if test "x$host_vendor" = xsni; then
10976        archive_cmds_GCJ='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linkopts'
10977        hardcode_direct_GCJ=yes # is this really true???
10978      else
10979        archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10980        hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
10981      fi
10982      runpath_var='LD_RUN_PATH'
10983      hardcode_shlibpath_var_GCJ=no
10984      ;;
10985
10986    sysv4.3*)
10987      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10988      hardcode_shlibpath_var_GCJ=no
10989      export_dynamic_flag_spec_GCJ='-Bexport'
10990      ;;
10991
10992    sysv4*MP*)
10993      if test -d /usr/nec; then
10994        archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10995        hardcode_shlibpath_var_GCJ=no
10996        runpath_var=LD_RUN_PATH
10997        hardcode_runpath_var=yes
10998        ld_shlibs_GCJ=yes
10999      fi
11000      ;;
11001
11002    sysv4.2uw2*)
11003      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11004      hardcode_direct_GCJ=yes
11005      hardcode_minus_L_GCJ=no
11006      hardcode_shlibpath_var_GCJ=no
11007      hardcode_runpath_var=yes
11008      runpath_var=LD_RUN_PATH
11009      ;;
11010
11011   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
11012      no_undefined_flag_GCJ='${wl}-z ${wl}text'
11013      if test "$GCC" = yes; then
11014        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11015      else
11016        archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11017      fi
11018      runpath_var='LD_RUN_PATH'
11019      hardcode_shlibpath_var_GCJ=no
11020      ;;
11021
11022    sysv5*)
11023      no_undefined_flag_GCJ=' -z text'
11024      # $CC -shared without GNU ld will not create a library from C++
11025      # object files and a static libstdc++, better avoid it by now
11026      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11027      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11028  		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
11029      hardcode_libdir_flag_spec_GCJ=
11030      hardcode_shlibpath_var_GCJ=no
11031      runpath_var='LD_RUN_PATH'
11032      ;;
11033
11034    uts4*)
11035      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11036      hardcode_libdir_flag_spec_GCJ='-L$libdir'
11037      hardcode_shlibpath_var_GCJ=no
11038      ;;
11039
11040    *)
11041      ld_shlibs_GCJ=no
11042      ;;
11043    esac
11044  fi
11045
11046echo "$as_me:11046: result: $ld_shlibs_GCJ" >&5
11047echo "${ECHO_T}$ld_shlibs_GCJ" >&6
11048test "$ld_shlibs_GCJ" = no && can_build_shared=no
11049
11050variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11051if test "$GCC" = yes; then
11052  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11053fi
11054
11055#
11056# Do we need to explicitly link libc?
11057#
11058archive_cmds_need_lc_GCJ=yes
11059if test "$enable_shared" = yes && test "$GCC" = yes; then
11060  case $archive_cmds_GCJ in
11061  *'~'*)
11062    # FIXME: we may have to deal with multi-command sequences.
11063    ;;
11064  '$CC '*)
11065    # Test whether the compiler implicitly links with -lc since on some
11066    # systems, -lgcc has to come before -lc. If gcc already passes -lc
11067    # to ld, don't add -lc before -lgcc.
11068    echo "$as_me:11068: checking whether -lc should be explicitly linked in" >&5
11069echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11070    $rm conftest*
11071    echo 'static int dummy;' > conftest.$ac_ext
11072
11073    if { (eval echo "$as_me:11073: \"$ac_compile\"") >&5
11074  (eval $ac_compile) 2>&5
11075  ac_status=$?
11076  echo "$as_me:11076: \$? = $ac_status" >&5
11077  (exit $ac_status); } 2>conftest.err; then
11078      soname=conftest
11079      lib=conftest
11080      libobjs=conftest.$ac_objext
11081      deplibs=
11082      wl=$lt_prog_compiler_wl_GCJ
11083      compiler_flags=-v
11084      linker_flags=-v
11085      verstring=
11086      output_objdir=.
11087      libname=conftest
11088      lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
11089      allow_undefined_flag_GCJ=
11090      if { (eval echo "$as_me:11090: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11091  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11092  ac_status=$?
11093  echo "$as_me:11093: \$? = $ac_status" >&5
11094  (exit $ac_status); }
11095      then
11096	archive_cmds_need_lc_GCJ=no
11097      else
11098	archive_cmds_need_lc_GCJ=yes
11099      fi
11100      allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
11101    else
11102      cat conftest.err 1>&5
11103    fi
11104    $rm conftest*
11105    echo "$as_me:11105: result: $archive_cmds_need_lc_GCJ" >&5
11106echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
11107    ;;
11108  esac
11109fi
11110
11111echo "$as_me:11111: checking how to hardcode library paths into programs" >&5
11112echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11113hardcode_action_GCJ=
11114if test -n "$hardcode_libdir_flag_spec_GCJ" || \
11115   test -n "$runpath_var GCJ"; then
11116
11117  # We can hardcode non-existant directories.
11118  if test "$hardcode_direct_GCJ" != no &&
11119     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11120     # have to relink, otherwise we might link with an installed library
11121     # when we should be linking with a yet-to-be-installed one
11122     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
11123     test "$hardcode_minus_L_GCJ" != no; then
11124    # Linking always hardcodes the temporary library directory.
11125    hardcode_action_GCJ=relink
11126  else
11127    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11128    hardcode_action_GCJ=immediate
11129  fi
11130else
11131  # We cannot hardcode anything, or else we can only hardcode existing
11132  # directories.
11133  hardcode_action_GCJ=unsupported
11134fi
11135echo "$as_me:11135: result: $hardcode_action_GCJ" >&5
11136echo "${ECHO_T}$hardcode_action_GCJ" >&6
11137
11138if test "$hardcode_action_GCJ" = relink; then
11139  # Fast installation is not supported
11140  enable_fast_install=no
11141elif test "$shlibpath_overrides_runpath" = yes ||
11142     test "$enable_shared" = no; then
11143  # Fast installation is not necessary
11144  enable_fast_install=needless
11145fi
11146
11147striplib=
11148old_striplib=
11149echo "$as_me:11149: checking whether stripping libraries is possible" >&5
11150echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11151if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11152  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11153  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11154  echo "$as_me:11154: result: yes" >&5
11155echo "${ECHO_T}yes" >&6
11156else
11157  echo "$as_me:11157: result: no" >&5
11158echo "${ECHO_T}no" >&6
11159fi
11160
11161echo "$as_me:11161: checking dynamic linker characteristics" >&5
11162echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11163library_names_spec=
11164libname_spec='lib$name'
11165soname_spec=
11166postinstall_cmds=
11167postuninstall_cmds=
11168finish_cmds=
11169finish_eval=
11170shlibpath_var=
11171shlibpath_overrides_runpath=unknown
11172version_type=none
11173dynamic_linker="$host_os ld.so"
11174sys_lib_dlsearch_path_spec="/lib /usr/lib"
11175sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11176need_lib_prefix=unknown
11177hardcode_into_libs=no
11178
11179# when you set need_version to no, make sure it does not cause -set_version
11180# flags to be left without arguments
11181need_version=unknown
11182
11183case $host_os in
11184aix3*)
11185  version_type=linux
11186  library_names_spec='${libname}${release}.so$versuffix $libname.a'
11187  shlibpath_var=LIBPATH
11188
11189  # AIX 3 has no versioning support, so we append a major version to the name.
11190  soname_spec='${libname}${release}.so$major'
11191  ;;
11192
11193aix4* | aix5*)
11194  version_type=linux
11195  if test "$host_cpu" = ia64; then
11196    # AIX 5 supports IA64
11197    library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
11198    shlibpath_var=LD_LIBRARY_PATH
11199  else
11200    # With GCC up to 2.95.x, collect2 would create an import file
11201    # for dependence libraries.  The import file would start with
11202    # the line `#! .'.  This would cause the generated library to
11203    # depend on `.', always an invalid library.  This was fixed in
11204    # development snapshots of GCC prior to 3.0.
11205    case $host_os in
11206       aix4 | aix4.[01] | aix4.[01].*)
11207      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11208           echo ' yes '
11209           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11210        :
11211      else
11212        can_build_shared=no
11213      fi
11214      ;;
11215    esac
11216    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11217    # soname into executable. Probably we can add versioning support to
11218    # collect2, so additional links can be useful in future.
11219    if test "$aix_use_runtimelinking" = yes; then
11220      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11221      # instead of lib<name>.a to let people know that these are not
11222      # typical AIX shared libraries.
11223      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
11224    else
11225      # We preserve .a as extension for shared libraries through AIX4.2
11226      # and later when we are not doing run time linking.
11227      library_names_spec='${libname}${release}.a $libname.a'
11228      soname_spec='${libname}${release}.so$major'
11229    fi
11230    shlibpath_var=LIBPATH
11231    deplibs_check_method=pass_all
11232  fi
11233  ;;
11234
11235amigaos*)
11236  library_names_spec='$libname.ixlibrary $libname.a'
11237  # Create ${libname}_ixlibrary.a entries in /sys/libs.
11238  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'
11239  ;;
11240
11241beos*)
11242  library_names_spec='${libname}.so'
11243  dynamic_linker="$host_os ld.so"
11244  shlibpath_var=LIBRARY_PATH
11245  ;;
11246
11247bsdi4*)
11248  version_type=linux
11249  need_version=no
11250  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
11251  soname_spec='${libname}${release}.so$major'
11252  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11253  shlibpath_var=LD_LIBRARY_PATH
11254  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11255  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11256  # the default ld.so.conf also contains /usr/contrib/lib and
11257  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11258  # libtool to hard-code these into programs
11259  ;;
11260
11261cygwin* | mingw* | pw32*)
11262  version_type=windows
11263  need_version=no
11264  need_lib_prefix=no
11265  case $GCC,$host_os in
11266  yes,cygwin*)
11267    library_names_spec='$libname.dll.a'
11268    sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
11269    soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
11270    postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
11271      dldir=$destdir/`dirname \$dlpath`~
11272      test -d \$dldir || mkdir -p \$dldir~
11273      $install_prog .libs/$dlname \$dldir/$dlname'
11274    postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
11275      dlpath=$dir/\$dldll~
11276       $rm \$dlpath'
11277    ;;
11278  yes,mingw*)
11279    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
11280    sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/$PATH_SEPARATOR/ /g"`
11281    ;;
11282  yes,pw32*)
11283    library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
11284    ;;
11285  *)
11286    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
11287    ;;
11288  esac
11289  dynamic_linker='Win32 ld.exe'
11290  # FIXME: first we should search . and the directory the executable is in
11291  shlibpath_var=PATH
11292  ;;
11293
11294darwin* | rhapsody*)
11295  dynamic_linker="$host_os dyld"
11296  version_type=darwin
11297  need_lib_prefix=no
11298  need_version=no
11299  # FIXME: Relying on posixy $() will cause problems for
11300  #        cross-compilation, but unfortunately the echo tests do not
11301  #        yet detect zsh echo's removal of \ escapes.
11302  library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
11303  soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
11304  shlibpath_overrides_runpath=yes
11305  shlibpath_var=DYLD_LIBRARY_PATH
11306  ;;
11307
11308dgux*)
11309  version_type=linux
11310  need_lib_prefix=no
11311  need_version=no
11312  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
11313  soname_spec='${libname}${release}.so$major'
11314  shlibpath_var=LD_LIBRARY_PATH
11315  ;;
11316
11317freebsd1*)
11318  dynamic_linker=no
11319  ;;
11320
11321freebsd*)
11322  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11323  version_type=freebsd-$objformat
11324  case $version_type in
11325    freebsd-elf*)
11326      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
11327      need_version=no
11328      need_lib_prefix=no
11329      ;;
11330    freebsd-*)
11331      library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
11332      need_version=yes
11333      ;;
11334  esac
11335  shlibpath_var=LD_LIBRARY_PATH
11336  case $host_os in
11337  freebsd2*)
11338    shlibpath_overrides_runpath=yes
11339    ;;
11340  freebsd3.01* | freebsdelf3.01*)
11341    shlibpath_overrides_runpath=yes
11342    hardcode_into_libs=yes
11343    ;;
11344  *) # from 3.2 on
11345    shlibpath_overrides_runpath=no
11346    hardcode_into_libs=yes
11347    ;;
11348  esac
11349  ;;
11350
11351gnu*)
11352  version_type=linux
11353  need_lib_prefix=no
11354  need_version=no
11355  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
11356  soname_spec='${libname}${release}.so$major'
11357  shlibpath_var=LD_LIBRARY_PATH
11358  hardcode_into_libs=yes
11359  ;;
11360
11361hpux9* | hpux10* | hpux11*)
11362  # Give a soname corresponding to the major version so that dld.sl refuses to
11363  # link against other versions.
11364  version_type=sunos
11365  need_lib_prefix=no
11366  need_version=no
11367  if test "$host_cpu" = ia64; then
11368    hardcode_into_libs=yes
11369    dynamic_linker="$host_os dld.so"
11370    shlibpath_var=LD_LIBRARY_PATH
11371    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11372    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
11373    soname_spec='${libname}${release}.so$major'
11374    if test "X$HPUX_IA64_MODE" = X32; then
11375      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11376    else
11377      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11378    fi
11379    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11380  else
11381    dynamic_linker="$host_os dld.sl"
11382    shlibpath_var=SHLIB_PATH
11383    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11384    library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
11385    soname_spec='${libname}${release}.sl$major'
11386  fi
11387  # HP-UX runs *really* slowly unless shared libraries are mode 555.
11388  postinstall_cmds='chmod 555 $lib'
11389  ;;
11390
11391irix5* | irix6*)
11392  version_type=irix
11393  need_lib_prefix=no
11394  need_version=no
11395  soname_spec='${libname}${release}.so$major'
11396  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
11397  case $host_os in
11398  irix5*)
11399    libsuff= shlibsuff=
11400    ;;
11401  *)
11402    case $LD in # libtool.m4 will add one of these switches to LD
11403    *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
11404    *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
11405    *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
11406    *) libsuff= shlibsuff= libmagic=never-match;;
11407    esac
11408    ;;
11409  esac
11410  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11411  shlibpath_overrides_runpath=no
11412  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11413  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11414  ;;
11415
11416# No shared lib support for Linux oldld, aout, or coff.
11417linux*oldld* | linux*aout* | linux*coff*)
11418  dynamic_linker=no
11419  ;;
11420
11421# This must be Linux ELF.
11422linux*)
11423  version_type=linux
11424  need_lib_prefix=no
11425  need_version=no
11426  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
11427  soname_spec='${libname}${release}.so$major'
11428  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11429  shlibpath_var=LD_LIBRARY_PATH
11430  shlibpath_overrides_runpath=no
11431  # This implies no fast_install, which is unacceptable.
11432  # Some rework will be needed to allow for fast_install
11433  # before this can be enabled.
11434  hardcode_into_libs=yes
11435
11436  # We used to test for /lib/ld.so.1 and disable shared libraries on
11437  # powerpc, because MkLinux only supported shared libraries with the
11438  # GNU dynamic linker.  Since this was broken with cross compilers,
11439  # most powerpc-linux boxes support dynamic linking these days and
11440  # people can always --disable-shared, the test was removed, and we
11441  # assume the GNU/Linux dynamic linker is in use.
11442  dynamic_linker='GNU/Linux ld.so'
11443  ;;
11444
11445netbsd*)
11446  version_type=sunos
11447  need_lib_prefix=no
11448  need_version=no
11449  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11450    library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
11451    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11452    dynamic_linker='NetBSD (a.out) ld.so'
11453  else
11454    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
11455    soname_spec='${libname}${release}.so$major'
11456    dynamic_linker='NetBSD ld.elf_so'
11457  fi
11458  shlibpath_var=LD_LIBRARY_PATH
11459  shlibpath_overrides_runpath=yes
11460  hardcode_into_libs=yes
11461  ;;
11462
11463newsos6)
11464  version_type=linux
11465  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
11466  shlibpath_var=LD_LIBRARY_PATH
11467  shlibpath_overrides_runpath=yes
11468  ;;
11469
11470nto-qnx)
11471  version_type=linux
11472  need_lib_prefix=no
11473  need_version=no
11474  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
11475  soname_spec='${libname}${release}.so$major'
11476  shlibpath_var=LD_LIBRARY_PATH
11477  shlibpath_overrides_runpath=yes
11478  ;;
11479
11480openbsd*)
11481  version_type=sunos
11482  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
11483  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11484  shlibpath_var=LD_LIBRARY_PATH
11485  file_magic_cmd=/usr/bin/file
11486  file_magic_test_file=`echo /usr/lib/libc.so.*`
11487  if  "`echo __ELF__ | $CC -E - | grep __ELF__`" = "" -o "$host_os-$host_cpu" = "openbsd2.8-powerpc" ; then
11488    deplibs_check_method='file_magic ELF 0-90-9*-bit LMSB shared object'
11489  else
11490    deplibs_check_method='file_magic OpenBSD.* shared library'
11491  fi
11492  ;;
11493
11494os2*)
11495  libname_spec='$name'
11496  need_lib_prefix=no
11497  library_names_spec='$libname.dll $libname.a'
11498  dynamic_linker='OS/2 ld.exe'
11499  shlibpath_var=LIBPATH
11500  ;;
11501
11502osf3* | osf4* | osf5*)
11503  version_type=osf
11504  need_version=no
11505  soname_spec='${libname}${release}.so'
11506  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
11507  shlibpath_var=LD_LIBRARY_PATH
11508  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11509  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11510  ;;
11511
11512sco3.2v5*)
11513  version_type=osf
11514  soname_spec='${libname}${release}.so$major'
11515  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
11516  shlibpath_var=LD_LIBRARY_PATH
11517  ;;
11518
11519solaris*)
11520  version_type=linux
11521  need_lib_prefix=no
11522  need_version=no
11523  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
11524  soname_spec='${libname}${release}.so$major'
11525  shlibpath_var=LD_LIBRARY_PATH
11526  shlibpath_overrides_runpath=yes
11527  hardcode_into_libs=yes
11528  # ldd complains unless libraries are executable
11529  postinstall_cmds='chmod +x $lib'
11530  ;;
11531
11532sunos4*)
11533  version_type=sunos
11534  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
11535  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11536  shlibpath_var=LD_LIBRARY_PATH
11537  shlibpath_overrides_runpath=yes
11538  if test "$with_gnu_ld" = yes; then
11539    need_lib_prefix=no
11540  fi
11541  need_version=yes
11542  ;;
11543
11544sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11545  version_type=linux
11546  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
11547  soname_spec='${libname}${release}.so$major'
11548  shlibpath_var=LD_LIBRARY_PATH
11549  case $host_vendor in
11550    sni)
11551      shlibpath_overrides_runpath=no
11552      ;;
11553    motorola)
11554      need_lib_prefix=no
11555      need_version=no
11556      shlibpath_overrides_runpath=no
11557      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11558      ;;
11559  esac
11560  ;;
11561
11562sysv4*MP*)
11563  if test -d /usr/nec ;then
11564    version_type=linux
11565    library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
11566    soname_spec='$libname.so.$major'
11567    shlibpath_var=LD_LIBRARY_PATH
11568  fi
11569  ;;
11570
11571uts4*)
11572  version_type=linux
11573  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
11574  soname_spec='${libname}${release}.so$major'
11575  shlibpath_var=LD_LIBRARY_PATH
11576  ;;
11577
11578*)
11579  dynamic_linker=no
11580  ;;
11581esac
11582echo "$as_me:11582: result: $dynamic_linker" >&5
11583echo "${ECHO_T}$dynamic_linker" >&6
11584test "$dynamic_linker" = no && can_build_shared=no
11585
11586if test "x$enable_dlopen" != xyes; then
11587  enable_dlopen=unknown
11588  enable_dlopen_self=unknown
11589  enable_dlopen_self_static=unknown
11590else
11591  lt_cv_dlopen=no
11592  lt_cv_dlopen_libs=
11593
11594  case $host_os in
11595  beos*)
11596    lt_cv_dlopen="load_add_on"
11597    lt_cv_dlopen_libs=
11598    lt_cv_dlopen_self=yes
11599    ;;
11600
11601  cygwin* | mingw* | pw32*)
11602    lt_cv_dlopen="LoadLibrary"
11603    lt_cv_dlopen_libs=
11604   ;;
11605
11606  *)
11607    echo "$as_me:11607: checking for shl_load" >&5
11608echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11609if test "${ac_cv_func_shl_load+set}" = set; then
11610  echo $ECHO_N "(cached) $ECHO_C" >&6
11611else
11612  cat >conftest.$ac_ext <<_ACEOF
11613#line 11613 "configure"
11614#include "confdefs.h"
11615/* System header to define __stub macros and hopefully few prototypes,
11616    which can conflict with char shl_load (); below.  */
11617#include <assert.h>
11618/* Override any gcc2 internal prototype to avoid an error.  */
11619#ifdef __cplusplus
11620extern "C"
11621#endif
11622/* We use char because int might match the return type of a gcc2
11623   builtin and then its argument prototype would still apply.  */
11624char shl_load ();
11625char (*f) ();
11626
11627int
11628main ()
11629{
11630/* The GNU C library defines this for functions which it implements
11631    to always fail with ENOSYS.  Some functions are actually named
11632    something starting with __ and the normal name is an alias.  */
11633#if defined (__stub_shl_load) || defined (__stub___shl_load)
11634choke me
11635#else
11636f = shl_load;
11637#endif
11638
11639  ;
11640  return 0;
11641}
11642_ACEOF
11643rm -f conftest.$ac_objext conftest$ac_exeext
11644if { (eval echo "$as_me:11644: \"$ac_link\"") >&5
11645  (eval $ac_link) 2>&5
11646  ac_status=$?
11647  echo "$as_me:11647: \$? = $ac_status" >&5
11648  (exit $ac_status); } &&
11649         { ac_try='test -s conftest$ac_exeext'
11650  { (eval echo "$as_me:11650: \"$ac_try\"") >&5
11651  (eval $ac_try) 2>&5
11652  ac_status=$?
11653  echo "$as_me:11653: \$? = $ac_status" >&5
11654  (exit $ac_status); }; }; then
11655  ac_cv_func_shl_load=yes
11656else
11657  echo "$as_me: failed program was:" >&5
11658cat conftest.$ac_ext >&5
11659ac_cv_func_shl_load=no
11660fi
11661rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11662fi
11663echo "$as_me:11663: result: $ac_cv_func_shl_load" >&5
11664echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11665if test $ac_cv_func_shl_load = yes; then
11666  lt_cv_dlopen="shl_load"
11667else
11668  echo "$as_me:11668: checking for shl_load in -ldld" >&5
11669echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11670if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11671  echo $ECHO_N "(cached) $ECHO_C" >&6
11672else
11673  ac_check_lib_save_LIBS=$LIBS
11674LIBS="-ldld  $LIBS"
11675cat >conftest.$ac_ext <<_ACEOF
11676#line 11676 "configure"
11677#include "confdefs.h"
11678
11679/* Override any gcc2 internal prototype to avoid an error.  */
11680#ifdef __cplusplus
11681extern "C"
11682#endif
11683/* We use char because int might match the return type of a gcc2
11684   builtin and then its argument prototype would still apply.  */
11685char shl_load ();
11686int
11687main ()
11688{
11689shl_load ();
11690  ;
11691  return 0;
11692}
11693_ACEOF
11694rm -f conftest.$ac_objext conftest$ac_exeext
11695if { (eval echo "$as_me:11695: \"$ac_link\"") >&5
11696  (eval $ac_link) 2>&5
11697  ac_status=$?
11698  echo "$as_me:11698: \$? = $ac_status" >&5
11699  (exit $ac_status); } &&
11700         { ac_try='test -s conftest$ac_exeext'
11701  { (eval echo "$as_me:11701: \"$ac_try\"") >&5
11702  (eval $ac_try) 2>&5
11703  ac_status=$?
11704  echo "$as_me:11704: \$? = $ac_status" >&5
11705  (exit $ac_status); }; }; then
11706  ac_cv_lib_dld_shl_load=yes
11707else
11708  echo "$as_me: failed program was:" >&5
11709cat conftest.$ac_ext >&5
11710ac_cv_lib_dld_shl_load=no
11711fi
11712rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11713LIBS=$ac_check_lib_save_LIBS
11714fi
11715echo "$as_me:11715: result: $ac_cv_lib_dld_shl_load" >&5
11716echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11717if test $ac_cv_lib_dld_shl_load = yes; then
11718  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11719else
11720  echo "$as_me:11720: checking for dlopen in -ldl" >&5
11721echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11722if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11723  echo $ECHO_N "(cached) $ECHO_C" >&6
11724else
11725  ac_check_lib_save_LIBS=$LIBS
11726LIBS="-ldl  $LIBS"
11727cat >conftest.$ac_ext <<_ACEOF
11728#line 11728 "configure"
11729#include "confdefs.h"
11730
11731/* Override any gcc2 internal prototype to avoid an error.  */
11732#ifdef __cplusplus
11733extern "C"
11734#endif
11735/* We use char because int might match the return type of a gcc2
11736   builtin and then its argument prototype would still apply.  */
11737char dlopen ();
11738int
11739main ()
11740{
11741dlopen ();
11742  ;
11743  return 0;
11744}
11745_ACEOF
11746rm -f conftest.$ac_objext conftest$ac_exeext
11747if { (eval echo "$as_me:11747: \"$ac_link\"") >&5
11748  (eval $ac_link) 2>&5
11749  ac_status=$?
11750  echo "$as_me:11750: \$? = $ac_status" >&5
11751  (exit $ac_status); } &&
11752         { ac_try='test -s conftest$ac_exeext'
11753  { (eval echo "$as_me:11753: \"$ac_try\"") >&5
11754  (eval $ac_try) 2>&5
11755  ac_status=$?
11756  echo "$as_me:11756: \$? = $ac_status" >&5
11757  (exit $ac_status); }; }; then
11758  ac_cv_lib_dl_dlopen=yes
11759else
11760  echo "$as_me: failed program was:" >&5
11761cat conftest.$ac_ext >&5
11762ac_cv_lib_dl_dlopen=no
11763fi
11764rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11765LIBS=$ac_check_lib_save_LIBS
11766fi
11767echo "$as_me:11767: result: $ac_cv_lib_dl_dlopen" >&5
11768echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11769if test $ac_cv_lib_dl_dlopen = yes; then
11770  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11771else
11772  echo "$as_me:11772: checking for dlopen" >&5
11773echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11774if test "${ac_cv_func_dlopen+set}" = set; then
11775  echo $ECHO_N "(cached) $ECHO_C" >&6
11776else
11777  cat >conftest.$ac_ext <<_ACEOF
11778#line 11778 "configure"
11779#include "confdefs.h"
11780/* System header to define __stub macros and hopefully few prototypes,
11781    which can conflict with char dlopen (); below.  */
11782#include <assert.h>
11783/* Override any gcc2 internal prototype to avoid an error.  */
11784#ifdef __cplusplus
11785extern "C"
11786#endif
11787/* We use char because int might match the return type of a gcc2
11788   builtin and then its argument prototype would still apply.  */
11789char dlopen ();
11790char (*f) ();
11791
11792int
11793main ()
11794{
11795/* The GNU C library defines this for functions which it implements
11796    to always fail with ENOSYS.  Some functions are actually named
11797    something starting with __ and the normal name is an alias.  */
11798#if defined (__stub_dlopen) || defined (__stub___dlopen)
11799choke me
11800#else
11801f = dlopen;
11802#endif
11803
11804  ;
11805  return 0;
11806}
11807_ACEOF
11808rm -f conftest.$ac_objext conftest$ac_exeext
11809if { (eval echo "$as_me:11809: \"$ac_link\"") >&5
11810  (eval $ac_link) 2>&5
11811  ac_status=$?
11812  echo "$as_me:11812: \$? = $ac_status" >&5
11813  (exit $ac_status); } &&
11814         { ac_try='test -s conftest$ac_exeext'
11815  { (eval echo "$as_me:11815: \"$ac_try\"") >&5
11816  (eval $ac_try) 2>&5
11817  ac_status=$?
11818  echo "$as_me:11818: \$? = $ac_status" >&5
11819  (exit $ac_status); }; }; then
11820  ac_cv_func_dlopen=yes
11821else
11822  echo "$as_me: failed program was:" >&5
11823cat conftest.$ac_ext >&5
11824ac_cv_func_dlopen=no
11825fi
11826rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11827fi
11828echo "$as_me:11828: result: $ac_cv_func_dlopen" >&5
11829echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11830if test $ac_cv_func_dlopen = yes; then
11831  lt_cv_dlopen="dlopen"
11832else
11833  echo "$as_me:11833: checking for dlopen in -lsvld" >&5
11834echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11835if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11836  echo $ECHO_N "(cached) $ECHO_C" >&6
11837else
11838  ac_check_lib_save_LIBS=$LIBS
11839LIBS="-lsvld  $LIBS"
11840cat >conftest.$ac_ext <<_ACEOF
11841#line 11841 "configure"
11842#include "confdefs.h"
11843
11844/* Override any gcc2 internal prototype to avoid an error.  */
11845#ifdef __cplusplus
11846extern "C"
11847#endif
11848/* We use char because int might match the return type of a gcc2
11849   builtin and then its argument prototype would still apply.  */
11850char dlopen ();
11851int
11852main ()
11853{
11854dlopen ();
11855  ;
11856  return 0;
11857}
11858_ACEOF
11859rm -f conftest.$ac_objext conftest$ac_exeext
11860if { (eval echo "$as_me:11860: \"$ac_link\"") >&5
11861  (eval $ac_link) 2>&5
11862  ac_status=$?
11863  echo "$as_me:11863: \$? = $ac_status" >&5
11864  (exit $ac_status); } &&
11865         { ac_try='test -s conftest$ac_exeext'
11866  { (eval echo "$as_me:11866: \"$ac_try\"") >&5
11867  (eval $ac_try) 2>&5
11868  ac_status=$?
11869  echo "$as_me:11869: \$? = $ac_status" >&5
11870  (exit $ac_status); }; }; then
11871  ac_cv_lib_svld_dlopen=yes
11872else
11873  echo "$as_me: failed program was:" >&5
11874cat conftest.$ac_ext >&5
11875ac_cv_lib_svld_dlopen=no
11876fi
11877rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11878LIBS=$ac_check_lib_save_LIBS
11879fi
11880echo "$as_me:11880: result: $ac_cv_lib_svld_dlopen" >&5
11881echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11882if test $ac_cv_lib_svld_dlopen = yes; then
11883  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11884fi
11885
11886fi
11887
11888fi
11889
11890fi
11891
11892fi
11893
11894    ;;
11895  esac
11896
11897  if test "x$lt_cv_dlopen" != xno; then
11898    enable_dlopen=yes
11899  else
11900    enable_dlopen=no
11901  fi
11902
11903  case $lt_cv_dlopen in
11904  dlopen)
11905    save_CPPFLAGS="$CPPFLAGS"
11906    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11907
11908    save_LDFLAGS="$LDFLAGS"
11909    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11910
11911    save_LIBS="$LIBS"
11912    LIBS="$lt_cv_dlopen_libs $LIBS"
11913
11914    echo "$as_me:11914: checking whether a program can dlopen itself" >&5
11915echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11916if test "${lt_cv_dlopen_self+set}" = set; then
11917  echo $ECHO_N "(cached) $ECHO_C" >&6
11918else
11919  	  if test "$cross_compiling" = yes; then :
11920  lt_cv_dlopen_self=cross
11921else
11922  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11923  lt_status=$lt_dlunknown
11924  cat > conftest.$ac_ext <<EOF
11925#line 11925 "configure"
11926#include "confdefs.h"
11927
11928#if HAVE_DLFCN_H
11929#include <dlfcn.h>
11930#endif
11931
11932#include <stdio.h>
11933
11934#ifdef RTLD_GLOBAL
11935#  define LT_DLGLOBAL		RTLD_GLOBAL
11936#else
11937#  ifdef DL_GLOBAL
11938#    define LT_DLGLOBAL		DL_GLOBAL
11939#  else
11940#    define LT_DLGLOBAL		0
11941#  endif
11942#endif
11943
11944/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11945   find out it does not work in some platform. */
11946#ifndef LT_DLLAZY_OR_NOW
11947#  ifdef RTLD_LAZY
11948#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11949#  else
11950#    ifdef DL_LAZY
11951#      define LT_DLLAZY_OR_NOW		DL_LAZY
11952#    else
11953#      ifdef RTLD_NOW
11954#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11955#      else
11956#        ifdef DL_NOW
11957#          define LT_DLLAZY_OR_NOW	DL_NOW
11958#        else
11959#          define LT_DLLAZY_OR_NOW	0
11960#        endif
11961#      endif
11962#    endif
11963#  endif
11964#endif
11965
11966#ifdef __cplusplus
11967extern "C" void exit (int);
11968#endif
11969
11970void fnord() { int i=42;}
11971int main ()
11972{
11973  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11974  int status = $lt_dlunknown;
11975
11976  if (self)
11977    {
11978      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11979      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11980      /* dlclose (self); */
11981    }
11982
11983    exit (status);
11984}
11985EOF
11986  if { (eval echo "$as_me:11986: \"$ac_link\"") >&5
11987  (eval $ac_link) 2>&5
11988  ac_status=$?
11989  echo "$as_me:11989: \$? = $ac_status" >&5
11990  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11991    (./conftest; exit; ) 2>/dev/null
11992    lt_status=$?
11993    case x$lt_status in
11994      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11995      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11996      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11997    esac
11998  else :
11999    # compilation failed
12000    lt_cv_dlopen_self=no
12001  fi
12002fi
12003rm -fr conftest*
12004
12005fi
12006echo "$as_me:12006: result: $lt_cv_dlopen_self" >&5
12007echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12008
12009    if test "x$lt_cv_dlopen_self" = xyes; then
12010      LDFLAGS="$LDFLAGS $link_static_flag"
12011      echo "$as_me:12011: checking whether a statically linked program can dlopen itself" >&5
12012echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12013if test "${lt_cv_dlopen_self_static+set}" = set; then
12014  echo $ECHO_N "(cached) $ECHO_C" >&6
12015else
12016  	  if test "$cross_compiling" = yes; then :
12017  lt_cv_dlopen_self_static=cross
12018else
12019  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12020  lt_status=$lt_dlunknown
12021  cat > conftest.$ac_ext <<EOF
12022#line 12022 "configure"
12023#include "confdefs.h"
12024
12025#if HAVE_DLFCN_H
12026#include <dlfcn.h>
12027#endif
12028
12029#include <stdio.h>
12030
12031#ifdef RTLD_GLOBAL
12032#  define LT_DLGLOBAL		RTLD_GLOBAL
12033#else
12034#  ifdef DL_GLOBAL
12035#    define LT_DLGLOBAL		DL_GLOBAL
12036#  else
12037#    define LT_DLGLOBAL		0
12038#  endif
12039#endif
12040
12041/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12042   find out it does not work in some platform. */
12043#ifndef LT_DLLAZY_OR_NOW
12044#  ifdef RTLD_LAZY
12045#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12046#  else
12047#    ifdef DL_LAZY
12048#      define LT_DLLAZY_OR_NOW		DL_LAZY
12049#    else
12050#      ifdef RTLD_NOW
12051#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12052#      else
12053#        ifdef DL_NOW
12054#          define LT_DLLAZY_OR_NOW	DL_NOW
12055#        else
12056#          define LT_DLLAZY_OR_NOW	0
12057#        endif
12058#      endif
12059#    endif
12060#  endif
12061#endif
12062
12063#ifdef __cplusplus
12064extern "C" void exit (int);
12065#endif
12066
12067void fnord() { int i=42;}
12068int main ()
12069{
12070  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12071  int status = $lt_dlunknown;
12072
12073  if (self)
12074    {
12075      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12076      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12077      /* dlclose (self); */
12078    }
12079
12080    exit (status);
12081}
12082EOF
12083  if { (eval echo "$as_me:12083: \"$ac_link\"") >&5
12084  (eval $ac_link) 2>&5
12085  ac_status=$?
12086  echo "$as_me:12086: \$? = $ac_status" >&5
12087  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12088    (./conftest; exit; ) 2>/dev/null
12089    lt_status=$?
12090    case x$lt_status in
12091      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12092      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12093      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12094    esac
12095  else :
12096    # compilation failed
12097    lt_cv_dlopen_self_static=no
12098  fi
12099fi
12100rm -fr conftest*
12101
12102fi
12103echo "$as_me:12103: result: $lt_cv_dlopen_self_static" >&5
12104echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12105    fi
12106
12107    CPPFLAGS="$save_CPPFLAGS"
12108    LDFLAGS="$save_LDFLAGS"
12109    LIBS="$save_LIBS"
12110    ;;
12111  esac
12112
12113  case $lt_cv_dlopen_self in
12114  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12115  *) enable_dlopen_self=unknown ;;
12116  esac
12117
12118  case $lt_cv_dlopen_self_static in
12119  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12120  *) enable_dlopen_self_static=unknown ;;
12121  esac
12122fi
12123
12124# The else clause should only fire when bootstrapping the
12125# libtool distribution, otherwise you forgot to ship ltmain.sh
12126# with your package, and you will get complaints that there are
12127# no rules to generate ltmain.sh.
12128if test -f "$ltmain"; then
12129  # Now quote all the things that may contain metacharacters while being
12130  # careful not to overquote the AC_SUBSTed values.  We take copies of the
12131  # variables and quote the copies for generation of the libtool script.
12132  for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S NM SHELL \
12133    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12134    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12135    deplibs_check_method reload_flag reload_cmds need_locks \
12136    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12137    lt_cv_sys_global_symbol_to_c_name_address \
12138    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12139    old_postinstall_cmds old_postuninstall_cmds \
12140    compiler_GCJ \
12141    CC_GCJ \
12142    LD_GCJ \
12143    lt_prog_compiler_wl_GCJ \
12144    lt_prog_compiler_pic_GCJ \
12145    lt_prog_compiler_static_GCJ \
12146    lt_prog_compiler_no_builtin_flag_GCJ \
12147    export_dynamic_flag_spec_GCJ \
12148    thread_safe_flag_spec_GCJ \
12149    whole_archive_flag_spec_GCJ \
12150    old_archive_cmds_GCJ \
12151    old_archive_from_new_cmds_GCJ \
12152    predep_objects_GCJ \
12153    postdep_objects_GCJ \
12154    predeps_GCJ \
12155    postdeps_GCJ \
12156    compiler_lib_search_path_GCJ \
12157    archive_cmds_GCJ \
12158    archive_expsym_cmds_GCJ \
12159    postinstall_cmds_GCJ \
12160    postuninstall_cmds_GCJ \
12161    old_archive_from_expsyms_cmds_GCJ \
12162    allow_undefined_flag_GCJ \
12163    no_undefined_flag_GCJ \
12164    export_symbols_cmds_GCJ \
12165    hardcode_libdir_flag_spec_GCJ \
12166    hardcode_libdir_separator_GCJ \
12167    lt_cv_prog_compiler_c_o_GCJ \
12168    exclude_expsyms_GCJ \
12169    include_expsyms_GCJ; do
12170
12171    case $var in
12172    old_archive_cmds_GCJ | \
12173    old_archive_from_new_cmds_GCJ | \
12174    archive_cmds_GCJ | \
12175    archive_expsym_cmds_GCJ | \
12176    old_archive_from_expsyms_cmds_GCJ | \
12177    export_symbols_cmds_GCJ | \
12178    extract_expsyms_cmds | reload_cmds | finish_cmds | \
12179    postinstall_cmds | postuninstall_cmds | \
12180    old_postinstall_cmds | old_postuninstall_cmds | \
12181    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12182      # Double-quote double-evaled strings.
12183      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12184      ;;
12185    *)
12186      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12187      ;;
12188    esac
12189  done
12190
12191  case $lt_echo in
12192  *'\$0 --fallback-echo"')
12193    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12194    ;;
12195  esac
12196
12197cfgfile="$ofile"
12198
12199  cat <<__EOF__ >> "$cfgfile"
12200# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12201
12202# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12203
12204# Shell to use when invoking shell scripts.
12205SHELL=$lt_SHELL
12206
12207# Whether or not to build shared libraries.
12208build_libtool_libs=$enable_shared
12209
12210# Whether or not to build static libraries.
12211build_old_libs=$enable_static
12212
12213# Whether or not to add -lc for building shared libraries.
12214build_libtool_need_lc=$archive_cmds_need_lc_GCJ
12215
12216# Whether or not to optimize for fast installation.
12217fast_install=$enable_fast_install
12218
12219# The host system.
12220host_alias=$host_alias
12221host=$host
12222
12223# An echo program that does not interpret backslashes.
12224echo=$lt_echo
12225
12226# The archiver.
12227AR=$lt_AR
12228AR_FLAGS=$lt_AR_FLAGS
12229
12230# A C compiler.
12231LTCC=$LTCC
12232
12233# A language-specific compiler.
12234CC=$lt_compiler_GCJ
12235
12236# Is the compiler the GNU C compiler?
12237with_gcc=$GCC_GCJ
12238
12239# The linker used to build libraries.
12240LD=$lt_LD_GCJ
12241
12242# Whether we need hard or soft links.
12243LN_S=$lt_LN_S
12244
12245# A BSD-compatible nm program.
12246NM=$lt_NM
12247
12248# A symbol stripping program
12249STRIP=$STRIP
12250
12251# Used to examine libraries when file_magic_cmd begins "file"
12252MAGIC_CMD=$MAGIC_CMD
12253
12254# Used on cygwin: DLL creation program.
12255DLLTOOL="$DLLTOOL"
12256
12257# Used on cygwin: object dumper.
12258OBJDUMP="$OBJDUMP"
12259
12260# Used on cygwin: assembler.
12261AS="$AS"
12262
12263# The name of the directory that contains temporary libtool files.
12264objdir=$objdir
12265
12266# How to create reloadable object files.
12267reload_flag=$lt_reload_flag
12268reload_cmds=$lt_reload_cmds
12269
12270# How to pass a linker flag through the compiler.
12271wl=$lt_lt_prog_compiler_wl_GCJ
12272
12273# Object file suffix (normally "o").
12274objext="$ac_objext"
12275
12276# Old archive suffix (normally "a").
12277libext="$libext"
12278
12279# Executable file suffix (normally "").
12280exeext="$exeext"
12281
12282# Additional compiler flags for building library objects.
12283pic_flag=$lt_lt_prog_compiler_pic_GCJ
12284pic_mode=$pic_mode
12285
12286# What is the maximum length of a command?
12287max_cmd_len=$lt_cv_sys_max_cmd_len
12288
12289# Does compiler simultaneously support -c and -o options?
12290compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
12291
12292# Must we lock files when doing compilation ?
12293need_locks=$lt_need_locks
12294
12295# Do we need the lib prefix for modules?
12296need_lib_prefix=$need_lib_prefix
12297
12298# Do we need a version for libraries?
12299need_version=$need_version
12300
12301# Whether dlopen is supported.
12302dlopen_support=$enable_dlopen
12303
12304# Whether dlopen of programs is supported.
12305dlopen_self=$enable_dlopen_self
12306
12307# Whether dlopen of statically linked programs is supported.
12308dlopen_self_static=$enable_dlopen_self_static
12309
12310# Compiler flag to prevent dynamic linking.
12311link_static_flag=$lt_lt_prog_compiler_static_GCJ
12312
12313# Compiler flag to turn off builtin functions.
12314no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
12315
12316# Compiler flag to allow reflexive dlopens.
12317export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
12318
12319# Compiler flag to generate shared objects directly from archives.
12320whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
12321
12322# Compiler flag to generate thread-safe objects.
12323thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
12324
12325# Library versioning type.
12326version_type=$version_type
12327
12328# Format of library name prefix.
12329libname_spec=$lt_libname_spec
12330
12331# List of archive names.  First name is the real one, the rest are links.
12332# The last name is the one that the linker finds with -lNAME.
12333library_names_spec=$lt_library_names_spec
12334
12335# The coded name of the library, if different from the real name.
12336soname_spec=$lt_soname_spec
12337
12338# Commands used to build and install an old-style archive.
12339RANLIB=$lt_RANLIB
12340old_archive_cmds=$lt_old_archive_cmds_GCJ
12341old_postinstall_cmds=$lt_old_postinstall_cmds
12342old_postuninstall_cmds=$lt_old_postuninstall_cmds
12343
12344# Create an old-style archive from a shared archive.
12345old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
12346
12347# Create a temporary old-style archive to link instead of a shared archive.
12348old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
12349
12350# Commands used to build and install a shared archive.
12351archive_cmds=$lt_archive_cmds_GCJ
12352archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
12353postinstall_cmds=$lt_postinstall_cmds
12354postuninstall_cmds=$lt_postuninstall_cmds
12355
12356# Commands to strip libraries.
12357old_striplib=$lt_old_striplib
12358striplib=$lt_striplib
12359
12360# Dependencies to place before the objects being linked to create a
12361# shared library.
12362predep_objects=$lt_predep_objects_GCJ
12363
12364# Dependencies to place after the objects being linked to create a
12365# shared library.
12366postdep_objects=$lt_postdep_objects_GCJ
12367
12368# Dependencies to place before the objects being linked to create a
12369# shared library.
12370predeps=$lt_predeps_GCJ
12371
12372# Dependencies to place after the objects being linked to create a
12373# shared library.
12374postdeps=$lt_postdeps_GCJ
12375
12376# The library search path used internally by the compiler when linking
12377# a shared library.
12378compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
12379
12380# Method to check whether dependent libraries are shared objects.
12381deplibs_check_method=$lt_deplibs_check_method
12382
12383# Command to use when deplibs_check_method == file_magic.
12384file_magic_cmd=$lt_file_magic_cmd
12385
12386# Flag that allows shared libraries with undefined symbols to be built.
12387allow_undefined_flag=$lt_allow_undefined_flag_GCJ
12388
12389# Flag that forces no undefined symbols.
12390no_undefined_flag=$lt_no_undefined_flag_GCJ
12391
12392# Commands used to finish a libtool library installation in a directory.
12393finish_cmds=$lt_finish_cmds
12394
12395# Same as above, but a single script fragment to be evaled but not shown.
12396finish_eval=$lt_finish_eval
12397
12398# Take the output of nm and produce a listing of raw symbols and C names.
12399global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12400
12401# Transform the output of nm in a proper C declaration
12402global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12403
12404# Transform the output of nm in a C name address pair
12405global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12406
12407# This is the shared library runtime path variable.
12408runpath_var=$runpath_var
12409
12410# This is the shared library path variable.
12411shlibpath_var=$shlibpath_var
12412
12413# Is shlibpath searched before the hard-coded library search path?
12414shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12415
12416# How to hardcode a shared library path into an executable.
12417hardcode_action=$hardcode_action_GCJ
12418
12419# Whether we should hardcode library paths into libraries.
12420hardcode_into_libs=$hardcode_into_libs
12421
12422# Flag to hardcode \$libdir into a binary during linking.
12423# This must work even if \$libdir does not exist.
12424hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
12425
12426# Whether we need a single -rpath flag with a separated argument.
12427hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
12428
12429# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
12430# resulting binary.
12431hardcode_direct=$hardcode_direct_GCJ
12432
12433# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12434# resulting binary.
12435hardcode_minus_L=$hardcode_minus_L_GCJ
12436
12437# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12438# the resulting binary.
12439hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
12440
12441# Variables whose values should be saved in libtool wrapper scripts and
12442# restored at relink time.
12443variables_saved_for_relink="$variables_saved_for_relink"
12444
12445# Whether libtool must link a program against all its dependency libraries.
12446link_all_deplibs=$link_all_deplibs_GCJ
12447
12448# Compile-time system search path for libraries
12449sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12450
12451# Run-time system search path for libraries
12452sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12453
12454# Fix the shell variable \$srcfile for the compiler.
12455fix_srcfile_path="$fix_srcfile_path_GCJ"
12456
12457# Set to yes if exported symbols are required.
12458always_export_symbols=$always_export_symbols_GCJ
12459
12460# The commands to list exported symbols.
12461export_symbols_cmds=$lt_export_symbols_cmds_GCJ
12462
12463# The commands to extract the exported symbol list from a shared archive.
12464extract_expsyms_cmds=$lt_extract_expsyms_cmds
12465
12466# Symbols that should not be listed in the preloaded symbols.
12467exclude_expsyms=$lt_exclude_expsyms_GCJ
12468
12469# Symbols that must always be exported.
12470include_expsyms=$lt_include_expsyms_GCJ
12471
12472# ### END LIBTOOL TAG CONFIG: $tagname
12473
12474__EOF__
12475
12476else
12477  # If there is no Makefile yet, we rely on a make rule to execute
12478  # `config.status --recheck' to rerun these tests and create the
12479  # libtool script then.
12480  test -f Makefile && make "$ltmain"
12481fi
12482
12483ac_ext=c
12484ac_cpp='$CPP $CPPFLAGS'
12485ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12486ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12487ac_compiler_gnu=$ac_cv_c_compiler_gnu
12488
12489CC="$lt_save_CC"
12490
12491        ;;
12492
12493      *)
12494        { { echo "$as_me:12494: error: Unsupported tag name: $tagname" >&5
12495echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
12496   { (exit 1); exit 1; }; }
12497        ;;
12498      esac
12499
12500      # Append the new tag name to the list of available tags.
12501      available_tags="$available_tags $tagname"
12502    fi
12503  done
12504  IFS="$lt_save_ifs"
12505
12506  # Now substitute the updated list of available tags.
12507  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
12508    mv "${ofile}T" "$ofile"
12509    chmod +x "$ofile"
12510  else
12511    rm -f "${ofile}T"
12512    { { echo "$as_me:12512: error: unable to update list of available tagged configurations." >&5
12513echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
12514   { (exit 1); exit 1; }; }
12515  fi
12516fi
12517
12518# This can be used to rebuild libtool when needed
12519LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
12520
12521# Always use our own libtool.
12522LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12523
12524# Prevent multiple expansion
12525
12526# Find a good install program.  We prefer a C program (faster),
12527# so one script is as good as another.  But avoid the broken or
12528# incompatible versions:
12529# SysV /etc/install, /usr/sbin/install
12530# SunOS /usr/etc/install
12531# IRIX /sbin/install
12532# AIX /bin/install
12533# AmigaOS /C/install, which installs bootblocks on floppy discs
12534# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
12535# AFS /usr/afsws/bin/install, which mishandles nonexistent args
12536# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
12537# ./install, which can be erroneously created by make from ./install.sh.
12538echo "$as_me:12538: checking for a BSD compatible install" >&5
12539echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
12540if test -z "$INSTALL"; then
12541if test "${ac_cv_path_install+set}" = set; then
12542  echo $ECHO_N "(cached) $ECHO_C" >&6
12543else
12544    ac_save_IFS=$IFS; IFS=$ac_path_separator
12545  for ac_dir in $PATH; do
12546    IFS=$ac_save_IFS
12547    # Account for people who put trailing slashes in PATH elements.
12548    case $ac_dir/ in
12549    / | ./ | .// | /cC/* \
12550    | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
12551    | /usr/ucb/* ) ;;
12552    *)
12553      # OSF1 and SCO ODT 3.0 have their own names for install.
12554      # Don't use installbsd from OSF since it installs stuff as root
12555      # by default.
12556      for ac_prog in ginstall scoinst install; do
12557        if $as_executable_p "$ac_dir/$ac_prog"; then
12558	  if test $ac_prog = install &&
12559            grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
12560	    # AIX install.  It has an incompatible calling convention.
12561	    :
12562	  elif test $ac_prog = install &&
12563	    grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
12564	    # program-specific install script used by HP pwplus--don't use.
12565	    :
12566	  else
12567	    ac_cv_path_install="$ac_dir/$ac_prog -c"
12568	    break 2
12569	  fi
12570	fi
12571      done
12572      ;;
12573    esac
12574  done
12575
12576fi
12577  if test "${ac_cv_path_install+set}" = set; then
12578    INSTALL=$ac_cv_path_install
12579  else
12580    # As a last resort, use the slow shell script.  We don't cache a
12581    # path for INSTALL within a source directory, because that will
12582    # break other packages using the cache if that directory is
12583    # removed, or if the path is relative.
12584    INSTALL=$ac_install_sh
12585  fi
12586fi
12587echo "$as_me:12587: result: $INSTALL" >&5
12588echo "${ECHO_T}$INSTALL" >&6
12589
12590# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12591# It thinks the first close brace ends the variable substitution.
12592test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
12593
12594test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
12595
12596test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12597
12598echo "$as_me:12598: checking whether ln -s works" >&5
12599echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
12600LN_S=$as_ln_s
12601if test "$LN_S" = "ln -s"; then
12602  echo "$as_me:12602: result: yes" >&5
12603echo "${ECHO_T}yes" >&6
12604else
12605  echo "$as_me:12605: result: no, using $LN_S" >&5
12606echo "${ECHO_T}no, using $LN_S" >&6
12607fi
12608
12609echo "$as_me:12609: checking whether ${MAKE-make} sets \${MAKE}" >&5
12610echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
12611set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
12612if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
12613  echo $ECHO_N "(cached) $ECHO_C" >&6
12614else
12615  cat >conftest.make <<\EOF
12616all:
12617	@echo 'ac_maketemp="${MAKE}"'
12618EOF
12619# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
12620eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
12621if test -n "$ac_maketemp"; then
12622  eval ac_cv_prog_make_${ac_make}_set=yes
12623else
12624  eval ac_cv_prog_make_${ac_make}_set=no
12625fi
12626rm -f conftest.make
12627fi
12628if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
12629  echo "$as_me:12629: result: yes" >&5
12630echo "${ECHO_T}yes" >&6
12631  SET_MAKE=
12632else
12633  echo "$as_me:12633: result: no" >&5
12634echo "${ECHO_T}no" >&6
12635  SET_MAKE="MAKE=${MAKE-make}"
12636fi
12637
12638ac_config_files="$ac_config_files Makefile src/Makefile"
12639cat >confcache <<\_ACEOF
12640# This file is a shell script that caches the results of configure
12641# tests run on this system so they can be shared between configure
12642# scripts and configure runs, see configure's option --config-cache.
12643# It is not useful on other systems.  If it contains results you don't
12644# want to keep, you may remove or edit it.
12645#
12646# config.status only pays attention to the cache file if you give it
12647# the --recheck option to rerun configure.
12648#
12649# `ac_cv_env_foo' variables (set or unset) will be overriden when
12650# loading this file, other *unset* `ac_cv_foo' will be assigned the
12651# following values.
12652
12653_ACEOF
12654
12655# The following way of writing the cache mishandles newlines in values,
12656# but we know of no workaround that is simple, portable, and efficient.
12657# So, don't put newlines in cache variables' values.
12658# Ultrix sh set writes to stderr and can't be redirected directly,
12659# and sets the high bit in the cache file unless we assign to the vars.
12660{
12661  (set) 2>&1 |
12662    case `(ac_space=' '; set | grep ac_space) 2>&1` in
12663    *ac_space=\ *)
12664      # `set' does not quote correctly, so add quotes (double-quote
12665      # substitution turns \\\\ into \\, and sed turns \\ into \).
12666      sed -n \
12667        "s/'/'\\\\''/g;
12668    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12669      ;;
12670    *)
12671      # `set' quotes correctly as required by POSIX, so do not add quotes.
12672      sed -n \
12673        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12674      ;;
12675    esac;
12676} |
12677  sed '
12678     t clear
12679     : clear
12680     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12681     t end
12682     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12683     : end' >>confcache
12684if cmp -s $cache_file confcache; then :; else
12685  if test -w $cache_file; then
12686    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12687    cat confcache >$cache_file
12688  else
12689    echo "not updating unwritable cache $cache_file"
12690  fi
12691fi
12692rm -f confcache
12693
12694test "x$prefix" = xNONE && prefix=$ac_default_prefix
12695# Let make expand exec_prefix.
12696test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12697
12698# VPATH may cause trouble with some makes, so we remove $(srcdir),
12699# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12700# trailing colons and then remove the whole line if VPATH becomes empty
12701# (actually we leave an empty line to preserve line numbers).
12702if test "x$srcdir" = x.; then
12703  ac_vpsub='/^[ 	]*VPATH[ 	]*=/{
12704s/:*\$(srcdir):*/:/;
12705s/:*\${srcdir}:*/:/;
12706s/:*@srcdir@:*/:/;
12707s/^\([^=]*=[ 	]*\):*/\1/;
12708s/:*$//;
12709s/^[^=]*=[ 	]*$//;
12710}'
12711fi
12712
12713DEFS=-DHAVE_CONFIG_H
12714
12715: ${CONFIG_STATUS=./config.status}
12716ac_clean_files_save=$ac_clean_files
12717ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12718{ echo "$as_me:12718: creating $CONFIG_STATUS" >&5
12719echo "$as_me: creating $CONFIG_STATUS" >&6;}
12720cat >$CONFIG_STATUS <<_ACEOF
12721#! $SHELL
12722# Generated automatically by configure.
12723# Run this file to recreate the current configuration.
12724# Compiler output produced by configure, useful for debugging
12725# configure, is in config.log if it exists.
12726
12727debug=false
12728SHELL=\${CONFIG_SHELL-$SHELL}
12729ac_cs_invocation="\$0 \$@"
12730
12731_ACEOF
12732
12733cat >>$CONFIG_STATUS <<\_ACEOF
12734# Be Bourne compatible
12735if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12736  emulate sh
12737  NULLCMD=:
12738elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12739  set -o posix
12740fi
12741
12742# Name of the executable.
12743as_me=`echo "$0" |sed 's,.*[\\/],,'`
12744
12745if expr a : '\(a\)' >/dev/null 2>&1; then
12746  as_expr=expr
12747else
12748  as_expr=false
12749fi
12750
12751rm -f conf$$ conf$$.exe conf$$.file
12752echo >conf$$.file
12753if ln -s conf$$.file conf$$ 2>/dev/null; then
12754  # We could just check for DJGPP; but this test a) works b) is more generic
12755  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
12756  if test -f conf$$.exe; then
12757    # Don't use ln at all; we don't have any links
12758    as_ln_s='cp -p'
12759  else
12760    as_ln_s='ln -s'
12761  fi
12762elif ln conf$$.file conf$$ 2>/dev/null; then
12763  as_ln_s=ln
12764else
12765  as_ln_s='cp -p'
12766fi
12767rm -f conf$$ conf$$.exe conf$$.file
12768
12769as_executable_p="test -f"
12770
12771# Support unset when possible.
12772if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
12773  as_unset=unset
12774else
12775  as_unset=false
12776fi
12777
12778# NLS nuisances.
12779$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
12780$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
12781$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
12782$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
12783$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
12784$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
12785$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
12786$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
12787
12788# IFS
12789# We need space, tab and new line, in precisely that order.
12790as_nl='
12791'
12792IFS=" 	$as_nl"
12793
12794# CDPATH.
12795$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
12796
12797exec 6>&1
12798
12799_ACEOF
12800
12801# Files that config.status was made for.
12802if test -n "$ac_config_files"; then
12803  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
12804fi
12805
12806if test -n "$ac_config_headers"; then
12807  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
12808fi
12809
12810if test -n "$ac_config_links"; then
12811  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
12812fi
12813
12814if test -n "$ac_config_commands"; then
12815  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
12816fi
12817
12818cat >>$CONFIG_STATUS <<\EOF
12819
12820ac_cs_usage="\
12821\`$as_me' instantiates files from templates according to the
12822current configuration.
12823
12824Usage: $0 [OPTIONS] [FILE]...
12825
12826  -h, --help       print this help, then exit
12827  -V, --version    print version number, then exit
12828  -d, --debug      don't remove temporary files
12829      --recheck    update $as_me by reconfiguring in the same conditions
12830  --file=FILE[:TEMPLATE]
12831                   instantiate the configuration file FILE
12832  --header=FILE[:TEMPLATE]
12833                   instantiate the configuration header FILE
12834
12835Configuration files:
12836$config_files
12837
12838Configuration headers:
12839$config_headers
12840
12841Configuration commands:
12842$config_commands
12843
12844Report bugs to <bug-autoconf@gnu.org>."
12845EOF
12846
12847cat >>$CONFIG_STATUS <<EOF
12848ac_cs_version="\\
12849config.status
12850configured by $0, generated by GNU Autoconf 2.52,
12851  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
12852
12853Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
12854Free Software Foundation, Inc.
12855This config.status script is free software; the Free Software Foundation
12856gives unlimited permission to copy, distribute and modify it."
12857srcdir=$srcdir
12858INSTALL="$INSTALL"
12859EOF
12860
12861cat >>$CONFIG_STATUS <<\EOF
12862# If no file are specified by the user, then we need to provide default
12863# value.  By we need to know if files were specified by the user.
12864ac_need_defaults=:
12865while test $# != 0
12866do
12867  case $1 in
12868  --*=*)
12869    ac_option=`expr "x$1" : 'x\([^=]*\)='`
12870    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
12871    shift
12872    set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
12873    shift
12874    ;;
12875  -*);;
12876  *) # This is not an option, so the user has probably given explicit
12877     # arguments.
12878     ac_need_defaults=false;;
12879  esac
12880
12881  case $1 in
12882  # Handling of the options.
12883EOF
12884cat >>$CONFIG_STATUS <<EOF
12885  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12886    echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
12887    exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
12888EOF
12889cat >>$CONFIG_STATUS <<\EOF
12890  --version | --vers* | -V )
12891    echo "$ac_cs_version"; exit 0 ;;
12892  --he | --h)
12893    # Conflict between --help and --header
12894    { { echo "$as_me:12894: error: ambiguous option: $1
12895Try \`$0 --help' for more information." >&5
12896echo "$as_me: error: ambiguous option: $1
12897Try \`$0 --help' for more information." >&2;}
12898   { (exit 1); exit 1; }; };;
12899  --help | --hel | -h )
12900    echo "$ac_cs_usage"; exit 0 ;;
12901  --debug | --d* | -d )
12902    debug=: ;;
12903  --file | --fil | --fi | --f )
12904    shift
12905    CONFIG_FILES="$CONFIG_FILES $1"
12906    ac_need_defaults=false;;
12907  --header | --heade | --head | --hea )
12908    shift
12909    CONFIG_HEADERS="$CONFIG_HEADERS $1"
12910    ac_need_defaults=false;;
12911
12912  # This is an error.
12913  -*) { { echo "$as_me:12913: error: unrecognized option: $1
12914Try \`$0 --help' for more information." >&5
12915echo "$as_me: error: unrecognized option: $1
12916Try \`$0 --help' for more information." >&2;}
12917   { (exit 1); exit 1; }; } ;;
12918
12919  *) ac_config_targets="$ac_config_targets $1" ;;
12920
12921  esac
12922  shift
12923done
12924
12925exec 5>>config.log
12926cat >&5 << _ACEOF
12927
12928## ----------------------- ##
12929## Running config.status.  ##
12930## ----------------------- ##
12931
12932This file was extended by $as_me 2.52, executed with
12933  CONFIG_FILES    = $CONFIG_FILES
12934  CONFIG_HEADERS  = $CONFIG_HEADERS
12935  CONFIG_LINKS    = $CONFIG_LINKS
12936  CONFIG_COMMANDS = $CONFIG_COMMANDS
12937  > $ac_cs_invocation
12938on `(hostname || uname -n) 2>/dev/null | sed 1q`
12939
12940_ACEOF
12941EOF
12942
12943cat >>$CONFIG_STATUS <<EOF
12944#
12945# INIT-COMMANDS section.
12946#
12947
12948EOF
12949
12950cat >>$CONFIG_STATUS <<\EOF
12951for ac_config_target in $ac_config_targets
12952do
12953  case "$ac_config_target" in
12954  # Handling of arguments.
12955  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12956  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
12957  "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12958  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12959  *) { { echo "$as_me:12959: error: invalid argument: $ac_config_target" >&5
12960echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12961   { (exit 1); exit 1; }; };;
12962  esac
12963done
12964
12965# If the user did not use the arguments to specify the items to instantiate,
12966# then the envvar interface is used.  Set only those that are not.
12967# We use the long form for the default assignment because of an extremely
12968# bizarre bug on SunOS 4.1.3.
12969if $ac_need_defaults; then
12970  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12971  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12972  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12973fi
12974
12975# Create a temporary directory, and hook for its removal unless debugging.
12976$debug ||
12977{
12978  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12979  trap '{ (exit 1); exit 1; }' 1 2 13 15
12980}
12981
12982# Create a (secure) tmp directory for tmp files.
12983: ${TMPDIR=/tmp}
12984{
12985  tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
12986  test -n "$tmp" && test -d "$tmp"
12987}  ||
12988{
12989  tmp=$TMPDIR/cs$$-$RANDOM
12990  (umask 077 && mkdir $tmp)
12991} ||
12992{
12993   echo "$me: cannot create a temporary directory in $TMPDIR" >&2
12994   { (exit 1); exit 1; }
12995}
12996
12997EOF
12998
12999cat >>$CONFIG_STATUS <<EOF
13000
13001#
13002# CONFIG_FILES section.
13003#
13004
13005# No need to generate the scripts if there are no CONFIG_FILES.
13006# This happens for instance when ./config.status config.h
13007if test -n "\$CONFIG_FILES"; then
13008  # Protect against being on the right side of a sed subst in config.status.
13009  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13010   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13011s,@SHELL@,$SHELL,;t t
13012s,@exec_prefix@,$exec_prefix,;t t
13013s,@prefix@,$prefix,;t t
13014s,@program_transform_name@,$program_transform_name,;t t
13015s,@bindir@,$bindir,;t t
13016s,@sbindir@,$sbindir,;t t
13017s,@libexecdir@,$libexecdir,;t t
13018s,@datadir@,$datadir,;t t
13019s,@sysconfdir@,$sysconfdir,;t t
13020s,@sharedstatedir@,$sharedstatedir,;t t
13021s,@localstatedir@,$localstatedir,;t t
13022s,@libdir@,$libdir,;t t
13023s,@includedir@,$includedir,;t t
13024s,@oldincludedir@,$oldincludedir,;t t
13025s,@infodir@,$infodir,;t t
13026s,@mandir@,$mandir,;t t
13027s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13028s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13029s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13030s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13031s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13032s,@build_alias@,$build_alias,;t t
13033s,@host_alias@,$host_alias,;t t
13034s,@target_alias@,$target_alias,;t t
13035s,@ECHO_C@,$ECHO_C,;t t
13036s,@ECHO_N@,$ECHO_N,;t t
13037s,@ECHO_T@,$ECHO_T,;t t
13038s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13039s,@DEFS@,$DEFS,;t t
13040s,@LIBS@,$LIBS,;t t
13041s,@build@,$build,;t t
13042s,@build_cpu@,$build_cpu,;t t
13043s,@build_vendor@,$build_vendor,;t t
13044s,@build_os@,$build_os,;t t
13045s,@host@,$host,;t t
13046s,@host_cpu@,$host_cpu,;t t
13047s,@host_vendor@,$host_vendor,;t t
13048s,@host_os@,$host_os,;t t
13049s,@target@,$target,;t t
13050s,@target_cpu@,$target_cpu,;t t
13051s,@target_vendor@,$target_vendor,;t t
13052s,@target_os@,$target_os,;t t
13053s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13054s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13055s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13056s,@PACKAGE@,$PACKAGE,;t t
13057s,@VERSION@,$VERSION,;t t
13058s,@ACLOCAL@,$ACLOCAL,;t t
13059s,@AUTOCONF@,$AUTOCONF,;t t
13060s,@AUTOMAKE@,$AUTOMAKE,;t t
13061s,@AUTOHEADER@,$AUTOHEADER,;t t
13062s,@MAKEINFO@,$MAKEINFO,;t t
13063s,@SET_MAKE@,$SET_MAKE,;t t
13064s,@CC@,$CC,;t t
13065s,@CFLAGS@,$CFLAGS,;t t
13066s,@LDFLAGS@,$LDFLAGS,;t t
13067s,@CPPFLAGS@,$CPPFLAGS,;t t
13068s,@ac_ct_CC@,$ac_ct_CC,;t t
13069s,@EXEEXT@,$EXEEXT,;t t
13070s,@OBJEXT@,$OBJEXT,;t t
13071s,@LN_S@,$LN_S,;t t
13072s,@ECHO@,$ECHO,;t t
13073s,@RANLIB@,$RANLIB,;t t
13074s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
13075s,@STRIP@,$STRIP,;t t
13076s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
13077s,@CPP@,$CPP,;t t
13078s,@CXX@,$CXX,;t t
13079s,@CXXFLAGS@,$CXXFLAGS,;t t
13080s,@ac_ct_CXX@,$ac_ct_CXX,;t t
13081s,@CXXCPP@,$CXXCPP,;t t
13082s,@LIBTOOL@,$LIBTOOL,;t t
13083CEOF
13084
13085EOF
13086
13087  cat >>$CONFIG_STATUS <<\EOF
13088  # Split the substitutions into bite-sized pieces for seds with
13089  # small command number limits, like on Digital OSF/1 and HP-UX.
13090  ac_max_sed_lines=48
13091  ac_sed_frag=1 # Number of current file.
13092  ac_beg=1 # First line for current file.
13093  ac_end=$ac_max_sed_lines # Line after last line for current file.
13094  ac_more_lines=:
13095  ac_sed_cmds=
13096  while $ac_more_lines; do
13097    if test $ac_beg -gt 1; then
13098      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13099    else
13100      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13101    fi
13102    if test ! -s $tmp/subs.frag; then
13103      ac_more_lines=false
13104    else
13105      # The purpose of the label and of the branching condition is to
13106      # speed up the sed processing (if there are no `@' at all, there
13107      # is no need to browse any of the substitutions).
13108      # These are the two extra sed commands mentioned above.
13109      (echo ':t
13110  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13111      if test -z "$ac_sed_cmds"; then
13112  	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13113      else
13114  	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13115      fi
13116      ac_sed_frag=`expr $ac_sed_frag + 1`
13117      ac_beg=$ac_end
13118      ac_end=`expr $ac_end + $ac_max_sed_lines`
13119    fi
13120  done
13121  if test -z "$ac_sed_cmds"; then
13122    ac_sed_cmds=cat
13123  fi
13124fi # test -n "$CONFIG_FILES"
13125
13126EOF
13127cat >>$CONFIG_STATUS <<\EOF
13128for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13129  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13130  case $ac_file in
13131  - | *:- | *:-:* ) # input from stdin
13132        cat >$tmp/stdin
13133        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13134        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13135  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13136        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13137  * )   ac_file_in=$ac_file.in ;;
13138  esac
13139
13140  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13141  ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13142         X"$ac_file" : 'X\(//\)[^/]' \| \
13143         X"$ac_file" : 'X\(//\)$' \| \
13144         X"$ac_file" : 'X\(/\)' \| \
13145         .     : '\(.\)' 2>/dev/null ||
13146echo X"$ac_file" |
13147    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13148  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13149  	  /^X\(\/\/\)$/{ s//\1/; q; }
13150  	  /^X\(\/\).*/{ s//\1/; q; }
13151  	  s/.*/./; q'`
13152  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13153    { case "$ac_dir" in
13154  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
13155  *)                      as_incr_dir=.;;
13156esac
13157as_dummy="$ac_dir"
13158for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
13159  case $as_mkdir_dir in
13160    # Skip DOS drivespec
13161    ?:) as_incr_dir=$as_mkdir_dir ;;
13162    *)
13163      as_incr_dir=$as_incr_dir/$as_mkdir_dir
13164      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
13165    ;;
13166  esac
13167done; }
13168
13169    ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
13170    # A "../" for each directory in $ac_dir_suffix.
13171    ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
13172  else
13173    ac_dir_suffix= ac_dots=
13174  fi
13175
13176  case $srcdir in
13177  .)  ac_srcdir=.
13178      if test -z "$ac_dots"; then
13179         ac_top_srcdir=.
13180      else
13181         ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
13182      fi ;;
13183  [\\/]* | ?:[\\/]* )
13184      ac_srcdir=$srcdir$ac_dir_suffix;
13185      ac_top_srcdir=$srcdir ;;
13186  *) # Relative path.
13187    ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
13188    ac_top_srcdir=$ac_dots$srcdir ;;
13189  esac
13190
13191  case $INSTALL in
13192  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13193  *) ac_INSTALL=$ac_dots$INSTALL ;;
13194  esac
13195
13196  if test x"$ac_file" != x-; then
13197    { echo "$as_me:13197: creating $ac_file" >&5
13198echo "$as_me: creating $ac_file" >&6;}
13199    rm -f "$ac_file"
13200  fi
13201  # Let's still pretend it is `configure' which instantiates (i.e., don't
13202  # use $as_me), people would be surprised to read:
13203  #    /* config.h.  Generated automatically by config.status.  */
13204  configure_input="Generated automatically from `echo $ac_file_in |
13205                                                 sed 's,.*/,,'` by configure."
13206
13207  # First look for the input files in the build tree, otherwise in the
13208  # src tree.
13209  ac_file_inputs=`IFS=:
13210    for f in $ac_file_in; do
13211      case $f in
13212      -) echo $tmp/stdin ;;
13213      [\\/$]*)
13214         # Absolute (can't be DOS-style, as IFS=:)
13215         test -f "$f" || { { echo "$as_me:13215: error: cannot find input file: $f" >&5
13216echo "$as_me: error: cannot find input file: $f" >&2;}
13217   { (exit 1); exit 1; }; }
13218         echo $f;;
13219      *) # Relative
13220         if test -f "$f"; then
13221           # Build tree
13222           echo $f
13223         elif test -f "$srcdir/$f"; then
13224           # Source tree
13225           echo $srcdir/$f
13226         else
13227           # /dev/null tree
13228           { { echo "$as_me:13228: error: cannot find input file: $f" >&5
13229echo "$as_me: error: cannot find input file: $f" >&2;}
13230   { (exit 1); exit 1; }; }
13231         fi;;
13232      esac
13233    done` || { (exit 1); exit 1; }
13234EOF
13235cat >>$CONFIG_STATUS <<EOF
13236  sed "$ac_vpsub
13237$extrasub
13238EOF
13239cat >>$CONFIG_STATUS <<\EOF
13240:t
13241/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13242s,@configure_input@,$configure_input,;t t
13243s,@srcdir@,$ac_srcdir,;t t
13244s,@top_srcdir@,$ac_top_srcdir,;t t
13245s,@INSTALL@,$ac_INSTALL,;t t
13246" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13247  rm -f $tmp/stdin
13248  if test x"$ac_file" != x-; then
13249    mv $tmp/out $ac_file
13250  else
13251    cat $tmp/out
13252    rm -f $tmp/out
13253  fi
13254
13255done
13256EOF
13257cat >>$CONFIG_STATUS <<\EOF
13258
13259#
13260# CONFIG_HEADER section.
13261#
13262
13263# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13264# NAME is the cpp macro being defined and VALUE is the value it is being given.
13265#
13266# ac_d sets the value in "#define NAME VALUE" lines.
13267ac_dA='s,^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)'
13268ac_dB='[ 	].*$,\1#\2'
13269ac_dC=' '
13270ac_dD=',;t'
13271# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13272ac_uA='s,^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
13273ac_uB='$,\1#\2define\3'
13274ac_uC=' '
13275ac_uD=',;t'
13276
13277for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
13278  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13279  case $ac_file in
13280  - | *:- | *:-:* ) # input from stdin
13281        cat >$tmp/stdin
13282        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13283        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13284  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13285        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13286  * )   ac_file_in=$ac_file.in ;;
13287  esac
13288
13289  test x"$ac_file" != x- && { echo "$as_me:13289: creating $ac_file" >&5
13290echo "$as_me: creating $ac_file" >&6;}
13291
13292  # First look for the input files in the build tree, otherwise in the
13293  # src tree.
13294  ac_file_inputs=`IFS=:
13295    for f in $ac_file_in; do
13296      case $f in
13297      -) echo $tmp/stdin ;;
13298      [\\/$]*)
13299         # Absolute (can't be DOS-style, as IFS=:)
13300         test -f "$f" || { { echo "$as_me:13300: error: cannot find input file: $f" >&5
13301echo "$as_me: error: cannot find input file: $f" >&2;}
13302   { (exit 1); exit 1; }; }
13303         echo $f;;
13304      *) # Relative
13305         if test -f "$f"; then
13306           # Build tree
13307           echo $f
13308         elif test -f "$srcdir/$f"; then
13309           # Source tree
13310           echo $srcdir/$f
13311         else
13312           # /dev/null tree
13313           { { echo "$as_me:13313: error: cannot find input file: $f" >&5
13314echo "$as_me: error: cannot find input file: $f" >&2;}
13315   { (exit 1); exit 1; }; }
13316         fi;;
13317      esac
13318    done` || { (exit 1); exit 1; }
13319  # Remove the trailing spaces.
13320  sed 's/[ 	]*$//' $ac_file_inputs >$tmp/in
13321
13322EOF
13323
13324# Transform confdefs.h into two sed scripts, `conftest.defines' and
13325# `conftest.undefs', that substitutes the proper values into
13326# config.h.in to produce config.h.  The first handles `#define'
13327# templates, and the second `#undef' templates.
13328# And first: Protect against being on the right side of a sed subst in
13329# config.status.  Protect against being in an unquoted here document
13330# in config.status.
13331rm -f conftest.defines conftest.undefs
13332# Using a here document instead of a string reduces the quoting nightmare.
13333# Putting comments in sed scripts is not portable.
13334#
13335# `end' is used to avoid that the second main sed command (meant for
13336# 0-ary CPP macros) applies to n-ary macro definitions.
13337# See the Autoconf documentation for `clear'.
13338cat >confdef2sed.sed <<\EOF
13339s/[\\&,]/\\&/g
13340s,[\\$`],\\&,g
13341t clear
13342: clear
13343s,^[ 	]*#[ 	]*define[ 	][ 	]*\(\([^ 	(][^ 	(]*\)([^)]*)\)[ 	]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
13344t end
13345s,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	][^ 	]*\)[ 	]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13346: end
13347EOF
13348# If some macros were called several times there might be several times
13349# the same #defines, which is useless.  Nevertheless, we may not want to
13350# sort them, since we want the *last* AC-DEFINE to be honored.
13351uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13352sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13353rm -f confdef2sed.sed
13354
13355# This sed command replaces #undef with comments.  This is necessary, for
13356# example, in the case of _POSIX_SOURCE, which is predefined and required
13357# on some systems where configure will not decide to define it.
13358cat >>conftest.undefs <<\EOF
13359s,^[ 	]*#[ 	]*undef[ 	][ 	]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13360EOF
13361
13362# Break up conftest.defines because some shells have a limit on the size
13363# of here documents, and old seds have small limits too (100 cmds).
13364echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13365echo '  if egrep "^[ 	]*#[ 	]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13366echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13367echo '  :' >>$CONFIG_STATUS
13368rm -f conftest.tail
13369while grep . conftest.defines >/dev/null
13370do
13371  # Write a limited-size here document to $tmp/defines.sed.
13372  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13373  # Speed up: don't consider the non `#define' lines.
13374  echo '/^[ 	]*#[ 	]*define/!b' >>$CONFIG_STATUS
13375  # Work around the forget-to-reset-the-flag bug.
13376  echo 't clr' >>$CONFIG_STATUS
13377  echo ': clr' >>$CONFIG_STATUS
13378  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13379  echo 'CEOF
13380  sed -f $tmp/defines.sed $tmp/in >$tmp/out
13381  rm -f $tmp/in
13382  mv $tmp/out $tmp/in
13383' >>$CONFIG_STATUS
13384  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13385  rm -f conftest.defines
13386  mv conftest.tail conftest.defines
13387done
13388rm -f conftest.defines
13389echo '  fi # egrep' >>$CONFIG_STATUS
13390echo >>$CONFIG_STATUS
13391
13392# Break up conftest.undefs because some shells have a limit on the size
13393# of here documents, and old seds have small limits too (100 cmds).
13394echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
13395rm -f conftest.tail
13396while grep . conftest.undefs >/dev/null
13397do
13398  # Write a limited-size here document to $tmp/undefs.sed.
13399  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13400  # Speed up: don't consider the non `#undef'
13401  echo '/^[ 	]*#[ 	]*undef/!b' >>$CONFIG_STATUS
13402  # Work around the forget-to-reset-the-flag bug.
13403  echo 't clr' >>$CONFIG_STATUS
13404  echo ': clr' >>$CONFIG_STATUS
13405  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13406  echo 'CEOF
13407  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13408  rm -f $tmp/in
13409  mv $tmp/out $tmp/in
13410' >>$CONFIG_STATUS
13411  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13412  rm -f conftest.undefs
13413  mv conftest.tail conftest.undefs
13414done
13415rm -f conftest.undefs
13416
13417cat >>$CONFIG_STATUS <<\EOF
13418  # Let's still pretend it is `configure' which instantiates (i.e., don't
13419  # use $as_me), people would be surprised to read:
13420  #    /* config.h.  Generated automatically by config.status.  */
13421  if test x"$ac_file" = x-; then
13422    echo "/* Generated automatically by configure.  */" >$tmp/config.h
13423  else
13424    echo "/* $ac_file.  Generated automatically by configure.  */" >$tmp/config.h
13425  fi
13426  cat $tmp/in >>$tmp/config.h
13427  rm -f $tmp/in
13428  if test x"$ac_file" != x-; then
13429    if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
13430      { echo "$as_me:13430: $ac_file is unchanged" >&5
13431echo "$as_me: $ac_file is unchanged" >&6;}
13432    else
13433      ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13434         X"$ac_file" : 'X\(//\)[^/]' \| \
13435         X"$ac_file" : 'X\(//\)$' \| \
13436         X"$ac_file" : 'X\(/\)' \| \
13437         .     : '\(.\)' 2>/dev/null ||
13438echo X"$ac_file" |
13439    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13440  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13441  	  /^X\(\/\/\)$/{ s//\1/; q; }
13442  	  /^X\(\/\).*/{ s//\1/; q; }
13443  	  s/.*/./; q'`
13444      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
13445        { case "$ac_dir" in
13446  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
13447  *)                      as_incr_dir=.;;
13448esac
13449as_dummy="$ac_dir"
13450for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
13451  case $as_mkdir_dir in
13452    # Skip DOS drivespec
13453    ?:) as_incr_dir=$as_mkdir_dir ;;
13454    *)
13455      as_incr_dir=$as_incr_dir/$as_mkdir_dir
13456      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
13457    ;;
13458  esac
13459done; }
13460
13461      fi
13462      rm -f $ac_file
13463      mv $tmp/config.h $ac_file
13464    fi
13465  else
13466    cat $tmp/config.h
13467    rm -f $tmp/config.h
13468  fi
13469done
13470EOF
13471cat >>$CONFIG_STATUS <<\EOF
13472
13473#
13474# CONFIG_COMMANDS section.
13475#
13476for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
13477  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
13478  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
13479
13480  case $ac_dest in
13481    default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
13482  esac
13483done
13484EOF
13485
13486cat >>$CONFIG_STATUS <<\EOF
13487
13488{ (exit 0); exit 0; }
13489EOF
13490chmod +x $CONFIG_STATUS
13491ac_clean_files=$ac_clean_files_save
13492
13493# configure is writing to config.log, and then calls config.status.
13494# config.status does its own redirection, appending to config.log.
13495# Unfortunately, on DOS this fails, as config.log is still kept open
13496# by configure, so config.status won't be able to write to it; its
13497# output is simply discarded.  So we exec the FD to /dev/null,
13498# effectively closing config.log, so it can be properly (re)opened and
13499# appended to by config.status.  When coming back to configure, we
13500# need to make the FD available again.
13501if test "$no_create" != yes; then
13502  ac_cs_success=:
13503  exec 5>/dev/null
13504  $SHELL $CONFIG_STATUS || ac_cs_success=false
13505  exec 5>>config.log
13506  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13507  # would make configure fail if this is the last instruction.
13508  $ac_cs_success || { (exit 1); exit 1; }
13509fi
13510
13511