Develop and Download Open Source Software

Browse CVS Repository

Contents of /freewnn/FreeWnn/configure

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.4 - (show annotations) (download)
Sun Jan 16 06:01:37 2000 UTC (24 years, 3 months ago) by ura
Branch: MAIN
CVS Tags: freewnn-1-1-1-a003
Changes since 1.3: +19 -1 lines
FreeWnn-1.1.1-a003 is released.

1 #! /bin/sh
2
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15 --with-x use the X Window System"
16
17 # Initialize some variables set by options.
18 # The variables have the same names as the options, with
19 # dashes changed to underlines.
20 build=NONE
21 cache_file=./config.cache
22 exec_prefix=NONE
23 host=NONE
24 no_create=
25 nonopt=NONE
26 no_recursion=
27 prefix=NONE
28 program_prefix=NONE
29 program_suffix=NONE
30 program_transform_name=s,x,x,
31 silent=
32 site=
33 srcdir=
34 target=NONE
35 verbose=
36 x_includes=NONE
37 x_libraries=NONE
38 bindir='${exec_prefix}/bin'
39 sbindir='${exec_prefix}/sbin'
40 libexecdir='${exec_prefix}/libexec'
41 datadir='${prefix}/share'
42 sysconfdir='${prefix}/etc'
43 sharedstatedir='${prefix}/com'
44 localstatedir='${prefix}/var'
45 libdir='${exec_prefix}/lib'
46 includedir='${prefix}/include'
47 oldincludedir='/usr/include'
48 infodir='${prefix}/info'
49 mandir='${prefix}/man'
50
51 # Initialize some other variables.
52 subdirs=
53 MFLAGS= MAKEFLAGS=
54 # Maximum number of lines to put in a shell here document.
55 ac_max_here_lines=12
56
57 ac_prev=
58 for ac_option
59 do
60
61 # If the previous option needs an argument, assign it.
62 if test -n "$ac_prev"; then
63 eval "$ac_prev=\$ac_option"
64 ac_prev=
65 continue
66 fi
67
68 case "$ac_option" in
69 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
70 *) ac_optarg= ;;
71 esac
72
73 # Accept the important Cygnus configure options, so we can diagnose typos.
74
75 case "$ac_option" in
76
77 -bindir | --bindir | --bindi | --bind | --bin | --bi)
78 ac_prev=bindir ;;
79 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
80 bindir="$ac_optarg" ;;
81
82 -build | --build | --buil | --bui | --bu)
83 ac_prev=build ;;
84 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
85 build="$ac_optarg" ;;
86
87 -cache-file | --cache-file | --cache-fil | --cache-fi \
88 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
89 ac_prev=cache_file ;;
90 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
91 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
92 cache_file="$ac_optarg" ;;
93
94 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
95 ac_prev=datadir ;;
96 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
97 | --da=*)
98 datadir="$ac_optarg" ;;
99
100 -disable-* | --disable-*)
101 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
102 # Reject names that are not valid shell variable names.
103 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
104 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
105 fi
106 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
107 eval "enable_${ac_feature}=no" ;;
108
109 -enable-* | --enable-*)
110 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
111 # Reject names that are not valid shell variable names.
112 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
113 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
114 fi
115 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
116 case "$ac_option" in
117 *=*) ;;
118 *) ac_optarg=yes ;;
119 esac
120 eval "enable_${ac_feature}='$ac_optarg'" ;;
121
122 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
123 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
124 | --exec | --exe | --ex)
125 ac_prev=exec_prefix ;;
126 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
127 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
128 | --exec=* | --exe=* | --ex=*)
129 exec_prefix="$ac_optarg" ;;
130
131 -gas | --gas | --ga | --g)
132 # Obsolete; use --with-gas.
133 with_gas=yes ;;
134
135 -help | --help | --hel | --he)
136 # Omit some internal or obsolete options to make the list less imposing.
137 # This message is too long to be a string in the A/UX 3.1 sh.
138 cat << EOF
139 Usage: configure [options] [host]
140 Options: [defaults in brackets after descriptions]
141 Configuration:
142 --cache-file=FILE cache test results in FILE
143 --help print this message
144 --no-create do not create output files
145 --quiet, --silent do not print \`checking...' messages
146 --version print the version of autoconf that created configure
147 Directory and file names:
148 --prefix=PREFIX install architecture-independent files in PREFIX
149 [$ac_default_prefix]
150 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
151 [same as prefix]
152 --bindir=DIR user executables in DIR [EPREFIX/bin]
153 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
154 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
155 --datadir=DIR read-only architecture-independent data in DIR
156 [PREFIX/share]
157 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
158 --sharedstatedir=DIR modifiable architecture-independent data in DIR
159 [PREFIX/com]
160 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
161 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
162 --includedir=DIR C header files in DIR [PREFIX/include]
163 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
164 --infodir=DIR info documentation in DIR [PREFIX/info]
165 --mandir=DIR man documentation in DIR [PREFIX/man]
166 --srcdir=DIR find the sources in DIR [configure dir or ..]
167 --program-prefix=PREFIX prepend PREFIX to installed program names
168 --program-suffix=SUFFIX append SUFFIX to installed program names
169 --program-transform-name=PROGRAM
170 run sed PROGRAM on installed program names
171 EOF
172 cat << EOF
173 Host type:
174 --build=BUILD configure for building on BUILD [BUILD=HOST]
175 --host=HOST configure for HOST [guessed]
176 --target=TARGET configure for TARGET [TARGET=HOST]
177 Features and packages:
178 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
179 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
180 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
181 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
182 --x-includes=DIR X include files are in DIR
183 --x-libraries=DIR X library files are in DIR
184 EOF
185 if test -n "$ac_help"; then
186 echo "--enable and --with options recognized:$ac_help"
187 fi
188 exit 0 ;;
189
190 -host | --host | --hos | --ho)
191 ac_prev=host ;;
192 -host=* | --host=* | --hos=* | --ho=*)
193 host="$ac_optarg" ;;
194
195 -includedir | --includedir | --includedi | --included | --include \
196 | --includ | --inclu | --incl | --inc)
197 ac_prev=includedir ;;
198 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
199 | --includ=* | --inclu=* | --incl=* | --inc=*)
200 includedir="$ac_optarg" ;;
201
202 -infodir | --infodir | --infodi | --infod | --info | --inf)
203 ac_prev=infodir ;;
204 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
205 infodir="$ac_optarg" ;;
206
207 -libdir | --libdir | --libdi | --libd)
208 ac_prev=libdir ;;
209 -libdir=* | --libdir=* | --libdi=* | --libd=*)
210 libdir="$ac_optarg" ;;
211
212 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
213 | --libexe | --libex | --libe)
214 ac_prev=libexecdir ;;
215 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
216 | --libexe=* | --libex=* | --libe=*)
217 libexecdir="$ac_optarg" ;;
218
219 -localstatedir | --localstatedir | --localstatedi | --localstated \
220 | --localstate | --localstat | --localsta | --localst \
221 | --locals | --local | --loca | --loc | --lo)
222 ac_prev=localstatedir ;;
223 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
224 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
225 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
226 localstatedir="$ac_optarg" ;;
227
228 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
229 ac_prev=mandir ;;
230 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
231 mandir="$ac_optarg" ;;
232
233 -nfp | --nfp | --nf)
234 # Obsolete; use --without-fp.
235 with_fp=no ;;
236
237 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
238 | --no-cr | --no-c)
239 no_create=yes ;;
240
241 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
242 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
243 no_recursion=yes ;;
244
245 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
246 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
247 | --oldin | --oldi | --old | --ol | --o)
248 ac_prev=oldincludedir ;;
249 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
250 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
251 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
252 oldincludedir="$ac_optarg" ;;
253
254 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
255 ac_prev=prefix ;;
256 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
257 prefix="$ac_optarg" ;;
258
259 -program-prefix | --program-prefix | --program-prefi | --program-pref \
260 | --program-pre | --program-pr | --program-p)
261 ac_prev=program_prefix ;;
262 -program-prefix=* | --program-prefix=* | --program-prefi=* \
263 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
264 program_prefix="$ac_optarg" ;;
265
266 -program-suffix | --program-suffix | --program-suffi | --program-suff \
267 | --program-suf | --program-su | --program-s)
268 ac_prev=program_suffix ;;
269 -program-suffix=* | --program-suffix=* | --program-suffi=* \
270 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
271 program_suffix="$ac_optarg" ;;
272
273 -program-transform-name | --program-transform-name \
274 | --program-transform-nam | --program-transform-na \
275 | --program-transform-n | --program-transform- \
276 | --program-transform | --program-transfor \
277 | --program-transfo | --program-transf \
278 | --program-trans | --program-tran \
279 | --progr-tra | --program-tr | --program-t)
280 ac_prev=program_transform_name ;;
281 -program-transform-name=* | --program-transform-name=* \
282 | --program-transform-nam=* | --program-transform-na=* \
283 | --program-transform-n=* | --program-transform-=* \
284 | --program-transform=* | --program-transfor=* \
285 | --program-transfo=* | --program-transf=* \
286 | --program-trans=* | --program-tran=* \
287 | --progr-tra=* | --program-tr=* | --program-t=*)
288 program_transform_name="$ac_optarg" ;;
289
290 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
291 | -silent | --silent | --silen | --sile | --sil)
292 silent=yes ;;
293
294 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
295 ac_prev=sbindir ;;
296 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
297 | --sbi=* | --sb=*)
298 sbindir="$ac_optarg" ;;
299
300 -sharedstatedir | --sharedstatedir | --sharedstatedi \
301 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
302 | --sharedst | --shareds | --shared | --share | --shar \
303 | --sha | --sh)
304 ac_prev=sharedstatedir ;;
305 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
306 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
307 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
308 | --sha=* | --sh=*)
309 sharedstatedir="$ac_optarg" ;;
310
311 -site | --site | --sit)
312 ac_prev=site ;;
313 -site=* | --site=* | --sit=*)
314 site="$ac_optarg" ;;
315
316 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
317 ac_prev=srcdir ;;
318 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
319 srcdir="$ac_optarg" ;;
320
321 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
322 | --syscon | --sysco | --sysc | --sys | --sy)
323 ac_prev=sysconfdir ;;
324 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
325 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
326 sysconfdir="$ac_optarg" ;;
327
328 -target | --target | --targe | --targ | --tar | --ta | --t)
329 ac_prev=target ;;
330 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
331 target="$ac_optarg" ;;
332
333 -v | -verbose | --verbose | --verbos | --verbo | --verb)
334 verbose=yes ;;
335
336 -version | --version | --versio | --versi | --vers)
337 echo "configure generated by autoconf version 2.12"
338 exit 0 ;;
339
340 -with-* | --with-*)
341 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
342 # Reject names that are not valid shell variable names.
343 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
344 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
345 fi
346 ac_package=`echo $ac_package| sed 's/-/_/g'`
347 case "$ac_option" in
348 *=*) ;;
349 *) ac_optarg=yes ;;
350 esac
351 eval "with_${ac_package}='$ac_optarg'" ;;
352
353 -without-* | --without-*)
354 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
355 # Reject names that are not valid shell variable names.
356 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
357 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
358 fi
359 ac_package=`echo $ac_package| sed 's/-/_/g'`
360 eval "with_${ac_package}=no" ;;
361
362 --x)
363 # Obsolete; use --with-x.
364 with_x=yes ;;
365
366 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
367 | --x-incl | --x-inc | --x-in | --x-i)
368 ac_prev=x_includes ;;
369 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
370 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
371 x_includes="$ac_optarg" ;;
372
373 -x-libraries | --x-libraries | --x-librarie | --x-librari \
374 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
375 ac_prev=x_libraries ;;
376 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
377 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
378 x_libraries="$ac_optarg" ;;
379
380 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
381 ;;
382
383 *)
384 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
385 echo "configure: warning: $ac_option: invalid host type" 1>&2
386 fi
387 if test "x$nonopt" != xNONE; then
388 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
389 fi
390 nonopt="$ac_option"
391 ;;
392
393 esac
394 done
395
396 if test -n "$ac_prev"; then
397 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
398 fi
399
400 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
401
402 # File descriptor usage:
403 # 0 standard input
404 # 1 file creation
405 # 2 errors and warnings
406 # 3 some systems may open it to /dev/tty
407 # 4 used on the Kubota Titan
408 # 6 checking for... messages and results
409 # 5 compiler messages saved in config.log
410 if test "$silent" = yes; then
411 exec 6>/dev/null
412 else
413 exec 6>&1
414 fi
415 exec 5>./config.log
416
417 echo "\
418 This file contains any messages produced by compilers while
419 running configure, to aid debugging if configure makes a mistake.
420 " 1>&5
421
422 # Strip out --no-create and --no-recursion so they do not pile up.
423 # Also quote any args containing shell metacharacters.
424 ac_configure_args=
425 for ac_arg
426 do
427 case "$ac_arg" in
428 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
429 | --no-cr | --no-c) ;;
430 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
431 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
432 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
433 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
434 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
435 esac
436 done
437
438 # NLS nuisances.
439 # Only set these to C if already set. These must not be set unconditionally
440 # because not all systems understand e.g. LANG=C (notably SCO).
441 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
442 # Non-C LC_CTYPE values break the ctype check.
443 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
444 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
445 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
446 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
447
448 # confdefs.h avoids OS command line length limits that DEFS can exceed.
449 rm -rf conftest* confdefs.h
450 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
451 echo > confdefs.h
452
453 # A filename unique to this package, relative to the directory that
454 # configure is in, which we can look for to find out if srcdir is correct.
455 ac_unique_file=Wnn/conv/cvt_head.h
456
457 # Find the source files, if location was not specified.
458 if test -z "$srcdir"; then
459 ac_srcdir_defaulted=yes
460 # Try the directory containing this script, then its parent.
461 ac_prog=$0
462 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
463 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
464 srcdir=$ac_confdir
465 if test ! -r $srcdir/$ac_unique_file; then
466 srcdir=..
467 fi
468 else
469 ac_srcdir_defaulted=no
470 fi
471 if test ! -r $srcdir/$ac_unique_file; then
472 if test "$ac_srcdir_defaulted" = yes; then
473 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
474 else
475 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
476 fi
477 fi
478 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
479
480 # Prefer explicitly selected file to automatically selected ones.
481 if test -z "$CONFIG_SITE"; then
482 if test "x$prefix" != xNONE; then
483 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
484 else
485 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
486 fi
487 fi
488 for ac_site_file in $CONFIG_SITE; do
489 if test -r "$ac_site_file"; then
490 echo "loading site script $ac_site_file"
491 . "$ac_site_file"
492 fi
493 done
494
495 if test -r "$cache_file"; then
496 echo "loading cache $cache_file"
497 . $cache_file
498 else
499 echo "creating cache $cache_file"
500 > $cache_file
501 fi
502
503 ac_ext=c
504 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
505 ac_cpp='$CPP $CPPFLAGS'
506 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
507 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
508 cross_compiling=$ac_cv_prog_cc_cross
509
510 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
511 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
512 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
513 ac_n= ac_c='
514 ' ac_t=' '
515 else
516 ac_n=-n ac_c= ac_t=
517 fi
518 else
519 ac_n= ac_c='\c' ac_t=
520 fi
521
522
523
524 # Extract the first word of "gcc", so it can be a program name with args.
525 set dummy gcc; ac_word=$2
526 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
527 echo "configure:528: checking for $ac_word" >&5
528 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
529 echo $ac_n "(cached) $ac_c" 1>&6
530 else
531 if test -n "$CC"; then
532 ac_cv_prog_CC="$CC" # Let the user override the test.
533 else
534 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
535 for ac_dir in $PATH; do
536 test -z "$ac_dir" && ac_dir=.
537 if test -f $ac_dir/$ac_word; then
538 ac_cv_prog_CC="gcc"
539 break
540 fi
541 done
542 IFS="$ac_save_ifs"
543 fi
544 fi
545 CC="$ac_cv_prog_CC"
546 if test -n "$CC"; then
547 echo "$ac_t""$CC" 1>&6
548 else
549 echo "$ac_t""no" 1>&6
550 fi
551
552 if test -z "$CC"; then
553 # Extract the first word of "cc", so it can be a program name with args.
554 set dummy cc; ac_word=$2
555 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
556 echo "configure:557: checking for $ac_word" >&5
557 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
558 echo $ac_n "(cached) $ac_c" 1>&6
559 else
560 if test -n "$CC"; then
561 ac_cv_prog_CC="$CC" # Let the user override the test.
562 else
563 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
564 ac_prog_rejected=no
565 for ac_dir in $PATH; do
566 test -z "$ac_dir" && ac_dir=.
567 if test -f $ac_dir/$ac_word; then
568 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
569 ac_prog_rejected=yes
570 continue
571 fi
572 ac_cv_prog_CC="cc"
573 break
574 fi
575 done
576 IFS="$ac_save_ifs"
577 if test $ac_prog_rejected = yes; then
578 # We found a bogon in the path, so make sure we never use it.
579 set dummy $ac_cv_prog_CC
580 shift
581 if test $# -gt 0; then
582 # We chose a different compiler from the bogus one.
583 # However, it has the same basename, so the bogon will be chosen
584 # first if we set CC to just the basename; use the full file name.
585 shift
586 set dummy "$ac_dir/$ac_word" "$@"
587 shift
588 ac_cv_prog_CC="$@"
589 fi
590 fi
591 fi
592 fi
593 CC="$ac_cv_prog_CC"
594 if test -n "$CC"; then
595 echo "$ac_t""$CC" 1>&6
596 else
597 echo "$ac_t""no" 1>&6
598 fi
599
600 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
601 fi
602
603 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
604 echo "configure:605: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
605
606 ac_ext=c
607 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
608 ac_cpp='$CPP $CPPFLAGS'
609 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
610 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
611 cross_compiling=$ac_cv_prog_cc_cross
612
613 cat > conftest.$ac_ext <<EOF
614 #line 615 "configure"
615 #include "confdefs.h"
616 main(){return(0);}
617 EOF
618 if { (eval echo configure:619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
619 ac_cv_prog_cc_works=yes
620 # If we can't run a trivial program, we are probably using a cross compiler.
621 if (./conftest; exit) 2>/dev/null; then
622 ac_cv_prog_cc_cross=no
623 else
624 ac_cv_prog_cc_cross=yes
625 fi
626 else
627 echo "configure: failed program was:" >&5
628 cat conftest.$ac_ext >&5
629 ac_cv_prog_cc_works=no
630 fi
631 rm -fr conftest*
632
633 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
634 if test $ac_cv_prog_cc_works = no; then
635 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
636 fi
637 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
638 echo "configure:639: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
639 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
640 cross_compiling=$ac_cv_prog_cc_cross
641
642 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
643 echo "configure:644: checking whether we are using GNU C" >&5
644 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
645 echo $ac_n "(cached) $ac_c" 1>&6
646 else
647 cat > conftest.c <<EOF
648 #ifdef __GNUC__
649 yes;
650 #endif
651 EOF
652 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:653: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
653 ac_cv_prog_gcc=yes
654 else
655 ac_cv_prog_gcc=no
656 fi
657 fi
658
659 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
660
661 if test $ac_cv_prog_gcc = yes; then
662 GCC=yes
663 ac_test_CFLAGS="${CFLAGS+set}"
664 ac_save_CFLAGS="$CFLAGS"
665 CFLAGS=
666 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
667 echo "configure:668: checking whether ${CC-cc} accepts -g" >&5
668 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
669 echo $ac_n "(cached) $ac_c" 1>&6
670 else
671 echo 'void f(){}' > conftest.c
672 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
673 ac_cv_prog_cc_g=yes
674 else
675 ac_cv_prog_cc_g=no
676 fi
677 rm -f conftest*
678
679 fi
680
681 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
682 if test "$ac_test_CFLAGS" = set; then
683 CFLAGS="$ac_save_CFLAGS"
684 elif test $ac_cv_prog_cc_g = yes; then
685 CFLAGS="-g -O2"
686 else
687 CFLAGS="-O2"
688 fi
689 else
690 GCC=
691 test "${CFLAGS+set}" = set || CFLAGS="-g"
692 fi
693
694 echo $ac_n "checking for cpp""... $ac_c" 1>&6
695 echo "configure:696: checking for cpp" >&5
696 hosttype=`uname`
697 CCOPTIONS=""
698 CDEBUGFLAGS=-O
699 case $hosttype in
700 "Linux")
701 CCOPTIONS="-Dlinux -D_POSIX_SOURCE -D_BSD_SOURCE"
702 CDEBUGFLAGS="-O2 -fno-strength-reduce"
703 if test -x /lib/cpp; then
704 CPP=/lib/cpp
705 fi
706 ;;
707 "FreeBSD"|"NetBSD"|"OpenBSD")
708 CCOPTIONS="-DCSRG_BASED"
709 CDEBUGFLAGS="-O2 -fno-strength-reduce"
710 if test -x /usr/libexec/cpp; then
711 CPP=/usr/libexec/cpp
712 fi
713 ;;
714 "BSD/OS")
715 CCOPTIONS="-DCSRG_BASED"
716 CDEBUGFLAGS="-O2 -fno-strength-reduce"
717 if test -x /usr/bin/cpp; then
718 CPP=/usr/bin/cpp
719 fi
720 ;;
721 "SunOS")
722 case `uname -r` in
723 4.*)
724 if test $CC = gcc; then
725 CDEBUGFLAGS=-O2
726 CCOPTIONS="-Dsun -Dsparc"
727 else
728 CDEBUGFLAGS=-O4
729 CCOPTIONS=""
730 fi
731 CPP=/usr/lib/cpp
732 ;;
733 5.*)
734 if test $CC = gcc; then
735 CDEBUGFLAGS=-O2
736 CCOPTIONS="-Dsun -Dsparc -DSVR4 -DSYSV"
737 else
738 CCOPTIONS="-Xc -xF -xcg92 -Dsun -Dsparc -DSVR4 -DSYSV"
739 fi
740 if test -x /usr/ccs/lib/cpp; then
741 CPP=/usr/ccs/lib/cpp
742 fi
743 ;;
744 *)
745 { echo "configure: error: "This system is not supported."" 1>&2; exit 1; }
746 ;;
747 esac
748 ;;
749 "HP-UX")
750 if test $CC = gcc; then
751 CDEBUGFLAGS=-O2
752 CCOPTIONS="-Dhpux -DSYSV"
753 else
754 CCOPTIONS="-Ae -Dhpux -DSYSV"
755 fi
756 case `uname -r` in
757 A.09.*)
758 if test -x /lib/cpp; then
759 CPP=/lib/cpp
760 fi
761 ;;
762 *)
763 { echo "configure: error: "This system is not supported."" 1>&2; exit 1; }
764 ;;
765 esac
766 ;;
767 *)
768 { echo "configure: error: "This system is not supported."" 1>&2; exit 1; }
769 ;;
770 esac
771 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
772 echo "configure:731: checking how to run the C preprocessor" >&5
773 # On Suns, sometimes $CPP names a directory.
774 if test -n "$CPP" && test -d "$CPP"; then
775 CPP=
776 fi
777 if test -z "$CPP"; then
778 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
779 echo $ac_n "(cached) $ac_c" 1>&6
780 else
781 # This must be in double quotes, not single quotes, because CPP may get
782 # substituted into the Makefile and "${CC-cc}" will confuse make.
783 CPP="${CC-cc} -E"
784 # On the NeXT, cc -E runs the code through the compiler's parser,
785 # not just through cpp.
786 cat > conftest.$ac_ext <<EOF
787 #line 746 "configure"
788 #include "confdefs.h"
789 #include <assert.h>
790 Syntax Error
791 EOF
792 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
793 { (eval echo configure:752: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
794 ac_err=`grep -v '^ *+' conftest.out`
795 if test -z "$ac_err"; then
796 :
797 else
798 echo "$ac_err" >&5
799 echo "configure: failed program was:" >&5
800 cat conftest.$ac_ext >&5
801 rm -rf conftest*
802 CPP="${CC-cc} -E -traditional-cpp"
803 cat > conftest.$ac_ext <<EOF
804 #line 763 "configure"
805 #include "confdefs.h"
806 #include <assert.h>
807 Syntax Error
808 EOF
809 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
810 { (eval echo configure:769: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
811 ac_err=`grep -v '^ *+' conftest.out`
812 if test -z "$ac_err"; then
813 :
814 else
815 echo "$ac_err" >&5
816 echo "configure: failed program was:" >&5
817 cat conftest.$ac_ext >&5
818 rm -rf conftest*
819 CPP=/lib/cpp
820 fi
821 rm -f conftest*
822 fi
823 rm -f conftest*
824 ac_cv_prog_CPP="$CPP"
825 fi
826 CPP="$ac_cv_prog_CPP"
827 else
828 ac_cv_prog_CPP="$CPP"
829 fi
830 echo "$ac_t""$CPP" 1>&6
831
832
833 for ac_prog in 'bison -y' byacc
834 do
835 # Extract the first word of "$ac_prog", so it can be a program name with args.
836 set dummy $ac_prog; ac_word=$2
837 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
838 echo "configure:797: checking for $ac_word" >&5
839 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
840 echo $ac_n "(cached) $ac_c" 1>&6
841 else
842 if test -n "$YACC"; then
843 ac_cv_prog_YACC="$YACC" # Let the user override the test.
844 else
845 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
846 for ac_dir in $PATH; do
847 test -z "$ac_dir" && ac_dir=.
848 if test -f $ac_dir/$ac_word; then
849 ac_cv_prog_YACC="$ac_prog"
850 break
851 fi
852 done
853 IFS="$ac_save_ifs"
854 fi
855 fi
856 YACC="$ac_cv_prog_YACC"
857 if test -n "$YACC"; then
858 echo "$ac_t""$YACC" 1>&6
859 else
860 echo "$ac_t""no" 1>&6
861 fi
862
863 test -n "$YACC" && break
864 done
865 test -n "$YACC" || YACC="yacc"
866
867 # Extract the first word of "flex", so it can be a program name with args.
868 set dummy flex; ac_word=$2
869 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
870 echo "configure:829: checking for $ac_word" >&5
871 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
872 echo $ac_n "(cached) $ac_c" 1>&6
873 else
874 if test -n "$LEX"; then
875 ac_cv_prog_LEX="$LEX" # Let the user override the test.
876 else
877 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
878 for ac_dir in $PATH; do
879 test -z "$ac_dir" && ac_dir=.
880 if test -f $ac_dir/$ac_word; then
881 ac_cv_prog_LEX="flex"
882 break
883 fi
884 done
885 IFS="$ac_save_ifs"
886 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
887 fi
888 fi
889 LEX="$ac_cv_prog_LEX"
890 if test -n "$LEX"; then
891 echo "$ac_t""$LEX" 1>&6
892 else
893 echo "$ac_t""no" 1>&6
894 fi
895
896 if test -z "$LEXLIB"
897 then
898 case "$LEX" in
899 flex*) ac_lib=fl ;;
900 *) ac_lib=l ;;
901 esac
902 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
903 echo "configure:862: checking for yywrap in -l$ac_lib" >&5
904 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
905 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
906 echo $ac_n "(cached) $ac_c" 1>&6
907 else
908 ac_save_LIBS="$LIBS"
909 LIBS="-l$ac_lib $LIBS"
910 cat > conftest.$ac_ext <<EOF
911 #line 870 "configure"
912 #include "confdefs.h"
913 /* Override any gcc2 internal prototype to avoid an error. */
914 /* We use char because int might match the return type of a gcc2
915 builtin and then its argument prototype would still apply. */
916 char yywrap();
917
918 int main() {
919 yywrap()
920 ; return 0; }
921 EOF
922 if { (eval echo configure:881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
923 rm -rf conftest*
924 eval "ac_cv_lib_$ac_lib_var=yes"
925 else
926 echo "configure: failed program was:" >&5
927 cat conftest.$ac_ext >&5
928 rm -rf conftest*
929 eval "ac_cv_lib_$ac_lib_var=no"
930 fi
931 rm -f conftest*
932 LIBS="$ac_save_LIBS"
933
934 fi
935 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
936 echo "$ac_t""yes" 1>&6
937 LEXLIB="-l$ac_lib"
938 else
939 echo "$ac_t""no" 1>&6
940 fi
941
942 fi
943
944 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
945 echo "configure:904: checking whether ln -s works" >&5
946 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
947 echo $ac_n "(cached) $ac_c" 1>&6
948 else
949 rm -f conftestdata
950 if ln -s X conftestdata 2>/dev/null
951 then
952 rm -f conftestdata
953 ac_cv_prog_LN_S="ln -s"
954 else
955 ac_cv_prog_LN_S=ln
956 fi
957 fi
958 LN_S="$ac_cv_prog_LN_S"
959 if test "$ac_cv_prog_LN_S" = "ln -s"; then
960 echo "$ac_t""yes" 1>&6
961 else
962 echo "$ac_t""no" 1>&6
963 fi
964
965 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
966 echo "configure:925: checking whether ${MAKE-make} sets \${MAKE}" >&5
967 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
968 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
969 echo $ac_n "(cached) $ac_c" 1>&6
970 else
971 cat > conftestmake <<\EOF
972 all:
973 @echo 'ac_maketemp="${MAKE}"'
974 EOF
975 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
976 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
977 if test -n "$ac_maketemp"; then
978 eval ac_cv_prog_make_${ac_make}_set=yes
979 else
980 eval ac_cv_prog_make_${ac_make}_set=no
981 fi
982 rm -f conftestmake
983 fi
984 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
985 echo "$ac_t""yes" 1>&6
986 SET_MAKE=
987 else
988 echo "$ac_t""no" 1>&6
989 SET_MAKE="MAKE=${MAKE-make}"
990 fi
991
992 # Extract the first word of "ranlib", so it can be a program name with args.
993 set dummy ranlib; ac_word=$2
994 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
995 echo "configure:954: checking for $ac_word" >&5
996 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
997 echo $ac_n "(cached) $ac_c" 1>&6
998 else
999 if test -n "$RANLIB"; then
1000 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1001 else
1002 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1003 for ac_dir in $PATH; do
1004 test -z "$ac_dir" && ac_dir=.
1005 if test -f $ac_dir/$ac_word; then
1006 ac_cv_prog_RANLIB="ranlib"
1007 break
1008 fi
1009 done
1010 IFS="$ac_save_ifs"
1011 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1012 fi
1013 fi
1014 RANLIB="$ac_cv_prog_RANLIB"
1015 if test -n "$RANLIB"; then
1016 echo "$ac_t""$RANLIB" 1>&6
1017 else
1018 echo "$ac_t""no" 1>&6
1019 fi
1020
1021
1022
1023
1024 echo $ac_n "checking for main in -lFS""... $ac_c" 1>&6
1025 echo "configure:984: checking for main in -lFS" >&5
1026 ac_lib_var=`echo FS'_'main | sed 'y%./+-%__p_%'`
1027 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1028 echo $ac_n "(cached) $ac_c" 1>&6
1029 else
1030 ac_save_LIBS="$LIBS"
1031 LIBS="-lFS $LIBS"
1032 cat > conftest.$ac_ext <<EOF
1033 #line 992 "configure"
1034 #include "confdefs.h"
1035
1036 int main() {
1037 main()
1038 ; return 0; }
1039 EOF
1040 if { (eval echo configure:999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1041 rm -rf conftest*
1042 eval "ac_cv_lib_$ac_lib_var=yes"
1043 else
1044 echo "configure: failed program was:" >&5
1045 cat conftest.$ac_ext >&5
1046 rm -rf conftest*
1047 eval "ac_cv_lib_$ac_lib_var=no"
1048 fi
1049 rm -f conftest*
1050 LIBS="$ac_save_LIBS"
1051
1052 fi
1053 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1054 echo "$ac_t""yes" 1>&6
1055 ac_tr_lib=HAVE_LIB`echo FS | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1056 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1057 cat >> confdefs.h <<EOF
1058 #define $ac_tr_lib 1
1059 EOF
1060
1061 LIBS="-lFS $LIBS"
1062
1063 else
1064 echo "$ac_t""no" 1>&6
1065 fi
1066
1067 echo $ac_n "checking for main in -lFresco""... $ac_c" 1>&6
1068 echo "configure:1027: checking for main in -lFresco" >&5
1069 ac_lib_var=`echo Fresco'_'main | sed 'y%./+-%__p_%'`
1070 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1071 echo $ac_n "(cached) $ac_c" 1>&6
1072 else
1073 ac_save_LIBS="$LIBS"
1074 LIBS="-lFresco $LIBS"
1075 cat > conftest.$ac_ext <<EOF
1076 #line 1035 "configure"
1077 #include "confdefs.h"
1078
1079 int main() {
1080 main()
1081 ; return 0; }
1082 EOF
1083 if { (eval echo configure:1042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1084 rm -rf conftest*
1085 eval "ac_cv_lib_$ac_lib_var=yes"
1086 else
1087 echo "configure: failed program was:" >&5
1088 cat conftest.$ac_ext >&5
1089 rm -rf conftest*
1090 eval "ac_cv_lib_$ac_lib_var=no"
1091 fi
1092 rm -f conftest*
1093 LIBS="$ac_save_LIBS"
1094
1095 fi
1096 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1097 echo "$ac_t""yes" 1>&6
1098 ac_tr_lib=HAVE_LIB`echo Fresco | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1099 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1100 cat >> confdefs.h <<EOF
1101 #define $ac_tr_lib 1
1102 EOF
1103
1104 LIBS="-lFresco $LIBS"
1105
1106 else
1107 echo "$ac_t""no" 1>&6
1108 fi
1109
1110 echo $ac_n "checking for main in -lICE""... $ac_c" 1>&6
1111 echo "configure:1070: checking for main in -lICE" >&5
1112 ac_lib_var=`echo ICE'_'main | sed 'y%./+-%__p_%'`
1113 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1114 echo $ac_n "(cached) $ac_c" 1>&6
1115 else
1116 ac_save_LIBS="$LIBS"
1117 LIBS="-lICE $LIBS"
1118 cat > conftest.$ac_ext <<EOF
1119 #line 1078 "configure"
1120 #include "confdefs.h"
1121
1122 int main() {
1123 main()
1124 ; return 0; }
1125 EOF
1126 if { (eval echo configure:1085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1127 rm -rf conftest*
1128 eval "ac_cv_lib_$ac_lib_var=yes"
1129 else
1130 echo "configure: failed program was:" >&5
1131 cat conftest.$ac_ext >&5
1132 rm -rf conftest*
1133 eval "ac_cv_lib_$ac_lib_var=no"
1134 fi
1135 rm -f conftest*
1136 LIBS="$ac_save_LIBS"
1137
1138 fi
1139 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1140 echo "$ac_t""yes" 1>&6
1141 ac_tr_lib=HAVE_LIB`echo ICE | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1142 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1143 cat >> confdefs.h <<EOF
1144 #define $ac_tr_lib 1
1145 EOF
1146
1147 LIBS="-lICE $LIBS"
1148
1149 else
1150 echo "$ac_t""no" 1>&6
1151 fi
1152
1153 echo $ac_n "checking for main in -lPEX5""... $ac_c" 1>&6
1154 echo "configure:1113: checking for main in -lPEX5" >&5
1155 ac_lib_var=`echo PEX5'_'main | sed 'y%./+-%__p_%'`
1156 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1157 echo $ac_n "(cached) $ac_c" 1>&6
1158 else
1159 ac_save_LIBS="$LIBS"
1160 LIBS="-lPEX5 $LIBS"
1161 cat > conftest.$ac_ext <<EOF
1162 #line 1121 "configure"
1163 #include "confdefs.h"
1164
1165 int main() {
1166 main()
1167 ; return 0; }
1168 EOF
1169 if { (eval echo configure:1128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1170 rm -rf conftest*
1171 eval "ac_cv_lib_$ac_lib_var=yes"
1172 else
1173 echo "configure: failed program was:" >&5
1174 cat conftest.$ac_ext >&5
1175 rm -rf conftest*
1176 eval "ac_cv_lib_$ac_lib_var=no"
1177 fi
1178 rm -f conftest*
1179 LIBS="$ac_save_LIBS"
1180
1181 fi
1182 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1183 echo "$ac_t""yes" 1>&6
1184 ac_tr_lib=HAVE_LIB`echo PEX5 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1185 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1186 cat >> confdefs.h <<EOF
1187 #define $ac_tr_lib 1
1188 EOF
1189
1190 LIBS="-lPEX5 $LIBS"
1191
1192 else
1193 echo "$ac_t""no" 1>&6
1194 fi
1195
1196 echo $ac_n "checking for main in -lSM""... $ac_c" 1>&6
1197 echo "configure:1156: checking for main in -lSM" >&5
1198 ac_lib_var=`echo SM'_'main | sed 'y%./+-%__p_%'`
1199 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1200 echo $ac_n "(cached) $ac_c" 1>&6
1201 else
1202 ac_save_LIBS="$LIBS"
1203 LIBS="-lSM $LIBS"
1204 cat > conftest.$ac_ext <<EOF
1205 #line 1164 "configure"
1206 #include "confdefs.h"
1207
1208 int main() {
1209 main()
1210 ; return 0; }
1211 EOF
1212 if { (eval echo configure:1171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1213 rm -rf conftest*
1214 eval "ac_cv_lib_$ac_lib_var=yes"
1215 else
1216 echo "configure: failed program was:" >&5
1217 cat conftest.$ac_ext >&5
1218 rm -rf conftest*
1219 eval "ac_cv_lib_$ac_lib_var=no"
1220 fi
1221 rm -f conftest*
1222 LIBS="$ac_save_LIBS"
1223
1224 fi
1225 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1226 echo "$ac_t""yes" 1>&6
1227 ac_tr_lib=HAVE_LIB`echo SM | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1228 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1229 cat >> confdefs.h <<EOF
1230 #define $ac_tr_lib 1
1231 EOF
1232
1233 LIBS="-lSM $LIBS"
1234
1235 else
1236 echo "$ac_t""no" 1>&6
1237 fi
1238
1239 echo $ac_n "checking for main in -lX11""... $ac_c" 1>&6
1240 echo "configure:1199: checking for main in -lX11" >&5
1241 ac_lib_var=`echo X11'_'main | sed 'y%./+-%__p_%'`
1242 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1243 echo $ac_n "(cached) $ac_c" 1>&6
1244 else
1245 ac_save_LIBS="$LIBS"
1246 LIBS="-lX11 $LIBS"
1247 cat > conftest.$ac_ext <<EOF
1248 #line 1207 "configure"
1249 #include "confdefs.h"
1250
1251 int main() {
1252 main()
1253 ; return 0; }
1254 EOF
1255 if { (eval echo configure:1214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1256 rm -rf conftest*
1257 eval "ac_cv_lib_$ac_lib_var=yes"
1258 else
1259 echo "configure: failed program was:" >&5
1260 cat conftest.$ac_ext >&5
1261 rm -rf conftest*
1262 eval "ac_cv_lib_$ac_lib_var=no"
1263 fi
1264 rm -f conftest*
1265 LIBS="$ac_save_LIBS"
1266
1267 fi
1268 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1269 echo "$ac_t""yes" 1>&6
1270 ac_tr_lib=HAVE_LIB`echo X11 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1271 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1272 cat >> confdefs.h <<EOF
1273 #define $ac_tr_lib 1
1274 EOF
1275
1276 LIBS="-lX11 $LIBS"
1277
1278 else
1279 echo "$ac_t""no" 1>&6
1280 fi
1281
1282 echo $ac_n "checking for main in -lXIE""... $ac_c" 1>&6
1283 echo "configure:1242: checking for main in -lXIE" >&5
1284 ac_lib_var=`echo XIE'_'main | sed 'y%./+-%__p_%'`
1285 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1286 echo $ac_n "(cached) $ac_c" 1>&6
1287 else
1288 ac_save_LIBS="$LIBS"
1289 LIBS="-lXIE $LIBS"
1290 cat > conftest.$ac_ext <<EOF
1291 #line 1250 "configure"
1292 #include "confdefs.h"
1293
1294 int main() {
1295 main()
1296 ; return 0; }
1297 EOF
1298 if { (eval echo configure:1257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1299 rm -rf conftest*
1300 eval "ac_cv_lib_$ac_lib_var=yes"
1301 else
1302 echo "configure: failed program was:" >&5
1303 cat conftest.$ac_ext >&5
1304 rm -rf conftest*
1305 eval "ac_cv_lib_$ac_lib_var=no"
1306 fi
1307 rm -f conftest*
1308 LIBS="$ac_save_LIBS"
1309
1310 fi
1311 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1312 echo "$ac_t""yes" 1>&6
1313 ac_tr_lib=HAVE_LIB`echo XIE | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1314 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1315 cat >> confdefs.h <<EOF
1316 #define $ac_tr_lib 1
1317 EOF
1318
1319 LIBS="-lXIE $LIBS"
1320
1321 else
1322 echo "$ac_t""no" 1>&6
1323 fi
1324
1325 echo $ac_n "checking for main in -lXau""... $ac_c" 1>&6
1326 echo "configure:1285: checking for main in -lXau" >&5
1327 ac_lib_var=`echo Xau'_'main | sed 'y%./+-%__p_%'`
1328 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1329 echo $ac_n "(cached) $ac_c" 1>&6
1330 else
1331 ac_save_LIBS="$LIBS"
1332 LIBS="-lXau $LIBS"
1333 cat > conftest.$ac_ext <<EOF
1334 #line 1293 "configure"
1335 #include "confdefs.h"
1336
1337 int main() {
1338 main()
1339 ; return 0; }
1340 EOF
1341 if { (eval echo configure:1300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1342 rm -rf conftest*
1343 eval "ac_cv_lib_$ac_lib_var=yes"
1344 else
1345 echo "configure: failed program was:" >&5
1346 cat conftest.$ac_ext >&5
1347 rm -rf conftest*
1348 eval "ac_cv_lib_$ac_lib_var=no"
1349 fi
1350 rm -f conftest*
1351 LIBS="$ac_save_LIBS"
1352
1353 fi
1354 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1355 echo "$ac_t""yes" 1>&6
1356 ac_tr_lib=HAVE_LIB`echo Xau | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1357 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1358 cat >> confdefs.h <<EOF
1359 #define $ac_tr_lib 1
1360 EOF
1361
1362 LIBS="-lXau $LIBS"
1363
1364 else
1365 echo "$ac_t""no" 1>&6
1366 fi
1367
1368 echo $ac_n "checking for main in -lXaw""... $ac_c" 1>&6
1369 echo "configure:1328: checking for main in -lXaw" >&5
1370 ac_lib_var=`echo Xaw'_'main | sed 'y%./+-%__p_%'`
1371 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1372 echo $ac_n "(cached) $ac_c" 1>&6
1373 else
1374 ac_save_LIBS="$LIBS"
1375 LIBS="-lXaw $LIBS"
1376 cat > conftest.$ac_ext <<EOF
1377 #line 1336 "configure"
1378 #include "confdefs.h"
1379
1380 int main() {
1381 main()
1382 ; return 0; }
1383 EOF
1384 if { (eval echo configure:1343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1385 rm -rf conftest*
1386 eval "ac_cv_lib_$ac_lib_var=yes"
1387 else
1388 echo "configure: failed program was:" >&5
1389 cat conftest.$ac_ext >&5
1390 rm -rf conftest*
1391 eval "ac_cv_lib_$ac_lib_var=no"
1392 fi
1393 rm -f conftest*
1394 LIBS="$ac_save_LIBS"
1395
1396 fi
1397 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1398 echo "$ac_t""yes" 1>&6
1399 ac_tr_lib=HAVE_LIB`echo Xaw | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1400 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1401 cat >> confdefs.h <<EOF
1402 #define $ac_tr_lib 1
1403 EOF
1404
1405 LIBS="-lXaw $LIBS"
1406
1407 else
1408 echo "$ac_t""no" 1>&6
1409 fi
1410
1411 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
1412 echo "configure:1371: checking for main in -lXbsd" >&5
1413 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
1414 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1415 echo $ac_n "(cached) $ac_c" 1>&6
1416 else
1417 ac_save_LIBS="$LIBS"
1418 LIBS="-lXbsd $LIBS"
1419 cat > conftest.$ac_ext <<EOF
1420 #line 1379 "configure"
1421 #include "confdefs.h"
1422
1423 int main() {
1424 main()
1425 ; return 0; }
1426 EOF
1427 if { (eval echo configure:1386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1428 rm -rf conftest*
1429 eval "ac_cv_lib_$ac_lib_var=yes"
1430 else
1431 echo "configure: failed program was:" >&5
1432 cat conftest.$ac_ext >&5
1433 rm -rf conftest*
1434 eval "ac_cv_lib_$ac_lib_var=no"
1435 fi
1436 rm -f conftest*
1437 LIBS="$ac_save_LIBS"
1438
1439 fi
1440 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1441 echo "$ac_t""yes" 1>&6
1442 ac_tr_lib=HAVE_LIB`echo Xbsd | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1443 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1444 cat >> confdefs.h <<EOF
1445 #define $ac_tr_lib 1
1446 EOF
1447
1448 LIBS="-lXbsd $LIBS"
1449
1450 else
1451 echo "$ac_t""no" 1>&6
1452 fi
1453
1454 echo $ac_n "checking for main in -lXdmcp""... $ac_c" 1>&6
1455 echo "configure:1414: checking for main in -lXdmcp" >&5
1456 ac_lib_var=`echo Xdmcp'_'main | sed 'y%./+-%__p_%'`
1457 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1458 echo $ac_n "(cached) $ac_c" 1>&6
1459 else
1460 ac_save_LIBS="$LIBS"
1461 LIBS="-lXdmcp $LIBS"
1462 cat > conftest.$ac_ext <<EOF
1463 #line 1422 "configure"
1464 #include "confdefs.h"
1465
1466 int main() {
1467 main()
1468 ; return 0; }
1469 EOF
1470 if { (eval echo configure:1429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1471 rm -rf conftest*
1472 eval "ac_cv_lib_$ac_lib_var=yes"
1473 else
1474 echo "configure: failed program was:" >&5
1475 cat conftest.$ac_ext >&5
1476 rm -rf conftest*
1477 eval "ac_cv_lib_$ac_lib_var=no"
1478 fi
1479 rm -f conftest*
1480 LIBS="$ac_save_LIBS"
1481
1482 fi
1483 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1484 echo "$ac_t""yes" 1>&6
1485 ac_tr_lib=HAVE_LIB`echo Xdmcp | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1486 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1487 cat >> confdefs.h <<EOF
1488 #define $ac_tr_lib 1
1489 EOF
1490
1491 LIBS="-lXdmcp $LIBS"
1492
1493 else
1494 echo "$ac_t""no" 1>&6
1495 fi
1496
1497 echo $ac_n "checking for main in -lXext""... $ac_c" 1>&6
1498 echo "configure:1457: checking for main in -lXext" >&5
1499 ac_lib_var=`echo Xext'_'main | sed 'y%./+-%__p_%'`
1500 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1501 echo $ac_n "(cached) $ac_c" 1>&6
1502 else
1503 ac_save_LIBS="$LIBS"
1504 LIBS="-lXext $LIBS"
1505 cat > conftest.$ac_ext <<EOF
1506 #line 1465 "configure"
1507 #include "confdefs.h"
1508
1509 int main() {
1510 main()
1511 ; return 0; }
1512 EOF
1513 if { (eval echo configure:1472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1514 rm -rf conftest*
1515 eval "ac_cv_lib_$ac_lib_var=yes"
1516 else
1517 echo "configure: failed program was:" >&5
1518 cat conftest.$ac_ext >&5
1519 rm -rf conftest*
1520 eval "ac_cv_lib_$ac_lib_var=no"
1521 fi
1522 rm -f conftest*
1523 LIBS="$ac_save_LIBS"
1524
1525 fi
1526 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1527 echo "$ac_t""yes" 1>&6
1528 ac_tr_lib=HAVE_LIB`echo Xext | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1529 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1530 cat >> confdefs.h <<EOF
1531 #define $ac_tr_lib 1
1532 EOF
1533
1534 LIBS="-lXext $LIBS"
1535
1536 else
1537 echo "$ac_t""no" 1>&6
1538 fi
1539
1540 echo $ac_n "checking for main in -lXi""... $ac_c" 1>&6
1541 echo "configure:1500: checking for main in -lXi" >&5
1542 ac_lib_var=`echo Xi'_'main | sed 'y%./+-%__p_%'`
1543 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1544 echo $ac_n "(cached) $ac_c" 1>&6
1545 else
1546 ac_save_LIBS="$LIBS"
1547 LIBS="-lXi $LIBS"
1548 cat > conftest.$ac_ext <<EOF
1549 #line 1508 "configure"
1550 #include "confdefs.h"
1551
1552 int main() {
1553 main()
1554 ; return 0; }
1555 EOF
1556 if { (eval echo configure:1515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1557 rm -rf conftest*
1558 eval "ac_cv_lib_$ac_lib_var=yes"
1559 else
1560 echo "configure: failed program was:" >&5
1561 cat conftest.$ac_ext >&5
1562 rm -rf conftest*
1563 eval "ac_cv_lib_$ac_lib_var=no"
1564 fi
1565 rm -f conftest*
1566 LIBS="$ac_save_LIBS"
1567
1568 fi
1569 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1570 echo "$ac_t""yes" 1>&6
1571 ac_tr_lib=HAVE_LIB`echo Xi | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1572 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1573 cat >> confdefs.h <<EOF
1574 #define $ac_tr_lib 1
1575 EOF
1576
1577 LIBS="-lXi $LIBS"
1578
1579 else
1580 echo "$ac_t""no" 1>&6
1581 fi
1582
1583 echo $ac_n "checking for main in -lXmu""... $ac_c" 1>&6
1584 echo "configure:1543: checking for main in -lXmu" >&5
1585 ac_lib_var=`echo Xmu'_'main | sed 'y%./+-%__p_%'`
1586 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1587 echo $ac_n "(cached) $ac_c" 1>&6
1588 else
1589 ac_save_LIBS="$LIBS"
1590 LIBS="-lXmu $LIBS"
1591 cat > conftest.$ac_ext <<EOF
1592 #line 1551 "configure"
1593 #include "confdefs.h"
1594
1595 int main() {
1596 main()
1597 ; return 0; }
1598 EOF
1599 if { (eval echo configure:1558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1600 rm -rf conftest*
1601 eval "ac_cv_lib_$ac_lib_var=yes"
1602 else
1603 echo "configure: failed program was:" >&5
1604 cat conftest.$ac_ext >&5
1605 rm -rf conftest*
1606 eval "ac_cv_lib_$ac_lib_var=no"
1607 fi
1608 rm -f conftest*
1609 LIBS="$ac_save_LIBS"
1610
1611 fi
1612 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1613 echo "$ac_t""yes" 1>&6
1614 ac_tr_lib=HAVE_LIB`echo Xmu | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1615 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1616 cat >> confdefs.h <<EOF
1617 #define $ac_tr_lib 1
1618 EOF
1619
1620 LIBS="-lXmu $LIBS"
1621
1622 else
1623 echo "$ac_t""no" 1>&6
1624 fi
1625
1626 echo $ac_n "checking for main in -lXt""... $ac_c" 1>&6
1627 echo "configure:1586: checking for main in -lXt" >&5
1628 ac_lib_var=`echo Xt'_'main | sed 'y%./+-%__p_%'`
1629 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1630 echo $ac_n "(cached) $ac_c" 1>&6
1631 else
1632 ac_save_LIBS="$LIBS"
1633 LIBS="-lXt $LIBS"
1634 cat > conftest.$ac_ext <<EOF
1635 #line 1594 "configure"
1636 #include "confdefs.h"
1637
1638 int main() {
1639 main()
1640 ; return 0; }
1641 EOF
1642 if { (eval echo configure:1601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1643 rm -rf conftest*
1644 eval "ac_cv_lib_$ac_lib_var=yes"
1645 else
1646 echo "configure: failed program was:" >&5
1647 cat conftest.$ac_ext >&5
1648 rm -rf conftest*
1649 eval "ac_cv_lib_$ac_lib_var=no"
1650 fi
1651 rm -f conftest*
1652 LIBS="$ac_save_LIBS"
1653
1654 fi
1655 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1656 echo "$ac_t""yes" 1>&6
1657 ac_tr_lib=HAVE_LIB`echo Xt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1658 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1659 cat >> confdefs.h <<EOF
1660 #define $ac_tr_lib 1
1661 EOF
1662
1663 LIBS="-lXt $LIBS"
1664
1665 else
1666 echo "$ac_t""no" 1>&6
1667 fi
1668
1669 echo $ac_n "checking for main in -lXtf""... $ac_c" 1>&6
1670 echo "configure:1629: checking for main in -lXtf" >&5
1671 ac_lib_var=`echo Xtf'_'main | sed 'y%./+-%__p_%'`
1672 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1673 echo $ac_n "(cached) $ac_c" 1>&6
1674 else
1675 ac_save_LIBS="$LIBS"
1676 LIBS="-lXtf $LIBS"
1677 cat > conftest.$ac_ext <<EOF
1678 #line 1637 "configure"
1679 #include "confdefs.h"
1680
1681 int main() {
1682 main()
1683 ; return 0; }
1684 EOF
1685 if { (eval echo configure:1644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1686 rm -rf conftest*
1687 eval "ac_cv_lib_$ac_lib_var=yes"
1688 else
1689 echo "configure: failed program was:" >&5
1690 cat conftest.$ac_ext >&5
1691 rm -rf conftest*
1692 eval "ac_cv_lib_$ac_lib_var=no"
1693 fi
1694 rm -f conftest*
1695 LIBS="$ac_save_LIBS"
1696
1697 fi
1698 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1699 echo "$ac_t""yes" 1>&6
1700 ac_tr_lib=HAVE_LIB`echo Xtf | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1701 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1702 cat >> confdefs.h <<EOF
1703 #define $ac_tr_lib 1
1704 EOF
1705
1706 LIBS="-lXtf $LIBS"
1707
1708 else
1709 echo "$ac_t""no" 1>&6
1710 fi
1711
1712 echo $ac_n "checking for main in -lXtst""... $ac_c" 1>&6
1713 echo "configure:1672: checking for main in -lXtst" >&5
1714 ac_lib_var=`echo Xtst'_'main | sed 'y%./+-%__p_%'`
1715 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1716 echo $ac_n "(cached) $ac_c" 1>&6
1717 else
1718 ac_save_LIBS="$LIBS"
1719 LIBS="-lXtst $LIBS"
1720 cat > conftest.$ac_ext <<EOF
1721 #line 1680 "configure"
1722 #include "confdefs.h"
1723
1724 int main() {
1725 main()
1726 ; return 0; }
1727 EOF
1728 if { (eval echo configure:1687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1729 rm -rf conftest*
1730 eval "ac_cv_lib_$ac_lib_var=yes"
1731 else
1732 echo "configure: failed program was:" >&5
1733 cat conftest.$ac_ext >&5
1734 rm -rf conftest*
1735 eval "ac_cv_lib_$ac_lib_var=no"
1736 fi
1737 rm -f conftest*
1738 LIBS="$ac_save_LIBS"
1739
1740 fi
1741 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1742 echo "$ac_t""yes" 1>&6
1743 ac_tr_lib=HAVE_LIB`echo Xtst | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1744 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1745 cat >> confdefs.h <<EOF
1746 #define $ac_tr_lib 1
1747 EOF
1748
1749 LIBS="-lXtst $LIBS"
1750
1751 else
1752 echo "$ac_t""no" 1>&6
1753 fi
1754
1755 echo $ac_n "checking for main in -lcurses""... $ac_c" 1>&6
1756 echo "configure:1715: checking for main in -lcurses" >&5
1757 ac_lib_var=`echo curses'_'main | sed 'y%./+-%__p_%'`
1758 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1759 echo $ac_n "(cached) $ac_c" 1>&6
1760 else
1761 ac_save_LIBS="$LIBS"
1762 LIBS="-lcurses $LIBS"
1763 cat > conftest.$ac_ext <<EOF
1764 #line 1723 "configure"
1765 #include "confdefs.h"
1766
1767 int main() {
1768 main()
1769 ; return 0; }
1770 EOF
1771 if { (eval echo configure:1730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1772 rm -rf conftest*
1773 eval "ac_cv_lib_$ac_lib_var=yes"
1774 else
1775 echo "configure: failed program was:" >&5
1776 cat conftest.$ac_ext >&5
1777 rm -rf conftest*
1778 eval "ac_cv_lib_$ac_lib_var=no"
1779 fi
1780 rm -f conftest*
1781 LIBS="$ac_save_LIBS"
1782
1783 fi
1784 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1785 echo "$ac_t""yes" 1>&6
1786 ac_tr_lib=HAVE_LIB`echo curses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1787 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1788 cat >> confdefs.h <<EOF
1789 #define $ac_tr_lib 1
1790 EOF
1791
1792 LIBS="-lcurses $LIBS"
1793
1794 else
1795 echo "$ac_t""no" 1>&6
1796 fi
1797
1798 echo $ac_n "checking for main in -lfl""... $ac_c" 1>&6
1799 echo "configure:1758: checking for main in -lfl" >&5
1800 ac_lib_var=`echo fl'_'main | sed 'y%./+-%__p_%'`
1801 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1802 echo $ac_n "(cached) $ac_c" 1>&6
1803 else
1804 ac_save_LIBS="$LIBS"
1805 LIBS="-lfl $LIBS"
1806 cat > conftest.$ac_ext <<EOF
1807 #line 1766 "configure"
1808 #include "confdefs.h"
1809
1810 int main() {
1811 main()
1812 ; return 0; }
1813 EOF
1814 if { (eval echo configure:1773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1815 rm -rf conftest*
1816 eval "ac_cv_lib_$ac_lib_var=yes"
1817 else
1818 echo "configure: failed program was:" >&5
1819 cat conftest.$ac_ext >&5
1820 rm -rf conftest*
1821 eval "ac_cv_lib_$ac_lib_var=no"
1822 fi
1823 rm -f conftest*
1824 LIBS="$ac_save_LIBS"
1825
1826 fi
1827 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1828 echo "$ac_t""yes" 1>&6
1829 ac_tr_lib=HAVE_LIB`echo fl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1830 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1831 cat >> confdefs.h <<EOF
1832 #define $ac_tr_lib 1
1833 EOF
1834
1835 LIBS="-lfl $LIBS"
1836
1837 else
1838 echo "$ac_t""no" 1>&6
1839 fi
1840
1841 echo $ac_n "checking for main in -lfont""... $ac_c" 1>&6
1842 echo "configure:1801: checking for main in -lfont" >&5
1843 ac_lib_var=`echo font'_'main | sed 'y%./+-%__p_%'`
1844 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1845 echo $ac_n "(cached) $ac_c" 1>&6
1846 else
1847 ac_save_LIBS="$LIBS"
1848 LIBS="-lfont $LIBS"
1849 cat > conftest.$ac_ext <<EOF
1850 #line 1809 "configure"
1851 #include "confdefs.h"
1852
1853 int main() {
1854 main()
1855 ; return 0; }
1856 EOF
1857 if { (eval echo configure:1816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1858 rm -rf conftest*
1859 eval "ac_cv_lib_$ac_lib_var=yes"
1860 else
1861 echo "configure: failed program was:" >&5
1862 cat conftest.$ac_ext >&5
1863 rm -rf conftest*
1864 eval "ac_cv_lib_$ac_lib_var=no"
1865 fi
1866 rm -f conftest*
1867 LIBS="$ac_save_LIBS"
1868
1869 fi
1870 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1871 echo "$ac_t""yes" 1>&6
1872 ac_tr_lib=HAVE_LIB`echo font | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1873 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1874 cat >> confdefs.h <<EOF
1875 #define $ac_tr_lib 1
1876 EOF
1877
1878 LIBS="-lfont $LIBS"
1879
1880 else
1881 echo "$ac_t""no" 1>&6
1882 fi
1883
1884 echo $ac_n "checking for main in -loldX""... $ac_c" 1>&6
1885 echo "configure:1844: checking for main in -loldX" >&5
1886 ac_lib_var=`echo oldX'_'main | sed 'y%./+-%__p_%'`
1887 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1888 echo $ac_n "(cached) $ac_c" 1>&6
1889 else
1890 ac_save_LIBS="$LIBS"
1891 LIBS="-loldX $LIBS"
1892 cat > conftest.$ac_ext <<EOF
1893 #line 1852 "configure"
1894 #include "confdefs.h"
1895
1896 int main() {
1897 main()
1898 ; return 0; }
1899 EOF
1900 if { (eval echo configure:1859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1901 rm -rf conftest*
1902 eval "ac_cv_lib_$ac_lib_var=yes"
1903 else
1904 echo "configure: failed program was:" >&5
1905 cat conftest.$ac_ext >&5
1906 rm -rf conftest*
1907 eval "ac_cv_lib_$ac_lib_var=no"
1908 fi
1909 rm -f conftest*
1910 LIBS="$ac_save_LIBS"
1911
1912 fi
1913 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1914 echo "$ac_t""yes" 1>&6
1915 ac_tr_lib=HAVE_LIB`echo oldX | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1916 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1917 cat >> confdefs.h <<EOF
1918 #define $ac_tr_lib 1
1919 EOF
1920
1921 LIBS="-loldX $LIBS"
1922
1923 else
1924 echo "$ac_t""no" 1>&6
1925 fi
1926
1927 echo $ac_n "checking for main in -lphigs""... $ac_c" 1>&6
1928 echo "configure:1887: checking for main in -lphigs" >&5
1929 ac_lib_var=`echo phigs'_'main | sed 'y%./+-%__p_%'`
1930 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1931 echo $ac_n "(cached) $ac_c" 1>&6
1932 else
1933 ac_save_LIBS="$LIBS"
1934 LIBS="-lphigs $LIBS"
1935 cat > conftest.$ac_ext <<EOF
1936 #line 1895 "configure"
1937 #include "confdefs.h"
1938
1939 int main() {
1940 main()
1941 ; return 0; }
1942 EOF
1943 if { (eval echo configure:1902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1944 rm -rf conftest*
1945 eval "ac_cv_lib_$ac_lib_var=yes"
1946 else
1947 echo "configure: failed program was:" >&5
1948 cat conftest.$ac_ext >&5
1949 rm -rf conftest*
1950 eval "ac_cv_lib_$ac_lib_var=no"
1951 fi
1952 rm -f conftest*
1953 LIBS="$ac_save_LIBS"
1954
1955 fi
1956 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1957 echo "$ac_t""yes" 1>&6
1958 ac_tr_lib=HAVE_LIB`echo phigs | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1959 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1960 cat >> confdefs.h <<EOF
1961 #define $ac_tr_lib 1
1962 EOF
1963
1964 LIBS="-lphigs $LIBS"
1965
1966 else
1967 echo "$ac_t""no" 1>&6
1968 fi
1969
1970 echo $ac_n "checking for main in -lxpg4""... $ac_c" 1>&6
1971 echo "configure:1930: checking for main in -lxpg4" >&5
1972 ac_lib_var=`echo xpg4'_'main | sed 'y%./+-%__p_%'`
1973 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1974 echo $ac_n "(cached) $ac_c" 1>&6
1975 else
1976 ac_save_LIBS="$LIBS"
1977 LIBS="-lxpg4 $LIBS"
1978 cat > conftest.$ac_ext <<EOF
1979 #line 1938 "configure"
1980 #include "confdefs.h"
1981
1982 int main() {
1983 main()
1984 ; return 0; }
1985 EOF
1986 if { (eval echo configure:1945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1987 rm -rf conftest*
1988 eval "ac_cv_lib_$ac_lib_var=yes"
1989 else
1990 echo "configure: failed program was:" >&5
1991 cat conftest.$ac_ext >&5
1992 rm -rf conftest*
1993 eval "ac_cv_lib_$ac_lib_var=no"
1994 fi
1995 rm -f conftest*
1996 LIBS="$ac_save_LIBS"
1997
1998 fi
1999 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2000 echo "$ac_t""yes" 1>&6
2001 ac_tr_lib=HAVE_LIB`echo xpg4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2002 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2003 cat >> confdefs.h <<EOF
2004 #define $ac_tr_lib 1
2005 EOF
2006
2007 LIBS="-lxpg4 $LIBS"
2008
2009 else
2010 echo "$ac_t""no" 1>&6
2011 fi
2012
2013
2014 echo $ac_n "checking for main in -lcrypt""... $ac_c" 1>&6
2015 echo "configure:1974: checking for main in -lcrypt" >&5
2016 ac_lib_var=`echo crypt'_'main | sed 'y%./+-%__p_%'`
2017 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2018 echo $ac_n "(cached) $ac_c" 1>&6
2019 else
2020 ac_save_LIBS="$LIBS"
2021 LIBS="-lcrypt $LIBS"
2022 cat > conftest.$ac_ext <<EOF
2023 #line 1982 "configure"
2024 #include "confdefs.h"
2025
2026 int main() {
2027 main()
2028 ; return 0; }
2029 EOF
2030 if { (eval echo configure:1989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2031 rm -rf conftest*
2032 eval "ac_cv_lib_$ac_lib_var=yes"
2033 else
2034 echo "configure: failed program was:" >&5
2035 cat conftest.$ac_ext >&5
2036 rm -rf conftest*
2037 eval "ac_cv_lib_$ac_lib_var=no"
2038 fi
2039 rm -f conftest*
2040 LIBS="$ac_save_LIBS"
2041
2042 fi
2043 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2044 echo "$ac_t""yes" 1>&6
2045 ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2046 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2047 cat >> confdefs.h <<EOF
2048 #define $ac_tr_lib 1
2049 EOF
2050
2051 LIBS="-lcrypt $LIBS"
2052
2053 else
2054 echo "$ac_t""no" 1>&6
2055 fi
2056
2057 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
2058 echo "configure:2017: checking for main in -lsocket" >&5
2059 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
2060 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2061 echo $ac_n "(cached) $ac_c" 1>&6
2062 else
2063 ac_save_LIBS="$LIBS"
2064 LIBS="-lsocket $LIBS"
2065 cat > conftest.$ac_ext <<EOF
2066 #line 2025 "configure"
2067 #include "confdefs.h"
2068
2069 int main() {
2070 main()
2071 ; return 0; }
2072 EOF
2073 if { (eval echo configure:2032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2074 rm -rf conftest*
2075 eval "ac_cv_lib_$ac_lib_var=yes"
2076 else
2077 echo "configure: failed program was:" >&5
2078 cat conftest.$ac_ext >&5
2079 rm -rf conftest*
2080 eval "ac_cv_lib_$ac_lib_var=no"
2081 fi
2082 rm -f conftest*
2083 LIBS="$ac_save_LIBS"
2084
2085 fi
2086 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2087 echo "$ac_t""yes" 1>&6
2088 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2089 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2090 cat >> confdefs.h <<EOF
2091 #define $ac_tr_lib 1
2092 EOF
2093
2094 LIBS="-lsocket $LIBS"
2095
2096 else
2097 echo "$ac_t""no" 1>&6
2098 fi
2099
2100 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
2101 echo "configure:2060: checking for main in -lnsl" >&5
2102 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
2103 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2104 echo $ac_n "(cached) $ac_c" 1>&6
2105 else
2106 ac_save_LIBS="$LIBS"
2107 LIBS="-lnsl $LIBS"
2108 cat > conftest.$ac_ext <<EOF
2109 #line 2068 "configure"
2110 #include "confdefs.h"
2111
2112 int main() {
2113 main()
2114 ; return 0; }
2115 EOF
2116 if { (eval echo configure:2075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2117 rm -rf conftest*
2118 eval "ac_cv_lib_$ac_lib_var=yes"
2119 else
2120 echo "configure: failed program was:" >&5
2121 cat conftest.$ac_ext >&5
2122 rm -rf conftest*
2123 eval "ac_cv_lib_$ac_lib_var=no"
2124 fi
2125 rm -f conftest*
2126 LIBS="$ac_save_LIBS"
2127
2128 fi
2129 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2130 echo "$ac_t""yes" 1>&6
2131 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2132 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2133 cat >> confdefs.h <<EOF
2134 #define $ac_tr_lib 1
2135 EOF
2136
2137 LIBS="-lnsl $LIBS"
2138
2139 else
2140 echo "$ac_t""no" 1>&6
2141 fi
2142
2143
2144 # If we find X, set shell vars x_includes and x_libraries to the
2145 # paths, otherwise set no_x=yes.
2146 # Uses ac_ vars as temps to allow command line to override cache and checks.
2147 # --without-x overrides everything else, but does not touch the cache.
2148 echo $ac_n "checking for X""... $ac_c" 1>&6
2149 echo "configure:2108: checking for X" >&5
2150
2151 # Check whether --with-x or --without-x was given.
2152 if test "${with_x+set}" = set; then
2153 withval="$with_x"
2154 :
2155 fi
2156
2157 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
2158 if test "x$with_x" = xno; then
2159 # The user explicitly disabled X.
2160 have_x=disabled
2161 else
2162 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
2163 # Both variables are already set.
2164 have_x=yes
2165 else
2166 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
2167 echo $ac_n "(cached) $ac_c" 1>&6
2168 else
2169 # One or both of the vars are not set, and there is no cached value.
2170 ac_x_includes=NO ac_x_libraries=NO
2171 rm -fr conftestdir
2172 if mkdir conftestdir; then
2173 cd conftestdir
2174 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
2175 cat > Imakefile <<'EOF'
2176 acfindx:
2177 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
2178 EOF
2179 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
2180 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2181 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
2182 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
2183 for ac_extension in a so sl; do
2184 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
2185 test -f $ac_im_libdir/libX11.$ac_extension; then
2186 ac_im_usrlibdir=$ac_im_libdir; break
2187 fi
2188 done
2189 # Screen out bogus values from the imake configuration. They are
2190 # bogus both because they are the default anyway, and because
2191 # using them would break gcc on systems where it needs fixed includes.
2192 case "$ac_im_incroot" in
2193 /usr/include) ;;
2194 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
2195 esac
2196 case "$ac_im_usrlibdir" in
2197 /usr/lib | /lib) ;;
2198 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
2199 esac
2200 fi
2201 cd ..
2202 rm -fr conftestdir
2203 fi
2204
2205 if test "$ac_x_includes" = NO; then
2206 # Guess where to find include files, by looking for this one X11 .h file.
2207 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
2208
2209 # First, try using that file with no special directory specified.
2210 cat > conftest.$ac_ext <<EOF
2211 #line 2170 "configure"
2212 #include "confdefs.h"
2213 #include <$x_direct_test_include>
2214 EOF
2215 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2216 { (eval echo configure:2175: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2217 ac_err=`grep -v '^ *+' conftest.out`
2218 if test -z "$ac_err"; then
2219 rm -rf conftest*
2220 # We can compile using X headers with no special include directory.
2221 ac_x_includes=
2222 else
2223 echo "$ac_err" >&5
2224 echo "configure: failed program was:" >&5
2225 cat conftest.$ac_ext >&5
2226 rm -rf conftest*
2227 # Look for the header file in a standard set of common directories.
2228 # Check X11 before X11Rn because it is often a symlink to the current release.
2229 for ac_dir in \
2230 /usr/X11/include \
2231 /usr/X11R6/include \
2232 /usr/X11R5/include \
2233 /usr/X11R4/include \
2234 \
2235 /usr/include/X11 \
2236 /usr/include/X11R6 \
2237 /usr/include/X11R5 \
2238 /usr/include/X11R4 \
2239 \
2240 /usr/local/X11/include \
2241 /usr/local/X11R6/include \
2242 /usr/local/X11R5/include \
2243 /usr/local/X11R4/include \
2244 \
2245 /usr/local/include/X11 \
2246 /usr/local/include/X11R6 \
2247 /usr/local/include/X11R5 \
2248 /usr/local/include/X11R4 \
2249 \
2250 /usr/X386/include \
2251 /usr/x386/include \
2252 /usr/XFree86/include/X11 \
2253 \
2254 /usr/include \
2255 /usr/local/include \
2256 /usr/unsupported/include \
2257 /usr/athena/include \
2258 /usr/local/x11r5/include \
2259 /usr/lpp/Xamples/include \
2260 \
2261 /usr/openwin/include \
2262 /usr/openwin/share/include \
2263 ; \
2264 do
2265 if test -r "$ac_dir/$x_direct_test_include"; then
2266 ac_x_includes=$ac_dir
2267 break
2268 fi
2269 done
2270 fi
2271 rm -f conftest*
2272 fi # $ac_x_includes = NO
2273
2274 if test "$ac_x_libraries" = NO; then
2275 # Check for the libraries.
2276
2277 test -z "$x_direct_test_library" && x_direct_test_library=Xt
2278 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
2279
2280 # See if we find them without any special options.
2281 # Don't add to $LIBS permanently.
2282 ac_save_LIBS="$LIBS"
2283 LIBS="-l$x_direct_test_library $LIBS"
2284 cat > conftest.$ac_ext <<EOF
2285 #line 2244 "configure"
2286 #include "confdefs.h"
2287
2288 int main() {
2289 ${x_direct_test_function}()
2290 ; return 0; }
2291 EOF
2292 if { (eval echo configure:2251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2293 rm -rf conftest*
2294 LIBS="$ac_save_LIBS"
2295 # We can link X programs with no special library path.
2296 ac_x_libraries=
2297 else
2298 echo "configure: failed program was:" >&5
2299 cat conftest.$ac_ext >&5
2300 rm -rf conftest*
2301 LIBS="$ac_save_LIBS"
2302 # First see if replacing the include by lib works.
2303 # Check X11 before X11Rn because it is often a symlink to the current release.
2304 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
2305 /usr/X11/lib \
2306 /usr/X11R6/lib \
2307 /usr/X11R5/lib \
2308 /usr/X11R4/lib \
2309 \
2310 /usr/lib/X11 \
2311 /usr/lib/X11R6 \
2312 /usr/lib/X11R5 \
2313 /usr/lib/X11R4 \
2314 \
2315 /usr/local/X11/lib \
2316 /usr/local/X11R6/lib \
2317 /usr/local/X11R5/lib \
2318 /usr/local/X11R4/lib \
2319 \
2320 /usr/local/lib/X11 \
2321 /usr/local/lib/X11R6 \
2322 /usr/local/lib/X11R5 \
2323 /usr/local/lib/X11R4 \
2324 \
2325 /usr/X386/lib \
2326 /usr/x386/lib \
2327 /usr/XFree86/lib/X11 \
2328 \
2329 /usr/lib \
2330 /usr/local/lib \
2331 /usr/unsupported/lib \
2332 /usr/athena/lib \
2333 /usr/local/x11r5/lib \
2334 /usr/lpp/Xamples/lib \
2335 /lib/usr/lib/X11 \
2336 \
2337 /usr/openwin/lib \
2338 /usr/openwin/share/lib \
2339 ; \
2340 do
2341 for ac_extension in a so sl; do
2342 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
2343 ac_x_libraries=$ac_dir
2344 break 2
2345 fi
2346 done
2347 done
2348 fi
2349 rm -f conftest*
2350 fi # $ac_x_libraries = NO
2351
2352 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
2353 # Didn't find X anywhere. Cache the known absence of X.
2354 ac_cv_have_x="have_x=no"
2355 else
2356 # Record where we found X for the cache.
2357 ac_cv_have_x="have_x=yes \
2358 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
2359 fi
2360 fi
2361 fi
2362 eval "$ac_cv_have_x"
2363 fi # $with_x != no
2364
2365 if test "$have_x" != yes; then
2366 echo "$ac_t""$have_x" 1>&6
2367 no_x=yes
2368 else
2369 # If each of the values was on the command line, it overrides each guess.
2370 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
2371 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
2372 # Update the cache value to reflect the command line values.
2373 ac_cv_have_x="have_x=yes \
2374 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
2375 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
2376 fi
2377
2378 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2379 echo "configure:2338: checking for ANSI C header files" >&5
2380 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2381 echo $ac_n "(cached) $ac_c" 1>&6
2382 else
2383 cat > conftest.$ac_ext <<EOF
2384 #line 2343 "configure"
2385 #include "confdefs.h"
2386 #include <stdlib.h>
2387 #include <stdarg.h>
2388 #include <string.h>
2389 #include <float.h>
2390 EOF
2391 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2392 { (eval echo configure:2351: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2393 ac_err=`grep -v '^ *+' conftest.out`
2394 if test -z "$ac_err"; then
2395 rm -rf conftest*
2396 ac_cv_header_stdc=yes
2397 else
2398 echo "$ac_err" >&5
2399 echo "configure: failed program was:" >&5
2400 cat conftest.$ac_ext >&5
2401 rm -rf conftest*
2402 ac_cv_header_stdc=no
2403 fi
2404 rm -f conftest*
2405
2406 if test $ac_cv_header_stdc = yes; then
2407 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2408 cat > conftest.$ac_ext <<EOF
2409 #line 2368 "configure"
2410 #include "confdefs.h"
2411 #include <string.h>
2412 EOF
2413 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2414 egrep "memchr" >/dev/null 2>&1; then
2415 :
2416 else
2417 rm -rf conftest*
2418 ac_cv_header_stdc=no
2419 fi
2420 rm -f conftest*
2421
2422 fi
2423
2424 if test $ac_cv_header_stdc = yes; then
2425 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2426 cat > conftest.$ac_ext <<EOF
2427 #line 2386 "configure"
2428 #include "confdefs.h"
2429 #include <stdlib.h>
2430 EOF
2431 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2432 egrep "free" >/dev/null 2>&1; then
2433 :
2434 else
2435 rm -rf conftest*
2436 ac_cv_header_stdc=no
2437 fi
2438 rm -f conftest*
2439
2440 fi
2441
2442 if test $ac_cv_header_stdc = yes; then
2443 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2444 if test "$cross_compiling" = yes; then
2445 :
2446 else
2447 cat > conftest.$ac_ext <<EOF
2448 #line 2407 "configure"
2449 #include "confdefs.h"
2450 #include <ctype.h>
2451 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2452 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2453 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2454 int main () { int i; for (i = 0; i < 256; i++)
2455 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2456 exit (0); }
2457
2458 EOF
2459 if { (eval echo configure:2418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2460 then
2461 :
2462 else
2463 echo "configure: failed program was:" >&5
2464 cat conftest.$ac_ext >&5
2465 rm -fr conftest*
2466 ac_cv_header_stdc=no
2467 fi
2468 rm -fr conftest*
2469 fi
2470
2471 fi
2472 fi
2473
2474 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2475 if test $ac_cv_header_stdc = yes; then
2476 cat >> confdefs.h <<\EOF
2477 #define STDC_HEADERS 1
2478 EOF
2479
2480 fi
2481
2482 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2483 echo "configure:2442: checking for sys/wait.h that is POSIX.1 compatible" >&5
2484 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2485 echo $ac_n "(cached) $ac_c" 1>&6
2486 else
2487 cat > conftest.$ac_ext <<EOF
2488 #line 2447 "configure"
2489 #include "confdefs.h"
2490 #include <sys/types.h>
2491 #include <sys/wait.h>
2492 #ifndef WEXITSTATUS
2493 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2494 #endif
2495 #ifndef WIFEXITED
2496 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2497 #endif
2498 int main() {
2499 int s;
2500 wait (&s);
2501 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2502 ; return 0; }
2503 EOF
2504 if { (eval echo configure:2463: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2505 rm -rf conftest*
2506 ac_cv_header_sys_wait_h=yes
2507 else
2508 echo "configure: failed program was:" >&5
2509 cat conftest.$ac_ext >&5
2510 rm -rf conftest*
2511 ac_cv_header_sys_wait_h=no
2512 fi
2513 rm -f conftest*
2514 fi
2515
2516 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2517 if test $ac_cv_header_sys_wait_h = yes; then
2518 cat >> confdefs.h <<\EOF
2519 #define HAVE_SYS_WAIT_H 1
2520 EOF
2521
2522 fi
2523
2524 for ac_hdr in fcntl.h limits.h malloc.h sgtty.h strings.h sys/file.h sys/ioctl.h sys/time.h termio.h unistd.h
2525 do
2526 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2527 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2528 echo "configure:2487: checking for $ac_hdr" >&5
2529 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2530 echo $ac_n "(cached) $ac_c" 1>&6
2531 else
2532 cat > conftest.$ac_ext <<EOF
2533 #line 2492 "configure"
2534 #include "confdefs.h"
2535 #include <$ac_hdr>
2536 EOF
2537 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2538 { (eval echo configure:2497: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2539 ac_err=`grep -v '^ *+' conftest.out`
2540 if test -z "$ac_err"; then
2541 rm -rf conftest*
2542 eval "ac_cv_header_$ac_safe=yes"
2543 else
2544 echo "$ac_err" >&5
2545 echo "configure: failed program was:" >&5
2546 cat conftest.$ac_ext >&5
2547 rm -rf conftest*
2548 eval "ac_cv_header_$ac_safe=no"
2549 fi
2550 rm -f conftest*
2551 fi
2552 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2553 echo "$ac_t""yes" 1>&6
2554 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2555 cat >> confdefs.h <<EOF
2556 #define $ac_tr_hdr 1
2557 EOF
2558
2559 else
2560 echo "$ac_t""no" 1>&6
2561 fi
2562 done
2563
2564
2565 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
2566 echo "configure:2525: checking for mode_t" >&5
2567 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
2568 echo $ac_n "(cached) $ac_c" 1>&6
2569 else
2570 cat > conftest.$ac_ext <<EOF
2571 #line 2530 "configure"
2572 #include "confdefs.h"
2573 #include <sys/types.h>
2574 #if STDC_HEADERS
2575 #include <stdlib.h>
2576 #include <stddef.h>
2577 #endif
2578 EOF
2579 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2580 egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2581 rm -rf conftest*
2582 ac_cv_type_mode_t=yes
2583 else
2584 rm -rf conftest*
2585 ac_cv_type_mode_t=no
2586 fi
2587 rm -f conftest*
2588
2589 fi
2590 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
2591 if test $ac_cv_type_mode_t = no; then
2592 cat >> confdefs.h <<\EOF
2593 #define mode_t int
2594 EOF
2595
2596 fi
2597
2598 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2599 echo "configure:2558: checking whether time.h and sys/time.h may both be included" >&5
2600 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2601 echo $ac_n "(cached) $ac_c" 1>&6
2602 else
2603 cat > conftest.$ac_ext <<EOF
2604 #line 2563 "configure"
2605 #include "confdefs.h"
2606 #include <sys/types.h>
2607 #include <sys/time.h>
2608 #include <time.h>
2609 int main() {
2610 struct tm *tp;
2611 ; return 0; }
2612 EOF
2613 if { (eval echo configure:2572: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2614 rm -rf conftest*
2615 ac_cv_header_time=yes
2616 else
2617 echo "configure: failed program was:" >&5
2618 cat conftest.$ac_ext >&5
2619 rm -rf conftest*
2620 ac_cv_header_time=no
2621 fi
2622 rm -f conftest*
2623 fi
2624
2625 echo "$ac_t""$ac_cv_header_time" 1>&6
2626 if test $ac_cv_header_time = yes; then
2627 cat >> confdefs.h <<\EOF
2628 #define TIME_WITH_SYS_TIME 1
2629 EOF
2630
2631 fi
2632
2633
2634 if test $ac_cv_prog_gcc = yes; then
2635 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
2636 echo "configure:2595: checking whether ${CC-cc} needs -traditional" >&5
2637 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
2638 echo $ac_n "(cached) $ac_c" 1>&6
2639 else
2640 ac_pattern="Autoconf.*'x'"
2641 cat > conftest.$ac_ext <<EOF
2642 #line 2601 "configure"
2643 #include "confdefs.h"
2644 #include <sgtty.h>
2645 Autoconf TIOCGETP
2646 EOF
2647 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2648 egrep "$ac_pattern" >/dev/null 2>&1; then
2649 rm -rf conftest*
2650 ac_cv_prog_gcc_traditional=yes
2651 else
2652 rm -rf conftest*
2653 ac_cv_prog_gcc_traditional=no
2654 fi
2655 rm -f conftest*
2656
2657
2658 if test $ac_cv_prog_gcc_traditional = no; then
2659 cat > conftest.$ac_ext <<EOF
2660 #line 2619 "configure"
2661 #include "confdefs.h"
2662 #include <termio.h>
2663 Autoconf TCGETA
2664 EOF
2665 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2666 egrep "$ac_pattern" >/dev/null 2>&1; then
2667 rm -rf conftest*
2668 ac_cv_prog_gcc_traditional=yes
2669 fi
2670 rm -f conftest*
2671
2672 fi
2673 fi
2674
2675 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
2676 if test $ac_cv_prog_gcc_traditional = yes; then
2677 CC="$CC -traditional"
2678 fi
2679 fi
2680
2681 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
2682 echo "configure:2641: checking for 8-bit clean memcmp" >&5
2683 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
2684 echo $ac_n "(cached) $ac_c" 1>&6
2685 else
2686 if test "$cross_compiling" = yes; then
2687 ac_cv_func_memcmp_clean=no
2688 else
2689 cat > conftest.$ac_ext <<EOF
2690 #line 2649 "configure"
2691 #include "confdefs.h"
2692
2693 main()
2694 {
2695 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
2696 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
2697 }
2698
2699 EOF
2700 if { (eval echo configure:2659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2701 then
2702 ac_cv_func_memcmp_clean=yes
2703 else
2704 echo "configure: failed program was:" >&5
2705 cat conftest.$ac_ext >&5
2706 rm -fr conftest*
2707 ac_cv_func_memcmp_clean=no
2708 fi
2709 rm -fr conftest*
2710 fi
2711
2712 fi
2713
2714 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
2715 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.o"
2716
2717 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2718 echo "configure:2677: checking return type of signal handlers" >&5
2719 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2720 echo $ac_n "(cached) $ac_c" 1>&6
2721 else
2722 cat > conftest.$ac_ext <<EOF
2723 #line 2682 "configure"
2724 #include "confdefs.h"
2725 #include <sys/types.h>
2726 #include <signal.h>
2727 #ifdef signal
2728 #undef signal
2729 #endif
2730 #ifdef __cplusplus
2731 extern "C" void (*signal (int, void (*)(int)))(int);
2732 #else
2733 void (*signal ()) ();
2734 #endif
2735
2736 int main() {
2737 int i;
2738 ; return 0; }
2739 EOF
2740 if { (eval echo configure:2699: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2741 rm -rf conftest*
2742 ac_cv_type_signal=void
2743 else
2744 echo "configure: failed program was:" >&5
2745 cat conftest.$ac_ext >&5
2746 rm -rf conftest*
2747 ac_cv_type_signal=int
2748 fi
2749 rm -f conftest*
2750 fi
2751
2752 echo "$ac_t""$ac_cv_type_signal" 1>&6
2753 cat >> confdefs.h <<EOF
2754 #define RETSIGTYPE $ac_cv_type_signal
2755 EOF
2756
2757
2758 echo $ac_n "checking for wait3 that fills in rusage""... $ac_c" 1>&6
2759 echo "configure:2718: checking for wait3 that fills in rusage" >&5
2760 if eval "test \"`echo '$''{'ac_cv_func_wait3_rusage'+set}'`\" = set"; then
2761 echo $ac_n "(cached) $ac_c" 1>&6
2762 else
2763 if test "$cross_compiling" = yes; then
2764 ac_cv_func_wait3_rusage=no
2765 else
2766 cat > conftest.$ac_ext <<EOF
2767 #line 2726 "configure"
2768 #include "confdefs.h"
2769 #include <sys/types.h>
2770 #include <sys/time.h>
2771 #include <sys/resource.h>
2772 #include <stdio.h>
2773 /* HP-UX has wait3 but does not fill in rusage at all. */
2774 main() {
2775 struct rusage r;
2776 int i;
2777 /* Use a field that we can force nonzero --
2778 voluntary context switches.
2779 For systems like NeXT and OSF/1 that don't set it,
2780 also use the system CPU time. And page faults (I/O) for Linux. */
2781 r.ru_nvcsw = 0;
2782 r.ru_stime.tv_sec = 0;
2783 r.ru_stime.tv_usec = 0;
2784 r.ru_majflt = r.ru_minflt = 0;
2785 switch (fork()) {
2786 case 0: /* Child. */
2787 sleep(1); /* Give up the CPU. */
2788 _exit(0);
2789 case -1: _exit(0); /* What can we do? */
2790 default: /* Parent. */
2791 wait3(&i, 0, &r);
2792 sleep(2); /* Avoid "text file busy" from rm on fast HP-UX machines. */
2793 exit(r.ru_nvcsw == 0 && r.ru_majflt == 0 && r.ru_minflt == 0
2794 && r.ru_stime.tv_sec == 0 && r.ru_stime.tv_usec == 0);
2795 }
2796 }
2797 EOF
2798 if { (eval echo configure:2757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2799 then
2800 ac_cv_func_wait3_rusage=yes
2801 else
2802 echo "configure: failed program was:" >&5
2803 cat conftest.$ac_ext >&5
2804 rm -fr conftest*
2805 ac_cv_func_wait3_rusage=no
2806 fi
2807 rm -fr conftest*
2808 fi
2809
2810 fi
2811
2812 echo "$ac_t""$ac_cv_func_wait3_rusage" 1>&6
2813 if test $ac_cv_func_wait3_rusage = yes; then
2814 cat >> confdefs.h <<\EOF
2815 #define HAVE_WAIT3 1
2816 EOF
2817
2818 fi
2819
2820 for ac_func in gethostname mkdir select socket strtol
2821 do
2822 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2823 echo "configure:2782: checking for $ac_func" >&5
2824 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2825 echo $ac_n "(cached) $ac_c" 1>&6
2826 else
2827 cat > conftest.$ac_ext <<EOF
2828 #line 2787 "configure"
2829 #include "confdefs.h"
2830 /* System header to define __stub macros and hopefully few prototypes,
2831 which can conflict with char $ac_func(); below. */
2832 #include <assert.h>
2833 /* Override any gcc2 internal prototype to avoid an error. */
2834 /* We use char because int might match the return type of a gcc2
2835 builtin and then its argument prototype would still apply. */
2836 char $ac_func();
2837
2838 int main() {
2839
2840 /* The GNU C library defines this for functions which it implements
2841 to always fail with ENOSYS. Some functions are actually named
2842 something starting with __ and the normal name is an alias. */
2843 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2844 choke me
2845 #else
2846 $ac_func();
2847 #endif
2848
2849 ; return 0; }
2850 EOF
2851 if { (eval echo configure:2810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2852 rm -rf conftest*
2853 eval "ac_cv_func_$ac_func=yes"
2854 else
2855 echo "configure: failed program was:" >&5
2856 cat conftest.$ac_ext >&5
2857 rm -rf conftest*
2858 eval "ac_cv_func_$ac_func=no"
2859 fi
2860 rm -f conftest*
2861 fi
2862
2863 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2864 echo "$ac_t""yes" 1>&6
2865 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2866 cat >> confdefs.h <<EOF
2867 #define $ac_tr_func 1
2868 EOF
2869
2870 else
2871 echo "$ac_t""no" 1>&6
2872 fi
2873 done
2874
2875
2876 trap '' 1 2 15
2877 cat > confcache <<\EOF
2878 # This file is a shell script that caches the results of configure
2879 # tests run on this system so they can be shared between configure
2880 # scripts and configure runs. It is not useful on other systems.
2881 # If it contains results you don't want to keep, you may remove or edit it.
2882 #
2883 # By default, configure uses ./config.cache as the cache file,
2884 # creating it if it does not exist already. You can give configure
2885 # the --cache-file=FILE option to use a different cache file; that is
2886 # what configure does when it calls configure scripts in
2887 # subdirectories, so they share the cache.
2888 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2889 # config.status only pays attention to the cache file if you give it the
2890 # --recheck option to rerun configure.
2891 #
2892 EOF
2893 # The following way of writing the cache mishandles newlines in values,
2894 # but we know of no workaround that is simple, portable, and efficient.
2895 # So, don't put newlines in cache variables' values.
2896 # Ultrix sh set writes to stderr and can't be redirected directly,
2897 # and sets the high bit in the cache file unless we assign to the vars.
2898 (set) 2>&1 |
2899 case `(ac_space=' '; set) 2>&1` in
2900 *ac_space=\ *)
2901 # `set' does not quote correctly, so add quotes (double-quote substitution
2902 # turns \\\\ into \\, and sed turns \\ into \).
2903 sed -n \
2904 -e "s/'/'\\\\''/g" \
2905 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2906 ;;
2907 *)
2908 # `set' quotes correctly as required by POSIX, so do not add quotes.
2909 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2910 ;;
2911 esac >> confcache
2912 if cmp -s $cache_file confcache; then
2913 :
2914 else
2915 if test -w $cache_file; then
2916 echo "updating cache $cache_file"
2917 cat confcache > $cache_file
2918 else
2919 echo "not updating unwritable cache $cache_file"
2920 fi
2921 fi
2922 rm -f confcache
2923
2924 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2925
2926 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2927 # Let make expand exec_prefix.
2928 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2929
2930 # Any assignment to VPATH causes Sun make to only execute
2931 # the first set of double-colon rules, so remove it if not needed.
2932 # If there is a colon in the path, we need to keep it.
2933 if test "x$srcdir" = x.; then
2934 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2935 fi
2936
2937 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2938
2939 # Transform confdefs.h into DEFS.
2940 # Protect against shell expansion while executing Makefile rules.
2941 # Protect against Makefile macro expansion.
2942 cat > conftest.defs <<\EOF
2943 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
2944 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
2945 s%\[%\\&%g
2946 s%\]%\\&%g
2947 s%\$%$$%g
2948 EOF
2949 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
2950 rm -f conftest.defs
2951
2952
2953 # Without the "./", some shells look in PATH for config.status.
2954 : ${CONFIG_STATUS=./config.status}
2955
2956 echo creating $CONFIG_STATUS
2957 rm -f $CONFIG_STATUS
2958 cat > $CONFIG_STATUS <<EOF
2959 #! /bin/sh
2960 # Generated automatically by configure.
2961 # Run this file to recreate the current configuration.
2962 # This directory was configured as follows,
2963 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2964 #
2965 # $0 $ac_configure_args
2966 #
2967 # Compiler output produced by configure, useful for debugging
2968 # configure, is in ./config.log if it exists.
2969
2970 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2971 for ac_option
2972 do
2973 case "\$ac_option" in
2974 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2975 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2976 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2977 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2978 echo "$CONFIG_STATUS generated by autoconf version 2.12"
2979 exit 0 ;;
2980 -help | --help | --hel | --he | --h)
2981 echo "\$ac_cs_usage"; exit 0 ;;
2982 *) echo "\$ac_cs_usage"; exit 1 ;;
2983 esac
2984 done
2985
2986 ac_given_srcdir=$srcdir
2987
2988 trap 'rm -fr `echo "Wnn/man/2.env/wnn/Makefile Wnn/pubdic/Makefile cWnn/uum/Makefile cWnn/man/6.jutil/Makefile cWnn/man/Makefile Wnn/man/4.cmd/Makefile kWnn/uum/Makefile cWnn/td/rk/Makefile cWnn/include/Makefile Wnn/jd/rk.vi/Makefile Wnn/jd/Makefile Makefile kWnn/include/Makefile Wnn/ld/Makefile Wnn/man/2.env/dic/Makefile Wnn/man/2.env/Makefile Wnn/man/3.libwnn/Makefile Wnn/man/6.jutil/Makefile Wnn/uum/Makefile cWnn/man/1.intro/Makefile cWnn/conv/Makefile Wnn/jd/rk/Makefile cWnn/td/Makefile Wnn/man/Makefile cWnn/td/rk_z/Makefile kWnn/conv/Makefile cWnn/man/4.cmd/Makefile cWnn/jlib/Makefile Wnn/include/Makefile Wnn/jutil/Makefile kWnn/jlib/Makefile cWnn/cd/rk_z/Makefile cWnn/Makefile cWnn/cdic/Makefile cWnn/man/2.env/Makefile Wnn/man/3.libwnn/js_lib/Makefile Wnn/man/3.libwnn/rk_lib/Makefile Contrib/dic/gerodic/Makefile kWnn/Makefile cWnn/jserver/Makefile kWnn/kdic/Makefile cWnn/tdic/Makefile Wnn/romkan/Makefile cWnn/cd/Makefile cWnn/jutil/Makefile cWnn/romkan/Makefile kWnn/jserver/Makefile Wnn/Makefile Wnn/man/3.libwnn/jl_lib/Makefile kWnn/romkan/Makefile kWnn/jutil/Makefile Pubdic/Makefile Wnn/conv/Makefile cWnn/cd/rk/Makefile cWnn/td/rk_p/Makefile Wnn/jlib.V3/Makefile kWnn/kd/Makefile Wnn/ld/rk/Makefile cWnn/etc/Makefile Wnn/jlib/Makefile Wnn/jserver/Makefile Wnn/wnncons/dic/Makefile cWnn/cd/rk_p/Makefile kWnn/kd/rk/Makefile Wnn/wnncons/Makefile Wnn/man/3.libwnn/misc_lib/Makefile kWnn/etc/Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2989 EOF
2990 cat >> $CONFIG_STATUS <<EOF
2991
2992 # Protect against being on the right side of a sed subst in config.status.
2993 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2994 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2995 $ac_vpsub
2996 $extrasub
2997 s%@CFLAGS@%$CFLAGS%g
2998 s%@CPPFLAGS@%$CPPFLAGS%g
2999 s%@CXXFLAGS@%$CXXFLAGS%g
3000 s%@DEFS@%$DEFS%g
3001 s%@LDFLAGS@%$LDFLAGS%g
3002 s%@LIBS@%$LIBS%g
3003 s%@exec_prefix@%$exec_prefix%g
3004 s%@prefix@%$prefix%g
3005 s%@program_transform_name@%$program_transform_name%g
3006 s%@bindir@%$bindir%g
3007 s%@sbindir@%$sbindir%g
3008 s%@libexecdir@%$libexecdir%g
3009 s%@datadir@%$datadir%g
3010 s%@sysconfdir@%$sysconfdir%g
3011 s%@sharedstatedir@%$sharedstatedir%g
3012 s%@localstatedir@%$localstatedir%g
3013 s%@libdir@%$libdir%g
3014 s%@includedir@%$includedir%g
3015 s%@oldincludedir@%$oldincludedir%g
3016 s%@infodir@%$infodir%g
3017 s%@mandir@%$mandir%g
3018 s%@CC@%$CC%g
3019 s%@CPP@%$CPP%g
3020 s%@YACC@%$YACC%g
3021 s%@LEX@%$LEX%g
3022 s%@LEXLIB@%$LEXLIB%g
3023 s%@LN_S@%$LN_S%g
3024 s%@SET_MAKE@%$SET_MAKE%g
3025 s%@RANLIB@%$RANLIB%g
3026 s%@CCOPTIONS@%$CCOPTIONS%g
3027 s%@CDEBUGFLAGS@%$CDEBUGFLAGS%g
3028 s%@LIBOBJS@%$LIBOBJS%g
3029
3030 CEOF
3031 EOF
3032
3033 cat >> $CONFIG_STATUS <<\EOF
3034
3035 # Split the substitutions into bite-sized pieces for seds with
3036 # small command number limits, like on Digital OSF/1 and HP-UX.
3037 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3038 ac_file=1 # Number of current file.
3039 ac_beg=1 # First line for current file.
3040 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3041 ac_more_lines=:
3042 ac_sed_cmds=""
3043 while $ac_more_lines; do
3044 if test $ac_beg -gt 1; then
3045 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3046 else
3047 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3048 fi
3049 if test ! -s conftest.s$ac_file; then
3050 ac_more_lines=false
3051 rm -f conftest.s$ac_file
3052 else
3053 if test -z "$ac_sed_cmds"; then
3054 ac_sed_cmds="sed -f conftest.s$ac_file"
3055 else
3056 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3057 fi
3058 ac_file=`expr $ac_file + 1`
3059 ac_beg=$ac_end
3060 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3061 fi
3062 done
3063 if test -z "$ac_sed_cmds"; then
3064 ac_sed_cmds=cat
3065 fi
3066 EOF
3067
3068 cat >> $CONFIG_STATUS <<EOF
3069
3070 CONFIG_FILES=\${CONFIG_FILES-"Wnn/man/2.env/wnn/Makefile Wnn/pubdic/Makefile cWnn/uum/Makefile cWnn/man/6.jutil/Makefile cWnn/man/Makefile Wnn/man/4.cmd/Makefile kWnn/uum/Makefile cWnn/td/rk/Makefile cWnn/include/Makefile Wnn/jd/rk.vi/Makefile Wnn/jd/Makefile Makefile kWnn/include/Makefile Wnn/ld/Makefile Wnn/man/2.env/dic/Makefile Wnn/man/2.env/Makefile Wnn/man/3.libwnn/Makefile Wnn/man/6.jutil/Makefile Wnn/uum/Makefile cWnn/man/1.intro/Makefile cWnn/conv/Makefile Wnn/jd/rk/Makefile cWnn/td/Makefile Wnn/man/Makefile cWnn/td/rk_z/Makefile kWnn/conv/Makefile cWnn/man/4.cmd/Makefile cWnn/jlib/Makefile Wnn/include/Makefile Wnn/jutil/Makefile kWnn/jlib/Makefile cWnn/cd/rk_z/Makefile cWnn/Makefile cWnn/cdic/Makefile cWnn/man/2.env/Makefile Wnn/man/3.libwnn/js_lib/Makefile Wnn/man/3.libwnn/rk_lib/Makefile Contrib/dic/gerodic/Makefile kWnn/Makefile cWnn/jserver/Makefile kWnn/kdic/Makefile cWnn/tdic/Makefile Wnn/romkan/Makefile cWnn/cd/Makefile cWnn/jutil/Makefile cWnn/romkan/Makefile kWnn/jserver/Makefile Wnn/Makefile Wnn/man/3.libwnn/jl_lib/Makefile kWnn/romkan/Makefile kWnn/jutil/Makefile Pubdic/Makefile Wnn/conv/Makefile cWnn/cd/rk/Makefile cWnn/td/rk_p/Makefile Wnn/jlib.V3/Makefile kWnn/kd/Makefile Wnn/ld/rk/Makefile cWnn/etc/Makefile Wnn/jlib/Makefile Wnn/jserver/Makefile Wnn/wnncons/dic/Makefile cWnn/cd/rk_p/Makefile kWnn/kd/rk/Makefile Wnn/wnncons/Makefile Wnn/man/3.libwnn/misc_lib/Makefile kWnn/etc/Makefile"}
3071 EOF
3072 cat >> $CONFIG_STATUS <<\EOF
3073 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3074 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3075 case "$ac_file" in
3076 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3077 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3078 *) ac_file_in="${ac_file}.in" ;;
3079 esac
3080
3081 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3082
3083 # Remove last slash and all that follows it. Not all systems have dirname.
3084 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3085 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3086 # The file is in a subdirectory.
3087 test ! -d "$ac_dir" && mkdir "$ac_dir"
3088 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3089 # A "../" for each directory in $ac_dir_suffix.
3090 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3091 else
3092 ac_dir_suffix= ac_dots=
3093 fi
3094
3095 case "$ac_given_srcdir" in
3096 .) srcdir=.
3097 if test -z "$ac_dots"; then top_srcdir=.
3098 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3099 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3100 *) # Relative path.
3101 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3102 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3103 esac
3104
3105
3106 echo creating "$ac_file"
3107 rm -f "$ac_file"
3108 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3109 case "$ac_file" in
3110 *Makefile*) ac_comsub="1i\\
3111 # $configure_input" ;;
3112 *) ac_comsub= ;;
3113 esac
3114
3115 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3116 sed -e "$ac_comsub
3117 s%@configure_input@%$configure_input%g
3118 s%@srcdir@%$srcdir%g
3119 s%@top_srcdir@%$top_srcdir%g
3120 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3121 fi; done
3122 rm -f conftest.s*
3123
3124 EOF
3125 cat >> $CONFIG_STATUS <<EOF
3126
3127 EOF
3128 cat >> $CONFIG_STATUS <<\EOF
3129
3130 exit 0
3131 EOF
3132 chmod +x $CONFIG_STATUS
3133 rm -fr confdefs* $ac_clean_files
3134 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3135

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26