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.8 - (show annotations) (download)
Sun Jan 16 07:06:07 2000 UTC (24 years, 3 months ago) by ura
Branch: MAIN
CVS Tags: freewnn-1-1-1-a008
Changes since 1.7: +183 -101 lines
FreeWnn-1.1.1-a008 is released.

1 #! /bin/sh
2
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
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 SHELL=${CONFIG_SHELL-/bin/sh}
55 # Maximum number of lines to put in a shell here document.
56 ac_max_here_lines=12
57
58 ac_prev=
59 for ac_option
60 do
61
62 # If the previous option needs an argument, assign it.
63 if test -n "$ac_prev"; then
64 eval "$ac_prev=\$ac_option"
65 ac_prev=
66 continue
67 fi
68
69 case "$ac_option" in
70 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
71 *) ac_optarg= ;;
72 esac
73
74 # Accept the important Cygnus configure options, so we can diagnose typos.
75
76 case "$ac_option" in
77
78 -bindir | --bindir | --bindi | --bind | --bin | --bi)
79 ac_prev=bindir ;;
80 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
81 bindir="$ac_optarg" ;;
82
83 -build | --build | --buil | --bui | --bu)
84 ac_prev=build ;;
85 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
86 build="$ac_optarg" ;;
87
88 -cache-file | --cache-file | --cache-fil | --cache-fi \
89 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
90 ac_prev=cache_file ;;
91 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
92 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
93 cache_file="$ac_optarg" ;;
94
95 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
96 ac_prev=datadir ;;
97 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
98 | --da=*)
99 datadir="$ac_optarg" ;;
100
101 -disable-* | --disable-*)
102 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
103 # Reject names that are not valid shell variable names.
104 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
105 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
106 fi
107 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
108 eval "enable_${ac_feature}=no" ;;
109
110 -enable-* | --enable-*)
111 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
112 # Reject names that are not valid shell variable names.
113 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
114 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
115 fi
116 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
117 case "$ac_option" in
118 *=*) ;;
119 *) ac_optarg=yes ;;
120 esac
121 eval "enable_${ac_feature}='$ac_optarg'" ;;
122
123 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
124 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
125 | --exec | --exe | --ex)
126 ac_prev=exec_prefix ;;
127 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
128 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
129 | --exec=* | --exe=* | --ex=*)
130 exec_prefix="$ac_optarg" ;;
131
132 -gas | --gas | --ga | --g)
133 # Obsolete; use --with-gas.
134 with_gas=yes ;;
135
136 -help | --help | --hel | --he)
137 # Omit some internal or obsolete options to make the list less imposing.
138 # This message is too long to be a string in the A/UX 3.1 sh.
139 cat << EOF
140 Usage: configure [options] [host]
141 Options: [defaults in brackets after descriptions]
142 Configuration:
143 --cache-file=FILE cache test results in FILE
144 --help print this message
145 --no-create do not create output files
146 --quiet, --silent do not print \`checking...' messages
147 --version print the version of autoconf that created configure
148 Directory and file names:
149 --prefix=PREFIX install architecture-independent files in PREFIX
150 [$ac_default_prefix]
151 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
152 [same as prefix]
153 --bindir=DIR user executables in DIR [EPREFIX/bin]
154 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
155 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
156 --datadir=DIR read-only architecture-independent data in DIR
157 [PREFIX/share]
158 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
159 --sharedstatedir=DIR modifiable architecture-independent data in DIR
160 [PREFIX/com]
161 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
162 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
163 --includedir=DIR C header files in DIR [PREFIX/include]
164 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
165 --infodir=DIR info documentation in DIR [PREFIX/info]
166 --mandir=DIR man documentation in DIR [PREFIX/man]
167 --srcdir=DIR find the sources in DIR [configure dir or ..]
168 --program-prefix=PREFIX prepend PREFIX to installed program names
169 --program-suffix=SUFFIX append SUFFIX to installed program names
170 --program-transform-name=PROGRAM
171 run sed PROGRAM on installed program names
172 EOF
173 cat << EOF
174 Host type:
175 --build=BUILD configure for building on BUILD [BUILD=HOST]
176 --host=HOST configure for HOST [guessed]
177 --target=TARGET configure for TARGET [TARGET=HOST]
178 Features and packages:
179 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
180 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
181 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
182 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
183 --x-includes=DIR X include files are in DIR
184 --x-libraries=DIR X library files are in DIR
185 EOF
186 if test -n "$ac_help"; then
187 echo "--enable and --with options recognized:$ac_help"
188 fi
189 exit 0 ;;
190
191 -host | --host | --hos | --ho)
192 ac_prev=host ;;
193 -host=* | --host=* | --hos=* | --ho=*)
194 host="$ac_optarg" ;;
195
196 -includedir | --includedir | --includedi | --included | --include \
197 | --includ | --inclu | --incl | --inc)
198 ac_prev=includedir ;;
199 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
200 | --includ=* | --inclu=* | --incl=* | --inc=*)
201 includedir="$ac_optarg" ;;
202
203 -infodir | --infodir | --infodi | --infod | --info | --inf)
204 ac_prev=infodir ;;
205 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
206 infodir="$ac_optarg" ;;
207
208 -libdir | --libdir | --libdi | --libd)
209 ac_prev=libdir ;;
210 -libdir=* | --libdir=* | --libdi=* | --libd=*)
211 libdir="$ac_optarg" ;;
212
213 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
214 | --libexe | --libex | --libe)
215 ac_prev=libexecdir ;;
216 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
217 | --libexe=* | --libex=* | --libe=*)
218 libexecdir="$ac_optarg" ;;
219
220 -localstatedir | --localstatedir | --localstatedi | --localstated \
221 | --localstate | --localstat | --localsta | --localst \
222 | --locals | --local | --loca | --loc | --lo)
223 ac_prev=localstatedir ;;
224 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
225 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
226 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
227 localstatedir="$ac_optarg" ;;
228
229 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
230 ac_prev=mandir ;;
231 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
232 mandir="$ac_optarg" ;;
233
234 -nfp | --nfp | --nf)
235 # Obsolete; use --without-fp.
236 with_fp=no ;;
237
238 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
239 | --no-cr | --no-c)
240 no_create=yes ;;
241
242 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
243 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
244 no_recursion=yes ;;
245
246 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
247 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
248 | --oldin | --oldi | --old | --ol | --o)
249 ac_prev=oldincludedir ;;
250 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
251 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
252 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
253 oldincludedir="$ac_optarg" ;;
254
255 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
256 ac_prev=prefix ;;
257 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
258 prefix="$ac_optarg" ;;
259
260 -program-prefix | --program-prefix | --program-prefi | --program-pref \
261 | --program-pre | --program-pr | --program-p)
262 ac_prev=program_prefix ;;
263 -program-prefix=* | --program-prefix=* | --program-prefi=* \
264 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
265 program_prefix="$ac_optarg" ;;
266
267 -program-suffix | --program-suffix | --program-suffi | --program-suff \
268 | --program-suf | --program-su | --program-s)
269 ac_prev=program_suffix ;;
270 -program-suffix=* | --program-suffix=* | --program-suffi=* \
271 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
272 program_suffix="$ac_optarg" ;;
273
274 -program-transform-name | --program-transform-name \
275 | --program-transform-nam | --program-transform-na \
276 | --program-transform-n | --program-transform- \
277 | --program-transform | --program-transfor \
278 | --program-transfo | --program-transf \
279 | --program-trans | --program-tran \
280 | --progr-tra | --program-tr | --program-t)
281 ac_prev=program_transform_name ;;
282 -program-transform-name=* | --program-transform-name=* \
283 | --program-transform-nam=* | --program-transform-na=* \
284 | --program-transform-n=* | --program-transform-=* \
285 | --program-transform=* | --program-transfor=* \
286 | --program-transfo=* | --program-transf=* \
287 | --program-trans=* | --program-tran=* \
288 | --progr-tra=* | --program-tr=* | --program-t=*)
289 program_transform_name="$ac_optarg" ;;
290
291 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
292 | -silent | --silent | --silen | --sile | --sil)
293 silent=yes ;;
294
295 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
296 ac_prev=sbindir ;;
297 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
298 | --sbi=* | --sb=*)
299 sbindir="$ac_optarg" ;;
300
301 -sharedstatedir | --sharedstatedir | --sharedstatedi \
302 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
303 | --sharedst | --shareds | --shared | --share | --shar \
304 | --sha | --sh)
305 ac_prev=sharedstatedir ;;
306 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
307 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
308 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
309 | --sha=* | --sh=*)
310 sharedstatedir="$ac_optarg" ;;
311
312 -site | --site | --sit)
313 ac_prev=site ;;
314 -site=* | --site=* | --sit=*)
315 site="$ac_optarg" ;;
316
317 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
318 ac_prev=srcdir ;;
319 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
320 srcdir="$ac_optarg" ;;
321
322 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
323 | --syscon | --sysco | --sysc | --sys | --sy)
324 ac_prev=sysconfdir ;;
325 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
326 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
327 sysconfdir="$ac_optarg" ;;
328
329 -target | --target | --targe | --targ | --tar | --ta | --t)
330 ac_prev=target ;;
331 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
332 target="$ac_optarg" ;;
333
334 -v | -verbose | --verbose | --verbos | --verbo | --verb)
335 verbose=yes ;;
336
337 -version | --version | --versio | --versi | --vers)
338 echo "configure generated by autoconf version 2.13"
339 exit 0 ;;
340
341 -with-* | --with-*)
342 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
343 # Reject names that are not valid shell variable names.
344 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
345 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
346 fi
347 ac_package=`echo $ac_package| sed 's/-/_/g'`
348 case "$ac_option" in
349 *=*) ;;
350 *) ac_optarg=yes ;;
351 esac
352 eval "with_${ac_package}='$ac_optarg'" ;;
353
354 -without-* | --without-*)
355 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
356 # Reject names that are not valid shell variable names.
357 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
358 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
359 fi
360 ac_package=`echo $ac_package| sed 's/-/_/g'`
361 eval "with_${ac_package}=no" ;;
362
363 --x)
364 # Obsolete; use --with-x.
365 with_x=yes ;;
366
367 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
368 | --x-incl | --x-inc | --x-in | --x-i)
369 ac_prev=x_includes ;;
370 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
371 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
372 x_includes="$ac_optarg" ;;
373
374 -x-libraries | --x-libraries | --x-librarie | --x-librari \
375 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
376 ac_prev=x_libraries ;;
377 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
378 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
379 x_libraries="$ac_optarg" ;;
380
381 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
382 ;;
383
384 *)
385 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
386 echo "configure: warning: $ac_option: invalid host type" 1>&2
387 fi
388 if test "x$nonopt" != xNONE; then
389 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
390 fi
391 nonopt="$ac_option"
392 ;;
393
394 esac
395 done
396
397 if test -n "$ac_prev"; then
398 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
399 fi
400
401 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
402
403 # File descriptor usage:
404 # 0 standard input
405 # 1 file creation
406 # 2 errors and warnings
407 # 3 some systems may open it to /dev/tty
408 # 4 used on the Kubota Titan
409 # 6 checking for... messages and results
410 # 5 compiler messages saved in config.log
411 if test "$silent" = yes; then
412 exec 6>/dev/null
413 else
414 exec 6>&1
415 fi
416 exec 5>./config.log
417
418 echo "\
419 This file contains any messages produced by compilers while
420 running configure, to aid debugging if configure makes a mistake.
421 " 1>&5
422
423 # Strip out --no-create and --no-recursion so they do not pile up.
424 # Also quote any args containing shell metacharacters.
425 ac_configure_args=
426 for ac_arg
427 do
428 case "$ac_arg" in
429 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
430 | --no-cr | --no-c) ;;
431 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
432 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
433 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
434 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
435 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
436 esac
437 done
438
439 # NLS nuisances.
440 # Only set these to C if already set. These must not be set unconditionally
441 # because not all systems understand e.g. LANG=C (notably SCO).
442 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
443 # Non-C LC_CTYPE values break the ctype check.
444 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
445 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
446 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
447 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
448
449 # confdefs.h avoids OS command line length limits that DEFS can exceed.
450 rm -rf conftest* confdefs.h
451 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
452 echo > confdefs.h
453
454 # A filename unique to this package, relative to the directory that
455 # configure is in, which we can look for to find out if srcdir is correct.
456 ac_unique_file=Wnn/conv/cvt_head.h
457
458 # Find the source files, if location was not specified.
459 if test -z "$srcdir"; then
460 ac_srcdir_defaulted=yes
461 # Try the directory containing this script, then its parent.
462 ac_prog=$0
463 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
464 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
465 srcdir=$ac_confdir
466 if test ! -r $srcdir/$ac_unique_file; then
467 srcdir=..
468 fi
469 else
470 ac_srcdir_defaulted=no
471 fi
472 if test ! -r $srcdir/$ac_unique_file; then
473 if test "$ac_srcdir_defaulted" = yes; then
474 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
475 else
476 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
477 fi
478 fi
479 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
480
481 # Prefer explicitly selected file to automatically selected ones.
482 if test -z "$CONFIG_SITE"; then
483 if test "x$prefix" != xNONE; then
484 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
485 else
486 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
487 fi
488 fi
489 for ac_site_file in $CONFIG_SITE; do
490 if test -r "$ac_site_file"; then
491 echo "loading site script $ac_site_file"
492 . "$ac_site_file"
493 fi
494 done
495
496 if test -r "$cache_file"; then
497 echo "loading cache $cache_file"
498 . $cache_file
499 else
500 echo "creating cache $cache_file"
501 > $cache_file
502 fi
503
504 ac_ext=c
505 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
506 ac_cpp='$CPP $CPPFLAGS'
507 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
508 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
509 cross_compiling=$ac_cv_prog_cc_cross
510
511 ac_exeext=
512 ac_objext=o
513 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
514 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
515 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
516 ac_n= ac_c='
517 ' ac_t=' '
518 else
519 ac_n=-n ac_c= ac_t=
520 fi
521 else
522 ac_n= ac_c='\c' ac_t=
523 fi
524
525
526
527 case "$top_srcdir" in
528 .) abs_top_srcdir=`pwd` ;;
529 /*) abs_top_srcdir=top_srcdir;;
530 *) # Relative path.
531 abs_top_srcdir=`pwd`$ac_dots$ac_given_srcdir ;;
532 esac
533
534
535
536
537 # Extract the first word of "gcc", so it can be a program name with args.
538 set dummy gcc; ac_word=$2
539 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
540 echo "configure:541: checking for $ac_word" >&5
541 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
542 echo $ac_n "(cached) $ac_c" 1>&6
543 else
544 if test -n "$CC"; then
545 ac_cv_prog_CC="$CC" # Let the user override the test.
546 else
547 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
548 ac_dummy="$PATH"
549 for ac_dir in $ac_dummy; do
550 test -z "$ac_dir" && ac_dir=.
551 if test -f $ac_dir/$ac_word; then
552 ac_cv_prog_CC="gcc"
553 break
554 fi
555 done
556 IFS="$ac_save_ifs"
557 fi
558 fi
559 CC="$ac_cv_prog_CC"
560 if test -n "$CC"; then
561 echo "$ac_t""$CC" 1>&6
562 else
563 echo "$ac_t""no" 1>&6
564 fi
565
566 if test -z "$CC"; then
567 # Extract the first word of "cc", so it can be a program name with args.
568 set dummy cc; ac_word=$2
569 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
570 echo "configure:571: checking for $ac_word" >&5
571 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
572 echo $ac_n "(cached) $ac_c" 1>&6
573 else
574 if test -n "$CC"; then
575 ac_cv_prog_CC="$CC" # Let the user override the test.
576 else
577 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
578 ac_prog_rejected=no
579 ac_dummy="$PATH"
580 for ac_dir in $ac_dummy; do
581 test -z "$ac_dir" && ac_dir=.
582 if test -f $ac_dir/$ac_word; then
583 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
584 ac_prog_rejected=yes
585 continue
586 fi
587 ac_cv_prog_CC="cc"
588 break
589 fi
590 done
591 IFS="$ac_save_ifs"
592 if test $ac_prog_rejected = yes; then
593 # We found a bogon in the path, so make sure we never use it.
594 set dummy $ac_cv_prog_CC
595 shift
596 if test $# -gt 0; then
597 # We chose a different compiler from the bogus one.
598 # However, it has the same basename, so the bogon will be chosen
599 # first if we set CC to just the basename; use the full file name.
600 shift
601 set dummy "$ac_dir/$ac_word" "$@"
602 shift
603 ac_cv_prog_CC="$@"
604 fi
605 fi
606 fi
607 fi
608 CC="$ac_cv_prog_CC"
609 if test -n "$CC"; then
610 echo "$ac_t""$CC" 1>&6
611 else
612 echo "$ac_t""no" 1>&6
613 fi
614
615 if test -z "$CC"; then
616 case "`uname -s`" in
617 *win32* | *WIN32*)
618 # Extract the first word of "cl", so it can be a program name with args.
619 set dummy cl; ac_word=$2
620 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
621 echo "configure:622: checking for $ac_word" >&5
622 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
623 echo $ac_n "(cached) $ac_c" 1>&6
624 else
625 if test -n "$CC"; then
626 ac_cv_prog_CC="$CC" # Let the user override the test.
627 else
628 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
629 ac_dummy="$PATH"
630 for ac_dir in $ac_dummy; do
631 test -z "$ac_dir" && ac_dir=.
632 if test -f $ac_dir/$ac_word; then
633 ac_cv_prog_CC="cl"
634 break
635 fi
636 done
637 IFS="$ac_save_ifs"
638 fi
639 fi
640 CC="$ac_cv_prog_CC"
641 if test -n "$CC"; then
642 echo "$ac_t""$CC" 1>&6
643 else
644 echo "$ac_t""no" 1>&6
645 fi
646 ;;
647 esac
648 fi
649 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
650 fi
651
652 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
653 echo "configure:654: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
654
655 ac_ext=c
656 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
657 ac_cpp='$CPP $CPPFLAGS'
658 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
659 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
660 cross_compiling=$ac_cv_prog_cc_cross
661
662 cat > conftest.$ac_ext << EOF
663
664 #line 665 "configure"
665 #include "confdefs.h"
666
667 main(){return(0);}
668 EOF
669 if { (eval echo configure:670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
670 ac_cv_prog_cc_works=yes
671 # If we can't run a trivial program, we are probably using a cross compiler.
672 if (./conftest; exit) 2>/dev/null; then
673 ac_cv_prog_cc_cross=no
674 else
675 ac_cv_prog_cc_cross=yes
676 fi
677 else
678 echo "configure: failed program was:" >&5
679 cat conftest.$ac_ext >&5
680 ac_cv_prog_cc_works=no
681 fi
682 rm -fr conftest*
683 ac_ext=c
684 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
685 ac_cpp='$CPP $CPPFLAGS'
686 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
687 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
688 cross_compiling=$ac_cv_prog_cc_cross
689
690 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
691 if test $ac_cv_prog_cc_works = no; then
692 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
693 fi
694 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
695 echo "configure:696: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
696 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
697 cross_compiling=$ac_cv_prog_cc_cross
698
699 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
700 echo "configure:701: checking whether we are using GNU C" >&5
701 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
702 echo $ac_n "(cached) $ac_c" 1>&6
703 else
704 cat > conftest.c <<EOF
705 #ifdef __GNUC__
706 yes;
707 #endif
708 EOF
709 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:710: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
710 ac_cv_prog_gcc=yes
711 else
712 ac_cv_prog_gcc=no
713 fi
714 fi
715
716 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
717
718 if test $ac_cv_prog_gcc = yes; then
719 GCC=yes
720 else
721 GCC=
722 fi
723
724 ac_test_CFLAGS="${CFLAGS+set}"
725 ac_save_CFLAGS="$CFLAGS"
726 CFLAGS=
727 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
728 echo "configure:729: checking whether ${CC-cc} accepts -g" >&5
729 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
730 echo $ac_n "(cached) $ac_c" 1>&6
731 else
732 echo 'void f(){}' > conftest.c
733 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
734 ac_cv_prog_cc_g=yes
735 else
736 ac_cv_prog_cc_g=no
737 fi
738 rm -f conftest*
739
740 fi
741
742 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
743 if test "$ac_test_CFLAGS" = set; then
744 CFLAGS="$ac_save_CFLAGS"
745 elif test $ac_cv_prog_cc_g = yes; then
746 if test "$GCC" = yes; then
747 CFLAGS="-g -O2"
748 else
749 CFLAGS="-g"
750 fi
751 else
752 if test "$GCC" = yes; then
753 CFLAGS="-O2"
754 else
755 CFLAGS=
756 fi
757 fi
758
759 echo $ac_n "checking for cpp""... $ac_c" 1>&6
760 echo "configure:761: checking for cpp" >&5
761 hosttype=`uname`
762 CCOPTIONS=""
763 CDEBUGFLAGS=-O
764 case $hosttype in
765 "Linux")
766 CCOPTIONS="-Dlinux -D_POSIX_SOURCE -D_BSD_SOURCE"
767 CDEBUGFLAGS="-O2 -fno-strength-reduce"
768 if test -x /lib/cpp; then
769 CPP=/lib/cpp
770 fi
771 ;;
772 "FreeBSD"|"NetBSD"|"OpenBSD")
773 CCOPTIONS="-DCSRG_BASED"
774 CDEBUGFLAGS="-O2 -fno-strength-reduce"
775 if test -x /usr/libexec/cpp; then
776 CPP=/usr/libexec/cpp
777 fi
778 ;;
779 "BSD/OS")
780 CCOPTIONS="-DCSRG_BASED"
781 CDEBUGFLAGS="-O2 -fno-strength-reduce"
782 if test -x /usr/bin/cpp; then
783 CPP=/usr/bin/cpp
784 fi
785 ;;
786 "SunOS")
787 case `uname -r` in
788 4.*)
789 if test $CC = gcc; then
790 CDEBUGFLAGS=-O2
791 CCOPTIONS="-Dsun -Dsparc"
792 else
793 CDEBUGFLAGS=-O4
794 CCOPTIONS=""
795 fi
796 CPP=/usr/lib/cpp
797 ;;
798 5.*)
799 if test $CC = gcc; then
800 CDEBUGFLAGS=-O2
801 CCOPTIONS="-Dsun -Dsparc -DSVR4 -DSYSV"
802 else
803 CCOPTIONS="-Xc -xF -xcg92 -Dsun -Dsparc -DSVR4 -DSYSV"
804 fi
805 if test -x /usr/ccs/lib/cpp; then
806 CPP=/usr/ccs/lib/cpp
807 fi
808 ;;
809 *)
810 echo "configure: warning: "This system is not supported. But continuing..."" 1>&2
811 ;;
812 esac
813 ;;
814 "HP-UX")
815 if test $CC = gcc; then
816 CDEBUGFLAGS=-O2
817 CCOPTIONS="-Dhpux -DSYSV"
818 else
819 CCOPTIONS="-Ae -Dhpux -DSYSV"
820 fi
821 case `uname -r` in
822 A.09.*)
823 if test -x /lib/cpp; then
824 CPP=/lib/cpp
825 fi
826 ;;
827 B.10.*|B.11.*)
828 if test -x /opt/langtools/lbin/cpp; then
829 CPP=/opt/langtools/lbin/cpp
830 fi
831 ;;
832 *)
833 echo "configure: warning: "This system is not supported. But continuing..."" 1>&2
834 ;;
835 esac
836 ;;
837 "BeOS")
838 case `uname -m` in
839 "BePC")
840 CCOPTIONS="-DBEOS -D_POSIX_SOURCE -D_BSD_SOURCE"
841 CDEBUGFLAGS="-O2 -fno-strength-reduce"
842 if test -x /boot/develop/tools/gnupro/lib/gcc-lib/i586-beos/2.9-beos-980929/cpp; then
843 CPP=/boot/develop/tools/gnupro/lib/gcc-lib/i586-beos/2.9-beos-980929/cpp
844 fi
845 ;;
846 "BeBox"|"BeMac")
847 CCOPTIONS="-DBEOS -D_POSIX_SOURCE -D_BSD_SOURCE"
848 NON_GNU_CPP=/boot/apps/GeekGadgets/bin/cpp
849 ;;
850 *)
851 { echo "configure: error: "This system is not supported."" 1>&2; exit 1; }
852 ;;
853 esac
854 ;;
855 "AIX")
856 if test $CC = gcc; then
857 CDEBUGFLAGS=-O2
858 else
859 CDEBUGFLAGS=-O
860 fi
861 CCOPTIONS="-DSYSV"
862 CPP=/usr/lib/cpp
863 ;;
864 *)
865 echo "configure: warning: "This system is not supported. But continuing..."" 1>&2
866 ;;
867 esac
868 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
869 echo "configure:870: checking how to run the C preprocessor" >&5
870 # On Suns, sometimes $CPP names a directory.
871 if test -n "$CPP" && test -d "$CPP"; then
872 CPP=
873 fi
874 if test -z "$CPP"; then
875 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
876 echo $ac_n "(cached) $ac_c" 1>&6
877 else
878 # This must be in double quotes, not single quotes, because CPP may get
879 # substituted into the Makefile and "${CC-cc}" will confuse make.
880 CPP="${CC-cc} -E"
881 # On the NeXT, cc -E runs the code through the compiler's parser,
882 # not just through cpp.
883 cat > conftest.$ac_ext <<EOF
884 #line 885 "configure"
885 #include "confdefs.h"
886 #include <assert.h>
887 Syntax Error
888 EOF
889 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
890 { (eval echo configure:891: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
891 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
892 if test -z "$ac_err"; then
893 :
894 else
895 echo "$ac_err" >&5
896 echo "configure: failed program was:" >&5
897 cat conftest.$ac_ext >&5
898 rm -rf conftest*
899 CPP="${CC-cc} -E -traditional-cpp"
900 cat > conftest.$ac_ext <<EOF
901 #line 902 "configure"
902 #include "confdefs.h"
903 #include <assert.h>
904 Syntax Error
905 EOF
906 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
907 { (eval echo configure:908: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
908 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
909 if test -z "$ac_err"; then
910 :
911 else
912 echo "$ac_err" >&5
913 echo "configure: failed program was:" >&5
914 cat conftest.$ac_ext >&5
915 rm -rf conftest*
916 CPP="${CC-cc} -nologo -E"
917 cat > conftest.$ac_ext <<EOF
918 #line 919 "configure"
919 #include "confdefs.h"
920 #include <assert.h>
921 Syntax Error
922 EOF
923 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
924 { (eval echo configure:925: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
925 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
926 if test -z "$ac_err"; then
927 :
928 else
929 echo "$ac_err" >&5
930 echo "configure: failed program was:" >&5
931 cat conftest.$ac_ext >&5
932 rm -rf conftest*
933 CPP=/lib/cpp
934 fi
935 rm -f conftest*
936 fi
937 rm -f conftest*
938 fi
939 rm -f conftest*
940 ac_cv_prog_CPP="$CPP"
941 fi
942 CPP="$ac_cv_prog_CPP"
943 else
944 ac_cv_prog_CPP="$CPP"
945 fi
946 echo "$ac_t""$CPP" 1>&6
947
948
949 ac_aux_dir=
950 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
951 if test -f $ac_dir/install-sh; then
952 ac_aux_dir=$ac_dir
953 ac_install_sh="$ac_aux_dir/install-sh -c"
954 break
955 elif test -f $ac_dir/install.sh; then
956 ac_aux_dir=$ac_dir
957 ac_install_sh="$ac_aux_dir/install.sh -c"
958 break
959 fi
960 done
961 if test -z "$ac_aux_dir"; then
962 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
963 fi
964 ac_config_guess=$ac_aux_dir/config.guess
965 ac_config_sub=$ac_aux_dir/config.sub
966 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
967
968 # Find a good install program. We prefer a C program (faster),
969 # so one script is as good as another. But avoid the broken or
970 # incompatible versions:
971 # SysV /etc/install, /usr/sbin/install
972 # SunOS /usr/etc/install
973 # IRIX /sbin/install
974 # AIX /bin/install
975 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
976 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
977 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
978 # ./install, which can be erroneously created by make from ./install.sh.
979 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
980 echo "configure:981: checking for a BSD compatible install" >&5
981 if test -z "$INSTALL"; then
982 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
983 echo $ac_n "(cached) $ac_c" 1>&6
984 else
985 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
986 for ac_dir in $PATH; do
987 # Account for people who put trailing slashes in PATH elements.
988 case "$ac_dir/" in
989 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
990 *)
991 # OSF1 and SCO ODT 3.0 have their own names for install.
992 # Don't use installbsd from OSF since it installs stuff as root
993 # by default.
994 for ac_prog in ginstall scoinst install; do
995 if test -f $ac_dir/$ac_prog; then
996 if test $ac_prog = install &&
997 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
998 # AIX install. It has an incompatible calling convention.
999 :
1000 else
1001 ac_cv_path_install="$ac_dir/$ac_prog -c"
1002 break 2
1003 fi
1004 fi
1005 done
1006 ;;
1007 esac
1008 done
1009 IFS="$ac_save_IFS"
1010
1011 fi
1012 if test "${ac_cv_path_install+set}" = set; then
1013 INSTALL="$ac_cv_path_install"
1014 else
1015 # As a last resort, use the slow shell script. We don't cache a
1016 # path for INSTALL within a source directory, because that will
1017 # break other packages using the cache if that directory is
1018 # removed, or if the path is relative.
1019 INSTALL="$ac_install_sh"
1020 fi
1021 fi
1022 echo "$ac_t""$INSTALL" 1>&6
1023
1024 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1025 # It thinks the first close brace ends the variable substitution.
1026 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1027
1028 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1029
1030 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1031
1032 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1033 echo "configure:1034: checking whether ln -s works" >&5
1034 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1035 echo $ac_n "(cached) $ac_c" 1>&6
1036 else
1037 rm -f conftestdata
1038 if ln -s X conftestdata 2>/dev/null
1039 then
1040 rm -f conftestdata
1041 ac_cv_prog_LN_S="ln -s"
1042 else
1043 ac_cv_prog_LN_S=ln
1044 fi
1045 fi
1046 LN_S="$ac_cv_prog_LN_S"
1047 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1048 echo "$ac_t""yes" 1>&6
1049 else
1050 echo "$ac_t""no" 1>&6
1051 fi
1052
1053 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1054 echo "configure:1055: checking whether ${MAKE-make} sets \${MAKE}" >&5
1055 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1056 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1057 echo $ac_n "(cached) $ac_c" 1>&6
1058 else
1059 cat > conftestmake <<\EOF
1060 all:
1061 @echo 'ac_maketemp="${MAKE}"'
1062 EOF
1063 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1064 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1065 if test -n "$ac_maketemp"; then
1066 eval ac_cv_prog_make_${ac_make}_set=yes
1067 else
1068 eval ac_cv_prog_make_${ac_make}_set=no
1069 fi
1070 rm -f conftestmake
1071 fi
1072 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1073 echo "$ac_t""yes" 1>&6
1074 SET_MAKE=
1075 else
1076 echo "$ac_t""no" 1>&6
1077 SET_MAKE="MAKE=${MAKE-make}"
1078 fi
1079
1080 # Extract the first word of "ranlib", so it can be a program name with args.
1081 set dummy ranlib; ac_word=$2
1082 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1083 echo "configure:1084: checking for $ac_word" >&5
1084 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1085 echo $ac_n "(cached) $ac_c" 1>&6
1086 else
1087 if test -n "$RANLIB"; then
1088 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1089 else
1090 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1091 ac_dummy="$PATH"
1092 for ac_dir in $ac_dummy; do
1093 test -z "$ac_dir" && ac_dir=.
1094 if test -f $ac_dir/$ac_word; then
1095 ac_cv_prog_RANLIB="ranlib"
1096 break
1097 fi
1098 done
1099 IFS="$ac_save_ifs"
1100 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1101 fi
1102 fi
1103 RANLIB="$ac_cv_prog_RANLIB"
1104 if test -n "$RANLIB"; then
1105 echo "$ac_t""$RANLIB" 1>&6
1106 else
1107 echo "$ac_t""no" 1>&6
1108 fi
1109
1110
1111
1112
1113
1114 echo $ac_n "checking for main in -lcrypt""... $ac_c" 1>&6
1115 echo "configure:1116: checking for main in -lcrypt" >&5
1116 ac_lib_var=`echo crypt'_'main | sed 'y%./+-%__p_%'`
1117 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1118 echo $ac_n "(cached) $ac_c" 1>&6
1119 else
1120 ac_save_LIBS="$LIBS"
1121 LIBS="-lcrypt $LIBS"
1122 cat > conftest.$ac_ext <<EOF
1123 #line 1124 "configure"
1124 #include "confdefs.h"
1125
1126 int main() {
1127 main()
1128 ; return 0; }
1129 EOF
1130 if { (eval echo configure:1131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1131 rm -rf conftest*
1132 eval "ac_cv_lib_$ac_lib_var=yes"
1133 else
1134 echo "configure: failed program was:" >&5
1135 cat conftest.$ac_ext >&5
1136 rm -rf conftest*
1137 eval "ac_cv_lib_$ac_lib_var=no"
1138 fi
1139 rm -f conftest*
1140 LIBS="$ac_save_LIBS"
1141
1142 fi
1143 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1144 echo "$ac_t""yes" 1>&6
1145 ac_tr_lib=HAVE_LIB`echo crypt | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1146 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1147 cat >> confdefs.h <<EOF
1148 #define $ac_tr_lib 1
1149 EOF
1150
1151 LIBS="-lcrypt $LIBS"
1152
1153 else
1154 echo "$ac_t""no" 1>&6
1155 fi
1156
1157 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
1158 echo "configure:1159: checking for main in -lsocket" >&5
1159 ac_lib_var=`echo socket'_'main | sed 'y%./+-%__p_%'`
1160 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1161 echo $ac_n "(cached) $ac_c" 1>&6
1162 else
1163 ac_save_LIBS="$LIBS"
1164 LIBS="-lsocket $LIBS"
1165 cat > conftest.$ac_ext <<EOF
1166 #line 1167 "configure"
1167 #include "confdefs.h"
1168
1169 int main() {
1170 main()
1171 ; return 0; }
1172 EOF
1173 if { (eval echo configure:1174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1174 rm -rf conftest*
1175 eval "ac_cv_lib_$ac_lib_var=yes"
1176 else
1177 echo "configure: failed program was:" >&5
1178 cat conftest.$ac_ext >&5
1179 rm -rf conftest*
1180 eval "ac_cv_lib_$ac_lib_var=no"
1181 fi
1182 rm -f conftest*
1183 LIBS="$ac_save_LIBS"
1184
1185 fi
1186 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1187 echo "$ac_t""yes" 1>&6
1188 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1189 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1190 cat >> confdefs.h <<EOF
1191 #define $ac_tr_lib 1
1192 EOF
1193
1194 LIBS="-lsocket $LIBS"
1195
1196 else
1197 echo "$ac_t""no" 1>&6
1198 fi
1199
1200 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
1201 echo "configure:1202: checking for main in -lnsl" >&5
1202 ac_lib_var=`echo nsl'_'main | sed 'y%./+-%__p_%'`
1203 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1204 echo $ac_n "(cached) $ac_c" 1>&6
1205 else
1206 ac_save_LIBS="$LIBS"
1207 LIBS="-lnsl $LIBS"
1208 cat > conftest.$ac_ext <<EOF
1209 #line 1210 "configure"
1210 #include "confdefs.h"
1211
1212 int main() {
1213 main()
1214 ; return 0; }
1215 EOF
1216 if { (eval echo configure:1217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1217 rm -rf conftest*
1218 eval "ac_cv_lib_$ac_lib_var=yes"
1219 else
1220 echo "configure: failed program was:" >&5
1221 cat conftest.$ac_ext >&5
1222 rm -rf conftest*
1223 eval "ac_cv_lib_$ac_lib_var=no"
1224 fi
1225 rm -f conftest*
1226 LIBS="$ac_save_LIBS"
1227
1228 fi
1229 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1230 echo "$ac_t""yes" 1>&6
1231 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1232 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1233 cat >> confdefs.h <<EOF
1234 #define $ac_tr_lib 1
1235 EOF
1236
1237 LIBS="-lnsl $LIBS"
1238
1239 else
1240 echo "$ac_t""no" 1>&6
1241 fi
1242
1243
1244 # If we find X, set shell vars x_includes and x_libraries to the
1245 # paths, otherwise set no_x=yes.
1246 # Uses ac_ vars as temps to allow command line to override cache and checks.
1247 # --without-x overrides everything else, but does not touch the cache.
1248 echo $ac_n "checking for X""... $ac_c" 1>&6
1249 echo "configure:1250: checking for X" >&5
1250
1251 # Check whether --with-x or --without-x was given.
1252 if test "${with_x+set}" = set; then
1253 withval="$with_x"
1254 :
1255 fi
1256
1257 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
1258 if test "x$with_x" = xno; then
1259 # The user explicitly disabled X.
1260 have_x=disabled
1261 else
1262 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
1263 # Both variables are already set.
1264 have_x=yes
1265 else
1266 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
1267 echo $ac_n "(cached) $ac_c" 1>&6
1268 else
1269 # One or both of the vars are not set, and there is no cached value.
1270 ac_x_includes=NO ac_x_libraries=NO
1271 rm -fr conftestdir
1272 if mkdir conftestdir; then
1273 cd conftestdir
1274 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
1275 cat > Imakefile <<'EOF'
1276 acfindx:
1277 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
1278 EOF
1279 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
1280 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1281 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
1282 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
1283 for ac_extension in a so sl; do
1284 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
1285 test -f $ac_im_libdir/libX11.$ac_extension; then
1286 ac_im_usrlibdir=$ac_im_libdir; break
1287 fi
1288 done
1289 # Screen out bogus values from the imake configuration. They are
1290 # bogus both because they are the default anyway, and because
1291 # using them would break gcc on systems where it needs fixed includes.
1292 case "$ac_im_incroot" in
1293 /usr/include) ;;
1294 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
1295 esac
1296 case "$ac_im_usrlibdir" in
1297 /usr/lib | /lib) ;;
1298 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
1299 esac
1300 fi
1301 cd ..
1302 rm -fr conftestdir
1303 fi
1304
1305 if test "$ac_x_includes" = NO; then
1306 # Guess where to find include files, by looking for this one X11 .h file.
1307 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
1308
1309 # First, try using that file with no special directory specified.
1310 cat > conftest.$ac_ext <<EOF
1311 #line 1312 "configure"
1312 #include "confdefs.h"
1313 #include <$x_direct_test_include>
1314 EOF
1315 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1316 { (eval echo configure:1317: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1317 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1318 if test -z "$ac_err"; then
1319 rm -rf conftest*
1320 # We can compile using X headers with no special include directory.
1321 ac_x_includes=
1322 else
1323 echo "$ac_err" >&5
1324 echo "configure: failed program was:" >&5
1325 cat conftest.$ac_ext >&5
1326 rm -rf conftest*
1327 # Look for the header file in a standard set of common directories.
1328 # Check X11 before X11Rn because it is often a symlink to the current release.
1329 for ac_dir in \
1330 /usr/X11/include \
1331 /usr/X11R6/include \
1332 /usr/X11R5/include \
1333 /usr/X11R4/include \
1334 \
1335 /usr/include/X11 \
1336 /usr/include/X11R6 \
1337 /usr/include/X11R5 \
1338 /usr/include/X11R4 \
1339 \
1340 /usr/local/X11/include \
1341 /usr/local/X11R6/include \
1342 /usr/local/X11R5/include \
1343 /usr/local/X11R4/include \
1344 \
1345 /usr/local/include/X11 \
1346 /usr/local/include/X11R6 \
1347 /usr/local/include/X11R5 \
1348 /usr/local/include/X11R4 \
1349 \
1350 /usr/X386/include \
1351 /usr/x386/include \
1352 /usr/XFree86/include/X11 \
1353 \
1354 /usr/include \
1355 /usr/local/include \
1356 /usr/unsupported/include \
1357 /usr/athena/include \
1358 /usr/local/x11r5/include \
1359 /usr/lpp/Xamples/include \
1360 \
1361 /usr/openwin/include \
1362 /usr/openwin/share/include \
1363 ; \
1364 do
1365 if test -r "$ac_dir/$x_direct_test_include"; then
1366 ac_x_includes=$ac_dir
1367 break
1368 fi
1369 done
1370 fi
1371 rm -f conftest*
1372 fi # $ac_x_includes = NO
1373
1374 if test "$ac_x_libraries" = NO; then
1375 # Check for the libraries.
1376
1377 test -z "$x_direct_test_library" && x_direct_test_library=Xt
1378 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
1379
1380 # See if we find them without any special options.
1381 # Don't add to $LIBS permanently.
1382 ac_save_LIBS="$LIBS"
1383 LIBS="-l$x_direct_test_library $LIBS"
1384 cat > conftest.$ac_ext <<EOF
1385 #line 1386 "configure"
1386 #include "confdefs.h"
1387
1388 int main() {
1389 ${x_direct_test_function}()
1390 ; return 0; }
1391 EOF
1392 if { (eval echo configure:1393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1393 rm -rf conftest*
1394 LIBS="$ac_save_LIBS"
1395 # We can link X programs with no special library path.
1396 ac_x_libraries=
1397 else
1398 echo "configure: failed program was:" >&5
1399 cat conftest.$ac_ext >&5
1400 rm -rf conftest*
1401 LIBS="$ac_save_LIBS"
1402 # First see if replacing the include by lib works.
1403 # Check X11 before X11Rn because it is often a symlink to the current release.
1404 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
1405 /usr/X11/lib \
1406 /usr/X11R6/lib \
1407 /usr/X11R5/lib \
1408 /usr/X11R4/lib \
1409 \
1410 /usr/lib/X11 \
1411 /usr/lib/X11R6 \
1412 /usr/lib/X11R5 \
1413 /usr/lib/X11R4 \
1414 \
1415 /usr/local/X11/lib \
1416 /usr/local/X11R6/lib \
1417 /usr/local/X11R5/lib \
1418 /usr/local/X11R4/lib \
1419 \
1420 /usr/local/lib/X11 \
1421 /usr/local/lib/X11R6 \
1422 /usr/local/lib/X11R5 \
1423 /usr/local/lib/X11R4 \
1424 \
1425 /usr/X386/lib \
1426 /usr/x386/lib \
1427 /usr/XFree86/lib/X11 \
1428 \
1429 /usr/lib \
1430 /usr/local/lib \
1431 /usr/unsupported/lib \
1432 /usr/athena/lib \
1433 /usr/local/x11r5/lib \
1434 /usr/lpp/Xamples/lib \
1435 /lib/usr/lib/X11 \
1436 \
1437 /usr/openwin/lib \
1438 /usr/openwin/share/lib \
1439 ; \
1440 do
1441 for ac_extension in a so sl; do
1442 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
1443 ac_x_libraries=$ac_dir
1444 break 2
1445 fi
1446 done
1447 done
1448 fi
1449 rm -f conftest*
1450 fi # $ac_x_libraries = NO
1451
1452 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
1453 # Didn't find X anywhere. Cache the known absence of X.
1454 ac_cv_have_x="have_x=no"
1455 else
1456 # Record where we found X for the cache.
1457 ac_cv_have_x="have_x=yes \
1458 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
1459 fi
1460 fi
1461 fi
1462 eval "$ac_cv_have_x"
1463 fi # $with_x != no
1464
1465 if test "$have_x" != yes; then
1466 echo "$ac_t""$have_x" 1>&6
1467 no_x=yes
1468 else
1469 # If each of the values was on the command line, it overrides each guess.
1470 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
1471 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
1472 # Update the cache value to reflect the command line values.
1473 ac_cv_have_x="have_x=yes \
1474 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
1475 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1476 fi
1477
1478 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1479 echo "configure:1480: checking for ANSI C header files" >&5
1480 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1481 echo $ac_n "(cached) $ac_c" 1>&6
1482 else
1483 cat > conftest.$ac_ext <<EOF
1484 #line 1485 "configure"
1485 #include "confdefs.h"
1486 #include <stdlib.h>
1487 #include <stdarg.h>
1488 #include <string.h>
1489 #include <float.h>
1490 EOF
1491 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1492 { (eval echo configure:1493: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1493 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1494 if test -z "$ac_err"; then
1495 rm -rf conftest*
1496 ac_cv_header_stdc=yes
1497 else
1498 echo "$ac_err" >&5
1499 echo "configure: failed program was:" >&5
1500 cat conftest.$ac_ext >&5
1501 rm -rf conftest*
1502 ac_cv_header_stdc=no
1503 fi
1504 rm -f conftest*
1505
1506 if test $ac_cv_header_stdc = yes; then
1507 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1508 cat > conftest.$ac_ext <<EOF
1509 #line 1510 "configure"
1510 #include "confdefs.h"
1511 #include <string.h>
1512 EOF
1513 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1514 egrep "memchr" >/dev/null 2>&1; then
1515 :
1516 else
1517 rm -rf conftest*
1518 ac_cv_header_stdc=no
1519 fi
1520 rm -f conftest*
1521
1522 fi
1523
1524 if test $ac_cv_header_stdc = yes; then
1525 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1526 cat > conftest.$ac_ext <<EOF
1527 #line 1528 "configure"
1528 #include "confdefs.h"
1529 #include <stdlib.h>
1530 EOF
1531 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1532 egrep "free" >/dev/null 2>&1; then
1533 :
1534 else
1535 rm -rf conftest*
1536 ac_cv_header_stdc=no
1537 fi
1538 rm -f conftest*
1539
1540 fi
1541
1542 if test $ac_cv_header_stdc = yes; then
1543 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1544 if test "$cross_compiling" = yes; then
1545 :
1546 else
1547 cat > conftest.$ac_ext <<EOF
1548 #line 1549 "configure"
1549 #include "confdefs.h"
1550 #include <ctype.h>
1551 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1552 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1553 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1554 int main () { int i; for (i = 0; i < 256; i++)
1555 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1556 exit (0); }
1557
1558 EOF
1559 if { (eval echo configure:1560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1560 then
1561 :
1562 else
1563 echo "configure: failed program was:" >&5
1564 cat conftest.$ac_ext >&5
1565 rm -fr conftest*
1566 ac_cv_header_stdc=no
1567 fi
1568 rm -fr conftest*
1569 fi
1570
1571 fi
1572 fi
1573
1574 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1575 if test $ac_cv_header_stdc = yes; then
1576 cat >> confdefs.h <<\EOF
1577 #define STDC_HEADERS 1
1578 EOF
1579
1580 fi
1581
1582 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
1583 echo "configure:1584: checking for sys/wait.h that is POSIX.1 compatible" >&5
1584 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
1585 echo $ac_n "(cached) $ac_c" 1>&6
1586 else
1587 cat > conftest.$ac_ext <<EOF
1588 #line 1589 "configure"
1589 #include "confdefs.h"
1590 #include <sys/types.h>
1591 #include <sys/wait.h>
1592 #ifndef WEXITSTATUS
1593 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
1594 #endif
1595 #ifndef WIFEXITED
1596 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
1597 #endif
1598 int main() {
1599 int s;
1600 wait (&s);
1601 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
1602 ; return 0; }
1603 EOF
1604 if { (eval echo configure:1605: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1605 rm -rf conftest*
1606 ac_cv_header_sys_wait_h=yes
1607 else
1608 echo "configure: failed program was:" >&5
1609 cat conftest.$ac_ext >&5
1610 rm -rf conftest*
1611 ac_cv_header_sys_wait_h=no
1612 fi
1613 rm -f conftest*
1614 fi
1615
1616 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
1617 if test $ac_cv_header_sys_wait_h = yes; then
1618 cat >> confdefs.h <<\EOF
1619 #define HAVE_SYS_WAIT_H 1
1620 EOF
1621
1622 fi
1623
1624 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
1625 do
1626 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1627 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1628 echo "configure:1629: checking for $ac_hdr" >&5
1629 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1630 echo $ac_n "(cached) $ac_c" 1>&6
1631 else
1632 cat > conftest.$ac_ext <<EOF
1633 #line 1634 "configure"
1634 #include "confdefs.h"
1635 #include <$ac_hdr>
1636 EOF
1637 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1638 { (eval echo configure:1639: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1639 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1640 if test -z "$ac_err"; then
1641 rm -rf conftest*
1642 eval "ac_cv_header_$ac_safe=yes"
1643 else
1644 echo "$ac_err" >&5
1645 echo "configure: failed program was:" >&5
1646 cat conftest.$ac_ext >&5
1647 rm -rf conftest*
1648 eval "ac_cv_header_$ac_safe=no"
1649 fi
1650 rm -f conftest*
1651 fi
1652 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1653 echo "$ac_t""yes" 1>&6
1654 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1655 cat >> confdefs.h <<EOF
1656 #define $ac_tr_hdr 1
1657 EOF
1658
1659 else
1660 echo "$ac_t""no" 1>&6
1661 fi
1662 done
1663
1664
1665 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
1666 echo "configure:1667: checking for mode_t" >&5
1667 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
1668 echo $ac_n "(cached) $ac_c" 1>&6
1669 else
1670 cat > conftest.$ac_ext <<EOF
1671 #line 1672 "configure"
1672 #include "confdefs.h"
1673 #include <sys/types.h>
1674 #if STDC_HEADERS
1675 #include <stdlib.h>
1676 #include <stddef.h>
1677 #endif
1678 EOF
1679 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1680 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1681 rm -rf conftest*
1682 ac_cv_type_mode_t=yes
1683 else
1684 rm -rf conftest*
1685 ac_cv_type_mode_t=no
1686 fi
1687 rm -f conftest*
1688
1689 fi
1690 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
1691 if test $ac_cv_type_mode_t = no; then
1692 cat >> confdefs.h <<\EOF
1693 #define mode_t int
1694 EOF
1695
1696 fi
1697
1698 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1699 echo "configure:1700: checking whether time.h and sys/time.h may both be included" >&5
1700 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1701 echo $ac_n "(cached) $ac_c" 1>&6
1702 else
1703 cat > conftest.$ac_ext <<EOF
1704 #line 1705 "configure"
1705 #include "confdefs.h"
1706 #include <sys/types.h>
1707 #include <sys/time.h>
1708 #include <time.h>
1709 int main() {
1710 struct tm *tp;
1711 ; return 0; }
1712 EOF
1713 if { (eval echo configure:1714: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1714 rm -rf conftest*
1715 ac_cv_header_time=yes
1716 else
1717 echo "configure: failed program was:" >&5
1718 cat conftest.$ac_ext >&5
1719 rm -rf conftest*
1720 ac_cv_header_time=no
1721 fi
1722 rm -f conftest*
1723 fi
1724
1725 echo "$ac_t""$ac_cv_header_time" 1>&6
1726 if test $ac_cv_header_time = yes; then
1727 cat >> confdefs.h <<\EOF
1728 #define TIME_WITH_SYS_TIME 1
1729 EOF
1730
1731 fi
1732
1733
1734 if test $ac_cv_prog_gcc = yes; then
1735 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1736 echo "configure:1737: checking whether ${CC-cc} needs -traditional" >&5
1737 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1738 echo $ac_n "(cached) $ac_c" 1>&6
1739 else
1740 ac_pattern="Autoconf.*'x'"
1741 cat > conftest.$ac_ext <<EOF
1742 #line 1743 "configure"
1743 #include "confdefs.h"
1744 #include <sgtty.h>
1745 Autoconf TIOCGETP
1746 EOF
1747 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1748 egrep "$ac_pattern" >/dev/null 2>&1; then
1749 rm -rf conftest*
1750 ac_cv_prog_gcc_traditional=yes
1751 else
1752 rm -rf conftest*
1753 ac_cv_prog_gcc_traditional=no
1754 fi
1755 rm -f conftest*
1756
1757
1758 if test $ac_cv_prog_gcc_traditional = no; then
1759 cat > conftest.$ac_ext <<EOF
1760 #line 1761 "configure"
1761 #include "confdefs.h"
1762 #include <termio.h>
1763 Autoconf TCGETA
1764 EOF
1765 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1766 egrep "$ac_pattern" >/dev/null 2>&1; then
1767 rm -rf conftest*
1768 ac_cv_prog_gcc_traditional=yes
1769 fi
1770 rm -f conftest*
1771
1772 fi
1773 fi
1774
1775 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1776 if test $ac_cv_prog_gcc_traditional = yes; then
1777 CC="$CC -traditional"
1778 fi
1779 fi
1780
1781 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
1782 echo "configure:1783: checking for 8-bit clean memcmp" >&5
1783 if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
1784 echo $ac_n "(cached) $ac_c" 1>&6
1785 else
1786 if test "$cross_compiling" = yes; then
1787 ac_cv_func_memcmp_clean=no
1788 else
1789 cat > conftest.$ac_ext <<EOF
1790 #line 1791 "configure"
1791 #include "confdefs.h"
1792
1793 main()
1794 {
1795 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
1796 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
1797 }
1798
1799 EOF
1800 if { (eval echo configure:1801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1801 then
1802 ac_cv_func_memcmp_clean=yes
1803 else
1804 echo "configure: failed program was:" >&5
1805 cat conftest.$ac_ext >&5
1806 rm -fr conftest*
1807 ac_cv_func_memcmp_clean=no
1808 fi
1809 rm -fr conftest*
1810 fi
1811
1812 fi
1813
1814 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
1815 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
1816
1817 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
1818 echo "configure:1819: checking return type of signal handlers" >&5
1819 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
1820 echo $ac_n "(cached) $ac_c" 1>&6
1821 else
1822 cat > conftest.$ac_ext <<EOF
1823 #line 1824 "configure"
1824 #include "confdefs.h"
1825 #include <sys/types.h>
1826 #include <signal.h>
1827 #ifdef signal
1828 #undef signal
1829 #endif
1830 #ifdef __cplusplus
1831 extern "C" void (*signal (int, void (*)(int)))(int);
1832 #else
1833 void (*signal ()) ();
1834 #endif
1835
1836 int main() {
1837 int i;
1838 ; return 0; }
1839 EOF
1840 if { (eval echo configure:1841: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1841 rm -rf conftest*
1842 ac_cv_type_signal=void
1843 else
1844 echo "configure: failed program was:" >&5
1845 cat conftest.$ac_ext >&5
1846 rm -rf conftest*
1847 ac_cv_type_signal=int
1848 fi
1849 rm -f conftest*
1850 fi
1851
1852 echo "$ac_t""$ac_cv_type_signal" 1>&6
1853 cat >> confdefs.h <<EOF
1854 #define RETSIGTYPE $ac_cv_type_signal
1855 EOF
1856
1857
1858 echo $ac_n "checking for wait3 that fills in rusage""... $ac_c" 1>&6
1859 echo "configure:1860: checking for wait3 that fills in rusage" >&5
1860 if eval "test \"`echo '$''{'ac_cv_func_wait3_rusage'+set}'`\" = set"; then
1861 echo $ac_n "(cached) $ac_c" 1>&6
1862 else
1863 if test "$cross_compiling" = yes; then
1864 ac_cv_func_wait3_rusage=no
1865 else
1866 cat > conftest.$ac_ext <<EOF
1867 #line 1868 "configure"
1868 #include "confdefs.h"
1869 #include <sys/types.h>
1870 #include <sys/time.h>
1871 #include <sys/resource.h>
1872 #include <stdio.h>
1873 /* HP-UX has wait3 but does not fill in rusage at all. */
1874 main() {
1875 struct rusage r;
1876 int i;
1877 /* Use a field that we can force nonzero --
1878 voluntary context switches.
1879 For systems like NeXT and OSF/1 that don't set it,
1880 also use the system CPU time. And page faults (I/O) for Linux. */
1881 r.ru_nvcsw = 0;
1882 r.ru_stime.tv_sec = 0;
1883 r.ru_stime.tv_usec = 0;
1884 r.ru_majflt = r.ru_minflt = 0;
1885 switch (fork()) {
1886 case 0: /* Child. */
1887 sleep(1); /* Give up the CPU. */
1888 _exit(0);
1889 case -1: _exit(0); /* What can we do? */
1890 default: /* Parent. */
1891 wait3(&i, 0, &r);
1892 sleep(2); /* Avoid "text file busy" from rm on fast HP-UX machines. */
1893 exit(r.ru_nvcsw == 0 && r.ru_majflt == 0 && r.ru_minflt == 0
1894 && r.ru_stime.tv_sec == 0 && r.ru_stime.tv_usec == 0);
1895 }
1896 }
1897 EOF
1898 if { (eval echo configure:1899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1899 then
1900 ac_cv_func_wait3_rusage=yes
1901 else
1902 echo "configure: failed program was:" >&5
1903 cat conftest.$ac_ext >&5
1904 rm -fr conftest*
1905 ac_cv_func_wait3_rusage=no
1906 fi
1907 rm -fr conftest*
1908 fi
1909
1910 fi
1911
1912 echo "$ac_t""$ac_cv_func_wait3_rusage" 1>&6
1913 if test $ac_cv_func_wait3_rusage = yes; then
1914 cat >> confdefs.h <<\EOF
1915 #define HAVE_WAIT3 1
1916 EOF
1917
1918 fi
1919
1920 for ac_func in gethostname mkdir select socket strtol
1921 do
1922 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1923 echo "configure:1924: checking for $ac_func" >&5
1924 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1925 echo $ac_n "(cached) $ac_c" 1>&6
1926 else
1927 cat > conftest.$ac_ext <<EOF
1928 #line 1929 "configure"
1929 #include "confdefs.h"
1930 /* System header to define __stub macros and hopefully few prototypes,
1931 which can conflict with char $ac_func(); below. */
1932 #include <assert.h>
1933 /* Override any gcc2 internal prototype to avoid an error. */
1934 /* We use char because int might match the return type of a gcc2
1935 builtin and then its argument prototype would still apply. */
1936 char $ac_func();
1937
1938 int main() {
1939
1940 /* The GNU C library defines this for functions which it implements
1941 to always fail with ENOSYS. Some functions are actually named
1942 something starting with __ and the normal name is an alias. */
1943 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1944 choke me
1945 #else
1946 $ac_func();
1947 #endif
1948
1949 ; return 0; }
1950 EOF
1951 if { (eval echo configure:1952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1952 rm -rf conftest*
1953 eval "ac_cv_func_$ac_func=yes"
1954 else
1955 echo "configure: failed program was:" >&5
1956 cat conftest.$ac_ext >&5
1957 rm -rf conftest*
1958 eval "ac_cv_func_$ac_func=no"
1959 fi
1960 rm -f conftest*
1961 fi
1962
1963 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1964 echo "$ac_t""yes" 1>&6
1965 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1966 cat >> confdefs.h <<EOF
1967 #define $ac_tr_func 1
1968 EOF
1969
1970 else
1971 echo "$ac_t""no" 1>&6
1972 fi
1973 done
1974
1975
1976
1977
1978 trap '' 1 2 15
1979 cat > confcache <<\EOF
1980 # This file is a shell script that caches the results of configure
1981 # tests run on this system so they can be shared between configure
1982 # scripts and configure runs. It is not useful on other systems.
1983 # If it contains results you don't want to keep, you may remove or edit it.
1984 #
1985 # By default, configure uses ./config.cache as the cache file,
1986 # creating it if it does not exist already. You can give configure
1987 # the --cache-file=FILE option to use a different cache file; that is
1988 # what configure does when it calls configure scripts in
1989 # subdirectories, so they share the cache.
1990 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1991 # config.status only pays attention to the cache file if you give it the
1992 # --recheck option to rerun configure.
1993 #
1994 EOF
1995 # The following way of writing the cache mishandles newlines in values,
1996 # but we know of no workaround that is simple, portable, and efficient.
1997 # So, don't put newlines in cache variables' values.
1998 # Ultrix sh set writes to stderr and can't be redirected directly,
1999 # and sets the high bit in the cache file unless we assign to the vars.
2000 (set) 2>&1 |
2001 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2002 *ac_space=\ *)
2003 # `set' does not quote correctly, so add quotes (double-quote substitution
2004 # turns \\\\ into \\, and sed turns \\ into \).
2005 sed -n \
2006 -e "s/'/'\\\\''/g" \
2007 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2008 ;;
2009 *)
2010 # `set' quotes correctly as required by POSIX, so do not add quotes.
2011 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2012 ;;
2013 esac >> confcache
2014 if cmp -s $cache_file confcache; then
2015 :
2016 else
2017 if test -w $cache_file; then
2018 echo "updating cache $cache_file"
2019 cat confcache > $cache_file
2020 else
2021 echo "not updating unwritable cache $cache_file"
2022 fi
2023 fi
2024 rm -f confcache
2025
2026 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2027
2028 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2029 # Let make expand exec_prefix.
2030 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2031
2032 # Any assignment to VPATH causes Sun make to only execute
2033 # the first set of double-colon rules, so remove it if not needed.
2034 # If there is a colon in the path, we need to keep it.
2035 if test "x$srcdir" = x.; then
2036 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2037 fi
2038
2039 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2040
2041 DEFS=-DHAVE_CONFIG_H
2042
2043 # Without the "./", some shells look in PATH for config.status.
2044 : ${CONFIG_STATUS=./config.status}
2045
2046 echo creating $CONFIG_STATUS
2047 rm -f $CONFIG_STATUS
2048 cat > $CONFIG_STATUS <<EOF
2049 #! /bin/sh
2050 # Generated automatically by configure.
2051 # Run this file to recreate the current configuration.
2052 # This directory was configured as follows,
2053 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2054 #
2055 # $0 $ac_configure_args
2056 #
2057 # Compiler output produced by configure, useful for debugging
2058 # configure, is in ./config.log if it exists.
2059
2060 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2061 for ac_option
2062 do
2063 case "\$ac_option" in
2064 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2065 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2066 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2067 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2068 echo "$CONFIG_STATUS generated by autoconf version 2.13"
2069 exit 0 ;;
2070 -help | --help | --hel | --he | --h)
2071 echo "\$ac_cs_usage"; exit 0 ;;
2072 *) echo "\$ac_cs_usage"; exit 1 ;;
2073 esac
2074 done
2075
2076 ac_given_srcdir=$srcdir
2077 ac_given_INSTALL="$INSTALL"
2078
2079 trap 'rm -fr `echo "makerule.mk Wnn/man/2.env/wnn/Makefile Wnn/pubdicplus/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 PubdicPlus/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
2080 EOF
2081 cat >> $CONFIG_STATUS <<EOF
2082
2083 # Protect against being on the right side of a sed subst in config.status.
2084 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2085 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2086 $ac_vpsub
2087 $extrasub
2088 s%@SHELL@%$SHELL%g
2089 s%@CFLAGS@%$CFLAGS%g
2090 s%@CPPFLAGS@%$CPPFLAGS%g
2091 s%@CXXFLAGS@%$CXXFLAGS%g
2092 s%@FFLAGS@%$FFLAGS%g
2093 s%@DEFS@%$DEFS%g
2094 s%@LDFLAGS@%$LDFLAGS%g
2095 s%@LIBS@%$LIBS%g
2096 s%@exec_prefix@%$exec_prefix%g
2097 s%@prefix@%$prefix%g
2098 s%@program_transform_name@%$program_transform_name%g
2099 s%@bindir@%$bindir%g
2100 s%@sbindir@%$sbindir%g
2101 s%@libexecdir@%$libexecdir%g
2102 s%@datadir@%$datadir%g
2103 s%@sysconfdir@%$sysconfdir%g
2104 s%@sharedstatedir@%$sharedstatedir%g
2105 s%@localstatedir@%$localstatedir%g
2106 s%@libdir@%$libdir%g
2107 s%@includedir@%$includedir%g
2108 s%@oldincludedir@%$oldincludedir%g
2109 s%@infodir@%$infodir%g
2110 s%@mandir@%$mandir%g
2111 s%@abs_top_srcdir@%$abs_top_srcdir%g
2112 s%@CC@%$CC%g
2113 s%@CPP@%$CPP%g
2114 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2115 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2116 s%@INSTALL_DATA@%$INSTALL_DATA%g
2117 s%@LN_S@%$LN_S%g
2118 s%@SET_MAKE@%$SET_MAKE%g
2119 s%@RANLIB@%$RANLIB%g
2120 s%@CCOPTIONS@%$CCOPTIONS%g
2121 s%@CDEBUGFLAGS@%$CDEBUGFLAGS%g
2122 s%@LIBOBJS@%$LIBOBJS%g
2123
2124 CEOF
2125 EOF
2126
2127 cat >> $CONFIG_STATUS <<\EOF
2128
2129 # Split the substitutions into bite-sized pieces for seds with
2130 # small command number limits, like on Digital OSF/1 and HP-UX.
2131 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2132 ac_file=1 # Number of current file.
2133 ac_beg=1 # First line for current file.
2134 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2135 ac_more_lines=:
2136 ac_sed_cmds=""
2137 while $ac_more_lines; do
2138 if test $ac_beg -gt 1; then
2139 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2140 else
2141 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2142 fi
2143 if test ! -s conftest.s$ac_file; then
2144 ac_more_lines=false
2145 rm -f conftest.s$ac_file
2146 else
2147 if test -z "$ac_sed_cmds"; then
2148 ac_sed_cmds="sed -f conftest.s$ac_file"
2149 else
2150 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2151 fi
2152 ac_file=`expr $ac_file + 1`
2153 ac_beg=$ac_end
2154 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2155 fi
2156 done
2157 if test -z "$ac_sed_cmds"; then
2158 ac_sed_cmds=cat
2159 fi
2160 EOF
2161
2162 cat >> $CONFIG_STATUS <<EOF
2163
2164 CONFIG_FILES=\${CONFIG_FILES-"makerule.mk Wnn/man/2.env/wnn/Makefile Wnn/pubdicplus/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 PubdicPlus/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"}
2165 EOF
2166 cat >> $CONFIG_STATUS <<\EOF
2167 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2168 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2169 case "$ac_file" in
2170 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2171 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2172 *) ac_file_in="${ac_file}.in" ;;
2173 esac
2174
2175 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2176
2177 # Remove last slash and all that follows it. Not all systems have dirname.
2178 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2179 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2180 # The file is in a subdirectory.
2181 test ! -d "$ac_dir" && mkdir "$ac_dir"
2182 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2183 # A "../" for each directory in $ac_dir_suffix.
2184 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2185 else
2186 ac_dir_suffix= ac_dots=
2187 fi
2188
2189 case "$ac_given_srcdir" in
2190 .) srcdir=.
2191 if test -z "$ac_dots"; then top_srcdir=.
2192 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2193 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2194 *) # Relative path.
2195 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2196 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2197 esac
2198
2199 case "$ac_given_INSTALL" in
2200 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2201 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2202 esac
2203
2204 echo creating "$ac_file"
2205 rm -f "$ac_file"
2206 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2207 case "$ac_file" in
2208 *Makefile*) ac_comsub="1i\\
2209 # $configure_input" ;;
2210 *) ac_comsub= ;;
2211 esac
2212
2213 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2214 sed -e "$ac_comsub
2215 s%@configure_input@%$configure_input%g
2216 s%@srcdir@%$srcdir%g
2217 s%@top_srcdir@%$top_srcdir%g
2218 s%@INSTALL@%$INSTALL%g
2219 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2220 fi; done
2221 rm -f conftest.s*
2222
2223 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2224 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2225 #
2226 # ac_d sets the value in "#define NAME VALUE" lines.
2227 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2228 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
2229 ac_dC='\3'
2230 ac_dD='%g'
2231 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2232 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2233 ac_uB='\([ ]\)%\1#\2define\3'
2234 ac_uC=' '
2235 ac_uD='\4%g'
2236 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2237 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2238 ac_eB='$%\1#\2define\3'
2239 ac_eC=' '
2240 ac_eD='%g'
2241
2242 if test "${CONFIG_HEADERS+set}" != set; then
2243 EOF
2244 cat >> $CONFIG_STATUS <<EOF
2245 CONFIG_HEADERS="config.h"
2246 EOF
2247 cat >> $CONFIG_STATUS <<\EOF
2248 fi
2249 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2250 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2251 case "$ac_file" in
2252 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2253 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2254 *) ac_file_in="${ac_file}.in" ;;
2255 esac
2256
2257 echo creating $ac_file
2258
2259 rm -f conftest.frag conftest.in conftest.out
2260 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2261 cat $ac_file_inputs > conftest.in
2262
2263 EOF
2264
2265 # Transform confdefs.h into a sed script conftest.vals that substitutes
2266 # the proper values into config.h.in to produce config.h. And first:
2267 # Protect against being on the right side of a sed subst in config.status.
2268 # Protect against being in an unquoted here document in config.status.
2269 rm -f conftest.vals
2270 cat > conftest.hdr <<\EOF
2271 s/[\\&%]/\\&/g
2272 s%[\\$`]%\\&%g
2273 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2274 s%ac_d%ac_u%gp
2275 s%ac_u%ac_e%gp
2276 EOF
2277 sed -n -f conftest.hdr confdefs.h > conftest.vals
2278 rm -f conftest.hdr
2279
2280 # This sed command replaces #undef with comments. This is necessary, for
2281 # example, in the case of _POSIX_SOURCE, which is predefined and required
2282 # on some systems where configure will not decide to define it.
2283 cat >> conftest.vals <<\EOF
2284 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2285 EOF
2286
2287 # Break up conftest.vals because some shells have a limit on
2288 # the size of here documents, and old seds have small limits too.
2289
2290 rm -f conftest.tail
2291 while :
2292 do
2293 ac_lines=`grep -c . conftest.vals`
2294 # grep -c gives empty output for an empty file on some AIX systems.
2295 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2296 # Write a limited-size here document to conftest.frag.
2297 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2298 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2299 echo 'CEOF
2300 sed -f conftest.frag conftest.in > conftest.out
2301 rm -f conftest.in
2302 mv conftest.out conftest.in
2303 ' >> $CONFIG_STATUS
2304 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2305 rm -f conftest.vals
2306 mv conftest.tail conftest.vals
2307 done
2308 rm -f conftest.vals
2309
2310 cat >> $CONFIG_STATUS <<\EOF
2311 rm -f conftest.frag conftest.h
2312 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
2313 cat conftest.in >> conftest.h
2314 rm -f conftest.in
2315 if cmp -s $ac_file conftest.h 2>/dev/null; then
2316 echo "$ac_file is unchanged"
2317 rm -f conftest.h
2318 else
2319 # Remove last slash and all that follows it. Not all systems have dirname.
2320 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2321 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2322 # The file is in a subdirectory.
2323 test ! -d "$ac_dir" && mkdir "$ac_dir"
2324 fi
2325 rm -f $ac_file
2326 mv conftest.h $ac_file
2327 fi
2328 fi; done
2329
2330 EOF
2331 cat >> $CONFIG_STATUS <<EOF
2332
2333 EOF
2334 cat >> $CONFIG_STATUS <<\EOF
2335
2336 exit 0
2337 EOF
2338 chmod +x $CONFIG_STATUS
2339 rm -fr confdefs* $ac_clean_files
2340 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2341

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