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
--enable-embedded link to Qt-embedded, don't use X"
42
--with-xinerama enable support for Xinerama "
44
--disable-mt link to non-threaded Qt (deprecated)"
46
--enable-kernel-threads Enable the use of the LinuxThreads port on FreeBSD/i386 only."
48
--disable-threading disables threading even if libpthread found "
50
--with-extra-includes=DIR
51
adds non standard include paths"
53
--with-extra-libs=DIR adds non standard library paths"
55
--with-qt-dir=DIR where the root of Qt is installed "
57
--with-qt-includes=DIR where the Qt includes are. "
59
--with-qt-libraries=DIR where the Qt library is installed."
61
# Initialize some variables set by options.
62
# The variables have the same names as the options, with
63
# dashes changed to underlines.
65
cache_file=./config.cache
74
program_transform_name=s,x,x,
82
bindir='${exec_prefix}/bin'
83
sbindir='${exec_prefix}/sbin'
84
libexecdir='${exec_prefix}/libexec'
85
datadir='${prefix}/share'
86
sysconfdir='${prefix}/etc'
87
sharedstatedir='${prefix}/com'
88
localstatedir='${prefix}/var'
89
libdir='${exec_prefix}/lib'
90
includedir='${prefix}/include'
91
oldincludedir='/usr/include'
92
infodir='${prefix}/info'
93
mandir='${prefix}/man'
95
# Initialize some other variables.
98
SHELL=${CONFIG_SHELL-/bin/sh}
99
# Maximum number of lines to put in a shell here document.
106
# If the previous option needs an argument, assign it.
107
if test -n "$ac_prev"; then
108
eval "$ac_prev=\$ac_option"
114
-*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
118
# Accept the important Cygnus configure options, so we can diagnose typos.
122
-bindir | --bindir | --bindi | --bind | --bin | --bi)
124
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
125
bindir="$ac_optarg" ;;
127
-build | --build | --buil | --bui | --bu)
129
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
130
build="$ac_optarg" ;;
132
-cache-file | --cache-file | --cache-fil | --cache-fi \
133
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
134
ac_prev=cache_file ;;
135
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
136
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
137
cache_file="$ac_optarg" ;;
139
-datadir | --datadir | --datadi | --datad | --data | --dat | --da)
141
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
143
datadir="$ac_optarg" ;;
145
-disable-* | --disable-*)
146
ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
147
# Reject names that are not valid shell variable names.
148
if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
149
{ echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
151
ac_feature=`echo $ac_feature| sed 's/-/_/g'`
152
eval "enable_${ac_feature}=no" ;;
154
-enable-* | --enable-*)
155
ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
156
# Reject names that are not valid shell variable names.
157
if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
158
{ echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
160
ac_feature=`echo $ac_feature| sed 's/-/_/g'`
165
eval "enable_${ac_feature}='$ac_optarg'" ;;
167
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
168
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
169
| --exec | --exe | --ex)
170
ac_prev=exec_prefix ;;
171
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
172
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
173
| --exec=* | --exe=* | --ex=*)
174
exec_prefix="$ac_optarg" ;;
176
-gas | --gas | --ga | --g)
177
# Obsolete; use --with-gas.
180
-help | --help | --hel | --he)
181
# Omit some internal or obsolete options to make the list less imposing.
182
# This message is too long to be a string in the A/UX 3.1 sh.
184
Usage: configure [options] [host]
185
Options: [defaults in brackets after descriptions]
187
--cache-file=FILE cache test results in FILE
188
--help print this message
189
--no-create do not create output files
190
--quiet, --silent do not print \`checking...' messages
191
--version print the version of autoconf that created configure
192
Directory and file names:
193
--prefix=PREFIX install architecture-independent files in PREFIX
195
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
197
--bindir=DIR user executables in DIR [EPREFIX/bin]
198
--sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
199
--libexecdir=DIR program executables in DIR [EPREFIX/libexec]
200
--datadir=DIR read-only architecture-independent data in DIR
202
--sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
203
--sharedstatedir=DIR modifiable architecture-independent data in DIR
205
--localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
206
--libdir=DIR object code libraries in DIR [EPREFIX/lib]
207
--includedir=DIR C header files in DIR [PREFIX/include]
208
--oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
209
--infodir=DIR info documentation in DIR [PREFIX/info]
210
--mandir=DIR man documentation in DIR [PREFIX/man]
211
--srcdir=DIR find the sources in DIR [configure dir or ..]
212
--program-prefix=PREFIX prepend PREFIX to installed program names
213
--program-suffix=SUFFIX append SUFFIX to installed program names
214
--program-transform-name=PROGRAM
215
run sed PROGRAM on installed program names
219
--build=BUILD configure for building on BUILD [BUILD=HOST]
220
--host=HOST configure for HOST [guessed]
221
--target=TARGET configure for TARGET [TARGET=HOST]
222
Features and packages:
223
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
224
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
225
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
226
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
227
--x-includes=DIR X include files are in DIR
228
--x-libraries=DIR X library files are in DIR
230
if test -n "$ac_help"; then
231
echo "--enable and --with options recognized:$ac_help"
235
-host | --host | --hos | --ho)
237
-host=* | --host=* | --hos=* | --ho=*)
240
-includedir | --includedir | --includedi | --included | --include \
241
| --includ | --inclu | --incl | --inc)
242
ac_prev=includedir ;;
243
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
244
| --includ=* | --inclu=* | --incl=* | --inc=*)
245
includedir="$ac_optarg" ;;
247
-infodir | --infodir | --infodi | --infod | --info | --inf)
249
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
250
infodir="$ac_optarg" ;;
252
-libdir | --libdir | --libdi | --libd)
254
-libdir=* | --libdir=* | --libdi=* | --libd=*)
255
libdir="$ac_optarg" ;;
257
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
258
| --libexe | --libex | --libe)
259
ac_prev=libexecdir ;;
260
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
261
| --libexe=* | --libex=* | --libe=*)
262
libexecdir="$ac_optarg" ;;
264
-localstatedir | --localstatedir | --localstatedi | --localstated \
265
| --localstate | --localstat | --localsta | --localst \
266
| --locals | --local | --loca | --loc | --lo)
267
ac_prev=localstatedir ;;
268
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
269
| --localstate=* | --localstat=* | --localsta=* | --localst=* \
270
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
271
localstatedir="$ac_optarg" ;;
273
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
275
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
276
mandir="$ac_optarg" ;;
279
# Obsolete; use --without-fp.
282
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
286
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
287
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
290
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
291
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
292
| --oldin | --oldi | --old | --ol | --o)
293
ac_prev=oldincludedir ;;
294
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
295
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
296
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
297
oldincludedir="$ac_optarg" ;;
299
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
301
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
302
prefix="$ac_optarg" ;;
304
-program-prefix | --program-prefix | --program-prefi | --program-pref \
305
| --program-pre | --program-pr | --program-p)
306
ac_prev=program_prefix ;;
307
-program-prefix=* | --program-prefix=* | --program-prefi=* \
308
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
309
program_prefix="$ac_optarg" ;;
311
-program-suffix | --program-suffix | --program-suffi | --program-suff \
312
| --program-suf | --program-su | --program-s)
313
ac_prev=program_suffix ;;
314
-program-suffix=* | --program-suffix=* | --program-suffi=* \
315
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
316
program_suffix="$ac_optarg" ;;
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
ac_prev=program_transform_name ;;
326
-program-transform-name=* | --program-transform-name=* \
327
| --program-transform-nam=* | --program-transform-na=* \
328
| --program-transform-n=* | --program-transform-=* \
329
| --program-transform=* | --program-transfor=* \
330
| --program-transfo=* | --program-transf=* \
331
| --program-trans=* | --program-tran=* \
332
| --progr-tra=* | --program-tr=* | --program-t=*)
333
program_transform_name="$ac_optarg" ;;
335
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
336
| -silent | --silent | --silen | --sile | --sil)
339
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
341
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
343
sbindir="$ac_optarg" ;;
345
-sharedstatedir | --sharedstatedir | --sharedstatedi \
346
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
347
| --sharedst | --shareds | --shared | --share | --shar \
349
ac_prev=sharedstatedir ;;
350
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
351
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
352
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
354
sharedstatedir="$ac_optarg" ;;
356
-site | --site | --sit)
358
-site=* | --site=* | --sit=*)
361
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
363
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
364
srcdir="$ac_optarg" ;;
366
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
367
| --syscon | --sysco | --sysc | --sys | --sy)
368
ac_prev=sysconfdir ;;
369
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
370
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
371
sysconfdir="$ac_optarg" ;;
373
-target | --target | --targe | --targ | --tar | --ta | --t)
375
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
376
target="$ac_optarg" ;;
378
-v | -verbose | --verbose | --verbos | --verbo | --verb)
381
-version | --version | --versio | --versi | --vers)
382
echo "configure generated by autoconf version 2.13"
386
ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
387
# Reject names that are not valid shell variable names.
388
if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
389
{ echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
391
ac_package=`echo $ac_package| sed 's/-/_/g'`
396
eval "with_${ac_package}='$ac_optarg'" ;;
398
-without-* | --without-*)
399
ac_package=`echo $ac_option|sed -e 's/-*without-//'`
400
# Reject names that are not valid shell variable names.
401
if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
402
{ echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
404
ac_package=`echo $ac_package| sed 's/-/_/g'`
405
eval "with_${ac_package}=no" ;;
408
# Obsolete; use --with-x.
411
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
412
| --x-incl | --x-inc | --x-in | --x-i)
413
ac_prev=x_includes ;;
414
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
415
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
416
x_includes="$ac_optarg" ;;
418
-x-libraries | --x-libraries | --x-librarie | --x-librari \
419
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
420
ac_prev=x_libraries ;;
421
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
422
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
423
x_libraries="$ac_optarg" ;;
425
-*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
429
if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
430
echo "configure: warning: $ac_option: invalid host type" 1>&2
432
if test "x$nonopt" != xNONE; then
433
{ echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
441
if test -n "$ac_prev"; then
442
{ echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
445
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
447
# File descriptor usage:
450
# 2 errors and warnings
451
# 3 some systems may open it to /dev/tty
452
# 4 used on the Kubota Titan
453
# 6 checking for... messages and results
454
# 5 compiler messages saved in config.log
455
if test "$silent" = yes; then
463
This file contains any messages produced by compilers while
464
running configure, to aid debugging if configure makes a mistake.
467
# Strip out --no-create and --no-recursion so they do not pile up.
468
# Also quote any args containing shell metacharacters.
473
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
474
| --no-cr | --no-c) ;;
475
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
476
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
477
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
478
ac_configure_args="$ac_configure_args '$ac_arg'" ;;
479
*) ac_configure_args="$ac_configure_args $ac_arg" ;;
484
# Only set these to C if already set. These must not be set unconditionally
485
# because not all systems understand e.g. LANG=C (notably SCO).
486
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
487
# Non-C LC_CTYPE values break the ctype check.
488
if test "${LANG+set}" = set; then LANG=C; export LANG; fi
489
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
490
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
491
if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
493
# confdefs.h avoids OS command line length limits that DEFS can exceed.
494
rm -rf conftest* confdefs.h
495
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
498
# A filename unique to this package, relative to the directory that
499
# configure is in, which we can look for to find out if srcdir is correct.
500
ac_unique_file=acinclude.m4
502
# Find the source files, if location was not specified.
503
if test -z "$srcdir"; then
504
ac_srcdir_defaulted=yes
505
# Try the directory containing this script, then its parent.
507
ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
508
test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
510
if test ! -r $srcdir/$ac_unique_file; then
514
ac_srcdir_defaulted=no
516
if test ! -r $srcdir/$ac_unique_file; then
517
if test "$ac_srcdir_defaulted" = yes; then
518
{ echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
520
{ echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
523
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
525
# Prefer explicitly selected file to automatically selected ones.
526
if test -z "$CONFIG_SITE"; then
527
if test "x$prefix" != xNONE; then
528
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
530
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
533
for ac_site_file in $CONFIG_SITE; do
534
if test -r "$ac_site_file"; then
535
echo "loading site script $ac_site_file"
540
if test -r "$cache_file"; then
541
echo "loading cache $cache_file"
544
echo "creating cache $cache_file"
549
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
550
ac_cpp='$CPP $CPPFLAGS'
551
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
552
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
553
cross_compiling=$ac_cv_prog_cc_cross
557
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
558
# Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
559
if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
566
ac_n= ac_c='\c' ac_t=
571
for ac_dir in admin $srcdir/admin; do
572
if test -f $ac_dir/install-sh; then
574
ac_install_sh="$ac_aux_dir/install-sh -c"
576
elif test -f $ac_dir/install.sh; then
578
ac_install_sh="$ac_aux_dir/install.sh -c"
582
if test -z "$ac_aux_dir"; then
583
{ echo "configure: error: can not find install-sh or install.sh in admin $srcdir/admin" 1>&2; exit 1; }
585
ac_config_guess=$ac_aux_dir/config.guess
586
ac_config_sub=$ac_aux_dir/config.sub
587
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
591
# Do some error checking and defaulting for the host and target type.
593
# configure --host=HOST --target=TARGET --build=BUILD NONOPT
596
# 1. You are not allowed to specify --host, --target, and nonopt at the
598
# 2. Host defaults to nonopt.
599
# 3. If nonopt is not specified, then host defaults to the current host,
600
# as determined by config.guess.
601
# 4. Target and build default to nonopt.
602
# 5. If nonopt is not specified, then target and build default to host.
604
# The aliases save the names the user supplied, while $host etc.
605
# will get canonicalized.
606
case $host---$target---$nonopt in
607
NONE---*---* | *---NONE---* | *---*---NONE) ;;
608
*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
612
# Make sure we can run config.sub.
613
if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
614
else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
617
echo $ac_n "checking host system type""... $ac_c" 1>&6
618
echo "configure:619: checking host system type" >&5
621
case "$host_alias" in
625
if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
626
else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
628
*) host_alias=$nonopt ;;
632
host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
633
host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
634
host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
635
host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
636
echo "$ac_t""$host" 1>&6
638
echo $ac_n "checking target system type""... $ac_c" 1>&6
639
echo "configure:640: checking target system type" >&5
642
case "$target_alias" in
645
NONE) target_alias=$host_alias ;;
646
*) target_alias=$nonopt ;;
650
target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
651
target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
652
target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
653
target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
654
echo "$ac_t""$target" 1>&6
656
echo $ac_n "checking build system type""... $ac_c" 1>&6
657
echo "configure:658: checking build system type" >&5
660
case "$build_alias" in
663
NONE) build_alias=$host_alias ;;
664
*) build_alias=$nonopt ;;
668
build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
669
build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
670
build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
671
build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
672
echo "$ac_t""$build" 1>&6
674
test "$host_alias" != "$target_alias" &&
675
test "$program_prefix$program_suffix$program_transform_name" = \
677
program_prefix=${target_alias}-
682
test -n "$INSTALL" && kde_save_INSTALL_given=$INSTALL
683
test -n "$INSTALL_PROGRAM" && kde_save_INSTALL_PROGRAM_given=$INSTALL_PROGRAM
684
test -n "$INSTALL_SCRIPT" && kde_save_INSTALL_SCRIPT_given=$INSTALL_SCRIPT
685
# Find a good install program. We prefer a C program (faster),
686
# so one script is as good as another. But avoid the broken or
687
# incompatible versions:
688
# SysV /etc/install, /usr/sbin/install
689
# SunOS /usr/etc/install
692
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
693
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
694
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
695
# ./install, which can be erroneously created by make from ./install.sh.
696
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
697
echo "configure:698: checking for a BSD compatible install" >&5
698
if test -z "$INSTALL"; then
699
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
700
echo $ac_n "(cached) $ac_c" 1>&6
702
IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
703
for ac_dir in $PATH; do
704
# Account for people who put trailing slashes in PATH elements.
706
/|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
708
# OSF1 and SCO ODT 3.0 have their own names for install.
709
# Don't use installbsd from OSF since it installs stuff as root
711
for ac_prog in ginstall scoinst install; do
712
if test -f $ac_dir/$ac_prog; then
713
if test $ac_prog = install &&
714
grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
715
# AIX install. It has an incompatible calling convention.
718
ac_cv_path_install="$ac_dir/$ac_prog -c"
729
if test "${ac_cv_path_install+set}" = set; then
730
INSTALL="$ac_cv_path_install"
732
# As a last resort, use the slow shell script. We don't cache a
733
# path for INSTALL within a source directory, because that will
734
# break other packages using the cache if that directory is
735
# removed, or if the path is relative.
736
INSTALL="$ac_install_sh"
739
echo "$ac_t""$INSTALL" 1>&6
741
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
742
# It thinks the first close brace ends the variable substitution.
743
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
745
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
747
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
750
if test -z "$kde_save_INSTALL_given" ; then
751
# OK, user hasn't given any INSTALL, autoconf found one for us
752
# now we test, if it supports the -p flag
753
echo $ac_n "checking for -p flag to install""... $ac_c" 1>&6
754
echo "configure:755: checking for -p flag to install" >&5
755
rm -f confinst.$$.* > /dev/null 2>&1
756
echo "Testtest" > confinst.$$.orig
758
if ${INSTALL} -p confinst.$$.orig confinst.$$.new > /dev/null 2>&1 ; then
759
if test -f confinst.$$.new ; then
760
# OK, -p seems to do no harm to install
761
INSTALL="${INSTALL} -p"
766
echo "$ac_t""$ac_res" 1>&6
769
if test -z "$kde_save_INSTALL_PROGRAM_given" ; then
770
INSTALL_PROGRAM='${INSTALL} $(INSTALL_STRIP_FLAG)'
772
if test -z "$kde_save_INSTALL_SCRIPT_given" ; then
773
INSTALL_SCRIPT='${INSTALL}'
776
echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
777
echo "configure:778: checking whether build environment is sane" >&5
780
echo timestamp > conftestfile
781
# Do `set' in a subshell so we don't clobber the current shell's
782
# arguments. Must try -L first in case configure is actually a
783
# symlink; some systems play weird games with the mod time of symlinks
784
# (eg FreeBSD returns the mod time of the symlink's containing
787
set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
788
if test "$*" = "X"; then
790
set X `ls -t $srcdir/configure conftestfile`
792
if test "$*" != "X $srcdir/configure conftestfile" \
793
&& test "$*" != "X conftestfile $srcdir/configure"; then
795
# If neither matched, then we have a broken ls. This can happen
796
# if, for instance, CONFIG_SHELL is bash and it inherits a
797
# broken ls alias from the environment. This has actually
798
# happened. Such a system could not be considered "sane".
799
{ echo "configure: error: ls -t appears to fail. Make sure there is not a broken
800
alias in your environment" 1>&2; exit 1; }
803
test "$2" = conftestfile
809
{ echo "configure: error: newly created file is older than distributed files!
810
Check your system clock" 1>&2; exit 1; }
813
echo "$ac_t""yes" 1>&6
814
if test "$program_transform_name" = s,x,x,; then
815
program_transform_name=
817
# Double any \ or $. echo might interpret backslashes.
818
cat <<\EOF_SED > conftestsed
819
s,\\,\\\\,g; s,\$,$$,g
821
program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
824
test "$program_prefix" != NONE &&
825
program_transform_name="s,^,${program_prefix},; $program_transform_name"
826
# Use a double $ so make ignores it.
827
test "$program_suffix" != NONE &&
828
program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
830
# sed with no file args requires a program.
831
test "$program_transform_name" = "" && program_transform_name="s,x,x,"
833
echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
834
echo "configure:835: checking whether ${MAKE-make} sets \${MAKE}" >&5
835
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
836
if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
837
echo $ac_n "(cached) $ac_c" 1>&6
839
cat > conftestmake <<\EOF
841
@echo 'ac_maketemp="${MAKE}"'
843
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
844
eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
845
if test -n "$ac_maketemp"; then
846
eval ac_cv_prog_make_${ac_make}_set=yes
848
eval ac_cv_prog_make_${ac_make}_set=no
852
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
853
echo "$ac_t""yes" 1>&6
856
echo "$ac_t""no" 1>&6
857
SET_MAKE="MAKE=${MAKE-make}"
865
if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
866
{ echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
868
cat >> confdefs.h <<EOF
869
#define PACKAGE "$PACKAGE"
872
cat >> confdefs.h <<EOF
873
#define VERSION "$VERSION"
878
missing_dir=`cd $ac_aux_dir && pwd`
879
echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
880
echo "configure:881: checking for working aclocal" >&5
881
# Run test in a subshell; some versions of sh will print an error if
882
# an executable is not found, even if stderr is redirected.
883
# Redirect stdin to placate older versions of autoconf. Sigh.
884
if (aclocal --version) < /dev/null > /dev/null 2>&1; then
886
echo "$ac_t""found" 1>&6
888
ACLOCAL="$missing_dir/missing aclocal"
889
echo "$ac_t""missing" 1>&6
892
echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
893
echo "configure:894: checking for working autoconf" >&5
894
# Run test in a subshell; some versions of sh will print an error if
895
# an executable is not found, even if stderr is redirected.
896
# Redirect stdin to placate older versions of autoconf. Sigh.
897
if (autoconf --version) < /dev/null > /dev/null 2>&1; then
899
echo "$ac_t""found" 1>&6
901
AUTOCONF="$missing_dir/missing autoconf"
902
echo "$ac_t""missing" 1>&6
905
echo $ac_n "checking for working automake""... $ac_c" 1>&6
906
echo "configure:907: checking for working automake" >&5
907
# Run test in a subshell; some versions of sh will print an error if
908
# an executable is not found, even if stderr is redirected.
909
# Redirect stdin to placate older versions of autoconf. Sigh.
910
if (automake --version) < /dev/null > /dev/null 2>&1; then
912
echo "$ac_t""found" 1>&6
914
AUTOMAKE="$missing_dir/missing automake"
915
echo "$ac_t""missing" 1>&6
918
echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
919
echo "configure:920: checking for working autoheader" >&5
920
# Run test in a subshell; some versions of sh will print an error if
921
# an executable is not found, even if stderr is redirected.
922
# Redirect stdin to placate older versions of autoconf. Sigh.
923
if (autoheader --version) < /dev/null > /dev/null 2>&1; then
924
AUTOHEADER=autoheader
925
echo "$ac_t""found" 1>&6
927
AUTOHEADER="$missing_dir/missing autoheader"
928
echo "$ac_t""missing" 1>&6
931
echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
932
echo "configure:933: checking for working makeinfo" >&5
933
# Run test in a subshell; some versions of sh will print an error if
934
# an executable is not found, even if stderr is redirected.
935
# Redirect stdin to placate older versions of autoconf. Sigh.
936
if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
938
echo "$ac_t""found" 1>&6
940
MAKEINFO="$missing_dir/missing makeinfo"
941
echo "$ac_t""missing" 1>&6
948
if test "x$prefix" = "xNONE"; then
949
prefix=$ac_default_prefix
950
ac_configure_args="$ac_configure_args --prefix $prefix"
957
# Check whether --enable-debug or --disable-debug was given.
958
if test "${enable_debug+set}" = set; then
959
enableval="$enable_debug"
961
if test $enableval = "no"; then
962
kde_use_debug_code="no"
963
kde_use_debug_define=yes
965
kde_use_debug_code="yes"
966
kde_use_debug_define=no
970
kde_use_debug_code="no"
971
kde_use_debug_define=no
976
# Check whether --enable-dummyoption or --disable-dummyoption was given.
977
if test "${enable_dummyoption+set}" = set; then
978
enableval="$enable_dummyoption"
983
# Check whether --enable-strict or --disable-strict was given.
984
if test "${enable_strict+set}" = set; then
985
enableval="$enable_strict"
987
if test $enableval = "no"; then
988
kde_use_strict_options="no"
990
kde_use_strict_options="yes"
994
kde_use_strict_options="no"
998
# Check whether --enable-profile or --disable-profile was given.
999
if test "${enable_profile+set}" = set; then
1000
enableval="$enable_profile"
1001
kde_use_profiling=$enableval
1003
kde_use_profiling="no"
1010
# Extract the first word of "gcc", so it can be a program name with args.
1011
set dummy gcc; ac_word=$2
1012
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1013
echo "configure:1014: checking for $ac_word" >&5
1014
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1015
echo $ac_n "(cached) $ac_c" 1>&6
1017
if test -n "$CC"; then
1018
ac_cv_prog_CC="$CC" # Let the user override the test.
1020
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1022
for ac_dir in $ac_dummy; do
1023
test -z "$ac_dir" && ac_dir=.
1024
if test -f $ac_dir/$ac_word; then
1033
if test -n "$CC"; then
1034
echo "$ac_t""$CC" 1>&6
1036
echo "$ac_t""no" 1>&6
1039
if test -z "$CC"; then
1040
# Extract the first word of "cc", so it can be a program name with args.
1041
set dummy cc; ac_word=$2
1042
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1043
echo "configure:1044: checking for $ac_word" >&5
1044
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1045
echo $ac_n "(cached) $ac_c" 1>&6
1047
if test -n "$CC"; then
1048
ac_cv_prog_CC="$CC" # Let the user override the test.
1050
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1053
for ac_dir in $ac_dummy; do
1054
test -z "$ac_dir" && ac_dir=.
1055
if test -f $ac_dir/$ac_word; then
1056
if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1057
ac_prog_rejected=yes
1065
if test $ac_prog_rejected = yes; then
1066
# We found a bogon in the path, so make sure we never use it.
1067
set dummy $ac_cv_prog_CC
1069
if test $# -gt 0; then
1070
# We chose a different compiler from the bogus one.
1071
# However, it has the same basename, so the bogon will be chosen
1072
# first if we set CC to just the basename; use the full file name.
1074
set dummy "$ac_dir/$ac_word" "$@"
1082
if test -n "$CC"; then
1083
echo "$ac_t""$CC" 1>&6
1085
echo "$ac_t""no" 1>&6
1088
if test -z "$CC"; then
1089
case "`uname -s`" in
1091
# Extract the first word of "cl", so it can be a program name with args.
1092
set dummy cl; ac_word=$2
1093
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1094
echo "configure:1095: checking for $ac_word" >&5
1095
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1096
echo $ac_n "(cached) $ac_c" 1>&6
1098
if test -n "$CC"; then
1099
ac_cv_prog_CC="$CC" # Let the user override the test.
1101
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1103
for ac_dir in $ac_dummy; do
1104
test -z "$ac_dir" && ac_dir=.
1105
if test -f $ac_dir/$ac_word; then
1114
if test -n "$CC"; then
1115
echo "$ac_t""$CC" 1>&6
1117
echo "$ac_t""no" 1>&6
1122
test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1125
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1126
echo "configure:1127: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1129
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1130
ac_cpp='$CPP $CPPFLAGS'
1131
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1132
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1133
cross_compiling=$ac_cv_prog_cc_cross
1135
cat > conftest.$ac_ext << EOF
1137
#line 1138 "configure"
1138
#include "confdefs.h"
1142
if { (eval echo configure:1143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1143
ac_cv_prog_cc_works=yes
1144
# If we can't run a trivial program, we are probably using a cross compiler.
1145
if (./conftest; exit) 2>/dev/null; then
1146
ac_cv_prog_cc_cross=no
1148
ac_cv_prog_cc_cross=yes
1151
echo "configure: failed program was:" >&5
1152
cat conftest.$ac_ext >&5
1153
ac_cv_prog_cc_works=no
1157
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1158
ac_cpp='$CPP $CPPFLAGS'
1159
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1160
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1161
cross_compiling=$ac_cv_prog_cc_cross
1163
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1164
if test $ac_cv_prog_cc_works = no; then
1165
{ echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1167
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1168
echo "configure:1169: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1169
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1170
cross_compiling=$ac_cv_prog_cc_cross
1172
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1173
echo "configure:1174: checking whether we are using GNU C" >&5
1174
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1175
echo $ac_n "(cached) $ac_c" 1>&6
1177
cat > conftest.c <<EOF
1182
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1183: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1189
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1191
if test $ac_cv_prog_gcc = yes; then
1197
ac_test_CFLAGS="${CFLAGS+set}"
1198
ac_save_CFLAGS="$CFLAGS"
1200
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1201
echo "configure:1202: checking whether ${CC-cc} accepts -g" >&5
1202
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1203
echo $ac_n "(cached) $ac_c" 1>&6
1205
echo 'void f(){}' > conftest.c
1206
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1215
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1216
if test "$ac_test_CFLAGS" = set; then
1217
CFLAGS="$ac_save_CFLAGS"
1218
elif test $ac_cv_prog_cc_g = yes; then
1219
if test "$GCC" = yes; then
1225
if test "$GCC" = yes; then
1233
if test "$GCC" = "yes"; then
1234
if test "$kde_use_debug_code" = "yes"; then
1235
CFLAGS="-g -O2 $CFLAGS"
1238
CFLAGS="-ansi -W -Wall -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE $CFLAGS"
1242
CFLAGS="-O2 $CFLAGS"
1246
if test "$kde_use_debug_define" = "yes"; then
1247
CFLAGS="-DNDEBUG $CFLAGS"
1251
*-*-sysv4.2uw*) CFLAGS="-D_UNIXWARE $CFLAGS";;
1252
*-*-sysv5uw7*) CFLAGS="-D_UNIXWARE7 $CFLAGS";;
1255
if test -z "$LDFLAGS" && test "$kde_use_debug_code" = "no" && test "$GCC" = "yes"; then
1259
CXXFLAGS=" $CXXFLAGS"
1261
for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
1263
# Extract the first word of "$ac_prog", so it can be a program name with args.
1264
set dummy $ac_prog; ac_word=$2
1265
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1266
echo "configure:1267: checking for $ac_word" >&5
1267
if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1268
echo $ac_n "(cached) $ac_c" 1>&6
1270
if test -n "$CXX"; then
1271
ac_cv_prog_CXX="$CXX" # Let the user override the test.
1273
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1275
for ac_dir in $ac_dummy; do
1276
test -z "$ac_dir" && ac_dir=.
1277
if test -f $ac_dir/$ac_word; then
1278
ac_cv_prog_CXX="$ac_prog"
1285
CXX="$ac_cv_prog_CXX"
1286
if test -n "$CXX"; then
1287
echo "$ac_t""$CXX" 1>&6
1289
echo "$ac_t""no" 1>&6
1292
test -n "$CXX" && break
1294
test -n "$CXX" || CXX="gcc"
1297
echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1298
echo "configure:1299: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1302
# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1303
ac_cpp='$CXXCPP $CPPFLAGS'
1304
ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1305
ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1306
cross_compiling=$ac_cv_prog_cxx_cross
1308
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1312
cat > conftest.$ac_ext << EOF
1314
#line 1315 "configure"
1315
#include "confdefs.h"
1317
int main(){return(0);}
1319
if { (eval echo configure:1320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1320
ac_cv_prog_cxx_works=yes
1321
# If we can't run a trivial program, we are probably using a cross compiler.
1322
if (./conftest; exit) 2>/dev/null; then
1323
ac_cv_prog_cxx_cross=no
1325
ac_cv_prog_cxx_cross=yes
1328
echo "configure: failed program was:" >&5
1329
cat conftest.$ac_ext >&5
1330
ac_cv_prog_cxx_works=no
1334
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1335
ac_cpp='$CPP $CPPFLAGS'
1336
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1337
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1338
cross_compiling=$ac_cv_prog_cc_cross
1340
echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1341
if test $ac_cv_prog_cxx_works = no; then
1342
{ echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1344
echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1345
echo "configure:1346: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1346
echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1347
cross_compiling=$ac_cv_prog_cxx_cross
1349
echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1350
echo "configure:1351: checking whether we are using GNU C++" >&5
1351
if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1352
echo $ac_n "(cached) $ac_c" 1>&6
1354
cat > conftest.C <<EOF
1359
if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1360: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1366
echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1368
if test $ac_cv_prog_gxx = yes; then
1374
ac_test_CXXFLAGS="${CXXFLAGS+set}"
1375
ac_save_CXXFLAGS="$CXXFLAGS"
1377
echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1378
echo "configure:1379: checking whether ${CXX-g++} accepts -g" >&5
1379
if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1380
echo $ac_n "(cached) $ac_c" 1>&6
1382
echo 'void f(){}' > conftest.cc
1383
if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1384
ac_cv_prog_cxx_g=yes
1392
echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1393
if test "$ac_test_CXXFLAGS" = set; then
1394
CXXFLAGS="$ac_save_CXXFLAGS"
1395
elif test $ac_cv_prog_cxx_g = yes; then
1396
if test "$GXX" = yes; then
1402
if test "$GXX" = yes; then
1410
if test "$GXX" = "yes"; then
1411
if test "$kde_use_debug_code" = "yes"; then
1412
CXXFLAGS="-g -O2 -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings $CXXFLAGS"
1415
echo $ac_n "checking whether $CXX supports -Wno-long-long""... $ac_c" 1>&6
1416
echo "configure:1417: checking whether $CXX supports -Wno-long-long" >&5
1417
kde_cache=`echo Wno-long-long | sed 'y%.=/+-%___p_%'`
1418
if eval "test \"`echo '$''{'kde_cv_prog_cxx_$kde_cache'+set}'`\" = set"; then
1419
echo $ac_n "(cached) $ac_c" 1>&6
1422
echo 'int main() { return 0; }' >conftest.cc
1423
eval "kde_cv_prog_cxx_$kde_cache=no"
1424
if test -z "`$CXX -Wno-long-long -c conftest.cc 2>&1`"; then
1425
if test -z "`$CXX -Wno-long-long -o conftest conftest.o 2>&1`"; then
1426
eval "kde_cv_prog_cxx_$kde_cache=yes"
1433
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
1434
echo "$ac_t""yes" 1>&6
1436
CXXFLAGS="-Wno-long-long $CXXFLAGS"
1438
echo "$ac_t""no" 1>&6
1444
echo $ac_n "checking whether $CXX supports -Wnon-virtual-dtor""... $ac_c" 1>&6
1445
echo "configure:1446: checking whether $CXX supports -Wnon-virtual-dtor" >&5
1446
kde_cache=`echo Wnon-virtual-dtor | sed 'y%.=/+-%___p_%'`
1447
if eval "test \"`echo '$''{'kde_cv_prog_cxx_$kde_cache'+set}'`\" = set"; then
1448
echo $ac_n "(cached) $ac_c" 1>&6
1451
echo 'int main() { return 0; }' >conftest.cc
1452
eval "kde_cv_prog_cxx_$kde_cache=no"
1453
if test -z "`$CXX -Wnon-virtual-dtor -c conftest.cc 2>&1`"; then
1454
if test -z "`$CXX -Wnon-virtual-dtor -o conftest conftest.o 2>&1`"; then
1455
eval "kde_cv_prog_cxx_$kde_cache=yes"
1462
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
1463
echo "$ac_t""yes" 1>&6
1465
CXXFLAGS="-Wnon-virtual-dtor $CXXFLAGS"
1467
echo "$ac_t""no" 1>&6
1473
echo $ac_n "checking whether $CXX supports -fno-builtin""... $ac_c" 1>&6
1474
echo "configure:1475: checking whether $CXX supports -fno-builtin" >&5
1475
kde_cache=`echo fno-builtin | sed 'y%.=/+-%___p_%'`
1476
if eval "test \"`echo '$''{'kde_cv_prog_cxx_$kde_cache'+set}'`\" = set"; then
1477
echo $ac_n "(cached) $ac_c" 1>&6
1480
echo 'int main() { return 0; }' >conftest.cc
1481
eval "kde_cv_prog_cxx_$kde_cache=no"
1482
if test -z "`$CXX -fno-builtin -c conftest.cc 2>&1`"; then
1483
if test -z "`$CXX -fno-builtin -o conftest conftest.o 2>&1`"; then
1484
eval "kde_cv_prog_cxx_$kde_cache=yes"
1491
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
1492
echo "$ac_t""yes" 1>&6
1494
CXXFLAGS="-fno-builtin $CXXFLAGS"
1496
echo "$ac_t""no" 1>&6
1502
case $host in *-*-linux-gnu)
1503
CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wbad-function-cast -Wcast-align -Wundef -Wconversion $CXXFLAGS"
1507
if test "$kde_use_strict_options" = "yes"; then
1508
CXXFLAGS="-Wcast-qual -Wbad-function-cast -Wshadow -Wcast-align $CXXFLAGS"
1511
if test "$kde_very_strict" = "yes"; then
1512
CXXFLAGS="-Wold-style-cast -Wredundant-decls -Wconversion $CXXFLAGS"
1515
CXXFLAGS="-O2 $CXXFLAGS"
1519
if test "$kde_use_debug_define" = "yes"; then
1520
CXXFLAGS="-DNDEBUG $CXXFLAGS"
1523
if test "$kde_use_profiling" = "yes"; then
1525
echo $ac_n "checking whether $CXX supports -pg""... $ac_c" 1>&6
1526
echo "configure:1527: checking whether $CXX supports -pg" >&5
1527
kde_cache=`echo pg | sed 'y%.=/+-%___p_%'`
1528
if eval "test \"`echo '$''{'kde_cv_prog_cxx_$kde_cache'+set}'`\" = set"; then
1529
echo $ac_n "(cached) $ac_c" 1>&6
1532
echo 'int main() { return 0; }' >conftest.cc
1533
eval "kde_cv_prog_cxx_$kde_cache=no"
1534
if test -z "`$CXX -pg -c conftest.cc 2>&1`"; then
1535
if test -z "`$CXX -pg -o conftest conftest.o 2>&1`"; then
1536
eval "kde_cv_prog_cxx_$kde_cache=yes"
1543
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
1544
echo "$ac_t""yes" 1>&6
1547
CFLAGS="-pg $CFLAGS"
1548
CXXFLAGS="-pg $CXXFLAGS"
1551
echo "$ac_t""no" 1>&6
1559
echo $ac_n "checking whether $CXX supports -fno-exceptions""... $ac_c" 1>&6
1560
echo "configure:1561: checking whether $CXX supports -fno-exceptions" >&5
1561
kde_cache=`echo fno-exceptions | sed 'y%.=/+-%___p_%'`
1562
if eval "test \"`echo '$''{'kde_cv_prog_cxx_$kde_cache'+set}'`\" = set"; then
1563
echo $ac_n "(cached) $ac_c" 1>&6
1566
echo 'int main() { return 0; }' >conftest.cc
1567
eval "kde_cv_prog_cxx_$kde_cache=no"
1568
if test -z "`$CXX -fno-exceptions -c conftest.cc 2>&1`"; then
1569
if test -z "`$CXX -fno-exceptions -o conftest conftest.o 2>&1`"; then
1570
eval "kde_cv_prog_cxx_$kde_cache=yes"
1577
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
1578
echo "$ac_t""yes" 1>&6
1580
CXXFLAGS="$CXXFLAGS -fno-exceptions"
1582
echo "$ac_t""no" 1>&6
1588
echo $ac_n "checking whether $CXX supports -fno-check-new""... $ac_c" 1>&6
1589
echo "configure:1590: checking whether $CXX supports -fno-check-new" >&5
1590
kde_cache=`echo fno-check-new | sed 'y%.=/+-%___p_%'`
1591
if eval "test \"`echo '$''{'kde_cv_prog_cxx_$kde_cache'+set}'`\" = set"; then
1592
echo $ac_n "(cached) $ac_c" 1>&6
1595
echo 'int main() { return 0; }' >conftest.cc
1596
eval "kde_cv_prog_cxx_$kde_cache=no"
1597
if test -z "`$CXX -fno-check-new -c conftest.cc 2>&1`"; then
1598
if test -z "`$CXX -fno-check-new -o conftest conftest.o 2>&1`"; then
1599
eval "kde_cv_prog_cxx_$kde_cache=yes"
1606
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
1607
echo "$ac_t""yes" 1>&6
1609
CXXFLAGS="$CXXFLAGS -fno-check-new"
1611
echo "$ac_t""no" 1>&6
1617
echo $ac_n "checking whether $CXX supports -fexceptions""... $ac_c" 1>&6
1618
echo "configure:1619: checking whether $CXX supports -fexceptions" >&5
1619
kde_cache=`echo fexceptions | sed 'y%.=/+-%___p_%'`
1620
if eval "test \"`echo '$''{'kde_cv_prog_cxx_$kde_cache'+set}'`\" = set"; then
1621
echo $ac_n "(cached) $ac_c" 1>&6
1624
echo 'int main() { return 0; }' >conftest.cc
1625
eval "kde_cv_prog_cxx_$kde_cache=no"
1626
if test -z "`$CXX -fexceptions -c conftest.cc 2>&1`"; then
1627
if test -z "`$CXX -fexceptions -o conftest conftest.o 2>&1`"; then
1628
eval "kde_cv_prog_cxx_$kde_cache=yes"
1635
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
1636
echo "$ac_t""yes" 1>&6
1638
USE_EXCEPTIONS="-fexceptions"
1640
echo "$ac_t""no" 1>&6
1650
*-*-irix*) test "$GXX" = yes && CXXFLAGS="-D_LANGUAGE_C_PLUS_PLUS -D__LANGUAGE_C_PLUS_PLUS $CXXFLAGS" ;;
1651
*-*-sysv4.2uw*) CXXFLAGS="-D_UNIXWARE $CXXFLAGS";;
1652
*-*-sysv5uw7*) CXXFLAGS="-D_UNIXWARE7 $CXXFLAGS";;
1654
if test "$GXX" = yes; then
1655
libstdcpp=`$CXX -print-file-name=libstdc++.so`
1656
if test ! -f $libstdcpp; then
1657
{ 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; }
1664
__forbid=" -fno-rtti -rpath "
1665
if test -n "$__val"; then
1671
*" $i "*) echo "configure: warning: found forbidden $i in CXX, removing it" 1>&2 ;;
1672
*) # Careful to not add spaces, where there were none, because otherwise
1673
# libtool gets confused, if we change e.g. CXX
1674
if test -z "$__new" ; then __new=$i ; else __new="$__new $i" ; fi ;;
1682
__forbid=" -fno-rtti -rpath "
1683
if test -n "$__val"; then
1689
*" $i "*) echo "configure: warning: found forbidden $i in CXXFLAGS, removing it" 1>&2 ;;
1690
*) # Careful to not add spaces, where there were none, because otherwise
1691
# libtool gets confused, if we change e.g. CXX
1692
if test -z "$__new" ; then __new=$i ; else __new="$__new $i" ; fi ;;
1701
echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
1702
echo "configure:1703: checking how to run the C++ preprocessor" >&5
1703
if test -z "$CXXCPP"; then
1704
if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
1705
echo $ac_n "(cached) $ac_c" 1>&6
1708
# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1709
ac_cpp='$CXXCPP $CPPFLAGS'
1710
ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1711
ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1712
cross_compiling=$ac_cv_prog_cxx_cross
1714
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1716
CXXCPP="${CXX-g++} -E"
1717
cat > conftest.$ac_ext <<EOF
1718
#line 1719 "configure"
1719
#include "confdefs.h"
1722
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1723
{ (eval echo configure:1724: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1724
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1725
if test -z "$ac_err"; then
1729
echo "configure: failed program was:" >&5
1730
cat conftest.$ac_ext >&5
1735
ac_cv_prog_CXXCPP="$CXXCPP"
1737
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1738
ac_cpp='$CPP $CPPFLAGS'
1739
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1740
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1741
cross_compiling=$ac_cv_prog_cc_cross
1744
CXXCPP="$ac_cv_prog_CXXCPP"
1746
ac_cv_prog_CXXCPP=$CXXCPP
1748
echo "$ac_t""$CXXCPP" 1>&6
1751
# the following is to allow programs, that are known to
1752
# have problems when compiled with -O2
1753
if test -n "$CXXFLAGS"; then
1757
for i in $CXXFLAGS; do
1762
NOOPT_CXXFLAGS="$NOOPT_CXXFLAGS $i"
1769
if test "x$kde_use_qt_emb" = "xyes"; then
1770
NOOPT_CXXFLAGS="$NOOPT_CXXFLAGS -DQWS"
1776
# Check whether --enable-final or --disable-final was given.
1777
if test "${enable_final+set}" = set; then
1778
enableval="$enable_final"
1779
kde_use_final=$enableval
1790
echo $ac_n "checking whether $CXX supports -frepo""... $ac_c" 1>&6
1791
echo "configure:1792: checking whether $CXX supports -frepo" >&5
1792
kde_cache=`echo frepo | sed 'y%.=/+-%___p_%'`
1793
if eval "test \"`echo '$''{'kde_cv_prog_cxx_$kde_cache'+set}'`\" = set"; then
1794
echo $ac_n "(cached) $ac_c" 1>&6
1797
echo 'int main() { return 0; }' >conftest.cc
1798
eval "kde_cv_prog_cxx_$kde_cache=no"
1799
if test -z "`$CXX -frepo -c conftest.cc 2>&1`"; then
1800
if test -z "`$CXX -frepo -o conftest conftest.o 2>&1`"; then
1801
eval "kde_cv_prog_cxx_$kde_cache=yes"
1808
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
1809
echo "$ac_t""yes" 1>&6
1816
echo "$ac_t""no" 1>&6
1822
if test -z "$REPO"; then
1824
echo $ac_n "checking whether $CXX supports -instances=explicit""... $ac_c" 1>&6
1825
echo "configure:1826: checking whether $CXX supports -instances=explicit" >&5
1826
kde_cache=`echo instances=explicit | sed 'y%.=/+-%___p_%'`
1827
if eval "test \"`echo '$''{'kde_cv_prog_cxx_$kde_cache'+set}'`\" = set"; then
1828
echo $ac_n "(cached) $ac_c" 1>&6
1831
echo 'int main() { return 0; }' >conftest.cc
1832
eval "kde_cv_prog_cxx_$kde_cache=no"
1833
if test -z "`$CXX -instances=explicit -c conftest.cc 2>&1`"; then
1834
if test -z "`$CXX -instances=explicit -o conftest conftest.o 2>&1`"; then
1835
eval "kde_cv_prog_cxx_$kde_cache=yes"
1842
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
1843
echo "$ac_t""yes" 1>&6
1846
REPO="-instances=explicit"
1847
NOREPO="-instances=extern"
1850
echo "$ac_t""no" 1>&6
1857
if test -n "$REPO"; then
1858
cat >> confdefs.h <<EOF
1859
#define HAVE_TEMPLATE_REPOSITORY 1
1868
if test "x$kde_use_final" = "xyes"; then
1869
KDE_USE_FINAL_TRUE=""
1870
KDE_USE_FINAL_FALSE="#"
1872
KDE_USE_FINAL_TRUE="#"
1873
KDE_USE_FINAL_FALSE=""
1878
# Check whether --enable-closure or --disable-closure was given.
1879
if test "${enable_closure+set}" = set; then
1880
enableval="$enable_closure"
1881
kde_use_closure=$enableval
1887
if test "x$kde_use_closure" = "xyes"; then
1888
KDE_USE_CLOSURE_TRUE=""
1889
KDE_USE_CLOSURE_FALSE="#"
1890
# CXXFLAGS="$CXXFLAGS $REPO"
1892
KDE_USE_CLOSURE_TRUE="#"
1893
KDE_USE_CLOSURE_FALSE=""
1904
# Check whether --enable-shared or --disable-shared was given.
1905
if test "${enable_shared+set}" = set; then
1906
enableval="$enable_shared"
1907
p=${PACKAGE-default}
1909
yes) enable_shared=yes ;;
1910
no) enable_shared=no ;;
1913
# Look at the argument we got. We use all the common list separators.
1914
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1915
for pkg in $enableval; do
1916
if test "X$pkg" = "X$p"; then
1927
# Check whether --enable-static or --disable-static was given.
1928
if test "${enable_static+set}" = set; then
1929
enableval="$enable_static"
1930
p=${PACKAGE-default}
1932
yes) enable_static=yes ;;
1933
no) enable_static=no ;;
1936
# Look at the argument we got. We use all the common list separators.
1937
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1938
for pkg in $enableval; do
1939
if test "X$pkg" = "X$p"; then
1950
# Check whether --enable-fast-install or --disable-fast-install was given.
1951
if test "${enable_fast_install+set}" = set; then
1952
enableval="$enable_fast_install"
1953
p=${PACKAGE-default}
1955
yes) enable_fast_install=yes ;;
1956
no) enable_fast_install=no ;;
1958
enable_fast_install=no
1959
# Look at the argument we got. We use all the common list separators.
1960
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1961
for pkg in $enableval; do
1962
if test "X$pkg" = "X$p"; then
1963
enable_fast_install=yes
1970
enable_fast_install=yes
1973
# Check whether --with-gnu-ld or --without-gnu-ld was given.
1974
if test "${with_gnu_ld+set}" = set; then
1975
withval="$with_gnu_ld"
1976
test "$withval" = no || with_gnu_ld=yes
1982
if test "$GCC" = yes; then
1983
# Check if gcc -print-prog-name=ld gives a path.
1984
echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1985
echo "configure:1986: checking for ld used by GCC" >&5
1988
# gcc leaves a trailing carriage return which upsets mingw
1989
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1991
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1994
# Accept absolute paths.
1995
[\\/]* | [A-Za-z]:[\\/]*)
1996
re_direlt='/[^/][^/]*/\.\./'
1997
# Canonicalize the path of ld
1998
ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1999
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2000
ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2002
test -z "$LD" && LD="$ac_prog"
2005
# If it fails, then pretend we aren't using GCC.
2009
# If it is relative, then search for the first ld in PATH.
2013
elif test "$with_gnu_ld" = yes; then
2014
echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
2015
echo "configure:2016: checking for GNU ld" >&5
2017
echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
2018
echo "configure:2019: checking for non-GNU ld" >&5
2020
if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
2021
echo $ac_n "(cached) $ac_c" 1>&6
2023
if test -z "$LD"; then
2024
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2025
for ac_dir in $PATH; do
2026
test -z "$ac_dir" && ac_dir=.
2027
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2028
lt_cv_path_LD="$ac_dir/$ac_prog"
2029
# Check to see if the program is GNU ld. I'd rather use --version,
2030
# but apparently some GNU ld's only accept -v.
2031
# Break only if it was the GNU/non-GNU ld that we prefer.
2032
if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2033
test "$with_gnu_ld" != no && break
2035
test "$with_gnu_ld" != yes && break
2041
lt_cv_path_LD="$LD" # Let the user override the test with a path.
2046
if test -n "$LD"; then
2047
echo "$ac_t""$LD" 1>&6
2049
echo "$ac_t""no" 1>&6
2051
test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
2052
echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
2053
echo "configure:2054: checking if the linker ($LD) is GNU ld" >&5
2054
if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
2055
echo $ac_n "(cached) $ac_c" 1>&6
2057
# I'd rather use --version here, but apparently some GNU ld's only accept -v.
2058
if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2059
lt_cv_prog_gnu_ld=yes
2061
lt_cv_prog_gnu_ld=no
2065
echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
2066
with_gnu_ld=$lt_cv_prog_gnu_ld
2069
echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
2070
echo "configure:2071: checking for $LD option to reload object files" >&5
2071
if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
2072
echo $ac_n "(cached) $ac_c" 1>&6
2074
lt_cv_ld_reload_flag='-r'
2077
echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
2078
reload_flag=$lt_cv_ld_reload_flag
2079
test -n "$reload_flag" && reload_flag=" $reload_flag"
2081
echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
2082
echo "configure:2083: checking for BSD-compatible nm" >&5
2083
if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
2084
echo $ac_n "(cached) $ac_c" 1>&6
2086
if test -n "$NM"; then
2087
# Let the user override the test.
2090
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2091
for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2092
test -z "$ac_dir" && ac_dir=.
2093
tmp_nm=$ac_dir/${ac_tool_prefix}nm
2094
if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
2095
# Check to see if the nm accepts a BSD-compat flag.
2096
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
2097
# nm: unknown option "B" ignored
2098
# Tru64's nm complains that /dev/null is an invalid object file
2099
if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
2100
lt_cv_path_NM="$tmp_nm -B"
2102
elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2103
lt_cv_path_NM="$tmp_nm -p"
2106
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2107
continue # so that we can try to find one that supports BSD flags
2112
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2117
echo "$ac_t""$NM" 1>&6
2119
echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
2120
echo "configure:2121: checking whether ln -s works" >&5
2121
if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
2122
echo $ac_n "(cached) $ac_c" 1>&6
2125
if ln -s X conftestdata 2>/dev/null
2128
ac_cv_prog_LN_S="ln -s"
2133
LN_S="$ac_cv_prog_LN_S"
2134
if test "$ac_cv_prog_LN_S" = "ln -s"; then
2135
echo "$ac_t""yes" 1>&6
2137
echo "$ac_t""no" 1>&6
2140
echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
2141
echo "configure:2142: checking how to recognise dependant libraries" >&5
2142
if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
2143
echo $ac_n "(cached) $ac_c" 1>&6
2145
lt_cv_file_magic_cmd='$MAGIC_CMD'
2146
lt_cv_file_magic_test_file=
2147
lt_cv_deplibs_check_method='unknown'
2148
# Need to set the preceding variable on all platforms that support
2149
# interlibrary dependencies.
2150
# 'none' -- dependencies not supported.
2151
# `unknown' -- same as none, but documents that we really don't know.
2152
# 'pass_all' -- all dependencies passed with no checks.
2153
# 'test_compile' -- check by making test program.
2154
# 'file_magic [regex]' -- check by looking for files in library path
2155
# which responds to the $file_magic_cmd with a given egrep regex.
2156
# If you have `file' or equivalent on your system and you're not sure
2157
# whether `pass_all' will *always* work, you probably want this one.
2161
lt_cv_deplibs_check_method=pass_all
2165
lt_cv_deplibs_check_method=pass_all
2169
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
2170
lt_cv_file_magic_cmd='/usr/bin/file -L'
2171
lt_cv_file_magic_test_file=/shlib/libc.so
2174
cygwin* | mingw* |pw32*)
2175
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2176
lt_cv_file_magic_cmd='$OBJDUMP -f'
2179
darwin* | rhapsody*)
2180
lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
2181
lt_cv_file_magic_cmd='/usr/bin/file -L'
2183
rhapsody* | darwin1.012)
2184
lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System'
2187
lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
2193
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2196
# Not sure whether the presence of OpenBSD here was a mistake.
2197
# Let's accept both of them until this is cleared up.
2198
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
2199
lt_cv_file_magic_cmd=/usr/bin/file
2200
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2204
lt_cv_deplibs_check_method=pass_all
2209
lt_cv_deplibs_check_method=pass_all
2213
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2214
lt_cv_file_magic_cmd=/usr/bin/file
2215
lt_cv_file_magic_test_file=/usr/lib/libc.sl
2221
# this will be overridden with pass_all, but let us keep it just in case
2222
lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2226
*-32|*"-32 ") libmagic=32-bit;;
2227
*-n32|*"-n32 ") libmagic=N32;;
2228
*-64|*"-64 ") libmagic=64-bit;;
2229
*) libmagic=never-match;;
2231
# this will be overridden with pass_all, but let us keep it just in case
2232
lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2235
lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2236
lt_cv_deplibs_check_method=pass_all
2239
# This must be Linux ELF.
2242
alpha* | i*86 | powerpc* | sparc* | ia64* | s390* | m68k* | arm* | mips* | hppa* | sh* )
2243
lt_cv_deplibs_check_method=pass_all ;;
2245
# glibc up to 2.1.1 does not perform some relocations on ARM
2246
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2248
lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2252
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2253
lt_cv_deplibs_check_method='file_magic NetBSD/[a-z0-9]* demand paged shared library'
2255
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
2257
lt_cv_file_magic_cmd='/usr/bin/file -L'
2258
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2262
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2265
lt_cv_deplibs_check_method='file_magic OpenBSD/i[3-9]86 demand paged shared library'
2266
lt_cv_file_magic_cmd=/usr/bin/file
2267
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2271
lt_cv_deplibs_check_method=pass_all
2276
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2277
lt_cv_file_magic_cmd=/usr/bin/file
2278
lt_cv_file_magic_test_file=/usr/lib/libnls.so
2281
osf3* | osf4* | osf5*)
2282
# this will be overridden with pass_all, but let us keep it just in case
2283
lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2284
lt_cv_file_magic_test_file=/shlib/libc.so
2285
lt_cv_deplibs_check_method=pass_all
2289
lt_cv_deplibs_check_method=pass_all
2293
lt_cv_deplibs_check_method=pass_all
2294
lt_cv_file_magic_test_file=/lib/libc.so
2297
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2298
case $host_vendor in
2300
lt_cv_deplibs_check_method=pass_all
2303
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]'
2304
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2312
echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
2313
file_magic_cmd=$lt_cv_file_magic_cmd
2314
deplibs_check_method=$lt_cv_deplibs_check_method
2316
if test $host != $build; then
2317
ac_tool_prefix=${host_alias}-
2322
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
2324
# Only perform the check for file, if the check method requires it
2325
case $deplibs_check_method in
2327
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2328
echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2329
echo "configure:2330: checking for ${ac_tool_prefix}file" >&5
2330
if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2331
echo $ac_n "(cached) $ac_c" 1>&6
2335
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2338
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2341
ac_save_MAGIC_CMD="$MAGIC_CMD"
2342
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2343
ac_dummy="/usr/bin:$PATH"
2344
for ac_dir in $ac_dummy; do
2345
test -z "$ac_dir" && ac_dir=.
2346
if test -f $ac_dir/${ac_tool_prefix}file; then
2347
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2348
if test -n "$file_magic_test_file"; then
2349
case $deplibs_check_method in
2351
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2352
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2353
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2354
egrep "$file_magic_regex" > /dev/null; then
2359
*** Warning: the command libtool uses to detect shared libraries,
2360
*** $file_magic_cmd, produces output that libtool cannot recognize.
2361
*** The result is that libtool may fail to recognize shared libraries
2362
*** as such. This will affect the creation of libtool libraries that
2363
*** depend on shared libraries, but programs linked with such libtool
2364
*** libraries will work regardless of this problem. Nevertheless, you
2365
*** may want to report the problem to your system manager and/or to
2366
*** bug-libtool@gnu.org
2376
MAGIC_CMD="$ac_save_MAGIC_CMD"
2381
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2382
if test -n "$MAGIC_CMD"; then
2383
echo "$ac_t""$MAGIC_CMD" 1>&6
2385
echo "$ac_t""no" 1>&6
2388
if test -z "$lt_cv_path_MAGIC_CMD"; then
2389
if test -n "$ac_tool_prefix"; then
2390
echo $ac_n "checking for file""... $ac_c" 1>&6
2391
echo "configure:2392: checking for file" >&5
2392
if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2393
echo $ac_n "(cached) $ac_c" 1>&6
2397
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2400
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2403
ac_save_MAGIC_CMD="$MAGIC_CMD"
2404
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2405
ac_dummy="/usr/bin:$PATH"
2406
for ac_dir in $ac_dummy; do
2407
test -z "$ac_dir" && ac_dir=.
2408
if test -f $ac_dir/file; then
2409
lt_cv_path_MAGIC_CMD="$ac_dir/file"
2410
if test -n "$file_magic_test_file"; then
2411
case $deplibs_check_method in
2413
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2414
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2415
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2416
egrep "$file_magic_regex" > /dev/null; then
2421
*** Warning: the command libtool uses to detect shared libraries,
2422
*** $file_magic_cmd, produces output that libtool cannot recognize.
2423
*** The result is that libtool may fail to recognize shared libraries
2424
*** as such. This will affect the creation of libtool libraries that
2425
*** depend on shared libraries, but programs linked with such libtool
2426
*** libraries will work regardless of this problem. Nevertheless, you
2427
*** may want to report the problem to your system manager and/or to
2428
*** bug-libtool@gnu.org
2438
MAGIC_CMD="$ac_save_MAGIC_CMD"
2443
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2444
if test -n "$MAGIC_CMD"; then
2445
echo "$ac_t""$MAGIC_CMD" 1>&6
2447
echo "$ac_t""no" 1>&6
2459
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2460
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2461
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2462
echo "configure:2463: checking for $ac_word" >&5
2463
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2464
echo $ac_n "(cached) $ac_c" 1>&6
2466
if test -n "$RANLIB"; then
2467
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2469
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2471
for ac_dir in $ac_dummy; do
2472
test -z "$ac_dir" && ac_dir=.
2473
if test -f $ac_dir/$ac_word; then
2474
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2481
RANLIB="$ac_cv_prog_RANLIB"
2482
if test -n "$RANLIB"; then
2483
echo "$ac_t""$RANLIB" 1>&6
2485
echo "$ac_t""no" 1>&6
2489
if test -z "$ac_cv_prog_RANLIB"; then
2490
if test -n "$ac_tool_prefix"; then
2491
# Extract the first word of "ranlib", so it can be a program name with args.
2492
set dummy ranlib; ac_word=$2
2493
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2494
echo "configure:2495: checking for $ac_word" >&5
2495
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2496
echo $ac_n "(cached) $ac_c" 1>&6
2498
if test -n "$RANLIB"; then
2499
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2501
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2503
for ac_dir in $ac_dummy; do
2504
test -z "$ac_dir" && ac_dir=.
2505
if test -f $ac_dir/$ac_word; then
2506
ac_cv_prog_RANLIB="ranlib"
2511
test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2514
RANLIB="$ac_cv_prog_RANLIB"
2515
if test -n "$RANLIB"; then
2516
echo "$ac_t""$RANLIB" 1>&6
2518
echo "$ac_t""no" 1>&6
2526
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2527
set dummy ${ac_tool_prefix}strip; ac_word=$2
2528
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2529
echo "configure:2530: checking for $ac_word" >&5
2530
if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2531
echo $ac_n "(cached) $ac_c" 1>&6
2533
if test -n "$STRIP"; then
2534
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2536
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2538
for ac_dir in $ac_dummy; do
2539
test -z "$ac_dir" && ac_dir=.
2540
if test -f $ac_dir/$ac_word; then
2541
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2548
STRIP="$ac_cv_prog_STRIP"
2549
if test -n "$STRIP"; then
2550
echo "$ac_t""$STRIP" 1>&6
2552
echo "$ac_t""no" 1>&6
2556
if test -z "$ac_cv_prog_STRIP"; then
2557
if test -n "$ac_tool_prefix"; then
2558
# Extract the first word of "strip", so it can be a program name with args.
2559
set dummy strip; ac_word=$2
2560
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2561
echo "configure:2562: checking for $ac_word" >&5
2562
if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2563
echo $ac_n "(cached) $ac_c" 1>&6
2565
if test -n "$STRIP"; then
2566
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2568
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2570
for ac_dir in $ac_dummy; do
2571
test -z "$ac_dir" && ac_dir=.
2572
if test -f $ac_dir/$ac_word; then
2573
ac_cv_prog_STRIP="strip"
2578
test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2581
STRIP="$ac_cv_prog_STRIP"
2582
if test -n "$STRIP"; then
2583
echo "$ac_t""$STRIP" 1>&6
2585
echo "$ac_t""no" 1>&6
2594
# Check for any special flags to pass to ltconfig.
2595
libtool_flags="--cache-file=$cache_file"
2596
test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2597
test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2598
test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2599
test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
2600
test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2601
libtool_flags="$libtool_flags --enable-dlopen"
2603
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2604
if test "${enable_libtool_lock+set}" = set; then
2605
enableval="$enable_libtool_lock"
2609
test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2610
test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2612
# Check whether --with-pic or --without-pic was given.
2613
if test "${with_pic+set}" = set; then
2620
test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2621
test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2623
# Some flags need to be propagated to the compiler or linker for good
2627
# Find out which ABI we are using.
2628
echo '#line 2629 "configure"' > conftest.$ac_ext
2629
if { (eval echo configure:2630: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2630
case `/usr/bin/file conftest.$ac_objext` in
2646
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
2647
SAVE_CFLAGS="$CFLAGS"
2648
CFLAGS="$CFLAGS -belf"
2649
echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2650
echo "configure:2651: checking whether the C compiler needs -belf" >&5
2651
if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2652
echo $ac_n "(cached) $ac_c" 1>&6
2656
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2657
ac_cpp='$CPP $CPPFLAGS'
2658
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2659
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2660
cross_compiling=$ac_cv_prog_cc_cross
2662
cat > conftest.$ac_ext <<EOF
2663
#line 2664 "configure"
2664
#include "confdefs.h"
2670
if { (eval echo configure:2671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2672
lt_cv_cc_needs_belf=yes
2674
echo "configure: failed program was:" >&5
2675
cat conftest.$ac_ext >&5
2677
lt_cv_cc_needs_belf=no
2681
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2682
ac_cpp='$CPP $CPPFLAGS'
2683
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2684
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2685
cross_compiling=$ac_cv_prog_cc_cross
2689
echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2690
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2691
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2692
CFLAGS="$SAVE_CFLAGS"
2700
echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
2701
echo "configure:2702: checking for Cygwin environment" >&5
2702
if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
2703
echo $ac_n "(cached) $ac_c" 1>&6
2705
cat > conftest.$ac_ext <<EOF
2706
#line 2707 "configure"
2707
#include "confdefs.h"
2712
#define __CYGWIN__ __CYGWIN32__
2717
if { (eval echo configure:2718: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2721
echo "configure: failed program was:" >&5
2722
cat conftest.$ac_ext >&5
2730
echo "$ac_t""$ac_cv_cygwin" 1>&6
2732
test "$ac_cv_cygwin" = yes && CYGWIN=yes
2733
echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
2734
echo "configure:2735: checking for mingw32 environment" >&5
2735
if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
2736
echo $ac_n "(cached) $ac_c" 1>&6
2738
cat > conftest.$ac_ext <<EOF
2739
#line 2740 "configure"
2740
#include "confdefs.h"
2746
if { (eval echo configure:2747: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2750
echo "configure: failed program was:" >&5
2751
cat conftest.$ac_ext >&5
2759
echo "$ac_t""$ac_cv_mingw32" 1>&6
2761
test "$ac_cv_mingw32" = yes && MINGW32=yes
2763
# Save cache, so that ltconfig can load it
2764
cat > confcache <<\EOF
2765
# This file is a shell script that caches the results of configure
2766
# tests run on this system so they can be shared between configure
2767
# scripts and configure runs. It is not useful on other systems.
2768
# If it contains results you don't want to keep, you may remove or edit it.
2770
# By default, configure uses ./config.cache as the cache file,
2771
# creating it if it does not exist already. You can give configure
2772
# the --cache-file=FILE option to use a different cache file; that is
2773
# what configure does when it calls configure scripts in
2774
# subdirectories, so they share the cache.
2775
# Giving --cache-file=/dev/null disables caching, for debugging configure.
2776
# config.status only pays attention to the cache file if you give it the
2777
# --recheck option to rerun configure.
2780
# The following way of writing the cache mishandles newlines in values,
2781
# but we know of no workaround that is simple, portable, and efficient.
2782
# So, don't put newlines in cache variables' values.
2783
# Ultrix sh set writes to stderr and can't be redirected directly,
2784
# and sets the high bit in the cache file unless we assign to the vars.
2786
case `(ac_space=' '; set | grep ac_space) 2>&1` in
2788
# `set' does not quote correctly, so add quotes (double-quote substitution
2789
# turns \\\\ into \\, and sed turns \\ into \).
2791
-e "s/'/'\\\\''/g" \
2792
-e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2795
# `set' quotes correctly as required by POSIX, so do not add quotes.
2796
sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2799
if cmp -s $cache_file confcache; then
2802
if test -w $cache_file; then
2803
echo "updating cache $cache_file"
2804
cat confcache > $cache_file
2806
echo "not updating unwritable cache $cache_file"
2812
# Actually configure libtool. ac_aux_dir is where install-sh is found.
2813
AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2814
MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2815
LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2816
AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2817
objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2818
deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2819
${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2820
$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2821
|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2823
# Reload cache, that may have been modified by ltconfig
2824
if test -r "$cache_file"; then
2825
echo "loading cache $cache_file"
2828
echo "creating cache $cache_file"
2833
# This can be used to rebuild libtool when needed
2834
LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2836
# Always use our own libtool.
2837
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2839
# Redirect the config.log output again, so that the ltconfig log is not
2840
# clobbered by the next message.
2841
exec 5>>./config.log
2845
LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
2847
lt_save_CFLAGS="$CFLAGS"
2848
AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
2849
MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2850
LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2851
AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2852
objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2853
deplibs_check_method="$deplibs_check_method" \
2854
file_magic_cmd="$file_magic_cmd" \
2855
${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
2856
--build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
2857
|| { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
2859
CFLAGS="$lt_save_CFLAGS"
2861
# Redirect the config.log output again, so that the ltconfig log is not
2862
# clobbered by the next message.
2863
exec 5>>./config.log
2874
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2875
ac_cpp='$CPP $CPPFLAGS'
2876
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2877
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2878
cross_compiling=$ac_cv_prog_cc_cross
2880
echo $ac_n "checking for object suffix""... $ac_c" 1>&6
2881
echo "configure:2882: checking for object suffix" >&5
2882
if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
2883
echo $ac_n "(cached) $ac_c" 1>&6
2886
echo 'int i = 1;' > conftest.$ac_ext
2887
if { (eval echo configure:2888: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2888
for ac_file in conftest.*; do
2891
*) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
2895
{ echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
2900
echo "$ac_t""$ac_cv_objext" 1>&6
2901
OBJEXT=$ac_cv_objext
2902
ac_objext=$ac_cv_objext
2906
echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
2907
echo "configure:2908: checking for executable suffix" >&5
2908
if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
2909
echo $ac_n "(cached) $ac_c" 1>&6
2911
if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
2915
echo 'int main () { return 0; }' > conftest.$ac_ext
2917
if { (eval echo configure:2918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
2918
for file in conftest.*; do
2920
*.c | *.o | *.obj) ;;
2921
*) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
2925
{ echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
2928
test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
2933
test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
2934
echo "$ac_t""${ac_cv_exeext}" 1>&6
2938
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2939
ac_cpp='$CPP $CPPFLAGS'
2940
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2941
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2942
cross_compiling=$ac_cv_prog_cc_cross
2952
LIBTOOL_SHELL="/bin/sh ./libtool"
2953
# LIBTOOL="$LIBTOOL --silent"
2954
KDE_PLUGIN="-avoid-version -module -no-undefined \$(KDE_RPATH) \$(KDE_MT_LDFLAGS)"
2958
all_libraries="$all_libraries $USER_LDFLAGS"
2959
all_includes="$all_includes $USER_INCLUDES"
2965
# Extract the first word of "msgfmt", so it can be a program name with args.
2966
set dummy msgfmt; ac_word=$2
2967
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2968
echo "configure:2969: checking for $ac_word" >&5
2969
if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
2970
echo $ac_n "(cached) $ac_c" 1>&6
2974
ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2977
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2978
for ac_dir in $PATH; do
2979
test -z "$ac_dir" && ac_dir=.
2980
if test -f $ac_dir/$ac_word; then
2981
if test -n "`$ac_dir/$ac_word --version 2>&1 | grep 'GNU gettext'`"; then
2982
ac_cv_path_MSGFMT="$ac_dir/$ac_word"
2988
test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
2992
MSGFMT="$ac_cv_path_MSGFMT"
2993
if test -n "$MSGFMT"; then
2994
echo "$ac_t""$MSGFMT" 1>&6
2996
echo "$ac_t""no" 1>&6
2999
# Extract the first word of "gmsgfmt", so it can be a program name with args.
3000
set dummy gmsgfmt; ac_word=$2
3001
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3002
echo "configure:3003: checking for $ac_word" >&5
3003
if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3004
echo $ac_n "(cached) $ac_c" 1>&6
3008
ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3011
ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
3014
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3016
for ac_dir in $ac_dummy; do
3017
test -z "$ac_dir" && ac_dir=.
3018
if test -f $ac_dir/$ac_word; then
3019
ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3024
test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3028
GMSGFMT="$ac_cv_path_GMSGFMT"
3029
if test -n "$GMSGFMT"; then
3030
echo "$ac_t""$GMSGFMT" 1>&6
3032
echo "$ac_t""no" 1>&6
3036
if test -z "`$GMSGFMT --version 2>&1 | grep 'GNU gettext'`"; then
3037
echo "$ac_t""found msgfmt program is not GNU msgfmt; ignore it" 1>&6
3044
# Extract the first word of "xgettext", so it can be a program name with args.
3045
set dummy xgettext; ac_word=$2
3046
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3047
echo "configure:3048: checking for $ac_word" >&5
3048
if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3049
echo $ac_n "(cached) $ac_c" 1>&6
3053
ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3056
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3057
for ac_dir in $PATH; do
3058
test -z "$ac_dir" && ac_dir=.
3059
if test -f $ac_dir/$ac_word; then
3060
if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
3061
ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3067
test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3071
XGETTEXT="$ac_cv_path_XGETTEXT"
3072
if test -n "$XGETTEXT"; then
3073
echo "$ac_t""$XGETTEXT" 1>&6
3075
echo "$ac_t""no" 1>&6
3079
if test "$XGETTEXT" != ":"; then
3080
if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
3083
echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
3091
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3092
echo "configure:3093: checking how to run the C preprocessor" >&5
3093
# On Suns, sometimes $CPP names a directory.
3094
if test -n "$CPP" && test -d "$CPP"; then
3097
if test -z "$CPP"; then
3098
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
3099
echo $ac_n "(cached) $ac_c" 1>&6
3101
# This must be in double quotes, not single quotes, because CPP may get
3102
# substituted into the Makefile and "${CC-cc}" will confuse make.
3104
# On the NeXT, cc -E runs the code through the compiler's parser,
3105
# not just through cpp.
3106
cat > conftest.$ac_ext <<EOF
3107
#line 3108 "configure"
3108
#include "confdefs.h"
3112
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3113
{ (eval echo configure:3114: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3114
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3115
if test -z "$ac_err"; then
3119
echo "configure: failed program was:" >&5
3120
cat conftest.$ac_ext >&5
3122
CPP="${CC-cc} -E -traditional-cpp"
3123
cat > conftest.$ac_ext <<EOF
3124
#line 3125 "configure"
3125
#include "confdefs.h"
3129
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3130
{ (eval echo configure:3131: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3131
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3132
if test -z "$ac_err"; then
3136
echo "configure: failed program was:" >&5
3137
cat conftest.$ac_ext >&5
3139
CPP="${CC-cc} -nologo -E"
3140
cat > conftest.$ac_ext <<EOF
3141
#line 3142 "configure"
3142
#include "confdefs.h"
3146
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3147
{ (eval echo configure:3148: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3148
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3149
if test -z "$ac_err"; then
3153
echo "configure: failed program was:" >&5
3154
cat conftest.$ac_ext >&5
3163
ac_cv_prog_CPP="$CPP"
3165
CPP="$ac_cv_prog_CPP"
3167
ac_cv_prog_CPP="$CPP"
3169
echo "$ac_t""$CPP" 1>&6
3173
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3174
ac_cpp='$CPP $CPPFLAGS'
3175
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3176
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3177
cross_compiling=$ac_cv_prog_cc_cross
3179
echo $ac_n "checking for main in -lutil""... $ac_c" 1>&6
3180
echo "configure:3181: checking for main in -lutil" >&5
3181
ac_lib_var=`echo util'_'main | sed 'y%./+-%__p_%'`
3182
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3183
echo $ac_n "(cached) $ac_c" 1>&6
3185
ac_save_LIBS="$LIBS"
3187
cat > conftest.$ac_ext <<EOF
3188
#line 3189 "configure"
3189
#include "confdefs.h"
3195
if { (eval echo configure:3196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3197
eval "ac_cv_lib_$ac_lib_var=yes"
3199
echo "configure: failed program was:" >&5
3200
cat conftest.$ac_ext >&5
3202
eval "ac_cv_lib_$ac_lib_var=no"
3205
LIBS="$ac_save_LIBS"
3208
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3209
echo "$ac_t""yes" 1>&6
3212
echo "$ac_t""no" 1>&6
3215
echo $ac_n "checking for main in -lcompat""... $ac_c" 1>&6
3216
echo "configure:3217: checking for main in -lcompat" >&5
3217
ac_lib_var=`echo compat'_'main | sed 'y%./+-%__p_%'`
3218
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3219
echo $ac_n "(cached) $ac_c" 1>&6
3221
ac_save_LIBS="$LIBS"
3222
LIBS="-lcompat $LIBS"
3223
cat > conftest.$ac_ext <<EOF
3224
#line 3225 "configure"
3225
#include "confdefs.h"
3231
if { (eval echo configure:3232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3233
eval "ac_cv_lib_$ac_lib_var=yes"
3235
echo "configure: failed program was:" >&5
3236
cat conftest.$ac_ext >&5
3238
eval "ac_cv_lib_$ac_lib_var=no"
3241
LIBS="$ac_save_LIBS"
3244
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3245
echo "$ac_t""yes" 1>&6
3246
LIBCOMPAT="-lcompat"
3248
echo "$ac_t""no" 1>&6
3252
echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
3253
echo "configure:3254: checking for crypt in -lcrypt" >&5
3254
ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
3255
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3256
echo $ac_n "(cached) $ac_c" 1>&6
3258
ac_save_LIBS="$LIBS"
3259
LIBS="-lcrypt $LIBS"
3260
cat > conftest.$ac_ext <<EOF
3261
#line 3262 "configure"
3262
#include "confdefs.h"
3263
/* Override any gcc2 internal prototype to avoid an error. */
3264
/* We use char because int might match the return type of a gcc2
3265
builtin and then its argument prototype would still apply. */
3272
if { (eval echo configure:3273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3274
eval "ac_cv_lib_$ac_lib_var=yes"
3276
echo "configure: failed program was:" >&5
3277
cat conftest.$ac_ext >&5
3279
eval "ac_cv_lib_$ac_lib_var=no"
3282
LIBS="$ac_save_LIBS"
3285
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3286
echo "$ac_t""yes" 1>&6
3287
LIBCRYPT="-lcrypt"; kde_have_crypt=yes
3289
echo "$ac_t""no" 1>&6
3290
echo $ac_n "checking for crypt in -lc""... $ac_c" 1>&6
3291
echo "configure:3292: checking for crypt in -lc" >&5
3292
ac_lib_var=`echo c'_'crypt | sed 'y%./+-%__p_%'`
3293
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3294
echo $ac_n "(cached) $ac_c" 1>&6
3296
ac_save_LIBS="$LIBS"
3298
cat > conftest.$ac_ext <<EOF
3299
#line 3300 "configure"
3300
#include "confdefs.h"
3301
/* Override any gcc2 internal prototype to avoid an error. */
3302
/* We use char because int might match the return type of a gcc2
3303
builtin and then its argument prototype would still apply. */
3310
if { (eval echo configure:3311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3312
eval "ac_cv_lib_$ac_lib_var=yes"
3314
echo "configure: failed program was:" >&5
3315
cat conftest.$ac_ext >&5
3317
eval "ac_cv_lib_$ac_lib_var=no"
3320
LIBS="$ac_save_LIBS"
3323
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3324
echo "$ac_t""yes" 1>&6
3327
echo "$ac_t""no" 1>&6
3329
echo "configure: warning: you have no crypt in either libcrypt or libc.
3330
You should install libcrypt from another source or configure with PAM
3339
if test $kde_have_crypt = yes; then
3340
cat >> confdefs.h <<EOF
3341
#define HAVE_CRYPT 1
3346
echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
3347
echo "configure:3348: checking for socklen_t" >&5
3348
if eval "test \"`echo '$''{'ac_cv_socklen_t'+set}'`\" = set"; then
3349
echo $ac_n "(cached) $ac_c" 1>&6
3354
# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3355
ac_cpp='$CXXCPP $CPPFLAGS'
3356
ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3357
ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3358
cross_compiling=$ac_cv_prog_cxx_cross
3360
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3363
cat > conftest.$ac_ext <<EOF
3364
#line 3365 "configure"
3365
#include "confdefs.h"
3367
#include <sys/types.h>
3368
#include <sys/socket.h>
3373
getsockname(0,(struct sockaddr*)0, &a);
3377
if { (eval echo configure:3378: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3379
ac_cv_socklen_t=socklen_t
3381
echo "configure: failed program was:" >&5
3382
cat conftest.$ac_ext >&5
3384
cat > conftest.$ac_ext <<EOF
3385
#line 3386 "configure"
3386
#include "confdefs.h"
3388
#include <sys/types.h>
3389
#include <sys/socket.h>
3394
getsockname(0,(struct sockaddr*)0, &a);
3398
if { (eval echo configure:3399: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3402
echo "configure: failed program was:" >&5
3403
cat conftest.$ac_ext >&5
3405
ac_cv_socklen_t=size_t
3413
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3414
ac_cpp='$CPP $CPPFLAGS'
3415
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3416
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3417
cross_compiling=$ac_cv_prog_cc_cross
3423
echo "$ac_t""$ac_cv_socklen_t" 1>&6
3424
if test "$ac_cv_socklen_t" != "socklen_t"; then
3425
cat >> confdefs.h <<EOF
3426
#define socklen_t $ac_cv_socklen_t
3430
cat >> confdefs.h <<EOF
3431
#define ksize_t socklen_t
3437
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3438
ac_cpp='$CPP $CPPFLAGS'
3439
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3440
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3441
cross_compiling=$ac_cv_prog_cc_cross
3443
echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
3444
echo "configure:3445: checking for dnet_ntoa in -ldnet" >&5
3445
ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3446
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3447
echo $ac_n "(cached) $ac_c" 1>&6
3449
ac_save_LIBS="$LIBS"
3451
cat > conftest.$ac_ext <<EOF
3452
#line 3453 "configure"
3453
#include "confdefs.h"
3454
/* Override any gcc2 internal prototype to avoid an error. */
3455
/* We use char because int might match the return type of a gcc2
3456
builtin and then its argument prototype would still apply. */
3463
if { (eval echo configure:3464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3465
eval "ac_cv_lib_$ac_lib_var=yes"
3467
echo "configure: failed program was:" >&5
3468
cat conftest.$ac_ext >&5
3470
eval "ac_cv_lib_$ac_lib_var=no"
3473
LIBS="$ac_save_LIBS"
3476
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3477
echo "$ac_t""yes" 1>&6
3478
X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3480
echo "$ac_t""no" 1>&6
3483
if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3484
echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
3485
echo "configure:3486: checking for dnet_ntoa in -ldnet_stub" >&5
3486
ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3487
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3488
echo $ac_n "(cached) $ac_c" 1>&6
3490
ac_save_LIBS="$LIBS"
3491
LIBS="-ldnet_stub $LIBS"
3492
cat > conftest.$ac_ext <<EOF
3493
#line 3494 "configure"
3494
#include "confdefs.h"
3495
/* Override any gcc2 internal prototype to avoid an error. */
3496
/* We use char because int might match the return type of a gcc2
3497
builtin and then its argument prototype would still apply. */
3504
if { (eval echo configure:3505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3506
eval "ac_cv_lib_$ac_lib_var=yes"
3508
echo "configure: failed program was:" >&5
3509
cat conftest.$ac_ext >&5
3511
eval "ac_cv_lib_$ac_lib_var=no"
3514
LIBS="$ac_save_LIBS"
3517
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3518
echo "$ac_t""yes" 1>&6
3519
X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3521
echo "$ac_t""no" 1>&6
3525
echo $ac_n "checking for inet_ntoa""... $ac_c" 1>&6
3526
echo "configure:3527: checking for inet_ntoa" >&5
3527
if eval "test \"`echo '$''{'ac_cv_func_inet_ntoa'+set}'`\" = set"; then
3528
echo $ac_n "(cached) $ac_c" 1>&6
3530
cat > conftest.$ac_ext <<EOF
3531
#line 3532 "configure"
3532
#include "confdefs.h"
3533
/* System header to define __stub macros and hopefully few prototypes,
3534
which can conflict with char inet_ntoa(); below. */
3536
/* Override any gcc2 internal prototype to avoid an error. */
3537
/* We use char because int might match the return type of a gcc2
3538
builtin and then its argument prototype would still apply. */
3543
/* The GNU C library defines this for functions which it implements
3544
to always fail with ENOSYS. Some functions are actually named
3545
something starting with __ and the normal name is an alias. */
3546
#if defined (__stub_inet_ntoa) || defined (__stub___inet_ntoa)
3554
if { (eval echo configure:3555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3556
eval "ac_cv_func_inet_ntoa=yes"
3558
echo "configure: failed program was:" >&5
3559
cat conftest.$ac_ext >&5
3561
eval "ac_cv_func_inet_ntoa=no"
3566
if eval "test \"`echo '$ac_cv_func_'inet_ntoa`\" = yes"; then
3567
echo "$ac_t""yes" 1>&6
3570
echo "$ac_t""no" 1>&6
3573
if test $ac_cv_func_inet_ntoa = no; then
3574
echo $ac_n "checking for inet_ntoa in -lnsl""... $ac_c" 1>&6
3575
echo "configure:3576: checking for inet_ntoa in -lnsl" >&5
3576
ac_lib_var=`echo nsl'_'inet_ntoa | sed 'y%./+-%__p_%'`
3577
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3578
echo $ac_n "(cached) $ac_c" 1>&6
3580
ac_save_LIBS="$LIBS"
3582
cat > conftest.$ac_ext <<EOF
3583
#line 3584 "configure"
3584
#include "confdefs.h"
3585
/* Override any gcc2 internal prototype to avoid an error. */
3586
/* We use char because int might match the return type of a gcc2
3587
builtin and then its argument prototype would still apply. */
3594
if { (eval echo configure:3595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3596
eval "ac_cv_lib_$ac_lib_var=yes"
3598
echo "configure: failed program was:" >&5
3599
cat conftest.$ac_ext >&5
3601
eval "ac_cv_lib_$ac_lib_var=no"
3604
LIBS="$ac_save_LIBS"
3607
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3608
echo "$ac_t""yes" 1>&6
3609
X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3611
echo "$ac_t""no" 1>&6
3615
echo $ac_n "checking for connect""... $ac_c" 1>&6
3616
echo "configure:3617: checking for connect" >&5
3617
if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3618
echo $ac_n "(cached) $ac_c" 1>&6
3620
cat > conftest.$ac_ext <<EOF
3621
#line 3622 "configure"
3622
#include "confdefs.h"
3623
/* System header to define __stub macros and hopefully few prototypes,
3624
which can conflict with char connect(); below. */
3626
/* Override any gcc2 internal prototype to avoid an error. */
3627
/* We use char because int might match the return type of a gcc2
3628
builtin and then its argument prototype would still apply. */
3633
/* The GNU C library defines this for functions which it implements
3634
to always fail with ENOSYS. Some functions are actually named
3635
something starting with __ and the normal name is an alias. */
3636
#if defined (__stub_connect) || defined (__stub___connect)
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_func_connect=yes"
3648
echo "configure: failed program was:" >&5
3649
cat conftest.$ac_ext >&5
3651
eval "ac_cv_func_connect=no"
3656
if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3657
echo "$ac_t""yes" 1>&6
3660
echo "$ac_t""no" 1>&6
3663
if test $ac_cv_func_connect = no; then
3664
echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3665
echo "configure:3666: checking for connect in -lsocket" >&5
3666
ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3667
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3668
echo $ac_n "(cached) $ac_c" 1>&6
3670
ac_save_LIBS="$LIBS"
3671
LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
3672
cat > conftest.$ac_ext <<EOF
3673
#line 3674 "configure"
3674
#include "confdefs.h"
3675
/* Override any gcc2 internal prototype to avoid an error. */
3676
/* We use char because int might match the return type of a gcc2
3677
builtin and then its argument prototype would still apply. */
3684
if { (eval echo configure:3685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3686
eval "ac_cv_lib_$ac_lib_var=yes"
3688
echo "configure: failed program was:" >&5
3689
cat conftest.$ac_ext >&5
3691
eval "ac_cv_lib_$ac_lib_var=no"
3694
LIBS="$ac_save_LIBS"
3697
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3698
echo "$ac_t""yes" 1>&6
3699
X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
3701
echo "$ac_t""no" 1>&6
3706
echo $ac_n "checking for remove""... $ac_c" 1>&6
3707
echo "configure:3708: checking for remove" >&5
3708
if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
3709
echo $ac_n "(cached) $ac_c" 1>&6
3711
cat > conftest.$ac_ext <<EOF
3712
#line 3713 "configure"
3713
#include "confdefs.h"
3714
/* System header to define __stub macros and hopefully few prototypes,
3715
which can conflict with char remove(); below. */
3717
/* Override any gcc2 internal prototype to avoid an error. */
3718
/* We use char because int might match the return type of a gcc2
3719
builtin and then its argument prototype would still apply. */
3724
/* The GNU C library defines this for functions which it implements
3725
to always fail with ENOSYS. Some functions are actually named
3726
something starting with __ and the normal name is an alias. */
3727
#if defined (__stub_remove) || defined (__stub___remove)
3735
if { (eval echo configure:3736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3737
eval "ac_cv_func_remove=yes"
3739
echo "configure: failed program was:" >&5
3740
cat conftest.$ac_ext >&5
3742
eval "ac_cv_func_remove=no"
3747
if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
3748
echo "$ac_t""yes" 1>&6
3751
echo "$ac_t""no" 1>&6
3754
if test $ac_cv_func_remove = no; then
3755
echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
3756
echo "configure:3757: checking for remove in -lposix" >&5
3757
ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
3758
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3759
echo $ac_n "(cached) $ac_c" 1>&6
3761
ac_save_LIBS="$LIBS"
3762
LIBS="-lposix $LIBS"
3763
cat > conftest.$ac_ext <<EOF
3764
#line 3765 "configure"
3765
#include "confdefs.h"
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. */
3775
if { (eval echo configure:3776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3777
eval "ac_cv_lib_$ac_lib_var=yes"
3779
echo "configure: failed program was:" >&5
3780
cat conftest.$ac_ext >&5
3782
eval "ac_cv_lib_$ac_lib_var=no"
3785
LIBS="$ac_save_LIBS"
3788
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3789
echo "$ac_t""yes" 1>&6
3790
X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
3792
echo "$ac_t""no" 1>&6
3797
# BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
3798
echo $ac_n "checking for shmat""... $ac_c" 1>&6
3799
echo "configure:3800: checking for shmat" >&5
3800
if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
3801
echo $ac_n "(cached) $ac_c" 1>&6
3803
cat > conftest.$ac_ext <<EOF
3804
#line 3805 "configure"
3805
#include "confdefs.h"
3806
/* System header to define __stub macros and hopefully few prototypes,
3807
which can conflict with char shmat(); below. */
3809
/* Override any gcc2 internal prototype to avoid an error. */
3810
/* We use char because int might match the return type of a gcc2
3811
builtin and then its argument prototype would still apply. */
3816
/* The GNU C library defines this for functions which it implements
3817
to always fail with ENOSYS. Some functions are actually named
3818
something starting with __ and the normal name is an alias. */
3819
#if defined (__stub_shmat) || defined (__stub___shmat)
3827
if { (eval echo configure:3828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3829
eval "ac_cv_func_shmat=yes"
3831
echo "configure: failed program was:" >&5
3832
cat conftest.$ac_ext >&5
3834
eval "ac_cv_func_shmat=no"
3839
if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
3840
echo "$ac_t""yes" 1>&6
3843
echo "$ac_t""no" 1>&6
3844
echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
3845
echo "configure:3846: checking for shmat in -lipc" >&5
3846
ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
3847
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3848
echo $ac_n "(cached) $ac_c" 1>&6
3850
ac_save_LIBS="$LIBS"
3852
cat > conftest.$ac_ext <<EOF
3853
#line 3854 "configure"
3854
#include "confdefs.h"
3855
/* Override any gcc2 internal prototype to avoid an error. */
3856
/* We use char because int might match the return type of a gcc2
3857
builtin and then its argument prototype would still apply. */
3864
if { (eval echo configure:3865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3866
eval "ac_cv_lib_$ac_lib_var=yes"
3868
echo "configure: failed program was:" >&5
3869
cat conftest.$ac_ext >&5
3871
eval "ac_cv_lib_$ac_lib_var=no"
3874
LIBS="$ac_save_LIBS"
3877
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3878
echo "$ac_t""yes" 1>&6
3879
X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
3881
echo "$ac_t""no" 1>&6
3887
# Solaris 2.6 and others need -lresolv for res_init
3888
for ac_func in res_init
3890
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3891
echo "configure:3892: checking for $ac_func" >&5
3892
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3893
echo $ac_n "(cached) $ac_c" 1>&6
3895
cat > conftest.$ac_ext <<EOF
3896
#line 3897 "configure"
3897
#include "confdefs.h"
3898
/* System header to define __stub macros and hopefully few prototypes,
3899
which can conflict with char $ac_func(); below. */
3901
/* Override any gcc2 internal prototype to avoid an error. */
3902
/* We use char because int might match the return type of a gcc2
3903
builtin and then its argument prototype would still apply. */
3908
/* The GNU C library defines this for functions which it implements
3909
to always fail with ENOSYS. Some functions are actually named
3910
something starting with __ and the normal name is an alias. */
3911
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3919
if { (eval echo configure:3920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3921
eval "ac_cv_func_$ac_func=yes"
3923
echo "configure: failed program was:" >&5
3924
cat conftest.$ac_ext >&5
3926
eval "ac_cv_func_$ac_func=no"
3931
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3932
echo "$ac_t""yes" 1>&6
3933
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3934
cat >> confdefs.h <<EOF
3935
#define $ac_tr_func 1
3939
echo "$ac_t""no" 1>&6
3940
kde_libs_safe="$LIBS"
3941
LIBS="$LIBS $X_EXTRA_LIBS -lresolv"
3942
cat > conftest.$ac_ext <<EOF
3943
#line 3944 "configure"
3944
#include "confdefs.h"
3954
if { (eval echo configure:3955: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3956
LIBRESOLV="-lresolv"
3957
X_EXTRA_LIBS="$X_EXTRA_LIBS $LIBRESOLV"
3958
cat >> confdefs.h <<\EOF
3959
#define HAVE_RES_INIT 1
3964
echo "configure: failed program was:" >&5
3965
cat conftest.$ac_ext >&5
3974
LIBSOCKET="$X_EXTRA_LIBS"
3978
echo $ac_n "checking for killpg in -lucb""... $ac_c" 1>&6
3979
echo "configure:3980: checking for killpg in -lucb" >&5
3980
ac_lib_var=`echo ucb'_'killpg | sed 'y%./+-%__p_%'`
3981
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3982
echo $ac_n "(cached) $ac_c" 1>&6
3984
ac_save_LIBS="$LIBS"
3986
cat > conftest.$ac_ext <<EOF
3987
#line 3988 "configure"
3988
#include "confdefs.h"
3989
/* Override any gcc2 internal prototype to avoid an error. */
3990
/* We use char because int might match the return type of a gcc2
3991
builtin and then its argument prototype would still apply. */
3998
if { (eval echo configure:3999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4000
eval "ac_cv_lib_$ac_lib_var=yes"
4002
echo "configure: failed program was:" >&5
4003
cat conftest.$ac_ext >&5
4005
eval "ac_cv_lib_$ac_lib_var=no"
4008
LIBS="$ac_save_LIBS"
4011
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4012
echo "$ac_t""yes" 1>&6
4015
echo "$ac_t""no" 1>&6
4019
case $host in *-*-lynxos* )
4020
echo $ac_n "checking LynxOS header file wrappers""... $ac_c" 1>&6
4021
echo "configure:4022: checking LynxOS header file wrappers" >&5
4022
CFLAGS="$CFLAGS -D__NO_INCLUDE_WARN__"
4023
echo "$ac_t""disabled" 1>&6
4024
echo $ac_n "checking for gethostbyname in -lbsd""... $ac_c" 1>&6
4025
echo "configure:4026: checking for gethostbyname in -lbsd" >&5
4026
ac_lib_var=`echo bsd'_'gethostbyname | sed 'y%./+-%__p_%'`
4027
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4028
echo $ac_n "(cached) $ac_c" 1>&6
4030
ac_save_LIBS="$LIBS"
4032
cat > conftest.$ac_ext <<EOF
4033
#line 4034 "configure"
4034
#include "confdefs.h"
4035
/* Override any gcc2 internal prototype to avoid an error. */
4036
/* We use char because int might match the return type of a gcc2
4037
builtin and then its argument prototype would still apply. */
4038
char gethostbyname();
4044
if { (eval echo configure:4045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4046
eval "ac_cv_lib_$ac_lib_var=yes"
4048
echo "configure: failed program was:" >&5
4049
cat conftest.$ac_ext >&5
4051
eval "ac_cv_lib_$ac_lib_var=no"
4054
LIBS="$ac_save_LIBS"
4057
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4058
echo "$ac_t""yes" 1>&6
4061
echo "$ac_t""no" 1>&6
4066
echo $ac_n "checking size of int""... $ac_c" 1>&6
4067
echo "configure:4068: checking size of int" >&5
4068
if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
4069
echo $ac_n "(cached) $ac_c" 1>&6
4071
if test "$cross_compiling" = yes; then
4074
cat > conftest.$ac_ext <<EOF
4075
#line 4076 "configure"
4076
#include "confdefs.h"
4080
FILE *f=fopen("conftestval", "w");
4082
fprintf(f, "%d\n", sizeof(int));
4086
if { (eval echo configure:4087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4088
ac_cv_sizeof_int=`cat conftestval`
4090
echo "configure: failed program was:" >&5
4091
cat conftest.$ac_ext >&5
4099
echo "$ac_t""$ac_cv_sizeof_int" 1>&6
4100
cat >> confdefs.h <<EOF
4101
#define SIZEOF_INT $ac_cv_sizeof_int
4104
echo $ac_n "checking size of long""... $ac_c" 1>&6
4105
echo "configure:4106: checking size of long" >&5
4106
if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
4107
echo $ac_n "(cached) $ac_c" 1>&6
4109
if test "$cross_compiling" = yes; then
4112
cat > conftest.$ac_ext <<EOF
4113
#line 4114 "configure"
4114
#include "confdefs.h"
4118
FILE *f=fopen("conftestval", "w");
4120
fprintf(f, "%d\n", sizeof(long));
4124
if { (eval echo configure:4125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4126
ac_cv_sizeof_long=`cat conftestval`
4128
echo "configure: failed program was:" >&5
4129
cat conftest.$ac_ext >&5
4137
echo "$ac_t""$ac_cv_sizeof_long" 1>&6
4138
cat >> confdefs.h <<EOF
4139
#define SIZEOF_LONG $ac_cv_sizeof_long
4142
echo $ac_n "checking size of char *""... $ac_c" 1>&6
4143
echo "configure:4144: checking size of char *" >&5
4144
if eval "test \"`echo '$''{'ac_cv_sizeof_char_p'+set}'`\" = set"; then
4145
echo $ac_n "(cached) $ac_c" 1>&6
4147
if test "$cross_compiling" = yes; then
4148
ac_cv_sizeof_char_p=4
4150
cat > conftest.$ac_ext <<EOF
4151
#line 4152 "configure"
4152
#include "confdefs.h"
4156
FILE *f=fopen("conftestval", "w");
4158
fprintf(f, "%d\n", sizeof(char *));
4162
if { (eval echo configure:4163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4164
ac_cv_sizeof_char_p=`cat conftestval`
4166
echo "configure: failed program was:" >&5
4167
cat conftest.$ac_ext >&5
4169
ac_cv_sizeof_char_p=0
4175
echo "$ac_t""$ac_cv_sizeof_char_p" 1>&6
4176
cat >> confdefs.h <<EOF
4177
#define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
4180
echo $ac_n "checking size of char""... $ac_c" 1>&6
4181
echo "configure:4182: checking size of char" >&5
4182
if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
4183
echo $ac_n "(cached) $ac_c" 1>&6
4185
if test "$cross_compiling" = yes; then
4188
cat > conftest.$ac_ext <<EOF
4189
#line 4190 "configure"
4190
#include "confdefs.h"
4194
FILE *f=fopen("conftestval", "w");
4196
fprintf(f, "%d\n", sizeof(char));
4200
if { (eval echo configure:4201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4202
ac_cv_sizeof_char=`cat conftestval`
4204
echo "configure: failed program was:" >&5
4205
cat conftest.$ac_ext >&5
4213
echo "$ac_t""$ac_cv_sizeof_char" 1>&6
4214
cat >> confdefs.h <<EOF
4215
#define SIZEOF_CHAR $ac_cv_sizeof_char
4220
echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4221
echo "configure:4222: checking for dlopen in -ldl" >&5
4222
ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4223
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4224
echo $ac_n "(cached) $ac_c" 1>&6
4226
ac_save_LIBS="$LIBS"
4228
cat > conftest.$ac_ext <<EOF
4229
#line 4230 "configure"
4230
#include "confdefs.h"
4231
/* Override any gcc2 internal prototype to avoid an error. */
4232
/* We use char because int might match the return type of a gcc2
4233
builtin and then its argument prototype would still apply. */
4240
if { (eval echo configure:4241: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4242
eval "ac_cv_lib_$ac_lib_var=yes"
4244
echo "configure: failed program was:" >&5
4245
cat conftest.$ac_ext >&5
4247
eval "ac_cv_lib_$ac_lib_var=no"
4250
LIBS="$ac_save_LIBS"
4253
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4254
echo "$ac_t""yes" 1>&6
4257
ac_cv_have_dlfcn=yes
4260
echo "$ac_t""no" 1>&6
4264
echo $ac_n "checking for shl_unload in -ldld""... $ac_c" 1>&6
4265
echo "configure:4266: checking for shl_unload in -ldld" >&5
4266
ac_lib_var=`echo dld'_'shl_unload | sed 'y%./+-%__p_%'`
4267
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4268
echo $ac_n "(cached) $ac_c" 1>&6
4270
ac_save_LIBS="$LIBS"
4272
cat > conftest.$ac_ext <<EOF
4273
#line 4274 "configure"
4274
#include "confdefs.h"
4275
/* Override any gcc2 internal prototype to avoid an error. */
4276
/* We use char because int might match the return type of a gcc2
4277
builtin and then its argument prototype would still apply. */
4284
if { (eval echo configure:4285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4286
eval "ac_cv_lib_$ac_lib_var=yes"
4288
echo "configure: failed program was:" >&5
4289
cat conftest.$ac_ext >&5
4291
eval "ac_cv_lib_$ac_lib_var=no"
4294
LIBS="$ac_save_LIBS"
4297
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4298
echo "$ac_t""yes" 1>&6
4301
ac_cv_have_shload=yes
4304
echo "$ac_t""no" 1>&6
4312
echo $ac_n "checking for extra includes""... $ac_c" 1>&6
4313
echo "configure:4314: checking for extra includes" >&5
4314
# Check whether --with-extra-includes or --without-extra-includes was given.
4315
if test "${with_extra_includes+set}" = set; then
4316
withval="$with_extra_includes"
4317
kde_use_extra_includes="$withval"
4319
kde_use_extra_includes=NONE
4324
if test -n "$kde_use_extra_includes" && \
4325
test "$kde_use_extra_includes" != "NONE"; then
4329
for dir in $kde_use_extra_includes; do
4330
kde_extra_includes="$kde_extra_includes $dir"
4331
USER_INCLUDES="$USER_INCLUDES -I$dir"
4334
kde_use_extra_includes="added"
4336
kde_use_extra_includes="no"
4340
echo "$ac_t""$kde_use_extra_includes" 1>&6
4343
echo $ac_n "checking for extra libs""... $ac_c" 1>&6
4344
echo "configure:4345: checking for extra libs" >&5
4345
# Check whether --with-extra-libs or --without-extra-libs was given.
4346
if test "${with_extra_libs+set}" = set; then
4347
withval="$with_extra_libs"
4348
kde_use_extra_libs=$withval
4350
kde_use_extra_libs=NONE
4354
if test -n "$kde_use_extra_libs" && \
4355
test "$kde_use_extra_libs" != "NONE"; then
4359
for dir in $kde_use_extra_libs; do
4360
kde_extra_libs="$kde_extra_libs $dir"
4361
KDE_EXTRA_RPATH="$KDE_EXTRA_RPATH -R $dir"
4362
USER_LDFLAGS="$USER_LDFLAGS -L$dir"
4365
kde_use_extra_libs="added"
4367
kde_use_extra_libs="no"
4372
echo "$ac_t""$kde_use_extra_libs" 1>&6
4377
echo $ac_n "checking for libz""... $ac_c" 1>&6
4378
echo "configure:4379: checking for libz" >&5
4379
if eval "test \"`echo '$''{'ac_cv_lib_z'+set}'`\" = set"; then
4380
echo $ac_n "(cached) $ac_c" 1>&6
4384
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4385
ac_cpp='$CPP $CPPFLAGS'
4386
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4387
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4388
cross_compiling=$ac_cv_prog_cc_cross
4390
kde_save_LIBS="$LIBS"
4391
LIBS="$all_libraries $USER_LDFLAGS -lz $LIBSOCKET"
4392
kde_save_CFLAGS="$CFLAGS"
4393
CFLAGS="$CFLAGS $all_includes $USER_INCLUDES"
4394
cat > conftest.$ac_ext <<EOF
4395
#line 4396 "configure"
4396
#include "confdefs.h"
4401
return (zlibVersion() == ZLIB_VERSION);
4404
if { (eval echo configure:4405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4406
eval "ac_cv_lib_z='-lz'"
4408
echo "configure: failed program was:" >&5
4409
cat conftest.$ac_ext >&5
4411
eval "ac_cv_lib_z=no"
4414
LIBS="$kde_save_LIBS"
4415
CFLAGS="$kde_save_CFLAGS"
4418
if test ! "$ac_cv_lib_z" = no; then
4419
cat >> confdefs.h <<EOF
4425
echo "$ac_t""$ac_cv_lib_z" 1>&6
4427
{ echo "configure: error: not found. Check your installation and look into config.log" 1>&2; exit 1; }
4434
# Check whether --enable-embedded or --disable-embedded was given.
4435
if test "${enable_embedded+set}" = set; then
4436
enableval="$enable_embedded"
4437
kde_use_qt_emb=$enableval
4444
if test "$kde_use_qt_emb" = "no"; then
4446
echo $ac_n "checking for X""... $ac_c" 1>&6
4447
echo "configure:4448: checking for X" >&5
4450
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4451
ac_cpp='$CPP $CPPFLAGS'
4452
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4453
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4454
cross_compiling=$ac_cv_prog_cc_cross
4456
if eval "test \"`echo '$''{'kde_cv_have_x'+set}'`\" = set"; then
4457
echo $ac_n "(cached) $ac_c" 1>&6
4459
# One or both of the vars are not set, and there is no cached value.
4460
if test "{$x_includes+set}" = set || test "$x_includes" = NONE; then
4463
kde_x_includes=$x_includes
4465
if test "{$x_libraries+set}" = set || test "$x_libraries" = NONE; then
4468
kde_x_libraries=$x_libraries
4471
# below we use the standard autoconf calls
4472
ac_x_libraries=$kde_x_libraries
4473
ac_x_includes=$kde_x_includes
4475
if test "$ac_x_includes" = NO; then
4476
# Guess where to find include files, by looking for this one X11 .h file.
4477
test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
4479
# First, try using that file with no special directory specified.
4480
cat > conftest.$ac_ext <<EOF
4481
#line 4482 "configure"
4482
#include "confdefs.h"
4483
#include <$x_direct_test_include>
4485
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4486
{ (eval echo configure:4487: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4487
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4488
if test -z "$ac_err"; then
4490
# We can compile using X headers with no special include directory.
4494
echo "configure: failed program was:" >&5
4495
cat conftest.$ac_ext >&5
4497
# Look for the header file in a standard set of common directories.
4498
# Check X11 before X11Rn because it is often a symlink to the current release.
4501
/usr/X11R6/include \
4502
/usr/X11R5/include \
4503
/usr/X11R4/include \
4506
/usr/include/X11R6 \
4507
/usr/include/X11R5 \
4508
/usr/include/X11R4 \
4510
/usr/local/X11/include \
4511
/usr/local/X11R6/include \
4512
/usr/local/X11R5/include \
4513
/usr/local/X11R4/include \
4515
/usr/local/include/X11 \
4516
/usr/local/include/X11R6 \
4517
/usr/local/include/X11R5 \
4518
/usr/local/include/X11R4 \
4522
/usr/XFree86/include/X11 \
4525
/usr/local/include \
4526
/usr/unsupported/include \
4527
/usr/athena/include \
4528
/usr/local/x11r5/include \
4529
/usr/lpp/Xamples/include \
4531
/usr/openwin/include \
4532
/usr/openwin/share/include \
4535
if test -r "$ac_dir/$x_direct_test_include"; then
4536
ac_x_includes=$ac_dir
4542
fi # $ac_x_includes = NO
4544
if test "$ac_x_libraries" = NO; then
4545
# Check for the libraries.
4547
test -z "$x_direct_test_library" && x_direct_test_library=Xt
4548
test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
4550
# See if we find them without any special options.
4551
# Don't add to $LIBS permanently.
4552
ac_save_LIBS="$LIBS"
4553
LIBS="-l$x_direct_test_library $LIBS"
4554
cat > conftest.$ac_ext <<EOF
4555
#line 4556 "configure"
4556
#include "confdefs.h"
4559
${x_direct_test_function}()
4562
if { (eval echo configure:4563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4564
LIBS="$ac_save_LIBS"
4565
# We can link X programs with no special library path.
4568
echo "configure: failed program was:" >&5
4569
cat conftest.$ac_ext >&5
4571
LIBS="$ac_save_LIBS"
4572
# First see if replacing the include by lib works.
4573
# Check X11 before X11Rn because it is often a symlink to the current release.
4574
for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
4585
/usr/local/X11/lib \
4586
/usr/local/X11R6/lib \
4587
/usr/local/X11R5/lib \
4588
/usr/local/X11R4/lib \
4590
/usr/local/lib/X11 \
4591
/usr/local/lib/X11R6 \
4592
/usr/local/lib/X11R5 \
4593
/usr/local/lib/X11R4 \
4597
/usr/XFree86/lib/X11 \
4601
/usr/unsupported/lib \
4603
/usr/local/x11r5/lib \
4604
/usr/lpp/Xamples/lib \
4608
/usr/openwin/share/lib \
4611
for ac_extension in a so sl; do
4612
if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
4613
ac_x_libraries=$ac_dir
4620
fi # $ac_x_libraries = NO
4629
if mkdir conftestdir; then
4631
# Make sure to not put "make" in the Imakefile rules, since we grep it out.
4632
cat > Imakefile <<'EOF'
4634
@echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
4636
if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
4637
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4638
eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
4639
# Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4640
for ac_extension in a so sl; do
4641
if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
4642
test -f $ac_im_libdir/libX11.$ac_extension; then
4643
ac_im_usrlibdir=$ac_im_libdir; break
4646
# Screen out bogus values from the imake configuration. They are
4647
# bogus both because they are the default anyway, and because
4648
# using them would break gcc on systems where it needs fixed includes.
4649
case "$ac_im_incroot" in
4651
*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
4653
case "$ac_im_usrlibdir" in
4655
*) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
4662
if test -z "$ac_x_includes"; then
4665
if test -z "$ac_x_libraries"; then
4666
ac_x_libraries="/usr/lib"
4669
#from now on we use our own again
4671
# when the user already gave --x-includes, we ignore
4672
# what the standard autoconf macros told us.
4673
if test "$kde_x_includes" = NO; then
4674
kde_x_includes=$ac_x_includes
4677
# for --x-libraries too
4678
if test "$kde_x_libraries" = NO; then
4679
kde_x_libraries=$ac_x_libraries
4682
if test "$kde_x_includes" = NO; then
4683
{ echo "configure: error: Can't find X includes. Please check your installation and add the correct paths!" 1>&2; exit 1; }
4686
if test "$kde_x_libraries" = NO; then
4687
{ echo "configure: error: Can't find X libraries. Please check your installation and add the correct paths!" 1>&2; exit 1; }
4690
# Record where we found X for the cache.
4691
kde_cv_have_x="have_x=yes \
4692
kde_x_includes=$kde_x_includes kde_x_libraries=$kde_x_libraries"
4696
eval "$kde_cv_have_x"
4698
if test "$have_x" != yes; then
4699
echo "$ac_t""$have_x" 1>&6
4702
echo "$ac_t""libraries $kde_x_libraries, headers $kde_x_includes" 1>&6
4705
if test -z "$kde_x_includes" || test "x$kde_x_includes" = xNONE; then
4707
x_includes="."; else
4708
x_includes=$kde_x_includes
4709
X_INCLUDES="-I$x_includes"
4712
if test -z "$kde_x_libraries" || test "x$kde_x_libraries" = xNONE; then
4714
x_libraries="/usr/lib"; else
4715
x_libraries=$kde_x_libraries
4716
X_LDFLAGS="-L$x_libraries"
4718
all_includes="$X_INCLUDES"
4719
all_libraries="$X_LDFLAGS"
4726
# Check for libraries that X11R6 Xt/Xaw programs need.
4727
ac_save_LDFLAGS="$LDFLAGS"
4728
LDFLAGS="$LDFLAGS $X_LDFLAGS"
4729
# SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4730
# check for ICE first), but we must link in the order -lSM -lICE or
4731
# we get undefined symbols. So assume we have SM if we have ICE.
4732
# These have to be linked with before -lX11, unlike the other
4733
# libraries we check for below, so use a different variable.
4734
# --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
4735
echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
4736
echo "configure:4737: checking for IceConnectionNumber in -lICE" >&5
4737
ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
4738
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4739
echo $ac_n "(cached) $ac_c" 1>&6
4741
ac_save_LIBS="$LIBS"
4742
LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4743
cat > conftest.$ac_ext <<EOF
4744
#line 4745 "configure"
4745
#include "confdefs.h"
4746
/* Override any gcc2 internal prototype to avoid an error. */
4747
/* We use char because int might match the return type of a gcc2
4748
builtin and then its argument prototype would still apply. */
4749
char IceConnectionNumber();
4752
IceConnectionNumber()
4755
if { (eval echo configure:4756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4757
eval "ac_cv_lib_$ac_lib_var=yes"
4759
echo "configure: failed program was:" >&5
4760
cat conftest.$ac_ext >&5
4762
eval "ac_cv_lib_$ac_lib_var=no"
4765
LIBS="$ac_save_LIBS"
4768
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4769
echo "$ac_t""yes" 1>&6
4772
echo "$ac_t""no" 1>&6
4776
LDFLAGS="$ac_save_LDFLAGS"
4780
LIB_X11='-lX11 $(LIBSOCKET)'
4783
echo $ac_n "checking for libXext""... $ac_c" 1>&6
4784
echo "configure:4785: checking for libXext" >&5
4785
if eval "test \"`echo '$''{'kde_cv_have_libXext'+set}'`\" = set"; then
4786
echo $ac_n "(cached) $ac_c" 1>&6
4789
kde_ldflags_safe="$LDFLAGS"
4790
kde_libs_safe="$LIBS"
4792
LDFLAGS="$LDFLAGS $X_LDFLAGS $USER_LDFLAGS"
4793
LIBS="-lXext -lX11 $LIBSOCKET"
4795
cat > conftest.$ac_ext <<EOF
4796
#line 4797 "configure"
4797
#include "confdefs.h"
4801
# include <stdlib.h>
4806
printf("hello Xext\n");
4810
if { (eval echo configure:4811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4812
kde_cv_have_libXext=yes
4814
echo "configure: failed program was:" >&5
4815
cat conftest.$ac_ext >&5
4817
kde_cv_have_libXext=no
4822
LDFLAGS=$kde_ldflags_safe
4828
echo "$ac_t""$kde_cv_have_libXext" 1>&6
4830
if test "$kde_cv_have_libXext" = "no"; then
4831
{ echo "configure: error: We need a working libXext to proceed. Since configure
4832
can't find it itself, we stop here assuming that make wouldn't find
4833
them either." 1>&2; exit 1; }
4836
echo $ac_n "checking for Xinerama""... $ac_c" 1>&6
4837
echo "configure:4838: checking for Xinerama" >&5
4839
# Check whether --with-xinerama or --without-xinerama was given.
4840
if test "${with_xinerama+set}" = set; then
4841
withval="$with_xinerama"
4853
kde_save_LDFLAGS="$LDFLAGS"
4854
kde_save_CFLAGS="$CFLAGS"
4855
kde_save_LIBS="$LIBS"
4856
LDFLAGS="$LDFLAGS $X_LDFLAGS $USER_LDFLAGS"
4857
CFLAGS="$CFLAGS -I$x_includes"
4858
LIBS="-lXinerama -lXext"
4860
if test "x$no_xinerama" = "xno"; then
4862
if eval "test \"`echo '$''{'ac_cv_have_xinerama'+set}'`\" = set"; then
4863
echo $ac_n "(cached) $ac_c" 1>&6
4866
cat > conftest.$ac_ext <<EOF
4867
#line 4868 "configure"
4868
#include "confdefs.h"
4869
#include <X11/Xlib.h>
4870
#include <X11/extensions/Xinerama.h>
4872
XineramaIsActive(NULL);
4875
if { (eval echo configure:4876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4877
ac_cv_have_xinerama="yes"
4879
echo "configure: failed program was:" >&5
4880
cat conftest.$ac_ext >&5
4882
ac_cv_have_xinerama="no"
4889
ac_cv_have_xinerama=no;
4892
echo "$ac_t""$ac_cv_have_xinerama" 1>&6
4896
if test "$ac_cv_have_xinerama" = "yes"; then
4897
cat >> confdefs.h <<\EOF
4898
#define HAVE_XINERAMA 1
4901
LIBXINERAMA="-lXinerama"
4906
LDFLAGS="$kde_save_LDFLAGS"
4907
CFLAGS="$kde_save_CFLAGS"
4908
LIBS="$kde_save_LIBS"
4914
CXXFLAGS="$CXXFLAGS -DQWS"
4915
CFLAGS="$CFLAGS -DQWS"
4916
LDFLAGS="$LDFLAGS -DQWS"
4939
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4940
ac_cpp='$CPP $CPPFLAGS'
4941
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4942
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4943
cross_compiling=$ac_cv_prog_cc_cross
4953
kde_qtsubver=`echo "" | sed -e 's#[0-9]\+\.\([0-9]\+\).*#\1#'`
4954
# following is the check if subversion isn�t found in passed argument
4955
if test "$kde_qtsubver" = ""; then
4958
kde_qtver=`echo "" | sed -e 's#^\([0-9]\+\)\..*#\1#'`
4959
if test "$kde_qtver" = "1"; then
4965
if test "$kde_qtver" = "2"; then
4966
if test $kde_qtsubver -gt 0; then
4967
kde_qt_minversion=">= Qt 2.2.2"
4969
kde_qt_minversion=">= Qt 2.0.2"
4972
if test "$kde_qtver" = "3"; then
4973
kde_qt_minversion=">= Qt 3.0.0-beta6"
4975
if test "$kde_qtver" = "1"; then
4976
kde_qt_minversion=">= 1.42 and < 2.0"
4983
if test $kde_qtver = 3; then
4984
kde_qt_verstring="QT_VERSION >= 300"
4986
if test $kde_qtver = 2; then
4987
if test $kde_qtsubver -gt 0; then
4988
kde_qt_verstring="QT_VERSION >= 222"
4990
kde_qt_verstring="QT_VERSION >= 200"
4993
if test $kde_qtver = 1; then
4994
kde_qt_verstring="QT_VERSION >= 142 && QT_VERSION < 200"
5000
if test $kde_qtver = 3; then
5001
kde_qt_dirs="$QTDIR /usr/lib/qt3 /usr/lib/qt"
5003
if test $kde_qtver = 2; then
5004
kde_qt_dirs="$QTDIR /usr/lib/qt2 /usr/lib/qt"
5006
if test $kde_qtver = 1; then
5007
kde_qt_dirs="$QTDIR /usr/lib/qt"
5011
echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
5012
echo "configure:5013: checking for pthread_create in -lpthread" >&5
5013
ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
5014
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5015
echo $ac_n "(cached) $ac_c" 1>&6
5017
ac_save_LIBS="$LIBS"
5018
LIBS="-lpthread $LIBS"
5019
cat > conftest.$ac_ext <<EOF
5020
#line 5021 "configure"
5021
#include "confdefs.h"
5022
/* Override any gcc2 internal prototype to avoid an error. */
5023
/* We use char because int might match the return type of a gcc2
5024
builtin and then its argument prototype would still apply. */
5025
char pthread_create();
5031
if { (eval echo configure:5032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5033
eval "ac_cv_lib_$ac_lib_var=yes"
5035
echo "configure: failed program was:" >&5
5036
cat conftest.$ac_ext >&5
5038
eval "ac_cv_lib_$ac_lib_var=no"
5041
LIBS="$ac_save_LIBS"
5044
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5045
echo "$ac_t""yes" 1>&6
5046
LIBPTHREAD="-lpthread"
5048
echo "$ac_t""no" 1>&6
5054
# Check whether --enable-kernel-threads or --disable-kernel-threads was given.
5055
if test "${enable_kernel_threads+set}" = set; then
5056
enableval="$enable_kernel_threads"
5057
kde_use_kernthreads=$enableval
5059
kde_use_kernthreads=no
5063
if test "$kde_use_kernthreads" = "yes"; then
5064
ac_save_CXXFLAGS="$CXXFLAGS"
5065
ac_save_CFLAGS="$CXXFLAGS"
5066
CXXFLAGS="-I/usr/local/include/pthread/linuxthreads $CXXFLAGS"
5067
CFLAGS="-I/usr/local/include/pthread/linuxthreads $CFLAGS"
5068
for ac_hdr in pthread/linuxthreads/pthread.h
5070
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5071
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5072
echo "configure:5073: checking for $ac_hdr" >&5
5073
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5074
echo $ac_n "(cached) $ac_c" 1>&6
5076
cat > conftest.$ac_ext <<EOF
5077
#line 5078 "configure"
5078
#include "confdefs.h"
5081
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5082
{ (eval echo configure:5083: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5083
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5084
if test -z "$ac_err"; then
5086
eval "ac_cv_header_$ac_safe=yes"
5089
echo "configure: failed program was:" >&5
5090
cat conftest.$ac_ext >&5
5092
eval "ac_cv_header_$ac_safe=no"
5096
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5097
echo "$ac_t""yes" 1>&6
5098
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5099
cat >> confdefs.h <<EOF
5100
#define $ac_tr_hdr 1
5104
echo "$ac_t""no" 1>&6
5108
CXXFLAGS="$ac_save_CXXFLAGS"
5109
CFLAGS="$ac_save_CFLAGS"
5110
if test "$ac_cv_header_pthread_linuxthreads_pthread_h" = "no"; then
5111
kde_use_kernthreads=no
5113
echo $ac_n "checking for pthread_join in -llthread""... $ac_c" 1>&6
5114
echo "configure:5115: checking for pthread_join in -llthread" >&5
5115
ac_lib_var=`echo lthread'_'pthread_join | sed 'y%./+-%__p_%'`
5116
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5117
echo $ac_n "(cached) $ac_c" 1>&6
5119
ac_save_LIBS="$LIBS"
5120
LIBS="-llthread $LIBS"
5121
cat > conftest.$ac_ext <<EOF
5122
#line 5123 "configure"
5123
#include "confdefs.h"
5124
/* Override any gcc2 internal prototype to avoid an error. */
5125
/* We use char because int might match the return type of a gcc2
5126
builtin and then its argument prototype would still apply. */
5127
char pthread_join();
5133
if { (eval echo configure:5134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5135
eval "ac_cv_lib_$ac_lib_var=yes"
5137
echo "configure: failed program was:" >&5
5138
cat conftest.$ac_ext >&5
5140
eval "ac_cv_lib_$ac_lib_var=no"
5143
LIBS="$ac_save_LIBS"
5146
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5147
echo "$ac_t""yes" 1>&6
5148
LIBPTHREAD="-llthread -llgcc_r"
5150
echo "$ac_t""no" 1>&6
5152
if test "x$LIBPTHREAD" = "x"; then
5153
kde_use_kernthreads=no
5155
USE_THREADS="-D_THREAD_SAFE -I/usr/local/include/pthread/linuxthreads"
5160
if test -z "$LIBPTHREAD"; then
5162
echo $ac_n "checking whether $CXX supports -pthread""... $ac_c" 1>&6
5163
echo "configure:5164: checking whether $CXX supports -pthread" >&5
5164
kde_cache=`echo pthread | sed 'y%.=/+-%___p_%'`
5165
if eval "test \"`echo '$''{'kde_cv_prog_cxx_$kde_cache'+set}'`\" = set"; then
5166
echo $ac_n "(cached) $ac_c" 1>&6
5169
echo 'int main() { return 0; }' >conftest.cc
5170
eval "kde_cv_prog_cxx_$kde_cache=no"
5171
if test -z "`$CXX -pthread -c conftest.cc 2>&1`"; then
5172
if test -z "`$CXX -pthread -o conftest conftest.o 2>&1`"; then
5173
eval "kde_cv_prog_cxx_$kde_cache=yes"
5180
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
5181
echo "$ac_t""yes" 1>&6
5183
USE_THREADS="-pthread"
5185
echo "$ac_t""no" 1>&6
5196
echo $ac_n "checking whether $CXX supports -mt""... $ac_c" 1>&6
5197
echo "configure:5198: checking whether $CXX supports -mt" >&5
5198
kde_cache=`echo mt | sed 'y%.=/+-%___p_%'`
5199
if eval "test \"`echo '$''{'kde_cv_prog_cxx_$kde_cache'+set}'`\" = set"; then
5200
echo $ac_n "(cached) $ac_c" 1>&6
5203
echo 'int main() { return 0; }' >conftest.cc
5204
eval "kde_cv_prog_cxx_$kde_cache=no"
5205
if test -z "`$CXX -mt -c conftest.cc 2>&1`"; then
5206
if test -z "`$CXX -mt -o conftest conftest.o 2>&1`"; then
5207
eval "kde_cv_prog_cxx_$kde_cache=yes"
5214
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
5215
echo "$ac_t""yes" 1>&6
5219
echo "$ac_t""no" 1>&6
5224
CPPFLAGS="$CPPFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DUSE_SOLARIS -DSVR4"
5225
echo "Setting Solaris pthread compilation options"
5228
CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE"
5229
echo "Setting FreeBSD pthread compilation options"
5232
CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE"
5233
LIBPTHREAD="$LIBPTHREAD -lc_r"
5234
echo "Setting AIX pthread compilation options"
5236
linux*) CPPFLAGS="$CPPFLAGS -D_REENTRANT"
5237
USE_THREADS="$USE_THREADS -DPIC -fPIC"
5238
echo "Setting Linux pthread compilation options"
5249
echo $ac_n "checking for libpng""... $ac_c" 1>&6
5250
echo "configure:5251: checking for libpng" >&5
5251
if eval "test \"`echo '$''{'ac_cv_lib_png'+set}'`\" = set"; then
5252
echo $ac_n "(cached) $ac_c" 1>&6
5255
kde_save_LIBS="$LIBS"
5256
if test "x$kde_use_qt_emb" != "xyes"; then
5257
LIBS="$LIBS $all_libraries $USER_LDFLAGS -lpng $LIBZ -lm -lX11 $LIBSOCKET"
5259
LIBS="$LIBS $all_libraries $USER_LDFLAGS -lpng $LIBZ -lm"
5261
kde_save_CFLAGS="$CFLAGS"
5262
CFLAGS="$CFLAGS $all_includes $USER_INCLUDES"
5264
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5265
ac_cpp='$CPP $CPPFLAGS'
5266
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5267
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5268
cross_compiling=$ac_cv_prog_cc_cross
5270
cat > conftest.$ac_ext <<EOF
5271
#line 5272 "configure"
5272
#include "confdefs.h"
5278
png_structp png_ptr = png_create_read_struct( /* image ptr */
5279
PNG_LIBPNG_VER_STRING, 0, 0, 0 );
5280
return( png_ptr != 0 );
5284
if { (eval echo configure:5285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5286
eval "ac_cv_lib_png='-lpng $LIBZ -lm'"
5288
echo "configure: failed program was:" >&5
5289
cat conftest.$ac_ext >&5
5291
eval "ac_cv_lib_png=no"
5295
LIBS="$kde_save_LIBS"
5296
CFLAGS="$kde_save_CFLAGS"
5299
if eval "test ! \"`echo $ac_cv_lib_png`\" = no"; then
5300
cat >> confdefs.h <<EOF
5301
#define HAVE_LIBPNG 1
5304
LIBPNG="$ac_cv_lib_png"
5306
echo "$ac_t""$ac_cv_lib_png" 1>&6
5308
echo "$ac_t""no" 1>&6
5315
echo $ac_n "checking for libjpeg6b""... $ac_c" 1>&6
5316
echo "configure:5317: checking for libjpeg6b" >&5
5317
if eval "test \"`echo '$''{'ac_cv_lib_jpeg_6b'+set}'`\" = set"; then
5318
echo $ac_n "(cached) $ac_c" 1>&6
5322
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5323
ac_cpp='$CPP $CPPFLAGS'
5324
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5325
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5326
cross_compiling=$ac_cv_prog_cc_cross
5328
ac_save_LIBS="$LIBS"
5329
LIBS="$all_libraries $USER_LDFLAGS -ljpeg6b -lm"
5330
ac_save_CFLAGS="$CFLAGS"
5331
CFLAGS="$CFLAGS $all_includes $USER_INCLUDES"
5332
cat > conftest.$ac_ext <<EOF
5333
#line 5334 "configure"
5334
#include "confdefs.h"
5335
/* Override any gcc2 internal prototype to avoid an error. */
5336
struct jpeg_decompress_struct;
5337
typedef struct jpeg_decompress_struct * j_decompress_ptr;
5342
void jpeg_CreateDecompress(j_decompress_ptr cinfo,
5343
int version, size_t structsize);
5347
/* We use char because int might match the return type of a gcc2
5348
builtin and then its argument prototype would still apply. */
5351
jpeg_CreateDecompress(0L, 0, 0);
5354
if { (eval echo configure:5355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5356
eval "ac_cv_lib_jpeg_6b=-ljpeg6b"
5358
echo "configure: failed program was:" >&5
5359
cat conftest.$ac_ext >&5
5361
eval "ac_cv_lib_jpeg_6b=no"
5364
LIBS="$ac_save_LIBS"
5365
CFLAGS="$ac_save_CFLAGS"
5370
if eval "test ! \"`echo $ac_cv_lib_jpeg_6b`\" = no"; then
5371
LIBJPEG="$ac_cv_lib_jpeg_6b"
5372
echo "$ac_t""$ac_cv_lib_jpeg_6b" 1>&6
5374
echo "$ac_t""no" 1>&6
5376
echo $ac_n "checking for libjpeg""... $ac_c" 1>&6
5377
echo "configure:5378: checking for libjpeg" >&5
5378
if eval "test \"`echo '$''{'ac_cv_lib_jpeg_normal'+set}'`\" = set"; then
5379
echo $ac_n "(cached) $ac_c" 1>&6
5383
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5384
ac_cpp='$CPP $CPPFLAGS'
5385
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5386
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5387
cross_compiling=$ac_cv_prog_cc_cross
5389
ac_save_LIBS="$LIBS"
5390
LIBS="$all_libraries $USER_LDFLAGS -ljpeg -lm"
5391
ac_save_CFLAGS="$CFLAGS"
5392
CFLAGS="$CFLAGS $all_includes $USER_INCLUDES"
5393
cat > conftest.$ac_ext <<EOF
5394
#line 5395 "configure"
5395
#include "confdefs.h"
5396
/* Override any gcc2 internal prototype to avoid an error. */
5397
struct jpeg_decompress_struct;
5398
typedef struct jpeg_decompress_struct * j_decompress_ptr;
5403
void jpeg_CreateDecompress(j_decompress_ptr cinfo,
5404
int version, size_t structsize);
5408
/* We use char because int might match the return type of a gcc2
5409
builtin and then its argument prototype would still apply. */
5412
jpeg_CreateDecompress(0L, 0, 0);
5415
if { (eval echo configure:5416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5417
eval "ac_cv_lib_jpeg_normal=-ljpeg"
5419
echo "configure: failed program was:" >&5
5420
cat conftest.$ac_ext >&5
5422
eval "ac_cv_lib_jpeg_normal=no"
5425
LIBS="$ac_save_LIBS"
5426
CFLAGS="$ac_save_CFLAGS"
5431
if eval "test ! \"`echo $ac_cv_lib_jpeg_normal`\" = no"; then
5432
LIBJPEG="$ac_cv_lib_jpeg_normal"
5433
echo "$ac_t""$ac_cv_lib_jpeg_normal" 1>&6
5435
echo "$ac_t""no" 1>&6
5448
jpeg_incdirs="/usr/include /usr/local/include $kde_extra_includes"
5451
for i in $jpeg_incdirs;
5455
echo "configure: 5456: $i/$j" >&5
5456
if test -r "$i/$j"; then
5457
echo "taking that" >&5
5464
test "x$jpeg_incdir" = xNO && jpeg_incdir=
5466
if test -n "$jpeg_incdir" && test -n "$LIBJPEG" ; then
5467
cat >> confdefs.h <<EOF
5468
#define HAVE_LIBJPEG 1
5472
if test -n "$jpeg_incdir" || test -n "$LIBJPEG" ; then
5473
echo "configure: warning:
5474
There is an installation error in jpeg support. You seem to have only one
5475
of either the headers _or_ the libraries installed. You may need to either
5476
provide correct --with-extra-... options, or the development package of
5477
libjpeg6b. You can get a source package of libjpeg from http://www.ijg.org/
5478
Disabling JPEG support.
5481
echo "configure: warning: libjpeg not found. disable JPEG support." 1>&2
5495
# Check whether --enable-mt or --disable-mt was given.
5496
if test "${enable_mt+set}" = set; then
5497
enableval="$enable_mt"
5498
kde_use_qt_mt=$enableval
5501
if test $kde_qtver = 3; then
5515
if test "x$kde_use_qt_mt" = "xyes"; then
5519
if test -z "$LIBPTHREAD"; then
5520
if test -z "$USE_THREADS"; then
5521
kde_check_threading_default=no
5523
kde_check_threading_default=yes
5526
kde_check_threading_default=yes
5528
# Check whether --enable-threading or --disable-threading was given.
5529
if test "${enable_threading+set}" = set; then
5530
enableval="$enable_threading"
5531
kde_use_threading=$enableval
5533
kde_use_threading=$kde_check_threading_default
5536
if test "x$kde_use_threading" = "xyes"; then
5537
cat >> confdefs.h <<\EOF
5538
#define HAVE_LIBPTHREAD 1
5543
if test "x$kde_use_threading" = "xyes"; then
5544
CPPFLAGS="$USE_THREADS -DQT_THREAD_SUPPORT $CPPFLAGS"
5545
KDE_MT_LDFLAGS="$USE_THREADS $LIBPTHREAD"
5552
kde_qt_was_given=yes
5554
if test -z "$LIBQT_GLOB"; then
5555
if test "x$kde_use_qt_emb" = "xyes"; then
5556
LIBQT_GLOB="libqte.*"
5558
LIBQT_GLOB="libqt.*"
5562
if test -z "$LIBQT"; then
5563
if test "x$kde_use_qt_emb" = "xyes"; then
5570
kde_int_qt="-l$qtlib"
5574
if test "x$kde_use_qt_mt" = "xyes"; then
5576
kde_int_qt="-l$qtlib-mt"
5577
LIBQT_GLOB="lib$qtlib-mt.*"
5578
USING_QT_MT="using -mt"
5581
if test $kde_qtver != 1; then
5585
LIBQT="$LIBQT $LIBPNG $LIBJPEG"
5588
echo $ac_n "checking for Qt""... $ac_c" 1>&6
5589
echo "configure:5590: checking for Qt" >&5
5591
if test "x$kde_use_qt_emb" != "xyes"; then
5592
LIBQT="$LIBQT $X_PRE_LIBS -lXext -lX11 $LIBSM $LIBSOCKET"
5594
ac_qt_includes=NO ac_qt_libraries=NO ac_qt_bindir=NO
5597
# Check whether --with-qt-dir or --without-qt-dir was given.
5598
if test "${with_qt_dir+set}" = set; then
5599
withval="$with_qt_dir"
5600
ac_qt_includes="$withval"/include
5601
ac_qt_libraries="$withval"/lib
5602
ac_qt_bindir="$withval"/bin
5607
# Check whether --with-qt-includes or --without-qt-includes was given.
5608
if test "${with_qt_includes+set}" = set; then
5609
withval="$with_qt_includes"
5611
ac_qt_includes="$withval"
5616
kde_qt_libs_given=no
5618
# Check whether --with-qt-libraries or --without-qt-libraries was given.
5619
if test "${with_qt_libraries+set}" = set; then
5620
withval="$with_qt_libraries"
5621
ac_qt_libraries="$withval"
5622
kde_qt_libs_given=yes
5627
if eval "test \"`echo '$''{'ac_cv_have_qt'+set}'`\" = set"; then
5628
echo $ac_n "(cached) $ac_c" 1>&6
5630
#try to guess Qt locations
5633
for dir in $kde_qt_dirs; do
5634
qt_incdirs="$qt_incdirs $dir/include $dir"
5636
qt_incdirs="$QTINC $qt_incdirs /usr/local/qt/include /usr/include/qt /usr/include /usr/X11R6/include/X11/qt /usr/X11R6/include/qt /usr/X11R6/include/qt2 $x_includes"
5637
if test ! "$ac_qt_includes" = "NO"; then
5638
qt_incdirs="$ac_qt_includes $qt_incdirs"
5641
if test "$kde_qtver" != "1"; then
5642
kde_qt_header=qstyle.h
5644
kde_qt_header=qglobal.h
5649
for i in $qt_incdirs;
5651
for j in $kde_qt_header;
5653
echo "configure: 5654: $i/$j" >&5
5654
if test -r "$i/$j"; then
5655
echo "taking that" >&5
5662
ac_qt_includes="$qt_incdir"
5665
for dir in $kde_qt_dirs; do
5666
qt_libdirs="$qt_libdirs $dir/lib $dir"
5668
qt_libdirs="$QTLIB $qt_libdirs /usr/X11R6/lib /usr/lib /usr/local/qt/lib $x_libraries"
5669
if test ! "$ac_qt_libraries" = "NO"; then
5670
qt_libdir=$ac_qt_libraries
5672
qt_libdirs="$ac_qt_libraries $qt_libdirs"
5673
# if the Qt was given, the chance is too big that libqt.* doesn't exist
5675
for dir in $qt_libdirs; do
5676
try="ls -1 $dir/${LIBQT_GLOB}"
5677
if test -n "`$try 2> /dev/null`"; then qt_libdir=$dir; break; else echo "tried $dir" >&5 ; fi
5681
ac_qt_libraries="$qt_libdir"
5685
# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5686
ac_cpp='$CXXCPP $CPPFLAGS'
5687
ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5688
ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5689
cross_compiling=$ac_cv_prog_cxx_cross
5691
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5695
ac_cxxflags_safe="$CXXFLAGS"
5696
ac_ldflags_safe="$LDFLAGS"
5697
ac_libs_safe="$LIBS"
5699
CXXFLAGS="$CXXFLAGS -I$qt_incdir $all_includes"
5700
LDFLAGS="$LDFLAGS -L$qt_libdir $all_libraries $USER_LDFLAGS $KDE_MT_LDFLAGS"
5705
cat > conftest.$ac_ext <<EOF
5706
#include "confdefs.h"
5707
#include <qglobal.h>
5708
#include <qapplication.h>
5710
if test "$kde_qtver" = "2"; then
5711
cat >> conftest.$ac_ext <<EOF
5713
#include <qstring.h>
5717
if test $kde_qtsubver -gt 0; then
5718
cat >> conftest.$ac_ext <<EOF
5719
#include <qiconview.h>
5724
if test "$kde_qtver" = "3"; then
5725
cat >> conftest.$ac_ext <<EOF
5726
#include <qstylefactory.h>
5727
#include <private/qucomextra_p.h>
5731
echo "#if ! ($kde_qt_verstring)" >> conftest.$ac_ext
5732
cat >> conftest.$ac_ext <<EOF
5738
if test "$kde_qtver" = "2"; then
5739
cat >> conftest.$ac_ext <<EOF
5740
QStringList *t = new QStringList();
5742
if test $kde_qtsubver -gt 0; then
5743
cat >> conftest.$ac_ext <<EOF
5745
iv.setWordWrapIconText(false);
5747
s.setLatin1("Elvis is alive", 14);
5748
int magnolia = QEvent::Speech; /* new in 2.2 beta2 */
5752
if test "$kde_qtver" = "3"; then
5753
cat >> conftest.$ac_ext <<EOF
5754
(void)QStyleFactory::create(QString::null);
5757
cat >> conftest.$ac_ext <<EOF
5763
if { (eval echo configure:5764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5766
echo "configure: failed program was:" >&5
5767
cat conftest.$ac_ext >&5
5768
ac_qt_libraries="NO"
5771
CXXFLAGS="$ac_cxxflags_safe"
5772
LDFLAGS="$ac_ldflags_safe"
5773
LIBS="$ac_libs_safe"
5776
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5777
ac_cpp='$CPP $CPPFLAGS'
5778
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5779
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5780
cross_compiling=$ac_cv_prog_cc_cross
5782
if test "$ac_qt_includes" = NO || test "$ac_qt_libraries" = NO; then
5783
ac_cv_have_qt="have_qt=no"
5785
if test "$ac_qt_includes" = NO; then
5786
if test "$ac_qt_libraries" = NO; then
5787
ac_qt_notfound="(headers and libraries)";
5789
ac_qt_notfound="(headers)";
5792
ac_qt_notfound="(libraries)";
5795
{ echo "configure: error: Qt ($kde_qt_minversion) $ac_qt_notfound not found. Please check your installation!
5796
For more details about this problem, look at the end of config.log." 1>&2; exit 1; }
5804
eval "$ac_cv_have_qt"
5806
if test "$have_qt" != yes; then
5807
echo "$ac_t""$have_qt" 1>&6;
5809
ac_cv_have_qt="have_qt=yes \
5810
ac_qt_includes=$ac_qt_includes ac_qt_libraries=$ac_qt_libraries"
5811
echo "$ac_t""libraries $ac_qt_libraries, headers $ac_qt_includes $USING_QT_MT" 1>&6
5813
qt_libraries="$ac_qt_libraries"
5814
qt_includes="$ac_qt_includes"
5817
if test ! "$kde_qt_libs_given" = "yes"; then
5820
echo $ac_n "checking if Qt compiles without flags""... $ac_c" 1>&6
5821
echo "configure:5822: checking if Qt compiles without flags" >&5
5822
if eval "test \"`echo '$''{'kde_cv_qt_direct'+set}'`\" = set"; then
5823
echo $ac_n "(cached) $ac_c" 1>&6
5828
# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5829
ac_cpp='$CXXCPP $CPPFLAGS'
5830
ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5831
ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5832
cross_compiling=$ac_cv_prog_cxx_cross
5834
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5837
ac_LD_LIBRARY_PATH_safe=$LD_LIBRARY_PATH
5838
ac_LIBRARY_PATH="$LIBRARY_PATH"
5839
ac_cxxflags_safe="$CXXFLAGS"
5840
ac_ldflags_safe="$LDFLAGS"
5841
ac_libs_safe="$LIBS"
5843
CXXFLAGS="$CXXFLAGS -I$qt_includes"
5844
LDFLAGS="$LDFLAGS $X_LDFLAGS"
5845
if test "x$kde_use_qt_emb" != "xyes"; then
5846
LIBS="$LIBQT -lXext -lX11 $LIBSOCKET"
5848
LIBS="$LIBQT $LIBSOCKET"
5851
export LD_LIBRARY_PATH
5857
cat > conftest.$ac_ext <<EOF
5858
#include "confdefs.h"
5859
#include <qglobal.h>
5860
#include <qapplication.h>
5862
if test "$kde_qtver" = "2"; then
5863
cat >> conftest.$ac_ext <<EOF
5865
#include <qstring.h>
5869
if test $kde_qtsubver -gt 0; then
5870
cat >> conftest.$ac_ext <<EOF
5871
#include <qiconview.h>
5876
if test "$kde_qtver" = "3"; then
5877
cat >> conftest.$ac_ext <<EOF
5878
#include <qstylefactory.h>
5879
#include <private/qucomextra_p.h>
5883
echo "#if ! ($kde_qt_verstring)" >> conftest.$ac_ext
5884
cat >> conftest.$ac_ext <<EOF
5890
if test "$kde_qtver" = "2"; then
5891
cat >> conftest.$ac_ext <<EOF
5892
QStringList *t = new QStringList();
5894
if test $kde_qtsubver -gt 0; then
5895
cat >> conftest.$ac_ext <<EOF
5897
iv.setWordWrapIconText(false);
5899
s.setLatin1("Elvis is alive", 14);
5900
int magnolia = QEvent::Speech; /* new in 2.2 beta2 */
5904
if test "$kde_qtver" = "3"; then
5905
cat >> conftest.$ac_ext <<EOF
5906
(void)QStyleFactory::create(QString::null);
5909
cat >> conftest.$ac_ext <<EOF
5915
if { (eval echo configure:5916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
5916
kde_cv_qt_direct="yes"
5918
kde_cv_qt_direct="no"
5919
echo "configure: failed program was:" >&5
5920
cat conftest.$ac_ext >&5
5924
CXXFLAGS="$ac_cxxflags_safe"
5925
LDFLAGS="$ac_ldflags_safe"
5926
LIBS="$ac_libs_safe"
5928
LD_LIBRARY_PATH="$ac_LD_LIBRARY_PATH_safe"
5929
export LD_LIBRARY_PATH
5930
LIBRARY_PATH="$ac_LIBRARY_PATH"
5933
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5934
ac_cpp='$CPP $CPPFLAGS'
5935
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5936
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5937
cross_compiling=$ac_cv_prog_cc_cross
5943
if test "$kde_cv_qt_direct" = "yes"; then
5944
echo "$ac_t""yes" 1>&6
5947
echo "$ac_t""no" 1>&6
5956
if test "$qt_includes" = "$x_includes" || test -z "$qt_includes"; then
5959
QT_INCLUDES="-I$qt_includes"
5960
all_includes="$QT_INCLUDES $all_includes"
5963
if test "$qt_libraries" = "$x_libraries" || test -z "$qt_libraries"; then
5966
QT_LDFLAGS="-L$qt_libraries"
5967
all_libraries="$all_libraries $QT_LDFLAGS"
5969
test -z "$KDE_MT_LDFLAGS" || all_libraries="$all_libraries $KDE_MT_LDFLAGS"
5975
for dir in $kde_qt_dirs; do
5976
qt_bindirs="$qt_bindirs $dir/bin $dir/src/moc"
5978
qt_bindirs="$qt_bindirs /usr/bin /usr/X11R6/bin /usr/local/qt/bin"
5979
if test ! "$ac_qt_bindir" = "NO"; then
5980
qt_bindirs="$ac_qt_bindir $qt_bindirs"
5984
echo $ac_n "checking for moc""... $ac_c" 1>&6
5985
echo "configure:5986: checking for moc" >&5
5986
if test -n "$MOC"; then
5989
kde_cache=`echo moc | sed 'y%./+-%__p_%'`
5991
if eval "test \"`echo '$''{'kde_cv_path_$kde_cache'+set}'`\" = set"; then
5992
echo $ac_n "(cached) $ac_c" 1>&6
5999
for dir in $PATH; do
6004
for dir in $dirs; do
6005
if test -x "$dir/moc"; then
6008
evalstr="$dir/moc 2>&1 "
6009
if eval $evalstr; then
6010
kde_cv_path="$dir/moc"
6014
kde_cv_path="$dir/moc"
6020
eval "kde_cv_path_$kde_cache=$kde_cv_path"
6026
eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
6030
if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
6031
echo "$ac_t""not found" 1>&6
6033
{ echo "configure: error: No Qt meta object compiler (moc) found!
6034
Please check whether you installed Qt correctly.
6035
You need to have a running moc binary.
6036
configure tried to run $ac_cv_path_moc and the test didn't
6037
succeed. If configure shouldn't have tried this one, set
6038
the environment variable MOC to the right one before running
6043
echo "$ac_t""$kde_cv_path" 1>&6
6048
if test -z "$UIC_NOT_NEEDED"; then
6050
echo $ac_n "checking for uic""... $ac_c" 1>&6
6051
echo "configure:6052: checking for uic" >&5
6052
if test -n "$UIC"; then
6055
kde_cache=`echo uic | sed 'y%./+-%__p_%'`
6057
if eval "test \"`echo '$''{'kde_cv_path_$kde_cache'+set}'`\" = set"; then
6058
echo $ac_n "(cached) $ac_c" 1>&6
6065
for dir in $PATH; do
6070
for dir in $dirs; do
6071
if test -x "$dir/uic"; then
6074
evalstr="$dir/uic 2>&1 "
6075
if eval $evalstr; then
6076
kde_cv_path="$dir/uic"
6080
kde_cv_path="$dir/uic"
6086
eval "kde_cv_path_$kde_cache=$kde_cv_path"
6092
eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
6096
if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
6097
echo "$ac_t""not found" 1>&6
6100
echo "$ac_t""$kde_cv_path" 1>&6
6105
if test -z "$UIC" ; then
6107
echo "configure: warning: No Qt ui compiler (uic) found!
6108
Please check whether you installed Qt correctly.
6109
You need to have a running uic binary.
6110
configure tried to run $ac_cv_path_uic and the test didn't
6111
succeed. If configure shouldn't have tried this one, set
6112
the environment variable UIC to the right one before running
6119
UIC="echo uic not available: "
6126
if test $kde_qtver = 3; then
6127
UIC_TR="QT_KDE_I18N"
6133
if test "x$kde_use_qt_emb" != "xyes"; then
6134
LIB_QT="$kde_int_qt "'$(LIBPNG) $(LIBJPEG) -lXext $(LIB_X11) $(LIBSM)'
6136
LIB_QT="$kde_int_qt "'$(LIBPNG) $(LIBJPEG)'
6149
DO_NOT_COMPILE="$DO_NOT_COMPILE CVS debian bsd-port admin"
6151
if test ! -s $srcdir/subdirs; then
6153
files=`cd $srcdir && ls -1`
6154
dirs=`for i in $files; do if test -d $i; then echo $i; fi; done`
6156
echo $i >> $srcdir/subdirs
6160
if test -s $srcdir/inst-apps; then
6161
ac_topsubdirs="`cat $srcdir/inst-apps`"
6163
ac_topsubdirs="`cat $srcdir/subdirs`"
6166
for i in $ac_topsubdirs; do
6167
echo $ac_n "checking if $i should be compiled""... $ac_c" 1>&6
6168
echo "configure:6169: checking if $i should be compiled" >&5
6169
if test -d $srcdir/$i; then
6171
for j in $DO_NOT_COMPILE; do
6172
if test $i = $j; then
6179
echo "$ac_t""$install_it" 1>&6
6180
if test $install_it = "yes"; then
6181
TOPSUBDIRS="$TOPSUBDIRS $i"
6189
cat > confcache <<\EOF
6190
# This file is a shell script that caches the results of configure
6191
# tests run on this system so they can be shared between configure
6192
# scripts and configure runs. It is not useful on other systems.
6193
# If it contains results you don't want to keep, you may remove or edit it.
6195
# By default, configure uses ./config.cache as the cache file,
6196
# creating it if it does not exist already. You can give configure
6197
# the --cache-file=FILE option to use a different cache file; that is
6198
# what configure does when it calls configure scripts in
6199
# subdirectories, so they share the cache.
6200
# Giving --cache-file=/dev/null disables caching, for debugging configure.
6201
# config.status only pays attention to the cache file if you give it the
6202
# --recheck option to rerun configure.
6205
# The following way of writing the cache mishandles newlines in values,
6206
# but we know of no workaround that is simple, portable, and efficient.
6207
# So, don't put newlines in cache variables' values.
6208
# Ultrix sh set writes to stderr and can't be redirected directly,
6209
# and sets the high bit in the cache file unless we assign to the vars.
6211
case `(ac_space=' '; set | grep ac_space) 2>&1` in
6213
# `set' does not quote correctly, so add quotes (double-quote substitution
6214
# turns \\\\ into \\, and sed turns \\ into \).
6216
-e "s/'/'\\\\''/g" \
6217
-e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6220
# `set' quotes correctly as required by POSIX, so do not add quotes.
6221
sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6224
if cmp -s $cache_file confcache; then
6227
if test -w $cache_file; then
6228
echo "updating cache $cache_file"
6229
cat confcache > $cache_file
6231
echo "not updating unwritable cache $cache_file"
6236
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6238
test "x$prefix" = xNONE && prefix=$ac_default_prefix
6239
# Let make expand exec_prefix.
6240
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6242
# Any assignment to VPATH causes Sun make to only execute
6243
# the first set of double-colon rules, so remove it if not needed.
6244
# If there is a colon in the path, we need to keep it.
6245
if test "x$srcdir" = x.; then
6246
ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
6249
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6251
DEFS=-DHAVE_CONFIG_H
6253
# Without the "./", some shells look in PATH for config.status.
6254
: ${CONFIG_STATUS=./config.status}
6256
echo creating $CONFIG_STATUS
6257
rm -f $CONFIG_STATUS
6258
cat > $CONFIG_STATUS <<EOF
6260
# Generated automatically by configure.
6261
# Run this file to recreate the current configuration.
6262
# This directory was configured as follows,
6263
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6265
# $0 $ac_configure_args
6267
# Compiler output produced by configure, useful for debugging
6268
# configure, is in ./config.log if it exists.
6270
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6273
case "\$ac_option" in
6274
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6275
echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6276
exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6277
-version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6278
echo "$CONFIG_STATUS generated by autoconf version 2.13"
6280
-help | --help | --hel | --he | --h)
6281
echo "\$ac_cs_usage"; exit 0 ;;
6282
*) echo "\$ac_cs_usage"; exit 1 ;;
6286
ac_given_srcdir=$srcdir
6287
ac_given_INSTALL="$INSTALL"
6289
trap 'rm -fr `echo "Makefile mixxx/Makefile mixxx/docs/Makefile mixxx/docs/en/Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
6291
cat >> $CONFIG_STATUS <<EOF
6293
# Protect against being on the right side of a sed subst in config.status.
6294
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6295
s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6299
s%@CFLAGS@%$CFLAGS%g
6300
s%@CPPFLAGS@%$CPPFLAGS%g
6301
s%@CXXFLAGS@%$CXXFLAGS%g
6302
s%@FFLAGS@%$FFLAGS%g
6304
s%@LDFLAGS@%$LDFLAGS%g
6306
s%@exec_prefix@%$exec_prefix%g
6307
s%@prefix@%$prefix%g
6308
s%@program_transform_name@%$program_transform_name%g
6309
s%@bindir@%$bindir%g
6310
s%@sbindir@%$sbindir%g
6311
s%@libexecdir@%$libexecdir%g
6312
s%@datadir@%$datadir%g
6313
s%@sysconfdir@%$sysconfdir%g
6314
s%@sharedstatedir@%$sharedstatedir%g
6315
s%@localstatedir@%$localstatedir%g
6316
s%@libdir@%$libdir%g
6317
s%@includedir@%$includedir%g
6318
s%@oldincludedir@%$oldincludedir%g
6319
s%@infodir@%$infodir%g
6320
s%@mandir@%$mandir%g
6322
s%@host_alias@%$host_alias%g
6323
s%@host_cpu@%$host_cpu%g
6324
s%@host_vendor@%$host_vendor%g
6325
s%@host_os@%$host_os%g
6326
s%@target@%$target%g
6327
s%@target_alias@%$target_alias%g
6328
s%@target_cpu@%$target_cpu%g
6329
s%@target_vendor@%$target_vendor%g
6330
s%@target_os@%$target_os%g
6332
s%@build_alias@%$build_alias%g
6333
s%@build_cpu@%$build_cpu%g
6334
s%@build_vendor@%$build_vendor%g
6335
s%@build_os@%$build_os%g
6336
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6337
s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
6338
s%@INSTALL_DATA@%$INSTALL_DATA%g
6339
s%@PACKAGE@%$PACKAGE%g
6340
s%@VERSION@%$VERSION%g
6341
s%@ACLOCAL@%$ACLOCAL%g
6342
s%@AUTOCONF@%$AUTOCONF%g
6343
s%@AUTOMAKE@%$AUTOMAKE%g
6344
s%@AUTOHEADER@%$AUTOHEADER%g
6345
s%@MAKEINFO@%$MAKEINFO%g
6346
s%@SET_MAKE@%$SET_MAKE%g
6349
s%@USE_EXCEPTIONS@%$USE_EXCEPTIONS%g
6350
s%@USE_RTTI@%$USE_RTTI%g
6351
s%@CXXCPP@%$CXXCPP%g
6352
s%@NOOPT_CXXFLAGS@%$NOOPT_CXXFLAGS%g
6354
s%@NOREPO@%$NOREPO%g
6355
s%@KDE_USE_FINAL_TRUE@%$KDE_USE_FINAL_TRUE%g
6356
s%@KDE_USE_FINAL_FALSE@%$KDE_USE_FINAL_FALSE%g
6357
s%@KDE_USE_CLOSURE_TRUE@%$KDE_USE_CLOSURE_TRUE%g
6358
s%@KDE_USE_CLOSURE_FALSE@%$KDE_USE_CLOSURE_FALSE%g
6359
s%@KDE_CXXFLAGS@%$KDE_CXXFLAGS%g
6360
s%@OBJEXT@%$OBJEXT%g
6361
s%@EXEEXT@%$EXEEXT%g
6363
s%@RANLIB@%$RANLIB%g
6365
s%@LIBTOOL@%$LIBTOOL%g
6366
s%@KDE_PLUGIN@%$KDE_PLUGIN%g
6367
s%@all_includes@%$all_includes%g
6368
s%@all_libraries@%$all_libraries%g
6369
s%@MSGFMT@%$MSGFMT%g
6370
s%@GMSGFMT@%$GMSGFMT%g
6371
s%@XGETTEXT@%$XGETTEXT%g
6373
s%@LIBUTIL@%$LIBUTIL%g
6374
s%@LIBCOMPAT@%$LIBCOMPAT%g
6375
s%@LIBCRYPT@%$LIBCRYPT%g
6376
s%@LIBSOCKET@%$LIBSOCKET%g
6377
s%@LIBRESOLV@%$LIBRESOLV%g
6378
s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
6379
s%@LIBUCB@%$LIBUCB%g
6381
s%@X_INCLUDES@%$X_INCLUDES%g
6382
s%@X_LDFLAGS@%$X_LDFLAGS%g
6383
s%@x_libraries@%$x_libraries%g
6384
s%@x_includes@%$x_includes%g
6386
s%@X_PRE_LIBS@%$X_PRE_LIBS%g
6387
s%@LIB_X11@%$LIB_X11%g
6388
s%@LIBXINERAMA@%$LIBXINERAMA%g
6389
s%@QTE_NORTTI@%$QTE_NORTTI%g
6390
s%@LIB_XEXT@%$LIB_XEXT%g
6391
s%@LIBPTHREAD@%$LIBPTHREAD%g
6392
s%@USE_THREADS@%$USE_THREADS%g
6393
s%@KDE_MT_LDFLAGS@%$KDE_MT_LDFLAGS%g
6394
s%@USER_INCLUDES@%$USER_INCLUDES%g
6395
s%@USER_LDFLAGS@%$USER_LDFLAGS%g
6397
s%@LIBPNG@%$LIBPNG%g
6398
s%@LIBJPEG@%$LIBJPEG%g
6399
s%@qt_libraries@%$qt_libraries%g
6400
s%@qt_includes@%$qt_includes%g
6401
s%@QT_INCLUDES@%$QT_INCLUDES%g
6402
s%@QT_LDFLAGS@%$QT_LDFLAGS%g
6405
s%@UIC_TR@%$UIC_TR%g
6406
s%@LIB_QT@%$LIB_QT%g
6407
s%@kde_qtver@%$kde_qtver%g
6408
s%@TOPSUBDIRS@%$TOPSUBDIRS%g
6413
cat >> $CONFIG_STATUS <<\EOF
6415
# Split the substitutions into bite-sized pieces for seds with
6416
# small command number limits, like on Digital OSF/1 and HP-UX.
6417
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
6418
ac_file=1 # Number of current file.
6419
ac_beg=1 # First line for current file.
6420
ac_end=$ac_max_sed_cmds # Line after last line for current file.
6423
while $ac_more_lines; do
6424
if test $ac_beg -gt 1; then
6425
sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
6427
sed "${ac_end}q" conftest.subs > conftest.s$ac_file
6429
if test ! -s conftest.s$ac_file; then
6431
rm -f conftest.s$ac_file
6433
if test -z "$ac_sed_cmds"; then
6434
ac_sed_cmds="sed -f conftest.s$ac_file"
6436
ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
6438
ac_file=`expr $ac_file + 1`
6440
ac_end=`expr $ac_end + $ac_max_sed_cmds`
6443
if test -z "$ac_sed_cmds"; then
6448
cat >> $CONFIG_STATUS <<EOF
6450
CONFIG_FILES=\${CONFIG_FILES-"Makefile mixxx/Makefile mixxx/docs/Makefile mixxx/docs/en/Makefile "}
6452
cat >> $CONFIG_STATUS <<\EOF
6453
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
6454
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6456
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6457
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6458
*) ac_file_in="${ac_file}.in" ;;
6461
# Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6463
# Remove last slash and all that follows it. Not all systems have dirname.
6464
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6465
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6466
# The file is in a subdirectory.
6467
test ! -d "$ac_dir" && mkdir "$ac_dir"
6468
ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
6469
# A "../" for each directory in $ac_dir_suffix.
6470
ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6472
ac_dir_suffix= ac_dots=
6475
case "$ac_given_srcdir" in
6477
if test -z "$ac_dots"; then top_srcdir=.
6478
else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6479
/*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
6481
srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6482
top_srcdir="$ac_dots$ac_given_srcdir" ;;
6485
case "$ac_given_INSTALL" in
6486
[/$]*) INSTALL="$ac_given_INSTALL" ;;
6488
*) INSTALL="$ac_dots$ac_given_INSTALL" ;;
6491
echo creating "$ac_file"
6493
configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6495
*Makefile*) ac_comsub="1i\\
6496
# $configure_input" ;;
6500
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6502
s%@configure_input@%$configure_input%g
6503
s%@srcdir@%$srcdir%g
6504
s%@top_srcdir@%$top_srcdir%g
6505
s%@INSTALL@%$INSTALL%g
6506
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
6510
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6511
# NAME is the cpp macro being defined and VALUE is the value it is being given.
6513
# ac_d sets the value in "#define NAME VALUE" lines.
6514
ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6515
ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
6518
# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
6519
ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6520
ac_uB='\([ ]\)%\1#\2define\3'
6523
# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6524
ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6525
ac_eB='$%\1#\2define\3'
6529
if test "${CONFIG_HEADERS+set}" != set; then
6531
cat >> $CONFIG_STATUS <<EOF
6532
CONFIG_HEADERS="config.h"
6534
cat >> $CONFIG_STATUS <<\EOF
6536
for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
6537
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6539
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6540
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6541
*) ac_file_in="${ac_file}.in" ;;
6544
echo creating $ac_file
6546
rm -f conftest.frag conftest.in conftest.out
6547
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6548
cat $ac_file_inputs > conftest.in
6552
# Transform confdefs.h into a sed script conftest.vals that substitutes
6553
# the proper values into config.h.in to produce config.h. And first:
6554
# Protect against being on the right side of a sed subst in config.status.
6555
# Protect against being in an unquoted here document in config.status.
6557
cat > conftest.hdr <<\EOF
6560
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6564
sed -n -f conftest.hdr confdefs.h > conftest.vals
6567
# This sed command replaces #undef with comments. This is necessary, for
6568
# example, in the case of _POSIX_SOURCE, which is predefined and required
6569
# on some systems where configure will not decide to define it.
6570
cat >> conftest.vals <<\EOF
6571
s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6574
# Break up conftest.vals because some shells have a limit on
6575
# the size of here documents, and old seds have small limits too.
6580
ac_lines=`grep -c . conftest.vals`
6581
# grep -c gives empty output for an empty file on some AIX systems.
6582
if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6583
# Write a limited-size here document to conftest.frag.
6584
echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6585
sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6587
sed -f conftest.frag conftest.in > conftest.out
6589
mv conftest.out conftest.in
6591
sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6593
mv conftest.tail conftest.vals
6597
cat >> $CONFIG_STATUS <<\EOF
6598
rm -f conftest.frag conftest.h
6599
echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
6600
cat conftest.in >> conftest.h
6602
if cmp -s $ac_file conftest.h 2>/dev/null; then
6603
echo "$ac_file is unchanged"
6606
# Remove last slash and all that follows it. Not all systems have dirname.
6607
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6608
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6609
# The file is in a subdirectory.
6610
test ! -d "$ac_dir" && mkdir "$ac_dir"
6613
mv conftest.h $ac_file
6618
cat >> $CONFIG_STATUS <<EOF
6622
cat >> $CONFIG_STATUS <<\EOF
6623
test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
6627
chmod +x $CONFIG_STATUS
6628
rm -fr confdefs* $ac_clean_files
6629
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1