A new fix, for some register restoral.
[wmaker-crm.git] / configure
blobbd5848df97ff786434a6d1d23cefeeaeb53c1276
1 #! /bin/sh
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15 --enable-shared[=PKGS] build shared libraries [default=yes]"
16 ac_help="$ac_help
17 --enable-static[=PKGS] build static libraries [default=yes]"
18 ac_help="$ac_help
19 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
20 ac_help="$ac_help
21 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
22 ac_help="$ac_help
23 --disable-libtool-lock avoid locking (might break parallel builds)"
24 ac_help="$ac_help
25 --with-libs-from pass compiler flags to look for libraries"
26 ac_help="$ac_help
27 --with-incs-from pass compiler flags to look for header files"
28 ac_help="$ac_help
29 --with-nlsdir=PATH specify where the locale stuff should go "
30 ac_help="$ac_help
31 --enable-gnome enable stuff needed for GNOME "
32 ac_help="$ac_help
33 --enable-kde enable support for KDE window manager (kwm) hints "
34 ac_help="$ac_help
35 --enable-openlook enable support for OPEN LOOK(tm) (olwm) hints "
36 ac_help="$ac_help
37 --enable-lite disable some stuff (dont use it) "
38 ac_help="$ac_help
39 --with-x use the X Window System"
40 ac_help="$ac_help
41 --disable-locale disable use of X locale support"
42 ac_help="$ac_help
43 --enable-modelock XKB keyboard language status support"
44 ac_help="$ac_help
45 --disable-shape disable shaped window extension support"
46 ac_help="$ac_help
47 --disable-shm disable usage of MIT-SHM extension"
48 ac_help="$ac_help
49 --disable-xpm disable use of XPM pixmaps through libXpm"
50 ac_help="$ac_help
51 --disable-png disable PNG support through libpng"
52 ac_help="$ac_help
53 --disable-jpeg disable JPEG support through libjpeg"
54 ac_help="$ac_help
55 --disable-gif disable GIF support through libgif or libungif"
56 ac_help="$ac_help
57 --disable-tiff disable use of TIFF images through libtiff"
58 ac_help="$ac_help
59 --enable-debug enable debugging "
60 ac_help="$ac_help
61 --disable-sound disable sound support "
62 ac_help="$ac_help
63 --with-pixmapdir=PATH specify where pixmaps are located [DATADIR/pixmaps]"
64 ac_help="$ac_help
65 --with-appspath=PATH specify the directory for GNUstep applications"
66 ac_help="$ac_help
67 --enable-single-icon use single application icon per WM_INSTANCE+WM_CLASS
69 ac_help="$ac_help
70 --enable-usermenu user defined menus for applications
73 # Initialize some variables set by options.
74 # The variables have the same names as the options, with
75 # dashes changed to underlines.
76 build=NONE
77 cache_file=./config.cache
78 exec_prefix=NONE
79 host=NONE
80 no_create=
81 nonopt=NONE
82 no_recursion=
83 prefix=NONE
84 program_prefix=NONE
85 program_suffix=NONE
86 program_transform_name=s,x,x,
87 silent=
88 site=
89 srcdir=
90 target=NONE
91 verbose=
92 x_includes=NONE
93 x_libraries=NONE
94 bindir='${exec_prefix}/bin'
95 sbindir='${exec_prefix}/sbin'
96 libexecdir='${exec_prefix}/libexec'
97 datadir='${prefix}/share'
98 sysconfdir='${prefix}/etc'
99 sharedstatedir='${prefix}/com'
100 localstatedir='${prefix}/var'
101 libdir='${exec_prefix}/lib'
102 includedir='${prefix}/include'
103 oldincludedir='/usr/include'
104 infodir='${prefix}/info'
105 mandir='${prefix}/man'
107 # Initialize some other variables.
108 subdirs=
109 MFLAGS= MAKEFLAGS=
110 SHELL=${CONFIG_SHELL-/bin/sh}
111 # Maximum number of lines to put in a shell here document.
112 ac_max_here_lines=12
114 ac_prev=
115 for ac_option
118 # If the previous option needs an argument, assign it.
119 if test -n "$ac_prev"; then
120 eval "$ac_prev=\$ac_option"
121 ac_prev=
122 continue
125 case "$ac_option" in
126 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
127 *) ac_optarg= ;;
128 esac
130 # Accept the important Cygnus configure options, so we can diagnose typos.
132 case "$ac_option" in
134 -bindir | --bindir | --bindi | --bind | --bin | --bi)
135 ac_prev=bindir ;;
136 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
137 bindir="$ac_optarg" ;;
139 -build | --build | --buil | --bui | --bu)
140 ac_prev=build ;;
141 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
142 build="$ac_optarg" ;;
144 -cache-file | --cache-file | --cache-fil | --cache-fi \
145 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
146 ac_prev=cache_file ;;
147 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
148 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
149 cache_file="$ac_optarg" ;;
151 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
152 ac_prev=datadir ;;
153 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
154 | --da=*)
155 datadir="$ac_optarg" ;;
157 -disable-* | --disable-*)
158 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
159 # Reject names that are not valid shell variable names.
160 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
161 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
163 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
164 eval "enable_${ac_feature}=no" ;;
166 -enable-* | --enable-*)
167 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
168 # Reject names that are not valid shell variable names.
169 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
170 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
172 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
173 case "$ac_option" in
174 *=*) ;;
175 *) ac_optarg=yes ;;
176 esac
177 eval "enable_${ac_feature}='$ac_optarg'" ;;
179 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
180 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
181 | --exec | --exe | --ex)
182 ac_prev=exec_prefix ;;
183 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
184 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
185 | --exec=* | --exe=* | --ex=*)
186 exec_prefix="$ac_optarg" ;;
188 -gas | --gas | --ga | --g)
189 # Obsolete; use --with-gas.
190 with_gas=yes ;;
192 -help | --help | --hel | --he)
193 # Omit some internal or obsolete options to make the list less imposing.
194 # This message is too long to be a string in the A/UX 3.1 sh.
195 cat << EOF
196 Usage: configure [options] [host]
197 Options: [defaults in brackets after descriptions]
198 Configuration:
199 --cache-file=FILE cache test results in FILE
200 --help print this message
201 --no-create do not create output files
202 --quiet, --silent do not print \`checking...' messages
203 --version print the version of autoconf that created configure
204 Directory and file names:
205 --prefix=PREFIX install architecture-independent files in PREFIX
206 [$ac_default_prefix]
207 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
208 [same as prefix]
209 --bindir=DIR user executables in DIR [EPREFIX/bin]
210 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
211 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
212 --datadir=DIR read-only architecture-independent data in DIR
213 [PREFIX/share]
214 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
215 --sharedstatedir=DIR modifiable architecture-independent data in DIR
216 [PREFIX/com]
217 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
218 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
219 --includedir=DIR C header files in DIR [PREFIX/include]
220 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
221 --infodir=DIR info documentation in DIR [PREFIX/info]
222 --mandir=DIR man documentation in DIR [PREFIX/man]
223 --srcdir=DIR find the sources in DIR [configure dir or ..]
224 --program-prefix=PREFIX prepend PREFIX to installed program names
225 --program-suffix=SUFFIX append SUFFIX to installed program names
226 --program-transform-name=PROGRAM
227 run sed PROGRAM on installed program names
229 cat << EOF
230 Host type:
231 --build=BUILD configure for building on BUILD [BUILD=HOST]
232 --host=HOST configure for HOST [guessed]
233 --target=TARGET configure for TARGET [TARGET=HOST]
234 Features and packages:
235 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
236 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
237 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
238 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
239 --x-includes=DIR X include files are in DIR
240 --x-libraries=DIR X library files are in DIR
242 if test -n "$ac_help"; then
243 echo "--enable and --with options recognized:$ac_help"
245 exit 0 ;;
247 -host | --host | --hos | --ho)
248 ac_prev=host ;;
249 -host=* | --host=* | --hos=* | --ho=*)
250 host="$ac_optarg" ;;
252 -includedir | --includedir | --includedi | --included | --include \
253 | --includ | --inclu | --incl | --inc)
254 ac_prev=includedir ;;
255 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
256 | --includ=* | --inclu=* | --incl=* | --inc=*)
257 includedir="$ac_optarg" ;;
259 -infodir | --infodir | --infodi | --infod | --info | --inf)
260 ac_prev=infodir ;;
261 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
262 infodir="$ac_optarg" ;;
264 -libdir | --libdir | --libdi | --libd)
265 ac_prev=libdir ;;
266 -libdir=* | --libdir=* | --libdi=* | --libd=*)
267 libdir="$ac_optarg" ;;
269 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
270 | --libexe | --libex | --libe)
271 ac_prev=libexecdir ;;
272 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
273 | --libexe=* | --libex=* | --libe=*)
274 libexecdir="$ac_optarg" ;;
276 -localstatedir | --localstatedir | --localstatedi | --localstated \
277 | --localstate | --localstat | --localsta | --localst \
278 | --locals | --local | --loca | --loc | --lo)
279 ac_prev=localstatedir ;;
280 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
281 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
282 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
283 localstatedir="$ac_optarg" ;;
285 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
286 ac_prev=mandir ;;
287 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
288 mandir="$ac_optarg" ;;
290 -nfp | --nfp | --nf)
291 # Obsolete; use --without-fp.
292 with_fp=no ;;
294 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
295 | --no-cr | --no-c)
296 no_create=yes ;;
298 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
299 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
300 no_recursion=yes ;;
302 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
303 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
304 | --oldin | --oldi | --old | --ol | --o)
305 ac_prev=oldincludedir ;;
306 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
307 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
308 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
309 oldincludedir="$ac_optarg" ;;
311 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
312 ac_prev=prefix ;;
313 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
314 prefix="$ac_optarg" ;;
316 -program-prefix | --program-prefix | --program-prefi | --program-pref \
317 | --program-pre | --program-pr | --program-p)
318 ac_prev=program_prefix ;;
319 -program-prefix=* | --program-prefix=* | --program-prefi=* \
320 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
321 program_prefix="$ac_optarg" ;;
323 -program-suffix | --program-suffix | --program-suffi | --program-suff \
324 | --program-suf | --program-su | --program-s)
325 ac_prev=program_suffix ;;
326 -program-suffix=* | --program-suffix=* | --program-suffi=* \
327 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
328 program_suffix="$ac_optarg" ;;
330 -program-transform-name | --program-transform-name \
331 | --program-transform-nam | --program-transform-na \
332 | --program-transform-n | --program-transform- \
333 | --program-transform | --program-transfor \
334 | --program-transfo | --program-transf \
335 | --program-trans | --program-tran \
336 | --progr-tra | --program-tr | --program-t)
337 ac_prev=program_transform_name ;;
338 -program-transform-name=* | --program-transform-name=* \
339 | --program-transform-nam=* | --program-transform-na=* \
340 | --program-transform-n=* | --program-transform-=* \
341 | --program-transform=* | --program-transfor=* \
342 | --program-transfo=* | --program-transf=* \
343 | --program-trans=* | --program-tran=* \
344 | --progr-tra=* | --program-tr=* | --program-t=*)
345 program_transform_name="$ac_optarg" ;;
347 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
348 | -silent | --silent | --silen | --sile | --sil)
349 silent=yes ;;
351 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
352 ac_prev=sbindir ;;
353 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
354 | --sbi=* | --sb=*)
355 sbindir="$ac_optarg" ;;
357 -sharedstatedir | --sharedstatedir | --sharedstatedi \
358 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
359 | --sharedst | --shareds | --shared | --share | --shar \
360 | --sha | --sh)
361 ac_prev=sharedstatedir ;;
362 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
363 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
364 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
365 | --sha=* | --sh=*)
366 sharedstatedir="$ac_optarg" ;;
368 -site | --site | --sit)
369 ac_prev=site ;;
370 -site=* | --site=* | --sit=*)
371 site="$ac_optarg" ;;
373 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
374 ac_prev=srcdir ;;
375 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
376 srcdir="$ac_optarg" ;;
378 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
379 | --syscon | --sysco | --sysc | --sys | --sy)
380 ac_prev=sysconfdir ;;
381 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
382 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
383 sysconfdir="$ac_optarg" ;;
385 -target | --target | --targe | --targ | --tar | --ta | --t)
386 ac_prev=target ;;
387 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
388 target="$ac_optarg" ;;
390 -v | -verbose | --verbose | --verbos | --verbo | --verb)
391 verbose=yes ;;
393 -version | --version | --versio | --versi | --vers)
394 echo "configure generated by autoconf version 2.13"
395 exit 0 ;;
397 -with-* | --with-*)
398 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
399 # Reject names that are not valid shell variable names.
400 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
401 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
403 ac_package=`echo $ac_package| sed 's/-/_/g'`
404 case "$ac_option" in
405 *=*) ;;
406 *) ac_optarg=yes ;;
407 esac
408 eval "with_${ac_package}='$ac_optarg'" ;;
410 -without-* | --without-*)
411 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
412 # Reject names that are not valid shell variable names.
413 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
414 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
416 ac_package=`echo $ac_package| sed 's/-/_/g'`
417 eval "with_${ac_package}=no" ;;
419 --x)
420 # Obsolete; use --with-x.
421 with_x=yes ;;
423 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
424 | --x-incl | --x-inc | --x-in | --x-i)
425 ac_prev=x_includes ;;
426 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
427 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
428 x_includes="$ac_optarg" ;;
430 -x-libraries | --x-libraries | --x-librarie | --x-librari \
431 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
432 ac_prev=x_libraries ;;
433 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
434 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
435 x_libraries="$ac_optarg" ;;
437 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
441 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
442 echo "configure: warning: $ac_option: invalid host type" 1>&2
444 if test "x$nonopt" != xNONE; then
445 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
447 nonopt="$ac_option"
450 esac
451 done
453 if test -n "$ac_prev"; then
454 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
457 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
459 # File descriptor usage:
460 # 0 standard input
461 # 1 file creation
462 # 2 errors and warnings
463 # 3 some systems may open it to /dev/tty
464 # 4 used on the Kubota Titan
465 # 6 checking for... messages and results
466 # 5 compiler messages saved in config.log
467 if test "$silent" = yes; then
468 exec 6>/dev/null
469 else
470 exec 6>&1
472 exec 5>./config.log
474 echo "\
475 This file contains any messages produced by compilers while
476 running configure, to aid debugging if configure makes a mistake.
477 " 1>&5
479 # Strip out --no-create and --no-recursion so they do not pile up.
480 # Also quote any args containing shell metacharacters.
481 ac_configure_args=
482 for ac_arg
484 case "$ac_arg" in
485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486 | --no-cr | --no-c) ;;
487 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
489 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
490 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
491 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
492 esac
493 done
495 # NLS nuisances.
496 # Only set these to C if already set. These must not be set unconditionally
497 # because not all systems understand e.g. LANG=C (notably SCO).
498 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
499 # Non-C LC_CTYPE values break the ctype check.
500 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
501 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
502 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
503 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
505 # confdefs.h avoids OS command line length limits that DEFS can exceed.
506 rm -rf conftest* confdefs.h
507 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
508 echo > confdefs.h
510 # A filename unique to this package, relative to the directory that
511 # configure is in, which we can look for to find out if srcdir is correct.
512 ac_unique_file=src/WindowMaker.h
514 # Find the source files, if location was not specified.
515 if test -z "$srcdir"; then
516 ac_srcdir_defaulted=yes
517 # Try the directory containing this script, then its parent.
518 ac_prog=$0
519 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
520 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
521 srcdir=$ac_confdir
522 if test ! -r $srcdir/$ac_unique_file; then
523 srcdir=..
525 else
526 ac_srcdir_defaulted=no
528 if test ! -r $srcdir/$ac_unique_file; then
529 if test "$ac_srcdir_defaulted" = yes; then
530 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
531 else
532 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
535 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
537 # Prefer explicitly selected file to automatically selected ones.
538 if test -z "$CONFIG_SITE"; then
539 if test "x$prefix" != xNONE; then
540 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
541 else
542 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
545 for ac_site_file in $CONFIG_SITE; do
546 if test -r "$ac_site_file"; then
547 echo "loading site script $ac_site_file"
548 . "$ac_site_file"
550 done
552 if test -r "$cache_file"; then
553 echo "loading cache $cache_file"
554 . $cache_file
555 else
556 echo "creating cache $cache_file"
557 > $cache_file
560 ac_ext=c
561 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
562 ac_cpp='$CPP $CPPFLAGS'
563 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
564 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
565 cross_compiling=$ac_cv_prog_cc_cross
567 ac_exeext=
568 ac_objext=o
569 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
570 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
571 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
572 ac_n= ac_c='
573 ' ac_t=' '
574 else
575 ac_n=-n ac_c= ac_t=
577 else
578 ac_n= ac_c='\c' ac_t=
585 ac_aux_dir=
586 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
587 if test -f $ac_dir/install-sh; then
588 ac_aux_dir=$ac_dir
589 ac_install_sh="$ac_aux_dir/install-sh -c"
590 break
591 elif test -f $ac_dir/install.sh; then
592 ac_aux_dir=$ac_dir
593 ac_install_sh="$ac_aux_dir/install.sh -c"
594 break
596 done
597 if test -z "$ac_aux_dir"; then
598 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
600 ac_config_guess=$ac_aux_dir/config.guess
601 ac_config_sub=$ac_aux_dir/config.sub
602 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
604 # Find a good install program. We prefer a C program (faster),
605 # so one script is as good as another. But avoid the broken or
606 # incompatible versions:
607 # SysV /etc/install, /usr/sbin/install
608 # SunOS /usr/etc/install
609 # IRIX /sbin/install
610 # AIX /bin/install
611 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
612 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
613 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
614 # ./install, which can be erroneously created by make from ./install.sh.
615 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
616 echo "configure:617: checking for a BSD compatible install" >&5
617 if test -z "$INSTALL"; then
618 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
619 echo $ac_n "(cached) $ac_c" 1>&6
620 else
621 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
622 for ac_dir in $PATH; do
623 # Account for people who put trailing slashes in PATH elements.
624 case "$ac_dir/" in
625 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
627 # OSF1 and SCO ODT 3.0 have their own names for install.
628 # Don't use installbsd from OSF since it installs stuff as root
629 # by default.
630 for ac_prog in ginstall scoinst install; do
631 if test -f $ac_dir/$ac_prog; then
632 if test $ac_prog = install &&
633 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
634 # AIX install. It has an incompatible calling convention.
636 else
637 ac_cv_path_install="$ac_dir/$ac_prog -c"
638 break 2
641 done
643 esac
644 done
645 IFS="$ac_save_IFS"
648 if test "${ac_cv_path_install+set}" = set; then
649 INSTALL="$ac_cv_path_install"
650 else
651 # As a last resort, use the slow shell script. We don't cache a
652 # path for INSTALL within a source directory, because that will
653 # break other packages using the cache if that directory is
654 # removed, or if the path is relative.
655 INSTALL="$ac_install_sh"
658 echo "$ac_t""$INSTALL" 1>&6
660 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
661 # It thinks the first close brace ends the variable substitution.
662 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
664 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
666 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
668 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
669 echo "configure:670: checking whether build environment is sane" >&5
670 # Just in case
671 sleep 1
672 echo timestamp > conftestfile
673 # Do `set' in a subshell so we don't clobber the current shell's
674 # arguments. Must try -L first in case configure is actually a
675 # symlink; some systems play weird games with the mod time of symlinks
676 # (eg FreeBSD returns the mod time of the symlink's containing
677 # directory).
678 if (
679 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
680 if test "$*" = "X"; then
681 # -L didn't work.
682 set X `ls -t $srcdir/configure conftestfile`
684 if test "$*" != "X $srcdir/configure conftestfile" \
685 && test "$*" != "X conftestfile $srcdir/configure"; then
687 # If neither matched, then we have a broken ls. This can happen
688 # if, for instance, CONFIG_SHELL is bash and it inherits a
689 # broken ls alias from the environment. This has actually
690 # happened. Such a system could not be considered "sane".
691 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
692 alias in your environment" 1>&2; exit 1; }
695 test "$2" = conftestfile
697 then
698 # Ok.
700 else
701 { echo "configure: error: newly created file is older than distributed files!
702 Check your system clock" 1>&2; exit 1; }
704 rm -f conftest*
705 echo "$ac_t""yes" 1>&6
706 if test "$program_transform_name" = s,x,x,; then
707 program_transform_name=
708 else
709 # Double any \ or $. echo might interpret backslashes.
710 cat <<\EOF_SED > conftestsed
711 s,\\,\\\\,g; s,\$,$$,g
712 EOF_SED
713 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
714 rm -f conftestsed
716 test "$program_prefix" != NONE &&
717 program_transform_name="s,^,${program_prefix},; $program_transform_name"
718 # Use a double $ so make ignores it.
719 test "$program_suffix" != NONE &&
720 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
722 # sed with no file args requires a program.
723 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
725 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
726 echo "configure:727: checking whether ${MAKE-make} sets \${MAKE}" >&5
727 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
728 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
729 echo $ac_n "(cached) $ac_c" 1>&6
730 else
731 cat > conftestmake <<\EOF
732 all:
733 @echo 'ac_maketemp="${MAKE}"'
735 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
736 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
737 if test -n "$ac_maketemp"; then
738 eval ac_cv_prog_make_${ac_make}_set=yes
739 else
740 eval ac_cv_prog_make_${ac_make}_set=no
742 rm -f conftestmake
744 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
745 echo "$ac_t""yes" 1>&6
746 SET_MAKE=
747 else
748 echo "$ac_t""no" 1>&6
749 SET_MAKE="MAKE=${MAKE-make}"
753 PACKAGE=WindowMaker
755 VERSION=0.62.0
757 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
758 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
760 cat >> confdefs.h <<EOF
761 #define PACKAGE "$PACKAGE"
764 cat >> confdefs.h <<EOF
765 #define VERSION "$VERSION"
770 missing_dir=`cd $ac_aux_dir && pwd`
771 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
772 echo "configure:773: checking for working aclocal" >&5
773 # Run test in a subshell; some versions of sh will print an error if
774 # an executable is not found, even if stderr is redirected.
775 # Redirect stdin to placate older versions of autoconf. Sigh.
776 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
777 ACLOCAL=aclocal
778 echo "$ac_t""found" 1>&6
779 else
780 ACLOCAL="$missing_dir/missing aclocal"
781 echo "$ac_t""missing" 1>&6
784 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
785 echo "configure:786: checking for working autoconf" >&5
786 # Run test in a subshell; some versions of sh will print an error if
787 # an executable is not found, even if stderr is redirected.
788 # Redirect stdin to placate older versions of autoconf. Sigh.
789 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
790 AUTOCONF=autoconf
791 echo "$ac_t""found" 1>&6
792 else
793 AUTOCONF="$missing_dir/missing autoconf"
794 echo "$ac_t""missing" 1>&6
797 echo $ac_n "checking for working automake""... $ac_c" 1>&6
798 echo "configure:799: checking for working automake" >&5
799 # Run test in a subshell; some versions of sh will print an error if
800 # an executable is not found, even if stderr is redirected.
801 # Redirect stdin to placate older versions of autoconf. Sigh.
802 if (automake --version) < /dev/null > /dev/null 2>&1; then
803 AUTOMAKE=automake
804 echo "$ac_t""found" 1>&6
805 else
806 AUTOMAKE="$missing_dir/missing automake"
807 echo "$ac_t""missing" 1>&6
810 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
811 echo "configure:812: checking for working autoheader" >&5
812 # Run test in a subshell; some versions of sh will print an error if
813 # an executable is not found, even if stderr is redirected.
814 # Redirect stdin to placate older versions of autoconf. Sigh.
815 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
816 AUTOHEADER=autoheader
817 echo "$ac_t""found" 1>&6
818 else
819 AUTOHEADER="$missing_dir/missing autoheader"
820 echo "$ac_t""missing" 1>&6
823 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
824 echo "configure:825: checking for working makeinfo" >&5
825 # Run test in a subshell; some versions of sh will print an error if
826 # an executable is not found, even if stderr is redirected.
827 # Redirect stdin to placate older versions of autoconf. Sigh.
828 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
829 MAKEINFO=makeinfo
830 echo "$ac_t""found" 1>&6
831 else
832 MAKEINFO="$missing_dir/missing makeinfo"
833 echo "$ac_t""missing" 1>&6
838 # Check whether --enable-shared or --disable-shared was given.
839 if test "${enable_shared+set}" = set; then
840 enableval="$enable_shared"
841 p=${PACKAGE-default}
842 case "$enableval" in
843 yes) enable_shared=yes ;;
844 no) enable_shared=no ;;
846 enable_shared=no
847 # Look at the argument we got. We use all the common list separators.
848 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
849 for pkg in $enableval; do
850 if test "X$pkg" = "X$p"; then
851 enable_shared=yes
853 done
854 IFS="$ac_save_ifs"
856 esac
857 else
858 enable_shared=yes
861 # Check whether --enable-static or --disable-static was given.
862 if test "${enable_static+set}" = set; then
863 enableval="$enable_static"
864 p=${PACKAGE-default}
865 case "$enableval" in
866 yes) enable_static=yes ;;
867 no) enable_static=no ;;
869 enable_static=no
870 # Look at the argument we got. We use all the common list separators.
871 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
872 for pkg in $enableval; do
873 if test "X$pkg" = "X$p"; then
874 enable_static=yes
876 done
877 IFS="$ac_save_ifs"
879 esac
880 else
881 enable_static=yes
884 # Check whether --enable-fast-install or --disable-fast-install was given.
885 if test "${enable_fast_install+set}" = set; then
886 enableval="$enable_fast_install"
887 p=${PACKAGE-default}
888 case "$enableval" in
889 yes) enable_fast_install=yes ;;
890 no) enable_fast_install=no ;;
892 enable_fast_install=no
893 # Look at the argument we got. We use all the common list separators.
894 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
895 for pkg in $enableval; do
896 if test "X$pkg" = "X$p"; then
897 enable_fast_install=yes
899 done
900 IFS="$ac_save_ifs"
902 esac
903 else
904 enable_fast_install=yes
908 # Make sure we can run config.sub.
909 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
910 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
913 echo $ac_n "checking host system type""... $ac_c" 1>&6
914 echo "configure:915: checking host system type" >&5
916 host_alias=$host
917 case "$host_alias" in
918 NONE)
919 case $nonopt in
920 NONE)
921 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
922 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
923 fi ;;
924 *) host_alias=$nonopt ;;
925 esac ;;
926 esac
928 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
929 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
930 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
931 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
932 echo "$ac_t""$host" 1>&6
934 echo $ac_n "checking build system type""... $ac_c" 1>&6
935 echo "configure:936: checking build system type" >&5
937 build_alias=$build
938 case "$build_alias" in
939 NONE)
940 case $nonopt in
941 NONE) build_alias=$host_alias ;;
942 *) build_alias=$nonopt ;;
943 esac ;;
944 esac
946 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
947 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
948 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
949 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
950 echo "$ac_t""$build" 1>&6
952 # Extract the first word of "ranlib", so it can be a program name with args.
953 set dummy ranlib; ac_word=$2
954 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
955 echo "configure:956: checking for $ac_word" >&5
956 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
957 echo $ac_n "(cached) $ac_c" 1>&6
958 else
959 if test -n "$RANLIB"; then
960 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
961 else
962 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
963 ac_dummy="$PATH"
964 for ac_dir in $ac_dummy; do
965 test -z "$ac_dir" && ac_dir=.
966 if test -f $ac_dir/$ac_word; then
967 ac_cv_prog_RANLIB="ranlib"
968 break
970 done
971 IFS="$ac_save_ifs"
972 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
975 RANLIB="$ac_cv_prog_RANLIB"
976 if test -n "$RANLIB"; then
977 echo "$ac_t""$RANLIB" 1>&6
978 else
979 echo "$ac_t""no" 1>&6
982 # Extract the first word of "gcc", so it can be a program name with args.
983 set dummy gcc; ac_word=$2
984 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
985 echo "configure:986: checking for $ac_word" >&5
986 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
987 echo $ac_n "(cached) $ac_c" 1>&6
988 else
989 if test -n "$CC"; then
990 ac_cv_prog_CC="$CC" # Let the user override the test.
991 else
992 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
993 ac_dummy="$PATH"
994 for ac_dir in $ac_dummy; do
995 test -z "$ac_dir" && ac_dir=.
996 if test -f $ac_dir/$ac_word; then
997 ac_cv_prog_CC="gcc"
998 break
1000 done
1001 IFS="$ac_save_ifs"
1004 CC="$ac_cv_prog_CC"
1005 if test -n "$CC"; then
1006 echo "$ac_t""$CC" 1>&6
1007 else
1008 echo "$ac_t""no" 1>&6
1011 if test -z "$CC"; then
1012 # Extract the first word of "cc", so it can be a program name with args.
1013 set dummy cc; ac_word=$2
1014 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1015 echo "configure:1016: checking for $ac_word" >&5
1016 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1017 echo $ac_n "(cached) $ac_c" 1>&6
1018 else
1019 if test -n "$CC"; then
1020 ac_cv_prog_CC="$CC" # Let the user override the test.
1021 else
1022 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1023 ac_prog_rejected=no
1024 ac_dummy="$PATH"
1025 for ac_dir in $ac_dummy; do
1026 test -z "$ac_dir" && ac_dir=.
1027 if test -f $ac_dir/$ac_word; then
1028 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1029 ac_prog_rejected=yes
1030 continue
1032 ac_cv_prog_CC="cc"
1033 break
1035 done
1036 IFS="$ac_save_ifs"
1037 if test $ac_prog_rejected = yes; then
1038 # We found a bogon in the path, so make sure we never use it.
1039 set dummy $ac_cv_prog_CC
1040 shift
1041 if test $# -gt 0; then
1042 # We chose a different compiler from the bogus one.
1043 # However, it has the same basename, so the bogon will be chosen
1044 # first if we set CC to just the basename; use the full file name.
1045 shift
1046 set dummy "$ac_dir/$ac_word" "$@"
1047 shift
1048 ac_cv_prog_CC="$@"
1053 CC="$ac_cv_prog_CC"
1054 if test -n "$CC"; then
1055 echo "$ac_t""$CC" 1>&6
1056 else
1057 echo "$ac_t""no" 1>&6
1060 if test -z "$CC"; then
1061 case "`uname -s`" in
1062 *win32* | *WIN32*)
1063 # Extract the first word of "cl", so it can be a program name with args.
1064 set dummy cl; ac_word=$2
1065 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1066 echo "configure:1067: checking for $ac_word" >&5
1067 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1068 echo $ac_n "(cached) $ac_c" 1>&6
1069 else
1070 if test -n "$CC"; then
1071 ac_cv_prog_CC="$CC" # Let the user override the test.
1072 else
1073 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1074 ac_dummy="$PATH"
1075 for ac_dir in $ac_dummy; do
1076 test -z "$ac_dir" && ac_dir=.
1077 if test -f $ac_dir/$ac_word; then
1078 ac_cv_prog_CC="cl"
1079 break
1081 done
1082 IFS="$ac_save_ifs"
1085 CC="$ac_cv_prog_CC"
1086 if test -n "$CC"; then
1087 echo "$ac_t""$CC" 1>&6
1088 else
1089 echo "$ac_t""no" 1>&6
1092 esac
1094 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1097 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1098 echo "configure:1099: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1100 ac_ext=c
1101 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1102 ac_cpp='$CPP $CPPFLAGS'
1103 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1104 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1105 cross_compiling=$ac_cv_prog_cc_cross
1107 cat > conftest.$ac_ext << EOF
1109 #line 1110 "configure"
1110 #include "confdefs.h"
1112 main(){return(0);}
1114 if { (eval echo configure:1115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1115 ac_cv_prog_cc_works=yes
1116 # If we can't run a trivial program, we are probably using a cross compiler.
1117 if (./conftest; exit) 2>/dev/null; then
1118 ac_cv_prog_cc_cross=no
1119 else
1120 ac_cv_prog_cc_cross=yes
1122 else
1123 echo "configure: failed program was:" >&5
1124 cat conftest.$ac_ext >&5
1125 ac_cv_prog_cc_works=no
1127 rm -fr conftest*
1128 ac_ext=c
1129 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1130 ac_cpp='$CPP $CPPFLAGS'
1131 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1132 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1133 cross_compiling=$ac_cv_prog_cc_cross
1135 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1136 if test $ac_cv_prog_cc_works = no; then
1137 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1139 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1140 echo "configure:1141: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1141 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1142 cross_compiling=$ac_cv_prog_cc_cross
1144 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1145 echo "configure:1146: checking whether we are using GNU C" >&5
1146 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1147 echo $ac_n "(cached) $ac_c" 1>&6
1148 else
1149 cat > conftest.c <<EOF
1150 #ifdef __GNUC__
1151 yes;
1152 #endif
1154 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1155: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1155 ac_cv_prog_gcc=yes
1156 else
1157 ac_cv_prog_gcc=no
1161 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1163 if test $ac_cv_prog_gcc = yes; then
1164 GCC=yes
1165 else
1166 GCC=
1169 ac_test_CFLAGS="${CFLAGS+set}"
1170 ac_save_CFLAGS="$CFLAGS"
1171 CFLAGS=
1172 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1173 echo "configure:1174: checking whether ${CC-cc} accepts -g" >&5
1174 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1175 echo $ac_n "(cached) $ac_c" 1>&6
1176 else
1177 echo 'void f(){}' > conftest.c
1178 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1179 ac_cv_prog_cc_g=yes
1180 else
1181 ac_cv_prog_cc_g=no
1183 rm -f conftest*
1187 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1188 if test "$ac_test_CFLAGS" = set; then
1189 CFLAGS="$ac_save_CFLAGS"
1190 elif test $ac_cv_prog_cc_g = yes; then
1191 if test "$GCC" = yes; then
1192 CFLAGS="-g -O2"
1193 else
1194 CFLAGS="-g"
1196 else
1197 if test "$GCC" = yes; then
1198 CFLAGS="-O2"
1199 else
1200 CFLAGS=
1204 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1205 if test "${with_gnu_ld+set}" = set; then
1206 withval="$with_gnu_ld"
1207 test "$withval" = no || with_gnu_ld=yes
1208 else
1209 with_gnu_ld=no
1212 ac_prog=ld
1213 if test "$ac_cv_prog_gcc" = yes; then
1214 # Check if gcc -print-prog-name=ld gives a path.
1215 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1216 echo "configure:1217: checking for ld used by GCC" >&5
1217 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1218 case "$ac_prog" in
1219 # Accept absolute paths.
1220 [\\/]* | [A-Za-z]:[\\/]*)
1221 re_direlt='/[^/][^/]*/\.\./'
1222 # Canonicalize the path of ld
1223 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1224 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1225 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1226 done
1227 test -z "$LD" && LD="$ac_prog"
1230 # If it fails, then pretend we aren't using GCC.
1231 ac_prog=ld
1234 # If it is relative, then search for the first ld in PATH.
1235 with_gnu_ld=unknown
1237 esac
1238 elif test "$with_gnu_ld" = yes; then
1239 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1240 echo "configure:1241: checking for GNU ld" >&5
1241 else
1242 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1243 echo "configure:1244: checking for non-GNU ld" >&5
1245 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1246 echo $ac_n "(cached) $ac_c" 1>&6
1247 else
1248 if test -z "$LD"; then
1249 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1250 for ac_dir in $PATH; do
1251 test -z "$ac_dir" && ac_dir=.
1252 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1253 ac_cv_path_LD="$ac_dir/$ac_prog"
1254 # Check to see if the program is GNU ld. I'd rather use --version,
1255 # but apparently some GNU ld's only accept -v.
1256 # Break only if it was the GNU/non-GNU ld that we prefer.
1257 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1258 test "$with_gnu_ld" != no && break
1259 else
1260 test "$with_gnu_ld" != yes && break
1263 done
1264 IFS="$ac_save_ifs"
1265 else
1266 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1270 LD="$ac_cv_path_LD"
1271 if test -n "$LD"; then
1272 echo "$ac_t""$LD" 1>&6
1273 else
1274 echo "$ac_t""no" 1>&6
1276 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1278 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1279 echo "configure:1280: checking if the linker ($LD) is GNU ld" >&5
1280 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1281 echo $ac_n "(cached) $ac_c" 1>&6
1282 else
1283 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1284 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1285 ac_cv_prog_gnu_ld=yes
1286 else
1287 ac_cv_prog_gnu_ld=no
1291 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1294 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1295 echo "configure:1296: checking for BSD-compatible nm" >&5
1296 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1297 echo $ac_n "(cached) $ac_c" 1>&6
1298 else
1299 if test -n "$NM"; then
1300 # Let the user override the test.
1301 ac_cv_path_NM="$NM"
1302 else
1303 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1304 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1305 test -z "$ac_dir" && ac_dir=.
1306 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
1307 # Check to see if the nm accepts a BSD-compat flag.
1308 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1309 # nm: unknown option "B" ignored
1310 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1311 ac_cv_path_NM="$ac_dir/nm -B"
1312 break
1313 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1314 ac_cv_path_NM="$ac_dir/nm -p"
1315 break
1316 else
1317 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1318 continue # so that we can try to find one that supports BSD flags
1321 done
1322 IFS="$ac_save_ifs"
1323 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1327 NM="$ac_cv_path_NM"
1328 echo "$ac_t""$NM" 1>&6
1331 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1332 echo "configure:1333: checking whether ln -s works" >&5
1333 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1334 echo $ac_n "(cached) $ac_c" 1>&6
1335 else
1336 rm -f conftestdata
1337 if ln -s X conftestdata 2>/dev/null
1338 then
1339 rm -f conftestdata
1340 ac_cv_prog_LN_S="ln -s"
1341 else
1342 ac_cv_prog_LN_S=ln
1345 LN_S="$ac_cv_prog_LN_S"
1346 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1347 echo "$ac_t""yes" 1>&6
1348 else
1349 echo "$ac_t""no" 1>&6
1353 # Check for any special flags to pass to ltconfig.
1354 libtool_flags="--cache-file=$cache_file"
1355 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1356 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1357 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1358 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1359 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1362 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1363 if test "${enable_libtool_lock+set}" = set; then
1364 enableval="$enable_libtool_lock"
1368 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1369 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1371 # Some flags need to be propagated to the compiler or linker for good
1372 # libtool support.
1373 case "$host" in
1374 *-*-irix6*)
1375 # Find out which ABI we are using.
1376 echo '#line 1377 "configure"' > conftest.$ac_ext
1377 if { (eval echo configure:1378: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1378 case "`/usr/bin/file conftest.o`" in
1379 *32-bit*)
1380 LD="${LD-ld} -32"
1382 *N32*)
1383 LD="${LD-ld} -n32"
1385 *64-bit*)
1386 LD="${LD-ld} -64"
1388 esac
1390 rm -rf conftest*
1393 *-*-sco3.2v5*)
1394 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1395 SAVE_CFLAGS="$CFLAGS"
1396 CFLAGS="$CFLAGS -belf"
1397 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1398 echo "configure:1399: checking whether the C compiler needs -belf" >&5
1399 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1400 echo $ac_n "(cached) $ac_c" 1>&6
1401 else
1402 cat > conftest.$ac_ext <<EOF
1403 #line 1404 "configure"
1404 #include "confdefs.h"
1406 int main() {
1408 ; return 0; }
1410 if { (eval echo configure:1411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1411 rm -rf conftest*
1412 lt_cv_cc_needs_belf=yes
1413 else
1414 echo "configure: failed program was:" >&5
1415 cat conftest.$ac_ext >&5
1416 rm -rf conftest*
1417 lt_cv_cc_needs_belf=no
1419 rm -f conftest*
1422 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1423 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1424 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1425 CFLAGS="$SAVE_CFLAGS"
1430 esac
1433 # Save cache, so that ltconfig can load it
1434 cat > confcache <<\EOF
1435 # This file is a shell script that caches the results of configure
1436 # tests run on this system so they can be shared between configure
1437 # scripts and configure runs. It is not useful on other systems.
1438 # If it contains results you don't want to keep, you may remove or edit it.
1440 # By default, configure uses ./config.cache as the cache file,
1441 # creating it if it does not exist already. You can give configure
1442 # the --cache-file=FILE option to use a different cache file; that is
1443 # what configure does when it calls configure scripts in
1444 # subdirectories, so they share the cache.
1445 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1446 # config.status only pays attention to the cache file if you give it the
1447 # --recheck option to rerun configure.
1450 # The following way of writing the cache mishandles newlines in values,
1451 # but we know of no workaround that is simple, portable, and efficient.
1452 # So, don't put newlines in cache variables' values.
1453 # Ultrix sh set writes to stderr and can't be redirected directly,
1454 # and sets the high bit in the cache file unless we assign to the vars.
1455 (set) 2>&1 |
1456 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1457 *ac_space=\ *)
1458 # `set' does not quote correctly, so add quotes (double-quote substitution
1459 # turns \\\\ into \\, and sed turns \\ into \).
1460 sed -n \
1461 -e "s/'/'\\\\''/g" \
1462 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1465 # `set' quotes correctly as required by POSIX, so do not add quotes.
1466 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1468 esac >> confcache
1469 if cmp -s $cache_file confcache; then
1471 else
1472 if test -w $cache_file; then
1473 echo "updating cache $cache_file"
1474 cat confcache > $cache_file
1475 else
1476 echo "not updating unwritable cache $cache_file"
1479 rm -f confcache
1482 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1483 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1484 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
1485 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
1486 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
1487 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
1488 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
1489 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1491 # Reload cache, that may have been modified by ltconfig
1492 if test -r "$cache_file"; then
1493 echo "loading cache $cache_file"
1494 . $cache_file
1495 else
1496 echo "creating cache $cache_file"
1497 > $cache_file
1501 # This can be used to rebuild libtool when needed
1502 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1504 # Always use our own libtool.
1505 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1507 # Redirect the config.log output again, so that the ltconfig log is not
1508 # clobbered by the next message.
1509 exec 5>>./config.log
1512 # by Marcelo Magallon <mmagallo@efis.ucr.ac.cr>
1513 # Turn around -rpath problem with libtool 1.0c
1514 # This define should be improbable enough to not conflict with anything
1515 case ${host} in
1516 *-pc-linux-gnu)
1517 echo "$ac_t""Fixing libtool for -rpath problems." 1>&6
1518 sed < libtool > libtool-2 \
1519 's/^hardcode_libdir_flag_spec.*$/hardcode_libdir_flag_spec=" -D__LIBTOOL_IS_A_FOOL__ "/'
1520 mv libtool-2 libtool
1521 chmod 755 libtool
1523 esac
1532 # Make sure we can run config.sub.
1533 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1534 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1537 echo $ac_n "checking host system type""... $ac_c" 1>&6
1538 echo "configure:1539: checking host system type" >&5
1540 host_alias=$host
1541 case "$host_alias" in
1542 NONE)
1543 case $nonopt in
1544 NONE)
1545 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1546 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1547 fi ;;
1548 *) host_alias=$nonopt ;;
1549 esac ;;
1550 esac
1552 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1553 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1554 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1555 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1556 echo "$ac_t""$host" 1>&6
1560 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1561 echo "configure:1562: checking for POSIXized ISC" >&5
1562 if test -d /etc/conf/kconfig.d &&
1563 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1564 then
1565 echo "$ac_t""yes" 1>&6
1566 ISC=yes # If later tests want to check for ISC.
1567 cat >> confdefs.h <<\EOF
1568 #define _POSIX_SOURCE 1
1571 if test "$GCC" = yes; then
1572 CC="$CC -posix"
1573 else
1574 CC="$CC -Xp"
1576 else
1577 echo "$ac_t""no" 1>&6
1578 ISC=
1581 # Extract the first word of "gcc", so it can be a program name with args.
1582 set dummy gcc; ac_word=$2
1583 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1584 echo "configure:1585: checking for $ac_word" >&5
1585 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1586 echo $ac_n "(cached) $ac_c" 1>&6
1587 else
1588 if test -n "$CC"; then
1589 ac_cv_prog_CC="$CC" # Let the user override the test.
1590 else
1591 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1592 ac_dummy="$PATH"
1593 for ac_dir in $ac_dummy; do
1594 test -z "$ac_dir" && ac_dir=.
1595 if test -f $ac_dir/$ac_word; then
1596 ac_cv_prog_CC="gcc"
1597 break
1599 done
1600 IFS="$ac_save_ifs"
1603 CC="$ac_cv_prog_CC"
1604 if test -n "$CC"; then
1605 echo "$ac_t""$CC" 1>&6
1606 else
1607 echo "$ac_t""no" 1>&6
1610 if test -z "$CC"; then
1611 # Extract the first word of "cc", so it can be a program name with args.
1612 set dummy cc; ac_word=$2
1613 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1614 echo "configure:1615: checking for $ac_word" >&5
1615 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1616 echo $ac_n "(cached) $ac_c" 1>&6
1617 else
1618 if test -n "$CC"; then
1619 ac_cv_prog_CC="$CC" # Let the user override the test.
1620 else
1621 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1622 ac_prog_rejected=no
1623 ac_dummy="$PATH"
1624 for ac_dir in $ac_dummy; do
1625 test -z "$ac_dir" && ac_dir=.
1626 if test -f $ac_dir/$ac_word; then
1627 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1628 ac_prog_rejected=yes
1629 continue
1631 ac_cv_prog_CC="cc"
1632 break
1634 done
1635 IFS="$ac_save_ifs"
1636 if test $ac_prog_rejected = yes; then
1637 # We found a bogon in the path, so make sure we never use it.
1638 set dummy $ac_cv_prog_CC
1639 shift
1640 if test $# -gt 0; then
1641 # We chose a different compiler from the bogus one.
1642 # However, it has the same basename, so the bogon will be chosen
1643 # first if we set CC to just the basename; use the full file name.
1644 shift
1645 set dummy "$ac_dir/$ac_word" "$@"
1646 shift
1647 ac_cv_prog_CC="$@"
1652 CC="$ac_cv_prog_CC"
1653 if test -n "$CC"; then
1654 echo "$ac_t""$CC" 1>&6
1655 else
1656 echo "$ac_t""no" 1>&6
1659 if test -z "$CC"; then
1660 case "`uname -s`" in
1661 *win32* | *WIN32*)
1662 # Extract the first word of "cl", so it can be a program name with args.
1663 set dummy cl; ac_word=$2
1664 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1665 echo "configure:1666: checking for $ac_word" >&5
1666 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1667 echo $ac_n "(cached) $ac_c" 1>&6
1668 else
1669 if test -n "$CC"; then
1670 ac_cv_prog_CC="$CC" # Let the user override the test.
1671 else
1672 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1673 ac_dummy="$PATH"
1674 for ac_dir in $ac_dummy; do
1675 test -z "$ac_dir" && ac_dir=.
1676 if test -f $ac_dir/$ac_word; then
1677 ac_cv_prog_CC="cl"
1678 break
1680 done
1681 IFS="$ac_save_ifs"
1684 CC="$ac_cv_prog_CC"
1685 if test -n "$CC"; then
1686 echo "$ac_t""$CC" 1>&6
1687 else
1688 echo "$ac_t""no" 1>&6
1691 esac
1693 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1696 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1697 echo "configure:1698: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1699 ac_ext=c
1700 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1701 ac_cpp='$CPP $CPPFLAGS'
1702 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1703 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1704 cross_compiling=$ac_cv_prog_cc_cross
1706 cat > conftest.$ac_ext << EOF
1708 #line 1709 "configure"
1709 #include "confdefs.h"
1711 main(){return(0);}
1713 if { (eval echo configure:1714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1714 ac_cv_prog_cc_works=yes
1715 # If we can't run a trivial program, we are probably using a cross compiler.
1716 if (./conftest; exit) 2>/dev/null; then
1717 ac_cv_prog_cc_cross=no
1718 else
1719 ac_cv_prog_cc_cross=yes
1721 else
1722 echo "configure: failed program was:" >&5
1723 cat conftest.$ac_ext >&5
1724 ac_cv_prog_cc_works=no
1726 rm -fr conftest*
1727 ac_ext=c
1728 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1729 ac_cpp='$CPP $CPPFLAGS'
1730 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1731 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1732 cross_compiling=$ac_cv_prog_cc_cross
1734 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1735 if test $ac_cv_prog_cc_works = no; then
1736 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1738 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1739 echo "configure:1740: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1740 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1741 cross_compiling=$ac_cv_prog_cc_cross
1743 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1744 echo "configure:1745: checking whether we are using GNU C" >&5
1745 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1746 echo $ac_n "(cached) $ac_c" 1>&6
1747 else
1748 cat > conftest.c <<EOF
1749 #ifdef __GNUC__
1750 yes;
1751 #endif
1753 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1754: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1754 ac_cv_prog_gcc=yes
1755 else
1756 ac_cv_prog_gcc=no
1760 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1762 if test $ac_cv_prog_gcc = yes; then
1763 GCC=yes
1764 else
1765 GCC=
1768 ac_test_CFLAGS="${CFLAGS+set}"
1769 ac_save_CFLAGS="$CFLAGS"
1770 CFLAGS=
1771 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1772 echo "configure:1773: checking whether ${CC-cc} accepts -g" >&5
1773 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1774 echo $ac_n "(cached) $ac_c" 1>&6
1775 else
1776 echo 'void f(){}' > conftest.c
1777 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1778 ac_cv_prog_cc_g=yes
1779 else
1780 ac_cv_prog_cc_g=no
1782 rm -f conftest*
1786 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1787 if test "$ac_test_CFLAGS" = set; then
1788 CFLAGS="$ac_save_CFLAGS"
1789 elif test $ac_cv_prog_cc_g = yes; then
1790 if test "$GCC" = yes; then
1791 CFLAGS="-g -O2"
1792 else
1793 CFLAGS="-g"
1795 else
1796 if test "$GCC" = yes; then
1797 CFLAGS="-O2"
1798 else
1799 CFLAGS=
1803 #AC_PROG_RANLIB
1804 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1805 echo "configure:1806: checking whether ln -s works" >&5
1806 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1807 echo $ac_n "(cached) $ac_c" 1>&6
1808 else
1809 rm -f conftestdata
1810 if ln -s X conftestdata 2>/dev/null
1811 then
1812 rm -f conftestdata
1813 ac_cv_prog_LN_S="ln -s"
1814 else
1815 ac_cv_prog_LN_S=ln
1818 LN_S="$ac_cv_prog_LN_S"
1819 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1820 echo "$ac_t""yes" 1>&6
1821 else
1822 echo "$ac_t""no" 1>&6
1825 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1826 echo "configure:1827: checking how to run the C preprocessor" >&5
1827 # On Suns, sometimes $CPP names a directory.
1828 if test -n "$CPP" && test -d "$CPP"; then
1829 CPP=
1831 if test -z "$CPP"; then
1832 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1833 echo $ac_n "(cached) $ac_c" 1>&6
1834 else
1835 # This must be in double quotes, not single quotes, because CPP may get
1836 # substituted into the Makefile and "${CC-cc}" will confuse make.
1837 CPP="${CC-cc} -E"
1838 # On the NeXT, cc -E runs the code through the compiler's parser,
1839 # not just through cpp.
1840 cat > conftest.$ac_ext <<EOF
1841 #line 1842 "configure"
1842 #include "confdefs.h"
1843 #include <assert.h>
1844 Syntax Error
1846 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1847 { (eval echo configure:1848: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1848 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1849 if test -z "$ac_err"; then
1851 else
1852 echo "$ac_err" >&5
1853 echo "configure: failed program was:" >&5
1854 cat conftest.$ac_ext >&5
1855 rm -rf conftest*
1856 CPP="${CC-cc} -E -traditional-cpp"
1857 cat > conftest.$ac_ext <<EOF
1858 #line 1859 "configure"
1859 #include "confdefs.h"
1860 #include <assert.h>
1861 Syntax Error
1863 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1864 { (eval echo configure:1865: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1865 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1866 if test -z "$ac_err"; then
1868 else
1869 echo "$ac_err" >&5
1870 echo "configure: failed program was:" >&5
1871 cat conftest.$ac_ext >&5
1872 rm -rf conftest*
1873 CPP="${CC-cc} -nologo -E"
1874 cat > conftest.$ac_ext <<EOF
1875 #line 1876 "configure"
1876 #include "confdefs.h"
1877 #include <assert.h>
1878 Syntax Error
1880 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1881 { (eval echo configure:1882: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1882 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1883 if test -z "$ac_err"; then
1885 else
1886 echo "$ac_err" >&5
1887 echo "configure: failed program was:" >&5
1888 cat conftest.$ac_ext >&5
1889 rm -rf conftest*
1890 CPP=/lib/cpp
1892 rm -f conftest*
1894 rm -f conftest*
1896 rm -f conftest*
1897 ac_cv_prog_CPP="$CPP"
1899 CPP="$ac_cv_prog_CPP"
1900 else
1901 ac_cv_prog_CPP="$CPP"
1903 echo "$ac_t""$CPP" 1>&6
1905 if test $ac_cv_prog_gcc = yes; then
1906 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1907 echo "configure:1908: checking whether ${CC-cc} needs -traditional" >&5
1908 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1909 echo $ac_n "(cached) $ac_c" 1>&6
1910 else
1911 ac_pattern="Autoconf.*'x'"
1912 cat > conftest.$ac_ext <<EOF
1913 #line 1914 "configure"
1914 #include "confdefs.h"
1915 #include <sgtty.h>
1916 Autoconf TIOCGETP
1918 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1919 egrep "$ac_pattern" >/dev/null 2>&1; then
1920 rm -rf conftest*
1921 ac_cv_prog_gcc_traditional=yes
1922 else
1923 rm -rf conftest*
1924 ac_cv_prog_gcc_traditional=no
1926 rm -f conftest*
1929 if test $ac_cv_prog_gcc_traditional = no; then
1930 cat > conftest.$ac_ext <<EOF
1931 #line 1932 "configure"
1932 #include "confdefs.h"
1933 #include <termio.h>
1934 Autoconf TCGETA
1936 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1937 egrep "$ac_pattern" >/dev/null 2>&1; then
1938 rm -rf conftest*
1939 ac_cv_prog_gcc_traditional=yes
1941 rm -f conftest*
1946 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1947 if test $ac_cv_prog_gcc_traditional = yes; then
1948 CC="$CC -traditional"
1955 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1956 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1959 _bindir=`eval echo $bindir`
1960 _bindir=`eval echo $_bindir`
1962 _libdir=`eval echo $libdir`
1963 _libdir=`eval echo $_libdir`
1964 lib_search_path="-L$_libdir"
1966 inc_search_path=`eval echo $includedir`
1967 inc_search_path="-I`eval echo $inc_search_path`"
1973 # Check whether --with-libs-from or --without-libs-from was given.
1974 if test "${with_libs_from+set}" = set; then
1975 withval="$with_libs_from"
1976 lib_search_path="$withval $lib_search_path"
1980 # Check whether --with-incs-from or --without-incs-from was given.
1981 if test "${with_incs_from+set}" = set; then
1982 withval="$with_incs_from"
1983 inc_search_path="$withval $inc_search_path"
1989 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
1990 echo "configure:1991: checking for vprintf" >&5
1991 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
1992 echo $ac_n "(cached) $ac_c" 1>&6
1993 else
1994 cat > conftest.$ac_ext <<EOF
1995 #line 1996 "configure"
1996 #include "confdefs.h"
1997 /* System header to define __stub macros and hopefully few prototypes,
1998 which can conflict with char vprintf(); below. */
1999 #include <assert.h>
2000 /* Override any gcc2 internal prototype to avoid an error. */
2001 /* We use char because int might match the return type of a gcc2
2002 builtin and then its argument prototype would still apply. */
2003 char vprintf();
2005 int main() {
2007 /* The GNU C library defines this for functions which it implements
2008 to always fail with ENOSYS. Some functions are actually named
2009 something starting with __ and the normal name is an alias. */
2010 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2011 choke me
2012 #else
2013 vprintf();
2014 #endif
2016 ; return 0; }
2018 if { (eval echo configure:2019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2019 rm -rf conftest*
2020 eval "ac_cv_func_vprintf=yes"
2021 else
2022 echo "configure: failed program was:" >&5
2023 cat conftest.$ac_ext >&5
2024 rm -rf conftest*
2025 eval "ac_cv_func_vprintf=no"
2027 rm -f conftest*
2030 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2031 echo "$ac_t""yes" 1>&6
2032 cat >> confdefs.h <<\EOF
2033 #define HAVE_VPRINTF 1
2036 else
2037 echo "$ac_t""no" 1>&6
2040 if test "$ac_cv_func_vprintf" != yes; then
2041 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2042 echo "configure:2043: checking for _doprnt" >&5
2043 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2044 echo $ac_n "(cached) $ac_c" 1>&6
2045 else
2046 cat > conftest.$ac_ext <<EOF
2047 #line 2048 "configure"
2048 #include "confdefs.h"
2049 /* System header to define __stub macros and hopefully few prototypes,
2050 which can conflict with char _doprnt(); below. */
2051 #include <assert.h>
2052 /* Override any gcc2 internal prototype to avoid an error. */
2053 /* We use char because int might match the return type of a gcc2
2054 builtin and then its argument prototype would still apply. */
2055 char _doprnt();
2057 int main() {
2059 /* The GNU C library defines this for functions which it implements
2060 to always fail with ENOSYS. Some functions are actually named
2061 something starting with __ and the normal name is an alias. */
2062 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2063 choke me
2064 #else
2065 _doprnt();
2066 #endif
2068 ; return 0; }
2070 if { (eval echo configure:2071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2071 rm -rf conftest*
2072 eval "ac_cv_func__doprnt=yes"
2073 else
2074 echo "configure: failed program was:" >&5
2075 cat conftest.$ac_ext >&5
2076 rm -rf conftest*
2077 eval "ac_cv_func__doprnt=no"
2079 rm -f conftest*
2082 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2083 echo "$ac_t""yes" 1>&6
2084 cat >> confdefs.h <<\EOF
2085 #define HAVE_DOPRNT 1
2088 else
2089 echo "$ac_t""no" 1>&6
2094 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2095 # for constant arguments. Useless!
2096 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2097 echo "configure:2098: checking for working alloca.h" >&5
2098 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2099 echo $ac_n "(cached) $ac_c" 1>&6
2100 else
2101 cat > conftest.$ac_ext <<EOF
2102 #line 2103 "configure"
2103 #include "confdefs.h"
2104 #include <alloca.h>
2105 int main() {
2106 char *p = alloca(2 * sizeof(int));
2107 ; return 0; }
2109 if { (eval echo configure:2110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2110 rm -rf conftest*
2111 ac_cv_header_alloca_h=yes
2112 else
2113 echo "configure: failed program was:" >&5
2114 cat conftest.$ac_ext >&5
2115 rm -rf conftest*
2116 ac_cv_header_alloca_h=no
2118 rm -f conftest*
2121 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2122 if test $ac_cv_header_alloca_h = yes; then
2123 cat >> confdefs.h <<\EOF
2124 #define HAVE_ALLOCA_H 1
2129 echo $ac_n "checking for alloca""... $ac_c" 1>&6
2130 echo "configure:2131: checking for alloca" >&5
2131 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2132 echo $ac_n "(cached) $ac_c" 1>&6
2133 else
2134 cat > conftest.$ac_ext <<EOF
2135 #line 2136 "configure"
2136 #include "confdefs.h"
2138 #ifdef __GNUC__
2139 # define alloca __builtin_alloca
2140 #else
2141 # ifdef _MSC_VER
2142 # include <malloc.h>
2143 # define alloca _alloca
2144 # else
2145 # if HAVE_ALLOCA_H
2146 # include <alloca.h>
2147 # else
2148 # ifdef _AIX
2149 #pragma alloca
2150 # else
2151 # ifndef alloca /* predefined by HP cc +Olibcalls */
2152 char *alloca ();
2153 # endif
2154 # endif
2155 # endif
2156 # endif
2157 #endif
2159 int main() {
2160 char *p = (char *) alloca(1);
2161 ; return 0; }
2163 if { (eval echo configure:2164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2164 rm -rf conftest*
2165 ac_cv_func_alloca_works=yes
2166 else
2167 echo "configure: failed program was:" >&5
2168 cat conftest.$ac_ext >&5
2169 rm -rf conftest*
2170 ac_cv_func_alloca_works=no
2172 rm -f conftest*
2175 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2176 if test $ac_cv_func_alloca_works = yes; then
2177 cat >> confdefs.h <<\EOF
2178 #define HAVE_ALLOCA 1
2183 if test $ac_cv_func_alloca_works = no; then
2184 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2185 # that cause trouble. Some versions do not even contain alloca or
2186 # contain a buggy version. If you still want to use their alloca,
2187 # use ar to extract alloca.o from them instead of compiling alloca.c.
2188 ALLOCA=alloca.${ac_objext}
2189 cat >> confdefs.h <<\EOF
2190 #define C_ALLOCA 1
2194 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2195 echo "configure:2196: checking whether alloca needs Cray hooks" >&5
2196 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2197 echo $ac_n "(cached) $ac_c" 1>&6
2198 else
2199 cat > conftest.$ac_ext <<EOF
2200 #line 2201 "configure"
2201 #include "confdefs.h"
2202 #if defined(CRAY) && ! defined(CRAY2)
2203 webecray
2204 #else
2205 wenotbecray
2206 #endif
2209 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2210 egrep "webecray" >/dev/null 2>&1; then
2211 rm -rf conftest*
2212 ac_cv_os_cray=yes
2213 else
2214 rm -rf conftest*
2215 ac_cv_os_cray=no
2217 rm -f conftest*
2221 echo "$ac_t""$ac_cv_os_cray" 1>&6
2222 if test $ac_cv_os_cray = yes; then
2223 for ac_func in _getb67 GETB67 getb67; do
2224 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2225 echo "configure:2226: checking for $ac_func" >&5
2226 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2227 echo $ac_n "(cached) $ac_c" 1>&6
2228 else
2229 cat > conftest.$ac_ext <<EOF
2230 #line 2231 "configure"
2231 #include "confdefs.h"
2232 /* System header to define __stub macros and hopefully few prototypes,
2233 which can conflict with char $ac_func(); below. */
2234 #include <assert.h>
2235 /* Override any gcc2 internal prototype to avoid an error. */
2236 /* We use char because int might match the return type of a gcc2
2237 builtin and then its argument prototype would still apply. */
2238 char $ac_func();
2240 int main() {
2242 /* The GNU C library defines this for functions which it implements
2243 to always fail with ENOSYS. Some functions are actually named
2244 something starting with __ and the normal name is an alias. */
2245 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2246 choke me
2247 #else
2248 $ac_func();
2249 #endif
2251 ; return 0; }
2253 if { (eval echo configure:2254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2254 rm -rf conftest*
2255 eval "ac_cv_func_$ac_func=yes"
2256 else
2257 echo "configure: failed program was:" >&5
2258 cat conftest.$ac_ext >&5
2259 rm -rf conftest*
2260 eval "ac_cv_func_$ac_func=no"
2262 rm -f conftest*
2265 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2266 echo "$ac_t""yes" 1>&6
2267 cat >> confdefs.h <<EOF
2268 #define CRAY_STACKSEG_END $ac_func
2271 break
2272 else
2273 echo "$ac_t""no" 1>&6
2276 done
2279 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
2280 echo "configure:2281: checking stack direction for C alloca" >&5
2281 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
2282 echo $ac_n "(cached) $ac_c" 1>&6
2283 else
2284 if test "$cross_compiling" = yes; then
2285 ac_cv_c_stack_direction=0
2286 else
2287 cat > conftest.$ac_ext <<EOF
2288 #line 2289 "configure"
2289 #include "confdefs.h"
2290 find_stack_direction ()
2292 static char *addr = 0;
2293 auto char dummy;
2294 if (addr == 0)
2296 addr = &dummy;
2297 return find_stack_direction ();
2299 else
2300 return (&dummy > addr) ? 1 : -1;
2302 main ()
2304 exit (find_stack_direction() < 0);
2307 if { (eval echo configure:2308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2308 then
2309 ac_cv_c_stack_direction=1
2310 else
2311 echo "configure: failed program was:" >&5
2312 cat conftest.$ac_ext >&5
2313 rm -fr conftest*
2314 ac_cv_c_stack_direction=-1
2316 rm -fr conftest*
2321 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2322 cat >> confdefs.h <<EOF
2323 #define STACK_DIRECTION $ac_cv_c_stack_direction
2328 for ac_func in gethostname select poll strerror strncasecmp setpgid atexit
2330 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2331 echo "configure:2332: checking for $ac_func" >&5
2332 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2333 echo $ac_n "(cached) $ac_c" 1>&6
2334 else
2335 cat > conftest.$ac_ext <<EOF
2336 #line 2337 "configure"
2337 #include "confdefs.h"
2338 /* System header to define __stub macros and hopefully few prototypes,
2339 which can conflict with char $ac_func(); below. */
2340 #include <assert.h>
2341 /* Override any gcc2 internal prototype to avoid an error. */
2342 /* We use char because int might match the return type of a gcc2
2343 builtin and then its argument prototype would still apply. */
2344 char $ac_func();
2346 int main() {
2348 /* The GNU C library defines this for functions which it implements
2349 to always fail with ENOSYS. Some functions are actually named
2350 something starting with __ and the normal name is an alias. */
2351 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2352 choke me
2353 #else
2354 $ac_func();
2355 #endif
2357 ; return 0; }
2359 if { (eval echo configure:2360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2360 rm -rf conftest*
2361 eval "ac_cv_func_$ac_func=yes"
2362 else
2363 echo "configure: failed program was:" >&5
2364 cat conftest.$ac_ext >&5
2365 rm -rf conftest*
2366 eval "ac_cv_func_$ac_func=no"
2368 rm -f conftest*
2371 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2372 echo "$ac_t""yes" 1>&6
2373 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2374 cat >> confdefs.h <<EOF
2375 #define $ac_tr_func 1
2378 else
2379 echo "$ac_t""no" 1>&6
2381 done
2386 DLLIBS=""
2388 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
2389 echo "configure:2390: checking for dlopen" >&5
2390 if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then
2391 echo $ac_n "(cached) $ac_c" 1>&6
2392 else
2393 cat > conftest.$ac_ext <<EOF
2394 #line 2395 "configure"
2395 #include "confdefs.h"
2396 /* System header to define __stub macros and hopefully few prototypes,
2397 which can conflict with char dlopen(); below. */
2398 #include <assert.h>
2399 /* Override any gcc2 internal prototype to avoid an error. */
2400 /* We use char because int might match the return type of a gcc2
2401 builtin and then its argument prototype would still apply. */
2402 char dlopen();
2404 int main() {
2406 /* The GNU C library defines this for functions which it implements
2407 to always fail with ENOSYS. Some functions are actually named
2408 something starting with __ and the normal name is an alias. */
2409 #if defined (__stub_dlopen) || defined (__stub___dlopen)
2410 choke me
2411 #else
2412 dlopen();
2413 #endif
2415 ; return 0; }
2417 if { (eval echo configure:2418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2418 rm -rf conftest*
2419 eval "ac_cv_func_dlopen=yes"
2420 else
2421 echo "configure: failed program was:" >&5
2422 cat conftest.$ac_ext >&5
2423 rm -rf conftest*
2424 eval "ac_cv_func_dlopen=no"
2426 rm -f conftest*
2429 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
2430 echo "$ac_t""yes" 1>&6
2431 HAVEDL="yes"
2432 else
2433 echo "$ac_t""no" 1>&6
2434 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2435 echo "configure:2436: checking for dlopen in -ldl" >&5
2436 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2437 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2438 echo $ac_n "(cached) $ac_c" 1>&6
2439 else
2440 ac_save_LIBS="$LIBS"
2441 LIBS="-ldl $LIBS"
2442 cat > conftest.$ac_ext <<EOF
2443 #line 2444 "configure"
2444 #include "confdefs.h"
2445 /* Override any gcc2 internal prototype to avoid an error. */
2446 /* We use char because int might match the return type of a gcc2
2447 builtin and then its argument prototype would still apply. */
2448 char dlopen();
2450 int main() {
2451 dlopen()
2452 ; return 0; }
2454 if { (eval echo configure:2455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2455 rm -rf conftest*
2456 eval "ac_cv_lib_$ac_lib_var=yes"
2457 else
2458 echo "configure: failed program was:" >&5
2459 cat conftest.$ac_ext >&5
2460 rm -rf conftest*
2461 eval "ac_cv_lib_$ac_lib_var=no"
2463 rm -f conftest*
2464 LIBS="$ac_save_LIBS"
2467 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2468 echo "$ac_t""yes" 1>&6
2469 DLLIBS="-ldl" HAVEDL="yes"
2470 else
2471 echo "$ac_t""no" 1>&6
2472 DLLIBS=""
2478 if test "x$HAVEDL" = xyes; then
2479 for ac_hdr in dlfcn.h
2481 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2482 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2483 echo "configure:2484: checking for $ac_hdr" >&5
2484 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2485 echo $ac_n "(cached) $ac_c" 1>&6
2486 else
2487 cat > conftest.$ac_ext <<EOF
2488 #line 2489 "configure"
2489 #include "confdefs.h"
2490 #include <$ac_hdr>
2492 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2493 { (eval echo configure:2494: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2494 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2495 if test -z "$ac_err"; then
2496 rm -rf conftest*
2497 eval "ac_cv_header_$ac_safe=yes"
2498 else
2499 echo "$ac_err" >&5
2500 echo "configure: failed program was:" >&5
2501 cat conftest.$ac_ext >&5
2502 rm -rf conftest*
2503 eval "ac_cv_header_$ac_safe=no"
2505 rm -f conftest*
2507 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2508 echo "$ac_t""yes" 1>&6
2509 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2510 cat >> confdefs.h <<EOF
2511 #define $ac_tr_hdr 1
2514 else
2515 echo "$ac_t""no" 1>&6
2517 done
2523 if test "x$CPP_PATH" = x; then
2524 # Extract the first word of "cpp", so it can be a program name with args.
2525 set dummy cpp; ac_word=$2
2526 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2527 echo "configure:2528: checking for $ac_word" >&5
2528 if eval "test \"`echo '$''{'ac_cv_path_CPP_PATH'+set}'`\" = set"; then
2529 echo $ac_n "(cached) $ac_c" 1>&6
2530 else
2531 case "$CPP_PATH" in
2533 ac_cv_path_CPP_PATH="$CPP_PATH" # Let the user override the test with a path.
2535 ?:/*)
2536 ac_cv_path_CPP_PATH="$CPP_PATH" # Let the user override the test with a dos path.
2539 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2540 ac_dummy="$PATH:/lib:/usr/bin:/bin:/usr/lib:/usr/ccs/lib"
2541 for ac_dir in $ac_dummy; do
2542 test -z "$ac_dir" && ac_dir=.
2543 if test -f $ac_dir/$ac_word; then
2544 ac_cv_path_CPP_PATH="$ac_dir/$ac_word"
2545 break
2547 done
2548 IFS="$ac_save_ifs"
2549 test -z "$ac_cv_path_CPP_PATH" && ac_cv_path_CPP_PATH="notfound"
2551 esac
2553 CPP_PATH="$ac_cv_path_CPP_PATH"
2554 if test -n "$CPP_PATH"; then
2555 echo "$ac_t""$CPP_PATH" 1>&6
2556 else
2557 echo "$ac_t""no" 1>&6
2562 if test "$CPP_PATH" = "/usr/ccs/lib/cpp" -o "$CPP_PATH" = "notfound" ; then
2563 if test "$GCC" = "yes"; then
2564 CPP_PATH="gcc -E -x c"
2565 else
2566 if test "$CPP_PATH" = "/usr/ccs/lib/cpp"; then
2567 CPP_PATH="$CPP_PATH -B"
2568 else
2569 echo "cpp, the C preprocessor was not found in your system."
2570 echo "Create a symbolic link from it to /lib/cpp and rerun configure"
2571 exit
2575 cat >> confdefs.h <<EOF
2576 #define CPP_PATH "$CPP_PATH"
2582 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2583 echo "configure:2584: checking for sys/wait.h that is POSIX.1 compatible" >&5
2584 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2585 echo $ac_n "(cached) $ac_c" 1>&6
2586 else
2587 cat > conftest.$ac_ext <<EOF
2588 #line 2589 "configure"
2589 #include "confdefs.h"
2590 #include <sys/types.h>
2591 #include <sys/wait.h>
2592 #ifndef WEXITSTATUS
2593 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2594 #endif
2595 #ifndef WIFEXITED
2596 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2597 #endif
2598 int main() {
2599 int s;
2600 wait (&s);
2601 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2602 ; return 0; }
2604 if { (eval echo configure:2605: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2605 rm -rf conftest*
2606 ac_cv_header_sys_wait_h=yes
2607 else
2608 echo "configure: failed program was:" >&5
2609 cat conftest.$ac_ext >&5
2610 rm -rf conftest*
2611 ac_cv_header_sys_wait_h=no
2613 rm -f conftest*
2616 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2617 if test $ac_cv_header_sys_wait_h = yes; then
2618 cat >> confdefs.h <<\EOF
2619 #define HAVE_SYS_WAIT_H 1
2624 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2625 echo "configure:2626: checking whether time.h and sys/time.h may both be included" >&5
2626 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2627 echo $ac_n "(cached) $ac_c" 1>&6
2628 else
2629 cat > conftest.$ac_ext <<EOF
2630 #line 2631 "configure"
2631 #include "confdefs.h"
2632 #include <sys/types.h>
2633 #include <sys/time.h>
2634 #include <time.h>
2635 int main() {
2636 struct tm *tp;
2637 ; return 0; }
2639 if { (eval echo configure:2640: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2640 rm -rf conftest*
2641 ac_cv_header_time=yes
2642 else
2643 echo "configure: failed program was:" >&5
2644 cat conftest.$ac_ext >&5
2645 rm -rf conftest*
2646 ac_cv_header_time=no
2648 rm -f conftest*
2651 echo "$ac_t""$ac_cv_header_time" 1>&6
2652 if test $ac_cv_header_time = yes; then
2653 cat >> confdefs.h <<\EOF
2654 #define TIME_WITH_SYS_TIME 1
2659 for ac_hdr in fcntl.h limits.h sys/ioctl.h sys/time.h sys/types.h\
2660 libintl.h sys/select.h poll.h
2662 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2663 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2664 echo "configure:2665: checking for $ac_hdr" >&5
2665 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2666 echo $ac_n "(cached) $ac_c" 1>&6
2667 else
2668 cat > conftest.$ac_ext <<EOF
2669 #line 2670 "configure"
2670 #include "confdefs.h"
2671 #include <$ac_hdr>
2673 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2674 { (eval echo configure:2675: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2675 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2676 if test -z "$ac_err"; then
2677 rm -rf conftest*
2678 eval "ac_cv_header_$ac_safe=yes"
2679 else
2680 echo "$ac_err" >&5
2681 echo "configure: failed program was:" >&5
2682 cat conftest.$ac_ext >&5
2683 rm -rf conftest*
2684 eval "ac_cv_header_$ac_safe=no"
2686 rm -f conftest*
2688 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2689 echo "$ac_t""yes" 1>&6
2690 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2691 cat >> confdefs.h <<EOF
2692 #define $ac_tr_hdr 1
2695 else
2696 echo "$ac_t""no" 1>&6
2698 done
2703 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
2704 echo "configure:2705: checking for sys_siglist declaration in signal.h or unistd.h" >&5
2705 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
2706 echo $ac_n "(cached) $ac_c" 1>&6
2707 else
2708 cat > conftest.$ac_ext <<EOF
2709 #line 2710 "configure"
2710 #include "confdefs.h"
2711 #include <sys/types.h>
2712 #include <signal.h>
2713 /* NetBSD declares sys_siglist in unistd.h. */
2714 #ifdef HAVE_UNISTD_H
2715 #include <unistd.h>
2716 #endif
2717 int main() {
2718 char *msg = *(sys_siglist + 1);
2719 ; return 0; }
2721 if { (eval echo configure:2722: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2722 rm -rf conftest*
2723 ac_cv_decl_sys_siglist=yes
2724 else
2725 echo "configure: failed program was:" >&5
2726 cat conftest.$ac_ext >&5
2727 rm -rf conftest*
2728 ac_cv_decl_sys_siglist=no
2730 rm -f conftest*
2733 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
2734 if test $ac_cv_decl_sys_siglist = yes; then
2735 cat >> confdefs.h <<\EOF
2736 #define SYS_SIGLIST_DECLARED 1
2741 echo $ac_n "checking for working const""... $ac_c" 1>&6
2742 echo "configure:2743: checking for working const" >&5
2743 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2744 echo $ac_n "(cached) $ac_c" 1>&6
2745 else
2746 cat > conftest.$ac_ext <<EOF
2747 #line 2748 "configure"
2748 #include "confdefs.h"
2750 int main() {
2752 /* Ultrix mips cc rejects this. */
2753 typedef int charset[2]; const charset x = {0,0};
2754 /* SunOS 4.1.1 cc rejects this. */
2755 char const *const *ccp;
2756 char **p;
2757 /* NEC SVR4.0.2 mips cc rejects this. */
2758 struct point {int x, y;};
2759 static struct point const zero = {0,0};
2760 /* AIX XL C 1.02.0.0 rejects this.
2761 It does not let you subtract one const X* pointer from another in an arm
2762 of an if-expression whose if-part is not a constant expression */
2763 const char *g = "string";
2764 ccp = &g + (g ? g-g : 0);
2765 /* HPUX 7.0 cc rejects these. */
2766 ++ccp;
2767 p = (char**) ccp;
2768 ccp = (char const *const *) p;
2769 { /* SCO 3.2v4 cc rejects this. */
2770 char *t;
2771 char const *s = 0 ? (char *) 0 : (char const *) 0;
2773 *t++ = 0;
2775 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2776 int x[] = {25, 17};
2777 const int *foo = &x[0];
2778 ++foo;
2780 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2781 typedef const int *iptr;
2782 iptr p = 0;
2783 ++p;
2785 { /* AIX XL C 1.02.0.0 rejects this saying
2786 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2787 struct s { int j; const int *ap[3]; };
2788 struct s *b; b->j = 5;
2790 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2791 const int foo = 10;
2794 ; return 0; }
2796 if { (eval echo configure:2797: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2797 rm -rf conftest*
2798 ac_cv_c_const=yes
2799 else
2800 echo "configure: failed program was:" >&5
2801 cat conftest.$ac_ext >&5
2802 rm -rf conftest*
2803 ac_cv_c_const=no
2805 rm -f conftest*
2808 echo "$ac_t""$ac_cv_c_const" 1>&6
2809 if test $ac_cv_c_const = no; then
2810 cat >> confdefs.h <<\EOF
2811 #define const
2816 #AC_TYPE_SIZE_T
2817 #AC_TYPE_PID_T
2818 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2819 echo "configure:2820: checking return type of signal handlers" >&5
2820 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2821 echo $ac_n "(cached) $ac_c" 1>&6
2822 else
2823 cat > conftest.$ac_ext <<EOF
2824 #line 2825 "configure"
2825 #include "confdefs.h"
2826 #include <sys/types.h>
2827 #include <signal.h>
2828 #ifdef signal
2829 #undef signal
2830 #endif
2831 #ifdef __cplusplus
2832 extern "C" void (*signal (int, void (*)(int)))(int);
2833 #else
2834 void (*signal ()) ();
2835 #endif
2837 int main() {
2838 int i;
2839 ; return 0; }
2841 if { (eval echo configure:2842: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2842 rm -rf conftest*
2843 ac_cv_type_signal=void
2844 else
2845 echo "configure: failed program was:" >&5
2846 cat conftest.$ac_ext >&5
2847 rm -rf conftest*
2848 ac_cv_type_signal=int
2850 rm -f conftest*
2853 echo "$ac_t""$ac_cv_type_signal" 1>&6
2854 cat >> confdefs.h <<EOF
2855 #define RETSIGTYPE $ac_cv_type_signal
2865 if test "$ac_cv_prog_gcc" = yes; then
2866 x86=0
2867 case "$host_cpu" in
2868 i[3456]86) x86=1
2870 esac
2872 if test $x86 = 1; then
2873 cat >> confdefs.h <<\EOF
2874 #define ASM_X86 1
2878 echo $ac_n "checking whether gcc supports MMX(tm) inline asm""... $ac_c" 1>&6
2879 echo "configure:2880: checking whether gcc supports MMX(tm) inline asm" >&5
2880 if eval "test \"`echo '$''{'ac_cv_c_inline_mmx'+set}'`\" = set"; then
2881 echo $ac_n "(cached) $ac_c" 1>&6
2882 else
2883 cat > conftest.$ac_ext <<EOF
2884 #line 2885 "configure"
2885 #include "confdefs.h"
2887 int main() {
2888 asm ("movq %mm0, %mm1");
2889 ; return 0; }
2891 if { (eval echo configure:2892: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2892 rm -rf conftest*
2893 ac_cv_c_inline_mmx=yes
2894 else
2895 echo "configure: failed program was:" >&5
2896 cat conftest.$ac_ext >&5
2897 rm -rf conftest*
2898 ac_cv_c_inline_mmx=no
2900 rm -f conftest*
2903 echo "$ac_t""$ac_cv_c_inline_mmx" 1>&6
2905 if test "x$ac_cv_c_inline_mmx" = xyes; then
2906 cat >> confdefs.h <<\EOF
2907 #define ASM_X86_MMX 1
2921 INTLIBS=""
2923 echo $ac_n "checking for gettext""... $ac_c" 1>&6
2924 echo "configure:2925: checking for gettext" >&5
2925 if eval "test \"`echo '$''{'ac_cv_func_gettext'+set}'`\" = set"; then
2926 echo $ac_n "(cached) $ac_c" 1>&6
2927 else
2928 cat > conftest.$ac_ext <<EOF
2929 #line 2930 "configure"
2930 #include "confdefs.h"
2931 /* System header to define __stub macros and hopefully few prototypes,
2932 which can conflict with char gettext(); below. */
2933 #include <assert.h>
2934 /* Override any gcc2 internal prototype to avoid an error. */
2935 /* We use char because int might match the return type of a gcc2
2936 builtin and then its argument prototype would still apply. */
2937 char gettext();
2939 int main() {
2941 /* The GNU C library defines this for functions which it implements
2942 to always fail with ENOSYS. Some functions are actually named
2943 something starting with __ and the normal name is an alias. */
2944 #if defined (__stub_gettext) || defined (__stub___gettext)
2945 choke me
2946 #else
2947 gettext();
2948 #endif
2950 ; return 0; }
2952 if { (eval echo configure:2953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2953 rm -rf conftest*
2954 eval "ac_cv_func_gettext=yes"
2955 else
2956 echo "configure: failed program was:" >&5
2957 cat conftest.$ac_ext >&5
2958 rm -rf conftest*
2959 eval "ac_cv_func_gettext=no"
2961 rm -f conftest*
2964 if eval "test \"`echo '$ac_cv_func_'gettext`\" = yes"; then
2965 echo "$ac_t""yes" 1>&6
2966 HAVEGETTEXT="yes"
2967 else
2968 echo "$ac_t""no" 1>&6
2969 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
2970 echo "configure:2971: checking for gettext in -lintl" >&5
2971 ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
2972 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2973 echo $ac_n "(cached) $ac_c" 1>&6
2974 else
2975 ac_save_LIBS="$LIBS"
2976 LIBS="-lintl $LIBS"
2977 cat > conftest.$ac_ext <<EOF
2978 #line 2979 "configure"
2979 #include "confdefs.h"
2980 /* Override any gcc2 internal prototype to avoid an error. */
2981 /* We use char because int might match the return type of a gcc2
2982 builtin and then its argument prototype would still apply. */
2983 char gettext();
2985 int main() {
2986 gettext()
2987 ; return 0; }
2989 if { (eval echo configure:2990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2990 rm -rf conftest*
2991 eval "ac_cv_lib_$ac_lib_var=yes"
2992 else
2993 echo "configure: failed program was:" >&5
2994 cat conftest.$ac_ext >&5
2995 rm -rf conftest*
2996 eval "ac_cv_lib_$ac_lib_var=no"
2998 rm -f conftest*
2999 LIBS="$ac_save_LIBS"
3002 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3003 echo "$ac_t""yes" 1>&6
3004 INTLIBS="-lintl" HAVEGETTEXT="yes"
3005 else
3006 echo "$ac_t""no" 1>&6
3007 INTLIBS=""
3013 # Extract the first word of "xgettext", so it can be a program name with args.
3014 set dummy xgettext; ac_word=$2
3015 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3016 echo "configure:3017: checking for $ac_word" >&5
3017 if eval "test \"`echo '$''{'ac_cv_prog_XGETTEXT'+set}'`\" = set"; then
3018 echo $ac_n "(cached) $ac_c" 1>&6
3019 else
3020 if test -n "$XGETTEXT"; then
3021 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
3022 else
3023 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3024 ac_dummy="$PATH"
3025 for ac_dir in $ac_dummy; do
3026 test -z "$ac_dir" && ac_dir=.
3027 if test -f $ac_dir/$ac_word; then
3028 ac_cv_prog_XGETTEXT="xgettext"
3029 break
3031 done
3032 IFS="$ac_save_ifs"
3035 XGETTEXT="$ac_cv_prog_XGETTEXT"
3036 if test -n "$XGETTEXT"; then
3037 echo "$ac_t""$XGETTEXT" 1>&6
3038 else
3039 echo "$ac_t""no" 1>&6
3043 if test "$XGETTEXT" != ""; then
3044 if $XGETTEXT --help 2>&1 | grep illegal >/dev/null ; then
3045 echo "xgettext isn't GNU version"
3046 XGETTEXT=""
3050 if test "$LINGUAS" != ""; then
3051 if test "$XGETTEXT" != "" -a "$HAVEGETTEXT" != ""; then
3052 cat >> confdefs.h <<\EOF
3053 #define I18N 1
3056 PO=""
3057 # if test "$LINGUAS" = ""; then
3058 # ling=` (cd src/po; /bin/ls *.po) `
3059 # for l in $ling; do
3060 # lcode=`basename $l .po`
3061 # LINGUAS="$LINGUAS $lcode"
3062 # done
3063 # fi
3064 echo "xgettext and gettext() exist; will build i18n support for $LINGUAS"
3065 else
3066 LINGUAS=""
3067 PO=""
3068 echo "xgettext and libintl.a don't both exist; will not build i18n support"
3070 else
3071 INTLIBS=""
3072 MOFILES=""
3073 WPMOFILES=""
3074 PO=""
3079 supported_locales="cs de es fr gl it ja ko nl no pt ru se tr fi hr el pl ro da zh_TW.Big5 zh_CN sk"
3080 supported_wprefs_locales="pt hr fr ko ja cs zh_TW.Big5 es zh_CN fi it ru de"
3082 for lang in $LINGUAS; do
3083 ok=0
3084 for l in $supported_locales; do
3085 if test "$l" = "$lang"; then
3086 ok=1
3087 break
3089 done
3090 if test "$ok" = 1; then
3091 MOFILES="$MOFILES $lang.mo"
3092 else
3093 echo "Locale $lang is not supported."
3095 ok=0
3096 for l in $supported_wprefs_locales; do
3097 if test "$l" = "$lang"; then
3098 ok=1
3099 break
3101 done
3102 if test "$ok" = 1; then
3103 WPMOFILES="$WPMOFILES $lang.mo"
3105 done
3109 case $host_os in
3110 freebsd*)
3111 echo $ac_n "checking for setlocale in -lxpg4""... $ac_c" 1>&6
3112 echo "configure:3113: checking for setlocale in -lxpg4" >&5
3113 ac_lib_var=`echo xpg4'_'setlocale | sed 'y%./+-%__p_%'`
3114 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3115 echo $ac_n "(cached) $ac_c" 1>&6
3116 else
3117 ac_save_LIBS="$LIBS"
3118 LIBS="-lxpg4 $LIBS"
3119 cat > conftest.$ac_ext <<EOF
3120 #line 3121 "configure"
3121 #include "confdefs.h"
3122 /* Override any gcc2 internal prototype to avoid an error. */
3123 /* We use char because int might match the return type of a gcc2
3124 builtin and then its argument prototype would still apply. */
3125 char setlocale();
3127 int main() {
3128 setlocale()
3129 ; return 0; }
3131 if { (eval echo configure:3132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3132 rm -rf conftest*
3133 eval "ac_cv_lib_$ac_lib_var=yes"
3134 else
3135 echo "configure: failed program was:" >&5
3136 cat conftest.$ac_ext >&5
3137 rm -rf conftest*
3138 eval "ac_cv_lib_$ac_lib_var=no"
3140 rm -f conftest*
3141 LIBS="$ac_save_LIBS"
3144 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3145 echo "$ac_t""yes" 1>&6
3146 LIBS="$LIBS -lxpg4"
3147 else
3148 echo "$ac_t""no" 1>&6
3153 esac
3157 # Check whether --with-nlsdir or --without-nlsdir was given.
3158 if test "${with_nlsdir+set}" = set; then
3159 withval="$with_nlsdir"
3165 if test "x$NLSDIR" = "x"; then
3166 if test "x$with_nlsdir" != "x"; then
3167 NLSDIR=$with_nlsdir
3168 else
3169 NLSDIR='$(prefix)/lib/locale'
3185 # Check whether --enable-gnome or --disable-gnome was given.
3186 if test "${enable_gnome+set}" = set; then
3187 enableval="$enable_gnome"
3188 if test x$enableval = xyes; then
3189 cat >> confdefs.h <<\EOF
3190 #define GNOME_STUFF 1
3193 gnome_on=yes
3199 # Check whether --enable-kde or --disable-kde was given.
3200 if test "${enable_kde+set}" = set; then
3201 enableval="$enable_kde"
3202 if test x$enableval = xyes; then
3203 cat >> confdefs.h <<\EOF
3204 #define KWM_HINTS 1
3207 kde_on=yes
3213 # Check whether --enable-openlook or --disable-openlook was given.
3214 if test "${enable_openlook+set}" = set; then
3215 enableval="$enable_openlook"
3216 if test x$enableval = xyes; then
3217 cat >> confdefs.h <<\EOF
3218 #define OLWM_HINTS 1
3221 openlook_on=yes
3227 # Check whether --enable-lite or --disable-lite was given.
3228 if test "${enable_lite+set}" = set; then
3229 enableval="$enable_lite"
3230 if test x$enableval = xyes; then
3231 LITE=yes
3232 cat >> confdefs.h <<\EOF
3233 #define LITE 1
3244 NETLIBS=""
3246 echo $ac_n "checking for connect""... $ac_c" 1>&6
3247 echo "configure:3248: checking for connect" >&5
3248 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3249 echo $ac_n "(cached) $ac_c" 1>&6
3250 else
3251 cat > conftest.$ac_ext <<EOF
3252 #line 3253 "configure"
3253 #include "confdefs.h"
3254 /* System header to define __stub macros and hopefully few prototypes,
3255 which can conflict with char connect(); below. */
3256 #include <assert.h>
3257 /* Override any gcc2 internal prototype to avoid an error. */
3258 /* We use char because int might match the return type of a gcc2
3259 builtin and then its argument prototype would still apply. */
3260 char connect();
3262 int main() {
3264 /* The GNU C library defines this for functions which it implements
3265 to always fail with ENOSYS. Some functions are actually named
3266 something starting with __ and the normal name is an alias. */
3267 #if defined (__stub_connect) || defined (__stub___connect)
3268 choke me
3269 #else
3270 connect();
3271 #endif
3273 ; return 0; }
3275 if { (eval echo configure:3276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3276 rm -rf conftest*
3277 eval "ac_cv_func_connect=yes"
3278 else
3279 echo "configure: failed program was:" >&5
3280 cat conftest.$ac_ext >&5
3281 rm -rf conftest*
3282 eval "ac_cv_func_connect=no"
3284 rm -f conftest*
3287 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3288 echo "$ac_t""yes" 1>&6
3290 else
3291 echo "$ac_t""no" 1>&6
3292 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3293 echo "configure:3294: checking for connect in -lsocket" >&5
3294 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3295 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3296 echo $ac_n "(cached) $ac_c" 1>&6
3297 else
3298 ac_save_LIBS="$LIBS"
3299 LIBS="-lsocket $LIBS"
3300 cat > conftest.$ac_ext <<EOF
3301 #line 3302 "configure"
3302 #include "confdefs.h"
3303 /* Override any gcc2 internal prototype to avoid an error. */
3304 /* We use char because int might match the return type of a gcc2
3305 builtin and then its argument prototype would still apply. */
3306 char connect();
3308 int main() {
3309 connect()
3310 ; return 0; }
3312 if { (eval echo configure:3313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3313 rm -rf conftest*
3314 eval "ac_cv_lib_$ac_lib_var=yes"
3315 else
3316 echo "configure: failed program was:" >&5
3317 cat conftest.$ac_ext >&5
3318 rm -rf conftest*
3319 eval "ac_cv_lib_$ac_lib_var=no"
3321 rm -f conftest*
3322 LIBS="$ac_save_LIBS"
3325 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3326 echo "$ac_t""yes" 1>&6
3327 NETLIBS="$NETLIBS -lsocket"
3328 else
3329 echo "$ac_t""no" 1>&6
3335 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3336 echo "configure:3337: checking for gethostbyname" >&5
3337 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3338 echo $ac_n "(cached) $ac_c" 1>&6
3339 else
3340 cat > conftest.$ac_ext <<EOF
3341 #line 3342 "configure"
3342 #include "confdefs.h"
3343 /* System header to define __stub macros and hopefully few prototypes,
3344 which can conflict with char gethostbyname(); below. */
3345 #include <assert.h>
3346 /* Override any gcc2 internal prototype to avoid an error. */
3347 /* We use char because int might match the return type of a gcc2
3348 builtin and then its argument prototype would still apply. */
3349 char gethostbyname();
3351 int main() {
3353 /* The GNU C library defines this for functions which it implements
3354 to always fail with ENOSYS. Some functions are actually named
3355 something starting with __ and the normal name is an alias. */
3356 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3357 choke me
3358 #else
3359 gethostbyname();
3360 #endif
3362 ; return 0; }
3364 if { (eval echo configure:3365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3365 rm -rf conftest*
3366 eval "ac_cv_func_gethostbyname=yes"
3367 else
3368 echo "configure: failed program was:" >&5
3369 cat conftest.$ac_ext >&5
3370 rm -rf conftest*
3371 eval "ac_cv_func_gethostbyname=no"
3373 rm -f conftest*
3376 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3377 echo "$ac_t""yes" 1>&6
3379 else
3380 echo "$ac_t""no" 1>&6
3381 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3382 echo "configure:3383: checking for gethostbyname in -lnsl" >&5
3383 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3384 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3385 echo $ac_n "(cached) $ac_c" 1>&6
3386 else
3387 ac_save_LIBS="$LIBS"
3388 LIBS="-lnsl $LIBS"
3389 cat > conftest.$ac_ext <<EOF
3390 #line 3391 "configure"
3391 #include "confdefs.h"
3392 /* Override any gcc2 internal prototype to avoid an error. */
3393 /* We use char because int might match the return type of a gcc2
3394 builtin and then its argument prototype would still apply. */
3395 char gethostbyname();
3397 int main() {
3398 gethostbyname()
3399 ; return 0; }
3401 if { (eval echo configure:3402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3402 rm -rf conftest*
3403 eval "ac_cv_lib_$ac_lib_var=yes"
3404 else
3405 echo "configure: failed program was:" >&5
3406 cat conftest.$ac_ext >&5
3407 rm -rf conftest*
3408 eval "ac_cv_lib_$ac_lib_var=no"
3410 rm -f conftest*
3411 LIBS="$ac_save_LIBS"
3414 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3415 echo "$ac_t""yes" 1>&6
3416 NETLIBS="$NETLIBS -lnsl"
3417 else
3418 echo "$ac_t""no" 1>&6
3424 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
3425 echo "configure:3426: checking for inet_aton" >&5
3426 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
3427 echo $ac_n "(cached) $ac_c" 1>&6
3428 else
3429 cat > conftest.$ac_ext <<EOF
3430 #line 3431 "configure"
3431 #include "confdefs.h"
3432 /* System header to define __stub macros and hopefully few prototypes,
3433 which can conflict with char inet_aton(); below. */
3434 #include <assert.h>
3435 /* Override any gcc2 internal prototype to avoid an error. */
3436 /* We use char because int might match the return type of a gcc2
3437 builtin and then its argument prototype would still apply. */
3438 char inet_aton();
3440 int main() {
3442 /* The GNU C library defines this for functions which it implements
3443 to always fail with ENOSYS. Some functions are actually named
3444 something starting with __ and the normal name is an alias. */
3445 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
3446 choke me
3447 #else
3448 inet_aton();
3449 #endif
3451 ; return 0; }
3453 if { (eval echo configure:3454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3454 rm -rf conftest*
3455 eval "ac_cv_func_inet_aton=yes"
3456 else
3457 echo "configure: failed program was:" >&5
3458 cat conftest.$ac_ext >&5
3459 rm -rf conftest*
3460 eval "ac_cv_func_inet_aton=no"
3462 rm -f conftest*
3465 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
3466 echo "$ac_t""yes" 1>&6
3467 cat >> confdefs.h <<\EOF
3468 #define HAVE_INET_ATON 1
3471 else
3472 echo "$ac_t""no" 1>&6
3473 for lib in resolv socket inet bsd; do
3474 echo $ac_n "checking for inet_aton in -l$lib""... $ac_c" 1>&6
3475 echo "configure:3476: checking for inet_aton in -l$lib" >&5
3476 ac_lib_var=`echo $lib'_'inet_aton | sed 'y%./+-%__p_%'`
3477 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3478 echo $ac_n "(cached) $ac_c" 1>&6
3479 else
3480 ac_save_LIBS="$LIBS"
3481 LIBS="-l$lib $NETLIBS $LIBS"
3482 cat > conftest.$ac_ext <<EOF
3483 #line 3484 "configure"
3484 #include "confdefs.h"
3485 /* Override any gcc2 internal prototype to avoid an error. */
3486 /* We use char because int might match the return type of a gcc2
3487 builtin and then its argument prototype would still apply. */
3488 char inet_aton();
3490 int main() {
3491 inet_aton()
3492 ; return 0; }
3494 if { (eval echo configure:3495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3495 rm -rf conftest*
3496 eval "ac_cv_lib_$ac_lib_var=yes"
3497 else
3498 echo "configure: failed program was:" >&5
3499 cat conftest.$ac_ext >&5
3500 rm -rf conftest*
3501 eval "ac_cv_lib_$ac_lib_var=no"
3503 rm -f conftest*
3504 LIBS="$ac_save_LIBS"
3507 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3508 echo "$ac_t""yes" 1>&6
3509 cat >> confdefs.h <<\EOF
3510 #define HAVE_INET_ATON 1
3513 NETLIBS="$NETLIBS -l$lib"; break
3514 else
3515 echo "$ac_t""no" 1>&6
3518 done
3526 # If we find X, set shell vars x_includes and x_libraries to the
3527 # paths, otherwise set no_x=yes.
3528 # Uses ac_ vars as temps to allow command line to override cache and checks.
3529 # --without-x overrides everything else, but does not touch the cache.
3530 echo $ac_n "checking for X""... $ac_c" 1>&6
3531 echo "configure:3532: checking for X" >&5
3533 # Check whether --with-x or --without-x was given.
3534 if test "${with_x+set}" = set; then
3535 withval="$with_x"
3539 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3540 if test "x$with_x" = xno; then
3541 # The user explicitly disabled X.
3542 have_x=disabled
3543 else
3544 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
3545 # Both variables are already set.
3546 have_x=yes
3547 else
3548 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
3549 echo $ac_n "(cached) $ac_c" 1>&6
3550 else
3551 # One or both of the vars are not set, and there is no cached value.
3552 ac_x_includes=NO ac_x_libraries=NO
3553 rm -fr conftestdir
3554 if mkdir conftestdir; then
3555 cd conftestdir
3556 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
3557 cat > Imakefile <<'EOF'
3558 acfindx:
3559 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
3561 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
3562 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3563 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
3564 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3565 for ac_extension in a so sl; do
3566 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
3567 test -f $ac_im_libdir/libX11.$ac_extension; then
3568 ac_im_usrlibdir=$ac_im_libdir; break
3570 done
3571 # Screen out bogus values from the imake configuration. They are
3572 # bogus both because they are the default anyway, and because
3573 # using them would break gcc on systems where it needs fixed includes.
3574 case "$ac_im_incroot" in
3575 /usr/include) ;;
3576 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
3577 esac
3578 case "$ac_im_usrlibdir" in
3579 /usr/lib | /lib) ;;
3580 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
3581 esac
3583 cd ..
3584 rm -fr conftestdir
3587 if test "$ac_x_includes" = NO; then
3588 # Guess where to find include files, by looking for this one X11 .h file.
3589 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
3591 # First, try using that file with no special directory specified.
3592 cat > conftest.$ac_ext <<EOF
3593 #line 3594 "configure"
3594 #include "confdefs.h"
3595 #include <$x_direct_test_include>
3597 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3598 { (eval echo configure:3599: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3599 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3600 if test -z "$ac_err"; then
3601 rm -rf conftest*
3602 # We can compile using X headers with no special include directory.
3603 ac_x_includes=
3604 else
3605 echo "$ac_err" >&5
3606 echo "configure: failed program was:" >&5
3607 cat conftest.$ac_ext >&5
3608 rm -rf conftest*
3609 # Look for the header file in a standard set of common directories.
3610 # Check X11 before X11Rn because it is often a symlink to the current release.
3611 for ac_dir in \
3612 /usr/X11/include \
3613 /usr/X11R6/include \
3614 /usr/X11R5/include \
3615 /usr/X11R4/include \
3617 /usr/include/X11 \
3618 /usr/include/X11R6 \
3619 /usr/include/X11R5 \
3620 /usr/include/X11R4 \
3622 /usr/local/X11/include \
3623 /usr/local/X11R6/include \
3624 /usr/local/X11R5/include \
3625 /usr/local/X11R4/include \
3627 /usr/local/include/X11 \
3628 /usr/local/include/X11R6 \
3629 /usr/local/include/X11R5 \
3630 /usr/local/include/X11R4 \
3632 /usr/X386/include \
3633 /usr/x386/include \
3634 /usr/XFree86/include/X11 \
3636 /usr/include \
3637 /usr/local/include \
3638 /usr/unsupported/include \
3639 /usr/athena/include \
3640 /usr/local/x11r5/include \
3641 /usr/lpp/Xamples/include \
3643 /usr/openwin/include \
3644 /usr/openwin/share/include \
3647 if test -r "$ac_dir/$x_direct_test_include"; then
3648 ac_x_includes=$ac_dir
3649 break
3651 done
3653 rm -f conftest*
3654 fi # $ac_x_includes = NO
3656 if test "$ac_x_libraries" = NO; then
3657 # Check for the libraries.
3659 test -z "$x_direct_test_library" && x_direct_test_library=Xt
3660 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
3662 # See if we find them without any special options.
3663 # Don't add to $LIBS permanently.
3664 ac_save_LIBS="$LIBS"
3665 LIBS="-l$x_direct_test_library $LIBS"
3666 cat > conftest.$ac_ext <<EOF
3667 #line 3668 "configure"
3668 #include "confdefs.h"
3670 int main() {
3671 ${x_direct_test_function}()
3672 ; return 0; }
3674 if { (eval echo configure:3675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3675 rm -rf conftest*
3676 LIBS="$ac_save_LIBS"
3677 # We can link X programs with no special library path.
3678 ac_x_libraries=
3679 else
3680 echo "configure: failed program was:" >&5
3681 cat conftest.$ac_ext >&5
3682 rm -rf conftest*
3683 LIBS="$ac_save_LIBS"
3684 # First see if replacing the include by lib works.
3685 # Check X11 before X11Rn because it is often a symlink to the current release.
3686 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
3687 /usr/X11/lib \
3688 /usr/X11R6/lib \
3689 /usr/X11R5/lib \
3690 /usr/X11R4/lib \
3692 /usr/lib/X11 \
3693 /usr/lib/X11R6 \
3694 /usr/lib/X11R5 \
3695 /usr/lib/X11R4 \
3697 /usr/local/X11/lib \
3698 /usr/local/X11R6/lib \
3699 /usr/local/X11R5/lib \
3700 /usr/local/X11R4/lib \
3702 /usr/local/lib/X11 \
3703 /usr/local/lib/X11R6 \
3704 /usr/local/lib/X11R5 \
3705 /usr/local/lib/X11R4 \
3707 /usr/X386/lib \
3708 /usr/x386/lib \
3709 /usr/XFree86/lib/X11 \
3711 /usr/lib \
3712 /usr/local/lib \
3713 /usr/unsupported/lib \
3714 /usr/athena/lib \
3715 /usr/local/x11r5/lib \
3716 /usr/lpp/Xamples/lib \
3717 /lib/usr/lib/X11 \
3719 /usr/openwin/lib \
3720 /usr/openwin/share/lib \
3723 for ac_extension in a so sl; do
3724 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
3725 ac_x_libraries=$ac_dir
3726 break 2
3728 done
3729 done
3731 rm -f conftest*
3732 fi # $ac_x_libraries = NO
3734 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
3735 # Didn't find X anywhere. Cache the known absence of X.
3736 ac_cv_have_x="have_x=no"
3737 else
3738 # Record where we found X for the cache.
3739 ac_cv_have_x="have_x=yes \
3740 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
3744 eval "$ac_cv_have_x"
3745 fi # $with_x != no
3747 if test "$have_x" != yes; then
3748 echo "$ac_t""$have_x" 1>&6
3749 no_x=yes
3750 else
3751 # If each of the values was on the command line, it overrides each guess.
3752 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3753 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3754 # Update the cache value to reflect the command line values.
3755 ac_cv_have_x="have_x=yes \
3756 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3757 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
3760 if test "$no_x" = yes; then
3761 # Not all programs may use this symbol, but it does not hurt to define it.
3762 cat >> confdefs.h <<\EOF
3763 #define X_DISPLAY_MISSING 1
3766 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3767 else
3768 if test -n "$x_includes"; then
3769 X_CFLAGS="$X_CFLAGS -I$x_includes"
3772 # It would also be nice to do this for all -L options, not just this one.
3773 if test -n "$x_libraries"; then
3774 X_LIBS="$X_LIBS -L$x_libraries"
3775 # For Solaris; some versions of Sun CC require a space after -R and
3776 # others require no space. Words are not sufficient . . . .
3777 case "`(uname -sr) 2>/dev/null`" in
3778 "SunOS 5"*)
3779 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
3780 echo "configure:3781: checking whether -R must be followed by a space" >&5
3781 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
3782 cat > conftest.$ac_ext <<EOF
3783 #line 3784 "configure"
3784 #include "confdefs.h"
3786 int main() {
3788 ; return 0; }
3790 if { (eval echo configure:3791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3791 rm -rf conftest*
3792 ac_R_nospace=yes
3793 else
3794 echo "configure: failed program was:" >&5
3795 cat conftest.$ac_ext >&5
3796 rm -rf conftest*
3797 ac_R_nospace=no
3799 rm -f conftest*
3800 if test $ac_R_nospace = yes; then
3801 echo "$ac_t""no" 1>&6
3802 X_LIBS="$X_LIBS -R$x_libraries"
3803 else
3804 LIBS="$ac_xsave_LIBS -R $x_libraries"
3805 cat > conftest.$ac_ext <<EOF
3806 #line 3807 "configure"
3807 #include "confdefs.h"
3809 int main() {
3811 ; return 0; }
3813 if { (eval echo configure:3814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3814 rm -rf conftest*
3815 ac_R_space=yes
3816 else
3817 echo "configure: failed program was:" >&5
3818 cat conftest.$ac_ext >&5
3819 rm -rf conftest*
3820 ac_R_space=no
3822 rm -f conftest*
3823 if test $ac_R_space = yes; then
3824 echo "$ac_t""yes" 1>&6
3825 X_LIBS="$X_LIBS -R $x_libraries"
3826 else
3827 echo "$ac_t""neither works" 1>&6
3830 LIBS="$ac_xsave_LIBS"
3831 esac
3834 # Check for system-dependent libraries X programs must link with.
3835 # Do this before checking for the system-independent R6 libraries
3836 # (-lICE), since we may need -lsocket or whatever for X linking.
3838 if test "$ISC" = yes; then
3839 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
3840 else
3841 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
3842 # libraries were built with DECnet support. And karl@cs.umb.edu says
3843 # the Alpha needs dnet_stub (dnet does not exist).
3844 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
3845 echo "configure:3846: checking for dnet_ntoa in -ldnet" >&5
3846 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3847 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3848 echo $ac_n "(cached) $ac_c" 1>&6
3849 else
3850 ac_save_LIBS="$LIBS"
3851 LIBS="-ldnet $LIBS"
3852 cat > conftest.$ac_ext <<EOF
3853 #line 3854 "configure"
3854 #include "confdefs.h"
3855 /* Override any gcc2 internal prototype to avoid an error. */
3856 /* We use char because int might match the return type of a gcc2
3857 builtin and then its argument prototype would still apply. */
3858 char dnet_ntoa();
3860 int main() {
3861 dnet_ntoa()
3862 ; return 0; }
3864 if { (eval echo configure:3865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3865 rm -rf conftest*
3866 eval "ac_cv_lib_$ac_lib_var=yes"
3867 else
3868 echo "configure: failed program was:" >&5
3869 cat conftest.$ac_ext >&5
3870 rm -rf conftest*
3871 eval "ac_cv_lib_$ac_lib_var=no"
3873 rm -f conftest*
3874 LIBS="$ac_save_LIBS"
3877 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3878 echo "$ac_t""yes" 1>&6
3879 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3880 else
3881 echo "$ac_t""no" 1>&6
3884 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3885 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
3886 echo "configure:3887: checking for dnet_ntoa in -ldnet_stub" >&5
3887 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3888 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3889 echo $ac_n "(cached) $ac_c" 1>&6
3890 else
3891 ac_save_LIBS="$LIBS"
3892 LIBS="-ldnet_stub $LIBS"
3893 cat > conftest.$ac_ext <<EOF
3894 #line 3895 "configure"
3895 #include "confdefs.h"
3896 /* Override any gcc2 internal prototype to avoid an error. */
3897 /* We use char because int might match the return type of a gcc2
3898 builtin and then its argument prototype would still apply. */
3899 char dnet_ntoa();
3901 int main() {
3902 dnet_ntoa()
3903 ; return 0; }
3905 if { (eval echo configure:3906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3906 rm -rf conftest*
3907 eval "ac_cv_lib_$ac_lib_var=yes"
3908 else
3909 echo "configure: failed program was:" >&5
3910 cat conftest.$ac_ext >&5
3911 rm -rf conftest*
3912 eval "ac_cv_lib_$ac_lib_var=no"
3914 rm -f conftest*
3915 LIBS="$ac_save_LIBS"
3918 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3919 echo "$ac_t""yes" 1>&6
3920 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3921 else
3922 echo "$ac_t""no" 1>&6
3927 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3928 # to get the SysV transport functions.
3929 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
3930 # needs -lnsl.
3931 # The nsl library prevents programs from opening the X display
3932 # on Irix 5.2, according to dickey@clark.net.
3933 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3934 echo "configure:3935: checking for gethostbyname" >&5
3935 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3936 echo $ac_n "(cached) $ac_c" 1>&6
3937 else
3938 cat > conftest.$ac_ext <<EOF
3939 #line 3940 "configure"
3940 #include "confdefs.h"
3941 /* System header to define __stub macros and hopefully few prototypes,
3942 which can conflict with char gethostbyname(); below. */
3943 #include <assert.h>
3944 /* Override any gcc2 internal prototype to avoid an error. */
3945 /* We use char because int might match the return type of a gcc2
3946 builtin and then its argument prototype would still apply. */
3947 char gethostbyname();
3949 int main() {
3951 /* The GNU C library defines this for functions which it implements
3952 to always fail with ENOSYS. Some functions are actually named
3953 something starting with __ and the normal name is an alias. */
3954 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3955 choke me
3956 #else
3957 gethostbyname();
3958 #endif
3960 ; return 0; }
3962 if { (eval echo configure:3963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3963 rm -rf conftest*
3964 eval "ac_cv_func_gethostbyname=yes"
3965 else
3966 echo "configure: failed program was:" >&5
3967 cat conftest.$ac_ext >&5
3968 rm -rf conftest*
3969 eval "ac_cv_func_gethostbyname=no"
3971 rm -f conftest*
3974 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3975 echo "$ac_t""yes" 1>&6
3977 else
3978 echo "$ac_t""no" 1>&6
3981 if test $ac_cv_func_gethostbyname = no; then
3982 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3983 echo "configure:3984: checking for gethostbyname in -lnsl" >&5
3984 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3985 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3986 echo $ac_n "(cached) $ac_c" 1>&6
3987 else
3988 ac_save_LIBS="$LIBS"
3989 LIBS="-lnsl $LIBS"
3990 cat > conftest.$ac_ext <<EOF
3991 #line 3992 "configure"
3992 #include "confdefs.h"
3993 /* Override any gcc2 internal prototype to avoid an error. */
3994 /* We use char because int might match the return type of a gcc2
3995 builtin and then its argument prototype would still apply. */
3996 char gethostbyname();
3998 int main() {
3999 gethostbyname()
4000 ; return 0; }
4002 if { (eval echo configure:4003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4003 rm -rf conftest*
4004 eval "ac_cv_lib_$ac_lib_var=yes"
4005 else
4006 echo "configure: failed program was:" >&5
4007 cat conftest.$ac_ext >&5
4008 rm -rf conftest*
4009 eval "ac_cv_lib_$ac_lib_var=no"
4011 rm -f conftest*
4012 LIBS="$ac_save_LIBS"
4015 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4016 echo "$ac_t""yes" 1>&6
4017 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
4018 else
4019 echo "$ac_t""no" 1>&6
4024 # lieder@skyler.mavd.honeywell.com says without -lsocket,
4025 # socket/setsockopt and other routines are undefined under SCO ODT
4026 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
4027 # on later versions), says simon@lia.di.epfl.ch: it contains
4028 # gethostby* variants that don't use the nameserver (or something).
4029 # -lsocket must be given before -lnsl if both are needed.
4030 # We assume that if connect needs -lnsl, so does gethostbyname.
4031 echo $ac_n "checking for connect""... $ac_c" 1>&6
4032 echo "configure:4033: checking for connect" >&5
4033 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
4034 echo $ac_n "(cached) $ac_c" 1>&6
4035 else
4036 cat > conftest.$ac_ext <<EOF
4037 #line 4038 "configure"
4038 #include "confdefs.h"
4039 /* System header to define __stub macros and hopefully few prototypes,
4040 which can conflict with char connect(); below. */
4041 #include <assert.h>
4042 /* Override any gcc2 internal prototype to avoid an error. */
4043 /* We use char because int might match the return type of a gcc2
4044 builtin and then its argument prototype would still apply. */
4045 char connect();
4047 int main() {
4049 /* The GNU C library defines this for functions which it implements
4050 to always fail with ENOSYS. Some functions are actually named
4051 something starting with __ and the normal name is an alias. */
4052 #if defined (__stub_connect) || defined (__stub___connect)
4053 choke me
4054 #else
4055 connect();
4056 #endif
4058 ; return 0; }
4060 if { (eval echo configure:4061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4061 rm -rf conftest*
4062 eval "ac_cv_func_connect=yes"
4063 else
4064 echo "configure: failed program was:" >&5
4065 cat conftest.$ac_ext >&5
4066 rm -rf conftest*
4067 eval "ac_cv_func_connect=no"
4069 rm -f conftest*
4072 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
4073 echo "$ac_t""yes" 1>&6
4075 else
4076 echo "$ac_t""no" 1>&6
4079 if test $ac_cv_func_connect = no; then
4080 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
4081 echo "configure:4082: checking for connect in -lsocket" >&5
4082 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
4083 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4084 echo $ac_n "(cached) $ac_c" 1>&6
4085 else
4086 ac_save_LIBS="$LIBS"
4087 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
4088 cat > conftest.$ac_ext <<EOF
4089 #line 4090 "configure"
4090 #include "confdefs.h"
4091 /* Override any gcc2 internal prototype to avoid an error. */
4092 /* We use char because int might match the return type of a gcc2
4093 builtin and then its argument prototype would still apply. */
4094 char connect();
4096 int main() {
4097 connect()
4098 ; return 0; }
4100 if { (eval echo configure:4101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4101 rm -rf conftest*
4102 eval "ac_cv_lib_$ac_lib_var=yes"
4103 else
4104 echo "configure: failed program was:" >&5
4105 cat conftest.$ac_ext >&5
4106 rm -rf conftest*
4107 eval "ac_cv_lib_$ac_lib_var=no"
4109 rm -f conftest*
4110 LIBS="$ac_save_LIBS"
4113 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4114 echo "$ac_t""yes" 1>&6
4115 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
4116 else
4117 echo "$ac_t""no" 1>&6
4122 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
4123 echo $ac_n "checking for remove""... $ac_c" 1>&6
4124 echo "configure:4125: checking for remove" >&5
4125 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
4126 echo $ac_n "(cached) $ac_c" 1>&6
4127 else
4128 cat > conftest.$ac_ext <<EOF
4129 #line 4130 "configure"
4130 #include "confdefs.h"
4131 /* System header to define __stub macros and hopefully few prototypes,
4132 which can conflict with char remove(); below. */
4133 #include <assert.h>
4134 /* Override any gcc2 internal prototype to avoid an error. */
4135 /* We use char because int might match the return type of a gcc2
4136 builtin and then its argument prototype would still apply. */
4137 char remove();
4139 int main() {
4141 /* The GNU C library defines this for functions which it implements
4142 to always fail with ENOSYS. Some functions are actually named
4143 something starting with __ and the normal name is an alias. */
4144 #if defined (__stub_remove) || defined (__stub___remove)
4145 choke me
4146 #else
4147 remove();
4148 #endif
4150 ; return 0; }
4152 if { (eval echo configure:4153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4153 rm -rf conftest*
4154 eval "ac_cv_func_remove=yes"
4155 else
4156 echo "configure: failed program was:" >&5
4157 cat conftest.$ac_ext >&5
4158 rm -rf conftest*
4159 eval "ac_cv_func_remove=no"
4161 rm -f conftest*
4164 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
4165 echo "$ac_t""yes" 1>&6
4167 else
4168 echo "$ac_t""no" 1>&6
4171 if test $ac_cv_func_remove = no; then
4172 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
4173 echo "configure:4174: checking for remove in -lposix" >&5
4174 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
4175 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4176 echo $ac_n "(cached) $ac_c" 1>&6
4177 else
4178 ac_save_LIBS="$LIBS"
4179 LIBS="-lposix $LIBS"
4180 cat > conftest.$ac_ext <<EOF
4181 #line 4182 "configure"
4182 #include "confdefs.h"
4183 /* Override any gcc2 internal prototype to avoid an error. */
4184 /* We use char because int might match the return type of a gcc2
4185 builtin and then its argument prototype would still apply. */
4186 char remove();
4188 int main() {
4189 remove()
4190 ; return 0; }
4192 if { (eval echo configure:4193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4193 rm -rf conftest*
4194 eval "ac_cv_lib_$ac_lib_var=yes"
4195 else
4196 echo "configure: failed program was:" >&5
4197 cat conftest.$ac_ext >&5
4198 rm -rf conftest*
4199 eval "ac_cv_lib_$ac_lib_var=no"
4201 rm -f conftest*
4202 LIBS="$ac_save_LIBS"
4205 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4206 echo "$ac_t""yes" 1>&6
4207 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
4208 else
4209 echo "$ac_t""no" 1>&6
4214 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4215 echo $ac_n "checking for shmat""... $ac_c" 1>&6
4216 echo "configure:4217: checking for shmat" >&5
4217 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
4218 echo $ac_n "(cached) $ac_c" 1>&6
4219 else
4220 cat > conftest.$ac_ext <<EOF
4221 #line 4222 "configure"
4222 #include "confdefs.h"
4223 /* System header to define __stub macros and hopefully few prototypes,
4224 which can conflict with char shmat(); below. */
4225 #include <assert.h>
4226 /* Override any gcc2 internal prototype to avoid an error. */
4227 /* We use char because int might match the return type of a gcc2
4228 builtin and then its argument prototype would still apply. */
4229 char shmat();
4231 int main() {
4233 /* The GNU C library defines this for functions which it implements
4234 to always fail with ENOSYS. Some functions are actually named
4235 something starting with __ and the normal name is an alias. */
4236 #if defined (__stub_shmat) || defined (__stub___shmat)
4237 choke me
4238 #else
4239 shmat();
4240 #endif
4242 ; return 0; }
4244 if { (eval echo configure:4245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4245 rm -rf conftest*
4246 eval "ac_cv_func_shmat=yes"
4247 else
4248 echo "configure: failed program was:" >&5
4249 cat conftest.$ac_ext >&5
4250 rm -rf conftest*
4251 eval "ac_cv_func_shmat=no"
4253 rm -f conftest*
4256 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
4257 echo "$ac_t""yes" 1>&6
4259 else
4260 echo "$ac_t""no" 1>&6
4263 if test $ac_cv_func_shmat = no; then
4264 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
4265 echo "configure:4266: checking for shmat in -lipc" >&5
4266 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
4267 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4268 echo $ac_n "(cached) $ac_c" 1>&6
4269 else
4270 ac_save_LIBS="$LIBS"
4271 LIBS="-lipc $LIBS"
4272 cat > conftest.$ac_ext <<EOF
4273 #line 4274 "configure"
4274 #include "confdefs.h"
4275 /* Override any gcc2 internal prototype to avoid an error. */
4276 /* We use char because int might match the return type of a gcc2
4277 builtin and then its argument prototype would still apply. */
4278 char shmat();
4280 int main() {
4281 shmat()
4282 ; return 0; }
4284 if { (eval echo configure:4285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4285 rm -rf conftest*
4286 eval "ac_cv_lib_$ac_lib_var=yes"
4287 else
4288 echo "configure: failed program was:" >&5
4289 cat conftest.$ac_ext >&5
4290 rm -rf conftest*
4291 eval "ac_cv_lib_$ac_lib_var=no"
4293 rm -f conftest*
4294 LIBS="$ac_save_LIBS"
4297 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4298 echo "$ac_t""yes" 1>&6
4299 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
4300 else
4301 echo "$ac_t""no" 1>&6
4307 # Check for libraries that X11R6 Xt/Xaw programs need.
4308 ac_save_LDFLAGS="$LDFLAGS"
4309 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4310 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4311 # check for ICE first), but we must link in the order -lSM -lICE or
4312 # we get undefined symbols. So assume we have SM if we have ICE.
4313 # These have to be linked with before -lX11, unlike the other
4314 # libraries we check for below, so use a different variable.
4315 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
4316 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
4317 echo "configure:4318: checking for IceConnectionNumber in -lICE" >&5
4318 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
4319 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4320 echo $ac_n "(cached) $ac_c" 1>&6
4321 else
4322 ac_save_LIBS="$LIBS"
4323 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4324 cat > conftest.$ac_ext <<EOF
4325 #line 4326 "configure"
4326 #include "confdefs.h"
4327 /* Override any gcc2 internal prototype to avoid an error. */
4328 /* We use char because int might match the return type of a gcc2
4329 builtin and then its argument prototype would still apply. */
4330 char IceConnectionNumber();
4332 int main() {
4333 IceConnectionNumber()
4334 ; return 0; }
4336 if { (eval echo configure:4337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4337 rm -rf conftest*
4338 eval "ac_cv_lib_$ac_lib_var=yes"
4339 else
4340 echo "configure: failed program was:" >&5
4341 cat conftest.$ac_ext >&5
4342 rm -rf conftest*
4343 eval "ac_cv_lib_$ac_lib_var=no"
4345 rm -f conftest*
4346 LIBS="$ac_save_LIBS"
4349 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4350 echo "$ac_t""yes" 1>&6
4351 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
4352 else
4353 echo "$ac_t""no" 1>&6
4356 LDFLAGS="$ac_save_LDFLAGS"
4361 if test $no_x; then
4362 { echo "configure: error: The path for the X11 files not found!
4363 Make sure you have X and it's headers and libraries (the -devel packages
4364 in Linux) installed." 1>&2; exit 1; }
4367 X_LIBRARY_PATH=$x_libraries
4369 XCFLAGS="$X_CFLAGS"
4371 XLFLAGS="$X_LIBS"
4373 XLIBS="-lX11 $X_EXTRA_LIBS"
4376 lib_search_path="$lib_search_path $XLFLAGS"
4377 inc_search_path="$inc_search_path $XCFLAGS"
4384 use_locale=yes
4385 # Check whether --enable-locale or --disable-locale was given.
4386 if test "${enable_locale+set}" = set; then
4387 enableval="$enable_locale"
4388 use_locale=no
4392 if test "$use_locale" = yes; then
4393 echo $ac_n "checking for _Xsetlocale in -lX11""... $ac_c" 1>&6
4394 echo "configure:4395: checking for _Xsetlocale in -lX11" >&5
4395 ac_lib_var=`echo X11'_'_Xsetlocale | sed 'y%./+-%__p_%'`
4396 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4397 echo $ac_n "(cached) $ac_c" 1>&6
4398 else
4399 ac_save_LIBS="$LIBS"
4400 LIBS="-lX11 $XLFLAGS $XLIBS $LIBS"
4401 cat > conftest.$ac_ext <<EOF
4402 #line 4403 "configure"
4403 #include "confdefs.h"
4404 /* Override any gcc2 internal prototype to avoid an error. */
4405 /* We use char because int might match the return type of a gcc2
4406 builtin and then its argument prototype would still apply. */
4407 char _Xsetlocale();
4409 int main() {
4410 _Xsetlocale()
4411 ; return 0; }
4413 if { (eval echo configure:4414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4414 rm -rf conftest*
4415 eval "ac_cv_lib_$ac_lib_var=yes"
4416 else
4417 echo "configure: failed program was:" >&5
4418 cat conftest.$ac_ext >&5
4419 rm -rf conftest*
4420 eval "ac_cv_lib_$ac_lib_var=no"
4422 rm -f conftest*
4423 LIBS="$ac_save_LIBS"
4426 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4427 echo "$ac_t""yes" 1>&6
4428 cat >> confdefs.h <<\EOF
4429 #define X_LOCALE 1
4432 else
4433 echo "$ac_t""no" 1>&6
4439 # Check whether --enable-modelock or --disable-modelock was given.
4440 if test "${enable_modelock+set}" = set; then
4441 enableval="$enable_modelock"
4442 cat >> confdefs.h <<\EOF
4443 #define XKB_MODELOCK 1
4451 shape=yes
4452 # Check whether --enable-shape or --disable-shape was given.
4453 if test "${enable_shape+set}" = set; then
4454 enableval="$enable_shape"
4455 shape=$enableval
4456 else
4457 shape=yes
4461 added_xext=no
4463 if test "$shape" = yes; then
4464 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
4465 echo "configure:4466: checking for XShapeSelectInput in -lXext" >&5
4466 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
4467 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4468 echo $ac_n "(cached) $ac_c" 1>&6
4469 else
4470 ac_save_LIBS="$LIBS"
4471 LIBS="-lXext $XLFLAGS $XLIBS $LIBS"
4472 cat > conftest.$ac_ext <<EOF
4473 #line 4474 "configure"
4474 #include "confdefs.h"
4475 /* Override any gcc2 internal prototype to avoid an error. */
4476 /* We use char because int might match the return type of a gcc2
4477 builtin and then its argument prototype would still apply. */
4478 char XShapeSelectInput();
4480 int main() {
4481 XShapeSelectInput()
4482 ; return 0; }
4484 if { (eval echo configure:4485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4485 rm -rf conftest*
4486 eval "ac_cv_lib_$ac_lib_var=yes"
4487 else
4488 echo "configure: failed program was:" >&5
4489 cat conftest.$ac_ext >&5
4490 rm -rf conftest*
4491 eval "ac_cv_lib_$ac_lib_var=no"
4493 rm -f conftest*
4494 LIBS="$ac_save_LIBS"
4497 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4498 echo "$ac_t""yes" 1>&6
4499 XLIBS="-lXext $XLIBS"
4500 added_xext=yes
4501 cat >> confdefs.h <<\EOF
4502 #define SHAPE 1
4505 else
4506 echo "$ac_t""no" 1>&6
4507 shape=no
4513 shm=yes
4514 # Check whether --enable-shm or --disable-shm was given.
4515 if test "${enable_shm+set}" = set; then
4516 enableval="$enable_shm"
4517 shm=$enableval
4518 else
4519 shm=yes
4523 if test "$shm" = yes; then
4524 echo $ac_n "checking for XShmAttach in -lXext""... $ac_c" 1>&6
4525 echo "configure:4526: checking for XShmAttach in -lXext" >&5
4526 ac_lib_var=`echo Xext'_'XShmAttach | sed 'y%./+-%__p_%'`
4527 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4528 echo $ac_n "(cached) $ac_c" 1>&6
4529 else
4530 ac_save_LIBS="$LIBS"
4531 LIBS="-lXext $XLFLAGS $XLIBS $LIBS"
4532 cat > conftest.$ac_ext <<EOF
4533 #line 4534 "configure"
4534 #include "confdefs.h"
4535 /* Override any gcc2 internal prototype to avoid an error. */
4536 /* We use char because int might match the return type of a gcc2
4537 builtin and then its argument prototype would still apply. */
4538 char XShmAttach();
4540 int main() {
4541 XShmAttach()
4542 ; return 0; }
4544 if { (eval echo configure:4545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4545 rm -rf conftest*
4546 eval "ac_cv_lib_$ac_lib_var=yes"
4547 else
4548 echo "configure: failed program was:" >&5
4549 cat conftest.$ac_ext >&5
4550 rm -rf conftest*
4551 eval "ac_cv_lib_$ac_lib_var=no"
4553 rm -f conftest*
4554 LIBS="$ac_save_LIBS"
4557 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4558 echo "$ac_t""yes" 1>&6
4559 ok=yes
4560 else
4561 echo "$ac_t""no" 1>&6
4562 ok=no
4566 if test "$ok" = yes; then
4567 echo $ac_n "checking for shmget""... $ac_c" 1>&6
4568 echo "configure:4569: checking for shmget" >&5
4569 if eval "test \"`echo '$''{'ac_cv_func_shmget'+set}'`\" = set"; then
4570 echo $ac_n "(cached) $ac_c" 1>&6
4571 else
4572 cat > conftest.$ac_ext <<EOF
4573 #line 4574 "configure"
4574 #include "confdefs.h"
4575 /* System header to define __stub macros and hopefully few prototypes,
4576 which can conflict with char shmget(); below. */
4577 #include <assert.h>
4578 /* Override any gcc2 internal prototype to avoid an error. */
4579 /* We use char because int might match the return type of a gcc2
4580 builtin and then its argument prototype would still apply. */
4581 char shmget();
4583 int main() {
4585 /* The GNU C library defines this for functions which it implements
4586 to always fail with ENOSYS. Some functions are actually named
4587 something starting with __ and the normal name is an alias. */
4588 #if defined (__stub_shmget) || defined (__stub___shmget)
4589 choke me
4590 #else
4591 shmget();
4592 #endif
4594 ; return 0; }
4596 if { (eval echo configure:4597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4597 rm -rf conftest*
4598 eval "ac_cv_func_shmget=yes"
4599 else
4600 echo "configure: failed program was:" >&5
4601 cat conftest.$ac_ext >&5
4602 rm -rf conftest*
4603 eval "ac_cv_func_shmget=no"
4605 rm -f conftest*
4608 if eval "test \"`echo '$ac_cv_func_'shmget`\" = yes"; then
4609 echo "$ac_t""yes" 1>&6
4610 ok=yes
4611 else
4612 echo "$ac_t""no" 1>&6
4613 ok=no
4618 if test "$ok" = yes; then
4619 if test "$added_xext" = no; then
4620 XLIBS="-lXext $XLIBS"
4622 cat >> confdefs.h <<\EOF
4623 #define XSHM 1
4633 #AC_DEFINE(R6SM)
4634 #AC_SUBST(XSMPLIBS)
4639 LIBPL=""
4642 LDFLAGS_old="$LDFLAGS"
4643 LDFLAGS="$LDFLAGS $lib_search_path"
4644 echo $ac_n "checking for PLGetString in -lPropList""... $ac_c" 1>&6
4645 echo "configure:4646: checking for PLGetString in -lPropList" >&5
4646 ac_lib_var=`echo PropList'_'PLGetString | sed 'y%./+-%__p_%'`
4647 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4648 echo $ac_n "(cached) $ac_c" 1>&6
4649 else
4650 ac_save_LIBS="$LIBS"
4651 LIBS="-lPropList $X_EXTRA_LIBS $LIBS"
4652 cat > conftest.$ac_ext <<EOF
4653 #line 4654 "configure"
4654 #include "confdefs.h"
4655 /* Override any gcc2 internal prototype to avoid an error. */
4656 /* We use char because int might match the return type of a gcc2
4657 builtin and then its argument prototype would still apply. */
4658 char PLGetString();
4660 int main() {
4661 PLGetString()
4662 ; return 0; }
4664 if { (eval echo configure:4665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4665 rm -rf conftest*
4666 eval "ac_cv_lib_$ac_lib_var=yes"
4667 else
4668 echo "configure: failed program was:" >&5
4669 cat conftest.$ac_ext >&5
4670 rm -rf conftest*
4671 eval "ac_cv_lib_$ac_lib_var=no"
4673 rm -f conftest*
4674 LIBS="$ac_save_LIBS"
4677 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4678 echo "$ac_t""yes" 1>&6
4679 yes=yes
4680 else
4681 echo "$ac_t""no" 1>&6
4682 no=no
4685 LDFLAGS="$LDFLAGS_old"
4687 if test "x$ac_cv_lib_PropList_PLGetString" = xyes; then
4689 CPPFLAGS_old="$CPPFLAGS"
4690 CPPFLAGS="$CPPFLAGS $inc_search_path"
4691 ac_safe=`echo "proplist.h" | sed 'y%./+-%__p_%'`
4692 echo $ac_n "checking for proplist.h""... $ac_c" 1>&6
4693 echo "configure:4694: checking for proplist.h" >&5
4694 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4695 echo $ac_n "(cached) $ac_c" 1>&6
4696 else
4697 cat > conftest.$ac_ext <<EOF
4698 #line 4699 "configure"
4699 #include "confdefs.h"
4700 #include <proplist.h>
4702 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4703 { (eval echo configure:4704: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4704 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4705 if test -z "$ac_err"; then
4706 rm -rf conftest*
4707 eval "ac_cv_header_$ac_safe=yes"
4708 else
4709 echo "$ac_err" >&5
4710 echo "configure: failed program was:" >&5
4711 cat conftest.$ac_ext >&5
4712 rm -rf conftest*
4713 eval "ac_cv_header_$ac_safe=no"
4715 rm -f conftest*
4717 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4718 echo "$ac_t""yes" 1>&6
4720 else
4721 echo "$ac_t""no" 1>&6
4724 CPPFLAGS="$CPPFLAGS_old"
4726 if test "x$ac_cv_header_proplist_h" = xyes; then
4727 LIBPL="-lPropList"
4731 if test "x$LIBPL" = "x"; then
4732 echo
4733 echo "ERROR!!! libPropList is not installed, or could not be found."
4734 echo " Window Maker requires libPropList to build."
4735 echo " Please read INSTALL to find where you can find libPropList,"
4736 echo " and install it first."
4737 if test x$host_os = xlinux; then
4738 echo " If you're using some prepackaged version of libPropList,"
4739 echo " make sure you install it's \"development\" package as well."
4741 echo " If you already have it installed, try using the"
4742 if test "x$ac_cv_lib_PropList_PLGetString" != xyes; then
4743 echo " --with-libs-from flag to tell configure where the library"
4744 echo " is installed and"
4746 echo " --with-incs-from flag to tell configure where the header"
4747 echo " files are installed"
4748 exit 1
4752 CPPFLAGS_old="$CPPFLAGS"
4753 CPPFLAGS="$CPPFLAGS $inc_search_path"
4754 lPL_major_version=`echo 0.9.5 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
4755 lPL_minor_version=`echo 0.9.5 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
4756 lPL_micro_version=`echo 0.9.5 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
4757 echo $ac_n "checking whether libPropList is newer than 0.9.5""... $ac_c" 1>&6
4758 echo "configure:4759: checking whether libPropList is newer than 0.9.5" >&5
4759 if eval "test \"`echo '$''{'ac_cv_lib_proplist_version_ok'+set}'`\" = set"; then
4760 echo $ac_n "(cached) $ac_c" 1>&6
4761 else
4762 cat > conftest.$ac_ext <<EOF
4763 #line 4764 "configure"
4764 #include "confdefs.h"
4765 /* Test version of libPropList we have */
4766 #include <proplist.h>
4768 #if !defined(PROPLIST_VERSION) || PROPLIST_VERSION < $lPL_major_version*10000 + $lPL_minor_version*100 + $lPL_micro_version
4769 #error libPropList on this system is too old. Consider upgrading to at least 0.9.5
4770 #endif
4772 int main() {
4774 ; return 0; }
4776 if { (eval echo configure:4777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4777 rm -rf conftest*
4778 eval "ac_cv_lib_proplist_version_ok=yes"
4779 else
4780 echo "configure: failed program was:" >&5
4781 cat conftest.$ac_ext >&5
4782 rm -rf conftest*
4783 eval "ac_cv_lib_proplist_version_ok=no"
4785 rm -f conftest*
4788 if eval "test \"`echo '$ac_cv_lib_proplist_version_ok'`\" = yes"; then
4789 echo "$ac_t""yes" 1>&6
4790 goodlPL=yes
4791 else
4792 echo "$ac_t""no" 1>&6
4793 goodlPL=no
4795 CPPFLAGS="$CPPFLAGS_old"
4798 if test "$goodlPL" = no; then
4799 echo
4800 echo "ERROR!!! libPropList is an old version. Please consider upgrading"
4801 echo " to at least version 0.9.5. Older versions have bugs that"
4802 echo " may cause Window Maker to crash randomly."
4803 echo " If your libPropList is older than 0.9.2 it will also prevent"
4804 echo " Window Maker from compiling because new functions were"
4805 echo " introduced since that version."
4806 echo " Please read INSTALL to find where you can find libPropList,"
4807 echo " and upgrade it before you proceed."
4808 exit 1
4819 xpm=yes
4820 # Check whether --enable-xpm or --disable-xpm was given.
4821 if test "${enable_xpm+set}" = set; then
4822 enableval="$enable_xpm"
4823 xpm=$enableval
4824 else
4825 xpm=yes
4829 if test "$xpm" = yes; then
4831 LDFLAGS_old="$LDFLAGS"
4832 LDFLAGS="$LDFLAGS $lib_search_path"
4833 echo $ac_n "checking for XpmCreatePixmapFromData in -lXpm""... $ac_c" 1>&6
4834 echo "configure:4835: checking for XpmCreatePixmapFromData in -lXpm" >&5
4835 ac_lib_var=`echo Xpm'_'XpmCreatePixmapFromData | sed 'y%./+-%__p_%'`
4836 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4837 echo $ac_n "(cached) $ac_c" 1>&6
4838 else
4839 ac_save_LIBS="$LIBS"
4840 LIBS="-lXpm $XLFLAGS $XLIBS $LIBS"
4841 cat > conftest.$ac_ext <<EOF
4842 #line 4843 "configure"
4843 #include "confdefs.h"
4844 /* Override any gcc2 internal prototype to avoid an error. */
4845 /* We use char because int might match the return type of a gcc2
4846 builtin and then its argument prototype would still apply. */
4847 char XpmCreatePixmapFromData();
4849 int main() {
4850 XpmCreatePixmapFromData()
4851 ; return 0; }
4853 if { (eval echo configure:4854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4854 rm -rf conftest*
4855 eval "ac_cv_lib_$ac_lib_var=yes"
4856 else
4857 echo "configure: failed program was:" >&5
4858 cat conftest.$ac_ext >&5
4859 rm -rf conftest*
4860 eval "ac_cv_lib_$ac_lib_var=no"
4862 rm -f conftest*
4863 LIBS="$ac_save_LIBS"
4866 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4867 echo "$ac_t""yes" 1>&6
4868 yes=yes
4869 else
4870 echo "$ac_t""no" 1>&6
4871 no=no
4874 LDFLAGS="$LDFLAGS_old"
4877 if test "x$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = xyes; then
4879 CPPFLAGS_old="$CPPFLAGS"
4880 CPPFLAGS="$CPPFLAGS $inc_search_path"
4881 ac_safe=`echo "X11/xpm.h" | sed 'y%./+-%__p_%'`
4882 echo $ac_n "checking for X11/xpm.h""... $ac_c" 1>&6
4883 echo "configure:4884: checking for X11/xpm.h" >&5
4884 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4885 echo $ac_n "(cached) $ac_c" 1>&6
4886 else
4887 cat > conftest.$ac_ext <<EOF
4888 #line 4889 "configure"
4889 #include "confdefs.h"
4890 #include <X11/xpm.h>
4892 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4893 { (eval echo configure:4894: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4894 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4895 if test -z "$ac_err"; then
4896 rm -rf conftest*
4897 eval "ac_cv_header_$ac_safe=yes"
4898 else
4899 echo "$ac_err" >&5
4900 echo "configure: failed program was:" >&5
4901 cat conftest.$ac_ext >&5
4902 rm -rf conftest*
4903 eval "ac_cv_header_$ac_safe=no"
4905 rm -f conftest*
4907 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4908 echo "$ac_t""yes" 1>&6
4910 else
4911 echo "$ac_t""no" 1>&6
4914 CPPFLAGS="$CPPFLAGS_old"
4916 if test "x$ac_cv_header_X11_xpm_h" = xyes; then
4917 GFXLIBS="$GFXLIBS -lXpm"
4918 supported_gfx="XPM"
4919 cat >> confdefs.h <<\EOF
4920 #define USE_XPM 1
4923 else
4924 supported_gfx="builtin-XPM"
4929 # for wmlib
4931 # for test
4939 png=yes
4940 # Check whether --enable-png or --disable-png was given.
4941 if test "${enable_png+set}" = set; then
4942 enableval="$enable_png"
4943 png=$enableval
4944 else
4945 png=yes
4950 if test "$png" = yes ; then
4952 LDFLAGS_old="$LDFLAGS"
4953 LDFLAGS="$LDFLAGS $lib_search_path"
4954 echo $ac_n "checking for png_get_valid in -lpng""... $ac_c" 1>&6
4955 echo "configure:4956: checking for png_get_valid in -lpng" >&5
4956 ac_lib_var=`echo png'_'png_get_valid | sed 'y%./+-%__p_%'`
4957 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4958 echo $ac_n "(cached) $ac_c" 1>&6
4959 else
4960 ac_save_LIBS="$LIBS"
4961 LIBS="-lpng -lz -lm $LIBS"
4962 cat > conftest.$ac_ext <<EOF
4963 #line 4964 "configure"
4964 #include "confdefs.h"
4965 /* Override any gcc2 internal prototype to avoid an error. */
4966 /* We use char because int might match the return type of a gcc2
4967 builtin and then its argument prototype would still apply. */
4968 char png_get_valid();
4970 int main() {
4971 png_get_valid()
4972 ; return 0; }
4974 if { (eval echo configure:4975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4975 rm -rf conftest*
4976 eval "ac_cv_lib_$ac_lib_var=yes"
4977 else
4978 echo "configure: failed program was:" >&5
4979 cat conftest.$ac_ext >&5
4980 rm -rf conftest*
4981 eval "ac_cv_lib_$ac_lib_var=no"
4983 rm -f conftest*
4984 LIBS="$ac_save_LIBS"
4987 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4988 echo "$ac_t""yes" 1>&6
4989 yes=yes
4990 else
4991 echo "$ac_t""no" 1>&6
4992 no=no
4995 LDFLAGS="$LDFLAGS_old"
4998 if test "x$ac_cv_lib_png_png_get_valid" = xyes; then
5000 CPPFLAGS_old="$CPPFLAGS"
5001 CPPFLAGS="$CPPFLAGS $inc_search_path"
5002 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
5003 echo $ac_n "checking for png.h""... $ac_c" 1>&6
5004 echo "configure:5005: checking for png.h" >&5
5005 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5006 echo $ac_n "(cached) $ac_c" 1>&6
5007 else
5008 cat > conftest.$ac_ext <<EOF
5009 #line 5010 "configure"
5010 #include "confdefs.h"
5011 #include <png.h>
5013 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5014 { (eval echo configure:5015: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5015 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5016 if test -z "$ac_err"; then
5017 rm -rf conftest*
5018 eval "ac_cv_header_$ac_safe=yes"
5019 else
5020 echo "$ac_err" >&5
5021 echo "configure: failed program was:" >&5
5022 cat conftest.$ac_ext >&5
5023 rm -rf conftest*
5024 eval "ac_cv_header_$ac_safe=no"
5026 rm -f conftest*
5028 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5029 echo "$ac_t""yes" 1>&6
5031 else
5032 echo "$ac_t""no" 1>&6
5035 CPPFLAGS="$CPPFLAGS_old"
5037 if test "x$ac_cv_header_png_h" = xyes; then
5038 GFXLIBS="$GFXLIBS -lpng -lz"
5039 supported_gfx="$supported_gfx PNG"
5040 cat >> confdefs.h <<\EOF
5041 #define USE_PNG 1
5049 jpeg=yes
5050 ljpeg=""
5051 # Check whether --enable-jpeg or --disable-jpeg was given.
5052 if test "${enable_jpeg+set}" = set; then
5053 enableval="$enable_jpeg"
5054 jpeg=$enableval
5055 else
5056 jpeg=yes
5060 if test "$jpeg" = yes; then
5062 LDFLAGS_old="$LDFLAGS"
5063 LDFLAGS="$LDFLAGS $lib_search_path"
5064 echo $ac_n "checking for jpeg_destroy_compress in -ljpeg""... $ac_c" 1>&6
5065 echo "configure:5066: checking for jpeg_destroy_compress in -ljpeg" >&5
5066 ac_lib_var=`echo jpeg'_'jpeg_destroy_compress | sed 'y%./+-%__p_%'`
5067 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5068 echo $ac_n "(cached) $ac_c" 1>&6
5069 else
5070 ac_save_LIBS="$LIBS"
5071 LIBS="-ljpeg $LIBS"
5072 cat > conftest.$ac_ext <<EOF
5073 #line 5074 "configure"
5074 #include "confdefs.h"
5075 /* Override any gcc2 internal prototype to avoid an error. */
5076 /* We use char because int might match the return type of a gcc2
5077 builtin and then its argument prototype would still apply. */
5078 char jpeg_destroy_compress();
5080 int main() {
5081 jpeg_destroy_compress()
5082 ; return 0; }
5084 if { (eval echo configure:5085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5085 rm -rf conftest*
5086 eval "ac_cv_lib_$ac_lib_var=yes"
5087 else
5088 echo "configure: failed program was:" >&5
5089 cat conftest.$ac_ext >&5
5090 rm -rf conftest*
5091 eval "ac_cv_lib_$ac_lib_var=no"
5093 rm -f conftest*
5094 LIBS="$ac_save_LIBS"
5097 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5098 echo "$ac_t""yes" 1>&6
5099 yes=yes
5100 else
5101 echo "$ac_t""no" 1>&6
5102 no=no
5105 LDFLAGS="$LDFLAGS_old"
5108 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = xyes; then
5110 ljpeg="-ljpeg"
5113 CPPFLAGS_old="$CPPFLAGS"
5114 CPPFLAGS="$CPPFLAGS $inc_search_path"
5115 ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
5116 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
5117 echo "configure:5118: checking for jpeglib.h" >&5
5118 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5119 echo $ac_n "(cached) $ac_c" 1>&6
5120 else
5121 cat > conftest.$ac_ext <<EOF
5122 #line 5123 "configure"
5123 #include "confdefs.h"
5124 #include <jpeglib.h>
5126 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5127 { (eval echo configure:5128: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5128 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5129 if test -z "$ac_err"; then
5130 rm -rf conftest*
5131 eval "ac_cv_header_$ac_safe=yes"
5132 else
5133 echo "$ac_err" >&5
5134 echo "configure: failed program was:" >&5
5135 cat conftest.$ac_ext >&5
5136 rm -rf conftest*
5137 eval "ac_cv_header_$ac_safe=no"
5139 rm -f conftest*
5141 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5142 echo "$ac_t""yes" 1>&6
5144 else
5145 echo "$ac_t""no" 1>&6
5148 CPPFLAGS="$CPPFLAGS_old"
5150 if test "x$ac_cv_header_jpeglib_h" = xyes; then
5151 GFXLIBS="$GFXLIBS -ljpeg"
5152 supported_gfx="$supported_gfx JPEG"
5153 cat >> confdefs.h <<\EOF
5154 #define USE_JPEG 1
5162 gif=yes
5163 # Check whether --enable-gif or --disable-gif was given.
5164 if test "${enable_gif+set}" = set; then
5165 enableval="$enable_gif"
5166 gif=$enableval
5167 else
5168 gif=yes
5172 if test "$gif" = yes; then
5173 my_libname=""
5175 LDFLAGS_old="$LDFLAGS"
5176 LDFLAGS="$LDFLAGS $lib_search_path"
5177 echo $ac_n "checking for DGifOpenFileName in -lungif""... $ac_c" 1>&6
5178 echo "configure:5179: checking for DGifOpenFileName in -lungif" >&5
5179 ac_lib_var=`echo ungif'_'DGifOpenFileName | sed 'y%./+-%__p_%'`
5180 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5181 echo $ac_n "(cached) $ac_c" 1>&6
5182 else
5183 ac_save_LIBS="$LIBS"
5184 LIBS="-lungif $XLFLAGS $XLIBS $LIBS"
5185 cat > conftest.$ac_ext <<EOF
5186 #line 5187 "configure"
5187 #include "confdefs.h"
5188 /* Override any gcc2 internal prototype to avoid an error. */
5189 /* We use char because int might match the return type of a gcc2
5190 builtin and then its argument prototype would still apply. */
5191 char DGifOpenFileName();
5193 int main() {
5194 DGifOpenFileName()
5195 ; return 0; }
5197 if { (eval echo configure:5198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5198 rm -rf conftest*
5199 eval "ac_cv_lib_$ac_lib_var=yes"
5200 else
5201 echo "configure: failed program was:" >&5
5202 cat conftest.$ac_ext >&5
5203 rm -rf conftest*
5204 eval "ac_cv_lib_$ac_lib_var=no"
5206 rm -f conftest*
5207 LIBS="$ac_save_LIBS"
5210 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5211 echo "$ac_t""yes" 1>&6
5212 yes=yes
5213 else
5214 echo "$ac_t""no" 1>&6
5215 no=no
5218 LDFLAGS="$LDFLAGS_old"
5220 if test "x$ac_cv_lib_ungif_DGifOpenFileName" = xyes; then
5221 my_libname=-lungif
5223 if test "x$my_libname" = x; then
5225 LDFLAGS_old="$LDFLAGS"
5226 LDFLAGS="$LDFLAGS $lib_search_path"
5227 echo $ac_n "checking for DGifOpenFileName in -lgif""... $ac_c" 1>&6
5228 echo "configure:5229: checking for DGifOpenFileName in -lgif" >&5
5229 ac_lib_var=`echo gif'_'DGifOpenFileName | sed 'y%./+-%__p_%'`
5230 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5231 echo $ac_n "(cached) $ac_c" 1>&6
5232 else
5233 ac_save_LIBS="$LIBS"
5234 LIBS="-lgif $XLFLAGS $XLIBS $LIBS"
5235 cat > conftest.$ac_ext <<EOF
5236 #line 5237 "configure"
5237 #include "confdefs.h"
5238 /* Override any gcc2 internal prototype to avoid an error. */
5239 /* We use char because int might match the return type of a gcc2
5240 builtin and then its argument prototype would still apply. */
5241 char DGifOpenFileName();
5243 int main() {
5244 DGifOpenFileName()
5245 ; return 0; }
5247 if { (eval echo configure:5248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5248 rm -rf conftest*
5249 eval "ac_cv_lib_$ac_lib_var=yes"
5250 else
5251 echo "configure: failed program was:" >&5
5252 cat conftest.$ac_ext >&5
5253 rm -rf conftest*
5254 eval "ac_cv_lib_$ac_lib_var=no"
5256 rm -f conftest*
5257 LIBS="$ac_save_LIBS"
5260 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5261 echo "$ac_t""yes" 1>&6
5262 yes=yes
5263 else
5264 echo "$ac_t""no" 1>&6
5265 no=no
5268 LDFLAGS="$LDFLAGS_old"
5270 if test "x$ac_cv_lib_gif_DGifOpenFileName" = xyes; then
5271 my_libname=-lgif
5275 if test "$my_libname" != x; then
5277 CPPFLAGS_old="$CPPFLAGS"
5278 CPPFLAGS="$CPPFLAGS $inc_search_path"
5279 ac_safe=`echo "gif_lib.h" | sed 'y%./+-%__p_%'`
5280 echo $ac_n "checking for gif_lib.h""... $ac_c" 1>&6
5281 echo "configure:5282: checking for gif_lib.h" >&5
5282 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5283 echo $ac_n "(cached) $ac_c" 1>&6
5284 else
5285 cat > conftest.$ac_ext <<EOF
5286 #line 5287 "configure"
5287 #include "confdefs.h"
5288 #include <gif_lib.h>
5290 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5291 { (eval echo configure:5292: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5292 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5293 if test -z "$ac_err"; then
5294 rm -rf conftest*
5295 eval "ac_cv_header_$ac_safe=yes"
5296 else
5297 echo "$ac_err" >&5
5298 echo "configure: failed program was:" >&5
5299 cat conftest.$ac_ext >&5
5300 rm -rf conftest*
5301 eval "ac_cv_header_$ac_safe=no"
5303 rm -f conftest*
5305 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5306 echo "$ac_t""yes" 1>&6
5308 else
5309 echo "$ac_t""no" 1>&6
5312 CPPFLAGS="$CPPFLAGS_old"
5314 if test "x$ac_cv_header_gif_lib_h" = xyes; then
5315 GFXLIBS="$GFXLIBS $my_libname"
5316 supported_gfx="$supported_gfx GIF"
5317 cat >> confdefs.h <<\EOF
5318 #define USE_GIF 1
5327 # Check whether --enable-tiff or --disable-tiff was given.
5328 if test "${enable_tiff+set}" = set; then
5329 enableval="$enable_tiff"
5330 tif=$enableval
5331 else
5332 tif=yes
5337 # TIFF can optionally have JPEG and/or zlib support. Must find out
5338 # when they are supported so that correct library flags are passed during
5339 # detection and linkage
5342 # By default use xpm icons if tiff is not found.
5343 ICONEXT="xpm"
5346 if test "$tif" = yes; then
5347 my_libname=""
5349 LDFLAGS_old="$LDFLAGS"
5350 LDFLAGS="$LDFLAGS $lib_search_path"
5351 echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6
5352 echo "configure:5353: checking for TIFFGetVersion in -ltiff" >&5
5353 ac_lib_var=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'`
5354 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5355 echo $ac_n "(cached) $ac_c" 1>&6
5356 else
5357 ac_save_LIBS="$LIBS"
5358 LIBS="-ltiff -lm $LIBS"
5359 cat > conftest.$ac_ext <<EOF
5360 #line 5361 "configure"
5361 #include "confdefs.h"
5362 /* Override any gcc2 internal prototype to avoid an error. */
5363 /* We use char because int might match the return type of a gcc2
5364 builtin and then its argument prototype would still apply. */
5365 char TIFFGetVersion();
5367 int main() {
5368 TIFFGetVersion()
5369 ; return 0; }
5371 if { (eval echo configure:5372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5372 rm -rf conftest*
5373 eval "ac_cv_lib_$ac_lib_var=yes"
5374 else
5375 echo "configure: failed program was:" >&5
5376 cat conftest.$ac_ext >&5
5377 rm -rf conftest*
5378 eval "ac_cv_lib_$ac_lib_var=no"
5380 rm -f conftest*
5381 LIBS="$ac_save_LIBS"
5384 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5385 echo "$ac_t""yes" 1>&6
5386 yes=yes
5387 else
5388 echo "$ac_t""no" 1>&6
5389 no=no
5392 LDFLAGS="$LDFLAGS_old"
5394 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = xyes; then
5395 my_libname="-ltiff"
5397 unset ac_cv_lib_tiff_TIFFGetVersion
5398 if test "x$my_libname" = x; then
5400 LDFLAGS_old="$LDFLAGS"
5401 LDFLAGS="$LDFLAGS $lib_search_path"
5402 echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6
5403 echo "configure:5404: checking for TIFFGetVersion in -ltiff" >&5
5404 ac_lib_var=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'`
5405 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5406 echo $ac_n "(cached) $ac_c" 1>&6
5407 else
5408 ac_save_LIBS="$LIBS"
5409 LIBS="-ltiff $ljpeg -lz -lm $LIBS"
5410 cat > conftest.$ac_ext <<EOF
5411 #line 5412 "configure"
5412 #include "confdefs.h"
5413 /* Override any gcc2 internal prototype to avoid an error. */
5414 /* We use char because int might match the return type of a gcc2
5415 builtin and then its argument prototype would still apply. */
5416 char TIFFGetVersion();
5418 int main() {
5419 TIFFGetVersion()
5420 ; return 0; }
5422 if { (eval echo configure:5423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5423 rm -rf conftest*
5424 eval "ac_cv_lib_$ac_lib_var=yes"
5425 else
5426 echo "configure: failed program was:" >&5
5427 cat conftest.$ac_ext >&5
5428 rm -rf conftest*
5429 eval "ac_cv_lib_$ac_lib_var=no"
5431 rm -f conftest*
5432 LIBS="$ac_save_LIBS"
5435 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5436 echo "$ac_t""yes" 1>&6
5437 yes=yes
5438 else
5439 echo "$ac_t""no" 1>&6
5440 no=no
5443 LDFLAGS="$LDFLAGS_old"
5445 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = xyes; then
5446 my_libname="-ltiff -lz"
5450 if test "x$my_libname" = x; then
5452 LDFLAGS_old="$LDFLAGS"
5453 LDFLAGS="$LDFLAGS $lib_search_path"
5454 echo $ac_n "checking for TIFFGetVersion in -ltiff34""... $ac_c" 1>&6
5455 echo "configure:5456: checking for TIFFGetVersion in -ltiff34" >&5
5456 ac_lib_var=`echo tiff34'_'TIFFGetVersion | sed 'y%./+-%__p_%'`
5457 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5458 echo $ac_n "(cached) $ac_c" 1>&6
5459 else
5460 ac_save_LIBS="$LIBS"
5461 LIBS="-ltiff34 $ljpeg -lm $LIBS"
5462 cat > conftest.$ac_ext <<EOF
5463 #line 5464 "configure"
5464 #include "confdefs.h"
5465 /* Override any gcc2 internal prototype to avoid an error. */
5466 /* We use char because int might match the return type of a gcc2
5467 builtin and then its argument prototype would still apply. */
5468 char TIFFGetVersion();
5470 int main() {
5471 TIFFGetVersion()
5472 ; return 0; }
5474 if { (eval echo configure:5475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5475 rm -rf conftest*
5476 eval "ac_cv_lib_$ac_lib_var=yes"
5477 else
5478 echo "configure: failed program was:" >&5
5479 cat conftest.$ac_ext >&5
5480 rm -rf conftest*
5481 eval "ac_cv_lib_$ac_lib_var=no"
5483 rm -f conftest*
5484 LIBS="$ac_save_LIBS"
5487 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5488 echo "$ac_t""yes" 1>&6
5489 yes=yes
5490 else
5491 echo "$ac_t""no" 1>&6
5492 no=no
5495 LDFLAGS="$LDFLAGS_old"
5497 if test "x$ac_cv_lib_tiff34_TIFFGetVersion" = xyes; then
5498 my_libname="-ltiff34"
5503 if test "x$my_libname" != x; then
5505 CPPFLAGS_old="$CPPFLAGS"
5506 CPPFLAGS="$CPPFLAGS $inc_search_path"
5507 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
5508 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
5509 echo "configure:5510: checking for tiffio.h" >&5
5510 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5511 echo $ac_n "(cached) $ac_c" 1>&6
5512 else
5513 cat > conftest.$ac_ext <<EOF
5514 #line 5515 "configure"
5515 #include "confdefs.h"
5516 #include <tiffio.h>
5518 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5519 { (eval echo configure:5520: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5520 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5521 if test -z "$ac_err"; then
5522 rm -rf conftest*
5523 eval "ac_cv_header_$ac_safe=yes"
5524 else
5525 echo "$ac_err" >&5
5526 echo "configure: failed program was:" >&5
5527 cat conftest.$ac_ext >&5
5528 rm -rf conftest*
5529 eval "ac_cv_header_$ac_safe=no"
5531 rm -f conftest*
5533 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5534 echo "$ac_t""yes" 1>&6
5536 else
5537 echo "$ac_t""no" 1>&6
5540 CPPFLAGS="$CPPFLAGS_old"
5542 if test "x$ac_cv_header_tiffio_h" = xyes; then
5543 GFXLIBS="$my_libname $GFXLIBS"
5544 ICONEXT="tiff"
5545 supported_gfx="$supported_gfx TIFF"
5546 cat >> confdefs.h <<\EOF
5547 #define USE_TIFF 1
5554 LIBRARY_SEARCH_PATH="$lib_search_path"
5555 HEADER_SEARCH_PATH="$inc_search_path"
5567 # Check whether --enable-debug or --disable-debug was given.
5568 if test "${enable_debug+set}" = set; then
5569 enableval="$enable_debug"
5571 else
5572 enable_debug=no
5576 if test "$enable_debug" = yes; then
5577 DFLAGS="-g -DDEBUG"
5578 # Efence makes things too slow. Add it by hand in the Makefiles
5579 # if it is really needed.
5580 # AC_CHECK_LIB(efence, malloc, LIBS="$LIBS -lefence")
5581 else
5582 DFLAGS="-DWITHOUT_NANA"
5587 sound=yes
5588 # Check whether --enable-sound or --disable-sound was given.
5589 if test "${enable_sound+set}" = set; then
5590 enableval="$enable_sound"
5591 sound=$enableval
5592 else
5593 sound=yes
5596 if test "$sound" = yes; then
5597 cat >> confdefs.h <<\EOF
5598 #define WMSOUND 1
5604 # AC_PREFIX_PROGRAM(wmaker)
5606 # Check whether --with-pixmapdir or --without-pixmapdir was given.
5607 if test "${with_pixmapdir+set}" = set; then
5608 withval="$with_pixmapdir"
5613 if test "x$with_pixmapdir" != "x"; then
5614 pixmapdir=$with_pixmapdir
5615 else
5616 pixmapdir=`eval echo ${datadir}/pixmaps`
5619 cat >> confdefs.h <<EOF
5620 #define PIXMAPDIR "$pixmapdir"
5624 pkgdatadir=`eval echo $datadir`
5625 cat >> confdefs.h <<EOF
5626 #define PKGDATADIR "$pkgdatadir/WindowMaker"
5630 _sysconfdir=`eval echo $sysconfdir`
5631 cat >> confdefs.h <<EOF
5632 #define SYSCONFDIR "$_sysconfdir"
5638 appspath=""
5640 # Check whether --with-appspath or --without-appspath was given.
5641 if test "${with_appspath+set}" = set; then
5642 withval="$with_appspath"
5643 appspath=$withval
5647 if test "x$appspath" = "x"; then
5648 gnustepdir='$(prefix)/GNUstep'
5650 if test "x$GNUSTEP_LOCAL_ROOT" != "x" ; then
5651 gnustepdir=`echo "$GNUSTEP_LOCAL_ROOT" | sed -e "s|^${prefix}|prefix|"`
5652 gnustepdir=`echo $gnustepdir | sed -e 's|^prefix|${prefix}|'`
5655 with_appspath=$gnustepdir/Apps
5658 wprefsdir=$with_appspath/WPrefs.app
5664 # Check whether --enable-single-icon or --disable-single-icon was given.
5665 if test "${enable_single_icon+set}" = set; then
5666 enableval="$enable_single_icon"
5667 if test "$enableval" = yes; then
5668 cat >> confdefs.h <<\EOF
5669 #define REDUCE_APPICONS 1
5677 # Check whether --enable-usermenu or --disable-usermenu was given.
5678 if test "${enable_usermenu+set}" = set; then
5679 enableval="$enable_usermenu"
5680 if test "$enableval" = yes; then
5681 cat >> confdefs.h <<\EOF
5682 #define USER_MENU 1
5693 trap '' 1 2 15
5694 cat > confcache <<\EOF
5695 # This file is a shell script that caches the results of configure
5696 # tests run on this system so they can be shared between configure
5697 # scripts and configure runs. It is not useful on other systems.
5698 # If it contains results you don't want to keep, you may remove or edit it.
5700 # By default, configure uses ./config.cache as the cache file,
5701 # creating it if it does not exist already. You can give configure
5702 # the --cache-file=FILE option to use a different cache file; that is
5703 # what configure does when it calls configure scripts in
5704 # subdirectories, so they share the cache.
5705 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5706 # config.status only pays attention to the cache file if you give it the
5707 # --recheck option to rerun configure.
5710 # The following way of writing the cache mishandles newlines in values,
5711 # but we know of no workaround that is simple, portable, and efficient.
5712 # So, don't put newlines in cache variables' values.
5713 # Ultrix sh set writes to stderr and can't be redirected directly,
5714 # and sets the high bit in the cache file unless we assign to the vars.
5715 (set) 2>&1 |
5716 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5717 *ac_space=\ *)
5718 # `set' does not quote correctly, so add quotes (double-quote substitution
5719 # turns \\\\ into \\, and sed turns \\ into \).
5720 sed -n \
5721 -e "s/'/'\\\\''/g" \
5722 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5725 # `set' quotes correctly as required by POSIX, so do not add quotes.
5726 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5728 esac >> confcache
5729 if cmp -s $cache_file confcache; then
5731 else
5732 if test -w $cache_file; then
5733 echo "updating cache $cache_file"
5734 cat confcache > $cache_file
5735 else
5736 echo "not updating unwritable cache $cache_file"
5739 rm -f confcache
5741 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5743 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5744 # Let make expand exec_prefix.
5745 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5747 # Any assignment to VPATH causes Sun make to only execute
5748 # the first set of double-colon rules, so remove it if not needed.
5749 # If there is a colon in the path, we need to keep it.
5750 if test "x$srcdir" = x.; then
5751 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
5754 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5756 DEFS=-DHAVE_CONFIG_H
5758 # Without the "./", some shells look in PATH for config.status.
5759 : ${CONFIG_STATUS=./config.status}
5761 echo creating $CONFIG_STATUS
5762 rm -f $CONFIG_STATUS
5763 cat > $CONFIG_STATUS <<EOF
5764 #! /bin/sh
5765 # Generated automatically by configure.
5766 # Run this file to recreate the current configuration.
5767 # This directory was configured as follows,
5768 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5770 # $0 $ac_configure_args
5772 # Compiler output produced by configure, useful for debugging
5773 # configure, is in ./config.log if it exists.
5775 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5776 for ac_option
5778 case "\$ac_option" in
5779 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5780 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5781 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5782 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5783 echo "$CONFIG_STATUS generated by autoconf version 2.13"
5784 exit 0 ;;
5785 -help | --help | --hel | --he | --h)
5786 echo "\$ac_cs_usage"; exit 0 ;;
5787 *) echo "\$ac_cs_usage"; exit 1 ;;
5788 esac
5789 done
5791 ac_given_srcdir=$srcdir
5792 ac_given_INSTALL="$INSTALL"
5794 trap 'rm -fr `echo "Makefile po/Makefile util/Makefile test/Makefile wmlib/Makefile \
5795 WINGs/Makefile WINGs/Resources/Makefile src/Makefile src/wconfig.h \
5796 wrlib/Makefile doc/Makefile WindowMaker/Makefile contrib/Makefile \
5797 WindowMaker/Backgrounds/Makefile WindowMaker/Defaults/Makefile \
5798 WindowMaker/IconSets/Makefile WindowMaker/Icons/Makefile \
5799 WindowMaker/Pixmaps/Makefile WindowMaker/Styles/Makefile \
5800 WindowMaker/Themes/Makefile \
5801 WPrefs.app/Makefile WPrefs.app/tiff/Makefile WPrefs.app/xpm/Makefile \
5802 WPrefs.app/po/Makefile src/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5804 cat >> $CONFIG_STATUS <<EOF
5806 # Protect against being on the right side of a sed subst in config.status.
5807 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5808 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5809 $ac_vpsub
5810 $extrasub
5811 s%@SHELL@%$SHELL%g
5812 s%@CFLAGS@%$CFLAGS%g
5813 s%@CPPFLAGS@%$CPPFLAGS%g
5814 s%@CXXFLAGS@%$CXXFLAGS%g
5815 s%@FFLAGS@%$FFLAGS%g
5816 s%@DEFS@%$DEFS%g
5817 s%@LDFLAGS@%$LDFLAGS%g
5818 s%@LIBS@%$LIBS%g
5819 s%@exec_prefix@%$exec_prefix%g
5820 s%@prefix@%$prefix%g
5821 s%@program_transform_name@%$program_transform_name%g
5822 s%@bindir@%$bindir%g
5823 s%@sbindir@%$sbindir%g
5824 s%@libexecdir@%$libexecdir%g
5825 s%@datadir@%$datadir%g
5826 s%@sysconfdir@%$sysconfdir%g
5827 s%@sharedstatedir@%$sharedstatedir%g
5828 s%@localstatedir@%$localstatedir%g
5829 s%@libdir@%$libdir%g
5830 s%@includedir@%$includedir%g
5831 s%@oldincludedir@%$oldincludedir%g
5832 s%@infodir@%$infodir%g
5833 s%@mandir@%$mandir%g
5834 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5835 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5836 s%@INSTALL_DATA@%$INSTALL_DATA%g
5837 s%@PACKAGE@%$PACKAGE%g
5838 s%@VERSION@%$VERSION%g
5839 s%@ACLOCAL@%$ACLOCAL%g
5840 s%@AUTOCONF@%$AUTOCONF%g
5841 s%@AUTOMAKE@%$AUTOMAKE%g
5842 s%@AUTOHEADER@%$AUTOHEADER%g
5843 s%@MAKEINFO@%$MAKEINFO%g
5844 s%@SET_MAKE@%$SET_MAKE%g
5845 s%@host@%$host%g
5846 s%@host_alias@%$host_alias%g
5847 s%@host_cpu@%$host_cpu%g
5848 s%@host_vendor@%$host_vendor%g
5849 s%@host_os@%$host_os%g
5850 s%@build@%$build%g
5851 s%@build_alias@%$build_alias%g
5852 s%@build_cpu@%$build_cpu%g
5853 s%@build_vendor@%$build_vendor%g
5854 s%@build_os@%$build_os%g
5855 s%@RANLIB@%$RANLIB%g
5856 s%@CC@%$CC%g
5857 s%@LD@%$LD%g
5858 s%@NM@%$NM%g
5859 s%@LN_S@%$LN_S%g
5860 s%@LIBTOOL@%$LIBTOOL%g
5861 s%@CPP@%$CPP%g
5862 s%@ALLOCA@%$ALLOCA%g
5863 s%@CPP_PATH@%$CPP_PATH%g
5864 s%@XGETTEXT@%$XGETTEXT%g
5865 s%@DLLIBS@%$DLLIBS%g
5866 s%@INTLIBS@%$INTLIBS%g
5867 s%@NLSDIR@%$NLSDIR%g
5868 s%@MOFILES@%$MOFILES%g
5869 s%@WPMOFILES@%$WPMOFILES%g
5870 s%@LITE@%$LITE%g
5871 s%@NETLIBS@%$NETLIBS%g
5872 s%@X_CFLAGS@%$X_CFLAGS%g
5873 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
5874 s%@X_LIBS@%$X_LIBS%g
5875 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
5876 s%@X_LIBRARY_PATH@%$X_LIBRARY_PATH%g
5877 s%@LIBPL@%$LIBPL%g
5878 s%@XCFLAGS@%$XCFLAGS%g
5879 s%@XLFLAGS@%$XLFLAGS%g
5880 s%@XLIBS@%$XLIBS%g
5881 s%@LIBRARY_SEARCH_PATH@%$LIBRARY_SEARCH_PATH%g
5882 s%@HEADER_SEARCH_PATH@%$HEADER_SEARCH_PATH%g
5883 s%@GFXLIBS@%$GFXLIBS%g
5884 s%@ICONEXT@%$ICONEXT%g
5885 s%@DFLAGS@%$DFLAGS%g
5886 s%@wprefsdir@%$wprefsdir%g
5888 CEOF
5891 cat >> $CONFIG_STATUS <<\EOF
5893 # Split the substitutions into bite-sized pieces for seds with
5894 # small command number limits, like on Digital OSF/1 and HP-UX.
5895 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
5896 ac_file=1 # Number of current file.
5897 ac_beg=1 # First line for current file.
5898 ac_end=$ac_max_sed_cmds # Line after last line for current file.
5899 ac_more_lines=:
5900 ac_sed_cmds=""
5901 while $ac_more_lines; do
5902 if test $ac_beg -gt 1; then
5903 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
5904 else
5905 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
5907 if test ! -s conftest.s$ac_file; then
5908 ac_more_lines=false
5909 rm -f conftest.s$ac_file
5910 else
5911 if test -z "$ac_sed_cmds"; then
5912 ac_sed_cmds="sed -f conftest.s$ac_file"
5913 else
5914 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
5916 ac_file=`expr $ac_file + 1`
5917 ac_beg=$ac_end
5918 ac_end=`expr $ac_end + $ac_max_sed_cmds`
5920 done
5921 if test -z "$ac_sed_cmds"; then
5922 ac_sed_cmds=cat
5926 cat >> $CONFIG_STATUS <<EOF
5928 CONFIG_FILES=\${CONFIG_FILES-"Makefile po/Makefile util/Makefile test/Makefile wmlib/Makefile \
5929 WINGs/Makefile WINGs/Resources/Makefile src/Makefile src/wconfig.h \
5930 wrlib/Makefile doc/Makefile WindowMaker/Makefile contrib/Makefile \
5931 WindowMaker/Backgrounds/Makefile WindowMaker/Defaults/Makefile \
5932 WindowMaker/IconSets/Makefile WindowMaker/Icons/Makefile \
5933 WindowMaker/Pixmaps/Makefile WindowMaker/Styles/Makefile \
5934 WindowMaker/Themes/Makefile \
5935 WPrefs.app/Makefile WPrefs.app/tiff/Makefile WPrefs.app/xpm/Makefile \
5936 WPrefs.app/po/Makefile "}
5938 cat >> $CONFIG_STATUS <<\EOF
5939 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
5940 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5941 case "$ac_file" in
5942 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5943 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5944 *) ac_file_in="${ac_file}.in" ;;
5945 esac
5947 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5949 # Remove last slash and all that follows it. Not all systems have dirname.
5950 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5951 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5952 # The file is in a subdirectory.
5953 test ! -d "$ac_dir" && mkdir "$ac_dir"
5954 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
5955 # A "../" for each directory in $ac_dir_suffix.
5956 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5957 else
5958 ac_dir_suffix= ac_dots=
5961 case "$ac_given_srcdir" in
5962 .) srcdir=.
5963 if test -z "$ac_dots"; then top_srcdir=.
5964 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5965 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
5966 *) # Relative path.
5967 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5968 top_srcdir="$ac_dots$ac_given_srcdir" ;;
5969 esac
5971 case "$ac_given_INSTALL" in
5972 [/$]*) INSTALL="$ac_given_INSTALL" ;;
5973 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5974 esac
5976 echo creating "$ac_file"
5977 rm -f "$ac_file"
5978 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5979 case "$ac_file" in
5980 *Makefile*) ac_comsub="1i\\
5981 # $configure_input" ;;
5982 *) ac_comsub= ;;
5983 esac
5985 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5986 sed -e "$ac_comsub
5987 s%@configure_input@%$configure_input%g
5988 s%@srcdir@%$srcdir%g
5989 s%@top_srcdir@%$top_srcdir%g
5990 s%@INSTALL@%$INSTALL%g
5991 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
5992 fi; done
5993 rm -f conftest.s*
5995 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5996 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5998 # ac_d sets the value in "#define NAME VALUE" lines.
5999 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6000 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
6001 ac_dC='\3'
6002 ac_dD='%g'
6003 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
6004 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6005 ac_uB='\([ ]\)%\1#\2define\3'
6006 ac_uC=' '
6007 ac_uD='\4%g'
6008 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6009 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6010 ac_eB='$%\1#\2define\3'
6011 ac_eC=' '
6012 ac_eD='%g'
6014 if test "${CONFIG_HEADERS+set}" != set; then
6016 cat >> $CONFIG_STATUS <<EOF
6017 CONFIG_HEADERS="src/config.h"
6019 cat >> $CONFIG_STATUS <<\EOF
6021 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
6022 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6023 case "$ac_file" in
6024 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6025 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6026 *) ac_file_in="${ac_file}.in" ;;
6027 esac
6029 echo creating $ac_file
6031 rm -f conftest.frag conftest.in conftest.out
6032 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6033 cat $ac_file_inputs > conftest.in
6037 # Transform confdefs.h into a sed script conftest.vals that substitutes
6038 # the proper values into config.h.in to produce config.h. And first:
6039 # Protect against being on the right side of a sed subst in config.status.
6040 # Protect against being in an unquoted here document in config.status.
6041 rm -f conftest.vals
6042 cat > conftest.hdr <<\EOF
6043 s/[\\&%]/\\&/g
6044 s%[\\$`]%\\&%g
6045 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6046 s%ac_d%ac_u%gp
6047 s%ac_u%ac_e%gp
6049 sed -n -f conftest.hdr confdefs.h > conftest.vals
6050 rm -f conftest.hdr
6052 # This sed command replaces #undef with comments. This is necessary, for
6053 # example, in the case of _POSIX_SOURCE, which is predefined and required
6054 # on some systems where configure will not decide to define it.
6055 cat >> conftest.vals <<\EOF
6056 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6059 # Break up conftest.vals because some shells have a limit on
6060 # the size of here documents, and old seds have small limits too.
6062 rm -f conftest.tail
6063 while :
6065 ac_lines=`grep -c . conftest.vals`
6066 # grep -c gives empty output for an empty file on some AIX systems.
6067 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6068 # Write a limited-size here document to conftest.frag.
6069 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6070 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6071 echo 'CEOF
6072 sed -f conftest.frag conftest.in > conftest.out
6073 rm -f conftest.in
6074 mv conftest.out conftest.in
6075 ' >> $CONFIG_STATUS
6076 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6077 rm -f conftest.vals
6078 mv conftest.tail conftest.vals
6079 done
6080 rm -f conftest.vals
6082 cat >> $CONFIG_STATUS <<\EOF
6083 rm -f conftest.frag conftest.h
6084 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
6085 cat conftest.in >> conftest.h
6086 rm -f conftest.in
6087 if cmp -s $ac_file conftest.h 2>/dev/null; then
6088 echo "$ac_file is unchanged"
6089 rm -f conftest.h
6090 else
6091 # Remove last slash and all that follows it. Not all systems have dirname.
6092 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6093 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6094 # The file is in a subdirectory.
6095 test ! -d "$ac_dir" && mkdir "$ac_dir"
6097 rm -f $ac_file
6098 mv conftest.h $ac_file
6100 fi; done
6103 cat >> $CONFIG_STATUS <<EOF
6107 cat >> $CONFIG_STATUS <<\EOF
6108 test -z "$CONFIG_HEADERS" || echo timestamp > src/stamp-h
6110 exit 0
6112 chmod +x $CONFIG_STATUS
6113 rm -fr confdefs* $ac_clean_files
6114 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
6122 cat <<EOF >get-wraster-flags
6123 #!/bin/sh
6125 prefix="$prefix"
6126 exec_prefix=\$prefix
6128 WCFLAGS="-I\$prefix/include $inc_search_path"
6129 WLFLAGS="-L\$exec_prefix/lib $lib_search_path"
6130 WLIBS="-lwraster $GFXLIBS $XLIBS -lm"
6132 usage="Usage: get-wraster-flags #lp#--cflags#rp# #lp#--ldflags#rp# #lp#--libs#rp#"
6134 if test \$# -eq 0; then
6135 echo "\${usage}" 1>&2
6136 exit 1
6139 while test \$# -gt 0; do
6140 case \$1 in
6141 --cflags)
6142 echo \$WCFLAGS
6144 --ldflags|--lflags)
6145 echo \$WLFLAGS
6147 --libs)
6148 echo \$WLIBS
6151 echo "\${usage}" 1>&2
6152 exit 1
6154 esac
6155 shift
6156 done
6161 cat <<EOF >get-wings-flags
6162 #!/bin/sh
6164 prefix="$prefix"
6165 exec_prefix=\$prefix
6167 WCFLAGS="-I\$prefix/include $inc_search_path"
6168 WLFLAGS="-L\$exec_prefix/lib $lib_search_path"
6169 WLIBS="-lWINGs -lwraster $GFXLIBS $XLIBS -lm $NETLIBS -lPropList"
6171 usage="Usage: get-wings-flags #lp#--cflags#rp# #lp#--ldflags#rp# #lp#--libs#rp#"
6173 if test \$# -eq 0; then
6174 echo "\${usage}" 1>&2
6175 exit 1
6178 while test \$# -gt 0; do
6179 case \$1 in
6180 --cflags)
6181 echo \$WCFLAGS
6183 --ldflags|--lflags)
6184 echo \$WLFLAGS
6186 --libs)
6187 echo \$WLIBS
6190 echo "\${usage}" 1>&2
6191 exit 1
6193 esac
6194 shift
6195 done
6200 cat <<EOF >get-wutil-flags
6201 #!/bin/sh
6203 prefix="$prefix"
6204 exec_prefix=\$prefix
6206 WCFLAGS="-I\$prefix/include $inc_search_path"
6207 WLFLAGS="-L\$exec_prefix/lib $lib_search_path"
6208 WLIBS="-lWUtil $NETLIBS -lPropList"
6210 usage="Usage: get-wutil-flags #lp#--cflags#rp# #lp#--ldflags#rp# #lp#--libs#rp#"
6212 if test \$# -eq 0; then
6213 echo "\${usage}" 1>&2
6214 exit 1
6217 while test \$# -gt 0; do
6218 case \$1 in
6219 --cflags)
6220 echo \$WCFLAGS
6222 --ldflags|--lflags)
6223 echo \$WLFLAGS
6225 --libs)
6226 echo \$WLIBS
6229 echo "\${usage}" 1>&2
6230 exit 1
6232 esac
6233 shift
6234 done
6239 sed 's/#lp#/[/g' get-wraster-flags | sed 's/#rp#/]/g' > wrlib/get-wraster-flags
6240 sed 's/#lp#/[/g' get-wings-flags | sed 's/#rp#/]/g' > WINGs/get-wings-flags
6241 sed 's/#lp#/[/g' get-wutil-flags | sed 's/#rp#/]/g' > WINGs/get-wutil-flags
6243 chmod 755 wrlib/get-wraster-flags WINGs/get-wings-flags WINGs/get-wutil-flags
6245 rm -f get-wraster-flags get-wings-flags get-wutil-flags
6249 supported_gfx="$supported_gfx builtin-PPM"
6251 if test "x$MOFILES" = "x"; then
6252 mof=none
6253 else
6254 mof=$MOFILES
6258 echo
6259 echo "Window Maker was configured as follows:"
6260 echo
6261 echo "Installation path prefix: $prefix"
6262 echo "Installation path prefix for binaries: $_bindir"
6263 echo "Installation path for WPrefs.app: $wprefsdir" | sed -e 's|\$(prefix)|'"$prefix|"
6264 echo "Graphic format libraries: $supported_gfx"
6265 echo "Sound support: $sound"
6266 echo "Translated message files to install: $mof"
6267 if test "x$MOFILES" != "x"; then
6268 echo "Installation path of translated messages: $NLSDIR" | sed -e 's|\$(prefix)|'"$prefix|"
6272 if test "x$ac_cv_header_jpeglib_h" != xyes; then
6273 echo "WARNING WARNING WARNING WARNING WARNING WARNING WARNING"
6274 echo
6275 echo "JPEG support will not be included because the JPEG library is"
6276 echo "not installed correctly or was not found. Background images"
6277 echo "from themes will not display as they usually are JPEG files."
6278 echo
6279 echo "To fix, download and install the jpeg library and/or make sure you"
6280 echo "installed all jpeg related packages, SPECIALLY the development packages"
6281 echo "like jpeg-devel (if you use some prepackaged version of libjpeg)."
6282 echo
6283 echo "WARNING WARNING WARNING WARNING WARNING WARNING WARNING"