2 # From configure.in Revision: 1.7 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59.
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 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
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
23 DUALCASE=1; export DUALCASE # for MKS sh
25 # Support unset when possible.
26 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
33 # Work around bugs in pre-3.0 UWIN ksh.
34 $as_unset ENV MAIL MAILPATH
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 \
45 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
46 eval $as_var=C; export $as_var
52 # Required to use basename.
53 if expr a : '\(a\)' >/dev/null 2>&1; then
59 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
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 ||
73 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
74 /^X\/\(\/\/\)$/{ s//\1/; q; }
75 /^X\/\(\/\).*/{ s//\1/; q; }
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
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
92 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
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
109 *[\\/]* ) as_myself=$0 ;;
110 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
114 test -z "$as_dir" && as_dir=.
115 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
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
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; }; }
129 case $CONFIG_SHELL in
131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
132 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135 test -z "$as_dir" && as_dir=.
136 for as_base in sh bash ksh sh5; do
139 if ("$as_dir/$as_base" -c '
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
149 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
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 |
170 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173 s,^['$as_cr_digits']*\n,,
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; }; }
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).
183 # Exit status is that of the last command.
188 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
189 *c*,-n*) ECHO_N= ECHO_C='
191 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
192 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
195 if expr a : '\(a\)' >/dev/null 2>&1; then
201 rm -f conf$$ conf$$.exe 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
212 elif ln conf$$.file conf$$ 2>/dev/null; then
217 rm -f conf$$ conf$$.exe conf$$.file
219 if mkdir -p . 2>/dev/null; then
222 test -d ./-p && rmdir ./-p
226 as_executable_p="test -f"
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'"
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'"
236 # We need space, tab and new line, in precisely that order.
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`
255 ac_default_prefix=/usr/local
256 ac_config_libobj_dir=.
261 SHELL=${CONFIG_SHELL-/bin/sh}
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}
268 # Identity of this package.
275 ac_unique_file="rlm_python.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 PYTHONBIN python_ldflags python_cflags targetname LIBOBJS LTLIBOBJS'
279 # Initialize some variables set by options.
281 ac_init_version=false
282 # The variables have the same names as the options, with
283 # dashes changed to underlines.
291 program_transform_name=s,x,x,
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'
320 # If the previous option needs an argument, assign it.
321 if test -n "$ac_prev"; then
322 eval "$ac_prev=\$ac_option"
327 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
329 # Accept the important Cygnus configure options, so we can diagnose typos.
333 -bindir | --bindir | --bindi | --bind | --bin | --bi)
335 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
338 -build | --build | --buil | --bui | --bu)
339 ac_prev=build_alias ;;
340 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
341 build_alias=$ac_optarg ;;
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 ;;
351 cache_file=config.cache ;;
353 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
355 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
357 datadir=$ac_optarg ;;
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" ;;
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'`
376 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
379 eval "enable_$ac_feature='$ac_optarg'" ;;
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 ;;
390 -gas | --gas | --ga | --g)
391 # Obsolete; use --with-gas.
394 -help | --help | --hel | --he | -h)
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 ;;
401 -host | --host | --hos | --ho)
402 ac_prev=host_alias ;;
403 -host=* | --host=* | --hos=* | --ho=*)
404 host_alias=$ac_optarg ;;
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 ;;
413 -infodir | --infodir | --infodi | --infod | --info | --inf)
415 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
416 infodir=$ac_optarg ;;
418 -libdir | --libdir | --libdi | --libd)
420 -libdir=* | --libdir=* | --libdi=* | --libd=*)
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 ;;
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 ;;
439 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
441 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
445 # Obsolete; use --without-fp.
448 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
449 | --no-cr | --no-c | -n)
452 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
453 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
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 ;;
465 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
467 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
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 ;;
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 ;;
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 ;;
501 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
502 | -silent | --silent | --silen | --sile | --sil)
505 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
507 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
509 sbindir=$ac_optarg ;;
511 -sharedstatedir | --sharedstatedir | --sharedstatedi \
512 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
513 | --sharedst | --shareds | --shared | --share | --shar \
515 ac_prev=sharedstatedir ;;
516 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
517 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
518 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
520 sharedstatedir=$ac_optarg ;;
522 -site | --site | --sit)
524 -site=* | --site=* | --sit=*)
527 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
529 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
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 ;;
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 ;;
544 -v | -verbose | --verbose | --verbos | --verbo | --verb)
547 -version | --version | --versio | --versi | --vers | -V)
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'`
558 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
561 eval "with_$ac_package='$ac_optarg'" ;;
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" ;;
573 # Obsolete; use --with-x.
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 ;;
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 ;;
590 -*) { echo "$as_me: error: unrecognized option: $ac_option
591 Try \`$0 --help' for more information." >&2
592 { (exit 1); exit 1; }; }
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'"
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}
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; }; }
622 # Be sure to have absolute paths.
623 for ac_var in exec_prefix prefix
625 eval ac_val=$`echo $ac_var`
627 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
628 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
629 { (exit 1); exit 1; }; };;
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
637 eval ac_val=$`echo $ac_var`
639 [\\/$]* | ?:[\\/]* ) ;;
640 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
641 { (exit 1); exit 1; }; };;
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.
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
664 test -n "$host_alias" && ac_tool_prefix=$host_alias-
666 test "$silent" = yes && exec 6>/dev/null
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 ||
680 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
681 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
682 /^X\(\/\/\)$/{ s//\1/; q; }
683 /^X\(\/\).*/{ s//\1/; q; }
686 if test ! -r $srcdir/$ac_unique_file; then
690 ac_srcdir_defaulted=no
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; }; }
697 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
698 { (exit 1); exit 1; }; }
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}
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
739 # Report the --help message.
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.
745 \`configure' configures this package to adapt to many kinds of systems.
747 Usage: $0 [OPTION]... [VAR=VALUE]...
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.
752 Defaults for the options are specified in brackets.
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 \`..']
768 Installation directories:
769 --prefix=PREFIX install architecture-independent files in PREFIX
771 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
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'.
779 For better control, use the options below.
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]
800 if test -n "$ac_init_help"; then
805 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
806 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
807 --with-rlm-python-lib-dir=DIR Directory for Python library files
808 --with-rlm-python-include-dir=DIR Directory for Python include files
810 Some influential environment variables:
811 CC C compiler command
812 CFLAGS C compiler flags
813 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
814 nonstandard directory <lib dir>
815 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
816 headers in a nonstandard directory <include dir>
819 Use these variables to override the choices made by `configure' or to help
820 it to find libraries and programs with nonstandard names/locations.
825 if test "$ac_init_help" = "recursive"; then
826 # If there are subdirs, report their specific --help.
828 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
829 test -d $ac_dir || continue
832 if test "$ac_dir" != .; then
833 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
834 # A "../" for each directory in $ac_dir_suffix.
835 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
837 ac_dir_suffix= ac_top_builddir=
841 .) # No --srcdir option. We are building in place.
843 if test -z "$ac_top_builddir"; then
846 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
848 [\\/]* | ?:[\\/]* ) # Absolute path.
849 ac_srcdir=$srcdir$ac_dir_suffix;
850 ac_top_srcdir=$srcdir ;;
852 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
853 ac_top_srcdir=$ac_top_builddir$srcdir ;;
856 # Do not use `cd foo && pwd` to compute absolute paths, because
857 # the directories may not exist.
859 .) ac_abs_builddir="$ac_dir";;
862 .) ac_abs_builddir=`pwd`;;
863 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
864 *) ac_abs_builddir=`pwd`/"$ac_dir";;
867 case $ac_abs_builddir in
868 .) ac_abs_top_builddir=${ac_top_builddir}.;;
870 case ${ac_top_builddir}. in
871 .) ac_abs_top_builddir=$ac_abs_builddir;;
872 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
873 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
876 case $ac_abs_builddir in
877 .) ac_abs_srcdir=$ac_srcdir;;
880 .) ac_abs_srcdir=$ac_abs_builddir;;
881 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
882 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
885 case $ac_abs_builddir in
886 .) ac_abs_top_srcdir=$ac_top_srcdir;;
888 case $ac_top_srcdir in
889 .) ac_abs_top_srcdir=$ac_abs_builddir;;
890 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
891 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
896 # Check for guested configure; otherwise get Cygnus style configure.
897 if test -f $ac_srcdir/configure.gnu; then
899 $SHELL $ac_srcdir/configure.gnu --help=recursive
900 elif test -f $ac_srcdir/configure; then
902 $SHELL $ac_srcdir/configure --help=recursive
903 elif test -f $ac_srcdir/configure.ac ||
904 test -f $ac_srcdir/configure.in; then
908 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
914 test -n "$ac_init_help" && exit 0
915 if $ac_init_version; then
918 Copyright (C) 2003 Free Software Foundation, Inc.
919 This configure script is free software; the Free Software Foundation
920 gives unlimited permission to copy, distribute and modify it.
926 This file contains any messages produced by compilers while
927 running configure, to aid debugging if configure makes a mistake.
929 It was created by $as_me, which was
930 generated by GNU Autoconf 2.59. Invocation command line was
941 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
942 uname -m = `(uname -m) 2>/dev/null || echo unknown`
943 uname -r = `(uname -r) 2>/dev/null || echo unknown`
944 uname -s = `(uname -s) 2>/dev/null || echo unknown`
945 uname -v = `(uname -v) 2>/dev/null || echo unknown`
947 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
948 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
950 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
951 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
952 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
953 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
954 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
955 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
956 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
964 test -z "$as_dir" && as_dir=.
980 # Keep a trace of the command line.
981 # Strip out --no-create and --no-recursion so they do not pile up.
982 # Strip out --silent because we don't want to record it for future runs.
983 # Also quote any args containing shell meta-characters.
984 # Make two passes to allow for proper duplicate-argument suppression.
989 ac_must_keep_next=false
995 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
996 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
997 | -silent | --silent | --silen | --sile | --sil)
999 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1000 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1003 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1005 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1006 if test $ac_must_keep_next = true; then
1007 ac_must_keep_next=false # Got value, back to normal.
1010 *=* | --config-cache | -C | -disable-* | --disable-* \
1011 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1012 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1013 | -with-* | --with-* | -without-* | --without-* | --x)
1014 case "$ac_configure_args0 " in
1015 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1018 -* ) ac_must_keep_next=true ;;
1021 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1022 # Get rid of the leading space.
1028 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1029 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1031 # When interrupted or exit'd, cleanup temporary files, and complete
1032 # config.log. We remove comments because anyway the quotes in there
1033 # would cause problems or look ugly.
1034 # WARNING: Be sure not to use single quotes in there, as some shells,
1035 # such as our DU 5.0 friend, will then `close' the trap.
1036 trap 'exit_status=$?
1037 # Save into config.log some information that might help in debugging.
1042 ## ---------------- ##
1043 ## Cache variables. ##
1044 ## ---------------- ##
1047 # The following way of writing the cache mishandles newlines in values,
1050 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1053 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1054 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1058 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1065 ## ----------------- ##
1066 ## Output variables. ##
1067 ## ----------------- ##
1070 for ac_var in $ac_subst_vars
1072 eval ac_val=$`echo $ac_var`
1073 echo "$ac_var='"'"'$ac_val'"'"'"
1077 if test -n "$ac_subst_files"; then
1084 for ac_var in $ac_subst_files
1086 eval ac_val=$`echo $ac_var`
1087 echo "$ac_var='"'"'$ac_val'"'"'"
1092 if test -s confdefs.h; then
1099 sed "/^$/d" confdefs.h | sort
1102 test "$ac_signal" != 0 &&
1103 echo "$as_me: caught signal $ac_signal"
1104 echo "$as_me: exit $exit_status"
1106 rm -f core *.core &&
1107 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1110 for ac_signal in 1 2 13 15; do
1111 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1115 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1116 rm -rf conftest* confdefs.h
1117 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1120 # Predefined preprocessor variables.
1122 cat >>confdefs.h <<_ACEOF
1123 #define PACKAGE_NAME "$PACKAGE_NAME"
1127 cat >>confdefs.h <<_ACEOF
1128 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1132 cat >>confdefs.h <<_ACEOF
1133 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1137 cat >>confdefs.h <<_ACEOF
1138 #define PACKAGE_STRING "$PACKAGE_STRING"
1142 cat >>confdefs.h <<_ACEOF
1143 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1147 # Let the site file select an alternate cache file if it wants to.
1148 # Prefer explicitly selected file to automatically selected ones.
1149 if test -z "$CONFIG_SITE"; then
1150 if test "x$prefix" != xNONE; then
1151 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1153 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1156 for ac_site_file in $CONFIG_SITE; do
1157 if test -r "$ac_site_file"; then
1158 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1159 echo "$as_me: loading site script $ac_site_file" >&6;}
1160 sed 's/^/| /' "$ac_site_file" >&5
1165 if test -r "$cache_file"; then
1166 # Some versions of bash will fail to source /dev/null (special
1167 # files actually), so we avoid doing that.
1168 if test -f "$cache_file"; then
1169 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1170 echo "$as_me: loading cache $cache_file" >&6;}
1172 [\\/]* | ?:[\\/]* ) . $cache_file;;
1173 *) . ./$cache_file;;
1177 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1178 echo "$as_me: creating cache $cache_file" >&6;}
1182 # Check that the precious variables saved in the cache have kept the same
1184 ac_cache_corrupted=false
1185 for ac_var in `(set) 2>&1 |
1186 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1187 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1188 eval ac_new_set=\$ac_env_${ac_var}_set
1189 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1190 eval ac_new_val="\$ac_env_${ac_var}_value"
1191 case $ac_old_set,$ac_new_set in
1193 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1194 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1195 ac_cache_corrupted=: ;;
1197 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1198 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1199 ac_cache_corrupted=: ;;
1202 if test "x$ac_old_val" != "x$ac_new_val"; then
1203 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1204 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1205 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1206 echo "$as_me: former value: $ac_old_val" >&2;}
1207 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1208 echo "$as_me: current value: $ac_new_val" >&2;}
1209 ac_cache_corrupted=:
1212 # Pass precious variables to config.status.
1213 if test "$ac_new_set" = set; then
1215 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1216 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1217 *) ac_arg=$ac_var=$ac_new_val ;;
1219 case " $ac_configure_args " in
1220 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1221 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1225 if $ac_cache_corrupted; then
1226 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1227 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1228 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1229 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1230 { (exit 1); exit 1; }; }
1234 ac_cpp='$CPP $CPPFLAGS'
1235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1260 if test x$with_rlm_python != xno; then
1263 ac_cpp='$CPP $CPPFLAGS'
1264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1266 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1267 if test -n "$ac_tool_prefix"; then
1268 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1269 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1270 echo "$as_me:$LINENO: checking for $ac_word" >&5
1271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1272 if test "${ac_cv_prog_CC+set}" = set; then
1273 echo $ECHO_N "(cached) $ECHO_C" >&6
1275 if test -n "$CC"; then
1276 ac_cv_prog_CC="$CC" # Let the user override the test.
1278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1282 test -z "$as_dir" && as_dir=.
1283 for ac_exec_ext in '' $ac_executable_extensions; do
1284 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1285 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1295 if test -n "$CC"; then
1296 echo "$as_me:$LINENO: result: $CC" >&5
1297 echo "${ECHO_T}$CC" >&6
1299 echo "$as_me:$LINENO: result: no" >&5
1300 echo "${ECHO_T}no" >&6
1304 if test -z "$ac_cv_prog_CC"; then
1306 # Extract the first word of "gcc", so it can be a program name with args.
1307 set dummy gcc; ac_word=$2
1308 echo "$as_me:$LINENO: checking for $ac_word" >&5
1309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1310 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1311 echo $ECHO_N "(cached) $ECHO_C" >&6
1313 if test -n "$ac_ct_CC"; then
1314 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1320 test -z "$as_dir" && as_dir=.
1321 for ac_exec_ext in '' $ac_executable_extensions; do
1322 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1323 ac_cv_prog_ac_ct_CC="gcc"
1324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1332 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1333 if test -n "$ac_ct_CC"; then
1334 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1335 echo "${ECHO_T}$ac_ct_CC" >&6
1337 echo "$as_me:$LINENO: result: no" >&5
1338 echo "${ECHO_T}no" >&6
1346 if test -z "$CC"; then
1347 if test -n "$ac_tool_prefix"; then
1348 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1349 set dummy ${ac_tool_prefix}cc; ac_word=$2
1350 echo "$as_me:$LINENO: checking for $ac_word" >&5
1351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1352 if test "${ac_cv_prog_CC+set}" = set; then
1353 echo $ECHO_N "(cached) $ECHO_C" >&6
1355 if test -n "$CC"; then
1356 ac_cv_prog_CC="$CC" # Let the user override the test.
1358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1362 test -z "$as_dir" && as_dir=.
1363 for ac_exec_ext in '' $ac_executable_extensions; do
1364 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1365 ac_cv_prog_CC="${ac_tool_prefix}cc"
1366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1375 if test -n "$CC"; then
1376 echo "$as_me:$LINENO: result: $CC" >&5
1377 echo "${ECHO_T}$CC" >&6
1379 echo "$as_me:$LINENO: result: no" >&5
1380 echo "${ECHO_T}no" >&6
1384 if test -z "$ac_cv_prog_CC"; then
1386 # Extract the first word of "cc", so it can be a program name with args.
1387 set dummy cc; ac_word=$2
1388 echo "$as_me:$LINENO: checking for $ac_word" >&5
1389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1390 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1391 echo $ECHO_N "(cached) $ECHO_C" >&6
1393 if test -n "$ac_ct_CC"; then
1394 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1400 test -z "$as_dir" && as_dir=.
1401 for ac_exec_ext in '' $ac_executable_extensions; do
1402 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1403 ac_cv_prog_ac_ct_CC="cc"
1404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1412 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1413 if test -n "$ac_ct_CC"; then
1414 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1415 echo "${ECHO_T}$ac_ct_CC" >&6
1417 echo "$as_me:$LINENO: result: no" >&5
1418 echo "${ECHO_T}no" >&6
1427 if test -z "$CC"; then
1428 # Extract the first word of "cc", so it can be a program name with args.
1429 set dummy cc; ac_word=$2
1430 echo "$as_me:$LINENO: checking for $ac_word" >&5
1431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1432 if test "${ac_cv_prog_CC+set}" = set; then
1433 echo $ECHO_N "(cached) $ECHO_C" >&6
1435 if test -n "$CC"; then
1436 ac_cv_prog_CC="$CC" # Let the user override the test.
1439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1443 test -z "$as_dir" && as_dir=.
1444 for ac_exec_ext in '' $ac_executable_extensions; do
1445 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1446 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1447 ac_prog_rejected=yes
1451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1457 if test $ac_prog_rejected = yes; then
1458 # We found a bogon in the path, so make sure we never use it.
1459 set dummy $ac_cv_prog_CC
1461 if test $# != 0; then
1462 # We chose a different compiler from the bogus one.
1463 # However, it has the same basename, so the bogon will be chosen
1464 # first if we set CC to just the basename; use the full file name.
1466 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1472 if test -n "$CC"; then
1473 echo "$as_me:$LINENO: result: $CC" >&5
1474 echo "${ECHO_T}$CC" >&6
1476 echo "$as_me:$LINENO: result: no" >&5
1477 echo "${ECHO_T}no" >&6
1481 if test -z "$CC"; then
1482 if test -n "$ac_tool_prefix"; then
1485 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1486 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1487 echo "$as_me:$LINENO: checking for $ac_word" >&5
1488 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1489 if test "${ac_cv_prog_CC+set}" = set; then
1490 echo $ECHO_N "(cached) $ECHO_C" >&6
1492 if test -n "$CC"; then
1493 ac_cv_prog_CC="$CC" # Let the user override the test.
1495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1499 test -z "$as_dir" && as_dir=.
1500 for ac_exec_ext in '' $ac_executable_extensions; do
1501 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1502 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1503 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1512 if test -n "$CC"; then
1513 echo "$as_me:$LINENO: result: $CC" >&5
1514 echo "${ECHO_T}$CC" >&6
1516 echo "$as_me:$LINENO: result: no" >&5
1517 echo "${ECHO_T}no" >&6
1520 test -n "$CC" && break
1523 if test -z "$CC"; then
1527 # Extract the first word of "$ac_prog", so it can be a program name with args.
1528 set dummy $ac_prog; ac_word=$2
1529 echo "$as_me:$LINENO: checking for $ac_word" >&5
1530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1531 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1532 echo $ECHO_N "(cached) $ECHO_C" >&6
1534 if test -n "$ac_ct_CC"; then
1535 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1541 test -z "$as_dir" && as_dir=.
1542 for ac_exec_ext in '' $ac_executable_extensions; do
1543 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1544 ac_cv_prog_ac_ct_CC="$ac_prog"
1545 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1553 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1554 if test -n "$ac_ct_CC"; then
1555 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1556 echo "${ECHO_T}$ac_ct_CC" >&6
1558 echo "$as_me:$LINENO: result: no" >&5
1559 echo "${ECHO_T}no" >&6
1562 test -n "$ac_ct_CC" && break
1571 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1572 See \`config.log' for more details." >&5
1573 echo "$as_me: error: no acceptable C compiler found in \$PATH
1574 See \`config.log' for more details." >&2;}
1575 { (exit 1); exit 1; }; }
1577 # Provide some information about the compiler.
1578 echo "$as_me:$LINENO:" \
1579 "checking for C compiler version" >&5
1580 ac_compiler=`set X $ac_compile; echo $2`
1581 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1582 (eval $ac_compiler --version </dev/null >&5) 2>&5
1584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1585 (exit $ac_status); }
1586 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1587 (eval $ac_compiler -v </dev/null >&5) 2>&5
1589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1590 (exit $ac_status); }
1591 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1592 (eval $ac_compiler -V </dev/null >&5) 2>&5
1594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1595 (exit $ac_status); }
1597 cat >conftest.$ac_ext <<_ACEOF
1600 cat confdefs.h >>conftest.$ac_ext
1601 cat >>conftest.$ac_ext <<_ACEOF
1602 /* end confdefs.h. */
1612 ac_clean_files_save=$ac_clean_files
1613 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1614 # Try to create an executable without -o first, disregard a.out.
1615 # It will help us diagnose broken compilers, and finding out an intuition
1617 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1618 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1619 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1620 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1621 (eval $ac_link_default) 2>&5
1623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1624 (exit $ac_status); }; then
1625 # Find the output, starting from the most likely. This scheme is
1626 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1629 # Be careful to initialize this variable, since it used to be cached.
1630 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1632 # b.out is created by i960 compilers.
1633 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1635 test -f "$ac_file" || continue
1637 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1640 # This is the source file.
1643 # We found the default executable, but exeext='' is most
1647 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1648 # FIXME: I believe we export ac_cv_exeext for Libtool,
1649 # but it would be cool to find out if it's true. Does anybody
1650 # maintain Libtool? --akim.
1658 echo "$as_me: failed program was:" >&5
1659 sed 's/^/| /' conftest.$ac_ext >&5
1661 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1662 See \`config.log' for more details." >&5
1663 echo "$as_me: error: C compiler cannot create executables
1664 See \`config.log' for more details." >&2;}
1665 { (exit 77); exit 77; }; }
1668 ac_exeext=$ac_cv_exeext
1669 echo "$as_me:$LINENO: result: $ac_file" >&5
1670 echo "${ECHO_T}$ac_file" >&6
1672 # Check the compiler produces executables we can run. If not, either
1673 # the compiler is broken, or we cross compile.
1674 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1675 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1676 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1677 # If not cross compiling, check that we can run a simple program.
1678 if test "$cross_compiling" != yes; then
1679 if { ac_try='./$ac_file'
1680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1684 (exit $ac_status); }; }; then
1687 if test "$cross_compiling" = maybe; then
1690 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1691 If you meant to cross compile, use \`--host'.
1692 See \`config.log' for more details." >&5
1693 echo "$as_me: error: cannot run C compiled programs.
1694 If you meant to cross compile, use \`--host'.
1695 See \`config.log' for more details." >&2;}
1696 { (exit 1); exit 1; }; }
1700 echo "$as_me:$LINENO: result: yes" >&5
1701 echo "${ECHO_T}yes" >&6
1703 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1704 ac_clean_files=$ac_clean_files_save
1705 # Check the compiler produces executables we can run. If not, either
1706 # the compiler is broken, or we cross compile.
1707 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1708 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1709 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1710 echo "${ECHO_T}$cross_compiling" >&6
1712 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1713 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1715 (eval $ac_link) 2>&5
1717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1718 (exit $ac_status); }; then
1719 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1720 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1721 # work properly (i.e., refer to `conftest.exe'), while it won't with
1723 for ac_file in conftest.exe conftest conftest.*; do
1724 test -f "$ac_file" || continue
1726 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1727 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1734 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1735 See \`config.log' for more details." >&5
1736 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1737 See \`config.log' for more details." >&2;}
1738 { (exit 1); exit 1; }; }
1741 rm -f conftest$ac_cv_exeext
1742 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1743 echo "${ECHO_T}$ac_cv_exeext" >&6
1745 rm -f conftest.$ac_ext
1746 EXEEXT=$ac_cv_exeext
1748 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1749 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1750 if test "${ac_cv_objext+set}" = set; then
1751 echo $ECHO_N "(cached) $ECHO_C" >&6
1753 cat >conftest.$ac_ext <<_ACEOF
1756 cat confdefs.h >>conftest.$ac_ext
1757 cat >>conftest.$ac_ext <<_ACEOF
1758 /* end confdefs.h. */
1768 rm -f conftest.o conftest.obj
1769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1770 (eval $ac_compile) 2>&5
1772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1773 (exit $ac_status); }; then
1774 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1776 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1777 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1782 echo "$as_me: failed program was:" >&5
1783 sed 's/^/| /' conftest.$ac_ext >&5
1785 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1786 See \`config.log' for more details." >&5
1787 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1788 See \`config.log' for more details." >&2;}
1789 { (exit 1); exit 1; }; }
1792 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1794 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1795 echo "${ECHO_T}$ac_cv_objext" >&6
1796 OBJEXT=$ac_cv_objext
1798 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1799 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1800 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1801 echo $ECHO_N "(cached) $ECHO_C" >&6
1803 cat >conftest.$ac_ext <<_ACEOF
1806 cat confdefs.h >>conftest.$ac_ext
1807 cat >>conftest.$ac_ext <<_ACEOF
1808 /* end confdefs.h. */
1821 rm -f conftest.$ac_objext
1822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1823 (eval $ac_compile) 2>conftest.er1
1825 grep -v '^ *+' conftest.er1 >conftest.err
1827 cat conftest.err >&5
1828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1829 (exit $ac_status); } &&
1830 { ac_try='test -z "$ac_c_werror_flag"
1831 || test ! -s conftest.err'
1832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1836 (exit $ac_status); }; } &&
1837 { ac_try='test -s conftest.$ac_objext'
1838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1842 (exit $ac_status); }; }; then
1845 echo "$as_me: failed program was:" >&5
1846 sed 's/^/| /' conftest.$ac_ext >&5
1850 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1851 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1854 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1855 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1856 GCC=`test $ac_compiler_gnu = yes && echo yes`
1857 ac_test_CFLAGS=${CFLAGS+set}
1858 ac_save_CFLAGS=$CFLAGS
1860 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1861 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1862 if test "${ac_cv_prog_cc_g+set}" = set; then
1863 echo $ECHO_N "(cached) $ECHO_C" >&6
1865 cat >conftest.$ac_ext <<_ACEOF
1868 cat confdefs.h >>conftest.$ac_ext
1869 cat >>conftest.$ac_ext <<_ACEOF
1870 /* end confdefs.h. */
1880 rm -f conftest.$ac_objext
1881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1882 (eval $ac_compile) 2>conftest.er1
1884 grep -v '^ *+' conftest.er1 >conftest.err
1886 cat conftest.err >&5
1887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1888 (exit $ac_status); } &&
1889 { ac_try='test -z "$ac_c_werror_flag"
1890 || test ! -s conftest.err'
1891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1895 (exit $ac_status); }; } &&
1896 { ac_try='test -s conftest.$ac_objext'
1897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1901 (exit $ac_status); }; }; then
1904 echo "$as_me: failed program was:" >&5
1905 sed 's/^/| /' conftest.$ac_ext >&5
1909 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1911 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1912 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1913 if test "$ac_test_CFLAGS" = set; then
1914 CFLAGS=$ac_save_CFLAGS
1915 elif test $ac_cv_prog_cc_g = yes; then
1916 if test "$GCC" = yes; then
1922 if test "$GCC" = yes; then
1928 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1929 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1930 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1931 echo $ECHO_N "(cached) $ECHO_C" >&6
1933 ac_cv_prog_cc_stdc=no
1935 cat >conftest.$ac_ext <<_ACEOF
1938 cat confdefs.h >>conftest.$ac_ext
1939 cat >>conftest.$ac_ext <<_ACEOF
1940 /* end confdefs.h. */
1943 #include <sys/types.h>
1944 #include <sys/stat.h>
1945 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1946 struct buf { int x; };
1947 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1948 static char *e (p, i)
1954 static char *f (char * (*g) (char **, int), char **p, ...)
1959 s = g (p, va_arg (v,int));
1964 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
1965 function prototypes and stuff, but not '\xHH' hex character constants.
1966 These don't provoke an error unfortunately, instead are silently treated
1967 as 'x'. The following induces an error, until -std1 is added to get
1968 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
1969 array size at least. It's necessary to write '\x00'==0 to get something
1970 that's true only with -std1. */
1971 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
1973 int test (int i, double x);
1974 struct s1 {int (*f) (int a);};
1975 struct s2 {int (*f) (double a);};
1976 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1982 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1987 # Don't try gcc -ansi; that turns off useful extensions and
1988 # breaks some systems' header files.
1989 # AIX -qlanglvl=ansi
1990 # Ultrix and OSF/1 -std1
1991 # HP-UX 10.20 and later -Ae
1992 # HP-UX older versions -Aa -D_HPUX_SOURCE
1993 # SVR4 -Xc -D__EXTENSIONS__
1994 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1996 CC="$ac_save_CC $ac_arg"
1997 rm -f conftest.$ac_objext
1998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1999 (eval $ac_compile) 2>conftest.er1
2001 grep -v '^ *+' conftest.er1 >conftest.err
2003 cat conftest.err >&5
2004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2005 (exit $ac_status); } &&
2006 { ac_try='test -z "$ac_c_werror_flag"
2007 || test ! -s conftest.err'
2008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2012 (exit $ac_status); }; } &&
2013 { ac_try='test -s conftest.$ac_objext'
2014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2018 (exit $ac_status); }; }; then
2019 ac_cv_prog_cc_stdc=$ac_arg
2022 echo "$as_me: failed program was:" >&5
2023 sed 's/^/| /' conftest.$ac_ext >&5
2026 rm -f conftest.err conftest.$ac_objext
2028 rm -f conftest.$ac_ext conftest.$ac_objext
2033 case "x$ac_cv_prog_cc_stdc" in
2035 echo "$as_me:$LINENO: result: none needed" >&5
2036 echo "${ECHO_T}none needed" >&6 ;;
2038 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2039 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2040 CC="$CC $ac_cv_prog_cc_stdc" ;;
2043 # Some people use a C++ compiler to compile C. Since we use `exit',
2044 # in C++ we need to declare it. In case someone uses the same compiler
2045 # for both compiling C and C++ we need to have the C++ compiler decide
2046 # the declaration of exit, since it's the most demanding environment.
2047 cat >conftest.$ac_ext <<_ACEOF
2052 rm -f conftest.$ac_objext
2053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2054 (eval $ac_compile) 2>conftest.er1
2056 grep -v '^ *+' conftest.er1 >conftest.err
2058 cat conftest.err >&5
2059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2060 (exit $ac_status); } &&
2061 { ac_try='test -z "$ac_c_werror_flag"
2062 || test ! -s conftest.err'
2063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2067 (exit $ac_status); }; } &&
2068 { ac_try='test -s conftest.$ac_objext'
2069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2073 (exit $ac_status); }; }; then
2074 for ac_declaration in \
2076 'extern "C" void std::exit (int) throw (); using std::exit;' \
2077 'extern "C" void std::exit (int); using std::exit;' \
2078 'extern "C" void exit (int) throw ();' \
2079 'extern "C" void exit (int);' \
2082 cat >conftest.$ac_ext <<_ACEOF
2085 cat confdefs.h >>conftest.$ac_ext
2086 cat >>conftest.$ac_ext <<_ACEOF
2087 /* end confdefs.h. */
2098 rm -f conftest.$ac_objext
2099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2100 (eval $ac_compile) 2>conftest.er1
2102 grep -v '^ *+' conftest.er1 >conftest.err
2104 cat conftest.err >&5
2105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2106 (exit $ac_status); } &&
2107 { ac_try='test -z "$ac_c_werror_flag"
2108 || test ! -s conftest.err'
2109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2113 (exit $ac_status); }; } &&
2114 { ac_try='test -s conftest.$ac_objext'
2115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2119 (exit $ac_status); }; }; then
2122 echo "$as_me: failed program was:" >&5
2123 sed 's/^/| /' conftest.$ac_ext >&5
2127 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2128 cat >conftest.$ac_ext <<_ACEOF
2131 cat confdefs.h >>conftest.$ac_ext
2132 cat >>conftest.$ac_ext <<_ACEOF
2133 /* end confdefs.h. */
2143 rm -f conftest.$ac_objext
2144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2145 (eval $ac_compile) 2>conftest.er1
2147 grep -v '^ *+' conftest.er1 >conftest.err
2149 cat conftest.err >&5
2150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2151 (exit $ac_status); } &&
2152 { ac_try='test -z "$ac_c_werror_flag"
2153 || test ! -s conftest.err'
2154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2158 (exit $ac_status); }; } &&
2159 { ac_try='test -s conftest.$ac_objext'
2160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2164 (exit $ac_status); }; }; then
2167 echo "$as_me: failed program was:" >&5
2168 sed 's/^/| /' conftest.$ac_ext >&5
2171 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2174 if test -n "$ac_declaration"; then
2175 echo '#ifdef __cplusplus' >>confdefs.h
2176 echo $ac_declaration >>confdefs.h
2177 echo '#endif' >>confdefs.h
2181 echo "$as_me: failed program was:" >&5
2182 sed 's/^/| /' conftest.$ac_ext >&5
2185 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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
2193 ac_cpp='$CPP $CPPFLAGS'
2194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2197 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2198 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2199 # On Suns, sometimes $CPP names a directory.
2200 if test -n "$CPP" && test -d "$CPP"; then
2203 if test -z "$CPP"; then
2204 if test "${ac_cv_prog_CPP+set}" = set; then
2205 echo $ECHO_N "(cached) $ECHO_C" >&6
2207 # Double quotes because CPP needs to be expanded
2208 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2211 for ac_c_preproc_warn_flag in '' yes
2213 # Use a header file that comes with gcc, so configuring glibc
2214 # with a fresh cross-compiler works.
2215 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2216 # <limits.h> exists even on freestanding compilers.
2217 # On the NeXT, cc -E runs the code through the compiler's parser,
2218 # not just through cpp. "Syntax error" is here to catch this case.
2219 cat >conftest.$ac_ext <<_ACEOF
2222 cat confdefs.h >>conftest.$ac_ext
2223 cat >>conftest.$ac_ext <<_ACEOF
2224 /* end confdefs.h. */
2226 # include <limits.h>
2228 # include <assert.h>
2232 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2233 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2235 grep -v '^ *+' conftest.er1 >conftest.err
2237 cat conftest.err >&5
2238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2239 (exit $ac_status); } >/dev/null; then
2240 if test -s conftest.err; then
2241 ac_cpp_err=$ac_c_preproc_warn_flag
2242 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2249 if test -z "$ac_cpp_err"; then
2252 echo "$as_me: failed program was:" >&5
2253 sed 's/^/| /' conftest.$ac_ext >&5
2255 # Broken: fails on valid input.
2258 rm -f conftest.err conftest.$ac_ext
2260 # OK, works on sane cases. Now check whether non-existent headers
2261 # can be detected and how.
2262 cat >conftest.$ac_ext <<_ACEOF
2265 cat confdefs.h >>conftest.$ac_ext
2266 cat >>conftest.$ac_ext <<_ACEOF
2267 /* end confdefs.h. */
2268 #include <ac_nonexistent.h>
2270 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2271 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2273 grep -v '^ *+' conftest.er1 >conftest.err
2275 cat conftest.err >&5
2276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2277 (exit $ac_status); } >/dev/null; then
2278 if test -s conftest.err; then
2279 ac_cpp_err=$ac_c_preproc_warn_flag
2280 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2287 if test -z "$ac_cpp_err"; then
2288 # Broken: success on invalid input.
2291 echo "$as_me: failed program was:" >&5
2292 sed 's/^/| /' conftest.$ac_ext >&5
2294 # Passes both tests.
2298 rm -f conftest.err conftest.$ac_ext
2301 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2302 rm -f conftest.err conftest.$ac_ext
2303 if $ac_preproc_ok; then
2315 echo "$as_me:$LINENO: result: $CPP" >&5
2316 echo "${ECHO_T}$CPP" >&6
2318 for ac_c_preproc_warn_flag in '' yes
2320 # Use a header file that comes with gcc, so configuring glibc
2321 # with a fresh cross-compiler works.
2322 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2323 # <limits.h> exists even on freestanding compilers.
2324 # On the NeXT, cc -E runs the code through the compiler's parser,
2325 # not just through cpp. "Syntax error" is here to catch this case.
2326 cat >conftest.$ac_ext <<_ACEOF
2329 cat confdefs.h >>conftest.$ac_ext
2330 cat >>conftest.$ac_ext <<_ACEOF
2331 /* end confdefs.h. */
2333 # include <limits.h>
2335 # include <assert.h>
2339 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2340 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2342 grep -v '^ *+' conftest.er1 >conftest.err
2344 cat conftest.err >&5
2345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346 (exit $ac_status); } >/dev/null; then
2347 if test -s conftest.err; then
2348 ac_cpp_err=$ac_c_preproc_warn_flag
2349 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2356 if test -z "$ac_cpp_err"; then
2359 echo "$as_me: failed program was:" >&5
2360 sed 's/^/| /' conftest.$ac_ext >&5
2362 # Broken: fails on valid input.
2365 rm -f conftest.err conftest.$ac_ext
2367 # OK, works on sane cases. Now check whether non-existent headers
2368 # can be detected and how.
2369 cat >conftest.$ac_ext <<_ACEOF
2372 cat confdefs.h >>conftest.$ac_ext
2373 cat >>conftest.$ac_ext <<_ACEOF
2374 /* end confdefs.h. */
2375 #include <ac_nonexistent.h>
2377 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2378 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2380 grep -v '^ *+' conftest.er1 >conftest.err
2382 cat conftest.err >&5
2383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2384 (exit $ac_status); } >/dev/null; then
2385 if test -s conftest.err; then
2386 ac_cpp_err=$ac_c_preproc_warn_flag
2387 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2394 if test -z "$ac_cpp_err"; then
2395 # Broken: success on invalid input.
2398 echo "$as_me: failed program was:" >&5
2399 sed 's/^/| /' conftest.$ac_ext >&5
2401 # Passes both tests.
2405 rm -f conftest.err conftest.$ac_ext
2408 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2409 rm -f conftest.err conftest.$ac_ext
2410 if $ac_preproc_ok; then
2413 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2414 See \`config.log' for more details." >&5
2415 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2416 See \`config.log' for more details." >&2;}
2417 { (exit 1); exit 1; }; }
2421 ac_cpp='$CPP $CPPFLAGS'
2422 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2423 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2424 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2427 for ac_prog in python2.3 python2.2 python2.1 python1.5 python
2429 # Extract the first word of "$ac_prog", so it can be a program name with args.
2430 set dummy $ac_prog; ac_word=$2
2431 echo "$as_me:$LINENO: checking for $ac_word" >&5
2432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2433 if test "${ac_cv_prog_PYTHONBIN+set}" = set; then
2434 echo $ECHO_N "(cached) $ECHO_C" >&6
2436 if test -n "$PYTHONBIN"; then
2437 ac_cv_prog_PYTHONBIN="$PYTHONBIN" # Let the user override the test.
2439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2440 as_dummy="${PATH}:/usr/bin:/usr/local/bin"
2441 for as_dir in $as_dummy
2444 test -z "$as_dir" && as_dir=.
2445 for ac_exec_ext in '' $ac_executable_extensions; do
2446 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2447 ac_cv_prog_PYTHONBIN="$ac_prog"
2448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2456 PYTHONBIN=$ac_cv_prog_PYTHONBIN
2457 if test -n "$PYTHONBIN"; then
2458 echo "$as_me:$LINENO: result: $PYTHONBIN" >&5
2459 echo "${ECHO_T}$PYTHONBIN" >&6
2461 echo "$as_me:$LINENO: result: no" >&5
2462 echo "${ECHO_T}no" >&6
2465 test -n "$PYTHONBIN" && break
2467 test -n "$PYTHONBIN" || PYTHONBIN="not-found"
2470 if test x$PYTHONBIN = xnot-found; then
2471 fail="python-binary"
2476 # Check whether --with-rlm-python-lib-dir or --without-rlm-python-lib-dir was given.
2477 if test "${with_rlm_python_lib_dir+set}" = set; then
2478 withval="$with_rlm_python_lib_dir"
2481 { { echo "$as_me:$LINENO: error: Need rlm-python-lib-dir" >&5
2482 echo "$as_me: error: Need rlm-python-lib-dir" >&2;}
2483 { (exit 1); exit 1; }; }
2488 PY_LIB_DIR="$withval"
2496 # Check whether --with-rlm-python-include-dir or --without-rlm-python-include-dir was given.
2497 if test "${with_rlm_python_include_dir+set}" = set; then
2498 withval="$with_rlm_python_include_dir"
2501 { { echo "$as_me:$LINENO: error: Need rlm-python-include-dir" >&5
2502 echo "$as_me: error: Need rlm-python-include-dir" >&2;}
2503 { (exit 1); exit 1; }; }
2508 PY_INC_DIR="$withval"
2514 if test x$fail = x; then
2516 PY_PREFIX=`${PYTHONBIN} -c 'import sys ; print sys.prefix'`
2517 PY_EXEC_PREFIX=`${PYTHONBIN} -c 'import sys ; print sys.exec_prefix'`
2518 PY_VERSION=`${PYTHONBIN} -c 'import sys ; print sys.version[0:3]'`
2519 PY_LIBS="-lpython$PY_VERSION"
2520 PY_LIB_DIR="$PY_EXEC_PREFIX/lib/python$PY_VERSION/config"
2521 PY_LIB_LOC="-L$PY_EXEC_PREFIX/lib/python$PY_VERSION/config"
2522 PY_INC_DIR="$PY_PREFIX/include/python$PY_VERSION"
2523 PY_CFLAGS="-I$PY_PREFIX/include/python$PY_VERSION"
2524 PY_MAKEFILE="$PY_EXEC_PREFIX/lib/python$PY_VERSION/config/Makefile"
2525 if test -f ${PY_MAKEFILE}; then
2526 PY_LOCALMODLIBS=`sed -n -e 's/^LOCALMODLIBS=\(.*\)/\1/p' $PY_MAKEFILE`
2527 PY_BASEMODLIBS=`sed -n -e 's/^BASEMODLIBS=\(.*\)/\1/p' $PY_MAKEFILE`
2528 PY_OTHER_LIBS=`sed -n -e 's/^LIBS=\(.*\)/\1/p' $PY_MAKEFILE`
2530 PY_EXTRA_LIBS="$PY_LOCALMODLIBS $PY_BASEMODLIBS $PY_OTHER_LIBS"
2533 CFLAGS="$CFLAGS $PY_CFLAGS"
2534 smart_try_dir=$PY_INC_DIR
2538 ac_safe=`echo "Python.h" | sed 'y%./+-%__pm%'`
2539 echo "$as_me:$LINENO: checking for Python.h" >&5
2540 echo $ECHO_N "checking for Python.h... $ECHO_C" >&6
2542 old_CFLAGS="$CFLAGS"
2546 if test "x$smart_try_dir" != "x"; then
2547 for try in $smart_try_dir; do
2548 CFLAGS="$old_CFLAGS -I$try"
2549 cat >conftest.$ac_ext <<_ACEOF
2552 cat confdefs.h >>conftest.$ac_ext
2553 cat >>conftest.$ac_ext <<_ACEOF
2554 /* end confdefs.h. */
2565 rm -f conftest.$ac_objext
2566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2567 (eval $ac_compile) 2>conftest.er1
2569 grep -v '^ *+' conftest.er1 >conftest.err
2571 cat conftest.err >&5
2572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573 (exit $ac_status); } &&
2574 { ac_try='test -z "$ac_c_werror_flag"
2575 || test ! -s conftest.err'
2576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580 (exit $ac_status); }; } &&
2581 { ac_try='test -s conftest.$ac_objext'
2582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586 (exit $ac_status); }; }; then
2587 smart_include="-I$try"
2589 echo "$as_me: failed program was:" >&5
2590 sed 's/^/| /' conftest.$ac_ext >&5
2594 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2595 if test "x$smart_include" != "x"; then
2599 CFLAGS="$old_CFLAGS"
2602 if test "x$smart_include" = "x"; then
2603 cat >conftest.$ac_ext <<_ACEOF
2606 cat confdefs.h >>conftest.$ac_ext
2607 cat >>conftest.$ac_ext <<_ACEOF
2608 /* end confdefs.h. */
2619 rm -f conftest.$ac_objext
2620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2621 (eval $ac_compile) 2>conftest.er1
2623 grep -v '^ *+' conftest.er1 >conftest.err
2625 cat conftest.err >&5
2626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627 (exit $ac_status); } &&
2628 { ac_try='test -z "$ac_c_werror_flag"
2629 || test ! -s conftest.err'
2630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634 (exit $ac_status); }; } &&
2635 { ac_try='test -s conftest.$ac_objext'
2636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2640 (exit $ac_status); }; }; then
2643 echo "$as_me: failed program was:" >&5
2644 sed 's/^/| /' conftest.$ac_ext >&5
2648 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2651 if test "x$smart_include" = "x"; then
2654 if test "x$LOCATE" != "x"; then
2658 for x in `${LOCATE} $file 2>/dev/null`; do
2659 base=`echo $x | sed "s%/${file}%%"`
2660 if test "x$x" = "x$base"; then
2664 dir=`${DIRNAME} $x 2>/dev/null`
2665 exclude=`echo ${dir} | ${GREP} /home`
2666 if test "x$exclude" != "x"; then
2670 already=`echo \$smart_include_dir ${DIRS} | ${GREP} ${dir}`
2671 if test "x$already" = "x"; then
2677 eval "smart_include_dir=\"\$smart_include_dir $DIRS\""
2680 for try in $smart_include_dir /usr/local/include /opt/include; do
2681 CFLAGS="$old_CFLAGS -I$try"
2682 cat >conftest.$ac_ext <<_ACEOF
2685 cat confdefs.h >>conftest.$ac_ext
2686 cat >>conftest.$ac_ext <<_ACEOF
2687 /* end confdefs.h. */
2698 rm -f conftest.$ac_objext
2699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2700 (eval $ac_compile) 2>conftest.er1
2702 grep -v '^ *+' conftest.er1 >conftest.err
2704 cat conftest.err >&5
2705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706 (exit $ac_status); } &&
2707 { ac_try='test -z "$ac_c_werror_flag"
2708 || test ! -s conftest.err'
2709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713 (exit $ac_status); }; } &&
2714 { ac_try='test -s conftest.$ac_objext'
2715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719 (exit $ac_status); }; }; then
2720 smart_include="-I$try"
2722 echo "$as_me: failed program was:" >&5
2723 sed 's/^/| /' conftest.$ac_ext >&5
2727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2728 if test "x$smart_include" != "x"; then
2732 CFLAGS="$old_CFLAGS"
2735 if test "x$smart_include" != "x"; then
2736 echo "$as_me:$LINENO: result: yes" >&5
2737 echo "${ECHO_T}yes" >&6
2738 eval "ac_cv_header_$ac_safe=yes"
2739 CFLAGS="$old_CFLAGS $smart_include"
2740 SMART_CFLAGS="$SMART_CFLAGS $smart_include"
2742 echo "$as_me:$LINENO: result: no" >&5
2743 echo "${ECHO_T}no" >&6
2748 if test "x$ac_cv_header_Python_h" = "xyes"; then
2749 python_cflags=$PY_CFLAGS
2751 fail="$fail Python.h"
2756 LIBS="$LIBS $PY_LIB_LOC $PY_EXTRA_LIBS -lm"
2757 smart_try_dir=$PY_LIB_DIR
2760 sm_lib_safe=`echo "python${PY_VERSION}" | sed 'y%./+-%__p_%'`
2761 sm_func_safe=`echo "Py_Initialize" | sed 'y%./+-%__p_%'`
2762 echo "$as_me:$LINENO: checking for Py_Initialize in -lpython${PY_VERSION}" >&5
2763 echo $ECHO_N "checking for Py_Initialize in -lpython${PY_VERSION}... $ECHO_C" >&6
2769 if test "x$smart_try_dir" != "x"; then
2770 for try in $smart_try_dir; do
2771 LIBS="-L$try -lpython${PY_VERSION} $old_LIBS"
2772 cat >conftest.$ac_ext <<_ACEOF
2775 cat confdefs.h >>conftest.$ac_ext
2776 cat >>conftest.$ac_ext <<_ACEOF
2777 /* end confdefs.h. */
2778 extern char Py_Initialize();
2787 rm -f conftest.$ac_objext conftest$ac_exeext
2788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2789 (eval $ac_link) 2>conftest.er1
2791 grep -v '^ *+' conftest.er1 >conftest.err
2793 cat conftest.err >&5
2794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795 (exit $ac_status); } &&
2796 { ac_try='test -z "$ac_c_werror_flag"
2797 || test ! -s conftest.err'
2798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802 (exit $ac_status); }; } &&
2803 { ac_try='test -s conftest$ac_exeext'
2804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808 (exit $ac_status); }; }; then
2809 smart_lib="-L$try -lpython${PY_VERSION}"
2811 echo "$as_me: failed program was:" >&5
2812 sed 's/^/| /' conftest.$ac_ext >&5
2815 rm -f conftest.err conftest.$ac_objext \
2816 conftest$ac_exeext conftest.$ac_ext
2817 if test "x$smart_lib" != "x"; then
2824 if test "x$smart_lib" = "x"; then
2825 LIBS="-lpython${PY_VERSION} $old_LIBS"
2826 cat >conftest.$ac_ext <<_ACEOF
2829 cat confdefs.h >>conftest.$ac_ext
2830 cat >>conftest.$ac_ext <<_ACEOF
2831 /* end confdefs.h. */
2832 extern char Py_Initialize();
2841 rm -f conftest.$ac_objext conftest$ac_exeext
2842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2843 (eval $ac_link) 2>conftest.er1
2845 grep -v '^ *+' conftest.er1 >conftest.err
2847 cat conftest.err >&5
2848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2849 (exit $ac_status); } &&
2850 { ac_try='test -z "$ac_c_werror_flag"
2851 || test ! -s conftest.err'
2852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856 (exit $ac_status); }; } &&
2857 { ac_try='test -s conftest$ac_exeext'
2858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2862 (exit $ac_status); }; }; then
2863 smart_lib="-lpython${PY_VERSION}"
2865 echo "$as_me: failed program was:" >&5
2866 sed 's/^/| /' conftest.$ac_ext >&5
2869 rm -f conftest.err conftest.$ac_objext \
2870 conftest$ac_exeext conftest.$ac_ext
2874 if test "x$smart_lib" = "x"; then
2877 if test "x$LOCATE" != "x"; then
2879 file=libpython${PY_VERSION}${libltdl_cv_shlibext}
2881 for x in `${LOCATE} $file 2>/dev/null`; do
2882 base=`echo $x | sed "s%/${file}%%"`
2883 if test "x$x" = "x$base"; then
2887 dir=`${DIRNAME} $x 2>/dev/null`
2888 exclude=`echo ${dir} | ${GREP} /home`
2889 if test "x$exclude" != "x"; then
2893 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
2894 if test "x$already" = "x"; then
2900 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
2904 if test "x$LOCATE" != "x"; then
2906 file=libpython${PY_VERSION}.a
2908 for x in `${LOCATE} $file 2>/dev/null`; do
2909 base=`echo $x | sed "s%/${file}%%"`
2910 if test "x$x" = "x$base"; then
2914 dir=`${DIRNAME} $x 2>/dev/null`
2915 exclude=`echo ${dir} | ${GREP} /home`
2916 if test "x$exclude" != "x"; then
2920 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
2921 if test "x$already" = "x"; then
2927 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
2930 for try in $smart_lib_dir /usr/local/lib /opt/lib; do
2931 LIBS="-L$try -lpython${PY_VERSION} $old_LIBS"
2932 cat >conftest.$ac_ext <<_ACEOF
2935 cat confdefs.h >>conftest.$ac_ext
2936 cat >>conftest.$ac_ext <<_ACEOF
2937 /* end confdefs.h. */
2938 extern char Py_Initialize();
2947 rm -f conftest.$ac_objext conftest$ac_exeext
2948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2949 (eval $ac_link) 2>conftest.er1
2951 grep -v '^ *+' conftest.er1 >conftest.err
2953 cat conftest.err >&5
2954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955 (exit $ac_status); } &&
2956 { ac_try='test -z "$ac_c_werror_flag"
2957 || test ! -s conftest.err'
2958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2962 (exit $ac_status); }; } &&
2963 { ac_try='test -s conftest$ac_exeext'
2964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968 (exit $ac_status); }; }; then
2969 smart_lib="-L$try -lpython${PY_VERSION}"
2971 echo "$as_me: failed program was:" >&5
2972 sed 's/^/| /' conftest.$ac_ext >&5
2975 rm -f conftest.err conftest.$ac_objext \
2976 conftest$ac_exeext conftest.$ac_ext
2977 if test "x$smart_lib" != "x"; then
2984 if test "x$smart_lib" != "x"; then
2985 echo "$as_me:$LINENO: result: yes" >&5
2986 echo "${ECHO_T}yes" >&6
2987 eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
2988 LIBS="$smart_lib $old_LIBS"
2989 SMART_LIBS="$smart_lib $SMART_LIBS"
2991 echo "$as_me:$LINENO: result: no" >&5
2992 echo "${ECHO_T}no" >&6
2997 eval t=\${ac_cv_lib_${sm_lib_safe}_${sm_func_safe}}
2998 if test "x$t" = "xyes"; then
2999 python_ldflags="$PY_LIB_LOC $PY_EXTRA_LIBS -lpython${PY_VERSION} -lm"
3000 targetname=rlm_python
3003 fail="$fail libpython$PY_VERSION"
3009 echo \*\*\* module rlm_python is disabled.
3012 if test x"$fail" != x""; then
3013 if test x"${enable_strict_dependencies}" = x"yes"; then
3014 { { echo "$as_me:$LINENO: error: set --without-rlm_python to disable it explicitly." >&5
3015 echo "$as_me: error: set --without-rlm_python to disable it explicitly." >&2;}
3016 { (exit 1); exit 1; }; }
3018 { echo "$as_me:$LINENO: WARNING: silently not building rlm_python." >&5
3019 echo "$as_me: WARNING: silently not building rlm_python." >&2;}
3020 { echo "$as_me:$LINENO: WARNING: FAILURE: rlm_python requires: $fail." >&5
3021 echo "$as_me: WARNING: FAILURE: rlm_python requires: $fail." >&2;};
3029 ac_config_files="$ac_config_files Makefile"
3030 cat >confcache <<\_ACEOF
3031 # This file is a shell script that caches the results of configure
3032 # tests run on this system so they can be shared between configure
3033 # scripts and configure runs, see configure's option --config-cache.
3034 # It is not useful on other systems. If it contains results you don't
3035 # want to keep, you may remove or edit it.
3037 # config.status only pays attention to the cache file if you give it
3038 # the --recheck option to rerun configure.
3040 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3041 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3046 # The following way of writing the cache mishandles newlines in values,
3047 # but we know of no workaround that is simple, portable, and efficient.
3048 # So, don't put newlines in cache variables' values.
3049 # Ultrix sh set writes to stderr and can't be redirected directly,
3050 # and sets the high bit in the cache file unless we assign to the vars.
3053 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3055 # `set' does not quote correctly, so add quotes (double-quote
3056 # substitution turns \\\\ into \\, and sed turns \\ into \).
3059 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3062 # `set' quotes correctly as required by POSIX, so do not add quotes.
3064 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3071 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3073 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3075 if diff $cache_file confcache >/dev/null 2>&1; then :; else
3076 if test -w $cache_file; then
3077 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3078 cat confcache >$cache_file
3080 echo "not updating unwritable cache $cache_file"
3085 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3086 # Let make expand exec_prefix.
3087 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3089 # VPATH may cause trouble with some makes, so we remove $(srcdir),
3090 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3091 # trailing colons and then remove the whole line if VPATH becomes empty
3092 # (actually we leave an empty line to preserve line numbers).
3093 if test "x$srcdir" = x.; then
3094 ac_vpsub='/^[ ]*VPATH[ ]*=/{
3095 s/:*\$(srcdir):*/:/;
3096 s/:*\${srcdir}:*/:/;
3098 s/^\([^=]*=[ ]*\):*/\1/;
3104 # Transform confdefs.h into DEFS.
3105 # Protect against shell expansion while executing Makefile rules.
3106 # Protect against Makefile macro expansion.
3108 # If the first sed substitution is executed (which looks for macros that
3109 # take arguments), then we branch to the quote section. Otherwise,
3110 # look for a macro that doesn't take arguments.
3111 cat >confdef2opt.sed <<\_ACEOF
3114 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
3116 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
3120 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
3126 # We use echo to avoid assuming a particular line-breaking character.
3127 # The extra dot is to prevent the shell from consuming trailing
3128 # line-breaks from the sub-command output. A line-break within
3129 # single-quotes doesn't work because, if this script is created in a
3130 # platform that uses two characters for line-breaks (e.g., DOS), tr
3132 ac_LF_and_DOT=`echo; echo .`
3133 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
3134 rm -f confdef2opt.sed
3139 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3140 # 1. Remove the extension, and $U if already installed.
3141 ac_i=`echo "$ac_i" |
3142 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
3144 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
3145 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
3149 LTLIBOBJS=$ac_ltlibobjs
3153 : ${CONFIG_STATUS=./config.status}
3154 ac_clean_files_save=$ac_clean_files
3155 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3156 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
3157 echo "$as_me: creating $CONFIG_STATUS" >&6;}
3158 cat >$CONFIG_STATUS <<_ACEOF
3160 # Generated by $as_me.
3161 # Run this file to recreate the current configuration.
3162 # Compiler output produced by configure, useful for debugging
3163 # configure, is in config.log if it exists.
3168 SHELL=\${CONFIG_SHELL-$SHELL}
3171 cat >>$CONFIG_STATUS <<\_ACEOF
3172 ## --------------------- ##
3173 ## M4sh Initialization. ##
3174 ## --------------------- ##
3176 # Be Bourne compatible
3177 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3180 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
3181 # is contrary to our usage. Disable this feature.
3182 alias -g '${1+"$@"}'='"$@"'
3183 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
3186 DUALCASE=1; export DUALCASE # for MKS sh
3188 # Support unset when possible.
3189 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3196 # Work around bugs in pre-3.0 UWIN ksh.
3197 $as_unset ENV MAIL MAILPATH
3204 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
3205 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
3206 LC_TELEPHONE LC_TIME
3208 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
3209 eval $as_var=C; export $as_var
3215 # Required to use basename.
3216 if expr a : '\(a\)' >/dev/null 2>&1; then
3222 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
3223 as_basename=basename
3229 # Name of the executable.
3230 as_me=`$as_basename "$0" ||
3231 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3232 X"$0" : 'X\(//\)$' \| \
3233 X"$0" : 'X\(/\)$' \| \
3234 . : '\(.\)' 2>/dev/null ||
3236 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
3237 /^X\/\(\/\/\)$/{ s//\1/; q; }
3238 /^X\/\(\/\).*/{ s//\1/; q; }
3242 # PATH needs CR, and LINENO needs CR and PATH.
3243 # Avoid depending upon Character Ranges.
3244 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3245 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3246 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3247 as_cr_digits='0123456789'
3248 as_cr_alnum=$as_cr_Letters$as_cr_digits
3250 # The user is always right.
3251 if test "${PATH_SEPARATOR+set}" != set; then
3252 echo "#! /bin/sh" >conf$$.sh
3253 echo "exit 0" >>conf$$.sh
3255 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3266 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3267 test "x$as_lineno_1" != "x$as_lineno_2" &&
3268 test "x$as_lineno_3" = "x$as_lineno_2" || {
3269 # Find who we are. Look in the path if we contain no path at all
3272 *[\\/]* ) as_myself=$0 ;;
3273 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3277 test -z "$as_dir" && as_dir=.
3278 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3283 # We did not find ourselves, most probably we were run as `sh COMMAND'
3284 # in which case we are not to be found in the path.
3285 if test "x$as_myself" = x; then
3288 if test ! -f "$as_myself"; then
3289 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
3290 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
3291 { (exit 1); exit 1; }; }
3293 case $CONFIG_SHELL in
3295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3296 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
3299 test -z "$as_dir" && as_dir=.
3300 for as_base in sh bash ksh sh5; do
3303 if ("$as_dir/$as_base" -c '
3306 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3307 test "x$as_lineno_1" != "x$as_lineno_2" &&
3308 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
3309 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
3310 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
3311 CONFIG_SHELL=$as_dir/$as_base
3313 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
3321 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
3322 # uniformly replaced by the line number. The first 'sed' inserts a
3323 # line-number line before each line; the second 'sed' does the real
3324 # work. The second script uses 'N' to pair each line-number line
3325 # with the numbered line, and appends trailing '-' during
3326 # substitution so that $LINENO is not a special case at line end.
3327 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
3328 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
3329 sed '=' <$as_myself |
3334 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
3337 s,^['$as_cr_digits']*\n,,
3339 chmod +x $as_me.lineno ||
3340 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
3341 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
3342 { (exit 1); exit 1; }; }
3344 # Don't try to exec as it changes $[0], causing all sort of problems
3345 # (the dirname of $[0] is not the place where we might find the
3346 # original and so on. Autoconf is especially sensible to this).
3348 # Exit status is that of the last command.
3353 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
3354 *c*,-n*) ECHO_N= ECHO_C='
3356 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
3357 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
3360 if expr a : '\(a\)' >/dev/null 2>&1; then
3366 rm -f conf$$ conf$$.exe conf$$.file
3368 if ln -s conf$$.file conf$$ 2>/dev/null; then
3369 # We could just check for DJGPP; but this test a) works b) is more generic
3370 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
3371 if test -f conf$$.exe; then
3372 # Don't use ln at all; we don't have any links
3377 elif ln conf$$.file conf$$ 2>/dev/null; then
3382 rm -f conf$$ conf$$.exe conf$$.file
3384 if mkdir -p . 2>/dev/null; then
3387 test -d ./-p && rmdir ./-p
3391 as_executable_p="test -f"
3393 # Sed expression to map a string onto a valid CPP name.
3394 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3396 # Sed expression to map a string onto a valid variable name.
3397 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3401 # We need space, tab and new line, in precisely that order.
3411 # Open the log real soon, to keep \$[0] and so on meaningful, and to
3412 # report actual input values of CONFIG_FILES etc. instead of their
3413 # values after options handling. Logging --version etc. is OK.
3417 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3418 ## Running $as_me. ##
3423 This file was extended by $as_me, which was
3424 generated by GNU Autoconf 2.59. Invocation command line was
3426 CONFIG_FILES = $CONFIG_FILES
3427 CONFIG_HEADERS = $CONFIG_HEADERS
3428 CONFIG_LINKS = $CONFIG_LINKS
3429 CONFIG_COMMANDS = $CONFIG_COMMANDS
3433 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
3437 # Files that config.status was made for.
3438 if test -n "$ac_config_files"; then
3439 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
3442 if test -n "$ac_config_headers"; then
3443 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
3446 if test -n "$ac_config_links"; then
3447 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
3450 if test -n "$ac_config_commands"; then
3451 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
3454 cat >>$CONFIG_STATUS <<\_ACEOF
3457 \`$as_me' instantiates files from templates according to the
3458 current configuration.
3460 Usage: $0 [OPTIONS] [FILE]...
3462 -h, --help print this help, then exit
3463 -V, --version print version number, then exit
3464 -q, --quiet do not print progress messages
3465 -d, --debug don't remove temporary files
3466 --recheck update $as_me by reconfiguring in the same conditions
3467 --file=FILE[:TEMPLATE]
3468 instantiate the configuration file FILE
3470 Configuration files:
3473 Report bugs to <bug-autoconf@gnu.org>."
3476 cat >>$CONFIG_STATUS <<_ACEOF
3479 configured by $0, generated by GNU Autoconf 2.59,
3480 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
3482 Copyright (C) 2003 Free Software Foundation, Inc.
3483 This config.status script is free software; the Free Software Foundation
3484 gives unlimited permission to copy, distribute and modify it."
3488 cat >>$CONFIG_STATUS <<\_ACEOF
3489 # If no file are specified by the user, then we need to provide default
3490 # value. By we need to know if files were specified by the user.
3496 ac_option=`expr "x$1" : 'x\([^=]*\)='`
3497 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
3505 *) # This is not an option, so the user has probably given explicit
3508 ac_need_defaults=false;;
3512 # Handling of the options.
3514 cat >>$CONFIG_STATUS <<\_ACEOF
3515 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3517 --version | --vers* | -V )
3518 echo "$ac_cs_version"; exit 0 ;;
3520 # Conflict between --help and --header
3521 { { echo "$as_me:$LINENO: error: ambiguous option: $1
3522 Try \`$0 --help' for more information." >&5
3523 echo "$as_me: error: ambiguous option: $1
3524 Try \`$0 --help' for more information." >&2;}
3525 { (exit 1); exit 1; }; };;
3526 --help | --hel | -h )
3527 echo "$ac_cs_usage"; exit 0 ;;
3528 --debug | --d* | -d )
3530 --file | --fil | --fi | --f )
3532 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
3533 ac_need_defaults=false;;
3534 --header | --heade | --head | --hea )
3536 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
3537 ac_need_defaults=false;;
3538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3539 | -silent | --silent | --silen | --sile | --sil | --si | --s)
3543 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
3544 Try \`$0 --help' for more information." >&5
3545 echo "$as_me: error: unrecognized option: $1
3546 Try \`$0 --help' for more information." >&2;}
3547 { (exit 1); exit 1; }; } ;;
3549 *) ac_config_targets="$ac_config_targets $1" ;;
3555 ac_configure_extra_args=
3557 if $ac_cs_silent; then
3559 ac_configure_extra_args="$ac_configure_extra_args --silent"
3563 cat >>$CONFIG_STATUS <<_ACEOF
3564 if \$ac_cs_recheck; then
3565 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
3566 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
3575 cat >>$CONFIG_STATUS <<\_ACEOF
3576 for ac_config_target in $ac_config_targets
3578 case "$ac_config_target" in
3579 # Handling of arguments.
3580 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
3581 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
3582 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
3583 { (exit 1); exit 1; }; };;
3587 # If the user did not use the arguments to specify the items to instantiate,
3588 # then the envvar interface is used. Set only those that are not.
3589 # We use the long form for the default assignment because of an extremely
3590 # bizarre bug on SunOS 4.1.3.
3591 if $ac_need_defaults; then
3592 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3595 # Have a temporary directory for convenience. Make it in the build tree
3596 # simply because there is no reason to put it here, and in addition,
3597 # creating and moving files from /tmp can sometimes cause problems.
3598 # Create a temporary directory, and hook for its removal unless debugging.
3601 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3602 trap '{ (exit 1); exit 1; }' 1 2 13 15
3605 # Create a (secure) tmp directory for tmp files.
3608 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
3609 test -n "$tmp" && test -d "$tmp"
3612 tmp=./confstat$$-$RANDOM
3613 (umask 077 && mkdir $tmp)
3616 echo "$me: cannot create a temporary directory in ." >&2
3617 { (exit 1); exit 1; }
3622 cat >>$CONFIG_STATUS <<_ACEOF
3625 # CONFIG_FILES section.
3628 # No need to generate the scripts if there are no CONFIG_FILES.
3629 # This happens for instance when ./config.status config.h
3630 if test -n "\$CONFIG_FILES"; then
3631 # Protect against being on the right side of a sed subst in config.status.
3632 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
3633 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
3634 s,@SHELL@,$SHELL,;t t
3635 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
3636 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
3637 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
3638 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
3639 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
3640 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
3641 s,@exec_prefix@,$exec_prefix,;t t
3642 s,@prefix@,$prefix,;t t
3643 s,@program_transform_name@,$program_transform_name,;t t
3644 s,@bindir@,$bindir,;t t
3645 s,@sbindir@,$sbindir,;t t
3646 s,@libexecdir@,$libexecdir,;t t
3647 s,@datadir@,$datadir,;t t
3648 s,@sysconfdir@,$sysconfdir,;t t
3649 s,@sharedstatedir@,$sharedstatedir,;t t
3650 s,@localstatedir@,$localstatedir,;t t
3651 s,@libdir@,$libdir,;t t
3652 s,@includedir@,$includedir,;t t
3653 s,@oldincludedir@,$oldincludedir,;t t
3654 s,@infodir@,$infodir,;t t
3655 s,@mandir@,$mandir,;t t
3656 s,@build_alias@,$build_alias,;t t
3657 s,@host_alias@,$host_alias,;t t
3658 s,@target_alias@,$target_alias,;t t
3660 s,@ECHO_C@,$ECHO_C,;t t
3661 s,@ECHO_N@,$ECHO_N,;t t
3662 s,@ECHO_T@,$ECHO_T,;t t
3665 s,@CFLAGS@,$CFLAGS,;t t
3666 s,@LDFLAGS@,$LDFLAGS,;t t
3667 s,@CPPFLAGS@,$CPPFLAGS,;t t
3668 s,@ac_ct_CC@,$ac_ct_CC,;t t
3669 s,@EXEEXT@,$EXEEXT,;t t
3670 s,@OBJEXT@,$OBJEXT,;t t
3672 s,@PYTHONBIN@,$PYTHONBIN,;t t
3673 s,@python_ldflags@,$python_ldflags,;t t
3674 s,@python_cflags@,$python_cflags,;t t
3675 s,@targetname@,$targetname,;t t
3676 s,@LIBOBJS@,$LIBOBJS,;t t
3677 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
3682 cat >>$CONFIG_STATUS <<\_ACEOF
3683 # Split the substitutions into bite-sized pieces for seds with
3684 # small command number limits, like on Digital OSF/1 and HP-UX.
3686 ac_sed_frag=1 # Number of current file.
3687 ac_beg=1 # First line for current file.
3688 ac_end=$ac_max_sed_lines # Line after last line for current file.
3691 while $ac_more_lines; do
3692 if test $ac_beg -gt 1; then
3693 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3695 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3697 if test ! -s $tmp/subs.frag; then
3700 # The purpose of the label and of the branching condition is to
3701 # speed up the sed processing (if there are no `@' at all, there
3702 # is no need to browse any of the substitutions).
3703 # These are the two extra sed commands mentioned above.
3705 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
3706 if test -z "$ac_sed_cmds"; then
3707 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
3709 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
3711 ac_sed_frag=`expr $ac_sed_frag + 1`
3713 ac_end=`expr $ac_end + $ac_max_sed_lines`
3716 if test -z "$ac_sed_cmds"; then
3719 fi # test -n "$CONFIG_FILES"
3722 cat >>$CONFIG_STATUS <<\_ACEOF
3723 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
3724 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3726 - | *:- | *:-:* ) # input from stdin
3728 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3729 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3730 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3731 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3732 * ) ac_file_in=$ac_file.in ;;
3735 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
3736 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
3737 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3738 X"$ac_file" : 'X\(//\)[^/]' \| \
3739 X"$ac_file" : 'X\(//\)$' \| \
3740 X"$ac_file" : 'X\(/\)' \| \
3741 . : '\(.\)' 2>/dev/null ||
3743 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3744 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3745 /^X\(\/\/\)$/{ s//\1/; q; }
3746 /^X\(\/\).*/{ s//\1/; q; }
3748 { if $as_mkdir_p; then
3753 while test ! -d "$as_dir"; do
3754 as_dirs="$as_dir $as_dirs"
3755 as_dir=`(dirname "$as_dir") 2>/dev/null ||
3756 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3757 X"$as_dir" : 'X\(//\)[^/]' \| \
3758 X"$as_dir" : 'X\(//\)$' \| \
3759 X"$as_dir" : 'X\(/\)' \| \
3760 . : '\(.\)' 2>/dev/null ||
3762 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3763 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3764 /^X\(\/\/\)$/{ s//\1/; q; }
3765 /^X\(\/\).*/{ s//\1/; q; }
3768 test ! -n "$as_dirs" || mkdir $as_dirs
3769 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
3770 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
3771 { (exit 1); exit 1; }; }; }
3775 if test "$ac_dir" != .; then
3776 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
3777 # A "../" for each directory in $ac_dir_suffix.
3778 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
3780 ac_dir_suffix= ac_top_builddir=
3784 .) # No --srcdir option. We are building in place.
3786 if test -z "$ac_top_builddir"; then
3789 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
3791 [\\/]* | ?:[\\/]* ) # Absolute path.
3792 ac_srcdir=$srcdir$ac_dir_suffix;
3793 ac_top_srcdir=$srcdir ;;
3795 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
3796 ac_top_srcdir=$ac_top_builddir$srcdir ;;
3799 # Do not use `cd foo && pwd` to compute absolute paths, because
3800 # the directories may not exist.
3802 .) ac_abs_builddir="$ac_dir";;
3805 .) ac_abs_builddir=`pwd`;;
3806 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
3807 *) ac_abs_builddir=`pwd`/"$ac_dir";;
3810 case $ac_abs_builddir in
3811 .) ac_abs_top_builddir=${ac_top_builddir}.;;
3813 case ${ac_top_builddir}. in
3814 .) ac_abs_top_builddir=$ac_abs_builddir;;
3815 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
3816 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
3819 case $ac_abs_builddir in
3820 .) ac_abs_srcdir=$ac_srcdir;;
3823 .) ac_abs_srcdir=$ac_abs_builddir;;
3824 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
3825 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
3828 case $ac_abs_builddir in
3829 .) ac_abs_top_srcdir=$ac_top_srcdir;;
3831 case $ac_top_srcdir in
3832 .) ac_abs_top_srcdir=$ac_abs_builddir;;
3833 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
3834 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
3840 if test x"$ac_file" != x-; then
3841 { echo "$as_me:$LINENO: creating $ac_file" >&5
3842 echo "$as_me: creating $ac_file" >&6;}
3845 # Let's still pretend it is `configure' which instantiates (i.e., don't
3846 # use $as_me), people would be surprised to read:
3847 # /* config.h. Generated by config.status. */
3848 if test x"$ac_file" = x-; then
3851 configure_input="$ac_file. "
3853 configure_input=$configure_input"Generated from `echo $ac_file_in |
3854 sed 's,.*/,,'` by configure."
3856 # First look for the input files in the build tree, otherwise in the
3858 ac_file_inputs=`IFS=:
3859 for f in $ac_file_in; do
3861 -) echo $tmp/stdin ;;
3863 # Absolute (can't be DOS-style, as IFS=:)
3864 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
3865 echo "$as_me: error: cannot find input file: $f" >&2;}
3866 { (exit 1); exit 1; }; }
3869 if test -f "$f"; then
3872 elif test -f "$srcdir/$f"; then
3877 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
3878 echo "$as_me: error: cannot find input file: $f" >&2;}
3879 { (exit 1); exit 1; }; }
3882 done` || { (exit 1); exit 1; }
3884 cat >>$CONFIG_STATUS <<_ACEOF
3888 cat >>$CONFIG_STATUS <<\_ACEOF
3890 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
3891 s,@configure_input@,$configure_input,;t t
3892 s,@srcdir@,$ac_srcdir,;t t
3893 s,@abs_srcdir@,$ac_abs_srcdir,;t t
3894 s,@top_srcdir@,$ac_top_srcdir,;t t
3895 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
3896 s,@builddir@,$ac_builddir,;t t
3897 s,@abs_builddir@,$ac_abs_builddir,;t t
3898 s,@top_builddir@,$ac_top_builddir,;t t
3899 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
3900 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
3902 if test x"$ac_file" != x-; then
3903 mv $tmp/out $ac_file
3912 cat >>$CONFIG_STATUS <<\_ACEOF
3914 { (exit 0); exit 0; }
3916 chmod +x $CONFIG_STATUS
3917 ac_clean_files=$ac_clean_files_save
3920 # configure is writing to config.log, and then calls config.status.
3921 # config.status does its own redirection, appending to config.log.
3922 # Unfortunately, on DOS this fails, as config.log is still kept open
3923 # by configure, so config.status won't be able to write to it; its
3924 # output is simply discarded. So we exec the FD to /dev/null,
3925 # effectively closing config.log, so it can be properly (re)opened and
3926 # appended to by config.status. When coming back to configure, we
3927 # need to make the FD available again.
3928 if test "$no_create" != yes; then
3930 ac_config_status_args=
3931 test "$silent" = yes &&
3932 ac_config_status_args="$ac_config_status_args --quiet"
3934 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
3936 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
3937 # would make configure fail if this is the last instruction.
3938 $ac_cs_success || { (exit 1); exit 1; }