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.
7
# This configure script is free software; the Free Software Foundation
8
# gives unlimited permission to copy, distribute and modify it.
12
ac_default_prefix=/usr/local
13
# Any additions from configure.in:
14
ac_default_prefix=/usr/local
16
--enable-debug enables debug symbols [default=no]"
18
--disable-debug disables debug output and debug symbols [default=no]"
20
--enable-strict compiles with strict compiler options (may not work!)"
22
--enable-profile creates profiling infos [default=no]"
24
--enable-final build size optimized apps (experimental - needs lots of memory)"
26
--disable-closure don't delay template instantiation"
28
--enable-shared[=PKGS] build shared libraries [default=yes]"
30
--enable-static[=PKGS] build static libraries [default=no]"
32
--enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
34
--with-gnu-ld assume the C compiler uses GNU ld [default=no]"
36
--disable-libtool-lock avoid locking (might break parallel builds)"
38
--with-pic try to use only PIC/non-PIC objects [default=use both]"
40
--with-extra-includes=DIR
41
adds non standard include paths"
43
--with-extra-libs=DIR adds non standard library paths"
45
--enable-mt link to threaded Qt (experimental)"
47
--with-qt-dir=DIR where the root of Qt is installed "
49
--with-qt-includes=DIR where the Qt includes are. "
51
--with-qt-libraries=DIR where the Qt library is installed."
53
# Initialize some variables set by options.
54
# The variables have the same names as the options, with
55
# dashes changed to underlines.
57
cache_file=./config.cache
66
program_transform_name=s,x,x,
74
bindir='${exec_prefix}/bin'
75
sbindir='${exec_prefix}/sbin'
76
libexecdir='${exec_prefix}/libexec'
77
datadir='${prefix}/share'
78
sysconfdir='${prefix}/etc'
79
sharedstatedir='${prefix}/com'
80
localstatedir='${prefix}/var'
81
libdir='${exec_prefix}/lib'
82
includedir='${prefix}/include'
83
oldincludedir='/usr/include'
84
infodir='${prefix}/info'
85
mandir='${prefix}/man'
87
# Initialize some other variables.
90
SHELL=${CONFIG_SHELL-/bin/sh}
91
# Maximum number of lines to put in a shell here document.
98
# If the previous option needs an argument, assign it.
99
if test -n "$ac_prev"; then
100
eval "$ac_prev=\$ac_option"
106
-*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
110
# Accept the important Cygnus configure options, so we can diagnose typos.
114
-bindir | --bindir | --bindi | --bind | --bin | --bi)
116
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
117
bindir="$ac_optarg" ;;
119
-build | --build | --buil | --bui | --bu)
121
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
122
build="$ac_optarg" ;;
124
-cache-file | --cache-file | --cache-fil | --cache-fi \
125
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
126
ac_prev=cache_file ;;
127
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
128
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
129
cache_file="$ac_optarg" ;;
131
-datadir | --datadir | --datadi | --datad | --data | --dat | --da)
133
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
135
datadir="$ac_optarg" ;;
137
-disable-* | --disable-*)
138
ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
139
# Reject names that are not valid shell variable names.
140
if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
141
{ echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
143
ac_feature=`echo $ac_feature| sed 's/-/_/g'`
144
eval "enable_${ac_feature}=no" ;;
146
-enable-* | --enable-*)
147
ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
148
# Reject names that are not valid shell variable names.
149
if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
150
{ echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
152
ac_feature=`echo $ac_feature| sed 's/-/_/g'`
157
eval "enable_${ac_feature}='$ac_optarg'" ;;
159
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
160
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
161
| --exec | --exe | --ex)
162
ac_prev=exec_prefix ;;
163
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
164
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
165
| --exec=* | --exe=* | --ex=*)
166
exec_prefix="$ac_optarg" ;;
168
-gas | --gas | --ga | --g)
169
# Obsolete; use --with-gas.
172
-help | --help | --hel | --he)
173
# Omit some internal or obsolete options to make the list less imposing.
174
# This message is too long to be a string in the A/UX 3.1 sh.
176
Usage: configure [options] [host]
177
Options: [defaults in brackets after descriptions]
179
--cache-file=FILE cache test results in FILE
180
--help print this message
181
--no-create do not create output files
182
--quiet, --silent do not print \`checking...' messages
183
--version print the version of autoconf that created configure
184
Directory and file names:
185
--prefix=PREFIX install architecture-independent files in PREFIX
187
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
189
--bindir=DIR user executables in DIR [EPREFIX/bin]
190
--sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
191
--libexecdir=DIR program executables in DIR [EPREFIX/libexec]
192
--datadir=DIR read-only architecture-independent data in DIR
194
--sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
195
--sharedstatedir=DIR modifiable architecture-independent data in DIR
197
--localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
198
--libdir=DIR object code libraries in DIR [EPREFIX/lib]
199
--includedir=DIR C header files in DIR [PREFIX/include]
200
--oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
201
--infodir=DIR info documentation in DIR [PREFIX/info]
202
--mandir=DIR man documentation in DIR [PREFIX/man]
203
--srcdir=DIR find the sources in DIR [configure dir or ..]
204
--program-prefix=PREFIX prepend PREFIX to installed program names
205
--program-suffix=SUFFIX append SUFFIX to installed program names
206
--program-transform-name=PROGRAM
207
run sed PROGRAM on installed program names
211
--build=BUILD configure for building on BUILD [BUILD=HOST]
212
--host=HOST configure for HOST [guessed]
213
--target=TARGET configure for TARGET [TARGET=HOST]
214
Features and packages:
215
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
216
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
217
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
218
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
219
--x-includes=DIR X include files are in DIR
220
--x-libraries=DIR X library files are in DIR
222
if test -n "$ac_help"; then
223
echo "--enable and --with options recognized:$ac_help"
227
-host | --host | --hos | --ho)
229
-host=* | --host=* | --hos=* | --ho=*)
232
-includedir | --includedir | --includedi | --included | --include \
233
| --includ | --inclu | --incl | --inc)
234
ac_prev=includedir ;;
235
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
236
| --includ=* | --inclu=* | --incl=* | --inc=*)
237
includedir="$ac_optarg" ;;
239
-infodir | --infodir | --infodi | --infod | --info | --inf)
241
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
242
infodir="$ac_optarg" ;;
244
-libdir | --libdir | --libdi | --libd)
246
-libdir=* | --libdir=* | --libdi=* | --libd=*)
247
libdir="$ac_optarg" ;;
249
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
250
| --libexe | --libex | --libe)
251
ac_prev=libexecdir ;;
252
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
253
| --libexe=* | --libex=* | --libe=*)
254
libexecdir="$ac_optarg" ;;
256
-localstatedir | --localstatedir | --localstatedi | --localstated \
257
| --localstate | --localstat | --localsta | --localst \
258
| --locals | --local | --loca | --loc | --lo)
259
ac_prev=localstatedir ;;
260
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
261
| --localstate=* | --localstat=* | --localsta=* | --localst=* \
262
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
263
localstatedir="$ac_optarg" ;;
265
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
267
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
268
mandir="$ac_optarg" ;;
271
# Obsolete; use --without-fp.
274
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
278
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
279
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
282
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
283
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
284
| --oldin | --oldi | --old | --ol | --o)
285
ac_prev=oldincludedir ;;
286
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
287
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
288
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
289
oldincludedir="$ac_optarg" ;;
291
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
293
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
294
prefix="$ac_optarg" ;;
296
-program-prefix | --program-prefix | --program-prefi | --program-pref \
297
| --program-pre | --program-pr | --program-p)
298
ac_prev=program_prefix ;;
299
-program-prefix=* | --program-prefix=* | --program-prefi=* \
300
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
301
program_prefix="$ac_optarg" ;;
303
-program-suffix | --program-suffix | --program-suffi | --program-suff \
304
| --program-suf | --program-su | --program-s)
305
ac_prev=program_suffix ;;
306
-program-suffix=* | --program-suffix=* | --program-suffi=* \
307
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
308
program_suffix="$ac_optarg" ;;
310
-program-transform-name | --program-transform-name \
311
| --program-transform-nam | --program-transform-na \
312
| --program-transform-n | --program-transform- \
313
| --program-transform | --program-transfor \
314
| --program-transfo | --program-transf \
315
| --program-trans | --program-tran \
316
| --progr-tra | --program-tr | --program-t)
317
ac_prev=program_transform_name ;;
318
-program-transform-name=* | --program-transform-name=* \
319
| --program-transform-nam=* | --program-transform-na=* \
320
| --program-transform-n=* | --program-transform-=* \
321
| --program-transform=* | --program-transfor=* \
322
| --program-transfo=* | --program-transf=* \
323
| --program-trans=* | --program-tran=* \
324
| --progr-tra=* | --program-tr=* | --program-t=*)
325
program_transform_name="$ac_optarg" ;;
327
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
328
| -silent | --silent | --silen | --sile | --sil)
331
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
333
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
335
sbindir="$ac_optarg" ;;
337
-sharedstatedir | --sharedstatedir | --sharedstatedi \
338
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
339
| --sharedst | --shareds | --shared | --share | --shar \
341
ac_prev=sharedstatedir ;;
342
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
343
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
344
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
346
sharedstatedir="$ac_optarg" ;;
348
-site | --site | --sit)
350
-site=* | --site=* | --sit=*)
353
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
355
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
356
srcdir="$ac_optarg" ;;
358
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
359
| --syscon | --sysco | --sysc | --sys | --sy)
360
ac_prev=sysconfdir ;;
361
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
362
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
363
sysconfdir="$ac_optarg" ;;
365
-target | --target | --targe | --targ | --tar | --ta | --t)
367
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
368
target="$ac_optarg" ;;
370
-v | -verbose | --verbose | --verbos | --verbo | --verb)
373
-version | --version | --versio | --versi | --vers)
374
echo "configure generated by autoconf version 2.13"
378
ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
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; }
383
ac_package=`echo $ac_package| sed 's/-/_/g'`
388
eval "with_${ac_package}='$ac_optarg'" ;;
390
-without-* | --without-*)
391
ac_package=`echo $ac_option|sed -e 's/-*without-//'`
392
# Reject names that are not valid shell variable names.
393
if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
394
{ echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
396
ac_package=`echo $ac_package| sed 's/-/_/g'`
397
eval "with_${ac_package}=no" ;;
400
# Obsolete; use --with-x.
403
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
404
| --x-incl | --x-inc | --x-in | --x-i)
405
ac_prev=x_includes ;;
406
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
407
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
408
x_includes="$ac_optarg" ;;
410
-x-libraries | --x-libraries | --x-librarie | --x-librari \
411
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
412
ac_prev=x_libraries ;;
413
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
414
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
415
x_libraries="$ac_optarg" ;;
417
-*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
421
if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
422
echo "configure: warning: $ac_option: invalid host type" 1>&2
424
if test "x$nonopt" != xNONE; then
425
{ echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
433
if test -n "$ac_prev"; then
434
{ echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
437
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
439
# File descriptor usage:
442
# 2 errors and warnings
443
# 3 some systems may open it to /dev/tty
444
# 4 used on the Kubota Titan
445
# 6 checking for... messages and results
446
# 5 compiler messages saved in config.log
447
if test "$silent" = yes; then
455
This file contains any messages produced by compilers while
456
running configure, to aid debugging if configure makes a mistake.
459
# Strip out --no-create and --no-recursion so they do not pile up.
460
# Also quote any args containing shell metacharacters.
465
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
466
| --no-cr | --no-c) ;;
467
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
468
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
469
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
470
ac_configure_args="$ac_configure_args '$ac_arg'" ;;
471
*) ac_configure_args="$ac_configure_args $ac_arg" ;;
476
# Only set these to C if already set. These must not be set unconditionally
477
# because not all systems understand e.g. LANG=C (notably SCO).
478
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
479
# Non-C LC_CTYPE values break the ctype check.
480
if test "${LANG+set}" = set; then LANG=C; export LANG; fi
481
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
482
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
483
if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
485
# confdefs.h avoids OS command line length limits that DEFS can exceed.
486
rm -rf conftest* confdefs.h
487
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
490
# A filename unique to this package, relative to the directory that
491
# configure is in, which we can look for to find out if srcdir is correct.
492
ac_unique_file=acinclude.m4
494
# Find the source files, if location was not specified.
495
if test -z "$srcdir"; then
496
ac_srcdir_defaulted=yes
497
# Try the directory containing this script, then its parent.
499
ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
500
test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
502
if test ! -r $srcdir/$ac_unique_file; then
506
ac_srcdir_defaulted=no
508
if test ! -r $srcdir/$ac_unique_file; then
509
if test "$ac_srcdir_defaulted" = yes; then
510
{ echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
512
{ echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
515
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
517
# Prefer explicitly selected file to automatically selected ones.
518
if test -z "$CONFIG_SITE"; then
519
if test "x$prefix" != xNONE; then
520
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
522
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
525
for ac_site_file in $CONFIG_SITE; do
526
if test -r "$ac_site_file"; then
527
echo "loading site script $ac_site_file"
532
if test -r "$cache_file"; then
533
echo "loading cache $cache_file"
536
echo "creating cache $cache_file"
541
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
542
ac_cpp='$CPP $CPPFLAGS'
543
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
544
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
545
cross_compiling=$ac_cv_prog_cc_cross
549
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
550
# Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
551
if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
558
ac_n= ac_c='\c' ac_t=
563
for ac_dir in admin $srcdir/admin; do
564
if test -f $ac_dir/install-sh; then
566
ac_install_sh="$ac_aux_dir/install-sh -c"
568
elif test -f $ac_dir/install.sh; then
570
ac_install_sh="$ac_aux_dir/install.sh -c"
574
if test -z "$ac_aux_dir"; then
575
{ echo "configure: error: can not find install-sh or install.sh in admin $srcdir/admin" 1>&2; exit 1; }
577
ac_config_guess=$ac_aux_dir/config.guess
578
ac_config_sub=$ac_aux_dir/config.sub
579
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
583
# Do some error checking and defaulting for the host and target type.
585
# configure --host=HOST --target=TARGET --build=BUILD NONOPT
588
# 1. You are not allowed to specify --host, --target, and nonopt at the
590
# 2. Host defaults to nonopt.
591
# 3. If nonopt is not specified, then host defaults to the current host,
592
# as determined by config.guess.
593
# 4. Target and build default to nonopt.
594
# 5. If nonopt is not specified, then target and build default to host.
596
# The aliases save the names the user supplied, while $host etc.
597
# will get canonicalized.
598
case $host---$target---$nonopt in
599
NONE---*---* | *---NONE---* | *---*---NONE) ;;
600
*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
604
# Make sure we can run config.sub.
605
if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
606
else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
609
echo $ac_n "checking host system type""... $ac_c" 1>&6
610
echo "configure:611: checking host system type" >&5
613
case "$host_alias" in
617
if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
618
else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
620
*) host_alias=$nonopt ;;
624
host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
625
host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
626
host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
627
host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
628
echo "$ac_t""$host" 1>&6
630
echo $ac_n "checking target system type""... $ac_c" 1>&6
631
echo "configure:632: checking target system type" >&5
634
case "$target_alias" in
637
NONE) target_alias=$host_alias ;;
638
*) target_alias=$nonopt ;;
642
target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
643
target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
644
target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
645
target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
646
echo "$ac_t""$target" 1>&6
648
echo $ac_n "checking build system type""... $ac_c" 1>&6
649
echo "configure:650: checking build system type" >&5
652
case "$build_alias" in
655
NONE) build_alias=$host_alias ;;
656
*) build_alias=$nonopt ;;
660
build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
661
build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
662
build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
663
build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
664
echo "$ac_t""$build" 1>&6
666
test "$host_alias" != "$target_alias" &&
667
test "$program_prefix$program_suffix$program_transform_name" = \
669
program_prefix=${target_alias}-
671
if test "$program_transform_name" = s,x,x,; then
672
program_transform_name=
674
# Double any \ or $. echo might interpret backslashes.
675
cat <<\EOF_SED > conftestsed
676
s,\\,\\\\,g; s,\$,$$,g
678
program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
681
test "$program_prefix" != NONE &&
682
program_transform_name="s,^,${program_prefix},; $program_transform_name"
683
# Use a double $ so make ignores it.
684
test "$program_suffix" != NONE &&
685
program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
687
# sed with no file args requires a program.
688
test "$program_transform_name" = "" && program_transform_name="s,x,x,"
693
test -n "$INSTALL" && kde_save_INSTALL_given=$INSTALL
694
test -n "$INSTALL_PROGRAM" && kde_save_INSTALL_PROGRAM_given=$INSTALL_PROGRAM
695
test -n "$INSTALL_SCRIPT" && kde_save_INSTALL_SCRIPT_given=$INSTALL_SCRIPT
696
# Find a good install program. We prefer a C program (faster),
697
# so one script is as good as another. But avoid the broken or
698
# incompatible versions:
699
# SysV /etc/install, /usr/sbin/install
700
# SunOS /usr/etc/install
703
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
704
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
705
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
706
# ./install, which can be erroneously created by make from ./install.sh.
707
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
708
echo "configure:709: checking for a BSD compatible install" >&5
709
if test -z "$INSTALL"; then
710
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
711
echo $ac_n "(cached) $ac_c" 1>&6
713
IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
714
for ac_dir in $PATH; do
715
# Account for people who put trailing slashes in PATH elements.
717
/|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
719
# OSF1 and SCO ODT 3.0 have their own names for install.
720
# Don't use installbsd from OSF since it installs stuff as root
722
for ac_prog in ginstall scoinst install; do
723
if test -f $ac_dir/$ac_prog; then
724
if test $ac_prog = install &&
725
grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
726
# AIX install. It has an incompatible calling convention.
729
ac_cv_path_install="$ac_dir/$ac_prog -c"
740
if test "${ac_cv_path_install+set}" = set; then
741
INSTALL="$ac_cv_path_install"
743
# As a last resort, use the slow shell script. We don't cache a
744
# path for INSTALL within a source directory, because that will
745
# break other packages using the cache if that directory is
746
# removed, or if the path is relative.
747
INSTALL="$ac_install_sh"
750
echo "$ac_t""$INSTALL" 1>&6
752
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
753
# It thinks the first close brace ends the variable substitution.
754
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
756
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
758
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
761
if test -z "$kde_save_INSTALL_given" ; then
762
# OK, user hasn't given any INSTALL, autoconf found one for us
763
# now we test, if it supports the -p flag
764
echo $ac_n "checking for -p flag to install""... $ac_c" 1>&6
765
echo "configure:766: checking for -p flag to install" >&5
766
rm -f confinst.$$.* > /dev/null 2>&1
767
echo "Testtest" > confinst.$$.orig
769
if ${INSTALL} -p confinst.$$.orig confinst.$$.new > /dev/null 2>&1 ; then
770
if test -f confinst.$$.new ; then
771
# OK, -p seems to do no harm to install
772
INSTALL="${INSTALL} -p"
777
echo "$ac_t""$ac_res" 1>&6
780
if test -z "$kde_save_INSTALL_PROGRAM_given" ; then
781
INSTALL_PROGRAM='${INSTALL} $(INSTALL_STRIP_FLAG)'
783
if test -z "$kde_save_INSTALL_SCRIPT_given" ; then
784
INSTALL_SCRIPT='${INSTALL}'
787
echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
788
echo "configure:789: checking whether build environment is sane" >&5
791
echo timestamp > conftestfile
792
# Do `set' in a subshell so we don't clobber the current shell's
793
# arguments. Must try -L first in case configure is actually a
794
# symlink; some systems play weird games with the mod time of symlinks
795
# (eg FreeBSD returns the mod time of the symlink's containing
798
set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
799
if test "$*" = "X"; then
801
set X `ls -t $srcdir/configure conftestfile`
803
if test "$*" != "X $srcdir/configure conftestfile" \
804
&& test "$*" != "X conftestfile $srcdir/configure"; then
806
# If neither matched, then we have a broken ls. This can happen
807
# if, for instance, CONFIG_SHELL is bash and it inherits a
808
# broken ls alias from the environment. This has actually
809
# happened. Such a system could not be considered "sane".
810
{ echo "configure: error: ls -t appears to fail. Make sure there is not a broken
811
alias in your environment" 1>&2; exit 1; }
814
test "$2" = conftestfile
820
{ echo "configure: error: newly created file is older than distributed files!
821
Check your system clock" 1>&2; exit 1; }
824
echo "$ac_t""yes" 1>&6
825
echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
826
echo "configure:827: checking whether ${MAKE-make} sets \${MAKE}" >&5
827
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
828
if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
829
echo $ac_n "(cached) $ac_c" 1>&6
831
cat > conftestmake <<\EOF
833
@echo 'ac_maketemp="${MAKE}"'
835
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
836
eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
837
if test -n "$ac_maketemp"; then
838
eval ac_cv_prog_make_${ac_make}_set=yes
840
eval ac_cv_prog_make_${ac_make}_set=no
844
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
845
echo "$ac_t""yes" 1>&6
848
echo "$ac_t""no" 1>&6
849
SET_MAKE="MAKE=${MAKE-make}"
857
if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
858
{ echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
860
cat >> confdefs.h <<EOF
861
#define PACKAGE "$PACKAGE"
864
cat >> confdefs.h <<EOF
865
#define VERSION "$VERSION"
870
missing_dir=`cd $ac_aux_dir && pwd`
871
echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
872
echo "configure:873: checking for working aclocal" >&5
873
# Run test in a subshell; some versions of sh will print an error if
874
# an executable is not found, even if stderr is redirected.
875
# Redirect stdin to placate older versions of autoconf. Sigh.
876
if (aclocal --version) < /dev/null > /dev/null 2>&1; then
878
echo "$ac_t""found" 1>&6
880
ACLOCAL="$missing_dir/missing aclocal"
881
echo "$ac_t""missing" 1>&6
884
echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
885
echo "configure:886: checking for working autoconf" >&5
886
# Run test in a subshell; some versions of sh will print an error if
887
# an executable is not found, even if stderr is redirected.
888
# Redirect stdin to placate older versions of autoconf. Sigh.
889
if (autoconf --version) < /dev/null > /dev/null 2>&1; then
891
echo "$ac_t""found" 1>&6
893
AUTOCONF="$missing_dir/missing autoconf"
894
echo "$ac_t""missing" 1>&6
897
echo $ac_n "checking for working automake""... $ac_c" 1>&6
898
echo "configure:899: checking for working automake" >&5
899
# Run test in a subshell; some versions of sh will print an error if
900
# an executable is not found, even if stderr is redirected.
901
# Redirect stdin to placate older versions of autoconf. Sigh.
902
if (automake --version) < /dev/null > /dev/null 2>&1; then
904
echo "$ac_t""found" 1>&6
906
AUTOMAKE="$missing_dir/missing automake"
907
echo "$ac_t""missing" 1>&6
910
echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
911
echo "configure:912: checking for working autoheader" >&5
912
# Run test in a subshell; some versions of sh will print an error if
913
# an executable is not found, even if stderr is redirected.
914
# Redirect stdin to placate older versions of autoconf. Sigh.
915
if (autoheader --version) < /dev/null > /dev/null 2>&1; then
916
AUTOHEADER=autoheader
917
echo "$ac_t""found" 1>&6
919
AUTOHEADER="$missing_dir/missing autoheader"
920
echo "$ac_t""missing" 1>&6
923
echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
924
echo "configure:925: checking for working makeinfo" >&5
925
# Run test in a subshell; some versions of sh will print an error if
926
# an executable is not found, even if stderr is redirected.
927
# Redirect stdin to placate older versions of autoconf. Sigh.
928
if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
930
echo "$ac_t""found" 1>&6
932
MAKEINFO="$missing_dir/missing makeinfo"
933
echo "$ac_t""missing" 1>&6
940
if test "x$prefix" = "xNONE"; then
941
prefix=$ac_default_prefix
942
ac_configure_args="$ac_configure_args --prefix $prefix"
954
# Check whether --enable-debug or --disable-debug was given.
955
if test "${enable_debug+set}" = set; then
956
enableval="$enable_debug"
958
if test $enableval = "no"; then
959
kde_use_debug_code="no"
960
kde_use_debug_define=yes
962
kde_use_debug_code="yes"
963
kde_use_debug_define=no
967
kde_use_debug_code="no"
968
kde_use_debug_define=no
972
# Check whether --enable-dummyoption or --disable-dummyoption was given.
973
if test "${enable_dummyoption+set}" = set; then
974
enableval="$enable_dummyoption"
979
# Check whether --enable-strict or --disable-strict was given.
980
if test "${enable_strict+set}" = set; then
981
enableval="$enable_strict"
983
if test $enableval = "no"; then
984
kde_use_strict_options="no"
986
kde_use_strict_options="yes"
990
kde_use_strict_options="no"
994
# Check whether --enable-profile or --disable-profile was given.
995
if test "${enable_profile+set}" = set; then
996
enableval="$enable_profile"
997
kde_use_profiling=$enableval
999
kde_use_profiling="no"
1004
echo $ac_n "checking for a C-Compiler""... $ac_c" 1>&6
1005
echo "configure:1006: checking for a C-Compiler" >&5
1006
echo "$ac_t""$CC" 1>&6
1008
if test -z "$CC"; then # Extract the first word of "gcc", so it can be a program name with args.
1009
set dummy gcc; ac_word=$2
1010
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1011
echo "configure:1012: checking for $ac_word" >&5
1012
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1013
echo $ac_n "(cached) $ac_c" 1>&6
1015
if test -n "$CC"; then
1016
ac_cv_prog_CC="$CC" # Let the user override the test.
1018
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1020
for ac_dir in $ac_dummy; do
1021
test -z "$ac_dir" && ac_dir=.
1022
if test -f $ac_dir/$ac_word; then
1031
if test -n "$CC"; then
1032
echo "$ac_t""$CC" 1>&6
1034
echo "$ac_t""no" 1>&6
1037
if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args.
1038
set dummy cc; ac_word=$2
1039
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1040
echo "configure:1041: checking for $ac_word" >&5
1041
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1042
echo $ac_n "(cached) $ac_c" 1>&6
1044
if test -n "$CC"; then
1045
ac_cv_prog_CC="$CC" # Let the user override the test.
1047
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1050
for ac_dir in $ac_dummy; do
1051
test -z "$ac_dir" && ac_dir=.
1052
if test -f $ac_dir/$ac_word; then
1053
if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1054
ac_prog_rejected=yes
1062
if test $ac_prog_rejected = yes; then
1063
# We found a bogon in the path, so make sure we never use it.
1064
set dummy $ac_cv_prog_CC
1066
if test $# -gt 0; then
1067
# We chose a different compiler from the bogus one.
1068
# However, it has the same basename, so the bogon will be chosen
1069
# first if we set CC to just the basename; use the full file name.
1071
set dummy "$ac_dir/$ac_word" "$@"
1079
if test -n "$CC"; then
1080
echo "$ac_t""$CC" 1>&6
1082
echo "$ac_t""no" 1>&6
1085
if test -z "$CC"; then # Extract the first word of "xlc", so it can be a program name with args.
1086
set dummy xlc; ac_word=$2
1087
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1088
echo "configure:1089: checking for $ac_word" >&5
1089
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1090
echo $ac_n "(cached) $ac_c" 1>&6
1092
if test -n "$CC"; then
1093
ac_cv_prog_CC="$CC" # Let the user override the test.
1095
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1097
for ac_dir in $ac_dummy; do
1098
test -z "$ac_dir" && ac_dir=.
1099
if test -f $ac_dir/$ac_word; then
1108
if test -n "$CC"; then
1109
echo "$ac_t""$CC" 1>&6
1111
echo "$ac_t""no" 1>&6
1114
test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1116
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1117
echo "configure:1118: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1120
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1121
ac_cpp='$CPP $CPPFLAGS'
1122
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1123
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1124
cross_compiling=$ac_cv_prog_cc_cross
1126
cat > conftest.$ac_ext << EOF
1128
#line 1129 "configure"
1129
#include "confdefs.h"
1133
if { (eval echo configure:1134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1134
ac_cv_prog_cc_works=yes
1135
# If we can't run a trivial program, we are probably using a cross compiler.
1136
if (./conftest; exit) 2>/dev/null; then
1137
ac_cv_prog_cc_cross=no
1139
ac_cv_prog_cc_cross=yes
1142
echo "configure: failed program was:" >&5
1143
cat conftest.$ac_ext >&5
1144
ac_cv_prog_cc_works=no
1148
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1149
ac_cpp='$CPP $CPPFLAGS'
1150
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1151
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1152
cross_compiling=$ac_cv_prog_cc_cross
1154
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1155
if test $ac_cv_prog_cc_works = no; then
1156
{ echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1158
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1159
echo "configure:1160: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1160
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1161
cross_compiling=$ac_cv_prog_cc_cross
1163
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1164
echo "configure:1165: checking whether we are using GNU C" >&5
1165
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1166
echo $ac_n "(cached) $ac_c" 1>&6
1168
cat > conftest.c <<EOF
1173
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1174: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1180
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1182
if test $ac_cv_prog_gcc = yes; then
1191
if test -z "$CFLAGS"; then
1192
if test "$kde_use_debug_code" = "yes"; then
1193
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1194
echo "configure:1195: checking whether ${CC-cc} accepts -g" >&5
1195
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1196
echo $ac_n "(cached) $ac_c" 1>&6
1198
echo 'void f(){}' > conftest.c
1199
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1208
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1209
if test $ac_cv_prog_cc_g = yes; then
1213
CFLAGS="$CFLAGS -ansi -W -Wall -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE -D_BSD_SOURCE"
1218
if test "$GCC" = "yes"; then
1223
if test "$kde_use_debug_define" = "yes"; then
1224
CFLAGS="$CFLAGS -DNDEBUG"
1228
if test "$kde_use_profiling" = yes; then
1229
echo $ac_n "checking whether ${CC-cc} accepts -pg""... $ac_c" 1>&6
1230
echo "configure:1231: checking whether ${CC-cc} accepts -pg" >&5
1231
if eval "test \"`echo '$''{'kde_cv_prog_cc_pg'+set}'`\" = set"; then
1232
echo $ac_n "(cached) $ac_c" 1>&6
1234
echo 'void f(){}' > conftest.c
1235
if test -z "`${CC-cc} -pg -c conftest.c 2>&1`"; then
1236
kde_cv_prog_cc_pg=yes
1238
kde_cv_prog_cc_pg=no
1244
echo "$ac_t""$kde_cv_prog_cc_pg" 1>&6
1245
if test "$kde_cv_prog_cc_pg" = yes; then
1246
CFLAGS="$CFLAGS -pg"
1250
if test "$GCC" = "yes"; then
1253
if test "$kde_use_strict_options" = "yes"; then
1254
CFLAGS="$CFLAGS -W -Wall -ansi -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings"
1261
*-*-sysv4.2uw*) CFLAGS="$CFLAGS -D_UNIXWARE";;
1262
*-*-sysv5uw7*) CFLAGS="$CFLAGS -D_UNIXWARE7";;
1265
if test -n "$USER_CFLAGS"; then
1266
CFLAGS="$CFLAGS $USER_CFLAGS"
1269
if test -z "$LDFLAGS" && test "$kde_use_debug_code" = "no" && test "$GCC" = "yes"; then
1275
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1276
echo "configure:1277: checking how to run the C preprocessor" >&5
1277
# On Suns, sometimes $CPP names a directory.
1278
if test -n "$CPP" && test -d "$CPP"; then
1281
if test -z "$CPP"; then
1282
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1283
echo $ac_n "(cached) $ac_c" 1>&6
1285
# This must be in double quotes, not single quotes, because CPP may get
1286
# substituted into the Makefile and "${CC-cc}" will confuse make.
1288
# On the NeXT, cc -E runs the code through the compiler's parser,
1289
# not just through cpp.
1290
cat > conftest.$ac_ext <<EOF
1291
#line 1292 "configure"
1292
#include "confdefs.h"
1296
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1297
{ (eval echo configure:1298: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1298
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1299
if test -z "$ac_err"; then
1303
echo "configure: failed program was:" >&5
1304
cat conftest.$ac_ext >&5
1306
CPP="${CC-cc} -E -traditional-cpp"
1307
cat > conftest.$ac_ext <<EOF
1308
#line 1309 "configure"
1309
#include "confdefs.h"
1313
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1314
{ (eval echo configure:1315: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1315
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1316
if test -z "$ac_err"; then
1320
echo "configure: failed program was:" >&5
1321
cat conftest.$ac_ext >&5
1328
ac_cv_prog_CPP="$CPP"
1330
CPP="$ac_cv_prog_CPP"
1332
ac_cv_prog_CPP="$CPP"
1334
echo "$ac_t""$CPP" 1>&6
1337
echo $ac_n "checking for a C++-Compiler""... $ac_c" 1>&6
1338
echo "configure:1339: checking for a C++-Compiler" >&5
1339
echo "$ac_t""$CXX" 1>&6
1341
if test -z "$CXX"; then # Extract the first word of "g++", so it can be a program name with args.
1342
set dummy g++; ac_word=$2
1343
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1344
echo "configure:1345: checking for $ac_word" >&5
1345
if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1346
echo $ac_n "(cached) $ac_c" 1>&6
1348
if test -n "$CXX"; then
1349
ac_cv_prog_CXX="$CXX" # Let the user override the test.
1351
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1353
for ac_dir in $ac_dummy; do
1354
test -z "$ac_dir" && ac_dir=.
1355
if test -f $ac_dir/$ac_word; then
1356
ac_cv_prog_CXX="g++"
1363
CXX="$ac_cv_prog_CXX"
1364
if test -n "$CXX"; then
1365
echo "$ac_t""$CXX" 1>&6
1367
echo "$ac_t""no" 1>&6
1370
if test -z "$CXX"; then # Extract the first word of "CC", so it can be a program name with args.
1371
set dummy CC; ac_word=$2
1372
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1373
echo "configure:1374: checking for $ac_word" >&5
1374
if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1375
echo $ac_n "(cached) $ac_c" 1>&6
1377
if test -n "$CXX"; then
1378
ac_cv_prog_CXX="$CXX" # Let the user override the test.
1380
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1382
for ac_dir in $ac_dummy; do
1383
test -z "$ac_dir" && ac_dir=.
1384
if test -f $ac_dir/$ac_word; then
1392
CXX="$ac_cv_prog_CXX"
1393
if test -n "$CXX"; then
1394
echo "$ac_t""$CXX" 1>&6
1396
echo "$ac_t""no" 1>&6
1399
if test -z "$CXX"; then # Extract the first word of "xlC", so it can be a program name with args.
1400
set dummy xlC; ac_word=$2
1401
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1402
echo "configure:1403: checking for $ac_word" >&5
1403
if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1404
echo $ac_n "(cached) $ac_c" 1>&6
1406
if test -n "$CXX"; then
1407
ac_cv_prog_CXX="$CXX" # Let the user override the test.
1409
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1411
for ac_dir in $ac_dummy; do
1412
test -z "$ac_dir" && ac_dir=.
1413
if test -f $ac_dir/$ac_word; then
1414
ac_cv_prog_CXX="xlC"
1421
CXX="$ac_cv_prog_CXX"
1422
if test -n "$CXX"; then
1423
echo "$ac_t""$CXX" 1>&6
1425
echo "$ac_t""no" 1>&6
1428
if test -z "$CXX"; then # Extract the first word of "DCC", so it can be a program name with args.
1429
set dummy DCC; ac_word=$2
1430
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1431
echo "configure:1432: checking for $ac_word" >&5
1432
if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1433
echo $ac_n "(cached) $ac_c" 1>&6
1435
if test -n "$CXX"; then
1436
ac_cv_prog_CXX="$CXX" # Let the user override the test.
1438
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1440
for ac_dir in $ac_dummy; do
1441
test -z "$ac_dir" && ac_dir=.
1442
if test -f $ac_dir/$ac_word; then
1443
ac_cv_prog_CXX="DCC"
1450
CXX="$ac_cv_prog_CXX"
1451
if test -n "$CXX"; then
1452
echo "$ac_t""$CXX" 1>&6
1454
echo "$ac_t""no" 1>&6
1457
test -z "$CXX" && { echo "configure: error: no acceptable C++-compiler found in \$PATH" 1>&2; exit 1; }
1459
echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1460
echo "configure:1461: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1464
# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1465
ac_cpp='$CXXCPP $CPPFLAGS'
1466
ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1467
ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1468
cross_compiling=$ac_cv_prog_cxx_cross
1470
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1474
cat > conftest.$ac_ext << EOF
1476
#line 1477 "configure"
1477
#include "confdefs.h"
1479
int main(){return(0);}
1481
if { (eval echo configure:1482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1482
ac_cv_prog_cxx_works=yes
1483
# If we can't run a trivial program, we are probably using a cross compiler.
1484
if (./conftest; exit) 2>/dev/null; then
1485
ac_cv_prog_cxx_cross=no
1487
ac_cv_prog_cxx_cross=yes
1490
echo "configure: failed program was:" >&5
1491
cat conftest.$ac_ext >&5
1492
ac_cv_prog_cxx_works=no
1496
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1497
ac_cpp='$CPP $CPPFLAGS'
1498
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1499
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1500
cross_compiling=$ac_cv_prog_cc_cross
1502
echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1503
if test $ac_cv_prog_cxx_works = no; then
1504
{ echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1506
echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1507
echo "configure:1508: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1508
echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1509
cross_compiling=$ac_cv_prog_cxx_cross
1511
echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1512
echo "configure:1513: checking whether we are using GNU C++" >&5
1513
if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1514
echo $ac_n "(cached) $ac_c" 1>&6
1516
cat > conftest.C <<EOF
1521
if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1522: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1528
echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1530
if test $ac_cv_prog_gxx = yes; then
1534
USER_CXXFLAGS=$CXXFLAGS
1537
if test -z "$CXXFLAGS"; then
1538
if test "$kde_use_debug_code" = "yes"; then
1539
echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1540
echo "configure:1541: checking whether ${CXX-g++} accepts -g" >&5
1541
if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1542
echo $ac_n "(cached) $ac_c" 1>&6
1544
echo 'void f(){}' > conftest.cc
1545
if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1546
ac_cv_prog_cxx_g=yes
1554
echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1555
if test $ac_cv_prog_cxx_g = yes; then
1557
case $host in *-*-linux-gnu)
1558
CXXFLAGS="$CXXFLAGS -ansi -D_XOPEN_SOURCE -D_BSD_SOURCE -Wbad-function-cast -Wcast-align -Wundef -Wconversion"
1563
if test "$GXX" = "yes"; then
1566
if test "$kde_use_debug_define" = "yes"; then
1567
CXXFLAGS="$CXXFLAGS -DNDEBUG"
1571
if test "$kde_use_profiling" = yes; then
1572
echo $ac_n "checking whether ${CXX-g++} accepts -pg""... $ac_c" 1>&6
1573
echo "configure:1574: checking whether ${CXX-g++} accepts -pg" >&5
1574
if eval "test \"`echo '$''{'kde_cv_prog_cxx_pg'+set}'`\" = set"; then
1575
echo $ac_n "(cached) $ac_c" 1>&6
1577
echo 'void f(){}' > conftest.cc
1578
if test -z "`${CXX-g++} -pg -c conftest.cc 2>&1`"; then
1579
kde_cv_prog_cxx_pg=yes
1581
kde_cv_prog_cxx_pg=no
1587
echo "$ac_t""$kde_cv_prog_cxx_pg" 1>&6
1588
if test "$kde_cv_prog_cxx_pg" = yes; then
1589
CXXFLAGS="$CXXFLAGS -pg"
1595
echo $ac_n "checking whether $CXX supports -fno-exceptions""... $ac_c" 1>&6
1596
echo "configure:1597: checking whether $CXX supports -fno-exceptions" >&5
1597
kde_cache=`echo fno-exceptions | sed 'y%.=/+-%___p_%'`
1598
if eval "test \"`echo '$''{'kde_cv_prog_cxx_$kde_cache'+set}'`\" = set"; then
1599
echo $ac_n "(cached) $ac_c" 1>&6
1602
echo 'int main() { return 0; }' >conftest.cc
1603
eval "kde_cv_prog_cxx_$kde_cache=no"
1604
if test -z "`$CXX -fno-exceptions -c conftest.cc 2>&1`"; then
1605
if test -z "`$CXX -fno-exceptions -o conftest conftest.o 2>&1`"; then
1606
eval "kde_cv_prog_cxx_$kde_cache=yes"
1613
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
1614
echo "$ac_t""yes" 1>&6
1617
CXXFLAGS="$CXXFLAGS -fno-exceptions"
1620
echo "$ac_t""no" 1>&6
1629
echo $ac_n "checking whether $CXX supports -fno-check-new""... $ac_c" 1>&6
1630
echo "configure:1631: checking whether $CXX supports -fno-check-new" >&5
1631
kde_cache=`echo fno-check-new | sed 'y%.=/+-%___p_%'`
1632
if eval "test \"`echo '$''{'kde_cv_prog_cxx_$kde_cache'+set}'`\" = set"; then
1633
echo $ac_n "(cached) $ac_c" 1>&6
1636
echo 'int main() { return 0; }' >conftest.cc
1637
eval "kde_cv_prog_cxx_$kde_cache=no"
1638
if test -z "`$CXX -fno-check-new -c conftest.cc 2>&1`"; then
1639
if test -z "`$CXX -fno-check-new -o conftest conftest.o 2>&1`"; then
1640
eval "kde_cv_prog_cxx_$kde_cache=yes"
1647
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
1648
echo "$ac_t""yes" 1>&6
1651
CXXFLAGS="$CXXFLAGS -fno-check-new"
1654
echo "$ac_t""no" 1>&6
1660
if test "$GXX" = "yes"; then
1661
CXXFLAGS="$CXXFLAGS"
1663
if test true || test "$kde_use_debug_code" = "yes"; then
1664
CXXFLAGS="$CXXFLAGS -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings"
1668
echo $ac_n "checking whether $CXX supports -Wno-long-long""... $ac_c" 1>&6
1669
echo "configure:1670: checking whether $CXX supports -Wno-long-long" >&5
1670
kde_cache=`echo Wno-long-long | sed 'y%.=/+-%___p_%'`
1671
if eval "test \"`echo '$''{'kde_cv_prog_cxx_$kde_cache'+set}'`\" = set"; then
1672
echo $ac_n "(cached) $ac_c" 1>&6
1675
echo 'int main() { return 0; }' >conftest.cc
1676
eval "kde_cv_prog_cxx_$kde_cache=no"
1677
if test -z "`$CXX -Wno-long-long -c conftest.cc 2>&1`"; then
1678
if test -z "`$CXX -Wno-long-long -o conftest conftest.o 2>&1`"; then
1679
eval "kde_cv_prog_cxx_$kde_cache=yes"
1686
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
1687
echo "$ac_t""yes" 1>&6
1690
CXXFLAGS="$CXXFLAGS -Wno-long-long"
1693
echo "$ac_t""no" 1>&6
1700
echo $ac_n "checking whether $CXX supports -Wnon-virtual-dtor""... $ac_c" 1>&6
1701
echo "configure:1702: checking whether $CXX supports -Wnon-virtual-dtor" >&5
1702
kde_cache=`echo Wnon-virtual-dtor | sed 'y%.=/+-%___p_%'`
1703
if eval "test \"`echo '$''{'kde_cv_prog_cxx_$kde_cache'+set}'`\" = set"; then
1704
echo $ac_n "(cached) $ac_c" 1>&6
1707
echo 'int main() { return 0; }' >conftest.cc
1708
eval "kde_cv_prog_cxx_$kde_cache=no"
1709
if test -z "`$CXX -Wnon-virtual-dtor -c conftest.cc 2>&1`"; then
1710
if test -z "`$CXX -Wnon-virtual-dtor -o conftest conftest.o 2>&1`"; then
1711
eval "kde_cv_prog_cxx_$kde_cache=yes"
1718
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
1719
echo "$ac_t""yes" 1>&6
1722
CXXFLAGS="$CXXFLAGS -Wnon-virtual-dtor"
1725
echo "$ac_t""no" 1>&6
1732
echo $ac_n "checking whether $CXX supports -fno-builtin""... $ac_c" 1>&6
1733
echo "configure:1734: checking whether $CXX supports -fno-builtin" >&5
1734
kde_cache=`echo fno-builtin | sed 'y%.=/+-%___p_%'`
1735
if eval "test \"`echo '$''{'kde_cv_prog_cxx_$kde_cache'+set}'`\" = set"; then
1736
echo $ac_n "(cached) $ac_c" 1>&6
1739
echo 'int main() { return 0; }' >conftest.cc
1740
eval "kde_cv_prog_cxx_$kde_cache=no"
1741
if test -z "`$CXX -fno-builtin -c conftest.cc 2>&1`"; then
1742
if test -z "`$CXX -fno-builtin -o conftest conftest.o 2>&1`"; then
1743
eval "kde_cv_prog_cxx_$kde_cache=yes"
1750
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
1751
echo "$ac_t""yes" 1>&6
1754
CXXFLAGS="$CXXFLAGS -fno-builtin"
1757
echo "$ac_t""no" 1>&6
1765
if test "$kde_use_strict_options" = "yes"; then
1766
CXXFLAGS="$CXXFLAGS -Wcast-qual -Wbad-function-cast -Wshadow -Wcast-align"
1769
if test "$kde_very_strict" = "yes"; then
1770
CXXFLAGS="$CXXFLAGS -Wold-style-cast -Wredundant-decls -Wconversion"
1777
echo $ac_n "checking whether $CXX supports -fexceptions""... $ac_c" 1>&6
1778
echo "configure:1779: checking whether $CXX supports -fexceptions" >&5
1779
kde_cache=`echo fexceptions | sed 'y%.=/+-%___p_%'`
1780
if eval "test \"`echo '$''{'kde_cv_prog_cxx_$kde_cache'+set}'`\" = set"; then
1781
echo $ac_n "(cached) $ac_c" 1>&6
1784
echo 'int main() { return 0; }' >conftest.cc
1785
eval "kde_cv_prog_cxx_$kde_cache=no"
1786
if test -z "`$CXX -fexceptions -c conftest.cc 2>&1`"; then
1787
if test -z "`$CXX -fexceptions -o conftest conftest.o 2>&1`"; then
1788
eval "kde_cv_prog_cxx_$kde_cache=yes"
1795
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
1796
echo "$ac_t""yes" 1>&6
1799
USE_EXCEPTIONS="-fexceptions"
1802
echo "$ac_t""no" 1>&6
1812
echo $ac_n "checking whether $CXX supports -frtti""... $ac_c" 1>&6
1813
echo "configure:1814: checking whether $CXX supports -frtti" >&5
1814
kde_cache=`echo frtti | sed 'y%.=/+-%___p_%'`
1815
if eval "test \"`echo '$''{'kde_cv_prog_cxx_$kde_cache'+set}'`\" = set"; then
1816
echo $ac_n "(cached) $ac_c" 1>&6
1819
echo 'int main() { return 0; }' >conftest.cc
1820
eval "kde_cv_prog_cxx_$kde_cache=no"
1821
if test -z "`$CXX -frtti -c conftest.cc 2>&1`"; then
1822
if test -z "`$CXX -frtti -o conftest conftest.o 2>&1`"; then
1823
eval "kde_cv_prog_cxx_$kde_cache=yes"
1830
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
1831
echo "$ac_t""yes" 1>&6
1837
echo "$ac_t""no" 1>&6
1846
*-*-irix*) test "$GXX" = yes && CXXFLAGS="$CXXFLAGS -D_LANGUAGE_C_PLUS_PLUS -D__LANGUAGE_C_PLUS_PLUS" ;;
1847
*-*-sysv4.2uw*) CXXFLAGS="$CXXFLAGS -D_UNIXWARE";;
1848
*-*-sysv5uw7*) CXXFLAGS="$CXXFLAGS -D_UNIXWARE7";;
1850
if test "$GXX" = yes; then
1851
libstdcpp=`gcc -print-file-name=libstdc++.so`
1852
if test ! -f $libstdcpp; then
1853
{ echo "configure: error: You've compiled gcc without --enable-shared. This doesn't work with KDE. Please recompile gcc with --enable-shared to receive a libstdc++.so" 1>&2; exit 1; }
1859
if test -n "$USER_CXXFLAGS"; then
1860
CXXFLAGS="$CXXFLAGS $USER_CXXFLAGS"
1864
__forbid=" -fno-rtti -rpath "
1865
if test -n "$__val"; then
1871
*" $i "*) echo "configure: warning: found forbidden $i in CXX, removing it" 1>&2 ;;
1872
*) # Careful to not add spaces, where there were none, because otherwise
1873
# libtool gets confused, if we change e.g. CXX
1874
if test -z "$__new" ; then __new=$i ; else __new="$__new $i" ; fi ;;
1882
__forbid=" -fno-rtti -rpath "
1883
if test -n "$__val"; then
1889
*" $i "*) echo "configure: warning: found forbidden $i in CXXFLAGS, removing it" 1>&2 ;;
1890
*) # Careful to not add spaces, where there were none, because otherwise
1891
# libtool gets confused, if we change e.g. CXX
1892
if test -z "$__new" ; then __new=$i ; else __new="$__new $i" ; fi ;;
1901
echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
1902
echo "configure:1903: checking how to run the C++ preprocessor" >&5
1903
if test -z "$CXXCPP"; then
1904
if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
1905
echo $ac_n "(cached) $ac_c" 1>&6
1909
# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1910
ac_cpp='$CXXCPP $CPPFLAGS'
1911
ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1912
ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1913
cross_compiling=$ac_cv_prog_cxx_cross
1915
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1917
CXXCPP="${CXX-g++} -E"
1918
cat > conftest.$ac_ext <<EOF
1919
#line 1920 "configure"
1920
#include "confdefs.h"
1923
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1924
{ (eval echo configure:1925: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1925
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1926
if test -z "$ac_err"; then
1930
echo "configure: failed program was:" >&5
1931
cat conftest.$ac_ext >&5
1936
ac_cv_prog_CXXCPP="$CXXCPP"
1938
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1939
ac_cpp='$CPP $CPPFLAGS'
1940
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1941
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1942
cross_compiling=$ac_cv_prog_cc_cross
1945
CXXCPP="$ac_cv_prog_CXXCPP"
1947
echo "$ac_t""$CXXCPP" 1>&6
1949
# the following is to allow programs, that are known to
1950
# have problems when compiled with -O2
1951
if test -n "$CXXFLAGS"; then
1955
for i in $CXXFLAGS; do
1960
NOOPT_CXXFLAGS="$NOOPT_CXXFLAGS $i"
1969
# Check whether --enable-final or --disable-final was given.
1970
if test "${enable_final+set}" = set; then
1971
enableval="$enable_final"
1972
kde_use_final=$enableval
1984
echo $ac_n "checking whether $CXX supports -frepo""... $ac_c" 1>&6
1985
echo "configure:1986: checking whether $CXX supports -frepo" >&5
1986
kde_cache=`echo frepo | sed 'y%.=/+-%___p_%'`
1987
if eval "test \"`echo '$''{'kde_cv_prog_cxx_$kde_cache'+set}'`\" = set"; then
1988
echo $ac_n "(cached) $ac_c" 1>&6
1991
echo 'int main() { return 0; }' >conftest.cc
1992
eval "kde_cv_prog_cxx_$kde_cache=no"
1993
if test -z "`$CXX -frepo -c conftest.cc 2>&1`"; then
1994
if test -z "`$CXX -frepo -o conftest conftest.o 2>&1`"; then
1995
eval "kde_cv_prog_cxx_$kde_cache=yes"
2002
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
2003
echo "$ac_t""yes" 1>&6
2010
echo "$ac_t""no" 1>&6
2016
if test -z "$REPO"; then
2019
echo $ac_n "checking whether $CXX supports -instances=explicit""... $ac_c" 1>&6
2020
echo "configure:2021: checking whether $CXX supports -instances=explicit" >&5
2021
kde_cache=`echo instances=explicit | sed 'y%.=/+-%___p_%'`
2022
if eval "test \"`echo '$''{'kde_cv_prog_cxx_$kde_cache'+set}'`\" = set"; then
2023
echo $ac_n "(cached) $ac_c" 1>&6
2026
echo 'int main() { return 0; }' >conftest.cc
2027
eval "kde_cv_prog_cxx_$kde_cache=no"
2028
if test -z "`$CXX -instances=explicit -c conftest.cc 2>&1`"; then
2029
if test -z "`$CXX -instances=explicit -o conftest conftest.o 2>&1`"; then
2030
eval "kde_cv_prog_cxx_$kde_cache=yes"
2037
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
2038
echo "$ac_t""yes" 1>&6
2041
REPO="-instances=explicit"
2042
NOREPO="-instances=extern"
2045
echo "$ac_t""no" 1>&6
2052
if test -n "$REPO"; then
2053
cat >> confdefs.h <<EOF
2054
#define HAVE_TEMPLATE_REPOSITORY 1
2063
if test "x$kde_use_final" = "xyes"; then
2064
KDE_USE_FINAL_TRUE=""
2065
KDE_USE_FINAL_FALSE="#"
2067
KDE_USE_FINAL_TRUE="#"
2068
KDE_USE_FINAL_FALSE=""
2073
# Check whether --enable-closure or --disable-closure was given.
2074
if test "${enable_closure+set}" = set; then
2075
enableval="$enable_closure"
2076
kde_use_closure=$enableval
2082
if test "x$kde_use_closure" = "xyes"; then
2083
KDE_USE_CLOSURE_TRUE=""
2084
KDE_USE_CLOSURE_FALSE="#"
2085
# CXXFLAGS="$CXXFLAGS $REPO"
2087
KDE_USE_CLOSURE_TRUE="#"
2088
KDE_USE_CLOSURE_FALSE=""
2099
# Check whether --enable-shared or --disable-shared was given.
2100
if test "${enable_shared+set}" = set; then
2101
enableval="$enable_shared"
2102
p=${PACKAGE-default}
2103
case "$enableval" in
2104
yes) enable_shared=yes ;;
2105
no) enable_shared=no ;;
2108
# Look at the argument we got. We use all the common list separators.
2109
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2110
for pkg in $enableval; do
2111
if test "X$pkg" = "X$p"; then
2122
# Check whether --enable-static or --disable-static was given.
2123
if test "${enable_static+set}" = set; then
2124
enableval="$enable_static"
2125
p=${PACKAGE-default}
2126
case "$enableval" in
2127
yes) enable_static=yes ;;
2128
no) enable_static=no ;;
2131
# Look at the argument we got. We use all the common list separators.
2132
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2133
for pkg in $enableval; do
2134
if test "X$pkg" = "X$p"; then
2145
# Check whether --enable-fast-install or --disable-fast-install was given.
2146
if test "${enable_fast_install+set}" = set; then
2147
enableval="$enable_fast_install"
2148
p=${PACKAGE-default}
2149
case "$enableval" in
2150
yes) enable_fast_install=yes ;;
2151
no) enable_fast_install=no ;;
2153
enable_fast_install=no
2154
# Look at the argument we got. We use all the common list separators.
2155
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2156
for pkg in $enableval; do
2157
if test "X$pkg" = "X$p"; then
2158
enable_fast_install=yes
2165
enable_fast_install=yes
2168
# Check whether --with-gnu-ld or --without-gnu-ld was given.
2169
if test "${with_gnu_ld+set}" = set; then
2170
withval="$with_gnu_ld"
2171
test "$withval" = no || with_gnu_ld=yes
2177
if test "$GCC" = yes; then
2178
# Check if gcc -print-prog-name=ld gives a path.
2179
echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
2180
echo "configure:2181: checking for ld used by GCC" >&5
2183
# gcc leaves a trailing carriage return which upsets mingw
2184
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2186
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2189
# Accept absolute paths.
2190
[\\/]* | [A-Za-z]:[\\/]*)
2191
re_direlt='/[^/][^/]*/\.\./'
2192
# Canonicalize the path of ld
2193
ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2194
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2195
ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2197
test -z "$LD" && LD="$ac_prog"
2200
# If it fails, then pretend we aren't using GCC.
2204
# If it is relative, then search for the first ld in PATH.
2208
elif test "$with_gnu_ld" = yes; then
2209
echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
2210
echo "configure:2211: checking for GNU ld" >&5
2212
echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
2213
echo "configure:2214: checking for non-GNU ld" >&5
2215
if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
2216
echo $ac_n "(cached) $ac_c" 1>&6
2218
if test -z "$LD"; then
2219
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2220
for ac_dir in $PATH; do
2221
test -z "$ac_dir" && ac_dir=.
2222
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2223
lt_cv_path_LD="$ac_dir/$ac_prog"
2224
# Check to see if the program is GNU ld. I'd rather use --version,
2225
# but apparently some GNU ld's only accept -v.
2226
# Break only if it was the GNU/non-GNU ld that we prefer.
2227
if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2228
test "$with_gnu_ld" != no && break
2230
test "$with_gnu_ld" != yes && break
2236
lt_cv_path_LD="$LD" # Let the user override the test with a path.
2241
if test -n "$LD"; then
2242
echo "$ac_t""$LD" 1>&6
2244
echo "$ac_t""no" 1>&6
2246
test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
2247
echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
2248
echo "configure:2249: checking if the linker ($LD) is GNU ld" >&5
2249
if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
2250
echo $ac_n "(cached) $ac_c" 1>&6
2252
# I'd rather use --version here, but apparently some GNU ld's only accept -v.
2253
if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2254
lt_cv_prog_gnu_ld=yes
2256
lt_cv_prog_gnu_ld=no
2260
echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
2261
with_gnu_ld=$lt_cv_prog_gnu_ld
2264
echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
2265
echo "configure:2266: checking for $LD option to reload object files" >&5
2266
if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
2267
echo $ac_n "(cached) $ac_c" 1>&6
2269
lt_cv_ld_reload_flag='-r'
2272
echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
2273
reload_flag=$lt_cv_ld_reload_flag
2274
test -n "$reload_flag" && reload_flag=" $reload_flag"
2276
echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
2277
echo "configure:2278: checking for BSD-compatible nm" >&5
2278
if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
2279
echo $ac_n "(cached) $ac_c" 1>&6
2281
if test -n "$NM"; then
2282
# Let the user override the test.
2285
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2286
for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2287
test -z "$ac_dir" && ac_dir=.
2288
tmp_nm=$ac_dir/${ac_tool_prefix}nm
2289
if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
2290
# Check to see if the nm accepts a BSD-compat flag.
2291
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
2292
# nm: unknown option "B" ignored
2293
# Tru64's nm complains that /dev/null is an invalid object file
2294
if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
2295
lt_cv_path_NM="$tmp_nm -B"
2297
elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2298
lt_cv_path_NM="$tmp_nm -p"
2301
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2302
continue # so that we can try to find one that supports BSD flags
2307
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2312
echo "$ac_t""$NM" 1>&6
2314
echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2315
echo "configure:2316: checking whether ln -s works" >&5
2316
if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2317
echo $ac_n "(cached) $ac_c" 1>&6
2320
if ln -s X conftestdata 2>/dev/null
2323
ac_cv_prog_LN_S="ln -s"
2328
LN_S="$ac_cv_prog_LN_S"
2329
if test "$ac_cv_prog_LN_S" = "ln -s"; then
2330
echo "$ac_t""yes" 1>&6
2332
echo "$ac_t""no" 1>&6
2335
echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
2336
echo "configure:2337: checking how to recognise dependant libraries" >&5
2337
if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
2338
echo $ac_n "(cached) $ac_c" 1>&6
2340
lt_cv_file_magic_cmd='$MAGIC_CMD'
2341
lt_cv_file_magic_test_file=
2342
lt_cv_deplibs_check_method='unknown'
2343
# Need to set the preceding variable on all platforms that support
2344
# interlibrary dependencies.
2345
# 'none' -- dependencies not supported.
2346
# `unknown' -- same as none, but documents that we really don't know.
2347
# 'pass_all' -- all dependencies passed with no checks.
2348
# 'test_compile' -- check by making test program.
2349
# 'file_magic [regex]' -- check by looking for files in library path
2350
# which responds to the $file_magic_cmd with a given egrep regex.
2351
# If you have `file' or equivalent on your system and you're not sure
2352
# whether `pass_all' will *always* work, you probably want this one.
2356
lt_cv_deplibs_check_method=pass_all
2360
lt_cv_deplibs_check_method=pass_all
2364
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
2365
lt_cv_file_magic_cmd='/usr/bin/file -L'
2366
lt_cv_file_magic_test_file=/shlib/libc.so
2369
cygwin* | mingw* |pw32*)
2370
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2371
lt_cv_file_magic_cmd='$OBJDUMP -f'
2374
darwin* | rhapsody*)
2375
lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
2376
lt_cv_file_magic_cmd=/usr/bin/file
2377
lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
2381
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2384
# Not sure whether the presence of OpenBSD here was a mistake.
2385
# Let's accept both of them until this is cleared up.
2386
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
2387
lt_cv_file_magic_cmd=/usr/bin/file
2388
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2392
lt_cv_deplibs_check_method=pass_all
2397
lt_cv_deplibs_check_method=pass_all
2401
# TODO: Does this work for hpux-11 too?
2402
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2403
lt_cv_file_magic_cmd=/usr/bin/file
2404
lt_cv_file_magic_test_file=/usr/lib/libc.sl
2410
# this will be overridden with pass_all, but let us keep it just in case
2411
lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2415
*-32|*"-32 ") libmagic=32-bit;;
2416
*-n32|*"-n32 ") libmagic=N32;;
2417
*-64|*"-64 ") libmagic=64-bit;;
2418
*) libmagic=never-match;;
2420
# this will be overridden with pass_all, but let us keep it just in case
2421
lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2424
lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2425
lt_cv_deplibs_check_method=pass_all
2428
# This must be Linux ELF.
2431
alpha* | i*86 | powerpc* | sparc* | ia64* | s390* )
2432
lt_cv_deplibs_check_method=pass_all ;;
2434
# glibc up to 2.1.1 does not perform some relocations on ARM
2435
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2437
lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2441
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2442
lt_cv_deplibs_check_method='file_magic NetBSD/[a-z0-9]* demand paged shared library'
2444
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
2446
lt_cv_file_magic_cmd='/usr/bin/file -L'
2447
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2451
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2454
lt_cv_deplibs_check_method='file_magic OpenBSD/i[3-9]86 demand paged shared library'
2455
lt_cv_file_magic_cmd=/usr/bin/file
2456
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2460
lt_cv_deplibs_check_method=pass_all
2465
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2466
lt_cv_file_magic_cmd=/usr/bin/file
2467
lt_cv_file_magic_test_file=/usr/lib/libnls.so
2470
osf3* | osf4* | osf5*)
2471
# this will be overridden with pass_all, but let us keep it just in case
2472
lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2473
lt_cv_file_magic_test_file=/shlib/libc.so
2474
lt_cv_deplibs_check_method=pass_all
2478
lt_cv_deplibs_check_method=pass_all
2482
lt_cv_deplibs_check_method=pass_all
2483
lt_cv_file_magic_test_file=/lib/libc.so
2486
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2487
case "$host_vendor" in
2489
lt_cv_deplibs_check_method=pass_all
2492
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
2493
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2501
echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2502
file_magic_cmd=$lt_cv_file_magic_cmd
2503
deplibs_check_method=$lt_cv_deplibs_check_method
2505
if test $host != $build; then
2506
ac_tool_prefix=${host_alias}-
2511
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2513
# Only perform the check for file, if the check method requires it
2514
case "$deplibs_check_method" in
2516
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2517
echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2518
echo "configure:2519: checking for ${ac_tool_prefix}file" >&5
2519
if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2520
echo $ac_n "(cached) $ac_c" 1>&6
2522
case "$MAGIC_CMD" in
2524
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2527
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2530
ac_save_MAGIC_CMD="$MAGIC_CMD"
2531
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2532
ac_dummy="/usr/bin:$PATH"
2533
for ac_dir in $ac_dummy; do
2534
test -z "$ac_dir" && ac_dir=.
2535
if test -f $ac_dir/${ac_tool_prefix}file; then
2536
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2537
if test -n "$file_magic_test_file"; then
2538
case "$deplibs_check_method" in
2540
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2541
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2542
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2543
egrep "$file_magic_regex" > /dev/null; then
2548
*** Warning: the command libtool uses to detect shared libraries,
2549
*** $file_magic_cmd, produces output that libtool cannot recognize.
2550
*** The result is that libtool may fail to recognize shared libraries
2551
*** as such. This will affect the creation of libtool libraries that
2552
*** depend on shared libraries, but programs linked with such libtool
2553
*** libraries will work regardless of this problem. Nevertheless, you
2554
*** may want to report the problem to your system manager and/or to
2555
*** bug-libtool@gnu.org
2565
MAGIC_CMD="$ac_save_MAGIC_CMD"
2570
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2571
if test -n "$MAGIC_CMD"; then
2572
echo "$ac_t""$MAGIC_CMD" 1>&6
2574
echo "$ac_t""no" 1>&6
2577
if test -z "$lt_cv_path_MAGIC_CMD"; then
2578
if test -n "$ac_tool_prefix"; then
2579
echo $ac_n "checking for file""... $ac_c" 1>&6
2580
echo "configure:2581: checking for file" >&5
2581
if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2582
echo $ac_n "(cached) $ac_c" 1>&6
2584
case "$MAGIC_CMD" in
2586
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2589
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2592
ac_save_MAGIC_CMD="$MAGIC_CMD"
2593
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2594
ac_dummy="/usr/bin:$PATH"
2595
for ac_dir in $ac_dummy; do
2596
test -z "$ac_dir" && ac_dir=.
2597
if test -f $ac_dir/file; then
2598
lt_cv_path_MAGIC_CMD="$ac_dir/file"
2599
if test -n "$file_magic_test_file"; then
2600
case "$deplibs_check_method" in
2602
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2603
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2604
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2605
egrep "$file_magic_regex" > /dev/null; then
2610
*** Warning: the command libtool uses to detect shared libraries,
2611
*** $file_magic_cmd, produces output that libtool cannot recognize.
2612
*** The result is that libtool may fail to recognize shared libraries
2613
*** as such. This will affect the creation of libtool libraries that
2614
*** depend on shared libraries, but programs linked with such libtool
2615
*** libraries will work regardless of this problem. Nevertheless, you
2616
*** may want to report the problem to your system manager and/or to
2617
*** bug-libtool@gnu.org
2627
MAGIC_CMD="$ac_save_MAGIC_CMD"
2632
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2633
if test -n "$MAGIC_CMD"; then
2634
echo "$ac_t""$MAGIC_CMD" 1>&6
2636
echo "$ac_t""no" 1>&6
2648
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2649
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2650
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2651
echo "configure:2652: checking for $ac_word" >&5
2652
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2653
echo $ac_n "(cached) $ac_c" 1>&6
2655
if test -n "$RANLIB"; then
2656
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2658
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2660
for ac_dir in $ac_dummy; do
2661
test -z "$ac_dir" && ac_dir=.
2662
if test -f $ac_dir/$ac_word; then
2663
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2670
RANLIB="$ac_cv_prog_RANLIB"
2671
if test -n "$RANLIB"; then
2672
echo "$ac_t""$RANLIB" 1>&6
2674
echo "$ac_t""no" 1>&6
2678
if test -z "$ac_cv_prog_RANLIB"; then
2679
if test -n "$ac_tool_prefix"; then
2680
# Extract the first word of "ranlib", so it can be a program name with args.
2681
set dummy ranlib; ac_word=$2
2682
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2683
echo "configure:2684: checking for $ac_word" >&5
2684
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2685
echo $ac_n "(cached) $ac_c" 1>&6
2687
if test -n "$RANLIB"; then
2688
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2690
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2692
for ac_dir in $ac_dummy; do
2693
test -z "$ac_dir" && ac_dir=.
2694
if test -f $ac_dir/$ac_word; then
2695
ac_cv_prog_RANLIB="ranlib"
2700
test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2703
RANLIB="$ac_cv_prog_RANLIB"
2704
if test -n "$RANLIB"; then
2705
echo "$ac_t""$RANLIB" 1>&6
2707
echo "$ac_t""no" 1>&6
2715
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2716
set dummy ${ac_tool_prefix}strip; ac_word=$2
2717
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2718
echo "configure:2719: checking for $ac_word" >&5
2719
if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2720
echo $ac_n "(cached) $ac_c" 1>&6
2722
if test -n "$STRIP"; then
2723
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2725
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2727
for ac_dir in $ac_dummy; do
2728
test -z "$ac_dir" && ac_dir=.
2729
if test -f $ac_dir/$ac_word; then
2730
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2737
STRIP="$ac_cv_prog_STRIP"
2738
if test -n "$STRIP"; then
2739
echo "$ac_t""$STRIP" 1>&6
2741
echo "$ac_t""no" 1>&6
2745
if test -z "$ac_cv_prog_STRIP"; then
2746
if test -n "$ac_tool_prefix"; then
2747
# Extract the first word of "strip", so it can be a program name with args.
2748
set dummy strip; ac_word=$2
2749
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2750
echo "configure:2751: checking for $ac_word" >&5
2751
if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2752
echo $ac_n "(cached) $ac_c" 1>&6
2754
if test -n "$STRIP"; then
2755
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2757
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2759
for ac_dir in $ac_dummy; do
2760
test -z "$ac_dir" && ac_dir=.
2761
if test -f $ac_dir/$ac_word; then
2762
ac_cv_prog_STRIP="strip"
2767
test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2770
STRIP="$ac_cv_prog_STRIP"
2771
if test -n "$STRIP"; then
2772
echo "$ac_t""$STRIP" 1>&6
2774
echo "$ac_t""no" 1>&6
2783
# Check for any special flags to pass to ltconfig.
2784
libtool_flags="--cache-file=$cache_file"
2785
test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2786
test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2787
test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2788
test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2789
test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2790
libtool_flags="$libtool_flags --enable-dlopen"
2792
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2793
if test "${enable_libtool_lock+set}" = set; then
2794
enableval="$enable_libtool_lock"
2798
test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2799
test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2801
# Check whether --with-pic or --without-pic was given.
2802
if test "${with_pic+set}" = set; then
2809
test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2810
test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2812
# Some flags need to be propagated to the compiler or linker for good
2816
# Find out which ABI we are using.
2817
echo '#line 2818 "configure"' > conftest.$ac_ext
2818
if { (eval echo configure:2819: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2819
case "`/usr/bin/file conftest.$ac_objext`" in
2835
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
2836
SAVE_CFLAGS="$CFLAGS"
2837
CFLAGS="$CFLAGS -belf"
2838
echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2839
echo "configure:2840: checking whether the C compiler needs -belf" >&5
2840
if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2841
echo $ac_n "(cached) $ac_c" 1>&6
2845
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2846
ac_cpp='$CPP $CPPFLAGS'
2847
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2848
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2849
cross_compiling=$ac_cv_prog_cc_cross
2851
cat > conftest.$ac_ext <<EOF
2852
#line 2853 "configure"
2853
#include "confdefs.h"
2859
if { (eval echo configure:2860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2861
lt_cv_cc_needs_belf=yes
2863
echo "configure: failed program was:" >&5
2864
cat conftest.$ac_ext >&5
2866
lt_cv_cc_needs_belf=no
2870
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2871
ac_cpp='$CPP $CPPFLAGS'
2872
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2873
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2874
cross_compiling=$ac_cv_prog_cc_cross
2878
echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2879
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2880
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2881
CFLAGS="$SAVE_CFLAGS"
2889
echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
2890
echo "configure:2891: checking for Cygwin environment" >&5
2891
if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
2892
echo $ac_n "(cached) $ac_c" 1>&6
2894
cat > conftest.$ac_ext <<EOF
2895
#line 2896 "configure"
2896
#include "confdefs.h"
2901
#define __CYGWIN__ __CYGWIN32__
2906
if { (eval echo configure:2907: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2910
echo "configure: failed program was:" >&5
2911
cat conftest.$ac_ext >&5
2919
echo "$ac_t""$ac_cv_cygwin" 1>&6
2921
test "$ac_cv_cygwin" = yes && CYGWIN=yes
2922
echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
2923
echo "configure:2924: checking for mingw32 environment" >&5
2924
if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
2925
echo $ac_n "(cached) $ac_c" 1>&6
2927
cat > conftest.$ac_ext <<EOF
2928
#line 2929 "configure"
2929
#include "confdefs.h"
2935
if { (eval echo configure:2936: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2939
echo "configure: failed program was:" >&5
2940
cat conftest.$ac_ext >&5
2948
echo "$ac_t""$ac_cv_mingw32" 1>&6
2950
test "$ac_cv_mingw32" = yes && MINGW32=yes
2952
# Save cache, so that ltconfig can load it
2953
cat > confcache <<\EOF
2954
# This file is a shell script that caches the results of configure
2955
# tests run on this system so they can be shared between configure
2956
# scripts and configure runs. It is not useful on other systems.
2957
# If it contains results you don't want to keep, you may remove or edit it.
2959
# By default, configure uses ./config.cache as the cache file,
2960
# creating it if it does not exist already. You can give configure
2961
# the --cache-file=FILE option to use a different cache file; that is
2962
# what configure does when it calls configure scripts in
2963
# subdirectories, so they share the cache.
2964
# Giving --cache-file=/dev/null disables caching, for debugging configure.
2965
# config.status only pays attention to the cache file if you give it the
2966
# --recheck option to rerun configure.
2969
# The following way of writing the cache mishandles newlines in values,
2970
# but we know of no workaround that is simple, portable, and efficient.
2971
# So, don't put newlines in cache variables' values.
2972
# Ultrix sh set writes to stderr and can't be redirected directly,
2973
# and sets the high bit in the cache file unless we assign to the vars.
2975
case `(ac_space=' '; set | grep ac_space) 2>&1` in
2977
# `set' does not quote correctly, so add quotes (double-quote substitution
2978
# turns \\\\ into \\, and sed turns \\ into \).
2980
-e "s/'/'\\\\''/g" \
2981
-e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2984
# `set' quotes correctly as required by POSIX, so do not add quotes.
2985
sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2988
if cmp -s $cache_file confcache; then
2991
if test -w $cache_file; then
2992
echo "updating cache $cache_file"
2993
cat confcache > $cache_file
2995
echo "not updating unwritable cache $cache_file"
3001
# Actually configure libtool. ac_aux_dir is where install-sh is found.
3002
AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
3003
MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
3004
LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
3005
AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
3006
objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
3007
deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
3008
${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
3009
$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
3010
|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
3012
# Reload cache, that may have been modified by ltconfig
3013
if test -r "$cache_file"; then
3014
echo "loading cache $cache_file"
3017
echo "creating cache $cache_file"
3022
# This can be used to rebuild libtool when needed
3023
LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
3025
# Always use our own libtool.
3026
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
3028
# Redirect the config.log output again, so that the ltconfig log is not
3029
# clobbered by the next message.
3030
exec 5>>./config.log
3034
LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
3036
lt_save_CFLAGS="$CFLAGS"
3037
AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
3038
MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
3039
LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
3040
AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
3041
objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
3042
deplibs_check_method="$deplibs_check_method" \
3043
file_magic_cmd="$file_magic_cmd" \
3044
${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
3045
--build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
3046
|| { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
3048
CFLAGS="$lt_save_CFLAGS"
3050
# Redirect the config.log output again, so that the ltconfig log is not
3051
# clobbered by the next message.
3052
exec 5>>./config.log
3063
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3064
ac_cpp='$CPP $CPPFLAGS'
3065
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3066
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3067
cross_compiling=$ac_cv_prog_cc_cross
3069
echo $ac_n "checking for object suffix""... $ac_c" 1>&6
3070
echo "configure:3071: checking for object suffix" >&5
3071
if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
3072
echo $ac_n "(cached) $ac_c" 1>&6
3075
echo 'int i = 1;' > conftest.$ac_ext
3076
if { (eval echo configure:3077: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3077
for ac_file in conftest.*; do
3080
*) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
3084
{ echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
3089
echo "$ac_t""$ac_cv_objext" 1>&6
3090
OBJEXT=$ac_cv_objext
3091
ac_objext=$ac_cv_objext
3095
echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3096
echo "configure:3097: checking for executable suffix" >&5
3097
if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
3098
echo $ac_n "(cached) $ac_c" 1>&6
3100
if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
3104
echo 'int main () { return 0; }' > conftest.$ac_ext
3106
if { (eval echo configure:3107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3107
for file in conftest.*; do
3109
*.c | *.o | *.obj) ;;
3110
*) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
3114
{ echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3117
test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
3122
test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
3123
echo "$ac_t""${ac_cv_exeext}" 1>&6
3127
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3128
ac_cpp='$CPP $CPPFLAGS'
3129
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3130
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3131
cross_compiling=$ac_cv_prog_cc_cross
3141
LIBTOOL_SHELL="/bin/sh ./libtool"
3142
# LIBTOOL="$LIBTOOL --silent"
3143
KDE_PLUGIN="-avoid-version -module -no-undefined"
3148
all_libraries="$all_libraries $USER_LDFLAGS"
3149
all_includes="$all_includes $USER_INCLUDES"
3154
echo $ac_n "checking for extra includes""... $ac_c" 1>&6
3155
echo "configure:3156: checking for extra includes" >&5
3156
# Check whether --with-extra-includes or --without-extra-includes was given.
3157
if test "${with_extra_includes+set}" = set; then
3158
withval="$with_extra_includes"
3159
kde_use_extra_includes="$withval"
3161
kde_use_extra_includes=NONE
3166
if test -n "$kde_use_extra_includes" && \
3167
test "$kde_use_extra_includes" != "NONE"; then
3171
for dir in $kde_use_extra_includes; do
3172
kde_extra_includes="$kde_extra_includes $dir"
3173
USER_INCLUDES="$USER_INCLUDES -I$dir"
3176
kde_use_extra_includes="added"
3178
kde_use_extra_includes="no"
3182
echo "$ac_t""$kde_use_extra_includes" 1>&6
3185
echo $ac_n "checking for extra libs""... $ac_c" 1>&6
3186
echo "configure:3187: checking for extra libs" >&5
3187
# Check whether --with-extra-libs or --without-extra-libs was given.
3188
if test "${with_extra_libs+set}" = set; then
3189
withval="$with_extra_libs"
3190
kde_use_extra_libs=$withval
3192
kde_use_extra_libs=NONE
3196
if test -n "$kde_use_extra_libs" && \
3197
test "$kde_use_extra_libs" != "NONE"; then
3201
for dir in $kde_use_extra_libs; do
3202
kde_extra_libs="$kde_extra_libs $dir"
3203
KDE_EXTRA_RPATH="$KDE_EXTRA_RPATH -R $dir"
3204
USER_LDFLAGS="$USER_LDFLAGS -L$dir"
3207
kde_use_extra_libs="added"
3209
kde_use_extra_libs="no"
3214
echo "$ac_t""$kde_use_extra_libs" 1>&6
3219
# Extract the first word of "msgfmt", so it can be a program name with args.
3220
set dummy msgfmt; ac_word=$2
3221
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3222
echo "configure:3223: checking for $ac_word" >&5
3223
if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3224
echo $ac_n "(cached) $ac_c" 1>&6
3228
ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3231
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3232
for ac_dir in $PATH; do
3233
test -z "$ac_dir" && ac_dir=.
3234
if test -f $ac_dir/$ac_word; then
3235
if test -n "`$ac_dir/$ac_word --version 2>&1 | grep 'GNU gettext'`"; then
3236
ac_cv_path_MSGFMT="$ac_dir/$ac_word"
3242
test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
3246
MSGFMT="$ac_cv_path_MSGFMT"
3247
if test -n "$MSGFMT"; then
3248
echo "$ac_t""$MSGFMT" 1>&6
3250
echo "$ac_t""no" 1>&6
3253
# Extract the first word of "gmsgfmt", so it can be a program name with args.
3254
set dummy gmsgfmt; ac_word=$2
3255
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3256
echo "configure:3257: checking for $ac_word" >&5
3257
if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3258
echo $ac_n "(cached) $ac_c" 1>&6
3262
ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3265
ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
3268
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3270
for ac_dir in $ac_dummy; do
3271
test -z "$ac_dir" && ac_dir=.
3272
if test -f $ac_dir/$ac_word; then
3273
ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3278
test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3282
GMSGFMT="$ac_cv_path_GMSGFMT"
3283
if test -n "$GMSGFMT"; then
3284
echo "$ac_t""$GMSGFMT" 1>&6
3286
echo "$ac_t""no" 1>&6
3290
if test -z "`$GMSGFMT --version 2>&1 | grep 'GNU gettext'`"; then
3291
echo "$ac_t""found msgfmt program is not GNU msgfmt; ignore it" 1>&6
3298
# Extract the first word of "xgettext", so it can be a program name with args.
3299
set dummy xgettext; ac_word=$2
3300
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3301
echo "configure:3302: checking for $ac_word" >&5
3302
if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3303
echo $ac_n "(cached) $ac_c" 1>&6
3307
ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3310
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3311
for ac_dir in $PATH; do
3312
test -z "$ac_dir" && ac_dir=.
3313
if test -f $ac_dir/$ac_word; then
3314
if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3315
ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3321
test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3325
XGETTEXT="$ac_cv_path_XGETTEXT"
3326
if test -n "$XGETTEXT"; then
3327
echo "$ac_t""$XGETTEXT" 1>&6
3329
echo "$ac_t""no" 1>&6
3333
if test "$XGETTEXT" != ":"; then
3334
if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
3337
echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
3347
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3348
ac_cpp='$CPP $CPPFLAGS'
3349
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3350
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3351
cross_compiling=$ac_cv_prog_cc_cross
3353
echo $ac_n "checking for main in -lcompat""... $ac_c" 1>&6
3354
echo "configure:3355: checking for main in -lcompat" >&5
3355
ac_lib_var=`echo compat'_'main | sed 'y%./+-%__p_%'`
3356
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3357
echo $ac_n "(cached) $ac_c" 1>&6
3359
ac_save_LIBS="$LIBS"
3360
LIBS="-lcompat $LIBS"
3361
cat > conftest.$ac_ext <<EOF
3362
#line 3363 "configure"
3363
#include "confdefs.h"
3369
if { (eval echo configure:3370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3371
eval "ac_cv_lib_$ac_lib_var=yes"
3373
echo "configure: failed program was:" >&5
3374
cat conftest.$ac_ext >&5
3376
eval "ac_cv_lib_$ac_lib_var=no"
3379
LIBS="$ac_save_LIBS"
3382
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3383
echo "$ac_t""yes" 1>&6
3384
LIBCOMPAT="-lcompat"
3386
echo "$ac_t""no" 1>&6
3390
echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
3391
echo "configure:3392: checking for crypt in -lcrypt" >&5
3392
ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
3393
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3394
echo $ac_n "(cached) $ac_c" 1>&6
3396
ac_save_LIBS="$LIBS"
3397
LIBS="-lcrypt $LIBS"
3398
cat > conftest.$ac_ext <<EOF
3399
#line 3400 "configure"
3400
#include "confdefs.h"
3401
/* Override any gcc2 internal prototype to avoid an error. */
3402
/* We use char because int might match the return type of a gcc2
3403
builtin and then its argument prototype would still apply. */
3410
if { (eval echo configure:3411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3412
eval "ac_cv_lib_$ac_lib_var=yes"
3414
echo "configure: failed program was:" >&5
3415
cat conftest.$ac_ext >&5
3417
eval "ac_cv_lib_$ac_lib_var=no"
3420
LIBS="$ac_save_LIBS"
3423
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3424
echo "$ac_t""yes" 1>&6
3425
LIBCRYPT="-lcrypt"; kde_have_crypt=yes
3427
echo "$ac_t""no" 1>&6
3428
echo $ac_n "checking for crypt in -lc""... $ac_c" 1>&6
3429
echo "configure:3430: checking for crypt in -lc" >&5
3430
ac_lib_var=`echo c'_'crypt | sed 'y%./+-%__p_%'`
3431
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3432
echo $ac_n "(cached) $ac_c" 1>&6
3434
ac_save_LIBS="$LIBS"
3436
cat > conftest.$ac_ext <<EOF
3437
#line 3438 "configure"
3438
#include "confdefs.h"
3439
/* Override any gcc2 internal prototype to avoid an error. */
3440
/* We use char because int might match the return type of a gcc2
3441
builtin and then its argument prototype would still apply. */
3448
if { (eval echo configure:3449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3450
eval "ac_cv_lib_$ac_lib_var=yes"
3452
echo "configure: failed program was:" >&5
3453
cat conftest.$ac_ext >&5
3455
eval "ac_cv_lib_$ac_lib_var=no"
3458
LIBS="$ac_save_LIBS"
3461
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3462
echo "$ac_t""yes" 1>&6
3465
echo "$ac_t""no" 1>&6
3467
echo "configure: warning: you have no crypt in either libcrypt or libc.
3468
You should install libcrypt from another source or configure with PAM
3477
if test $kde_have_crypt = yes; then
3478
cat >> confdefs.h <<EOF
3479
#define HAVE_CRYPT 1
3483
echo $ac_n "checking for the third argument of getsockname""... $ac_c" 1>&6
3484
echo "configure:3485: checking for the third argument of getsockname" >&5
3485
if eval "test \"`echo '$''{'ac_cv_ksize_t'+set}'`\" = set"; then
3486
echo $ac_n "(cached) $ac_c" 1>&6
3490
# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3491
ac_cpp='$CXXCPP $CPPFLAGS'
3492
ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3493
ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3494
cross_compiling=$ac_cv_prog_cxx_cross
3496
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3499
cat > conftest.$ac_ext <<EOF
3500
#line 3501 "configure"
3501
#include "confdefs.h"
3503
#include <sys/types.h>
3504
#include <sys/socket.h>
3509
getsockname(0,(struct sockaddr*)0, &a);
3513
if { (eval echo configure:3514: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3515
ac_cv_ksize_t=socklen_t
3517
echo "configure: failed program was:" >&5
3518
cat conftest.$ac_ext >&5
3523
if test -z "$ac_cv_ksize_t"; then
3524
ac_safe_cxxflags="$CXXFLAGS"
3525
if test "$GCC" = "yes"; then
3526
CXXFLAGS="-Werror $CXXFLAGS"
3528
cat > conftest.$ac_ext <<EOF
3529
#line 3530 "configure"
3530
#include "confdefs.h"
3532
#include <sys/types.h>
3533
#include <sys/socket.h>
3538
getsockname(0,(struct sockaddr*)0, &a);
3542
if { (eval echo configure:3543: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3546
echo "configure: failed program was:" >&5
3547
cat conftest.$ac_ext >&5
3549
ac_cv_ksize_t=size_t
3552
CXXFLAGS="$ac_safe_cxxflags"
3555
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3556
ac_cpp='$CPP $CPPFLAGS'
3557
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3558
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3559
cross_compiling=$ac_cv_prog_cc_cross
3565
if test -z "$ac_cv_ksize_t"; then
3569
echo "$ac_t""$ac_cv_ksize_t" 1>&6
3570
cat >> confdefs.h <<EOF
3571
#define ksize_t $ac_cv_ksize_t
3577
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3578
ac_cpp='$CPP $CPPFLAGS'
3579
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3580
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3581
cross_compiling=$ac_cv_prog_cc_cross
3583
echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
3584
echo "configure:3585: checking for dnet_ntoa in -ldnet" >&5
3585
ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3586
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3587
echo $ac_n "(cached) $ac_c" 1>&6
3589
ac_save_LIBS="$LIBS"
3591
cat > conftest.$ac_ext <<EOF
3592
#line 3593 "configure"
3593
#include "confdefs.h"
3594
/* Override any gcc2 internal prototype to avoid an error. */
3595
/* We use char because int might match the return type of a gcc2
3596
builtin and then its argument prototype would still apply. */
3603
if { (eval echo configure:3604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3605
eval "ac_cv_lib_$ac_lib_var=yes"
3607
echo "configure: failed program was:" >&5
3608
cat conftest.$ac_ext >&5
3610
eval "ac_cv_lib_$ac_lib_var=no"
3613
LIBS="$ac_save_LIBS"
3616
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3617
echo "$ac_t""yes" 1>&6
3618
X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3620
echo "$ac_t""no" 1>&6
3623
if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3624
echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
3625
echo "configure:3626: checking for dnet_ntoa in -ldnet_stub" >&5
3626
ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3627
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3628
echo $ac_n "(cached) $ac_c" 1>&6
3630
ac_save_LIBS="$LIBS"
3631
LIBS="-ldnet_stub $LIBS"
3632
cat > conftest.$ac_ext <<EOF
3633
#line 3634 "configure"
3634
#include "confdefs.h"
3635
/* Override any gcc2 internal prototype to avoid an error. */
3636
/* We use char because int might match the return type of a gcc2
3637
builtin and then its argument prototype would still apply. */
3644
if { (eval echo configure:3645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3646
eval "ac_cv_lib_$ac_lib_var=yes"
3648
echo "configure: failed program was:" >&5
3649
cat conftest.$ac_ext >&5
3651
eval "ac_cv_lib_$ac_lib_var=no"
3654
LIBS="$ac_save_LIBS"
3657
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3658
echo "$ac_t""yes" 1>&6
3659
X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3661
echo "$ac_t""no" 1>&6
3665
echo $ac_n "checking for inet_ntoa""... $ac_c" 1>&6
3666
echo "configure:3667: checking for inet_ntoa" >&5
3667
if eval "test \"`echo '$''{'ac_cv_func_inet_ntoa'+set}'`\" = set"; then
3668
echo $ac_n "(cached) $ac_c" 1>&6
3670
cat > conftest.$ac_ext <<EOF
3671
#line 3672 "configure"
3672
#include "confdefs.h"
3673
/* System header to define __stub macros and hopefully few prototypes,
3674
which can conflict with char inet_ntoa(); below. */
3676
/* Override any gcc2 internal prototype to avoid an error. */
3677
/* We use char because int might match the return type of a gcc2
3678
builtin and then its argument prototype would still apply. */
3683
/* The GNU C library defines this for functions which it implements
3684
to always fail with ENOSYS. Some functions are actually named
3685
something starting with __ and the normal name is an alias. */
3686
#if defined (__stub_inet_ntoa) || defined (__stub___inet_ntoa)
3694
if { (eval echo configure:3695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3696
eval "ac_cv_func_inet_ntoa=yes"
3698
echo "configure: failed program was:" >&5
3699
cat conftest.$ac_ext >&5
3701
eval "ac_cv_func_inet_ntoa=no"
3706
if eval "test \"`echo '$ac_cv_func_'inet_ntoa`\" = yes"; then
3707
echo "$ac_t""yes" 1>&6
3710
echo "$ac_t""no" 1>&6
3713
if test $ac_cv_func_inet_ntoa = no; then
3714
echo $ac_n "checking for inet_ntoa in -lnsl""... $ac_c" 1>&6
3715
echo "configure:3716: checking for inet_ntoa in -lnsl" >&5
3716
ac_lib_var=`echo nsl'_'inet_ntoa | sed 'y%./+-%__p_%'`
3717
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3718
echo $ac_n "(cached) $ac_c" 1>&6
3720
ac_save_LIBS="$LIBS"
3722
cat > conftest.$ac_ext <<EOF
3723
#line 3724 "configure"
3724
#include "confdefs.h"
3725
/* Override any gcc2 internal prototype to avoid an error. */
3726
/* We use char because int might match the return type of a gcc2
3727
builtin and then its argument prototype would still apply. */
3734
if { (eval echo configure:3735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3736
eval "ac_cv_lib_$ac_lib_var=yes"
3738
echo "configure: failed program was:" >&5
3739
cat conftest.$ac_ext >&5
3741
eval "ac_cv_lib_$ac_lib_var=no"
3744
LIBS="$ac_save_LIBS"
3747
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3748
echo "$ac_t""yes" 1>&6
3749
X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3751
echo "$ac_t""no" 1>&6
3755
echo $ac_n "checking for connect""... $ac_c" 1>&6
3756
echo "configure:3757: checking for connect" >&5
3757
if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3758
echo $ac_n "(cached) $ac_c" 1>&6
3760
cat > conftest.$ac_ext <<EOF
3761
#line 3762 "configure"
3762
#include "confdefs.h"
3763
/* System header to define __stub macros and hopefully few prototypes,
3764
which can conflict with char connect(); below. */
3766
/* Override any gcc2 internal prototype to avoid an error. */
3767
/* We use char because int might match the return type of a gcc2
3768
builtin and then its argument prototype would still apply. */
3773
/* The GNU C library defines this for functions which it implements
3774
to always fail with ENOSYS. Some functions are actually named
3775
something starting with __ and the normal name is an alias. */
3776
#if defined (__stub_connect) || defined (__stub___connect)
3784
if { (eval echo configure:3785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3786
eval "ac_cv_func_connect=yes"
3788
echo "configure: failed program was:" >&5
3789
cat conftest.$ac_ext >&5
3791
eval "ac_cv_func_connect=no"
3796
if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3797
echo "$ac_t""yes" 1>&6
3800
echo "$ac_t""no" 1>&6
3803
if test $ac_cv_func_connect = no; then
3804
echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3805
echo "configure:3806: checking for connect in -lsocket" >&5
3806
ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3807
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3808
echo $ac_n "(cached) $ac_c" 1>&6
3810
ac_save_LIBS="$LIBS"
3811
LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
3812
cat > conftest.$ac_ext <<EOF
3813
#line 3814 "configure"
3814
#include "confdefs.h"
3815
/* Override any gcc2 internal prototype to avoid an error. */
3816
/* We use char because int might match the return type of a gcc2
3817
builtin and then its argument prototype would still apply. */
3824
if { (eval echo configure:3825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3826
eval "ac_cv_lib_$ac_lib_var=yes"
3828
echo "configure: failed program was:" >&5
3829
cat conftest.$ac_ext >&5
3831
eval "ac_cv_lib_$ac_lib_var=no"
3834
LIBS="$ac_save_LIBS"
3837
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3838
echo "$ac_t""yes" 1>&6
3839
X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
3841
echo "$ac_t""no" 1>&6
3846
echo $ac_n "checking for remove""... $ac_c" 1>&6
3847
echo "configure:3848: checking for remove" >&5
3848
if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
3849
echo $ac_n "(cached) $ac_c" 1>&6
3851
cat > conftest.$ac_ext <<EOF
3852
#line 3853 "configure"
3853
#include "confdefs.h"
3854
/* System header to define __stub macros and hopefully few prototypes,
3855
which can conflict with char remove(); below. */
3857
/* Override any gcc2 internal prototype to avoid an error. */
3858
/* We use char because int might match the return type of a gcc2
3859
builtin and then its argument prototype would still apply. */
3864
/* The GNU C library defines this for functions which it implements
3865
to always fail with ENOSYS. Some functions are actually named
3866
something starting with __ and the normal name is an alias. */
3867
#if defined (__stub_remove) || defined (__stub___remove)
3875
if { (eval echo configure:3876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3877
eval "ac_cv_func_remove=yes"
3879
echo "configure: failed program was:" >&5
3880
cat conftest.$ac_ext >&5
3882
eval "ac_cv_func_remove=no"
3887
if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
3888
echo "$ac_t""yes" 1>&6
3891
echo "$ac_t""no" 1>&6
3894
if test $ac_cv_func_remove = no; then
3895
echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
3896
echo "configure:3897: checking for remove in -lposix" >&5
3897
ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
3898
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3899
echo $ac_n "(cached) $ac_c" 1>&6
3901
ac_save_LIBS="$LIBS"
3902
LIBS="-lposix $LIBS"
3903
cat > conftest.$ac_ext <<EOF
3904
#line 3905 "configure"
3905
#include "confdefs.h"
3906
/* Override any gcc2 internal prototype to avoid an error. */
3907
/* We use char because int might match the return type of a gcc2
3908
builtin and then its argument prototype would still apply. */
3915
if { (eval echo configure:3916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3917
eval "ac_cv_lib_$ac_lib_var=yes"
3919
echo "configure: failed program was:" >&5
3920
cat conftest.$ac_ext >&5
3922
eval "ac_cv_lib_$ac_lib_var=no"
3925
LIBS="$ac_save_LIBS"
3928
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3929
echo "$ac_t""yes" 1>&6
3930
X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
3932
echo "$ac_t""no" 1>&6
3937
# BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
3938
echo $ac_n "checking for shmat""... $ac_c" 1>&6
3939
echo "configure:3940: checking for shmat" >&5
3940
if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
3941
echo $ac_n "(cached) $ac_c" 1>&6
3943
cat > conftest.$ac_ext <<EOF
3944
#line 3945 "configure"
3945
#include "confdefs.h"
3946
/* System header to define __stub macros and hopefully few prototypes,
3947
which can conflict with char shmat(); below. */
3949
/* Override any gcc2 internal prototype to avoid an error. */
3950
/* We use char because int might match the return type of a gcc2
3951
builtin and then its argument prototype would still apply. */
3956
/* The GNU C library defines this for functions which it implements
3957
to always fail with ENOSYS. Some functions are actually named
3958
something starting with __ and the normal name is an alias. */
3959
#if defined (__stub_shmat) || defined (__stub___shmat)
3967
if { (eval echo configure:3968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3969
eval "ac_cv_func_shmat=yes"
3971
echo "configure: failed program was:" >&5
3972
cat conftest.$ac_ext >&5
3974
eval "ac_cv_func_shmat=no"
3979
if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
3980
echo "$ac_t""yes" 1>&6
3983
echo "$ac_t""no" 1>&6
3984
echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
3985
echo "configure:3986: checking for shmat in -lipc" >&5
3986
ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
3987
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3988
echo $ac_n "(cached) $ac_c" 1>&6
3990
ac_save_LIBS="$LIBS"
3992
cat > conftest.$ac_ext <<EOF
3993
#line 3994 "configure"
3994
#include "confdefs.h"
3995
/* Override any gcc2 internal prototype to avoid an error. */
3996
/* We use char because int might match the return type of a gcc2
3997
builtin and then its argument prototype would still apply. */
4004
if { (eval echo configure:4005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4006
eval "ac_cv_lib_$ac_lib_var=yes"
4008
echo "configure: failed program was:" >&5
4009
cat conftest.$ac_ext >&5
4011
eval "ac_cv_lib_$ac_lib_var=no"
4014
LIBS="$ac_save_LIBS"
4017
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4018
echo "$ac_t""yes" 1>&6
4019
X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
4021
echo "$ac_t""no" 1>&6
4027
# Solaris 2.6 needs -lresolv for res_init
4028
echo $ac_n "checking for res_init""... $ac_c" 1>&6
4029
echo "configure:4030: checking for res_init" >&5
4030
if eval "test \"`echo '$''{'ac_cv_func_res_init'+set}'`\" = set"; then
4031
echo $ac_n "(cached) $ac_c" 1>&6
4033
cat > conftest.$ac_ext <<EOF
4034
#line 4035 "configure"
4035
#include "confdefs.h"
4036
/* System header to define __stub macros and hopefully few prototypes,
4037
which can conflict with char res_init(); below. */
4039
/* Override any gcc2 internal prototype to avoid an error. */
4040
/* We use char because int might match the return type of a gcc2
4041
builtin and then its argument prototype would still apply. */
4046
/* The GNU C library defines this for functions which it implements
4047
to always fail with ENOSYS. Some functions are actually named
4048
something starting with __ and the normal name is an alias. */
4049
#if defined (__stub_res_init) || defined (__stub___res_init)
4057
if { (eval echo configure:4058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4059
eval "ac_cv_func_res_init=yes"
4061
echo "configure: failed program was:" >&5
4062
cat conftest.$ac_ext >&5
4064
eval "ac_cv_func_res_init=no"
4069
if eval "test \"`echo '$ac_cv_func_'res_init`\" = yes"; then
4070
echo "$ac_t""yes" 1>&6
4073
echo "$ac_t""no" 1>&6
4074
echo $ac_n "checking for res_init in -lresolv""... $ac_c" 1>&6
4075
echo "configure:4076: checking for res_init in -lresolv" >&5
4076
ac_lib_var=`echo resolv'_'res_init | sed 'y%./+-%__p_%'`
4077
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4078
echo $ac_n "(cached) $ac_c" 1>&6
4080
ac_save_LIBS="$LIBS"
4081
LIBS="-lresolv $LIBS"
4082
cat > conftest.$ac_ext <<EOF
4083
#line 4084 "configure"
4084
#include "confdefs.h"
4085
/* Override any gcc2 internal prototype to avoid an error. */
4086
/* We use char because int might match the return type of a gcc2
4087
builtin and then its argument prototype would still apply. */
4094
if { (eval echo configure:4095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4096
eval "ac_cv_lib_$ac_lib_var=yes"
4098
echo "configure: failed program was:" >&5
4099
cat conftest.$ac_ext >&5
4101
eval "ac_cv_lib_$ac_lib_var=no"
4104
LIBS="$ac_save_LIBS"
4107
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4108
echo "$ac_t""yes" 1>&6
4109
X_EXTRA_LIBS="$X_EXTRA_LIBS -lresolv"
4111
echo "$ac_t""no" 1>&6
4117
LIBSOCKET="$X_EXTRA_LIBS"
4120
echo $ac_n "checking for killpg in -lucb""... $ac_c" 1>&6
4121
echo "configure:4122: checking for killpg in -lucb" >&5
4122
ac_lib_var=`echo ucb'_'killpg | sed 'y%./+-%__p_%'`
4123
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4124
echo $ac_n "(cached) $ac_c" 1>&6
4126
ac_save_LIBS="$LIBS"
4128
cat > conftest.$ac_ext <<EOF
4129
#line 4130 "configure"
4130
#include "confdefs.h"
4131
/* Override any gcc2 internal prototype to avoid an error. */
4132
/* We use char because int might match the return type of a gcc2
4133
builtin and then its argument prototype would still apply. */
4140
if { (eval echo configure:4141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4142
eval "ac_cv_lib_$ac_lib_var=yes"
4144
echo "configure: failed program was:" >&5
4145
cat conftest.$ac_ext >&5
4147
eval "ac_cv_lib_$ac_lib_var=no"
4150
LIBS="$ac_save_LIBS"
4153
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4154
echo "$ac_t""yes" 1>&6
4157
echo "$ac_t""no" 1>&6
4161
case $host in *-*-lynxos* )
4162
echo $ac_n "checking LynxOS header file wrappers""... $ac_c" 1>&6
4163
echo "configure:4164: checking LynxOS header file wrappers" >&5
4164
CFLAGS="$CFLAGS -D__NO_INCLUDE_WARN__"
4165
echo "$ac_t""disabled" 1>&6
4166
echo $ac_n "checking for gethostbyname in -lbsd""... $ac_c" 1>&6
4167
echo "configure:4168: checking for gethostbyname in -lbsd" >&5
4168
ac_lib_var=`echo bsd'_'gethostbyname | sed 'y%./+-%__p_%'`
4169
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4170
echo $ac_n "(cached) $ac_c" 1>&6
4172
ac_save_LIBS="$LIBS"
4174
cat > conftest.$ac_ext <<EOF
4175
#line 4176 "configure"
4176
#include "confdefs.h"
4177
/* Override any gcc2 internal prototype to avoid an error. */
4178
/* We use char because int might match the return type of a gcc2
4179
builtin and then its argument prototype would still apply. */
4180
char gethostbyname();
4186
if { (eval echo configure:4187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4188
eval "ac_cv_lib_$ac_lib_var=yes"
4190
echo "configure: failed program was:" >&5
4191
cat conftest.$ac_ext >&5
4193
eval "ac_cv_lib_$ac_lib_var=no"
4196
LIBS="$ac_save_LIBS"
4199
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4200
echo "$ac_t""yes" 1>&6
4203
echo "$ac_t""no" 1>&6
4208
echo $ac_n "checking size of int""... $ac_c" 1>&6
4209
echo "configure:4210: checking size of int" >&5
4210
if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
4211
echo $ac_n "(cached) $ac_c" 1>&6
4213
if test "$cross_compiling" = yes; then
4216
cat > conftest.$ac_ext <<EOF
4217
#line 4218 "configure"
4218
#include "confdefs.h"
4222
FILE *f=fopen("conftestval", "w");
4224
fprintf(f, "%d\n", sizeof(int));
4228
if { (eval echo configure:4229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4230
ac_cv_sizeof_int=`cat conftestval`
4232
echo "configure: failed program was:" >&5
4233
cat conftest.$ac_ext >&5
4241
echo "$ac_t""$ac_cv_sizeof_int" 1>&6
4242
cat >> confdefs.h <<EOF
4243
#define SIZEOF_INT $ac_cv_sizeof_int
4246
echo $ac_n "checking size of long""... $ac_c" 1>&6
4247
echo "configure:4248: checking size of long" >&5
4248
if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
4249
echo $ac_n "(cached) $ac_c" 1>&6
4251
if test "$cross_compiling" = yes; then
4254
cat > conftest.$ac_ext <<EOF
4255
#line 4256 "configure"
4256
#include "confdefs.h"
4260
FILE *f=fopen("conftestval", "w");
4262
fprintf(f, "%d\n", sizeof(long));
4266
if { (eval echo configure:4267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4268
ac_cv_sizeof_long=`cat conftestval`
4270
echo "configure: failed program was:" >&5
4271
cat conftest.$ac_ext >&5
4279
echo "$ac_t""$ac_cv_sizeof_long" 1>&6
4280
cat >> confdefs.h <<EOF
4281
#define SIZEOF_LONG $ac_cv_sizeof_long
4284
echo $ac_n "checking size of char *""... $ac_c" 1>&6
4285
echo "configure:4286: checking size of char *" >&5
4286
if eval "test \"`echo '$''{'ac_cv_sizeof_char_p'+set}'`\" = set"; then
4287
echo $ac_n "(cached) $ac_c" 1>&6
4289
if test "$cross_compiling" = yes; then
4290
ac_cv_sizeof_char_p=4
4292
cat > conftest.$ac_ext <<EOF
4293
#line 4294 "configure"
4294
#include "confdefs.h"
4298
FILE *f=fopen("conftestval", "w");
4300
fprintf(f, "%d\n", sizeof(char *));
4304
if { (eval echo configure:4305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4306
ac_cv_sizeof_char_p=`cat conftestval`
4308
echo "configure: failed program was:" >&5
4309
cat conftest.$ac_ext >&5
4311
ac_cv_sizeof_char_p=0
4317
echo "$ac_t""$ac_cv_sizeof_char_p" 1>&6
4318
cat >> confdefs.h <<EOF
4319
#define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
4324
echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4325
echo "configure:4326: checking for dlopen in -ldl" >&5
4326
ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4327
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4328
echo $ac_n "(cached) $ac_c" 1>&6
4330
ac_save_LIBS="$LIBS"
4332
cat > conftest.$ac_ext <<EOF
4333
#line 4334 "configure"
4334
#include "confdefs.h"
4335
/* Override any gcc2 internal prototype to avoid an error. */
4336
/* We use char because int might match the return type of a gcc2
4337
builtin and then its argument prototype would still apply. */
4344
if { (eval echo configure:4345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4346
eval "ac_cv_lib_$ac_lib_var=yes"
4348
echo "configure: failed program was:" >&5
4349
cat conftest.$ac_ext >&5
4351
eval "ac_cv_lib_$ac_lib_var=no"
4354
LIBS="$ac_save_LIBS"
4357
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4358
echo "$ac_t""yes" 1>&6
4361
ac_cv_have_dlfcn=yes
4364
echo "$ac_t""no" 1>&6
4368
echo $ac_n "checking for shl_unload in -ldld""... $ac_c" 1>&6
4369
echo "configure:4370: checking for shl_unload in -ldld" >&5
4370
ac_lib_var=`echo dld'_'shl_unload | sed 'y%./+-%__p_%'`
4371
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4372
echo $ac_n "(cached) $ac_c" 1>&6
4374
ac_save_LIBS="$LIBS"
4376
cat > conftest.$ac_ext <<EOF
4377
#line 4378 "configure"
4378
#include "confdefs.h"
4379
/* Override any gcc2 internal prototype to avoid an error. */
4380
/* We use char because int might match the return type of a gcc2
4381
builtin and then its argument prototype would still apply. */
4388
if { (eval echo configure:4389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4390
eval "ac_cv_lib_$ac_lib_var=yes"
4392
echo "configure: failed program was:" >&5
4393
cat conftest.$ac_ext >&5
4395
eval "ac_cv_lib_$ac_lib_var=no"
4398
LIBS="$ac_save_LIBS"
4401
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4402
echo "$ac_t""yes" 1>&6
4405
ac_cv_have_shload=yes
4408
echo "$ac_t""no" 1>&6
4417
echo $ac_n "checking for libz""... $ac_c" 1>&6
4418
echo "configure:4419: checking for libz" >&5
4419
if eval "test \"`echo '$''{'ac_cv_lib_z'+set}'`\" = set"; then
4420
echo $ac_n "(cached) $ac_c" 1>&6
4424
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4425
ac_cpp='$CPP $CPPFLAGS'
4426
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4427
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4428
cross_compiling=$ac_cv_prog_cc_cross
4430
kde_save_LIBS="$LIBS"
4431
LIBS="$all_libraries $USER_LDFLAGS -lz $LIBSOCKET"
4432
kde_save_CFLAGS="$CFLAGS"
4433
CFLAGS="$CFLAGS $all_includes $USER_INCLUDES"
4434
cat > conftest.$ac_ext <<EOF
4435
#line 4436 "configure"
4436
#include "confdefs.h"
4441
return (zlibVersion() == ZLIB_VERSION);
4444
if { (eval echo configure:4445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4446
eval "ac_cv_lib_z='-lz'"
4448
echo "configure: failed program was:" >&5
4449
cat conftest.$ac_ext >&5
4451
eval "ac_cv_lib_z=no"
4454
LIBS="$kde_save_LIBS"
4455
CFLAGS="$kde_save_CFLAGS"
4458
if test ! "$ac_cv_lib_z" = no; then
4459
cat >> confdefs.h <<EOF
4465
echo "$ac_t""$ac_cv_lib_z" 1>&6
4467
{ echo "configure: error: not found. Check your installation and look into config.log" 1>&2; exit 1; }
4473
echo $ac_n "checking for X""... $ac_c" 1>&6
4474
echo "configure:4475: checking for X" >&5
4477
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4478
ac_cpp='$CPP $CPPFLAGS'
4479
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4480
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4481
cross_compiling=$ac_cv_prog_cc_cross
4483
if eval "test \"`echo '$''{'kde_cv_have_x'+set}'`\" = set"; then
4484
echo $ac_n "(cached) $ac_c" 1>&6
4486
# One or both of the vars are not set, and there is no cached value.
4487
if test "{$x_includes+set}" = set || test "$x_includes" = NONE; then
4490
kde_x_includes=$x_includes
4492
if test "{$x_libraries+set}" = set || test "$x_libraries" = NONE; then
4495
kde_x_libraries=$x_libraries
4498
# below we use the standard autoconf calls
4499
ac_x_libraries=$kde_x_libraries
4500
ac_x_includes=$kde_x_includes
4502
if test "$ac_x_includes" = NO; then
4503
# Guess where to find include files, by looking for this one X11 .h file.
4504
test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
4506
# First, try using that file with no special directory specified.
4507
cat > conftest.$ac_ext <<EOF
4508
#line 4509 "configure"
4509
#include "confdefs.h"
4510
#include <$x_direct_test_include>
4512
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4513
{ (eval echo configure:4514: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4514
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4515
if test -z "$ac_err"; then
4517
# We can compile using X headers with no special include directory.
4521
echo "configure: failed program was:" >&5
4522
cat conftest.$ac_ext >&5
4524
# Look for the header file in a standard set of common directories.
4525
# Check X11 before X11Rn because it is often a symlink to the current release.
4528
/usr/X11R6/include \
4529
/usr/X11R5/include \
4530
/usr/X11R4/include \
4533
/usr/include/X11R6 \
4534
/usr/include/X11R5 \
4535
/usr/include/X11R4 \
4537
/usr/local/X11/include \
4538
/usr/local/X11R6/include \
4539
/usr/local/X11R5/include \
4540
/usr/local/X11R4/include \
4542
/usr/local/include/X11 \
4543
/usr/local/include/X11R6 \
4544
/usr/local/include/X11R5 \
4545
/usr/local/include/X11R4 \
4549
/usr/XFree86/include/X11 \
4552
/usr/local/include \
4553
/usr/unsupported/include \
4554
/usr/athena/include \
4555
/usr/local/x11r5/include \
4556
/usr/lpp/Xamples/include \
4558
/usr/openwin/include \
4559
/usr/openwin/share/include \
4562
if test -r "$ac_dir/$x_direct_test_include"; then
4563
ac_x_includes=$ac_dir
4569
fi # $ac_x_includes = NO
4571
if test "$ac_x_libraries" = NO; then
4572
# Check for the libraries.
4574
test -z "$x_direct_test_library" && x_direct_test_library=Xt
4575
test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
4577
# See if we find them without any special options.
4578
# Don't add to $LIBS permanently.
4579
ac_save_LIBS="$LIBS"
4580
LIBS="-l$x_direct_test_library $LIBS"
4581
cat > conftest.$ac_ext <<EOF
4582
#line 4583 "configure"
4583
#include "confdefs.h"
4586
${x_direct_test_function}()
4589
if { (eval echo configure:4590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4591
LIBS="$ac_save_LIBS"
4592
# We can link X programs with no special library path.
4595
echo "configure: failed program was:" >&5
4596
cat conftest.$ac_ext >&5
4598
LIBS="$ac_save_LIBS"
4599
# First see if replacing the include by lib works.
4600
# Check X11 before X11Rn because it is often a symlink to the current release.
4601
for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
4612
/usr/local/X11/lib \
4613
/usr/local/X11R6/lib \
4614
/usr/local/X11R5/lib \
4615
/usr/local/X11R4/lib \
4617
/usr/local/lib/X11 \
4618
/usr/local/lib/X11R6 \
4619
/usr/local/lib/X11R5 \
4620
/usr/local/lib/X11R4 \
4624
/usr/XFree86/lib/X11 \
4628
/usr/unsupported/lib \
4630
/usr/local/x11r5/lib \
4631
/usr/lpp/Xamples/lib \
4635
/usr/openwin/share/lib \
4638
for ac_extension in a so sl; do
4639
if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
4640
ac_x_libraries=$ac_dir
4647
fi # $ac_x_libraries = NO
4654
if mkdir conftestdir; then
4656
# Make sure to not put "make" in the Imakefile rules, since we grep it out.
4657
cat > Imakefile <<'EOF'
4659
@echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
4661
if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
4662
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4663
eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
4664
# Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4665
for ac_extension in a so sl; do
4666
if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
4667
test -f $ac_im_libdir/libX11.$ac_extension; then
4668
ac_im_usrlibdir=$ac_im_libdir; break
4671
# Screen out bogus values from the imake configuration. They are
4672
# bogus both because they are the default anyway, and because
4673
# using them would break gcc on systems where it needs fixed includes.
4674
case "$ac_im_incroot" in
4676
*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
4678
case "$ac_im_usrlibdir" in
4680
*) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
4687
if test -z "$ac_x_includes"; then
4690
if test -z "$ac_x_libraries"; then
4691
ac_x_libraries="/usr/lib"
4694
#from now on we use our own again
4696
# when the user already gave --x-includes, we ignore
4697
# what the standard autoconf macros told us.
4698
if test "$kde_x_includes" = NO; then
4699
kde_x_includes=$ac_x_includes
4702
# for --x-libraries too
4703
if test "$kde_x_libraries" = NO; then
4704
kde_x_libraries=$ac_x_libraries
4707
if test "$kde_x_includes" = NO; then
4708
{ echo "configure: error: Can't find X includes. Please check your installation and add the correct paths!" 1>&2; exit 1; }
4711
if test "$kde_x_libraries" = NO; then
4712
{ echo "configure: error: Can't find X libraries. Please check your installation and add the correct paths!" 1>&2; exit 1; }
4715
# Record where we found X for the cache.
4716
kde_cv_have_x="have_x=yes \
4717
kde_x_includes=$kde_x_includes kde_x_libraries=$kde_x_libraries"
4720
eval "$kde_cv_have_x"
4722
if test "$have_x" != yes; then
4723
echo "$ac_t""$have_x" 1>&6
4726
echo "$ac_t""libraries $kde_x_libraries, headers $kde_x_includes" 1>&6
4729
if test -z "$kde_x_includes" || test "x$kde_x_includes" = xNONE; then
4731
x_includes="."; else
4732
x_includes=$kde_x_includes
4733
X_INCLUDES="-I$x_includes"
4736
if test -z "$kde_x_libraries" || test "x$kde_x_libraries" = xNONE; then
4738
x_libraries="/usr/lib"; else
4739
x_libraries=$kde_x_libraries
4740
X_LDFLAGS="-L$x_libraries"
4742
all_includes="$X_INCLUDES"
4743
all_libraries="$X_LDFLAGS"
4750
# Check for libraries that X11R6 Xt/Xaw programs need.
4751
ac_save_LDFLAGS="$LDFLAGS"
4752
LDFLAGS="$LDFLAGS $X_LDFLAGS"
4753
# SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4754
# check for ICE first), but we must link in the order -lSM -lICE or
4755
# we get undefined symbols. So assume we have SM if we have ICE.
4756
# These have to be linked with before -lX11, unlike the other
4757
# libraries we check for below, so use a different variable.
4758
# --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
4759
echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
4760
echo "configure:4761: checking for IceConnectionNumber in -lICE" >&5
4761
ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
4762
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4763
echo $ac_n "(cached) $ac_c" 1>&6
4765
ac_save_LIBS="$LIBS"
4766
LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4767
cat > conftest.$ac_ext <<EOF
4768
#line 4769 "configure"
4769
#include "confdefs.h"
4770
/* Override any gcc2 internal prototype to avoid an error. */
4771
/* We use char because int might match the return type of a gcc2
4772
builtin and then its argument prototype would still apply. */
4773
char IceConnectionNumber();
4776
IceConnectionNumber()
4779
if { (eval echo configure:4780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4781
eval "ac_cv_lib_$ac_lib_var=yes"
4783
echo "configure: failed program was:" >&5
4784
cat conftest.$ac_ext >&5
4786
eval "ac_cv_lib_$ac_lib_var=no"
4789
LIBS="$ac_save_LIBS"
4792
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4793
echo "$ac_t""yes" 1>&6
4796
echo "$ac_t""no" 1>&6
4800
LDFLAGS="$ac_save_LDFLAGS"
4804
LIB_X11='-lX11 $(LIBSOCKET)'
4807
echo $ac_n "checking for libXext""... $ac_c" 1>&6
4808
echo "configure:4809: checking for libXext" >&5
4809
if eval "test \"`echo '$''{'kde_cv_have_libXext'+set}'`\" = set"; then
4810
echo $ac_n "(cached) $ac_c" 1>&6
4813
kde_ldflags_safe="$LDFLAGS"
4814
kde_libs_safe="$LIBS"
4816
LDFLAGS="$LDFLAGS $X_LDFLAGS $USER_LDFLAGS"
4817
LIBS="-lXext -lX11 $LIBSOCKET"
4819
cat > conftest.$ac_ext <<EOF
4820
#line 4821 "configure"
4821
#include "confdefs.h"
4827
printf("hello Xext\n");
4831
if { (eval echo configure:4832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4833
kde_cv_have_libXext=yes
4835
echo "configure: failed program was:" >&5
4836
cat conftest.$ac_ext >&5
4838
kde_cv_have_libXext=no
4843
LDFLAGS=$kde_ldflags_safe
4849
echo "$ac_t""$kde_cv_have_libXext" 1>&6
4851
if test "$kde_cv_have_libXext" = "no"; then
4852
{ echo "configure: error: We need a working libXext to proceed. Since configure
4853
can't find it itself, we stop here assuming that make wouldn't find
4854
them either." 1>&2; exit 1; }
4864
kde_qtsubver=`echo "" | sed -e 's#[0-9]\+\.\([0-9]\+\).*#\1#'`
4865
# following is the check if subversion isnļæ½t found in passed argument
4866
if test "$kde_qtsubver" = ""; then
4869
kde_qtver=`echo "" | sed -e 's#^\([0-9]\+\)\..*#\1#'`
4870
if test "$kde_qtver" = "1"; then
4873
# this is the version number fallback to 2.1, unless major version is 1 or 2
4874
if test "$kde_qtver" != "2"; then
4882
if test $kde_qtver = 2; then
4883
if test $kde_qtsubver -gt 0; then
4884
kde_qt_minversion=">= Qt 2.2.2"
4886
kde_qt_minversion=">= Qt 2.0.2"
4889
kde_qt_minversion=">= 1.42 and < 2.0"
4896
if test $kde_qtver = 2; then
4897
if test $kde_qtsubver -gt 0; then
4898
kde_qt_verstring="QT_VERSION >= 222"
4900
kde_qt_verstring="QT_VERSION >= 200"
4903
kde_qt_verstring="QT_VERSION >= 142 && QT_VERSION < 200"
4909
if test $kde_qtver = 2; then
4910
kde_qt_dirs="$QTDIR /usr/lib/qt2 /usr/lib/qt"
4912
kde_qt_dirs="$QTDIR /usr/lib/qt"
4918
echo $ac_n "checking for libpng""... $ac_c" 1>&6
4919
echo "configure:4920: checking for libpng" >&5
4920
if eval "test \"`echo '$''{'ac_cv_lib_png'+set}'`\" = set"; then
4921
echo $ac_n "(cached) $ac_c" 1>&6
4924
kde_save_LIBS="$LIBS"
4925
LIBS="$LIBS $all_libraries $USER_LDFLAGS -lpng $LIBZ -lm -lX11 $LIBSOCKET"
4926
kde_save_CFLAGS="$CFLAGS"
4927
CFLAGS="$CFLAGS $all_includes $USER_INCLUDES"
4929
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4930
ac_cpp='$CPP $CPPFLAGS'
4931
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4932
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4933
cross_compiling=$ac_cv_prog_cc_cross
4935
cat > conftest.$ac_ext <<EOF
4936
#line 4937 "configure"
4937
#include "confdefs.h"
4943
png_structp png_ptr = png_create_read_struct( /* image ptr */
4944
PNG_LIBPNG_VER_STRING, 0, 0, 0 );
4945
return( png_ptr != 0 );
4949
if { (eval echo configure:4950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4951
eval "ac_cv_lib_png='-lpng $LIBZ -lm'"
4953
echo "configure: failed program was:" >&5
4954
cat conftest.$ac_ext >&5
4956
eval "ac_cv_lib_png=no"
4960
LIBS="$kde_save_LIBS"
4961
CFLAGS="$kde_save_CFLAGS"
4964
if eval "test ! \"`echo $ac_cv_lib_png`\" = no"; then
4965
cat >> confdefs.h <<EOF
4966
#define HAVE_LIBPNG 1
4969
LIBPNG="$ac_cv_lib_png"
4971
echo "$ac_t""$ac_cv_lib_png" 1>&6
4973
echo "$ac_t""no" 1>&6
4980
echo $ac_n "checking for libjpeg6b""... $ac_c" 1>&6
4981
echo "configure:4982: checking for libjpeg6b" >&5
4982
if eval "test \"`echo '$''{'ac_cv_lib_jpeg_6b'+set}'`\" = set"; then
4983
echo $ac_n "(cached) $ac_c" 1>&6
4987
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4988
ac_cpp='$CPP $CPPFLAGS'
4989
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4990
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4991
cross_compiling=$ac_cv_prog_cc_cross
4993
ac_save_LIBS="$LIBS"
4994
LIBS="$all_libraries $USER_LDFLAGS -ljpeg6b -lm"
4995
ac_save_CFLAGS="$CFLAGS"
4996
CFLAGS="$CFLAGS $all_includes $USER_INCLUDES"
4997
cat > conftest.$ac_ext <<EOF
4998
#line 4999 "configure"
4999
#include "confdefs.h"
5000
/* Override any gcc2 internal prototype to avoid an error. */
5001
struct jpeg_decompress_struct;
5002
typedef struct jpeg_decompress_struct * j_decompress_ptr;
5007
void jpeg_CreateDecompress(j_decompress_ptr cinfo,
5008
int version, size_t structsize);
5012
/* We use char because int might match the return type of a gcc2
5013
builtin and then its argument prototype would still apply. */
5016
jpeg_CreateDecompress(0L, 0, 0);
5019
if { (eval echo configure:5020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5021
eval "ac_cv_lib_jpeg_6b=-ljpeg6b"
5023
echo "configure: failed program was:" >&5
5024
cat conftest.$ac_ext >&5
5026
eval "ac_cv_lib_jpeg_6b=no"
5029
LIBS="$ac_save_LIBS"
5030
CFLAGS="$ac_save_CFLAGS"
5035
if eval "test ! \"`echo $ac_cv_lib_jpeg_6b`\" = no"; then
5036
LIBJPEG="$ac_cv_lib_jpeg_6b"
5037
echo "$ac_t""$ac_cv_lib_jpeg_6b" 1>&6
5039
echo "$ac_t""no" 1>&6
5041
echo $ac_n "checking for libjpeg""... $ac_c" 1>&6
5042
echo "configure:5043: checking for libjpeg" >&5
5043
if eval "test \"`echo '$''{'ac_cv_lib_jpeg_normal'+set}'`\" = set"; then
5044
echo $ac_n "(cached) $ac_c" 1>&6
5048
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5049
ac_cpp='$CPP $CPPFLAGS'
5050
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5051
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5052
cross_compiling=$ac_cv_prog_cc_cross
5054
ac_save_LIBS="$LIBS"
5055
LIBS="$all_libraries $USER_LDFLAGS -ljpeg -lm"
5056
ac_save_CFLAGS="$CFLAGS"
5057
CFLAGS="$CFLAGS $all_includes $USER_INCLUDES"
5058
cat > conftest.$ac_ext <<EOF
5059
#line 5060 "configure"
5060
#include "confdefs.h"
5061
/* Override any gcc2 internal prototype to avoid an error. */
5062
struct jpeg_decompress_struct;
5063
typedef struct jpeg_decompress_struct * j_decompress_ptr;
5068
void jpeg_CreateDecompress(j_decompress_ptr cinfo,
5069
int version, size_t structsize);
5073
/* We use char because int might match the return type of a gcc2
5074
builtin and then its argument prototype would still apply. */
5077
jpeg_CreateDecompress(0L, 0, 0);
5080
if { (eval echo configure:5081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5082
eval "ac_cv_lib_jpeg_normal=-ljpeg"
5084
echo "configure: failed program was:" >&5
5085
cat conftest.$ac_ext >&5
5087
eval "ac_cv_lib_jpeg_normal=no"
5090
LIBS="$ac_save_LIBS"
5091
CFLAGS="$ac_save_CFLAGS"
5096
if eval "test ! \"`echo $ac_cv_lib_jpeg_normal`\" = no"; then
5097
LIBJPEG="$ac_cv_lib_jpeg_normal"
5098
echo "$ac_t""$ac_cv_lib_jpeg_normal" 1>&6
5100
echo "$ac_t""no" 1>&6
5102
if test -f "$kde_libraries/libjpeg.so"; then
5103
test -f ./libjpegkde.so || $LN_S $kde_libraries/libjpeg.so ./libjpegkde.so
5104
ac_cv_lib_jpeg="-L\${topdir} -ljpegkde"
5105
else if test -f "$kde_libraries/libjpeg.sl"; then
5106
test -f ./libjpegkde.sl ||$LN_S $kde_libraries/libjpeg.sl ./libjpegkde.sl
5107
ac_cv_lib_jpeg="-L\${topdir} -ljpegkde"
5108
else if test -f "$kde_libraries/libjpeg.a"; then
5109
test -f ./libjpegkde.a || $LN_S $kde_libraries/libjpeg.a ./libjpegkde.a
5110
ac_cv_lib_jpeg="-L\${topdir} -ljpegkde"
5117
LIBJPEG=$ac_cv_lib_jpeg
5126
jpeg_incdirs="/usr/include /usr/local/include $kde_extra_includes"
5129
for i in $jpeg_incdirs;
5133
if test -r "$i/$j"; then
5140
test "x$jpeg_incdir" = xNO && jpeg_incdir=
5142
if test -n "$jpeg_incdir" && test -n "$LIBJPEG" ; then
5143
cat >> confdefs.h <<EOF
5144
#define HAVE_LIBJPEG 1
5148
if test -n "$jpeg_incdir" || test -n "$LIBJPEG" ; then
5149
echo "configure: warning:
5150
There is an installation error in jpeg support. You seem to have only one
5151
of either the headers _or_ the libraries installed. You may need to either
5152
provide correct --with-extra-... options, or the development package of
5153
libjpeg6b. You can get a source package of libjpeg from http://www.ijg.org/
5154
Disabling JPEG support.
5157
echo "configure: warning: libjpeg not found. disable JPEG support." 1>&2
5171
# Check whether --enable-mt or --disable-mt was given.
5172
if test "${enable_mt+set}" = set; then
5173
enableval="$enable_mt"
5174
kde_use_qt_mt=$enableval
5184
if test "x$kde_use_qt_mt" = "xyes"; then
5188
if test "x$GCC" = "xyes"; then
5189
CPPFLAGS="$CPPFLAGS -DQT_THREAD_SUPPORT -pthread"
5190
X_EXTRA_LIBS="$X_EXTRA_LIBS -pthread"
5192
echo "configure: warning: Compiler is not gcc. MT support disabled." 1>&2
5196
echo "configure: warning: MT not yet supported on $host - disabled." 1>&2
5202
kde_qt_was_given=yes
5205
if test -z "$LIBQT_GLOB"; then
5207
LIBQT_GLOB="libqt.*"
5211
if test -z "$LIBQT"; then
5217
if test "x$kde_use_qt_mt" = "xyes"; then
5221
if test "x$GCC" = "xyes"; then
5223
kde_int_qt="-lqt-mt"
5224
LIBQT_GLOB="libqt-mt.*"
5225
USING_QT_MT="using -mt"
5237
if test $kde_qtver = 2; then
5241
LIBQT="$LIBQT $LIBPNG $LIBJPEG"
5244
echo $ac_n "checking for Qt""... $ac_c" 1>&6
5245
echo "configure:5246: checking for Qt" >&5
5247
LIBQT="$LIBQT $X_PRE_LIBS -lXext -lX11 $LIBSM $LIBSOCKET"
5248
ac_qt_includes=NO ac_qt_libraries=NO ac_qt_bindir=NO
5251
# Check whether --with-qt-dir or --without-qt-dir was given.
5252
if test "${with_qt_dir+set}" = set; then
5253
withval="$with_qt_dir"
5254
ac_qt_includes="$withval"/include
5255
ac_qt_libraries="$withval"/lib
5256
ac_qt_bindir="$withval"/bin
5261
# Check whether --with-qt-includes or --without-qt-includes was given.
5262
if test "${with_qt_includes+set}" = set; then
5263
withval="$with_qt_includes"
5265
ac_qt_includes="$withval"
5270
kde_qt_libs_given=no
5272
# Check whether --with-qt-libraries or --without-qt-libraries was given.
5273
if test "${with_qt_libraries+set}" = set; then
5274
withval="$with_qt_libraries"
5275
ac_qt_libraries="$withval"
5276
kde_qt_libs_given=yes
5281
if eval "test \"`echo '$''{'ac_cv_have_qt'+set}'`\" = set"; then
5282
echo $ac_n "(cached) $ac_c" 1>&6
5284
#try to guess Qt locations
5287
for dir in $kde_qt_dirs; do
5288
qt_incdirs="$qt_incdirs $dir/include $dir"
5290
qt_incdirs="$QTINC $qt_incdirs /usr/local/qt/include /usr/include/qt /usr/include /usr/X11R6/include/X11/qt /usr/X11R6/include/qt $x_includes"
5291
if test ! "$ac_qt_includes" = "NO"; then
5292
qt_incdirs="$ac_qt_includes $qt_incdirs"
5295
if test "$kde_qtver" = "2"; then
5296
kde_qt_header=qstyle.h
5298
kde_qt_header=qglobal.h
5303
for i in $qt_incdirs;
5305
for j in $kde_qt_header;
5307
if test -r "$i/$j"; then
5314
ac_qt_includes="$qt_incdir"
5317
for dir in $kde_qt_dirs; do
5318
qt_libdirs="$qt_libdirs $dir/lib $dir"
5320
qt_libdirs="$QTLIB $qt_libdirs /usr/X11R6/lib /usr/lib /usr/local/qt/lib $x_libraries"
5321
if test ! "$ac_qt_libraries" = "NO"; then
5322
qt_libdir=$ac_qt_libraries
5324
qt_libdirs="$ac_qt_libraries $qt_libdirs"
5325
# if the Qt was given, the chance is too big that libqt.* doesn't exist
5327
for dir in $qt_libdirs; do
5328
try="ls -1 $dir/${LIBQT_GLOB}"
5329
if test -n "`$try 2> /dev/null`"; then qt_libdir=$dir; break; else echo "tried $dir" >&5 ; fi
5333
ac_qt_libraries="$qt_libdir"
5337
# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5338
ac_cpp='$CXXCPP $CPPFLAGS'
5339
ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5340
ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5341
cross_compiling=$ac_cv_prog_cxx_cross
5343
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5347
ac_cxxflags_safe="$CXXFLAGS"
5348
ac_ldflags_safe="$LDFLAGS"
5349
ac_libs_safe="$LIBS"
5351
CXXFLAGS="$CXXFLAGS -I$qt_incdir $all_includes"
5352
LDFLAGS="$LDFLAGS -L$qt_libdir $all_libraries $USER_LDFLAGS"
5357
cat > conftest.$ac_ext <<EOF
5358
#include "confdefs.h"
5359
#include <qglobal.h>
5360
#include <qapplication.h>
5362
#include <qobjcoll.h>
5364
if test "$kde_qtver" = "2"; then
5365
cat >> conftest.$ac_ext <<EOF
5367
#include <qstring.h>
5371
if test $kde_qtsubver -gt 0; then
5372
cat >> conftest.$ac_ext <<EOF
5373
#include <qiconview.h>
5379
echo "#if ! ($kde_qt_verstring)" >> conftest.$ac_ext
5380
cat >> conftest.$ac_ext <<EOF
5386
if test "$kde_qtver" = "2"; then
5387
cat >> conftest.$ac_ext <<EOF
5388
QStringList *t = new QStringList();
5390
if test $kde_qtsubver -gt 0; then
5391
cat >> conftest.$ac_ext <<EOF
5393
iv.setWordWrapIconText(false);
5395
s.setLatin1("Elvis is alive", 14);
5396
int magnolia = QEvent::Speech; /* new in 2.2 beta2 */
5400
cat >> conftest.$ac_ext <<EOF
5406
if { (eval echo configure:5407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5409
echo "configure: failed program was:" >&5
5410
cat conftest.$ac_ext >&5
5411
ac_qt_libraries="NO"
5414
CXXFLAGS="$ac_cxxflags_safe"
5415
LDFLAGS="$ac_ldflags_safe"
5416
LIBS="$ac_libs_safe"
5419
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5420
ac_cpp='$CPP $CPPFLAGS'
5421
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5422
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5423
cross_compiling=$ac_cv_prog_cc_cross
5425
if test "$ac_qt_includes" = NO || test "$ac_qt_libraries" = NO; then
5426
ac_cv_have_qt="have_qt=no"
5428
if test "$ac_qt_includes" = NO; then
5429
if test "$ac_qt_libraries" = NO; then
5430
ac_qt_notfound="(headers and libraries)";
5432
ac_qt_notfound="(headers)";
5435
ac_qt_notfound="(libraries)";
5438
{ echo "configure: error: Qt ($kde_qt_minversion) $ac_qt_notfound not found. Please check your installation!
5439
For more details about this problem, look at the end of config.log." 1>&2; exit 1; }
5447
eval "$ac_cv_have_qt"
5449
if test "$have_qt" != yes; then
5450
echo "$ac_t""$have_qt" 1>&6;
5452
ac_cv_have_qt="have_qt=yes \
5453
ac_qt_includes=$ac_qt_includes ac_qt_libraries=$ac_qt_libraries"
5454
echo "$ac_t""libraries $ac_qt_libraries, headers $ac_qt_includes $USING_QT_MT" 1>&6
5456
qt_libraries="$ac_qt_libraries"
5457
qt_includes="$ac_qt_includes"
5460
if test ! "$kde_qt_libs_given" = "yes"; then
5463
echo $ac_n "checking if Qt compiles without flags""... $ac_c" 1>&6
5464
echo "configure:5465: checking if Qt compiles without flags" >&5
5465
if eval "test \"`echo '$''{'kde_cv_qt_direct'+set}'`\" = set"; then
5466
echo $ac_n "(cached) $ac_c" 1>&6
5471
# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5472
ac_cpp='$CXXCPP $CPPFLAGS'
5473
ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5474
ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5475
cross_compiling=$ac_cv_prog_cxx_cross
5477
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5480
ac_LD_LIBRARY_PATH_safe=$LD_LIBRARY_PATH
5481
ac_LIBRARY_PATH="$LIBRARY_PATH"
5482
ac_cxxflags_safe="$CXXFLAGS"
5483
ac_ldflags_safe="$LDFLAGS"
5484
ac_libs_safe="$LIBS"
5486
CXXFLAGS="$CXXFLAGS -I$qt_includes"
5487
LDFLAGS="$LDFLAGS $X_LDFLAGS"
5488
LIBS="$LIBQT -lXext -lX11 $LIBSOCKET"
5490
export LD_LIBRARY_PATH
5496
cat > conftest.$ac_ext <<EOF
5497
#include "confdefs.h"
5498
#include <qglobal.h>
5499
#include <qapplication.h>
5501
#include <qobjcoll.h>
5503
if test "$kde_qtver" = "2"; then
5504
cat >> conftest.$ac_ext <<EOF
5506
#include <qstring.h>
5510
if test $kde_qtsubver -gt 0; then
5511
cat >> conftest.$ac_ext <<EOF
5512
#include <qiconview.h>
5518
echo "#if ! ($kde_qt_verstring)" >> conftest.$ac_ext
5519
cat >> conftest.$ac_ext <<EOF
5525
if test "$kde_qtver" = "2"; then
5526
cat >> conftest.$ac_ext <<EOF
5527
QStringList *t = new QStringList();
5529
if test $kde_qtsubver -gt 0; then
5530
cat >> conftest.$ac_ext <<EOF
5532
iv.setWordWrapIconText(false);
5534
s.setLatin1("Elvis is alive", 14);
5535
int magnolia = QEvent::Speech; /* new in 2.2 beta2 */
5539
cat >> conftest.$ac_ext <<EOF
5545
if { (eval echo configure:5546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5546
kde_cv_qt_direct="yes"
5548
kde_cv_qt_direct="no"
5549
echo "configure: failed program was:" >&5
5550
cat conftest.$ac_ext >&5
5554
CXXFLAGS="$ac_cxxflags_safe"
5555
LDFLAGS="$ac_ldflags_safe"
5556
LIBS="$ac_libs_safe"
5558
LD_LIBRARY_PATH="$ac_LD_LIBRARY_PATH_safe"
5559
export LD_LIBRARY_PATH
5560
LIBRARY_PATH="$ac_LIBRARY_PATH"
5563
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5564
ac_cpp='$CPP $CPPFLAGS'
5565
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5566
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5567
cross_compiling=$ac_cv_prog_cc_cross
5573
if test "$kde_cv_qt_direct" = "yes"; then
5574
echo "$ac_t""yes" 1>&6
5577
echo "$ac_t""no" 1>&6
5586
if test "$qt_includes" = "$x_includes" || test -z "$qt_includes"; then
5589
QT_INCLUDES="-I$qt_includes"
5590
all_includes="$QT_INCLUDES $all_includes"
5593
if test "$qt_libraries" = "$x_libraries" || test -z "$qt_libraries"; then
5596
QT_LDFLAGS="-L$qt_libraries"
5597
all_libraries="$all_libraries $QT_LDFLAGS"
5604
for dir in $kde_qt_dirs; do
5605
qt_bindirs="$qt_bindirs $dir/bin $dir/src/moc"
5607
qt_bindirs="$qt_bindirs /usr/bin /usr/X11R6/bin /usr/local/qt/bin"
5608
if test ! "$ac_qt_bindir" = "NO"; then
5609
qt_bindirs="$ac_qt_bindir $qt_bindirs"
5613
echo $ac_n "checking for moc""... $ac_c" 1>&6
5614
echo "configure:5615: checking for moc" >&5
5615
if test -n "$MOC"; then
5618
kde_cache=`echo moc | sed 'y%./+-%__p_%'`
5620
if eval "test \"`echo '$''{'kde_cv_path_$kde_cache'+set}'`\" = set"; then
5621
echo $ac_n "(cached) $ac_c" 1>&6
5628
for dir in $PATH; do
5633
for dir in $dirs; do
5634
if test -x "$dir/moc"; then
5637
evalstr="$dir/moc 2>&1 "
5638
if eval $evalstr; then
5639
kde_cv_path="$dir/moc"
5643
kde_cv_path="$dir/moc"
5649
eval "kde_cv_path_$kde_cache=$kde_cv_path"
5655
eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
5659
if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
5660
echo "$ac_t""not found" 1>&6
5662
{ echo "configure: error: No Qt meta object compiler (moc) found!
5663
Please check whether you installed Qt correctly.
5664
You need to have a running moc binary.
5665
configure tried to run $ac_cv_path_moc and the test didn't
5666
succeed. If configure shouldn't have tried this one, set
5667
the environment variable MOC to the right one before running
5672
echo "$ac_t""$kde_cv_path" 1>&6
5678
echo $ac_n "checking for uic""... $ac_c" 1>&6
5679
echo "configure:5680: checking for uic" >&5
5680
if test -n "$UIC"; then
5683
kde_cache=`echo uic | sed 'y%./+-%__p_%'`
5685
if eval "test \"`echo '$''{'kde_cv_path_$kde_cache'+set}'`\" = set"; then
5686
echo $ac_n "(cached) $ac_c" 1>&6
5693
for dir in $PATH; do
5698
for dir in $dirs; do
5699
if test -x "$dir/uic"; then
5702
evalstr="$dir/uic 2>&1 "
5703
if eval $evalstr; then
5704
kde_cv_path="$dir/uic"
5708
kde_cv_path="$dir/uic"
5714
eval "kde_cv_path_$kde_cache=$kde_cv_path"
5720
eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
5724
if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
5725
echo "$ac_t""not found" 1>&6
5727
echo "configure: warning: No Qt ui compiler (uic) found!
5728
Please check whether you installed Qt correctly.
5729
You need to have a running uic binary.
5730
configure tried to run $ac_cv_path_uic and the test didn't
5731
succeed. If configure shouldn't have tried this one, set
5732
the environment variable UIC to the right one before running
5737
echo "$ac_t""$kde_cv_path" 1>&6
5742
if test -z "$UIC" ; then
5743
if test -z "$UIC_NOT_NEEDED" ; then
5746
UIC="echo uic not available: "
5753
LIB_QT="$kde_int_qt "'$(LIBPNG) $(LIBJPEG) -lXext $(LIB_X11) $(LIBSM)'
5759
if test "$program_transform_name" = s,x,x,; then
5760
program_transform_name=
5762
# Double any \ or $. echo might interpret backslashes.
5763
cat <<\EOF_SED > conftestsed
5764
s,\\,\\\\,g; s,\$,$$,g
5766
program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
5769
test "$program_prefix" != NONE &&
5770
program_transform_name="s,^,${program_prefix},; $program_transform_name"
5771
# Use a double $ so make ignores it.
5772
test "$program_suffix" != NONE &&
5773
program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
5775
# sed with no file args requires a program.
5776
test "$program_transform_name" = "" && program_transform_name="s,x,x,"
5783
DO_NOT_COMPILE="$DO_NOT_COMPILE CVS debian bsd-port admin"
5785
if test ! -s $srcdir/subdirs; then
5787
files=`cd $srcdir && ls -1`
5788
dirs=`for i in $files; do if test -d $i; then echo $i; fi; done`
5790
echo $i >> $srcdir/subdirs
5794
if test -s $srcdir/inst-apps; then
5795
ac_topsubdirs="`cat $srcdir/inst-apps`"
5797
ac_topsubdirs="`cat $srcdir/subdirs`"
5800
for i in $ac_topsubdirs; do
5801
echo $ac_n "checking if $i should be compiled""... $ac_c" 1>&6
5802
echo "configure:5803: checking if $i should be compiled" >&5
5803
if test -d $srcdir/$i; then
5805
for j in $DO_NOT_COMPILE; do
5806
if test $i = $j; then
5813
echo "$ac_t""$install_it" 1>&6
5814
if test $install_it = "yes"; then
5815
TOPSUBDIRS="$TOPSUBDIRS $i"
5823
cat > confcache <<\EOF
5824
# This file is a shell script that caches the results of configure
5825
# tests run on this system so they can be shared between configure
5826
# scripts and configure runs. It is not useful on other systems.
5827
# If it contains results you don't want to keep, you may remove or edit it.
5829
# By default, configure uses ./config.cache as the cache file,
5830
# creating it if it does not exist already. You can give configure
5831
# the --cache-file=FILE option to use a different cache file; that is
5832
# what configure does when it calls configure scripts in
5833
# subdirectories, so they share the cache.
5834
# Giving --cache-file=/dev/null disables caching, for debugging configure.
5835
# config.status only pays attention to the cache file if you give it the
5836
# --recheck option to rerun configure.
5839
# The following way of writing the cache mishandles newlines in values,
5840
# but we know of no workaround that is simple, portable, and efficient.
5841
# So, don't put newlines in cache variables' values.
5842
# Ultrix sh set writes to stderr and can't be redirected directly,
5843
# and sets the high bit in the cache file unless we assign to the vars.
5845
case `(ac_space=' '; set | grep ac_space) 2>&1` in
5847
# `set' does not quote correctly, so add quotes (double-quote substitution
5848
# turns \\\\ into \\, and sed turns \\ into \).
5850
-e "s/'/'\\\\''/g" \
5851
-e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5854
# `set' quotes correctly as required by POSIX, so do not add quotes.
5855
sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5858
if cmp -s $cache_file confcache; then
5861
if test -w $cache_file; then
5862
echo "updating cache $cache_file"
5863
cat confcache > $cache_file
5865
echo "not updating unwritable cache $cache_file"
5870
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5872
test "x$prefix" = xNONE && prefix=$ac_default_prefix
5873
# Let make expand exec_prefix.
5874
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5876
# Any assignment to VPATH causes Sun make to only execute
5877
# the first set of double-colon rules, so remove it if not needed.
5878
# If there is a colon in the path, we need to keep it.
5879
if test "x$srcdir" = x.; then
5880
ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
5883
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5885
DEFS=-DHAVE_CONFIG_H
5887
# Without the "./", some shells look in PATH for config.status.
5888
: ${CONFIG_STATUS=./config.status}
5890
echo creating $CONFIG_STATUS
5891
rm -f $CONFIG_STATUS
5892
cat > $CONFIG_STATUS <<EOF
5894
# Generated automatically by configure.
5895
# Run this file to recreate the current configuration.
5896
# This directory was configured as follows,
5897
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5899
# $0 $ac_configure_args
5901
# Compiler output produced by configure, useful for debugging
5902
# configure, is in ./config.log if it exists.
5904
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5907
case "\$ac_option" in
5908
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5909
echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5910
exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5911
-version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5912
echo "$CONFIG_STATUS generated by autoconf version 2.13"
5914
-help | --help | --hel | --he | --h)
5915
echo "\$ac_cs_usage"; exit 0 ;;
5916
*) echo "\$ac_cs_usage"; exit 1 ;;
5920
ac_given_srcdir=$srcdir
5921
ac_given_INSTALL="$INSTALL"
5923
trap 'rm -fr `echo "Makefile linpsk/Makefile linpsk/docs/Makefile linpsk/docs/en/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5925
cat >> $CONFIG_STATUS <<EOF
5927
# Protect against being on the right side of a sed subst in config.status.
5928
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5929
s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5933
s%@CFLAGS@%$CFLAGS%g
5934
s%@CPPFLAGS@%$CPPFLAGS%g
5935
s%@CXXFLAGS@%$CXXFLAGS%g
5936
s%@FFLAGS@%$FFLAGS%g
5938
s%@LDFLAGS@%$LDFLAGS%g
5940
s%@exec_prefix@%$exec_prefix%g
5941
s%@prefix@%$prefix%g
5942
s%@program_transform_name@%$program_transform_name%g
5943
s%@bindir@%$bindir%g
5944
s%@sbindir@%$sbindir%g
5945
s%@libexecdir@%$libexecdir%g
5946
s%@datadir@%$datadir%g
5947
s%@sysconfdir@%$sysconfdir%g
5948
s%@sharedstatedir@%$sharedstatedir%g
5949
s%@localstatedir@%$localstatedir%g
5950
s%@libdir@%$libdir%g
5951
s%@includedir@%$includedir%g
5952
s%@oldincludedir@%$oldincludedir%g
5953
s%@infodir@%$infodir%g
5954
s%@mandir@%$mandir%g
5956
s%@host_alias@%$host_alias%g
5957
s%@host_cpu@%$host_cpu%g
5958
s%@host_vendor@%$host_vendor%g
5959
s%@host_os@%$host_os%g
5960
s%@target@%$target%g
5961
s%@target_alias@%$target_alias%g
5962
s%@target_cpu@%$target_cpu%g
5963
s%@target_vendor@%$target_vendor%g
5964
s%@target_os@%$target_os%g
5966
s%@build_alias@%$build_alias%g
5967
s%@build_cpu@%$build_cpu%g
5968
s%@build_vendor@%$build_vendor%g
5969
s%@build_os@%$build_os%g
5970
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5971
s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5972
s%@INSTALL_DATA@%$INSTALL_DATA%g
5973
s%@PACKAGE@%$PACKAGE%g
5974
s%@VERSION@%$VERSION%g
5975
s%@ACLOCAL@%$ACLOCAL%g
5976
s%@AUTOCONF@%$AUTOCONF%g
5977
s%@AUTOMAKE@%$AUTOMAKE%g
5978
s%@AUTOHEADER@%$AUTOHEADER%g
5979
s%@MAKEINFO@%$MAKEINFO%g
5980
s%@SET_MAKE@%$SET_MAKE%g
5984
s%@USE_EXCEPTIONS@%$USE_EXCEPTIONS%g
5985
s%@USE_RTTI@%$USE_RTTI%g
5986
s%@CXXCPP@%$CXXCPP%g
5987
s%@NOOPT_CXXFLAGS@%$NOOPT_CXXFLAGS%g
5989
s%@NOREPO@%$NOREPO%g
5990
s%@KDE_USE_FINAL_TRUE@%$KDE_USE_FINAL_TRUE%g
5991
s%@KDE_USE_FINAL_FALSE@%$KDE_USE_FINAL_FALSE%g
5992
s%@KDE_USE_CLOSURE_TRUE@%$KDE_USE_CLOSURE_TRUE%g
5993
s%@KDE_USE_CLOSURE_FALSE@%$KDE_USE_CLOSURE_FALSE%g
5994
s%@KDE_CXXFLAGS@%$KDE_CXXFLAGS%g
5995
s%@OBJEXT@%$OBJEXT%g
5996
s%@EXEEXT@%$EXEEXT%g
5998
s%@RANLIB@%$RANLIB%g
6000
s%@LIBTOOL@%$LIBTOOL%g
6001
s%@KDE_PLUGIN@%$KDE_PLUGIN%g
6002
s%@USER_INCLUDES@%$USER_INCLUDES%g
6003
s%@USER_LDFLAGS@%$USER_LDFLAGS%g
6004
s%@all_includes@%$all_includes%g
6005
s%@all_libraries@%$all_libraries%g
6006
s%@MSGFMT@%$MSGFMT%g
6007
s%@GMSGFMT@%$GMSGFMT%g
6008
s%@XGETTEXT@%$XGETTEXT%g
6009
s%@LIBCOMPAT@%$LIBCOMPAT%g
6010
s%@LIBCRYPT@%$LIBCRYPT%g
6011
s%@LIBSOCKET@%$LIBSOCKET%g
6012
s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
6013
s%@LIBUCB@%$LIBUCB%g
6015
s%@X_INCLUDES@%$X_INCLUDES%g
6016
s%@X_LDFLAGS@%$X_LDFLAGS%g
6017
s%@x_libraries@%$x_libraries%g
6018
s%@x_includes@%$x_includes%g
6020
s%@X_PRE_LIBS@%$X_PRE_LIBS%g
6021
s%@LIB_X11@%$LIB_X11%g
6023
s%@LIBPNG@%$LIBPNG%g
6024
s%@LIBJPEG@%$LIBJPEG%g
6025
s%@qt_libraries@%$qt_libraries%g
6026
s%@qt_includes@%$qt_includes%g
6027
s%@QT_INCLUDES@%$QT_INCLUDES%g
6028
s%@QT_LDFLAGS@%$QT_LDFLAGS%g
6031
s%@LIB_QT@%$LIB_QT%g
6032
s%@TOPSUBDIRS@%$TOPSUBDIRS%g
6037
cat >> $CONFIG_STATUS <<\EOF
6039
# Split the substitutions into bite-sized pieces for seds with
6040
# small command number limits, like on Digital OSF/1 and HP-UX.
6041
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
6042
ac_file=1 # Number of current file.
6043
ac_beg=1 # First line for current file.
6044
ac_end=$ac_max_sed_cmds # Line after last line for current file.
6047
while $ac_more_lines; do
6048
if test $ac_beg -gt 1; then
6049
sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
6051
sed "${ac_end}q" conftest.subs > conftest.s$ac_file
6053
if test ! -s conftest.s$ac_file; then
6055
rm -f conftest.s$ac_file
6057
if test -z "$ac_sed_cmds"; then
6058
ac_sed_cmds="sed -f conftest.s$ac_file"
6060
ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
6062
ac_file=`expr $ac_file + 1`
6064
ac_end=`expr $ac_end + $ac_max_sed_cmds`
6067
if test -z "$ac_sed_cmds"; then
6072
cat >> $CONFIG_STATUS <<EOF
6074
CONFIG_FILES=\${CONFIG_FILES-"Makefile linpsk/Makefile linpsk/docs/Makefile linpsk/docs/en/Makefile "}
6076
cat >> $CONFIG_STATUS <<\EOF
6077
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
6078
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6080
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6081
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6082
*) ac_file_in="${ac_file}.in" ;;
6085
# Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6087
# Remove last slash and all that follows it. Not all systems have dirname.
6088
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6089
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6090
# The file is in a subdirectory.
6091
test ! -d "$ac_dir" && mkdir "$ac_dir"
6092
ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
6093
# A "../" for each directory in $ac_dir_suffix.
6094
ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6096
ac_dir_suffix= ac_dots=
6099
case "$ac_given_srcdir" in
6101
if test -z "$ac_dots"; then top_srcdir=.
6102
else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6103
/*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
6105
srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6106
top_srcdir="$ac_dots$ac_given_srcdir" ;;
6109
case "$ac_given_INSTALL" in
6110
[/$]*) INSTALL="$ac_given_INSTALL" ;;
6112
*) INSTALL="$ac_dots$ac_given_INSTALL" ;;
6115
echo creating "$ac_file"
6117
configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6119
*Makefile*) ac_comsub="1i\\
6120
# $configure_input" ;;
6124
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6126
s%@configure_input@%$configure_input%g
6127
s%@srcdir@%$srcdir%g
6128
s%@top_srcdir@%$top_srcdir%g
6129
s%@INSTALL@%$INSTALL%g
6130
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
6134
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6135
# NAME is the cpp macro being defined and VALUE is the value it is being given.
6137
# ac_d sets the value in "#define NAME VALUE" lines.
6138
ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6139
ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
6142
# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
6143
ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6144
ac_uB='\([ ]\)%\1#\2define\3'
6147
# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6148
ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6149
ac_eB='$%\1#\2define\3'
6153
if test "${CONFIG_HEADERS+set}" != set; then
6155
cat >> $CONFIG_STATUS <<EOF
6156
CONFIG_HEADERS="config.h"
6158
cat >> $CONFIG_STATUS <<\EOF
6160
for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
6161
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6163
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6164
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6165
*) ac_file_in="${ac_file}.in" ;;
6168
echo creating $ac_file
6170
rm -f conftest.frag conftest.in conftest.out
6171
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6172
cat $ac_file_inputs > conftest.in
6176
# Transform confdefs.h into a sed script conftest.vals that substitutes
6177
# the proper values into config.h.in to produce config.h. And first:
6178
# Protect against being on the right side of a sed subst in config.status.
6179
# Protect against being in an unquoted here document in config.status.
6181
cat > conftest.hdr <<\EOF
6184
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6188
sed -n -f conftest.hdr confdefs.h > conftest.vals
6191
# This sed command replaces #undef with comments. This is necessary, for
6192
# example, in the case of _POSIX_SOURCE, which is predefined and required
6193
# on some systems where configure will not decide to define it.
6194
cat >> conftest.vals <<\EOF
6195
s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6198
# Break up conftest.vals because some shells have a limit on
6199
# the size of here documents, and old seds have small limits too.
6204
ac_lines=`grep -c . conftest.vals`
6205
# grep -c gives empty output for an empty file on some AIX systems.
6206
if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6207
# Write a limited-size here document to conftest.frag.
6208
echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6209
sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6211
sed -f conftest.frag conftest.in > conftest.out
6213
mv conftest.out conftest.in
6215
sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6217
mv conftest.tail conftest.vals
6221
cat >> $CONFIG_STATUS <<\EOF
6222
rm -f conftest.frag conftest.h
6223
echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
6224
cat conftest.in >> conftest.h
6226
if cmp -s $ac_file conftest.h 2>/dev/null; then
6227
echo "$ac_file is unchanged"
6230
# Remove last slash and all that follows it. Not all systems have dirname.
6231
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6232
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6233
# The file is in a subdirectory.
6234
test ! -d "$ac_dir" && mkdir "$ac_dir"
6237
mv conftest.h $ac_file
6242
cat >> $CONFIG_STATUS <<EOF
6246
cat >> $CONFIG_STATUS <<\EOF
6247
test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
6251
chmod +x $CONFIG_STATUS
6252
rm -fr confdefs* $ac_clean_files
6253
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1