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.3 - (show annotations) (download)
Sun Jan 16 05:48:51 2000 UTC (24 years, 3 months ago) by ura
Branch: MAIN
CVS Tags: freewnn-1-1-1-a002
Changes since 1.2: +7 -0 lines
FreeWnn-1.1.1-a002 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")
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 *)
750 { echo "configure: error: "This system is not supported."" 1>&2; exit 1; }
751 ;;
752 esac
753 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
754 echo "configure:731: checking how to run the C preprocessor" >&5
755 # On Suns, sometimes $CPP names a directory.
756 if test -n "$CPP" && test -d "$CPP"; then
757 CPP=
758 fi
759 if test -z "$CPP"; then
760 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
761 echo $ac_n "(cached) $ac_c" 1>&6
762 else
763 # This must be in double quotes, not single quotes, because CPP may get
764 # substituted into the Makefile and "${CC-cc}" will confuse make.
765 CPP="${CC-cc} -E"
766 # On the NeXT, cc -E runs the code through the compiler's parser,
767 # not just through cpp.
768 cat > conftest.$ac_ext <<EOF
769 #line 746 "configure"
770 #include "confdefs.h"
771 #include <assert.h>
772 Syntax Error
773 EOF
774 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
775 { (eval echo configure:752: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
776 ac_err=`grep -v '^ *+' conftest.out`
777 if test -z "$ac_err"; then
778 :
779 else
780 echo "$ac_err" >&5
781 echo "configure: failed program was:" >&5
782 cat conftest.$ac_ext >&5
783 rm -rf conftest*
784 CPP="${CC-cc} -E -traditional-cpp"
785 cat > conftest.$ac_ext <<EOF
786 #line 763 "configure"
787 #include "confdefs.h"
788 #include <assert.h>
789 Syntax Error
790 EOF
791 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
792 { (eval echo configure:769: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
793 ac_err=`grep -v '^ *+' conftest.out`
794 if test -z "$ac_err"; then
795 :
796 else
797 echo "$ac_err" >&5
798 echo "configure: failed program was:" >&5
799 cat conftest.$ac_ext >&5
800 rm -rf conftest*
801 CPP=/lib/cpp
802 fi
803 rm -f conftest*
804 fi
805 rm -f conftest*
806 ac_cv_prog_CPP="$CPP"
807 fi
808 CPP="$ac_cv_prog_CPP"
809 else
810 ac_cv_prog_CPP="$CPP"
811 fi
812 echo "$ac_t""$CPP" 1>&6
813
814
815 for ac_prog in 'bison -y' byacc
816 do
817 # Extract the first word of "$ac_prog", so it can be a program name with args.
818 set dummy $ac_prog; ac_word=$2
819 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
820 echo "configure:797: checking for $ac_word" >&5
821 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
822 echo $ac_n "(cached) $ac_c" 1>&6
823 else
824 if test -n "$YACC"; then
825 ac_cv_prog_YACC="$YACC" # Let the user override the test.
826 else
827 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
828 for ac_dir in $PATH; do
829 test -z "$ac_dir" && ac_dir=.
830 if test -f $ac_dir/$ac_word; then
831 ac_cv_prog_YACC="$ac_prog"
832 break
833 fi
834 done
835 IFS="$ac_save_ifs"
836 fi
837 fi
838 YACC="$ac_cv_prog_YACC"
839 if test -n "$YACC"; then
840 echo "$ac_t""$YACC" 1>&6
841 else
842 echo "$ac_t""no" 1>&6
843 fi
844
845 test -n "$YACC" && break
846 done
847 test -n "$YACC" || YACC="yacc"
848
849 # Extract the first word of "flex", so it can be a program name with args.
850 set dummy flex; ac_word=$2
851 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
852 echo "configure:829: checking for $ac_word" >&5
853 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
854 echo $ac_n "(cached) $ac_c" 1>&6
855 else
856 if test -n "$LEX"; then
857 ac_cv_prog_LEX="$LEX" # Let the user override the test.
858 else
859 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
860 for ac_dir in $PATH; do
861 test -z "$ac_dir" && ac_dir=.
862 if test -f $ac_dir/$ac_word; then
863 ac_cv_prog_LEX="flex"
864 break
865 fi
866 done
867 IFS="$ac_save_ifs"
868 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
869 fi
870 fi
871 LEX="$ac_cv_prog_LEX"
872 if test -n "$LEX"; then
873 echo "$ac_t""$LEX" 1>&6
874 else
875 echo "$ac_t""no" 1>&6
876 fi
877
878 if test -z "$LEXLIB"
879 then
880 case "$LEX" in
881 flex*) ac_lib=fl ;;
882 *) ac_lib=l ;;
883 esac
884 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
885 echo "configure:862: checking for yywrap in -l$ac_lib" >&5
886 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
887 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
888 echo $ac_n "(cached) $ac_c" 1>&6
889 else
890 ac_save_LIBS="$LIBS"
891 LIBS="-l$ac_lib $LIBS"
892 cat > conftest.$ac_ext <<EOF
893 #line 870 "configure"
894 #include "confdefs.h"
895 /* Override any gcc2 internal prototype to avoid an error. */
896 /* We use char because int might match the return type of a gcc2
897 builtin and then its argument prototype would still apply. */
898 char yywrap();
899
900 int main() {
901 yywrap()
902 ; return 0; }
903 EOF
904 if { (eval echo configure:881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
905 rm -rf conftest*
906 eval "ac_cv_lib_$ac_lib_var=yes"
907 else
908 echo "configure: failed program was:" >&5
909 cat conftest.$ac_ext >&5
910 rm -rf conftest*
911 eval "ac_cv_lib_$ac_lib_var=no"
912 fi
913 rm -f conftest*
914 LIBS="$ac_save_LIBS"
915
916 fi
917 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
918 echo "$ac_t""yes" 1>&6
919 LEXLIB="-l$ac_lib"
920 else
921 echo "$ac_t""no" 1>&6
922 fi
923
924 fi
925
926 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
927 echo "configure:904: checking whether ln -s works" >&5
928 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
929 echo $ac_n "(cached) $ac_c" 1>&6
930 else
931 rm -f conftestdata
932 if ln -s X conftestdata 2>/dev/null
933 then
934 rm -f conftestdata
935 ac_cv_prog_LN_S="ln -s"
936 else
937 ac_cv_prog_LN_S=ln
938 fi
939 fi
940 LN_S="$ac_cv_prog_LN_S"
941 if test "$ac_cv_prog_LN_S" = "ln -s"; then
942 echo "$ac_t""yes" 1>&6
943 else
944 echo "$ac_t""no" 1>&6
945 fi
946
947 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
948 echo "configure:925: checking whether ${MAKE-make} sets \${MAKE}" >&5
949 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
950 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
951 echo $ac_n "(cached) $ac_c" 1>&6
952 else
953 cat > conftestmake <<\EOF
954 all:
955 @echo 'ac_maketemp="${MAKE}"'
956 EOF
957 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
958 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
959 if test -n "$ac_maketemp"; then
960 eval ac_cv_prog_make_${ac_make}_set=yes
961 else
962 eval ac_cv_prog_make_${ac_make}_set=no
963 fi
964 rm -f conftestmake
965 fi
966 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
967 echo "$ac_t""yes" 1>&6
968 SET_MAKE=
969 else
970 echo "$ac_t""no" 1>&6
971 SET_MAKE="MAKE=${MAKE-make}"
972 fi
973
974 # Extract the first word of "ranlib", so it can be a program name with args.
975 set dummy ranlib; ac_word=$2
976 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
977 echo "configure:954: checking for $ac_word" >&5
978 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
979 echo $ac_n "(cached) $ac_c" 1>&6
980 else
981 if test -n "$RANLIB"; then
982 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
983 else
984 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
985 for ac_dir in $PATH; do
986 test -z "$ac_dir" && ac_dir=.
987 if test -f $ac_dir/$ac_word; then
988 ac_cv_prog_RANLIB="ranlib"
989 break
990 fi
991 done
992 IFS="$ac_save_ifs"
993 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
994 fi
995 fi
996 RANLIB="$ac_cv_prog_RANLIB"
997 if test -n "$RANLIB"; then
998 echo "$ac_t""$RANLIB" 1>&6
999 else
1000 echo "$ac_t""no" 1>&6
1001 fi
1002
1003
1004
1005
1006 echo $ac_n "checking for main in -lFS""... $ac_c" 1>&6
1007 echo "configure:984: checking for main in -lFS" >&5
1008 ac_lib_var=`echo FS'_'main | sed 'y%./+-%__p_%'`
1009 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1010 echo $ac_n "(cached) $ac_c" 1>&6
1011 else
1012 ac_save_LIBS="$LIBS"
1013 LIBS="-lFS $LIBS"
1014 cat > conftest.$ac_ext <<EOF
1015 #line 992 "configure"
1016 #include "confdefs.h"
1017
1018 int main() {
1019 main()
1020 ; return 0; }
1021 EOF
1022 if { (eval echo configure:999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1023 rm -rf conftest*
1024 eval "ac_cv_lib_$ac_lib_var=yes"
1025 else
1026 echo "configure: failed program was:" >&5
1027 cat conftest.$ac_ext >&5
1028 rm -rf conftest*
1029 eval "ac_cv_lib_$ac_lib_var=no"
1030 fi
1031 rm -f conftest*
1032 LIBS="$ac_save_LIBS"
1033
1034 fi
1035 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1036 echo "$ac_t""yes" 1>&6
1037 ac_tr_lib=HAVE_LIB`echo FS | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1038 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1039 cat >> confdefs.h <<EOF
1040 #define $ac_tr_lib 1
1041 EOF
1042
1043 LIBS="-lFS $LIBS"
1044
1045 else
1046 echo "$ac_t""no" 1>&6
1047 fi
1048
1049 echo $ac_n "checking for main in -lFresco""... $ac_c" 1>&6
1050 echo "configure:1027: checking for main in -lFresco" >&5
1051 ac_lib_var=`echo Fresco'_'main | sed 'y%./+-%__p_%'`
1052 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1053 echo $ac_n "(cached) $ac_c" 1>&6
1054 else
1055 ac_save_LIBS="$LIBS"
1056 LIBS="-lFresco $LIBS"
1057 cat > conftest.$ac_ext <<EOF
1058 #line 1035 "configure"
1059 #include "confdefs.h"
1060
1061 int main() {
1062 main()
1063 ; return 0; }
1064 EOF
1065 if { (eval echo configure:1042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1066 rm -rf conftest*
1067 eval "ac_cv_lib_$ac_lib_var=yes"
1068 else
1069 echo "configure: failed program was:" >&5
1070 cat conftest.$ac_ext >&5
1071 rm -rf conftest*
1072 eval "ac_cv_lib_$ac_lib_var=no"
1073 fi
1074 rm -f conftest*
1075 LIBS="$ac_save_LIBS"
1076
1077 fi
1078 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1079 echo "$ac_t""yes" 1>&6
1080 ac_tr_lib=HAVE_LIB`echo Fresco | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1081 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1082 cat >> confdefs.h <<EOF
1083 #define $ac_tr_lib 1
1084 EOF
1085
1086 LIBS="-lFresco $LIBS"
1087
1088 else
1089 echo "$ac_t""no" 1>&6
1090 fi
1091
1092 echo $ac_n "checking for main in -lICE""... $ac_c" 1>&6
1093 echo "configure:1070: checking for main in -lICE" >&5
1094 ac_lib_var=`echo ICE'_'main | sed 'y%./+-%__p_%'`
1095 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1096 echo $ac_n "(cached) $ac_c" 1>&6
1097 else
1098 ac_save_LIBS="$LIBS"
1099 LIBS="-lICE $LIBS"
1100 cat > conftest.$ac_ext <<EOF
1101 #line 1078 "configure"
1102 #include "confdefs.h"
1103
1104 int main() {
1105 main()
1106 ; return 0; }
1107 EOF
1108 if { (eval echo configure:1085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1109 rm -rf conftest*
1110 eval "ac_cv_lib_$ac_lib_var=yes"
1111 else
1112 echo "configure: failed program was:" >&5
1113 cat conftest.$ac_ext >&5
1114 rm -rf conftest*
1115 eval "ac_cv_lib_$ac_lib_var=no"
1116 fi
1117 rm -f conftest*
1118 LIBS="$ac_save_LIBS"
1119
1120 fi
1121 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1122 echo "$ac_t""yes" 1>&6
1123 ac_tr_lib=HAVE_LIB`echo ICE | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1124 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1125 cat >> confdefs.h <<EOF
1126 #define $ac_tr_lib 1
1127 EOF
1128
1129 LIBS="-lICE $LIBS"
1130
1131 else
1132 echo "$ac_t""no" 1>&6
1133 fi
1134
1135 echo $ac_n "checking for main in -lPEX5""... $ac_c" 1>&6
1136 echo "configure:1113: checking for main in -lPEX5" >&5
1137 ac_lib_var=`echo PEX5'_'main | sed 'y%./+-%__p_%'`
1138 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1139 echo $ac_n "(cached) $ac_c" 1>&6
1140 else
1141 ac_save_LIBS="$LIBS"
1142 LIBS="-lPEX5 $LIBS"
1143 cat > conftest.$ac_ext <<EOF
1144 #line 1121 "configure"
1145 #include "confdefs.h"
1146
1147 int main() {
1148 main()
1149 ; return 0; }
1150 EOF
1151 if { (eval echo configure:1128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1152 rm -rf conftest*
1153 eval "ac_cv_lib_$ac_lib_var=yes"
1154 else
1155 echo "configure: failed program was:" >&5
1156 cat conftest.$ac_ext >&5
1157 rm -rf conftest*
1158 eval "ac_cv_lib_$ac_lib_var=no"
1159 fi
1160 rm -f conftest*
1161 LIBS="$ac_save_LIBS"
1162
1163 fi
1164 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1165 echo "$ac_t""yes" 1>&6
1166 ac_tr_lib=HAVE_LIB`echo PEX5 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1167 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1168 cat >> confdefs.h <<EOF
1169 #define $ac_tr_lib 1
1170 EOF
1171
1172 LIBS="-lPEX5 $LIBS"
1173
1174 else
1175 echo "$ac_t""no" 1>&6
1176 fi
1177
1178 echo $ac_n "checking for main in -lSM""... $ac_c" 1>&6
1179 echo "configure:1156: checking for main in -lSM" >&5
1180 ac_lib_var=`echo SM'_'main | sed 'y%./+-%__p_%'`
1181 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1182 echo $ac_n "(cached) $ac_c" 1>&6
1183 else
1184 ac_save_LIBS="$LIBS"
1185 LIBS="-lSM $LIBS"
1186 cat > conftest.$ac_ext <<EOF
1187 #line 1164 "configure"
1188 #include "confdefs.h"
1189
1190 int main() {
1191 main()
1192 ; return 0; }
1193 EOF
1194 if { (eval echo configure:1171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1195 rm -rf conftest*
1196 eval "ac_cv_lib_$ac_lib_var=yes"
1197 else
1198 echo "configure: failed program was:" >&5
1199 cat conftest.$ac_ext >&5
1200 rm -rf conftest*
1201 eval "ac_cv_lib_$ac_lib_var=no"
1202 fi
1203 rm -f conftest*
1204 LIBS="$ac_save_LIBS"
1205
1206 fi
1207 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1208 echo "$ac_t""yes" 1>&6
1209 ac_tr_lib=HAVE_LIB`echo SM | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1210 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1211 cat >> confdefs.h <<EOF
1212 #define $ac_tr_lib 1
1213 EOF
1214
1215 LIBS="-lSM $LIBS"
1216
1217 else
1218 echo "$ac_t""no" 1>&6
1219 fi
1220
1221 echo $ac_n "checking for main in -lX11""... $ac_c" 1>&6
1222 echo "configure:1199: checking for main in -lX11" >&5
1223 ac_lib_var=`echo X11'_'main | sed 'y%./+-%__p_%'`
1224 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1225 echo $ac_n "(cached) $ac_c" 1>&6
1226 else
1227 ac_save_LIBS="$LIBS"
1228 LIBS="-lX11 $LIBS"
1229 cat > conftest.$ac_ext <<EOF
1230 #line 1207 "configure"
1231 #include "confdefs.h"
1232
1233 int main() {
1234 main()
1235 ; return 0; }
1236 EOF
1237 if { (eval echo configure:1214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1238 rm -rf conftest*
1239 eval "ac_cv_lib_$ac_lib_var=yes"
1240 else
1241 echo "configure: failed program was:" >&5
1242 cat conftest.$ac_ext >&5
1243 rm -rf conftest*
1244 eval "ac_cv_lib_$ac_lib_var=no"
1245 fi
1246 rm -f conftest*
1247 LIBS="$ac_save_LIBS"
1248
1249 fi
1250 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1251 echo "$ac_t""yes" 1>&6
1252 ac_tr_lib=HAVE_LIB`echo X11 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1253 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1254 cat >> confdefs.h <<EOF
1255 #define $ac_tr_lib 1
1256 EOF
1257
1258 LIBS="-lX11 $LIBS"
1259
1260 else
1261 echo "$ac_t""no" 1>&6
1262 fi
1263
1264 echo $ac_n "checking for main in -lXIE""... $ac_c" 1>&6
1265 echo "configure:1242: checking for main in -lXIE" >&5
1266 ac_lib_var=`echo XIE'_'main | sed 'y%./+-%__p_%'`
1267 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1268 echo $ac_n "(cached) $ac_c" 1>&6
1269 else
1270 ac_save_LIBS="$LIBS"
1271 LIBS="-lXIE $LIBS"
1272 cat > conftest.$ac_ext <<EOF
1273 #line 1250 "configure"
1274 #include "confdefs.h"
1275
1276 int main() {
1277 main()
1278 ; return 0; }
1279 EOF
1280 if { (eval echo configure:1257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1281 rm -rf conftest*
1282 eval "ac_cv_lib_$ac_lib_var=yes"
1283 else
1284 echo "configure: failed program was:" >&5
1285 cat conftest.$ac_ext >&5
1286 rm -rf conftest*
1287 eval "ac_cv_lib_$ac_lib_var=no"
1288 fi
1289 rm -f conftest*
1290 LIBS="$ac_save_LIBS"
1291
1292 fi
1293 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1294 echo "$ac_t""yes" 1>&6
1295 ac_tr_lib=HAVE_LIB`echo XIE | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1296 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1297 cat >> confdefs.h <<EOF
1298 #define $ac_tr_lib 1
1299 EOF
1300
1301 LIBS="-lXIE $LIBS"
1302
1303 else
1304 echo "$ac_t""no" 1>&6
1305 fi
1306
1307 echo $ac_n "checking for main in -lXau""... $ac_c" 1>&6
1308 echo "configure:1285: checking for main in -lXau" >&5
1309 ac_lib_var=`echo Xau'_'main | sed 'y%./+-%__p_%'`
1310 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1311 echo $ac_n "(cached) $ac_c" 1>&6
1312 else
1313 ac_save_LIBS="$LIBS"
1314 LIBS="-lXau $LIBS"
1315 cat > conftest.$ac_ext <<EOF
1316 #line 1293 "configure"
1317 #include "confdefs.h"
1318
1319 int main() {
1320 main()
1321 ; return 0; }
1322 EOF
1323 if { (eval echo configure:1300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1324 rm -rf conftest*
1325 eval "ac_cv_lib_$ac_lib_var=yes"
1326 else
1327 echo "configure: failed program was:" >&5
1328 cat conftest.$ac_ext >&5
1329 rm -rf conftest*
1330 eval "ac_cv_lib_$ac_lib_var=no"
1331 fi
1332 rm -f conftest*
1333 LIBS="$ac_save_LIBS"
1334
1335 fi
1336 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1337 echo "$ac_t""yes" 1>&6
1338 ac_tr_lib=HAVE_LIB`echo Xau | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1339 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1340 cat >> confdefs.h <<EOF
1341 #define $ac_tr_lib 1
1342 EOF
1343
1344 LIBS="-lXau $LIBS"
1345
1346 else
1347 echo "$ac_t""no" 1>&6
1348 fi
1349
1350 echo $ac_n "checking for main in -lXaw""... $ac_c" 1>&6
1351 echo "configure:1328: checking for main in -lXaw" >&5
1352 ac_lib_var=`echo Xaw'_'main | sed 'y%./+-%__p_%'`
1353 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1354 echo $ac_n "(cached) $ac_c" 1>&6
1355 else
1356 ac_save_LIBS="$LIBS"
1357 LIBS="-lXaw $LIBS"
1358 cat > conftest.$ac_ext <<EOF
1359 #line 1336 "configure"
1360 #include "confdefs.h"
1361
1362 int main() {
1363 main()
1364 ; return 0; }
1365 EOF
1366 if { (eval echo configure:1343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1367 rm -rf conftest*
1368 eval "ac_cv_lib_$ac_lib_var=yes"
1369 else
1370 echo "configure: failed program was:" >&5
1371 cat conftest.$ac_ext >&5
1372 rm -rf conftest*
1373 eval "ac_cv_lib_$ac_lib_var=no"
1374 fi
1375 rm -f conftest*
1376 LIBS="$ac_save_LIBS"
1377
1378 fi
1379 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1380 echo "$ac_t""yes" 1>&6
1381 ac_tr_lib=HAVE_LIB`echo Xaw | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1382 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1383 cat >> confdefs.h <<EOF
1384 #define $ac_tr_lib 1
1385 EOF
1386
1387 LIBS="-lXaw $LIBS"
1388
1389 else
1390 echo "$ac_t""no" 1>&6
1391 fi
1392
1393 echo $ac_n "checking for main in -lXbsd""... $ac_c" 1>&6
1394 echo "configure:1371: checking for main in -lXbsd" >&5
1395 ac_lib_var=`echo Xbsd'_'main | sed 'y%./+-%__p_%'`
1396 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1397 echo $ac_n "(cached) $ac_c" 1>&6
1398 else
1399 ac_save_LIBS="$LIBS"
1400 LIBS="-lXbsd $LIBS"
1401 cat > conftest.$ac_ext <<EOF
1402 #line 1379 "configure"
1403 #include "confdefs.h"
1404
1405 int main() {
1406 main()
1407 ; return 0; }
1408 EOF
1409 if { (eval echo configure:1386: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1410 rm -rf conftest*
1411 eval "ac_cv_lib_$ac_lib_var=yes"
1412 else
1413 echo "configure: failed program was:" >&5
1414 cat conftest.$ac_ext >&5
1415 rm -rf conftest*
1416 eval "ac_cv_lib_$ac_lib_var=no"
1417 fi
1418 rm -f conftest*
1419 LIBS="$ac_save_LIBS"
1420
1421 fi
1422 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1423 echo "$ac_t""yes" 1>&6
1424 ac_tr_lib=HAVE_LIB`echo Xbsd | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1425 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1426 cat >> confdefs.h <<EOF
1427 #define $ac_tr_lib 1
1428 EOF
1429
1430 LIBS="-lXbsd $LIBS"
1431
1432 else
1433 echo "$ac_t""no" 1>&6
1434 fi
1435
1436 echo $ac_n "checking for main in -lXdmcp""... $ac_c" 1>&6
1437 echo "configure:1414: checking for main in -lXdmcp" >&5
1438 ac_lib_var=`echo Xdmcp'_'main | sed 'y%./+-%__p_%'`
1439 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1440 echo $ac_n "(cached) $ac_c" 1>&6
1441 else
1442 ac_save_LIBS="$LIBS"
1443 LIBS="-lXdmcp $LIBS"
1444 cat > conftest.$ac_ext <<EOF
1445 #line 1422 "configure"
1446 #include "confdefs.h"
1447
1448 int main() {
1449 main()
1450 ; return 0; }
1451 EOF
1452 if { (eval echo configure:1429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1453 rm -rf conftest*
1454 eval "ac_cv_lib_$ac_lib_var=yes"
1455 else
1456 echo "configure: failed program was:" >&5
1457 cat conftest.$ac_ext >&5
1458 rm -rf conftest*
1459 eval "ac_cv_lib_$ac_lib_var=no"
1460 fi
1461 rm -f conftest*
1462 LIBS="$ac_save_LIBS"
1463
1464 fi
1465 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1466 echo "$ac_t""yes" 1>&6
1467 ac_tr_lib=HAVE_LIB`echo Xdmcp | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1468 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1469 cat >> confdefs.h <<EOF
1470 #define $ac_tr_lib 1
1471 EOF
1472
1473 LIBS="-lXdmcp $LIBS"
1474
1475 else
1476 echo "$ac_t""no" 1>&6
1477 fi
1478
1479 echo $ac_n "checking for main in -lXext""... $ac_c" 1>&6
1480 echo "configure:1457: checking for main in -lXext" >&5
1481 ac_lib_var=`echo Xext'_'main | sed 'y%./+-%__p_%'`
1482 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1483 echo $ac_n "(cached) $ac_c" 1>&6
1484 else
1485 ac_save_LIBS="$LIBS"
1486 LIBS="-lXext $LIBS"
1487 cat > conftest.$ac_ext <<EOF
1488 #line 1465 "configure"
1489 #include "confdefs.h"
1490
1491 int main() {
1492 main()
1493 ; return 0; }
1494 EOF
1495 if { (eval echo configure:1472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1496 rm -rf conftest*
1497 eval "ac_cv_lib_$ac_lib_var=yes"
1498 else
1499 echo "configure: failed program was:" >&5
1500 cat conftest.$ac_ext >&5
1501 rm -rf conftest*
1502 eval "ac_cv_lib_$ac_lib_var=no"
1503 fi
1504 rm -f conftest*
1505 LIBS="$ac_save_LIBS"
1506
1507 fi
1508 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1509 echo "$ac_t""yes" 1>&6
1510 ac_tr_lib=HAVE_LIB`echo Xext | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1511 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1512 cat >> confdefs.h <<EOF
1513 #define $ac_tr_lib 1
1514 EOF
1515
1516 LIBS="-lXext $LIBS"
1517
1518 else
1519 echo "$ac_t""no" 1>&6
1520 fi
1521
1522 echo $ac_n "checking for main in -lXi""... $ac_c" 1>&6
1523 echo "configure:1500: checking for main in -lXi" >&5
1524 ac_lib_var=`echo Xi'_'main | sed 'y%./+-%__p_%'`
1525 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1526 echo $ac_n "(cached) $ac_c" 1>&6
1527 else
1528 ac_save_LIBS="$LIBS"
1529 LIBS="-lXi $LIBS"
1530 cat > conftest.$ac_ext <<EOF
1531 #line 1508 "configure"
1532 #include "confdefs.h"
1533
1534 int main() {
1535 main()
1536 ; return 0; }
1537 EOF
1538 if { (eval echo configure:1515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1539 rm -rf conftest*
1540 eval "ac_cv_lib_$ac_lib_var=yes"
1541 else
1542 echo "configure: failed program was:" >&5
1543 cat conftest.$ac_ext >&5
1544 rm -rf conftest*
1545 eval "ac_cv_lib_$ac_lib_var=no"
1546 fi
1547 rm -f conftest*
1548 LIBS="$ac_save_LIBS"
1549
1550 fi
1551 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1552 echo "$ac_t""yes" 1>&6
1553 ac_tr_lib=HAVE_LIB`echo Xi | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1554 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1555 cat >> confdefs.h <<EOF
1556 #define $ac_tr_lib 1
1557 EOF
1558
1559 LIBS="-lXi $LIBS"
1560
1561 else
1562 echo "$ac_t""no" 1>&6
1563 fi
1564
1565 echo $ac_n "checking for main in -lXmu""... $ac_c" 1>&6
1566 echo "configure:1543: checking for main in -lXmu" >&5
1567 ac_lib_var=`echo Xmu'_'main | sed 'y%./+-%__p_%'`
1568 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1569 echo $ac_n "(cached) $ac_c" 1>&6
1570 else
1571 ac_save_LIBS="$LIBS"
1572 LIBS="-lXmu $LIBS"
1573 cat > conftest.$ac_ext <<EOF
1574 #line 1551 "configure"
1575 #include "confdefs.h"
1576
1577 int main() {
1578 main()
1579 ; return 0; }
1580 EOF
1581 if { (eval echo configure:1558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1582 rm -rf conftest*
1583 eval "ac_cv_lib_$ac_lib_var=yes"
1584 else
1585 echo "configure: failed program was:" >&5
1586 cat conftest.$ac_ext >&5
1587 rm -rf conftest*
1588 eval "ac_cv_lib_$ac_lib_var=no"
1589 fi
1590 rm -f conftest*
1591 LIBS="$ac_save_LIBS"
1592
1593 fi
1594 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1595 echo "$ac_t""yes" 1>&6
1596 ac_tr_lib=HAVE_LIB`echo Xmu | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1597 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1598 cat >> confdefs.h <<EOF
1599 #define $ac_tr_lib 1
1600 EOF
1601
1602 LIBS="-lXmu $LIBS"
1603
1604 else
1605 echo "$ac_t""no" 1>&6
1606 fi
1607
1608 echo $ac_n "checking for main in -lXt""... $ac_c" 1>&6
1609 echo "configure:1586: checking for main in -lXt" >&5
1610 ac_lib_var=`echo Xt'_'main | sed 'y%./+-%__p_%'`
1611 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1612 echo $ac_n "(cached) $ac_c" 1>&6
1613 else
1614 ac_save_LIBS="$LIBS"
1615 LIBS="-lXt $LIBS"
1616 cat > conftest.$ac_ext <<EOF
1617 #line 1594 "configure"
1618 #include "confdefs.h"
1619
1620 int main() {
1621 main()
1622 ; return 0; }
1623 EOF
1624 if { (eval echo configure:1601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1625 rm -rf conftest*
1626 eval "ac_cv_lib_$ac_lib_var=yes"
1627 else
1628 echo "configure: failed program was:" >&5
1629 cat conftest.$ac_ext >&5
1630 rm -rf conftest*
1631 eval "ac_cv_lib_$ac_lib_var=no"
1632 fi
1633 rm -f conftest*
1634 LIBS="$ac_save_LIBS"
1635
1636 fi
1637 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1638 echo "$ac_t""yes" 1>&6
1639 ac_tr_lib=HAVE_LIB`echo Xt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1640 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1641 cat >> confdefs.h <<EOF
1642 #define $ac_tr_lib 1
1643 EOF
1644
1645 LIBS="-lXt $LIBS"
1646
1647 else
1648 echo "$ac_t""no" 1>&6
1649 fi
1650
1651 echo $ac_n "checking for main in -lXtf""... $ac_c" 1>&6
1652 echo "configure:1629: checking for main in -lXtf" >&5
1653 ac_lib_var=`echo Xtf'_'main | sed 'y%./+-%__p_%'`
1654 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1655 echo $ac_n "(cached) $ac_c" 1>&6
1656 else
1657 ac_save_LIBS="$LIBS"
1658 LIBS="-lXtf $LIBS"
1659 cat > conftest.$ac_ext <<EOF
1660 #line 1637 "configure"
1661 #include "confdefs.h"
1662
1663 int main() {
1664 main()
1665 ; return 0; }
1666 EOF
1667 if { (eval echo configure:1644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1668 rm -rf conftest*
1669 eval "ac_cv_lib_$ac_lib_var=yes"
1670 else
1671 echo "configure: failed program was:" >&5
1672 cat conftest.$ac_ext >&5
1673 rm -rf conftest*
1674 eval "ac_cv_lib_$ac_lib_var=no"
1675 fi
1676 rm -f conftest*
1677 LIBS="$ac_save_LIBS"
1678
1679 fi
1680 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1681 echo "$ac_t""yes" 1>&6
1682 ac_tr_lib=HAVE_LIB`echo Xtf | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1683 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1684 cat >> confdefs.h <<EOF
1685 #define $ac_tr_lib 1
1686 EOF
1687
1688 LIBS="-lXtf $LIBS"
1689
1690 else
1691 echo "$ac_t""no" 1>&6
1692 fi
1693
1694 echo $ac_n "checking for main in -lXtst""... $ac_c" 1>&6
1695 echo "configure:1672: checking for main in -lXtst" >&5
1696 ac_lib_var=`echo Xtst'_'main | sed 'y%./+-%__p_%'`
1697 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1698 echo $ac_n "(cached) $ac_c" 1>&6
1699 else
1700 ac_save_LIBS="$LIBS"
1701 LIBS="-lXtst $LIBS"
1702 cat > conftest.$ac_ext <<EOF
1703 #line 1680 "configure"
1704 #include "confdefs.h"
1705
1706 int main() {
1707 main()
1708 ; return 0; }
1709 EOF
1710 if { (eval echo configure:1687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1711 rm -rf conftest*
1712 eval "ac_cv_lib_$ac_lib_var=yes"
1713 else
1714 echo "configure: failed program was:" >&5
1715 cat conftest.$ac_ext >&5
1716 rm -rf conftest*
1717 eval "ac_cv_lib_$ac_lib_var=no"
1718 fi
1719 rm -f conftest*
1720 LIBS="$ac_save_LIBS"
1721
1722 fi
1723 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1724 echo "$ac_t""yes" 1>&6
1725 ac_tr_lib=HAVE_LIB`echo Xtst | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1726 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1727 cat >> confdefs.h <<EOF
1728 #define $ac_tr_lib 1
1729 EOF
1730
1731 LIBS="-lXtst $LIBS"
1732
1733 else
1734 echo "$ac_t""no" 1>&6
1735 fi
1736
1737 echo $ac_n "checking for main in -lcurses""... $ac_c" 1>&6
1738 echo "configure:1715: checking for main in -lcurses" >&5
1739 ac_lib_var=`echo curses'_'main | sed 'y%./+-%__p_%'`
1740 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1741 echo $ac_n "(cached) $ac_c" 1>&6
1742 else
1743 ac_save_LIBS="$LIBS"
1744 LIBS="-lcurses $LIBS"
1745 cat > conftest.$ac_ext <<EOF
1746 #line 1723 "configure"
1747 #include "confdefs.h"
1748
1749 int main() {
1750 main()
1751 ; return 0; }
1752 EOF
1753 if { (eval echo configure:1730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1754 rm -rf conftest*
1755 eval "ac_cv_lib_$ac_lib_var=yes"
1756 else
1757 echo "configure: failed program was:" >&5
1758 cat conftest.$ac_ext >&5
1759 rm -rf conftest*
1760 eval "ac_cv_lib_$ac_lib_var=no"
1761 fi
1762 rm -f conftest*
1763 LIBS="$ac_save_LIBS"
1764
1765 fi
1766 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1767 echo "$ac_t""yes" 1>&6
1768 ac_tr_lib=HAVE_LIB`echo curses | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1769 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1770 cat >> confdefs.h <<EOF
1771 #define $ac_tr_lib 1
1772 EOF
1773
1774 LIBS="-lcurses $LIBS"
1775
1776 else
1777 echo "$ac_t""no" 1>&6
1778 fi
1779
1780 echo $ac_n "checking for main in -lfl""... $ac_c" 1>&6
1781 echo "configure:1758: checking for main in -lfl" >&5
1782 ac_lib_var=`echo fl'_'main | sed 'y%./+-%__p_%'`
1783 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1784 echo $ac_n "(cached) $ac_c" 1>&6
1785 else
1786 ac_save_LIBS="$LIBS"
1787 LIBS="-lfl $LIBS"
1788 cat > conftest.$ac_ext <<EOF
1789 #line 1766 "configure"
1790 #include "confdefs.h"
1791
1792 int main() {
1793 main()
1794 ; return 0; }
1795 EOF
1796 if { (eval echo configure:1773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1797 rm -rf conftest*
1798 eval "ac_cv_lib_$ac_lib_var=yes"
1799 else
1800 echo "configure: failed program was:" >&5
1801 cat conftest.$ac_ext >&5
1802 rm -rf conftest*
1803 eval "ac_cv_lib_$ac_lib_var=no"
1804 fi
1805 rm -f conftest*
1806 LIBS="$ac_save_LIBS"
1807
1808 fi
1809 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1810 echo "$ac_t""yes" 1>&6
1811 ac_tr_lib=HAVE_LIB`echo fl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1812 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1813 cat >> confdefs.h <<EOF
1814 #define $ac_tr_lib 1
1815 EOF
1816
1817 LIBS="-lfl $LIBS"
1818
1819 else
1820 echo "$ac_t""no" 1>&6
1821 fi
1822
1823 echo $ac_n "checking for main in -lfont""... $ac_c" 1>&6
1824 echo "configure:1801: checking for main in -lfont" >&5
1825 ac_lib_var=`echo font'_'main | sed 'y%./+-%__p_%'`
1826 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1827 echo $ac_n "(cached) $ac_c" 1>&6
1828 else
1829 ac_save_LIBS="$LIBS"
1830 LIBS="-lfont $LIBS"
1831 cat > conftest.$ac_ext <<EOF
1832 #line 1809 "configure"
1833 #include "confdefs.h"
1834
1835 int main() {
1836 main()
1837 ; return 0; }
1838 EOF
1839 if { (eval echo configure:1816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1840 rm -rf conftest*
1841 eval "ac_cv_lib_$ac_lib_var=yes"
1842 else
1843 echo "configure: failed program was:" >&5
1844 cat conftest.$ac_ext >&5
1845 rm -rf conftest*
1846 eval "ac_cv_lib_$ac_lib_var=no"
1847 fi
1848 rm -f conftest*
1849 LIBS="$ac_save_LIBS"
1850
1851 fi
1852 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1853 echo "$ac_t""yes" 1>&6
1854 ac_tr_lib=HAVE_LIB`echo font | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1855 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1856 cat >> confdefs.h <<EOF
1857 #define $ac_tr_lib 1
1858 EOF
1859
1860 LIBS="-lfont $LIBS"
1861
1862 else
1863 echo "$ac_t""no" 1>&6
1864 fi
1865
1866 echo $ac_n "checking for main in -loldX""... $ac_c" 1>&6
1867 echo "configure:1844: checking for main in -loldX" >&5
1868 ac_lib_var=`echo oldX'_'main | sed 'y%./+-%__p_%'`
1869 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1870 echo $ac_n "(cached) $ac_c" 1>&6
1871 else
1872 ac_save_LIBS="$LIBS"
1873 LIBS="-loldX $LIBS"
1874 cat > conftest.$ac_ext <<EOF
1875 #line 1852 "configure"
1876 #include "confdefs.h"
1877
1878 int main() {
1879 main()
1880 ; return 0; }
1881 EOF
1882 if { (eval echo configure:1859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1883 rm -rf conftest*
1884 eval "ac_cv_lib_$ac_lib_var=yes"
1885 else
1886 echo "configure: failed program was:" >&5
1887 cat conftest.$ac_ext >&5
1888 rm -rf conftest*
1889 eval "ac_cv_lib_$ac_lib_var=no"
1890 fi
1891 rm -f conftest*
1892 LIBS="$ac_save_LIBS"
1893
1894 fi
1895 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1896 echo "$ac_t""yes" 1>&6
1897 ac_tr_lib=HAVE_LIB`echo oldX | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1898 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1899 cat >> confdefs.h <<EOF
1900 #define $ac_tr_lib 1
1901 EOF
1902
1903 LIBS="-loldX $LIBS"
1904
1905 else
1906 echo "$ac_t""no" 1>&6
1907 fi
1908
1909 echo $ac_n "checking for main in -lphigs""... $ac_c" 1>&6
1910 echo "configure:1887: checking for main in -lphigs" >&5
1911 ac_lib_var=`echo phigs'_'main | sed 'y%./+-%__p_%'`
1912 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1913 echo $ac_n "(cached) $ac_c" 1>&6
1914 else
1915 ac_save_LIBS="$LIBS"
1916 LIBS="-lphigs $LIBS"
1917 cat > conftest.$ac_ext <<EOF
1918 #line 1895 "configure"
1919 #include "confdefs.h"
1920
1921 int main() {
1922 main()
1923 ; return 0; }
1924 EOF
1925 if { (eval echo configure:1902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1926 rm -rf conftest*
1927 eval "ac_cv_lib_$ac_lib_var=yes"
1928 else
1929 echo "configure: failed program was:" >&5
1930 cat conftest.$ac_ext >&5
1931 rm -rf conftest*
1932 eval "ac_cv_lib_$ac_lib_var=no"
1933 fi
1934 rm -f conftest*
1935 LIBS="$ac_save_LIBS"
1936
1937 fi
1938 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1939 echo "$ac_t""yes" 1>&6
1940 ac_tr_lib=HAVE_LIB`echo phigs | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1941 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1942 cat >> confdefs.h <<EOF
1943 #define $ac_tr_lib 1
1944 EOF
1945
1946 LIBS="-lphigs $LIBS"
1947
1948 else
1949 echo "$ac_t""no" 1>&6
1950 fi
1951
1952 echo $ac_n "checking for main in -lxpg4""... $ac_c" 1>&6
1953 echo "configure:1930: checking for main in -lxpg4" >&5
1954 ac_lib_var=`echo xpg4'_'main | sed 'y%./+-%__p_%'`
1955 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1956 echo $ac_n "(cached) $ac_c" 1>&6
1957 else
1958 ac_save_LIBS="$LIBS"
1959 LIBS="-lxpg4 $LIBS"
1960 cat > conftest.$ac_ext <<EOF
1961 #line 1938 "configure"
1962 #include "confdefs.h"
1963
1964 int main() {
1965 main()
1966 ; return 0; }
1967 EOF
1968 if { (eval echo configure:1945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1969 rm -rf conftest*
1970 eval "ac_cv_lib_$ac_lib_var=yes"
1971 else
1972 echo "configure: failed program was:" >&5
1973 cat conftest.$ac_ext >&5
1974 rm -rf conftest*
1975 eval "ac_cv_lib_$ac_lib_var=no"
1976 fi
1977 rm -f conftest*
1978 LIBS="$ac_save_LIBS"
1979
1980 fi
1981 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1982 echo "$ac_t""yes" 1>&6
1983 ac_tr_lib=HAVE_LIB`echo xpg4 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1984 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1985 cat >> confdefs.h <<EOF
1986 #define $ac_tr_lib 1
1987 EOF
1988
1989 LIBS="-lxpg4 $LIBS"
1990
1991 else
1992 echo "$ac_t""no" 1>&6
1993 fi
1994
1995
1996 echo $ac_n "checking for main in -lcrypt""... $ac_c" 1>&6
1997 echo "configure:1974: checking for main in -lcrypt" >&5
1998 ac_lib_var=`echo crypt'_'main | sed 'y%./+-%__p_%'`
1999 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2000 echo $ac_n "(cached) $ac_c" 1>&6
2001 else
2002 ac_save_LIBS="$LIBS"
2003 LIBS="-lcrypt $LIBS"
2004 cat > conftest.$ac_ext <<EOF
2005 #line 1982 "configure"
2006 #include "confdefs.h"
2007
2008 int main() {
2009 main()
2010 ; return 0; }
2011 EOF
2012 if { (eval echo configure:1989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2013 rm -rf conftest*
2014 eval "ac_cv_lib_$ac_lib_var=yes"
2015 else
2016 echo "configure: failed program was:" >&5
2017 cat conftest.$ac_ext >&5
2018 rm -rf conftest*
2019 eval "ac_cv_lib_$ac_lib_var=no"
2020 fi
2021 rm -f conftest*
2022 LIBS="$ac_save_LIBS"
2023
2024 fi
2025 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2026 echo "$ac_t""yes" 1>&6
2027 ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2028 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2029 cat >> confdefs.h <<EOF
2030 #define $ac_tr_lib 1
2031 EOF
2032
2033 LIBS="-lcrypt $LIBS"
2034
2035 else
2036 echo "$ac_t""no" 1>&6
2037 fi
2038
2039 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
2040 echo "configure:2017: checking for main in -lsocket" >&5
2041 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
2042 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2043 echo $ac_n "(cached) $ac_c" 1>&6
2044 else
2045 ac_save_LIBS="$LIBS"
2046 LIBS="-lsocket $LIBS"
2047 cat > conftest.$ac_ext <<EOF
2048 #line 2025 "configure"
2049 #include "confdefs.h"
2050
2051 int main() {
2052 main()
2053 ; return 0; }
2054 EOF
2055 if { (eval echo configure:2032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2056 rm -rf conftest*
2057 eval "ac_cv_lib_$ac_lib_var=yes"
2058 else
2059 echo "configure: failed program was:" >&5
2060 cat conftest.$ac_ext >&5
2061 rm -rf conftest*
2062 eval "ac_cv_lib_$ac_lib_var=no"
2063 fi
2064 rm -f conftest*
2065 LIBS="$ac_save_LIBS"
2066
2067 fi
2068 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2069 echo "$ac_t""yes" 1>&6
2070 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2071 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2072 cat >> confdefs.h <<EOF
2073 #define $ac_tr_lib 1
2074 EOF
2075
2076 LIBS="-lsocket $LIBS"
2077
2078 else
2079 echo "$ac_t""no" 1>&6
2080 fi
2081
2082 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
2083 echo "configure:2060: checking for main in -lnsl" >&5
2084 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
2085 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2086 echo $ac_n "(cached) $ac_c" 1>&6
2087 else
2088 ac_save_LIBS="$LIBS"
2089 LIBS="-lnsl $LIBS"
2090 cat > conftest.$ac_ext <<EOF
2091 #line 2068 "configure"
2092 #include "confdefs.h"
2093
2094 int main() {
2095 main()
2096 ; return 0; }
2097 EOF
2098 if { (eval echo configure:2075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2099 rm -rf conftest*
2100 eval "ac_cv_lib_$ac_lib_var=yes"
2101 else
2102 echo "configure: failed program was:" >&5
2103 cat conftest.$ac_ext >&5
2104 rm -rf conftest*
2105 eval "ac_cv_lib_$ac_lib_var=no"
2106 fi
2107 rm -f conftest*
2108 LIBS="$ac_save_LIBS"
2109
2110 fi
2111 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2112 echo "$ac_t""yes" 1>&6
2113 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2114 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2115 cat >> confdefs.h <<EOF
2116 #define $ac_tr_lib 1
2117 EOF
2118
2119 LIBS="-lnsl $LIBS"
2120
2121 else
2122 echo "$ac_t""no" 1>&6
2123 fi
2124
2125
2126 # If we find X, set shell vars x_includes and x_libraries to the
2127 # paths, otherwise set no_x=yes.
2128 # Uses ac_ vars as temps to allow command line to override cache and checks.
2129 # --without-x overrides everything else, but does not touch the cache.
2130 echo $ac_n "checking for X""... $ac_c" 1>&6
2131 echo "configure:2108: checking for X" >&5
2132
2133 # Check whether --with-x or --without-x was given.
2134 if test "${with_x+set}" = set; then
2135 withval="$with_x"
2136 :
2137 fi
2138
2139 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
2140 if test "x$with_x" = xno; then
2141 # The user explicitly disabled X.
2142 have_x=disabled
2143 else
2144 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
2145 # Both variables are already set.
2146 have_x=yes
2147 else
2148 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
2149 echo $ac_n "(cached) $ac_c" 1>&6
2150 else
2151 # One or both of the vars are not set, and there is no cached value.
2152 ac_x_includes=NO ac_x_libraries=NO
2153 rm -fr conftestdir
2154 if mkdir conftestdir; then
2155 cd conftestdir
2156 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
2157 cat > Imakefile <<'EOF'
2158 acfindx:
2159 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
2160 EOF
2161 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
2162 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2163 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
2164 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
2165 for ac_extension in a so sl; do
2166 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
2167 test -f $ac_im_libdir/libX11.$ac_extension; then
2168 ac_im_usrlibdir=$ac_im_libdir; break
2169 fi
2170 done
2171 # Screen out bogus values from the imake configuration. They are
2172 # bogus both because they are the default anyway, and because
2173 # using them would break gcc on systems where it needs fixed includes.
2174 case "$ac_im_incroot" in
2175 /usr/include) ;;
2176 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
2177 esac
2178 case "$ac_im_usrlibdir" in
2179 /usr/lib | /lib) ;;
2180 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
2181 esac
2182 fi
2183 cd ..
2184 rm -fr conftestdir
2185 fi
2186
2187 if test "$ac_x_includes" = NO; then
2188 # Guess where to find include files, by looking for this one X11 .h file.
2189 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
2190
2191 # First, try using that file with no special directory specified.
2192 cat > conftest.$ac_ext <<EOF
2193 #line 2170 "configure"
2194 #include "confdefs.h"
2195 #include <$x_direct_test_include>
2196 EOF
2197 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2198 { (eval echo configure:2175: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2199 ac_err=`grep -v '^ *+' conftest.out`
2200 if test -z "$ac_err"; then
2201 rm -rf conftest*
2202 # We can compile using X headers with no special include directory.
2203 ac_x_includes=
2204 else
2205 echo "$ac_err" >&5
2206 echo "configure: failed program was:" >&5
2207 cat conftest.$ac_ext >&5
2208 rm -rf conftest*
2209 # Look for the header file in a standard set of common directories.
2210 # Check X11 before X11Rn because it is often a symlink to the current release.
2211 for ac_dir in \
2212 /usr/X11/include \
2213 /usr/X11R6/include \
2214 /usr/X11R5/include \
2215 /usr/X11R4/include \
2216 \
2217 /usr/include/X11 \
2218 /usr/include/X11R6 \
2219 /usr/include/X11R5 \
2220 /usr/include/X11R4 \
2221 \
2222 /usr/local/X11/include \
2223 /usr/local/X11R6/include \
2224 /usr/local/X11R5/include \
2225 /usr/local/X11R4/include \
2226 \
2227 /usr/local/include/X11 \
2228 /usr/local/include/X11R6 \
2229 /usr/local/include/X11R5 \
2230 /usr/local/include/X11R4 \
2231 \
2232 /usr/X386/include \
2233 /usr/x386/include \
2234 /usr/XFree86/include/X11 \
2235 \
2236 /usr/include \
2237 /usr/local/include \
2238 /usr/unsupported/include \
2239 /usr/athena/include \
2240 /usr/local/x11r5/include \
2241 /usr/lpp/Xamples/include \
2242 \
2243 /usr/openwin/include \
2244 /usr/openwin/share/include \
2245 ; \
2246 do
2247 if test -r "$ac_dir/$x_direct_test_include"; then
2248 ac_x_includes=$ac_dir
2249 break
2250 fi
2251 done
2252 fi
2253 rm -f conftest*
2254 fi # $ac_x_includes = NO
2255
2256 if test "$ac_x_libraries" = NO; then
2257 # Check for the libraries.
2258
2259 test -z "$x_direct_test_library" && x_direct_test_library=Xt
2260 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
2261
2262 # See if we find them without any special options.
2263 # Don't add to $LIBS permanently.
2264 ac_save_LIBS="$LIBS"
2265 LIBS="-l$x_direct_test_library $LIBS"
2266 cat > conftest.$ac_ext <<EOF
2267 #line 2244 "configure"
2268 #include "confdefs.h"
2269
2270 int main() {
2271 ${x_direct_test_function}()
2272 ; return 0; }
2273 EOF
2274 if { (eval echo configure:2251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2275 rm -rf conftest*
2276 LIBS="$ac_save_LIBS"
2277 # We can link X programs with no special library path.
2278 ac_x_libraries=
2279 else
2280 echo "configure: failed program was:" >&5
2281 cat conftest.$ac_ext >&5
2282 rm -rf conftest*
2283 LIBS="$ac_save_LIBS"
2284 # First see if replacing the include by lib works.
2285 # Check X11 before X11Rn because it is often a symlink to the current release.
2286 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
2287 /usr/X11/lib \
2288 /usr/X11R6/lib \
2289 /usr/X11R5/lib \
2290 /usr/X11R4/lib \
2291 \
2292 /usr/lib/X11 \
2293 /usr/lib/X11R6 \
2294 /usr/lib/X11R5 \
2295 /usr/lib/X11R4 \
2296 \
2297 /usr/local/X11/lib \
2298 /usr/local/X11R6/lib \
2299 /usr/local/X11R5/lib \
2300 /usr/local/X11R4/lib \
2301 \
2302 /usr/local/lib/X11 \
2303 /usr/local/lib/X11R6 \
2304 /usr/local/lib/X11R5 \
2305 /usr/local/lib/X11R4 \
2306 \
2307 /usr/X386/lib \
2308 /usr/x386/lib \
2309 /usr/XFree86/lib/X11 \
2310 \
2311 /usr/lib \
2312 /usr/local/lib \
2313 /usr/unsupported/lib \
2314 /usr/athena/lib \
2315 /usr/local/x11r5/lib \
2316 /usr/lpp/Xamples/lib \
2317 /lib/usr/lib/X11 \
2318 \
2319 /usr/openwin/lib \
2320 /usr/openwin/share/lib \
2321 ; \
2322 do
2323 for ac_extension in a so sl; do
2324 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
2325 ac_x_libraries=$ac_dir
2326 break 2
2327 fi
2328 done
2329 done
2330 fi
2331 rm -f conftest*
2332 fi # $ac_x_libraries = NO
2333
2334 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
2335 # Didn't find X anywhere. Cache the known absence of X.
2336 ac_cv_have_x="have_x=no"
2337 else
2338 # Record where we found X for the cache.
2339 ac_cv_have_x="have_x=yes \
2340 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
2341 fi
2342 fi
2343 fi
2344 eval "$ac_cv_have_x"
2345 fi # $with_x != no
2346
2347 if test "$have_x" != yes; then
2348 echo "$ac_t""$have_x" 1>&6
2349 no_x=yes
2350 else
2351 # If each of the values was on the command line, it overrides each guess.
2352 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
2353 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
2354 # Update the cache value to reflect the command line values.
2355 ac_cv_have_x="have_x=yes \
2356 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
2357 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
2358 fi
2359
2360 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2361 echo "configure:2338: checking for ANSI C header files" >&5
2362 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2363 echo $ac_n "(cached) $ac_c" 1>&6
2364 else
2365 cat > conftest.$ac_ext <<EOF
2366 #line 2343 "configure"
2367 #include "confdefs.h"
2368 #include <stdlib.h>
2369 #include <stdarg.h>
2370 #include <string.h>
2371 #include <float.h>
2372 EOF
2373 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2374 { (eval echo configure:2351: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2375 ac_err=`grep -v '^ *+' conftest.out`
2376 if test -z "$ac_err"; then
2377 rm -rf conftest*
2378 ac_cv_header_stdc=yes
2379 else
2380 echo "$ac_err" >&5
2381 echo "configure: failed program was:" >&5
2382 cat conftest.$ac_ext >&5
2383 rm -rf conftest*
2384 ac_cv_header_stdc=no
2385 fi
2386 rm -f conftest*
2387
2388 if test $ac_cv_header_stdc = yes; then
2389 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2390 cat > conftest.$ac_ext <<EOF
2391 #line 2368 "configure"
2392 #include "confdefs.h"
2393 #include <string.h>
2394 EOF
2395 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2396 egrep "memchr" >/dev/null 2>&1; then
2397 :
2398 else
2399 rm -rf conftest*
2400 ac_cv_header_stdc=no
2401 fi
2402 rm -f conftest*
2403
2404 fi
2405
2406 if test $ac_cv_header_stdc = yes; then
2407 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2408 cat > conftest.$ac_ext <<EOF
2409 #line 2386 "configure"
2410 #include "confdefs.h"
2411 #include <stdlib.h>
2412 EOF
2413 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2414 egrep "free" >/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 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2426 if test "$cross_compiling" = yes; then
2427 :
2428 else
2429 cat > conftest.$ac_ext <<EOF
2430 #line 2407 "configure"
2431 #include "confdefs.h"
2432 #include <ctype.h>
2433 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2434 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2435 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2436 int main () { int i; for (i = 0; i < 256; i++)
2437 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2438 exit (0); }
2439
2440 EOF
2441 if { (eval echo configure:2418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2442 then
2443 :
2444 else
2445 echo "configure: failed program was:" >&5
2446 cat conftest.$ac_ext >&5
2447 rm -fr conftest*
2448 ac_cv_header_stdc=no
2449 fi
2450 rm -fr conftest*
2451 fi
2452
2453 fi
2454 fi
2455
2456 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2457 if test $ac_cv_header_stdc = yes; then
2458 cat >> confdefs.h <<\EOF
2459 #define STDC_HEADERS 1
2460 EOF
2461
2462 fi
2463
2464 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2465 echo "configure:2442: checking for sys/wait.h that is POSIX.1 compatible" >&5
2466 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2467 echo $ac_n "(cached) $ac_c" 1>&6
2468 else
2469 cat > conftest.$ac_ext <<EOF
2470 #line 2447 "configure"
2471 #include "confdefs.h"
2472 #include <sys/types.h>
2473 #include <sys/wait.h>
2474 #ifndef WEXITSTATUS
2475 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2476 #endif
2477 #ifndef WIFEXITED
2478 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2479 #endif
2480 int main() {
2481 int s;
2482 wait (&s);
2483 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2484 ; return 0; }
2485 EOF
2486 if { (eval echo configure:2463: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2487 rm -rf conftest*
2488 ac_cv_header_sys_wait_h=yes
2489 else
2490 echo "configure: failed program was:" >&5
2491 cat conftest.$ac_ext >&5
2492 rm -rf conftest*
2493 ac_cv_header_sys_wait_h=no
2494 fi
2495 rm -f conftest*
2496 fi
2497
2498 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2499 if test $ac_cv_header_sys_wait_h = yes; then
2500 cat >> confdefs.h <<\EOF
2501 #define HAVE_SYS_WAIT_H 1
2502 EOF
2503
2504 fi
2505
2506 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
2507 do
2508 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2509 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2510 echo "configure:2487: checking for $ac_hdr" >&5
2511 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2512 echo $ac_n "(cached) $ac_c" 1>&6
2513 else
2514 cat > conftest.$ac_ext <<EOF
2515 #line 2492 "configure"
2516 #include "confdefs.h"
2517 #include <$ac_hdr>
2518 EOF
2519 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2520 { (eval echo configure:2497: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2521 ac_err=`grep -v '^ *+' conftest.out`
2522 if test -z "$ac_err"; then
2523 rm -rf conftest*
2524 eval "ac_cv_header_$ac_safe=yes"
2525 else
2526 echo "$ac_err" >&5
2527 echo "configure: failed program was:" >&5
2528 cat conftest.$ac_ext >&5
2529 rm -rf conftest*
2530 eval "ac_cv_header_$ac_safe=no"
2531 fi
2532 rm -f conftest*
2533 fi
2534 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2535 echo "$ac_t""yes" 1>&6
2536 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2537 cat >> confdefs.h <<EOF
2538 #define $ac_tr_hdr 1
2539 EOF
2540
2541 else
2542 echo "$ac_t""no" 1>&6
2543 fi
2544 done
2545
2546
2547 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
2548 echo "configure:2525: checking for mode_t" >&5
2549 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
2550 echo $ac_n "(cached) $ac_c" 1>&6
2551 else
2552 cat > conftest.$ac_ext <<EOF
2553 #line 2530 "configure"
2554 #include "confdefs.h"
2555 #include <sys/types.h>
2556 #if STDC_HEADERS
2557 #include <stdlib.h>
2558 #include <stddef.h>
2559 #endif
2560 EOF
2561 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2562 egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2563 rm -rf conftest*
2564 ac_cv_type_mode_t=yes
2565 else
2566 rm -rf conftest*
2567 ac_cv_type_mode_t=no
2568 fi
2569 rm -f conftest*
2570
2571 fi
2572 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
2573 if test $ac_cv_type_mode_t = no; then
2574 cat >> confdefs.h <<\EOF
2575 #define mode_t int
2576 EOF
2577
2578 fi
2579
2580 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2581 echo "configure:2558: checking whether time.h and sys/time.h may both be included" >&5
2582 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2583 echo $ac_n "(cached) $ac_c" 1>&6
2584 else
2585 cat > conftest.$ac_ext <<EOF
2586 #line 2563 "configure"
2587 #include "confdefs.h"
2588 #include <sys/types.h>
2589 #include <sys/time.h>
2590 #include <time.h>
2591 int main() {
2592 struct tm *tp;
2593 ; return 0; }
2594 EOF
2595 if { (eval echo configure:2572: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2596 rm -rf conftest*
2597 ac_cv_header_time=yes
2598 else
2599 echo "configure: failed program was:" >&5
2600 cat conftest.$ac_ext >&5
2601 rm -rf conftest*
2602 ac_cv_header_time=no
2603 fi
2604 rm -f conftest*
2605 fi
2606
2607 echo "$ac_t""$ac_cv_header_time" 1>&6
2608 if test $ac_cv_header_time = yes; then
2609 cat >> confdefs.h <<\EOF
2610 #define TIME_WITH_SYS_TIME 1
2611 EOF
2612
2613 fi
2614
2615
2616 if test $ac_cv_prog_gcc = yes; then
2617 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
2618 echo "configure:2595: checking whether ${CC-cc} needs -traditional" >&5
2619 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
2620 echo $ac_n "(cached) $ac_c" 1>&6
2621 else
2622 ac_pattern="Autoconf.*'x'"
2623 cat > conftest.$ac_ext <<EOF
2624 #line 2601 "configure"
2625 #include "confdefs.h"
2626 #include <sgtty.h>
2627 Autoconf TIOCGETP
2628 EOF
2629 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2630 egrep "$ac_pattern" >/dev/null 2>&1; then
2631 rm -rf conftest*
2632 ac_cv_prog_gcc_traditional=yes
2633 else
2634 rm -rf conftest*
2635 ac_cv_prog_gcc_traditional=no
2636 fi
2637 rm -f conftest*
2638
2639
2640 if test $ac_cv_prog_gcc_traditional = no; then
2641 cat > conftest.$ac_ext <<EOF
2642 #line 2619 "configure"
2643 #include "confdefs.h"
2644 #include <termio.h>
2645 Autoconf TCGETA
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 fi
2652 rm -f conftest*
2653
2654 fi
2655 fi
2656
2657 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
2658 if test $ac_cv_prog_gcc_traditional = yes; then
2659 CC="$CC -traditional"
2660 fi
2661 fi
2662
2663 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
2664 echo "configure:2641: checking for 8-bit clean memcmp" >&5
2665 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
2666 echo $ac_n "(cached) $ac_c" 1>&6
2667 else
2668 if test "$cross_compiling" = yes; then
2669 ac_cv_func_memcmp_clean=no
2670 else
2671 cat > conftest.$ac_ext <<EOF
2672 #line 2649 "configure"
2673 #include "confdefs.h"
2674
2675 main()
2676 {
2677 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
2678 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
2679 }
2680
2681 EOF
2682 if { (eval echo configure:2659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2683 then
2684 ac_cv_func_memcmp_clean=yes
2685 else
2686 echo "configure: failed program was:" >&5
2687 cat conftest.$ac_ext >&5
2688 rm -fr conftest*
2689 ac_cv_func_memcmp_clean=no
2690 fi
2691 rm -fr conftest*
2692 fi
2693
2694 fi
2695
2696 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
2697 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.o"
2698
2699 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2700 echo "configure:2677: checking return type of signal handlers" >&5
2701 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2702 echo $ac_n "(cached) $ac_c" 1>&6
2703 else
2704 cat > conftest.$ac_ext <<EOF
2705 #line 2682 "configure"
2706 #include "confdefs.h"
2707 #include <sys/types.h>
2708 #include <signal.h>
2709 #ifdef signal
2710 #undef signal
2711 #endif
2712 #ifdef __cplusplus
2713 extern "C" void (*signal (int, void (*)(int)))(int);
2714 #else
2715 void (*signal ()) ();
2716 #endif
2717
2718 int main() {
2719 int i;
2720 ; return 0; }
2721 EOF
2722 if { (eval echo configure:2699: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2723 rm -rf conftest*
2724 ac_cv_type_signal=void
2725 else
2726 echo "configure: failed program was:" >&5
2727 cat conftest.$ac_ext >&5
2728 rm -rf conftest*
2729 ac_cv_type_signal=int
2730 fi
2731 rm -f conftest*
2732 fi
2733
2734 echo "$ac_t""$ac_cv_type_signal" 1>&6
2735 cat >> confdefs.h <<EOF
2736 #define RETSIGTYPE $ac_cv_type_signal
2737 EOF
2738
2739
2740 echo $ac_n "checking for wait3 that fills in rusage""... $ac_c" 1>&6
2741 echo "configure:2718: checking for wait3 that fills in rusage" >&5
2742 if eval "test \"`echo '$''{'ac_cv_func_wait3_rusage'+set}'`\" = set"; then
2743 echo $ac_n "(cached) $ac_c" 1>&6
2744 else
2745 if test "$cross_compiling" = yes; then
2746 ac_cv_func_wait3_rusage=no
2747 else
2748 cat > conftest.$ac_ext <<EOF
2749 #line 2726 "configure"
2750 #include "confdefs.h"
2751 #include <sys/types.h>
2752 #include <sys/time.h>
2753 #include <sys/resource.h>
2754 #include <stdio.h>
2755 /* HP-UX has wait3 but does not fill in rusage at all. */
2756 main() {
2757 struct rusage r;
2758 int i;
2759 /* Use a field that we can force nonzero --
2760 voluntary context switches.
2761 For systems like NeXT and OSF/1 that don't set it,
2762 also use the system CPU time. And page faults (I/O) for Linux. */
2763 r.ru_nvcsw = 0;
2764 r.ru_stime.tv_sec = 0;
2765 r.ru_stime.tv_usec = 0;
2766 r.ru_majflt = r.ru_minflt = 0;
2767 switch (fork()) {
2768 case 0: /* Child. */
2769 sleep(1); /* Give up the CPU. */
2770 _exit(0);
2771 case -1: _exit(0); /* What can we do? */
2772 default: /* Parent. */
2773 wait3(&i, 0, &r);
2774 sleep(2); /* Avoid "text file busy" from rm on fast HP-UX machines. */
2775 exit(r.ru_nvcsw == 0 && r.ru_majflt == 0 && r.ru_minflt == 0
2776 && r.ru_stime.tv_sec == 0 && r.ru_stime.tv_usec == 0);
2777 }
2778 }
2779 EOF
2780 if { (eval echo configure:2757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2781 then
2782 ac_cv_func_wait3_rusage=yes
2783 else
2784 echo "configure: failed program was:" >&5
2785 cat conftest.$ac_ext >&5
2786 rm -fr conftest*
2787 ac_cv_func_wait3_rusage=no
2788 fi
2789 rm -fr conftest*
2790 fi
2791
2792 fi
2793
2794 echo "$ac_t""$ac_cv_func_wait3_rusage" 1>&6
2795 if test $ac_cv_func_wait3_rusage = yes; then
2796 cat >> confdefs.h <<\EOF
2797 #define HAVE_WAIT3 1
2798 EOF
2799
2800 fi
2801
2802 for ac_func in gethostname mkdir select socket strtol
2803 do
2804 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2805 echo "configure:2782: checking for $ac_func" >&5
2806 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2807 echo $ac_n "(cached) $ac_c" 1>&6
2808 else
2809 cat > conftest.$ac_ext <<EOF
2810 #line 2787 "configure"
2811 #include "confdefs.h"
2812 /* System header to define __stub macros and hopefully few prototypes,
2813 which can conflict with char $ac_func(); below. */
2814 #include <assert.h>
2815 /* Override any gcc2 internal prototype to avoid an error. */
2816 /* We use char because int might match the return type of a gcc2
2817 builtin and then its argument prototype would still apply. */
2818 char $ac_func();
2819
2820 int main() {
2821
2822 /* The GNU C library defines this for functions which it implements
2823 to always fail with ENOSYS. Some functions are actually named
2824 something starting with __ and the normal name is an alias. */
2825 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2826 choke me
2827 #else
2828 $ac_func();
2829 #endif
2830
2831 ; return 0; }
2832 EOF
2833 if { (eval echo configure:2810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2834 rm -rf conftest*
2835 eval "ac_cv_func_$ac_func=yes"
2836 else
2837 echo "configure: failed program was:" >&5
2838 cat conftest.$ac_ext >&5
2839 rm -rf conftest*
2840 eval "ac_cv_func_$ac_func=no"
2841 fi
2842 rm -f conftest*
2843 fi
2844
2845 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2846 echo "$ac_t""yes" 1>&6
2847 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2848 cat >> confdefs.h <<EOF
2849 #define $ac_tr_func 1
2850 EOF
2851
2852 else
2853 echo "$ac_t""no" 1>&6
2854 fi
2855 done
2856
2857
2858 trap '' 1 2 15
2859 cat > confcache <<\EOF
2860 # This file is a shell script that caches the results of configure
2861 # tests run on this system so they can be shared between configure
2862 # scripts and configure runs. It is not useful on other systems.
2863 # If it contains results you don't want to keep, you may remove or edit it.
2864 #
2865 # By default, configure uses ./config.cache as the cache file,
2866 # creating it if it does not exist already. You can give configure
2867 # the --cache-file=FILE option to use a different cache file; that is
2868 # what configure does when it calls configure scripts in
2869 # subdirectories, so they share the cache.
2870 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2871 # config.status only pays attention to the cache file if you give it the
2872 # --recheck option to rerun configure.
2873 #
2874 EOF
2875 # The following way of writing the cache mishandles newlines in values,
2876 # but we know of no workaround that is simple, portable, and efficient.
2877 # So, don't put newlines in cache variables' values.
2878 # Ultrix sh set writes to stderr and can't be redirected directly,
2879 # and sets the high bit in the cache file unless we assign to the vars.
2880 (set) 2>&1 |
2881 case `(ac_space=' '; set) 2>&1` in
2882 *ac_space=\ *)
2883 # `set' does not quote correctly, so add quotes (double-quote substitution
2884 # turns \\\\ into \\, and sed turns \\ into \).
2885 sed -n \
2886 -e "s/'/'\\\\''/g" \
2887 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2888 ;;
2889 *)
2890 # `set' quotes correctly as required by POSIX, so do not add quotes.
2891 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2892 ;;
2893 esac >> confcache
2894 if cmp -s $cache_file confcache; then
2895 :
2896 else
2897 if test -w $cache_file; then
2898 echo "updating cache $cache_file"
2899 cat confcache > $cache_file
2900 else
2901 echo "not updating unwritable cache $cache_file"
2902 fi
2903 fi
2904 rm -f confcache
2905
2906 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2907
2908 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2909 # Let make expand exec_prefix.
2910 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2911
2912 # Any assignment to VPATH causes Sun make to only execute
2913 # the first set of double-colon rules, so remove it if not needed.
2914 # If there is a colon in the path, we need to keep it.
2915 if test "x$srcdir" = x.; then
2916 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2917 fi
2918
2919 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2920
2921 # Transform confdefs.h into DEFS.
2922 # Protect against shell expansion while executing Makefile rules.
2923 # Protect against Makefile macro expansion.
2924 cat > conftest.defs <<\EOF
2925 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
2926 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
2927 s%\[%\\&%g
2928 s%\]%\\&%g
2929 s%\$%$$%g
2930 EOF
2931 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
2932 rm -f conftest.defs
2933
2934
2935 # Without the "./", some shells look in PATH for config.status.
2936 : ${CONFIG_STATUS=./config.status}
2937
2938 echo creating $CONFIG_STATUS
2939 rm -f $CONFIG_STATUS
2940 cat > $CONFIG_STATUS <<EOF
2941 #! /bin/sh
2942 # Generated automatically by configure.
2943 # Run this file to recreate the current configuration.
2944 # This directory was configured as follows,
2945 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2946 #
2947 # $0 $ac_configure_args
2948 #
2949 # Compiler output produced by configure, useful for debugging
2950 # configure, is in ./config.log if it exists.
2951
2952 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2953 for ac_option
2954 do
2955 case "\$ac_option" in
2956 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2957 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2958 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2959 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2960 echo "$CONFIG_STATUS generated by autoconf version 2.12"
2961 exit 0 ;;
2962 -help | --help | --hel | --he | --h)
2963 echo "\$ac_cs_usage"; exit 0 ;;
2964 *) echo "\$ac_cs_usage"; exit 1 ;;
2965 esac
2966 done
2967
2968 ac_given_srcdir=$srcdir
2969
2970 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
2971 EOF
2972 cat >> $CONFIG_STATUS <<EOF
2973
2974 # Protect against being on the right side of a sed subst in config.status.
2975 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2976 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2977 $ac_vpsub
2978 $extrasub
2979 s%@CFLAGS@%$CFLAGS%g
2980 s%@CPPFLAGS@%$CPPFLAGS%g
2981 s%@CXXFLAGS@%$CXXFLAGS%g
2982 s%@DEFS@%$DEFS%g
2983 s%@LDFLAGS@%$LDFLAGS%g
2984 s%@LIBS@%$LIBS%g
2985 s%@exec_prefix@%$exec_prefix%g
2986 s%@prefix@%$prefix%g
2987 s%@program_transform_name@%$program_transform_name%g
2988 s%@bindir@%$bindir%g
2989 s%@sbindir@%$sbindir%g
2990 s%@libexecdir@%$libexecdir%g
2991 s%@datadir@%$datadir%g
2992 s%@sysconfdir@%$sysconfdir%g
2993 s%@sharedstatedir@%$sharedstatedir%g
2994 s%@localstatedir@%$localstatedir%g
2995 s%@libdir@%$libdir%g
2996 s%@includedir@%$includedir%g
2997 s%@oldincludedir@%$oldincludedir%g
2998 s%@infodir@%$infodir%g
2999 s%@mandir@%$mandir%g
3000 s%@CC@%$CC%g
3001 s%@CPP@%$CPP%g
3002 s%@YACC@%$YACC%g
3003 s%@LEX@%$LEX%g
3004 s%@LEXLIB@%$LEXLIB%g
3005 s%@LN_S@%$LN_S%g
3006 s%@SET_MAKE@%$SET_MAKE%g
3007 s%@RANLIB@%$RANLIB%g
3008 s%@CCOPTIONS@%$CCOPTIONS%g
3009 s%@CDEBUGFLAGS@%$CDEBUGFLAGS%g
3010 s%@LIBOBJS@%$LIBOBJS%g
3011
3012 CEOF
3013 EOF
3014
3015 cat >> $CONFIG_STATUS <<\EOF
3016
3017 # Split the substitutions into bite-sized pieces for seds with
3018 # small command number limits, like on Digital OSF/1 and HP-UX.
3019 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3020 ac_file=1 # Number of current file.
3021 ac_beg=1 # First line for current file.
3022 ac_end=$ac_max_sed_cmds # Line after last line for current file.
3023 ac_more_lines=:
3024 ac_sed_cmds=""
3025 while $ac_more_lines; do
3026 if test $ac_beg -gt 1; then
3027 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
3028 else
3029 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
3030 fi
3031 if test ! -s conftest.s$ac_file; then
3032 ac_more_lines=false
3033 rm -f conftest.s$ac_file
3034 else
3035 if test -z "$ac_sed_cmds"; then
3036 ac_sed_cmds="sed -f conftest.s$ac_file"
3037 else
3038 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
3039 fi
3040 ac_file=`expr $ac_file + 1`
3041 ac_beg=$ac_end
3042 ac_end=`expr $ac_end + $ac_max_sed_cmds`
3043 fi
3044 done
3045 if test -z "$ac_sed_cmds"; then
3046 ac_sed_cmds=cat
3047 fi
3048 EOF
3049
3050 cat >> $CONFIG_STATUS <<EOF
3051
3052 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"}
3053 EOF
3054 cat >> $CONFIG_STATUS <<\EOF
3055 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
3056 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3057 case "$ac_file" in
3058 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
3059 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
3060 *) ac_file_in="${ac_file}.in" ;;
3061 esac
3062
3063 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
3064
3065 # Remove last slash and all that follows it. Not all systems have dirname.
3066 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3067 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3068 # The file is in a subdirectory.
3069 test ! -d "$ac_dir" && mkdir "$ac_dir"
3070 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
3071 # A "../" for each directory in $ac_dir_suffix.
3072 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
3073 else
3074 ac_dir_suffix= ac_dots=
3075 fi
3076
3077 case "$ac_given_srcdir" in
3078 .) srcdir=.
3079 if test -z "$ac_dots"; then top_srcdir=.
3080 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
3081 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
3082 *) # Relative path.
3083 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
3084 top_srcdir="$ac_dots$ac_given_srcdir" ;;
3085 esac
3086
3087
3088 echo creating "$ac_file"
3089 rm -f "$ac_file"
3090 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
3091 case "$ac_file" in
3092 *Makefile*) ac_comsub="1i\\
3093 # $configure_input" ;;
3094 *) ac_comsub= ;;
3095 esac
3096
3097 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3098 sed -e "$ac_comsub
3099 s%@configure_input@%$configure_input%g
3100 s%@srcdir@%$srcdir%g
3101 s%@top_srcdir@%$top_srcdir%g
3102 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
3103 fi; done
3104 rm -f conftest.s*
3105
3106 EOF
3107 cat >> $CONFIG_STATUS <<EOF
3108
3109 EOF
3110 cat >> $CONFIG_STATUS <<\EOF
3111
3112 exit 0
3113 EOF
3114 chmod +x $CONFIG_STATUS
3115 rm -fr confdefs* $ac_clean_files
3116 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3117

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