gliv-1.3.1
[gliv.git] / configure
blob8db370035afacd46c8f846b64d144912d249e4f6
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by Autoconf 2.52.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
10 # Avoid depending upon Character Ranges.
11 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14 as_cr_digits='0123456789'
15 as_cr_alnum=$as_cr_Letters$as_cr_digits
17 # Sed expression to map a string onto a valid variable name.
18 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
20 # Sed expression to map a string onto a valid CPP name.
21 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23 # Be Bourne compatible
24 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25 emulate sh
26 NULLCMD=:
27 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28 set -o posix
31 # Name of the executable.
32 as_me=`echo "$0" |sed 's,.*[\\/],,'`
34 if expr a : '\(a\)' >/dev/null 2>&1; then
35 as_expr=expr
36 else
37 as_expr=false
40 rm -f conf$$ conf$$.exe conf$$.file
41 echo >conf$$.file
42 if ln -s conf$$.file conf$$ 2>/dev/null; then
43 # We could just check for DJGPP; but this test a) works b) is more generic
44 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
45 if test -f conf$$.exe; then
46 # Don't use ln at all; we don't have any links
47 as_ln_s='cp -p'
48 else
49 as_ln_s='ln -s'
51 elif ln conf$$.file conf$$ 2>/dev/null; then
52 as_ln_s=ln
53 else
54 as_ln_s='cp -p'
56 rm -f conf$$ conf$$.exe conf$$.file
58 as_executable_p="test -f"
60 # Support unset when possible.
61 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
62 as_unset=unset
63 else
64 as_unset=false
67 # NLS nuisances.
68 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
69 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
70 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
71 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
72 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
73 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
74 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
75 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
77 # IFS
78 # We need space, tab and new line, in precisely that order.
79 as_nl='
81 IFS=" $as_nl"
83 # CDPATH.
84 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
86 # Name of the host.
87 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
88 # so uname gets run too.
89 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
91 exec 6>&1
94 # Initializations.
96 ac_default_prefix=/usr/local
97 cross_compiling=no
98 subdirs=
99 MFLAGS= MAKEFLAGS=
100 SHELL=${CONFIG_SHELL-/bin/sh}
102 # Maximum number of lines to put in a shell here document.
103 # This variable seems obsolete. It should probably be removed, and
104 # only ac_max_sed_lines should be used.
105 : ${ac_max_here_lines=38}
107 ac_unique_file="gliv.c"
109 # Initialize some variables set by options.
110 ac_init_help=
111 ac_init_version=false
112 # The variables have the same names as the options, with
113 # dashes changed to underlines.
114 cache_file=/dev/null
115 exec_prefix=NONE
116 no_create=
117 no_recursion=
118 prefix=NONE
119 program_prefix=NONE
120 program_suffix=NONE
121 program_transform_name=s,x,x,
122 silent=
123 site=
124 srcdir=
125 verbose=
126 x_includes=NONE
127 x_libraries=NONE
129 # Installation directory options.
130 # These are left unexpanded so users can "make install exec_prefix=/foo"
131 # and all the variables that are supposed to be based on exec_prefix
132 # by default will actually change.
133 # Use braces instead of parens because sh, perl, etc. also accept them.
134 bindir='${exec_prefix}/bin'
135 sbindir='${exec_prefix}/sbin'
136 libexecdir='${exec_prefix}/libexec'
137 datadir='${prefix}/share'
138 sysconfdir='${prefix}/etc'
139 sharedstatedir='${prefix}/com'
140 localstatedir='${prefix}/var'
141 libdir='${exec_prefix}/lib'
142 includedir='${prefix}/include'
143 oldincludedir='/usr/include'
144 infodir='${prefix}/info'
145 mandir='${prefix}/man'
147 # Identity of this package.
148 PACKAGE_NAME=
149 PACKAGE_TARNAME=
150 PACKAGE_VERSION=
151 PACKAGE_STRING=
152 PACKAGE_BUGREPORT=
154 ac_prev=
155 for ac_option
157 # If the previous option needs an argument, assign it.
158 if test -n "$ac_prev"; then
159 eval "$ac_prev=\$ac_option"
160 ac_prev=
161 continue
164 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
166 # Accept the important Cygnus configure options, so we can diagnose typos.
168 case $ac_option in
170 -bindir | --bindir | --bindi | --bind | --bin | --bi)
171 ac_prev=bindir ;;
172 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
173 bindir=$ac_optarg ;;
175 -build | --build | --buil | --bui | --bu)
176 ac_prev=build_alias ;;
177 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
178 build_alias=$ac_optarg ;;
180 -cache-file | --cache-file | --cache-fil | --cache-fi \
181 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
182 ac_prev=cache_file ;;
183 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
184 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
185 cache_file=$ac_optarg ;;
187 --config-cache | -C)
188 cache_file=config.cache ;;
190 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
191 ac_prev=datadir ;;
192 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
193 | --da=*)
194 datadir=$ac_optarg ;;
196 -disable-* | --disable-*)
197 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
198 # Reject names that are not valid shell variable names.
199 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
200 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
201 { (exit 1); exit 1; }; }
202 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
203 eval "enable_$ac_feature=no" ;;
205 -enable-* | --enable-*)
206 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
207 # Reject names that are not valid shell variable names.
208 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
209 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
210 { (exit 1); exit 1; }; }
211 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
212 case $ac_option in
213 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
214 *) ac_optarg=yes ;;
215 esac
216 eval "enable_$ac_feature='$ac_optarg'" ;;
218 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
219 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
220 | --exec | --exe | --ex)
221 ac_prev=exec_prefix ;;
222 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
223 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
224 | --exec=* | --exe=* | --ex=*)
225 exec_prefix=$ac_optarg ;;
227 -gas | --gas | --ga | --g)
228 # Obsolete; use --with-gas.
229 with_gas=yes ;;
231 -help | --help | --hel | --he | -h)
232 ac_init_help=long ;;
233 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
234 ac_init_help=recursive ;;
235 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
236 ac_init_help=short ;;
238 -host | --host | --hos | --ho)
239 ac_prev=host_alias ;;
240 -host=* | --host=* | --hos=* | --ho=*)
241 host_alias=$ac_optarg ;;
243 -includedir | --includedir | --includedi | --included | --include \
244 | --includ | --inclu | --incl | --inc)
245 ac_prev=includedir ;;
246 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
247 | --includ=* | --inclu=* | --incl=* | --inc=*)
248 includedir=$ac_optarg ;;
250 -infodir | --infodir | --infodi | --infod | --info | --inf)
251 ac_prev=infodir ;;
252 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
253 infodir=$ac_optarg ;;
255 -libdir | --libdir | --libdi | --libd)
256 ac_prev=libdir ;;
257 -libdir=* | --libdir=* | --libdi=* | --libd=*)
258 libdir=$ac_optarg ;;
260 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
261 | --libexe | --libex | --libe)
262 ac_prev=libexecdir ;;
263 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
264 | --libexe=* | --libex=* | --libe=*)
265 libexecdir=$ac_optarg ;;
267 -localstatedir | --localstatedir | --localstatedi | --localstated \
268 | --localstate | --localstat | --localsta | --localst \
269 | --locals | --local | --loca | --loc | --lo)
270 ac_prev=localstatedir ;;
271 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
272 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
273 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
274 localstatedir=$ac_optarg ;;
276 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
277 ac_prev=mandir ;;
278 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
279 mandir=$ac_optarg ;;
281 -nfp | --nfp | --nf)
282 # Obsolete; use --without-fp.
283 with_fp=no ;;
285 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
286 | --no-cr | --no-c)
287 no_create=yes ;;
289 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
290 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
291 no_recursion=yes ;;
293 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
294 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
295 | --oldin | --oldi | --old | --ol | --o)
296 ac_prev=oldincludedir ;;
297 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
298 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
299 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
300 oldincludedir=$ac_optarg ;;
302 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
303 ac_prev=prefix ;;
304 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
305 prefix=$ac_optarg ;;
307 -program-prefix | --program-prefix | --program-prefi | --program-pref \
308 | --program-pre | --program-pr | --program-p)
309 ac_prev=program_prefix ;;
310 -program-prefix=* | --program-prefix=* | --program-prefi=* \
311 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
312 program_prefix=$ac_optarg ;;
314 -program-suffix | --program-suffix | --program-suffi | --program-suff \
315 | --program-suf | --program-su | --program-s)
316 ac_prev=program_suffix ;;
317 -program-suffix=* | --program-suffix=* | --program-suffi=* \
318 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
319 program_suffix=$ac_optarg ;;
321 -program-transform-name | --program-transform-name \
322 | --program-transform-nam | --program-transform-na \
323 | --program-transform-n | --program-transform- \
324 | --program-transform | --program-transfor \
325 | --program-transfo | --program-transf \
326 | --program-trans | --program-tran \
327 | --progr-tra | --program-tr | --program-t)
328 ac_prev=program_transform_name ;;
329 -program-transform-name=* | --program-transform-name=* \
330 | --program-transform-nam=* | --program-transform-na=* \
331 | --program-transform-n=* | --program-transform-=* \
332 | --program-transform=* | --program-transfor=* \
333 | --program-transfo=* | --program-transf=* \
334 | --program-trans=* | --program-tran=* \
335 | --progr-tra=* | --program-tr=* | --program-t=*)
336 program_transform_name=$ac_optarg ;;
338 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
339 | -silent | --silent | --silen | --sile | --sil)
340 silent=yes ;;
342 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
343 ac_prev=sbindir ;;
344 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
345 | --sbi=* | --sb=*)
346 sbindir=$ac_optarg ;;
348 -sharedstatedir | --sharedstatedir | --sharedstatedi \
349 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
350 | --sharedst | --shareds | --shared | --share | --shar \
351 | --sha | --sh)
352 ac_prev=sharedstatedir ;;
353 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
354 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
355 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
356 | --sha=* | --sh=*)
357 sharedstatedir=$ac_optarg ;;
359 -site | --site | --sit)
360 ac_prev=site ;;
361 -site=* | --site=* | --sit=*)
362 site=$ac_optarg ;;
364 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
365 ac_prev=srcdir ;;
366 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
367 srcdir=$ac_optarg ;;
369 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
370 | --syscon | --sysco | --sysc | --sys | --sy)
371 ac_prev=sysconfdir ;;
372 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
373 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
374 sysconfdir=$ac_optarg ;;
376 -target | --target | --targe | --targ | --tar | --ta | --t)
377 ac_prev=target_alias ;;
378 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
379 target_alias=$ac_optarg ;;
381 -v | -verbose | --verbose | --verbos | --verbo | --verb)
382 verbose=yes ;;
384 -version | --version | --versio | --versi | --vers | -V)
385 ac_init_version=: ;;
387 -with-* | --with-*)
388 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
389 # Reject names that are not valid shell variable names.
390 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
391 { echo "$as_me: error: invalid package name: $ac_package" >&2
392 { (exit 1); exit 1; }; }
393 ac_package=`echo $ac_package| sed 's/-/_/g'`
394 case $ac_option in
395 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
396 *) ac_optarg=yes ;;
397 esac
398 eval "with_$ac_package='$ac_optarg'" ;;
400 -without-* | --without-*)
401 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
402 # Reject names that are not valid shell variable names.
403 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
404 { echo "$as_me: error: invalid package name: $ac_package" >&2
405 { (exit 1); exit 1; }; }
406 ac_package=`echo $ac_package | sed 's/-/_/g'`
407 eval "with_$ac_package=no" ;;
409 --x)
410 # Obsolete; use --with-x.
411 with_x=yes ;;
413 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
414 | --x-incl | --x-inc | --x-in | --x-i)
415 ac_prev=x_includes ;;
416 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
417 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
418 x_includes=$ac_optarg ;;
420 -x-libraries | --x-libraries | --x-librarie | --x-librari \
421 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
422 ac_prev=x_libraries ;;
423 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
424 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
425 x_libraries=$ac_optarg ;;
427 -*) { echo "$as_me: error: unrecognized option: $ac_option
428 Try \`$0 --help' for more information." >&2
429 { (exit 1); exit 1; }; }
432 *=*)
433 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
434 # Reject names that are not valid shell variable names.
435 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
436 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
437 { (exit 1); exit 1; }; }
438 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
439 eval "$ac_envvar='$ac_optarg'"
440 export $ac_envvar ;;
443 # FIXME: should be removed in autoconf 3.0.
444 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
445 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
446 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
447 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
450 esac
451 done
453 if test -n "$ac_prev"; then
454 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
455 { echo "$as_me: error: missing argument to $ac_option" >&2
456 { (exit 1); exit 1; }; }
459 # Be sure to have absolute paths.
460 for ac_var in exec_prefix prefix
462 eval ac_val=$`echo $ac_var`
463 case $ac_val in
464 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
465 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
466 { (exit 1); exit 1; }; };;
467 esac
468 done
470 # Be sure to have absolute paths.
471 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
472 localstatedir libdir includedir oldincludedir infodir mandir
474 eval ac_val=$`echo $ac_var`
475 case $ac_val in
476 [\\/$]* | ?:[\\/]* ) ;;
477 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
478 { (exit 1); exit 1; }; };;
479 esac
480 done
482 # There might be people who depend on the old broken behavior: `$host'
483 # used to hold the argument of --host etc.
484 build=$build_alias
485 host=$host_alias
486 target=$target_alias
488 # FIXME: should be removed in autoconf 3.0.
489 if test "x$host_alias" != x; then
490 if test "x$build_alias" = x; then
491 cross_compiling=maybe
492 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
493 If a cross compiler is detected then cross compile mode will be used." >&2
494 elif test "x$build_alias" != "x$host_alias"; then
495 cross_compiling=yes
499 ac_tool_prefix=
500 test -n "$host_alias" && ac_tool_prefix=$host_alias-
502 test "$silent" = yes && exec 6>/dev/null
504 # Find the source files, if location was not specified.
505 if test -z "$srcdir"; then
506 ac_srcdir_defaulted=yes
507 # Try the directory containing this script, then its parent.
508 ac_prog=$0
509 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
510 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
511 srcdir=$ac_confdir
512 if test ! -r $srcdir/$ac_unique_file; then
513 srcdir=..
515 else
516 ac_srcdir_defaulted=no
518 if test ! -r $srcdir/$ac_unique_file; then
519 if test "$ac_srcdir_defaulted" = yes; then
520 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
521 { (exit 1); exit 1; }; }
522 else
523 { echo "$as_me: error: cannot find sources in $srcdir" >&2
524 { (exit 1); exit 1; }; }
527 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
528 ac_env_build_alias_set=${build_alias+set}
529 ac_env_build_alias_value=$build_alias
530 ac_cv_env_build_alias_set=${build_alias+set}
531 ac_cv_env_build_alias_value=$build_alias
532 ac_env_host_alias_set=${host_alias+set}
533 ac_env_host_alias_value=$host_alias
534 ac_cv_env_host_alias_set=${host_alias+set}
535 ac_cv_env_host_alias_value=$host_alias
536 ac_env_target_alias_set=${target_alias+set}
537 ac_env_target_alias_value=$target_alias
538 ac_cv_env_target_alias_set=${target_alias+set}
539 ac_cv_env_target_alias_value=$target_alias
540 ac_env_CC_set=${CC+set}
541 ac_env_CC_value=$CC
542 ac_cv_env_CC_set=${CC+set}
543 ac_cv_env_CC_value=$CC
544 ac_env_CFLAGS_set=${CFLAGS+set}
545 ac_env_CFLAGS_value=$CFLAGS
546 ac_cv_env_CFLAGS_set=${CFLAGS+set}
547 ac_cv_env_CFLAGS_value=$CFLAGS
548 ac_env_LDFLAGS_set=${LDFLAGS+set}
549 ac_env_LDFLAGS_value=$LDFLAGS
550 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
551 ac_cv_env_LDFLAGS_value=$LDFLAGS
552 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
553 ac_env_CPPFLAGS_value=$CPPFLAGS
554 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
555 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
556 ac_env_CPP_set=${CPP+set}
557 ac_env_CPP_value=$CPP
558 ac_cv_env_CPP_set=${CPP+set}
559 ac_cv_env_CPP_value=$CPP
562 # Report the --help message.
564 if test "$ac_init_help" = "long"; then
565 # Omit some internal or obsolete options to make the list less imposing.
566 # This message is too long to be a string in the A/UX 3.1 sh.
567 cat <<EOF
568 \`configure' configures this package to adapt to many kinds of systems.
570 Usage: $0 [OPTION]... [VAR=VALUE]...
572 To assign environment variables (e.g., CC, CFLAGS...), specify them as
573 VAR=VALUE. See below for descriptions of some of the useful variables.
575 Defaults for the options are specified in brackets.
577 Configuration:
578 -h, --help display this help and exit
579 --help=short display options specific to this package
580 --help=recursive display the short help of all the included packages
581 -V, --version display version information and exit
582 -q, --quiet, --silent do not print \`checking...' messages
583 --cache-file=FILE cache test results in FILE [disabled]
584 -C, --config-cache alias for \`--cache-file=config.cache'
585 -n, --no-create do not create output files
586 --srcdir=DIR find the sources in DIR [configure dir or \`..']
590 cat <<EOF
591 Installation directories:
592 --prefix=PREFIX install architecture-independent files in PREFIX
593 [$ac_default_prefix]
594 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
595 [PREFIX]
597 By default, \`make install' will install all the files in
598 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
599 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
600 for instance \`--prefix=\$HOME'.
602 For better control, use the options below.
604 Fine tuning of the installation directories:
605 --bindir=DIR user executables [EPREFIX/bin]
606 --sbindir=DIR system admin executables [EPREFIX/sbin]
607 --libexecdir=DIR program executables [EPREFIX/libexec]
608 --datadir=DIR read-only architecture-independent data [PREFIX/share]
609 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
610 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
611 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
612 --libdir=DIR object code libraries [EPREFIX/lib]
613 --includedir=DIR C header files [PREFIX/include]
614 --oldincludedir=DIR C header files for non-gcc [/usr/include]
615 --infodir=DIR info documentation [PREFIX/info]
616 --mandir=DIR man documentation [PREFIX/man]
619 cat <<\EOF
621 Program names:
622 --program-prefix=PREFIX prepend PREFIX to installed program names
623 --program-suffix=SUFFIX append SUFFIX to installed program names
624 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
626 X features:
627 --x-includes=DIR X include files are in DIR
628 --x-libraries=DIR X library files are in DIR
630 System types:
631 --build=BUILD configure for building on BUILD [guessed]
632 --host=HOST build programs to run on HOST [BUILD]
636 if test -n "$ac_init_help"; then
638 cat <<\EOF
640 Optional Features:
641 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
642 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
643 --disable-dependency-tracking Speeds up one-time builds
644 --enable-dependency-tracking Do not reject slow dependency extractors
646 Optional Packages:
647 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
648 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
649 --with-x use the X Window System
651 Some influential environment variables:
652 CC C compiler command
653 CFLAGS C compiler flags
654 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
655 nonstandard directory <lib dir>
656 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
657 headers in a nonstandard directory <include dir>
658 CPP C preprocessor
660 Use these variables to override the choices made by `configure' or to help
661 it to find libraries and programs with nonstandard names/locations.
666 if test "$ac_init_help" = "recursive"; then
667 # If there are subdirs, report their specific --help.
668 ac_popdir=`pwd`
669 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
670 cd $ac_subdir
671 # A "../" for each directory in /$ac_subdir.
672 ac_dots=`echo $ac_subdir |
673 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
675 case $srcdir in
676 .) # No --srcdir option. We are building in place.
677 ac_sub_srcdir=$srcdir ;;
678 [\\/]* | ?:[\\/]* ) # Absolute path.
679 ac_sub_srcdir=$srcdir/$ac_subdir ;;
680 *) # Relative path.
681 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
682 esac
684 # Check for guested configure; otherwise get Cygnus style configure.
685 if test -f $ac_sub_srcdir/configure.gnu; then
686 echo
687 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
688 elif test -f $ac_sub_srcdir/configure; then
689 echo
690 $SHELL $ac_sub_srcdir/configure --help=recursive
691 elif test -f $ac_sub_srcdir/configure.ac ||
692 test -f $ac_sub_srcdir/configure.in; then
693 echo
694 $ac_configure --help
695 else
696 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
698 cd $ac_popdir
699 done
702 test -n "$ac_init_help" && exit 0
703 if $ac_init_version; then
704 cat <<\EOF
706 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
707 Free Software Foundation, Inc.
708 This configure script is free software; the Free Software Foundation
709 gives unlimited permission to copy, distribute and modify it.
711 exit 0
713 exec 5>config.log
714 cat >&5 <<EOF
715 This file contains any messages produced by compilers while
716 running configure, to aid debugging if configure makes a mistake.
718 It was created by $as_me, which was
719 generated by GNU Autoconf 2.52. Invocation command line was
721 $ $0 $@
725 cat <<_ASUNAME
726 ## ---------- ##
727 ## Platform. ##
728 ## ---------- ##
730 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
731 uname -m = `(uname -m) 2>/dev/null || echo unknown`
732 uname -r = `(uname -r) 2>/dev/null || echo unknown`
733 uname -s = `(uname -s) 2>/dev/null || echo unknown`
734 uname -v = `(uname -v) 2>/dev/null || echo unknown`
736 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
737 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
739 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
740 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
741 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
742 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
743 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
744 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
745 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
747 PATH = $PATH
749 _ASUNAME
750 } >&5
752 cat >&5 <<EOF
753 ## ------------ ##
754 ## Core tests. ##
755 ## ------------ ##
759 # Keep a trace of the command line.
760 # Strip out --no-create and --no-recursion so they do not pile up.
761 # Also quote any args containing shell meta-characters.
762 ac_configure_args=
763 ac_sep=
764 for ac_arg
766 case $ac_arg in
767 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
768 | --no-cr | --no-c) ;;
769 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
770 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
771 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
772 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
773 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
774 ac_sep=" " ;;
775 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
776 ac_sep=" " ;;
777 esac
778 # Get rid of the leading space.
779 done
781 # When interrupted or exit'd, cleanup temporary files, and complete
782 # config.log. We remove comments because anyway the quotes in there
783 # would cause problems or look ugly.
784 trap 'exit_status=$?
785 # Save into config.log some information that might help in debugging.
786 echo >&5
787 echo "## ----------------- ##" >&5
788 echo "## Cache variables. ##" >&5
789 echo "## ----------------- ##" >&5
790 echo >&5
791 # The following way of writing the cache mishandles newlines in values,
793 (set) 2>&1 |
794 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
795 *ac_space=\ *)
796 sed -n \
797 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
798 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
801 sed -n \
802 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
804 esac;
805 } >&5
806 sed "/^$/d" confdefs.h >conftest.log
807 if test -s conftest.log; then
808 echo >&5
809 echo "## ------------ ##" >&5
810 echo "## confdefs.h. ##" >&5
811 echo "## ------------ ##" >&5
812 echo >&5
813 cat conftest.log >&5
815 (echo; echo) >&5
816 test "$ac_signal" != 0 &&
817 echo "$as_me: caught signal $ac_signal" >&5
818 echo "$as_me: exit $exit_status" >&5
819 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
820 exit $exit_status
822 for ac_signal in 1 2 13 15; do
823 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
824 done
825 ac_signal=0
827 # confdefs.h avoids OS command line length limits that DEFS can exceed.
828 rm -rf conftest* confdefs.h
829 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
830 echo >confdefs.h
832 # Let the site file select an alternate cache file if it wants to.
833 # Prefer explicitly selected file to automatically selected ones.
834 if test -z "$CONFIG_SITE"; then
835 if test "x$prefix" != xNONE; then
836 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
837 else
838 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
841 for ac_site_file in $CONFIG_SITE; do
842 if test -r "$ac_site_file"; then
843 { echo "$as_me:843: loading site script $ac_site_file" >&5
844 echo "$as_me: loading site script $ac_site_file" >&6;}
845 cat "$ac_site_file" >&5
846 . "$ac_site_file"
848 done
850 if test -r "$cache_file"; then
851 # Some versions of bash will fail to source /dev/null (special
852 # files actually), so we avoid doing that.
853 if test -f "$cache_file"; then
854 { echo "$as_me:854: loading cache $cache_file" >&5
855 echo "$as_me: loading cache $cache_file" >&6;}
856 case $cache_file in
857 [\\/]* | ?:[\\/]* ) . $cache_file;;
858 *) . ./$cache_file;;
859 esac
861 else
862 { echo "$as_me:862: creating cache $cache_file" >&5
863 echo "$as_me: creating cache $cache_file" >&6;}
864 >$cache_file
867 # Check that the precious variables saved in the cache have kept the same
868 # value.
869 ac_cache_corrupted=false
870 for ac_var in `(set) 2>&1 |
871 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
872 eval ac_old_set=\$ac_cv_env_${ac_var}_set
873 eval ac_new_set=\$ac_env_${ac_var}_set
874 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
875 eval ac_new_val="\$ac_env_${ac_var}_value"
876 case $ac_old_set,$ac_new_set in
877 set,)
878 { echo "$as_me:878: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
879 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
880 ac_cache_corrupted=: ;;
881 ,set)
882 { echo "$as_me:882: error: \`$ac_var' was not set in the previous run" >&5
883 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
884 ac_cache_corrupted=: ;;
885 ,);;
887 if test "x$ac_old_val" != "x$ac_new_val"; then
888 { echo "$as_me:888: error: \`$ac_var' has changed since the previous run:" >&5
889 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
890 { echo "$as_me:890: former value: $ac_old_val" >&5
891 echo "$as_me: former value: $ac_old_val" >&2;}
892 { echo "$as_me:892: current value: $ac_new_val" >&5
893 echo "$as_me: current value: $ac_new_val" >&2;}
894 ac_cache_corrupted=:
895 fi;;
896 esac
897 # Pass precious variables to config.status. It doesn't matter if
898 # we pass some twice (in addition to the command line arguments).
899 if test "$ac_new_set" = set; then
900 case $ac_new_val in
901 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
902 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
903 ac_configure_args="$ac_configure_args '$ac_arg'"
905 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
907 esac
909 done
910 if $ac_cache_corrupted; then
911 { echo "$as_me:911: error: changes in the environment can compromise the build" >&5
912 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
913 { { echo "$as_me:913: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
914 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
915 { (exit 1); exit 1; }; }
918 ac_ext=c
919 ac_cpp='$CPP $CPPFLAGS'
920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
924 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
925 *c*,-n*) ECHO_N= ECHO_C='
926 ' ECHO_T=' ' ;;
927 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
928 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
929 esac
930 echo "#! $SHELL" >conftest.sh
931 echo "exit 0" >>conftest.sh
932 chmod +x conftest.sh
933 if { (echo "$as_me:933: PATH=\".;.\"; conftest.sh") >&5
934 (PATH=".;."; conftest.sh) 2>&5
935 ac_status=$?
936 echo "$as_me:936: \$? = $ac_status" >&5
937 (exit $ac_status); }; then
938 ac_path_separator=';'
939 else
940 ac_path_separator=:
942 PATH_SEPARATOR="$ac_path_separator"
943 rm -f conftest.sh
945 ac_aux_dir=
946 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
947 if test -f $ac_dir/install-sh; then
948 ac_aux_dir=$ac_dir
949 ac_install_sh="$ac_aux_dir/install-sh -c"
950 break
951 elif test -f $ac_dir/install.sh; then
952 ac_aux_dir=$ac_dir
953 ac_install_sh="$ac_aux_dir/install.sh -c"
954 break
955 elif test -f $ac_dir/shtool; then
956 ac_aux_dir=$ac_dir
957 ac_install_sh="$ac_aux_dir/shtool install -c"
958 break
960 done
961 if test -z "$ac_aux_dir"; then
962 { { echo "$as_me:962: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
963 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
964 { (exit 1); exit 1; }; }
966 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
967 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
968 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
970 # Make sure we can run config.sub.
971 $ac_config_sub sun4 >/dev/null 2>&1 ||
972 { { echo "$as_me:972: error: cannot run $ac_config_sub" >&5
973 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
974 { (exit 1); exit 1; }; }
976 echo "$as_me:976: checking build system type" >&5
977 echo $ECHO_N "checking build system type... $ECHO_C" >&6
978 if test "${ac_cv_build+set}" = set; then
979 echo $ECHO_N "(cached) $ECHO_C" >&6
980 else
981 ac_cv_build_alias=$build_alias
982 test -z "$ac_cv_build_alias" &&
983 ac_cv_build_alias=`$ac_config_guess`
984 test -z "$ac_cv_build_alias" &&
985 { { echo "$as_me:985: error: cannot guess build type; you must specify one" >&5
986 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
987 { (exit 1); exit 1; }; }
988 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
989 { { echo "$as_me:989: error: $ac_config_sub $ac_cv_build_alias failed." >&5
990 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
991 { (exit 1); exit 1; }; }
994 echo "$as_me:994: result: $ac_cv_build" >&5
995 echo "${ECHO_T}$ac_cv_build" >&6
996 build=$ac_cv_build
997 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
998 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
999 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1001 echo "$as_me:1001: checking host system type" >&5
1002 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1003 if test "${ac_cv_host+set}" = set; then
1004 echo $ECHO_N "(cached) $ECHO_C" >&6
1005 else
1006 ac_cv_host_alias=$host_alias
1007 test -z "$ac_cv_host_alias" &&
1008 ac_cv_host_alias=$ac_cv_build_alias
1009 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1010 { { echo "$as_me:1010: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1011 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1012 { (exit 1); exit 1; }; }
1015 echo "$as_me:1015: result: $ac_cv_host" >&5
1016 echo "${ECHO_T}$ac_cv_host" >&6
1017 host=$ac_cv_host
1018 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1019 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1020 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1022 # Find a good install program. We prefer a C program (faster),
1023 # so one script is as good as another. But avoid the broken or
1024 # incompatible versions:
1025 # SysV /etc/install, /usr/sbin/install
1026 # SunOS /usr/etc/install
1027 # IRIX /sbin/install
1028 # AIX /bin/install
1029 # AmigaOS /C/install, which installs bootblocks on floppy discs
1030 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1031 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1032 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1033 # ./install, which can be erroneously created by make from ./install.sh.
1034 echo "$as_me:1034: checking for a BSD compatible install" >&5
1035 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
1036 if test -z "$INSTALL"; then
1037 if test "${ac_cv_path_install+set}" = set; then
1038 echo $ECHO_N "(cached) $ECHO_C" >&6
1039 else
1040 ac_save_IFS=$IFS; IFS=$ac_path_separator
1041 for ac_dir in $PATH; do
1042 IFS=$ac_save_IFS
1043 # Account for people who put trailing slashes in PATH elements.
1044 case $ac_dir/ in
1045 / | ./ | .// | /cC/* \
1046 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
1047 | /usr/ucb/* ) ;;
1049 # OSF1 and SCO ODT 3.0 have their own names for install.
1050 # Don't use installbsd from OSF since it installs stuff as root
1051 # by default.
1052 for ac_prog in ginstall scoinst install; do
1053 if $as_executable_p "$ac_dir/$ac_prog"; then
1054 if test $ac_prog = install &&
1055 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1056 # AIX install. It has an incompatible calling convention.
1058 elif test $ac_prog = install &&
1059 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1060 # program-specific install script used by HP pwplus--don't use.
1062 else
1063 ac_cv_path_install="$ac_dir/$ac_prog -c"
1064 break 2
1067 done
1069 esac
1070 done
1073 if test "${ac_cv_path_install+set}" = set; then
1074 INSTALL=$ac_cv_path_install
1075 else
1076 # As a last resort, use the slow shell script. We don't cache a
1077 # path for INSTALL within a source directory, because that will
1078 # break other packages using the cache if that directory is
1079 # removed, or if the path is relative.
1080 INSTALL=$ac_install_sh
1083 echo "$as_me:1083: result: $INSTALL" >&5
1084 echo "${ECHO_T}$INSTALL" >&6
1086 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1087 # It thinks the first close brace ends the variable substitution.
1088 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1090 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1092 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1094 echo "$as_me:1094: checking whether build environment is sane" >&5
1095 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1096 # Just in case
1097 sleep 1
1098 echo timestamp > conftest.file
1099 # Do `set' in a subshell so we don't clobber the current shell's
1100 # arguments. Must try -L first in case configure is actually a
1101 # symlink; some systems play weird games with the mod time of symlinks
1102 # (eg FreeBSD returns the mod time of the symlink's containing
1103 # directory).
1104 if (
1105 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1106 if test "$*" = "X"; then
1107 # -L didn't work.
1108 set X `ls -t $srcdir/configure conftest.file`
1110 rm -f conftest.file
1111 if test "$*" != "X $srcdir/configure conftest.file" \
1112 && test "$*" != "X conftest.file $srcdir/configure"; then
1114 # If neither matched, then we have a broken ls. This can happen
1115 # if, for instance, CONFIG_SHELL is bash and it inherits a
1116 # broken ls alias from the environment. This has actually
1117 # happened. Such a system could not be considered "sane".
1118 { { echo "$as_me:1118: error: ls -t appears to fail. Make sure there is not a broken
1119 alias in your environment" >&5
1120 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1121 alias in your environment" >&2;}
1122 { (exit 1); exit 1; }; }
1125 test "$2" = conftest.file
1127 then
1128 # Ok.
1130 else
1131 { { echo "$as_me:1131: error: newly created file is older than distributed files!
1132 Check your system clock" >&5
1133 echo "$as_me: error: newly created file is older than distributed files!
1134 Check your system clock" >&2;}
1135 { (exit 1); exit 1; }; }
1137 echo "$as_me:1137: result: yes" >&5
1138 echo "${ECHO_T}yes" >&6
1139 test "$program_prefix" != NONE &&
1140 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1141 # Use a double $ so make ignores it.
1142 test "$program_suffix" != NONE &&
1143 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1144 # Double any \ or $. echo might interpret backslashes.
1145 # By default was `s,x,x', remove it if useless.
1146 cat <<\_ACEOF >conftest.sed
1147 s/[\\$]/&&/g;s/;s,x,x,$//
1148 _ACEOF
1149 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1150 rm conftest.sed
1152 # expand $ac_aux_dir to an absolute path
1153 am_aux_dir=`CDPATH=:; cd $ac_aux_dir && pwd`
1155 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1156 # Use eval to expand $SHELL
1157 if eval "$MISSING --run true"; then
1158 am_missing_run="$MISSING --run "
1159 else
1160 am_missing_run=
1161 am_backtick='`'
1162 { echo "$as_me:1162: WARNING: ${am_backtick}missing' script is too old or missing" >&5
1163 echo "$as_me: WARNING: ${am_backtick}missing' script is too old or missing" >&2;}
1166 for ac_prog in mawk gawk nawk awk
1168 # Extract the first word of "$ac_prog", so it can be a program name with args.
1169 set dummy $ac_prog; ac_word=$2
1170 echo "$as_me:1170: checking for $ac_word" >&5
1171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1172 if test "${ac_cv_prog_AWK+set}" = set; then
1173 echo $ECHO_N "(cached) $ECHO_C" >&6
1174 else
1175 if test -n "$AWK"; then
1176 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1177 else
1178 ac_save_IFS=$IFS; IFS=$ac_path_separator
1179 ac_dummy="$PATH"
1180 for ac_dir in $ac_dummy; do
1181 IFS=$ac_save_IFS
1182 test -z "$ac_dir" && ac_dir=.
1183 $as_executable_p "$ac_dir/$ac_word" || continue
1184 ac_cv_prog_AWK="$ac_prog"
1185 echo "$as_me:1185: found $ac_dir/$ac_word" >&5
1186 break
1187 done
1191 AWK=$ac_cv_prog_AWK
1192 if test -n "$AWK"; then
1193 echo "$as_me:1193: result: $AWK" >&5
1194 echo "${ECHO_T}$AWK" >&6
1195 else
1196 echo "$as_me:1196: result: no" >&5
1197 echo "${ECHO_T}no" >&6
1200 test -n "$AWK" && break
1201 done
1203 echo "$as_me:1203: checking whether ${MAKE-make} sets \${MAKE}" >&5
1204 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1205 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1206 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1207 echo $ECHO_N "(cached) $ECHO_C" >&6
1208 else
1209 cat >conftest.make <<\EOF
1210 all:
1211 @echo 'ac_maketemp="${MAKE}"'
1213 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1214 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1215 if test -n "$ac_maketemp"; then
1216 eval ac_cv_prog_make_${ac_make}_set=yes
1217 else
1218 eval ac_cv_prog_make_${ac_make}_set=no
1220 rm -f conftest.make
1222 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1223 echo "$as_me:1223: result: yes" >&5
1224 echo "${ECHO_T}yes" >&6
1225 SET_MAKE=
1226 else
1227 echo "$as_me:1227: result: no" >&5
1228 echo "${ECHO_T}no" >&6
1229 SET_MAKE="MAKE=${MAKE-make}"
1232 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1233 if test "${enable_dependency_tracking+set}" = set; then
1234 enableval="$enable_dependency_tracking"
1237 if test "x$enable_dependency_tracking" != xno; then
1238 am_depcomp="$ac_aux_dir/depcomp"
1239 AMDEPBACKSLASH='\'
1242 if test "x$enable_dependency_tracking" != xno; then
1243 AMDEP_TRUE=
1244 AMDEP_FALSE='#'
1245 else
1246 AMDEP_TRUE='#'
1247 AMDEP_FALSE=
1250 rm -f .deps 2>/dev/null
1251 mkdir .deps 2>/dev/null
1252 if test -d .deps; then
1253 DEPDIR=.deps
1254 else
1255 # MS-DOS does not allow filenames that begin with a dot.
1256 DEPDIR=_deps
1258 rmdir .deps 2>/dev/null
1260 # test to see if srcdir already configured
1261 if test "`CDPATH=:; cd $srcdir && pwd`" != "`pwd`" &&
1262 test -f $srcdir/config.status; then
1263 { { echo "$as_me:1263: error: source directory already configured; run \"make distclean\" there first" >&5
1264 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1265 { (exit 1); exit 1; }; }
1268 # Define the identity of the package.
1269 PACKAGE=gliv
1270 VERSION="1.3.1"
1272 cat >>confdefs.h <<EOF
1273 #define PACKAGE "$PACKAGE"
1276 cat >>confdefs.h <<EOF
1277 #define VERSION "$VERSION"
1280 # Autoconf 2.50 wants to disallow AM_ names. We explicitly allow
1281 # the ones we care about.
1283 # Autoconf 2.50 always computes EXEEXT. However we need to be
1284 # compatible with 2.13, for now. So we always define EXEEXT, but we
1285 # don't compute it.
1287 # Similar for OBJEXT -- only we only use OBJEXT if the user actually
1288 # requests that it be used. This is a bit dumb.
1289 : ${OBJEXT=o}
1291 # Some tools Automake needs.
1293 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
1295 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1297 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
1299 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1301 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1303 AMTAR=${AMTAR-"${am_missing_run}tar"}
1305 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1307 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1309 # We need awk for the "check" target. The system "awk" is bad on
1310 # some platforms.
1312 ac_ext=c
1313 ac_cpp='$CPP $CPPFLAGS'
1314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1317 if test -n "$ac_tool_prefix"; then
1318 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1319 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1320 echo "$as_me:1320: checking for $ac_word" >&5
1321 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1322 if test "${ac_cv_prog_CC+set}" = set; then
1323 echo $ECHO_N "(cached) $ECHO_C" >&6
1324 else
1325 if test -n "$CC"; then
1326 ac_cv_prog_CC="$CC" # Let the user override the test.
1327 else
1328 ac_save_IFS=$IFS; IFS=$ac_path_separator
1329 ac_dummy="$PATH"
1330 for ac_dir in $ac_dummy; do
1331 IFS=$ac_save_IFS
1332 test -z "$ac_dir" && ac_dir=.
1333 $as_executable_p "$ac_dir/$ac_word" || continue
1334 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1335 echo "$as_me:1335: found $ac_dir/$ac_word" >&5
1336 break
1337 done
1341 CC=$ac_cv_prog_CC
1342 if test -n "$CC"; then
1343 echo "$as_me:1343: result: $CC" >&5
1344 echo "${ECHO_T}$CC" >&6
1345 else
1346 echo "$as_me:1346: result: no" >&5
1347 echo "${ECHO_T}no" >&6
1351 if test -z "$ac_cv_prog_CC"; then
1352 ac_ct_CC=$CC
1353 # Extract the first word of "gcc", so it can be a program name with args.
1354 set dummy gcc; ac_word=$2
1355 echo "$as_me:1355: checking for $ac_word" >&5
1356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1357 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1358 echo $ECHO_N "(cached) $ECHO_C" >&6
1359 else
1360 if test -n "$ac_ct_CC"; then
1361 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1362 else
1363 ac_save_IFS=$IFS; IFS=$ac_path_separator
1364 ac_dummy="$PATH"
1365 for ac_dir in $ac_dummy; do
1366 IFS=$ac_save_IFS
1367 test -z "$ac_dir" && ac_dir=.
1368 $as_executable_p "$ac_dir/$ac_word" || continue
1369 ac_cv_prog_ac_ct_CC="gcc"
1370 echo "$as_me:1370: found $ac_dir/$ac_word" >&5
1371 break
1372 done
1376 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1377 if test -n "$ac_ct_CC"; then
1378 echo "$as_me:1378: result: $ac_ct_CC" >&5
1379 echo "${ECHO_T}$ac_ct_CC" >&6
1380 else
1381 echo "$as_me:1381: result: no" >&5
1382 echo "${ECHO_T}no" >&6
1385 CC=$ac_ct_CC
1386 else
1387 CC="$ac_cv_prog_CC"
1390 if test -z "$CC"; then
1391 if test -n "$ac_tool_prefix"; then
1392 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1393 set dummy ${ac_tool_prefix}cc; ac_word=$2
1394 echo "$as_me:1394: checking for $ac_word" >&5
1395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1396 if test "${ac_cv_prog_CC+set}" = set; then
1397 echo $ECHO_N "(cached) $ECHO_C" >&6
1398 else
1399 if test -n "$CC"; then
1400 ac_cv_prog_CC="$CC" # Let the user override the test.
1401 else
1402 ac_save_IFS=$IFS; IFS=$ac_path_separator
1403 ac_dummy="$PATH"
1404 for ac_dir in $ac_dummy; do
1405 IFS=$ac_save_IFS
1406 test -z "$ac_dir" && ac_dir=.
1407 $as_executable_p "$ac_dir/$ac_word" || continue
1408 ac_cv_prog_CC="${ac_tool_prefix}cc"
1409 echo "$as_me:1409: found $ac_dir/$ac_word" >&5
1410 break
1411 done
1415 CC=$ac_cv_prog_CC
1416 if test -n "$CC"; then
1417 echo "$as_me:1417: result: $CC" >&5
1418 echo "${ECHO_T}$CC" >&6
1419 else
1420 echo "$as_me:1420: result: no" >&5
1421 echo "${ECHO_T}no" >&6
1425 if test -z "$ac_cv_prog_CC"; then
1426 ac_ct_CC=$CC
1427 # Extract the first word of "cc", so it can be a program name with args.
1428 set dummy cc; ac_word=$2
1429 echo "$as_me:1429: checking for $ac_word" >&5
1430 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1431 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1432 echo $ECHO_N "(cached) $ECHO_C" >&6
1433 else
1434 if test -n "$ac_ct_CC"; then
1435 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1436 else
1437 ac_save_IFS=$IFS; IFS=$ac_path_separator
1438 ac_dummy="$PATH"
1439 for ac_dir in $ac_dummy; do
1440 IFS=$ac_save_IFS
1441 test -z "$ac_dir" && ac_dir=.
1442 $as_executable_p "$ac_dir/$ac_word" || continue
1443 ac_cv_prog_ac_ct_CC="cc"
1444 echo "$as_me:1444: found $ac_dir/$ac_word" >&5
1445 break
1446 done
1450 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1451 if test -n "$ac_ct_CC"; then
1452 echo "$as_me:1452: result: $ac_ct_CC" >&5
1453 echo "${ECHO_T}$ac_ct_CC" >&6
1454 else
1455 echo "$as_me:1455: result: no" >&5
1456 echo "${ECHO_T}no" >&6
1459 CC=$ac_ct_CC
1460 else
1461 CC="$ac_cv_prog_CC"
1465 if test -z "$CC"; then
1466 # Extract the first word of "cc", so it can be a program name with args.
1467 set dummy cc; ac_word=$2
1468 echo "$as_me:1468: checking for $ac_word" >&5
1469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1470 if test "${ac_cv_prog_CC+set}" = set; then
1471 echo $ECHO_N "(cached) $ECHO_C" >&6
1472 else
1473 if test -n "$CC"; then
1474 ac_cv_prog_CC="$CC" # Let the user override the test.
1475 else
1476 ac_prog_rejected=no
1477 ac_save_IFS=$IFS; IFS=$ac_path_separator
1478 ac_dummy="$PATH"
1479 for ac_dir in $ac_dummy; do
1480 IFS=$ac_save_IFS
1481 test -z "$ac_dir" && ac_dir=.
1482 $as_executable_p "$ac_dir/$ac_word" || continue
1483 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1484 ac_prog_rejected=yes
1485 continue
1487 ac_cv_prog_CC="cc"
1488 echo "$as_me:1488: found $ac_dir/$ac_word" >&5
1489 break
1490 done
1492 if test $ac_prog_rejected = yes; then
1493 # We found a bogon in the path, so make sure we never use it.
1494 set dummy $ac_cv_prog_CC
1495 shift
1496 if test $# != 0; then
1497 # We chose a different compiler from the bogus one.
1498 # However, it has the same basename, so the bogon will be chosen
1499 # first if we set CC to just the basename; use the full file name.
1500 shift
1501 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1502 shift
1503 ac_cv_prog_CC="$@"
1508 CC=$ac_cv_prog_CC
1509 if test -n "$CC"; then
1510 echo "$as_me:1510: result: $CC" >&5
1511 echo "${ECHO_T}$CC" >&6
1512 else
1513 echo "$as_me:1513: result: no" >&5
1514 echo "${ECHO_T}no" >&6
1518 if test -z "$CC"; then
1519 if test -n "$ac_tool_prefix"; then
1520 for ac_prog in cl
1522 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1523 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1524 echo "$as_me:1524: checking for $ac_word" >&5
1525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1526 if test "${ac_cv_prog_CC+set}" = set; then
1527 echo $ECHO_N "(cached) $ECHO_C" >&6
1528 else
1529 if test -n "$CC"; then
1530 ac_cv_prog_CC="$CC" # Let the user override the test.
1531 else
1532 ac_save_IFS=$IFS; IFS=$ac_path_separator
1533 ac_dummy="$PATH"
1534 for ac_dir in $ac_dummy; do
1535 IFS=$ac_save_IFS
1536 test -z "$ac_dir" && ac_dir=.
1537 $as_executable_p "$ac_dir/$ac_word" || continue
1538 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1539 echo "$as_me:1539: found $ac_dir/$ac_word" >&5
1540 break
1541 done
1545 CC=$ac_cv_prog_CC
1546 if test -n "$CC"; then
1547 echo "$as_me:1547: result: $CC" >&5
1548 echo "${ECHO_T}$CC" >&6
1549 else
1550 echo "$as_me:1550: result: no" >&5
1551 echo "${ECHO_T}no" >&6
1554 test -n "$CC" && break
1555 done
1557 if test -z "$CC"; then
1558 ac_ct_CC=$CC
1559 for ac_prog in cl
1561 # Extract the first word of "$ac_prog", so it can be a program name with args.
1562 set dummy $ac_prog; ac_word=$2
1563 echo "$as_me:1563: checking for $ac_word" >&5
1564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1565 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1566 echo $ECHO_N "(cached) $ECHO_C" >&6
1567 else
1568 if test -n "$ac_ct_CC"; then
1569 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1570 else
1571 ac_save_IFS=$IFS; IFS=$ac_path_separator
1572 ac_dummy="$PATH"
1573 for ac_dir in $ac_dummy; do
1574 IFS=$ac_save_IFS
1575 test -z "$ac_dir" && ac_dir=.
1576 $as_executable_p "$ac_dir/$ac_word" || continue
1577 ac_cv_prog_ac_ct_CC="$ac_prog"
1578 echo "$as_me:1578: found $ac_dir/$ac_word" >&5
1579 break
1580 done
1584 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1585 if test -n "$ac_ct_CC"; then
1586 echo "$as_me:1586: result: $ac_ct_CC" >&5
1587 echo "${ECHO_T}$ac_ct_CC" >&6
1588 else
1589 echo "$as_me:1589: result: no" >&5
1590 echo "${ECHO_T}no" >&6
1593 test -n "$ac_ct_CC" && break
1594 done
1596 CC=$ac_ct_CC
1601 test -z "$CC" && { { echo "$as_me:1601: error: no acceptable cc found in \$PATH" >&5
1602 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1603 { (exit 1); exit 1; }; }
1605 # Provide some information about the compiler.
1606 echo "$as_me:1606:" \
1607 "checking for C compiler version" >&5
1608 ac_compiler=`set X $ac_compile; echo $2`
1609 { (eval echo "$as_me:1609: \"$ac_compiler --version </dev/null >&5\"") >&5
1610 (eval $ac_compiler --version </dev/null >&5) 2>&5
1611 ac_status=$?
1612 echo "$as_me:1612: \$? = $ac_status" >&5
1613 (exit $ac_status); }
1614 { (eval echo "$as_me:1614: \"$ac_compiler -v </dev/null >&5\"") >&5
1615 (eval $ac_compiler -v </dev/null >&5) 2>&5
1616 ac_status=$?
1617 echo "$as_me:1617: \$? = $ac_status" >&5
1618 (exit $ac_status); }
1619 { (eval echo "$as_me:1619: \"$ac_compiler -V </dev/null >&5\"") >&5
1620 (eval $ac_compiler -V </dev/null >&5) 2>&5
1621 ac_status=$?
1622 echo "$as_me:1622: \$? = $ac_status" >&5
1623 (exit $ac_status); }
1625 cat >conftest.$ac_ext <<_ACEOF
1626 #line 1626 "configure"
1627 #include "confdefs.h"
1630 main ()
1634 return 0;
1636 _ACEOF
1637 ac_clean_files_save=$ac_clean_files
1638 ac_clean_files="$ac_clean_files a.out a.exe"
1639 # Try to create an executable without -o first, disregard a.out.
1640 # It will help us diagnose broken compilers, and finding out an intuition
1641 # of exeext.
1642 echo "$as_me:1642: checking for C compiler default output" >&5
1643 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1644 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1645 if { (eval echo "$as_me:1645: \"$ac_link_default\"") >&5
1646 (eval $ac_link_default) 2>&5
1647 ac_status=$?
1648 echo "$as_me:1648: \$? = $ac_status" >&5
1649 (exit $ac_status); }; then
1650 # Find the output, starting from the most likely. This scheme is
1651 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1652 # resort.
1653 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1654 ls a.out conftest 2>/dev/null;
1655 ls a.* conftest.* 2>/dev/null`; do
1656 case $ac_file in
1657 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1658 a.out ) # We found the default executable, but exeext='' is most
1659 # certainly right.
1660 break;;
1661 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1662 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1663 export ac_cv_exeext
1664 break;;
1665 * ) break;;
1666 esac
1667 done
1668 else
1669 echo "$as_me: failed program was:" >&5
1670 cat conftest.$ac_ext >&5
1671 { { echo "$as_me:1671: error: C compiler cannot create executables" >&5
1672 echo "$as_me: error: C compiler cannot create executables" >&2;}
1673 { (exit 77); exit 77; }; }
1676 ac_exeext=$ac_cv_exeext
1677 echo "$as_me:1677: result: $ac_file" >&5
1678 echo "${ECHO_T}$ac_file" >&6
1680 # Check the compiler produces executables we can run. If not, either
1681 # the compiler is broken, or we cross compile.
1682 echo "$as_me:1682: checking whether the C compiler works" >&5
1683 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1684 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1685 # If not cross compiling, check that we can run a simple program.
1686 if test "$cross_compiling" != yes; then
1687 if { ac_try='./$ac_file'
1688 { (eval echo "$as_me:1688: \"$ac_try\"") >&5
1689 (eval $ac_try) 2>&5
1690 ac_status=$?
1691 echo "$as_me:1691: \$? = $ac_status" >&5
1692 (exit $ac_status); }; }; then
1693 cross_compiling=no
1694 else
1695 if test "$cross_compiling" = maybe; then
1696 cross_compiling=yes
1697 else
1698 { { echo "$as_me:1698: error: cannot run C compiled programs.
1699 If you meant to cross compile, use \`--host'." >&5
1700 echo "$as_me: error: cannot run C compiled programs.
1701 If you meant to cross compile, use \`--host'." >&2;}
1702 { (exit 1); exit 1; }; }
1706 echo "$as_me:1706: result: yes" >&5
1707 echo "${ECHO_T}yes" >&6
1709 rm -f a.out a.exe conftest$ac_cv_exeext
1710 ac_clean_files=$ac_clean_files_save
1711 # Check the compiler produces executables we can run. If not, either
1712 # the compiler is broken, or we cross compile.
1713 echo "$as_me:1713: checking whether we are cross compiling" >&5
1714 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1715 echo "$as_me:1715: result: $cross_compiling" >&5
1716 echo "${ECHO_T}$cross_compiling" >&6
1718 echo "$as_me:1718: checking for executable suffix" >&5
1719 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1720 if { (eval echo "$as_me:1720: \"$ac_link\"") >&5
1721 (eval $ac_link) 2>&5
1722 ac_status=$?
1723 echo "$as_me:1723: \$? = $ac_status" >&5
1724 (exit $ac_status); }; then
1725 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1726 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1727 # work properly (i.e., refer to `conftest.exe'), while it won't with
1728 # `rm'.
1729 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1730 case $ac_file in
1731 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1732 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1733 export ac_cv_exeext
1734 break;;
1735 * ) break;;
1736 esac
1737 done
1738 else
1739 { { echo "$as_me:1739: error: cannot compute EXEEXT: cannot compile and link" >&5
1740 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1741 { (exit 1); exit 1; }; }
1744 rm -f conftest$ac_cv_exeext
1745 echo "$as_me:1745: result: $ac_cv_exeext" >&5
1746 echo "${ECHO_T}$ac_cv_exeext" >&6
1748 rm -f conftest.$ac_ext
1749 EXEEXT=$ac_cv_exeext
1750 ac_exeext=$EXEEXT
1751 echo "$as_me:1751: checking for object suffix" >&5
1752 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1753 if test "${ac_cv_objext+set}" = set; then
1754 echo $ECHO_N "(cached) $ECHO_C" >&6
1755 else
1756 cat >conftest.$ac_ext <<_ACEOF
1757 #line 1757 "configure"
1758 #include "confdefs.h"
1761 main ()
1765 return 0;
1767 _ACEOF
1768 rm -f conftest.o conftest.obj
1769 if { (eval echo "$as_me:1769: \"$ac_compile\"") >&5
1770 (eval $ac_compile) 2>&5
1771 ac_status=$?
1772 echo "$as_me:1772: \$? = $ac_status" >&5
1773 (exit $ac_status); }; then
1774 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1775 case $ac_file in
1776 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1777 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1778 break;;
1779 esac
1780 done
1781 else
1782 echo "$as_me: failed program was:" >&5
1783 cat conftest.$ac_ext >&5
1784 { { echo "$as_me:1784: error: cannot compute OBJEXT: cannot compile" >&5
1785 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1786 { (exit 1); exit 1; }; }
1789 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1791 echo "$as_me:1791: result: $ac_cv_objext" >&5
1792 echo "${ECHO_T}$ac_cv_objext" >&6
1793 OBJEXT=$ac_cv_objext
1794 ac_objext=$OBJEXT
1795 echo "$as_me:1795: checking whether we are using the GNU C compiler" >&5
1796 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1797 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1798 echo $ECHO_N "(cached) $ECHO_C" >&6
1799 else
1800 cat >conftest.$ac_ext <<_ACEOF
1801 #line 1801 "configure"
1802 #include "confdefs.h"
1805 main ()
1807 #ifndef __GNUC__
1808 choke me
1809 #endif
1812 return 0;
1814 _ACEOF
1815 rm -f conftest.$ac_objext
1816 if { (eval echo "$as_me:1816: \"$ac_compile\"") >&5
1817 (eval $ac_compile) 2>&5
1818 ac_status=$?
1819 echo "$as_me:1819: \$? = $ac_status" >&5
1820 (exit $ac_status); } &&
1821 { ac_try='test -s conftest.$ac_objext'
1822 { (eval echo "$as_me:1822: \"$ac_try\"") >&5
1823 (eval $ac_try) 2>&5
1824 ac_status=$?
1825 echo "$as_me:1825: \$? = $ac_status" >&5
1826 (exit $ac_status); }; }; then
1827 ac_compiler_gnu=yes
1828 else
1829 echo "$as_me: failed program was:" >&5
1830 cat conftest.$ac_ext >&5
1831 ac_compiler_gnu=no
1833 rm -f conftest.$ac_objext conftest.$ac_ext
1834 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1837 echo "$as_me:1837: result: $ac_cv_c_compiler_gnu" >&5
1838 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1839 GCC=`test $ac_compiler_gnu = yes && echo yes`
1840 ac_test_CFLAGS=${CFLAGS+set}
1841 ac_save_CFLAGS=$CFLAGS
1842 CFLAGS="-g"
1843 echo "$as_me:1843: checking whether $CC accepts -g" >&5
1844 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1845 if test "${ac_cv_prog_cc_g+set}" = set; then
1846 echo $ECHO_N "(cached) $ECHO_C" >&6
1847 else
1848 cat >conftest.$ac_ext <<_ACEOF
1849 #line 1849 "configure"
1850 #include "confdefs.h"
1853 main ()
1857 return 0;
1859 _ACEOF
1860 rm -f conftest.$ac_objext
1861 if { (eval echo "$as_me:1861: \"$ac_compile\"") >&5
1862 (eval $ac_compile) 2>&5
1863 ac_status=$?
1864 echo "$as_me:1864: \$? = $ac_status" >&5
1865 (exit $ac_status); } &&
1866 { ac_try='test -s conftest.$ac_objext'
1867 { (eval echo "$as_me:1867: \"$ac_try\"") >&5
1868 (eval $ac_try) 2>&5
1869 ac_status=$?
1870 echo "$as_me:1870: \$? = $ac_status" >&5
1871 (exit $ac_status); }; }; then
1872 ac_cv_prog_cc_g=yes
1873 else
1874 echo "$as_me: failed program was:" >&5
1875 cat conftest.$ac_ext >&5
1876 ac_cv_prog_cc_g=no
1878 rm -f conftest.$ac_objext conftest.$ac_ext
1880 echo "$as_me:1880: result: $ac_cv_prog_cc_g" >&5
1881 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1882 if test "$ac_test_CFLAGS" = set; then
1883 CFLAGS=$ac_save_CFLAGS
1884 elif test $ac_cv_prog_cc_g = yes; then
1885 if test "$GCC" = yes; then
1886 CFLAGS="-g -O2"
1887 else
1888 CFLAGS="-g"
1890 else
1891 if test "$GCC" = yes; then
1892 CFLAGS="-O2"
1893 else
1894 CFLAGS=
1897 # Some people use a C++ compiler to compile C. Since we use `exit',
1898 # in C++ we need to declare it. In case someone uses the same compiler
1899 # for both compiling C and C++ we need to have the C++ compiler decide
1900 # the declaration of exit, since it's the most demanding environment.
1901 cat >conftest.$ac_ext <<_ACEOF
1902 #ifndef __cplusplus
1903 choke me
1904 #endif
1905 _ACEOF
1906 rm -f conftest.$ac_objext
1907 if { (eval echo "$as_me:1907: \"$ac_compile\"") >&5
1908 (eval $ac_compile) 2>&5
1909 ac_status=$?
1910 echo "$as_me:1910: \$? = $ac_status" >&5
1911 (exit $ac_status); } &&
1912 { ac_try='test -s conftest.$ac_objext'
1913 { (eval echo "$as_me:1913: \"$ac_try\"") >&5
1914 (eval $ac_try) 2>&5
1915 ac_status=$?
1916 echo "$as_me:1916: \$? = $ac_status" >&5
1917 (exit $ac_status); }; }; then
1918 for ac_declaration in \
1920 '#include <stdlib.h>' \
1921 'extern "C" void std::exit (int) throw (); using std::exit;' \
1922 'extern "C" void std::exit (int); using std::exit;' \
1923 'extern "C" void exit (int) throw ();' \
1924 'extern "C" void exit (int);' \
1925 'void exit (int);'
1927 cat >conftest.$ac_ext <<_ACEOF
1928 #line 1928 "configure"
1929 #include "confdefs.h"
1930 #include <stdlib.h>
1931 $ac_declaration
1933 main ()
1935 exit (42);
1937 return 0;
1939 _ACEOF
1940 rm -f conftest.$ac_objext
1941 if { (eval echo "$as_me:1941: \"$ac_compile\"") >&5
1942 (eval $ac_compile) 2>&5
1943 ac_status=$?
1944 echo "$as_me:1944: \$? = $ac_status" >&5
1945 (exit $ac_status); } &&
1946 { ac_try='test -s conftest.$ac_objext'
1947 { (eval echo "$as_me:1947: \"$ac_try\"") >&5
1948 (eval $ac_try) 2>&5
1949 ac_status=$?
1950 echo "$as_me:1950: \$? = $ac_status" >&5
1951 (exit $ac_status); }; }; then
1953 else
1954 echo "$as_me: failed program was:" >&5
1955 cat conftest.$ac_ext >&5
1956 continue
1958 rm -f conftest.$ac_objext conftest.$ac_ext
1959 cat >conftest.$ac_ext <<_ACEOF
1960 #line 1960 "configure"
1961 #include "confdefs.h"
1962 $ac_declaration
1964 main ()
1966 exit (42);
1968 return 0;
1970 _ACEOF
1971 rm -f conftest.$ac_objext
1972 if { (eval echo "$as_me:1972: \"$ac_compile\"") >&5
1973 (eval $ac_compile) 2>&5
1974 ac_status=$?
1975 echo "$as_me:1975: \$? = $ac_status" >&5
1976 (exit $ac_status); } &&
1977 { ac_try='test -s conftest.$ac_objext'
1978 { (eval echo "$as_me:1978: \"$ac_try\"") >&5
1979 (eval $ac_try) 2>&5
1980 ac_status=$?
1981 echo "$as_me:1981: \$? = $ac_status" >&5
1982 (exit $ac_status); }; }; then
1983 break
1984 else
1985 echo "$as_me: failed program was:" >&5
1986 cat conftest.$ac_ext >&5
1988 rm -f conftest.$ac_objext conftest.$ac_ext
1989 done
1990 rm -f conftest*
1991 if test -n "$ac_declaration"; then
1992 echo '#ifdef __cplusplus' >>confdefs.h
1993 echo $ac_declaration >>confdefs.h
1994 echo '#endif' >>confdefs.h
1997 else
1998 echo "$as_me: failed program was:" >&5
1999 cat conftest.$ac_ext >&5
2001 rm -f conftest.$ac_objext conftest.$ac_ext
2002 ac_ext=c
2003 ac_cpp='$CPP $CPPFLAGS'
2004 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2005 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2006 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2008 ac_config_commands="$ac_config_commands default-1"
2010 am_make=${MAKE-make}
2011 cat > confinc << 'END'
2012 doit:
2013 @echo done
2015 # If we don't find an include directive, just comment out the code.
2016 echo "$as_me:2016: checking for style of include used by $am_make" >&5
2017 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2018 am__include='#'
2019 am__quote=
2020 _am_result=none
2021 # First try GNU make style include.
2022 echo "include confinc" > confmf
2023 # We grep out `Entering directory' and `Leaving directory'
2024 # messages which can occur if `w' ends up in MAKEFLAGS.
2025 # In particular we don't look at `^make:' because GNU make might
2026 # be invoked under some other name (usually "gmake"), in which
2027 # case it prints its new name instead of `make'.
2028 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2029 am__include=include
2030 am__quote=
2031 _am_result=GNU
2033 # Now try BSD make style include.
2034 if test "$am__include" = "#"; then
2035 echo '.include "confinc"' > confmf
2036 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2037 am__include=.include
2038 am__quote='"'
2039 _am_result=BSD
2043 echo "$as_me:2043: result: $_am_result" >&5
2044 echo "${ECHO_T}$_am_result" >&6
2045 rm -f confinc confmf
2047 depcc="$CC" am_compiler_list=
2049 echo "$as_me:2049: checking dependency style of $depcc" >&5
2050 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2051 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2052 echo $ECHO_N "(cached) $ECHO_C" >&6
2053 else
2054 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2055 # We make a subdir and do the tests there. Otherwise we can end up
2056 # making bogus files that we don't know about and never remove. For
2057 # instance it was reported that on HP-UX the gcc test will end up
2058 # making a dummy file named `D' -- because `-MD' means `put the output
2059 # in D'.
2060 mkdir conftest.dir
2061 # Copy depcomp to subdir because otherwise we won't find it if we're
2062 # using a relative directory.
2063 cp "$am_depcomp" conftest.dir
2064 cd conftest.dir
2066 am_cv_CC_dependencies_compiler_type=none
2067 if test "$am_compiler_list" = ""; then
2068 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2070 for depmode in $am_compiler_list; do
2071 # We need to recreate these files for each test, as the compiler may
2072 # overwrite some of them when testing with obscure command lines.
2073 # This happens at least with the AIX C compiler.
2074 echo '#include "conftest.h"' > conftest.c
2075 echo 'int i;' > conftest.h
2076 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2078 case $depmode in
2079 nosideeffect)
2080 # after this tag, mechanisms are not by side-effect, so they'll
2081 # only be used when explicitly requested
2082 if test "x$enable_dependency_tracking" = xyes; then
2083 continue
2084 else
2085 break
2088 none) break ;;
2089 esac
2090 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2091 # mode. It turns out that the SunPro C++ compiler does not properly
2092 # handle `-M -o', and we need to detect this.
2093 if depmode=$depmode \
2094 source=conftest.c object=conftest.o \
2095 depfile=conftest.Po tmpdepfile=conftest.TPo \
2096 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2097 grep conftest.h conftest.Po > /dev/null 2>&1 &&
2098 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2099 am_cv_CC_dependencies_compiler_type=$depmode
2100 break
2102 done
2104 cd ..
2105 rm -rf conftest.dir
2106 else
2107 am_cv_CC_dependencies_compiler_type=none
2111 echo "$as_me:2111: result: $am_cv_CC_dependencies_compiler_type" >&5
2112 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2113 CCDEPMODE="depmode=$am_cv_CC_dependencies_compiler_type"
2115 if test "x$GCC" = "xyes"; then
2116 if test "x$ac_test_CFLAGS" = "x"; then
2117 CFLAGS="-Wall -pipe -O3 -fomit-frame-pointer"
2119 if test "$build_cpu" = "$host_cpu"
2120 then # Extract the first word of "uname", so it can be a program name with args.
2121 set dummy uname; ac_word=$2
2122 echo "$as_me:2122: checking for $ac_word" >&5
2123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2124 if test "${ac_cv_path_UNAME+set}" = set; then
2125 echo $ECHO_N "(cached) $ECHO_C" >&6
2126 else
2127 case $UNAME in
2128 [\\/]* | ?:[\\/]*)
2129 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
2132 ac_save_IFS=$IFS; IFS=$ac_path_separator
2133 ac_dummy="$PATH"
2134 for ac_dir in $ac_dummy; do
2135 IFS=$ac_save_IFS
2136 test -z "$ac_dir" && ac_dir=.
2137 if $as_executable_p "$ac_dir/$ac_word"; then
2138 ac_cv_path_UNAME="$ac_dir/$ac_word"
2139 echo "$as_me:2139: found $ac_dir/$ac_word" >&5
2140 break
2142 done
2144 test -z "$ac_cv_path_UNAME" && ac_cv_path_UNAME="false"
2146 esac
2148 UNAME=$ac_cv_path_UNAME
2150 if test -n "$UNAME"; then
2151 echo "$as_me:2151: result: $UNAME" >&5
2152 echo "${ECHO_T}$UNAME" >&6
2153 else
2154 echo "$as_me:2154: result: no" >&5
2155 echo "${ECHO_T}no" >&6
2158 if test "$UNAME" != "false"; then
2159 uname_arch="`$UNAME -m`"
2161 echo "$as_me:2161: checking whether $CC accepts -march=$uname_arch" >&5
2162 echo $ECHO_N "checking whether $CC accepts -march=$uname_arch... $ECHO_C" >&6
2163 if $CC -march=$uname_arch -S -o /dev/null -xc /dev/null > /dev/null 2>&1
2164 then CFLAGS="-march=$uname_arch $CFLAGS"
2165 check_arch_cflag_res="yes"
2166 else
2167 check_arch_cflag_res="no"
2169 echo "$as_me:2169: result: $check_arch_cflags_res" >&5
2170 echo "${ECHO_T}$check_arch_cflags_res" >&6
2174 if test "x$check_arch_cflag_res" != "xyes"; then
2176 echo "$as_me:2176: checking whether $CC accepts -march=$host_cpu" >&5
2177 echo $ECHO_N "checking whether $CC accepts -march=$host_cpu... $ECHO_C" >&6
2178 if $CC -march=$host_cpu -S -o /dev/null -xc /dev/null > /dev/null 2>&1
2179 then CFLAGS="-march=$host_cpu $CFLAGS"
2180 check_arch_cflag_res="yes"
2181 else
2182 check_arch_cflag_res="no"
2184 echo "$as_me:2184: result: $check_arch_cflags_res" >&5
2185 echo "${ECHO_T}$check_arch_cflags_res" >&6
2190 if test "x$LDFLAGS" = "x"; then
2191 LDFLAGS="-Wl,-O1"
2195 echo "$as_me:2195: checking for ceil in -lm" >&5
2196 echo $ECHO_N "checking for ceil in -lm... $ECHO_C" >&6
2197 if test "${ac_cv_lib_m_ceil+set}" = set; then
2198 echo $ECHO_N "(cached) $ECHO_C" >&6
2199 else
2200 ac_check_lib_save_LIBS=$LIBS
2201 LIBS="-lm $LIBS"
2202 cat >conftest.$ac_ext <<_ACEOF
2203 #line 2203 "configure"
2204 #include "confdefs.h"
2206 /* Override any gcc2 internal prototype to avoid an error. */
2207 #ifdef __cplusplus
2208 extern "C"
2209 #endif
2210 /* We use char because int might match the return type of a gcc2
2211 builtin and then its argument prototype would still apply. */
2212 char ceil ();
2214 main ()
2216 ceil ();
2218 return 0;
2220 _ACEOF
2221 rm -f conftest.$ac_objext conftest$ac_exeext
2222 if { (eval echo "$as_me:2222: \"$ac_link\"") >&5
2223 (eval $ac_link) 2>&5
2224 ac_status=$?
2225 echo "$as_me:2225: \$? = $ac_status" >&5
2226 (exit $ac_status); } &&
2227 { ac_try='test -s conftest$ac_exeext'
2228 { (eval echo "$as_me:2228: \"$ac_try\"") >&5
2229 (eval $ac_try) 2>&5
2230 ac_status=$?
2231 echo "$as_me:2231: \$? = $ac_status" >&5
2232 (exit $ac_status); }; }; then
2233 ac_cv_lib_m_ceil=yes
2234 else
2235 echo "$as_me: failed program was:" >&5
2236 cat conftest.$ac_ext >&5
2237 ac_cv_lib_m_ceil=no
2239 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2240 LIBS=$ac_check_lib_save_LIBS
2242 echo "$as_me:2242: result: $ac_cv_lib_m_ceil" >&5
2243 echo "${ECHO_T}$ac_cv_lib_m_ceil" >&6
2244 if test $ac_cv_lib_m_ceil = yes; then
2246 LDFLAGS="-lm $LDFLAGS"
2248 else
2250 { { echo "$as_me:2250: error: Cannot use -lm" >&5
2251 echo "$as_me: error: Cannot use -lm" >&2;}
2252 { (exit 1); exit 1; }; }
2256 echo "$as_me:2256: checking for ceilf" >&5
2257 echo $ECHO_N "checking for ceilf... $ECHO_C" >&6
2258 if test "${ac_cv_func_ceilf+set}" = set; then
2259 echo $ECHO_N "(cached) $ECHO_C" >&6
2260 else
2261 cat >conftest.$ac_ext <<_ACEOF
2262 #line 2262 "configure"
2263 #include "confdefs.h"
2264 /* System header to define __stub macros and hopefully few prototypes,
2265 which can conflict with char ceilf (); below. */
2266 #include <assert.h>
2267 /* Override any gcc2 internal prototype to avoid an error. */
2268 #ifdef __cplusplus
2269 extern "C"
2270 #endif
2271 /* We use char because int might match the return type of a gcc2
2272 builtin and then its argument prototype would still apply. */
2273 char ceilf ();
2274 char (*f) ();
2277 main ()
2279 /* The GNU C library defines this for functions which it implements
2280 to always fail with ENOSYS. Some functions are actually named
2281 something starting with __ and the normal name is an alias. */
2282 #if defined (__stub_ceilf) || defined (__stub___ceilf)
2283 choke me
2284 #else
2285 f = ceilf;
2286 #endif
2289 return 0;
2291 _ACEOF
2292 rm -f conftest.$ac_objext conftest$ac_exeext
2293 if { (eval echo "$as_me:2293: \"$ac_link\"") >&5
2294 (eval $ac_link) 2>&5
2295 ac_status=$?
2296 echo "$as_me:2296: \$? = $ac_status" >&5
2297 (exit $ac_status); } &&
2298 { ac_try='test -s conftest$ac_exeext'
2299 { (eval echo "$as_me:2299: \"$ac_try\"") >&5
2300 (eval $ac_try) 2>&5
2301 ac_status=$?
2302 echo "$as_me:2302: \$? = $ac_status" >&5
2303 (exit $ac_status); }; }; then
2304 ac_cv_func_ceilf=yes
2305 else
2306 echo "$as_me: failed program was:" >&5
2307 cat conftest.$ac_ext >&5
2308 ac_cv_func_ceilf=no
2310 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2312 echo "$as_me:2312: result: $ac_cv_func_ceilf" >&5
2313 echo "${ECHO_T}$ac_cv_func_ceilf" >&6
2314 if test $ac_cv_func_ceilf = yes; then
2315 cat >>confdefs.h <<\EOF
2316 #define HAVE_CEILF 1
2321 echo "$as_me:2321: checking for fabsf" >&5
2322 echo $ECHO_N "checking for fabsf... $ECHO_C" >&6
2323 if test "${ac_cv_func_fabsf+set}" = set; then
2324 echo $ECHO_N "(cached) $ECHO_C" >&6
2325 else
2326 cat >conftest.$ac_ext <<_ACEOF
2327 #line 2327 "configure"
2328 #include "confdefs.h"
2329 /* System header to define __stub macros and hopefully few prototypes,
2330 which can conflict with char fabsf (); below. */
2331 #include <assert.h>
2332 /* Override any gcc2 internal prototype to avoid an error. */
2333 #ifdef __cplusplus
2334 extern "C"
2335 #endif
2336 /* We use char because int might match the return type of a gcc2
2337 builtin and then its argument prototype would still apply. */
2338 char fabsf ();
2339 char (*f) ();
2342 main ()
2344 /* The GNU C library defines this for functions which it implements
2345 to always fail with ENOSYS. Some functions are actually named
2346 something starting with __ and the normal name is an alias. */
2347 #if defined (__stub_fabsf) || defined (__stub___fabsf)
2348 choke me
2349 #else
2350 f = fabsf;
2351 #endif
2354 return 0;
2356 _ACEOF
2357 rm -f conftest.$ac_objext conftest$ac_exeext
2358 if { (eval echo "$as_me:2358: \"$ac_link\"") >&5
2359 (eval $ac_link) 2>&5
2360 ac_status=$?
2361 echo "$as_me:2361: \$? = $ac_status" >&5
2362 (exit $ac_status); } &&
2363 { ac_try='test -s conftest$ac_exeext'
2364 { (eval echo "$as_me:2364: \"$ac_try\"") >&5
2365 (eval $ac_try) 2>&5
2366 ac_status=$?
2367 echo "$as_me:2367: \$? = $ac_status" >&5
2368 (exit $ac_status); }; }; then
2369 ac_cv_func_fabsf=yes
2370 else
2371 echo "$as_me: failed program was:" >&5
2372 cat conftest.$ac_ext >&5
2373 ac_cv_func_fabsf=no
2375 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2377 echo "$as_me:2377: result: $ac_cv_func_fabsf" >&5
2378 echo "${ECHO_T}$ac_cv_func_fabsf" >&6
2379 if test $ac_cv_func_fabsf = yes; then
2380 cat >>confdefs.h <<\EOF
2381 #define HAVE_FABSF 1
2386 echo "$as_me:2386: checking for fminf" >&5
2387 echo $ECHO_N "checking for fminf... $ECHO_C" >&6
2388 if test "${ac_cv_func_fminf+set}" = set; then
2389 echo $ECHO_N "(cached) $ECHO_C" >&6
2390 else
2391 cat >conftest.$ac_ext <<_ACEOF
2392 #line 2392 "configure"
2393 #include "confdefs.h"
2394 /* System header to define __stub macros and hopefully few prototypes,
2395 which can conflict with char fminf (); below. */
2396 #include <assert.h>
2397 /* Override any gcc2 internal prototype to avoid an error. */
2398 #ifdef __cplusplus
2399 extern "C"
2400 #endif
2401 /* We use char because int might match the return type of a gcc2
2402 builtin and then its argument prototype would still apply. */
2403 char fminf ();
2404 char (*f) ();
2407 main ()
2409 /* The GNU C library defines this for functions which it implements
2410 to always fail with ENOSYS. Some functions are actually named
2411 something starting with __ and the normal name is an alias. */
2412 #if defined (__stub_fminf) || defined (__stub___fminf)
2413 choke me
2414 #else
2415 f = fminf;
2416 #endif
2419 return 0;
2421 _ACEOF
2422 rm -f conftest.$ac_objext conftest$ac_exeext
2423 if { (eval echo "$as_me:2423: \"$ac_link\"") >&5
2424 (eval $ac_link) 2>&5
2425 ac_status=$?
2426 echo "$as_me:2426: \$? = $ac_status" >&5
2427 (exit $ac_status); } &&
2428 { ac_try='test -s conftest$ac_exeext'
2429 { (eval echo "$as_me:2429: \"$ac_try\"") >&5
2430 (eval $ac_try) 2>&5
2431 ac_status=$?
2432 echo "$as_me:2432: \$? = $ac_status" >&5
2433 (exit $ac_status); }; }; then
2434 ac_cv_func_fminf=yes
2435 else
2436 echo "$as_me: failed program was:" >&5
2437 cat conftest.$ac_ext >&5
2438 ac_cv_func_fminf=no
2440 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2442 echo "$as_me:2442: result: $ac_cv_func_fminf" >&5
2443 echo "${ECHO_T}$ac_cv_func_fminf" >&6
2444 if test $ac_cv_func_fminf = yes; then
2445 cat >>confdefs.h <<\EOF
2446 #define HAVE_FMINF 1
2451 echo "$as_me:2451: checking for logf" >&5
2452 echo $ECHO_N "checking for logf... $ECHO_C" >&6
2453 if test "${ac_cv_func_logf+set}" = set; then
2454 echo $ECHO_N "(cached) $ECHO_C" >&6
2455 else
2456 cat >conftest.$ac_ext <<_ACEOF
2457 #line 2457 "configure"
2458 #include "confdefs.h"
2459 /* System header to define __stub macros and hopefully few prototypes,
2460 which can conflict with char logf (); below. */
2461 #include <assert.h>
2462 /* Override any gcc2 internal prototype to avoid an error. */
2463 #ifdef __cplusplus
2464 extern "C"
2465 #endif
2466 /* We use char because int might match the return type of a gcc2
2467 builtin and then its argument prototype would still apply. */
2468 char logf ();
2469 char (*f) ();
2472 main ()
2474 /* The GNU C library defines this for functions which it implements
2475 to always fail with ENOSYS. Some functions are actually named
2476 something starting with __ and the normal name is an alias. */
2477 #if defined (__stub_logf) || defined (__stub___logf)
2478 choke me
2479 #else
2480 f = logf;
2481 #endif
2484 return 0;
2486 _ACEOF
2487 rm -f conftest.$ac_objext conftest$ac_exeext
2488 if { (eval echo "$as_me:2488: \"$ac_link\"") >&5
2489 (eval $ac_link) 2>&5
2490 ac_status=$?
2491 echo "$as_me:2491: \$? = $ac_status" >&5
2492 (exit $ac_status); } &&
2493 { ac_try='test -s conftest$ac_exeext'
2494 { (eval echo "$as_me:2494: \"$ac_try\"") >&5
2495 (eval $ac_try) 2>&5
2496 ac_status=$?
2497 echo "$as_me:2497: \$? = $ac_status" >&5
2498 (exit $ac_status); }; }; then
2499 ac_cv_func_logf=yes
2500 else
2501 echo "$as_me: failed program was:" >&5
2502 cat conftest.$ac_ext >&5
2503 ac_cv_func_logf=no
2505 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2507 echo "$as_me:2507: result: $ac_cv_func_logf" >&5
2508 echo "${ECHO_T}$ac_cv_func_logf" >&6
2509 if test $ac_cv_func_logf = yes; then
2510 cat >>confdefs.h <<\EOF
2511 #define HAVE_LOGF 1
2516 echo "$as_me:2516: checking for ftw" >&5
2517 echo $ECHO_N "checking for ftw... $ECHO_C" >&6
2518 if test "${ac_cv_func_ftw+set}" = set; then
2519 echo $ECHO_N "(cached) $ECHO_C" >&6
2520 else
2521 cat >conftest.$ac_ext <<_ACEOF
2522 #line 2522 "configure"
2523 #include "confdefs.h"
2524 /* System header to define __stub macros and hopefully few prototypes,
2525 which can conflict with char ftw (); below. */
2526 #include <assert.h>
2527 /* Override any gcc2 internal prototype to avoid an error. */
2528 #ifdef __cplusplus
2529 extern "C"
2530 #endif
2531 /* We use char because int might match the return type of a gcc2
2532 builtin and then its argument prototype would still apply. */
2533 char ftw ();
2534 char (*f) ();
2537 main ()
2539 /* The GNU C library defines this for functions which it implements
2540 to always fail with ENOSYS. Some functions are actually named
2541 something starting with __ and the normal name is an alias. */
2542 #if defined (__stub_ftw) || defined (__stub___ftw)
2543 choke me
2544 #else
2545 f = ftw;
2546 #endif
2549 return 0;
2551 _ACEOF
2552 rm -f conftest.$ac_objext conftest$ac_exeext
2553 if { (eval echo "$as_me:2553: \"$ac_link\"") >&5
2554 (eval $ac_link) 2>&5
2555 ac_status=$?
2556 echo "$as_me:2556: \$? = $ac_status" >&5
2557 (exit $ac_status); } &&
2558 { ac_try='test -s conftest$ac_exeext'
2559 { (eval echo "$as_me:2559: \"$ac_try\"") >&5
2560 (eval $ac_try) 2>&5
2561 ac_status=$?
2562 echo "$as_me:2562: \$? = $ac_status" >&5
2563 (exit $ac_status); }; }; then
2564 ac_cv_func_ftw=yes
2565 else
2566 echo "$as_me: failed program was:" >&5
2567 cat conftest.$ac_ext >&5
2568 ac_cv_func_ftw=no
2570 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2572 echo "$as_me:2572: result: $ac_cv_func_ftw" >&5
2573 echo "${ECHO_T}$ac_cv_func_ftw" >&6
2574 if test $ac_cv_func_ftw = yes; then
2575 cat >>confdefs.h <<\EOF
2576 #define HAVE_FTW 1
2581 CFLAGS="$CFLAGS -D_GNU_SOURCE"
2582 echo "$as_me:2582: checking for getline" >&5
2583 echo $ECHO_N "checking for getline... $ECHO_C" >&6
2584 if test "${ac_cv_func_getline+set}" = set; then
2585 echo $ECHO_N "(cached) $ECHO_C" >&6
2586 else
2587 cat >conftest.$ac_ext <<_ACEOF
2588 #line 2588 "configure"
2589 #include "confdefs.h"
2590 /* System header to define __stub macros and hopefully few prototypes,
2591 which can conflict with char getline (); below. */
2592 #include <assert.h>
2593 /* Override any gcc2 internal prototype to avoid an error. */
2594 #ifdef __cplusplus
2595 extern "C"
2596 #endif
2597 /* We use char because int might match the return type of a gcc2
2598 builtin and then its argument prototype would still apply. */
2599 char getline ();
2600 char (*f) ();
2603 main ()
2605 /* The GNU C library defines this for functions which it implements
2606 to always fail with ENOSYS. Some functions are actually named
2607 something starting with __ and the normal name is an alias. */
2608 #if defined (__stub_getline) || defined (__stub___getline)
2609 choke me
2610 #else
2611 f = getline;
2612 #endif
2615 return 0;
2617 _ACEOF
2618 rm -f conftest.$ac_objext conftest$ac_exeext
2619 if { (eval echo "$as_me:2619: \"$ac_link\"") >&5
2620 (eval $ac_link) 2>&5
2621 ac_status=$?
2622 echo "$as_me:2622: \$? = $ac_status" >&5
2623 (exit $ac_status); } &&
2624 { ac_try='test -s conftest$ac_exeext'
2625 { (eval echo "$as_me:2625: \"$ac_try\"") >&5
2626 (eval $ac_try) 2>&5
2627 ac_status=$?
2628 echo "$as_me:2628: \$? = $ac_status" >&5
2629 (exit $ac_status); }; }; then
2630 ac_cv_func_getline=yes
2631 else
2632 echo "$as_me: failed program was:" >&5
2633 cat conftest.$ac_ext >&5
2634 ac_cv_func_getline=no
2636 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2638 echo "$as_me:2638: result: $ac_cv_func_getline" >&5
2639 echo "${ECHO_T}$ac_cv_func_getline" >&6
2640 if test $ac_cv_func_getline = yes; then
2641 cat >>confdefs.h <<\EOF
2642 #define HAVE_GETLINE 1
2647 ac_ext=c
2648 ac_cpp='$CPP $CPPFLAGS'
2649 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2650 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2651 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2652 echo "$as_me:2652: checking how to run the C preprocessor" >&5
2653 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2654 # On Suns, sometimes $CPP names a directory.
2655 if test -n "$CPP" && test -d "$CPP"; then
2656 CPP=
2658 if test -z "$CPP"; then
2659 if test "${ac_cv_prog_CPP+set}" = set; then
2660 echo $ECHO_N "(cached) $ECHO_C" >&6
2661 else
2662 # Double quotes because CPP needs to be expanded
2663 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2665 ac_preproc_ok=false
2666 for ac_c_preproc_warn_flag in '' yes
2668 # Use a header file that comes with gcc, so configuring glibc
2669 # with a fresh cross-compiler works.
2670 # On the NeXT, cc -E runs the code through the compiler's parser,
2671 # not just through cpp. "Syntax error" is here to catch this case.
2672 cat >conftest.$ac_ext <<_ACEOF
2673 #line 2673 "configure"
2674 #include "confdefs.h"
2675 #include <assert.h>
2676 Syntax error
2677 _ACEOF
2678 if { (eval echo "$as_me:2678: \"$ac_cpp conftest.$ac_ext\"") >&5
2679 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2680 ac_status=$?
2681 egrep -v '^ *\+' conftest.er1 >conftest.err
2682 rm -f conftest.er1
2683 cat conftest.err >&5
2684 echo "$as_me:2684: \$? = $ac_status" >&5
2685 (exit $ac_status); } >/dev/null; then
2686 if test -s conftest.err; then
2687 ac_cpp_err=$ac_c_preproc_warn_flag
2688 else
2689 ac_cpp_err=
2691 else
2692 ac_cpp_err=yes
2694 if test -z "$ac_cpp_err"; then
2696 else
2697 echo "$as_me: failed program was:" >&5
2698 cat conftest.$ac_ext >&5
2699 # Broken: fails on valid input.
2700 continue
2702 rm -f conftest.err conftest.$ac_ext
2704 # OK, works on sane cases. Now check whether non-existent headers
2705 # can be detected and how.
2706 cat >conftest.$ac_ext <<_ACEOF
2707 #line 2707 "configure"
2708 #include "confdefs.h"
2709 #include <ac_nonexistent.h>
2710 _ACEOF
2711 if { (eval echo "$as_me:2711: \"$ac_cpp conftest.$ac_ext\"") >&5
2712 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2713 ac_status=$?
2714 egrep -v '^ *\+' conftest.er1 >conftest.err
2715 rm -f conftest.er1
2716 cat conftest.err >&5
2717 echo "$as_me:2717: \$? = $ac_status" >&5
2718 (exit $ac_status); } >/dev/null; then
2719 if test -s conftest.err; then
2720 ac_cpp_err=$ac_c_preproc_warn_flag
2721 else
2722 ac_cpp_err=
2724 else
2725 ac_cpp_err=yes
2727 if test -z "$ac_cpp_err"; then
2728 # Broken: success on invalid input.
2729 continue
2730 else
2731 echo "$as_me: failed program was:" >&5
2732 cat conftest.$ac_ext >&5
2733 # Passes both tests.
2734 ac_preproc_ok=:
2735 break
2737 rm -f conftest.err conftest.$ac_ext
2739 done
2740 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2741 rm -f conftest.err conftest.$ac_ext
2742 if $ac_preproc_ok; then
2743 break
2746 done
2747 ac_cv_prog_CPP=$CPP
2750 CPP=$ac_cv_prog_CPP
2751 else
2752 ac_cv_prog_CPP=$CPP
2754 echo "$as_me:2754: result: $CPP" >&5
2755 echo "${ECHO_T}$CPP" >&6
2756 ac_preproc_ok=false
2757 for ac_c_preproc_warn_flag in '' yes
2759 # Use a header file that comes with gcc, so configuring glibc
2760 # with a fresh cross-compiler works.
2761 # On the NeXT, cc -E runs the code through the compiler's parser,
2762 # not just through cpp. "Syntax error" is here to catch this case.
2763 cat >conftest.$ac_ext <<_ACEOF
2764 #line 2764 "configure"
2765 #include "confdefs.h"
2766 #include <assert.h>
2767 Syntax error
2768 _ACEOF
2769 if { (eval echo "$as_me:2769: \"$ac_cpp conftest.$ac_ext\"") >&5
2770 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2771 ac_status=$?
2772 egrep -v '^ *\+' conftest.er1 >conftest.err
2773 rm -f conftest.er1
2774 cat conftest.err >&5
2775 echo "$as_me:2775: \$? = $ac_status" >&5
2776 (exit $ac_status); } >/dev/null; then
2777 if test -s conftest.err; then
2778 ac_cpp_err=$ac_c_preproc_warn_flag
2779 else
2780 ac_cpp_err=
2782 else
2783 ac_cpp_err=yes
2785 if test -z "$ac_cpp_err"; then
2787 else
2788 echo "$as_me: failed program was:" >&5
2789 cat conftest.$ac_ext >&5
2790 # Broken: fails on valid input.
2791 continue
2793 rm -f conftest.err conftest.$ac_ext
2795 # OK, works on sane cases. Now check whether non-existent headers
2796 # can be detected and how.
2797 cat >conftest.$ac_ext <<_ACEOF
2798 #line 2798 "configure"
2799 #include "confdefs.h"
2800 #include <ac_nonexistent.h>
2801 _ACEOF
2802 if { (eval echo "$as_me:2802: \"$ac_cpp conftest.$ac_ext\"") >&5
2803 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2804 ac_status=$?
2805 egrep -v '^ *\+' conftest.er1 >conftest.err
2806 rm -f conftest.er1
2807 cat conftest.err >&5
2808 echo "$as_me:2808: \$? = $ac_status" >&5
2809 (exit $ac_status); } >/dev/null; then
2810 if test -s conftest.err; then
2811 ac_cpp_err=$ac_c_preproc_warn_flag
2812 else
2813 ac_cpp_err=
2815 else
2816 ac_cpp_err=yes
2818 if test -z "$ac_cpp_err"; then
2819 # Broken: success on invalid input.
2820 continue
2821 else
2822 echo "$as_me: failed program was:" >&5
2823 cat conftest.$ac_ext >&5
2824 # Passes both tests.
2825 ac_preproc_ok=:
2826 break
2828 rm -f conftest.err conftest.$ac_ext
2830 done
2831 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2832 rm -f conftest.err conftest.$ac_ext
2833 if $ac_preproc_ok; then
2835 else
2836 { { echo "$as_me:2836: error: C preprocessor \"$CPP\" fails sanity check" >&5
2837 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2838 { (exit 1); exit 1; }; }
2841 ac_ext=c
2842 ac_cpp='$CPP $CPPFLAGS'
2843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2847 echo "$as_me:2847: checking for X" >&5
2848 echo $ECHO_N "checking for X... $ECHO_C" >&6
2850 # Check whether --with-x or --without-x was given.
2851 if test "${with_x+set}" = set; then
2852 withval="$with_x"
2855 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
2856 if test "x$with_x" = xno; then
2857 # The user explicitly disabled X.
2858 have_x=disabled
2859 else
2860 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
2861 # Both variables are already set.
2862 have_x=yes
2863 else
2864 if test "${ac_cv_have_x+set}" = set; then
2865 echo $ECHO_N "(cached) $ECHO_C" >&6
2866 else
2867 # One or both of the vars are not set, and there is no cached value.
2868 ac_x_includes=no ac_x_libraries=no
2869 rm -fr conftest.dir
2870 if mkdir conftest.dir; then
2871 cd conftest.dir
2872 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
2873 cat >Imakefile <<'EOF'
2874 acfindx:
2875 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
2877 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
2878 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2879 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
2880 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
2881 for ac_extension in a so sl; do
2882 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
2883 test -f $ac_im_libdir/libX11.$ac_extension; then
2884 ac_im_usrlibdir=$ac_im_libdir; break
2886 done
2887 # Screen out bogus values from the imake configuration. They are
2888 # bogus both because they are the default anyway, and because
2889 # using them would break gcc on systems where it needs fixed includes.
2890 case $ac_im_incroot in
2891 /usr/include) ;;
2892 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
2893 esac
2894 case $ac_im_usrlibdir in
2895 /usr/lib | /lib) ;;
2896 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
2897 esac
2899 cd ..
2900 rm -fr conftest.dir
2903 # Standard set of common directories for X headers.
2904 # Check X11 before X11Rn because it is often a symlink to the current release.
2905 ac_x_header_dirs='
2906 /usr/X11/include
2907 /usr/X11R6/include
2908 /usr/X11R5/include
2909 /usr/X11R4/include
2911 /usr/include/X11
2912 /usr/include/X11R6
2913 /usr/include/X11R5
2914 /usr/include/X11R4
2916 /usr/local/X11/include
2917 /usr/local/X11R6/include
2918 /usr/local/X11R5/include
2919 /usr/local/X11R4/include
2921 /usr/local/include/X11
2922 /usr/local/include/X11R6
2923 /usr/local/include/X11R5
2924 /usr/local/include/X11R4
2926 /usr/X386/include
2927 /usr/x386/include
2928 /usr/XFree86/include/X11
2930 /usr/include
2931 /usr/local/include
2932 /usr/unsupported/include
2933 /usr/athena/include
2934 /usr/local/x11r5/include
2935 /usr/lpp/Xamples/include
2937 /usr/openwin/include
2938 /usr/openwin/share/include'
2940 if test "$ac_x_includes" = no; then
2941 # Guess where to find include files, by looking for Intrinsic.h.
2942 # First, try using that file with no special directory specified.
2943 cat >conftest.$ac_ext <<_ACEOF
2944 #line 2944 "configure"
2945 #include "confdefs.h"
2946 #include <X11/Intrinsic.h>
2947 _ACEOF
2948 if { (eval echo "$as_me:2948: \"$ac_cpp conftest.$ac_ext\"") >&5
2949 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2950 ac_status=$?
2951 egrep -v '^ *\+' conftest.er1 >conftest.err
2952 rm -f conftest.er1
2953 cat conftest.err >&5
2954 echo "$as_me:2954: \$? = $ac_status" >&5
2955 (exit $ac_status); } >/dev/null; then
2956 if test -s conftest.err; then
2957 ac_cpp_err=$ac_c_preproc_warn_flag
2958 else
2959 ac_cpp_err=
2961 else
2962 ac_cpp_err=yes
2964 if test -z "$ac_cpp_err"; then
2965 # We can compile using X headers with no special include directory.
2966 ac_x_includes=
2967 else
2968 echo "$as_me: failed program was:" >&5
2969 cat conftest.$ac_ext >&5
2970 for ac_dir in $ac_x_header_dirs; do
2971 if test -r "$ac_dir/X11/Intrinsic.h"; then
2972 ac_x_includes=$ac_dir
2973 break
2975 done
2977 rm -f conftest.err conftest.$ac_ext
2978 fi # $ac_x_includes = no
2980 if test "$ac_x_libraries" = no; then
2981 # Check for the libraries.
2982 # See if we find them without any special options.
2983 # Don't add to $LIBS permanently.
2984 ac_save_LIBS=$LIBS
2985 LIBS="-lXt $LIBS"
2986 cat >conftest.$ac_ext <<_ACEOF
2987 #line 2987 "configure"
2988 #include "confdefs.h"
2989 #include <X11/Intrinsic.h>
2991 main ()
2993 XtMalloc (0)
2995 return 0;
2997 _ACEOF
2998 rm -f conftest.$ac_objext conftest$ac_exeext
2999 if { (eval echo "$as_me:2999: \"$ac_link\"") >&5
3000 (eval $ac_link) 2>&5
3001 ac_status=$?
3002 echo "$as_me:3002: \$? = $ac_status" >&5
3003 (exit $ac_status); } &&
3004 { ac_try='test -s conftest$ac_exeext'
3005 { (eval echo "$as_me:3005: \"$ac_try\"") >&5
3006 (eval $ac_try) 2>&5
3007 ac_status=$?
3008 echo "$as_me:3008: \$? = $ac_status" >&5
3009 (exit $ac_status); }; }; then
3010 LIBS=$ac_save_LIBS
3011 # We can link X programs with no special library path.
3012 ac_x_libraries=
3013 else
3014 echo "$as_me: failed program was:" >&5
3015 cat conftest.$ac_ext >&5
3016 LIBS=$ac_save_LIBS
3017 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
3019 # Don't even attempt the hair of trying to link an X program!
3020 for ac_extension in a so sl; do
3021 if test -r $ac_dir/libXt.$ac_extension; then
3022 ac_x_libraries=$ac_dir
3023 break 2
3025 done
3026 done
3028 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3029 fi # $ac_x_libraries = no
3031 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
3032 # Didn't find X anywhere. Cache the known absence of X.
3033 ac_cv_have_x="have_x=no"
3034 else
3035 # Record where we found X for the cache.
3036 ac_cv_have_x="have_x=yes \
3037 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
3042 eval "$ac_cv_have_x"
3043 fi # $with_x != no
3045 if test "$have_x" != yes; then
3046 echo "$as_me:3046: result: $have_x" >&5
3047 echo "${ECHO_T}$have_x" >&6
3048 no_x=yes
3049 else
3050 # If each of the values was on the command line, it overrides each guess.
3051 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3052 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3053 # Update the cache value to reflect the command line values.
3054 ac_cv_have_x="have_x=yes \
3055 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3056 echo "$as_me:3056: result: libraries $x_libraries, headers $x_includes" >&5
3057 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
3060 if test "$no_x" = yes; then
3061 # Not all programs may use this symbol, but it does not hurt to define it.
3063 cat >>confdefs.h <<\EOF
3064 #define X_DISPLAY_MISSING 1
3067 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3068 else
3069 if test -n "$x_includes"; then
3070 X_CFLAGS="$X_CFLAGS -I$x_includes"
3073 # It would also be nice to do this for all -L options, not just this one.
3074 if test -n "$x_libraries"; then
3075 X_LIBS="$X_LIBS -L$x_libraries"
3076 # For Solaris; some versions of Sun CC require a space after -R and
3077 # others require no space. Words are not sufficient . . . .
3078 case `(uname -sr) 2>/dev/null` in
3079 "SunOS 5"*)
3080 echo "$as_me:3080: checking whether -R must be followed by a space" >&5
3081 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
3082 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
3083 cat >conftest.$ac_ext <<_ACEOF
3084 #line 3084 "configure"
3085 #include "confdefs.h"
3088 main ()
3092 return 0;
3094 _ACEOF
3095 rm -f conftest.$ac_objext conftest$ac_exeext
3096 if { (eval echo "$as_me:3096: \"$ac_link\"") >&5
3097 (eval $ac_link) 2>&5
3098 ac_status=$?
3099 echo "$as_me:3099: \$? = $ac_status" >&5
3100 (exit $ac_status); } &&
3101 { ac_try='test -s conftest$ac_exeext'
3102 { (eval echo "$as_me:3102: \"$ac_try\"") >&5
3103 (eval $ac_try) 2>&5
3104 ac_status=$?
3105 echo "$as_me:3105: \$? = $ac_status" >&5
3106 (exit $ac_status); }; }; then
3107 ac_R_nospace=yes
3108 else
3109 echo "$as_me: failed program was:" >&5
3110 cat conftest.$ac_ext >&5
3111 ac_R_nospace=no
3113 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3114 if test $ac_R_nospace = yes; then
3115 echo "$as_me:3115: result: no" >&5
3116 echo "${ECHO_T}no" >&6
3117 X_LIBS="$X_LIBS -R$x_libraries"
3118 else
3119 LIBS="$ac_xsave_LIBS -R $x_libraries"
3120 cat >conftest.$ac_ext <<_ACEOF
3121 #line 3121 "configure"
3122 #include "confdefs.h"
3125 main ()
3129 return 0;
3131 _ACEOF
3132 rm -f conftest.$ac_objext conftest$ac_exeext
3133 if { (eval echo "$as_me:3133: \"$ac_link\"") >&5
3134 (eval $ac_link) 2>&5
3135 ac_status=$?
3136 echo "$as_me:3136: \$? = $ac_status" >&5
3137 (exit $ac_status); } &&
3138 { ac_try='test -s conftest$ac_exeext'
3139 { (eval echo "$as_me:3139: \"$ac_try\"") >&5
3140 (eval $ac_try) 2>&5
3141 ac_status=$?
3142 echo "$as_me:3142: \$? = $ac_status" >&5
3143 (exit $ac_status); }; }; then
3144 ac_R_space=yes
3145 else
3146 echo "$as_me: failed program was:" >&5
3147 cat conftest.$ac_ext >&5
3148 ac_R_space=no
3150 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3151 if test $ac_R_space = yes; then
3152 echo "$as_me:3152: result: yes" >&5
3153 echo "${ECHO_T}yes" >&6
3154 X_LIBS="$X_LIBS -R $x_libraries"
3155 else
3156 echo "$as_me:3156: result: neither works" >&5
3157 echo "${ECHO_T}neither works" >&6
3160 LIBS=$ac_xsave_LIBS
3161 esac
3164 # Check for system-dependent libraries X programs must link with.
3165 # Do this before checking for the system-independent R6 libraries
3166 # (-lICE), since we may need -lsocket or whatever for X linking.
3168 if test "$ISC" = yes; then
3169 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
3170 else
3171 # Martyn Johnson says this is needed for Ultrix, if the X
3172 # libraries were built with DECnet support. And Karl Berry says
3173 # the Alpha needs dnet_stub (dnet does not exist).
3174 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
3175 cat >conftest.$ac_ext <<_ACEOF
3176 #line 3176 "configure"
3177 #include "confdefs.h"
3179 /* Override any gcc2 internal prototype to avoid an error. */
3180 #ifdef __cplusplus
3181 extern "C"
3182 #endif
3183 /* We use char because int might match the return type of a gcc2
3184 builtin and then its argument prototype would still apply. */
3185 char XOpenDisplay ();
3187 main ()
3189 XOpenDisplay ();
3191 return 0;
3193 _ACEOF
3194 rm -f conftest.$ac_objext conftest$ac_exeext
3195 if { (eval echo "$as_me:3195: \"$ac_link\"") >&5
3196 (eval $ac_link) 2>&5
3197 ac_status=$?
3198 echo "$as_me:3198: \$? = $ac_status" >&5
3199 (exit $ac_status); } &&
3200 { ac_try='test -s conftest$ac_exeext'
3201 { (eval echo "$as_me:3201: \"$ac_try\"") >&5
3202 (eval $ac_try) 2>&5
3203 ac_status=$?
3204 echo "$as_me:3204: \$? = $ac_status" >&5
3205 (exit $ac_status); }; }; then
3207 else
3208 echo "$as_me: failed program was:" >&5
3209 cat conftest.$ac_ext >&5
3210 echo "$as_me:3210: checking for dnet_ntoa in -ldnet" >&5
3211 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
3212 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
3213 echo $ECHO_N "(cached) $ECHO_C" >&6
3214 else
3215 ac_check_lib_save_LIBS=$LIBS
3216 LIBS="-ldnet $LIBS"
3217 cat >conftest.$ac_ext <<_ACEOF
3218 #line 3218 "configure"
3219 #include "confdefs.h"
3221 /* Override any gcc2 internal prototype to avoid an error. */
3222 #ifdef __cplusplus
3223 extern "C"
3224 #endif
3225 /* We use char because int might match the return type of a gcc2
3226 builtin and then its argument prototype would still apply. */
3227 char dnet_ntoa ();
3229 main ()
3231 dnet_ntoa ();
3233 return 0;
3235 _ACEOF
3236 rm -f conftest.$ac_objext conftest$ac_exeext
3237 if { (eval echo "$as_me:3237: \"$ac_link\"") >&5
3238 (eval $ac_link) 2>&5
3239 ac_status=$?
3240 echo "$as_me:3240: \$? = $ac_status" >&5
3241 (exit $ac_status); } &&
3242 { ac_try='test -s conftest$ac_exeext'
3243 { (eval echo "$as_me:3243: \"$ac_try\"") >&5
3244 (eval $ac_try) 2>&5
3245 ac_status=$?
3246 echo "$as_me:3246: \$? = $ac_status" >&5
3247 (exit $ac_status); }; }; then
3248 ac_cv_lib_dnet_dnet_ntoa=yes
3249 else
3250 echo "$as_me: failed program was:" >&5
3251 cat conftest.$ac_ext >&5
3252 ac_cv_lib_dnet_dnet_ntoa=no
3254 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3255 LIBS=$ac_check_lib_save_LIBS
3257 echo "$as_me:3257: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
3258 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
3259 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
3260 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3263 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3264 echo "$as_me:3264: checking for dnet_ntoa in -ldnet_stub" >&5
3265 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
3266 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
3267 echo $ECHO_N "(cached) $ECHO_C" >&6
3268 else
3269 ac_check_lib_save_LIBS=$LIBS
3270 LIBS="-ldnet_stub $LIBS"
3271 cat >conftest.$ac_ext <<_ACEOF
3272 #line 3272 "configure"
3273 #include "confdefs.h"
3275 /* Override any gcc2 internal prototype to avoid an error. */
3276 #ifdef __cplusplus
3277 extern "C"
3278 #endif
3279 /* We use char because int might match the return type of a gcc2
3280 builtin and then its argument prototype would still apply. */
3281 char dnet_ntoa ();
3283 main ()
3285 dnet_ntoa ();
3287 return 0;
3289 _ACEOF
3290 rm -f conftest.$ac_objext conftest$ac_exeext
3291 if { (eval echo "$as_me:3291: \"$ac_link\"") >&5
3292 (eval $ac_link) 2>&5
3293 ac_status=$?
3294 echo "$as_me:3294: \$? = $ac_status" >&5
3295 (exit $ac_status); } &&
3296 { ac_try='test -s conftest$ac_exeext'
3297 { (eval echo "$as_me:3297: \"$ac_try\"") >&5
3298 (eval $ac_try) 2>&5
3299 ac_status=$?
3300 echo "$as_me:3300: \$? = $ac_status" >&5
3301 (exit $ac_status); }; }; then
3302 ac_cv_lib_dnet_stub_dnet_ntoa=yes
3303 else
3304 echo "$as_me: failed program was:" >&5
3305 cat conftest.$ac_ext >&5
3306 ac_cv_lib_dnet_stub_dnet_ntoa=no
3308 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3309 LIBS=$ac_check_lib_save_LIBS
3311 echo "$as_me:3311: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
3312 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
3313 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
3314 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3319 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3320 LIBS="$ac_xsave_LIBS"
3322 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3323 # to get the SysV transport functions.
3324 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
3325 # needs -lnsl.
3326 # The nsl library prevents programs from opening the X display
3327 # on Irix 5.2, according to T.E. Dickey.
3328 # The functions gethostbyname, getservbyname, and inet_addr are
3329 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
3330 echo "$as_me:3330: checking for gethostbyname" >&5
3331 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3332 if test "${ac_cv_func_gethostbyname+set}" = set; then
3333 echo $ECHO_N "(cached) $ECHO_C" >&6
3334 else
3335 cat >conftest.$ac_ext <<_ACEOF
3336 #line 3336 "configure"
3337 #include "confdefs.h"
3338 /* System header to define __stub macros and hopefully few prototypes,
3339 which can conflict with char gethostbyname (); below. */
3340 #include <assert.h>
3341 /* Override any gcc2 internal prototype to avoid an error. */
3342 #ifdef __cplusplus
3343 extern "C"
3344 #endif
3345 /* We use char because int might match the return type of a gcc2
3346 builtin and then its argument prototype would still apply. */
3347 char gethostbyname ();
3348 char (*f) ();
3351 main ()
3353 /* The GNU C library defines this for functions which it implements
3354 to always fail with ENOSYS. Some functions are actually named
3355 something starting with __ and the normal name is an alias. */
3356 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3357 choke me
3358 #else
3359 f = gethostbyname;
3360 #endif
3363 return 0;
3365 _ACEOF
3366 rm -f conftest.$ac_objext conftest$ac_exeext
3367 if { (eval echo "$as_me:3367: \"$ac_link\"") >&5
3368 (eval $ac_link) 2>&5
3369 ac_status=$?
3370 echo "$as_me:3370: \$? = $ac_status" >&5
3371 (exit $ac_status); } &&
3372 { ac_try='test -s conftest$ac_exeext'
3373 { (eval echo "$as_me:3373: \"$ac_try\"") >&5
3374 (eval $ac_try) 2>&5
3375 ac_status=$?
3376 echo "$as_me:3376: \$? = $ac_status" >&5
3377 (exit $ac_status); }; }; then
3378 ac_cv_func_gethostbyname=yes
3379 else
3380 echo "$as_me: failed program was:" >&5
3381 cat conftest.$ac_ext >&5
3382 ac_cv_func_gethostbyname=no
3384 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3386 echo "$as_me:3386: result: $ac_cv_func_gethostbyname" >&5
3387 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3389 if test $ac_cv_func_gethostbyname = no; then
3390 echo "$as_me:3390: checking for gethostbyname in -lnsl" >&5
3391 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3392 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3393 echo $ECHO_N "(cached) $ECHO_C" >&6
3394 else
3395 ac_check_lib_save_LIBS=$LIBS
3396 LIBS="-lnsl $LIBS"
3397 cat >conftest.$ac_ext <<_ACEOF
3398 #line 3398 "configure"
3399 #include "confdefs.h"
3401 /* Override any gcc2 internal prototype to avoid an error. */
3402 #ifdef __cplusplus
3403 extern "C"
3404 #endif
3405 /* We use char because int might match the return type of a gcc2
3406 builtin and then its argument prototype would still apply. */
3407 char gethostbyname ();
3409 main ()
3411 gethostbyname ();
3413 return 0;
3415 _ACEOF
3416 rm -f conftest.$ac_objext conftest$ac_exeext
3417 if { (eval echo "$as_me:3417: \"$ac_link\"") >&5
3418 (eval $ac_link) 2>&5
3419 ac_status=$?
3420 echo "$as_me:3420: \$? = $ac_status" >&5
3421 (exit $ac_status); } &&
3422 { ac_try='test -s conftest$ac_exeext'
3423 { (eval echo "$as_me:3423: \"$ac_try\"") >&5
3424 (eval $ac_try) 2>&5
3425 ac_status=$?
3426 echo "$as_me:3426: \$? = $ac_status" >&5
3427 (exit $ac_status); }; }; then
3428 ac_cv_lib_nsl_gethostbyname=yes
3429 else
3430 echo "$as_me: failed program was:" >&5
3431 cat conftest.$ac_ext >&5
3432 ac_cv_lib_nsl_gethostbyname=no
3434 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3435 LIBS=$ac_check_lib_save_LIBS
3437 echo "$as_me:3437: result: $ac_cv_lib_nsl_gethostbyname" >&5
3438 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3439 if test $ac_cv_lib_nsl_gethostbyname = yes; then
3440 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3443 if test $ac_cv_lib_nsl_gethostbyname = no; then
3444 echo "$as_me:3444: checking for gethostbyname in -lbsd" >&5
3445 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
3446 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
3447 echo $ECHO_N "(cached) $ECHO_C" >&6
3448 else
3449 ac_check_lib_save_LIBS=$LIBS
3450 LIBS="-lbsd $LIBS"
3451 cat >conftest.$ac_ext <<_ACEOF
3452 #line 3452 "configure"
3453 #include "confdefs.h"
3455 /* Override any gcc2 internal prototype to avoid an error. */
3456 #ifdef __cplusplus
3457 extern "C"
3458 #endif
3459 /* We use char because int might match the return type of a gcc2
3460 builtin and then its argument prototype would still apply. */
3461 char gethostbyname ();
3463 main ()
3465 gethostbyname ();
3467 return 0;
3469 _ACEOF
3470 rm -f conftest.$ac_objext conftest$ac_exeext
3471 if { (eval echo "$as_me:3471: \"$ac_link\"") >&5
3472 (eval $ac_link) 2>&5
3473 ac_status=$?
3474 echo "$as_me:3474: \$? = $ac_status" >&5
3475 (exit $ac_status); } &&
3476 { ac_try='test -s conftest$ac_exeext'
3477 { (eval echo "$as_me:3477: \"$ac_try\"") >&5
3478 (eval $ac_try) 2>&5
3479 ac_status=$?
3480 echo "$as_me:3480: \$? = $ac_status" >&5
3481 (exit $ac_status); }; }; then
3482 ac_cv_lib_bsd_gethostbyname=yes
3483 else
3484 echo "$as_me: failed program was:" >&5
3485 cat conftest.$ac_ext >&5
3486 ac_cv_lib_bsd_gethostbyname=no
3488 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3489 LIBS=$ac_check_lib_save_LIBS
3491 echo "$as_me:3491: result: $ac_cv_lib_bsd_gethostbyname" >&5
3492 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
3493 if test $ac_cv_lib_bsd_gethostbyname = yes; then
3494 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
3500 # lieder@skyler.mavd.honeywell.com says without -lsocket,
3501 # socket/setsockopt and other routines are undefined under SCO ODT
3502 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
3503 # on later versions), says Simon Leinen: it contains gethostby*
3504 # variants that don't use the nameserver (or something). -lsocket
3505 # must be given before -lnsl if both are needed. We assume that
3506 # if connect needs -lnsl, so does gethostbyname.
3507 echo "$as_me:3507: checking for connect" >&5
3508 echo $ECHO_N "checking for connect... $ECHO_C" >&6
3509 if test "${ac_cv_func_connect+set}" = set; then
3510 echo $ECHO_N "(cached) $ECHO_C" >&6
3511 else
3512 cat >conftest.$ac_ext <<_ACEOF
3513 #line 3513 "configure"
3514 #include "confdefs.h"
3515 /* System header to define __stub macros and hopefully few prototypes,
3516 which can conflict with char connect (); below. */
3517 #include <assert.h>
3518 /* Override any gcc2 internal prototype to avoid an error. */
3519 #ifdef __cplusplus
3520 extern "C"
3521 #endif
3522 /* We use char because int might match the return type of a gcc2
3523 builtin and then its argument prototype would still apply. */
3524 char connect ();
3525 char (*f) ();
3528 main ()
3530 /* The GNU C library defines this for functions which it implements
3531 to always fail with ENOSYS. Some functions are actually named
3532 something starting with __ and the normal name is an alias. */
3533 #if defined (__stub_connect) || defined (__stub___connect)
3534 choke me
3535 #else
3536 f = connect;
3537 #endif
3540 return 0;
3542 _ACEOF
3543 rm -f conftest.$ac_objext conftest$ac_exeext
3544 if { (eval echo "$as_me:3544: \"$ac_link\"") >&5
3545 (eval $ac_link) 2>&5
3546 ac_status=$?
3547 echo "$as_me:3547: \$? = $ac_status" >&5
3548 (exit $ac_status); } &&
3549 { ac_try='test -s conftest$ac_exeext'
3550 { (eval echo "$as_me:3550: \"$ac_try\"") >&5
3551 (eval $ac_try) 2>&5
3552 ac_status=$?
3553 echo "$as_me:3553: \$? = $ac_status" >&5
3554 (exit $ac_status); }; }; then
3555 ac_cv_func_connect=yes
3556 else
3557 echo "$as_me: failed program was:" >&5
3558 cat conftest.$ac_ext >&5
3559 ac_cv_func_connect=no
3561 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3563 echo "$as_me:3563: result: $ac_cv_func_connect" >&5
3564 echo "${ECHO_T}$ac_cv_func_connect" >&6
3566 if test $ac_cv_func_connect = no; then
3567 echo "$as_me:3567: checking for connect in -lsocket" >&5
3568 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
3569 if test "${ac_cv_lib_socket_connect+set}" = set; then
3570 echo $ECHO_N "(cached) $ECHO_C" >&6
3571 else
3572 ac_check_lib_save_LIBS=$LIBS
3573 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
3574 cat >conftest.$ac_ext <<_ACEOF
3575 #line 3575 "configure"
3576 #include "confdefs.h"
3578 /* Override any gcc2 internal prototype to avoid an error. */
3579 #ifdef __cplusplus
3580 extern "C"
3581 #endif
3582 /* We use char because int might match the return type of a gcc2
3583 builtin and then its argument prototype would still apply. */
3584 char connect ();
3586 main ()
3588 connect ();
3590 return 0;
3592 _ACEOF
3593 rm -f conftest.$ac_objext conftest$ac_exeext
3594 if { (eval echo "$as_me:3594: \"$ac_link\"") >&5
3595 (eval $ac_link) 2>&5
3596 ac_status=$?
3597 echo "$as_me:3597: \$? = $ac_status" >&5
3598 (exit $ac_status); } &&
3599 { ac_try='test -s conftest$ac_exeext'
3600 { (eval echo "$as_me:3600: \"$ac_try\"") >&5
3601 (eval $ac_try) 2>&5
3602 ac_status=$?
3603 echo "$as_me:3603: \$? = $ac_status" >&5
3604 (exit $ac_status); }; }; then
3605 ac_cv_lib_socket_connect=yes
3606 else
3607 echo "$as_me: failed program was:" >&5
3608 cat conftest.$ac_ext >&5
3609 ac_cv_lib_socket_connect=no
3611 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3612 LIBS=$ac_check_lib_save_LIBS
3614 echo "$as_me:3614: result: $ac_cv_lib_socket_connect" >&5
3615 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
3616 if test $ac_cv_lib_socket_connect = yes; then
3617 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
3622 # Guillermo Gomez says -lposix is necessary on A/UX.
3623 echo "$as_me:3623: checking for remove" >&5
3624 echo $ECHO_N "checking for remove... $ECHO_C" >&6
3625 if test "${ac_cv_func_remove+set}" = set; then
3626 echo $ECHO_N "(cached) $ECHO_C" >&6
3627 else
3628 cat >conftest.$ac_ext <<_ACEOF
3629 #line 3629 "configure"
3630 #include "confdefs.h"
3631 /* System header to define __stub macros and hopefully few prototypes,
3632 which can conflict with char remove (); below. */
3633 #include <assert.h>
3634 /* Override any gcc2 internal prototype to avoid an error. */
3635 #ifdef __cplusplus
3636 extern "C"
3637 #endif
3638 /* We use char because int might match the return type of a gcc2
3639 builtin and then its argument prototype would still apply. */
3640 char remove ();
3641 char (*f) ();
3644 main ()
3646 /* The GNU C library defines this for functions which it implements
3647 to always fail with ENOSYS. Some functions are actually named
3648 something starting with __ and the normal name is an alias. */
3649 #if defined (__stub_remove) || defined (__stub___remove)
3650 choke me
3651 #else
3652 f = remove;
3653 #endif
3656 return 0;
3658 _ACEOF
3659 rm -f conftest.$ac_objext conftest$ac_exeext
3660 if { (eval echo "$as_me:3660: \"$ac_link\"") >&5
3661 (eval $ac_link) 2>&5
3662 ac_status=$?
3663 echo "$as_me:3663: \$? = $ac_status" >&5
3664 (exit $ac_status); } &&
3665 { ac_try='test -s conftest$ac_exeext'
3666 { (eval echo "$as_me:3666: \"$ac_try\"") >&5
3667 (eval $ac_try) 2>&5
3668 ac_status=$?
3669 echo "$as_me:3669: \$? = $ac_status" >&5
3670 (exit $ac_status); }; }; then
3671 ac_cv_func_remove=yes
3672 else
3673 echo "$as_me: failed program was:" >&5
3674 cat conftest.$ac_ext >&5
3675 ac_cv_func_remove=no
3677 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3679 echo "$as_me:3679: result: $ac_cv_func_remove" >&5
3680 echo "${ECHO_T}$ac_cv_func_remove" >&6
3682 if test $ac_cv_func_remove = no; then
3683 echo "$as_me:3683: checking for remove in -lposix" >&5
3684 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
3685 if test "${ac_cv_lib_posix_remove+set}" = set; then
3686 echo $ECHO_N "(cached) $ECHO_C" >&6
3687 else
3688 ac_check_lib_save_LIBS=$LIBS
3689 LIBS="-lposix $LIBS"
3690 cat >conftest.$ac_ext <<_ACEOF
3691 #line 3691 "configure"
3692 #include "confdefs.h"
3694 /* Override any gcc2 internal prototype to avoid an error. */
3695 #ifdef __cplusplus
3696 extern "C"
3697 #endif
3698 /* We use char because int might match the return type of a gcc2
3699 builtin and then its argument prototype would still apply. */
3700 char remove ();
3702 main ()
3704 remove ();
3706 return 0;
3708 _ACEOF
3709 rm -f conftest.$ac_objext conftest$ac_exeext
3710 if { (eval echo "$as_me:3710: \"$ac_link\"") >&5
3711 (eval $ac_link) 2>&5
3712 ac_status=$?
3713 echo "$as_me:3713: \$? = $ac_status" >&5
3714 (exit $ac_status); } &&
3715 { ac_try='test -s conftest$ac_exeext'
3716 { (eval echo "$as_me:3716: \"$ac_try\"") >&5
3717 (eval $ac_try) 2>&5
3718 ac_status=$?
3719 echo "$as_me:3719: \$? = $ac_status" >&5
3720 (exit $ac_status); }; }; then
3721 ac_cv_lib_posix_remove=yes
3722 else
3723 echo "$as_me: failed program was:" >&5
3724 cat conftest.$ac_ext >&5
3725 ac_cv_lib_posix_remove=no
3727 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3728 LIBS=$ac_check_lib_save_LIBS
3730 echo "$as_me:3730: result: $ac_cv_lib_posix_remove" >&5
3731 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
3732 if test $ac_cv_lib_posix_remove = yes; then
3733 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
3738 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
3739 echo "$as_me:3739: checking for shmat" >&5
3740 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
3741 if test "${ac_cv_func_shmat+set}" = set; then
3742 echo $ECHO_N "(cached) $ECHO_C" >&6
3743 else
3744 cat >conftest.$ac_ext <<_ACEOF
3745 #line 3745 "configure"
3746 #include "confdefs.h"
3747 /* System header to define __stub macros and hopefully few prototypes,
3748 which can conflict with char shmat (); below. */
3749 #include <assert.h>
3750 /* Override any gcc2 internal prototype to avoid an error. */
3751 #ifdef __cplusplus
3752 extern "C"
3753 #endif
3754 /* We use char because int might match the return type of a gcc2
3755 builtin and then its argument prototype would still apply. */
3756 char shmat ();
3757 char (*f) ();
3760 main ()
3762 /* The GNU C library defines this for functions which it implements
3763 to always fail with ENOSYS. Some functions are actually named
3764 something starting with __ and the normal name is an alias. */
3765 #if defined (__stub_shmat) || defined (__stub___shmat)
3766 choke me
3767 #else
3768 f = shmat;
3769 #endif
3772 return 0;
3774 _ACEOF
3775 rm -f conftest.$ac_objext conftest$ac_exeext
3776 if { (eval echo "$as_me:3776: \"$ac_link\"") >&5
3777 (eval $ac_link) 2>&5
3778 ac_status=$?
3779 echo "$as_me:3779: \$? = $ac_status" >&5
3780 (exit $ac_status); } &&
3781 { ac_try='test -s conftest$ac_exeext'
3782 { (eval echo "$as_me:3782: \"$ac_try\"") >&5
3783 (eval $ac_try) 2>&5
3784 ac_status=$?
3785 echo "$as_me:3785: \$? = $ac_status" >&5
3786 (exit $ac_status); }; }; then
3787 ac_cv_func_shmat=yes
3788 else
3789 echo "$as_me: failed program was:" >&5
3790 cat conftest.$ac_ext >&5
3791 ac_cv_func_shmat=no
3793 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3795 echo "$as_me:3795: result: $ac_cv_func_shmat" >&5
3796 echo "${ECHO_T}$ac_cv_func_shmat" >&6
3798 if test $ac_cv_func_shmat = no; then
3799 echo "$as_me:3799: checking for shmat in -lipc" >&5
3800 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
3801 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
3802 echo $ECHO_N "(cached) $ECHO_C" >&6
3803 else
3804 ac_check_lib_save_LIBS=$LIBS
3805 LIBS="-lipc $LIBS"
3806 cat >conftest.$ac_ext <<_ACEOF
3807 #line 3807 "configure"
3808 #include "confdefs.h"
3810 /* Override any gcc2 internal prototype to avoid an error. */
3811 #ifdef __cplusplus
3812 extern "C"
3813 #endif
3814 /* We use char because int might match the return type of a gcc2
3815 builtin and then its argument prototype would still apply. */
3816 char shmat ();
3818 main ()
3820 shmat ();
3822 return 0;
3824 _ACEOF
3825 rm -f conftest.$ac_objext conftest$ac_exeext
3826 if { (eval echo "$as_me:3826: \"$ac_link\"") >&5
3827 (eval $ac_link) 2>&5
3828 ac_status=$?
3829 echo "$as_me:3829: \$? = $ac_status" >&5
3830 (exit $ac_status); } &&
3831 { ac_try='test -s conftest$ac_exeext'
3832 { (eval echo "$as_me:3832: \"$ac_try\"") >&5
3833 (eval $ac_try) 2>&5
3834 ac_status=$?
3835 echo "$as_me:3835: \$? = $ac_status" >&5
3836 (exit $ac_status); }; }; then
3837 ac_cv_lib_ipc_shmat=yes
3838 else
3839 echo "$as_me: failed program was:" >&5
3840 cat conftest.$ac_ext >&5
3841 ac_cv_lib_ipc_shmat=no
3843 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3844 LIBS=$ac_check_lib_save_LIBS
3846 echo "$as_me:3846: result: $ac_cv_lib_ipc_shmat" >&5
3847 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
3848 if test $ac_cv_lib_ipc_shmat = yes; then
3849 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
3855 # Check for libraries that X11R6 Xt/Xaw programs need.
3856 ac_save_LDFLAGS=$LDFLAGS
3857 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
3858 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
3859 # check for ICE first), but we must link in the order -lSM -lICE or
3860 # we get undefined symbols. So assume we have SM if we have ICE.
3861 # These have to be linked with before -lX11, unlike the other
3862 # libraries we check for below, so use a different variable.
3863 # John Interrante, Karl Berry
3864 echo "$as_me:3864: checking for IceConnectionNumber in -lICE" >&5
3865 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
3866 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
3867 echo $ECHO_N "(cached) $ECHO_C" >&6
3868 else
3869 ac_check_lib_save_LIBS=$LIBS
3870 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
3871 cat >conftest.$ac_ext <<_ACEOF
3872 #line 3872 "configure"
3873 #include "confdefs.h"
3875 /* Override any gcc2 internal prototype to avoid an error. */
3876 #ifdef __cplusplus
3877 extern "C"
3878 #endif
3879 /* We use char because int might match the return type of a gcc2
3880 builtin and then its argument prototype would still apply. */
3881 char IceConnectionNumber ();
3883 main ()
3885 IceConnectionNumber ();
3887 return 0;
3889 _ACEOF
3890 rm -f conftest.$ac_objext conftest$ac_exeext
3891 if { (eval echo "$as_me:3891: \"$ac_link\"") >&5
3892 (eval $ac_link) 2>&5
3893 ac_status=$?
3894 echo "$as_me:3894: \$? = $ac_status" >&5
3895 (exit $ac_status); } &&
3896 { ac_try='test -s conftest$ac_exeext'
3897 { (eval echo "$as_me:3897: \"$ac_try\"") >&5
3898 (eval $ac_try) 2>&5
3899 ac_status=$?
3900 echo "$as_me:3900: \$? = $ac_status" >&5
3901 (exit $ac_status); }; }; then
3902 ac_cv_lib_ICE_IceConnectionNumber=yes
3903 else
3904 echo "$as_me: failed program was:" >&5
3905 cat conftest.$ac_ext >&5
3906 ac_cv_lib_ICE_IceConnectionNumber=no
3908 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3909 LIBS=$ac_check_lib_save_LIBS
3911 echo "$as_me:3911: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
3912 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
3913 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
3914 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
3917 LDFLAGS=$ac_save_LDFLAGS
3921 CFLAGS="-I$x_includes $X_CFLAGS $CFLAGS"
3922 LDFLAGS="-L$x_libraries $X_PRE_LIBS $X_LIBS $X_EXTRA_LIBS $LDFLAGS"
3924 echo "$as_me:3924: checking for glBegin in -lGL" >&5
3925 echo $ECHO_N "checking for glBegin in -lGL... $ECHO_C" >&6
3926 if test "${ac_cv_lib_GL_glBegin+set}" = set; then
3927 echo $ECHO_N "(cached) $ECHO_C" >&6
3928 else
3929 ac_check_lib_save_LIBS=$LIBS
3930 LIBS="-lGL $LIBS"
3931 cat >conftest.$ac_ext <<_ACEOF
3932 #line 3932 "configure"
3933 #include "confdefs.h"
3935 /* Override any gcc2 internal prototype to avoid an error. */
3936 #ifdef __cplusplus
3937 extern "C"
3938 #endif
3939 /* We use char because int might match the return type of a gcc2
3940 builtin and then its argument prototype would still apply. */
3941 char glBegin ();
3943 main ()
3945 glBegin ();
3947 return 0;
3949 _ACEOF
3950 rm -f conftest.$ac_objext conftest$ac_exeext
3951 if { (eval echo "$as_me:3951: \"$ac_link\"") >&5
3952 (eval $ac_link) 2>&5
3953 ac_status=$?
3954 echo "$as_me:3954: \$? = $ac_status" >&5
3955 (exit $ac_status); } &&
3956 { ac_try='test -s conftest$ac_exeext'
3957 { (eval echo "$as_me:3957: \"$ac_try\"") >&5
3958 (eval $ac_try) 2>&5
3959 ac_status=$?
3960 echo "$as_me:3960: \$? = $ac_status" >&5
3961 (exit $ac_status); }; }; then
3962 ac_cv_lib_GL_glBegin=yes
3963 else
3964 echo "$as_me: failed program was:" >&5
3965 cat conftest.$ac_ext >&5
3966 ac_cv_lib_GL_glBegin=no
3968 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3969 LIBS=$ac_check_lib_save_LIBS
3971 echo "$as_me:3971: result: $ac_cv_lib_GL_glBegin" >&5
3972 echo "${ECHO_T}$ac_cv_lib_GL_glBegin" >&6
3973 if test $ac_cv_lib_GL_glBegin = yes; then
3974 LDFLAGS="-lGL $LDFLAGS"
3975 else
3976 ogl="no"
3979 if test "x$ogl" = "xno"; then
3980 { echo "$as_me:3980: Maybe libGL requires libpthread..." >&5
3981 echo "$as_me: Maybe libGL requires libpthread..." >&6;}
3982 echo "$as_me:3982: checking for glBegin in -lGL" >&5
3983 echo $ECHO_N "checking for glBegin in -lGL... $ECHO_C" >&6
3984 if test "${ac_cv_lib_GL_glBegin+set}" = set; then
3985 echo $ECHO_N "(cached) $ECHO_C" >&6
3986 else
3987 ac_check_lib_save_LIBS=$LIBS
3988 LIBS="-lGL -lpthread $LIBS"
3989 cat >conftest.$ac_ext <<_ACEOF
3990 #line 3990 "configure"
3991 #include "confdefs.h"
3993 /* Override any gcc2 internal prototype to avoid an error. */
3994 #ifdef __cplusplus
3995 extern "C"
3996 #endif
3997 /* We use char because int might match the return type of a gcc2
3998 builtin and then its argument prototype would still apply. */
3999 char glBegin ();
4001 main ()
4003 glBegin ();
4005 return 0;
4007 _ACEOF
4008 rm -f conftest.$ac_objext conftest$ac_exeext
4009 if { (eval echo "$as_me:4009: \"$ac_link\"") >&5
4010 (eval $ac_link) 2>&5
4011 ac_status=$?
4012 echo "$as_me:4012: \$? = $ac_status" >&5
4013 (exit $ac_status); } &&
4014 { ac_try='test -s conftest$ac_exeext'
4015 { (eval echo "$as_me:4015: \"$ac_try\"") >&5
4016 (eval $ac_try) 2>&5
4017 ac_status=$?
4018 echo "$as_me:4018: \$? = $ac_status" >&5
4019 (exit $ac_status); }; }; then
4020 ac_cv_lib_GL_glBegin=yes
4021 else
4022 echo "$as_me: failed program was:" >&5
4023 cat conftest.$ac_ext >&5
4024 ac_cv_lib_GL_glBegin=no
4026 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4027 LIBS=$ac_check_lib_save_LIBS
4029 echo "$as_me:4029: result: $ac_cv_lib_GL_glBegin" >&5
4030 echo "${ECHO_T}$ac_cv_lib_GL_glBegin" >&6
4031 if test $ac_cv_lib_GL_glBegin = yes; then
4032 LDFLAGS="-lpthread -lGL $LDFLAGS"
4033 else
4034 { { echo "$as_me:4034: error: Cannot use -lGL" >&5
4035 echo "$as_me: error: Cannot use -lGL" >&2;}
4036 { (exit 1); exit 1; }; }
4041 echo "$as_me:4041: checking for gluOrtho2D in -lGLU" >&5
4042 echo $ECHO_N "checking for gluOrtho2D in -lGLU... $ECHO_C" >&6
4043 if test "${ac_cv_lib_GLU_gluOrtho2D+set}" = set; then
4044 echo $ECHO_N "(cached) $ECHO_C" >&6
4045 else
4046 ac_check_lib_save_LIBS=$LIBS
4047 LIBS="-lGLU $LIBS"
4048 cat >conftest.$ac_ext <<_ACEOF
4049 #line 4049 "configure"
4050 #include "confdefs.h"
4052 /* Override any gcc2 internal prototype to avoid an error. */
4053 #ifdef __cplusplus
4054 extern "C"
4055 #endif
4056 /* We use char because int might match the return type of a gcc2
4057 builtin and then its argument prototype would still apply. */
4058 char gluOrtho2D ();
4060 main ()
4062 gluOrtho2D ();
4064 return 0;
4066 _ACEOF
4067 rm -f conftest.$ac_objext conftest$ac_exeext
4068 if { (eval echo "$as_me:4068: \"$ac_link\"") >&5
4069 (eval $ac_link) 2>&5
4070 ac_status=$?
4071 echo "$as_me:4071: \$? = $ac_status" >&5
4072 (exit $ac_status); } &&
4073 { ac_try='test -s conftest$ac_exeext'
4074 { (eval echo "$as_me:4074: \"$ac_try\"") >&5
4075 (eval $ac_try) 2>&5
4076 ac_status=$?
4077 echo "$as_me:4077: \$? = $ac_status" >&5
4078 (exit $ac_status); }; }; then
4079 ac_cv_lib_GLU_gluOrtho2D=yes
4080 else
4081 echo "$as_me: failed program was:" >&5
4082 cat conftest.$ac_ext >&5
4083 ac_cv_lib_GLU_gluOrtho2D=no
4085 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4086 LIBS=$ac_check_lib_save_LIBS
4088 echo "$as_me:4088: result: $ac_cv_lib_GLU_gluOrtho2D" >&5
4089 echo "${ECHO_T}$ac_cv_lib_GLU_gluOrtho2D" >&6
4090 if test $ac_cv_lib_GLU_gluOrtho2D = yes; then
4091 LDFLAGS="-lGLU $LDFLAGS"
4092 else
4093 { { echo "$as_me:4093: error: Cannot use -lGLU" >&5
4094 echo "$as_me: error: Cannot use -lGLU" >&2;}
4095 { (exit 1); exit 1; }; }
4098 # Extract the first word of "imlib2-config", so it can be a program name with args.
4099 set dummy imlib2-config; ac_word=$2
4100 echo "$as_me:4100: checking for $ac_word" >&5
4101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4102 if test "${ac_cv_path_IMLIB2_CONFIG+set}" = set; then
4103 echo $ECHO_N "(cached) $ECHO_C" >&6
4104 else
4105 case $IMLIB2_CONFIG in
4106 [\\/]* | ?:[\\/]*)
4107 ac_cv_path_IMLIB2_CONFIG="$IMLIB2_CONFIG" # Let the user override the test with a path.
4110 ac_save_IFS=$IFS; IFS=$ac_path_separator
4111 ac_dummy="$PATH"
4112 for ac_dir in $ac_dummy; do
4113 IFS=$ac_save_IFS
4114 test -z "$ac_dir" && ac_dir=.
4115 if $as_executable_p "$ac_dir/$ac_word"; then
4116 ac_cv_path_IMLIB2_CONFIG="$ac_dir/$ac_word"
4117 echo "$as_me:4117: found $ac_dir/$ac_word" >&5
4118 break
4120 done
4122 test -z "$ac_cv_path_IMLIB2_CONFIG" && ac_cv_path_IMLIB2_CONFIG="false"
4124 esac
4126 IMLIB2_CONFIG=$ac_cv_path_IMLIB2_CONFIG
4128 if test -n "$IMLIB2_CONFIG"; then
4129 echo "$as_me:4129: result: $IMLIB2_CONFIG" >&5
4130 echo "${ECHO_T}$IMLIB2_CONFIG" >&6
4131 else
4132 echo "$as_me:4132: result: no" >&5
4133 echo "${ECHO_T}no" >&6
4136 if $IMLIB2_CONFIG --version &> /dev/null;then
4137 CFLAGS="$CFLAGS `$IMLIB2_CONFIG --cflags`"
4138 LDFLAGS="$LDFLAGS `$IMLIB2_CONFIG --libs`"
4139 else
4140 { { echo "$as_me:4140: error: Cannot use Imlib2" >&5
4141 echo "$as_me: error: Cannot use Imlib2" >&2;}
4142 { (exit 1); exit 1; }; }
4145 # Extract the first word of "gtk-config", so it can be a program name with args.
4146 set dummy gtk-config; ac_word=$2
4147 echo "$as_me:4147: checking for $ac_word" >&5
4148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4149 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
4150 echo $ECHO_N "(cached) $ECHO_C" >&6
4151 else
4152 case $GTK_CONFIG in
4153 [\\/]* | ?:[\\/]*)
4154 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
4157 ac_save_IFS=$IFS; IFS=$ac_path_separator
4158 ac_dummy="$PATH"
4159 for ac_dir in $ac_dummy; do
4160 IFS=$ac_save_IFS
4161 test -z "$ac_dir" && ac_dir=.
4162 if $as_executable_p "$ac_dir/$ac_word"; then
4163 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
4164 echo "$as_me:4164: found $ac_dir/$ac_word" >&5
4165 break
4167 done
4169 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="false"
4171 esac
4173 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
4175 if test -n "$GTK_CONFIG"; then
4176 echo "$as_me:4176: result: $GTK_CONFIG" >&5
4177 echo "${ECHO_T}$GTK_CONFIG" >&6
4178 else
4179 echo "$as_me:4179: result: no" >&5
4180 echo "${ECHO_T}no" >&6
4183 if $GTK_CONFIG --version &> /dev/null;then
4184 CFLAGS="$CFLAGS `$GTK_CONFIG --cflags`"
4185 LDFLAGS="$LDFLAGS `$GTK_CONFIG --libs`"
4186 else
4187 { { echo "$as_me:4187: error: Cannot use GTK" >&5
4188 echo "$as_me: error: Cannot use GTK" >&2;}
4189 { (exit 1); exit 1; }; }
4192 echo "$as_me:4192: checking for gtk_gl_area_new in -lgtkgl" >&5
4193 echo $ECHO_N "checking for gtk_gl_area_new in -lgtkgl... $ECHO_C" >&6
4194 if test "${ac_cv_lib_gtkgl_gtk_gl_area_new+set}" = set; then
4195 echo $ECHO_N "(cached) $ECHO_C" >&6
4196 else
4197 ac_check_lib_save_LIBS=$LIBS
4198 LIBS="-lgtkgl $LIBS"
4199 cat >conftest.$ac_ext <<_ACEOF
4200 #line 4200 "configure"
4201 #include "confdefs.h"
4203 /* Override any gcc2 internal prototype to avoid an error. */
4204 #ifdef __cplusplus
4205 extern "C"
4206 #endif
4207 /* We use char because int might match the return type of a gcc2
4208 builtin and then its argument prototype would still apply. */
4209 char gtk_gl_area_new ();
4211 main ()
4213 gtk_gl_area_new ();
4215 return 0;
4217 _ACEOF
4218 rm -f conftest.$ac_objext conftest$ac_exeext
4219 if { (eval echo "$as_me:4219: \"$ac_link\"") >&5
4220 (eval $ac_link) 2>&5
4221 ac_status=$?
4222 echo "$as_me:4222: \$? = $ac_status" >&5
4223 (exit $ac_status); } &&
4224 { ac_try='test -s conftest$ac_exeext'
4225 { (eval echo "$as_me:4225: \"$ac_try\"") >&5
4226 (eval $ac_try) 2>&5
4227 ac_status=$?
4228 echo "$as_me:4228: \$? = $ac_status" >&5
4229 (exit $ac_status); }; }; then
4230 ac_cv_lib_gtkgl_gtk_gl_area_new=yes
4231 else
4232 echo "$as_me: failed program was:" >&5
4233 cat conftest.$ac_ext >&5
4234 ac_cv_lib_gtkgl_gtk_gl_area_new=no
4236 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4237 LIBS=$ac_check_lib_save_LIBS
4239 echo "$as_me:4239: result: $ac_cv_lib_gtkgl_gtk_gl_area_new" >&5
4240 echo "${ECHO_T}$ac_cv_lib_gtkgl_gtk_gl_area_new" >&6
4241 if test $ac_cv_lib_gtkgl_gtk_gl_area_new = yes; then
4242 LDFLAGS="$LDFLAGS -lgtkgl"
4243 else
4244 { { echo "$as_me:4244: error: Cannot use GtkGLArea" >&5
4245 echo "$as_me: error: Cannot use GtkGLArea" >&2;}
4246 { (exit 1); exit 1; }; }
4249 ac_config_files="$ac_config_files Makefile"
4250 cat >confcache <<\_ACEOF
4251 # This file is a shell script that caches the results of configure
4252 # tests run on this system so they can be shared between configure
4253 # scripts and configure runs, see configure's option --config-cache.
4254 # It is not useful on other systems. If it contains results you don't
4255 # want to keep, you may remove or edit it.
4257 # config.status only pays attention to the cache file if you give it
4258 # the --recheck option to rerun configure.
4260 # `ac_cv_env_foo' variables (set or unset) will be overriden when
4261 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4262 # following values.
4264 _ACEOF
4266 # The following way of writing the cache mishandles newlines in values,
4267 # but we know of no workaround that is simple, portable, and efficient.
4268 # So, don't put newlines in cache variables' values.
4269 # Ultrix sh set writes to stderr and can't be redirected directly,
4270 # and sets the high bit in the cache file unless we assign to the vars.
4272 (set) 2>&1 |
4273 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4274 *ac_space=\ *)
4275 # `set' does not quote correctly, so add quotes (double-quote
4276 # substitution turns \\\\ into \\, and sed turns \\ into \).
4277 sed -n \
4278 "s/'/'\\\\''/g;
4279 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4282 # `set' quotes correctly as required by POSIX, so do not add quotes.
4283 sed -n \
4284 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4286 esac;
4288 sed '
4289 t clear
4290 : clear
4291 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4292 t end
4293 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4294 : end' >>confcache
4295 if cmp -s $cache_file confcache; then :; else
4296 if test -w $cache_file; then
4297 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4298 cat confcache >$cache_file
4299 else
4300 echo "not updating unwritable cache $cache_file"
4303 rm -f confcache
4305 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4306 # Let make expand exec_prefix.
4307 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4309 # VPATH may cause trouble with some makes, so we remove $(srcdir),
4310 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4311 # trailing colons and then remove the whole line if VPATH becomes empty
4312 # (actually we leave an empty line to preserve line numbers).
4313 if test "x$srcdir" = x.; then
4314 ac_vpsub='/^[ ]*VPATH[ ]*=/{
4315 s/:*\$(srcdir):*/:/;
4316 s/:*\${srcdir}:*/:/;
4317 s/:*@srcdir@:*/:/;
4318 s/^\([^=]*=[ ]*\):*/\1/;
4319 s/:*$//;
4320 s/^[^=]*=[ ]*$//;
4324 # Transform confdefs.h into DEFS.
4325 # Protect against shell expansion while executing Makefile rules.
4326 # Protect against Makefile macro expansion.
4328 # If the first sed substitution is executed (which looks for macros that
4329 # take arguments), then we branch to the quote section. Otherwise,
4330 # look for a macro that doesn't take arguments.
4331 cat >confdef2opt.sed <<\EOF
4332 t clear
4333 : clear
4334 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
4335 t quote
4336 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
4337 t quote
4339 : quote
4340 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
4341 s,\[,\\&,g
4342 s,\],\\&,g
4343 s,\$,$$,g
4346 # We use echo to avoid assuming a particular line-breaking character.
4347 # The extra dot is to prevent the shell from consuming trailing
4348 # line-breaks from the sub-command output. A line-break within
4349 # single-quotes doesn't work because, if this script is created in a
4350 # platform that uses two characters for line-breaks (e.g., DOS), tr
4351 # would break.
4352 ac_LF_and_DOT=`echo; echo .`
4353 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
4354 rm -f confdef2opt.sed
4356 : ${CONFIG_STATUS=./config.status}
4357 ac_clean_files_save=$ac_clean_files
4358 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4359 { echo "$as_me:4359: creating $CONFIG_STATUS" >&5
4360 echo "$as_me: creating $CONFIG_STATUS" >&6;}
4361 cat >$CONFIG_STATUS <<_ACEOF
4362 #! $SHELL
4363 # Generated automatically by configure.
4364 # Run this file to recreate the current configuration.
4365 # Compiler output produced by configure, useful for debugging
4366 # configure, is in config.log if it exists.
4368 debug=false
4369 SHELL=\${CONFIG_SHELL-$SHELL}
4370 ac_cs_invocation="\$0 \$@"
4372 _ACEOF
4374 cat >>$CONFIG_STATUS <<\_ACEOF
4375 # Be Bourne compatible
4376 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4377 emulate sh
4378 NULLCMD=:
4379 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4380 set -o posix
4383 # Name of the executable.
4384 as_me=`echo "$0" |sed 's,.*[\\/],,'`
4386 if expr a : '\(a\)' >/dev/null 2>&1; then
4387 as_expr=expr
4388 else
4389 as_expr=false
4392 rm -f conf$$ conf$$.exe conf$$.file
4393 echo >conf$$.file
4394 if ln -s conf$$.file conf$$ 2>/dev/null; then
4395 # We could just check for DJGPP; but this test a) works b) is more generic
4396 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4397 if test -f conf$$.exe; then
4398 # Don't use ln at all; we don't have any links
4399 as_ln_s='cp -p'
4400 else
4401 as_ln_s='ln -s'
4403 elif ln conf$$.file conf$$ 2>/dev/null; then
4404 as_ln_s=ln
4405 else
4406 as_ln_s='cp -p'
4408 rm -f conf$$ conf$$.exe conf$$.file
4410 as_executable_p="test -f"
4412 # Support unset when possible.
4413 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
4414 as_unset=unset
4415 else
4416 as_unset=false
4419 # NLS nuisances.
4420 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
4421 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
4422 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
4423 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
4424 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
4425 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
4426 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
4427 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
4429 # IFS
4430 # We need space, tab and new line, in precisely that order.
4431 as_nl='
4433 IFS=" $as_nl"
4435 # CDPATH.
4436 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
4438 exec 6>&1
4440 _ACEOF
4442 # Files that config.status was made for.
4443 if test -n "$ac_config_files"; then
4444 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4447 if test -n "$ac_config_headers"; then
4448 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4451 if test -n "$ac_config_links"; then
4452 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4455 if test -n "$ac_config_commands"; then
4456 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4459 cat >>$CONFIG_STATUS <<\EOF
4461 ac_cs_usage="\
4462 \`$as_me' instantiates files from templates according to the
4463 current configuration.
4465 Usage: $0 [OPTIONS] [FILE]...
4467 -h, --help print this help, then exit
4468 -V, --version print version number, then exit
4469 -d, --debug don't remove temporary files
4470 --recheck update $as_me by reconfiguring in the same conditions
4471 --file=FILE[:TEMPLATE]
4472 instantiate the configuration file FILE
4474 Configuration files:
4475 $config_files
4477 Configuration commands:
4478 $config_commands
4480 Report bugs to <bug-autoconf@gnu.org>."
4483 cat >>$CONFIG_STATUS <<EOF
4484 ac_cs_version="\\
4485 config.status
4486 configured by $0, generated by GNU Autoconf 2.52,
4487 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4489 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
4490 Free Software Foundation, Inc.
4491 This config.status script is free software; the Free Software Foundation
4492 gives unlimited permission to copy, distribute and modify it."
4493 srcdir=$srcdir
4494 INSTALL="$INSTALL"
4497 cat >>$CONFIG_STATUS <<\EOF
4498 # If no file are specified by the user, then we need to provide default
4499 # value. By we need to know if files were specified by the user.
4500 ac_need_defaults=:
4501 while test $# != 0
4503 case $1 in
4504 --*=*)
4505 ac_option=`expr "x$1" : 'x\([^=]*\)='`
4506 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4507 shift
4508 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
4509 shift
4511 -*);;
4512 *) # This is not an option, so the user has probably given explicit
4513 # arguments.
4514 ac_need_defaults=false;;
4515 esac
4517 case $1 in
4518 # Handling of the options.
4520 cat >>$CONFIG_STATUS <<EOF
4521 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4522 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
4523 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
4525 cat >>$CONFIG_STATUS <<\EOF
4526 --version | --vers* | -V )
4527 echo "$ac_cs_version"; exit 0 ;;
4528 --he | --h)
4529 # Conflict between --help and --header
4530 { { echo "$as_me:4530: error: ambiguous option: $1
4531 Try \`$0 --help' for more information." >&5
4532 echo "$as_me: error: ambiguous option: $1
4533 Try \`$0 --help' for more information." >&2;}
4534 { (exit 1); exit 1; }; };;
4535 --help | --hel | -h )
4536 echo "$ac_cs_usage"; exit 0 ;;
4537 --debug | --d* | -d )
4538 debug=: ;;
4539 --file | --fil | --fi | --f )
4540 shift
4541 CONFIG_FILES="$CONFIG_FILES $1"
4542 ac_need_defaults=false;;
4543 --header | --heade | --head | --hea )
4544 shift
4545 CONFIG_HEADERS="$CONFIG_HEADERS $1"
4546 ac_need_defaults=false;;
4548 # This is an error.
4549 -*) { { echo "$as_me:4549: error: unrecognized option: $1
4550 Try \`$0 --help' for more information." >&5
4551 echo "$as_me: error: unrecognized option: $1
4552 Try \`$0 --help' for more information." >&2;}
4553 { (exit 1); exit 1; }; } ;;
4555 *) ac_config_targets="$ac_config_targets $1" ;;
4557 esac
4558 shift
4559 done
4561 exec 5>>config.log
4562 cat >&5 << _ACEOF
4564 ## ----------------------- ##
4565 ## Running config.status. ##
4566 ## ----------------------- ##
4568 This file was extended by $as_me 2.52, executed with
4569 CONFIG_FILES = $CONFIG_FILES
4570 CONFIG_HEADERS = $CONFIG_HEADERS
4571 CONFIG_LINKS = $CONFIG_LINKS
4572 CONFIG_COMMANDS = $CONFIG_COMMANDS
4573 > $ac_cs_invocation
4574 on `(hostname || uname -n) 2>/dev/null | sed 1q`
4576 _ACEOF
4579 cat >>$CONFIG_STATUS <<EOF
4581 # INIT-COMMANDS section.
4584 AMDEP_TRUE="$AMDEP_TRUE"
4585 ac_aux_dir="$ac_aux_dir"
4589 cat >>$CONFIG_STATUS <<\EOF
4590 for ac_config_target in $ac_config_targets
4592 case "$ac_config_target" in
4593 # Handling of arguments.
4594 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4595 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
4596 *) { { echo "$as_me:4596: error: invalid argument: $ac_config_target" >&5
4597 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4598 { (exit 1); exit 1; }; };;
4599 esac
4600 done
4602 # If the user did not use the arguments to specify the items to instantiate,
4603 # then the envvar interface is used. Set only those that are not.
4604 # We use the long form for the default assignment because of an extremely
4605 # bizarre bug on SunOS 4.1.3.
4606 if $ac_need_defaults; then
4607 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4608 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
4611 # Create a temporary directory, and hook for its removal unless debugging.
4612 $debug ||
4614 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4615 trap '{ (exit 1); exit 1; }' 1 2 13 15
4618 # Create a (secure) tmp directory for tmp files.
4619 : ${TMPDIR=/tmp}
4621 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
4622 test -n "$tmp" && test -d "$tmp"
4623 } ||
4625 tmp=$TMPDIR/cs$$-$RANDOM
4626 (umask 077 && mkdir $tmp)
4627 } ||
4629 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
4630 { (exit 1); exit 1; }
4635 cat >>$CONFIG_STATUS <<EOF
4638 # CONFIG_FILES section.
4641 # No need to generate the scripts if there are no CONFIG_FILES.
4642 # This happens for instance when ./config.status config.h
4643 if test -n "\$CONFIG_FILES"; then
4644 # Protect against being on the right side of a sed subst in config.status.
4645 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4646 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4647 s,@SHELL@,$SHELL,;t t
4648 s,@exec_prefix@,$exec_prefix,;t t
4649 s,@prefix@,$prefix,;t t
4650 s,@program_transform_name@,$program_transform_name,;t t
4651 s,@bindir@,$bindir,;t t
4652 s,@sbindir@,$sbindir,;t t
4653 s,@libexecdir@,$libexecdir,;t t
4654 s,@datadir@,$datadir,;t t
4655 s,@sysconfdir@,$sysconfdir,;t t
4656 s,@sharedstatedir@,$sharedstatedir,;t t
4657 s,@localstatedir@,$localstatedir,;t t
4658 s,@libdir@,$libdir,;t t
4659 s,@includedir@,$includedir,;t t
4660 s,@oldincludedir@,$oldincludedir,;t t
4661 s,@infodir@,$infodir,;t t
4662 s,@mandir@,$mandir,;t t
4663 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4664 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4665 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4666 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4667 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4668 s,@build_alias@,$build_alias,;t t
4669 s,@host_alias@,$host_alias,;t t
4670 s,@target_alias@,$target_alias,;t t
4671 s,@ECHO_C@,$ECHO_C,;t t
4672 s,@ECHO_N@,$ECHO_N,;t t
4673 s,@ECHO_T@,$ECHO_T,;t t
4674 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4675 s,@DEFS@,$DEFS,;t t
4676 s,@LIBS@,$LIBS,;t t
4677 s,@build@,$build,;t t
4678 s,@build_cpu@,$build_cpu,;t t
4679 s,@build_vendor@,$build_vendor,;t t
4680 s,@build_os@,$build_os,;t t
4681 s,@host@,$host,;t t
4682 s,@host_cpu@,$host_cpu,;t t
4683 s,@host_vendor@,$host_vendor,;t t
4684 s,@host_os@,$host_os,;t t
4685 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
4686 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
4687 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
4688 s,@PACKAGE@,$PACKAGE,;t t
4689 s,@VERSION@,$VERSION,;t t
4690 s,@EXEEXT@,$EXEEXT,;t t
4691 s,@OBJEXT@,$OBJEXT,;t t
4692 s,@ACLOCAL@,$ACLOCAL,;t t
4693 s,@AUTOCONF@,$AUTOCONF,;t t
4694 s,@AUTOMAKE@,$AUTOMAKE,;t t
4695 s,@AUTOHEADER@,$AUTOHEADER,;t t
4696 s,@MAKEINFO@,$MAKEINFO,;t t
4697 s,@AMTAR@,$AMTAR,;t t
4698 s,@install_sh@,$install_sh,;t t
4699 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
4700 s,@AWK@,$AWK,;t t
4701 s,@SET_MAKE@,$SET_MAKE,;t t
4702 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
4703 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
4704 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
4705 s,@DEPDIR@,$DEPDIR,;t t
4706 s,@CC@,$CC,;t t
4707 s,@CFLAGS@,$CFLAGS,;t t
4708 s,@LDFLAGS@,$LDFLAGS,;t t
4709 s,@CPPFLAGS@,$CPPFLAGS,;t t
4710 s,@ac_ct_CC@,$ac_ct_CC,;t t
4711 s,@am__include@,$am__include,;t t
4712 s,@am__quote@,$am__quote,;t t
4713 s,@CCDEPMODE@,$CCDEPMODE,;t t
4714 s,@UNAME@,$UNAME,;t t
4715 s,@CPP@,$CPP,;t t
4716 s,@X_CFLAGS@,$X_CFLAGS,;t t
4717 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
4718 s,@X_LIBS@,$X_LIBS,;t t
4719 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
4720 s,@IMLIB2_CONFIG@,$IMLIB2_CONFIG,;t t
4721 s,@GTK_CONFIG@,$GTK_CONFIG,;t t
4722 CEOF
4726 cat >>$CONFIG_STATUS <<\EOF
4727 # Split the substitutions into bite-sized pieces for seds with
4728 # small command number limits, like on Digital OSF/1 and HP-UX.
4729 ac_max_sed_lines=48
4730 ac_sed_frag=1 # Number of current file.
4731 ac_beg=1 # First line for current file.
4732 ac_end=$ac_max_sed_lines # Line after last line for current file.
4733 ac_more_lines=:
4734 ac_sed_cmds=
4735 while $ac_more_lines; do
4736 if test $ac_beg -gt 1; then
4737 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4738 else
4739 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4741 if test ! -s $tmp/subs.frag; then
4742 ac_more_lines=false
4743 else
4744 # The purpose of the label and of the branching condition is to
4745 # speed up the sed processing (if there are no `@' at all, there
4746 # is no need to browse any of the substitutions).
4747 # These are the two extra sed commands mentioned above.
4748 (echo ':t
4749 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4750 if test -z "$ac_sed_cmds"; then
4751 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4752 else
4753 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4755 ac_sed_frag=`expr $ac_sed_frag + 1`
4756 ac_beg=$ac_end
4757 ac_end=`expr $ac_end + $ac_max_sed_lines`
4759 done
4760 if test -z "$ac_sed_cmds"; then
4761 ac_sed_cmds=cat
4763 fi # test -n "$CONFIG_FILES"
4766 cat >>$CONFIG_STATUS <<\EOF
4767 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4768 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4769 case $ac_file in
4770 - | *:- | *:-:* ) # input from stdin
4771 cat >$tmp/stdin
4772 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4773 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4774 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4775 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4776 * ) ac_file_in=$ac_file.in ;;
4777 esac
4779 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4780 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4781 X"$ac_file" : 'X\(//\)[^/]' \| \
4782 X"$ac_file" : 'X\(//\)$' \| \
4783 X"$ac_file" : 'X\(/\)' \| \
4784 . : '\(.\)' 2>/dev/null ||
4785 echo X"$ac_file" |
4786 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4787 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4788 /^X\(\/\/\)$/{ s//\1/; q; }
4789 /^X\(\/\).*/{ s//\1/; q; }
4790 s/.*/./; q'`
4791 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4792 { case "$ac_dir" in
4793 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
4794 *) as_incr_dir=.;;
4795 esac
4796 as_dummy="$ac_dir"
4797 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
4798 case $as_mkdir_dir in
4799 # Skip DOS drivespec
4800 ?:) as_incr_dir=$as_mkdir_dir ;;
4802 as_incr_dir=$as_incr_dir/$as_mkdir_dir
4803 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
4805 esac
4806 done; }
4808 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
4809 # A "../" for each directory in $ac_dir_suffix.
4810 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
4811 else
4812 ac_dir_suffix= ac_dots=
4815 case $srcdir in
4816 .) ac_srcdir=.
4817 if test -z "$ac_dots"; then
4818 ac_top_srcdir=.
4819 else
4820 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
4821 fi ;;
4822 [\\/]* | ?:[\\/]* )
4823 ac_srcdir=$srcdir$ac_dir_suffix;
4824 ac_top_srcdir=$srcdir ;;
4825 *) # Relative path.
4826 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
4827 ac_top_srcdir=$ac_dots$srcdir ;;
4828 esac
4830 case $INSTALL in
4831 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
4832 *) ac_INSTALL=$ac_dots$INSTALL ;;
4833 esac
4835 if test x"$ac_file" != x-; then
4836 { echo "$as_me:4836: creating $ac_file" >&5
4837 echo "$as_me: creating $ac_file" >&6;}
4838 rm -f "$ac_file"
4840 # Let's still pretend it is `configure' which instantiates (i.e., don't
4841 # use $as_me), people would be surprised to read:
4842 # /* config.h. Generated automatically by config.status. */
4843 configure_input="Generated automatically from `echo $ac_file_in |
4844 sed 's,.*/,,'` by configure."
4846 # First look for the input files in the build tree, otherwise in the
4847 # src tree.
4848 ac_file_inputs=`IFS=:
4849 for f in $ac_file_in; do
4850 case $f in
4851 -) echo $tmp/stdin ;;
4852 [\\/$]*)
4853 # Absolute (can't be DOS-style, as IFS=:)
4854 test -f "$f" || { { echo "$as_me:4854: error: cannot find input file: $f" >&5
4855 echo "$as_me: error: cannot find input file: $f" >&2;}
4856 { (exit 1); exit 1; }; }
4857 echo $f;;
4858 *) # Relative
4859 if test -f "$f"; then
4860 # Build tree
4861 echo $f
4862 elif test -f "$srcdir/$f"; then
4863 # Source tree
4864 echo $srcdir/$f
4865 else
4866 # /dev/null tree
4867 { { echo "$as_me:4867: error: cannot find input file: $f" >&5
4868 echo "$as_me: error: cannot find input file: $f" >&2;}
4869 { (exit 1); exit 1; }; }
4870 fi;;
4871 esac
4872 done` || { (exit 1); exit 1; }
4874 cat >>$CONFIG_STATUS <<EOF
4875 sed "$ac_vpsub
4876 $extrasub
4878 cat >>$CONFIG_STATUS <<\EOF
4880 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4881 s,@configure_input@,$configure_input,;t t
4882 s,@srcdir@,$ac_srcdir,;t t
4883 s,@top_srcdir@,$ac_top_srcdir,;t t
4884 s,@INSTALL@,$ac_INSTALL,;t t
4885 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
4886 rm -f $tmp/stdin
4887 if test x"$ac_file" != x-; then
4888 mv $tmp/out $ac_file
4889 else
4890 cat $tmp/out
4891 rm -f $tmp/out
4894 done
4896 cat >>$CONFIG_STATUS <<\EOF
4899 # CONFIG_COMMANDS section.
4901 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
4902 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
4903 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
4905 case $ac_dest in
4906 default-1 )
4907 test x"$AMDEP_TRUE" != x"" ||
4908 for mf in $CONFIG_FILES; do
4909 case "$mf" in
4910 Makefile) dirpart=.;;
4911 */Makefile) dirpart=`echo "$mf" | sed -e 's|/[^/]*$||'`;;
4912 *) continue;;
4913 esac
4914 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
4915 # Extract the definition of DEP_FILES from the Makefile without
4916 # running `make'.
4917 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
4918 test -z "$DEPDIR" && continue
4919 # When using ansi2knr, U may be empty or an underscore; expand it
4920 U=`sed -n -e '/^U = / s///p' < "$mf"`
4921 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
4922 # We invoke sed twice because it is the simplest approach to
4923 # changing $(DEPDIR) to its actual value in the expansion.
4924 for file in `sed -n -e '
4925 /^DEP_FILES = .*\\\\$/ {
4926 s/^DEP_FILES = //
4927 :loop
4928 s/\\\\$//
4931 /\\\\$/ b loop
4934 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
4935 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
4936 # Make sure the directory exists.
4937 test -f "$dirpart/$file" && continue
4938 fdir=`echo "$file" | sed -e 's|/[^/]*$||'`
4939 $ac_aux_dir/mkinstalldirs "$dirpart/$fdir" > /dev/null 2>&1
4940 # echo "creating $dirpart/$file"
4941 echo '# dummy' > "$dirpart/$file"
4942 done
4943 done
4945 esac
4946 done
4949 cat >>$CONFIG_STATUS <<\EOF
4951 { (exit 0); exit 0; }
4953 chmod +x $CONFIG_STATUS
4954 ac_clean_files=$ac_clean_files_save
4956 # configure is writing to config.log, and then calls config.status.
4957 # config.status does its own redirection, appending to config.log.
4958 # Unfortunately, on DOS this fails, as config.log is still kept open
4959 # by configure, so config.status won't be able to write to it; its
4960 # output is simply discarded. So we exec the FD to /dev/null,
4961 # effectively closing config.log, so it can be properly (re)opened and
4962 # appended to by config.status. When coming back to configure, we
4963 # need to make the FD available again.
4964 if test "$no_create" != yes; then
4965 ac_cs_success=:
4966 exec 5>/dev/null
4967 $SHELL $CONFIG_STATUS || ac_cs_success=false
4968 exec 5>>config.log
4969 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4970 # would make configure fail if this is the last instruction.
4971 $ac_cs_success || { (exit 1); exit 1; }
4974 echo
4975 echo "Using Imlib2 `$IMLIB2_CONFIG --version` and GTK+ `$GTK_CONFIG --version`"
4976 echo