configure revision 1.2 1 1.1 tsutsui #! /bin/sh
2 1.1 tsutsui
3 1.1 tsutsui # Guess values for system-dependent variables and create Makefiles.
4 1.2 tsutsui # Generated automatically using autoconf version 2.13
5 1.1 tsutsui # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6 1.1 tsutsui #
7 1.1 tsutsui # This configure script is free software; the Free Software Foundation
8 1.1 tsutsui # gives unlimited permission to copy, distribute and modify it.
9 1.1 tsutsui
10 1.1 tsutsui # Defaults:
11 1.1 tsutsui ac_help=
12 1.1 tsutsui ac_default_prefix=/usr/local
13 1.1 tsutsui # Any additions from configure.in:
14 1.1 tsutsui
15 1.1 tsutsui # Initialize some variables set by options.
16 1.1 tsutsui # The variables have the same names as the options, with
17 1.1 tsutsui # dashes changed to underlines.
18 1.1 tsutsui build=NONE
19 1.1 tsutsui cache_file=./config.cache
20 1.1 tsutsui exec_prefix=NONE
21 1.1 tsutsui host=NONE
22 1.1 tsutsui no_create=
23 1.1 tsutsui nonopt=NONE
24 1.1 tsutsui no_recursion=
25 1.1 tsutsui prefix=NONE
26 1.1 tsutsui program_prefix=NONE
27 1.1 tsutsui program_suffix=NONE
28 1.1 tsutsui program_transform_name=s,x,x,
29 1.1 tsutsui silent=
30 1.1 tsutsui site=
31 1.1 tsutsui srcdir=
32 1.1 tsutsui target=NONE
33 1.1 tsutsui verbose=
34 1.1 tsutsui x_includes=NONE
35 1.1 tsutsui x_libraries=NONE
36 1.1 tsutsui bindir='${exec_prefix}/bin'
37 1.1 tsutsui sbindir='${exec_prefix}/sbin'
38 1.1 tsutsui libexecdir='${exec_prefix}/libexec'
39 1.1 tsutsui datadir='${prefix}/share'
40 1.1 tsutsui sysconfdir='${prefix}/etc'
41 1.1 tsutsui sharedstatedir='${prefix}/com'
42 1.1 tsutsui localstatedir='${prefix}/var'
43 1.1 tsutsui libdir='${exec_prefix}/lib'
44 1.1 tsutsui includedir='${prefix}/include'
45 1.1 tsutsui oldincludedir='/usr/include'
46 1.1 tsutsui infodir='${prefix}/info'
47 1.1 tsutsui mandir='${prefix}/man'
48 1.1 tsutsui
49 1.1 tsutsui # Initialize some other variables.
50 1.1 tsutsui subdirs=
51 1.1 tsutsui MFLAGS= MAKEFLAGS=
52 1.2 tsutsui SHELL=${CONFIG_SHELL-/bin/sh}
53 1.1 tsutsui # Maximum number of lines to put in a shell here document.
54 1.1 tsutsui ac_max_here_lines=12
55 1.1 tsutsui
56 1.1 tsutsui ac_prev=
57 1.1 tsutsui for ac_option
58 1.1 tsutsui do
59 1.1 tsutsui
60 1.1 tsutsui # If the previous option needs an argument, assign it.
61 1.1 tsutsui if test -n "$ac_prev"; then
62 1.1 tsutsui eval "$ac_prev=\$ac_option"
63 1.1 tsutsui ac_prev=
64 1.1 tsutsui continue
65 1.1 tsutsui fi
66 1.1 tsutsui
67 1.1 tsutsui case "$ac_option" in
68 1.1 tsutsui -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
69 1.1 tsutsui *) ac_optarg= ;;
70 1.1 tsutsui esac
71 1.1 tsutsui
72 1.1 tsutsui # Accept the important Cygnus configure options, so we can diagnose typos.
73 1.1 tsutsui
74 1.1 tsutsui case "$ac_option" in
75 1.1 tsutsui
76 1.1 tsutsui -bindir | --bindir | --bindi | --bind | --bin | --bi)
77 1.1 tsutsui ac_prev=bindir ;;
78 1.1 tsutsui -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
79 1.1 tsutsui bindir="$ac_optarg" ;;
80 1.1 tsutsui
81 1.1 tsutsui -build | --build | --buil | --bui | --bu)
82 1.1 tsutsui ac_prev=build ;;
83 1.1 tsutsui -build=* | --build=* | --buil=* | --bui=* | --bu=*)
84 1.1 tsutsui build="$ac_optarg" ;;
85 1.1 tsutsui
86 1.1 tsutsui -cache-file | --cache-file | --cache-fil | --cache-fi \
87 1.1 tsutsui | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
88 1.1 tsutsui ac_prev=cache_file ;;
89 1.1 tsutsui -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
90 1.1 tsutsui | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
91 1.1 tsutsui cache_file="$ac_optarg" ;;
92 1.1 tsutsui
93 1.1 tsutsui -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
94 1.1 tsutsui ac_prev=datadir ;;
95 1.1 tsutsui -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
96 1.1 tsutsui | --da=*)
97 1.1 tsutsui datadir="$ac_optarg" ;;
98 1.1 tsutsui
99 1.1 tsutsui -disable-* | --disable-*)
100 1.1 tsutsui ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
101 1.1 tsutsui # Reject names that are not valid shell variable names.
102 1.1 tsutsui if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
103 1.1 tsutsui { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
104 1.1 tsutsui fi
105 1.1 tsutsui ac_feature=`echo $ac_feature| sed 's/-/_/g'`
106 1.1 tsutsui eval "enable_${ac_feature}=no" ;;
107 1.1 tsutsui
108 1.1 tsutsui -enable-* | --enable-*)
109 1.1 tsutsui ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
110 1.1 tsutsui # Reject names that are not valid shell variable names.
111 1.1 tsutsui if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
112 1.1 tsutsui { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
113 1.1 tsutsui fi
114 1.1 tsutsui ac_feature=`echo $ac_feature| sed 's/-/_/g'`
115 1.1 tsutsui case "$ac_option" in
116 1.1 tsutsui *=*) ;;
117 1.1 tsutsui *) ac_optarg=yes ;;
118 1.1 tsutsui esac
119 1.1 tsutsui eval "enable_${ac_feature}='$ac_optarg'" ;;
120 1.1 tsutsui
121 1.1 tsutsui -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
122 1.1 tsutsui | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
123 1.1 tsutsui | --exec | --exe | --ex)
124 1.1 tsutsui ac_prev=exec_prefix ;;
125 1.1 tsutsui -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
126 1.1 tsutsui | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
127 1.1 tsutsui | --exec=* | --exe=* | --ex=*)
128 1.1 tsutsui exec_prefix="$ac_optarg" ;;
129 1.1 tsutsui
130 1.1 tsutsui -gas | --gas | --ga | --g)
131 1.1 tsutsui # Obsolete; use --with-gas.
132 1.1 tsutsui with_gas=yes ;;
133 1.1 tsutsui
134 1.1 tsutsui -help | --help | --hel | --he)
135 1.1 tsutsui # Omit some internal or obsolete options to make the list less imposing.
136 1.1 tsutsui # This message is too long to be a string in the A/UX 3.1 sh.
137 1.1 tsutsui cat << EOF
138 1.1 tsutsui Usage: configure [options] [host]
139 1.1 tsutsui Options: [defaults in brackets after descriptions]
140 1.1 tsutsui Configuration:
141 1.1 tsutsui --cache-file=FILE cache test results in FILE
142 1.1 tsutsui --help print this message
143 1.1 tsutsui --no-create do not create output files
144 1.1 tsutsui --quiet, --silent do not print \`checking...' messages
145 1.1 tsutsui --version print the version of autoconf that created configure
146 1.1 tsutsui Directory and file names:
147 1.1 tsutsui --prefix=PREFIX install architecture-independent files in PREFIX
148 1.1 tsutsui [$ac_default_prefix]
149 1.1 tsutsui --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
150 1.1 tsutsui [same as prefix]
151 1.1 tsutsui --bindir=DIR user executables in DIR [EPREFIX/bin]
152 1.1 tsutsui --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
153 1.1 tsutsui --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
154 1.1 tsutsui --datadir=DIR read-only architecture-independent data in DIR
155 1.1 tsutsui [PREFIX/share]
156 1.1 tsutsui --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
157 1.1 tsutsui --sharedstatedir=DIR modifiable architecture-independent data in DIR
158 1.1 tsutsui [PREFIX/com]
159 1.1 tsutsui --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
160 1.1 tsutsui --libdir=DIR object code libraries in DIR [EPREFIX/lib]
161 1.1 tsutsui --includedir=DIR C header files in DIR [PREFIX/include]
162 1.1 tsutsui --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
163 1.1 tsutsui --infodir=DIR info documentation in DIR [PREFIX/info]
164 1.1 tsutsui --mandir=DIR man documentation in DIR [PREFIX/man]
165 1.1 tsutsui --srcdir=DIR find the sources in DIR [configure dir or ..]
166 1.1 tsutsui --program-prefix=PREFIX prepend PREFIX to installed program names
167 1.1 tsutsui --program-suffix=SUFFIX append SUFFIX to installed program names
168 1.1 tsutsui --program-transform-name=PROGRAM
169 1.1 tsutsui run sed PROGRAM on installed program names
170 1.1 tsutsui EOF
171 1.1 tsutsui cat << EOF
172 1.1 tsutsui Host type:
173 1.1 tsutsui --build=BUILD configure for building on BUILD [BUILD=HOST]
174 1.1 tsutsui --host=HOST configure for HOST [guessed]
175 1.1 tsutsui --target=TARGET configure for TARGET [TARGET=HOST]
176 1.1 tsutsui Features and packages:
177 1.1 tsutsui --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
178 1.1 tsutsui --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
179 1.1 tsutsui --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
180 1.1 tsutsui --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
181 1.1 tsutsui --x-includes=DIR X include files are in DIR
182 1.1 tsutsui --x-libraries=DIR X library files are in DIR
183 1.1 tsutsui EOF
184 1.1 tsutsui if test -n "$ac_help"; then
185 1.1 tsutsui echo "--enable and --with options recognized:$ac_help"
186 1.1 tsutsui fi
187 1.1 tsutsui exit 0 ;;
188 1.1 tsutsui
189 1.1 tsutsui -host | --host | --hos | --ho)
190 1.1 tsutsui ac_prev=host ;;
191 1.1 tsutsui -host=* | --host=* | --hos=* | --ho=*)
192 1.1 tsutsui host="$ac_optarg" ;;
193 1.1 tsutsui
194 1.1 tsutsui -includedir | --includedir | --includedi | --included | --include \
195 1.1 tsutsui | --includ | --inclu | --incl | --inc)
196 1.1 tsutsui ac_prev=includedir ;;
197 1.1 tsutsui -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
198 1.1 tsutsui | --includ=* | --inclu=* | --incl=* | --inc=*)
199 1.1 tsutsui includedir="$ac_optarg" ;;
200 1.1 tsutsui
201 1.1 tsutsui -infodir | --infodir | --infodi | --infod | --info | --inf)
202 1.1 tsutsui ac_prev=infodir ;;
203 1.1 tsutsui -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
204 1.1 tsutsui infodir="$ac_optarg" ;;
205 1.1 tsutsui
206 1.1 tsutsui -libdir | --libdir | --libdi | --libd)
207 1.1 tsutsui ac_prev=libdir ;;
208 1.1 tsutsui -libdir=* | --libdir=* | --libdi=* | --libd=*)
209 1.1 tsutsui libdir="$ac_optarg" ;;
210 1.1 tsutsui
211 1.1 tsutsui -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
212 1.1 tsutsui | --libexe | --libex | --libe)
213 1.1 tsutsui ac_prev=libexecdir ;;
214 1.1 tsutsui -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
215 1.1 tsutsui | --libexe=* | --libex=* | --libe=*)
216 1.1 tsutsui libexecdir="$ac_optarg" ;;
217 1.1 tsutsui
218 1.1 tsutsui -localstatedir | --localstatedir | --localstatedi | --localstated \
219 1.1 tsutsui | --localstate | --localstat | --localsta | --localst \
220 1.1 tsutsui | --locals | --local | --loca | --loc | --lo)
221 1.1 tsutsui ac_prev=localstatedir ;;
222 1.1 tsutsui -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
223 1.1 tsutsui | --localstate=* | --localstat=* | --localsta=* | --localst=* \
224 1.1 tsutsui | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
225 1.1 tsutsui localstatedir="$ac_optarg" ;;
226 1.1 tsutsui
227 1.1 tsutsui -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
228 1.1 tsutsui ac_prev=mandir ;;
229 1.1 tsutsui -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
230 1.1 tsutsui mandir="$ac_optarg" ;;
231 1.1 tsutsui
232 1.1 tsutsui -nfp | --nfp | --nf)
233 1.1 tsutsui # Obsolete; use --without-fp.
234 1.1 tsutsui with_fp=no ;;
235 1.1 tsutsui
236 1.1 tsutsui -no-create | --no-create | --no-creat | --no-crea | --no-cre \
237 1.1 tsutsui | --no-cr | --no-c)
238 1.1 tsutsui no_create=yes ;;
239 1.1 tsutsui
240 1.1 tsutsui -no-recursion | --no-recursion | --no-recursio | --no-recursi \
241 1.1 tsutsui | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
242 1.1 tsutsui no_recursion=yes ;;
243 1.1 tsutsui
244 1.1 tsutsui -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
245 1.1 tsutsui | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
246 1.1 tsutsui | --oldin | --oldi | --old | --ol | --o)
247 1.1 tsutsui ac_prev=oldincludedir ;;
248 1.1 tsutsui -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
249 1.1 tsutsui | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
250 1.1 tsutsui | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
251 1.1 tsutsui oldincludedir="$ac_optarg" ;;
252 1.1 tsutsui
253 1.1 tsutsui -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
254 1.1 tsutsui ac_prev=prefix ;;
255 1.1 tsutsui -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
256 1.1 tsutsui prefix="$ac_optarg" ;;
257 1.1 tsutsui
258 1.1 tsutsui -program-prefix | --program-prefix | --program-prefi | --program-pref \
259 1.1 tsutsui | --program-pre | --program-pr | --program-p)
260 1.1 tsutsui ac_prev=program_prefix ;;
261 1.1 tsutsui -program-prefix=* | --program-prefix=* | --program-prefi=* \
262 1.1 tsutsui | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
263 1.1 tsutsui program_prefix="$ac_optarg" ;;
264 1.1 tsutsui
265 1.1 tsutsui -program-suffix | --program-suffix | --program-suffi | --program-suff \
266 1.1 tsutsui | --program-suf | --program-su | --program-s)
267 1.1 tsutsui ac_prev=program_suffix ;;
268 1.1 tsutsui -program-suffix=* | --program-suffix=* | --program-suffi=* \
269 1.1 tsutsui | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
270 1.1 tsutsui program_suffix="$ac_optarg" ;;
271 1.1 tsutsui
272 1.1 tsutsui -program-transform-name | --program-transform-name \
273 1.1 tsutsui | --program-transform-nam | --program-transform-na \
274 1.1 tsutsui | --program-transform-n | --program-transform- \
275 1.1 tsutsui | --program-transform | --program-transfor \
276 1.1 tsutsui | --program-transfo | --program-transf \
277 1.1 tsutsui | --program-trans | --program-tran \
278 1.1 tsutsui | --progr-tra | --program-tr | --program-t)
279 1.1 tsutsui ac_prev=program_transform_name ;;
280 1.1 tsutsui -program-transform-name=* | --program-transform-name=* \
281 1.1 tsutsui | --program-transform-nam=* | --program-transform-na=* \
282 1.1 tsutsui | --program-transform-n=* | --program-transform-=* \
283 1.1 tsutsui | --program-transform=* | --program-transfor=* \
284 1.1 tsutsui | --program-transfo=* | --program-transf=* \
285 1.1 tsutsui | --program-trans=* | --program-tran=* \
286 1.1 tsutsui | --progr-tra=* | --program-tr=* | --program-t=*)
287 1.1 tsutsui program_transform_name="$ac_optarg" ;;
288 1.1 tsutsui
289 1.1 tsutsui -q | -quiet | --quiet | --quie | --qui | --qu | --q \
290 1.1 tsutsui | -silent | --silent | --silen | --sile | --sil)
291 1.1 tsutsui silent=yes ;;
292 1.1 tsutsui
293 1.1 tsutsui -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
294 1.1 tsutsui ac_prev=sbindir ;;
295 1.1 tsutsui -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
296 1.1 tsutsui | --sbi=* | --sb=*)
297 1.1 tsutsui sbindir="$ac_optarg" ;;
298 1.1 tsutsui
299 1.1 tsutsui -sharedstatedir | --sharedstatedir | --sharedstatedi \
300 1.1 tsutsui | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
301 1.1 tsutsui | --sharedst | --shareds | --shared | --share | --shar \
302 1.1 tsutsui | --sha | --sh)
303 1.1 tsutsui ac_prev=sharedstatedir ;;
304 1.1 tsutsui -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
305 1.1 tsutsui | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
306 1.1 tsutsui | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
307 1.1 tsutsui | --sha=* | --sh=*)
308 1.1 tsutsui sharedstatedir="$ac_optarg" ;;
309 1.1 tsutsui
310 1.1 tsutsui -site | --site | --sit)
311 1.1 tsutsui ac_prev=site ;;
312 1.1 tsutsui -site=* | --site=* | --sit=*)
313 1.1 tsutsui site="$ac_optarg" ;;
314 1.1 tsutsui
315 1.1 tsutsui -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
316 1.1 tsutsui ac_prev=srcdir ;;
317 1.1 tsutsui -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
318 1.1 tsutsui srcdir="$ac_optarg" ;;
319 1.1 tsutsui
320 1.1 tsutsui -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
321 1.1 tsutsui | --syscon | --sysco | --sysc | --sys | --sy)
322 1.1 tsutsui ac_prev=sysconfdir ;;
323 1.1 tsutsui -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
324 1.1 tsutsui | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
325 1.1 tsutsui sysconfdir="$ac_optarg" ;;
326 1.1 tsutsui
327 1.1 tsutsui -target | --target | --targe | --targ | --tar | --ta | --t)
328 1.1 tsutsui ac_prev=target ;;
329 1.1 tsutsui -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
330 1.1 tsutsui target="$ac_optarg" ;;
331 1.1 tsutsui
332 1.1 tsutsui -v | -verbose | --verbose | --verbos | --verbo | --verb)
333 1.1 tsutsui verbose=yes ;;
334 1.1 tsutsui
335 1.1 tsutsui -version | --version | --versio | --versi | --vers)
336 1.2 tsutsui echo "configure generated by autoconf version 2.13"
337 1.1 tsutsui exit 0 ;;
338 1.1 tsutsui
339 1.1 tsutsui -with-* | --with-*)
340 1.1 tsutsui ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
341 1.1 tsutsui # Reject names that are not valid shell variable names.
342 1.1 tsutsui if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
343 1.1 tsutsui { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
344 1.1 tsutsui fi
345 1.1 tsutsui ac_package=`echo $ac_package| sed 's/-/_/g'`
346 1.1 tsutsui case "$ac_option" in
347 1.1 tsutsui *=*) ;;
348 1.1 tsutsui *) ac_optarg=yes ;;
349 1.1 tsutsui esac
350 1.1 tsutsui eval "with_${ac_package}='$ac_optarg'" ;;
351 1.1 tsutsui
352 1.1 tsutsui -without-* | --without-*)
353 1.1 tsutsui ac_package=`echo $ac_option|sed -e 's/-*without-//'`
354 1.1 tsutsui # Reject names that are not valid shell variable names.
355 1.1 tsutsui if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
356 1.1 tsutsui { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
357 1.1 tsutsui fi
358 1.1 tsutsui ac_package=`echo $ac_package| sed 's/-/_/g'`
359 1.1 tsutsui eval "with_${ac_package}=no" ;;
360 1.1 tsutsui
361 1.1 tsutsui --x)
362 1.1 tsutsui # Obsolete; use --with-x.
363 1.1 tsutsui with_x=yes ;;
364 1.1 tsutsui
365 1.1 tsutsui -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
366 1.1 tsutsui | --x-incl | --x-inc | --x-in | --x-i)
367 1.1 tsutsui ac_prev=x_includes ;;
368 1.1 tsutsui -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
369 1.1 tsutsui | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
370 1.1 tsutsui x_includes="$ac_optarg" ;;
371 1.1 tsutsui
372 1.1 tsutsui -x-libraries | --x-libraries | --x-librarie | --x-librari \
373 1.1 tsutsui | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
374 1.1 tsutsui ac_prev=x_libraries ;;
375 1.1 tsutsui -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
376 1.1 tsutsui | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
377 1.1 tsutsui x_libraries="$ac_optarg" ;;
378 1.1 tsutsui
379 1.1 tsutsui -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
380 1.1 tsutsui ;;
381 1.1 tsutsui
382 1.1 tsutsui *)
383 1.1 tsutsui if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
384 1.1 tsutsui echo "configure: warning: $ac_option: invalid host type" 1>&2
385 1.1 tsutsui fi
386 1.1 tsutsui if test "x$nonopt" != xNONE; then
387 1.1 tsutsui { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
388 1.1 tsutsui fi
389 1.1 tsutsui nonopt="$ac_option"
390 1.1 tsutsui ;;
391 1.1 tsutsui
392 1.1 tsutsui esac
393 1.1 tsutsui done
394 1.1 tsutsui
395 1.1 tsutsui if test -n "$ac_prev"; then
396 1.1 tsutsui { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
397 1.1 tsutsui fi
398 1.1 tsutsui
399 1.1 tsutsui trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
400 1.1 tsutsui
401 1.1 tsutsui # File descriptor usage:
402 1.1 tsutsui # 0 standard input
403 1.1 tsutsui # 1 file creation
404 1.1 tsutsui # 2 errors and warnings
405 1.1 tsutsui # 3 some systems may open it to /dev/tty
406 1.1 tsutsui # 4 used on the Kubota Titan
407 1.1 tsutsui # 6 checking for... messages and results
408 1.1 tsutsui # 5 compiler messages saved in config.log
409 1.1 tsutsui if test "$silent" = yes; then
410 1.1 tsutsui exec 6>/dev/null
411 1.1 tsutsui else
412 1.1 tsutsui exec 6>&1
413 1.1 tsutsui fi
414 1.1 tsutsui exec 5>./config.log
415 1.1 tsutsui
416 1.1 tsutsui echo "\
417 1.1 tsutsui This file contains any messages produced by compilers while
418 1.1 tsutsui running configure, to aid debugging if configure makes a mistake.
419 1.1 tsutsui " 1>&5
420 1.1 tsutsui
421 1.1 tsutsui # Strip out --no-create and --no-recursion so they do not pile up.
422 1.1 tsutsui # Also quote any args containing shell metacharacters.
423 1.1 tsutsui ac_configure_args=
424 1.1 tsutsui for ac_arg
425 1.1 tsutsui do
426 1.1 tsutsui case "$ac_arg" in
427 1.1 tsutsui -no-create | --no-create | --no-creat | --no-crea | --no-cre \
428 1.1 tsutsui | --no-cr | --no-c) ;;
429 1.1 tsutsui -no-recursion | --no-recursion | --no-recursio | --no-recursi \
430 1.1 tsutsui | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
431 1.1 tsutsui *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
432 1.1 tsutsui ac_configure_args="$ac_configure_args '$ac_arg'" ;;
433 1.1 tsutsui *) ac_configure_args="$ac_configure_args $ac_arg" ;;
434 1.1 tsutsui esac
435 1.1 tsutsui done
436 1.1 tsutsui
437 1.1 tsutsui # NLS nuisances.
438 1.1 tsutsui # Only set these to C if already set. These must not be set unconditionally
439 1.1 tsutsui # because not all systems understand e.g. LANG=C (notably SCO).
440 1.1 tsutsui # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
441 1.1 tsutsui # Non-C LC_CTYPE values break the ctype check.
442 1.1 tsutsui if test "${LANG+set}" = set; then LANG=C; export LANG; fi
443 1.1 tsutsui if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
444 1.1 tsutsui if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
445 1.1 tsutsui if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
446 1.1 tsutsui
447 1.1 tsutsui # confdefs.h avoids OS command line length limits that DEFS can exceed.
448 1.1 tsutsui rm -rf conftest* confdefs.h
449 1.1 tsutsui # AIX cpp loses on an empty file, so make sure it contains at least a newline.
450 1.1 tsutsui echo > confdefs.h
451 1.1 tsutsui
452 1.1 tsutsui # A filename unique to this package, relative to the directory that
453 1.1 tsutsui # configure is in, which we can look for to find out if srcdir is correct.
454 1.1 tsutsui ac_unique_file=mkisofs.c
455 1.1 tsutsui
456 1.1 tsutsui # Find the source files, if location was not specified.
457 1.1 tsutsui if test -z "$srcdir"; then
458 1.1 tsutsui ac_srcdir_defaulted=yes
459 1.1 tsutsui # Try the directory containing this script, then its parent.
460 1.1 tsutsui ac_prog=$0
461 1.1 tsutsui ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
462 1.1 tsutsui test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
463 1.1 tsutsui srcdir=$ac_confdir
464 1.1 tsutsui if test ! -r $srcdir/$ac_unique_file; then
465 1.1 tsutsui srcdir=..
466 1.1 tsutsui fi
467 1.1 tsutsui else
468 1.1 tsutsui ac_srcdir_defaulted=no
469 1.1 tsutsui fi
470 1.1 tsutsui if test ! -r $srcdir/$ac_unique_file; then
471 1.1 tsutsui if test "$ac_srcdir_defaulted" = yes; then
472 1.1 tsutsui { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
473 1.1 tsutsui else
474 1.1 tsutsui { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
475 1.1 tsutsui fi
476 1.1 tsutsui fi
477 1.1 tsutsui srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
478 1.1 tsutsui
479 1.1 tsutsui # Prefer explicitly selected file to automatically selected ones.
480 1.1 tsutsui if test -z "$CONFIG_SITE"; then
481 1.1 tsutsui if test "x$prefix" != xNONE; then
482 1.1 tsutsui CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
483 1.1 tsutsui else
484 1.1 tsutsui CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
485 1.1 tsutsui fi
486 1.1 tsutsui fi
487 1.1 tsutsui for ac_site_file in $CONFIG_SITE; do
488 1.1 tsutsui if test -r "$ac_site_file"; then
489 1.1 tsutsui echo "loading site script $ac_site_file"
490 1.1 tsutsui . "$ac_site_file"
491 1.1 tsutsui fi
492 1.1 tsutsui done
493 1.1 tsutsui
494 1.1 tsutsui if test -r "$cache_file"; then
495 1.1 tsutsui echo "loading cache $cache_file"
496 1.1 tsutsui . $cache_file
497 1.1 tsutsui else
498 1.1 tsutsui echo "creating cache $cache_file"
499 1.1 tsutsui > $cache_file
500 1.1 tsutsui fi
501 1.1 tsutsui
502 1.1 tsutsui ac_ext=c
503 1.1 tsutsui # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
504 1.1 tsutsui ac_cpp='$CPP $CPPFLAGS'
505 1.1 tsutsui ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
506 1.2 tsutsui ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
507 1.1 tsutsui cross_compiling=$ac_cv_prog_cc_cross
508 1.1 tsutsui
509 1.2 tsutsui ac_exeext=
510 1.2 tsutsui ac_objext=o
511 1.1 tsutsui if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
512 1.1 tsutsui # Stardent Vistra SVR4 grep lacks -e, says ghazi (at] caip.rutgers.edu.
513 1.1 tsutsui if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
514 1.1 tsutsui ac_n= ac_c='
515 1.1 tsutsui ' ac_t=' '
516 1.1 tsutsui else
517 1.1 tsutsui ac_n=-n ac_c= ac_t=
518 1.1 tsutsui fi
519 1.1 tsutsui else
520 1.1 tsutsui ac_n= ac_c='\c' ac_t=
521 1.1 tsutsui fi
522 1.1 tsutsui
523 1.1 tsutsui
524 1.1 tsutsui
525 1.1 tsutsui # Extract the first word of "gcc", so it can be a program name with args.
526 1.1 tsutsui set dummy gcc; ac_word=$2
527 1.1 tsutsui echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
528 1.2 tsutsui echo "configure:529: checking for $ac_word" >&5
529 1.1 tsutsui if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
530 1.1 tsutsui echo $ac_n "(cached) $ac_c" 1>&6
531 1.1 tsutsui else
532 1.1 tsutsui if test -n "$CC"; then
533 1.1 tsutsui ac_cv_prog_CC="$CC" # Let the user override the test.
534 1.1 tsutsui else
535 1.2 tsutsui IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
536 1.2 tsutsui ac_dummy="$PATH"
537 1.2 tsutsui for ac_dir in $ac_dummy; do
538 1.1 tsutsui test -z "$ac_dir" && ac_dir=.
539 1.1 tsutsui if test -f $ac_dir/$ac_word; then
540 1.1 tsutsui ac_cv_prog_CC="gcc"
541 1.1 tsutsui break
542 1.1 tsutsui fi
543 1.1 tsutsui done
544 1.1 tsutsui IFS="$ac_save_ifs"
545 1.1 tsutsui fi
546 1.1 tsutsui fi
547 1.1 tsutsui CC="$ac_cv_prog_CC"
548 1.1 tsutsui if test -n "$CC"; then
549 1.1 tsutsui echo "$ac_t""$CC" 1>&6
550 1.1 tsutsui else
551 1.1 tsutsui echo "$ac_t""no" 1>&6
552 1.1 tsutsui fi
553 1.1 tsutsui
554 1.1 tsutsui if test -z "$CC"; then
555 1.1 tsutsui # Extract the first word of "cc", so it can be a program name with args.
556 1.1 tsutsui set dummy cc; ac_word=$2
557 1.1 tsutsui echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
558 1.2 tsutsui echo "configure:559: checking for $ac_word" >&5
559 1.1 tsutsui if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
560 1.1 tsutsui echo $ac_n "(cached) $ac_c" 1>&6
561 1.1 tsutsui else
562 1.1 tsutsui if test -n "$CC"; then
563 1.1 tsutsui ac_cv_prog_CC="$CC" # Let the user override the test.
564 1.1 tsutsui else
565 1.2 tsutsui IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
566 1.1 tsutsui ac_prog_rejected=no
567 1.2 tsutsui ac_dummy="$PATH"
568 1.2 tsutsui for ac_dir in $ac_dummy; do
569 1.1 tsutsui test -z "$ac_dir" && ac_dir=.
570 1.1 tsutsui if test -f $ac_dir/$ac_word; then
571 1.1 tsutsui if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
572 1.1 tsutsui ac_prog_rejected=yes
573 1.1 tsutsui continue
574 1.1 tsutsui fi
575 1.1 tsutsui ac_cv_prog_CC="cc"
576 1.1 tsutsui break
577 1.1 tsutsui fi
578 1.1 tsutsui done
579 1.1 tsutsui IFS="$ac_save_ifs"
580 1.1 tsutsui if test $ac_prog_rejected = yes; then
581 1.1 tsutsui # We found a bogon in the path, so make sure we never use it.
582 1.1 tsutsui set dummy $ac_cv_prog_CC
583 1.1 tsutsui shift
584 1.1 tsutsui if test $# -gt 0; then
585 1.1 tsutsui # We chose a different compiler from the bogus one.
586 1.1 tsutsui # However, it has the same basename, so the bogon will be chosen
587 1.1 tsutsui # first if we set CC to just the basename; use the full file name.
588 1.1 tsutsui shift
589 1.1 tsutsui set dummy "$ac_dir/$ac_word" "$@"
590 1.1 tsutsui shift
591 1.1 tsutsui ac_cv_prog_CC="$@"
592 1.1 tsutsui fi
593 1.1 tsutsui fi
594 1.1 tsutsui fi
595 1.1 tsutsui fi
596 1.1 tsutsui CC="$ac_cv_prog_CC"
597 1.1 tsutsui if test -n "$CC"; then
598 1.1 tsutsui echo "$ac_t""$CC" 1>&6
599 1.1 tsutsui else
600 1.1 tsutsui echo "$ac_t""no" 1>&6
601 1.1 tsutsui fi
602 1.1 tsutsui
603 1.2 tsutsui if test -z "$CC"; then
604 1.2 tsutsui case "`uname -s`" in
605 1.2 tsutsui *win32* | *WIN32*)
606 1.2 tsutsui # Extract the first word of "cl", so it can be a program name with args.
607 1.2 tsutsui set dummy cl; ac_word=$2
608 1.2 tsutsui echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
609 1.2 tsutsui echo "configure:610: checking for $ac_word" >&5
610 1.2 tsutsui if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
611 1.2 tsutsui echo $ac_n "(cached) $ac_c" 1>&6
612 1.2 tsutsui else
613 1.2 tsutsui if test -n "$CC"; then
614 1.2 tsutsui ac_cv_prog_CC="$CC" # Let the user override the test.
615 1.2 tsutsui else
616 1.2 tsutsui IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
617 1.2 tsutsui ac_dummy="$PATH"
618 1.2 tsutsui for ac_dir in $ac_dummy; do
619 1.2 tsutsui test -z "$ac_dir" && ac_dir=.
620 1.2 tsutsui if test -f $ac_dir/$ac_word; then
621 1.2 tsutsui ac_cv_prog_CC="cl"
622 1.2 tsutsui break
623 1.2 tsutsui fi
624 1.2 tsutsui done
625 1.2 tsutsui IFS="$ac_save_ifs"
626 1.2 tsutsui fi
627 1.2 tsutsui fi
628 1.2 tsutsui CC="$ac_cv_prog_CC"
629 1.2 tsutsui if test -n "$CC"; then
630 1.2 tsutsui echo "$ac_t""$CC" 1>&6
631 1.2 tsutsui else
632 1.2 tsutsui echo "$ac_t""no" 1>&6
633 1.2 tsutsui fi
634 1.2 tsutsui ;;
635 1.2 tsutsui esac
636 1.2 tsutsui fi
637 1.1 tsutsui test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
638 1.1 tsutsui fi
639 1.1 tsutsui
640 1.1 tsutsui echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
641 1.2 tsutsui echo "configure:642: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
642 1.1 tsutsui
643 1.1 tsutsui ac_ext=c
644 1.1 tsutsui # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
645 1.1 tsutsui ac_cpp='$CPP $CPPFLAGS'
646 1.1 tsutsui ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
647 1.2 tsutsui ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
648 1.1 tsutsui cross_compiling=$ac_cv_prog_cc_cross
649 1.1 tsutsui
650 1.2 tsutsui cat > conftest.$ac_ext << EOF
651 1.2 tsutsui
652 1.2 tsutsui #line 653 "configure"
653 1.1 tsutsui #include "confdefs.h"
654 1.2 tsutsui
655 1.1 tsutsui main(){return(0);}
656 1.1 tsutsui EOF
657 1.2 tsutsui if { (eval echo configure:658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
658 1.1 tsutsui ac_cv_prog_cc_works=yes
659 1.1 tsutsui # If we can't run a trivial program, we are probably using a cross compiler.
660 1.1 tsutsui if (./conftest; exit) 2>/dev/null; then
661 1.1 tsutsui ac_cv_prog_cc_cross=no
662 1.1 tsutsui else
663 1.1 tsutsui ac_cv_prog_cc_cross=yes
664 1.1 tsutsui fi
665 1.1 tsutsui else
666 1.1 tsutsui echo "configure: failed program was:" >&5
667 1.1 tsutsui cat conftest.$ac_ext >&5
668 1.1 tsutsui ac_cv_prog_cc_works=no
669 1.1 tsutsui fi
670 1.1 tsutsui rm -fr conftest*
671 1.2 tsutsui ac_ext=c
672 1.2 tsutsui # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
673 1.2 tsutsui ac_cpp='$CPP $CPPFLAGS'
674 1.2 tsutsui ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
675 1.2 tsutsui ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
676 1.2 tsutsui cross_compiling=$ac_cv_prog_cc_cross
677 1.1 tsutsui
678 1.1 tsutsui echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
679 1.1 tsutsui if test $ac_cv_prog_cc_works = no; then
680 1.1 tsutsui { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
681 1.1 tsutsui fi
682 1.1 tsutsui echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
683 1.2 tsutsui echo "configure:684: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
684 1.1 tsutsui echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
685 1.1 tsutsui cross_compiling=$ac_cv_prog_cc_cross
686 1.1 tsutsui
687 1.1 tsutsui echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
688 1.2 tsutsui echo "configure:689: checking whether we are using GNU C" >&5
689 1.1 tsutsui if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
690 1.1 tsutsui echo $ac_n "(cached) $ac_c" 1>&6
691 1.1 tsutsui else
692 1.1 tsutsui cat > conftest.c <<EOF
693 1.1 tsutsui #ifdef __GNUC__
694 1.1 tsutsui yes;
695 1.1 tsutsui #endif
696 1.1 tsutsui EOF
697 1.2 tsutsui if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:698: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
698 1.1 tsutsui ac_cv_prog_gcc=yes
699 1.1 tsutsui else
700 1.1 tsutsui ac_cv_prog_gcc=no
701 1.1 tsutsui fi
702 1.1 tsutsui fi
703 1.1 tsutsui
704 1.1 tsutsui echo "$ac_t""$ac_cv_prog_gcc" 1>&6
705 1.1 tsutsui
706 1.1 tsutsui if test $ac_cv_prog_gcc = yes; then
707 1.1 tsutsui GCC=yes
708 1.2 tsutsui else
709 1.2 tsutsui GCC=
710 1.2 tsutsui fi
711 1.2 tsutsui
712 1.2 tsutsui ac_test_CFLAGS="${CFLAGS+set}"
713 1.2 tsutsui ac_save_CFLAGS="$CFLAGS"
714 1.2 tsutsui CFLAGS=
715 1.2 tsutsui echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
716 1.2 tsutsui echo "configure:717: checking whether ${CC-cc} accepts -g" >&5
717 1.1 tsutsui if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
718 1.1 tsutsui echo $ac_n "(cached) $ac_c" 1>&6
719 1.1 tsutsui else
720 1.1 tsutsui echo 'void f(){}' > conftest.c
721 1.1 tsutsui if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
722 1.1 tsutsui ac_cv_prog_cc_g=yes
723 1.1 tsutsui else
724 1.1 tsutsui ac_cv_prog_cc_g=no
725 1.1 tsutsui fi
726 1.1 tsutsui rm -f conftest*
727 1.1 tsutsui
728 1.1 tsutsui fi
729 1.1 tsutsui
730 1.1 tsutsui echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
731 1.2 tsutsui if test "$ac_test_CFLAGS" = set; then
732 1.2 tsutsui CFLAGS="$ac_save_CFLAGS"
733 1.2 tsutsui elif test $ac_cv_prog_cc_g = yes; then
734 1.2 tsutsui if test "$GCC" = yes; then
735 1.1 tsutsui CFLAGS="-g -O2"
736 1.1 tsutsui else
737 1.2 tsutsui CFLAGS="-g"
738 1.2 tsutsui fi
739 1.2 tsutsui else
740 1.2 tsutsui if test "$GCC" = yes; then
741 1.1 tsutsui CFLAGS="-O2"
742 1.2 tsutsui else
743 1.2 tsutsui CFLAGS=
744 1.1 tsutsui fi
745 1.1 tsutsui fi
746 1.1 tsutsui
747 1.1 tsutsui echo $ac_n "checking for working const""... $ac_c" 1>&6
748 1.2 tsutsui echo "configure:749: checking for working const" >&5
749 1.1 tsutsui if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
750 1.1 tsutsui echo $ac_n "(cached) $ac_c" 1>&6
751 1.1 tsutsui else
752 1.1 tsutsui cat > conftest.$ac_ext <<EOF
753 1.2 tsutsui #line 754 "configure"
754 1.1 tsutsui #include "confdefs.h"
755 1.1 tsutsui
756 1.1 tsutsui int main() {
757 1.1 tsutsui
758 1.1 tsutsui /* Ultrix mips cc rejects this. */
759 1.1 tsutsui typedef int charset[2]; const charset x;
760 1.1 tsutsui /* SunOS 4.1.1 cc rejects this. */
761 1.1 tsutsui char const *const *ccp;
762 1.1 tsutsui char **p;
763 1.1 tsutsui /* NEC SVR4.0.2 mips cc rejects this. */
764 1.1 tsutsui struct point {int x, y;};
765 1.1 tsutsui static struct point const zero = {0,0};
766 1.1 tsutsui /* AIX XL C 1.02.0.0 rejects this.
767 1.1 tsutsui It does not let you subtract one const X* pointer from another in an arm
768 1.1 tsutsui of an if-expression whose if-part is not a constant expression */
769 1.1 tsutsui const char *g = "string";
770 1.1 tsutsui ccp = &g + (g ? g-g : 0);
771 1.1 tsutsui /* HPUX 7.0 cc rejects these. */
772 1.1 tsutsui ++ccp;
773 1.1 tsutsui p = (char**) ccp;
774 1.1 tsutsui ccp = (char const *const *) p;
775 1.1 tsutsui { /* SCO 3.2v4 cc rejects this. */
776 1.1 tsutsui char *t;
777 1.1 tsutsui char const *s = 0 ? (char *) 0 : (char const *) 0;
778 1.1 tsutsui
779 1.1 tsutsui *t++ = 0;
780 1.1 tsutsui }
781 1.1 tsutsui { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
782 1.1 tsutsui int x[] = {25, 17};
783 1.1 tsutsui const int *foo = &x[0];
784 1.1 tsutsui ++foo;
785 1.1 tsutsui }
786 1.1 tsutsui { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
787 1.1 tsutsui typedef const int *iptr;
788 1.1 tsutsui iptr p = 0;
789 1.1 tsutsui ++p;
790 1.1 tsutsui }
791 1.1 tsutsui { /* AIX XL C 1.02.0.0 rejects this saying
792 1.1 tsutsui "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
793 1.1 tsutsui struct s { int j; const int *ap[3]; };
794 1.1 tsutsui struct s *b; b->j = 5;
795 1.1 tsutsui }
796 1.1 tsutsui { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
797 1.1 tsutsui const int foo = 10;
798 1.1 tsutsui }
799 1.1 tsutsui
800 1.1 tsutsui ; return 0; }
801 1.1 tsutsui EOF
802 1.2 tsutsui if { (eval echo configure:803: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
803 1.1 tsutsui rm -rf conftest*
804 1.1 tsutsui ac_cv_c_const=yes
805 1.1 tsutsui else
806 1.1 tsutsui echo "configure: failed program was:" >&5
807 1.1 tsutsui cat conftest.$ac_ext >&5
808 1.1 tsutsui rm -rf conftest*
809 1.1 tsutsui ac_cv_c_const=no
810 1.1 tsutsui fi
811 1.1 tsutsui rm -f conftest*
812 1.1 tsutsui fi
813 1.1 tsutsui
814 1.1 tsutsui echo "$ac_t""$ac_cv_c_const" 1>&6
815 1.1 tsutsui if test $ac_cv_c_const = no; then
816 1.1 tsutsui cat >> confdefs.h <<\EOF
817 1.1 tsutsui #define const
818 1.1 tsutsui EOF
819 1.1 tsutsui
820 1.1 tsutsui fi
821 1.1 tsutsui
822 1.1 tsutsui echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
823 1.2 tsutsui echo "configure:824: checking how to run the C preprocessor" >&5
824 1.1 tsutsui # On Suns, sometimes $CPP names a directory.
825 1.1 tsutsui if test -n "$CPP" && test -d "$CPP"; then
826 1.1 tsutsui CPP=
827 1.1 tsutsui fi
828 1.1 tsutsui if test -z "$CPP"; then
829 1.1 tsutsui if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
830 1.1 tsutsui echo $ac_n "(cached) $ac_c" 1>&6
831 1.1 tsutsui else
832 1.1 tsutsui # This must be in double quotes, not single quotes, because CPP may get
833 1.1 tsutsui # substituted into the Makefile and "${CC-cc}" will confuse make.
834 1.1 tsutsui CPP="${CC-cc} -E"
835 1.1 tsutsui # On the NeXT, cc -E runs the code through the compiler's parser,
836 1.1 tsutsui # not just through cpp.
837 1.1 tsutsui cat > conftest.$ac_ext <<EOF
838 1.2 tsutsui #line 839 "configure"
839 1.1 tsutsui #include "confdefs.h"
840 1.1 tsutsui #include <assert.h>
841 1.1 tsutsui Syntax Error
842 1.1 tsutsui EOF
843 1.1 tsutsui ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
844 1.2 tsutsui { (eval echo configure:845: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
845 1.2 tsutsui ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
846 1.1 tsutsui if test -z "$ac_err"; then
847 1.1 tsutsui :
848 1.1 tsutsui else
849 1.1 tsutsui echo "$ac_err" >&5
850 1.1 tsutsui echo "configure: failed program was:" >&5
851 1.1 tsutsui cat conftest.$ac_ext >&5
852 1.1 tsutsui rm -rf conftest*
853 1.1 tsutsui CPP="${CC-cc} -E -traditional-cpp"
854 1.1 tsutsui cat > conftest.$ac_ext <<EOF
855 1.2 tsutsui #line 856 "configure"
856 1.1 tsutsui #include "confdefs.h"
857 1.1 tsutsui #include <assert.h>
858 1.1 tsutsui Syntax Error
859 1.1 tsutsui EOF
860 1.1 tsutsui ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
861 1.2 tsutsui { (eval echo configure:862: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
862 1.2 tsutsui ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
863 1.2 tsutsui if test -z "$ac_err"; then
864 1.2 tsutsui :
865 1.2 tsutsui else
866 1.2 tsutsui echo "$ac_err" >&5
867 1.2 tsutsui echo "configure: failed program was:" >&5
868 1.2 tsutsui cat conftest.$ac_ext >&5
869 1.2 tsutsui rm -rf conftest*
870 1.2 tsutsui CPP="${CC-cc} -nologo -E"
871 1.2 tsutsui cat > conftest.$ac_ext <<EOF
872 1.2 tsutsui #line 873 "configure"
873 1.2 tsutsui #include "confdefs.h"
874 1.2 tsutsui #include <assert.h>
875 1.2 tsutsui Syntax Error
876 1.2 tsutsui EOF
877 1.2 tsutsui ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
878 1.2 tsutsui { (eval echo configure:879: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
879 1.2 tsutsui ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
880 1.1 tsutsui if test -z "$ac_err"; then
881 1.1 tsutsui :
882 1.1 tsutsui else
883 1.1 tsutsui echo "$ac_err" >&5
884 1.1 tsutsui echo "configure: failed program was:" >&5
885 1.1 tsutsui cat conftest.$ac_ext >&5
886 1.1 tsutsui rm -rf conftest*
887 1.1 tsutsui CPP=/lib/cpp
888 1.1 tsutsui fi
889 1.1 tsutsui rm -f conftest*
890 1.1 tsutsui fi
891 1.1 tsutsui rm -f conftest*
892 1.2 tsutsui fi
893 1.2 tsutsui rm -f conftest*
894 1.1 tsutsui ac_cv_prog_CPP="$CPP"
895 1.1 tsutsui fi
896 1.1 tsutsui CPP="$ac_cv_prog_CPP"
897 1.1 tsutsui else
898 1.1 tsutsui ac_cv_prog_CPP="$CPP"
899 1.1 tsutsui fi
900 1.1 tsutsui echo "$ac_t""$CPP" 1>&6
901 1.1 tsutsui
902 1.1 tsutsui echo $ac_n "checking whether sys/types.h defines makedev""... $ac_c" 1>&6
903 1.2 tsutsui echo "configure:904: checking whether sys/types.h defines makedev" >&5
904 1.1 tsutsui if eval "test \"`echo '$''{'ac_cv_header_sys_types_h_makedev'+set}'`\" = set"; then
905 1.1 tsutsui echo $ac_n "(cached) $ac_c" 1>&6
906 1.1 tsutsui else
907 1.1 tsutsui cat > conftest.$ac_ext <<EOF
908 1.2 tsutsui #line 909 "configure"
909 1.1 tsutsui #include "confdefs.h"
910 1.1 tsutsui #include <sys/types.h>
911 1.1 tsutsui int main() {
912 1.1 tsutsui return makedev(0, 0);
913 1.1 tsutsui ; return 0; }
914 1.1 tsutsui EOF
915 1.2 tsutsui if { (eval echo configure:916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
916 1.1 tsutsui rm -rf conftest*
917 1.1 tsutsui ac_cv_header_sys_types_h_makedev=yes
918 1.1 tsutsui else
919 1.1 tsutsui echo "configure: failed program was:" >&5
920 1.1 tsutsui cat conftest.$ac_ext >&5
921 1.1 tsutsui rm -rf conftest*
922 1.1 tsutsui ac_cv_header_sys_types_h_makedev=no
923 1.1 tsutsui fi
924 1.1 tsutsui rm -f conftest*
925 1.1 tsutsui
926 1.1 tsutsui fi
927 1.1 tsutsui
928 1.1 tsutsui echo "$ac_t""$ac_cv_header_sys_types_h_makedev" 1>&6
929 1.1 tsutsui
930 1.1 tsutsui if test $ac_cv_header_sys_types_h_makedev = no; then
931 1.1 tsutsui ac_safe=`echo "sys/mkdev.h" | sed 'y%./+-%__p_%'`
932 1.1 tsutsui echo $ac_n "checking for sys/mkdev.h""... $ac_c" 1>&6
933 1.2 tsutsui echo "configure:934: checking for sys/mkdev.h" >&5
934 1.1 tsutsui if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
935 1.1 tsutsui echo $ac_n "(cached) $ac_c" 1>&6
936 1.1 tsutsui else
937 1.1 tsutsui cat > conftest.$ac_ext <<EOF
938 1.2 tsutsui #line 939 "configure"
939 1.1 tsutsui #include "confdefs.h"
940 1.1 tsutsui #include <sys/mkdev.h>
941 1.1 tsutsui EOF
942 1.1 tsutsui ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
943 1.2 tsutsui { (eval echo configure:944: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
944 1.2 tsutsui ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
945 1.1 tsutsui if test -z "$ac_err"; then
946 1.1 tsutsui rm -rf conftest*
947 1.1 tsutsui eval "ac_cv_header_$ac_safe=yes"
948 1.1 tsutsui else
949 1.1 tsutsui echo "$ac_err" >&5
950 1.1 tsutsui echo "configure: failed program was:" >&5
951 1.1 tsutsui cat conftest.$ac_ext >&5
952 1.1 tsutsui rm -rf conftest*
953 1.1 tsutsui eval "ac_cv_header_$ac_safe=no"
954 1.1 tsutsui fi
955 1.1 tsutsui rm -f conftest*
956 1.1 tsutsui fi
957 1.1 tsutsui if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
958 1.1 tsutsui echo "$ac_t""yes" 1>&6
959 1.1 tsutsui cat >> confdefs.h <<\EOF
960 1.1 tsutsui #define MAJOR_IN_MKDEV 1
961 1.1 tsutsui EOF
962 1.1 tsutsui
963 1.1 tsutsui else
964 1.1 tsutsui echo "$ac_t""no" 1>&6
965 1.1 tsutsui fi
966 1.1 tsutsui
967 1.1 tsutsui
968 1.1 tsutsui if test $ac_cv_header_sys_mkdev_h = no; then
969 1.1 tsutsui ac_safe=`echo "sys/sysmacros.h" | sed 'y%./+-%__p_%'`
970 1.1 tsutsui echo $ac_n "checking for sys/sysmacros.h""... $ac_c" 1>&6
971 1.2 tsutsui echo "configure:972: checking for sys/sysmacros.h" >&5
972 1.1 tsutsui if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
973 1.1 tsutsui echo $ac_n "(cached) $ac_c" 1>&6
974 1.1 tsutsui else
975 1.1 tsutsui cat > conftest.$ac_ext <<EOF
976 1.2 tsutsui #line 977 "configure"
977 1.1 tsutsui #include "confdefs.h"
978 1.1 tsutsui #include <sys/sysmacros.h>
979 1.1 tsutsui EOF
980 1.1 tsutsui ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
981 1.2 tsutsui { (eval echo configure:982: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
982 1.2 tsutsui ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
983 1.1 tsutsui if test -z "$ac_err"; then
984 1.1 tsutsui rm -rf conftest*
985 1.1 tsutsui eval "ac_cv_header_$ac_safe=yes"
986 1.1 tsutsui else
987 1.1 tsutsui echo "$ac_err" >&5
988 1.1 tsutsui echo "configure: failed program was:" >&5
989 1.1 tsutsui cat conftest.$ac_ext >&5
990 1.1 tsutsui rm -rf conftest*
991 1.1 tsutsui eval "ac_cv_header_$ac_safe=no"
992 1.1 tsutsui fi
993 1.1 tsutsui rm -f conftest*
994 1.1 tsutsui fi
995 1.1 tsutsui if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
996 1.1 tsutsui echo "$ac_t""yes" 1>&6
997 1.1 tsutsui cat >> confdefs.h <<\EOF
998 1.1 tsutsui #define MAJOR_IN_SYSMACROS 1
999 1.1 tsutsui EOF
1000 1.1 tsutsui
1001 1.1 tsutsui else
1002 1.1 tsutsui echo "$ac_t""no" 1>&6
1003 1.1 tsutsui fi
1004 1.1 tsutsui
1005 1.1 tsutsui fi
1006 1.1 tsutsui fi
1007 1.1 tsutsui
1008 1.1 tsutsui ac_header_dirent=no
1009 1.1 tsutsui for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
1010 1.1 tsutsui do
1011 1.1 tsutsui ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1012 1.1 tsutsui echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
1013 1.2 tsutsui echo "configure:1014: checking for $ac_hdr that defines DIR" >&5
1014 1.1 tsutsui if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
1015 1.1 tsutsui echo $ac_n "(cached) $ac_c" 1>&6
1016 1.1 tsutsui else
1017 1.1 tsutsui cat > conftest.$ac_ext <<EOF
1018 1.2 tsutsui #line 1019 "configure"
1019 1.1 tsutsui #include "confdefs.h"
1020 1.1 tsutsui #include <sys/types.h>
1021 1.1 tsutsui #include <$ac_hdr>
1022 1.1 tsutsui int main() {
1023 1.1 tsutsui DIR *dirp = 0;
1024 1.1 tsutsui ; return 0; }
1025 1.1 tsutsui EOF
1026 1.2 tsutsui if { (eval echo configure:1027: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1027 1.1 tsutsui rm -rf conftest*
1028 1.1 tsutsui eval "ac_cv_header_dirent_$ac_safe=yes"
1029 1.1 tsutsui else
1030 1.1 tsutsui echo "configure: failed program was:" >&5
1031 1.1 tsutsui cat conftest.$ac_ext >&5
1032 1.1 tsutsui rm -rf conftest*
1033 1.1 tsutsui eval "ac_cv_header_dirent_$ac_safe=no"
1034 1.1 tsutsui fi
1035 1.1 tsutsui rm -f conftest*
1036 1.1 tsutsui fi
1037 1.1 tsutsui if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
1038 1.1 tsutsui echo "$ac_t""yes" 1>&6
1039 1.1 tsutsui ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1040 1.1 tsutsui cat >> confdefs.h <<EOF
1041 1.1 tsutsui #define $ac_tr_hdr 1
1042 1.1 tsutsui EOF
1043 1.1 tsutsui ac_header_dirent=$ac_hdr; break
1044 1.1 tsutsui else
1045 1.1 tsutsui echo "$ac_t""no" 1>&6
1046 1.1 tsutsui fi
1047 1.1 tsutsui done
1048 1.1 tsutsui # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
1049 1.1 tsutsui if test $ac_header_dirent = dirent.h; then
1050 1.1 tsutsui echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
1051 1.2 tsutsui echo "configure:1052: checking for opendir in -ldir" >&5
1052 1.1 tsutsui ac_lib_var=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
1053 1.1 tsutsui if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1054 1.1 tsutsui echo $ac_n "(cached) $ac_c" 1>&6
1055 1.1 tsutsui else
1056 1.1 tsutsui ac_save_LIBS="$LIBS"
1057 1.1 tsutsui LIBS="-ldir $LIBS"
1058 1.1 tsutsui cat > conftest.$ac_ext <<EOF
1059 1.2 tsutsui #line 1060 "configure"
1060 1.1 tsutsui #include "confdefs.h"
1061 1.1 tsutsui /* Override any gcc2 internal prototype to avoid an error. */
1062 1.1 tsutsui /* We use char because int might match the return type of a gcc2
1063 1.1 tsutsui builtin and then its argument prototype would still apply. */
1064 1.1 tsutsui char opendir();
1065 1.1 tsutsui
1066 1.1 tsutsui int main() {
1067 1.1 tsutsui opendir()
1068 1.1 tsutsui ; return 0; }
1069 1.1 tsutsui EOF
1070 1.2 tsutsui if { (eval echo configure:1071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1071 1.1 tsutsui rm -rf conftest*
1072 1.1 tsutsui eval "ac_cv_lib_$ac_lib_var=yes"
1073 1.1 tsutsui else
1074 1.1 tsutsui echo "configure: failed program was:" >&5
1075 1.1 tsutsui cat conftest.$ac_ext >&5
1076 1.1 tsutsui rm -rf conftest*
1077 1.1 tsutsui eval "ac_cv_lib_$ac_lib_var=no"
1078 1.1 tsutsui fi
1079 1.1 tsutsui rm -f conftest*
1080 1.1 tsutsui LIBS="$ac_save_LIBS"
1081 1.1 tsutsui
1082 1.1 tsutsui fi
1083 1.1 tsutsui if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1084 1.1 tsutsui echo "$ac_t""yes" 1>&6
1085 1.1 tsutsui LIBS="$LIBS -ldir"
1086 1.1 tsutsui else
1087 1.1 tsutsui echo "$ac_t""no" 1>&6
1088 1.1 tsutsui fi
1089 1.1 tsutsui
1090 1.1 tsutsui else
1091 1.1 tsutsui echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
1092 1.2 tsutsui echo "configure:1093: checking for opendir in -lx" >&5
1093 1.1 tsutsui ac_lib_var=`echo x'_'opendir | sed 'y%./+-%__p_%'`
1094 1.1 tsutsui if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1095 1.1 tsutsui echo $ac_n "(cached) $ac_c" 1>&6
1096 1.1 tsutsui else
1097 1.1 tsutsui ac_save_LIBS="$LIBS"
1098 1.1 tsutsui LIBS="-lx $LIBS"
1099 1.1 tsutsui cat > conftest.$ac_ext <<EOF
1100 1.2 tsutsui #line 1101 "configure"
1101 1.1 tsutsui #include "confdefs.h"
1102 1.1 tsutsui /* Override any gcc2 internal prototype to avoid an error. */
1103 1.1 tsutsui /* We use char because int might match the return type of a gcc2
1104 1.1 tsutsui builtin and then its argument prototype would still apply. */
1105 1.1 tsutsui char opendir();
1106 1.1 tsutsui
1107 1.1 tsutsui int main() {
1108 1.1 tsutsui opendir()
1109 1.1 tsutsui ; return 0; }
1110 1.1 tsutsui EOF
1111 1.2 tsutsui if { (eval echo configure:1112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1112 1.1 tsutsui rm -rf conftest*
1113 1.1 tsutsui eval "ac_cv_lib_$ac_lib_var=yes"
1114 1.1 tsutsui else
1115 1.1 tsutsui echo "configure: failed program was:" >&5
1116 1.1 tsutsui cat conftest.$ac_ext >&5
1117 1.1 tsutsui rm -rf conftest*
1118 1.1 tsutsui eval "ac_cv_lib_$ac_lib_var=no"
1119 1.1 tsutsui fi
1120 1.1 tsutsui rm -f conftest*
1121 1.1 tsutsui LIBS="$ac_save_LIBS"
1122 1.1 tsutsui
1123 1.1 tsutsui fi
1124 1.1 tsutsui if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1125 1.1 tsutsui echo "$ac_t""yes" 1>&6
1126 1.1 tsutsui LIBS="$LIBS -lx"
1127 1.1 tsutsui else
1128 1.1 tsutsui echo "$ac_t""no" 1>&6
1129 1.1 tsutsui fi
1130 1.1 tsutsui
1131 1.1 tsutsui fi
1132 1.1 tsutsui
1133 1.1 tsutsui if test -z "$ac_header_dirent"; then
1134 1.1 tsutsui cat >> confdefs.h <<\EOF
1135 1.1 tsutsui #define NODIR 1
1136 1.1 tsutsui EOF
1137 1.1 tsutsui
1138 1.1 tsutsui fi
1139 1.1 tsutsui for ac_func in memmove sbrk strdup
1140 1.1 tsutsui do
1141 1.1 tsutsui echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1142 1.2 tsutsui echo "configure:1143: checking for $ac_func" >&5
1143 1.1 tsutsui if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1144 1.1 tsutsui echo $ac_n "(cached) $ac_c" 1>&6
1145 1.1 tsutsui else
1146 1.1 tsutsui cat > conftest.$ac_ext <<EOF
1147 1.2 tsutsui #line 1148 "configure"
1148 1.1 tsutsui #include "confdefs.h"
1149 1.1 tsutsui /* System header to define __stub macros and hopefully few prototypes,
1150 1.1 tsutsui which can conflict with char $ac_func(); below. */
1151 1.1 tsutsui #include <assert.h>
1152 1.1 tsutsui /* Override any gcc2 internal prototype to avoid an error. */
1153 1.1 tsutsui /* We use char because int might match the return type of a gcc2
1154 1.1 tsutsui builtin and then its argument prototype would still apply. */
1155 1.1 tsutsui char $ac_func();
1156 1.1 tsutsui
1157 1.1 tsutsui int main() {
1158 1.1 tsutsui
1159 1.1 tsutsui /* The GNU C library defines this for functions which it implements
1160 1.1 tsutsui to always fail with ENOSYS. Some functions are actually named
1161 1.1 tsutsui something starting with __ and the normal name is an alias. */
1162 1.1 tsutsui #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1163 1.1 tsutsui choke me
1164 1.1 tsutsui #else
1165 1.1 tsutsui $ac_func();
1166 1.1 tsutsui #endif
1167 1.1 tsutsui
1168 1.1 tsutsui ; return 0; }
1169 1.1 tsutsui EOF
1170 1.2 tsutsui if { (eval echo configure:1171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1171 1.1 tsutsui rm -rf conftest*
1172 1.1 tsutsui eval "ac_cv_func_$ac_func=yes"
1173 1.1 tsutsui else
1174 1.1 tsutsui echo "configure: failed program was:" >&5
1175 1.1 tsutsui cat conftest.$ac_ext >&5
1176 1.1 tsutsui rm -rf conftest*
1177 1.1 tsutsui eval "ac_cv_func_$ac_func=no"
1178 1.1 tsutsui fi
1179 1.1 tsutsui rm -f conftest*
1180 1.1 tsutsui fi
1181 1.1 tsutsui
1182 1.1 tsutsui if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1183 1.1 tsutsui echo "$ac_t""yes" 1>&6
1184 1.1 tsutsui ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1185 1.1 tsutsui cat >> confdefs.h <<EOF
1186 1.1 tsutsui #define $ac_tr_func 1
1187 1.1 tsutsui EOF
1188 1.1 tsutsui
1189 1.1 tsutsui else
1190 1.1 tsutsui echo "$ac_t""no" 1>&6
1191 1.1 tsutsui fi
1192 1.1 tsutsui done
1193 1.1 tsutsui
1194 1.1 tsutsui for ac_hdr in sys/mkdev.h sys/sysmacros.h malloc.h termios.h sys/types.h
1195 1.1 tsutsui do
1196 1.1 tsutsui ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1197 1.1 tsutsui echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1198 1.2 tsutsui echo "configure:1199: checking for $ac_hdr" >&5
1199 1.1 tsutsui if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1200 1.1 tsutsui echo $ac_n "(cached) $ac_c" 1>&6
1201 1.1 tsutsui else
1202 1.1 tsutsui cat > conftest.$ac_ext <<EOF
1203 1.2 tsutsui #line 1204 "configure"
1204 1.1 tsutsui #include "confdefs.h"
1205 1.1 tsutsui #include <$ac_hdr>
1206 1.1 tsutsui EOF
1207 1.1 tsutsui ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1208 1.2 tsutsui { (eval echo configure:1209: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1209 1.2 tsutsui ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1210 1.1 tsutsui if test -z "$ac_err"; then
1211 1.1 tsutsui rm -rf conftest*
1212 1.1 tsutsui eval "ac_cv_header_$ac_safe=yes"
1213 1.1 tsutsui else
1214 1.1 tsutsui echo "$ac_err" >&5
1215 1.1 tsutsui echo "configure: failed program was:" >&5
1216 1.1 tsutsui cat conftest.$ac_ext >&5
1217 1.1 tsutsui rm -rf conftest*
1218 1.1 tsutsui eval "ac_cv_header_$ac_safe=no"
1219 1.1 tsutsui fi
1220 1.1 tsutsui rm -f conftest*
1221 1.1 tsutsui fi
1222 1.1 tsutsui if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1223 1.1 tsutsui echo "$ac_t""yes" 1>&6
1224 1.1 tsutsui ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1225 1.1 tsutsui cat >> confdefs.h <<EOF
1226 1.1 tsutsui #define $ac_tr_hdr 1
1227 1.1 tsutsui EOF
1228 1.1 tsutsui
1229 1.1 tsutsui else
1230 1.1 tsutsui echo "$ac_t""no" 1>&6
1231 1.1 tsutsui fi
1232 1.1 tsutsui done
1233 1.1 tsutsui
1234 1.1 tsutsui for ac_hdr in unistd.h string.h strings.h sys/stat.h sys/fcntl.h
1235 1.1 tsutsui do
1236 1.1 tsutsui ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1237 1.1 tsutsui echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1238 1.2 tsutsui echo "configure:1239: checking for $ac_hdr" >&5
1239 1.1 tsutsui if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1240 1.1 tsutsui echo $ac_n "(cached) $ac_c" 1>&6
1241 1.1 tsutsui else
1242 1.1 tsutsui cat > conftest.$ac_ext <<EOF
1243 1.2 tsutsui #line 1244 "configure"
1244 1.1 tsutsui #include "confdefs.h"
1245 1.1 tsutsui #include <$ac_hdr>
1246 1.1 tsutsui EOF
1247 1.1 tsutsui ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1248 1.2 tsutsui { (eval echo configure:1249: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1249 1.2 tsutsui ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1250 1.1 tsutsui if test -z "$ac_err"; then
1251 1.1 tsutsui rm -rf conftest*
1252 1.1 tsutsui eval "ac_cv_header_$ac_safe=yes"
1253 1.1 tsutsui else
1254 1.1 tsutsui echo "$ac_err" >&5
1255 1.1 tsutsui echo "configure: failed program was:" >&5
1256 1.1 tsutsui cat conftest.$ac_ext >&5
1257 1.1 tsutsui rm -rf conftest*
1258 1.1 tsutsui eval "ac_cv_header_$ac_safe=no"
1259 1.1 tsutsui fi
1260 1.1 tsutsui rm -f conftest*
1261 1.1 tsutsui fi
1262 1.1 tsutsui if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1263 1.1 tsutsui echo "$ac_t""yes" 1>&6
1264 1.1 tsutsui ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1265 1.1 tsutsui cat >> confdefs.h <<EOF
1266 1.1 tsutsui #define $ac_tr_hdr 1
1267 1.1 tsutsui EOF
1268 1.1 tsutsui
1269 1.1 tsutsui else
1270 1.1 tsutsui echo "$ac_t""no" 1>&6
1271 1.1 tsutsui fi
1272 1.1 tsutsui done
1273 1.1 tsutsui
1274 1.1 tsutsui ac_aux_dir=
1275 1.2 tsutsui for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1276 1.1 tsutsui if test -f $ac_dir/install-sh; then
1277 1.1 tsutsui ac_aux_dir=$ac_dir
1278 1.1 tsutsui ac_install_sh="$ac_aux_dir/install-sh -c"
1279 1.1 tsutsui break
1280 1.1 tsutsui elif test -f $ac_dir/install.sh; then
1281 1.1 tsutsui ac_aux_dir=$ac_dir
1282 1.1 tsutsui ac_install_sh="$ac_aux_dir/install.sh -c"
1283 1.1 tsutsui break
1284 1.1 tsutsui fi
1285 1.1 tsutsui done
1286 1.1 tsutsui if test -z "$ac_aux_dir"; then
1287 1.1 tsutsui { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1288 1.1 tsutsui fi
1289 1.1 tsutsui ac_config_guess=$ac_aux_dir/config.guess
1290 1.1 tsutsui ac_config_sub=$ac_aux_dir/config.sub
1291 1.1 tsutsui ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1292 1.1 tsutsui
1293 1.1 tsutsui # Find a good install program. We prefer a C program (faster),
1294 1.1 tsutsui # so one script is as good as another. But avoid the broken or
1295 1.1 tsutsui # incompatible versions:
1296 1.1 tsutsui # SysV /etc/install, /usr/sbin/install
1297 1.1 tsutsui # SunOS /usr/etc/install
1298 1.1 tsutsui # IRIX /sbin/install
1299 1.1 tsutsui # AIX /bin/install
1300 1.2 tsutsui # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1301 1.1 tsutsui # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1302 1.1 tsutsui # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1303 1.1 tsutsui # ./install, which can be erroneously created by make from ./install.sh.
1304 1.1 tsutsui echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1305 1.2 tsutsui echo "configure:1306: checking for a BSD compatible install" >&5
1306 1.1 tsutsui if test -z "$INSTALL"; then
1307 1.1 tsutsui if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1308 1.1 tsutsui echo $ac_n "(cached) $ac_c" 1>&6
1309 1.1 tsutsui else
1310 1.2 tsutsui IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1311 1.1 tsutsui for ac_dir in $PATH; do
1312 1.1 tsutsui # Account for people who put trailing slashes in PATH elements.
1313 1.1 tsutsui case "$ac_dir/" in
1314 1.1 tsutsui /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1315 1.1 tsutsui *)
1316 1.1 tsutsui # OSF1 and SCO ODT 3.0 have their own names for install.
1317 1.2 tsutsui # Don't use installbsd from OSF since it installs stuff as root
1318 1.2 tsutsui # by default.
1319 1.2 tsutsui for ac_prog in ginstall scoinst install; do
1320 1.1 tsutsui if test -f $ac_dir/$ac_prog; then
1321 1.1 tsutsui if test $ac_prog = install &&
1322 1.1 tsutsui grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1323 1.1 tsutsui # AIX install. It has an incompatible calling convention.
1324 1.1 tsutsui :
1325 1.1 tsutsui else
1326 1.1 tsutsui ac_cv_path_install="$ac_dir/$ac_prog -c"
1327 1.1 tsutsui break 2
1328 1.1 tsutsui fi
1329 1.1 tsutsui fi
1330 1.1 tsutsui done
1331 1.1 tsutsui ;;
1332 1.1 tsutsui esac
1333 1.1 tsutsui done
1334 1.1 tsutsui IFS="$ac_save_IFS"
1335 1.1 tsutsui
1336 1.1 tsutsui fi
1337 1.1 tsutsui if test "${ac_cv_path_install+set}" = set; then
1338 1.1 tsutsui INSTALL="$ac_cv_path_install"
1339 1.1 tsutsui else
1340 1.1 tsutsui # As a last resort, use the slow shell script. We don't cache a
1341 1.1 tsutsui # path for INSTALL within a source directory, because that will
1342 1.1 tsutsui # break other packages using the cache if that directory is
1343 1.1 tsutsui # removed, or if the path is relative.
1344 1.1 tsutsui INSTALL="$ac_install_sh"
1345 1.1 tsutsui fi
1346 1.1 tsutsui fi
1347 1.1 tsutsui echo "$ac_t""$INSTALL" 1>&6
1348 1.1 tsutsui
1349 1.1 tsutsui # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1350 1.1 tsutsui # It thinks the first close brace ends the variable substitution.
1351 1.1 tsutsui test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1352 1.1 tsutsui
1353 1.2 tsutsui test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1354 1.2 tsutsui
1355 1.1 tsutsui test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1356 1.1 tsutsui
1357 1.1 tsutsui # Extract the first word of "ranlib", so it can be a program name with args.
1358 1.1 tsutsui set dummy ranlib; ac_word=$2
1359 1.1 tsutsui echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1360 1.2 tsutsui echo "configure:1361: checking for $ac_word" >&5
1361 1.1 tsutsui if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1362 1.1 tsutsui echo $ac_n "(cached) $ac_c" 1>&6
1363 1.1 tsutsui else
1364 1.1 tsutsui if test -n "$RANLIB"; then
1365 1.1 tsutsui ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1366 1.1 tsutsui else
1367 1.2 tsutsui IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1368 1.2 tsutsui ac_dummy="$PATH"
1369 1.2 tsutsui for ac_dir in $ac_dummy; do
1370 1.1 tsutsui test -z "$ac_dir" && ac_dir=.
1371 1.1 tsutsui if test -f $ac_dir/$ac_word; then
1372 1.1 tsutsui ac_cv_prog_RANLIB="ranlib"
1373 1.1 tsutsui break
1374 1.1 tsutsui fi
1375 1.1 tsutsui done
1376 1.1 tsutsui IFS="$ac_save_ifs"
1377 1.1 tsutsui test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1378 1.1 tsutsui fi
1379 1.1 tsutsui fi
1380 1.1 tsutsui RANLIB="$ac_cv_prog_RANLIB"
1381 1.1 tsutsui if test -n "$RANLIB"; then
1382 1.1 tsutsui echo "$ac_t""$RANLIB" 1>&6
1383 1.1 tsutsui else
1384 1.1 tsutsui echo "$ac_t""no" 1>&6
1385 1.1 tsutsui fi
1386 1.1 tsutsui
1387 1.1 tsutsui trap '' 1 2 15
1388 1.1 tsutsui cat > confcache <<\EOF
1389 1.1 tsutsui # This file is a shell script that caches the results of configure
1390 1.1 tsutsui # tests run on this system so they can be shared between configure
1391 1.1 tsutsui # scripts and configure runs. It is not useful on other systems.
1392 1.1 tsutsui # If it contains results you don't want to keep, you may remove or edit it.
1393 1.1 tsutsui #
1394 1.1 tsutsui # By default, configure uses ./config.cache as the cache file,
1395 1.1 tsutsui # creating it if it does not exist already. You can give configure
1396 1.1 tsutsui # the --cache-file=FILE option to use a different cache file; that is
1397 1.1 tsutsui # what configure does when it calls configure scripts in
1398 1.1 tsutsui # subdirectories, so they share the cache.
1399 1.1 tsutsui # Giving --cache-file=/dev/null disables caching, for debugging configure.
1400 1.1 tsutsui # config.status only pays attention to the cache file if you give it the
1401 1.1 tsutsui # --recheck option to rerun configure.
1402 1.1 tsutsui #
1403 1.1 tsutsui EOF
1404 1.1 tsutsui # The following way of writing the cache mishandles newlines in values,
1405 1.1 tsutsui # but we know of no workaround that is simple, portable, and efficient.
1406 1.1 tsutsui # So, don't put newlines in cache variables' values.
1407 1.1 tsutsui # Ultrix sh set writes to stderr and can't be redirected directly,
1408 1.1 tsutsui # and sets the high bit in the cache file unless we assign to the vars.
1409 1.1 tsutsui (set) 2>&1 |
1410 1.2 tsutsui case `(ac_space=' '; set | grep ac_space) 2>&1` in
1411 1.1 tsutsui *ac_space=\ *)
1412 1.1 tsutsui # `set' does not quote correctly, so add quotes (double-quote substitution
1413 1.1 tsutsui # turns \\\\ into \\, and sed turns \\ into \).
1414 1.1 tsutsui sed -n \
1415 1.1 tsutsui -e "s/'/'\\\\''/g" \
1416 1.1 tsutsui -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1417 1.1 tsutsui ;;
1418 1.1 tsutsui *)
1419 1.1 tsutsui # `set' quotes correctly as required by POSIX, so do not add quotes.
1420 1.1 tsutsui sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1421 1.1 tsutsui ;;
1422 1.1 tsutsui esac >> confcache
1423 1.1 tsutsui if cmp -s $cache_file confcache; then
1424 1.1 tsutsui :
1425 1.1 tsutsui else
1426 1.1 tsutsui if test -w $cache_file; then
1427 1.1 tsutsui echo "updating cache $cache_file"
1428 1.1 tsutsui cat confcache > $cache_file
1429 1.1 tsutsui else
1430 1.1 tsutsui echo "not updating unwritable cache $cache_file"
1431 1.1 tsutsui fi
1432 1.1 tsutsui fi
1433 1.1 tsutsui rm -f confcache
1434 1.1 tsutsui
1435 1.1 tsutsui trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1436 1.1 tsutsui
1437 1.1 tsutsui test "x$prefix" = xNONE && prefix=$ac_default_prefix
1438 1.1 tsutsui # Let make expand exec_prefix.
1439 1.1 tsutsui test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1440 1.1 tsutsui
1441 1.1 tsutsui # Any assignment to VPATH causes Sun make to only execute
1442 1.1 tsutsui # the first set of double-colon rules, so remove it if not needed.
1443 1.1 tsutsui # If there is a colon in the path, we need to keep it.
1444 1.1 tsutsui if test "x$srcdir" = x.; then
1445 1.1 tsutsui ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1446 1.1 tsutsui fi
1447 1.1 tsutsui
1448 1.1 tsutsui trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1449 1.1 tsutsui
1450 1.1 tsutsui DEFS=-DHAVE_CONFIG_H
1451 1.1 tsutsui
1452 1.1 tsutsui # Without the "./", some shells look in PATH for config.status.
1453 1.1 tsutsui : ${CONFIG_STATUS=./config.status}
1454 1.1 tsutsui
1455 1.1 tsutsui echo creating $CONFIG_STATUS
1456 1.1 tsutsui rm -f $CONFIG_STATUS
1457 1.1 tsutsui cat > $CONFIG_STATUS <<EOF
1458 1.1 tsutsui #! /bin/sh
1459 1.1 tsutsui # Generated automatically by configure.
1460 1.1 tsutsui # Run this file to recreate the current configuration.
1461 1.1 tsutsui # This directory was configured as follows,
1462 1.1 tsutsui # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1463 1.1 tsutsui #
1464 1.1 tsutsui # $0 $ac_configure_args
1465 1.1 tsutsui #
1466 1.1 tsutsui # Compiler output produced by configure, useful for debugging
1467 1.1 tsutsui # configure, is in ./config.log if it exists.
1468 1.1 tsutsui
1469 1.1 tsutsui ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1470 1.1 tsutsui for ac_option
1471 1.1 tsutsui do
1472 1.1 tsutsui case "\$ac_option" in
1473 1.1 tsutsui -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1474 1.1 tsutsui echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1475 1.1 tsutsui exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1476 1.1 tsutsui -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1477 1.2 tsutsui echo "$CONFIG_STATUS generated by autoconf version 2.13"
1478 1.1 tsutsui exit 0 ;;
1479 1.1 tsutsui -help | --help | --hel | --he | --h)
1480 1.1 tsutsui echo "\$ac_cs_usage"; exit 0 ;;
1481 1.1 tsutsui *) echo "\$ac_cs_usage"; exit 1 ;;
1482 1.1 tsutsui esac
1483 1.1 tsutsui done
1484 1.1 tsutsui
1485 1.1 tsutsui ac_given_srcdir=$srcdir
1486 1.1 tsutsui ac_given_INSTALL="$INSTALL"
1487 1.1 tsutsui
1488 1.2 tsutsui trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1489 1.1 tsutsui EOF
1490 1.1 tsutsui cat >> $CONFIG_STATUS <<EOF
1491 1.1 tsutsui
1492 1.1 tsutsui # Protect against being on the right side of a sed subst in config.status.
1493 1.1 tsutsui sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1494 1.1 tsutsui s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1495 1.1 tsutsui $ac_vpsub
1496 1.1 tsutsui $extrasub
1497 1.2 tsutsui s%@SHELL@%$SHELL%g
1498 1.1 tsutsui s%@CFLAGS@%$CFLAGS%g
1499 1.1 tsutsui s%@CPPFLAGS@%$CPPFLAGS%g
1500 1.1 tsutsui s%@CXXFLAGS@%$CXXFLAGS%g
1501 1.2 tsutsui s%@FFLAGS@%$FFLAGS%g
1502 1.1 tsutsui s%@DEFS@%$DEFS%g
1503 1.1 tsutsui s%@LDFLAGS@%$LDFLAGS%g
1504 1.1 tsutsui s%@LIBS@%$LIBS%g
1505 1.1 tsutsui s%@exec_prefix@%$exec_prefix%g
1506 1.1 tsutsui s%@prefix@%$prefix%g
1507 1.1 tsutsui s%@program_transform_name@%$program_transform_name%g
1508 1.1 tsutsui s%@bindir@%$bindir%g
1509 1.1 tsutsui s%@sbindir@%$sbindir%g
1510 1.1 tsutsui s%@libexecdir@%$libexecdir%g
1511 1.1 tsutsui s%@datadir@%$datadir%g
1512 1.1 tsutsui s%@sysconfdir@%$sysconfdir%g
1513 1.1 tsutsui s%@sharedstatedir@%$sharedstatedir%g
1514 1.1 tsutsui s%@localstatedir@%$localstatedir%g
1515 1.1 tsutsui s%@libdir@%$libdir%g
1516 1.1 tsutsui s%@includedir@%$includedir%g
1517 1.1 tsutsui s%@oldincludedir@%$oldincludedir%g
1518 1.1 tsutsui s%@infodir@%$infodir%g
1519 1.1 tsutsui s%@mandir@%$mandir%g
1520 1.1 tsutsui s%@CC@%$CC%g
1521 1.1 tsutsui s%@CPP@%$CPP%g
1522 1.1 tsutsui s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1523 1.2 tsutsui s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1524 1.1 tsutsui s%@INSTALL_DATA@%$INSTALL_DATA%g
1525 1.1 tsutsui s%@RANLIB@%$RANLIB%g
1526 1.1 tsutsui
1527 1.1 tsutsui CEOF
1528 1.1 tsutsui EOF
1529 1.1 tsutsui
1530 1.1 tsutsui cat >> $CONFIG_STATUS <<\EOF
1531 1.1 tsutsui
1532 1.1 tsutsui # Split the substitutions into bite-sized pieces for seds with
1533 1.1 tsutsui # small command number limits, like on Digital OSF/1 and HP-UX.
1534 1.1 tsutsui ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1535 1.1 tsutsui ac_file=1 # Number of current file.
1536 1.1 tsutsui ac_beg=1 # First line for current file.
1537 1.1 tsutsui ac_end=$ac_max_sed_cmds # Line after last line for current file.
1538 1.1 tsutsui ac_more_lines=:
1539 1.1 tsutsui ac_sed_cmds=""
1540 1.1 tsutsui while $ac_more_lines; do
1541 1.1 tsutsui if test $ac_beg -gt 1; then
1542 1.1 tsutsui sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1543 1.1 tsutsui else
1544 1.1 tsutsui sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1545 1.1 tsutsui fi
1546 1.1 tsutsui if test ! -s conftest.s$ac_file; then
1547 1.1 tsutsui ac_more_lines=false
1548 1.1 tsutsui rm -f conftest.s$ac_file
1549 1.1 tsutsui else
1550 1.1 tsutsui if test -z "$ac_sed_cmds"; then
1551 1.1 tsutsui ac_sed_cmds="sed -f conftest.s$ac_file"
1552 1.1 tsutsui else
1553 1.1 tsutsui ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1554 1.1 tsutsui fi
1555 1.1 tsutsui ac_file=`expr $ac_file + 1`
1556 1.1 tsutsui ac_beg=$ac_end
1557 1.1 tsutsui ac_end=`expr $ac_end + $ac_max_sed_cmds`
1558 1.1 tsutsui fi
1559 1.1 tsutsui done
1560 1.1 tsutsui if test -z "$ac_sed_cmds"; then
1561 1.1 tsutsui ac_sed_cmds=cat
1562 1.1 tsutsui fi
1563 1.1 tsutsui EOF
1564 1.1 tsutsui
1565 1.1 tsutsui cat >> $CONFIG_STATUS <<EOF
1566 1.1 tsutsui
1567 1.2 tsutsui CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
1568 1.1 tsutsui EOF
1569 1.1 tsutsui cat >> $CONFIG_STATUS <<\EOF
1570 1.1 tsutsui for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1571 1.1 tsutsui # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1572 1.1 tsutsui case "$ac_file" in
1573 1.1 tsutsui *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1574 1.1 tsutsui ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1575 1.1 tsutsui *) ac_file_in="${ac_file}.in" ;;
1576 1.1 tsutsui esac
1577 1.1 tsutsui
1578 1.1 tsutsui # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1579 1.1 tsutsui
1580 1.1 tsutsui # Remove last slash and all that follows it. Not all systems have dirname.
1581 1.1 tsutsui ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1582 1.1 tsutsui if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1583 1.1 tsutsui # The file is in a subdirectory.
1584 1.1 tsutsui test ! -d "$ac_dir" && mkdir "$ac_dir"
1585 1.1 tsutsui ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1586 1.1 tsutsui # A "../" for each directory in $ac_dir_suffix.
1587 1.1 tsutsui ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1588 1.1 tsutsui else
1589 1.1 tsutsui ac_dir_suffix= ac_dots=
1590 1.1 tsutsui fi
1591 1.1 tsutsui
1592 1.1 tsutsui case "$ac_given_srcdir" in
1593 1.1 tsutsui .) srcdir=.
1594 1.1 tsutsui if test -z "$ac_dots"; then top_srcdir=.
1595 1.1 tsutsui else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1596 1.1 tsutsui /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1597 1.1 tsutsui *) # Relative path.
1598 1.1 tsutsui srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1599 1.1 tsutsui top_srcdir="$ac_dots$ac_given_srcdir" ;;
1600 1.1 tsutsui esac
1601 1.1 tsutsui
1602 1.1 tsutsui case "$ac_given_INSTALL" in
1603 1.1 tsutsui [/$]*) INSTALL="$ac_given_INSTALL" ;;
1604 1.1 tsutsui *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1605 1.1 tsutsui esac
1606 1.1 tsutsui
1607 1.1 tsutsui echo creating "$ac_file"
1608 1.1 tsutsui rm -f "$ac_file"
1609 1.1 tsutsui configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1610 1.1 tsutsui case "$ac_file" in
1611 1.1 tsutsui *Makefile*) ac_comsub="1i\\
1612 1.1 tsutsui # $configure_input" ;;
1613 1.1 tsutsui *) ac_comsub= ;;
1614 1.1 tsutsui esac
1615 1.1 tsutsui
1616 1.1 tsutsui ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1617 1.1 tsutsui sed -e "$ac_comsub
1618 1.1 tsutsui s%@configure_input@%$configure_input%g
1619 1.1 tsutsui s%@srcdir@%$srcdir%g
1620 1.1 tsutsui s%@top_srcdir@%$top_srcdir%g
1621 1.1 tsutsui s%@INSTALL@%$INSTALL%g
1622 1.1 tsutsui " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1623 1.1 tsutsui fi; done
1624 1.1 tsutsui rm -f conftest.s*
1625 1.1 tsutsui
1626 1.1 tsutsui # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
1627 1.1 tsutsui # NAME is the cpp macro being defined and VALUE is the value it is being given.
1628 1.1 tsutsui #
1629 1.1 tsutsui # ac_d sets the value in "#define NAME VALUE" lines.
1630 1.1 tsutsui ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
1631 1.1 tsutsui ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
1632 1.1 tsutsui ac_dC='\3'
1633 1.1 tsutsui ac_dD='%g'
1634 1.1 tsutsui # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
1635 1.1 tsutsui ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1636 1.1 tsutsui ac_uB='\([ ]\)%\1#\2define\3'
1637 1.1 tsutsui ac_uC=' '
1638 1.1 tsutsui ac_uD='\4%g'
1639 1.1 tsutsui # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1640 1.1 tsutsui ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
1641 1.1 tsutsui ac_eB='$%\1#\2define\3'
1642 1.1 tsutsui ac_eC=' '
1643 1.1 tsutsui ac_eD='%g'
1644 1.1 tsutsui
1645 1.1 tsutsui if test "${CONFIG_HEADERS+set}" != set; then
1646 1.1 tsutsui EOF
1647 1.1 tsutsui cat >> $CONFIG_STATUS <<EOF
1648 1.1 tsutsui CONFIG_HEADERS="config.h"
1649 1.1 tsutsui EOF
1650 1.1 tsutsui cat >> $CONFIG_STATUS <<\EOF
1651 1.1 tsutsui fi
1652 1.1 tsutsui for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
1653 1.1 tsutsui # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1654 1.1 tsutsui case "$ac_file" in
1655 1.1 tsutsui *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1656 1.1 tsutsui ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1657 1.1 tsutsui *) ac_file_in="${ac_file}.in" ;;
1658 1.1 tsutsui esac
1659 1.1 tsutsui
1660 1.1 tsutsui echo creating $ac_file
1661 1.1 tsutsui
1662 1.1 tsutsui rm -f conftest.frag conftest.in conftest.out
1663 1.1 tsutsui ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1664 1.1 tsutsui cat $ac_file_inputs > conftest.in
1665 1.1 tsutsui
1666 1.1 tsutsui EOF
1667 1.1 tsutsui
1668 1.1 tsutsui # Transform confdefs.h into a sed script conftest.vals that substitutes
1669 1.1 tsutsui # the proper values into config.h.in to produce config.h. And first:
1670 1.1 tsutsui # Protect against being on the right side of a sed subst in config.status.
1671 1.1 tsutsui # Protect against being in an unquoted here document in config.status.
1672 1.1 tsutsui rm -f conftest.vals
1673 1.1 tsutsui cat > conftest.hdr <<\EOF
1674 1.1 tsutsui s/[\\&%]/\\&/g
1675 1.1 tsutsui s%[\\$`]%\\&%g
1676 1.1 tsutsui s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
1677 1.1 tsutsui s%ac_d%ac_u%gp
1678 1.1 tsutsui s%ac_u%ac_e%gp
1679 1.1 tsutsui EOF
1680 1.1 tsutsui sed -n -f conftest.hdr confdefs.h > conftest.vals
1681 1.1 tsutsui rm -f conftest.hdr
1682 1.1 tsutsui
1683 1.1 tsutsui # This sed command replaces #undef with comments. This is necessary, for
1684 1.1 tsutsui # example, in the case of _POSIX_SOURCE, which is predefined and required
1685 1.1 tsutsui # on some systems where configure will not decide to define it.
1686 1.1 tsutsui cat >> conftest.vals <<\EOF
1687 1.1 tsutsui s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
1688 1.1 tsutsui EOF
1689 1.1 tsutsui
1690 1.1 tsutsui # Break up conftest.vals because some shells have a limit on
1691 1.1 tsutsui # the size of here documents, and old seds have small limits too.
1692 1.1 tsutsui
1693 1.1 tsutsui rm -f conftest.tail
1694 1.1 tsutsui while :
1695 1.1 tsutsui do
1696 1.1 tsutsui ac_lines=`grep -c . conftest.vals`
1697 1.1 tsutsui # grep -c gives empty output for an empty file on some AIX systems.
1698 1.1 tsutsui if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
1699 1.1 tsutsui # Write a limited-size here document to conftest.frag.
1700 1.1 tsutsui echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
1701 1.1 tsutsui sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
1702 1.1 tsutsui echo 'CEOF
1703 1.1 tsutsui sed -f conftest.frag conftest.in > conftest.out
1704 1.1 tsutsui rm -f conftest.in
1705 1.1 tsutsui mv conftest.out conftest.in
1706 1.1 tsutsui ' >> $CONFIG_STATUS
1707 1.1 tsutsui sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
1708 1.1 tsutsui rm -f conftest.vals
1709 1.1 tsutsui mv conftest.tail conftest.vals
1710 1.1 tsutsui done
1711 1.1 tsutsui rm -f conftest.vals
1712 1.1 tsutsui
1713 1.1 tsutsui cat >> $CONFIG_STATUS <<\EOF
1714 1.1 tsutsui rm -f conftest.frag conftest.h
1715 1.1 tsutsui echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
1716 1.1 tsutsui cat conftest.in >> conftest.h
1717 1.1 tsutsui rm -f conftest.in
1718 1.1 tsutsui if cmp -s $ac_file conftest.h 2>/dev/null; then
1719 1.1 tsutsui echo "$ac_file is unchanged"
1720 1.1 tsutsui rm -f conftest.h
1721 1.1 tsutsui else
1722 1.1 tsutsui # Remove last slash and all that follows it. Not all systems have dirname.
1723 1.1 tsutsui ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1724 1.1 tsutsui if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1725 1.1 tsutsui # The file is in a subdirectory.
1726 1.1 tsutsui test ! -d "$ac_dir" && mkdir "$ac_dir"
1727 1.1 tsutsui fi
1728 1.1 tsutsui rm -f $ac_file
1729 1.1 tsutsui mv conftest.h $ac_file
1730 1.1 tsutsui fi
1731 1.1 tsutsui fi; done
1732 1.1 tsutsui
1733 1.1 tsutsui EOF
1734 1.1 tsutsui cat >> $CONFIG_STATUS <<EOF
1735 1.1 tsutsui
1736 1.1 tsutsui EOF
1737 1.1 tsutsui cat >> $CONFIG_STATUS <<\EOF
1738 1.1 tsutsui
1739 1.1 tsutsui exit 0
1740 1.1 tsutsui EOF
1741 1.1 tsutsui chmod +x $CONFIG_STATUS
1742 1.1 tsutsui rm -fr confdefs* $ac_clean_files
1743 1.1 tsutsui test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
1744 1.1 tsutsui
1745