~ubuntu-branches/ubuntu/quantal/linpsk/quantal

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Bruce Walker
  • Date: 2002-02-06 11:43:38 UTC
  • Revision ID: james.westby@ubuntu.com-20020206114338-xqmjmhh01lpjm0g4
Tags: upstream-0.6.2
ImportĀ upstreamĀ versionĀ 0.6.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
 
 
3
# Guess values for system-dependent variables and create Makefiles.
 
4
# Generated automatically using autoconf version 2.13 
 
5
# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
 
6
#
 
7
# This configure script is free software; the Free Software Foundation
 
8
# gives unlimited permission to copy, distribute and modify it.
 
9
 
 
10
# Defaults:
 
11
ac_help=
 
12
ac_default_prefix=/usr/local
 
13
# Any additions from configure.in:
 
14
ac_default_prefix=/usr/local
 
15
ac_help="$ac_help
 
16
  --enable-debug          enables debug symbols [default=no]"
 
17
ac_help="$ac_help
 
18
  --disable-debug         disables debug output and debug symbols [default=no]"
 
19
ac_help="$ac_help
 
20
  --enable-strict         compiles with strict compiler options (may not work!)"
 
21
ac_help="$ac_help
 
22
  --enable-profile        creates profiling infos [default=no]"
 
23
ac_help="$ac_help
 
24
  --enable-final          build size optimized apps (experimental - needs lots of memory)"
 
25
ac_help="$ac_help
 
26
  --disable-closure       don't delay template instantiation"
 
27
ac_help="$ac_help
 
28
  --enable-shared[=PKGS]  build shared libraries [default=yes]"
 
29
ac_help="$ac_help
 
30
  --enable-static[=PKGS]  build static libraries [default=no]"
 
31
ac_help="$ac_help
 
32
  --enable-fast-install[=PKGS]  optimize for fast installation [default=yes]"
 
33
ac_help="$ac_help
 
34
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]"
 
35
ac_help="$ac_help
 
36
  --disable-libtool-lock  avoid locking (might break parallel builds)"
 
37
ac_help="$ac_help
 
38
  --with-pic              try to use only PIC/non-PIC objects [default=use both]"
 
39
ac_help="$ac_help
 
40
  --with-extra-includes=DIR
 
41
                          adds non standard include paths"
 
42
ac_help="$ac_help
 
43
  --with-extra-libs=DIR   adds non standard library paths"
 
44
ac_help="$ac_help
 
45
  --enable-mt             link to threaded Qt (experimental)"
 
46
ac_help="$ac_help
 
47
  --with-qt-dir=DIR       where the root of Qt is installed "
 
48
ac_help="$ac_help
 
49
  --with-qt-includes=DIR  where the Qt includes are. "
 
50
ac_help="$ac_help
 
51
  --with-qt-libraries=DIR where the Qt library is installed."
 
52
 
 
53
# Initialize some variables set by options.
 
54
# The variables have the same names as the options, with
 
55
# dashes changed to underlines.
 
56
build=NONE
 
57
cache_file=./config.cache
 
58
exec_prefix=NONE
 
59
host=NONE
 
60
no_create=
 
61
nonopt=NONE
 
62
no_recursion=
 
63
prefix=NONE
 
64
program_prefix=NONE
 
65
program_suffix=NONE
 
66
program_transform_name=s,x,x,
 
67
silent=
 
68
site=
 
69
srcdir=
 
70
target=NONE
 
71
verbose=
 
72
x_includes=NONE
 
73
x_libraries=NONE
 
74
bindir='${exec_prefix}/bin'
 
75
sbindir='${exec_prefix}/sbin'
 
76
libexecdir='${exec_prefix}/libexec'
 
77
datadir='${prefix}/share'
 
78
sysconfdir='${prefix}/etc'
 
79
sharedstatedir='${prefix}/com'
 
80
localstatedir='${prefix}/var'
 
81
libdir='${exec_prefix}/lib'
 
82
includedir='${prefix}/include'
 
83
oldincludedir='/usr/include'
 
84
infodir='${prefix}/info'
 
85
mandir='${prefix}/man'
 
86
 
 
87
# Initialize some other variables.
 
88
subdirs=
 
89
MFLAGS= MAKEFLAGS=
 
90
SHELL=${CONFIG_SHELL-/bin/sh}
 
91
# Maximum number of lines to put in a shell here document.
 
92
ac_max_here_lines=12
 
93
 
 
94
ac_prev=
 
95
for ac_option
 
96
do
 
97
 
 
98
  # If the previous option needs an argument, assign it.
 
99
  if test -n "$ac_prev"; then
 
100
    eval "$ac_prev=\$ac_option"
 
101
    ac_prev=
 
102
    continue
 
103
  fi
 
104
 
 
105
  case "$ac_option" in
 
106
  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
 
107
  *) ac_optarg= ;;
 
108
  esac
 
109
 
 
110
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
111
 
 
112
  case "$ac_option" in
 
113
 
 
114
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
115
    ac_prev=bindir ;;
 
116
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
117
    bindir="$ac_optarg" ;;
 
118
 
 
119
  -build | --build | --buil | --bui | --bu)
 
120
    ac_prev=build ;;
 
121
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
122
    build="$ac_optarg" ;;
 
123
 
 
124
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
125
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
126
    ac_prev=cache_file ;;
 
127
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
128
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
129
    cache_file="$ac_optarg" ;;
 
130
 
 
131
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
 
132
    ac_prev=datadir ;;
 
133
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
 
134
  | --da=*)
 
135
    datadir="$ac_optarg" ;;
 
136
 
 
137
  -disable-* | --disable-*)
 
138
    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
 
139
    # Reject names that are not valid shell variable names.
 
140
    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
 
141
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
 
142
    fi
 
143
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
 
144
    eval "enable_${ac_feature}=no" ;;
 
145
 
 
146
  -enable-* | --enable-*)
 
147
    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
 
148
    # Reject names that are not valid shell variable names.
 
149
    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
 
150
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
 
151
    fi
 
152
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
 
153
    case "$ac_option" in
 
154
      *=*) ;;
 
155
      *) ac_optarg=yes ;;
 
156
    esac
 
157
    eval "enable_${ac_feature}='$ac_optarg'" ;;
 
158
 
 
159
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
160
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
161
  | --exec | --exe | --ex)
 
162
    ac_prev=exec_prefix ;;
 
163
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
164
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
165
  | --exec=* | --exe=* | --ex=*)
 
166
    exec_prefix="$ac_optarg" ;;
 
167
 
 
168
  -gas | --gas | --ga | --g)
 
169
    # Obsolete; use --with-gas.
 
170
    with_gas=yes ;;
 
171
 
 
172
  -help | --help | --hel | --he)
 
173
    # Omit some internal or obsolete options to make the list less imposing.
 
174
    # This message is too long to be a string in the A/UX 3.1 sh.
 
175
    cat << EOF
 
176
Usage: configure [options] [host]
 
177
Options: [defaults in brackets after descriptions]
 
178
Configuration:
 
179
  --cache-file=FILE       cache test results in FILE
 
180
  --help                  print this message
 
181
  --no-create             do not create output files
 
182
  --quiet, --silent       do not print \`checking...' messages
 
183
  --version               print the version of autoconf that created configure
 
184
Directory and file names:
 
185
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
186
                          [$ac_default_prefix]
 
187
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
188
                          [same as prefix]
 
189
  --bindir=DIR            user executables in DIR [EPREFIX/bin]
 
190
  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
 
191
  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
 
192
  --datadir=DIR           read-only architecture-independent data in DIR
 
193
                          [PREFIX/share]
 
194
  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
 
195
  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
 
196
                          [PREFIX/com]
 
197
  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
 
198
  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
 
199
  --includedir=DIR        C header files in DIR [PREFIX/include]
 
200
  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
 
201
  --infodir=DIR           info documentation in DIR [PREFIX/info]
 
202
  --mandir=DIR            man documentation in DIR [PREFIX/man]
 
203
  --srcdir=DIR            find the sources in DIR [configure dir or ..]
 
204
  --program-prefix=PREFIX prepend PREFIX to installed program names
 
205
  --program-suffix=SUFFIX append SUFFIX to installed program names
 
206
  --program-transform-name=PROGRAM
 
207
                          run sed PROGRAM on installed program names
 
208
EOF
 
209
    cat << EOF
 
210
Host type:
 
211
  --build=BUILD           configure for building on BUILD [BUILD=HOST]
 
212
  --host=HOST             configure for HOST [guessed]
 
213
  --target=TARGET         configure for TARGET [TARGET=HOST]
 
214
Features and packages:
 
215
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
216
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
217
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
218
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
219
  --x-includes=DIR        X include files are in DIR
 
220
  --x-libraries=DIR       X library files are in DIR
 
221
EOF
 
222
    if test -n "$ac_help"; then
 
223
      echo "--enable and --with options recognized:$ac_help"
 
224
    fi
 
225
    exit 0 ;;
 
226
 
 
227
  -host | --host | --hos | --ho)
 
228
    ac_prev=host ;;
 
229
  -host=* | --host=* | --hos=* | --ho=*)
 
230
    host="$ac_optarg" ;;
 
231
 
 
232
  -includedir | --includedir | --includedi | --included | --include \
 
233
  | --includ | --inclu | --incl | --inc)
 
234
    ac_prev=includedir ;;
 
235
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
236
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
237
    includedir="$ac_optarg" ;;
 
238
 
 
239
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
240
    ac_prev=infodir ;;
 
241
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
242
    infodir="$ac_optarg" ;;
 
243
 
 
244
  -libdir | --libdir | --libdi | --libd)
 
245
    ac_prev=libdir ;;
 
246
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
247
    libdir="$ac_optarg" ;;
 
248
 
 
249
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
250
  | --libexe | --libex | --libe)
 
251
    ac_prev=libexecdir ;;
 
252
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
253
  | --libexe=* | --libex=* | --libe=*)
 
254
    libexecdir="$ac_optarg" ;;
 
255
 
 
256
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
257
  | --localstate | --localstat | --localsta | --localst \
 
258
  | --locals | --local | --loca | --loc | --lo)
 
259
    ac_prev=localstatedir ;;
 
260
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
261
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
 
262
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
 
263
    localstatedir="$ac_optarg" ;;
 
264
 
 
265
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
266
    ac_prev=mandir ;;
 
267
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
268
    mandir="$ac_optarg" ;;
 
269
 
 
270
  -nfp | --nfp | --nf)
 
271
    # Obsolete; use --without-fp.
 
272
    with_fp=no ;;
 
273
 
 
274
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
275
  | --no-cr | --no-c)
 
276
    no_create=yes ;;
 
277
 
 
278
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
279
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
280
    no_recursion=yes ;;
 
281
 
 
282
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
283
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
284
  | --oldin | --oldi | --old | --ol | --o)
 
285
    ac_prev=oldincludedir ;;
 
286
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
287
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
288
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
289
    oldincludedir="$ac_optarg" ;;
 
290
 
 
291
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
292
    ac_prev=prefix ;;
 
293
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
294
    prefix="$ac_optarg" ;;
 
295
 
 
296
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
297
  | --program-pre | --program-pr | --program-p)
 
298
    ac_prev=program_prefix ;;
 
299
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
300
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
301
    program_prefix="$ac_optarg" ;;
 
302
 
 
303
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
304
  | --program-suf | --program-su | --program-s)
 
305
    ac_prev=program_suffix ;;
 
306
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
307
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
308
    program_suffix="$ac_optarg" ;;
 
309
 
 
310
  -program-transform-name | --program-transform-name \
 
311
  | --program-transform-nam | --program-transform-na \
 
312
  | --program-transform-n | --program-transform- \
 
313
  | --program-transform | --program-transfor \
 
314
  | --program-transfo | --program-transf \
 
315
  | --program-trans | --program-tran \
 
316
  | --progr-tra | --program-tr | --program-t)
 
317
    ac_prev=program_transform_name ;;
 
318
  -program-transform-name=* | --program-transform-name=* \
 
319
  | --program-transform-nam=* | --program-transform-na=* \
 
320
  | --program-transform-n=* | --program-transform-=* \
 
321
  | --program-transform=* | --program-transfor=* \
 
322
  | --program-transfo=* | --program-transf=* \
 
323
  | --program-trans=* | --program-tran=* \
 
324
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
325
    program_transform_name="$ac_optarg" ;;
 
326
 
 
327
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
328
  | -silent | --silent | --silen | --sile | --sil)
 
329
    silent=yes ;;
 
330
 
 
331
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
332
    ac_prev=sbindir ;;
 
333
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
334
  | --sbi=* | --sb=*)
 
335
    sbindir="$ac_optarg" ;;
 
336
 
 
337
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
338
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
339
  | --sharedst | --shareds | --shared | --share | --shar \
 
340
  | --sha | --sh)
 
341
    ac_prev=sharedstatedir ;;
 
342
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
343
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
344
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
345
  | --sha=* | --sh=*)
 
346
    sharedstatedir="$ac_optarg" ;;
 
347
 
 
348
  -site | --site | --sit)
 
349
    ac_prev=site ;;
 
350
  -site=* | --site=* | --sit=*)
 
351
    site="$ac_optarg" ;;
 
352
 
 
353
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
354
    ac_prev=srcdir ;;
 
355
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
356
    srcdir="$ac_optarg" ;;
 
357
 
 
358
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
359
  | --syscon | --sysco | --sysc | --sys | --sy)
 
360
    ac_prev=sysconfdir ;;
 
361
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
362
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
363
    sysconfdir="$ac_optarg" ;;
 
364
 
 
365
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
366
    ac_prev=target ;;
 
367
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
368
    target="$ac_optarg" ;;
 
369
 
 
370
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
371
    verbose=yes ;;
 
372
 
 
373
  -version | --version | --versio | --versi | --vers)
 
374
    echo "configure generated by autoconf version 2.13"
 
375
    exit 0 ;;
 
376
 
 
377
  -with-* | --with-*)
 
378
    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
 
379
    # Reject names that are not valid shell variable names.
 
380
    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
 
381
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
 
382
    fi
 
383
    ac_package=`echo $ac_package| sed 's/-/_/g'`
 
384
    case "$ac_option" in
 
385
      *=*) ;;
 
386
      *) ac_optarg=yes ;;
 
387
    esac
 
388
    eval "with_${ac_package}='$ac_optarg'" ;;
 
389
 
 
390
  -without-* | --without-*)
 
391
    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
 
392
    # Reject names that are not valid shell variable names.
 
393
    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
 
394
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
 
395
    fi
 
396
    ac_package=`echo $ac_package| sed 's/-/_/g'`
 
397
    eval "with_${ac_package}=no" ;;
 
398
 
 
399
  --x)
 
400
    # Obsolete; use --with-x.
 
401
    with_x=yes ;;
 
402
 
 
403
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
404
  | --x-incl | --x-inc | --x-in | --x-i)
 
405
    ac_prev=x_includes ;;
 
406
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
407
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
408
    x_includes="$ac_optarg" ;;
 
409
 
 
410
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
411
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
412
    ac_prev=x_libraries ;;
 
413
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
414
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
415
    x_libraries="$ac_optarg" ;;
 
416
 
 
417
  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
 
418
    ;;
 
419
 
 
420
  *)
 
421
    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
 
422
      echo "configure: warning: $ac_option: invalid host type" 1>&2
 
423
    fi
 
424
    if test "x$nonopt" != xNONE; then
 
425
      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
 
426
    fi
 
427
    nonopt="$ac_option"
 
428
    ;;
 
429
 
 
430
  esac
 
431
done
 
432
 
 
433
if test -n "$ac_prev"; then
 
434
  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
 
435
fi
 
436
 
 
437
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
 
438
 
 
439
# File descriptor usage:
 
440
# 0 standard input
 
441
# 1 file creation
 
442
# 2 errors and warnings
 
443
# 3 some systems may open it to /dev/tty
 
444
# 4 used on the Kubota Titan
 
445
# 6 checking for... messages and results
 
446
# 5 compiler messages saved in config.log
 
447
if test "$silent" = yes; then
 
448
  exec 6>/dev/null
 
449
else
 
450
  exec 6>&1
 
451
fi
 
452
exec 5>./config.log
 
453
 
 
454
echo "\
 
455
This file contains any messages produced by compilers while
 
456
running configure, to aid debugging if configure makes a mistake.
 
457
" 1>&5
 
458
 
 
459
# Strip out --no-create and --no-recursion so they do not pile up.
 
460
# Also quote any args containing shell metacharacters.
 
461
ac_configure_args=
 
462
for ac_arg
 
463
do
 
464
  case "$ac_arg" in
 
465
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
466
  | --no-cr | --no-c) ;;
 
467
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
468
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
 
469
  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
 
470
  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
471
  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
 
472
  esac
 
473
done
 
474
 
 
475
# NLS nuisances.
 
476
# Only set these to C if already set.  These must not be set unconditionally
 
477
# because not all systems understand e.g. LANG=C (notably SCO).
 
478
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
 
479
# Non-C LC_CTYPE values break the ctype check.
 
480
if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
 
481
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
 
482
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
 
483
if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
 
484
 
 
485
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
486
rm -rf conftest* confdefs.h
 
487
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
 
488
echo > confdefs.h
 
489
 
 
490
# A filename unique to this package, relative to the directory that
 
491
# configure is in, which we can look for to find out if srcdir is correct.
 
492
ac_unique_file=acinclude.m4
 
493
 
 
494
# Find the source files, if location was not specified.
 
495
if test -z "$srcdir"; then
 
496
  ac_srcdir_defaulted=yes
 
497
  # Try the directory containing this script, then its parent.
 
498
  ac_prog=$0
 
499
  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
 
500
  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
 
501
  srcdir=$ac_confdir
 
502
  if test ! -r $srcdir/$ac_unique_file; then
 
503
    srcdir=..
 
504
  fi
 
505
else
 
506
  ac_srcdir_defaulted=no
 
507
fi
 
508
if test ! -r $srcdir/$ac_unique_file; then
 
509
  if test "$ac_srcdir_defaulted" = yes; then
 
510
    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
 
511
  else
 
512
    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
 
513
  fi
 
514
fi
 
515
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
 
516
 
 
517
# Prefer explicitly selected file to automatically selected ones.
 
518
if test -z "$CONFIG_SITE"; then
 
519
  if test "x$prefix" != xNONE; then
 
520
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
 
521
  else
 
522
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
 
523
  fi
 
524
fi
 
525
for ac_site_file in $CONFIG_SITE; do
 
526
  if test -r "$ac_site_file"; then
 
527
    echo "loading site script $ac_site_file"
 
528
    . "$ac_site_file"
 
529
  fi
 
530
done
 
531
 
 
532
if test -r "$cache_file"; then
 
533
  echo "loading cache $cache_file"
 
534
  . $cache_file
 
535
else
 
536
  echo "creating cache $cache_file"
 
537
  > $cache_file
 
538
fi
 
539
 
 
540
ac_ext=c
 
541
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 
542
ac_cpp='$CPP $CPPFLAGS'
 
543
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
 
544
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
545
cross_compiling=$ac_cv_prog_cc_cross
 
546
 
 
547
ac_exeext=
 
548
ac_objext=o
 
549
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
 
550
  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
 
551
  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
 
552
    ac_n= ac_c='
 
553
' ac_t='        '
 
554
  else
 
555
    ac_n=-n ac_c= ac_t=
 
556
  fi
 
557
else
 
558
  ac_n= ac_c='\c' ac_t=
 
559
fi
 
560
 
 
561
 
 
562
ac_aux_dir=
 
563
for ac_dir in admin $srcdir/admin; do
 
564
  if test -f $ac_dir/install-sh; then
 
565
    ac_aux_dir=$ac_dir
 
566
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
567
    break
 
568
  elif test -f $ac_dir/install.sh; then
 
569
    ac_aux_dir=$ac_dir
 
570
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
571
    break
 
572
  fi
 
573
done
 
574
if test -z "$ac_aux_dir"; then
 
575
  { echo "configure: error: can not find install-sh or install.sh in admin $srcdir/admin" 1>&2; exit 1; }
 
576
fi
 
577
ac_config_guess=$ac_aux_dir/config.guess
 
578
ac_config_sub=$ac_aux_dir/config.sub
 
579
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
 
580
 
 
581
 
 
582
 
 
583
# Do some error checking and defaulting for the host and target type.
 
584
# The inputs are:
 
585
#    configure --host=HOST --target=TARGET --build=BUILD NONOPT
 
586
#
 
587
# The rules are:
 
588
# 1. You are not allowed to specify --host, --target, and nonopt at the
 
589
#    same time.
 
590
# 2. Host defaults to nonopt.
 
591
# 3. If nonopt is not specified, then host defaults to the current host,
 
592
#    as determined by config.guess.
 
593
# 4. Target and build default to nonopt.
 
594
# 5. If nonopt is not specified, then target and build default to host.
 
595
 
 
596
# The aliases save the names the user supplied, while $host etc.
 
597
# will get canonicalized.
 
598
case $host---$target---$nonopt in
 
599
NONE---*---* | *---NONE---* | *---*---NONE) ;;
 
600
*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
 
601
esac
 
602
 
 
603
 
 
604
# Make sure we can run config.sub.
 
605
if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
 
606
else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
 
607
fi
 
608
 
 
609
echo $ac_n "checking host system type""... $ac_c" 1>&6
 
610
echo "configure:611: checking host system type" >&5
 
611
 
 
612
host_alias=$host
 
613
case "$host_alias" in
 
614
NONE)
 
615
  case $nonopt in
 
616
  NONE)
 
617
    if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
 
618
    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
 
619
    fi ;;
 
620
  *) host_alias=$nonopt ;;
 
621
  esac ;;
 
622
esac
 
623
 
 
624
host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
 
625
host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
626
host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
627
host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
628
echo "$ac_t""$host" 1>&6
 
629
 
 
630
echo $ac_n "checking target system type""... $ac_c" 1>&6
 
631
echo "configure:632: checking target system type" >&5
 
632
 
 
633
target_alias=$target
 
634
case "$target_alias" in
 
635
NONE)
 
636
  case $nonopt in
 
637
  NONE) target_alias=$host_alias ;;
 
638
  *) target_alias=$nonopt ;;
 
639
  esac ;;
 
640
esac
 
641
 
 
642
target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
 
643
target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
644
target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
645
target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
646
echo "$ac_t""$target" 1>&6
 
647
 
 
648
echo $ac_n "checking build system type""... $ac_c" 1>&6
 
649
echo "configure:650: checking build system type" >&5
 
650
 
 
651
build_alias=$build
 
652
case "$build_alias" in
 
653
NONE)
 
654
  case $nonopt in
 
655
  NONE) build_alias=$host_alias ;;
 
656
  *) build_alias=$nonopt ;;
 
657
  esac ;;
 
658
esac
 
659
 
 
660
build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
 
661
build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
662
build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
663
build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
664
echo "$ac_t""$build" 1>&6
 
665
 
 
666
test "$host_alias" != "$target_alias" &&
 
667
  test "$program_prefix$program_suffix$program_transform_name" = \
 
668
    NONENONEs,x,x, &&
 
669
  program_prefix=${target_alias}-
 
670
 
 
671
if test "$program_transform_name" = s,x,x,; then
 
672
  program_transform_name=
 
673
else
 
674
  # Double any \ or $.  echo might interpret backslashes.
 
675
  cat <<\EOF_SED > conftestsed
 
676
s,\\,\\\\,g; s,\$,$$,g
 
677
EOF_SED
 
678
  program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
 
679
  rm -f conftestsed
 
680
fi
 
681
test "$program_prefix" != NONE &&
 
682
  program_transform_name="s,^,${program_prefix},; $program_transform_name"
 
683
# Use a double $ so make ignores it.
 
684
test "$program_suffix" != NONE &&
 
685
  program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
 
686
 
 
687
# sed with no file args requires a program.
 
688
test "$program_transform_name" = "" && program_transform_name="s,x,x,"
 
689
 
 
690
 
 
691
 
 
692
    
 
693
          test -n "$INSTALL" && kde_save_INSTALL_given=$INSTALL
 
694
  test -n "$INSTALL_PROGRAM" && kde_save_INSTALL_PROGRAM_given=$INSTALL_PROGRAM
 
695
  test -n "$INSTALL_SCRIPT" && kde_save_INSTALL_SCRIPT_given=$INSTALL_SCRIPT
 
696
  # Find a good install program.  We prefer a C program (faster),
 
697
# so one script is as good as another.  But avoid the broken or
 
698
# incompatible versions:
 
699
# SysV /etc/install, /usr/sbin/install
 
700
# SunOS /usr/etc/install
 
701
# IRIX /sbin/install
 
702
# AIX /bin/install
 
703
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
704
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
705
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
706
# ./install, which can be erroneously created by make from ./install.sh.
 
707
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
 
708
echo "configure:709: checking for a BSD compatible install" >&5
 
709
if test -z "$INSTALL"; then
 
710
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
 
711
  echo $ac_n "(cached) $ac_c" 1>&6
 
712
else
 
713
    IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
 
714
  for ac_dir in $PATH; do
 
715
    # Account for people who put trailing slashes in PATH elements.
 
716
    case "$ac_dir/" in
 
717
    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
 
718
    *)
 
719
      # OSF1 and SCO ODT 3.0 have their own names for install.
 
720
      # Don't use installbsd from OSF since it installs stuff as root
 
721
      # by default.
 
722
      for ac_prog in ginstall scoinst install; do
 
723
        if test -f $ac_dir/$ac_prog; then
 
724
          if test $ac_prog = install &&
 
725
            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
 
726
            # AIX install.  It has an incompatible calling convention.
 
727
            :
 
728
          else
 
729
            ac_cv_path_install="$ac_dir/$ac_prog -c"
 
730
            break 2
 
731
          fi
 
732
        fi
 
733
      done
 
734
      ;;
 
735
    esac
 
736
  done
 
737
  IFS="$ac_save_IFS"
 
738
 
 
739
fi
 
740
  if test "${ac_cv_path_install+set}" = set; then
 
741
    INSTALL="$ac_cv_path_install"
 
742
  else
 
743
    # As a last resort, use the slow shell script.  We don't cache a
 
744
    # path for INSTALL within a source directory, because that will
 
745
    # break other packages using the cache if that directory is
 
746
    # removed, or if the path is relative.
 
747
    INSTALL="$ac_install_sh"
 
748
  fi
 
749
fi
 
750
echo "$ac_t""$INSTALL" 1>&6
 
751
 
 
752
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
753
# It thinks the first close brace ends the variable substitution.
 
754
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
755
 
 
756
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
 
757
 
 
758
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
759
 
 
760
 
 
761
  if test -z "$kde_save_INSTALL_given" ; then
 
762
    # OK, user hasn't given any INSTALL, autoconf found one for us
 
763
    # now we test, if it supports the -p flag
 
764
    echo $ac_n "checking for -p flag to install""... $ac_c" 1>&6
 
765
echo "configure:766: checking for -p flag to install" >&5
 
766
    rm -f confinst.$$.* > /dev/null 2>&1
 
767
    echo "Testtest" > confinst.$$.orig
 
768
    ac_res=no
 
769
    if ${INSTALL} -p confinst.$$.orig confinst.$$.new > /dev/null 2>&1 ; then
 
770
      if test -f confinst.$$.new ; then
 
771
        # OK, -p seems to do no harm to install
 
772
        INSTALL="${INSTALL} -p"
 
773
        ac_res=yes
 
774
      fi
 
775
    fi
 
776
    rm -f confinst.$$.*
 
777
    echo "$ac_t""$ac_res" 1>&6
 
778
  fi
 
779
                                                      
 
780
  if test -z "$kde_save_INSTALL_PROGRAM_given" ; then
 
781
    INSTALL_PROGRAM='${INSTALL} $(INSTALL_STRIP_FLAG)'
 
782
  fi
 
783
  if test -z "$kde_save_INSTALL_SCRIPT_given" ; then
 
784
    INSTALL_SCRIPT='${INSTALL}'
 
785
  fi
 
786
 
 
787
echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
 
788
echo "configure:789: checking whether build environment is sane" >&5
 
789
# Just in case
 
790
sleep 1
 
791
echo timestamp > conftestfile
 
792
# Do `set' in a subshell so we don't clobber the current shell's
 
793
# arguments.  Must try -L first in case configure is actually a
 
794
# symlink; some systems play weird games with the mod time of symlinks
 
795
# (eg FreeBSD returns the mod time of the symlink's containing
 
796
# directory).
 
797
if (
 
798
   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
 
799
   if test "$*" = "X"; then
 
800
      # -L didn't work.
 
801
      set X `ls -t $srcdir/configure conftestfile`
 
802
   fi
 
803
   if test "$*" != "X $srcdir/configure conftestfile" \
 
804
      && test "$*" != "X conftestfile $srcdir/configure"; then
 
805
 
 
806
      # If neither matched, then we have a broken ls.  This can happen
 
807
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
808
      # broken ls alias from the environment.  This has actually
 
809
      # happened.  Such a system could not be considered "sane".
 
810
      { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
 
811
alias in your environment" 1>&2; exit 1; }
 
812
   fi
 
813
 
 
814
   test "$2" = conftestfile
 
815
   )
 
816
then
 
817
   # Ok.
 
818
   :
 
819
else
 
820
   { echo "configure: error: newly created file is older than distributed files!
 
821
Check your system clock" 1>&2; exit 1; }
 
822
fi
 
823
rm -f conftest*
 
824
echo "$ac_t""yes" 1>&6
 
825
echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
 
826
echo "configure:827: checking whether ${MAKE-make} sets \${MAKE}" >&5
 
827
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
 
828
if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
 
829
  echo $ac_n "(cached) $ac_c" 1>&6
 
830
else
 
831
  cat > conftestmake <<\EOF
 
832
all:
 
833
        @echo 'ac_maketemp="${MAKE}"'
 
834
EOF
 
835
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
836
eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
 
837
if test -n "$ac_maketemp"; then
 
838
  eval ac_cv_prog_make_${ac_make}_set=yes
 
839
else
 
840
  eval ac_cv_prog_make_${ac_make}_set=no
 
841
fi
 
842
rm -f conftestmake
 
843
fi
 
844
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
 
845
  echo "$ac_t""yes" 1>&6
 
846
  SET_MAKE=
 
847
else
 
848
  echo "$ac_t""no" 1>&6
 
849
  SET_MAKE="MAKE=${MAKE-make}"
 
850
fi
 
851
 
 
852
 
 
853
PACKAGE=linpsk
 
854
 
 
855
VERSION=0.6.2
 
856
 
 
857
if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
 
858
  { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
 
859
fi
 
860
cat >> confdefs.h <<EOF
 
861
#define PACKAGE "$PACKAGE"
 
862
EOF
 
863
 
 
864
cat >> confdefs.h <<EOF
 
865
#define VERSION "$VERSION"
 
866
EOF
 
867
 
 
868
 
 
869
 
 
870
missing_dir=`cd $ac_aux_dir && pwd`
 
871
echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
 
872
echo "configure:873: checking for working aclocal" >&5
 
873
# Run test in a subshell; some versions of sh will print an error if
 
874
# an executable is not found, even if stderr is redirected.
 
875
# Redirect stdin to placate older versions of autoconf.  Sigh.
 
876
if (aclocal --version) < /dev/null > /dev/null 2>&1; then
 
877
   ACLOCAL=aclocal
 
878
   echo "$ac_t""found" 1>&6
 
879
else
 
880
   ACLOCAL="$missing_dir/missing aclocal"
 
881
   echo "$ac_t""missing" 1>&6
 
882
fi
 
883
 
 
884
echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
 
885
echo "configure:886: checking for working autoconf" >&5
 
886
# Run test in a subshell; some versions of sh will print an error if
 
887
# an executable is not found, even if stderr is redirected.
 
888
# Redirect stdin to placate older versions of autoconf.  Sigh.
 
889
if (autoconf --version) < /dev/null > /dev/null 2>&1; then
 
890
   AUTOCONF=autoconf
 
891
   echo "$ac_t""found" 1>&6
 
892
else
 
893
   AUTOCONF="$missing_dir/missing autoconf"
 
894
   echo "$ac_t""missing" 1>&6
 
895
fi
 
896
 
 
897
echo $ac_n "checking for working automake""... $ac_c" 1>&6
 
898
echo "configure:899: checking for working automake" >&5
 
899
# Run test in a subshell; some versions of sh will print an error if
 
900
# an executable is not found, even if stderr is redirected.
 
901
# Redirect stdin to placate older versions of autoconf.  Sigh.
 
902
if (automake --version) < /dev/null > /dev/null 2>&1; then
 
903
   AUTOMAKE=automake
 
904
   echo "$ac_t""found" 1>&6
 
905
else
 
906
   AUTOMAKE="$missing_dir/missing automake"
 
907
   echo "$ac_t""missing" 1>&6
 
908
fi
 
909
 
 
910
echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
 
911
echo "configure:912: checking for working autoheader" >&5
 
912
# Run test in a subshell; some versions of sh will print an error if
 
913
# an executable is not found, even if stderr is redirected.
 
914
# Redirect stdin to placate older versions of autoconf.  Sigh.
 
915
if (autoheader --version) < /dev/null > /dev/null 2>&1; then
 
916
   AUTOHEADER=autoheader
 
917
   echo "$ac_t""found" 1>&6
 
918
else
 
919
   AUTOHEADER="$missing_dir/missing autoheader"
 
920
   echo "$ac_t""missing" 1>&6
 
921
fi
 
922
 
 
923
echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
 
924
echo "configure:925: checking for working makeinfo" >&5
 
925
# Run test in a subshell; some versions of sh will print an error if
 
926
# an executable is not found, even if stderr is redirected.
 
927
# Redirect stdin to placate older versions of autoconf.  Sigh.
 
928
if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
 
929
   MAKEINFO=makeinfo
 
930
   echo "$ac_t""found" 1>&6
 
931
else
 
932
   MAKEINFO="$missing_dir/missing makeinfo"
 
933
   echo "$ac_t""missing" 1>&6
 
934
fi
 
935
 
 
936
 
 
937
 
 
938
 
 
939
 
 
940
if test "x$prefix" = "xNONE"; then
 
941
  prefix=$ac_default_prefix
 
942
  ac_configure_args="$ac_configure_args --prefix $prefix"
 
943
fi
 
944
 
 
945
 
 
946
 
 
947
 
 
948
 
 
949
    
 
950
  
 
951
  
 
952
  
 
953
 
 
954
  # Check whether --enable-debug or --disable-debug was given.
 
955
if test "${enable_debug+set}" = set; then
 
956
  enableval="$enable_debug"
 
957
  
 
958
   if test $enableval = "no";      then
 
959
       kde_use_debug_code="no"
 
960
       kde_use_debug_define=yes
 
961
     else
 
962
       kde_use_debug_code="yes"
 
963
       kde_use_debug_define=no
 
964
   fi
 
965
  
 
966
else
 
967
  kde_use_debug_code="no"
 
968
      kde_use_debug_define=no
 
969
    
 
970
fi
 
971
 
 
972
    # Check whether --enable-dummyoption or --disable-dummyoption was given.
 
973
if test "${enable_dummyoption+set}" = set; then
 
974
  enableval="$enable_dummyoption"
 
975
  :
 
976
fi
 
977
 
 
978
 
 
979
  # Check whether --enable-strict or --disable-strict was given.
 
980
if test "${enable_strict+set}" = set; then
 
981
  enableval="$enable_strict"
 
982
  
 
983
    if test $enableval = "no"; then
 
984
         kde_use_strict_options="no"
 
985
       else
 
986
         kde_use_strict_options="yes"
 
987
    fi
 
988
   
 
989
else
 
990
  kde_use_strict_options="no"
 
991
fi
 
992
 
 
993
 
 
994
  # Check whether --enable-profile or --disable-profile was given.
 
995
if test "${enable_profile+set}" = set; then
 
996
  enableval="$enable_profile"
 
997
  kde_use_profiling=$enableval
 
998
else
 
999
  kde_use_profiling="no"
 
1000
  
 
1001
fi
 
1002
 
 
1003
 
 
1004
  echo $ac_n "checking for a C-Compiler""... $ac_c" 1>&6
 
1005
echo "configure:1006: checking for a C-Compiler" >&5
 
1006
    echo "$ac_t""$CC" 1>&6
 
1007
 
 
1008
  if test -z "$CC"; then # Extract the first word of "gcc", so it can be a program name with args.
 
1009
set dummy gcc; ac_word=$2
 
1010
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
1011
echo "configure:1012: checking for $ac_word" >&5
 
1012
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
 
1013
  echo $ac_n "(cached) $ac_c" 1>&6
 
1014
else
 
1015
  if test -n "$CC"; then
 
1016
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
1017
else
 
1018
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
1019
  ac_dummy="$PATH"
 
1020
  for ac_dir in $ac_dummy; do
 
1021
    test -z "$ac_dir" && ac_dir=.
 
1022
    if test -f $ac_dir/$ac_word; then
 
1023
      ac_cv_prog_CC="gcc"
 
1024
      break
 
1025
    fi
 
1026
  done
 
1027
  IFS="$ac_save_ifs"
 
1028
fi
 
1029
fi
 
1030
CC="$ac_cv_prog_CC"
 
1031
if test -n "$CC"; then
 
1032
  echo "$ac_t""$CC" 1>&6
 
1033
else
 
1034
  echo "$ac_t""no" 1>&6
 
1035
fi
 
1036
 fi
 
1037
  if test -z "$CC"; then # Extract the first word of "cc", so it can be a program name with args.
 
1038
set dummy cc; ac_word=$2
 
1039
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
1040
echo "configure:1041: checking for $ac_word" >&5
 
1041
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
 
1042
  echo $ac_n "(cached) $ac_c" 1>&6
 
1043
else
 
1044
  if test -n "$CC"; then
 
1045
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
1046
else
 
1047
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
1048
  ac_prog_rejected=no
 
1049
  ac_dummy="$PATH"
 
1050
  for ac_dir in $ac_dummy; do
 
1051
    test -z "$ac_dir" && ac_dir=.
 
1052
    if test -f $ac_dir/$ac_word; then
 
1053
      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
 
1054
        ac_prog_rejected=yes
 
1055
        continue
 
1056
      fi
 
1057
      ac_cv_prog_CC="cc"
 
1058
      break
 
1059
    fi
 
1060
  done
 
1061
  IFS="$ac_save_ifs"
 
1062
if test $ac_prog_rejected = yes; then
 
1063
  # We found a bogon in the path, so make sure we never use it.
 
1064
  set dummy $ac_cv_prog_CC
 
1065
  shift
 
1066
  if test $# -gt 0; then
 
1067
    # We chose a different compiler from the bogus one.
 
1068
    # However, it has the same basename, so the bogon will be chosen
 
1069
    # first if we set CC to just the basename; use the full file name.
 
1070
    shift
 
1071
    set dummy "$ac_dir/$ac_word" "$@"
 
1072
    shift
 
1073
    ac_cv_prog_CC="$@"
 
1074
  fi
 
1075
fi
 
1076
fi
 
1077
fi
 
1078
CC="$ac_cv_prog_CC"
 
1079
if test -n "$CC"; then
 
1080
  echo "$ac_t""$CC" 1>&6
 
1081
else
 
1082
  echo "$ac_t""no" 1>&6
 
1083
fi
 
1084
 fi
 
1085
  if test -z "$CC"; then # Extract the first word of "xlc", so it can be a program name with args.
 
1086
set dummy xlc; ac_word=$2
 
1087
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
1088
echo "configure:1089: checking for $ac_word" >&5
 
1089
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
 
1090
  echo $ac_n "(cached) $ac_c" 1>&6
 
1091
else
 
1092
  if test -n "$CC"; then
 
1093
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
1094
else
 
1095
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
1096
  ac_dummy="$PATH"
 
1097
  for ac_dir in $ac_dummy; do
 
1098
    test -z "$ac_dir" && ac_dir=.
 
1099
    if test -f $ac_dir/$ac_word; then
 
1100
      ac_cv_prog_CC="xlc"
 
1101
      break
 
1102
    fi
 
1103
  done
 
1104
  IFS="$ac_save_ifs"
 
1105
fi
 
1106
fi
 
1107
CC="$ac_cv_prog_CC"
 
1108
if test -n "$CC"; then
 
1109
  echo "$ac_t""$CC" 1>&6
 
1110
else
 
1111
  echo "$ac_t""no" 1>&6
 
1112
fi
 
1113
 fi
 
1114
  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
 
1115
 
 
1116
  echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
 
1117
echo "configure:1118: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
 
1118
 
 
1119
ac_ext=c
 
1120
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 
1121
ac_cpp='$CPP $CPPFLAGS'
 
1122
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
 
1123
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
1124
cross_compiling=$ac_cv_prog_cc_cross
 
1125
 
 
1126
cat > conftest.$ac_ext << EOF
 
1127
 
 
1128
#line 1129 "configure"
 
1129
#include "confdefs.h"
 
1130
 
 
1131
main(){return(0);}
 
1132
EOF
 
1133
if { (eval echo configure:1134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
1134
  ac_cv_prog_cc_works=yes
 
1135
  # If we can't run a trivial program, we are probably using a cross compiler.
 
1136
  if (./conftest; exit) 2>/dev/null; then
 
1137
    ac_cv_prog_cc_cross=no
 
1138
  else
 
1139
    ac_cv_prog_cc_cross=yes
 
1140
  fi
 
1141
else
 
1142
  echo "configure: failed program was:" >&5
 
1143
  cat conftest.$ac_ext >&5
 
1144
  ac_cv_prog_cc_works=no
 
1145
fi
 
1146
rm -fr conftest*
 
1147
ac_ext=c
 
1148
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 
1149
ac_cpp='$CPP $CPPFLAGS'
 
1150
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
 
1151
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
1152
cross_compiling=$ac_cv_prog_cc_cross
 
1153
 
 
1154
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
 
1155
if test $ac_cv_prog_cc_works = no; then
 
1156
  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
 
1157
fi
 
1158
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
 
1159
echo "configure:1160: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
 
1160
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
 
1161
cross_compiling=$ac_cv_prog_cc_cross
 
1162
 
 
1163
  echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
 
1164
echo "configure:1165: checking whether we are using GNU C" >&5
 
1165
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
 
1166
  echo $ac_n "(cached) $ac_c" 1>&6
 
1167
else
 
1168
  cat > conftest.c <<EOF
 
1169
#ifdef __GNUC__
 
1170
  yes;
 
1171
#endif
 
1172
EOF
 
1173
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1174: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
 
1174
  ac_cv_prog_gcc=yes
 
1175
else
 
1176
  ac_cv_prog_gcc=no
 
1177
fi
 
1178
fi
 
1179
 
 
1180
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
 
1181
 
 
1182
  if test $ac_cv_prog_gcc = yes; then
 
1183
    GCC=yes
 
1184
  else
 
1185
    GCC=
 
1186
  fi
 
1187
 
 
1188
  USER_CFLAGS=$CFLAGS
 
1189
  CFLAGS=
 
1190
 
 
1191
  if test -z "$CFLAGS"; then
 
1192
    if test "$kde_use_debug_code" = "yes"; then
 
1193
      echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
 
1194
echo "configure:1195: checking whether ${CC-cc} accepts -g" >&5
 
1195
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
 
1196
  echo $ac_n "(cached) $ac_c" 1>&6
 
1197
else
 
1198
  echo 'void f(){}' > conftest.c
 
1199
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
 
1200
  ac_cv_prog_cc_g=yes
 
1201
else
 
1202
  ac_cv_prog_cc_g=no
 
1203
fi
 
1204
rm -f conftest*
 
1205
 
 
1206
fi
 
1207
 
 
1208
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
 
1209
      if test $ac_cv_prog_cc_g = yes; then
 
1210
        CFLAGS="-g"
 
1211
        case $host in
 
1212
        *-*-linux-gnu)  
 
1213
           CFLAGS="$CFLAGS -ansi -W -Wall -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE -D_BSD_SOURCE"
 
1214
         ;;
 
1215
        esac
 
1216
      fi
 
1217
    else
 
1218
      if test "$GCC" = "yes"; then
 
1219
        CFLAGS="-O2"
 
1220
      else
 
1221
        CFLAGS=""
 
1222
      fi
 
1223
      if test "$kde_use_debug_define" = "yes"; then
 
1224
        CFLAGS="$CFLAGS -DNDEBUG"
 
1225
                                              fi
 
1226
    fi
 
1227
 
 
1228
    if test "$kde_use_profiling" = yes; then
 
1229
       echo $ac_n "checking whether ${CC-cc} accepts -pg""... $ac_c" 1>&6
 
1230
echo "configure:1231: checking whether ${CC-cc} accepts -pg" >&5
 
1231
if eval "test \"`echo '$''{'kde_cv_prog_cc_pg'+set}'`\" = set"; then
 
1232
  echo $ac_n "(cached) $ac_c" 1>&6
 
1233
else
 
1234
  echo 'void f(){}' > conftest.c
 
1235
   if test -z "`${CC-cc} -pg -c conftest.c 2>&1`"; then
 
1236
     kde_cv_prog_cc_pg=yes
 
1237
   else
 
1238
     kde_cv_prog_cc_pg=no
 
1239
   fi
 
1240
   rm -f conftest*
 
1241
 
 
1242
fi
 
1243
 
 
1244
echo "$ac_t""$kde_cv_prog_cc_pg" 1>&6
 
1245
      if test "$kde_cv_prog_cc_pg" = yes; then
 
1246
        CFLAGS="$CFLAGS -pg"
 
1247
      fi
 
1248
    fi
 
1249
 
 
1250
    if test "$GCC" = "yes"; then
 
1251
     CFLAGS="$CFLAGS"
 
1252
 
 
1253
     if test "$kde_use_strict_options" = "yes"; then
 
1254
        CFLAGS="$CFLAGS -W -Wall -ansi -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings"
 
1255
     fi
 
1256
    fi
 
1257
 
 
1258
  fi
 
1259
 
 
1260
  case "$host" in
 
1261
  *-*-sysv4.2uw*) CFLAGS="$CFLAGS -D_UNIXWARE";;
 
1262
  *-*-sysv5uw7*) CFLAGS="$CFLAGS -D_UNIXWARE7";;
 
1263
  esac
 
1264
 
 
1265
  if test -n "$USER_CFLAGS"; then
 
1266
    CFLAGS="$CFLAGS $USER_CFLAGS"
 
1267
  fi
 
1268
 
 
1269
  if test -z "$LDFLAGS" && test "$kde_use_debug_code" = "no" && test "$GCC" = "yes"; then
 
1270
     LDFLAGS=""
 
1271
  fi
 
1272
 
 
1273
 
 
1274
 
 
1275
  echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
 
1276
echo "configure:1277: checking how to run the C preprocessor" >&5
 
1277
  # On Suns, sometimes $CPP names a directory.
 
1278
  if test -n "$CPP" && test -d "$CPP"; then
 
1279
    CPP=
 
1280
  fi
 
1281
  if test -z "$CPP"; then
 
1282
  if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
 
1283
  echo $ac_n "(cached) $ac_c" 1>&6
 
1284
else
 
1285
    # This must be in double quotes, not single quotes, because CPP may get
 
1286
    # substituted into the Makefile and "${CC-cc}" will confuse make.
 
1287
    CPP="${CC-cc} -E"
 
1288
    # On the NeXT, cc -E runs the code through the compiler's parser,
 
1289
    # not just through cpp.
 
1290
            cat > conftest.$ac_ext <<EOF
 
1291
#line 1292 "configure"
 
1292
#include "confdefs.h"
 
1293
#include <assert.h>
 
1294
    Syntax Error
 
1295
EOF
 
1296
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
1297
{ (eval echo configure:1298: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
1298
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 
1299
if test -z "$ac_err"; then
 
1300
  :
 
1301
else
 
1302
  echo "$ac_err" >&5
 
1303
  echo "configure: failed program was:" >&5
 
1304
  cat conftest.$ac_ext >&5
 
1305
  rm -rf conftest*
 
1306
  CPP="${CC-cc} -E -traditional-cpp"
 
1307
    cat > conftest.$ac_ext <<EOF
 
1308
#line 1309 "configure"
 
1309
#include "confdefs.h"
 
1310
#include <assert.h>
 
1311
    Syntax Error
 
1312
EOF
 
1313
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
1314
{ (eval echo configure:1315: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
1315
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 
1316
if test -z "$ac_err"; then
 
1317
  :
 
1318
else
 
1319
  echo "$ac_err" >&5
 
1320
  echo "configure: failed program was:" >&5
 
1321
  cat conftest.$ac_ext >&5
 
1322
  rm -rf conftest*
 
1323
  CPP=/lib/cpp
 
1324
fi
 
1325
rm -f conftest*
 
1326
fi
 
1327
rm -f conftest*
 
1328
    ac_cv_prog_CPP="$CPP"
 
1329
fi
 
1330
    CPP="$ac_cv_prog_CPP"
 
1331
  else
 
1332
    ac_cv_prog_CPP="$CPP"
 
1333
  fi
 
1334
  echo "$ac_t""$CPP" 1>&6
 
1335
  
 
1336
 
 
1337
  echo $ac_n "checking for a C++-Compiler""... $ac_c" 1>&6
 
1338
echo "configure:1339: checking for a C++-Compiler" >&5
 
1339
    echo "$ac_t""$CXX" 1>&6
 
1340
 
 
1341
  if test -z "$CXX"; then # Extract the first word of "g++", so it can be a program name with args.
 
1342
set dummy g++; ac_word=$2
 
1343
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
1344
echo "configure:1345: checking for $ac_word" >&5
 
1345
if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
 
1346
  echo $ac_n "(cached) $ac_c" 1>&6
 
1347
else
 
1348
  if test -n "$CXX"; then
 
1349
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
1350
else
 
1351
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
1352
  ac_dummy="$PATH"
 
1353
  for ac_dir in $ac_dummy; do
 
1354
    test -z "$ac_dir" && ac_dir=.
 
1355
    if test -f $ac_dir/$ac_word; then
 
1356
      ac_cv_prog_CXX="g++"
 
1357
      break
 
1358
    fi
 
1359
  done
 
1360
  IFS="$ac_save_ifs"
 
1361
fi
 
1362
fi
 
1363
CXX="$ac_cv_prog_CXX"
 
1364
if test -n "$CXX"; then
 
1365
  echo "$ac_t""$CXX" 1>&6
 
1366
else
 
1367
  echo "$ac_t""no" 1>&6
 
1368
fi
 
1369
 fi
 
1370
  if test -z "$CXX"; then # Extract the first word of "CC", so it can be a program name with args.
 
1371
set dummy CC; ac_word=$2
 
1372
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
1373
echo "configure:1374: checking for $ac_word" >&5
 
1374
if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
 
1375
  echo $ac_n "(cached) $ac_c" 1>&6
 
1376
else
 
1377
  if test -n "$CXX"; then
 
1378
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
1379
else
 
1380
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
1381
  ac_dummy="$PATH"
 
1382
  for ac_dir in $ac_dummy; do
 
1383
    test -z "$ac_dir" && ac_dir=.
 
1384
    if test -f $ac_dir/$ac_word; then
 
1385
      ac_cv_prog_CXX="CC"
 
1386
      break
 
1387
    fi
 
1388
  done
 
1389
  IFS="$ac_save_ifs"
 
1390
fi
 
1391
fi
 
1392
CXX="$ac_cv_prog_CXX"
 
1393
if test -n "$CXX"; then
 
1394
  echo "$ac_t""$CXX" 1>&6
 
1395
else
 
1396
  echo "$ac_t""no" 1>&6
 
1397
fi
 
1398
 fi
 
1399
  if test -z "$CXX"; then # Extract the first word of "xlC", so it can be a program name with args.
 
1400
set dummy xlC; ac_word=$2
 
1401
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
1402
echo "configure:1403: checking for $ac_word" >&5
 
1403
if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
 
1404
  echo $ac_n "(cached) $ac_c" 1>&6
 
1405
else
 
1406
  if test -n "$CXX"; then
 
1407
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
1408
else
 
1409
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
1410
  ac_dummy="$PATH"
 
1411
  for ac_dir in $ac_dummy; do
 
1412
    test -z "$ac_dir" && ac_dir=.
 
1413
    if test -f $ac_dir/$ac_word; then
 
1414
      ac_cv_prog_CXX="xlC"
 
1415
      break
 
1416
    fi
 
1417
  done
 
1418
  IFS="$ac_save_ifs"
 
1419
fi
 
1420
fi
 
1421
CXX="$ac_cv_prog_CXX"
 
1422
if test -n "$CXX"; then
 
1423
  echo "$ac_t""$CXX" 1>&6
 
1424
else
 
1425
  echo "$ac_t""no" 1>&6
 
1426
fi
 
1427
 fi
 
1428
  if test -z "$CXX"; then # Extract the first word of "DCC", so it can be a program name with args.
 
1429
set dummy DCC; ac_word=$2
 
1430
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
1431
echo "configure:1432: checking for $ac_word" >&5
 
1432
if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
 
1433
  echo $ac_n "(cached) $ac_c" 1>&6
 
1434
else
 
1435
  if test -n "$CXX"; then
 
1436
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
1437
else
 
1438
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
1439
  ac_dummy="$PATH"
 
1440
  for ac_dir in $ac_dummy; do
 
1441
    test -z "$ac_dir" && ac_dir=.
 
1442
    if test -f $ac_dir/$ac_word; then
 
1443
      ac_cv_prog_CXX="DCC"
 
1444
      break
 
1445
    fi
 
1446
  done
 
1447
  IFS="$ac_save_ifs"
 
1448
fi
 
1449
fi
 
1450
CXX="$ac_cv_prog_CXX"
 
1451
if test -n "$CXX"; then
 
1452
  echo "$ac_t""$CXX" 1>&6
 
1453
else
 
1454
  echo "$ac_t""no" 1>&6
 
1455
fi
 
1456
 fi
 
1457
  test -z "$CXX" && { echo "configure: error: no acceptable C++-compiler found in \$PATH" 1>&2; exit 1; }
 
1458
 
 
1459
  echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
 
1460
echo "configure:1461: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
 
1461
 
 
1462
 
 
1463
ac_ext=C
 
1464
# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 
1465
ac_cpp='$CXXCPP $CPPFLAGS'
 
1466
ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
 
1467
ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
1468
cross_compiling=$ac_cv_prog_cxx_cross
 
1469
 
 
1470
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
1471
 
 
1472
 
 
1473
 
 
1474
cat > conftest.$ac_ext << EOF
 
1475
 
 
1476
#line 1477 "configure"
 
1477
#include "confdefs.h"
 
1478
 
 
1479
int main(){return(0);}
 
1480
EOF
 
1481
if { (eval echo configure:1482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
1482
  ac_cv_prog_cxx_works=yes
 
1483
  # If we can't run a trivial program, we are probably using a cross compiler.
 
1484
  if (./conftest; exit) 2>/dev/null; then
 
1485
    ac_cv_prog_cxx_cross=no
 
1486
  else
 
1487
    ac_cv_prog_cxx_cross=yes
 
1488
  fi
 
1489
else
 
1490
  echo "configure: failed program was:" >&5
 
1491
  cat conftest.$ac_ext >&5
 
1492
  ac_cv_prog_cxx_works=no
 
1493
fi
 
1494
rm -fr conftest*
 
1495
ac_ext=c
 
1496
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 
1497
ac_cpp='$CPP $CPPFLAGS'
 
1498
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
 
1499
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
1500
cross_compiling=$ac_cv_prog_cc_cross
 
1501
 
 
1502
echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
 
1503
if test $ac_cv_prog_cxx_works = no; then
 
1504
  { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
 
1505
fi
 
1506
echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
 
1507
echo "configure:1508: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
 
1508
echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
 
1509
cross_compiling=$ac_cv_prog_cxx_cross
 
1510
 
 
1511
  echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
 
1512
echo "configure:1513: checking whether we are using GNU C++" >&5
 
1513
if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
 
1514
  echo $ac_n "(cached) $ac_c" 1>&6
 
1515
else
 
1516
  cat > conftest.C <<EOF
 
1517
#ifdef __GNUC__
 
1518
  yes;
 
1519
#endif
 
1520
EOF
 
1521
if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1522: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
 
1522
  ac_cv_prog_gxx=yes
 
1523
else
 
1524
  ac_cv_prog_gxx=no
 
1525
fi
 
1526
fi
 
1527
 
 
1528
echo "$ac_t""$ac_cv_prog_gxx" 1>&6
 
1529
 
 
1530
  if test $ac_cv_prog_gxx = yes; then
 
1531
    GXX=yes
 
1532
  fi
 
1533
 
 
1534
  USER_CXXFLAGS=$CXXFLAGS
 
1535
  CXXFLAGS=""
 
1536
 
 
1537
  if test -z "$CXXFLAGS"; then
 
1538
    if test "$kde_use_debug_code" = "yes"; then
 
1539
      echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
 
1540
echo "configure:1541: checking whether ${CXX-g++} accepts -g" >&5
 
1541
if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
 
1542
  echo $ac_n "(cached) $ac_c" 1>&6
 
1543
else
 
1544
  echo 'void f(){}' > conftest.cc
 
1545
if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
 
1546
  ac_cv_prog_cxx_g=yes
 
1547
else
 
1548
  ac_cv_prog_cxx_g=no
 
1549
fi
 
1550
rm -f conftest*
 
1551
 
 
1552
fi
 
1553
 
 
1554
echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
 
1555
      if test $ac_cv_prog_cxx_g = yes; then
 
1556
        CXXFLAGS="-g"
 
1557
        case $host in           *-*-linux-gnu)
 
1558
           CXXFLAGS="$CXXFLAGS -ansi -D_XOPEN_SOURCE -D_BSD_SOURCE -Wbad-function-cast -Wcast-align -Wundef -Wconversion"
 
1559
         ;;
 
1560
        esac
 
1561
      fi
 
1562
    else
 
1563
      if test "$GXX" = "yes"; then
 
1564
         CXXFLAGS="-O2"
 
1565
      fi
 
1566
      if test "$kde_use_debug_define" = "yes"; then
 
1567
         CXXFLAGS="$CXXFLAGS -DNDEBUG"
 
1568
      fi
 
1569
    fi
 
1570
 
 
1571
    if test "$kde_use_profiling" = yes; then
 
1572
       echo $ac_n "checking whether ${CXX-g++} accepts -pg""... $ac_c" 1>&6
 
1573
echo "configure:1574: checking whether ${CXX-g++} accepts -pg" >&5
 
1574
if eval "test \"`echo '$''{'kde_cv_prog_cxx_pg'+set}'`\" = set"; then
 
1575
  echo $ac_n "(cached) $ac_c" 1>&6
 
1576
else
 
1577
  echo 'void f(){}' > conftest.cc
 
1578
   if test -z "`${CXX-g++} -pg -c conftest.cc 2>&1`"; then
 
1579
     kde_cv_prog_cxx_pg=yes
 
1580
   else
 
1581
     kde_cv_prog_cxx_pg=no
 
1582
   fi
 
1583
  rm -f conftest*
 
1584
 
 
1585
fi
 
1586
 
 
1587
echo "$ac_t""$kde_cv_prog_cxx_pg" 1>&6
 
1588
      if test "$kde_cv_prog_cxx_pg" = yes; then
 
1589
        CXXFLAGS="$CXXFLAGS -pg"
 
1590
      fi
 
1591
    fi
 
1592
    
 
1593
    
 
1594
 
 
1595
echo $ac_n "checking whether $CXX supports -fno-exceptions""... $ac_c" 1>&6
 
1596
echo "configure:1597: checking whether $CXX supports -fno-exceptions" >&5
 
1597
kde_cache=`echo fno-exceptions | sed 'y%.=/+-%___p_%'`
 
1598
if eval "test \"`echo '$''{'kde_cv_prog_cxx_$kde_cache'+set}'`\" = set"; then
 
1599
  echo $ac_n "(cached) $ac_c" 1>&6
 
1600
else
 
1601
  
 
1602
echo 'int main() { return 0; }' >conftest.cc
 
1603
eval "kde_cv_prog_cxx_$kde_cache=no"
 
1604
if test -z "`$CXX -fno-exceptions -c conftest.cc 2>&1`"; then
 
1605
  if test -z "`$CXX -fno-exceptions -o conftest conftest.o 2>&1`"; then
 
1606
    eval "kde_cv_prog_cxx_$kde_cache=yes"
 
1607
  fi
 
1608
fi
 
1609
rm -f conftest*
 
1610
 
 
1611
fi
 
1612
 
 
1613
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
 
1614
 echo "$ac_t""yes" 1>&6
 
1615
 :
 
1616
 
 
1617
      CXXFLAGS="$CXXFLAGS -fno-exceptions"
 
1618
    
 
1619
else
 
1620
 echo "$ac_t""no" 1>&6
 
1621
 :
 
1622
 
 
1623
fi
 
1624
 
 
1625
      
 
1626
 
 
1627
    
 
1628
 
 
1629
echo $ac_n "checking whether $CXX supports -fno-check-new""... $ac_c" 1>&6
 
1630
echo "configure:1631: checking whether $CXX supports -fno-check-new" >&5
 
1631
kde_cache=`echo fno-check-new | sed 'y%.=/+-%___p_%'`
 
1632
if eval "test \"`echo '$''{'kde_cv_prog_cxx_$kde_cache'+set}'`\" = set"; then
 
1633
  echo $ac_n "(cached) $ac_c" 1>&6
 
1634
else
 
1635
  
 
1636
echo 'int main() { return 0; }' >conftest.cc
 
1637
eval "kde_cv_prog_cxx_$kde_cache=no"
 
1638
if test -z "`$CXX -fno-check-new -c conftest.cc 2>&1`"; then
 
1639
  if test -z "`$CXX -fno-check-new -o conftest conftest.o 2>&1`"; then
 
1640
    eval "kde_cv_prog_cxx_$kde_cache=yes"
 
1641
  fi
 
1642
fi
 
1643
rm -f conftest*
 
1644
 
 
1645
fi
 
1646
 
 
1647
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
 
1648
 echo "$ac_t""yes" 1>&6
 
1649
 :
 
1650
 
 
1651
          CXXFLAGS="$CXXFLAGS -fno-check-new"
 
1652
        
 
1653
else
 
1654
 echo "$ac_t""no" 1>&6
 
1655
 :
 
1656
 
 
1657
fi
 
1658
 
 
1659
 
 
1660
    if test "$GXX" = "yes"; then
 
1661
       CXXFLAGS="$CXXFLAGS"
 
1662
 
 
1663
       if test true || test "$kde_use_debug_code" = "yes"; then
 
1664
         CXXFLAGS="$CXXFLAGS -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings"
 
1665
 
 
1666
         
 
1667
 
 
1668
echo $ac_n "checking whether $CXX supports -Wno-long-long""... $ac_c" 1>&6
 
1669
echo "configure:1670: checking whether $CXX supports -Wno-long-long" >&5
 
1670
kde_cache=`echo Wno-long-long | sed 'y%.=/+-%___p_%'`
 
1671
if eval "test \"`echo '$''{'kde_cv_prog_cxx_$kde_cache'+set}'`\" = set"; then
 
1672
  echo $ac_n "(cached) $ac_c" 1>&6
 
1673
else
 
1674
  
 
1675
echo 'int main() { return 0; }' >conftest.cc
 
1676
eval "kde_cv_prog_cxx_$kde_cache=no"
 
1677
if test -z "`$CXX -Wno-long-long -c conftest.cc 2>&1`"; then
 
1678
  if test -z "`$CXX -Wno-long-long -o conftest conftest.o 2>&1`"; then
 
1679
    eval "kde_cv_prog_cxx_$kde_cache=yes"
 
1680
  fi
 
1681
fi
 
1682
rm -f conftest*
 
1683
 
 
1684
fi
 
1685
 
 
1686
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
 
1687
 echo "$ac_t""yes" 1>&6
 
1688
 :
 
1689
 
 
1690
           CXXFLAGS="$CXXFLAGS -Wno-long-long"
 
1691
         
 
1692
else
 
1693
 echo "$ac_t""no" 1>&6
 
1694
 :
 
1695
 
 
1696
fi
 
1697
 
 
1698
         
 
1699
 
 
1700
echo $ac_n "checking whether $CXX supports -Wnon-virtual-dtor""... $ac_c" 1>&6
 
1701
echo "configure:1702: checking whether $CXX supports -Wnon-virtual-dtor" >&5
 
1702
kde_cache=`echo Wnon-virtual-dtor | sed 'y%.=/+-%___p_%'`
 
1703
if eval "test \"`echo '$''{'kde_cv_prog_cxx_$kde_cache'+set}'`\" = set"; then
 
1704
  echo $ac_n "(cached) $ac_c" 1>&6
 
1705
else
 
1706
  
 
1707
echo 'int main() { return 0; }' >conftest.cc
 
1708
eval "kde_cv_prog_cxx_$kde_cache=no"
 
1709
if test -z "`$CXX -Wnon-virtual-dtor -c conftest.cc 2>&1`"; then
 
1710
  if test -z "`$CXX -Wnon-virtual-dtor -o conftest conftest.o 2>&1`"; then
 
1711
    eval "kde_cv_prog_cxx_$kde_cache=yes"
 
1712
  fi
 
1713
fi
 
1714
rm -f conftest*
 
1715
 
 
1716
fi
 
1717
 
 
1718
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
 
1719
 echo "$ac_t""yes" 1>&6
 
1720
 :
 
1721
 
 
1722
           CXXFLAGS="$CXXFLAGS -Wnon-virtual-dtor"
 
1723
         
 
1724
else
 
1725
 echo "$ac_t""no" 1>&6
 
1726
 :
 
1727
 
 
1728
fi
 
1729
 
 
1730
         
 
1731
 
 
1732
echo $ac_n "checking whether $CXX supports -fno-builtin""... $ac_c" 1>&6
 
1733
echo "configure:1734: checking whether $CXX supports -fno-builtin" >&5
 
1734
kde_cache=`echo fno-builtin | sed 'y%.=/+-%___p_%'`
 
1735
if eval "test \"`echo '$''{'kde_cv_prog_cxx_$kde_cache'+set}'`\" = set"; then
 
1736
  echo $ac_n "(cached) $ac_c" 1>&6
 
1737
else
 
1738
  
 
1739
echo 'int main() { return 0; }' >conftest.cc
 
1740
eval "kde_cv_prog_cxx_$kde_cache=no"
 
1741
if test -z "`$CXX -fno-builtin -c conftest.cc 2>&1`"; then
 
1742
  if test -z "`$CXX -fno-builtin -o conftest conftest.o 2>&1`"; then
 
1743
    eval "kde_cv_prog_cxx_$kde_cache=yes"
 
1744
  fi
 
1745
fi
 
1746
rm -f conftest*
 
1747
 
 
1748
fi
 
1749
 
 
1750
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
 
1751
 echo "$ac_t""yes" 1>&6
 
1752
 :
 
1753
 
 
1754
           CXXFLAGS="$CXXFLAGS -fno-builtin"
 
1755
         
 
1756
else
 
1757
 echo "$ac_t""no" 1>&6
 
1758
 :
 
1759
 
 
1760
fi
 
1761
 
 
1762
        
 
1763
       fi
 
1764
 
 
1765
       if test "$kde_use_strict_options" = "yes"; then
 
1766
        CXXFLAGS="$CXXFLAGS -Wcast-qual -Wbad-function-cast -Wshadow -Wcast-align"
 
1767
       fi
 
1768
 
 
1769
       if test "$kde_very_strict" = "yes"; then
 
1770
         CXXFLAGS="$CXXFLAGS -Wold-style-cast -Wredundant-decls -Wconversion"
 
1771
       fi
 
1772
    fi
 
1773
  fi
 
1774
 
 
1775
    
 
1776
 
 
1777
echo $ac_n "checking whether $CXX supports -fexceptions""... $ac_c" 1>&6
 
1778
echo "configure:1779: checking whether $CXX supports -fexceptions" >&5
 
1779
kde_cache=`echo fexceptions | sed 'y%.=/+-%___p_%'`
 
1780
if eval "test \"`echo '$''{'kde_cv_prog_cxx_$kde_cache'+set}'`\" = set"; then
 
1781
  echo $ac_n "(cached) $ac_c" 1>&6
 
1782
else
 
1783
  
 
1784
echo 'int main() { return 0; }' >conftest.cc
 
1785
eval "kde_cv_prog_cxx_$kde_cache=no"
 
1786
if test -z "`$CXX -fexceptions -c conftest.cc 2>&1`"; then
 
1787
  if test -z "`$CXX -fexceptions -o conftest conftest.o 2>&1`"; then
 
1788
    eval "kde_cv_prog_cxx_$kde_cache=yes"
 
1789
  fi
 
1790
fi
 
1791
rm -f conftest*
 
1792
 
 
1793
fi
 
1794
 
 
1795
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
 
1796
 echo "$ac_t""yes" 1>&6
 
1797
 :
 
1798
 
 
1799
          USE_EXCEPTIONS="-fexceptions"
 
1800
        
 
1801
else
 
1802
 echo "$ac_t""no" 1>&6
 
1803
 :
 
1804
 USE_EXCEPTIONS=
 
1805
        
 
1806
fi
 
1807
 
 
1808
    
 
1809
 
 
1810
    
 
1811
 
 
1812
echo $ac_n "checking whether $CXX supports -frtti""... $ac_c" 1>&6
 
1813
echo "configure:1814: checking whether $CXX supports -frtti" >&5
 
1814
kde_cache=`echo frtti | sed 'y%.=/+-%___p_%'`
 
1815
if eval "test \"`echo '$''{'kde_cv_prog_cxx_$kde_cache'+set}'`\" = set"; then
 
1816
  echo $ac_n "(cached) $ac_c" 1>&6
 
1817
else
 
1818
  
 
1819
echo 'int main() { return 0; }' >conftest.cc
 
1820
eval "kde_cv_prog_cxx_$kde_cache=no"
 
1821
if test -z "`$CXX -frtti -c conftest.cc 2>&1`"; then
 
1822
  if test -z "`$CXX -frtti -o conftest conftest.o 2>&1`"; then
 
1823
    eval "kde_cv_prog_cxx_$kde_cache=yes"
 
1824
  fi
 
1825
fi
 
1826
rm -f conftest*
 
1827
 
 
1828
fi
 
1829
 
 
1830
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
 
1831
 echo "$ac_t""yes" 1>&6
 
1832
 :
 
1833
 
 
1834
          USE_RTTI="-frtti"
 
1835
        
 
1836
else
 
1837
 echo "$ac_t""no" 1>&6
 
1838
 :
 
1839
 USE_RTTI=
 
1840
        
 
1841
fi
 
1842
 
 
1843
    
 
1844
 
 
1845
    case "$host" in
 
1846
      *-*-irix*)  test "$GXX" = yes && CXXFLAGS="$CXXFLAGS -D_LANGUAGE_C_PLUS_PLUS -D__LANGUAGE_C_PLUS_PLUS" ;;
 
1847
      *-*-sysv4.2uw*) CXXFLAGS="$CXXFLAGS -D_UNIXWARE";;
 
1848
      *-*-sysv5uw7*) CXXFLAGS="$CXXFLAGS -D_UNIXWARE7";;
 
1849
      *-*-solaris*) 
 
1850
        if test "$GXX" = yes; then
 
1851
          libstdcpp=`gcc -print-file-name=libstdc++.so`
 
1852
          if test ! -f $libstdcpp; then
 
1853
             { echo "configure: error: You've compiled gcc without --enable-shared. This doesn't work with KDE. Please recompile gcc with --enable-shared to receive a libstdc++.so" 1>&2; exit 1; }
 
1854
          fi
 
1855
        fi
 
1856
        ;;
 
1857
    esac
 
1858
 
 
1859
    if test -n "$USER_CXXFLAGS"; then
 
1860
       CXXFLAGS="$CXXFLAGS $USER_CXXFLAGS"
 
1861
    fi
 
1862
 
 
1863
      __val=$CXX
 
1864
  __forbid=" -fno-rtti -rpath "
 
1865
  if test -n "$__val"; then
 
1866
    __new=""
 
1867
    ac_save_IFS=$IFS
 
1868
    IFS="       "
 
1869
    for i in $__val; do
 
1870
      case "$__forbid" in
 
1871
        *" $i "*) echo "configure: warning: found forbidden $i in CXX, removing it" 1>&2 ;;
 
1872
        *) # Careful to not add spaces, where there were none, because otherwise
 
1873
           # libtool gets confused, if we change e.g. CXX
 
1874
           if test -z "$__new" ; then __new=$i ; else __new="$__new $i" ; fi ;;
 
1875
      esac
 
1876
    done
 
1877
    IFS=$ac_save_IFS
 
1878
    CXX=$__new
 
1879
  fi
 
1880
 
 
1881
  __val=$CXXFLAGS
 
1882
  __forbid=" -fno-rtti -rpath "
 
1883
  if test -n "$__val"; then
 
1884
    __new=""
 
1885
    ac_save_IFS=$IFS
 
1886
    IFS="       "
 
1887
    for i in $__val; do
 
1888
      case "$__forbid" in
 
1889
        *" $i "*) echo "configure: warning: found forbidden $i in CXXFLAGS, removing it" 1>&2 ;;
 
1890
        *) # Careful to not add spaces, where there were none, because otherwise
 
1891
           # libtool gets confused, if we change e.g. CXX
 
1892
           if test -z "$__new" ; then __new=$i ; else __new="$__new $i" ; fi ;;
 
1893
      esac
 
1894
    done
 
1895
    IFS=$ac_save_IFS
 
1896
    CXXFLAGS=$__new
 
1897
  fi
 
1898
 
 
1899
 
 
1900
 
 
1901
    echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
 
1902
echo "configure:1903: checking how to run the C++ preprocessor" >&5
 
1903
    if test -z "$CXXCPP"; then
 
1904
      if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
 
1905
  echo $ac_n "(cached) $ac_c" 1>&6
 
1906
else
 
1907
  
 
1908
                   ac_ext=C
 
1909
# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 
1910
ac_cpp='$CXXCPP $CPPFLAGS'
 
1911
ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
 
1912
ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
1913
cross_compiling=$ac_cv_prog_cxx_cross
 
1914
 
 
1915
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
1916
 
 
1917
         CXXCPP="${CXX-g++} -E"
 
1918
         cat > conftest.$ac_ext <<EOF
 
1919
#line 1920 "configure"
 
1920
#include "confdefs.h"
 
1921
#include <stdlib.h>
 
1922
EOF
 
1923
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
1924
{ (eval echo configure:1925: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
1925
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 
1926
if test -z "$ac_err"; then
 
1927
  :
 
1928
else
 
1929
  echo "$ac_err" >&5
 
1930
  echo "configure: failed program was:" >&5
 
1931
  cat conftest.$ac_ext >&5
 
1932
  rm -rf conftest*
 
1933
  CXXCPP=/lib/cpp
 
1934
fi
 
1935
rm -f conftest*
 
1936
         ac_cv_prog_CXXCPP="$CXXCPP"
 
1937
         ac_ext=c
 
1938
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 
1939
ac_cpp='$CPP $CPPFLAGS'
 
1940
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
 
1941
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
1942
cross_compiling=$ac_cv_prog_cc_cross
 
1943
     
 
1944
fi
 
1945
     CXXCPP="$ac_cv_prog_CXXCPP"
 
1946
    fi
 
1947
    echo "$ac_t""$CXXCPP" 1>&6
 
1948
    
 
1949
    # the following is to allow programs, that are known to
 
1950
    # have problems when compiled with -O2
 
1951
    if test -n "$CXXFLAGS"; then
 
1952
      kde_safe_IFS=$IFS
 
1953
      IFS=" "
 
1954
      NOOPT_CXXFLAGS=""
 
1955
      for i in $CXXFLAGS; do
 
1956
        case $i in
 
1957
          -O*)
 
1958
                ;;
 
1959
          *)
 
1960
                NOOPT_CXXFLAGS="$NOOPT_CXXFLAGS $i"
 
1961
                ;;
 
1962
        esac
 
1963
      done
 
1964
      IFS=$kde_safe_IFS
 
1965
    fi
 
1966
    
 
1967
 
 
1968
    
 
1969
  # Check whether --enable-final or --disable-final was given.
 
1970
if test "${enable_final+set}" = set; then
 
1971
  enableval="$enable_final"
 
1972
  kde_use_final=$enableval
 
1973
else
 
1974
  kde_use_final=no
 
1975
fi
 
1976
 
 
1977
 
 
1978
  
 
1979
  REPO=""
 
1980
  NOREPO=""
 
1981
 
 
1982
  
 
1983
 
 
1984
echo $ac_n "checking whether $CXX supports -frepo""... $ac_c" 1>&6
 
1985
echo "configure:1986: checking whether $CXX supports -frepo" >&5
 
1986
kde_cache=`echo frepo | sed 'y%.=/+-%___p_%'`
 
1987
if eval "test \"`echo '$''{'kde_cv_prog_cxx_$kde_cache'+set}'`\" = set"; then
 
1988
  echo $ac_n "(cached) $ac_c" 1>&6
 
1989
else
 
1990
  
 
1991
echo 'int main() { return 0; }' >conftest.cc
 
1992
eval "kde_cv_prog_cxx_$kde_cache=no"
 
1993
if test -z "`$CXX -frepo -c conftest.cc 2>&1`"; then
 
1994
  if test -z "`$CXX -frepo -o conftest conftest.o 2>&1`"; then
 
1995
    eval "kde_cv_prog_cxx_$kde_cache=yes"
 
1996
  fi
 
1997
fi
 
1998
rm -f conftest*
 
1999
 
 
2000
fi
 
2001
 
 
2002
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
 
2003
 echo "$ac_t""yes" 1>&6
 
2004
 :
 
2005
 
 
2006
     REPO="-frepo"
 
2007
     NOREPO="-fno-repo"
 
2008
   
 
2009
else
 
2010
 echo "$ac_t""no" 1>&6
 
2011
 :
 
2012
 
 
2013
fi
 
2014
 
 
2015
 
 
2016
  if test -z "$REPO"; then
 
2017
  
 
2018
 
 
2019
echo $ac_n "checking whether $CXX supports -instances=explicit""... $ac_c" 1>&6
 
2020
echo "configure:2021: checking whether $CXX supports -instances=explicit" >&5
 
2021
kde_cache=`echo instances=explicit | sed 'y%.=/+-%___p_%'`
 
2022
if eval "test \"`echo '$''{'kde_cv_prog_cxx_$kde_cache'+set}'`\" = set"; then
 
2023
  echo $ac_n "(cached) $ac_c" 1>&6
 
2024
else
 
2025
  
 
2026
echo 'int main() { return 0; }' >conftest.cc
 
2027
eval "kde_cv_prog_cxx_$kde_cache=no"
 
2028
if test -z "`$CXX -instances=explicit -c conftest.cc 2>&1`"; then
 
2029
  if test -z "`$CXX -instances=explicit -o conftest conftest.o 2>&1`"; then
 
2030
    eval "kde_cv_prog_cxx_$kde_cache=yes"
 
2031
  fi
 
2032
fi
 
2033
rm -f conftest*
 
2034
 
 
2035
fi
 
2036
 
 
2037
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
 
2038
 echo "$ac_t""yes" 1>&6
 
2039
 :
 
2040
 
 
2041
     REPO="-instances=explicit"
 
2042
     NOREPO="-instances=extern"
 
2043
  
 
2044
else
 
2045
 echo "$ac_t""no" 1>&6
 
2046
 :
 
2047
 
 
2048
fi
 
2049
 
 
2050
  fi
 
2051
 
 
2052
  if test -n "$REPO"; then
 
2053
     cat >> confdefs.h <<EOF
 
2054
#define HAVE_TEMPLATE_REPOSITORY 1
 
2055
EOF
 
2056
 
 
2057
     
 
2058
  fi
 
2059
 
 
2060
  
 
2061
  
 
2062
 
 
2063
  if test "x$kde_use_final" = "xyes"; then
 
2064
      KDE_USE_FINAL_TRUE=""
 
2065
      KDE_USE_FINAL_FALSE="#"
 
2066
   else
 
2067
      KDE_USE_FINAL_TRUE="#"
 
2068
      KDE_USE_FINAL_FALSE=""
 
2069
  fi
 
2070
  
 
2071
  
 
2072
 
 
2073
  # Check whether --enable-closure or --disable-closure was given.
 
2074
if test "${enable_closure+set}" = set; then
 
2075
  enableval="$enable_closure"
 
2076
  kde_use_closure=$enableval
 
2077
else
 
2078
  kde_use_closure=yes
 
2079
fi
 
2080
 
 
2081
 
 
2082
  if test "x$kde_use_closure" = "xyes"; then
 
2083
       KDE_USE_CLOSURE_TRUE=""
 
2084
       KDE_USE_CLOSURE_FALSE="#"
 
2085
#       CXXFLAGS="$CXXFLAGS $REPO"
 
2086
  else
 
2087
       KDE_USE_CLOSURE_TRUE="#"
 
2088
       KDE_USE_CLOSURE_FALSE=""
 
2089
  fi
 
2090
  
 
2091
  
 
2092
 
 
2093
 
 
2094
    
 
2095
 
 
2096
    KDE_CXXFLAGS=
 
2097
    
 
2098
 
 
2099
# Check whether --enable-shared or --disable-shared was given.
 
2100
if test "${enable_shared+set}" = set; then
 
2101
  enableval="$enable_shared"
 
2102
  p=${PACKAGE-default}
 
2103
case "$enableval" in
 
2104
yes) enable_shared=yes ;;
 
2105
no) enable_shared=no ;;
 
2106
*)
 
2107
  enable_shared=no
 
2108
  # Look at the argument we got.  We use all the common list separators.
 
2109
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
 
2110
  for pkg in $enableval; do
 
2111
    if test "X$pkg" = "X$p"; then
 
2112
      enable_shared=yes
 
2113
    fi
 
2114
  done
 
2115
  IFS="$ac_save_ifs"
 
2116
  ;;
 
2117
esac
 
2118
else
 
2119
  enable_shared=yes
 
2120
fi
 
2121
 
 
2122
# Check whether --enable-static or --disable-static was given.
 
2123
if test "${enable_static+set}" = set; then
 
2124
  enableval="$enable_static"
 
2125
  p=${PACKAGE-default}
 
2126
case "$enableval" in
 
2127
yes) enable_static=yes ;;
 
2128
no) enable_static=no ;;
 
2129
*)
 
2130
  enable_static=no
 
2131
  # Look at the argument we got.  We use all the common list separators.
 
2132
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
 
2133
  for pkg in $enableval; do
 
2134
    if test "X$pkg" = "X$p"; then
 
2135
      enable_static=yes
 
2136
    fi
 
2137
  done
 
2138
  IFS="$ac_save_ifs"
 
2139
  ;;
 
2140
esac
 
2141
else
 
2142
  enable_static=no
 
2143
fi
 
2144
 
 
2145
# Check whether --enable-fast-install or --disable-fast-install was given.
 
2146
if test "${enable_fast_install+set}" = set; then
 
2147
  enableval="$enable_fast_install"
 
2148
  p=${PACKAGE-default}
 
2149
case "$enableval" in
 
2150
yes) enable_fast_install=yes ;;
 
2151
no) enable_fast_install=no ;;
 
2152
*)
 
2153
  enable_fast_install=no
 
2154
  # Look at the argument we got.  We use all the common list separators.
 
2155
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
 
2156
  for pkg in $enableval; do
 
2157
    if test "X$pkg" = "X$p"; then
 
2158
      enable_fast_install=yes
 
2159
    fi
 
2160
  done
 
2161
  IFS="$ac_save_ifs"
 
2162
  ;;
 
2163
esac
 
2164
else
 
2165
  enable_fast_install=yes
 
2166
fi
 
2167
 
 
2168
# Check whether --with-gnu-ld or --without-gnu-ld was given.
 
2169
if test "${with_gnu_ld+set}" = set; then
 
2170
  withval="$with_gnu_ld"
 
2171
  test "$withval" = no || with_gnu_ld=yes
 
2172
else
 
2173
  with_gnu_ld=no
 
2174
fi
 
2175
 
 
2176
ac_prog=ld
 
2177
if test "$GCC" = yes; then
 
2178
  # Check if gcc -print-prog-name=ld gives a path.
 
2179
  echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
 
2180
echo "configure:2181: checking for ld used by GCC" >&5
 
2181
  case $host in
 
2182
  *-*-mingw*)
 
2183
    # gcc leaves a trailing carriage return which upsets mingw
 
2184
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
2185
  *)
 
2186
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
2187
  esac
 
2188
  case "$ac_prog" in
 
2189
    # Accept absolute paths.
 
2190
    [\\/]* | [A-Za-z]:[\\/]*)
 
2191
      re_direlt='/[^/][^/]*/\.\./'
 
2192
      # Canonicalize the path of ld
 
2193
      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
 
2194
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
2195
        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
 
2196
      done
 
2197
      test -z "$LD" && LD="$ac_prog"
 
2198
      ;;
 
2199
  "")
 
2200
    # If it fails, then pretend we aren't using GCC.
 
2201
    ac_prog=ld
 
2202
    ;;
 
2203
  *)
 
2204
    # If it is relative, then search for the first ld in PATH.
 
2205
    with_gnu_ld=unknown
 
2206
    ;;
 
2207
  esac
 
2208
elif test "$with_gnu_ld" = yes; then
 
2209
  echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
 
2210
echo "configure:2211: checking for GNU ld" >&5
 
2211
else
 
2212
  echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
 
2213
echo "configure:2214: checking for non-GNU ld" >&5
 
2214
fi
 
2215
if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
 
2216
  echo $ac_n "(cached) $ac_c" 1>&6
 
2217
else
 
2218
  if test -z "$LD"; then
 
2219
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
 
2220
  for ac_dir in $PATH; do
 
2221
    test -z "$ac_dir" && ac_dir=.
 
2222
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
2223
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
2224
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
2225
      # but apparently some GNU ld's only accept -v.
 
2226
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
2227
      if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
 
2228
        test "$with_gnu_ld" != no && break
 
2229
      else
 
2230
        test "$with_gnu_ld" != yes && break
 
2231
      fi
 
2232
    fi
 
2233
  done
 
2234
  IFS="$ac_save_ifs"
 
2235
else
 
2236
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
2237
fi
 
2238
fi
 
2239
 
 
2240
LD="$lt_cv_path_LD"
 
2241
if test -n "$LD"; then
 
2242
  echo "$ac_t""$LD" 1>&6
 
2243
else
 
2244
  echo "$ac_t""no" 1>&6
 
2245
fi
 
2246
test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
 
2247
echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
 
2248
echo "configure:2249: checking if the linker ($LD) is GNU ld" >&5
 
2249
if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
 
2250
  echo $ac_n "(cached) $ac_c" 1>&6
 
2251
else
 
2252
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
2253
if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
 
2254
  lt_cv_prog_gnu_ld=yes
 
2255
else
 
2256
  lt_cv_prog_gnu_ld=no
 
2257
fi
 
2258
fi
 
2259
 
 
2260
echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
 
2261
with_gnu_ld=$lt_cv_prog_gnu_ld
 
2262
 
 
2263
 
 
2264
echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
 
2265
echo "configure:2266: checking for $LD option to reload object files" >&5
 
2266
if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
 
2267
  echo $ac_n "(cached) $ac_c" 1>&6
 
2268
else
 
2269
  lt_cv_ld_reload_flag='-r'
 
2270
fi
 
2271
 
 
2272
echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
 
2273
reload_flag=$lt_cv_ld_reload_flag
 
2274
test -n "$reload_flag" && reload_flag=" $reload_flag"
 
2275
 
 
2276
echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
 
2277
echo "configure:2278: checking for BSD-compatible nm" >&5
 
2278
if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
 
2279
  echo $ac_n "(cached) $ac_c" 1>&6
 
2280
else
 
2281
  if test -n "$NM"; then
 
2282
  # Let the user override the test.
 
2283
  lt_cv_path_NM="$NM"
 
2284
else
 
2285
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
 
2286
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
 
2287
    test -z "$ac_dir" && ac_dir=.
 
2288
    tmp_nm=$ac_dir/${ac_tool_prefix}nm
 
2289
    if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
 
2290
      # Check to see if the nm accepts a BSD-compat flag.
 
2291
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
2292
      #   nm: unknown option "B" ignored
 
2293
      # Tru64's nm complains that /dev/null is an invalid object file
 
2294
      if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
 
2295
        lt_cv_path_NM="$tmp_nm -B"
 
2296
        break
 
2297
      elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
 
2298
        lt_cv_path_NM="$tmp_nm -p"
 
2299
        break
 
2300
      else
 
2301
        lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
2302
        continue # so that we can try to find one that supports BSD flags
 
2303
      fi
 
2304
    fi
 
2305
  done
 
2306
  IFS="$ac_save_ifs"
 
2307
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
 
2308
fi
 
2309
fi
 
2310
 
 
2311
NM="$lt_cv_path_NM"
 
2312
echo "$ac_t""$NM" 1>&6
 
2313
 
 
2314
echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
 
2315
echo "configure:2316: checking whether ln -s works" >&5
 
2316
if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
 
2317
  echo $ac_n "(cached) $ac_c" 1>&6
 
2318
else
 
2319
  rm -f conftestdata
 
2320
if ln -s X conftestdata 2>/dev/null
 
2321
then
 
2322
  rm -f conftestdata
 
2323
  ac_cv_prog_LN_S="ln -s"
 
2324
else
 
2325
  ac_cv_prog_LN_S=ln
 
2326
fi
 
2327
fi
 
2328
LN_S="$ac_cv_prog_LN_S"
 
2329
if test "$ac_cv_prog_LN_S" = "ln -s"; then
 
2330
  echo "$ac_t""yes" 1>&6
 
2331
else
 
2332
  echo "$ac_t""no" 1>&6
 
2333
fi
 
2334
 
 
2335
echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
 
2336
echo "configure:2337: checking how to recognise dependant libraries" >&5
 
2337
if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
 
2338
  echo $ac_n "(cached) $ac_c" 1>&6
 
2339
else
 
2340
  lt_cv_file_magic_cmd='$MAGIC_CMD'
 
2341
lt_cv_file_magic_test_file=
 
2342
lt_cv_deplibs_check_method='unknown'
 
2343
# Need to set the preceding variable on all platforms that support
 
2344
# interlibrary dependencies.
 
2345
# 'none' -- dependencies not supported.
 
2346
# `unknown' -- same as none, but documents that we really don't know.
 
2347
# 'pass_all' -- all dependencies passed with no checks.
 
2348
# 'test_compile' -- check by making test program.
 
2349
# 'file_magic [regex]' -- check by looking for files in library path
 
2350
# which responds to the $file_magic_cmd with a given egrep regex.
 
2351
# If you have `file' or equivalent on your system and you're not sure
 
2352
# whether `pass_all' will *always* work, you probably want this one.
 
2353
 
 
2354
case "$host_os" in
 
2355
aix4*)
 
2356
  lt_cv_deplibs_check_method=pass_all
 
2357
  ;;
 
2358
 
 
2359
beos*)
 
2360
  lt_cv_deplibs_check_method=pass_all
 
2361
  ;;
 
2362
 
 
2363
bsdi4*)
 
2364
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
 
2365
    lt_cv_file_magic_cmd='/usr/bin/file -L'
 
2366
  lt_cv_file_magic_test_file=/shlib/libc.so
 
2367
  ;;
 
2368
 
 
2369
cygwin* | mingw* |pw32*)
 
2370
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
2371
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
2372
  ;;
 
2373
 
 
2374
darwin* | rhapsody*)
 
2375
  lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
 
2376
  lt_cv_file_magic_cmd=/usr/bin/file
 
2377
  lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
 
2378
  ;;
 
2379
 
 
2380
freebsd* )
 
2381
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
2382
    case "$host_cpu" in
 
2383
    i*86 )
 
2384
      # Not sure whether the presence of OpenBSD here was a mistake.
 
2385
      # Let's accept both of them until this is cleared up.
 
2386
            lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
 
2387
            lt_cv_file_magic_cmd=/usr/bin/file
 
2388
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
2389
      ;;
 
2390
    esac
 
2391
  else
 
2392
    lt_cv_deplibs_check_method=pass_all
 
2393
  fi
 
2394
  ;;
 
2395
 
 
2396
gnu*)
 
2397
  lt_cv_deplibs_check_method=pass_all
 
2398
  ;;
 
2399
 
 
2400
hpux10.20*|hpux11*)
 
2401
  # TODO:  Does this work for hpux-11 too?
 
2402
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
 
2403
    lt_cv_file_magic_cmd=/usr/bin/file
 
2404
  lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
2405
  ;;
 
2406
 
 
2407
irix5* | irix6*)
 
2408
  case "$host_os" in
 
2409
  irix5*)
 
2410
    # this will be overridden with pass_all, but let us keep it just in case
 
2411
    lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
 
2412
    ;;
 
2413
  *)
 
2414
    case "$LD" in
 
2415
    *-32|*"-32 ") libmagic=32-bit;;
 
2416
    *-n32|*"-n32 ") libmagic=N32;;
 
2417
    *-64|*"-64 ") libmagic=64-bit;;
 
2418
    *) libmagic=never-match;;
 
2419
    esac
 
2420
    # this will be overridden with pass_all, but let us keep it just in case
 
2421
        lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
 
2422
        ;;
 
2423
  esac
 
2424
  lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
 
2425
  lt_cv_deplibs_check_method=pass_all
 
2426
  ;;
 
2427
 
 
2428
# This must be Linux ELF.
 
2429
linux-gnu*)
 
2430
  case "$host_cpu" in
 
2431
  alpha* | i*86 | powerpc* | sparc* | ia64* | s390* )
 
2432
    lt_cv_deplibs_check_method=pass_all ;;
 
2433
  *)
 
2434
    # glibc up to 2.1.1 does not perform some relocations on ARM
 
2435
        lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
 
2436
      esac
 
2437
  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
 
2438
  ;;
 
2439
 
 
2440
netbsd*)
 
2441
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
2442
    lt_cv_deplibs_check_method='file_magic NetBSD/[a-z0-9]* demand paged shared library'
 
2443
  else
 
2444
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
 
2445
  fi
 
2446
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
2447
  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 
2448
  ;;
 
2449
 
 
2450
openbsd* )
 
2451
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
2452
    case "$host_cpu" in
 
2453
    i*86 )
 
2454
            lt_cv_deplibs_check_method='file_magic OpenBSD/i[3-9]86 demand paged shared library'
 
2455
            lt_cv_file_magic_cmd=/usr/bin/file
 
2456
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
2457
      ;;
 
2458
    esac
 
2459
  else
 
2460
    lt_cv_deplibs_check_method=pass_all
 
2461
  fi
 
2462
  ;;
 
2463
 
 
2464
newsos6)
 
2465
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
 
2466
  lt_cv_file_magic_cmd=/usr/bin/file
 
2467
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
 
2468
  ;;
 
2469
 
 
2470
osf3* | osf4* | osf5*)
 
2471
  # this will be overridden with pass_all, but let us keep it just in case
 
2472
  lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
 
2473
  lt_cv_file_magic_test_file=/shlib/libc.so
 
2474
  lt_cv_deplibs_check_method=pass_all
 
2475
  ;;
 
2476
 
 
2477
sco3.2v5*)
 
2478
  lt_cv_deplibs_check_method=pass_all
 
2479
  ;;
 
2480
 
 
2481
solaris*)
 
2482
  lt_cv_deplibs_check_method=pass_all
 
2483
  lt_cv_file_magic_test_file=/lib/libc.so
 
2484
  ;;
 
2485
 
 
2486
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
2487
  case "$host_vendor" in
 
2488
  ncr)
 
2489
    lt_cv_deplibs_check_method=pass_all
 
2490
    ;;
 
2491
  motorola)
 
2492
        lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
 
2493
        lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 
2494
    ;;
 
2495
  esac
 
2496
  ;;
 
2497
esac
 
2498
 
 
2499
fi
 
2500
 
 
2501
echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
 
2502
file_magic_cmd=$lt_cv_file_magic_cmd
 
2503
deplibs_check_method=$lt_cv_deplibs_check_method
 
2504
 
 
2505
if test $host != $build; then
 
2506
  ac_tool_prefix=${host_alias}-
 
2507
else
 
2508
  ac_tool_prefix=
 
2509
fi
 
2510
 
 
2511
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
 
2512
 
 
2513
# Only perform the check for file, if the check method requires it
 
2514
case "$deplibs_check_method" in
 
2515
file_magic*)
 
2516
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
2517
    echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
 
2518
echo "configure:2519: checking for ${ac_tool_prefix}file" >&5
 
2519
if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
 
2520
  echo $ac_n "(cached) $ac_c" 1>&6
 
2521
else
 
2522
  case "$MAGIC_CMD" in
 
2523
  /*)
 
2524
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
2525
  ;;
 
2526
  ?:/*)
 
2527
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
 
2528
  ;;
 
2529
  *)
 
2530
  ac_save_MAGIC_CMD="$MAGIC_CMD"
 
2531
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
2532
  ac_dummy="/usr/bin:$PATH"
 
2533
  for ac_dir in $ac_dummy; do
 
2534
    test -z "$ac_dir" && ac_dir=.
 
2535
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
2536
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
2537
      if test -n "$file_magic_test_file"; then
 
2538
        case "$deplibs_check_method" in
 
2539
        "file_magic "*)
 
2540
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
2541
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
2542
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
2543
            egrep "$file_magic_regex" > /dev/null; then
 
2544
            :
 
2545
          else
 
2546
            cat <<EOF 1>&2
 
2547
 
 
2548
*** Warning: the command libtool uses to detect shared libraries,
 
2549
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
2550
*** The result is that libtool may fail to recognize shared libraries
 
2551
*** as such.  This will affect the creation of libtool libraries that
 
2552
*** depend on shared libraries, but programs linked with such libtool
 
2553
*** libraries will work regardless of this problem.  Nevertheless, you
 
2554
*** may want to report the problem to your system manager and/or to
 
2555
*** bug-libtool@gnu.org
 
2556
 
 
2557
EOF
 
2558
          fi ;;
 
2559
        esac
 
2560
      fi
 
2561
      break
 
2562
    fi
 
2563
  done
 
2564
  IFS="$ac_save_ifs"
 
2565
  MAGIC_CMD="$ac_save_MAGIC_CMD"
 
2566
  ;;
 
2567
esac
 
2568
fi
 
2569
 
 
2570
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
2571
if test -n "$MAGIC_CMD"; then
 
2572
  echo "$ac_t""$MAGIC_CMD" 1>&6
 
2573
else
 
2574
  echo "$ac_t""no" 1>&6
 
2575
fi
 
2576
 
 
2577
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
2578
  if test -n "$ac_tool_prefix"; then
 
2579
    echo $ac_n "checking for file""... $ac_c" 1>&6
 
2580
echo "configure:2581: checking for file" >&5
 
2581
if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
 
2582
  echo $ac_n "(cached) $ac_c" 1>&6
 
2583
else
 
2584
  case "$MAGIC_CMD" in
 
2585
  /*)
 
2586
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
2587
  ;;
 
2588
  ?:/*)
 
2589
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
 
2590
  ;;
 
2591
  *)
 
2592
  ac_save_MAGIC_CMD="$MAGIC_CMD"
 
2593
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
2594
  ac_dummy="/usr/bin:$PATH"
 
2595
  for ac_dir in $ac_dummy; do
 
2596
    test -z "$ac_dir" && ac_dir=.
 
2597
    if test -f $ac_dir/file; then
 
2598
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
2599
      if test -n "$file_magic_test_file"; then
 
2600
        case "$deplibs_check_method" in
 
2601
        "file_magic "*)
 
2602
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
2603
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
2604
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
2605
            egrep "$file_magic_regex" > /dev/null; then
 
2606
            :
 
2607
          else
 
2608
            cat <<EOF 1>&2
 
2609
 
 
2610
*** Warning: the command libtool uses to detect shared libraries,
 
2611
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
2612
*** The result is that libtool may fail to recognize shared libraries
 
2613
*** as such.  This will affect the creation of libtool libraries that
 
2614
*** depend on shared libraries, but programs linked with such libtool
 
2615
*** libraries will work regardless of this problem.  Nevertheless, you
 
2616
*** may want to report the problem to your system manager and/or to
 
2617
*** bug-libtool@gnu.org
 
2618
 
 
2619
EOF
 
2620
          fi ;;
 
2621
        esac
 
2622
      fi
 
2623
      break
 
2624
    fi
 
2625
  done
 
2626
  IFS="$ac_save_ifs"
 
2627
  MAGIC_CMD="$ac_save_MAGIC_CMD"
 
2628
  ;;
 
2629
esac
 
2630
fi
 
2631
 
 
2632
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
2633
if test -n "$MAGIC_CMD"; then
 
2634
  echo "$ac_t""$MAGIC_CMD" 1>&6
 
2635
else
 
2636
  echo "$ac_t""no" 1>&6
 
2637
fi
 
2638
 
 
2639
  else
 
2640
    MAGIC_CMD=:
 
2641
  fi
 
2642
fi
 
2643
 
 
2644
  fi
 
2645
  ;;
 
2646
esac
 
2647
 
 
2648
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
2649
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
2650
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
2651
echo "configure:2652: checking for $ac_word" >&5
 
2652
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
 
2653
  echo $ac_n "(cached) $ac_c" 1>&6
 
2654
else
 
2655
  if test -n "$RANLIB"; then
 
2656
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
2657
else
 
2658
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
2659
  ac_dummy="$PATH"
 
2660
  for ac_dir in $ac_dummy; do
 
2661
    test -z "$ac_dir" && ac_dir=.
 
2662
    if test -f $ac_dir/$ac_word; then
 
2663
      ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
2664
      break
 
2665
    fi
 
2666
  done
 
2667
  IFS="$ac_save_ifs"
 
2668
fi
 
2669
fi
 
2670
RANLIB="$ac_cv_prog_RANLIB"
 
2671
if test -n "$RANLIB"; then
 
2672
  echo "$ac_t""$RANLIB" 1>&6
 
2673
else
 
2674
  echo "$ac_t""no" 1>&6
 
2675
fi
 
2676
 
 
2677
 
 
2678
if test -z "$ac_cv_prog_RANLIB"; then
 
2679
if test -n "$ac_tool_prefix"; then
 
2680
  # Extract the first word of "ranlib", so it can be a program name with args.
 
2681
set dummy ranlib; ac_word=$2
 
2682
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
2683
echo "configure:2684: checking for $ac_word" >&5
 
2684
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
 
2685
  echo $ac_n "(cached) $ac_c" 1>&6
 
2686
else
 
2687
  if test -n "$RANLIB"; then
 
2688
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
2689
else
 
2690
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
2691
  ac_dummy="$PATH"
 
2692
  for ac_dir in $ac_dummy; do
 
2693
    test -z "$ac_dir" && ac_dir=.
 
2694
    if test -f $ac_dir/$ac_word; then
 
2695
      ac_cv_prog_RANLIB="ranlib"
 
2696
      break
 
2697
    fi
 
2698
  done
 
2699
  IFS="$ac_save_ifs"
 
2700
  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
 
2701
fi
 
2702
fi
 
2703
RANLIB="$ac_cv_prog_RANLIB"
 
2704
if test -n "$RANLIB"; then
 
2705
  echo "$ac_t""$RANLIB" 1>&6
 
2706
else
 
2707
  echo "$ac_t""no" 1>&6
 
2708
fi
 
2709
 
 
2710
else
 
2711
  RANLIB=":"
 
2712
fi
 
2713
fi
 
2714
 
 
2715
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
2716
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
2717
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
2718
echo "configure:2719: checking for $ac_word" >&5
 
2719
if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
 
2720
  echo $ac_n "(cached) $ac_c" 1>&6
 
2721
else
 
2722
  if test -n "$STRIP"; then
 
2723
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
2724
else
 
2725
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
2726
  ac_dummy="$PATH"
 
2727
  for ac_dir in $ac_dummy; do
 
2728
    test -z "$ac_dir" && ac_dir=.
 
2729
    if test -f $ac_dir/$ac_word; then
 
2730
      ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
2731
      break
 
2732
    fi
 
2733
  done
 
2734
  IFS="$ac_save_ifs"
 
2735
fi
 
2736
fi
 
2737
STRIP="$ac_cv_prog_STRIP"
 
2738
if test -n "$STRIP"; then
 
2739
  echo "$ac_t""$STRIP" 1>&6
 
2740
else
 
2741
  echo "$ac_t""no" 1>&6
 
2742
fi
 
2743
 
 
2744
 
 
2745
if test -z "$ac_cv_prog_STRIP"; then
 
2746
if test -n "$ac_tool_prefix"; then
 
2747
  # Extract the first word of "strip", so it can be a program name with args.
 
2748
set dummy strip; ac_word=$2
 
2749
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
2750
echo "configure:2751: checking for $ac_word" >&5
 
2751
if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
 
2752
  echo $ac_n "(cached) $ac_c" 1>&6
 
2753
else
 
2754
  if test -n "$STRIP"; then
 
2755
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
2756
else
 
2757
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
2758
  ac_dummy="$PATH"
 
2759
  for ac_dir in $ac_dummy; do
 
2760
    test -z "$ac_dir" && ac_dir=.
 
2761
    if test -f $ac_dir/$ac_word; then
 
2762
      ac_cv_prog_STRIP="strip"
 
2763
      break
 
2764
    fi
 
2765
  done
 
2766
  IFS="$ac_save_ifs"
 
2767
  test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
 
2768
fi
 
2769
fi
 
2770
STRIP="$ac_cv_prog_STRIP"
 
2771
if test -n "$STRIP"; then
 
2772
  echo "$ac_t""$STRIP" 1>&6
 
2773
else
 
2774
  echo "$ac_t""no" 1>&6
 
2775
fi
 
2776
 
 
2777
else
 
2778
  STRIP=":"
 
2779
fi
 
2780
fi
 
2781
 
 
2782
 
 
2783
# Check for any special flags to pass to ltconfig.
 
2784
libtool_flags="--cache-file=$cache_file"
 
2785
test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
 
2786
test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
 
2787
test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
 
2788
test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc"
 
2789
test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
 
2790
libtool_flags="$libtool_flags --enable-dlopen"
 
2791
 
 
2792
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
 
2793
if test "${enable_libtool_lock+set}" = set; then
 
2794
  enableval="$enable_libtool_lock"
 
2795
  :
 
2796
fi
 
2797
 
 
2798
test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
 
2799
test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
 
2800
 
 
2801
# Check whether --with-pic or --without-pic was given.
 
2802
if test "${with_pic+set}" = set; then
 
2803
  withval="$with_pic"
 
2804
  pic_mode="$withval"
 
2805
else
 
2806
  pic_mode=default
 
2807
fi
 
2808
 
 
2809
test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
 
2810
test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
 
2811
 
 
2812
# Some flags need to be propagated to the compiler or linker for good
 
2813
# libtool support.
 
2814
case "$host" in
 
2815
*-*-irix6*)
 
2816
  # Find out which ABI we are using.
 
2817
  echo '#line 2818 "configure"' > conftest.$ac_ext
 
2818
  if { (eval echo configure:2819: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
2819
    case "`/usr/bin/file conftest.$ac_objext`" in
 
2820
    *32-bit*)
 
2821
      LD="${LD-ld} -32"
 
2822
      ;;
 
2823
    *N32*)
 
2824
      LD="${LD-ld} -n32"
 
2825
      ;;
 
2826
    *64-bit*)
 
2827
      LD="${LD-ld} -64"
 
2828
      ;;
 
2829
    esac
 
2830
  fi
 
2831
  rm -rf conftest*
 
2832
  ;;
 
2833
 
 
2834
*-*-sco3.2v5*)
 
2835
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
2836
  SAVE_CFLAGS="$CFLAGS"
 
2837
  CFLAGS="$CFLAGS -belf"
 
2838
  echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
 
2839
echo "configure:2840: checking whether the C compiler needs -belf" >&5
 
2840
if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
 
2841
  echo $ac_n "(cached) $ac_c" 1>&6
 
2842
else
 
2843
  
 
2844
     ac_ext=c
 
2845
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 
2846
ac_cpp='$CPP $CPPFLAGS'
 
2847
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
 
2848
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
2849
cross_compiling=$ac_cv_prog_cc_cross
 
2850
 
 
2851
     cat > conftest.$ac_ext <<EOF
 
2852
#line 2853 "configure"
 
2853
#include "confdefs.h"
 
2854
 
 
2855
int main() {
 
2856
 
 
2857
; return 0; }
 
2858
EOF
 
2859
if { (eval echo configure:2860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
2860
  rm -rf conftest*
 
2861
  lt_cv_cc_needs_belf=yes
 
2862
else
 
2863
  echo "configure: failed program was:" >&5
 
2864
  cat conftest.$ac_ext >&5
 
2865
  rm -rf conftest*
 
2866
  lt_cv_cc_needs_belf=no
 
2867
fi
 
2868
rm -f conftest*
 
2869
     ac_ext=c
 
2870
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 
2871
ac_cpp='$CPP $CPPFLAGS'
 
2872
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
 
2873
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
2874
cross_compiling=$ac_cv_prog_cc_cross
 
2875
 
 
2876
fi
 
2877
 
 
2878
echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
 
2879
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
2880
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
2881
    CFLAGS="$SAVE_CFLAGS"
 
2882
  fi
 
2883
  ;;
 
2884
 
 
2885
 
 
2886
esac
 
2887
 
 
2888
 
 
2889
echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
 
2890
echo "configure:2891: checking for Cygwin environment" >&5
 
2891
if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
 
2892
  echo $ac_n "(cached) $ac_c" 1>&6
 
2893
else
 
2894
  cat > conftest.$ac_ext <<EOF
 
2895
#line 2896 "configure"
 
2896
#include "confdefs.h"
 
2897
 
 
2898
int main() {
 
2899
 
 
2900
#ifndef __CYGWIN__
 
2901
#define __CYGWIN__ __CYGWIN32__
 
2902
#endif
 
2903
return __CYGWIN__;
 
2904
; return 0; }
 
2905
EOF
 
2906
if { (eval echo configure:2907: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
2907
  rm -rf conftest*
 
2908
  ac_cv_cygwin=yes
 
2909
else
 
2910
  echo "configure: failed program was:" >&5
 
2911
  cat conftest.$ac_ext >&5
 
2912
  rm -rf conftest*
 
2913
  ac_cv_cygwin=no
 
2914
fi
 
2915
rm -f conftest*
 
2916
rm -f conftest*
 
2917
fi
 
2918
 
 
2919
echo "$ac_t""$ac_cv_cygwin" 1>&6
 
2920
CYGWIN=
 
2921
test "$ac_cv_cygwin" = yes && CYGWIN=yes
 
2922
echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
 
2923
echo "configure:2924: checking for mingw32 environment" >&5
 
2924
if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
 
2925
  echo $ac_n "(cached) $ac_c" 1>&6
 
2926
else
 
2927
  cat > conftest.$ac_ext <<EOF
 
2928
#line 2929 "configure"
 
2929
#include "confdefs.h"
 
2930
 
 
2931
int main() {
 
2932
return __MINGW32__;
 
2933
; return 0; }
 
2934
EOF
 
2935
if { (eval echo configure:2936: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
2936
  rm -rf conftest*
 
2937
  ac_cv_mingw32=yes
 
2938
else
 
2939
  echo "configure: failed program was:" >&5
 
2940
  cat conftest.$ac_ext >&5
 
2941
  rm -rf conftest*
 
2942
  ac_cv_mingw32=no
 
2943
fi
 
2944
rm -f conftest*
 
2945
rm -f conftest*
 
2946
fi
 
2947
 
 
2948
echo "$ac_t""$ac_cv_mingw32" 1>&6
 
2949
MINGW32=
 
2950
test "$ac_cv_mingw32" = yes && MINGW32=yes
 
2951
 
 
2952
# Save cache, so that ltconfig can load it
 
2953
cat > confcache <<\EOF
 
2954
# This file is a shell script that caches the results of configure
 
2955
# tests run on this system so they can be shared between configure
 
2956
# scripts and configure runs.  It is not useful on other systems.
 
2957
# If it contains results you don't want to keep, you may remove or edit it.
 
2958
#
 
2959
# By default, configure uses ./config.cache as the cache file,
 
2960
# creating it if it does not exist already.  You can give configure
 
2961
# the --cache-file=FILE option to use a different cache file; that is
 
2962
# what configure does when it calls configure scripts in
 
2963
# subdirectories, so they share the cache.
 
2964
# Giving --cache-file=/dev/null disables caching, for debugging configure.
 
2965
# config.status only pays attention to the cache file if you give it the
 
2966
# --recheck option to rerun configure.
 
2967
#
 
2968
EOF
 
2969
# The following way of writing the cache mishandles newlines in values,
 
2970
# but we know of no workaround that is simple, portable, and efficient.
 
2971
# So, don't put newlines in cache variables' values.
 
2972
# Ultrix sh set writes to stderr and can't be redirected directly,
 
2973
# and sets the high bit in the cache file unless we assign to the vars.
 
2974
(set) 2>&1 |
 
2975
  case `(ac_space=' '; set | grep ac_space) 2>&1` in
 
2976
  *ac_space=\ *)
 
2977
    # `set' does not quote correctly, so add quotes (double-quote substitution
 
2978
    # turns \\\\ into \\, and sed turns \\ into \).
 
2979
    sed -n \
 
2980
      -e "s/'/'\\\\''/g" \
 
2981
      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
 
2982
    ;;
 
2983
  *)
 
2984
    # `set' quotes correctly as required by POSIX, so do not add quotes.
 
2985
    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
 
2986
    ;;
 
2987
  esac >> confcache
 
2988
if cmp -s $cache_file confcache; then
 
2989
  :
 
2990
else
 
2991
  if test -w $cache_file; then
 
2992
    echo "updating cache $cache_file"
 
2993
    cat confcache > $cache_file
 
2994
  else
 
2995
    echo "not updating unwritable cache $cache_file"
 
2996
  fi
 
2997
fi
 
2998
rm -f confcache
 
2999
 
 
3000
 
 
3001
# Actually configure libtool.  ac_aux_dir is where install-sh is found.
 
3002
AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
 
3003
MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
 
3004
LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
 
3005
AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
 
3006
objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
 
3007
deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
 
3008
${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
 
3009
$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
 
3010
|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
 
3011
 
 
3012
# Reload cache, that may have been modified by ltconfig
 
3013
if test -r "$cache_file"; then
 
3014
  echo "loading cache $cache_file"
 
3015
  . $cache_file
 
3016
else
 
3017
  echo "creating cache $cache_file"
 
3018
  > $cache_file
 
3019
fi
 
3020
 
 
3021
 
 
3022
# This can be used to rebuild libtool when needed
 
3023
LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
 
3024
 
 
3025
# Always use our own libtool.
 
3026
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
3027
 
 
3028
# Redirect the config.log output again, so that the ltconfig log is not
 
3029
# clobbered by the next message.
 
3030
exec 5>>./config.log
 
3031
 
 
3032
 
 
3033
 
 
3034
LIBTOOL_DEPS=$LIBTOOL_DEPS" $ac_aux_dir/ltcf-cxx.sh"
 
3035
lt_save_CC="$CC"
 
3036
lt_save_CFLAGS="$CFLAGS"
 
3037
AR="$AR" LTCC="$CC" CC="$CXX" CXX="$CXX" CFLAGS="$CXXFLAGS" CPPFLAGS="$CPPFLAGS" \
 
3038
MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
 
3039
LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
 
3040
AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
 
3041
objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
 
3042
deplibs_check_method="$deplibs_check_method" \
 
3043
file_magic_cmd="$file_magic_cmd" \
 
3044
${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig -o libtool $libtool_flags \
 
3045
--build="$build" --add-tag=CXX $ac_aux_dir/ltcf-cxx.sh $host \
 
3046
|| { echo "configure: error: libtool tag configuration failed" 1>&2; exit 1; }
 
3047
CC="$lt_save_CC"
 
3048
CFLAGS="$lt_save_CFLAGS"
 
3049
 
 
3050
# Redirect the config.log output again, so that the ltconfig log is not
 
3051
# clobbered by the next message.
 
3052
exec 5>>./config.log
 
3053
 
 
3054
 
 
3055
 
 
3056
 
 
3057
 
 
3058
 
 
3059
 
 
3060
 
 
3061
 
 
3062
ac_ext=c
 
3063
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 
3064
ac_cpp='$CPP $CPPFLAGS'
 
3065
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
 
3066
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
3067
cross_compiling=$ac_cv_prog_cc_cross
 
3068
 
 
3069
echo $ac_n "checking for object suffix""... $ac_c" 1>&6
 
3070
echo "configure:3071: checking for object suffix" >&5
 
3071
if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
 
3072
  echo $ac_n "(cached) $ac_c" 1>&6
 
3073
else
 
3074
  rm -f conftest*
 
3075
echo 'int i = 1;' > conftest.$ac_ext
 
3076
if { (eval echo configure:3077: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
3077
  for ac_file in conftest.*; do
 
3078
    case $ac_file in
 
3079
    *.c) ;;
 
3080
    *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
 
3081
    esac
 
3082
  done
 
3083
else
 
3084
  { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
 
3085
fi
 
3086
rm -f conftest*
 
3087
fi
 
3088
 
 
3089
echo "$ac_t""$ac_cv_objext" 1>&6
 
3090
OBJEXT=$ac_cv_objext
 
3091
ac_objext=$ac_cv_objext
 
3092
 
 
3093
 
 
3094
 
 
3095
echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
 
3096
echo "configure:3097: checking for executable suffix" >&5
 
3097
if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
 
3098
  echo $ac_n "(cached) $ac_c" 1>&6
 
3099
else
 
3100
  if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
 
3101
  ac_cv_exeext=.exe
 
3102
else
 
3103
  rm -f conftest*
 
3104
  echo 'int main () { return 0; }' > conftest.$ac_ext
 
3105
  ac_cv_exeext=
 
3106
  if { (eval echo configure:3107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
 
3107
    for file in conftest.*; do
 
3108
      case $file in
 
3109
      *.c | *.o | *.obj) ;;
 
3110
      *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
 
3111
      esac
 
3112
    done
 
3113
  else
 
3114
    { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
 
3115
  fi
 
3116
  rm -f conftest*
 
3117
  test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
 
3118
fi
 
3119
fi
 
3120
 
 
3121
EXEEXT=""
 
3122
test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
 
3123
echo "$ac_t""${ac_cv_exeext}" 1>&6
 
3124
ac_exeext=$EXEEXT
 
3125
 
 
3126
ac_ext=c
 
3127
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 
3128
ac_cpp='$CPP $CPPFLAGS'
 
3129
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
 
3130
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
3131
cross_compiling=$ac_cv_prog_cc_cross
 
3132
 
 
3133
 
 
3134
  
 
3135
 
 
3136
  
 
3137
         
 
3138
         
 
3139
 
 
3140
 
 
3141
LIBTOOL_SHELL="/bin/sh ./libtool"
 
3142
#  LIBTOOL="$LIBTOOL --silent"
 
3143
KDE_PLUGIN="-avoid-version -module -no-undefined"
 
3144
 
 
3145
 
 
3146
 
 
3147
 
 
3148
all_libraries="$all_libraries $USER_LDFLAGS"
 
3149
all_includes="$all_includes $USER_INCLUDES"
 
3150
 
 
3151
 
 
3152
 
 
3153
 
 
3154
echo $ac_n "checking for extra includes""... $ac_c" 1>&6
 
3155
echo "configure:3156: checking for extra includes" >&5
 
3156
# Check whether --with-extra-includes or --without-extra-includes was given.
 
3157
if test "${with_extra_includes+set}" = set; then
 
3158
  withval="$with_extra_includes"
 
3159
  kde_use_extra_includes="$withval"
 
3160
else
 
3161
  kde_use_extra_includes=NONE
 
3162
 
 
3163
fi
 
3164
 
 
3165
kde_extra_includes=
 
3166
if test -n "$kde_use_extra_includes" && \
 
3167
   test "$kde_use_extra_includes" != "NONE"; then
 
3168
 
 
3169
   ac_save_ifs=$IFS
 
3170
   IFS=':'
 
3171
   for dir in $kde_use_extra_includes; do
 
3172
     kde_extra_includes="$kde_extra_includes $dir"
 
3173
     USER_INCLUDES="$USER_INCLUDES -I$dir"
 
3174
   done
 
3175
   IFS=$ac_save_ifs
 
3176
   kde_use_extra_includes="added"
 
3177
else
 
3178
   kde_use_extra_includes="no"
 
3179
fi
 
3180
 
 
3181
 
 
3182
echo "$ac_t""$kde_use_extra_includes" 1>&6
 
3183
 
 
3184
kde_extra_libs=
 
3185
echo $ac_n "checking for extra libs""... $ac_c" 1>&6
 
3186
echo "configure:3187: checking for extra libs" >&5
 
3187
# Check whether --with-extra-libs or --without-extra-libs was given.
 
3188
if test "${with_extra_libs+set}" = set; then
 
3189
  withval="$with_extra_libs"
 
3190
  kde_use_extra_libs=$withval
 
3191
else
 
3192
  kde_use_extra_libs=NONE
 
3193
 
 
3194
fi
 
3195
 
 
3196
if test -n "$kde_use_extra_libs" && \
 
3197
   test "$kde_use_extra_libs" != "NONE"; then
 
3198
 
 
3199
   ac_save_ifs=$IFS
 
3200
   IFS=':'
 
3201
   for dir in $kde_use_extra_libs; do
 
3202
     kde_extra_libs="$kde_extra_libs $dir"
 
3203
     KDE_EXTRA_RPATH="$KDE_EXTRA_RPATH -R $dir"
 
3204
     USER_LDFLAGS="$USER_LDFLAGS -L$dir"
 
3205
   done
 
3206
   IFS=$ac_save_ifs
 
3207
   kde_use_extra_libs="added"
 
3208
else
 
3209
   kde_use_extra_libs="no"
 
3210
fi
 
3211
 
 
3212
 
 
3213
 
 
3214
echo "$ac_t""$kde_use_extra_libs" 1>&6
 
3215
 
 
3216
 
 
3217
 
 
3218
    
 
3219
    # Extract the first word of "msgfmt", so it can be a program name with args.
 
3220
set dummy msgfmt; ac_word=$2
 
3221
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
3222
echo "configure:3223: checking for $ac_word" >&5
 
3223
if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
 
3224
  echo $ac_n "(cached) $ac_c" 1>&6
 
3225
else
 
3226
  case "$MSGFMT" in
 
3227
  /*)
 
3228
  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
 
3229
  ;;
 
3230
  *)
 
3231
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
 
3232
  for ac_dir in $PATH; do
 
3233
    test -z "$ac_dir" && ac_dir=.
 
3234
    if test -f $ac_dir/$ac_word; then
 
3235
      if test -n "`$ac_dir/$ac_word --version 2>&1 | grep 'GNU gettext'`"; then
 
3236
        ac_cv_path_MSGFMT="$ac_dir/$ac_word"
 
3237
        break
 
3238
      fi
 
3239
    fi
 
3240
  done
 
3241
  IFS="$ac_save_ifs"
 
3242
  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
 
3243
  ;;
 
3244
esac
 
3245
fi
 
3246
MSGFMT="$ac_cv_path_MSGFMT"
 
3247
if test -n "$MSGFMT"; then
 
3248
  echo "$ac_t""$MSGFMT" 1>&6
 
3249
else
 
3250
  echo "$ac_t""no" 1>&6
 
3251
fi
 
3252
 
 
3253
    # Extract the first word of "gmsgfmt", so it can be a program name with args.
 
3254
set dummy gmsgfmt; ac_word=$2
 
3255
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
3256
echo "configure:3257: checking for $ac_word" >&5
 
3257
if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
 
3258
  echo $ac_n "(cached) $ac_c" 1>&6
 
3259
else
 
3260
  case "$GMSGFMT" in
 
3261
  /*)
 
3262
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
 
3263
  ;;
 
3264
  ?:/*)                  
 
3265
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
 
3266
  ;;
 
3267
  *)
 
3268
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 
3269
  ac_dummy="$PATH"
 
3270
  for ac_dir in $ac_dummy; do 
 
3271
    test -z "$ac_dir" && ac_dir=.
 
3272
    if test -f $ac_dir/$ac_word; then
 
3273
      ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
 
3274
      break
 
3275
    fi
 
3276
  done
 
3277
  IFS="$ac_save_ifs"
 
3278
  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
 
3279
  ;;
 
3280
esac
 
3281
fi
 
3282
GMSGFMT="$ac_cv_path_GMSGFMT"
 
3283
if test -n "$GMSGFMT"; then
 
3284
  echo "$ac_t""$GMSGFMT" 1>&6
 
3285
else
 
3286
  echo "$ac_t""no" 1>&6
 
3287
fi
 
3288
 
 
3289
 
 
3290
     if test -z "`$GMSGFMT --version 2>&1 | grep 'GNU gettext'`"; then
 
3291
        echo "$ac_t""found msgfmt program is not GNU msgfmt; ignore it" 1>&6
 
3292
        GMSGFMT=":"
 
3293
      fi
 
3294
      MSGFMT=$GMSGFMT
 
3295
      
 
3296
      
 
3297
 
 
3298
      # Extract the first word of "xgettext", so it can be a program name with args.
 
3299
set dummy xgettext; ac_word=$2
 
3300
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 
3301
echo "configure:3302: checking for $ac_word" >&5
 
3302
if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
 
3303
  echo $ac_n "(cached) $ac_c" 1>&6
 
3304
else
 
3305
  case "$XGETTEXT" in
 
3306
  /*)
 
3307
  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
 
3308
  ;;
 
3309
  *)
 
3310
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
 
3311
  for ac_dir in $PATH; do
 
3312
    test -z "$ac_dir" && ac_dir=.
 
3313
    if test -f $ac_dir/$ac_word; then
 
3314
      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
 
3315
        ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
 
3316
        break
 
3317
      fi
 
3318
    fi
 
3319
  done
 
3320
  IFS="$ac_save_ifs"
 
3321
  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
 
3322
  ;;
 
3323
esac
 
3324
fi
 
3325
XGETTEXT="$ac_cv_path_XGETTEXT"
 
3326
if test -n "$XGETTEXT"; then
 
3327
  echo "$ac_t""$XGETTEXT" 1>&6
 
3328
else
 
3329
  echo "$ac_t""no" 1>&6
 
3330
fi
 
3331
 
 
3332
 
 
3333
            if test "$XGETTEXT" != ":"; then
 
3334
                        if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
 
3335
          : ;
 
3336
        else
 
3337
          echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
 
3338
          XGETTEXT=":"
 
3339
        fi
 
3340
      fi
 
3341
     
 
3342
 
 
3343
  
 
3344
 
 
3345
 
 
3346
   ac_ext=c
 
3347
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 
3348
ac_cpp='$CPP $CPPFLAGS'
 
3349
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
 
3350
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
3351
cross_compiling=$ac_cv_prog_cc_cross
 
3352
 
 
3353
      echo $ac_n "checking for main in -lcompat""... $ac_c" 1>&6
 
3354
echo "configure:3355: checking for main in -lcompat" >&5
 
3355
ac_lib_var=`echo compat'_'main | sed 'y%./+-%__p_%'`
 
3356
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 
3357
  echo $ac_n "(cached) $ac_c" 1>&6
 
3358
else
 
3359
  ac_save_LIBS="$LIBS"
 
3360
LIBS="-lcompat  $LIBS"
 
3361
cat > conftest.$ac_ext <<EOF
 
3362
#line 3363 "configure"
 
3363
#include "confdefs.h"
 
3364
 
 
3365
int main() {
 
3366
main()
 
3367
; return 0; }
 
3368
EOF
 
3369
if { (eval echo configure:3370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
3370
  rm -rf conftest*
 
3371
  eval "ac_cv_lib_$ac_lib_var=yes"
 
3372
else
 
3373
  echo "configure: failed program was:" >&5
 
3374
  cat conftest.$ac_ext >&5
 
3375
  rm -rf conftest*
 
3376
  eval "ac_cv_lib_$ac_lib_var=no"
 
3377
fi
 
3378
rm -f conftest*
 
3379
LIBS="$ac_save_LIBS"
 
3380
 
 
3381
fi
 
3382
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 
3383
  echo "$ac_t""yes" 1>&6
 
3384
  LIBCOMPAT="-lcompat"
 
3385
else
 
3386
  echo "$ac_t""no" 1>&6
 
3387
fi
 
3388
    
 
3389
   kde_have_crypt=
 
3390
   echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
 
3391
echo "configure:3392: checking for crypt in -lcrypt" >&5
 
3392
ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-%__p_%'`
 
3393
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 
3394
  echo $ac_n "(cached) $ac_c" 1>&6
 
3395
else
 
3396
  ac_save_LIBS="$LIBS"
 
3397
LIBS="-lcrypt  $LIBS"
 
3398
cat > conftest.$ac_ext <<EOF
 
3399
#line 3400 "configure"
 
3400
#include "confdefs.h"
 
3401
/* Override any gcc2 internal prototype to avoid an error.  */
 
3402
/* We use char because int might match the return type of a gcc2
 
3403
    builtin and then its argument prototype would still apply.  */
 
3404
char crypt();
 
3405
 
 
3406
int main() {
 
3407
crypt()
 
3408
; return 0; }
 
3409
EOF
 
3410
if { (eval echo configure:3411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
3411
  rm -rf conftest*
 
3412
  eval "ac_cv_lib_$ac_lib_var=yes"
 
3413
else
 
3414
  echo "configure: failed program was:" >&5
 
3415
  cat conftest.$ac_ext >&5
 
3416
  rm -rf conftest*
 
3417
  eval "ac_cv_lib_$ac_lib_var=no"
 
3418
fi
 
3419
rm -f conftest*
 
3420
LIBS="$ac_save_LIBS"
 
3421
 
 
3422
fi
 
3423
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 
3424
  echo "$ac_t""yes" 1>&6
 
3425
  LIBCRYPT="-lcrypt"; kde_have_crypt=yes
 
3426
else
 
3427
  echo "$ac_t""no" 1>&6
 
3428
echo $ac_n "checking for crypt in -lc""... $ac_c" 1>&6
 
3429
echo "configure:3430: checking for crypt in -lc" >&5
 
3430
ac_lib_var=`echo c'_'crypt | sed 'y%./+-%__p_%'`
 
3431
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 
3432
  echo $ac_n "(cached) $ac_c" 1>&6
 
3433
else
 
3434
  ac_save_LIBS="$LIBS"
 
3435
LIBS="-lc  $LIBS"
 
3436
cat > conftest.$ac_ext <<EOF
 
3437
#line 3438 "configure"
 
3438
#include "confdefs.h"
 
3439
/* Override any gcc2 internal prototype to avoid an error.  */
 
3440
/* We use char because int might match the return type of a gcc2
 
3441
    builtin and then its argument prototype would still apply.  */
 
3442
char crypt();
 
3443
 
 
3444
int main() {
 
3445
crypt()
 
3446
; return 0; }
 
3447
EOF
 
3448
if { (eval echo configure:3449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
3449
  rm -rf conftest*
 
3450
  eval "ac_cv_lib_$ac_lib_var=yes"
 
3451
else
 
3452
  echo "configure: failed program was:" >&5
 
3453
  cat conftest.$ac_ext >&5
 
3454
  rm -rf conftest*
 
3455
  eval "ac_cv_lib_$ac_lib_var=no"
 
3456
fi
 
3457
rm -f conftest*
 
3458
LIBS="$ac_save_LIBS"
 
3459
 
 
3460
fi
 
3461
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 
3462
  echo "$ac_t""yes" 1>&6
 
3463
  kde_have_crypt=yes
 
3464
else
 
3465
  echo "$ac_t""no" 1>&6
 
3466
 
 
3467
        echo "configure: warning: you have no crypt in either libcrypt or libc.
 
3468
You should install libcrypt from another source or configure with PAM
 
3469
support" 1>&2
 
3470
        kde_have_crypt=no
 
3471
      
 
3472
fi
 
3473
 
 
3474
fi
 
3475
 
 
3476
   
 
3477
   if test $kde_have_crypt = yes; then
 
3478
      cat >> confdefs.h <<EOF
 
3479
#define HAVE_CRYPT 1
 
3480
EOF
 
3481
 
 
3482
   fi
 
3483
   echo $ac_n "checking for the third argument of getsockname""... $ac_c" 1>&6
 
3484
echo "configure:3485: checking for the third argument of getsockname" >&5
 
3485
if eval "test \"`echo '$''{'ac_cv_ksize_t'+set}'`\" = set"; then
 
3486
  echo $ac_n "(cached) $ac_c" 1>&6
 
3487
else
 
3488
  
 
3489
 ac_ext=C
 
3490
# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 
3491
ac_cpp='$CXXCPP $CPPFLAGS'
 
3492
ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
 
3493
ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
3494
cross_compiling=$ac_cv_prog_cxx_cross
 
3495
 
 
3496
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
3497
 
 
3498
 
 
3499
cat > conftest.$ac_ext <<EOF
 
3500
#line 3501 "configure"
 
3501
#include "confdefs.h"
 
3502
 
 
3503
#include <sys/types.h>
 
3504
#include <sys/socket.h>
 
3505
 
 
3506
int main() {
 
3507
 
 
3508
socklen_t a=0;
 
3509
getsockname(0,(struct sockaddr*)0, &a);
 
3510
 
 
3511
; return 0; }
 
3512
EOF
 
3513
if { (eval echo configure:3514: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
3514
  rm -rf conftest*
 
3515
  ac_cv_ksize_t=socklen_t
 
3516
else
 
3517
  echo "configure: failed program was:" >&5
 
3518
  cat conftest.$ac_ext >&5
 
3519
  rm -rf conftest*
 
3520
  ac_cv_ksize_t=
 
3521
fi
 
3522
rm -f conftest*
 
3523
if test -z "$ac_cv_ksize_t"; then
 
3524
ac_safe_cxxflags="$CXXFLAGS"
 
3525
if test "$GCC" = "yes"; then
 
3526
  CXXFLAGS="-Werror $CXXFLAGS"
 
3527
fi
 
3528
cat > conftest.$ac_ext <<EOF
 
3529
#line 3530 "configure"
 
3530
#include "confdefs.h"
 
3531
 
 
3532
#include <sys/types.h>
 
3533
#include <sys/socket.h>
 
3534
 
 
3535
int main() {
 
3536
 
 
3537
int a=0;
 
3538
getsockname(0,(struct sockaddr*)0, &a);
 
3539
 
 
3540
; return 0; }
 
3541
EOF
 
3542
if { (eval echo configure:3543: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 
3543
  rm -rf conftest*
 
3544
  ac_cv_ksize_t=int
 
3545
else
 
3546
  echo "configure: failed program was:" >&5
 
3547
  cat conftest.$ac_ext >&5
 
3548
  rm -rf conftest*
 
3549
  ac_cv_ksize_t=size_t
 
3550
fi
 
3551
rm -f conftest*
 
3552
CXXFLAGS="$ac_safe_cxxflags"
 
3553
fi
 
3554
ac_ext=c
 
3555
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 
3556
ac_cpp='$CPP $CPPFLAGS'
 
3557
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
 
3558
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
3559
cross_compiling=$ac_cv_prog_cc_cross
 
3560
 
 
3561
 
 
3562
fi
 
3563
 
 
3564
 
 
3565
if test -z "$ac_cv_ksize_t"; then
 
3566
  ac_cv_ksize_t=int
 
3567
fi
 
3568
 
 
3569
echo "$ac_t""$ac_cv_ksize_t" 1>&6
 
3570
cat >> confdefs.h <<EOF
 
3571
#define ksize_t $ac_cv_ksize_t
 
3572
EOF
 
3573
 
 
3574
 
 
3575
 
 
3576
   ac_ext=c
 
3577
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 
3578
ac_cpp='$CPP $CPPFLAGS'
 
3579
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
 
3580
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
3581
cross_compiling=$ac_cv_prog_cc_cross
 
3582
 
 
3583
   echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
 
3584
echo "configure:3585: checking for dnet_ntoa in -ldnet" >&5
 
3585
ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
 
3586
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 
3587
  echo $ac_n "(cached) $ac_c" 1>&6
 
3588
else
 
3589
  ac_save_LIBS="$LIBS"
 
3590
LIBS="-ldnet  $LIBS"
 
3591
cat > conftest.$ac_ext <<EOF
 
3592
#line 3593 "configure"
 
3593
#include "confdefs.h"
 
3594
/* Override any gcc2 internal prototype to avoid an error.  */
 
3595
/* We use char because int might match the return type of a gcc2
 
3596
    builtin and then its argument prototype would still apply.  */
 
3597
char dnet_ntoa();
 
3598
 
 
3599
int main() {
 
3600
dnet_ntoa()
 
3601
; return 0; }
 
3602
EOF
 
3603
if { (eval echo configure:3604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
3604
  rm -rf conftest*
 
3605
  eval "ac_cv_lib_$ac_lib_var=yes"
 
3606
else
 
3607
  echo "configure: failed program was:" >&5
 
3608
  cat conftest.$ac_ext >&5
 
3609
  rm -rf conftest*
 
3610
  eval "ac_cv_lib_$ac_lib_var=no"
 
3611
fi
 
3612
rm -f conftest*
 
3613
LIBS="$ac_save_LIBS"
 
3614
 
 
3615
fi
 
3616
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 
3617
  echo "$ac_t""yes" 1>&6
 
3618
  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
 
3619
else
 
3620
  echo "$ac_t""no" 1>&6
 
3621
fi
 
3622
 
 
3623
   if test $ac_cv_lib_dnet_dnet_ntoa = no; then
 
3624
      echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
 
3625
echo "configure:3626: checking for dnet_ntoa in -ldnet_stub" >&5
 
3626
ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
 
3627
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 
3628
  echo $ac_n "(cached) $ac_c" 1>&6
 
3629
else
 
3630
  ac_save_LIBS="$LIBS"
 
3631
LIBS="-ldnet_stub  $LIBS"
 
3632
cat > conftest.$ac_ext <<EOF
 
3633
#line 3634 "configure"
 
3634
#include "confdefs.h"
 
3635
/* Override any gcc2 internal prototype to avoid an error.  */
 
3636
/* We use char because int might match the return type of a gcc2
 
3637
    builtin and then its argument prototype would still apply.  */
 
3638
char dnet_ntoa();
 
3639
 
 
3640
int main() {
 
3641
dnet_ntoa()
 
3642
; return 0; }
 
3643
EOF
 
3644
if { (eval echo configure:3645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
3645
  rm -rf conftest*
 
3646
  eval "ac_cv_lib_$ac_lib_var=yes"
 
3647
else
 
3648
  echo "configure: failed program was:" >&5
 
3649
  cat conftest.$ac_ext >&5
 
3650
  rm -rf conftest*
 
3651
  eval "ac_cv_lib_$ac_lib_var=no"
 
3652
fi
 
3653
rm -f conftest*
 
3654
LIBS="$ac_save_LIBS"
 
3655
 
 
3656
fi
 
3657
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 
3658
  echo "$ac_t""yes" 1>&6
 
3659
  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
 
3660
else
 
3661
  echo "$ac_t""no" 1>&6
 
3662
fi
 
3663
 
 
3664
   fi
 
3665
   echo $ac_n "checking for inet_ntoa""... $ac_c" 1>&6
 
3666
echo "configure:3667: checking for inet_ntoa" >&5
 
3667
if eval "test \"`echo '$''{'ac_cv_func_inet_ntoa'+set}'`\" = set"; then
 
3668
  echo $ac_n "(cached) $ac_c" 1>&6
 
3669
else
 
3670
  cat > conftest.$ac_ext <<EOF
 
3671
#line 3672 "configure"
 
3672
#include "confdefs.h"
 
3673
/* System header to define __stub macros and hopefully few prototypes,
 
3674
    which can conflict with char inet_ntoa(); below.  */
 
3675
#include <assert.h>
 
3676
/* Override any gcc2 internal prototype to avoid an error.  */
 
3677
/* We use char because int might match the return type of a gcc2
 
3678
    builtin and then its argument prototype would still apply.  */
 
3679
char inet_ntoa();
 
3680
 
 
3681
int main() {
 
3682
 
 
3683
/* The GNU C library defines this for functions which it implements
 
3684
    to always fail with ENOSYS.  Some functions are actually named
 
3685
    something starting with __ and the normal name is an alias.  */
 
3686
#if defined (__stub_inet_ntoa) || defined (__stub___inet_ntoa)
 
3687
choke me
 
3688
#else
 
3689
inet_ntoa();
 
3690
#endif
 
3691
 
 
3692
; return 0; }
 
3693
EOF
 
3694
if { (eval echo configure:3695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
3695
  rm -rf conftest*
 
3696
  eval "ac_cv_func_inet_ntoa=yes"
 
3697
else
 
3698
  echo "configure: failed program was:" >&5
 
3699
  cat conftest.$ac_ext >&5
 
3700
  rm -rf conftest*
 
3701
  eval "ac_cv_func_inet_ntoa=no"
 
3702
fi
 
3703
rm -f conftest*
 
3704
fi
 
3705
 
 
3706
if eval "test \"`echo '$ac_cv_func_'inet_ntoa`\" = yes"; then
 
3707
  echo "$ac_t""yes" 1>&6
 
3708
  :
 
3709
else
 
3710
  echo "$ac_t""no" 1>&6
 
3711
fi
 
3712
 
 
3713
   if test $ac_cv_func_inet_ntoa = no; then
 
3714
     echo $ac_n "checking for inet_ntoa in -lnsl""... $ac_c" 1>&6
 
3715
echo "configure:3716: checking for inet_ntoa in -lnsl" >&5
 
3716
ac_lib_var=`echo nsl'_'inet_ntoa | sed 'y%./+-%__p_%'`
 
3717
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 
3718
  echo $ac_n "(cached) $ac_c" 1>&6
 
3719
else
 
3720
  ac_save_LIBS="$LIBS"
 
3721
LIBS="-lnsl  $LIBS"
 
3722
cat > conftest.$ac_ext <<EOF
 
3723
#line 3724 "configure"
 
3724
#include "confdefs.h"
 
3725
/* Override any gcc2 internal prototype to avoid an error.  */
 
3726
/* We use char because int might match the return type of a gcc2
 
3727
    builtin and then its argument prototype would still apply.  */
 
3728
char inet_ntoa();
 
3729
 
 
3730
int main() {
 
3731
inet_ntoa()
 
3732
; return 0; }
 
3733
EOF
 
3734
if { (eval echo configure:3735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
3735
  rm -rf conftest*
 
3736
  eval "ac_cv_lib_$ac_lib_var=yes"
 
3737
else
 
3738
  echo "configure: failed program was:" >&5
 
3739
  cat conftest.$ac_ext >&5
 
3740
  rm -rf conftest*
 
3741
  eval "ac_cv_lib_$ac_lib_var=no"
 
3742
fi
 
3743
rm -f conftest*
 
3744
LIBS="$ac_save_LIBS"
 
3745
 
 
3746
fi
 
3747
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 
3748
  echo "$ac_t""yes" 1>&6
 
3749
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
 
3750
else
 
3751
  echo "$ac_t""no" 1>&6
 
3752
fi
 
3753
 
 
3754
   fi
 
3755
   echo $ac_n "checking for connect""... $ac_c" 1>&6
 
3756
echo "configure:3757: checking for connect" >&5
 
3757
if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
 
3758
  echo $ac_n "(cached) $ac_c" 1>&6
 
3759
else
 
3760
  cat > conftest.$ac_ext <<EOF
 
3761
#line 3762 "configure"
 
3762
#include "confdefs.h"
 
3763
/* System header to define __stub macros and hopefully few prototypes,
 
3764
    which can conflict with char connect(); below.  */
 
3765
#include <assert.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.  */
 
3769
char connect();
 
3770
 
 
3771
int main() {
 
3772
 
 
3773
/* The GNU C library defines this for functions which it implements
 
3774
    to always fail with ENOSYS.  Some functions are actually named
 
3775
    something starting with __ and the normal name is an alias.  */
 
3776
#if defined (__stub_connect) || defined (__stub___connect)
 
3777
choke me
 
3778
#else
 
3779
connect();
 
3780
#endif
 
3781
 
 
3782
; return 0; }
 
3783
EOF
 
3784
if { (eval echo configure:3785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
3785
  rm -rf conftest*
 
3786
  eval "ac_cv_func_connect=yes"
 
3787
else
 
3788
  echo "configure: failed program was:" >&5
 
3789
  cat conftest.$ac_ext >&5
 
3790
  rm -rf conftest*
 
3791
  eval "ac_cv_func_connect=no"
 
3792
fi
 
3793
rm -f conftest*
 
3794
fi
 
3795
 
 
3796
if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
 
3797
  echo "$ac_t""yes" 1>&6
 
3798
  :
 
3799
else
 
3800
  echo "$ac_t""no" 1>&6
 
3801
fi
 
3802
 
 
3803
   if test $ac_cv_func_connect = no; then
 
3804
      echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
 
3805
echo "configure:3806: checking for connect in -lsocket" >&5
 
3806
ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
 
3807
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 
3808
  echo $ac_n "(cached) $ac_c" 1>&6
 
3809
else
 
3810
  ac_save_LIBS="$LIBS"
 
3811
LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
 
3812
cat > conftest.$ac_ext <<EOF
 
3813
#line 3814 "configure"
 
3814
#include "confdefs.h"
 
3815
/* Override any gcc2 internal prototype to avoid an error.  */
 
3816
/* We use char because int might match the return type of a gcc2
 
3817
    builtin and then its argument prototype would still apply.  */
 
3818
char connect();
 
3819
 
 
3820
int main() {
 
3821
connect()
 
3822
; return 0; }
 
3823
EOF
 
3824
if { (eval echo configure:3825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
3825
  rm -rf conftest*
 
3826
  eval "ac_cv_lib_$ac_lib_var=yes"
 
3827
else
 
3828
  echo "configure: failed program was:" >&5
 
3829
  cat conftest.$ac_ext >&5
 
3830
  rm -rf conftest*
 
3831
  eval "ac_cv_lib_$ac_lib_var=no"
 
3832
fi
 
3833
rm -f conftest*
 
3834
LIBS="$ac_save_LIBS"
 
3835
 
 
3836
fi
 
3837
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 
3838
  echo "$ac_t""yes" 1>&6
 
3839
  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
 
3840
else
 
3841
  echo "$ac_t""no" 1>&6
 
3842
fi
 
3843
 
 
3844
   fi
 
3845
 
 
3846
   echo $ac_n "checking for remove""... $ac_c" 1>&6
 
3847
echo "configure:3848: checking for remove" >&5
 
3848
if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
 
3849
  echo $ac_n "(cached) $ac_c" 1>&6
 
3850
else
 
3851
  cat > conftest.$ac_ext <<EOF
 
3852
#line 3853 "configure"
 
3853
#include "confdefs.h"
 
3854
/* System header to define __stub macros and hopefully few prototypes,
 
3855
    which can conflict with char remove(); below.  */
 
3856
#include <assert.h>
 
3857
/* Override any gcc2 internal prototype to avoid an error.  */
 
3858
/* We use char because int might match the return type of a gcc2
 
3859
    builtin and then its argument prototype would still apply.  */
 
3860
char remove();
 
3861
 
 
3862
int main() {
 
3863
 
 
3864
/* The GNU C library defines this for functions which it implements
 
3865
    to always fail with ENOSYS.  Some functions are actually named
 
3866
    something starting with __ and the normal name is an alias.  */
 
3867
#if defined (__stub_remove) || defined (__stub___remove)
 
3868
choke me
 
3869
#else
 
3870
remove();
 
3871
#endif
 
3872
 
 
3873
; return 0; }
 
3874
EOF
 
3875
if { (eval echo configure:3876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
3876
  rm -rf conftest*
 
3877
  eval "ac_cv_func_remove=yes"
 
3878
else
 
3879
  echo "configure: failed program was:" >&5
 
3880
  cat conftest.$ac_ext >&5
 
3881
  rm -rf conftest*
 
3882
  eval "ac_cv_func_remove=no"
 
3883
fi
 
3884
rm -f conftest*
 
3885
fi
 
3886
 
 
3887
if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
 
3888
  echo "$ac_t""yes" 1>&6
 
3889
  :
 
3890
else
 
3891
  echo "$ac_t""no" 1>&6
 
3892
fi
 
3893
 
 
3894
   if test $ac_cv_func_remove = no; then
 
3895
      echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
 
3896
echo "configure:3897: checking for remove in -lposix" >&5
 
3897
ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
 
3898
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 
3899
  echo $ac_n "(cached) $ac_c" 1>&6
 
3900
else
 
3901
  ac_save_LIBS="$LIBS"
 
3902
LIBS="-lposix  $LIBS"
 
3903
cat > conftest.$ac_ext <<EOF
 
3904
#line 3905 "configure"
 
3905
#include "confdefs.h"
 
3906
/* Override any gcc2 internal prototype to avoid an error.  */
 
3907
/* We use char because int might match the return type of a gcc2
 
3908
    builtin and then its argument prototype would still apply.  */
 
3909
char remove();
 
3910
 
 
3911
int main() {
 
3912
remove()
 
3913
; return 0; }
 
3914
EOF
 
3915
if { (eval echo configure:3916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
3916
  rm -rf conftest*
 
3917
  eval "ac_cv_lib_$ac_lib_var=yes"
 
3918
else
 
3919
  echo "configure: failed program was:" >&5
 
3920
  cat conftest.$ac_ext >&5
 
3921
  rm -rf conftest*
 
3922
  eval "ac_cv_lib_$ac_lib_var=no"
 
3923
fi
 
3924
rm -f conftest*
 
3925
LIBS="$ac_save_LIBS"
 
3926
 
 
3927
fi
 
3928
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 
3929
  echo "$ac_t""yes" 1>&6
 
3930
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
 
3931
else
 
3932
  echo "$ac_t""no" 1>&6
 
3933
fi
 
3934
 
 
3935
   fi
 
3936
 
 
3937
   # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
 
3938
   echo $ac_n "checking for shmat""... $ac_c" 1>&6
 
3939
echo "configure:3940: checking for shmat" >&5
 
3940
if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
 
3941
  echo $ac_n "(cached) $ac_c" 1>&6
 
3942
else
 
3943
  cat > conftest.$ac_ext <<EOF
 
3944
#line 3945 "configure"
 
3945
#include "confdefs.h"
 
3946
/* System header to define __stub macros and hopefully few prototypes,
 
3947
    which can conflict with char shmat(); below.  */
 
3948
#include <assert.h>
 
3949
/* Override any gcc2 internal prototype to avoid an error.  */
 
3950
/* We use char because int might match the return type of a gcc2
 
3951
    builtin and then its argument prototype would still apply.  */
 
3952
char shmat();
 
3953
 
 
3954
int main() {
 
3955
 
 
3956
/* The GNU C library defines this for functions which it implements
 
3957
    to always fail with ENOSYS.  Some functions are actually named
 
3958
    something starting with __ and the normal name is an alias.  */
 
3959
#if defined (__stub_shmat) || defined (__stub___shmat)
 
3960
choke me
 
3961
#else
 
3962
shmat();
 
3963
#endif
 
3964
 
 
3965
; return 0; }
 
3966
EOF
 
3967
if { (eval echo configure:3968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
3968
  rm -rf conftest*
 
3969
  eval "ac_cv_func_shmat=yes"
 
3970
else
 
3971
  echo "configure: failed program was:" >&5
 
3972
  cat conftest.$ac_ext >&5
 
3973
  rm -rf conftest*
 
3974
  eval "ac_cv_func_shmat=no"
 
3975
fi
 
3976
rm -f conftest*
 
3977
fi
 
3978
 
 
3979
if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
 
3980
  echo "$ac_t""yes" 1>&6
 
3981
  :
 
3982
else
 
3983
  echo "$ac_t""no" 1>&6
 
3984
echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
 
3985
echo "configure:3986: checking for shmat in -lipc" >&5
 
3986
ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
 
3987
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 
3988
  echo $ac_n "(cached) $ac_c" 1>&6
 
3989
else
 
3990
  ac_save_LIBS="$LIBS"
 
3991
LIBS="-lipc  $LIBS"
 
3992
cat > conftest.$ac_ext <<EOF
 
3993
#line 3994 "configure"
 
3994
#include "confdefs.h"
 
3995
/* Override any gcc2 internal prototype to avoid an error.  */
 
3996
/* We use char because int might match the return type of a gcc2
 
3997
    builtin and then its argument prototype would still apply.  */
 
3998
char shmat();
 
3999
 
 
4000
int main() {
 
4001
shmat()
 
4002
; return 0; }
 
4003
EOF
 
4004
if { (eval echo configure:4005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
4005
  rm -rf conftest*
 
4006
  eval "ac_cv_lib_$ac_lib_var=yes"
 
4007
else
 
4008
  echo "configure: failed program was:" >&5
 
4009
  cat conftest.$ac_ext >&5
 
4010
  rm -rf conftest*
 
4011
  eval "ac_cv_lib_$ac_lib_var=no"
 
4012
fi
 
4013
rm -f conftest*
 
4014
LIBS="$ac_save_LIBS"
 
4015
 
 
4016
fi
 
4017
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 
4018
  echo "$ac_t""yes" 1>&6
 
4019
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
 
4020
else
 
4021
  echo "$ac_t""no" 1>&6
 
4022
fi
 
4023
 
 
4024
fi
 
4025
 
 
4026
   
 
4027
   # Solaris 2.6 needs -lresolv for res_init
 
4028
   echo $ac_n "checking for res_init""... $ac_c" 1>&6
 
4029
echo "configure:4030: checking for res_init" >&5
 
4030
if eval "test \"`echo '$''{'ac_cv_func_res_init'+set}'`\" = set"; then
 
4031
  echo $ac_n "(cached) $ac_c" 1>&6
 
4032
else
 
4033
  cat > conftest.$ac_ext <<EOF
 
4034
#line 4035 "configure"
 
4035
#include "confdefs.h"
 
4036
/* System header to define __stub macros and hopefully few prototypes,
 
4037
    which can conflict with char res_init(); below.  */
 
4038
#include <assert.h>
 
4039
/* Override any gcc2 internal prototype to avoid an error.  */
 
4040
/* We use char because int might match the return type of a gcc2
 
4041
    builtin and then its argument prototype would still apply.  */
 
4042
char res_init();
 
4043
 
 
4044
int main() {
 
4045
 
 
4046
/* The GNU C library defines this for functions which it implements
 
4047
    to always fail with ENOSYS.  Some functions are actually named
 
4048
    something starting with __ and the normal name is an alias.  */
 
4049
#if defined (__stub_res_init) || defined (__stub___res_init)
 
4050
choke me
 
4051
#else
 
4052
res_init();
 
4053
#endif
 
4054
 
 
4055
; return 0; }
 
4056
EOF
 
4057
if { (eval echo configure:4058: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
4058
  rm -rf conftest*
 
4059
  eval "ac_cv_func_res_init=yes"
 
4060
else
 
4061
  echo "configure: failed program was:" >&5
 
4062
  cat conftest.$ac_ext >&5
 
4063
  rm -rf conftest*
 
4064
  eval "ac_cv_func_res_init=no"
 
4065
fi
 
4066
rm -f conftest*
 
4067
fi
 
4068
 
 
4069
if eval "test \"`echo '$ac_cv_func_'res_init`\" = yes"; then
 
4070
  echo "$ac_t""yes" 1>&6
 
4071
  :
 
4072
else
 
4073
  echo "$ac_t""no" 1>&6
 
4074
echo $ac_n "checking for res_init in -lresolv""... $ac_c" 1>&6
 
4075
echo "configure:4076: checking for res_init in -lresolv" >&5
 
4076
ac_lib_var=`echo resolv'_'res_init | sed 'y%./+-%__p_%'`
 
4077
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 
4078
  echo $ac_n "(cached) $ac_c" 1>&6
 
4079
else
 
4080
  ac_save_LIBS="$LIBS"
 
4081
LIBS="-lresolv  $LIBS"
 
4082
cat > conftest.$ac_ext <<EOF
 
4083
#line 4084 "configure"
 
4084
#include "confdefs.h"
 
4085
/* Override any gcc2 internal prototype to avoid an error.  */
 
4086
/* We use char because int might match the return type of a gcc2
 
4087
    builtin and then its argument prototype would still apply.  */
 
4088
char res_init();
 
4089
 
 
4090
int main() {
 
4091
res_init()
 
4092
; return 0; }
 
4093
EOF
 
4094
if { (eval echo configure:4095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
4095
  rm -rf conftest*
 
4096
  eval "ac_cv_lib_$ac_lib_var=yes"
 
4097
else
 
4098
  echo "configure: failed program was:" >&5
 
4099
  cat conftest.$ac_ext >&5
 
4100
  rm -rf conftest*
 
4101
  eval "ac_cv_lib_$ac_lib_var=no"
 
4102
fi
 
4103
rm -f conftest*
 
4104
LIBS="$ac_save_LIBS"
 
4105
 
 
4106
fi
 
4107
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 
4108
  echo "$ac_t""yes" 1>&6
 
4109
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lresolv"
 
4110
else
 
4111
  echo "$ac_t""no" 1>&6
 
4112
fi
 
4113
 
 
4114
fi
 
4115
 
 
4116
 
 
4117
   LIBSOCKET="$X_EXTRA_LIBS"
 
4118
   
 
4119
   
 
4120
   echo $ac_n "checking for killpg in -lucb""... $ac_c" 1>&6
 
4121
echo "configure:4122: checking for killpg in -lucb" >&5
 
4122
ac_lib_var=`echo ucb'_'killpg | sed 'y%./+-%__p_%'`
 
4123
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 
4124
  echo $ac_n "(cached) $ac_c" 1>&6
 
4125
else
 
4126
  ac_save_LIBS="$LIBS"
 
4127
LIBS="-lucb  $LIBS"
 
4128
cat > conftest.$ac_ext <<EOF
 
4129
#line 4130 "configure"
 
4130
#include "confdefs.h"
 
4131
/* Override any gcc2 internal prototype to avoid an error.  */
 
4132
/* We use char because int might match the return type of a gcc2
 
4133
    builtin and then its argument prototype would still apply.  */
 
4134
char killpg();
 
4135
 
 
4136
int main() {
 
4137
killpg()
 
4138
; return 0; }
 
4139
EOF
 
4140
if { (eval echo configure:4141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
4141
  rm -rf conftest*
 
4142
  eval "ac_cv_lib_$ac_lib_var=yes"
 
4143
else
 
4144
  echo "configure: failed program was:" >&5
 
4145
  cat conftest.$ac_ext >&5
 
4146
  rm -rf conftest*
 
4147
  eval "ac_cv_lib_$ac_lib_var=no"
 
4148
fi
 
4149
rm -f conftest*
 
4150
LIBS="$ac_save_LIBS"
 
4151
 
 
4152
fi
 
4153
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 
4154
  echo "$ac_t""yes" 1>&6
 
4155
  LIBUCB="-lucb"
 
4156
else
 
4157
  echo "$ac_t""no" 1>&6
 
4158
fi
 
4159
    
 
4160
 
 
4161
   case $host in     *-*-lynxos* )
 
4162
        echo $ac_n "checking LynxOS header file wrappers""... $ac_c" 1>&6
 
4163
echo "configure:4164: checking LynxOS header file wrappers" >&5
 
4164
        CFLAGS="$CFLAGS -D__NO_INCLUDE_WARN__"
 
4165
        echo "$ac_t""disabled" 1>&6
 
4166
        echo $ac_n "checking for gethostbyname in -lbsd""... $ac_c" 1>&6
 
4167
echo "configure:4168: checking for gethostbyname in -lbsd" >&5
 
4168
ac_lib_var=`echo bsd'_'gethostbyname | sed 'y%./+-%__p_%'`
 
4169
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 
4170
  echo $ac_n "(cached) $ac_c" 1>&6
 
4171
else
 
4172
  ac_save_LIBS="$LIBS"
 
4173
LIBS="-lbsd  $LIBS"
 
4174
cat > conftest.$ac_ext <<EOF
 
4175
#line 4176 "configure"
 
4176
#include "confdefs.h"
 
4177
/* Override any gcc2 internal prototype to avoid an error.  */
 
4178
/* We use char because int might match the return type of a gcc2
 
4179
    builtin and then its argument prototype would still apply.  */
 
4180
char gethostbyname();
 
4181
 
 
4182
int main() {
 
4183
gethostbyname()
 
4184
; return 0; }
 
4185
EOF
 
4186
if { (eval echo configure:4187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
4187
  rm -rf conftest*
 
4188
  eval "ac_cv_lib_$ac_lib_var=yes"
 
4189
else
 
4190
  echo "configure: failed program was:" >&5
 
4191
  cat conftest.$ac_ext >&5
 
4192
  rm -rf conftest*
 
4193
  eval "ac_cv_lib_$ac_lib_var=no"
 
4194
fi
 
4195
rm -f conftest*
 
4196
LIBS="$ac_save_LIBS"
 
4197
 
 
4198
fi
 
4199
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 
4200
  echo "$ac_t""yes" 1>&6
 
4201
  LIBSOCKET="-lbsd"
 
4202
else
 
4203
  echo "$ac_t""no" 1>&6
 
4204
fi
 
4205
          ;;
 
4206
    esac
 
4207
 
 
4208
     echo $ac_n "checking size of int""... $ac_c" 1>&6
 
4209
echo "configure:4210: checking size of int" >&5
 
4210
if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
 
4211
  echo $ac_n "(cached) $ac_c" 1>&6
 
4212
else
 
4213
  if test "$cross_compiling" = yes; then
 
4214
  ac_cv_sizeof_int=4
 
4215
else
 
4216
  cat > conftest.$ac_ext <<EOF
 
4217
#line 4218 "configure"
 
4218
#include "confdefs.h"
 
4219
#include <stdio.h>
 
4220
main()
 
4221
{
 
4222
  FILE *f=fopen("conftestval", "w");
 
4223
  if (!f) exit(1);
 
4224
  fprintf(f, "%d\n", sizeof(int));
 
4225
  exit(0);
 
4226
}
 
4227
EOF
 
4228
if { (eval echo configure:4229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 
4229
then
 
4230
  ac_cv_sizeof_int=`cat conftestval`
 
4231
else
 
4232
  echo "configure: failed program was:" >&5
 
4233
  cat conftest.$ac_ext >&5
 
4234
  rm -fr conftest*
 
4235
  ac_cv_sizeof_int=0
 
4236
fi
 
4237
rm -fr conftest*
 
4238
fi
 
4239
 
 
4240
fi
 
4241
echo "$ac_t""$ac_cv_sizeof_int" 1>&6
 
4242
cat >> confdefs.h <<EOF
 
4243
#define SIZEOF_INT $ac_cv_sizeof_int
 
4244
EOF
 
4245
 
 
4246
  echo $ac_n "checking size of long""... $ac_c" 1>&6
 
4247
echo "configure:4248: checking size of long" >&5
 
4248
if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
 
4249
  echo $ac_n "(cached) $ac_c" 1>&6
 
4250
else
 
4251
  if test "$cross_compiling" = yes; then
 
4252
  ac_cv_sizeof_long=4
 
4253
else
 
4254
  cat > conftest.$ac_ext <<EOF
 
4255
#line 4256 "configure"
 
4256
#include "confdefs.h"
 
4257
#include <stdio.h>
 
4258
main()
 
4259
{
 
4260
  FILE *f=fopen("conftestval", "w");
 
4261
  if (!f) exit(1);
 
4262
  fprintf(f, "%d\n", sizeof(long));
 
4263
  exit(0);
 
4264
}
 
4265
EOF
 
4266
if { (eval echo configure:4267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 
4267
then
 
4268
  ac_cv_sizeof_long=`cat conftestval`
 
4269
else
 
4270
  echo "configure: failed program was:" >&5
 
4271
  cat conftest.$ac_ext >&5
 
4272
  rm -fr conftest*
 
4273
  ac_cv_sizeof_long=0
 
4274
fi
 
4275
rm -fr conftest*
 
4276
fi
 
4277
 
 
4278
fi
 
4279
echo "$ac_t""$ac_cv_sizeof_long" 1>&6
 
4280
cat >> confdefs.h <<EOF
 
4281
#define SIZEOF_LONG $ac_cv_sizeof_long
 
4282
EOF
 
4283
 
 
4284
  echo $ac_n "checking size of char *""... $ac_c" 1>&6
 
4285
echo "configure:4286: checking size of char *" >&5
 
4286
if eval "test \"`echo '$''{'ac_cv_sizeof_char_p'+set}'`\" = set"; then
 
4287
  echo $ac_n "(cached) $ac_c" 1>&6
 
4288
else
 
4289
  if test "$cross_compiling" = yes; then
 
4290
  ac_cv_sizeof_char_p=4
 
4291
else
 
4292
  cat > conftest.$ac_ext <<EOF
 
4293
#line 4294 "configure"
 
4294
#include "confdefs.h"
 
4295
#include <stdio.h>
 
4296
main()
 
4297
{
 
4298
  FILE *f=fopen("conftestval", "w");
 
4299
  if (!f) exit(1);
 
4300
  fprintf(f, "%d\n", sizeof(char *));
 
4301
  exit(0);
 
4302
}
 
4303
EOF
 
4304
if { (eval echo configure:4305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 
4305
then
 
4306
  ac_cv_sizeof_char_p=`cat conftestval`
 
4307
else
 
4308
  echo "configure: failed program was:" >&5
 
4309
  cat conftest.$ac_ext >&5
 
4310
  rm -fr conftest*
 
4311
  ac_cv_sizeof_char_p=0
 
4312
fi
 
4313
rm -fr conftest*
 
4314
fi
 
4315
 
 
4316
fi
 
4317
echo "$ac_t""$ac_cv_sizeof_char_p" 1>&6
 
4318
cat >> confdefs.h <<EOF
 
4319
#define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
 
4320
EOF
 
4321
 
 
4322
 
 
4323
   
 
4324
echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
 
4325
echo "configure:4326: checking for dlopen in -ldl" >&5
 
4326
ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
 
4327
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 
4328
  echo $ac_n "(cached) $ac_c" 1>&6
 
4329
else
 
4330
  ac_save_LIBS="$LIBS"
 
4331
LIBS="-ldl  $LIBS"
 
4332
cat > conftest.$ac_ext <<EOF
 
4333
#line 4334 "configure"
 
4334
#include "confdefs.h"
 
4335
/* Override any gcc2 internal prototype to avoid an error.  */
 
4336
/* We use char because int might match the return type of a gcc2
 
4337
    builtin and then its argument prototype would still apply.  */
 
4338
char dlopen();
 
4339
 
 
4340
int main() {
 
4341
dlopen()
 
4342
; return 0; }
 
4343
EOF
 
4344
if { (eval echo configure:4345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
4345
  rm -rf conftest*
 
4346
  eval "ac_cv_lib_$ac_lib_var=yes"
 
4347
else
 
4348
  echo "configure: failed program was:" >&5
 
4349
  cat conftest.$ac_ext >&5
 
4350
  rm -rf conftest*
 
4351
  eval "ac_cv_lib_$ac_lib_var=no"
 
4352
fi
 
4353
rm -f conftest*
 
4354
LIBS="$ac_save_LIBS"
 
4355
 
 
4356
fi
 
4357
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 
4358
  echo "$ac_t""yes" 1>&6
 
4359
  
 
4360
LIBDL="-ldl"
 
4361
ac_cv_have_dlfcn=yes
 
4362
 
 
4363
else
 
4364
  echo "$ac_t""no" 1>&6
 
4365
fi
 
4366
 
 
4367
 
 
4368
echo $ac_n "checking for shl_unload in -ldld""... $ac_c" 1>&6
 
4369
echo "configure:4370: checking for shl_unload in -ldld" >&5
 
4370
ac_lib_var=`echo dld'_'shl_unload | sed 'y%./+-%__p_%'`
 
4371
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 
4372
  echo $ac_n "(cached) $ac_c" 1>&6
 
4373
else
 
4374
  ac_save_LIBS="$LIBS"
 
4375
LIBS="-ldld  $LIBS"
 
4376
cat > conftest.$ac_ext <<EOF
 
4377
#line 4378 "configure"
 
4378
#include "confdefs.h"
 
4379
/* Override any gcc2 internal prototype to avoid an error.  */
 
4380
/* We use char because int might match the return type of a gcc2
 
4381
    builtin and then its argument prototype would still apply.  */
 
4382
char shl_unload();
 
4383
 
 
4384
int main() {
 
4385
shl_unload()
 
4386
; return 0; }
 
4387
EOF
 
4388
if { (eval echo configure:4389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
4389
  rm -rf conftest*
 
4390
  eval "ac_cv_lib_$ac_lib_var=yes"
 
4391
else
 
4392
  echo "configure: failed program was:" >&5
 
4393
  cat conftest.$ac_ext >&5
 
4394
  rm -rf conftest*
 
4395
  eval "ac_cv_lib_$ac_lib_var=no"
 
4396
fi
 
4397
rm -f conftest*
 
4398
LIBS="$ac_save_LIBS"
 
4399
 
 
4400
fi
 
4401
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 
4402
  echo "$ac_t""yes" 1>&6
 
4403
  
 
4404
LIBDL="-ldld"
 
4405
ac_cv_have_shload=yes
 
4406
 
 
4407
else
 
4408
  echo "$ac_t""no" 1>&6
 
4409
fi
 
4410
 
 
4411
 
 
4412
 
 
4413
 
 
4414
 
 
4415
 
 
4416
 
 
4417
echo $ac_n "checking for libz""... $ac_c" 1>&6
 
4418
echo "configure:4419: checking for libz" >&5
 
4419
if eval "test \"`echo '$''{'ac_cv_lib_z'+set}'`\" = set"; then
 
4420
  echo $ac_n "(cached) $ac_c" 1>&6
 
4421
else
 
4422
  
 
4423
ac_ext=c
 
4424
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 
4425
ac_cpp='$CPP $CPPFLAGS'
 
4426
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
 
4427
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
4428
cross_compiling=$ac_cv_prog_cc_cross
 
4429
 
 
4430
kde_save_LIBS="$LIBS"
 
4431
LIBS="$all_libraries $USER_LDFLAGS -lz $LIBSOCKET"
 
4432
kde_save_CFLAGS="$CFLAGS"
 
4433
CFLAGS="$CFLAGS $all_includes $USER_INCLUDES"
 
4434
cat > conftest.$ac_ext <<EOF
 
4435
#line 4436 "configure"
 
4436
#include "confdefs.h"
 
4437
 
 
4438
#include<zlib.h>
 
4439
 
 
4440
int main() {
 
4441
return (zlibVersion() == ZLIB_VERSION); 
 
4442
; return 0; }
 
4443
EOF
 
4444
if { (eval echo configure:4445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
4445
  rm -rf conftest*
 
4446
  eval "ac_cv_lib_z='-lz'"
 
4447
else
 
4448
  echo "configure: failed program was:" >&5
 
4449
  cat conftest.$ac_ext >&5
 
4450
  rm -rf conftest*
 
4451
  eval "ac_cv_lib_z=no"
 
4452
fi
 
4453
rm -f conftest*
 
4454
LIBS="$kde_save_LIBS"
 
4455
CFLAGS="$kde_save_CFLAGS"
 
4456
 
 
4457
fi
 
4458
if test ! "$ac_cv_lib_z" = no; then
 
4459
  cat >> confdefs.h <<EOF
 
4460
#define HAVE_LIBZ 1
 
4461
EOF
 
4462
 
 
4463
  LIBZ="$ac_cv_lib_z"
 
4464
  
 
4465
  echo "$ac_t""$ac_cv_lib_z" 1>&6
 
4466
else
 
4467
  { echo "configure: error: not found. Check your installation and look into config.log" 1>&2; exit 1; }
 
4468
  LIBZ=""
 
4469
  
 
4470
fi
 
4471
 
 
4472
 
 
4473
echo $ac_n "checking for X""... $ac_c" 1>&6
 
4474
echo "configure:4475: checking for X" >&5
 
4475
 
 
4476
ac_ext=c
 
4477
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 
4478
ac_cpp='$CPP $CPPFLAGS'
 
4479
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
 
4480
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
4481
cross_compiling=$ac_cv_prog_cc_cross
 
4482
 
 
4483
if eval "test \"`echo '$''{'kde_cv_have_x'+set}'`\" = set"; then
 
4484
  echo $ac_n "(cached) $ac_c" 1>&6
 
4485
else
 
4486
  # One or both of the vars are not set, and there is no cached value.
 
4487
if test "{$x_includes+set}" = set || test "$x_includes" = NONE; then
 
4488
   kde_x_includes=NO
 
4489
else
 
4490
   kde_x_includes=$x_includes
 
4491
fi
 
4492
if test "{$x_libraries+set}" = set || test "$x_libraries" = NONE; then
 
4493
   kde_x_libraries=NO
 
4494
else
 
4495
   kde_x_libraries=$x_libraries
 
4496
fi
 
4497
 
 
4498
# below we use the standard autoconf calls
 
4499
ac_x_libraries=$kde_x_libraries
 
4500
ac_x_includes=$kde_x_includes
 
4501
 
 
4502
if test "$ac_x_includes" = NO; then
 
4503
  # Guess where to find include files, by looking for this one X11 .h file.
 
4504
  test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
 
4505
 
 
4506
  # First, try using that file with no special directory specified.
 
4507
cat > conftest.$ac_ext <<EOF
 
4508
#line 4509 "configure"
 
4509
#include "confdefs.h"
 
4510
#include <$x_direct_test_include>
 
4511
EOF
 
4512
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 
4513
{ (eval echo configure:4514: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 
4514
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 
4515
if test -z "$ac_err"; then
 
4516
  rm -rf conftest*
 
4517
  # We can compile using X headers with no special include directory.
 
4518
ac_x_includes=
 
4519
else
 
4520
  echo "$ac_err" >&5
 
4521
  echo "configure: failed program was:" >&5
 
4522
  cat conftest.$ac_ext >&5
 
4523
  rm -rf conftest*
 
4524
  # Look for the header file in a standard set of common directories.
 
4525
# Check X11 before X11Rn because it is often a symlink to the current release.
 
4526
  for ac_dir in               \
 
4527
    /usr/X11/include          \
 
4528
    /usr/X11R6/include        \
 
4529
    /usr/X11R5/include        \
 
4530
    /usr/X11R4/include        \
 
4531
                              \
 
4532
    /usr/include/X11          \
 
4533
    /usr/include/X11R6        \
 
4534
    /usr/include/X11R5        \
 
4535
    /usr/include/X11R4        \
 
4536
                              \
 
4537
    /usr/local/X11/include    \
 
4538
    /usr/local/X11R6/include  \
 
4539
    /usr/local/X11R5/include  \
 
4540
    /usr/local/X11R4/include  \
 
4541
                              \
 
4542
    /usr/local/include/X11    \
 
4543
    /usr/local/include/X11R6  \
 
4544
    /usr/local/include/X11R5  \
 
4545
    /usr/local/include/X11R4  \
 
4546
                              \
 
4547
    /usr/X386/include         \
 
4548
    /usr/x386/include         \
 
4549
    /usr/XFree86/include/X11  \
 
4550
                              \
 
4551
    /usr/include              \
 
4552
    /usr/local/include        \
 
4553
    /usr/unsupported/include  \
 
4554
    /usr/athena/include       \
 
4555
    /usr/local/x11r5/include  \
 
4556
    /usr/lpp/Xamples/include  \
 
4557
                              \
 
4558
    /usr/openwin/include      \
 
4559
    /usr/openwin/share/include \
 
4560
    ; \
 
4561
  do
 
4562
    if test -r "$ac_dir/$x_direct_test_include"; then
 
4563
      ac_x_includes=$ac_dir
 
4564
      break
 
4565
    fi
 
4566
  done
 
4567
fi
 
4568
rm -f conftest*
 
4569
fi # $ac_x_includes = NO
 
4570
 
 
4571
if test "$ac_x_libraries" = NO; then
 
4572
  # Check for the libraries.
 
4573
 
 
4574
  test -z "$x_direct_test_library" && x_direct_test_library=Xt
 
4575
  test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
 
4576
 
 
4577
  # See if we find them without any special options.
 
4578
  # Don't add to $LIBS permanently.
 
4579
  ac_save_LIBS="$LIBS"
 
4580
  LIBS="-l$x_direct_test_library $LIBS"
 
4581
cat > conftest.$ac_ext <<EOF
 
4582
#line 4583 "configure"
 
4583
#include "confdefs.h"
 
4584
 
 
4585
int main() {
 
4586
${x_direct_test_function}()
 
4587
; return 0; }
 
4588
EOF
 
4589
if { (eval echo configure:4590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
4590
  rm -rf conftest*
 
4591
  LIBS="$ac_save_LIBS"
 
4592
# We can link X programs with no special library path.
 
4593
ac_x_libraries=
 
4594
else
 
4595
  echo "configure: failed program was:" >&5
 
4596
  cat conftest.$ac_ext >&5
 
4597
  rm -rf conftest*
 
4598
  LIBS="$ac_save_LIBS"
 
4599
# First see if replacing the include by lib works.
 
4600
# Check X11 before X11Rn because it is often a symlink to the current release.
 
4601
for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
 
4602
    /usr/X11/lib          \
 
4603
    /usr/X11R6/lib        \
 
4604
    /usr/X11R5/lib        \
 
4605
    /usr/X11R4/lib        \
 
4606
                          \
 
4607
    /usr/lib/X11          \
 
4608
    /usr/lib/X11R6        \
 
4609
    /usr/lib/X11R5        \
 
4610
    /usr/lib/X11R4        \
 
4611
                          \
 
4612
    /usr/local/X11/lib    \
 
4613
    /usr/local/X11R6/lib  \
 
4614
    /usr/local/X11R5/lib  \
 
4615
    /usr/local/X11R4/lib  \
 
4616
                          \
 
4617
    /usr/local/lib/X11    \
 
4618
    /usr/local/lib/X11R6  \
 
4619
    /usr/local/lib/X11R5  \
 
4620
    /usr/local/lib/X11R4  \
 
4621
                          \
 
4622
    /usr/X386/lib         \
 
4623
    /usr/x386/lib         \
 
4624
    /usr/XFree86/lib/X11  \
 
4625
                          \
 
4626
    /usr/lib              \
 
4627
    /usr/local/lib        \
 
4628
    /usr/unsupported/lib  \
 
4629
    /usr/athena/lib       \
 
4630
    /usr/local/x11r5/lib  \
 
4631
    /usr/lpp/Xamples/lib  \
 
4632
    /lib/usr/lib/X11      \
 
4633
                          \
 
4634
    /usr/openwin/lib      \
 
4635
    /usr/openwin/share/lib \
 
4636
    ; \
 
4637
do
 
4638
  for ac_extension in a so sl; do
 
4639
    if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
 
4640
      ac_x_libraries=$ac_dir
 
4641
      break 2
 
4642
    fi
 
4643
  done
 
4644
done
 
4645
fi
 
4646
rm -f conftest*
 
4647
fi # $ac_x_libraries = NO
 
4648
 
 
4649
case "$host" in
 
4650
mips-sgi-irix6*)
 
4651
  ;;
 
4652
*)
 
4653
  rm -fr conftestdir
 
4654
if mkdir conftestdir; then
 
4655
  cd conftestdir
 
4656
  # Make sure to not put "make" in the Imakefile rules, since we grep it out.
 
4657
  cat > Imakefile <<'EOF'
 
4658
acfindx:
 
4659
        @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
 
4660
EOF
 
4661
  if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
 
4662
    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
4663
    eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
 
4664
    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
 
4665
    for ac_extension in a so sl; do
 
4666
      if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
 
4667
        test -f $ac_im_libdir/libX11.$ac_extension; then
 
4668
        ac_im_usrlibdir=$ac_im_libdir; break
 
4669
      fi
 
4670
    done
 
4671
    # Screen out bogus values from the imake configuration.  They are
 
4672
    # bogus both because they are the default anyway, and because
 
4673
    # using them would break gcc on systems where it needs fixed includes.
 
4674
    case "$ac_im_incroot" in
 
4675
        /usr/include) ;;
 
4676
        *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
 
4677
    esac
 
4678
    case "$ac_im_usrlibdir" in
 
4679
        /usr/lib | /lib) ;;
 
4680
        *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
 
4681
    esac
 
4682
  fi
 
4683
  cd ..
 
4684
  rm -fr conftestdir
 
4685
fi
 
4686
 
 
4687
  if test -z "$ac_x_includes"; then
 
4688
    ac_x_includes="."
 
4689
  fi
 
4690
  if test -z "$ac_x_libraries"; then
 
4691
    ac_x_libraries="/usr/lib"
 
4692
  fi
 
4693
esac
 
4694
#from now on we use our own again
 
4695
 
 
4696
# when the user already gave --x-includes, we ignore
 
4697
# what the standard autoconf macros told us.
 
4698
if test "$kde_x_includes" = NO; then
 
4699
  kde_x_includes=$ac_x_includes
 
4700
fi
 
4701
 
 
4702
# for --x-libraries too
 
4703
if test "$kde_x_libraries" = NO; then
 
4704
  kde_x_libraries=$ac_x_libraries
 
4705
fi
 
4706
 
 
4707
if test "$kde_x_includes" = NO; then
 
4708
  { echo "configure: error: Can't find X includes. Please check your installation and add the correct paths!" 1>&2; exit 1; }
 
4709
fi
 
4710
 
 
4711
if test "$kde_x_libraries" = NO; then
 
4712
  { echo "configure: error: Can't find X libraries. Please check your installation and add the correct paths!" 1>&2; exit 1; }
 
4713
fi
 
4714
 
 
4715
# Record where we found X for the cache.
 
4716
kde_cv_have_x="have_x=yes \
 
4717
         kde_x_includes=$kde_x_includes kde_x_libraries=$kde_x_libraries"
 
4718
 
 
4719
fi
 
4720
eval "$kde_cv_have_x"
 
4721
 
 
4722
if test "$have_x" != yes; then
 
4723
  echo "$ac_t""$have_x" 1>&6
 
4724
  no_x=yes
 
4725
else
 
4726
  echo "$ac_t""libraries $kde_x_libraries, headers $kde_x_includes" 1>&6
 
4727
fi
 
4728
 
 
4729
if test -z "$kde_x_includes" || test "x$kde_x_includes" = xNONE; then
 
4730
  X_INCLUDES=""
 
4731
  x_includes=".";  else
 
4732
  x_includes=$kde_x_includes
 
4733
  X_INCLUDES="-I$x_includes"
 
4734
fi
 
4735
 
 
4736
if test -z "$kde_x_libraries" || test "x$kde_x_libraries" = xNONE; then
 
4737
  X_LDFLAGS=""
 
4738
  x_libraries="/usr/lib";  else
 
4739
  x_libraries=$kde_x_libraries
 
4740
  X_LDFLAGS="-L$x_libraries"
 
4741
fi
 
4742
all_includes="$X_INCLUDES"
 
4743
all_libraries="$X_LDFLAGS"
 
4744
 
 
4745
 
 
4746
 
 
4747
 
 
4748
 
 
4749
 
 
4750
# Check for libraries that X11R6 Xt/Xaw programs need.
 
4751
ac_save_LDFLAGS="$LDFLAGS"
 
4752
LDFLAGS="$LDFLAGS $X_LDFLAGS"
 
4753
# SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
 
4754
# check for ICE first), but we must link in the order -lSM -lICE or
 
4755
# we get undefined symbols.  So assume we have SM if we have ICE.
 
4756
# These have to be linked with before -lX11, unlike the other
 
4757
# libraries we check for below, so use a different variable.
 
4758
#  --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
 
4759
echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
 
4760
echo "configure:4761: checking for IceConnectionNumber in -lICE" >&5
 
4761
ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
 
4762
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 
4763
  echo $ac_n "(cached) $ac_c" 1>&6
 
4764
else
 
4765
  ac_save_LIBS="$LIBS"
 
4766
LIBS="-lICE $X_EXTRA_LIBS $LIBS"
 
4767
cat > conftest.$ac_ext <<EOF
 
4768
#line 4769 "configure"
 
4769
#include "confdefs.h"
 
4770
/* Override any gcc2 internal prototype to avoid an error.  */
 
4771
/* We use char because int might match the return type of a gcc2
 
4772
    builtin and then its argument prototype would still apply.  */
 
4773
char IceConnectionNumber();
 
4774
 
 
4775
int main() {
 
4776
IceConnectionNumber()
 
4777
; return 0; }
 
4778
EOF
 
4779
if { (eval echo configure:4780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
4780
  rm -rf conftest*
 
4781
  eval "ac_cv_lib_$ac_lib_var=yes"
 
4782
else
 
4783
  echo "configure: failed program was:" >&5
 
4784
  cat conftest.$ac_ext >&5
 
4785
  rm -rf conftest*
 
4786
  eval "ac_cv_lib_$ac_lib_var=no"
 
4787
fi
 
4788
rm -f conftest*
 
4789
LIBS="$ac_save_LIBS"
 
4790
 
 
4791
fi
 
4792
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 
4793
  echo "$ac_t""yes" 1>&6
 
4794
  LIBSM="-lSM -lICE"
 
4795
else
 
4796
  echo "$ac_t""no" 1>&6
 
4797
fi
 
4798
 
 
4799
 
 
4800
LDFLAGS="$ac_save_LDFLAGS"
 
4801
 
 
4802
 
 
4803
 
 
4804
LIB_X11='-lX11 $(LIBSOCKET)'
 
4805
 
 
4806
 
 
4807
echo $ac_n "checking for libXext""... $ac_c" 1>&6
 
4808
echo "configure:4809: checking for libXext" >&5
 
4809
if eval "test \"`echo '$''{'kde_cv_have_libXext'+set}'`\" = set"; then
 
4810
  echo $ac_n "(cached) $ac_c" 1>&6
 
4811
else
 
4812
  
 
4813
kde_ldflags_safe="$LDFLAGS"
 
4814
kde_libs_safe="$LIBS"
 
4815
 
 
4816
LDFLAGS="$LDFLAGS $X_LDFLAGS $USER_LDFLAGS"
 
4817
LIBS="-lXext -lX11 $LIBSOCKET"
 
4818
 
 
4819
cat > conftest.$ac_ext <<EOF
 
4820
#line 4821 "configure"
 
4821
#include "confdefs.h"
 
4822
 
 
4823
#include <stdio.h>
 
4824
 
 
4825
int main() {
 
4826
 
 
4827
printf("hello Xext\n");
 
4828
 
 
4829
; return 0; }
 
4830
EOF
 
4831
if { (eval echo configure:4832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
4832
  rm -rf conftest*
 
4833
  kde_cv_have_libXext=yes
 
4834
else
 
4835
  echo "configure: failed program was:" >&5
 
4836
  cat conftest.$ac_ext >&5
 
4837
  rm -rf conftest*
 
4838
  kde_cv_have_libXext=no
 
4839
   
 
4840
fi
 
4841
rm -f conftest*
 
4842
 
 
4843
LDFLAGS=$kde_ldflags_safe
 
4844
LIBS=$kde_libs_safe
 
4845
 
 
4846
fi
 
4847
 
 
4848
 
 
4849
echo "$ac_t""$kde_cv_have_libXext" 1>&6
 
4850
 
 
4851
if test "$kde_cv_have_libXext" = "no"; then
 
4852
  { echo "configure: error: We need a working libXext to proceed. Since configure
 
4853
can't find it itself, we stop here assuming that make wouldn't find
 
4854
them either." 1>&2; exit 1; }
 
4855
fi
 
4856
 
 
4857
 
 
4858
 
 
4859
 
 
4860
if test -z ""; then
 
4861
  kde_qtver=2
 
4862
  kde_qtsubver=1
 
4863
else
 
4864
  kde_qtsubver=`echo "" | sed -e 's#[0-9]\+\.\([0-9]\+\).*#\1#'`
 
4865
  # following is the check if subversion isnļæ½t found in passed argument
 
4866
  if test "$kde_qtsubver" = ""; then
 
4867
    kde_qtsubver=1
 
4868
  fi
 
4869
  kde_qtver=`echo "" | sed -e 's#^\([0-9]\+\)\..*#\1#'`
 
4870
  if test "$kde_qtver" = "1"; then
 
4871
    kde_qtsubver=42
 
4872
  else
 
4873
   # this is the version number fallback to 2.1, unless major version is 1 or 2
 
4874
   if test "$kde_qtver" != "2"; then
 
4875
    kde_qtver=2
 
4876
    kde_qtsubver=1
 
4877
   fi
 
4878
  fi
 
4879
fi
 
4880
 
 
4881
if test -z ""; then
 
4882
  if test $kde_qtver = 2; then
 
4883
    if test $kde_qtsubver -gt 0; then
 
4884
      kde_qt_minversion=">= Qt 2.2.2"
 
4885
    else
 
4886
      kde_qt_minversion=">= Qt 2.0.2"
 
4887
    fi
 
4888
  else
 
4889
    kde_qt_minversion=">= 1.42 and < 2.0"
 
4890
  fi
 
4891
else
 
4892
   kde_qt_minversion=
 
4893
fi
 
4894
 
 
4895
if test -z ""; then
 
4896
   if test $kde_qtver = 2; then
 
4897
    if test $kde_qtsubver -gt 0; then
 
4898
      kde_qt_verstring="QT_VERSION >= 222"
 
4899
    else
 
4900
      kde_qt_verstring="QT_VERSION >= 200"
 
4901
    fi
 
4902
   else
 
4903
    kde_qt_verstring="QT_VERSION >= 142 && QT_VERSION < 200"
 
4904
  fi
 
4905
else
 
4906
   kde_qt_verstring=
 
4907
fi
 
4908
 
 
4909
if test $kde_qtver = 2; then
 
4910
   kde_qt_dirs="$QTDIR /usr/lib/qt2 /usr/lib/qt"
 
4911
else
 
4912
   kde_qt_dirs="$QTDIR /usr/lib/qt"
 
4913
fi
 
4914
 
 
4915
 
 
4916
 
 
4917
 
 
4918
echo $ac_n "checking for libpng""... $ac_c" 1>&6
 
4919
echo "configure:4920: checking for libpng" >&5
 
4920
if eval "test \"`echo '$''{'ac_cv_lib_png'+set}'`\" = set"; then
 
4921
  echo $ac_n "(cached) $ac_c" 1>&6
 
4922
else
 
4923
  
 
4924
kde_save_LIBS="$LIBS"
 
4925
LIBS="$LIBS $all_libraries $USER_LDFLAGS -lpng $LIBZ -lm -lX11 $LIBSOCKET"
 
4926
kde_save_CFLAGS="$CFLAGS"
 
4927
CFLAGS="$CFLAGS $all_includes $USER_INCLUDES"
 
4928
ac_ext=c
 
4929
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 
4930
ac_cpp='$CPP $CPPFLAGS'
 
4931
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
 
4932
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
4933
cross_compiling=$ac_cv_prog_cc_cross
 
4934
 
 
4935
cat > conftest.$ac_ext <<EOF
 
4936
#line 4937 "configure"
 
4937
#include "confdefs.h"
 
4938
    
 
4939
    #include<png.h>
 
4940
    
 
4941
int main() {
 
4942
 
 
4943
    png_structp png_ptr = png_create_read_struct(  /* image ptr */
 
4944
                PNG_LIBPNG_VER_STRING, 0, 0, 0 );
 
4945
    return( png_ptr != 0 );
 
4946
    
 
4947
; return 0; }
 
4948
EOF
 
4949
if { (eval echo configure:4950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
4950
  rm -rf conftest*
 
4951
  eval "ac_cv_lib_png='-lpng $LIBZ -lm'"
 
4952
else
 
4953
  echo "configure: failed program was:" >&5
 
4954
  cat conftest.$ac_ext >&5
 
4955
  rm -rf conftest*
 
4956
  eval "ac_cv_lib_png=no"
 
4957
 
 
4958
fi
 
4959
rm -f conftest*
 
4960
LIBS="$kde_save_LIBS"
 
4961
CFLAGS="$kde_save_CFLAGS"
 
4962
 
 
4963
fi
 
4964
if eval "test ! \"`echo $ac_cv_lib_png`\" = no"; then
 
4965
  cat >> confdefs.h <<EOF
 
4966
#define HAVE_LIBPNG 1
 
4967
EOF
 
4968
 
 
4969
  LIBPNG="$ac_cv_lib_png"
 
4970
  
 
4971
  echo "$ac_t""$ac_cv_lib_png" 1>&6
 
4972
else
 
4973
  echo "$ac_t""no" 1>&6
 
4974
  LIBPNG=""
 
4975
  
 
4976
fi
 
4977
 
 
4978
 
 
4979
 
 
4980
echo $ac_n "checking for libjpeg6b""... $ac_c" 1>&6
 
4981
echo "configure:4982: checking for libjpeg6b" >&5
 
4982
if eval "test \"`echo '$''{'ac_cv_lib_jpeg_6b'+set}'`\" = set"; then
 
4983
  echo $ac_n "(cached) $ac_c" 1>&6
 
4984
else
 
4985
  
 
4986
ac_ext=c
 
4987
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 
4988
ac_cpp='$CPP $CPPFLAGS'
 
4989
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
 
4990
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
4991
cross_compiling=$ac_cv_prog_cc_cross
 
4992
 
 
4993
ac_save_LIBS="$LIBS"
 
4994
LIBS="$all_libraries $USER_LDFLAGS -ljpeg6b -lm"
 
4995
ac_save_CFLAGS="$CFLAGS"
 
4996
CFLAGS="$CFLAGS $all_includes $USER_INCLUDES"
 
4997
cat > conftest.$ac_ext <<EOF
 
4998
#line 4999 "configure"
 
4999
#include "confdefs.h"
 
5000
/* Override any gcc2 internal prototype to avoid an error.  */
 
5001
struct jpeg_decompress_struct;
 
5002
typedef struct jpeg_decompress_struct * j_decompress_ptr;
 
5003
typedef int size_t;
 
5004
#ifdef __cplusplus
 
5005
extern "C" {
 
5006
#endif
 
5007
    void jpeg_CreateDecompress(j_decompress_ptr cinfo,
 
5008
                                    int version, size_t structsize);
 
5009
#ifdef __cplusplus
 
5010
}
 
5011
#endif
 
5012
/* We use char because int might match the return type of a gcc2
 
5013
    builtin and then its argument prototype would still apply.  */
 
5014
 
 
5015
int main() {
 
5016
jpeg_CreateDecompress(0L, 0, 0);
 
5017
; return 0; }
 
5018
EOF
 
5019
if { (eval echo configure:5020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
5020
  rm -rf conftest*
 
5021
  eval "ac_cv_lib_jpeg_6b=-ljpeg6b"
 
5022
else
 
5023
  echo "configure: failed program was:" >&5
 
5024
  cat conftest.$ac_ext >&5
 
5025
  rm -rf conftest*
 
5026
  eval "ac_cv_lib_jpeg_6b=no"
 
5027
fi
 
5028
rm -f conftest*
 
5029
LIBS="$ac_save_LIBS"
 
5030
CFLAGS="$ac_save_CFLAGS"
 
5031
 
 
5032
fi
 
5033
 
 
5034
 
 
5035
if eval "test ! \"`echo $ac_cv_lib_jpeg_6b`\" = no"; then
 
5036
  LIBJPEG="$ac_cv_lib_jpeg_6b"
 
5037
  echo "$ac_t""$ac_cv_lib_jpeg_6b" 1>&6
 
5038
else
 
5039
  echo "$ac_t""no" 1>&6
 
5040
  
 
5041
echo $ac_n "checking for libjpeg""... $ac_c" 1>&6
 
5042
echo "configure:5043: checking for libjpeg" >&5
 
5043
if eval "test \"`echo '$''{'ac_cv_lib_jpeg_normal'+set}'`\" = set"; then
 
5044
  echo $ac_n "(cached) $ac_c" 1>&6
 
5045
else
 
5046
  
 
5047
ac_ext=c
 
5048
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 
5049
ac_cpp='$CPP $CPPFLAGS'
 
5050
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
 
5051
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
5052
cross_compiling=$ac_cv_prog_cc_cross
 
5053
 
 
5054
ac_save_LIBS="$LIBS"
 
5055
LIBS="$all_libraries $USER_LDFLAGS -ljpeg -lm"
 
5056
ac_save_CFLAGS="$CFLAGS"
 
5057
CFLAGS="$CFLAGS $all_includes $USER_INCLUDES"
 
5058
cat > conftest.$ac_ext <<EOF
 
5059
#line 5060 "configure"
 
5060
#include "confdefs.h"
 
5061
/* Override any gcc2 internal prototype to avoid an error.  */
 
5062
struct jpeg_decompress_struct;
 
5063
typedef struct jpeg_decompress_struct * j_decompress_ptr;
 
5064
typedef int size_t;
 
5065
#ifdef __cplusplus
 
5066
extern "C" {
 
5067
#endif
 
5068
    void jpeg_CreateDecompress(j_decompress_ptr cinfo,
 
5069
                                    int version, size_t structsize);
 
5070
#ifdef __cplusplus
 
5071
}
 
5072
#endif
 
5073
/* We use char because int might match the return type of a gcc2
 
5074
    builtin and then its argument prototype would still apply.  */
 
5075
 
 
5076
int main() {
 
5077
jpeg_CreateDecompress(0L, 0, 0);
 
5078
; return 0; }
 
5079
EOF
 
5080
if { (eval echo configure:5081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 
5081
  rm -rf conftest*
 
5082
  eval "ac_cv_lib_jpeg_normal=-ljpeg"
 
5083
else
 
5084
  echo "configure: failed program was:" >&5
 
5085
  cat conftest.$ac_ext >&5
 
5086
  rm -rf conftest*
 
5087
  eval "ac_cv_lib_jpeg_normal=no"
 
5088
fi
 
5089
rm -f conftest*
 
5090
LIBS="$ac_save_LIBS"
 
5091
CFLAGS="$ac_save_CFLAGS"
 
5092
 
 
5093
fi
 
5094
 
 
5095
 
 
5096
if eval "test ! \"`echo $ac_cv_lib_jpeg_normal`\" = no"; then
 
5097
  LIBJPEG="$ac_cv_lib_jpeg_normal"
 
5098
  echo "$ac_t""$ac_cv_lib_jpeg_normal" 1>&6
 
5099
else
 
5100
  echo "$ac_t""no" 1>&6
 
5101
  
 
5102
        if test -f "$kde_libraries/libjpeg.so"; then
 
5103
           test -f ./libjpegkde.so || $LN_S $kde_libraries/libjpeg.so ./libjpegkde.so
 
5104
           ac_cv_lib_jpeg="-L\${topdir} -ljpegkde"
 
5105
        else if test -f "$kde_libraries/libjpeg.sl"; then
 
5106
           test -f ./libjpegkde.sl ||$LN_S $kde_libraries/libjpeg.sl ./libjpegkde.sl
 
5107
           ac_cv_lib_jpeg="-L\${topdir} -ljpegkde"      
 
5108
        else if test -f "$kde_libraries/libjpeg.a"; then
 
5109
           test -f ./libjpegkde.a || $LN_S $kde_libraries/libjpeg.a ./libjpegkde.a
 
5110
           ac_cv_lib_jpeg="-L\${topdir} -ljpegkde"
 
5111
        else
 
5112
          ac_cv_lib_jpeg=
 
5113
        fi
 
5114
      fi
 
5115
   fi
 
5116
 
 
5117
   LIBJPEG=$ac_cv_lib_jpeg
 
5118
 
 
5119
fi
 
5120
 
 
5121
 
 
5122
fi
 
5123
 
 
5124
 
 
5125
 
 
5126
jpeg_incdirs="/usr/include /usr/local/include $kde_extra_includes"
 
5127
 
 
5128
jpeg_incdir=NO
 
5129
for i in $jpeg_incdirs;
 
5130
do
 
5131
  for j in jpeglib.h;
 
5132
  do
 
5133
    if test -r "$i/$j"; then
 
5134
      jpeg_incdir=$i
 
5135
      break 2
 
5136
    fi
 
5137
  done
 
5138
done
 
5139
 
 
5140
test "x$jpeg_incdir" = xNO && jpeg_incdir=
 
5141
 
 
5142
if test -n "$jpeg_incdir" && test -n "$LIBJPEG" ; then
 
5143
  cat >> confdefs.h <<EOF
 
5144
#define HAVE_LIBJPEG 1
 
5145
EOF
 
5146
 
 
5147
else
 
5148
  if test -n "$jpeg_incdir" || test -n "$LIBJPEG" ; then
 
5149
    echo "configure: warning: 
 
5150
There is an installation error in jpeg support. You seem to have only one
 
5151
of either the headers _or_ the libraries installed. You may need to either
 
5152
provide correct --with-extra-... options, or the development package of
 
5153
libjpeg6b. You can get a source package of libjpeg from http://www.ijg.org/
 
5154
Disabling JPEG support.
 
5155
" 1>&2
 
5156
  else
 
5157
    echo "configure: warning: libjpeg not found. disable JPEG support." 1>&2
 
5158
  fi
 
5159
  jpeg_incdir=
 
5160
  LIBJPEG=
 
5161
fi
 
5162
 
 
5163
 
 
5164
 
 
5165
 
 
5166
 
 
5167
 
 
5168
 
 
5169
 
 
5170
 
 
5171
# Check whether --enable-mt or --disable-mt was given.
 
5172
if test "${enable_mt+set}" = set; then
 
5173
  enableval="$enable_mt"
 
5174
  kde_use_qt_mt=$enableval
 
5175
else
 
5176
  kde_use_qt_mt=no
 
5177
 
 
5178
fi
 
5179
 
 
5180
 
 
5181
USING_QT_MT=""
 
5182
 
 
5183
 
 
5184
if test "x$kde_use_qt_mt" = "xyes"; then
 
5185
 
 
5186
  case $host in
 
5187
  *-*-linux-*)
 
5188
    if test "x$GCC" = "xyes"; then
 
5189
      CPPFLAGS="$CPPFLAGS -DQT_THREAD_SUPPORT -pthread"
 
5190
      X_EXTRA_LIBS="$X_EXTRA_LIBS -pthread"
 
5191
    else
 
5192
      echo "configure: warning: Compiler is not gcc. MT support disabled." 1>&2
 
5193
    fi
 
5194
    ;;
 
5195
  *)
 
5196
    echo "configure: warning: MT not yet supported on $host - disabled." 1>&2
 
5197
    ;;
 
5198
  esac
 
5199
 
 
5200
fi
 
5201
 
 
5202
kde_qt_was_given=yes
 
5203
 
 
5204
 
 
5205
if test -z "$LIBQT_GLOB"; then
 
5206
 
 
5207
  LIBQT_GLOB="libqt.*"
 
5208
 
 
5209
fi
 
5210
 
 
5211
if test -z "$LIBQT"; then
 
5212
 
 
5213
  LIBQT="-lqt"
 
5214
  kde_int_qt="-lqt"
 
5215
 
 
5216
 
 
5217
  if test "x$kde_use_qt_mt" = "xyes"; then
 
5218
 
 
5219
      case $host in
 
5220
      *-*-linux-*)
 
5221
        if test "x$GCC" = "xyes"; then
 
5222
          LIBQT="-lqt-mt"
 
5223
          kde_int_qt="-lqt-mt"
 
5224
          LIBQT_GLOB="libqt-mt.*"
 
5225
          USING_QT_MT="using -mt"
 
5226
        fi
 
5227
      ;;
 
5228
      esac
 
5229
  fi
 
5230
 
 
5231
  kde_qt_was_given=no
 
5232
 
 
5233
else
 
5234
  kde_int_qt="$LIBQT"
 
5235
fi
 
5236
 
 
5237
if test $kde_qtver = 2; then
 
5238
 
 
5239
  
 
5240
  
 
5241
  LIBQT="$LIBQT $LIBPNG $LIBJPEG"
 
5242
fi
 
5243
 
 
5244
echo $ac_n "checking for Qt""... $ac_c" 1>&6
 
5245
echo "configure:5246: checking for Qt" >&5
 
5246
 
 
5247
LIBQT="$LIBQT $X_PRE_LIBS -lXext -lX11 $LIBSM $LIBSOCKET"
 
5248
ac_qt_includes=NO ac_qt_libraries=NO ac_qt_bindir=NO
 
5249
qt_libraries=""
 
5250
qt_includes=""
 
5251
# Check whether --with-qt-dir or --without-qt-dir was given.
 
5252
if test "${with_qt_dir+set}" = set; then
 
5253
  withval="$with_qt_dir"
 
5254
    ac_qt_includes="$withval"/include
 
5255
       ac_qt_libraries="$withval"/lib
 
5256
       ac_qt_bindir="$withval"/bin
 
5257
    
 
5258
fi
 
5259
 
 
5260
 
 
5261
# Check whether --with-qt-includes or --without-qt-includes was given.
 
5262
if test "${with_qt_includes+set}" = set; then
 
5263
  withval="$with_qt_includes"
 
5264
  
 
5265
       ac_qt_includes="$withval"
 
5266
    
 
5267
fi
 
5268
 
 
5269
 
 
5270
kde_qt_libs_given=no
 
5271
 
 
5272
# Check whether --with-qt-libraries or --without-qt-libraries was given.
 
5273
if test "${with_qt_libraries+set}" = set; then
 
5274
  withval="$with_qt_libraries"
 
5275
    ac_qt_libraries="$withval"
 
5276
       kde_qt_libs_given=yes
 
5277
    
 
5278
fi
 
5279
 
 
5280
 
 
5281
if eval "test \"`echo '$''{'ac_cv_have_qt'+set}'`\" = set"; then
 
5282
  echo $ac_n "(cached) $ac_c" 1>&6
 
5283
else
 
5284
  #try to guess Qt locations
 
5285
 
 
5286
qt_incdirs=""
 
5287
for dir in $kde_qt_dirs; do
 
5288
   qt_incdirs="$qt_incdirs $dir/include $dir"
 
5289
done
 
5290
qt_incdirs="$QTINC $qt_incdirs /usr/local/qt/include /usr/include/qt /usr/include /usr/X11R6/include/X11/qt /usr/X11R6/include/qt $x_includes"
 
5291
if test ! "$ac_qt_includes" = "NO"; then
 
5292
   qt_incdirs="$ac_qt_includes $qt_incdirs"
 
5293
fi
 
5294
 
 
5295
if test "$kde_qtver" = "2"; then
 
5296
  kde_qt_header=qstyle.h
 
5297
else
 
5298
  kde_qt_header=qglobal.h
 
5299
fi
 
5300
 
 
5301
 
 
5302
qt_incdir=NO
 
5303
for i in $qt_incdirs;
 
5304
do
 
5305
  for j in $kde_qt_header;
 
5306
  do
 
5307
    if test -r "$i/$j"; then
 
5308
      qt_incdir=$i
 
5309
      break 2
 
5310
    fi
 
5311
  done
 
5312
done
 
5313
 
 
5314
ac_qt_includes="$qt_incdir"
 
5315
 
 
5316
qt_libdirs=""
 
5317
for dir in $kde_qt_dirs; do
 
5318
   qt_libdirs="$qt_libdirs $dir/lib $dir"
 
5319
done
 
5320
qt_libdirs="$QTLIB $qt_libdirs /usr/X11R6/lib /usr/lib /usr/local/qt/lib $x_libraries"
 
5321
if test ! "$ac_qt_libraries" = "NO"; then
 
5322
  qt_libdir=$ac_qt_libraries
 
5323
else
 
5324
  qt_libdirs="$ac_qt_libraries $qt_libdirs"
 
5325
  # if the Qt was given, the chance is too big that libqt.* doesn't exist
 
5326
  qt_libdir=NONE
 
5327
  for dir in $qt_libdirs; do
 
5328
    try="ls -1 $dir/${LIBQT_GLOB}"
 
5329
    if test -n "`$try 2> /dev/null`"; then qt_libdir=$dir; break; else echo "tried $dir" >&5 ; fi
 
5330
  done
 
5331
fi
 
5332
 
 
5333
ac_qt_libraries="$qt_libdir"
 
5334
 
 
5335
 
 
5336
 ac_ext=C
 
5337
# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 
5338
ac_cpp='$CXXCPP $CPPFLAGS'
 
5339
ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
 
5340
ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
5341
cross_compiling=$ac_cv_prog_cxx_cross
 
5342
 
 
5343
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
5344
 
 
5345
 
 
5346
 
 
5347
ac_cxxflags_safe="$CXXFLAGS"
 
5348
ac_ldflags_safe="$LDFLAGS"
 
5349
ac_libs_safe="$LIBS"
 
5350
 
 
5351
CXXFLAGS="$CXXFLAGS -I$qt_incdir $all_includes"
 
5352
LDFLAGS="$LDFLAGS -L$qt_libdir $all_libraries $USER_LDFLAGS"
 
5353
LIBS="$LIBS $LIBQT"
 
5354
 
 
5355
 
 
5356
 
 
5357
cat > conftest.$ac_ext <<EOF
 
5358
#include "confdefs.h"
 
5359
#include <qglobal.h>
 
5360
#include <qapplication.h>
 
5361
#include <qapp.h>
 
5362
#include <qobjcoll.h>
 
5363
EOF
 
5364
if test "$kde_qtver" = "2"; then
 
5365
cat >> conftest.$ac_ext <<EOF
 
5366
#include <qevent.h>
 
5367
#include <qstring.h>
 
5368
#include <qstyle.h>
 
5369
EOF
 
5370
 
 
5371
if test $kde_qtsubver -gt 0; then
 
5372
cat >> conftest.$ac_ext <<EOF
 
5373
#include <qiconview.h>
 
5374
EOF
 
5375
fi
 
5376
 
 
5377
fi
 
5378
 
 
5379
echo "#if ! ($kde_qt_verstring)" >> conftest.$ac_ext
 
5380
cat >> conftest.$ac_ext <<EOF
 
5381
#error 1
 
5382
#endif
 
5383
 
 
5384
int main() {
 
5385
EOF
 
5386
if test "$kde_qtver" = "2"; then
 
5387
cat >> conftest.$ac_ext <<EOF
 
5388
    QStringList *t = new QStringList();
 
5389
EOF
 
5390
if test $kde_qtsubver -gt 0; then
 
5391
cat >> conftest.$ac_ext <<EOF
 
5392
    QIconView iv(0);
 
5393
    iv.setWordWrapIconText(false);
 
5394
    QString s;
 
5395
    s.setLatin1("Elvis is alive", 14);
 
5396
    int magnolia = QEvent::Speech; /* new in 2.2 beta2 */
 
5397
EOF
 
5398
fi
 
5399
fi
 
5400
cat >> conftest.$ac_ext <<EOF
 
5401
    return 0;
 
5402
}
 
5403
EOF
 
5404
 
 
5405
 
 
5406
if { (eval echo configure:5407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
 
5407
  rm -f conftest*
 
5408
else
 
5409
  echo "configure: failed program was:" >&5
 
5410
  cat conftest.$ac_ext >&5
 
5411
  ac_qt_libraries="NO"
 
5412
fi
 
5413
rm -f conftest*
 
5414
CXXFLAGS="$ac_cxxflags_safe"
 
5415
LDFLAGS="$ac_ldflags_safe"
 
5416
LIBS="$ac_libs_safe"
 
5417
 
 
5418
ac_ext=c
 
5419
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 
5420
ac_cpp='$CPP $CPPFLAGS'
 
5421
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
 
5422
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
5423
cross_compiling=$ac_cv_prog_cc_cross
 
5424
 
 
5425
if test "$ac_qt_includes" = NO || test "$ac_qt_libraries" = NO; then
 
5426
  ac_cv_have_qt="have_qt=no"
 
5427
  ac_qt_notfound=""
 
5428
  if test "$ac_qt_includes" = NO; then
 
5429
    if test "$ac_qt_libraries" = NO; then
 
5430
      ac_qt_notfound="(headers and libraries)";
 
5431
    else
 
5432
      ac_qt_notfound="(headers)";
 
5433
    fi
 
5434
  else
 
5435
    ac_qt_notfound="(libraries)";
 
5436
  fi
 
5437
 
 
5438
  { echo "configure: error: Qt ($kde_qt_minversion) $ac_qt_notfound not found. Please check your installation!
 
5439
For more details about this problem, look at the end of config.log." 1>&2; exit 1; }
 
5440
else
 
5441
  have_qt="yes"
 
5442
fi
 
5443
 
 
5444
fi
 
5445
 
 
5446
 
 
5447
eval "$ac_cv_have_qt"
 
5448
 
 
5449
if test "$have_qt" != yes; then
 
5450
  echo "$ac_t""$have_qt" 1>&6;
 
5451
else
 
5452
  ac_cv_have_qt="have_qt=yes \
 
5453
    ac_qt_includes=$ac_qt_includes ac_qt_libraries=$ac_qt_libraries"
 
5454
  echo "$ac_t""libraries $ac_qt_libraries, headers $ac_qt_includes $USING_QT_MT" 1>&6
 
5455
 
 
5456
  qt_libraries="$ac_qt_libraries"
 
5457
  qt_includes="$ac_qt_includes"
 
5458
fi
 
5459
 
 
5460
if test ! "$kde_qt_libs_given" = "yes"; then
 
5461
 
 
5462
 
 
5463
echo $ac_n "checking if Qt compiles without flags""... $ac_c" 1>&6
 
5464
echo "configure:5465: checking if Qt compiles without flags" >&5
 
5465
if eval "test \"`echo '$''{'kde_cv_qt_direct'+set}'`\" = set"; then
 
5466
  echo $ac_n "(cached) $ac_c" 1>&6
 
5467
else
 
5468
  
 
5469
 
 
5470
 ac_ext=C
 
5471
# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 
5472
ac_cpp='$CXXCPP $CPPFLAGS'
 
5473
ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
 
5474
ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
5475
cross_compiling=$ac_cv_prog_cxx_cross
 
5476
 
 
5477
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
5478
 
 
5479
 
 
5480
ac_LD_LIBRARY_PATH_safe=$LD_LIBRARY_PATH
 
5481
ac_LIBRARY_PATH="$LIBRARY_PATH"
 
5482
ac_cxxflags_safe="$CXXFLAGS"
 
5483
ac_ldflags_safe="$LDFLAGS"
 
5484
ac_libs_safe="$LIBS"
 
5485
 
 
5486
CXXFLAGS="$CXXFLAGS -I$qt_includes"
 
5487
LDFLAGS="$LDFLAGS $X_LDFLAGS"
 
5488
LIBS="$LIBQT -lXext -lX11 $LIBSOCKET"
 
5489
LD_LIBRARY_PATH=
 
5490
export LD_LIBRARY_PATH
 
5491
LIBRARY_PATH=
 
5492
export LIBRARY_PATH
 
5493
 
 
5494
 
 
5495
 
 
5496
cat > conftest.$ac_ext <<EOF
 
5497
#include "confdefs.h"
 
5498
#include <qglobal.h>
 
5499
#include <qapplication.h>
 
5500
#include <qapp.h>
 
5501
#include <qobjcoll.h>
 
5502
EOF
 
5503
if test "$kde_qtver" = "2"; then
 
5504
cat >> conftest.$ac_ext <<EOF
 
5505
#include <qevent.h>
 
5506
#include <qstring.h>
 
5507
#include <qstyle.h>
 
5508
EOF
 
5509
 
 
5510
if test $kde_qtsubver -gt 0; then
 
5511
cat >> conftest.$ac_ext <<EOF
 
5512
#include <qiconview.h>
 
5513
EOF
 
5514
fi
 
5515
 
 
5516
fi
 
5517
 
 
5518
echo "#if ! ($kde_qt_verstring)" >> conftest.$ac_ext
 
5519
cat >> conftest.$ac_ext <<EOF
 
5520
#error 1
 
5521
#endif
 
5522
 
 
5523
int main() {
 
5524
EOF
 
5525
if test "$kde_qtver" = "2"; then
 
5526
cat >> conftest.$ac_ext <<EOF
 
5527
    QStringList *t = new QStringList();
 
5528
EOF
 
5529
if test $kde_qtsubver -gt 0; then
 
5530
cat >> conftest.$ac_ext <<EOF
 
5531
    QIconView iv(0);
 
5532
    iv.setWordWrapIconText(false);
 
5533
    QString s;
 
5534
    s.setLatin1("Elvis is alive", 14);
 
5535
    int magnolia = QEvent::Speech; /* new in 2.2 beta2 */
 
5536
EOF
 
5537
fi
 
5538
fi
 
5539
cat >> conftest.$ac_ext <<EOF
 
5540
    return 0;
 
5541
}
 
5542
EOF
 
5543
 
 
5544
 
 
5545
if { (eval echo configure:5546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
 
5546
  kde_cv_qt_direct="yes"
 
5547
else
 
5548
  kde_cv_qt_direct="no"
 
5549
  echo "configure: failed program was:" >&5
 
5550
  cat conftest.$ac_ext >&5
 
5551
fi
 
5552
 
 
5553
rm -f conftest*
 
5554
CXXFLAGS="$ac_cxxflags_safe"
 
5555
LDFLAGS="$ac_ldflags_safe"
 
5556
LIBS="$ac_libs_safe"
 
5557
 
 
5558
LD_LIBRARY_PATH="$ac_LD_LIBRARY_PATH_safe"
 
5559
export LD_LIBRARY_PATH
 
5560
LIBRARY_PATH="$ac_LIBRARY_PATH"
 
5561
export LIBRARY_PATH
 
5562
ac_ext=c
 
5563
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 
5564
ac_cpp='$CPP $CPPFLAGS'
 
5565
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
 
5566
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 
5567
cross_compiling=$ac_cv_prog_cc_cross
 
5568
 
 
5569
 
 
5570
fi
 
5571
 
 
5572
 
 
5573
if test "$kde_cv_qt_direct" = "yes"; then
 
5574
  echo "$ac_t""yes" 1>&6
 
5575
  qt_libraries= 
 
5576
else
 
5577
  echo "$ac_t""no" 1>&6
 
5578
  
 
5579
fi
 
5580
 
 
5581
fi
 
5582
 
 
5583
 
 
5584
 
 
5585
 
 
5586
if test "$qt_includes" = "$x_includes" || test -z "$qt_includes"; then
 
5587
 QT_INCLUDES="";
 
5588
else
 
5589
 QT_INCLUDES="-I$qt_includes"
 
5590
 all_includes="$QT_INCLUDES $all_includes"
 
5591
fi
 
5592
 
 
5593
if test "$qt_libraries" = "$x_libraries" || test -z "$qt_libraries"; then
 
5594
 QT_LDFLAGS=""
 
5595
else
 
5596
 QT_LDFLAGS="-L$qt_libraries"
 
5597
 all_libraries="$all_libraries $QT_LDFLAGS"
 
5598
fi
 
5599
 
 
5600
 
 
5601
 
 
5602
 
 
5603
   qt_bindirs=""
 
5604
   for dir in $kde_qt_dirs; do
 
5605
      qt_bindirs="$qt_bindirs $dir/bin $dir/src/moc"
 
5606
   done
 
5607
   qt_bindirs="$qt_bindirs /usr/bin /usr/X11R6/bin /usr/local/qt/bin"
 
5608
   if test ! "$ac_qt_bindir" = "NO"; then
 
5609
      qt_bindirs="$ac_qt_bindir $qt_bindirs"
 
5610
   fi
 
5611
 
 
5612
   
 
5613
   echo $ac_n "checking for moc""... $ac_c" 1>&6
 
5614
echo "configure:5615: checking for moc" >&5
 
5615
   if test -n "$MOC"; then
 
5616
        kde_cv_path="$MOC";
 
5617
   else
 
5618
        kde_cache=`echo moc | sed 'y%./+-%__p_%'`
 
5619
 
 
5620
        if eval "test \"`echo '$''{'kde_cv_path_$kde_cache'+set}'`\" = set"; then
 
5621
  echo $ac_n "(cached) $ac_c" 1>&6
 
5622
else
 
5623
  
 
5624
        kde_cv_path="NONE"
 
5625
        dirs="$qt_bindirs"
 
5626
        kde_save_IFS=$IFS
 
5627
        IFS=':'
 
5628
        for dir in $PATH; do
 
5629
          dirs="$dirs $dir"
 
5630
        done
 
5631
        IFS=$kde_save_IFS
 
5632
 
 
5633
        for dir in $dirs; do
 
5634
          if test -x "$dir/moc"; then
 
5635
            if test -n ""
 
5636
            then
 
5637
              evalstr="$dir/moc  2>&1 "
 
5638
              if eval $evalstr; then
 
5639
                kde_cv_path="$dir/moc"
 
5640
                break
 
5641
              fi
 
5642
            else
 
5643
                kde_cv_path="$dir/moc"
 
5644
                break
 
5645
            fi
 
5646
          fi
 
5647
        done
 
5648
 
 
5649
        eval "kde_cv_path_$kde_cache=$kde_cv_path"
 
5650
 
 
5651
        
 
5652
fi
 
5653
 
 
5654
 
 
5655
      eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
 
5656
 
 
5657
   fi
 
5658
 
 
5659
   if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
 
5660
      echo "$ac_t""not found" 1>&6
 
5661
      
 
5662
    { echo "configure: error: No Qt meta object compiler (moc) found!
 
5663
Please check whether you installed Qt correctly.
 
5664
You need to have a running moc binary.
 
5665
configure tried to run $ac_cv_path_moc and the test didn't
 
5666
succeed. If configure shouldn't have tried this one, set
 
5667
the environment variable MOC to the right one before running
 
5668
configure.
 
5669
" 1>&2; exit 1; }
 
5670
 
 
5671
   else
 
5672
      echo "$ac_t""$kde_cv_path" 1>&6
 
5673
      MOC=$kde_cv_path
 
5674
 
 
5675
   fi
 
5676
 
 
5677
   
 
5678
   echo $ac_n "checking for uic""... $ac_c" 1>&6
 
5679
echo "configure:5680: checking for uic" >&5
 
5680
   if test -n "$UIC"; then
 
5681
        kde_cv_path="$UIC";
 
5682
   else
 
5683
        kde_cache=`echo uic | sed 'y%./+-%__p_%'`
 
5684
 
 
5685
        if eval "test \"`echo '$''{'kde_cv_path_$kde_cache'+set}'`\" = set"; then
 
5686
  echo $ac_n "(cached) $ac_c" 1>&6
 
5687
else
 
5688
  
 
5689
        kde_cv_path="NONE"
 
5690
        dirs="$qt_bindirs"
 
5691
        kde_save_IFS=$IFS
 
5692
        IFS=':'
 
5693
        for dir in $PATH; do
 
5694
          dirs="$dirs $dir"
 
5695
        done
 
5696
        IFS=$kde_save_IFS
 
5697
 
 
5698
        for dir in $dirs; do
 
5699
          if test -x "$dir/uic"; then
 
5700
            if test -n ""
 
5701
            then
 
5702
              evalstr="$dir/uic  2>&1 "
 
5703
              if eval $evalstr; then
 
5704
                kde_cv_path="$dir/uic"
 
5705
                break
 
5706
              fi
 
5707
            else
 
5708
                kde_cv_path="$dir/uic"
 
5709
                break
 
5710
            fi
 
5711
          fi
 
5712
        done
 
5713
 
 
5714
        eval "kde_cv_path_$kde_cache=$kde_cv_path"
 
5715
 
 
5716
        
 
5717
fi
 
5718
 
 
5719
 
 
5720
      eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
 
5721
 
 
5722
   fi
 
5723
 
 
5724
   if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
 
5725
      echo "$ac_t""not found" 1>&6
 
5726
      UIC="" ; 
 
5727
    echo "configure: warning: No Qt ui compiler (uic) found!
 
5728
Please check whether you installed Qt correctly.
 
5729
You need to have a running uic binary.
 
5730
configure tried to run $ac_cv_path_uic and the test didn't
 
5731
succeed. If configure shouldn't have tried this one, set
 
5732
the environment variable UIC to the right one before running
 
5733
configure.
 
5734
" 1>&2
 
5735
 
 
5736
   else
 
5737
      echo "$ac_t""$kde_cv_path" 1>&6
 
5738
      UIC=$kde_cv_path
 
5739
 
 
5740
   fi
 
5741
 
 
5742
   if test -z "$UIC" ; then
 
5743
     if test -z "$UIC_NOT_NEEDED" ; then
 
5744
       exit 1
 
5745
     else
 
5746
       UIC="echo uic not available: "
 
5747
     fi
 
5748
   fi
 
5749
   
 
5750
   
 
5751
 
 
5752
 
 
5753
LIB_QT="$kde_int_qt "'$(LIBPNG) $(LIBJPEG) -lXext $(LIB_X11) $(LIBSM)'
 
5754
 
 
5755
 
 
5756
 
 
5757
 
 
5758
 
 
5759
if test "$program_transform_name" = s,x,x,; then
 
5760
  program_transform_name=
 
5761
else
 
5762
  # Double any \ or $.  echo might interpret backslashes.
 
5763
  cat <<\EOF_SED > conftestsed
 
5764
s,\\,\\\\,g; s,\$,$$,g
 
5765
EOF_SED
 
5766
  program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
 
5767
  rm -f conftestsed
 
5768
fi
 
5769
test "$program_prefix" != NONE &&
 
5770
  program_transform_name="s,^,${program_prefix},; $program_transform_name"
 
5771
# Use a double $ so make ignores it.
 
5772
test "$program_suffix" != NONE &&
 
5773
  program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
 
5774
 
 
5775
# sed with no file args requires a program.
 
5776
test "$program_transform_name" = "" && program_transform_name="s,x,x,"
 
5777
 
 
5778
 
 
5779
 
 
5780
 
 
5781
 
 
5782
 
 
5783
DO_NOT_COMPILE="$DO_NOT_COMPILE CVS debian bsd-port admin"
 
5784
 
 
5785
if test ! -s $srcdir/subdirs; then
 
5786
    TOPSUBDIRS=""
 
5787
  files=`cd $srcdir && ls -1`
 
5788
  dirs=`for i in $files; do if test -d $i; then echo $i; fi; done`
 
5789
  for i in $dirs; do
 
5790
    echo $i >> $srcdir/subdirs
 
5791
  done
 
5792
fi
 
5793
 
 
5794
if test -s $srcdir/inst-apps; then
 
5795
  ac_topsubdirs="`cat $srcdir/inst-apps`"
 
5796
else
 
5797
  ac_topsubdirs="`cat $srcdir/subdirs`"
 
5798
fi
 
5799
 
 
5800
for i in $ac_topsubdirs; do
 
5801
  echo $ac_n "checking if $i should be compiled""... $ac_c" 1>&6
 
5802
echo "configure:5803: checking if $i should be compiled" >&5
 
5803
  if test -d $srcdir/$i; then
 
5804
    install_it="yes"
 
5805
    for j in $DO_NOT_COMPILE; do
 
5806
      if test $i = $j; then
 
5807
        install_it="no"
 
5808
      fi
 
5809
    done
 
5810
  else
 
5811
    install_it="no"
 
5812
  fi
 
5813
  echo "$ac_t""$install_it" 1>&6
 
5814
  if test $install_it = "yes"; then
 
5815
    TOPSUBDIRS="$TOPSUBDIRS $i"
 
5816
  fi
 
5817
done
 
5818
 
 
5819
 
 
5820
 
 
5821
 
 
5822
trap '' 1 2 15
 
5823
cat > confcache <<\EOF
 
5824
# This file is a shell script that caches the results of configure
 
5825
# tests run on this system so they can be shared between configure
 
5826
# scripts and configure runs.  It is not useful on other systems.
 
5827
# If it contains results you don't want to keep, you may remove or edit it.
 
5828
#
 
5829
# By default, configure uses ./config.cache as the cache file,
 
5830
# creating it if it does not exist already.  You can give configure
 
5831
# the --cache-file=FILE option to use a different cache file; that is
 
5832
# what configure does when it calls configure scripts in
 
5833
# subdirectories, so they share the cache.
 
5834
# Giving --cache-file=/dev/null disables caching, for debugging configure.
 
5835
# config.status only pays attention to the cache file if you give it the
 
5836
# --recheck option to rerun configure.
 
5837
#
 
5838
EOF
 
5839
# The following way of writing the cache mishandles newlines in values,
 
5840
# but we know of no workaround that is simple, portable, and efficient.
 
5841
# So, don't put newlines in cache variables' values.
 
5842
# Ultrix sh set writes to stderr and can't be redirected directly,
 
5843
# and sets the high bit in the cache file unless we assign to the vars.
 
5844
(set) 2>&1 |
 
5845
  case `(ac_space=' '; set | grep ac_space) 2>&1` in
 
5846
  *ac_space=\ *)
 
5847
    # `set' does not quote correctly, so add quotes (double-quote substitution
 
5848
    # turns \\\\ into \\, and sed turns \\ into \).
 
5849
    sed -n \
 
5850
      -e "s/'/'\\\\''/g" \
 
5851
      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
 
5852
    ;;
 
5853
  *)
 
5854
    # `set' quotes correctly as required by POSIX, so do not add quotes.
 
5855
    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
 
5856
    ;;
 
5857
  esac >> confcache
 
5858
if cmp -s $cache_file confcache; then
 
5859
  :
 
5860
else
 
5861
  if test -w $cache_file; then
 
5862
    echo "updating cache $cache_file"
 
5863
    cat confcache > $cache_file
 
5864
  else
 
5865
    echo "not updating unwritable cache $cache_file"
 
5866
  fi
 
5867
fi
 
5868
rm -f confcache
 
5869
 
 
5870
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
 
5871
 
 
5872
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
5873
# Let make expand exec_prefix.
 
5874
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
5875
 
 
5876
# Any assignment to VPATH causes Sun make to only execute
 
5877
# the first set of double-colon rules, so remove it if not needed.
 
5878
# If there is a colon in the path, we need to keep it.
 
5879
if test "x$srcdir" = x.; then
 
5880
  ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
 
5881
fi
 
5882
 
 
5883
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
 
5884
 
 
5885
DEFS=-DHAVE_CONFIG_H
 
5886
 
 
5887
# Without the "./", some shells look in PATH for config.status.
 
5888
: ${CONFIG_STATUS=./config.status}
 
5889
 
 
5890
echo creating $CONFIG_STATUS
 
5891
rm -f $CONFIG_STATUS
 
5892
cat > $CONFIG_STATUS <<EOF
 
5893
#! /bin/sh
 
5894
# Generated automatically by configure.
 
5895
# Run this file to recreate the current configuration.
 
5896
# This directory was configured as follows,
 
5897
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
5898
#
 
5899
# $0 $ac_configure_args
 
5900
#
 
5901
# Compiler output produced by configure, useful for debugging
 
5902
# configure, is in ./config.log if it exists.
 
5903
 
 
5904
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
 
5905
for ac_option
 
5906
do
 
5907
  case "\$ac_option" in
 
5908
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
5909
    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
 
5910
    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
 
5911
  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
 
5912
    echo "$CONFIG_STATUS generated by autoconf version 2.13"
 
5913
    exit 0 ;;
 
5914
  -help | --help | --hel | --he | --h)
 
5915
    echo "\$ac_cs_usage"; exit 0 ;;
 
5916
  *) echo "\$ac_cs_usage"; exit 1 ;;
 
5917
  esac
 
5918
done
 
5919
 
 
5920
ac_given_srcdir=$srcdir
 
5921
ac_given_INSTALL="$INSTALL"
 
5922
 
 
5923
trap 'rm -fr `echo "Makefile linpsk/Makefile linpsk/docs/Makefile linpsk/docs/en/Makefile  config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
 
5924
EOF
 
5925
cat >> $CONFIG_STATUS <<EOF
 
5926
 
 
5927
# Protect against being on the right side of a sed subst in config.status.
 
5928
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
 
5929
 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
 
5930
$ac_vpsub
 
5931
$extrasub
 
5932
s%@SHELL@%$SHELL%g
 
5933
s%@CFLAGS@%$CFLAGS%g
 
5934
s%@CPPFLAGS@%$CPPFLAGS%g
 
5935
s%@CXXFLAGS@%$CXXFLAGS%g
 
5936
s%@FFLAGS@%$FFLAGS%g
 
5937
s%@DEFS@%$DEFS%g
 
5938
s%@LDFLAGS@%$LDFLAGS%g
 
5939
s%@LIBS@%$LIBS%g
 
5940
s%@exec_prefix@%$exec_prefix%g
 
5941
s%@prefix@%$prefix%g
 
5942
s%@program_transform_name@%$program_transform_name%g
 
5943
s%@bindir@%$bindir%g
 
5944
s%@sbindir@%$sbindir%g
 
5945
s%@libexecdir@%$libexecdir%g
 
5946
s%@datadir@%$datadir%g
 
5947
s%@sysconfdir@%$sysconfdir%g
 
5948
s%@sharedstatedir@%$sharedstatedir%g
 
5949
s%@localstatedir@%$localstatedir%g
 
5950
s%@libdir@%$libdir%g
 
5951
s%@includedir@%$includedir%g
 
5952
s%@oldincludedir@%$oldincludedir%g
 
5953
s%@infodir@%$infodir%g
 
5954
s%@mandir@%$mandir%g
 
5955
s%@host@%$host%g
 
5956
s%@host_alias@%$host_alias%g
 
5957
s%@host_cpu@%$host_cpu%g
 
5958
s%@host_vendor@%$host_vendor%g
 
5959
s%@host_os@%$host_os%g
 
5960
s%@target@%$target%g
 
5961
s%@target_alias@%$target_alias%g
 
5962
s%@target_cpu@%$target_cpu%g
 
5963
s%@target_vendor@%$target_vendor%g
 
5964
s%@target_os@%$target_os%g
 
5965
s%@build@%$build%g
 
5966
s%@build_alias@%$build_alias%g
 
5967
s%@build_cpu@%$build_cpu%g
 
5968
s%@build_vendor@%$build_vendor%g
 
5969
s%@build_os@%$build_os%g
 
5970
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
 
5971
s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
 
5972
s%@INSTALL_DATA@%$INSTALL_DATA%g
 
5973
s%@PACKAGE@%$PACKAGE%g
 
5974
s%@VERSION@%$VERSION%g
 
5975
s%@ACLOCAL@%$ACLOCAL%g
 
5976
s%@AUTOCONF@%$AUTOCONF%g
 
5977
s%@AUTOMAKE@%$AUTOMAKE%g
 
5978
s%@AUTOHEADER@%$AUTOHEADER%g
 
5979
s%@MAKEINFO@%$MAKEINFO%g
 
5980
s%@SET_MAKE@%$SET_MAKE%g
 
5981
s%@CC@%$CC%g
 
5982
s%@CPP@%$CPP%g
 
5983
s%@CXX@%$CXX%g
 
5984
s%@USE_EXCEPTIONS@%$USE_EXCEPTIONS%g
 
5985
s%@USE_RTTI@%$USE_RTTI%g
 
5986
s%@CXXCPP@%$CXXCPP%g
 
5987
s%@NOOPT_CXXFLAGS@%$NOOPT_CXXFLAGS%g
 
5988
s%@REPO@%$REPO%g
 
5989
s%@NOREPO@%$NOREPO%g
 
5990
s%@KDE_USE_FINAL_TRUE@%$KDE_USE_FINAL_TRUE%g
 
5991
s%@KDE_USE_FINAL_FALSE@%$KDE_USE_FINAL_FALSE%g
 
5992
s%@KDE_USE_CLOSURE_TRUE@%$KDE_USE_CLOSURE_TRUE%g
 
5993
s%@KDE_USE_CLOSURE_FALSE@%$KDE_USE_CLOSURE_FALSE%g
 
5994
s%@KDE_CXXFLAGS@%$KDE_CXXFLAGS%g
 
5995
s%@OBJEXT@%$OBJEXT%g
 
5996
s%@EXEEXT@%$EXEEXT%g
 
5997
s%@LN_S@%$LN_S%g
 
5998
s%@RANLIB@%$RANLIB%g
 
5999
s%@STRIP@%$STRIP%g
 
6000
s%@LIBTOOL@%$LIBTOOL%g
 
6001
s%@KDE_PLUGIN@%$KDE_PLUGIN%g
 
6002
s%@USER_INCLUDES@%$USER_INCLUDES%g
 
6003
s%@USER_LDFLAGS@%$USER_LDFLAGS%g
 
6004
s%@all_includes@%$all_includes%g
 
6005
s%@all_libraries@%$all_libraries%g
 
6006
s%@MSGFMT@%$MSGFMT%g
 
6007
s%@GMSGFMT@%$GMSGFMT%g
 
6008
s%@XGETTEXT@%$XGETTEXT%g
 
6009
s%@LIBCOMPAT@%$LIBCOMPAT%g
 
6010
s%@LIBCRYPT@%$LIBCRYPT%g
 
6011
s%@LIBSOCKET@%$LIBSOCKET%g
 
6012
s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
 
6013
s%@LIBUCB@%$LIBUCB%g
 
6014
s%@LIBDL@%$LIBDL%g
 
6015
s%@X_INCLUDES@%$X_INCLUDES%g
 
6016
s%@X_LDFLAGS@%$X_LDFLAGS%g
 
6017
s%@x_libraries@%$x_libraries%g
 
6018
s%@x_includes@%$x_includes%g
 
6019
s%@LIBSM@%$LIBSM%g
 
6020
s%@X_PRE_LIBS@%$X_PRE_LIBS%g
 
6021
s%@LIB_X11@%$LIB_X11%g
 
6022
s%@LIBZ@%$LIBZ%g
 
6023
s%@LIBPNG@%$LIBPNG%g
 
6024
s%@LIBJPEG@%$LIBJPEG%g
 
6025
s%@qt_libraries@%$qt_libraries%g
 
6026
s%@qt_includes@%$qt_includes%g
 
6027
s%@QT_INCLUDES@%$QT_INCLUDES%g
 
6028
s%@QT_LDFLAGS@%$QT_LDFLAGS%g
 
6029
s%@MOC@%$MOC%g
 
6030
s%@UIC@%$UIC%g
 
6031
s%@LIB_QT@%$LIB_QT%g
 
6032
s%@TOPSUBDIRS@%$TOPSUBDIRS%g
 
6033
 
 
6034
CEOF
 
6035
EOF
 
6036
 
 
6037
cat >> $CONFIG_STATUS <<\EOF
 
6038
 
 
6039
# Split the substitutions into bite-sized pieces for seds with
 
6040
# small command number limits, like on Digital OSF/1 and HP-UX.
 
6041
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
 
6042
ac_file=1 # Number of current file.
 
6043
ac_beg=1 # First line for current file.
 
6044
ac_end=$ac_max_sed_cmds # Line after last line for current file.
 
6045
ac_more_lines=:
 
6046
ac_sed_cmds=""
 
6047
while $ac_more_lines; do
 
6048
  if test $ac_beg -gt 1; then
 
6049
    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
 
6050
  else
 
6051
    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
 
6052
  fi
 
6053
  if test ! -s conftest.s$ac_file; then
 
6054
    ac_more_lines=false
 
6055
    rm -f conftest.s$ac_file
 
6056
  else
 
6057
    if test -z "$ac_sed_cmds"; then
 
6058
      ac_sed_cmds="sed -f conftest.s$ac_file"
 
6059
    else
 
6060
      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
 
6061
    fi
 
6062
    ac_file=`expr $ac_file + 1`
 
6063
    ac_beg=$ac_end
 
6064
    ac_end=`expr $ac_end + $ac_max_sed_cmds`
 
6065
  fi
 
6066
done
 
6067
if test -z "$ac_sed_cmds"; then
 
6068
  ac_sed_cmds=cat
 
6069
fi
 
6070
EOF
 
6071
 
 
6072
cat >> $CONFIG_STATUS <<EOF
 
6073
 
 
6074
CONFIG_FILES=\${CONFIG_FILES-"Makefile linpsk/Makefile linpsk/docs/Makefile linpsk/docs/en/Makefile "}
 
6075
EOF
 
6076
cat >> $CONFIG_STATUS <<\EOF
 
6077
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
 
6078
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
6079
  case "$ac_file" in
 
6080
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
 
6081
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
 
6082
  *) ac_file_in="${ac_file}.in" ;;
 
6083
  esac
 
6084
 
 
6085
  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
 
6086
 
 
6087
  # Remove last slash and all that follows it.  Not all systems have dirname.
 
6088
  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
 
6089
  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
 
6090
    # The file is in a subdirectory.
 
6091
    test ! -d "$ac_dir" && mkdir "$ac_dir"
 
6092
    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
 
6093
    # A "../" for each directory in $ac_dir_suffix.
 
6094
    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
 
6095
  else
 
6096
    ac_dir_suffix= ac_dots=
 
6097
  fi
 
6098
 
 
6099
  case "$ac_given_srcdir" in
 
6100
  .)  srcdir=.
 
6101
      if test -z "$ac_dots"; then top_srcdir=.
 
6102
      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
 
6103
  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
 
6104
  *) # Relative path.
 
6105
    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
 
6106
    top_srcdir="$ac_dots$ac_given_srcdir" ;;
 
6107
  esac
 
6108
 
 
6109
  case "$ac_given_INSTALL" in
 
6110
  [/$]*) INSTALL="$ac_given_INSTALL" ;;
 
6111
"") ;;
 
6112
  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
 
6113
  esac
 
6114
 
 
6115
  echo creating "$ac_file"
 
6116
  rm -f "$ac_file"
 
6117
  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
 
6118
  case "$ac_file" in
 
6119
  *Makefile*) ac_comsub="1i\\
 
6120
# $configure_input" ;;
 
6121
  *) ac_comsub= ;;
 
6122
  esac
 
6123
 
 
6124
  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
 
6125
  sed -e "$ac_comsub
 
6126
s%@configure_input@%$configure_input%g
 
6127
s%@srcdir@%$srcdir%g
 
6128
s%@top_srcdir@%$top_srcdir%g
 
6129
s%@INSTALL@%$INSTALL%g
 
6130
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
 
6131
fi; done
 
6132
rm -f conftest.s*
 
6133
 
 
6134
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
 
6135
# NAME is the cpp macro being defined and VALUE is the value it is being given.
 
6136
#
 
6137
# ac_d sets the value in "#define NAME VALUE" lines.
 
6138
ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
 
6139
ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
 
6140
ac_dC='\3'
 
6141
ac_dD='%g'
 
6142
# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
 
6143
ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
 
6144
ac_uB='\([      ]\)%\1#\2define\3'
 
6145
ac_uC=' '
 
6146
ac_uD='\4%g'
 
6147
# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
 
6148
ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
 
6149
ac_eB='$%\1#\2define\3'
 
6150
ac_eC=' '
 
6151
ac_eD='%g'
 
6152
 
 
6153
if test "${CONFIG_HEADERS+set}" != set; then
 
6154
EOF
 
6155
cat >> $CONFIG_STATUS <<EOF
 
6156
  CONFIG_HEADERS="config.h"
 
6157
EOF
 
6158
cat >> $CONFIG_STATUS <<\EOF
 
6159
fi
 
6160
for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
 
6161
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
6162
  case "$ac_file" in
 
6163
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
 
6164
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
 
6165
  *) ac_file_in="${ac_file}.in" ;;
 
6166
  esac
 
6167
 
 
6168
  echo creating $ac_file
 
6169
 
 
6170
  rm -f conftest.frag conftest.in conftest.out
 
6171
  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
 
6172
  cat $ac_file_inputs > conftest.in
 
6173
 
 
6174
EOF
 
6175
 
 
6176
# Transform confdefs.h into a sed script conftest.vals that substitutes
 
6177
# the proper values into config.h.in to produce config.h.  And first:
 
6178
# Protect against being on the right side of a sed subst in config.status.
 
6179
# Protect against being in an unquoted here document in config.status.
 
6180
rm -f conftest.vals
 
6181
cat > conftest.hdr <<\EOF
 
6182
s/[\\&%]/\\&/g
 
6183
s%[\\$`]%\\&%g
 
6184
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
 
6185
s%ac_d%ac_u%gp
 
6186
s%ac_u%ac_e%gp
 
6187
EOF
 
6188
sed -n -f conftest.hdr confdefs.h > conftest.vals
 
6189
rm -f conftest.hdr
 
6190
 
 
6191
# This sed command replaces #undef with comments.  This is necessary, for
 
6192
# example, in the case of _POSIX_SOURCE, which is predefined and required
 
6193
# on some systems where configure will not decide to define it.
 
6194
cat >> conftest.vals <<\EOF
 
6195
s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
 
6196
EOF
 
6197
 
 
6198
# Break up conftest.vals because some shells have a limit on
 
6199
# the size of here documents, and old seds have small limits too.
 
6200
 
 
6201
rm -f conftest.tail
 
6202
while :
 
6203
do
 
6204
  ac_lines=`grep -c . conftest.vals`
 
6205
  # grep -c gives empty output for an empty file on some AIX systems.
 
6206
  if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
 
6207
  # Write a limited-size here document to conftest.frag.
 
6208
  echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
 
6209
  sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
 
6210
  echo 'CEOF
 
6211
  sed -f conftest.frag conftest.in > conftest.out
 
6212
  rm -f conftest.in
 
6213
  mv conftest.out conftest.in
 
6214
' >> $CONFIG_STATUS
 
6215
  sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
 
6216
  rm -f conftest.vals
 
6217
  mv conftest.tail conftest.vals
 
6218
done
 
6219
rm -f conftest.vals
 
6220
 
 
6221
cat >> $CONFIG_STATUS <<\EOF
 
6222
  rm -f conftest.frag conftest.h
 
6223
  echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
 
6224
  cat conftest.in >> conftest.h
 
6225
  rm -f conftest.in
 
6226
  if cmp -s $ac_file conftest.h 2>/dev/null; then
 
6227
    echo "$ac_file is unchanged"
 
6228
    rm -f conftest.h
 
6229
  else
 
6230
    # Remove last slash and all that follows it.  Not all systems have dirname.
 
6231
      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
 
6232
      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
 
6233
      # The file is in a subdirectory.
 
6234
      test ! -d "$ac_dir" && mkdir "$ac_dir"
 
6235
    fi
 
6236
    rm -f $ac_file
 
6237
    mv conftest.h $ac_file
 
6238
  fi
 
6239
fi; done
 
6240
 
 
6241
EOF
 
6242
cat >> $CONFIG_STATUS <<EOF
 
6243
 
 
6244
 
 
6245
EOF
 
6246
cat >> $CONFIG_STATUS <<\EOF
 
6247
test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
 
6248
 
 
6249
exit 0
 
6250
EOF
 
6251
chmod +x $CONFIG_STATUS
 
6252
rm -fr confdefs* $ac_clean_files
 
6253
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
 
6254