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=${KDEDIR:-/usr/local/kde}
15ac_help="$ac_help
16  --enable-debug 	  creates debugging code [default=no]"
17ac_help="$ac_help
18  --enable-strict         compiles with strict compiler options (may not work!)"
19ac_help="$ac_help
20  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]"
21ac_help="$ac_help
22  --disable-nls           do not use Native Language Support"
23ac_help="$ac_help
24  --with-qt-dir           where the root of qt is installed "
25ac_help="$ac_help
26  --with-qt-includes      where the Qt includes are. "
27ac_help="$ac_help
28  --with-qt-libraries     where the Qt library is installed."
29ac_help="$ac_help
30  --with-extra-includes   adds non standard include paths"
31ac_help="$ac_help
32  --with-extra-libs       adds non standard library paths"
33ac_help="$ac_help
34  --disable-path-check    don't try to find out, where to install"
35ac_help="$ac_help
36  --with-install-root     the root, where to install to [default=/]"
37ac_help="$ac_help
38  --disable-rpath         do not use the rpath feature of ld"
39
40# Initialize some variables set by options.
41# The variables have the same names as the options, with
42# dashes changed to underlines.
43build=NONE
44cache_file=./config.cache
45exec_prefix=NONE
46host=NONE
47no_create=
48nonopt=NONE
49no_recursion=
50prefix=NONE
51program_prefix=NONE
52program_suffix=NONE
53program_transform_name=s,x,x,
54silent=
55site=
56srcdir=
57target=NONE
58verbose=
59x_includes=NONE
60x_libraries=NONE
61bindir='${exec_prefix}/bin'
62sbindir='${exec_prefix}/sbin'
63libexecdir='${exec_prefix}/libexec'
64datadir='${prefix}/share'
65sysconfdir='${prefix}/etc'
66sharedstatedir='${prefix}/com'
67localstatedir='${prefix}/var'
68libdir='${exec_prefix}/lib'
69includedir='${prefix}/include'
70oldincludedir='/usr/include'
71infodir='${prefix}/info'
72mandir='${prefix}/man'
73
74# Initialize some other variables.
75subdirs=
76MFLAGS= MAKEFLAGS=
77SHELL=${CONFIG_SHELL-/bin/sh}
78# Maximum number of lines to put in a shell here document.
79ac_max_here_lines=12
80
81ac_prev=
82for ac_option
83do
84
85  # If the previous option needs an argument, assign it.
86  if test -n "$ac_prev"; then
87    eval "$ac_prev=\$ac_option"
88    ac_prev=
89    continue
90  fi
91
92  case "$ac_option" in
93  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
94  *) ac_optarg= ;;
95  esac
96
97  # Accept the important Cygnus configure options, so we can diagnose typos.
98
99  case "$ac_option" in
100
101  -bindir | --bindir | --bindi | --bind | --bin | --bi)
102    ac_prev=bindir ;;
103  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
104    bindir="$ac_optarg" ;;
105
106  -build | --build | --buil | --bui | --bu)
107    ac_prev=build ;;
108  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
109    build="$ac_optarg" ;;
110
111  -cache-file | --cache-file | --cache-fil | --cache-fi \
112  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
113    ac_prev=cache_file ;;
114  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
115  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
116    cache_file="$ac_optarg" ;;
117
118  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
119    ac_prev=datadir ;;
120  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
121  | --da=*)
122    datadir="$ac_optarg" ;;
123
124  -disable-* | --disable-*)
125    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
126    # Reject names that are not valid shell variable names.
127    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
128      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
129    fi
130    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
131    eval "enable_${ac_feature}=no" ;;
132
133  -enable-* | --enable-*)
134    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
135    # Reject names that are not valid shell variable names.
136    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
137      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
138    fi
139    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
140    case "$ac_option" in
141      *=*) ;;
142      *) ac_optarg=yes ;;
143    esac
144    eval "enable_${ac_feature}='$ac_optarg'" ;;
145
146  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
147  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
148  | --exec | --exe | --ex)
149    ac_prev=exec_prefix ;;
150  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
151  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
152  | --exec=* | --exe=* | --ex=*)
153    exec_prefix="$ac_optarg" ;;
154
155  -gas | --gas | --ga | --g)
156    # Obsolete; use --with-gas.
157    with_gas=yes ;;
158
159  -help | --help | --hel | --he)
160    # Omit some internal or obsolete options to make the list less imposing.
161    # This message is too long to be a string in the A/UX 3.1 sh.
162    cat << EOF
163Usage: configure [options] [host]
164Options: [defaults in brackets after descriptions]
165Configuration:
166  --cache-file=FILE       cache test results in FILE
167  --help                  print this message
168  --no-create             do not create output files
169  --quiet, --silent       do not print \`checking...' messages
170  --version               print the version of autoconf that created configure
171Directory and file names:
172  --prefix=PREFIX         install architecture-independent files in PREFIX
173                          [$ac_default_prefix]
174  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
175                          [same as prefix]
176  --bindir=DIR            user executables in DIR [EPREFIX/bin]
177  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
178  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
179  --datadir=DIR           read-only architecture-independent data in DIR
180                          [PREFIX/share]
181  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
182  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
183                          [PREFIX/com]
184  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
185  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
186  --includedir=DIR        C header files in DIR [PREFIX/include]
187  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
188  --infodir=DIR           info documentation in DIR [PREFIX/info]
189  --mandir=DIR            man documentation in DIR [PREFIX/man]
190  --srcdir=DIR            find the sources in DIR [configure dir or ..]
191  --program-prefix=PREFIX prepend PREFIX to installed program names
192  --program-suffix=SUFFIX append SUFFIX to installed program names
193  --program-transform-name=PROGRAM
194                          run sed PROGRAM on installed program names
195EOF
196    cat << EOF
197Host type:
198  --build=BUILD           configure for building on BUILD [BUILD=HOST]
199  --host=HOST             configure for HOST [guessed]
200  --target=TARGET         configure for TARGET [TARGET=HOST]
201Features and packages:
202  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
203  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
204  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
205  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
206  --x-includes=DIR        X include files are in DIR
207  --x-libraries=DIR       X library files are in DIR
208EOF
209    if test -n "$ac_help"; then
210      echo "--enable and --with options recognized:$ac_help"
211    fi
212    exit 0 ;;
213
214  -host | --host | --hos | --ho)
215    ac_prev=host ;;
216  -host=* | --host=* | --hos=* | --ho=*)
217    host="$ac_optarg" ;;
218
219  -includedir | --includedir | --includedi | --included | --include \
220  | --includ | --inclu | --incl | --inc)
221    ac_prev=includedir ;;
222  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
223  | --includ=* | --inclu=* | --incl=* | --inc=*)
224    includedir="$ac_optarg" ;;
225
226  -infodir | --infodir | --infodi | --infod | --info | --inf)
227    ac_prev=infodir ;;
228  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
229    infodir="$ac_optarg" ;;
230
231  -libdir | --libdir | --libdi | --libd)
232    ac_prev=libdir ;;
233  -libdir=* | --libdir=* | --libdi=* | --libd=*)
234    libdir="$ac_optarg" ;;
235
236  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
237  | --libexe | --libex | --libe)
238    ac_prev=libexecdir ;;
239  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
240  | --libexe=* | --libex=* | --libe=*)
241    libexecdir="$ac_optarg" ;;
242
243  -localstatedir | --localstatedir | --localstatedi | --localstated \
244  | --localstate | --localstat | --localsta | --localst \
245  | --locals | --local | --loca | --loc | --lo)
246    ac_prev=localstatedir ;;
247  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
248  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
249  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
250    localstatedir="$ac_optarg" ;;
251
252  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
253    ac_prev=mandir ;;
254  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
255    mandir="$ac_optarg" ;;
256
257  -nfp | --nfp | --nf)
258    # Obsolete; use --without-fp.
259    with_fp=no ;;
260
261  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
262  | --no-cr | --no-c)
263    no_create=yes ;;
264
265  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
266  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
267    no_recursion=yes ;;
268
269  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
270  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
271  | --oldin | --oldi | --old | --ol | --o)
272    ac_prev=oldincludedir ;;
273  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
274  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
275  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
276    oldincludedir="$ac_optarg" ;;
277
278  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
279    ac_prev=prefix ;;
280  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
281    prefix="$ac_optarg" ;;
282
283  -program-prefix | --program-prefix | --program-prefi | --program-pref \
284  | --program-pre | --program-pr | --program-p)
285    ac_prev=program_prefix ;;
286  -program-prefix=* | --program-prefix=* | --program-prefi=* \
287  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
288    program_prefix="$ac_optarg" ;;
289
290  -program-suffix | --program-suffix | --program-suffi | --program-suff \
291  | --program-suf | --program-su | --program-s)
292    ac_prev=program_suffix ;;
293  -program-suffix=* | --program-suffix=* | --program-suffi=* \
294  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
295    program_suffix="$ac_optarg" ;;
296
297  -program-transform-name | --program-transform-name \
298  | --program-transform-nam | --program-transform-na \
299  | --program-transform-n | --program-transform- \
300  | --program-transform | --program-transfor \
301  | --program-transfo | --program-transf \
302  | --program-trans | --program-tran \
303  | --progr-tra | --program-tr | --program-t)
304    ac_prev=program_transform_name ;;
305  -program-transform-name=* | --program-transform-name=* \
306  | --program-transform-nam=* | --program-transform-na=* \
307  | --program-transform-n=* | --program-transform-=* \
308  | --program-transform=* | --program-transfor=* \
309  | --program-transfo=* | --program-transf=* \
310  | --program-trans=* | --program-tran=* \
311  | --progr-tra=* | --program-tr=* | --program-t=*)
312    program_transform_name="$ac_optarg" ;;
313
314  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
315  | -silent | --silent | --silen | --sile | --sil)
316    silent=yes ;;
317
318  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
319    ac_prev=sbindir ;;
320  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
321  | --sbi=* | --sb=*)
322    sbindir="$ac_optarg" ;;
323
324  -sharedstatedir | --sharedstatedir | --sharedstatedi \
325  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
326  | --sharedst | --shareds | --shared | --share | --shar \
327  | --sha | --sh)
328    ac_prev=sharedstatedir ;;
329  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
330  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
331  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
332  | --sha=* | --sh=*)
333    sharedstatedir="$ac_optarg" ;;
334
335  -site | --site | --sit)
336    ac_prev=site ;;
337  -site=* | --site=* | --sit=*)
338    site="$ac_optarg" ;;
339
340  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
341    ac_prev=srcdir ;;
342  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
343    srcdir="$ac_optarg" ;;
344
345  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
346  | --syscon | --sysco | --sysc | --sys | --sy)
347    ac_prev=sysconfdir ;;
348  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
349  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
350    sysconfdir="$ac_optarg" ;;
351
352  -target | --target | --targe | --targ | --tar | --ta | --t)
353    ac_prev=target ;;
354  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
355    target="$ac_optarg" ;;
356
357  -v | -verbose | --verbose | --verbos | --verbo | --verb)
358    verbose=yes ;;
359
360  -version | --version | --versio | --versi | --vers)
361    echo "configure generated by autoconf version 2.13"
362    exit 0 ;;
363
364  -with-* | --with-*)
365    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
366    # Reject names that are not valid shell variable names.
367    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
368      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
369    fi
370    ac_package=`echo $ac_package| sed 's/-/_/g'`
371    case "$ac_option" in
372      *=*) ;;
373      *) ac_optarg=yes ;;
374    esac
375    eval "with_${ac_package}='$ac_optarg'" ;;
376
377  -without-* | --without-*)
378    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
379    # Reject names that are not valid shell variable names.
380    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
381      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
382    fi
383    ac_package=`echo $ac_package| sed 's/-/_/g'`
384    eval "with_${ac_package}=no" ;;
385
386  --x)
387    # Obsolete; use --with-x.
388    with_x=yes ;;
389
390  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
391  | --x-incl | --x-inc | --x-in | --x-i)
392    ac_prev=x_includes ;;
393  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
394  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
395    x_includes="$ac_optarg" ;;
396
397  -x-libraries | --x-libraries | --x-librarie | --x-librari \
398  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
399    ac_prev=x_libraries ;;
400  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
401  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
402    x_libraries="$ac_optarg" ;;
403
404  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
405    ;;
406
407  *)
408    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
409      echo "configure: warning: $ac_option: invalid host type" 1>&2
410    fi
411    if test "x$nonopt" != xNONE; then
412      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
413    fi
414    nonopt="$ac_option"
415    ;;
416
417  esac
418done
419
420if test -n "$ac_prev"; then
421  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
422fi
423
424trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
425
426# File descriptor usage:
427# 0 standard input
428# 1 file creation
429# 2 errors and warnings
430# 3 some systems may open it to /dev/tty
431# 4 used on the Kubota Titan
432# 6 checking for... messages and results
433# 5 compiler messages saved in config.log
434if test "$silent" = yes; then
435  exec 6>/dev/null
436else
437  exec 6>&1
438fi
439exec 5>./config.log
440
441echo "\
442This file contains any messages produced by compilers while
443running configure, to aid debugging if configure makes a mistake.
444" 1>&5
445
446# Strip out --no-create and --no-recursion so they do not pile up.
447# Also quote any args containing shell metacharacters.
448ac_configure_args=
449for ac_arg
450do
451  case "$ac_arg" in
452  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
453  | --no-cr | --no-c) ;;
454  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
455  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
456  *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
457  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
458  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
459  esac
460done
461
462# NLS nuisances.
463# Only set these to C if already set.  These must not be set unconditionally
464# because not all systems understand e.g. LANG=C (notably SCO).
465# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
466# Non-C LC_CTYPE values break the ctype check.
467if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
468if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
469if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
470if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
471
472# confdefs.h avoids OS command line length limits that DEFS can exceed.
473rm -rf conftest* confdefs.h
474# AIX cpp loses on an empty file, so make sure it contains at least a newline.
475echo > confdefs.h
476
477# A filename unique to this package, relative to the directory that
478# configure is in, which we can look for to find out if srcdir is correct.
479ac_unique_file=acinclude.m4
480
481# Find the source files, if location was not specified.
482if test -z "$srcdir"; then
483  ac_srcdir_defaulted=yes
484  # Try the directory containing this script, then its parent.
485  ac_prog=$0
486  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
487  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
488  srcdir=$ac_confdir
489  if test ! -r $srcdir/$ac_unique_file; then
490    srcdir=..
491  fi
492else
493  ac_srcdir_defaulted=no
494fi
495if test ! -r $srcdir/$ac_unique_file; then
496  if test "$ac_srcdir_defaulted" = yes; then
497    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
498  else
499    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
500  fi
501fi
502srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
503
504# Prefer explicitly selected file to automatically selected ones.
505if test -z "$CONFIG_SITE"; then
506  if test "x$prefix" != xNONE; then
507    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
508  else
509    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
510  fi
511fi
512for ac_site_file in $CONFIG_SITE; do
513  if test -r "$ac_site_file"; then
514    echo "loading site script $ac_site_file"
515    . "$ac_site_file"
516  fi
517done
518
519if test -r "$cache_file"; then
520  echo "loading cache $cache_file"
521  . $cache_file
522else
523  echo "creating cache $cache_file"
524  > $cache_file
525fi
526
527ac_ext=c
528# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
529ac_cpp='$CPP $CPPFLAGS'
530ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
531ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
532cross_compiling=$ac_cv_prog_cc_cross
533
534ac_exeext=
535ac_objext=o
536if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
537  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
538  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
539    ac_n= ac_c='
540' ac_t='	'
541  else
542    ac_n=-n ac_c= ac_t=
543  fi
544else
545  ac_n= ac_c='\c' ac_t=
546fi
547
548
549
550
551
552
553
554echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
555echo "configure:556: checking how to run the C++ preprocessor" >&5
556if test -z "$CXXCPP"; then
557if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
558  echo $ac_n "(cached) $ac_c" 1>&6
559else
560  ac_ext=C
561# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
562ac_cpp='$CXXCPP $CPPFLAGS'
563ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
564ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
565cross_compiling=$ac_cv_prog_cxx_cross
566  CXXCPP="${CXX-g++} -E"
567  cat > conftest.$ac_ext <<EOF
568#line 569 "configure"
569#include "confdefs.h"
570#include <stdlib.h>
571EOF
572ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
573{ (eval echo configure:574: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
574ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
575if test -z "$ac_err"; then
576  :
577else
578  echo "$ac_err" >&5
579  echo "configure: failed program was:" >&5
580  cat conftest.$ac_ext >&5
581  rm -rf conftest*
582  CXXCPP=/lib/cpp
583fi
584rm -f conftest*
585  ac_cv_prog_CXXCPP="$CXXCPP"
586ac_ext=C
587# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
588ac_cpp='$CXXCPP $CPPFLAGS'
589ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
590ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
591cross_compiling=$ac_cv_prog_cxx_cross
592fi
593fi
594CXXCPP="$ac_cv_prog_CXXCPP"
595echo "$ac_t""$CXXCPP" 1>&6
596
597
598echo $ac_n "checking for X""... $ac_c" 1>&6
599echo "configure:600: checking for X" >&5
600if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
601  echo $ac_n "(cached) $ac_c" 1>&6
602else
603  # One or both of the vars are not set, and there is no cached value.
604ac_x_includes=NO ac_x_libraries=NO
605if test "$ac_x_includes" = NO; then
606  # Guess where to find include files, by looking for this one X11 .h file.
607  test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
608
609  # First, try using that file with no special directory specified.
610cat > conftest.$ac_ext <<EOF
611#line 612 "configure"
612#include "confdefs.h"
613#include <$x_direct_test_include>
614EOF
615ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
616{ (eval echo configure:617: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
617ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
618if test -z "$ac_err"; then
619  rm -rf conftest*
620  # We can compile using X headers with no special include directory.
621ac_x_includes=
622else
623  echo "$ac_err" >&5
624  echo "configure: failed program was:" >&5
625  cat conftest.$ac_ext >&5
626  rm -rf conftest*
627  # Look for the header file in a standard set of common directories.
628# Check X11 before X11Rn because it is often a symlink to the current release.
629  for ac_dir in               \
630    /usr/X11/include          \
631    /usr/X11R6/include        \
632    /usr/X11R5/include        \
633    /usr/X11R4/include        \
634                              \
635    /usr/include/X11          \
636    /usr/include/X11R6        \
637    /usr/include/X11R5        \
638    /usr/include/X11R4        \
639                              \
640    /usr/local/X11/include    \
641    /usr/local/X11R6/include  \
642    /usr/local/X11R5/include  \
643    /usr/local/X11R4/include  \
644                              \
645    /usr/local/include/X11    \
646    /usr/local/include/X11R6  \
647    /usr/local/include/X11R5  \
648    /usr/local/include/X11R4  \
649                              \
650    /usr/X386/include         \
651    /usr/x386/include         \
652    /usr/XFree86/include/X11  \
653                              \
654    /usr/include              \
655    /usr/local/include        \
656    /usr/unsupported/include  \
657    /usr/athena/include       \
658    /usr/local/x11r5/include  \
659    /usr/lpp/Xamples/include  \
660                              \
661    /usr/openwin/include      \
662    /usr/openwin/share/include \
663    ; \
664  do
665    if test -r "$ac_dir/$x_direct_test_include"; then
666      ac_x_includes=$ac_dir
667      break
668    fi
669  done
670fi
671rm -f conftest*
672fi # $ac_x_includes = NO
673
674if test "$ac_x_libraries" = NO; then
675  # Check for the libraries.
676
677  test -z "$x_direct_test_library" && x_direct_test_library=Xt
678  test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
679
680  # See if we find them without any special options.
681  # Don't add to $LIBS permanently.
682  ac_save_LIBS="$LIBS"
683  LIBS="-l$x_direct_test_library $LIBS"
684cat > conftest.$ac_ext <<EOF
685#line 686 "configure"
686#include "confdefs.h"
687
688int main() {
689${x_direct_test_function}()
690; return 0; }
691EOF
692if { (eval echo configure:693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
693  rm -rf conftest*
694  LIBS="$ac_save_LIBS"
695# We can link X programs with no special library path.
696ac_x_libraries=
697else
698  echo "configure: failed program was:" >&5
699  cat conftest.$ac_ext >&5
700  rm -rf conftest*
701  LIBS="$ac_save_LIBS"
702# First see if replacing the include by lib works.
703# Check X11 before X11Rn because it is often a symlink to the current release.
704for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
705    /usr/X11/lib          \
706    /usr/X11R6/lib        \
707    /usr/X11R5/lib        \
708    /usr/X11R4/lib        \
709                          \
710    /usr/lib/X11          \
711    /usr/lib/X11R6        \
712    /usr/lib/X11R5        \
713    /usr/lib/X11R4        \
714                          \
715    /usr/local/X11/lib    \
716    /usr/local/X11R6/lib  \
717    /usr/local/X11R5/lib  \
718    /usr/local/X11R4/lib  \
719                          \
720    /usr/local/lib/X11    \
721    /usr/local/lib/X11R6  \
722    /usr/local/lib/X11R5  \
723    /usr/local/lib/X11R4  \
724                          \
725    /usr/X386/lib         \
726    /usr/x386/lib         \
727    /usr/XFree86/lib/X11  \
728                          \
729    /usr/lib              \
730    /usr/local/lib        \
731    /usr/unsupported/lib  \
732    /usr/athena/lib       \
733    /usr/local/x11r5/lib  \
734    /usr/lpp/Xamples/lib  \
735    /lib/usr/lib/X11	  \
736                          \
737    /usr/openwin/lib      \
738    /usr/openwin/share/lib \
739    ; \
740do
741  for ac_extension in a so sl; do
742    if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
743      ac_x_libraries=$ac_dir
744      break 2
745    fi
746  done
747done
748fi
749rm -f conftest*
750fi # $ac_x_libraries = NO
751
752rm -fr conftestdir
753if mkdir conftestdir; then
754  cd conftestdir
755  # Make sure to not put "make" in the Imakefile rules, since we grep it out.
756  cat > Imakefile <<'EOF'
757acfindx:
758	@echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
759EOF
760  if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
761    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
762    eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
763    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
764    for ac_extension in a so sl; do
765      if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
766        test -f $ac_im_libdir/libX11.$ac_extension; then
767        ac_im_usrlibdir=$ac_im_libdir; break
768      fi
769    done
770    # Screen out bogus values from the imake configuration.  They are
771    # bogus both because they are the default anyway, and because
772    # using them would break gcc on systems where it needs fixed includes.
773    case "$ac_im_incroot" in
774	/usr/include) ;;
775	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
776    esac
777    case "$ac_im_usrlibdir" in
778	/usr/lib | /lib) ;;
779	*) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
780    esac
781  fi
782  cd ..
783  rm -fr conftestdir
784fi
785
786if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
787  { echo "configure: error: Can't find X includes. Please check your installation and add the correct paths!" 1>&2; exit 1; }
788else
789  # Record where we found X for the cache.
790  ac_cv_have_x="have_x=yes \
791                ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
792fi
793fi
794eval "$ac_cv_have_x"
795
796if test "$have_x" != yes; then
797  echo "$ac_t""$have_x" 1>&6
798  no_x=yes
799else
800  # If each of the values was on the command line, it overrides each guess.
801  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
802  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
803  # Update the cache value to reflect the command line values.
804  ac_cv_have_x="have_x=yes \
805                ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
806  echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
807fi
808
809if test -z "$x_includes" || test "x$x_includes" = xNONE; then
810  X_INCLUDES=""
811  x_includes=".";  else
812  X_INCLUDES="-I$x_includes"
813fi
814
815if test -z "$x_libraries" || test "x$x_libraries" = xNONE; then
816  X_LDFLAGS=""
817  x_libraries="/usr/lib";  else
818  X_LDFLAGS="-L$x_libraries"
819fi
820all_includes="$all_includes $X_INCLUDES"
821all_libraries="$all_libraries $X_LDFLAGS"
822
823
824
825
826
827
828ac_aux_dir=
829for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
830  if test -f $ac_dir/install-sh; then
831    ac_aux_dir=$ac_dir
832    ac_install_sh="$ac_aux_dir/install-sh -c"
833    break
834  elif test -f $ac_dir/install.sh; then
835    ac_aux_dir=$ac_dir
836    ac_install_sh="$ac_aux_dir/install.sh -c"
837    break
838  fi
839done
840if test -z "$ac_aux_dir"; then
841  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
842fi
843ac_config_guess=$ac_aux_dir/config.guess
844ac_config_sub=$ac_aux_dir/config.sub
845ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
846
847# Find a good install program.  We prefer a C program (faster),
848# so one script is as good as another.  But avoid the broken or
849# incompatible versions:
850# SysV /etc/install, /usr/sbin/install
851# SunOS /usr/etc/install
852# IRIX /sbin/install
853# AIX /bin/install
854# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
855# AFS /usr/afsws/bin/install, which mishandles nonexistent args
856# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
857# ./install, which can be erroneously created by make from ./install.sh.
858echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
859echo "configure:860: checking for a BSD compatible install" >&5
860if test -z "$INSTALL"; then
861if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
862  echo $ac_n "(cached) $ac_c" 1>&6
863else
864    IFS="${IFS= 	}"; ac_save_IFS="$IFS"; IFS=":"
865  for ac_dir in $PATH; do
866    # Account for people who put trailing slashes in PATH elements.
867    case "$ac_dir/" in
868    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
869    *)
870      # OSF1 and SCO ODT 3.0 have their own names for install.
871      # Don't use installbsd from OSF since it installs stuff as root
872      # by default.
873      for ac_prog in ginstall scoinst install; do
874        if test -f $ac_dir/$ac_prog; then
875	  if test $ac_prog = install &&
876            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
877	    # AIX install.  It has an incompatible calling convention.
878	    :
879	  else
880	    ac_cv_path_install="$ac_dir/$ac_prog -c"
881	    break 2
882	  fi
883	fi
884      done
885      ;;
886    esac
887  done
888  IFS="$ac_save_IFS"
889
890fi
891  if test "${ac_cv_path_install+set}" = set; then
892    INSTALL="$ac_cv_path_install"
893  else
894    # As a last resort, use the slow shell script.  We don't cache a
895    # path for INSTALL within a source directory, because that will
896    # break other packages using the cache if that directory is
897    # removed, or if the path is relative.
898    INSTALL="$ac_install_sh"
899  fi
900fi
901echo "$ac_t""$INSTALL" 1>&6
902
903# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
904# It thinks the first close brace ends the variable substitution.
905test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
906
907test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
908
909test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
910
911echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
912echo "configure:913: checking whether build environment is sane" >&5
913# Just in case
914sleep 1
915echo timestamp > conftestfile
916# Do `set' in a subshell so we don't clobber the current shell's
917# arguments.  Must try -L first in case configure is actually a
918# symlink; some systems play weird games with the mod time of symlinks
919# (eg FreeBSD returns the mod time of the symlink's containing
920# directory).
921if (
922   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
923   if test "$*" = "X"; then
924      # -L didn't work.
925      set X `ls -t $srcdir/configure conftestfile`
926   fi
927   if test "$*" != "X $srcdir/configure conftestfile" \
928      && test "$*" != "X conftestfile $srcdir/configure"; then
929
930      # If neither matched, then we have a broken ls.  This can happen
931      # if, for instance, CONFIG_SHELL is bash and it inherits a
932      # broken ls alias from the environment.  This has actually
933      # happened.  Such a system could not be considered "sane".
934      { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
935alias in your environment" 1>&2; exit 1; }
936   fi
937
938   test "$2" = conftestfile
939   )
940then
941   # Ok.
942   :
943else
944   { echo "configure: error: newly created file is older than distributed files!
945Check your system clock" 1>&2; exit 1; }
946fi
947rm -f conftest*
948echo "$ac_t""yes" 1>&6
949echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
950echo "configure:951: checking whether ${MAKE-make} sets \${MAKE}" >&5
951set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
952if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
953  echo $ac_n "(cached) $ac_c" 1>&6
954else
955  cat > conftestmake <<\EOF
956all:
957	@echo 'ac_maketemp="${MAKE}"'
958EOF
959# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
960eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
961if test -n "$ac_maketemp"; then
962  eval ac_cv_prog_make_${ac_make}_set=yes
963else
964  eval ac_cv_prog_make_${ac_make}_set=no
965fi
966rm -f conftestmake
967fi
968if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
969  echo "$ac_t""yes" 1>&6
970  SET_MAKE=
971else
972  echo "$ac_t""no" 1>&6
973  SET_MAKE="MAKE=${MAKE-make}"
974fi
975
976# Extract the first word of "ranlib", so it can be a program name with args.
977set dummy ranlib; ac_word=$2
978echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
979echo "configure:980: checking for $ac_word" >&5
980if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
981  echo $ac_n "(cached) $ac_c" 1>&6
982else
983  if test -n "$RANLIB"; then
984  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
985else
986  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
987  ac_dummy="$PATH"
988  for ac_dir in $ac_dummy; do
989    test -z "$ac_dir" && ac_dir=.
990    if test -f $ac_dir/$ac_word; then
991      ac_cv_prog_RANLIB="ranlib"
992      break
993    fi
994  done
995  IFS="$ac_save_ifs"
996  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
997fi
998fi
999RANLIB="$ac_cv_prog_RANLIB"
1000if test -n "$RANLIB"; then
1001  echo "$ac_t""$RANLIB" 1>&6
1002else
1003  echo "$ac_t""no" 1>&6
1004fi
1005
1006# Check whether --with-gnu-ld or --without-gnu-ld was given.
1007if test "${with_gnu_ld+set}" = set; then
1008  withval="$with_gnu_ld"
1009  test "$withval" = no || with_gnu_ld=yes
1010else
1011  with_gnu_ld=no
1012fi
1013
1014
1015ac_prog=ld
1016if test "$ac_cv_prog_gcc" = yes; then
1017  # Check if gcc -print-prog-name=ld gives a path.
1018  echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1019echo "configure:1020: checking for ld used by GCC" >&5
1020  ac_prog=`($CC -print-prog-name=ld) 2>&5`
1021  case "$ac_prog" in
1022  # Accept absolute paths.
1023  /* | A-Za-z:\\*)
1024    test -z "$LD" && LD="$ac_prog"
1025    ;;
1026  "")
1027    # If it fails, then pretend we aren't using GCC.
1028    ac_prog=ld
1029    ;;
1030  *)
1031    # If it is relative, then search for the first ld in PATH.
1032    with_gnu_ld=unknown
1033    ;;
1034  esac
1035elif test "$with_gnu_ld" = yes; then
1036  echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1037echo "configure:1038: checking for GNU ld" >&5
1038else
1039  echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1040echo "configure:1041: checking for non-GNU ld" >&5
1041fi
1042if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1043  echo $ac_n "(cached) $ac_c" 1>&6
1044else
1045  if test -z "$LD"; then
1046  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1047  for ac_dir in $PATH; do
1048    test -z "$ac_dir" && ac_dir=.
1049    if test -f "$ac_dir/$ac_prog"; then
1050      ac_cv_path_LD="$ac_dir/$ac_prog"
1051      # Check to see if the program is GNU ld.  I'd rather use --version,
1052      # but apparently some GNU ld's only accept -v.
1053      # Break only if it was the GNU/non-GNU ld that we prefer.
1054      if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1055	test "$with_gnu_ld" != no && break
1056      else
1057        test "$with_gnu_ld" != yes && break
1058      fi
1059    fi
1060  done
1061  IFS="$ac_save_ifs"
1062else
1063  ac_cv_path_LD="$LD" # Let the user override the test with a path.
1064fi
1065fi
1066
1067LD="$ac_cv_path_LD"
1068if test -n "$LD"; then
1069  echo "$ac_t""$LD" 1>&6
1070else
1071  echo "$ac_t""no" 1>&6
1072fi
1073test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1074
1075echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1076echo "configure:1077: checking if the linker ($LD) is GNU ld" >&5
1077if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1078  echo $ac_n "(cached) $ac_c" 1>&6
1079else
1080  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1081if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1082  ac_cv_prog_gnu_ld=yes
1083else
1084  ac_cv_prog_gnu_ld=no
1085fi
1086fi
1087
1088echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1089
1090
1091echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1092echo "configure:1093: checking for BSD-compatible nm" >&5
1093if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1094  echo $ac_n "(cached) $ac_c" 1>&6
1095else
1096  case "$NM" in
1097/* | A-Za-z:\\*)
1098  ac_cv_path_NM="$NM" # Let the user override the test with a path.
1099  ;;
1100*)
1101  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1102  for ac_dir in /usr/ucb /usr/ccs/bin $PATH /bin; do
1103    test -z "$ac_dir" && ac_dir=.
1104    if test -f $ac_dir/nm; then
1105      # Check to see if the nm accepts a BSD-compat flag.
1106      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1107      #   nm: unknown option "B" ignored
1108      if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1109        ac_cv_path_NM="$ac_dir/nm -B"
1110      elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1111        ac_cv_path_NM="$ac_dir/nm -p"
1112      else
1113        ac_cv_path_NM="$ac_dir/nm"
1114      fi
1115      break
1116    fi
1117  done
1118  IFS="$ac_save_ifs"
1119  test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1120  ;;
1121esac
1122fi
1123
1124NM="$ac_cv_path_NM"
1125echo "$ac_t""$NM" 1>&6
1126
1127
1128echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1129echo "configure:1130: checking whether ln -s works" >&5
1130if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1131  echo $ac_n "(cached) $ac_c" 1>&6
1132else
1133  rm -f conftestdata
1134if ln -s X conftestdata 2>/dev/null
1135then
1136  rm -f conftestdata
1137  ac_cv_prog_LN_S="ln -s"
1138else
1139  ac_cv_prog_LN_S=ln
1140fi
1141fi
1142LN_S="$ac_cv_prog_LN_S"
1143if test "$ac_cv_prog_LN_S" = "ln -s"; then
1144  echo "$ac_t""yes" 1>&6
1145else
1146  echo "$ac_t""no" 1>&6
1147fi
1148
1149
1150   ac_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
1157      echo $ac_n "checking for main in -lcompat""... $ac_c" 1>&6
1158echo "configure:1159: checking for main in -lcompat" >&5
1159ac_lib_var=`echo compat'_'main | sed 'y%./+-%__p_%'`
1160if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1161  echo $ac_n "(cached) $ac_c" 1>&6
1162else
1163  ac_save_LIBS="$LIBS"
1164LIBS="-lcompat  $LIBS"
1165cat > conftest.$ac_ext <<EOF
1166#line 1167 "configure"
1167#include "confdefs.h"
1168
1169int main() {
1170main()
1171; return 0; }
1172EOF
1173if { (eval echo configure:1174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1174  rm -rf conftest*
1175  eval "ac_cv_lib_$ac_lib_var=yes"
1176else
1177  echo "configure: failed program was:" >&5
1178  cat conftest.$ac_ext >&5
1179  rm -rf conftest*
1180  eval "ac_cv_lib_$ac_lib_var=no"
1181fi
1182rm -f conftest*
1183LIBS="$ac_save_LIBS"
1184
1185fi
1186if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1187  echo "$ac_t""yes" 1>&6
1188  LIBCOMPAT="-lcompat"
1189else
1190  echo "$ac_t""no" 1>&6
1191fi
1192
1193   echo $ac_n "checking for main in -lcrypt""... $ac_c" 1>&6
1194echo "configure:1195: checking for main in -lcrypt" >&5
1195ac_lib_var=`echo crypt'_'main | sed 'y%./+-%__p_%'`
1196if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1197  echo $ac_n "(cached) $ac_c" 1>&6
1198else
1199  ac_save_LIBS="$LIBS"
1200LIBS="-lcrypt  $LIBS"
1201cat > conftest.$ac_ext <<EOF
1202#line 1203 "configure"
1203#include "confdefs.h"
1204
1205int main() {
1206main()
1207; return 0; }
1208EOF
1209if { (eval echo configure:1210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1210  rm -rf conftest*
1211  eval "ac_cv_lib_$ac_lib_var=yes"
1212else
1213  echo "configure: failed program was:" >&5
1214  cat conftest.$ac_ext >&5
1215  rm -rf conftest*
1216  eval "ac_cv_lib_$ac_lib_var=no"
1217fi
1218rm -f conftest*
1219LIBS="$ac_save_LIBS"
1220
1221fi
1222if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1223  echo "$ac_t""yes" 1>&6
1224  LIBCRYPT="-lcrypt"
1225else
1226  echo "$ac_t""no" 1>&6
1227fi
1228
1229   echo $ac_n "checking for the third argument of getsockname""... $ac_c" 1>&6
1230echo "configure:1231: checking for the third argument of getsockname" >&5
1231ac_ext=C
1232# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1233ac_cpp='$CXXCPP $CPPFLAGS'
1234ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1235ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1236cross_compiling=$ac_cv_prog_cxx_cross
1237
1238if eval "test \"`echo '$''{'ac_cv_ksize_t'+set}'`\" = set"; then
1239  echo $ac_n "(cached) $ac_c" 1>&6
1240else
1241  cat > conftest.$ac_ext <<EOF
1242#line 1243 "configure"
1243#include "confdefs.h"
1244
1245#include <sys/types.h>
1246#include <sys/socket.h>
1247
1248int main() {
1249
1250socklen_t a=0; 
1251getsockname(0,(struct sockaddr*)0, &a);
1252
1253; return 0; }
1254EOF
1255if { (eval echo configure:1256: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1256  rm -rf conftest*
1257  ac_cv_ksize_t=socklen_t
1258else
1259  echo "configure: failed program was:" >&5
1260  cat conftest.$ac_ext >&5
1261  rm -rf conftest*
1262  ac_cv_ksize_t=
1263fi
1264rm -f conftest*
1265if test -z "$ac_cv_ksize_t"; then
1266ac_safe_cxxflags="$CXXFLAGS"
1267if test "$GCC" = "yes"; then
1268  CXXFLAGS="-Werror $CXXFLAGS"
1269fi
1270cat > conftest.$ac_ext <<EOF
1271#line 1272 "configure"
1272#include "confdefs.h"
1273
1274#include <sys/types.h>
1275#include <sys/socket.h>
1276
1277int main() {
1278
1279int a=0; 
1280getsockname(0,(struct sockaddr*)0, &a);
1281
1282; return 0; }
1283EOF
1284if { (eval echo configure:1285: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1285  rm -rf conftest*
1286  ac_cv_ksize_t=int
1287else
1288  echo "configure: failed program was:" >&5
1289  cat conftest.$ac_ext >&5
1290  rm -rf conftest*
1291  ac_cv_ksize_t=size_t
1292fi
1293rm -f conftest*
1294CXXFLAGS="$ac_safe_cxxflags"
1295fi
1296
1297fi
1298
1299
1300if test -z "$ac_cv_ksize_t"; then
1301  ac_cv_ksize_t=int
1302fi
1303
1304echo "$ac_t""$ac_cv_ksize_t" 1>&6
1305cat >> confdefs.h <<EOF
1306#define ksize_t $ac_cv_ksize_t
1307EOF
1308
1309
1310
1311   echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
1312echo "configure:1313: checking for dnet_ntoa in -ldnet" >&5
1313ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1314if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1315  echo $ac_n "(cached) $ac_c" 1>&6
1316else
1317  ac_save_LIBS="$LIBS"
1318LIBS="-ldnet  $LIBS"
1319cat > conftest.$ac_ext <<EOF
1320#line 1321 "configure"
1321#include "confdefs.h"
1322/* Override any gcc2 internal prototype to avoid an error.  */
1323#ifdef __cplusplus
1324extern "C"
1325#endif
1326/* We use char because int might match the return type of a gcc2
1327    builtin and then its argument prototype would still apply.  */
1328char dnet_ntoa();
1329
1330int main() {
1331dnet_ntoa()
1332; return 0; }
1333EOF
1334if { (eval echo configure:1335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1335  rm -rf conftest*
1336  eval "ac_cv_lib_$ac_lib_var=yes"
1337else
1338  echo "configure: failed program was:" >&5
1339  cat conftest.$ac_ext >&5
1340  rm -rf conftest*
1341  eval "ac_cv_lib_$ac_lib_var=no"
1342fi
1343rm -f conftest*
1344LIBS="$ac_save_LIBS"
1345
1346fi
1347if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1348  echo "$ac_t""yes" 1>&6
1349  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
1350else
1351  echo "$ac_t""no" 1>&6
1352fi
1353
1354   if test $ac_cv_lib_dnet_dnet_ntoa = no; then
1355      echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
1356echo "configure:1357: checking for dnet_ntoa in -ldnet_stub" >&5
1357ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1358if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1359  echo $ac_n "(cached) $ac_c" 1>&6
1360else
1361  ac_save_LIBS="$LIBS"
1362LIBS="-ldnet_stub  $LIBS"
1363cat > conftest.$ac_ext <<EOF
1364#line 1365 "configure"
1365#include "confdefs.h"
1366/* Override any gcc2 internal prototype to avoid an error.  */
1367#ifdef __cplusplus
1368extern "C"
1369#endif
1370/* We use char because int might match the return type of a gcc2
1371    builtin and then its argument prototype would still apply.  */
1372char dnet_ntoa();
1373
1374int main() {
1375dnet_ntoa()
1376; return 0; }
1377EOF
1378if { (eval echo configure:1379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1379  rm -rf conftest*
1380  eval "ac_cv_lib_$ac_lib_var=yes"
1381else
1382  echo "configure: failed program was:" >&5
1383  cat conftest.$ac_ext >&5
1384  rm -rf conftest*
1385  eval "ac_cv_lib_$ac_lib_var=no"
1386fi
1387rm -f conftest*
1388LIBS="$ac_save_LIBS"
1389
1390fi
1391if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1392  echo "$ac_t""yes" 1>&6
1393  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
1394else
1395  echo "$ac_t""no" 1>&6
1396fi
1397
1398   fi
1399   echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1400echo "configure:1401: checking for gethostbyname" >&5
1401if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1402  echo $ac_n "(cached) $ac_c" 1>&6
1403else
1404  cat > conftest.$ac_ext <<EOF
1405#line 1406 "configure"
1406#include "confdefs.h"
1407/* System header to define __stub macros and hopefully few prototypes,
1408    which can conflict with char gethostbyname(); below.  */
1409#include <assert.h>
1410/* Override any gcc2 internal prototype to avoid an error.  */
1411#ifdef __cplusplus
1412extern "C"
1413#endif
1414/* We use char because int might match the return type of a gcc2
1415    builtin and then its argument prototype would still apply.  */
1416char gethostbyname();
1417
1418int main() {
1419
1420/* The GNU C library defines this for functions which it implements
1421    to always fail with ENOSYS.  Some functions are actually named
1422    something starting with __ and the normal name is an alias.  */
1423#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1424choke me
1425#else
1426gethostbyname();
1427#endif
1428
1429; return 0; }
1430EOF
1431if { (eval echo configure:1432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1432  rm -rf conftest*
1433  eval "ac_cv_func_gethostbyname=yes"
1434else
1435  echo "configure: failed program was:" >&5
1436  cat conftest.$ac_ext >&5
1437  rm -rf conftest*
1438  eval "ac_cv_func_gethostbyname=no"
1439fi
1440rm -f conftest*
1441fi
1442
1443if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1444  echo "$ac_t""yes" 1>&6
1445  :
1446else
1447  echo "$ac_t""no" 1>&6
1448fi
1449
1450   if test $ac_cv_func_gethostbyname = no; then
1451     echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1452echo "configure:1453: checking for gethostbyname in -lnsl" >&5
1453ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1454if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1455  echo $ac_n "(cached) $ac_c" 1>&6
1456else
1457  ac_save_LIBS="$LIBS"
1458LIBS="-lnsl  $LIBS"
1459cat > conftest.$ac_ext <<EOF
1460#line 1461 "configure"
1461#include "confdefs.h"
1462/* Override any gcc2 internal prototype to avoid an error.  */
1463#ifdef __cplusplus
1464extern "C"
1465#endif
1466/* We use char because int might match the return type of a gcc2
1467    builtin and then its argument prototype would still apply.  */
1468char gethostbyname();
1469
1470int main() {
1471gethostbyname()
1472; return 0; }
1473EOF
1474if { (eval echo configure:1475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1475  rm -rf conftest*
1476  eval "ac_cv_lib_$ac_lib_var=yes"
1477else
1478  echo "configure: failed program was:" >&5
1479  cat conftest.$ac_ext >&5
1480  rm -rf conftest*
1481  eval "ac_cv_lib_$ac_lib_var=no"
1482fi
1483rm -f conftest*
1484LIBS="$ac_save_LIBS"
1485
1486fi
1487if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1488  echo "$ac_t""yes" 1>&6
1489  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
1490else
1491  echo "$ac_t""no" 1>&6
1492fi
1493
1494   fi
1495   echo $ac_n "checking for connect""... $ac_c" 1>&6
1496echo "configure:1497: checking for connect" >&5
1497if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1498  echo $ac_n "(cached) $ac_c" 1>&6
1499else
1500  cat > conftest.$ac_ext <<EOF
1501#line 1502 "configure"
1502#include "confdefs.h"
1503/* System header to define __stub macros and hopefully few prototypes,
1504    which can conflict with char connect(); below.  */
1505#include <assert.h>
1506/* Override any gcc2 internal prototype to avoid an error.  */
1507#ifdef __cplusplus
1508extern "C"
1509#endif
1510/* We use char because int might match the return type of a gcc2
1511    builtin and then its argument prototype would still apply.  */
1512char connect();
1513
1514int main() {
1515
1516/* The GNU C library defines this for functions which it implements
1517    to always fail with ENOSYS.  Some functions are actually named
1518    something starting with __ and the normal name is an alias.  */
1519#if defined (__stub_connect) || defined (__stub___connect)
1520choke me
1521#else
1522connect();
1523#endif
1524
1525; return 0; }
1526EOF
1527if { (eval echo configure:1528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1528  rm -rf conftest*
1529  eval "ac_cv_func_connect=yes"
1530else
1531  echo "configure: failed program was:" >&5
1532  cat conftest.$ac_ext >&5
1533  rm -rf conftest*
1534  eval "ac_cv_func_connect=no"
1535fi
1536rm -f conftest*
1537fi
1538
1539if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1540  echo "$ac_t""yes" 1>&6
1541  :
1542else
1543  echo "$ac_t""no" 1>&6
1544fi
1545
1546   if test $ac_cv_func_connect = no; then
1547      echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1548echo "configure:1549: checking for connect in -lsocket" >&5
1549ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1550if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1551  echo $ac_n "(cached) $ac_c" 1>&6
1552else
1553  ac_save_LIBS="$LIBS"
1554LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
1555cat > conftest.$ac_ext <<EOF
1556#line 1557 "configure"
1557#include "confdefs.h"
1558/* Override any gcc2 internal prototype to avoid an error.  */
1559#ifdef __cplusplus
1560extern "C"
1561#endif
1562/* We use char because int might match the return type of a gcc2
1563    builtin and then its argument prototype would still apply.  */
1564char connect();
1565
1566int main() {
1567connect()
1568; return 0; }
1569EOF
1570if { (eval echo configure:1571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1571  rm -rf conftest*
1572  eval "ac_cv_lib_$ac_lib_var=yes"
1573else
1574  echo "configure: failed program was:" >&5
1575  cat conftest.$ac_ext >&5
1576  rm -rf conftest*
1577  eval "ac_cv_lib_$ac_lib_var=no"
1578fi
1579rm -f conftest*
1580LIBS="$ac_save_LIBS"
1581
1582fi
1583if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1584  echo "$ac_t""yes" 1>&6
1585  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
1586else
1587  echo "$ac_t""no" 1>&6
1588fi
1589
1590   fi
1591
1592   echo $ac_n "checking for remove""... $ac_c" 1>&6
1593echo "configure:1594: checking for remove" >&5
1594if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
1595  echo $ac_n "(cached) $ac_c" 1>&6
1596else
1597  cat > conftest.$ac_ext <<EOF
1598#line 1599 "configure"
1599#include "confdefs.h"
1600/* System header to define __stub macros and hopefully few prototypes,
1601    which can conflict with char remove(); below.  */
1602#include <assert.h>
1603/* Override any gcc2 internal prototype to avoid an error.  */
1604#ifdef __cplusplus
1605extern "C"
1606#endif
1607/* We use char because int might match the return type of a gcc2
1608    builtin and then its argument prototype would still apply.  */
1609char remove();
1610
1611int main() {
1612
1613/* The GNU C library defines this for functions which it implements
1614    to always fail with ENOSYS.  Some functions are actually named
1615    something starting with __ and the normal name is an alias.  */
1616#if defined (__stub_remove) || defined (__stub___remove)
1617choke me
1618#else
1619remove();
1620#endif
1621
1622; return 0; }
1623EOF
1624if { (eval echo configure:1625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1625  rm -rf conftest*
1626  eval "ac_cv_func_remove=yes"
1627else
1628  echo "configure: failed program was:" >&5
1629  cat conftest.$ac_ext >&5
1630  rm -rf conftest*
1631  eval "ac_cv_func_remove=no"
1632fi
1633rm -f conftest*
1634fi
1635
1636if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
1637  echo "$ac_t""yes" 1>&6
1638  :
1639else
1640  echo "$ac_t""no" 1>&6
1641fi
1642
1643   if test $ac_cv_func_remove = no; then
1644      echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
1645echo "configure:1646: checking for remove in -lposix" >&5
1646ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
1647if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1648  echo $ac_n "(cached) $ac_c" 1>&6
1649else
1650  ac_save_LIBS="$LIBS"
1651LIBS="-lposix  $LIBS"
1652cat > conftest.$ac_ext <<EOF
1653#line 1654 "configure"
1654#include "confdefs.h"
1655/* Override any gcc2 internal prototype to avoid an error.  */
1656#ifdef __cplusplus
1657extern "C"
1658#endif
1659/* We use char because int might match the return type of a gcc2
1660    builtin and then its argument prototype would still apply.  */
1661char remove();
1662
1663int main() {
1664remove()
1665; return 0; }
1666EOF
1667if { (eval echo configure:1668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1668  rm -rf conftest*
1669  eval "ac_cv_lib_$ac_lib_var=yes"
1670else
1671  echo "configure: failed program was:" >&5
1672  cat conftest.$ac_ext >&5
1673  rm -rf conftest*
1674  eval "ac_cv_lib_$ac_lib_var=no"
1675fi
1676rm -f conftest*
1677LIBS="$ac_save_LIBS"
1678
1679fi
1680if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1681  echo "$ac_t""yes" 1>&6
1682  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
1683else
1684  echo "$ac_t""no" 1>&6
1685fi
1686
1687   fi
1688
1689   # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
1690   echo $ac_n "checking for shmat""... $ac_c" 1>&6
1691echo "configure:1692: checking for shmat" >&5
1692if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
1693  echo $ac_n "(cached) $ac_c" 1>&6
1694else
1695  cat > conftest.$ac_ext <<EOF
1696#line 1697 "configure"
1697#include "confdefs.h"
1698/* System header to define __stub macros and hopefully few prototypes,
1699    which can conflict with char shmat(); below.  */
1700#include <assert.h>
1701/* Override any gcc2 internal prototype to avoid an error.  */
1702#ifdef __cplusplus
1703extern "C"
1704#endif
1705/* We use char because int might match the return type of a gcc2
1706    builtin and then its argument prototype would still apply.  */
1707char shmat();
1708
1709int main() {
1710
1711/* The GNU C library defines this for functions which it implements
1712    to always fail with ENOSYS.  Some functions are actually named
1713    something starting with __ and the normal name is an alias.  */
1714#if defined (__stub_shmat) || defined (__stub___shmat)
1715choke me
1716#else
1717shmat();
1718#endif
1719
1720; return 0; }
1721EOF
1722if { (eval echo configure:1723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1723  rm -rf conftest*
1724  eval "ac_cv_func_shmat=yes"
1725else
1726  echo "configure: failed program was:" >&5
1727  cat conftest.$ac_ext >&5
1728  rm -rf conftest*
1729  eval "ac_cv_func_shmat=no"
1730fi
1731rm -f conftest*
1732fi
1733
1734if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
1735  echo "$ac_t""yes" 1>&6
1736  :
1737else
1738  echo "$ac_t""no" 1>&6
1739fi
1740
1741   if test $ac_cv_func_shmat = no; then
1742     echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
1743echo "configure:1744: checking for shmat in -lipc" >&5
1744ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
1745if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1746  echo $ac_n "(cached) $ac_c" 1>&6
1747else
1748  ac_save_LIBS="$LIBS"
1749LIBS="-lipc  $LIBS"
1750cat > conftest.$ac_ext <<EOF
1751#line 1752 "configure"
1752#include "confdefs.h"
1753/* Override any gcc2 internal prototype to avoid an error.  */
1754#ifdef __cplusplus
1755extern "C"
1756#endif
1757/* We use char because int might match the return type of a gcc2
1758    builtin and then its argument prototype would still apply.  */
1759char shmat();
1760
1761int main() {
1762shmat()
1763; return 0; }
1764EOF
1765if { (eval echo configure:1766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1766  rm -rf conftest*
1767  eval "ac_cv_lib_$ac_lib_var=yes"
1768else
1769  echo "configure: failed program was:" >&5
1770  cat conftest.$ac_ext >&5
1771  rm -rf conftest*
1772  eval "ac_cv_lib_$ac_lib_var=no"
1773fi
1774rm -f conftest*
1775LIBS="$ac_save_LIBS"
1776
1777fi
1778if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1779  echo "$ac_t""yes" 1>&6
1780  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
1781else
1782  echo "$ac_t""no" 1>&6
1783fi
1784
1785   fi
1786
1787   LIBSOCKET=$X_EXTRA_LIBS
1788
1789
1790   echo $ac_n "checking for killpg in -lucb""... $ac_c" 1>&6
1791echo "configure:1792: checking for killpg in -lucb" >&5
1792ac_lib_var=`echo ucb'_'killpg | sed 'y%./+-%__p_%'`
1793if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1794  echo $ac_n "(cached) $ac_c" 1>&6
1795else
1796  ac_save_LIBS="$LIBS"
1797LIBS="-lucb  $LIBS"
1798cat > conftest.$ac_ext <<EOF
1799#line 1800 "configure"
1800#include "confdefs.h"
1801/* Override any gcc2 internal prototype to avoid an error.  */
1802#ifdef __cplusplus
1803extern "C"
1804#endif
1805/* We use char because int might match the return type of a gcc2
1806    builtin and then its argument prototype would still apply.  */
1807char killpg();
1808
1809int main() {
1810killpg()
1811; return 0; }
1812EOF
1813if { (eval echo configure:1814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1814  rm -rf conftest*
1815  eval "ac_cv_lib_$ac_lib_var=yes"
1816else
1817  echo "configure: failed program was:" >&5
1818  cat conftest.$ac_ext >&5
1819  rm -rf conftest*
1820  eval "ac_cv_lib_$ac_lib_var=no"
1821fi
1822rm -f conftest*
1823LIBS="$ac_save_LIBS"
1824
1825fi
1826if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1827  echo "$ac_t""yes" 1>&6
1828  LIBUCB="-lucb"
1829else
1830  echo "$ac_t""no" 1>&6
1831fi
1832
1833
1834   case $host in     *-*-lynxos* )
1835        echo $ac_n "checking LynxOS header file wrappers""... $ac_c" 1>&6
1836echo "configure:1837: checking LynxOS header file wrappers" >&5
1837        CFLAGS="$CFLAGS -D__NO_INCLUDE_WARN__"
1838        echo "$ac_t""disabled" 1>&6
1839        echo $ac_n "checking for gethostbyname in -lbsd""... $ac_c" 1>&6
1840echo "configure:1841: checking for gethostbyname in -lbsd" >&5
1841ac_lib_var=`echo bsd'_'gethostbyname | sed 'y%./+-%__p_%'`
1842if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1843  echo $ac_n "(cached) $ac_c" 1>&6
1844else
1845  ac_save_LIBS="$LIBS"
1846LIBS="-lbsd  $LIBS"
1847cat > conftest.$ac_ext <<EOF
1848#line 1849 "configure"
1849#include "confdefs.h"
1850/* Override any gcc2 internal prototype to avoid an error.  */
1851#ifdef __cplusplus
1852extern "C"
1853#endif
1854/* We use char because int might match the return type of a gcc2
1855    builtin and then its argument prototype would still apply.  */
1856char gethostbyname();
1857
1858int main() {
1859gethostbyname()
1860; return 0; }
1861EOF
1862if { (eval echo configure:1863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1863  rm -rf conftest*
1864  eval "ac_cv_lib_$ac_lib_var=yes"
1865else
1866  echo "configure: failed program was:" >&5
1867  cat conftest.$ac_ext >&5
1868  rm -rf conftest*
1869  eval "ac_cv_lib_$ac_lib_var=no"
1870fi
1871rm -f conftest*
1872LIBS="$ac_save_LIBS"
1873
1874fi
1875if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1876  echo "$ac_t""yes" 1>&6
1877  LIBSOCKET="-lbsd"
1878else
1879  echo "$ac_t""no" 1>&6
1880fi
1881          ;;
1882    esac
1883
1884
1885
1886
1887
1888
1889echo $ac_n "checking for Qt""... $ac_c" 1>&6
1890echo "configure:1891: checking for Qt" >&5
1891ac_qt_includes=NO ac_qt_libraries=NO ac_qt_bindir=NO
1892qt_libraries=""
1893qt_includes=""
1894# Check whether --with-qt-dir or --without-qt-dir was given.
1895if test "${with_qt_dir+set}" = set; then
1896  withval="$with_qt_dir"
1897    ac_qt_includes="$withval"/include
1898       ac_qt_libraries="$withval"/lib
1899       ac_qt_bindir="$withval"/bin
1900
1901fi
1902
1903
1904# Check whether --with-qt-includes or --without-qt-includes was given.
1905if test "${with_qt_includes+set}" = set; then
1906  withval="$with_qt_includes"
1907
1908       ac_qt_includes="$withval"
1909
1910fi
1911
1912
1913kde_qt_libs_given=no
1914
1915# Check whether --with-qt-libraries or --without-qt-libraries was given.
1916if test "${with_qt_libraries+set}" = set; then
1917  withval="$with_qt_libraries"
1918    ac_qt_libraries="$withval"
1919       kde_qt_libs_given=yes
1920
1921fi
1922
1923
1924if test "$ac_qt_includes" = NO || test "$ac_qt_libraries" = NO; then
1925
1926if eval "test \"`echo '$''{'ac_cv_have_qt'+set}'`\" = set"; then
1927  echo $ac_n "(cached) $ac_c" 1>&6
1928else
1929  #try to guess Qt locations
1930
1931qt_incdirs="$ac_qt_includes /usr/lib/qt/include /usr/local/qt/include /usr/include/qt /usr/include /usr/X11R6/include/X11/qt $x_includes $QTINC"
1932test -n "$QTDIR" && qt_incdirs="$QTDIR/include $QTDIR $qt_incdirs"
1933
1934qt_incdir=NO
1935for i in $qt_incdirs;
1936do
1937  for j in qmovie.h;
1938  do
1939    if test -r "$i/$j"; then
1940      qt_incdir=$i
1941      break 2
1942    fi
1943  done
1944done
1945
1946ac_qt_includes="$qt_incdir"
1947
1948if test ! "$ac_qt_libraries" = "NO"; then
1949  qt_libdirs="$ac_qt_libraries"
1950fi
1951
1952qt_libdirs="$qt_libdirs /usr/lib/qt/lib /usr/X11R6/lib /usr/lib /usr/local/qt/lib /usr/lib/qt $x_libraries $QTLIB"
1953test -n "$QTDIR" && qt_libdirs="$QTDIR/lib $QTDIR $qt_libdirs"
1954
1955test=NONE
1956qt_libdir=NONE
1957for dir in $qt_libdirs; do
1958  try="ls -1 $dir/libqt*"
1959  if test=`eval $try 2> /dev/null`; then qt_libdir=$dir; break; else echo "tried $dir" >&5 ; fi
1960done
1961
1962ac_qt_libraries="$qt_libdir"
1963
1964ac_cxxflags_safe="$CXXFLAGS"
1965ac_ldflags_safe="$LDFLAGS"
1966ac_libs_safe="$LIBS"
1967
1968CXXFLAGS="$CXXFLAGS -I$qt_incdir"
1969LDFLAGS="-L$qt_libdir $X_LDFLAGS"
1970LIBS="$LIBS -lqt -lXext -lX11 $LIBSOCKET"
1971
1972
1973ac_ext=C
1974# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1975ac_cpp='$CXXCPP $CPPFLAGS'
1976ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1977ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1978cross_compiling=$ac_cv_prog_cxx_cross
1979
1980cat > conftest.$ac_ext <<EOF
1981#include "confdefs.h"
1982#include <qmovie.h>
1983#include <qapplication.h>
1984int main() {
1985  QMovie m;
1986  m.setSpeed(20);
1987  return 0;
1988}
1989EOF
1990
1991
1992if { (eval echo configure:1993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1993  rm -f conftest*
1994else
1995  echo "configure: failed program was:" >&5
1996  cat conftest.$ac_ext >&5
1997  ac_qt_libraries="NO"
1998fi
1999rm -f conftest*
2000CXXFLAGS="$ac_cxxflags_safe"
2001LDFLAGS="$ac_ldflags_safe"
2002LIBS="$ac_libs_safe"
2003
2004if test "$ac_qt_includes" = NO || test "$ac_qt_libraries" = NO; then
2005  ac_cv_have_qt="have_qt=no"
2006  ac_qt_notfound=""
2007  if test "$ac_qt_includes" = NO; then
2008    if test "$ac_qt_libraries" = NO; then
2009      ac_qt_notfound="(headers and libraries)";
2010    else
2011      ac_qt_notfound="(headers)";
2012    fi
2013  else
2014    ac_qt_notfound="(libraries)";
2015  fi
2016
2017  { echo "configure: error: Qt-1.4 $ac_qt_notfound not found. Please check your installation! " 1>&2; exit 1; };
2018else
2019  have_qt="yes"
2020fi
2021
2022fi
2023
2024else
2025  have_qt="yes"
2026fi
2027
2028eval "$ac_cv_have_qt"
2029
2030if test "$have_qt" != yes; then
2031  echo "$ac_t""$have_qt" 1>&6;
2032else
2033  ac_cv_have_qt="have_qt=yes \
2034    ac_qt_includes=$ac_qt_includes ac_qt_libraries=$ac_qt_libraries"
2035  echo "$ac_t""libraries $ac_qt_libraries, headers $ac_qt_includes" 1>&6
2036
2037  qt_libraries="$ac_qt_libraries"
2038  qt_includes="$ac_qt_includes"
2039fi
2040
2041if test ! "$kde_qt_libs_given" = "yes"; then
2042
2043echo $ac_n "checking if Qt compiles without flags""... $ac_c" 1>&6
2044echo "configure:2045: checking if Qt compiles without flags" >&5
2045if eval "test \"`echo '$''{'kde_cv_qt_direct'+set}'`\" = set"; then
2046  echo $ac_n "(cached) $ac_c" 1>&6
2047else
2048
2049ac_LD_LIBRARY_PATH_safe=$LD_LIBRARY_PATH
2050ac_LIBRARY_PATH="$LIBRARY_PATH"
2051ac_cxxflags_safe="$CXXFLAGS"
2052ac_ldflags_safe="$LDFLAGS"
2053ac_libs_safe="$LIBS"
2054
2055CXXFLAGS="$CXXFLAGS -I$qt_includes"
2056LDFLAGS="$X_LDFLAGS"
2057LIBS="-lqt -lXext -lX11 $LIBSOCKET"
2058LD_LIBRARY_PATH=
2059export LD_LIBRARY_PATH
2060LIBRARY_PATH=
2061export LIBRARY_PATH
2062
2063
2064ac_ext=C
2065# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2066ac_cpp='$CXXCPP $CPPFLAGS'
2067ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2068ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2069cross_compiling=$ac_cv_prog_cxx_cross
2070
2071cat > conftest.$ac_ext <<EOF
2072#include "confdefs.h"
2073#include <qmovie.h>
2074#include <qapplication.h>
2075int main() {
2076  QMovie m;
2077  m.setSpeed(20);
2078  return 0;
2079}
2080EOF
2081
2082
2083if { (eval echo configure:2084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2084  kde_cv_qt_direct="yes"
2085else
2086  kde_cv_qt_direct="no"
2087  echo "configure: failed program was:" >&5
2088  cat conftest.$ac_ext >&5
2089fi
2090rm -f conftest*
2091CXXFLAGS="$ac_cxxflags_safe"
2092LDFLAGS="$ac_ldflags_safe"
2093LIBS="$ac_libs_safe"
2094
2095LD_LIBRARY_PATH="$ac_LD_LIBRARY_PATH_safe"
2096export LD_LIBRARY_PATH
2097LIBRARY_PATH="$ac_LIBRARY_PATH"
2098export LIBRARY_PATH
2099
2100fi
2101
2102
2103if test "$kde_cv_qt_direct" = "yes"; then
2104  echo "$ac_t""yes" 1>&6
2105  qt_libraries=
2106else
2107  echo "$ac_t""no" 1>&6
2108
2109fi
2110
2111fi
2112
2113
2114
2115
2116if test "$qt_includes" = "$x_includes" || test -z "$qt_includes"; then
2117 QT_INCLUDES="";
2118else
2119 QT_INCLUDES="-I$qt_includes"
2120 all_includes="$QT_INCLUDES $all_includes"
2121fi
2122
2123if test "$qt_libraries" = "$x_libraries" || test -z "$qt_libraries"; then
2124 QT_LDFLAGS=""
2125else
2126 QT_LDFLAGS="-L$qt_libraries"
2127 all_libraries="$QT_LDFLAGS $all_libraries"
2128fi
2129
2130
2131
2132
2133# Extract the first word of "moc", so it can be a program name with args.
2134set dummy moc; ac_word=$2
2135echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2136echo "configure:2137: checking for $ac_word" >&5
2137if eval "test \"`echo '$''{'ac_cv_path_MOC'+set}'`\" = set"; then
2138  echo $ac_n "(cached) $ac_c" 1>&6
2139else
2140  case "$MOC" in
2141  /*)
2142  ac_cv_path_MOC="$MOC" # Let the user override the test with a path.
2143  ;;
2144  ?:/*)
2145  ac_cv_path_MOC="$MOC" # Let the user override the test with a dos path.
2146  ;;
2147  *)
2148  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
2149  ac_dummy="$ac_qt_bindir $QTDIR/bin $PATH /usr/bin /usr/X11R6/bin /usr/lib/qt/bin /usr/local/qt/bin"
2150  for ac_dir in $ac_dummy; do
2151    test -z "$ac_dir" && ac_dir=.
2152    if test -f $ac_dir/$ac_word; then
2153      ac_cv_path_MOC="$ac_dir/$ac_word"
2154      break
2155    fi
2156  done
2157  IFS="$ac_save_ifs"
2158  test -z "$ac_cv_path_MOC" && ac_cv_path_MOC="/usr/bin/moc"
2159  ;;
2160esac
2161fi
2162MOC="$ac_cv_path_MOC"
2163if test -n "$MOC"; then
2164  echo "$ac_t""$MOC" 1>&6
2165else
2166  echo "$ac_t""no" 1>&6
2167fi
2168
2169
2170
2171
2172
2173echo $ac_n "checking for rpath""... $ac_c" 1>&6
2174echo "configure:2175: checking for rpath" >&5
2175# Check whether --enable-rpath or --disable-rpath was given.
2176if test "${enable_rpath+set}" = set; then
2177  enableval="$enable_rpath"
2178  USE_RPATH=$enableval
2179else
2180  USE_RPATH=yes
2181fi
2182
2183if test -z "$KDE_RPATH" && test "$USE_RPATH" = "yes"; then
2184
2185  KDE_RPATH="-rpath \$(kde_libraries)"
2186
2187  if test -n "$qt_libraries"; then
2188    KDE_RPATH="$KDE_RPATH -rpath \$(qt_libraries)"
2189  fi
2190    if test -n "$X_LDFLAGS"; then
2191    KDE_RPATH="$KDE_RPATH -rpath \$(x_libraries)"
2192  fi
2193  if test -n "$KDE_EXTRA_RPATH"; then
2194    KDE_RPATH="$KDE_RPATH \$(KDE_EXTRA_RPATH)"
2195  fi
2196fi
2197
2198
2199echo "$ac_t""$USE_RPATH" 1>&6
2200
2201
2202	echo $ac_n "checking for bool""... $ac_c" 1>&6
2203echo "configure:2204: checking for bool" >&5
2204        if eval "test \"`echo '$''{'ac_cv_have_bool'+set}'`\" = set"; then
2205  echo $ac_n "(cached) $ac_c" 1>&6
2206else
2207
2208		ac_ext=C
2209# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2210ac_cpp='$CXXCPP $CPPFLAGS'
2211ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2212ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2213cross_compiling=$ac_cv_prog_cxx_cross
2214
2215          	cat > conftest.$ac_ext <<EOF
2216#line 2217 "configure"
2217#include "confdefs.h"
2218
2219int main() {
2220bool aBool = true;
2221; return 0; }
2222EOF
2223if { (eval echo configure:2224: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2224  rm -rf conftest*
2225  ac_cv_have_bool="yes"
2226else
2227  echo "configure: failed program was:" >&5
2228  cat conftest.$ac_ext >&5
2229  rm -rf conftest*
2230  ac_cv_have_bool="no"
2231fi
2232rm -f conftest*
2233
2234fi
2235         echo "$ac_t""$ac_cv_have_bool" 1>&6
2236        if test "$ac_cv_have_bool" = "yes"; then
2237        	cat >> confdefs.h <<\EOF
2238#define HAVE_BOOL 1
2239EOF
2240
2241        fi
2242
2243
2244
2245# Do some error checking and defaulting for the host and target type.
2246# The inputs are:
2247#    configure --host=HOST --target=TARGET --build=BUILD NONOPT
2248#
2249# The rules are:
2250# 1. You are not allowed to specify --host, --target, and nonopt at the
2251#    same time.
2252# 2. Host defaults to nonopt.
2253# 3. If nonopt is not specified, then host defaults to the current host,
2254#    as determined by config.guess.
2255# 4. Target and build default to nonopt.
2256# 5. If nonopt is not specified, then target and build default to host.
2257
2258# The aliases save the names the user supplied, while $host etc.
2259# will get canonicalized.
2260case $host---$target---$nonopt in
2261NONE---*---* | *---NONE---* | *---*---NONE) ;;
2262*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
2263esac
2264
2265
2266# Make sure we can run config.sub.
2267if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
2268else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
2269fi
2270
2271echo $ac_n "checking host system type""... $ac_c" 1>&6
2272echo "configure:2273: checking host system type" >&5
2273
2274host_alias=$host
2275case "$host_alias" in
2276NONE)
2277  case $nonopt in
2278  NONE)
2279    if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
2280    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
2281    fi ;;
2282  *) host_alias=$nonopt ;;
2283  esac ;;
2284esac
2285
2286host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
2287host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2288host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2289host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2290echo "$ac_t""$host" 1>&6
2291
2292echo $ac_n "checking target system type""... $ac_c" 1>&6
2293echo "configure:2294: checking target system type" >&5
2294
2295target_alias=$target
2296case "$target_alias" in
2297NONE)
2298  case $nonopt in
2299  NONE) target_alias=$host_alias ;;
2300  *) target_alias=$nonopt ;;
2301  esac ;;
2302esac
2303
2304target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
2305target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2306target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2307target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2308echo "$ac_t""$target" 1>&6
2309
2310echo $ac_n "checking build system type""... $ac_c" 1>&6
2311echo "configure:2312: checking build system type" >&5
2312
2313build_alias=$build
2314case "$build_alias" in
2315NONE)
2316  case $nonopt in
2317  NONE) build_alias=$host_alias ;;
2318  *) build_alias=$nonopt ;;
2319  esac ;;
2320esac
2321
2322build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
2323build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2324build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2325build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2326echo "$ac_t""$build" 1>&6
2327
2328test "$host_alias" != "$target_alias" &&
2329  test "$program_prefix$program_suffix$program_transform_name" = \
2330    NONENONEs,x,x, &&
2331  program_prefix=${target_alias}-
2332
2333if test "$program_transform_name" = s,x,x,; then
2334  program_transform_name=
2335else
2336  # Double any \ or $.  echo might interpret backslashes.
2337  cat <<\EOF_SED > conftestsed
2338s,\\,\\\\,g; s,\$,$$,g
2339EOF_SED
2340  program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
2341  rm -f conftestsed
2342fi
2343test "$program_prefix" != NONE &&
2344  program_transform_name="s,^,${program_prefix},; $program_transform_name"
2345# Use a double $ so make ignores it.
2346test "$program_suffix" != NONE &&
2347  program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
2348
2349# sed with no file args requires a program.
2350test "$program_transform_name" = "" && program_transform_name="s,x,x,"
2351
2352
2353PACKAGE=kfe
2354
2355VERSION=0.1.0
2356
2357if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
2358  { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
2359fi
2360cat >> confdefs.h <<EOF
2361#define PACKAGE "$PACKAGE"
2362EOF
2363
2364cat >> confdefs.h <<EOF
2365#define VERSION "$VERSION"
2366EOF
2367
2368
2369
2370missing_dir=`cd $ac_aux_dir && pwd`
2371echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
2372echo "configure:2373: checking for working aclocal" >&5
2373# Run test in a subshell; some versions of sh will print an error if
2374# an executable is not found, even if stderr is redirected.
2375# Redirect stdin to placate older versions of autoconf.  Sigh.
2376if (aclocal --version) < /dev/null > /dev/null 2>&1; then
2377   ACLOCAL=aclocal
2378   echo "$ac_t""found" 1>&6
2379else
2380   ACLOCAL="$missing_dir/missing aclocal"
2381   echo "$ac_t""missing" 1>&6
2382fi
2383
2384echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
2385echo "configure:2386: checking for working autoconf" >&5
2386# Run test in a subshell; some versions of sh will print an error if
2387# an executable is not found, even if stderr is redirected.
2388# Redirect stdin to placate older versions of autoconf.  Sigh.
2389if (autoconf --version) < /dev/null > /dev/null 2>&1; then
2390   AUTOCONF=autoconf
2391   echo "$ac_t""found" 1>&6
2392else
2393   AUTOCONF="$missing_dir/missing autoconf"
2394   echo "$ac_t""missing" 1>&6
2395fi
2396
2397echo $ac_n "checking for working automake""... $ac_c" 1>&6
2398echo "configure:2399: checking for working automake" >&5
2399# Run test in a subshell; some versions of sh will print an error if
2400# an executable is not found, even if stderr is redirected.
2401# Redirect stdin to placate older versions of autoconf.  Sigh.
2402if (automake --version) < /dev/null > /dev/null 2>&1; then
2403   AUTOMAKE=automake
2404   echo "$ac_t""found" 1>&6
2405else
2406   AUTOMAKE="$missing_dir/missing automake"
2407   echo "$ac_t""missing" 1>&6
2408fi
2409
2410echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
2411echo "configure:2412: checking for working autoheader" >&5
2412# Run test in a subshell; some versions of sh will print an error if
2413# an executable is not found, even if stderr is redirected.
2414# Redirect stdin to placate older versions of autoconf.  Sigh.
2415if (autoheader --version) < /dev/null > /dev/null 2>&1; then
2416   AUTOHEADER=autoheader
2417   echo "$ac_t""found" 1>&6
2418else
2419   AUTOHEADER="$missing_dir/missing autoheader"
2420   echo "$ac_t""missing" 1>&6
2421fi
2422
2423echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
2424echo "configure:2425: checking for working makeinfo" >&5
2425# Run test in a subshell; some versions of sh will print an error if
2426# an executable is not found, even if stderr is redirected.
2427# Redirect stdin to placate older versions of autoconf.  Sigh.
2428if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
2429   MAKEINFO=makeinfo
2430   echo "$ac_t""found" 1>&6
2431else
2432   MAKEINFO="$missing_dir/missing makeinfo"
2433   echo "$ac_t""missing" 1>&6
2434fi
2435
2436
2437
2438
2439
2440enable_static=no
2441enable_shared=no
2442
2443
2444
2445
2446
2447  # Check whether --enable-debug or --disable-debug was given.
2448if test "${enable_debug+set}" = set; then
2449  enableval="$enable_debug"
2450
2451   if test $enableval = "no";      then ac_use_debug_code="no"
2452     else ac_use_debug_code="yes"
2453   fi
2454
2455else
2456  ac_use_debug_code="no"
2457fi
2458
2459
2460  # Check whether --enable-strict or --disable-strict was given.
2461if test "${enable_strict+set}" = set; then
2462  enableval="$enable_strict"
2463
2464    if test $enableval = "no"; then
2465         ac_use_strict_options="no"
2466       else
2467         ac_use_strict_options="yes"
2468    fi
2469
2470else
2471  ac_use_strict_options="no"
2472fi
2473
2474
2475  echo $ac_n "checking for a C-Compiler""... $ac_c" 1>&6
2476echo "configure:2477: checking for a C-Compiler" >&5
2477    echo "$ac_t""$CC" 1>&6
2478
2479  if test -z "$CC"; then # Extract the first word of "gcc", so it can be a program name with args.
2480set dummy gcc; ac_word=$2
2481echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2482echo "configure:2483: checking for $ac_word" >&5
2483if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2484  echo $ac_n "(cached) $ac_c" 1>&6
2485else
2486  if test -n "$CC"; then
2487  ac_cv_prog_CC="$CC" # Let the user override the test.
2488else
2489  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
2490  ac_dummy="$PATH"
2491  for ac_dir in $ac_dummy; do
2492    test -z "$ac_dir" && ac_dir=.
2493    if test -f $ac_dir/$ac_word; then
2494      ac_cv_prog_CC="gcc"
2495      break
2496    fi
2497  done
2498  IFS="$ac_save_ifs"
2499fi
2500fi
2501CC="$ac_cv_prog_CC"
2502if test -n "$CC"; then
2503  echo "$ac_t""$CC" 1>&6
2504else
2505  echo "$ac_t""no" 1>&6
2506fi
2507 fi
2508  if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args.
2509set dummy cc; ac_word=$2
2510echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2511echo "configure:2512: checking for $ac_word" >&5
2512if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2513  echo $ac_n "(cached) $ac_c" 1>&6
2514else
2515  if test -n "$CC"; then
2516  ac_cv_prog_CC="$CC" # Let the user override the test.
2517else
2518  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
2519  ac_prog_rejected=no
2520  ac_dummy="$PATH"
2521  for ac_dir in $ac_dummy; do
2522    test -z "$ac_dir" && ac_dir=.
2523    if test -f $ac_dir/$ac_word; then
2524      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2525        ac_prog_rejected=yes
2526	continue
2527      fi
2528      ac_cv_prog_CC="cc"
2529      break
2530    fi
2531  done
2532  IFS="$ac_save_ifs"
2533if test $ac_prog_rejected = yes; then
2534  # We found a bogon in the path, so make sure we never use it.
2535  set dummy $ac_cv_prog_CC
2536  shift
2537  if test $# -gt 0; then
2538    # We chose a different compiler from the bogus one.
2539    # However, it has the same basename, so the bogon will be chosen
2540    # first if we set CC to just the basename; use the full file name.
2541    shift
2542    set dummy "$ac_dir/$ac_word" "$@"
2543    shift
2544    ac_cv_prog_CC="$@"
2545  fi
2546fi
2547fi
2548fi
2549CC="$ac_cv_prog_CC"
2550if test -n "$CC"; then
2551  echo "$ac_t""$CC" 1>&6
2552else
2553  echo "$ac_t""no" 1>&6
2554fi
2555 fi
2556  if test -z "$CC"; then # Extract the first word of "xlc", so it can be a program name with args.
2557set dummy xlc; ac_word=$2
2558echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2559echo "configure:2560: checking for $ac_word" >&5
2560if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
2561  echo $ac_n "(cached) $ac_c" 1>&6
2562else
2563  if test -n "$CC"; then
2564  ac_cv_prog_CC="$CC" # Let the user override the test.
2565else
2566  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
2567  ac_dummy="$PATH"
2568  for ac_dir in $ac_dummy; do
2569    test -z "$ac_dir" && ac_dir=.
2570    if test -f $ac_dir/$ac_word; then
2571      ac_cv_prog_CC="xlc"
2572      break
2573    fi
2574  done
2575  IFS="$ac_save_ifs"
2576fi
2577fi
2578CC="$ac_cv_prog_CC"
2579if test -n "$CC"; then
2580  echo "$ac_t""$CC" 1>&6
2581else
2582  echo "$ac_t""no" 1>&6
2583fi
2584 fi
2585  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
2586
2587  echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2588echo "configure:2589: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
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
2597cat > conftest.$ac_ext << EOF
2598
2599#line 2600 "configure"
2600#include "confdefs.h"
2601
2602main(){return(0);}
2603EOF
2604if { (eval echo configure:2605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2605  ac_cv_prog_cc_works=yes
2606  # If we can't run a trivial program, we are probably using a cross compiler.
2607  if (./conftest; exit) 2>/dev/null; then
2608    ac_cv_prog_cc_cross=no
2609  else
2610    ac_cv_prog_cc_cross=yes
2611  fi
2612else
2613  echo "configure: failed program was:" >&5
2614  cat conftest.$ac_ext >&5
2615  ac_cv_prog_cc_works=no
2616fi
2617rm -fr conftest*
2618ac_ext=c
2619# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2620ac_cpp='$CPP $CPPFLAGS'
2621ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2622ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2623cross_compiling=$ac_cv_prog_cc_cross
2624
2625echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
2626if test $ac_cv_prog_cc_works = no; then
2627  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
2628fi
2629echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2630echo "configure:2631: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
2631echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
2632cross_compiling=$ac_cv_prog_cc_cross
2633
2634  echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
2635echo "configure:2636: checking whether we are using GNU C" >&5
2636if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
2637  echo $ac_n "(cached) $ac_c" 1>&6
2638else
2639  cat > conftest.c <<EOF
2640#ifdef __GNUC__
2641  yes;
2642#endif
2643EOF
2644if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2645: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2645  ac_cv_prog_gcc=yes
2646else
2647  ac_cv_prog_gcc=no
2648fi
2649fi
2650
2651echo "$ac_t""$ac_cv_prog_gcc" 1>&6
2652
2653  if test $ac_cv_prog_gcc = yes; then
2654    GCC=yes
2655  else
2656    GCC=
2657  fi
2658
2659  if test -z "$CFLAGS"; then
2660    if test "$ac_use_debug_code" = "yes"; then
2661      echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
2662echo "configure:2663: checking whether ${CC-cc} accepts -g" >&5
2663if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
2664  echo $ac_n "(cached) $ac_c" 1>&6
2665else
2666  echo 'void f(){}' > conftest.c
2667if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
2668  ac_cv_prog_cc_g=yes
2669else
2670  ac_cv_prog_cc_g=no
2671fi
2672rm -f conftest*
2673
2674fi
2675
2676echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
2677      if test $ac_cv_prog_cc_g = yes; then
2678        CFLAGS="-g"
2679      fi
2680    else
2681      if test "$GCC" = "yes"; then
2682        CFLAGS="-O2"
2683      else
2684        CFLAGS=""
2685      fi
2686    fi
2687
2688    if test "$GCC" = "yes"; then
2689     CFLAGS="$CFLAGS -Wall"
2690
2691     if test "$ac_use_strict_options" = "yes"; then
2692	CFLAGS="$CFLAGS -W -ansi -pedantic"
2693     fi
2694    fi
2695
2696  fi
2697
2698  case "$host" in
2699  *-*-sysv4.2uw*) CFLAGS="$CFLAGS -D_UNIXWARE";;
2700  esac
2701
2702  if test -z "$LDFLAGS" && test "$ac_use_debug_code" = "no" && test "$GCC" = "yes"; then
2703     LDFLAGS="-s"
2704  fi
2705
2706
2707
2708  echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2709echo "configure:2710: checking how to run the C preprocessor" >&5
2710  # On Suns, sometimes $CPP names a directory.
2711  if test -n "$CPP" && test -d "$CPP"; then
2712    CPP=
2713  fi
2714  if test -z "$CPP"; then
2715  if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2716  echo $ac_n "(cached) $ac_c" 1>&6
2717else
2718    # This must be in double quotes, not single quotes, because CPP may get
2719    # substituted into the Makefile and "${CC-cc}" will confuse make.
2720    CPP="${CC-cc} -E"
2721    # On the NeXT, cc -E runs the code through the compiler's parser,
2722    # not just through cpp.
2723            cat > conftest.$ac_ext <<EOF
2724#line 2725 "configure"
2725#include "confdefs.h"
2726#include <assert.h>
2727    Syntax Error
2728EOF
2729ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2730{ (eval echo configure:2731: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2731ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2732if test -z "$ac_err"; then
2733  :
2734else
2735  echo "$ac_err" >&5
2736  echo "configure: failed program was:" >&5
2737  cat conftest.$ac_ext >&5
2738  rm -rf conftest*
2739  CPP="${CC-cc} -E -traditional-cpp"
2740    cat > conftest.$ac_ext <<EOF
2741#line 2742 "configure"
2742#include "confdefs.h"
2743#include <assert.h>
2744    Syntax Error
2745EOF
2746ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2747{ (eval echo configure:2748: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2748ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2749if test -z "$ac_err"; then
2750  :
2751else
2752  echo "$ac_err" >&5
2753  echo "configure: failed program was:" >&5
2754  cat conftest.$ac_ext >&5
2755  rm -rf conftest*
2756  CPP=/lib/cpp
2757fi
2758rm -f conftest*
2759fi
2760rm -f conftest*
2761    ac_cv_prog_CPP="$CPP"
2762fi
2763    CPP="$ac_cv_prog_CPP"
2764  else
2765    ac_cv_prog_CPP="$CPP"
2766  fi
2767  echo "$ac_t""$CPP" 1>&6
2768
2769
2770  echo $ac_n "checking for a C++-Compiler""... $ac_c" 1>&6
2771echo "configure:2772: checking for a C++-Compiler" >&5
2772    echo "$ac_t""$CXX" 1>&6
2773
2774  if test -z "$CXX"; then # Extract the first word of "g++", so it can be a program name with args.
2775set dummy g++; ac_word=$2
2776echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2777echo "configure:2778: checking for $ac_word" >&5
2778if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
2779  echo $ac_n "(cached) $ac_c" 1>&6
2780else
2781  if test -n "$CXX"; then
2782  ac_cv_prog_CXX="$CXX" # Let the user override the test.
2783else
2784  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
2785  ac_dummy="$PATH"
2786  for ac_dir in $ac_dummy; do
2787    test -z "$ac_dir" && ac_dir=.
2788    if test -f $ac_dir/$ac_word; then
2789      ac_cv_prog_CXX="g++"
2790      break
2791    fi
2792  done
2793  IFS="$ac_save_ifs"
2794fi
2795fi
2796CXX="$ac_cv_prog_CXX"
2797if test -n "$CXX"; then
2798  echo "$ac_t""$CXX" 1>&6
2799else
2800  echo "$ac_t""no" 1>&6
2801fi
2802 fi
2803  if test -z "$CXX"; then # Extract the first word of "CC", so it can be a program name with args.
2804set dummy CC; ac_word=$2
2805echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2806echo "configure:2807: checking for $ac_word" >&5
2807if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
2808  echo $ac_n "(cached) $ac_c" 1>&6
2809else
2810  if test -n "$CXX"; then
2811  ac_cv_prog_CXX="$CXX" # Let the user override the test.
2812else
2813  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
2814  ac_dummy="$PATH"
2815  for ac_dir in $ac_dummy; do
2816    test -z "$ac_dir" && ac_dir=.
2817    if test -f $ac_dir/$ac_word; then
2818      ac_cv_prog_CXX="CC"
2819      break
2820    fi
2821  done
2822  IFS="$ac_save_ifs"
2823fi
2824fi
2825CXX="$ac_cv_prog_CXX"
2826if test -n "$CXX"; then
2827  echo "$ac_t""$CXX" 1>&6
2828else
2829  echo "$ac_t""no" 1>&6
2830fi
2831 fi
2832  if test -z "$CXX"; then # Extract the first word of "xlC", so it can be a program name with args.
2833set dummy xlC; ac_word=$2
2834echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2835echo "configure:2836: checking for $ac_word" >&5
2836if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
2837  echo $ac_n "(cached) $ac_c" 1>&6
2838else
2839  if test -n "$CXX"; then
2840  ac_cv_prog_CXX="$CXX" # Let the user override the test.
2841else
2842  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
2843  ac_dummy="$PATH"
2844  for ac_dir in $ac_dummy; do
2845    test -z "$ac_dir" && ac_dir=.
2846    if test -f $ac_dir/$ac_word; then
2847      ac_cv_prog_CXX="xlC"
2848      break
2849    fi
2850  done
2851  IFS="$ac_save_ifs"
2852fi
2853fi
2854CXX="$ac_cv_prog_CXX"
2855if test -n "$CXX"; then
2856  echo "$ac_t""$CXX" 1>&6
2857else
2858  echo "$ac_t""no" 1>&6
2859fi
2860 fi
2861  if test -z "$CXX"; then # Extract the first word of "DCC", so it can be a program name with args.
2862set dummy DCC; ac_word=$2
2863echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2864echo "configure:2865: checking for $ac_word" >&5
2865if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
2866  echo $ac_n "(cached) $ac_c" 1>&6
2867else
2868  if test -n "$CXX"; then
2869  ac_cv_prog_CXX="$CXX" # Let the user override the test.
2870else
2871  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
2872  ac_dummy="$PATH"
2873  for ac_dir in $ac_dummy; do
2874    test -z "$ac_dir" && ac_dir=.
2875    if test -f $ac_dir/$ac_word; then
2876      ac_cv_prog_CXX="DCC"
2877      break
2878    fi
2879  done
2880  IFS="$ac_save_ifs"
2881fi
2882fi
2883CXX="$ac_cv_prog_CXX"
2884if test -n "$CXX"; then
2885  echo "$ac_t""$CXX" 1>&6
2886else
2887  echo "$ac_t""no" 1>&6
2888fi
2889 fi
2890  test -z "$CXX" && { echo "configure: error: no acceptable C++-compiler found in \$PATH" 1>&2; exit 1; }
2891
2892  echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
2893echo "configure:2894: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
2894
2895ac_ext=C
2896# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2897ac_cpp='$CXXCPP $CPPFLAGS'
2898ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2899ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2900cross_compiling=$ac_cv_prog_cxx_cross
2901
2902cat > conftest.$ac_ext << EOF
2903
2904#line 2905 "configure"
2905#include "confdefs.h"
2906
2907int main(){return(0);}
2908EOF
2909if { (eval echo configure:2910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2910  ac_cv_prog_cxx_works=yes
2911  # If we can't run a trivial program, we are probably using a cross compiler.
2912  if (./conftest; exit) 2>/dev/null; then
2913    ac_cv_prog_cxx_cross=no
2914  else
2915    ac_cv_prog_cxx_cross=yes
2916  fi
2917else
2918  echo "configure: failed program was:" >&5
2919  cat conftest.$ac_ext >&5
2920  ac_cv_prog_cxx_works=no
2921fi
2922rm -fr conftest*
2923ac_ext=c
2924# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2925ac_cpp='$CPP $CPPFLAGS'
2926ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2927ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2928cross_compiling=$ac_cv_prog_cc_cross
2929
2930echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
2931if test $ac_cv_prog_cxx_works = no; then
2932  { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
2933fi
2934echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
2935echo "configure:2936: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
2936echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
2937cross_compiling=$ac_cv_prog_cxx_cross
2938
2939  echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
2940echo "configure:2941: checking whether we are using GNU C++" >&5
2941if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
2942  echo $ac_n "(cached) $ac_c" 1>&6
2943else
2944  cat > conftest.C <<EOF
2945#ifdef __GNUC__
2946  yes;
2947#endif
2948EOF
2949if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:2950: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
2950  ac_cv_prog_gxx=yes
2951else
2952  ac_cv_prog_gxx=no
2953fi
2954fi
2955
2956echo "$ac_t""$ac_cv_prog_gxx" 1>&6
2957
2958  if test $ac_cv_prog_gxx = yes; then
2959    GXX=yes
2960  else
2961    echo $ac_n "checking whether we are using SPARC CC""... $ac_c" 1>&6
2962echo "configure:2963: checking whether we are using SPARC CC" >&5
2963    GXX=
2964    cat > conftest.C << EOF
2965#ifdef __SUNPRO_CC
2966   yes;
2967#endif
2968EOF
2969
2970    ac_try="$CXX -E conftest.C"
2971    if { (eval echo configure:__online__: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } | egrep yes >/dev/null 2>&1; then
2972      ac_cv_prog_CC=yes
2973    else
2974      ac_cv_prog_CC=no
2975    fi
2976    echo "$ac_t""$ac_cv_prog_CC" 1>&6
2977  fi
2978
2979  if test -z "$CXXFLAGS"; then
2980    if test "$ac_use_debug_code" = "yes"; then
2981      echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
2982echo "configure:2983: checking whether ${CXX-g++} accepts -g" >&5
2983if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
2984  echo $ac_n "(cached) $ac_c" 1>&6
2985else
2986  echo 'void f(){}' > conftest.cc
2987if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
2988  ac_cv_prog_cxx_g=yes
2989else
2990  ac_cv_prog_cxx_g=no
2991fi
2992rm -f conftest*
2993
2994fi
2995
2996echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
2997      if test $ac_cv_prog_cxx_g = yes; then
2998        CXXFLAGS="-g"
2999      fi
3000      if test "$ac_cv_prog_CC" = "yes"; then
3001        CXXFLAGS="$CXXFLAGS -pto"
3002      fi
3003    else
3004      if test "$GXX" = "yes"; then
3005         CXXFLAGS="-O2"
3006      else
3007         if test "$ac_cv_prog_CC" = "yes"; then
3008            CXXFLAGS="-pto -O2"
3009         else
3010            CXXFLAGS=""
3011         fi
3012      fi
3013    fi
3014
3015    if test "$GXX" = "yes"; then
3016       CXXFLAGS="$CXXFLAGS -Wall"
3017
3018       if test "$ac_use_strict_options" = "yes"; then
3019	CXXFLAGS="$CXXFLAGS -W -ansi -Wtraditional  -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Woverloaded-virtual -Wbad-function-cast  -Wsynth"
3020       fi
3021
3022       if test "$kde_very_strict" = "yes"; then
3023         CXXFLAGS="$CXXFLAGS -Wold-style-cast -Wshadow -Wredundant-decls -Wconversion"
3024       fi
3025    fi
3026  fi
3027
3028    case "$host" in
3029      *-*-sysv4.2uw*) CXXFLAGS="$CXXFLAGS -D_UNIXWARE";;
3030    esac
3031
3032
3033
3034
3035
3036ac_save_cc=$CC
3037ac_save_cflags="$CFLAGS"
3038CC=$CXX
3039CFLAGS="$CXXFLAGS"
3040# Always use our own libtool.
3041LIBTOOL='$(SHELL) $(top_builddir)/libtool --silent'
3042
3043# Check for any special flags to pass to ltconfig.
3044libtool_flags=
3045test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
3046test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
3047test "$silent" = yes && libtool_flags="$libtool_flags --silent"
3048test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
3049test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
3050
3051# Some flags need to be propagated to the compiler or linker for good
3052# libtool support.
3053case "$host" in
3054*-*-irix6*)
3055  # Find out which ABI we are using.
3056  echo '#line 3057 "configure"' > conftest.$ac_ext
3057  if { (eval echo configure:3058: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3058    case "`/usr/bin/file conftest.o`" in
3059    *32-bit*)
3060      LD="${LD-ld} -32"
3061      ;;
3062    *N32*)
3063      LD="${LD-ld} -n32"
3064      ;;
3065    *64-bit*)
3066      LD="${LD-ld} -64"
3067      ;;
3068    esac
3069  fi
3070  rm -rf conftest*
3071  ;;
3072
3073*-*-sco3.2v5*)
3074  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3075  CFLAGS="$CFLAGS -belf"
3076  ;;
3077esac
3078
3079# Actually configure libtool.  ac_aux_dir is where install-sh is found.
3080CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
3081LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
3082${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \
3083$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
3084|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
3085 CC=$ac_save_cc
3086CFLAGS="$ac_save_cflags"
3087
3088echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
3089echo "configure:3090: checking whether NLS is requested" >&5
3090    ac_ext=C
3091# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3092ac_cpp='$CXXCPP $CPPFLAGS'
3093ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3094ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3095cross_compiling=$ac_cv_prog_cxx_cross
3096
3097        # Check whether --enable-nls or --disable-nls was given.
3098if test "${enable_nls+set}" = set; then
3099  enableval="$enable_nls"
3100  USE_NLS=$enableval
3101else
3102  USE_NLS=yes
3103fi
3104
3105    echo "$ac_t""$USE_NLS" 1>&6
3106
3107
3108        if test "$USE_NLS" = "yes"; then
3109      cat >> confdefs.h <<\EOF
3110#define ENABLE_NLS 1
3111EOF
3112
3113
3114      # Extract the first word of "msgfmt", so it can be a program name with args.
3115set dummy msgfmt; ac_word=$2
3116echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3117echo "configure:3118: checking for $ac_word" >&5
3118if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3119  echo $ac_n "(cached) $ac_c" 1>&6
3120else
3121  case "$MSGFMT" in
3122  /*)
3123  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3124  ;;
3125  *)
3126  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3127  for ac_dir in $PATH; do
3128    test -z "$ac_dir" && ac_dir=.
3129    if test -f $ac_dir/$ac_word; then
3130      if test -n "`$ac_dir/$ac_word --version 2>&1 | grep 'GNU gettext'`"; then
3131	ac_cv_path_MSGFMT="$ac_dir/$ac_word"
3132	break
3133      fi
3134    fi
3135  done
3136  IFS="$ac_save_ifs"
3137  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
3138  ;;
3139esac
3140fi
3141MSGFMT="$ac_cv_path_MSGFMT"
3142if test -n "$MSGFMT"; then
3143  echo "$ac_t""$MSGFMT" 1>&6
3144else
3145  echo "$ac_t""no" 1>&6
3146fi
3147
3148      # Extract the first word of "gmsgfmt", so it can be a program name with args.
3149set dummy gmsgfmt; ac_word=$2
3150echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3151echo "configure:3152: checking for $ac_word" >&5
3152if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3153  echo $ac_n "(cached) $ac_c" 1>&6
3154else
3155  case "$GMSGFMT" in
3156  /*)
3157  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3158  ;;
3159  ?:/*)
3160  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
3161  ;;
3162  *)
3163  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
3164  ac_dummy="$PATH"
3165  for ac_dir in $ac_dummy; do
3166    test -z "$ac_dir" && ac_dir=.
3167    if test -f $ac_dir/$ac_word; then
3168      ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3169      break
3170    fi
3171  done
3172  IFS="$ac_save_ifs"
3173  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3174  ;;
3175esac
3176fi
3177GMSGFMT="$ac_cv_path_GMSGFMT"
3178if test -n "$GMSGFMT"; then
3179  echo "$ac_t""$GMSGFMT" 1>&6
3180else
3181  echo "$ac_t""no" 1>&6
3182fi
3183
3184
3185      if test -z "`$MSGFMT --version 2>&1 | grep 'GNU gettext'`"; then
3186        echo "$ac_t""found msgfmt program is not GNU msgfmt; ignore it" 1>&6
3187        msgfmt=":"
3188      fi
3189
3190
3191      # Extract the first word of "xgettext", so it can be a program name with args.
3192set dummy xgettext; ac_word=$2
3193echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3194echo "configure:3195: checking for $ac_word" >&5
3195if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3196  echo $ac_n "(cached) $ac_c" 1>&6
3197else
3198  case "$XGETTEXT" in
3199  /*)
3200  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3201  ;;
3202  *)
3203  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3204  for ac_dir in $PATH; do
3205    test -z "$ac_dir" && ac_dir=.
3206    if test -f $ac_dir/$ac_word; then
3207      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3208	ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3209	break
3210      fi
3211    fi
3212  done
3213  IFS="$ac_save_ifs"
3214  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3215  ;;
3216esac
3217fi
3218XGETTEXT="$ac_cv_path_XGETTEXT"
3219if test -n "$XGETTEXT"; then
3220  echo "$ac_t""$XGETTEXT" 1>&6
3221else
3222  echo "$ac_t""no" 1>&6
3223fi
3224
3225
3226            if test "$XGETTEXT" != ":"; then
3227			if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
3228	  : ;
3229	else
3230	  echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
3231	  XGETTEXT=":"
3232	fi
3233      fi
3234
3235    fi
3236
3237
3238
3239
3240
3241echo $ac_n "checking for KDE""... $ac_c" 1>&6
3242echo "configure:3243: checking for KDE" >&5
3243
3244if test "${prefix}" != NONE; then
3245  kde_includes=${prefix}/include
3246  ac_kde_includes=$prefix/include
3247
3248  if test "${exec_prefix}" != NONE; then
3249    kde_libraries=${exec_prefix}/lib
3250    ac_kde_libraries=$exec_prefix/lib
3251  else
3252    kde_libraries=${prefix}/lib
3253    ac_kde_libraries=$prefix/lib
3254  fi
3255else
3256  ac_kde_includes=
3257  ac_kde_libraries=
3258  kde_libraries=""
3259  kde_includes=""
3260fi
3261
3262if eval "test \"`echo '$''{'ac_cv_have_kde'+set}'`\" = set"; then
3263  echo $ac_n "(cached) $ac_c" 1>&6
3264else
3265  #try to guess kde locations
3266
3267if test -z ""; then
3268
3269kde_incdirs="$ac_kde_includes /usr/lib/kde/include /usr/local/kde/include /usr/kde/include /usr/include/kde /usr/include /opt/kde/include $x_includes $qt_includes"
3270test -n "$KDEDIR" && kde_incdirs="$KDEDIR/include $KDEDIR $kde_incdirs"
3271
3272kde_incdir=NO
3273for i in $kde_incdirs;
3274do
3275  for j in ksock.h;
3276  do
3277    if test -r "$i/$j"; then
3278      kde_incdir=$i
3279      break 2
3280    fi
3281  done
3282done
3283
3284ac_kde_includes="$kde_incdir"
3285
3286if test -n "$ac_kde_includes" && test ! -r "$ac_kde_includes/ksock.h"; then
3287  { echo "configure: error:
3288in the prefix, you've chosen, are no kde headers installed. This will fail.
3289So, check this please and use another prefix!" 1>&2; exit 1; }
3290fi
3291
3292kde_libdirs="$ac_kde_libraries /usr/lib/kde/lib /usr/local/kde/lib /usr/kde/lib /usr/lib/kde /usr/lib /usr/X11R6/lib /opt/kde/lib /usr/X11R6/kde/lib"
3293test -n "$KDEDIR" && kde_libdirs="$KDEDIR/lib $KDEDIR $kde_libdirs"
3294
3295kde_libdir=NO
3296for i in $kde_libdirs;
3297do
3298  for j in libkdecore.la;
3299  do
3300    if test -r "$i/$j"; then
3301      kde_libdir=$i
3302      break 2
3303    fi
3304  done
3305done
3306
3307
3308if test -n "$ac_kde_libraries" && test ! -r "$ac_kde_libraries/libkdecore.la"; then
3309{ echo "configure: error:
3310in the prefix, you've chosen, are no kde libraries installed. This will fail.
3311So, check this please and use another prefix!" 1>&2; exit 1; }
3312fi
3313ac_kde_libraries="$kde_libdir"
3314
3315if test "$ac_kde_includes" = NO || test "$ac_kde_libraries" = NO; then
3316  ac_cv_have_kde="have_kde=no"
3317else
3318  ac_cv_have_kde="have_kde=yes \
3319    ac_kde_includes=$ac_kde_includes ac_kde_libraries=$ac_kde_libraries"
3320fi
3321
3322else
3323  ac_cv_have_kde="have_kde=no"
3324
3325fi
3326
3327fi
3328
3329eval "$ac_cv_have_kde"
3330
3331if test "$have_kde" != "yes"; then
3332 if test "${prefix}" = NONE; then
3333  ac_kde_prefix="$ac_default_prefix"
3334 else
3335  ac_kde_prefix="$prefix"
3336 fi
3337 if test "$exec_prefix" = NONE; then
3338  ac_kde_exec_prefix="$ac_kde_prefix"
3339  echo "$ac_t""will be installed in $ac_kde_prefix" 1>&6
3340 else
3341  ac_kde_exec_prefix="$exec_prefix"
3342  echo "$ac_t""will be installed in $ac_kde_prefix and $ac_kde_exec_prefix" 1>&6
3343 fi
3344
3345 kde_libraries="${ac_kde_exec_prefix}/lib"
3346 kde_includes=${ac_kde_prefix}/include
3347
3348else
3349  ac_cv_have_kde="have_kde=yes \
3350    ac_kde_includes=$ac_kde_includes ac_kde_libraries=$ac_kde_libraries"
3351  echo "$ac_t""libraries $ac_kde_libraries, headers $ac_kde_includes" 1>&6
3352
3353  kde_libraries="$ac_kde_libraries"
3354  kde_includes="$ac_kde_includes"
3355fi
3356
3357
3358
3359if test "$kde_includes" = "$x_includes" || test "$kde_includes" = "$qt_includes" ; then
3360 KDE_INCLUDES=""
3361else
3362 KDE_INCLUDES="-I$kde_includes"
3363 all_includes="$KDE_INCLUDES $all_includes"
3364fi
3365
3366if test "$kde_libraries" = "$x_libraries" || test "$kde_libraries" = "$qt_libraries" ; then
3367 KDE_LDFLAGS=""
3368else
3369 KDE_LDFLAGS="-L$kde_libraries"
3370 all_libraries="$KDE_LDFLAGS $all_libraries"
3371fi
3372
3373
3374
3375
3376
3377echo $ac_n "checking for extra includes""... $ac_c" 1>&6
3378echo "configure:3379: checking for extra includes" >&5
3379# Check whether --with-extra-includes or --without-extra-includes was given.
3380if test "${with_extra_includes+set}" = set; then
3381  withval="$with_extra_includes"
3382  kde_use_extra_includes="$withval"
3383else
3384  kde_use_extra_includes=NONE
3385
3386fi
3387
3388if test -n "$kde_use_extra_includes" && \
3389   test "$kde_use_extra_includes" != "NONE"; then
3390
3391   ac_save_ifs=$IFS
3392   IFS=':'
3393   for dir in $kde_use_extra_includes; do
3394     all_includes="$all_includes -I$dir"
3395     USER_INCLUDES="$USER_INCLUDES -I$dir"
3396   done
3397   IFS=$ac_save_ifs
3398   kde_use_extra_includes="added"
3399else
3400   kde_use_extra_includes="no"
3401fi
3402
3403echo "$ac_t""$kde_use_extra_includes" 1>&6
3404
3405echo $ac_n "checking for extra libs""... $ac_c" 1>&6
3406echo "configure:3407: checking for extra libs" >&5
3407# Check whether --with-extra-libs or --without-extra-libs was given.
3408if test "${with_extra_libs+set}" = set; then
3409  withval="$with_extra_libs"
3410  kde_use_extra_libs=$withval
3411else
3412  kde_use_extra_libs=NONE
3413
3414fi
3415
3416if test -n "$kde_use_extra_libs" && \
3417   test "$kde_use_extra_libs" != "NONE"; then
3418
3419   ac_save_ifs=$IFS
3420   IFS=':'
3421   for dir in $kde_use_extra_libs; do
3422     all_libraries="$all_libraries -L$dir"
3423     KDE_EXTRA_RPATH="$KDE_EXTRA_RPATH -rpath $dir"
3424     USER_LDFLAGS="$USER_LDFLAGS -L$dir"
3425   done
3426   IFS=$ac_save_ifs
3427   kde_use_extra_libs="added"
3428else
3429   kde_use_extra_libs="no"
3430fi
3431
3432echo "$ac_t""$kde_use_extra_libs" 1>&6
3433
3434
3435
3436
3437
3438
3439
3440  # Check whether --enable-path-check or --disable-path-check was given.
3441if test "${enable_path_check+set}" = set; then
3442  enableval="$enable_path_check"
3443
3444  if test "$enableval" = "no";
3445    then ac_use_path_checking="default"
3446    else ac_use_path_checking=""
3447  fi
3448
3449else
3450  ac_use_path_checking=""
3451
3452fi
3453
3454
3455  # Check whether --with-install-root or --without-install-root was given.
3456if test "${with_install_root+set}" = set; then
3457  withval="$with_install_root"
3458
3459  if test "$withval" = "no";
3460    then kde_install_root="";
3461    else kde_install_root=$withval;
3462  fi
3463
3464else
3465  kde_install_root=""
3466
3467fi
3468
3469
3470  if test -n "$kde_install_root"; then
3471     install_root="$kde_install_root"
3472  else
3473     install_root=
3474  fi
3475
3476
3477
3478
3479
3480if test "$ac_use_path_checking" = "default"; then
3481
3482  echo $ac_n "checking for KDE paths""... $ac_c" 1>&6
3483echo "configure:3484: checking for KDE paths" >&5
3484
3485  if test -z "$kde_htmldir"; then
3486    kde_htmldir="\$(prefix)/share/doc/HTML"
3487  fi
3488  if test -z "$kde_appsdir"; then
3489    kde_appsdir="\$(prefix)/share/applnk"
3490  fi
3491  if test -z "$kde_icondir"; then
3492    kde_icondir="\$(prefix)/share/icons"
3493  fi
3494  if test -z "$kde_sounddir"; then
3495    kde_sounddir="\$(prefix)/share/sounds"
3496  fi
3497  if test -z "$kde_datadir"; then
3498    kde_datadir="\$(prefix)/share/apps"
3499  fi
3500  if test -z "$kde_locale"; then
3501    kde_locale="\$(prefix)/share/locale"
3502  fi
3503  if test -z "$kde_cgidir"; then
3504    kde_cgidir="\$(exec_prefix)/cgi-bin"
3505  fi
3506  if test -z "$kde_confdir"; then
3507    kde_confdir="\$(prefix)/share/config"
3508  fi
3509  if test -z "$kde_mimedir"; then
3510    kde_mimedir="\$(prefix)/share/mimelnk"
3511  fi
3512  if test -z "$kde_toolbardir"; then
3513    kde_toolbardir="\$(prefix)/share/toolbar"
3514  fi
3515  if test -z "$kde_wallpaperdir"; then
3516    kde_wallpaperdir="\$(prefix)/share/wallpapers"
3517  fi
3518  if test -z "$kde_bindir"; then
3519    kde_bindir="\$(exec_prefix)/bin"
3520  fi
3521  if test -z "$kde_partsdir"; then
3522    kde_partsdir="\$(exec_prefix)/parts"
3523  fi
3524  echo "$ac_t""defaults" 1>&6
3525
3526else
3527
3528if eval "test \"`echo '$''{'kde_cv_all_paths'+set}'`\" = set"; then
3529  echo $ac_n "(cached) $ac_c" 1>&6
3530else
3531
3532echo $ac_n "checking for kde headers installed""... $ac_c" 1>&6
3533echo "configure:3534: checking for kde headers installed" >&5
3534ac_ext=C
3535# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3536ac_cpp='$CXXCPP $CPPFLAGS'
3537ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3538ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3539cross_compiling=$ac_cv_prog_cxx_cross
3540
3541cat > conftest.$ac_ext <<EOF
3542#include <stdio.h>
3543#include "confdefs.h"
3544#include "config.h.bot"
3545#include <kapp.h>
3546
3547int main() {
3548printf("kde_htmldir=\\"%s\\"\n", KApplication::kde_htmldir().data());
3549printf("kde_appsdir=\\"%s\\"\n", KApplication::kde_appsdir().data());
3550printf("kde_icondir=\\"%s\\"\n", KApplication::kde_icondir().data());
3551printf("kde_sounddir=\\"%s\\"\n", KApplication::kde_sounddir().data());
3552printf("kde_datadir=\\"%s\\"\n", KApplication::kde_datadir().data());
3553printf("kde_locale=\\"%s\\"\n", KApplication::kde_localedir().data());
3554printf("kde_cgidir=\\"%s\\"\n", KApplication::kde_cgidir().data());
3555printf("kde_confdir=\\"%s\\"\n", KApplication::kde_configdir().data());
3556printf("kde_mimedir=\\"%s\\"\n", KApplication::kde_mimedir().data());
3557printf("kde_toolbardir=\\"%s\\"\n", KApplication::kde_toolbardir().data());
3558printf("kde_wallpaperdir=\\"%s\\"\n", KApplication::kde_wallpaperdir().data());
3559printf("kde_bindir=\\"%s\\"\n", KApplication::kde_bindir().data());
3560printf("kde_partsdir=\\"%s\\"\n", KApplication::kde_partsdir().data());
3561return 0;
3562}
3563EOF
3564
3565if test -n "$kde_libraries"; then
3566  KDE_TEST_RPATH="-rpath $kde_libraries"
3567fi
3568
3569if test -n "$qt_libraries"; then
3570  KDE_TEST_RPATH="$KDE_TEST_RPATH -rpath $qt_libraries"
3571fi
3572
3573if test -n "$x_libraries"; then
3574  KDE_TEST_RPATH="$KDE_TEST_RPATH -rpath $x_libraries"
3575fi
3576
3577KDE_TEST_RPATH="$KDE_TEST_RPATH $KDE_EXTRA_RPATH"
3578
3579ac_compile='${CXX-g++} -c $CXXFLAGS $all_includes $CPPFLAGS conftest.$ac_ext'
3580if { (eval echo configure:3581: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3581  echo "$ac_t""yes" 1>&6
3582else
3583  { echo "configure: error: your system is not able to compile a small KDE application!
3584Check, if you installed the KDE header files correctly." 1>&2; exit 1; }
3585fi
3586
3587echo $ac_n "checking for kde libraries installed""... $ac_c" 1>&6
3588echo "configure:3589: checking for kde libraries installed" >&5
3589ac_link='/bin/sh ./libtool --mode=link ${CXX-g++} -o conftest $CXXFLAGS $all_includes $CPPFLAGS $LDFLAGS $all_libraries conftest.$ac_ext $LIBS -lkdecore -lqt -lXext -lX11 $LIBSOCKET $KDE_TEST_RPATH 1>&5'
3590
3591if { (eval echo configure:3592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3592  echo "$ac_t""yes" 1>&6
3593else
3594  { echo "configure: error: your system fails at linking a small KDE application!
3595Check, if your compiler is installed correctly and if you have used the
3596same compiler to compile Qt and kdelibs as you did use now" 1>&2; exit 1; }
3597fi
3598
3599echo $ac_n "checking for KDE paths""... $ac_c" 1>&6
3600echo "configure:3601: checking for KDE paths" >&5
3601if eval `./conftest 2>&5`; then
3602  echo "$ac_t""done" 1>&6
3603else
3604  echo "$ac_t""problems" 1>&6
3605fi
3606
3607./conftest 2> /dev/null >&5 # make an echo for config.log
3608kde_have_all_paths=yes
3609ac_ext=C
3610# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3611ac_cpp='$CXXCPP $CPPFLAGS'
3612ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3613ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3614cross_compiling=$ac_cv_prog_cxx_cross
3615
3616
3617if test "$kde_have_all_paths" = "yes"; then
3618kde_cv_all_paths="kde_have_all_paths=\"yes\" \
3619	kde_htmldir=\"$kde_htmldir\" \
3620	kde_appsdir=\"$kde_appsdir\" \
3621	kde_icondir=\"$kde_icondir\" \
3622	kde_sounddir=\"$kde_sounddir\" \
3623	kde_datadir=\"$kde_datadir\" \
3624	kde_locale=\"$kde_locale\" \
3625	kde_cgidir=\"$kde_cgidir\" \
3626	kde_confdir=\"$kde_confdir\" \
3627	kde_mimedir=\"$kde_mimedir\" \
3628	kde_toolbardir=\"$kde_toolbardir\" \
3629	kde_wallpaperdir=\"$kde_wallpaperdir\" \
3630	kde_bindir=\"$kde_bindir\" \
3631	kde_partsdir=\"$kde_partsdir\""
3632fi
3633rm -fr conftest*
3634
3635
3636fi
3637
3638
3639eval "$kde_cv_all_paths"
3640
3641if test -z "$kde_htmldir" || test -z "$kde_appsdir" ||
3642   test -z "$kde_icondir" || test -z "$kde_sounddir" ||
3643   test -z "$kde_datadir" || test -z "$kde_locale"  ||
3644   test -z "$kde_cgidir"  || test -z "$kde_confdir" ||
3645   test -z "$kde_mimedir" || test -z "$kde_toolbardir" ||
3646   test -z "$kde_wallpaperdir" || test -z "$kde_bindir" ||
3647   test -z "$kde_partsdir" || test "$kde_have_all_paths" != "yes"; then
3648  kde_have_all_paths=no
3649  { echo "configure: error: configure could not run a little KDE program to test the environment.
3650Since it had compiled and linked before, it must be a strange problem on your system.
3651Look at config.log for details. If you are not able to fix this, please contact Stephan Kulow <coolo@kde.org>." 1>&2; exit 1; }
3652fi
3653
3654if test -n "$install_root"; then
3655  kde_htmldir=`echo "$kde_htmldir" | sed -e "s#^/#\$\{install_root\}/#"`
3656
3657  kde_appsdir=`echo "$kde_appsdir" | sed -e "s#^/#\$\{install_root\}/#"`
3658
3659  kde_icondir=`echo "$kde_icondir" | sed -e "s#^/#\$\{install_root\}/#"`
3660
3661  kde_sounddir=`echo "$kde_sounddir" | sed -e "s#^/#\$\{install_root\}/#"`
3662
3663  kde_datadir=`echo "$kde_datadir" | sed -e "s#^/#\$\{install_root\}/#"`
3664
3665  kde_locale=`echo "$kde_locale" | sed -e "s#^/#\$\{install_root\}/#"`
3666
3667  kde_cgidir=`echo "$kde_cgidir" | sed -e "s#^/#\$\{install_root\}/#"`
3668
3669  kde_confdir=`echo "$kde_confdir" | sed -e "s#^/#\$\{install_root\}/#"`
3670
3671  kde_mimedir=`echo "$kde_mimedir" | sed -e "s#^/#\$\{install_root\}/#"`
3672
3673  kde_toolbardir=`echo "$kde_toolbardir" | sed -e "s#^/#\$\{install_root\}/#"`
3674
3675  kde_wallpaperdir=`echo "$kde_wallpaperdir" | sed -e "s#^/#\$\{install_root\}/#"`
3676
3677  kde_bindir=`echo "$kde_bindir" | sed -e "s#^/#\$\{install_root\}/#"`
3678
3679  kde_partsdir=`echo "$kde_partsdir" | sed -e "s#^/#\$\{install_root\}/#"`
3680
3681
3682fi
3683
3684fi
3685
3686bindir=$kde_bindir
3687
3688
3689
3690
3691
3692
3693
3694
3695kde_minidir="$kde_icondir/mini"
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710   LIB_X11='-lX11 $(LIBSOCKET)'
3711
3712   LIB_QT='-lqt $(LIB_X11)'
3713
3714   LIB_KDECORE='-lkdecore -lXext $(LIB_QT)'
3715
3716   LIB_KDEUI='-lkdeui $(LIB_KDECORE)'
3717
3718   LIB_KFM='-lkfm $(LIB_KDECORE)'
3719
3720   LIB_KFILE='-lkfile $(LIB_KFM) $(LIB_KDEUI)'
3721
3722
3723
3724
3725
3726
3727trap '' 1 2 15
3728cat > confcache <<\EOF
3729# This file is a shell script that caches the results of configure
3730# tests run on this system so they can be shared between configure
3731# scripts and configure runs.  It is not useful on other systems.
3732# If it contains results you don't want to keep, you may remove or edit it.
3733#
3734# By default, configure uses ./config.cache as the cache file,
3735# creating it if it does not exist already.  You can give configure
3736# the --cache-file=FILE option to use a different cache file; that is
3737# what configure does when it calls configure scripts in
3738# subdirectories, so they share the cache.
3739# Giving --cache-file=/dev/null disables caching, for debugging configure.
3740# config.status only pays attention to the cache file if you give it the
3741# --recheck option to rerun configure.
3742#
3743EOF
3744# The following way of writing the cache mishandles newlines in values,
3745# but we know of no workaround that is simple, portable, and efficient.
3746# So, don't put newlines in cache variables' values.
3747# Ultrix sh set writes to stderr and can't be redirected directly,
3748# and sets the high bit in the cache file unless we assign to the vars.
3749(set) 2>&1 |
3750  case `(ac_space=' '; set | grep ac_space) 2>&1` in
3751  *ac_space=\ *)
3752    # `set' does not quote correctly, so add quotes (double-quote substitution
3753    # turns \\\\ into \\, and sed turns \\ into \).
3754    sed -n \
3755      -e "s/'/'\\\\''/g" \
3756      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3757    ;;
3758  *)
3759    # `set' quotes correctly as required by POSIX, so do not add quotes.
3760    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3761    ;;
3762  esac >> confcache
3763if cmp -s $cache_file confcache; then
3764  :
3765else
3766  if test -w $cache_file; then
3767    echo "updating cache $cache_file"
3768    cat confcache > $cache_file
3769  else
3770    echo "not updating unwritable cache $cache_file"
3771  fi
3772fi
3773rm -f confcache
3774
3775trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3776
3777test "x$prefix" = xNONE && prefix=$ac_default_prefix
3778# Let make expand exec_prefix.
3779test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3780
3781# Any assignment to VPATH causes Sun make to only execute
3782# the first set of double-colon rules, so remove it if not needed.
3783# If there is a colon in the path, we need to keep it.
3784if test "x$srcdir" = x.; then
3785  ac_vpsub='/^[ 	]*VPATH[ 	]*=[^:]*$/d'
3786fi
3787
3788trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3789
3790DEFS=-DHAVE_CONFIG_H
3791
3792# Without the "./", some shells look in PATH for config.status.
3793: ${CONFIG_STATUS=./config.status}
3794
3795echo creating $CONFIG_STATUS
3796rm -f $CONFIG_STATUS
3797cat > $CONFIG_STATUS <<EOF
3798#! /bin/sh
3799# Generated automatically by configure.
3800# Run this file to recreate the current configuration.
3801# This directory was configured as follows,
3802# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3803#
3804# $0 $ac_configure_args
3805#
3806# Compiler output produced by configure, useful for debugging
3807# configure, is in ./config.log if it exists.
3808
3809ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3810for ac_option
3811do
3812  case "\$ac_option" in
3813  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3814    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3815    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3816  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3817    echo "$CONFIG_STATUS generated by autoconf version 2.13"
3818    exit 0 ;;
3819  -help | --help | --hel | --he | --h)
3820    echo "\$ac_cs_usage"; exit 0 ;;
3821  *) echo "\$ac_cs_usage"; exit 1 ;;
3822  esac
3823done
3824
3825ac_given_srcdir=$srcdir
3826ac_given_INSTALL="$INSTALL"
3827
3828trap 'rm -fr `echo "Makefile kfe/Makefile kfe/docs/Makefile kfe/docs/en/Makefile po/Makefile  config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3829EOF
3830cat >> $CONFIG_STATUS <<EOF
3831
3832# Protect against being on the right side of a sed subst in config.status.
3833sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3834 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3835$ac_vpsub
3836$extrasub
3837s%@SHELL@%$SHELL%g
3838s%@CFLAGS@%$CFLAGS%g
3839s%@CPPFLAGS@%$CPPFLAGS%g
3840s%@CXXFLAGS@%$CXXFLAGS%g
3841s%@FFLAGS@%$FFLAGS%g
3842s%@DEFS@%$DEFS%g
3843s%@LDFLAGS@%$LDFLAGS%g
3844s%@LIBS@%$LIBS%g
3845s%@exec_prefix@%$exec_prefix%g
3846s%@prefix@%$prefix%g
3847s%@program_transform_name@%$program_transform_name%g
3848s%@bindir@%$bindir%g
3849s%@sbindir@%$sbindir%g
3850s%@libexecdir@%$libexecdir%g
3851s%@datadir@%$datadir%g
3852s%@sysconfdir@%$sysconfdir%g
3853s%@sharedstatedir@%$sharedstatedir%g
3854s%@localstatedir@%$localstatedir%g
3855s%@libdir@%$libdir%g
3856s%@includedir@%$includedir%g
3857s%@oldincludedir@%$oldincludedir%g
3858s%@infodir@%$infodir%g
3859s%@mandir@%$mandir%g
3860s%@host@%$host%g
3861s%@host_alias@%$host_alias%g
3862s%@host_cpu@%$host_cpu%g
3863s%@host_vendor@%$host_vendor%g
3864s%@host_os@%$host_os%g
3865s%@target@%$target%g
3866s%@target_alias@%$target_alias%g
3867s%@target_cpu@%$target_cpu%g
3868s%@target_vendor@%$target_vendor%g
3869s%@target_os@%$target_os%g
3870s%@build@%$build%g
3871s%@build_alias@%$build_alias%g
3872s%@build_cpu@%$build_cpu%g
3873s%@build_vendor@%$build_vendor%g
3874s%@build_os@%$build_os%g
3875s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3876s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3877s%@INSTALL_DATA@%$INSTALL_DATA%g
3878s%@PACKAGE@%$PACKAGE%g
3879s%@VERSION@%$VERSION%g
3880s%@ACLOCAL@%$ACLOCAL%g
3881s%@AUTOCONF@%$AUTOCONF%g
3882s%@AUTOMAKE@%$AUTOMAKE%g
3883s%@AUTOHEADER@%$AUTOHEADER%g
3884s%@MAKEINFO@%$MAKEINFO%g
3885s%@SET_MAKE@%$SET_MAKE%g
3886s%@CC@%$CC%g
3887s%@CPP@%$CPP%g
3888s%@CXX@%$CXX%g
3889s%@RANLIB@%$RANLIB%g
3890s%@LD@%$LD%g
3891s%@NM@%$NM%g
3892s%@LN_S@%$LN_S%g
3893s%@LIBTOOL@%$LIBTOOL%g
3894s%@USE_NLS@%$USE_NLS%g
3895s%@MSGFMT@%$MSGFMT%g
3896s%@GMSGFMT@%$GMSGFMT%g
3897s%@XGETTEXT@%$XGETTEXT%g
3898s%@LIBCOMPAT@%$LIBCOMPAT%g
3899s%@LIBCRYPT@%$LIBCRYPT%g
3900s%@LIBSOCKET@%$LIBSOCKET%g
3901s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
3902s%@LIBUCB@%$LIBUCB%g
3903s%@CXXCPP@%$CXXCPP%g
3904s%@X_INCLUDES@%$X_INCLUDES%g
3905s%@X_LDFLAGS@%$X_LDFLAGS%g
3906s%@x_libraries@%$x_libraries%g
3907s%@x_includes@%$x_includes%g
3908s%@qt_libraries@%$qt_libraries%g
3909s%@qt_includes@%$qt_includes%g
3910s%@QT_INCLUDES@%$QT_INCLUDES%g
3911s%@QT_LDFLAGS@%$QT_LDFLAGS%g
3912s%@MOC@%$MOC%g
3913s%@kde_libraries@%$kde_libraries%g
3914s%@kde_includes@%$kde_includes%g
3915s%@KDE_LDFLAGS@%$KDE_LDFLAGS%g
3916s%@KDE_INCLUDES@%$KDE_INCLUDES%g
3917s%@all_includes@%$all_includes%g
3918s%@all_libraries@%$all_libraries%g
3919s%@KDE_EXTRA_RPATH@%$KDE_EXTRA_RPATH%g
3920s%@KDE_RPATH@%$KDE_RPATH%g
3921s%@install_root@%$install_root%g
3922s%@kde_htmldir@%$kde_htmldir%g
3923s%@kde_appsdir@%$kde_appsdir%g
3924s%@kde_icondir@%$kde_icondir%g
3925s%@kde_sounddir@%$kde_sounddir%g
3926s%@kde_minidir@%$kde_minidir%g
3927s%@kde_datadir@%$kde_datadir%g
3928s%@kde_locale@%$kde_locale%g
3929s%@kde_cgidir@%$kde_cgidir%g
3930s%@kde_confdir@%$kde_confdir%g
3931s%@kde_mimedir@%$kde_mimedir%g
3932s%@kde_toolbardir@%$kde_toolbardir%g
3933s%@kde_wallpaperdir@%$kde_wallpaperdir%g
3934s%@kde_bindir@%$kde_bindir%g
3935s%@kde_partsdir@%$kde_partsdir%g
3936s%@LIB_X11@%$LIB_X11%g
3937s%@LIB_QT@%$LIB_QT%g
3938s%@LIB_KDECORE@%$LIB_KDECORE%g
3939s%@LIB_KDEUI@%$LIB_KDEUI%g
3940s%@LIB_KFM@%$LIB_KFM%g
3941s%@LIB_KFILE@%$LIB_KFILE%g
3942
3943CEOF
3944EOF
3945
3946cat >> $CONFIG_STATUS <<\EOF
3947
3948# Split the substitutions into bite-sized pieces for seds with
3949# small command number limits, like on Digital OSF/1 and HP-UX.
3950ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3951ac_file=1 # Number of current file.
3952ac_beg=1 # First line for current file.
3953ac_end=$ac_max_sed_cmds # Line after last line for current file.
3954ac_more_lines=:
3955ac_sed_cmds=""
3956while $ac_more_lines; do
3957  if test $ac_beg -gt 1; then
3958    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3959  else
3960    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3961  fi
3962  if test ! -s conftest.s$ac_file; then
3963    ac_more_lines=false
3964    rm -f conftest.s$ac_file
3965  else
3966    if test -z "$ac_sed_cmds"; then
3967      ac_sed_cmds="sed -f conftest.s$ac_file"
3968    else
3969      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3970    fi
3971    ac_file=`expr $ac_file + 1`
3972    ac_beg=$ac_end
3973    ac_end=`expr $ac_end + $ac_max_sed_cmds`
3974  fi
3975done
3976if test -z "$ac_sed_cmds"; then
3977  ac_sed_cmds=cat
3978fi
3979EOF
3980
3981cat >> $CONFIG_STATUS <<EOF
3982
3983CONFIG_FILES=\${CONFIG_FILES-"Makefile kfe/Makefile kfe/docs/Makefile kfe/docs/en/Makefile po/Makefile "}
3984EOF
3985cat >> $CONFIG_STATUS <<\EOF
3986for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3987  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3988  case "$ac_file" in
3989  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3990       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3991  *) ac_file_in="${ac_file}.in" ;;
3992  esac
3993
3994  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3995
3996  # Remove last slash and all that follows it.  Not all systems have dirname.
3997  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3998  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3999    # The file is in a subdirectory.
4000    test ! -d "$ac_dir" && mkdir "$ac_dir"
4001    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4002    # A "../" for each directory in $ac_dir_suffix.
4003    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4004  else
4005    ac_dir_suffix= ac_dots=
4006  fi
4007
4008  case "$ac_given_srcdir" in
4009  .)  srcdir=.
4010      if test -z "$ac_dots"; then top_srcdir=.
4011      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4012  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4013  *) # Relative path.
4014    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4015    top_srcdir="$ac_dots$ac_given_srcdir" ;;
4016  esac
4017
4018  case "$ac_given_INSTALL" in
4019  [/$]*) INSTALL="$ac_given_INSTALL" ;;
4020  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4021  esac
4022
4023  echo creating "$ac_file"
4024  rm -f "$ac_file"
4025  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4026  case "$ac_file" in
4027  *Makefile*) ac_comsub="1i\\
4028# $configure_input" ;;
4029  *) ac_comsub= ;;
4030  esac
4031
4032  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4033  sed -e "$ac_comsub
4034s%@configure_input@%$configure_input%g
4035s%@srcdir@%$srcdir%g
4036s%@top_srcdir@%$top_srcdir%g
4037s%@INSTALL@%$INSTALL%g
4038" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4039fi; done
4040rm -f conftest.s*
4041
4042# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4043# NAME is the cpp macro being defined and VALUE is the value it is being given.
4044#
4045# ac_d sets the value in "#define NAME VALUE" lines.
4046ac_dA='s%^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)'
4047ac_dB='\([ 	][ 	]*\)[^ 	]*%\1#\2'
4048ac_dC='\3'
4049ac_dD='%g'
4050# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4051ac_uA='s%^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
4052ac_uB='\([ 	]\)%\1#\2define\3'
4053ac_uC=' '
4054ac_uD='\4%g'
4055# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4056ac_eA='s%^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
4057ac_eB='$%\1#\2define\3'
4058ac_eC=' '
4059ac_eD='%g'
4060
4061if test "${CONFIG_HEADERS+set}" != set; then
4062EOF
4063cat >> $CONFIG_STATUS <<EOF
4064  CONFIG_HEADERS="config.h"
4065EOF
4066cat >> $CONFIG_STATUS <<\EOF
4067fi
4068for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4069  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4070  case "$ac_file" in
4071  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4072       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4073  *) ac_file_in="${ac_file}.in" ;;
4074  esac
4075
4076  echo creating $ac_file
4077
4078  rm -f conftest.frag conftest.in conftest.out
4079  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4080  cat $ac_file_inputs > conftest.in
4081
4082EOF
4083
4084# Transform confdefs.h into a sed script conftest.vals that substitutes
4085# the proper values into config.h.in to produce config.h.  And first:
4086# Protect against being on the right side of a sed subst in config.status.
4087# Protect against being in an unquoted here document in config.status.
4088rm -f conftest.vals
4089cat > conftest.hdr <<\EOF
4090s/[\\&%]/\\&/g
4091s%[\\$`]%\\&%g
4092s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4093s%ac_d%ac_u%gp
4094s%ac_u%ac_e%gp
4095EOF
4096sed -n -f conftest.hdr confdefs.h > conftest.vals
4097rm -f conftest.hdr
4098
4099# This sed command replaces #undef with comments.  This is necessary, for
4100# example, in the case of _POSIX_SOURCE, which is predefined and required
4101# on some systems where configure will not decide to define it.
4102cat >> conftest.vals <<\EOF
4103s%^[ 	]*#[ 	]*undef[ 	][ 	]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4104EOF
4105
4106# Break up conftest.vals because some shells have a limit on
4107# the size of here documents, and old seds have small limits too.
4108
4109rm -f conftest.tail
4110while :
4111do
4112  ac_lines=`grep -c . conftest.vals`
4113  # grep -c gives empty output for an empty file on some AIX systems.
4114  if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4115  # Write a limited-size here document to conftest.frag.
4116  echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4117  sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4118  echo 'CEOF
4119  sed -f conftest.frag conftest.in > conftest.out
4120  rm -f conftest.in
4121  mv conftest.out conftest.in
4122' >> $CONFIG_STATUS
4123  sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4124  rm -f conftest.vals
4125  mv conftest.tail conftest.vals
4126done
4127rm -f conftest.vals
4128
4129cat >> $CONFIG_STATUS <<\EOF
4130  rm -f conftest.frag conftest.h
4131  echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
4132  cat conftest.in >> conftest.h
4133  rm -f conftest.in
4134  if cmp -s $ac_file conftest.h 2>/dev/null; then
4135    echo "$ac_file is unchanged"
4136    rm -f conftest.h
4137  else
4138    # Remove last slash and all that follows it.  Not all systems have dirname.
4139      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4140      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4141      # The file is in a subdirectory.
4142      test ! -d "$ac_dir" && mkdir "$ac_dir"
4143    fi
4144    rm -f $ac_file
4145    mv conftest.h $ac_file
4146  fi
4147fi; done
4148
4149EOF
4150cat >> $CONFIG_STATUS <<EOF
4151
4152
4153EOF
4154cat >> $CONFIG_STATUS <<\EOF
4155test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
4156
4157exit 0
4158EOF
4159chmod +x $CONFIG_STATUS
4160rm -fr confdefs* $ac_clean_files
4161test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
4162
4163