comparison configure @ 3:67a643a734d9

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