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

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