source: trunk/third/libxml2/configure @ 17096

Revision 17096, 247.0 KB checked in by ghudson, 23 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r17095, which included commits to RCS files with non-trunk default branches.
  • Property svn:executable set to *
Line 
1#! /bin/sh
2
3# Guess values for system-dependent variables and create Makefiles.
4# Generated automatically using autoconf version 2.13
5# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6#
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9
10# Defaults:
11ac_help=
12ac_default_prefix=/usr/local
13# Any additions from configure.in:
14ac_help="$ac_help
15  --with-html-dir=PATH path to installed docs "
16ac_help="$ac_help
17  --enable-shared[=PKGS]  build shared libraries [default=yes]"
18ac_help="$ac_help
19  --enable-static[=PKGS]  build static libraries [default=yes]"
20ac_help="$ac_help
21  --enable-fast-install[=PKGS]  optimize for fast installation [default=yes]"
22ac_help="$ac_help
23  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]"
24
25# Find the correct PATH separator.  Usually this is `:', but
26# DJGPP uses `;' like DOS.
27if test "X${PATH_SEPARATOR+set}" != Xset; then
28  UNAME=${UNAME-`uname 2>/dev/null`}
29  case X$UNAME in
30    *-DOS) lt_cv_sys_path_separator=';' ;;
31    *)     lt_cv_sys_path_separator=':' ;;
32  esac
33fi
34
35
36# Check that we are running under the correct shell.
37SHELL=${CONFIG_SHELL-/bin/sh}
38
39case X$ECHO in
40X*--fallback-echo)
41  # Remove one level of quotation (which was required for Make).
42  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
43  ;;
44esac
45
46echo=${ECHO-echo}
47if test "X$1" = X--no-reexec; then
48  # Discard the --no-reexec flag, and continue.
49  shift
50elif test "X$1" = X--fallback-echo; then
51  # Avoid inline document here, it may be left over
52  :
53elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
54  # Yippee, $echo works!
55  :
56else
57  # Restart under the correct shell.
58  exec $SHELL "$0" --no-reexec ${1+"$@"}
59fi
60
61if test "X$1" = X--fallback-echo; then
62  # used as fallback echo
63  shift
64  cat <<EOF
65
66EOF
67  exit 0
68fi
69
70# The HP-UX ksh and POSIX shell print the target directory to stdout
71# if CDPATH is set.
72if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
73
74if test -z "$ECHO"; then
75if test "X${echo_test_string+set}" != Xset; then
76# find a string as large as possible, as long as the shell can cope with it
77  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
78    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
79    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
80       echo_test_string="`eval $cmd`" &&
81       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
82    then
83      break
84    fi
85  done
86fi
87
88if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
89   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
90   test "X$echo_testing_string" = "X$echo_test_string"; then
91  :
92else
93  # The Solaris, AIX, and Digital Unix default echo programs unquote
94  # backslashes.  This makes it impossible to quote backslashes using
95  #   echo "$something" | sed 's/\\/\\\\/g'
96  #
97  # So, first we look for a working echo in the user's PATH.
98
99  IFS="${IFS=   }"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
100  for dir in $PATH /usr/ucb; do
101    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
102       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
103       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
104       test "X$echo_testing_string" = "X$echo_test_string"; then
105      echo="$dir/echo"
106      break
107    fi
108  done
109  IFS="$save_ifs"
110
111  if test "X$echo" = Xecho; then
112    # We didn't find a better echo, so look for alternatives.
113    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
114       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
115       test "X$echo_testing_string" = "X$echo_test_string"; then
116      # This shell has a builtin print -r that does the trick.
117      echo='print -r'
118    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
119         test "X$CONFIG_SHELL" != X/bin/ksh; then
120      # If we have ksh, try running configure again with it.
121      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
122      export ORIGINAL_CONFIG_SHELL
123      CONFIG_SHELL=/bin/ksh
124      export CONFIG_SHELL
125      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
126    else
127      # Try using printf.
128      echo='printf %s\n'
129      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
130         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
131         test "X$echo_testing_string" = "X$echo_test_string"; then
132        # Cool, printf works
133        :
134      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
135           test "X$echo_testing_string" = 'X\t' &&
136           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
137           test "X$echo_testing_string" = "X$echo_test_string"; then
138        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
139        export CONFIG_SHELL
140        SHELL="$CONFIG_SHELL"
141        export SHELL
142        echo="$CONFIG_SHELL $0 --fallback-echo"
143      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
144           test "X$echo_testing_string" = 'X\t' &&
145           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
146           test "X$echo_testing_string" = "X$echo_test_string"; then
147        echo="$CONFIG_SHELL $0 --fallback-echo"
148      else
149        # maybe with a smaller string...
150        prev=:
151
152        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
153          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
154          then
155            break
156          fi
157          prev="$cmd"
158        done
159
160        if test "$prev" != 'sed 50q "$0"'; then
161          echo_test_string=`eval $prev`
162          export echo_test_string
163          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
164        else
165          # Oops.  We lost completely, so just stick with echo.
166          echo=echo
167        fi
168      fi
169    fi
170  fi
171fi
172fi
173
174# Copy echo and quote the copy suitably for passing to libtool from
175# the Makefile, instead of quoting the original, which is used later.
176ECHO=$echo
177if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
178   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
179fi
180
181
182ac_help="$ac_help
183  --disable-libtool-lock  avoid locking (might break parallel builds)"
184ac_help="$ac_help
185  --with-pic              try to use only PIC/non-PIC objects [default=use both]"
186ac_help="$ac_help
187  --enable-maintainer-mode enable make rules and dependencies not useful
188                          (and sometimes confusing) to the casual installer"
189ac_help="$ac_help
190  --with-zlib[=DIR]       use libz in DIR"
191ac_help="$ac_help
192  --with-python[=DIR]    Build Python bindings if found"
193ac_help="$ac_help
194  --with-buffers          Use buffers for node content"
195ac_help="$ac_help
196  --with-readline=DIR     use readline in DIR"
197ac_help="$ac_help
198  --with-threads          Add multithread support(off)"
199ac_help="$ac_help
200  --with-thread-alloc     Add per-thread memory(off)"
201ac_help="$ac_help
202  --with-history          Add history support to xmllint shell(off)"
203ac_help="$ac_help
204  --with-ftp              Add the FTP support (on)"
205ac_help="$ac_help
206  --with-http             Add the HTTP support (on)"
207ac_help="$ac_help
208  --with-html             Add the HTML support (on)"
209ac_help="$ac_help
210  --with-catalog          Add the Catalog support (on)"
211ac_help="$ac_help
212  --with-docbook          Add Docbook SGML support (on)"
213ac_help="$ac_help
214  --with-xpath            Add the XPATH support (on)"
215ac_help="$ac_help
216  --with-xptr             Add the XPointer support (on)"
217ac_help="$ac_help
218  --with-xinclude         Add the XInclude support (on)"
219ac_help="$ac_help
220  --with-iconv[=DIR]      Add ICONV support (on)"
221ac_help="$ac_help
222  --with-debug            Add the debugging module (on)"
223ac_help="$ac_help
224  --with-mem-debug        Add the memory debugging module (off)"
225
226# Initialize some variables set by options.
227# The variables have the same names as the options, with
228# dashes changed to underlines.
229build=NONE
230cache_file=./config.cache
231exec_prefix=NONE
232host=NONE
233no_create=
234nonopt=NONE
235no_recursion=
236prefix=NONE
237program_prefix=NONE
238program_suffix=NONE
239program_transform_name=s,x,x,
240silent=
241site=
242srcdir=
243target=NONE
244verbose=
245x_includes=NONE
246x_libraries=NONE
247bindir='${exec_prefix}/bin'
248sbindir='${exec_prefix}/sbin'
249libexecdir='${exec_prefix}/libexec'
250datadir='${prefix}/share'
251sysconfdir='${prefix}/etc'
252sharedstatedir='${prefix}/com'
253localstatedir='${prefix}/var'
254libdir='${exec_prefix}/lib'
255includedir='${prefix}/include'
256oldincludedir='/usr/include'
257infodir='${prefix}/info'
258mandir='${prefix}/man'
259
260# Initialize some other variables.
261subdirs=
262MFLAGS= MAKEFLAGS=
263SHELL=${CONFIG_SHELL-/bin/sh}
264# Maximum number of lines to put in a shell here document.
265ac_max_here_lines=12
266
267ac_prev=
268for ac_option
269do
270
271  # If the previous option needs an argument, assign it.
272  if test -n "$ac_prev"; then
273    eval "$ac_prev=\$ac_option"
274    ac_prev=
275    continue
276  fi
277
278  case "$ac_option" in
279  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
280  *) ac_optarg= ;;
281  esac
282
283  # Accept the important Cygnus configure options, so we can diagnose typos.
284
285  case "$ac_option" in
286
287  -bindir | --bindir | --bindi | --bind | --bin | --bi)
288    ac_prev=bindir ;;
289  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
290    bindir="$ac_optarg" ;;
291
292  -build | --build | --buil | --bui | --bu)
293    ac_prev=build ;;
294  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
295    build="$ac_optarg" ;;
296
297  -cache-file | --cache-file | --cache-fil | --cache-fi \
298  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
299    ac_prev=cache_file ;;
300  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
301  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
302    cache_file="$ac_optarg" ;;
303
304  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
305    ac_prev=datadir ;;
306  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
307  | --da=*)
308    datadir="$ac_optarg" ;;
309
310  -disable-* | --disable-*)
311    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
312    # Reject names that are not valid shell variable names.
313    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
314      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
315    fi
316    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
317    eval "enable_${ac_feature}=no" ;;
318
319  -enable-* | --enable-*)
320    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
321    # Reject names that are not valid shell variable names.
322    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
323      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
324    fi
325    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
326    case "$ac_option" in
327      *=*) ;;
328      *) ac_optarg=yes ;;
329    esac
330    eval "enable_${ac_feature}='$ac_optarg'" ;;
331
332  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
333  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
334  | --exec | --exe | --ex)
335    ac_prev=exec_prefix ;;
336  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
337  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
338  | --exec=* | --exe=* | --ex=*)
339    exec_prefix="$ac_optarg" ;;
340
341  -gas | --gas | --ga | --g)
342    # Obsolete; use --with-gas.
343    with_gas=yes ;;
344
345  -help | --help | --hel | --he)
346    # Omit some internal or obsolete options to make the list less imposing.
347    # This message is too long to be a string in the A/UX 3.1 sh.
348    cat << EOF
349Usage: configure [options] [host]
350Options: [defaults in brackets after descriptions]
351Configuration:
352  --cache-file=FILE       cache test results in FILE
353  --help                  print this message
354  --no-create             do not create output files
355  --quiet, --silent       do not print \`checking...' messages
356  --version               print the version of autoconf that created configure
357Directory and file names:
358  --prefix=PREFIX         install architecture-independent files in PREFIX
359                          [$ac_default_prefix]
360  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
361                          [same as prefix]
362  --bindir=DIR            user executables in DIR [EPREFIX/bin]
363  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
364  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
365  --datadir=DIR           read-only architecture-independent data in DIR
366                          [PREFIX/share]
367  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
368  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
369                          [PREFIX/com]
370  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
371  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
372  --includedir=DIR        C header files in DIR [PREFIX/include]
373  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
374  --infodir=DIR           info documentation in DIR [PREFIX/info]
375  --mandir=DIR            man documentation in DIR [PREFIX/man]
376  --srcdir=DIR            find the sources in DIR [configure dir or ..]
377  --program-prefix=PREFIX prepend PREFIX to installed program names
378  --program-suffix=SUFFIX append SUFFIX to installed program names
379  --program-transform-name=PROGRAM
380                          run sed PROGRAM on installed program names
381EOF
382    cat << EOF
383Host type:
384  --build=BUILD           configure for building on BUILD [BUILD=HOST]
385  --host=HOST             configure for HOST [guessed]
386  --target=TARGET         configure for TARGET [TARGET=HOST]
387Features and packages:
388  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
389  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
390  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
391  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
392  --x-includes=DIR        X include files are in DIR
393  --x-libraries=DIR       X library files are in DIR
394EOF
395    if test -n "$ac_help"; then
396      echo "--enable and --with options recognized:$ac_help"
397    fi
398    exit 0 ;;
399
400  -host | --host | --hos | --ho)
401    ac_prev=host ;;
402  -host=* | --host=* | --hos=* | --ho=*)
403    host="$ac_optarg" ;;
404
405  -includedir | --includedir | --includedi | --included | --include \
406  | --includ | --inclu | --incl | --inc)
407    ac_prev=includedir ;;
408  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
409  | --includ=* | --inclu=* | --incl=* | --inc=*)
410    includedir="$ac_optarg" ;;
411
412  -infodir | --infodir | --infodi | --infod | --info | --inf)
413    ac_prev=infodir ;;
414  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
415    infodir="$ac_optarg" ;;
416
417  -libdir | --libdir | --libdi | --libd)
418    ac_prev=libdir ;;
419  -libdir=* | --libdir=* | --libdi=* | --libd=*)
420    libdir="$ac_optarg" ;;
421
422  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
423  | --libexe | --libex | --libe)
424    ac_prev=libexecdir ;;
425  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
426  | --libexe=* | --libex=* | --libe=*)
427    libexecdir="$ac_optarg" ;;
428
429  -localstatedir | --localstatedir | --localstatedi | --localstated \
430  | --localstate | --localstat | --localsta | --localst \
431  | --locals | --local | --loca | --loc | --lo)
432    ac_prev=localstatedir ;;
433  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
434  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
435  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
436    localstatedir="$ac_optarg" ;;
437
438  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
439    ac_prev=mandir ;;
440  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
441    mandir="$ac_optarg" ;;
442
443  -nfp | --nfp | --nf)
444    # Obsolete; use --without-fp.
445    with_fp=no ;;
446
447  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
448  | --no-cr | --no-c)
449    no_create=yes ;;
450
451  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
452  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
453    no_recursion=yes ;;
454
455  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
456  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
457  | --oldin | --oldi | --old | --ol | --o)
458    ac_prev=oldincludedir ;;
459  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
460  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
461  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
462    oldincludedir="$ac_optarg" ;;
463
464  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
465    ac_prev=prefix ;;
466  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
467    prefix="$ac_optarg" ;;
468
469  -program-prefix | --program-prefix | --program-prefi | --program-pref \
470  | --program-pre | --program-pr | --program-p)
471    ac_prev=program_prefix ;;
472  -program-prefix=* | --program-prefix=* | --program-prefi=* \
473  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
474    program_prefix="$ac_optarg" ;;
475
476  -program-suffix | --program-suffix | --program-suffi | --program-suff \
477  | --program-suf | --program-su | --program-s)
478    ac_prev=program_suffix ;;
479  -program-suffix=* | --program-suffix=* | --program-suffi=* \
480  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
481    program_suffix="$ac_optarg" ;;
482
483  -program-transform-name | --program-transform-name \
484  | --program-transform-nam | --program-transform-na \
485  | --program-transform-n | --program-transform- \
486  | --program-transform | --program-transfor \
487  | --program-transfo | --program-transf \
488  | --program-trans | --program-tran \
489  | --progr-tra | --program-tr | --program-t)
490    ac_prev=program_transform_name ;;
491  -program-transform-name=* | --program-transform-name=* \
492  | --program-transform-nam=* | --program-transform-na=* \
493  | --program-transform-n=* | --program-transform-=* \
494  | --program-transform=* | --program-transfor=* \
495  | --program-transfo=* | --program-transf=* \
496  | --program-trans=* | --program-tran=* \
497  | --progr-tra=* | --program-tr=* | --program-t=*)
498    program_transform_name="$ac_optarg" ;;
499
500  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
501  | -silent | --silent | --silen | --sile | --sil)
502    silent=yes ;;
503
504  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
505    ac_prev=sbindir ;;
506  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
507  | --sbi=* | --sb=*)
508    sbindir="$ac_optarg" ;;
509
510  -sharedstatedir | --sharedstatedir | --sharedstatedi \
511  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
512  | --sharedst | --shareds | --shared | --share | --shar \
513  | --sha | --sh)
514    ac_prev=sharedstatedir ;;
515  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
516  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
517  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
518  | --sha=* | --sh=*)
519    sharedstatedir="$ac_optarg" ;;
520
521  -site | --site | --sit)
522    ac_prev=site ;;
523  -site=* | --site=* | --sit=*)
524    site="$ac_optarg" ;;
525
526  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
527    ac_prev=srcdir ;;
528  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
529    srcdir="$ac_optarg" ;;
530
531  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
532  | --syscon | --sysco | --sysc | --sys | --sy)
533    ac_prev=sysconfdir ;;
534  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
535  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
536    sysconfdir="$ac_optarg" ;;
537
538  -target | --target | --targe | --targ | --tar | --ta | --t)
539    ac_prev=target ;;
540  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
541    target="$ac_optarg" ;;
542
543  -v | -verbose | --verbose | --verbos | --verbo | --verb)
544    verbose=yes ;;
545
546  -version | --version | --versio | --versi | --vers)
547    echo "configure generated by autoconf version 2.13"
548    exit 0 ;;
549
550  -with-* | --with-*)
551    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
552    # Reject names that are not valid shell variable names.
553    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
554      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
555    fi
556    ac_package=`echo $ac_package| sed 's/-/_/g'`
557    case "$ac_option" in
558      *=*) ;;
559      *) ac_optarg=yes ;;
560    esac
561    eval "with_${ac_package}='$ac_optarg'" ;;
562
563  -without-* | --without-*)
564    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
565    # Reject names that are not valid shell variable names.
566    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
567      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
568    fi
569    ac_package=`echo $ac_package| sed 's/-/_/g'`
570    eval "with_${ac_package}=no" ;;
571
572  --x)
573    # Obsolete; use --with-x.
574    with_x=yes ;;
575
576  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
577  | --x-incl | --x-inc | --x-in | --x-i)
578    ac_prev=x_includes ;;
579  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
580  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
581    x_includes="$ac_optarg" ;;
582
583  -x-libraries | --x-libraries | --x-librarie | --x-librari \
584  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
585    ac_prev=x_libraries ;;
586  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
587  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
588    x_libraries="$ac_optarg" ;;
589
590  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
591    ;;
592
593  *)
594    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
595      echo "configure: warning: $ac_option: invalid host type" 1>&2
596    fi
597    if test "x$nonopt" != xNONE; then
598      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
599    fi
600    nonopt="$ac_option"
601    ;;
602
603  esac
604done
605
606if test -n "$ac_prev"; then
607  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
608fi
609
610trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
611
612# File descriptor usage:
613# 0 standard input
614# 1 file creation
615# 2 errors and warnings
616# 3 some systems may open it to /dev/tty
617# 4 used on the Kubota Titan
618# 6 checking for... messages and results
619# 5 compiler messages saved in config.log
620if test "$silent" = yes; then
621  exec 6>/dev/null
622else
623  exec 6>&1
624fi
625exec 5>./config.log
626
627echo "\
628This file contains any messages produced by compilers while
629running configure, to aid debugging if configure makes a mistake.
630" 1>&5
631
632# Strip out --no-create and --no-recursion so they do not pile up.
633# Also quote any args containing shell metacharacters.
634ac_configure_args=
635for ac_arg
636do
637  case "$ac_arg" in
638  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
639  | --no-cr | --no-c) ;;
640  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
641  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
642  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
643  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
644  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
645  esac
646done
647
648# NLS nuisances.
649# Only set these to C if already set.  These must not be set unconditionally
650# because not all systems understand e.g. LANG=C (notably SCO).
651# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
652# Non-C LC_CTYPE values break the ctype check.
653if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
654if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
655if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
656if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
657
658# confdefs.h avoids OS command line length limits that DEFS can exceed.
659rm -rf conftest* confdefs.h
660# AIX cpp loses on an empty file, so make sure it contains at least a newline.
661echo > confdefs.h
662
663# A filename unique to this package, relative to the directory that
664# configure is in, which we can look for to find out if srcdir is correct.
665ac_unique_file=entities.c
666
667# Find the source files, if location was not specified.
668if test -z "$srcdir"; then
669  ac_srcdir_defaulted=yes
670  # Try the directory containing this script, then its parent.
671  ac_prog=$0
672  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
673  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
674  srcdir=$ac_confdir
675  if test ! -r $srcdir/$ac_unique_file; then
676    srcdir=..
677  fi
678else
679  ac_srcdir_defaulted=no
680fi
681if test ! -r $srcdir/$ac_unique_file; then
682  if test "$ac_srcdir_defaulted" = yes; then
683    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
684  else
685    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
686  fi
687fi
688srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
689
690# Prefer explicitly selected file to automatically selected ones.
691if test -z "$CONFIG_SITE"; then
692  if test "x$prefix" != xNONE; then
693    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
694  else
695    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
696  fi
697fi
698for ac_site_file in $CONFIG_SITE; do
699  if test -r "$ac_site_file"; then
700    echo "loading site script $ac_site_file"
701    . "$ac_site_file"
702  fi
703done
704
705if test -r "$cache_file"; then
706  echo "loading cache $cache_file"
707  . $cache_file
708else
709  echo "creating cache $cache_file"
710  > $cache_file
711fi
712
713ac_ext=c
714# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
715ac_cpp='$CPP $CPPFLAGS'
716ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
717ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
718cross_compiling=$ac_cv_prog_cc_cross
719
720ac_exeext=
721ac_objext=o
722if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
723  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
724  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
725    ac_n= ac_c='
726' ac_t='        '
727  else
728    ac_n=-n ac_c= ac_t=
729  fi
730else
731  ac_n= ac_c='\c' ac_t=
732fi
733
734
735
736
737
738ac_aux_dir=
739for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
740  if test -f $ac_dir/install-sh; then
741    ac_aux_dir=$ac_dir
742    ac_install_sh="$ac_aux_dir/install-sh -c"
743    break
744  elif test -f $ac_dir/install.sh; then
745    ac_aux_dir=$ac_dir
746    ac_install_sh="$ac_aux_dir/install.sh -c"
747    break
748  fi
749done
750if test -z "$ac_aux_dir"; then
751  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
752fi
753ac_config_guess=$ac_aux_dir/config.guess
754ac_config_sub=$ac_aux_dir/config.sub
755ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
756
757
758# Make sure we can run config.sub.
759if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
760else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
761fi
762
763echo $ac_n "checking host system type""... $ac_c" 1>&6
764echo "configure:765: checking host system type" >&5
765
766host_alias=$host
767case "$host_alias" in
768NONE)
769  case $nonopt in
770  NONE)
771    if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
772    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
773    fi ;;
774  *) host_alias=$nonopt ;;
775  esac ;;
776esac
777
778host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
779host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
780host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
781host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
782echo "$ac_t""$host" 1>&6
783
784
785LIBXML_MAJOR_VERSION=2
786LIBXML_MINOR_VERSION=4
787LIBXML_MICRO_VERSION=15
788LIBXML_VERSION=$LIBXML_MAJOR_VERSION.$LIBXML_MINOR_VERSION.$LIBXML_MICRO_VERSION
789LIBXML_VERSION_INFO=`expr $LIBXML_MAJOR_VERSION + $LIBXML_MINOR_VERSION`:$LIBXML_MICRO_VERSION:$LIBXML_MINOR_VERSION
790
791LIBXML_VERSION_NUMBER=`expr $LIBXML_MAJOR_VERSION \* 10000 + $LIBXML_MINOR_VERSION \* 100 + $LIBXML_MICRO_VERSION`
792
793
794
795
796
797
798
799
800VERSION=${LIBXML_VERSION}
801
802# Find a good install program.  We prefer a C program (faster),
803# so one script is as good as another.  But avoid the broken or
804# incompatible versions:
805# SysV /etc/install, /usr/sbin/install
806# SunOS /usr/etc/install
807# IRIX /sbin/install
808# AIX /bin/install
809# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
810# AFS /usr/afsws/bin/install, which mishandles nonexistent args
811# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
812# ./install, which can be erroneously created by make from ./install.sh.
813echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
814echo "configure:815: checking for a BSD compatible install" >&5
815if test -z "$INSTALL"; then
816if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
817  echo $ac_n "(cached) $ac_c" 1>&6
818else
819    IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
820  for ac_dir in $PATH; do
821    # Account for people who put trailing slashes in PATH elements.
822    case "$ac_dir/" in
823    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
824    *)
825      # OSF1 and SCO ODT 3.0 have their own names for install.
826      # Don't use installbsd from OSF since it installs stuff as root
827      # by default.
828      for ac_prog in ginstall scoinst install; do
829        if test -f $ac_dir/$ac_prog; then
830          if test $ac_prog = install &&
831            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
832            # AIX install.  It has an incompatible calling convention.
833            :
834          else
835            ac_cv_path_install="$ac_dir/$ac_prog -c"
836            break 2
837          fi
838        fi
839      done
840      ;;
841    esac
842  done
843  IFS="$ac_save_IFS"
844
845fi
846  if test "${ac_cv_path_install+set}" = set; then
847    INSTALL="$ac_cv_path_install"
848  else
849    # As a last resort, use the slow shell script.  We don't cache a
850    # path for INSTALL within a source directory, because that will
851    # break other packages using the cache if that directory is
852    # removed, or if the path is relative.
853    INSTALL="$ac_install_sh"
854  fi
855fi
856echo "$ac_t""$INSTALL" 1>&6
857
858# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
859# It thinks the first close brace ends the variable substitution.
860test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
861
862test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
863
864test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
865
866echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
867echo "configure:868: checking whether build environment is sane" >&5
868# Just in case
869sleep 1
870echo timestamp > conftestfile
871# Do `set' in a subshell so we don't clobber the current shell's
872# arguments.  Must try -L first in case configure is actually a
873# symlink; some systems play weird games with the mod time of symlinks
874# (eg FreeBSD returns the mod time of the symlink's containing
875# directory).
876if (
877   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
878   if test "$*" = "X"; then
879      # -L didn't work.
880      set X `ls -t $srcdir/configure conftestfile`
881   fi
882   if test "$*" != "X $srcdir/configure conftestfile" \
883      && test "$*" != "X conftestfile $srcdir/configure"; then
884
885      # If neither matched, then we have a broken ls.  This can happen
886      # if, for instance, CONFIG_SHELL is bash and it inherits a
887      # broken ls alias from the environment.  This has actually
888      # happened.  Such a system could not be considered "sane".
889      { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
890alias in your environment" 1>&2; exit 1; }
891   fi
892
893   test "$2" = conftestfile
894   )
895then
896   # Ok.
897   :
898else
899   { echo "configure: error: newly created file is older than distributed files!
900Check your system clock" 1>&2; exit 1; }
901fi
902rm -f conftest*
903echo "$ac_t""yes" 1>&6
904if test "$program_transform_name" = s,x,x,; then
905  program_transform_name=
906else
907  # Double any \ or $.  echo might interpret backslashes.
908  cat <<\EOF_SED > conftestsed
909s,\\,\\\\,g; s,\$,$$,g
910EOF_SED
911  program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
912  rm -f conftestsed
913fi
914test "$program_prefix" != NONE &&
915  program_transform_name="s,^,${program_prefix},; $program_transform_name"
916# Use a double $ so make ignores it.
917test "$program_suffix" != NONE &&
918  program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
919
920# sed with no file args requires a program.
921test "$program_transform_name" = "" && program_transform_name="s,x,x,"
922
923echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
924echo "configure:925: checking whether ${MAKE-make} sets \${MAKE}" >&5
925set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
926if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
927  echo $ac_n "(cached) $ac_c" 1>&6
928else
929  cat > conftestmake <<\EOF
930all:
931        @echo 'ac_maketemp="${MAKE}"'
932EOF
933# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
934eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
935if test -n "$ac_maketemp"; then
936  eval ac_cv_prog_make_${ac_make}_set=yes
937else
938  eval ac_cv_prog_make_${ac_make}_set=no
939fi
940rm -f conftestmake
941fi
942if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
943  echo "$ac_t""yes" 1>&6
944  SET_MAKE=
945else
946  echo "$ac_t""no" 1>&6
947  SET_MAKE="MAKE=${MAKE-make}"
948fi
949
950
951PACKAGE=libxml2
952
953VERSION=$VERSION
954
955if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
956  { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
957fi
958cat >> confdefs.h <<EOF
959#define PACKAGE "$PACKAGE"
960EOF
961
962cat >> confdefs.h <<EOF
963#define VERSION "$VERSION"
964EOF
965
966
967
968missing_dir=`cd $ac_aux_dir && pwd`
969echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
970echo "configure:971: checking for working aclocal" >&5
971# Run test in a subshell; some versions of sh will print an error if
972# an executable is not found, even if stderr is redirected.
973# Redirect stdin to placate older versions of autoconf.  Sigh.
974if (aclocal --version) < /dev/null > /dev/null 2>&1; then
975   ACLOCAL=aclocal
976   echo "$ac_t""found" 1>&6
977else
978   ACLOCAL="$missing_dir/missing aclocal"
979   echo "$ac_t""missing" 1>&6
980fi
981
982echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
983echo "configure:984: checking for working autoconf" >&5
984# Run test in a subshell; some versions of sh will print an error if
985# an executable is not found, even if stderr is redirected.
986# Redirect stdin to placate older versions of autoconf.  Sigh.
987if (autoconf --version) < /dev/null > /dev/null 2>&1; then
988   AUTOCONF=autoconf
989   echo "$ac_t""found" 1>&6
990else
991   AUTOCONF="$missing_dir/missing autoconf"
992   echo "$ac_t""missing" 1>&6
993fi
994
995echo $ac_n "checking for working automake""... $ac_c" 1>&6
996echo "configure:997: checking for working automake" >&5
997# Run test in a subshell; some versions of sh will print an error if
998# an executable is not found, even if stderr is redirected.
999# Redirect stdin to placate older versions of autoconf.  Sigh.
1000if (automake --version) < /dev/null > /dev/null 2>&1; then
1001   AUTOMAKE=automake
1002   echo "$ac_t""found" 1>&6
1003else
1004   AUTOMAKE="$missing_dir/missing automake"
1005   echo "$ac_t""missing" 1>&6
1006fi
1007
1008echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1009echo "configure:1010: checking for working autoheader" >&5
1010# Run test in a subshell; some versions of sh will print an error if
1011# an executable is not found, even if stderr is redirected.
1012# Redirect stdin to placate older versions of autoconf.  Sigh.
1013if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1014   AUTOHEADER=autoheader
1015   echo "$ac_t""found" 1>&6
1016else
1017   AUTOHEADER="$missing_dir/missing autoheader"
1018   echo "$ac_t""missing" 1>&6
1019fi
1020
1021echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1022echo "configure:1023: checking for working makeinfo" >&5
1023# Run test in a subshell; some versions of sh will print an error if
1024# an executable is not found, even if stderr is redirected.
1025# Redirect stdin to placate older versions of autoconf.  Sigh.
1026if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1027   MAKEINFO=makeinfo
1028   echo "$ac_t""found" 1>&6
1029else
1030   MAKEINFO="$missing_dir/missing makeinfo"
1031   echo "$ac_t""missing" 1>&6
1032fi
1033
1034
1035
1036# Check whether --with-html-dir or --without-html-dir was given.
1037if test "${with_html_dir+set}" = set; then
1038  withval="$with_html_dir"
1039  :
1040fi
1041
1042
1043# Extract the first word of "gcc", so it can be a program name with args.
1044set dummy gcc; ac_word=$2
1045echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1046echo "configure:1047: checking for $ac_word" >&5
1047if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1048  echo $ac_n "(cached) $ac_c" 1>&6
1049else
1050  if test -n "$CC"; then
1051  ac_cv_prog_CC="$CC" # Let the user override the test.
1052else
1053  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1054  ac_dummy="$PATH"
1055  for ac_dir in $ac_dummy; do
1056    test -z "$ac_dir" && ac_dir=.
1057    if test -f $ac_dir/$ac_word; then
1058      ac_cv_prog_CC="gcc"
1059      break
1060    fi
1061  done
1062  IFS="$ac_save_ifs"
1063fi
1064fi
1065CC="$ac_cv_prog_CC"
1066if test -n "$CC"; then
1067  echo "$ac_t""$CC" 1>&6
1068else
1069  echo "$ac_t""no" 1>&6
1070fi
1071
1072if test -z "$CC"; then
1073  # Extract the first word of "cc", so it can be a program name with args.
1074set dummy cc; ac_word=$2
1075echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1076echo "configure:1077: checking for $ac_word" >&5
1077if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1078  echo $ac_n "(cached) $ac_c" 1>&6
1079else
1080  if test -n "$CC"; then
1081  ac_cv_prog_CC="$CC" # Let the user override the test.
1082else
1083  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1084  ac_prog_rejected=no
1085  ac_dummy="$PATH"
1086  for ac_dir in $ac_dummy; do
1087    test -z "$ac_dir" && ac_dir=.
1088    if test -f $ac_dir/$ac_word; then
1089      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1090        ac_prog_rejected=yes
1091        continue
1092      fi
1093      ac_cv_prog_CC="cc"
1094      break
1095    fi
1096  done
1097  IFS="$ac_save_ifs"
1098if test $ac_prog_rejected = yes; then
1099  # We found a bogon in the path, so make sure we never use it.
1100  set dummy $ac_cv_prog_CC
1101  shift
1102  if test $# -gt 0; then
1103    # We chose a different compiler from the bogus one.
1104    # However, it has the same basename, so the bogon will be chosen
1105    # first if we set CC to just the basename; use the full file name.
1106    shift
1107    set dummy "$ac_dir/$ac_word" "$@"
1108    shift
1109    ac_cv_prog_CC="$@"
1110  fi
1111fi
1112fi
1113fi
1114CC="$ac_cv_prog_CC"
1115if test -n "$CC"; then
1116  echo "$ac_t""$CC" 1>&6
1117else
1118  echo "$ac_t""no" 1>&6
1119fi
1120
1121  if test -z "$CC"; then
1122    case "`uname -s`" in
1123    *win32* | *WIN32*)
1124      # Extract the first word of "cl", so it can be a program name with args.
1125set dummy cl; ac_word=$2
1126echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1127echo "configure:1128: checking for $ac_word" >&5
1128if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1129  echo $ac_n "(cached) $ac_c" 1>&6
1130else
1131  if test -n "$CC"; then
1132  ac_cv_prog_CC="$CC" # Let the user override the test.
1133else
1134  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1135  ac_dummy="$PATH"
1136  for ac_dir in $ac_dummy; do
1137    test -z "$ac_dir" && ac_dir=.
1138    if test -f $ac_dir/$ac_word; then
1139      ac_cv_prog_CC="cl"
1140      break
1141    fi
1142  done
1143  IFS="$ac_save_ifs"
1144fi
1145fi
1146CC="$ac_cv_prog_CC"
1147if test -n "$CC"; then
1148  echo "$ac_t""$CC" 1>&6
1149else
1150  echo "$ac_t""no" 1>&6
1151fi
1152 ;;
1153    esac
1154  fi
1155  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1156fi
1157
1158echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1159echo "configure:1160: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1160
1161ac_ext=c
1162# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1163ac_cpp='$CPP $CPPFLAGS'
1164ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1165ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1166cross_compiling=$ac_cv_prog_cc_cross
1167
1168cat > conftest.$ac_ext << EOF
1169
1170#line 1171 "configure"
1171#include "confdefs.h"
1172
1173main(){return(0);}
1174EOF
1175if { (eval echo configure:1176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1176  ac_cv_prog_cc_works=yes
1177  # If we can't run a trivial program, we are probably using a cross compiler.
1178  if (./conftest; exit) 2>/dev/null; then
1179    ac_cv_prog_cc_cross=no
1180  else
1181    ac_cv_prog_cc_cross=yes
1182  fi
1183else
1184  echo "configure: failed program was:" >&5
1185  cat conftest.$ac_ext >&5
1186  ac_cv_prog_cc_works=no
1187fi
1188rm -fr conftest*
1189ac_ext=c
1190# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1191ac_cpp='$CPP $CPPFLAGS'
1192ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1193ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1194cross_compiling=$ac_cv_prog_cc_cross
1195
1196echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1197if test $ac_cv_prog_cc_works = no; then
1198  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1199fi
1200echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1201echo "configure:1202: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1202echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1203cross_compiling=$ac_cv_prog_cc_cross
1204
1205echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1206echo "configure:1207: checking whether we are using GNU C" >&5
1207if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1208  echo $ac_n "(cached) $ac_c" 1>&6
1209else
1210  cat > conftest.c <<EOF
1211#ifdef __GNUC__
1212  yes;
1213#endif
1214EOF
1215if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1216: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1216  ac_cv_prog_gcc=yes
1217else
1218  ac_cv_prog_gcc=no
1219fi
1220fi
1221
1222echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1223
1224if test $ac_cv_prog_gcc = yes; then
1225  GCC=yes
1226else
1227  GCC=
1228fi
1229
1230ac_test_CFLAGS="${CFLAGS+set}"
1231ac_save_CFLAGS="$CFLAGS"
1232CFLAGS=
1233echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1234echo "configure:1235: checking whether ${CC-cc} accepts -g" >&5
1235if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1236  echo $ac_n "(cached) $ac_c" 1>&6
1237else
1238  echo 'void f(){}' > conftest.c
1239if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1240  ac_cv_prog_cc_g=yes
1241else
1242  ac_cv_prog_cc_g=no
1243fi
1244rm -f conftest*
1245
1246fi
1247
1248echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1249if test "$ac_test_CFLAGS" = set; then
1250  CFLAGS="$ac_save_CFLAGS"
1251elif test $ac_cv_prog_cc_g = yes; then
1252  if test "$GCC" = yes; then
1253    CFLAGS="-g -O2"
1254  else
1255    CFLAGS="-g"
1256  fi
1257else
1258  if test "$GCC" = yes; then
1259    CFLAGS="-O2"
1260  else
1261    CFLAGS=
1262  fi
1263fi
1264
1265# Find a good install program.  We prefer a C program (faster),
1266# so one script is as good as another.  But avoid the broken or
1267# incompatible versions:
1268# SysV /etc/install, /usr/sbin/install
1269# SunOS /usr/etc/install
1270# IRIX /sbin/install
1271# AIX /bin/install
1272# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1273# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1274# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1275# ./install, which can be erroneously created by make from ./install.sh.
1276echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1277echo "configure:1278: checking for a BSD compatible install" >&5
1278if test -z "$INSTALL"; then
1279if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1280  echo $ac_n "(cached) $ac_c" 1>&6
1281else
1282    IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
1283  for ac_dir in $PATH; do
1284    # Account for people who put trailing slashes in PATH elements.
1285    case "$ac_dir/" in
1286    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1287    *)
1288      # OSF1 and SCO ODT 3.0 have their own names for install.
1289      # Don't use installbsd from OSF since it installs stuff as root
1290      # by default.
1291      for ac_prog in ginstall scoinst install; do
1292        if test -f $ac_dir/$ac_prog; then
1293          if test $ac_prog = install &&
1294            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1295            # AIX install.  It has an incompatible calling convention.
1296            :
1297          else
1298            ac_cv_path_install="$ac_dir/$ac_prog -c"
1299            break 2
1300          fi
1301        fi
1302      done
1303      ;;
1304    esac
1305  done
1306  IFS="$ac_save_IFS"
1307
1308fi
1309  if test "${ac_cv_path_install+set}" = set; then
1310    INSTALL="$ac_cv_path_install"
1311  else
1312    # As a last resort, use the slow shell script.  We don't cache a
1313    # path for INSTALL within a source directory, because that will
1314    # break other packages using the cache if that directory is
1315    # removed, or if the path is relative.
1316    INSTALL="$ac_install_sh"
1317  fi
1318fi
1319echo "$ac_t""$INSTALL" 1>&6
1320
1321# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1322# It thinks the first close brace ends the variable substitution.
1323test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1324
1325test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1326
1327test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1328
1329echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1330echo "configure:1331: checking how to run the C preprocessor" >&5
1331# On Suns, sometimes $CPP names a directory.
1332if test -n "$CPP" && test -d "$CPP"; then
1333  CPP=
1334fi
1335if test -z "$CPP"; then
1336if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1337  echo $ac_n "(cached) $ac_c" 1>&6
1338else
1339    # This must be in double quotes, not single quotes, because CPP may get
1340  # substituted into the Makefile and "${CC-cc}" will confuse make.
1341  CPP="${CC-cc} -E"
1342  # On the NeXT, cc -E runs the code through the compiler's parser,
1343  # not just through cpp.
1344  cat > conftest.$ac_ext <<EOF
1345#line 1346 "configure"
1346#include "confdefs.h"
1347#include <assert.h>
1348Syntax Error
1349EOF
1350ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1351{ (eval echo configure:1352: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1352ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1353if test -z "$ac_err"; then
1354  :
1355else
1356  echo "$ac_err" >&5
1357  echo "configure: failed program was:" >&5
1358  cat conftest.$ac_ext >&5
1359  rm -rf conftest*
1360  CPP="${CC-cc} -E -traditional-cpp"
1361  cat > conftest.$ac_ext <<EOF
1362#line 1363 "configure"
1363#include "confdefs.h"
1364#include <assert.h>
1365Syntax Error
1366EOF
1367ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1368{ (eval echo configure:1369: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1369ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1370if test -z "$ac_err"; then
1371  :
1372else
1373  echo "$ac_err" >&5
1374  echo "configure: failed program was:" >&5
1375  cat conftest.$ac_ext >&5
1376  rm -rf conftest*
1377  CPP="${CC-cc} -nologo -E"
1378  cat > conftest.$ac_ext <<EOF
1379#line 1380 "configure"
1380#include "confdefs.h"
1381#include <assert.h>
1382Syntax Error
1383EOF
1384ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1385{ (eval echo configure:1386: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1386ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1387if test -z "$ac_err"; then
1388  :
1389else
1390  echo "$ac_err" >&5
1391  echo "configure: failed program was:" >&5
1392  cat conftest.$ac_ext >&5
1393  rm -rf conftest*
1394  CPP=/lib/cpp
1395fi
1396rm -f conftest*
1397fi
1398rm -f conftest*
1399fi
1400rm -f conftest*
1401  ac_cv_prog_CPP="$CPP"
1402fi
1403  CPP="$ac_cv_prog_CPP"
1404else
1405  ac_cv_prog_CPP="$CPP"
1406fi
1407echo "$ac_t""$CPP" 1>&6
1408
1409# Extract the first word of "rm", so it can be a program name with args.
1410set dummy rm; ac_word=$2
1411echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1412echo "configure:1413: checking for $ac_word" >&5
1413if eval "test \"`echo '$''{'ac_cv_path_RM'+set}'`\" = set"; then
1414  echo $ac_n "(cached) $ac_c" 1>&6
1415else
1416  case "$RM" in
1417  /*)
1418  ac_cv_path_RM="$RM" # Let the user override the test with a path.
1419  ;;
1420  ?:/*)                 
1421  ac_cv_path_RM="$RM" # Let the user override the test with a dos path.
1422  ;;
1423  *)
1424  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1425  ac_dummy="$PATH"
1426  for ac_dir in $ac_dummy; do
1427    test -z "$ac_dir" && ac_dir=.
1428    if test -f $ac_dir/$ac_word; then
1429      ac_cv_path_RM="$ac_dir/$ac_word"
1430      break
1431    fi
1432  done
1433  IFS="$ac_save_ifs"
1434  test -z "$ac_cv_path_RM" && ac_cv_path_RM="/bin/rm"
1435  ;;
1436esac
1437fi
1438RM="$ac_cv_path_RM"
1439if test -n "$RM"; then
1440  echo "$ac_t""$RM" 1>&6
1441else
1442  echo "$ac_t""no" 1>&6
1443fi
1444
1445# Extract the first word of "mv", so it can be a program name with args.
1446set dummy mv; ac_word=$2
1447echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1448echo "configure:1449: checking for $ac_word" >&5
1449if eval "test \"`echo '$''{'ac_cv_path_MV'+set}'`\" = set"; then
1450  echo $ac_n "(cached) $ac_c" 1>&6
1451else
1452  case "$MV" in
1453  /*)
1454  ac_cv_path_MV="$MV" # Let the user override the test with a path.
1455  ;;
1456  ?:/*)                 
1457  ac_cv_path_MV="$MV" # Let the user override the test with a dos path.
1458  ;;
1459  *)
1460  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1461  ac_dummy="$PATH"
1462  for ac_dir in $ac_dummy; do
1463    test -z "$ac_dir" && ac_dir=.
1464    if test -f $ac_dir/$ac_word; then
1465      ac_cv_path_MV="$ac_dir/$ac_word"
1466      break
1467    fi
1468  done
1469  IFS="$ac_save_ifs"
1470  test -z "$ac_cv_path_MV" && ac_cv_path_MV="/bin/mv"
1471  ;;
1472esac
1473fi
1474MV="$ac_cv_path_MV"
1475if test -n "$MV"; then
1476  echo "$ac_t""$MV" 1>&6
1477else
1478  echo "$ac_t""no" 1>&6
1479fi
1480
1481# Extract the first word of "tar", so it can be a program name with args.
1482set dummy tar; ac_word=$2
1483echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1484echo "configure:1485: checking for $ac_word" >&5
1485if eval "test \"`echo '$''{'ac_cv_path_TAR'+set}'`\" = set"; then
1486  echo $ac_n "(cached) $ac_c" 1>&6
1487else
1488  case "$TAR" in
1489  /*)
1490  ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
1491  ;;
1492  ?:/*)                 
1493  ac_cv_path_TAR="$TAR" # Let the user override the test with a dos path.
1494  ;;
1495  *)
1496  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1497  ac_dummy="$PATH"
1498  for ac_dir in $ac_dummy; do
1499    test -z "$ac_dir" && ac_dir=.
1500    if test -f $ac_dir/$ac_word; then
1501      ac_cv_path_TAR="$ac_dir/$ac_word"
1502      break
1503    fi
1504  done
1505  IFS="$ac_save_ifs"
1506  test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="/bin/tar"
1507  ;;
1508esac
1509fi
1510TAR="$ac_cv_path_TAR"
1511if test -n "$TAR"; then
1512  echo "$ac_t""$TAR" 1>&6
1513else
1514  echo "$ac_t""no" 1>&6
1515fi
1516
1517
1518
1519
1520
1521echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
1522echo "configure:1523: checking for ${CC-cc} option to accept ANSI C" >&5
1523if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
1524  echo $ac_n "(cached) $ac_c" 1>&6
1525else
1526  am_cv_prog_cc_stdc=no
1527ac_save_CC="$CC"
1528# Don't try gcc -ansi; that turns off useful extensions and
1529# breaks some systems' header files.
1530# AIX                   -qlanglvl=ansi
1531# Ultrix and OSF/1      -std1
1532# HP-UX                 -Aa -D_HPUX_SOURCE
1533# SVR4                  -Xc -D__EXTENSIONS__
1534for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1535do
1536  CC="$ac_save_CC $ac_arg"
1537  cat > conftest.$ac_ext <<EOF
1538#line 1539 "configure"
1539#include "confdefs.h"
1540#include <stdarg.h>
1541#include <stdio.h>
1542#include <sys/types.h>
1543#include <sys/stat.h>
1544/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
1545struct buf { int x; };
1546FILE * (*rcsopen) (struct buf *, struct stat *, int);
1547static char *e (p, i)
1548     char **p;
1549     int i;
1550{
1551  return p[i];
1552}
1553static char *f (char * (*g) (char **, int), char **p, ...)
1554{
1555  char *s;
1556  va_list v;
1557  va_start (v,p);
1558  s = g (p, va_arg (v,int));
1559  va_end (v);
1560  return s;
1561}
1562int test (int i, double x);
1563struct s1 {int (*f) (int a);};
1564struct s2 {int (*f) (double a);};
1565int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1566int argc;
1567char **argv;
1568
1569int main() {
1570
1571return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
1572
1573; return 0; }
1574EOF
1575if { (eval echo configure:1576: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1576  rm -rf conftest*
1577  am_cv_prog_cc_stdc="$ac_arg"; break
1578else
1579  echo "configure: failed program was:" >&5
1580  cat conftest.$ac_ext >&5
1581fi
1582rm -f conftest*
1583done
1584CC="$ac_save_CC"
1585
1586fi
1587
1588if test -z "$am_cv_prog_cc_stdc"; then
1589  echo "$ac_t""none needed" 1>&6
1590else
1591  echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
1592fi
1593case "x$am_cv_prog_cc_stdc" in
1594  x|xno) ;;
1595  *) CC="$CC $am_cv_prog_cc_stdc" ;;
1596esac
1597
1598
1599
1600echo $ac_n "checking for function prototypes""... $ac_c" 1>&6
1601echo "configure:1602: checking for function prototypes" >&5
1602if test "$am_cv_prog_cc_stdc" != no; then
1603  echo "$ac_t""yes" 1>&6
1604  cat >> confdefs.h <<\EOF
1605#define PROTOTYPES 1
1606EOF
1607
1608  U= ANSI2KNR=
1609else
1610  echo "$ac_t""no" 1>&6
1611  U=_ ANSI2KNR=./ansi2knr
1612  # Ensure some checks needed by ansi2knr itself.
1613  echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1614echo "configure:1615: checking for ANSI C header files" >&5
1615if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1616  echo $ac_n "(cached) $ac_c" 1>&6
1617else
1618  cat > conftest.$ac_ext <<EOF
1619#line 1620 "configure"
1620#include "confdefs.h"
1621#include <stdlib.h>
1622#include <stdarg.h>
1623#include <string.h>
1624#include <float.h>
1625EOF
1626ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1627{ (eval echo configure:1628: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1628ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1629if test -z "$ac_err"; then
1630  rm -rf conftest*
1631  ac_cv_header_stdc=yes
1632else
1633  echo "$ac_err" >&5
1634  echo "configure: failed program was:" >&5
1635  cat conftest.$ac_ext >&5
1636  rm -rf conftest*
1637  ac_cv_header_stdc=no
1638fi
1639rm -f conftest*
1640
1641if test $ac_cv_header_stdc = yes; then
1642  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1643cat > conftest.$ac_ext <<EOF
1644#line 1645 "configure"
1645#include "confdefs.h"
1646#include <string.h>
1647EOF
1648if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1649  egrep "memchr" >/dev/null 2>&1; then
1650  :
1651else
1652  rm -rf conftest*
1653  ac_cv_header_stdc=no
1654fi
1655rm -f conftest*
1656
1657fi
1658
1659if test $ac_cv_header_stdc = yes; then
1660  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1661cat > conftest.$ac_ext <<EOF
1662#line 1663 "configure"
1663#include "confdefs.h"
1664#include <stdlib.h>
1665EOF
1666if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1667  egrep "free" >/dev/null 2>&1; then
1668  :
1669else
1670  rm -rf conftest*
1671  ac_cv_header_stdc=no
1672fi
1673rm -f conftest*
1674
1675fi
1676
1677if test $ac_cv_header_stdc = yes; then
1678  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1679if test "$cross_compiling" = yes; then
1680  :
1681else
1682  cat > conftest.$ac_ext <<EOF
1683#line 1684 "configure"
1684#include "confdefs.h"
1685#include <ctype.h>
1686#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1687#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1688#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1689int main () { int i; for (i = 0; i < 256; i++)
1690if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1691exit (0); }
1692
1693EOF
1694if { (eval echo configure:1695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1695then
1696  :
1697else
1698  echo "configure: failed program was:" >&5
1699  cat conftest.$ac_ext >&5
1700  rm -fr conftest*
1701  ac_cv_header_stdc=no
1702fi
1703rm -fr conftest*
1704fi
1705
1706fi
1707fi
1708
1709echo "$ac_t""$ac_cv_header_stdc" 1>&6
1710if test $ac_cv_header_stdc = yes; then
1711  cat >> confdefs.h <<\EOF
1712#define STDC_HEADERS 1
1713EOF
1714
1715fi
1716
1717  for ac_hdr in string.h
1718do
1719ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1720echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1721echo "configure:1722: checking for $ac_hdr" >&5
1722if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1723  echo $ac_n "(cached) $ac_c" 1>&6
1724else
1725  cat > conftest.$ac_ext <<EOF
1726#line 1727 "configure"
1727#include "confdefs.h"
1728#include <$ac_hdr>
1729EOF
1730ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1731{ (eval echo configure:1732: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1732ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1733if test -z "$ac_err"; then
1734  rm -rf conftest*
1735  eval "ac_cv_header_$ac_safe=yes"
1736else
1737  echo "$ac_err" >&5
1738  echo "configure: failed program was:" >&5
1739  cat conftest.$ac_ext >&5
1740  rm -rf conftest*
1741  eval "ac_cv_header_$ac_safe=no"
1742fi
1743rm -f conftest*
1744fi
1745if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1746  echo "$ac_t""yes" 1>&6
1747    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1748  cat >> confdefs.h <<EOF
1749#define $ac_tr_hdr 1
1750EOF
1751 
1752else
1753  echo "$ac_t""no" 1>&6
1754fi
1755done
1756
1757fi
1758
1759test "x$U" != "x" && { echo "configure: error: Compiler not ANSI compliant" 1>&2; exit 1; }
1760
1761echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
1762echo "configure:1763: checking for Cygwin environment" >&5
1763if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
1764  echo $ac_n "(cached) $ac_c" 1>&6
1765else
1766  cat > conftest.$ac_ext <<EOF
1767#line 1768 "configure"
1768#include "confdefs.h"
1769
1770int main() {
1771
1772#ifndef __CYGWIN__
1773#define __CYGWIN__ __CYGWIN32__
1774#endif
1775return __CYGWIN__;
1776; return 0; }
1777EOF
1778if { (eval echo configure:1779: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1779  rm -rf conftest*
1780  ac_cv_cygwin=yes
1781else
1782  echo "configure: failed program was:" >&5
1783  cat conftest.$ac_ext >&5
1784  rm -rf conftest*
1785  ac_cv_cygwin=no
1786fi
1787rm -f conftest*
1788rm -f conftest*
1789fi
1790
1791echo "$ac_t""$ac_cv_cygwin" 1>&6
1792CYGWIN=
1793test "$ac_cv_cygwin" = yes && CYGWIN=yes
1794echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1795echo "configure:1796: checking for mingw32 environment" >&5
1796if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1797  echo $ac_n "(cached) $ac_c" 1>&6
1798else
1799  cat > conftest.$ac_ext <<EOF
1800#line 1801 "configure"
1801#include "confdefs.h"
1802
1803int main() {
1804return __MINGW32__;
1805; return 0; }
1806EOF
1807if { (eval echo configure:1808: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1808  rm -rf conftest*
1809  ac_cv_mingw32=yes
1810else
1811  echo "configure: failed program was:" >&5
1812  cat conftest.$ac_ext >&5
1813  rm -rf conftest*
1814  ac_cv_mingw32=no
1815fi
1816rm -f conftest*
1817rm -f conftest*
1818fi
1819
1820echo "$ac_t""$ac_cv_mingw32" 1>&6
1821MINGW32=
1822test "$ac_cv_mingw32" = yes && MINGW32=yes
1823# Check whether --enable-shared or --disable-shared was given.
1824if test "${enable_shared+set}" = set; then
1825  enableval="$enable_shared"
1826  p=${PACKAGE-default}
1827case $enableval in
1828yes) enable_shared=yes ;;
1829no) enable_shared=no ;;
1830*)
1831  enable_shared=no
1832  # Look at the argument we got.  We use all the common list separators.
1833  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1834  for pkg in $enableval; do
1835    if test "X$pkg" = "X$p"; then
1836      enable_shared=yes
1837    fi
1838  done
1839  IFS="$ac_save_ifs"
1840  ;;
1841esac
1842else
1843  enable_shared=yes
1844fi
1845
1846# Check whether --enable-static or --disable-static was given.
1847if test "${enable_static+set}" = set; then
1848  enableval="$enable_static"
1849  p=${PACKAGE-default}
1850case $enableval in
1851yes) enable_static=yes ;;
1852no) enable_static=no ;;
1853*)
1854  enable_static=no
1855  # Look at the argument we got.  We use all the common list separators.
1856  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1857  for pkg in $enableval; do
1858    if test "X$pkg" = "X$p"; then
1859      enable_static=yes
1860    fi
1861  done
1862  IFS="$ac_save_ifs"
1863  ;;
1864esac
1865else
1866  enable_static=yes
1867fi
1868
1869# Check whether --enable-fast-install or --disable-fast-install was given.
1870if test "${enable_fast_install+set}" = set; then
1871  enableval="$enable_fast_install"
1872  p=${PACKAGE-default}
1873case $enableval in
1874yes) enable_fast_install=yes ;;
1875no) enable_fast_install=no ;;
1876*)
1877  enable_fast_install=no
1878  # Look at the argument we got.  We use all the common list separators.
1879  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1880  for pkg in $enableval; do
1881    if test "X$pkg" = "X$p"; then
1882      enable_fast_install=yes
1883    fi
1884  done
1885  IFS="$ac_save_ifs"
1886  ;;
1887esac
1888else
1889  enable_fast_install=yes
1890fi
1891
1892echo $ac_n "checking build system type""... $ac_c" 1>&6
1893echo "configure:1894: checking build system type" >&5
1894
1895build_alias=$build
1896case "$build_alias" in
1897NONE)
1898  case $nonopt in
1899  NONE) build_alias=$host_alias ;;
1900  *) build_alias=$nonopt ;;
1901  esac ;;
1902esac
1903
1904build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1905build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1906build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1907build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1908echo "$ac_t""$build" 1>&6
1909
1910# Check whether --with-gnu-ld or --without-gnu-ld was given.
1911if test "${with_gnu_ld+set}" = set; then
1912  withval="$with_gnu_ld"
1913  test "$withval" = no || with_gnu_ld=yes
1914else
1915  with_gnu_ld=no
1916fi
1917
1918ac_prog=ld
1919if test "$GCC" = yes; then
1920  # Check if gcc -print-prog-name=ld gives a path.
1921  echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1922echo "configure:1923: checking for ld used by GCC" >&5
1923  case $host in
1924  *-*-mingw*)
1925    # gcc leaves a trailing carriage return which upsets mingw
1926    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1927  *)
1928    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1929  esac
1930  case $ac_prog in
1931    # Accept absolute paths.
1932    [\\/]* | [A-Za-z]:[\\/]*)
1933      re_direlt='/[^/][^/]*/\.\./'
1934      # Canonicalize the path of ld
1935      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1936      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1937        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1938      done
1939      test -z "$LD" && LD="$ac_prog"
1940      ;;
1941  "")
1942    # If it fails, then pretend we aren't using GCC.
1943    ac_prog=ld
1944    ;;
1945  *)
1946    # If it is relative, then search for the first ld in PATH.
1947    with_gnu_ld=unknown
1948    ;;
1949  esac
1950elif test "$with_gnu_ld" = yes; then
1951  echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1952echo "configure:1953: checking for GNU ld" >&5
1953else
1954  echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1955echo "configure:1956: checking for non-GNU ld" >&5
1956fi
1957if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1958  echo $ac_n "(cached) $ac_c" 1>&6
1959else
1960  if test -z "$LD"; then
1961  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1962  for ac_dir in $PATH; do
1963    test -z "$ac_dir" && ac_dir=.
1964    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1965      lt_cv_path_LD="$ac_dir/$ac_prog"
1966      # Check to see if the program is GNU ld.  I'd rather use --version,
1967      # but apparently some GNU ld's only accept -v.
1968      # Break only if it was the GNU/non-GNU ld that we prefer.
1969      if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1970        test "$with_gnu_ld" != no && break
1971      else
1972        test "$with_gnu_ld" != yes && break
1973      fi
1974    fi
1975  done
1976  IFS="$ac_save_ifs"
1977else
1978  lt_cv_path_LD="$LD" # Let the user override the test with a path.
1979fi
1980fi
1981
1982LD="$lt_cv_path_LD"
1983if test -n "$LD"; then
1984  echo "$ac_t""$LD" 1>&6
1985else
1986  echo "$ac_t""no" 1>&6
1987fi
1988test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1989echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1990echo "configure:1991: checking if the linker ($LD) is GNU ld" >&5
1991if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1992  echo $ac_n "(cached) $ac_c" 1>&6
1993else
1994  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1995if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1996  lt_cv_prog_gnu_ld=yes
1997else
1998  lt_cv_prog_gnu_ld=no
1999fi
2000fi
2001
2002echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
2003with_gnu_ld=$lt_cv_prog_gnu_ld
2004
2005
2006echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
2007echo "configure:2008: checking for $LD option to reload object files" >&5
2008if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
2009  echo $ac_n "(cached) $ac_c" 1>&6
2010else
2011  lt_cv_ld_reload_flag='-r'
2012fi
2013
2014echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
2015reload_flag=$lt_cv_ld_reload_flag
2016test -n "$reload_flag" && reload_flag=" $reload_flag"
2017
2018echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
2019echo "configure:2020: checking for BSD-compatible nm" >&5
2020if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
2021  echo $ac_n "(cached) $ac_c" 1>&6
2022else
2023  if test -n "$NM"; then
2024  # Let the user override the test.
2025  lt_cv_path_NM="$NM"
2026else
2027  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2028  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2029    test -z "$ac_dir" && ac_dir=.
2030    tmp_nm=$ac_dir/${ac_tool_prefix}nm
2031    if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
2032      # Check to see if the nm accepts a BSD-compat flag.
2033      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2034      #   nm: unknown option "B" ignored
2035      # Tru64's nm complains that /dev/null is an invalid object file
2036      if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
2037        lt_cv_path_NM="$tmp_nm -B"
2038        break
2039      elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2040        lt_cv_path_NM="$tmp_nm -p"
2041        break
2042      else
2043        lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2044        continue # so that we can try to find one that supports BSD flags
2045      fi
2046    fi
2047  done
2048  IFS="$ac_save_ifs"
2049  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2050fi
2051fi
2052
2053NM="$lt_cv_path_NM"
2054echo "$ac_t""$NM" 1>&6
2055
2056echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2057echo "configure:2058: checking whether ln -s works" >&5
2058if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2059  echo $ac_n "(cached) $ac_c" 1>&6
2060else
2061  rm -f conftestdata
2062if ln -s X conftestdata 2>/dev/null
2063then
2064  rm -f conftestdata
2065  ac_cv_prog_LN_S="ln -s"
2066else
2067  ac_cv_prog_LN_S=ln
2068fi
2069fi
2070LN_S="$ac_cv_prog_LN_S"
2071if test "$ac_cv_prog_LN_S" = "ln -s"; then
2072  echo "$ac_t""yes" 1>&6
2073else
2074  echo "$ac_t""no" 1>&6
2075fi
2076
2077echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
2078echo "configure:2079: checking how to recognise dependant libraries" >&5
2079if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
2080  echo $ac_n "(cached) $ac_c" 1>&6
2081else
2082  lt_cv_file_magic_cmd='$MAGIC_CMD'
2083lt_cv_file_magic_test_file=
2084lt_cv_deplibs_check_method='unknown'
2085# Need to set the preceding variable on all platforms that support
2086# interlibrary dependencies.
2087# 'none' -- dependencies not supported.
2088# `unknown' -- same as none, but documents that we really don't know.
2089# 'pass_all' -- all dependencies passed with no checks.
2090# 'test_compile' -- check by making test program.
2091# ['file_magic [regex]'] -- check by looking for files in library path
2092# which responds to the $file_magic_cmd with a given egrep regex.
2093# If you have `file' or equivalent on your system and you're not sure
2094# whether `pass_all' will *always* work, you probably want this one.
2095
2096case $host_os in
2097aix4* | aix5*)
2098  lt_cv_deplibs_check_method=pass_all
2099  ;;
2100
2101beos*)
2102  lt_cv_deplibs_check_method=pass_all
2103  ;;
2104
2105bsdi4*)
2106  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
2107  lt_cv_file_magic_cmd='/usr/bin/file -L'
2108  lt_cv_file_magic_test_file=/shlib/libc.so
2109  ;;
2110
2111cygwin* | mingw* | pw32*)
2112  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2113  lt_cv_file_magic_cmd='$OBJDUMP -f'
2114  ;;
2115
2116darwin* | rhapsody*)
2117  lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
2118  lt_cv_file_magic_cmd='/usr/bin/file -L'
2119  case "$host_os" in
2120  rhapsody* | darwin1.012)
2121    lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
2122    ;;
2123  *) # Darwin 1.3 on
2124    lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
2125    ;;
2126  esac
2127  ;;
2128
2129freebsd*)
2130  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2131    case $host_cpu in
2132    i*86 )
2133      # Not sure whether the presence of OpenBSD here was a mistake.
2134      # Let's accept both of them until this is cleared up.
2135      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
2136      lt_cv_file_magic_cmd=/usr/bin/file
2137      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2138      ;;
2139    esac
2140  else
2141    lt_cv_deplibs_check_method=pass_all
2142  fi
2143  ;;
2144
2145gnu*)
2146  lt_cv_deplibs_check_method=pass_all
2147  ;;
2148
2149hpux10.20*|hpux11*)
2150  lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2151  lt_cv_file_magic_cmd=/usr/bin/file
2152  lt_cv_file_magic_test_file=/usr/lib/libc.sl
2153  ;;
2154
2155irix5* | irix6*)
2156  case $host_os in
2157  irix5*)
2158    # this will be overridden with pass_all, but let us keep it just in case
2159    lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2160    ;;
2161  *)
2162    case $LD in
2163    *-32|*"-32 ") libmagic=32-bit;;
2164    *-n32|*"-n32 ") libmagic=N32;;
2165    *-64|*"-64 ") libmagic=64-bit;;
2166    *) libmagic=never-match;;
2167    esac
2168    # this will be overridden with pass_all, but let us keep it just in case
2169    lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2170    ;;
2171  esac
2172  lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2173  lt_cv_deplibs_check_method=pass_all
2174  ;;
2175
2176# This must be Linux ELF.
2177linux-gnu*)
2178  case $host_cpu in
2179  alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* | s390* )
2180    lt_cv_deplibs_check_method=pass_all ;;
2181  *)
2182    # glibc up to 2.1.1 does not perform some relocations on ARM
2183    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2184  esac
2185  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2186  ;;
2187
2188netbsd*)
2189  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2190    lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2191  else
2192    lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2193  fi
2194  ;;
2195
2196newos6*)
2197  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2198  lt_cv_file_magic_cmd=/usr/bin/file
2199  lt_cv_file_magic_test_file=/usr/lib/libnls.so
2200  ;;
2201
2202osf3* | osf4* | osf5*)
2203  # this will be overridden with pass_all, but let us keep it just in case
2204  lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2205  lt_cv_file_magic_test_file=/shlib/libc.so
2206  lt_cv_deplibs_check_method=pass_all
2207  ;;
2208
2209sco3.2v5*)
2210  lt_cv_deplibs_check_method=pass_all
2211  ;;
2212
2213solaris*)
2214  lt_cv_deplibs_check_method=pass_all
2215  lt_cv_file_magic_test_file=/lib/libc.so
2216  ;;
2217
2218sysv5uw[78]* | sysv4*uw2*)
2219  lt_cv_deplibs_check_method=pass_all
2220  ;;
2221
2222sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2223  case $host_vendor in
2224  motorola)
2225    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]'
2226    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2227    ;;
2228  ncr)
2229    lt_cv_deplibs_check_method=pass_all
2230    ;;
2231  sequent)
2232    lt_cv_file_magic_cmd='/bin/file'
2233    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
2234    ;;
2235  sni)
2236    lt_cv_file_magic_cmd='/bin/file'
2237    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
2238    lt_cv_file_magic_test_file=/lib/libc.so
2239    ;;
2240  esac
2241  ;;
2242esac
2243
2244fi
2245
2246echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2247file_magic_cmd=$lt_cv_file_magic_cmd
2248deplibs_check_method=$lt_cv_deplibs_check_method
2249
2250echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2251echo "configure:2252: checking for object suffix" >&5
2252if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2253  echo $ac_n "(cached) $ac_c" 1>&6
2254else
2255  rm -f conftest*
2256echo 'int i = 1;' > conftest.$ac_ext
2257if { (eval echo configure:2258: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2258  for ac_file in conftest.*; do
2259    case $ac_file in
2260    *.c) ;;
2261    *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2262    esac
2263  done
2264else
2265  { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2266fi
2267rm -f conftest*
2268fi
2269
2270echo "$ac_t""$ac_cv_objext" 1>&6
2271OBJEXT=$ac_cv_objext
2272ac_objext=$ac_cv_objext
2273
2274
2275
2276echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
2277echo "configure:2278: checking for executable suffix" >&5
2278if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
2279  echo $ac_n "(cached) $ac_c" 1>&6
2280else
2281  if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
2282  ac_cv_exeext=.exe
2283else
2284  rm -f conftest*
2285  echo 'int main () { return 0; }' > conftest.$ac_ext
2286  ac_cv_exeext=
2287  if { (eval echo configure:2288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2288    for file in conftest.*; do
2289      case $file in
2290      *.c | *.o | *.obj) ;;
2291      *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
2292      esac
2293    done
2294  else
2295    { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
2296  fi
2297  rm -f conftest*
2298  test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
2299fi
2300fi
2301
2302EXEEXT=""
2303test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
2304echo "$ac_t""${ac_cv_exeext}" 1>&6
2305ac_exeext=$EXEEXT
2306
2307if test $host != $build; then
2308  ac_tool_prefix=${host_alias}-
2309else
2310  ac_tool_prefix=
2311fi
2312
2313
2314
2315
2316# Check for command to grab the raw symbol name followed by C symbol from nm.
2317echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
2318echo "configure:2319: checking command to parse $NM output" >&5
2319if eval "test \"`echo '$''{'lt_cv_sys_global_symbol_pipe'+set}'`\" = set"; then
2320  echo $ac_n "(cached) $ac_c" 1>&6
2321else
2322 
2323# These are sane defaults that work on at least a few old systems.
2324# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
2325
2326# Character class describing NM global symbol codes.
2327symcode='[BCDEGRST]'
2328
2329# Regexp to match symbols that can be accessed directly from C.
2330sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
2331
2332# Transform the above into a raw symbol and a C symbol.
2333symxfrm='\1 \2\3 \3'
2334
2335# Transform an extracted symbol line into a proper C declaration
2336lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
2337
2338# Define system-specific variables.
2339case $host_os in
2340aix*)
2341  symcode='[BCDT]'
2342  ;;
2343cygwin* | mingw* | pw32*)
2344  symcode='[ABCDGISTW]'
2345  ;;
2346hpux*) # Its linker distinguishes data from code symbols
2347  lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
2348  ;;
2349irix*)
2350  symcode='[BCDEGRST]'
2351  ;;
2352solaris* | sysv5*)
2353  symcode='[BDT]'
2354  ;;
2355sysv4)
2356  symcode='[DFNSTU]'
2357  ;;
2358esac
2359
2360# Handle CRLF in mingw tool chain
2361opt_cr=
2362case $host_os in
2363mingw*)
2364  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
2365  ;;
2366esac
2367
2368# If we're using GNU nm, then use its standard symbol codes.
2369if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
2370  symcode='[ABCDGISTW]'
2371fi
2372
2373# Try without a prefix undercore, then with it.
2374for ac_symprfx in "" "_"; do
2375
2376  # Write the raw and C identifiers.
2377lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[         ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
2378
2379  # Check to see that the pipe works correctly.
2380  pipe_works=no
2381  rm -f conftest*
2382  cat > conftest.$ac_ext <<EOF
2383#ifdef __cplusplus
2384extern "C" {
2385#endif
2386char nm_test_var;
2387void nm_test_func(){}
2388#ifdef __cplusplus
2389}
2390#endif
2391int main(){nm_test_var='a';nm_test_func();return(0);}
2392EOF
2393
2394  if { (eval echo configure:2395: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2395    # Now try to grab the symbols.
2396    nlist=conftest.nm
2397    if { (eval echo configure:2398: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\") 1>&5; (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5; } && test -s "$nlist"; then
2398      # Try sorting and uniquifying the output.
2399      if sort "$nlist" | uniq > "$nlist"T; then
2400        mv -f "$nlist"T "$nlist"
2401      else
2402        rm -f "$nlist"T
2403      fi
2404
2405      # Make sure that we snagged all the symbols we need.
2406      if egrep ' nm_test_var$' "$nlist" >/dev/null; then
2407        if egrep ' nm_test_func$' "$nlist" >/dev/null; then
2408          cat <<EOF > conftest.$ac_ext
2409#ifdef __cplusplus
2410extern "C" {
2411#endif
2412
2413EOF
2414          # Now generate the symbol file.
2415          eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
2416
2417          cat <<EOF >> conftest.$ac_ext
2418#if defined (__STDC__) && __STDC__
2419# define lt_ptr_t void *
2420#else
2421# define lt_ptr_t char *
2422# define const
2423#endif
2424
2425/* The mapping between symbol names and symbols. */
2426const struct {
2427  const char *name;
2428  lt_ptr_t address;
2429}
2430lt_preloaded_symbols[] =
2431{
2432EOF
2433          sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" >> conftest.$ac_ext
2434          cat <<\EOF >> conftest.$ac_ext
2435  {0, (lt_ptr_t) 0}
2436};
2437
2438#ifdef __cplusplus
2439}
2440#endif
2441EOF
2442          # Now try linking the two files.
2443          mv conftest.$ac_objext conftstm.$ac_objext
2444          save_LIBS="$LIBS"
2445          save_CFLAGS="$CFLAGS"
2446          LIBS="conftstm.$ac_objext"
2447          CFLAGS="$CFLAGS$no_builtin_flag"
2448          if { (eval echo configure:2449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2449            pipe_works=yes
2450          fi
2451          LIBS="$save_LIBS"
2452          CFLAGS="$save_CFLAGS"
2453        else
2454          echo "cannot find nm_test_func in $nlist" >&5
2455        fi
2456      else
2457        echo "cannot find nm_test_var in $nlist" >&5
2458      fi
2459    else
2460      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
2461    fi
2462  else
2463    echo "$progname: failed program was:" >&5
2464    cat conftest.$ac_ext >&5
2465  fi
2466  rm -f conftest* conftst*
2467
2468  # Do not use the global_symbol_pipe unless it works.
2469  if test "$pipe_works" = yes; then
2470    break
2471  else
2472    lt_cv_sys_global_symbol_pipe=
2473  fi
2474done
2475
2476fi
2477
2478global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
2479if test -z "$lt_cv_sys_global_symbol_pipe"; then
2480  global_symbol_to_cdecl=
2481else
2482  global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
2483fi
2484if test -z "$global_symbol_pipe$global_symbol_to_cdecl"; then
2485  echo "$ac_t""failed" 1>&6
2486else
2487  echo "$ac_t""ok" 1>&6
2488fi
2489
2490for ac_hdr in dlfcn.h
2491do
2492ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2493echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2494echo "configure:2495: checking for $ac_hdr" >&5
2495if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2496  echo $ac_n "(cached) $ac_c" 1>&6
2497else
2498  cat > conftest.$ac_ext <<EOF
2499#line 2500 "configure"
2500#include "confdefs.h"
2501#include <$ac_hdr>
2502EOF
2503ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2504{ (eval echo configure:2505: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2505ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2506if test -z "$ac_err"; then
2507  rm -rf conftest*
2508  eval "ac_cv_header_$ac_safe=yes"
2509else
2510  echo "$ac_err" >&5
2511  echo "configure: failed program was:" >&5
2512  cat conftest.$ac_ext >&5
2513  rm -rf conftest*
2514  eval "ac_cv_header_$ac_safe=no"
2515fi
2516rm -f conftest*
2517fi
2518if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2519  echo "$ac_t""yes" 1>&6
2520    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2521  cat >> confdefs.h <<EOF
2522#define $ac_tr_hdr 1
2523EOF
2524 
2525else
2526  echo "$ac_t""no" 1>&6
2527fi
2528done
2529
2530
2531
2532
2533
2534# Only perform the check for file, if the check method requires it
2535case $deplibs_check_method in
2536file_magic*)
2537  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2538    echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2539echo "configure:2540: checking for ${ac_tool_prefix}file" >&5
2540if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2541  echo $ac_n "(cached) $ac_c" 1>&6
2542else
2543  case $MAGIC_CMD in
2544  /*)
2545  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2546  ;;
2547  ?:/*)
2548  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2549  ;;
2550  *)
2551  ac_save_MAGIC_CMD="$MAGIC_CMD"
2552  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2553  ac_dummy="/usr/bin:$PATH"
2554  for ac_dir in $ac_dummy; do
2555    test -z "$ac_dir" && ac_dir=.
2556    if test -f $ac_dir/${ac_tool_prefix}file; then
2557      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2558      if test -n "$file_magic_test_file"; then
2559        case $deplibs_check_method in
2560        "file_magic "*)
2561          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2562          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2563          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2564            egrep "$file_magic_regex" > /dev/null; then
2565            :
2566          else
2567            cat <<EOF 1>&2
2568
2569*** Warning: the command libtool uses to detect shared libraries,
2570*** $file_magic_cmd, produces output that libtool cannot recognize.
2571*** The result is that libtool may fail to recognize shared libraries
2572*** as such.  This will affect the creation of libtool libraries that
2573*** depend on shared libraries, but programs linked with such libtool
2574*** libraries will work regardless of this problem.  Nevertheless, you
2575*** may want to report the problem to your system manager and/or to
2576*** bug-libtool@gnu.org
2577
2578EOF
2579          fi ;;
2580        esac
2581      fi
2582      break
2583    fi
2584  done
2585  IFS="$ac_save_ifs"
2586  MAGIC_CMD="$ac_save_MAGIC_CMD"
2587  ;;
2588esac
2589fi
2590
2591MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2592if test -n "$MAGIC_CMD"; then
2593  echo "$ac_t""$MAGIC_CMD" 1>&6
2594else
2595  echo "$ac_t""no" 1>&6
2596fi
2597
2598if test -z "$lt_cv_path_MAGIC_CMD"; then
2599  if test -n "$ac_tool_prefix"; then
2600    echo $ac_n "checking for file""... $ac_c" 1>&6
2601echo "configure:2602: checking for file" >&5
2602if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2603  echo $ac_n "(cached) $ac_c" 1>&6
2604else
2605  case $MAGIC_CMD in
2606  /*)
2607  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2608  ;;
2609  ?:/*)
2610  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2611  ;;
2612  *)
2613  ac_save_MAGIC_CMD="$MAGIC_CMD"
2614  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2615  ac_dummy="/usr/bin:$PATH"
2616  for ac_dir in $ac_dummy; do
2617    test -z "$ac_dir" && ac_dir=.
2618    if test -f $ac_dir/file; then
2619      lt_cv_path_MAGIC_CMD="$ac_dir/file"
2620      if test -n "$file_magic_test_file"; then
2621        case $deplibs_check_method in
2622        "file_magic "*)
2623          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2624          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2625          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2626            egrep "$file_magic_regex" > /dev/null; then
2627            :
2628          else
2629            cat <<EOF 1>&2
2630
2631*** Warning: the command libtool uses to detect shared libraries,
2632*** $file_magic_cmd, produces output that libtool cannot recognize.
2633*** The result is that libtool may fail to recognize shared libraries
2634*** as such.  This will affect the creation of libtool libraries that
2635*** depend on shared libraries, but programs linked with such libtool
2636*** libraries will work regardless of this problem.  Nevertheless, you
2637*** may want to report the problem to your system manager and/or to
2638*** bug-libtool@gnu.org
2639
2640EOF
2641          fi ;;
2642        esac
2643      fi
2644      break
2645    fi
2646  done
2647  IFS="$ac_save_ifs"
2648  MAGIC_CMD="$ac_save_MAGIC_CMD"
2649  ;;
2650esac
2651fi
2652
2653MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2654if test -n "$MAGIC_CMD"; then
2655  echo "$ac_t""$MAGIC_CMD" 1>&6
2656else
2657  echo "$ac_t""no" 1>&6
2658fi
2659
2660  else
2661    MAGIC_CMD=:
2662  fi
2663fi
2664
2665  fi
2666  ;;
2667esac
2668
2669# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2670set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2671echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2672echo "configure:2673: checking for $ac_word" >&5
2673if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2674  echo $ac_n "(cached) $ac_c" 1>&6
2675else
2676  if test -n "$RANLIB"; then
2677  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2678else
2679  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2680  ac_dummy="$PATH"
2681  for ac_dir in $ac_dummy; do
2682    test -z "$ac_dir" && ac_dir=.
2683    if test -f $ac_dir/$ac_word; then
2684      ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2685      break
2686    fi
2687  done
2688  IFS="$ac_save_ifs"
2689fi
2690fi
2691RANLIB="$ac_cv_prog_RANLIB"
2692if test -n "$RANLIB"; then
2693  echo "$ac_t""$RANLIB" 1>&6
2694else
2695  echo "$ac_t""no" 1>&6
2696fi
2697
2698
2699if test -z "$ac_cv_prog_RANLIB"; then
2700if test -n "$ac_tool_prefix"; then
2701  # Extract the first word of "ranlib", so it can be a program name with args.
2702set dummy ranlib; ac_word=$2
2703echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2704echo "configure:2705: checking for $ac_word" >&5
2705if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2706  echo $ac_n "(cached) $ac_c" 1>&6
2707else
2708  if test -n "$RANLIB"; then
2709  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2710else
2711  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2712  ac_dummy="$PATH"
2713  for ac_dir in $ac_dummy; do
2714    test -z "$ac_dir" && ac_dir=.
2715    if test -f $ac_dir/$ac_word; then
2716      ac_cv_prog_RANLIB="ranlib"
2717      break
2718    fi
2719  done
2720  IFS="$ac_save_ifs"
2721  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2722fi
2723fi
2724RANLIB="$ac_cv_prog_RANLIB"
2725if test -n "$RANLIB"; then
2726  echo "$ac_t""$RANLIB" 1>&6
2727else
2728  echo "$ac_t""no" 1>&6
2729fi
2730
2731else
2732  RANLIB=":"
2733fi
2734fi
2735
2736# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2737set dummy ${ac_tool_prefix}strip; ac_word=$2
2738echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2739echo "configure:2740: checking for $ac_word" >&5
2740if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2741  echo $ac_n "(cached) $ac_c" 1>&6
2742else
2743  if test -n "$STRIP"; then
2744  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2745else
2746  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2747  ac_dummy="$PATH"
2748  for ac_dir in $ac_dummy; do
2749    test -z "$ac_dir" && ac_dir=.
2750    if test -f $ac_dir/$ac_word; then
2751      ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2752      break
2753    fi
2754  done
2755  IFS="$ac_save_ifs"
2756fi
2757fi
2758STRIP="$ac_cv_prog_STRIP"
2759if test -n "$STRIP"; then
2760  echo "$ac_t""$STRIP" 1>&6
2761else
2762  echo "$ac_t""no" 1>&6
2763fi
2764
2765
2766if test -z "$ac_cv_prog_STRIP"; then
2767if test -n "$ac_tool_prefix"; then
2768  # Extract the first word of "strip", so it can be a program name with args.
2769set dummy strip; ac_word=$2
2770echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2771echo "configure:2772: checking for $ac_word" >&5
2772if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2773  echo $ac_n "(cached) $ac_c" 1>&6
2774else
2775  if test -n "$STRIP"; then
2776  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2777else
2778  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2779  ac_dummy="$PATH"
2780  for ac_dir in $ac_dummy; do
2781    test -z "$ac_dir" && ac_dir=.
2782    if test -f $ac_dir/$ac_word; then
2783      ac_cv_prog_STRIP="strip"
2784      break
2785    fi
2786  done
2787  IFS="$ac_save_ifs"
2788  test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2789fi
2790fi
2791STRIP="$ac_cv_prog_STRIP"
2792if test -n "$STRIP"; then
2793  echo "$ac_t""$STRIP" 1>&6
2794else
2795  echo "$ac_t""no" 1>&6
2796fi
2797
2798else
2799  STRIP=":"
2800fi
2801fi
2802
2803
2804enable_dlopen=no
2805enable_win32_dll=no
2806
2807# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2808if test "${enable_libtool_lock+set}" = set; then
2809  enableval="$enable_libtool_lock"
2810  :
2811fi
2812
2813test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
2814
2815# Some flags need to be propagated to the compiler or linker for good
2816# libtool support.
2817case $host in
2818*-*-irix6*)
2819  # Find out which ABI we are using.
2820  echo '#line 2821 "configure"' > conftest.$ac_ext
2821  if { (eval echo configure:2822: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2822    case `/usr/bin/file conftest.$ac_objext` in
2823    *32-bit*)
2824      LD="${LD-ld} -32"
2825      ;;
2826    *N32*)
2827      LD="${LD-ld} -n32"
2828      ;;
2829    *64-bit*)
2830      LD="${LD-ld} -64"
2831      ;;
2832    esac
2833  fi
2834  rm -rf conftest*
2835  ;;
2836
2837*-*-sco3.2v5*)
2838  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2839  SAVE_CFLAGS="$CFLAGS"
2840  CFLAGS="$CFLAGS -belf"
2841  echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2842echo "configure:2843: checking whether the C compiler needs -belf" >&5
2843if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2844  echo $ac_n "(cached) $ac_c" 1>&6
2845else
2846 
2847     ac_ext=c
2848# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2849ac_cpp='$CPP $CPPFLAGS'
2850ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2851ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2852cross_compiling=$ac_cv_prog_cc_cross
2853
2854     cat > conftest.$ac_ext <<EOF
2855#line 2856 "configure"
2856#include "confdefs.h"
2857
2858int main() {
2859
2860; return 0; }
2861EOF
2862if { (eval echo configure:2863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2863  rm -rf conftest*
2864  lt_cv_cc_needs_belf=yes
2865else
2866  echo "configure: failed program was:" >&5
2867  cat conftest.$ac_ext >&5
2868  rm -rf conftest*
2869  lt_cv_cc_needs_belf=no
2870fi
2871rm -f conftest*
2872     ac_ext=c
2873# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2874ac_cpp='$CPP $CPPFLAGS'
2875ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2876ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2877cross_compiling=$ac_cv_prog_cc_cross
2878
2879fi
2880
2881echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2882  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2883    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2884    CFLAGS="$SAVE_CFLAGS"
2885  fi
2886  ;;
2887
2888
2889esac
2890
2891# Sed substitution that helps us do robust quoting.  It backslashifies
2892# metacharacters that are still active within double-quoted strings.
2893Xsed='sed -e s/^X//'
2894sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
2895
2896# Same as above, but do not quote variable references.
2897double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
2898
2899# Sed substitution to delay expansion of an escaped shell variable in a
2900# double_quote_subst'ed string.
2901delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2902
2903# Constants:
2904rm="rm -f"
2905
2906# Global variables:
2907default_ofile=libtool
2908can_build_shared=yes
2909
2910# All known linkers require a `.a' archive for static linking (except M$VC,
2911# which needs '.lib').
2912libext=a
2913ltmain="$ac_aux_dir/ltmain.sh"
2914ofile="$default_ofile"
2915with_gnu_ld="$lt_cv_prog_gnu_ld"
2916need_locks="$enable_libtool_lock"
2917
2918old_CC="$CC"
2919old_CFLAGS="$CFLAGS"
2920
2921# Set sane defaults for various variables
2922test -z "$AR" && AR=ar
2923test -z "$AR_FLAGS" && AR_FLAGS=cru
2924test -z "$AS" && AS=as
2925test -z "$CC" && CC=cc
2926test -z "$DLLTOOL" && DLLTOOL=dlltool
2927test -z "$LD" && LD=ld
2928test -z "$LN_S" && LN_S="ln -s"
2929test -z "$MAGIC_CMD" && MAGIC_CMD=file
2930test -z "$NM" && NM=nm
2931test -z "$OBJDUMP" && OBJDUMP=objdump
2932test -z "$RANLIB" && RANLIB=:
2933test -z "$STRIP" && STRIP=:
2934test -z "$ac_objext" && ac_objext=o
2935
2936if test x"$host" != x"$build"; then
2937  ac_tool_prefix=${host_alias}-
2938else
2939  ac_tool_prefix=
2940fi
2941
2942# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
2943case $host_os in
2944linux-gnu*) ;;
2945linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
2946esac
2947
2948case $host_os in
2949aix3*)
2950  # AIX sometimes has problems with the GCC collect2 program.  For some
2951  # reason, if we set the COLLECT_NAMES environment variable, the problems
2952  # vanish in a puff of smoke.
2953  if test "X${COLLECT_NAMES+set}" != Xset; then
2954    COLLECT_NAMES=
2955    export COLLECT_NAMES
2956  fi
2957  ;;
2958esac
2959
2960# Determine commands to create old-style static archives.
2961old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
2962old_postinstall_cmds='chmod 644 $oldlib'
2963old_postuninstall_cmds=
2964
2965if test -n "$RANLIB"; then
2966  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
2967  old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
2968fi
2969
2970# Allow CC to be a program name with arguments.
2971set dummy $CC
2972compiler="$2"
2973
2974echo $ac_n "checking for objdir""... $ac_c" 1>&6
2975echo "configure:2976: checking for objdir" >&5
2976rm -f .libs 2>/dev/null
2977mkdir .libs 2>/dev/null
2978if test -d .libs; then
2979  objdir=.libs
2980else
2981  # MS-DOS does not allow filenames that begin with a dot.
2982  objdir=_libs
2983fi
2984rmdir .libs 2>/dev/null
2985echo "$ac_t""$objdir" 1>&6
2986
2987
2988# Check whether --with-pic or --without-pic was given.
2989if test "${with_pic+set}" = set; then
2990  withval="$with_pic"
2991  pic_mode="$withval"
2992else
2993  pic_mode=default
2994fi
2995
2996test -z "$pic_mode" && pic_mode=default
2997
2998# We assume here that the value for lt_cv_prog_cc_pic will not be cached
2999# in isolation, and that seeing it set (from the cache) indicates that
3000# the associated values are set (in the cache) correctly too.
3001echo $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6
3002echo "configure:3003: checking for $compiler option to produce PIC" >&5
3003if eval "test \"`echo '$''{'lt_cv_prog_cc_pic'+set}'`\" = set"; then
3004  echo $ac_n "(cached) $ac_c" 1>&6
3005else
3006   lt_cv_prog_cc_pic=
3007  lt_cv_prog_cc_shlib=
3008  lt_cv_prog_cc_wl=
3009  lt_cv_prog_cc_static=
3010  lt_cv_prog_cc_no_builtin=
3011  lt_cv_prog_cc_can_build_shared=$can_build_shared
3012
3013  if test "$GCC" = yes; then
3014    lt_cv_prog_cc_wl='-Wl,'
3015    lt_cv_prog_cc_static='-static'
3016
3017    case $host_os in
3018    aix*)
3019      # Below there is a dirty hack to force normal static linking with -ldl
3020      # The problem is because libdl dynamically linked with both libc and
3021      # libC (AIX C++ library), which obviously doesn't included in libraries
3022      # list by gcc. This cause undefined symbols with -static flags.
3023      # This hack allows C programs to be linked with "-static -ldl", but
3024      # we not sure about C++ programs.
3025      lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
3026      ;;
3027    amigaos*)
3028      # FIXME: we need at least 68020 code to build shared libraries, but
3029      # adding the `-m68020' flag to GCC prevents building anything better,
3030      # like `-m68040'.
3031      lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
3032      ;;
3033    beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
3034      # PIC is the default for these OSes.
3035      ;;
3036    darwin* | rhapsody*)
3037      # PIC is the default on this platform
3038      # Common symbols not allowed in MH_DYLIB files
3039      lt_cv_prog_cc_pic='-fno-common'
3040      ;;
3041    cygwin* | mingw* | pw32* | os2*)
3042      # This hack is so that the source file can tell whether it is being
3043      # built for inclusion in a dll (and should export symbols for example).
3044      lt_cv_prog_cc_pic='-DDLL_EXPORT'
3045      ;;
3046    sysv4*MP*)
3047      if test -d /usr/nec; then
3048         lt_cv_prog_cc_pic=-Kconform_pic
3049      fi
3050      ;;
3051    *)
3052      lt_cv_prog_cc_pic='-fPIC'
3053      ;;
3054    esac
3055  else
3056    # PORTME Check for PIC flags for the system compiler.
3057    case $host_os in
3058    aix3* | aix4* | aix5*)
3059      # All AIX code is PIC.
3060      if test "$host_cpu" = ia64; then
3061        # AIX 5 now supports IA64 processor
3062        lt_cv_prog_cc_static='-Bstatic'
3063        lt_cv_prog_cc_wl='-Wl,'
3064      else
3065        lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
3066      fi
3067      ;;
3068
3069    hpux9* | hpux10* | hpux11*)
3070      # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
3071      lt_cv_prog_cc_wl='-Wl,'
3072      lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
3073      lt_cv_prog_cc_pic='+Z'
3074      ;;
3075
3076    irix5* | irix6*)
3077      lt_cv_prog_cc_wl='-Wl,'
3078      lt_cv_prog_cc_static='-non_shared'
3079      # PIC (with -KPIC) is the default.
3080      ;;
3081
3082    cygwin* | mingw* | pw32* | os2*)
3083      # This hack is so that the source file can tell whether it is being
3084      # built for inclusion in a dll (and should export symbols for example).
3085      lt_cv_prog_cc_pic='-DDLL_EXPORT'
3086      ;;
3087
3088    newsos6)
3089      lt_cv_prog_cc_pic='-KPIC'
3090      lt_cv_prog_cc_static='-Bstatic'
3091      ;;
3092
3093    osf3* | osf4* | osf5*)
3094      # All OSF/1 code is PIC.
3095      lt_cv_prog_cc_wl='-Wl,'
3096      lt_cv_prog_cc_static='-non_shared'
3097      ;;
3098
3099    sco3.2v5*)
3100      lt_cv_prog_cc_pic='-Kpic'
3101      lt_cv_prog_cc_static='-dn'
3102      lt_cv_prog_cc_shlib='-belf'
3103      ;;
3104
3105    solaris*)
3106      lt_cv_prog_cc_pic='-KPIC'
3107      lt_cv_prog_cc_static='-Bstatic'
3108      lt_cv_prog_cc_wl='-Wl,'
3109      ;;
3110
3111    sunos4*)
3112      lt_cv_prog_cc_pic='-PIC'
3113      lt_cv_prog_cc_static='-Bstatic'
3114      lt_cv_prog_cc_wl='-Qoption ld '
3115      ;;
3116
3117    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3118      lt_cv_prog_cc_pic='-KPIC'
3119      lt_cv_prog_cc_static='-Bstatic'
3120      if test "x$host_vendor" = xsni; then
3121        lt_cv_prog_cc_wl='-LD'
3122      else
3123        lt_cv_prog_cc_wl='-Wl,'
3124      fi
3125      ;;
3126
3127    uts4*)
3128      lt_cv_prog_cc_pic='-pic'
3129      lt_cv_prog_cc_static='-Bstatic'
3130      ;;
3131
3132    sysv4*MP*)
3133      if test -d /usr/nec ;then
3134        lt_cv_prog_cc_pic='-Kconform_pic'
3135        lt_cv_prog_cc_static='-Bstatic'
3136      fi
3137      ;;
3138
3139    *)
3140      lt_cv_prog_cc_can_build_shared=no
3141      ;;
3142    esac
3143  fi
3144
3145fi
3146
3147if test -z "$lt_cv_prog_cc_pic"; then
3148  echo "$ac_t""none" 1>&6
3149else
3150  echo "$ac_t""$lt_cv_prog_cc_pic" 1>&6
3151
3152  # Check to make sure the pic_flag actually works.
3153  echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6
3154echo "configure:3155: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
3155  if eval "test \"`echo '$''{'lt_cv_prog_cc_pic_works'+set}'`\" = set"; then
3156  echo $ac_n "(cached) $ac_c" 1>&6
3157else
3158      save_CFLAGS="$CFLAGS"
3159    CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
3160    cat > conftest.$ac_ext <<EOF
3161#line 3162 "configure"
3162#include "confdefs.h"
3163
3164int main() {
3165
3166; return 0; }
3167EOF
3168if { (eval echo configure:3169: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3169  rm -rf conftest*
3170        case $host_os in
3171      hpux9* | hpux10* | hpux11*)
3172        # On HP-UX, both CC and GCC only warn that PIC is supported... then
3173        # they create non-PIC objects.  So, if there were any warnings, we
3174        # assume that PIC is not supported.
3175        if test -s conftest.err; then
3176          lt_cv_prog_cc_pic_works=no
3177        else
3178          lt_cv_prog_cc_pic_works=yes
3179        fi
3180        ;;
3181      *)
3182        lt_cv_prog_cc_pic_works=yes
3183        ;;
3184      esac
3185   
3186else
3187  echo "configure: failed program was:" >&5
3188  cat conftest.$ac_ext >&5
3189  rm -rf conftest*
3190        lt_cv_prog_cc_pic_works=no
3191   
3192fi
3193rm -f conftest*
3194    CFLAGS="$save_CFLAGS"
3195 
3196fi
3197
3198
3199  if test "X$lt_cv_prog_cc_pic_works" = Xno; then
3200    lt_cv_prog_cc_pic=
3201    lt_cv_prog_cc_can_build_shared=no
3202  else
3203    lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
3204  fi
3205
3206  echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6
3207fi
3208
3209# Check for any special shared library compilation flags.
3210if test -n "$lt_cv_prog_cc_shlib"; then
3211  echo "configure: warning: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" 1>&2
3212  if echo "$old_CC $old_CFLAGS " | egrep -e "[  ]$lt_cv_prog_cc_shlib[  ]" >/dev/null; then :
3213  else
3214   echo "configure: warning: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" 1>&2
3215    lt_cv_prog_cc_can_build_shared=no
3216  fi
3217fi
3218
3219echo $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6
3220echo "configure:3221: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
3221if eval "test \"`echo '$''{'lt_cv_prog_cc_static_works'+set}'`\" = set"; then
3222  echo $ac_n "(cached) $ac_c" 1>&6
3223else
3224    lt_cv_prog_cc_static_works=no
3225  save_LDFLAGS="$LDFLAGS"
3226  LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
3227  cat > conftest.$ac_ext <<EOF
3228#line 3229 "configure"
3229#include "confdefs.h"
3230
3231int main() {
3232
3233; return 0; }
3234EOF
3235if { (eval echo configure:3236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3236  rm -rf conftest*
3237  lt_cv_prog_cc_static_works=yes
3238else
3239  echo "configure: failed program was:" >&5
3240  cat conftest.$ac_ext >&5
3241fi
3242rm -f conftest*
3243  LDFLAGS="$save_LDFLAGS"
3244
3245fi
3246
3247
3248# Belt *and* braces to stop my trousers falling down:
3249test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
3250echo "$ac_t""$lt_cv_prog_cc_static_works" 1>&6
3251
3252pic_flag="$lt_cv_prog_cc_pic"
3253special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
3254wl="$lt_cv_prog_cc_wl"
3255link_static_flag="$lt_cv_prog_cc_static"
3256no_builtin_flag="$lt_cv_prog_cc_no_builtin"
3257can_build_shared="$lt_cv_prog_cc_can_build_shared"
3258
3259
3260# Check to see if options -o and -c are simultaneously supported by compiler
3261echo $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6
3262echo "configure:3263: checking if $compiler supports -c -o file.$ac_objext" >&5
3263if eval "test \"`echo '$''{'lt_cv_compiler_c_o'+set}'`\" = set"; then
3264  echo $ac_n "(cached) $ac_c" 1>&6
3265else
3266 
3267$rm -r conftest 2>/dev/null
3268mkdir conftest
3269cd conftest
3270echo "int some_variable = 0;" > conftest.$ac_ext
3271mkdir out
3272# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
3273# that will create temporary files in the current directory regardless of
3274# the output directory.  Thus, making CWD read-only will cause this test
3275# to fail, enabling locking or at least warning the user not to do parallel
3276# builds.
3277chmod -w .
3278save_CFLAGS="$CFLAGS"
3279CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
3280compiler_c_o=no
3281if { (eval echo configure:3282: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
3282  # The compiler can only warn and ignore the option if not recognized
3283  # So say no if there are warnings
3284  if test -s out/conftest.err; then
3285    lt_cv_compiler_c_o=no
3286  else
3287    lt_cv_compiler_c_o=yes
3288  fi
3289else
3290  # Append any errors to the config.log.
3291  cat out/conftest.err 1>&5
3292  lt_cv_compiler_c_o=no
3293fi
3294CFLAGS="$save_CFLAGS"
3295chmod u+w .
3296$rm conftest* out/*
3297rmdir out
3298cd ..
3299rmdir conftest
3300$rm -r conftest 2>/dev/null
3301
3302fi
3303
3304compiler_c_o=$lt_cv_compiler_c_o
3305echo "$ac_t""$compiler_c_o" 1>&6
3306
3307if test x"$compiler_c_o" = x"yes"; then
3308  # Check to see if we can write to a .lo
3309  echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6
3310echo "configure:3311: checking if $compiler supports -c -o file.lo" >&5
3311  if eval "test \"`echo '$''{'lt_cv_compiler_o_lo'+set}'`\" = set"; then
3312  echo $ac_n "(cached) $ac_c" 1>&6
3313else
3314 
3315  lt_cv_compiler_o_lo=no
3316  save_CFLAGS="$CFLAGS"
3317  CFLAGS="$CFLAGS -c -o conftest.lo"
3318  cat > conftest.$ac_ext <<EOF
3319#line 3320 "configure"
3320#include "confdefs.h"
3321
3322int main() {
3323int some_variable = 0;
3324; return 0; }
3325EOF
3326if { (eval echo configure:3327: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3327  rm -rf conftest*
3328      # The compiler can only warn and ignore the option if not recognized
3329    # So say no if there are warnings
3330    if test -s conftest.err; then
3331      lt_cv_compiler_o_lo=no
3332    else
3333      lt_cv_compiler_o_lo=yes
3334    fi
3335 
3336else
3337  echo "configure: failed program was:" >&5
3338  cat conftest.$ac_ext >&5
3339fi
3340rm -f conftest*
3341  CFLAGS="$save_CFLAGS"
3342 
3343fi
3344
3345  compiler_o_lo=$lt_cv_compiler_o_lo
3346  echo "$ac_t""$compiler_o_lo" 1>&6
3347else
3348  compiler_o_lo=no
3349fi
3350
3351# Check to see if we can do hard links to lock some files if needed
3352hard_links="nottested"
3353if test "$compiler_c_o" = no && test "$need_locks" != no; then
3354  # do not overwrite the value of need_locks provided by the user
3355  echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6
3356echo "configure:3357: checking if we can lock with hard links" >&5
3357  hard_links=yes
3358  $rm conftest*
3359  ln conftest.a conftest.b 2>/dev/null && hard_links=no
3360  touch conftest.a
3361  ln conftest.a conftest.b 2>&5 || hard_links=no
3362  ln conftest.a conftest.b 2>/dev/null && hard_links=no
3363  echo "$ac_t""$hard_links" 1>&6
3364  if test "$hard_links" = no; then
3365    echo "configure: warning: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" 1>&2
3366    need_locks=warn
3367  fi
3368else
3369  need_locks=no
3370fi
3371
3372if test "$GCC" = yes; then
3373  # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
3374  echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6
3375echo "configure:3376: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
3376  echo "int some_variable = 0;" > conftest.$ac_ext
3377  save_CFLAGS="$CFLAGS"
3378  CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
3379  compiler_rtti_exceptions=no
3380  cat > conftest.$ac_ext <<EOF
3381#line 3382 "configure"
3382#include "confdefs.h"
3383
3384int main() {
3385int some_variable = 0;
3386; return 0; }
3387EOF
3388if { (eval echo configure:3389: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3389  rm -rf conftest*
3390      # The compiler can only warn and ignore the option if not recognized
3391    # So say no if there are warnings
3392    if test -s conftest.err; then
3393      compiler_rtti_exceptions=no
3394    else
3395      compiler_rtti_exceptions=yes
3396    fi
3397 
3398else
3399  echo "configure: failed program was:" >&5
3400  cat conftest.$ac_ext >&5
3401fi
3402rm -f conftest*
3403  CFLAGS="$save_CFLAGS"
3404  echo "$ac_t""$compiler_rtti_exceptions" 1>&6
3405
3406  if test "$compiler_rtti_exceptions" = "yes"; then
3407    no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
3408  else
3409    no_builtin_flag=' -fno-builtin'
3410  fi
3411fi
3412
3413# See if the linker supports building shared libraries.
3414echo $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6
3415echo "configure:3416: checking whether the linker ($LD) supports shared libraries" >&5
3416
3417allow_undefined_flag=
3418no_undefined_flag=
3419need_lib_prefix=unknown
3420need_version=unknown
3421# when you set need_version to no, make sure it does not cause -set_version
3422# flags to be left without arguments
3423archive_cmds=
3424archive_expsym_cmds=
3425old_archive_from_new_cmds=
3426old_archive_from_expsyms_cmds=
3427export_dynamic_flag_spec=
3428whole_archive_flag_spec=
3429thread_safe_flag_spec=
3430hardcode_into_libs=no
3431hardcode_libdir_flag_spec=
3432hardcode_libdir_separator=
3433hardcode_direct=no
3434hardcode_minus_L=no
3435hardcode_shlibpath_var=unsupported
3436runpath_var=
3437link_all_deplibs=unknown
3438always_export_symbols=no
3439export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
3440# include_expsyms should be a list of space-separated symbols to be *always*
3441# included in the symbol list
3442include_expsyms=
3443# exclude_expsyms can be an egrep regular expression of symbols to exclude
3444# it will be wrapped by ` (' and `)$', so one must not match beginning or
3445# end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
3446# as well as any symbol that contains `d'.
3447exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
3448# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
3449# platforms (ab)use it in PIC code, but their linkers get confused if
3450# the symbol is explicitly referenced.  Since portable code cannot
3451# rely on this symbol name, it's probably fine to never include it in
3452# preloaded symbol tables.
3453extract_expsyms_cmds=
3454
3455case $host_os in
3456cygwin* | mingw* | pw32* )
3457  # FIXME: the MSVC++ port hasn't been tested in a loooong time
3458  # When not using gcc, we currently assume that we are using
3459  # Microsoft Visual C++.
3460  if test "$GCC" != yes; then
3461    with_gnu_ld=no
3462  fi
3463  ;;
3464
3465esac
3466
3467ld_shlibs=yes
3468if test "$with_gnu_ld" = yes; then
3469  # If archive_cmds runs LD, not CC, wlarc should be empty
3470  wlarc='${wl}'
3471
3472  # See if GNU ld supports shared libraries.
3473  case $host_os in
3474  aix3* | aix4* | aix5*)
3475    # On AIX, the GNU linker is very broken
3476    # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
3477    ld_shlibs=no
3478    cat <<EOF 1>&2
3479
3480*** Warning: the GNU linker, at least up to release 2.9.1, is reported
3481*** to be unable to reliably create shared libraries on AIX.
3482*** Therefore, libtool is disabling shared libraries support.  If you
3483*** really care for shared libraries, you may want to modify your PATH
3484*** so that a non-GNU linker is found, and then restart.
3485
3486EOF
3487    ;;
3488
3489  amigaos*)
3490    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)'
3491    hardcode_libdir_flag_spec='-L$libdir'
3492    hardcode_minus_L=yes
3493
3494    # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
3495    # that the semantics of dynamic libraries on AmigaOS, at least up
3496    # to version 4, is to share data among multiple programs linked
3497    # with the same dynamic library.  Since this doesn't match the
3498    # behavior of shared libraries on other platforms, we can use
3499    # them.
3500    ld_shlibs=no
3501    ;;
3502
3503  beos*)
3504    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
3505      allow_undefined_flag=unsupported
3506      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
3507      # support --undefined.  This deserves some investigation.  FIXME
3508      archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3509    else
3510      ld_shlibs=no
3511    fi
3512    ;;
3513
3514  cygwin* | mingw* | pw32*)
3515    # hardcode_libdir_flag_spec is actually meaningless, as there is
3516    # no search path for DLLs.
3517    hardcode_libdir_flag_spec='-L$libdir'
3518    allow_undefined_flag=unsupported
3519    always_export_symbols=yes
3520
3521    extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
3522      sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
3523      test -f $output_objdir/impgen.exe || (cd $output_objdir && \
3524      if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
3525      else $CC -o impgen impgen.c ; fi)~
3526      $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
3527
3528    old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
3529
3530    # cygwin and mingw dlls have different entry points and sets of symbols
3531    # to exclude.
3532    # FIXME: what about values for MSVC?
3533    dll_entry=__cygwin_dll_entry@12
3534    dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
3535    case $host_os in
3536    mingw*)
3537      # mingw values
3538      dll_entry=_DllMainCRTStartup@12
3539      dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
3540      ;;
3541    esac
3542
3543    # mingw and cygwin differ, and it's simplest to just exclude the union
3544    # of the two symbol sets.
3545    dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
3546
3547    # recent cygwin and mingw systems supply a stub DllMain which the user
3548    # can override, but on older systems we have to supply one (in ltdll.c)
3549    if test "x$lt_cv_need_dllmain" = "xyes"; then
3550      ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
3551      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~
3552        test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
3553    else
3554      ltdll_obj=
3555      ltdll_cmds=
3556    fi
3557
3558    # Extract the symbol export list from an `--export-all' def file,
3559    # then regenerate the def file from the symbol export list, so that
3560    # the compiled dll only exports the symbol export list.
3561    # Be careful not to strip the DATA tag left be newer dlltools.
3562    export_symbols_cmds="$ltdll_cmds"'
3563      $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
3564      sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
3565
3566    # If the export-symbols file already is a .def file (1st line
3567    # is EXPORTS), use it as is.
3568    # If DATA tags from a recent dlltool are present, honour them!
3569    archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
3570        cp $export_symbols $output_objdir/$soname-def;
3571      else
3572        echo EXPORTS > $output_objdir/$soname-def;
3573        _lt_hint=1;
3574        cat $export_symbols | while read symbol; do
3575         set dummy \$symbol;
3576         case \$# in
3577           2) echo "   \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
3578           *) echo "     \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
3579         esac;
3580         _lt_hint=`expr 1 + \$_lt_hint`;
3581        done;
3582      fi~
3583      '"$ltdll_cmds"'
3584      $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~
3585      $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~
3586      $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~
3587      $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~
3588      $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
3589    ;;
3590
3591  netbsd*)
3592    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3593      archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
3594      wlarc=
3595    else
3596      archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3597      archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3598    fi
3599    ;;
3600
3601  solaris* | sysv5*)
3602    if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
3603      ld_shlibs=no
3604      cat <<EOF 1>&2
3605
3606*** Warning: The releases 2.8.* of the GNU linker cannot reliably
3607*** create shared libraries on Solaris systems.  Therefore, libtool
3608*** is disabling shared libraries support.  We urge you to upgrade GNU
3609*** binutils to release 2.9.1 or newer.  Another option is to modify
3610*** your PATH or compiler configuration so that the native linker is
3611*** used, and then restart.
3612
3613EOF
3614    elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
3615      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3616      archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3617    else
3618      ld_shlibs=no
3619    fi
3620    ;;
3621
3622  sunos4*)
3623    archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
3624    wlarc=
3625    hardcode_direct=yes
3626    hardcode_shlibpath_var=no
3627    ;;
3628
3629  *)
3630    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
3631      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3632      archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3633    else
3634      ld_shlibs=no
3635    fi
3636    ;;
3637  esac
3638
3639  if test "$ld_shlibs" = yes; then
3640    runpath_var=LD_RUN_PATH
3641    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
3642    export_dynamic_flag_spec='${wl}--export-dynamic'
3643    case $host_os in
3644    cygwin* | mingw* | pw32*)
3645      # dlltool doesn't understand --whole-archive et. al.
3646      whole_archive_flag_spec=
3647      ;;
3648    *)
3649      # ancient GNU ld didn't support --whole-archive et. al.
3650      if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
3651        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3652      else
3653        whole_archive_flag_spec=
3654      fi
3655      ;;
3656    esac
3657  fi
3658else
3659  # PORTME fill in a description of your system's linker (not GNU ld)
3660  case $host_os in
3661  aix3*)
3662    allow_undefined_flag=unsupported
3663    always_export_symbols=yes
3664    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'
3665    # Note: this linker hardcodes the directories in LIBPATH if there
3666    # are no directories specified by -L.
3667    hardcode_minus_L=yes
3668    if test "$GCC" = yes && test -z "$link_static_flag"; then
3669      # Neither direct hardcoding nor static linking is supported with a
3670      # broken collect2.
3671      hardcode_direct=unsupported
3672    fi
3673    ;;
3674
3675  aix4* | aix5*)
3676    # When large executables or shared objects are built, AIX ld can
3677    # have problems creating the table of contents.  If linking a library
3678    # or program results in "error TOC overflow" add -mminimal-toc to
3679    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
3680    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
3681
3682    archive_cmds=''
3683    hardcode_libdir_separator=':'
3684    if test "$GCC" = yes; then
3685      collect2name=`${CC} -print-prog-name=collect2`
3686      if test -f "$collect2name" && \
3687         strings "$collect2name" | grep resolve_lib_name >/dev/null
3688      then
3689        # We have reworked collect2
3690        hardcode_direct=yes
3691      else
3692        # We have old collect2
3693        hardcode_direct=unsupported
3694        # It fails to find uninstalled libraries when the uninstalled
3695        # path is not listed in the libpath.  Setting hardcode_minus_L
3696        # to unsupported forces relinking
3697        hardcode_minus_L=yes
3698        hardcode_libdir_flag_spec='-L$libdir'
3699        hardcode_libdir_separator=
3700      fi
3701      shared_flag='-shared'
3702    else
3703      if test "$host_cpu" = ia64; then
3704        shared_flag='-G'
3705      else
3706        shared_flag='${wl}-bM:SRE'
3707      fi
3708      hardcode_direct=yes
3709    fi
3710
3711    if test "$host_cpu" = ia64; then
3712      # On IA64, the linker does run time linking by default, so we don't
3713      # have to do anything special.
3714      aix_use_runtimelinking=no
3715      exp_sym_flag='-Bexport'
3716      no_entry_flag=""
3717    else
3718      # Test if we are trying to use run time linking, or normal AIX style linking.
3719      # If -brtl is somewhere in LDFLAGS, we need to do run time linking.
3720      aix_use_runtimelinking=no
3721      for ld_flag in $LDFLAGS; do
3722        if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl" ); then
3723          aix_use_runtimelinking=yes
3724          break
3725        fi
3726      done
3727      exp_sym_flag='-bexport'
3728      no_entry_flag='-bnoentry'
3729    fi
3730    # It seems that -bexpall can do strange things, so it is better to
3731    # generate a list of symbols to export.
3732    always_export_symbols=yes
3733    if test "$aix_use_runtimelinking" = yes; then
3734      hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
3735      allow_undefined_flag=' -Wl,-G'
3736      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"
3737    else
3738      if test "$host_cpu" = ia64; then
3739        hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
3740       allow_undefined_flag="-znodefs"
3741        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"
3742      else
3743        hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
3744        # Warning - without using the other run time loading flags, -berok will
3745        #           link without error, but may produce a broken library.
3746        allow_undefined_flag='${wl}-berok'
3747        # This is a bit strange, but is similar to how AIX traditionally builds
3748        # it's shared libraries.
3749        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'
3750      fi
3751    fi
3752    ;;
3753
3754  amigaos*)
3755    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)'
3756    hardcode_libdir_flag_spec='-L$libdir'
3757    hardcode_minus_L=yes
3758    # see comment about different semantics on the GNU ld section
3759    ld_shlibs=no
3760    ;;
3761
3762  cygwin* | mingw* | pw32*)
3763    # When not using gcc, we currently assume that we are using
3764    # Microsoft Visual C++.
3765    # hardcode_libdir_flag_spec is actually meaningless, as there is
3766    # no search path for DLLs.
3767    hardcode_libdir_flag_spec=' '
3768    allow_undefined_flag=unsupported
3769    # Tell ltmain to make .lib files, not .a files.
3770    libext=lib
3771    # FIXME: Setting linknames here is a bad hack.
3772    archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
3773    # The linker will automatically build a .lib file if we build a DLL.
3774    old_archive_from_new_cmds='true'
3775    # FIXME: Should let the user specify the lib program.
3776    old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
3777    fix_srcfile_path='`cygpath -w "$srcfile"`'
3778    ;;
3779
3780  darwin* | rhapsody*)
3781    allow_undefined_flag='-undefined suppress'
3782    # FIXME: Relying on posixy $() will cause problems for
3783    #        cross-compilation, but unfortunately the echo tests do not
3784    #        yet detect zsh echo's removal of \ escapes.
3785    archive_cmds='$CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linkopts -install_name $rpath/$soname $(test -n "$verstring" -a x$verstring != x0.0 && echo $verstring)'
3786    # We need to add '_' to the symbols in $export_symbols first
3787    #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
3788    hardcode_direct=yes
3789    hardcode_shlibpath_var=no
3790    whole_archive_flag_spec='-all_load $convenience'
3791    ;;
3792
3793  freebsd1*)
3794    ld_shlibs=no
3795    ;;
3796
3797  # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
3798  # support.  Future versions do this automatically, but an explicit c++rt0.o
3799  # does not break anything, and helps significantly (at the cost of a little
3800  # extra space).
3801  freebsd2.2*)
3802    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
3803    hardcode_libdir_flag_spec='-R$libdir'
3804    hardcode_direct=yes
3805    hardcode_shlibpath_var=no
3806    ;;
3807
3808  # Unfortunately, older versions of FreeBSD 2 do not have this feature.
3809  freebsd2*)
3810    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
3811    hardcode_direct=yes
3812    hardcode_minus_L=yes
3813    hardcode_shlibpath_var=no
3814    ;;
3815
3816  # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
3817  freebsd*)
3818    archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
3819    hardcode_libdir_flag_spec='-R$libdir'
3820    hardcode_direct=yes
3821    hardcode_shlibpath_var=no
3822    ;;
3823
3824  hpux9* | hpux10* | hpux11*)
3825    case $host_os in
3826    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' ;;
3827    *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
3828    esac
3829    hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
3830    hardcode_libdir_separator=:
3831    hardcode_direct=yes
3832    hardcode_minus_L=yes # Not in the search PATH, but as the default
3833                         # location of the library.
3834    export_dynamic_flag_spec='${wl}-E'
3835    ;;
3836
3837  irix5* | irix6*)
3838    if test "$GCC" = yes; then
3839      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'
3840    else
3841      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'
3842    fi
3843    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
3844    hardcode_libdir_separator=:
3845    link_all_deplibs=yes
3846    ;;
3847
3848  netbsd*)
3849    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3850      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
3851    else
3852      archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
3853    fi
3854    hardcode_libdir_flag_spec='-R$libdir'
3855    hardcode_direct=yes
3856    hardcode_shlibpath_var=no
3857    ;;
3858
3859  newsos6)
3860    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
3861    hardcode_direct=yes
3862    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
3863    hardcode_libdir_separator=:
3864    hardcode_shlibpath_var=no
3865    ;;
3866
3867  openbsd*)
3868    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
3869    hardcode_libdir_flag_spec='-R$libdir'
3870    hardcode_direct=yes
3871    hardcode_shlibpath_var=no
3872    ;;
3873
3874  os2*)
3875    hardcode_libdir_flag_spec='-L$libdir'
3876    hardcode_minus_L=yes
3877    allow_undefined_flag=unsupported
3878    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'
3879    old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
3880    ;;
3881
3882  osf3*)
3883    if test "$GCC" = yes; then
3884      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3885      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'
3886    else
3887      allow_undefined_flag=' -expect_unresolved \*'
3888      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'
3889    fi
3890    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
3891    hardcode_libdir_separator=:
3892    ;;
3893
3894  osf4* | osf5*)        # as osf3* with the addition of -msym flag
3895    if test "$GCC" = yes; then
3896      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3897      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'
3898      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
3899    else
3900      allow_undefined_flag=' -expect_unresolved \*'
3901      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'
3902      archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
3903      $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'
3904
3905      #Both c and cxx compiler support -rpath directly
3906      hardcode_libdir_flag_spec='-rpath $libdir'
3907    fi
3908    hardcode_libdir_separator=:
3909    ;;
3910
3911  sco3.2v5*)
3912    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3913    hardcode_shlibpath_var=no
3914    runpath_var=LD_RUN_PATH
3915    hardcode_runpath_var=yes
3916    ;;
3917
3918  solaris*)
3919    no_undefined_flag=' -z defs'
3920    # $CC -shared without GNU ld will not create a library from C++
3921    # object files and a static libstdc++, better avoid it by now
3922    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
3923    archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3924                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
3925    hardcode_libdir_flag_spec='-R$libdir'
3926    hardcode_shlibpath_var=no
3927    case $host_os in
3928    solaris2.[0-5] | solaris2.[0-5].*) ;;
3929    *) # Supported since Solaris 2.6 (maybe 2.5.1?)
3930      whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
3931    esac
3932    link_all_deplibs=yes
3933    ;;
3934
3935  sunos4*)
3936    if test "x$host_vendor" = xsequent; then
3937      # Use $CC to link under sequent, because it throws in some extra .o
3938      # files that make .init and .fini sections work.
3939      archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
3940    else
3941      archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
3942    fi
3943    hardcode_libdir_flag_spec='-L$libdir'
3944    hardcode_direct=yes
3945    hardcode_minus_L=yes
3946    hardcode_shlibpath_var=no
3947    ;;
3948
3949  sysv4)
3950    if test "x$host_vendor" = xsno; then
3951      archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linkopts'
3952      hardcode_direct=yes # is this really true???
3953    else
3954      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3955      hardcode_direct=no #Motorola manual says yes, but my tests say they lie
3956    fi
3957    runpath_var='LD_RUN_PATH'
3958    hardcode_shlibpath_var=no
3959    ;;
3960
3961  sysv4.3*)
3962    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3963    hardcode_shlibpath_var=no
3964    export_dynamic_flag_spec='-Bexport'
3965    ;;
3966
3967  sysv5*)
3968    no_undefined_flag=' -z text'
3969    # $CC -shared without GNU ld will not create a library from C++
3970    # object files and a static libstdc++, better avoid it by now
3971    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
3972    archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3973                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
3974    hardcode_libdir_flag_spec=
3975    hardcode_shlibpath_var=no
3976    runpath_var='LD_RUN_PATH'
3977    ;;
3978
3979  uts4*)
3980    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3981    hardcode_libdir_flag_spec='-L$libdir'
3982    hardcode_shlibpath_var=no
3983    ;;
3984
3985  dgux*)
3986    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3987    hardcode_libdir_flag_spec='-L$libdir'
3988    hardcode_shlibpath_var=no
3989    ;;
3990
3991  sysv4*MP*)
3992    if test -d /usr/nec; then
3993      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3994      hardcode_shlibpath_var=no
3995      runpath_var=LD_RUN_PATH
3996      hardcode_runpath_var=yes
3997      ld_shlibs=yes
3998    fi
3999    ;;
4000
4001  sysv4.2uw2*)
4002    archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
4003    hardcode_direct=yes
4004    hardcode_minus_L=no
4005    hardcode_shlibpath_var=no
4006    hardcode_runpath_var=yes
4007    runpath_var=LD_RUN_PATH
4008    ;;
4009
4010  sysv5uw7* | unixware7*)
4011    no_undefined_flag='${wl}-z ${wl}text'
4012    if test "$GCC" = yes; then
4013      archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4014    else
4015      archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4016    fi
4017    runpath_var='LD_RUN_PATH'
4018    hardcode_shlibpath_var=no
4019    ;;
4020
4021  *)
4022    ld_shlibs=no
4023    ;;
4024  esac
4025fi
4026echo "$ac_t""$ld_shlibs" 1>&6
4027test "$ld_shlibs" = no && can_build_shared=no
4028
4029# Check hardcoding attributes.
4030echo $ac_n "checking how to hardcode library paths into programs""... $ac_c" 1>&6
4031echo "configure:4032: checking how to hardcode library paths into programs" >&5
4032hardcode_action=
4033if test -n "$hardcode_libdir_flag_spec" || \
4034   test -n "$runpath_var"; then
4035
4036  # We can hardcode non-existant directories.
4037  if test "$hardcode_direct" != no &&
4038     # If the only mechanism to avoid hardcoding is shlibpath_var, we
4039     # have to relink, otherwise we might link with an installed library
4040     # when we should be linking with a yet-to-be-installed one
4041     ## test "$hardcode_shlibpath_var" != no &&
4042     test "$hardcode_minus_L" != no; then
4043    # Linking always hardcodes the temporary library directory.
4044    hardcode_action=relink
4045  else
4046    # We can link without hardcoding, and we can hardcode nonexisting dirs.
4047    hardcode_action=immediate
4048  fi
4049else
4050  # We cannot hardcode anything, or else we can only hardcode existing
4051  # directories.
4052  hardcode_action=unsupported
4053fi
4054echo "$ac_t""$hardcode_action" 1>&6
4055
4056striplib=
4057old_striplib=
4058echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6
4059echo "configure:4060: checking whether stripping libraries is possible" >&5
4060if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
4061  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
4062  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
4063  echo "$ac_t""yes" 1>&6
4064else
4065  echo "$ac_t""no" 1>&6
4066fi
4067
4068reload_cmds='$LD$reload_flag -o $output$reload_objs'
4069test -z "$deplibs_check_method" && deplibs_check_method=unknown
4070
4071# PORTME Fill in your ld.so characteristics
4072echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6
4073echo "configure:4074: checking dynamic linker characteristics" >&5
4074library_names_spec=
4075libname_spec='lib$name'
4076soname_spec=
4077postinstall_cmds=
4078postuninstall_cmds=
4079finish_cmds=
4080finish_eval=
4081shlibpath_var=
4082shlibpath_overrides_runpath=unknown
4083version_type=none
4084dynamic_linker="$host_os ld.so"
4085sys_lib_dlsearch_path_spec="/lib /usr/lib"
4086sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
4087
4088case $host_os in
4089aix3*)
4090  version_type=linux
4091  library_names_spec='${libname}${release}.so$versuffix $libname.a'
4092  shlibpath_var=LIBPATH
4093
4094  # AIX has no versioning support, so we append a major version to the name.
4095  soname_spec='${libname}${release}.so$major'
4096  ;;
4097
4098aix4* | aix5*)
4099  version_type=linux
4100  if test "$host_cpu" = ia64; then
4101    # AIX 5 supports IA64
4102    library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
4103    shlibpath_var=LD_LIBRARY_PATH
4104  else
4105    # With GCC up to 2.95.x, collect2 would create an import file
4106    # for dependence libraries.  The import file would start with
4107    # the line `#! .'.  This would cause the generated library to
4108    # depend on `.', always an invalid library.  This was fixed in
4109    # development snapshots of GCC prior to 3.0.
4110    case $host_os in
4111       aix4 | aix4.[01] | aix4.[01].*)
4112      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
4113           echo ' yes '
4114           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
4115        :
4116      else
4117        can_build_shared=no
4118      fi
4119      ;;
4120    esac
4121    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
4122    # soname into executable. Probably we can add versioning support to
4123    # collect2, so additional links can be useful in future.
4124    if test "$aix_use_runtimelinking" = yes; then
4125      # If using run time linking (on AIX 4.2 or later) use lib<name>.so instead of
4126      # lib<name>.a to let people know that these are not typical AIX shared libraries.
4127      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4128    else
4129      # We preserve .a as extension for shared libraries through AIX4.2
4130      # and later when we are not doing run time linking.
4131      library_names_spec='${libname}${release}.a $libname.a'
4132      soname_spec='${libname}${release}.so$major'
4133    fi
4134    shlibpath_var=LIBPATH
4135    deplibs_check_method=pass_all
4136  fi
4137  ;;
4138
4139amigaos*)
4140  library_names_spec='$libname.ixlibrary $libname.a'
4141  # Create ${libname}_ixlibrary.a entries in /sys/libs.
4142  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'
4143  ;;
4144
4145beos*)
4146  library_names_spec='${libname}.so'
4147  dynamic_linker="$host_os ld.so"
4148  shlibpath_var=LIBRARY_PATH
4149  ;;
4150
4151bsdi4*)
4152  version_type=linux
4153  need_version=no
4154  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4155  soname_spec='${libname}${release}.so$major'
4156  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
4157  shlibpath_var=LD_LIBRARY_PATH
4158  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
4159  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
4160  export_dynamic_flag_spec=-rdynamic
4161  # the default ld.so.conf also contains /usr/contrib/lib and
4162  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
4163  # libtool to hard-code these into programs
4164  ;;
4165
4166cygwin* | mingw* | pw32*)
4167  version_type=windows
4168  need_version=no
4169  need_lib_prefix=no
4170  case $GCC,$host_os in
4171  yes,cygwin*)
4172    library_names_spec='$libname.dll.a'
4173    soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
4174    postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
4175      dldir=$destdir/`dirname \$dlpath`~
4176      test -d \$dldir || mkdir -p \$dldir~
4177      $install_prog .libs/$dlname \$dldir/$dlname'
4178    postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
4179      dlpath=$dir/\$dldll~
4180       $rm \$dlpath'
4181    ;;
4182  yes,mingw*)
4183    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
4184    sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
4185    ;;
4186  yes,pw32*)
4187    library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
4188    ;;
4189  *)
4190    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
4191    ;;
4192  esac
4193  dynamic_linker='Win32 ld.exe'
4194  # FIXME: first we should search . and the directory the executable is in
4195  shlibpath_var=PATH
4196  ;;
4197
4198darwin* | rhapsody*)
4199  dynamic_linker="$host_os dyld"
4200  version_type=darwin
4201  need_lib_prefix=no
4202  need_version=no
4203  # FIXME: Relying on posixy $() will cause problems for
4204  #        cross-compilation, but unfortunately the echo tests do not
4205  #        yet detect zsh echo's removal of \ escapes.
4206  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)'
4207  soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
4208  shlibpath_overrides_runpath=yes
4209  shlibpath_var=DYLD_LIBRARY_PATH
4210  ;;
4211
4212freebsd1*)
4213  dynamic_linker=no
4214  ;;
4215
4216freebsd*)
4217  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
4218  version_type=freebsd-$objformat
4219  case $version_type in
4220    freebsd-elf*)
4221      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
4222      need_version=no
4223      need_lib_prefix=no
4224      ;;
4225    freebsd-*)
4226      library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
4227      need_version=yes
4228      ;;
4229  esac
4230  shlibpath_var=LD_LIBRARY_PATH
4231  case $host_os in
4232  freebsd2*)
4233    shlibpath_overrides_runpath=yes
4234    ;;
4235  *)
4236    shlibpath_overrides_runpath=no
4237    hardcode_into_libs=yes
4238    ;;
4239  esac
4240  ;;
4241
4242gnu*)
4243  version_type=linux
4244  need_lib_prefix=no
4245  need_version=no
4246  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
4247  soname_spec='${libname}${release}.so$major'
4248  shlibpath_var=LD_LIBRARY_PATH
4249  hardcode_into_libs=yes
4250  ;;
4251
4252hpux9* | hpux10* | hpux11*)
4253  # Give a soname corresponding to the major version so that dld.sl refuses to
4254  # link against other versions.
4255  dynamic_linker="$host_os dld.sl"
4256  version_type=sunos
4257  need_lib_prefix=no
4258  need_version=no
4259  shlibpath_var=SHLIB_PATH
4260  shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
4261  library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
4262  soname_spec='${libname}${release}.sl$major'
4263  # HP-UX runs *really* slowly unless shared libraries are mode 555.
4264  postinstall_cmds='chmod 555 $lib'
4265  ;;
4266
4267irix5* | irix6*)
4268  version_type=irix
4269  need_lib_prefix=no
4270  need_version=no
4271  soname_spec='${libname}${release}.so$major'
4272  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
4273  case $host_os in
4274  irix5*)
4275    libsuff= shlibsuff=
4276    ;;
4277  *)
4278    case $LD in # libtool.m4 will add one of these switches to LD
4279    *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
4280    *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
4281    *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
4282    *) libsuff= shlibsuff= libmagic=never-match;;
4283    esac
4284    ;;
4285  esac
4286  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
4287  shlibpath_overrides_runpath=no
4288  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
4289  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
4290  ;;
4291
4292# No shared lib support for Linux oldld, aout, or coff.
4293linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
4294  dynamic_linker=no
4295  ;;
4296
4297# This must be Linux ELF.
4298linux-gnu*)
4299  version_type=linux
4300  need_lib_prefix=no
4301  need_version=no
4302  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4303  soname_spec='${libname}${release}.so$major'
4304  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
4305  shlibpath_var=LD_LIBRARY_PATH
4306  shlibpath_overrides_runpath=no
4307  # This implies no fast_install, which is unacceptable.
4308  # Some rework will be needed to allow for fast_install
4309  # before this can be enabled.
4310  hardcode_into_libs=yes
4311
4312  # We used to test for /lib/ld.so.1 and disable shared libraries on
4313  # powerpc, because MkLinux only supported shared libraries with the
4314  # GNU dynamic linker.  Since this was broken with cross compilers,
4315  # most powerpc-linux boxes support dynamic linking these days and
4316  # people can always --disable-shared, the test was removed, and we
4317  # assume the GNU/Linux dynamic linker is in use.
4318  dynamic_linker='GNU/Linux ld.so'
4319  ;;
4320
4321netbsd*)
4322  version_type=sunos
4323  need_lib_prefix=no
4324  need_version=no
4325  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4326    library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
4327    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4328    dynamic_linker='NetBSD (a.out) ld.so'
4329  else
4330    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
4331    soname_spec='${libname}${release}.so$major'
4332    dynamic_linker='NetBSD ld.elf_so'
4333  fi
4334  shlibpath_var=LD_LIBRARY_PATH
4335  shlibpath_overrides_runpath=yes
4336  hardcode_into_libs=yes
4337  ;;
4338
4339newsos6)
4340  version_type=linux
4341  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4342  shlibpath_var=LD_LIBRARY_PATH
4343  shlibpath_overrides_runpath=yes
4344  ;;
4345
4346openbsd*)
4347  version_type=sunos
4348  if test "$with_gnu_ld" = yes; then
4349    need_lib_prefix=no
4350    need_version=no
4351  fi
4352  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
4353  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
4354  shlibpath_var=LD_LIBRARY_PATH
4355  ;;
4356
4357os2*)
4358  libname_spec='$name'
4359  need_lib_prefix=no
4360  library_names_spec='$libname.dll $libname.a'
4361  dynamic_linker='OS/2 ld.exe'
4362  shlibpath_var=LIBPATH
4363  ;;
4364
4365osf3* | osf4* | osf5*)
4366  version_type=osf
4367  need_version=no
4368  soname_spec='${libname}${release}.so'
4369  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
4370  shlibpath_var=LD_LIBRARY_PATH
4371  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
4372  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
4373  ;;
4374
4375sco3.2v5*)
4376  version_type=osf
4377  soname_spec='${libname}${release}.so$major'
4378  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4379  shlibpath_var=LD_LIBRARY_PATH
4380  ;;
4381
4382solaris*)
4383  version_type=linux
4384  need_lib_prefix=no
4385  need_version=no
4386  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4387  soname_spec='${libname}${release}.so$major'
4388  shlibpath_var=LD_LIBRARY_PATH
4389  shlibpath_overrides_runpath=yes
4390  hardcode_into_libs=yes
4391  # ldd complains unless libraries are executable
4392  postinstall_cmds='chmod +x $lib'
4393  ;;
4394
4395sunos4*)
4396  version_type=sunos
4397  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
4398  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
4399  shlibpath_var=LD_LIBRARY_PATH
4400  shlibpath_overrides_runpath=yes
4401  if test "$with_gnu_ld" = yes; then
4402    need_lib_prefix=no
4403  fi
4404  need_version=yes
4405  ;;
4406
4407sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4408  version_type=linux
4409  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4410  soname_spec='${libname}${release}.so$major'
4411  shlibpath_var=LD_LIBRARY_PATH
4412  case $host_vendor in
4413    sni)
4414      shlibpath_overrides_runpath=no
4415      ;;
4416    motorola)
4417      need_lib_prefix=no
4418      need_version=no
4419      shlibpath_overrides_runpath=no
4420      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
4421      ;;
4422  esac
4423  ;;
4424
4425uts4*)
4426  version_type=linux
4427  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4428  soname_spec='${libname}${release}.so$major'
4429  shlibpath_var=LD_LIBRARY_PATH
4430  ;;
4431
4432dgux*)
4433  version_type=linux
4434  need_lib_prefix=no
4435  need_version=no
4436  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
4437  soname_spec='${libname}${release}.so$major'
4438  shlibpath_var=LD_LIBRARY_PATH
4439  ;;
4440
4441sysv4*MP*)
4442  if test -d /usr/nec ;then
4443    version_type=linux
4444    library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
4445    soname_spec='$libname.so.$major'
4446    shlibpath_var=LD_LIBRARY_PATH
4447  fi
4448  ;;
4449
4450*)
4451  dynamic_linker=no
4452  ;;
4453esac
4454echo "$ac_t""$dynamic_linker" 1>&6
4455test "$dynamic_linker" = no && can_build_shared=no
4456
4457# Report the final consequences.
4458echo $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6
4459echo "configure:4460: checking if libtool supports shared libraries" >&5
4460echo "$ac_t""$can_build_shared" 1>&6
4461
4462if test "$hardcode_action" = relink; then
4463  # Fast installation is not supported
4464  enable_fast_install=no
4465elif test "$shlibpath_overrides_runpath" = yes ||
4466     test "$enable_shared" = no; then
4467  # Fast installation is not necessary
4468  enable_fast_install=needless
4469fi
4470
4471variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
4472if test "$GCC" = yes; then
4473  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
4474fi
4475
4476if test "x$enable_dlopen" != xyes; then
4477  enable_dlopen=unknown
4478  enable_dlopen_self=unknown
4479  enable_dlopen_self_static=unknown
4480else
4481  lt_cv_dlopen=no
4482  lt_cv_dlopen_libs=
4483
4484  case $host_os in
4485  beos*)
4486    lt_cv_dlopen="load_add_on"
4487    lt_cv_dlopen_libs=
4488    lt_cv_dlopen_self=yes
4489    ;;
4490
4491  cygwin* | mingw* | pw32*)
4492    lt_cv_dlopen="LoadLibrary"
4493    lt_cv_dlopen_libs=
4494   ;;
4495
4496  *)
4497    echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4498echo "configure:4499: checking for dlopen in -ldl" >&5
4499ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4500if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4501  echo $ac_n "(cached) $ac_c" 1>&6
4502else
4503  ac_save_LIBS="$LIBS"
4504LIBS="-ldl  $LIBS"
4505cat > conftest.$ac_ext <<EOF
4506#line 4507 "configure"
4507#include "confdefs.h"
4508/* Override any gcc2 internal prototype to avoid an error.  */
4509/* We use char because int might match the return type of a gcc2
4510    builtin and then its argument prototype would still apply.  */
4511char dlopen();
4512
4513int main() {
4514dlopen()
4515; return 0; }
4516EOF
4517if { (eval echo configure:4518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4518  rm -rf conftest*
4519  eval "ac_cv_lib_$ac_lib_var=yes"
4520else
4521  echo "configure: failed program was:" >&5
4522  cat conftest.$ac_ext >&5
4523  rm -rf conftest*
4524  eval "ac_cv_lib_$ac_lib_var=no"
4525fi
4526rm -f conftest*
4527LIBS="$ac_save_LIBS"
4528
4529fi
4530if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4531  echo "$ac_t""yes" 1>&6
4532  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
4533else
4534  echo "$ac_t""no" 1>&6
4535echo $ac_n "checking for dlopen""... $ac_c" 1>&6
4536echo "configure:4537: checking for dlopen" >&5
4537if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then
4538  echo $ac_n "(cached) $ac_c" 1>&6
4539else
4540  cat > conftest.$ac_ext <<EOF
4541#line 4542 "configure"
4542#include "confdefs.h"
4543/* System header to define __stub macros and hopefully few prototypes,
4544    which can conflict with char dlopen(); below.  */
4545#include <assert.h>
4546/* Override any gcc2 internal prototype to avoid an error.  */
4547/* We use char because int might match the return type of a gcc2
4548    builtin and then its argument prototype would still apply.  */
4549char dlopen();
4550
4551int main() {
4552
4553/* The GNU C library defines this for functions which it implements
4554    to always fail with ENOSYS.  Some functions are actually named
4555    something starting with __ and the normal name is an alias.  */
4556#if defined (__stub_dlopen) || defined (__stub___dlopen)
4557choke me
4558#else
4559dlopen();
4560#endif
4561
4562; return 0; }
4563EOF
4564if { (eval echo configure:4565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4565  rm -rf conftest*
4566  eval "ac_cv_func_dlopen=yes"
4567else
4568  echo "configure: failed program was:" >&5
4569  cat conftest.$ac_ext >&5
4570  rm -rf conftest*
4571  eval "ac_cv_func_dlopen=no"
4572fi
4573rm -f conftest*
4574fi
4575
4576if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
4577  echo "$ac_t""yes" 1>&6
4578  lt_cv_dlopen="dlopen"
4579else
4580  echo "$ac_t""no" 1>&6
4581echo $ac_n "checking for shl_load""... $ac_c" 1>&6
4582echo "configure:4583: checking for shl_load" >&5
4583if eval "test \"`echo '$''{'ac_cv_func_shl_load'+set}'`\" = set"; then
4584  echo $ac_n "(cached) $ac_c" 1>&6
4585else
4586  cat > conftest.$ac_ext <<EOF
4587#line 4588 "configure"
4588#include "confdefs.h"
4589/* System header to define __stub macros and hopefully few prototypes,
4590    which can conflict with char shl_load(); below.  */
4591#include <assert.h>
4592/* Override any gcc2 internal prototype to avoid an error.  */
4593/* We use char because int might match the return type of a gcc2
4594    builtin and then its argument prototype would still apply.  */
4595char shl_load();
4596
4597int main() {
4598
4599/* The GNU C library defines this for functions which it implements
4600    to always fail with ENOSYS.  Some functions are actually named
4601    something starting with __ and the normal name is an alias.  */
4602#if defined (__stub_shl_load) || defined (__stub___shl_load)
4603choke me
4604#else
4605shl_load();
4606#endif
4607
4608; return 0; }
4609EOF
4610if { (eval echo configure:4611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4611  rm -rf conftest*
4612  eval "ac_cv_func_shl_load=yes"
4613else
4614  echo "configure: failed program was:" >&5
4615  cat conftest.$ac_ext >&5
4616  rm -rf conftest*
4617  eval "ac_cv_func_shl_load=no"
4618fi
4619rm -f conftest*
4620fi
4621
4622if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
4623  echo "$ac_t""yes" 1>&6
4624  lt_cv_dlopen="shl_load"
4625else
4626  echo "$ac_t""no" 1>&6
4627echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6
4628echo "configure:4629: checking for dlopen in -lsvld" >&5
4629ac_lib_var=`echo svld'_'dlopen | sed 'y%./+-%__p_%'`
4630if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4631  echo $ac_n "(cached) $ac_c" 1>&6
4632else
4633  ac_save_LIBS="$LIBS"
4634LIBS="-lsvld  $LIBS"
4635cat > conftest.$ac_ext <<EOF
4636#line 4637 "configure"
4637#include "confdefs.h"
4638/* Override any gcc2 internal prototype to avoid an error.  */
4639/* We use char because int might match the return type of a gcc2
4640    builtin and then its argument prototype would still apply.  */
4641char dlopen();
4642
4643int main() {
4644dlopen()
4645; return 0; }
4646EOF
4647if { (eval echo configure:4648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4648  rm -rf conftest*
4649  eval "ac_cv_lib_$ac_lib_var=yes"
4650else
4651  echo "configure: failed program was:" >&5
4652  cat conftest.$ac_ext >&5
4653  rm -rf conftest*
4654  eval "ac_cv_lib_$ac_lib_var=no"
4655fi
4656rm -f conftest*
4657LIBS="$ac_save_LIBS"
4658
4659fi
4660if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4661  echo "$ac_t""yes" 1>&6
4662  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
4663else
4664  echo "$ac_t""no" 1>&6
4665echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
4666echo "configure:4667: checking for shl_load in -ldld" >&5
4667ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
4668if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4669  echo $ac_n "(cached) $ac_c" 1>&6
4670else
4671  ac_save_LIBS="$LIBS"
4672LIBS="-ldld  $LIBS"
4673cat > conftest.$ac_ext <<EOF
4674#line 4675 "configure"
4675#include "confdefs.h"
4676/* Override any gcc2 internal prototype to avoid an error.  */
4677/* We use char because int might match the return type of a gcc2
4678    builtin and then its argument prototype would still apply.  */
4679char shl_load();
4680
4681int main() {
4682shl_load()
4683; return 0; }
4684EOF
4685if { (eval echo configure:4686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4686  rm -rf conftest*
4687  eval "ac_cv_lib_$ac_lib_var=yes"
4688else
4689  echo "configure: failed program was:" >&5
4690  cat conftest.$ac_ext >&5
4691  rm -rf conftest*
4692  eval "ac_cv_lib_$ac_lib_var=no"
4693fi
4694rm -f conftest*
4695LIBS="$ac_save_LIBS"
4696
4697fi
4698if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4699  echo "$ac_t""yes" 1>&6
4700  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
4701else
4702  echo "$ac_t""no" 1>&6
4703fi
4704
4705           
4706fi
4707
4708         
4709fi
4710
4711       
4712fi
4713
4714     
4715fi
4716
4717    ;;
4718  esac
4719
4720  if test "x$lt_cv_dlopen" != xno; then
4721    enable_dlopen=yes
4722  else
4723    enable_dlopen=no
4724  fi
4725
4726  case $lt_cv_dlopen in
4727  dlopen)
4728    save_CPPFLAGS="$CPPFLAGS"
4729        test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
4730
4731    save_LDFLAGS="$LDFLAGS"
4732    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
4733
4734    save_LIBS="$LIBS"
4735    LIBS="$lt_cv_dlopen_libs $LIBS"
4736
4737    echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6
4738echo "configure:4739: checking whether a program can dlopen itself" >&5
4739if eval "test \"`echo '$''{'lt_cv_dlopen_self'+set}'`\" = set"; then
4740  echo $ac_n "(cached) $ac_c" 1>&6
4741else
4742          if test "$cross_compiling" = yes; then :
4743  lt_cv_dlopen_self=cross
4744else
4745    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
4746  lt_status=$lt_dlunknown
4747  cat > conftest.$ac_ext <<EOF
4748#line 4749 "configure"
4749#include "confdefs.h"
4750
4751#if HAVE_DLFCN_H
4752#include <dlfcn.h>
4753#endif
4754
4755#include <stdio.h>
4756
4757#ifdef RTLD_GLOBAL
4758#  define LT_DLGLOBAL           RTLD_GLOBAL
4759#else
4760#  ifdef DL_GLOBAL
4761#    define LT_DLGLOBAL         DL_GLOBAL
4762#  else
4763#    define LT_DLGLOBAL         0
4764#  endif
4765#endif
4766
4767/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
4768   find out it does not work in some platform. */
4769#ifndef LT_DLLAZY_OR_NOW
4770#  ifdef RTLD_LAZY
4771#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
4772#  else
4773#    ifdef DL_LAZY
4774#      define LT_DLLAZY_OR_NOW          DL_LAZY
4775#    else
4776#      ifdef RTLD_NOW
4777#        define LT_DLLAZY_OR_NOW        RTLD_NOW
4778#      else
4779#        ifdef DL_NOW
4780#          define LT_DLLAZY_OR_NOW      DL_NOW
4781#        else
4782#          define LT_DLLAZY_OR_NOW      0
4783#        endif
4784#      endif
4785#    endif
4786#  endif
4787#endif
4788
4789#ifdef __cplusplus
4790extern "C" void exit (int);
4791#endif
4792
4793void fnord() { int i=42;}
4794int main ()
4795{
4796  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
4797  int status = $lt_dlunknown;
4798
4799  if (self)
4800    {
4801      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
4802      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
4803      /* dlclose (self); */
4804    }
4805
4806    exit (status);
4807}
4808EOF
4809  if { (eval echo configure:4810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
4810    (./conftest; exit; ) 2>/dev/null
4811    lt_status=$?
4812    case x$lt_status in
4813      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
4814      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
4815      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
4816    esac
4817  else :
4818    # compilation failed
4819    lt_cv_dlopen_self=no
4820  fi
4821fi
4822rm -fr conftest*
4823
4824   
4825fi
4826
4827echo "$ac_t""$lt_cv_dlopen_self" 1>&6
4828
4829    if test "x$lt_cv_dlopen_self" = xyes; then
4830      LDFLAGS="$LDFLAGS $link_static_flag"
4831      echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6
4832echo "configure:4833: checking whether a statically linked program can dlopen itself" >&5
4833if eval "test \"`echo '$''{'lt_cv_dlopen_self_static'+set}'`\" = set"; then
4834  echo $ac_n "(cached) $ac_c" 1>&6
4835else
4836          if test "$cross_compiling" = yes; then :
4837  lt_cv_dlopen_self_static=cross
4838else
4839    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
4840  lt_status=$lt_dlunknown
4841  cat > conftest.$ac_ext <<EOF
4842#line 4843 "configure"
4843#include "confdefs.h"
4844
4845#if HAVE_DLFCN_H
4846#include <dlfcn.h>
4847#endif
4848
4849#include <stdio.h>
4850
4851#ifdef RTLD_GLOBAL
4852#  define LT_DLGLOBAL           RTLD_GLOBAL
4853#else
4854#  ifdef DL_GLOBAL
4855#    define LT_DLGLOBAL         DL_GLOBAL
4856#  else
4857#    define LT_DLGLOBAL         0
4858#  endif
4859#endif
4860
4861/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
4862   find out it does not work in some platform. */
4863#ifndef LT_DLLAZY_OR_NOW
4864#  ifdef RTLD_LAZY
4865#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
4866#  else
4867#    ifdef DL_LAZY
4868#      define LT_DLLAZY_OR_NOW          DL_LAZY
4869#    else
4870#      ifdef RTLD_NOW
4871#        define LT_DLLAZY_OR_NOW        RTLD_NOW
4872#      else
4873#        ifdef DL_NOW
4874#          define LT_DLLAZY_OR_NOW      DL_NOW
4875#        else
4876#          define LT_DLLAZY_OR_NOW      0
4877#        endif
4878#      endif
4879#    endif
4880#  endif
4881#endif
4882
4883#ifdef __cplusplus
4884extern "C" void exit (int);
4885#endif
4886
4887void fnord() { int i=42;}
4888int main ()
4889{
4890  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
4891  int status = $lt_dlunknown;
4892
4893  if (self)
4894    {
4895      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
4896      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
4897      /* dlclose (self); */
4898    }
4899
4900    exit (status);
4901}
4902EOF
4903  if { (eval echo configure:4904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
4904    (./conftest; exit; ) 2>/dev/null
4905    lt_status=$?
4906    case x$lt_status in
4907      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
4908      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
4909      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
4910    esac
4911  else :
4912    # compilation failed
4913    lt_cv_dlopen_self_static=no
4914  fi
4915fi
4916rm -fr conftest*
4917
4918     
4919fi
4920
4921echo "$ac_t""$lt_cv_dlopen_self_static" 1>&6
4922    fi
4923
4924    CPPFLAGS="$save_CPPFLAGS"
4925    LDFLAGS="$save_LDFLAGS"
4926    LIBS="$save_LIBS"
4927    ;;
4928  esac
4929
4930  case $lt_cv_dlopen_self in
4931  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
4932  *) enable_dlopen_self=unknown ;;
4933  esac
4934
4935  case $lt_cv_dlopen_self_static in
4936  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
4937  *) enable_dlopen_self_static=unknown ;;
4938  esac
4939fi
4940
4941
4942if test "$enable_shared" = yes && test "$GCC" = yes; then
4943  case $archive_cmds in
4944  *'~'*)
4945    # FIXME: we may have to deal with multi-command sequences.
4946    ;;
4947  '$CC '*)
4948    # Test whether the compiler implicitly links with -lc since on some
4949    # systems, -lgcc has to come before -lc. If gcc already passes -lc
4950    # to ld, don't add -lc before -lgcc.
4951    echo $ac_n "checking whether -lc should be explicitly linked in""... $ac_c" 1>&6
4952echo "configure:4953: checking whether -lc should be explicitly linked in" >&5
4953    if eval "test \"`echo '$''{'lt_cv_archive_cmds_need_lc'+set}'`\" = set"; then
4954  echo $ac_n "(cached) $ac_c" 1>&6
4955else
4956  $rm conftest*
4957    echo 'static int dummy;' > conftest.$ac_ext
4958
4959    if { (eval echo configure:4960: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4960      soname=conftest
4961      lib=conftest
4962      libobjs=conftest.$ac_objext
4963      deplibs=
4964      wl=$lt_cv_prog_cc_wl
4965      compiler_flags=-v
4966      linker_flags=-v
4967      verstring=
4968      output_objdir=.
4969      libname=conftest
4970      save_allow_undefined_flag=$allow_undefined_flag
4971      allow_undefined_flag=
4972      if { (eval echo configure:4973: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\") 1>&5; (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5; }
4973      then
4974        lt_cv_archive_cmds_need_lc=no
4975      else
4976        lt_cv_archive_cmds_need_lc=yes
4977      fi
4978      allow_undefined_flag=$save_allow_undefined_flag
4979    else
4980      cat conftest.err 1>&5
4981    fi
4982fi
4983
4984    echo "$ac_t""$lt_cv_archive_cmds_need_lc" 1>&6
4985    ;;
4986  esac
4987fi
4988need_lc=${lt_cv_archive_cmds_need_lc-yes}
4989
4990# The second clause should only fire when bootstrapping the
4991# libtool distribution, otherwise you forgot to ship ltmain.sh
4992# with your package, and you will get complaints that there are
4993# no rules to generate ltmain.sh.
4994if test -f "$ltmain"; then
4995  :
4996else
4997  # If there is no Makefile yet, we rely on a make rule to execute
4998  # `config.status --recheck' to rerun these tests and create the
4999  # libtool script then.
5000  test -f Makefile && make "$ltmain"
5001fi
5002
5003if test -f "$ltmain"; then
5004  trap "$rm \"${ofile}T\"; exit 1" 1 2 15
5005  $rm -f "${ofile}T"
5006
5007  echo creating $ofile
5008
5009  # Now quote all the things that may contain metacharacters while being
5010  # careful not to overquote the AC_SUBSTed values.  We take copies of the
5011  # variables and quote the copies for generation of the libtool script.
5012  for var in echo old_CC old_CFLAGS \
5013    AR AR_FLAGS CC LD LN_S NM SHELL \
5014    reload_flag reload_cmds wl \
5015    pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
5016    thread_safe_flag_spec whole_archive_flag_spec libname_spec \
5017    library_names_spec soname_spec \
5018    RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
5019    old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
5020    postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
5021    old_striplib striplib file_magic_cmd export_symbols_cmds \
5022    deplibs_check_method allow_undefined_flag no_undefined_flag \
5023    finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
5024    hardcode_libdir_flag_spec hardcode_libdir_separator  \
5025    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
5026    compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
5027
5028    case $var in
5029    reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
5030    old_postinstall_cmds | old_postuninstall_cmds | \
5031    export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
5032    extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
5033    postinstall_cmds | postuninstall_cmds | \
5034    finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
5035      # Double-quote double-evaled strings.
5036      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
5037      ;;
5038    *)
5039      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
5040      ;;
5041    esac
5042  done
5043
5044  cat <<__EOF__ > "${ofile}T"
5045#! $SHELL
5046
5047# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
5048# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
5049# NOTE: Changes made to this file will be lost: look at ltmain.sh.
5050#
5051# Copyright (C) 1996-2000 Free Software Foundation, Inc.
5052# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
5053#
5054# This program is free software; you can redistribute it and/or modify
5055# it under the terms of the GNU General Public License as published by
5056# the Free Software Foundation; either version 2 of the License, or
5057# (at your option) any later version.
5058#
5059# This program is distributed in the hope that it will be useful, but
5060# WITHOUT ANY WARRANTY; without even the implied warranty of
5061# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
5062# General Public License for more details.
5063#
5064# You should have received a copy of the GNU General Public License
5065# along with this program; if not, write to the Free Software
5066# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
5067#
5068# As a special exception to the GNU General Public License, if you
5069# distribute this file as part of a program that contains a
5070# configuration script generated by Autoconf, you may include it under
5071# the same distribution terms that you use for the rest of that program.
5072
5073# Sed that helps us avoid accidentally triggering echo(1) options like -n.
5074Xsed="sed -e s/^X//"
5075
5076# The HP-UX ksh and POSIX shell print the target directory to stdout
5077# if CDPATH is set.
5078if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
5079
5080# ### BEGIN LIBTOOL CONFIG
5081
5082# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5083
5084# Shell to use when invoking shell scripts.
5085SHELL=$lt_SHELL
5086
5087# Whether or not to build shared libraries.
5088build_libtool_libs=$enable_shared
5089
5090# Whether or not to add -lc for building shared libraries.
5091build_libtool_need_lc=$need_lc
5092
5093# Whether or not to build static libraries.
5094build_old_libs=$enable_static
5095
5096# Whether or not to optimize for fast installation.
5097fast_install=$enable_fast_install
5098
5099# The host system.
5100host_alias=$host_alias
5101host=$host
5102
5103# An echo program that does not interpret backslashes.
5104echo=$lt_echo
5105
5106# The archiver.
5107AR=$lt_AR
5108AR_FLAGS=$lt_AR_FLAGS
5109
5110# The default C compiler.
5111CC=$lt_CC
5112
5113# Is the compiler the GNU C compiler?
5114with_gcc=$GCC
5115
5116# The linker used to build libraries.
5117LD=$lt_LD
5118
5119# Whether we need hard or soft links.
5120LN_S=$lt_LN_S
5121
5122# A BSD-compatible nm program.
5123NM=$lt_NM
5124
5125# A symbol stripping program
5126STRIP=$STRIP
5127
5128# Used to examine libraries when file_magic_cmd begins "file"
5129MAGIC_CMD=$MAGIC_CMD
5130
5131# Used on cygwin: DLL creation program.
5132DLLTOOL="$DLLTOOL"
5133
5134# Used on cygwin: object dumper.
5135OBJDUMP="$OBJDUMP"
5136
5137# Used on cygwin: assembler.
5138AS="$AS"
5139
5140# The name of the directory that contains temporary libtool files.
5141objdir=$objdir
5142
5143# How to create reloadable object files.
5144reload_flag=$lt_reload_flag
5145reload_cmds=$lt_reload_cmds
5146
5147# How to pass a linker flag through the compiler.
5148wl=$lt_wl
5149
5150# Object file suffix (normally "o").
5151objext="$ac_objext"
5152
5153# Old archive suffix (normally "a").
5154libext="$libext"
5155
5156# Executable file suffix (normally "").
5157exeext="$exeext"
5158
5159# Additional compiler flags for building library objects.
5160pic_flag=$lt_pic_flag
5161pic_mode=$pic_mode
5162
5163# Does compiler simultaneously support -c and -o options?
5164compiler_c_o=$lt_compiler_c_o
5165
5166# Can we write directly to a .lo ?
5167compiler_o_lo=$lt_compiler_o_lo
5168
5169# Must we lock files when doing compilation ?
5170need_locks=$lt_need_locks
5171
5172# Do we need the lib prefix for modules?
5173need_lib_prefix=$need_lib_prefix
5174
5175# Do we need a version for libraries?
5176need_version=$need_version
5177
5178# Whether dlopen is supported.
5179dlopen_support=$enable_dlopen
5180
5181# Whether dlopen of programs is supported.
5182dlopen_self=$enable_dlopen_self
5183
5184# Whether dlopen of statically linked programs is supported.
5185dlopen_self_static=$enable_dlopen_self_static
5186
5187# Compiler flag to prevent dynamic linking.
5188link_static_flag=$lt_link_static_flag
5189
5190# Compiler flag to turn off builtin functions.
5191no_builtin_flag=$lt_no_builtin_flag
5192
5193# Compiler flag to allow reflexive dlopens.
5194export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
5195
5196# Compiler flag to generate shared objects directly from archives.
5197whole_archive_flag_spec=$lt_whole_archive_flag_spec
5198
5199# Compiler flag to generate thread-safe objects.
5200thread_safe_flag_spec=$lt_thread_safe_flag_spec
5201
5202# Library versioning type.
5203version_type=$version_type
5204
5205# Format of library name prefix.
5206libname_spec=$lt_libname_spec
5207
5208# List of archive names.  First name is the real one, the rest are links.
5209# The last name is the one that the linker finds with -lNAME.
5210library_names_spec=$lt_library_names_spec
5211
5212# The coded name of the library, if different from the real name.
5213soname_spec=$lt_soname_spec
5214
5215# Commands used to build and install an old-style archive.
5216RANLIB=$lt_RANLIB
5217old_archive_cmds=$lt_old_archive_cmds
5218old_postinstall_cmds=$lt_old_postinstall_cmds
5219old_postuninstall_cmds=$lt_old_postuninstall_cmds
5220
5221# Create an old-style archive from a shared archive.
5222old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
5223
5224# Create a temporary old-style archive to link instead of a shared archive.
5225old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
5226
5227# Commands used to build and install a shared archive.
5228archive_cmds=$lt_archive_cmds
5229archive_expsym_cmds=$lt_archive_expsym_cmds
5230postinstall_cmds=$lt_postinstall_cmds
5231postuninstall_cmds=$lt_postuninstall_cmds
5232
5233# Commands to strip libraries.
5234old_striplib=$lt_old_striplib
5235striplib=$lt_striplib
5236
5237# Method to check whether dependent libraries are shared objects.
5238deplibs_check_method=$lt_deplibs_check_method
5239
5240# Command to use when deplibs_check_method == file_magic.
5241file_magic_cmd=$lt_file_magic_cmd
5242
5243# Flag that allows shared libraries with undefined symbols to be built.
5244allow_undefined_flag=$lt_allow_undefined_flag
5245
5246# Flag that forces no undefined symbols.
5247no_undefined_flag=$lt_no_undefined_flag
5248
5249# Commands used to finish a libtool library installation in a directory.
5250finish_cmds=$lt_finish_cmds
5251
5252# Same as above, but a single script fragment to be evaled but not shown.
5253finish_eval=$lt_finish_eval
5254
5255# Take the output of nm and produce a listing of raw symbols and C names.
5256global_symbol_pipe=$lt_global_symbol_pipe
5257
5258# Transform the output of nm in a proper C declaration
5259global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
5260
5261# This is the shared library runtime path variable.
5262runpath_var=$runpath_var
5263
5264# This is the shared library path variable.
5265shlibpath_var=$shlibpath_var
5266
5267# Is shlibpath searched before the hard-coded library search path?
5268shlibpath_overrides_runpath=$shlibpath_overrides_runpath
5269
5270# How to hardcode a shared library path into an executable.
5271hardcode_action=$hardcode_action
5272
5273# Whether we should hardcode library paths into libraries.
5274hardcode_into_libs=$hardcode_into_libs
5275
5276# Flag to hardcode \$libdir into a binary during linking.
5277# This must work even if \$libdir does not exist.
5278hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
5279
5280# Whether we need a single -rpath flag with a separated argument.
5281hardcode_libdir_separator=$lt_hardcode_libdir_separator
5282
5283# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
5284# resulting binary.
5285hardcode_direct=$hardcode_direct
5286
5287# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
5288# resulting binary.
5289hardcode_minus_L=$hardcode_minus_L
5290
5291# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
5292# the resulting binary.
5293hardcode_shlibpath_var=$hardcode_shlibpath_var
5294
5295# Variables whose values should be saved in libtool wrapper scripts and
5296# restored at relink time.
5297variables_saved_for_relink="$variables_saved_for_relink"
5298
5299# Whether libtool must link a program against all its dependency libraries.
5300link_all_deplibs=$link_all_deplibs
5301
5302# Compile-time system search path for libraries
5303sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
5304
5305# Run-time system search path for libraries
5306sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
5307
5308# Fix the shell variable \$srcfile for the compiler.
5309fix_srcfile_path="$fix_srcfile_path"
5310
5311# Set to yes if exported symbols are required.
5312always_export_symbols=$always_export_symbols
5313
5314# The commands to list exported symbols.
5315export_symbols_cmds=$lt_export_symbols_cmds
5316
5317# The commands to extract the exported symbol list from a shared archive.
5318extract_expsyms_cmds=$lt_extract_expsyms_cmds
5319
5320# Symbols that should not be listed in the preloaded symbols.
5321exclude_expsyms=$lt_exclude_expsyms
5322
5323# Symbols that must always be exported.
5324include_expsyms=$lt_include_expsyms
5325
5326# ### END LIBTOOL CONFIG
5327
5328__EOF__
5329
5330  case $host_os in
5331  aix3*)
5332    cat <<\EOF >> "${ofile}T"
5333
5334# AIX sometimes has problems with the GCC collect2 program.  For some
5335# reason, if we set the COLLECT_NAMES environment variable, the problems
5336# vanish in a puff of smoke.
5337if test "X${COLLECT_NAMES+set}" != Xset; then
5338  COLLECT_NAMES=
5339  export COLLECT_NAMES
5340fi
5341EOF
5342    ;;
5343  esac
5344
5345  case $host_os in
5346  cygwin* | mingw* | pw32* | os2*)
5347    cat <<'EOF' >> "${ofile}T"
5348      # This is a source program that is used to create dlls on Windows
5349      # Don't remove nor modify the starting and closing comments
5350# /* ltdll.c starts here */
5351# #define WIN32_LEAN_AND_MEAN
5352# #include <windows.h>
5353# #undef WIN32_LEAN_AND_MEAN
5354# #include <stdio.h>
5355#
5356# #ifndef __CYGWIN__
5357# #  ifdef __CYGWIN32__
5358# #    define __CYGWIN__ __CYGWIN32__
5359# #  endif
5360# #endif
5361#
5362# #ifdef __cplusplus
5363# extern "C" {
5364# #endif
5365# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
5366# #ifdef __cplusplus
5367# }
5368# #endif
5369#
5370# #ifdef __CYGWIN__
5371# #include <cygwin/cygwin_dll.h>
5372# DECLARE_CYGWIN_DLL( DllMain );
5373# #endif
5374# HINSTANCE __hDllInstance_base;
5375#
5376# BOOL APIENTRY
5377# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
5378# {
5379#   __hDllInstance_base = hInst;
5380#   return TRUE;
5381# }
5382# /* ltdll.c ends here */
5383        # This is a source program that is used to create import libraries
5384        # on Windows for dlls which lack them. Don't remove nor modify the
5385        # starting and closing comments
5386# /* impgen.c starts here */
5387# /*   Copyright (C) 1999-2000 Free Software Foundation, Inc.
5388#
5389#  This file is part of GNU libtool.
5390#
5391#  This program is free software; you can redistribute it and/or modify
5392#  it under the terms of the GNU General Public License as published by
5393#  the Free Software Foundation; either version 2 of the License, or
5394#  (at your option) any later version.
5395#
5396#  This program is distributed in the hope that it will be useful,
5397#  but WITHOUT ANY WARRANTY; without even the implied warranty of
5398#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
5399#  GNU General Public License for more details.
5400#
5401#  You should have received a copy of the GNU General Public License
5402#  along with this program; if not, write to the Free Software
5403#  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
5404#  */
5405#
5406# #include <stdio.h>            /* for printf() */
5407# #include <unistd.h>           /* for open(), lseek(), read() */
5408# #include <fcntl.h>            /* for O_RDONLY, O_BINARY */
5409# #include <string.h>           /* for strdup() */
5410#
5411# /* O_BINARY isn't required (or even defined sometimes) under Unix */
5412# #ifndef O_BINARY
5413# #define O_BINARY 0
5414# #endif
5415#
5416# static unsigned int
5417# pe_get16 (fd, offset)
5418#      int fd;
5419#      int offset;
5420# {
5421#   unsigned char b[2];
5422#   lseek (fd, offset, SEEK_SET);
5423#   read (fd, b, 2);
5424#   return b[0] + (b[1]<<8);
5425# }
5426#
5427# static unsigned int
5428# pe_get32 (fd, offset)
5429#     int fd;
5430#     int offset;
5431# {
5432#   unsigned char b[4];
5433#   lseek (fd, offset, SEEK_SET);
5434#   read (fd, b, 4);
5435#   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
5436# }
5437#
5438# static unsigned int
5439# pe_as32 (ptr)
5440#      void *ptr;
5441# {
5442#   unsigned char *b = ptr;
5443#   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
5444# }
5445#
5446# int
5447# main (argc, argv)
5448#     int argc;
5449#     char *argv[];
5450# {
5451#     int dll;
5452#     unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
5453#     unsigned long export_rva, export_size, nsections, secptr, expptr;
5454#     unsigned long name_rvas, nexp;
5455#     unsigned char *expdata, *erva;
5456#     char *filename, *dll_name;
5457#
5458#     filename = argv[1];
5459#
5460#     dll = open(filename, O_RDONLY|O_BINARY);
5461#     if (dll < 1)
5462#       return 1;
5463#
5464#     dll_name = filename;
5465#
5466#     for (i=0; filename[i]; i++)
5467#       if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':')
5468#           dll_name = filename + i +1;
5469#
5470#     pe_header_offset = pe_get32 (dll, 0x3c);
5471#     opthdr_ofs = pe_header_offset + 4 + 20;
5472#     num_entries = pe_get32 (dll, opthdr_ofs + 92);
5473#
5474#     if (num_entries < 1) /* no exports */
5475#       return 1;
5476#
5477#     export_rva = pe_get32 (dll, opthdr_ofs + 96);
5478#     export_size = pe_get32 (dll, opthdr_ofs + 100);
5479#     nsections = pe_get16 (dll, pe_header_offset + 4 +2);
5480#     secptr = (pe_header_offset + 4 + 20 +
5481#             pe_get16 (dll, pe_header_offset + 4 + 16));
5482#
5483#     expptr = 0;
5484#     for (i = 0; i < nsections; i++)
5485#     {
5486#       char sname[8];
5487#       unsigned long secptr1 = secptr + 40 * i;
5488#       unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
5489#       unsigned long vsize = pe_get32 (dll, secptr1 + 16);
5490#       unsigned long fptr = pe_get32 (dll, secptr1 + 20);
5491#       lseek(dll, secptr1, SEEK_SET);
5492#       read(dll, sname, 8);
5493#       if (vaddr <= export_rva && vaddr+vsize > export_rva)
5494#       {
5495#           expptr = fptr + (export_rva - vaddr);
5496#           if (export_rva + export_size > vaddr + vsize)
5497#               export_size = vsize - (export_rva - vaddr);
5498#           break;
5499#       }
5500#     }
5501#
5502#     expdata = (unsigned char*)malloc(export_size);
5503#     lseek (dll, expptr, SEEK_SET);
5504#     read (dll, expdata, export_size);
5505#     erva = expdata - export_rva;
5506#
5507#     nexp = pe_as32 (expdata+24);
5508#     name_rvas = pe_as32 (expdata+32);
5509#
5510#     printf ("EXPORTS\n");
5511#     for (i = 0; i<nexp; i++)
5512#     {
5513#       unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
5514#       printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
5515#     }
5516#
5517#     return 0;
5518# }
5519# /* impgen.c ends here */
5520
5521EOF
5522    ;;
5523  esac
5524
5525  # We use sed instead of cat because bash on DJGPP gets confused if
5526  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
5527  # text mode, it properly converts lines to CR/LF.  This bash problem
5528  # is reportedly fixed, but why not run on old versions too?
5529  sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
5530
5531  mv -f "${ofile}T" "$ofile" || \
5532    (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
5533  chmod +x "$ofile"
5534fi
5535
5536
5537
5538
5539
5540# This can be used to rebuild libtool when needed
5541LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
5542
5543# Always use our own libtool.
5544LIBTOOL='$(SHELL) $(top_builddir)/libtool'
5545
5546# Prevent multiple expansion
5547
5548
5549
5550echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
5551echo "configure:5552: checking whether to enable maintainer-specific portions of Makefiles" >&5
5552    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
5553if test "${enable_maintainer_mode+set}" = set; then
5554  enableval="$enable_maintainer_mode"
5555  USE_MAINTAINER_MODE=$enableval
5556else
5557  USE_MAINTAINER_MODE=no
5558fi
5559
5560  echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
5561 
5562
5563if test $USE_MAINTAINER_MODE = yes; then
5564  MAINTAINER_MODE_TRUE=
5565  MAINTAINER_MODE_FALSE='#'
5566else
5567  MAINTAINER_MODE_TRUE='#'
5568  MAINTAINER_MODE_FALSE=
5569fi
5570  MAINT=$MAINTAINER_MODE_TRUE
5571 
5572
5573
5574_cppflags="${CPPFLAGS}"
5575_ldflags="${LDFLAGS}"
5576
5577
5578# Check whether --with-zlib or --without-zlib was given.
5579if test "${with_zlib+set}" = set; then
5580  withval="$with_zlib"
5581 
5582  if test "$withval" != "no" -a "$withval" != "yes"; then
5583    Z_DIR=$withval
5584    CPPFLAGS="${CPPFLAGS} -I$withval/include"
5585    LDFLAGS="${LDFLAGS} -L$withval/lib"
5586  fi
5587
5588fi
5589
5590if test "$with_zlib" = "no"; then
5591    echo "Disabling compression support"
5592else
5593    for ac_hdr in zlib.h
5594do
5595ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5596echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5597echo "configure:5598: checking for $ac_hdr" >&5
5598if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5599  echo $ac_n "(cached) $ac_c" 1>&6
5600else
5601  cat > conftest.$ac_ext <<EOF
5602#line 5603 "configure"
5603#include "confdefs.h"
5604#include <$ac_hdr>
5605EOF
5606ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5607{ (eval echo configure:5608: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5608ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5609if test -z "$ac_err"; then
5610  rm -rf conftest*
5611  eval "ac_cv_header_$ac_safe=yes"
5612else
5613  echo "$ac_err" >&5
5614  echo "configure: failed program was:" >&5
5615  cat conftest.$ac_ext >&5
5616  rm -rf conftest*
5617  eval "ac_cv_header_$ac_safe=no"
5618fi
5619rm -f conftest*
5620fi
5621if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5622  echo "$ac_t""yes" 1>&6
5623    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5624  cat >> confdefs.h <<EOF
5625#define $ac_tr_hdr 1
5626EOF
5627 echo $ac_n "checking for gzread in -lz""... $ac_c" 1>&6
5628echo "configure:5629: checking for gzread in -lz" >&5
5629ac_lib_var=`echo z'_'gzread | sed 'y%./+-%__p_%'`
5630if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5631  echo $ac_n "(cached) $ac_c" 1>&6
5632else
5633  ac_save_LIBS="$LIBS"
5634LIBS="-lz  $LIBS"
5635cat > conftest.$ac_ext <<EOF
5636#line 5637 "configure"
5637#include "confdefs.h"
5638/* Override any gcc2 internal prototype to avoid an error.  */
5639/* We use char because int might match the return type of a gcc2
5640    builtin and then its argument prototype would still apply.  */
5641char gzread();
5642
5643int main() {
5644gzread()
5645; return 0; }
5646EOF
5647if { (eval echo configure:5648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5648  rm -rf conftest*
5649  eval "ac_cv_lib_$ac_lib_var=yes"
5650else
5651  echo "configure: failed program was:" >&5
5652  cat conftest.$ac_ext >&5
5653  rm -rf conftest*
5654  eval "ac_cv_lib_$ac_lib_var=no"
5655fi
5656rm -f conftest*
5657LIBS="$ac_save_LIBS"
5658
5659fi
5660if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5661  echo "$ac_t""yes" 1>&6
5662 
5663            cat >> confdefs.h <<\EOF
5664#define HAVE_LIBZ 1
5665EOF
5666
5667            if test "x${Z_DIR}" != "x"; then
5668                Z_CFLAGS="-I${Z_DIR}/include"
5669                Z_LIBS="-L${Z_DIR}/lib -lz"
5670                case ${host} in
5671                    *-*-solaris*)
5672                        Z_LIBS="-L${Z_DIR}/lib -R${Z_DIR}/lib -lz"
5673                        ;;
5674                esac
5675            else
5676                Z_LIBS="-lz"
5677            fi
5678else
5679  echo "$ac_t""no" 1>&6
5680fi
5681
5682else
5683  echo "$ac_t""no" 1>&6
5684fi
5685done
5686
5687fi
5688
5689
5690
5691
5692CPPFLAGS=${_cppflags}
5693LDFLAGS=${_ldflags}
5694
5695ac_header_dirent=no
5696for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
5697do
5698ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5699echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
5700echo "configure:5701: checking for $ac_hdr that defines DIR" >&5
5701if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
5702  echo $ac_n "(cached) $ac_c" 1>&6
5703else
5704  cat > conftest.$ac_ext <<EOF
5705#line 5706 "configure"
5706#include "confdefs.h"
5707#include <sys/types.h>
5708#include <$ac_hdr>
5709int main() {
5710DIR *dirp = 0;
5711; return 0; }
5712EOF
5713if { (eval echo configure:5714: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5714  rm -rf conftest*
5715  eval "ac_cv_header_dirent_$ac_safe=yes"
5716else
5717  echo "configure: failed program was:" >&5
5718  cat conftest.$ac_ext >&5
5719  rm -rf conftest*
5720  eval "ac_cv_header_dirent_$ac_safe=no"
5721fi
5722rm -f conftest*
5723fi
5724if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
5725  echo "$ac_t""yes" 1>&6
5726    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5727  cat >> confdefs.h <<EOF
5728#define $ac_tr_hdr 1
5729EOF
5730 ac_header_dirent=$ac_hdr; break
5731else
5732  echo "$ac_t""no" 1>&6
5733fi
5734done
5735# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5736if test $ac_header_dirent = dirent.h; then
5737echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
5738echo "configure:5739: checking for opendir in -ldir" >&5
5739ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
5740if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5741  echo $ac_n "(cached) $ac_c" 1>&6
5742else
5743  ac_save_LIBS="$LIBS"
5744LIBS="-ldir  $LIBS"
5745cat > conftest.$ac_ext <<EOF
5746#line 5747 "configure"
5747#include "confdefs.h"
5748/* Override any gcc2 internal prototype to avoid an error.  */
5749/* We use char because int might match the return type of a gcc2
5750    builtin and then its argument prototype would still apply.  */
5751char opendir();
5752
5753int main() {
5754opendir()
5755; return 0; }
5756EOF
5757if { (eval echo configure:5758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5758  rm -rf conftest*
5759  eval "ac_cv_lib_$ac_lib_var=yes"
5760else
5761  echo "configure: failed program was:" >&5
5762  cat conftest.$ac_ext >&5
5763  rm -rf conftest*
5764  eval "ac_cv_lib_$ac_lib_var=no"
5765fi
5766rm -f conftest*
5767LIBS="$ac_save_LIBS"
5768
5769fi
5770if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5771  echo "$ac_t""yes" 1>&6
5772  LIBS="$LIBS -ldir"
5773else
5774  echo "$ac_t""no" 1>&6
5775fi
5776
5777else
5778echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
5779echo "configure:5780: checking for opendir in -lx" >&5
5780ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
5781if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5782  echo $ac_n "(cached) $ac_c" 1>&6
5783else
5784  ac_save_LIBS="$LIBS"
5785LIBS="-lx  $LIBS"
5786cat > conftest.$ac_ext <<EOF
5787#line 5788 "configure"
5788#include "confdefs.h"
5789/* Override any gcc2 internal prototype to avoid an error.  */
5790/* We use char because int might match the return type of a gcc2
5791    builtin and then its argument prototype would still apply.  */
5792char opendir();
5793
5794int main() {
5795opendir()
5796; return 0; }
5797EOF
5798if { (eval echo configure:5799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5799  rm -rf conftest*
5800  eval "ac_cv_lib_$ac_lib_var=yes"
5801else
5802  echo "configure: failed program was:" >&5
5803  cat conftest.$ac_ext >&5
5804  rm -rf conftest*
5805  eval "ac_cv_lib_$ac_lib_var=no"
5806fi
5807rm -f conftest*
5808LIBS="$ac_save_LIBS"
5809
5810fi
5811if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5812  echo "$ac_t""yes" 1>&6
5813  LIBS="$LIBS -lx"
5814else
5815  echo "$ac_t""no" 1>&6
5816fi
5817
5818fi
5819
5820echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
5821echo "configure:5822: checking for ANSI C header files" >&5
5822if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
5823  echo $ac_n "(cached) $ac_c" 1>&6
5824else
5825  cat > conftest.$ac_ext <<EOF
5826#line 5827 "configure"
5827#include "confdefs.h"
5828#include <stdlib.h>
5829#include <stdarg.h>
5830#include <string.h>
5831#include <float.h>
5832EOF
5833ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5834{ (eval echo configure:5835: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5835ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5836if test -z "$ac_err"; then
5837  rm -rf conftest*
5838  ac_cv_header_stdc=yes
5839else
5840  echo "$ac_err" >&5
5841  echo "configure: failed program was:" >&5
5842  cat conftest.$ac_ext >&5
5843  rm -rf conftest*
5844  ac_cv_header_stdc=no
5845fi
5846rm -f conftest*
5847
5848if test $ac_cv_header_stdc = yes; then
5849  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5850cat > conftest.$ac_ext <<EOF
5851#line 5852 "configure"
5852#include "confdefs.h"
5853#include <string.h>
5854EOF
5855if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5856  egrep "memchr" >/dev/null 2>&1; then
5857  :
5858else
5859  rm -rf conftest*
5860  ac_cv_header_stdc=no
5861fi
5862rm -f conftest*
5863
5864fi
5865
5866if test $ac_cv_header_stdc = yes; then
5867  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5868cat > conftest.$ac_ext <<EOF
5869#line 5870 "configure"
5870#include "confdefs.h"
5871#include <stdlib.h>
5872EOF
5873if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5874  egrep "free" >/dev/null 2>&1; then
5875  :
5876else
5877  rm -rf conftest*
5878  ac_cv_header_stdc=no
5879fi
5880rm -f conftest*
5881
5882fi
5883
5884if test $ac_cv_header_stdc = yes; then
5885  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5886if test "$cross_compiling" = yes; then
5887  :
5888else
5889  cat > conftest.$ac_ext <<EOF
5890#line 5891 "configure"
5891#include "confdefs.h"
5892#include <ctype.h>
5893#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5894#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5895#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5896int main () { int i; for (i = 0; i < 256; i++)
5897if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
5898exit (0); }
5899
5900EOF
5901if { (eval echo configure:5902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5902then
5903  :
5904else
5905  echo "configure: failed program was:" >&5
5906  cat conftest.$ac_ext >&5
5907  rm -fr conftest*
5908  ac_cv_header_stdc=no
5909fi
5910rm -fr conftest*
5911fi
5912
5913fi
5914fi
5915
5916echo "$ac_t""$ac_cv_header_stdc" 1>&6
5917if test $ac_cv_header_stdc = yes; then
5918  cat >> confdefs.h <<\EOF
5919#define STDC_HEADERS 1
5920EOF
5921
5922fi
5923
5924for ac_hdr in fcntl.h unistd.h ctype.h dirent.h errno.h malloc.h
5925do
5926ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5927echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5928echo "configure:5929: checking for $ac_hdr" >&5
5929if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5930  echo $ac_n "(cached) $ac_c" 1>&6
5931else
5932  cat > conftest.$ac_ext <<EOF
5933#line 5934 "configure"
5934#include "confdefs.h"
5935#include <$ac_hdr>
5936EOF
5937ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5938{ (eval echo configure:5939: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5939ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5940if test -z "$ac_err"; then
5941  rm -rf conftest*
5942  eval "ac_cv_header_$ac_safe=yes"
5943else
5944  echo "$ac_err" >&5
5945  echo "configure: failed program was:" >&5
5946  cat conftest.$ac_ext >&5
5947  rm -rf conftest*
5948  eval "ac_cv_header_$ac_safe=no"
5949fi
5950rm -f conftest*
5951fi
5952if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5953  echo "$ac_t""yes" 1>&6
5954    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5955  cat >> confdefs.h <<EOF
5956#define $ac_tr_hdr 1
5957EOF
5958 
5959else
5960  echo "$ac_t""no" 1>&6
5961fi
5962done
5963
5964for ac_hdr in stdarg.h sys/stat.h sys/types.h time.h ansidecl.h
5965do
5966ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5967echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5968echo "configure:5969: checking for $ac_hdr" >&5
5969if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5970  echo $ac_n "(cached) $ac_c" 1>&6
5971else
5972  cat > conftest.$ac_ext <<EOF
5973#line 5974 "configure"
5974#include "confdefs.h"
5975#include <$ac_hdr>
5976EOF
5977ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5978{ (eval echo configure:5979: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5979ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5980if test -z "$ac_err"; then
5981  rm -rf conftest*
5982  eval "ac_cv_header_$ac_safe=yes"
5983else
5984  echo "$ac_err" >&5
5985  echo "configure: failed program was:" >&5
5986  cat conftest.$ac_ext >&5
5987  rm -rf conftest*
5988  eval "ac_cv_header_$ac_safe=no"
5989fi
5990rm -f conftest*
5991fi
5992if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5993  echo "$ac_t""yes" 1>&6
5994    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5995  cat >> confdefs.h <<EOF
5996#define $ac_tr_hdr 1
5997EOF
5998 
5999else
6000  echo "$ac_t""no" 1>&6
6001fi
6002done
6003
6004for ac_hdr in ieeefp.h nan.h math.h fp_class.h float.h
6005do
6006ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6007echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6008echo "configure:6009: checking for $ac_hdr" >&5
6009if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6010  echo $ac_n "(cached) $ac_c" 1>&6
6011else
6012  cat > conftest.$ac_ext <<EOF
6013#line 6014 "configure"
6014#include "confdefs.h"
6015#include <$ac_hdr>
6016EOF
6017ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6018{ (eval echo configure:6019: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6019ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6020if test -z "$ac_err"; then
6021  rm -rf conftest*
6022  eval "ac_cv_header_$ac_safe=yes"
6023else
6024  echo "$ac_err" >&5
6025  echo "configure: failed program was:" >&5
6026  cat conftest.$ac_ext >&5
6027  rm -rf conftest*
6028  eval "ac_cv_header_$ac_safe=no"
6029fi
6030rm -f conftest*
6031fi
6032if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6033  echo "$ac_t""yes" 1>&6
6034    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6035  cat >> confdefs.h <<EOF
6036#define $ac_tr_hdr 1
6037EOF
6038 
6039else
6040  echo "$ac_t""no" 1>&6
6041fi
6042done
6043
6044for ac_hdr in stdlib.h sys/socket.h netinet/in.h arpa/inet.h
6045do
6046ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6047echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6048echo "configure:6049: checking for $ac_hdr" >&5
6049if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6050  echo $ac_n "(cached) $ac_c" 1>&6
6051else
6052  cat > conftest.$ac_ext <<EOF
6053#line 6054 "configure"
6054#include "confdefs.h"
6055#include <$ac_hdr>
6056EOF
6057ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6058{ (eval echo configure:6059: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6059ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6060if test -z "$ac_err"; then
6061  rm -rf conftest*
6062  eval "ac_cv_header_$ac_safe=yes"
6063else
6064  echo "$ac_err" >&5
6065  echo "configure: failed program was:" >&5
6066  cat conftest.$ac_ext >&5
6067  rm -rf conftest*
6068  eval "ac_cv_header_$ac_safe=no"
6069fi
6070rm -f conftest*
6071fi
6072if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6073  echo "$ac_t""yes" 1>&6
6074    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6075  cat >> confdefs.h <<EOF
6076#define $ac_tr_hdr 1
6077EOF
6078 
6079else
6080  echo "$ac_t""no" 1>&6
6081fi
6082done
6083
6084for ac_hdr in netdb.h sys/time.h sys/select.h sys/mman.h
6085do
6086ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6087echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6088echo "configure:6089: checking for $ac_hdr" >&5
6089if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6090  echo $ac_n "(cached) $ac_c" 1>&6
6091else
6092  cat > conftest.$ac_ext <<EOF
6093#line 6094 "configure"
6094#include "confdefs.h"
6095#include <$ac_hdr>
6096EOF
6097ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6098{ (eval echo configure:6099: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6099ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6100if test -z "$ac_err"; then
6101  rm -rf conftest*
6102  eval "ac_cv_header_$ac_safe=yes"
6103else
6104  echo "$ac_err" >&5
6105  echo "configure: failed program was:" >&5
6106  cat conftest.$ac_ext >&5
6107  rm -rf conftest*
6108  eval "ac_cv_header_$ac_safe=no"
6109fi
6110rm -f conftest*
6111fi
6112if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6113  echo "$ac_t""yes" 1>&6
6114    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6115  cat >> confdefs.h <<EOF
6116#define $ac_tr_hdr 1
6117EOF
6118 
6119else
6120  echo "$ac_t""no" 1>&6
6121fi
6122done
6123
6124for ac_hdr in signal.h
6125do
6126ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6127echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6128echo "configure:6129: checking for $ac_hdr" >&5
6129if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6130  echo $ac_n "(cached) $ac_c" 1>&6
6131else
6132  cat > conftest.$ac_ext <<EOF
6133#line 6134 "configure"
6134#include "confdefs.h"
6135#include <$ac_hdr>
6136EOF
6137ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6138{ (eval echo configure:6139: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6139ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6140if test -z "$ac_err"; then
6141  rm -rf conftest*
6142  eval "ac_cv_header_$ac_safe=yes"
6143else
6144  echo "$ac_err" >&5
6145  echo "configure: failed program was:" >&5
6146  cat conftest.$ac_ext >&5
6147  rm -rf conftest*
6148  eval "ac_cv_header_$ac_safe=no"
6149fi
6150rm -f conftest*
6151fi
6152if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6153  echo "$ac_t""yes" 1>&6
6154    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6155  cat >> confdefs.h <<EOF
6156#define $ac_tr_hdr 1
6157EOF
6158 
6159else
6160  echo "$ac_t""no" 1>&6
6161fi
6162done
6163
6164
6165if test "x$with_html_dir" = "x" ; then
6166  HTML_DIR='$(prefix)/doc'
6167else
6168  HTML_DIR=$with_html_dir
6169fi
6170
6171
6172
6173echo $ac_n "checking for strftime""... $ac_c" 1>&6
6174echo "configure:6175: checking for strftime" >&5
6175if eval "test \"`echo '$''{'ac_cv_func_strftime'+set}'`\" = set"; then
6176  echo $ac_n "(cached) $ac_c" 1>&6
6177else
6178  cat > conftest.$ac_ext <<EOF
6179#line 6180 "configure"
6180#include "confdefs.h"
6181/* System header to define __stub macros and hopefully few prototypes,
6182    which can conflict with char strftime(); below.  */
6183#include <assert.h>
6184/* Override any gcc2 internal prototype to avoid an error.  */
6185/* We use char because int might match the return type of a gcc2
6186    builtin and then its argument prototype would still apply.  */
6187char strftime();
6188
6189int main() {
6190
6191/* The GNU C library defines this for functions which it implements
6192    to always fail with ENOSYS.  Some functions are actually named
6193    something starting with __ and the normal name is an alias.  */
6194#if defined (__stub_strftime) || defined (__stub___strftime)
6195choke me
6196#else
6197strftime();
6198#endif
6199
6200; return 0; }
6201EOF
6202if { (eval echo configure:6203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6203  rm -rf conftest*
6204  eval "ac_cv_func_strftime=yes"
6205else
6206  echo "configure: failed program was:" >&5
6207  cat conftest.$ac_ext >&5
6208  rm -rf conftest*
6209  eval "ac_cv_func_strftime=no"
6210fi
6211rm -f conftest*
6212fi
6213
6214if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
6215  echo "$ac_t""yes" 1>&6
6216  cat >> confdefs.h <<\EOF
6217#define HAVE_STRFTIME 1
6218EOF
6219
6220else
6221  echo "$ac_t""no" 1>&6
6222# strftime is in -lintl on SCO UNIX.
6223echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
6224echo "configure:6225: checking for strftime in -lintl" >&5
6225ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'`
6226if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6227  echo $ac_n "(cached) $ac_c" 1>&6
6228else
6229  ac_save_LIBS="$LIBS"
6230LIBS="-lintl  $LIBS"
6231cat > conftest.$ac_ext <<EOF
6232#line 6233 "configure"
6233#include "confdefs.h"
6234/* Override any gcc2 internal prototype to avoid an error.  */
6235/* We use char because int might match the return type of a gcc2
6236    builtin and then its argument prototype would still apply.  */
6237char strftime();
6238
6239int main() {
6240strftime()
6241; return 0; }
6242EOF
6243if { (eval echo configure:6244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6244  rm -rf conftest*
6245  eval "ac_cv_lib_$ac_lib_var=yes"
6246else
6247  echo "configure: failed program was:" >&5
6248  cat conftest.$ac_ext >&5
6249  rm -rf conftest*
6250  eval "ac_cv_lib_$ac_lib_var=no"
6251fi
6252rm -f conftest*
6253LIBS="$ac_save_LIBS"
6254
6255fi
6256if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6257  echo "$ac_t""yes" 1>&6
6258  cat >> confdefs.h <<\EOF
6259#define HAVE_STRFTIME 1
6260EOF
6261
6262LIBS="-lintl $LIBS"
6263else
6264  echo "$ac_t""no" 1>&6
6265fi
6266
6267fi
6268
6269for ac_func in strdup strndup strerror
6270do
6271echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6272echo "configure:6273: checking for $ac_func" >&5
6273if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6274  echo $ac_n "(cached) $ac_c" 1>&6
6275else
6276  cat > conftest.$ac_ext <<EOF
6277#line 6278 "configure"
6278#include "confdefs.h"
6279/* System header to define __stub macros and hopefully few prototypes,
6280    which can conflict with char $ac_func(); below.  */
6281#include <assert.h>
6282/* Override any gcc2 internal prototype to avoid an error.  */
6283/* We use char because int might match the return type of a gcc2
6284    builtin and then its argument prototype would still apply.  */
6285char $ac_func();
6286
6287int main() {
6288
6289/* The GNU C library defines this for functions which it implements
6290    to always fail with ENOSYS.  Some functions are actually named
6291    something starting with __ and the normal name is an alias.  */
6292#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6293choke me
6294#else
6295$ac_func();
6296#endif
6297
6298; return 0; }
6299EOF
6300if { (eval echo configure:6301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6301  rm -rf conftest*
6302  eval "ac_cv_func_$ac_func=yes"
6303else
6304  echo "configure: failed program was:" >&5
6305  cat conftest.$ac_ext >&5
6306  rm -rf conftest*
6307  eval "ac_cv_func_$ac_func=no"
6308fi
6309rm -f conftest*
6310fi
6311
6312if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6313  echo "$ac_t""yes" 1>&6
6314    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6315  cat >> confdefs.h <<EOF
6316#define $ac_tr_func 1
6317EOF
6318 
6319else
6320  echo "$ac_t""no" 1>&6
6321fi
6322done
6323
6324for ac_func in finite isnand fp_class class fpclass
6325do
6326echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6327echo "configure:6328: checking for $ac_func" >&5
6328if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6329  echo $ac_n "(cached) $ac_c" 1>&6
6330else
6331  cat > conftest.$ac_ext <<EOF
6332#line 6333 "configure"
6333#include "confdefs.h"
6334/* System header to define __stub macros and hopefully few prototypes,
6335    which can conflict with char $ac_func(); below.  */
6336#include <assert.h>
6337/* Override any gcc2 internal prototype to avoid an error.  */
6338/* We use char because int might match the return type of a gcc2
6339    builtin and then its argument prototype would still apply.  */
6340char $ac_func();
6341
6342int main() {
6343
6344/* The GNU C library defines this for functions which it implements
6345    to always fail with ENOSYS.  Some functions are actually named
6346    something starting with __ and the normal name is an alias.  */
6347#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6348choke me
6349#else
6350$ac_func();
6351#endif
6352
6353; return 0; }
6354EOF
6355if { (eval echo configure:6356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6356  rm -rf conftest*
6357  eval "ac_cv_func_$ac_func=yes"
6358else
6359  echo "configure: failed program was:" >&5
6360  cat conftest.$ac_ext >&5
6361  rm -rf conftest*
6362  eval "ac_cv_func_$ac_func=no"
6363fi
6364rm -f conftest*
6365fi
6366
6367if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6368  echo "$ac_t""yes" 1>&6
6369    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6370  cat >> confdefs.h <<EOF
6371#define $ac_tr_func 1
6372EOF
6373 
6374else
6375  echo "$ac_t""no" 1>&6
6376fi
6377done
6378
6379for ac_func in strftime localtime
6380do
6381echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6382echo "configure:6383: checking for $ac_func" >&5
6383if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6384  echo $ac_n "(cached) $ac_c" 1>&6
6385else
6386  cat > conftest.$ac_ext <<EOF
6387#line 6388 "configure"
6388#include "confdefs.h"
6389/* System header to define __stub macros and hopefully few prototypes,
6390    which can conflict with char $ac_func(); below.  */
6391#include <assert.h>
6392/* Override any gcc2 internal prototype to avoid an error.  */
6393/* We use char because int might match the return type of a gcc2
6394    builtin and then its argument prototype would still apply.  */
6395char $ac_func();
6396
6397int main() {
6398
6399/* The GNU C library defines this for functions which it implements
6400    to always fail with ENOSYS.  Some functions are actually named
6401    something starting with __ and the normal name is an alias.  */
6402#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6403choke me
6404#else
6405$ac_func();
6406#endif
6407
6408; return 0; }
6409EOF
6410if { (eval echo configure:6411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6411  rm -rf conftest*
6412  eval "ac_cv_func_$ac_func=yes"
6413else
6414  echo "configure: failed program was:" >&5
6415  cat conftest.$ac_ext >&5
6416  rm -rf conftest*
6417  eval "ac_cv_func_$ac_func=no"
6418fi
6419rm -f conftest*
6420fi
6421
6422if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6423  echo "$ac_t""yes" 1>&6
6424    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6425  cat >> confdefs.h <<EOF
6426#define $ac_tr_func 1
6427EOF
6428 
6429else
6430  echo "$ac_t""no" 1>&6
6431fi
6432done
6433
6434for ac_func in stat _stat signal
6435do
6436echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6437echo "configure:6438: checking for $ac_func" >&5
6438if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6439  echo $ac_n "(cached) $ac_c" 1>&6
6440else
6441  cat > conftest.$ac_ext <<EOF
6442#line 6443 "configure"
6443#include "confdefs.h"
6444/* System header to define __stub macros and hopefully few prototypes,
6445    which can conflict with char $ac_func(); below.  */
6446#include <assert.h>
6447/* Override any gcc2 internal prototype to avoid an error.  */
6448/* We use char because int might match the return type of a gcc2
6449    builtin and then its argument prototype would still apply.  */
6450char $ac_func();
6451
6452int main() {
6453
6454/* The GNU C library defines this for functions which it implements
6455    to always fail with ENOSYS.  Some functions are actually named
6456    something starting with __ and the normal name is an alias.  */
6457#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6458choke me
6459#else
6460$ac_func();
6461#endif
6462
6463; return 0; }
6464EOF
6465if { (eval echo configure:6466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6466  rm -rf conftest*
6467  eval "ac_cv_func_$ac_func=yes"
6468else
6469  echo "configure: failed program was:" >&5
6470  cat conftest.$ac_ext >&5
6471  rm -rf conftest*
6472  eval "ac_cv_func_$ac_func=no"
6473fi
6474rm -f conftest*
6475fi
6476
6477if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6478  echo "$ac_t""yes" 1>&6
6479    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6480  cat >> confdefs.h <<EOF
6481#define $ac_tr_func 1
6482EOF
6483 
6484else
6485  echo "$ac_t""no" 1>&6
6486fi
6487done
6488
6489
6490for ac_func in printf sprintf fprintf snprintf vfprintf vsprintf vsnprintf sscanf
6491do
6492echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6493echo "configure:6494: checking for $ac_func" >&5
6494if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6495  echo $ac_n "(cached) $ac_c" 1>&6
6496else
6497  cat > conftest.$ac_ext <<EOF
6498#line 6499 "configure"
6499#include "confdefs.h"
6500/* System header to define __stub macros and hopefully few prototypes,
6501    which can conflict with char $ac_func(); below.  */
6502#include <assert.h>
6503/* Override any gcc2 internal prototype to avoid an error.  */
6504/* We use char because int might match the return type of a gcc2
6505    builtin and then its argument prototype would still apply.  */
6506char $ac_func();
6507
6508int main() {
6509
6510/* The GNU C library defines this for functions which it implements
6511    to always fail with ENOSYS.  Some functions are actually named
6512    something starting with __ and the normal name is an alias.  */
6513#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6514choke me
6515#else
6516$ac_func();
6517#endif
6518
6519; return 0; }
6520EOF
6521if { (eval echo configure:6522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6522  rm -rf conftest*
6523  eval "ac_cv_func_$ac_func=yes"
6524else
6525  echo "configure: failed program was:" >&5
6526  cat conftest.$ac_ext >&5
6527  rm -rf conftest*
6528  eval "ac_cv_func_$ac_func=no"
6529fi
6530rm -f conftest*
6531fi
6532
6533if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6534  echo "$ac_t""yes" 1>&6
6535    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6536  cat >> confdefs.h <<EOF
6537#define $ac_tr_func 1
6538EOF
6539 
6540else
6541  echo "$ac_t""no" 1>&6
6542NEED_TRIO=1
6543fi
6544done
6545
6546
6547echo $ac_n "checking for gethostent""... $ac_c" 1>&6
6548echo "configure:6549: checking for gethostent" >&5
6549if eval "test \"`echo '$''{'ac_cv_func_gethostent'+set}'`\" = set"; then
6550  echo $ac_n "(cached) $ac_c" 1>&6
6551else
6552  cat > conftest.$ac_ext <<EOF
6553#line 6554 "configure"
6554#include "confdefs.h"
6555/* System header to define __stub macros and hopefully few prototypes,
6556    which can conflict with char gethostent(); below.  */
6557#include <assert.h>
6558/* Override any gcc2 internal prototype to avoid an error.  */
6559/* We use char because int might match the return type of a gcc2
6560    builtin and then its argument prototype would still apply.  */
6561char gethostent();
6562
6563int main() {
6564
6565/* The GNU C library defines this for functions which it implements
6566    to always fail with ENOSYS.  Some functions are actually named
6567    something starting with __ and the normal name is an alias.  */
6568#if defined (__stub_gethostent) || defined (__stub___gethostent)
6569choke me
6570#else
6571gethostent();
6572#endif
6573
6574; return 0; }
6575EOF
6576if { (eval echo configure:6577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6577  rm -rf conftest*
6578  eval "ac_cv_func_gethostent=yes"
6579else
6580  echo "configure: failed program was:" >&5
6581  cat conftest.$ac_ext >&5
6582  rm -rf conftest*
6583  eval "ac_cv_func_gethostent=no"
6584fi
6585rm -f conftest*
6586fi
6587
6588if eval "test \"`echo '$ac_cv_func_'gethostent`\" = yes"; then
6589  echo "$ac_t""yes" 1>&6
6590  :
6591else
6592  echo "$ac_t""no" 1>&6
6593echo $ac_n "checking for gethostent in -lnsl""... $ac_c" 1>&6
6594echo "configure:6595: checking for gethostent in -lnsl" >&5
6595ac_lib_var=`echo nsl'_'gethostent | sed 'y%./+-%__p_%'`
6596if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6597  echo $ac_n "(cached) $ac_c" 1>&6
6598else
6599  ac_save_LIBS="$LIBS"
6600LIBS="-lnsl  $LIBS"
6601cat > conftest.$ac_ext <<EOF
6602#line 6603 "configure"
6603#include "confdefs.h"
6604/* Override any gcc2 internal prototype to avoid an error.  */
6605/* We use char because int might match the return type of a gcc2
6606    builtin and then its argument prototype would still apply.  */
6607char gethostent();
6608
6609int main() {
6610gethostent()
6611; return 0; }
6612EOF
6613if { (eval echo configure:6614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6614  rm -rf conftest*
6615  eval "ac_cv_lib_$ac_lib_var=yes"
6616else
6617  echo "configure: failed program was:" >&5
6618  cat conftest.$ac_ext >&5
6619  rm -rf conftest*
6620  eval "ac_cv_lib_$ac_lib_var=no"
6621fi
6622rm -f conftest*
6623LIBS="$ac_save_LIBS"
6624
6625fi
6626if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6627  echo "$ac_t""yes" 1>&6
6628    ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \
6629    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6630  cat >> confdefs.h <<EOF
6631#define $ac_tr_lib 1
6632EOF
6633
6634  LIBS="-lnsl $LIBS"
6635
6636else
6637  echo "$ac_t""no" 1>&6
6638fi
6639
6640fi
6641
6642echo $ac_n "checking for setsockopt""... $ac_c" 1>&6
6643echo "configure:6644: checking for setsockopt" >&5
6644if eval "test \"`echo '$''{'ac_cv_func_setsockopt'+set}'`\" = set"; then
6645  echo $ac_n "(cached) $ac_c" 1>&6
6646else
6647  cat > conftest.$ac_ext <<EOF
6648#line 6649 "configure"
6649#include "confdefs.h"
6650/* System header to define __stub macros and hopefully few prototypes,
6651    which can conflict with char setsockopt(); below.  */
6652#include <assert.h>
6653/* Override any gcc2 internal prototype to avoid an error.  */
6654/* We use char because int might match the return type of a gcc2
6655    builtin and then its argument prototype would still apply.  */
6656char setsockopt();
6657
6658int main() {
6659
6660/* The GNU C library defines this for functions which it implements
6661    to always fail with ENOSYS.  Some functions are actually named
6662    something starting with __ and the normal name is an alias.  */
6663#if defined (__stub_setsockopt) || defined (__stub___setsockopt)
6664choke me
6665#else
6666setsockopt();
6667#endif
6668
6669; return 0; }
6670EOF
6671if { (eval echo configure:6672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6672  rm -rf conftest*
6673  eval "ac_cv_func_setsockopt=yes"
6674else
6675  echo "configure: failed program was:" >&5
6676  cat conftest.$ac_ext >&5
6677  rm -rf conftest*
6678  eval "ac_cv_func_setsockopt=no"
6679fi
6680rm -f conftest*
6681fi
6682
6683if eval "test \"`echo '$ac_cv_func_'setsockopt`\" = yes"; then
6684  echo "$ac_t""yes" 1>&6
6685  :
6686else
6687  echo "$ac_t""no" 1>&6
6688echo $ac_n "checking for setsockopt in -lsocket""... $ac_c" 1>&6
6689echo "configure:6690: checking for setsockopt in -lsocket" >&5
6690ac_lib_var=`echo socket'_'setsockopt | sed 'y%./+-%__p_%'`
6691if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6692  echo $ac_n "(cached) $ac_c" 1>&6
6693else
6694  ac_save_LIBS="$LIBS"
6695LIBS="-lsocket  $LIBS"
6696cat > conftest.$ac_ext <<EOF
6697#line 6698 "configure"
6698#include "confdefs.h"
6699/* Override any gcc2 internal prototype to avoid an error.  */
6700/* We use char because int might match the return type of a gcc2
6701    builtin and then its argument prototype would still apply.  */
6702char setsockopt();
6703
6704int main() {
6705setsockopt()
6706; return 0; }
6707EOF
6708if { (eval echo configure:6709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6709  rm -rf conftest*
6710  eval "ac_cv_lib_$ac_lib_var=yes"
6711else
6712  echo "configure: failed program was:" >&5
6713  cat conftest.$ac_ext >&5
6714  rm -rf conftest*
6715  eval "ac_cv_lib_$ac_lib_var=no"
6716fi
6717rm -f conftest*
6718LIBS="$ac_save_LIBS"
6719
6720fi
6721if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6722  echo "$ac_t""yes" 1>&6
6723    ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
6724    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6725  cat >> confdefs.h <<EOF
6726#define $ac_tr_lib 1
6727EOF
6728
6729  LIBS="-lsocket $LIBS"
6730
6731else
6732  echo "$ac_t""no" 1>&6
6733fi
6734
6735fi
6736
6737echo $ac_n "checking for connect""... $ac_c" 1>&6
6738echo "configure:6739: checking for connect" >&5
6739if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
6740  echo $ac_n "(cached) $ac_c" 1>&6
6741else
6742  cat > conftest.$ac_ext <<EOF
6743#line 6744 "configure"
6744#include "confdefs.h"
6745/* System header to define __stub macros and hopefully few prototypes,
6746    which can conflict with char connect(); below.  */
6747#include <assert.h>
6748/* Override any gcc2 internal prototype to avoid an error.  */
6749/* We use char because int might match the return type of a gcc2
6750    builtin and then its argument prototype would still apply.  */
6751char connect();
6752
6753int main() {
6754
6755/* The GNU C library defines this for functions which it implements
6756    to always fail with ENOSYS.  Some functions are actually named
6757    something starting with __ and the normal name is an alias.  */
6758#if defined (__stub_connect) || defined (__stub___connect)
6759choke me
6760#else
6761connect();
6762#endif
6763
6764; return 0; }
6765EOF
6766if { (eval echo configure:6767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6767  rm -rf conftest*
6768  eval "ac_cv_func_connect=yes"
6769else
6770  echo "configure: failed program was:" >&5
6771  cat conftest.$ac_ext >&5
6772  rm -rf conftest*
6773  eval "ac_cv_func_connect=no"
6774fi
6775rm -f conftest*
6776fi
6777
6778if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
6779  echo "$ac_t""yes" 1>&6
6780  :
6781else
6782  echo "$ac_t""no" 1>&6
6783echo $ac_n "checking for connect in -linet""... $ac_c" 1>&6
6784echo "configure:6785: checking for connect in -linet" >&5
6785ac_lib_var=`echo inet'_'connect | sed 'y%./+-%__p_%'`
6786if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6787  echo $ac_n "(cached) $ac_c" 1>&6
6788else
6789  ac_save_LIBS="$LIBS"
6790LIBS="-linet  $LIBS"
6791cat > conftest.$ac_ext <<EOF
6792#line 6793 "configure"
6793#include "confdefs.h"
6794/* Override any gcc2 internal prototype to avoid an error.  */
6795/* We use char because int might match the return type of a gcc2
6796    builtin and then its argument prototype would still apply.  */
6797char connect();
6798
6799int main() {
6800connect()
6801; return 0; }
6802EOF
6803if { (eval echo configure:6804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6804  rm -rf conftest*
6805  eval "ac_cv_lib_$ac_lib_var=yes"
6806else
6807  echo "configure: failed program was:" >&5
6808  cat conftest.$ac_ext >&5
6809  rm -rf conftest*
6810  eval "ac_cv_lib_$ac_lib_var=no"
6811fi
6812rm -f conftest*
6813LIBS="$ac_save_LIBS"
6814
6815fi
6816if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6817  echo "$ac_t""yes" 1>&6
6818    ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/^a-zA-Z0-9_/_/g' \
6819    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6820  cat >> confdefs.h <<EOF
6821#define $ac_tr_lib 1
6822EOF
6823
6824  LIBS="-linet $LIBS"
6825
6826else
6827  echo "$ac_t""no" 1>&6
6828fi
6829
6830fi
6831
6832
6833echo $ac_n "checking for type of socket length (socklen_t)""... $ac_c" 1>&6
6834echo "configure:6835: checking for type of socket length (socklen_t)" >&5
6835cat > conftest.$ac_ext <<EOF
6836#line 6837 "configure"
6837#include "confdefs.h"
6838
6839#include <stddef.h>
6840#include <sys/types.h>
6841#include <sys/socket.h>
6842int main() {
6843
6844(void)getsockopt (1, 1, 1, NULL, (socklen_t *)NULL)
6845; return 0; }
6846EOF
6847if { (eval echo configure:6848: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; _out=`eval $ac_compile 2>&1` && test "x$_out" = x; }; then
6848  rm -rf conftest*
6849 
6850  echo "$ac_t""socklen_t *" 1>&6
6851  SOCKLEN_T=socklen_t
6852else
6853  echo "configure: failed program was:" >&5
6854  cat conftest.$ac_ext >&5
6855  rm -rf conftest*
6856 
6857  cat > conftest.$ac_ext <<EOF
6858#line 6859 "configure"
6859#include "confdefs.h"
6860
6861#include <stddef.h>
6862#include <sys/types.h>
6863#include <sys/socket.h>
6864int main() {
6865
6866(void)getsockopt (1, 1, 1, NULL, (size_t *)NULL)
6867; return 0; }
6868EOF
6869if { (eval echo configure:6870: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; _out=`eval $ac_compile 2>&1` && test "x$_out" = x; }; then
6870  rm -rf conftest*
6871 
6872    echo "$ac_t""size_t *" 1>&6
6873    SOCKLEN_T=size_t
6874else
6875  echo "configure: failed program was:" >&5
6876  cat conftest.$ac_ext >&5
6877  rm -rf conftest*
6878 
6879    cat > conftest.$ac_ext <<EOF
6880#line 6881 "configure"
6881#include "confdefs.h"
6882
6883#include <stddef.h>
6884#include <sys/types.h>
6885#include <sys/socket.h>
6886int main() {
6887
6888(void)getsockopt (1, 1, 1, NULL, (int *)NULL)
6889; return 0; }
6890EOF
6891if { (eval echo configure:6892: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; _out=`eval $ac_compile 2>&1` && test "x$_out" = x; }; then
6892  rm -rf conftest*
6893 
6894      echo "$ac_t""int *" 1>&6
6895      SOCKLEN_T=int
6896else
6897  echo "configure: failed program was:" >&5
6898  cat conftest.$ac_ext >&5
6899  rm -rf conftest*
6900 
6901      echo "configure: warning: could not determine" 1>&2
6902fi
6903rm -f conftest*
6904fi
6905rm -f conftest*
6906fi
6907rm -f conftest*
6908cat >> confdefs.h <<EOF
6909#define SOCKLEN_T $SOCKLEN_T
6910EOF
6911
6912
6913echo $ac_n "checking for isnan""... $ac_c" 1>&6
6914echo "configure:6915: checking for isnan" >&5
6915if eval "test \"`echo '$''{'ac_cv_func_isnan'+set}'`\" = set"; then
6916  echo $ac_n "(cached) $ac_c" 1>&6
6917else
6918  cat > conftest.$ac_ext <<EOF
6919#line 6920 "configure"
6920#include "confdefs.h"
6921/* System header to define __stub macros and hopefully few prototypes,
6922    which can conflict with char isnan(); below.  */
6923#include <assert.h>
6924/* Override any gcc2 internal prototype to avoid an error.  */
6925/* We use char because int might match the return type of a gcc2
6926    builtin and then its argument prototype would still apply.  */
6927char isnan();
6928
6929int main() {
6930
6931/* The GNU C library defines this for functions which it implements
6932    to always fail with ENOSYS.  Some functions are actually named
6933    something starting with __ and the normal name is an alias.  */
6934#if defined (__stub_isnan) || defined (__stub___isnan)
6935choke me
6936#else
6937isnan();
6938#endif
6939
6940; return 0; }
6941EOF
6942if { (eval echo configure:6943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6943  rm -rf conftest*
6944  eval "ac_cv_func_isnan=yes"
6945else
6946  echo "configure: failed program was:" >&5
6947  cat conftest.$ac_ext >&5
6948  rm -rf conftest*
6949  eval "ac_cv_func_isnan=no"
6950fi
6951rm -f conftest*
6952fi
6953
6954if eval "test \"`echo '$ac_cv_func_'isnan`\" = yes"; then
6955  echo "$ac_t""yes" 1>&6
6956  :
6957else
6958  echo "$ac_t""no" 1>&6
6959echo $ac_n "checking for isnan in -lm""... $ac_c" 1>&6
6960echo "configure:6961: checking for isnan in -lm" >&5
6961ac_lib_var=`echo m'_'isnan | sed 'y%./+-%__p_%'`
6962if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6963  echo $ac_n "(cached) $ac_c" 1>&6
6964else
6965  ac_save_LIBS="$LIBS"
6966LIBS="-lm  $LIBS"
6967cat > conftest.$ac_ext <<EOF
6968#line 6969 "configure"
6969#include "confdefs.h"
6970/* Override any gcc2 internal prototype to avoid an error.  */
6971/* We use char because int might match the return type of a gcc2
6972    builtin and then its argument prototype would still apply.  */
6973char isnan();
6974
6975int main() {
6976isnan()
6977; return 0; }
6978EOF
6979if { (eval echo configure:6980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6980  rm -rf conftest*
6981  eval "ac_cv_lib_$ac_lib_var=yes"
6982else
6983  echo "configure: failed program was:" >&5
6984  cat conftest.$ac_ext >&5
6985  rm -rf conftest*
6986  eval "ac_cv_lib_$ac_lib_var=no"
6987fi
6988rm -f conftest*
6989LIBS="$ac_save_LIBS"
6990
6991fi
6992if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6993  echo "$ac_t""yes" 1>&6
6994  cat >> confdefs.h <<\EOF
6995#define HAVE_ISNAN 1
6996EOF
6997
6998else
6999  echo "$ac_t""no" 1>&6
7000fi
7001
7002fi
7003
7004
7005echo $ac_n "checking for isinf""... $ac_c" 1>&6
7006echo "configure:7007: checking for isinf" >&5
7007if eval "test \"`echo '$''{'ac_cv_func_isinf'+set}'`\" = set"; then
7008  echo $ac_n "(cached) $ac_c" 1>&6
7009else
7010  cat > conftest.$ac_ext <<EOF
7011#line 7012 "configure"
7012#include "confdefs.h"
7013/* System header to define __stub macros and hopefully few prototypes,
7014    which can conflict with char isinf(); below.  */
7015#include <assert.h>
7016/* Override any gcc2 internal prototype to avoid an error.  */
7017/* We use char because int might match the return type of a gcc2
7018    builtin and then its argument prototype would still apply.  */
7019char isinf();
7020
7021int main() {
7022
7023/* The GNU C library defines this for functions which it implements
7024    to always fail with ENOSYS.  Some functions are actually named
7025    something starting with __ and the normal name is an alias.  */
7026#if defined (__stub_isinf) || defined (__stub___isinf)
7027choke me
7028#else
7029isinf();
7030#endif
7031
7032; return 0; }
7033EOF
7034if { (eval echo configure:7035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7035  rm -rf conftest*
7036  eval "ac_cv_func_isinf=yes"
7037else
7038  echo "configure: failed program was:" >&5
7039  cat conftest.$ac_ext >&5
7040  rm -rf conftest*
7041  eval "ac_cv_func_isinf=no"
7042fi
7043rm -f conftest*
7044fi
7045
7046if eval "test \"`echo '$ac_cv_func_'isinf`\" = yes"; then
7047  echo "$ac_t""yes" 1>&6
7048  cat >> confdefs.h <<\EOF
7049#define HAVE_ISINF 1
7050EOF
7051 
7052else
7053  echo "$ac_t""no" 1>&6
7054echo $ac_n "checking for isinf in -lm""... $ac_c" 1>&6
7055echo "configure:7056: checking for isinf in -lm" >&5
7056ac_lib_var=`echo m'_'isinf | sed 'y%./+-%__p_%'`
7057if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7058  echo $ac_n "(cached) $ac_c" 1>&6
7059else
7060  ac_save_LIBS="$LIBS"
7061LIBS="-lm  $LIBS"
7062cat > conftest.$ac_ext <<EOF
7063#line 7064 "configure"
7064#include "confdefs.h"
7065/* Override any gcc2 internal prototype to avoid an error.  */
7066/* We use char because int might match the return type of a gcc2
7067    builtin and then its argument prototype would still apply.  */
7068char isinf();
7069
7070int main() {
7071isinf()
7072; return 0; }
7073EOF
7074if { (eval echo configure:7075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7075  rm -rf conftest*
7076  eval "ac_cv_lib_$ac_lib_var=yes"
7077else
7078  echo "configure: failed program was:" >&5
7079  cat conftest.$ac_ext >&5
7080  rm -rf conftest*
7081  eval "ac_cv_lib_$ac_lib_var=no"
7082fi
7083rm -f conftest*
7084LIBS="$ac_save_LIBS"
7085
7086fi
7087if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7088  echo "$ac_t""yes" 1>&6
7089  cat >> confdefs.h <<\EOF
7090#define HAVE_ISINF 1
7091EOF
7092
7093else
7094  echo "$ac_t""no" 1>&6
7095fi
7096
7097fi
7098
7099
7100XML_LIBDIR='-L${libdir}'
7101XML_INCLUDEDIR='-I${includedir}/libxml2/libxml -I${includedir}/libxml2'
7102
7103XML_CFLAGS=""
7104RDL_LIBS=""
7105
7106if test "${GCC}" != "yes" ; then
7107    case "${host}" in
7108          *-*-hpux* )
7109               CFLAGS="${CFLAGS} -Wp,-H30000"
7110               ;;
7111          *-dec-osf* )
7112               CFLAGS="${CFLAGS} -ieee"
7113               ;;
7114    esac
7115else
7116    CFLAGS="${CFLAGS} -Wall"
7117    case "${host}" in
7118          alpha*-*-linux* )
7119               CFLAGS="${CFLAGS} -mieee"
7120               ;;
7121    esac
7122fi
7123case ${host} in
7124    *-*-solaris*)
7125        XML_LIBDIR="${XML_LIBDIR} -R${libdir}"
7126        ;;
7127esac
7128
7129
7130
7131PYTHON=
7132PYTHON_VERSION=
7133PYTHON_INCLUDES=
7134PYTHON_SITE_PACKAGES=
7135# Check whether --with-python or --without-python was given.
7136if test "${with_python+set}" = set; then
7137  withval="$with_python"
7138  :
7139fi
7140
7141if test "$with_python" != "no" ; then
7142    if test -x "$with_python/bin/python"
7143    then
7144        echo Found python in $with_python/bin/python
7145        PYTHON="$with_python/bin/python"
7146    else
7147        # Extract the first word of "python python2.2 python2.1 python2.0 python1.6 python1.5", so it can be a program name with args.
7148set dummy python python2.2 python2.1 python2.0 python1.6 python1.5; ac_word=$2
7149echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7150echo "configure:7151: checking for $ac_word" >&5
7151if eval "test \"`echo '$''{'ac_cv_path_PYTHON'+set}'`\" = set"; then
7152  echo $ac_n "(cached) $ac_c" 1>&6
7153else
7154  case "$PYTHON" in
7155  /*)
7156  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
7157  ;;
7158  ?:/*)                 
7159  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a dos path.
7160  ;;
7161  *)
7162  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
7163  ac_dummy="$PATH"
7164  for ac_dir in $ac_dummy; do
7165    test -z "$ac_dir" && ac_dir=.
7166    if test -f $ac_dir/$ac_word; then
7167      ac_cv_path_PYTHON="$ac_dir/$ac_word"
7168      break
7169    fi
7170  done
7171  IFS="$ac_save_ifs"
7172  ;;
7173esac
7174fi
7175PYTHON="$ac_cv_path_PYTHON"
7176if test -n "$PYTHON"; then
7177  echo "$ac_t""$PYTHON" 1>&6
7178else
7179  echo "$ac_t""no" 1>&6
7180fi
7181
7182    fi
7183    if test "$PYTHON" != ""
7184    then
7185        PYTHON_VERSION=`$PYTHON -c "import sys; print sys.version[0:3]"`
7186        echo Found Python version $PYTHON_VERSION
7187    fi
7188    if test "$PYTHON_VERSION" != ""
7189    then
7190        if test -r $with_python/include/python$PYTHON_VERSION/Python.h -a \
7191           -d $with_python/lib/python$PYTHON_VERSION/site-packages
7192        then
7193            PYTHON_INCLUDES=$with_python/include/python$PYTHON_VERSION
7194            PYTHON_SITE_PACKAGES=$with_python/lib/python$PYTHON_VERSION/site-packages
7195        else
7196            if test -r $prefix/include/python$PYTHON_VERSION/Python.h
7197            then
7198                PYTHON_INCLUDES='$(prefix)/include/python$(PYTHON_VERSION)'
7199                PYTHON_SITE_PACKAGES='$(prefix)/lib/python$(PYTHON_VERSION)/site-packages'
7200            else
7201                if test -r /usr/include/python$PYTHON_VERSION/Python.h
7202                then
7203                    PYTHON_INCLUDES=/usr/include/python$PYTHON_VERSION
7204                    PYTHON_SITE_PACKAGES='$(prefix)/lib/python$(PYTHON_VERSION)/site-packages'
7205                else
7206                    echo could not find python$PYTHON_VERSION/Python.h
7207                fi
7208            fi
7209        fi
7210    fi
7211fi
7212
7213
7214if test "$PYTHON_INCLUDES" != ""; then
7215  WITH_PYTHON_TRUE=
7216  WITH_PYTHON_FALSE='#'
7217else
7218  WITH_PYTHON_TRUE='#'
7219  WITH_PYTHON_FALSE=
7220fi
7221
7222
7223
7224# Check whether --with-buffers or --without-buffers was given.
7225if test "${with_buffers+set}" = set; then
7226  withval="$with_buffers"
7227  :
7228fi
7229
7230if test "$with_buffers" = "yes" ; then
7231    CFLAGS="${CFLAGS} -DXML_USE_BUFFER_CONTENT"
7232    XML_CFLAGS="${XML_CFLAGS}  -DXML_USE_BUFFER_CONTENT"
7233fi
7234
7235_cppflags="${CPPFLAGS}"
7236_ldflags="${LDFLAGS}"
7237
7238# Check whether --with-readline or --without-readline was given.
7239if test "${with_readline+set}" = set; then
7240  withval="$with_readline"
7241 
7242  if test "$withval" != "no" -a "$withval" != "yes"; then
7243    RDL_DIR=$withval
7244    CPPFLAGS="${CPPFLAGS} -I$withval/include"
7245    LDFLAGS="${LDFLAGS} -L$withval/lib"
7246  fi
7247
7248fi
7249
7250
7251if test "${LOGNAME}" = "veillard" -a "`pwd`" = "/u/veillard/XML" ; then
7252    if test "${with_mem_debug}" = "" ; then
7253        with_mem_debug="yes"
7254    fi
7255    if test "${with_docbook}" = "" ; then
7256        with_docbook="yes"
7257    fi
7258    if test "${with_xptr}" = "" ; then
7259        with_xptr="yes"
7260    fi
7261    CFLAGS="-g -O -pedantic -W -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wredundant-decls "
7262fi
7263
7264
7265if test "${NEED_TRIO}" = "1" ; then
7266    echo Adding trio library for string functions
7267    WITH_TRIO=1
7268else   
7269    WITH_TRIO=0
7270fi
7271
7272
7273if test "${NEED_TRIO}" = "1"; then
7274  WITH_TRIO_SOURCES_TRUE=
7275  WITH_TRIO_SOURCES_FALSE='#'
7276else
7277  WITH_TRIO_SOURCES_TRUE='#'
7278  WITH_TRIO_SOURCES_FALSE=
7279fi
7280
7281
7282
7283THREAD_LIBS=""
7284WITH_THREADS=0
7285THREAD_CFLAGS=""
7286TEST_THREADS=""
7287
7288# Check whether --with-threads or --without-threads was given.
7289if test "${with_threads+set}" = set; then
7290  withval="$with_threads"
7291  :
7292fi
7293
7294if test "$with_threads" = "yes" ; then
7295    echo Enabling multithreaded support
7296
7297    ac_safe=`echo "pthread.h" | sed 'y%./+-%__p_%'`
7298echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
7299echo "configure:7300: checking for pthread.h" >&5
7300if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7301  echo $ac_n "(cached) $ac_c" 1>&6
7302else
7303  cat > conftest.$ac_ext <<EOF
7304#line 7305 "configure"
7305#include "confdefs.h"
7306#include <pthread.h>
7307EOF
7308ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7309{ (eval echo configure:7310: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7310ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7311if test -z "$ac_err"; then
7312  rm -rf conftest*
7313  eval "ac_cv_header_$ac_safe=yes"
7314else
7315  echo "$ac_err" >&5
7316  echo "configure: failed program was:" >&5
7317  cat conftest.$ac_ext >&5
7318  rm -rf conftest*
7319  eval "ac_cv_header_$ac_safe=no"
7320fi
7321rm -f conftest*
7322fi
7323if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7324  echo "$ac_t""yes" 1>&6
7325  echo $ac_n "checking for pthread_join in -lpthread""... $ac_c" 1>&6
7326echo "configure:7327: checking for pthread_join in -lpthread" >&5
7327ac_lib_var=`echo pthread'_'pthread_join | sed 'y%./+-%__p_%'`
7328if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7329  echo $ac_n "(cached) $ac_c" 1>&6
7330else
7331  ac_save_LIBS="$LIBS"
7332LIBS="-lpthread  $LIBS"
7333cat > conftest.$ac_ext <<EOF
7334#line 7335 "configure"
7335#include "confdefs.h"
7336/* Override any gcc2 internal prototype to avoid an error.  */
7337/* We use char because int might match the return type of a gcc2
7338    builtin and then its argument prototype would still apply.  */
7339char pthread_join();
7340
7341int main() {
7342pthread_join()
7343; return 0; }
7344EOF
7345if { (eval echo configure:7346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7346  rm -rf conftest*
7347  eval "ac_cv_lib_$ac_lib_var=yes"
7348else
7349  echo "configure: failed program was:" >&5
7350  cat conftest.$ac_ext >&5
7351  rm -rf conftest*
7352  eval "ac_cv_lib_$ac_lib_var=no"
7353fi
7354rm -f conftest*
7355LIBS="$ac_save_LIBS"
7356
7357fi
7358if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7359  echo "$ac_t""yes" 1>&6
7360 
7361           THREAD_LIBS="-lpthread"
7362           cat >> confdefs.h <<\EOF
7363#define HAVE_LIBPTHREAD 1
7364EOF
7365
7366           cat >> confdefs.h <<\EOF
7367#define HAVE_PTHREAD_H 1
7368EOF
7369
7370           WITH_THREADS="1"
7371else
7372  echo "$ac_t""no" 1>&6
7373fi
7374
7375else
7376  echo "$ac_t""no" 1>&6
7377fi
7378
7379
7380    if test "$WITH_THREADS" = "1" ; then
7381        THREAD_CFLAGS="$THREAD_CFLAGS -D_REENTRANT"
7382        TEST_THREADS="Threadtests"
7383    fi
7384fi
7385# Check whether --with-thread-alloc or --without-thread-alloc was given.
7386if test "${with_thread_alloc+set}" = set; then
7387  withval="$with_thread_alloc"
7388  :
7389fi
7390
7391if test "$with_threads_alloc" = "yes" -a "$WITH_THREADS" = "1" ; then
7392    THREAD_CFLAGS="$THREAD_CFLAGS -DLIBXML_THREAD_ALLOC_ENABLED"
7393fi
7394
7395
7396
7397
7398
7399
7400# Check whether --with-history or --without-history was given.
7401if test "${with_history+set}" = set; then
7402  withval="$with_history"
7403  :
7404fi
7405
7406if test "$with_history" = "yes" ; then
7407    echo Enabling xmllint shell history
7408            unset tcap
7409    for termlib in ncurses curses termcap terminfo termlib; do
7410        echo $ac_n "checking for tputs in -l${termlib}""... $ac_c" 1>&6
7411echo "configure:7412: checking for tputs in -l${termlib}" >&5
7412ac_lib_var=`echo ${termlib}'_'tputs | sed 'y%./+-%__p_%'`
7413if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7414  echo $ac_n "(cached) $ac_c" 1>&6
7415else
7416  ac_save_LIBS="$LIBS"
7417LIBS="-l${termlib}  $LIBS"
7418cat > conftest.$ac_ext <<EOF
7419#line 7420 "configure"
7420#include "confdefs.h"
7421/* Override any gcc2 internal prototype to avoid an error.  */
7422/* We use char because int might match the return type of a gcc2
7423    builtin and then its argument prototype would still apply.  */
7424char tputs();
7425
7426int main() {
7427tputs()
7428; return 0; }
7429EOF
7430if { (eval echo configure:7431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7431  rm -rf conftest*
7432  eval "ac_cv_lib_$ac_lib_var=yes"
7433else
7434  echo "configure: failed program was:" >&5
7435  cat conftest.$ac_ext >&5
7436  rm -rf conftest*
7437  eval "ac_cv_lib_$ac_lib_var=no"
7438fi
7439rm -f conftest*
7440LIBS="$ac_save_LIBS"
7441
7442fi
7443if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7444  echo "$ac_t""yes" 1>&6
7445  tcap="-l$termlib"
7446else
7447  echo "$ac_t""no" 1>&6
7448fi
7449
7450        test -n "$tcap" && break
7451    done
7452
7453    ac_safe=`echo "readline/history.h" | sed 'y%./+-%__p_%'`
7454echo $ac_n "checking for readline/history.h""... $ac_c" 1>&6
7455echo "configure:7456: checking for readline/history.h" >&5
7456if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7457  echo $ac_n "(cached) $ac_c" 1>&6
7458else
7459  cat > conftest.$ac_ext <<EOF
7460#line 7461 "configure"
7461#include "confdefs.h"
7462#include <readline/history.h>
7463EOF
7464ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7465{ (eval echo configure:7466: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7466ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7467if test -z "$ac_err"; then
7468  rm -rf conftest*
7469  eval "ac_cv_header_$ac_safe=yes"
7470else
7471  echo "$ac_err" >&5
7472  echo "configure: failed program was:" >&5
7473  cat conftest.$ac_ext >&5
7474  rm -rf conftest*
7475  eval "ac_cv_header_$ac_safe=no"
7476fi
7477rm -f conftest*
7478fi
7479if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7480  echo "$ac_t""yes" 1>&6
7481  echo $ac_n "checking for append_history in -lhistory""... $ac_c" 1>&6
7482echo "configure:7483: checking for append_history in -lhistory" >&5
7483ac_lib_var=`echo history'_'append_history | sed 'y%./+-%__p_%'`
7484if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7485  echo $ac_n "(cached) $ac_c" 1>&6
7486else
7487  ac_save_LIBS="$LIBS"
7488LIBS="-lhistory  $LIBS"
7489cat > conftest.$ac_ext <<EOF
7490#line 7491 "configure"
7491#include "confdefs.h"
7492/* Override any gcc2 internal prototype to avoid an error.  */
7493/* We use char because int might match the return type of a gcc2
7494    builtin and then its argument prototype would still apply.  */
7495char append_history();
7496
7497int main() {
7498append_history()
7499; return 0; }
7500EOF
7501if { (eval echo configure:7502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7502  rm -rf conftest*
7503  eval "ac_cv_lib_$ac_lib_var=yes"
7504else
7505  echo "configure: failed program was:" >&5
7506  cat conftest.$ac_ext >&5
7507  rm -rf conftest*
7508  eval "ac_cv_lib_$ac_lib_var=no"
7509fi
7510rm -f conftest*
7511LIBS="$ac_save_LIBS"
7512
7513fi
7514if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7515  echo "$ac_t""yes" 1>&6
7516 
7517           RDL_LIBS="-lhistory"
7518           cat >> confdefs.h <<\EOF
7519#define HAVE_LIBHISTORY 1
7520EOF
7521
7522else
7523  echo "$ac_t""no" 1>&6
7524fi
7525
7526else
7527  echo "$ac_t""no" 1>&6
7528fi
7529
7530    ac_safe=`echo "readline/readline.h" | sed 'y%./+-%__p_%'`
7531echo $ac_n "checking for readline/readline.h""... $ac_c" 1>&6
7532echo "configure:7533: checking for readline/readline.h" >&5
7533if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7534  echo $ac_n "(cached) $ac_c" 1>&6
7535else
7536  cat > conftest.$ac_ext <<EOF
7537#line 7538 "configure"
7538#include "confdefs.h"
7539#include <readline/readline.h>
7540EOF
7541ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7542{ (eval echo configure:7543: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7543ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7544if test -z "$ac_err"; then
7545  rm -rf conftest*
7546  eval "ac_cv_header_$ac_safe=yes"
7547else
7548  echo "$ac_err" >&5
7549  echo "configure: failed program was:" >&5
7550  cat conftest.$ac_ext >&5
7551  rm -rf conftest*
7552  eval "ac_cv_header_$ac_safe=no"
7553fi
7554rm -f conftest*
7555fi
7556if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7557  echo "$ac_t""yes" 1>&6
7558  echo $ac_n "checking for readline in -lreadline""... $ac_c" 1>&6
7559echo "configure:7560: checking for readline in -lreadline" >&5
7560ac_lib_var=`echo readline'_'readline | sed 'y%./+-%__p_%'`
7561if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7562  echo $ac_n "(cached) $ac_c" 1>&6
7563else
7564  ac_save_LIBS="$LIBS"
7565LIBS="-lreadline $tcap $LIBS"
7566cat > conftest.$ac_ext <<EOF
7567#line 7568 "configure"
7568#include "confdefs.h"
7569/* Override any gcc2 internal prototype to avoid an error.  */
7570/* We use char because int might match the return type of a gcc2
7571    builtin and then its argument prototype would still apply.  */
7572char readline();
7573
7574int main() {
7575readline()
7576; return 0; }
7577EOF
7578if { (eval echo configure:7579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7579  rm -rf conftest*
7580  eval "ac_cv_lib_$ac_lib_var=yes"
7581else
7582  echo "configure: failed program was:" >&5
7583  cat conftest.$ac_ext >&5
7584  rm -rf conftest*
7585  eval "ac_cv_lib_$ac_lib_var=no"
7586fi
7587rm -f conftest*
7588LIBS="$ac_save_LIBS"
7589
7590fi
7591if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7592  echo "$ac_t""yes" 1>&6
7593 
7594           RDL_LIBS="-lreadline $RDL_LIBS $tcap"
7595           cat >> confdefs.h <<\EOF
7596#define HAVE_LIBREADLINE 1
7597EOF
7598
7599else
7600  echo "$ac_t""no" 1>&6
7601fi
7602
7603else
7604  echo "$ac_t""no" 1>&6
7605fi
7606
7607    if test -n "$RDL_DIR" -a -n "$RDL_LIBS"; then
7608        CPPFLAGS="$CPPFLAGS -I${RDL_DIR}/include"
7609        RDL_LIBS="-L${RDL_DIR}/lib $RDL_LIBS"
7610    else
7611        CPPFLAGS=${_cppflags}
7612    fi
7613    LDFLAGS=${_ldflags}
7614fi
7615
7616
7617
7618# Check whether --with-ftp or --without-ftp was given.
7619if test "${with_ftp+set}" = set; then
7620  withval="$with_ftp"
7621  :
7622fi
7623
7624if test "$with_ftp" = "no" ; then
7625    echo Disabling FTP support
7626    WITH_FTP=0
7627    FTP_OBJ=
7628else   
7629    WITH_FTP=1
7630    FTP_OBJ=nanoftp.o
7631fi
7632
7633
7634
7635# Check whether --with-http or --without-http was given.
7636if test "${with_http+set}" = set; then
7637  withval="$with_http"
7638  :
7639fi
7640
7641if test "$with_http" = "no" ; then
7642    echo Disabling HTTP support
7643    WITH_HTTP=0
7644    HTTP_OBJ=
7645else   
7646    WITH_HTTP=1
7647    HTTP_OBJ=nanohttp.o
7648fi
7649
7650
7651
7652# Check whether --with-html or --without-html was given.
7653if test "${with_html+set}" = set; then
7654  withval="$with_html"
7655  :
7656fi
7657
7658if test "$with_html" = "no" ; then
7659    echo Disabling HTML support
7660    WITH_HTML=0
7661    HTML_OBJ=
7662else   
7663    WITH_HTML=1
7664    HTML_OBJ="HTMLparser.o HTMLtree.o"
7665fi
7666
7667
7668
7669# Check whether --with-catalog or --without-catalog was given.
7670if test "${with_catalog+set}" = set; then
7671  withval="$with_catalog"
7672  :
7673fi
7674
7675if test "$with_catalog" = "no" ; then
7676    echo Disabling Catalog support
7677    WITH_CATALOG=0
7678    CATALOG_OBJ=
7679else   
7680    WITH_CATALOG=1
7681    CATALOG_OBJ="catalog.o"
7682fi
7683
7684
7685
7686# Check whether --with-docbook or --without-docbook was given.
7687if test "${with_docbook+set}" = set; then
7688  withval="$with_docbook"
7689  :
7690fi
7691
7692if test "$with_docbook" = "no" ; then
7693    echo Disabling Docbook support
7694    WITH_DOCB=0
7695    DOCB_OBJ=
7696else   
7697    WITH_DOCB=1
7698    DOCB_OBJ="DOCBparser.o"
7699fi
7700
7701
7702
7703
7704# Check whether --with-xpath or --without-xpath was given.
7705if test "${with_xpath+set}" = set; then
7706  withval="$with_xpath"
7707  :
7708fi
7709
7710if test "$with_xpath" = "no" ; then
7711    echo Disabling XPATH support
7712    with_xptr="no"
7713    WITH_XPATH=0
7714    XPATH_OBJ=
7715else   
7716    WITH_XPATH=1
7717    XPATH_OBJ=xpath.o
7718fi
7719
7720
7721
7722# Check whether --with-xptr or --without-xptr was given.
7723if test "${with_xptr+set}" = set; then
7724  withval="$with_xptr"
7725  :
7726fi
7727
7728if test "$with_xptr" = "no" ; then
7729    echo Disabling XPointer support
7730    WITH_XPTR=0
7731    XPTR_OBJ=
7732else   
7733    WITH_XPTR=1
7734    XPTR_OBJ=xpointer.o
7735fi
7736
7737
7738
7739# Check whether --with-xinclude or --without-xinclude was given.
7740if test "${with_xinclude+set}" = set; then
7741  withval="$with_xinclude"
7742  :
7743fi
7744
7745if test "$with_xinclude" = "no" ; then
7746    echo Disabling XInclude support
7747    WITH_XINCLUDE=0
7748    XINCLUDE_OBJ=
7749    with_xinclude="no"
7750else   
7751    WITH_XINCLUDE=1
7752    XINCLUDE_OBJ=xinclude.o
7753fi
7754
7755
7756
7757WITH_ICONV=0
7758# Check whether --with-iconv or --without-iconv was given.
7759if test "${with_iconv+set}" = set; then
7760  withval="$with_iconv"
7761  :
7762fi
7763
7764if test "$with_iconv" = "no" ; then
7765    echo Disabling ICONV support
7766else
7767    if test "$with_iconv" != "yes" -a "$with_iconv" != "" ; then
7768        CPPFLAGS="${CPPFLAGS} -I$with_iconv/include"
7769        # Export this since our headers include iconv.h
7770        XML_INCLUDEDIR="${XML_INCLUDEDIR} -I$with_iconv/include"
7771        ICONV_LIBS="-L$with_iconv/lib"
7772    fi
7773
7774    ac_safe=`echo "iconv.h" | sed 'y%./+-%__p_%'`
7775echo $ac_n "checking for iconv.h""... $ac_c" 1>&6
7776echo "configure:7777: checking for iconv.h" >&5
7777if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7778  echo $ac_n "(cached) $ac_c" 1>&6
7779else
7780  cat > conftest.$ac_ext <<EOF
7781#line 7782 "configure"
7782#include "confdefs.h"
7783#include <iconv.h>
7784EOF
7785ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7786{ (eval echo configure:7787: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7787ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7788if test -z "$ac_err"; then
7789  rm -rf conftest*
7790  eval "ac_cv_header_$ac_safe=yes"
7791else
7792  echo "$ac_err" >&5
7793  echo "configure: failed program was:" >&5
7794  cat conftest.$ac_ext >&5
7795  rm -rf conftest*
7796  eval "ac_cv_header_$ac_safe=no"
7797fi
7798rm -f conftest*
7799fi
7800if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7801  echo "$ac_t""yes" 1>&6
7802  echo $ac_n "checking for iconv""... $ac_c" 1>&6
7803echo "configure:7804: checking for iconv" >&5
7804        cat > conftest.$ac_ext <<EOF
7805#line 7806 "configure"
7806#include "confdefs.h"
7807#include <stdlib.h>
7808#include <iconv.h>
7809int main() {
7810
7811iconv_t cd = iconv_open ("","");
7812iconv (cd, NULL, NULL, NULL, NULL);
7813; return 0; }
7814EOF
7815if { (eval echo configure:7816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7816  rm -rf conftest*
7817 
7818            echo "$ac_t""yes" 1>&6
7819            WITH_ICONV=1
7820else
7821  echo "configure: failed program was:" >&5
7822  cat conftest.$ac_ext >&5
7823  rm -rf conftest*
7824 
7825            echo "$ac_t""no" 1>&6
7826            echo $ac_n "checking for iconv in -liconv""... $ac_c" 1>&6
7827echo "configure:7828: checking for iconv in -liconv" >&5
7828
7829            _ldflags="${LDFLAGS}"
7830            _libs="${LIBS}"
7831            LDFLAGS="${LDFLAGS} ${ICONV_LIBS}"
7832            LIBS="${LIBS} -liconv"
7833
7834            cat > conftest.$ac_ext <<EOF
7835#line 7836 "configure"
7836#include "confdefs.h"
7837#include <stdlib.h>
7838#include <iconv.h>
7839int main() {
7840
7841iconv_t cd = iconv_open ("","");
7842iconv (cd, NULL, NULL, NULL, NULL);
7843; return 0; }
7844EOF
7845if { (eval echo configure:7846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7846  rm -rf conftest*
7847 
7848                echo "$ac_t""yes" 1>&6
7849                WITH_ICONV=1
7850                ICONV_LIBS="${ICONV_LIBS} -liconv"
7851                LIBS="${_libs}"
7852                LDFLAGS="${_ldflags}"
7853else
7854  echo "configure: failed program was:" >&5
7855  cat conftest.$ac_ext >&5
7856  rm -rf conftest*
7857 
7858                echo "$ac_t""no" 1>&6
7859                LIBS="${_libs}"
7860                LDFLAGS="${_ldflags}"
7861fi
7862rm -f conftest*
7863fi
7864rm -f conftest*
7865else
7866  echo "$ac_t""no" 1>&6
7867fi
7868
7869fi
7870M_LIBS="-lm"
7871XML_LIBS="-lxml2 $Z_LIBS $THREAD_LIBS $ICONV_LIBS $M_LIBS $LIBS"
7872
7873
7874# Check whether --with-debug or --without-debug was given.
7875if test "${with_debug+set}" = set; then
7876  withval="$with_debug"
7877  :
7878fi
7879
7880if test "$with_debug" = "no" ; then
7881    echo Disabling DEBUG support
7882    WITH_DEBUG=0
7883    DEBUG_OBJ=
7884else   
7885    WITH_DEBUG=1
7886    DEBUG_OBJ=debugXML.o
7887fi
7888
7889
7890
7891# Check whether --with-mem_debug or --without-mem_debug was given.
7892if test "${with_mem_debug+set}" = set; then
7893  withval="$with_mem_debug"
7894  :
7895fi
7896
7897if test "$with_mem_debug" = "yes" ; then
7898    echo Enabling memory debug support
7899    WITH_MEM_DEBUG=1
7900else   
7901    WITH_MEM_DEBUG=0
7902fi
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923rm -f rm COPYING.LIB COPYING
7924ln -s Copyright COPYING
7925
7926trap '' 1 2 15
7927cat > confcache <<\EOF
7928# This file is a shell script that caches the results of configure
7929# tests run on this system so they can be shared between configure
7930# scripts and configure runs.  It is not useful on other systems.
7931# If it contains results you don't want to keep, you may remove or edit it.
7932#
7933# By default, configure uses ./config.cache as the cache file,
7934# creating it if it does not exist already.  You can give configure
7935# the --cache-file=FILE option to use a different cache file; that is
7936# what configure does when it calls configure scripts in
7937# subdirectories, so they share the cache.
7938# Giving --cache-file=/dev/null disables caching, for debugging configure.
7939# config.status only pays attention to the cache file if you give it the
7940# --recheck option to rerun configure.
7941#
7942EOF
7943# The following way of writing the cache mishandles newlines in values,
7944# but we know of no workaround that is simple, portable, and efficient.
7945# So, don't put newlines in cache variables' values.
7946# Ultrix sh set writes to stderr and can't be redirected directly,
7947# and sets the high bit in the cache file unless we assign to the vars.
7948(set) 2>&1 |
7949  case `(ac_space=' '; set | grep ac_space) 2>&1` in
7950  *ac_space=\ *)
7951    # `set' does not quote correctly, so add quotes (double-quote substitution
7952    # turns \\\\ into \\, and sed turns \\ into \).
7953    sed -n \
7954      -e "s/'/'\\\\''/g" \
7955      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7956    ;;
7957  *)
7958    # `set' quotes correctly as required by POSIX, so do not add quotes.
7959    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7960    ;;
7961  esac >> confcache
7962if cmp -s $cache_file confcache; then
7963  :
7964else
7965  if test -w $cache_file; then
7966    echo "updating cache $cache_file"
7967    cat confcache > $cache_file
7968  else
7969    echo "not updating unwritable cache $cache_file"
7970  fi
7971fi
7972rm -f confcache
7973
7974trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
7975
7976test "x$prefix" = xNONE && prefix=$ac_default_prefix
7977# Let make expand exec_prefix.
7978test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7979
7980# Any assignment to VPATH causes Sun make to only execute
7981# the first set of double-colon rules, so remove it if not needed.
7982# If there is a colon in the path, we need to keep it.
7983if test "x$srcdir" = x.; then
7984  ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
7985fi
7986
7987trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
7988
7989DEFS=-DHAVE_CONFIG_H
7990
7991# Without the "./", some shells look in PATH for config.status.
7992: ${CONFIG_STATUS=./config.status}
7993
7994echo creating $CONFIG_STATUS
7995rm -f $CONFIG_STATUS
7996cat > $CONFIG_STATUS <<EOF
7997#! /bin/sh
7998# Generated automatically by configure.
7999# Run this file to recreate the current configuration.
8000# This directory was configured as follows,
8001# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8002#
8003# $0 $ac_configure_args
8004#
8005# Compiler output produced by configure, useful for debugging
8006# configure, is in ./config.log if it exists.
8007
8008ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8009for ac_option
8010do
8011  case "\$ac_option" in
8012  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8013    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8014    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8015  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8016    echo "$CONFIG_STATUS generated by autoconf version 2.13"
8017    exit 0 ;;
8018  -help | --help | --hel | --he | --h)
8019    echo "\$ac_cs_usage"; exit 0 ;;
8020  *) echo "\$ac_cs_usage"; exit 1 ;;
8021  esac
8022done
8023
8024ac_given_srcdir=$srcdir
8025ac_given_INSTALL="$INSTALL"
8026
8027trap 'rm -fr `echo "libxml.spec Makefile include/Makefile include/libxml/Makefile doc/Makefile example/Makefile python/Makefile python/tests/Makefile include/libxml/xmlversion.h include/libxml/xmlwin32version.h xml2-config libxml-2.0.pc xml2Conf.sh config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8028EOF
8029cat >> $CONFIG_STATUS <<EOF
8030
8031# Protect against being on the right side of a sed subst in config.status.
8032sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8033 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8034$ac_vpsub
8035$extrasub
8036s%@SHELL@%$SHELL%g
8037s%@CFLAGS@%$CFLAGS%g
8038s%@CPPFLAGS@%$CPPFLAGS%g
8039s%@CXXFLAGS@%$CXXFLAGS%g
8040s%@FFLAGS@%$FFLAGS%g
8041s%@DEFS@%$DEFS%g
8042s%@LDFLAGS@%$LDFLAGS%g
8043s%@LIBS@%$LIBS%g
8044s%@exec_prefix@%$exec_prefix%g
8045s%@prefix@%$prefix%g
8046s%@program_transform_name@%$program_transform_name%g
8047s%@bindir@%$bindir%g
8048s%@sbindir@%$sbindir%g
8049s%@libexecdir@%$libexecdir%g
8050s%@datadir@%$datadir%g
8051s%@sysconfdir@%$sysconfdir%g
8052s%@sharedstatedir@%$sharedstatedir%g
8053s%@localstatedir@%$localstatedir%g
8054s%@libdir@%$libdir%g
8055s%@includedir@%$includedir%g
8056s%@oldincludedir@%$oldincludedir%g
8057s%@infodir@%$infodir%g
8058s%@mandir@%$mandir%g
8059s%@host@%$host%g
8060s%@host_alias@%$host_alias%g
8061s%@host_cpu@%$host_cpu%g
8062s%@host_vendor@%$host_vendor%g
8063s%@host_os@%$host_os%g
8064s%@LIBXML_MAJOR_VERSION@%$LIBXML_MAJOR_VERSION%g
8065s%@LIBXML_MINOR_VERSION@%$LIBXML_MINOR_VERSION%g
8066s%@LIBXML_MICRO_VERSION@%$LIBXML_MICRO_VERSION%g
8067s%@LIBXML_VERSION@%$LIBXML_VERSION%g
8068s%@LIBXML_VERSION_INFO@%$LIBXML_VERSION_INFO%g
8069s%@LIBXML_VERSION_NUMBER@%$LIBXML_VERSION_NUMBER%g
8070s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8071s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
8072s%@INSTALL_DATA@%$INSTALL_DATA%g
8073s%@PACKAGE@%$PACKAGE%g
8074s%@VERSION@%$VERSION%g
8075s%@ACLOCAL@%$ACLOCAL%g
8076s%@AUTOCONF@%$AUTOCONF%g
8077s%@AUTOMAKE@%$AUTOMAKE%g
8078s%@AUTOHEADER@%$AUTOHEADER%g
8079s%@MAKEINFO@%$MAKEINFO%g
8080s%@SET_MAKE@%$SET_MAKE%g
8081s%@CC@%$CC%g
8082s%@CPP@%$CPP%g
8083s%@RM@%$RM%g
8084s%@MV@%$MV%g
8085s%@TAR@%$TAR%g
8086s%@U@%$U%g
8087s%@ANSI2KNR@%$ANSI2KNR%g
8088s%@build@%$build%g
8089s%@build_alias@%$build_alias%g
8090s%@build_cpu@%$build_cpu%g
8091s%@build_vendor@%$build_vendor%g
8092s%@build_os@%$build_os%g
8093s%@LN_S@%$LN_S%g
8094s%@OBJEXT@%$OBJEXT%g
8095s%@EXEEXT@%$EXEEXT%g
8096s%@ECHO@%$ECHO%g
8097s%@RANLIB@%$RANLIB%g
8098s%@STRIP@%$STRIP%g
8099s%@LIBTOOL@%$LIBTOOL%g
8100s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
8101s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
8102s%@MAINT@%$MAINT%g
8103s%@Z_CFLAGS@%$Z_CFLAGS%g
8104s%@Z_LIBS@%$Z_LIBS%g
8105s%@HTML_DIR@%$HTML_DIR%g
8106s%@PYTHON@%$PYTHON%g
8107s%@WITH_PYTHON_TRUE@%$WITH_PYTHON_TRUE%g
8108s%@WITH_PYTHON_FALSE@%$WITH_PYTHON_FALSE%g
8109s%@WITH_TRIO_SOURCES_TRUE@%$WITH_TRIO_SOURCES_TRUE%g
8110s%@WITH_TRIO_SOURCES_FALSE@%$WITH_TRIO_SOURCES_FALSE%g
8111s%@WITH_TRIO@%$WITH_TRIO%g
8112s%@THREAD_LIBS@%$THREAD_LIBS%g
8113s%@WITH_THREADS@%$WITH_THREADS%g
8114s%@THREAD_CFLAGS@%$THREAD_CFLAGS%g
8115s%@TEST_THREADS@%$TEST_THREADS%g
8116s%@WITH_FTP@%$WITH_FTP%g
8117s%@FTP_OBJ@%$FTP_OBJ%g
8118s%@WITH_HTTP@%$WITH_HTTP%g
8119s%@HTTP_OBJ@%$HTTP_OBJ%g
8120s%@WITH_HTML@%$WITH_HTML%g
8121s%@HTML_OBJ@%$HTML_OBJ%g
8122s%@WITH_CATALOG@%$WITH_CATALOG%g
8123s%@CATALOG_OBJ@%$CATALOG_OBJ%g
8124s%@WITH_DOCB@%$WITH_DOCB%g
8125s%@DOCB_OBJ@%$DOCB_OBJ%g
8126s%@WITH_XPATH@%$WITH_XPATH%g
8127s%@XPATH_OBJ@%$XPATH_OBJ%g
8128s%@WITH_XPTR@%$WITH_XPTR%g
8129s%@XPTR_OBJ@%$XPTR_OBJ%g
8130s%@WITH_XINCLUDE@%$WITH_XINCLUDE%g
8131s%@XINCLUDE_OBJ@%$XINCLUDE_OBJ%g
8132s%@WITH_ICONV@%$WITH_ICONV%g
8133s%@WITH_DEBUG@%$WITH_DEBUG%g
8134s%@DEBUG_OBJ@%$DEBUG_OBJ%g
8135s%@WITH_MEM_DEBUG@%$WITH_MEM_DEBUG%g
8136s%@XML_CFLAGS@%$XML_CFLAGS%g
8137s%@XML_LIBDIR@%$XML_LIBDIR%g
8138s%@XML_LIBS@%$XML_LIBS%g
8139s%@ICONV_LIBS@%$ICONV_LIBS%g
8140s%@XML_INCLUDEDIR@%$XML_INCLUDEDIR%g
8141s%@HAVE_ISNAN@%$HAVE_ISNAN%g
8142s%@HAVE_ISINF@%$HAVE_ISINF%g
8143s%@PYTHON_VERSION@%$PYTHON_VERSION%g
8144s%@PYTHON_INCLUDES@%$PYTHON_INCLUDES%g
8145s%@PYTHON_SITE_PACKAGES@%$PYTHON_SITE_PACKAGES%g
8146s%@M_LIBS@%$M_LIBS%g
8147s%@RDL_LIBS@%$RDL_LIBS%g
8148
8149CEOF
8150EOF
8151
8152cat >> $CONFIG_STATUS <<\EOF
8153
8154# Split the substitutions into bite-sized pieces for seds with
8155# small command number limits, like on Digital OSF/1 and HP-UX.
8156ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
8157ac_file=1 # Number of current file.
8158ac_beg=1 # First line for current file.
8159ac_end=$ac_max_sed_cmds # Line after last line for current file.
8160ac_more_lines=:
8161ac_sed_cmds=""
8162while $ac_more_lines; do
8163  if test $ac_beg -gt 1; then
8164    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
8165  else
8166    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
8167  fi
8168  if test ! -s conftest.s$ac_file; then
8169    ac_more_lines=false
8170    rm -f conftest.s$ac_file
8171  else
8172    if test -z "$ac_sed_cmds"; then
8173      ac_sed_cmds="sed -f conftest.s$ac_file"
8174    else
8175      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
8176    fi
8177    ac_file=`expr $ac_file + 1`
8178    ac_beg=$ac_end
8179    ac_end=`expr $ac_end + $ac_max_sed_cmds`
8180  fi
8181done
8182if test -z "$ac_sed_cmds"; then
8183  ac_sed_cmds=cat
8184fi
8185EOF
8186
8187cat >> $CONFIG_STATUS <<EOF
8188
8189CONFIG_FILES=\${CONFIG_FILES-"libxml.spec Makefile include/Makefile include/libxml/Makefile doc/Makefile example/Makefile python/Makefile python/tests/Makefile include/libxml/xmlversion.h include/libxml/xmlwin32version.h xml2-config libxml-2.0.pc xml2Conf.sh"}
8190EOF
8191cat >> $CONFIG_STATUS <<\EOF
8192for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
8193  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8194  case "$ac_file" in
8195  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8196       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8197  *) ac_file_in="${ac_file}.in" ;;
8198  esac
8199
8200  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
8201
8202  # Remove last slash and all that follows it.  Not all systems have dirname.
8203  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8204  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8205    # The file is in a subdirectory.
8206    test ! -d "$ac_dir" && mkdir "$ac_dir"
8207    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
8208    # A "../" for each directory in $ac_dir_suffix.
8209    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
8210  else
8211    ac_dir_suffix= ac_dots=
8212  fi
8213
8214  case "$ac_given_srcdir" in
8215  .)  srcdir=.
8216      if test -z "$ac_dots"; then top_srcdir=.
8217      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
8218  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
8219  *) # Relative path.
8220    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
8221    top_srcdir="$ac_dots$ac_given_srcdir" ;;
8222  esac
8223
8224  case "$ac_given_INSTALL" in
8225  [/$]*) INSTALL="$ac_given_INSTALL" ;;
8226  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
8227  esac
8228
8229  echo creating "$ac_file"
8230  rm -f "$ac_file"
8231  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
8232  case "$ac_file" in
8233  *Makefile*) ac_comsub="1i\\
8234# $configure_input" ;;
8235  *) ac_comsub= ;;
8236  esac
8237
8238  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8239  sed -e "$ac_comsub
8240s%@configure_input@%$configure_input%g
8241s%@srcdir@%$srcdir%g
8242s%@top_srcdir@%$top_srcdir%g
8243s%@INSTALL@%$INSTALL%g
8244" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
8245fi; done
8246rm -f conftest.s*
8247
8248# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8249# NAME is the cpp macro being defined and VALUE is the value it is being given.
8250#
8251# ac_d sets the value in "#define NAME VALUE" lines.
8252ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
8253ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
8254ac_dC='\3'
8255ac_dD='%g'
8256# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
8257ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
8258ac_uB='\([      ]\)%\1#\2define\3'
8259ac_uC=' '
8260ac_uD='\4%g'
8261# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8262ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
8263ac_eB='$%\1#\2define\3'
8264ac_eC=' '
8265ac_eD='%g'
8266
8267if test "${CONFIG_HEADERS+set}" != set; then
8268EOF
8269cat >> $CONFIG_STATUS <<EOF
8270  CONFIG_HEADERS="config.h"
8271EOF
8272cat >> $CONFIG_STATUS <<\EOF
8273fi
8274for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
8275  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8276  case "$ac_file" in
8277  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8278       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8279  *) ac_file_in="${ac_file}.in" ;;
8280  esac
8281
8282  echo creating $ac_file
8283
8284  rm -f conftest.frag conftest.in conftest.out
8285  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8286  cat $ac_file_inputs > conftest.in
8287
8288EOF
8289
8290# Transform confdefs.h into a sed script conftest.vals that substitutes
8291# the proper values into config.h.in to produce config.h.  And first:
8292# Protect against being on the right side of a sed subst in config.status.
8293# Protect against being in an unquoted here document in config.status.
8294rm -f conftest.vals
8295cat > conftest.hdr <<\EOF
8296s/[\\&%]/\\&/g
8297s%[\\$`]%\\&%g
8298s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
8299s%ac_d%ac_u%gp
8300s%ac_u%ac_e%gp
8301EOF
8302sed -n -f conftest.hdr confdefs.h > conftest.vals
8303rm -f conftest.hdr
8304
8305# This sed command replaces #undef with comments.  This is necessary, for
8306# example, in the case of _POSIX_SOURCE, which is predefined and required
8307# on some systems where configure will not decide to define it.
8308cat >> conftest.vals <<\EOF
8309s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
8310EOF
8311
8312# Break up conftest.vals because some shells have a limit on
8313# the size of here documents, and old seds have small limits too.
8314
8315rm -f conftest.tail
8316while :
8317do
8318  ac_lines=`grep -c . conftest.vals`
8319  # grep -c gives empty output for an empty file on some AIX systems.
8320  if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
8321  # Write a limited-size here document to conftest.frag.
8322  echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
8323  sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
8324  echo 'CEOF
8325  sed -f conftest.frag conftest.in > conftest.out
8326  rm -f conftest.in
8327  mv conftest.out conftest.in
8328' >> $CONFIG_STATUS
8329  sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
8330  rm -f conftest.vals
8331  mv conftest.tail conftest.vals
8332done
8333rm -f conftest.vals
8334
8335cat >> $CONFIG_STATUS <<\EOF
8336  rm -f conftest.frag conftest.h
8337  echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
8338  cat conftest.in >> conftest.h
8339  rm -f conftest.in
8340  if cmp -s $ac_file conftest.h 2>/dev/null; then
8341    echo "$ac_file is unchanged"
8342    rm -f conftest.h
8343  else
8344    # Remove last slash and all that follows it.  Not all systems have dirname.
8345      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8346      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8347      # The file is in a subdirectory.
8348      test ! -d "$ac_dir" && mkdir "$ac_dir"
8349    fi
8350    rm -f $ac_file
8351    mv conftest.h $ac_file
8352  fi
8353fi; done
8354
8355EOF
8356cat >> $CONFIG_STATUS <<EOF
8357
8358
8359EOF
8360cat >> $CONFIG_STATUS <<\EOF
8361test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
8362
8363exit 0
8364EOF
8365chmod +x $CONFIG_STATUS
8366rm -fr confdefs* $ac_clean_files
8367test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
8368
8369
Note: See TracBrowser for help on using the repository browser.