Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for Haskell curl package 1.1.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
13
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 set -o posix
23 fi
24 DUALCASE=1; export DUALCASE # for MKS sh
25
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28 as_unset=unset
29 else
30 as_unset=false
31 fi
32
33
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
39
40 # NLS nuisances.
41 for as_var in \
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 LC_TELEPHONE LC_TIME
45 do
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
48 else
49 $as_unset $as_var
50 fi
51 done
52
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56 else
57 as_expr=false
58 fi
59
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62 else
63 as_basename=false
64 fi
65
66
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
77 s/.*/./; q'`
78
79
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
92 chmod +x conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94 PATH_SEPARATOR=';'
95 else
96 PATH_SEPARATOR=:
97 fi
98 rm -f conf$$.sh
99 fi
100
101
102 as_lineno_1=$LINENO
103 as_lineno_2=$LINENO
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
108 # relative or not.
109 case $0 in
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
113 do
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
118
119 ;;
120 esac
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
124 as_myself=$0
125 fi
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
129 fi
130 case $CONFIG_SHELL in
131 '')
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 do
135 IFS=$as_save_IFS
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
138 case $as_dir in
139 /*)
140 if ("$as_dir/$as_base" -c '
141 as_lineno_1=$LINENO
142 as_lineno_2=$LINENO
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
149 export CONFIG_SHELL
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 fi;;
152 esac
153 done
154 done
155 ;;
156 esac
157
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
167 sed '
168 N
169 s,$,-,
170 : loop
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 t loop
173 s,-$,,
174 s,^['$as_cr_digits']*\n,,
175 ' >$as_me.lineno &&
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
179
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
183 . ./$as_me.lineno
184 # Exit status is that of the last command.
185 exit
186 }
187
188
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T=' ' ;;
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
195
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198 else
199 as_expr=false
200 fi
201
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
209 as_ln_s='cp -p'
210 else
211 as_ln_s='ln -s'
212 fi
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215 else
216 as_ln_s='cp -p'
217 fi
218 rm -f conf$$ conf$$.exe conf$$.file
219
220 if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222 else
223 test -d ./-p && rmdir ./-p
224 as_mkdir_p=false
225 fi
226
227 as_executable_p="test -f"
228
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
239 '
240 IFS=" $as_nl"
241
242 # CDPATH.
243 $as_unset CDPATH
244
245
246 # Name of the host.
247 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248 # so uname gets run too.
249 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
250
251 exec 6>&1
252
253 #
254 # Initializations.
255 #
256 ac_default_prefix=/usr/local
257 ac_config_libobj_dir=.
258 cross_compiling=no
259 subdirs=
260 MFLAGS=
261 MAKEFLAGS=
262 SHELL=${CONFIG_SHELL-/bin/sh}
263
264 # Maximum number of lines to put in a shell here document.
265 # This variable seems obsolete. It should probably be removed, and
266 # only ac_max_sed_lines should be used.
267 : ${ac_max_here_lines=38}
268
269 # Identity of this package.
270 PACKAGE_NAME='Haskell curl package'
271 PACKAGE_TARNAME='curl'
272 PACKAGE_VERSION='1.1'
273 PACKAGE_STRING='Haskell curl package 1.1'
274 PACKAGE_BUGREPORT='[email protected]'
275
276 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP CURL_BUILD_PACKAGE BUILD_PACKAGE_BOOL LIBOBJS LTLIBOBJS'
277 ac_subst_files=''
278
279 # Initialize some variables set by options.
280 ac_init_help=
281 ac_init_version=false
282 # The variables have the same names as the options, with
283 # dashes changed to underlines.
284 cache_file=/dev/null
285 exec_prefix=NONE
286 no_create=
287 no_recursion=
288 prefix=NONE
289 program_prefix=NONE
290 program_suffix=NONE
291 program_transform_name=s,x,x,
292 silent=
293 site=
294 srcdir=
295 verbose=
296 x_includes=NONE
297 x_libraries=NONE
298
299 # Installation directory options.
300 # These are left unexpanded so users can "make install exec_prefix=/foo"
301 # and all the variables that are supposed to be based on exec_prefix
302 # by default will actually change.
303 # Use braces instead of parens because sh, perl, etc. also accept them.
304 bindir='${exec_prefix}/bin'
305 sbindir='${exec_prefix}/sbin'
306 libexecdir='${exec_prefix}/libexec'
307 datadir='${prefix}/share'
308 sysconfdir='${prefix}/etc'
309 sharedstatedir='${prefix}/com'
310 localstatedir='${prefix}/var'
311 libdir='${exec_prefix}/lib'
312 includedir='${prefix}/include'
313 oldincludedir='/usr/include'
314 infodir='${prefix}/info'
315 mandir='${prefix}/man'
316
317 ac_prev=
318 for ac_option
319 do
320 # If the previous option needs an argument, assign it.
321 if test -n "$ac_prev"; then
322 eval "$ac_prev=\$ac_option"
323 ac_prev=
324 continue
325 fi
326
327 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
328
329 # Accept the important Cygnus configure options, so we can diagnose typos.
330
331 case $ac_option in
332
333 -bindir | --bindir | --bindi | --bind | --bin | --bi)
334 ac_prev=bindir ;;
335 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
336 bindir=$ac_optarg ;;
337
338 -build | --build | --buil | --bui | --bu)
339 ac_prev=build_alias ;;
340 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
341 build_alias=$ac_optarg ;;
342
343 -cache-file | --cache-file | --cache-fil | --cache-fi \
344 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
345 ac_prev=cache_file ;;
346 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
347 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
348 cache_file=$ac_optarg ;;
349
350 --config-cache | -C)
351 cache_file=config.cache ;;
352
353 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
354 ac_prev=datadir ;;
355 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
356 | --da=*)
357 datadir=$ac_optarg ;;
358
359 -disable-* | --disable-*)
360 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
361 # Reject names that are not valid shell variable names.
362 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
363 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
364 { (exit 1); exit 1; }; }
365 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
366 eval "enable_$ac_feature=no" ;;
367
368 -enable-* | --enable-*)
369 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
370 # Reject names that are not valid shell variable names.
371 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
372 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
373 { (exit 1); exit 1; }; }
374 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
375 case $ac_option in
376 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
377 *) ac_optarg=yes ;;
378 esac
379 eval "enable_$ac_feature='$ac_optarg'" ;;
380
381 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
382 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
383 | --exec | --exe | --ex)
384 ac_prev=exec_prefix ;;
385 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
386 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
387 | --exec=* | --exe=* | --ex=*)
388 exec_prefix=$ac_optarg ;;
389
390 -gas | --gas | --ga | --g)
391 # Obsolete; use --with-gas.
392 with_gas=yes ;;
393
394 -help | --help | --hel | --he | -h)
395 ac_init_help=long ;;
396 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
397 ac_init_help=recursive ;;
398 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
399 ac_init_help=short ;;
400
401 -host | --host | --hos | --ho)
402 ac_prev=host_alias ;;
403 -host=* | --host=* | --hos=* | --ho=*)
404 host_alias=$ac_optarg ;;
405
406 -includedir | --includedir | --includedi | --included | --include \
407 | --includ | --inclu | --incl | --inc)
408 ac_prev=includedir ;;
409 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
410 | --includ=* | --inclu=* | --incl=* | --inc=*)
411 includedir=$ac_optarg ;;
412
413 -infodir | --infodir | --infodi | --infod | --info | --inf)
414 ac_prev=infodir ;;
415 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
416 infodir=$ac_optarg ;;
417
418 -libdir | --libdir | --libdi | --libd)
419 ac_prev=libdir ;;
420 -libdir=* | --libdir=* | --libdi=* | --libd=*)
421 libdir=$ac_optarg ;;
422
423 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
424 | --libexe | --libex | --libe)
425 ac_prev=libexecdir ;;
426 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
427 | --libexe=* | --libex=* | --libe=*)
428 libexecdir=$ac_optarg ;;
429
430 -localstatedir | --localstatedir | --localstatedi | --localstated \
431 | --localstate | --localstat | --localsta | --localst \
432 | --locals | --local | --loca | --loc | --lo)
433 ac_prev=localstatedir ;;
434 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
435 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
436 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
437 localstatedir=$ac_optarg ;;
438
439 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
440 ac_prev=mandir ;;
441 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
442 mandir=$ac_optarg ;;
443
444 -nfp | --nfp | --nf)
445 # Obsolete; use --without-fp.
446 with_fp=no ;;
447
448 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
449 | --no-cr | --no-c | -n)
450 no_create=yes ;;
451
452 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
453 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
454 no_recursion=yes ;;
455
456 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
457 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
458 | --oldin | --oldi | --old | --ol | --o)
459 ac_prev=oldincludedir ;;
460 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
461 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
462 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
463 oldincludedir=$ac_optarg ;;
464
465 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
466 ac_prev=prefix ;;
467 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
468 prefix=$ac_optarg ;;
469
470 -program-prefix | --program-prefix | --program-prefi | --program-pref \
471 | --program-pre | --program-pr | --program-p)
472 ac_prev=program_prefix ;;
473 -program-prefix=* | --program-prefix=* | --program-prefi=* \
474 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
475 program_prefix=$ac_optarg ;;
476
477 -program-suffix | --program-suffix | --program-suffi | --program-suff \
478 | --program-suf | --program-su | --program-s)
479 ac_prev=program_suffix ;;
480 -program-suffix=* | --program-suffix=* | --program-suffi=* \
481 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
482 program_suffix=$ac_optarg ;;
483
484 -program-transform-name | --program-transform-name \
485 | --program-transform-nam | --program-transform-na \
486 | --program-transform-n | --program-transform- \
487 | --program-transform | --program-transfor \
488 | --program-transfo | --program-transf \
489 | --program-trans | --program-tran \
490 | --progr-tra | --program-tr | --program-t)
491 ac_prev=program_transform_name ;;
492 -program-transform-name=* | --program-transform-name=* \
493 | --program-transform-nam=* | --program-transform-na=* \
494 | --program-transform-n=* | --program-transform-=* \
495 | --program-transform=* | --program-transfor=* \
496 | --program-transfo=* | --program-transf=* \
497 | --program-trans=* | --program-tran=* \
498 | --progr-tra=* | --program-tr=* | --program-t=*)
499 program_transform_name=$ac_optarg ;;
500
501 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
502 | -silent | --silent | --silen | --sile | --sil)
503 silent=yes ;;
504
505 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
506 ac_prev=sbindir ;;
507 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
508 | --sbi=* | --sb=*)
509 sbindir=$ac_optarg ;;
510
511 -sharedstatedir | --sharedstatedir | --sharedstatedi \
512 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
513 | --sharedst | --shareds | --shared | --share | --shar \
514 | --sha | --sh)
515 ac_prev=sharedstatedir ;;
516 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
517 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
518 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
519 | --sha=* | --sh=*)
520 sharedstatedir=$ac_optarg ;;
521
522 -site | --site | --sit)
523 ac_prev=site ;;
524 -site=* | --site=* | --sit=*)
525 site=$ac_optarg ;;
526
527 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
528 ac_prev=srcdir ;;
529 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
530 srcdir=$ac_optarg ;;
531
532 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
533 | --syscon | --sysco | --sysc | --sys | --sy)
534 ac_prev=sysconfdir ;;
535 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
536 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
537 sysconfdir=$ac_optarg ;;
538
539 -target | --target | --targe | --targ | --tar | --ta | --t)
540 ac_prev=target_alias ;;
541 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
542 target_alias=$ac_optarg ;;
543
544 -v | -verbose | --verbose | --verbos | --verbo | --verb)
545 verbose=yes ;;
546
547 -version | --version | --versio | --versi | --vers | -V)
548 ac_init_version=: ;;
549
550 -with-* | --with-*)
551 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
552 # Reject names that are not valid shell variable names.
553 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554 { echo "$as_me: error: invalid package name: $ac_package" >&2
555 { (exit 1); exit 1; }; }
556 ac_package=`echo $ac_package| sed 's/-/_/g'`
557 case $ac_option in
558 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
559 *) ac_optarg=yes ;;
560 esac
561 eval "with_$ac_package='$ac_optarg'" ;;
562
563 -without-* | --without-*)
564 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
565 # Reject names that are not valid shell variable names.
566 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
567 { echo "$as_me: error: invalid package name: $ac_package" >&2
568 { (exit 1); exit 1; }; }
569 ac_package=`echo $ac_package | sed 's/-/_/g'`
570 eval "with_$ac_package=no" ;;
571
572 --x)
573 # Obsolete; use --with-x.
574 with_x=yes ;;
575
576 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
577 | --x-incl | --x-inc | --x-in | --x-i)
578 ac_prev=x_includes ;;
579 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
580 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
581 x_includes=$ac_optarg ;;
582
583 -x-libraries | --x-libraries | --x-librarie | --x-librari \
584 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
585 ac_prev=x_libraries ;;
586 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
587 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
588 x_libraries=$ac_optarg ;;
589
590 -*) { echo "$as_me: error: unrecognized option: $ac_option
591 Try \`$0 --help' for more information." >&2
592 { (exit 1); exit 1; }; }
593 ;;
594
595 *=*)
596 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
597 # Reject names that are not valid shell variable names.
598 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
599 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
600 { (exit 1); exit 1; }; }
601 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
602 eval "$ac_envvar='$ac_optarg'"
603 export $ac_envvar ;;
604
605 *)
606 # FIXME: should be removed in autoconf 3.0.
607 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
608 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
609 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
610 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
611 ;;
612
613 esac
614 done
615
616 if test -n "$ac_prev"; then
617 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
618 { echo "$as_me: error: missing argument to $ac_option" >&2
619 { (exit 1); exit 1; }; }
620 fi
621
622 # Be sure to have absolute paths.
623 for ac_var in exec_prefix prefix
624 do
625 eval ac_val=$`echo $ac_var`
626 case $ac_val in
627 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
628 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
629 { (exit 1); exit 1; }; };;
630 esac
631 done
632
633 # Be sure to have absolute paths.
634 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
635 localstatedir libdir includedir oldincludedir infodir mandir
636 do
637 eval ac_val=$`echo $ac_var`
638 case $ac_val in
639 [\\/$]* | ?:[\\/]* ) ;;
640 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
641 { (exit 1); exit 1; }; };;
642 esac
643 done
644
645 # There might be people who depend on the old broken behavior: `$host'
646 # used to hold the argument of --host etc.
647 # FIXME: To remove some day.
648 build=$build_alias
649 host=$host_alias
650 target=$target_alias
651
652 # FIXME: To remove some day.
653 if test "x$host_alias" != x; then
654 if test "x$build_alias" = x; then
655 cross_compiling=maybe
656 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
657 If a cross compiler is detected then cross compile mode will be used." >&2
658 elif test "x$build_alias" != "x$host_alias"; then
659 cross_compiling=yes
660 fi
661 fi
662
663 ac_tool_prefix=
664 test -n "$host_alias" && ac_tool_prefix=$host_alias-
665
666 test "$silent" = yes && exec 6>/dev/null
667
668
669 # Find the source files, if location was not specified.
670 if test -z "$srcdir"; then
671 ac_srcdir_defaulted=yes
672 # Try the directory containing this script, then its parent.
673 ac_confdir=`(dirname "$0") 2>/dev/null ||
674 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
675 X"$0" : 'X\(//\)[^/]' \| \
676 X"$0" : 'X\(//\)$' \| \
677 X"$0" : 'X\(/\)' \| \
678 . : '\(.\)' 2>/dev/null ||
679 echo X"$0" |
680 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
681 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
682 /^X\(\/\/\)$/{ s//\1/; q; }
683 /^X\(\/\).*/{ s//\1/; q; }
684 s/.*/./; q'`
685 srcdir=$ac_confdir
686 if test ! -r $srcdir/$ac_unique_file; then
687 srcdir=..
688 fi
689 else
690 ac_srcdir_defaulted=no
691 fi
692 if test ! -r $srcdir/$ac_unique_file; then
693 if test "$ac_srcdir_defaulted" = yes; then
694 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
695 { (exit 1); exit 1; }; }
696 else
697 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
698 { (exit 1); exit 1; }; }
699 fi
700 fi
701 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
702 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
703 { (exit 1); exit 1; }; }
704 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
705 ac_env_build_alias_set=${build_alias+set}
706 ac_env_build_alias_value=$build_alias
707 ac_cv_env_build_alias_set=${build_alias+set}
708 ac_cv_env_build_alias_value=$build_alias
709 ac_env_host_alias_set=${host_alias+set}
710 ac_env_host_alias_value=$host_alias
711 ac_cv_env_host_alias_set=${host_alias+set}
712 ac_cv_env_host_alias_value=$host_alias
713 ac_env_target_alias_set=${target_alias+set}
714 ac_env_target_alias_value=$target_alias
715 ac_cv_env_target_alias_set=${target_alias+set}
716 ac_cv_env_target_alias_value=$target_alias
717 ac_env_CC_set=${CC+set}
718 ac_env_CC_value=$CC
719 ac_cv_env_CC_set=${CC+set}
720 ac_cv_env_CC_value=$CC
721 ac_env_CFLAGS_set=${CFLAGS+set}
722 ac_env_CFLAGS_value=$CFLAGS
723 ac_cv_env_CFLAGS_set=${CFLAGS+set}
724 ac_cv_env_CFLAGS_value=$CFLAGS
725 ac_env_LDFLAGS_set=${LDFLAGS+set}
726 ac_env_LDFLAGS_value=$LDFLAGS
727 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
728 ac_cv_env_LDFLAGS_value=$LDFLAGS
729 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
730 ac_env_CPPFLAGS_value=$CPPFLAGS
731 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
732 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
733 ac_env_CPP_set=${CPP+set}
734 ac_env_CPP_value=$CPP
735 ac_cv_env_CPP_set=${CPP+set}
736 ac_cv_env_CPP_value=$CPP
737
738 #
739 # Report the --help message.
740 #
741 if test "$ac_init_help" = "long"; then
742 # Omit some internal or obsolete options to make the list less imposing.
743 # This message is too long to be a string in the A/UX 3.1 sh.
744 cat <<_ACEOF
745 \`configure' configures Haskell curl package 1.1 to adapt to many kinds of systems.
746
747 Usage: $0 [OPTION]... [VAR=VALUE]...
748
749 To assign environment variables (e.g., CC, CFLAGS...), specify them as
750 VAR=VALUE. See below for descriptions of some of the useful variables.
751
752 Defaults for the options are specified in brackets.
753
754 Configuration:
755 -h, --help display this help and exit
756 --help=short display options specific to this package
757 --help=recursive display the short help of all the included packages
758 -V, --version display version information and exit
759 -q, --quiet, --silent do not print \`checking...' messages
760 --cache-file=FILE cache test results in FILE [disabled]
761 -C, --config-cache alias for \`--cache-file=config.cache'
762 -n, --no-create do not create output files
763 --srcdir=DIR find the sources in DIR [configure dir or \`..']
764
765 _ACEOF
766
767 cat <<_ACEOF
768 Installation directories:
769 --prefix=PREFIX install architecture-independent files in PREFIX
770 [$ac_default_prefix]
771 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
772 [PREFIX]
773
774 By default, \`make install' will install all the files in
775 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
776 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
777 for instance \`--prefix=\$HOME'.
778
779 For better control, use the options below.
780
781 Fine tuning of the installation directories:
782 --bindir=DIR user executables [EPREFIX/bin]
783 --sbindir=DIR system admin executables [EPREFIX/sbin]
784 --libexecdir=DIR program executables [EPREFIX/libexec]
785 --datadir=DIR read-only architecture-independent data [PREFIX/share]
786 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
787 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
788 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
789 --libdir=DIR object code libraries [EPREFIX/lib]
790 --includedir=DIR C header files [PREFIX/include]
791 --oldincludedir=DIR C header files for non-gcc [/usr/include]
792 --infodir=DIR info documentation [PREFIX/info]
793 --mandir=DIR man documentation [PREFIX/man]
794 _ACEOF
795
796 cat <<\_ACEOF
797 _ACEOF
798 fi
799
800 if test -n "$ac_init_help"; then
801 case $ac_init_help in
802 short | recursive ) echo "Configuration of Haskell curl package 1.1:";;
803 esac
804 cat <<\_ACEOF
805
806 Some influential environment variables:
807 CC C compiler command
808 CFLAGS C compiler flags
809 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
810 nonstandard directory <lib dir>
811 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
812 headers in a nonstandard directory <include dir>
813 CPP C preprocessor
814
815 Use these variables to override the choices made by `configure' or to help
816 it to find libraries and programs with nonstandard names/locations.
817
818 Report bugs to <[email protected]>.
819 _ACEOF
820 fi
821
822 if test "$ac_init_help" = "recursive"; then
823 # If there are subdirs, report their specific --help.
824 ac_popdir=`pwd`
825 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
826 test -d $ac_dir || continue
827 ac_builddir=.
828
829 if test "$ac_dir" != .; then
830 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
831 # A "../" for each directory in $ac_dir_suffix.
832 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
833 else
834 ac_dir_suffix= ac_top_builddir=
835 fi
836
837 case $srcdir in
838 .) # No --srcdir option. We are building in place.
839 ac_srcdir=.
840 if test -z "$ac_top_builddir"; then
841 ac_top_srcdir=.
842 else
843 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
844 fi ;;
845 [\\/]* | ?:[\\/]* ) # Absolute path.
846 ac_srcdir=$srcdir$ac_dir_suffix;
847 ac_top_srcdir=$srcdir ;;
848 *) # Relative path.
849 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
850 ac_top_srcdir=$ac_top_builddir$srcdir ;;
851 esac
852
853 # Do not use `cd foo && pwd` to compute absolute paths, because
854 # the directories may not exist.
855 case `pwd` in
856 .) ac_abs_builddir="$ac_dir";;
857 *)
858 case "$ac_dir" in
859 .) ac_abs_builddir=`pwd`;;
860 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
861 *) ac_abs_builddir=`pwd`/"$ac_dir";;
862 esac;;
863 esac
864 case $ac_abs_builddir in
865 .) ac_abs_top_builddir=${ac_top_builddir}.;;
866 *)
867 case ${ac_top_builddir}. in
868 .) ac_abs_top_builddir=$ac_abs_builddir;;
869 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
870 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
871 esac;;
872 esac
873 case $ac_abs_builddir in
874 .) ac_abs_srcdir=$ac_srcdir;;
875 *)
876 case $ac_srcdir in
877 .) ac_abs_srcdir=$ac_abs_builddir;;
878 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
879 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
880 esac;;
881 esac
882 case $ac_abs_builddir in
883 .) ac_abs_top_srcdir=$ac_top_srcdir;;
884 *)
885 case $ac_top_srcdir in
886 .) ac_abs_top_srcdir=$ac_abs_builddir;;
887 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
888 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
889 esac;;
890 esac
891
892 cd $ac_dir
893 # Check for guested configure; otherwise get Cygnus style configure.
894 if test -f $ac_srcdir/configure.gnu; then
895 echo
896 $SHELL $ac_srcdir/configure.gnu --help=recursive
897 elif test -f $ac_srcdir/configure; then
898 echo
899 $SHELL $ac_srcdir/configure --help=recursive
900 elif test -f $ac_srcdir/configure.ac ||
901 test -f $ac_srcdir/configure.in; then
902 echo
903 $ac_configure --help
904 else
905 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
906 fi
907 cd $ac_popdir
908 done
909 fi
910
911 test -n "$ac_init_help" && exit 0
912 if $ac_init_version; then
913 cat <<\_ACEOF
914 Haskell curl package configure 1.1
915 generated by GNU Autoconf 2.59
916
917 Copyright (C) 2003 Free Software Foundation, Inc.
918 This configure script is free software; the Free Software Foundation
919 gives unlimited permission to copy, distribute and modify it.
920 _ACEOF
921 exit 0
922 fi
923 exec 5>config.log
924 cat >&5 <<_ACEOF
925 This file contains any messages produced by compilers while
926 running configure, to aid debugging if configure makes a mistake.
927
928 It was created by Haskell curl package $as_me 1.1, which was
929 generated by GNU Autoconf 2.59. Invocation command line was
930
931 $ $0 $@
932
933 _ACEOF
934 {
935 cat <<_ASUNAME
936 ## --------- ##
937 ## Platform. ##
938 ## --------- ##
939
940 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
941 uname -m = `(uname -m) 2>/dev/null || echo unknown`
942 uname -r = `(uname -r) 2>/dev/null || echo unknown`
943 uname -s = `(uname -s) 2>/dev/null || echo unknown`
944 uname -v = `(uname -v) 2>/dev/null || echo unknown`
945
946 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
947 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
948
949 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
950 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
951 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
952 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
953 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
954 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
955 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
956
957 _ASUNAME
958
959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
960 for as_dir in $PATH
961 do
962 IFS=$as_save_IFS
963 test -z "$as_dir" && as_dir=.
964 echo "PATH: $as_dir"
965 done
966
967 } >&5
968
969 cat >&5 <<_ACEOF
970
971
972 ## ----------- ##
973 ## Core tests. ##
974 ## ----------- ##
975
976 _ACEOF
977
978
979 # Keep a trace of the command line.
980 # Strip out --no-create and --no-recursion so they do not pile up.
981 # Strip out --silent because we don't want to record it for future runs.
982 # Also quote any args containing shell meta-characters.
983 # Make two passes to allow for proper duplicate-argument suppression.
984 ac_configure_args=
985 ac_configure_args0=
986 ac_configure_args1=
987 ac_sep=
988 ac_must_keep_next=false
989 for ac_pass in 1 2
990 do
991 for ac_arg
992 do
993 case $ac_arg in
994 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
995 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
996 | -silent | --silent | --silen | --sile | --sil)
997 continue ;;
998 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
999 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1000 esac
1001 case $ac_pass in
1002 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1003 2)
1004 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1005 if test $ac_must_keep_next = true; then
1006 ac_must_keep_next=false # Got value, back to normal.
1007 else
1008 case $ac_arg in
1009 *=* | --config-cache | -C | -disable-* | --disable-* \
1010 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1011 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1012 | -with-* | --with-* | -without-* | --without-* | --x)
1013 case "$ac_configure_args0 " in
1014 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1015 esac
1016 ;;
1017 -* ) ac_must_keep_next=true ;;
1018 esac
1019 fi
1020 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1021 # Get rid of the leading space.
1022 ac_sep=" "
1023 ;;
1024 esac
1025 done
1026 done
1027 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1028 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1029
1030 # When interrupted or exit'd, cleanup temporary files, and complete
1031 # config.log. We remove comments because anyway the quotes in there
1032 # would cause problems or look ugly.
1033 # WARNING: Be sure not to use single quotes in there, as some shells,
1034 # such as our DU 5.0 friend, will then `close' the trap.
1035 trap 'exit_status=$?
1036 # Save into config.log some information that might help in debugging.
1037 {
1038 echo
1039
1040 cat <<\_ASBOX
1041 ## ---------------- ##
1042 ## Cache variables. ##
1043 ## ---------------- ##
1044 _ASBOX
1045 echo
1046 # The following way of writing the cache mishandles newlines in values,
1047 {
1048 (set) 2>&1 |
1049 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1050 *ac_space=\ *)
1051 sed -n \
1052 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1053 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1054 ;;
1055 *)
1056 sed -n \
1057 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1058 ;;
1059 esac;
1060 }
1061 echo
1062
1063 cat <<\_ASBOX
1064 ## ----------------- ##
1065 ## Output variables. ##
1066 ## ----------------- ##
1067 _ASBOX
1068 echo
1069 for ac_var in $ac_subst_vars
1070 do
1071 eval ac_val=$`echo $ac_var`
1072 echo "$ac_var='"'"'$ac_val'"'"'"
1073 done | sort
1074 echo
1075
1076 if test -n "$ac_subst_files"; then
1077 cat <<\_ASBOX
1078 ## ------------- ##
1079 ## Output files. ##
1080 ## ------------- ##
1081 _ASBOX
1082 echo
1083 for ac_var in $ac_subst_files
1084 do
1085 eval ac_val=$`echo $ac_var`
1086 echo "$ac_var='"'"'$ac_val'"'"'"
1087 done | sort
1088 echo
1089 fi
1090
1091 if test -s confdefs.h; then
1092 cat <<\_ASBOX
1093 ## ----------- ##
1094 ## confdefs.h. ##
1095 ## ----------- ##
1096 _ASBOX
1097 echo
1098 sed "/^$/d" confdefs.h | sort
1099 echo
1100 fi
1101 test "$ac_signal" != 0 &&
1102 echo "$as_me: caught signal $ac_signal"
1103 echo "$as_me: exit $exit_status"
1104 } >&5
1105 rm -f core *.core &&
1106 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1107 exit $exit_status
1108 ' 0
1109 for ac_signal in 1 2 13 15; do
1110 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1111 done
1112 ac_signal=0
1113
1114 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1115 rm -rf conftest* confdefs.h
1116 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1117 echo >confdefs.h
1118
1119 # Predefined preprocessor variables.
1120
1121 cat >>confdefs.h <<_ACEOF
1122 #define PACKAGE_NAME "$PACKAGE_NAME"
1123 _ACEOF
1124
1125
1126 cat >>confdefs.h <<_ACEOF
1127 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1128 _ACEOF
1129
1130
1131 cat >>confdefs.h <<_ACEOF
1132 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1133 _ACEOF
1134
1135
1136 cat >>confdefs.h <<_ACEOF
1137 #define PACKAGE_STRING "$PACKAGE_STRING"
1138 _ACEOF
1139
1140
1141 cat >>confdefs.h <<_ACEOF
1142 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1143 _ACEOF
1144
1145
1146 # Let the site file select an alternate cache file if it wants to.
1147 # Prefer explicitly selected file to automatically selected ones.
1148 if test -z "$CONFIG_SITE"; then
1149 if test "x$prefix" != xNONE; then
1150 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1151 else
1152 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1153 fi
1154 fi
1155 for ac_site_file in $CONFIG_SITE; do
1156 if test -r "$ac_site_file"; then
1157 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1158 echo "$as_me: loading site script $ac_site_file" >&6;}
1159 sed 's/^/| /' "$ac_site_file" >&5
1160 . "$ac_site_file"
1161 fi
1162 done
1163
1164 if test -r "$cache_file"; then
1165 # Some versions of bash will fail to source /dev/null (special
1166 # files actually), so we avoid doing that.
1167 if test -f "$cache_file"; then
1168 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1169 echo "$as_me: loading cache $cache_file" >&6;}
1170 case $cache_file in
1171 [\\/]* | ?:[\\/]* ) . $cache_file;;
1172 *) . ./$cache_file;;
1173 esac
1174 fi
1175 else
1176 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1177 echo "$as_me: creating cache $cache_file" >&6;}
1178 >$cache_file
1179 fi
1180
1181 # Check that the precious variables saved in the cache have kept the same
1182 # value.
1183 ac_cache_corrupted=false
1184 for ac_var in `(set) 2>&1 |
1185 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1186 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1187 eval ac_new_set=\$ac_env_${ac_var}_set
1188 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1189 eval ac_new_val="\$ac_env_${ac_var}_value"
1190 case $ac_old_set,$ac_new_set in
1191 set,)
1192 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1193 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1194 ac_cache_corrupted=: ;;
1195 ,set)
1196 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1197 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1198 ac_cache_corrupted=: ;;
1199 ,);;
1200 *)
1201 if test "x$ac_old_val" != "x$ac_new_val"; then
1202 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1203 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1204 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1205 echo "$as_me: former value: $ac_old_val" >&2;}
1206 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1207 echo "$as_me: current value: $ac_new_val" >&2;}
1208 ac_cache_corrupted=:
1209 fi;;
1210 esac
1211 # Pass precious variables to config.status.
1212 if test "$ac_new_set" = set; then
1213 case $ac_new_val in
1214 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1215 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1216 *) ac_arg=$ac_var=$ac_new_val ;;
1217 esac
1218 case " $ac_configure_args " in
1219 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1220 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1221 esac
1222 fi
1223 done
1224 if $ac_cache_corrupted; then
1225 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1226 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1227 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1228 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1229 { (exit 1); exit 1; }; }
1230 fi
1231
1232 ac_ext=c
1233 ac_cpp='$CPP $CPPFLAGS'
1234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265 ac_ext=c
1266 ac_cpp='$CPP $CPPFLAGS'
1267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1270 if test -n "$ac_tool_prefix"; then
1271 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1272 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1273 echo "$as_me:$LINENO: checking for $ac_word" >&5
1274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1275 if test "${ac_cv_prog_CC+set}" = set; then
1276 echo $ECHO_N "(cached) $ECHO_C" >&6
1277 else
1278 if test -n "$CC"; then
1279 ac_cv_prog_CC="$CC" # Let the user override the test.
1280 else
1281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1282 for as_dir in $PATH
1283 do
1284 IFS=$as_save_IFS
1285 test -z "$as_dir" && as_dir=.
1286 for ac_exec_ext in '' $ac_executable_extensions; do
1287 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1288 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1290 break 2
1291 fi
1292 done
1293 done
1294
1295 fi
1296 fi
1297 CC=$ac_cv_prog_CC
1298 if test -n "$CC"; then
1299 echo "$as_me:$LINENO: result: $CC" >&5
1300 echo "${ECHO_T}$CC" >&6
1301 else
1302 echo "$as_me:$LINENO: result: no" >&5
1303 echo "${ECHO_T}no" >&6
1304 fi
1305
1306 fi
1307 if test -z "$ac_cv_prog_CC"; then
1308 ac_ct_CC=$CC
1309 # Extract the first word of "gcc", so it can be a program name with args.
1310 set dummy gcc; ac_word=$2
1311 echo "$as_me:$LINENO: checking for $ac_word" >&5
1312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1313 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1314 echo $ECHO_N "(cached) $ECHO_C" >&6
1315 else
1316 if test -n "$ac_ct_CC"; then
1317 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1318 else
1319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1320 for as_dir in $PATH
1321 do
1322 IFS=$as_save_IFS
1323 test -z "$as_dir" && as_dir=.
1324 for ac_exec_ext in '' $ac_executable_extensions; do
1325 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1326 ac_cv_prog_ac_ct_CC="gcc"
1327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1328 break 2
1329 fi
1330 done
1331 done
1332
1333 fi
1334 fi
1335 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1336 if test -n "$ac_ct_CC"; then
1337 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1338 echo "${ECHO_T}$ac_ct_CC" >&6
1339 else
1340 echo "$as_me:$LINENO: result: no" >&5
1341 echo "${ECHO_T}no" >&6
1342 fi
1343
1344 CC=$ac_ct_CC
1345 else
1346 CC="$ac_cv_prog_CC"
1347 fi
1348
1349 if test -z "$CC"; then
1350 if test -n "$ac_tool_prefix"; then
1351 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1352 set dummy ${ac_tool_prefix}cc; ac_word=$2
1353 echo "$as_me:$LINENO: checking for $ac_word" >&5
1354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1355 if test "${ac_cv_prog_CC+set}" = set; then
1356 echo $ECHO_N "(cached) $ECHO_C" >&6
1357 else
1358 if test -n "$CC"; then
1359 ac_cv_prog_CC="$CC" # Let the user override the test.
1360 else
1361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1362 for as_dir in $PATH
1363 do
1364 IFS=$as_save_IFS
1365 test -z "$as_dir" && as_dir=.
1366 for ac_exec_ext in '' $ac_executable_extensions; do
1367 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1368 ac_cv_prog_CC="${ac_tool_prefix}cc"
1369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1370 break 2
1371 fi
1372 done
1373 done
1374
1375 fi
1376 fi
1377 CC=$ac_cv_prog_CC
1378 if test -n "$CC"; then
1379 echo "$as_me:$LINENO: result: $CC" >&5
1380 echo "${ECHO_T}$CC" >&6
1381 else
1382 echo "$as_me:$LINENO: result: no" >&5
1383 echo "${ECHO_T}no" >&6
1384 fi
1385
1386 fi
1387 if test -z "$ac_cv_prog_CC"; then
1388 ac_ct_CC=$CC
1389 # Extract the first word of "cc", so it can be a program name with args.
1390 set dummy cc; ac_word=$2
1391 echo "$as_me:$LINENO: checking for $ac_word" >&5
1392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1393 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1394 echo $ECHO_N "(cached) $ECHO_C" >&6
1395 else
1396 if test -n "$ac_ct_CC"; then
1397 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1398 else
1399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1400 for as_dir in $PATH
1401 do
1402 IFS=$as_save_IFS
1403 test -z "$as_dir" && as_dir=.
1404 for ac_exec_ext in '' $ac_executable_extensions; do
1405 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1406 ac_cv_prog_ac_ct_CC="cc"
1407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1408 break 2
1409 fi
1410 done
1411 done
1412
1413 fi
1414 fi
1415 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1416 if test -n "$ac_ct_CC"; then
1417 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1418 echo "${ECHO_T}$ac_ct_CC" >&6
1419 else
1420 echo "$as_me:$LINENO: result: no" >&5
1421 echo "${ECHO_T}no" >&6
1422 fi
1423
1424 CC=$ac_ct_CC
1425 else
1426 CC="$ac_cv_prog_CC"
1427 fi
1428
1429 fi
1430 if test -z "$CC"; then
1431 # Extract the first word of "cc", so it can be a program name with args.
1432 set dummy cc; ac_word=$2
1433 echo "$as_me:$LINENO: checking for $ac_word" >&5
1434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1435 if test "${ac_cv_prog_CC+set}" = set; then
1436 echo $ECHO_N "(cached) $ECHO_C" >&6
1437 else
1438 if test -n "$CC"; then
1439 ac_cv_prog_CC="$CC" # Let the user override the test.
1440 else
1441 ac_prog_rejected=no
1442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1443 for as_dir in $PATH
1444 do
1445 IFS=$as_save_IFS
1446 test -z "$as_dir" && as_dir=.
1447 for ac_exec_ext in '' $ac_executable_extensions; do
1448 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1449 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1450 ac_prog_rejected=yes
1451 continue
1452 fi
1453 ac_cv_prog_CC="cc"
1454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1455 break 2
1456 fi
1457 done
1458 done
1459
1460 if test $ac_prog_rejected = yes; then
1461 # We found a bogon in the path, so make sure we never use it.
1462 set dummy $ac_cv_prog_CC
1463 shift
1464 if test $# != 0; then
1465 # We chose a different compiler from the bogus one.
1466 # However, it has the same basename, so the bogon will be chosen
1467 # first if we set CC to just the basename; use the full file name.
1468 shift
1469 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1470 fi
1471 fi
1472 fi
1473 fi
1474 CC=$ac_cv_prog_CC
1475 if test -n "$CC"; then
1476 echo "$as_me:$LINENO: result: $CC" >&5
1477 echo "${ECHO_T}$CC" >&6
1478 else
1479 echo "$as_me:$LINENO: result: no" >&5
1480 echo "${ECHO_T}no" >&6
1481 fi
1482
1483 fi
1484 if test -z "$CC"; then
1485 if test -n "$ac_tool_prefix"; then
1486 for ac_prog in cl
1487 do
1488 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1489 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1490 echo "$as_me:$LINENO: checking for $ac_word" >&5
1491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1492 if test "${ac_cv_prog_CC+set}" = set; then
1493 echo $ECHO_N "(cached) $ECHO_C" >&6
1494 else
1495 if test -n "$CC"; then
1496 ac_cv_prog_CC="$CC" # Let the user override the test.
1497 else
1498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1499 for as_dir in $PATH
1500 do
1501 IFS=$as_save_IFS
1502 test -z "$as_dir" && as_dir=.
1503 for ac_exec_ext in '' $ac_executable_extensions; do
1504 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1505 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1507 break 2
1508 fi
1509 done
1510 done
1511
1512 fi
1513 fi
1514 CC=$ac_cv_prog_CC
1515 if test -n "$CC"; then
1516 echo "$as_me:$LINENO: result: $CC" >&5
1517 echo "${ECHO_T}$CC" >&6
1518 else
1519 echo "$as_me:$LINENO: result: no" >&5
1520 echo "${ECHO_T}no" >&6
1521 fi
1522
1523 test -n "$CC" && break
1524 done
1525 fi
1526 if test -z "$CC"; then
1527 ac_ct_CC=$CC
1528 for ac_prog in cl
1529 do
1530 # Extract the first word of "$ac_prog", so it can be a program name with args.
1531 set dummy $ac_prog; ac_word=$2
1532 echo "$as_me:$LINENO: checking for $ac_word" >&5
1533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1534 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1535 echo $ECHO_N "(cached) $ECHO_C" >&6
1536 else
1537 if test -n "$ac_ct_CC"; then
1538 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1539 else
1540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1541 for as_dir in $PATH
1542 do
1543 IFS=$as_save_IFS
1544 test -z "$as_dir" && as_dir=.
1545 for ac_exec_ext in '' $ac_executable_extensions; do
1546 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1547 ac_cv_prog_ac_ct_CC="$ac_prog"
1548 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1549 break 2
1550 fi
1551 done
1552 done
1553
1554 fi
1555 fi
1556 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1557 if test -n "$ac_ct_CC"; then
1558 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1559 echo "${ECHO_T}$ac_ct_CC" >&6
1560 else
1561 echo "$as_me:$LINENO: result: no" >&5
1562 echo "${ECHO_T}no" >&6
1563 fi
1564
1565 test -n "$ac_ct_CC" && break
1566 done
1567
1568 CC=$ac_ct_CC
1569 fi
1570
1571 fi
1572
1573
1574 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1575 See \`config.log' for more details." >&5
1576 echo "$as_me: error: no acceptable C compiler found in \$PATH
1577 See \`config.log' for more details." >&2;}
1578 { (exit 1); exit 1; }; }
1579
1580 # Provide some information about the compiler.
1581 echo "$as_me:$LINENO:" \
1582 "checking for C compiler version" >&5
1583 ac_compiler=`set X $ac_compile; echo $2`
1584 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1585 (eval $ac_compiler --version </dev/null >&5) 2>&5
1586 ac_status=$?
1587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1588 (exit $ac_status); }
1589 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1590 (eval $ac_compiler -v </dev/null >&5) 2>&5
1591 ac_status=$?
1592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1593 (exit $ac_status); }
1594 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1595 (eval $ac_compiler -V </dev/null >&5) 2>&5
1596 ac_status=$?
1597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1598 (exit $ac_status); }
1599
1600 cat >conftest.$ac_ext <<_ACEOF
1601 /* confdefs.h. */
1602 _ACEOF
1603 cat confdefs.h >>conftest.$ac_ext
1604 cat >>conftest.$ac_ext <<_ACEOF
1605 /* end confdefs.h. */
1606
1607 int
1608 main ()
1609 {
1610
1611 ;
1612 return 0;
1613 }
1614 _ACEOF
1615 ac_clean_files_save=$ac_clean_files
1616 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1617 # Try to create an executable without -o first, disregard a.out.
1618 # It will help us diagnose broken compilers, and finding out an intuition
1619 # of exeext.
1620 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1621 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1622 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1623 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1624 (eval $ac_link_default) 2>&5
1625 ac_status=$?
1626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1627 (exit $ac_status); }; then
1628 # Find the output, starting from the most likely. This scheme is
1629 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1630 # resort.
1631
1632 # Be careful to initialize this variable, since it used to be cached.
1633 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1634 ac_cv_exeext=
1635 # b.out is created by i960 compilers.
1636 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1637 do
1638 test -f "$ac_file" || continue
1639 case $ac_file in
1640 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1641 ;;
1642 conftest.$ac_ext )
1643 # This is the source file.
1644 ;;
1645 [ab].out )
1646 # We found the default executable, but exeext='' is most
1647 # certainly right.
1648 break;;
1649 *.* )
1650 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1651 # FIXME: I believe we export ac_cv_exeext for Libtool,
1652 # but it would be cool to find out if it's true. Does anybody
1653 # maintain Libtool? --akim.
1654 export ac_cv_exeext
1655 break;;
1656 * )
1657 break;;
1658 esac
1659 done
1660 else
1661 echo "$as_me: failed program was:" >&5
1662 sed 's/^/| /' conftest.$ac_ext >&5
1663
1664 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1665 See \`config.log' for more details." >&5
1666 echo "$as_me: error: C compiler cannot create executables
1667 See \`config.log' for more details." >&2;}
1668 { (exit 77); exit 77; }; }
1669 fi
1670
1671 ac_exeext=$ac_cv_exeext
1672 echo "$as_me:$LINENO: result: $ac_file" >&5
1673 echo "${ECHO_T}$ac_file" >&6
1674
1675 # Check the compiler produces executables we can run. If not, either
1676 # the compiler is broken, or we cross compile.
1677 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1678 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1679 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1680 # If not cross compiling, check that we can run a simple program.
1681 if test "$cross_compiling" != yes; then
1682 if { ac_try='./$ac_file'
1683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1684 (eval $ac_try) 2>&5
1685 ac_status=$?
1686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1687 (exit $ac_status); }; }; then
1688 cross_compiling=no
1689 else
1690 if test "$cross_compiling" = maybe; then
1691 cross_compiling=yes
1692 else
1693 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1694 If you meant to cross compile, use \`--host'.
1695 See \`config.log' for more details." >&5
1696 echo "$as_me: error: cannot run C compiled programs.
1697 If you meant to cross compile, use \`--host'.
1698 See \`config.log' for more details." >&2;}
1699 { (exit 1); exit 1; }; }
1700 fi
1701 fi
1702 fi
1703 echo "$as_me:$LINENO: result: yes" >&5
1704 echo "${ECHO_T}yes" >&6
1705
1706 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1707 ac_clean_files=$ac_clean_files_save
1708 # Check the compiler produces executables we can run. If not, either
1709 # the compiler is broken, or we cross compile.
1710 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1711 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1712 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1713 echo "${ECHO_T}$cross_compiling" >&6
1714
1715 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1716 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1718 (eval $ac_link) 2>&5
1719 ac_status=$?
1720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1721 (exit $ac_status); }; then
1722 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1723 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1724 # work properly (i.e., refer to `conftest.exe'), while it won't with
1725 # `rm'.
1726 for ac_file in conftest.exe conftest conftest.*; do
1727 test -f "$ac_file" || continue
1728 case $ac_file in
1729 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1730 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1731 export ac_cv_exeext
1732 break;;
1733 * ) break;;
1734 esac
1735 done
1736 else
1737 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1738 See \`config.log' for more details." >&5
1739 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1740 See \`config.log' for more details." >&2;}
1741 { (exit 1); exit 1; }; }
1742 fi
1743
1744 rm -f conftest$ac_cv_exeext
1745 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1746 echo "${ECHO_T}$ac_cv_exeext" >&6
1747
1748 rm -f conftest.$ac_ext
1749 EXEEXT=$ac_cv_exeext
1750 ac_exeext=$EXEEXT
1751 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1752 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1753 if test "${ac_cv_objext+set}" = set; then
1754 echo $ECHO_N "(cached) $ECHO_C" >&6
1755 else
1756 cat >conftest.$ac_ext <<_ACEOF
1757 /* confdefs.h. */
1758 _ACEOF
1759 cat confdefs.h >>conftest.$ac_ext
1760 cat >>conftest.$ac_ext <<_ACEOF
1761 /* end confdefs.h. */
1762
1763 int
1764 main ()
1765 {
1766
1767 ;
1768 return 0;
1769 }
1770 _ACEOF
1771 rm -f conftest.o conftest.obj
1772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1773 (eval $ac_compile) 2>&5
1774 ac_status=$?
1775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1776 (exit $ac_status); }; then
1777 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1778 case $ac_file in
1779 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1780 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1781 break;;
1782 esac
1783 done
1784 else
1785 echo "$as_me: failed program was:" >&5
1786 sed 's/^/| /' conftest.$ac_ext >&5
1787
1788 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1789 See \`config.log' for more details." >&5
1790 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1791 See \`config.log' for more details." >&2;}
1792 { (exit 1); exit 1; }; }
1793 fi
1794
1795 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1796 fi
1797 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1798 echo "${ECHO_T}$ac_cv_objext" >&6
1799 OBJEXT=$ac_cv_objext
1800 ac_objext=$OBJEXT
1801 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1802 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1803 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1804 echo $ECHO_N "(cached) $ECHO_C" >&6
1805 else
1806 cat >conftest.$ac_ext <<_ACEOF
1807 /* confdefs.h. */
1808 _ACEOF
1809 cat confdefs.h >>conftest.$ac_ext
1810 cat >>conftest.$ac_ext <<_ACEOF
1811 /* end confdefs.h. */
1812
1813 int
1814 main ()
1815 {
1816 #ifndef __GNUC__
1817 choke me
1818 #endif
1819
1820 ;
1821 return 0;
1822 }
1823 _ACEOF
1824 rm -f conftest.$ac_objext
1825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1826 (eval $ac_compile) 2>conftest.er1
1827 ac_status=$?
1828 grep -v '^ *+' conftest.er1 >conftest.err
1829 rm -f conftest.er1
1830 cat conftest.err >&5
1831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1832 (exit $ac_status); } &&
1833 { ac_try='test -z "$ac_c_werror_flag"
1834 || test ! -s conftest.err'
1835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1836 (eval $ac_try) 2>&5
1837 ac_status=$?
1838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1839 (exit $ac_status); }; } &&
1840 { ac_try='test -s conftest.$ac_objext'
1841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1842 (eval $ac_try) 2>&5
1843 ac_status=$?
1844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1845 (exit $ac_status); }; }; then
1846 ac_compiler_gnu=yes
1847 else
1848 echo "$as_me: failed program was:" >&5
1849 sed 's/^/| /' conftest.$ac_ext >&5
1850
1851 ac_compiler_gnu=no
1852 fi
1853 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1854 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1855
1856 fi
1857 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1858 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1859 GCC=`test $ac_compiler_gnu = yes && echo yes`
1860 ac_test_CFLAGS=${CFLAGS+set}
1861 ac_save_CFLAGS=$CFLAGS
1862 CFLAGS="-g"
1863 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1864 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1865 if test "${ac_cv_prog_cc_g+set}" = set; then
1866 echo $ECHO_N "(cached) $ECHO_C" >&6
1867 else
1868 cat >conftest.$ac_ext <<_ACEOF
1869 /* confdefs.h. */
1870 _ACEOF
1871 cat confdefs.h >>conftest.$ac_ext
1872 cat >>conftest.$ac_ext <<_ACEOF
1873 /* end confdefs.h. */
1874
1875 int
1876 main ()
1877 {
1878
1879 ;
1880 return 0;
1881 }
1882 _ACEOF
1883 rm -f conftest.$ac_objext
1884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1885 (eval $ac_compile) 2>conftest.er1
1886 ac_status=$?
1887 grep -v '^ *+' conftest.er1 >conftest.err
1888 rm -f conftest.er1
1889 cat conftest.err >&5
1890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1891 (exit $ac_status); } &&
1892 { ac_try='test -z "$ac_c_werror_flag"
1893 || test ! -s conftest.err'
1894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1895 (eval $ac_try) 2>&5
1896 ac_status=$?
1897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1898 (exit $ac_status); }; } &&
1899 { ac_try='test -s conftest.$ac_objext'
1900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1901 (eval $ac_try) 2>&5
1902 ac_status=$?
1903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1904 (exit $ac_status); }; }; then
1905 ac_cv_prog_cc_g=yes
1906 else
1907 echo "$as_me: failed program was:" >&5
1908 sed 's/^/| /' conftest.$ac_ext >&5
1909
1910 ac_cv_prog_cc_g=no
1911 fi
1912 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1913 fi
1914 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1915 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1916 if test "$ac_test_CFLAGS" = set; then
1917 CFLAGS=$ac_save_CFLAGS
1918 elif test $ac_cv_prog_cc_g = yes; then
1919 if test "$GCC" = yes; then
1920 CFLAGS="-g -O2"
1921 else
1922 CFLAGS="-g"
1923 fi
1924 else
1925 if test "$GCC" = yes; then
1926 CFLAGS="-O2"
1927 else
1928 CFLAGS=
1929 fi
1930 fi
1931 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1932 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1933 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1934 echo $ECHO_N "(cached) $ECHO_C" >&6
1935 else
1936 ac_cv_prog_cc_stdc=no
1937 ac_save_CC=$CC
1938 cat >conftest.$ac_ext <<_ACEOF
1939 /* confdefs.h. */
1940 _ACEOF
1941 cat confdefs.h >>conftest.$ac_ext
1942 cat >>conftest.$ac_ext <<_ACEOF
1943 /* end confdefs.h. */
1944 #include <stdarg.h>
1945 #include <stdio.h>
1946 #include <sys/types.h>
1947 #include <sys/stat.h>
1948 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1949 struct buf { int x; };
1950 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1951 static char *e (p, i)
1952 char **p;
1953 int i;
1954 {
1955 return p[i];
1956 }
1957 static char *f (char * (*g) (char **, int), char **p, ...)
1958 {
1959 char *s;
1960 va_list v;
1961 va_start (v,p);
1962 s = g (p, va_arg (v,int));
1963 va_end (v);
1964 return s;
1965 }
1966
1967 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
1968 function prototypes and stuff, but not '\xHH' hex character constants.
1969 These don't provoke an error unfortunately, instead are silently treated
1970 as 'x'. The following induces an error, until -std1 is added to get
1971 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
1972 array size at least. It's necessary to write '\x00'==0 to get something
1973 that's true only with -std1. */
1974 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
1975
1976 int test (int i, double x);
1977 struct s1 {int (*f) (int a);};
1978 struct s2 {int (*f) (double a);};
1979 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1980 int argc;
1981 char **argv;
1982 int
1983 main ()
1984 {
1985 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1986 ;
1987 return 0;
1988 }
1989 _ACEOF
1990 # Don't try gcc -ansi; that turns off useful extensions and
1991 # breaks some systems' header files.
1992 # AIX -qlanglvl=ansi
1993 # Ultrix and OSF/1 -std1
1994 # HP-UX 10.20 and later -Ae
1995 # HP-UX older versions -Aa -D_HPUX_SOURCE
1996 # SVR4 -Xc -D__EXTENSIONS__
1997 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1998 do
1999 CC="$ac_save_CC $ac_arg"
2000 rm -f conftest.$ac_objext
2001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2002 (eval $ac_compile) 2>conftest.er1
2003 ac_status=$?
2004 grep -v '^ *+' conftest.er1 >conftest.err
2005 rm -f conftest.er1
2006 cat conftest.err >&5
2007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2008 (exit $ac_status); } &&
2009 { ac_try='test -z "$ac_c_werror_flag"
2010 || test ! -s conftest.err'
2011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2012 (eval $ac_try) 2>&5
2013 ac_status=$?
2014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2015 (exit $ac_status); }; } &&
2016 { ac_try='test -s conftest.$ac_objext'
2017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2018 (eval $ac_try) 2>&5
2019 ac_status=$?
2020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2021 (exit $ac_status); }; }; then
2022 ac_cv_prog_cc_stdc=$ac_arg
2023 break
2024 else
2025 echo "$as_me: failed program was:" >&5
2026 sed 's/^/| /' conftest.$ac_ext >&5
2027
2028 fi
2029 rm -f conftest.err conftest.$ac_objext
2030 done
2031 rm -f conftest.$ac_ext conftest.$ac_objext
2032 CC=$ac_save_CC
2033
2034 fi
2035
2036 case "x$ac_cv_prog_cc_stdc" in
2037 x|xno)
2038 echo "$as_me:$LINENO: result: none needed" >&5
2039 echo "${ECHO_T}none needed" >&6 ;;
2040 *)
2041 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2042 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2043 CC="$CC $ac_cv_prog_cc_stdc" ;;
2044 esac
2045
2046 # Some people use a C++ compiler to compile C. Since we use `exit',
2047 # in C++ we need to declare it. In case someone uses the same compiler
2048 # for both compiling C and C++ we need to have the C++ compiler decide
2049 # the declaration of exit, since it's the most demanding environment.
2050 cat >conftest.$ac_ext <<_ACEOF
2051 #ifndef __cplusplus
2052 choke me
2053 #endif
2054 _ACEOF
2055 rm -f conftest.$ac_objext
2056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2057 (eval $ac_compile) 2>conftest.er1
2058 ac_status=$?
2059 grep -v '^ *+' conftest.er1 >conftest.err
2060 rm -f conftest.er1
2061 cat conftest.err >&5
2062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2063 (exit $ac_status); } &&
2064 { ac_try='test -z "$ac_c_werror_flag"
2065 || test ! -s conftest.err'
2066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2067 (eval $ac_try) 2>&5
2068 ac_status=$?
2069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2070 (exit $ac_status); }; } &&
2071 { ac_try='test -s conftest.$ac_objext'
2072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2073 (eval $ac_try) 2>&5
2074 ac_status=$?
2075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2076 (exit $ac_status); }; }; then
2077 for ac_declaration in \
2078 '' \
2079 'extern "C" void std::exit (int) throw (); using std::exit;' \
2080 'extern "C" void std::exit (int); using std::exit;' \
2081 'extern "C" void exit (int) throw ();' \
2082 'extern "C" void exit (int);' \
2083 'void exit (int);'
2084 do
2085 cat >conftest.$ac_ext <<_ACEOF
2086 /* confdefs.h. */
2087 _ACEOF
2088 cat confdefs.h >>conftest.$ac_ext
2089 cat >>conftest.$ac_ext <<_ACEOF
2090 /* end confdefs.h. */
2091 $ac_declaration
2092 #include <stdlib.h>
2093 int
2094 main ()
2095 {
2096 exit (42);
2097 ;
2098 return 0;
2099 }
2100 _ACEOF
2101 rm -f conftest.$ac_objext
2102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2103 (eval $ac_compile) 2>conftest.er1
2104 ac_status=$?
2105 grep -v '^ *+' conftest.er1 >conftest.err
2106 rm -f conftest.er1
2107 cat conftest.err >&5
2108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2109 (exit $ac_status); } &&
2110 { ac_try='test -z "$ac_c_werror_flag"
2111 || test ! -s conftest.err'
2112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2113 (eval $ac_try) 2>&5
2114 ac_status=$?
2115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2116 (exit $ac_status); }; } &&
2117 { ac_try='test -s conftest.$ac_objext'
2118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2119 (eval $ac_try) 2>&5
2120 ac_status=$?
2121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2122 (exit $ac_status); }; }; then
2123 :
2124 else
2125 echo "$as_me: failed program was:" >&5
2126 sed 's/^/| /' conftest.$ac_ext >&5
2127
2128 continue
2129 fi
2130 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2131 cat >conftest.$ac_ext <<_ACEOF
2132 /* confdefs.h. */
2133 _ACEOF
2134 cat confdefs.h >>conftest.$ac_ext
2135 cat >>conftest.$ac_ext <<_ACEOF
2136 /* end confdefs.h. */
2137 $ac_declaration
2138 int
2139 main ()
2140 {
2141 exit (42);
2142 ;
2143 return 0;
2144 }
2145 _ACEOF
2146 rm -f conftest.$ac_objext
2147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2148 (eval $ac_compile) 2>conftest.er1
2149 ac_status=$?
2150 grep -v '^ *+' conftest.er1 >conftest.err
2151 rm -f conftest.er1
2152 cat conftest.err >&5
2153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2154 (exit $ac_status); } &&
2155 { ac_try='test -z "$ac_c_werror_flag"
2156 || test ! -s conftest.err'
2157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2158 (eval $ac_try) 2>&5
2159 ac_status=$?
2160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2161 (exit $ac_status); }; } &&
2162 { ac_try='test -s conftest.$ac_objext'
2163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2164 (eval $ac_try) 2>&5
2165 ac_status=$?
2166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2167 (exit $ac_status); }; }; then
2168 break
2169 else
2170 echo "$as_me: failed program was:" >&5
2171 sed 's/^/| /' conftest.$ac_ext >&5
2172
2173 fi
2174 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2175 done
2176 rm -f conftest*
2177 if test -n "$ac_declaration"; then
2178 echo '#ifdef __cplusplus' >>confdefs.h
2179 echo $ac_declaration >>confdefs.h
2180 echo '#endif' >>confdefs.h
2181 fi
2182
2183 else
2184 echo "$as_me: failed program was:" >&5
2185 sed 's/^/| /' conftest.$ac_ext >&5
2186
2187 fi
2188 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2189 ac_ext=c
2190 ac_cpp='$CPP $CPPFLAGS'
2191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2194
2195
2196 ac_ext=c
2197 ac_cpp='$CPP $CPPFLAGS'
2198 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2199 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2200 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2201 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2202 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2203 # On Suns, sometimes $CPP names a directory.
2204 if test -n "$CPP" && test -d "$CPP"; then
2205 CPP=
2206 fi
2207 if test -z "$CPP"; then
2208 if test "${ac_cv_prog_CPP+set}" = set; then
2209 echo $ECHO_N "(cached) $ECHO_C" >&6
2210 else
2211 # Double quotes because CPP needs to be expanded
2212 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2213 do
2214 ac_preproc_ok=false
2215 for ac_c_preproc_warn_flag in '' yes
2216 do
2217 # Use a header file that comes with gcc, so configuring glibc
2218 # with a fresh cross-compiler works.
2219 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2220 # <limits.h> exists even on freestanding compilers.
2221 # On the NeXT, cc -E runs the code through the compiler's parser,
2222 # not just through cpp. "Syntax error" is here to catch this case.
2223 cat >conftest.$ac_ext <<_ACEOF
2224 /* confdefs.h. */
2225 _ACEOF
2226 cat confdefs.h >>conftest.$ac_ext
2227 cat >>conftest.$ac_ext <<_ACEOF
2228 /* end confdefs.h. */
2229 #ifdef __STDC__
2230 # include <limits.h>
2231 #else
2232 # include <assert.h>
2233 #endif
2234 Syntax error
2235 _ACEOF
2236 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2237 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2238 ac_status=$?
2239 grep -v '^ *+' conftest.er1 >conftest.err
2240 rm -f conftest.er1
2241 cat conftest.err >&5
2242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2243 (exit $ac_status); } >/dev/null; then
2244 if test -s conftest.err; then
2245 ac_cpp_err=$ac_c_preproc_warn_flag
2246 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2247 else
2248 ac_cpp_err=
2249 fi
2250 else
2251 ac_cpp_err=yes
2252 fi
2253 if test -z "$ac_cpp_err"; then
2254 :
2255 else
2256 echo "$as_me: failed program was:" >&5
2257 sed 's/^/| /' conftest.$ac_ext >&5
2258
2259 # Broken: fails on valid input.
2260 continue
2261 fi
2262 rm -f conftest.err conftest.$ac_ext
2263
2264 # OK, works on sane cases. Now check whether non-existent headers
2265 # can be detected and how.
2266 cat >conftest.$ac_ext <<_ACEOF
2267 /* confdefs.h. */
2268 _ACEOF
2269 cat confdefs.h >>conftest.$ac_ext
2270 cat >>conftest.$ac_ext <<_ACEOF
2271 /* end confdefs.h. */
2272 #include <ac_nonexistent.h>
2273 _ACEOF
2274 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2275 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2276 ac_status=$?
2277 grep -v '^ *+' conftest.er1 >conftest.err
2278 rm -f conftest.er1
2279 cat conftest.err >&5
2280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2281 (exit $ac_status); } >/dev/null; then
2282 if test -s conftest.err; then
2283 ac_cpp_err=$ac_c_preproc_warn_flag
2284 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2285 else
2286 ac_cpp_err=
2287 fi
2288 else
2289 ac_cpp_err=yes
2290 fi
2291 if test -z "$ac_cpp_err"; then
2292 # Broken: success on invalid input.
2293 continue
2294 else
2295 echo "$as_me: failed program was:" >&5
2296 sed 's/^/| /' conftest.$ac_ext >&5
2297
2298 # Passes both tests.
2299 ac_preproc_ok=:
2300 break
2301 fi
2302 rm -f conftest.err conftest.$ac_ext
2303
2304 done
2305 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2306 rm -f conftest.err conftest.$ac_ext
2307 if $ac_preproc_ok; then
2308 break
2309 fi
2310
2311 done
2312 ac_cv_prog_CPP=$CPP
2313
2314 fi
2315 CPP=$ac_cv_prog_CPP
2316 else
2317 ac_cv_prog_CPP=$CPP
2318 fi
2319 echo "$as_me:$LINENO: result: $CPP" >&5
2320 echo "${ECHO_T}$CPP" >&6
2321 ac_preproc_ok=false
2322 for ac_c_preproc_warn_flag in '' yes
2323 do
2324 # Use a header file that comes with gcc, so configuring glibc
2325 # with a fresh cross-compiler works.
2326 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2327 # <limits.h> exists even on freestanding compilers.
2328 # On the NeXT, cc -E runs the code through the compiler's parser,
2329 # not just through cpp. "Syntax error" is here to catch this case.
2330 cat >conftest.$ac_ext <<_ACEOF
2331 /* confdefs.h. */
2332 _ACEOF
2333 cat confdefs.h >>conftest.$ac_ext
2334 cat >>conftest.$ac_ext <<_ACEOF
2335 /* end confdefs.h. */
2336 #ifdef __STDC__
2337 # include <limits.h>
2338 #else
2339 # include <assert.h>
2340 #endif
2341 Syntax error
2342 _ACEOF
2343 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2344 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2345 ac_status=$?
2346 grep -v '^ *+' conftest.er1 >conftest.err
2347 rm -f conftest.er1
2348 cat conftest.err >&5
2349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2350 (exit $ac_status); } >/dev/null; then
2351 if test -s conftest.err; then
2352 ac_cpp_err=$ac_c_preproc_warn_flag
2353 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2354 else
2355 ac_cpp_err=
2356 fi
2357 else
2358 ac_cpp_err=yes
2359 fi
2360 if test -z "$ac_cpp_err"; then
2361 :
2362 else
2363 echo "$as_me: failed program was:" >&5
2364 sed 's/^/| /' conftest.$ac_ext >&5
2365
2366 # Broken: fails on valid input.
2367 continue
2368 fi
2369 rm -f conftest.err conftest.$ac_ext
2370
2371 # OK, works on sane cases. Now check whether non-existent headers
2372 # can be detected and how.
2373 cat >conftest.$ac_ext <<_ACEOF
2374 /* confdefs.h. */
2375 _ACEOF
2376 cat confdefs.h >>conftest.$ac_ext
2377 cat >>conftest.$ac_ext <<_ACEOF
2378 /* end confdefs.h. */
2379 #include <ac_nonexistent.h>
2380 _ACEOF
2381 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2382 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2383 ac_status=$?
2384 grep -v '^ *+' conftest.er1 >conftest.err
2385 rm -f conftest.er1
2386 cat conftest.err >&5
2387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2388 (exit $ac_status); } >/dev/null; then
2389 if test -s conftest.err; then
2390 ac_cpp_err=$ac_c_preproc_warn_flag
2391 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2392 else
2393 ac_cpp_err=
2394 fi
2395 else
2396 ac_cpp_err=yes
2397 fi
2398 if test -z "$ac_cpp_err"; then
2399 # Broken: success on invalid input.
2400 continue
2401 else
2402 echo "$as_me: failed program was:" >&5
2403 sed 's/^/| /' conftest.$ac_ext >&5
2404
2405 # Passes both tests.
2406 ac_preproc_ok=:
2407 break
2408 fi
2409 rm -f conftest.err conftest.$ac_ext
2410
2411 done
2412 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2413 rm -f conftest.err conftest.$ac_ext
2414 if $ac_preproc_ok; then
2415 :
2416 else
2417 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2418 See \`config.log' for more details." >&5
2419 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2420 See \`config.log' for more details." >&2;}
2421 { (exit 1); exit 1; }; }
2422 fi
2423
2424 ac_ext=c
2425 ac_cpp='$CPP $CPPFLAGS'
2426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2429
2430
2431 cat >conftest.$ac_ext <<_ACEOF
2432 /* confdefs.h. */
2433 _ACEOF
2434 cat confdefs.h >>conftest.$ac_ext
2435 cat >>conftest.$ac_ext <<_ACEOF
2436 /* end confdefs.h. */
2437 #include <curl/curl.h>
2438 _ACEOF
2439 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2440 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2441 ac_status=$?
2442 grep -v '^ *+' conftest.er1 >conftest.err
2443 rm -f conftest.er1
2444 cat conftest.err >&5
2445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2446 (exit $ac_status); } >/dev/null; then
2447 if test -s conftest.err; then
2448 ac_cpp_err=$ac_c_preproc_warn_flag
2449 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2450 else
2451 ac_cpp_err=
2452 fi
2453 else
2454 ac_cpp_err=yes
2455 fi
2456 if test -z "$ac_cpp_err"; then
2457 :
2458 else
2459 echo "$as_me: failed program was:" >&5
2460 sed 's/^/| /' conftest.$ac_ext >&5
2461
2462 no_curl=yes
2463 fi
2464 rm -f conftest.err conftest.$ac_ext
2465
2466 # Build the package if we found curl stuff
2467 if test "$no_curl" = yes; then
2468 { { echo "$as_me:$LINENO: error: curl libraries not found, so curl package cannot be built
2469 See \`config.log' for more details." >&5
2470 echo "$as_me: error: curl libraries not found, so curl package cannot be built
2471 See \`config.log' for more details." >&2;}
2472 { (exit 1); exit 1; }; }
2473 else
2474 CURL_BUILD_PACKAGE=yes
2475 BUILD_PACKAGE_BOOL=True
2476 fi
2477
2478
2479
2480 ac_config_files="$ac_config_files curl.buildinfo"
2481
2482 cat >confcache <<\_ACEOF
2483 # This file is a shell script that caches the results of configure
2484 # tests run on this system so they can be shared between configure
2485 # scripts and configure runs, see configure's option --config-cache.
2486 # It is not useful on other systems. If it contains results you don't
2487 # want to keep, you may remove or edit it.
2488 #
2489 # config.status only pays attention to the cache file if you give it
2490 # the --recheck option to rerun configure.
2491 #
2492 # `ac_cv_env_foo' variables (set or unset) will be overridden when
2493 # loading this file, other *unset* `ac_cv_foo' will be assigned the
2494 # following values.
2495
2496 _ACEOF
2497
2498 # The following way of writing the cache mishandles newlines in values,
2499 # but we know of no workaround that is simple, portable, and efficient.
2500 # So, don't put newlines in cache variables' values.
2501 # Ultrix sh set writes to stderr and can't be redirected directly,
2502 # and sets the high bit in the cache file unless we assign to the vars.
2503 {
2504 (set) 2>&1 |
2505 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2506 *ac_space=\ *)
2507 # `set' does not quote correctly, so add quotes (double-quote
2508 # substitution turns \\\\ into \\, and sed turns \\ into \).
2509 sed -n \
2510 "s/'/'\\\\''/g;
2511 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
2512 ;;
2513 *)
2514 # `set' quotes correctly as required by POSIX, so do not add quotes.
2515 sed -n \
2516 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
2517 ;;
2518 esac;
2519 } |
2520 sed '
2521 t clear
2522 : clear
2523 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
2524 t end
2525 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
2526 : end' >>confcache
2527 if diff $cache_file confcache >/dev/null 2>&1; then :; else
2528 if test -w $cache_file; then
2529 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
2530 cat confcache >$cache_file
2531 else
2532 echo "not updating unwritable cache $cache_file"
2533 fi
2534 fi
2535 rm -f confcache
2536
2537 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2538 # Let make expand exec_prefix.
2539 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2540
2541 # VPATH may cause trouble with some makes, so we remove $(srcdir),
2542 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
2543 # trailing colons and then remove the whole line if VPATH becomes empty
2544 # (actually we leave an empty line to preserve line numbers).
2545 if test "x$srcdir" = x.; then
2546 ac_vpsub='/^[ ]*VPATH[ ]*=/{
2547 s/:*\$(srcdir):*/:/;
2548 s/:*\${srcdir}:*/:/;
2549 s/:*@srcdir@:*/:/;
2550 s/^\([^=]*=[ ]*\):*/\1/;
2551 s/:*$//;
2552 s/^[^=]*=[ ]*$//;
2553 }'
2554 fi
2555
2556 # Transform confdefs.h into DEFS.
2557 # Protect against shell expansion while executing Makefile rules.
2558 # Protect against Makefile macro expansion.
2559 #
2560 # If the first sed substitution is executed (which looks for macros that
2561 # take arguments), then we branch to the quote section. Otherwise,
2562 # look for a macro that doesn't take arguments.
2563 cat >confdef2opt.sed <<\_ACEOF
2564 t clear
2565 : clear
2566 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
2567 t quote
2568 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
2569 t quote
2570 d
2571 : quote
2572 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
2573 s,\[,\\&,g
2574 s,\],\\&,g
2575 s,\$,$$,g
2576 p
2577 _ACEOF
2578 # We use echo to avoid assuming a particular line-breaking character.
2579 # The extra dot is to prevent the shell from consuming trailing
2580 # line-breaks from the sub-command output. A line-break within
2581 # single-quotes doesn't work because, if this script is created in a
2582 # platform that uses two characters for line-breaks (e.g., DOS), tr
2583 # would break.
2584 ac_LF_and_DOT=`echo; echo .`
2585 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
2586 rm -f confdef2opt.sed
2587
2588
2589 ac_libobjs=
2590 ac_ltlibobjs=
2591 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
2592 # 1. Remove the extension, and $U if already installed.
2593 ac_i=`echo "$ac_i" |
2594 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
2595 # 2. Add them.
2596 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
2597 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
2598 done
2599 LIBOBJS=$ac_libobjs
2600
2601 LTLIBOBJS=$ac_ltlibobjs
2602
2603
2604
2605 : ${CONFIG_STATUS=./config.status}
2606 ac_clean_files_save=$ac_clean_files
2607 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
2608 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
2609 echo "$as_me: creating $CONFIG_STATUS" >&6;}
2610 cat >$CONFIG_STATUS <<_ACEOF
2611 #! $SHELL
2612 # Generated by $as_me.
2613 # Run this file to recreate the current configuration.
2614 # Compiler output produced by configure, useful for debugging
2615 # configure, is in config.log if it exists.
2616
2617 debug=false
2618 ac_cs_recheck=false
2619 ac_cs_silent=false
2620 SHELL=\${CONFIG_SHELL-$SHELL}
2621 _ACEOF
2622
2623 cat >>$CONFIG_STATUS <<\_ACEOF
2624 ## --------------------- ##
2625 ## M4sh Initialization. ##
2626 ## --------------------- ##
2627
2628 # Be Bourne compatible
2629 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
2630 emulate sh
2631 NULLCMD=:
2632 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
2633 # is contrary to our usage. Disable this feature.
2634 alias -g '${1+"$@"}'='"$@"'
2635 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
2636 set -o posix
2637 fi
2638 DUALCASE=1; export DUALCASE # for MKS sh
2639
2640 # Support unset when possible.
2641 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
2642 as_unset=unset
2643 else
2644 as_unset=false
2645 fi
2646
2647
2648 # Work around bugs in pre-3.0 UWIN ksh.
2649 $as_unset ENV MAIL MAILPATH
2650 PS1='$ '
2651 PS2='> '
2652 PS4='+ '
2653
2654 # NLS nuisances.
2655 for as_var in \
2656 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
2657 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
2658 LC_TELEPHONE LC_TIME
2659 do
2660 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
2661 eval $as_var=C; export $as_var
2662 else
2663 $as_unset $as_var
2664 fi
2665 done
2666
2667 # Required to use basename.
2668 if expr a : '\(a\)' >/dev/null 2>&1; then
2669 as_expr=expr
2670 else
2671 as_expr=false
2672 fi
2673
2674 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
2675 as_basename=basename
2676 else
2677 as_basename=false
2678 fi
2679
2680
2681 # Name of the executable.
2682 as_me=`$as_basename "$0" ||
2683 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
2684 X"$0" : 'X\(//\)$' \| \
2685 X"$0" : 'X\(/\)$' \| \
2686 . : '\(.\)' 2>/dev/null ||
2687 echo X/"$0" |
2688 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
2689 /^X\/\(\/\/\)$/{ s//\1/; q; }
2690 /^X\/\(\/\).*/{ s//\1/; q; }
2691 s/.*/./; q'`
2692
2693
2694 # PATH needs CR, and LINENO needs CR and PATH.
2695 # Avoid depending upon Character Ranges.
2696 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
2697 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
2698 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
2699 as_cr_digits='0123456789'
2700 as_cr_alnum=$as_cr_Letters$as_cr_digits
2701
2702 # The user is always right.
2703 if test "${PATH_SEPARATOR+set}" != set; then
2704 echo "#! /bin/sh" >conf$$.sh
2705 echo "exit 0" >>conf$$.sh
2706 chmod +x conf$$.sh
2707 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
2708 PATH_SEPARATOR=';'
2709 else
2710 PATH_SEPARATOR=:
2711 fi
2712 rm -f conf$$.sh
2713 fi
2714
2715
2716 as_lineno_1=$LINENO
2717 as_lineno_2=$LINENO
2718 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
2719 test "x$as_lineno_1" != "x$as_lineno_2" &&
2720 test "x$as_lineno_3" = "x$as_lineno_2" || {
2721 # Find who we are. Look in the path if we contain no path at all
2722 # relative or not.
2723 case $0 in
2724 *[\\/]* ) as_myself=$0 ;;
2725 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2726 for as_dir in $PATH
2727 do
2728 IFS=$as_save_IFS
2729 test -z "$as_dir" && as_dir=.
2730 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
2731 done
2732
2733 ;;
2734 esac
2735 # We did not find ourselves, most probably we were run as `sh COMMAND'
2736 # in which case we are not to be found in the path.
2737 if test "x$as_myself" = x; then
2738 as_myself=$0
2739 fi
2740 if test ! -f "$as_myself"; then
2741 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
2742 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
2743 { (exit 1); exit 1; }; }
2744 fi
2745 case $CONFIG_SHELL in
2746 '')
2747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2748 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
2749 do
2750 IFS=$as_save_IFS
2751 test -z "$as_dir" && as_dir=.
2752 for as_base in sh bash ksh sh5; do
2753 case $as_dir in
2754 /*)
2755 if ("$as_dir/$as_base" -c '
2756 as_lineno_1=$LINENO
2757 as_lineno_2=$LINENO
2758 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
2759 test "x$as_lineno_1" != "x$as_lineno_2" &&
2760 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
2761 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
2762 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
2763 CONFIG_SHELL=$as_dir/$as_base
2764 export CONFIG_SHELL
2765 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
2766 fi;;
2767 esac
2768 done
2769 done
2770 ;;
2771 esac
2772
2773 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
2774 # uniformly replaced by the line number. The first 'sed' inserts a
2775 # line-number line before each line; the second 'sed' does the real
2776 # work. The second script uses 'N' to pair each line-number line
2777 # with the numbered line, and appends trailing '-' during
2778 # substitution so that $LINENO is not a special case at line end.
2779 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
2780 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
2781 sed '=' <$as_myself |
2782 sed '
2783 N
2784 s,$,-,
2785 : loop
2786 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
2787 t loop
2788 s,-$,,
2789 s,^['$as_cr_digits']*\n,,
2790 ' >$as_me.lineno &&
2791 chmod +x $as_me.lineno ||
2792 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
2793 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
2794 { (exit 1); exit 1; }; }
2795
2796 # Don't try to exec as it changes $[0], causing all sort of problems
2797 # (the dirname of $[0] is not the place where we might find the
2798 # original and so on. Autoconf is especially sensible to this).
2799 . ./$as_me.lineno
2800 # Exit status is that of the last command.
2801 exit
2802 }
2803
2804
2805 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
2806 *c*,-n*) ECHO_N= ECHO_C='
2807 ' ECHO_T=' ' ;;
2808 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
2809 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
2810 esac
2811
2812 if expr a : '\(a\)' >/dev/null 2>&1; then
2813 as_expr=expr
2814 else
2815 as_expr=false
2816 fi
2817
2818 rm -f conf$$ conf$$.exe conf$$.file
2819 echo >conf$$.file
2820 if ln -s conf$$.file conf$$ 2>/dev/null; then
2821 # We could just check for DJGPP; but this test a) works b) is more generic
2822 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
2823 if test -f conf$$.exe; then
2824 # Don't use ln at all; we don't have any links
2825 as_ln_s='cp -p'
2826 else
2827 as_ln_s='ln -s'
2828 fi
2829 elif ln conf$$.file conf$$ 2>/dev/null; then
2830 as_ln_s=ln
2831 else
2832 as_ln_s='cp -p'
2833 fi
2834 rm -f conf$$ conf$$.exe conf$$.file
2835
2836 if mkdir -p . 2>/dev/null; then
2837 as_mkdir_p=:
2838 else
2839 test -d ./-p && rmdir ./-p
2840 as_mkdir_p=false
2841 fi
2842
2843 as_executable_p="test -f"
2844
2845 # Sed expression to map a string onto a valid CPP name.
2846 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
2847
2848 # Sed expression to map a string onto a valid variable name.
2849 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
2850
2851
2852 # IFS
2853 # We need space, tab and new line, in precisely that order.
2854 as_nl='
2855 '
2856 IFS=" $as_nl"
2857
2858 # CDPATH.
2859 $as_unset CDPATH
2860
2861 exec 6>&1
2862
2863 # Open the log real soon, to keep \$[0] and so on meaningful, and to
2864 # report actual input values of CONFIG_FILES etc. instead of their
2865 # values after options handling. Logging --version etc. is OK.
2866 exec 5>>config.log
2867 {
2868 echo
2869 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
2870 ## Running $as_me. ##
2871 _ASBOX
2872 } >&5
2873 cat >&5 <<_CSEOF
2874
2875 This file was extended by Haskell curl package $as_me 1.1, which was
2876 generated by GNU Autoconf 2.59. Invocation command line was
2877
2878 CONFIG_FILES = $CONFIG_FILES
2879 CONFIG_HEADERS = $CONFIG_HEADERS
2880 CONFIG_LINKS = $CONFIG_LINKS
2881 CONFIG_COMMANDS = $CONFIG_COMMANDS
2882 $ $0 $@
2883
2884 _CSEOF
2885 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
2886 echo >&5
2887 _ACEOF
2888
2889 # Files that config.status was made for.
2890 if test -n "$ac_config_files"; then
2891 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
2892 fi
2893
2894 if test -n "$ac_config_headers"; then
2895 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
2896 fi
2897
2898 if test -n "$ac_config_links"; then
2899 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
2900 fi
2901
2902 if test -n "$ac_config_commands"; then
2903 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
2904 fi
2905
2906 cat >>$CONFIG_STATUS <<\_ACEOF
2907
2908 ac_cs_usage="\
2909 \`$as_me' instantiates files from templates according to the
2910 current configuration.
2911
2912 Usage: $0 [OPTIONS] [FILE]...
2913
2914 -h, --help print this help, then exit
2915 -V, --version print version number, then exit
2916 -q, --quiet do not print progress messages
2917 -d, --debug don't remove temporary files
2918 --recheck update $as_me by reconfiguring in the same conditions
2919 --file=FILE[:TEMPLATE]
2920 instantiate the configuration file FILE
2921
2922 Configuration files:
2923 $config_files
2924
2925 Report bugs to <[email protected]>."
2926 _ACEOF
2927
2928 cat >>$CONFIG_STATUS <<_ACEOF
2929 ac_cs_version="\\
2930 Haskell curl package config.status 1.1
2931 configured by $0, generated by GNU Autoconf 2.59,
2932 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
2933
2934 Copyright (C) 2003 Free Software Foundation, Inc.
2935 This config.status script is free software; the Free Software Foundation
2936 gives unlimited permission to copy, distribute and modify it."
2937 srcdir=$srcdir
2938 _ACEOF
2939
2940 cat >>$CONFIG_STATUS <<\_ACEOF
2941 # If no file are specified by the user, then we need to provide default
2942 # value. By we need to know if files were specified by the user.
2943 ac_need_defaults=:
2944 while test $# != 0
2945 do
2946 case $1 in
2947 --*=*)
2948 ac_option=`expr "x$1" : 'x\([^=]*\)='`
2949 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
2950 ac_shift=:
2951 ;;
2952 -*)
2953 ac_option=$1
2954 ac_optarg=$2
2955 ac_shift=shift
2956 ;;
2957 *) # This is not an option, so the user has probably given explicit
2958 # arguments.
2959 ac_option=$1
2960 ac_need_defaults=false;;
2961 esac
2962
2963 case $ac_option in
2964 # Handling of the options.
2965 _ACEOF
2966 cat >>$CONFIG_STATUS <<\_ACEOF
2967 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2968 ac_cs_recheck=: ;;
2969 --version | --vers* | -V )
2970 echo "$ac_cs_version"; exit 0 ;;
2971 --he | --h)
2972 # Conflict between --help and --header
2973 { { echo "$as_me:$LINENO: error: ambiguous option: $1
2974 Try \`$0 --help' for more information." >&5
2975 echo "$as_me: error: ambiguous option: $1
2976 Try \`$0 --help' for more information." >&2;}
2977 { (exit 1); exit 1; }; };;
2978 --help | --hel | -h )
2979 echo "$ac_cs_usage"; exit 0 ;;
2980 --debug | --d* | -d )
2981 debug=: ;;
2982 --file | --fil | --fi | --f )
2983 $ac_shift
2984 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
2985 ac_need_defaults=false;;
2986 --header | --heade | --head | --hea )
2987 $ac_shift
2988 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
2989 ac_need_defaults=false;;
2990 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2991 | -silent | --silent | --silen | --sile | --sil | --si | --s)
2992 ac_cs_silent=: ;;
2993
2994 # This is an error.
2995 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
2996 Try \`$0 --help' for more information." >&5
2997 echo "$as_me: error: unrecognized option: $1
2998 Try \`$0 --help' for more information." >&2;}
2999 { (exit 1); exit 1; }; } ;;
3000
3001 *) ac_config_targets="$ac_config_targets $1" ;;
3002
3003 esac
3004 shift
3005 done
3006
3007 ac_configure_extra_args=
3008
3009 if $ac_cs_silent; then
3010 exec 6>/dev/null
3011 ac_configure_extra_args="$ac_configure_extra_args --silent"
3012 fi
3013
3014 _ACEOF
3015 cat >>$CONFIG_STATUS <<_ACEOF
3016 if \$ac_cs_recheck; then
3017 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
3018 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
3019 fi
3020
3021 _ACEOF
3022
3023
3024
3025
3026
3027 cat >>$CONFIG_STATUS <<\_ACEOF
3028 for ac_config_target in $ac_config_targets
3029 do
3030 case "$ac_config_target" in
3031 # Handling of arguments.
3032 "curl.buildinfo" ) CONFIG_FILES="$CONFIG_FILES curl.buildinfo" ;;
3033 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
3034 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
3035 { (exit 1); exit 1; }; };;
3036 esac
3037 done
3038
3039 # If the user did not use the arguments to specify the items to instantiate,
3040 # then the envvar interface is used. Set only those that are not.
3041 # We use the long form for the default assignment because of an extremely
3042 # bizarre bug on SunOS 4.1.3.
3043 if $ac_need_defaults; then
3044 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3045 fi
3046
3047 # Have a temporary directory for convenience. Make it in the build tree
3048 # simply because there is no reason to put it here, and in addition,
3049 # creating and moving files from /tmp can sometimes cause problems.
3050 # Create a temporary directory, and hook for its removal unless debugging.
3051 $debug ||
3052 {
3053 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3054 trap '{ (exit 1); exit 1; }' 1 2 13 15
3055 }
3056
3057 # Create a (secure) tmp directory for tmp files.
3058
3059 {
3060 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
3061 test -n "$tmp" && test -d "$tmp"
3062 } ||
3063 {
3064 tmp=./confstat$$-$RANDOM
3065 (umask 077 && mkdir $tmp)
3066 } ||
3067 {
3068 echo "$me: cannot create a temporary directory in ." >&2
3069 { (exit 1); exit 1; }
3070 }
3071
3072 _ACEOF
3073
3074 cat >>$CONFIG_STATUS <<_ACEOF
3075
3076 #
3077 # CONFIG_FILES section.
3078 #
3079
3080 # No need to generate the scripts if there are no CONFIG_FILES.
3081 # This happens for instance when ./config.status config.h
3082 if test -n "\$CONFIG_FILES"; then
3083 # Protect against being on the right side of a sed subst in config.status.
3084 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
3085 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
3086 s,@SHELL@,$SHELL,;t t
3087 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
3088 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
3089 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
3090 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
3091 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
3092 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
3093 s,@exec_prefix@,$exec_prefix,;t t
3094 s,@prefix@,$prefix,;t t
3095 s,@program_transform_name@,$program_transform_name,;t t
3096 s,@bindir@,$bindir,;t t
3097 s,@sbindir@,$sbindir,;t t
3098 s,@libexecdir@,$libexecdir,;t t
3099 s,@datadir@,$datadir,;t t
3100 s,@sysconfdir@,$sysconfdir,;t t
3101 s,@sharedstatedir@,$sharedstatedir,;t t
3102 s,@localstatedir@,$localstatedir,;t t
3103 s,@libdir@,$libdir,;t t
3104 s,@includedir@,$includedir,;t t
3105 s,@oldincludedir@,$oldincludedir,;t t
3106 s,@infodir@,$infodir,;t t
3107 s,@mandir@,$mandir,;t t
3108 s,@build_alias@,$build_alias,;t t
3109 s,@host_alias@,$host_alias,;t t
3110 s,@target_alias@,$target_alias,;t t
3111 s,@DEFS@,$DEFS,;t t
3112 s,@ECHO_C@,$ECHO_C,;t t
3113 s,@ECHO_N@,$ECHO_N,;t t
3114 s,@ECHO_T@,$ECHO_T,;t t
3115 s,@LIBS@,$LIBS,;t t
3116 s,@CC@,$CC,;t t
3117 s,@CFLAGS@,$CFLAGS,;t t
3118 s,@LDFLAGS@,$LDFLAGS,;t t
3119 s,@CPPFLAGS@,$CPPFLAGS,;t t
3120 s,@ac_ct_CC@,$ac_ct_CC,;t t
3121 s,@EXEEXT@,$EXEEXT,;t t
3122 s,@OBJEXT@,$OBJEXT,;t t
3123 s,@CPP@,$CPP,;t t
3124 s,@CURL_BUILD_PACKAGE@,$CURL_BUILD_PACKAGE,;t t
3125 s,@BUILD_PACKAGE_BOOL@,$BUILD_PACKAGE_BOOL,;t t
3126 s,@LIBOBJS@,$LIBOBJS,;t t
3127 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
3128 CEOF
3129
3130 _ACEOF
3131
3132 cat >>$CONFIG_STATUS <<\_ACEOF
3133 # Split the substitutions into bite-sized pieces for seds with
3134 # small command number limits, like on Digital OSF/1 and HP-UX.
3135 ac_max_sed_lines=48
3136 ac_sed_frag=1 # Number of current file.
3137 ac_beg=1 # First line for current file.
3138 ac_end=$ac_max_sed_lines # Line after last line for current file.
3139 ac_more_lines=:
3140 ac_sed_cmds=
3141 while $ac_more_lines; do
3142 if test $ac_beg -gt 1; then
3143 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3144 else
3145 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3146 fi
3147 if test ! -s $tmp/subs.frag; then
3148 ac_more_lines=false
3149 else
3150 # The purpose of the label and of the branching condition is to
3151 # speed up the sed processing (if there are no `@' at all, there
3152 # is no need to browse any of the substitutions).
3153 # These are the two extra sed commands mentioned above.
3154 (echo ':t
3155 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
3156 if test -z "$ac_sed_cmds"; then
3157 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
3158 else
3159 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
3160 fi
3161 ac_sed_frag=`expr $ac_sed_frag + 1`
3162 ac_beg=$ac_end
3163 ac_end=`expr $ac_end + $ac_max_sed_lines`
3164 fi
3165 done
3166 if test -z "$ac_sed_cmds"; then
3167 ac_sed_cmds=cat
3168 fi
3169 fi # test -n "$CONFIG_FILES"
3170
3171 _ACEOF
3172 cat >>$CONFIG_STATUS <<\_ACEOF
3173 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
3174 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3175 case $ac_file in
3176 - | *:- | *:-:* ) # input from stdin
3177 cat >$tmp/stdin
3178 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3179 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3180 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3181 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3182 * ) ac_file_in=$ac_file.in ;;
3183 esac
3184
3185 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
3186 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
3187 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3188 X"$ac_file" : 'X\(//\)[^/]' \| \
3189 X"$ac_file" : 'X\(//\)$' \| \
3190 X"$ac_file" : 'X\(/\)' \| \
3191 . : '\(.\)' 2>/dev/null ||
3192 echo X"$ac_file" |
3193 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3194 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3195 /^X\(\/\/\)$/{ s//\1/; q; }
3196 /^X\(\/\).*/{ s//\1/; q; }
3197 s/.*/./; q'`
3198 { if $as_mkdir_p; then
3199 mkdir -p "$ac_dir"
3200 else
3201 as_dir="$ac_dir"
3202 as_dirs=
3203 while test ! -d "$as_dir"; do
3204 as_dirs="$as_dir $as_dirs"
3205 as_dir=`(dirname "$as_dir") 2>/dev/null ||
3206 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3207 X"$as_dir" : 'X\(//\)[^/]' \| \
3208 X"$as_dir" : 'X\(//\)$' \| \
3209 X"$as_dir" : 'X\(/\)' \| \
3210 . : '\(.\)' 2>/dev/null ||
3211 echo X"$as_dir" |
3212 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3213 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3214 /^X\(\/\/\)$/{ s//\1/; q; }
3215 /^X\(\/\).*/{ s//\1/; q; }
3216 s/.*/./; q'`
3217 done
3218 test ! -n "$as_dirs" || mkdir $as_dirs
3219 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
3220 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
3221 { (exit 1); exit 1; }; }; }
3222
3223 ac_builddir=.
3224
3225 if test "$ac_dir" != .; then
3226 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
3227 # A "../" for each directory in $ac_dir_suffix.
3228 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
3229 else
3230 ac_dir_suffix= ac_top_builddir=
3231 fi
3232
3233 case $srcdir in
3234 .) # No --srcdir option. We are building in place.
3235 ac_srcdir=.
3236 if test -z "$ac_top_builddir"; then
3237 ac_top_srcdir=.
3238 else
3239 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
3240 fi ;;
3241 [\\/]* | ?:[\\/]* ) # Absolute path.
3242 ac_srcdir=$srcdir$ac_dir_suffix;
3243 ac_top_srcdir=$srcdir ;;
3244 *) # Relative path.
3245 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
3246 ac_top_srcdir=$ac_top_builddir$srcdir ;;
3247 esac
3248
3249 # Do not use `cd foo && pwd` to compute absolute paths, because
3250 # the directories may not exist.
3251 case `pwd` in
3252 .) ac_abs_builddir="$ac_dir";;
3253 *)
3254 case "$ac_dir" in
3255 .) ac_abs_builddir=`pwd`;;
3256 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
3257 *) ac_abs_builddir=`pwd`/"$ac_dir";;
3258 esac;;
3259 esac
3260 case $ac_abs_builddir in
3261 .) ac_abs_top_builddir=${ac_top_builddir}.;;
3262 *)
3263 case ${ac_top_builddir}. in
3264 .) ac_abs_top_builddir=$ac_abs_builddir;;
3265 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
3266 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
3267 esac;;
3268 esac
3269 case $ac_abs_builddir in
3270 .) ac_abs_srcdir=$ac_srcdir;;
3271 *)
3272 case $ac_srcdir in
3273 .) ac_abs_srcdir=$ac_abs_builddir;;
3274 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
3275 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
3276 esac;;
3277 esac
3278 case $ac_abs_builddir in
3279 .) ac_abs_top_srcdir=$ac_top_srcdir;;
3280 *)
3281 case $ac_top_srcdir in
3282 .) ac_abs_top_srcdir=$ac_abs_builddir;;
3283 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
3284 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
3285 esac;;
3286 esac
3287
3288
3289
3290 if test x"$ac_file" != x-; then
3291 { echo "$as_me:$LINENO: creating $ac_file" >&5
3292 echo "$as_me: creating $ac_file" >&6;}
3293 rm -f "$ac_file"
3294 fi
3295 # Let's still pretend it is `configure' which instantiates (i.e., don't
3296 # use $as_me), people would be surprised to read:
3297 # /* config.h. Generated by config.status. */
3298 if test x"$ac_file" = x-; then
3299 configure_input=
3300 else
3301 configure_input="$ac_file. "
3302 fi
3303 configure_input=$configure_input"Generated from `echo $ac_file_in |
3304 sed 's,.*/,,'` by configure."
3305
3306 # First look for the input files in the build tree, otherwise in the
3307 # src tree.
3308 ac_file_inputs=`IFS=:
3309 for f in $ac_file_in; do
3310 case $f in
3311 -) echo $tmp/stdin ;;
3312 [\\/$]*)
3313 # Absolute (can't be DOS-style, as IFS=:)
3314 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
3315 echo "$as_me: error: cannot find input file: $f" >&2;}
3316 { (exit 1); exit 1; }; }
3317 echo "$f";;
3318 *) # Relative
3319 if test -f "$f"; then
3320 # Build tree
3321 echo "$f"
3322 elif test -f "$srcdir/$f"; then
3323 # Source tree
3324 echo "$srcdir/$f"
3325 else
3326 # /dev/null tree
3327 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
3328 echo "$as_me: error: cannot find input file: $f" >&2;}
3329 { (exit 1); exit 1; }; }
3330 fi;;
3331 esac
3332 done` || { (exit 1); exit 1; }
3333 _ACEOF
3334 cat >>$CONFIG_STATUS <<_ACEOF
3335 sed "$ac_vpsub
3336 $extrasub
3337 _ACEOF
3338 cat >>$CONFIG_STATUS <<\_ACEOF
3339 :t
3340 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
3341 s,@configure_input@,$configure_input,;t t
3342 s,@srcdir@,$ac_srcdir,;t t
3343 s,@abs_srcdir@,$ac_abs_srcdir,;t t
3344 s,@top_srcdir@,$ac_top_srcdir,;t t
3345 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
3346 s,@builddir@,$ac_builddir,;t t
3347 s,@abs_builddir@,$ac_abs_builddir,;t t
3348 s,@top_builddir@,$ac_top_builddir,;t t
3349 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
3350 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
3351 rm -f $tmp/stdin
3352 if test x"$ac_file" != x-; then
3353 mv $tmp/out $ac_file
3354 else
3355 cat $tmp/out
3356 rm -f $tmp/out
3357 fi
3358
3359 done
3360 _ACEOF
3361
3362 cat >>$CONFIG_STATUS <<\_ACEOF
3363
3364 { (exit 0); exit 0; }
3365 _ACEOF
3366 chmod +x $CONFIG_STATUS
3367 ac_clean_files=$ac_clean_files_save
3368
3369
3370 # configure is writing to config.log, and then calls config.status.
3371 # config.status does its own redirection, appending to config.log.
3372 # Unfortunately, on DOS this fails, as config.log is still kept open
3373 # by configure, so config.status won't be able to write to it; its
3374 # output is simply discarded. So we exec the FD to /dev/null,
3375 # effectively closing config.log, so it can be properly (re)opened and
3376 # appended to by config.status. When coming back to configure, we
3377 # need to make the FD available again.
3378 if test "$no_create" != yes; then
3379 ac_cs_success=:
3380 ac_config_status_args=
3381 test "$silent" = yes &&
3382 ac_config_status_args="$ac_config_status_args --quiet"
3383 exec 5>/dev/null
3384 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
3385 exec 5>>config.log
3386 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
3387 # would make configure fail if this is the last instruction.
3388 $ac_cs_success || { (exit 1); exit 1; }
3389 fi
3390