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) lt_cv_sys_path_separator=';' ;;
16    *)     lt_cv_sys_path_separator=':' ;;
17  esac
18  PATH_SEPARATOR=$lt_cv_sys_path_separator
19fi
20
21# Check that we are running under the correct shell.
22SHELL=${CONFIG_SHELL-/bin/sh}
23
24case X$ECHO in
25X*--fallback-echo)
26  # Remove one level of quotation (which was required for Make).
27  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
28  ;;
29esac
30
31echo=${ECHO-echo}
32if test "X$1" = X--no-reexec; then
33  # Discard the --no-reexec flag, and continue.
34  shift
35elif test "X$1" = X--fallback-echo; then
36  # Avoid inline document here, it may be left over
37  :
38elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
39  # Yippee, $echo works!
40  :
41else
42  # Restart under the correct shell.
43  exec $SHELL "$0" --no-reexec ${1+"$@"}
44fi
45
46if test "X$1" = X--fallback-echo; then
47  # used as fallback echo
48  shift
49  cat <<EOF
50
51EOF
52  exit 0
53fi
54
55# The HP-UX ksh and POSIX shell print the target directory to stdout
56# if CDPATH is set.
57if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
58
59if test -z "$ECHO"; then
60if test "X${echo_test_string+set}" != Xset; then
61# find a string as large as possible, as long as the shell can cope with it
62  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
63    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
64    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
65       echo_test_string="`eval $cmd`" &&
66       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
67    then
68      break
69    fi
70  done
71fi
72
73if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
74   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
75   test "X$echo_testing_string" = "X$echo_test_string"; then
76  :
77else
78  # The Solaris, AIX, and Digital Unix default echo programs unquote
79  # backslashes.  This makes it impossible to quote backslashes using
80  #   echo "$something" | sed 's/\\/\\\\/g'
81  #
82  # So, first we look for a working echo in the user's PATH.
83
84  IFS="${IFS= 	}"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
85  for dir in $PATH /usr/ucb; do
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="$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="libs/pdcore/pc_config.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
724
725#
726# Report the --help message.
727#
728if test "$ac_init_help" = "long"; then
729  # Omit some internal or obsolete options to make the list less imposing.
730  # This message is too long to be a string in the A/UX 3.1 sh.
731  cat <<EOF
732\`configure' configures this package to adapt to many kinds of systems.
733
734Usage: $0 [OPTION]... [VAR=VALUE]...
735
736To assign environment variables (e.g., CC, CFLAGS...), specify them as
737VAR=VALUE.  See below for descriptions of some of the useful variables.
738
739Defaults for the options are specified in brackets.
740
741Configuration:
742  -h, --help              display this help and exit
743      --help=short        display options specific to this package
744      --help=recursive    display the short help of all the included packages
745  -V, --version           display version information and exit
746  -q, --quiet, --silent   do not print \`checking...' messages
747      --cache-file=FILE   cache test results in FILE [disabled]
748  -C, --config-cache      alias for \`--cache-file=config.cache'
749  -n, --no-create         do not create output files
750      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
751
752EOF
753
754  cat <<EOF
755Installation directories:
756  --prefix=PREFIX         install architecture-independent files in PREFIX
757                          [$ac_default_prefix]
758  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
759                          [PREFIX]
760
761By default, \`make install' will install all the files in
762\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
763an installation prefix other than \`$ac_default_prefix' using \`--prefix',
764for instance \`--prefix=\$HOME'.
765
766For better control, use the options below.
767
768Fine tuning of the installation directories:
769  --bindir=DIR           user executables [EPREFIX/bin]
770  --sbindir=DIR          system admin executables [EPREFIX/sbin]
771  --libexecdir=DIR       program executables [EPREFIX/libexec]
772  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
773  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
774  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
775  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
776  --libdir=DIR           object code libraries [EPREFIX/lib]
777  --includedir=DIR       C header files [PREFIX/include]
778  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
779  --infodir=DIR          info documentation [PREFIX/info]
780  --mandir=DIR           man documentation [PREFIX/man]
781EOF
782
783  cat <<\EOF
784
785System types:
786  --build=BUILD     configure for building on BUILD [guessed]
787  --host=HOST       build programs to run on HOST [BUILD]
788EOF
789fi
790
791if test -n "$ac_init_help"; then
792
793  cat <<\EOF
794
795Optional Features:
796  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
797  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
798  --enable-xplink        turn on xplink linking
799  --enable-debug          turn on debugging
800  --enable-profile        turn on profiling
801  --enable-shared=PKGS  build shared libraries default=yes
802  --enable-static=PKGS  build static libraries default=yes
803  --enable-fast-install=PKGS  optimize for fast installation default=yes
804  --disable-libtool-lock  avoid locking (might break parallel builds)
805  --enable-cxx            enable C++ language binding default=no
806  --enable-pedantic       enable pedantic warnings (gcc only)]
807
808Optional Packages:
809  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
810  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
811  --with-pdflibname=name  set file name of generated library default=pdf
812  --with-libm=name        set math library option default=-lm
813  --with-gnu-ld           assume the C compiler uses GNU ld default=no
814  --with-pic              try to use only PIC/non-PIC objects default=use both
815  --with-java=path        full path of Java Developers Kit, or no
816  --with-perl=path        full path of Perl executable, or no
817  --with-perlincl=path    full path of Perl include directory
818  --with-py=path          full path of Python root directory, or no
819  --with-pyincl=path      full path of Python include directory
820  --with-tcl=path         full path of Tcl executable, or no
821  --with-tclpkg=path      full path of Tcl package install directory
822  --with-tclincl=path     full path of Tcl include directory
823  --without-PSP           don't include PSP (Pretty Safe PDF)
824  --without-TET           don't include TET
825  --without-PDU           don't include PDU
826
827Some influential environment variables:
828  CC          C compiler command
829  CFLAGS      C compiler flags
830  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
831              nonstandard directory <lib dir>
832  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
833              headers in a nonstandard directory <include dir>
834  CPP         C preprocessor
835  CXX         C++ compiler command
836  CXXFLAGS    C++ compiler flags
837
838Use these variables to override the choices made by `configure' or to help
839it to find libraries and programs with nonstandard names/locations.
840
841EOF
842fi
843
844if test "$ac_init_help" = "recursive"; then
845  # If there are subdirs, report their specific --help.
846  ac_popdir=`pwd`
847  for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
848    cd $ac_subdir
849    # A "../" for each directory in /$ac_subdir.
850    ac_dots=`echo $ac_subdir |
851             sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
852
853    case $srcdir in
854    .) # No --srcdir option.  We are building in place.
855      ac_sub_srcdir=$srcdir ;;
856    [\\/]* | ?:[\\/]* ) # Absolute path.
857      ac_sub_srcdir=$srcdir/$ac_subdir ;;
858    *) # Relative path.
859      ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
860    esac
861
862    # Check for guested configure; otherwise get Cygnus style configure.
863    if test -f $ac_sub_srcdir/configure.gnu; then
864      echo
865      $SHELL $ac_sub_srcdir/configure.gnu  --help=recursive
866    elif test -f $ac_sub_srcdir/configure; then
867      echo
868      $SHELL $ac_sub_srcdir/configure  --help=recursive
869    elif test -f $ac_sub_srcdir/configure.ac ||
870           test -f $ac_sub_srcdir/configure.in; then
871      echo
872      $ac_configure --help
873    else
874      echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
875    fi
876    cd $ac_popdir
877  done
878fi
879
880test -n "$ac_init_help" && exit 0
881if $ac_init_version; then
882  cat <<\EOF
883
884Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
885Free Software Foundation, Inc.
886This configure script is free software; the Free Software Foundation
887gives unlimited permission to copy, distribute and modify it.
888EOF
889  exit 0
890fi
891exec 5>config.log
892cat >&5 <<EOF
893This file contains any messages produced by compilers while
894running configure, to aid debugging if configure makes a mistake.
895
896It was created by $as_me, which was
897generated by GNU Autoconf 2.52.  Invocation command line was
898
899  $ $0 $@
900
901EOF
902{
903cat <<_ASUNAME
904## ---------- ##
905## Platform.  ##
906## ---------- ##
907
908hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
909uname -m = `(uname -m) 2>/dev/null || echo unknown`
910uname -r = `(uname -r) 2>/dev/null || echo unknown`
911uname -s = `(uname -s) 2>/dev/null || echo unknown`
912uname -v = `(uname -v) 2>/dev/null || echo unknown`
913
914/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
915/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
916
917/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
918/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
919/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
920hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
921/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
922/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
923/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
924
925PATH = $PATH
926
927_ASUNAME
928} >&5
929
930cat >&5 <<EOF
931## ------------ ##
932## Core tests.  ##
933## ------------ ##
934
935EOF
936
937# Keep a trace of the command line.
938# Strip out --no-create and --no-recursion so they do not pile up.
939# Also quote any args containing shell meta-characters.
940ac_configure_args=
941ac_sep=
942for ac_arg
943do
944  case $ac_arg in
945  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
946  | --no-cr | --no-c) ;;
947  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
948  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
949  *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
950    ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
951    ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
952    ac_sep=" " ;;
953  *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
954     ac_sep=" " ;;
955  esac
956  # Get rid of the leading space.
957done
958
959# When interrupted or exit'd, cleanup temporary files, and complete
960# config.log.  We remove comments because anyway the quotes in there
961# would cause problems or look ugly.
962trap 'exit_status=$?
963  # Save into config.log some information that might help in debugging.
964  echo >&5
965  echo "## ----------------- ##" >&5
966  echo "## Cache variables.  ##" >&5
967  echo "## ----------------- ##" >&5
968  echo >&5
969  # The following way of writing the cache mishandles newlines in values,
970{
971  (set) 2>&1 |
972    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
973    *ac_space=\ *)
974      sed -n \
975        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
976    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
977      ;;
978    *)
979      sed -n \
980        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
981      ;;
982    esac;
983} >&5
984  sed "/^$/d" confdefs.h >conftest.log
985  if test -s conftest.log; then
986    echo >&5
987    echo "## ------------ ##" >&5
988    echo "## confdefs.h.  ##" >&5
989    echo "## ------------ ##" >&5
990    echo >&5
991    cat conftest.log >&5
992  fi
993  (echo; echo) >&5
994  test "$ac_signal" != 0 &&
995    echo "$as_me: caught signal $ac_signal" >&5
996  echo "$as_me: exit $exit_status" >&5
997  rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
998    exit $exit_status
999     ' 0
1000for ac_signal in 1 2 13 15; do
1001  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1002done
1003ac_signal=0
1004
1005# confdefs.h avoids OS command line length limits that DEFS can exceed.
1006rm -rf conftest* confdefs.h
1007# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1008echo >confdefs.h
1009
1010# Let the site file select an alternate cache file if it wants to.
1011# Prefer explicitly selected file to automatically selected ones.
1012if test -z "$CONFIG_SITE"; then
1013  if test "x$prefix" != xNONE; then
1014    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1015  else
1016    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1017  fi
1018fi
1019for ac_site_file in $CONFIG_SITE; do
1020  if test -r "$ac_site_file"; then
1021    { echo "$as_me:1021: loading site script $ac_site_file" >&5
1022echo "$as_me: loading site script $ac_site_file" >&6;}
1023    cat "$ac_site_file" >&5
1024    . "$ac_site_file"
1025  fi
1026done
1027
1028if test -r "$cache_file"; then
1029  # Some versions of bash will fail to source /dev/null (special
1030  # files actually), so we avoid doing that.
1031  if test -f "$cache_file"; then
1032    { echo "$as_me:1032: loading cache $cache_file" >&5
1033echo "$as_me: loading cache $cache_file" >&6;}
1034    case $cache_file in
1035      [\\/]* | ?:[\\/]* ) . $cache_file;;
1036      *)                      . ./$cache_file;;
1037    esac
1038  fi
1039else
1040  { echo "$as_me:1040: creating cache $cache_file" >&5
1041echo "$as_me: creating cache $cache_file" >&6;}
1042  >$cache_file
1043fi
1044
1045# Check that the precious variables saved in the cache have kept the same
1046# value.
1047ac_cache_corrupted=false
1048for ac_var in `(set) 2>&1 |
1049               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1050  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1051  eval ac_new_set=\$ac_env_${ac_var}_set
1052  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1053  eval ac_new_val="\$ac_env_${ac_var}_value"
1054  case $ac_old_set,$ac_new_set in
1055    set,)
1056      { echo "$as_me:1056: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1057echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1058      ac_cache_corrupted=: ;;
1059    ,set)
1060      { echo "$as_me:1060: error: \`$ac_var' was not set in the previous run" >&5
1061echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1062      ac_cache_corrupted=: ;;
1063    ,);;
1064    *)
1065      if test "x$ac_old_val" != "x$ac_new_val"; then
1066        { echo "$as_me:1066: error: \`$ac_var' has changed since the previous run:" >&5
1067echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1068        { echo "$as_me:1068:   former value:  $ac_old_val" >&5
1069echo "$as_me:   former value:  $ac_old_val" >&2;}
1070        { echo "$as_me:1070:   current value: $ac_new_val" >&5
1071echo "$as_me:   current value: $ac_new_val" >&2;}
1072        ac_cache_corrupted=:
1073      fi;;
1074  esac
1075  # Pass precious variables to config.status.  It doesn't matter if
1076  # we pass some twice (in addition to the command line arguments).
1077  if test "$ac_new_set" = set; then
1078    case $ac_new_val in
1079    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1080      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1081      ac_configure_args="$ac_configure_args '$ac_arg'"
1082      ;;
1083    *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1084       ;;
1085    esac
1086  fi
1087done
1088if $ac_cache_corrupted; then
1089  { echo "$as_me:1089: error: changes in the environment can compromise the build" >&5
1090echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1091  { { echo "$as_me:1091: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1092echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1093   { (exit 1); exit 1; }; }
1094fi
1095
1096ac_ext=c
1097ac_cpp='$CPP $CPPFLAGS'
1098ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1099ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1100ac_compiler_gnu=$ac_cv_c_compiler_gnu
1101
1102case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
1103  *c*,-n*) ECHO_N= ECHO_C='
1104' ECHO_T='	' ;;
1105  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1106  *)      ECHO_N= ECHO_C='\c' ECHO_T= ;;
1107esac
1108echo "#! $SHELL" >conftest.sh
1109echo  "exit 0"   >>conftest.sh
1110chmod +x conftest.sh
1111if { (echo "$as_me:1111: PATH=\".;.\"; conftest.sh") >&5
1112  (PATH=".;."; conftest.sh) 2>&5
1113  ac_status=$?
1114  echo "$as_me:1114: \$? = $ac_status" >&5
1115  (exit $ac_status); }; then
1116  ac_path_separator=';'
1117else
1118  ac_path_separator=:
1119fi
1120PATH_SEPARATOR="$ac_path_separator"
1121rm -f conftest.sh
1122
1123VERSION="5.0.3"
1124PDFLIB_MAJOR=5
1125PDFLIB_MINOR=0
1126PDFLIB_REVISION=3
1127
1128PDFLIB_LTCURRENT=4
1129PDFLIB_LTREVISION=1
1130PDFLIB_LTAGE=2
1131
1132LTVERSIONINFO="$PDFLIB_LTCURRENT:$PDFLIB_LTREVISION:$PDFLIB_LTAGE"
1133
1134PDFPWD=`pwd`
1135
1136PDFLIBNAME=pdf
1137MATHLIB="-lm"
1138
1139# Check whether --with-pdflibname or --without-pdflibname was given.
1140if test "${with_pdflibname+set}" = set; then
1141  withval="$with_pdflibname"
1142  PDFLIBNAME="$withval"
1143fi;
1144
1145# Check whether --with-libm or --without-libm was given.
1146if test "${with_libm+set}" = set; then
1147  withval="$with_libm"
1148  MATHLIB="$withval"
1149fi;
1150
1151ac_aux_dir=
1152for ac_dir in config $srcdir/config; do
1153  if test -f $ac_dir/install-sh; then
1154    ac_aux_dir=$ac_dir
1155    ac_install_sh="$ac_aux_dir/install-sh -c"
1156    break
1157  elif test -f $ac_dir/install.sh; then
1158    ac_aux_dir=$ac_dir
1159    ac_install_sh="$ac_aux_dir/install.sh -c"
1160    break
1161  elif test -f $ac_dir/shtool; then
1162    ac_aux_dir=$ac_dir
1163    ac_install_sh="$ac_aux_dir/shtool install -c"
1164    break
1165  fi
1166done
1167if test -z "$ac_aux_dir"; then
1168  { { echo "$as_me:1168: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1169echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1170   { (exit 1); exit 1; }; }
1171fi
1172ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1173ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1174ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1175
1176# libtool.m4 - Configure libtool for the host system. -*-Shell-script-*-
1177## Copyright 1996, 1997, 1998, 1999, 2000, 2001
1178## Free Software Foundation, Inc.
1179## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
1180##
1181## This program is free software; you can redistribute it and/or modify
1182## it under the terms of the GNU General Public License as published by
1183## the Free Software Foundation; either version 2 of the License, or
1184## (at your option) any later version.
1185##
1186## This program is distributed in the hope that it will be useful, but
1187## WITHOUT ANY WARRANTY; without even the implied warranty of
1188## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
1189## General Public License for more details.
1190##
1191## You should have received a copy of the GNU General Public License
1192## along with this program; if not, write to the Free Software
1193## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
1194##
1195## As a special exception to the GNU General Public License, if you
1196## distribute this file as part of a program that contains a
1197## configuration script generated by Autoconf, you may include it under
1198## the same distribution terms that you use for the rest of that program.
1199
1200# serial 46 AC_PROG_LIBTOOL
1201
1202# AC_LIBTOOL_HEADER_ASSERT
1203# ------------------------
1204# AC_LIBTOOL_HEADER_ASSERT
1205
1206# _LT_AC_CHECK_DLFCN
1207# --------------------
1208# _LT_AC_CHECK_DLFCN
1209
1210# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
1211# ---------------------------------
1212 # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
1213
1214# _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
1215# ---------------------------------
1216# _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
1217
1218# _LT_AC_PROG_ECHO_BACKSLASH
1219# --------------------------
1220# Add some code to the start of the generated configure script which
1221# will find an echo command which doesn't interpret backslashes.
1222# _LT_AC_PROG_ECHO_BACKSLASH
1223
1224# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
1225#                           ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
1226# ------------------------------------------------------------------
1227# _LT_AC_TRY_DLOPEN_SELF
1228
1229# AC_LIBTOOL_DLOPEN_SELF
1230# -------------------
1231# AC_LIBTOOL_DLOPEN_SELF
1232
1233# _LT_AC_LTCONFIG_HACK
1234
1235# AC_LIBTOOL_DLOPEN - enable checks for dlopen support
1236
1237# AC_LIBTOOL_WIN32_DLL - declare package support for building win32 dll's
1238
1239# AC_ENABLE_SHARED - implement the --enable-shared flag
1240# Usage: AC_ENABLE_SHARED[(DEFAULT)]
1241#   Where DEFAULT is either `yes' or `no'.  If omitted, it defaults to
1242#   `yes'.
1243
1244# AC_DISABLE_SHARED - set the default shared flag to --disable-shared
1245
1246# AC_ENABLE_STATIC - implement the --enable-static flag
1247# Usage: AC_ENABLE_STATIC[(DEFAULT)]
1248#   Where DEFAULT is either `yes' or `no'.  If omitted, it defaults to
1249#   `yes'.
1250
1251# AC_DISABLE_STATIC - set the default static flag to --disable-static
1252
1253# AC_ENABLE_FAST_INSTALL - implement the --enable-fast-install flag
1254# Usage: AC_ENABLE_FAST_INSTALL[(DEFAULT)]
1255#   Where DEFAULT is either `yes' or `no'.  If omitted, it defaults to
1256#   `yes'.
1257
1258# AC_DISABLE_FAST_INSTALL - set the default to --disable-fast-install
1259
1260# AC_LIBTOOL_PICMODE - implement the --with-pic flag
1261# Usage: AC_LIBTOOL_PICMODE[(MODE)]
1262#   Where MODE is either `yes' or `no'.  If omitted, it defaults to
1263#   `both'.
1264
1265# AC_PATH_TOOL_PREFIX - find a file program which can recognise shared library
1266
1267# AC_PATH_MAGIC - find a file program which can recognise a shared library
1268
1269# AC_PROG_LD - find the path to the GNU or non-GNU linker
1270
1271# AC_PROG_LD_GNU -
1272
1273# AC_PROG_LD_RELOAD_FLAG - find reload flag for linker
1274#   -- PORTME Some linkers may need a different reload flag.
1275
1276# AC_DEPLIBS_CHECK_METHOD - how to check for library dependencies
1277#  -- PORTME fill in with the dynamic library characteristics
1278
1279# AC_PROG_NM - find the path to a BSD-compatible name lister
1280
1281# AC_CHECK_LIBM - check for math library
1282
1283# AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for
1284# the libltdl convenience library and INCLTDL to the include flags for
1285# the libltdl header and adds --enable-ltdl-convenience to the
1286# configure arguments.  Note that LIBLTDL and INCLTDL are not
1287# AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called.  If DIR is not
1288# provided, it is assumed to be `libltdl'.  LIBLTDL will be prefixed
1289# with '${top_builddir}/' and INCLTDL will be prefixed with
1290# '${top_srcdir}/' (note the single quotes!).  If your package is not
1291# flat and you're not using automake, define top_builddir and
1292# top_srcdir appropriately in the Makefiles.
1293
1294# AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for
1295# the libltdl installable library and INCLTDL to the include flags for
1296# the libltdl header and adds --enable-ltdl-install to the configure
1297# arguments.  Note that LIBLTDL and INCLTDL are not AC_SUBSTed, nor is
1298# AC_CONFIG_SUBDIRS called.  If DIR is not provided and an installed
1299# libltdl is not found, it is assumed to be `libltdl'.  LIBLTDL will
1300# be prefixed with '${top_builddir}/' and INCLTDL will be prefixed
1301# with '${top_srcdir}/' (note the single quotes!).  If your package is
1302# not flat and you're not using automake, define top_builddir and
1303# top_srcdir appropriately in the Makefiles.
1304# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
1305
1306# old names
1307
1308# This is just to silence aclocal about the macro not being used
1309
1310# Make sure we can run config.sub.
1311$ac_config_sub sun4 >/dev/null 2>&1 ||
1312  { { echo "$as_me:1312: error: cannot run $ac_config_sub" >&5
1313echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1314   { (exit 1); exit 1; }; }
1315
1316echo "$as_me:1316: checking build system type" >&5
1317echo $ECHO_N "checking build system type... $ECHO_C" >&6
1318if test "${ac_cv_build+set}" = set; then
1319  echo $ECHO_N "(cached) $ECHO_C" >&6
1320else
1321  ac_cv_build_alias=$build_alias
1322test -z "$ac_cv_build_alias" &&
1323  ac_cv_build_alias=`$ac_config_guess`
1324test -z "$ac_cv_build_alias" &&
1325  { { echo "$as_me:1325: error: cannot guess build type; you must specify one" >&5
1326echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1327   { (exit 1); exit 1; }; }
1328ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1329  { { echo "$as_me:1329: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1330echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1331   { (exit 1); exit 1; }; }
1332
1333fi
1334echo "$as_me:1334: result: $ac_cv_build" >&5
1335echo "${ECHO_T}$ac_cv_build" >&6
1336build=$ac_cv_build
1337build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1338build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1339build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1340
1341echo "$as_me:1341: checking host system type" >&5
1342echo $ECHO_N "checking host system type... $ECHO_C" >&6
1343if test "${ac_cv_host+set}" = set; then
1344  echo $ECHO_N "(cached) $ECHO_C" >&6
1345else
1346  ac_cv_host_alias=$host_alias
1347test -z "$ac_cv_host_alias" &&
1348  ac_cv_host_alias=$ac_cv_build_alias
1349ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1350  { { echo "$as_me:1350: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1351echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1352   { (exit 1); exit 1; }; }
1353
1354fi
1355echo "$as_me:1355: result: $ac_cv_host" >&5
1356echo "${ECHO_T}$ac_cv_host" >&6
1357host=$ac_cv_host
1358host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1359host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1360host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1361
1362echo "$as_me:1362: checking MACHDEP" >&5
1363echo $ECHO_N "checking MACHDEP... $ECHO_C" >&6
1364if test -z "$MACHDEP"
1365then
1366    if test -f /usr/lib/NextStep/software_version; then
1367	set X `hostinfo | grep 'NeXT Mach.*:' | \
1368		sed -e 's/://' -e 's/\./_/'` && \
1369	ac_sys_system=next && ac_sys_release=$4
1370	MACHDEP="$ac_sys_system$ac_sys_release$ac_sys_cpu"
1371    else
1372	ac_sys_system=`uname -s`
1373	if test "$ac_sys_system" = "AIX" ; then
1374		ac_sys_release=`uname -v`
1375	else
1376		ac_sys_release=`uname -r`
1377	fi
1378	ac_md_system=`echo $ac_sys_system |
1379			   tr -d '/ ' | tr '[A-Z]' '[a-z]'`
1380	ac_md_release=`echo $ac_sys_release |
1381			   tr -d '/ ' | sed 's/\..*//'`
1382	MACHDEP="$ac_md_system$ac_md_release"
1383    fi
1384    case MACHDEP in
1385    '')	MACHDEP=unknown;;
1386    esac
1387fi
1388
1389echo "$as_me:1389: result: $MACHDEP" >&5
1390echo "${ECHO_T}$MACHDEP" >&6
1391
1392ac_ext=c
1393ac_cpp='$CPP $CPPFLAGS'
1394ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1395ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1396ac_compiler_gnu=$ac_cv_c_compiler_gnu
1397if test -n "$ac_tool_prefix"; then
1398  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1399set dummy ${ac_tool_prefix}gcc; ac_word=$2
1400echo "$as_me:1400: checking for $ac_word" >&5
1401echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1402if test "${ac_cv_prog_CC+set}" = set; then
1403  echo $ECHO_N "(cached) $ECHO_C" >&6
1404else
1405  if test -n "$CC"; then
1406  ac_cv_prog_CC="$CC" # Let the user override the test.
1407else
1408  ac_save_IFS=$IFS; IFS=$ac_path_separator
1409ac_dummy="$PATH"
1410for ac_dir in $ac_dummy; do
1411  IFS=$ac_save_IFS
1412  test -z "$ac_dir" && ac_dir=.
1413  $as_executable_p "$ac_dir/$ac_word" || continue
1414ac_cv_prog_CC="${ac_tool_prefix}gcc"
1415echo "$as_me:1415: found $ac_dir/$ac_word" >&5
1416break
1417done
1418
1419fi
1420fi
1421CC=$ac_cv_prog_CC
1422if test -n "$CC"; then
1423  echo "$as_me:1423: result: $CC" >&5
1424echo "${ECHO_T}$CC" >&6
1425else
1426  echo "$as_me:1426: result: no" >&5
1427echo "${ECHO_T}no" >&6
1428fi
1429
1430fi
1431if test -z "$ac_cv_prog_CC"; then
1432  ac_ct_CC=$CC
1433  # Extract the first word of "gcc", so it can be a program name with args.
1434set dummy gcc; ac_word=$2
1435echo "$as_me:1435: checking for $ac_word" >&5
1436echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1437if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1438  echo $ECHO_N "(cached) $ECHO_C" >&6
1439else
1440  if test -n "$ac_ct_CC"; then
1441  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1442else
1443  ac_save_IFS=$IFS; IFS=$ac_path_separator
1444ac_dummy="$PATH"
1445for ac_dir in $ac_dummy; do
1446  IFS=$ac_save_IFS
1447  test -z "$ac_dir" && ac_dir=.
1448  $as_executable_p "$ac_dir/$ac_word" || continue
1449ac_cv_prog_ac_ct_CC="gcc"
1450echo "$as_me:1450: found $ac_dir/$ac_word" >&5
1451break
1452done
1453
1454fi
1455fi
1456ac_ct_CC=$ac_cv_prog_ac_ct_CC
1457if test -n "$ac_ct_CC"; then
1458  echo "$as_me:1458: result: $ac_ct_CC" >&5
1459echo "${ECHO_T}$ac_ct_CC" >&6
1460else
1461  echo "$as_me:1461: result: no" >&5
1462echo "${ECHO_T}no" >&6
1463fi
1464
1465  CC=$ac_ct_CC
1466else
1467  CC="$ac_cv_prog_CC"
1468fi
1469
1470if test -z "$CC"; then
1471  if test -n "$ac_tool_prefix"; then
1472  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1473set dummy ${ac_tool_prefix}cc; ac_word=$2
1474echo "$as_me:1474: checking for $ac_word" >&5
1475echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1476if test "${ac_cv_prog_CC+set}" = set; then
1477  echo $ECHO_N "(cached) $ECHO_C" >&6
1478else
1479  if test -n "$CC"; then
1480  ac_cv_prog_CC="$CC" # Let the user override the test.
1481else
1482  ac_save_IFS=$IFS; IFS=$ac_path_separator
1483ac_dummy="$PATH"
1484for ac_dir in $ac_dummy; do
1485  IFS=$ac_save_IFS
1486  test -z "$ac_dir" && ac_dir=.
1487  $as_executable_p "$ac_dir/$ac_word" || continue
1488ac_cv_prog_CC="${ac_tool_prefix}cc"
1489echo "$as_me:1489: found $ac_dir/$ac_word" >&5
1490break
1491done
1492
1493fi
1494fi
1495CC=$ac_cv_prog_CC
1496if test -n "$CC"; then
1497  echo "$as_me:1497: result: $CC" >&5
1498echo "${ECHO_T}$CC" >&6
1499else
1500  echo "$as_me:1500: result: no" >&5
1501echo "${ECHO_T}no" >&6
1502fi
1503
1504fi
1505if test -z "$ac_cv_prog_CC"; then
1506  ac_ct_CC=$CC
1507  # Extract the first word of "cc", so it can be a program name with args.
1508set dummy cc; ac_word=$2
1509echo "$as_me:1509: checking for $ac_word" >&5
1510echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1511if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1512  echo $ECHO_N "(cached) $ECHO_C" >&6
1513else
1514  if test -n "$ac_ct_CC"; then
1515  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1516else
1517  ac_save_IFS=$IFS; IFS=$ac_path_separator
1518ac_dummy="$PATH"
1519for ac_dir in $ac_dummy; do
1520  IFS=$ac_save_IFS
1521  test -z "$ac_dir" && ac_dir=.
1522  $as_executable_p "$ac_dir/$ac_word" || continue
1523ac_cv_prog_ac_ct_CC="cc"
1524echo "$as_me:1524: found $ac_dir/$ac_word" >&5
1525break
1526done
1527
1528fi
1529fi
1530ac_ct_CC=$ac_cv_prog_ac_ct_CC
1531if test -n "$ac_ct_CC"; then
1532  echo "$as_me:1532: result: $ac_ct_CC" >&5
1533echo "${ECHO_T}$ac_ct_CC" >&6
1534else
1535  echo "$as_me:1535: result: no" >&5
1536echo "${ECHO_T}no" >&6
1537fi
1538
1539  CC=$ac_ct_CC
1540else
1541  CC="$ac_cv_prog_CC"
1542fi
1543
1544fi
1545if test -z "$CC"; then
1546  # Extract the first word of "cc", so it can be a program name with args.
1547set dummy cc; ac_word=$2
1548echo "$as_me:1548: checking for $ac_word" >&5
1549echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1550if test "${ac_cv_prog_CC+set}" = set; then
1551  echo $ECHO_N "(cached) $ECHO_C" >&6
1552else
1553  if test -n "$CC"; then
1554  ac_cv_prog_CC="$CC" # Let the user override the test.
1555else
1556  ac_prog_rejected=no
1557  ac_save_IFS=$IFS; IFS=$ac_path_separator
1558ac_dummy="$PATH"
1559for ac_dir in $ac_dummy; do
1560  IFS=$ac_save_IFS
1561  test -z "$ac_dir" && ac_dir=.
1562  $as_executable_p "$ac_dir/$ac_word" || continue
1563if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1564  ac_prog_rejected=yes
1565  continue
1566fi
1567ac_cv_prog_CC="cc"
1568echo "$as_me:1568: found $ac_dir/$ac_word" >&5
1569break
1570done
1571
1572if test $ac_prog_rejected = yes; then
1573  # We found a bogon in the path, so make sure we never use it.
1574  set dummy $ac_cv_prog_CC
1575  shift
1576  if test $# != 0; then
1577    # We chose a different compiler from the bogus one.
1578    # However, it has the same basename, so the bogon will be chosen
1579    # first if we set CC to just the basename; use the full file name.
1580    shift
1581    set dummy "$ac_dir/$ac_word" ${1+"$@"}
1582    shift
1583    ac_cv_prog_CC="$@"
1584  fi
1585fi
1586fi
1587fi
1588CC=$ac_cv_prog_CC
1589if test -n "$CC"; then
1590  echo "$as_me:1590: result: $CC" >&5
1591echo "${ECHO_T}$CC" >&6
1592else
1593  echo "$as_me:1593: result: no" >&5
1594echo "${ECHO_T}no" >&6
1595fi
1596
1597fi
1598if test -z "$CC"; then
1599  if test -n "$ac_tool_prefix"; then
1600  for ac_prog in cl
1601  do
1602    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1603set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1604echo "$as_me:1604: checking for $ac_word" >&5
1605echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1606if test "${ac_cv_prog_CC+set}" = set; then
1607  echo $ECHO_N "(cached) $ECHO_C" >&6
1608else
1609  if test -n "$CC"; then
1610  ac_cv_prog_CC="$CC" # Let the user override the test.
1611else
1612  ac_save_IFS=$IFS; IFS=$ac_path_separator
1613ac_dummy="$PATH"
1614for ac_dir in $ac_dummy; do
1615  IFS=$ac_save_IFS
1616  test -z "$ac_dir" && ac_dir=.
1617  $as_executable_p "$ac_dir/$ac_word" || continue
1618ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1619echo "$as_me:1619: found $ac_dir/$ac_word" >&5
1620break
1621done
1622
1623fi
1624fi
1625CC=$ac_cv_prog_CC
1626if test -n "$CC"; then
1627  echo "$as_me:1627: result: $CC" >&5
1628echo "${ECHO_T}$CC" >&6
1629else
1630  echo "$as_me:1630: result: no" >&5
1631echo "${ECHO_T}no" >&6
1632fi
1633
1634    test -n "$CC" && break
1635  done
1636fi
1637if test -z "$CC"; then
1638  ac_ct_CC=$CC
1639  for ac_prog in cl
1640do
1641  # Extract the first word of "$ac_prog", so it can be a program name with args.
1642set dummy $ac_prog; ac_word=$2
1643echo "$as_me:1643: checking for $ac_word" >&5
1644echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1645if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1646  echo $ECHO_N "(cached) $ECHO_C" >&6
1647else
1648  if test -n "$ac_ct_CC"; then
1649  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1650else
1651  ac_save_IFS=$IFS; IFS=$ac_path_separator
1652ac_dummy="$PATH"
1653for ac_dir in $ac_dummy; do
1654  IFS=$ac_save_IFS
1655  test -z "$ac_dir" && ac_dir=.
1656  $as_executable_p "$ac_dir/$ac_word" || continue
1657ac_cv_prog_ac_ct_CC="$ac_prog"
1658echo "$as_me:1658: found $ac_dir/$ac_word" >&5
1659break
1660done
1661
1662fi
1663fi
1664ac_ct_CC=$ac_cv_prog_ac_ct_CC
1665if test -n "$ac_ct_CC"; then
1666  echo "$as_me:1666: result: $ac_ct_CC" >&5
1667echo "${ECHO_T}$ac_ct_CC" >&6
1668else
1669  echo "$as_me:1669: result: no" >&5
1670echo "${ECHO_T}no" >&6
1671fi
1672
1673  test -n "$ac_ct_CC" && break
1674done
1675
1676  CC=$ac_ct_CC
1677fi
1678
1679fi
1680
1681test -z "$CC" && { { echo "$as_me:1681: error: no acceptable cc found in \$PATH" >&5
1682echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1683   { (exit 1); exit 1; }; }
1684
1685# Provide some information about the compiler.
1686echo "$as_me:1686:" \
1687     "checking for C compiler version" >&5
1688ac_compiler=`set X $ac_compile; echo $2`
1689{ (eval echo "$as_me:1689: \"$ac_compiler --version </dev/null >&5\"") >&5
1690  (eval $ac_compiler --version </dev/null >&5) 2>&5
1691  ac_status=$?
1692  echo "$as_me:1692: \$? = $ac_status" >&5
1693  (exit $ac_status); }
1694{ (eval echo "$as_me:1694: \"$ac_compiler -v </dev/null >&5\"") >&5
1695  (eval $ac_compiler -v </dev/null >&5) 2>&5
1696  ac_status=$?
1697  echo "$as_me:1697: \$? = $ac_status" >&5
1698  (exit $ac_status); }
1699{ (eval echo "$as_me:1699: \"$ac_compiler -V </dev/null >&5\"") >&5
1700  (eval $ac_compiler -V </dev/null >&5) 2>&5
1701  ac_status=$?
1702  echo "$as_me:1702: \$? = $ac_status" >&5
1703  (exit $ac_status); }
1704
1705cat >conftest.$ac_ext <<_ACEOF
1706#line 1706 "configure"
1707#include "confdefs.h"
1708
1709int
1710main ()
1711{
1712
1713  ;
1714  return 0;
1715}
1716_ACEOF
1717ac_clean_files_save=$ac_clean_files
1718ac_clean_files="$ac_clean_files a.out a.exe"
1719# Try to create an executable without -o first, disregard a.out.
1720# It will help us diagnose broken compilers, and finding out an intuition
1721# of exeext.
1722echo "$as_me:1722: checking for C compiler default output" >&5
1723echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1724ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1725if { (eval echo "$as_me:1725: \"$ac_link_default\"") >&5
1726  (eval $ac_link_default) 2>&5
1727  ac_status=$?
1728  echo "$as_me:1728: \$? = $ac_status" >&5
1729  (exit $ac_status); }; then
1730  # Find the output, starting from the most likely.  This scheme is
1731# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1732# resort.
1733for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1734                ls a.out conftest 2>/dev/null;
1735                ls a.* conftest.* 2>/dev/null`; do
1736  case $ac_file in
1737    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1738    a.out ) # We found the default executable, but exeext='' is most
1739            # certainly right.
1740            break;;
1741    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1742          # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1743          export ac_cv_exeext
1744          break;;
1745    * ) break;;
1746  esac
1747done
1748else
1749  echo "$as_me: failed program was:" >&5
1750cat conftest.$ac_ext >&5
1751{ { echo "$as_me:1751: error: C compiler cannot create executables" >&5
1752echo "$as_me: error: C compiler cannot create executables" >&2;}
1753   { (exit 77); exit 77; }; }
1754fi
1755
1756ac_exeext=$ac_cv_exeext
1757echo "$as_me:1757: result: $ac_file" >&5
1758echo "${ECHO_T}$ac_file" >&6
1759
1760# Check the compiler produces executables we can run.  If not, either
1761# the compiler is broken, or we cross compile.
1762echo "$as_me:1762: checking whether the C compiler works" >&5
1763echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1764# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1765# If not cross compiling, check that we can run a simple program.
1766if test "$cross_compiling" != yes; then
1767  if { ac_try='./$ac_file'
1768  { (eval echo "$as_me:1768: \"$ac_try\"") >&5
1769  (eval $ac_try) 2>&5
1770  ac_status=$?
1771  echo "$as_me:1771: \$? = $ac_status" >&5
1772  (exit $ac_status); }; }; then
1773    cross_compiling=no
1774  else
1775    if test "$cross_compiling" = maybe; then
1776	cross_compiling=yes
1777    else
1778	{ { echo "$as_me:1778: error: cannot run C compiled programs.
1779If you meant to cross compile, use \`--host'." >&5
1780echo "$as_me: error: cannot run C compiled programs.
1781If you meant to cross compile, use \`--host'." >&2;}
1782   { (exit 1); exit 1; }; }
1783    fi
1784  fi
1785fi
1786echo "$as_me:1786: result: yes" >&5
1787echo "${ECHO_T}yes" >&6
1788
1789rm -f a.out a.exe conftest$ac_cv_exeext
1790ac_clean_files=$ac_clean_files_save
1791# Check the compiler produces executables we can run.  If not, either
1792# the compiler is broken, or we cross compile.
1793echo "$as_me:1793: checking whether we are cross compiling" >&5
1794echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1795echo "$as_me:1795: result: $cross_compiling" >&5
1796echo "${ECHO_T}$cross_compiling" >&6
1797
1798echo "$as_me:1798: checking for executable suffix" >&5
1799echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1800if { (eval echo "$as_me:1800: \"$ac_link\"") >&5
1801  (eval $ac_link) 2>&5
1802  ac_status=$?
1803  echo "$as_me:1803: \$? = $ac_status" >&5
1804  (exit $ac_status); }; then
1805  # If both `conftest.exe' and `conftest' are `present' (well, observable)
1806# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1807# work properly (i.e., refer to `conftest.exe'), while it won't with
1808# `rm'.
1809for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1810  case $ac_file in
1811    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1812    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1813          export ac_cv_exeext
1814          break;;
1815    * ) break;;
1816  esac
1817done
1818else
1819  { { echo "$as_me:1819: error: cannot compute EXEEXT: cannot compile and link" >&5
1820echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1821   { (exit 1); exit 1; }; }
1822fi
1823
1824rm -f conftest$ac_cv_exeext
1825echo "$as_me:1825: result: $ac_cv_exeext" >&5
1826echo "${ECHO_T}$ac_cv_exeext" >&6
1827
1828rm -f conftest.$ac_ext
1829EXEEXT=$ac_cv_exeext
1830ac_exeext=$EXEEXT
1831echo "$as_me:1831: checking for object suffix" >&5
1832echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1833if test "${ac_cv_objext+set}" = set; then
1834  echo $ECHO_N "(cached) $ECHO_C" >&6
1835else
1836  cat >conftest.$ac_ext <<_ACEOF
1837#line 1837 "configure"
1838#include "confdefs.h"
1839
1840int
1841main ()
1842{
1843
1844  ;
1845  return 0;
1846}
1847_ACEOF
1848rm -f conftest.o conftest.obj
1849if { (eval echo "$as_me:1849: \"$ac_compile\"") >&5
1850  (eval $ac_compile) 2>&5
1851  ac_status=$?
1852  echo "$as_me:1852: \$? = $ac_status" >&5
1853  (exit $ac_status); }; then
1854  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1855  case $ac_file in
1856    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1857    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1858       break;;
1859  esac
1860done
1861else
1862  echo "$as_me: failed program was:" >&5
1863cat conftest.$ac_ext >&5
1864{ { echo "$as_me:1864: error: cannot compute OBJEXT: cannot compile" >&5
1865echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1866   { (exit 1); exit 1; }; }
1867fi
1868
1869rm -f conftest.$ac_cv_objext conftest.$ac_ext
1870fi
1871echo "$as_me:1871: result: $ac_cv_objext" >&5
1872echo "${ECHO_T}$ac_cv_objext" >&6
1873OBJEXT=$ac_cv_objext
1874ac_objext=$OBJEXT
1875echo "$as_me:1875: checking whether we are using the GNU C compiler" >&5
1876echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1877if test "${ac_cv_c_compiler_gnu+set}" = set; then
1878  echo $ECHO_N "(cached) $ECHO_C" >&6
1879else
1880  cat >conftest.$ac_ext <<_ACEOF
1881#line 1881 "configure"
1882#include "confdefs.h"
1883
1884int
1885main ()
1886{
1887#ifndef __GNUC__
1888       choke me
1889#endif
1890
1891  ;
1892  return 0;
1893}
1894_ACEOF
1895rm -f conftest.$ac_objext
1896if { (eval echo "$as_me:1896: \"$ac_compile\"") >&5
1897  (eval $ac_compile) 2>&5
1898  ac_status=$?
1899  echo "$as_me:1899: \$? = $ac_status" >&5
1900  (exit $ac_status); } &&
1901         { ac_try='test -s conftest.$ac_objext'
1902  { (eval echo "$as_me:1902: \"$ac_try\"") >&5
1903  (eval $ac_try) 2>&5
1904  ac_status=$?
1905  echo "$as_me:1905: \$? = $ac_status" >&5
1906  (exit $ac_status); }; }; then
1907  ac_compiler_gnu=yes
1908else
1909  echo "$as_me: failed program was:" >&5
1910cat conftest.$ac_ext >&5
1911ac_compiler_gnu=no
1912fi
1913rm -f conftest.$ac_objext conftest.$ac_ext
1914ac_cv_c_compiler_gnu=$ac_compiler_gnu
1915
1916fi
1917echo "$as_me:1917: result: $ac_cv_c_compiler_gnu" >&5
1918echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1919GCC=`test $ac_compiler_gnu = yes && echo yes`
1920ac_test_CFLAGS=${CFLAGS+set}
1921ac_save_CFLAGS=$CFLAGS
1922CFLAGS="-g"
1923echo "$as_me:1923: checking whether $CC accepts -g" >&5
1924echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1925if test "${ac_cv_prog_cc_g+set}" = set; then
1926  echo $ECHO_N "(cached) $ECHO_C" >&6
1927else
1928  cat >conftest.$ac_ext <<_ACEOF
1929#line 1929 "configure"
1930#include "confdefs.h"
1931
1932int
1933main ()
1934{
1935
1936  ;
1937  return 0;
1938}
1939_ACEOF
1940rm -f conftest.$ac_objext
1941if { (eval echo "$as_me:1941: \"$ac_compile\"") >&5
1942  (eval $ac_compile) 2>&5
1943  ac_status=$?
1944  echo "$as_me:1944: \$? = $ac_status" >&5
1945  (exit $ac_status); } &&
1946         { ac_try='test -s conftest.$ac_objext'
1947  { (eval echo "$as_me:1947: \"$ac_try\"") >&5
1948  (eval $ac_try) 2>&5
1949  ac_status=$?
1950  echo "$as_me:1950: \$? = $ac_status" >&5
1951  (exit $ac_status); }; }; then
1952  ac_cv_prog_cc_g=yes
1953else
1954  echo "$as_me: failed program was:" >&5
1955cat conftest.$ac_ext >&5
1956ac_cv_prog_cc_g=no
1957fi
1958rm -f conftest.$ac_objext conftest.$ac_ext
1959fi
1960echo "$as_me:1960: result: $ac_cv_prog_cc_g" >&5
1961echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1962if test "$ac_test_CFLAGS" = set; then
1963  CFLAGS=$ac_save_CFLAGS
1964elif test $ac_cv_prog_cc_g = yes; then
1965  if test "$GCC" = yes; then
1966    CFLAGS="-g -O2"
1967  else
1968    CFLAGS="-g"
1969  fi
1970else
1971  if test "$GCC" = yes; then
1972    CFLAGS="-O2"
1973  else
1974    CFLAGS=
1975  fi
1976fi
1977# Some people use a C++ compiler to compile C.  Since we use `exit',
1978# in C++ we need to declare it.  In case someone uses the same compiler
1979# for both compiling C and C++ we need to have the C++ compiler decide
1980# the declaration of exit, since it's the most demanding environment.
1981cat >conftest.$ac_ext <<_ACEOF
1982#ifndef __cplusplus
1983  choke me
1984#endif
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  for ac_declaration in \
1999   ''\
2000   '#include <stdlib.h>' \
2001   'extern "C" void std::exit (int) throw (); using std::exit;' \
2002   'extern "C" void std::exit (int); using std::exit;' \
2003   'extern "C" void exit (int) throw ();' \
2004   'extern "C" void exit (int);' \
2005   'void exit (int);'
2006do
2007  cat >conftest.$ac_ext <<_ACEOF
2008#line 2008 "configure"
2009#include "confdefs.h"
2010#include <stdlib.h>
2011$ac_declaration
2012int
2013main ()
2014{
2015exit (42);
2016  ;
2017  return 0;
2018}
2019_ACEOF
2020rm -f conftest.$ac_objext
2021if { (eval echo "$as_me:2021: \"$ac_compile\"") >&5
2022  (eval $ac_compile) 2>&5
2023  ac_status=$?
2024  echo "$as_me:2024: \$? = $ac_status" >&5
2025  (exit $ac_status); } &&
2026         { ac_try='test -s conftest.$ac_objext'
2027  { (eval echo "$as_me:2027: \"$ac_try\"") >&5
2028  (eval $ac_try) 2>&5
2029  ac_status=$?
2030  echo "$as_me:2030: \$? = $ac_status" >&5
2031  (exit $ac_status); }; }; then
2032  :
2033else
2034  echo "$as_me: failed program was:" >&5
2035cat conftest.$ac_ext >&5
2036continue
2037fi
2038rm -f conftest.$ac_objext conftest.$ac_ext
2039  cat >conftest.$ac_ext <<_ACEOF
2040#line 2040 "configure"
2041#include "confdefs.h"
2042$ac_declaration
2043int
2044main ()
2045{
2046exit (42);
2047  ;
2048  return 0;
2049}
2050_ACEOF
2051rm -f conftest.$ac_objext
2052if { (eval echo "$as_me:2052: \"$ac_compile\"") >&5
2053  (eval $ac_compile) 2>&5
2054  ac_status=$?
2055  echo "$as_me:2055: \$? = $ac_status" >&5
2056  (exit $ac_status); } &&
2057         { ac_try='test -s conftest.$ac_objext'
2058  { (eval echo "$as_me:2058: \"$ac_try\"") >&5
2059  (eval $ac_try) 2>&5
2060  ac_status=$?
2061  echo "$as_me:2061: \$? = $ac_status" >&5
2062  (exit $ac_status); }; }; then
2063  break
2064else
2065  echo "$as_me: failed program was:" >&5
2066cat conftest.$ac_ext >&5
2067fi
2068rm -f conftest.$ac_objext conftest.$ac_ext
2069done
2070rm -f conftest*
2071if test -n "$ac_declaration"; then
2072  echo '#ifdef __cplusplus' >>confdefs.h
2073  echo $ac_declaration      >>confdefs.h
2074  echo '#endif'             >>confdefs.h
2075fi
2076
2077else
2078  echo "$as_me: failed program was:" >&5
2079cat conftest.$ac_ext >&5
2080fi
2081rm -f conftest.$ac_objext conftest.$ac_ext
2082ac_ext=c
2083ac_cpp='$CPP $CPPFLAGS'
2084ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2085ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2086ac_compiler_gnu=$ac_cv_c_compiler_gnu
2087
2088ac_ext=c
2089ac_cpp='$CPP $CPPFLAGS'
2090ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2091ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2092ac_compiler_gnu=$ac_cv_c_compiler_gnu
2093echo "$as_me:2093: checking how to run the C preprocessor" >&5
2094echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2095# On Suns, sometimes $CPP names a directory.
2096if test -n "$CPP" && test -d "$CPP"; then
2097  CPP=
2098fi
2099if test -z "$CPP"; then
2100  if test "${ac_cv_prog_CPP+set}" = set; then
2101  echo $ECHO_N "(cached) $ECHO_C" >&6
2102else
2103      # Double quotes because CPP needs to be expanded
2104    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2105    do
2106      ac_preproc_ok=false
2107for ac_c_preproc_warn_flag in '' yes
2108do
2109  # Use a header file that comes with gcc, so configuring glibc
2110  # with a fresh cross-compiler works.
2111  # On the NeXT, cc -E runs the code through the compiler's parser,
2112  # not just through cpp. "Syntax error" is here to catch this case.
2113  cat >conftest.$ac_ext <<_ACEOF
2114#line 2114 "configure"
2115#include "confdefs.h"
2116#include <assert.h>
2117                     Syntax error
2118_ACEOF
2119if { (eval echo "$as_me:2119: \"$ac_cpp conftest.$ac_ext\"") >&5
2120  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2121  ac_status=$?
2122  egrep -v '^ *\+' conftest.er1 >conftest.err
2123  rm -f conftest.er1
2124  cat conftest.err >&5
2125  echo "$as_me:2125: \$? = $ac_status" >&5
2126  (exit $ac_status); } >/dev/null; then
2127  if test -s conftest.err; then
2128    ac_cpp_err=$ac_c_preproc_warn_flag
2129  else
2130    ac_cpp_err=
2131  fi
2132else
2133  ac_cpp_err=yes
2134fi
2135if test -z "$ac_cpp_err"; then
2136  :
2137else
2138  echo "$as_me: failed program was:" >&5
2139  cat conftest.$ac_ext >&5
2140  # Broken: fails on valid input.
2141continue
2142fi
2143rm -f conftest.err conftest.$ac_ext
2144
2145  # OK, works on sane cases.  Now check whether non-existent headers
2146  # can be detected and how.
2147  cat >conftest.$ac_ext <<_ACEOF
2148#line 2148 "configure"
2149#include "confdefs.h"
2150#include <ac_nonexistent.h>
2151_ACEOF
2152if { (eval echo "$as_me:2152: \"$ac_cpp conftest.$ac_ext\"") >&5
2153  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2154  ac_status=$?
2155  egrep -v '^ *\+' conftest.er1 >conftest.err
2156  rm -f conftest.er1
2157  cat conftest.err >&5
2158  echo "$as_me:2158: \$? = $ac_status" >&5
2159  (exit $ac_status); } >/dev/null; then
2160  if test -s conftest.err; then
2161    ac_cpp_err=$ac_c_preproc_warn_flag
2162  else
2163    ac_cpp_err=
2164  fi
2165else
2166  ac_cpp_err=yes
2167fi
2168if test -z "$ac_cpp_err"; then
2169  # Broken: success on invalid input.
2170continue
2171else
2172  echo "$as_me: failed program was:" >&5
2173  cat conftest.$ac_ext >&5
2174  # Passes both tests.
2175ac_preproc_ok=:
2176break
2177fi
2178rm -f conftest.err conftest.$ac_ext
2179
2180done
2181# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2182rm -f conftest.err conftest.$ac_ext
2183if $ac_preproc_ok; then
2184  break
2185fi
2186
2187    done
2188    ac_cv_prog_CPP=$CPP
2189
2190fi
2191  CPP=$ac_cv_prog_CPP
2192else
2193  ac_cv_prog_CPP=$CPP
2194fi
2195echo "$as_me:2195: result: $CPP" >&5
2196echo "${ECHO_T}$CPP" >&6
2197ac_preproc_ok=false
2198for ac_c_preproc_warn_flag in '' yes
2199do
2200  # Use a header file that comes with gcc, so configuring glibc
2201  # with a fresh cross-compiler works.
2202  # On the NeXT, cc -E runs the code through the compiler's parser,
2203  # not just through cpp. "Syntax error" is here to catch this case.
2204  cat >conftest.$ac_ext <<_ACEOF
2205#line 2205 "configure"
2206#include "confdefs.h"
2207#include <assert.h>
2208                     Syntax error
2209_ACEOF
2210if { (eval echo "$as_me:2210: \"$ac_cpp conftest.$ac_ext\"") >&5
2211  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2212  ac_status=$?
2213  egrep -v '^ *\+' conftest.er1 >conftest.err
2214  rm -f conftest.er1
2215  cat conftest.err >&5
2216  echo "$as_me:2216: \$? = $ac_status" >&5
2217  (exit $ac_status); } >/dev/null; then
2218  if test -s conftest.err; then
2219    ac_cpp_err=$ac_c_preproc_warn_flag
2220  else
2221    ac_cpp_err=
2222  fi
2223else
2224  ac_cpp_err=yes
2225fi
2226if test -z "$ac_cpp_err"; then
2227  :
2228else
2229  echo "$as_me: failed program was:" >&5
2230  cat conftest.$ac_ext >&5
2231  # Broken: fails on valid input.
2232continue
2233fi
2234rm -f conftest.err conftest.$ac_ext
2235
2236  # OK, works on sane cases.  Now check whether non-existent headers
2237  # can be detected and how.
2238  cat >conftest.$ac_ext <<_ACEOF
2239#line 2239 "configure"
2240#include "confdefs.h"
2241#include <ac_nonexistent.h>
2242_ACEOF
2243if { (eval echo "$as_me:2243: \"$ac_cpp conftest.$ac_ext\"") >&5
2244  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2245  ac_status=$?
2246  egrep -v '^ *\+' conftest.er1 >conftest.err
2247  rm -f conftest.er1
2248  cat conftest.err >&5
2249  echo "$as_me:2249: \$? = $ac_status" >&5
2250  (exit $ac_status); } >/dev/null; then
2251  if test -s conftest.err; then
2252    ac_cpp_err=$ac_c_preproc_warn_flag
2253  else
2254    ac_cpp_err=
2255  fi
2256else
2257  ac_cpp_err=yes
2258fi
2259if test -z "$ac_cpp_err"; then
2260  # Broken: success on invalid input.
2261continue
2262else
2263  echo "$as_me: failed program was:" >&5
2264  cat conftest.$ac_ext >&5
2265  # Passes both tests.
2266ac_preproc_ok=:
2267break
2268fi
2269rm -f conftest.err conftest.$ac_ext
2270
2271done
2272# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2273rm -f conftest.err conftest.$ac_ext
2274if $ac_preproc_ok; then
2275  :
2276else
2277  { { echo "$as_me:2277: error: C preprocessor \"$CPP\" fails sanity check" >&5
2278echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2279   { (exit 1); exit 1; }; }
2280fi
2281
2282ac_ext=c
2283ac_cpp='$CPP $CPPFLAGS'
2284ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2285ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2286ac_compiler_gnu=$ac_cv_c_compiler_gnu
2287
2288# Find a good install program.  We prefer a C program (faster),
2289# so one script is as good as another.  But avoid the broken or
2290# incompatible versions:
2291# SysV /etc/install, /usr/sbin/install
2292# SunOS /usr/etc/install
2293# IRIX /sbin/install
2294# AIX /bin/install
2295# AmigaOS /C/install, which installs bootblocks on floppy discs
2296# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2297# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2298# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2299# ./install, which can be erroneously created by make from ./install.sh.
2300echo "$as_me:2300: checking for a BSD compatible install" >&5
2301echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2302if test -z "$INSTALL"; then
2303if test "${ac_cv_path_install+set}" = set; then
2304  echo $ECHO_N "(cached) $ECHO_C" >&6
2305else
2306    ac_save_IFS=$IFS; IFS=$ac_path_separator
2307  for ac_dir in $PATH; do
2308    IFS=$ac_save_IFS
2309    # Account for people who put trailing slashes in PATH elements.
2310    case $ac_dir/ in
2311    / | ./ | .// | /cC/* \
2312    | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
2313    | /usr/ucb/* ) ;;
2314    *)
2315      # OSF1 and SCO ODT 3.0 have their own names for install.
2316      # Don't use installbsd from OSF since it installs stuff as root
2317      # by default.
2318      for ac_prog in ginstall scoinst install; do
2319        if $as_executable_p "$ac_dir/$ac_prog"; then
2320	  if test $ac_prog = install &&
2321            grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2322	    # AIX install.  It has an incompatible calling convention.
2323	    :
2324	  elif test $ac_prog = install &&
2325	    grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
2326	    # program-specific install script used by HP pwplus--don't use.
2327	    :
2328	  else
2329	    ac_cv_path_install="$ac_dir/$ac_prog -c"
2330	    break 2
2331	  fi
2332	fi
2333      done
2334      ;;
2335    esac
2336  done
2337
2338fi
2339  if test "${ac_cv_path_install+set}" = set; then
2340    INSTALL=$ac_cv_path_install
2341  else
2342    # As a last resort, use the slow shell script.  We don't cache a
2343    # path for INSTALL within a source directory, because that will
2344    # break other packages using the cache if that directory is
2345    # removed, or if the path is relative.
2346    INSTALL=$ac_install_sh
2347  fi
2348fi
2349echo "$as_me:2349: result: $INSTALL" >&5
2350echo "${ECHO_T}$INSTALL" >&6
2351
2352# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2353# It thinks the first close brace ends the variable substitution.
2354test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2355
2356test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2357
2358test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2359
2360SHELL="/bin/sh"
2361RM="rm -rf"
2362
2363INCLUDES=
2364
2365PLATFORM_ID=$ac_sys_system
2366PLATFORM="-DPDF_PLATFORM=\\\"\"$ac_sys_system\"\\\""
2367
2368case $ac_sys_system in
2369            aix*|AIX*)
2370	DEFINES="$DEFINES -DAIX";;
2371
2372    cyg*|CYG*) DEFINES="$DEFINES -U_WIN32 -UWIN32 -U__WIN32__ -U_Windows";;
2373
2374        hp*|HP*)
2375	if test "$GCC" = ""; then
2376	    DEFINES="$DEFINES -Ae"
2377	fi;;
2378
2379            osf1*|OSF1*)
2380	if test "$GCC" = ""; then
2381	    DEFINES="$DEFINES -pthread"
2382	fi;;
2383
2384    SunOS*)
2385        ac_sys_arch=`uname -p`
2386	if test "$ac_sys_arch" = "i386" ; then
2387	      PLATFORM_ID="SunOS-i386"
2388	      PLATFORM="-DPDF_PLATFORM=\\\"\"sunOS\"\\\""
2389        fi
2390
2391	if test "$GCC" = ""; then
2392	    DEFINES="$DEFINES -xmemalign"
2393	fi
2394	;;
2395
2396                rhapsody|Rhapsody*)
2397	PLATFORM="-DPDF_PLATFORM=\\\"\"Mac OS X Server\"\\\""
2398	with_gnu_ld=yes
2399	MATHLIB="";;
2400
2401    darwin|Darwin*)
2402	PLATFORM="-DPDF_PLATFORM=\\\"\"Mac OS X\"\\\""
2403	PLATFORM_ID="MacOSX"
2404	with_gnu_ld=yes
2405	MATHLIB="";;
2406
2407        linux|Linux*)
2408       ac_sys_arch=`uname -m`
2409       if test "$ac_sys_arch" = "s390" ; then
2410	   PLATFORM_ID="zSeries-Linux"
2411	   PLATFORM="-DPDF_PLATFORM=\\\"\"ZSeries Linux\"\\\""
2412       fi
2413       if test "$ac_sys_arch" = "ppc" ; then
2414	   PLATFORM_ID="ppc-Linux"
2415	   PLATFORM="-DPDF_PLATFORM=\\\"\"ppc Linux\"\\\""
2416       fi
2417       # neccesary to be compatible with glibc 2.3.2 on RH 9
2418       if test "$ac_sys_arch" = "i686" ; then
2419	   DEFINES="$DEFINES -D__NO_CTYPE"
2420       fi
2421       if test "$ac_sys_arch" = "ia64" ; then
2422           PLATFORM_ID="Linux-ia64"
2423           PLATFORM="-DPDF_PLATFORM=\\\"\"Linux-ia64\"\\\""
2424       fi
2425       ;;
2426
2427    FreeBSD)
2428       tmp_vers=`uname -r`
2429       case $tmp_vers in
2430       5.*)
2431           PLATFORM="-DPDF_PLATFORM=\\\"\"FreeBSD5\"\\\"" ;;
2432       esac
2433       ;;
2434
2435    OpenBSD)
2436       tmp_vers=`uname -r`
2437       if test "$tmp_vers" = "3.4" ; then
2438           PLATFORM="-DPDF_PLATFORM=\\\"\"OpenBSD34\"\\\""
2439       fi
2440       ;;
2441
2442        *OS/390*)
2443	DEFINES="$DEFINES -DOS390"
2444	CC=c89
2445	LD=c89
2446	PLATFORM_ID=OS390
2447        PLATFORM="-DPDF_PLATFORM=\\\"\"zSeries USS\"\\\""
2448	# add special compile options for java2 on s390
2449	set X `java -version 2>&1 | grep '1.3.'` && \
2450	DEFINES="$DEFINES -W \"c,langlvl(extended)\" -W \"c,float(ieee)\""
2451	;;
2452
2453    *)	;;
2454esac
2455
2456GENERATED_FILES=""
2457
2458WITH_DEBUG=no
2459
2460WITH_XPLINK=no
2461# Check whether --enable-xplink or --disable-xplink was given.
2462if test "${enable_xplink+set}" = set; then
2463  enableval="$enable_xplink"
2464  if test "$enableval" = "yes" ; then
2465    WITH_XPLINK=yes
2466fi
2467fi;
2468
2469if test "$WITH_XPLINK" = "yes"; then
2470    case $ac_sys_system in
2471    *OS/390*)
2472	DEFINES="-W \"c,xplink\" -W \"l,xplink\" -1 -W c,expo,dll -W c,GONUM $DEFINES"
2473	;;
2474    *)	;;
2475    esac
2476fi
2477
2478WITH_SHARED=yes
2479
2480WITH_PROFILE=no
2481
2482# Check whether --enable-debug or --disable-debug was given.
2483if test "${enable_debug+set}" = set; then
2484  enableval="$enable_debug"
2485  if test "$enableval" = "yes" ; then
2486    WITH_DEBUG=yes
2487fi
2488fi;
2489
2490# Check whether --enable-profile or --disable-profile was given.
2491if test "${enable_profile+set}" = set; then
2492  enableval="$enable_profile"
2493  if test "$enableval" = "yes" ; then
2494    WITH_PROFILE=yes
2495fi
2496fi;
2497
2498# Check whether --enable-shared or --disable-shared was given.
2499if test "${enable_shared+set}" = set; then
2500  enableval="$enable_shared"
2501  p=${PACKAGE-default}
2502case $enableval in
2503yes) enable_shared=yes ;;
2504no) enable_shared=no ;;
2505*)
2506  enable_shared=no
2507  # Look at the argument we got.  We use all the common list separators.
2508  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2509  for pkg in $enableval; do
2510    if test "X$pkg" = "X$p"; then
2511      enable_shared=yes
2512    fi
2513  done
2514  IFS="$ac_save_ifs"
2515  ;;
2516esac
2517else
2518  enable_shared=yes
2519fi;
2520# Check whether --enable-static or --disable-static was given.
2521if test "${enable_static+set}" = set; then
2522  enableval="$enable_static"
2523  p=${PACKAGE-default}
2524case $enableval in
2525yes) enable_static=yes ;;
2526no) enable_static=no ;;
2527*)
2528  enable_static=no
2529  # Look at the argument we got.  We use all the common list separators.
2530  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2531  for pkg in $enableval; do
2532    if test "X$pkg" = "X$p"; then
2533      enable_static=yes
2534    fi
2535  done
2536  IFS="$ac_save_ifs"
2537  ;;
2538esac
2539else
2540  enable_static=yes
2541fi;
2542# Check whether --enable-fast-install or --disable-fast-install was given.
2543if test "${enable_fast_install+set}" = set; then
2544  enableval="$enable_fast_install"
2545  p=${PACKAGE-default}
2546case $enableval in
2547yes) enable_fast_install=yes ;;
2548no) enable_fast_install=no ;;
2549*)
2550  enable_fast_install=no
2551  # Look at the argument we got.  We use all the common list separators.
2552  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2553  for pkg in $enableval; do
2554    if test "X$pkg" = "X$p"; then
2555      enable_fast_install=yes
2556    fi
2557  done
2558  IFS="$ac_save_ifs"
2559  ;;
2560esac
2561else
2562  enable_fast_install=yes
2563fi;
2564# Find the correct PATH separator.  Usually this is `:', but
2565# DJGPP uses `;' like DOS.
2566if test "X${PATH_SEPARATOR+set}" != Xset; then
2567  UNAME=${UNAME-`uname 2>/dev/null`}
2568  case X$UNAME in
2569    *-DOS) lt_cv_sys_path_separator=';' ;;
2570    *)     lt_cv_sys_path_separator=':' ;;
2571  esac
2572  PATH_SEPARATOR=$lt_cv_sys_path_separator
2573fi
2574
2575# Check whether --with-gnu-ld or --without-gnu-ld was given.
2576if test "${with_gnu_ld+set}" = set; then
2577  withval="$with_gnu_ld"
2578  test "$withval" = no || with_gnu_ld=yes
2579else
2580  with_gnu_ld=no
2581fi;
2582ac_prog=ld
2583if test "$GCC" = yes; then
2584  # Check if gcc -print-prog-name=ld gives a path.
2585  echo "$as_me:2585: checking for ld used by GCC" >&5
2586echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
2587  case $host in
2588  *-*-mingw*)
2589    # gcc leaves a trailing carriage return which upsets mingw
2590    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2591  *)
2592    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2593  esac
2594  case $ac_prog in
2595    # Accept absolute paths.
2596    [\\/]* | [A-Za-z]:[\\/]*)
2597      re_direlt='/[^/][^/]*/\.\./'
2598      # Canonicalize the path of ld
2599      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2600      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2601	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2602      done
2603      test -z "$LD" && LD="$ac_prog"
2604      ;;
2605  "")
2606    # If it fails, then pretend we aren't using GCC.
2607    ac_prog=ld
2608    ;;
2609  *)
2610    # If it is relative, then search for the first ld in PATH.
2611    with_gnu_ld=unknown
2612    ;;
2613  esac
2614elif test "$with_gnu_ld" = yes; then
2615  echo "$as_me:2615: checking for GNU ld" >&5
2616echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
2617else
2618  echo "$as_me:2618: checking for non-GNU ld" >&5
2619echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
2620fi
2621if test "${lt_cv_path_LD+set}" = set; then
2622  echo $ECHO_N "(cached) $ECHO_C" >&6
2623else
2624  if test -z "$LD"; then
2625  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2626  for ac_dir in $PATH; do
2627    test -z "$ac_dir" && ac_dir=.
2628    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2629      lt_cv_path_LD="$ac_dir/$ac_prog"
2630      # Check to see if the program is GNU ld.  I'd rather use --version,
2631      # but apparently some GNU ld's only accept -v.
2632      # Break only if it was the GNU/non-GNU ld that we prefer.
2633      if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2634	test "$with_gnu_ld" != no && break
2635      else
2636	test "$with_gnu_ld" != yes && break
2637      fi
2638    fi
2639  done
2640  IFS="$ac_save_ifs"
2641else
2642  lt_cv_path_LD="$LD" # Let the user override the test with a path.
2643fi
2644fi
2645
2646LD="$lt_cv_path_LD"
2647if test -n "$LD"; then
2648  echo "$as_me:2648: result: $LD" >&5
2649echo "${ECHO_T}$LD" >&6
2650else
2651  echo "$as_me:2651: result: no" >&5
2652echo "${ECHO_T}no" >&6
2653fi
2654test -z "$LD" && { { echo "$as_me:2654: error: no acceptable ld found in \$PATH" >&5
2655echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
2656   { (exit 1); exit 1; }; }
2657echo "$as_me:2657: checking if the linker ($LD) is GNU ld" >&5
2658echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
2659if test "${lt_cv_prog_gnu_ld+set}" = set; then
2660  echo $ECHO_N "(cached) $ECHO_C" >&6
2661else
2662  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2663if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2664  lt_cv_prog_gnu_ld=yes
2665else
2666  lt_cv_prog_gnu_ld=no
2667fi
2668fi
2669echo "$as_me:2669: result: $lt_cv_prog_gnu_ld" >&5
2670echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
2671with_gnu_ld=$lt_cv_prog_gnu_ld
2672
2673echo "$as_me:2673: checking for $LD option to reload object files" >&5
2674echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
2675if test "${lt_cv_ld_reload_flag+set}" = set; then
2676  echo $ECHO_N "(cached) $ECHO_C" >&6
2677else
2678  lt_cv_ld_reload_flag='-r'
2679fi
2680echo "$as_me:2680: result: $lt_cv_ld_reload_flag" >&5
2681echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
2682reload_flag=$lt_cv_ld_reload_flag
2683test -n "$reload_flag" && reload_flag=" $reload_flag"
2684
2685echo "$as_me:2685: checking for BSD-compatible nm" >&5
2686echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
2687if test "${lt_cv_path_NM+set}" = set; then
2688  echo $ECHO_N "(cached) $ECHO_C" >&6
2689else
2690  if test -n "$NM"; then
2691  # Let the user override the test.
2692  lt_cv_path_NM="$NM"
2693else
2694  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2695  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2696    test -z "$ac_dir" && ac_dir=.
2697    tmp_nm=$ac_dir/${ac_tool_prefix}nm
2698    if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
2699      # Check to see if the nm accepts a BSD-compat flag.
2700      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2701      #   nm: unknown option "B" ignored
2702      # Tru64's nm complains that /dev/null is an invalid object file
2703      if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
2704	lt_cv_path_NM="$tmp_nm -B"
2705	break
2706      elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2707	lt_cv_path_NM="$tmp_nm -p"
2708	break
2709      else
2710	lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2711	continue # so that we can try to find one that supports BSD flags
2712      fi
2713    fi
2714  done
2715  IFS="$ac_save_ifs"
2716  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2717fi
2718fi
2719
2720NM="$lt_cv_path_NM"
2721echo "$as_me:2721: result: $NM" >&5
2722echo "${ECHO_T}$NM" >&6
2723
2724echo "$as_me:2724: checking whether ln -s works" >&5
2725echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2726LN_S=$as_ln_s
2727if test "$LN_S" = "ln -s"; then
2728  echo "$as_me:2728: result: yes" >&5
2729echo "${ECHO_T}yes" >&6
2730else
2731  echo "$as_me:2731: result: no, using $LN_S" >&5
2732echo "${ECHO_T}no, using $LN_S" >&6
2733fi
2734
2735echo "$as_me:2735: checking how to recognise dependant libraries" >&5
2736echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
2737if test "${lt_cv_deplibs_check_method+set}" = set; then
2738  echo $ECHO_N "(cached) $ECHO_C" >&6
2739else
2740  lt_cv_file_magic_cmd='$MAGIC_CMD'
2741lt_cv_file_magic_test_file=
2742lt_cv_deplibs_check_method='unknown'
2743# Need to set the preceding variable on all platforms that support
2744# interlibrary dependencies.
2745# 'none' -- dependencies not supported.
2746# `unknown' -- same as none, but documents that we really don't know.
2747# 'pass_all' -- all dependencies passed with no checks.
2748# 'test_compile' -- check by making test program.
2749# 'file_magic [[regex]]' -- check by looking for files in library path
2750# which responds to the $file_magic_cmd with a given egrep regex.
2751# If you have `file' or equivalent on your system and you're not sure
2752# whether `pass_all' will *always* work, you probably want this one.
2753
2754case $host_os in
2755aix4* | aix5*)
2756  lt_cv_deplibs_check_method=pass_all
2757  ;;
2758
2759beos*)
2760  lt_cv_deplibs_check_method=pass_all
2761  ;;
2762
2763bsdi4*)
2764  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
2765  lt_cv_file_magic_cmd='/usr/bin/file -L'
2766  lt_cv_file_magic_test_file=/shlib/libc.so
2767  ;;
2768
2769cygwin* | mingw* | pw32*)
2770  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2771  lt_cv_file_magic_cmd='$OBJDUMP -f'
2772  ;;
2773
2774darwin* | rhapsody*)
2775  lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
2776  lt_cv_file_magic_cmd='/usr/bin/file -L'
2777  case "$host_os" in
2778  rhapsody* | darwin1.[012])
2779    lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
2780    ;;
2781  *) # Darwin 1.3 on
2782    lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
2783    ;;
2784  esac
2785  ;;
2786
2787freebsd*)
2788  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2789    case $host_cpu in
2790    i*86 )
2791      # Not sure whether the presence of OpenBSD here was a mistake.
2792      # Let's accept both of them until this is cleared up.
2793      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
2794      lt_cv_file_magic_cmd=/usr/bin/file
2795      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2796      ;;
2797    esac
2798  else
2799    lt_cv_deplibs_check_method=pass_all
2800  fi
2801  ;;
2802
2803gnu*)
2804  lt_cv_deplibs_check_method=pass_all
2805  ;;
2806
2807hpux10.20*|hpux11*)
2808  lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2809  lt_cv_file_magic_cmd=/usr/bin/file
2810  lt_cv_file_magic_test_file=/usr/lib/libc.sl
2811  ;;
2812
2813irix5* | irix6*)
2814  case $host_os in
2815  irix5*)
2816    # this will be overridden with pass_all, but let us keep it just in case
2817    lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2818    ;;
2819  *)
2820    case $LD in
2821    *-32|*"-32 ") libmagic=32-bit;;
2822    *-n32|*"-n32 ") libmagic=N32;;
2823    *-64|*"-64 ") libmagic=64-bit;;
2824    *) libmagic=never-match;;
2825    esac
2826    # this will be overridden with pass_all, but let us keep it just in case
2827    lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2828    ;;
2829  esac
2830  lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2831  lt_cv_deplibs_check_method=pass_all
2832  ;;
2833
2834# This must be Linux ELF.
2835linux-gnu*)
2836  case $host_cpu in
2837  alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
2838    lt_cv_deplibs_check_method=pass_all ;;
2839  *)
2840    # glibc up to 2.1.1 does not perform some relocations on ARM
2841    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2842  esac
2843  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2844  ;;
2845
2846netbsd*)
2847  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2848    lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2849  else
2850    lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2851  fi
2852  ;;
2853
2854newos6*)
2855  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2856  lt_cv_file_magic_cmd=/usr/bin/file
2857  lt_cv_file_magic_test_file=/usr/lib/libnls.so
2858  ;;
2859
2860openbsd*)
2861  lt_cv_file_magic_cmd=/usr/bin/file
2862  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2863  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2864    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
2865  else
2866    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
2867  fi
2868  ;;
2869
2870osf3* | osf4* | osf5*)
2871  # this will be overridden with pass_all, but let us keep it just in case
2872  lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2873  lt_cv_file_magic_test_file=/shlib/libc.so
2874  lt_cv_deplibs_check_method=pass_all
2875  ;;
2876
2877sco3.2v5*)
2878  lt_cv_deplibs_check_method=pass_all
2879  ;;
2880
2881solaris*)
2882  lt_cv_deplibs_check_method=pass_all
2883  lt_cv_file_magic_test_file=/lib/libc.so
2884  ;;
2885
2886sysv5uw[78]* | sysv4*uw2*)
2887  lt_cv_deplibs_check_method=pass_all
2888  ;;
2889
2890sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2891  case $host_vendor in
2892  motorola)
2893    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]'
2894    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2895    ;;
2896  ncr)
2897    lt_cv_deplibs_check_method=pass_all
2898    ;;
2899  sequent)
2900    lt_cv_file_magic_cmd='/bin/file'
2901    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
2902    ;;
2903  sni)
2904    lt_cv_file_magic_cmd='/bin/file'
2905    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
2906    lt_cv_file_magic_test_file=/lib/libc.so
2907    ;;
2908  esac
2909  ;;
2910esac
2911
2912fi
2913echo "$as_me:2913: result: $lt_cv_deplibs_check_method" >&5
2914echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
2915file_magic_cmd=$lt_cv_file_magic_cmd
2916deplibs_check_method=$lt_cv_deplibs_check_method
2917
2918# Check for command to grab the raw symbol name followed by C symbol from nm.
2919echo "$as_me:2919: checking command to parse $NM output" >&5
2920echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
2921if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
2922  echo $ECHO_N "(cached) $ECHO_C" >&6
2923else
2924
2925# These are sane defaults that work on at least a few old systems.
2926# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
2927
2928# Character class describing NM global symbol codes.
2929symcode='[BCDEGRST]'
2930
2931# Regexp to match symbols that can be accessed directly from C.
2932sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
2933
2934# Transform the above into a raw symbol and a C symbol.
2935symxfrm='\1 \2\3 \3'
2936
2937# Transform an extracted symbol line into a proper C declaration
2938lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
2939
2940# Transform an extracted symbol line into symbol name and symbol address
2941lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
2942
2943# Define system-specific variables.
2944case $host_os in
2945aix*)
2946  symcode='[BCDT]'
2947  ;;
2948cygwin* | mingw* | pw32*)
2949  symcode='[ABCDGISTW]'
2950  ;;
2951hpux*) # Its linker distinguishes data from code symbols
2952  lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
2953  lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
2954  ;;
2955irix*)
2956  symcode='[BCDEGRST]'
2957  ;;
2958solaris* | sysv5*)
2959  symcode='[BDT]'
2960  ;;
2961sysv4)
2962  symcode='[DFNSTU]'
2963  ;;
2964esac
2965
2966# Handle CRLF in mingw tool chain
2967opt_cr=
2968case $host_os in
2969mingw*)
2970  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
2971  ;;
2972esac
2973
2974# If we're using GNU nm, then use its standard symbol codes.
2975if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
2976  symcode='[ABCDGISTW]'
2977fi
2978
2979# Try without a prefix undercore, then with it.
2980for ac_symprfx in "" "_"; do
2981
2982  # Write the raw and C identifiers.
2983lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
2984
2985  # Check to see that the pipe works correctly.
2986  pipe_works=no
2987  rm -f conftest*
2988  cat > conftest.$ac_ext <<EOF
2989#ifdef __cplusplus
2990extern "C" {
2991#endif
2992char nm_test_var;
2993void nm_test_func(){}
2994#ifdef __cplusplus
2995}
2996#endif
2997int main(){nm_test_var='a';nm_test_func();return(0);}
2998EOF
2999
3000  if { (eval echo "$as_me:3000: \"$ac_compile\"") >&5
3001  (eval $ac_compile) 2>&5
3002  ac_status=$?
3003  echo "$as_me:3003: \$? = $ac_status" >&5
3004  (exit $ac_status); }; then
3005    # Now try to grab the symbols.
3006    nlist=conftest.nm
3007    if { (eval echo "$as_me:3007: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
3008  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3009  ac_status=$?
3010  echo "$as_me:3010: \$? = $ac_status" >&5
3011  (exit $ac_status); } && test -s "$nlist"; then
3012      # Try sorting and uniquifying the output.
3013      if sort "$nlist" | uniq > "$nlist"T; then
3014	mv -f "$nlist"T "$nlist"
3015      else
3016	rm -f "$nlist"T
3017      fi
3018
3019      # Make sure that we snagged all the symbols we need.
3020      if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3021	if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3022	  cat <<EOF > conftest.$ac_ext
3023#ifdef __cplusplus
3024extern "C" {
3025#endif
3026
3027EOF
3028	  # Now generate the symbol file.
3029	  eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
3030
3031	  cat <<EOF >> conftest.$ac_ext
3032#if defined (__STDC__) && __STDC__
3033# define lt_ptr void *
3034#else
3035# define lt_ptr char *
3036# define const
3037#endif
3038
3039/* The mapping between symbol names and symbols. */
3040const struct {
3041  const char *name;
3042  lt_ptr address;
3043}
3044lt_preloaded_symbols[] =
3045{
3046EOF
3047	  sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
3048	  cat <<\EOF >> conftest.$ac_ext
3049  {0, (lt_ptr) 0}
3050};
3051
3052#ifdef __cplusplus
3053}
3054#endif
3055EOF
3056	  # Now try linking the two files.
3057	  mv conftest.$ac_objext conftstm.$ac_objext
3058	  save_LIBS="$LIBS"
3059	  save_CFLAGS="$CFLAGS"
3060	  LIBS="conftstm.$ac_objext"
3061	  CFLAGS="$CFLAGS$no_builtin_flag"
3062	  if { (eval echo "$as_me:3062: \"$ac_link\"") >&5
3063  (eval $ac_link) 2>&5
3064  ac_status=$?
3065  echo "$as_me:3065: \$? = $ac_status" >&5
3066  (exit $ac_status); } && test -s conftest; then
3067	    pipe_works=yes
3068	  fi
3069	  LIBS="$save_LIBS"
3070	  CFLAGS="$save_CFLAGS"
3071	else
3072	  echo "cannot find nm_test_func in $nlist" >&5
3073	fi
3074      else
3075	echo "cannot find nm_test_var in $nlist" >&5
3076      fi
3077    else
3078      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
3079    fi
3080  else
3081    echo "$progname: failed program was:" >&5
3082    cat conftest.$ac_ext >&5
3083  fi
3084  rm -f conftest* conftst*
3085
3086  # Do not use the global_symbol_pipe unless it works.
3087  if test "$pipe_works" = yes; then
3088    break
3089  else
3090    lt_cv_sys_global_symbol_pipe=
3091  fi
3092done
3093
3094fi
3095
3096global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
3097if test -z "$lt_cv_sys_global_symbol_pipe"; then
3098  global_symbol_to_cdecl=
3099  global_symbol_to_c_name_address=
3100else
3101  global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
3102  global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
3103fi
3104if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
3105then
3106  echo "$as_me:3106: result: failed" >&5
3107echo "${ECHO_T}failed" >&6
3108else
3109  echo "$as_me:3109: result: ok" >&5
3110echo "${ECHO_T}ok" >&6
3111fi
3112
3113for ac_header in dlfcn.h
3114do
3115as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3116echo "$as_me:3116: checking for $ac_header" >&5
3117echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3118if eval "test \"\${$as_ac_Header+set}\" = set"; then
3119  echo $ECHO_N "(cached) $ECHO_C" >&6
3120else
3121  cat >conftest.$ac_ext <<_ACEOF
3122#line 3122 "configure"
3123#include "confdefs.h"
3124#include <$ac_header>
3125_ACEOF
3126if { (eval echo "$as_me:3126: \"$ac_cpp conftest.$ac_ext\"") >&5
3127  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3128  ac_status=$?
3129  egrep -v '^ *\+' conftest.er1 >conftest.err
3130  rm -f conftest.er1
3131  cat conftest.err >&5
3132  echo "$as_me:3132: \$? = $ac_status" >&5
3133  (exit $ac_status); } >/dev/null; then
3134  if test -s conftest.err; then
3135    ac_cpp_err=$ac_c_preproc_warn_flag
3136  else
3137    ac_cpp_err=
3138  fi
3139else
3140  ac_cpp_err=yes
3141fi
3142if test -z "$ac_cpp_err"; then
3143  eval "$as_ac_Header=yes"
3144else
3145  echo "$as_me: failed program was:" >&5
3146  cat conftest.$ac_ext >&5
3147  eval "$as_ac_Header=no"
3148fi
3149rm -f conftest.err conftest.$ac_ext
3150fi
3151echo "$as_me:3151: result: `eval echo '${'$as_ac_Header'}'`" >&5
3152echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3153if test `eval echo '${'$as_ac_Header'}'` = yes; then
3154  cat >>confdefs.h <<EOF
3155#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3156EOF
3157
3158fi
3159done
3160
3161# Only perform the check for file, if the check method requires it
3162case $deplibs_check_method in
3163file_magic*)
3164  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3165    echo "$as_me:3165: checking for ${ac_tool_prefix}file" >&5
3166echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3167if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3168  echo $ECHO_N "(cached) $ECHO_C" >&6
3169else
3170  case $MAGIC_CMD in
3171  /*)
3172  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3173  ;;
3174  ?:/*)
3175  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3176  ;;
3177  *)
3178  ac_save_MAGIC_CMD="$MAGIC_CMD"
3179  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3180  ac_dummy="/usr/bin:$PATH"
3181  for ac_dir in $ac_dummy; do
3182    test -z "$ac_dir" && ac_dir=.
3183    if test -f $ac_dir/${ac_tool_prefix}file; then
3184      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3185      if test -n "$file_magic_test_file"; then
3186	case $deplibs_check_method in
3187	"file_magic "*)
3188	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3189	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3190	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3191	    egrep "$file_magic_regex" > /dev/null; then
3192	    :
3193	  else
3194	    cat <<EOF 1>&2
3195
3196*** Warning: the command libtool uses to detect shared libraries,
3197*** $file_magic_cmd, produces output that libtool cannot recognize.
3198*** The result is that libtool may fail to recognize shared libraries
3199*** as such.  This will affect the creation of libtool libraries that
3200*** depend on shared libraries, but programs linked with such libtool
3201*** libraries will work regardless of this problem.  Nevertheless, you
3202*** may want to report the problem to your system manager and/or to
3203*** bug-libtool@gnu.org
3204
3205EOF
3206	  fi ;;
3207	esac
3208      fi
3209      break
3210    fi
3211  done
3212  IFS="$ac_save_ifs"
3213  MAGIC_CMD="$ac_save_MAGIC_CMD"
3214  ;;
3215esac
3216fi
3217
3218MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3219if test -n "$MAGIC_CMD"; then
3220  echo "$as_me:3220: result: $MAGIC_CMD" >&5
3221echo "${ECHO_T}$MAGIC_CMD" >&6
3222else
3223  echo "$as_me:3223: result: no" >&5
3224echo "${ECHO_T}no" >&6
3225fi
3226
3227if test -z "$lt_cv_path_MAGIC_CMD"; then
3228  if test -n "$ac_tool_prefix"; then
3229    echo "$as_me:3229: checking for file" >&5
3230echo $ECHO_N "checking for file... $ECHO_C" >&6
3231if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3232  echo $ECHO_N "(cached) $ECHO_C" >&6
3233else
3234  case $MAGIC_CMD in
3235  /*)
3236  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3237  ;;
3238  ?:/*)
3239  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3240  ;;
3241  *)
3242  ac_save_MAGIC_CMD="$MAGIC_CMD"
3243  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3244  ac_dummy="/usr/bin:$PATH"
3245  for ac_dir in $ac_dummy; do
3246    test -z "$ac_dir" && ac_dir=.
3247    if test -f $ac_dir/file; then
3248      lt_cv_path_MAGIC_CMD="$ac_dir/file"
3249      if test -n "$file_magic_test_file"; then
3250	case $deplibs_check_method in
3251	"file_magic "*)
3252	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3253	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3254	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3255	    egrep "$file_magic_regex" > /dev/null; then
3256	    :
3257	  else
3258	    cat <<EOF 1>&2
3259
3260*** Warning: the command libtool uses to detect shared libraries,
3261*** $file_magic_cmd, produces output that libtool cannot recognize.
3262*** The result is that libtool may fail to recognize shared libraries
3263*** as such.  This will affect the creation of libtool libraries that
3264*** depend on shared libraries, but programs linked with such libtool
3265*** libraries will work regardless of this problem.  Nevertheless, you
3266*** may want to report the problem to your system manager and/or to
3267*** bug-libtool@gnu.org
3268
3269EOF
3270	  fi ;;
3271	esac
3272      fi
3273      break
3274    fi
3275  done
3276  IFS="$ac_save_ifs"
3277  MAGIC_CMD="$ac_save_MAGIC_CMD"
3278  ;;
3279esac
3280fi
3281
3282MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3283if test -n "$MAGIC_CMD"; then
3284  echo "$as_me:3284: result: $MAGIC_CMD" >&5
3285echo "${ECHO_T}$MAGIC_CMD" >&6
3286else
3287  echo "$as_me:3287: result: no" >&5
3288echo "${ECHO_T}no" >&6
3289fi
3290
3291  else
3292    MAGIC_CMD=:
3293  fi
3294fi
3295
3296  fi
3297  ;;
3298esac
3299
3300if test -n "$ac_tool_prefix"; then
3301  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3302set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3303echo "$as_me:3303: checking for $ac_word" >&5
3304echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3305if test "${ac_cv_prog_RANLIB+set}" = set; then
3306  echo $ECHO_N "(cached) $ECHO_C" >&6
3307else
3308  if test -n "$RANLIB"; then
3309  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3310else
3311  ac_save_IFS=$IFS; IFS=$ac_path_separator
3312ac_dummy="$PATH"
3313for ac_dir in $ac_dummy; do
3314  IFS=$ac_save_IFS
3315  test -z "$ac_dir" && ac_dir=.
3316  $as_executable_p "$ac_dir/$ac_word" || continue
3317ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3318echo "$as_me:3318: found $ac_dir/$ac_word" >&5
3319break
3320done
3321
3322fi
3323fi
3324RANLIB=$ac_cv_prog_RANLIB
3325if test -n "$RANLIB"; then
3326  echo "$as_me:3326: result: $RANLIB" >&5
3327echo "${ECHO_T}$RANLIB" >&6
3328else
3329  echo "$as_me:3329: result: no" >&5
3330echo "${ECHO_T}no" >&6
3331fi
3332
3333fi
3334if test -z "$ac_cv_prog_RANLIB"; then
3335  ac_ct_RANLIB=$RANLIB
3336  # Extract the first word of "ranlib", so it can be a program name with args.
3337set dummy ranlib; ac_word=$2
3338echo "$as_me:3338: checking for $ac_word" >&5
3339echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3340if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3341  echo $ECHO_N "(cached) $ECHO_C" >&6
3342else
3343  if test -n "$ac_ct_RANLIB"; then
3344  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3345else
3346  ac_save_IFS=$IFS; IFS=$ac_path_separator
3347ac_dummy="$PATH"
3348for ac_dir in $ac_dummy; do
3349  IFS=$ac_save_IFS
3350  test -z "$ac_dir" && ac_dir=.
3351  $as_executable_p "$ac_dir/$ac_word" || continue
3352ac_cv_prog_ac_ct_RANLIB="ranlib"
3353echo "$as_me:3353: found $ac_dir/$ac_word" >&5
3354break
3355done
3356
3357  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3358fi
3359fi
3360ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3361if test -n "$ac_ct_RANLIB"; then
3362  echo "$as_me:3362: result: $ac_ct_RANLIB" >&5
3363echo "${ECHO_T}$ac_ct_RANLIB" >&6
3364else
3365  echo "$as_me:3365: result: no" >&5
3366echo "${ECHO_T}no" >&6
3367fi
3368
3369  RANLIB=$ac_ct_RANLIB
3370else
3371  RANLIB="$ac_cv_prog_RANLIB"
3372fi
3373
3374if test -n "$ac_tool_prefix"; then
3375  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3376set dummy ${ac_tool_prefix}strip; ac_word=$2
3377echo "$as_me:3377: checking for $ac_word" >&5
3378echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3379if test "${ac_cv_prog_STRIP+set}" = set; then
3380  echo $ECHO_N "(cached) $ECHO_C" >&6
3381else
3382  if test -n "$STRIP"; then
3383  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3384else
3385  ac_save_IFS=$IFS; IFS=$ac_path_separator
3386ac_dummy="$PATH"
3387for ac_dir in $ac_dummy; do
3388  IFS=$ac_save_IFS
3389  test -z "$ac_dir" && ac_dir=.
3390  $as_executable_p "$ac_dir/$ac_word" || continue
3391ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3392echo "$as_me:3392: found $ac_dir/$ac_word" >&5
3393break
3394done
3395
3396fi
3397fi
3398STRIP=$ac_cv_prog_STRIP
3399if test -n "$STRIP"; then
3400  echo "$as_me:3400: result: $STRIP" >&5
3401echo "${ECHO_T}$STRIP" >&6
3402else
3403  echo "$as_me:3403: result: no" >&5
3404echo "${ECHO_T}no" >&6
3405fi
3406
3407fi
3408if test -z "$ac_cv_prog_STRIP"; then
3409  ac_ct_STRIP=$STRIP
3410  # Extract the first word of "strip", so it can be a program name with args.
3411set dummy strip; ac_word=$2
3412echo "$as_me:3412: checking for $ac_word" >&5
3413echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3414if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3415  echo $ECHO_N "(cached) $ECHO_C" >&6
3416else
3417  if test -n "$ac_ct_STRIP"; then
3418  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3419else
3420  ac_save_IFS=$IFS; IFS=$ac_path_separator
3421ac_dummy="$PATH"
3422for ac_dir in $ac_dummy; do
3423  IFS=$ac_save_IFS
3424  test -z "$ac_dir" && ac_dir=.
3425  $as_executable_p "$ac_dir/$ac_word" || continue
3426ac_cv_prog_ac_ct_STRIP="strip"
3427echo "$as_me:3427: found $ac_dir/$ac_word" >&5
3428break
3429done
3430
3431  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3432fi
3433fi
3434ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3435if test -n "$ac_ct_STRIP"; then
3436  echo "$as_me:3436: result: $ac_ct_STRIP" >&5
3437echo "${ECHO_T}$ac_ct_STRIP" >&6
3438else
3439  echo "$as_me:3439: result: no" >&5
3440echo "${ECHO_T}no" >&6
3441fi
3442
3443  STRIP=$ac_ct_STRIP
3444else
3445  STRIP="$ac_cv_prog_STRIP"
3446fi
3447
3448enable_dlopen=yes
3449enable_win32_dll=yes
3450
3451# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3452if test "${enable_libtool_lock+set}" = set; then
3453  enableval="$enable_libtool_lock"
3454
3455fi;
3456test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3457
3458# Some flags need to be propagated to the compiler or linker for good
3459# libtool support.
3460case $host in
3461*-*-irix6*)
3462  # Find out which ABI we are using.
3463  echo '#line 3463 "configure"' > conftest.$ac_ext
3464  if { (eval echo "$as_me:3464: \"$ac_compile\"") >&5
3465  (eval $ac_compile) 2>&5
3466  ac_status=$?
3467  echo "$as_me:3467: \$? = $ac_status" >&5
3468  (exit $ac_status); }; then
3469    case `/usr/bin/file conftest.$ac_objext` in
3470    *32-bit*)
3471      LD="${LD-ld} -32"
3472      ;;
3473    *N32*)
3474      LD="${LD-ld} -n32"
3475      ;;
3476    *64-bit*)
3477      LD="${LD-ld} -64"
3478      ;;
3479    esac
3480  fi
3481  rm -rf conftest*
3482  ;;
3483
3484*-*-sco3.2v5*)
3485  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3486  SAVE_CFLAGS="$CFLAGS"
3487  CFLAGS="$CFLAGS -belf"
3488  echo "$as_me:3488: checking whether the C compiler needs -belf" >&5
3489echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3490if test "${lt_cv_cc_needs_belf+set}" = set; then
3491  echo $ECHO_N "(cached) $ECHO_C" >&6
3492else
3493
3494     ac_ext=c
3495ac_cpp='$CPP $CPPFLAGS'
3496ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3497ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3498ac_compiler_gnu=$ac_cv_c_compiler_gnu
3499
3500     cat >conftest.$ac_ext <<_ACEOF
3501#line 3501 "configure"
3502#include "confdefs.h"
3503
3504int
3505main ()
3506{
3507
3508  ;
3509  return 0;
3510}
3511_ACEOF
3512rm -f conftest.$ac_objext conftest$ac_exeext
3513if { (eval echo "$as_me:3513: \"$ac_link\"") >&5
3514  (eval $ac_link) 2>&5
3515  ac_status=$?
3516  echo "$as_me:3516: \$? = $ac_status" >&5
3517  (exit $ac_status); } &&
3518         { ac_try='test -s conftest$ac_exeext'
3519  { (eval echo "$as_me:3519: \"$ac_try\"") >&5
3520  (eval $ac_try) 2>&5
3521  ac_status=$?
3522  echo "$as_me:3522: \$? = $ac_status" >&5
3523  (exit $ac_status); }; }; then
3524  lt_cv_cc_needs_belf=yes
3525else
3526  echo "$as_me: failed program was:" >&5
3527cat conftest.$ac_ext >&5
3528lt_cv_cc_needs_belf=no
3529fi
3530rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3531     ac_ext=c
3532ac_cpp='$CPP $CPPFLAGS'
3533ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3534ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3535ac_compiler_gnu=$ac_cv_c_compiler_gnu
3536
3537fi
3538echo "$as_me:3538: result: $lt_cv_cc_needs_belf" >&5
3539echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3540  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3541    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3542    CFLAGS="$SAVE_CFLAGS"
3543  fi
3544  ;;
3545
3546*-*-cygwin* | *-*-mingw* | *-*-pw32*)
3547  if test -n "$ac_tool_prefix"; then
3548  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
3549set dummy ${ac_tool_prefix}dlltool; ac_word=$2
3550echo "$as_me:3550: checking for $ac_word" >&5
3551echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3552if test "${ac_cv_prog_DLLTOOL+set}" = set; then
3553  echo $ECHO_N "(cached) $ECHO_C" >&6
3554else
3555  if test -n "$DLLTOOL"; then
3556  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
3557else
3558  ac_save_IFS=$IFS; IFS=$ac_path_separator
3559ac_dummy="$PATH"
3560for ac_dir in $ac_dummy; do
3561  IFS=$ac_save_IFS
3562  test -z "$ac_dir" && ac_dir=.
3563  $as_executable_p "$ac_dir/$ac_word" || continue
3564ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
3565echo "$as_me:3565: found $ac_dir/$ac_word" >&5
3566break
3567done
3568
3569fi
3570fi
3571DLLTOOL=$ac_cv_prog_DLLTOOL
3572if test -n "$DLLTOOL"; then
3573  echo "$as_me:3573: result: $DLLTOOL" >&5
3574echo "${ECHO_T}$DLLTOOL" >&6
3575else
3576  echo "$as_me:3576: result: no" >&5
3577echo "${ECHO_T}no" >&6
3578fi
3579
3580fi
3581if test -z "$ac_cv_prog_DLLTOOL"; then
3582  ac_ct_DLLTOOL=$DLLTOOL
3583  # Extract the first word of "dlltool", so it can be a program name with args.
3584set dummy dlltool; ac_word=$2
3585echo "$as_me:3585: checking for $ac_word" >&5
3586echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3587if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
3588  echo $ECHO_N "(cached) $ECHO_C" >&6
3589else
3590  if test -n "$ac_ct_DLLTOOL"; then
3591  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
3592else
3593  ac_save_IFS=$IFS; IFS=$ac_path_separator
3594ac_dummy="$PATH"
3595for ac_dir in $ac_dummy; do
3596  IFS=$ac_save_IFS
3597  test -z "$ac_dir" && ac_dir=.
3598  $as_executable_p "$ac_dir/$ac_word" || continue
3599ac_cv_prog_ac_ct_DLLTOOL="dlltool"
3600echo "$as_me:3600: found $ac_dir/$ac_word" >&5
3601break
3602done
3603
3604  test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
3605fi
3606fi
3607ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
3608if test -n "$ac_ct_DLLTOOL"; then
3609  echo "$as_me:3609: result: $ac_ct_DLLTOOL" >&5
3610echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
3611else
3612  echo "$as_me:3612: result: no" >&5
3613echo "${ECHO_T}no" >&6
3614fi
3615
3616  DLLTOOL=$ac_ct_DLLTOOL
3617else
3618  DLLTOOL="$ac_cv_prog_DLLTOOL"
3619fi
3620
3621  if test -n "$ac_tool_prefix"; then
3622  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
3623set dummy ${ac_tool_prefix}as; ac_word=$2
3624echo "$as_me:3624: checking for $ac_word" >&5
3625echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3626if test "${ac_cv_prog_AS+set}" = set; then
3627  echo $ECHO_N "(cached) $ECHO_C" >&6
3628else
3629  if test -n "$AS"; then
3630  ac_cv_prog_AS="$AS" # Let the user override the test.
3631else
3632  ac_save_IFS=$IFS; IFS=$ac_path_separator
3633ac_dummy="$PATH"
3634for ac_dir in $ac_dummy; do
3635  IFS=$ac_save_IFS
3636  test -z "$ac_dir" && ac_dir=.
3637  $as_executable_p "$ac_dir/$ac_word" || continue
3638ac_cv_prog_AS="${ac_tool_prefix}as"
3639echo "$as_me:3639: found $ac_dir/$ac_word" >&5
3640break
3641done
3642
3643fi
3644fi
3645AS=$ac_cv_prog_AS
3646if test -n "$AS"; then
3647  echo "$as_me:3647: result: $AS" >&5
3648echo "${ECHO_T}$AS" >&6
3649else
3650  echo "$as_me:3650: result: no" >&5
3651echo "${ECHO_T}no" >&6
3652fi
3653
3654fi
3655if test -z "$ac_cv_prog_AS"; then
3656  ac_ct_AS=$AS
3657  # Extract the first word of "as", so it can be a program name with args.
3658set dummy as; ac_word=$2
3659echo "$as_me:3659: checking for $ac_word" >&5
3660echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3661if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
3662  echo $ECHO_N "(cached) $ECHO_C" >&6
3663else
3664  if test -n "$ac_ct_AS"; then
3665  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
3666else
3667  ac_save_IFS=$IFS; IFS=$ac_path_separator
3668ac_dummy="$PATH"
3669for ac_dir in $ac_dummy; do
3670  IFS=$ac_save_IFS
3671  test -z "$ac_dir" && ac_dir=.
3672  $as_executable_p "$ac_dir/$ac_word" || continue
3673ac_cv_prog_ac_ct_AS="as"
3674echo "$as_me:3674: found $ac_dir/$ac_word" >&5
3675break
3676done
3677
3678  test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
3679fi
3680fi
3681ac_ct_AS=$ac_cv_prog_ac_ct_AS
3682if test -n "$ac_ct_AS"; then
3683  echo "$as_me:3683: result: $ac_ct_AS" >&5
3684echo "${ECHO_T}$ac_ct_AS" >&6
3685else
3686  echo "$as_me:3686: result: no" >&5
3687echo "${ECHO_T}no" >&6
3688fi
3689
3690  AS=$ac_ct_AS
3691else
3692  AS="$ac_cv_prog_AS"
3693fi
3694
3695  if test -n "$ac_tool_prefix"; then
3696  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3697set dummy ${ac_tool_prefix}objdump; ac_word=$2
3698echo "$as_me:3698: checking for $ac_word" >&5
3699echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3700if test "${ac_cv_prog_OBJDUMP+set}" = set; then
3701  echo $ECHO_N "(cached) $ECHO_C" >&6
3702else
3703  if test -n "$OBJDUMP"; then
3704  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3705else
3706  ac_save_IFS=$IFS; IFS=$ac_path_separator
3707ac_dummy="$PATH"
3708for ac_dir in $ac_dummy; do
3709  IFS=$ac_save_IFS
3710  test -z "$ac_dir" && ac_dir=.
3711  $as_executable_p "$ac_dir/$ac_word" || continue
3712ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
3713echo "$as_me:3713: found $ac_dir/$ac_word" >&5
3714break
3715done
3716
3717fi
3718fi
3719OBJDUMP=$ac_cv_prog_OBJDUMP
3720if test -n "$OBJDUMP"; then
3721  echo "$as_me:3721: result: $OBJDUMP" >&5
3722echo "${ECHO_T}$OBJDUMP" >&6
3723else
3724  echo "$as_me:3724: result: no" >&5
3725echo "${ECHO_T}no" >&6
3726fi
3727
3728fi
3729if test -z "$ac_cv_prog_OBJDUMP"; then
3730  ac_ct_OBJDUMP=$OBJDUMP
3731  # Extract the first word of "objdump", so it can be a program name with args.
3732set dummy objdump; ac_word=$2
3733echo "$as_me:3733: checking for $ac_word" >&5
3734echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3735if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
3736  echo $ECHO_N "(cached) $ECHO_C" >&6
3737else
3738  if test -n "$ac_ct_OBJDUMP"; then
3739  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
3740else
3741  ac_save_IFS=$IFS; IFS=$ac_path_separator
3742ac_dummy="$PATH"
3743for ac_dir in $ac_dummy; do
3744  IFS=$ac_save_IFS
3745  test -z "$ac_dir" && ac_dir=.
3746  $as_executable_p "$ac_dir/$ac_word" || continue
3747ac_cv_prog_ac_ct_OBJDUMP="objdump"
3748echo "$as_me:3748: found $ac_dir/$ac_word" >&5
3749break
3750done
3751
3752  test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
3753fi
3754fi
3755ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
3756if test -n "$ac_ct_OBJDUMP"; then
3757  echo "$as_me:3757: result: $ac_ct_OBJDUMP" >&5
3758echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
3759else
3760  echo "$as_me:3760: result: no" >&5
3761echo "${ECHO_T}no" >&6
3762fi
3763
3764  OBJDUMP=$ac_ct_OBJDUMP
3765else
3766  OBJDUMP="$ac_cv_prog_OBJDUMP"
3767fi
3768
3769  # recent cygwin and mingw systems supply a stub DllMain which the user
3770  # can override, but on older systems we have to supply one
3771  echo "$as_me:3771: checking if libtool should supply DllMain function" >&5
3772echo $ECHO_N "checking if libtool should supply DllMain function... $ECHO_C" >&6
3773if test "${lt_cv_need_dllmain+set}" = set; then
3774  echo $ECHO_N "(cached) $ECHO_C" >&6
3775else
3776  cat >conftest.$ac_ext <<_ACEOF
3777#line 3777 "configure"
3778#include "confdefs.h"
3779
3780int
3781main ()
3782{
3783extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
3784      DllMain (0, 0, 0);
3785  ;
3786  return 0;
3787}
3788_ACEOF
3789rm -f conftest.$ac_objext conftest$ac_exeext
3790if { (eval echo "$as_me:3790: \"$ac_link\"") >&5
3791  (eval $ac_link) 2>&5
3792  ac_status=$?
3793  echo "$as_me:3793: \$? = $ac_status" >&5
3794  (exit $ac_status); } &&
3795         { ac_try='test -s conftest$ac_exeext'
3796  { (eval echo "$as_me:3796: \"$ac_try\"") >&5
3797  (eval $ac_try) 2>&5
3798  ac_status=$?
3799  echo "$as_me:3799: \$? = $ac_status" >&5
3800  (exit $ac_status); }; }; then
3801  lt_cv_need_dllmain=no
3802else
3803  echo "$as_me: failed program was:" >&5
3804cat conftest.$ac_ext >&5
3805lt_cv_need_dllmain=yes
3806fi
3807rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3808fi
3809echo "$as_me:3809: result: $lt_cv_need_dllmain" >&5
3810echo "${ECHO_T}$lt_cv_need_dllmain" >&6
3811
3812  case $host/$CC in
3813  *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)
3814    # old mingw systems require "-dll" to link a DLL, while more recent ones
3815    # require "-mdll"
3816    SAVE_CFLAGS="$CFLAGS"
3817    CFLAGS="$CFLAGS -mdll"
3818    echo "$as_me:3818: checking how to link DLLs" >&5
3819echo $ECHO_N "checking how to link DLLs... $ECHO_C" >&6
3820if test "${lt_cv_cc_dll_switch+set}" = set; then
3821  echo $ECHO_N "(cached) $ECHO_C" >&6
3822else
3823  cat >conftest.$ac_ext <<_ACEOF
3824#line 3824 "configure"
3825#include "confdefs.h"
3826
3827int
3828main ()
3829{
3830
3831  ;
3832  return 0;
3833}
3834_ACEOF
3835rm -f conftest.$ac_objext conftest$ac_exeext
3836if { (eval echo "$as_me:3836: \"$ac_link\"") >&5
3837  (eval $ac_link) 2>&5
3838  ac_status=$?
3839  echo "$as_me:3839: \$? = $ac_status" >&5
3840  (exit $ac_status); } &&
3841         { ac_try='test -s conftest$ac_exeext'
3842  { (eval echo "$as_me:3842: \"$ac_try\"") >&5
3843  (eval $ac_try) 2>&5
3844  ac_status=$?
3845  echo "$as_me:3845: \$? = $ac_status" >&5
3846  (exit $ac_status); }; }; then
3847  lt_cv_cc_dll_switch=-mdll
3848else
3849  echo "$as_me: failed program was:" >&5
3850cat conftest.$ac_ext >&5
3851lt_cv_cc_dll_switch=-dll
3852fi
3853rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3854fi
3855echo "$as_me:3855: result: $lt_cv_cc_dll_switch" >&5
3856echo "${ECHO_T}$lt_cv_cc_dll_switch" >&6
3857    CFLAGS="$SAVE_CFLAGS" ;;
3858  *-*-cygwin* | *-*-pw32*)
3859    # cygwin systems need to pass --dll to the linker, and not link
3860    # crt.o which will require a WinMain@16 definition.
3861    lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;
3862  esac
3863  ;;
3864
3865esac
3866
3867# Sed substitution that helps us do robust quoting.  It backslashifies
3868# metacharacters that are still active within double-quoted strings.
3869Xsed='sed -e s/^X//'
3870sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
3871
3872# Same as above, but do not quote variable references.
3873double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
3874
3875# Sed substitution to delay expansion of an escaped shell variable in a
3876# double_quote_subst'ed string.
3877delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3878
3879# Constants:
3880rm="rm -f"
3881
3882# Global variables:
3883default_ofile=libtool
3884can_build_shared=yes
3885
3886# All known linkers require a `.a' archive for static linking (except M$VC,
3887# which needs '.lib').
3888libext=a
3889ltmain="$ac_aux_dir/ltmain.sh"
3890ofile="$default_ofile"
3891with_gnu_ld="$lt_cv_prog_gnu_ld"
3892need_locks="$enable_libtool_lock"
3893
3894old_CC="$CC"
3895old_CFLAGS="$CFLAGS"
3896
3897# Set sane defaults for various variables
3898test -z "$AR" && AR=ar
3899test -z "$AR_FLAGS" && AR_FLAGS=cru
3900test -z "$AS" && AS=as
3901test -z "$CC" && CC=cc
3902test -z "$DLLTOOL" && DLLTOOL=dlltool
3903test -z "$LD" && LD=ld
3904test -z "$LN_S" && LN_S="ln -s"
3905test -z "$MAGIC_CMD" && MAGIC_CMD=file
3906test -z "$NM" && NM=nm
3907test -z "$OBJDUMP" && OBJDUMP=objdump
3908test -z "$RANLIB" && RANLIB=:
3909test -z "$STRIP" && STRIP=:
3910test -z "$ac_objext" && ac_objext=o
3911
3912if test x"$host" != x"$build"; then
3913  ac_tool_prefix=${host_alias}-
3914else
3915  ac_tool_prefix=
3916fi
3917
3918# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
3919case $host_os in
3920linux-gnu*) ;;
3921linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
3922esac
3923
3924case $host_os in
3925aix3*)
3926  # AIX sometimes has problems with the GCC collect2 program.  For some
3927  # reason, if we set the COLLECT_NAMES environment variable, the problems
3928  # vanish in a puff of smoke.
3929  if test "X${COLLECT_NAMES+set}" != Xset; then
3930    COLLECT_NAMES=
3931    export COLLECT_NAMES
3932  fi
3933  ;;
3934esac
3935
3936# Determine commands to create old-style static archives.
3937old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
3938old_postinstall_cmds='chmod 644 $oldlib'
3939old_postuninstall_cmds=
3940
3941if test -n "$RANLIB"; then
3942  case $host_os in
3943  openbsd*)
3944    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
3945    ;;
3946  *)
3947    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
3948    ;;
3949  esac
3950  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
3951fi
3952
3953# Allow CC to be a program name with arguments.
3954set dummy $CC
3955compiler="$2"
3956
3957## FIXME: this should be a separate macro
3958##
3959echo "$as_me:3959: checking for objdir" >&5
3960echo $ECHO_N "checking for objdir... $ECHO_C" >&6
3961rm -f .libs 2>/dev/null
3962mkdir .libs 2>/dev/null
3963if test -d .libs; then
3964  objdir=.libs
3965else
3966  # MS-DOS does not allow filenames that begin with a dot.
3967  objdir=_libs
3968fi
3969rmdir .libs 2>/dev/null
3970echo "$as_me:3970: result: $objdir" >&5
3971echo "${ECHO_T}$objdir" >&6
3972##
3973## END FIXME
3974
3975## FIXME: this should be a separate macro
3976##
3977
3978# Check whether --with-pic or --without-pic was given.
3979if test "${with_pic+set}" = set; then
3980  withval="$with_pic"
3981  pic_mode="$withval"
3982else
3983  pic_mode=default
3984fi;
3985test -z "$pic_mode" && pic_mode=default
3986
3987# We assume here that the value for lt_cv_prog_cc_pic will not be cached
3988# in isolation, and that seeing it set (from the cache) indicates that
3989# the associated values are set (in the cache) correctly too.
3990echo "$as_me:3990: checking for $compiler option to produce PIC" >&5
3991echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
3992if test "${lt_cv_prog_cc_pic+set}" = set; then
3993  echo $ECHO_N "(cached) $ECHO_C" >&6
3994else
3995   lt_cv_prog_cc_pic=
3996  lt_cv_prog_cc_shlib=
3997  lt_cv_prog_cc_wl=
3998  lt_cv_prog_cc_static=
3999  lt_cv_prog_cc_no_builtin=
4000  lt_cv_prog_cc_can_build_shared=$can_build_shared
4001
4002  if test "$GCC" = yes; then
4003    lt_cv_prog_cc_wl='-Wl,'
4004    lt_cv_prog_cc_static='-static'
4005
4006    case $host_os in
4007    aix*)
4008      # Below there is a dirty hack to force normal static linking with -ldl
4009      # The problem is because libdl dynamically linked with both libc and
4010      # libC (AIX C++ library), which obviously doesn't included in libraries
4011      # list by gcc. This cause undefined symbols with -static flags.
4012      # This hack allows C programs to be linked with "-static -ldl", but
4013      # not sure about C++ programs.
4014      lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
4015      ;;
4016    amigaos*)
4017      # FIXME: we need at least 68020 code to build shared libraries, but
4018      # adding the `-m68020' flag to GCC prevents building anything better,
4019      # like `-m68040'.
4020      lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
4021      ;;
4022    beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
4023      # PIC is the default for these OSes.
4024      ;;
4025    darwin* | rhapsody*)
4026      # PIC is the default on this platform
4027      # Common symbols not allowed in MH_DYLIB files
4028      lt_cv_prog_cc_pic='-fno-common'
4029      ;;
4030    cygwin* | mingw* | pw32* | os2*)
4031      # This hack is so that the source file can tell whether it is being
4032      # built for inclusion in a dll (and should export symbols for example).
4033      lt_cv_prog_cc_pic='-DDLL_EXPORT'
4034      ;;
4035    sysv4*MP*)
4036      if test -d /usr/nec; then
4037	 lt_cv_prog_cc_pic=-Kconform_pic
4038      fi
4039      ;;
4040    *)
4041      lt_cv_prog_cc_pic='-fPIC'
4042      ;;
4043    esac
4044  else
4045    # PORTME Check for PIC flags for the system compiler.
4046    case $host_os in
4047    aix3* | aix4* | aix5*)
4048      lt_cv_prog_cc_wl='-Wl,'
4049      # All AIX code is PIC.
4050      if test "$host_cpu" = ia64; then
4051	# AIX 5 now supports IA64 processor
4052	lt_cv_prog_cc_static='-Bstatic'
4053      else
4054	lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
4055      fi
4056      ;;
4057
4058    # PDFlib added
4059    i370*)
4060      lt_cv_prog_cc_wl='-Wl,dll'
4061      lt_cv_prog_cc_pic='-W c,expo,dll -Wc,"GONUM"'
4062      ;;
4063    hpux9* | hpux10* | hpux11*)
4064      # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
4065      lt_cv_prog_cc_wl='-Wl,'
4066      lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
4067      lt_cv_prog_cc_pic='+Z'
4068      ;;
4069
4070    irix5* | irix6*)
4071      lt_cv_prog_cc_wl='-Wl,'
4072      lt_cv_prog_cc_static='-non_shared'
4073      # PIC (with -KPIC) is the default.
4074      ;;
4075
4076    cygwin* | mingw* | pw32* | os2*)
4077      # This hack is so that the source file can tell whether it is being
4078      # built for inclusion in a dll (and should export symbols for example).
4079      lt_cv_prog_cc_pic='-DDLL_EXPORT'
4080      ;;
4081
4082    newsos6)
4083      lt_cv_prog_cc_pic='-KPIC'
4084      lt_cv_prog_cc_static='-Bstatic'
4085      ;;
4086
4087    osf3* | osf4* | osf5*)
4088      # All OSF/1 code is PIC.
4089      lt_cv_prog_cc_wl='-Wl,'
4090      lt_cv_prog_cc_static='-non_shared'
4091      ;;
4092
4093    sco3.2v5*)
4094      lt_cv_prog_cc_pic='-Kpic'
4095      lt_cv_prog_cc_static='-dn'
4096      lt_cv_prog_cc_shlib='-belf'
4097      ;;
4098
4099    solaris*)
4100      lt_cv_prog_cc_pic='-KPIC'
4101      lt_cv_prog_cc_static='-Bstatic'
4102      lt_cv_prog_cc_wl='-Wl,'
4103      ;;
4104
4105    sunos4*)
4106      lt_cv_prog_cc_pic='-PIC'
4107      lt_cv_prog_cc_static='-Bstatic'
4108      lt_cv_prog_cc_wl='-Qoption ld '
4109      ;;
4110
4111    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4112      lt_cv_prog_cc_pic='-KPIC'
4113      lt_cv_prog_cc_static='-Bstatic'
4114      if test "x$host_vendor" = xsni; then
4115	lt_cv_prog_cc_wl='-LD'
4116      else
4117	lt_cv_prog_cc_wl='-Wl,'
4118      fi
4119      ;;
4120
4121    uts4*)
4122      lt_cv_prog_cc_pic='-pic'
4123      lt_cv_prog_cc_static='-Bstatic'
4124      ;;
4125
4126    sysv4*MP*)
4127      if test -d /usr/nec ;then
4128	lt_cv_prog_cc_pic='-Kconform_pic'
4129	lt_cv_prog_cc_static='-Bstatic'
4130      fi
4131      ;;
4132
4133    *)
4134      lt_cv_prog_cc_can_build_shared=no
4135      ;;
4136    esac
4137  fi
4138
4139fi
4140
4141if test -z "$lt_cv_prog_cc_pic"; then
4142  echo "$as_me:4142: result: none" >&5
4143echo "${ECHO_T}none" >&6
4144else
4145  echo "$as_me:4145: result: $lt_cv_prog_cc_pic" >&5
4146echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
4147
4148  # Check to make sure the pic_flag actually works.
4149  echo "$as_me:4149: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
4150echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
4151  if test "${lt_cv_prog_cc_pic_works+set}" = set; then
4152  echo $ECHO_N "(cached) $ECHO_C" >&6
4153else
4154      save_CFLAGS="$CFLAGS"
4155    CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
4156    cat >conftest.$ac_ext <<_ACEOF
4157#line 4157 "configure"
4158#include "confdefs.h"
4159
4160int
4161main ()
4162{
4163
4164  ;
4165  return 0;
4166}
4167_ACEOF
4168rm -f conftest.$ac_objext
4169if { (eval echo "$as_me:4169: \"$ac_compile\"") >&5
4170  (eval $ac_compile) 2>&5
4171  ac_status=$?
4172  echo "$as_me:4172: \$? = $ac_status" >&5
4173  (exit $ac_status); } &&
4174         { ac_try='test -s conftest.$ac_objext'
4175  { (eval echo "$as_me:4175: \"$ac_try\"") >&5
4176  (eval $ac_try) 2>&5
4177  ac_status=$?
4178  echo "$as_me:4178: \$? = $ac_status" >&5
4179  (exit $ac_status); }; }; then
4180        case $host_os in
4181      hpux9* | hpux10* | hpux11*)
4182	# On HP-UX, both CC and GCC only warn that PIC is supported... then
4183	# they create non-PIC objects.  So, if there were any warnings, we
4184	# assume that PIC is not supported.
4185	if test -s conftest.err; then
4186	  lt_cv_prog_cc_pic_works=no
4187	else
4188	  lt_cv_prog_cc_pic_works=yes
4189	fi
4190	;;
4191      *)
4192	lt_cv_prog_cc_pic_works=yes
4193	;;
4194      esac
4195
4196else
4197  echo "$as_me: failed program was:" >&5
4198cat conftest.$ac_ext >&5
4199      lt_cv_prog_cc_pic_works=no
4200
4201fi
4202rm -f conftest.$ac_objext conftest.$ac_ext
4203    CFLAGS="$save_CFLAGS"
4204
4205fi
4206
4207  if test "X$lt_cv_prog_cc_pic_works" = Xno; then
4208    lt_cv_prog_cc_pic=
4209    lt_cv_prog_cc_can_build_shared=no
4210  else
4211    lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
4212  fi
4213
4214  echo "$as_me:4214: result: $lt_cv_prog_cc_pic_works" >&5
4215echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
4216fi
4217##
4218## END FIXME
4219
4220# Check for any special shared library compilation flags.
4221if test -n "$lt_cv_prog_cc_shlib"; then
4222  { echo "$as_me:4222: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
4223echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
4224  if echo "$old_CC $old_CFLAGS " | egrep -e "[ 	]$lt_cv_prog_cc_shlib[ 	]" >/dev/null; then :
4225  else
4226   { echo "$as_me:4226: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
4227echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
4228    lt_cv_prog_cc_can_build_shared=no
4229  fi
4230fi
4231
4232## FIXME: this should be a separate macro
4233##
4234echo "$as_me:4234: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
4235echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
4236if test "${lt_cv_prog_cc_static_works+set}" = set; then
4237  echo $ECHO_N "(cached) $ECHO_C" >&6
4238else
4239    lt_cv_prog_cc_static_works=no
4240  save_LDFLAGS="$LDFLAGS"
4241  LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
4242  cat >conftest.$ac_ext <<_ACEOF
4243#line 4243 "configure"
4244#include "confdefs.h"
4245
4246int
4247main ()
4248{
4249
4250  ;
4251  return 0;
4252}
4253_ACEOF
4254rm -f conftest.$ac_objext conftest$ac_exeext
4255if { (eval echo "$as_me:4255: \"$ac_link\"") >&5
4256  (eval $ac_link) 2>&5
4257  ac_status=$?
4258  echo "$as_me:4258: \$? = $ac_status" >&5
4259  (exit $ac_status); } &&
4260         { ac_try='test -s conftest$ac_exeext'
4261  { (eval echo "$as_me:4261: \"$ac_try\"") >&5
4262  (eval $ac_try) 2>&5
4263  ac_status=$?
4264  echo "$as_me:4264: \$? = $ac_status" >&5
4265  (exit $ac_status); }; }; then
4266  lt_cv_prog_cc_static_works=yes
4267else
4268  echo "$as_me: failed program was:" >&5
4269cat conftest.$ac_ext >&5
4270fi
4271rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4272  LDFLAGS="$save_LDFLAGS"
4273
4274fi
4275
4276# Belt *and* braces to stop my trousers falling down:
4277test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
4278echo "$as_me:4278: result: $lt_cv_prog_cc_static_works" >&5
4279echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
4280
4281pic_flag="$lt_cv_prog_cc_pic"
4282special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
4283wl="$lt_cv_prog_cc_wl"
4284link_static_flag="$lt_cv_prog_cc_static"
4285no_builtin_flag="$lt_cv_prog_cc_no_builtin"
4286can_build_shared="$lt_cv_prog_cc_can_build_shared"
4287##
4288## END FIXME
4289
4290## FIXME: this should be a separate macro
4291##
4292# Check to see if options -o and -c are simultaneously supported by compiler
4293echo "$as_me:4293: checking if $compiler supports -c -o file.$ac_objext" >&5
4294echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
4295if test "${lt_cv_compiler_c_o+set}" = set; then
4296  echo $ECHO_N "(cached) $ECHO_C" >&6
4297else
4298
4299$rm -r conftest 2>/dev/null
4300mkdir conftest
4301cd conftest
4302echo "int some_variable = 0;" > conftest.$ac_ext
4303mkdir out
4304# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
4305# that will create temporary files in the current directory regardless of
4306# the output directory.  Thus, making CWD read-only will cause this test
4307# to fail, enabling locking or at least warning the user not to do parallel
4308# builds.
4309# PDFlib GmbH: we don't do this it wows on AIX
4310#chmod -w .
4311save_CFLAGS="$CFLAGS"
4312CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
4313compiler_c_o=no
4314if { (eval echo configure:4314: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
4315  # The compiler can only warn and ignore the option if not recognized
4316  # So say no if there are warnings
4317  if test -s out/conftest.err; then
4318    lt_cv_compiler_c_o=no
4319  else
4320    lt_cv_compiler_c_o=yes
4321  fi
4322else
4323  # Append any errors to the config.log.
4324  cat out/conftest.err 1>&5
4325  lt_cv_compiler_c_o=no
4326fi
4327CFLAGS="$save_CFLAGS"
4328chmod u+w .
4329$rm conftest* out/*
4330rmdir out
4331cd ..
4332rmdir conftest
4333$rm -r conftest 2>/dev/null
4334
4335fi
4336
4337compiler_c_o=$lt_cv_compiler_c_o
4338echo "$as_me:4338: result: $compiler_c_o" >&5
4339echo "${ECHO_T}$compiler_c_o" >&6
4340
4341if test x"$compiler_c_o" = x"yes"; then
4342  # Check to see if we can write to a .lo
4343  echo "$as_me:4343: checking if $compiler supports -c -o file.lo" >&5
4344echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
4345  if test "${lt_cv_compiler_o_lo+set}" = set; then
4346  echo $ECHO_N "(cached) $ECHO_C" >&6
4347else
4348
4349  lt_cv_compiler_o_lo=no
4350  save_CFLAGS="$CFLAGS"
4351  CFLAGS="$CFLAGS -c -o conftest.lo"
4352  save_objext="$ac_objext"
4353  ac_objext=lo
4354  cat >conftest.$ac_ext <<_ACEOF
4355#line 4355 "configure"
4356#include "confdefs.h"
4357
4358int
4359main ()
4360{
4361int some_variable = 0;
4362  ;
4363  return 0;
4364}
4365_ACEOF
4366rm -f conftest.$ac_objext
4367if { (eval echo "$as_me:4367: \"$ac_compile\"") >&5
4368  (eval $ac_compile) 2>&5
4369  ac_status=$?
4370  echo "$as_me:4370: \$? = $ac_status" >&5
4371  (exit $ac_status); } &&
4372         { ac_try='test -s conftest.$ac_objext'
4373  { (eval echo "$as_me:4373: \"$ac_try\"") >&5
4374  (eval $ac_try) 2>&5
4375  ac_status=$?
4376  echo "$as_me:4376: \$? = $ac_status" >&5
4377  (exit $ac_status); }; }; then
4378      # The compiler can only warn and ignore the option if not recognized
4379    # So say no if there are warnings
4380    if test -s conftest.err; then
4381      lt_cv_compiler_o_lo=no
4382    else
4383      lt_cv_compiler_o_lo=yes
4384    fi
4385
4386else
4387  echo "$as_me: failed program was:" >&5
4388cat conftest.$ac_ext >&5
4389fi
4390rm -f conftest.$ac_objext conftest.$ac_ext
4391  ac_objext="$save_objext"
4392  CFLAGS="$save_CFLAGS"
4393
4394fi
4395
4396  compiler_o_lo=$lt_cv_compiler_o_lo
4397  echo "$as_me:4397: result: $compiler_o_lo" >&5
4398echo "${ECHO_T}$compiler_o_lo" >&6
4399else
4400  compiler_o_lo=no
4401fi
4402##
4403## END FIXME
4404
4405## FIXME: this should be a separate macro
4406##
4407# Check to see if we can do hard links to lock some files if needed
4408hard_links="nottested"
4409if test "$compiler_c_o" = no && test "$need_locks" != no; then
4410  # do not overwrite the value of need_locks provided by the user
4411  echo "$as_me:4411: checking if we can lock with hard links" >&5
4412echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
4413  hard_links=yes
4414  $rm conftest*
4415  ln conftest.a conftest.b 2>/dev/null && hard_links=no
4416  touch conftest.a
4417  ln conftest.a conftest.b 2>&5 || hard_links=no
4418  ln conftest.a conftest.b 2>/dev/null && hard_links=no
4419  echo "$as_me:4419: result: $hard_links" >&5
4420echo "${ECHO_T}$hard_links" >&6
4421  if test "$hard_links" = no; then
4422    { echo "$as_me:4422: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
4423echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
4424    need_locks=warn
4425  fi
4426else
4427  need_locks=no
4428fi
4429##
4430## END FIXME
4431
4432## FIXME: this should be a separate macro
4433##
4434if test "$GCC" = yes; then
4435  # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
4436  echo "$as_me:4436: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
4437echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
4438  echo "int some_variable = 0;" > conftest.$ac_ext
4439  save_CFLAGS="$CFLAGS"
4440  CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
4441  compiler_rtti_exceptions=no
4442  cat >conftest.$ac_ext <<_ACEOF
4443#line 4443 "configure"
4444#include "confdefs.h"
4445
4446int
4447main ()
4448{
4449int some_variable = 0;
4450  ;
4451  return 0;
4452}
4453_ACEOF
4454rm -f conftest.$ac_objext
4455if { (eval echo "$as_me:4455: \"$ac_compile\"") >&5
4456  (eval $ac_compile) 2>&5
4457  ac_status=$?
4458  echo "$as_me:4458: \$? = $ac_status" >&5
4459  (exit $ac_status); } &&
4460         { ac_try='test -s conftest.$ac_objext'
4461  { (eval echo "$as_me:4461: \"$ac_try\"") >&5
4462  (eval $ac_try) 2>&5
4463  ac_status=$?
4464  echo "$as_me:4464: \$? = $ac_status" >&5
4465  (exit $ac_status); }; }; then
4466      # The compiler can only warn and ignore the option if not recognized
4467    # So say no if there are warnings
4468    if test -s conftest.err; then
4469      compiler_rtti_exceptions=no
4470    else
4471      compiler_rtti_exceptions=yes
4472    fi
4473
4474else
4475  echo "$as_me: failed program was:" >&5
4476cat conftest.$ac_ext >&5
4477fi
4478rm -f conftest.$ac_objext conftest.$ac_ext
4479  CFLAGS="$save_CFLAGS"
4480  echo "$as_me:4480: result: $compiler_rtti_exceptions" >&5
4481echo "${ECHO_T}$compiler_rtti_exceptions" >&6
4482
4483  if test "$compiler_rtti_exceptions" = "yes"; then
4484    no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
4485  else
4486    no_builtin_flag=' -fno-builtin'
4487  fi
4488fi
4489##
4490## END FIXME
4491
4492## FIXME: this should be a separate macro
4493##
4494# See if the linker supports building shared libraries.
4495echo "$as_me:4495: checking whether the linker ($LD) supports shared libraries" >&5
4496echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
4497
4498allow_undefined_flag=
4499no_undefined_flag=
4500need_lib_prefix=unknown
4501need_version=unknown
4502# when you set need_version to no, make sure it does not cause -set_version
4503# flags to be left without arguments
4504archive_cmds=
4505archive_expsym_cmds=
4506old_archive_from_new_cmds=
4507old_archive_from_expsyms_cmds=
4508export_dynamic_flag_spec=
4509whole_archive_flag_spec=
4510thread_safe_flag_spec=
4511hardcode_into_libs=no
4512hardcode_libdir_flag_spec=
4513hardcode_libdir_separator=
4514hardcode_direct=no
4515hardcode_minus_L=no
4516hardcode_shlibpath_var=unsupported
4517runpath_var=
4518link_all_deplibs=unknown
4519always_export_symbols=no
4520export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
4521# include_expsyms should be a list of space-separated symbols to be *always*
4522# included in the symbol list
4523include_expsyms=
4524# exclude_expsyms can be an egrep regular expression of symbols to exclude
4525# it will be wrapped by ` (' and `)$', so one must not match beginning or
4526# end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
4527# as well as any symbol that contains `d'.
4528exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
4529# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
4530# platforms (ab)use it in PIC code, but their linkers get confused if
4531# the symbol is explicitly referenced.  Since portable code cannot
4532# rely on this symbol name, it's probably fine to never include it in
4533# preloaded symbol tables.
4534extract_expsyms_cmds=
4535
4536case $host_os in
4537cygwin* | mingw* | pw32*)
4538  # FIXME: the MSVC++ port hasn't been tested in a loooong time
4539  # When not using gcc, we currently assume that we are using
4540  # Microsoft Visual C++.
4541  if test "$GCC" != yes; then
4542    with_gnu_ld=no
4543  fi
4544  ;;
4545openbsd*)
4546  with_gnu_ld=no
4547  ;;
4548esac
4549
4550ld_shlibs=yes
4551if test "$with_gnu_ld" = yes; then
4552  # If archive_cmds runs LD, not CC, wlarc should be empty
4553  wlarc='${wl}'
4554
4555  # See if GNU ld supports shared libraries.
4556  case $host_os in
4557  aix3* | aix4* | aix5*)
4558    # On AIX, the GNU linker is very broken
4559    # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
4560    ld_shlibs=no
4561    cat <<EOF 1>&2
4562
4563*** Warning: the GNU linker, at least up to release 2.9.1, is reported
4564*** to be unable to reliably create shared libraries on AIX.
4565*** Therefore, libtool is disabling shared libraries support.  If you
4566*** really care for shared libraries, you may want to modify your PATH
4567*** so that a non-GNU linker is found, and then restart.
4568
4569EOF
4570    ;;
4571
4572  amigaos*)
4573    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)'
4574    hardcode_libdir_flag_spec='-L$libdir'
4575    hardcode_minus_L=yes
4576
4577    # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
4578    # that the semantics of dynamic libraries on AmigaOS, at least up
4579    # to version 4, is to share data among multiple programs linked
4580    # with the same dynamic library.  Since this doesn't match the
4581    # behavior of shared libraries on other platforms, we can use
4582    # them.
4583    ld_shlibs=no
4584    ;;
4585
4586  beos*)
4587    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4588      allow_undefined_flag=unsupported
4589      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
4590      # support --undefined.  This deserves some investigation.  FIXME
4591      archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4592    else
4593      ld_shlibs=no
4594    fi
4595    ;;
4596
4597  cygwin* | mingw* | pw32*)
4598    # hardcode_libdir_flag_spec is actually meaningless, as there is
4599    # no search path for DLLs.
4600    hardcode_libdir_flag_spec='-L$libdir'
4601    allow_undefined_flag=unsupported
4602    always_export_symbols=yes
4603
4604    extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
4605      sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
4606      test -f $output_objdir/impgen.exe || (cd $output_objdir && \
4607      if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
4608      else $CC -o impgen impgen.c ; fi)~
4609      $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
4610
4611    old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
4612
4613    # cygwin and mingw dlls have different entry points and sets of symbols
4614    # to exclude.
4615    # FIXME: what about values for MSVC?
4616    dll_entry=__cygwin_dll_entry@12
4617    dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
4618    case $host_os in
4619    mingw*)
4620      # mingw values
4621      dll_entry=_DllMainCRTStartup@12
4622      dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
4623      ;;
4624    esac
4625
4626    # mingw and cygwin differ, and it's simplest to just exclude the union
4627    # of the two symbol sets.
4628    dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
4629
4630    # recent cygwin and mingw systems supply a stub DllMain which the user
4631    # can override, but on older systems we have to supply one (in ltdll.c)
4632    if test "x$lt_cv_need_dllmain" = "xyes"; then
4633      ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
4634      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~
4635	test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
4636    else
4637      ltdll_obj=
4638      ltdll_cmds=
4639    fi
4640
4641    # Extract the symbol export list from an `--export-all' def file,
4642    # then regenerate the def file from the symbol export list, so that
4643    # the compiled dll only exports the symbol export list.
4644    # Be careful not to strip the DATA tag left be newer dlltools.
4645    export_symbols_cmds="$ltdll_cmds"'
4646      $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
4647      sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
4648
4649    # If the export-symbols file already is a .def file (1st line
4650    # is EXPORTS), use it as is.
4651    # If DATA tags from a recent dlltool are present, honour them!
4652    archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
4653	cp $export_symbols $output_objdir/$soname-def;
4654      else
4655	echo EXPORTS > $output_objdir/$soname-def;
4656	_lt_hint=1;
4657	cat $export_symbols | while read symbol; do
4658	 set dummy \$symbol;
4659	 case \$# in
4660	   2) echo "   \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
4661	   *) echo "     \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
4662	 esac;
4663	 _lt_hint=`expr 1 + \$_lt_hint`;
4664	done;
4665      fi~
4666      '"$ltdll_cmds"'
4667      $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~
4668      $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~
4669      $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~
4670      $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~
4671      $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
4672    ;;
4673
4674  netbsd*)
4675    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4676      archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
4677      wlarc=
4678    else
4679      archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4680      archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4681    fi
4682    ;;
4683
4684  solaris* | sysv5*)
4685    if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
4686      ld_shlibs=no
4687      cat <<EOF 1>&2
4688
4689*** Warning: The releases 2.8.* of the GNU linker cannot reliably
4690*** create shared libraries on Solaris systems.  Therefore, libtool
4691*** is disabling shared libraries support.  We urge you to upgrade GNU
4692*** binutils to release 2.9.1 or newer.  Another option is to modify
4693*** your PATH or compiler configuration so that the native linker is
4694*** used, and then restart.
4695
4696EOF
4697    elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4698      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4699      archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4700    else
4701      ld_shlibs=no
4702    fi
4703    ;;
4704
4705  sunos4*)
4706    archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4707    wlarc=
4708    hardcode_direct=yes
4709    hardcode_shlibpath_var=no
4710    ;;
4711
4712  *)
4713    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4714      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4715      archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4716    else
4717      ld_shlibs=no
4718    fi
4719    ;;
4720  esac
4721
4722  if test "$ld_shlibs" = yes; then
4723    runpath_var=LD_RUN_PATH
4724    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
4725    export_dynamic_flag_spec='${wl}--export-dynamic'
4726    case $host_os in
4727    cygwin* | mingw* | pw32*)
4728      # dlltool doesn't understand --whole-archive et. al.
4729      whole_archive_flag_spec=
4730      ;;
4731    *)
4732      # ancient GNU ld didn't support --whole-archive et. al.
4733      if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
4734	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4735      else
4736	whole_archive_flag_spec=
4737      fi
4738      ;;
4739    esac
4740  fi
4741else
4742  # PORTME fill in a description of your system's linker (not GNU ld)
4743  case $host_os in
4744  aix3*)
4745    allow_undefined_flag=unsupported
4746    always_export_symbols=yes
4747    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'
4748    # Note: this linker hardcodes the directories in LIBPATH if there
4749    # are no directories specified by -L.
4750    hardcode_minus_L=yes
4751    if test "$GCC" = yes && test -z "$link_static_flag"; then
4752      # Neither direct hardcoding nor static linking is supported with a
4753      # broken collect2.
4754      hardcode_direct=unsupported
4755    fi
4756    ;;
4757
4758  aix4* | aix5*)
4759    if test "$host_cpu" = ia64; then
4760      # On IA64, the linker does run time linking by default, so we don't
4761      # have to do anything special.
4762      aix_use_runtimelinking=no
4763      exp_sym_flag='-Bexport'
4764      no_entry_flag=""
4765    else
4766      aix_use_runtimelinking=no
4767
4768      # Test if we are trying to use run time linking or normal
4769      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
4770      # need to do runtime linking.
4771      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
4772	for ld_flag in $LDFLAGS; do
4773	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
4774	    aix_use_runtimelinking=yes
4775	    break
4776	  fi
4777	done
4778      esac
4779
4780      exp_sym_flag='-bexport'
4781      no_entry_flag='-bnoentry'
4782    fi
4783
4784    # When large executables or shared objects are built, AIX ld can
4785    # have problems creating the table of contents.  If linking a library
4786    # or program results in "error TOC overflow" add -mminimal-toc to
4787    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
4788    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
4789
4790    hardcode_direct=yes
4791    archive_cmds=''
4792    hardcode_libdir_separator=':'
4793    if test "$GCC" = yes; then
4794      case $host_os in aix4.[012]|aix4.[012].*)
4795	collect2name=`${CC} -print-prog-name=collect2`
4796	if test -f "$collect2name" && \
4797	  strings "$collect2name" | grep resolve_lib_name >/dev/null
4798	then
4799	  # We have reworked collect2
4800	  hardcode_direct=yes
4801	else
4802	  # We have old collect2
4803	  hardcode_direct=unsupported
4804	  # It fails to find uninstalled libraries when the uninstalled
4805	  # path is not listed in the libpath.  Setting hardcode_minus_L
4806	  # to unsupported forces relinking
4807	  hardcode_minus_L=yes
4808	  hardcode_libdir_flag_spec='-L$libdir'
4809	  hardcode_libdir_separator=
4810	fi
4811      esac
4812
4813      shared_flag='-shared'
4814    else
4815      # not using gcc
4816      if test "$host_cpu" = ia64; then
4817	shared_flag='${wl}-G'
4818      else
4819	if test "$aix_use_runtimelinking" = yes; then
4820	  shared_flag='${wl}-G'
4821	else
4822	  shared_flag='${wl}-bM:SRE'
4823	fi
4824      fi
4825    fi
4826
4827    # It seems that -bexpall can do strange things, so it is better to
4828    # generate a list of symbols to export.
4829    always_export_symbols=yes
4830    if test "$aix_use_runtimelinking" = yes; then
4831      # Warning - without using the other runtime loading flags (-brtl),
4832      # -berok will link without error, but may produce a broken library.
4833      allow_undefined_flag='-berok'
4834      hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
4835      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"
4836    else
4837      if test "$host_cpu" = ia64; then
4838	hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
4839	allow_undefined_flag="-z nodefs"
4840	archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
4841      else
4842	hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
4843	# Warning - without using the other run time loading flags,
4844	# -berok will link without error, but may produce a broken library.
4845	allow_undefined_flag='${wl}-berok'
4846	# This is a bit strange, but is similar to how AIX traditionally builds
4847	# it's shared libraries.
4848	archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
4849      fi
4850    fi
4851    ;;
4852
4853  amigaos*)
4854    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)'
4855    hardcode_libdir_flag_spec='-L$libdir'
4856    hardcode_minus_L=yes
4857    # see comment about different semantics on the GNU ld section
4858    ld_shlibs=no
4859    ;;
4860
4861  cygwin* | mingw* | pw32*)
4862    # When not using gcc, we currently assume that we are using
4863    # Microsoft Visual C++.
4864    # hardcode_libdir_flag_spec is actually meaningless, as there is
4865    # no search path for DLLs.
4866    hardcode_libdir_flag_spec=' '
4867    allow_undefined_flag=unsupported
4868    # Tell ltmain to make .lib files, not .a files.
4869    libext=lib
4870    # FIXME: Setting linknames here is a bad hack.
4871    archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
4872    # The linker will automatically build a .lib file if we build a DLL.
4873    old_archive_from_new_cmds='true'
4874    # FIXME: Should let the user specify the lib program.
4875    old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
4876    fix_srcfile_path='`cygpath -w "$srcfile"`'
4877    ;;
4878
4879  darwin* | rhapsody*)
4880    case "$host_os" in
4881    rhapsody* | darwin1.[012])
4882      allow_undefined_flag='-undefined suppress'
4883      ;;
4884    *) # Darwin 1.3 on
4885      allow_undefined_flag='-flat_namespace -undefined suppress'
4886      ;;
4887    esac
4888    # FIXME: Relying on posixy $() will cause problems for
4889    #        cross-compilation, but unfortunately the echo tests do not
4890    #        yet detect zsh echo's removal of \ escapes.
4891    archive_cmds='$nonopt $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags $(test .$module = .yes || echo -install_name $rpath/$soname $verstring)'
4892    # We need to add '_' to the symbols in $export_symbols first
4893    #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
4894    hardcode_direct=yes
4895    hardcode_shlibpath_var=no
4896    whole_archive_flag_spec='-all_load $convenience'
4897    ;;
4898
4899  freebsd1*)
4900    ld_shlibs=no
4901    ;;
4902
4903  # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
4904  # support.  Future versions do this automatically, but an explicit c++rt0.o
4905  # does not break anything, and helps significantly (at the cost of a little
4906  # extra space).
4907  freebsd2.2*)
4908    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
4909    hardcode_libdir_flag_spec='-R$libdir'
4910    hardcode_direct=yes
4911    hardcode_shlibpath_var=no
4912    ;;
4913
4914  # Unfortunately, older versions of FreeBSD 2 do not have this feature.
4915  freebsd2*)
4916    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4917    hardcode_direct=yes
4918    hardcode_minus_L=yes
4919    hardcode_shlibpath_var=no
4920    ;;
4921
4922  # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
4923  freebsd*)
4924    archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
4925    hardcode_libdir_flag_spec='-R$libdir'
4926    hardcode_direct=yes
4927    hardcode_shlibpath_var=no
4928    ;;
4929
4930  hpux9* | hpux10* | hpux11*)
4931    case $host_os in
4932    hpux9*) 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' ;;
4933    *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
4934    esac
4935    hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
4936    hardcode_libdir_separator=:
4937    hardcode_direct=yes
4938    hardcode_minus_L=yes # Not in the search PATH, but as the default
4939			 # location of the library.
4940    export_dynamic_flag_spec='${wl}-E'
4941    ;;
4942
4943  irix5* | irix6*)
4944    if test "$GCC" = yes; then
4945      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'
4946    else
4947      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'
4948    fi
4949    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4950    hardcode_libdir_separator=:
4951    link_all_deplibs=yes
4952    ;;
4953
4954  netbsd*)
4955    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4956      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
4957    else
4958      archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
4959    fi
4960    hardcode_libdir_flag_spec='-R$libdir'
4961    hardcode_direct=yes
4962    hardcode_shlibpath_var=no
4963    ;;
4964
4965  newsos6)
4966    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4967    hardcode_direct=yes
4968    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4969    hardcode_libdir_separator=:
4970    hardcode_shlibpath_var=no
4971    ;;
4972
4973  openbsd*)
4974    hardcode_direct=yes
4975    hardcode_shlibpath_var=no
4976    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4977      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
4978      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
4979      export_dynamic_flag_spec='${wl}-E'
4980    else
4981      case "$host_os" in
4982      openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
4983	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4984	hardcode_libdir_flag_spec='-R$libdir'
4985        ;;
4986      *)
4987        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
4988        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
4989        ;;
4990      esac
4991    fi
4992    ;;
4993
4994  os2*)
4995    hardcode_libdir_flag_spec='-L$libdir'
4996    hardcode_minus_L=yes
4997    allow_undefined_flag=unsupported
4998    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'
4999    old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5000    ;;
5001
5002  osf3*)
5003    if test "$GCC" = yes; then
5004      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5005      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'
5006    else
5007      allow_undefined_flag=' -expect_unresolved \*'
5008      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'
5009    fi
5010    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5011    hardcode_libdir_separator=:
5012    ;;
5013
5014  osf4* | osf5*)	# as osf3* with the addition of -msym flag
5015    if test "$GCC" = yes; then
5016      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5017      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'
5018      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5019    else
5020      allow_undefined_flag=' -expect_unresolved \*'
5021      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'
5022      archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5023      $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'
5024
5025      #Both c and cxx compiler support -rpath directly
5026      hardcode_libdir_flag_spec='-rpath $libdir'
5027    fi
5028    hardcode_libdir_separator=:
5029    ;;
5030
5031  sco3.2v5*)
5032    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5033    hardcode_shlibpath_var=no
5034    runpath_var=LD_RUN_PATH
5035    hardcode_runpath_var=yes
5036    export_dynamic_flag_spec='${wl}-Bexport'
5037    ;;
5038
5039  solaris*)
5040    # gcc --version < 3.0 without binutils cannot create self contained
5041    # shared libraries reliably, requiring libgcc.a to resolve some of
5042    # the object symbols generated in some cases.  Libraries that use
5043    # assert need libgcc.a to resolve __eprintf, for example.  Linking
5044    # a copy of libgcc.a into every shared library to guarantee resolving
5045    # such symbols causes other problems:  According to Tim Van Holder
5046    # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
5047    # (to the application) exception stack for one thing.
5048    no_undefined_flag=' -z defs'
5049    if test "$GCC" = yes; then
5050      case `$CC --version 2>/dev/null` in
5051      [12].*)
5052	cat <<EOF 1>&2
5053
5054*** Warning: Releases of GCC earlier than version 3.0 cannot reliably
5055*** create self contained shared libraries on Solaris systems, without
5056*** introducing a dependency on libgcc.a.  Therefore, libtool is disabling
5057*** -no-undefined support, which will at least allow you to build shared
5058*** libraries.  However, you may find that when you link such libraries
5059*** into an application without using GCC, you have to manually add
5060*** \`gcc --print-libgcc-file-name\` to the link command.  We urge you to
5061*** upgrade to a newer version of GCC.  Another option is to rebuild your
5062*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
5063
5064EOF
5065        no_undefined_flag=
5066	;;
5067      esac
5068    fi
5069    # $CC -shared without GNU ld will not create a library from C++
5070    # object files and a static libstdc++, better avoid it by now
5071    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5072    archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5073		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5074    hardcode_libdir_flag_spec='-R$libdir'
5075    hardcode_shlibpath_var=no
5076    case $host_os in
5077    solaris2.[0-5] | solaris2.[0-5].*) ;;
5078    *) # Supported since Solaris 2.6 (maybe 2.5.1?)
5079      whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
5080    esac
5081    link_all_deplibs=yes
5082    ;;
5083
5084  sunos4*)
5085    if test "x$host_vendor" = xsequent; then
5086      # Use $CC to link under sequent, because it throws in some extra .o
5087      # files that make .init and .fini sections work.
5088      archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5089    else
5090      archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5091    fi
5092    hardcode_libdir_flag_spec='-L$libdir'
5093    hardcode_direct=yes
5094    hardcode_minus_L=yes
5095    hardcode_shlibpath_var=no
5096    ;;
5097
5098  sysv4)
5099    if test "x$host_vendor" = xsno; then
5100      archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
5101      hardcode_direct=yes # is this really true???
5102    else
5103      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5104      hardcode_direct=no #Motorola manual says yes, but my tests say they lie
5105    fi
5106    runpath_var='LD_RUN_PATH'
5107    hardcode_shlibpath_var=no
5108    ;;
5109
5110  sysv4.3*)
5111    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5112    hardcode_shlibpath_var=no
5113    export_dynamic_flag_spec='-Bexport'
5114    ;;
5115
5116  sysv5*)
5117    no_undefined_flag=' -z text'
5118    # $CC -shared without GNU ld will not create a library from C++
5119    # object files and a static libstdc++, better avoid it by now
5120    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5121    archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5122		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5123    hardcode_libdir_flag_spec=
5124    hardcode_shlibpath_var=no
5125    runpath_var='LD_RUN_PATH'
5126    ;;
5127
5128  uts4*)
5129    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5130    hardcode_libdir_flag_spec='-L$libdir'
5131    hardcode_shlibpath_var=no
5132    ;;
5133
5134  dgux*)
5135    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5136    hardcode_libdir_flag_spec='-L$libdir'
5137    hardcode_shlibpath_var=no
5138    ;;
5139
5140  sysv4*MP*)
5141    if test -d /usr/nec; then
5142      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5143      hardcode_shlibpath_var=no
5144      runpath_var=LD_RUN_PATH
5145      hardcode_runpath_var=yes
5146      ld_shlibs=yes
5147    fi
5148    ;;
5149
5150  sysv4.2uw2*)
5151    archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5152    hardcode_direct=yes
5153    hardcode_minus_L=no
5154    hardcode_shlibpath_var=no
5155    hardcode_runpath_var=yes
5156    runpath_var=LD_RUN_PATH
5157    ;;
5158
5159  sysv5uw7* | unixware7*)
5160    no_undefined_flag='${wl}-z ${wl}text'
5161    if test "$GCC" = yes; then
5162      archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5163    else
5164      archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5165    fi
5166    runpath_var='LD_RUN_PATH'
5167    hardcode_shlibpath_var=no
5168    ;;
5169
5170  *)
5171    ld_shlibs=no
5172    ;;
5173  esac
5174fi
5175echo "$as_me:5175: result: $ld_shlibs" >&5
5176echo "${ECHO_T}$ld_shlibs" >&6
5177test "$ld_shlibs" = no && can_build_shared=no
5178##
5179## END FIXME
5180
5181## FIXME: this should be a separate macro
5182##
5183# Check hardcoding attributes.
5184echo "$as_me:5184: checking how to hardcode library paths into programs" >&5
5185echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
5186hardcode_action=
5187if test -n "$hardcode_libdir_flag_spec" || \
5188   test -n "$runpath_var"; then
5189
5190  # We can hardcode non-existant directories.
5191  if test "$hardcode_direct" != no &&
5192     # If the only mechanism to avoid hardcoding is shlibpath_var, we
5193     # have to relink, otherwise we might link with an installed library
5194     # when we should be linking with a yet-to-be-installed one
5195     ## test "$hardcode_shlibpath_var" != no &&
5196     test "$hardcode_minus_L" != no; then
5197    # Linking always hardcodes the temporary library directory.
5198    hardcode_action=relink
5199  else
5200    # We can link without hardcoding, and we can hardcode nonexisting dirs.
5201    hardcode_action=immediate
5202  fi
5203else
5204  # We cannot hardcode anything, or else we can only hardcode existing
5205  # directories.
5206  hardcode_action=unsupported
5207fi
5208echo "$as_me:5208: result: $hardcode_action" >&5
5209echo "${ECHO_T}$hardcode_action" >&6
5210##
5211## END FIXME
5212
5213## FIXME: this should be a separate macro
5214##
5215striplib=
5216old_striplib=
5217echo "$as_me:5217: checking whether stripping libraries is possible" >&5
5218echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
5219if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
5220  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
5221  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
5222  echo "$as_me:5222: result: yes" >&5
5223echo "${ECHO_T}yes" >&6
5224else
5225  echo "$as_me:5225: result: no" >&5
5226echo "${ECHO_T}no" >&6
5227fi
5228##
5229## END FIXME
5230
5231reload_cmds='$LD$reload_flag -o $output$reload_objs'
5232test -z "$deplibs_check_method" && deplibs_check_method=unknown
5233
5234## FIXME: this should be a separate macro
5235##
5236# PORTME Fill in your ld.so characteristics
5237echo "$as_me:5237: checking dynamic linker characteristics" >&5
5238echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
5239library_names_spec=
5240libname_spec='lib$name'
5241soname_spec=
5242postinstall_cmds=
5243postuninstall_cmds=
5244finish_cmds=
5245finish_eval=
5246shlibpath_var=
5247shlibpath_overrides_runpath=unknown
5248version_type=none
5249dynamic_linker="$host_os ld.so"
5250sys_lib_dlsearch_path_spec="/lib /usr/lib"
5251sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
5252
5253case $host_os in
5254aix3*)
5255  version_type=linux
5256  library_names_spec='${libname}${release}.so$versuffix $libname.a'
5257  shlibpath_var=LIBPATH
5258
5259  # AIX has no versioning support, so we append a major version to the name.
5260  soname_spec='${libname}${release}.so$major'
5261  ;;
5262
5263aix4* | aix5*)
5264  version_type=linux
5265  if test "$host_cpu" = ia64; then
5266    # AIX 5 supports IA64
5267    library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
5268    shlibpath_var=LD_LIBRARY_PATH
5269  else
5270    # With GCC up to 2.95.x, collect2 would create an import file
5271    # for dependence libraries.  The import file would start with
5272    # the line `#! .'.  This would cause the generated library to
5273    # depend on `.', always an invalid library.  This was fixed in
5274    # development snapshots of GCC prior to 3.0.
5275    case $host_os in
5276      aix4 | aix4.[01] | aix4.[01].*)
5277	if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
5278	     echo ' yes '
5279	     echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
5280	  :
5281	else
5282	  can_build_shared=no
5283	fi
5284	;;
5285    esac
5286    # AIX (on Power*) has no versioning support, so currently we can
5287    # not hardcode correct soname into executable. Probably we can
5288    # add versioning support to collect2, so additional links can
5289    # be useful in future.
5290    if test "$aix_use_runtimelinking" = yes; then
5291      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
5292      # instead of lib<name>.a to let people know that these are not
5293      # typical AIX shared libraries.
5294      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5295    else
5296      # We preserve .a as extension for shared libraries through AIX4.2
5297      # and later when we are not doing run time linking.
5298      library_names_spec='${libname}${release}.a $libname.a'
5299      soname_spec='${libname}${release}.so$major'
5300    fi
5301    shlibpath_var=LIBPATH
5302  fi
5303  ;;
5304
5305amigaos*)
5306  library_names_spec='$libname.ixlibrary $libname.a'
5307  # Create ${libname}_ixlibrary.a entries in /sys/libs.
5308  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'
5309  ;;
5310
5311beos*)
5312  library_names_spec='${libname}.so'
5313  dynamic_linker="$host_os ld.so"
5314  shlibpath_var=LIBRARY_PATH
5315  ;;
5316
5317bsdi4*)
5318  version_type=linux
5319  need_version=no
5320  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5321  soname_spec='${libname}${release}.so$major'
5322  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
5323  shlibpath_var=LD_LIBRARY_PATH
5324  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
5325  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
5326  export_dynamic_flag_spec=-rdynamic
5327  # the default ld.so.conf also contains /usr/contrib/lib and
5328  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
5329  # libtool to hard-code these into programs
5330  ;;
5331
5332cygwin* | mingw* | pw32*)
5333  version_type=windows
5334  need_version=no
5335  need_lib_prefix=no
5336  case $GCC,$host_os in
5337  yes,cygwin*)
5338    library_names_spec='$libname.dll.a'
5339    soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5340    postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
5341      dldir=$destdir/`dirname \$dlpath`~
5342      test -d \$dldir || mkdir -p \$dldir~
5343      $install_prog .libs/$dlname \$dldir/$dlname'
5344    postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
5345      dlpath=$dir/\$dldll~
5346       $rm \$dlpath'
5347    ;;
5348  yes,mingw*)
5349    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5350    sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
5351    ;;
5352  yes,pw32*)
5353    library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
5354    ;;
5355  *)
5356    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
5357    ;;
5358  esac
5359  dynamic_linker='Win32 ld.exe'
5360  # FIXME: first we should search . and the directory the executable is in
5361  shlibpath_var=PATH
5362  ;;
5363
5364darwin* | rhapsody*)
5365  dynamic_linker="$host_os dyld"
5366  version_type=darwin
5367  need_lib_prefix=no
5368  need_version=no
5369  # FIXME: Relying on posixy $() will cause problems for
5370  #        cross-compilation, but unfortunately the echo tests do not
5371  #        yet detect zsh echo's removal of \ escapes.
5372
5373  #PDFlib changed: we need .dylib even with -module
5374  #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)'
5375  #soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
5376  library_names_spec='${libname}${release}${versuffix}.dylib ${libname}${release}${major}.dylib ${libname}.dylib'
5377  soname_spec='${libname}${release}${major}.dylib'
5378  shlibpath_overrides_runpath=yes
5379  shlibpath_var=DYLD_LIBRARY_PATH
5380  ;;
5381
5382freebsd1*)
5383  dynamic_linker=no
5384  ;;
5385
5386freebsd*)
5387  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
5388  version_type=freebsd-$objformat
5389  case $version_type in
5390    freebsd-elf*)
5391      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5392      need_version=no
5393      need_lib_prefix=no
5394      ;;
5395    freebsd-*)
5396      library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
5397      need_version=yes
5398      ;;
5399  esac
5400  shlibpath_var=LD_LIBRARY_PATH
5401  case $host_os in
5402  freebsd2*)
5403    shlibpath_overrides_runpath=yes
5404    ;;
5405  *)
5406    shlibpath_overrides_runpath=no
5407    hardcode_into_libs=yes
5408    ;;
5409  esac
5410  ;;
5411
5412gnu*)
5413  version_type=linux
5414  need_lib_prefix=no
5415  need_version=no
5416  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
5417  soname_spec='${libname}${release}.so$major'
5418  shlibpath_var=LD_LIBRARY_PATH
5419  hardcode_into_libs=yes
5420  ;;
5421
5422hpux9* | hpux10* | hpux11*)
5423  # Give a soname corresponding to the major version so that dld.sl refuses to
5424  # link against other versions.
5425  dynamic_linker="$host_os dld.sl"
5426  version_type=sunos
5427  need_lib_prefix=no
5428  need_version=no
5429  shlibpath_var=SHLIB_PATH
5430  shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
5431  library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
5432  soname_spec='${libname}${release}.sl$major'
5433  # HP-UX runs *really* slowly unless shared libraries are mode 555.
5434  postinstall_cmds='chmod 555 $lib'
5435  ;;
5436
5437irix5* | irix6*)
5438  version_type=irix
5439  need_lib_prefix=no
5440  need_version=no
5441  soname_spec='${libname}${release}.so$major'
5442  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
5443  case $host_os in
5444  irix5*)
5445    libsuff= shlibsuff=
5446    ;;
5447  *)
5448    case $LD in # libtool.m4 will add one of these switches to LD
5449    *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
5450    *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
5451    *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
5452    *) libsuff= shlibsuff= libmagic=never-match;;
5453    esac
5454    ;;
5455  esac
5456  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
5457  shlibpath_overrides_runpath=no
5458  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
5459  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
5460  ;;
5461
5462# No shared lib support for Linux oldld, aout, or coff.
5463linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
5464  dynamic_linker=no
5465  ;;
5466
5467# This must be Linux ELF.
5468linux-gnu*)
5469  version_type=linux
5470  need_lib_prefix=no
5471  need_version=no
5472  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5473  soname_spec='${libname}${release}.so$major'
5474  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
5475  shlibpath_var=LD_LIBRARY_PATH
5476  shlibpath_overrides_runpath=no
5477  # This implies no fast_install, which is unacceptable.
5478  # Some rework will be needed to allow for fast_install
5479  # before this can be enabled.
5480  hardcode_into_libs=yes
5481
5482  # We used to test for /lib/ld.so.1 and disable shared libraries on
5483  # powerpc, because MkLinux only supported shared libraries with the
5484  # GNU dynamic linker.  Since this was broken with cross compilers,
5485  # most powerpc-linux boxes support dynamic linking these days and
5486  # people can always --disable-shared, the test was removed, and we
5487  # assume the GNU/Linux dynamic linker is in use.
5488  dynamic_linker='GNU/Linux ld.so'
5489  ;;
5490
5491netbsd*)
5492  version_type=sunos
5493  need_lib_prefix=no
5494  need_version=no
5495  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5496    library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5497    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5498    dynamic_linker='NetBSD (a.out) ld.so'
5499  else
5500    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
5501    soname_spec='${libname}${release}.so$major'
5502    dynamic_linker='NetBSD ld.elf_so'
5503  fi
5504  shlibpath_var=LD_LIBRARY_PATH
5505  shlibpath_overrides_runpath=yes
5506  hardcode_into_libs=yes
5507  ;;
5508
5509newsos6)
5510  version_type=linux
5511  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5512  shlibpath_var=LD_LIBRARY_PATH
5513  shlibpath_overrides_runpath=yes
5514  ;;
5515
5516openbsd*)
5517  version_type=sunos
5518  need_lib_prefix=no
5519  need_version=no
5520  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5521    case "$host_os" in
5522    openbsd2.[89] | openbsd2.[89].*)
5523      shlibpath_overrides_runpath=no
5524      ;;
5525    *)
5526      shlibpath_overrides_runpath=yes
5527      ;;
5528    esac
5529  else
5530    shlibpath_overrides_runpath=yes
5531  fi
5532  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5533  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5534  shlibpath_var=LD_LIBRARY_PATH
5535  ;;
5536
5537os2*)
5538  libname_spec='$name'
5539  need_lib_prefix=no
5540  library_names_spec='$libname.dll $libname.a'
5541  dynamic_linker='OS/2 ld.exe'
5542  shlibpath_var=LIBPATH
5543  ;;
5544
5545osf3* | osf4* | osf5*)
5546  version_type=osf
5547  need_version=no
5548  soname_spec='${libname}${release}.so'
5549  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5550  shlibpath_var=LD_LIBRARY_PATH
5551  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
5552  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
5553  ;;
5554
5555sco3.2v5*)
5556  version_type=osf
5557  soname_spec='${libname}${release}.so$major'
5558  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5559  shlibpath_var=LD_LIBRARY_PATH
5560  ;;
5561
5562solaris*)
5563  version_type=linux
5564  need_lib_prefix=no
5565  need_version=no
5566  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5567  soname_spec='${libname}${release}.so$major'
5568  shlibpath_var=LD_LIBRARY_PATH
5569  shlibpath_overrides_runpath=yes
5570  hardcode_into_libs=yes
5571  # ldd complains unless libraries are executable
5572  postinstall_cmds='chmod +x $lib'
5573  ;;
5574
5575sunos4*)
5576  version_type=sunos
5577  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5578  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
5579  shlibpath_var=LD_LIBRARY_PATH
5580  shlibpath_overrides_runpath=yes
5581  if test "$with_gnu_ld" = yes; then
5582    need_lib_prefix=no
5583  fi
5584  need_version=yes
5585  ;;
5586
5587sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5588  version_type=linux
5589  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5590  soname_spec='${libname}${release}.so$major'
5591  shlibpath_var=LD_LIBRARY_PATH
5592  case $host_vendor in
5593    sni)
5594      shlibpath_overrides_runpath=no
5595      ;;
5596    motorola)
5597      need_lib_prefix=no
5598      need_version=no
5599      shlibpath_overrides_runpath=no
5600      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
5601      ;;
5602  esac
5603  ;;
5604
5605uts4*)
5606  version_type=linux
5607  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5608  soname_spec='${libname}${release}.so$major'
5609  shlibpath_var=LD_LIBRARY_PATH
5610  ;;
5611
5612dgux*)
5613  version_type=linux
5614  need_lib_prefix=no
5615  need_version=no
5616  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5617  soname_spec='${libname}${release}.so$major'
5618  shlibpath_var=LD_LIBRARY_PATH
5619  ;;
5620
5621sysv4*MP*)
5622  if test -d /usr/nec ;then
5623    version_type=linux
5624    library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
5625    soname_spec='$libname.so.$major'
5626    shlibpath_var=LD_LIBRARY_PATH
5627  fi
5628  ;;
5629
5630*)
5631  dynamic_linker=no
5632  ;;
5633esac
5634echo "$as_me:5634: result: $dynamic_linker" >&5
5635echo "${ECHO_T}$dynamic_linker" >&6
5636test "$dynamic_linker" = no && can_build_shared=no
5637##
5638## END FIXME
5639
5640## FIXME: this should be a separate macro
5641##
5642# Report the final consequences.
5643echo "$as_me:5643: checking if libtool supports shared libraries" >&5
5644echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
5645echo "$as_me:5645: result: $can_build_shared" >&5
5646echo "${ECHO_T}$can_build_shared" >&6
5647##
5648## END FIXME
5649
5650## FIXME: this should be a separate macro
5651##
5652echo "$as_me:5652: checking whether to build shared libraries" >&5
5653echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
5654test "$can_build_shared" = "no" && enable_shared=no
5655
5656# On AIX, shared libraries and static libraries use the same namespace, and
5657# are all built from PIC.
5658case "$host_os" in
5659aix3*)
5660  test "$enable_shared" = yes && enable_static=no
5661  if test -n "$RANLIB"; then
5662    archive_cmds="$archive_cmds~\$RANLIB \$lib"
5663    postinstall_cmds='$RANLIB $lib'
5664  fi
5665  ;;
5666
5667aix4*)
5668  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
5669    test "$enable_shared" = yes && enable_static=no
5670  fi
5671  ;;
5672esac
5673echo "$as_me:5673: result: $enable_shared" >&5
5674echo "${ECHO_T}$enable_shared" >&6
5675##
5676## END FIXME
5677
5678## FIXME: this should be a separate macro
5679##
5680echo "$as_me:5680: checking whether to build static libraries" >&5
5681echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
5682# Make sure either enable_shared or enable_static is yes.
5683test "$enable_shared" = yes || enable_static=yes
5684echo "$as_me:5684: result: $enable_static" >&5
5685echo "${ECHO_T}$enable_static" >&6
5686##
5687## END FIXME
5688
5689if test "$hardcode_action" = relink; then
5690  # Fast installation is not supported
5691  enable_fast_install=no
5692elif test "$shlibpath_overrides_runpath" = yes ||
5693     test "$enable_shared" = no; then
5694  # Fast installation is not necessary
5695  enable_fast_install=needless
5696fi
5697
5698variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
5699if test "$GCC" = yes; then
5700  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
5701fi
5702
5703if test "x$enable_dlopen" != xyes; then
5704  enable_dlopen=unknown
5705  enable_dlopen_self=unknown
5706  enable_dlopen_self_static=unknown
5707else
5708  lt_cv_dlopen=no
5709  lt_cv_dlopen_libs=
5710
5711  case $host_os in
5712  beos*)
5713    lt_cv_dlopen="load_add_on"
5714    lt_cv_dlopen_libs=
5715    lt_cv_dlopen_self=yes
5716    ;;
5717
5718  cygwin* | mingw* | pw32*)
5719    lt_cv_dlopen="LoadLibrary"
5720    lt_cv_dlopen_libs=
5721   ;;
5722
5723  *)
5724    echo "$as_me:5724: checking for shl_load" >&5
5725echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
5726if test "${ac_cv_func_shl_load+set}" = set; then
5727  echo $ECHO_N "(cached) $ECHO_C" >&6
5728else
5729  cat >conftest.$ac_ext <<_ACEOF
5730#line 5730 "configure"
5731#include "confdefs.h"
5732/* System header to define __stub macros and hopefully few prototypes,
5733    which can conflict with char shl_load (); below.  */
5734#include <assert.h>
5735/* Override any gcc2 internal prototype to avoid an error.  */
5736#ifdef __cplusplus
5737extern "C"
5738#endif
5739/* We use char because int might match the return type of a gcc2
5740   builtin and then its argument prototype would still apply.  */
5741char shl_load ();
5742char (*f) ();
5743
5744int
5745main ()
5746{
5747/* The GNU C library defines this for functions which it implements
5748    to always fail with ENOSYS.  Some functions are actually named
5749    something starting with __ and the normal name is an alias.  */
5750#if defined (__stub_shl_load) || defined (__stub___shl_load)
5751choke me
5752#else
5753f = shl_load;
5754#endif
5755
5756  ;
5757  return 0;
5758}
5759_ACEOF
5760rm -f conftest.$ac_objext conftest$ac_exeext
5761if { (eval echo "$as_me:5761: \"$ac_link\"") >&5
5762  (eval $ac_link) 2>&5
5763  ac_status=$?
5764  echo "$as_me:5764: \$? = $ac_status" >&5
5765  (exit $ac_status); } &&
5766         { ac_try='test -s conftest$ac_exeext'
5767  { (eval echo "$as_me:5767: \"$ac_try\"") >&5
5768  (eval $ac_try) 2>&5
5769  ac_status=$?
5770  echo "$as_me:5770: \$? = $ac_status" >&5
5771  (exit $ac_status); }; }; then
5772  ac_cv_func_shl_load=yes
5773else
5774  echo "$as_me: failed program was:" >&5
5775cat conftest.$ac_ext >&5
5776ac_cv_func_shl_load=no
5777fi
5778rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5779fi
5780echo "$as_me:5780: result: $ac_cv_func_shl_load" >&5
5781echo "${ECHO_T}$ac_cv_func_shl_load" >&6
5782if test $ac_cv_func_shl_load = yes; then
5783  lt_cv_dlopen="shl_load"
5784else
5785  echo "$as_me:5785: checking for shl_load in -ldld" >&5
5786echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
5787if test "${ac_cv_lib_dld_shl_load+set}" = set; then
5788  echo $ECHO_N "(cached) $ECHO_C" >&6
5789else
5790  ac_check_lib_save_LIBS=$LIBS
5791LIBS="-ldld  $LIBS"
5792cat >conftest.$ac_ext <<_ACEOF
5793#line 5793 "configure"
5794#include "confdefs.h"
5795
5796/* Override any gcc2 internal prototype to avoid an error.  */
5797#ifdef __cplusplus
5798extern "C"
5799#endif
5800/* We use char because int might match the return type of a gcc2
5801   builtin and then its argument prototype would still apply.  */
5802char shl_load ();
5803int
5804main ()
5805{
5806shl_load ();
5807  ;
5808  return 0;
5809}
5810_ACEOF
5811rm -f conftest.$ac_objext conftest$ac_exeext
5812if { (eval echo "$as_me:5812: \"$ac_link\"") >&5
5813  (eval $ac_link) 2>&5
5814  ac_status=$?
5815  echo "$as_me:5815: \$? = $ac_status" >&5
5816  (exit $ac_status); } &&
5817         { ac_try='test -s conftest$ac_exeext'
5818  { (eval echo "$as_me:5818: \"$ac_try\"") >&5
5819  (eval $ac_try) 2>&5
5820  ac_status=$?
5821  echo "$as_me:5821: \$? = $ac_status" >&5
5822  (exit $ac_status); }; }; then
5823  ac_cv_lib_dld_shl_load=yes
5824else
5825  echo "$as_me: failed program was:" >&5
5826cat conftest.$ac_ext >&5
5827ac_cv_lib_dld_shl_load=no
5828fi
5829rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5830LIBS=$ac_check_lib_save_LIBS
5831fi
5832echo "$as_me:5832: result: $ac_cv_lib_dld_shl_load" >&5
5833echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
5834if test $ac_cv_lib_dld_shl_load = yes; then
5835  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
5836else
5837  echo "$as_me:5837: checking for dlopen" >&5
5838echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
5839if test "${ac_cv_func_dlopen+set}" = set; then
5840  echo $ECHO_N "(cached) $ECHO_C" >&6
5841else
5842  cat >conftest.$ac_ext <<_ACEOF
5843#line 5843 "configure"
5844#include "confdefs.h"
5845/* System header to define __stub macros and hopefully few prototypes,
5846    which can conflict with char dlopen (); below.  */
5847#include <assert.h>
5848/* Override any gcc2 internal prototype to avoid an error.  */
5849#ifdef __cplusplus
5850extern "C"
5851#endif
5852/* We use char because int might match the return type of a gcc2
5853   builtin and then its argument prototype would still apply.  */
5854char dlopen ();
5855char (*f) ();
5856
5857int
5858main ()
5859{
5860/* The GNU C library defines this for functions which it implements
5861    to always fail with ENOSYS.  Some functions are actually named
5862    something starting with __ and the normal name is an alias.  */
5863#if defined (__stub_dlopen) || defined (__stub___dlopen)
5864choke me
5865#else
5866f = dlopen;
5867#endif
5868
5869  ;
5870  return 0;
5871}
5872_ACEOF
5873rm -f conftest.$ac_objext conftest$ac_exeext
5874if { (eval echo "$as_me:5874: \"$ac_link\"") >&5
5875  (eval $ac_link) 2>&5
5876  ac_status=$?
5877  echo "$as_me:5877: \$? = $ac_status" >&5
5878  (exit $ac_status); } &&
5879         { ac_try='test -s conftest$ac_exeext'
5880  { (eval echo "$as_me:5880: \"$ac_try\"") >&5
5881  (eval $ac_try) 2>&5
5882  ac_status=$?
5883  echo "$as_me:5883: \$? = $ac_status" >&5
5884  (exit $ac_status); }; }; then
5885  ac_cv_func_dlopen=yes
5886else
5887  echo "$as_me: failed program was:" >&5
5888cat conftest.$ac_ext >&5
5889ac_cv_func_dlopen=no
5890fi
5891rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5892fi
5893echo "$as_me:5893: result: $ac_cv_func_dlopen" >&5
5894echo "${ECHO_T}$ac_cv_func_dlopen" >&6
5895if test $ac_cv_func_dlopen = yes; then
5896  lt_cv_dlopen="dlopen"
5897else
5898  echo "$as_me:5898: checking for dlopen in -ldl" >&5
5899echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
5900if test "${ac_cv_lib_dl_dlopen+set}" = set; then
5901  echo $ECHO_N "(cached) $ECHO_C" >&6
5902else
5903  ac_check_lib_save_LIBS=$LIBS
5904LIBS="-ldl  $LIBS"
5905cat >conftest.$ac_ext <<_ACEOF
5906#line 5906 "configure"
5907#include "confdefs.h"
5908
5909/* Override any gcc2 internal prototype to avoid an error.  */
5910#ifdef __cplusplus
5911extern "C"
5912#endif
5913/* We use char because int might match the return type of a gcc2
5914   builtin and then its argument prototype would still apply.  */
5915char dlopen ();
5916int
5917main ()
5918{
5919dlopen ();
5920  ;
5921  return 0;
5922}
5923_ACEOF
5924rm -f conftest.$ac_objext conftest$ac_exeext
5925if { (eval echo "$as_me:5925: \"$ac_link\"") >&5
5926  (eval $ac_link) 2>&5
5927  ac_status=$?
5928  echo "$as_me:5928: \$? = $ac_status" >&5
5929  (exit $ac_status); } &&
5930         { ac_try='test -s conftest$ac_exeext'
5931  { (eval echo "$as_me:5931: \"$ac_try\"") >&5
5932  (eval $ac_try) 2>&5
5933  ac_status=$?
5934  echo "$as_me:5934: \$? = $ac_status" >&5
5935  (exit $ac_status); }; }; then
5936  ac_cv_lib_dl_dlopen=yes
5937else
5938  echo "$as_me: failed program was:" >&5
5939cat conftest.$ac_ext >&5
5940ac_cv_lib_dl_dlopen=no
5941fi
5942rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5943LIBS=$ac_check_lib_save_LIBS
5944fi
5945echo "$as_me:5945: result: $ac_cv_lib_dl_dlopen" >&5
5946echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
5947if test $ac_cv_lib_dl_dlopen = yes; then
5948  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
5949else
5950  echo "$as_me:5950: checking for dlopen in -lsvld" >&5
5951echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
5952if test "${ac_cv_lib_svld_dlopen+set}" = set; then
5953  echo $ECHO_N "(cached) $ECHO_C" >&6
5954else
5955  ac_check_lib_save_LIBS=$LIBS
5956LIBS="-lsvld  $LIBS"
5957cat >conftest.$ac_ext <<_ACEOF
5958#line 5958 "configure"
5959#include "confdefs.h"
5960
5961/* Override any gcc2 internal prototype to avoid an error.  */
5962#ifdef __cplusplus
5963extern "C"
5964#endif
5965/* We use char because int might match the return type of a gcc2
5966   builtin and then its argument prototype would still apply.  */
5967char dlopen ();
5968int
5969main ()
5970{
5971dlopen ();
5972  ;
5973  return 0;
5974}
5975_ACEOF
5976rm -f conftest.$ac_objext conftest$ac_exeext
5977if { (eval echo "$as_me:5977: \"$ac_link\"") >&5
5978  (eval $ac_link) 2>&5
5979  ac_status=$?
5980  echo "$as_me:5980: \$? = $ac_status" >&5
5981  (exit $ac_status); } &&
5982         { ac_try='test -s conftest$ac_exeext'
5983  { (eval echo "$as_me:5983: \"$ac_try\"") >&5
5984  (eval $ac_try) 2>&5
5985  ac_status=$?
5986  echo "$as_me:5986: \$? = $ac_status" >&5
5987  (exit $ac_status); }; }; then
5988  ac_cv_lib_svld_dlopen=yes
5989else
5990  echo "$as_me: failed program was:" >&5
5991cat conftest.$ac_ext >&5
5992ac_cv_lib_svld_dlopen=no
5993fi
5994rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5995LIBS=$ac_check_lib_save_LIBS
5996fi
5997echo "$as_me:5997: result: $ac_cv_lib_svld_dlopen" >&5
5998echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
5999if test $ac_cv_lib_svld_dlopen = yes; then
6000  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6001else
6002  echo "$as_me:6002: checking for dld_link in -ldld" >&5
6003echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
6004if test "${ac_cv_lib_dld_dld_link+set}" = set; then
6005  echo $ECHO_N "(cached) $ECHO_C" >&6
6006else
6007  ac_check_lib_save_LIBS=$LIBS
6008LIBS="-ldld  $LIBS"
6009cat >conftest.$ac_ext <<_ACEOF
6010#line 6010 "configure"
6011#include "confdefs.h"
6012
6013/* Override any gcc2 internal prototype to avoid an error.  */
6014#ifdef __cplusplus
6015extern "C"
6016#endif
6017/* We use char because int might match the return type of a gcc2
6018   builtin and then its argument prototype would still apply.  */
6019char dld_link ();
6020int
6021main ()
6022{
6023dld_link ();
6024  ;
6025  return 0;
6026}
6027_ACEOF
6028rm -f conftest.$ac_objext conftest$ac_exeext
6029if { (eval echo "$as_me:6029: \"$ac_link\"") >&5
6030  (eval $ac_link) 2>&5
6031  ac_status=$?
6032  echo "$as_me:6032: \$? = $ac_status" >&5
6033  (exit $ac_status); } &&
6034         { ac_try='test -s conftest$ac_exeext'
6035  { (eval echo "$as_me:6035: \"$ac_try\"") >&5
6036  (eval $ac_try) 2>&5
6037  ac_status=$?
6038  echo "$as_me:6038: \$? = $ac_status" >&5
6039  (exit $ac_status); }; }; then
6040  ac_cv_lib_dld_dld_link=yes
6041else
6042  echo "$as_me: failed program was:" >&5
6043cat conftest.$ac_ext >&5
6044ac_cv_lib_dld_dld_link=no
6045fi
6046rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6047LIBS=$ac_check_lib_save_LIBS
6048fi
6049echo "$as_me:6049: result: $ac_cv_lib_dld_dld_link" >&5
6050echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
6051if test $ac_cv_lib_dld_dld_link = yes; then
6052  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6053fi
6054
6055fi
6056
6057fi
6058
6059fi
6060
6061fi
6062
6063fi
6064
6065    ;;
6066  esac
6067
6068  if test "x$lt_cv_dlopen" != xno; then
6069    enable_dlopen=yes
6070  else
6071    enable_dlopen=no
6072  fi
6073
6074  case $lt_cv_dlopen in
6075  dlopen)
6076    save_CPPFLAGS="$CPPFLAGS"
6077        test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
6078
6079    save_LDFLAGS="$LDFLAGS"
6080    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6081
6082    save_LIBS="$LIBS"
6083    LIBS="$lt_cv_dlopen_libs $LIBS"
6084
6085    echo "$as_me:6085: checking whether a program can dlopen itself" >&5
6086echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
6087if test "${lt_cv_dlopen_self+set}" = set; then
6088  echo $ECHO_N "(cached) $ECHO_C" >&6
6089else
6090  	  if test "$cross_compiling" = yes; then :
6091  lt_cv_dlopen_self=cross
6092else
6093    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6094  lt_status=$lt_dlunknown
6095  cat > conftest.$ac_ext <<EOF
6096#line 6096 "configure"
6097#include "confdefs.h"
6098
6099#if HAVE_DLFCN_H
6100#include <dlfcn.h>
6101#endif
6102
6103#include <stdio.h>
6104
6105#ifdef RTLD_GLOBAL
6106#  define LT_DLGLOBAL		RTLD_GLOBAL
6107#else
6108#  ifdef DL_GLOBAL
6109#    define LT_DLGLOBAL		DL_GLOBAL
6110#  else
6111#    define LT_DLGLOBAL		0
6112#  endif
6113#endif
6114
6115/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6116   find out it does not work in some platform. */
6117#ifndef LT_DLLAZY_OR_NOW
6118#  ifdef RTLD_LAZY
6119#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
6120#  else
6121#    ifdef DL_LAZY
6122#      define LT_DLLAZY_OR_NOW		DL_LAZY
6123#    else
6124#      ifdef RTLD_NOW
6125#        define LT_DLLAZY_OR_NOW	RTLD_NOW
6126#      else
6127#        ifdef DL_NOW
6128#          define LT_DLLAZY_OR_NOW	DL_NOW
6129#        else
6130#          define LT_DLLAZY_OR_NOW	0
6131#        endif
6132#      endif
6133#    endif
6134#  endif
6135#endif
6136
6137#ifdef __cplusplus
6138extern "C" void exit (int);
6139#endif
6140
6141void fnord() { int i=42;}
6142int main ()
6143{
6144  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6145  int status = $lt_dlunknown;
6146
6147  if (self)
6148    {
6149      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
6150      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6151      /* dlclose (self); */
6152    }
6153
6154    exit (status);
6155}
6156EOF
6157  if { (eval echo "$as_me:6157: \"$ac_link\"") >&5
6158  (eval $ac_link) 2>&5
6159  ac_status=$?
6160  echo "$as_me:6160: \$? = $ac_status" >&5
6161  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6162    (./conftest; exit; ) 2>/dev/null
6163    lt_status=$?
6164    case x$lt_status in
6165      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
6166      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
6167      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
6168    esac
6169  else :
6170    # compilation failed
6171    lt_cv_dlopen_self=no
6172  fi
6173fi
6174rm -fr conftest*
6175
6176fi
6177echo "$as_me:6177: result: $lt_cv_dlopen_self" >&5
6178echo "${ECHO_T}$lt_cv_dlopen_self" >&6
6179
6180    if test "x$lt_cv_dlopen_self" = xyes; then
6181      LDFLAGS="$LDFLAGS $link_static_flag"
6182      echo "$as_me:6182: checking whether a statically linked program can dlopen itself" >&5
6183echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
6184if test "${lt_cv_dlopen_self_static+set}" = set; then
6185  echo $ECHO_N "(cached) $ECHO_C" >&6
6186else
6187  	  if test "$cross_compiling" = yes; then :
6188  lt_cv_dlopen_self_static=cross
6189else
6190    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6191  lt_status=$lt_dlunknown
6192  cat > conftest.$ac_ext <<EOF
6193#line 6193 "configure"
6194#include "confdefs.h"
6195
6196#if HAVE_DLFCN_H
6197#include <dlfcn.h>
6198#endif
6199
6200#include <stdio.h>
6201
6202#ifdef RTLD_GLOBAL
6203#  define LT_DLGLOBAL		RTLD_GLOBAL
6204#else
6205#  ifdef DL_GLOBAL
6206#    define LT_DLGLOBAL		DL_GLOBAL
6207#  else
6208#    define LT_DLGLOBAL		0
6209#  endif
6210#endif
6211
6212/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6213   find out it does not work in some platform. */
6214#ifndef LT_DLLAZY_OR_NOW
6215#  ifdef RTLD_LAZY
6216#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
6217#  else
6218#    ifdef DL_LAZY
6219#      define LT_DLLAZY_OR_NOW		DL_LAZY
6220#    else
6221#      ifdef RTLD_NOW
6222#        define LT_DLLAZY_OR_NOW	RTLD_NOW
6223#      else
6224#        ifdef DL_NOW
6225#          define LT_DLLAZY_OR_NOW	DL_NOW
6226#        else
6227#          define LT_DLLAZY_OR_NOW	0
6228#        endif
6229#      endif
6230#    endif
6231#  endif
6232#endif
6233
6234#ifdef __cplusplus
6235extern "C" void exit (int);
6236#endif
6237
6238void fnord() { int i=42;}
6239int main ()
6240{
6241  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6242  int status = $lt_dlunknown;
6243
6244  if (self)
6245    {
6246      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
6247      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6248      /* dlclose (self); */
6249    }
6250
6251    exit (status);
6252}
6253EOF
6254  if { (eval echo "$as_me:6254: \"$ac_link\"") >&5
6255  (eval $ac_link) 2>&5
6256  ac_status=$?
6257  echo "$as_me:6257: \$? = $ac_status" >&5
6258  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6259    (./conftest; exit; ) 2>/dev/null
6260    lt_status=$?
6261    case x$lt_status in
6262      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
6263      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
6264      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
6265    esac
6266  else :
6267    # compilation failed
6268    lt_cv_dlopen_self_static=no
6269  fi
6270fi
6271rm -fr conftest*
6272
6273fi
6274echo "$as_me:6274: result: $lt_cv_dlopen_self_static" >&5
6275echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
6276    fi
6277
6278    CPPFLAGS="$save_CPPFLAGS"
6279    LDFLAGS="$save_LDFLAGS"
6280    LIBS="$save_LIBS"
6281    ;;
6282  esac
6283
6284  case $lt_cv_dlopen_self in
6285  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
6286  *) enable_dlopen_self=unknown ;;
6287  esac
6288
6289  case $lt_cv_dlopen_self_static in
6290  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
6291  *) enable_dlopen_self_static=unknown ;;
6292  esac
6293fi
6294
6295## FIXME: this should be a separate macro
6296##
6297if test "$enable_shared" = yes && test "$GCC" = yes; then
6298  case $archive_cmds in
6299  *'~'*)
6300    # FIXME: we may have to deal with multi-command sequences.
6301    ;;
6302  '$CC '*)
6303    # Test whether the compiler implicitly links with -lc since on some
6304    # systems, -lgcc has to come before -lc. If gcc already passes -lc
6305    # to ld, don't add -lc before -lgcc.
6306    echo "$as_me:6306: checking whether -lc should be explicitly linked in" >&5
6307echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
6308    if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
6309  echo $ECHO_N "(cached) $ECHO_C" >&6
6310else
6311  $rm conftest*
6312    echo 'static int dummy;' > conftest.$ac_ext
6313
6314    if { (eval echo "$as_me:6314: \"$ac_compile\"") >&5
6315  (eval $ac_compile) 2>&5
6316  ac_status=$?
6317  echo "$as_me:6317: \$? = $ac_status" >&5
6318  (exit $ac_status); }; then
6319      soname=conftest
6320      lib=conftest
6321      libobjs=conftest.$ac_objext
6322      deplibs=
6323      wl=$lt_cv_prog_cc_wl
6324      compiler_flags=-v
6325      linker_flags=-v
6326      verstring=
6327      output_objdir=.
6328      libname=conftest
6329      save_allow_undefined_flag=$allow_undefined_flag
6330      allow_undefined_flag=
6331      if { (eval echo "$as_me:6331: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
6332  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
6333  ac_status=$?
6334  echo "$as_me:6334: \$? = $ac_status" >&5
6335  (exit $ac_status); }
6336      then
6337	lt_cv_archive_cmds_need_lc=no
6338      else
6339	lt_cv_archive_cmds_need_lc=yes
6340      fi
6341      allow_undefined_flag=$save_allow_undefined_flag
6342    else
6343      cat conftest.err 1>&5
6344    fi
6345fi
6346
6347    echo "$as_me:6347: result: $lt_cv_archive_cmds_need_lc" >&5
6348echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
6349    ;;
6350  esac
6351fi
6352need_lc=${lt_cv_archive_cmds_need_lc-yes}
6353##
6354## END FIXME
6355
6356## FIXME: this should be a separate macro
6357##
6358# The second clause should only fire when bootstrapping the
6359# libtool distribution, otherwise you forgot to ship ltmain.sh
6360# with your package, and you will get complaints that there are
6361# no rules to generate ltmain.sh.
6362if test -f "$ltmain"; then
6363  :
6364else
6365  # If there is no Makefile yet, we rely on a make rule to execute
6366  # `config.status --recheck' to rerun these tests and create the
6367  # libtool script then.
6368  test -f Makefile && make "$ltmain"
6369fi
6370
6371if test -f "$ltmain"; then
6372  trap "$rm \"${ofile}T\"; exit 1" 1 2 15
6373  $rm -f "${ofile}T"
6374
6375  echo creating $ofile
6376
6377  # Now quote all the things that may contain metacharacters while being
6378  # careful not to overquote the AC_SUBSTed values.  We take copies of the
6379  # variables and quote the copies for generation of the libtool script.
6380  for var in echo old_CC old_CFLAGS \
6381    AR AR_FLAGS CC LD LN_S NM SHELL \
6382    reload_flag reload_cmds wl \
6383    pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
6384    thread_safe_flag_spec whole_archive_flag_spec libname_spec \
6385    library_names_spec soname_spec \
6386    RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
6387    old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
6388    postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
6389    old_striplib striplib file_magic_cmd export_symbols_cmds \
6390    deplibs_check_method allow_undefined_flag no_undefined_flag \
6391    finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
6392    global_symbol_to_c_name_address \
6393    hardcode_libdir_flag_spec hardcode_libdir_separator  \
6394    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
6395    compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
6396
6397    case $var in
6398    reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
6399    old_postinstall_cmds | old_postuninstall_cmds | \
6400    export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
6401    extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
6402    postinstall_cmds | postuninstall_cmds | \
6403    finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
6404      # Double-quote double-evaled strings.
6405      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
6406      ;;
6407    *)
6408      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
6409      ;;
6410    esac
6411  done
6412
6413  cat <<__EOF__ > "${ofile}T"
6414#! $SHELL
6415
6416# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
6417# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
6418# NOTE: Changes made to this file will be lost: look at ltmain.sh.
6419#
6420# Copyright (C) 1996-2000 Free Software Foundation, Inc.
6421# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
6422#
6423# This program is free software; you can redistribute it and/or modify
6424# it under the terms of the GNU General Public License as published by
6425# the Free Software Foundation; either version 2 of the License, or
6426# (at your option) any later version.
6427#
6428# This program is distributed in the hope that it will be useful, but
6429# WITHOUT ANY WARRANTY; without even the implied warranty of
6430# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
6431# General Public License for more details.
6432#
6433# You should have received a copy of the GNU General Public License
6434# along with this program; if not, write to the Free Software
6435# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
6436#
6437# As a special exception to the GNU General Public License, if you
6438# distribute this file as part of a program that contains a
6439# configuration script generated by Autoconf, you may include it under
6440# the same distribution terms that you use for the rest of that program.
6441
6442# Sed that helps us avoid accidentally triggering echo(1) options like -n.
6443Xsed="sed -e s/^X//"
6444
6445# The HP-UX ksh and POSIX shell print the target directory to stdout
6446# if CDPATH is set.
6447if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
6448
6449# ### BEGIN LIBTOOL CONFIG
6450
6451# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6452
6453# Shell to use when invoking shell scripts.
6454SHELL=$lt_SHELL
6455
6456# Whether or not to build shared libraries.
6457build_libtool_libs=$enable_shared
6458
6459# Whether or not to build static libraries.
6460build_old_libs=$enable_static
6461
6462# Whether or not to add -lc for building shared libraries.
6463build_libtool_need_lc=$need_lc
6464
6465# Whether or not to optimize for fast installation.
6466fast_install=$enable_fast_install
6467
6468# The host system.
6469host_alias=$host_alias
6470host=$host
6471
6472# An echo program that does not interpret backslashes.
6473echo=$lt_echo
6474
6475# The archiver.
6476AR=$lt_AR
6477AR_FLAGS=$lt_AR_FLAGS
6478
6479# The default C compiler.
6480CC=$lt_CC
6481
6482# Is the compiler the GNU C compiler?
6483with_gcc=$GCC
6484
6485# The linker used to build libraries.
6486LD=$lt_LD
6487
6488# Whether we need hard or soft links.
6489LN_S=$lt_LN_S
6490
6491# A BSD-compatible nm program.
6492NM=$lt_NM
6493
6494# A symbol stripping program
6495STRIP=$STRIP
6496
6497# Used to examine libraries when file_magic_cmd begins "file"
6498MAGIC_CMD=$MAGIC_CMD
6499
6500# Used on cygwin: DLL creation program.
6501DLLTOOL="$DLLTOOL"
6502
6503# Used on cygwin: object dumper.
6504OBJDUMP="$OBJDUMP"
6505
6506# Used on cygwin: assembler.
6507AS="$AS"
6508
6509# The name of the directory that contains temporary libtool files.
6510objdir=$objdir
6511
6512# How to create reloadable object files.
6513reload_flag=$lt_reload_flag
6514reload_cmds=$lt_reload_cmds
6515
6516# How to pass a linker flag through the compiler.
6517wl=$lt_wl
6518
6519# Object file suffix (normally "o").
6520objext="$ac_objext"
6521
6522# Old archive suffix (normally "a").
6523libext="$libext"
6524
6525# Executable file suffix (normally "").
6526exeext="$exeext"
6527
6528# Additional compiler flags for building library objects.
6529pic_flag=$lt_pic_flag
6530pic_mode=$pic_mode
6531
6532# Does compiler simultaneously support -c and -o options?
6533compiler_c_o=$lt_compiler_c_o
6534
6535# Can we write directly to a .lo ?
6536compiler_o_lo=$lt_compiler_o_lo
6537
6538# Must we lock files when doing compilation ?
6539need_locks=$lt_need_locks
6540
6541# Do we need the lib prefix for modules?
6542need_lib_prefix=$need_lib_prefix
6543
6544# Do we need a version for libraries?
6545need_version=$need_version
6546
6547# Whether dlopen is supported.
6548dlopen_support=$enable_dlopen
6549
6550# Whether dlopen of programs is supported.
6551dlopen_self=$enable_dlopen_self
6552
6553# Whether dlopen of statically linked programs is supported.
6554dlopen_self_static=$enable_dlopen_self_static
6555
6556# Compiler flag to prevent dynamic linking.
6557link_static_flag=$lt_link_static_flag
6558
6559# Compiler flag to turn off builtin functions.
6560no_builtin_flag=$lt_no_builtin_flag
6561
6562# Compiler flag to allow reflexive dlopens.
6563export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
6564
6565# Compiler flag to generate shared objects directly from archives.
6566whole_archive_flag_spec=$lt_whole_archive_flag_spec
6567
6568# Compiler flag to generate thread-safe objects.
6569thread_safe_flag_spec=$lt_thread_safe_flag_spec
6570
6571# Library versioning type.
6572version_type=$version_type
6573
6574# Format of library name prefix.
6575libname_spec=$lt_libname_spec
6576
6577# List of archive names.  First name is the real one, the rest are links.
6578# The last name is the one that the linker finds with -lNAME.
6579library_names_spec=$lt_library_names_spec
6580
6581# The coded name of the library, if different from the real name.
6582soname_spec=$lt_soname_spec
6583
6584# Commands used to build and install an old-style archive.
6585RANLIB=$lt_RANLIB
6586old_archive_cmds=$lt_old_archive_cmds
6587old_postinstall_cmds=$lt_old_postinstall_cmds
6588old_postuninstall_cmds=$lt_old_postuninstall_cmds
6589
6590# Create an old-style archive from a shared archive.
6591old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
6592
6593# Create a temporary old-style archive to link instead of a shared archive.
6594old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
6595
6596# Commands used to build and install a shared archive.
6597archive_cmds=$lt_archive_cmds
6598archive_expsym_cmds=$lt_archive_expsym_cmds
6599postinstall_cmds=$lt_postinstall_cmds
6600postuninstall_cmds=$lt_postuninstall_cmds
6601
6602# Commands to strip libraries.
6603old_striplib=$lt_old_striplib
6604striplib=$lt_striplib
6605
6606# Method to check whether dependent libraries are shared objects.
6607deplibs_check_method=$lt_deplibs_check_method
6608
6609# Command to use when deplibs_check_method == file_magic.
6610file_magic_cmd=$lt_file_magic_cmd
6611
6612# Flag that allows shared libraries with undefined symbols to be built.
6613allow_undefined_flag=$lt_allow_undefined_flag
6614
6615# Flag that forces no undefined symbols.
6616no_undefined_flag=$lt_no_undefined_flag
6617
6618# Commands used to finish a libtool library installation in a directory.
6619finish_cmds=$lt_finish_cmds
6620
6621# Same as above, but a single script fragment to be evaled but not shown.
6622finish_eval=$lt_finish_eval
6623
6624# Take the output of nm and produce a listing of raw symbols and C names.
6625global_symbol_pipe=$lt_global_symbol_pipe
6626
6627# Transform the output of nm in a proper C declaration
6628global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
6629
6630# Transform the output of nm in a C name address pair
6631global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
6632
6633# This is the shared library runtime path variable.
6634runpath_var=$runpath_var
6635
6636# This is the shared library path variable.
6637shlibpath_var=$shlibpath_var
6638
6639# Is shlibpath searched before the hard-coded library search path?
6640shlibpath_overrides_runpath=$shlibpath_overrides_runpath
6641
6642# How to hardcode a shared library path into an executable.
6643hardcode_action=$hardcode_action
6644
6645# Whether we should hardcode library paths into libraries.
6646hardcode_into_libs=$hardcode_into_libs
6647
6648# Flag to hardcode \$libdir into a binary during linking.
6649# This must work even if \$libdir does not exist.
6650hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
6651
6652# Whether we need a single -rpath flag with a separated argument.
6653hardcode_libdir_separator=$lt_hardcode_libdir_separator
6654
6655# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
6656# resulting binary.
6657hardcode_direct=$hardcode_direct
6658
6659# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
6660# resulting binary.
6661hardcode_minus_L=$hardcode_minus_L
6662
6663# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
6664# the resulting binary.
6665hardcode_shlibpath_var=$hardcode_shlibpath_var
6666
6667# Variables whose values should be saved in libtool wrapper scripts and
6668# restored at relink time.
6669variables_saved_for_relink="$variables_saved_for_relink"
6670
6671# Whether libtool must link a program against all its dependency libraries.
6672link_all_deplibs=$link_all_deplibs
6673
6674# Compile-time system search path for libraries
6675sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
6676
6677# Run-time system search path for libraries
6678sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
6679
6680# Fix the shell variable \$srcfile for the compiler.
6681fix_srcfile_path="$fix_srcfile_path"
6682
6683# Set to yes if exported symbols are required.
6684always_export_symbols=$always_export_symbols
6685
6686# The commands to list exported symbols.
6687export_symbols_cmds=$lt_export_symbols_cmds
6688
6689# The commands to extract the exported symbol list from a shared archive.
6690extract_expsyms_cmds=$lt_extract_expsyms_cmds
6691
6692# Symbols that should not be listed in the preloaded symbols.
6693exclude_expsyms=$lt_exclude_expsyms
6694
6695# Symbols that must always be exported.
6696include_expsyms=$lt_include_expsyms
6697
6698# ### END LIBTOOL CONFIG
6699
6700__EOF__
6701
6702  case $host_os in
6703  aix3*)
6704    cat <<\EOF >> "${ofile}T"
6705
6706# AIX sometimes has problems with the GCC collect2 program.  For some
6707# reason, if we set the COLLECT_NAMES environment variable, the problems
6708# vanish in a puff of smoke.
6709if test "X${COLLECT_NAMES+set}" != Xset; then
6710  COLLECT_NAMES=
6711  export COLLECT_NAMES
6712fi
6713EOF
6714    ;;
6715  esac
6716
6717  case $host_os in
6718  cygwin* | mingw* | pw32* | os2*)
6719    cat <<'EOF' >> "${ofile}T"
6720      # This is a source program that is used to create dlls on Windows
6721      # Don't remove nor modify the starting and closing comments
6722# /* ltdll.c starts here */
6723# #define WIN32_LEAN_AND_MEAN
6724# #include <windows.h>
6725# #undef WIN32_LEAN_AND_MEAN
6726# #include <stdio.h>
6727#
6728# #ifndef __CYGWIN__
6729# #  ifdef __CYGWIN32__
6730# #    define __CYGWIN__ __CYGWIN32__
6731# #  endif
6732# #endif
6733#
6734# #ifdef __cplusplus
6735# extern "C" {
6736# #endif
6737# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
6738# #ifdef __cplusplus
6739# }
6740# #endif
6741#
6742# #ifdef __CYGWIN__
6743# #include <cygwin/cygwin_dll.h>
6744# DECLARE_CYGWIN_DLL( DllMain );
6745# #endif
6746# HINSTANCE __hDllInstance_base;
6747#
6748# BOOL APIENTRY
6749# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
6750# {
6751#   __hDllInstance_base = hInst;
6752#   return TRUE;
6753# }
6754# /* ltdll.c ends here */
6755	# This is a source program that is used to create import libraries
6756	# on Windows for dlls which lack them. Don't remove nor modify the
6757	# starting and closing comments
6758# /* impgen.c starts here */
6759# /*   Copyright (C) 1999-2000 Free Software Foundation, Inc.
6760#
6761#  This file is part of GNU libtool.
6762#
6763#  This program is free software; you can redistribute it and/or modify
6764#  it under the terms of the GNU General Public License as published by
6765#  the Free Software Foundation; either version 2 of the License, or
6766#  (at your option) any later version.
6767#
6768#  This program is distributed in the hope that it will be useful,
6769#  but WITHOUT ANY WARRANTY; without even the implied warranty of
6770#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
6771#  GNU General Public License for more details.
6772#
6773#  You should have received a copy of the GNU General Public License
6774#  along with this program; if not, write to the Free Software
6775#  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
6776#  */
6777#
6778# #include <stdio.h>		/* for printf() */
6779# #include <unistd.h>		/* for open(), lseek(), read() */
6780# #include <fcntl.h>		/* for O_RDONLY, O_BINARY */
6781# #include <string.h>		/* for strdup() */
6782#
6783# /* O_BINARY isn't required (or even defined sometimes) under Unix */
6784# #ifndef O_BINARY
6785# #define O_BINARY 0
6786# #endif
6787#
6788# static unsigned int
6789# pe_get16 (fd, offset)
6790#      int fd;
6791#      int offset;
6792# {
6793#   unsigned char b[2];
6794#   lseek (fd, offset, SEEK_SET);
6795#   read (fd, b, 2);
6796#   return b[0] + (b[1]<<8);
6797# }
6798#
6799# static unsigned int
6800# pe_get32 (fd, offset)
6801#     int fd;
6802#     int offset;
6803# {
6804#   unsigned char b[4];
6805#   lseek (fd, offset, SEEK_SET);
6806#   read (fd, b, 4);
6807#   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
6808# }
6809#
6810# static unsigned int
6811# pe_as32 (ptr)
6812#      void *ptr;
6813# {
6814#   unsigned char *b = ptr;
6815#   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
6816# }
6817#
6818# int
6819# main (argc, argv)
6820#     int argc;
6821#     char *argv[];
6822# {
6823#     int dll;
6824#     unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
6825#     unsigned long export_rva, export_size, nsections, secptr, expptr;
6826#     unsigned long name_rvas, nexp;
6827#     unsigned char *expdata, *erva;
6828#     char *filename, *dll_name;
6829#
6830#     filename = argv[1];
6831#
6832#     dll = open(filename, O_RDONLY|O_BINARY);
6833#     if (dll < 1)
6834# 	return 1;
6835#
6836#     dll_name = filename;
6837#
6838#     for (i=0; filename[i]; i++)
6839# 	if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':')
6840# 	    dll_name = filename + i +1;
6841#
6842#     pe_header_offset = pe_get32 (dll, 0x3c);
6843#     opthdr_ofs = pe_header_offset + 4 + 20;
6844#     num_entries = pe_get32 (dll, opthdr_ofs + 92);
6845#
6846#     if (num_entries < 1) /* no exports */
6847# 	return 1;
6848#
6849#     export_rva = pe_get32 (dll, opthdr_ofs + 96);
6850#     export_size = pe_get32 (dll, opthdr_ofs + 100);
6851#     nsections = pe_get16 (dll, pe_header_offset + 4 +2);
6852#     secptr = (pe_header_offset + 4 + 20 +
6853# 	      pe_get16 (dll, pe_header_offset + 4 + 16));
6854#
6855#     expptr = 0;
6856#     for (i = 0; i < nsections; i++)
6857#     {
6858# 	char sname[8];
6859# 	unsigned long secptr1 = secptr + 40 * i;
6860# 	unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
6861# 	unsigned long vsize = pe_get32 (dll, secptr1 + 16);
6862# 	unsigned long fptr = pe_get32 (dll, secptr1 + 20);
6863# 	lseek(dll, secptr1, SEEK_SET);
6864# 	read(dll, sname, 8);
6865# 	if (vaddr <= export_rva && vaddr+vsize > export_rva)
6866# 	{
6867# 	    expptr = fptr + (export_rva - vaddr);
6868# 	    if (export_rva + export_size > vaddr + vsize)
6869# 		export_size = vsize - (export_rva - vaddr);
6870# 	    break;
6871# 	}
6872#     }
6873#
6874#     expdata = (unsigned char*)malloc(export_size);
6875#     lseek (dll, expptr, SEEK_SET);
6876#     read (dll, expdata, export_size);
6877#     erva = expdata - export_rva;
6878#
6879#     nexp = pe_as32 (expdata+24);
6880#     name_rvas = pe_as32 (expdata+32);
6881#
6882#     printf ("EXPORTS\n");
6883#     for (i = 0; i<nexp; i++)
6884#     {
6885# 	unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
6886# 	printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
6887#     }
6888#
6889#     return 0;
6890# }
6891# /* impgen.c ends here */
6892
6893EOF
6894    ;;
6895  esac
6896
6897  # We use sed instead of cat because bash on DJGPP gets confused if
6898  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
6899  # text mode, it properly converts lines to CR/LF.  This bash problem
6900  # is reportedly fixed, but why not run on old versions too?
6901  sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
6902
6903  mv -f "${ofile}T" "$ofile" || \
6904    (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
6905  chmod +x "$ofile"
6906fi
6907##
6908## END FIXME
6909
6910# This can be used to rebuild libtool when needed
6911LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
6912
6913# Always use our own libtool.
6914LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6915
6916# Prevent multiple expansion
6917
6918# --------------------------------------------------------------------
6919# 	PDFlib Java binding (JNI)
6920# --------------------------------------------------------------------
6921
6922WITH_JAVA=yes
6923JAVAINCLUDE=""
6924JAVAPACKAGE=""
6925
6926# Check whether --with-java or --without-java was given.
6927if test "${with_java+set}" = set; then
6928  withval="$with_java"
6929
6930case $withval in
6931    no) WITH_JAVA=no ;;
6932    yes) WITH_JAVA=yes ;;
6933    *) JAVAPACKAGE=$withval
6934    ;;
6935esac
6936
6937fi;
6938
6939if test "$WITH_JAVA" != "no" ; then
6940    WITH_JAVA=no
6941    echo "$as_me:6941: checking for Java header files" >&5
6942echo $ECHO_N "checking for Java header files... $ECHO_C" >&6
6943
6944    # try without any precautions
6945    cat >conftest.$ac_ext <<_ACEOF
6946#line 6946 "configure"
6947#include "confdefs.h"
6948#include <jni.h>
6949_ACEOF
6950if { (eval echo "$as_me:6950: \"$ac_cpp conftest.$ac_ext\"") >&5
6951  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6952  ac_status=$?
6953  egrep -v '^ *\+' conftest.er1 >conftest.err
6954  rm -f conftest.er1
6955  cat conftest.err >&5
6956  echo "$as_me:6956: \$? = $ac_status" >&5
6957  (exit $ac_status); } >/dev/null; then
6958  if test -s conftest.err; then
6959    ac_cpp_err=$ac_c_preproc_warn_flag
6960  else
6961    ac_cpp_err=
6962  fi
6963else
6964  ac_cpp_err=yes
6965fi
6966if test -z "$ac_cpp_err"; then
6967  WITH_JAVA=yes
6968else
6969  echo "$as_me: failed program was:" >&5
6970  cat conftest.$ac_ext >&5
6971   dirs="$prefix /usr/lib/java /usr/java /usr/java/jdk1.4 /usr/lib/jdk1.4 /opt/java1.4 /usr/lpp/java/J1.4 /usr/java/jdk1.4 /usr/lib/jdk1.4 /usr/jdk14 /jdk1.4 /usr/java/jdk1.3 /usr/include/java /usr/local/java /usr/local/include/kaffe /usr/lib/jdk1.3 /opt/java1.3 /usr/lpp/java/J1.3 /usr/java/jdk1.2 /usr/lib/jdk1.2.2 /usr/lib/jdk1.2.1 /usr/jdk122 /usr/lib/jdk122 /usr/lib/jdk1.2.1 /opt/java1.2 /usr/lpp/java/J1.2 /usr/lib/jdk1.1.8 /usr/jdk118 /usr/lib/jdk118 /usr/lpp/java/J1.1 /opt/java1.1 /usr /opt/local /jdk1.3 /jdk1.2.3 /jdk1.2.2 /jdk1.2.1 /System/Library/Frameworks/JavaVM.framework/Headers /usr/jdk_base/include"
6972
6973	if test "$JAVAPACKAGE" != ""; then
6974	    dirs="$JAVAPACKAGE $dirs"
6975	fi
6976
6977	# now try to find jni.h
6978	for i in $dirs ; do
6979	    if test -r $i/jni.h; then
6980		JAVAINCLUDE="$i"
6981		break
6982	    elif test -r $i/include/jni.h; then
6983		JAVAINCLUDE="$i/include"
6984		break
6985	    fi
6986	done
6987
6988fi
6989rm -f conftest.err conftest.$ac_ext
6990
6991    # now try with an include path
6992    if test "$JAVAINCLUDE" != ""; then
6993	OCPPFLAGS="$CPPFLAGS"
6994	CPPFLAGS="-I$JAVAINCLUDE $OCPPFLAGS"
6995	cat >conftest.$ac_ext <<_ACEOF
6996#line 6996 "configure"
6997#include "confdefs.h"
6998#include <jni.h>
6999_ACEOF
7000if { (eval echo "$as_me:7000: \"$ac_cpp conftest.$ac_ext\"") >&5
7001  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7002  ac_status=$?
7003  egrep -v '^ *\+' conftest.er1 >conftest.err
7004  rm -f conftest.er1
7005  cat conftest.err >&5
7006  echo "$as_me:7006: \$? = $ac_status" >&5
7007  (exit $ac_status); } >/dev/null; then
7008  if test -s conftest.err; then
7009    ac_cpp_err=$ac_c_preproc_warn_flag
7010  else
7011    ac_cpp_err=
7012  fi
7013else
7014  ac_cpp_err=yes
7015fi
7016if test -z "$ac_cpp_err"; then
7017
7018		WITH_JAVA=yes
7019		JAVAINCLUDE="-I$JAVAINCLUDE"
7020
7021else
7022  echo "$as_me: failed program was:" >&5
7023  cat conftest.$ac_ext >&5
7024
7025fi
7026rm -f conftest.err conftest.$ac_ext
7027	CPPFLAGS="$OCPPFLAGS"
7028    fi
7029
7030    # if the above didn't work probably jni_md.h is missing
7031    if test "WITH_JAVA" != "yes" ; then
7032	if test "$JAVAINCLUDE" != ""; then
7033	    subdirs="$JAVAINCLUDE $JAVAINCLUDE/$MACHDEP $JAVAINCLUDE/$ac_md_system $JAVAINCLUDE/solaris $JAVAINCLUDE/genunix $JAVAINCLUDE/alpha $JAVAINCLUDE/win32 $JAVAINCLUDE/mvs $JAVAINCLUDE/irix"
7034	    for i in $subdirs ; do
7035		if test -r $i/jni_md.h; then
7036		    JAVAINCLUDE="-I$JAVAINCLUDE -I$i"
7037		    WITH_JAVA=yes
7038		    break
7039		fi
7040	    done
7041	fi
7042    fi
7043
7044    if test "$WITH_JAVA" = "no"; then
7045	echo "$as_me:7045: result: not found" >&5
7046echo "${ECHO_T}not found" >&6
7047    else
7048	echo "$as_me:7048: result: $JAVAINCLUDE" >&5
7049echo "${ECHO_T}$JAVAINCLUDE" >&6
7050
7051    fi
7052
7053fi
7054
7055# ----------------------------------------------------------------
7056#  PDFlib Perl binding
7057# ----------------------------------------------------------------
7058
7059WITH_PERL=yes
7060PERLBIN=nope
7061PERLINCLUDE=nope
7062
7063# Check whether --with-perl or --without-perl was given.
7064if test "${with_perl+set}" = set; then
7065  withval="$with_perl"
7066  PERLBIN="$withval"
7067else
7068  PERLBIN=nope
7069fi;
7070
7071if test "$PERLBIN" = "no" ; then
7072    WITH_PERL=no
7073fi
7074
7075# Check whether --with-perlincl or --without-perlincl was given.
7076if test "${with_perlincl+set}" = set; then
7077  withval="$with_perlincl"
7078  PERLINCLUDE="$withval"
7079else
7080  PERLINCLUDE=nope
7081fi;
7082
7083if test "$WITH_PERL" = "yes" ; then
7084
7085    WITH_PERL=no
7086        if test "$PERLBIN" = "nope"; then
7087	for ac_prog in perl perl5.7.0 perl5.6.0 perl5.005 perl5.004 perl5.003 perl5.002 perl5.001 perl5
7088do
7089  # Extract the first word of "$ac_prog", so it can be a program name with args.
7090set dummy $ac_prog; ac_word=$2
7091echo "$as_me:7091: checking for $ac_word" >&5
7092echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7093if test "${ac_cv_prog_PERL+set}" = set; then
7094  echo $ECHO_N "(cached) $ECHO_C" >&6
7095else
7096  if test -n "$PERL"; then
7097  ac_cv_prog_PERL="$PERL" # Let the user override the test.
7098else
7099  ac_save_IFS=$IFS; IFS=$ac_path_separator
7100ac_dummy="$PATH"
7101for ac_dir in $ac_dummy; do
7102  IFS=$ac_save_IFS
7103  test -z "$ac_dir" && ac_dir=.
7104  $as_executable_p "$ac_dir/$ac_word" || continue
7105ac_cv_prog_PERL="$ac_prog"
7106echo "$as_me:7106: found $ac_dir/$ac_word" >&5
7107break
7108done
7109
7110fi
7111fi
7112PERL=$ac_cv_prog_PERL
7113if test -n "$PERL"; then
7114  echo "$as_me:7114: result: $PERL" >&5
7115echo "${ECHO_T}$PERL" >&6
7116else
7117  echo "$as_me:7117: result: no" >&5
7118echo "${ECHO_T}no" >&6
7119fi
7120
7121  test -n "$PERL" && break
7122done
7123test -n "$PERL" || PERL="nope"
7124
7125    else
7126	PERL="$PERLBIN"
7127    fi
7128    echo "$as_me:7128: checking for Perl header file" >&5
7129echo $ECHO_N "checking for Perl header file... $ECHO_C" >&6
7130    if test "$PERL" != "nope"; then
7131	PERL5DIR=`($PERL -e 'use Config; print $Config{archlib};') 2>/dev/null`
7132	if test "$PERL5DIR" != ""; then
7133	    if test "$PERLINCLUDE" = "nope"; then
7134		if test -r "$PERL5DIR/perl.h"; then
7135		    echo "$as_me:7135: result: PERL5DIR/perl.h" >&5
7136echo "${ECHO_T}PERL5DIR/perl.h" >&6
7137		    WITH_PERL=yes
7138		    PERLINCLUDE="$PERL5DIR"
7139		elif test -r "$PERL5DIR/CORE/perl.h"; then
7140		    echo "$as_me:7140: result: $PERL5DIR/CORE/perl.h" >&5
7141echo "${ECHO_T}$PERL5DIR/CORE/perl.h" >&6
7142		    WITH_PERL=yes
7143		    PERLINCLUDE="$PERL5DIR/CORE"
7144		fi
7145	    else
7146		WITH_PERL=yes
7147		echo "$as_me:7147: result: $PERLINCLUDE" >&5
7148echo "${ECHO_T}$PERLINCLUDE" >&6
7149	    fi
7150	    if test "$PERLINCLUDE" = "nope"; then
7151		echo "$as_me:7151: result: could not locate perl.h..." >&5
7152echo "${ECHO_T}could not locate perl.h..." >&6
7153		WITH_PERL=no
7154	    fi
7155	else
7156	    echo "$as_me:7156: result: unable to determine Perl configuration" >&5
7157echo "${ECHO_T}unable to determine Perl configuration" >&6
7158	    WITH_PERL=no
7159	fi
7160
7161	PERLLIBDIR=`($PERL -e 'use Config; print $Config{sitearchexp};') 2>/dev/null`
7162	if test -z "$PERLLIBDIR" -o ! -d "$PERLLIBDIR"; then
7163	    echo "$as_me:7163: result: unable to determine perl shared library directory" >&5
7164echo "${ECHO_T}unable to determine perl shared library directory" >&6
7165	fi
7166
7167    else
7168	echo "$as_me:7168: result: could not figure out how to run perl" >&5
7169echo "${ECHO_T}could not figure out how to run perl" >&6
7170	PERLINCLUDE="/usr/local/lib/perl5/5.6.0/archname/CORE"
7171    fi
7172
7173    case $ac_sys_system in
7174	    NeXT|next) PERLBOOLDEF="";;
7175	    *)	PERLBOOLDEF="-Dbool=char -DHAS_BOOL";;
7176    esac
7177
7178    case $ac_sys_system/$ac_sys_release in
7179	hp*|HP*)     PERLLINK="";;
7180	cyg*|CYG*)   PERLLINK="-L$PERLINCLUDE -lperl $PERLLINK";;
7181	aix*|AIX*)   PERLLINK="-L$PERLINCLUDE -lperl $PERLLINK";;
7182	osf1*|OSF1*) PERLLINK="-L$PERLINCLUDE -lperl $PERLLINK";;
7183	darwin|Darwin*) PERLLINK="-L$PERLINCLUDE -lperl $PERLLINK";;
7184	*) ;;
7185    esac
7186
7187    PERLINCLUDE="-I$PERLINCLUDE"
7188
7189fi
7190
7191# ----------------------------------------------------------------
7192#  PDFlib Python binding
7193# ----------------------------------------------------------------
7194
7195WITH_PYTHON=yes
7196PYINCLUDE=nope
7197PYPACKAGE=nope
7198
7199# Check whether --with-py or --without-py was given.
7200if test "${with_py+set}" = set; then
7201  withval="$with_py"
7202  PYPACKAGE="$withval"
7203else
7204  PYPACKAGE=nope
7205fi;
7206
7207if test "$PYPACKAGE" = "no" ; then
7208    WITH_PYTHON=no
7209fi
7210
7211# Check whether --with-pyincl or --without-pyincl was given.
7212if test "${with_pyincl+set}" = set; then
7213  withval="$with_pyincl"
7214  PYINCLUDE="$withval"
7215else
7216  PYINCLUDE=nope
7217fi;
7218
7219if test "$PYINCLUDE" = "nope" -a "$PYPACKAGE" != "no"; then
7220	PYINCLUDE="$PYPACKAGE/include"
7221fi
7222
7223if test "$WITH_PYTHON" != "no" ; then
7224    WITH_PYTHON=no
7225    echo "$as_me:7225: checking for Python header files" >&5
7226echo $ECHO_N "checking for Python header files... $ECHO_C" >&6
7227
7228    dirs="$PYINCLUDE 			\
7229    $PYINCLUDE/python2.3                \
7230    $prefix/include/python2.3           \
7231    /usr/local/include/python2.3        \
7232    /usr/include/python2.3              \
7233    $prefix/include/python2.3           \
7234    $PYINCLUDE/python2.2                \
7235    $prefix/include/python2.2           \
7236    /usr/local/include/python2.2        \
7237    /usr/include/python2.2              \
7238    $prefix/include/python2.2           \
7239    $PYINCLUDE/python2.1                \
7240    $prefix/include/python2.1           \
7241    /usr/local/include/python2.1        \
7242    /usr/include/python2.1              \
7243    $prefix/include/python2.1           \
7244    $PYINCLUDE/python2.0 		\
7245    $prefix/include/python2.0 		\
7246    /usr/local/include/python2.0 	\
7247    /usr/include/python2.0 		\
7248    $prefix/include/python2.0		\
7249    $PYINCLUDE/python1.6		\
7250    $prefix/include/python1.6		\
7251    /usr/local/include/python1.6	\
7252    /usr/include/python1.6		\
7253    $prefix/include/python1.6		\
7254    $PYINCLUDE/python1.5		\
7255    $prefix/include/python1.5		\
7256    /usr/local/include/python1.5	\
7257    /usr/include/python1.5		\
7258    $prefix/include/python1.5		\
7259    $PYINCLUDE/python1.4		\
7260    $prefix/include/python1.4		\
7261    /usr/local/include/python1.4	\
7262    /usr/include/python1.4		\
7263    $prefix/include/python1.4"
7264    for i in $dirs ; do
7265	    if test -r $i/Python.h; then
7266		    echo "$as_me:7266: result: $i" >&5
7267echo "${ECHO_T}$i" >&6
7268		    PYINCLUDE="-I$i"
7269		    WITH_PYTHON=yes
7270		    break
7271	    fi
7272    done
7273    if test "$PYINCLUDE" = "nope" -o "$PYINCLUDE" = "$PYPACKAGE/include"; then
7274	echo "$as_me:7274: result: not found" >&5
7275echo "${ECHO_T}not found" >&6
7276	WITH_PYTHON=no
7277    fi
7278
7279    for ac_prog in python
7280do
7281  # Extract the first word of "$ac_prog", so it can be a program name with args.
7282set dummy $ac_prog; ac_word=$2
7283echo "$as_me:7283: checking for $ac_word" >&5
7284echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7285if test "${ac_cv_prog_PYTHONBIN+set}" = set; then
7286  echo $ECHO_N "(cached) $ECHO_C" >&6
7287else
7288  if test -n "$PYTHONBIN"; then
7289  ac_cv_prog_PYTHONBIN="$PYTHONBIN" # Let the user override the test.
7290else
7291  ac_save_IFS=$IFS; IFS=$ac_path_separator
7292ac_dummy="$PATH"
7293for ac_dir in $ac_dummy; do
7294  IFS=$ac_save_IFS
7295  test -z "$ac_dir" && ac_dir=.
7296  $as_executable_p "$ac_dir/$ac_word" || continue
7297ac_cv_prog_PYTHONBIN="$ac_prog"
7298echo "$as_me:7298: found $ac_dir/$ac_word" >&5
7299break
7300done
7301
7302fi
7303fi
7304PYTHONBIN=$ac_cv_prog_PYTHONBIN
7305if test -n "$PYTHONBIN"; then
7306  echo "$as_me:7306: result: $PYTHONBIN" >&5
7307echo "${ECHO_T}$PYTHONBIN" >&6
7308else
7309  echo "$as_me:7309: result: no" >&5
7310echo "${ECHO_T}no" >&6
7311fi
7312
7313  test -n "$PYTHONBIN" && break
7314done
7315test -n "$PYTHONBIN" || PYTHONBIN="nope"
7316
7317    if test "$PYTHONBIN" = "nope" ; then
7318	WITH_PYTHON=no
7319    fi
7320
7321    if test "$WITH_PYTHON" = "yes" ; then
7322	echo "$as_me:7322: checking for Python shared library path" >&5
7323echo $ECHO_N "checking for Python shared library path... $ECHO_C" >&6
7324
7325	if test "$PYTHONBIN" = "nope" ; then
7326	    WITH_PYTHON=no
7327	else
7328	    PYTHONLIBDIR=`cat << EOF | python
7329import sys
7330import string
7331print string.join(filter(lambda x: -1 != string.find(x, 'dynload'), sys.path))
7332EOF
7333`
7334	    if test "$PYTHONLIBDIR" = "" ; then
7335		PYTHONLIBDIR=/usr/lib
7336	    fi
7337
7338	fi
7339
7340	echo "$as_me:7340: result: $PYTHONLIBDIR" >&5
7341echo "${ECHO_T}$PYTHONLIBDIR" >&6
7342    fi
7343fi
7344
7345# --------------------------------------------------------------------
7346# 	PDFlib Tcl binding
7347# --------------------------------------------------------------------
7348
7349WITH_TCL=yes
7350TCLINCLUDE=nope
7351TCLPACKAGEDIR=nope
7352TCLBIN=nope
7353
7354# Check whether --with-tcl or --without-tcl was given.
7355if test "${with_tcl+set}" = set; then
7356  withval="$with_tcl"
7357  TCLBIN="$withval"
7358fi;
7359
7360if test "$TCLBIN" = "no" ; then
7361    WITH_TCL=no
7362fi
7363
7364# Check whether --with-tclpkg or --without-tclpkg was given.
7365if test "${with_tclpkg+set}" = set; then
7366  withval="$with_tclpkg"
7367  TCLPACKAGEDIR="$withval"
7368else
7369  TCLPACKAGEDIR=nope
7370fi;
7371
7372# Check whether --with-tclincl or --without-tclincl was given.
7373if test "${with_tclincl+set}" = set; then
7374  withval="$with_tclincl"
7375  TCLINCLUDE="$withval"
7376else
7377  TCLINCLUDE=nope
7378fi;
7379
7380if test "$WITH_TCL" = "yes" ; then
7381    WITH_TCL=no
7382    echo "$as_me:7382: checking for Tcl header files" >&5
7383echo $ECHO_N "checking for Tcl header files... $ECHO_C" >&6
7384
7385    if test "$TCLINCLUDE" = "nope"; then
7386	cat >conftest.$ac_ext <<_ACEOF
7387#line 7387 "configure"
7388#include "confdefs.h"
7389#include <tcl.h>
7390_ACEOF
7391if { (eval echo "$as_me:7391: \"$ac_cpp conftest.$ac_ext\"") >&5
7392  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7393  ac_status=$?
7394  egrep -v '^ *\+' conftest.er1 >conftest.err
7395  rm -f conftest.er1
7396  cat conftest.err >&5
7397  echo "$as_me:7397: \$? = $ac_status" >&5
7398  (exit $ac_status); } >/dev/null; then
7399  if test -s conftest.err; then
7400    ac_cpp_err=$ac_c_preproc_warn_flag
7401  else
7402    ac_cpp_err=
7403  fi
7404else
7405  ac_cpp_err=yes
7406fi
7407if test -z "$ac_cpp_err"; then
7408  :
7409else
7410  echo "$as_me: failed program was:" >&5
7411  cat conftest.$ac_ext >&5
7412  TCLINCLUDE="nope"
7413fi
7414rm -f conftest.err conftest.$ac_ext
7415	if test "$TCLINCLUDE" = "nope"; then
7416	    dirs="$prefix/include /usr/local/include /usr/include /opt/local/include /home/sci/local/include /usr/pkg/include /System/Library/Frameworks/Tcl.framework/Versions/8.3/Headers /System/Library/Frameworks/Tcl.framework/Versions/8.2/Headers"
7417	    for i in $dirs ; do
7418		if test -r $i/tcl.h; then
7419		    echo "$as_me:7419: result: $i" >&5
7420echo "${ECHO_T}$i" >&6
7421		    TCLINCLUDE="$i"
7422		    WITH_TCL=yes
7423		    break
7424		fi
7425	    done
7426	fi
7427
7428	if test "$TCLINCLUDE" = "nope"; then
7429	    echo "$as_me:7429: result: not found" >&5
7430echo "${ECHO_T}not found" >&6
7431	    WITH_TCL=no
7432	fi
7433    else
7434	echo "$as_me:7434: result: $TCLINCLUDE" >&5
7435echo "${ECHO_T}$TCLINCLUDE" >&6
7436    fi
7437
7438    if test "$TCLINCLUDE" != "nope" -a "$TCLBIN" = "nope"; then
7439	for ac_prog in tclsh tclsh8.4 tclsh8.3 tclsh8.2 tclsh8.1 tclsh8.0
7440do
7441  # Extract the first word of "$ac_prog", so it can be a program name with args.
7442set dummy $ac_prog; ac_word=$2
7443echo "$as_me:7443: checking for $ac_word" >&5
7444echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7445if test "${ac_cv_prog_TCL+set}" = set; then
7446  echo $ECHO_N "(cached) $ECHO_C" >&6
7447else
7448  if test -n "$TCL"; then
7449  ac_cv_prog_TCL="$TCL" # Let the user override the test.
7450else
7451  ac_save_IFS=$IFS; IFS=$ac_path_separator
7452ac_dummy="$PATH"
7453for ac_dir in $ac_dummy; do
7454  IFS=$ac_save_IFS
7455  test -z "$ac_dir" && ac_dir=.
7456  $as_executable_p "$ac_dir/$ac_word" || continue
7457ac_cv_prog_TCL="$ac_prog"
7458echo "$as_me:7458: found $ac_dir/$ac_word" >&5
7459break
7460done
7461
7462fi
7463fi
7464TCL=$ac_cv_prog_TCL
7465if test -n "$TCL"; then
7466  echo "$as_me:7466: result: $TCL" >&5
7467echo "${ECHO_T}$TCL" >&6
7468else
7469  echo "$as_me:7469: result: no" >&5
7470echo "${ECHO_T}no" >&6
7471fi
7472
7473  test -n "$TCL" && break
7474done
7475test -n "$TCL" || TCL="nope"
7476
7477	TCLBIN=$TCL
7478    fi
7479
7480    if test "$TCLINCLUDE" = "nope" -o "$TCLBIN" = "nope"; then
7481	WITH_TCL=no
7482    else
7483		TCLVERSION=`echo "puts [info tclversion]" | $TCLBIN`
7484	if test  "$TCLVERSION" = "7.6" -o "$TCLVERSION" = "7.5" -o  "$TCLVERSION" = "7.4" -o "$TCLVERSION" = "7.3" -o "$TCLVERSION" = "7.1" -o "$TCLVERSION" = "7.0"; then
7485	    echo "$as_me:7485: result:          Tcl version 8.0 or newer is required for PDFlib." >&5
7486echo "${ECHO_T}         Tcl version 8.0 or newer is required for PDFlib." >&6
7487	    echo "$as_me:7487: result:          PDFlib support for Tcl will not be built." >&5
7488echo "${ECHO_T}         PDFlib support for Tcl will not be built." >&6
7489	    WITH_TCL=no
7490	else
7491	    if test  "$TCLVERSION" = "8.0" -o "$TCLVERSION" = "8.1"; then
7492		echo "$as_me:7492: result:          The PDFlib build process requires Tcl 8.2 or above. Please read" >&5
7493echo "${ECHO_T}         The PDFlib build process requires Tcl 8.2 or above. Please read" >&6
7494		echo "$as_me:7494: result:          bind/tcl/readme.txt for instructions on manually building PDFlib" >&5
7495echo "${ECHO_T}         bind/tcl/readme.txt for instructions on manually building PDFlib" >&6
7496		echo "$as_me:7496: result:          for Tcl 8.0 or 8.1." >&5
7497echo "${ECHO_T}         for Tcl 8.0 or 8.1." >&6
7498	    fi
7499
7500	    if test "$TCLPACKAGEDIR" = "nope"; then
7501	    		TCLPACKAGEDIR=`(echo "puts \\$auto_path" | "$TCLBIN" | awk '{print $1}') 2>/dev/null`
7502	    fi
7503
7504	    if test "$TCLPACKAGEDIR" = "nope" -o -z "$TCLPACKAGEDIR" -o ! -d "$TCLPACKAGEDIR"; then
7505		echo "$as_me:7505: result: unable to determine Tcl package directory" >&5
7506echo "${ECHO_T}unable to determine Tcl package directory" >&6
7507		WITH_TCL=no
7508
7509	    else
7510
7511		TCLPACKAGEDIR=$TCLPACKAGEDIR/pdflib
7512		WITH_TCL=yes
7513	    fi
7514	fi
7515    fi
7516fi
7517
7518TCLINCLUDE="-I$TCLINCLUDE"
7519
7520# ----------------------------------------------------------------
7521#  PDFlib/PSP auxiliary libraries:
7522#  We support only our own copy of tifflib, libpng and zlib
7523#  pdcore is needed in all configurations
7524# ----------------------------------------------------------------
7525
7526# The list of Makefile targets for our internal libraries
7527# pdcore is always needed
7528PHP_PDFLIBS="$PDFPWD/libs/pdflib/p_basic.lo"
7529
7530PDCORELIBINC="-I\$(top_builddir)/libs/pdcore"
7531PDCORELIBLINK="\$(top_builddir)/libs/pdcore/libpdcore\$(LA)"
7532PHP_PDFLIBS="$PHP_PDFLIBS $PDFPWD/libs/pdcore/libpdcore.la"
7533LIBTARGETS="$LIBTARGETS pdcore"
7534BINDTARGETS=""
7535PROGTARGETS=""
7536
7537# zlib
7538if test -d libs/flate ; then
7539    FLATELIBINC="-I\$(top_builddir)/libs/flate"
7540    FLATELIBLINK="\$(top_builddir)/libs/flate/libz\$(LA)"
7541    PHP_PDFLIBS="$PHP_PDFLIBS $PDFPWD/libs/flate/libz.la"
7542    LIBTARGETS="$LIBTARGETS flate"
7543else
7544    FLATELIBINC=""
7545    FLATELIBLINK=""
7546fi
7547
7548# pnglib
7549if test -d libs/png ; then
7550    PNGLIBINC="-I\$(top_builddir)/libs/png"
7551    PNGLIBLINK="\$(top_builddir)/libs/png/libpng\$(LA)"
7552    PHP_PDFLIBS="$PHP_PDFLIBS $PDFPWD/libs/png/libpng.la"
7553    LIBTARGETS="$LIBTARGETS png"
7554else
7555    PNGLIBINC=""
7556    PNGLIBLINK=""
7557fi
7558
7559# tifflib
7560if test -d libs/tiff ; then
7561    echo "$as_me:7561: checking whether byte ordering is bigendian" >&5
7562echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
7563if test "${ac_cv_c_bigendian+set}" = set; then
7564  echo $ECHO_N "(cached) $ECHO_C" >&6
7565else
7566  ac_cv_c_bigendian=unknown
7567# See if sys/param.h defines the BYTE_ORDER macro.
7568cat >conftest.$ac_ext <<_ACEOF
7569#line 7569 "configure"
7570#include "confdefs.h"
7571#include <sys/types.h>
7572#include <sys/param.h>
7573
7574int
7575main ()
7576{
7577#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
7578 bogus endian macros
7579#endif
7580
7581  ;
7582  return 0;
7583}
7584_ACEOF
7585rm -f conftest.$ac_objext
7586if { (eval echo "$as_me:7586: \"$ac_compile\"") >&5
7587  (eval $ac_compile) 2>&5
7588  ac_status=$?
7589  echo "$as_me:7589: \$? = $ac_status" >&5
7590  (exit $ac_status); } &&
7591         { ac_try='test -s conftest.$ac_objext'
7592  { (eval echo "$as_me:7592: \"$ac_try\"") >&5
7593  (eval $ac_try) 2>&5
7594  ac_status=$?
7595  echo "$as_me:7595: \$? = $ac_status" >&5
7596  (exit $ac_status); }; }; then
7597  # It does; now see whether it defined to BIG_ENDIAN or not.
7598cat >conftest.$ac_ext <<_ACEOF
7599#line 7599 "configure"
7600#include "confdefs.h"
7601#include <sys/types.h>
7602#include <sys/param.h>
7603
7604int
7605main ()
7606{
7607#if BYTE_ORDER != BIG_ENDIAN
7608 not big endian
7609#endif
7610
7611  ;
7612  return 0;
7613}
7614_ACEOF
7615rm -f conftest.$ac_objext
7616if { (eval echo "$as_me:7616: \"$ac_compile\"") >&5
7617  (eval $ac_compile) 2>&5
7618  ac_status=$?
7619  echo "$as_me:7619: \$? = $ac_status" >&5
7620  (exit $ac_status); } &&
7621         { ac_try='test -s conftest.$ac_objext'
7622  { (eval echo "$as_me:7622: \"$ac_try\"") >&5
7623  (eval $ac_try) 2>&5
7624  ac_status=$?
7625  echo "$as_me:7625: \$? = $ac_status" >&5
7626  (exit $ac_status); }; }; then
7627  ac_cv_c_bigendian=yes
7628else
7629  echo "$as_me: failed program was:" >&5
7630cat conftest.$ac_ext >&5
7631ac_cv_c_bigendian=no
7632fi
7633rm -f conftest.$ac_objext conftest.$ac_ext
7634else
7635  echo "$as_me: failed program was:" >&5
7636cat conftest.$ac_ext >&5
7637fi
7638rm -f conftest.$ac_objext conftest.$ac_ext
7639if test $ac_cv_c_bigendian = unknown; then
7640if test "$cross_compiling" = yes; then
7641  { { echo "$as_me:7641: error: cannot run test program while cross compiling" >&5
7642echo "$as_me: error: cannot run test program while cross compiling" >&2;}
7643   { (exit 1); exit 1; }; }
7644else
7645  cat >conftest.$ac_ext <<_ACEOF
7646#line 7646 "configure"
7647#include "confdefs.h"
7648int
7649main ()
7650{
7651  /* Are we little or big endian?  From Harbison&Steele.  */
7652  union
7653  {
7654    long l;
7655    char c[sizeof (long)];
7656  } u;
7657  u.l = 1;
7658  exit (u.c[sizeof (long) - 1] == 1);
7659}
7660_ACEOF
7661rm -f conftest$ac_exeext
7662if { (eval echo "$as_me:7662: \"$ac_link\"") >&5
7663  (eval $ac_link) 2>&5
7664  ac_status=$?
7665  echo "$as_me:7665: \$? = $ac_status" >&5
7666  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7667  { (eval echo "$as_me:7667: \"$ac_try\"") >&5
7668  (eval $ac_try) 2>&5
7669  ac_status=$?
7670  echo "$as_me:7670: \$? = $ac_status" >&5
7671  (exit $ac_status); }; }; then
7672  ac_cv_c_bigendian=no
7673else
7674  echo "$as_me: program exited with status $ac_status" >&5
7675echo "$as_me: failed program was:" >&5
7676cat conftest.$ac_ext >&5
7677ac_cv_c_bigendian=yes
7678fi
7679rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7680fi
7681fi
7682fi
7683echo "$as_me:7683: result: $ac_cv_c_bigendian" >&5
7684echo "${ECHO_T}$ac_cv_c_bigendian" >&6
7685if test $ac_cv_c_bigendian = yes; then
7686
7687cat >>confdefs.h <<\EOF
7688#define WORDS_BIGENDIAN 1
7689EOF
7690
7691fi
7692
7693    TIFFLIBINC="-I\$(top_builddir)/libs/tiff"
7694    TIFFLIBLINK="\$(top_builddir)/libs/tiff/libtiff\$(LA)"
7695    PHP_PDFLIBS="$PHP_PDFLIBS $PDFPWD/libs/tiff/libtiff.la"
7696    LIBTARGETS="$LIBTARGETS tiff"
7697else
7698    TIFFLIBINC=""
7699    TIFFLIBLINK=""
7700fi
7701
7702# jpeglib
7703#if test -d libs/jpeg6 ; then
7704#    AC_C_BIGENDIAN()
7705#    JPEGLIBINC="-I\$(top_builddir)/libs/jpeg6"
7706#    JPEGLIBLINK="\$(top_builddir)/libs/jpeg6/libjpeg\$(LA)"
7707#    PHP_PDFLIBS="$PHP_PDFLIBS $PDFPWD/libs/jpeg6/libjpeg6.la"
7708#    LIBTARGETS="$LIBTARGETS jpeg6"
7709#else
7710    JPEGLIBINC=""
7711    JPEGLIBLINK=""
7712#fi
7713
7714# ----------------------------------------------------------------
7715#  PDFlib auxiliary library: PDI (PDF import library)
7716# ----------------------------------------------------------------
7717
7718WITH_PDI=no
7719
7720echo "$as_me:7720: checking for PDF import library PDI" >&5
7721echo $ECHO_N "checking for PDF import library PDI... $ECHO_C" >&6
7722
7723if test -d libs/pdi ; then
7724    WITH_PDI=yes
7725        PDILIBINC="-I\$(top_builddir)/libs/pdi"
7726    PDILIBLINK="\$(top_builddir)/libs/pdi/libpdi\$(LA)"
7727    PHP_PDFLIBS="$PHP_PDFLIBS $PDFPWD/libs/pdi/libpdi.la"
7728
7729    LIBTARGETS="$LIBTARGETS pdi"
7730    PROGTARGETS="$PROGTARGETS pdi"
7731    echo "$as_me:7731: result: found" >&5
7732echo "${ECHO_T}found" >&6
7733else
7734    PDILIBINC=""
7735    PDILIBLINK=""
7736    echo "$as_me:7736: result: not found" >&5
7737echo "${ECHO_T}not found" >&6
7738fi
7739
7740# ----------------------------------------------------------------
7741#  PDFlib main library: not needed for PSP
7742# ----------------------------------------------------------------
7743
7744EXTERNALLIBS="$MATHLIB"
7745
7746WITH_PDFLIB=no
7747
7748echo "$as_me:7748: checking for PDFlib base library pdflib" >&5
7749echo $ECHO_N "checking for PDFlib base library pdflib... $ECHO_C" >&6
7750
7751if test -d libs/pdflib ; then
7752    WITH_PDFLIB=yes
7753    PDFLIBINC="-I\$(top_builddir)/libs/pdflib"
7754    PDFLIBLINK="\$(top_builddir)/libs/pdflib/lib$PDFLIBNAME\$(LA)"
7755    PDFLIB_LINK="\$(top_builddir)/libs/pdflib/libpdf_\$(LA)"
7756    PHP_PDFLIBS="$PHP_PDFLIBS $PDFPWD/libs/pdflib/libpdf_.la"
7757    LIBTARGETS="$LIBTARGETS pdflib"
7758    BINDTARGETS="$BINDTARGETS pdflib"
7759    PROGTARGETS="$PROGTARGETS pdflib"
7760    echo "$as_me:7760: result: found" >&5
7761echo "${ECHO_T}found" >&6
7762else
7763    PDFLIBINC=""
7764    PDFLIBLINK=""
7765    PDFLIB_LINK=""
7766    PDFLIBCONVENIENT=""
7767    echo "$as_me:7767: result: not found" >&5
7768echo "${ECHO_T}not found" >&6
7769fi
7770
7771# ----------------------------------------------------------------
7772#  PDFlib auxiliary library: PSP (Pretty Safe PDF)
7773# ----------------------------------------------------------------
7774
7775WITH_PSP=no
7776PSPLIBINC=""
7777PSPLIBLINK=""
7778PSPLIB_LINK=""
7779
7780echo "$as_me:7780: checking for PDFlib PSP (Pretty Safe PDF)" >&5
7781echo $ECHO_N "checking for PDFlib PSP (Pretty Safe PDF)... $ECHO_C" >&6
7782
7783if test -d libs/psp ; then
7784    WITH_PSP=yes
7785
7786# Check whether --with-PSP or --without-PSP was given.
7787if test "${with_PSP+set}" = set; then
7788  withval="$with_PSP"
7789  WITH_PSP="$withval"
7790fi;
7791    if test "$WITH_PSP" = "yes"; then
7792	LIBTARGETS="$LIBTARGETS psp"
7793	BINDTARGETS="$BINDTARGETS psp"
7794	PROGTARGETS="$PROGTARGETS psp"
7795	PSPLIBINC="-I\$(top_builddir)/libs/psp"
7796	PSPLIBLINK="\$(top_builddir)/libs/psp/libpsp\$(LA)"
7797	PSPLIB_LINK="\$(top_builddir)/libs/psp/libpsp_\$(LA)"
7798	echo "$as_me:7798: result: found" >&5
7799echo "${ECHO_T}found" >&6
7800    else
7801	echo "$as_me:7801: result: not used" >&5
7802echo "${ECHO_T}not used" >&6
7803    fi
7804else
7805    echo "$as_me:7805: result: not found" >&5
7806echo "${ECHO_T}not found" >&6
7807fi
7808
7809# ----------------------------------------------------------------
7810#  PDFlib auxiliary library: TET
7811# ----------------------------------------------------------------
7812
7813WITH_TET=no
7814TETLIBINC=""
7815TETLIBLINK=""
7816TETLIB_LINK=""
7817
7818echo "$as_me:7818: checking for PDFlib TET" >&5
7819echo $ECHO_N "checking for PDFlib TET... $ECHO_C" >&6
7820
7821if test -d libs/tet ; then
7822    WITH_TET=yes
7823
7824# Check whether --with-TET or --without-TET was given.
7825if test "${with_TET+set}" = set; then
7826  withval="$with_TET"
7827  WITH_TET="$withval"
7828fi;
7829    if test "$WITH_TET" = "yes"; then
7830	LIBTARGETS="$LIBTARGETS tet"
7831	PROGTARGETS="$PROGTARGETS tet"
7832	TETLIBINC="-I\$(top_builddir)/libs/tet"
7833	TETLIBLINK="\$(top_builddir)/libs/tet/libtet\$(LA)"
7834	TETLIB_LINK="\$(top_builddir)/libs/tet/libtet_\$(LA)"
7835	echo "$as_me:7835: result: found" >&5
7836echo "${ECHO_T}found" >&6
7837    else
7838	echo "$as_me:7838: result: not used" >&5
7839echo "${ECHO_T}not used" >&6
7840    fi
7841else
7842    echo "$as_me:7842: result: not found" >&5
7843echo "${ECHO_T}not found" >&6
7844fi
7845
7846# ----------------------------------------------------------------
7847#  PDFlib auxiliary library: PDU
7848# ----------------------------------------------------------------
7849#
7850WITH_PDU=no
7851PDULIBINC=""
7852PDULIBLINK=""
7853
7854echo "$as_me:7854: checking for PDFlib PDU" >&5
7855echo $ECHO_N "checking for PDFlib PDU... $ECHO_C" >&6
7856
7857if test -d libs/pdu ; then
7858    WITH_PDU=yes
7859
7860# Check whether --with-PDU or --without-PDU was given.
7861if test "${with_PDU+set}" = set; then
7862  withval="$with_PDU"
7863  WITH_PDU="$withval"
7864fi;
7865    if test "$WITH_PDU" = "yes"; then
7866	LIBTARGETS="$LIBTARGETS pdu"
7867	PROGTARGETS="$PROGTARGETS pdu"
7868	PDULIBINC="-I\$(top_builddir)/libs/pdu"
7869	PDULIBLINK="\$(top_builddir)/libs/pdu/libpdu\$(LA)"
7870	echo "$as_me:7870: result: found" >&5
7871echo "${ECHO_T}found" >&6
7872    else
7873	echo "$as_me:7873: result: not used" >&5
7874echo "${ECHO_T}not used" >&6
7875    fi
7876else
7877    echo "$as_me:7877: result: not found" >&5
7878echo "${ECHO_T}not found" >&6
7879fi
7880
7881# ----------------------------------------------------------------
7882#  PDFlib auxiliary library: PDPAGE
7883# ----------------------------------------------------------------
7884
7885WITH_PDPAGE=no
7886
7887echo "$as_me:7887: checking for PDFlib PDPAGE" >&5
7888echo $ECHO_N "checking for PDFlib PDPAGE... $ECHO_C" >&6
7889
7890if test -d libs/pdpage ; then
7891    if test "$WITH_TET" = "yes" ; then
7892	WITH_PDPAGE=yes
7893    fi
7894fi
7895if test "$WITH_PDPAGE" = "yes" ; then
7896    LIBTARGETS="$LIBTARGETS pdpage"
7897    PDPAGELIBINC="-I\$(top_builddir)/libs/pdpage"
7898    PDPAGELIBLINK="\$(top_builddir)/libs/pdpage/libpdpage\$(LA)"
7899    echo "$as_me:7899: result: found" >&5
7900echo "${ECHO_T}found" >&6
7901else
7902    PDPAGELIBINC=""
7903    PDPAGELIBLINK=""
7904    echo "$as_me:7904: result: not found" >&5
7905echo "${ECHO_T}not found" >&6
7906fi
7907
7908# ----------------------------------------------------------------
7909#  PDFlib/PSP PHP binding
7910# ----------------------------------------------------------------
7911
7912if test -f bind/pdflib/php/Makefile.frag.in ; then
7913	GENERATED_FILES="$GENERATED_FILES bind/pdflib/php/Makefile.frag"
7914fi
7915if test -f bind/psp/php/Makefile.frag.in ; then
7916	GENERATED_FILES="$GENERATED_FILES bind/psp/php/Makefile.frag"
7917fi
7918
7919# --------------------------------------------------------------------
7920# 	PDFlib C++ language binding
7921# --------------------------------------------------------------------
7922
7923WITH_CXX=yes
7924
7925STDCPP=""
7926
7927# Check whether --enable-cxx or --disable-cxx was given.
7928if test "${enable_cxx+set}" = set; then
7929  enableval="$enable_cxx"
7930  WITH_CXX=$enableval
7931fi;
7932
7933if test "$WITH_CXX" = "yes"; then
7934    ac_ext=cc
7935ac_cpp='$CXXCPP $CPPFLAGS'
7936ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7937ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7938ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7939
7940    ac_ext=cc
7941ac_cpp='$CXXCPP $CPPFLAGS'
7942ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7943ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7944ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7945if test -n "$ac_tool_prefix"; then
7946  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
7947  do
7948    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7949set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7950echo "$as_me:7950: checking for $ac_word" >&5
7951echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7952if test "${ac_cv_prog_CXX+set}" = set; then
7953  echo $ECHO_N "(cached) $ECHO_C" >&6
7954else
7955  if test -n "$CXX"; then
7956  ac_cv_prog_CXX="$CXX" # Let the user override the test.
7957else
7958  ac_save_IFS=$IFS; IFS=$ac_path_separator
7959ac_dummy="$PATH"
7960for ac_dir in $ac_dummy; do
7961  IFS=$ac_save_IFS
7962  test -z "$ac_dir" && ac_dir=.
7963  $as_executable_p "$ac_dir/$ac_word" || continue
7964ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7965echo "$as_me:7965: found $ac_dir/$ac_word" >&5
7966break
7967done
7968
7969fi
7970fi
7971CXX=$ac_cv_prog_CXX
7972if test -n "$CXX"; then
7973  echo "$as_me:7973: result: $CXX" >&5
7974echo "${ECHO_T}$CXX" >&6
7975else
7976  echo "$as_me:7976: result: no" >&5
7977echo "${ECHO_T}no" >&6
7978fi
7979
7980    test -n "$CXX" && break
7981  done
7982fi
7983if test -z "$CXX"; then
7984  ac_ct_CXX=$CXX
7985  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
7986do
7987  # Extract the first word of "$ac_prog", so it can be a program name with args.
7988set dummy $ac_prog; ac_word=$2
7989echo "$as_me:7989: checking for $ac_word" >&5
7990echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7991if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
7992  echo $ECHO_N "(cached) $ECHO_C" >&6
7993else
7994  if test -n "$ac_ct_CXX"; then
7995  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7996else
7997  ac_save_IFS=$IFS; IFS=$ac_path_separator
7998ac_dummy="$PATH"
7999for ac_dir in $ac_dummy; do
8000  IFS=$ac_save_IFS
8001  test -z "$ac_dir" && ac_dir=.
8002  $as_executable_p "$ac_dir/$ac_word" || continue
8003ac_cv_prog_ac_ct_CXX="$ac_prog"
8004echo "$as_me:8004: found $ac_dir/$ac_word" >&5
8005break
8006done
8007
8008fi
8009fi
8010ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8011if test -n "$ac_ct_CXX"; then
8012  echo "$as_me:8012: result: $ac_ct_CXX" >&5
8013echo "${ECHO_T}$ac_ct_CXX" >&6
8014else
8015  echo "$as_me:8015: result: no" >&5
8016echo "${ECHO_T}no" >&6
8017fi
8018
8019  test -n "$ac_ct_CXX" && break
8020done
8021test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
8022
8023  CXX=$ac_ct_CXX
8024fi
8025
8026# Provide some information about the compiler.
8027echo "$as_me:8027:" \
8028     "checking for C++ compiler version" >&5
8029ac_compiler=`set X $ac_compile; echo $2`
8030{ (eval echo "$as_me:8030: \"$ac_compiler --version </dev/null >&5\"") >&5
8031  (eval $ac_compiler --version </dev/null >&5) 2>&5
8032  ac_status=$?
8033  echo "$as_me:8033: \$? = $ac_status" >&5
8034  (exit $ac_status); }
8035{ (eval echo "$as_me:8035: \"$ac_compiler -v </dev/null >&5\"") >&5
8036  (eval $ac_compiler -v </dev/null >&5) 2>&5
8037  ac_status=$?
8038  echo "$as_me:8038: \$? = $ac_status" >&5
8039  (exit $ac_status); }
8040{ (eval echo "$as_me:8040: \"$ac_compiler -V </dev/null >&5\"") >&5
8041  (eval $ac_compiler -V </dev/null >&5) 2>&5
8042  ac_status=$?
8043  echo "$as_me:8043: \$? = $ac_status" >&5
8044  (exit $ac_status); }
8045
8046echo "$as_me:8046: checking whether we are using the GNU C++ compiler" >&5
8047echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
8048if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
8049  echo $ECHO_N "(cached) $ECHO_C" >&6
8050else
8051  cat >conftest.$ac_ext <<_ACEOF
8052#line 8052 "configure"
8053#include "confdefs.h"
8054
8055int
8056main ()
8057{
8058#ifndef __GNUC__
8059       choke me
8060#endif
8061
8062  ;
8063  return 0;
8064}
8065_ACEOF
8066rm -f conftest.$ac_objext
8067if { (eval echo "$as_me:8067: \"$ac_compile\"") >&5
8068  (eval $ac_compile) 2>&5
8069  ac_status=$?
8070  echo "$as_me:8070: \$? = $ac_status" >&5
8071  (exit $ac_status); } &&
8072         { ac_try='test -s conftest.$ac_objext'
8073  { (eval echo "$as_me:8073: \"$ac_try\"") >&5
8074  (eval $ac_try) 2>&5
8075  ac_status=$?
8076  echo "$as_me:8076: \$? = $ac_status" >&5
8077  (exit $ac_status); }; }; then
8078  ac_compiler_gnu=yes
8079else
8080  echo "$as_me: failed program was:" >&5
8081cat conftest.$ac_ext >&5
8082ac_compiler_gnu=no
8083fi
8084rm -f conftest.$ac_objext conftest.$ac_ext
8085ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8086
8087fi
8088echo "$as_me:8088: result: $ac_cv_cxx_compiler_gnu" >&5
8089echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
8090GXX=`test $ac_compiler_gnu = yes && echo yes`
8091ac_test_CXXFLAGS=${CXXFLAGS+set}
8092ac_save_CXXFLAGS=$CXXFLAGS
8093CXXFLAGS="-g"
8094echo "$as_me:8094: checking whether $CXX accepts -g" >&5
8095echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
8096if test "${ac_cv_prog_cxx_g+set}" = set; then
8097  echo $ECHO_N "(cached) $ECHO_C" >&6
8098else
8099  cat >conftest.$ac_ext <<_ACEOF
8100#line 8100 "configure"
8101#include "confdefs.h"
8102
8103int
8104main ()
8105{
8106
8107  ;
8108  return 0;
8109}
8110_ACEOF
8111rm -f conftest.$ac_objext
8112if { (eval echo "$as_me:8112: \"$ac_compile\"") >&5
8113  (eval $ac_compile) 2>&5
8114  ac_status=$?
8115  echo "$as_me:8115: \$? = $ac_status" >&5
8116  (exit $ac_status); } &&
8117         { ac_try='test -s conftest.$ac_objext'
8118  { (eval echo "$as_me:8118: \"$ac_try\"") >&5
8119  (eval $ac_try) 2>&5
8120  ac_status=$?
8121  echo "$as_me:8121: \$? = $ac_status" >&5
8122  (exit $ac_status); }; }; then
8123  ac_cv_prog_cxx_g=yes
8124else
8125  echo "$as_me: failed program was:" >&5
8126cat conftest.$ac_ext >&5
8127ac_cv_prog_cxx_g=no
8128fi
8129rm -f conftest.$ac_objext conftest.$ac_ext
8130fi
8131echo "$as_me:8131: result: $ac_cv_prog_cxx_g" >&5
8132echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
8133if test "$ac_test_CXXFLAGS" = set; then
8134  CXXFLAGS=$ac_save_CXXFLAGS
8135elif test $ac_cv_prog_cxx_g = yes; then
8136  if test "$GXX" = yes; then
8137    CXXFLAGS="-g -O2"
8138  else
8139    CXXFLAGS="-g"
8140  fi
8141else
8142  if test "$GXX" = yes; then
8143    CXXFLAGS="-O2"
8144  else
8145    CXXFLAGS=
8146  fi
8147fi
8148for ac_declaration in \
8149   ''\
8150   '#include <stdlib.h>' \
8151   'extern "C" void std::exit (int) throw (); using std::exit;' \
8152   'extern "C" void std::exit (int); using std::exit;' \
8153   'extern "C" void exit (int) throw ();' \
8154   'extern "C" void exit (int);' \
8155   'void exit (int);'
8156do
8157  cat >conftest.$ac_ext <<_ACEOF
8158#line 8158 "configure"
8159#include "confdefs.h"
8160#include <stdlib.h>
8161$ac_declaration
8162int
8163main ()
8164{
8165exit (42);
8166  ;
8167  return 0;
8168}
8169_ACEOF
8170rm -f conftest.$ac_objext
8171if { (eval echo "$as_me:8171: \"$ac_compile\"") >&5
8172  (eval $ac_compile) 2>&5
8173  ac_status=$?
8174  echo "$as_me:8174: \$? = $ac_status" >&5
8175  (exit $ac_status); } &&
8176         { ac_try='test -s conftest.$ac_objext'
8177  { (eval echo "$as_me:8177: \"$ac_try\"") >&5
8178  (eval $ac_try) 2>&5
8179  ac_status=$?
8180  echo "$as_me:8180: \$? = $ac_status" >&5
8181  (exit $ac_status); }; }; then
8182  :
8183else
8184  echo "$as_me: failed program was:" >&5
8185cat conftest.$ac_ext >&5
8186continue
8187fi
8188rm -f conftest.$ac_objext conftest.$ac_ext
8189  cat >conftest.$ac_ext <<_ACEOF
8190#line 8190 "configure"
8191#include "confdefs.h"
8192$ac_declaration
8193int
8194main ()
8195{
8196exit (42);
8197  ;
8198  return 0;
8199}
8200_ACEOF
8201rm -f conftest.$ac_objext
8202if { (eval echo "$as_me:8202: \"$ac_compile\"") >&5
8203  (eval $ac_compile) 2>&5
8204  ac_status=$?
8205  echo "$as_me:8205: \$? = $ac_status" >&5
8206  (exit $ac_status); } &&
8207         { ac_try='test -s conftest.$ac_objext'
8208  { (eval echo "$as_me:8208: \"$ac_try\"") >&5
8209  (eval $ac_try) 2>&5
8210  ac_status=$?
8211  echo "$as_me:8211: \$? = $ac_status" >&5
8212  (exit $ac_status); }; }; then
8213  break
8214else
8215  echo "$as_me: failed program was:" >&5
8216cat conftest.$ac_ext >&5
8217fi
8218rm -f conftest.$ac_objext conftest.$ac_ext
8219done
8220rm -f conftest*
8221if test -n "$ac_declaration"; then
8222  echo '#ifdef __cplusplus' >>confdefs.h
8223  echo $ac_declaration      >>confdefs.h
8224  echo '#endif'             >>confdefs.h
8225fi
8226
8227ac_ext=cc
8228ac_cpp='$CXXCPP $CPPFLAGS'
8229ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8230ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8231ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8232
8233    echo "$as_me:8233: checking whether the previously found C++ compiler works" >&5
8234echo $ECHO_N "checking whether the previously found C++ compiler works... $ECHO_C" >&6
8235
8236cat >conftest.$ac_ext <<_ACEOF
8237#line 8237 "configure"
8238#include "confdefs.h"
8239
8240int
8241main ()
8242{
8243class a { int b; }
8244  ;
8245  return 0;
8246}
8247_ACEOF
8248rm -f conftest.$ac_objext
8249if { (eval echo "$as_me:8249: \"$ac_compile\"") >&5
8250  (eval $ac_compile) 2>&5
8251  ac_status=$?
8252  echo "$as_me:8252: \$? = $ac_status" >&5
8253  (exit $ac_status); } &&
8254         { ac_try='test -s conftest.$ac_objext'
8255  { (eval echo "$as_me:8255: \"$ac_try\"") >&5
8256  (eval $ac_try) 2>&5
8257  ac_status=$?
8258  echo "$as_me:8258: \$? = $ac_status" >&5
8259  (exit $ac_status); }; }; then
8260  WITH_CXX=yes
8261else
8262  echo "$as_me: failed program was:" >&5
8263cat conftest.$ac_ext >&5
8264WITH_CXX=no
8265fi
8266rm -f conftest.$ac_objext conftest.$ac_ext
8267    ac_ext=c
8268ac_cpp='$CPP $CPPFLAGS'
8269ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8270ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8271ac_compiler_gnu=$ac_cv_c_compiler_gnu
8272
8273    case $ac_sys_system/$ac_sys_release in
8274	osf1*|OSF1*) STDCPP="";;
8275
8276	*)			;;
8277    esac
8278
8279        if test "x$GCC" != "x"; then
8280	STDCPP="-lstdc++"
8281    fi
8282
8283    if test "$WITH_CXX" = "yes"; then
8284
8285	echo "$as_me:8285: result: yes" >&5
8286echo "${ECHO_T}yes" >&6
8287    else
8288	echo "$as_me:8288: result: no" >&5
8289echo "${ECHO_T}no" >&6
8290    fi
8291fi
8292
8293# ----------------------------------------------------------------
8294#  PDFlib wrapup
8295# ----------------------------------------------------------------
8296
8297if test "$PLATFORM_ID" = "MacOSX"; then
8298    INCLUDES="$INCLUDES -I/Developer/Headers/FlatCarbon"
8299    LDFLAGS="$LDFLAGS -framework CoreServices -framework ApplicationServices"
8300fi
8301
8302WITHPEDANTIC=no
8303# Check whether --enable-pedantic or --disable-pedantic was given.
8304if test "${enable_pedantic+set}" = set; then
8305  enableval="$enable_pedantic"
8306  WITHPEDANTIC=$enableval
8307fi;
8308if test "$WITHPEDANTIC" = "yes"; then
8309        if test "x$GCC" != "x"; then
8310	PDFPEDANTIC="-Wall -pedantic -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wshadow -Wpointer-arith"
8311
8312    fi
8313fi
8314
8315BINDINGS="c"
8316PSPBINDINGS="c"
8317
8318if ${CONFIG_SHELL-/bin/sh} ./libtool --features | grep "disable shared" >/dev/null; then
8319    WITH_SHARED=no
8320fi
8321
8322if test "$WITH_SHARED" = "no"; then
8323    WITH_JAVA=no
8324    WITH_PERL=no
8325    WITH_PYTHON=no
8326    WITH_TCL=no
8327fi
8328
8329if test "$WITH_CXX" = "yes" ; then
8330    BINDINGS="$BINDINGS cpp"
8331fi
8332if test "$WITH_JAVA" = "yes" ; then
8333    BINDINGS="$BINDINGS java"
8334    PSPBINDINGS="$PSPBINDINGS java"
8335fi
8336if test "$WITH_PERL" = "yes" ; then
8337    BINDINGS="$BINDINGS perl"
8338fi
8339if test "$WITH_PYTHON" = "yes" ; then
8340    BINDINGS="$BINDINGS python"
8341fi
8342if test "$WITH_TCL" = "yes" ; then
8343    BINDINGS="$BINDINGS tcl"
8344fi
8345
8346if test -f ptf/Makefile ; then
8347    PTFDIR="ptf"
8348    GENERATED_FILES="$GENERATED_FILES ptf/src/dot/dot.pl"
8349fi
8350
8351if test "$WITH_DEBUG" = "yes"; then
8352    CFLAGS="$CFLAGS -DDEBUG"
8353fi
8354
8355if test "$WITH_PROFILE" = "yes"; then
8356    CFLAGS="$CFLAGS -pg"
8357    LDFLAGS="$LDFLAGS -pg"
8358fi
8359
8360DEFINES="$CFLAGS $DEFINES $INCLUDES $PLATFORM"
8361
8362EXTERNALLIBS="$LDFLAGS $EXTERNALLIBS"
8363
8364PDFLIBCONVENIENT="$PDFLIB_LINK \$(top_builddir)/libs/pdflib/p_basic\$(LO) $PDCORELIBLINK $PNGLIBLINK $FLATELIBLINK $TIFFLIBLINK $PDILIBLINK $JPEGLIBLINK"
8365
8366if test "$WITH_SHARED" = "no"; then
8367        RPATH=""
8368else
8369        RPATH="-rpath \$(libdir) -version-info $LTVERSIONINFO"
8370
8371fi
8372
8373GENERATED_FILES="$GENERATED_FILES config/mkcommon.inc config/mkprogs.inc config/mklibs.inc config/mksubdirs.inc config/mkbind.inc pdflib-config"
8374
8375ac_config_files="$ac_config_files $GENERATED_FILES"
8376ac_config_commands="$ac_config_commands default"
8377cat >confcache <<\_ACEOF
8378# This file is a shell script that caches the results of configure
8379# tests run on this system so they can be shared between configure
8380# scripts and configure runs, see configure's option --config-cache.
8381# It is not useful on other systems.  If it contains results you don't
8382# want to keep, you may remove or edit it.
8383#
8384# config.status only pays attention to the cache file if you give it
8385# the --recheck option to rerun configure.
8386#
8387# `ac_cv_env_foo' variables (set or unset) will be overriden when
8388# loading this file, other *unset* `ac_cv_foo' will be assigned the
8389# following values.
8390
8391_ACEOF
8392
8393# The following way of writing the cache mishandles newlines in values,
8394# but we know of no workaround that is simple, portable, and efficient.
8395# So, don't put newlines in cache variables' values.
8396# Ultrix sh set writes to stderr and can't be redirected directly,
8397# and sets the high bit in the cache file unless we assign to the vars.
8398{
8399  (set) 2>&1 |
8400    case `(ac_space=' '; set | grep ac_space) 2>&1` in
8401    *ac_space=\ *)
8402      # `set' does not quote correctly, so add quotes (double-quote
8403      # substitution turns \\\\ into \\, and sed turns \\ into \).
8404      sed -n \
8405        "s/'/'\\\\''/g;
8406    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8407      ;;
8408    *)
8409      # `set' quotes correctly as required by POSIX, so do not add quotes.
8410      sed -n \
8411        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
8412      ;;
8413    esac;
8414} |
8415  sed '
8416     t clear
8417     : clear
8418     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8419     t end
8420     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8421     : end' >>confcache
8422if cmp -s $cache_file confcache; then :; else
8423  if test -w $cache_file; then
8424    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
8425    cat confcache >$cache_file
8426  else
8427    echo "not updating unwritable cache $cache_file"
8428  fi
8429fi
8430rm -f confcache
8431
8432test "x$prefix" = xNONE && prefix=$ac_default_prefix
8433# Let make expand exec_prefix.
8434test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8435
8436# VPATH may cause trouble with some makes, so we remove $(srcdir),
8437# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8438# trailing colons and then remove the whole line if VPATH becomes empty
8439# (actually we leave an empty line to preserve line numbers).
8440if test "x$srcdir" = x.; then
8441  ac_vpsub='/^[ 	]*VPATH[ 	]*=/{
8442s/:*\$(srcdir):*/:/;
8443s/:*\${srcdir}:*/:/;
8444s/:*@srcdir@:*/:/;
8445s/^\([^=]*=[ 	]*\):*/\1/;
8446s/:*$//;
8447s/^[^=]*=[ 	]*$//;
8448}'
8449fi
8450
8451# Transform confdefs.h into DEFS.
8452# Protect against shell expansion while executing Makefile rules.
8453# Protect against Makefile macro expansion.
8454#
8455# If the first sed substitution is executed (which looks for macros that
8456# take arguments), then we branch to the quote section.  Otherwise,
8457# look for a macro that doesn't take arguments.
8458cat >confdef2opt.sed <<\EOF
8459t clear
8460: clear
8461s,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	(][^ 	(]*([^)]*)\)[ 	]*\(.*\),-D\1=\2,g
8462t quote
8463s,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	][^ 	]*\)[ 	]*\(.*\),-D\1=\2,g
8464t quote
8465d
8466: quote
8467s,[ 	`~#$^&*(){}\\|;'"<>?],\\&,g
8468s,\[,\\&,g
8469s,\],\\&,g
8470s,\$,$$,g
8471p
8472EOF
8473# We use echo to avoid assuming a particular line-breaking character.
8474# The extra dot is to prevent the shell from consuming trailing
8475# line-breaks from the sub-command output.  A line-break within
8476# single-quotes doesn't work because, if this script is created in a
8477# platform that uses two characters for line-breaks (e.g., DOS), tr
8478# would break.
8479ac_LF_and_DOT=`echo; echo .`
8480DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
8481rm -f confdef2opt.sed
8482
8483: ${CONFIG_STATUS=./config.status}
8484ac_clean_files_save=$ac_clean_files
8485ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8486{ echo "$as_me:8486: creating $CONFIG_STATUS" >&5
8487echo "$as_me: creating $CONFIG_STATUS" >&6;}
8488cat >$CONFIG_STATUS <<_ACEOF
8489#! $SHELL
8490# Generated automatically by configure.
8491# Run this file to recreate the current configuration.
8492# Compiler output produced by configure, useful for debugging
8493# configure, is in config.log if it exists.
8494
8495debug=false
8496SHELL=\${CONFIG_SHELL-$SHELL}
8497ac_cs_invocation="\$0 \$@"
8498
8499_ACEOF
8500
8501cat >>$CONFIG_STATUS <<\_ACEOF
8502# Be Bourne compatible
8503if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8504  emulate sh
8505  NULLCMD=:
8506elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
8507  set -o posix
8508fi
8509
8510# Name of the executable.
8511as_me=`echo "$0" |sed 's,.*[\\/],,'`
8512
8513if expr a : '\(a\)' >/dev/null 2>&1; then
8514  as_expr=expr
8515else
8516  as_expr=false
8517fi
8518
8519rm -f conf$$ conf$$.exe conf$$.file
8520echo >conf$$.file
8521if ln -s conf$$.file conf$$ 2>/dev/null; then
8522  # We could just check for DJGPP; but this test a) works b) is more generic
8523  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
8524  if test -f conf$$.exe; then
8525    # Don't use ln at all; we don't have any links
8526    as_ln_s='cp -p'
8527  else
8528    as_ln_s='ln -s'
8529  fi
8530elif ln conf$$.file conf$$ 2>/dev/null; then
8531  as_ln_s=ln
8532else
8533  as_ln_s='cp -p'
8534fi
8535rm -f conf$$ conf$$.exe conf$$.file
8536
8537as_executable_p="test -f"
8538
8539# Support unset when possible.
8540if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
8541  as_unset=unset
8542else
8543  as_unset=false
8544fi
8545
8546# NLS nuisances.
8547$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
8548$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
8549$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
8550$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
8551$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
8552$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
8553$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
8554$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
8555
8556# IFS
8557# We need space, tab and new line, in precisely that order.
8558as_nl='
8559'
8560IFS=" 	$as_nl"
8561
8562# CDPATH.
8563$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
8564
8565exec 6>&1
8566
8567_ACEOF
8568
8569# Files that config.status was made for.
8570if test -n "$ac_config_files"; then
8571  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
8572fi
8573
8574if test -n "$ac_config_headers"; then
8575  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
8576fi
8577
8578if test -n "$ac_config_links"; then
8579  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
8580fi
8581
8582if test -n "$ac_config_commands"; then
8583  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
8584fi
8585
8586cat >>$CONFIG_STATUS <<\EOF
8587
8588ac_cs_usage="\
8589\`$as_me' instantiates files from templates according to the
8590current configuration.
8591
8592Usage: $0 [OPTIONS] [FILE]...
8593
8594  -h, --help       print this help, then exit
8595  -V, --version    print version number, then exit
8596  -d, --debug      don't remove temporary files
8597      --recheck    update $as_me by reconfiguring in the same conditions
8598  --file=FILE[:TEMPLATE]
8599                   instantiate the configuration file FILE
8600
8601Configuration files:
8602$config_files
8603
8604Configuration commands:
8605$config_commands
8606
8607Report bugs to <bug-autoconf@gnu.org>."
8608EOF
8609
8610cat >>$CONFIG_STATUS <<EOF
8611ac_cs_version="\\
8612config.status
8613configured by $0, generated by GNU Autoconf 2.52,
8614  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
8615
8616Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
8617Free Software Foundation, Inc.
8618This config.status script is free software; the Free Software Foundation
8619gives unlimited permission to copy, distribute and modify it."
8620srcdir=$srcdir
8621INSTALL="$INSTALL"
8622EOF
8623
8624cat >>$CONFIG_STATUS <<\EOF
8625# If no file are specified by the user, then we need to provide default
8626# value.  By we need to know if files were specified by the user.
8627ac_need_defaults=:
8628while test $# != 0
8629do
8630  case $1 in
8631  --*=*)
8632    ac_option=`expr "x$1" : 'x\([^=]*\)='`
8633    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
8634    shift
8635    set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
8636    shift
8637    ;;
8638  -*);;
8639  *) # This is not an option, so the user has probably given explicit
8640     # arguments.
8641     ac_need_defaults=false;;
8642  esac
8643
8644  case $1 in
8645  # Handling of the options.
8646EOF
8647cat >>$CONFIG_STATUS <<EOF
8648  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8649    echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
8650    exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
8651EOF
8652cat >>$CONFIG_STATUS <<\EOF
8653  --version | --vers* | -V )
8654    echo "$ac_cs_version"; exit 0 ;;
8655  --he | --h)
8656    # Conflict between --help and --header
8657    { { echo "$as_me:8657: error: ambiguous option: $1
8658Try \`$0 --help' for more information." >&5
8659echo "$as_me: error: ambiguous option: $1
8660Try \`$0 --help' for more information." >&2;}
8661   { (exit 1); exit 1; }; };;
8662  --help | --hel | -h )
8663    echo "$ac_cs_usage"; exit 0 ;;
8664  --debug | --d* | -d )
8665    debug=: ;;
8666  --file | --fil | --fi | --f )
8667    shift
8668    CONFIG_FILES="$CONFIG_FILES $1"
8669    ac_need_defaults=false;;
8670  --header | --heade | --head | --hea )
8671    shift
8672    CONFIG_HEADERS="$CONFIG_HEADERS $1"
8673    ac_need_defaults=false;;
8674
8675  # This is an error.
8676  -*) { { echo "$as_me:8676: error: unrecognized option: $1
8677Try \`$0 --help' for more information." >&5
8678echo "$as_me: error: unrecognized option: $1
8679Try \`$0 --help' for more information." >&2;}
8680   { (exit 1); exit 1; }; } ;;
8681
8682  *) ac_config_targets="$ac_config_targets $1" ;;
8683
8684  esac
8685  shift
8686done
8687
8688exec 5>>config.log
8689cat >&5 << _ACEOF
8690
8691## ----------------------- ##
8692## Running config.status.  ##
8693## ----------------------- ##
8694
8695This file was extended by $as_me 2.52, executed with
8696  CONFIG_FILES    = $CONFIG_FILES
8697  CONFIG_HEADERS  = $CONFIG_HEADERS
8698  CONFIG_LINKS    = $CONFIG_LINKS
8699  CONFIG_COMMANDS = $CONFIG_COMMANDS
8700  > $ac_cs_invocation
8701on `(hostname || uname -n) 2>/dev/null | sed 1q`
8702
8703_ACEOF
8704EOF
8705
8706cat >>$CONFIG_STATUS <<\EOF
8707for ac_config_target in $ac_config_targets
8708do
8709  case "$ac_config_target" in
8710  # Handling of arguments.
8711  "$GENERATED_FILES" ) CONFIG_FILES="$CONFIG_FILES $GENERATED_FILES" ;;
8712  "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
8713  *) { { echo "$as_me:8713: error: invalid argument: $ac_config_target" >&5
8714echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
8715   { (exit 1); exit 1; }; };;
8716  esac
8717done
8718
8719# If the user did not use the arguments to specify the items to instantiate,
8720# then the envvar interface is used.  Set only those that are not.
8721# We use the long form for the default assignment because of an extremely
8722# bizarre bug on SunOS 4.1.3.
8723if $ac_need_defaults; then
8724  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8725  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8726fi
8727
8728# Create a temporary directory, and hook for its removal unless debugging.
8729$debug ||
8730{
8731  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
8732  trap '{ (exit 1); exit 1; }' 1 2 13 15
8733}
8734
8735# Create a (secure) tmp directory for tmp files.
8736: ${TMPDIR=/tmp}
8737{
8738  tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
8739  test -n "$tmp" && test -d "$tmp"
8740}  ||
8741{
8742  tmp=$TMPDIR/cs$$-$RANDOM
8743  (umask 077 && mkdir $tmp)
8744} ||
8745{
8746   echo "$me: cannot create a temporary directory in $TMPDIR" >&2
8747   { (exit 1); exit 1; }
8748}
8749
8750EOF
8751
8752cat >>$CONFIG_STATUS <<EOF
8753
8754#
8755# CONFIG_FILES section.
8756#
8757
8758# No need to generate the scripts if there are no CONFIG_FILES.
8759# This happens for instance when ./config.status config.h
8760if test -n "\$CONFIG_FILES"; then
8761  # Protect against being on the right side of a sed subst in config.status.
8762  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
8763   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
8764s,@SHELL@,$SHELL,;t t
8765s,@exec_prefix@,$exec_prefix,;t t
8766s,@prefix@,$prefix,;t t
8767s,@program_transform_name@,$program_transform_name,;t t
8768s,@bindir@,$bindir,;t t
8769s,@sbindir@,$sbindir,;t t
8770s,@libexecdir@,$libexecdir,;t t
8771s,@datadir@,$datadir,;t t
8772s,@sysconfdir@,$sysconfdir,;t t
8773s,@sharedstatedir@,$sharedstatedir,;t t
8774s,@localstatedir@,$localstatedir,;t t
8775s,@libdir@,$libdir,;t t
8776s,@includedir@,$includedir,;t t
8777s,@oldincludedir@,$oldincludedir,;t t
8778s,@infodir@,$infodir,;t t
8779s,@mandir@,$mandir,;t t
8780s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
8781s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
8782s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
8783s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
8784s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
8785s,@build_alias@,$build_alias,;t t
8786s,@host_alias@,$host_alias,;t t
8787s,@target_alias@,$target_alias,;t t
8788s,@ECHO_C@,$ECHO_C,;t t
8789s,@ECHO_N@,$ECHO_N,;t t
8790s,@ECHO_T@,$ECHO_T,;t t
8791s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
8792s,@DEFS@,$DEFS,;t t
8793s,@LIBS@,$LIBS,;t t
8794s,@PDFLIB_MAJOR@,$PDFLIB_MAJOR,;t t
8795s,@PDFLIB_MINOR@,$PDFLIB_MINOR,;t t
8796s,@PDFLIB_REVISION@,$PDFLIB_REVISION,;t t
8797s,@LTVERSIONINFO@,$LTVERSIONINFO,;t t
8798s,@PDFLIB_LTCURRENT@,$PDFLIB_LTCURRENT,;t t
8799s,@PDFLIB_LTREVISION@,$PDFLIB_LTREVISION,;t t
8800s,@PDFLIB_LTAGE@,$PDFLIB_LTAGE,;t t
8801s,@PDFLIBNAME@,$PDFLIBNAME,;t t
8802s,@build@,$build,;t t
8803s,@build_cpu@,$build_cpu,;t t
8804s,@build_vendor@,$build_vendor,;t t
8805s,@build_os@,$build_os,;t t
8806s,@host@,$host,;t t
8807s,@host_cpu@,$host_cpu,;t t
8808s,@host_vendor@,$host_vendor,;t t
8809s,@host_os@,$host_os,;t t
8810s,@CC@,$CC,;t t
8811s,@CFLAGS@,$CFLAGS,;t t
8812s,@LDFLAGS@,$LDFLAGS,;t t
8813s,@CPPFLAGS@,$CPPFLAGS,;t t
8814s,@ac_ct_CC@,$ac_ct_CC,;t t
8815s,@EXEEXT@,$EXEEXT,;t t
8816s,@OBJEXT@,$OBJEXT,;t t
8817s,@CPP@,$CPP,;t t
8818s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
8819s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
8820s,@INSTALL_DATA@,$INSTALL_DATA,;t t
8821s,@LN_S@,$LN_S,;t t
8822s,@ECHO@,$ECHO,;t t
8823s,@RANLIB@,$RANLIB,;t t
8824s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
8825s,@STRIP@,$STRIP,;t t
8826s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
8827s,@DLLTOOL@,$DLLTOOL,;t t
8828s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
8829s,@AS@,$AS,;t t
8830s,@ac_ct_AS@,$ac_ct_AS,;t t
8831s,@OBJDUMP@,$OBJDUMP,;t t
8832s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
8833s,@LIBTOOL@,$LIBTOOL,;t t
8834s,@PLATFORM_ID@,$PLATFORM_ID,;t t
8835s,@VERSION@,$VERSION,;t t
8836s,@RM@,$RM,;t t
8837s,@JAVAINCLUDE@,$JAVAINCLUDE,;t t
8838s,@PERL@,$PERL,;t t
8839s,@PERLINCLUDE@,$PERLINCLUDE,;t t
8840s,@PERLLIBDIR@,$PERLLIBDIR,;t t
8841s,@PERLBOOLDEF@,$PERLBOOLDEF,;t t
8842s,@PERLLINK@,$PERLLINK,;t t
8843s,@PYINCLUDE@,$PYINCLUDE,;t t
8844s,@PYTHONBIN@,$PYTHONBIN,;t t
8845s,@PYTHONLIBDIR@,$PYTHONLIBDIR,;t t
8846s,@TCL@,$TCL,;t t
8847s,@TCLINCLUDE@,$TCLINCLUDE,;t t
8848s,@TCLPACKAGEDIR@,$TCLPACKAGEDIR,;t t
8849s,@TCLBIN@,$TCLBIN,;t t
8850s,@PDCORELIBINC@,$PDCORELIBINC,;t t
8851s,@PDCORELIBLINK@,$PDCORELIBLINK,;t t
8852s,@FLATELIBLINK@,$FLATELIBLINK,;t t
8853s,@FLATELIBINC@,$FLATELIBINC,;t t
8854s,@PNGLIBINC@,$PNGLIBINC,;t t
8855s,@PNGLIBLINK@,$PNGLIBLINK,;t t
8856s,@TIFFLIBINC@,$TIFFLIBINC,;t t
8857s,@TIFFLIBLINK@,$TIFFLIBLINK,;t t
8858s,@JPEGLIBINC@,$JPEGLIBINC,;t t
8859s,@JPEGLIBLINK@,$JPEGLIBLINK,;t t
8860s,@PDILIBINC@,$PDILIBINC,;t t
8861s,@PDILIBLINK@,$PDILIBLINK,;t t
8862s,@PDFLIBCONVENIENT@,$PDFLIBCONVENIENT,;t t
8863s,@PDFLIBINC@,$PDFLIBINC,;t t
8864s,@PDFLIBLINK@,$PDFLIBLINK,;t t
8865s,@PDFLIB_LINK@,$PDFLIB_LINK,;t t
8866s,@PSPLIBINC@,$PSPLIBINC,;t t
8867s,@PSPLIBLINK@,$PSPLIBLINK,;t t
8868s,@PSPLIB_LINK@,$PSPLIB_LINK,;t t
8869s,@TETLIBINC@,$TETLIBINC,;t t
8870s,@TETLIBLINK@,$TETLIBLINK,;t t
8871s,@TETLIB_LINK@,$TETLIB_LINK,;t t
8872s,@PDULIBINC@,$PDULIBINC,;t t
8873s,@PDULIBLINK@,$PDULIBLINK,;t t
8874s,@PDPAGELIBINC@,$PDPAGELIBINC,;t t
8875s,@PDPAGELIBLINK@,$PDPAGELIBLINK,;t t
8876s,@CXX@,$CXX,;t t
8877s,@CXXFLAGS@,$CXXFLAGS,;t t
8878s,@ac_ct_CXX@,$ac_ct_CXX,;t t
8879s,@STDCPP@,$STDCPP,;t t
8880s,@PDFPEDANTIC@,$PDFPEDANTIC,;t t
8881s,@PHP_PDFLIBS@,$PHP_PDFLIBS,;t t
8882s,@LIBTARGETS@,$LIBTARGETS,;t t
8883s,@BINDTARGETS@,$BINDTARGETS,;t t
8884s,@PROGTARGETS@,$PROGTARGETS,;t t
8885s,@BINDINGS@,$BINDINGS,;t t
8886s,@PSPBINDINGS@,$PSPBINDINGS,;t t
8887s,@PTFDIR@,$PTFDIR,;t t
8888s,@WITH_PDI@,$WITH_PDI,;t t
8889s,@EXTERNALLIBS@,$EXTERNALLIBS,;t t
8890s,@RPATH@,$RPATH,;t t
8891s,@MATHLIB@,$MATHLIB,;t t
8892s,@INCLUDES@,$INCLUDES,;t t
8893s,@DEFINES@,$DEFINES,;t t
8894s,@WITH_SHARED@,$WITH_SHARED,;t t
8895CEOF
8896
8897EOF
8898
8899  cat >>$CONFIG_STATUS <<\EOF
8900  # Split the substitutions into bite-sized pieces for seds with
8901  # small command number limits, like on Digital OSF/1 and HP-UX.
8902  ac_max_sed_lines=48
8903  ac_sed_frag=1 # Number of current file.
8904  ac_beg=1 # First line for current file.
8905  ac_end=$ac_max_sed_lines # Line after last line for current file.
8906  ac_more_lines=:
8907  ac_sed_cmds=
8908  while $ac_more_lines; do
8909    if test $ac_beg -gt 1; then
8910      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8911    else
8912      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
8913    fi
8914    if test ! -s $tmp/subs.frag; then
8915      ac_more_lines=false
8916    else
8917      # The purpose of the label and of the branching condition is to
8918      # speed up the sed processing (if there are no `@' at all, there
8919      # is no need to browse any of the substitutions).
8920      # These are the two extra sed commands mentioned above.
8921      (echo ':t
8922  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
8923      if test -z "$ac_sed_cmds"; then
8924  	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
8925      else
8926  	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
8927      fi
8928      ac_sed_frag=`expr $ac_sed_frag + 1`
8929      ac_beg=$ac_end
8930      ac_end=`expr $ac_end + $ac_max_sed_lines`
8931    fi
8932  done
8933  if test -z "$ac_sed_cmds"; then
8934    ac_sed_cmds=cat
8935  fi
8936fi # test -n "$CONFIG_FILES"
8937
8938EOF
8939cat >>$CONFIG_STATUS <<\EOF
8940for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
8941  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8942  case $ac_file in
8943  - | *:- | *:-:* ) # input from stdin
8944        cat >$tmp/stdin
8945        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8946        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8947  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
8948        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
8949  * )   ac_file_in=$ac_file.in ;;
8950  esac
8951
8952  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
8953  ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8954         X"$ac_file" : 'X\(//\)[^/]' \| \
8955         X"$ac_file" : 'X\(//\)$' \| \
8956         X"$ac_file" : 'X\(/\)' \| \
8957         .     : '\(.\)' 2>/dev/null ||
8958echo X"$ac_file" |
8959    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
8960  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
8961  	  /^X\(\/\/\)$/{ s//\1/; q; }
8962  	  /^X\(\/\).*/{ s//\1/; q; }
8963  	  s/.*/./; q'`
8964  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8965    { case "$ac_dir" in
8966  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
8967  *)                      as_incr_dir=.;;
8968esac
8969as_dummy="$ac_dir"
8970for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
8971  case $as_mkdir_dir in
8972    # Skip DOS drivespec
8973    ?:) as_incr_dir=$as_mkdir_dir ;;
8974    *)
8975      as_incr_dir=$as_incr_dir/$as_mkdir_dir
8976      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
8977    ;;
8978  esac
8979done; }
8980
8981    ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
8982    # A "../" for each directory in $ac_dir_suffix.
8983    ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
8984  else
8985    ac_dir_suffix= ac_dots=
8986  fi
8987
8988  case $srcdir in
8989  .)  ac_srcdir=.
8990      if test -z "$ac_dots"; then
8991         ac_top_srcdir=.
8992      else
8993         ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
8994      fi ;;
8995  [\\/]* | ?:[\\/]* )
8996      ac_srcdir=$srcdir$ac_dir_suffix;
8997      ac_top_srcdir=$srcdir ;;
8998  *) # Relative path.
8999    ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
9000    ac_top_srcdir=$ac_dots$srcdir ;;
9001  esac
9002
9003  case $INSTALL in
9004  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9005  *) ac_INSTALL=$ac_dots$INSTALL ;;
9006  esac
9007
9008  if test x"$ac_file" != x-; then
9009    { echo "$as_me:9009: creating $ac_file" >&5
9010echo "$as_me: creating $ac_file" >&6;}
9011    rm -f "$ac_file"
9012  fi
9013  # Let's still pretend it is `configure' which instantiates (i.e., don't
9014  # use $as_me), people would be surprised to read:
9015  #    /* config.h.  Generated automatically by config.status.  */
9016  configure_input="Generated automatically from `echo $ac_file_in |
9017                                                 sed 's,.*/,,'` by configure."
9018
9019  # First look for the input files in the build tree, otherwise in the
9020  # src tree.
9021  ac_file_inputs=`IFS=:
9022    for f in $ac_file_in; do
9023      case $f in
9024      -) echo $tmp/stdin ;;
9025      [\\/$]*)
9026         # Absolute (can't be DOS-style, as IFS=:)
9027         test -f "$f" || { { echo "$as_me:9027: error: cannot find input file: $f" >&5
9028echo "$as_me: error: cannot find input file: $f" >&2;}
9029   { (exit 1); exit 1; }; }
9030         echo $f;;
9031      *) # Relative
9032         if test -f "$f"; then
9033           # Build tree
9034           echo $f
9035         elif test -f "$srcdir/$f"; then
9036           # Source tree
9037           echo $srcdir/$f
9038         else
9039           # /dev/null tree
9040           { { echo "$as_me:9040: error: cannot find input file: $f" >&5
9041echo "$as_me: error: cannot find input file: $f" >&2;}
9042   { (exit 1); exit 1; }; }
9043         fi;;
9044      esac
9045    done` || { (exit 1); exit 1; }
9046EOF
9047cat >>$CONFIG_STATUS <<EOF
9048  sed "$ac_vpsub
9049$extrasub
9050EOF
9051cat >>$CONFIG_STATUS <<\EOF
9052:t
9053/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9054s,@configure_input@,$configure_input,;t t
9055s,@srcdir@,$ac_srcdir,;t t
9056s,@top_srcdir@,$ac_top_srcdir,;t t
9057s,@INSTALL@,$ac_INSTALL,;t t
9058" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
9059  rm -f $tmp/stdin
9060  if test x"$ac_file" != x-; then
9061    mv $tmp/out $ac_file
9062  else
9063    cat $tmp/out
9064    rm -f $tmp/out
9065  fi
9066
9067done
9068EOF
9069cat >>$CONFIG_STATUS <<\EOF
9070
9071#
9072# CONFIG_COMMANDS section.
9073#
9074for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
9075  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
9076  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
9077
9078  case $ac_dest in
9079    default )
9080    chmod +x pdflib-config
9081 ;;
9082  esac
9083done
9084EOF
9085
9086cat >>$CONFIG_STATUS <<\EOF
9087
9088{ (exit 0); exit 0; }
9089EOF
9090chmod +x $CONFIG_STATUS
9091ac_clean_files=$ac_clean_files_save
9092
9093# configure is writing to config.log, and then calls config.status.
9094# config.status does its own redirection, appending to config.log.
9095# Unfortunately, on DOS this fails, as config.log is still kept open
9096# by configure, so config.status won't be able to write to it; its
9097# output is simply discarded.  So we exec the FD to /dev/null,
9098# effectively closing config.log, so it can be properly (re)opened and
9099# appended to by config.status.  When coming back to configure, we
9100# need to make the FD available again.
9101if test "$no_create" != yes; then
9102  ac_cs_success=:
9103  exec 5>/dev/null
9104  $SHELL $CONFIG_STATUS || ac_cs_success=false
9105  exec 5>>config.log
9106  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9107  # would make configure fail if this is the last instruction.
9108  $ac_cs_success || { (exit 1); exit 1; }
9109fi
9110
9111if test "$WITH_SHARED" = "no" ; then
9112    { echo "$as_me:9112: WARNING: Can't create shared PDFlib libraries on this platform." >&5
9113echo "$as_me: WARNING: Can't create shared PDFlib libraries on this platform." >&2;}
9114    { echo "$as_me:9114: WARNING: PDFlib will work when linked to a C or C++ program," >&5
9115echo "$as_me: WARNING: PDFlib will work when linked to a C or C++ program," >&2;}
9116    { echo "$as_me:9116: WARNING: but other language bindings will be unavailable." >&5
9117echo "$as_me: WARNING: but other language bindings will be unavailable." >&2;}
9118fi
9119
9120if test "$WITH_PSP" = "yes" ; then
9121echo "$as_me:9121: result: _____________________________________________________________" >&5
9122echo "${ECHO_T}_____________________________________________________________" >&6
9123echo "$as_me:9123: result: For your convenience, here's a summary of configure's results:" >&5
9124echo "${ECHO_T}For your convenience, here's a summary of configure's results:" >&6
9125echo "$as_me:9125: result: Java language binding for PSP:       $WITH_JAVA" >&5
9126echo "${ECHO_T}Java language binding for PSP:       $WITH_JAVA" >&6
9127echo "$as_me:9127: result: PHP language binding for PSP:        no, see bind/psp/php/readme.txt" >&5
9128echo "${ECHO_T}PHP language binding for PSP:        no, see bind/psp/php/readme.txt" >&6
9129fi
9130
9131if test "$WITH_PDFLIB" = "yes" ; then
9132echo "$as_me:9132: result: _____________________________________________________________" >&5
9133echo "${ECHO_T}_____________________________________________________________" >&6
9134echo "$as_me:9134: result: For your convenience, here's a summary of configure's results:" >&5
9135echo "${ECHO_T}For your convenience, here's a summary of configure's results:" >&6
9136echo "$as_me:9136: result: " >&5
9137echo "${ECHO_T}" >&6
9138echo "$as_me:9138: result: Support for shared libraries:           $WITH_SHARED" >&5
9139echo "${ECHO_T}Support for shared libraries:           $WITH_SHARED" >&6
9140echo "$as_me:9140: result: C++ language binding for PDFlib:        $WITH_CXX" >&5
9141echo "${ECHO_T}C++ language binding for PDFlib:        $WITH_CXX" >&6
9142echo "$as_me:9142: result: Java language binding for PDFlib:       $WITH_JAVA" >&5
9143echo "${ECHO_T}Java language binding for PDFlib:       $WITH_JAVA" >&6
9144echo "$as_me:9144: result: Perl language binding for PDFlib:       $WITH_PERL" >&5
9145echo "${ECHO_T}Perl language binding for PDFlib:       $WITH_PERL" >&6
9146echo "$as_me:9146: result: Python language binding for PDFlib:     $WITH_PYTHON" >&5
9147echo "${ECHO_T}Python language binding for PDFlib:     $WITH_PYTHON" >&6
9148echo "$as_me:9148: result: Tcl language binding for PDFlib:        $WITH_TCL" >&5
9149echo "${ECHO_T}Tcl language binding for PDFlib:        $WITH_TCL" >&6
9150echo "$as_me:9150: result: PHP language binding for PDFlib:        no, see bind/pdflib/php/readme.txt" >&5
9151echo "${ECHO_T}PHP language binding for PDFlib:        no, see bind/pdflib/php/readme.txt" >&6
9152
9153echo "$as_me:9153: result: PDF import library (PDI):               $WITH_PDI" >&5
9154echo "${ECHO_T}PDF import library (PDI):               $WITH_PDI" >&6
9155if test "$WITH_PDI" = "no" ; then
9156    echo "$as_me:9156: result:      Note: if you purchase the additional PDF import library (PDI)" >&5
9157echo "${ECHO_T}     Note: if you purchase the additional PDF import library (PDI)" >&6
9158    echo "$as_me:9158: result:      you can also manipulate existing PDF documents with PDFlib." >&5
9159echo "${ECHO_T}     you can also manipulate existing PDF documents with PDFlib." >&6
9160    echo "$as_me:9160: result:      The additional block feature can be used to personalize PDF." >&5
9161echo "${ECHO_T}     The additional block feature can be used to personalize PDF." >&6
9162    echo "$as_me:9162: result:      See http://www.pdflib.com for details." >&5
9163echo "${ECHO_T}     See http://www.pdflib.com for details." >&6
9164fi
9165fi
9166
9167echo "$as_me:9167: result: " >&5
9168echo "${ECHO_T}" >&6
9169echo "$as_me:9169: result: Please observe the licensing terms for commercial PDFlib usage." >&5
9170echo "${ECHO_T}Please observe the licensing terms for commercial PDFlib usage." >&6
9171echo "$as_me:9171: result: PDFlib license agreement and purchase order can be found in the doc directory." >&5
9172echo "${ECHO_T}PDFlib license agreement and purchase order can be found in the doc directory." >&6
9173echo "$as_me:9173: result: " >&5
9174echo "${ECHO_T}" >&6
9175