import from HEAD:
[freeradius.git] / src / modules / rlm_perl / configure
1 #! /bin/sh
2 # From configure.in Revision: 1.1.10.1 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59.
5 #
6 # Copyright (C) 2003 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15   emulate sh
16   NULLCMD=:
17   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18   # is contrary to our usage.  Disable this feature.
19   alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21   set -o posix
22 fi
23 DUALCASE=1; export DUALCASE # for MKS sh
24
25 # Support unset when possible.
26 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
27   as_unset=unset
28 else
29   as_unset=false
30 fi
31
32
33 # Work around bugs in pre-3.0 UWIN ksh.
34 $as_unset ENV MAIL MAILPATH
35 PS1='$ '
36 PS2='> '
37 PS4='+ '
38
39 # NLS nuisances.
40 for as_var in \
41   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
42   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
43   LC_TELEPHONE LC_TIME
44 do
45   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
46     eval $as_var=C; export $as_var
47   else
48     $as_unset $as_var
49   fi
50 done
51
52 # Required to use basename.
53 if expr a : '\(a\)' >/dev/null 2>&1; then
54   as_expr=expr
55 else
56   as_expr=false
57 fi
58
59 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
60   as_basename=basename
61 else
62   as_basename=false
63 fi
64
65
66 # Name of the executable.
67 as_me=`$as_basename "$0" ||
68 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
69          X"$0" : 'X\(//\)$' \| \
70          X"$0" : 'X\(/\)$' \| \
71          .     : '\(.\)' 2>/dev/null ||
72 echo X/"$0" |
73     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
74           /^X\/\(\/\/\)$/{ s//\1/; q; }
75           /^X\/\(\/\).*/{ s//\1/; q; }
76           s/.*/./; q'`
77
78
79 # PATH needs CR, and LINENO needs CR and PATH.
80 # Avoid depending upon Character Ranges.
81 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
82 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
83 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
84 as_cr_digits='0123456789'
85 as_cr_alnum=$as_cr_Letters$as_cr_digits
86
87 # The user is always right.
88 if test "${PATH_SEPARATOR+set}" != set; then
89   echo "#! /bin/sh" >conf$$.sh
90   echo  "exit 0"   >>conf$$.sh
91   chmod +x conf$$.sh
92   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
93     PATH_SEPARATOR=';'
94   else
95     PATH_SEPARATOR=:
96   fi
97   rm -f conf$$.sh
98 fi
99
100
101   as_lineno_1=$LINENO
102   as_lineno_2=$LINENO
103   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
104   test "x$as_lineno_1" != "x$as_lineno_2" &&
105   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
106   # Find who we are.  Look in the path if we contain no path at all
107   # relative or not.
108   case $0 in
109     *[\\/]* ) as_myself=$0 ;;
110     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
111 for as_dir in $PATH
112 do
113   IFS=$as_save_IFS
114   test -z "$as_dir" && as_dir=.
115   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
116 done
117
118        ;;
119   esac
120   # We did not find ourselves, most probably we were run as `sh COMMAND'
121   # in which case we are not to be found in the path.
122   if test "x$as_myself" = x; then
123     as_myself=$0
124   fi
125   if test ! -f "$as_myself"; then
126     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
127    { (exit 1); exit 1; }; }
128   fi
129   case $CONFIG_SHELL in
130   '')
131     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
132 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 do
134   IFS=$as_save_IFS
135   test -z "$as_dir" && as_dir=.
136   for as_base in sh bash ksh sh5; do
137          case $as_dir in
138          /*)
139            if ("$as_dir/$as_base" -c '
140   as_lineno_1=$LINENO
141   as_lineno_2=$LINENO
142   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
143   test "x$as_lineno_1" != "x$as_lineno_2" &&
144   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
145              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
146              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
147              CONFIG_SHELL=$as_dir/$as_base
148              export CONFIG_SHELL
149              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
150            fi;;
151          esac
152        done
153 done
154 ;;
155   esac
156
157   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
158   # uniformly replaced by the line number.  The first 'sed' inserts a
159   # line-number line before each line; the second 'sed' does the real
160   # work.  The second script uses 'N' to pair each line-number line
161   # with the numbered line, and appends trailing '-' during
162   # substitution so that $LINENO is not a special case at line end.
163   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
164   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
165   sed '=' <$as_myself |
166     sed '
167       N
168       s,$,-,
169       : loop
170       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
171       t loop
172       s,-$,,
173       s,^['$as_cr_digits']*\n,,
174     ' >$as_me.lineno &&
175   chmod +x $as_me.lineno ||
176     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
177    { (exit 1); exit 1; }; }
178
179   # Don't try to exec as it changes $[0], causing all sort of problems
180   # (the dirname of $[0] is not the place where we might find the
181   # original and so on.  Autoconf is especially sensible to this).
182   . ./$as_me.lineno
183   # Exit status is that of the last command.
184   exit
185 }
186
187
188 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
189   *c*,-n*) ECHO_N= ECHO_C='
190 ' ECHO_T='      ' ;;
191   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
192   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
193 esac
194
195 if expr a : '\(a\)' >/dev/null 2>&1; then
196   as_expr=expr
197 else
198   as_expr=false
199 fi
200
201 rm -f conf$$ conf$$.exe conf$$.file
202 echo >conf$$.file
203 if ln -s conf$$.file conf$$ 2>/dev/null; then
204   # We could just check for DJGPP; but this test a) works b) is more generic
205   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
206   if test -f conf$$.exe; then
207     # Don't use ln at all; we don't have any links
208     as_ln_s='cp -p'
209   else
210     as_ln_s='ln -s'
211   fi
212 elif ln conf$$.file conf$$ 2>/dev/null; then
213   as_ln_s=ln
214 else
215   as_ln_s='cp -p'
216 fi
217 rm -f conf$$ conf$$.exe conf$$.file
218
219 if mkdir -p . 2>/dev/null; then
220   as_mkdir_p=:
221 else
222   test -d ./-p && rmdir ./-p
223   as_mkdir_p=false
224 fi
225
226 as_executable_p="test -f"
227
228 # Sed expression to map a string onto a valid CPP name.
229 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230
231 # Sed expression to map a string onto a valid variable name.
232 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
233
234
235 # IFS
236 # We need space, tab and new line, in precisely that order.
237 as_nl='
238 '
239 IFS="   $as_nl"
240
241 # CDPATH.
242 $as_unset CDPATH
243
244
245 # Name of the host.
246 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
247 # so uname gets run too.
248 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
249
250 exec 6>&1
251
252 #
253 # Initializations.
254 #
255 ac_default_prefix=/usr/local
256 ac_config_libobj_dir=.
257 cross_compiling=no
258 subdirs=
259 MFLAGS=
260 MAKEFLAGS=
261 SHELL=${CONFIG_SHELL-/bin/sh}
262
263 # Maximum number of lines to put in a shell here document.
264 # This variable seems obsolete.  It should probably be removed, and
265 # only ac_max_sed_lines should be used.
266 : ${ac_max_here_lines=38}
267
268 # Identity of this package.
269 PACKAGE_NAME=
270 PACKAGE_TARNAME=
271 PACKAGE_VERSION=
272 PACKAGE_STRING=
273 PACKAGE_BUGREPORT=
274
275 ac_unique_file="rlm_perl.c"
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 PERL perl_cflags perl_ldflags targetname 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 this package 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
802   cat <<\_ACEOF
803
804 Some influential environment variables:
805   CC          C compiler command
806   CFLAGS      C compiler flags
807   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
808               nonstandard directory <lib dir>
809   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
810               headers in a nonstandard directory <include dir>
811   CPP         C preprocessor
812
813 Use these variables to override the choices made by `configure' or to help
814 it to find libraries and programs with nonstandard names/locations.
815
816 _ACEOF
817 fi
818
819 if test "$ac_init_help" = "recursive"; then
820   # If there are subdirs, report their specific --help.
821   ac_popdir=`pwd`
822   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
823     test -d $ac_dir || continue
824     ac_builddir=.
825
826 if test "$ac_dir" != .; then
827   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
828   # A "../" for each directory in $ac_dir_suffix.
829   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
830 else
831   ac_dir_suffix= ac_top_builddir=
832 fi
833
834 case $srcdir in
835   .)  # No --srcdir option.  We are building in place.
836     ac_srcdir=.
837     if test -z "$ac_top_builddir"; then
838        ac_top_srcdir=.
839     else
840        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
841     fi ;;
842   [\\/]* | ?:[\\/]* )  # Absolute path.
843     ac_srcdir=$srcdir$ac_dir_suffix;
844     ac_top_srcdir=$srcdir ;;
845   *) # Relative path.
846     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
847     ac_top_srcdir=$ac_top_builddir$srcdir ;;
848 esac
849
850 # Do not use `cd foo && pwd` to compute absolute paths, because
851 # the directories may not exist.
852 case `pwd` in
853 .) ac_abs_builddir="$ac_dir";;
854 *)
855   case "$ac_dir" in
856   .) ac_abs_builddir=`pwd`;;
857   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
858   *) ac_abs_builddir=`pwd`/"$ac_dir";;
859   esac;;
860 esac
861 case $ac_abs_builddir in
862 .) ac_abs_top_builddir=${ac_top_builddir}.;;
863 *)
864   case ${ac_top_builddir}. in
865   .) ac_abs_top_builddir=$ac_abs_builddir;;
866   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
867   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
868   esac;;
869 esac
870 case $ac_abs_builddir in
871 .) ac_abs_srcdir=$ac_srcdir;;
872 *)
873   case $ac_srcdir in
874   .) ac_abs_srcdir=$ac_abs_builddir;;
875   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
876   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
877   esac;;
878 esac
879 case $ac_abs_builddir in
880 .) ac_abs_top_srcdir=$ac_top_srcdir;;
881 *)
882   case $ac_top_srcdir in
883   .) ac_abs_top_srcdir=$ac_abs_builddir;;
884   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
885   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
886   esac;;
887 esac
888
889     cd $ac_dir
890     # Check for guested configure; otherwise get Cygnus style configure.
891     if test -f $ac_srcdir/configure.gnu; then
892       echo
893       $SHELL $ac_srcdir/configure.gnu  --help=recursive
894     elif test -f $ac_srcdir/configure; then
895       echo
896       $SHELL $ac_srcdir/configure  --help=recursive
897     elif test -f $ac_srcdir/configure.ac ||
898            test -f $ac_srcdir/configure.in; then
899       echo
900       $ac_configure --help
901     else
902       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
903     fi
904     cd $ac_popdir
905   done
906 fi
907
908 test -n "$ac_init_help" && exit 0
909 if $ac_init_version; then
910   cat <<\_ACEOF
911
912 Copyright (C) 2003 Free Software Foundation, Inc.
913 This configure script is free software; the Free Software Foundation
914 gives unlimited permission to copy, distribute and modify it.
915 _ACEOF
916   exit 0
917 fi
918 exec 5>config.log
919 cat >&5 <<_ACEOF
920 This file contains any messages produced by compilers while
921 running configure, to aid debugging if configure makes a mistake.
922
923 It was created by $as_me, which was
924 generated by GNU Autoconf 2.59.  Invocation command line was
925
926   $ $0 $@
927
928 _ACEOF
929 {
930 cat <<_ASUNAME
931 ## --------- ##
932 ## Platform. ##
933 ## --------- ##
934
935 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
936 uname -m = `(uname -m) 2>/dev/null || echo unknown`
937 uname -r = `(uname -r) 2>/dev/null || echo unknown`
938 uname -s = `(uname -s) 2>/dev/null || echo unknown`
939 uname -v = `(uname -v) 2>/dev/null || echo unknown`
940
941 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
942 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
943
944 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
945 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
946 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
947 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
948 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
949 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
950 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
951
952 _ASUNAME
953
954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
955 for as_dir in $PATH
956 do
957   IFS=$as_save_IFS
958   test -z "$as_dir" && as_dir=.
959   echo "PATH: $as_dir"
960 done
961
962 } >&5
963
964 cat >&5 <<_ACEOF
965
966
967 ## ----------- ##
968 ## Core tests. ##
969 ## ----------- ##
970
971 _ACEOF
972
973
974 # Keep a trace of the command line.
975 # Strip out --no-create and --no-recursion so they do not pile up.
976 # Strip out --silent because we don't want to record it for future runs.
977 # Also quote any args containing shell meta-characters.
978 # Make two passes to allow for proper duplicate-argument suppression.
979 ac_configure_args=
980 ac_configure_args0=
981 ac_configure_args1=
982 ac_sep=
983 ac_must_keep_next=false
984 for ac_pass in 1 2
985 do
986   for ac_arg
987   do
988     case $ac_arg in
989     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
990     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
991     | -silent | --silent | --silen | --sile | --sil)
992       continue ;;
993     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
994       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
995     esac
996     case $ac_pass in
997     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
998     2)
999       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1000       if test $ac_must_keep_next = true; then
1001         ac_must_keep_next=false # Got value, back to normal.
1002       else
1003         case $ac_arg in
1004           *=* | --config-cache | -C | -disable-* | --disable-* \
1005           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1006           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1007           | -with-* | --with-* | -without-* | --without-* | --x)
1008             case "$ac_configure_args0 " in
1009               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1010             esac
1011             ;;
1012           -* ) ac_must_keep_next=true ;;
1013         esac
1014       fi
1015       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1016       # Get rid of the leading space.
1017       ac_sep=" "
1018       ;;
1019     esac
1020   done
1021 done
1022 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1023 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1024
1025 # When interrupted or exit'd, cleanup temporary files, and complete
1026 # config.log.  We remove comments because anyway the quotes in there
1027 # would cause problems or look ugly.
1028 # WARNING: Be sure not to use single quotes in there, as some shells,
1029 # such as our DU 5.0 friend, will then `close' the trap.
1030 trap 'exit_status=$?
1031   # Save into config.log some information that might help in debugging.
1032   {
1033     echo
1034
1035     cat <<\_ASBOX
1036 ## ---------------- ##
1037 ## Cache variables. ##
1038 ## ---------------- ##
1039 _ASBOX
1040     echo
1041     # The following way of writing the cache mishandles newlines in values,
1042 {
1043   (set) 2>&1 |
1044     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1045     *ac_space=\ *)
1046       sed -n \
1047         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1048           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1049       ;;
1050     *)
1051       sed -n \
1052         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1053       ;;
1054     esac;
1055 }
1056     echo
1057
1058     cat <<\_ASBOX
1059 ## ----------------- ##
1060 ## Output variables. ##
1061 ## ----------------- ##
1062 _ASBOX
1063     echo
1064     for ac_var in $ac_subst_vars
1065     do
1066       eval ac_val=$`echo $ac_var`
1067       echo "$ac_var='"'"'$ac_val'"'"'"
1068     done | sort
1069     echo
1070
1071     if test -n "$ac_subst_files"; then
1072       cat <<\_ASBOX
1073 ## ------------- ##
1074 ## Output files. ##
1075 ## ------------- ##
1076 _ASBOX
1077       echo
1078       for ac_var in $ac_subst_files
1079       do
1080         eval ac_val=$`echo $ac_var`
1081         echo "$ac_var='"'"'$ac_val'"'"'"
1082       done | sort
1083       echo
1084     fi
1085
1086     if test -s confdefs.h; then
1087       cat <<\_ASBOX
1088 ## ----------- ##
1089 ## confdefs.h. ##
1090 ## ----------- ##
1091 _ASBOX
1092       echo
1093       sed "/^$/d" confdefs.h | sort
1094       echo
1095     fi
1096     test "$ac_signal" != 0 &&
1097       echo "$as_me: caught signal $ac_signal"
1098     echo "$as_me: exit $exit_status"
1099   } >&5
1100   rm -f core *.core &&
1101   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1102     exit $exit_status
1103      ' 0
1104 for ac_signal in 1 2 13 15; do
1105   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1106 done
1107 ac_signal=0
1108
1109 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1110 rm -rf conftest* confdefs.h
1111 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1112 echo >confdefs.h
1113
1114 # Predefined preprocessor variables.
1115
1116 cat >>confdefs.h <<_ACEOF
1117 #define PACKAGE_NAME "$PACKAGE_NAME"
1118 _ACEOF
1119
1120
1121 cat >>confdefs.h <<_ACEOF
1122 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1123 _ACEOF
1124
1125
1126 cat >>confdefs.h <<_ACEOF
1127 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1128 _ACEOF
1129
1130
1131 cat >>confdefs.h <<_ACEOF
1132 #define PACKAGE_STRING "$PACKAGE_STRING"
1133 _ACEOF
1134
1135
1136 cat >>confdefs.h <<_ACEOF
1137 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1138 _ACEOF
1139
1140
1141 # Let the site file select an alternate cache file if it wants to.
1142 # Prefer explicitly selected file to automatically selected ones.
1143 if test -z "$CONFIG_SITE"; then
1144   if test "x$prefix" != xNONE; then
1145     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1146   else
1147     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1148   fi
1149 fi
1150 for ac_site_file in $CONFIG_SITE; do
1151   if test -r "$ac_site_file"; then
1152     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1153 echo "$as_me: loading site script $ac_site_file" >&6;}
1154     sed 's/^/| /' "$ac_site_file" >&5
1155     . "$ac_site_file"
1156   fi
1157 done
1158
1159 if test -r "$cache_file"; then
1160   # Some versions of bash will fail to source /dev/null (special
1161   # files actually), so we avoid doing that.
1162   if test -f "$cache_file"; then
1163     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1164 echo "$as_me: loading cache $cache_file" >&6;}
1165     case $cache_file in
1166       [\\/]* | ?:[\\/]* ) . $cache_file;;
1167       *)                      . ./$cache_file;;
1168     esac
1169   fi
1170 else
1171   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1172 echo "$as_me: creating cache $cache_file" >&6;}
1173   >$cache_file
1174 fi
1175
1176 # Check that the precious variables saved in the cache have kept the same
1177 # value.
1178 ac_cache_corrupted=false
1179 for ac_var in `(set) 2>&1 |
1180                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1181   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1182   eval ac_new_set=\$ac_env_${ac_var}_set
1183   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1184   eval ac_new_val="\$ac_env_${ac_var}_value"
1185   case $ac_old_set,$ac_new_set in
1186     set,)
1187       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1188 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1189       ac_cache_corrupted=: ;;
1190     ,set)
1191       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1192 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1193       ac_cache_corrupted=: ;;
1194     ,);;
1195     *)
1196       if test "x$ac_old_val" != "x$ac_new_val"; then
1197         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1198 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1199         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1200 echo "$as_me:   former value:  $ac_old_val" >&2;}
1201         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1202 echo "$as_me:   current value: $ac_new_val" >&2;}
1203         ac_cache_corrupted=:
1204       fi;;
1205   esac
1206   # Pass precious variables to config.status.
1207   if test "$ac_new_set" = set; then
1208     case $ac_new_val in
1209     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1210       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1211     *) ac_arg=$ac_var=$ac_new_val ;;
1212     esac
1213     case " $ac_configure_args " in
1214       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1215       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1216     esac
1217   fi
1218 done
1219 if $ac_cache_corrupted; then
1220   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1221 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1222   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1223 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1224    { (exit 1); exit 1; }; }
1225 fi
1226
1227 ac_ext=c
1228 ac_cpp='$CPP $CPPFLAGS'
1229 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1230 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1231 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254 if test x$with_rlm_perl != xno; then
1255
1256         ac_ext=c
1257 ac_cpp='$CPP $CPPFLAGS'
1258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1261 if test -n "$ac_tool_prefix"; then
1262   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1263 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1264 echo "$as_me:$LINENO: checking for $ac_word" >&5
1265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1266 if test "${ac_cv_prog_CC+set}" = set; then
1267   echo $ECHO_N "(cached) $ECHO_C" >&6
1268 else
1269   if test -n "$CC"; then
1270   ac_cv_prog_CC="$CC" # Let the user override the test.
1271 else
1272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1273 for as_dir in $PATH
1274 do
1275   IFS=$as_save_IFS
1276   test -z "$as_dir" && as_dir=.
1277   for ac_exec_ext in '' $ac_executable_extensions; do
1278   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1279     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1280     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1281     break 2
1282   fi
1283 done
1284 done
1285
1286 fi
1287 fi
1288 CC=$ac_cv_prog_CC
1289 if test -n "$CC"; then
1290   echo "$as_me:$LINENO: result: $CC" >&5
1291 echo "${ECHO_T}$CC" >&6
1292 else
1293   echo "$as_me:$LINENO: result: no" >&5
1294 echo "${ECHO_T}no" >&6
1295 fi
1296
1297 fi
1298 if test -z "$ac_cv_prog_CC"; then
1299   ac_ct_CC=$CC
1300   # Extract the first word of "gcc", so it can be a program name with args.
1301 set dummy gcc; ac_word=$2
1302 echo "$as_me:$LINENO: checking for $ac_word" >&5
1303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1304 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1305   echo $ECHO_N "(cached) $ECHO_C" >&6
1306 else
1307   if test -n "$ac_ct_CC"; then
1308   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1309 else
1310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1311 for as_dir in $PATH
1312 do
1313   IFS=$as_save_IFS
1314   test -z "$as_dir" && as_dir=.
1315   for ac_exec_ext in '' $ac_executable_extensions; do
1316   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1317     ac_cv_prog_ac_ct_CC="gcc"
1318     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1319     break 2
1320   fi
1321 done
1322 done
1323
1324 fi
1325 fi
1326 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1327 if test -n "$ac_ct_CC"; then
1328   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1329 echo "${ECHO_T}$ac_ct_CC" >&6
1330 else
1331   echo "$as_me:$LINENO: result: no" >&5
1332 echo "${ECHO_T}no" >&6
1333 fi
1334
1335   CC=$ac_ct_CC
1336 else
1337   CC="$ac_cv_prog_CC"
1338 fi
1339
1340 if test -z "$CC"; then
1341   if test -n "$ac_tool_prefix"; then
1342   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1343 set dummy ${ac_tool_prefix}cc; ac_word=$2
1344 echo "$as_me:$LINENO: checking for $ac_word" >&5
1345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1346 if test "${ac_cv_prog_CC+set}" = set; then
1347   echo $ECHO_N "(cached) $ECHO_C" >&6
1348 else
1349   if test -n "$CC"; then
1350   ac_cv_prog_CC="$CC" # Let the user override the test.
1351 else
1352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1353 for as_dir in $PATH
1354 do
1355   IFS=$as_save_IFS
1356   test -z "$as_dir" && as_dir=.
1357   for ac_exec_ext in '' $ac_executable_extensions; do
1358   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1359     ac_cv_prog_CC="${ac_tool_prefix}cc"
1360     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1361     break 2
1362   fi
1363 done
1364 done
1365
1366 fi
1367 fi
1368 CC=$ac_cv_prog_CC
1369 if test -n "$CC"; then
1370   echo "$as_me:$LINENO: result: $CC" >&5
1371 echo "${ECHO_T}$CC" >&6
1372 else
1373   echo "$as_me:$LINENO: result: no" >&5
1374 echo "${ECHO_T}no" >&6
1375 fi
1376
1377 fi
1378 if test -z "$ac_cv_prog_CC"; then
1379   ac_ct_CC=$CC
1380   # Extract the first word of "cc", so it can be a program name with args.
1381 set dummy cc; ac_word=$2
1382 echo "$as_me:$LINENO: checking for $ac_word" >&5
1383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1384 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1385   echo $ECHO_N "(cached) $ECHO_C" >&6
1386 else
1387   if test -n "$ac_ct_CC"; then
1388   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1389 else
1390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1391 for as_dir in $PATH
1392 do
1393   IFS=$as_save_IFS
1394   test -z "$as_dir" && as_dir=.
1395   for ac_exec_ext in '' $ac_executable_extensions; do
1396   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1397     ac_cv_prog_ac_ct_CC="cc"
1398     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1399     break 2
1400   fi
1401 done
1402 done
1403
1404 fi
1405 fi
1406 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1407 if test -n "$ac_ct_CC"; then
1408   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1409 echo "${ECHO_T}$ac_ct_CC" >&6
1410 else
1411   echo "$as_me:$LINENO: result: no" >&5
1412 echo "${ECHO_T}no" >&6
1413 fi
1414
1415   CC=$ac_ct_CC
1416 else
1417   CC="$ac_cv_prog_CC"
1418 fi
1419
1420 fi
1421 if test -z "$CC"; then
1422   # Extract the first word of "cc", so it can be a program name with args.
1423 set dummy cc; ac_word=$2
1424 echo "$as_me:$LINENO: checking for $ac_word" >&5
1425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1426 if test "${ac_cv_prog_CC+set}" = set; then
1427   echo $ECHO_N "(cached) $ECHO_C" >&6
1428 else
1429   if test -n "$CC"; then
1430   ac_cv_prog_CC="$CC" # Let the user override the test.
1431 else
1432   ac_prog_rejected=no
1433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1434 for as_dir in $PATH
1435 do
1436   IFS=$as_save_IFS
1437   test -z "$as_dir" && as_dir=.
1438   for ac_exec_ext in '' $ac_executable_extensions; do
1439   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1440     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1441        ac_prog_rejected=yes
1442        continue
1443      fi
1444     ac_cv_prog_CC="cc"
1445     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1446     break 2
1447   fi
1448 done
1449 done
1450
1451 if test $ac_prog_rejected = yes; then
1452   # We found a bogon in the path, so make sure we never use it.
1453   set dummy $ac_cv_prog_CC
1454   shift
1455   if test $# != 0; then
1456     # We chose a different compiler from the bogus one.
1457     # However, it has the same basename, so the bogon will be chosen
1458     # first if we set CC to just the basename; use the full file name.
1459     shift
1460     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1461   fi
1462 fi
1463 fi
1464 fi
1465 CC=$ac_cv_prog_CC
1466 if test -n "$CC"; then
1467   echo "$as_me:$LINENO: result: $CC" >&5
1468 echo "${ECHO_T}$CC" >&6
1469 else
1470   echo "$as_me:$LINENO: result: no" >&5
1471 echo "${ECHO_T}no" >&6
1472 fi
1473
1474 fi
1475 if test -z "$CC"; then
1476   if test -n "$ac_tool_prefix"; then
1477   for ac_prog in cl
1478   do
1479     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1480 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1481 echo "$as_me:$LINENO: checking for $ac_word" >&5
1482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1483 if test "${ac_cv_prog_CC+set}" = set; then
1484   echo $ECHO_N "(cached) $ECHO_C" >&6
1485 else
1486   if test -n "$CC"; then
1487   ac_cv_prog_CC="$CC" # Let the user override the test.
1488 else
1489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1490 for as_dir in $PATH
1491 do
1492   IFS=$as_save_IFS
1493   test -z "$as_dir" && as_dir=.
1494   for ac_exec_ext in '' $ac_executable_extensions; do
1495   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1496     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1497     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1498     break 2
1499   fi
1500 done
1501 done
1502
1503 fi
1504 fi
1505 CC=$ac_cv_prog_CC
1506 if test -n "$CC"; then
1507   echo "$as_me:$LINENO: result: $CC" >&5
1508 echo "${ECHO_T}$CC" >&6
1509 else
1510   echo "$as_me:$LINENO: result: no" >&5
1511 echo "${ECHO_T}no" >&6
1512 fi
1513
1514     test -n "$CC" && break
1515   done
1516 fi
1517 if test -z "$CC"; then
1518   ac_ct_CC=$CC
1519   for ac_prog in cl
1520 do
1521   # Extract the first word of "$ac_prog", so it can be a program name with args.
1522 set dummy $ac_prog; ac_word=$2
1523 echo "$as_me:$LINENO: checking for $ac_word" >&5
1524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1525 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1526   echo $ECHO_N "(cached) $ECHO_C" >&6
1527 else
1528   if test -n "$ac_ct_CC"; then
1529   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1530 else
1531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1532 for as_dir in $PATH
1533 do
1534   IFS=$as_save_IFS
1535   test -z "$as_dir" && as_dir=.
1536   for ac_exec_ext in '' $ac_executable_extensions; do
1537   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1538     ac_cv_prog_ac_ct_CC="$ac_prog"
1539     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1540     break 2
1541   fi
1542 done
1543 done
1544
1545 fi
1546 fi
1547 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1548 if test -n "$ac_ct_CC"; then
1549   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1550 echo "${ECHO_T}$ac_ct_CC" >&6
1551 else
1552   echo "$as_me:$LINENO: result: no" >&5
1553 echo "${ECHO_T}no" >&6
1554 fi
1555
1556   test -n "$ac_ct_CC" && break
1557 done
1558
1559   CC=$ac_ct_CC
1560 fi
1561
1562 fi
1563
1564
1565 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1566 See \`config.log' for more details." >&5
1567 echo "$as_me: error: no acceptable C compiler found in \$PATH
1568 See \`config.log' for more details." >&2;}
1569    { (exit 1); exit 1; }; }
1570
1571 # Provide some information about the compiler.
1572 echo "$as_me:$LINENO:" \
1573      "checking for C compiler version" >&5
1574 ac_compiler=`set X $ac_compile; echo $2`
1575 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1576   (eval $ac_compiler --version </dev/null >&5) 2>&5
1577   ac_status=$?
1578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1579   (exit $ac_status); }
1580 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1581   (eval $ac_compiler -v </dev/null >&5) 2>&5
1582   ac_status=$?
1583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1584   (exit $ac_status); }
1585 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1586   (eval $ac_compiler -V </dev/null >&5) 2>&5
1587   ac_status=$?
1588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1589   (exit $ac_status); }
1590
1591 cat >conftest.$ac_ext <<_ACEOF
1592 /* confdefs.h.  */
1593 _ACEOF
1594 cat confdefs.h >>conftest.$ac_ext
1595 cat >>conftest.$ac_ext <<_ACEOF
1596 /* end confdefs.h.  */
1597
1598 int
1599 main ()
1600 {
1601
1602   ;
1603   return 0;
1604 }
1605 _ACEOF
1606 ac_clean_files_save=$ac_clean_files
1607 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1608 # Try to create an executable without -o first, disregard a.out.
1609 # It will help us diagnose broken compilers, and finding out an intuition
1610 # of exeext.
1611 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1612 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1613 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1614 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1615   (eval $ac_link_default) 2>&5
1616   ac_status=$?
1617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1618   (exit $ac_status); }; then
1619   # Find the output, starting from the most likely.  This scheme is
1620 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1621 # resort.
1622
1623 # Be careful to initialize this variable, since it used to be cached.
1624 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1625 ac_cv_exeext=
1626 # b.out is created by i960 compilers.
1627 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1628 do
1629   test -f "$ac_file" || continue
1630   case $ac_file in
1631     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1632         ;;
1633     conftest.$ac_ext )
1634         # This is the source file.
1635         ;;
1636     [ab].out )
1637         # We found the default executable, but exeext='' is most
1638         # certainly right.
1639         break;;
1640     *.* )
1641         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1642         # FIXME: I believe we export ac_cv_exeext for Libtool,
1643         # but it would be cool to find out if it's true.  Does anybody
1644         # maintain Libtool? --akim.
1645         export ac_cv_exeext
1646         break;;
1647     * )
1648         break;;
1649   esac
1650 done
1651 else
1652   echo "$as_me: failed program was:" >&5
1653 sed 's/^/| /' conftest.$ac_ext >&5
1654
1655 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1656 See \`config.log' for more details." >&5
1657 echo "$as_me: error: C compiler cannot create executables
1658 See \`config.log' for more details." >&2;}
1659    { (exit 77); exit 77; }; }
1660 fi
1661
1662 ac_exeext=$ac_cv_exeext
1663 echo "$as_me:$LINENO: result: $ac_file" >&5
1664 echo "${ECHO_T}$ac_file" >&6
1665
1666 # Check the compiler produces executables we can run.  If not, either
1667 # the compiler is broken, or we cross compile.
1668 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1669 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1670 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1671 # If not cross compiling, check that we can run a simple program.
1672 if test "$cross_compiling" != yes; then
1673   if { ac_try='./$ac_file'
1674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1675   (eval $ac_try) 2>&5
1676   ac_status=$?
1677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1678   (exit $ac_status); }; }; then
1679     cross_compiling=no
1680   else
1681     if test "$cross_compiling" = maybe; then
1682         cross_compiling=yes
1683     else
1684         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1685 If you meant to cross compile, use \`--host'.
1686 See \`config.log' for more details." >&5
1687 echo "$as_me: error: cannot run C compiled programs.
1688 If you meant to cross compile, use \`--host'.
1689 See \`config.log' for more details." >&2;}
1690    { (exit 1); exit 1; }; }
1691     fi
1692   fi
1693 fi
1694 echo "$as_me:$LINENO: result: yes" >&5
1695 echo "${ECHO_T}yes" >&6
1696
1697 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1698 ac_clean_files=$ac_clean_files_save
1699 # Check the compiler produces executables we can run.  If not, either
1700 # the compiler is broken, or we cross compile.
1701 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1702 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1703 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1704 echo "${ECHO_T}$cross_compiling" >&6
1705
1706 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1707 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1709   (eval $ac_link) 2>&5
1710   ac_status=$?
1711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1712   (exit $ac_status); }; then
1713   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1714 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1715 # work properly (i.e., refer to `conftest.exe'), while it won't with
1716 # `rm'.
1717 for ac_file in conftest.exe conftest conftest.*; do
1718   test -f "$ac_file" || continue
1719   case $ac_file in
1720     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1721     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1722           export ac_cv_exeext
1723           break;;
1724     * ) break;;
1725   esac
1726 done
1727 else
1728   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1729 See \`config.log' for more details." >&5
1730 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1731 See \`config.log' for more details." >&2;}
1732    { (exit 1); exit 1; }; }
1733 fi
1734
1735 rm -f conftest$ac_cv_exeext
1736 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1737 echo "${ECHO_T}$ac_cv_exeext" >&6
1738
1739 rm -f conftest.$ac_ext
1740 EXEEXT=$ac_cv_exeext
1741 ac_exeext=$EXEEXT
1742 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1743 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1744 if test "${ac_cv_objext+set}" = set; then
1745   echo $ECHO_N "(cached) $ECHO_C" >&6
1746 else
1747   cat >conftest.$ac_ext <<_ACEOF
1748 /* confdefs.h.  */
1749 _ACEOF
1750 cat confdefs.h >>conftest.$ac_ext
1751 cat >>conftest.$ac_ext <<_ACEOF
1752 /* end confdefs.h.  */
1753
1754 int
1755 main ()
1756 {
1757
1758   ;
1759   return 0;
1760 }
1761 _ACEOF
1762 rm -f conftest.o conftest.obj
1763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1764   (eval $ac_compile) 2>&5
1765   ac_status=$?
1766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1767   (exit $ac_status); }; then
1768   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1769   case $ac_file in
1770     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1771     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1772        break;;
1773   esac
1774 done
1775 else
1776   echo "$as_me: failed program was:" >&5
1777 sed 's/^/| /' conftest.$ac_ext >&5
1778
1779 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1780 See \`config.log' for more details." >&5
1781 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1782 See \`config.log' for more details." >&2;}
1783    { (exit 1); exit 1; }; }
1784 fi
1785
1786 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1787 fi
1788 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1789 echo "${ECHO_T}$ac_cv_objext" >&6
1790 OBJEXT=$ac_cv_objext
1791 ac_objext=$OBJEXT
1792 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1793 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1794 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1795   echo $ECHO_N "(cached) $ECHO_C" >&6
1796 else
1797   cat >conftest.$ac_ext <<_ACEOF
1798 /* confdefs.h.  */
1799 _ACEOF
1800 cat confdefs.h >>conftest.$ac_ext
1801 cat >>conftest.$ac_ext <<_ACEOF
1802 /* end confdefs.h.  */
1803
1804 int
1805 main ()
1806 {
1807 #ifndef __GNUC__
1808        choke me
1809 #endif
1810
1811   ;
1812   return 0;
1813 }
1814 _ACEOF
1815 rm -f conftest.$ac_objext
1816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1817   (eval $ac_compile) 2>conftest.er1
1818   ac_status=$?
1819   grep -v '^ *+' conftest.er1 >conftest.err
1820   rm -f conftest.er1
1821   cat conftest.err >&5
1822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1823   (exit $ac_status); } &&
1824          { ac_try='test -z "$ac_c_werror_flag"
1825                          || test ! -s conftest.err'
1826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1827   (eval $ac_try) 2>&5
1828   ac_status=$?
1829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1830   (exit $ac_status); }; } &&
1831          { ac_try='test -s conftest.$ac_objext'
1832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1833   (eval $ac_try) 2>&5
1834   ac_status=$?
1835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1836   (exit $ac_status); }; }; then
1837   ac_compiler_gnu=yes
1838 else
1839   echo "$as_me: failed program was:" >&5
1840 sed 's/^/| /' conftest.$ac_ext >&5
1841
1842 ac_compiler_gnu=no
1843 fi
1844 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1845 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1846
1847 fi
1848 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1849 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1850 GCC=`test $ac_compiler_gnu = yes && echo yes`
1851 ac_test_CFLAGS=${CFLAGS+set}
1852 ac_save_CFLAGS=$CFLAGS
1853 CFLAGS="-g"
1854 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1855 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1856 if test "${ac_cv_prog_cc_g+set}" = set; then
1857   echo $ECHO_N "(cached) $ECHO_C" >&6
1858 else
1859   cat >conftest.$ac_ext <<_ACEOF
1860 /* confdefs.h.  */
1861 _ACEOF
1862 cat confdefs.h >>conftest.$ac_ext
1863 cat >>conftest.$ac_ext <<_ACEOF
1864 /* end confdefs.h.  */
1865
1866 int
1867 main ()
1868 {
1869
1870   ;
1871   return 0;
1872 }
1873 _ACEOF
1874 rm -f conftest.$ac_objext
1875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1876   (eval $ac_compile) 2>conftest.er1
1877   ac_status=$?
1878   grep -v '^ *+' conftest.er1 >conftest.err
1879   rm -f conftest.er1
1880   cat conftest.err >&5
1881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1882   (exit $ac_status); } &&
1883          { ac_try='test -z "$ac_c_werror_flag"
1884                          || test ! -s conftest.err'
1885   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1886   (eval $ac_try) 2>&5
1887   ac_status=$?
1888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1889   (exit $ac_status); }; } &&
1890          { ac_try='test -s conftest.$ac_objext'
1891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1892   (eval $ac_try) 2>&5
1893   ac_status=$?
1894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1895   (exit $ac_status); }; }; then
1896   ac_cv_prog_cc_g=yes
1897 else
1898   echo "$as_me: failed program was:" >&5
1899 sed 's/^/| /' conftest.$ac_ext >&5
1900
1901 ac_cv_prog_cc_g=no
1902 fi
1903 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1904 fi
1905 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1906 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1907 if test "$ac_test_CFLAGS" = set; then
1908   CFLAGS=$ac_save_CFLAGS
1909 elif test $ac_cv_prog_cc_g = yes; then
1910   if test "$GCC" = yes; then
1911     CFLAGS="-g -O2"
1912   else
1913     CFLAGS="-g"
1914   fi
1915 else
1916   if test "$GCC" = yes; then
1917     CFLAGS="-O2"
1918   else
1919     CFLAGS=
1920   fi
1921 fi
1922 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1923 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1924 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1925   echo $ECHO_N "(cached) $ECHO_C" >&6
1926 else
1927   ac_cv_prog_cc_stdc=no
1928 ac_save_CC=$CC
1929 cat >conftest.$ac_ext <<_ACEOF
1930 /* confdefs.h.  */
1931 _ACEOF
1932 cat confdefs.h >>conftest.$ac_ext
1933 cat >>conftest.$ac_ext <<_ACEOF
1934 /* end confdefs.h.  */
1935 #include <stdarg.h>
1936 #include <stdio.h>
1937 #include <sys/types.h>
1938 #include <sys/stat.h>
1939 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
1940 struct buf { int x; };
1941 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1942 static char *e (p, i)
1943      char **p;
1944      int i;
1945 {
1946   return p[i];
1947 }
1948 static char *f (char * (*g) (char **, int), char **p, ...)
1949 {
1950   char *s;
1951   va_list v;
1952   va_start (v,p);
1953   s = g (p, va_arg (v,int));
1954   va_end (v);
1955   return s;
1956 }
1957
1958 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
1959    function prototypes and stuff, but not '\xHH' hex character constants.
1960    These don't provoke an error unfortunately, instead are silently treated
1961    as 'x'.  The following induces an error, until -std1 is added to get
1962    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
1963    array size at least.  It's necessary to write '\x00'==0 to get something
1964    that's true only with -std1.  */
1965 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
1966
1967 int test (int i, double x);
1968 struct s1 {int (*f) (int a);};
1969 struct s2 {int (*f) (double a);};
1970 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1971 int argc;
1972 char **argv;
1973 int
1974 main ()
1975 {
1976 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
1977   ;
1978   return 0;
1979 }
1980 _ACEOF
1981 # Don't try gcc -ansi; that turns off useful extensions and
1982 # breaks some systems' header files.
1983 # AIX                   -qlanglvl=ansi
1984 # Ultrix and OSF/1      -std1
1985 # HP-UX 10.20 and later -Ae
1986 # HP-UX older versions  -Aa -D_HPUX_SOURCE
1987 # SVR4                  -Xc -D__EXTENSIONS__
1988 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1989 do
1990   CC="$ac_save_CC $ac_arg"
1991   rm -f conftest.$ac_objext
1992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1993   (eval $ac_compile) 2>conftest.er1
1994   ac_status=$?
1995   grep -v '^ *+' conftest.er1 >conftest.err
1996   rm -f conftest.er1
1997   cat conftest.err >&5
1998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1999   (exit $ac_status); } &&
2000          { ac_try='test -z "$ac_c_werror_flag"
2001                          || test ! -s conftest.err'
2002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2003   (eval $ac_try) 2>&5
2004   ac_status=$?
2005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2006   (exit $ac_status); }; } &&
2007          { ac_try='test -s conftest.$ac_objext'
2008   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2009   (eval $ac_try) 2>&5
2010   ac_status=$?
2011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2012   (exit $ac_status); }; }; then
2013   ac_cv_prog_cc_stdc=$ac_arg
2014 break
2015 else
2016   echo "$as_me: failed program was:" >&5
2017 sed 's/^/| /' conftest.$ac_ext >&5
2018
2019 fi
2020 rm -f conftest.err conftest.$ac_objext
2021 done
2022 rm -f conftest.$ac_ext conftest.$ac_objext
2023 CC=$ac_save_CC
2024
2025 fi
2026
2027 case "x$ac_cv_prog_cc_stdc" in
2028   x|xno)
2029     echo "$as_me:$LINENO: result: none needed" >&5
2030 echo "${ECHO_T}none needed" >&6 ;;
2031   *)
2032     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2033 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2034     CC="$CC $ac_cv_prog_cc_stdc" ;;
2035 esac
2036
2037 # Some people use a C++ compiler to compile C.  Since we use `exit',
2038 # in C++ we need to declare it.  In case someone uses the same compiler
2039 # for both compiling C and C++ we need to have the C++ compiler decide
2040 # the declaration of exit, since it's the most demanding environment.
2041 cat >conftest.$ac_ext <<_ACEOF
2042 #ifndef __cplusplus
2043   choke me
2044 #endif
2045 _ACEOF
2046 rm -f conftest.$ac_objext
2047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2048   (eval $ac_compile) 2>conftest.er1
2049   ac_status=$?
2050   grep -v '^ *+' conftest.er1 >conftest.err
2051   rm -f conftest.er1
2052   cat conftest.err >&5
2053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2054   (exit $ac_status); } &&
2055          { ac_try='test -z "$ac_c_werror_flag"
2056                          || test ! -s conftest.err'
2057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2058   (eval $ac_try) 2>&5
2059   ac_status=$?
2060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2061   (exit $ac_status); }; } &&
2062          { ac_try='test -s conftest.$ac_objext'
2063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2064   (eval $ac_try) 2>&5
2065   ac_status=$?
2066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2067   (exit $ac_status); }; }; then
2068   for ac_declaration in \
2069    '' \
2070    'extern "C" void std::exit (int) throw (); using std::exit;' \
2071    'extern "C" void std::exit (int); using std::exit;' \
2072    'extern "C" void exit (int) throw ();' \
2073    'extern "C" void exit (int);' \
2074    'void exit (int);'
2075 do
2076   cat >conftest.$ac_ext <<_ACEOF
2077 /* confdefs.h.  */
2078 _ACEOF
2079 cat confdefs.h >>conftest.$ac_ext
2080 cat >>conftest.$ac_ext <<_ACEOF
2081 /* end confdefs.h.  */
2082 $ac_declaration
2083 #include <stdlib.h>
2084 int
2085 main ()
2086 {
2087 exit (42);
2088   ;
2089   return 0;
2090 }
2091 _ACEOF
2092 rm -f conftest.$ac_objext
2093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2094   (eval $ac_compile) 2>conftest.er1
2095   ac_status=$?
2096   grep -v '^ *+' conftest.er1 >conftest.err
2097   rm -f conftest.er1
2098   cat conftest.err >&5
2099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2100   (exit $ac_status); } &&
2101          { ac_try='test -z "$ac_c_werror_flag"
2102                          || test ! -s conftest.err'
2103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2104   (eval $ac_try) 2>&5
2105   ac_status=$?
2106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2107   (exit $ac_status); }; } &&
2108          { ac_try='test -s conftest.$ac_objext'
2109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2110   (eval $ac_try) 2>&5
2111   ac_status=$?
2112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2113   (exit $ac_status); }; }; then
2114   :
2115 else
2116   echo "$as_me: failed program was:" >&5
2117 sed 's/^/| /' conftest.$ac_ext >&5
2118
2119 continue
2120 fi
2121 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2122   cat >conftest.$ac_ext <<_ACEOF
2123 /* confdefs.h.  */
2124 _ACEOF
2125 cat confdefs.h >>conftest.$ac_ext
2126 cat >>conftest.$ac_ext <<_ACEOF
2127 /* end confdefs.h.  */
2128 $ac_declaration
2129 int
2130 main ()
2131 {
2132 exit (42);
2133   ;
2134   return 0;
2135 }
2136 _ACEOF
2137 rm -f conftest.$ac_objext
2138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2139   (eval $ac_compile) 2>conftest.er1
2140   ac_status=$?
2141   grep -v '^ *+' conftest.er1 >conftest.err
2142   rm -f conftest.er1
2143   cat conftest.err >&5
2144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2145   (exit $ac_status); } &&
2146          { ac_try='test -z "$ac_c_werror_flag"
2147                          || test ! -s conftest.err'
2148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2149   (eval $ac_try) 2>&5
2150   ac_status=$?
2151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2152   (exit $ac_status); }; } &&
2153          { ac_try='test -s conftest.$ac_objext'
2154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2155   (eval $ac_try) 2>&5
2156   ac_status=$?
2157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2158   (exit $ac_status); }; }; then
2159   break
2160 else
2161   echo "$as_me: failed program was:" >&5
2162 sed 's/^/| /' conftest.$ac_ext >&5
2163
2164 fi
2165 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2166 done
2167 rm -f conftest*
2168 if test -n "$ac_declaration"; then
2169   echo '#ifdef __cplusplus' >>confdefs.h
2170   echo $ac_declaration      >>confdefs.h
2171   echo '#endif'             >>confdefs.h
2172 fi
2173
2174 else
2175   echo "$as_me: failed program was:" >&5
2176 sed 's/^/| /' conftest.$ac_ext >&5
2177
2178 fi
2179 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2180 ac_ext=c
2181 ac_cpp='$CPP $CPPFLAGS'
2182 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2183 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2184 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2185
2186         ac_ext=c
2187 ac_cpp='$CPP $CPPFLAGS'
2188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2191 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2192 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2193 # On Suns, sometimes $CPP names a directory.
2194 if test -n "$CPP" && test -d "$CPP"; then
2195   CPP=
2196 fi
2197 if test -z "$CPP"; then
2198   if test "${ac_cv_prog_CPP+set}" = set; then
2199   echo $ECHO_N "(cached) $ECHO_C" >&6
2200 else
2201       # Double quotes because CPP needs to be expanded
2202     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2203     do
2204       ac_preproc_ok=false
2205 for ac_c_preproc_warn_flag in '' yes
2206 do
2207   # Use a header file that comes with gcc, so configuring glibc
2208   # with a fresh cross-compiler works.
2209   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2210   # <limits.h> exists even on freestanding compilers.
2211   # On the NeXT, cc -E runs the code through the compiler's parser,
2212   # not just through cpp. "Syntax error" is here to catch this case.
2213   cat >conftest.$ac_ext <<_ACEOF
2214 /* confdefs.h.  */
2215 _ACEOF
2216 cat confdefs.h >>conftest.$ac_ext
2217 cat >>conftest.$ac_ext <<_ACEOF
2218 /* end confdefs.h.  */
2219 #ifdef __STDC__
2220 # include <limits.h>
2221 #else
2222 # include <assert.h>
2223 #endif
2224                      Syntax error
2225 _ACEOF
2226 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2227   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2228   ac_status=$?
2229   grep -v '^ *+' conftest.er1 >conftest.err
2230   rm -f conftest.er1
2231   cat conftest.err >&5
2232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2233   (exit $ac_status); } >/dev/null; then
2234   if test -s conftest.err; then
2235     ac_cpp_err=$ac_c_preproc_warn_flag
2236     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2237   else
2238     ac_cpp_err=
2239   fi
2240 else
2241   ac_cpp_err=yes
2242 fi
2243 if test -z "$ac_cpp_err"; then
2244   :
2245 else
2246   echo "$as_me: failed program was:" >&5
2247 sed 's/^/| /' conftest.$ac_ext >&5
2248
2249   # Broken: fails on valid input.
2250 continue
2251 fi
2252 rm -f conftest.err conftest.$ac_ext
2253
2254   # OK, works on sane cases.  Now check whether non-existent headers
2255   # can be detected and how.
2256   cat >conftest.$ac_ext <<_ACEOF
2257 /* confdefs.h.  */
2258 _ACEOF
2259 cat confdefs.h >>conftest.$ac_ext
2260 cat >>conftest.$ac_ext <<_ACEOF
2261 /* end confdefs.h.  */
2262 #include <ac_nonexistent.h>
2263 _ACEOF
2264 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2265   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2266   ac_status=$?
2267   grep -v '^ *+' conftest.er1 >conftest.err
2268   rm -f conftest.er1
2269   cat conftest.err >&5
2270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2271   (exit $ac_status); } >/dev/null; then
2272   if test -s conftest.err; then
2273     ac_cpp_err=$ac_c_preproc_warn_flag
2274     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2275   else
2276     ac_cpp_err=
2277   fi
2278 else
2279   ac_cpp_err=yes
2280 fi
2281 if test -z "$ac_cpp_err"; then
2282   # Broken: success on invalid input.
2283 continue
2284 else
2285   echo "$as_me: failed program was:" >&5
2286 sed 's/^/| /' conftest.$ac_ext >&5
2287
2288   # Passes both tests.
2289 ac_preproc_ok=:
2290 break
2291 fi
2292 rm -f conftest.err conftest.$ac_ext
2293
2294 done
2295 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2296 rm -f conftest.err conftest.$ac_ext
2297 if $ac_preproc_ok; then
2298   break
2299 fi
2300
2301     done
2302     ac_cv_prog_CPP=$CPP
2303
2304 fi
2305   CPP=$ac_cv_prog_CPP
2306 else
2307   ac_cv_prog_CPP=$CPP
2308 fi
2309 echo "$as_me:$LINENO: result: $CPP" >&5
2310 echo "${ECHO_T}$CPP" >&6
2311 ac_preproc_ok=false
2312 for ac_c_preproc_warn_flag in '' yes
2313 do
2314   # Use a header file that comes with gcc, so configuring glibc
2315   # with a fresh cross-compiler works.
2316   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2317   # <limits.h> exists even on freestanding compilers.
2318   # On the NeXT, cc -E runs the code through the compiler's parser,
2319   # not just through cpp. "Syntax error" is here to catch this case.
2320   cat >conftest.$ac_ext <<_ACEOF
2321 /* confdefs.h.  */
2322 _ACEOF
2323 cat confdefs.h >>conftest.$ac_ext
2324 cat >>conftest.$ac_ext <<_ACEOF
2325 /* end confdefs.h.  */
2326 #ifdef __STDC__
2327 # include <limits.h>
2328 #else
2329 # include <assert.h>
2330 #endif
2331                      Syntax error
2332 _ACEOF
2333 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2334   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2335   ac_status=$?
2336   grep -v '^ *+' conftest.er1 >conftest.err
2337   rm -f conftest.er1
2338   cat conftest.err >&5
2339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2340   (exit $ac_status); } >/dev/null; then
2341   if test -s conftest.err; then
2342     ac_cpp_err=$ac_c_preproc_warn_flag
2343     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2344   else
2345     ac_cpp_err=
2346   fi
2347 else
2348   ac_cpp_err=yes
2349 fi
2350 if test -z "$ac_cpp_err"; then
2351   :
2352 else
2353   echo "$as_me: failed program was:" >&5
2354 sed 's/^/| /' conftest.$ac_ext >&5
2355
2356   # Broken: fails on valid input.
2357 continue
2358 fi
2359 rm -f conftest.err conftest.$ac_ext
2360
2361   # OK, works on sane cases.  Now check whether non-existent headers
2362   # can be detected and how.
2363   cat >conftest.$ac_ext <<_ACEOF
2364 /* confdefs.h.  */
2365 _ACEOF
2366 cat confdefs.h >>conftest.$ac_ext
2367 cat >>conftest.$ac_ext <<_ACEOF
2368 /* end confdefs.h.  */
2369 #include <ac_nonexistent.h>
2370 _ACEOF
2371 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2372   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2373   ac_status=$?
2374   grep -v '^ *+' conftest.er1 >conftest.err
2375   rm -f conftest.er1
2376   cat conftest.err >&5
2377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378   (exit $ac_status); } >/dev/null; then
2379   if test -s conftest.err; then
2380     ac_cpp_err=$ac_c_preproc_warn_flag
2381     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2382   else
2383     ac_cpp_err=
2384   fi
2385 else
2386   ac_cpp_err=yes
2387 fi
2388 if test -z "$ac_cpp_err"; then
2389   # Broken: success on invalid input.
2390 continue
2391 else
2392   echo "$as_me: failed program was:" >&5
2393 sed 's/^/| /' conftest.$ac_ext >&5
2394
2395   # Passes both tests.
2396 ac_preproc_ok=:
2397 break
2398 fi
2399 rm -f conftest.err conftest.$ac_ext
2400
2401 done
2402 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2403 rm -f conftest.err conftest.$ac_ext
2404 if $ac_preproc_ok; then
2405   :
2406 else
2407   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2408 See \`config.log' for more details." >&5
2409 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2410 See \`config.log' for more details." >&2;}
2411    { (exit 1); exit 1; }; }
2412 fi
2413
2414 ac_ext=c
2415 ac_cpp='$CPP $CPPFLAGS'
2416 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2417 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2418 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2419
2420
2421
2422         # Extract the first word of "perl", so it can be a program name with args.
2423 set dummy perl; ac_word=$2
2424 echo "$as_me:$LINENO: checking for $ac_word" >&5
2425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2426 if test "${ac_cv_prog_PERL+set}" = set; then
2427   echo $ECHO_N "(cached) $ECHO_C" >&6
2428 else
2429   if test -n "$PERL"; then
2430   ac_cv_prog_PERL="$PERL" # Let the user override the test.
2431 else
2432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2433 for as_dir in $PATH
2434 do
2435   IFS=$as_save_IFS
2436   test -z "$as_dir" && as_dir=.
2437   for ac_exec_ext in '' $ac_executable_extensions; do
2438   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2439     ac_cv_prog_PERL="yes"
2440     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2441     break 2
2442   fi
2443 done
2444 done
2445
2446   test -z "$ac_cv_prog_PERL" && ac_cv_prog_PERL="no"
2447 fi
2448 fi
2449 PERL=$ac_cv_prog_PERL
2450 if test -n "$PERL"; then
2451   echo "$as_me:$LINENO: result: $PERL" >&5
2452 echo "${ECHO_T}$PERL" >&6
2453 else
2454   echo "$as_me:$LINENO: result: no" >&5
2455 echo "${ECHO_T}no" >&6
2456 fi
2457
2458         if test "$PERL" = "no"; then
2459            fail=$fail" perl"
2460         else
2461           old_CFLAGS=$CFLAGS
2462           CFLAGS="$CFLAGS `perl -MExtUtils::Embed -e ccopts; perl -MConfig -e 'print $Config{cppflags}'`"
2463
2464           smart_try_dir=
2465
2466
2467
2468 ac_safe=`echo "EXTERN.h" | sed 'y%./+-%__pm%'`
2469 echo "$as_me:$LINENO: checking for EXTERN.h" >&5
2470 echo $ECHO_N "checking for EXTERN.h... $ECHO_C" >&6
2471
2472 old_CFLAGS="$CFLAGS"
2473 smart_include=
2474 smart_include_dir=
2475
2476 if test "x$smart_try_dir" != "x"; then
2477   for try in $smart_try_dir; do
2478     CFLAGS="$old_CFLAGS -I$try"
2479     cat >conftest.$ac_ext <<_ACEOF
2480 /* confdefs.h.  */
2481 _ACEOF
2482 cat confdefs.h >>conftest.$ac_ext
2483 cat >>conftest.$ac_ext <<_ACEOF
2484 /* end confdefs.h.  */
2485
2486                     #include <EXTERN.h>
2487 int
2488 main ()
2489 {
2490  int a = 1;
2491   ;
2492   return 0;
2493 }
2494 _ACEOF
2495 rm -f conftest.$ac_objext
2496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2497   (eval $ac_compile) 2>conftest.er1
2498   ac_status=$?
2499   grep -v '^ *+' conftest.er1 >conftest.err
2500   rm -f conftest.er1
2501   cat conftest.err >&5
2502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503   (exit $ac_status); } &&
2504          { ac_try='test -z "$ac_c_werror_flag"
2505                          || test ! -s conftest.err'
2506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2507   (eval $ac_try) 2>&5
2508   ac_status=$?
2509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2510   (exit $ac_status); }; } &&
2511          { ac_try='test -s conftest.$ac_objext'
2512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2513   (eval $ac_try) 2>&5
2514   ac_status=$?
2515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2516   (exit $ac_status); }; }; then
2517   smart_include="-I$try"
2518 else
2519   echo "$as_me: failed program was:" >&5
2520 sed 's/^/| /' conftest.$ac_ext >&5
2521
2522 smart_include=
2523 fi
2524 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2525     if test "x$smart_include" != "x"; then
2526       break;
2527     fi
2528   done
2529   CFLAGS="$old_CFLAGS"
2530 fi
2531
2532 if test "x$smart_include" = "x"; then
2533   cat >conftest.$ac_ext <<_ACEOF
2534 /* confdefs.h.  */
2535 _ACEOF
2536 cat confdefs.h >>conftest.$ac_ext
2537 cat >>conftest.$ac_ext <<_ACEOF
2538 /* end confdefs.h.  */
2539
2540                   #include <EXTERN.h>
2541 int
2542 main ()
2543 {
2544  int a = 1;
2545   ;
2546   return 0;
2547 }
2548 _ACEOF
2549 rm -f conftest.$ac_objext
2550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2551   (eval $ac_compile) 2>conftest.er1
2552   ac_status=$?
2553   grep -v '^ *+' conftest.er1 >conftest.err
2554   rm -f conftest.er1
2555   cat conftest.err >&5
2556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557   (exit $ac_status); } &&
2558          { ac_try='test -z "$ac_c_werror_flag"
2559                          || test ! -s conftest.err'
2560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2561   (eval $ac_try) 2>&5
2562   ac_status=$?
2563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564   (exit $ac_status); }; } &&
2565          { ac_try='test -s conftest.$ac_objext'
2566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2567   (eval $ac_try) 2>&5
2568   ac_status=$?
2569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2570   (exit $ac_status); }; }; then
2571   smart_include=" "
2572 else
2573   echo "$as_me: failed program was:" >&5
2574 sed 's/^/| /' conftest.$ac_ext >&5
2575
2576 smart_include=
2577 fi
2578 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2579 fi
2580
2581 if test "x$smart_include" = "x"; then
2582
2583
2584 if test "x$LOCATE" != "x"; then
2585         DIRS=
2586   file=EXTERN.h
2587
2588   for x in `${LOCATE} $file 2>/dev/null`; do
2589                                         base=`echo $x | sed "s%/${file}%%"`
2590     if test "x$x" = "x$base"; then
2591       continue;
2592     fi
2593
2594     dir=`${DIRNAME} $x 2>/dev/null`
2595                 exclude=`echo ${dir} | ${GREP} /home`
2596     if test "x$exclude" != "x"; then
2597       continue
2598     fi
2599
2600                     already=`echo \$smart_include_dir ${DIRS} | ${GREP} ${dir}`
2601     if test "x$already" = "x"; then
2602       DIRS="$DIRS $dir"
2603     fi
2604   done
2605 fi
2606
2607 eval "smart_include_dir=\"\$smart_include_dir $DIRS\""
2608
2609
2610   for try in $smart_include_dir /usr/local/include /opt/include; do
2611     CFLAGS="$old_CFLAGS -I$try"
2612     cat >conftest.$ac_ext <<_ACEOF
2613 /* confdefs.h.  */
2614 _ACEOF
2615 cat confdefs.h >>conftest.$ac_ext
2616 cat >>conftest.$ac_ext <<_ACEOF
2617 /* end confdefs.h.  */
2618
2619                     #include <EXTERN.h>
2620 int
2621 main ()
2622 {
2623  int a = 1;
2624   ;
2625   return 0;
2626 }
2627 _ACEOF
2628 rm -f conftest.$ac_objext
2629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2630   (eval $ac_compile) 2>conftest.er1
2631   ac_status=$?
2632   grep -v '^ *+' conftest.er1 >conftest.err
2633   rm -f conftest.er1
2634   cat conftest.err >&5
2635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636   (exit $ac_status); } &&
2637          { ac_try='test -z "$ac_c_werror_flag"
2638                          || test ! -s conftest.err'
2639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2640   (eval $ac_try) 2>&5
2641   ac_status=$?
2642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2643   (exit $ac_status); }; } &&
2644          { ac_try='test -s conftest.$ac_objext'
2645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2646   (eval $ac_try) 2>&5
2647   ac_status=$?
2648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649   (exit $ac_status); }; }; then
2650   smart_include="-I$try"
2651 else
2652   echo "$as_me: failed program was:" >&5
2653 sed 's/^/| /' conftest.$ac_ext >&5
2654
2655 smart_include=
2656 fi
2657 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2658     if test "x$smart_include" != "x"; then
2659       break;
2660     fi
2661   done
2662   CFLAGS="$old_CFLAGS"
2663 fi
2664
2665 if test "x$smart_include" != "x"; then
2666   echo "$as_me:$LINENO: result: yes" >&5
2667 echo "${ECHO_T}yes" >&6
2668   eval "ac_cv_header_$ac_safe=yes"
2669   CFLAGS="$old_CFLAGS $smart_include"
2670   SMART_CFLAGS="$SMART_CFLAGS $smart_include"
2671 else
2672   echo "$as_me:$LINENO: result: no" >&5
2673 echo "${ECHO_T}no" >&6
2674 fi
2675
2676           if test "x$ac_cv_header_EXTERN_h" = "xyes"; then
2677                 perl_cflags="`perl -MExtUtils::Embed -e ccopts; perl -MConfig -e 'print $Config{cppflags}'`"
2678           else
2679                 fail="$fail EXTERN.h"
2680                 targetname=
2681           fi
2682
2683
2684
2685 ac_safe=`echo "perl.h" | sed 'y%./+-%__pm%'`
2686 echo "$as_me:$LINENO: checking for perl.h" >&5
2687 echo $ECHO_N "checking for perl.h... $ECHO_C" >&6
2688
2689 old_CFLAGS="$CFLAGS"
2690 smart_include=
2691 smart_include_dir=
2692
2693 if test "x$smart_try_dir" != "x"; then
2694   for try in $smart_try_dir; do
2695     CFLAGS="$old_CFLAGS -I$try"
2696     cat >conftest.$ac_ext <<_ACEOF
2697 /* confdefs.h.  */
2698 _ACEOF
2699 cat confdefs.h >>conftest.$ac_ext
2700 cat >>conftest.$ac_ext <<_ACEOF
2701 /* end confdefs.h.  */
2702 #include <EXTERN.h>
2703                     #include <perl.h>
2704 int
2705 main ()
2706 {
2707  int a = 1;
2708   ;
2709   return 0;
2710 }
2711 _ACEOF
2712 rm -f conftest.$ac_objext
2713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2714   (eval $ac_compile) 2>conftest.er1
2715   ac_status=$?
2716   grep -v '^ *+' conftest.er1 >conftest.err
2717   rm -f conftest.er1
2718   cat conftest.err >&5
2719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720   (exit $ac_status); } &&
2721          { ac_try='test -z "$ac_c_werror_flag"
2722                          || test ! -s conftest.err'
2723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2724   (eval $ac_try) 2>&5
2725   ac_status=$?
2726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727   (exit $ac_status); }; } &&
2728          { ac_try='test -s conftest.$ac_objext'
2729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2730   (eval $ac_try) 2>&5
2731   ac_status=$?
2732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733   (exit $ac_status); }; }; then
2734   smart_include="-I$try"
2735 else
2736   echo "$as_me: failed program was:" >&5
2737 sed 's/^/| /' conftest.$ac_ext >&5
2738
2739 smart_include=
2740 fi
2741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2742     if test "x$smart_include" != "x"; then
2743       break;
2744     fi
2745   done
2746   CFLAGS="$old_CFLAGS"
2747 fi
2748
2749 if test "x$smart_include" = "x"; then
2750   cat >conftest.$ac_ext <<_ACEOF
2751 /* confdefs.h.  */
2752 _ACEOF
2753 cat confdefs.h >>conftest.$ac_ext
2754 cat >>conftest.$ac_ext <<_ACEOF
2755 /* end confdefs.h.  */
2756 #include <EXTERN.h>
2757                   #include <perl.h>
2758 int
2759 main ()
2760 {
2761  int a = 1;
2762   ;
2763   return 0;
2764 }
2765 _ACEOF
2766 rm -f conftest.$ac_objext
2767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2768   (eval $ac_compile) 2>conftest.er1
2769   ac_status=$?
2770   grep -v '^ *+' conftest.er1 >conftest.err
2771   rm -f conftest.er1
2772   cat conftest.err >&5
2773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774   (exit $ac_status); } &&
2775          { ac_try='test -z "$ac_c_werror_flag"
2776                          || test ! -s conftest.err'
2777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2778   (eval $ac_try) 2>&5
2779   ac_status=$?
2780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2781   (exit $ac_status); }; } &&
2782          { ac_try='test -s conftest.$ac_objext'
2783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2784   (eval $ac_try) 2>&5
2785   ac_status=$?
2786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787   (exit $ac_status); }; }; then
2788   smart_include=" "
2789 else
2790   echo "$as_me: failed program was:" >&5
2791 sed 's/^/| /' conftest.$ac_ext >&5
2792
2793 smart_include=
2794 fi
2795 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2796 fi
2797
2798 if test "x$smart_include" = "x"; then
2799
2800
2801 if test "x$LOCATE" != "x"; then
2802         DIRS=
2803   file=perl.h
2804
2805   for x in `${LOCATE} $file 2>/dev/null`; do
2806                                         base=`echo $x | sed "s%/${file}%%"`
2807     if test "x$x" = "x$base"; then
2808       continue;
2809     fi
2810
2811     dir=`${DIRNAME} $x 2>/dev/null`
2812                 exclude=`echo ${dir} | ${GREP} /home`
2813     if test "x$exclude" != "x"; then
2814       continue
2815     fi
2816
2817                     already=`echo \$smart_include_dir ${DIRS} | ${GREP} ${dir}`
2818     if test "x$already" = "x"; then
2819       DIRS="$DIRS $dir"
2820     fi
2821   done
2822 fi
2823
2824 eval "smart_include_dir=\"\$smart_include_dir $DIRS\""
2825
2826
2827   for try in $smart_include_dir /usr/local/include /opt/include; do
2828     CFLAGS="$old_CFLAGS -I$try"
2829     cat >conftest.$ac_ext <<_ACEOF
2830 /* confdefs.h.  */
2831 _ACEOF
2832 cat confdefs.h >>conftest.$ac_ext
2833 cat >>conftest.$ac_ext <<_ACEOF
2834 /* end confdefs.h.  */
2835 #include <EXTERN.h>
2836                     #include <perl.h>
2837 int
2838 main ()
2839 {
2840  int a = 1;
2841   ;
2842   return 0;
2843 }
2844 _ACEOF
2845 rm -f conftest.$ac_objext
2846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2847   (eval $ac_compile) 2>conftest.er1
2848   ac_status=$?
2849   grep -v '^ *+' conftest.er1 >conftest.err
2850   rm -f conftest.er1
2851   cat conftest.err >&5
2852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2853   (exit $ac_status); } &&
2854          { ac_try='test -z "$ac_c_werror_flag"
2855                          || test ! -s conftest.err'
2856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2857   (eval $ac_try) 2>&5
2858   ac_status=$?
2859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2860   (exit $ac_status); }; } &&
2861          { ac_try='test -s conftest.$ac_objext'
2862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2863   (eval $ac_try) 2>&5
2864   ac_status=$?
2865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2866   (exit $ac_status); }; }; then
2867   smart_include="-I$try"
2868 else
2869   echo "$as_me: failed program was:" >&5
2870 sed 's/^/| /' conftest.$ac_ext >&5
2871
2872 smart_include=
2873 fi
2874 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2875     if test "x$smart_include" != "x"; then
2876       break;
2877     fi
2878   done
2879   CFLAGS="$old_CFLAGS"
2880 fi
2881
2882 if test "x$smart_include" != "x"; then
2883   echo "$as_me:$LINENO: result: yes" >&5
2884 echo "${ECHO_T}yes" >&6
2885   eval "ac_cv_header_$ac_safe=yes"
2886   CFLAGS="$old_CFLAGS $smart_include"
2887   SMART_CFLAGS="$SMART_CFLAGS $smart_include"
2888 else
2889   echo "$as_me:$LINENO: result: no" >&5
2890 echo "${ECHO_T}no" >&6
2891 fi
2892
2893           if test "x$ac_cv_header_perl_h" = "xyes"; then
2894                 perl_cflags="`perl -MExtUtils::Embed -e ccopts; perl -MConfig -e 'print $Config{cppflags}'`"
2895           else
2896                 fail="$fail perl.h"
2897                 targetname=
2898           fi
2899
2900           perl_ldflags='`perl -MExtUtils::Embed -e ldopts`'
2901
2902           CFLAGS=$old_CFLAGS
2903         fi
2904         targetname=rlm_perl
2905
2906 else
2907         targetname=
2908         echo \*\*\* module rlm_perl is disabled.  # keep this!  Don't change!
2909 fi
2910
2911 if test x"$fail" != x""; then
2912         if test x"${enable_strict_dependencies}" = x"yes"; then
2913                 { { echo "$as_me:$LINENO: error: set --without-rlm_perl to disable it explicitly." >&5
2914 echo "$as_me: error: set --without-rlm_perl to disable it explicitly." >&2;}
2915    { (exit 1); exit 1; }; }
2916         else
2917                 { echo "$as_me:$LINENO: WARNING: silently not building rlm_perl." >&5
2918 echo "$as_me: WARNING: silently not building rlm_perl." >&2;}
2919                 { echo "$as_me:$LINENO: WARNING: FAILURE: rlm_perl requires: $fail." >&5
2920 echo "$as_me: WARNING: FAILURE: rlm_perl requires: $fail." >&2;};
2921                 targetname=""
2922                 perl_cflags=""
2923                 perl_ldflags=""
2924         fi
2925 fi
2926
2927
2928
2929
2930
2931           ac_config_headers="$ac_config_headers config.h"
2932
2933
2934
2935           ac_config_files="$ac_config_files Makefile"
2936 cat >confcache <<\_ACEOF
2937 # This file is a shell script that caches the results of configure
2938 # tests run on this system so they can be shared between configure
2939 # scripts and configure runs, see configure's option --config-cache.
2940 # It is not useful on other systems.  If it contains results you don't
2941 # want to keep, you may remove or edit it.
2942 #
2943 # config.status only pays attention to the cache file if you give it
2944 # the --recheck option to rerun configure.
2945 #
2946 # `ac_cv_env_foo' variables (set or unset) will be overridden when
2947 # loading this file, other *unset* `ac_cv_foo' will be assigned the
2948 # following values.
2949
2950 _ACEOF
2951
2952 # The following way of writing the cache mishandles newlines in values,
2953 # but we know of no workaround that is simple, portable, and efficient.
2954 # So, don't put newlines in cache variables' values.
2955 # Ultrix sh set writes to stderr and can't be redirected directly,
2956 # and sets the high bit in the cache file unless we assign to the vars.
2957 {
2958   (set) 2>&1 |
2959     case `(ac_space=' '; set | grep ac_space) 2>&1` in
2960     *ac_space=\ *)
2961       # `set' does not quote correctly, so add quotes (double-quote
2962       # substitution turns \\\\ into \\, and sed turns \\ into \).
2963       sed -n \
2964         "s/'/'\\\\''/g;
2965           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
2966       ;;
2967     *)
2968       # `set' quotes correctly as required by POSIX, so do not add quotes.
2969       sed -n \
2970         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
2971       ;;
2972     esac;
2973 } |
2974   sed '
2975      t clear
2976      : clear
2977      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
2978      t end
2979      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
2980      : end' >>confcache
2981 if diff $cache_file confcache >/dev/null 2>&1; then :; else
2982   if test -w $cache_file; then
2983     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
2984     cat confcache >$cache_file
2985   else
2986     echo "not updating unwritable cache $cache_file"
2987   fi
2988 fi
2989 rm -f confcache
2990
2991 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2992 # Let make expand exec_prefix.
2993 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2994
2995 # VPATH may cause trouble with some makes, so we remove $(srcdir),
2996 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
2997 # trailing colons and then remove the whole line if VPATH becomes empty
2998 # (actually we leave an empty line to preserve line numbers).
2999 if test "x$srcdir" = x.; then
3000   ac_vpsub='/^[  ]*VPATH[        ]*=/{
3001 s/:*\$(srcdir):*/:/;
3002 s/:*\${srcdir}:*/:/;
3003 s/:*@srcdir@:*/:/;
3004 s/^\([^=]*=[     ]*\):*/\1/;
3005 s/:*$//;
3006 s/^[^=]*=[       ]*$//;
3007 }'
3008 fi
3009
3010 DEFS=-DHAVE_CONFIG_H
3011
3012 ac_libobjs=
3013 ac_ltlibobjs=
3014 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3015   # 1. Remove the extension, and $U if already installed.
3016   ac_i=`echo "$ac_i" |
3017          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
3018   # 2. Add them.
3019   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
3020   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
3021 done
3022 LIBOBJS=$ac_libobjs
3023
3024 LTLIBOBJS=$ac_ltlibobjs
3025
3026
3027
3028 : ${CONFIG_STATUS=./config.status}
3029 ac_clean_files_save=$ac_clean_files
3030 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3031 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
3032 echo "$as_me: creating $CONFIG_STATUS" >&6;}
3033 cat >$CONFIG_STATUS <<_ACEOF
3034 #! $SHELL
3035 # Generated by $as_me.
3036 # Run this file to recreate the current configuration.
3037 # Compiler output produced by configure, useful for debugging
3038 # configure, is in config.log if it exists.
3039
3040 debug=false
3041 ac_cs_recheck=false
3042 ac_cs_silent=false
3043 SHELL=\${CONFIG_SHELL-$SHELL}
3044 _ACEOF
3045
3046 cat >>$CONFIG_STATUS <<\_ACEOF
3047 ## --------------------- ##
3048 ## M4sh Initialization.  ##
3049 ## --------------------- ##
3050
3051 # Be Bourne compatible
3052 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3053   emulate sh
3054   NULLCMD=:
3055   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
3056   # is contrary to our usage.  Disable this feature.
3057   alias -g '${1+"$@"}'='"$@"'
3058 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
3059   set -o posix
3060 fi
3061 DUALCASE=1; export DUALCASE # for MKS sh
3062
3063 # Support unset when possible.
3064 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3065   as_unset=unset
3066 else
3067   as_unset=false
3068 fi
3069
3070
3071 # Work around bugs in pre-3.0 UWIN ksh.
3072 $as_unset ENV MAIL MAILPATH
3073 PS1='$ '
3074 PS2='> '
3075 PS4='+ '
3076
3077 # NLS nuisances.
3078 for as_var in \
3079   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
3080   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
3081   LC_TELEPHONE LC_TIME
3082 do
3083   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
3084     eval $as_var=C; export $as_var
3085   else
3086     $as_unset $as_var
3087   fi
3088 done
3089
3090 # Required to use basename.
3091 if expr a : '\(a\)' >/dev/null 2>&1; then
3092   as_expr=expr
3093 else
3094   as_expr=false
3095 fi
3096
3097 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
3098   as_basename=basename
3099 else
3100   as_basename=false
3101 fi
3102
3103
3104 # Name of the executable.
3105 as_me=`$as_basename "$0" ||
3106 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3107          X"$0" : 'X\(//\)$' \| \
3108          X"$0" : 'X\(/\)$' \| \
3109          .     : '\(.\)' 2>/dev/null ||
3110 echo X/"$0" |
3111     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
3112           /^X\/\(\/\/\)$/{ s//\1/; q; }
3113           /^X\/\(\/\).*/{ s//\1/; q; }
3114           s/.*/./; q'`
3115
3116
3117 # PATH needs CR, and LINENO needs CR and PATH.
3118 # Avoid depending upon Character Ranges.
3119 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3120 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3121 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3122 as_cr_digits='0123456789'
3123 as_cr_alnum=$as_cr_Letters$as_cr_digits
3124
3125 # The user is always right.
3126 if test "${PATH_SEPARATOR+set}" != set; then
3127   echo "#! /bin/sh" >conf$$.sh
3128   echo  "exit 0"   >>conf$$.sh
3129   chmod +x conf$$.sh
3130   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3131     PATH_SEPARATOR=';'
3132   else
3133     PATH_SEPARATOR=:
3134   fi
3135   rm -f conf$$.sh
3136 fi
3137
3138
3139   as_lineno_1=$LINENO
3140   as_lineno_2=$LINENO
3141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3142   test "x$as_lineno_1" != "x$as_lineno_2" &&
3143   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
3144   # Find who we are.  Look in the path if we contain no path at all
3145   # relative or not.
3146   case $0 in
3147     *[\\/]* ) as_myself=$0 ;;
3148     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3149 for as_dir in $PATH
3150 do
3151   IFS=$as_save_IFS
3152   test -z "$as_dir" && as_dir=.
3153   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3154 done
3155
3156        ;;
3157   esac
3158   # We did not find ourselves, most probably we were run as `sh COMMAND'
3159   # in which case we are not to be found in the path.
3160   if test "x$as_myself" = x; then
3161     as_myself=$0
3162   fi
3163   if test ! -f "$as_myself"; then
3164     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
3165 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
3166    { (exit 1); exit 1; }; }
3167   fi
3168   case $CONFIG_SHELL in
3169   '')
3170     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3171 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
3172 do
3173   IFS=$as_save_IFS
3174   test -z "$as_dir" && as_dir=.
3175   for as_base in sh bash ksh sh5; do
3176          case $as_dir in
3177          /*)
3178            if ("$as_dir/$as_base" -c '
3179   as_lineno_1=$LINENO
3180   as_lineno_2=$LINENO
3181   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3182   test "x$as_lineno_1" != "x$as_lineno_2" &&
3183   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
3184              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
3185              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
3186              CONFIG_SHELL=$as_dir/$as_base
3187              export CONFIG_SHELL
3188              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
3189            fi;;
3190          esac
3191        done
3192 done
3193 ;;
3194   esac
3195
3196   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
3197   # uniformly replaced by the line number.  The first 'sed' inserts a
3198   # line-number line before each line; the second 'sed' does the real
3199   # work.  The second script uses 'N' to pair each line-number line
3200   # with the numbered line, and appends trailing '-' during
3201   # substitution so that $LINENO is not a special case at line end.
3202   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
3203   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
3204   sed '=' <$as_myself |
3205     sed '
3206       N
3207       s,$,-,
3208       : loop
3209       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
3210       t loop
3211       s,-$,,
3212       s,^['$as_cr_digits']*\n,,
3213     ' >$as_me.lineno &&
3214   chmod +x $as_me.lineno ||
3215     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
3216 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
3217    { (exit 1); exit 1; }; }
3218
3219   # Don't try to exec as it changes $[0], causing all sort of problems
3220   # (the dirname of $[0] is not the place where we might find the
3221   # original and so on.  Autoconf is especially sensible to this).
3222   . ./$as_me.lineno
3223   # Exit status is that of the last command.
3224   exit
3225 }
3226
3227
3228 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
3229   *c*,-n*) ECHO_N= ECHO_C='
3230 ' ECHO_T='      ' ;;
3231   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
3232   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
3233 esac
3234
3235 if expr a : '\(a\)' >/dev/null 2>&1; then
3236   as_expr=expr
3237 else
3238   as_expr=false
3239 fi
3240
3241 rm -f conf$$ conf$$.exe conf$$.file
3242 echo >conf$$.file
3243 if ln -s conf$$.file conf$$ 2>/dev/null; then
3244   # We could just check for DJGPP; but this test a) works b) is more generic
3245   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
3246   if test -f conf$$.exe; then
3247     # Don't use ln at all; we don't have any links
3248     as_ln_s='cp -p'
3249   else
3250     as_ln_s='ln -s'
3251   fi
3252 elif ln conf$$.file conf$$ 2>/dev/null; then
3253   as_ln_s=ln
3254 else
3255   as_ln_s='cp -p'
3256 fi
3257 rm -f conf$$ conf$$.exe conf$$.file
3258
3259 if mkdir -p . 2>/dev/null; then
3260   as_mkdir_p=:
3261 else
3262   test -d ./-p && rmdir ./-p
3263   as_mkdir_p=false
3264 fi
3265
3266 as_executable_p="test -f"
3267
3268 # Sed expression to map a string onto a valid CPP name.
3269 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3270
3271 # Sed expression to map a string onto a valid variable name.
3272 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3273
3274
3275 # IFS
3276 # We need space, tab and new line, in precisely that order.
3277 as_nl='
3278 '
3279 IFS="   $as_nl"
3280
3281 # CDPATH.
3282 $as_unset CDPATH
3283
3284 exec 6>&1
3285
3286 # Open the log real soon, to keep \$[0] and so on meaningful, and to
3287 # report actual input values of CONFIG_FILES etc. instead of their
3288 # values after options handling.  Logging --version etc. is OK.
3289 exec 5>>config.log
3290 {
3291   echo
3292   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3293 ## Running $as_me. ##
3294 _ASBOX
3295 } >&5
3296 cat >&5 <<_CSEOF
3297
3298 This file was extended by $as_me, which was
3299 generated by GNU Autoconf 2.59.  Invocation command line was
3300
3301   CONFIG_FILES    = $CONFIG_FILES
3302   CONFIG_HEADERS  = $CONFIG_HEADERS
3303   CONFIG_LINKS    = $CONFIG_LINKS
3304   CONFIG_COMMANDS = $CONFIG_COMMANDS
3305   $ $0 $@
3306
3307 _CSEOF
3308 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
3309 echo >&5
3310 _ACEOF
3311
3312 # Files that config.status was made for.
3313 if test -n "$ac_config_files"; then
3314   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
3315 fi
3316
3317 if test -n "$ac_config_headers"; then
3318   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
3319 fi
3320
3321 if test -n "$ac_config_links"; then
3322   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
3323 fi
3324
3325 if test -n "$ac_config_commands"; then
3326   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
3327 fi
3328
3329 cat >>$CONFIG_STATUS <<\_ACEOF
3330
3331 ac_cs_usage="\
3332 \`$as_me' instantiates files from templates according to the
3333 current configuration.
3334
3335 Usage: $0 [OPTIONS] [FILE]...
3336
3337   -h, --help       print this help, then exit
3338   -V, --version    print version number, then exit
3339   -q, --quiet      do not print progress messages
3340   -d, --debug      don't remove temporary files
3341       --recheck    update $as_me by reconfiguring in the same conditions
3342   --file=FILE[:TEMPLATE]
3343                    instantiate the configuration file FILE
3344   --header=FILE[:TEMPLATE]
3345                    instantiate the configuration header FILE
3346
3347 Configuration files:
3348 $config_files
3349
3350 Configuration headers:
3351 $config_headers
3352
3353 Report bugs to <bug-autoconf@gnu.org>."
3354 _ACEOF
3355
3356 cat >>$CONFIG_STATUS <<_ACEOF
3357 ac_cs_version="\\
3358 config.status
3359 configured by $0, generated by GNU Autoconf 2.59,
3360   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
3361
3362 Copyright (C) 2003 Free Software Foundation, Inc.
3363 This config.status script is free software; the Free Software Foundation
3364 gives unlimited permission to copy, distribute and modify it."
3365 srcdir=$srcdir
3366 _ACEOF
3367
3368 cat >>$CONFIG_STATUS <<\_ACEOF
3369 # If no file are specified by the user, then we need to provide default
3370 # value.  By we need to know if files were specified by the user.
3371 ac_need_defaults=:
3372 while test $# != 0
3373 do
3374   case $1 in
3375   --*=*)
3376     ac_option=`expr "x$1" : 'x\([^=]*\)='`
3377     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
3378     ac_shift=:
3379     ;;
3380   -*)
3381     ac_option=$1
3382     ac_optarg=$2
3383     ac_shift=shift
3384     ;;
3385   *) # This is not an option, so the user has probably given explicit
3386      # arguments.
3387      ac_option=$1
3388      ac_need_defaults=false;;
3389   esac
3390
3391   case $ac_option in
3392   # Handling of the options.
3393 _ACEOF
3394 cat >>$CONFIG_STATUS <<\_ACEOF
3395   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3396     ac_cs_recheck=: ;;
3397   --version | --vers* | -V )
3398     echo "$ac_cs_version"; exit 0 ;;
3399   --he | --h)
3400     # Conflict between --help and --header
3401     { { echo "$as_me:$LINENO: error: ambiguous option: $1
3402 Try \`$0 --help' for more information." >&5
3403 echo "$as_me: error: ambiguous option: $1
3404 Try \`$0 --help' for more information." >&2;}
3405    { (exit 1); exit 1; }; };;
3406   --help | --hel | -h )
3407     echo "$ac_cs_usage"; exit 0 ;;
3408   --debug | --d* | -d )
3409     debug=: ;;
3410   --file | --fil | --fi | --f )
3411     $ac_shift
3412     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
3413     ac_need_defaults=false;;
3414   --header | --heade | --head | --hea )
3415     $ac_shift
3416     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
3417     ac_need_defaults=false;;
3418   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3419   | -silent | --silent | --silen | --sile | --sil | --si | --s)
3420     ac_cs_silent=: ;;
3421
3422   # This is an error.
3423   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
3424 Try \`$0 --help' for more information." >&5
3425 echo "$as_me: error: unrecognized option: $1
3426 Try \`$0 --help' for more information." >&2;}
3427    { (exit 1); exit 1; }; } ;;
3428
3429   *) ac_config_targets="$ac_config_targets $1" ;;
3430
3431   esac
3432   shift
3433 done
3434
3435 ac_configure_extra_args=
3436
3437 if $ac_cs_silent; then
3438   exec 6>/dev/null
3439   ac_configure_extra_args="$ac_configure_extra_args --silent"
3440 fi
3441
3442 _ACEOF
3443 cat >>$CONFIG_STATUS <<_ACEOF
3444 if \$ac_cs_recheck; then
3445   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
3446   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
3447 fi
3448
3449 _ACEOF
3450
3451
3452
3453
3454
3455 cat >>$CONFIG_STATUS <<\_ACEOF
3456 for ac_config_target in $ac_config_targets
3457 do
3458   case "$ac_config_target" in
3459   # Handling of arguments.
3460   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
3461   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
3462   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
3463 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
3464    { (exit 1); exit 1; }; };;
3465   esac
3466 done
3467
3468 # If the user did not use the arguments to specify the items to instantiate,
3469 # then the envvar interface is used.  Set only those that are not.
3470 # We use the long form for the default assignment because of an extremely
3471 # bizarre bug on SunOS 4.1.3.
3472 if $ac_need_defaults; then
3473   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3474   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
3475 fi
3476
3477 # Have a temporary directory for convenience.  Make it in the build tree
3478 # simply because there is no reason to put it here, and in addition,
3479 # creating and moving files from /tmp can sometimes cause problems.
3480 # Create a temporary directory, and hook for its removal unless debugging.
3481 $debug ||
3482 {
3483   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3484   trap '{ (exit 1); exit 1; }' 1 2 13 15
3485 }
3486
3487 # Create a (secure) tmp directory for tmp files.
3488
3489 {
3490   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
3491   test -n "$tmp" && test -d "$tmp"
3492 }  ||
3493 {
3494   tmp=./confstat$$-$RANDOM
3495   (umask 077 && mkdir $tmp)
3496 } ||
3497 {
3498    echo "$me: cannot create a temporary directory in ." >&2
3499    { (exit 1); exit 1; }
3500 }
3501
3502 _ACEOF
3503
3504 cat >>$CONFIG_STATUS <<_ACEOF
3505
3506 #
3507 # CONFIG_FILES section.
3508 #
3509
3510 # No need to generate the scripts if there are no CONFIG_FILES.
3511 # This happens for instance when ./config.status config.h
3512 if test -n "\$CONFIG_FILES"; then
3513   # Protect against being on the right side of a sed subst in config.status.
3514   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
3515    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
3516 s,@SHELL@,$SHELL,;t t
3517 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
3518 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
3519 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
3520 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
3521 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
3522 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
3523 s,@exec_prefix@,$exec_prefix,;t t
3524 s,@prefix@,$prefix,;t t
3525 s,@program_transform_name@,$program_transform_name,;t t
3526 s,@bindir@,$bindir,;t t
3527 s,@sbindir@,$sbindir,;t t
3528 s,@libexecdir@,$libexecdir,;t t
3529 s,@datadir@,$datadir,;t t
3530 s,@sysconfdir@,$sysconfdir,;t t
3531 s,@sharedstatedir@,$sharedstatedir,;t t
3532 s,@localstatedir@,$localstatedir,;t t
3533 s,@libdir@,$libdir,;t t
3534 s,@includedir@,$includedir,;t t
3535 s,@oldincludedir@,$oldincludedir,;t t
3536 s,@infodir@,$infodir,;t t
3537 s,@mandir@,$mandir,;t t
3538 s,@build_alias@,$build_alias,;t t
3539 s,@host_alias@,$host_alias,;t t
3540 s,@target_alias@,$target_alias,;t t
3541 s,@DEFS@,$DEFS,;t t
3542 s,@ECHO_C@,$ECHO_C,;t t
3543 s,@ECHO_N@,$ECHO_N,;t t
3544 s,@ECHO_T@,$ECHO_T,;t t
3545 s,@LIBS@,$LIBS,;t t
3546 s,@CC@,$CC,;t t
3547 s,@CFLAGS@,$CFLAGS,;t t
3548 s,@LDFLAGS@,$LDFLAGS,;t t
3549 s,@CPPFLAGS@,$CPPFLAGS,;t t
3550 s,@ac_ct_CC@,$ac_ct_CC,;t t
3551 s,@EXEEXT@,$EXEEXT,;t t
3552 s,@OBJEXT@,$OBJEXT,;t t
3553 s,@CPP@,$CPP,;t t
3554 s,@PERL@,$PERL,;t t
3555 s,@perl_cflags@,$perl_cflags,;t t
3556 s,@perl_ldflags@,$perl_ldflags,;t t
3557 s,@targetname@,$targetname,;t t
3558 s,@LIBOBJS@,$LIBOBJS,;t t
3559 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
3560 CEOF
3561
3562 _ACEOF
3563
3564   cat >>$CONFIG_STATUS <<\_ACEOF
3565   # Split the substitutions into bite-sized pieces for seds with
3566   # small command number limits, like on Digital OSF/1 and HP-UX.
3567   ac_max_sed_lines=48
3568   ac_sed_frag=1 # Number of current file.
3569   ac_beg=1 # First line for current file.
3570   ac_end=$ac_max_sed_lines # Line after last line for current file.
3571   ac_more_lines=:
3572   ac_sed_cmds=
3573   while $ac_more_lines; do
3574     if test $ac_beg -gt 1; then
3575       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3576     else
3577       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3578     fi
3579     if test ! -s $tmp/subs.frag; then
3580       ac_more_lines=false
3581     else
3582       # The purpose of the label and of the branching condition is to
3583       # speed up the sed processing (if there are no `@' at all, there
3584       # is no need to browse any of the substitutions).
3585       # These are the two extra sed commands mentioned above.
3586       (echo ':t
3587   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
3588       if test -z "$ac_sed_cmds"; then
3589         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
3590       else
3591         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
3592       fi
3593       ac_sed_frag=`expr $ac_sed_frag + 1`
3594       ac_beg=$ac_end
3595       ac_end=`expr $ac_end + $ac_max_sed_lines`
3596     fi
3597   done
3598   if test -z "$ac_sed_cmds"; then
3599     ac_sed_cmds=cat
3600   fi
3601 fi # test -n "$CONFIG_FILES"
3602
3603 _ACEOF
3604 cat >>$CONFIG_STATUS <<\_ACEOF
3605 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
3606   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3607   case $ac_file in
3608   - | *:- | *:-:* ) # input from stdin
3609         cat >$tmp/stdin
3610         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3611         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3612   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3613         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3614   * )   ac_file_in=$ac_file.in ;;
3615   esac
3616
3617   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
3618   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
3619 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3620          X"$ac_file" : 'X\(//\)[^/]' \| \
3621          X"$ac_file" : 'X\(//\)$' \| \
3622          X"$ac_file" : 'X\(/\)' \| \
3623          .     : '\(.\)' 2>/dev/null ||
3624 echo X"$ac_file" |
3625     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3626           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3627           /^X\(\/\/\)$/{ s//\1/; q; }
3628           /^X\(\/\).*/{ s//\1/; q; }
3629           s/.*/./; q'`
3630   { if $as_mkdir_p; then
3631     mkdir -p "$ac_dir"
3632   else
3633     as_dir="$ac_dir"
3634     as_dirs=
3635     while test ! -d "$as_dir"; do
3636       as_dirs="$as_dir $as_dirs"
3637       as_dir=`(dirname "$as_dir") 2>/dev/null ||
3638 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3639          X"$as_dir" : 'X\(//\)[^/]' \| \
3640          X"$as_dir" : 'X\(//\)$' \| \
3641          X"$as_dir" : 'X\(/\)' \| \
3642          .     : '\(.\)' 2>/dev/null ||
3643 echo X"$as_dir" |
3644     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3645           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3646           /^X\(\/\/\)$/{ s//\1/; q; }
3647           /^X\(\/\).*/{ s//\1/; q; }
3648           s/.*/./; q'`
3649     done
3650     test ! -n "$as_dirs" || mkdir $as_dirs
3651   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
3652 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
3653    { (exit 1); exit 1; }; }; }
3654
3655   ac_builddir=.
3656
3657 if test "$ac_dir" != .; then
3658   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
3659   # A "../" for each directory in $ac_dir_suffix.
3660   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
3661 else
3662   ac_dir_suffix= ac_top_builddir=
3663 fi
3664
3665 case $srcdir in
3666   .)  # No --srcdir option.  We are building in place.
3667     ac_srcdir=.
3668     if test -z "$ac_top_builddir"; then
3669        ac_top_srcdir=.
3670     else
3671        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
3672     fi ;;
3673   [\\/]* | ?:[\\/]* )  # Absolute path.
3674     ac_srcdir=$srcdir$ac_dir_suffix;
3675     ac_top_srcdir=$srcdir ;;
3676   *) # Relative path.
3677     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
3678     ac_top_srcdir=$ac_top_builddir$srcdir ;;
3679 esac
3680
3681 # Do not use `cd foo && pwd` to compute absolute paths, because
3682 # the directories may not exist.
3683 case `pwd` in
3684 .) ac_abs_builddir="$ac_dir";;
3685 *)
3686   case "$ac_dir" in
3687   .) ac_abs_builddir=`pwd`;;
3688   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
3689   *) ac_abs_builddir=`pwd`/"$ac_dir";;
3690   esac;;
3691 esac
3692 case $ac_abs_builddir in
3693 .) ac_abs_top_builddir=${ac_top_builddir}.;;
3694 *)
3695   case ${ac_top_builddir}. in
3696   .) ac_abs_top_builddir=$ac_abs_builddir;;
3697   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
3698   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
3699   esac;;
3700 esac
3701 case $ac_abs_builddir in
3702 .) ac_abs_srcdir=$ac_srcdir;;
3703 *)
3704   case $ac_srcdir in
3705   .) ac_abs_srcdir=$ac_abs_builddir;;
3706   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
3707   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
3708   esac;;
3709 esac
3710 case $ac_abs_builddir in
3711 .) ac_abs_top_srcdir=$ac_top_srcdir;;
3712 *)
3713   case $ac_top_srcdir in
3714   .) ac_abs_top_srcdir=$ac_abs_builddir;;
3715   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
3716   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
3717   esac;;
3718 esac
3719
3720
3721
3722   if test x"$ac_file" != x-; then
3723     { echo "$as_me:$LINENO: creating $ac_file" >&5
3724 echo "$as_me: creating $ac_file" >&6;}
3725     rm -f "$ac_file"
3726   fi
3727   # Let's still pretend it is `configure' which instantiates (i.e., don't
3728   # use $as_me), people would be surprised to read:
3729   #    /* config.h.  Generated by config.status.  */
3730   if test x"$ac_file" = x-; then
3731     configure_input=
3732   else
3733     configure_input="$ac_file.  "
3734   fi
3735   configure_input=$configure_input"Generated from `echo $ac_file_in |
3736                                      sed 's,.*/,,'` by configure."
3737
3738   # First look for the input files in the build tree, otherwise in the
3739   # src tree.
3740   ac_file_inputs=`IFS=:
3741     for f in $ac_file_in; do
3742       case $f in
3743       -) echo $tmp/stdin ;;
3744       [\\/$]*)
3745          # Absolute (can't be DOS-style, as IFS=:)
3746          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
3747 echo "$as_me: error: cannot find input file: $f" >&2;}
3748    { (exit 1); exit 1; }; }
3749          echo "$f";;
3750       *) # Relative
3751          if test -f "$f"; then
3752            # Build tree
3753            echo "$f"
3754          elif test -f "$srcdir/$f"; then
3755            # Source tree
3756            echo "$srcdir/$f"
3757          else
3758            # /dev/null tree
3759            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
3760 echo "$as_me: error: cannot find input file: $f" >&2;}
3761    { (exit 1); exit 1; }; }
3762          fi;;
3763       esac
3764     done` || { (exit 1); exit 1; }
3765 _ACEOF
3766 cat >>$CONFIG_STATUS <<_ACEOF
3767   sed "$ac_vpsub
3768 $extrasub
3769 _ACEOF
3770 cat >>$CONFIG_STATUS <<\_ACEOF
3771 :t
3772 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
3773 s,@configure_input@,$configure_input,;t t
3774 s,@srcdir@,$ac_srcdir,;t t
3775 s,@abs_srcdir@,$ac_abs_srcdir,;t t
3776 s,@top_srcdir@,$ac_top_srcdir,;t t
3777 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
3778 s,@builddir@,$ac_builddir,;t t
3779 s,@abs_builddir@,$ac_abs_builddir,;t t
3780 s,@top_builddir@,$ac_top_builddir,;t t
3781 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
3782 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
3783   rm -f $tmp/stdin
3784   if test x"$ac_file" != x-; then
3785     mv $tmp/out $ac_file
3786   else
3787     cat $tmp/out
3788     rm -f $tmp/out
3789   fi
3790
3791 done
3792 _ACEOF
3793 cat >>$CONFIG_STATUS <<\_ACEOF
3794
3795 #
3796 # CONFIG_HEADER section.
3797 #
3798
3799 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
3800 # NAME is the cpp macro being defined and VALUE is the value it is being given.
3801 #
3802 # ac_d sets the value in "#define NAME VALUE" lines.
3803 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
3804 ac_dB='[         ].*$,\1#\2'
3805 ac_dC=' '
3806 ac_dD=',;t'
3807 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
3808 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
3809 ac_uB='$,\1#\2define\3'
3810 ac_uC=' '
3811 ac_uD=',;t'
3812
3813 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
3814   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3815   case $ac_file in
3816   - | *:- | *:-:* ) # input from stdin
3817         cat >$tmp/stdin
3818         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3819         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3820   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3821         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3822   * )   ac_file_in=$ac_file.in ;;
3823   esac
3824
3825   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
3826 echo "$as_me: creating $ac_file" >&6;}
3827
3828   # First look for the input files in the build tree, otherwise in the
3829   # src tree.
3830   ac_file_inputs=`IFS=:
3831     for f in $ac_file_in; do
3832       case $f in
3833       -) echo $tmp/stdin ;;
3834       [\\/$]*)
3835          # Absolute (can't be DOS-style, as IFS=:)
3836          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
3837 echo "$as_me: error: cannot find input file: $f" >&2;}
3838    { (exit 1); exit 1; }; }
3839          # Do quote $f, to prevent DOS paths from being IFS'd.
3840          echo "$f";;
3841       *) # Relative
3842          if test -f "$f"; then
3843            # Build tree
3844            echo "$f"
3845          elif test -f "$srcdir/$f"; then
3846            # Source tree
3847            echo "$srcdir/$f"
3848          else
3849            # /dev/null tree
3850            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
3851 echo "$as_me: error: cannot find input file: $f" >&2;}
3852    { (exit 1); exit 1; }; }
3853          fi;;
3854       esac
3855     done` || { (exit 1); exit 1; }
3856   # Remove the trailing spaces.
3857   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
3858
3859 _ACEOF
3860
3861 # Transform confdefs.h into two sed scripts, `conftest.defines' and
3862 # `conftest.undefs', that substitutes the proper values into
3863 # config.h.in to produce config.h.  The first handles `#define'
3864 # templates, and the second `#undef' templates.
3865 # And first: Protect against being on the right side of a sed subst in
3866 # config.status.  Protect against being in an unquoted here document
3867 # in config.status.
3868 rm -f conftest.defines conftest.undefs
3869 # Using a here document instead of a string reduces the quoting nightmare.
3870 # Putting comments in sed scripts is not portable.
3871 #
3872 # `end' is used to avoid that the second main sed command (meant for
3873 # 0-ary CPP macros) applies to n-ary macro definitions.
3874 # See the Autoconf documentation for `clear'.
3875 cat >confdef2sed.sed <<\_ACEOF
3876 s/[\\&,]/\\&/g
3877 s,[\\$`],\\&,g
3878 t clear
3879 : clear
3880 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
3881 t end
3882 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
3883 : end
3884 _ACEOF
3885 # If some macros were called several times there might be several times
3886 # the same #defines, which is useless.  Nevertheless, we may not want to
3887 # sort them, since we want the *last* AC-DEFINE to be honored.
3888 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
3889 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
3890 rm -f confdef2sed.sed
3891
3892 # This sed command replaces #undef with comments.  This is necessary, for
3893 # example, in the case of _POSIX_SOURCE, which is predefined and required
3894 # on some systems where configure will not decide to define it.
3895 cat >>conftest.undefs <<\_ACEOF
3896 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
3897 _ACEOF
3898
3899 # Break up conftest.defines because some shells have a limit on the size
3900 # of here documents, and old seds have small limits too (100 cmds).
3901 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
3902 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
3903 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
3904 echo '  :' >>$CONFIG_STATUS
3905 rm -f conftest.tail
3906 while grep . conftest.defines >/dev/null
3907 do
3908   # Write a limited-size here document to $tmp/defines.sed.
3909   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
3910   # Speed up: don't consider the non `#define' lines.
3911   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
3912   # Work around the forget-to-reset-the-flag bug.
3913   echo 't clr' >>$CONFIG_STATUS
3914   echo ': clr' >>$CONFIG_STATUS
3915   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
3916   echo 'CEOF
3917   sed -f $tmp/defines.sed $tmp/in >$tmp/out
3918   rm -f $tmp/in
3919   mv $tmp/out $tmp/in
3920 ' >>$CONFIG_STATUS
3921   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
3922   rm -f conftest.defines
3923   mv conftest.tail conftest.defines
3924 done
3925 rm -f conftest.defines
3926 echo '  fi # grep' >>$CONFIG_STATUS
3927 echo >>$CONFIG_STATUS
3928
3929 # Break up conftest.undefs because some shells have a limit on the size
3930 # of here documents, and old seds have small limits too (100 cmds).
3931 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
3932 rm -f conftest.tail
3933 while grep . conftest.undefs >/dev/null
3934 do
3935   # Write a limited-size here document to $tmp/undefs.sed.
3936   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
3937   # Speed up: don't consider the non `#undef'
3938   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
3939   # Work around the forget-to-reset-the-flag bug.
3940   echo 't clr' >>$CONFIG_STATUS
3941   echo ': clr' >>$CONFIG_STATUS
3942   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
3943   echo 'CEOF
3944   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
3945   rm -f $tmp/in
3946   mv $tmp/out $tmp/in
3947 ' >>$CONFIG_STATUS
3948   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
3949   rm -f conftest.undefs
3950   mv conftest.tail conftest.undefs
3951 done
3952 rm -f conftest.undefs
3953
3954 cat >>$CONFIG_STATUS <<\_ACEOF
3955   # Let's still pretend it is `configure' which instantiates (i.e., don't
3956   # use $as_me), people would be surprised to read:
3957   #    /* config.h.  Generated by config.status.  */
3958   if test x"$ac_file" = x-; then
3959     echo "/* Generated by configure.  */" >$tmp/config.h
3960   else
3961     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
3962   fi
3963   cat $tmp/in >>$tmp/config.h
3964   rm -f $tmp/in
3965   if test x"$ac_file" != x-; then
3966     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
3967       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
3968 echo "$as_me: $ac_file is unchanged" >&6;}
3969     else
3970       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
3971 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3972          X"$ac_file" : 'X\(//\)[^/]' \| \
3973          X"$ac_file" : 'X\(//\)$' \| \
3974          X"$ac_file" : 'X\(/\)' \| \
3975          .     : '\(.\)' 2>/dev/null ||
3976 echo X"$ac_file" |
3977     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3978           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3979           /^X\(\/\/\)$/{ s//\1/; q; }
3980           /^X\(\/\).*/{ s//\1/; q; }
3981           s/.*/./; q'`
3982       { if $as_mkdir_p; then
3983     mkdir -p "$ac_dir"
3984   else
3985     as_dir="$ac_dir"
3986     as_dirs=
3987     while test ! -d "$as_dir"; do
3988       as_dirs="$as_dir $as_dirs"
3989       as_dir=`(dirname "$as_dir") 2>/dev/null ||
3990 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3991          X"$as_dir" : 'X\(//\)[^/]' \| \
3992          X"$as_dir" : 'X\(//\)$' \| \
3993          X"$as_dir" : 'X\(/\)' \| \
3994          .     : '\(.\)' 2>/dev/null ||
3995 echo X"$as_dir" |
3996     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3997           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3998           /^X\(\/\/\)$/{ s//\1/; q; }
3999           /^X\(\/\).*/{ s//\1/; q; }
4000           s/.*/./; q'`
4001     done
4002     test ! -n "$as_dirs" || mkdir $as_dirs
4003   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4004 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4005    { (exit 1); exit 1; }; }; }
4006
4007       rm -f $ac_file
4008       mv $tmp/config.h $ac_file
4009     fi
4010   else
4011     cat $tmp/config.h
4012     rm -f $tmp/config.h
4013   fi
4014 done
4015 _ACEOF
4016
4017 cat >>$CONFIG_STATUS <<\_ACEOF
4018
4019 { (exit 0); exit 0; }
4020 _ACEOF
4021 chmod +x $CONFIG_STATUS
4022 ac_clean_files=$ac_clean_files_save
4023
4024
4025 # configure is writing to config.log, and then calls config.status.
4026 # config.status does its own redirection, appending to config.log.
4027 # Unfortunately, on DOS this fails, as config.log is still kept open
4028 # by configure, so config.status won't be able to write to it; its
4029 # output is simply discarded.  So we exec the FD to /dev/null,
4030 # effectively closing config.log, so it can be properly (re)opened and
4031 # appended to by config.status.  When coming back to configure, we
4032 # need to make the FD available again.
4033 if test "$no_create" != yes; then
4034   ac_cs_success=:
4035   ac_config_status_args=
4036   test "$silent" = yes &&
4037     ac_config_status_args="$ac_config_status_args --quiet"
4038   exec 5>/dev/null
4039   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4040   exec 5>>config.log
4041   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4042   # would make configure fail if this is the last instruction.
4043   $ac_cs_success || { (exit 1); exit 1; }
4044 fi
4045