Start integrating new build system with "configure"
[freeradius.git] / src / modules / rlm_python / configure
1 #! /bin/sh
2 # From configure.in Revision.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61.
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization.  ##
12 ## --------------------- ##
13
14 # Be more Bourne compatible
15 DUALCASE=1; export DUALCASE # for MKS sh
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17   emulate sh
18   NULLCMD=:
19   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20   # is contrary to our usage.  Disable this feature.
21   alias -g '${1+"$@"}'='"$@"'
22   setopt NO_GLOB_SUBST
23 else
24   case `(set -o) 2>/dev/null` in
25   *posix*) set -o posix ;;
26 esac
27
28 fi
29
30
31
32
33 # PATH needs CR
34 # Avoid depending upon Character Ranges.
35 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
37 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
38 as_cr_digits='0123456789'
39 as_cr_alnum=$as_cr_Letters$as_cr_digits
40
41 # The user is always right.
42 if test "${PATH_SEPARATOR+set}" != set; then
43   echo "#! /bin/sh" >conf$$.sh
44   echo  "exit 0"   >>conf$$.sh
45   chmod +x conf$$.sh
46   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
47     PATH_SEPARATOR=';'
48   else
49     PATH_SEPARATOR=:
50   fi
51   rm -f conf$$.sh
52 fi
53
54 # Support unset when possible.
55 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
56   as_unset=unset
57 else
58   as_unset=false
59 fi
60
61
62 # IFS
63 # We need space, tab and new line, in precisely that order.  Quoting is
64 # there to prevent editors from complaining about space-tab.
65 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
66 # splitting by setting IFS to empty value.)
67 as_nl='
68 '
69 IFS=" ""        $as_nl"
70
71 # Find who we are.  Look in the path if we contain no directory separator.
72 case $0 in
73   *[\\/]* ) as_myself=$0 ;;
74   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
75 for as_dir in $PATH
76 do
77   IFS=$as_save_IFS
78   test -z "$as_dir" && as_dir=.
79   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
80 done
81 IFS=$as_save_IFS
82
83      ;;
84 esac
85 # We did not find ourselves, most probably we were run as `sh COMMAND'
86 # in which case we are not to be found in the path.
87 if test "x$as_myself" = x; then
88   as_myself=$0
89 fi
90 if test ! -f "$as_myself"; then
91   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
92   { (exit 1); exit 1; }
93 fi
94
95 # Work around bugs in pre-3.0 UWIN ksh.
96 for as_var in ENV MAIL MAILPATH
97 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
98 done
99 PS1='$ '
100 PS2='> '
101 PS4='+ '
102
103 # NLS nuisances.
104 for as_var in \
105   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
106   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
107   LC_TELEPHONE LC_TIME
108 do
109   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
110     eval $as_var=C; export $as_var
111   else
112     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113   fi
114 done
115
116 # Required to use basename.
117 if expr a : '\(a\)' >/dev/null 2>&1 &&
118    test "X`expr 00001 : '.*\(...\)'`" = X001; then
119   as_expr=expr
120 else
121   as_expr=false
122 fi
123
124 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
125   as_basename=basename
126 else
127   as_basename=false
128 fi
129
130
131 # Name of the executable.
132 as_me=`$as_basename -- "$0" ||
133 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
134          X"$0" : 'X\(//\)$' \| \
135          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 echo X/"$0" |
137     sed '/^.*\/\([^/][^/]*\)\/*$/{
138             s//\1/
139             q
140           }
141           /^X\/\(\/\/\)$/{
142             s//\1/
143             q
144           }
145           /^X\/\(\/\).*/{
146             s//\1/
147             q
148           }
149           s/.*/./; q'`
150
151 # CDPATH.
152 $as_unset CDPATH
153
154
155 if test "x$CONFIG_SHELL" = x; then
156   if (eval ":") 2>/dev/null; then
157   as_have_required=yes
158 else
159   as_have_required=no
160 fi
161
162   if test $as_have_required = yes &&     (eval ":
163 (as_func_return () {
164   (exit \$1)
165 }
166 as_func_success () {
167   as_func_return 0
168 }
169 as_func_failure () {
170   as_func_return 1
171 }
172 as_func_ret_success () {
173   return 0
174 }
175 as_func_ret_failure () {
176   return 1
177 }
178
179 exitcode=0
180 if as_func_success; then
181   :
182 else
183   exitcode=1
184   echo as_func_success failed.
185 fi
186
187 if as_func_failure; then
188   exitcode=1
189   echo as_func_failure succeeded.
190 fi
191
192 if as_func_ret_success; then
193   :
194 else
195   exitcode=1
196   echo as_func_ret_success failed.
197 fi
198
199 if as_func_ret_failure; then
200   exitcode=1
201   echo as_func_ret_failure succeeded.
202 fi
203
204 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205   :
206 else
207   exitcode=1
208   echo positional parameters were not saved.
209 fi
210
211 test \$exitcode = 0) || { (exit 1); exit 1; }
212
213 (
214   as_lineno_1=\$LINENO
215   as_lineno_2=\$LINENO
216   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
217   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
218 ") 2> /dev/null; then
219   :
220 else
221   as_candidate_shells=
222     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
223 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 do
225   IFS=$as_save_IFS
226   test -z "$as_dir" && as_dir=.
227   case $as_dir in
228          /*)
229            for as_base in sh bash ksh sh5; do
230              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
231            done;;
232        esac
233 done
234 IFS=$as_save_IFS
235
236
237       for as_shell in $as_candidate_shells $SHELL; do
238          # Try only shells that exist, to save several forks.
239          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
240                 { ("$as_shell") 2> /dev/null <<\_ASEOF
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
242   emulate sh
243   NULLCMD=:
244   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245   # is contrary to our usage.  Disable this feature.
246   alias -g '${1+"$@"}'='"$@"'
247   setopt NO_GLOB_SUBST
248 else
249   case `(set -o) 2>/dev/null` in
250   *posix*) set -o posix ;;
251 esac
252
253 fi
254
255
256 :
257 _ASEOF
258 }; then
259   CONFIG_SHELL=$as_shell
260                as_have_required=yes
261                if { "$as_shell" 2> /dev/null <<\_ASEOF
262 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
263   emulate sh
264   NULLCMD=:
265   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
266   # is contrary to our usage.  Disable this feature.
267   alias -g '${1+"$@"}'='"$@"'
268   setopt NO_GLOB_SUBST
269 else
270   case `(set -o) 2>/dev/null` in
271   *posix*) set -o posix ;;
272 esac
273
274 fi
275
276
277 :
278 (as_func_return () {
279   (exit $1)
280 }
281 as_func_success () {
282   as_func_return 0
283 }
284 as_func_failure () {
285   as_func_return 1
286 }
287 as_func_ret_success () {
288   return 0
289 }
290 as_func_ret_failure () {
291   return 1
292 }
293
294 exitcode=0
295 if as_func_success; then
296   :
297 else
298   exitcode=1
299   echo as_func_success failed.
300 fi
301
302 if as_func_failure; then
303   exitcode=1
304   echo as_func_failure succeeded.
305 fi
306
307 if as_func_ret_success; then
308   :
309 else
310   exitcode=1
311   echo as_func_ret_success failed.
312 fi
313
314 if as_func_ret_failure; then
315   exitcode=1
316   echo as_func_ret_failure succeeded.
317 fi
318
319 if ( set x; as_func_ret_success y && test x = "$1" ); then
320   :
321 else
322   exitcode=1
323   echo positional parameters were not saved.
324 fi
325
326 test $exitcode = 0) || { (exit 1); exit 1; }
327
328 (
329   as_lineno_1=$LINENO
330   as_lineno_2=$LINENO
331   test "x$as_lineno_1" != "x$as_lineno_2" &&
332   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
333
334 _ASEOF
335 }; then
336   break
337 fi
338
339 fi
340
341       done
342
343       if test "x$CONFIG_SHELL" != x; then
344   for as_var in BASH_ENV ENV
345         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
346         done
347         export CONFIG_SHELL
348         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
349 fi
350
351
352     if test $as_have_required = no; then
353   echo This script requires a shell more modern than all the
354       echo shells that I found on your system.  Please install a
355       echo modern shell, or manually run the script under such a
356       echo shell if you do have one.
357       { (exit 1); exit 1; }
358 fi
359
360
361 fi
362
363 fi
364
365
366
367 (eval "as_func_return () {
368   (exit \$1)
369 }
370 as_func_success () {
371   as_func_return 0
372 }
373 as_func_failure () {
374   as_func_return 1
375 }
376 as_func_ret_success () {
377   return 0
378 }
379 as_func_ret_failure () {
380   return 1
381 }
382
383 exitcode=0
384 if as_func_success; then
385   :
386 else
387   exitcode=1
388   echo as_func_success failed.
389 fi
390
391 if as_func_failure; then
392   exitcode=1
393   echo as_func_failure succeeded.
394 fi
395
396 if as_func_ret_success; then
397   :
398 else
399   exitcode=1
400   echo as_func_ret_success failed.
401 fi
402
403 if as_func_ret_failure; then
404   exitcode=1
405   echo as_func_ret_failure succeeded.
406 fi
407
408 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409   :
410 else
411   exitcode=1
412   echo positional parameters were not saved.
413 fi
414
415 test \$exitcode = 0") || {
416   echo No shell found that supports shell functions.
417   echo Please tell autoconf@gnu.org about your system,
418   echo including any error possibly output before this
419   echo message
420 }
421
422
423
424   as_lineno_1=$LINENO
425   as_lineno_2=$LINENO
426   test "x$as_lineno_1" != "x$as_lineno_2" &&
427   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428
429   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
430   # uniformly replaced by the line number.  The first 'sed' inserts a
431   # line-number line after each line using $LINENO; the second 'sed'
432   # does the real work.  The second script uses 'N' to pair each
433   # line-number line with the line containing $LINENO, and appends
434   # trailing '-' during substitution so that $LINENO is not a special
435   # case at line end.
436   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
437   # scripts with optimization help from Paolo Bonzini.  Blame Lee
438   # E. McMahon (1931-1989) for sed's syntax.  :-)
439   sed -n '
440     p
441     /[$]LINENO/=
442   ' <$as_myself |
443     sed '
444       s/[$]LINENO.*/&-/
445       t lineno
446       b
447       :lineno
448       N
449       :loop
450       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
451       t loop
452       s/-\n.*//
453     ' >$as_me.lineno &&
454   chmod +x "$as_me.lineno" ||
455     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
456    { (exit 1); exit 1; }; }
457
458   # Don't try to exec as it changes $[0], causing all sort of problems
459   # (the dirname of $[0] is not the place where we might find the
460   # original and so on.  Autoconf is especially sensitive to this).
461   . "./$as_me.lineno"
462   # Exit status is that of the last command.
463   exit
464 }
465
466
467 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
468   as_dirname=dirname
469 else
470   as_dirname=false
471 fi
472
473 ECHO_C= ECHO_N= ECHO_T=
474 case `echo -n x` in
475 -n*)
476   case `echo 'x\c'` in
477   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
478   *)   ECHO_C='\c';;
479   esac;;
480 *)
481   ECHO_N='-n';;
482 esac
483
484 if expr a : '\(a\)' >/dev/null 2>&1 &&
485    test "X`expr 00001 : '.*\(...\)'`" = X001; then
486   as_expr=expr
487 else
488   as_expr=false
489 fi
490
491 rm -f conf$$ conf$$.exe conf$$.file
492 if test -d conf$$.dir; then
493   rm -f conf$$.dir/conf$$.file
494 else
495   rm -f conf$$.dir
496   mkdir conf$$.dir
497 fi
498 echo >conf$$.file
499 if ln -s conf$$.file conf$$ 2>/dev/null; then
500   as_ln_s='ln -s'
501   # ... but there are two gotchas:
502   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
503   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
504   # In both cases, we have to default to `cp -p'.
505   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506     as_ln_s='cp -p'
507 elif ln conf$$.file conf$$ 2>/dev/null; then
508   as_ln_s=ln
509 else
510   as_ln_s='cp -p'
511 fi
512 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
513 rmdir conf$$.dir 2>/dev/null
514
515 if mkdir -p . 2>/dev/null; then
516   as_mkdir_p=:
517 else
518   test -d ./-p && rmdir ./-p
519   as_mkdir_p=false
520 fi
521
522 if test -x / >/dev/null 2>&1; then
523   as_test_x='test -x'
524 else
525   if ls -dL / >/dev/null 2>&1; then
526     as_ls_L_option=L
527   else
528     as_ls_L_option=
529   fi
530   as_test_x='
531     eval sh -c '\''
532       if test -d "$1"; then
533         test -d "$1/.";
534       else
535         case $1 in
536         -*)set "./$1";;
537         esac;
538         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
539         ???[sx]*):;;*)false;;esac;fi
540     '\'' sh
541   '
542 fi
543 as_executable_p=$as_test_x
544
545 # Sed expression to map a string onto a valid CPP name.
546 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547
548 # Sed expression to map a string onto a valid variable name.
549 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
550
551
552
553 exec 7<&0 </dev/null 6>&1
554
555 # Name of the host.
556 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
557 # so uname gets run too.
558 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
559
560 #
561 # Initializations.
562 #
563 ac_default_prefix=/usr/local
564 ac_clean_files=
565 ac_config_libobj_dir=.
566 LIBOBJS=
567 cross_compiling=no
568 subdirs=
569 MFLAGS=
570 MAKEFLAGS=
571 SHELL=${CONFIG_SHELL-/bin/sh}
572
573 # Identity of this package.
574 PACKAGE_NAME=
575 PACKAGE_TARNAME=
576 PACKAGE_VERSION=
577 PACKAGE_STRING=
578 PACKAGE_BUGREPORT=
579
580 ac_unique_file="rlm_python.c"
581 ac_subst_vars='SHELL
582 PATH_SEPARATOR
583 PACKAGE_NAME
584 PACKAGE_TARNAME
585 PACKAGE_VERSION
586 PACKAGE_STRING
587 PACKAGE_BUGREPORT
588 exec_prefix
589 prefix
590 program_transform_name
591 bindir
592 sbindir
593 libexecdir
594 datarootdir
595 datadir
596 sysconfdir
597 sharedstatedir
598 localstatedir
599 includedir
600 oldincludedir
601 docdir
602 infodir
603 htmldir
604 dvidir
605 pdfdir
606 psdir
607 libdir
608 localedir
609 mandir
610 DEFS
611 ECHO_C
612 ECHO_N
613 ECHO_T
614 LIBS
615 build_alias
616 host_alias
617 target_alias
618 CC
619 CFLAGS
620 LDFLAGS
621 CPPFLAGS
622 ac_ct_CC
623 EXEEXT
624 OBJEXT
625 CPP
626 PYTHONBIN
627 python_ldflags
628 python_cflags
629 targetname
630 LIBOBJS
631 LTLIBOBJS'
632 ac_subst_files=''
633       ac_precious_vars='build_alias
634 host_alias
635 target_alias
636 CC
637 CFLAGS
638 LDFLAGS
639 LIBS
640 CPPFLAGS
641 CPP'
642
643
644 # Initialize some variables set by options.
645 ac_init_help=
646 ac_init_version=false
647 # The variables have the same names as the options, with
648 # dashes changed to underlines.
649 cache_file=/dev/null
650 exec_prefix=NONE
651 no_create=
652 no_recursion=
653 prefix=NONE
654 program_prefix=NONE
655 program_suffix=NONE
656 program_transform_name=s,x,x,
657 silent=
658 site=
659 srcdir=
660 verbose=
661 x_includes=NONE
662 x_libraries=NONE
663
664 # Installation directory options.
665 # These are left unexpanded so users can "make install exec_prefix=/foo"
666 # and all the variables that are supposed to be based on exec_prefix
667 # by default will actually change.
668 # Use braces instead of parens because sh, perl, etc. also accept them.
669 # (The list follows the same order as the GNU Coding Standards.)
670 bindir='${exec_prefix}/bin'
671 sbindir='${exec_prefix}/sbin'
672 libexecdir='${exec_prefix}/libexec'
673 datarootdir='${prefix}/share'
674 datadir='${datarootdir}'
675 sysconfdir='${prefix}/etc'
676 sharedstatedir='${prefix}/com'
677 localstatedir='${prefix}/var'
678 includedir='${prefix}/include'
679 oldincludedir='/usr/include'
680 docdir='${datarootdir}/doc/${PACKAGE}'
681 infodir='${datarootdir}/info'
682 htmldir='${docdir}'
683 dvidir='${docdir}'
684 pdfdir='${docdir}'
685 psdir='${docdir}'
686 libdir='${exec_prefix}/lib'
687 localedir='${datarootdir}/locale'
688 mandir='${datarootdir}/man'
689
690 ac_prev=
691 ac_dashdash=
692 for ac_option
693 do
694   # If the previous option needs an argument, assign it.
695   if test -n "$ac_prev"; then
696     eval $ac_prev=\$ac_option
697     ac_prev=
698     continue
699   fi
700
701   case $ac_option in
702   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
703   *)    ac_optarg=yes ;;
704   esac
705
706   # Accept the important Cygnus configure options, so we can diagnose typos.
707
708   case $ac_dashdash$ac_option in
709   --)
710     ac_dashdash=yes ;;
711
712   -bindir | --bindir | --bindi | --bind | --bin | --bi)
713     ac_prev=bindir ;;
714   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
715     bindir=$ac_optarg ;;
716
717   -build | --build | --buil | --bui | --bu)
718     ac_prev=build_alias ;;
719   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
720     build_alias=$ac_optarg ;;
721
722   -cache-file | --cache-file | --cache-fil | --cache-fi \
723   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
724     ac_prev=cache_file ;;
725   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
726   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
727     cache_file=$ac_optarg ;;
728
729   --config-cache | -C)
730     cache_file=config.cache ;;
731
732   -datadir | --datadir | --datadi | --datad)
733     ac_prev=datadir ;;
734   -datadir=* | --datadir=* | --datadi=* | --datad=*)
735     datadir=$ac_optarg ;;
736
737   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
738   | --dataroo | --dataro | --datar)
739     ac_prev=datarootdir ;;
740   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
741   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
742     datarootdir=$ac_optarg ;;
743
744   -disable-* | --disable-*)
745     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
746     # Reject names that are not valid shell variable names.
747     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
748       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
749    { (exit 1); exit 1; }; }
750     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
751     eval enable_$ac_feature=no ;;
752
753   -docdir | --docdir | --docdi | --doc | --do)
754     ac_prev=docdir ;;
755   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
756     docdir=$ac_optarg ;;
757
758   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
759     ac_prev=dvidir ;;
760   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
761     dvidir=$ac_optarg ;;
762
763   -enable-* | --enable-*)
764     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
765     # Reject names that are not valid shell variable names.
766     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
767       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
768    { (exit 1); exit 1; }; }
769     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
770     eval enable_$ac_feature=\$ac_optarg ;;
771
772   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
773   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
774   | --exec | --exe | --ex)
775     ac_prev=exec_prefix ;;
776   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
777   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
778   | --exec=* | --exe=* | --ex=*)
779     exec_prefix=$ac_optarg ;;
780
781   -gas | --gas | --ga | --g)
782     # Obsolete; use --with-gas.
783     with_gas=yes ;;
784
785   -help | --help | --hel | --he | -h)
786     ac_init_help=long ;;
787   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
788     ac_init_help=recursive ;;
789   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
790     ac_init_help=short ;;
791
792   -host | --host | --hos | --ho)
793     ac_prev=host_alias ;;
794   -host=* | --host=* | --hos=* | --ho=*)
795     host_alias=$ac_optarg ;;
796
797   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
798     ac_prev=htmldir ;;
799   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
800   | --ht=*)
801     htmldir=$ac_optarg ;;
802
803   -includedir | --includedir | --includedi | --included | --include \
804   | --includ | --inclu | --incl | --inc)
805     ac_prev=includedir ;;
806   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
807   | --includ=* | --inclu=* | --incl=* | --inc=*)
808     includedir=$ac_optarg ;;
809
810   -infodir | --infodir | --infodi | --infod | --info | --inf)
811     ac_prev=infodir ;;
812   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
813     infodir=$ac_optarg ;;
814
815   -libdir | --libdir | --libdi | --libd)
816     ac_prev=libdir ;;
817   -libdir=* | --libdir=* | --libdi=* | --libd=*)
818     libdir=$ac_optarg ;;
819
820   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
821   | --libexe | --libex | --libe)
822     ac_prev=libexecdir ;;
823   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
824   | --libexe=* | --libex=* | --libe=*)
825     libexecdir=$ac_optarg ;;
826
827   -localedir | --localedir | --localedi | --localed | --locale)
828     ac_prev=localedir ;;
829   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
830     localedir=$ac_optarg ;;
831
832   -localstatedir | --localstatedir | --localstatedi | --localstated \
833   | --localstate | --localstat | --localsta | --localst | --locals)
834     ac_prev=localstatedir ;;
835   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
836   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
837     localstatedir=$ac_optarg ;;
838
839   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
840     ac_prev=mandir ;;
841   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
842     mandir=$ac_optarg ;;
843
844   -nfp | --nfp | --nf)
845     # Obsolete; use --without-fp.
846     with_fp=no ;;
847
848   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
849   | --no-cr | --no-c | -n)
850     no_create=yes ;;
851
852   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
853   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
854     no_recursion=yes ;;
855
856   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
857   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
858   | --oldin | --oldi | --old | --ol | --o)
859     ac_prev=oldincludedir ;;
860   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
861   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
862   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
863     oldincludedir=$ac_optarg ;;
864
865   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
866     ac_prev=prefix ;;
867   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
868     prefix=$ac_optarg ;;
869
870   -program-prefix | --program-prefix | --program-prefi | --program-pref \
871   | --program-pre | --program-pr | --program-p)
872     ac_prev=program_prefix ;;
873   -program-prefix=* | --program-prefix=* | --program-prefi=* \
874   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
875     program_prefix=$ac_optarg ;;
876
877   -program-suffix | --program-suffix | --program-suffi | --program-suff \
878   | --program-suf | --program-su | --program-s)
879     ac_prev=program_suffix ;;
880   -program-suffix=* | --program-suffix=* | --program-suffi=* \
881   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
882     program_suffix=$ac_optarg ;;
883
884   -program-transform-name | --program-transform-name \
885   | --program-transform-nam | --program-transform-na \
886   | --program-transform-n | --program-transform- \
887   | --program-transform | --program-transfor \
888   | --program-transfo | --program-transf \
889   | --program-trans | --program-tran \
890   | --progr-tra | --program-tr | --program-t)
891     ac_prev=program_transform_name ;;
892   -program-transform-name=* | --program-transform-name=* \
893   | --program-transform-nam=* | --program-transform-na=* \
894   | --program-transform-n=* | --program-transform-=* \
895   | --program-transform=* | --program-transfor=* \
896   | --program-transfo=* | --program-transf=* \
897   | --program-trans=* | --program-tran=* \
898   | --progr-tra=* | --program-tr=* | --program-t=*)
899     program_transform_name=$ac_optarg ;;
900
901   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
902     ac_prev=pdfdir ;;
903   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
904     pdfdir=$ac_optarg ;;
905
906   -psdir | --psdir | --psdi | --psd | --ps)
907     ac_prev=psdir ;;
908   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
909     psdir=$ac_optarg ;;
910
911   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
912   | -silent | --silent | --silen | --sile | --sil)
913     silent=yes ;;
914
915   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
916     ac_prev=sbindir ;;
917   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
918   | --sbi=* | --sb=*)
919     sbindir=$ac_optarg ;;
920
921   -sharedstatedir | --sharedstatedir | --sharedstatedi \
922   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
923   | --sharedst | --shareds | --shared | --share | --shar \
924   | --sha | --sh)
925     ac_prev=sharedstatedir ;;
926   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
927   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
928   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
929   | --sha=* | --sh=*)
930     sharedstatedir=$ac_optarg ;;
931
932   -site | --site | --sit)
933     ac_prev=site ;;
934   -site=* | --site=* | --sit=*)
935     site=$ac_optarg ;;
936
937   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
938     ac_prev=srcdir ;;
939   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
940     srcdir=$ac_optarg ;;
941
942   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
943   | --syscon | --sysco | --sysc | --sys | --sy)
944     ac_prev=sysconfdir ;;
945   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
946   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
947     sysconfdir=$ac_optarg ;;
948
949   -target | --target | --targe | --targ | --tar | --ta | --t)
950     ac_prev=target_alias ;;
951   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
952     target_alias=$ac_optarg ;;
953
954   -v | -verbose | --verbose | --verbos | --verbo | --verb)
955     verbose=yes ;;
956
957   -version | --version | --versio | --versi | --vers | -V)
958     ac_init_version=: ;;
959
960   -with-* | --with-*)
961     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
962     # Reject names that are not valid shell variable names.
963     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
964       { echo "$as_me: error: invalid package name: $ac_package" >&2
965    { (exit 1); exit 1; }; }
966     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
967     eval with_$ac_package=\$ac_optarg ;;
968
969   -without-* | --without-*)
970     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
971     # Reject names that are not valid shell variable names.
972     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
973       { echo "$as_me: error: invalid package name: $ac_package" >&2
974    { (exit 1); exit 1; }; }
975     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
976     eval with_$ac_package=no ;;
977
978   --x)
979     # Obsolete; use --with-x.
980     with_x=yes ;;
981
982   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
983   | --x-incl | --x-inc | --x-in | --x-i)
984     ac_prev=x_includes ;;
985   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
986   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
987     x_includes=$ac_optarg ;;
988
989   -x-libraries | --x-libraries | --x-librarie | --x-librari \
990   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
991     ac_prev=x_libraries ;;
992   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
993   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
994     x_libraries=$ac_optarg ;;
995
996   -*) { echo "$as_me: error: unrecognized option: $ac_option
997 Try \`$0 --help' for more information." >&2
998    { (exit 1); exit 1; }; }
999     ;;
1000
1001   *=*)
1002     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1003     # Reject names that are not valid shell variable names.
1004     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1005       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1006    { (exit 1); exit 1; }; }
1007     eval $ac_envvar=\$ac_optarg
1008     export $ac_envvar ;;
1009
1010   *)
1011     # FIXME: should be removed in autoconf 3.0.
1012     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1013     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1014       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1015     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1016     ;;
1017
1018   esac
1019 done
1020
1021 if test -n "$ac_prev"; then
1022   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1023   { echo "$as_me: error: missing argument to $ac_option" >&2
1024    { (exit 1); exit 1; }; }
1025 fi
1026
1027 # Be sure to have absolute directory names.
1028 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1029                 datadir sysconfdir sharedstatedir localstatedir includedir \
1030                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1031                 libdir localedir mandir
1032 do
1033   eval ac_val=\$$ac_var
1034   case $ac_val in
1035     [\\/$]* | ?:[\\/]* )  continue;;
1036     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1037   esac
1038   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1039    { (exit 1); exit 1; }; }
1040 done
1041
1042 # There might be people who depend on the old broken behavior: `$host'
1043 # used to hold the argument of --host etc.
1044 # FIXME: To remove some day.
1045 build=$build_alias
1046 host=$host_alias
1047 target=$target_alias
1048
1049 # FIXME: To remove some day.
1050 if test "x$host_alias" != x; then
1051   if test "x$build_alias" = x; then
1052     cross_compiling=maybe
1053     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1054     If a cross compiler is detected then cross compile mode will be used." >&2
1055   elif test "x$build_alias" != "x$host_alias"; then
1056     cross_compiling=yes
1057   fi
1058 fi
1059
1060 ac_tool_prefix=
1061 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1062
1063 test "$silent" = yes && exec 6>/dev/null
1064
1065
1066 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1067 ac_ls_di=`ls -di .` &&
1068 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1069   { echo "$as_me: error: Working directory cannot be determined" >&2
1070    { (exit 1); exit 1; }; }
1071 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1072   { echo "$as_me: error: pwd does not report name of working directory" >&2
1073    { (exit 1); exit 1; }; }
1074
1075
1076 # Find the source files, if location was not specified.
1077 if test -z "$srcdir"; then
1078   ac_srcdir_defaulted=yes
1079   # Try the directory containing this script, then the parent directory.
1080   ac_confdir=`$as_dirname -- "$0" ||
1081 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1082          X"$0" : 'X\(//\)[^/]' \| \
1083          X"$0" : 'X\(//\)$' \| \
1084          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1085 echo X"$0" |
1086     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1087             s//\1/
1088             q
1089           }
1090           /^X\(\/\/\)[^/].*/{
1091             s//\1/
1092             q
1093           }
1094           /^X\(\/\/\)$/{
1095             s//\1/
1096             q
1097           }
1098           /^X\(\/\).*/{
1099             s//\1/
1100             q
1101           }
1102           s/.*/./; q'`
1103   srcdir=$ac_confdir
1104   if test ! -r "$srcdir/$ac_unique_file"; then
1105     srcdir=..
1106   fi
1107 else
1108   ac_srcdir_defaulted=no
1109 fi
1110 if test ! -r "$srcdir/$ac_unique_file"; then
1111   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1112   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1113    { (exit 1); exit 1; }; }
1114 fi
1115 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1116 ac_abs_confdir=`(
1117         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1118    { (exit 1); exit 1; }; }
1119         pwd)`
1120 # When building in place, set srcdir=.
1121 if test "$ac_abs_confdir" = "$ac_pwd"; then
1122   srcdir=.
1123 fi
1124 # Remove unnecessary trailing slashes from srcdir.
1125 # Double slashes in file names in object file debugging info
1126 # mess up M-x gdb in Emacs.
1127 case $srcdir in
1128 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1129 esac
1130 for ac_var in $ac_precious_vars; do
1131   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1132   eval ac_env_${ac_var}_value=\$${ac_var}
1133   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1134   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1135 done
1136
1137 #
1138 # Report the --help message.
1139 #
1140 if test "$ac_init_help" = "long"; then
1141   # Omit some internal or obsolete options to make the list less imposing.
1142   # This message is too long to be a string in the A/UX 3.1 sh.
1143   cat <<_ACEOF
1144 \`configure' configures this package to adapt to many kinds of systems.
1145
1146 Usage: $0 [OPTION]... [VAR=VALUE]...
1147
1148 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1149 VAR=VALUE.  See below for descriptions of some of the useful variables.
1150
1151 Defaults for the options are specified in brackets.
1152
1153 Configuration:
1154   -h, --help              display this help and exit
1155       --help=short        display options specific to this package
1156       --help=recursive    display the short help of all the included packages
1157   -V, --version           display version information and exit
1158   -q, --quiet, --silent   do not print \`checking...' messages
1159       --cache-file=FILE   cache test results in FILE [disabled]
1160   -C, --config-cache      alias for \`--cache-file=config.cache'
1161   -n, --no-create         do not create output files
1162       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1163
1164 Installation directories:
1165   --prefix=PREFIX         install architecture-independent files in PREFIX
1166                           [$ac_default_prefix]
1167   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1168                           [PREFIX]
1169
1170 By default, \`make install' will install all the files in
1171 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1172 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1173 for instance \`--prefix=\$HOME'.
1174
1175 For better control, use the options below.
1176
1177 Fine tuning of the installation directories:
1178   --bindir=DIR           user executables [EPREFIX/bin]
1179   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1180   --libexecdir=DIR       program executables [EPREFIX/libexec]
1181   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1182   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1183   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1184   --libdir=DIR           object code libraries [EPREFIX/lib]
1185   --includedir=DIR       C header files [PREFIX/include]
1186   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1187   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1188   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1189   --infodir=DIR          info documentation [DATAROOTDIR/info]
1190   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1191   --mandir=DIR           man documentation [DATAROOTDIR/man]
1192   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1193   --htmldir=DIR          html documentation [DOCDIR]
1194   --dvidir=DIR           dvi documentation [DOCDIR]
1195   --pdfdir=DIR           pdf documentation [DOCDIR]
1196   --psdir=DIR            ps documentation [DOCDIR]
1197 _ACEOF
1198
1199   cat <<\_ACEOF
1200 _ACEOF
1201 fi
1202
1203 if test -n "$ac_init_help"; then
1204
1205   cat <<\_ACEOF
1206
1207 Optional Packages:
1208   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1209   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1210   --with-rlm-python-lib-dir=DIR       Directory for Python library files
1211   --with-rlm-python-include-dir=DIR   Directory for Python include files
1212
1213 Some influential environment variables:
1214   CC          C compiler command
1215   CFLAGS      C compiler flags
1216   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1217               nonstandard directory <lib dir>
1218   LIBS        libraries to pass to the linker, e.g. -l<library>
1219   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1220               you have headers in a nonstandard directory <include dir>
1221   CPP         C preprocessor
1222
1223 Use these variables to override the choices made by `configure' or to help
1224 it to find libraries and programs with nonstandard names/locations.
1225
1226 _ACEOF
1227 ac_status=$?
1228 fi
1229
1230 if test "$ac_init_help" = "recursive"; then
1231   # If there are subdirs, report their specific --help.
1232   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1233     test -d "$ac_dir" || continue
1234     ac_builddir=.
1235
1236 case "$ac_dir" in
1237 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1238 *)
1239   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1240   # A ".." for each directory in $ac_dir_suffix.
1241   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1242   case $ac_top_builddir_sub in
1243   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1244   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1245   esac ;;
1246 esac
1247 ac_abs_top_builddir=$ac_pwd
1248 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1249 # for backward compatibility:
1250 ac_top_builddir=$ac_top_build_prefix
1251
1252 case $srcdir in
1253   .)  # We are building in place.
1254     ac_srcdir=.
1255     ac_top_srcdir=$ac_top_builddir_sub
1256     ac_abs_top_srcdir=$ac_pwd ;;
1257   [\\/]* | ?:[\\/]* )  # Absolute name.
1258     ac_srcdir=$srcdir$ac_dir_suffix;
1259     ac_top_srcdir=$srcdir
1260     ac_abs_top_srcdir=$srcdir ;;
1261   *) # Relative name.
1262     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1263     ac_top_srcdir=$ac_top_build_prefix$srcdir
1264     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1265 esac
1266 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1267
1268     cd "$ac_dir" || { ac_status=$?; continue; }
1269     # Check for guested configure.
1270     if test -f "$ac_srcdir/configure.gnu"; then
1271       echo &&
1272       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1273     elif test -f "$ac_srcdir/configure"; then
1274       echo &&
1275       $SHELL "$ac_srcdir/configure" --help=recursive
1276     else
1277       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1278     fi || ac_status=$?
1279     cd "$ac_pwd" || { ac_status=$?; break; }
1280   done
1281 fi
1282
1283 test -n "$ac_init_help" && exit $ac_status
1284 if $ac_init_version; then
1285   cat <<\_ACEOF
1286 configure
1287 generated by GNU Autoconf 2.61
1288
1289 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1290 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1291 This configure script is free software; the Free Software Foundation
1292 gives unlimited permission to copy, distribute and modify it.
1293 _ACEOF
1294   exit
1295 fi
1296 cat >config.log <<_ACEOF
1297 This file contains any messages produced by compilers while
1298 running configure, to aid debugging if configure makes a mistake.
1299
1300 It was created by $as_me, which was
1301 generated by GNU Autoconf 2.61.  Invocation command line was
1302
1303   $ $0 $@
1304
1305 _ACEOF
1306 exec 5>>config.log
1307 {
1308 cat <<_ASUNAME
1309 ## --------- ##
1310 ## Platform. ##
1311 ## --------- ##
1312
1313 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1314 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1315 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1316 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1317 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1318
1319 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1320 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1321
1322 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1323 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1324 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1325 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1326 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1327 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1328 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1329
1330 _ASUNAME
1331
1332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1333 for as_dir in $PATH
1334 do
1335   IFS=$as_save_IFS
1336   test -z "$as_dir" && as_dir=.
1337   echo "PATH: $as_dir"
1338 done
1339 IFS=$as_save_IFS
1340
1341 } >&5
1342
1343 cat >&5 <<_ACEOF
1344
1345
1346 ## ----------- ##
1347 ## Core tests. ##
1348 ## ----------- ##
1349
1350 _ACEOF
1351
1352
1353 # Keep a trace of the command line.
1354 # Strip out --no-create and --no-recursion so they do not pile up.
1355 # Strip out --silent because we don't want to record it for future runs.
1356 # Also quote any args containing shell meta-characters.
1357 # Make two passes to allow for proper duplicate-argument suppression.
1358 ac_configure_args=
1359 ac_configure_args0=
1360 ac_configure_args1=
1361 ac_must_keep_next=false
1362 for ac_pass in 1 2
1363 do
1364   for ac_arg
1365   do
1366     case $ac_arg in
1367     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1368     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1369     | -silent | --silent | --silen | --sile | --sil)
1370       continue ;;
1371     *\'*)
1372       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1373     esac
1374     case $ac_pass in
1375     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1376     2)
1377       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1378       if test $ac_must_keep_next = true; then
1379         ac_must_keep_next=false # Got value, back to normal.
1380       else
1381         case $ac_arg in
1382           *=* | --config-cache | -C | -disable-* | --disable-* \
1383           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1384           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1385           | -with-* | --with-* | -without-* | --without-* | --x)
1386             case "$ac_configure_args0 " in
1387               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1388             esac
1389             ;;
1390           -* ) ac_must_keep_next=true ;;
1391         esac
1392       fi
1393       ac_configure_args="$ac_configure_args '$ac_arg'"
1394       ;;
1395     esac
1396   done
1397 done
1398 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1399 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1400
1401 # When interrupted or exit'd, cleanup temporary files, and complete
1402 # config.log.  We remove comments because anyway the quotes in there
1403 # would cause problems or look ugly.
1404 # WARNING: Use '\'' to represent an apostrophe within the trap.
1405 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1406 trap 'exit_status=$?
1407   # Save into config.log some information that might help in debugging.
1408   {
1409     echo
1410
1411     cat <<\_ASBOX
1412 ## ---------------- ##
1413 ## Cache variables. ##
1414 ## ---------------- ##
1415 _ASBOX
1416     echo
1417     # The following way of writing the cache mishandles newlines in values,
1418 (
1419   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1420     eval ac_val=\$$ac_var
1421     case $ac_val in #(
1422     *${as_nl}*)
1423       case $ac_var in #(
1424       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1425 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1426       esac
1427       case $ac_var in #(
1428       _ | IFS | as_nl) ;; #(
1429       *) $as_unset $ac_var ;;
1430       esac ;;
1431     esac
1432   done
1433   (set) 2>&1 |
1434     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1435     *${as_nl}ac_space=\ *)
1436       sed -n \
1437         "s/'\''/'\''\\\\'\'''\''/g;
1438           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1439       ;; #(
1440     *)
1441       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1442       ;;
1443     esac |
1444     sort
1445 )
1446     echo
1447
1448     cat <<\_ASBOX
1449 ## ----------------- ##
1450 ## Output variables. ##
1451 ## ----------------- ##
1452 _ASBOX
1453     echo
1454     for ac_var in $ac_subst_vars
1455     do
1456       eval ac_val=\$$ac_var
1457       case $ac_val in
1458       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1459       esac
1460       echo "$ac_var='\''$ac_val'\''"
1461     done | sort
1462     echo
1463
1464     if test -n "$ac_subst_files"; then
1465       cat <<\_ASBOX
1466 ## ------------------- ##
1467 ## File substitutions. ##
1468 ## ------------------- ##
1469 _ASBOX
1470       echo
1471       for ac_var in $ac_subst_files
1472       do
1473         eval ac_val=\$$ac_var
1474         case $ac_val in
1475         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1476         esac
1477         echo "$ac_var='\''$ac_val'\''"
1478       done | sort
1479       echo
1480     fi
1481
1482     if test -s confdefs.h; then
1483       cat <<\_ASBOX
1484 ## ----------- ##
1485 ## confdefs.h. ##
1486 ## ----------- ##
1487 _ASBOX
1488       echo
1489       cat confdefs.h
1490       echo
1491     fi
1492     test "$ac_signal" != 0 &&
1493       echo "$as_me: caught signal $ac_signal"
1494     echo "$as_me: exit $exit_status"
1495   } >&5
1496   rm -f core *.core core.conftest.* &&
1497     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1498     exit $exit_status
1499 ' 0
1500 for ac_signal in 1 2 13 15; do
1501   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1502 done
1503 ac_signal=0
1504
1505 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1506 rm -f -r conftest* confdefs.h
1507
1508 # Predefined preprocessor variables.
1509
1510 cat >>confdefs.h <<_ACEOF
1511 #define PACKAGE_NAME "$PACKAGE_NAME"
1512 _ACEOF
1513
1514
1515 cat >>confdefs.h <<_ACEOF
1516 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1517 _ACEOF
1518
1519
1520 cat >>confdefs.h <<_ACEOF
1521 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1522 _ACEOF
1523
1524
1525 cat >>confdefs.h <<_ACEOF
1526 #define PACKAGE_STRING "$PACKAGE_STRING"
1527 _ACEOF
1528
1529
1530 cat >>confdefs.h <<_ACEOF
1531 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1532 _ACEOF
1533
1534
1535 # Let the site file select an alternate cache file if it wants to.
1536 # Prefer explicitly selected file to automatically selected ones.
1537 if test -n "$CONFIG_SITE"; then
1538   set x "$CONFIG_SITE"
1539 elif test "x$prefix" != xNONE; then
1540   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1541 else
1542   set x "$ac_default_prefix/share/config.site" \
1543         "$ac_default_prefix/etc/config.site"
1544 fi
1545 shift
1546 for ac_site_file
1547 do
1548   if test -r "$ac_site_file"; then
1549     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1550 echo "$as_me: loading site script $ac_site_file" >&6;}
1551     sed 's/^/| /' "$ac_site_file" >&5
1552     . "$ac_site_file"
1553   fi
1554 done
1555
1556 if test -r "$cache_file"; then
1557   # Some versions of bash will fail to source /dev/null (special
1558   # files actually), so we avoid doing that.
1559   if test -f "$cache_file"; then
1560     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1561 echo "$as_me: loading cache $cache_file" >&6;}
1562     case $cache_file in
1563       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1564       *)                      . "./$cache_file";;
1565     esac
1566   fi
1567 else
1568   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1569 echo "$as_me: creating cache $cache_file" >&6;}
1570   >$cache_file
1571 fi
1572
1573 # Check that the precious variables saved in the cache have kept the same
1574 # value.
1575 ac_cache_corrupted=false
1576 for ac_var in $ac_precious_vars; do
1577   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1578   eval ac_new_set=\$ac_env_${ac_var}_set
1579   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1580   eval ac_new_val=\$ac_env_${ac_var}_value
1581   case $ac_old_set,$ac_new_set in
1582     set,)
1583       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1584 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1585       ac_cache_corrupted=: ;;
1586     ,set)
1587       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1588 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1589       ac_cache_corrupted=: ;;
1590     ,);;
1591     *)
1592       if test "x$ac_old_val" != "x$ac_new_val"; then
1593         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1594 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1595         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1596 echo "$as_me:   former value:  $ac_old_val" >&2;}
1597         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1598 echo "$as_me:   current value: $ac_new_val" >&2;}
1599         ac_cache_corrupted=:
1600       fi;;
1601   esac
1602   # Pass precious variables to config.status.
1603   if test "$ac_new_set" = set; then
1604     case $ac_new_val in
1605     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1606     *) ac_arg=$ac_var=$ac_new_val ;;
1607     esac
1608     case " $ac_configure_args " in
1609       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1610       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1611     esac
1612   fi
1613 done
1614 if $ac_cache_corrupted; then
1615   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1616 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1617   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1618 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1619    { (exit 1); exit 1; }; }
1620 fi
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638 ac_ext=c
1639 ac_cpp='$CPP $CPPFLAGS'
1640 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1641 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1642 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1643
1644
1645
1646
1647
1648 if test x$with_rlm_python != xno; then
1649
1650         ac_ext=c
1651 ac_cpp='$CPP $CPPFLAGS'
1652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1655 if test -n "$ac_tool_prefix"; then
1656   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1657 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1658 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1660 if test "${ac_cv_prog_CC+set}" = set; then
1661   echo $ECHO_N "(cached) $ECHO_C" >&6
1662 else
1663   if test -n "$CC"; then
1664   ac_cv_prog_CC="$CC" # Let the user override the test.
1665 else
1666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1667 for as_dir in $PATH
1668 do
1669   IFS=$as_save_IFS
1670   test -z "$as_dir" && as_dir=.
1671   for ac_exec_ext in '' $ac_executable_extensions; do
1672   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1673     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1674     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1675     break 2
1676   fi
1677 done
1678 done
1679 IFS=$as_save_IFS
1680
1681 fi
1682 fi
1683 CC=$ac_cv_prog_CC
1684 if test -n "$CC"; then
1685   { echo "$as_me:$LINENO: result: $CC" >&5
1686 echo "${ECHO_T}$CC" >&6; }
1687 else
1688   { echo "$as_me:$LINENO: result: no" >&5
1689 echo "${ECHO_T}no" >&6; }
1690 fi
1691
1692
1693 fi
1694 if test -z "$ac_cv_prog_CC"; then
1695   ac_ct_CC=$CC
1696   # Extract the first word of "gcc", so it can be a program name with args.
1697 set dummy gcc; ac_word=$2
1698 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1699 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1700 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1701   echo $ECHO_N "(cached) $ECHO_C" >&6
1702 else
1703   if test -n "$ac_ct_CC"; then
1704   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1705 else
1706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1707 for as_dir in $PATH
1708 do
1709   IFS=$as_save_IFS
1710   test -z "$as_dir" && as_dir=.
1711   for ac_exec_ext in '' $ac_executable_extensions; do
1712   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1713     ac_cv_prog_ac_ct_CC="gcc"
1714     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1715     break 2
1716   fi
1717 done
1718 done
1719 IFS=$as_save_IFS
1720
1721 fi
1722 fi
1723 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1724 if test -n "$ac_ct_CC"; then
1725   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1726 echo "${ECHO_T}$ac_ct_CC" >&6; }
1727 else
1728   { echo "$as_me:$LINENO: result: no" >&5
1729 echo "${ECHO_T}no" >&6; }
1730 fi
1731
1732   if test "x$ac_ct_CC" = x; then
1733     CC=""
1734   else
1735     case $cross_compiling:$ac_tool_warned in
1736 yes:)
1737 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1738 whose name does not start with the host triplet.  If you think this
1739 configuration is useful to you, please write to autoconf@gnu.org." >&5
1740 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1741 whose name does not start with the host triplet.  If you think this
1742 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1743 ac_tool_warned=yes ;;
1744 esac
1745     CC=$ac_ct_CC
1746   fi
1747 else
1748   CC="$ac_cv_prog_CC"
1749 fi
1750
1751 if test -z "$CC"; then
1752           if test -n "$ac_tool_prefix"; then
1753     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1754 set dummy ${ac_tool_prefix}cc; ac_word=$2
1755 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1757 if test "${ac_cv_prog_CC+set}" = set; then
1758   echo $ECHO_N "(cached) $ECHO_C" >&6
1759 else
1760   if test -n "$CC"; then
1761   ac_cv_prog_CC="$CC" # Let the user override the test.
1762 else
1763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1764 for as_dir in $PATH
1765 do
1766   IFS=$as_save_IFS
1767   test -z "$as_dir" && as_dir=.
1768   for ac_exec_ext in '' $ac_executable_extensions; do
1769   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1770     ac_cv_prog_CC="${ac_tool_prefix}cc"
1771     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1772     break 2
1773   fi
1774 done
1775 done
1776 IFS=$as_save_IFS
1777
1778 fi
1779 fi
1780 CC=$ac_cv_prog_CC
1781 if test -n "$CC"; then
1782   { echo "$as_me:$LINENO: result: $CC" >&5
1783 echo "${ECHO_T}$CC" >&6; }
1784 else
1785   { echo "$as_me:$LINENO: result: no" >&5
1786 echo "${ECHO_T}no" >&6; }
1787 fi
1788
1789
1790   fi
1791 fi
1792 if test -z "$CC"; then
1793   # Extract the first word of "cc", so it can be a program name with args.
1794 set dummy cc; ac_word=$2
1795 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1797 if test "${ac_cv_prog_CC+set}" = set; then
1798   echo $ECHO_N "(cached) $ECHO_C" >&6
1799 else
1800   if test -n "$CC"; then
1801   ac_cv_prog_CC="$CC" # Let the user override the test.
1802 else
1803   ac_prog_rejected=no
1804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1805 for as_dir in $PATH
1806 do
1807   IFS=$as_save_IFS
1808   test -z "$as_dir" && as_dir=.
1809   for ac_exec_ext in '' $ac_executable_extensions; do
1810   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1811     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1812        ac_prog_rejected=yes
1813        continue
1814      fi
1815     ac_cv_prog_CC="cc"
1816     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1817     break 2
1818   fi
1819 done
1820 done
1821 IFS=$as_save_IFS
1822
1823 if test $ac_prog_rejected = yes; then
1824   # We found a bogon in the path, so make sure we never use it.
1825   set dummy $ac_cv_prog_CC
1826   shift
1827   if test $# != 0; then
1828     # We chose a different compiler from the bogus one.
1829     # However, it has the same basename, so the bogon will be chosen
1830     # first if we set CC to just the basename; use the full file name.
1831     shift
1832     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1833   fi
1834 fi
1835 fi
1836 fi
1837 CC=$ac_cv_prog_CC
1838 if test -n "$CC"; then
1839   { echo "$as_me:$LINENO: result: $CC" >&5
1840 echo "${ECHO_T}$CC" >&6; }
1841 else
1842   { echo "$as_me:$LINENO: result: no" >&5
1843 echo "${ECHO_T}no" >&6; }
1844 fi
1845
1846
1847 fi
1848 if test -z "$CC"; then
1849   if test -n "$ac_tool_prefix"; then
1850   for ac_prog in cl.exe
1851   do
1852     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1853 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1854 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1856 if test "${ac_cv_prog_CC+set}" = set; then
1857   echo $ECHO_N "(cached) $ECHO_C" >&6
1858 else
1859   if test -n "$CC"; then
1860   ac_cv_prog_CC="$CC" # Let the user override the test.
1861 else
1862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1863 for as_dir in $PATH
1864 do
1865   IFS=$as_save_IFS
1866   test -z "$as_dir" && as_dir=.
1867   for ac_exec_ext in '' $ac_executable_extensions; do
1868   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1869     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1870     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1871     break 2
1872   fi
1873 done
1874 done
1875 IFS=$as_save_IFS
1876
1877 fi
1878 fi
1879 CC=$ac_cv_prog_CC
1880 if test -n "$CC"; then
1881   { echo "$as_me:$LINENO: result: $CC" >&5
1882 echo "${ECHO_T}$CC" >&6; }
1883 else
1884   { echo "$as_me:$LINENO: result: no" >&5
1885 echo "${ECHO_T}no" >&6; }
1886 fi
1887
1888
1889     test -n "$CC" && break
1890   done
1891 fi
1892 if test -z "$CC"; then
1893   ac_ct_CC=$CC
1894   for ac_prog in cl.exe
1895 do
1896   # Extract the first word of "$ac_prog", so it can be a program name with args.
1897 set dummy $ac_prog; ac_word=$2
1898 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1900 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1901   echo $ECHO_N "(cached) $ECHO_C" >&6
1902 else
1903   if test -n "$ac_ct_CC"; then
1904   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1905 else
1906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1907 for as_dir in $PATH
1908 do
1909   IFS=$as_save_IFS
1910   test -z "$as_dir" && as_dir=.
1911   for ac_exec_ext in '' $ac_executable_extensions; do
1912   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1913     ac_cv_prog_ac_ct_CC="$ac_prog"
1914     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1915     break 2
1916   fi
1917 done
1918 done
1919 IFS=$as_save_IFS
1920
1921 fi
1922 fi
1923 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1924 if test -n "$ac_ct_CC"; then
1925   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1926 echo "${ECHO_T}$ac_ct_CC" >&6; }
1927 else
1928   { echo "$as_me:$LINENO: result: no" >&5
1929 echo "${ECHO_T}no" >&6; }
1930 fi
1931
1932
1933   test -n "$ac_ct_CC" && break
1934 done
1935
1936   if test "x$ac_ct_CC" = x; then
1937     CC=""
1938   else
1939     case $cross_compiling:$ac_tool_warned in
1940 yes:)
1941 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1942 whose name does not start with the host triplet.  If you think this
1943 configuration is useful to you, please write to autoconf@gnu.org." >&5
1944 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1945 whose name does not start with the host triplet.  If you think this
1946 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1947 ac_tool_warned=yes ;;
1948 esac
1949     CC=$ac_ct_CC
1950   fi
1951 fi
1952
1953 fi
1954
1955
1956 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1957 See \`config.log' for more details." >&5
1958 echo "$as_me: error: no acceptable C compiler found in \$PATH
1959 See \`config.log' for more details." >&2;}
1960    { (exit 1); exit 1; }; }
1961
1962 # Provide some information about the compiler.
1963 echo "$as_me:$LINENO: checking for C compiler version" >&5
1964 ac_compiler=`set X $ac_compile; echo $2`
1965 { (ac_try="$ac_compiler --version >&5"
1966 case "(($ac_try" in
1967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1968   *) ac_try_echo=$ac_try;;
1969 esac
1970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1971   (eval "$ac_compiler --version >&5") 2>&5
1972   ac_status=$?
1973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1974   (exit $ac_status); }
1975 { (ac_try="$ac_compiler -v >&5"
1976 case "(($ac_try" in
1977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1978   *) ac_try_echo=$ac_try;;
1979 esac
1980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1981   (eval "$ac_compiler -v >&5") 2>&5
1982   ac_status=$?
1983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1984   (exit $ac_status); }
1985 { (ac_try="$ac_compiler -V >&5"
1986 case "(($ac_try" in
1987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1988   *) ac_try_echo=$ac_try;;
1989 esac
1990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1991   (eval "$ac_compiler -V >&5") 2>&5
1992   ac_status=$?
1993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1994   (exit $ac_status); }
1995
1996 cat >conftest.$ac_ext <<_ACEOF
1997 /* confdefs.h.  */
1998 _ACEOF
1999 cat confdefs.h >>conftest.$ac_ext
2000 cat >>conftest.$ac_ext <<_ACEOF
2001 /* end confdefs.h.  */
2002
2003 int
2004 main ()
2005 {
2006
2007   ;
2008   return 0;
2009 }
2010 _ACEOF
2011 ac_clean_files_save=$ac_clean_files
2012 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2013 # Try to create an executable without -o first, disregard a.out.
2014 # It will help us diagnose broken compilers, and finding out an intuition
2015 # of exeext.
2016 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2017 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2018 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2019 #
2020 # List of possible output files, starting from the most likely.
2021 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2022 # only as a last resort.  b.out is created by i960 compilers.
2023 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2024 #
2025 # The IRIX 6 linker writes into existing files which may not be
2026 # executable, retaining their permissions.  Remove them first so a
2027 # subsequent execution test works.
2028 ac_rmfiles=
2029 for ac_file in $ac_files
2030 do
2031   case $ac_file in
2032     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2033     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2034   esac
2035 done
2036 rm -f $ac_rmfiles
2037
2038 if { (ac_try="$ac_link_default"
2039 case "(($ac_try" in
2040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2041   *) ac_try_echo=$ac_try;;
2042 esac
2043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2044   (eval "$ac_link_default") 2>&5
2045   ac_status=$?
2046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2047   (exit $ac_status); }; then
2048   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2049 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2050 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2051 # so that the user can short-circuit this test for compilers unknown to
2052 # Autoconf.
2053 for ac_file in $ac_files ''
2054 do
2055   test -f "$ac_file" || continue
2056   case $ac_file in
2057     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2058         ;;
2059     [ab].out )
2060         # We found the default executable, but exeext='' is most
2061         # certainly right.
2062         break;;
2063     *.* )
2064         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2065         then :; else
2066            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2067         fi
2068         # We set ac_cv_exeext here because the later test for it is not
2069         # safe: cross compilers may not add the suffix if given an `-o'
2070         # argument, so we may need to know it at that point already.
2071         # Even if this section looks crufty: it has the advantage of
2072         # actually working.
2073         break;;
2074     * )
2075         break;;
2076   esac
2077 done
2078 test "$ac_cv_exeext" = no && ac_cv_exeext=
2079
2080 else
2081   ac_file=''
2082 fi
2083
2084 { echo "$as_me:$LINENO: result: $ac_file" >&5
2085 echo "${ECHO_T}$ac_file" >&6; }
2086 if test -z "$ac_file"; then
2087   echo "$as_me: failed program was:" >&5
2088 sed 's/^/| /' conftest.$ac_ext >&5
2089
2090 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2091 See \`config.log' for more details." >&5
2092 echo "$as_me: error: C compiler cannot create executables
2093 See \`config.log' for more details." >&2;}
2094    { (exit 77); exit 77; }; }
2095 fi
2096
2097 ac_exeext=$ac_cv_exeext
2098
2099 # Check that the compiler produces executables we can run.  If not, either
2100 # the compiler is broken, or we cross compile.
2101 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2102 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2103 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2104 # If not cross compiling, check that we can run a simple program.
2105 if test "$cross_compiling" != yes; then
2106   if { ac_try='./$ac_file'
2107   { (case "(($ac_try" in
2108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2109   *) ac_try_echo=$ac_try;;
2110 esac
2111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2112   (eval "$ac_try") 2>&5
2113   ac_status=$?
2114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2115   (exit $ac_status); }; }; then
2116     cross_compiling=no
2117   else
2118     if test "$cross_compiling" = maybe; then
2119         cross_compiling=yes
2120     else
2121         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2122 If you meant to cross compile, use \`--host'.
2123 See \`config.log' for more details." >&5
2124 echo "$as_me: error: cannot run C compiled programs.
2125 If you meant to cross compile, use \`--host'.
2126 See \`config.log' for more details." >&2;}
2127    { (exit 1); exit 1; }; }
2128     fi
2129   fi
2130 fi
2131 { echo "$as_me:$LINENO: result: yes" >&5
2132 echo "${ECHO_T}yes" >&6; }
2133
2134 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2135 ac_clean_files=$ac_clean_files_save
2136 # Check that the compiler produces executables we can run.  If not, either
2137 # the compiler is broken, or we cross compile.
2138 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2139 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2140 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2141 echo "${ECHO_T}$cross_compiling" >&6; }
2142
2143 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2144 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2145 if { (ac_try="$ac_link"
2146 case "(($ac_try" in
2147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2148   *) ac_try_echo=$ac_try;;
2149 esac
2150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2151   (eval "$ac_link") 2>&5
2152   ac_status=$?
2153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2154   (exit $ac_status); }; then
2155   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2156 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2157 # work properly (i.e., refer to `conftest.exe'), while it won't with
2158 # `rm'.
2159 for ac_file in conftest.exe conftest conftest.*; do
2160   test -f "$ac_file" || continue
2161   case $ac_file in
2162     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2163     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2164           break;;
2165     * ) break;;
2166   esac
2167 done
2168 else
2169   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2170 See \`config.log' for more details." >&5
2171 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2172 See \`config.log' for more details." >&2;}
2173    { (exit 1); exit 1; }; }
2174 fi
2175
2176 rm -f conftest$ac_cv_exeext
2177 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2178 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2179
2180 rm -f conftest.$ac_ext
2181 EXEEXT=$ac_cv_exeext
2182 ac_exeext=$EXEEXT
2183 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2184 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2185 if test "${ac_cv_objext+set}" = set; then
2186   echo $ECHO_N "(cached) $ECHO_C" >&6
2187 else
2188   cat >conftest.$ac_ext <<_ACEOF
2189 /* confdefs.h.  */
2190 _ACEOF
2191 cat confdefs.h >>conftest.$ac_ext
2192 cat >>conftest.$ac_ext <<_ACEOF
2193 /* end confdefs.h.  */
2194
2195 int
2196 main ()
2197 {
2198
2199   ;
2200   return 0;
2201 }
2202 _ACEOF
2203 rm -f conftest.o conftest.obj
2204 if { (ac_try="$ac_compile"
2205 case "(($ac_try" in
2206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2207   *) ac_try_echo=$ac_try;;
2208 esac
2209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2210   (eval "$ac_compile") 2>&5
2211   ac_status=$?
2212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2213   (exit $ac_status); }; then
2214   for ac_file in conftest.o conftest.obj conftest.*; do
2215   test -f "$ac_file" || continue;
2216   case $ac_file in
2217     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2218     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2219        break;;
2220   esac
2221 done
2222 else
2223   echo "$as_me: failed program was:" >&5
2224 sed 's/^/| /' conftest.$ac_ext >&5
2225
2226 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2227 See \`config.log' for more details." >&5
2228 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2229 See \`config.log' for more details." >&2;}
2230    { (exit 1); exit 1; }; }
2231 fi
2232
2233 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2234 fi
2235 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2236 echo "${ECHO_T}$ac_cv_objext" >&6; }
2237 OBJEXT=$ac_cv_objext
2238 ac_objext=$OBJEXT
2239 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2240 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2241 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2242   echo $ECHO_N "(cached) $ECHO_C" >&6
2243 else
2244   cat >conftest.$ac_ext <<_ACEOF
2245 /* confdefs.h.  */
2246 _ACEOF
2247 cat confdefs.h >>conftest.$ac_ext
2248 cat >>conftest.$ac_ext <<_ACEOF
2249 /* end confdefs.h.  */
2250
2251 int
2252 main ()
2253 {
2254 #ifndef __GNUC__
2255        choke me
2256 #endif
2257
2258   ;
2259   return 0;
2260 }
2261 _ACEOF
2262 rm -f conftest.$ac_objext
2263 if { (ac_try="$ac_compile"
2264 case "(($ac_try" in
2265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2266   *) ac_try_echo=$ac_try;;
2267 esac
2268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2269   (eval "$ac_compile") 2>conftest.er1
2270   ac_status=$?
2271   grep -v '^ *+' conftest.er1 >conftest.err
2272   rm -f conftest.er1
2273   cat conftest.err >&5
2274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2275   (exit $ac_status); } && {
2276          test -z "$ac_c_werror_flag" ||
2277          test ! -s conftest.err
2278        } && test -s conftest.$ac_objext; then
2279   ac_compiler_gnu=yes
2280 else
2281   echo "$as_me: failed program was:" >&5
2282 sed 's/^/| /' conftest.$ac_ext >&5
2283
2284         ac_compiler_gnu=no
2285 fi
2286
2287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2288 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2289
2290 fi
2291 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2292 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2293 GCC=`test $ac_compiler_gnu = yes && echo yes`
2294 ac_test_CFLAGS=${CFLAGS+set}
2295 ac_save_CFLAGS=$CFLAGS
2296 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2297 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2298 if test "${ac_cv_prog_cc_g+set}" = set; then
2299   echo $ECHO_N "(cached) $ECHO_C" >&6
2300 else
2301   ac_save_c_werror_flag=$ac_c_werror_flag
2302    ac_c_werror_flag=yes
2303    ac_cv_prog_cc_g=no
2304    CFLAGS="-g"
2305    cat >conftest.$ac_ext <<_ACEOF
2306 /* confdefs.h.  */
2307 _ACEOF
2308 cat confdefs.h >>conftest.$ac_ext
2309 cat >>conftest.$ac_ext <<_ACEOF
2310 /* end confdefs.h.  */
2311
2312 int
2313 main ()
2314 {
2315
2316   ;
2317   return 0;
2318 }
2319 _ACEOF
2320 rm -f conftest.$ac_objext
2321 if { (ac_try="$ac_compile"
2322 case "(($ac_try" in
2323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2324   *) ac_try_echo=$ac_try;;
2325 esac
2326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2327   (eval "$ac_compile") 2>conftest.er1
2328   ac_status=$?
2329   grep -v '^ *+' conftest.er1 >conftest.err
2330   rm -f conftest.er1
2331   cat conftest.err >&5
2332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2333   (exit $ac_status); } && {
2334          test -z "$ac_c_werror_flag" ||
2335          test ! -s conftest.err
2336        } && test -s conftest.$ac_objext; then
2337   ac_cv_prog_cc_g=yes
2338 else
2339   echo "$as_me: failed program was:" >&5
2340 sed 's/^/| /' conftest.$ac_ext >&5
2341
2342         CFLAGS=""
2343       cat >conftest.$ac_ext <<_ACEOF
2344 /* confdefs.h.  */
2345 _ACEOF
2346 cat confdefs.h >>conftest.$ac_ext
2347 cat >>conftest.$ac_ext <<_ACEOF
2348 /* end confdefs.h.  */
2349
2350 int
2351 main ()
2352 {
2353
2354   ;
2355   return 0;
2356 }
2357 _ACEOF
2358 rm -f conftest.$ac_objext
2359 if { (ac_try="$ac_compile"
2360 case "(($ac_try" in
2361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2362   *) ac_try_echo=$ac_try;;
2363 esac
2364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2365   (eval "$ac_compile") 2>conftest.er1
2366   ac_status=$?
2367   grep -v '^ *+' conftest.er1 >conftest.err
2368   rm -f conftest.er1
2369   cat conftest.err >&5
2370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2371   (exit $ac_status); } && {
2372          test -z "$ac_c_werror_flag" ||
2373          test ! -s conftest.err
2374        } && test -s conftest.$ac_objext; then
2375   :
2376 else
2377   echo "$as_me: failed program was:" >&5
2378 sed 's/^/| /' conftest.$ac_ext >&5
2379
2380         ac_c_werror_flag=$ac_save_c_werror_flag
2381          CFLAGS="-g"
2382          cat >conftest.$ac_ext <<_ACEOF
2383 /* confdefs.h.  */
2384 _ACEOF
2385 cat confdefs.h >>conftest.$ac_ext
2386 cat >>conftest.$ac_ext <<_ACEOF
2387 /* end confdefs.h.  */
2388
2389 int
2390 main ()
2391 {
2392
2393   ;
2394   return 0;
2395 }
2396 _ACEOF
2397 rm -f conftest.$ac_objext
2398 if { (ac_try="$ac_compile"
2399 case "(($ac_try" in
2400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2401   *) ac_try_echo=$ac_try;;
2402 esac
2403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2404   (eval "$ac_compile") 2>conftest.er1
2405   ac_status=$?
2406   grep -v '^ *+' conftest.er1 >conftest.err
2407   rm -f conftest.er1
2408   cat conftest.err >&5
2409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410   (exit $ac_status); } && {
2411          test -z "$ac_c_werror_flag" ||
2412          test ! -s conftest.err
2413        } && test -s conftest.$ac_objext; then
2414   ac_cv_prog_cc_g=yes
2415 else
2416   echo "$as_me: failed program was:" >&5
2417 sed 's/^/| /' conftest.$ac_ext >&5
2418
2419
2420 fi
2421
2422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2423 fi
2424
2425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2426 fi
2427
2428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2429    ac_c_werror_flag=$ac_save_c_werror_flag
2430 fi
2431 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2432 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2433 if test "$ac_test_CFLAGS" = set; then
2434   CFLAGS=$ac_save_CFLAGS
2435 elif test $ac_cv_prog_cc_g = yes; then
2436   if test "$GCC" = yes; then
2437     CFLAGS="-g -O2"
2438   else
2439     CFLAGS="-g"
2440   fi
2441 else
2442   if test "$GCC" = yes; then
2443     CFLAGS="-O2"
2444   else
2445     CFLAGS=
2446   fi
2447 fi
2448 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2449 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2450 if test "${ac_cv_prog_cc_c89+set}" = set; then
2451   echo $ECHO_N "(cached) $ECHO_C" >&6
2452 else
2453   ac_cv_prog_cc_c89=no
2454 ac_save_CC=$CC
2455 cat >conftest.$ac_ext <<_ACEOF
2456 /* confdefs.h.  */
2457 _ACEOF
2458 cat confdefs.h >>conftest.$ac_ext
2459 cat >>conftest.$ac_ext <<_ACEOF
2460 /* end confdefs.h.  */
2461 #include <stdarg.h>
2462 #include <stdio.h>
2463 #include <sys/types.h>
2464 #include <sys/stat.h>
2465 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2466 struct buf { int x; };
2467 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2468 static char *e (p, i)
2469      char **p;
2470      int i;
2471 {
2472   return p[i];
2473 }
2474 static char *f (char * (*g) (char **, int), char **p, ...)
2475 {
2476   char *s;
2477   va_list v;
2478   va_start (v,p);
2479   s = g (p, va_arg (v,int));
2480   va_end (v);
2481   return s;
2482 }
2483
2484 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2485    function prototypes and stuff, but not '\xHH' hex character constants.
2486    These don't provoke an error unfortunately, instead are silently treated
2487    as 'x'.  The following induces an error, until -std is added to get
2488    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2489    array size at least.  It's necessary to write '\x00'==0 to get something
2490    that's true only with -std.  */
2491 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2492
2493 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2494    inside strings and character constants.  */
2495 #define FOO(x) 'x'
2496 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2497
2498 int test (int i, double x);
2499 struct s1 {int (*f) (int a);};
2500 struct s2 {int (*f) (double a);};
2501 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2502 int argc;
2503 char **argv;
2504 int
2505 main ()
2506 {
2507 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2508   ;
2509   return 0;
2510 }
2511 _ACEOF
2512 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2513         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2514 do
2515   CC="$ac_save_CC $ac_arg"
2516   rm -f conftest.$ac_objext
2517 if { (ac_try="$ac_compile"
2518 case "(($ac_try" in
2519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2520   *) ac_try_echo=$ac_try;;
2521 esac
2522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2523   (eval "$ac_compile") 2>conftest.er1
2524   ac_status=$?
2525   grep -v '^ *+' conftest.er1 >conftest.err
2526   rm -f conftest.er1
2527   cat conftest.err >&5
2528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529   (exit $ac_status); } && {
2530          test -z "$ac_c_werror_flag" ||
2531          test ! -s conftest.err
2532        } && test -s conftest.$ac_objext; then
2533   ac_cv_prog_cc_c89=$ac_arg
2534 else
2535   echo "$as_me: failed program was:" >&5
2536 sed 's/^/| /' conftest.$ac_ext >&5
2537
2538
2539 fi
2540
2541 rm -f core conftest.err conftest.$ac_objext
2542   test "x$ac_cv_prog_cc_c89" != "xno" && break
2543 done
2544 rm -f conftest.$ac_ext
2545 CC=$ac_save_CC
2546
2547 fi
2548 # AC_CACHE_VAL
2549 case "x$ac_cv_prog_cc_c89" in
2550   x)
2551     { echo "$as_me:$LINENO: result: none needed" >&5
2552 echo "${ECHO_T}none needed" >&6; } ;;
2553   xno)
2554     { echo "$as_me:$LINENO: result: unsupported" >&5
2555 echo "${ECHO_T}unsupported" >&6; } ;;
2556   *)
2557     CC="$CC $ac_cv_prog_cc_c89"
2558     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2559 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2560 esac
2561
2562
2563 ac_ext=c
2564 ac_cpp='$CPP $CPPFLAGS'
2565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2568
2569         ac_ext=c
2570 ac_cpp='$CPP $CPPFLAGS'
2571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2574 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2575 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2576 # On Suns, sometimes $CPP names a directory.
2577 if test -n "$CPP" && test -d "$CPP"; then
2578   CPP=
2579 fi
2580 if test -z "$CPP"; then
2581   if test "${ac_cv_prog_CPP+set}" = set; then
2582   echo $ECHO_N "(cached) $ECHO_C" >&6
2583 else
2584       # Double quotes because CPP needs to be expanded
2585     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2586     do
2587       ac_preproc_ok=false
2588 for ac_c_preproc_warn_flag in '' yes
2589 do
2590   # Use a header file that comes with gcc, so configuring glibc
2591   # with a fresh cross-compiler works.
2592   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2593   # <limits.h> exists even on freestanding compilers.
2594   # On the NeXT, cc -E runs the code through the compiler's parser,
2595   # not just through cpp. "Syntax error" is here to catch this case.
2596   cat >conftest.$ac_ext <<_ACEOF
2597 /* confdefs.h.  */
2598 _ACEOF
2599 cat confdefs.h >>conftest.$ac_ext
2600 cat >>conftest.$ac_ext <<_ACEOF
2601 /* end confdefs.h.  */
2602 #ifdef __STDC__
2603 # include <limits.h>
2604 #else
2605 # include <assert.h>
2606 #endif
2607                      Syntax error
2608 _ACEOF
2609 if { (ac_try="$ac_cpp conftest.$ac_ext"
2610 case "(($ac_try" in
2611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2612   *) ac_try_echo=$ac_try;;
2613 esac
2614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2615   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2616   ac_status=$?
2617   grep -v '^ *+' conftest.er1 >conftest.err
2618   rm -f conftest.er1
2619   cat conftest.err >&5
2620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621   (exit $ac_status); } >/dev/null && {
2622          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2623          test ! -s conftest.err
2624        }; then
2625   :
2626 else
2627   echo "$as_me: failed program was:" >&5
2628 sed 's/^/| /' conftest.$ac_ext >&5
2629
2630   # Broken: fails on valid input.
2631 continue
2632 fi
2633
2634 rm -f conftest.err conftest.$ac_ext
2635
2636   # OK, works on sane cases.  Now check whether nonexistent headers
2637   # can be detected and how.
2638   cat >conftest.$ac_ext <<_ACEOF
2639 /* confdefs.h.  */
2640 _ACEOF
2641 cat confdefs.h >>conftest.$ac_ext
2642 cat >>conftest.$ac_ext <<_ACEOF
2643 /* end confdefs.h.  */
2644 #include <ac_nonexistent.h>
2645 _ACEOF
2646 if { (ac_try="$ac_cpp conftest.$ac_ext"
2647 case "(($ac_try" in
2648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2649   *) ac_try_echo=$ac_try;;
2650 esac
2651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2652   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2653   ac_status=$?
2654   grep -v '^ *+' conftest.er1 >conftest.err
2655   rm -f conftest.er1
2656   cat conftest.err >&5
2657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658   (exit $ac_status); } >/dev/null && {
2659          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2660          test ! -s conftest.err
2661        }; then
2662   # Broken: success on invalid input.
2663 continue
2664 else
2665   echo "$as_me: failed program was:" >&5
2666 sed 's/^/| /' conftest.$ac_ext >&5
2667
2668   # Passes both tests.
2669 ac_preproc_ok=:
2670 break
2671 fi
2672
2673 rm -f conftest.err conftest.$ac_ext
2674
2675 done
2676 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2677 rm -f conftest.err conftest.$ac_ext
2678 if $ac_preproc_ok; then
2679   break
2680 fi
2681
2682     done
2683     ac_cv_prog_CPP=$CPP
2684
2685 fi
2686   CPP=$ac_cv_prog_CPP
2687 else
2688   ac_cv_prog_CPP=$CPP
2689 fi
2690 { echo "$as_me:$LINENO: result: $CPP" >&5
2691 echo "${ECHO_T}$CPP" >&6; }
2692 ac_preproc_ok=false
2693 for ac_c_preproc_warn_flag in '' yes
2694 do
2695   # Use a header file that comes with gcc, so configuring glibc
2696   # with a fresh cross-compiler works.
2697   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2698   # <limits.h> exists even on freestanding compilers.
2699   # On the NeXT, cc -E runs the code through the compiler's parser,
2700   # not just through cpp. "Syntax error" is here to catch this case.
2701   cat >conftest.$ac_ext <<_ACEOF
2702 /* confdefs.h.  */
2703 _ACEOF
2704 cat confdefs.h >>conftest.$ac_ext
2705 cat >>conftest.$ac_ext <<_ACEOF
2706 /* end confdefs.h.  */
2707 #ifdef __STDC__
2708 # include <limits.h>
2709 #else
2710 # include <assert.h>
2711 #endif
2712                      Syntax error
2713 _ACEOF
2714 if { (ac_try="$ac_cpp conftest.$ac_ext"
2715 case "(($ac_try" in
2716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2717   *) ac_try_echo=$ac_try;;
2718 esac
2719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2720   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2721   ac_status=$?
2722   grep -v '^ *+' conftest.er1 >conftest.err
2723   rm -f conftest.er1
2724   cat conftest.err >&5
2725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726   (exit $ac_status); } >/dev/null && {
2727          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2728          test ! -s conftest.err
2729        }; then
2730   :
2731 else
2732   echo "$as_me: failed program was:" >&5
2733 sed 's/^/| /' conftest.$ac_ext >&5
2734
2735   # Broken: fails on valid input.
2736 continue
2737 fi
2738
2739 rm -f conftest.err conftest.$ac_ext
2740
2741   # OK, works on sane cases.  Now check whether nonexistent headers
2742   # can be detected and how.
2743   cat >conftest.$ac_ext <<_ACEOF
2744 /* confdefs.h.  */
2745 _ACEOF
2746 cat confdefs.h >>conftest.$ac_ext
2747 cat >>conftest.$ac_ext <<_ACEOF
2748 /* end confdefs.h.  */
2749 #include <ac_nonexistent.h>
2750 _ACEOF
2751 if { (ac_try="$ac_cpp conftest.$ac_ext"
2752 case "(($ac_try" in
2753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2754   *) ac_try_echo=$ac_try;;
2755 esac
2756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2757   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2758   ac_status=$?
2759   grep -v '^ *+' conftest.er1 >conftest.err
2760   rm -f conftest.er1
2761   cat conftest.err >&5
2762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2763   (exit $ac_status); } >/dev/null && {
2764          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2765          test ! -s conftest.err
2766        }; then
2767   # Broken: success on invalid input.
2768 continue
2769 else
2770   echo "$as_me: failed program was:" >&5
2771 sed 's/^/| /' conftest.$ac_ext >&5
2772
2773   # Passes both tests.
2774 ac_preproc_ok=:
2775 break
2776 fi
2777
2778 rm -f conftest.err conftest.$ac_ext
2779
2780 done
2781 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2782 rm -f conftest.err conftest.$ac_ext
2783 if $ac_preproc_ok; then
2784   :
2785 else
2786   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2787 See \`config.log' for more details." >&5
2788 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2789 See \`config.log' for more details." >&2;}
2790    { (exit 1); exit 1; }; }
2791 fi
2792
2793 ac_ext=c
2794 ac_cpp='$CPP $CPPFLAGS'
2795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2798
2799
2800         for ac_prog in  python2.3 python2.2 python2.1 python1.5 python
2801 do
2802   # Extract the first word of "$ac_prog", so it can be a program name with args.
2803 set dummy $ac_prog; ac_word=$2
2804 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2806 if test "${ac_cv_prog_PYTHONBIN+set}" = set; then
2807   echo $ECHO_N "(cached) $ECHO_C" >&6
2808 else
2809   if test -n "$PYTHONBIN"; then
2810   ac_cv_prog_PYTHONBIN="$PYTHONBIN" # Let the user override the test.
2811 else
2812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2813 as_dummy="${PATH}:/usr/bin:/usr/local/bin"
2814 for as_dir in $as_dummy
2815 do
2816   IFS=$as_save_IFS
2817   test -z "$as_dir" && as_dir=.
2818   for ac_exec_ext in '' $ac_executable_extensions; do
2819   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2820     ac_cv_prog_PYTHONBIN="$ac_prog"
2821     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2822     break 2
2823   fi
2824 done
2825 done
2826 IFS=$as_save_IFS
2827
2828 fi
2829 fi
2830 PYTHONBIN=$ac_cv_prog_PYTHONBIN
2831 if test -n "$PYTHONBIN"; then
2832   { echo "$as_me:$LINENO: result: $PYTHONBIN" >&5
2833 echo "${ECHO_T}$PYTHONBIN" >&6; }
2834 else
2835   { echo "$as_me:$LINENO: result: no" >&5
2836 echo "${ECHO_T}no" >&6; }
2837 fi
2838
2839
2840   test -n "$PYTHONBIN" && break
2841 done
2842 test -n "$PYTHONBIN" || PYTHONBIN="not-found"
2843
2844
2845         if test x$PYTHONBIN = xnot-found; then
2846                 fail="python-binary"
2847         fi
2848
2849                 PY_LIB_DIR=
2850
2851 # Check whether --with-rlm-python-lib-dir was given.
2852 if test "${with_rlm_python_lib_dir+set}" = set; then
2853   withval=$with_rlm_python_lib_dir;  case "$withval" in
2854             no)
2855                 { { echo "$as_me:$LINENO: error: Need rlm-python-lib-dir" >&5
2856 echo "$as_me: error: Need rlm-python-lib-dir" >&2;}
2857    { (exit 1); exit 1; }; }
2858                 ;;
2859             yes)
2860                 ;;
2861             *)
2862                 PY_LIB_DIR="$withval"
2863                 ;;
2864           esac
2865
2866 fi
2867
2868
2869                 PY_INC_DIR=
2870
2871 # Check whether --with-rlm-python-include-dir was given.
2872 if test "${with_rlm_python_include_dir+set}" = set; then
2873   withval=$with_rlm_python_include_dir;  case "$withval" in
2874             no)
2875                 { { echo "$as_me:$LINENO: error: Need rlm-python-include-dir" >&5
2876 echo "$as_me: error: Need rlm-python-include-dir" >&2;}
2877    { (exit 1); exit 1; }; }
2878                 ;;
2879             yes)
2880                 ;;
2881             *)
2882                 PY_INC_DIR="$withval"
2883                 ;;
2884           esac
2885
2886 fi
2887
2888
2889         if test x$fail = x; then
2890
2891                 PY_PREFIX=`${PYTHONBIN} -c 'import sys ; print sys.prefix'`
2892                 PY_EXEC_PREFIX=`${PYTHONBIN} -c 'import sys ; print sys.exec_prefix'`
2893                                 PY_VERSION=`${PYTHONBIN} -c 'import sys ; print sys.version[0:3]'`
2894                                 PY_LIBS="-lpython$PY_VERSION"
2895                 PY_LIB_DIR="$PY_EXEC_PREFIX/lib/python$PY_VERSION/config"
2896                 PY_LIB_LOC="-L$PY_EXEC_PREFIX/lib/python$PY_VERSION/config"
2897                 PY_INC_DIR="$PY_PREFIX/include/python$PY_VERSION"
2898                 PY_CFLAGS="-I$PY_PREFIX/include/python$PY_VERSION"
2899                 PY_MAKEFILE="$PY_EXEC_PREFIX/lib/python$PY_VERSION/config/Makefile"
2900                 if test -f ${PY_MAKEFILE}; then
2901                         PY_LOCALMODLIBS=`sed -n -e 's/^LOCALMODLIBS=\(.*\)/\1/p' $PY_MAKEFILE`
2902                         PY_BASEMODLIBS=`sed -n -e 's/^BASEMODLIBS=\(.*\)/\1/p' $PY_MAKEFILE`
2903                         PY_OTHER_LIBS=`sed -n -e 's/^LIBS=\(.*\)/\1/p' $PY_MAKEFILE`
2904                         PY_OTHER_LDFLAGS=`sed -n -e 's/^LINKFORSHARED=\(.*\)/\1/p' $PY_MAKEFILE`
2905                 fi
2906                 PY_EXTRA_LIBS="$PY_LOCALMODLIBS $PY_BASEMODLIBS $PY_OTHER_LIBS"
2907
2908                 old_CFLAGS=$CFLAGS
2909                 CFLAGS="$CFLAGS $PY_CFLAGS"
2910                 smart_try_dir=$PY_INC_DIR
2911
2912
2913
2914 ac_safe=`echo "Python.h" | sed 'y%./+-%__pm%'`
2915 { echo "$as_me:$LINENO: checking for Python.h" >&5
2916 echo $ECHO_N "checking for Python.h... $ECHO_C" >&6; }
2917
2918 old_CFLAGS="$CFLAGS"
2919 smart_include=
2920 smart_include_dir=
2921
2922 if test "x$smart_try_dir" != "x"; then
2923   for try in $smart_try_dir; do
2924     CFLAGS="$old_CFLAGS -I$try"
2925     cat >conftest.$ac_ext <<_ACEOF
2926 /* confdefs.h.  */
2927 _ACEOF
2928 cat confdefs.h >>conftest.$ac_ext
2929 cat >>conftest.$ac_ext <<_ACEOF
2930 /* end confdefs.h.  */
2931
2932                     #include <Python.h>
2933 int
2934 main ()
2935 {
2936  int a = 1;
2937   ;
2938   return 0;
2939 }
2940 _ACEOF
2941 rm -f conftest.$ac_objext
2942 if { (ac_try="$ac_compile"
2943 case "(($ac_try" in
2944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2945   *) ac_try_echo=$ac_try;;
2946 esac
2947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2948   (eval "$ac_compile") 2>conftest.er1
2949   ac_status=$?
2950   grep -v '^ *+' conftest.er1 >conftest.err
2951   rm -f conftest.er1
2952   cat conftest.err >&5
2953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954   (exit $ac_status); } && {
2955          test -z "$ac_c_werror_flag" ||
2956          test ! -s conftest.err
2957        } && test -s conftest.$ac_objext; then
2958   smart_include="-I$try"
2959 else
2960   echo "$as_me: failed program was:" >&5
2961 sed 's/^/| /' conftest.$ac_ext >&5
2962
2963         smart_include=
2964 fi
2965
2966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2967     if test "x$smart_include" != "x"; then
2968       break;
2969     fi
2970   done
2971   CFLAGS="$old_CFLAGS"
2972 fi
2973
2974 if test "x$smart_include" = "x"; then
2975   cat >conftest.$ac_ext <<_ACEOF
2976 /* confdefs.h.  */
2977 _ACEOF
2978 cat confdefs.h >>conftest.$ac_ext
2979 cat >>conftest.$ac_ext <<_ACEOF
2980 /* end confdefs.h.  */
2981
2982                   #include <Python.h>
2983 int
2984 main ()
2985 {
2986  int a = 1;
2987   ;
2988   return 0;
2989 }
2990 _ACEOF
2991 rm -f conftest.$ac_objext
2992 if { (ac_try="$ac_compile"
2993 case "(($ac_try" in
2994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2995   *) ac_try_echo=$ac_try;;
2996 esac
2997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2998   (eval "$ac_compile") 2>conftest.er1
2999   ac_status=$?
3000   grep -v '^ *+' conftest.er1 >conftest.err
3001   rm -f conftest.er1
3002   cat conftest.err >&5
3003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3004   (exit $ac_status); } && {
3005          test -z "$ac_c_werror_flag" ||
3006          test ! -s conftest.err
3007        } && test -s conftest.$ac_objext; then
3008   smart_include=" "
3009 else
3010   echo "$as_me: failed program was:" >&5
3011 sed 's/^/| /' conftest.$ac_ext >&5
3012
3013         smart_include=
3014 fi
3015
3016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3017 fi
3018
3019 if test "x$smart_include" = "x"; then
3020
3021
3022 if test "x$LOCATE" != "x"; then
3023         DIRS=
3024   file=Python.h
3025
3026   for x in `${LOCATE} $file 2>/dev/null`; do
3027                                         base=`echo $x | sed "s%/${file}%%"`
3028     if test "x$x" = "x$base"; then
3029       continue;
3030     fi
3031
3032     dir=`${DIRNAME} $x 2>/dev/null`
3033                 exclude=`echo ${dir} | ${GREP} /home`
3034     if test "x$exclude" != "x"; then
3035       continue
3036     fi
3037
3038                     already=`echo \$smart_include_dir ${DIRS} | ${GREP} ${dir}`
3039     if test "x$already" = "x"; then
3040       DIRS="$DIRS $dir"
3041     fi
3042   done
3043 fi
3044
3045 eval "smart_include_dir=\"\$smart_include_dir $DIRS\""
3046
3047
3048   for try in $smart_include_dir /usr/local/include /opt/include; do
3049     CFLAGS="$old_CFLAGS -I$try"
3050     cat >conftest.$ac_ext <<_ACEOF
3051 /* confdefs.h.  */
3052 _ACEOF
3053 cat confdefs.h >>conftest.$ac_ext
3054 cat >>conftest.$ac_ext <<_ACEOF
3055 /* end confdefs.h.  */
3056
3057                     #include <Python.h>
3058 int
3059 main ()
3060 {
3061  int a = 1;
3062   ;
3063   return 0;
3064 }
3065 _ACEOF
3066 rm -f conftest.$ac_objext
3067 if { (ac_try="$ac_compile"
3068 case "(($ac_try" in
3069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3070   *) ac_try_echo=$ac_try;;
3071 esac
3072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3073   (eval "$ac_compile") 2>conftest.er1
3074   ac_status=$?
3075   grep -v '^ *+' conftest.er1 >conftest.err
3076   rm -f conftest.er1
3077   cat conftest.err >&5
3078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079   (exit $ac_status); } && {
3080          test -z "$ac_c_werror_flag" ||
3081          test ! -s conftest.err
3082        } && test -s conftest.$ac_objext; then
3083   smart_include="-I$try"
3084 else
3085   echo "$as_me: failed program was:" >&5
3086 sed 's/^/| /' conftest.$ac_ext >&5
3087
3088         smart_include=
3089 fi
3090
3091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3092     if test "x$smart_include" != "x"; then
3093       break;
3094     fi
3095   done
3096   CFLAGS="$old_CFLAGS"
3097 fi
3098
3099 if test "x$smart_include" != "x"; then
3100   { echo "$as_me:$LINENO: result: yes" >&5
3101 echo "${ECHO_T}yes" >&6; }
3102   eval "ac_cv_header_$ac_safe=yes"
3103   CFLAGS="$old_CFLAGS $smart_include"
3104   SMART_CFLAGS="$SMART_CFLAGS $smart_include"
3105 else
3106   { echo "$as_me:$LINENO: result: no" >&5
3107 echo "${ECHO_T}no" >&6; }
3108 fi
3109
3110                 CFLAGS=$old_CFLAGS
3111
3112                 if test "x$ac_cv_header_Python_h" = "xyes"; then
3113                         python_cflags=$PY_CFLAGS
3114                 else
3115                         fail="$fail Python.h"
3116                         targetname=
3117                 fi
3118
3119                 old_LIBS=$LIBS
3120                 LIBS="$LIBS $PY_LIB_LOC $PY_EXTRA_LIBS -lm"
3121                 smart_try_dir=$PY_LIB_DIR
3122
3123
3124 sm_lib_safe=`echo "python${PY_VERSION}" | sed 'y%./+-%__p_%'`
3125 sm_func_safe=`echo "Py_Initialize" | sed 'y%./+-%__p_%'`
3126 { echo "$as_me:$LINENO: checking for Py_Initialize in -lpython${PY_VERSION}" >&5
3127 echo $ECHO_N "checking for Py_Initialize in -lpython${PY_VERSION}... $ECHO_C" >&6; }
3128
3129 old_LIBS="$LIBS"
3130 smart_lib=
3131 smart_lib_dir=
3132
3133 if test "x$smart_try_dir" != "x"; then
3134   for try in $smart_try_dir; do
3135     LIBS="-L$try -lpython${PY_VERSION} $old_LIBS"
3136     cat >conftest.$ac_ext <<_ACEOF
3137 /* confdefs.h.  */
3138 _ACEOF
3139 cat confdefs.h >>conftest.$ac_ext
3140 cat >>conftest.$ac_ext <<_ACEOF
3141 /* end confdefs.h.  */
3142 extern char Py_Initialize();
3143 int
3144 main ()
3145 {
3146  Py_Initialize()
3147   ;
3148   return 0;
3149 }
3150 _ACEOF
3151 rm -f conftest.$ac_objext conftest$ac_exeext
3152 if { (ac_try="$ac_link"
3153 case "(($ac_try" in
3154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3155   *) ac_try_echo=$ac_try;;
3156 esac
3157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3158   (eval "$ac_link") 2>conftest.er1
3159   ac_status=$?
3160   grep -v '^ *+' conftest.er1 >conftest.err
3161   rm -f conftest.er1
3162   cat conftest.err >&5
3163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164   (exit $ac_status); } && {
3165          test -z "$ac_c_werror_flag" ||
3166          test ! -s conftest.err
3167        } && test -s conftest$ac_exeext &&
3168        $as_test_x conftest$ac_exeext; then
3169   smart_lib="-L$try -lpython${PY_VERSION}"
3170 else
3171   echo "$as_me: failed program was:" >&5
3172 sed 's/^/| /' conftest.$ac_ext >&5
3173
3174
3175 fi
3176
3177 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3178       conftest$ac_exeext conftest.$ac_ext
3179     if test "x$smart_lib" != "x"; then
3180       break;
3181     fi
3182   done
3183   LIBS="$old_LIBS"
3184 fi
3185
3186 if test "x$smart_lib" = "x"; then
3187   LIBS="-lpython${PY_VERSION} $old_LIBS"
3188   cat >conftest.$ac_ext <<_ACEOF
3189 /* confdefs.h.  */
3190 _ACEOF
3191 cat confdefs.h >>conftest.$ac_ext
3192 cat >>conftest.$ac_ext <<_ACEOF
3193 /* end confdefs.h.  */
3194 extern char Py_Initialize();
3195 int
3196 main ()
3197 {
3198  Py_Initialize()
3199   ;
3200   return 0;
3201 }
3202 _ACEOF
3203 rm -f conftest.$ac_objext conftest$ac_exeext
3204 if { (ac_try="$ac_link"
3205 case "(($ac_try" in
3206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3207   *) ac_try_echo=$ac_try;;
3208 esac
3209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3210   (eval "$ac_link") 2>conftest.er1
3211   ac_status=$?
3212   grep -v '^ *+' conftest.er1 >conftest.err
3213   rm -f conftest.er1
3214   cat conftest.err >&5
3215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3216   (exit $ac_status); } && {
3217          test -z "$ac_c_werror_flag" ||
3218          test ! -s conftest.err
3219        } && test -s conftest$ac_exeext &&
3220        $as_test_x conftest$ac_exeext; then
3221   smart_lib="-lpython${PY_VERSION}"
3222 else
3223   echo "$as_me: failed program was:" >&5
3224 sed 's/^/| /' conftest.$ac_ext >&5
3225
3226
3227 fi
3228
3229 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3230       conftest$ac_exeext conftest.$ac_ext
3231   LIBS="$old_LIBS"
3232 fi
3233
3234 if test "x$smart_lib" = "x"; then
3235
3236
3237 if test "x$LOCATE" != "x"; then
3238         DIRS=
3239   file=libpython${PY_VERSION}${libltdl_cv_shlibext}
3240
3241   for x in `${LOCATE} $file 2>/dev/null`; do
3242                                         base=`echo $x | sed "s%/${file}%%"`
3243     if test "x$x" = "x$base"; then
3244       continue;
3245     fi
3246
3247     dir=`${DIRNAME} $x 2>/dev/null`
3248                 exclude=`echo ${dir} | ${GREP} /home`
3249     if test "x$exclude" != "x"; then
3250       continue
3251     fi
3252
3253                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
3254     if test "x$already" = "x"; then
3255       DIRS="$DIRS $dir"
3256     fi
3257   done
3258 fi
3259
3260 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
3261
3262
3263
3264 if test "x$LOCATE" != "x"; then
3265         DIRS=
3266   file=libpython${PY_VERSION}.a
3267
3268   for x in `${LOCATE} $file 2>/dev/null`; do
3269                                         base=`echo $x | sed "s%/${file}%%"`
3270     if test "x$x" = "x$base"; then
3271       continue;
3272     fi
3273
3274     dir=`${DIRNAME} $x 2>/dev/null`
3275                 exclude=`echo ${dir} | ${GREP} /home`
3276     if test "x$exclude" != "x"; then
3277       continue
3278     fi
3279
3280                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
3281     if test "x$already" = "x"; then
3282       DIRS="$DIRS $dir"
3283     fi
3284   done
3285 fi
3286
3287 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
3288
3289
3290   for try in $smart_lib_dir /usr/local/lib /opt/lib; do
3291     LIBS="-L$try -lpython${PY_VERSION} $old_LIBS"
3292     cat >conftest.$ac_ext <<_ACEOF
3293 /* confdefs.h.  */
3294 _ACEOF
3295 cat confdefs.h >>conftest.$ac_ext
3296 cat >>conftest.$ac_ext <<_ACEOF
3297 /* end confdefs.h.  */
3298 extern char Py_Initialize();
3299 int
3300 main ()
3301 {
3302  Py_Initialize()
3303   ;
3304   return 0;
3305 }
3306 _ACEOF
3307 rm -f conftest.$ac_objext conftest$ac_exeext
3308 if { (ac_try="$ac_link"
3309 case "(($ac_try" in
3310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3311   *) ac_try_echo=$ac_try;;
3312 esac
3313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3314   (eval "$ac_link") 2>conftest.er1
3315   ac_status=$?
3316   grep -v '^ *+' conftest.er1 >conftest.err
3317   rm -f conftest.er1
3318   cat conftest.err >&5
3319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320   (exit $ac_status); } && {
3321          test -z "$ac_c_werror_flag" ||
3322          test ! -s conftest.err
3323        } && test -s conftest$ac_exeext &&
3324        $as_test_x conftest$ac_exeext; then
3325   smart_lib="-L$try -lpython${PY_VERSION}"
3326 else
3327   echo "$as_me: failed program was:" >&5
3328 sed 's/^/| /' conftest.$ac_ext >&5
3329
3330
3331 fi
3332
3333 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3334       conftest$ac_exeext conftest.$ac_ext
3335     if test "x$smart_lib" != "x"; then
3336       break;
3337     fi
3338   done
3339   LIBS="$old_LIBS"
3340 fi
3341
3342 if test "x$smart_lib" != "x"; then
3343   { echo "$as_me:$LINENO: result: yes" >&5
3344 echo "${ECHO_T}yes" >&6; }
3345   eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
3346   LIBS="$smart_lib $old_LIBS"
3347   SMART_LIBS="$smart_lib $SMART_LIBS"
3348 else
3349   { echo "$as_me:$LINENO: result: no" >&5
3350 echo "${ECHO_T}no" >&6; }
3351 fi
3352
3353                 LIBS=$old_LIBS
3354
3355                 eval t=\${ac_cv_lib_${sm_lib_safe}_${sm_func_safe}}
3356                 if test "x$t" = "xyes"; then
3357                         python_ldflags="$PY_LIB_LOC $PY_EXTRA_LIBS -lpython${PY_VERSION} -lm"
3358                         targetname=rlm_python
3359                 else
3360                         targetname=
3361                         fail="$fail libpython$PY_VERSION"
3362                 fi
3363         fi
3364
3365 else
3366         targetname=
3367         echo \*\*\* module rlm_python is disabled.
3368 fi
3369
3370 if test x"$fail" != x""; then
3371         if test x"${enable_strict_dependencies}" = x"yes"; then
3372                 { { echo "$as_me:$LINENO: error: set --without-rlm_python to disable it explicitly." >&5
3373 echo "$as_me: error: set --without-rlm_python to disable it explicitly." >&2;}
3374    { (exit 1); exit 1; }; }
3375         else
3376                 { echo "$as_me:$LINENO: WARNING: silently not building rlm_python." >&5
3377 echo "$as_me: WARNING: silently not building rlm_python." >&2;}
3378                 { echo "$as_me:$LINENO: WARNING: FAILURE: rlm_python requires: $fail." >&5
3379 echo "$as_me: WARNING: FAILURE: rlm_python requires: $fail." >&2;};
3380                 targetname=""
3381         fi
3382 fi
3383
3384
3385
3386
3387
3388   unset ac_cv_env_LIBS_set
3389   unset ac_cv_env_LIBS_value
3390
3391   ac_config_files="$ac_config_files Makefile all.mk"
3392
3393 cat >confcache <<\_ACEOF
3394 # This file is a shell script that caches the results of configure
3395 # tests run on this system so they can be shared between configure
3396 # scripts and configure runs, see configure's option --config-cache.
3397 # It is not useful on other systems.  If it contains results you don't
3398 # want to keep, you may remove or edit it.
3399 #
3400 # config.status only pays attention to the cache file if you give it
3401 # the --recheck option to rerun configure.
3402 #
3403 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3404 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3405 # following values.
3406
3407 _ACEOF
3408
3409 # The following way of writing the cache mishandles newlines in values,
3410 # but we know of no workaround that is simple, portable, and efficient.
3411 # So, we kill variables containing newlines.
3412 # Ultrix sh set writes to stderr and can't be redirected directly,
3413 # and sets the high bit in the cache file unless we assign to the vars.
3414 (
3415   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
3416     eval ac_val=\$$ac_var
3417     case $ac_val in #(
3418     *${as_nl}*)
3419       case $ac_var in #(
3420       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
3421 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
3422       esac
3423       case $ac_var in #(
3424       _ | IFS | as_nl) ;; #(
3425       *) $as_unset $ac_var ;;
3426       esac ;;
3427     esac
3428   done
3429
3430   (set) 2>&1 |
3431     case $as_nl`(ac_space=' '; set) 2>&1` in #(
3432     *${as_nl}ac_space=\ *)
3433       # `set' does not quote correctly, so add quotes (double-quote
3434       # substitution turns \\\\ into \\, and sed turns \\ into \).
3435       sed -n \
3436         "s/'/'\\\\''/g;
3437           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3438       ;; #(
3439     *)
3440       # `set' quotes correctly as required by POSIX, so do not add quotes.
3441       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3442       ;;
3443     esac |
3444     sort
3445 ) |
3446   sed '
3447      /^ac_cv_env_/b end
3448      t clear
3449      :clear
3450      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3451      t end
3452      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3453      :end' >>confcache
3454 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
3455   if test -w "$cache_file"; then
3456     test "x$cache_file" != "x/dev/null" &&
3457       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
3458 echo "$as_me: updating cache $cache_file" >&6;}
3459     cat confcache >$cache_file
3460   else
3461     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
3462 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
3463   fi
3464 fi
3465 rm -f confcache
3466
3467 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3468 # Let make expand exec_prefix.
3469 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3470
3471 # Transform confdefs.h into DEFS.
3472 # Protect against shell expansion while executing Makefile rules.
3473 # Protect against Makefile macro expansion.
3474 #
3475 # If the first sed substitution is executed (which looks for macros that
3476 # take arguments), then branch to the quote section.  Otherwise,
3477 # look for a macro that doesn't take arguments.
3478 ac_script='
3479 t clear
3480 :clear
3481 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
3482 t quote
3483 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
3484 t quote
3485 b any
3486 :quote
3487 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
3488 s/\[/\\&/g
3489 s/\]/\\&/g
3490 s/\$/$$/g
3491 H
3492 :any
3493 ${
3494         g
3495         s/^\n//
3496         s/\n/ /g
3497         p
3498 }
3499 '
3500 DEFS=`sed -n "$ac_script" confdefs.h`
3501
3502
3503 ac_libobjs=
3504 ac_ltlibobjs=
3505 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3506   # 1. Remove the extension, and $U if already installed.
3507   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
3508   ac_i=`echo "$ac_i" | sed "$ac_script"`
3509   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
3510   #    will be set to the directory where LIBOBJS objects are built.
3511   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
3512   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
3513 done
3514 LIBOBJS=$ac_libobjs
3515
3516 LTLIBOBJS=$ac_ltlibobjs
3517
3518
3519
3520 : ${CONFIG_STATUS=./config.status}
3521 ac_clean_files_save=$ac_clean_files
3522 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3523 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
3524 echo "$as_me: creating $CONFIG_STATUS" >&6;}
3525 cat >$CONFIG_STATUS <<_ACEOF
3526 #! $SHELL
3527 # Generated by $as_me.
3528 # Run this file to recreate the current configuration.
3529 # Compiler output produced by configure, useful for debugging
3530 # configure, is in config.log if it exists.
3531
3532 debug=false
3533 ac_cs_recheck=false
3534 ac_cs_silent=false
3535 SHELL=\${CONFIG_SHELL-$SHELL}
3536 _ACEOF
3537
3538 cat >>$CONFIG_STATUS <<\_ACEOF
3539 ## --------------------- ##
3540 ## M4sh Initialization.  ##
3541 ## --------------------- ##
3542
3543 # Be more Bourne compatible
3544 DUALCASE=1; export DUALCASE # for MKS sh
3545 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3546   emulate sh
3547   NULLCMD=:
3548   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
3549   # is contrary to our usage.  Disable this feature.
3550   alias -g '${1+"$@"}'='"$@"'
3551   setopt NO_GLOB_SUBST
3552 else
3553   case `(set -o) 2>/dev/null` in
3554   *posix*) set -o posix ;;
3555 esac
3556
3557 fi
3558
3559
3560
3561
3562 # PATH needs CR
3563 # Avoid depending upon Character Ranges.
3564 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3565 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3566 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3567 as_cr_digits='0123456789'
3568 as_cr_alnum=$as_cr_Letters$as_cr_digits
3569
3570 # The user is always right.
3571 if test "${PATH_SEPARATOR+set}" != set; then
3572   echo "#! /bin/sh" >conf$$.sh
3573   echo  "exit 0"   >>conf$$.sh
3574   chmod +x conf$$.sh
3575   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3576     PATH_SEPARATOR=';'
3577   else
3578     PATH_SEPARATOR=:
3579   fi
3580   rm -f conf$$.sh
3581 fi
3582
3583 # Support unset when possible.
3584 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3585   as_unset=unset
3586 else
3587   as_unset=false
3588 fi
3589
3590
3591 # IFS
3592 # We need space, tab and new line, in precisely that order.  Quoting is
3593 # there to prevent editors from complaining about space-tab.
3594 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
3595 # splitting by setting IFS to empty value.)
3596 as_nl='
3597 '
3598 IFS=" ""        $as_nl"
3599
3600 # Find who we are.  Look in the path if we contain no directory separator.
3601 case $0 in
3602   *[\\/]* ) as_myself=$0 ;;
3603   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3604 for as_dir in $PATH
3605 do
3606   IFS=$as_save_IFS
3607   test -z "$as_dir" && as_dir=.
3608   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3609 done
3610 IFS=$as_save_IFS
3611
3612      ;;
3613 esac
3614 # We did not find ourselves, most probably we were run as `sh COMMAND'
3615 # in which case we are not to be found in the path.
3616 if test "x$as_myself" = x; then
3617   as_myself=$0
3618 fi
3619 if test ! -f "$as_myself"; then
3620   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
3621   { (exit 1); exit 1; }
3622 fi
3623
3624 # Work around bugs in pre-3.0 UWIN ksh.
3625 for as_var in ENV MAIL MAILPATH
3626 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
3627 done
3628 PS1='$ '
3629 PS2='> '
3630 PS4='+ '
3631
3632 # NLS nuisances.
3633 for as_var in \
3634   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
3635   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
3636   LC_TELEPHONE LC_TIME
3637 do
3638   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
3639     eval $as_var=C; export $as_var
3640   else
3641     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
3642   fi
3643 done
3644
3645 # Required to use basename.
3646 if expr a : '\(a\)' >/dev/null 2>&1 &&
3647    test "X`expr 00001 : '.*\(...\)'`" = X001; then
3648   as_expr=expr
3649 else
3650   as_expr=false
3651 fi
3652
3653 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
3654   as_basename=basename
3655 else
3656   as_basename=false
3657 fi
3658
3659
3660 # Name of the executable.
3661 as_me=`$as_basename -- "$0" ||
3662 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3663          X"$0" : 'X\(//\)$' \| \
3664          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
3665 echo X/"$0" |
3666     sed '/^.*\/\([^/][^/]*\)\/*$/{
3667             s//\1/
3668             q
3669           }
3670           /^X\/\(\/\/\)$/{
3671             s//\1/
3672             q
3673           }
3674           /^X\/\(\/\).*/{
3675             s//\1/
3676             q
3677           }
3678           s/.*/./; q'`
3679
3680 # CDPATH.
3681 $as_unset CDPATH
3682
3683
3684
3685   as_lineno_1=$LINENO
3686   as_lineno_2=$LINENO
3687   test "x$as_lineno_1" != "x$as_lineno_2" &&
3688   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
3689
3690   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
3691   # uniformly replaced by the line number.  The first 'sed' inserts a
3692   # line-number line after each line using $LINENO; the second 'sed'
3693   # does the real work.  The second script uses 'N' to pair each
3694   # line-number line with the line containing $LINENO, and appends
3695   # trailing '-' during substitution so that $LINENO is not a special
3696   # case at line end.
3697   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
3698   # scripts with optimization help from Paolo Bonzini.  Blame Lee
3699   # E. McMahon (1931-1989) for sed's syntax.  :-)
3700   sed -n '
3701     p
3702     /[$]LINENO/=
3703   ' <$as_myself |
3704     sed '
3705       s/[$]LINENO.*/&-/
3706       t lineno
3707       b
3708       :lineno
3709       N
3710       :loop
3711       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
3712       t loop
3713       s/-\n.*//
3714     ' >$as_me.lineno &&
3715   chmod +x "$as_me.lineno" ||
3716     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
3717    { (exit 1); exit 1; }; }
3718
3719   # Don't try to exec as it changes $[0], causing all sort of problems
3720   # (the dirname of $[0] is not the place where we might find the
3721   # original and so on.  Autoconf is especially sensitive to this).
3722   . "./$as_me.lineno"
3723   # Exit status is that of the last command.
3724   exit
3725 }
3726
3727
3728 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
3729   as_dirname=dirname
3730 else
3731   as_dirname=false
3732 fi
3733
3734 ECHO_C= ECHO_N= ECHO_T=
3735 case `echo -n x` in
3736 -n*)
3737   case `echo 'x\c'` in
3738   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
3739   *)   ECHO_C='\c';;
3740   esac;;
3741 *)
3742   ECHO_N='-n';;
3743 esac
3744
3745 if expr a : '\(a\)' >/dev/null 2>&1 &&
3746    test "X`expr 00001 : '.*\(...\)'`" = X001; then
3747   as_expr=expr
3748 else
3749   as_expr=false
3750 fi
3751
3752 rm -f conf$$ conf$$.exe conf$$.file
3753 if test -d conf$$.dir; then
3754   rm -f conf$$.dir/conf$$.file
3755 else
3756   rm -f conf$$.dir
3757   mkdir conf$$.dir
3758 fi
3759 echo >conf$$.file
3760 if ln -s conf$$.file conf$$ 2>/dev/null; then
3761   as_ln_s='ln -s'
3762   # ... but there are two gotchas:
3763   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
3764   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
3765   # In both cases, we have to default to `cp -p'.
3766   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
3767     as_ln_s='cp -p'
3768 elif ln conf$$.file conf$$ 2>/dev/null; then
3769   as_ln_s=ln
3770 else
3771   as_ln_s='cp -p'
3772 fi
3773 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
3774 rmdir conf$$.dir 2>/dev/null
3775
3776 if mkdir -p . 2>/dev/null; then
3777   as_mkdir_p=:
3778 else
3779   test -d ./-p && rmdir ./-p
3780   as_mkdir_p=false
3781 fi
3782
3783 if test -x / >/dev/null 2>&1; then
3784   as_test_x='test -x'
3785 else
3786   if ls -dL / >/dev/null 2>&1; then
3787     as_ls_L_option=L
3788   else
3789     as_ls_L_option=
3790   fi
3791   as_test_x='
3792     eval sh -c '\''
3793       if test -d "$1"; then
3794         test -d "$1/.";
3795       else
3796         case $1 in
3797         -*)set "./$1";;
3798         esac;
3799         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
3800         ???[sx]*):;;*)false;;esac;fi
3801     '\'' sh
3802   '
3803 fi
3804 as_executable_p=$as_test_x
3805
3806 # Sed expression to map a string onto a valid CPP name.
3807 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3808
3809 # Sed expression to map a string onto a valid variable name.
3810 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3811
3812
3813 exec 6>&1
3814
3815 # Save the log message, to keep $[0] and so on meaningful, and to
3816 # report actual input values of CONFIG_FILES etc. instead of their
3817 # values after options handling.
3818 ac_log="
3819 This file was extended by $as_me, which was
3820 generated by GNU Autoconf 2.61.  Invocation command line was
3821
3822   CONFIG_FILES    = $CONFIG_FILES
3823   CONFIG_HEADERS  = $CONFIG_HEADERS
3824   CONFIG_LINKS    = $CONFIG_LINKS
3825   CONFIG_COMMANDS = $CONFIG_COMMANDS
3826   $ $0 $@
3827
3828 on `(hostname || uname -n) 2>/dev/null | sed 1q`
3829 "
3830
3831 _ACEOF
3832
3833 cat >>$CONFIG_STATUS <<_ACEOF
3834 # Files that config.status was made for.
3835 config_files="$ac_config_files"
3836
3837 _ACEOF
3838
3839 cat >>$CONFIG_STATUS <<\_ACEOF
3840 ac_cs_usage="\
3841 \`$as_me' instantiates files from templates according to the
3842 current configuration.
3843
3844 Usage: $0 [OPTIONS] [FILE]...
3845
3846   -h, --help       print this help, then exit
3847   -V, --version    print version number and configuration settings, then exit
3848   -q, --quiet      do not print progress messages
3849   -d, --debug      don't remove temporary files
3850       --recheck    update $as_me by reconfiguring in the same conditions
3851   --file=FILE[:TEMPLATE]
3852                    instantiate the configuration file FILE
3853
3854 Configuration files:
3855 $config_files
3856
3857 Report bugs to <bug-autoconf@gnu.org>."
3858
3859 _ACEOF
3860 cat >>$CONFIG_STATUS <<_ACEOF
3861 ac_cs_version="\\
3862 config.status
3863 configured by $0, generated by GNU Autoconf 2.61,
3864   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
3865
3866 Copyright (C) 2006 Free Software Foundation, Inc.
3867 This config.status script is free software; the Free Software Foundation
3868 gives unlimited permission to copy, distribute and modify it."
3869
3870 ac_pwd='$ac_pwd'
3871 srcdir='$srcdir'
3872 _ACEOF
3873
3874 cat >>$CONFIG_STATUS <<\_ACEOF
3875 # If no file are specified by the user, then we need to provide default
3876 # value.  By we need to know if files were specified by the user.
3877 ac_need_defaults=:
3878 while test $# != 0
3879 do
3880   case $1 in
3881   --*=*)
3882     ac_option=`expr "X$1" : 'X\([^=]*\)='`
3883     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
3884     ac_shift=:
3885     ;;
3886   *)
3887     ac_option=$1
3888     ac_optarg=$2
3889     ac_shift=shift
3890     ;;
3891   esac
3892
3893   case $ac_option in
3894   # Handling of the options.
3895   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3896     ac_cs_recheck=: ;;
3897   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
3898     echo "$ac_cs_version"; exit ;;
3899   --debug | --debu | --deb | --de | --d | -d )
3900     debug=: ;;
3901   --file | --fil | --fi | --f )
3902     $ac_shift
3903     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
3904     ac_need_defaults=false;;
3905   --he | --h |  --help | --hel | -h )
3906     echo "$ac_cs_usage"; exit ;;
3907   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3908   | -silent | --silent | --silen | --sile | --sil | --si | --s)
3909     ac_cs_silent=: ;;
3910
3911   # This is an error.
3912   -*) { echo "$as_me: error: unrecognized option: $1
3913 Try \`$0 --help' for more information." >&2
3914    { (exit 1); exit 1; }; } ;;
3915
3916   *) ac_config_targets="$ac_config_targets $1"
3917      ac_need_defaults=false ;;
3918
3919   esac
3920   shift
3921 done
3922
3923 ac_configure_extra_args=
3924
3925 if $ac_cs_silent; then
3926   exec 6>/dev/null
3927   ac_configure_extra_args="$ac_configure_extra_args --silent"
3928 fi
3929
3930 _ACEOF
3931 cat >>$CONFIG_STATUS <<_ACEOF
3932 if \$ac_cs_recheck; then
3933   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
3934   CONFIG_SHELL=$SHELL
3935   export CONFIG_SHELL
3936   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
3937 fi
3938
3939 _ACEOF
3940 cat >>$CONFIG_STATUS <<\_ACEOF
3941 exec 5>>config.log
3942 {
3943   echo
3944   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3945 ## Running $as_me. ##
3946 _ASBOX
3947   echo "$ac_log"
3948 } >&5
3949
3950 _ACEOF
3951 cat >>$CONFIG_STATUS <<_ACEOF
3952 _ACEOF
3953
3954 cat >>$CONFIG_STATUS <<\_ACEOF
3955
3956 # Handling of arguments.
3957 for ac_config_target in $ac_config_targets
3958 do
3959   case $ac_config_target in
3960     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
3961
3962   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
3963 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
3964    { (exit 1); exit 1; }; };;
3965   esac
3966 done
3967
3968
3969 # If the user did not use the arguments to specify the items to instantiate,
3970 # then the envvar interface is used.  Set only those that are not.
3971 # We use the long form for the default assignment because of an extremely
3972 # bizarre bug on SunOS 4.1.3.
3973 if $ac_need_defaults; then
3974   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3975 fi
3976
3977 # Have a temporary directory for convenience.  Make it in the build tree
3978 # simply because there is no reason against having it here, and in addition,
3979 # creating and moving files from /tmp can sometimes cause problems.
3980 # Hook for its removal unless debugging.
3981 # Note that there is a small window in which the directory will not be cleaned:
3982 # after its creation but before its name has been assigned to `$tmp'.
3983 $debug ||
3984 {
3985   tmp=
3986   trap 'exit_status=$?
3987   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
3988 ' 0
3989   trap '{ (exit 1); exit 1; }' 1 2 13 15
3990 }
3991 # Create a (secure) tmp directory for tmp files.
3992
3993 {
3994   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
3995   test -n "$tmp" && test -d "$tmp"
3996 }  ||
3997 {
3998   tmp=./conf$$-$RANDOM
3999   (umask 077 && mkdir "$tmp")
4000 } ||
4001 {
4002    echo "$me: cannot create a temporary directory in ." >&2
4003    { (exit 1); exit 1; }
4004 }
4005
4006 #
4007 # Set up the sed scripts for CONFIG_FILES section.
4008 #
4009
4010 # No need to generate the scripts if there are no CONFIG_FILES.
4011 # This happens for instance when ./config.status config.h
4012 if test -n "$CONFIG_FILES"; then
4013
4014 _ACEOF
4015
4016
4017
4018 ac_delim='%!_!# '
4019 for ac_last_try in false false false false false :; do
4020   cat >conf$$subs.sed <<_ACEOF
4021 SHELL!$SHELL$ac_delim
4022 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
4023 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
4024 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
4025 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
4026 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
4027 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
4028 exec_prefix!$exec_prefix$ac_delim
4029 prefix!$prefix$ac_delim
4030 program_transform_name!$program_transform_name$ac_delim
4031 bindir!$bindir$ac_delim
4032 sbindir!$sbindir$ac_delim
4033 libexecdir!$libexecdir$ac_delim
4034 datarootdir!$datarootdir$ac_delim
4035 datadir!$datadir$ac_delim
4036 sysconfdir!$sysconfdir$ac_delim
4037 sharedstatedir!$sharedstatedir$ac_delim
4038 localstatedir!$localstatedir$ac_delim
4039 includedir!$includedir$ac_delim
4040 oldincludedir!$oldincludedir$ac_delim
4041 docdir!$docdir$ac_delim
4042 infodir!$infodir$ac_delim
4043 htmldir!$htmldir$ac_delim
4044 dvidir!$dvidir$ac_delim
4045 pdfdir!$pdfdir$ac_delim
4046 psdir!$psdir$ac_delim
4047 libdir!$libdir$ac_delim
4048 localedir!$localedir$ac_delim
4049 mandir!$mandir$ac_delim
4050 DEFS!$DEFS$ac_delim
4051 ECHO_C!$ECHO_C$ac_delim
4052 ECHO_N!$ECHO_N$ac_delim
4053 ECHO_T!$ECHO_T$ac_delim
4054 LIBS!$LIBS$ac_delim
4055 build_alias!$build_alias$ac_delim
4056 host_alias!$host_alias$ac_delim
4057 target_alias!$target_alias$ac_delim
4058 CC!$CC$ac_delim
4059 CFLAGS!$CFLAGS$ac_delim
4060 LDFLAGS!$LDFLAGS$ac_delim
4061 CPPFLAGS!$CPPFLAGS$ac_delim
4062 ac_ct_CC!$ac_ct_CC$ac_delim
4063 EXEEXT!$EXEEXT$ac_delim
4064 OBJEXT!$OBJEXT$ac_delim
4065 CPP!$CPP$ac_delim
4066 PYTHONBIN!$PYTHONBIN$ac_delim
4067 python_ldflags!$python_ldflags$ac_delim
4068 python_cflags!$python_cflags$ac_delim
4069 targetname!$targetname$ac_delim
4070 LIBOBJS!$LIBOBJS$ac_delim
4071 LTLIBOBJS!$LTLIBOBJS$ac_delim
4072 _ACEOF
4073
4074   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 51; then
4075     break
4076   elif $ac_last_try; then
4077     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
4078 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
4079    { (exit 1); exit 1; }; }
4080   else
4081     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4082   fi
4083 done
4084
4085 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
4086 if test -n "$ac_eof"; then
4087   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
4088   ac_eof=`expr $ac_eof + 1`
4089 fi
4090
4091 cat >>$CONFIG_STATUS <<_ACEOF
4092 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
4093 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
4094 _ACEOF
4095 sed '
4096 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
4097 s/^/s,@/; s/!/@,|#_!!_#|/
4098 :n
4099 t n
4100 s/'"$ac_delim"'$/,g/; t
4101 s/$/\\/; p
4102 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
4103 ' >>$CONFIG_STATUS <conf$$subs.sed
4104 rm -f conf$$subs.sed
4105 cat >>$CONFIG_STATUS <<_ACEOF
4106 :end
4107 s/|#_!!_#|//g
4108 CEOF$ac_eof
4109 _ACEOF
4110
4111
4112 # VPATH may cause trouble with some makes, so we remove $(srcdir),
4113 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4114 # trailing colons and then remove the whole line if VPATH becomes empty
4115 # (actually we leave an empty line to preserve line numbers).
4116 if test "x$srcdir" = x.; then
4117   ac_vpsub='/^[  ]*VPATH[        ]*=/{
4118 s/:*\$(srcdir):*/:/
4119 s/:*\${srcdir}:*/:/
4120 s/:*@srcdir@:*/:/
4121 s/^\([^=]*=[     ]*\):*/\1/
4122 s/:*$//
4123 s/^[^=]*=[       ]*$//
4124 }'
4125 fi
4126
4127 cat >>$CONFIG_STATUS <<\_ACEOF
4128 fi # test -n "$CONFIG_FILES"
4129
4130
4131 for ac_tag in  :F $CONFIG_FILES
4132 do
4133   case $ac_tag in
4134   :[FHLC]) ac_mode=$ac_tag; continue;;
4135   esac
4136   case $ac_mode$ac_tag in
4137   :[FHL]*:*);;
4138   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
4139 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
4140    { (exit 1); exit 1; }; };;
4141   :[FH]-) ac_tag=-:-;;
4142   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
4143   esac
4144   ac_save_IFS=$IFS
4145   IFS=:
4146   set x $ac_tag
4147   IFS=$ac_save_IFS
4148   shift
4149   ac_file=$1
4150   shift
4151
4152   case $ac_mode in
4153   :L) ac_source=$1;;
4154   :[FH])
4155     ac_file_inputs=
4156     for ac_f
4157     do
4158       case $ac_f in
4159       -) ac_f="$tmp/stdin";;
4160       *) # Look for the file first in the build tree, then in the source tree
4161          # (if the path is not absolute).  The absolute path cannot be DOS-style,
4162          # because $ac_f cannot contain `:'.
4163          test -f "$ac_f" ||
4164            case $ac_f in
4165            [\\/$]*) false;;
4166            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
4167            esac ||
4168            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
4169 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
4170    { (exit 1); exit 1; }; };;
4171       esac
4172       ac_file_inputs="$ac_file_inputs $ac_f"
4173     done
4174
4175     # Let's still pretend it is `configure' which instantiates (i.e., don't
4176     # use $as_me), people would be surprised to read:
4177     #    /* config.h.  Generated by config.status.  */
4178     configure_input="Generated from "`IFS=:
4179           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
4180     if test x"$ac_file" != x-; then
4181       configure_input="$ac_file.  $configure_input"
4182       { echo "$as_me:$LINENO: creating $ac_file" >&5
4183 echo "$as_me: creating $ac_file" >&6;}
4184     fi
4185
4186     case $ac_tag in
4187     *:-:* | *:-) cat >"$tmp/stdin";;
4188     esac
4189     ;;
4190   esac
4191
4192   ac_dir=`$as_dirname -- "$ac_file" ||
4193 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4194          X"$ac_file" : 'X\(//\)[^/]' \| \
4195          X"$ac_file" : 'X\(//\)$' \| \
4196          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
4197 echo X"$ac_file" |
4198     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4199             s//\1/
4200             q
4201           }
4202           /^X\(\/\/\)[^/].*/{
4203             s//\1/
4204             q
4205           }
4206           /^X\(\/\/\)$/{
4207             s//\1/
4208             q
4209           }
4210           /^X\(\/\).*/{
4211             s//\1/
4212             q
4213           }
4214           s/.*/./; q'`
4215   { as_dir="$ac_dir"
4216   case $as_dir in #(
4217   -*) as_dir=./$as_dir;;
4218   esac
4219   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
4220     as_dirs=
4221     while :; do
4222       case $as_dir in #(
4223       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
4224       *) as_qdir=$as_dir;;
4225       esac
4226       as_dirs="'$as_qdir' $as_dirs"
4227       as_dir=`$as_dirname -- "$as_dir" ||
4228 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4229          X"$as_dir" : 'X\(//\)[^/]' \| \
4230          X"$as_dir" : 'X\(//\)$' \| \
4231          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4232 echo X"$as_dir" |
4233     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4234             s//\1/
4235             q
4236           }
4237           /^X\(\/\/\)[^/].*/{
4238             s//\1/
4239             q
4240           }
4241           /^X\(\/\/\)$/{
4242             s//\1/
4243             q
4244           }
4245           /^X\(\/\).*/{
4246             s//\1/
4247             q
4248           }
4249           s/.*/./; q'`
4250       test -d "$as_dir" && break
4251     done
4252     test -z "$as_dirs" || eval "mkdir $as_dirs"
4253   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
4254 echo "$as_me: error: cannot create directory $as_dir" >&2;}
4255    { (exit 1); exit 1; }; }; }
4256   ac_builddir=.
4257
4258 case "$ac_dir" in
4259 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
4260 *)
4261   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4262   # A ".." for each directory in $ac_dir_suffix.
4263   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
4264   case $ac_top_builddir_sub in
4265   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
4266   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
4267   esac ;;
4268 esac
4269 ac_abs_top_builddir=$ac_pwd
4270 ac_abs_builddir=$ac_pwd$ac_dir_suffix
4271 # for backward compatibility:
4272 ac_top_builddir=$ac_top_build_prefix
4273
4274 case $srcdir in
4275   .)  # We are building in place.
4276     ac_srcdir=.
4277     ac_top_srcdir=$ac_top_builddir_sub
4278     ac_abs_top_srcdir=$ac_pwd ;;
4279   [\\/]* | ?:[\\/]* )  # Absolute name.
4280     ac_srcdir=$srcdir$ac_dir_suffix;
4281     ac_top_srcdir=$srcdir
4282     ac_abs_top_srcdir=$srcdir ;;
4283   *) # Relative name.
4284     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
4285     ac_top_srcdir=$ac_top_build_prefix$srcdir
4286     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
4287 esac
4288 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
4289
4290
4291   case $ac_mode in
4292   :F)
4293   #
4294   # CONFIG_FILE
4295   #
4296
4297 _ACEOF
4298
4299 cat >>$CONFIG_STATUS <<\_ACEOF
4300 # If the template does not know about datarootdir, expand it.
4301 # FIXME: This hack should be removed a few years after 2.60.
4302 ac_datarootdir_hack=; ac_datarootdir_seen=
4303
4304 case `sed -n '/datarootdir/ {
4305   p
4306   q
4307 }
4308 /@datadir@/p
4309 /@docdir@/p
4310 /@infodir@/p
4311 /@localedir@/p
4312 /@mandir@/p
4313 ' $ac_file_inputs` in
4314 *datarootdir*) ac_datarootdir_seen=yes;;
4315 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
4316   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
4317 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
4318 _ACEOF
4319 cat >>$CONFIG_STATUS <<_ACEOF
4320   ac_datarootdir_hack='
4321   s&@datadir@&$datadir&g
4322   s&@docdir@&$docdir&g
4323   s&@infodir@&$infodir&g
4324   s&@localedir@&$localedir&g
4325   s&@mandir@&$mandir&g
4326     s&\\\${datarootdir}&$datarootdir&g' ;;
4327 esac
4328 _ACEOF
4329
4330 # Neutralize VPATH when `$srcdir' = `.'.
4331 # Shell code in configure.ac might set extrasub.
4332 # FIXME: do we really want to maintain this feature?
4333 cat >>$CONFIG_STATUS <<_ACEOF
4334   sed "$ac_vpsub
4335 $extrasub
4336 _ACEOF
4337 cat >>$CONFIG_STATUS <<\_ACEOF
4338 :t
4339 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4340 s&@configure_input@&$configure_input&;t t
4341 s&@top_builddir@&$ac_top_builddir_sub&;t t
4342 s&@srcdir@&$ac_srcdir&;t t
4343 s&@abs_srcdir@&$ac_abs_srcdir&;t t
4344 s&@top_srcdir@&$ac_top_srcdir&;t t
4345 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
4346 s&@builddir@&$ac_builddir&;t t
4347 s&@abs_builddir@&$ac_abs_builddir&;t t
4348 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
4349 $ac_datarootdir_hack
4350 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
4351
4352 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
4353   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
4354   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
4355   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4356 which seems to be undefined.  Please make sure it is defined." >&5
4357 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4358 which seems to be undefined.  Please make sure it is defined." >&2;}
4359
4360   rm -f "$tmp/stdin"
4361   case $ac_file in
4362   -) cat "$tmp/out"; rm -f "$tmp/out";;
4363   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
4364   esac
4365  ;;
4366
4367
4368
4369   esac
4370
4371 done # for ac_tag
4372
4373
4374 { (exit 0); exit 0; }
4375 _ACEOF
4376 chmod +x $CONFIG_STATUS
4377 ac_clean_files=$ac_clean_files_save
4378
4379
4380 # configure is writing to config.log, and then calls config.status.
4381 # config.status does its own redirection, appending to config.log.
4382 # Unfortunately, on DOS this fails, as config.log is still kept open
4383 # by configure, so config.status won't be able to write to it; its
4384 # output is simply discarded.  So we exec the FD to /dev/null,
4385 # effectively closing config.log, so it can be properly (re)opened and
4386 # appended to by config.status.  When coming back to configure, we
4387 # need to make the FD available again.
4388 if test "$no_create" != yes; then
4389   ac_cs_success=:
4390   ac_config_status_args=
4391   test "$silent" = yes &&
4392     ac_config_status_args="$ac_config_status_args --quiet"
4393   exec 5>/dev/null
4394   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4395   exec 5>>config.log
4396   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4397   # would make configure fail if this is the last instruction.
4398   $ac_cs_success || { (exit 1); exit 1; }
4399 fi
4400
4401