Removed titlebar drop shadow code and add plugin to draw text on titlebars.
[wmaker-crm.git] / configure
blobd39b011ce0a8f4dde271c01e54a7411877cb39d6
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.60.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
1533 # Make sure we can run config.sub.
1534 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1535 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1538 echo $ac_n "checking host system type""... $ac_c" 1>&6
1539 echo "configure:1540: checking host system type" >&5
1541 host_alias=$host
1542 case "$host_alias" in
1543 NONE)
1544 case $nonopt in
1545 NONE)
1546 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1547 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1548 fi ;;
1549 *) host_alias=$nonopt ;;
1550 esac ;;
1551 esac
1553 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1554 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1555 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1556 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1557 echo "$ac_t""$host" 1>&6
1561 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1562 echo "configure:1563: checking for POSIXized ISC" >&5
1563 if test -d /etc/conf/kconfig.d &&
1564 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1565 then
1566 echo "$ac_t""yes" 1>&6
1567 ISC=yes # If later tests want to check for ISC.
1568 cat >> confdefs.h <<\EOF
1569 #define _POSIX_SOURCE 1
1572 if test "$GCC" = yes; then
1573 CC="$CC -posix"
1574 else
1575 CC="$CC -Xp"
1577 else
1578 echo "$ac_t""no" 1>&6
1579 ISC=
1582 # Extract the first word of "gcc", so it can be a program name with args.
1583 set dummy gcc; ac_word=$2
1584 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1585 echo "configure:1586: checking for $ac_word" >&5
1586 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1587 echo $ac_n "(cached) $ac_c" 1>&6
1588 else
1589 if test -n "$CC"; then
1590 ac_cv_prog_CC="$CC" # Let the user override the test.
1591 else
1592 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1593 ac_dummy="$PATH"
1594 for ac_dir in $ac_dummy; do
1595 test -z "$ac_dir" && ac_dir=.
1596 if test -f $ac_dir/$ac_word; then
1597 ac_cv_prog_CC="gcc"
1598 break
1600 done
1601 IFS="$ac_save_ifs"
1604 CC="$ac_cv_prog_CC"
1605 if test -n "$CC"; then
1606 echo "$ac_t""$CC" 1>&6
1607 else
1608 echo "$ac_t""no" 1>&6
1611 if test -z "$CC"; then
1612 # Extract the first word of "cc", so it can be a program name with args.
1613 set dummy cc; ac_word=$2
1614 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1615 echo "configure:1616: checking for $ac_word" >&5
1616 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1617 echo $ac_n "(cached) $ac_c" 1>&6
1618 else
1619 if test -n "$CC"; then
1620 ac_cv_prog_CC="$CC" # Let the user override the test.
1621 else
1622 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1623 ac_prog_rejected=no
1624 ac_dummy="$PATH"
1625 for ac_dir in $ac_dummy; do
1626 test -z "$ac_dir" && ac_dir=.
1627 if test -f $ac_dir/$ac_word; then
1628 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1629 ac_prog_rejected=yes
1630 continue
1632 ac_cv_prog_CC="cc"
1633 break
1635 done
1636 IFS="$ac_save_ifs"
1637 if test $ac_prog_rejected = yes; then
1638 # We found a bogon in the path, so make sure we never use it.
1639 set dummy $ac_cv_prog_CC
1640 shift
1641 if test $# -gt 0; then
1642 # We chose a different compiler from the bogus one.
1643 # However, it has the same basename, so the bogon will be chosen
1644 # first if we set CC to just the basename; use the full file name.
1645 shift
1646 set dummy "$ac_dir/$ac_word" "$@"
1647 shift
1648 ac_cv_prog_CC="$@"
1653 CC="$ac_cv_prog_CC"
1654 if test -n "$CC"; then
1655 echo "$ac_t""$CC" 1>&6
1656 else
1657 echo "$ac_t""no" 1>&6
1660 if test -z "$CC"; then
1661 case "`uname -s`" in
1662 *win32* | *WIN32*)
1663 # Extract the first word of "cl", so it can be a program name with args.
1664 set dummy cl; ac_word=$2
1665 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1666 echo "configure:1667: checking for $ac_word" >&5
1667 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1668 echo $ac_n "(cached) $ac_c" 1>&6
1669 else
1670 if test -n "$CC"; then
1671 ac_cv_prog_CC="$CC" # Let the user override the test.
1672 else
1673 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1674 ac_dummy="$PATH"
1675 for ac_dir in $ac_dummy; do
1676 test -z "$ac_dir" && ac_dir=.
1677 if test -f $ac_dir/$ac_word; then
1678 ac_cv_prog_CC="cl"
1679 break
1681 done
1682 IFS="$ac_save_ifs"
1685 CC="$ac_cv_prog_CC"
1686 if test -n "$CC"; then
1687 echo "$ac_t""$CC" 1>&6
1688 else
1689 echo "$ac_t""no" 1>&6
1692 esac
1694 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1697 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1698 echo "configure:1699: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1700 ac_ext=c
1701 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1702 ac_cpp='$CPP $CPPFLAGS'
1703 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1704 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1705 cross_compiling=$ac_cv_prog_cc_cross
1707 cat > conftest.$ac_ext << EOF
1709 #line 1710 "configure"
1710 #include "confdefs.h"
1712 main(){return(0);}
1714 if { (eval echo configure:1715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1715 ac_cv_prog_cc_works=yes
1716 # If we can't run a trivial program, we are probably using a cross compiler.
1717 if (./conftest; exit) 2>/dev/null; then
1718 ac_cv_prog_cc_cross=no
1719 else
1720 ac_cv_prog_cc_cross=yes
1722 else
1723 echo "configure: failed program was:" >&5
1724 cat conftest.$ac_ext >&5
1725 ac_cv_prog_cc_works=no
1727 rm -fr conftest*
1728 ac_ext=c
1729 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1730 ac_cpp='$CPP $CPPFLAGS'
1731 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1732 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1733 cross_compiling=$ac_cv_prog_cc_cross
1735 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1736 if test $ac_cv_prog_cc_works = no; then
1737 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1739 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1740 echo "configure:1741: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1741 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1742 cross_compiling=$ac_cv_prog_cc_cross
1744 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1745 echo "configure:1746: checking whether we are using GNU C" >&5
1746 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1747 echo $ac_n "(cached) $ac_c" 1>&6
1748 else
1749 cat > conftest.c <<EOF
1750 #ifdef __GNUC__
1751 yes;
1752 #endif
1754 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1755: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1755 ac_cv_prog_gcc=yes
1756 else
1757 ac_cv_prog_gcc=no
1761 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1763 if test $ac_cv_prog_gcc = yes; then
1764 GCC=yes
1765 else
1766 GCC=
1769 ac_test_CFLAGS="${CFLAGS+set}"
1770 ac_save_CFLAGS="$CFLAGS"
1771 CFLAGS=
1772 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1773 echo "configure:1774: checking whether ${CC-cc} accepts -g" >&5
1774 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1775 echo $ac_n "(cached) $ac_c" 1>&6
1776 else
1777 echo 'void f(){}' > conftest.c
1778 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1779 ac_cv_prog_cc_g=yes
1780 else
1781 ac_cv_prog_cc_g=no
1783 rm -f conftest*
1787 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1788 if test "$ac_test_CFLAGS" = set; then
1789 CFLAGS="$ac_save_CFLAGS"
1790 elif test $ac_cv_prog_cc_g = yes; then
1791 if test "$GCC" = yes; then
1792 CFLAGS="-g -O2"
1793 else
1794 CFLAGS="-g"
1796 else
1797 if test "$GCC" = yes; then
1798 CFLAGS="-O2"
1799 else
1800 CFLAGS=
1804 #AC_PROG_RANLIB
1805 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1806 echo "configure:1807: checking whether ln -s works" >&5
1807 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1808 echo $ac_n "(cached) $ac_c" 1>&6
1809 else
1810 rm -f conftestdata
1811 if ln -s X conftestdata 2>/dev/null
1812 then
1813 rm -f conftestdata
1814 ac_cv_prog_LN_S="ln -s"
1815 else
1816 ac_cv_prog_LN_S=ln
1819 LN_S="$ac_cv_prog_LN_S"
1820 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1821 echo "$ac_t""yes" 1>&6
1822 else
1823 echo "$ac_t""no" 1>&6
1826 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1827 echo "configure:1828: checking how to run the C preprocessor" >&5
1828 # On Suns, sometimes $CPP names a directory.
1829 if test -n "$CPP" && test -d "$CPP"; then
1830 CPP=
1832 if test -z "$CPP"; then
1833 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1834 echo $ac_n "(cached) $ac_c" 1>&6
1835 else
1836 # This must be in double quotes, not single quotes, because CPP may get
1837 # substituted into the Makefile and "${CC-cc}" will confuse make.
1838 CPP="${CC-cc} -E"
1839 # On the NeXT, cc -E runs the code through the compiler's parser,
1840 # not just through cpp.
1841 cat > conftest.$ac_ext <<EOF
1842 #line 1843 "configure"
1843 #include "confdefs.h"
1844 #include <assert.h>
1845 Syntax Error
1847 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1848 { (eval echo configure:1849: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1849 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1850 if test -z "$ac_err"; then
1852 else
1853 echo "$ac_err" >&5
1854 echo "configure: failed program was:" >&5
1855 cat conftest.$ac_ext >&5
1856 rm -rf conftest*
1857 CPP="${CC-cc} -E -traditional-cpp"
1858 cat > conftest.$ac_ext <<EOF
1859 #line 1860 "configure"
1860 #include "confdefs.h"
1861 #include <assert.h>
1862 Syntax Error
1864 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1865 { (eval echo configure:1866: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1866 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1867 if test -z "$ac_err"; then
1869 else
1870 echo "$ac_err" >&5
1871 echo "configure: failed program was:" >&5
1872 cat conftest.$ac_ext >&5
1873 rm -rf conftest*
1874 CPP="${CC-cc} -nologo -E"
1875 cat > conftest.$ac_ext <<EOF
1876 #line 1877 "configure"
1877 #include "confdefs.h"
1878 #include <assert.h>
1879 Syntax Error
1881 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1882 { (eval echo configure:1883: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1883 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1884 if test -z "$ac_err"; then
1886 else
1887 echo "$ac_err" >&5
1888 echo "configure: failed program was:" >&5
1889 cat conftest.$ac_ext >&5
1890 rm -rf conftest*
1891 CPP=/lib/cpp
1893 rm -f conftest*
1895 rm -f conftest*
1897 rm -f conftest*
1898 ac_cv_prog_CPP="$CPP"
1900 CPP="$ac_cv_prog_CPP"
1901 else
1902 ac_cv_prog_CPP="$CPP"
1904 echo "$ac_t""$CPP" 1>&6
1906 if test $ac_cv_prog_gcc = yes; then
1907 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1908 echo "configure:1909: checking whether ${CC-cc} needs -traditional" >&5
1909 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1910 echo $ac_n "(cached) $ac_c" 1>&6
1911 else
1912 ac_pattern="Autoconf.*'x'"
1913 cat > conftest.$ac_ext <<EOF
1914 #line 1915 "configure"
1915 #include "confdefs.h"
1916 #include <sgtty.h>
1917 Autoconf TIOCGETP
1919 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1920 egrep "$ac_pattern" >/dev/null 2>&1; then
1921 rm -rf conftest*
1922 ac_cv_prog_gcc_traditional=yes
1923 else
1924 rm -rf conftest*
1925 ac_cv_prog_gcc_traditional=no
1927 rm -f conftest*
1930 if test $ac_cv_prog_gcc_traditional = no; then
1931 cat > conftest.$ac_ext <<EOF
1932 #line 1933 "configure"
1933 #include "confdefs.h"
1934 #include <termio.h>
1935 Autoconf TCGETA
1937 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1938 egrep "$ac_pattern" >/dev/null 2>&1; then
1939 rm -rf conftest*
1940 ac_cv_prog_gcc_traditional=yes
1942 rm -f conftest*
1947 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1948 if test $ac_cv_prog_gcc_traditional = yes; then
1949 CC="$CC -traditional"
1956 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1957 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1960 _bindir=`eval echo $bindir`
1961 _bindir=`eval echo $_bindir`
1963 _libdir=`eval echo $libdir`
1964 _libdir=`eval echo $_libdir`
1965 lib_search_path="-L$_libdir"
1967 inc_search_path=`eval echo $includedir`
1968 inc_search_path="-I`eval echo $inc_search_path`"
1973 echo $ac_n "checking for RedHat system""... $ac_c" 1>&6
1974 echo "configure:1975: checking for RedHat system" >&5
1975 wm_check_flag='no :)'
1976 rh_is_redhat=no
1977 if test -f /etc/redhat-release; then
1978 wm_check_flag=yes
1979 rh_is_redhat=yes
1981 echo "$ac_t""$wm_check_flag" 1>&6
1983 mins_found=no
1984 bugs_found=no
1985 if test "$wm_check_flag" = yes; then
1986 echo
1987 echo "configure: warning: Red Hat system; checking for Red-Hat-specific bugs." 1>&2
1988 echo
1990 # Check old wmaker from RedHat
1992 if test "$prefix" != "/usr/X11R6" -a "$prefix" != "/usr/X11"; then
1993 echo $ac_n "checking for multiple installed wmaker versions""... $ac_c" 1>&6
1994 echo "configure:1995: checking for multiple installed wmaker versions" >&5
1995 if test -f /usr/X11R6/bin/wmaker; then
1996 echo "$ac_t""uh oh" 1>&6
1997 mins_found=yes
1998 rh_old_wmaker=yes
1999 else
2000 rh_old_wmaker=no
2001 echo "$ac_t""no apparent problems" 1>&6
2005 # Check for infamous en_RN bug
2006 # Wont work because autoconf will change LANG in the beginning of the
2007 # script.
2010 #AC_MSG_CHECKING(for silly en_RN joke that only causes headaches)
2011 #echo $LANG
2012 #if test "x$LANG" = xen_RN; then
2013 #AC_MSG_RESULT(uh oh)
2014 #AC_MSG_WARN([the LANG environment variable is set to the en_RN
2015 #locale. Please unset it or you will have mysterious problems when
2016 #using various software packages.])
2017 #bugs_found=yes
2018 #else
2019 #AC_MSG_RESULT(no problem)
2022 # If binary installation path is /usr/local/bin, check if it's in PATH
2024 if test "$_bindir" = "/usr/local/bin"; then
2025 echo $ac_n "checking if /usr/local/bin is in the search PATH""... $ac_c" 1>&6
2026 echo "configure:2027: checking if /usr/local/bin is in the search PATH" >&5
2027 wm_check_flag=no
2028 rh_missing_usr_local_bin=yes
2029 old_IFS="$IFS"
2030 IFS=":"
2031 for i in $PATH; do
2032 if test "x$i" = "x/usr/local/bin"; then
2033 wm_check_flag=yes
2034 rh_missing_usr_local_bin=no
2035 break;
2037 done
2038 IFS="$old_IFS"
2039 if test "$wm_check_flag" = no; then
2040 echo "$ac_t""uh oh" 1>&6
2041 bugs_found=yes
2042 else
2043 echo "$ac_t""no problem" 1>&6
2047 # If library installation path is /usr/local/lib,
2048 # check if it's in /etc/ld.so.conf
2050 if test "$_libdir" = "/usr/local/lib"; then
2051 wm_check_flag=yes
2052 rh_missing_usr_local_lib=no
2053 echo $ac_n "checking if /usr/local/lib is in /etc/ld.so.conf""... $ac_c" 1>&6
2054 echo "configure:2055: checking if /usr/local/lib is in /etc/ld.so.conf" >&5
2055 test -z "`grep /usr/local/lib /etc/ld.so.conf`"
2056 test "$?" -eq 0 && wm_check_flag=no
2057 if test "$wm_check_flag" = no; then
2058 echo "$ac_t""uh oh" 1>&6
2059 rh_missing_usr_local_lib=yes
2060 bugs_found=yes
2061 else
2062 echo "$ac_t""no problem" 1>&6
2066 # Check for symbolic links
2068 echo $ac_n "checking for /usr/include/X11 symbolic link""... $ac_c" 1>&6
2069 echo "configure:2070: checking for /usr/include/X11 symbolic link" >&5
2070 rh_missing_usr_include_x11=no
2071 if test -d "/usr/include/X11"; then
2072 echo "$ac_t""found" 1>&6
2073 else
2074 echo "$ac_t""uh oh" 1>&6
2075 rh_missing_usr_include_x11=yes
2076 mins_found=yes
2080 # Check for /lib/cpp
2082 echo $ac_n "checking for /lib/cpp""... $ac_c" 1>&6
2083 echo "configure:2084: checking for /lib/cpp" >&5
2084 rh_missing_lib_cpp=no
2085 if test -f "/lib/cpp"; then
2086 echo "$ac_t""found" 1>&6
2087 else
2088 echo "$ac_t""uh oh" 1>&6
2089 rh_missing_lib_cpp=yes
2090 bugs_found=yes
2093 echo
2098 # Check whether --with-libs-from or --without-libs-from was given.
2099 if test "${with_libs_from+set}" = set; then
2100 withval="$with_libs_from"
2101 lib_search_path="$withval $lib_search_path"
2105 # Check whether --with-incs-from or --without-incs-from was given.
2106 if test "${with_incs_from+set}" = set; then
2107 withval="$with_incs_from"
2108 inc_search_path="$withval $inc_search_path"
2114 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
2115 echo "configure:2116: checking for vprintf" >&5
2116 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
2117 echo $ac_n "(cached) $ac_c" 1>&6
2118 else
2119 cat > conftest.$ac_ext <<EOF
2120 #line 2121 "configure"
2121 #include "confdefs.h"
2122 /* System header to define __stub macros and hopefully few prototypes,
2123 which can conflict with char vprintf(); below. */
2124 #include <assert.h>
2125 /* Override any gcc2 internal prototype to avoid an error. */
2126 /* We use char because int might match the return type of a gcc2
2127 builtin and then its argument prototype would still apply. */
2128 char vprintf();
2130 int main() {
2132 /* The GNU C library defines this for functions which it implements
2133 to always fail with ENOSYS. Some functions are actually named
2134 something starting with __ and the normal name is an alias. */
2135 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2136 choke me
2137 #else
2138 vprintf();
2139 #endif
2141 ; return 0; }
2143 if { (eval echo configure:2144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2144 rm -rf conftest*
2145 eval "ac_cv_func_vprintf=yes"
2146 else
2147 echo "configure: failed program was:" >&5
2148 cat conftest.$ac_ext >&5
2149 rm -rf conftest*
2150 eval "ac_cv_func_vprintf=no"
2152 rm -f conftest*
2155 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2156 echo "$ac_t""yes" 1>&6
2157 cat >> confdefs.h <<\EOF
2158 #define HAVE_VPRINTF 1
2161 else
2162 echo "$ac_t""no" 1>&6
2165 if test "$ac_cv_func_vprintf" != yes; then
2166 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2167 echo "configure:2168: checking for _doprnt" >&5
2168 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2169 echo $ac_n "(cached) $ac_c" 1>&6
2170 else
2171 cat > conftest.$ac_ext <<EOF
2172 #line 2173 "configure"
2173 #include "confdefs.h"
2174 /* System header to define __stub macros and hopefully few prototypes,
2175 which can conflict with char _doprnt(); below. */
2176 #include <assert.h>
2177 /* Override any gcc2 internal prototype to avoid an error. */
2178 /* We use char because int might match the return type of a gcc2
2179 builtin and then its argument prototype would still apply. */
2180 char _doprnt();
2182 int main() {
2184 /* The GNU C library defines this for functions which it implements
2185 to always fail with ENOSYS. Some functions are actually named
2186 something starting with __ and the normal name is an alias. */
2187 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2188 choke me
2189 #else
2190 _doprnt();
2191 #endif
2193 ; return 0; }
2195 if { (eval echo configure:2196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2196 rm -rf conftest*
2197 eval "ac_cv_func__doprnt=yes"
2198 else
2199 echo "configure: failed program was:" >&5
2200 cat conftest.$ac_ext >&5
2201 rm -rf conftest*
2202 eval "ac_cv_func__doprnt=no"
2204 rm -f conftest*
2207 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2208 echo "$ac_t""yes" 1>&6
2209 cat >> confdefs.h <<\EOF
2210 #define HAVE_DOPRNT 1
2213 else
2214 echo "$ac_t""no" 1>&6
2219 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2220 # for constant arguments. Useless!
2221 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2222 echo "configure:2223: checking for working alloca.h" >&5
2223 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2224 echo $ac_n "(cached) $ac_c" 1>&6
2225 else
2226 cat > conftest.$ac_ext <<EOF
2227 #line 2228 "configure"
2228 #include "confdefs.h"
2229 #include <alloca.h>
2230 int main() {
2231 char *p = alloca(2 * sizeof(int));
2232 ; return 0; }
2234 if { (eval echo configure:2235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2235 rm -rf conftest*
2236 ac_cv_header_alloca_h=yes
2237 else
2238 echo "configure: failed program was:" >&5
2239 cat conftest.$ac_ext >&5
2240 rm -rf conftest*
2241 ac_cv_header_alloca_h=no
2243 rm -f conftest*
2246 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2247 if test $ac_cv_header_alloca_h = yes; then
2248 cat >> confdefs.h <<\EOF
2249 #define HAVE_ALLOCA_H 1
2254 echo $ac_n "checking for alloca""... $ac_c" 1>&6
2255 echo "configure:2256: checking for alloca" >&5
2256 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2257 echo $ac_n "(cached) $ac_c" 1>&6
2258 else
2259 cat > conftest.$ac_ext <<EOF
2260 #line 2261 "configure"
2261 #include "confdefs.h"
2263 #ifdef __GNUC__
2264 # define alloca __builtin_alloca
2265 #else
2266 # ifdef _MSC_VER
2267 # include <malloc.h>
2268 # define alloca _alloca
2269 # else
2270 # if HAVE_ALLOCA_H
2271 # include <alloca.h>
2272 # else
2273 # ifdef _AIX
2274 #pragma alloca
2275 # else
2276 # ifndef alloca /* predefined by HP cc +Olibcalls */
2277 char *alloca ();
2278 # endif
2279 # endif
2280 # endif
2281 # endif
2282 #endif
2284 int main() {
2285 char *p = (char *) alloca(1);
2286 ; return 0; }
2288 if { (eval echo configure:2289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2289 rm -rf conftest*
2290 ac_cv_func_alloca_works=yes
2291 else
2292 echo "configure: failed program was:" >&5
2293 cat conftest.$ac_ext >&5
2294 rm -rf conftest*
2295 ac_cv_func_alloca_works=no
2297 rm -f conftest*
2300 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2301 if test $ac_cv_func_alloca_works = yes; then
2302 cat >> confdefs.h <<\EOF
2303 #define HAVE_ALLOCA 1
2308 if test $ac_cv_func_alloca_works = no; then
2309 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2310 # that cause trouble. Some versions do not even contain alloca or
2311 # contain a buggy version. If you still want to use their alloca,
2312 # use ar to extract alloca.o from them instead of compiling alloca.c.
2313 ALLOCA=alloca.${ac_objext}
2314 cat >> confdefs.h <<\EOF
2315 #define C_ALLOCA 1
2319 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2320 echo "configure:2321: checking whether alloca needs Cray hooks" >&5
2321 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2322 echo $ac_n "(cached) $ac_c" 1>&6
2323 else
2324 cat > conftest.$ac_ext <<EOF
2325 #line 2326 "configure"
2326 #include "confdefs.h"
2327 #if defined(CRAY) && ! defined(CRAY2)
2328 webecray
2329 #else
2330 wenotbecray
2331 #endif
2334 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2335 egrep "webecray" >/dev/null 2>&1; then
2336 rm -rf conftest*
2337 ac_cv_os_cray=yes
2338 else
2339 rm -rf conftest*
2340 ac_cv_os_cray=no
2342 rm -f conftest*
2346 echo "$ac_t""$ac_cv_os_cray" 1>&6
2347 if test $ac_cv_os_cray = yes; then
2348 for ac_func in _getb67 GETB67 getb67; do
2349 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2350 echo "configure:2351: checking for $ac_func" >&5
2351 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2352 echo $ac_n "(cached) $ac_c" 1>&6
2353 else
2354 cat > conftest.$ac_ext <<EOF
2355 #line 2356 "configure"
2356 #include "confdefs.h"
2357 /* System header to define __stub macros and hopefully few prototypes,
2358 which can conflict with char $ac_func(); below. */
2359 #include <assert.h>
2360 /* Override any gcc2 internal prototype to avoid an error. */
2361 /* We use char because int might match the return type of a gcc2
2362 builtin and then its argument prototype would still apply. */
2363 char $ac_func();
2365 int main() {
2367 /* The GNU C library defines this for functions which it implements
2368 to always fail with ENOSYS. Some functions are actually named
2369 something starting with __ and the normal name is an alias. */
2370 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2371 choke me
2372 #else
2373 $ac_func();
2374 #endif
2376 ; return 0; }
2378 if { (eval echo configure:2379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2379 rm -rf conftest*
2380 eval "ac_cv_func_$ac_func=yes"
2381 else
2382 echo "configure: failed program was:" >&5
2383 cat conftest.$ac_ext >&5
2384 rm -rf conftest*
2385 eval "ac_cv_func_$ac_func=no"
2387 rm -f conftest*
2390 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2391 echo "$ac_t""yes" 1>&6
2392 cat >> confdefs.h <<EOF
2393 #define CRAY_STACKSEG_END $ac_func
2396 break
2397 else
2398 echo "$ac_t""no" 1>&6
2401 done
2404 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
2405 echo "configure:2406: checking stack direction for C alloca" >&5
2406 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
2407 echo $ac_n "(cached) $ac_c" 1>&6
2408 else
2409 if test "$cross_compiling" = yes; then
2410 ac_cv_c_stack_direction=0
2411 else
2412 cat > conftest.$ac_ext <<EOF
2413 #line 2414 "configure"
2414 #include "confdefs.h"
2415 find_stack_direction ()
2417 static char *addr = 0;
2418 auto char dummy;
2419 if (addr == 0)
2421 addr = &dummy;
2422 return find_stack_direction ();
2424 else
2425 return (&dummy > addr) ? 1 : -1;
2427 main ()
2429 exit (find_stack_direction() < 0);
2432 if { (eval echo configure:2433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2433 then
2434 ac_cv_c_stack_direction=1
2435 else
2436 echo "configure: failed program was:" >&5
2437 cat conftest.$ac_ext >&5
2438 rm -fr conftest*
2439 ac_cv_c_stack_direction=-1
2441 rm -fr conftest*
2446 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2447 cat >> confdefs.h <<EOF
2448 #define STACK_DIRECTION $ac_cv_c_stack_direction
2453 for ac_func in gethostname select poll strerror strncasecmp setpgid atexit
2455 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2456 echo "configure:2457: checking for $ac_func" >&5
2457 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2458 echo $ac_n "(cached) $ac_c" 1>&6
2459 else
2460 cat > conftest.$ac_ext <<EOF
2461 #line 2462 "configure"
2462 #include "confdefs.h"
2463 /* System header to define __stub macros and hopefully few prototypes,
2464 which can conflict with char $ac_func(); below. */
2465 #include <assert.h>
2466 /* Override any gcc2 internal prototype to avoid an error. */
2467 /* We use char because int might match the return type of a gcc2
2468 builtin and then its argument prototype would still apply. */
2469 char $ac_func();
2471 int main() {
2473 /* The GNU C library defines this for functions which it implements
2474 to always fail with ENOSYS. Some functions are actually named
2475 something starting with __ and the normal name is an alias. */
2476 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2477 choke me
2478 #else
2479 $ac_func();
2480 #endif
2482 ; return 0; }
2484 if { (eval echo configure:2485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2485 rm -rf conftest*
2486 eval "ac_cv_func_$ac_func=yes"
2487 else
2488 echo "configure: failed program was:" >&5
2489 cat conftest.$ac_ext >&5
2490 rm -rf conftest*
2491 eval "ac_cv_func_$ac_func=no"
2493 rm -f conftest*
2496 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2497 echo "$ac_t""yes" 1>&6
2498 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2499 cat >> confdefs.h <<EOF
2500 #define $ac_tr_func 1
2503 else
2504 echo "$ac_t""no" 1>&6
2506 done
2511 DLLIBS=""
2513 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
2514 echo "configure:2515: checking for dlopen" >&5
2515 if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then
2516 echo $ac_n "(cached) $ac_c" 1>&6
2517 else
2518 cat > conftest.$ac_ext <<EOF
2519 #line 2520 "configure"
2520 #include "confdefs.h"
2521 /* System header to define __stub macros and hopefully few prototypes,
2522 which can conflict with char dlopen(); below. */
2523 #include <assert.h>
2524 /* Override any gcc2 internal prototype to avoid an error. */
2525 /* We use char because int might match the return type of a gcc2
2526 builtin and then its argument prototype would still apply. */
2527 char dlopen();
2529 int main() {
2531 /* The GNU C library defines this for functions which it implements
2532 to always fail with ENOSYS. Some functions are actually named
2533 something starting with __ and the normal name is an alias. */
2534 #if defined (__stub_dlopen) || defined (__stub___dlopen)
2535 choke me
2536 #else
2537 dlopen();
2538 #endif
2540 ; return 0; }
2542 if { (eval echo configure:2543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2543 rm -rf conftest*
2544 eval "ac_cv_func_dlopen=yes"
2545 else
2546 echo "configure: failed program was:" >&5
2547 cat conftest.$ac_ext >&5
2548 rm -rf conftest*
2549 eval "ac_cv_func_dlopen=no"
2551 rm -f conftest*
2554 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
2555 echo "$ac_t""yes" 1>&6
2556 HAVEDL="yes"
2557 else
2558 echo "$ac_t""no" 1>&6
2559 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2560 echo "configure:2561: checking for dlopen in -ldl" >&5
2561 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2562 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2563 echo $ac_n "(cached) $ac_c" 1>&6
2564 else
2565 ac_save_LIBS="$LIBS"
2566 LIBS="-ldl $LIBS"
2567 cat > conftest.$ac_ext <<EOF
2568 #line 2569 "configure"
2569 #include "confdefs.h"
2570 /* Override any gcc2 internal prototype to avoid an error. */
2571 /* We use char because int might match the return type of a gcc2
2572 builtin and then its argument prototype would still apply. */
2573 char dlopen();
2575 int main() {
2576 dlopen()
2577 ; return 0; }
2579 if { (eval echo configure:2580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2580 rm -rf conftest*
2581 eval "ac_cv_lib_$ac_lib_var=yes"
2582 else
2583 echo "configure: failed program was:" >&5
2584 cat conftest.$ac_ext >&5
2585 rm -rf conftest*
2586 eval "ac_cv_lib_$ac_lib_var=no"
2588 rm -f conftest*
2589 LIBS="$ac_save_LIBS"
2592 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2593 echo "$ac_t""yes" 1>&6
2594 DLLIBS="-ldl" HAVEDL="yes"
2595 else
2596 echo "$ac_t""no" 1>&6
2597 DLLIBS=""
2603 if test "x$HAVEDL" = xyes; then
2604 for ac_hdr in dlfcn.h
2606 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2607 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2608 echo "configure:2609: checking for $ac_hdr" >&5
2609 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2610 echo $ac_n "(cached) $ac_c" 1>&6
2611 else
2612 cat > conftest.$ac_ext <<EOF
2613 #line 2614 "configure"
2614 #include "confdefs.h"
2615 #include <$ac_hdr>
2617 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2618 { (eval echo configure:2619: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2619 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2620 if test -z "$ac_err"; then
2621 rm -rf conftest*
2622 eval "ac_cv_header_$ac_safe=yes"
2623 else
2624 echo "$ac_err" >&5
2625 echo "configure: failed program was:" >&5
2626 cat conftest.$ac_ext >&5
2627 rm -rf conftest*
2628 eval "ac_cv_header_$ac_safe=no"
2630 rm -f conftest*
2632 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2633 echo "$ac_t""yes" 1>&6
2634 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2635 cat >> confdefs.h <<EOF
2636 #define $ac_tr_hdr 1
2639 else
2640 echo "$ac_t""no" 1>&6
2642 done
2648 if test "x$CPP_PATH" = x; then
2649 # Extract the first word of "cpp", so it can be a program name with args.
2650 set dummy cpp; ac_word=$2
2651 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2652 echo "configure:2653: checking for $ac_word" >&5
2653 if eval "test \"`echo '$''{'ac_cv_path_CPP_PATH'+set}'`\" = set"; then
2654 echo $ac_n "(cached) $ac_c" 1>&6
2655 else
2656 case "$CPP_PATH" in
2658 ac_cv_path_CPP_PATH="$CPP_PATH" # Let the user override the test with a path.
2660 ?:/*)
2661 ac_cv_path_CPP_PATH="$CPP_PATH" # Let the user override the test with a dos path.
2664 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2665 ac_dummy="$PATH:/lib:/usr/bin:/bin:/usr/lib:/usr/ccs/lib"
2666 for ac_dir in $ac_dummy; do
2667 test -z "$ac_dir" && ac_dir=.
2668 if test -f $ac_dir/$ac_word; then
2669 ac_cv_path_CPP_PATH="$ac_dir/$ac_word"
2670 break
2672 done
2673 IFS="$ac_save_ifs"
2674 test -z "$ac_cv_path_CPP_PATH" && ac_cv_path_CPP_PATH="notfound"
2676 esac
2678 CPP_PATH="$ac_cv_path_CPP_PATH"
2679 if test -n "$CPP_PATH"; then
2680 echo "$ac_t""$CPP_PATH" 1>&6
2681 else
2682 echo "$ac_t""no" 1>&6
2687 if test "$CPP_PATH" = "/usr/ccs/lib/cpp" -o "$CPP_PATH" = "notfound" ; then
2688 if test "$GCC" = "yes"; then
2689 CPP_PATH="gcc -E -x c"
2690 else
2691 if test "$CPP_PATH" = "/usr/ccs/lib/cpp"; then
2692 CPP_PATH="$CPP_PATH -B"
2693 else
2694 echo "cpp, the C preprocessor was not found in your system."
2695 echo "Create a symbolic link from it to /lib/cpp and rerun configure"
2696 exit
2700 cat >> confdefs.h <<EOF
2701 #define CPP_PATH "$CPP_PATH"
2707 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2708 echo "configure:2709: checking for sys/wait.h that is POSIX.1 compatible" >&5
2709 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2710 echo $ac_n "(cached) $ac_c" 1>&6
2711 else
2712 cat > conftest.$ac_ext <<EOF
2713 #line 2714 "configure"
2714 #include "confdefs.h"
2715 #include <sys/types.h>
2716 #include <sys/wait.h>
2717 #ifndef WEXITSTATUS
2718 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2719 #endif
2720 #ifndef WIFEXITED
2721 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2722 #endif
2723 int main() {
2724 int s;
2725 wait (&s);
2726 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2727 ; return 0; }
2729 if { (eval echo configure:2730: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2730 rm -rf conftest*
2731 ac_cv_header_sys_wait_h=yes
2732 else
2733 echo "configure: failed program was:" >&5
2734 cat conftest.$ac_ext >&5
2735 rm -rf conftest*
2736 ac_cv_header_sys_wait_h=no
2738 rm -f conftest*
2741 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2742 if test $ac_cv_header_sys_wait_h = yes; then
2743 cat >> confdefs.h <<\EOF
2744 #define HAVE_SYS_WAIT_H 1
2749 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2750 echo "configure:2751: checking whether time.h and sys/time.h may both be included" >&5
2751 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2752 echo $ac_n "(cached) $ac_c" 1>&6
2753 else
2754 cat > conftest.$ac_ext <<EOF
2755 #line 2756 "configure"
2756 #include "confdefs.h"
2757 #include <sys/types.h>
2758 #include <sys/time.h>
2759 #include <time.h>
2760 int main() {
2761 struct tm *tp;
2762 ; return 0; }
2764 if { (eval echo configure:2765: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2765 rm -rf conftest*
2766 ac_cv_header_time=yes
2767 else
2768 echo "configure: failed program was:" >&5
2769 cat conftest.$ac_ext >&5
2770 rm -rf conftest*
2771 ac_cv_header_time=no
2773 rm -f conftest*
2776 echo "$ac_t""$ac_cv_header_time" 1>&6
2777 if test $ac_cv_header_time = yes; then
2778 cat >> confdefs.h <<\EOF
2779 #define TIME_WITH_SYS_TIME 1
2784 for ac_hdr in fcntl.h limits.h sys/ioctl.h sys/time.h sys/types.h\
2785 libintl.h sys/select.h poll.h
2787 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2788 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2789 echo "configure:2790: checking for $ac_hdr" >&5
2790 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2791 echo $ac_n "(cached) $ac_c" 1>&6
2792 else
2793 cat > conftest.$ac_ext <<EOF
2794 #line 2795 "configure"
2795 #include "confdefs.h"
2796 #include <$ac_hdr>
2798 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2799 { (eval echo configure:2800: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2800 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2801 if test -z "$ac_err"; then
2802 rm -rf conftest*
2803 eval "ac_cv_header_$ac_safe=yes"
2804 else
2805 echo "$ac_err" >&5
2806 echo "configure: failed program was:" >&5
2807 cat conftest.$ac_ext >&5
2808 rm -rf conftest*
2809 eval "ac_cv_header_$ac_safe=no"
2811 rm -f conftest*
2813 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2814 echo "$ac_t""yes" 1>&6
2815 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2816 cat >> confdefs.h <<EOF
2817 #define $ac_tr_hdr 1
2820 else
2821 echo "$ac_t""no" 1>&6
2823 done
2828 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
2829 echo "configure:2830: checking for sys_siglist declaration in signal.h or unistd.h" >&5
2830 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
2831 echo $ac_n "(cached) $ac_c" 1>&6
2832 else
2833 cat > conftest.$ac_ext <<EOF
2834 #line 2835 "configure"
2835 #include "confdefs.h"
2836 #include <sys/types.h>
2837 #include <signal.h>
2838 /* NetBSD declares sys_siglist in unistd.h. */
2839 #ifdef HAVE_UNISTD_H
2840 #include <unistd.h>
2841 #endif
2842 int main() {
2843 char *msg = *(sys_siglist + 1);
2844 ; return 0; }
2846 if { (eval echo configure:2847: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2847 rm -rf conftest*
2848 ac_cv_decl_sys_siglist=yes
2849 else
2850 echo "configure: failed program was:" >&5
2851 cat conftest.$ac_ext >&5
2852 rm -rf conftest*
2853 ac_cv_decl_sys_siglist=no
2855 rm -f conftest*
2858 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
2859 if test $ac_cv_decl_sys_siglist = yes; then
2860 cat >> confdefs.h <<\EOF
2861 #define SYS_SIGLIST_DECLARED 1
2866 echo $ac_n "checking for working const""... $ac_c" 1>&6
2867 echo "configure:2868: checking for working const" >&5
2868 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2869 echo $ac_n "(cached) $ac_c" 1>&6
2870 else
2871 cat > conftest.$ac_ext <<EOF
2872 #line 2873 "configure"
2873 #include "confdefs.h"
2875 int main() {
2877 /* Ultrix mips cc rejects this. */
2878 typedef int charset[2]; const charset x;
2879 /* SunOS 4.1.1 cc rejects this. */
2880 char const *const *ccp;
2881 char **p;
2882 /* NEC SVR4.0.2 mips cc rejects this. */
2883 struct point {int x, y;};
2884 static struct point const zero = {0,0};
2885 /* AIX XL C 1.02.0.0 rejects this.
2886 It does not let you subtract one const X* pointer from another in an arm
2887 of an if-expression whose if-part is not a constant expression */
2888 const char *g = "string";
2889 ccp = &g + (g ? g-g : 0);
2890 /* HPUX 7.0 cc rejects these. */
2891 ++ccp;
2892 p = (char**) ccp;
2893 ccp = (char const *const *) p;
2894 { /* SCO 3.2v4 cc rejects this. */
2895 char *t;
2896 char const *s = 0 ? (char *) 0 : (char const *) 0;
2898 *t++ = 0;
2900 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2901 int x[] = {25, 17};
2902 const int *foo = &x[0];
2903 ++foo;
2905 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2906 typedef const int *iptr;
2907 iptr p = 0;
2908 ++p;
2910 { /* AIX XL C 1.02.0.0 rejects this saying
2911 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2912 struct s { int j; const int *ap[3]; };
2913 struct s *b; b->j = 5;
2915 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2916 const int foo = 10;
2919 ; return 0; }
2921 if { (eval echo configure:2922: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2922 rm -rf conftest*
2923 ac_cv_c_const=yes
2924 else
2925 echo "configure: failed program was:" >&5
2926 cat conftest.$ac_ext >&5
2927 rm -rf conftest*
2928 ac_cv_c_const=no
2930 rm -f conftest*
2933 echo "$ac_t""$ac_cv_c_const" 1>&6
2934 if test $ac_cv_c_const = no; then
2935 cat >> confdefs.h <<\EOF
2936 #define const
2941 #AC_TYPE_SIZE_T
2942 #AC_TYPE_PID_T
2943 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2944 echo "configure:2945: checking return type of signal handlers" >&5
2945 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2946 echo $ac_n "(cached) $ac_c" 1>&6
2947 else
2948 cat > conftest.$ac_ext <<EOF
2949 #line 2950 "configure"
2950 #include "confdefs.h"
2951 #include <sys/types.h>
2952 #include <signal.h>
2953 #ifdef signal
2954 #undef signal
2955 #endif
2956 #ifdef __cplusplus
2957 extern "C" void (*signal (int, void (*)(int)))(int);
2958 #else
2959 void (*signal ()) ();
2960 #endif
2962 int main() {
2963 int i;
2964 ; return 0; }
2966 if { (eval echo configure:2967: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2967 rm -rf conftest*
2968 ac_cv_type_signal=void
2969 else
2970 echo "configure: failed program was:" >&5
2971 cat conftest.$ac_ext >&5
2972 rm -rf conftest*
2973 ac_cv_type_signal=int
2975 rm -f conftest*
2978 echo "$ac_t""$ac_cv_type_signal" 1>&6
2979 cat >> confdefs.h <<EOF
2980 #define RETSIGTYPE $ac_cv_type_signal
2991 INTLIBS=""
2993 echo $ac_n "checking for gettext""... $ac_c" 1>&6
2994 echo "configure:2995: checking for gettext" >&5
2995 if eval "test \"`echo '$''{'ac_cv_func_gettext'+set}'`\" = set"; then
2996 echo $ac_n "(cached) $ac_c" 1>&6
2997 else
2998 cat > conftest.$ac_ext <<EOF
2999 #line 3000 "configure"
3000 #include "confdefs.h"
3001 /* System header to define __stub macros and hopefully few prototypes,
3002 which can conflict with char gettext(); below. */
3003 #include <assert.h>
3004 /* Override any gcc2 internal prototype to avoid an error. */
3005 /* We use char because int might match the return type of a gcc2
3006 builtin and then its argument prototype would still apply. */
3007 char gettext();
3009 int main() {
3011 /* The GNU C library defines this for functions which it implements
3012 to always fail with ENOSYS. Some functions are actually named
3013 something starting with __ and the normal name is an alias. */
3014 #if defined (__stub_gettext) || defined (__stub___gettext)
3015 choke me
3016 #else
3017 gettext();
3018 #endif
3020 ; return 0; }
3022 if { (eval echo configure:3023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3023 rm -rf conftest*
3024 eval "ac_cv_func_gettext=yes"
3025 else
3026 echo "configure: failed program was:" >&5
3027 cat conftest.$ac_ext >&5
3028 rm -rf conftest*
3029 eval "ac_cv_func_gettext=no"
3031 rm -f conftest*
3034 if eval "test \"`echo '$ac_cv_func_'gettext`\" = yes"; then
3035 echo "$ac_t""yes" 1>&6
3036 HAVEGETTEXT="yes"
3037 else
3038 echo "$ac_t""no" 1>&6
3039 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
3040 echo "configure:3041: checking for gettext in -lintl" >&5
3041 ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
3042 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3043 echo $ac_n "(cached) $ac_c" 1>&6
3044 else
3045 ac_save_LIBS="$LIBS"
3046 LIBS="-lintl $LIBS"
3047 cat > conftest.$ac_ext <<EOF
3048 #line 3049 "configure"
3049 #include "confdefs.h"
3050 /* Override any gcc2 internal prototype to avoid an error. */
3051 /* We use char because int might match the return type of a gcc2
3052 builtin and then its argument prototype would still apply. */
3053 char gettext();
3055 int main() {
3056 gettext()
3057 ; return 0; }
3059 if { (eval echo configure:3060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3060 rm -rf conftest*
3061 eval "ac_cv_lib_$ac_lib_var=yes"
3062 else
3063 echo "configure: failed program was:" >&5
3064 cat conftest.$ac_ext >&5
3065 rm -rf conftest*
3066 eval "ac_cv_lib_$ac_lib_var=no"
3068 rm -f conftest*
3069 LIBS="$ac_save_LIBS"
3072 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3073 echo "$ac_t""yes" 1>&6
3074 INTLIBS="-lintl" HAVEGETTEXT="yes"
3075 else
3076 echo "$ac_t""no" 1>&6
3077 INTLIBS=""
3083 # Extract the first word of "xgettext", so it can be a program name with args.
3084 set dummy xgettext; ac_word=$2
3085 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3086 echo "configure:3087: checking for $ac_word" >&5
3087 if eval "test \"`echo '$''{'ac_cv_prog_XGETTEXT'+set}'`\" = set"; then
3088 echo $ac_n "(cached) $ac_c" 1>&6
3089 else
3090 if test -n "$XGETTEXT"; then
3091 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
3092 else
3093 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3094 ac_dummy="$PATH"
3095 for ac_dir in $ac_dummy; do
3096 test -z "$ac_dir" && ac_dir=.
3097 if test -f $ac_dir/$ac_word; then
3098 ac_cv_prog_XGETTEXT="xgettext"
3099 break
3101 done
3102 IFS="$ac_save_ifs"
3105 XGETTEXT="$ac_cv_prog_XGETTEXT"
3106 if test -n "$XGETTEXT"; then
3107 echo "$ac_t""$XGETTEXT" 1>&6
3108 else
3109 echo "$ac_t""no" 1>&6
3113 if test "$XGETTEXT" != ""; then
3114 if $XGETTEXT --help 2>&1 | grep illegal >/dev/null ; then
3115 echo "xgettext isn't GNU version"
3116 XGETTEXT=""
3120 if test "$LINGUAS" != ""; then
3121 if test "$XGETTEXT" != "" -a "$HAVEGETTEXT" != ""; then
3122 cat >> confdefs.h <<\EOF
3123 #define I18N 1
3126 PO=""
3127 # if test "$LINGUAS" = ""; then
3128 # ling=` (cd src/po; /bin/ls *.po) `
3129 # for l in $ling; do
3130 # lcode=`basename $l .po`
3131 # LINGUAS="$LINGUAS $lcode"
3132 # done
3133 # fi
3134 echo "xgettext and gettext() exist; will build i18n support for $LINGUAS"
3135 else
3136 LINGUAS=""
3137 PO=""
3138 echo "xgettext and libintl.a don't both exist; will not build i18n support"
3140 else
3141 INTLIBS=""
3142 MOFILES=""
3143 WPMOFILES=""
3144 PO=""
3149 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"
3150 supported_wprefs_locales="pt hr fr ko ja cs zh_TW.Big5 es zh_CN fi it ru"
3152 for lang in $LINGUAS; do
3153 ok=0
3154 for l in $supported_locales; do
3155 if test "$l" = "$lang"; then
3156 ok=1
3157 break
3159 done
3160 if test "$ok" = 1; then
3161 MOFILES="$MOFILES $lang.mo"
3162 else
3163 echo "Locale $lang is not supported."
3165 ok=0
3166 for l in $supported_wprefs_locales; do
3167 if test "$l" = "$lang"; then
3168 ok=1
3169 break
3171 done
3172 if test "$ok" = 1; then
3173 WPMOFILES="$WPMOFILES $lang.mo"
3175 done
3179 case $host_os in
3180 freebsd*)
3181 echo $ac_n "checking for setlocale in -lxpg4""... $ac_c" 1>&6
3182 echo "configure:3183: checking for setlocale in -lxpg4" >&5
3183 ac_lib_var=`echo xpg4'_'setlocale | sed 'y%./+-%__p_%'`
3184 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3185 echo $ac_n "(cached) $ac_c" 1>&6
3186 else
3187 ac_save_LIBS="$LIBS"
3188 LIBS="-lxpg4 $LIBS"
3189 cat > conftest.$ac_ext <<EOF
3190 #line 3191 "configure"
3191 #include "confdefs.h"
3192 /* Override any gcc2 internal prototype to avoid an error. */
3193 /* We use char because int might match the return type of a gcc2
3194 builtin and then its argument prototype would still apply. */
3195 char setlocale();
3197 int main() {
3198 setlocale()
3199 ; return 0; }
3201 if { (eval echo configure:3202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3202 rm -rf conftest*
3203 eval "ac_cv_lib_$ac_lib_var=yes"
3204 else
3205 echo "configure: failed program was:" >&5
3206 cat conftest.$ac_ext >&5
3207 rm -rf conftest*
3208 eval "ac_cv_lib_$ac_lib_var=no"
3210 rm -f conftest*
3211 LIBS="$ac_save_LIBS"
3214 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3215 echo "$ac_t""yes" 1>&6
3216 LIBS="$LIBS -lxpg4"
3217 else
3218 echo "$ac_t""no" 1>&6
3223 esac
3227 # Check whether --with-nlsdir or --without-nlsdir was given.
3228 if test "${with_nlsdir+set}" = set; then
3229 withval="$with_nlsdir"
3235 if test "x$NLSDIR" = "x"; then
3236 if test "x$with_nlsdir" != "x"; then
3237 NLSDIR=$with_nlsdir
3238 else
3239 NLSDIR='$(prefix)/lib/locale'
3255 # Check whether --enable-gnome or --disable-gnome was given.
3256 if test "${enable_gnome+set}" = set; then
3257 enableval="$enable_gnome"
3258 if test x$enableval = xyes; then
3259 cat >> confdefs.h <<\EOF
3260 #define GNOME_STUFF 1
3263 gnome_on=yes
3269 # Check whether --enable-kde or --disable-kde was given.
3270 if test "${enable_kde+set}" = set; then
3271 enableval="$enable_kde"
3272 if test x$enableval = xyes; then
3273 cat >> confdefs.h <<\EOF
3274 #define KWM_HINTS 1
3277 kde_on=yes
3283 # Check whether --enable-openlook or --disable-openlook was given.
3284 if test "${enable_openlook+set}" = set; then
3285 enableval="$enable_openlook"
3286 if test x$enableval = xyes; then
3287 cat >> confdefs.h <<\EOF
3288 #define OLWM_HINTS 1
3291 openlook_on=yes
3297 # Check whether --enable-lite or --disable-lite was given.
3298 if test "${enable_lite+set}" = set; then
3299 enableval="$enable_lite"
3300 if test x$enableval = xyes; then
3301 LITE=yes
3302 cat >> confdefs.h <<\EOF
3303 #define LITE 1
3314 # If we find X, set shell vars x_includes and x_libraries to the
3315 # paths, otherwise set no_x=yes.
3316 # Uses ac_ vars as temps to allow command line to override cache and checks.
3317 # --without-x overrides everything else, but does not touch the cache.
3318 echo $ac_n "checking for X""... $ac_c" 1>&6
3319 echo "configure:3320: checking for X" >&5
3321 # Check whether --with-x or --without-x was given.
3322 if test "${with_x+set}" = set; then
3323 withval="$with_x"
3327 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3328 if test "x$with_x" = xno; then
3329 # The user explicitly disabled X.
3330 have_x=disabled
3331 else
3332 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
3333 # Both variables are already set.
3334 have_x=yes
3335 else
3336 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
3337 echo $ac_n "(cached) $ac_c" 1>&6
3338 else
3339 # One or both of the vars are not set, and there is no cached value.
3340 ac_x_includes=NO ac_x_libraries=NO
3341 rm -fr conftestdir
3342 if mkdir conftestdir; then
3343 cd conftestdir
3344 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
3345 cat > Imakefile <<'EOF'
3346 acfindx:
3347 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
3349 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
3350 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3351 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
3352 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3353 for ac_extension in a so sl; do
3354 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
3355 test -f $ac_im_libdir/libX11.$ac_extension; then
3356 ac_im_usrlibdir=$ac_im_libdir; break
3358 done
3359 # Screen out bogus values from the imake configuration. They are
3360 # bogus both because they are the default anyway, and because
3361 # using them would break gcc on systems where it needs fixed includes.
3362 case "$ac_im_incroot" in
3363 /usr/include) ;;
3364 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
3365 esac
3366 case "$ac_im_usrlibdir" in
3367 /usr/lib | /lib) ;;
3368 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
3369 esac
3371 cd ..
3372 rm -fr conftestdir
3375 if test "$ac_x_includes" = NO; then
3376 # Guess where to find include files, by looking for this one X11 .h file.
3377 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
3379 # First, try using that file with no special directory specified.
3380 cat > conftest.$ac_ext <<EOF
3381 #line 3382 "configure"
3382 #include "confdefs.h"
3383 #include <$x_direct_test_include>
3385 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3386 { (eval echo configure:3387: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3387 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3388 if test -z "$ac_err"; then
3389 rm -rf conftest*
3390 # We can compile using X headers with no special include directory.
3391 ac_x_includes=
3392 else
3393 echo "$ac_err" >&5
3394 echo "configure: failed program was:" >&5
3395 cat conftest.$ac_ext >&5
3396 rm -rf conftest*
3397 # Look for the header file in a standard set of common directories.
3398 # Check X11 before X11Rn because it is often a symlink to the current release.
3399 for ac_dir in \
3400 /usr/X11/include \
3401 /usr/X11R6/include \
3402 /usr/X11R5/include \
3403 /usr/X11R4/include \
3405 /usr/include/X11 \
3406 /usr/include/X11R6 \
3407 /usr/include/X11R5 \
3408 /usr/include/X11R4 \
3410 /usr/local/X11/include \
3411 /usr/local/X11R6/include \
3412 /usr/local/X11R5/include \
3413 /usr/local/X11R4/include \
3415 /usr/local/include/X11 \
3416 /usr/local/include/X11R6 \
3417 /usr/local/include/X11R5 \
3418 /usr/local/include/X11R4 \
3420 /usr/X386/include \
3421 /usr/x386/include \
3422 /usr/XFree86/include/X11 \
3424 /usr/include \
3425 /usr/local/include \
3426 /usr/unsupported/include \
3427 /usr/athena/include \
3428 /usr/local/x11r5/include \
3429 /usr/lpp/Xamples/include \
3431 /usr/openwin/include \
3432 /usr/openwin/share/include \
3435 if test -r "$ac_dir/$x_direct_test_include"; then
3436 ac_x_includes=$ac_dir
3437 break
3439 done
3441 rm -f conftest*
3442 fi # $ac_x_includes = NO
3444 if test "$ac_x_libraries" = NO; then
3445 # Check for the libraries.
3447 test -z "$x_direct_test_library" && x_direct_test_library=Xt
3448 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
3450 # See if we find them without any special options.
3451 # Don't add to $LIBS permanently.
3452 ac_save_LIBS="$LIBS"
3453 LIBS="-l$x_direct_test_library $LIBS"
3454 cat > conftest.$ac_ext <<EOF
3455 #line 3456 "configure"
3456 #include "confdefs.h"
3458 int main() {
3459 ${x_direct_test_function}()
3460 ; return 0; }
3462 if { (eval echo configure:3463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3463 rm -rf conftest*
3464 LIBS="$ac_save_LIBS"
3465 # We can link X programs with no special library path.
3466 ac_x_libraries=
3467 else
3468 echo "configure: failed program was:" >&5
3469 cat conftest.$ac_ext >&5
3470 rm -rf conftest*
3471 LIBS="$ac_save_LIBS"
3472 # First see if replacing the include by lib works.
3473 # Check X11 before X11Rn because it is often a symlink to the current release.
3474 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
3475 /usr/X11/lib \
3476 /usr/X11R6/lib \
3477 /usr/X11R5/lib \
3478 /usr/X11R4/lib \
3480 /usr/lib/X11 \
3481 /usr/lib/X11R6 \
3482 /usr/lib/X11R5 \
3483 /usr/lib/X11R4 \
3485 /usr/local/X11/lib \
3486 /usr/local/X11R6/lib \
3487 /usr/local/X11R5/lib \
3488 /usr/local/X11R4/lib \
3490 /usr/local/lib/X11 \
3491 /usr/local/lib/X11R6 \
3492 /usr/local/lib/X11R5 \
3493 /usr/local/lib/X11R4 \
3495 /usr/X386/lib \
3496 /usr/x386/lib \
3497 /usr/XFree86/lib/X11 \
3499 /usr/lib \
3500 /usr/local/lib \
3501 /usr/unsupported/lib \
3502 /usr/athena/lib \
3503 /usr/local/x11r5/lib \
3504 /usr/lpp/Xamples/lib \
3505 /lib/usr/lib/X11 \
3507 /usr/openwin/lib \
3508 /usr/openwin/share/lib \
3511 for ac_extension in a so sl; do
3512 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
3513 ac_x_libraries=$ac_dir
3514 break 2
3516 done
3517 done
3519 rm -f conftest*
3520 fi # $ac_x_libraries = NO
3522 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
3523 # Didn't find X anywhere. Cache the known absence of X.
3524 ac_cv_have_x="have_x=no"
3525 else
3526 # Record where we found X for the cache.
3527 ac_cv_have_x="have_x=yes \
3528 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
3532 eval "$ac_cv_have_x"
3533 fi # $with_x != no
3535 if test "$have_x" != yes; then
3536 echo "$ac_t""$have_x" 1>&6
3537 no_x=yes
3538 else
3539 # If each of the values was on the command line, it overrides each guess.
3540 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3541 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3542 # Update the cache value to reflect the command line values.
3543 ac_cv_have_x="have_x=yes \
3544 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3545 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
3548 if test "$no_x" = yes; then
3549 # Not all programs may use this symbol, but it does not hurt to define it.
3550 cat >> confdefs.h <<\EOF
3551 #define X_DISPLAY_MISSING 1
3554 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3555 else
3556 if test -n "$x_includes"; then
3557 X_CFLAGS="$X_CFLAGS -I$x_includes"
3560 # It would also be nice to do this for all -L options, not just this one.
3561 if test -n "$x_libraries"; then
3562 X_LIBS="$X_LIBS -L$x_libraries"
3563 # For Solaris; some versions of Sun CC require a space after -R and
3564 # others require no space. Words are not sufficient . . . .
3565 case "`(uname -sr) 2>/dev/null`" in
3566 "SunOS 5"*)
3567 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
3568 echo "configure:3569: checking whether -R must be followed by a space" >&5
3569 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
3570 cat > conftest.$ac_ext <<EOF
3571 #line 3572 "configure"
3572 #include "confdefs.h"
3574 int main() {
3576 ; return 0; }
3578 if { (eval echo configure:3579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3579 rm -rf conftest*
3580 ac_R_nospace=yes
3581 else
3582 echo "configure: failed program was:" >&5
3583 cat conftest.$ac_ext >&5
3584 rm -rf conftest*
3585 ac_R_nospace=no
3587 rm -f conftest*
3588 if test $ac_R_nospace = yes; then
3589 echo "$ac_t""no" 1>&6
3590 X_LIBS="$X_LIBS -R$x_libraries"
3591 else
3592 LIBS="$ac_xsave_LIBS -R $x_libraries"
3593 cat > conftest.$ac_ext <<EOF
3594 #line 3595 "configure"
3595 #include "confdefs.h"
3597 int main() {
3599 ; return 0; }
3601 if { (eval echo configure:3602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3602 rm -rf conftest*
3603 ac_R_space=yes
3604 else
3605 echo "configure: failed program was:" >&5
3606 cat conftest.$ac_ext >&5
3607 rm -rf conftest*
3608 ac_R_space=no
3610 rm -f conftest*
3611 if test $ac_R_space = yes; then
3612 echo "$ac_t""yes" 1>&6
3613 X_LIBS="$X_LIBS -R $x_libraries"
3614 else
3615 echo "$ac_t""neither works" 1>&6
3618 LIBS="$ac_xsave_LIBS"
3619 esac
3622 # Check for system-dependent libraries X programs must link with.
3623 # Do this before checking for the system-independent R6 libraries
3624 # (-lICE), since we may need -lsocket or whatever for X linking.
3626 if test "$ISC" = yes; then
3627 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
3628 else
3629 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
3630 # libraries were built with DECnet support. And karl@cs.umb.edu says
3631 # the Alpha needs dnet_stub (dnet does not exist).
3632 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
3633 echo "configure:3634: checking for dnet_ntoa in -ldnet" >&5
3634 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3635 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3636 echo $ac_n "(cached) $ac_c" 1>&6
3637 else
3638 ac_save_LIBS="$LIBS"
3639 LIBS="-ldnet $LIBS"
3640 cat > conftest.$ac_ext <<EOF
3641 #line 3642 "configure"
3642 #include "confdefs.h"
3643 /* Override any gcc2 internal prototype to avoid an error. */
3644 /* We use char because int might match the return type of a gcc2
3645 builtin and then its argument prototype would still apply. */
3646 char dnet_ntoa();
3648 int main() {
3649 dnet_ntoa()
3650 ; return 0; }
3652 if { (eval echo configure:3653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3653 rm -rf conftest*
3654 eval "ac_cv_lib_$ac_lib_var=yes"
3655 else
3656 echo "configure: failed program was:" >&5
3657 cat conftest.$ac_ext >&5
3658 rm -rf conftest*
3659 eval "ac_cv_lib_$ac_lib_var=no"
3661 rm -f conftest*
3662 LIBS="$ac_save_LIBS"
3665 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3666 echo "$ac_t""yes" 1>&6
3667 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3668 else
3669 echo "$ac_t""no" 1>&6
3672 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3673 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
3674 echo "configure:3675: checking for dnet_ntoa in -ldnet_stub" >&5
3675 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3676 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3677 echo $ac_n "(cached) $ac_c" 1>&6
3678 else
3679 ac_save_LIBS="$LIBS"
3680 LIBS="-ldnet_stub $LIBS"
3681 cat > conftest.$ac_ext <<EOF
3682 #line 3683 "configure"
3683 #include "confdefs.h"
3684 /* Override any gcc2 internal prototype to avoid an error. */
3685 /* We use char because int might match the return type of a gcc2
3686 builtin and then its argument prototype would still apply. */
3687 char dnet_ntoa();
3689 int main() {
3690 dnet_ntoa()
3691 ; return 0; }
3693 if { (eval echo configure:3694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3694 rm -rf conftest*
3695 eval "ac_cv_lib_$ac_lib_var=yes"
3696 else
3697 echo "configure: failed program was:" >&5
3698 cat conftest.$ac_ext >&5
3699 rm -rf conftest*
3700 eval "ac_cv_lib_$ac_lib_var=no"
3702 rm -f conftest*
3703 LIBS="$ac_save_LIBS"
3706 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3707 echo "$ac_t""yes" 1>&6
3708 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3709 else
3710 echo "$ac_t""no" 1>&6
3715 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3716 # to get the SysV transport functions.
3717 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
3718 # needs -lnsl.
3719 # The nsl library prevents programs from opening the X display
3720 # on Irix 5.2, according to dickey@clark.net.
3721 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3722 echo "configure:3723: checking for gethostbyname" >&5
3723 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3724 echo $ac_n "(cached) $ac_c" 1>&6
3725 else
3726 cat > conftest.$ac_ext <<EOF
3727 #line 3728 "configure"
3728 #include "confdefs.h"
3729 /* System header to define __stub macros and hopefully few prototypes,
3730 which can conflict with char gethostbyname(); below. */
3731 #include <assert.h>
3732 /* Override any gcc2 internal prototype to avoid an error. */
3733 /* We use char because int might match the return type of a gcc2
3734 builtin and then its argument prototype would still apply. */
3735 char gethostbyname();
3737 int main() {
3739 /* The GNU C library defines this for functions which it implements
3740 to always fail with ENOSYS. Some functions are actually named
3741 something starting with __ and the normal name is an alias. */
3742 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3743 choke me
3744 #else
3745 gethostbyname();
3746 #endif
3748 ; return 0; }
3750 if { (eval echo configure:3751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3751 rm -rf conftest*
3752 eval "ac_cv_func_gethostbyname=yes"
3753 else
3754 echo "configure: failed program was:" >&5
3755 cat conftest.$ac_ext >&5
3756 rm -rf conftest*
3757 eval "ac_cv_func_gethostbyname=no"
3759 rm -f conftest*
3762 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3763 echo "$ac_t""yes" 1>&6
3765 else
3766 echo "$ac_t""no" 1>&6
3769 if test $ac_cv_func_gethostbyname = no; then
3770 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3771 echo "configure:3772: checking for gethostbyname in -lnsl" >&5
3772 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3773 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3774 echo $ac_n "(cached) $ac_c" 1>&6
3775 else
3776 ac_save_LIBS="$LIBS"
3777 LIBS="-lnsl $LIBS"
3778 cat > conftest.$ac_ext <<EOF
3779 #line 3780 "configure"
3780 #include "confdefs.h"
3781 /* Override any gcc2 internal prototype to avoid an error. */
3782 /* We use char because int might match the return type of a gcc2
3783 builtin and then its argument prototype would still apply. */
3784 char gethostbyname();
3786 int main() {
3787 gethostbyname()
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 eval "ac_cv_lib_$ac_lib_var=yes"
3793 else
3794 echo "configure: failed program was:" >&5
3795 cat conftest.$ac_ext >&5
3796 rm -rf conftest*
3797 eval "ac_cv_lib_$ac_lib_var=no"
3799 rm -f conftest*
3800 LIBS="$ac_save_LIBS"
3803 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3804 echo "$ac_t""yes" 1>&6
3805 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3806 else
3807 echo "$ac_t""no" 1>&6
3812 # lieder@skyler.mavd.honeywell.com says without -lsocket,
3813 # socket/setsockopt and other routines are undefined under SCO ODT
3814 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
3815 # on later versions), says simon@lia.di.epfl.ch: it contains
3816 # gethostby* variants that don't use the nameserver (or something).
3817 # -lsocket must be given before -lnsl if both are needed.
3818 # We assume that if connect needs -lnsl, so does gethostbyname.
3819 echo $ac_n "checking for connect""... $ac_c" 1>&6
3820 echo "configure:3821: checking for connect" >&5
3821 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3822 echo $ac_n "(cached) $ac_c" 1>&6
3823 else
3824 cat > conftest.$ac_ext <<EOF
3825 #line 3826 "configure"
3826 #include "confdefs.h"
3827 /* System header to define __stub macros and hopefully few prototypes,
3828 which can conflict with char connect(); below. */
3829 #include <assert.h>
3830 /* Override any gcc2 internal prototype to avoid an error. */
3831 /* We use char because int might match the return type of a gcc2
3832 builtin and then its argument prototype would still apply. */
3833 char connect();
3835 int main() {
3837 /* The GNU C library defines this for functions which it implements
3838 to always fail with ENOSYS. Some functions are actually named
3839 something starting with __ and the normal name is an alias. */
3840 #if defined (__stub_connect) || defined (__stub___connect)
3841 choke me
3842 #else
3843 connect();
3844 #endif
3846 ; return 0; }
3848 if { (eval echo configure:3849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3849 rm -rf conftest*
3850 eval "ac_cv_func_connect=yes"
3851 else
3852 echo "configure: failed program was:" >&5
3853 cat conftest.$ac_ext >&5
3854 rm -rf conftest*
3855 eval "ac_cv_func_connect=no"
3857 rm -f conftest*
3860 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3861 echo "$ac_t""yes" 1>&6
3863 else
3864 echo "$ac_t""no" 1>&6
3867 if test $ac_cv_func_connect = no; then
3868 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3869 echo "configure:3870: checking for connect in -lsocket" >&5
3870 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3871 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3872 echo $ac_n "(cached) $ac_c" 1>&6
3873 else
3874 ac_save_LIBS="$LIBS"
3875 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
3876 cat > conftest.$ac_ext <<EOF
3877 #line 3878 "configure"
3878 #include "confdefs.h"
3879 /* Override any gcc2 internal prototype to avoid an error. */
3880 /* We use char because int might match the return type of a gcc2
3881 builtin and then its argument prototype would still apply. */
3882 char connect();
3884 int main() {
3885 connect()
3886 ; return 0; }
3888 if { (eval echo configure:3889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3889 rm -rf conftest*
3890 eval "ac_cv_lib_$ac_lib_var=yes"
3891 else
3892 echo "configure: failed program was:" >&5
3893 cat conftest.$ac_ext >&5
3894 rm -rf conftest*
3895 eval "ac_cv_lib_$ac_lib_var=no"
3897 rm -f conftest*
3898 LIBS="$ac_save_LIBS"
3901 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3902 echo "$ac_t""yes" 1>&6
3903 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
3904 else
3905 echo "$ac_t""no" 1>&6
3910 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
3911 echo $ac_n "checking for remove""... $ac_c" 1>&6
3912 echo "configure:3913: checking for remove" >&5
3913 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
3914 echo $ac_n "(cached) $ac_c" 1>&6
3915 else
3916 cat > conftest.$ac_ext <<EOF
3917 #line 3918 "configure"
3918 #include "confdefs.h"
3919 /* System header to define __stub macros and hopefully few prototypes,
3920 which can conflict with char remove(); below. */
3921 #include <assert.h>
3922 /* Override any gcc2 internal prototype to avoid an error. */
3923 /* We use char because int might match the return type of a gcc2
3924 builtin and then its argument prototype would still apply. */
3925 char remove();
3927 int main() {
3929 /* The GNU C library defines this for functions which it implements
3930 to always fail with ENOSYS. Some functions are actually named
3931 something starting with __ and the normal name is an alias. */
3932 #if defined (__stub_remove) || defined (__stub___remove)
3933 choke me
3934 #else
3935 remove();
3936 #endif
3938 ; return 0; }
3940 if { (eval echo configure:3941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3941 rm -rf conftest*
3942 eval "ac_cv_func_remove=yes"
3943 else
3944 echo "configure: failed program was:" >&5
3945 cat conftest.$ac_ext >&5
3946 rm -rf conftest*
3947 eval "ac_cv_func_remove=no"
3949 rm -f conftest*
3952 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
3953 echo "$ac_t""yes" 1>&6
3955 else
3956 echo "$ac_t""no" 1>&6
3959 if test $ac_cv_func_remove = no; then
3960 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
3961 echo "configure:3962: checking for remove in -lposix" >&5
3962 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
3963 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3964 echo $ac_n "(cached) $ac_c" 1>&6
3965 else
3966 ac_save_LIBS="$LIBS"
3967 LIBS="-lposix $LIBS"
3968 cat > conftest.$ac_ext <<EOF
3969 #line 3970 "configure"
3970 #include "confdefs.h"
3971 /* Override any gcc2 internal prototype to avoid an error. */
3972 /* We use char because int might match the return type of a gcc2
3973 builtin and then its argument prototype would still apply. */
3974 char remove();
3976 int main() {
3977 remove()
3978 ; return 0; }
3980 if { (eval echo configure:3981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3981 rm -rf conftest*
3982 eval "ac_cv_lib_$ac_lib_var=yes"
3983 else
3984 echo "configure: failed program was:" >&5
3985 cat conftest.$ac_ext >&5
3986 rm -rf conftest*
3987 eval "ac_cv_lib_$ac_lib_var=no"
3989 rm -f conftest*
3990 LIBS="$ac_save_LIBS"
3993 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3994 echo "$ac_t""yes" 1>&6
3995 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
3996 else
3997 echo "$ac_t""no" 1>&6
4002 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4003 echo $ac_n "checking for shmat""... $ac_c" 1>&6
4004 echo "configure:4005: checking for shmat" >&5
4005 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
4006 echo $ac_n "(cached) $ac_c" 1>&6
4007 else
4008 cat > conftest.$ac_ext <<EOF
4009 #line 4010 "configure"
4010 #include "confdefs.h"
4011 /* System header to define __stub macros and hopefully few prototypes,
4012 which can conflict with char shmat(); below. */
4013 #include <assert.h>
4014 /* Override any gcc2 internal prototype to avoid an error. */
4015 /* We use char because int might match the return type of a gcc2
4016 builtin and then its argument prototype would still apply. */
4017 char shmat();
4019 int main() {
4021 /* The GNU C library defines this for functions which it implements
4022 to always fail with ENOSYS. Some functions are actually named
4023 something starting with __ and the normal name is an alias. */
4024 #if defined (__stub_shmat) || defined (__stub___shmat)
4025 choke me
4026 #else
4027 shmat();
4028 #endif
4030 ; return 0; }
4032 if { (eval echo configure:4033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4033 rm -rf conftest*
4034 eval "ac_cv_func_shmat=yes"
4035 else
4036 echo "configure: failed program was:" >&5
4037 cat conftest.$ac_ext >&5
4038 rm -rf conftest*
4039 eval "ac_cv_func_shmat=no"
4041 rm -f conftest*
4044 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
4045 echo "$ac_t""yes" 1>&6
4047 else
4048 echo "$ac_t""no" 1>&6
4051 if test $ac_cv_func_shmat = no; then
4052 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
4053 echo "configure:4054: checking for shmat in -lipc" >&5
4054 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
4055 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4056 echo $ac_n "(cached) $ac_c" 1>&6
4057 else
4058 ac_save_LIBS="$LIBS"
4059 LIBS="-lipc $LIBS"
4060 cat > conftest.$ac_ext <<EOF
4061 #line 4062 "configure"
4062 #include "confdefs.h"
4063 /* Override any gcc2 internal prototype to avoid an error. */
4064 /* We use char because int might match the return type of a gcc2
4065 builtin and then its argument prototype would still apply. */
4066 char shmat();
4068 int main() {
4069 shmat()
4070 ; return 0; }
4072 if { (eval echo configure:4073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4073 rm -rf conftest*
4074 eval "ac_cv_lib_$ac_lib_var=yes"
4075 else
4076 echo "configure: failed program was:" >&5
4077 cat conftest.$ac_ext >&5
4078 rm -rf conftest*
4079 eval "ac_cv_lib_$ac_lib_var=no"
4081 rm -f conftest*
4082 LIBS="$ac_save_LIBS"
4085 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4086 echo "$ac_t""yes" 1>&6
4087 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
4088 else
4089 echo "$ac_t""no" 1>&6
4095 # Check for libraries that X11R6 Xt/Xaw programs need.
4096 ac_save_LDFLAGS="$LDFLAGS"
4097 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4098 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4099 # check for ICE first), but we must link in the order -lSM -lICE or
4100 # we get undefined symbols. So assume we have SM if we have ICE.
4101 # These have to be linked with before -lX11, unlike the other
4102 # libraries we check for below, so use a different variable.
4103 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
4104 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
4105 echo "configure:4106: checking for IceConnectionNumber in -lICE" >&5
4106 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
4107 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4108 echo $ac_n "(cached) $ac_c" 1>&6
4109 else
4110 ac_save_LIBS="$LIBS"
4111 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4112 cat > conftest.$ac_ext <<EOF
4113 #line 4114 "configure"
4114 #include "confdefs.h"
4115 /* Override any gcc2 internal prototype to avoid an error. */
4116 /* We use char because int might match the return type of a gcc2
4117 builtin and then its argument prototype would still apply. */
4118 char IceConnectionNumber();
4120 int main() {
4121 IceConnectionNumber()
4122 ; return 0; }
4124 if { (eval echo configure:4125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4125 rm -rf conftest*
4126 eval "ac_cv_lib_$ac_lib_var=yes"
4127 else
4128 echo "configure: failed program was:" >&5
4129 cat conftest.$ac_ext >&5
4130 rm -rf conftest*
4131 eval "ac_cv_lib_$ac_lib_var=no"
4133 rm -f conftest*
4134 LIBS="$ac_save_LIBS"
4137 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4138 echo "$ac_t""yes" 1>&6
4139 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
4140 else
4141 echo "$ac_t""no" 1>&6
4144 LDFLAGS="$ac_save_LDFLAGS"
4149 X_LIBRARY_PATH=$x_libraries
4151 XCFLAGS="$X_CFLAGS"
4153 XLFLAGS="$X_LIBS"
4155 XLIBS="-lX11 $X_EXTRA_LIBS"
4158 lib_search_path="$lib_search_path $XLFLAGS"
4159 inc_search_path="$inc_search_path $XCFLAGS"
4166 use_locale=yes
4167 # Check whether --enable-locale or --disable-locale was given.
4168 if test "${enable_locale+set}" = set; then
4169 enableval="$enable_locale"
4170 use_locale=no
4174 if test "$use_locale" = yes; then
4175 echo $ac_n "checking for _Xsetlocale in -lX11""... $ac_c" 1>&6
4176 echo "configure:4177: checking for _Xsetlocale in -lX11" >&5
4177 ac_lib_var=`echo X11'_'_Xsetlocale | sed 'y%./+-%__p_%'`
4178 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4179 echo $ac_n "(cached) $ac_c" 1>&6
4180 else
4181 ac_save_LIBS="$LIBS"
4182 LIBS="-lX11 $XLFLAGS $XLIBS $LIBS"
4183 cat > conftest.$ac_ext <<EOF
4184 #line 4185 "configure"
4185 #include "confdefs.h"
4186 /* Override any gcc2 internal prototype to avoid an error. */
4187 /* We use char because int might match the return type of a gcc2
4188 builtin and then its argument prototype would still apply. */
4189 char _Xsetlocale();
4191 int main() {
4192 _Xsetlocale()
4193 ; return 0; }
4195 if { (eval echo configure:4196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4196 rm -rf conftest*
4197 eval "ac_cv_lib_$ac_lib_var=yes"
4198 else
4199 echo "configure: failed program was:" >&5
4200 cat conftest.$ac_ext >&5
4201 rm -rf conftest*
4202 eval "ac_cv_lib_$ac_lib_var=no"
4204 rm -f conftest*
4205 LIBS="$ac_save_LIBS"
4208 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4209 echo "$ac_t""yes" 1>&6
4210 cat >> confdefs.h <<\EOF
4211 #define X_LOCALE 1
4214 else
4215 echo "$ac_t""no" 1>&6
4221 # Check whether --enable-modelock or --disable-modelock was given.
4222 if test "${enable_modelock+set}" = set; then
4223 enableval="$enable_modelock"
4224 cat >> confdefs.h <<\EOF
4225 #define XKB_MODELOCK 1
4233 shape=yes
4234 # Check whether --enable-shape or --disable-shape was given.
4235 if test "${enable_shape+set}" = set; then
4236 enableval="$enable_shape"
4237 shape=$enableval
4238 else
4239 shape=yes
4243 added_xext=no
4245 if test "$shape" = yes; then
4246 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
4247 echo "configure:4248: checking for XShapeSelectInput in -lXext" >&5
4248 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
4249 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4250 echo $ac_n "(cached) $ac_c" 1>&6
4251 else
4252 ac_save_LIBS="$LIBS"
4253 LIBS="-lXext $XLFLAGS $XLIBS $LIBS"
4254 cat > conftest.$ac_ext <<EOF
4255 #line 4256 "configure"
4256 #include "confdefs.h"
4257 /* Override any gcc2 internal prototype to avoid an error. */
4258 /* We use char because int might match the return type of a gcc2
4259 builtin and then its argument prototype would still apply. */
4260 char XShapeSelectInput();
4262 int main() {
4263 XShapeSelectInput()
4264 ; return 0; }
4266 if { (eval echo configure:4267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4267 rm -rf conftest*
4268 eval "ac_cv_lib_$ac_lib_var=yes"
4269 else
4270 echo "configure: failed program was:" >&5
4271 cat conftest.$ac_ext >&5
4272 rm -rf conftest*
4273 eval "ac_cv_lib_$ac_lib_var=no"
4275 rm -f conftest*
4276 LIBS="$ac_save_LIBS"
4279 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4280 echo "$ac_t""yes" 1>&6
4281 XLIBS="-lXext $XLIBS"
4282 added_xext=yes
4283 cat >> confdefs.h <<\EOF
4284 #define SHAPE 1
4287 else
4288 echo "$ac_t""no" 1>&6
4289 shape=no
4295 shm=yes
4296 # Check whether --enable-shm or --disable-shm was given.
4297 if test "${enable_shm+set}" = set; then
4298 enableval="$enable_shm"
4299 shm=$enableval
4300 else
4301 shm=yes
4305 if test "$shm" = yes; then
4306 echo $ac_n "checking for XShmAttach in -lXext""... $ac_c" 1>&6
4307 echo "configure:4308: checking for XShmAttach in -lXext" >&5
4308 ac_lib_var=`echo Xext'_'XShmAttach | sed 'y%./+-%__p_%'`
4309 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4310 echo $ac_n "(cached) $ac_c" 1>&6
4311 else
4312 ac_save_LIBS="$LIBS"
4313 LIBS="-lXext $XLFLAGS $XLIBS $LIBS"
4314 cat > conftest.$ac_ext <<EOF
4315 #line 4316 "configure"
4316 #include "confdefs.h"
4317 /* Override any gcc2 internal prototype to avoid an error. */
4318 /* We use char because int might match the return type of a gcc2
4319 builtin and then its argument prototype would still apply. */
4320 char XShmAttach();
4322 int main() {
4323 XShmAttach()
4324 ; return 0; }
4326 if { (eval echo configure:4327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4327 rm -rf conftest*
4328 eval "ac_cv_lib_$ac_lib_var=yes"
4329 else
4330 echo "configure: failed program was:" >&5
4331 cat conftest.$ac_ext >&5
4332 rm -rf conftest*
4333 eval "ac_cv_lib_$ac_lib_var=no"
4335 rm -f conftest*
4336 LIBS="$ac_save_LIBS"
4339 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4340 echo "$ac_t""yes" 1>&6
4341 ok=yes
4342 else
4343 echo "$ac_t""no" 1>&6
4344 ok=no
4348 if test "$ok" = yes; then
4349 echo $ac_n "checking for shmget""... $ac_c" 1>&6
4350 echo "configure:4351: checking for shmget" >&5
4351 if eval "test \"`echo '$''{'ac_cv_func_shmget'+set}'`\" = set"; then
4352 echo $ac_n "(cached) $ac_c" 1>&6
4353 else
4354 cat > conftest.$ac_ext <<EOF
4355 #line 4356 "configure"
4356 #include "confdefs.h"
4357 /* System header to define __stub macros and hopefully few prototypes,
4358 which can conflict with char shmget(); below. */
4359 #include <assert.h>
4360 /* Override any gcc2 internal prototype to avoid an error. */
4361 /* We use char because int might match the return type of a gcc2
4362 builtin and then its argument prototype would still apply. */
4363 char shmget();
4365 int main() {
4367 /* The GNU C library defines this for functions which it implements
4368 to always fail with ENOSYS. Some functions are actually named
4369 something starting with __ and the normal name is an alias. */
4370 #if defined (__stub_shmget) || defined (__stub___shmget)
4371 choke me
4372 #else
4373 shmget();
4374 #endif
4376 ; return 0; }
4378 if { (eval echo configure:4379: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4379 rm -rf conftest*
4380 eval "ac_cv_func_shmget=yes"
4381 else
4382 echo "configure: failed program was:" >&5
4383 cat conftest.$ac_ext >&5
4384 rm -rf conftest*
4385 eval "ac_cv_func_shmget=no"
4387 rm -f conftest*
4390 if eval "test \"`echo '$ac_cv_func_'shmget`\" = yes"; then
4391 echo "$ac_t""yes" 1>&6
4392 ok=yes
4393 else
4394 echo "$ac_t""no" 1>&6
4395 ok=no
4400 if test "$ok" = yes; then
4401 if test "$added_xext" = no; then
4402 XLIBS="-lXext $XLIBS"
4404 cat >> confdefs.h <<\EOF
4405 #define XSHM 1
4415 #AC_DEFINE(R6SM)
4416 #AC_SUBST(XSMPLIBS)
4421 LIBPL=""
4424 LDFLAGS_old="$LDFLAGS"
4425 LDFLAGS="$LDFLAGS $lib_search_path"
4426 echo $ac_n "checking for PLGetString in -lPropList""... $ac_c" 1>&6
4427 echo "configure:4428: checking for PLGetString in -lPropList" >&5
4428 ac_lib_var=`echo PropList'_'PLGetString | sed 'y%./+-%__p_%'`
4429 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4430 echo $ac_n "(cached) $ac_c" 1>&6
4431 else
4432 ac_save_LIBS="$LIBS"
4433 LIBS="-lPropList $X_EXTRA_LIBS $LIBS"
4434 cat > conftest.$ac_ext <<EOF
4435 #line 4436 "configure"
4436 #include "confdefs.h"
4437 /* Override any gcc2 internal prototype to avoid an error. */
4438 /* We use char because int might match the return type of a gcc2
4439 builtin and then its argument prototype would still apply. */
4440 char PLGetString();
4442 int main() {
4443 PLGetString()
4444 ; return 0; }
4446 if { (eval echo configure:4447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4447 rm -rf conftest*
4448 eval "ac_cv_lib_$ac_lib_var=yes"
4449 else
4450 echo "configure: failed program was:" >&5
4451 cat conftest.$ac_ext >&5
4452 rm -rf conftest*
4453 eval "ac_cv_lib_$ac_lib_var=no"
4455 rm -f conftest*
4456 LIBS="$ac_save_LIBS"
4459 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4460 echo "$ac_t""yes" 1>&6
4461 yes=yes
4462 else
4463 echo "$ac_t""no" 1>&6
4464 no=no
4467 LDFLAGS="$LDFLAGS_old"
4469 if test "x$ac_cv_lib_PropList_PLGetString" = xyes; then
4471 CPPFLAGS_old="$CPPFLAGS"
4472 CPPFLAGS="$CPPFLAGS $inc_search_path"
4473 ac_safe=`echo "proplist.h" | sed 'y%./+-%__p_%'`
4474 echo $ac_n "checking for proplist.h""... $ac_c" 1>&6
4475 echo "configure:4476: checking for proplist.h" >&5
4476 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4477 echo $ac_n "(cached) $ac_c" 1>&6
4478 else
4479 cat > conftest.$ac_ext <<EOF
4480 #line 4481 "configure"
4481 #include "confdefs.h"
4482 #include <proplist.h>
4484 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4485 { (eval echo configure:4486: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4486 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4487 if test -z "$ac_err"; then
4488 rm -rf conftest*
4489 eval "ac_cv_header_$ac_safe=yes"
4490 else
4491 echo "$ac_err" >&5
4492 echo "configure: failed program was:" >&5
4493 cat conftest.$ac_ext >&5
4494 rm -rf conftest*
4495 eval "ac_cv_header_$ac_safe=no"
4497 rm -f conftest*
4499 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4500 echo "$ac_t""yes" 1>&6
4502 else
4503 echo "$ac_t""no" 1>&6
4506 CPPFLAGS="$CPPFLAGS_old"
4508 if test "x$ac_cv_header_proplist_h" = xyes; then
4509 LIBPL="-lPropList"
4513 if test "x$LIBPL" = "x"; then
4514 echo
4515 echo "ERROR!!! libPropList is not installed, or could not be found."
4516 echo " Window Maker requires libPropList to build."
4517 echo " Please read INSTALL to find where you can find libPropList,"
4518 echo " and install it first."
4519 echo " If you already have it installed, try using the"
4520 if test "x$ac_cv_lib_PropList_PLGetString" != xyes; then
4521 echo " --with-libs-from flag to tell configure where the library"
4522 echo " is installed and"
4524 echo " --with-incs-from flag to tell configure where the header"
4525 echo " files are installed"
4526 exit 1
4538 xpm=yes
4539 # Check whether --enable-xpm or --disable-xpm was given.
4540 if test "${enable_xpm+set}" = set; then
4541 enableval="$enable_xpm"
4542 xpm=$enableval
4543 else
4544 xpm=yes
4548 if test "$xpm" = yes; then
4550 LDFLAGS_old="$LDFLAGS"
4551 LDFLAGS="$LDFLAGS $lib_search_path"
4552 echo $ac_n "checking for XpmCreatePixmapFromData in -lXpm""... $ac_c" 1>&6
4553 echo "configure:4554: checking for XpmCreatePixmapFromData in -lXpm" >&5
4554 ac_lib_var=`echo Xpm'_'XpmCreatePixmapFromData | sed 'y%./+-%__p_%'`
4555 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4556 echo $ac_n "(cached) $ac_c" 1>&6
4557 else
4558 ac_save_LIBS="$LIBS"
4559 LIBS="-lXpm $XLFLAGS $XLIBS $LIBS"
4560 cat > conftest.$ac_ext <<EOF
4561 #line 4562 "configure"
4562 #include "confdefs.h"
4563 /* Override any gcc2 internal prototype to avoid an error. */
4564 /* We use char because int might match the return type of a gcc2
4565 builtin and then its argument prototype would still apply. */
4566 char XpmCreatePixmapFromData();
4568 int main() {
4569 XpmCreatePixmapFromData()
4570 ; return 0; }
4572 if { (eval echo configure:4573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4573 rm -rf conftest*
4574 eval "ac_cv_lib_$ac_lib_var=yes"
4575 else
4576 echo "configure: failed program was:" >&5
4577 cat conftest.$ac_ext >&5
4578 rm -rf conftest*
4579 eval "ac_cv_lib_$ac_lib_var=no"
4581 rm -f conftest*
4582 LIBS="$ac_save_LIBS"
4585 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4586 echo "$ac_t""yes" 1>&6
4587 yes=yes
4588 else
4589 echo "$ac_t""no" 1>&6
4590 no=no
4593 LDFLAGS="$LDFLAGS_old"
4596 if test "x$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = xyes; then
4598 CPPFLAGS_old="$CPPFLAGS"
4599 CPPFLAGS="$CPPFLAGS $inc_search_path"
4600 ac_safe=`echo "X11/xpm.h" | sed 'y%./+-%__p_%'`
4601 echo $ac_n "checking for X11/xpm.h""... $ac_c" 1>&6
4602 echo "configure:4603: checking for X11/xpm.h" >&5
4603 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4604 echo $ac_n "(cached) $ac_c" 1>&6
4605 else
4606 cat > conftest.$ac_ext <<EOF
4607 #line 4608 "configure"
4608 #include "confdefs.h"
4609 #include <X11/xpm.h>
4611 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4612 { (eval echo configure:4613: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4613 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4614 if test -z "$ac_err"; then
4615 rm -rf conftest*
4616 eval "ac_cv_header_$ac_safe=yes"
4617 else
4618 echo "$ac_err" >&5
4619 echo "configure: failed program was:" >&5
4620 cat conftest.$ac_ext >&5
4621 rm -rf conftest*
4622 eval "ac_cv_header_$ac_safe=no"
4624 rm -f conftest*
4626 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4627 echo "$ac_t""yes" 1>&6
4629 else
4630 echo "$ac_t""no" 1>&6
4633 CPPFLAGS="$CPPFLAGS_old"
4635 if test "x$ac_cv_header_X11_xpm_h" = xyes; then
4636 GFXLIBS="$GFXLIBS -lXpm"
4637 supported_gfx="XPM"
4638 cat >> confdefs.h <<\EOF
4639 #define USE_XPM 1
4642 else
4643 supported_gfx="builtin-XPM"
4648 # for wmlib
4650 # for test
4658 png=yes
4659 # Check whether --enable-png or --disable-png was given.
4660 if test "${enable_png+set}" = set; then
4661 enableval="$enable_png"
4662 png=$enableval
4663 else
4664 png=yes
4669 if test "$png" = yes ; then
4671 LDFLAGS_old="$LDFLAGS"
4672 LDFLAGS="$LDFLAGS $lib_search_path"
4673 echo $ac_n "checking for png_get_valid in -lpng""... $ac_c" 1>&6
4674 echo "configure:4675: checking for png_get_valid in -lpng" >&5
4675 ac_lib_var=`echo png'_'png_get_valid | sed 'y%./+-%__p_%'`
4676 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4677 echo $ac_n "(cached) $ac_c" 1>&6
4678 else
4679 ac_save_LIBS="$LIBS"
4680 LIBS="-lpng -lz -lm $LIBS"
4681 cat > conftest.$ac_ext <<EOF
4682 #line 4683 "configure"
4683 #include "confdefs.h"
4684 /* Override any gcc2 internal prototype to avoid an error. */
4685 /* We use char because int might match the return type of a gcc2
4686 builtin and then its argument prototype would still apply. */
4687 char png_get_valid();
4689 int main() {
4690 png_get_valid()
4691 ; return 0; }
4693 if { (eval echo configure:4694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4694 rm -rf conftest*
4695 eval "ac_cv_lib_$ac_lib_var=yes"
4696 else
4697 echo "configure: failed program was:" >&5
4698 cat conftest.$ac_ext >&5
4699 rm -rf conftest*
4700 eval "ac_cv_lib_$ac_lib_var=no"
4702 rm -f conftest*
4703 LIBS="$ac_save_LIBS"
4706 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4707 echo "$ac_t""yes" 1>&6
4708 yes=yes
4709 else
4710 echo "$ac_t""no" 1>&6
4711 no=no
4714 LDFLAGS="$LDFLAGS_old"
4717 if test "x$ac_cv_lib_png_png_get_valid" = xyes; then
4719 CPPFLAGS_old="$CPPFLAGS"
4720 CPPFLAGS="$CPPFLAGS $inc_search_path"
4721 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
4722 echo $ac_n "checking for png.h""... $ac_c" 1>&6
4723 echo "configure:4724: checking for png.h" >&5
4724 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4725 echo $ac_n "(cached) $ac_c" 1>&6
4726 else
4727 cat > conftest.$ac_ext <<EOF
4728 #line 4729 "configure"
4729 #include "confdefs.h"
4730 #include <png.h>
4732 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4733 { (eval echo configure:4734: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4734 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4735 if test -z "$ac_err"; then
4736 rm -rf conftest*
4737 eval "ac_cv_header_$ac_safe=yes"
4738 else
4739 echo "$ac_err" >&5
4740 echo "configure: failed program was:" >&5
4741 cat conftest.$ac_ext >&5
4742 rm -rf conftest*
4743 eval "ac_cv_header_$ac_safe=no"
4745 rm -f conftest*
4747 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4748 echo "$ac_t""yes" 1>&6
4750 else
4751 echo "$ac_t""no" 1>&6
4754 CPPFLAGS="$CPPFLAGS_old"
4756 if test "x$ac_cv_header_png_h" = xyes; then
4757 GFXLIBS="$GFXLIBS -lpng -lz"
4758 supported_gfx="$supported_gfx PNG"
4759 cat >> confdefs.h <<\EOF
4760 #define USE_PNG 1
4768 jpeg=yes
4769 ljpeg=""
4770 # Check whether --enable-jpeg or --disable-jpeg was given.
4771 if test "${enable_jpeg+set}" = set; then
4772 enableval="$enable_jpeg"
4773 jpeg=$enableval
4774 else
4775 jpeg=yes
4779 if test "$jpeg" = yes; then
4781 LDFLAGS_old="$LDFLAGS"
4782 LDFLAGS="$LDFLAGS $lib_search_path"
4783 echo $ac_n "checking for jpeg_destroy_compress in -ljpeg""... $ac_c" 1>&6
4784 echo "configure:4785: checking for jpeg_destroy_compress in -ljpeg" >&5
4785 ac_lib_var=`echo jpeg'_'jpeg_destroy_compress | sed 'y%./+-%__p_%'`
4786 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4787 echo $ac_n "(cached) $ac_c" 1>&6
4788 else
4789 ac_save_LIBS="$LIBS"
4790 LIBS="-ljpeg $LIBS"
4791 cat > conftest.$ac_ext <<EOF
4792 #line 4793 "configure"
4793 #include "confdefs.h"
4794 /* Override any gcc2 internal prototype to avoid an error. */
4795 /* We use char because int might match the return type of a gcc2
4796 builtin and then its argument prototype would still apply. */
4797 char jpeg_destroy_compress();
4799 int main() {
4800 jpeg_destroy_compress()
4801 ; return 0; }
4803 if { (eval echo configure:4804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4804 rm -rf conftest*
4805 eval "ac_cv_lib_$ac_lib_var=yes"
4806 else
4807 echo "configure: failed program was:" >&5
4808 cat conftest.$ac_ext >&5
4809 rm -rf conftest*
4810 eval "ac_cv_lib_$ac_lib_var=no"
4812 rm -f conftest*
4813 LIBS="$ac_save_LIBS"
4816 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4817 echo "$ac_t""yes" 1>&6
4818 yes=yes
4819 else
4820 echo "$ac_t""no" 1>&6
4821 no=no
4824 LDFLAGS="$LDFLAGS_old"
4827 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = xyes; then
4829 ljpeg="-ljpeg"
4832 CPPFLAGS_old="$CPPFLAGS"
4833 CPPFLAGS="$CPPFLAGS $inc_search_path"
4834 ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
4835 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
4836 echo "configure:4837: checking for jpeglib.h" >&5
4837 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4838 echo $ac_n "(cached) $ac_c" 1>&6
4839 else
4840 cat > conftest.$ac_ext <<EOF
4841 #line 4842 "configure"
4842 #include "confdefs.h"
4843 #include <jpeglib.h>
4845 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4846 { (eval echo configure:4847: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4847 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4848 if test -z "$ac_err"; then
4849 rm -rf conftest*
4850 eval "ac_cv_header_$ac_safe=yes"
4851 else
4852 echo "$ac_err" >&5
4853 echo "configure: failed program was:" >&5
4854 cat conftest.$ac_ext >&5
4855 rm -rf conftest*
4856 eval "ac_cv_header_$ac_safe=no"
4858 rm -f conftest*
4860 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4861 echo "$ac_t""yes" 1>&6
4863 else
4864 echo "$ac_t""no" 1>&6
4867 CPPFLAGS="$CPPFLAGS_old"
4869 if test "x$ac_cv_header_jpeglib_h" = xyes; then
4870 GFXLIBS="$GFXLIBS -ljpeg"
4871 supported_gfx="$supported_gfx JPEG"
4872 cat >> confdefs.h <<\EOF
4873 #define USE_JPEG 1
4881 gif=yes
4882 # Check whether --enable-gif or --disable-gif was given.
4883 if test "${enable_gif+set}" = set; then
4884 enableval="$enable_gif"
4885 gif=$enableval
4886 else
4887 gif=yes
4891 if test "$gif" = yes; then
4892 my_libname=""
4894 LDFLAGS_old="$LDFLAGS"
4895 LDFLAGS="$LDFLAGS $lib_search_path"
4896 echo $ac_n "checking for DGifOpenFileName in -lungif""... $ac_c" 1>&6
4897 echo "configure:4898: checking for DGifOpenFileName in -lungif" >&5
4898 ac_lib_var=`echo ungif'_'DGifOpenFileName | sed 'y%./+-%__p_%'`
4899 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4900 echo $ac_n "(cached) $ac_c" 1>&6
4901 else
4902 ac_save_LIBS="$LIBS"
4903 LIBS="-lungif $XLFLAGS $XLIBS $LIBS"
4904 cat > conftest.$ac_ext <<EOF
4905 #line 4906 "configure"
4906 #include "confdefs.h"
4907 /* Override any gcc2 internal prototype to avoid an error. */
4908 /* We use char because int might match the return type of a gcc2
4909 builtin and then its argument prototype would still apply. */
4910 char DGifOpenFileName();
4912 int main() {
4913 DGifOpenFileName()
4914 ; return 0; }
4916 if { (eval echo configure:4917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4917 rm -rf conftest*
4918 eval "ac_cv_lib_$ac_lib_var=yes"
4919 else
4920 echo "configure: failed program was:" >&5
4921 cat conftest.$ac_ext >&5
4922 rm -rf conftest*
4923 eval "ac_cv_lib_$ac_lib_var=no"
4925 rm -f conftest*
4926 LIBS="$ac_save_LIBS"
4929 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4930 echo "$ac_t""yes" 1>&6
4931 yes=yes
4932 else
4933 echo "$ac_t""no" 1>&6
4934 no=no
4937 LDFLAGS="$LDFLAGS_old"
4939 if test "x$ac_cv_lib_ungif_DGifOpenFileName" = xyes; then
4940 my_libname=-lungif
4942 if test "x$my_libname" = x; then
4944 LDFLAGS_old="$LDFLAGS"
4945 LDFLAGS="$LDFLAGS $lib_search_path"
4946 echo $ac_n "checking for DGifOpenFileName in -lgif""... $ac_c" 1>&6
4947 echo "configure:4948: checking for DGifOpenFileName in -lgif" >&5
4948 ac_lib_var=`echo gif'_'DGifOpenFileName | sed 'y%./+-%__p_%'`
4949 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4950 echo $ac_n "(cached) $ac_c" 1>&6
4951 else
4952 ac_save_LIBS="$LIBS"
4953 LIBS="-lgif $XLFLAGS $XLIBS $LIBS"
4954 cat > conftest.$ac_ext <<EOF
4955 #line 4956 "configure"
4956 #include "confdefs.h"
4957 /* Override any gcc2 internal prototype to avoid an error. */
4958 /* We use char because int might match the return type of a gcc2
4959 builtin and then its argument prototype would still apply. */
4960 char DGifOpenFileName();
4962 int main() {
4963 DGifOpenFileName()
4964 ; return 0; }
4966 if { (eval echo configure:4967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4967 rm -rf conftest*
4968 eval "ac_cv_lib_$ac_lib_var=yes"
4969 else
4970 echo "configure: failed program was:" >&5
4971 cat conftest.$ac_ext >&5
4972 rm -rf conftest*
4973 eval "ac_cv_lib_$ac_lib_var=no"
4975 rm -f conftest*
4976 LIBS="$ac_save_LIBS"
4979 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4980 echo "$ac_t""yes" 1>&6
4981 yes=yes
4982 else
4983 echo "$ac_t""no" 1>&6
4984 no=no
4987 LDFLAGS="$LDFLAGS_old"
4989 if test "x$ac_cv_lib_gif_DGifOpenFileName" = xyes; then
4990 my_libname=-lgif
4994 if test "$my_libname" != x; then
4996 CPPFLAGS_old="$CPPFLAGS"
4997 CPPFLAGS="$CPPFLAGS $inc_search_path"
4998 ac_safe=`echo "gif_lib.h" | sed 'y%./+-%__p_%'`
4999 echo $ac_n "checking for gif_lib.h""... $ac_c" 1>&6
5000 echo "configure:5001: checking for gif_lib.h" >&5
5001 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5002 echo $ac_n "(cached) $ac_c" 1>&6
5003 else
5004 cat > conftest.$ac_ext <<EOF
5005 #line 5006 "configure"
5006 #include "confdefs.h"
5007 #include <gif_lib.h>
5009 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5010 { (eval echo configure:5011: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5011 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5012 if test -z "$ac_err"; then
5013 rm -rf conftest*
5014 eval "ac_cv_header_$ac_safe=yes"
5015 else
5016 echo "$ac_err" >&5
5017 echo "configure: failed program was:" >&5
5018 cat conftest.$ac_ext >&5
5019 rm -rf conftest*
5020 eval "ac_cv_header_$ac_safe=no"
5022 rm -f conftest*
5024 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5025 echo "$ac_t""yes" 1>&6
5027 else
5028 echo "$ac_t""no" 1>&6
5031 CPPFLAGS="$CPPFLAGS_old"
5033 if test "x$ac_cv_header_gif_lib_h" = xyes; then
5034 GFXLIBS="$GFXLIBS $my_libname"
5035 supported_gfx="$supported_gfx GIF"
5036 cat >> confdefs.h <<\EOF
5037 #define USE_GIF 1
5046 # Check whether --enable-tiff or --disable-tiff was given.
5047 if test "${enable_tiff+set}" = set; then
5048 enableval="$enable_tiff"
5049 tif=$enableval
5050 else
5051 tif=yes
5056 # TIFF can optionally have JPEG and/or zlib support. Must find out
5057 # when they are supported so that correct library flags are passed during
5058 # detection and linkage
5061 # By default use xpm icons if tiff is not found.
5062 ICONEXT="xpm"
5065 if test "$tif" = yes; then
5066 my_libname=""
5068 LDFLAGS_old="$LDFLAGS"
5069 LDFLAGS="$LDFLAGS $lib_search_path"
5070 echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6
5071 echo "configure:5072: checking for TIFFGetVersion in -ltiff" >&5
5072 ac_lib_var=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'`
5073 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5074 echo $ac_n "(cached) $ac_c" 1>&6
5075 else
5076 ac_save_LIBS="$LIBS"
5077 LIBS="-ltiff -lm $LIBS"
5078 cat > conftest.$ac_ext <<EOF
5079 #line 5080 "configure"
5080 #include "confdefs.h"
5081 /* Override any gcc2 internal prototype to avoid an error. */
5082 /* We use char because int might match the return type of a gcc2
5083 builtin and then its argument prototype would still apply. */
5084 char TIFFGetVersion();
5086 int main() {
5087 TIFFGetVersion()
5088 ; return 0; }
5090 if { (eval echo configure:5091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5091 rm -rf conftest*
5092 eval "ac_cv_lib_$ac_lib_var=yes"
5093 else
5094 echo "configure: failed program was:" >&5
5095 cat conftest.$ac_ext >&5
5096 rm -rf conftest*
5097 eval "ac_cv_lib_$ac_lib_var=no"
5099 rm -f conftest*
5100 LIBS="$ac_save_LIBS"
5103 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5104 echo "$ac_t""yes" 1>&6
5105 yes=yes
5106 else
5107 echo "$ac_t""no" 1>&6
5108 no=no
5111 LDFLAGS="$LDFLAGS_old"
5113 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = xyes; then
5114 my_libname="-ltiff"
5116 unset ac_cv_lib_tiff_TIFFGetVersion
5117 if test "x$my_libname" = x; then
5119 LDFLAGS_old="$LDFLAGS"
5120 LDFLAGS="$LDFLAGS $lib_search_path"
5121 echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6
5122 echo "configure:5123: checking for TIFFGetVersion in -ltiff" >&5
5123 ac_lib_var=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'`
5124 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5125 echo $ac_n "(cached) $ac_c" 1>&6
5126 else
5127 ac_save_LIBS="$LIBS"
5128 LIBS="-ltiff $ljpeg -lz -lm $LIBS"
5129 cat > conftest.$ac_ext <<EOF
5130 #line 5131 "configure"
5131 #include "confdefs.h"
5132 /* Override any gcc2 internal prototype to avoid an error. */
5133 /* We use char because int might match the return type of a gcc2
5134 builtin and then its argument prototype would still apply. */
5135 char TIFFGetVersion();
5137 int main() {
5138 TIFFGetVersion()
5139 ; return 0; }
5141 if { (eval echo configure:5142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5142 rm -rf conftest*
5143 eval "ac_cv_lib_$ac_lib_var=yes"
5144 else
5145 echo "configure: failed program was:" >&5
5146 cat conftest.$ac_ext >&5
5147 rm -rf conftest*
5148 eval "ac_cv_lib_$ac_lib_var=no"
5150 rm -f conftest*
5151 LIBS="$ac_save_LIBS"
5154 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5155 echo "$ac_t""yes" 1>&6
5156 yes=yes
5157 else
5158 echo "$ac_t""no" 1>&6
5159 no=no
5162 LDFLAGS="$LDFLAGS_old"
5164 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = xyes; then
5165 my_libname="-ltiff -lz"
5169 if test "x$my_libname" = x; then
5171 LDFLAGS_old="$LDFLAGS"
5172 LDFLAGS="$LDFLAGS $lib_search_path"
5173 echo $ac_n "checking for TIFFGetVersion in -ltiff34""... $ac_c" 1>&6
5174 echo "configure:5175: checking for TIFFGetVersion in -ltiff34" >&5
5175 ac_lib_var=`echo tiff34'_'TIFFGetVersion | sed 'y%./+-%__p_%'`
5176 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5177 echo $ac_n "(cached) $ac_c" 1>&6
5178 else
5179 ac_save_LIBS="$LIBS"
5180 LIBS="-ltiff34 $ljpeg -lm $LIBS"
5181 cat > conftest.$ac_ext <<EOF
5182 #line 5183 "configure"
5183 #include "confdefs.h"
5184 /* Override any gcc2 internal prototype to avoid an error. */
5185 /* We use char because int might match the return type of a gcc2
5186 builtin and then its argument prototype would still apply. */
5187 char TIFFGetVersion();
5189 int main() {
5190 TIFFGetVersion()
5191 ; return 0; }
5193 if { (eval echo configure:5194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5194 rm -rf conftest*
5195 eval "ac_cv_lib_$ac_lib_var=yes"
5196 else
5197 echo "configure: failed program was:" >&5
5198 cat conftest.$ac_ext >&5
5199 rm -rf conftest*
5200 eval "ac_cv_lib_$ac_lib_var=no"
5202 rm -f conftest*
5203 LIBS="$ac_save_LIBS"
5206 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5207 echo "$ac_t""yes" 1>&6
5208 yes=yes
5209 else
5210 echo "$ac_t""no" 1>&6
5211 no=no
5214 LDFLAGS="$LDFLAGS_old"
5216 if test "x$ac_cv_lib_tiff34_TIFFGetVersion" = xyes; then
5217 my_libname="-ltiff34"
5222 if test "x$my_libname" != x; then
5224 CPPFLAGS_old="$CPPFLAGS"
5225 CPPFLAGS="$CPPFLAGS $inc_search_path"
5226 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
5227 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
5228 echo "configure:5229: checking for tiffio.h" >&5
5229 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5230 echo $ac_n "(cached) $ac_c" 1>&6
5231 else
5232 cat > conftest.$ac_ext <<EOF
5233 #line 5234 "configure"
5234 #include "confdefs.h"
5235 #include <tiffio.h>
5237 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5238 { (eval echo configure:5239: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5239 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5240 if test -z "$ac_err"; then
5241 rm -rf conftest*
5242 eval "ac_cv_header_$ac_safe=yes"
5243 else
5244 echo "$ac_err" >&5
5245 echo "configure: failed program was:" >&5
5246 cat conftest.$ac_ext >&5
5247 rm -rf conftest*
5248 eval "ac_cv_header_$ac_safe=no"
5250 rm -f conftest*
5252 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5253 echo "$ac_t""yes" 1>&6
5255 else
5256 echo "$ac_t""no" 1>&6
5259 CPPFLAGS="$CPPFLAGS_old"
5261 if test "x$ac_cv_header_tiffio_h" = xyes; then
5262 GFXLIBS="$my_libname $GFXLIBS"
5263 ICONEXT="tiff"
5264 supported_gfx="$supported_gfx TIFF"
5265 cat >> confdefs.h <<\EOF
5266 #define USE_TIFF 1
5273 LIBRARY_SEARCH_PATH="$lib_search_path"
5274 HEADER_SEARCH_PATH="$inc_search_path"
5286 # Check whether --enable-debug or --disable-debug was given.
5287 if test "${enable_debug+set}" = set; then
5288 enableval="$enable_debug"
5290 else
5291 enable_debug=no
5295 if test "$enable_debug" = yes; then
5296 DFLAGS="-g -DDEBUG"
5297 # Efence makes things too slow. Add it by hand in the Makefiles
5298 # if it is really needed.
5299 # AC_CHECK_LIB(efence, malloc, LIBS="$LIBS -lefence")
5304 sound=yes
5305 # Check whether --enable-sound or --disable-sound was given.
5306 if test "${enable_sound+set}" = set; then
5307 enableval="$enable_sound"
5308 sound=$enableval
5309 else
5310 sound=yes
5313 if test "$sound" = yes; then
5314 cat >> confdefs.h <<\EOF
5315 #define WMSOUND 1
5321 # AC_PREFIX_PROGRAM(wmaker)
5323 # Check whether --with-pixmapdir or --without-pixmapdir was given.
5324 if test "${with_pixmapdir+set}" = set; then
5325 withval="$with_pixmapdir"
5330 if test "x$with_pixmapdir" != "x"; then
5331 pixmapdir=$with_pixmapdir
5332 else
5333 pixmapdir=`eval echo ${datadir}/pixmaps`
5336 cat >> confdefs.h <<EOF
5337 #define PIXMAPDIR "$pixmapdir"
5341 pkgdatadir=`eval echo $datadir`
5342 cat >> confdefs.h <<EOF
5343 #define PKGDATADIR "$pkgdatadir/WindowMaker"
5347 _sysconfdir=`eval echo $sysconfdir`
5348 cat >> confdefs.h <<EOF
5349 #define SYSCONFDIR "$_sysconfdir/WindowMaker"
5355 appspath=""
5357 # Check whether --with-appspath or --without-appspath was given.
5358 if test "${with_appspath+set}" = set; then
5359 withval="$with_appspath"
5360 appspath=$withval
5364 if test "x$appspath" = "x"; then
5365 gnustepdir='$(prefix)/GNUstep'
5367 if test "x$GNUSTEP_LOCAL_ROOT" != "x" ; then
5368 gnustepdir=`echo "$GNUSTEP_LOCAL_ROOT" | sed -e "s|^${prefix}|prefix|"`
5369 gnustepdir=`echo $gnustepdir | sed -e 's|^prefix|${prefix}|'`
5372 with_appspath=$gnustepdir/Apps
5375 wprefsdir=$with_appspath/WPrefs.app
5381 # Check whether --enable-single-icon or --disable-single-icon was given.
5382 if test "${enable_single_icon+set}" = set; then
5383 enableval="$enable_single_icon"
5384 if test "$enableval" = yes; then
5385 cat >> confdefs.h <<\EOF
5386 #define REDUCE_APPICONS 1
5394 # Check whether --enable-usermenu or --disable-usermenu was given.
5395 if test "${enable_usermenu+set}" = set; then
5396 enableval="$enable_usermenu"
5397 if test "$enableval" = yes; then
5398 cat >> confdefs.h <<\EOF
5399 #define USER_MENU 1
5410 trap '' 1 2 15
5411 cat > confcache <<\EOF
5412 # This file is a shell script that caches the results of configure
5413 # tests run on this system so they can be shared between configure
5414 # scripts and configure runs. It is not useful on other systems.
5415 # If it contains results you don't want to keep, you may remove or edit it.
5417 # By default, configure uses ./config.cache as the cache file,
5418 # creating it if it does not exist already. You can give configure
5419 # the --cache-file=FILE option to use a different cache file; that is
5420 # what configure does when it calls configure scripts in
5421 # subdirectories, so they share the cache.
5422 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5423 # config.status only pays attention to the cache file if you give it the
5424 # --recheck option to rerun configure.
5427 # The following way of writing the cache mishandles newlines in values,
5428 # but we know of no workaround that is simple, portable, and efficient.
5429 # So, don't put newlines in cache variables' values.
5430 # Ultrix sh set writes to stderr and can't be redirected directly,
5431 # and sets the high bit in the cache file unless we assign to the vars.
5432 (set) 2>&1 |
5433 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5434 *ac_space=\ *)
5435 # `set' does not quote correctly, so add quotes (double-quote substitution
5436 # turns \\\\ into \\, and sed turns \\ into \).
5437 sed -n \
5438 -e "s/'/'\\\\''/g" \
5439 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5442 # `set' quotes correctly as required by POSIX, so do not add quotes.
5443 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5445 esac >> confcache
5446 if cmp -s $cache_file confcache; then
5448 else
5449 if test -w $cache_file; then
5450 echo "updating cache $cache_file"
5451 cat confcache > $cache_file
5452 else
5453 echo "not updating unwritable cache $cache_file"
5456 rm -f confcache
5458 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5460 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5461 # Let make expand exec_prefix.
5462 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5464 # Any assignment to VPATH causes Sun make to only execute
5465 # the first set of double-colon rules, so remove it if not needed.
5466 # If there is a colon in the path, we need to keep it.
5467 if test "x$srcdir" = x.; then
5468 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
5471 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5473 DEFS=-DHAVE_CONFIG_H
5475 # Without the "./", some shells look in PATH for config.status.
5476 : ${CONFIG_STATUS=./config.status}
5478 echo creating $CONFIG_STATUS
5479 rm -f $CONFIG_STATUS
5480 cat > $CONFIG_STATUS <<EOF
5481 #! /bin/sh
5482 # Generated automatically by configure.
5483 # Run this file to recreate the current configuration.
5484 # This directory was configured as follows,
5485 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5487 # $0 $ac_configure_args
5489 # Compiler output produced by configure, useful for debugging
5490 # configure, is in ./config.log if it exists.
5492 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5493 for ac_option
5495 case "\$ac_option" in
5496 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5497 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5498 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5499 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5500 echo "$CONFIG_STATUS generated by autoconf version 2.13"
5501 exit 0 ;;
5502 -help | --help | --hel | --he | --h)
5503 echo "\$ac_cs_usage"; exit 0 ;;
5504 *) echo "\$ac_cs_usage"; exit 1 ;;
5505 esac
5506 done
5508 ac_given_srcdir=$srcdir
5509 ac_given_INSTALL="$INSTALL"
5511 trap 'rm -fr `echo "Makefile po/Makefile util/Makefile test/Makefile wmlib/Makefile \
5512 WINGs/Makefile WINGs/Resources/Makefile src/Makefile src/wconfig.h \
5513 wrlib/Makefile doc/Makefile WindowMaker/Makefile contrib/Makefile \
5514 WindowMaker/Backgrounds/Makefile WindowMaker/Defaults/Makefile \
5515 WindowMaker/IconSets/Makefile WindowMaker/Icons/Makefile \
5516 WindowMaker/Pixmaps/Makefile WindowMaker/Styles/Makefile \
5517 WindowMaker/Themes/Makefile \
5518 WPrefs.app/Makefile WPrefs.app/tiff/Makefile WPrefs.app/xpm/Makefile \
5519 WPrefs.app/po/Makefile src/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5521 cat >> $CONFIG_STATUS <<EOF
5523 # Protect against being on the right side of a sed subst in config.status.
5524 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5525 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5526 $ac_vpsub
5527 $extrasub
5528 s%@SHELL@%$SHELL%g
5529 s%@CFLAGS@%$CFLAGS%g
5530 s%@CPPFLAGS@%$CPPFLAGS%g
5531 s%@CXXFLAGS@%$CXXFLAGS%g
5532 s%@FFLAGS@%$FFLAGS%g
5533 s%@DEFS@%$DEFS%g
5534 s%@LDFLAGS@%$LDFLAGS%g
5535 s%@LIBS@%$LIBS%g
5536 s%@exec_prefix@%$exec_prefix%g
5537 s%@prefix@%$prefix%g
5538 s%@program_transform_name@%$program_transform_name%g
5539 s%@bindir@%$bindir%g
5540 s%@sbindir@%$sbindir%g
5541 s%@libexecdir@%$libexecdir%g
5542 s%@datadir@%$datadir%g
5543 s%@sysconfdir@%$sysconfdir%g
5544 s%@sharedstatedir@%$sharedstatedir%g
5545 s%@localstatedir@%$localstatedir%g
5546 s%@libdir@%$libdir%g
5547 s%@includedir@%$includedir%g
5548 s%@oldincludedir@%$oldincludedir%g
5549 s%@infodir@%$infodir%g
5550 s%@mandir@%$mandir%g
5551 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5552 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5553 s%@INSTALL_DATA@%$INSTALL_DATA%g
5554 s%@PACKAGE@%$PACKAGE%g
5555 s%@VERSION@%$VERSION%g
5556 s%@ACLOCAL@%$ACLOCAL%g
5557 s%@AUTOCONF@%$AUTOCONF%g
5558 s%@AUTOMAKE@%$AUTOMAKE%g
5559 s%@AUTOHEADER@%$AUTOHEADER%g
5560 s%@MAKEINFO@%$MAKEINFO%g
5561 s%@SET_MAKE@%$SET_MAKE%g
5562 s%@host@%$host%g
5563 s%@host_alias@%$host_alias%g
5564 s%@host_cpu@%$host_cpu%g
5565 s%@host_vendor@%$host_vendor%g
5566 s%@host_os@%$host_os%g
5567 s%@build@%$build%g
5568 s%@build_alias@%$build_alias%g
5569 s%@build_cpu@%$build_cpu%g
5570 s%@build_vendor@%$build_vendor%g
5571 s%@build_os@%$build_os%g
5572 s%@RANLIB@%$RANLIB%g
5573 s%@CC@%$CC%g
5574 s%@LD@%$LD%g
5575 s%@NM@%$NM%g
5576 s%@LN_S@%$LN_S%g
5577 s%@LIBTOOL@%$LIBTOOL%g
5578 s%@CPP@%$CPP%g
5579 s%@ALLOCA@%$ALLOCA%g
5580 s%@CPP_PATH@%$CPP_PATH%g
5581 s%@XGETTEXT@%$XGETTEXT%g
5582 s%@DLLIBS@%$DLLIBS%g
5583 s%@INTLIBS@%$INTLIBS%g
5584 s%@NLSDIR@%$NLSDIR%g
5585 s%@MOFILES@%$MOFILES%g
5586 s%@WPMOFILES@%$WPMOFILES%g
5587 s%@LITE@%$LITE%g
5588 s%@X_CFLAGS@%$X_CFLAGS%g
5589 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
5590 s%@X_LIBS@%$X_LIBS%g
5591 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
5592 s%@X_LIBRARY_PATH@%$X_LIBRARY_PATH%g
5593 s%@LIBPL@%$LIBPL%g
5594 s%@XCFLAGS@%$XCFLAGS%g
5595 s%@XLFLAGS@%$XLFLAGS%g
5596 s%@XLIBS@%$XLIBS%g
5597 s%@LIBRARY_SEARCH_PATH@%$LIBRARY_SEARCH_PATH%g
5598 s%@HEADER_SEARCH_PATH@%$HEADER_SEARCH_PATH%g
5599 s%@GFXLIBS@%$GFXLIBS%g
5600 s%@ICONEXT@%$ICONEXT%g
5601 s%@DFLAGS@%$DFLAGS%g
5602 s%@wprefsdir@%$wprefsdir%g
5604 CEOF
5607 cat >> $CONFIG_STATUS <<\EOF
5609 # Split the substitutions into bite-sized pieces for seds with
5610 # small command number limits, like on Digital OSF/1 and HP-UX.
5611 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
5612 ac_file=1 # Number of current file.
5613 ac_beg=1 # First line for current file.
5614 ac_end=$ac_max_sed_cmds # Line after last line for current file.
5615 ac_more_lines=:
5616 ac_sed_cmds=""
5617 while $ac_more_lines; do
5618 if test $ac_beg -gt 1; then
5619 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
5620 else
5621 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
5623 if test ! -s conftest.s$ac_file; then
5624 ac_more_lines=false
5625 rm -f conftest.s$ac_file
5626 else
5627 if test -z "$ac_sed_cmds"; then
5628 ac_sed_cmds="sed -f conftest.s$ac_file"
5629 else
5630 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
5632 ac_file=`expr $ac_file + 1`
5633 ac_beg=$ac_end
5634 ac_end=`expr $ac_end + $ac_max_sed_cmds`
5636 done
5637 if test -z "$ac_sed_cmds"; then
5638 ac_sed_cmds=cat
5642 cat >> $CONFIG_STATUS <<EOF
5644 CONFIG_FILES=\${CONFIG_FILES-"Makefile po/Makefile util/Makefile test/Makefile wmlib/Makefile \
5645 WINGs/Makefile WINGs/Resources/Makefile src/Makefile src/wconfig.h \
5646 wrlib/Makefile doc/Makefile WindowMaker/Makefile contrib/Makefile \
5647 WindowMaker/Backgrounds/Makefile WindowMaker/Defaults/Makefile \
5648 WindowMaker/IconSets/Makefile WindowMaker/Icons/Makefile \
5649 WindowMaker/Pixmaps/Makefile WindowMaker/Styles/Makefile \
5650 WindowMaker/Themes/Makefile \
5651 WPrefs.app/Makefile WPrefs.app/tiff/Makefile WPrefs.app/xpm/Makefile \
5652 WPrefs.app/po/Makefile "}
5654 cat >> $CONFIG_STATUS <<\EOF
5655 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
5656 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5657 case "$ac_file" in
5658 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5659 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5660 *) ac_file_in="${ac_file}.in" ;;
5661 esac
5663 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5665 # Remove last slash and all that follows it. Not all systems have dirname.
5666 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5667 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5668 # The file is in a subdirectory.
5669 test ! -d "$ac_dir" && mkdir "$ac_dir"
5670 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
5671 # A "../" for each directory in $ac_dir_suffix.
5672 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5673 else
5674 ac_dir_suffix= ac_dots=
5677 case "$ac_given_srcdir" in
5678 .) srcdir=.
5679 if test -z "$ac_dots"; then top_srcdir=.
5680 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5681 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
5682 *) # Relative path.
5683 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5684 top_srcdir="$ac_dots$ac_given_srcdir" ;;
5685 esac
5687 case "$ac_given_INSTALL" in
5688 [/$]*) INSTALL="$ac_given_INSTALL" ;;
5689 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5690 esac
5692 echo creating "$ac_file"
5693 rm -f "$ac_file"
5694 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5695 case "$ac_file" in
5696 *Makefile*) ac_comsub="1i\\
5697 # $configure_input" ;;
5698 *) ac_comsub= ;;
5699 esac
5701 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5702 sed -e "$ac_comsub
5703 s%@configure_input@%$configure_input%g
5704 s%@srcdir@%$srcdir%g
5705 s%@top_srcdir@%$top_srcdir%g
5706 s%@INSTALL@%$INSTALL%g
5707 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
5708 fi; done
5709 rm -f conftest.s*
5711 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5712 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5714 # ac_d sets the value in "#define NAME VALUE" lines.
5715 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5716 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
5717 ac_dC='\3'
5718 ac_dD='%g'
5719 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5720 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5721 ac_uB='\([ ]\)%\1#\2define\3'
5722 ac_uC=' '
5723 ac_uD='\4%g'
5724 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5725 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5726 ac_eB='$%\1#\2define\3'
5727 ac_eC=' '
5728 ac_eD='%g'
5730 if test "${CONFIG_HEADERS+set}" != set; then
5732 cat >> $CONFIG_STATUS <<EOF
5733 CONFIG_HEADERS="src/config.h"
5735 cat >> $CONFIG_STATUS <<\EOF
5737 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
5738 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5739 case "$ac_file" in
5740 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5741 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5742 *) ac_file_in="${ac_file}.in" ;;
5743 esac
5745 echo creating $ac_file
5747 rm -f conftest.frag conftest.in conftest.out
5748 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5749 cat $ac_file_inputs > conftest.in
5753 # Transform confdefs.h into a sed script conftest.vals that substitutes
5754 # the proper values into config.h.in to produce config.h. And first:
5755 # Protect against being on the right side of a sed subst in config.status.
5756 # Protect against being in an unquoted here document in config.status.
5757 rm -f conftest.vals
5758 cat > conftest.hdr <<\EOF
5759 s/[\\&%]/\\&/g
5760 s%[\\$`]%\\&%g
5761 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5762 s%ac_d%ac_u%gp
5763 s%ac_u%ac_e%gp
5765 sed -n -f conftest.hdr confdefs.h > conftest.vals
5766 rm -f conftest.hdr
5768 # This sed command replaces #undef with comments. This is necessary, for
5769 # example, in the case of _POSIX_SOURCE, which is predefined and required
5770 # on some systems where configure will not decide to define it.
5771 cat >> conftest.vals <<\EOF
5772 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5775 # Break up conftest.vals because some shells have a limit on
5776 # the size of here documents, and old seds have small limits too.
5778 rm -f conftest.tail
5779 while :
5781 ac_lines=`grep -c . conftest.vals`
5782 # grep -c gives empty output for an empty file on some AIX systems.
5783 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5784 # Write a limited-size here document to conftest.frag.
5785 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5786 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5787 echo 'CEOF
5788 sed -f conftest.frag conftest.in > conftest.out
5789 rm -f conftest.in
5790 mv conftest.out conftest.in
5791 ' >> $CONFIG_STATUS
5792 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5793 rm -f conftest.vals
5794 mv conftest.tail conftest.vals
5795 done
5796 rm -f conftest.vals
5798 cat >> $CONFIG_STATUS <<\EOF
5799 rm -f conftest.frag conftest.h
5800 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5801 cat conftest.in >> conftest.h
5802 rm -f conftest.in
5803 if cmp -s $ac_file conftest.h 2>/dev/null; then
5804 echo "$ac_file is unchanged"
5805 rm -f conftest.h
5806 else
5807 # Remove last slash and all that follows it. Not all systems have dirname.
5808 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5809 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5810 # The file is in a subdirectory.
5811 test ! -d "$ac_dir" && mkdir "$ac_dir"
5813 rm -f $ac_file
5814 mv conftest.h $ac_file
5816 fi; done
5819 cat >> $CONFIG_STATUS <<EOF
5823 cat >> $CONFIG_STATUS <<\EOF
5824 test -z "$CONFIG_HEADERS" || echo timestamp > src/stamp-h
5826 exit 0
5828 chmod +x $CONFIG_STATUS
5829 rm -fr confdefs* $ac_clean_files
5830 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
5838 cat <<EOF >get-wraster-flags
5839 #!/bin/sh
5841 prefix="$prefix"
5842 exec_prefix=\$prefix
5844 WCFLAGS="-I\$prefix/include $inc_search_path"
5845 WLFLAGS="-L\$exec_prefix/lib $lib_search_path"
5846 WLIBS="-lwraster $GFXLIBS $XLIBS -lm"
5848 usage="Usage: get-wraster-flags #lp#--cflags#rp# #lp#--ldflags#rp# #lp#--libs#rp#"
5850 if test \$# -eq 0; then
5851 echo "\${usage}" 1>&2
5852 exit 1
5855 while test \$# -gt 0; do
5856 case \$1 in
5857 --cflags)
5858 echo \$WCFLAGS
5860 --ldflags|--lflags)
5861 echo \$WLFLAGS
5863 --libs)
5864 echo \$WLIBS
5867 echo "\${usage}" 1>&2
5868 exit 1
5870 esac
5871 shift
5872 done
5877 sed 's/#lp#/[/g' get-wraster-flags | sed 's/#rp#/]/g' > wrlib/get-wraster-flags
5879 chmod 755 wrlib/get-wraster-flags
5880 rm -f get-wraster-flags
5884 supported_gfx="$supported_gfx builtin-PPM"
5886 if test "x$MOFILES" = "x"; then
5887 mof=none
5888 else
5889 mof=$MOFILES
5893 echo
5894 echo "Window Maker was configured as follows:"
5895 echo
5896 echo "Installation path prefix: $prefix"
5897 echo "Installation path prefix for binaries: $_bindir"
5898 echo "Installation path for WPrefs.app: $wprefsdir" | sed -e 's|\$(prefix)|'"$prefix|"
5899 echo "Graphic format libraries: $supported_gfx"
5900 echo "Sound support: $sound"
5901 echo "Translated message files to install: $mof"
5902 if test "x$MOFILES" != "x"; then
5903 echo "Installation path of translated messages: $NLSDIR" | sed -e 's|\$(prefix)|'"$prefix|"
5907 if test "$rh_is_redhat" = yes; then
5908 if test "$mins_found" = yes -o "$bugs_found" = yes; then
5909 echo
5910 echo "configure: warning: It seems you are using a system packaged by Red Hat.
5911 I have done some checks for Red-Hat-specific bugs, and I found some
5912 problems. Please read the INSTALL file regarding Red Hat, resolve
5913 the problems, and try to run configure again.
5915 Here are the problems I found:
5916 " 1>&2
5917 if test "x$rh_old_wmaker" = xyes; then
5918 echo "Problem: Old version of Window Maker in /usr/X11R6/bin."
5919 echo "Description: You seem to have an old version of Window Maker"
5920 echo " installed in /usr/X11R6/bin. It is recommended"
5921 echo " that you uninstall any previously installed"
5922 echo " packages of WindowMaker before installing a new one."
5923 echo
5925 if test "x$rh_missing_usr_local_bin" = xyes; then
5926 echo "Problem: PATH is missing /usr/local/bin."
5927 echo "Description: Your PATH environment variable does not appear to"
5928 echo " contain the directory /usr/local/bin. Please add it."
5929 echo
5931 if test "x$rh_missing_usr_local_lib" = xyes; then
5932 echo "Problem: /etc/ld.so.conf missing /usr/local/lib"
5933 echo "Description: Your /etc/ld.so.conf file does not appear to contain"
5934 echo " the directory /usr/local/lib. Please add it."
5935 echo
5937 if test "x$rh_missing_usr_x11" = xyes; then
5938 echo "Problem: Missing /usr/X11 symbolic link."
5939 echo "Description: Your system is missing a symbolic link from"
5940 echo " /usr/X11R6 to /usr/X11. Please create one."
5941 echo
5943 if test "x$rh_missing_usr_include_x11" = xyes; then
5944 echo "Problem: Missing /usr/include/X11 symbolic link."
5945 echo "Description: Your system is missing a symbolic link from"
5946 echo " /usr/X11R6/include/X11 to /usr/include/X11."
5947 echo " Please create one."
5948 echo
5950 if test "x$rh_missing_lib_cpp" = xyes; then
5951 echo "Problem: Missing /lib/cpp symbolic link."
5952 echo "Description: Your system is missing a symbolic link from the"
5953 echo " cpp (C preprocessor) program to /lib/cpp."
5954 echo " Please create one."
5955 echo
5957 if test "x$bugs_found" = xyes; then
5958 { echo "configure: error: One or more of the problems above can potentially
5959 cause Window Maker not to install or run properly. Please resolve
5960 the problems and try to run configure again." 1>&2; exit 1; }
5961 exit 1
5962 elif test "x$mins_found" = xyes; then
5963 echo "configure: warning: The problems above may or may not cause Window Maker
5964 not to install or run properly. If you have any problems during
5965 installation or execution, please resolve the problems and try to
5966 install Window Maker again." 1>&2
5967 echo
5969 else
5970 echo
5971 echo "You appear to have a system packaged by Red Hat, but I could"
5972 echo "not find any Red-Hat-specific problems that I know about."
5973 echo
5978 if test "x$ac_cv_header_jpeglib_h" != xyes; then
5979 echo "WARNING WARNING WARNING WARNING WARNING WARNING WARNING"
5980 echo
5981 echo "JPEG support will not be included because the JPEG library is"
5982 echo "not installed correctly or was not found. Background images"
5983 echo "from themes will not display as they usually are JPEG files."
5984 echo
5985 echo "To fix, download and install the jpeg library and/or make sure you"
5986 echo "installed all jpeg related packages, like jpeg-devel."
5987 echo
5988 echo "WARNING WARNING WARNING WARNING WARNING WARNING WARNING"