Mercurial > hg > xemacs-beta
annotate modules/canna/configure @ 5785:7343a186a475
Correct some partial character accounting, buffered_bytecount_to_charcount().
src/ChangeLog addition:
2014-01-23 Aidan Kehoe <kehoea@parhasard.net>
* lstream.c (Lstream_read_1):
Don't include the unread partial character in
unget_character_count, since our consumers will never be aware of it.
* text.c:
* text.c (buffered_bytecount_to_charcount):
A buffer consisting entirely of a partial character needs to be
treated as a partial last character, not a partial first
character, to avoid double-counting.
author | Aidan Kehoe <kehoea@parhasard.net> |
---|---|
date | Thu, 23 Jan 2014 13:49:40 +0000 |
parents | 56b64a055043 |
children |
rev | line source |
---|---|
3007 | 1 #! /bin/sh |
3017 | 2 # From configure.ac Revision: 1.3 . |
3007 | 3 # Guess values for system-dependent variables and create Makefiles. |
4 # Generated by GNU Autoconf 2.59 for Sample module 1.0. | |
5 # | |
6 # Report bugs to <xemacs-beta@xemacs.org>. | |
7 # | |
8 # Copyright (C) 2003 Free Software Foundation, Inc. | |
9 # This configure script is free software; the Free Software Foundation | |
10 # gives unlimited permission to copy, distribute and modify it. | |
11 # | |
12 # Configuration script for the sample module. | |
13 # Copyright (C) 2002 Jerry James. | |
14 # | |
15 # This file is part of XEmacs. | |
16 # | |
5418
56b64a055043
Converted modules to GPLv3 or later.
Mats Lidell <matsl@xemacs.org>
parents:
3017
diff
changeset
|
17 # XEmacs is free software: you can redistribute it and/or modify it |
56b64a055043
Converted modules to GPLv3 or later.
Mats Lidell <matsl@xemacs.org>
parents:
3017
diff
changeset
|
18 # under the terms of the GNU General Public License as published by the |
56b64a055043
Converted modules to GPLv3 or later.
Mats Lidell <matsl@xemacs.org>
parents:
3017
diff
changeset
|
19 # Free Software Foundation, either version 3 of the License, or (at your |
3007 | 20 # option) any later version. |
21 # | |
5418
56b64a055043
Converted modules to GPLv3 or later.
Mats Lidell <matsl@xemacs.org>
parents:
3017
diff
changeset
|
22 # XEmacs is distributed in the hope that it will be useful, but WITHOUT |
56b64a055043
Converted modules to GPLv3 or later.
Mats Lidell <matsl@xemacs.org>
parents:
3017
diff
changeset
|
23 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
56b64a055043
Converted modules to GPLv3 or later.
Mats Lidell <matsl@xemacs.org>
parents:
3017
diff
changeset
|
24 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
56b64a055043
Converted modules to GPLv3 or later.
Mats Lidell <matsl@xemacs.org>
parents:
3017
diff
changeset
|
25 # for more details. |
3007 | 26 # |
27 # You should have received a copy of the GNU General Public License | |
5418
56b64a055043
Converted modules to GPLv3 or later.
Mats Lidell <matsl@xemacs.org>
parents:
3017
diff
changeset
|
28 # along with XEmacs. If not, see <http://www.gnu.org/licenses/>. |
3007 | 29 ## --------------------- ## |
30 ## M4sh Initialization. ## | |
31 ## --------------------- ## | |
32 | |
33 # Be Bourne compatible | |
34 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
35 emulate sh | |
36 NULLCMD=: | |
37 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
38 # is contrary to our usage. Disable this feature. | |
39 alias -g '${1+"$@"}'='"$@"' | |
40 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
41 set -o posix | |
42 fi | |
43 DUALCASE=1; export DUALCASE # for MKS sh | |
44 | |
45 # Support unset when possible. | |
46 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
47 as_unset=unset | |
48 else | |
49 as_unset=false | |
50 fi | |
51 | |
52 | |
53 # Work around bugs in pre-3.0 UWIN ksh. | |
54 $as_unset ENV MAIL MAILPATH | |
55 PS1='$ ' | |
56 PS2='> ' | |
57 PS4='+ ' | |
58 | |
59 # NLS nuisances. | |
60 for as_var in \ | |
61 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
62 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
63 LC_TELEPHONE LC_TIME | |
64 do | |
65 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
66 eval $as_var=C; export $as_var | |
67 else | |
68 $as_unset $as_var | |
69 fi | |
70 done | |
71 | |
72 # Required to use basename. | |
73 if expr a : '\(a\)' >/dev/null 2>&1; then | |
74 as_expr=expr | |
75 else | |
76 as_expr=false | |
77 fi | |
78 | |
79 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
80 as_basename=basename | |
81 else | |
82 as_basename=false | |
83 fi | |
84 | |
85 | |
86 # Name of the executable. | |
87 as_me=`$as_basename "$0" || | |
88 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
89 X"$0" : 'X\(//\)$' \| \ | |
90 X"$0" : 'X\(/\)$' \| \ | |
91 . : '\(.\)' 2>/dev/null || | |
92 echo X/"$0" | | |
93 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
94 /^X\/\(\/\/\)$/{ s//\1/; q; } | |
95 /^X\/\(\/\).*/{ s//\1/; q; } | |
96 s/.*/./; q'` | |
97 | |
98 | |
99 # PATH needs CR, and LINENO needs CR and PATH. | |
100 # Avoid depending upon Character Ranges. | |
101 as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
102 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
103 as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
104 as_cr_digits='0123456789' | |
105 as_cr_alnum=$as_cr_Letters$as_cr_digits | |
106 | |
107 # The user is always right. | |
108 if test "${PATH_SEPARATOR+set}" != set; then | |
109 echo "#! /bin/sh" >conf$$.sh | |
110 echo "exit 0" >>conf$$.sh | |
111 chmod +x conf$$.sh | |
112 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
113 PATH_SEPARATOR=';' | |
114 else | |
115 PATH_SEPARATOR=: | |
116 fi | |
117 rm -f conf$$.sh | |
118 fi | |
119 | |
120 | |
121 as_lineno_1=$LINENO | |
122 as_lineno_2=$LINENO | |
123 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
124 test "x$as_lineno_1" != "x$as_lineno_2" && | |
125 test "x$as_lineno_3" = "x$as_lineno_2" || { | |
126 # Find who we are. Look in the path if we contain no path at all | |
127 # relative or not. | |
128 case $0 in | |
129 *[\\/]* ) as_myself=$0 ;; | |
130 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
131 for as_dir in $PATH | |
132 do | |
133 IFS=$as_save_IFS | |
134 test -z "$as_dir" && as_dir=. | |
135 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
136 done | |
137 | |
138 ;; | |
139 esac | |
140 # We did not find ourselves, most probably we were run as `sh COMMAND' | |
141 # in which case we are not to be found in the path. | |
142 if test "x$as_myself" = x; then | |
143 as_myself=$0 | |
144 fi | |
145 if test ! -f "$as_myself"; then | |
146 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 | |
147 { (exit 1); exit 1; }; } | |
148 fi | |
149 case $CONFIG_SHELL in | |
150 '') | |
151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
152 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
153 do | |
154 IFS=$as_save_IFS | |
155 test -z "$as_dir" && as_dir=. | |
156 for as_base in sh bash ksh sh5; do | |
157 case $as_dir in | |
158 /*) | |
159 if ("$as_dir/$as_base" -c ' | |
160 as_lineno_1=$LINENO | |
161 as_lineno_2=$LINENO | |
162 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
163 test "x$as_lineno_1" != "x$as_lineno_2" && | |
164 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
165 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
166 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
167 CONFIG_SHELL=$as_dir/$as_base | |
168 export CONFIG_SHELL | |
169 exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
170 fi;; | |
171 esac | |
172 done | |
173 done | |
174 ;; | |
175 esac | |
176 | |
177 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
178 # uniformly replaced by the line number. The first 'sed' inserts a | |
179 # line-number line before each line; the second 'sed' does the real | |
180 # work. The second script uses 'N' to pair each line-number line | |
181 # with the numbered line, and appends trailing '-' during | |
182 # substitution so that $LINENO is not a special case at line end. | |
183 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
184 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
185 sed '=' <$as_myself | | |
186 sed ' | |
187 N | |
188 s,$,-, | |
189 : loop | |
190 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
191 t loop | |
192 s,-$,, | |
193 s,^['$as_cr_digits']*\n,, | |
194 ' >$as_me.lineno && | |
195 chmod +x $as_me.lineno || | |
196 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
197 { (exit 1); exit 1; }; } | |
198 | |
199 # Don't try to exec as it changes $[0], causing all sort of problems | |
200 # (the dirname of $[0] is not the place where we might find the | |
201 # original and so on. Autoconf is especially sensible to this). | |
202 . ./$as_me.lineno | |
203 # Exit status is that of the last command. | |
204 exit | |
205 } | |
206 | |
207 | |
208 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
209 *c*,-n*) ECHO_N= ECHO_C=' | |
210 ' ECHO_T=' ' ;; | |
211 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
212 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
213 esac | |
214 | |
215 if expr a : '\(a\)' >/dev/null 2>&1; then | |
216 as_expr=expr | |
217 else | |
218 as_expr=false | |
219 fi | |
220 | |
221 rm -f conf$$ conf$$.exe conf$$.file | |
222 echo >conf$$.file | |
223 if ln -s conf$$.file conf$$ 2>/dev/null; then | |
224 # We could just check for DJGPP; but this test a) works b) is more generic | |
225 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
226 if test -f conf$$.exe; then | |
227 # Don't use ln at all; we don't have any links | |
228 as_ln_s='cp -p' | |
229 else | |
230 as_ln_s='ln -s' | |
231 fi | |
232 elif ln conf$$.file conf$$ 2>/dev/null; then | |
233 as_ln_s=ln | |
234 else | |
235 as_ln_s='cp -p' | |
236 fi | |
237 rm -f conf$$ conf$$.exe conf$$.file | |
238 | |
239 if mkdir -p . 2>/dev/null; then | |
240 as_mkdir_p=: | |
241 else | |
242 test -d ./-p && rmdir ./-p | |
243 as_mkdir_p=false | |
244 fi | |
245 | |
246 as_executable_p="test -f" | |
247 | |
248 # Sed expression to map a string onto a valid CPP name. | |
249 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
250 | |
251 # Sed expression to map a string onto a valid variable name. | |
252 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
253 | |
254 | |
255 # IFS | |
256 # We need space, tab and new line, in precisely that order. | |
257 as_nl=' | |
258 ' | |
259 IFS=" $as_nl" | |
260 | |
261 # CDPATH. | |
262 $as_unset CDPATH | |
263 | |
264 | |
265 # Name of the host. | |
266 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
267 # so uname gets run too. | |
268 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
269 | |
270 exec 6>&1 | |
271 | |
272 # | |
273 # Initializations. | |
274 # | |
275 ac_default_prefix=/usr/local | |
276 ac_config_libobj_dir=. | |
277 cross_compiling=no | |
278 subdirs= | |
279 MFLAGS= | |
280 MAKEFLAGS= | |
281 SHELL=${CONFIG_SHELL-/bin/sh} | |
282 | |
283 # Maximum number of lines to put in a shell here document. | |
284 # This variable seems obsolete. It should probably be removed, and | |
285 # only ac_max_sed_lines should be used. | |
286 : ${ac_max_here_lines=38} | |
287 | |
288 # Identity of this package. | |
289 PACKAGE_NAME='Sample module' | |
290 PACKAGE_TARNAME='sample-module' | |
291 PACKAGE_VERSION='1.0' | |
292 PACKAGE_STRING='Sample module 1.0' | |
293 PACKAGE_BUGREPORT='xemacs-beta@xemacs.org' | |
294 | |
295 ac_unique_file="sample.c" | |
296 # Factoring default headers for most tests. | |
297 ac_includes_default="\ | |
298 #include <stdio.h> | |
299 #if HAVE_SYS_TYPES_H | |
300 # include <sys/types.h> | |
301 #endif | |
302 #if HAVE_SYS_STAT_H | |
303 # include <sys/stat.h> | |
304 #endif | |
305 #if STDC_HEADERS | |
306 # include <stdlib.h> | |
307 # include <stddef.h> | |
308 #else | |
309 # if HAVE_STDLIB_H | |
310 # include <stdlib.h> | |
311 # endif | |
312 #endif | |
313 #if HAVE_STRING_H | |
314 # if !STDC_HEADERS && HAVE_MEMORY_H | |
315 # include <memory.h> | |
316 # endif | |
317 # include <string.h> | |
318 #endif | |
319 #if HAVE_STRINGS_H | |
320 # include <strings.h> | |
321 #endif | |
322 #if HAVE_INTTYPES_H | |
323 # include <inttypes.h> | |
324 #else | |
325 # if HAVE_STDINT_H | |
326 # include <stdint.h> | |
327 # endif | |
328 #endif | |
329 #if HAVE_UNISTD_H | |
330 # include <unistd.h> | |
331 #endif" | |
332 | |
333 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA ELLCC CPP EGREP canna_libs PROGNAME MOD_CC MODARCHDIR MAKE_DOCFILE MODCFLAGS INSTALLPATH MOD_INSTALL_PROGRAM OBJECT_TO_BUILD LIBOBJS LTLIBOBJS' | |
334 ac_subst_files='' | |
335 | |
336 # Initialize some variables set by options. | |
337 ac_init_help= | |
338 ac_init_version=false | |
339 # The variables have the same names as the options, with | |
340 # dashes changed to underlines. | |
341 cache_file=/dev/null | |
342 exec_prefix=NONE | |
343 no_create= | |
344 no_recursion= | |
345 prefix=NONE | |
346 program_prefix=NONE | |
347 program_suffix=NONE | |
348 program_transform_name=s,x,x, | |
349 silent= | |
350 site= | |
351 srcdir= | |
352 verbose= | |
353 x_includes=NONE | |
354 x_libraries=NONE | |
355 | |
356 # Installation directory options. | |
357 # These are left unexpanded so users can "make install exec_prefix=/foo" | |
358 # and all the variables that are supposed to be based on exec_prefix | |
359 # by default will actually change. | |
360 # Use braces instead of parens because sh, perl, etc. also accept them. | |
361 bindir='${exec_prefix}/bin' | |
362 sbindir='${exec_prefix}/sbin' | |
363 libexecdir='${exec_prefix}/libexec' | |
364 datadir='${prefix}/share' | |
365 sysconfdir='${prefix}/etc' | |
366 sharedstatedir='${prefix}/com' | |
367 localstatedir='${prefix}/var' | |
368 libdir='${exec_prefix}/lib' | |
369 includedir='${prefix}/include' | |
370 oldincludedir='/usr/include' | |
371 infodir='${prefix}/info' | |
372 mandir='${prefix}/man' | |
373 | |
374 ac_prev= | |
375 for ac_option | |
376 do | |
377 # If the previous option needs an argument, assign it. | |
378 if test -n "$ac_prev"; then | |
379 eval "$ac_prev=\$ac_option" | |
380 ac_prev= | |
381 continue | |
382 fi | |
383 | |
384 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` | |
385 | |
386 # Accept the important Cygnus configure options, so we can diagnose typos. | |
387 | |
388 case $ac_option in | |
389 | |
390 -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
391 ac_prev=bindir ;; | |
392 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
393 bindir=$ac_optarg ;; | |
394 | |
395 -build | --build | --buil | --bui | --bu) | |
396 ac_prev=build_alias ;; | |
397 -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
398 build_alias=$ac_optarg ;; | |
399 | |
400 -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
401 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
402 ac_prev=cache_file ;; | |
403 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
404 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
405 cache_file=$ac_optarg ;; | |
406 | |
407 --config-cache | -C) | |
408 cache_file=config.cache ;; | |
409 | |
410 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
411 ac_prev=datadir ;; | |
412 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
413 | --da=*) | |
414 datadir=$ac_optarg ;; | |
415 | |
416 -disable-* | --disable-*) | |
417 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
418 # Reject names that are not valid shell variable names. | |
419 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
420 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
421 { (exit 1); exit 1; }; } | |
422 ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
423 eval "enable_$ac_feature=no" ;; | |
424 | |
425 -enable-* | --enable-*) | |
426 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
427 # Reject names that are not valid shell variable names. | |
428 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
429 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
430 { (exit 1); exit 1; }; } | |
431 ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
432 case $ac_option in | |
433 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
434 *) ac_optarg=yes ;; | |
435 esac | |
436 eval "enable_$ac_feature='$ac_optarg'" ;; | |
437 | |
438 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
439 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
440 | --exec | --exe | --ex) | |
441 ac_prev=exec_prefix ;; | |
442 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
443 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
444 | --exec=* | --exe=* | --ex=*) | |
445 exec_prefix=$ac_optarg ;; | |
446 | |
447 -gas | --gas | --ga | --g) | |
448 # Obsolete; use --with-gas. | |
449 with_gas=yes ;; | |
450 | |
451 -help | --help | --hel | --he | -h) | |
452 ac_init_help=long ;; | |
453 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
454 ac_init_help=recursive ;; | |
455 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
456 ac_init_help=short ;; | |
457 | |
458 -host | --host | --hos | --ho) | |
459 ac_prev=host_alias ;; | |
460 -host=* | --host=* | --hos=* | --ho=*) | |
461 host_alias=$ac_optarg ;; | |
462 | |
463 -includedir | --includedir | --includedi | --included | --include \ | |
464 | --includ | --inclu | --incl | --inc) | |
465 ac_prev=includedir ;; | |
466 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
467 | --includ=* | --inclu=* | --incl=* | --inc=*) | |
468 includedir=$ac_optarg ;; | |
469 | |
470 -infodir | --infodir | --infodi | --infod | --info | --inf) | |
471 ac_prev=infodir ;; | |
472 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
473 infodir=$ac_optarg ;; | |
474 | |
475 -libdir | --libdir | --libdi | --libd) | |
476 ac_prev=libdir ;; | |
477 -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
478 libdir=$ac_optarg ;; | |
479 | |
480 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
481 | --libexe | --libex | --libe) | |
482 ac_prev=libexecdir ;; | |
483 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
484 | --libexe=* | --libex=* | --libe=*) | |
485 libexecdir=$ac_optarg ;; | |
486 | |
487 -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
488 | --localstate | --localstat | --localsta | --localst \ | |
489 | --locals | --local | --loca | --loc | --lo) | |
490 ac_prev=localstatedir ;; | |
491 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
492 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
493 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
494 localstatedir=$ac_optarg ;; | |
495 | |
496 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
497 ac_prev=mandir ;; | |
498 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
499 mandir=$ac_optarg ;; | |
500 | |
501 -nfp | --nfp | --nf) | |
502 # Obsolete; use --without-fp. | |
503 with_fp=no ;; | |
504 | |
505 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
506 | --no-cr | --no-c | -n) | |
507 no_create=yes ;; | |
508 | |
509 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
510 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
511 no_recursion=yes ;; | |
512 | |
513 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
514 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
515 | --oldin | --oldi | --old | --ol | --o) | |
516 ac_prev=oldincludedir ;; | |
517 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
518 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
519 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
520 oldincludedir=$ac_optarg ;; | |
521 | |
522 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
523 ac_prev=prefix ;; | |
524 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
525 prefix=$ac_optarg ;; | |
526 | |
527 -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
528 | --program-pre | --program-pr | --program-p) | |
529 ac_prev=program_prefix ;; | |
530 -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
531 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
532 program_prefix=$ac_optarg ;; | |
533 | |
534 -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
535 | --program-suf | --program-su | --program-s) | |
536 ac_prev=program_suffix ;; | |
537 -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
538 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
539 program_suffix=$ac_optarg ;; | |
540 | |
541 -program-transform-name | --program-transform-name \ | |
542 | --program-transform-nam | --program-transform-na \ | |
543 | --program-transform-n | --program-transform- \ | |
544 | --program-transform | --program-transfor \ | |
545 | --program-transfo | --program-transf \ | |
546 | --program-trans | --program-tran \ | |
547 | --progr-tra | --program-tr | --program-t) | |
548 ac_prev=program_transform_name ;; | |
549 -program-transform-name=* | --program-transform-name=* \ | |
550 | --program-transform-nam=* | --program-transform-na=* \ | |
551 | --program-transform-n=* | --program-transform-=* \ | |
552 | --program-transform=* | --program-transfor=* \ | |
553 | --program-transfo=* | --program-transf=* \ | |
554 | --program-trans=* | --program-tran=* \ | |
555 | --progr-tra=* | --program-tr=* | --program-t=*) | |
556 program_transform_name=$ac_optarg ;; | |
557 | |
558 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
559 | -silent | --silent | --silen | --sile | --sil) | |
560 silent=yes ;; | |
561 | |
562 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
563 ac_prev=sbindir ;; | |
564 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
565 | --sbi=* | --sb=*) | |
566 sbindir=$ac_optarg ;; | |
567 | |
568 -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
569 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
570 | --sharedst | --shareds | --shared | --share | --shar \ | |
571 | --sha | --sh) | |
572 ac_prev=sharedstatedir ;; | |
573 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
574 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
575 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
576 | --sha=* | --sh=*) | |
577 sharedstatedir=$ac_optarg ;; | |
578 | |
579 -site | --site | --sit) | |
580 ac_prev=site ;; | |
581 -site=* | --site=* | --sit=*) | |
582 site=$ac_optarg ;; | |
583 | |
584 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
585 ac_prev=srcdir ;; | |
586 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
587 srcdir=$ac_optarg ;; | |
588 | |
589 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
590 | --syscon | --sysco | --sysc | --sys | --sy) | |
591 ac_prev=sysconfdir ;; | |
592 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
593 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
594 sysconfdir=$ac_optarg ;; | |
595 | |
596 -target | --target | --targe | --targ | --tar | --ta | --t) | |
597 ac_prev=target_alias ;; | |
598 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
599 target_alias=$ac_optarg ;; | |
600 | |
601 -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
602 verbose=yes ;; | |
603 | |
604 -version | --version | --versio | --versi | --vers | -V) | |
605 ac_init_version=: ;; | |
606 | |
607 -with-* | --with-*) | |
608 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
609 # Reject names that are not valid shell variable names. | |
610 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
611 { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
612 { (exit 1); exit 1; }; } | |
613 ac_package=`echo $ac_package| sed 's/-/_/g'` | |
614 case $ac_option in | |
615 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
616 *) ac_optarg=yes ;; | |
617 esac | |
618 eval "with_$ac_package='$ac_optarg'" ;; | |
619 | |
620 -without-* | --without-*) | |
621 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
622 # Reject names that are not valid shell variable names. | |
623 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
624 { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
625 { (exit 1); exit 1; }; } | |
626 ac_package=`echo $ac_package | sed 's/-/_/g'` | |
627 eval "with_$ac_package=no" ;; | |
628 | |
629 --x) | |
630 # Obsolete; use --with-x. | |
631 with_x=yes ;; | |
632 | |
633 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
634 | --x-incl | --x-inc | --x-in | --x-i) | |
635 ac_prev=x_includes ;; | |
636 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
637 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
638 x_includes=$ac_optarg ;; | |
639 | |
640 -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
641 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
642 ac_prev=x_libraries ;; | |
643 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
644 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
645 x_libraries=$ac_optarg ;; | |
646 | |
647 -*) { echo "$as_me: error: unrecognized option: $ac_option | |
648 Try \`$0 --help' for more information." >&2 | |
649 { (exit 1); exit 1; }; } | |
650 ;; | |
651 | |
652 *=*) | |
653 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
654 # Reject names that are not valid shell variable names. | |
655 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
656 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
657 { (exit 1); exit 1; }; } | |
658 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | |
659 eval "$ac_envvar='$ac_optarg'" | |
660 export $ac_envvar ;; | |
661 | |
662 *) | |
663 # FIXME: should be removed in autoconf 3.0. | |
664 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
665 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
666 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
667 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
668 ;; | |
669 | |
670 esac | |
671 done | |
672 | |
673 if test -n "$ac_prev"; then | |
674 ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
675 { echo "$as_me: error: missing argument to $ac_option" >&2 | |
676 { (exit 1); exit 1; }; } | |
677 fi | |
678 | |
679 # Be sure to have absolute paths. | |
680 for ac_var in exec_prefix prefix | |
681 do | |
682 eval ac_val=$`echo $ac_var` | |
683 case $ac_val in | |
684 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | |
685 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
686 { (exit 1); exit 1; }; };; | |
687 esac | |
688 done | |
689 | |
690 # Be sure to have absolute paths. | |
691 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
692 localstatedir libdir includedir oldincludedir infodir mandir | |
693 do | |
694 eval ac_val=$`echo $ac_var` | |
695 case $ac_val in | |
696 [\\/$]* | ?:[\\/]* ) ;; | |
697 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
698 { (exit 1); exit 1; }; };; | |
699 esac | |
700 done | |
701 | |
702 # There might be people who depend on the old broken behavior: `$host' | |
703 # used to hold the argument of --host etc. | |
704 # FIXME: To remove some day. | |
705 build=$build_alias | |
706 host=$host_alias | |
707 target=$target_alias | |
708 | |
709 # FIXME: To remove some day. | |
710 if test "x$host_alias" != x; then | |
711 if test "x$build_alias" = x; then | |
712 cross_compiling=maybe | |
713 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
714 If a cross compiler is detected then cross compile mode will be used." >&2 | |
715 elif test "x$build_alias" != "x$host_alias"; then | |
716 cross_compiling=yes | |
717 fi | |
718 fi | |
719 | |
720 ac_tool_prefix= | |
721 test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
722 | |
723 test "$silent" = yes && exec 6>/dev/null | |
724 | |
725 | |
726 # Find the source files, if location was not specified. | |
727 if test -z "$srcdir"; then | |
728 ac_srcdir_defaulted=yes | |
729 # Try the directory containing this script, then its parent. | |
730 ac_confdir=`(dirname "$0") 2>/dev/null || | |
731 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
732 X"$0" : 'X\(//\)[^/]' \| \ | |
733 X"$0" : 'X\(//\)$' \| \ | |
734 X"$0" : 'X\(/\)' \| \ | |
735 . : '\(.\)' 2>/dev/null || | |
736 echo X"$0" | | |
737 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
738 /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
739 /^X\(\/\/\)$/{ s//\1/; q; } | |
740 /^X\(\/\).*/{ s//\1/; q; } | |
741 s/.*/./; q'` | |
742 srcdir=$ac_confdir | |
743 if test ! -r $srcdir/$ac_unique_file; then | |
744 srcdir=.. | |
745 fi | |
746 else | |
747 ac_srcdir_defaulted=no | |
748 fi | |
749 if test ! -r $srcdir/$ac_unique_file; then | |
750 if test "$ac_srcdir_defaulted" = yes; then | |
751 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 | |
752 { (exit 1); exit 1; }; } | |
753 else | |
754 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | |
755 { (exit 1); exit 1; }; } | |
756 fi | |
757 fi | |
758 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || | |
759 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 | |
760 { (exit 1); exit 1; }; } | |
761 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` | |
762 ac_env_build_alias_set=${build_alias+set} | |
763 ac_env_build_alias_value=$build_alias | |
764 ac_cv_env_build_alias_set=${build_alias+set} | |
765 ac_cv_env_build_alias_value=$build_alias | |
766 ac_env_host_alias_set=${host_alias+set} | |
767 ac_env_host_alias_value=$host_alias | |
768 ac_cv_env_host_alias_set=${host_alias+set} | |
769 ac_cv_env_host_alias_value=$host_alias | |
770 ac_env_target_alias_set=${target_alias+set} | |
771 ac_env_target_alias_value=$target_alias | |
772 ac_cv_env_target_alias_set=${target_alias+set} | |
773 ac_cv_env_target_alias_value=$target_alias | |
774 ac_env_CC_set=${CC+set} | |
775 ac_env_CC_value=$CC | |
776 ac_cv_env_CC_set=${CC+set} | |
777 ac_cv_env_CC_value=$CC | |
778 ac_env_CFLAGS_set=${CFLAGS+set} | |
779 ac_env_CFLAGS_value=$CFLAGS | |
780 ac_cv_env_CFLAGS_set=${CFLAGS+set} | |
781 ac_cv_env_CFLAGS_value=$CFLAGS | |
782 ac_env_LDFLAGS_set=${LDFLAGS+set} | |
783 ac_env_LDFLAGS_value=$LDFLAGS | |
784 ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
785 ac_cv_env_LDFLAGS_value=$LDFLAGS | |
786 ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
787 ac_env_CPPFLAGS_value=$CPPFLAGS | |
788 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
789 ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
790 ac_env_ELLCC_set=${ELLCC+set} | |
791 ac_env_ELLCC_value=$ELLCC | |
792 ac_cv_env_ELLCC_set=${ELLCC+set} | |
793 ac_cv_env_ELLCC_value=$ELLCC | |
794 ac_env_CPP_set=${CPP+set} | |
795 ac_env_CPP_value=$CPP | |
796 ac_cv_env_CPP_set=${CPP+set} | |
797 ac_cv_env_CPP_value=$CPP | |
798 | |
799 # | |
800 # Report the --help message. | |
801 # | |
802 if test "$ac_init_help" = "long"; then | |
803 # Omit some internal or obsolete options to make the list less imposing. | |
804 # This message is too long to be a string in the A/UX 3.1 sh. | |
805 cat <<_ACEOF | |
806 \`configure' configures Sample module 1.0 to adapt to many kinds of systems. | |
807 | |
808 Usage: $0 [OPTION]... [VAR=VALUE]... | |
809 | |
810 To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
811 VAR=VALUE. See below for descriptions of some of the useful variables. | |
812 | |
813 Defaults for the options are specified in brackets. | |
814 | |
815 Configuration: | |
816 -h, --help display this help and exit | |
817 --help=short display options specific to this package | |
818 --help=recursive display the short help of all the included packages | |
819 -V, --version display version information and exit | |
820 -q, --quiet, --silent do not print \`checking...' messages | |
821 --cache-file=FILE cache test results in FILE [disabled] | |
822 -C, --config-cache alias for \`--cache-file=config.cache' | |
823 -n, --no-create do not create output files | |
824 --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
825 | |
826 _ACEOF | |
827 | |
828 cat <<_ACEOF | |
829 Installation directories: | |
830 --prefix=PREFIX install architecture-independent files in PREFIX | |
831 [$ac_default_prefix] | |
832 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
833 [PREFIX] | |
834 | |
835 By default, \`make install' will install all the files in | |
836 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
837 an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
838 for instance \`--prefix=\$HOME'. | |
839 | |
840 For better control, use the options below. | |
841 | |
842 Fine tuning of the installation directories: | |
843 --bindir=DIR user executables [EPREFIX/bin] | |
844 --sbindir=DIR system admin executables [EPREFIX/sbin] | |
845 --libexecdir=DIR program executables [EPREFIX/libexec] | |
846 --datadir=DIR read-only architecture-independent data [PREFIX/share] | |
847 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
848 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
849 --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
850 --libdir=DIR object code libraries [EPREFIX/lib] | |
851 --includedir=DIR C header files [PREFIX/include] | |
852 --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
853 --infodir=DIR info documentation [PREFIX/info] | |
854 --mandir=DIR man documentation [PREFIX/man] | |
855 _ACEOF | |
856 | |
857 cat <<\_ACEOF | |
858 _ACEOF | |
859 fi | |
860 | |
861 if test -n "$ac_init_help"; then | |
862 case $ac_init_help in | |
863 short | recursive ) echo "Configuration of Sample module 1.0:";; | |
864 esac | |
865 cat <<\_ACEOF | |
866 | |
867 Some influential environment variables: | |
868 CC C compiler command | |
869 CFLAGS C compiler flags | |
870 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
871 nonstandard directory <lib dir> | |
872 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
873 headers in a nonstandard directory <include dir> | |
874 ELLCC The path to the ellcc module compiler | |
875 CPP C preprocessor | |
876 | |
877 Use these variables to override the choices made by `configure' or to help | |
878 it to find libraries and programs with nonstandard names/locations. | |
879 | |
880 Report bugs to <xemacs-beta@xemacs.org>. | |
881 _ACEOF | |
882 fi | |
883 | |
884 if test "$ac_init_help" = "recursive"; then | |
885 # If there are subdirs, report their specific --help. | |
886 ac_popdir=`pwd` | |
887 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
888 test -d $ac_dir || continue | |
889 ac_builddir=. | |
890 | |
891 if test "$ac_dir" != .; then | |
892 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
893 # A "../" for each directory in $ac_dir_suffix. | |
894 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
895 else | |
896 ac_dir_suffix= ac_top_builddir= | |
897 fi | |
898 | |
899 case $srcdir in | |
900 .) # No --srcdir option. We are building in place. | |
901 ac_srcdir=. | |
902 if test -z "$ac_top_builddir"; then | |
903 ac_top_srcdir=. | |
904 else | |
905 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
906 fi ;; | |
907 [\\/]* | ?:[\\/]* ) # Absolute path. | |
908 ac_srcdir=$srcdir$ac_dir_suffix; | |
909 ac_top_srcdir=$srcdir ;; | |
910 *) # Relative path. | |
911 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
912 ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
913 esac | |
914 | |
915 # Do not use `cd foo && pwd` to compute absolute paths, because | |
916 # the directories may not exist. | |
917 case `pwd` in | |
918 .) ac_abs_builddir="$ac_dir";; | |
919 *) | |
920 case "$ac_dir" in | |
921 .) ac_abs_builddir=`pwd`;; | |
922 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
923 *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
924 esac;; | |
925 esac | |
926 case $ac_abs_builddir in | |
927 .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
928 *) | |
929 case ${ac_top_builddir}. in | |
930 .) ac_abs_top_builddir=$ac_abs_builddir;; | |
931 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
932 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
933 esac;; | |
934 esac | |
935 case $ac_abs_builddir in | |
936 .) ac_abs_srcdir=$ac_srcdir;; | |
937 *) | |
938 case $ac_srcdir in | |
939 .) ac_abs_srcdir=$ac_abs_builddir;; | |
940 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
941 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
942 esac;; | |
943 esac | |
944 case $ac_abs_builddir in | |
945 .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
946 *) | |
947 case $ac_top_srcdir in | |
948 .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
949 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
950 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
951 esac;; | |
952 esac | |
953 | |
954 cd $ac_dir | |
955 # Check for guested configure; otherwise get Cygnus style configure. | |
956 if test -f $ac_srcdir/configure.gnu; then | |
957 echo | |
958 $SHELL $ac_srcdir/configure.gnu --help=recursive | |
959 elif test -f $ac_srcdir/configure; then | |
960 echo | |
961 $SHELL $ac_srcdir/configure --help=recursive | |
962 elif test -f $ac_srcdir/configure.ac || | |
963 test -f $ac_srcdir/configure.in; then | |
964 echo | |
965 $ac_configure --help | |
966 else | |
967 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
968 fi | |
969 cd $ac_popdir | |
970 done | |
971 fi | |
972 | |
973 test -n "$ac_init_help" && exit 0 | |
974 if $ac_init_version; then | |
975 cat <<\_ACEOF | |
976 Sample module configure 1.0 | |
977 generated by GNU Autoconf 2.59 | |
978 | |
979 Copyright (C) 2003 Free Software Foundation, Inc. | |
980 This configure script is free software; the Free Software Foundation | |
981 gives unlimited permission to copy, distribute and modify it. | |
982 | |
983 Configuration script for the sample module. | |
984 Copyright (C) 2002 Jerry James. | |
985 | |
986 This file is part of XEmacs. | |
987 | |
988 XEmacs is free software; you can redistribute it and/or modify it | |
989 under the terms of the GNU General Public License as published by | |
990 the Free Software Foundation; either version 2, or (at your | |
991 option) any later version. | |
992 | |
993 XEmacs is distributed in the hope that it will be useful, but | |
994 WITHOUT ANY WARRANTY; without even the implied warranty of | |
995 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
996 General Public License for more details. | |
997 | |
998 You should have received a copy of the GNU General Public License | |
999 along with XEmacs; see the file COPYING. If not, write to the Free | |
1000 Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA | |
1001 02111-1307, USA. | |
1002 _ACEOF | |
1003 exit 0 | |
1004 fi | |
1005 exec 5>config.log | |
1006 cat >&5 <<_ACEOF | |
1007 This file contains any messages produced by compilers while | |
1008 running configure, to aid debugging if configure makes a mistake. | |
1009 | |
1010 It was created by Sample module $as_me 1.0, which was | |
1011 generated by GNU Autoconf 2.59. Invocation command line was | |
1012 | |
1013 $ $0 $@ | |
1014 | |
1015 _ACEOF | |
1016 { | |
1017 cat <<_ASUNAME | |
1018 ## --------- ## | |
1019 ## Platform. ## | |
1020 ## --------- ## | |
1021 | |
1022 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1023 uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1024 uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1025 uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1026 uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1027 | |
1028 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1029 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1030 | |
1031 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1032 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1033 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1034 hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1035 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1036 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1037 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1038 | |
1039 _ASUNAME | |
1040 | |
1041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1042 for as_dir in $PATH | |
1043 do | |
1044 IFS=$as_save_IFS | |
1045 test -z "$as_dir" && as_dir=. | |
1046 echo "PATH: $as_dir" | |
1047 done | |
1048 | |
1049 } >&5 | |
1050 | |
1051 cat >&5 <<_ACEOF | |
1052 | |
1053 | |
1054 ## ----------- ## | |
1055 ## Core tests. ## | |
1056 ## ----------- ## | |
1057 | |
1058 _ACEOF | |
1059 | |
1060 | |
1061 # Keep a trace of the command line. | |
1062 # Strip out --no-create and --no-recursion so they do not pile up. | |
1063 # Strip out --silent because we don't want to record it for future runs. | |
1064 # Also quote any args containing shell meta-characters. | |
1065 # Make two passes to allow for proper duplicate-argument suppression. | |
1066 ac_configure_args= | |
1067 ac_configure_args0= | |
1068 ac_configure_args1= | |
1069 ac_sep= | |
1070 ac_must_keep_next=false | |
1071 for ac_pass in 1 2 | |
1072 do | |
1073 for ac_arg | |
1074 do | |
1075 case $ac_arg in | |
1076 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1077 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1078 | -silent | --silent | --silen | --sile | --sil) | |
1079 continue ;; | |
1080 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1081 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1082 esac | |
1083 case $ac_pass in | |
1084 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1085 2) | |
1086 ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1087 if test $ac_must_keep_next = true; then | |
1088 ac_must_keep_next=false # Got value, back to normal. | |
1089 else | |
1090 case $ac_arg in | |
1091 *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1092 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1093 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1094 | -with-* | --with-* | -without-* | --without-* | --x) | |
1095 case "$ac_configure_args0 " in | |
1096 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1097 esac | |
1098 ;; | |
1099 -* ) ac_must_keep_next=true ;; | |
1100 esac | |
1101 fi | |
1102 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1103 # Get rid of the leading space. | |
1104 ac_sep=" " | |
1105 ;; | |
1106 esac | |
1107 done | |
1108 done | |
1109 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1110 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1111 | |
1112 # When interrupted or exit'd, cleanup temporary files, and complete | |
1113 # config.log. We remove comments because anyway the quotes in there | |
1114 # would cause problems or look ugly. | |
1115 # WARNING: Be sure not to use single quotes in there, as some shells, | |
1116 # such as our DU 5.0 friend, will then `close' the trap. | |
1117 trap 'exit_status=$? | |
1118 # Save into config.log some information that might help in debugging. | |
1119 { | |
1120 echo | |
1121 | |
1122 cat <<\_ASBOX | |
1123 ## ---------------- ## | |
1124 ## Cache variables. ## | |
1125 ## ---------------- ## | |
1126 _ASBOX | |
1127 echo | |
1128 # The following way of writing the cache mishandles newlines in values, | |
1129 { | |
1130 (set) 2>&1 | | |
1131 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1132 *ac_space=\ *) | |
1133 sed -n \ | |
1134 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | |
1135 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
1136 ;; | |
1137 *) | |
1138 sed -n \ | |
1139 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
1140 ;; | |
1141 esac; | |
1142 } | |
1143 echo | |
1144 | |
1145 cat <<\_ASBOX | |
1146 ## ----------------- ## | |
1147 ## Output variables. ## | |
1148 ## ----------------- ## | |
1149 _ASBOX | |
1150 echo | |
1151 for ac_var in $ac_subst_vars | |
1152 do | |
1153 eval ac_val=$`echo $ac_var` | |
1154 echo "$ac_var='"'"'$ac_val'"'"'" | |
1155 done | sort | |
1156 echo | |
1157 | |
1158 if test -n "$ac_subst_files"; then | |
1159 cat <<\_ASBOX | |
1160 ## ------------- ## | |
1161 ## Output files. ## | |
1162 ## ------------- ## | |
1163 _ASBOX | |
1164 echo | |
1165 for ac_var in $ac_subst_files | |
1166 do | |
1167 eval ac_val=$`echo $ac_var` | |
1168 echo "$ac_var='"'"'$ac_val'"'"'" | |
1169 done | sort | |
1170 echo | |
1171 fi | |
1172 | |
1173 if test -s confdefs.h; then | |
1174 cat <<\_ASBOX | |
1175 ## ----------- ## | |
1176 ## confdefs.h. ## | |
1177 ## ----------- ## | |
1178 _ASBOX | |
1179 echo | |
1180 sed "/^$/d" confdefs.h | sort | |
1181 echo | |
1182 fi | |
1183 test "$ac_signal" != 0 && | |
1184 echo "$as_me: caught signal $ac_signal" | |
1185 echo "$as_me: exit $exit_status" | |
1186 } >&5 | |
1187 rm -f core *.core && | |
1188 rm -rf conftest* confdefs* conf$$* $ac_clean_files && | |
1189 exit $exit_status | |
1190 ' 0 | |
1191 for ac_signal in 1 2 13 15; do | |
1192 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1193 done | |
1194 ac_signal=0 | |
1195 | |
1196 # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1197 rm -rf conftest* confdefs.h | |
1198 # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1199 echo >confdefs.h | |
1200 | |
1201 # Predefined preprocessor variables. | |
1202 | |
1203 cat >>confdefs.h <<_ACEOF | |
1204 #define PACKAGE_NAME "$PACKAGE_NAME" | |
1205 _ACEOF | |
1206 | |
1207 | |
1208 cat >>confdefs.h <<_ACEOF | |
1209 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1210 _ACEOF | |
1211 | |
1212 | |
1213 cat >>confdefs.h <<_ACEOF | |
1214 #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1215 _ACEOF | |
1216 | |
1217 | |
1218 cat >>confdefs.h <<_ACEOF | |
1219 #define PACKAGE_STRING "$PACKAGE_STRING" | |
1220 _ACEOF | |
1221 | |
1222 | |
1223 cat >>confdefs.h <<_ACEOF | |
1224 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1225 _ACEOF | |
1226 | |
1227 | |
1228 # Let the site file select an alternate cache file if it wants to. | |
1229 # Prefer explicitly selected file to automatically selected ones. | |
1230 if test -z "$CONFIG_SITE"; then | |
1231 if test "x$prefix" != xNONE; then | |
1232 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1233 else | |
1234 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1235 fi | |
1236 fi | |
1237 for ac_site_file in $CONFIG_SITE; do | |
1238 if test -r "$ac_site_file"; then | |
1239 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1240 echo "$as_me: loading site script $ac_site_file" >&6;} | |
1241 sed 's/^/| /' "$ac_site_file" >&5 | |
1242 . "$ac_site_file" | |
1243 fi | |
1244 done | |
1245 | |
1246 if test -r "$cache_file"; then | |
1247 # Some versions of bash will fail to source /dev/null (special | |
1248 # files actually), so we avoid doing that. | |
1249 if test -f "$cache_file"; then | |
1250 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1251 echo "$as_me: loading cache $cache_file" >&6;} | |
1252 case $cache_file in | |
1253 [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1254 *) . ./$cache_file;; | |
1255 esac | |
1256 fi | |
1257 else | |
1258 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1259 echo "$as_me: creating cache $cache_file" >&6;} | |
1260 >$cache_file | |
1261 fi | |
1262 | |
1263 # Check that the precious variables saved in the cache have kept the same | |
1264 # value. | |
1265 ac_cache_corrupted=false | |
1266 for ac_var in `(set) 2>&1 | | |
1267 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | |
1268 eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
1269 eval ac_new_set=\$ac_env_${ac_var}_set | |
1270 eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1271 eval ac_new_val="\$ac_env_${ac_var}_value" | |
1272 case $ac_old_set,$ac_new_set in | |
1273 set,) | |
1274 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1275 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1276 ac_cache_corrupted=: ;; | |
1277 ,set) | |
1278 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1279 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1280 ac_cache_corrupted=: ;; | |
1281 ,);; | |
1282 *) | |
1283 if test "x$ac_old_val" != "x$ac_new_val"; then | |
1284 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1285 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1286 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
1287 echo "$as_me: former value: $ac_old_val" >&2;} | |
1288 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
1289 echo "$as_me: current value: $ac_new_val" >&2;} | |
1290 ac_cache_corrupted=: | |
1291 fi;; | |
1292 esac | |
1293 # Pass precious variables to config.status. | |
1294 if test "$ac_new_set" = set; then | |
1295 case $ac_new_val in | |
1296 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1297 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1298 *) ac_arg=$ac_var=$ac_new_val ;; | |
1299 esac | |
1300 case " $ac_configure_args " in | |
1301 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1302 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1303 esac | |
1304 fi | |
1305 done | |
1306 if $ac_cache_corrupted; then | |
1307 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1308 echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1309 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1310 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1311 { (exit 1); exit 1; }; } | |
1312 fi | |
1313 | |
1314 ac_ext=c | |
1315 ac_cpp='$CPP $CPPFLAGS' | |
1316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1318 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1319 | |
1320 | |
1321 | |
1322 | |
1323 | |
1324 | |
1325 | |
1326 | |
1327 | |
1328 | |
1329 | |
1330 | |
1331 | |
1332 | |
1333 | |
1334 | |
1335 | |
1336 | |
1337 | |
1338 | |
1339 | |
1340 | |
1341 | |
1342 | |
1343 | |
1344 | |
1345 | |
1346 | |
1347 | |
1348 | |
1349 | |
1350 | |
1351 ac_ext=c | |
1352 ac_cpp='$CPP $CPPFLAGS' | |
1353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1355 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1356 if test -n "$ac_tool_prefix"; then | |
1357 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
1358 set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
1359 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1361 if test "${ac_cv_prog_CC+set}" = set; then | |
1362 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1363 else | |
1364 if test -n "$CC"; then | |
1365 ac_cv_prog_CC="$CC" # Let the user override the test. | |
1366 else | |
1367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1368 for as_dir in $PATH | |
1369 do | |
1370 IFS=$as_save_IFS | |
1371 test -z "$as_dir" && as_dir=. | |
1372 for ac_exec_ext in '' $ac_executable_extensions; do | |
1373 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1374 ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
1375 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1376 break 2 | |
1377 fi | |
1378 done | |
1379 done | |
1380 | |
1381 fi | |
1382 fi | |
1383 CC=$ac_cv_prog_CC | |
1384 if test -n "$CC"; then | |
1385 echo "$as_me:$LINENO: result: $CC" >&5 | |
1386 echo "${ECHO_T}$CC" >&6 | |
1387 else | |
1388 echo "$as_me:$LINENO: result: no" >&5 | |
1389 echo "${ECHO_T}no" >&6 | |
1390 fi | |
1391 | |
1392 fi | |
1393 if test -z "$ac_cv_prog_CC"; then | |
1394 ac_ct_CC=$CC | |
1395 # Extract the first word of "gcc", so it can be a program name with args. | |
1396 set dummy gcc; ac_word=$2 | |
1397 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1399 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1400 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1401 else | |
1402 if test -n "$ac_ct_CC"; then | |
1403 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1404 else | |
1405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1406 for as_dir in $PATH | |
1407 do | |
1408 IFS=$as_save_IFS | |
1409 test -z "$as_dir" && as_dir=. | |
1410 for ac_exec_ext in '' $ac_executable_extensions; do | |
1411 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1412 ac_cv_prog_ac_ct_CC="gcc" | |
1413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1414 break 2 | |
1415 fi | |
1416 done | |
1417 done | |
1418 | |
1419 fi | |
1420 fi | |
1421 ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1422 if test -n "$ac_ct_CC"; then | |
1423 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1424 echo "${ECHO_T}$ac_ct_CC" >&6 | |
1425 else | |
1426 echo "$as_me:$LINENO: result: no" >&5 | |
1427 echo "${ECHO_T}no" >&6 | |
1428 fi | |
1429 | |
1430 CC=$ac_ct_CC | |
1431 else | |
1432 CC="$ac_cv_prog_CC" | |
1433 fi | |
1434 | |
1435 if test -z "$CC"; then | |
1436 if test -n "$ac_tool_prefix"; then | |
1437 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
1438 set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
1439 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1441 if test "${ac_cv_prog_CC+set}" = set; then | |
1442 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1443 else | |
1444 if test -n "$CC"; then | |
1445 ac_cv_prog_CC="$CC" # Let the user override the test. | |
1446 else | |
1447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1448 for as_dir in $PATH | |
1449 do | |
1450 IFS=$as_save_IFS | |
1451 test -z "$as_dir" && as_dir=. | |
1452 for ac_exec_ext in '' $ac_executable_extensions; do | |
1453 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1454 ac_cv_prog_CC="${ac_tool_prefix}cc" | |
1455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1456 break 2 | |
1457 fi | |
1458 done | |
1459 done | |
1460 | |
1461 fi | |
1462 fi | |
1463 CC=$ac_cv_prog_CC | |
1464 if test -n "$CC"; then | |
1465 echo "$as_me:$LINENO: result: $CC" >&5 | |
1466 echo "${ECHO_T}$CC" >&6 | |
1467 else | |
1468 echo "$as_me:$LINENO: result: no" >&5 | |
1469 echo "${ECHO_T}no" >&6 | |
1470 fi | |
1471 | |
1472 fi | |
1473 if test -z "$ac_cv_prog_CC"; then | |
1474 ac_ct_CC=$CC | |
1475 # Extract the first word of "cc", so it can be a program name with args. | |
1476 set dummy cc; ac_word=$2 | |
1477 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1479 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1480 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1481 else | |
1482 if test -n "$ac_ct_CC"; then | |
1483 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1484 else | |
1485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1486 for as_dir in $PATH | |
1487 do | |
1488 IFS=$as_save_IFS | |
1489 test -z "$as_dir" && as_dir=. | |
1490 for ac_exec_ext in '' $ac_executable_extensions; do | |
1491 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1492 ac_cv_prog_ac_ct_CC="cc" | |
1493 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1494 break 2 | |
1495 fi | |
1496 done | |
1497 done | |
1498 | |
1499 fi | |
1500 fi | |
1501 ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1502 if test -n "$ac_ct_CC"; then | |
1503 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1504 echo "${ECHO_T}$ac_ct_CC" >&6 | |
1505 else | |
1506 echo "$as_me:$LINENO: result: no" >&5 | |
1507 echo "${ECHO_T}no" >&6 | |
1508 fi | |
1509 | |
1510 CC=$ac_ct_CC | |
1511 else | |
1512 CC="$ac_cv_prog_CC" | |
1513 fi | |
1514 | |
1515 fi | |
1516 if test -z "$CC"; then | |
1517 # Extract the first word of "cc", so it can be a program name with args. | |
1518 set dummy cc; ac_word=$2 | |
1519 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1521 if test "${ac_cv_prog_CC+set}" = set; then | |
1522 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1523 else | |
1524 if test -n "$CC"; then | |
1525 ac_cv_prog_CC="$CC" # Let the user override the test. | |
1526 else | |
1527 ac_prog_rejected=no | |
1528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1529 for as_dir in $PATH | |
1530 do | |
1531 IFS=$as_save_IFS | |
1532 test -z "$as_dir" && as_dir=. | |
1533 for ac_exec_ext in '' $ac_executable_extensions; do | |
1534 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1535 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
1536 ac_prog_rejected=yes | |
1537 continue | |
1538 fi | |
1539 ac_cv_prog_CC="cc" | |
1540 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1541 break 2 | |
1542 fi | |
1543 done | |
1544 done | |
1545 | |
1546 if test $ac_prog_rejected = yes; then | |
1547 # We found a bogon in the path, so make sure we never use it. | |
1548 set dummy $ac_cv_prog_CC | |
1549 shift | |
1550 if test $# != 0; then | |
1551 # We chose a different compiler from the bogus one. | |
1552 # However, it has the same basename, so the bogon will be chosen | |
1553 # first if we set CC to just the basename; use the full file name. | |
1554 shift | |
1555 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
1556 fi | |
1557 fi | |
1558 fi | |
1559 fi | |
1560 CC=$ac_cv_prog_CC | |
1561 if test -n "$CC"; then | |
1562 echo "$as_me:$LINENO: result: $CC" >&5 | |
1563 echo "${ECHO_T}$CC" >&6 | |
1564 else | |
1565 echo "$as_me:$LINENO: result: no" >&5 | |
1566 echo "${ECHO_T}no" >&6 | |
1567 fi | |
1568 | |
1569 fi | |
1570 if test -z "$CC"; then | |
1571 if test -n "$ac_tool_prefix"; then | |
1572 for ac_prog in cl | |
1573 do | |
1574 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
1575 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
1576 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1578 if test "${ac_cv_prog_CC+set}" = set; then | |
1579 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1580 else | |
1581 if test -n "$CC"; then | |
1582 ac_cv_prog_CC="$CC" # Let the user override the test. | |
1583 else | |
1584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1585 for as_dir in $PATH | |
1586 do | |
1587 IFS=$as_save_IFS | |
1588 test -z "$as_dir" && as_dir=. | |
1589 for ac_exec_ext in '' $ac_executable_extensions; do | |
1590 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1591 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
1592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1593 break 2 | |
1594 fi | |
1595 done | |
1596 done | |
1597 | |
1598 fi | |
1599 fi | |
1600 CC=$ac_cv_prog_CC | |
1601 if test -n "$CC"; then | |
1602 echo "$as_me:$LINENO: result: $CC" >&5 | |
1603 echo "${ECHO_T}$CC" >&6 | |
1604 else | |
1605 echo "$as_me:$LINENO: result: no" >&5 | |
1606 echo "${ECHO_T}no" >&6 | |
1607 fi | |
1608 | |
1609 test -n "$CC" && break | |
1610 done | |
1611 fi | |
1612 if test -z "$CC"; then | |
1613 ac_ct_CC=$CC | |
1614 for ac_prog in cl | |
1615 do | |
1616 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1617 set dummy $ac_prog; ac_word=$2 | |
1618 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1620 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1621 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1622 else | |
1623 if test -n "$ac_ct_CC"; then | |
1624 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1625 else | |
1626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1627 for as_dir in $PATH | |
1628 do | |
1629 IFS=$as_save_IFS | |
1630 test -z "$as_dir" && as_dir=. | |
1631 for ac_exec_ext in '' $ac_executable_extensions; do | |
1632 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1633 ac_cv_prog_ac_ct_CC="$ac_prog" | |
1634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1635 break 2 | |
1636 fi | |
1637 done | |
1638 done | |
1639 | |
1640 fi | |
1641 fi | |
1642 ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1643 if test -n "$ac_ct_CC"; then | |
1644 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1645 echo "${ECHO_T}$ac_ct_CC" >&6 | |
1646 else | |
1647 echo "$as_me:$LINENO: result: no" >&5 | |
1648 echo "${ECHO_T}no" >&6 | |
1649 fi | |
1650 | |
1651 test -n "$ac_ct_CC" && break | |
1652 done | |
1653 | |
1654 CC=$ac_ct_CC | |
1655 fi | |
1656 | |
1657 fi | |
1658 | |
1659 | |
1660 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
1661 See \`config.log' for more details." >&5 | |
1662 echo "$as_me: error: no acceptable C compiler found in \$PATH | |
1663 See \`config.log' for more details." >&2;} | |
1664 { (exit 1); exit 1; }; } | |
1665 | |
1666 # Provide some information about the compiler. | |
1667 echo "$as_me:$LINENO:" \ | |
1668 "checking for C compiler version" >&5 | |
1669 ac_compiler=`set X $ac_compile; echo $2` | |
1670 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
1671 (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
1672 ac_status=$? | |
1673 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1674 (exit $ac_status); } | |
1675 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
1676 (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
1677 ac_status=$? | |
1678 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1679 (exit $ac_status); } | |
1680 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
1681 (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
1682 ac_status=$? | |
1683 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1684 (exit $ac_status); } | |
1685 | |
1686 cat >conftest.$ac_ext <<_ACEOF | |
1687 /* confdefs.h. */ | |
1688 _ACEOF | |
1689 cat confdefs.h >>conftest.$ac_ext | |
1690 cat >>conftest.$ac_ext <<_ACEOF | |
1691 /* end confdefs.h. */ | |
1692 | |
1693 int | |
1694 main () | |
1695 { | |
1696 | |
1697 ; | |
1698 return 0; | |
1699 } | |
1700 _ACEOF | |
1701 ac_clean_files_save=$ac_clean_files | |
1702 ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
1703 # Try to create an executable without -o first, disregard a.out. | |
1704 # It will help us diagnose broken compilers, and finding out an intuition | |
1705 # of exeext. | |
1706 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 | |
1707 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
1708 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
1709 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
1710 (eval $ac_link_default) 2>&5 | |
1711 ac_status=$? | |
1712 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1713 (exit $ac_status); }; then | |
1714 # Find the output, starting from the most likely. This scheme is | |
1715 # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
1716 # resort. | |
1717 | |
1718 # Be careful to initialize this variable, since it used to be cached. | |
1719 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
1720 ac_cv_exeext= | |
1721 # b.out is created by i960 compilers. | |
1722 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
1723 do | |
1724 test -f "$ac_file" || continue | |
1725 case $ac_file in | |
1726 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
1727 ;; | |
1728 conftest.$ac_ext ) | |
1729 # This is the source file. | |
1730 ;; | |
1731 [ab].out ) | |
1732 # We found the default executable, but exeext='' is most | |
1733 # certainly right. | |
1734 break;; | |
1735 *.* ) | |
1736 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
1737 # FIXME: I believe we export ac_cv_exeext for Libtool, | |
1738 # but it would be cool to find out if it's true. Does anybody | |
1739 # maintain Libtool? --akim. | |
1740 export ac_cv_exeext | |
1741 break;; | |
1742 * ) | |
1743 break;; | |
1744 esac | |
1745 done | |
1746 else | |
1747 echo "$as_me: failed program was:" >&5 | |
1748 sed 's/^/| /' conftest.$ac_ext >&5 | |
1749 | |
1750 { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
1751 See \`config.log' for more details." >&5 | |
1752 echo "$as_me: error: C compiler cannot create executables | |
1753 See \`config.log' for more details." >&2;} | |
1754 { (exit 77); exit 77; }; } | |
1755 fi | |
1756 | |
1757 ac_exeext=$ac_cv_exeext | |
1758 echo "$as_me:$LINENO: result: $ac_file" >&5 | |
1759 echo "${ECHO_T}$ac_file" >&6 | |
1760 | |
1761 # Check the compiler produces executables we can run. If not, either | |
1762 # the compiler is broken, or we cross compile. | |
1763 echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
1764 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
1765 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
1766 # If not cross compiling, check that we can run a simple program. | |
1767 if test "$cross_compiling" != yes; then | |
1768 if { ac_try='./$ac_file' | |
1769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
1770 (eval $ac_try) 2>&5 | |
1771 ac_status=$? | |
1772 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1773 (exit $ac_status); }; }; then | |
1774 cross_compiling=no | |
1775 else | |
1776 if test "$cross_compiling" = maybe; then | |
1777 cross_compiling=yes | |
1778 else | |
1779 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
1780 If you meant to cross compile, use \`--host'. | |
1781 See \`config.log' for more details." >&5 | |
1782 echo "$as_me: error: cannot run C compiled programs. | |
1783 If you meant to cross compile, use \`--host'. | |
1784 See \`config.log' for more details." >&2;} | |
1785 { (exit 1); exit 1; }; } | |
1786 fi | |
1787 fi | |
1788 fi | |
1789 echo "$as_me:$LINENO: result: yes" >&5 | |
1790 echo "${ECHO_T}yes" >&6 | |
1791 | |
1792 rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
1793 ac_clean_files=$ac_clean_files_save | |
1794 # Check the compiler produces executables we can run. If not, either | |
1795 # the compiler is broken, or we cross compile. | |
1796 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
1797 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
1798 echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
1799 echo "${ECHO_T}$cross_compiling" >&6 | |
1800 | |
1801 echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
1802 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
1803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
1804 (eval $ac_link) 2>&5 | |
1805 ac_status=$? | |
1806 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1807 (exit $ac_status); }; then | |
1808 # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
1809 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
1810 # work properly (i.e., refer to `conftest.exe'), while it won't with | |
1811 # `rm'. | |
1812 for ac_file in conftest.exe conftest conftest.*; do | |
1813 test -f "$ac_file" || continue | |
1814 case $ac_file in | |
1815 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
1816 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
1817 export ac_cv_exeext | |
1818 break;; | |
1819 * ) break;; | |
1820 esac | |
1821 done | |
1822 else | |
1823 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
1824 See \`config.log' for more details." >&5 | |
1825 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
1826 See \`config.log' for more details." >&2;} | |
1827 { (exit 1); exit 1; }; } | |
1828 fi | |
1829 | |
1830 rm -f conftest$ac_cv_exeext | |
1831 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
1832 echo "${ECHO_T}$ac_cv_exeext" >&6 | |
1833 | |
1834 rm -f conftest.$ac_ext | |
1835 EXEEXT=$ac_cv_exeext | |
1836 ac_exeext=$EXEEXT | |
1837 echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
1838 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
1839 if test "${ac_cv_objext+set}" = set; then | |
1840 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1841 else | |
1842 cat >conftest.$ac_ext <<_ACEOF | |
1843 /* confdefs.h. */ | |
1844 _ACEOF | |
1845 cat confdefs.h >>conftest.$ac_ext | |
1846 cat >>conftest.$ac_ext <<_ACEOF | |
1847 /* end confdefs.h. */ | |
1848 | |
1849 int | |
1850 main () | |
1851 { | |
1852 | |
1853 ; | |
1854 return 0; | |
1855 } | |
1856 _ACEOF | |
1857 rm -f conftest.o conftest.obj | |
1858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
1859 (eval $ac_compile) 2>&5 | |
1860 ac_status=$? | |
1861 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1862 (exit $ac_status); }; then | |
1863 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
1864 case $ac_file in | |
1865 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
1866 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
1867 break;; | |
1868 esac | |
1869 done | |
1870 else | |
1871 echo "$as_me: failed program was:" >&5 | |
1872 sed 's/^/| /' conftest.$ac_ext >&5 | |
1873 | |
1874 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
1875 See \`config.log' for more details." >&5 | |
1876 echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
1877 See \`config.log' for more details." >&2;} | |
1878 { (exit 1); exit 1; }; } | |
1879 fi | |
1880 | |
1881 rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
1882 fi | |
1883 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
1884 echo "${ECHO_T}$ac_cv_objext" >&6 | |
1885 OBJEXT=$ac_cv_objext | |
1886 ac_objext=$OBJEXT | |
1887 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
1888 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
1889 if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
1890 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1891 else | |
1892 cat >conftest.$ac_ext <<_ACEOF | |
1893 /* confdefs.h. */ | |
1894 _ACEOF | |
1895 cat confdefs.h >>conftest.$ac_ext | |
1896 cat >>conftest.$ac_ext <<_ACEOF | |
1897 /* end confdefs.h. */ | |
1898 | |
1899 int | |
1900 main () | |
1901 { | |
1902 #ifndef __GNUC__ | |
1903 choke me | |
1904 #endif | |
1905 | |
1906 ; | |
1907 return 0; | |
1908 } | |
1909 _ACEOF | |
1910 rm -f conftest.$ac_objext | |
1911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
1912 (eval $ac_compile) 2>conftest.er1 | |
1913 ac_status=$? | |
1914 grep -v '^ *+' conftest.er1 >conftest.err | |
1915 rm -f conftest.er1 | |
1916 cat conftest.err >&5 | |
1917 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1918 (exit $ac_status); } && | |
1919 { ac_try='test -z "$ac_c_werror_flag" | |
1920 || test ! -s conftest.err' | |
1921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
1922 (eval $ac_try) 2>&5 | |
1923 ac_status=$? | |
1924 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1925 (exit $ac_status); }; } && | |
1926 { ac_try='test -s conftest.$ac_objext' | |
1927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
1928 (eval $ac_try) 2>&5 | |
1929 ac_status=$? | |
1930 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1931 (exit $ac_status); }; }; then | |
1932 ac_compiler_gnu=yes | |
1933 else | |
1934 echo "$as_me: failed program was:" >&5 | |
1935 sed 's/^/| /' conftest.$ac_ext >&5 | |
1936 | |
1937 ac_compiler_gnu=no | |
1938 fi | |
1939 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
1940 ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
1941 | |
1942 fi | |
1943 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
1944 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
1945 GCC=`test $ac_compiler_gnu = yes && echo yes` | |
1946 ac_test_CFLAGS=${CFLAGS+set} | |
1947 ac_save_CFLAGS=$CFLAGS | |
1948 CFLAGS="-g" | |
1949 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
1950 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
1951 if test "${ac_cv_prog_cc_g+set}" = set; then | |
1952 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1953 else | |
1954 cat >conftest.$ac_ext <<_ACEOF | |
1955 /* confdefs.h. */ | |
1956 _ACEOF | |
1957 cat confdefs.h >>conftest.$ac_ext | |
1958 cat >>conftest.$ac_ext <<_ACEOF | |
1959 /* end confdefs.h. */ | |
1960 | |
1961 int | |
1962 main () | |
1963 { | |
1964 | |
1965 ; | |
1966 return 0; | |
1967 } | |
1968 _ACEOF | |
1969 rm -f conftest.$ac_objext | |
1970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
1971 (eval $ac_compile) 2>conftest.er1 | |
1972 ac_status=$? | |
1973 grep -v '^ *+' conftest.er1 >conftest.err | |
1974 rm -f conftest.er1 | |
1975 cat conftest.err >&5 | |
1976 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1977 (exit $ac_status); } && | |
1978 { ac_try='test -z "$ac_c_werror_flag" | |
1979 || test ! -s conftest.err' | |
1980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
1981 (eval $ac_try) 2>&5 | |
1982 ac_status=$? | |
1983 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1984 (exit $ac_status); }; } && | |
1985 { ac_try='test -s conftest.$ac_objext' | |
1986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
1987 (eval $ac_try) 2>&5 | |
1988 ac_status=$? | |
1989 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1990 (exit $ac_status); }; }; then | |
1991 ac_cv_prog_cc_g=yes | |
1992 else | |
1993 echo "$as_me: failed program was:" >&5 | |
1994 sed 's/^/| /' conftest.$ac_ext >&5 | |
1995 | |
1996 ac_cv_prog_cc_g=no | |
1997 fi | |
1998 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
1999 fi | |
2000 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
2001 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
2002 if test "$ac_test_CFLAGS" = set; then | |
2003 CFLAGS=$ac_save_CFLAGS | |
2004 elif test $ac_cv_prog_cc_g = yes; then | |
2005 if test "$GCC" = yes; then | |
2006 CFLAGS="-g -O2" | |
2007 else | |
2008 CFLAGS="-g" | |
2009 fi | |
2010 else | |
2011 if test "$GCC" = yes; then | |
2012 CFLAGS="-O2" | |
2013 else | |
2014 CFLAGS= | |
2015 fi | |
2016 fi | |
2017 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | |
2018 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
2019 if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
2020 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2021 else | |
2022 ac_cv_prog_cc_stdc=no | |
2023 ac_save_CC=$CC | |
2024 cat >conftest.$ac_ext <<_ACEOF | |
2025 /* confdefs.h. */ | |
2026 _ACEOF | |
2027 cat confdefs.h >>conftest.$ac_ext | |
2028 cat >>conftest.$ac_ext <<_ACEOF | |
2029 /* end confdefs.h. */ | |
2030 #include <stdarg.h> | |
2031 #include <stdio.h> | |
2032 #include <sys/types.h> | |
2033 #include <sys/stat.h> | |
2034 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2035 struct buf { int x; }; | |
2036 FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2037 static char *e (p, i) | |
2038 char **p; | |
2039 int i; | |
2040 { | |
2041 return p[i]; | |
2042 } | |
2043 static char *f (char * (*g) (char **, int), char **p, ...) | |
2044 { | |
2045 char *s; | |
2046 va_list v; | |
2047 va_start (v,p); | |
2048 s = g (p, va_arg (v,int)); | |
2049 va_end (v); | |
2050 return s; | |
2051 } | |
2052 | |
2053 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2054 function prototypes and stuff, but not '\xHH' hex character constants. | |
2055 These don't provoke an error unfortunately, instead are silently treated | |
2056 as 'x'. The following induces an error, until -std1 is added to get | |
2057 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
2058 array size at least. It's necessary to write '\x00'==0 to get something | |
2059 that's true only with -std1. */ | |
2060 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
2061 | |
2062 int test (int i, double x); | |
2063 struct s1 {int (*f) (int a);}; | |
2064 struct s2 {int (*f) (double a);}; | |
2065 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2066 int argc; | |
2067 char **argv; | |
2068 int | |
2069 main () | |
2070 { | |
2071 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
2072 ; | |
2073 return 0; | |
2074 } | |
2075 _ACEOF | |
2076 # Don't try gcc -ansi; that turns off useful extensions and | |
2077 # breaks some systems' header files. | |
2078 # AIX -qlanglvl=ansi | |
2079 # Ultrix and OSF/1 -std1 | |
2080 # HP-UX 10.20 and later -Ae | |
2081 # HP-UX older versions -Aa -D_HPUX_SOURCE | |
2082 # SVR4 -Xc -D__EXTENSIONS__ | |
2083 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
2084 do | |
2085 CC="$ac_save_CC $ac_arg" | |
2086 rm -f conftest.$ac_objext | |
2087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2088 (eval $ac_compile) 2>conftest.er1 | |
2089 ac_status=$? | |
2090 grep -v '^ *+' conftest.er1 >conftest.err | |
2091 rm -f conftest.er1 | |
2092 cat conftest.err >&5 | |
2093 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2094 (exit $ac_status); } && | |
2095 { ac_try='test -z "$ac_c_werror_flag" | |
2096 || test ! -s conftest.err' | |
2097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2098 (eval $ac_try) 2>&5 | |
2099 ac_status=$? | |
2100 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2101 (exit $ac_status); }; } && | |
2102 { ac_try='test -s conftest.$ac_objext' | |
2103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2104 (eval $ac_try) 2>&5 | |
2105 ac_status=$? | |
2106 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2107 (exit $ac_status); }; }; then | |
2108 ac_cv_prog_cc_stdc=$ac_arg | |
2109 break | |
2110 else | |
2111 echo "$as_me: failed program was:" >&5 | |
2112 sed 's/^/| /' conftest.$ac_ext >&5 | |
2113 | |
2114 fi | |
2115 rm -f conftest.err conftest.$ac_objext | |
2116 done | |
2117 rm -f conftest.$ac_ext conftest.$ac_objext | |
2118 CC=$ac_save_CC | |
2119 | |
2120 fi | |
2121 | |
2122 case "x$ac_cv_prog_cc_stdc" in | |
2123 x|xno) | |
2124 echo "$as_me:$LINENO: result: none needed" >&5 | |
2125 echo "${ECHO_T}none needed" >&6 ;; | |
2126 *) | |
2127 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
2128 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
2129 CC="$CC $ac_cv_prog_cc_stdc" ;; | |
2130 esac | |
2131 | |
2132 # Some people use a C++ compiler to compile C. Since we use `exit', | |
2133 # in C++ we need to declare it. In case someone uses the same compiler | |
2134 # for both compiling C and C++ we need to have the C++ compiler decide | |
2135 # the declaration of exit, since it's the most demanding environment. | |
2136 cat >conftest.$ac_ext <<_ACEOF | |
2137 #ifndef __cplusplus | |
2138 choke me | |
2139 #endif | |
2140 _ACEOF | |
2141 rm -f conftest.$ac_objext | |
2142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2143 (eval $ac_compile) 2>conftest.er1 | |
2144 ac_status=$? | |
2145 grep -v '^ *+' conftest.er1 >conftest.err | |
2146 rm -f conftest.er1 | |
2147 cat conftest.err >&5 | |
2148 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2149 (exit $ac_status); } && | |
2150 { ac_try='test -z "$ac_c_werror_flag" | |
2151 || test ! -s conftest.err' | |
2152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2153 (eval $ac_try) 2>&5 | |
2154 ac_status=$? | |
2155 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2156 (exit $ac_status); }; } && | |
2157 { ac_try='test -s conftest.$ac_objext' | |
2158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2159 (eval $ac_try) 2>&5 | |
2160 ac_status=$? | |
2161 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2162 (exit $ac_status); }; }; then | |
2163 for ac_declaration in \ | |
2164 '' \ | |
2165 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
2166 'extern "C" void std::exit (int); using std::exit;' \ | |
2167 'extern "C" void exit (int) throw ();' \ | |
2168 'extern "C" void exit (int);' \ | |
2169 'void exit (int);' | |
2170 do | |
2171 cat >conftest.$ac_ext <<_ACEOF | |
2172 /* confdefs.h. */ | |
2173 _ACEOF | |
2174 cat confdefs.h >>conftest.$ac_ext | |
2175 cat >>conftest.$ac_ext <<_ACEOF | |
2176 /* end confdefs.h. */ | |
2177 $ac_declaration | |
2178 #include <stdlib.h> | |
2179 int | |
2180 main () | |
2181 { | |
2182 exit (42); | |
2183 ; | |
2184 return 0; | |
2185 } | |
2186 _ACEOF | |
2187 rm -f conftest.$ac_objext | |
2188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2189 (eval $ac_compile) 2>conftest.er1 | |
2190 ac_status=$? | |
2191 grep -v '^ *+' conftest.er1 >conftest.err | |
2192 rm -f conftest.er1 | |
2193 cat conftest.err >&5 | |
2194 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2195 (exit $ac_status); } && | |
2196 { ac_try='test -z "$ac_c_werror_flag" | |
2197 || test ! -s conftest.err' | |
2198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2199 (eval $ac_try) 2>&5 | |
2200 ac_status=$? | |
2201 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2202 (exit $ac_status); }; } && | |
2203 { ac_try='test -s conftest.$ac_objext' | |
2204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2205 (eval $ac_try) 2>&5 | |
2206 ac_status=$? | |
2207 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2208 (exit $ac_status); }; }; then | |
2209 : | |
2210 else | |
2211 echo "$as_me: failed program was:" >&5 | |
2212 sed 's/^/| /' conftest.$ac_ext >&5 | |
2213 | |
2214 continue | |
2215 fi | |
2216 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2217 cat >conftest.$ac_ext <<_ACEOF | |
2218 /* confdefs.h. */ | |
2219 _ACEOF | |
2220 cat confdefs.h >>conftest.$ac_ext | |
2221 cat >>conftest.$ac_ext <<_ACEOF | |
2222 /* end confdefs.h. */ | |
2223 $ac_declaration | |
2224 int | |
2225 main () | |
2226 { | |
2227 exit (42); | |
2228 ; | |
2229 return 0; | |
2230 } | |
2231 _ACEOF | |
2232 rm -f conftest.$ac_objext | |
2233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2234 (eval $ac_compile) 2>conftest.er1 | |
2235 ac_status=$? | |
2236 grep -v '^ *+' conftest.er1 >conftest.err | |
2237 rm -f conftest.er1 | |
2238 cat conftest.err >&5 | |
2239 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2240 (exit $ac_status); } && | |
2241 { ac_try='test -z "$ac_c_werror_flag" | |
2242 || test ! -s conftest.err' | |
2243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2244 (eval $ac_try) 2>&5 | |
2245 ac_status=$? | |
2246 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2247 (exit $ac_status); }; } && | |
2248 { ac_try='test -s conftest.$ac_objext' | |
2249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2250 (eval $ac_try) 2>&5 | |
2251 ac_status=$? | |
2252 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2253 (exit $ac_status); }; }; then | |
2254 break | |
2255 else | |
2256 echo "$as_me: failed program was:" >&5 | |
2257 sed 's/^/| /' conftest.$ac_ext >&5 | |
2258 | |
2259 fi | |
2260 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2261 done | |
2262 rm -f conftest* | |
2263 if test -n "$ac_declaration"; then | |
2264 echo '#ifdef __cplusplus' >>confdefs.h | |
2265 echo $ac_declaration >>confdefs.h | |
2266 echo '#endif' >>confdefs.h | |
2267 fi | |
2268 | |
2269 else | |
2270 echo "$as_me: failed program was:" >&5 | |
2271 sed 's/^/| /' conftest.$ac_ext >&5 | |
2272 | |
2273 fi | |
2274 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2275 ac_ext=c | |
2276 ac_cpp='$CPP $CPPFLAGS' | |
2277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2279 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2280 | |
2281 ac_aux_dir= | |
2282 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
2283 if test -f $ac_dir/install-sh; then | |
2284 ac_aux_dir=$ac_dir | |
2285 ac_install_sh="$ac_aux_dir/install-sh -c" | |
2286 break | |
2287 elif test -f $ac_dir/install.sh; then | |
2288 ac_aux_dir=$ac_dir | |
2289 ac_install_sh="$ac_aux_dir/install.sh -c" | |
2290 break | |
2291 elif test -f $ac_dir/shtool; then | |
2292 ac_aux_dir=$ac_dir | |
2293 ac_install_sh="$ac_aux_dir/shtool install -c" | |
2294 break | |
2295 fi | |
2296 done | |
2297 if test -z "$ac_aux_dir"; then | |
2298 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 | |
2299 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
2300 { (exit 1); exit 1; }; } | |
2301 fi | |
2302 ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
2303 ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
2304 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
2305 | |
2306 # Find a good install program. We prefer a C program (faster), | |
2307 # so one script is as good as another. But avoid the broken or | |
2308 # incompatible versions: | |
2309 # SysV /etc/install, /usr/sbin/install | |
2310 # SunOS /usr/etc/install | |
2311 # IRIX /sbin/install | |
2312 # AIX /bin/install | |
2313 # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2314 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2315 # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2316 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2317 # OS/2's system install, which has a completely different semantic | |
2318 # ./install, which can be erroneously created by make from ./install.sh. | |
2319 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
2320 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
2321 if test -z "$INSTALL"; then | |
2322 if test "${ac_cv_path_install+set}" = set; then | |
2323 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2324 else | |
2325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2326 for as_dir in $PATH | |
2327 do | |
2328 IFS=$as_save_IFS | |
2329 test -z "$as_dir" && as_dir=. | |
2330 # Account for people who put trailing slashes in PATH elements. | |
2331 case $as_dir/ in | |
2332 ./ | .// | /cC/* | \ | |
2333 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
2334 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
2335 /usr/ucb/* ) ;; | |
2336 *) | |
2337 # OSF1 and SCO ODT 3.0 have their own names for install. | |
2338 # Don't use installbsd from OSF since it installs stuff as root | |
2339 # by default. | |
2340 for ac_prog in ginstall scoinst install; do | |
2341 for ac_exec_ext in '' $ac_executable_extensions; do | |
2342 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
2343 if test $ac_prog = install && | |
2344 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2345 # AIX install. It has an incompatible calling convention. | |
2346 : | |
2347 elif test $ac_prog = install && | |
2348 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2349 # program-specific install script used by HP pwplus--don't use. | |
2350 : | |
2351 else | |
2352 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2353 break 3 | |
2354 fi | |
2355 fi | |
2356 done | |
2357 done | |
2358 ;; | |
2359 esac | |
2360 done | |
2361 | |
2362 | |
2363 fi | |
2364 if test "${ac_cv_path_install+set}" = set; then | |
2365 INSTALL=$ac_cv_path_install | |
2366 else | |
2367 # As a last resort, use the slow shell script. We don't cache a | |
2368 # path for INSTALL within a source directory, because that will | |
2369 # break other packages using the cache if that directory is | |
2370 # removed, or if the path is relative. | |
2371 INSTALL=$ac_install_sh | |
2372 fi | |
2373 fi | |
2374 echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
2375 echo "${ECHO_T}$INSTALL" >&6 | |
2376 | |
2377 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2378 # It thinks the first close brace ends the variable substitution. | |
2379 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2380 | |
2381 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
2382 | |
2383 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2384 | |
2385 | |
2386 | |
2387 | |
2388 # Find ELLCC | |
2389 | |
2390 # Extract the first word of "ellcc", so it can be a program name with args. | |
2391 set dummy ellcc; ac_word=$2 | |
2392 echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2394 if test "${ac_cv_path_ELLCC+set}" = set; then | |
2395 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2396 else | |
2397 case $ELLCC in | |
2398 [\\/]* | ?:[\\/]*) | |
2399 ac_cv_path_ELLCC="$ELLCC" # Let the user override the test with a path. | |
2400 ;; | |
2401 *) | |
2402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2403 for as_dir in $PATH | |
2404 do | |
2405 IFS=$as_save_IFS | |
2406 test -z "$as_dir" && as_dir=. | |
2407 for ac_exec_ext in '' $ac_executable_extensions; do | |
2408 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2409 ac_cv_path_ELLCC="$as_dir/$ac_word$ac_exec_ext" | |
2410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2411 break 2 | |
2412 fi | |
2413 done | |
2414 done | |
2415 | |
2416 test -z "$ac_cv_path_ELLCC" && ac_cv_path_ELLCC=""FAIL"" | |
2417 ;; | |
2418 esac | |
2419 fi | |
2420 ELLCC=$ac_cv_path_ELLCC | |
2421 | |
2422 if test -n "$ELLCC"; then | |
2423 echo "$as_me:$LINENO: result: $ELLCC" >&5 | |
2424 echo "${ECHO_T}$ELLCC" >&6 | |
2425 else | |
2426 echo "$as_me:$LINENO: result: no" >&5 | |
2427 echo "${ECHO_T}no" >&6 | |
2428 fi | |
2429 | |
2430 if test "$ELLCC" = "FAIL"; then | |
2431 { { echo "$as_me:$LINENO: error: Cannot find ellcc" >&5 | |
2432 echo "$as_me: error: Cannot find ellcc" >&2;} | |
2433 { (exit 1); exit 1; }; } | |
2434 fi | |
2435 | |
2436 | |
2437 # Insert autoconf macros here to find the headers, libraries, other | |
2438 # programs, etc. needed by your module. If other libraries will be linked | |
2439 # with your module, then after detecting them, use a line of this form last: | |
2440 | |
2441 # detect canna | |
2442 canna_includes_found=no | |
2443 if test "$with_canna" != "no"; then | |
2444 | |
2445 ac_ext=c | |
2446 ac_cpp='$CPP $CPPFLAGS' | |
2447 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2448 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2449 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2450 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
2451 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
2452 # On Suns, sometimes $CPP names a directory. | |
2453 if test -n "$CPP" && test -d "$CPP"; then | |
2454 CPP= | |
2455 fi | |
2456 if test -z "$CPP"; then | |
2457 if test "${ac_cv_prog_CPP+set}" = set; then | |
2458 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2459 else | |
2460 # Double quotes because CPP needs to be expanded | |
2461 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
2462 do | |
2463 ac_preproc_ok=false | |
2464 for ac_c_preproc_warn_flag in '' yes | |
2465 do | |
2466 # Use a header file that comes with gcc, so configuring glibc | |
2467 # with a fresh cross-compiler works. | |
2468 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2469 # <limits.h> exists even on freestanding compilers. | |
2470 # On the NeXT, cc -E runs the code through the compiler's parser, | |
2471 # not just through cpp. "Syntax error" is here to catch this case. | |
2472 cat >conftest.$ac_ext <<_ACEOF | |
2473 /* confdefs.h. */ | |
2474 _ACEOF | |
2475 cat confdefs.h >>conftest.$ac_ext | |
2476 cat >>conftest.$ac_ext <<_ACEOF | |
2477 /* end confdefs.h. */ | |
2478 #ifdef __STDC__ | |
2479 # include <limits.h> | |
2480 #else | |
2481 # include <assert.h> | |
2482 #endif | |
2483 Syntax error | |
2484 _ACEOF | |
2485 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2486 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2487 ac_status=$? | |
2488 grep -v '^ *+' conftest.er1 >conftest.err | |
2489 rm -f conftest.er1 | |
2490 cat conftest.err >&5 | |
2491 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2492 (exit $ac_status); } >/dev/null; then | |
2493 if test -s conftest.err; then | |
2494 ac_cpp_err=$ac_c_preproc_warn_flag | |
2495 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
2496 else | |
2497 ac_cpp_err= | |
2498 fi | |
2499 else | |
2500 ac_cpp_err=yes | |
2501 fi | |
2502 if test -z "$ac_cpp_err"; then | |
2503 : | |
2504 else | |
2505 echo "$as_me: failed program was:" >&5 | |
2506 sed 's/^/| /' conftest.$ac_ext >&5 | |
2507 | |
2508 # Broken: fails on valid input. | |
2509 continue | |
2510 fi | |
2511 rm -f conftest.err conftest.$ac_ext | |
2512 | |
2513 # OK, works on sane cases. Now check whether non-existent headers | |
2514 # can be detected and how. | |
2515 cat >conftest.$ac_ext <<_ACEOF | |
2516 /* confdefs.h. */ | |
2517 _ACEOF | |
2518 cat confdefs.h >>conftest.$ac_ext | |
2519 cat >>conftest.$ac_ext <<_ACEOF | |
2520 /* end confdefs.h. */ | |
2521 #include <ac_nonexistent.h> | |
2522 _ACEOF | |
2523 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2524 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2525 ac_status=$? | |
2526 grep -v '^ *+' conftest.er1 >conftest.err | |
2527 rm -f conftest.er1 | |
2528 cat conftest.err >&5 | |
2529 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2530 (exit $ac_status); } >/dev/null; then | |
2531 if test -s conftest.err; then | |
2532 ac_cpp_err=$ac_c_preproc_warn_flag | |
2533 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
2534 else | |
2535 ac_cpp_err= | |
2536 fi | |
2537 else | |
2538 ac_cpp_err=yes | |
2539 fi | |
2540 if test -z "$ac_cpp_err"; then | |
2541 # Broken: success on invalid input. | |
2542 continue | |
2543 else | |
2544 echo "$as_me: failed program was:" >&5 | |
2545 sed 's/^/| /' conftest.$ac_ext >&5 | |
2546 | |
2547 # Passes both tests. | |
2548 ac_preproc_ok=: | |
2549 break | |
2550 fi | |
2551 rm -f conftest.err conftest.$ac_ext | |
2552 | |
2553 done | |
2554 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
2555 rm -f conftest.err conftest.$ac_ext | |
2556 if $ac_preproc_ok; then | |
2557 break | |
2558 fi | |
2559 | |
2560 done | |
2561 ac_cv_prog_CPP=$CPP | |
2562 | |
2563 fi | |
2564 CPP=$ac_cv_prog_CPP | |
2565 else | |
2566 ac_cv_prog_CPP=$CPP | |
2567 fi | |
2568 echo "$as_me:$LINENO: result: $CPP" >&5 | |
2569 echo "${ECHO_T}$CPP" >&6 | |
2570 ac_preproc_ok=false | |
2571 for ac_c_preproc_warn_flag in '' yes | |
2572 do | |
2573 # Use a header file that comes with gcc, so configuring glibc | |
2574 # with a fresh cross-compiler works. | |
2575 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2576 # <limits.h> exists even on freestanding compilers. | |
2577 # On the NeXT, cc -E runs the code through the compiler's parser, | |
2578 # not just through cpp. "Syntax error" is here to catch this case. | |
2579 cat >conftest.$ac_ext <<_ACEOF | |
2580 /* confdefs.h. */ | |
2581 _ACEOF | |
2582 cat confdefs.h >>conftest.$ac_ext | |
2583 cat >>conftest.$ac_ext <<_ACEOF | |
2584 /* end confdefs.h. */ | |
2585 #ifdef __STDC__ | |
2586 # include <limits.h> | |
2587 #else | |
2588 # include <assert.h> | |
2589 #endif | |
2590 Syntax error | |
2591 _ACEOF | |
2592 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2593 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2594 ac_status=$? | |
2595 grep -v '^ *+' conftest.er1 >conftest.err | |
2596 rm -f conftest.er1 | |
2597 cat conftest.err >&5 | |
2598 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2599 (exit $ac_status); } >/dev/null; then | |
2600 if test -s conftest.err; then | |
2601 ac_cpp_err=$ac_c_preproc_warn_flag | |
2602 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
2603 else | |
2604 ac_cpp_err= | |
2605 fi | |
2606 else | |
2607 ac_cpp_err=yes | |
2608 fi | |
2609 if test -z "$ac_cpp_err"; then | |
2610 : | |
2611 else | |
2612 echo "$as_me: failed program was:" >&5 | |
2613 sed 's/^/| /' conftest.$ac_ext >&5 | |
2614 | |
2615 # Broken: fails on valid input. | |
2616 continue | |
2617 fi | |
2618 rm -f conftest.err conftest.$ac_ext | |
2619 | |
2620 # OK, works on sane cases. Now check whether non-existent headers | |
2621 # can be detected and how. | |
2622 cat >conftest.$ac_ext <<_ACEOF | |
2623 /* confdefs.h. */ | |
2624 _ACEOF | |
2625 cat confdefs.h >>conftest.$ac_ext | |
2626 cat >>conftest.$ac_ext <<_ACEOF | |
2627 /* end confdefs.h. */ | |
2628 #include <ac_nonexistent.h> | |
2629 _ACEOF | |
2630 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2631 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2632 ac_status=$? | |
2633 grep -v '^ *+' conftest.er1 >conftest.err | |
2634 rm -f conftest.er1 | |
2635 cat conftest.err >&5 | |
2636 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2637 (exit $ac_status); } >/dev/null; then | |
2638 if test -s conftest.err; then | |
2639 ac_cpp_err=$ac_c_preproc_warn_flag | |
2640 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
2641 else | |
2642 ac_cpp_err= | |
2643 fi | |
2644 else | |
2645 ac_cpp_err=yes | |
2646 fi | |
2647 if test -z "$ac_cpp_err"; then | |
2648 # Broken: success on invalid input. | |
2649 continue | |
2650 else | |
2651 echo "$as_me: failed program was:" >&5 | |
2652 sed 's/^/| /' conftest.$ac_ext >&5 | |
2653 | |
2654 # Passes both tests. | |
2655 ac_preproc_ok=: | |
2656 break | |
2657 fi | |
2658 rm -f conftest.err conftest.$ac_ext | |
2659 | |
2660 done | |
2661 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
2662 rm -f conftest.err conftest.$ac_ext | |
2663 if $ac_preproc_ok; then | |
2664 : | |
2665 else | |
2666 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
2667 See \`config.log' for more details." >&5 | |
2668 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
2669 See \`config.log' for more details." >&2;} | |
2670 { (exit 1); exit 1; }; } | |
2671 fi | |
2672 | |
2673 ac_ext=c | |
2674 ac_cpp='$CPP $CPPFLAGS' | |
2675 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2676 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2677 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2678 | |
2679 | |
2680 echo "$as_me:$LINENO: checking for egrep" >&5 | |
2681 echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
2682 if test "${ac_cv_prog_egrep+set}" = set; then | |
2683 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2684 else | |
2685 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | |
2686 then ac_cv_prog_egrep='grep -E' | |
2687 else ac_cv_prog_egrep='egrep' | |
2688 fi | |
2689 fi | |
2690 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | |
2691 echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
2692 EGREP=$ac_cv_prog_egrep | |
2693 | |
2694 | |
2695 echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
2696 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
2697 if test "${ac_cv_header_stdc+set}" = set; then | |
2698 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2699 else | |
2700 cat >conftest.$ac_ext <<_ACEOF | |
2701 /* confdefs.h. */ | |
2702 _ACEOF | |
2703 cat confdefs.h >>conftest.$ac_ext | |
2704 cat >>conftest.$ac_ext <<_ACEOF | |
2705 /* end confdefs.h. */ | |
2706 #include <stdlib.h> | |
2707 #include <stdarg.h> | |
2708 #include <string.h> | |
2709 #include <float.h> | |
2710 | |
2711 int | |
2712 main () | |
2713 { | |
2714 | |
2715 ; | |
2716 return 0; | |
2717 } | |
2718 _ACEOF | |
2719 rm -f conftest.$ac_objext | |
2720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2721 (eval $ac_compile) 2>conftest.er1 | |
2722 ac_status=$? | |
2723 grep -v '^ *+' conftest.er1 >conftest.err | |
2724 rm -f conftest.er1 | |
2725 cat conftest.err >&5 | |
2726 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2727 (exit $ac_status); } && | |
2728 { ac_try='test -z "$ac_c_werror_flag" | |
2729 || test ! -s conftest.err' | |
2730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2731 (eval $ac_try) 2>&5 | |
2732 ac_status=$? | |
2733 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2734 (exit $ac_status); }; } && | |
2735 { ac_try='test -s conftest.$ac_objext' | |
2736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2737 (eval $ac_try) 2>&5 | |
2738 ac_status=$? | |
2739 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2740 (exit $ac_status); }; }; then | |
2741 ac_cv_header_stdc=yes | |
2742 else | |
2743 echo "$as_me: failed program was:" >&5 | |
2744 sed 's/^/| /' conftest.$ac_ext >&5 | |
2745 | |
2746 ac_cv_header_stdc=no | |
2747 fi | |
2748 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2749 | |
2750 if test $ac_cv_header_stdc = yes; then | |
2751 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
2752 cat >conftest.$ac_ext <<_ACEOF | |
2753 /* confdefs.h. */ | |
2754 _ACEOF | |
2755 cat confdefs.h >>conftest.$ac_ext | |
2756 cat >>conftest.$ac_ext <<_ACEOF | |
2757 /* end confdefs.h. */ | |
2758 #include <string.h> | |
2759 | |
2760 _ACEOF | |
2761 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
2762 $EGREP "memchr" >/dev/null 2>&1; then | |
2763 : | |
2764 else | |
2765 ac_cv_header_stdc=no | |
2766 fi | |
2767 rm -f conftest* | |
2768 | |
2769 fi | |
2770 | |
2771 if test $ac_cv_header_stdc = yes; then | |
2772 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
2773 cat >conftest.$ac_ext <<_ACEOF | |
2774 /* confdefs.h. */ | |
2775 _ACEOF | |
2776 cat confdefs.h >>conftest.$ac_ext | |
2777 cat >>conftest.$ac_ext <<_ACEOF | |
2778 /* end confdefs.h. */ | |
2779 #include <stdlib.h> | |
2780 | |
2781 _ACEOF | |
2782 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
2783 $EGREP "free" >/dev/null 2>&1; then | |
2784 : | |
2785 else | |
2786 ac_cv_header_stdc=no | |
2787 fi | |
2788 rm -f conftest* | |
2789 | |
2790 fi | |
2791 | |
2792 if test $ac_cv_header_stdc = yes; then | |
2793 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
2794 if test "$cross_compiling" = yes; then | |
2795 : | |
2796 else | |
2797 cat >conftest.$ac_ext <<_ACEOF | |
2798 /* confdefs.h. */ | |
2799 _ACEOF | |
2800 cat confdefs.h >>conftest.$ac_ext | |
2801 cat >>conftest.$ac_ext <<_ACEOF | |
2802 /* end confdefs.h. */ | |
2803 #include <ctype.h> | |
2804 #if ((' ' & 0x0FF) == 0x020) | |
2805 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
2806 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
2807 #else | |
2808 # define ISLOWER(c) \ | |
2809 (('a' <= (c) && (c) <= 'i') \ | |
2810 || ('j' <= (c) && (c) <= 'r') \ | |
2811 || ('s' <= (c) && (c) <= 'z')) | |
2812 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
2813 #endif | |
2814 | |
2815 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
2816 int | |
2817 main () | |
2818 { | |
2819 int i; | |
2820 for (i = 0; i < 256; i++) | |
2821 if (XOR (islower (i), ISLOWER (i)) | |
2822 || toupper (i) != TOUPPER (i)) | |
2823 exit(2); | |
2824 exit (0); | |
2825 } | |
2826 _ACEOF | |
2827 rm -f conftest$ac_exeext | |
2828 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2829 (eval $ac_link) 2>&5 | |
2830 ac_status=$? | |
2831 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2832 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
2833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2834 (eval $ac_try) 2>&5 | |
2835 ac_status=$? | |
2836 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2837 (exit $ac_status); }; }; then | |
2838 : | |
2839 else | |
2840 echo "$as_me: program exited with status $ac_status" >&5 | |
2841 echo "$as_me: failed program was:" >&5 | |
2842 sed 's/^/| /' conftest.$ac_ext >&5 | |
2843 | |
2844 ( exit $ac_status ) | |
2845 ac_cv_header_stdc=no | |
2846 fi | |
2847 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
2848 fi | |
2849 fi | |
2850 fi | |
2851 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
2852 echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
2853 if test $ac_cv_header_stdc = yes; then | |
2854 | |
2855 cat >>confdefs.h <<\_ACEOF | |
2856 #define STDC_HEADERS 1 | |
2857 _ACEOF | |
2858 | |
2859 fi | |
2860 | |
2861 # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
2862 | |
2863 | |
2864 | |
2865 | |
2866 | |
2867 | |
2868 | |
2869 | |
2870 | |
2871 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
2872 inttypes.h stdint.h unistd.h | |
2873 do | |
2874 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
2875 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
2876 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
2877 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
2878 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2879 else | |
2880 cat >conftest.$ac_ext <<_ACEOF | |
2881 /* confdefs.h. */ | |
2882 _ACEOF | |
2883 cat confdefs.h >>conftest.$ac_ext | |
2884 cat >>conftest.$ac_ext <<_ACEOF | |
2885 /* end confdefs.h. */ | |
2886 $ac_includes_default | |
2887 | |
2888 #include <$ac_header> | |
2889 _ACEOF | |
2890 rm -f conftest.$ac_objext | |
2891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2892 (eval $ac_compile) 2>conftest.er1 | |
2893 ac_status=$? | |
2894 grep -v '^ *+' conftest.er1 >conftest.err | |
2895 rm -f conftest.er1 | |
2896 cat conftest.err >&5 | |
2897 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2898 (exit $ac_status); } && | |
2899 { ac_try='test -z "$ac_c_werror_flag" | |
2900 || test ! -s conftest.err' | |
2901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2902 (eval $ac_try) 2>&5 | |
2903 ac_status=$? | |
2904 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2905 (exit $ac_status); }; } && | |
2906 { ac_try='test -s conftest.$ac_objext' | |
2907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2908 (eval $ac_try) 2>&5 | |
2909 ac_status=$? | |
2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2911 (exit $ac_status); }; }; then | |
2912 eval "$as_ac_Header=yes" | |
2913 else | |
2914 echo "$as_me: failed program was:" >&5 | |
2915 sed 's/^/| /' conftest.$ac_ext >&5 | |
2916 | |
2917 eval "$as_ac_Header=no" | |
2918 fi | |
2919 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2920 fi | |
2921 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
2922 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
2923 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
2924 cat >>confdefs.h <<_ACEOF | |
2925 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
2926 _ACEOF | |
2927 | |
2928 fi | |
2929 | |
2930 done | |
2931 | |
2932 | |
2933 if test "${ac_cv_header_canna_jrkanji_h+set}" = set; then | |
2934 echo "$as_me:$LINENO: checking for canna/jrkanji.h" >&5 | |
2935 echo $ECHO_N "checking for canna/jrkanji.h... $ECHO_C" >&6 | |
2936 if test "${ac_cv_header_canna_jrkanji_h+set}" = set; then | |
2937 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2938 fi | |
2939 echo "$as_me:$LINENO: result: $ac_cv_header_canna_jrkanji_h" >&5 | |
2940 echo "${ECHO_T}$ac_cv_header_canna_jrkanji_h" >&6 | |
2941 else | |
2942 # Is the header compilable? | |
2943 echo "$as_me:$LINENO: checking canna/jrkanji.h usability" >&5 | |
2944 echo $ECHO_N "checking canna/jrkanji.h usability... $ECHO_C" >&6 | |
2945 cat >conftest.$ac_ext <<_ACEOF | |
2946 /* confdefs.h. */ | |
2947 _ACEOF | |
2948 cat confdefs.h >>conftest.$ac_ext | |
2949 cat >>conftest.$ac_ext <<_ACEOF | |
2950 /* end confdefs.h. */ | |
2951 $ac_includes_default | |
2952 #include <canna/jrkanji.h> | |
2953 _ACEOF | |
2954 rm -f conftest.$ac_objext | |
2955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2956 (eval $ac_compile) 2>conftest.er1 | |
2957 ac_status=$? | |
2958 grep -v '^ *+' conftest.er1 >conftest.err | |
2959 rm -f conftest.er1 | |
2960 cat conftest.err >&5 | |
2961 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2962 (exit $ac_status); } && | |
2963 { ac_try='test -z "$ac_c_werror_flag" | |
2964 || test ! -s conftest.err' | |
2965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2966 (eval $ac_try) 2>&5 | |
2967 ac_status=$? | |
2968 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2969 (exit $ac_status); }; } && | |
2970 { ac_try='test -s conftest.$ac_objext' | |
2971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2972 (eval $ac_try) 2>&5 | |
2973 ac_status=$? | |
2974 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2975 (exit $ac_status); }; }; then | |
2976 ac_header_compiler=yes | |
2977 else | |
2978 echo "$as_me: failed program was:" >&5 | |
2979 sed 's/^/| /' conftest.$ac_ext >&5 | |
2980 | |
2981 ac_header_compiler=no | |
2982 fi | |
2983 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2984 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
2985 echo "${ECHO_T}$ac_header_compiler" >&6 | |
2986 | |
2987 # Is the header present? | |
2988 echo "$as_me:$LINENO: checking canna/jrkanji.h presence" >&5 | |
2989 echo $ECHO_N "checking canna/jrkanji.h presence... $ECHO_C" >&6 | |
2990 cat >conftest.$ac_ext <<_ACEOF | |
2991 /* confdefs.h. */ | |
2992 _ACEOF | |
2993 cat confdefs.h >>conftest.$ac_ext | |
2994 cat >>conftest.$ac_ext <<_ACEOF | |
2995 /* end confdefs.h. */ | |
2996 #include <canna/jrkanji.h> | |
2997 _ACEOF | |
2998 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2999 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3000 ac_status=$? | |
3001 grep -v '^ *+' conftest.er1 >conftest.err | |
3002 rm -f conftest.er1 | |
3003 cat conftest.err >&5 | |
3004 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3005 (exit $ac_status); } >/dev/null; then | |
3006 if test -s conftest.err; then | |
3007 ac_cpp_err=$ac_c_preproc_warn_flag | |
3008 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
3009 else | |
3010 ac_cpp_err= | |
3011 fi | |
3012 else | |
3013 ac_cpp_err=yes | |
3014 fi | |
3015 if test -z "$ac_cpp_err"; then | |
3016 ac_header_preproc=yes | |
3017 else | |
3018 echo "$as_me: failed program was:" >&5 | |
3019 sed 's/^/| /' conftest.$ac_ext >&5 | |
3020 | |
3021 ac_header_preproc=no | |
3022 fi | |
3023 rm -f conftest.err conftest.$ac_ext | |
3024 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
3025 echo "${ECHO_T}$ac_header_preproc" >&6 | |
3026 | |
3027 # So? What about this header? | |
3028 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
3029 yes:no: ) | |
3030 { echo "$as_me:$LINENO: WARNING: canna/jrkanji.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
3031 echo "$as_me: WARNING: canna/jrkanji.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
3032 { echo "$as_me:$LINENO: WARNING: canna/jrkanji.h: proceeding with the compiler's result" >&5 | |
3033 echo "$as_me: WARNING: canna/jrkanji.h: proceeding with the compiler's result" >&2;} | |
3034 ac_header_preproc=yes | |
3035 ;; | |
3036 no:yes:* ) | |
3037 { echo "$as_me:$LINENO: WARNING: canna/jrkanji.h: present but cannot be compiled" >&5 | |
3038 echo "$as_me: WARNING: canna/jrkanji.h: present but cannot be compiled" >&2;} | |
3039 { echo "$as_me:$LINENO: WARNING: canna/jrkanji.h: check for missing prerequisite headers?" >&5 | |
3040 echo "$as_me: WARNING: canna/jrkanji.h: check for missing prerequisite headers?" >&2;} | |
3041 { echo "$as_me:$LINENO: WARNING: canna/jrkanji.h: see the Autoconf documentation" >&5 | |
3042 echo "$as_me: WARNING: canna/jrkanji.h: see the Autoconf documentation" >&2;} | |
3043 { echo "$as_me:$LINENO: WARNING: canna/jrkanji.h: section \"Present But Cannot Be Compiled\"" >&5 | |
3044 echo "$as_me: WARNING: canna/jrkanji.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
3045 { echo "$as_me:$LINENO: WARNING: canna/jrkanji.h: proceeding with the preprocessor's result" >&5 | |
3046 echo "$as_me: WARNING: canna/jrkanji.h: proceeding with the preprocessor's result" >&2;} | |
3047 { echo "$as_me:$LINENO: WARNING: canna/jrkanji.h: in the future, the compiler will take precedence" >&5 | |
3048 echo "$as_me: WARNING: canna/jrkanji.h: in the future, the compiler will take precedence" >&2;} | |
3049 ( | |
3050 cat <<\_ASBOX | |
3051 ## ------------------------------------- ## | |
3052 ## Report this to xemacs-beta@xemacs.org ## | |
3053 ## ------------------------------------- ## | |
3054 _ASBOX | |
3055 ) | | |
3056 sed "s/^/$as_me: WARNING: /" >&2 | |
3057 ;; | |
3058 esac | |
3059 echo "$as_me:$LINENO: checking for canna/jrkanji.h" >&5 | |
3060 echo $ECHO_N "checking for canna/jrkanji.h... $ECHO_C" >&6 | |
3061 if test "${ac_cv_header_canna_jrkanji_h+set}" = set; then | |
3062 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3063 else | |
3064 ac_cv_header_canna_jrkanji_h=$ac_header_preproc | |
3065 fi | |
3066 echo "$as_me:$LINENO: result: $ac_cv_header_canna_jrkanji_h" >&5 | |
3067 echo "${ECHO_T}$ac_cv_header_canna_jrkanji_h" >&6 | |
3068 | |
3069 fi | |
3070 if test $ac_cv_header_canna_jrkanji_h = yes; then | |
3071 canna_includes_found=yes | |
3072 fi | |
3073 | |
3074 | |
3075 fi | |
3076 if test "$canna_includes_found" = "no" -a "$with_canna" != "no" -a \ | |
3077 -d "/usr/local/canna/include"; then | |
3078 save_c_switch_site="$c_switch_site" | |
3079 c_switch_site="$c_switch_site -I/usr/local/canna/include" | |
3080 if test "${ac_cv_header_canna_jrkanji_h+set}" = set; then | |
3081 echo "$as_me:$LINENO: checking for canna/jrkanji.h" >&5 | |
3082 echo $ECHO_N "checking for canna/jrkanji.h... $ECHO_C" >&6 | |
3083 if test "${ac_cv_header_canna_jrkanji_h+set}" = set; then | |
3084 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3085 fi | |
3086 echo "$as_me:$LINENO: result: $ac_cv_header_canna_jrkanji_h" >&5 | |
3087 echo "${ECHO_T}$ac_cv_header_canna_jrkanji_h" >&6 | |
3088 else | |
3089 # Is the header compilable? | |
3090 echo "$as_me:$LINENO: checking canna/jrkanji.h usability" >&5 | |
3091 echo $ECHO_N "checking canna/jrkanji.h usability... $ECHO_C" >&6 | |
3092 cat >conftest.$ac_ext <<_ACEOF | |
3093 /* confdefs.h. */ | |
3094 _ACEOF | |
3095 cat confdefs.h >>conftest.$ac_ext | |
3096 cat >>conftest.$ac_ext <<_ACEOF | |
3097 /* end confdefs.h. */ | |
3098 $ac_includes_default | |
3099 #include <canna/jrkanji.h> | |
3100 _ACEOF | |
3101 rm -f conftest.$ac_objext | |
3102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3103 (eval $ac_compile) 2>conftest.er1 | |
3104 ac_status=$? | |
3105 grep -v '^ *+' conftest.er1 >conftest.err | |
3106 rm -f conftest.er1 | |
3107 cat conftest.err >&5 | |
3108 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3109 (exit $ac_status); } && | |
3110 { ac_try='test -z "$ac_c_werror_flag" | |
3111 || test ! -s conftest.err' | |
3112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3113 (eval $ac_try) 2>&5 | |
3114 ac_status=$? | |
3115 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3116 (exit $ac_status); }; } && | |
3117 { ac_try='test -s conftest.$ac_objext' | |
3118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3119 (eval $ac_try) 2>&5 | |
3120 ac_status=$? | |
3121 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3122 (exit $ac_status); }; }; then | |
3123 ac_header_compiler=yes | |
3124 else | |
3125 echo "$as_me: failed program was:" >&5 | |
3126 sed 's/^/| /' conftest.$ac_ext >&5 | |
3127 | |
3128 ac_header_compiler=no | |
3129 fi | |
3130 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3131 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
3132 echo "${ECHO_T}$ac_header_compiler" >&6 | |
3133 | |
3134 # Is the header present? | |
3135 echo "$as_me:$LINENO: checking canna/jrkanji.h presence" >&5 | |
3136 echo $ECHO_N "checking canna/jrkanji.h presence... $ECHO_C" >&6 | |
3137 cat >conftest.$ac_ext <<_ACEOF | |
3138 /* confdefs.h. */ | |
3139 _ACEOF | |
3140 cat confdefs.h >>conftest.$ac_ext | |
3141 cat >>conftest.$ac_ext <<_ACEOF | |
3142 /* end confdefs.h. */ | |
3143 #include <canna/jrkanji.h> | |
3144 _ACEOF | |
3145 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3146 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3147 ac_status=$? | |
3148 grep -v '^ *+' conftest.er1 >conftest.err | |
3149 rm -f conftest.er1 | |
3150 cat conftest.err >&5 | |
3151 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3152 (exit $ac_status); } >/dev/null; then | |
3153 if test -s conftest.err; then | |
3154 ac_cpp_err=$ac_c_preproc_warn_flag | |
3155 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
3156 else | |
3157 ac_cpp_err= | |
3158 fi | |
3159 else | |
3160 ac_cpp_err=yes | |
3161 fi | |
3162 if test -z "$ac_cpp_err"; then | |
3163 ac_header_preproc=yes | |
3164 else | |
3165 echo "$as_me: failed program was:" >&5 | |
3166 sed 's/^/| /' conftest.$ac_ext >&5 | |
3167 | |
3168 ac_header_preproc=no | |
3169 fi | |
3170 rm -f conftest.err conftest.$ac_ext | |
3171 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
3172 echo "${ECHO_T}$ac_header_preproc" >&6 | |
3173 | |
3174 # So? What about this header? | |
3175 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
3176 yes:no: ) | |
3177 { echo "$as_me:$LINENO: WARNING: canna/jrkanji.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
3178 echo "$as_me: WARNING: canna/jrkanji.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
3179 { echo "$as_me:$LINENO: WARNING: canna/jrkanji.h: proceeding with the compiler's result" >&5 | |
3180 echo "$as_me: WARNING: canna/jrkanji.h: proceeding with the compiler's result" >&2;} | |
3181 ac_header_preproc=yes | |
3182 ;; | |
3183 no:yes:* ) | |
3184 { echo "$as_me:$LINENO: WARNING: canna/jrkanji.h: present but cannot be compiled" >&5 | |
3185 echo "$as_me: WARNING: canna/jrkanji.h: present but cannot be compiled" >&2;} | |
3186 { echo "$as_me:$LINENO: WARNING: canna/jrkanji.h: check for missing prerequisite headers?" >&5 | |
3187 echo "$as_me: WARNING: canna/jrkanji.h: check for missing prerequisite headers?" >&2;} | |
3188 { echo "$as_me:$LINENO: WARNING: canna/jrkanji.h: see the Autoconf documentation" >&5 | |
3189 echo "$as_me: WARNING: canna/jrkanji.h: see the Autoconf documentation" >&2;} | |
3190 { echo "$as_me:$LINENO: WARNING: canna/jrkanji.h: section \"Present But Cannot Be Compiled\"" >&5 | |
3191 echo "$as_me: WARNING: canna/jrkanji.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
3192 { echo "$as_me:$LINENO: WARNING: canna/jrkanji.h: proceeding with the preprocessor's result" >&5 | |
3193 echo "$as_me: WARNING: canna/jrkanji.h: proceeding with the preprocessor's result" >&2;} | |
3194 { echo "$as_me:$LINENO: WARNING: canna/jrkanji.h: in the future, the compiler will take precedence" >&5 | |
3195 echo "$as_me: WARNING: canna/jrkanji.h: in the future, the compiler will take precedence" >&2;} | |
3196 ( | |
3197 cat <<\_ASBOX | |
3198 ## ------------------------------------- ## | |
3199 ## Report this to xemacs-beta@xemacs.org ## | |
3200 ## ------------------------------------- ## | |
3201 _ASBOX | |
3202 ) | | |
3203 sed "s/^/$as_me: WARNING: /" >&2 | |
3204 ;; | |
3205 esac | |
3206 echo "$as_me:$LINENO: checking for canna/jrkanji.h" >&5 | |
3207 echo $ECHO_N "checking for canna/jrkanji.h... $ECHO_C" >&6 | |
3208 if test "${ac_cv_header_canna_jrkanji_h+set}" = set; then | |
3209 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3210 else | |
3211 ac_cv_header_canna_jrkanji_h=$ac_header_preproc | |
3212 fi | |
3213 echo "$as_me:$LINENO: result: $ac_cv_header_canna_jrkanji_h" >&5 | |
3214 echo "${ECHO_T}$ac_cv_header_canna_jrkanji_h" >&6 | |
3215 | |
3216 fi | |
3217 if test $ac_cv_header_canna_jrkanji_h = yes; then | |
3218 canna_includes_found=yes | |
3219 fi | |
3220 | |
3221 | |
3222 if test "$canna_includes_found" != "yes"; then | |
3223 c_switch_site="$save_c_switch_site" | |
3224 with_canna="no" | |
3225 fi | |
3226 fi | |
3227 | |
3228 test -z "$with_canna" && { if test "${ac_cv_header_canna_RK_h+set}" = set; then | |
3229 echo "$as_me:$LINENO: checking for canna/RK.h" >&5 | |
3230 echo $ECHO_N "checking for canna/RK.h... $ECHO_C" >&6 | |
3231 if test "${ac_cv_header_canna_RK_h+set}" = set; then | |
3232 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3233 fi | |
3234 echo "$as_me:$LINENO: result: $ac_cv_header_canna_RK_h" >&5 | |
3235 echo "${ECHO_T}$ac_cv_header_canna_RK_h" >&6 | |
3236 else | |
3237 # Is the header compilable? | |
3238 echo "$as_me:$LINENO: checking canna/RK.h usability" >&5 | |
3239 echo $ECHO_N "checking canna/RK.h usability... $ECHO_C" >&6 | |
3240 cat >conftest.$ac_ext <<_ACEOF | |
3241 /* confdefs.h. */ | |
3242 _ACEOF | |
3243 cat confdefs.h >>conftest.$ac_ext | |
3244 cat >>conftest.$ac_ext <<_ACEOF | |
3245 /* end confdefs.h. */ | |
3246 $ac_includes_default | |
3247 #include <canna/RK.h> | |
3248 _ACEOF | |
3249 rm -f conftest.$ac_objext | |
3250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3251 (eval $ac_compile) 2>conftest.er1 | |
3252 ac_status=$? | |
3253 grep -v '^ *+' conftest.er1 >conftest.err | |
3254 rm -f conftest.er1 | |
3255 cat conftest.err >&5 | |
3256 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3257 (exit $ac_status); } && | |
3258 { ac_try='test -z "$ac_c_werror_flag" | |
3259 || test ! -s conftest.err' | |
3260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3261 (eval $ac_try) 2>&5 | |
3262 ac_status=$? | |
3263 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3264 (exit $ac_status); }; } && | |
3265 { ac_try='test -s conftest.$ac_objext' | |
3266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3267 (eval $ac_try) 2>&5 | |
3268 ac_status=$? | |
3269 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3270 (exit $ac_status); }; }; then | |
3271 ac_header_compiler=yes | |
3272 else | |
3273 echo "$as_me: failed program was:" >&5 | |
3274 sed 's/^/| /' conftest.$ac_ext >&5 | |
3275 | |
3276 ac_header_compiler=no | |
3277 fi | |
3278 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3279 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
3280 echo "${ECHO_T}$ac_header_compiler" >&6 | |
3281 | |
3282 # Is the header present? | |
3283 echo "$as_me:$LINENO: checking canna/RK.h presence" >&5 | |
3284 echo $ECHO_N "checking canna/RK.h presence... $ECHO_C" >&6 | |
3285 cat >conftest.$ac_ext <<_ACEOF | |
3286 /* confdefs.h. */ | |
3287 _ACEOF | |
3288 cat confdefs.h >>conftest.$ac_ext | |
3289 cat >>conftest.$ac_ext <<_ACEOF | |
3290 /* end confdefs.h. */ | |
3291 #include <canna/RK.h> | |
3292 _ACEOF | |
3293 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3294 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3295 ac_status=$? | |
3296 grep -v '^ *+' conftest.er1 >conftest.err | |
3297 rm -f conftest.er1 | |
3298 cat conftest.err >&5 | |
3299 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3300 (exit $ac_status); } >/dev/null; then | |
3301 if test -s conftest.err; then | |
3302 ac_cpp_err=$ac_c_preproc_warn_flag | |
3303 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
3304 else | |
3305 ac_cpp_err= | |
3306 fi | |
3307 else | |
3308 ac_cpp_err=yes | |
3309 fi | |
3310 if test -z "$ac_cpp_err"; then | |
3311 ac_header_preproc=yes | |
3312 else | |
3313 echo "$as_me: failed program was:" >&5 | |
3314 sed 's/^/| /' conftest.$ac_ext >&5 | |
3315 | |
3316 ac_header_preproc=no | |
3317 fi | |
3318 rm -f conftest.err conftest.$ac_ext | |
3319 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
3320 echo "${ECHO_T}$ac_header_preproc" >&6 | |
3321 | |
3322 # So? What about this header? | |
3323 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
3324 yes:no: ) | |
3325 { echo "$as_me:$LINENO: WARNING: canna/RK.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
3326 echo "$as_me: WARNING: canna/RK.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
3327 { echo "$as_me:$LINENO: WARNING: canna/RK.h: proceeding with the compiler's result" >&5 | |
3328 echo "$as_me: WARNING: canna/RK.h: proceeding with the compiler's result" >&2;} | |
3329 ac_header_preproc=yes | |
3330 ;; | |
3331 no:yes:* ) | |
3332 { echo "$as_me:$LINENO: WARNING: canna/RK.h: present but cannot be compiled" >&5 | |
3333 echo "$as_me: WARNING: canna/RK.h: present but cannot be compiled" >&2;} | |
3334 { echo "$as_me:$LINENO: WARNING: canna/RK.h: check for missing prerequisite headers?" >&5 | |
3335 echo "$as_me: WARNING: canna/RK.h: check for missing prerequisite headers?" >&2;} | |
3336 { echo "$as_me:$LINENO: WARNING: canna/RK.h: see the Autoconf documentation" >&5 | |
3337 echo "$as_me: WARNING: canna/RK.h: see the Autoconf documentation" >&2;} | |
3338 { echo "$as_me:$LINENO: WARNING: canna/RK.h: section \"Present But Cannot Be Compiled\"" >&5 | |
3339 echo "$as_me: WARNING: canna/RK.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
3340 { echo "$as_me:$LINENO: WARNING: canna/RK.h: proceeding with the preprocessor's result" >&5 | |
3341 echo "$as_me: WARNING: canna/RK.h: proceeding with the preprocessor's result" >&2;} | |
3342 { echo "$as_me:$LINENO: WARNING: canna/RK.h: in the future, the compiler will take precedence" >&5 | |
3343 echo "$as_me: WARNING: canna/RK.h: in the future, the compiler will take precedence" >&2;} | |
3344 ( | |
3345 cat <<\_ASBOX | |
3346 ## ------------------------------------- ## | |
3347 ## Report this to xemacs-beta@xemacs.org ## | |
3348 ## ------------------------------------- ## | |
3349 _ASBOX | |
3350 ) | | |
3351 sed "s/^/$as_me: WARNING: /" >&2 | |
3352 ;; | |
3353 esac | |
3354 echo "$as_me:$LINENO: checking for canna/RK.h" >&5 | |
3355 echo $ECHO_N "checking for canna/RK.h... $ECHO_C" >&6 | |
3356 if test "${ac_cv_header_canna_RK_h+set}" = set; then | |
3357 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3358 else | |
3359 ac_cv_header_canna_RK_h=$ac_header_preproc | |
3360 fi | |
3361 echo "$as_me:$LINENO: result: $ac_cv_header_canna_RK_h" >&5 | |
3362 echo "${ECHO_T}$ac_cv_header_canna_RK_h" >&6 | |
3363 | |
3364 fi | |
3365 if test $ac_cv_header_canna_RK_h = yes; then | |
3366 : | |
3367 else | |
3368 with_canna=no | |
3369 fi | |
3370 | |
3371 } | |
3372 test -z "$with_canna" && { echo "$as_me:$LINENO: checking for RkBgnBun in -lRKC" >&5 | |
3373 echo $ECHO_N "checking for RkBgnBun in -lRKC... $ECHO_C" >&6 | |
3374 if test "${ac_cv_lib_RKC_RkBgnBun+set}" = set; then | |
3375 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3376 else | |
3377 ac_check_lib_save_LIBS=$LIBS | |
3378 LIBS="-lRKC $LIBS" | |
3379 cat >conftest.$ac_ext <<_ACEOF | |
3380 /* confdefs.h. */ | |
3381 _ACEOF | |
3382 cat confdefs.h >>conftest.$ac_ext | |
3383 cat >>conftest.$ac_ext <<_ACEOF | |
3384 /* end confdefs.h. */ | |
3385 | |
3386 /* Override any gcc2 internal prototype to avoid an error. */ | |
3387 #ifdef __cplusplus | |
3388 extern "C" | |
3389 #endif | |
3390 /* We use char because int might match the return type of a gcc2 | |
3391 builtin and then its argument prototype would still apply. */ | |
3392 char RkBgnBun (); | |
3393 int | |
3394 main () | |
3395 { | |
3396 RkBgnBun (); | |
3397 ; | |
3398 return 0; | |
3399 } | |
3400 _ACEOF | |
3401 rm -f conftest.$ac_objext conftest$ac_exeext | |
3402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3403 (eval $ac_link) 2>conftest.er1 | |
3404 ac_status=$? | |
3405 grep -v '^ *+' conftest.er1 >conftest.err | |
3406 rm -f conftest.er1 | |
3407 cat conftest.err >&5 | |
3408 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3409 (exit $ac_status); } && | |
3410 { ac_try='test -z "$ac_c_werror_flag" | |
3411 || test ! -s conftest.err' | |
3412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3413 (eval $ac_try) 2>&5 | |
3414 ac_status=$? | |
3415 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3416 (exit $ac_status); }; } && | |
3417 { ac_try='test -s conftest$ac_exeext' | |
3418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3419 (eval $ac_try) 2>&5 | |
3420 ac_status=$? | |
3421 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3422 (exit $ac_status); }; }; then | |
3423 ac_cv_lib_RKC_RkBgnBun=yes | |
3424 else | |
3425 echo "$as_me: failed program was:" >&5 | |
3426 sed 's/^/| /' conftest.$ac_ext >&5 | |
3427 | |
3428 ac_cv_lib_RKC_RkBgnBun=no | |
3429 fi | |
3430 rm -f conftest.err conftest.$ac_objext \ | |
3431 conftest$ac_exeext conftest.$ac_ext | |
3432 LIBS=$ac_check_lib_save_LIBS | |
3433 fi | |
3434 echo "$as_me:$LINENO: result: $ac_cv_lib_RKC_RkBgnBun" >&5 | |
3435 echo "${ECHO_T}$ac_cv_lib_RKC_RkBgnBun" >&6 | |
3436 if test $ac_cv_lib_RKC_RkBgnBun = yes; then | |
3437 : | |
3438 else | |
3439 with_canna=no | |
3440 fi | |
3441 } | |
3442 test -z "$with_canna" && { echo "$as_me:$LINENO: checking for jrKanjiControl in -lcanna" >&5 | |
3443 echo $ECHO_N "checking for jrKanjiControl in -lcanna... $ECHO_C" >&6 | |
3444 if test "${ac_cv_lib_canna_jrKanjiControl+set}" = set; then | |
3445 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3446 else | |
3447 ac_check_lib_save_LIBS=$LIBS | |
3448 LIBS="-lcanna $LIBS" | |
3449 cat >conftest.$ac_ext <<_ACEOF | |
3450 /* confdefs.h. */ | |
3451 _ACEOF | |
3452 cat confdefs.h >>conftest.$ac_ext | |
3453 cat >>conftest.$ac_ext <<_ACEOF | |
3454 /* end confdefs.h. */ | |
3455 | |
3456 /* Override any gcc2 internal prototype to avoid an error. */ | |
3457 #ifdef __cplusplus | |
3458 extern "C" | |
3459 #endif | |
3460 /* We use char because int might match the return type of a gcc2 | |
3461 builtin and then its argument prototype would still apply. */ | |
3462 char jrKanjiControl (); | |
3463 int | |
3464 main () | |
3465 { | |
3466 jrKanjiControl (); | |
3467 ; | |
3468 return 0; | |
3469 } | |
3470 _ACEOF | |
3471 rm -f conftest.$ac_objext conftest$ac_exeext | |
3472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3473 (eval $ac_link) 2>conftest.er1 | |
3474 ac_status=$? | |
3475 grep -v '^ *+' conftest.er1 >conftest.err | |
3476 rm -f conftest.er1 | |
3477 cat conftest.err >&5 | |
3478 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3479 (exit $ac_status); } && | |
3480 { ac_try='test -z "$ac_c_werror_flag" | |
3481 || test ! -s conftest.err' | |
3482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3483 (eval $ac_try) 2>&5 | |
3484 ac_status=$? | |
3485 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3486 (exit $ac_status); }; } && | |
3487 { ac_try='test -s conftest$ac_exeext' | |
3488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3489 (eval $ac_try) 2>&5 | |
3490 ac_status=$? | |
3491 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3492 (exit $ac_status); }; }; then | |
3493 ac_cv_lib_canna_jrKanjiControl=yes | |
3494 else | |
3495 echo "$as_me: failed program was:" >&5 | |
3496 sed 's/^/| /' conftest.$ac_ext >&5 | |
3497 | |
3498 ac_cv_lib_canna_jrKanjiControl=no | |
3499 fi | |
3500 rm -f conftest.err conftest.$ac_objext \ | |
3501 conftest$ac_exeext conftest.$ac_ext | |
3502 LIBS=$ac_check_lib_save_LIBS | |
3503 fi | |
3504 echo "$as_me:$LINENO: result: $ac_cv_lib_canna_jrKanjiControl" >&5 | |
3505 echo "${ECHO_T}$ac_cv_lib_canna_jrKanjiControl" >&6 | |
3506 if test $ac_cv_lib_canna_jrKanjiControl = yes; then | |
3507 : | |
3508 else | |
3509 with_canna=no | |
3510 fi | |
3511 } | |
3512 test -z "$with_canna" && with_canna=yes | |
3513 if test "$with_canna" = "yes"; then | |
3514 cat >>confdefs.h <<\_ACEOF | |
3515 #define HAVE_CANNA 1 | |
3516 _ACEOF | |
3517 | |
3518 LIBS="-lcanna -lRKC" | |
3519 fi | |
3520 | |
3521 canna_libs="$LIBS" | |
3522 | |
3523 | |
3524 # This part should appear unchanged in every module configure.ac | |
3525 PROGNAME="module" | |
3526 | |
3527 MOD_CC="@ELLCC@" | |
3528 | |
3529 MODARCHDIR="\$(shell @ELLCC@ --mod-archdir)" | |
3530 | |
3531 MAKE_DOCFILE="\$(MODARCHDIR)/make-docfile" | |
3532 | |
3533 MODCFLAGS="\$(CFLAGS) --mode=compile --mod-output=\$@ -I\$(MODARCHDIR)/include" | |
3534 | |
3535 INSTALLPATH="\$(shell @ELLCC@ --mod-site-location)" | |
3536 | |
3537 MOD_INSTALL_PROGRAM="@INSTALL_PROGRAM@" | |
3538 | |
3539 OBJECT_TO_BUILD="\$(MODNAME).ell" | |
3540 | |
3541 | |
3542 ac_config_files="$ac_config_files Makefile.in Makefile" | |
3543 | |
3544 cat >confcache <<\_ACEOF | |
3545 # This file is a shell script that caches the results of configure | |
3546 # tests run on this system so they can be shared between configure | |
3547 # scripts and configure runs, see configure's option --config-cache. | |
3548 # It is not useful on other systems. If it contains results you don't | |
3549 # want to keep, you may remove or edit it. | |
3550 # | |
3551 # config.status only pays attention to the cache file if you give it | |
3552 # the --recheck option to rerun configure. | |
3553 # | |
3554 # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
3555 # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
3556 # following values. | |
3557 | |
3558 _ACEOF | |
3559 | |
3560 # The following way of writing the cache mishandles newlines in values, | |
3561 # but we know of no workaround that is simple, portable, and efficient. | |
3562 # So, don't put newlines in cache variables' values. | |
3563 # Ultrix sh set writes to stderr and can't be redirected directly, | |
3564 # and sets the high bit in the cache file unless we assign to the vars. | |
3565 { | |
3566 (set) 2>&1 | | |
3567 case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
3568 *ac_space=\ *) | |
3569 # `set' does not quote correctly, so add quotes (double-quote | |
3570 # substitution turns \\\\ into \\, and sed turns \\ into \). | |
3571 sed -n \ | |
3572 "s/'/'\\\\''/g; | |
3573 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
3574 ;; | |
3575 *) | |
3576 # `set' quotes correctly as required by POSIX, so do not add quotes. | |
3577 sed -n \ | |
3578 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
3579 ;; | |
3580 esac; | |
3581 } | | |
3582 sed ' | |
3583 t clear | |
3584 : clear | |
3585 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
3586 t end | |
3587 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
3588 : end' >>confcache | |
3589 if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
3590 if test -w $cache_file; then | |
3591 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
3592 cat confcache >$cache_file | |
3593 else | |
3594 echo "not updating unwritable cache $cache_file" | |
3595 fi | |
3596 fi | |
3597 rm -f confcache | |
3598 | |
3599 test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
3600 # Let make expand exec_prefix. | |
3601 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
3602 | |
3603 # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
3604 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
3605 # trailing colons and then remove the whole line if VPATH becomes empty | |
3606 # (actually we leave an empty line to preserve line numbers). | |
3607 if test "x$srcdir" = x.; then | |
3608 ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
3609 s/:*\$(srcdir):*/:/; | |
3610 s/:*\${srcdir}:*/:/; | |
3611 s/:*@srcdir@:*/:/; | |
3612 s/^\([^=]*=[ ]*\):*/\1/; | |
3613 s/:*$//; | |
3614 s/^[^=]*=[ ]*$//; | |
3615 }' | |
3616 fi | |
3617 | |
3618 # Transform confdefs.h into DEFS. | |
3619 # Protect against shell expansion while executing Makefile rules. | |
3620 # Protect against Makefile macro expansion. | |
3621 # | |
3622 # If the first sed substitution is executed (which looks for macros that | |
3623 # take arguments), then we branch to the quote section. Otherwise, | |
3624 # look for a macro that doesn't take arguments. | |
3625 cat >confdef2opt.sed <<\_ACEOF | |
3626 t clear | |
3627 : clear | |
3628 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g | |
3629 t quote | |
3630 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g | |
3631 t quote | |
3632 d | |
3633 : quote | |
3634 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g | |
3635 s,\[,\\&,g | |
3636 s,\],\\&,g | |
3637 s,\$,$$,g | |
3638 p | |
3639 _ACEOF | |
3640 # We use echo to avoid assuming a particular line-breaking character. | |
3641 # The extra dot is to prevent the shell from consuming trailing | |
3642 # line-breaks from the sub-command output. A line-break within | |
3643 # single-quotes doesn't work because, if this script is created in a | |
3644 # platform that uses two characters for line-breaks (e.g., DOS), tr | |
3645 # would break. | |
3646 ac_LF_and_DOT=`echo; echo .` | |
3647 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'` | |
3648 rm -f confdef2opt.sed | |
3649 | |
3650 | |
3651 ac_libobjs= | |
3652 ac_ltlibobjs= | |
3653 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
3654 # 1. Remove the extension, and $U if already installed. | |
3655 ac_i=`echo "$ac_i" | | |
3656 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` | |
3017 | 3657 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
3658 # will be set to the directory where LIBOBJS objects are built. | |
3659 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
3660 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | |
3007 | 3661 done |
3662 LIBOBJS=$ac_libobjs | |
3663 | |
3664 LTLIBOBJS=$ac_ltlibobjs | |
3665 | |
3666 | |
3667 | |
3668 : ${CONFIG_STATUS=./config.status} | |
3669 ac_clean_files_save=$ac_clean_files | |
3670 ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
3671 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
3672 echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
3673 cat >$CONFIG_STATUS <<_ACEOF | |
3674 #! $SHELL | |
3675 # Generated by $as_me. | |
3676 # Run this file to recreate the current configuration. | |
3677 # Compiler output produced by configure, useful for debugging | |
3678 # configure, is in config.log if it exists. | |
3679 | |
3680 debug=false | |
3681 ac_cs_recheck=false | |
3682 ac_cs_silent=false | |
3683 SHELL=\${CONFIG_SHELL-$SHELL} | |
3684 _ACEOF | |
3685 | |
3686 cat >>$CONFIG_STATUS <<\_ACEOF | |
3687 ## --------------------- ## | |
3688 ## M4sh Initialization. ## | |
3689 ## --------------------- ## | |
3690 | |
3691 # Be Bourne compatible | |
3692 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
3693 emulate sh | |
3694 NULLCMD=: | |
3695 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
3696 # is contrary to our usage. Disable this feature. | |
3697 alias -g '${1+"$@"}'='"$@"' | |
3698 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
3699 set -o posix | |
3700 fi | |
3701 DUALCASE=1; export DUALCASE # for MKS sh | |
3702 | |
3703 # Support unset when possible. | |
3704 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
3705 as_unset=unset | |
3706 else | |
3707 as_unset=false | |
3708 fi | |
3709 | |
3710 | |
3711 # Work around bugs in pre-3.0 UWIN ksh. | |
3712 $as_unset ENV MAIL MAILPATH | |
3713 PS1='$ ' | |
3714 PS2='> ' | |
3715 PS4='+ ' | |
3716 | |
3717 # NLS nuisances. | |
3718 for as_var in \ | |
3719 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
3720 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
3721 LC_TELEPHONE LC_TIME | |
3722 do | |
3723 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
3724 eval $as_var=C; export $as_var | |
3725 else | |
3726 $as_unset $as_var | |
3727 fi | |
3728 done | |
3729 | |
3730 # Required to use basename. | |
3731 if expr a : '\(a\)' >/dev/null 2>&1; then | |
3732 as_expr=expr | |
3733 else | |
3734 as_expr=false | |
3735 fi | |
3736 | |
3737 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
3738 as_basename=basename | |
3739 else | |
3740 as_basename=false | |
3741 fi | |
3742 | |
3743 | |
3744 # Name of the executable. | |
3745 as_me=`$as_basename "$0" || | |
3746 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
3747 X"$0" : 'X\(//\)$' \| \ | |
3748 X"$0" : 'X\(/\)$' \| \ | |
3749 . : '\(.\)' 2>/dev/null || | |
3750 echo X/"$0" | | |
3751 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
3752 /^X\/\(\/\/\)$/{ s//\1/; q; } | |
3753 /^X\/\(\/\).*/{ s//\1/; q; } | |
3754 s/.*/./; q'` | |
3755 | |
3756 | |
3757 # PATH needs CR, and LINENO needs CR and PATH. | |
3758 # Avoid depending upon Character Ranges. | |
3759 as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
3760 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
3761 as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
3762 as_cr_digits='0123456789' | |
3763 as_cr_alnum=$as_cr_Letters$as_cr_digits | |
3764 | |
3765 # The user is always right. | |
3766 if test "${PATH_SEPARATOR+set}" != set; then | |
3767 echo "#! /bin/sh" >conf$$.sh | |
3768 echo "exit 0" >>conf$$.sh | |
3769 chmod +x conf$$.sh | |
3770 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
3771 PATH_SEPARATOR=';' | |
3772 else | |
3773 PATH_SEPARATOR=: | |
3774 fi | |
3775 rm -f conf$$.sh | |
3776 fi | |
3777 | |
3778 | |
3779 as_lineno_1=$LINENO | |
3780 as_lineno_2=$LINENO | |
3781 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
3782 test "x$as_lineno_1" != "x$as_lineno_2" && | |
3783 test "x$as_lineno_3" = "x$as_lineno_2" || { | |
3784 # Find who we are. Look in the path if we contain no path at all | |
3785 # relative or not. | |
3786 case $0 in | |
3787 *[\\/]* ) as_myself=$0 ;; | |
3788 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3789 for as_dir in $PATH | |
3790 do | |
3791 IFS=$as_save_IFS | |
3792 test -z "$as_dir" && as_dir=. | |
3793 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
3794 done | |
3795 | |
3796 ;; | |
3797 esac | |
3798 # We did not find ourselves, most probably we were run as `sh COMMAND' | |
3799 # in which case we are not to be found in the path. | |
3800 if test "x$as_myself" = x; then | |
3801 as_myself=$0 | |
3802 fi | |
3803 if test ! -f "$as_myself"; then | |
3804 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
3805 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
3806 { (exit 1); exit 1; }; } | |
3807 fi | |
3808 case $CONFIG_SHELL in | |
3809 '') | |
3810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3811 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
3812 do | |
3813 IFS=$as_save_IFS | |
3814 test -z "$as_dir" && as_dir=. | |
3815 for as_base in sh bash ksh sh5; do | |
3816 case $as_dir in | |
3817 /*) | |
3818 if ("$as_dir/$as_base" -c ' | |
3819 as_lineno_1=$LINENO | |
3820 as_lineno_2=$LINENO | |
3821 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
3822 test "x$as_lineno_1" != "x$as_lineno_2" && | |
3823 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
3824 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
3825 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
3826 CONFIG_SHELL=$as_dir/$as_base | |
3827 export CONFIG_SHELL | |
3828 exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
3829 fi;; | |
3830 esac | |
3831 done | |
3832 done | |
3833 ;; | |
3834 esac | |
3835 | |
3836 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
3837 # uniformly replaced by the line number. The first 'sed' inserts a | |
3838 # line-number line before each line; the second 'sed' does the real | |
3839 # work. The second script uses 'N' to pair each line-number line | |
3840 # with the numbered line, and appends trailing '-' during | |
3841 # substitution so that $LINENO is not a special case at line end. | |
3842 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
3843 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
3844 sed '=' <$as_myself | | |
3845 sed ' | |
3846 N | |
3847 s,$,-, | |
3848 : loop | |
3849 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
3850 t loop | |
3851 s,-$,, | |
3852 s,^['$as_cr_digits']*\n,, | |
3853 ' >$as_me.lineno && | |
3854 chmod +x $as_me.lineno || | |
3855 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
3856 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
3857 { (exit 1); exit 1; }; } | |
3858 | |
3859 # Don't try to exec as it changes $[0], causing all sort of problems | |
3860 # (the dirname of $[0] is not the place where we might find the | |
3861 # original and so on. Autoconf is especially sensible to this). | |
3862 . ./$as_me.lineno | |
3863 # Exit status is that of the last command. | |
3864 exit | |
3865 } | |
3866 | |
3867 | |
3868 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
3869 *c*,-n*) ECHO_N= ECHO_C=' | |
3870 ' ECHO_T=' ' ;; | |
3871 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
3872 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
3873 esac | |
3874 | |
3875 if expr a : '\(a\)' >/dev/null 2>&1; then | |
3876 as_expr=expr | |
3877 else | |
3878 as_expr=false | |
3879 fi | |
3880 | |
3881 rm -f conf$$ conf$$.exe conf$$.file | |
3882 echo >conf$$.file | |
3883 if ln -s conf$$.file conf$$ 2>/dev/null; then | |
3884 # We could just check for DJGPP; but this test a) works b) is more generic | |
3885 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
3886 if test -f conf$$.exe; then | |
3887 # Don't use ln at all; we don't have any links | |
3888 as_ln_s='cp -p' | |
3889 else | |
3890 as_ln_s='ln -s' | |
3891 fi | |
3892 elif ln conf$$.file conf$$ 2>/dev/null; then | |
3893 as_ln_s=ln | |
3894 else | |
3895 as_ln_s='cp -p' | |
3896 fi | |
3897 rm -f conf$$ conf$$.exe conf$$.file | |
3898 | |
3899 if mkdir -p . 2>/dev/null; then | |
3900 as_mkdir_p=: | |
3901 else | |
3902 test -d ./-p && rmdir ./-p | |
3903 as_mkdir_p=false | |
3904 fi | |
3905 | |
3906 as_executable_p="test -f" | |
3907 | |
3908 # Sed expression to map a string onto a valid CPP name. | |
3909 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
3910 | |
3911 # Sed expression to map a string onto a valid variable name. | |
3912 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
3913 | |
3914 | |
3915 # IFS | |
3916 # We need space, tab and new line, in precisely that order. | |
3917 as_nl=' | |
3918 ' | |
3919 IFS=" $as_nl" | |
3920 | |
3921 # CDPATH. | |
3922 $as_unset CDPATH | |
3923 | |
3924 exec 6>&1 | |
3925 | |
3926 # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
3927 # report actual input values of CONFIG_FILES etc. instead of their | |
3928 # values after options handling. Logging --version etc. is OK. | |
3929 exec 5>>config.log | |
3930 { | |
3931 echo | |
3932 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
3933 ## Running $as_me. ## | |
3934 _ASBOX | |
3935 } >&5 | |
3936 cat >&5 <<_CSEOF | |
3937 | |
3938 This file was extended by Sample module $as_me 1.0, which was | |
3939 generated by GNU Autoconf 2.59. Invocation command line was | |
3940 | |
3941 CONFIG_FILES = $CONFIG_FILES | |
3942 CONFIG_HEADERS = $CONFIG_HEADERS | |
3943 CONFIG_LINKS = $CONFIG_LINKS | |
3944 CONFIG_COMMANDS = $CONFIG_COMMANDS | |
3945 $ $0 $@ | |
3946 | |
3947 _CSEOF | |
3948 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
3949 echo >&5 | |
3950 _ACEOF | |
3951 | |
3952 # Files that config.status was made for. | |
3953 if test -n "$ac_config_files"; then | |
3954 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
3955 fi | |
3956 | |
3957 if test -n "$ac_config_headers"; then | |
3958 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
3959 fi | |
3960 | |
3961 if test -n "$ac_config_links"; then | |
3962 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
3963 fi | |
3964 | |
3965 if test -n "$ac_config_commands"; then | |
3966 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
3967 fi | |
3968 | |
3969 cat >>$CONFIG_STATUS <<\_ACEOF | |
3970 | |
3971 ac_cs_usage="\ | |
3972 \`$as_me' instantiates files from templates according to the | |
3973 current configuration. | |
3974 | |
3975 Usage: $0 [OPTIONS] [FILE]... | |
3976 | |
3977 -h, --help print this help, then exit | |
3978 -V, --version print version number, then exit | |
3979 -q, --quiet do not print progress messages | |
3980 -d, --debug don't remove temporary files | |
3981 --recheck update $as_me by reconfiguring in the same conditions | |
3982 --file=FILE[:TEMPLATE] | |
3983 instantiate the configuration file FILE | |
3984 | |
3985 Configuration files: | |
3986 $config_files | |
3987 | |
3988 Report bugs to <bug-autoconf@gnu.org>." | |
3989 _ACEOF | |
3990 | |
3991 cat >>$CONFIG_STATUS <<_ACEOF | |
3992 ac_cs_version="\\ | |
3993 Sample module config.status 1.0 | |
3994 configured by $0, generated by GNU Autoconf 2.59, | |
3995 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | |
3996 | |
3997 Copyright (C) 2003 Free Software Foundation, Inc. | |
3998 This config.status script is free software; the Free Software Foundation | |
3999 gives unlimited permission to copy, distribute and modify it." | |
4000 srcdir=$srcdir | |
4001 INSTALL="$INSTALL" | |
4002 _ACEOF | |
4003 | |
4004 cat >>$CONFIG_STATUS <<\_ACEOF | |
4005 # If no file are specified by the user, then we need to provide default | |
4006 # value. By we need to know if files were specified by the user. | |
4007 ac_need_defaults=: | |
4008 while test $# != 0 | |
4009 do | |
4010 case $1 in | |
4011 --*=*) | |
4012 ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
4013 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
4014 ac_shift=: | |
4015 ;; | |
4016 -*) | |
4017 ac_option=$1 | |
4018 ac_optarg=$2 | |
4019 ac_shift=shift | |
4020 ;; | |
4021 *) # This is not an option, so the user has probably given explicit | |
4022 # arguments. | |
4023 ac_option=$1 | |
4024 ac_need_defaults=false;; | |
4025 esac | |
4026 | |
4027 case $ac_option in | |
4028 # Handling of the options. | |
4029 _ACEOF | |
4030 cat >>$CONFIG_STATUS <<\_ACEOF | |
4031 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
4032 ac_cs_recheck=: ;; | |
4033 --version | --vers* | -V ) | |
4034 echo "$ac_cs_version"; exit 0 ;; | |
4035 --he | --h) | |
4036 # Conflict between --help and --header | |
4037 { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
4038 Try \`$0 --help' for more information." >&5 | |
4039 echo "$as_me: error: ambiguous option: $1 | |
4040 Try \`$0 --help' for more information." >&2;} | |
4041 { (exit 1); exit 1; }; };; | |
4042 --help | --hel | -h ) | |
4043 echo "$ac_cs_usage"; exit 0 ;; | |
4044 --debug | --d* | -d ) | |
4045 debug=: ;; | |
4046 --file | --fil | --fi | --f ) | |
4047 $ac_shift | |
4048 CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
4049 ac_need_defaults=false;; | |
4050 --header | --heade | --head | --hea ) | |
4051 $ac_shift | |
4052 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
4053 ac_need_defaults=false;; | |
4054 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
4055 | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
4056 ac_cs_silent=: ;; | |
4057 | |
4058 # This is an error. | |
4059 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
4060 Try \`$0 --help' for more information." >&5 | |
4061 echo "$as_me: error: unrecognized option: $1 | |
4062 Try \`$0 --help' for more information." >&2;} | |
4063 { (exit 1); exit 1; }; } ;; | |
4064 | |
4065 *) ac_config_targets="$ac_config_targets $1" ;; | |
4066 | |
4067 esac | |
4068 shift | |
4069 done | |
4070 | |
4071 ac_configure_extra_args= | |
4072 | |
4073 if $ac_cs_silent; then | |
4074 exec 6>/dev/null | |
4075 ac_configure_extra_args="$ac_configure_extra_args --silent" | |
4076 fi | |
4077 | |
4078 _ACEOF | |
4079 cat >>$CONFIG_STATUS <<_ACEOF | |
4080 if \$ac_cs_recheck; then | |
4081 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
4082 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
4083 fi | |
4084 | |
4085 _ACEOF | |
4086 | |
4087 | |
4088 | |
4089 | |
4090 | |
4091 cat >>$CONFIG_STATUS <<\_ACEOF | |
4092 for ac_config_target in $ac_config_targets | |
4093 do | |
4094 case "$ac_config_target" in | |
4095 # Handling of arguments. | |
4096 "Makefile.in" ) CONFIG_FILES="$CONFIG_FILES Makefile.in" ;; | |
4097 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
4098 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
4099 echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
4100 { (exit 1); exit 1; }; };; | |
4101 esac | |
4102 done | |
4103 | |
4104 # If the user did not use the arguments to specify the items to instantiate, | |
4105 # then the envvar interface is used. Set only those that are not. | |
4106 # We use the long form for the default assignment because of an extremely | |
4107 # bizarre bug on SunOS 4.1.3. | |
4108 if $ac_need_defaults; then | |
4109 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
4110 fi | |
4111 | |
4112 # Have a temporary directory for convenience. Make it in the build tree | |
4113 # simply because there is no reason to put it here, and in addition, | |
4114 # creating and moving files from /tmp can sometimes cause problems. | |
4115 # Create a temporary directory, and hook for its removal unless debugging. | |
4116 $debug || | |
4117 { | |
4118 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
4119 trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
4120 } | |
4121 | |
4122 # Create a (secure) tmp directory for tmp files. | |
4123 | |
4124 { | |
4125 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
4126 test -n "$tmp" && test -d "$tmp" | |
4127 } || | |
4128 { | |
4129 tmp=./confstat$$-$RANDOM | |
4130 (umask 077 && mkdir $tmp) | |
4131 } || | |
4132 { | |
4133 echo "$me: cannot create a temporary directory in ." >&2 | |
4134 { (exit 1); exit 1; } | |
4135 } | |
4136 | |
4137 _ACEOF | |
4138 | |
4139 cat >>$CONFIG_STATUS <<_ACEOF | |
4140 | |
4141 # | |
4142 # CONFIG_FILES section. | |
4143 # | |
4144 | |
4145 # No need to generate the scripts if there are no CONFIG_FILES. | |
4146 # This happens for instance when ./config.status config.h | |
4147 if test -n "\$CONFIG_FILES"; then | |
4148 # Protect against being on the right side of a sed subst in config.status. | |
4149 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
4150 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
4151 s,@SHELL@,$SHELL,;t t | |
4152 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
4153 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
4154 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
4155 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
4156 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
4157 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
4158 s,@exec_prefix@,$exec_prefix,;t t | |
4159 s,@prefix@,$prefix,;t t | |
4160 s,@program_transform_name@,$program_transform_name,;t t | |
4161 s,@bindir@,$bindir,;t t | |
4162 s,@sbindir@,$sbindir,;t t | |
4163 s,@libexecdir@,$libexecdir,;t t | |
4164 s,@datadir@,$datadir,;t t | |
4165 s,@sysconfdir@,$sysconfdir,;t t | |
4166 s,@sharedstatedir@,$sharedstatedir,;t t | |
4167 s,@localstatedir@,$localstatedir,;t t | |
4168 s,@libdir@,$libdir,;t t | |
4169 s,@includedir@,$includedir,;t t | |
4170 s,@oldincludedir@,$oldincludedir,;t t | |
4171 s,@infodir@,$infodir,;t t | |
4172 s,@mandir@,$mandir,;t t | |
4173 s,@build_alias@,$build_alias,;t t | |
4174 s,@host_alias@,$host_alias,;t t | |
4175 s,@target_alias@,$target_alias,;t t | |
4176 s,@DEFS@,$DEFS,;t t | |
4177 s,@ECHO_C@,$ECHO_C,;t t | |
4178 s,@ECHO_N@,$ECHO_N,;t t | |
4179 s,@ECHO_T@,$ECHO_T,;t t | |
4180 s,@LIBS@,$LIBS,;t t | |
4181 s,@CC@,$CC,;t t | |
4182 s,@CFLAGS@,$CFLAGS,;t t | |
4183 s,@LDFLAGS@,$LDFLAGS,;t t | |
4184 s,@CPPFLAGS@,$CPPFLAGS,;t t | |
4185 s,@ac_ct_CC@,$ac_ct_CC,;t t | |
4186 s,@EXEEXT@,$EXEEXT,;t t | |
4187 s,@OBJEXT@,$OBJEXT,;t t | |
4188 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
4189 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
4190 s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
4191 s,@ELLCC@,$ELLCC,;t t | |
4192 s,@CPP@,$CPP,;t t | |
4193 s,@EGREP@,$EGREP,;t t | |
4194 s,@canna_libs@,$canna_libs,;t t | |
4195 s,@PROGNAME@,$PROGNAME,;t t | |
4196 s,@MOD_CC@,$MOD_CC,;t t | |
4197 s,@MODARCHDIR@,$MODARCHDIR,;t t | |
4198 s,@MAKE_DOCFILE@,$MAKE_DOCFILE,;t t | |
4199 s,@MODCFLAGS@,$MODCFLAGS,;t t | |
4200 s,@INSTALLPATH@,$INSTALLPATH,;t t | |
4201 s,@MOD_INSTALL_PROGRAM@,$MOD_INSTALL_PROGRAM,;t t | |
4202 s,@OBJECT_TO_BUILD@,$OBJECT_TO_BUILD,;t t | |
4203 s,@LIBOBJS@,$LIBOBJS,;t t | |
4204 s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
4205 CEOF | |
4206 | |
4207 _ACEOF | |
4208 | |
4209 cat >>$CONFIG_STATUS <<\_ACEOF | |
4210 # Split the substitutions into bite-sized pieces for seds with | |
4211 # small command number limits, like on Digital OSF/1 and HP-UX. | |
4212 ac_max_sed_lines=48 | |
4213 ac_sed_frag=1 # Number of current file. | |
4214 ac_beg=1 # First line for current file. | |
4215 ac_end=$ac_max_sed_lines # Line after last line for current file. | |
4216 ac_more_lines=: | |
4217 ac_sed_cmds= | |
4218 while $ac_more_lines; do | |
4219 if test $ac_beg -gt 1; then | |
4220 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
4221 else | |
4222 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
4223 fi | |
4224 if test ! -s $tmp/subs.frag; then | |
4225 ac_more_lines=false | |
4226 else | |
4227 # The purpose of the label and of the branching condition is to | |
4228 # speed up the sed processing (if there are no `@' at all, there | |
4229 # is no need to browse any of the substitutions). | |
4230 # These are the two extra sed commands mentioned above. | |
4231 (echo ':t | |
4232 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
4233 if test -z "$ac_sed_cmds"; then | |
4234 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | |
4235 else | |
4236 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | |
4237 fi | |
4238 ac_sed_frag=`expr $ac_sed_frag + 1` | |
4239 ac_beg=$ac_end | |
4240 ac_end=`expr $ac_end + $ac_max_sed_lines` | |
4241 fi | |
4242 done | |
4243 if test -z "$ac_sed_cmds"; then | |
4244 ac_sed_cmds=cat | |
4245 fi | |
4246 fi # test -n "$CONFIG_FILES" | |
4247 | |
4248 _ACEOF | |
4249 cat >>$CONFIG_STATUS <<\_ACEOF | |
4250 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
4251 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
4252 case $ac_file in | |
4253 - | *:- | *:-:* ) # input from stdin | |
4254 cat >$tmp/stdin | |
4255 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
4256 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
4257 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
4258 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
4259 * ) ac_file_in=$ac_file.in ;; | |
4260 esac | |
4261 | |
4262 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. | |
4263 ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
4264 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
4265 X"$ac_file" : 'X\(//\)[^/]' \| \ | |
4266 X"$ac_file" : 'X\(//\)$' \| \ | |
4267 X"$ac_file" : 'X\(/\)' \| \ | |
4268 . : '\(.\)' 2>/dev/null || | |
4269 echo X"$ac_file" | | |
4270 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
4271 /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
4272 /^X\(\/\/\)$/{ s//\1/; q; } | |
4273 /^X\(\/\).*/{ s//\1/; q; } | |
4274 s/.*/./; q'` | |
4275 { if $as_mkdir_p; then | |
4276 mkdir -p "$ac_dir" | |
4277 else | |
4278 as_dir="$ac_dir" | |
4279 as_dirs= | |
4280 while test ! -d "$as_dir"; do | |
4281 as_dirs="$as_dir $as_dirs" | |
4282 as_dir=`(dirname "$as_dir") 2>/dev/null || | |
4283 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
4284 X"$as_dir" : 'X\(//\)[^/]' \| \ | |
4285 X"$as_dir" : 'X\(//\)$' \| \ | |
4286 X"$as_dir" : 'X\(/\)' \| \ | |
4287 . : '\(.\)' 2>/dev/null || | |
4288 echo X"$as_dir" | | |
4289 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
4290 /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
4291 /^X\(\/\/\)$/{ s//\1/; q; } | |
4292 /^X\(\/\).*/{ s//\1/; q; } | |
4293 s/.*/./; q'` | |
4294 done | |
4295 test ! -n "$as_dirs" || mkdir $as_dirs | |
4296 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
4297 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
4298 { (exit 1); exit 1; }; }; } | |
4299 | |
4300 ac_builddir=. | |
4301 | |
4302 if test "$ac_dir" != .; then | |
4303 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
4304 # A "../" for each directory in $ac_dir_suffix. | |
4305 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
4306 else | |
4307 ac_dir_suffix= ac_top_builddir= | |
4308 fi | |
4309 | |
4310 case $srcdir in | |
4311 .) # No --srcdir option. We are building in place. | |
4312 ac_srcdir=. | |
4313 if test -z "$ac_top_builddir"; then | |
4314 ac_top_srcdir=. | |
4315 else | |
4316 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
4317 fi ;; | |
4318 [\\/]* | ?:[\\/]* ) # Absolute path. | |
4319 ac_srcdir=$srcdir$ac_dir_suffix; | |
4320 ac_top_srcdir=$srcdir ;; | |
4321 *) # Relative path. | |
4322 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
4323 ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
4324 esac | |
4325 | |
4326 # Do not use `cd foo && pwd` to compute absolute paths, because | |
4327 # the directories may not exist. | |
4328 case `pwd` in | |
4329 .) ac_abs_builddir="$ac_dir";; | |
4330 *) | |
4331 case "$ac_dir" in | |
4332 .) ac_abs_builddir=`pwd`;; | |
4333 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
4334 *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
4335 esac;; | |
4336 esac | |
4337 case $ac_abs_builddir in | |
4338 .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
4339 *) | |
4340 case ${ac_top_builddir}. in | |
4341 .) ac_abs_top_builddir=$ac_abs_builddir;; | |
4342 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
4343 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
4344 esac;; | |
4345 esac | |
4346 case $ac_abs_builddir in | |
4347 .) ac_abs_srcdir=$ac_srcdir;; | |
4348 *) | |
4349 case $ac_srcdir in | |
4350 .) ac_abs_srcdir=$ac_abs_builddir;; | |
4351 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
4352 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
4353 esac;; | |
4354 esac | |
4355 case $ac_abs_builddir in | |
4356 .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
4357 *) | |
4358 case $ac_top_srcdir in | |
4359 .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
4360 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
4361 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
4362 esac;; | |
4363 esac | |
4364 | |
4365 | |
4366 case $INSTALL in | |
4367 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
4368 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
4369 esac | |
4370 | |
4371 if test x"$ac_file" != x-; then | |
4372 { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
4373 echo "$as_me: creating $ac_file" >&6;} | |
4374 rm -f "$ac_file" | |
4375 fi | |
4376 # Let's still pretend it is `configure' which instantiates (i.e., don't | |
4377 # use $as_me), people would be surprised to read: | |
4378 # /* config.h. Generated by config.status. */ | |
4379 if test x"$ac_file" = x-; then | |
4380 configure_input= | |
4381 else | |
4382 configure_input="$ac_file. " | |
4383 fi | |
4384 configure_input=$configure_input"Generated from `echo $ac_file_in | | |
4385 sed 's,.*/,,'` by configure." | |
4386 | |
4387 # First look for the input files in the build tree, otherwise in the | |
4388 # src tree. | |
4389 ac_file_inputs=`IFS=: | |
4390 for f in $ac_file_in; do | |
4391 case $f in | |
4392 -) echo $tmp/stdin ;; | |
4393 [\\/$]*) | |
4394 # Absolute (can't be DOS-style, as IFS=:) | |
4395 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
4396 echo "$as_me: error: cannot find input file: $f" >&2;} | |
4397 { (exit 1); exit 1; }; } | |
4398 echo "$f";; | |
4399 *) # Relative | |
4400 if test -f "$f"; then | |
4401 # Build tree | |
4402 echo "$f" | |
4403 elif test -f "$srcdir/$f"; then | |
4404 # Source tree | |
4405 echo "$srcdir/$f" | |
4406 else | |
4407 # /dev/null tree | |
4408 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
4409 echo "$as_me: error: cannot find input file: $f" >&2;} | |
4410 { (exit 1); exit 1; }; } | |
4411 fi;; | |
4412 esac | |
4413 done` || { (exit 1); exit 1; } | |
4414 _ACEOF | |
4415 cat >>$CONFIG_STATUS <<_ACEOF | |
4416 sed "$ac_vpsub | |
4417 $extrasub | |
4418 _ACEOF | |
4419 cat >>$CONFIG_STATUS <<\_ACEOF | |
4420 :t | |
4421 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
4422 s,@configure_input@,$configure_input,;t t | |
4423 s,@srcdir@,$ac_srcdir,;t t | |
4424 s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
4425 s,@top_srcdir@,$ac_top_srcdir,;t t | |
4426 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
4427 s,@builddir@,$ac_builddir,;t t | |
4428 s,@abs_builddir@,$ac_abs_builddir,;t t | |
4429 s,@top_builddir@,$ac_top_builddir,;t t | |
4430 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
4431 s,@INSTALL@,$ac_INSTALL,;t t | |
4432 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
4433 rm -f $tmp/stdin | |
4434 if test x"$ac_file" != x-; then | |
4435 mv $tmp/out $ac_file | |
4436 else | |
4437 cat $tmp/out | |
4438 rm -f $tmp/out | |
4439 fi | |
4440 | |
4441 done | |
4442 _ACEOF | |
4443 | |
4444 cat >>$CONFIG_STATUS <<\_ACEOF | |
4445 | |
4446 { (exit 0); exit 0; } | |
4447 _ACEOF | |
4448 chmod +x $CONFIG_STATUS | |
4449 ac_clean_files=$ac_clean_files_save | |
4450 | |
4451 | |
4452 # configure is writing to config.log, and then calls config.status. | |
4453 # config.status does its own redirection, appending to config.log. | |
4454 # Unfortunately, on DOS this fails, as config.log is still kept open | |
4455 # by configure, so config.status won't be able to write to it; its | |
4456 # output is simply discarded. So we exec the FD to /dev/null, | |
4457 # effectively closing config.log, so it can be properly (re)opened and | |
4458 # appended to by config.status. When coming back to configure, we | |
4459 # need to make the FD available again. | |
4460 if test "$no_create" != yes; then | |
4461 ac_cs_success=: | |
4462 ac_config_status_args= | |
4463 test "$silent" = yes && | |
4464 ac_config_status_args="$ac_config_status_args --quiet" | |
4465 exec 5>/dev/null | |
4466 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
4467 exec 5>>config.log | |
4468 # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
4469 # would make configure fail if this is the last instruction. | |
4470 $ac_cs_success || { (exit 1); exit 1; } | |
4471 fi | |
4472 |