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_default_prefix=/usr/local
15ac_help="$ac_help
16  --disable-fast-perl     disable fast Makefile generation (needs perl)"
17ac_help="$ac_help
18  --enable-debug          enables debug symbols [default=no]"
19ac_help="$ac_help
20  --disable-debug         disables debug output and debug symbols [default=no]"
21ac_help="$ac_help
22  --enable-strict         compiles with strict compiler options (may not work!)"
23ac_help="$ac_help
24  --enable-profile        creates profiling infos [default=no]"
25ac_help="$ac_help
26  --enable-final          build size optimized apps (experimental - needs lots of memory)"
27ac_help="$ac_help
28  --disable-closure       don't delay template instantiation"
29ac_help="$ac_help
30  --enable-shared[=PKGS]  build shared libraries [default=yes]"
31ac_help="$ac_help
32  --enable-static[=PKGS]  build static libraries [default=no]"
33ac_help="$ac_help
34  --enable-fast-install[=PKGS]  optimize for fast installation [default=yes]"
35ac_help="$ac_help
36  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]"
37ac_help="$ac_help
38  --disable-libtool-lock  avoid locking (might break parallel builds)"
39ac_help="$ac_help
40  --with-pic              try to use only PIC/non-PIC objects [default=use both]"
41ac_help="$ac_help
42  --disable-libtool-lock  avoid locking (might break parallel builds)"
43ac_help="$ac_help
44  --with-pic              try to use only PIC/non-PIC objects [default=use both]"
45ac_help="$ac_help
46  --with-extra-includes=DIR
47                          adds non standard include paths"
48ac_help="$ac_help
49  --with-extra-libs=DIR   adds non standard library paths"
50
51# Initialize some variables set by options.
52# The variables have the same names as the options, with
53# dashes changed to underlines.
54build=NONE
55cache_file=./config.cache
56exec_prefix=NONE
57host=NONE
58no_create=
59nonopt=NONE
60no_recursion=
61prefix=NONE
62program_prefix=NONE
63program_suffix=NONE
64program_transform_name=s,x,x,
65silent=
66site=
67srcdir=
68target=NONE
69verbose=
70x_includes=NONE
71x_libraries=NONE
72bindir='${exec_prefix}/bin'
73sbindir='${exec_prefix}/sbin'
74libexecdir='${exec_prefix}/libexec'
75datadir='${prefix}/share'
76sysconfdir='${prefix}/etc'
77sharedstatedir='${prefix}/com'
78localstatedir='${prefix}/var'
79libdir='${exec_prefix}/lib'
80includedir='${prefix}/include'
81oldincludedir='/usr/include'
82infodir='${prefix}/info'
83mandir='${prefix}/man'
84
85# Initialize some other variables.
86subdirs=
87MFLAGS= MAKEFLAGS=
88SHELL=${CONFIG_SHELL-/bin/sh}
89# Maximum number of lines to put in a shell here document.
90ac_max_here_lines=12
91
92ac_prev=
93for ac_option
94do
95
96  # If the previous option needs an argument, assign it.
97  if test -n "$ac_prev"; then
98    eval "$ac_prev=\$ac_option"
99    ac_prev=
100    continue
101  fi
102
103  case "$ac_option" in
104  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
105  *) ac_optarg= ;;
106  esac
107
108  # Accept the important Cygnus configure options, so we can diagnose typos.
109
110  case "$ac_option" in
111
112  -bindir | --bindir | --bindi | --bind | --bin | --bi)
113    ac_prev=bindir ;;
114  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
115    bindir="$ac_optarg" ;;
116
117  -build | --build | --buil | --bui | --bu)
118    ac_prev=build ;;
119  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
120    build="$ac_optarg" ;;
121
122  -cache-file | --cache-file | --cache-fil | --cache-fi \
123  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
124    ac_prev=cache_file ;;
125  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
126  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
127    cache_file="$ac_optarg" ;;
128
129  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
130    ac_prev=datadir ;;
131  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
132  | --da=*)
133    datadir="$ac_optarg" ;;
134
135  -disable-* | --disable-*)
136    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
137    # Reject names that are not valid shell variable names.
138    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
139      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
140    fi
141    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
142    eval "enable_${ac_feature}=no" ;;
143
144  -enable-* | --enable-*)
145    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
146    # Reject names that are not valid shell variable names.
147    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
148      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
149    fi
150    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
151    case "$ac_option" in
152      *=*) ;;
153      *) ac_optarg=yes ;;
154    esac
155    eval "enable_${ac_feature}='$ac_optarg'" ;;
156
157  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
158  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
159  | --exec | --exe | --ex)
160    ac_prev=exec_prefix ;;
161  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
162  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
163  | --exec=* | --exe=* | --ex=*)
164    exec_prefix="$ac_optarg" ;;
165
166  -gas | --gas | --ga | --g)
167    # Obsolete; use --with-gas.
168    with_gas=yes ;;
169
170  -help | --help | --hel | --he)
171    # Omit some internal or obsolete options to make the list less imposing.
172    # This message is too long to be a string in the A/UX 3.1 sh.
173    cat << EOF
174Usage: configure [options] [host]
175Options: [defaults in brackets after descriptions]
176Configuration:
177  --cache-file=FILE       cache test results in FILE
178  --help                  print this message
179  --no-create             do not create output files
180  --quiet, --silent       do not print \`checking...' messages
181  --version               print the version of autoconf that created configure
182Directory and file names:
183  --prefix=PREFIX         install architecture-independent files in PREFIX
184                          [$ac_default_prefix]
185  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
186                          [same as prefix]
187  --bindir=DIR            user executables in DIR [EPREFIX/bin]
188  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
189  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
190  --datadir=DIR           read-only architecture-independent data in DIR
191                          [PREFIX/share]
192  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
193  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
194                          [PREFIX/com]
195  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
196  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
197  --includedir=DIR        C header files in DIR [PREFIX/include]
198  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
199  --infodir=DIR           info documentation in DIR [PREFIX/info]
200  --mandir=DIR            man documentation in DIR [PREFIX/man]
201  --srcdir=DIR            find the sources in DIR [configure dir or ..]
202  --program-prefix=PREFIX prepend PREFIX to installed program names
203  --program-suffix=SUFFIX append SUFFIX to installed program names
204  --program-transform-name=PROGRAM
205                          run sed PROGRAM on installed program names
206EOF
207    cat << EOF
208Host type:
209  --build=BUILD           configure for building on BUILD [BUILD=HOST]
210  --host=HOST             configure for HOST [guessed]
211  --target=TARGET         configure for TARGET [TARGET=HOST]
212Features and packages:
213  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
214  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
215  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
216  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
217  --x-includes=DIR        X include files are in DIR
218  --x-libraries=DIR       X library files are in DIR
219EOF
220    if test -n "$ac_help"; then
221      echo "--enable and --with options recognized:$ac_help"
222    fi
223    exit 0 ;;
224
225  -host | --host | --hos | --ho)
226    ac_prev=host ;;
227  -host=* | --host=* | --hos=* | --ho=*)
228    host="$ac_optarg" ;;
229
230  -includedir | --includedir | --includedi | --included | --include \
231  | --includ | --inclu | --incl | --inc)
232    ac_prev=includedir ;;
233  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
234  | --includ=* | --inclu=* | --incl=* | --inc=*)
235    includedir="$ac_optarg" ;;
236
237  -infodir | --infodir | --infodi | --infod | --info | --inf)
238    ac_prev=infodir ;;
239  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
240    infodir="$ac_optarg" ;;
241
242  -libdir | --libdir | --libdi | --libd)
243    ac_prev=libdir ;;
244  -libdir=* | --libdir=* | --libdi=* | --libd=*)
245    libdir="$ac_optarg" ;;
246
247  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
248  | --libexe | --libex | --libe)
249    ac_prev=libexecdir ;;
250  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
251  | --libexe=* | --libex=* | --libe=*)
252    libexecdir="$ac_optarg" ;;
253
254  -localstatedir | --localstatedir | --localstatedi | --localstated \
255  | --localstate | --localstat | --localsta | --localst \
256  | --locals | --local | --loca | --loc | --lo)
257    ac_prev=localstatedir ;;
258  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
259  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
260  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
261    localstatedir="$ac_optarg" ;;
262
263  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
264    ac_prev=mandir ;;
265  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
266    mandir="$ac_optarg" ;;
267
268  -nfp | --nfp | --nf)
269    # Obsolete; use --without-fp.
270    with_fp=no ;;
271
272  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
273  | --no-cr | --no-c)
274    no_create=yes ;;
275
276  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
277  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
278    no_recursion=yes ;;
279
280  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
281  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
282  | --oldin | --oldi | --old | --ol | --o)
283    ac_prev=oldincludedir ;;
284  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
285  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
286  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
287    oldincludedir="$ac_optarg" ;;
288
289  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
290    ac_prev=prefix ;;
291  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
292    prefix="$ac_optarg" ;;
293
294  -program-prefix | --program-prefix | --program-prefi | --program-pref \
295  | --program-pre | --program-pr | --program-p)
296    ac_prev=program_prefix ;;
297  -program-prefix=* | --program-prefix=* | --program-prefi=* \
298  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
299    program_prefix="$ac_optarg" ;;
300
301  -program-suffix | --program-suffix | --program-suffi | --program-suff \
302  | --program-suf | --program-su | --program-s)
303    ac_prev=program_suffix ;;
304  -program-suffix=* | --program-suffix=* | --program-suffi=* \
305  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
306    program_suffix="$ac_optarg" ;;
307
308  -program-transform-name | --program-transform-name \
309  | --program-transform-nam | --program-transform-na \
310  | --program-transform-n | --program-transform- \
311  | --program-transform | --program-transfor \
312  | --program-transfo | --program-transf \
313  | --program-trans | --program-tran \
314  | --progr-tra | --program-tr | --program-t)
315    ac_prev=program_transform_name ;;
316  -program-transform-name=* | --program-transform-name=* \
317  | --program-transform-nam=* | --program-transform-na=* \
318  | --program-transform-n=* | --program-transform-=* \
319  | --program-transform=* | --program-transfor=* \
320  | --program-transfo=* | --program-transf=* \
321  | --program-trans=* | --program-tran=* \
322  | --progr-tra=* | --program-tr=* | --program-t=*)
323    program_transform_name="$ac_optarg" ;;
324
325  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
326  | -silent | --silent | --silen | --sile | --sil)
327    silent=yes ;;
328
329  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
330    ac_prev=sbindir ;;
331  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
332  | --sbi=* | --sb=*)
333    sbindir="$ac_optarg" ;;
334
335  -sharedstatedir | --sharedstatedir | --sharedstatedi \
336  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
337  | --sharedst | --shareds | --shared | --share | --shar \
338  | --sha | --sh)
339    ac_prev=sharedstatedir ;;
340  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
341  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
342  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
343  | --sha=* | --sh=*)
344    sharedstatedir="$ac_optarg" ;;
345
346  -site | --site | --sit)
347    ac_prev=site ;;
348  -site=* | --site=* | --sit=*)
349    site="$ac_optarg" ;;
350
351  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
352    ac_prev=srcdir ;;
353  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
354    srcdir="$ac_optarg" ;;
355
356  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
357  | --syscon | --sysco | --sysc | --sys | --sy)
358    ac_prev=sysconfdir ;;
359  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
360  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
361    sysconfdir="$ac_optarg" ;;
362
363  -target | --target | --targe | --targ | --tar | --ta | --t)
364    ac_prev=target ;;
365  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
366    target="$ac_optarg" ;;
367
368  -v | -verbose | --verbose | --verbos | --verbo | --verb)
369    verbose=yes ;;
370
371  -version | --version | --versio | --versi | --vers)
372    echo "configure generated by autoconf version 2.13"
373    exit 0 ;;
374
375  -with-* | --with-*)
376    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
377    # Reject names that are not valid shell variable names.
378    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
379      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
380    fi
381    ac_package=`echo $ac_package| sed 's/-/_/g'`
382    case "$ac_option" in
383      *=*) ;;
384      *) ac_optarg=yes ;;
385    esac
386    eval "with_${ac_package}='$ac_optarg'" ;;
387
388  -without-* | --without-*)
389    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
390    # Reject names that are not valid shell variable names.
391    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
392      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
393    fi
394    ac_package=`echo $ac_package| sed 's/-/_/g'`
395    eval "with_${ac_package}=no" ;;
396
397  --x)
398    # Obsolete; use --with-x.
399    with_x=yes ;;
400
401  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
402  | --x-incl | --x-inc | --x-in | --x-i)
403    ac_prev=x_includes ;;
404  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
405  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
406    x_includes="$ac_optarg" ;;
407
408  -x-libraries | --x-libraries | --x-librarie | --x-librari \
409  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
410    ac_prev=x_libraries ;;
411  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
412  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
413    x_libraries="$ac_optarg" ;;
414
415  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
416    ;;
417
418  *)
419    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
420      echo "configure: warning: $ac_option: invalid host type" 1>&2
421    fi
422    if test "x$nonopt" != xNONE; then
423      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
424    fi
425    nonopt="$ac_option"
426    ;;
427
428  esac
429done
430
431if test -n "$ac_prev"; then
432  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
433fi
434
435trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
436
437# File descriptor usage:
438# 0 standard input
439# 1 file creation
440# 2 errors and warnings
441# 3 some systems may open it to /dev/tty
442# 4 used on the Kubota Titan
443# 6 checking for... messages and results
444# 5 compiler messages saved in config.log
445if test "$silent" = yes; then
446  exec 6>/dev/null
447else
448  exec 6>&1
449fi
450exec 5>./config.log
451
452echo "\
453This file contains any messages produced by compilers while
454running configure, to aid debugging if configure makes a mistake.
455" 1>&5
456
457# Strip out --no-create and --no-recursion so they do not pile up.
458# Also quote any args containing shell metacharacters.
459ac_configure_args=
460for ac_arg
461do
462  case "$ac_arg" in
463  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
464  | --no-cr | --no-c) ;;
465  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
466  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
467  *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
468  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
469  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
470  esac
471done
472
473# NLS nuisances.
474# Only set these to C if already set.  These must not be set unconditionally
475# because not all systems understand e.g. LANG=C (notably SCO).
476# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
477# Non-C LC_CTYPE values break the ctype check.
478if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
479if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
480if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
481if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
482
483# confdefs.h avoids OS command line length limits that DEFS can exceed.
484rm -rf conftest* confdefs.h
485# AIX cpp loses on an empty file, so make sure it contains at least a newline.
486echo > confdefs.h
487
488# A filename unique to this package, relative to the directory that
489# configure is in, which we can look for to find out if srcdir is correct.
490ac_unique_file=acinclude.m4
491
492# Find the source files, if location was not specified.
493if test -z "$srcdir"; then
494  ac_srcdir_defaulted=yes
495  # Try the directory containing this script, then its parent.
496  ac_prog=$0
497  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
498  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
499  srcdir=$ac_confdir
500  if test ! -r $srcdir/$ac_unique_file; then
501    srcdir=..
502  fi
503else
504  ac_srcdir_defaulted=no
505fi
506if test ! -r $srcdir/$ac_unique_file; then
507  if test "$ac_srcdir_defaulted" = yes; then
508    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
509  else
510    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
511  fi
512fi
513srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
514
515# Prefer explicitly selected file to automatically selected ones.
516if test -z "$CONFIG_SITE"; then
517  if test "x$prefix" != xNONE; then
518    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
519  else
520    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
521  fi
522fi
523for ac_site_file in $CONFIG_SITE; do
524  if test -r "$ac_site_file"; then
525    echo "loading site script $ac_site_file"
526    . "$ac_site_file"
527  fi
528done
529
530if test -r "$cache_file"; then
531  echo "loading cache $cache_file"
532  . $cache_file
533else
534  echo "creating cache $cache_file"
535  > $cache_file
536fi
537
538ac_ext=c
539# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
540ac_cpp='$CPP $CPPFLAGS'
541ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
542ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
543cross_compiling=$ac_cv_prog_cc_cross
544
545ac_exeext=
546ac_objext=o
547if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
548  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
549  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
550    ac_n= ac_c='
551' ac_t='	'
552  else
553    ac_n=-n ac_c= ac_t=
554  fi
555else
556  ac_n= ac_c='\c' ac_t=
557fi
558
559
560ac_aux_dir=
561for ac_dir in admin $srcdir/admin; do
562  if test -f $ac_dir/install-sh; then
563    ac_aux_dir=$ac_dir
564    ac_install_sh="$ac_aux_dir/install-sh -c"
565    break
566  elif test -f $ac_dir/install.sh; then
567    ac_aux_dir=$ac_dir
568    ac_install_sh="$ac_aux_dir/install.sh -c"
569    break
570  fi
571done
572if test -z "$ac_aux_dir"; then
573  { echo "configure: error: can not find install-sh or install.sh in admin $srcdir/admin" 1>&2; exit 1; }
574fi
575ac_config_guess=$ac_aux_dir/config.guess
576ac_config_sub=$ac_aux_dir/config.sub
577ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
578
579
580unset CDPATH
581
582
583# Do some error checking and defaulting for the host and target type.
584# The inputs are:
585#    configure --host=HOST --target=TARGET --build=BUILD NONOPT
586#
587# The rules are:
588# 1. You are not allowed to specify --host, --target, and nonopt at the
589#    same time.
590# 2. Host defaults to nonopt.
591# 3. If nonopt is not specified, then host defaults to the current host,
592#    as determined by config.guess.
593# 4. Target and build default to nonopt.
594# 5. If nonopt is not specified, then target and build default to host.
595
596# The aliases save the names the user supplied, while $host etc.
597# will get canonicalized.
598case $host---$target---$nonopt in
599NONE---*---* | *---NONE---* | *---*---NONE) ;;
600*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
601esac
602
603
604# Make sure we can run config.sub.
605if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
606else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
607fi
608
609echo $ac_n "checking host system type""... $ac_c" 1>&6
610echo "configure:611: checking host system type" >&5
611
612host_alias=$host
613case "$host_alias" in
614NONE)
615  case $nonopt in
616  NONE)
617    if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
618    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
619    fi ;;
620  *) host_alias=$nonopt ;;
621  esac ;;
622esac
623
624host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
625host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
626host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
627host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
628echo "$ac_t""$host" 1>&6
629
630echo $ac_n "checking target system type""... $ac_c" 1>&6
631echo "configure:632: checking target system type" >&5
632
633target_alias=$target
634case "$target_alias" in
635NONE)
636  case $nonopt in
637  NONE) target_alias=$host_alias ;;
638  *) target_alias=$nonopt ;;
639  esac ;;
640esac
641
642target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
643target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
644target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
645target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
646echo "$ac_t""$target" 1>&6
647
648echo $ac_n "checking build system type""... $ac_c" 1>&6
649echo "configure:650: checking build system type" >&5
650
651build_alias=$build
652case "$build_alias" in
653NONE)
654  case $nonopt in
655  NONE) build_alias=$host_alias ;;
656  *) build_alias=$nonopt ;;
657  esac ;;
658esac
659
660build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
661build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
662build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
663build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
664echo "$ac_t""$build" 1>&6
665
666test "$host_alias" != "$target_alias" &&
667  test "$program_prefix$program_suffix$program_transform_name" = \
668    NONENONEs,x,x, &&
669  program_prefix=${target_alias}-
670
671if test "$program_transform_name" = s,x,x,; then
672  program_transform_name=
673else
674  # Double any \ or $.  echo might interpret backslashes.
675  cat <<\EOF_SED > conftestsed
676s,\\,\\\\,g; s,\$,$$,g
677EOF_SED
678  program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
679  rm -f conftestsed
680fi
681test "$program_prefix" != NONE &&
682  program_transform_name="s,^,${program_prefix},; $program_transform_name"
683# Use a double $ so make ignores it.
684test "$program_suffix" != NONE &&
685  program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
686
687# sed with no file args requires a program.
688test "$program_transform_name" = "" && program_transform_name="s,x,x,"
689
690
691
692
693          test -n "$INSTALL" && kde_save_INSTALL_given=$INSTALL
694  test -n "$INSTALL_PROGRAM" && kde_save_INSTALL_PROGRAM_given=$INSTALL_PROGRAM
695  test -n "$INSTALL_SCRIPT" && kde_save_INSTALL_SCRIPT_given=$INSTALL_SCRIPT
696  # Find a good install program.  We prefer a C program (faster),
697# so one script is as good as another.  But avoid the broken or
698# incompatible versions:
699# SysV /etc/install, /usr/sbin/install
700# SunOS /usr/etc/install
701# IRIX /sbin/install
702# AIX /bin/install
703# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
704# AFS /usr/afsws/bin/install, which mishandles nonexistent args
705# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
706# ./install, which can be erroneously created by make from ./install.sh.
707echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
708echo "configure:709: checking for a BSD compatible install" >&5
709if test -z "$INSTALL"; then
710if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
711  echo $ac_n "(cached) $ac_c" 1>&6
712else
713    IFS="${IFS= 	}"; ac_save_IFS="$IFS"; IFS=":"
714  for ac_dir in $PATH; do
715    # Account for people who put trailing slashes in PATH elements.
716    case "$ac_dir/" in
717    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
718    *)
719      # OSF1 and SCO ODT 3.0 have their own names for install.
720      # Don't use installbsd from OSF since it installs stuff as root
721      # by default.
722      for ac_prog in ginstall scoinst install; do
723        if test -f $ac_dir/$ac_prog; then
724	  if test $ac_prog = install &&
725            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
726	    # AIX install.  It has an incompatible calling convention.
727	    :
728	  else
729	    ac_cv_path_install="$ac_dir/$ac_prog -c"
730	    break 2
731	  fi
732	fi
733      done
734      ;;
735    esac
736  done
737  IFS="$ac_save_IFS"
738
739fi
740  if test "${ac_cv_path_install+set}" = set; then
741    INSTALL="$ac_cv_path_install"
742  else
743    # As a last resort, use the slow shell script.  We don't cache a
744    # path for INSTALL within a source directory, because that will
745    # break other packages using the cache if that directory is
746    # removed, or if the path is relative.
747    INSTALL="$ac_install_sh"
748  fi
749fi
750echo "$ac_t""$INSTALL" 1>&6
751
752# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
753# It thinks the first close brace ends the variable substitution.
754test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
755
756test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
757
758test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
759
760
761  if test -z "$kde_save_INSTALL_given" ; then
762    # OK, user hasn't given any INSTALL, autoconf found one for us
763    # now we test, if it supports the -p flag
764    echo $ac_n "checking for -p flag to install""... $ac_c" 1>&6
765echo "configure:766: checking for -p flag to install" >&5
766    rm -f confinst.$$.* > /dev/null 2>&1
767    echo "Testtest" > confinst.$$.orig
768    ac_res=no
769    if ${INSTALL} -p confinst.$$.orig confinst.$$.new > /dev/null 2>&1 ; then
770      if test -f confinst.$$.new ; then
771        # OK, -p seems to do no harm to install
772	INSTALL="${INSTALL} -p"
773	ac_res=yes
774      fi
775    fi
776    rm -f confinst.$$.*
777    echo "$ac_t""$ac_res" 1>&6
778  fi
779
780  if test -z "$kde_save_INSTALL_PROGRAM_given" ; then
781    INSTALL_PROGRAM='${INSTALL} $(INSTALL_STRIP_FLAG)'
782  fi
783  if test -z "$kde_save_INSTALL_SCRIPT_given" ; then
784    INSTALL_SCRIPT='${INSTALL}'
785  fi
786
787echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
788echo "configure:789: checking whether build environment is sane" >&5
789# Just in case
790sleep 1
791echo timestamp > conftestfile
792# Do `set' in a subshell so we don't clobber the current shell's
793# arguments.  Must try -L first in case configure is actually a
794# symlink; some systems play weird games with the mod time of symlinks
795# (eg FreeBSD returns the mod time of the symlink's containing
796# directory).
797if (
798   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
799   if test "$*" = "X"; then
800      # -L didn't work.
801      set X `ls -t $srcdir/configure conftestfile`
802   fi
803   if test "$*" != "X $srcdir/configure conftestfile" \
804      && test "$*" != "X conftestfile $srcdir/configure"; then
805
806      # If neither matched, then we have a broken ls.  This can happen
807      # if, for instance, CONFIG_SHELL is bash and it inherits a
808      # broken ls alias from the environment.  This has actually
809      # happened.  Such a system could not be considered "sane".
810      { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
811alias in your environment" 1>&2; exit 1; }
812   fi
813
814   test "$2" = conftestfile
815   )
816then
817   # Ok.
818   :
819else
820   { echo "configure: error: newly created file is older than distributed files!
821Check your system clock" 1>&2; exit 1; }
822fi
823rm -f conftest*
824echo "$ac_t""yes" 1>&6
825echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
826echo "configure:827: checking whether ${MAKE-make} sets \${MAKE}" >&5
827set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
828if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
829  echo $ac_n "(cached) $ac_c" 1>&6
830else
831  cat > conftestmake <<\EOF
832all:
833	@echo 'ac_maketemp="${MAKE}"'
834EOF
835# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
836eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
837if test -n "$ac_maketemp"; then
838  eval ac_cv_prog_make_${ac_make}_set=yes
839else
840  eval ac_cv_prog_make_${ac_make}_set=no
841fi
842rm -f conftestmake
843fi
844if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
845  echo "$ac_t""yes" 1>&6
846  SET_MAKE=
847else
848  echo "$ac_t""no" 1>&6
849  SET_MAKE="MAKE=${MAKE-make}"
850fi
851
852
853PACKAGE=yaph
854
855VERSION=0.91
856
857PREFIX=$prefix
858
859if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
860  { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
861fi
862cat >> confdefs.h <<EOF
863#define PACKAGE "$PACKAGE"
864EOF
865
866cat >> confdefs.h <<EOF
867#define VERSION "$VERSION"
868EOF
869
870cat >> confdefs.h <<EOF
871#define PREFIX "$PREFIX"
872EOF
873
874
875
876missing_dir=`cd $ac_aux_dir && pwd`
877echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
878echo "configure:873: checking for working aclocal" >&5
879# Run test in a subshell; some versions of sh will print an error if
880# an executable is not found, even if stderr is redirected.
881# Redirect stdin to placate older versions of autoconf.  Sigh.
882if (aclocal --version) < /dev/null > /dev/null 2>&1; then
883   ACLOCAL=aclocal
884   echo "$ac_t""found" 1>&6
885else
886   ACLOCAL="$missing_dir/missing aclocal"
887   echo "$ac_t""missing" 1>&6
888fi
889
890echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
891echo "configure:886: checking for working autoconf" >&5
892# Run test in a subshell; some versions of sh will print an error if
893# an executable is not found, even if stderr is redirected.
894# Redirect stdin to placate older versions of autoconf.  Sigh.
895if (autoconf --version) < /dev/null > /dev/null 2>&1; then
896   AUTOCONF=autoconf
897   echo "$ac_t""found" 1>&6
898else
899   AUTOCONF="$missing_dir/missing autoconf"
900   echo "$ac_t""missing" 1>&6
901fi
902
903echo $ac_n "checking for working automake""... $ac_c" 1>&6
904echo "configure:899: checking for working automake" >&5
905# Run test in a subshell; some versions of sh will print an error if
906# an executable is not found, even if stderr is redirected.
907# Redirect stdin to placate older versions of autoconf.  Sigh.
908if (automake --version) < /dev/null > /dev/null 2>&1; then
909   AUTOMAKE=automake
910   echo "$ac_t""found" 1>&6
911else
912   AUTOMAKE="$missing_dir/missing automake"
913   echo "$ac_t""missing" 1>&6
914fi
915
916echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
917echo "configure:912: checking for working autoheader" >&5
918# Run test in a subshell; some versions of sh will print an error if
919# an executable is not found, even if stderr is redirected.
920# Redirect stdin to placate older versions of autoconf.  Sigh.
921if (autoheader --version) < /dev/null > /dev/null 2>&1; then
922   AUTOHEADER=autoheader
923   echo "$ac_t""found" 1>&6
924else
925   AUTOHEADER="$missing_dir/missing autoheader"
926   echo "$ac_t""missing" 1>&6
927fi
928
929echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
930echo "configure:925: checking for working makeinfo" >&5
931# Run test in a subshell; some versions of sh will print an error if
932# an executable is not found, even if stderr is redirected.
933# Redirect stdin to placate older versions of autoconf.  Sigh.
934if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
935   MAKEINFO=makeinfo
936   echo "$ac_t""found" 1>&6
937else
938   MAKEINFO="$missing_dir/missing makeinfo"
939   echo "$ac_t""missing" 1>&6
940fi
941
942
943unset CDPATH
944
945
946if test "x$prefix" = "xNONE"; then
947  prefix=$ac_default_prefix
948  ac_configure_args="$ac_configure_args --prefix $prefix"
949fi
950
951    # Check whether --enable-fast-perl or --disable-fast-perl was given.
952if test "${enable_fast_perl+set}" = set; then
953  enableval="$enable_fast_perl"
954  with_fast_perl=$enableval
955else
956  with_fast_perl=yes
957fi
958
959
960
961  val=
962  if test -f $srcdir/configure.files ; then
963    val=`sed -e 's%^%\$(top_srcdir)/%' $srcdir/configure.files`
964  fi
965  CONF_FILES=
966  if test -n "$val" ; then
967    for i in $val ; do
968      CONF_FILES="$CONF_FILES $i"
969    done
970  fi
971
972
973
974
975
976
977
978
979  # Check whether --enable-debug or --disable-debug was given.
980if test "${enable_debug+set}" = set; then
981  enableval="$enable_debug"
982
983   if test $enableval = "no";      then
984       kde_use_debug_code="no"
985       kde_use_debug_define=yes
986     else
987       kde_use_debug_code="yes"
988       kde_use_debug_define=no
989   fi
990
991else
992  kde_use_debug_code="no"
993      kde_use_debug_define=no
994
995fi
996
997
998    # Check whether --enable-dummyoption or --disable-dummyoption was given.
999if test "${enable_dummyoption+set}" = set; then
1000  enableval="$enable_dummyoption"
1001  :
1002fi
1003
1004
1005  # Check whether --enable-strict or --disable-strict was given.
1006if test "${enable_strict+set}" = set; then
1007  enableval="$enable_strict"
1008
1009    if test $enableval = "no"; then
1010         kde_use_strict_options="no"
1011       else
1012         kde_use_strict_options="yes"
1013    fi
1014
1015else
1016  kde_use_strict_options="no"
1017fi
1018
1019
1020  # Check whether --enable-profile or --disable-profile was given.
1021if test "${enable_profile+set}" = set; then
1022  enableval="$enable_profile"
1023  kde_use_profiling=$enableval
1024else
1025  kde_use_profiling="no"
1026
1027fi
1028
1029
1030    CFLAGS=" $CFLAGS"
1031
1032  # Extract the first word of "gcc", so it can be a program name with args.
1033set dummy gcc; ac_word=$2
1034echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1035echo "configure:1030: checking for $ac_word" >&5
1036if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1037  echo $ac_n "(cached) $ac_c" 1>&6
1038else
1039  if test -n "$CC"; then
1040  ac_cv_prog_CC="$CC" # Let the user override the test.
1041else
1042  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
1043  ac_dummy="$PATH"
1044  for ac_dir in $ac_dummy; do
1045    test -z "$ac_dir" && ac_dir=.
1046    if test -f $ac_dir/$ac_word; then
1047      ac_cv_prog_CC="gcc"
1048      break
1049    fi
1050  done
1051  IFS="$ac_save_ifs"
1052fi
1053fi
1054CC="$ac_cv_prog_CC"
1055if test -n "$CC"; then
1056  echo "$ac_t""$CC" 1>&6
1057else
1058  echo "$ac_t""no" 1>&6
1059fi
1060
1061if test -z "$CC"; then
1062  # Extract the first word of "cc", so it can be a program name with args.
1063set dummy cc; ac_word=$2
1064echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1065echo "configure:1060: checking for $ac_word" >&5
1066if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1067  echo $ac_n "(cached) $ac_c" 1>&6
1068else
1069  if test -n "$CC"; then
1070  ac_cv_prog_CC="$CC" # Let the user override the test.
1071else
1072  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
1073  ac_prog_rejected=no
1074  ac_dummy="$PATH"
1075  for ac_dir in $ac_dummy; do
1076    test -z "$ac_dir" && ac_dir=.
1077    if test -f $ac_dir/$ac_word; then
1078      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1079        ac_prog_rejected=yes
1080	continue
1081      fi
1082      ac_cv_prog_CC="cc"
1083      break
1084    fi
1085  done
1086  IFS="$ac_save_ifs"
1087if test $ac_prog_rejected = yes; then
1088  # We found a bogon in the path, so make sure we never use it.
1089  set dummy $ac_cv_prog_CC
1090  shift
1091  if test $# -gt 0; then
1092    # We chose a different compiler from the bogus one.
1093    # However, it has the same basename, so the bogon will be chosen
1094    # first if we set CC to just the basename; use the full file name.
1095    shift
1096    set dummy "$ac_dir/$ac_word" "$@"
1097    shift
1098    ac_cv_prog_CC="$@"
1099  fi
1100fi
1101fi
1102fi
1103CC="$ac_cv_prog_CC"
1104if test -n "$CC"; then
1105  echo "$ac_t""$CC" 1>&6
1106else
1107  echo "$ac_t""no" 1>&6
1108fi
1109
1110  if test -z "$CC"; then
1111    case "`uname -s`" in
1112    *win32* | *WIN32*)
1113      # Extract the first word of "cl", so it can be a program name with args.
1114set dummy cl; ac_word=$2
1115echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1116echo "configure:1111: checking for $ac_word" >&5
1117if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1118  echo $ac_n "(cached) $ac_c" 1>&6
1119else
1120  if test -n "$CC"; then
1121  ac_cv_prog_CC="$CC" # Let the user override the test.
1122else
1123  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
1124  ac_dummy="$PATH"
1125  for ac_dir in $ac_dummy; do
1126    test -z "$ac_dir" && ac_dir=.
1127    if test -f $ac_dir/$ac_word; then
1128      ac_cv_prog_CC="cl"
1129      break
1130    fi
1131  done
1132  IFS="$ac_save_ifs"
1133fi
1134fi
1135CC="$ac_cv_prog_CC"
1136if test -n "$CC"; then
1137  echo "$ac_t""$CC" 1>&6
1138else
1139  echo "$ac_t""no" 1>&6
1140fi
1141 ;;
1142    esac
1143  fi
1144  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1145fi
1146
1147echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1148echo "configure:1143: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1149
1150ac_ext=c
1151# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1152ac_cpp='$CPP $CPPFLAGS'
1153ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1154ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1155cross_compiling=$ac_cv_prog_cc_cross
1156
1157cat > conftest.$ac_ext << EOF
1158
1159#line 1154 "configure"
1160#include "confdefs.h"
1161
1162main(){return(0);}
1163EOF
1164if { (eval echo configure:1159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1165  ac_cv_prog_cc_works=yes
1166  # If we can't run a trivial program, we are probably using a cross compiler.
1167  if (./conftest; exit) 2>/dev/null; then
1168    ac_cv_prog_cc_cross=no
1169  else
1170    ac_cv_prog_cc_cross=yes
1171  fi
1172else
1173  echo "configure: failed program was:" >&5
1174  cat conftest.$ac_ext >&5
1175  ac_cv_prog_cc_works=no
1176fi
1177rm -fr conftest*
1178ac_ext=c
1179# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1180ac_cpp='$CPP $CPPFLAGS'
1181ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1182ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1183cross_compiling=$ac_cv_prog_cc_cross
1184
1185echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1186if test $ac_cv_prog_cc_works = no; then
1187  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1188fi
1189echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1190echo "configure:1185: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1191echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1192cross_compiling=$ac_cv_prog_cc_cross
1193
1194echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1195echo "configure:1190: checking whether we are using GNU C" >&5
1196if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1197  echo $ac_n "(cached) $ac_c" 1>&6
1198else
1199  cat > conftest.c <<EOF
1200#ifdef __GNUC__
1201  yes;
1202#endif
1203EOF
1204if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1199: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1205  ac_cv_prog_gcc=yes
1206else
1207  ac_cv_prog_gcc=no
1208fi
1209fi
1210
1211echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1212
1213if test $ac_cv_prog_gcc = yes; then
1214  GCC=yes
1215else
1216  GCC=
1217fi
1218
1219ac_test_CFLAGS="${CFLAGS+set}"
1220ac_save_CFLAGS="$CFLAGS"
1221CFLAGS=
1222echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1223echo "configure:1218: checking whether ${CC-cc} accepts -g" >&5
1224if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1225  echo $ac_n "(cached) $ac_c" 1>&6
1226else
1227  echo 'void f(){}' > conftest.c
1228if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1229  ac_cv_prog_cc_g=yes
1230else
1231  ac_cv_prog_cc_g=no
1232fi
1233rm -f conftest*
1234
1235fi
1236
1237echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1238if test "$ac_test_CFLAGS" = set; then
1239  CFLAGS="$ac_save_CFLAGS"
1240elif test $ac_cv_prog_cc_g = yes; then
1241  if test "$GCC" = yes; then
1242    CFLAGS="-g -O2"
1243  else
1244    CFLAGS="-g"
1245  fi
1246else
1247  if test "$GCC" = yes; then
1248    CFLAGS="-O2"
1249  else
1250    CFLAGS=
1251  fi
1252fi
1253
1254
1255  if test "$GCC" = "yes"; then
1256    if test "$kde_use_debug_code" = "yes"; then
1257      CFLAGS="-g -O2 $CFLAGS"
1258      case $host in
1259        *-*-linux-gnu)
1260          CFLAGS="-ansi -W -Wall -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE $CFLAGS"
1261        ;;
1262      esac
1263    else
1264      CFLAGS="-O2 $CFLAGS"
1265    fi
1266  fi
1267
1268  if test "$kde_use_debug_define" = "yes"; then
1269    CFLAGS="-DNDEBUG $CFLAGS"
1270  fi
1271
1272  case "$host" in
1273  *-*-sysv4.2uw*) CFLAGS="-D_UNIXWARE $CFLAGS";;
1274  *-*-sysv5uw7*) CFLAGS="-D_UNIXWARE7 $CFLAGS";;
1275  esac
1276
1277  if test -z "$LDFLAGS" && test "$kde_use_debug_code" = "no" && test "$GCC" = "yes"; then
1278     LDFLAGS=""
1279  fi
1280
1281  if test "$kde_use_profiling" = "yes"; then
1282
1283echo $ac_n "checking whether $CXX supports -pg""... $ac_c" 1>&6
1284echo "configure:1279: checking whether $CXX supports -pg" >&5
1285kde_cache=`echo pg | sed 'y% .=/+-%____p_%'`
1286if eval "test \"`echo '$''{'kde_cv_prog_cxx_$kde_cache'+set}'`\" = set"; then
1287  echo $ac_n "(cached) $ac_c" 1>&6
1288else
1289
1290
1291
1292ac_ext=C
1293# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1294ac_cpp='$CXXCPP $CPPFLAGS'
1295ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1296ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1297cross_compiling=$ac_cv_prog_cxx_cross
1298
1299ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1300
1301
1302
1303  save_CXXFLAGS="$CXXFLAGS"
1304  CXXFLAGS="$CXXFLAGS -pg"
1305  cat > conftest.$ac_ext <<EOF
1306#line 1301 "configure"
1307#include "confdefs.h"
1308
1309int main() {
1310 return 0; 
1311; return 0; }
1312EOF
1313if { (eval echo configure:1308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1314  rm -rf conftest*
1315  eval "kde_cv_prog_cxx_$kde_cache=yes"
1316else
1317  echo "configure: failed program was:" >&5
1318  cat conftest.$ac_ext >&5
1319fi
1320rm -f conftest*
1321  CXXFLAGS="$save_CXXFLAGS"
1322  ac_ext=c
1323# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1324ac_cpp='$CPP $CPPFLAGS'
1325ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1326ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1327cross_compiling=$ac_cv_prog_cc_cross
1328
1329
1330fi
1331
1332if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
1333 echo "$ac_t""yes" 1>&6
1334 :
1335
1336      CFLAGS="-pg $CFLAGS"
1337
1338else
1339 echo "$ac_t""no" 1>&6
1340 :
1341
1342fi
1343
1344  fi
1345
1346  USE_EXCEPTIONS=
1347
1348    USE_RTTI=
1349
1350
1351  echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1352echo "configure:1347: checking how to run the C preprocessor" >&5
1353# On Suns, sometimes $CPP names a directory.
1354if test -n "$CPP" && test -d "$CPP"; then
1355  CPP=
1356fi
1357if test -z "$CPP"; then
1358if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1359  echo $ac_n "(cached) $ac_c" 1>&6
1360else
1361    # This must be in double quotes, not single quotes, because CPP may get
1362  # substituted into the Makefile and "${CC-cc}" will confuse make.
1363  CPP="${CC-cc} -E"
1364  # On the NeXT, cc -E runs the code through the compiler's parser,
1365  # not just through cpp.
1366  cat > conftest.$ac_ext <<EOF
1367#line 1362 "configure"
1368#include "confdefs.h"
1369#include <assert.h>
1370Syntax Error
1371EOF
1372ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1373{ (eval echo configure:1368: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1374ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1375if test -z "$ac_err"; then
1376  :
1377else
1378  echo "$ac_err" >&5
1379  echo "configure: failed program was:" >&5
1380  cat conftest.$ac_ext >&5
1381  rm -rf conftest*
1382  CPP="${CC-cc} -E -traditional-cpp"
1383  cat > conftest.$ac_ext <<EOF
1384#line 1379 "configure"
1385#include "confdefs.h"
1386#include <assert.h>
1387Syntax Error
1388EOF
1389ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1390{ (eval echo configure:1385: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1391ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1392if test -z "$ac_err"; then
1393  :
1394else
1395  echo "$ac_err" >&5
1396  echo "configure: failed program was:" >&5
1397  cat conftest.$ac_ext >&5
1398  rm -rf conftest*
1399  CPP="${CC-cc} -nologo -E"
1400  cat > conftest.$ac_ext <<EOF
1401#line 1396 "configure"
1402#include "confdefs.h"
1403#include <assert.h>
1404Syntax Error
1405EOF
1406ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1407{ (eval echo configure:1402: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1408ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1409if test -z "$ac_err"; then
1410  :
1411else
1412  echo "$ac_err" >&5
1413  echo "configure: failed program was:" >&5
1414  cat conftest.$ac_ext >&5
1415  rm -rf conftest*
1416  CPP=/lib/cpp
1417fi
1418rm -f conftest*
1419fi
1420rm -f conftest*
1421fi
1422rm -f conftest*
1423  ac_cv_prog_CPP="$CPP"
1424fi
1425  CPP="$ac_cv_prog_CPP"
1426else
1427  ac_cv_prog_CPP="$CPP"
1428fi
1429echo "$ac_t""$CPP" 1>&6
1430
1431
1432  # the following is to allow programs, that are known to
1433  # have problems when compiled with -O2
1434  if test -n "$CFLAGS"; then
1435      kde_safe_IFS=$IFS
1436      IFS=" "
1437      NOOPT_CFLAGS=""
1438      for i in $CFLAGS; do
1439        case $i in
1440          -O*)
1441                ;;
1442          *)
1443                NOOPT_CFLAGS="$NOOPT_CFLAGS $i"
1444                ;;
1445        esac
1446      done
1447      IFS=$kde_safe_IFS
1448  fi
1449
1450
1451
1452
1453  # Check whether --enable-final or --disable-final was given.
1454if test "${enable_final+set}" = set; then
1455  enableval="$enable_final"
1456  kde_use_final=$enableval
1457else
1458  kde_use_final=no
1459fi
1460
1461
1462
1463  REPO=""
1464  NOREPO=""
1465
1466
1467echo $ac_n "checking whether $CXX supports -frepo""... $ac_c" 1>&6
1468echo "configure:1463: checking whether $CXX supports -frepo" >&5
1469kde_cache=`echo frepo | sed 'y% .=/+-%____p_%'`
1470if eval "test \"`echo '$''{'kde_cv_prog_cxx_$kde_cache'+set}'`\" = set"; then
1471  echo $ac_n "(cached) $ac_c" 1>&6
1472else
1473
1474
1475   ac_ext=C
1476# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1477ac_cpp='$CXXCPP $CPPFLAGS'
1478ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1479ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1480cross_compiling=$ac_cv_prog_cxx_cross
1481
1482ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1483
1484
1485  save_CXXFLAGS="$CXXFLAGS"
1486  CXXFLAGS="$CXXFLAGS -frepo"
1487  cat > conftest.$ac_ext <<EOF
1488#line 1483 "configure"
1489#include "confdefs.h"
1490
1491int main() {
1492 return 0; 
1493; return 0; }
1494EOF
1495if { (eval echo configure:1490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1496  rm -rf conftest*
1497  eval "kde_cv_prog_cxx_$kde_cache=yes"
1498else
1499  echo "configure: failed program was:" >&5
1500  cat conftest.$ac_ext >&5
1501fi
1502rm -f conftest*
1503  CXXFLAGS="$save_CXXFLAGS"
1504  ac_ext=c
1505# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1506ac_cpp='$CPP $CPPFLAGS'
1507ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1508ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1509cross_compiling=$ac_cv_prog_cc_cross
1510
1511
1512fi
1513
1514if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
1515 echo "$ac_t""yes" 1>&6
1516 :
1517
1518     REPO="-frepo"
1519     NOREPO="-fno-repo"
1520
1521else
1522 echo "$ac_t""no" 1>&6
1523 :
1524
1525fi
1526
1527
1528  if test -z "$REPO"; then
1529
1530echo $ac_n "checking whether $CXX supports -instances=explicit""... $ac_c" 1>&6
1531echo "configure:1526: checking whether $CXX supports -instances=explicit" >&5
1532kde_cache=`echo instances=explicit | sed 'y% .=/+-%____p_%'`
1533if eval "test \"`echo '$''{'kde_cv_prog_cxx_$kde_cache'+set}'`\" = set"; then
1534  echo $ac_n "(cached) $ac_c" 1>&6
1535else
1536
1537
1538   ac_ext=C
1539# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1540ac_cpp='$CXXCPP $CPPFLAGS'
1541ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1542ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1543cross_compiling=$ac_cv_prog_cxx_cross
1544
1545ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1546
1547
1548  save_CXXFLAGS="$CXXFLAGS"
1549  CXXFLAGS="$CXXFLAGS -instances=explicit"
1550  cat > conftest.$ac_ext <<EOF
1551#line 1546 "configure"
1552#include "confdefs.h"
1553
1554int main() {
1555 return 0; 
1556; return 0; }
1557EOF
1558if { (eval echo configure:1553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1559  rm -rf conftest*
1560  eval "kde_cv_prog_cxx_$kde_cache=yes"
1561else
1562  echo "configure: failed program was:" >&5
1563  cat conftest.$ac_ext >&5
1564fi
1565rm -f conftest*
1566  CXXFLAGS="$save_CXXFLAGS"
1567  ac_ext=c
1568# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1569ac_cpp='$CPP $CPPFLAGS'
1570ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1571ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1572cross_compiling=$ac_cv_prog_cc_cross
1573
1574
1575fi
1576
1577if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
1578 echo "$ac_t""yes" 1>&6
1579 :
1580
1581     REPO="-instances=explicit"
1582     NOREPO="-instances=extern"
1583
1584else
1585 echo "$ac_t""no" 1>&6
1586 :
1587
1588fi
1589
1590  fi
1591
1592  if test -n "$REPO"; then
1593     cat >> confdefs.h <<EOF
1594#define HAVE_TEMPLATE_REPOSITORY 1
1595EOF
1596
1597
1598  fi
1599
1600
1601
1602
1603  if test "x$kde_use_final" = "xyes"; then
1604      KDE_USE_FINAL_TRUE=""
1605      KDE_USE_FINAL_FALSE="#"
1606   else
1607      KDE_USE_FINAL_TRUE="#"
1608      KDE_USE_FINAL_FALSE=""
1609  fi
1610
1611
1612
1613  # Check whether --enable-closure or --disable-closure was given.
1614if test "${enable_closure+set}" = set; then
1615  enableval="$enable_closure"
1616  kde_use_closure=$enableval
1617else
1618  kde_use_closure=yes
1619fi
1620
1621
1622  if test "x$kde_use_closure" = "xyes"; then
1623       KDE_USE_CLOSURE_TRUE=""
1624       KDE_USE_CLOSURE_FALSE="#"
1625#       CXXFLAGS="$CXXFLAGS $REPO"
1626  else
1627       KDE_USE_CLOSURE_TRUE="#"
1628       KDE_USE_CLOSURE_FALSE=""
1629  fi
1630
1631
1632
1633
1634
1635
1636  KDE_CXXFLAGS=
1637
1638
1639
1640
1641# Check whether --enable-shared or --disable-shared was given.
1642if test "${enable_shared+set}" = set; then
1643  enableval="$enable_shared"
1644  p=${PACKAGE-default}
1645case $enableval in
1646yes) enable_shared=yes ;;
1647no) enable_shared=no ;;
1648*)
1649  enable_shared=no
1650  # Look at the argument we got.  We use all the common list separators.
1651  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1652  for pkg in $enableval; do
1653    if test "X$pkg" = "X$p"; then
1654      enable_shared=yes
1655    fi
1656  done
1657  IFS="$ac_save_ifs"
1658  ;;
1659esac
1660else
1661  enable_shared=yes
1662fi
1663
1664
1665# Check whether --enable-static or --disable-static was given.
1666if test "${enable_static+set}" = set; then
1667  enableval="$enable_static"
1668  p=${PACKAGE-default}
1669case $enableval in
1670yes) enable_static=yes ;;
1671no) enable_static=no ;;
1672*)
1673  enable_static=no
1674  # Look at the argument we got.  We use all the common list separators.
1675  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1676  for pkg in $enableval; do
1677    if test "X$pkg" = "X$p"; then
1678      enable_static=yes
1679    fi
1680  done
1681  IFS="$ac_save_ifs"
1682  ;;
1683esac
1684else
1685  enable_static=no
1686fi
1687
1688
1689# Check whether --enable-fast-install or --disable-fast-install was given.
1690if test "${enable_fast_install+set}" = set; then
1691  enableval="$enable_fast_install"
1692  p=${PACKAGE-default}
1693case $enableval in
1694yes) enable_fast_install=yes ;;
1695no) enable_fast_install=no ;;
1696*)
1697  enable_fast_install=no
1698  # Look at the argument we got.  We use all the common list separators.
1699  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1700  for pkg in $enableval; do
1701    if test "X$pkg" = "X$p"; then
1702      enable_fast_install=yes
1703    fi
1704  done
1705  IFS="$ac_save_ifs"
1706  ;;
1707esac
1708else
1709  enable_fast_install=yes
1710fi
1711
1712# Check whether --with-gnu-ld or --without-gnu-ld was given.
1713if test "${with_gnu_ld+set}" = set; then
1714  withval="$with_gnu_ld"
1715  test "$withval" = no || with_gnu_ld=yes
1716else
1717  with_gnu_ld=no
1718fi
1719
1720ac_prog=ld
1721if test "$GCC" = yes; then
1722  # Check if gcc -print-prog-name=ld gives a path.
1723  echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1724echo "configure:1719: checking for ld used by GCC" >&5
1725  case $host in
1726  *-*-mingw*)
1727    # gcc leaves a trailing carriage return which upsets mingw
1728    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1729  *)
1730    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1731  esac
1732  case $ac_prog in
1733    # Accept absolute paths.
1734    [\\/]* | [A-Za-z]:[\\/]*)
1735      re_direlt='/[^/][^/]*/\.\./'
1736      # Canonicalize the path of ld
1737      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1738      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1739	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1740      done
1741      test -z "$LD" && LD="$ac_prog"
1742      ;;
1743  "")
1744    # If it fails, then pretend we aren't using GCC.
1745    ac_prog=ld
1746    ;;
1747  *)
1748    # If it is relative, then search for the first ld in PATH.
1749    with_gnu_ld=unknown
1750    ;;
1751  esac
1752elif test "$with_gnu_ld" = yes; then
1753  echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1754echo "configure:1749: checking for GNU ld" >&5
1755else
1756  echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1757echo "configure:1752: checking for non-GNU ld" >&5
1758fi
1759if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1760  echo $ac_n "(cached) $ac_c" 1>&6
1761else
1762  if test -z "$LD"; then
1763  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1764  for ac_dir in $PATH; do
1765    test -z "$ac_dir" && ac_dir=.
1766    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1767      lt_cv_path_LD="$ac_dir/$ac_prog"
1768      # Check to see if the program is GNU ld.  I'd rather use --version,
1769      # but apparently some GNU ld's only accept -v.
1770      # Break only if it was the GNU/non-GNU ld that we prefer.
1771      if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1772	test "$with_gnu_ld" != no && break
1773      else
1774	test "$with_gnu_ld" != yes && break
1775      fi
1776    fi
1777  done
1778  IFS="$ac_save_ifs"
1779else
1780  lt_cv_path_LD="$LD" # Let the user override the test with a path.
1781fi
1782fi
1783
1784LD="$lt_cv_path_LD"
1785if test -n "$LD"; then
1786  echo "$ac_t""$LD" 1>&6
1787else
1788  echo "$ac_t""no" 1>&6
1789fi
1790test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1791echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1792echo "configure:1787: checking if the linker ($LD) is GNU ld" >&5
1793if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1794  echo $ac_n "(cached) $ac_c" 1>&6
1795else
1796  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1797if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1798  lt_cv_prog_gnu_ld=yes
1799else
1800  lt_cv_prog_gnu_ld=no
1801fi
1802fi
1803
1804echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1805with_gnu_ld=$lt_cv_prog_gnu_ld
1806
1807
1808echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1809echo "configure:1804: checking for $LD option to reload object files" >&5
1810if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1811  echo $ac_n "(cached) $ac_c" 1>&6
1812else
1813  lt_cv_ld_reload_flag='-r'
1814fi
1815
1816echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1817reload_flag=$lt_cv_ld_reload_flag
1818test -n "$reload_flag" && reload_flag=" $reload_flag"
1819
1820echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1821echo "configure:1816: checking for BSD-compatible nm" >&5
1822if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1823  echo $ac_n "(cached) $ac_c" 1>&6
1824else
1825  if test -n "$NM"; then
1826  # Let the user override the test.
1827  lt_cv_path_NM="$NM"
1828else
1829  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1830  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1831    test -z "$ac_dir" && ac_dir=.
1832    tmp_nm=$ac_dir/${ac_tool_prefix}nm
1833    if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1834      # Check to see if the nm accepts a BSD-compat flag.
1835      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1836      #   nm: unknown option "B" ignored
1837      # Tru64's nm complains that /dev/null is an invalid object file
1838      if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1839	lt_cv_path_NM="$tmp_nm -B"
1840	break
1841      elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1842	lt_cv_path_NM="$tmp_nm -p"
1843	break
1844      else
1845	lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1846	continue # so that we can try to find one that supports BSD flags
1847      fi
1848    fi
1849  done
1850  IFS="$ac_save_ifs"
1851  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1852fi
1853fi
1854
1855NM="$lt_cv_path_NM"
1856echo "$ac_t""$NM" 1>&6
1857
1858echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1859echo "configure:1854: checking whether ln -s works" >&5
1860if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1861  echo $ac_n "(cached) $ac_c" 1>&6
1862else
1863  rm -f conftestdata
1864if ln -s X conftestdata 2>/dev/null
1865then
1866  rm -f conftestdata
1867  ac_cv_prog_LN_S="ln -s"
1868else
1869  ac_cv_prog_LN_S=ln
1870fi
1871fi
1872LN_S="$ac_cv_prog_LN_S"
1873if test "$ac_cv_prog_LN_S" = "ln -s"; then
1874  echo "$ac_t""yes" 1>&6
1875else
1876  echo "$ac_t""no" 1>&6
1877fi
1878
1879echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1880echo "configure:1875: checking how to recognise dependant libraries" >&5
1881if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1882  echo $ac_n "(cached) $ac_c" 1>&6
1883else
1884  lt_cv_file_magic_cmd='$MAGIC_CMD'
1885lt_cv_file_magic_test_file=
1886lt_cv_deplibs_check_method='unknown'
1887# Need to set the preceding variable on all platforms that support
1888# interlibrary dependencies.
1889# 'none' -- dependencies not supported.
1890# `unknown' -- same as none, but documents that we really don't know.
1891# 'pass_all' -- all dependencies passed with no checks.
1892# 'test_compile' -- check by making test program.
1893# 'file_magic [regex]' -- check by looking for files in library path
1894# which responds to the $file_magic_cmd with a given egrep regex.
1895# If you have `file' or equivalent on your system and you're not sure
1896# whether `pass_all' will *always* work, you probably want this one.
1897
1898case $host_os in
1899aix*)
1900  lt_cv_deplibs_check_method=pass_all
1901  ;;
1902
1903beos*)
1904  lt_cv_deplibs_check_method=pass_all
1905  ;;
1906
1907bsdi4*)
1908  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1909  lt_cv_file_magic_cmd='/usr/bin/file -L'
1910  lt_cv_file_magic_test_file=/shlib/libc.so
1911  ;;
1912
1913cygwin* | mingw* |pw32*)
1914  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1915  lt_cv_file_magic_cmd='$OBJDUMP -f'
1916  ;;
1917
1918darwin* | rhapsody*)
1919  lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1920  lt_cv_file_magic_cmd='/usr/bin/file -L'
1921  case "$host_os" in
1922  rhapsody* | darwin1.012)
1923    lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
1924    ;;
1925  *) # Darwin 1.3 on
1926    lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1927    ;;
1928  esac
1929  ;;
1930
1931freebsd* )
1932  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1933    case $host_cpu in
1934    i*86 )
1935      # Not sure whether the presence of OpenBSD here was a mistake.
1936      # Let's accept both of them until this is cleared up.
1937      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1938      lt_cv_file_magic_cmd=/usr/bin/file
1939      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1940      ;;
1941    esac
1942  else
1943    lt_cv_deplibs_check_method=pass_all
1944  fi
1945  ;;
1946
1947gnu*)
1948  lt_cv_deplibs_check_method=pass_all
1949  ;;
1950
1951hpux10.20*|hpux11*)
1952  lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1953  lt_cv_file_magic_cmd=/usr/bin/file
1954  lt_cv_file_magic_test_file=/usr/lib/libc.sl
1955  ;;
1956
1957irix5* | irix6*)
1958  case $host_os in
1959  irix5*)
1960    # this will be overridden with pass_all, but let us keep it just in case
1961    lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1962    ;;
1963  *)
1964    case $LD in
1965    *-32|*"-32 ") libmagic=32-bit;;
1966    *-n32|*"-n32 ") libmagic=N32;;
1967    *-64|*"-64 ") libmagic=64-bit;;
1968    *) libmagic=never-match;;
1969    esac
1970    # this will be overridden with pass_all, but let us keep it just in case
1971    lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1972    ;;
1973  esac
1974  lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1975  lt_cv_deplibs_check_method=pass_all
1976  ;;
1977
1978# This must be Linux ELF.
1979linux*)
1980  case $host_cpu in
1981  alpha* | i*86 | powerpc* | sparc* | ia64* | s390* | m68k* | arm* | mips* | hppa* | sh* )
1982    lt_cv_deplibs_check_method=pass_all ;;
1983  *)
1984    # glibc up to 2.1.1 does not perform some relocations on ARM
1985    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1986  esac
1987  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1988  ;;
1989
1990netbsd*)
1991  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1992    lt_cv_deplibs_check_method='file_magic NetBSD/[a-z0-9]* demand paged shared library'
1993  else
1994    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
1995  fi
1996  lt_cv_file_magic_cmd='/usr/bin/file -L'
1997  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1998  ;;
1999
2000openbsd* )
2001  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2002    case "$host_cpu" in
2003    i*86 )
2004            lt_cv_deplibs_check_method='file_magic OpenBSD/i[3-9]86 demand paged shared library'
2005            lt_cv_file_magic_cmd=/usr/bin/file
2006      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2007      ;;
2008    esac
2009  else
2010    lt_cv_deplibs_check_method=pass_all
2011  fi
2012  ;;
2013
2014newsos6)
2015  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2016  lt_cv_file_magic_cmd=/usr/bin/file
2017  lt_cv_file_magic_test_file=/usr/lib/libnls.so
2018  ;;
2019
2020osf3* | osf4* | osf5*)
2021  # this will be overridden with pass_all, but let us keep it just in case
2022  lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2023  lt_cv_file_magic_test_file=/shlib/libc.so
2024  lt_cv_deplibs_check_method=pass_all
2025  ;;
2026
2027sco3.2v5*)
2028  lt_cv_deplibs_check_method=pass_all
2029  ;;
2030
2031solaris*)
2032  lt_cv_deplibs_check_method=pass_all
2033  lt_cv_file_magic_test_file=/lib/libc.so
2034  ;;
2035
2036sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2037  case $host_vendor in
2038  ncr)
2039    lt_cv_deplibs_check_method=pass_all
2040    ;;
2041  motorola)
2042    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]'
2043    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2044    ;;
2045  esac
2046  ;;
2047esac
2048
2049fi
2050
2051echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2052file_magic_cmd=$lt_cv_file_magic_cmd
2053deplibs_check_method=$lt_cv_deplibs_check_method
2054
2055if test $host != $build; then
2056  ac_tool_prefix=${host_alias}-
2057else
2058  ac_tool_prefix=
2059fi
2060
2061# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2062
2063# Only perform the check for file, if the check method requires it
2064case $deplibs_check_method in
2065file_magic*)
2066  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2067    echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2068echo "configure:2063: checking for ${ac_tool_prefix}file" >&5
2069if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2070  echo $ac_n "(cached) $ac_c" 1>&6
2071else
2072  case $MAGIC_CMD in
2073  /*)
2074  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2075  ;;
2076  ?:/*)
2077  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2078  ;;
2079  *)
2080  ac_save_MAGIC_CMD="$MAGIC_CMD"
2081  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2082  ac_dummy="/usr/bin:$PATH"
2083  for ac_dir in $ac_dummy; do
2084    test -z "$ac_dir" && ac_dir=.
2085    if test -f $ac_dir/${ac_tool_prefix}file; then
2086      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2087      if test -n "$file_magic_test_file"; then
2088	case $deplibs_check_method in
2089	"file_magic "*)
2090	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2091	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2092	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2093	    egrep "$file_magic_regex" > /dev/null; then
2094	    :
2095	  else
2096	    cat <<EOF 1>&2
2097
2098*** Warning: the command libtool uses to detect shared libraries,
2099*** $file_magic_cmd, produces output that libtool cannot recognize.
2100*** The result is that libtool may fail to recognize shared libraries
2101*** as such.  This will affect the creation of libtool libraries that
2102*** depend on shared libraries, but programs linked with such libtool
2103*** libraries will work regardless of this problem.  Nevertheless, you
2104*** may want to report the problem to your system manager and/or to
2105*** bug-libtool@gnu.org
2106
2107EOF
2108	  fi ;;
2109	esac
2110      fi
2111      break
2112    fi
2113  done
2114  IFS="$ac_save_ifs"
2115  MAGIC_CMD="$ac_save_MAGIC_CMD"
2116  ;;
2117esac
2118fi
2119
2120MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2121if test -n "$MAGIC_CMD"; then
2122  echo "$ac_t""$MAGIC_CMD" 1>&6
2123else
2124  echo "$ac_t""no" 1>&6
2125fi
2126
2127if test -z "$lt_cv_path_MAGIC_CMD"; then
2128  if test -n "$ac_tool_prefix"; then
2129    echo $ac_n "checking for file""... $ac_c" 1>&6
2130echo "configure:2125: checking for file" >&5
2131if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2132  echo $ac_n "(cached) $ac_c" 1>&6
2133else
2134  case $MAGIC_CMD in
2135  /*)
2136  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2137  ;;
2138  ?:/*)
2139  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2140  ;;
2141  *)
2142  ac_save_MAGIC_CMD="$MAGIC_CMD"
2143  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2144  ac_dummy="/usr/bin:$PATH"
2145  for ac_dir in $ac_dummy; do
2146    test -z "$ac_dir" && ac_dir=.
2147    if test -f $ac_dir/file; then
2148      lt_cv_path_MAGIC_CMD="$ac_dir/file"
2149      if test -n "$file_magic_test_file"; then
2150	case $deplibs_check_method in
2151	"file_magic "*)
2152	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2153	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2154	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2155	    egrep "$file_magic_regex" > /dev/null; then
2156	    :
2157	  else
2158	    cat <<EOF 1>&2
2159
2160*** Warning: the command libtool uses to detect shared libraries,
2161*** $file_magic_cmd, produces output that libtool cannot recognize.
2162*** The result is that libtool may fail to recognize shared libraries
2163*** as such.  This will affect the creation of libtool libraries that
2164*** depend on shared libraries, but programs linked with such libtool
2165*** libraries will work regardless of this problem.  Nevertheless, you
2166*** may want to report the problem to your system manager and/or to
2167*** bug-libtool@gnu.org
2168
2169EOF
2170	  fi ;;
2171	esac
2172      fi
2173      break
2174    fi
2175  done
2176  IFS="$ac_save_ifs"
2177  MAGIC_CMD="$ac_save_MAGIC_CMD"
2178  ;;
2179esac
2180fi
2181
2182MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2183if test -n "$MAGIC_CMD"; then
2184  echo "$ac_t""$MAGIC_CMD" 1>&6
2185else
2186  echo "$ac_t""no" 1>&6
2187fi
2188
2189  else
2190    MAGIC_CMD=:
2191  fi
2192fi
2193
2194  fi
2195  ;;
2196esac
2197
2198# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2199set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2200echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2201echo "configure:2196: checking for $ac_word" >&5
2202if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2203  echo $ac_n "(cached) $ac_c" 1>&6
2204else
2205  if test -n "$RANLIB"; then
2206  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2207else
2208  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
2209  ac_dummy="$PATH"
2210  for ac_dir in $ac_dummy; do
2211    test -z "$ac_dir" && ac_dir=.
2212    if test -f $ac_dir/$ac_word; then
2213      ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2214      break
2215    fi
2216  done
2217  IFS="$ac_save_ifs"
2218fi
2219fi
2220RANLIB="$ac_cv_prog_RANLIB"
2221if test -n "$RANLIB"; then
2222  echo "$ac_t""$RANLIB" 1>&6
2223else
2224  echo "$ac_t""no" 1>&6
2225fi
2226
2227
2228if test -z "$ac_cv_prog_RANLIB"; then
2229if test -n "$ac_tool_prefix"; then
2230  # Extract the first word of "ranlib", so it can be a program name with args.
2231set dummy ranlib; ac_word=$2
2232echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2233echo "configure:2228: checking for $ac_word" >&5
2234if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2235  echo $ac_n "(cached) $ac_c" 1>&6
2236else
2237  if test -n "$RANLIB"; then
2238  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2239else
2240  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
2241  ac_dummy="$PATH"
2242  for ac_dir in $ac_dummy; do
2243    test -z "$ac_dir" && ac_dir=.
2244    if test -f $ac_dir/$ac_word; then
2245      ac_cv_prog_RANLIB="ranlib"
2246      break
2247    fi
2248  done
2249  IFS="$ac_save_ifs"
2250  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2251fi
2252fi
2253RANLIB="$ac_cv_prog_RANLIB"
2254if test -n "$RANLIB"; then
2255  echo "$ac_t""$RANLIB" 1>&6
2256else
2257  echo "$ac_t""no" 1>&6
2258fi
2259
2260else
2261  RANLIB=":"
2262fi
2263fi
2264
2265# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2266set dummy ${ac_tool_prefix}strip; ac_word=$2
2267echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2268echo "configure:2263: checking for $ac_word" >&5
2269if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2270  echo $ac_n "(cached) $ac_c" 1>&6
2271else
2272  if test -n "$STRIP"; then
2273  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2274else
2275  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
2276  ac_dummy="$PATH"
2277  for ac_dir in $ac_dummy; do
2278    test -z "$ac_dir" && ac_dir=.
2279    if test -f $ac_dir/$ac_word; then
2280      ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2281      break
2282    fi
2283  done
2284  IFS="$ac_save_ifs"
2285fi
2286fi
2287STRIP="$ac_cv_prog_STRIP"
2288if test -n "$STRIP"; then
2289  echo "$ac_t""$STRIP" 1>&6
2290else
2291  echo "$ac_t""no" 1>&6
2292fi
2293
2294
2295if test -z "$ac_cv_prog_STRIP"; then
2296if test -n "$ac_tool_prefix"; then
2297  # Extract the first word of "strip", so it can be a program name with args.
2298set dummy strip; ac_word=$2
2299echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2300echo "configure:2295: checking for $ac_word" >&5
2301if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2302  echo $ac_n "(cached) $ac_c" 1>&6
2303else
2304  if test -n "$STRIP"; then
2305  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2306else
2307  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
2308  ac_dummy="$PATH"
2309  for ac_dir in $ac_dummy; do
2310    test -z "$ac_dir" && ac_dir=.
2311    if test -f $ac_dir/$ac_word; then
2312      ac_cv_prog_STRIP="strip"
2313      break
2314    fi
2315  done
2316  IFS="$ac_save_ifs"
2317  test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2318fi
2319fi
2320STRIP="$ac_cv_prog_STRIP"
2321if test -n "$STRIP"; then
2322  echo "$ac_t""$STRIP" 1>&6
2323else
2324  echo "$ac_t""no" 1>&6
2325fi
2326
2327else
2328  STRIP=":"
2329fi
2330fi
2331
2332
2333# Check for any special flags to pass to ltconfig.
2334libtool_flags="--cache-file=$cache_file"
2335test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2336test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2337test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2338test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2339test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2340libtool_flags="$libtool_flags --enable-dlopen"
2341
2342# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2343if test "${enable_libtool_lock+set}" = set; then
2344  enableval="$enable_libtool_lock"
2345  :
2346fi
2347
2348test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2349test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2350
2351# Check whether --with-pic or --without-pic was given.
2352if test "${with_pic+set}" = set; then
2353  withval="$with_pic"
2354  pic_mode="$withval"
2355else
2356  pic_mode=default
2357fi
2358
2359test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2360test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2361
2362# Some flags need to be propagated to the compiler or linker for good
2363# libtool support.
2364case $host in
2365*-*-irix6*)
2366  # Find out which ABI we are using.
2367  echo '#line 2362 "configure"' > conftest.$ac_ext
2368  if { (eval echo configure:2363: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2369    case `/usr/bin/file conftest.$ac_objext` in
2370    *32-bit*)
2371      LD="${LD-ld} -32"
2372      ;;
2373    *N32*)
2374      LD="${LD-ld} -n32"
2375      ;;
2376    *64-bit*)
2377      LD="${LD-ld} -64"
2378      ;;
2379    esac
2380  fi
2381  rm -rf conftest*
2382  ;;
2383
2384*-*-sco3.2v5*)
2385  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2386  SAVE_CFLAGS="$CFLAGS"
2387  CFLAGS="$CFLAGS -belf"
2388  echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2389echo "configure:2384: checking whether the C compiler needs -belf" >&5
2390if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2391  echo $ac_n "(cached) $ac_c" 1>&6
2392else
2393
2394     ac_ext=c
2395# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2396ac_cpp='$CPP $CPPFLAGS'
2397ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2398ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2399cross_compiling=$ac_cv_prog_cc_cross
2400
2401     cat > conftest.$ac_ext <<EOF
2402#line 2397 "configure"
2403#include "confdefs.h"
2404
2405int main() {
2406
2407; return 0; }
2408EOF
2409if { (eval echo configure:2404: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2410  rm -rf conftest*
2411  lt_cv_cc_needs_belf=yes
2412else
2413  echo "configure: failed program was:" >&5
2414  cat conftest.$ac_ext >&5
2415  rm -rf conftest*
2416  lt_cv_cc_needs_belf=no
2417fi
2418rm -f conftest*
2419     ac_ext=c
2420# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2421ac_cpp='$CPP $CPPFLAGS'
2422ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2423ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2424cross_compiling=$ac_cv_prog_cc_cross
2425
2426fi
2427
2428echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2429  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2430    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2431    CFLAGS="$SAVE_CFLAGS"
2432  fi
2433  ;;
2434
2435
2436esac
2437
2438
2439echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
2440echo "configure:2435: checking for Cygwin environment" >&5
2441if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
2442  echo $ac_n "(cached) $ac_c" 1>&6
2443else
2444  cat > conftest.$ac_ext <<EOF
2445#line 2440 "configure"
2446#include "confdefs.h"
2447
2448int main() {
2449
2450#ifndef __CYGWIN__
2451#define __CYGWIN__ __CYGWIN32__
2452#endif
2453return __CYGWIN__;
2454; return 0; }
2455EOF
2456if { (eval echo configure:2451: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2457  rm -rf conftest*
2458  ac_cv_cygwin=yes
2459else
2460  echo "configure: failed program was:" >&5
2461  cat conftest.$ac_ext >&5
2462  rm -rf conftest*
2463  ac_cv_cygwin=no
2464fi
2465rm -f conftest*
2466rm -f conftest*
2467fi
2468
2469echo "$ac_t""$ac_cv_cygwin" 1>&6
2470CYGWIN=
2471test "$ac_cv_cygwin" = yes && CYGWIN=yes
2472echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
2473echo "configure:2468: checking for mingw32 environment" >&5
2474if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
2475  echo $ac_n "(cached) $ac_c" 1>&6
2476else
2477  cat > conftest.$ac_ext <<EOF
2478#line 2473 "configure"
2479#include "confdefs.h"
2480
2481int main() {
2482return __MINGW32__;
2483; return 0; }
2484EOF
2485if { (eval echo configure:2480: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2486  rm -rf conftest*
2487  ac_cv_mingw32=yes
2488else
2489  echo "configure: failed program was:" >&5
2490  cat conftest.$ac_ext >&5
2491  rm -rf conftest*
2492  ac_cv_mingw32=no
2493fi
2494rm -f conftest*
2495rm -f conftest*
2496fi
2497
2498echo "$ac_t""$ac_cv_mingw32" 1>&6
2499MINGW32=
2500test "$ac_cv_mingw32" = yes && MINGW32=yes
2501
2502# Save cache, so that ltconfig can load it
2503cat > confcache <<\EOF
2504# This file is a shell script that caches the results of configure
2505# tests run on this system so they can be shared between configure
2506# scripts and configure runs.  It is not useful on other systems.
2507# If it contains results you don't want to keep, you may remove or edit it.
2508#
2509# By default, configure uses ./config.cache as the cache file,
2510# creating it if it does not exist already.  You can give configure
2511# the --cache-file=FILE option to use a different cache file; that is
2512# what configure does when it calls configure scripts in
2513# subdirectories, so they share the cache.
2514# Giving --cache-file=/dev/null disables caching, for debugging configure.
2515# config.status only pays attention to the cache file if you give it the
2516# --recheck option to rerun configure.
2517#
2518EOF
2519# The following way of writing the cache mishandles newlines in values,
2520# but we know of no workaround that is simple, portable, and efficient.
2521# So, don't put newlines in cache variables' values.
2522# Ultrix sh set writes to stderr and can't be redirected directly,
2523# and sets the high bit in the cache file unless we assign to the vars.
2524(set) 2>&1 |
2525  case `(ac_space=' '; set | grep ac_space) 2>&1` in
2526  *ac_space=\ *)
2527    # `set' does not quote correctly, so add quotes (double-quote substitution
2528    # turns \\\\ into \\, and sed turns \\ into \).
2529    sed -n \
2530      -e "s/'/'\\\\''/g" \
2531      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2532    ;;
2533  *)
2534    # `set' quotes correctly as required by POSIX, so do not add quotes.
2535    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2536    ;;
2537  esac >> confcache
2538if cmp -s $cache_file confcache; then
2539  :
2540else
2541  if test -w $cache_file; then
2542    echo "updating cache $cache_file"
2543    cat confcache > $cache_file
2544  else
2545    echo "not updating unwritable cache $cache_file"
2546  fi
2547fi
2548rm -f confcache
2549
2550
2551# Actually configure libtool.  ac_aux_dir is where install-sh is found.
2552AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2553MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2554LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2555AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2556objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2557deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2558${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2559$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2560|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2561
2562# Reload cache, that may have been modified by ltconfig
2563if test -r "$cache_file"; then
2564  echo "loading cache $cache_file"
2565  . $cache_file
2566else
2567  echo "creating cache $cache_file"
2568  > $cache_file
2569fi
2570
2571
2572# This can be used to rebuild libtool when needed
2573LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2574
2575# Always use our own libtool.
2576LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2577
2578# Redirect the config.log output again, so that the ltconfig log is not
2579# clobbered by the next message.
2580exec 5>>./config.log
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590ac_ext=c
2591# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2592ac_cpp='$CPP $CPPFLAGS'
2593ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2594ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2595cross_compiling=$ac_cv_prog_cc_cross
2596
2597echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2598echo "configure:2593: checking for object suffix" >&5
2599if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2600  echo $ac_n "(cached) $ac_c" 1>&6
2601else
2602  rm -f conftest*
2603echo 'int i = 1;' > conftest.$ac_ext
2604if { (eval echo configure:2599: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2605  for ac_file in conftest.*; do
2606    case $ac_file in
2607    *.c) ;;
2608    *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2609    esac
2610  done
2611else
2612  { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2613fi
2614rm -f conftest*
2615fi
2616
2617echo "$ac_t""$ac_cv_objext" 1>&6
2618OBJEXT=$ac_cv_objext
2619ac_objext=$ac_cv_objext
2620
2621
2622
2623echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
2624echo "configure:2619: checking for executable suffix" >&5
2625if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
2626  echo $ac_n "(cached) $ac_c" 1>&6
2627else
2628  if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
2629  ac_cv_exeext=.exe
2630else
2631  rm -f conftest*
2632  echo 'int main () { return 0; }' > conftest.$ac_ext
2633  ac_cv_exeext=
2634  if { (eval echo configure:2629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2635    for file in conftest.*; do
2636      case $file in
2637      *.c | *.o | *.obj) ;;
2638      *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
2639      esac
2640    done
2641  else
2642    { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
2643  fi
2644  rm -f conftest*
2645  test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
2646fi
2647fi
2648
2649EXEEXT=""
2650test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
2651echo "$ac_t""${ac_cv_exeext}" 1>&6
2652ac_exeext=$EXEEXT
2653
2654ac_ext=c
2655# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2656ac_cpp='$CPP $CPPFLAGS'
2657ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2658ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2659cross_compiling=$ac_cv_prog_cc_cross
2660
2661
2662
2663
2664
2665
2666
2667# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2668
2669# Only perform the check for file, if the check method requires it
2670case $deplibs_check_method in
2671file_magic*)
2672  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2673    echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2674echo "configure:2669: checking for ${ac_tool_prefix}file" >&5
2675if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2676  echo $ac_n "(cached) $ac_c" 1>&6
2677else
2678  case $MAGIC_CMD in
2679  /*)
2680  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2681  ;;
2682  ?:/*)
2683  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2684  ;;
2685  *)
2686  ac_save_MAGIC_CMD="$MAGIC_CMD"
2687  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2688  ac_dummy="/usr/bin:$PATH"
2689  for ac_dir in $ac_dummy; do
2690    test -z "$ac_dir" && ac_dir=.
2691    if test -f $ac_dir/${ac_tool_prefix}file; then
2692      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2693      if test -n "$file_magic_test_file"; then
2694	case $deplibs_check_method in
2695	"file_magic "*)
2696	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2697	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2698	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2699	    egrep "$file_magic_regex" > /dev/null; then
2700	    :
2701	  else
2702	    cat <<EOF 1>&2
2703
2704*** Warning: the command libtool uses to detect shared libraries,
2705*** $file_magic_cmd, produces output that libtool cannot recognize.
2706*** The result is that libtool may fail to recognize shared libraries
2707*** as such.  This will affect the creation of libtool libraries that
2708*** depend on shared libraries, but programs linked with such libtool
2709*** libraries will work regardless of this problem.  Nevertheless, you
2710*** may want to report the problem to your system manager and/or to
2711*** bug-libtool@gnu.org
2712
2713EOF
2714	  fi ;;
2715	esac
2716      fi
2717      break
2718    fi
2719  done
2720  IFS="$ac_save_ifs"
2721  MAGIC_CMD="$ac_save_MAGIC_CMD"
2722  ;;
2723esac
2724fi
2725
2726MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2727if test -n "$MAGIC_CMD"; then
2728  echo "$ac_t""$MAGIC_CMD" 1>&6
2729else
2730  echo "$ac_t""no" 1>&6
2731fi
2732
2733if test -z "$lt_cv_path_MAGIC_CMD"; then
2734  if test -n "$ac_tool_prefix"; then
2735    echo $ac_n "checking for file""... $ac_c" 1>&6
2736echo "configure:2731: checking for file" >&5
2737if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2738  echo $ac_n "(cached) $ac_c" 1>&6
2739else
2740  case $MAGIC_CMD in
2741  /*)
2742  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2743  ;;
2744  ?:/*)
2745  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2746  ;;
2747  *)
2748  ac_save_MAGIC_CMD="$MAGIC_CMD"
2749  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
2750  ac_dummy="/usr/bin:$PATH"
2751  for ac_dir in $ac_dummy; do
2752    test -z "$ac_dir" && ac_dir=.
2753    if test -f $ac_dir/file; then
2754      lt_cv_path_MAGIC_CMD="$ac_dir/file"
2755      if test -n "$file_magic_test_file"; then
2756	case $deplibs_check_method in
2757	"file_magic "*)
2758	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2759	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2760	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2761	    egrep "$file_magic_regex" > /dev/null; then
2762	    :
2763	  else
2764	    cat <<EOF 1>&2
2765
2766*** Warning: the command libtool uses to detect shared libraries,
2767*** $file_magic_cmd, produces output that libtool cannot recognize.
2768*** The result is that libtool may fail to recognize shared libraries
2769*** as such.  This will affect the creation of libtool libraries that
2770*** depend on shared libraries, but programs linked with such libtool
2771*** libraries will work regardless of this problem.  Nevertheless, you
2772*** may want to report the problem to your system manager and/or to
2773*** bug-libtool@gnu.org
2774
2775EOF
2776	  fi ;;
2777	esac
2778      fi
2779      break
2780    fi
2781  done
2782  IFS="$ac_save_ifs"
2783  MAGIC_CMD="$ac_save_MAGIC_CMD"
2784  ;;
2785esac
2786fi
2787
2788MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2789if test -n "$MAGIC_CMD"; then
2790  echo "$ac_t""$MAGIC_CMD" 1>&6
2791else
2792  echo "$ac_t""no" 1>&6
2793fi
2794
2795  else
2796    MAGIC_CMD=:
2797  fi
2798fi
2799
2800  fi
2801  ;;
2802esac
2803
2804# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2805set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2806echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2807echo "configure:2802: checking for $ac_word" >&5
2808if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2809  echo $ac_n "(cached) $ac_c" 1>&6
2810else
2811  if test -n "$RANLIB"; then
2812  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2813else
2814  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
2815  ac_dummy="$PATH"
2816  for ac_dir in $ac_dummy; do
2817    test -z "$ac_dir" && ac_dir=.
2818    if test -f $ac_dir/$ac_word; then
2819      ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2820      break
2821    fi
2822  done
2823  IFS="$ac_save_ifs"
2824fi
2825fi
2826RANLIB="$ac_cv_prog_RANLIB"
2827if test -n "$RANLIB"; then
2828  echo "$ac_t""$RANLIB" 1>&6
2829else
2830  echo "$ac_t""no" 1>&6
2831fi
2832
2833
2834if test -z "$ac_cv_prog_RANLIB"; then
2835if test -n "$ac_tool_prefix"; then
2836  # Extract the first word of "ranlib", so it can be a program name with args.
2837set dummy ranlib; ac_word=$2
2838echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2839echo "configure:2834: checking for $ac_word" >&5
2840if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2841  echo $ac_n "(cached) $ac_c" 1>&6
2842else
2843  if test -n "$RANLIB"; then
2844  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2845else
2846  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
2847  ac_dummy="$PATH"
2848  for ac_dir in $ac_dummy; do
2849    test -z "$ac_dir" && ac_dir=.
2850    if test -f $ac_dir/$ac_word; then
2851      ac_cv_prog_RANLIB="ranlib"
2852      break
2853    fi
2854  done
2855  IFS="$ac_save_ifs"
2856  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2857fi
2858fi
2859RANLIB="$ac_cv_prog_RANLIB"
2860if test -n "$RANLIB"; then
2861  echo "$ac_t""$RANLIB" 1>&6
2862else
2863  echo "$ac_t""no" 1>&6
2864fi
2865
2866else
2867  RANLIB=":"
2868fi
2869fi
2870
2871# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2872set dummy ${ac_tool_prefix}strip; ac_word=$2
2873echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2874echo "configure:2869: checking for $ac_word" >&5
2875if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2876  echo $ac_n "(cached) $ac_c" 1>&6
2877else
2878  if test -n "$STRIP"; then
2879  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2880else
2881  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
2882  ac_dummy="$PATH"
2883  for ac_dir in $ac_dummy; do
2884    test -z "$ac_dir" && ac_dir=.
2885    if test -f $ac_dir/$ac_word; then
2886      ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2887      break
2888    fi
2889  done
2890  IFS="$ac_save_ifs"
2891fi
2892fi
2893STRIP="$ac_cv_prog_STRIP"
2894if test -n "$STRIP"; then
2895  echo "$ac_t""$STRIP" 1>&6
2896else
2897  echo "$ac_t""no" 1>&6
2898fi
2899
2900
2901if test -z "$ac_cv_prog_STRIP"; then
2902if test -n "$ac_tool_prefix"; then
2903  # Extract the first word of "strip", so it can be a program name with args.
2904set dummy strip; ac_word=$2
2905echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2906echo "configure:2901: checking for $ac_word" >&5
2907if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2908  echo $ac_n "(cached) $ac_c" 1>&6
2909else
2910  if test -n "$STRIP"; then
2911  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2912else
2913  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
2914  ac_dummy="$PATH"
2915  for ac_dir in $ac_dummy; do
2916    test -z "$ac_dir" && ac_dir=.
2917    if test -f $ac_dir/$ac_word; then
2918      ac_cv_prog_STRIP="strip"
2919      break
2920    fi
2921  done
2922  IFS="$ac_save_ifs"
2923  test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2924fi
2925fi
2926STRIP="$ac_cv_prog_STRIP"
2927if test -n "$STRIP"; then
2928  echo "$ac_t""$STRIP" 1>&6
2929else
2930  echo "$ac_t""no" 1>&6
2931fi
2932
2933else
2934  STRIP=":"
2935fi
2936fi
2937
2938
2939# Check for any special flags to pass to ltconfig.
2940libtool_flags="--cache-file=$cache_file"
2941test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2942test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2943test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2944test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2945test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2946libtool_flags="$libtool_flags --enable-dlopen"
2947
2948# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2949if test "${enable_libtool_lock+set}" = set; then
2950  enableval="$enable_libtool_lock"
2951  :
2952fi
2953
2954test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2955test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2956
2957# Check whether --with-pic or --without-pic was given.
2958if test "${with_pic+set}" = set; then
2959  withval="$with_pic"
2960  pic_mode="$withval"
2961else
2962  pic_mode=default
2963fi
2964
2965test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2966test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2967
2968# Some flags need to be propagated to the compiler or linker for good
2969# libtool support.
2970case $host in
2971*-*-irix6*)
2972  # Find out which ABI we are using.
2973  echo '#line 2968 "configure"' > conftest.$ac_ext
2974  if { (eval echo configure:2969: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2975    case `/usr/bin/file conftest.$ac_objext` in
2976    *32-bit*)
2977      LD="${LD-ld} -32"
2978      ;;
2979    *N32*)
2980      LD="${LD-ld} -n32"
2981      ;;
2982    *64-bit*)
2983      LD="${LD-ld} -64"
2984      ;;
2985    esac
2986  fi
2987  rm -rf conftest*
2988  ;;
2989
2990*-*-sco3.2v5*)
2991  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2992  SAVE_CFLAGS="$CFLAGS"
2993  CFLAGS="$CFLAGS -belf"
2994  echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2995echo "configure:2990: checking whether the C compiler needs -belf" >&5
2996if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2997  echo $ac_n "(cached) $ac_c" 1>&6
2998else
2999
3000     ac_ext=c
3001# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3002ac_cpp='$CPP $CPPFLAGS'
3003ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3004ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3005cross_compiling=$ac_cv_prog_cc_cross
3006
3007     cat > conftest.$ac_ext <<EOF
3008#line 3003 "configure"
3009#include "confdefs.h"
3010
3011int main() {
3012
3013; return 0; }
3014EOF
3015if { (eval echo configure:3010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3016  rm -rf conftest*
3017  lt_cv_cc_needs_belf=yes
3018else
3019  echo "configure: failed program was:" >&5
3020  cat conftest.$ac_ext >&5
3021  rm -rf conftest*
3022  lt_cv_cc_needs_belf=no
3023fi
3024rm -f conftest*
3025     ac_ext=c
3026# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3027ac_cpp='$CPP $CPPFLAGS'
3028ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3029ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3030cross_compiling=$ac_cv_prog_cc_cross
3031
3032fi
3033
3034echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
3035  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3036    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3037    CFLAGS="$SAVE_CFLAGS"
3038  fi
3039  ;;
3040
3041
3042esac
3043
3044
3045LIBTOOL_SHELL="/bin/sh ./libtool"
3046#  LIBTOOL="$LIBTOOL --silent"
3047
3048
3049
3050
3051
3052
3053echo $ac_n "checking for extra includes""... $ac_c" 1>&6
3054echo "configure:3049: checking for extra includes" >&5
3055# Check whether --with-extra-includes or --without-extra-includes was given.
3056if test "${with_extra_includes+set}" = set; then
3057  withval="$with_extra_includes"
3058  kde_use_extra_includes="$withval"
3059else
3060  kde_use_extra_includes=NONE
3061
3062fi
3063
3064kde_extra_includes=
3065if test -n "$kde_use_extra_includes" && \
3066   test "$kde_use_extra_includes" != "NONE"; then
3067
3068   ac_save_ifs=$IFS
3069   IFS=':'
3070   for dir in $kde_use_extra_includes; do
3071     kde_extra_includes="$kde_extra_includes $dir"
3072     USER_INCLUDES="$USER_INCLUDES -I$dir"
3073   done
3074   IFS=$ac_save_ifs
3075   kde_use_extra_includes="added"
3076else
3077   kde_use_extra_includes="no"
3078fi
3079
3080
3081echo "$ac_t""$kde_use_extra_includes" 1>&6
3082
3083kde_extra_libs=
3084echo $ac_n "checking for extra libs""... $ac_c" 1>&6
3085echo "configure:3080: checking for extra libs" >&5
3086# Check whether --with-extra-libs or --without-extra-libs was given.
3087if test "${with_extra_libs+set}" = set; then
3088  withval="$with_extra_libs"
3089  kde_use_extra_libs=$withval
3090else
3091  kde_use_extra_libs=NONE
3092
3093fi
3094
3095if test -n "$kde_use_extra_libs" && \
3096   test "$kde_use_extra_libs" != "NONE"; then
3097
3098   ac_save_ifs=$IFS
3099   IFS=':'
3100   for dir in $kde_use_extra_libs; do
3101     kde_extra_libs="$kde_extra_libs $dir"
3102     KDE_EXTRA_RPATH="$KDE_EXTRA_RPATH -R $dir"
3103     USER_LDFLAGS="$USER_LDFLAGS -L$dir"
3104   done
3105   IFS=$ac_save_ifs
3106   kde_use_extra_libs="added"
3107else
3108   kde_use_extra_libs="no"
3109fi
3110
3111
3112
3113echo "$ac_t""$kde_use_extra_libs" 1>&6
3114
3115
3116all_libraries="$all_libraries $USER_LDFLAGS"
3117all_includes="$all_includes $USER_INCLUDES"
3118
3119
3120
3121
3122
3123
3124
3125DO_NOT_COMPILE="$DO_NOT_COMPILE CVS debian bsd-port admin"
3126
3127if test ! -s $srcdir/subdirs; then
3128    TOPSUBDIRS=""
3129  files=`cd $srcdir && ls -1`
3130  dirs=`for i in $files; do if test -d $i; then echo $i; fi; done`
3131  for i in $dirs; do
3132    echo $i >> $srcdir/subdirs
3133  done
3134fi
3135
3136if test -s $srcdir/inst-apps; then
3137  ac_topsubdirs="`cat $srcdir/inst-apps`"
3138else
3139  ac_topsubdirs="`cat $srcdir/subdirs`"
3140fi
3141
3142for i in $ac_topsubdirs; do
3143  echo $ac_n "checking if $i should be compiled""... $ac_c" 1>&6
3144echo "configure:3139: checking if $i should be compiled" >&5
3145  if test -d $srcdir/$i; then
3146    install_it="yes"
3147    for j in $DO_NOT_COMPILE; do
3148      if test $i = $j; then
3149        install_it="no"
3150      fi
3151    done
3152  else
3153    install_it="no"
3154  fi
3155  echo "$ac_t""$install_it" 1>&6
3156  if test $install_it = "yes"; then
3157    TOPSUBDIRS="$TOPSUBDIRS $i"
3158  fi
3159done
3160
3161
3162
3163trap '' 1 2 15
3164cat > confcache <<\EOF
3165# This file is a shell script that caches the results of configure
3166# tests run on this system so they can be shared between configure
3167# scripts and configure runs.  It is not useful on other systems.
3168# If it contains results you don't want to keep, you may remove or edit it.
3169#
3170# By default, configure uses ./config.cache as the cache file,
3171# creating it if it does not exist already.  You can give configure
3172# the --cache-file=FILE option to use a different cache file; that is
3173# what configure does when it calls configure scripts in
3174# subdirectories, so they share the cache.
3175# Giving --cache-file=/dev/null disables caching, for debugging configure.
3176# config.status only pays attention to the cache file if you give it the
3177# --recheck option to rerun configure.
3178#
3179EOF
3180# The following way of writing the cache mishandles newlines in values,
3181# but we know of no workaround that is simple, portable, and efficient.
3182# So, don't put newlines in cache variables' values.
3183# Ultrix sh set writes to stderr and can't be redirected directly,
3184# and sets the high bit in the cache file unless we assign to the vars.
3185(set) 2>&1 |
3186  case `(ac_space=' '; set | grep ac_space) 2>&1` in
3187  *ac_space=\ *)
3188    # `set' does not quote correctly, so add quotes (double-quote substitution
3189    # turns \\\\ into \\, and sed turns \\ into \).
3190    sed -n \
3191      -e "s/'/'\\\\''/g" \
3192      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3193    ;;
3194  *)
3195    # `set' quotes correctly as required by POSIX, so do not add quotes.
3196    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3197    ;;
3198  esac >> confcache
3199if cmp -s $cache_file confcache; then
3200  :
3201else
3202  if test -w $cache_file; then
3203    echo "updating cache $cache_file"
3204    cat confcache > $cache_file
3205  else
3206    echo "not updating unwritable cache $cache_file"
3207  fi
3208fi
3209rm -f confcache
3210
3211trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3212
3213test "x$prefix" = xNONE && prefix=$ac_default_prefix
3214# Let make expand exec_prefix.
3215test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3216
3217# Any assignment to VPATH causes Sun make to only execute
3218# the first set of double-colon rules, so remove it if not needed.
3219# If there is a colon in the path, we need to keep it.
3220if test "x$srcdir" = x.; then
3221  ac_vpsub='/^[ 	]*VPATH[ 	]*=[^:]*$/d'
3222fi
3223
3224trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3225
3226DEFS=-DHAVE_CONFIG_H
3227
3228# Without the "./", some shells look in PATH for config.status.
3229: ${CONFIG_STATUS=./config.status}
3230
3231echo creating $CONFIG_STATUS
3232rm -f $CONFIG_STATUS
3233cat > $CONFIG_STATUS <<EOF
3234#! /bin/sh
3235# Generated automatically by configure.
3236# Run this file to recreate the current configuration.
3237# This directory was configured as follows,
3238# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3239#
3240# $0 $ac_configure_args
3241#
3242# Compiler output produced by configure, useful for debugging
3243# configure, is in ./config.log if it exists.
3244
3245ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3246for ac_option
3247do
3248  case "\$ac_option" in
3249  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3250    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3251    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3252  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3253    echo "$CONFIG_STATUS generated by autoconf version 2.13"
3254    exit 0 ;;
3255  -help | --help | --hel | --he | --h)
3256    echo "\$ac_cs_usage"; exit 0 ;;
3257  *) echo "\$ac_cs_usage"; exit 1 ;;
3258  esac
3259done
3260
3261ac_given_srcdir=$srcdir
3262ac_given_INSTALL="$INSTALL"
3263
3264trap 'rm -fr `echo "\
3265./Makefile \
3266yaph/Makefile \
3267yaph/docs/Makefile \
3268yaph/docs/en/Makefile \
3269 config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3270EOF
3271cat >> $CONFIG_STATUS <<EOF
3272
3273# Protect against being on the right side of a sed subst in config.status.
3274sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3275 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3276$ac_vpsub
3277$extrasub
3278s%@SHELL@%$SHELL%g
3279s%@CFLAGS@%$CFLAGS%g
3280s%@CPPFLAGS@%$CPPFLAGS%g
3281s%@CXXFLAGS@%$CXXFLAGS%g
3282s%@FFLAGS@%$FFLAGS%g
3283s%@DEFS@%$DEFS%g
3284s%@LDFLAGS@%$LDFLAGS%g
3285s%@LIBS@%$LIBS%g
3286s%@exec_prefix@%$exec_prefix%g
3287s%@prefix@%$prefix%g
3288s%@program_transform_name@%$program_transform_name%g
3289s%@bindir@%$bindir%g
3290s%@sbindir@%$sbindir%g
3291s%@libexecdir@%$libexecdir%g
3292s%@datadir@%$datadir%g
3293s%@sysconfdir@%$sysconfdir%g
3294s%@sharedstatedir@%$sharedstatedir%g
3295s%@localstatedir@%$localstatedir%g
3296s%@libdir@%$libdir%g
3297s%@includedir@%$includedir%g
3298s%@oldincludedir@%$oldincludedir%g
3299s%@infodir@%$infodir%g
3300s%@mandir@%$mandir%g
3301s%@host@%$host%g
3302s%@host_alias@%$host_alias%g
3303s%@host_cpu@%$host_cpu%g
3304s%@host_vendor@%$host_vendor%g
3305s%@host_os@%$host_os%g
3306s%@target@%$target%g
3307s%@target_alias@%$target_alias%g
3308s%@target_cpu@%$target_cpu%g
3309s%@target_vendor@%$target_vendor%g
3310s%@target_os@%$target_os%g
3311s%@build@%$build%g
3312s%@build_alias@%$build_alias%g
3313s%@build_cpu@%$build_cpu%g
3314s%@build_vendor@%$build_vendor%g
3315s%@build_os@%$build_os%g
3316s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3317s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3318s%@INSTALL_DATA@%$INSTALL_DATA%g
3319s%@PACKAGE@%$PACKAGE%g
3320s%@VERSION@%$VERSION%g
3321s%@ACLOCAL@%$ACLOCAL%g
3322s%@AUTOCONF@%$AUTOCONF%g
3323s%@AUTOMAKE@%$AUTOMAKE%g
3324s%@AUTOHEADER@%$AUTOHEADER%g
3325s%@MAKEINFO@%$MAKEINFO%g
3326s%@SET_MAKE@%$SET_MAKE%g
3327s%@CONF_FILES@%$CONF_FILES%g
3328s%@CC@%$CC%g
3329s%@USE_EXCEPTIONS@%$USE_EXCEPTIONS%g
3330s%@USE_RTTI@%$USE_RTTI%g
3331s%@CPP@%$CPP%g
3332s%@NOOPT_CFLAGS@%$NOOPT_CFLAGS%g
3333s%@REPO@%$REPO%g
3334s%@NOREPO@%$NOREPO%g
3335s%@KDE_USE_FINAL_TRUE@%$KDE_USE_FINAL_TRUE%g
3336s%@KDE_USE_FINAL_FALSE@%$KDE_USE_FINAL_FALSE%g
3337s%@KDE_USE_CLOSURE_TRUE@%$KDE_USE_CLOSURE_TRUE%g
3338s%@KDE_USE_CLOSURE_FALSE@%$KDE_USE_CLOSURE_FALSE%g
3339s%@KDE_CXXFLAGS@%$KDE_CXXFLAGS%g
3340s%@OBJEXT@%$OBJEXT%g
3341s%@EXEEXT@%$EXEEXT%g
3342s%@LN_S@%$LN_S%g
3343s%@RANLIB@%$RANLIB%g
3344s%@STRIP@%$STRIP%g
3345s%@LIBTOOL@%$LIBTOOL%g
3346s%@USER_INCLUDES@%$USER_INCLUDES%g
3347s%@USER_LDFLAGS@%$USER_LDFLAGS%g
3348s%@all_includes@%$all_includes%g
3349s%@all_libraries@%$all_libraries%g
3350s%@AUTODIRS@%$AUTODIRS%g
3351s%@TOPSUBDIRS@%$TOPSUBDIRS%g
3352
3353CEOF
3354EOF
3355
3356cat >> $CONFIG_STATUS <<\EOF
3357
3358# Split the substitutions into bite-sized pieces for seds with
3359# small command number limits, like on Digital OSF/1 and HP-UX.
3360ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3361ac_file=1 # Number of current file.
3362ac_beg=1 # First line for current file.
3363ac_end=$ac_max_sed_cmds # Line after last line for current file.
3364ac_more_lines=:
3365ac_sed_cmds=""
3366while $ac_more_lines; do
3367  if test $ac_beg -gt 1; then
3368    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3369  else
3370    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3371  fi
3372  if test ! -s conftest.s$ac_file; then
3373    ac_more_lines=false
3374    rm -f conftest.s$ac_file
3375  else
3376    if test -z "$ac_sed_cmds"; then
3377      ac_sed_cmds="sed -f conftest.s$ac_file"
3378    else
3379      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3380    fi
3381    ac_file=`expr $ac_file + 1`
3382    ac_beg=$ac_end
3383    ac_end=`expr $ac_end + $ac_max_sed_cmds`
3384  fi
3385done
3386if test -z "$ac_sed_cmds"; then
3387  ac_sed_cmds=cat
3388fi
3389EOF
3390
3391cat >> $CONFIG_STATUS <<EOF
3392
3393CONFIG_FILES=\${CONFIG_FILES-"\
3394./Makefile \
3395yaph/Makefile \
3396yaph/docs/Makefile \
3397yaph/docs/en/Makefile \
3398"}
3399EOF
3400cat >> $CONFIG_STATUS <<\EOF
3401for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3402  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3403  case "$ac_file" in
3404  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3405       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3406  *) ac_file_in="${ac_file}.in" ;;
3407  esac
3408
3409  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3410
3411  # Remove last slash and all that follows it.  Not all systems have dirname.
3412  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3413  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3414    # The file is in a subdirectory.
3415    test ! -d "$ac_dir" && mkdir "$ac_dir"
3416    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3417    # A "../" for each directory in $ac_dir_suffix.
3418    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3419  else
3420    ac_dir_suffix= ac_dots=
3421  fi
3422
3423  case "$ac_given_srcdir" in
3424  .)  srcdir=.
3425      if test -z "$ac_dots"; then top_srcdir=.
3426      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3427  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3428  *) # Relative path.
3429    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3430    top_srcdir="$ac_dots$ac_given_srcdir" ;;
3431  esac
3432
3433  case "$ac_given_INSTALL" in
3434  [/$]*) INSTALL="$ac_given_INSTALL" ;;
3435"") ;;
3436  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
3437  esac
3438
3439  echo creating "$ac_file"
3440  rm -f "$ac_file"
3441  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3442  case "$ac_file" in
3443  *Makefile*) ac_comsub="1i\\
3444# $configure_input" ;;
3445  *) ac_comsub= ;;
3446  esac
3447
3448  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3449  sed -e "$ac_comsub
3450s%@configure_input@%$configure_input%g
3451s%@srcdir@%$srcdir%g
3452s%@top_srcdir@%$top_srcdir%g
3453s%@INSTALL@%$INSTALL%g
3454" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3455fi; done
3456rm -f conftest.s*
3457
3458# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3459# NAME is the cpp macro being defined and VALUE is the value it is being given.
3460#
3461# ac_d sets the value in "#define NAME VALUE" lines.
3462ac_dA='s%^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)'
3463ac_dB='\([ 	][ 	]*\)[^ 	]*%\1#\2'
3464ac_dC='\3'
3465ac_dD='%g'
3466# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
3467ac_uA='s%^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
3468ac_uB='\([ 	]\)%\1#\2define\3'
3469ac_uC=' '
3470ac_uD='\4%g'
3471# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3472ac_eA='s%^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
3473ac_eB='$%\1#\2define\3'
3474ac_eC=' '
3475ac_eD='%g'
3476
3477if test "${CONFIG_HEADERS+set}" != set; then
3478EOF
3479cat >> $CONFIG_STATUS <<EOF
3480  CONFIG_HEADERS="config.h"
3481EOF
3482cat >> $CONFIG_STATUS <<\EOF
3483fi
3484for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
3485  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3486  case "$ac_file" in
3487  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3488       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3489  *) ac_file_in="${ac_file}.in" ;;
3490  esac
3491
3492  echo creating $ac_file
3493
3494  rm -f conftest.frag conftest.in conftest.out
3495  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3496  cat $ac_file_inputs > conftest.in
3497
3498EOF
3499
3500# Transform confdefs.h into a sed script conftest.vals that substitutes
3501# the proper values into config.h.in to produce config.h.  And first:
3502# Protect against being on the right side of a sed subst in config.status.
3503# Protect against being in an unquoted here document in config.status.
3504rm -f conftest.vals
3505cat > conftest.hdr <<\EOF
3506s/[\\&%]/\\&/g
3507s%[\\$`]%\\&%g
3508s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3509s%ac_d%ac_u%gp
3510s%ac_u%ac_e%gp
3511EOF
3512sed -n -f conftest.hdr confdefs.h > conftest.vals
3513rm -f conftest.hdr
3514
3515# This sed command replaces #undef with comments.  This is necessary, for
3516# example, in the case of _POSIX_SOURCE, which is predefined and required
3517# on some systems where configure will not decide to define it.
3518cat >> conftest.vals <<\EOF
3519s%^[ 	]*#[ 	]*undef[ 	][ 	]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3520EOF
3521
3522# Break up conftest.vals because some shells have a limit on
3523# the size of here documents, and old seds have small limits too.
3524
3525rm -f conftest.tail
3526while :
3527do
3528  ac_lines=`grep -c . conftest.vals`
3529  # grep -c gives empty output for an empty file on some AIX systems.
3530  if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3531  # Write a limited-size here document to conftest.frag.
3532  echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3533  sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3534  echo 'CEOF
3535  sed -f conftest.frag conftest.in > conftest.out
3536  rm -f conftest.in
3537  mv conftest.out conftest.in
3538' >> $CONFIG_STATUS
3539  sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3540  rm -f conftest.vals
3541  mv conftest.tail conftest.vals
3542done
3543rm -f conftest.vals
3544
3545cat >> $CONFIG_STATUS <<\EOF
3546  rm -f conftest.frag conftest.h
3547  echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
3548  cat conftest.in >> conftest.h
3549  rm -f conftest.in
3550  if cmp -s $ac_file conftest.h 2>/dev/null; then
3551    echo "$ac_file is unchanged"
3552    rm -f conftest.h
3553  else
3554    # Remove last slash and all that follows it.  Not all systems have dirname.
3555      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3556      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3557      # The file is in a subdirectory.
3558      test ! -d "$ac_dir" && mkdir "$ac_dir"
3559    fi
3560    rm -f $ac_file
3561    mv conftest.h $ac_file
3562  fi
3563fi; done
3564
3565EOF
3566cat >> $CONFIG_STATUS <<EOF
3567
3568
3569EOF
3570cat >> $CONFIG_STATUS <<\EOF
3571test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
3572
3573exit 0
3574EOF
3575if test "x$with_fast_perl" = "xyes" ; then
3576  perl -i.bak $ac_aux_dir/conf.change.pl $CONFIG_STATUS || mv $CONFIG_STATUS.bak $CONFIG_STATUS;
3577  rm -f $CONFIG_STATUS.bak;
3578fi
3579chmod +x $CONFIG_STATUS
3580rm -fr confdefs* $ac_clean_files
3581test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3582
3583