New build path variable
[freeradius.git] / src / modules / rlm_perl / 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_perl.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 PERL
627 perl_cflags
628 perl_ldflags
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 Some influential environment variables:
1208   CC          C compiler command
1209   CFLAGS      C compiler flags
1210   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1211               nonstandard directory <lib dir>
1212   LIBS        libraries to pass to the linker, e.g. -l<library>
1213   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1214               you have headers in a nonstandard directory <include dir>
1215   CPP         C preprocessor
1216
1217 Use these variables to override the choices made by `configure' or to help
1218 it to find libraries and programs with nonstandard names/locations.
1219
1220 _ACEOF
1221 ac_status=$?
1222 fi
1223
1224 if test "$ac_init_help" = "recursive"; then
1225   # If there are subdirs, report their specific --help.
1226   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1227     test -d "$ac_dir" || continue
1228     ac_builddir=.
1229
1230 case "$ac_dir" in
1231 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1232 *)
1233   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1234   # A ".." for each directory in $ac_dir_suffix.
1235   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1236   case $ac_top_builddir_sub in
1237   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1238   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1239   esac ;;
1240 esac
1241 ac_abs_top_builddir=$ac_pwd
1242 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1243 # for backward compatibility:
1244 ac_top_builddir=$ac_top_build_prefix
1245
1246 case $srcdir in
1247   .)  # We are building in place.
1248     ac_srcdir=.
1249     ac_top_srcdir=$ac_top_builddir_sub
1250     ac_abs_top_srcdir=$ac_pwd ;;
1251   [\\/]* | ?:[\\/]* )  # Absolute name.
1252     ac_srcdir=$srcdir$ac_dir_suffix;
1253     ac_top_srcdir=$srcdir
1254     ac_abs_top_srcdir=$srcdir ;;
1255   *) # Relative name.
1256     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1257     ac_top_srcdir=$ac_top_build_prefix$srcdir
1258     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1259 esac
1260 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1261
1262     cd "$ac_dir" || { ac_status=$?; continue; }
1263     # Check for guested configure.
1264     if test -f "$ac_srcdir/configure.gnu"; then
1265       echo &&
1266       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1267     elif test -f "$ac_srcdir/configure"; then
1268       echo &&
1269       $SHELL "$ac_srcdir/configure" --help=recursive
1270     else
1271       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1272     fi || ac_status=$?
1273     cd "$ac_pwd" || { ac_status=$?; break; }
1274   done
1275 fi
1276
1277 test -n "$ac_init_help" && exit $ac_status
1278 if $ac_init_version; then
1279   cat <<\_ACEOF
1280 configure
1281 generated by GNU Autoconf 2.61
1282
1283 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1284 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1285 This configure script is free software; the Free Software Foundation
1286 gives unlimited permission to copy, distribute and modify it.
1287 _ACEOF
1288   exit
1289 fi
1290 cat >config.log <<_ACEOF
1291 This file contains any messages produced by compilers while
1292 running configure, to aid debugging if configure makes a mistake.
1293
1294 It was created by $as_me, which was
1295 generated by GNU Autoconf 2.61.  Invocation command line was
1296
1297   $ $0 $@
1298
1299 _ACEOF
1300 exec 5>>config.log
1301 {
1302 cat <<_ASUNAME
1303 ## --------- ##
1304 ## Platform. ##
1305 ## --------- ##
1306
1307 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1308 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1309 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1310 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1311 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1312
1313 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1314 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1315
1316 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1317 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1318 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1319 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1320 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1321 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1322 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1323
1324 _ASUNAME
1325
1326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1327 for as_dir in $PATH
1328 do
1329   IFS=$as_save_IFS
1330   test -z "$as_dir" && as_dir=.
1331   echo "PATH: $as_dir"
1332 done
1333 IFS=$as_save_IFS
1334
1335 } >&5
1336
1337 cat >&5 <<_ACEOF
1338
1339
1340 ## ----------- ##
1341 ## Core tests. ##
1342 ## ----------- ##
1343
1344 _ACEOF
1345
1346
1347 # Keep a trace of the command line.
1348 # Strip out --no-create and --no-recursion so they do not pile up.
1349 # Strip out --silent because we don't want to record it for future runs.
1350 # Also quote any args containing shell meta-characters.
1351 # Make two passes to allow for proper duplicate-argument suppression.
1352 ac_configure_args=
1353 ac_configure_args0=
1354 ac_configure_args1=
1355 ac_must_keep_next=false
1356 for ac_pass in 1 2
1357 do
1358   for ac_arg
1359   do
1360     case $ac_arg in
1361     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1362     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1363     | -silent | --silent | --silen | --sile | --sil)
1364       continue ;;
1365     *\'*)
1366       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1367     esac
1368     case $ac_pass in
1369     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1370     2)
1371       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1372       if test $ac_must_keep_next = true; then
1373         ac_must_keep_next=false # Got value, back to normal.
1374       else
1375         case $ac_arg in
1376           *=* | --config-cache | -C | -disable-* | --disable-* \
1377           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1378           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1379           | -with-* | --with-* | -without-* | --without-* | --x)
1380             case "$ac_configure_args0 " in
1381               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1382             esac
1383             ;;
1384           -* ) ac_must_keep_next=true ;;
1385         esac
1386       fi
1387       ac_configure_args="$ac_configure_args '$ac_arg'"
1388       ;;
1389     esac
1390   done
1391 done
1392 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1393 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1394
1395 # When interrupted or exit'd, cleanup temporary files, and complete
1396 # config.log.  We remove comments because anyway the quotes in there
1397 # would cause problems or look ugly.
1398 # WARNING: Use '\'' to represent an apostrophe within the trap.
1399 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1400 trap 'exit_status=$?
1401   # Save into config.log some information that might help in debugging.
1402   {
1403     echo
1404
1405     cat <<\_ASBOX
1406 ## ---------------- ##
1407 ## Cache variables. ##
1408 ## ---------------- ##
1409 _ASBOX
1410     echo
1411     # The following way of writing the cache mishandles newlines in values,
1412 (
1413   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1414     eval ac_val=\$$ac_var
1415     case $ac_val in #(
1416     *${as_nl}*)
1417       case $ac_var in #(
1418       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1419 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1420       esac
1421       case $ac_var in #(
1422       _ | IFS | as_nl) ;; #(
1423       *) $as_unset $ac_var ;;
1424       esac ;;
1425     esac
1426   done
1427   (set) 2>&1 |
1428     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1429     *${as_nl}ac_space=\ *)
1430       sed -n \
1431         "s/'\''/'\''\\\\'\'''\''/g;
1432           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1433       ;; #(
1434     *)
1435       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1436       ;;
1437     esac |
1438     sort
1439 )
1440     echo
1441
1442     cat <<\_ASBOX
1443 ## ----------------- ##
1444 ## Output variables. ##
1445 ## ----------------- ##
1446 _ASBOX
1447     echo
1448     for ac_var in $ac_subst_vars
1449     do
1450       eval ac_val=\$$ac_var
1451       case $ac_val in
1452       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1453       esac
1454       echo "$ac_var='\''$ac_val'\''"
1455     done | sort
1456     echo
1457
1458     if test -n "$ac_subst_files"; then
1459       cat <<\_ASBOX
1460 ## ------------------- ##
1461 ## File substitutions. ##
1462 ## ------------------- ##
1463 _ASBOX
1464       echo
1465       for ac_var in $ac_subst_files
1466       do
1467         eval ac_val=\$$ac_var
1468         case $ac_val in
1469         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1470         esac
1471         echo "$ac_var='\''$ac_val'\''"
1472       done | sort
1473       echo
1474     fi
1475
1476     if test -s confdefs.h; then
1477       cat <<\_ASBOX
1478 ## ----------- ##
1479 ## confdefs.h. ##
1480 ## ----------- ##
1481 _ASBOX
1482       echo
1483       cat confdefs.h
1484       echo
1485     fi
1486     test "$ac_signal" != 0 &&
1487       echo "$as_me: caught signal $ac_signal"
1488     echo "$as_me: exit $exit_status"
1489   } >&5
1490   rm -f core *.core core.conftest.* &&
1491     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1492     exit $exit_status
1493 ' 0
1494 for ac_signal in 1 2 13 15; do
1495   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1496 done
1497 ac_signal=0
1498
1499 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1500 rm -f -r conftest* confdefs.h
1501
1502 # Predefined preprocessor variables.
1503
1504 cat >>confdefs.h <<_ACEOF
1505 #define PACKAGE_NAME "$PACKAGE_NAME"
1506 _ACEOF
1507
1508
1509 cat >>confdefs.h <<_ACEOF
1510 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1511 _ACEOF
1512
1513
1514 cat >>confdefs.h <<_ACEOF
1515 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1516 _ACEOF
1517
1518
1519 cat >>confdefs.h <<_ACEOF
1520 #define PACKAGE_STRING "$PACKAGE_STRING"
1521 _ACEOF
1522
1523
1524 cat >>confdefs.h <<_ACEOF
1525 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1526 _ACEOF
1527
1528
1529 # Let the site file select an alternate cache file if it wants to.
1530 # Prefer explicitly selected file to automatically selected ones.
1531 if test -n "$CONFIG_SITE"; then
1532   set x "$CONFIG_SITE"
1533 elif test "x$prefix" != xNONE; then
1534   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1535 else
1536   set x "$ac_default_prefix/share/config.site" \
1537         "$ac_default_prefix/etc/config.site"
1538 fi
1539 shift
1540 for ac_site_file
1541 do
1542   if test -r "$ac_site_file"; then
1543     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1544 echo "$as_me: loading site script $ac_site_file" >&6;}
1545     sed 's/^/| /' "$ac_site_file" >&5
1546     . "$ac_site_file"
1547   fi
1548 done
1549
1550 if test -r "$cache_file"; then
1551   # Some versions of bash will fail to source /dev/null (special
1552   # files actually), so we avoid doing that.
1553   if test -f "$cache_file"; then
1554     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1555 echo "$as_me: loading cache $cache_file" >&6;}
1556     case $cache_file in
1557       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1558       *)                      . "./$cache_file";;
1559     esac
1560   fi
1561 else
1562   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1563 echo "$as_me: creating cache $cache_file" >&6;}
1564   >$cache_file
1565 fi
1566
1567 # Check that the precious variables saved in the cache have kept the same
1568 # value.
1569 ac_cache_corrupted=false
1570 for ac_var in $ac_precious_vars; do
1571   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1572   eval ac_new_set=\$ac_env_${ac_var}_set
1573   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1574   eval ac_new_val=\$ac_env_${ac_var}_value
1575   case $ac_old_set,$ac_new_set in
1576     set,)
1577       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1578 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1579       ac_cache_corrupted=: ;;
1580     ,set)
1581       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1582 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1583       ac_cache_corrupted=: ;;
1584     ,);;
1585     *)
1586       if test "x$ac_old_val" != "x$ac_new_val"; then
1587         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1588 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1589         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1590 echo "$as_me:   former value:  $ac_old_val" >&2;}
1591         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1592 echo "$as_me:   current value: $ac_new_val" >&2;}
1593         ac_cache_corrupted=:
1594       fi;;
1595   esac
1596   # Pass precious variables to config.status.
1597   if test "$ac_new_set" = set; then
1598     case $ac_new_val in
1599     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1600     *) ac_arg=$ac_var=$ac_new_val ;;
1601     esac
1602     case " $ac_configure_args " in
1603       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1604       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1605     esac
1606   fi
1607 done
1608 if $ac_cache_corrupted; then
1609   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1610 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1611   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1612 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1613    { (exit 1); exit 1; }; }
1614 fi
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632 ac_ext=c
1633 ac_cpp='$CPP $CPPFLAGS'
1634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1637
1638
1639
1640
1641
1642 if test x$with_rlm_perl != xno; then
1643
1644         ac_ext=c
1645 ac_cpp='$CPP $CPPFLAGS'
1646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1648 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1649 if test -n "$ac_tool_prefix"; then
1650   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1651 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1652 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1653 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1654 if test "${ac_cv_prog_CC+set}" = set; then
1655   echo $ECHO_N "(cached) $ECHO_C" >&6
1656 else
1657   if test -n "$CC"; then
1658   ac_cv_prog_CC="$CC" # Let the user override the test.
1659 else
1660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1661 for as_dir in $PATH
1662 do
1663   IFS=$as_save_IFS
1664   test -z "$as_dir" && as_dir=.
1665   for ac_exec_ext in '' $ac_executable_extensions; do
1666   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1667     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1668     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1669     break 2
1670   fi
1671 done
1672 done
1673 IFS=$as_save_IFS
1674
1675 fi
1676 fi
1677 CC=$ac_cv_prog_CC
1678 if test -n "$CC"; then
1679   { echo "$as_me:$LINENO: result: $CC" >&5
1680 echo "${ECHO_T}$CC" >&6; }
1681 else
1682   { echo "$as_me:$LINENO: result: no" >&5
1683 echo "${ECHO_T}no" >&6; }
1684 fi
1685
1686
1687 fi
1688 if test -z "$ac_cv_prog_CC"; then
1689   ac_ct_CC=$CC
1690   # Extract the first word of "gcc", so it can be a program name with args.
1691 set dummy gcc; ac_word=$2
1692 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1694 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1695   echo $ECHO_N "(cached) $ECHO_C" >&6
1696 else
1697   if test -n "$ac_ct_CC"; then
1698   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1699 else
1700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1701 for as_dir in $PATH
1702 do
1703   IFS=$as_save_IFS
1704   test -z "$as_dir" && as_dir=.
1705   for ac_exec_ext in '' $ac_executable_extensions; do
1706   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1707     ac_cv_prog_ac_ct_CC="gcc"
1708     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1709     break 2
1710   fi
1711 done
1712 done
1713 IFS=$as_save_IFS
1714
1715 fi
1716 fi
1717 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1718 if test -n "$ac_ct_CC"; then
1719   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1720 echo "${ECHO_T}$ac_ct_CC" >&6; }
1721 else
1722   { echo "$as_me:$LINENO: result: no" >&5
1723 echo "${ECHO_T}no" >&6; }
1724 fi
1725
1726   if test "x$ac_ct_CC" = x; then
1727     CC=""
1728   else
1729     case $cross_compiling:$ac_tool_warned in
1730 yes:)
1731 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1732 whose name does not start with the host triplet.  If you think this
1733 configuration is useful to you, please write to autoconf@gnu.org." >&5
1734 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1735 whose name does not start with the host triplet.  If you think this
1736 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1737 ac_tool_warned=yes ;;
1738 esac
1739     CC=$ac_ct_CC
1740   fi
1741 else
1742   CC="$ac_cv_prog_CC"
1743 fi
1744
1745 if test -z "$CC"; then
1746           if test -n "$ac_tool_prefix"; then
1747     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1748 set dummy ${ac_tool_prefix}cc; ac_word=$2
1749 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1751 if test "${ac_cv_prog_CC+set}" = set; then
1752   echo $ECHO_N "(cached) $ECHO_C" >&6
1753 else
1754   if test -n "$CC"; then
1755   ac_cv_prog_CC="$CC" # Let the user override the test.
1756 else
1757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1758 for as_dir in $PATH
1759 do
1760   IFS=$as_save_IFS
1761   test -z "$as_dir" && as_dir=.
1762   for ac_exec_ext in '' $ac_executable_extensions; do
1763   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1764     ac_cv_prog_CC="${ac_tool_prefix}cc"
1765     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1766     break 2
1767   fi
1768 done
1769 done
1770 IFS=$as_save_IFS
1771
1772 fi
1773 fi
1774 CC=$ac_cv_prog_CC
1775 if test -n "$CC"; then
1776   { echo "$as_me:$LINENO: result: $CC" >&5
1777 echo "${ECHO_T}$CC" >&6; }
1778 else
1779   { echo "$as_me:$LINENO: result: no" >&5
1780 echo "${ECHO_T}no" >&6; }
1781 fi
1782
1783
1784   fi
1785 fi
1786 if test -z "$CC"; then
1787   # Extract the first word of "cc", so it can be a program name with args.
1788 set dummy cc; ac_word=$2
1789 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1791 if test "${ac_cv_prog_CC+set}" = set; then
1792   echo $ECHO_N "(cached) $ECHO_C" >&6
1793 else
1794   if test -n "$CC"; then
1795   ac_cv_prog_CC="$CC" # Let the user override the test.
1796 else
1797   ac_prog_rejected=no
1798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1799 for as_dir in $PATH
1800 do
1801   IFS=$as_save_IFS
1802   test -z "$as_dir" && as_dir=.
1803   for ac_exec_ext in '' $ac_executable_extensions; do
1804   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1805     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1806        ac_prog_rejected=yes
1807        continue
1808      fi
1809     ac_cv_prog_CC="cc"
1810     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1811     break 2
1812   fi
1813 done
1814 done
1815 IFS=$as_save_IFS
1816
1817 if test $ac_prog_rejected = yes; then
1818   # We found a bogon in the path, so make sure we never use it.
1819   set dummy $ac_cv_prog_CC
1820   shift
1821   if test $# != 0; then
1822     # We chose a different compiler from the bogus one.
1823     # However, it has the same basename, so the bogon will be chosen
1824     # first if we set CC to just the basename; use the full file name.
1825     shift
1826     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1827   fi
1828 fi
1829 fi
1830 fi
1831 CC=$ac_cv_prog_CC
1832 if test -n "$CC"; then
1833   { echo "$as_me:$LINENO: result: $CC" >&5
1834 echo "${ECHO_T}$CC" >&6; }
1835 else
1836   { echo "$as_me:$LINENO: result: no" >&5
1837 echo "${ECHO_T}no" >&6; }
1838 fi
1839
1840
1841 fi
1842 if test -z "$CC"; then
1843   if test -n "$ac_tool_prefix"; then
1844   for ac_prog in cl.exe
1845   do
1846     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1847 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1848 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1850 if test "${ac_cv_prog_CC+set}" = set; then
1851   echo $ECHO_N "(cached) $ECHO_C" >&6
1852 else
1853   if test -n "$CC"; then
1854   ac_cv_prog_CC="$CC" # Let the user override the test.
1855 else
1856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1857 for as_dir in $PATH
1858 do
1859   IFS=$as_save_IFS
1860   test -z "$as_dir" && as_dir=.
1861   for ac_exec_ext in '' $ac_executable_extensions; do
1862   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1863     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1864     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1865     break 2
1866   fi
1867 done
1868 done
1869 IFS=$as_save_IFS
1870
1871 fi
1872 fi
1873 CC=$ac_cv_prog_CC
1874 if test -n "$CC"; then
1875   { echo "$as_me:$LINENO: result: $CC" >&5
1876 echo "${ECHO_T}$CC" >&6; }
1877 else
1878   { echo "$as_me:$LINENO: result: no" >&5
1879 echo "${ECHO_T}no" >&6; }
1880 fi
1881
1882
1883     test -n "$CC" && break
1884   done
1885 fi
1886 if test -z "$CC"; then
1887   ac_ct_CC=$CC
1888   for ac_prog in cl.exe
1889 do
1890   # Extract the first word of "$ac_prog", so it can be a program name with args.
1891 set dummy $ac_prog; ac_word=$2
1892 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1893 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1894 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1895   echo $ECHO_N "(cached) $ECHO_C" >&6
1896 else
1897   if test -n "$ac_ct_CC"; then
1898   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1899 else
1900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1901 for as_dir in $PATH
1902 do
1903   IFS=$as_save_IFS
1904   test -z "$as_dir" && as_dir=.
1905   for ac_exec_ext in '' $ac_executable_extensions; do
1906   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1907     ac_cv_prog_ac_ct_CC="$ac_prog"
1908     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1909     break 2
1910   fi
1911 done
1912 done
1913 IFS=$as_save_IFS
1914
1915 fi
1916 fi
1917 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1918 if test -n "$ac_ct_CC"; then
1919   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1920 echo "${ECHO_T}$ac_ct_CC" >&6; }
1921 else
1922   { echo "$as_me:$LINENO: result: no" >&5
1923 echo "${ECHO_T}no" >&6; }
1924 fi
1925
1926
1927   test -n "$ac_ct_CC" && break
1928 done
1929
1930   if test "x$ac_ct_CC" = x; then
1931     CC=""
1932   else
1933     case $cross_compiling:$ac_tool_warned in
1934 yes:)
1935 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1936 whose name does not start with the host triplet.  If you think this
1937 configuration is useful to you, please write to autoconf@gnu.org." >&5
1938 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1939 whose name does not start with the host triplet.  If you think this
1940 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1941 ac_tool_warned=yes ;;
1942 esac
1943     CC=$ac_ct_CC
1944   fi
1945 fi
1946
1947 fi
1948
1949
1950 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1951 See \`config.log' for more details." >&5
1952 echo "$as_me: error: no acceptable C compiler found in \$PATH
1953 See \`config.log' for more details." >&2;}
1954    { (exit 1); exit 1; }; }
1955
1956 # Provide some information about the compiler.
1957 echo "$as_me:$LINENO: checking for C compiler version" >&5
1958 ac_compiler=`set X $ac_compile; echo $2`
1959 { (ac_try="$ac_compiler --version >&5"
1960 case "(($ac_try" in
1961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1962   *) ac_try_echo=$ac_try;;
1963 esac
1964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1965   (eval "$ac_compiler --version >&5") 2>&5
1966   ac_status=$?
1967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1968   (exit $ac_status); }
1969 { (ac_try="$ac_compiler -v >&5"
1970 case "(($ac_try" in
1971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1972   *) ac_try_echo=$ac_try;;
1973 esac
1974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1975   (eval "$ac_compiler -v >&5") 2>&5
1976   ac_status=$?
1977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1978   (exit $ac_status); }
1979 { (ac_try="$ac_compiler -V >&5"
1980 case "(($ac_try" in
1981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1982   *) ac_try_echo=$ac_try;;
1983 esac
1984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
1985   (eval "$ac_compiler -V >&5") 2>&5
1986   ac_status=$?
1987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1988   (exit $ac_status); }
1989
1990 cat >conftest.$ac_ext <<_ACEOF
1991 /* confdefs.h.  */
1992 _ACEOF
1993 cat confdefs.h >>conftest.$ac_ext
1994 cat >>conftest.$ac_ext <<_ACEOF
1995 /* end confdefs.h.  */
1996
1997 int
1998 main ()
1999 {
2000
2001   ;
2002   return 0;
2003 }
2004 _ACEOF
2005 ac_clean_files_save=$ac_clean_files
2006 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2007 # Try to create an executable without -o first, disregard a.out.
2008 # It will help us diagnose broken compilers, and finding out an intuition
2009 # of exeext.
2010 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2011 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2012 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2013 #
2014 # List of possible output files, starting from the most likely.
2015 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2016 # only as a last resort.  b.out is created by i960 compilers.
2017 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2018 #
2019 # The IRIX 6 linker writes into existing files which may not be
2020 # executable, retaining their permissions.  Remove them first so a
2021 # subsequent execution test works.
2022 ac_rmfiles=
2023 for ac_file in $ac_files
2024 do
2025   case $ac_file in
2026     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2027     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2028   esac
2029 done
2030 rm -f $ac_rmfiles
2031
2032 if { (ac_try="$ac_link_default"
2033 case "(($ac_try" in
2034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2035   *) ac_try_echo=$ac_try;;
2036 esac
2037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2038   (eval "$ac_link_default") 2>&5
2039   ac_status=$?
2040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2041   (exit $ac_status); }; then
2042   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2043 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2044 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2045 # so that the user can short-circuit this test for compilers unknown to
2046 # Autoconf.
2047 for ac_file in $ac_files ''
2048 do
2049   test -f "$ac_file" || continue
2050   case $ac_file in
2051     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2052         ;;
2053     [ab].out )
2054         # We found the default executable, but exeext='' is most
2055         # certainly right.
2056         break;;
2057     *.* )
2058         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2059         then :; else
2060            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2061         fi
2062         # We set ac_cv_exeext here because the later test for it is not
2063         # safe: cross compilers may not add the suffix if given an `-o'
2064         # argument, so we may need to know it at that point already.
2065         # Even if this section looks crufty: it has the advantage of
2066         # actually working.
2067         break;;
2068     * )
2069         break;;
2070   esac
2071 done
2072 test "$ac_cv_exeext" = no && ac_cv_exeext=
2073
2074 else
2075   ac_file=''
2076 fi
2077
2078 { echo "$as_me:$LINENO: result: $ac_file" >&5
2079 echo "${ECHO_T}$ac_file" >&6; }
2080 if test -z "$ac_file"; then
2081   echo "$as_me: failed program was:" >&5
2082 sed 's/^/| /' conftest.$ac_ext >&5
2083
2084 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2085 See \`config.log' for more details." >&5
2086 echo "$as_me: error: C compiler cannot create executables
2087 See \`config.log' for more details." >&2;}
2088    { (exit 77); exit 77; }; }
2089 fi
2090
2091 ac_exeext=$ac_cv_exeext
2092
2093 # Check that the compiler produces executables we can run.  If not, either
2094 # the compiler is broken, or we cross compile.
2095 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2096 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2097 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2098 # If not cross compiling, check that we can run a simple program.
2099 if test "$cross_compiling" != yes; then
2100   if { ac_try='./$ac_file'
2101   { (case "(($ac_try" in
2102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2103   *) ac_try_echo=$ac_try;;
2104 esac
2105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2106   (eval "$ac_try") 2>&5
2107   ac_status=$?
2108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2109   (exit $ac_status); }; }; then
2110     cross_compiling=no
2111   else
2112     if test "$cross_compiling" = maybe; then
2113         cross_compiling=yes
2114     else
2115         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2116 If you meant to cross compile, use \`--host'.
2117 See \`config.log' for more details." >&5
2118 echo "$as_me: error: cannot run C compiled programs.
2119 If you meant to cross compile, use \`--host'.
2120 See \`config.log' for more details." >&2;}
2121    { (exit 1); exit 1; }; }
2122     fi
2123   fi
2124 fi
2125 { echo "$as_me:$LINENO: result: yes" >&5
2126 echo "${ECHO_T}yes" >&6; }
2127
2128 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2129 ac_clean_files=$ac_clean_files_save
2130 # Check that the compiler produces executables we can run.  If not, either
2131 # the compiler is broken, or we cross compile.
2132 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2133 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2134 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2135 echo "${ECHO_T}$cross_compiling" >&6; }
2136
2137 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2138 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2139 if { (ac_try="$ac_link"
2140 case "(($ac_try" in
2141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2142   *) ac_try_echo=$ac_try;;
2143 esac
2144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2145   (eval "$ac_link") 2>&5
2146   ac_status=$?
2147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2148   (exit $ac_status); }; then
2149   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2150 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2151 # work properly (i.e., refer to `conftest.exe'), while it won't with
2152 # `rm'.
2153 for ac_file in conftest.exe conftest conftest.*; do
2154   test -f "$ac_file" || continue
2155   case $ac_file in
2156     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2157     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2158           break;;
2159     * ) break;;
2160   esac
2161 done
2162 else
2163   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2164 See \`config.log' for more details." >&5
2165 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2166 See \`config.log' for more details." >&2;}
2167    { (exit 1); exit 1; }; }
2168 fi
2169
2170 rm -f conftest$ac_cv_exeext
2171 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2172 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2173
2174 rm -f conftest.$ac_ext
2175 EXEEXT=$ac_cv_exeext
2176 ac_exeext=$EXEEXT
2177 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2178 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2179 if test "${ac_cv_objext+set}" = set; then
2180   echo $ECHO_N "(cached) $ECHO_C" >&6
2181 else
2182   cat >conftest.$ac_ext <<_ACEOF
2183 /* confdefs.h.  */
2184 _ACEOF
2185 cat confdefs.h >>conftest.$ac_ext
2186 cat >>conftest.$ac_ext <<_ACEOF
2187 /* end confdefs.h.  */
2188
2189 int
2190 main ()
2191 {
2192
2193   ;
2194   return 0;
2195 }
2196 _ACEOF
2197 rm -f conftest.o conftest.obj
2198 if { (ac_try="$ac_compile"
2199 case "(($ac_try" in
2200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2201   *) ac_try_echo=$ac_try;;
2202 esac
2203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2204   (eval "$ac_compile") 2>&5
2205   ac_status=$?
2206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2207   (exit $ac_status); }; then
2208   for ac_file in conftest.o conftest.obj conftest.*; do
2209   test -f "$ac_file" || continue;
2210   case $ac_file in
2211     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2212     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2213        break;;
2214   esac
2215 done
2216 else
2217   echo "$as_me: failed program was:" >&5
2218 sed 's/^/| /' conftest.$ac_ext >&5
2219
2220 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2221 See \`config.log' for more details." >&5
2222 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2223 See \`config.log' for more details." >&2;}
2224    { (exit 1); exit 1; }; }
2225 fi
2226
2227 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2228 fi
2229 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2230 echo "${ECHO_T}$ac_cv_objext" >&6; }
2231 OBJEXT=$ac_cv_objext
2232 ac_objext=$OBJEXT
2233 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2234 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2235 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2236   echo $ECHO_N "(cached) $ECHO_C" >&6
2237 else
2238   cat >conftest.$ac_ext <<_ACEOF
2239 /* confdefs.h.  */
2240 _ACEOF
2241 cat confdefs.h >>conftest.$ac_ext
2242 cat >>conftest.$ac_ext <<_ACEOF
2243 /* end confdefs.h.  */
2244
2245 int
2246 main ()
2247 {
2248 #ifndef __GNUC__
2249        choke me
2250 #endif
2251
2252   ;
2253   return 0;
2254 }
2255 _ACEOF
2256 rm -f conftest.$ac_objext
2257 if { (ac_try="$ac_compile"
2258 case "(($ac_try" in
2259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2260   *) ac_try_echo=$ac_try;;
2261 esac
2262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2263   (eval "$ac_compile") 2>conftest.er1
2264   ac_status=$?
2265   grep -v '^ *+' conftest.er1 >conftest.err
2266   rm -f conftest.er1
2267   cat conftest.err >&5
2268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2269   (exit $ac_status); } && {
2270          test -z "$ac_c_werror_flag" ||
2271          test ! -s conftest.err
2272        } && test -s conftest.$ac_objext; then
2273   ac_compiler_gnu=yes
2274 else
2275   echo "$as_me: failed program was:" >&5
2276 sed 's/^/| /' conftest.$ac_ext >&5
2277
2278         ac_compiler_gnu=no
2279 fi
2280
2281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2282 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2283
2284 fi
2285 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2286 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2287 GCC=`test $ac_compiler_gnu = yes && echo yes`
2288 ac_test_CFLAGS=${CFLAGS+set}
2289 ac_save_CFLAGS=$CFLAGS
2290 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2291 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2292 if test "${ac_cv_prog_cc_g+set}" = set; then
2293   echo $ECHO_N "(cached) $ECHO_C" >&6
2294 else
2295   ac_save_c_werror_flag=$ac_c_werror_flag
2296    ac_c_werror_flag=yes
2297    ac_cv_prog_cc_g=no
2298    CFLAGS="-g"
2299    cat >conftest.$ac_ext <<_ACEOF
2300 /* confdefs.h.  */
2301 _ACEOF
2302 cat confdefs.h >>conftest.$ac_ext
2303 cat >>conftest.$ac_ext <<_ACEOF
2304 /* end confdefs.h.  */
2305
2306 int
2307 main ()
2308 {
2309
2310   ;
2311   return 0;
2312 }
2313 _ACEOF
2314 rm -f conftest.$ac_objext
2315 if { (ac_try="$ac_compile"
2316 case "(($ac_try" in
2317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2318   *) ac_try_echo=$ac_try;;
2319 esac
2320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2321   (eval "$ac_compile") 2>conftest.er1
2322   ac_status=$?
2323   grep -v '^ *+' conftest.er1 >conftest.err
2324   rm -f conftest.er1
2325   cat conftest.err >&5
2326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2327   (exit $ac_status); } && {
2328          test -z "$ac_c_werror_flag" ||
2329          test ! -s conftest.err
2330        } && test -s conftest.$ac_objext; then
2331   ac_cv_prog_cc_g=yes
2332 else
2333   echo "$as_me: failed program was:" >&5
2334 sed 's/^/| /' conftest.$ac_ext >&5
2335
2336         CFLAGS=""
2337       cat >conftest.$ac_ext <<_ACEOF
2338 /* confdefs.h.  */
2339 _ACEOF
2340 cat confdefs.h >>conftest.$ac_ext
2341 cat >>conftest.$ac_ext <<_ACEOF
2342 /* end confdefs.h.  */
2343
2344 int
2345 main ()
2346 {
2347
2348   ;
2349   return 0;
2350 }
2351 _ACEOF
2352 rm -f conftest.$ac_objext
2353 if { (ac_try="$ac_compile"
2354 case "(($ac_try" in
2355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2356   *) ac_try_echo=$ac_try;;
2357 esac
2358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2359   (eval "$ac_compile") 2>conftest.er1
2360   ac_status=$?
2361   grep -v '^ *+' conftest.er1 >conftest.err
2362   rm -f conftest.er1
2363   cat conftest.err >&5
2364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365   (exit $ac_status); } && {
2366          test -z "$ac_c_werror_flag" ||
2367          test ! -s conftest.err
2368        } && test -s conftest.$ac_objext; then
2369   :
2370 else
2371   echo "$as_me: failed program was:" >&5
2372 sed 's/^/| /' conftest.$ac_ext >&5
2373
2374         ac_c_werror_flag=$ac_save_c_werror_flag
2375          CFLAGS="-g"
2376          cat >conftest.$ac_ext <<_ACEOF
2377 /* confdefs.h.  */
2378 _ACEOF
2379 cat confdefs.h >>conftest.$ac_ext
2380 cat >>conftest.$ac_ext <<_ACEOF
2381 /* end confdefs.h.  */
2382
2383 int
2384 main ()
2385 {
2386
2387   ;
2388   return 0;
2389 }
2390 _ACEOF
2391 rm -f conftest.$ac_objext
2392 if { (ac_try="$ac_compile"
2393 case "(($ac_try" in
2394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2395   *) ac_try_echo=$ac_try;;
2396 esac
2397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2398   (eval "$ac_compile") 2>conftest.er1
2399   ac_status=$?
2400   grep -v '^ *+' conftest.er1 >conftest.err
2401   rm -f conftest.er1
2402   cat conftest.err >&5
2403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404   (exit $ac_status); } && {
2405          test -z "$ac_c_werror_flag" ||
2406          test ! -s conftest.err
2407        } && test -s conftest.$ac_objext; then
2408   ac_cv_prog_cc_g=yes
2409 else
2410   echo "$as_me: failed program was:" >&5
2411 sed 's/^/| /' conftest.$ac_ext >&5
2412
2413
2414 fi
2415
2416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2417 fi
2418
2419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2420 fi
2421
2422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2423    ac_c_werror_flag=$ac_save_c_werror_flag
2424 fi
2425 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2426 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2427 if test "$ac_test_CFLAGS" = set; then
2428   CFLAGS=$ac_save_CFLAGS
2429 elif test $ac_cv_prog_cc_g = yes; then
2430   if test "$GCC" = yes; then
2431     CFLAGS="-g -O2"
2432   else
2433     CFLAGS="-g"
2434   fi
2435 else
2436   if test "$GCC" = yes; then
2437     CFLAGS="-O2"
2438   else
2439     CFLAGS=
2440   fi
2441 fi
2442 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2443 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2444 if test "${ac_cv_prog_cc_c89+set}" = set; then
2445   echo $ECHO_N "(cached) $ECHO_C" >&6
2446 else
2447   ac_cv_prog_cc_c89=no
2448 ac_save_CC=$CC
2449 cat >conftest.$ac_ext <<_ACEOF
2450 /* confdefs.h.  */
2451 _ACEOF
2452 cat confdefs.h >>conftest.$ac_ext
2453 cat >>conftest.$ac_ext <<_ACEOF
2454 /* end confdefs.h.  */
2455 #include <stdarg.h>
2456 #include <stdio.h>
2457 #include <sys/types.h>
2458 #include <sys/stat.h>
2459 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2460 struct buf { int x; };
2461 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2462 static char *e (p, i)
2463      char **p;
2464      int i;
2465 {
2466   return p[i];
2467 }
2468 static char *f (char * (*g) (char **, int), char **p, ...)
2469 {
2470   char *s;
2471   va_list v;
2472   va_start (v,p);
2473   s = g (p, va_arg (v,int));
2474   va_end (v);
2475   return s;
2476 }
2477
2478 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2479    function prototypes and stuff, but not '\xHH' hex character constants.
2480    These don't provoke an error unfortunately, instead are silently treated
2481    as 'x'.  The following induces an error, until -std is added to get
2482    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2483    array size at least.  It's necessary to write '\x00'==0 to get something
2484    that's true only with -std.  */
2485 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2486
2487 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2488    inside strings and character constants.  */
2489 #define FOO(x) 'x'
2490 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2491
2492 int test (int i, double x);
2493 struct s1 {int (*f) (int a);};
2494 struct s2 {int (*f) (double a);};
2495 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2496 int argc;
2497 char **argv;
2498 int
2499 main ()
2500 {
2501 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2502   ;
2503   return 0;
2504 }
2505 _ACEOF
2506 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2507         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2508 do
2509   CC="$ac_save_CC $ac_arg"
2510   rm -f conftest.$ac_objext
2511 if { (ac_try="$ac_compile"
2512 case "(($ac_try" in
2513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2514   *) ac_try_echo=$ac_try;;
2515 esac
2516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2517   (eval "$ac_compile") 2>conftest.er1
2518   ac_status=$?
2519   grep -v '^ *+' conftest.er1 >conftest.err
2520   rm -f conftest.er1
2521   cat conftest.err >&5
2522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2523   (exit $ac_status); } && {
2524          test -z "$ac_c_werror_flag" ||
2525          test ! -s conftest.err
2526        } && test -s conftest.$ac_objext; then
2527   ac_cv_prog_cc_c89=$ac_arg
2528 else
2529   echo "$as_me: failed program was:" >&5
2530 sed 's/^/| /' conftest.$ac_ext >&5
2531
2532
2533 fi
2534
2535 rm -f core conftest.err conftest.$ac_objext
2536   test "x$ac_cv_prog_cc_c89" != "xno" && break
2537 done
2538 rm -f conftest.$ac_ext
2539 CC=$ac_save_CC
2540
2541 fi
2542 # AC_CACHE_VAL
2543 case "x$ac_cv_prog_cc_c89" in
2544   x)
2545     { echo "$as_me:$LINENO: result: none needed" >&5
2546 echo "${ECHO_T}none needed" >&6; } ;;
2547   xno)
2548     { echo "$as_me:$LINENO: result: unsupported" >&5
2549 echo "${ECHO_T}unsupported" >&6; } ;;
2550   *)
2551     CC="$CC $ac_cv_prog_cc_c89"
2552     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2553 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2554 esac
2555
2556
2557 ac_ext=c
2558 ac_cpp='$CPP $CPPFLAGS'
2559 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2560 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2561 ac_compiler_gnu=$ac_cv_c_compiler_gnu
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 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2569 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2570 # On Suns, sometimes $CPP names a directory.
2571 if test -n "$CPP" && test -d "$CPP"; then
2572   CPP=
2573 fi
2574 if test -z "$CPP"; then
2575   if test "${ac_cv_prog_CPP+set}" = set; then
2576   echo $ECHO_N "(cached) $ECHO_C" >&6
2577 else
2578       # Double quotes because CPP needs to be expanded
2579     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2580     do
2581       ac_preproc_ok=false
2582 for ac_c_preproc_warn_flag in '' yes
2583 do
2584   # Use a header file that comes with gcc, so configuring glibc
2585   # with a fresh cross-compiler works.
2586   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2587   # <limits.h> exists even on freestanding compilers.
2588   # On the NeXT, cc -E runs the code through the compiler's parser,
2589   # not just through cpp. "Syntax error" is here to catch this case.
2590   cat >conftest.$ac_ext <<_ACEOF
2591 /* confdefs.h.  */
2592 _ACEOF
2593 cat confdefs.h >>conftest.$ac_ext
2594 cat >>conftest.$ac_ext <<_ACEOF
2595 /* end confdefs.h.  */
2596 #ifdef __STDC__
2597 # include <limits.h>
2598 #else
2599 # include <assert.h>
2600 #endif
2601                      Syntax error
2602 _ACEOF
2603 if { (ac_try="$ac_cpp conftest.$ac_ext"
2604 case "(($ac_try" in
2605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2606   *) ac_try_echo=$ac_try;;
2607 esac
2608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2609   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2610   ac_status=$?
2611   grep -v '^ *+' conftest.er1 >conftest.err
2612   rm -f conftest.er1
2613   cat conftest.err >&5
2614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615   (exit $ac_status); } >/dev/null && {
2616          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2617          test ! -s conftest.err
2618        }; then
2619   :
2620 else
2621   echo "$as_me: failed program was:" >&5
2622 sed 's/^/| /' conftest.$ac_ext >&5
2623
2624   # Broken: fails on valid input.
2625 continue
2626 fi
2627
2628 rm -f conftest.err conftest.$ac_ext
2629
2630   # OK, works on sane cases.  Now check whether nonexistent headers
2631   # can be detected and how.
2632   cat >conftest.$ac_ext <<_ACEOF
2633 /* confdefs.h.  */
2634 _ACEOF
2635 cat confdefs.h >>conftest.$ac_ext
2636 cat >>conftest.$ac_ext <<_ACEOF
2637 /* end confdefs.h.  */
2638 #include <ac_nonexistent.h>
2639 _ACEOF
2640 if { (ac_try="$ac_cpp conftest.$ac_ext"
2641 case "(($ac_try" in
2642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2643   *) ac_try_echo=$ac_try;;
2644 esac
2645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2646   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2647   ac_status=$?
2648   grep -v '^ *+' conftest.er1 >conftest.err
2649   rm -f conftest.er1
2650   cat conftest.err >&5
2651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652   (exit $ac_status); } >/dev/null && {
2653          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2654          test ! -s conftest.err
2655        }; then
2656   # Broken: success on invalid input.
2657 continue
2658 else
2659   echo "$as_me: failed program was:" >&5
2660 sed 's/^/| /' conftest.$ac_ext >&5
2661
2662   # Passes both tests.
2663 ac_preproc_ok=:
2664 break
2665 fi
2666
2667 rm -f conftest.err conftest.$ac_ext
2668
2669 done
2670 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2671 rm -f conftest.err conftest.$ac_ext
2672 if $ac_preproc_ok; then
2673   break
2674 fi
2675
2676     done
2677     ac_cv_prog_CPP=$CPP
2678
2679 fi
2680   CPP=$ac_cv_prog_CPP
2681 else
2682   ac_cv_prog_CPP=$CPP
2683 fi
2684 { echo "$as_me:$LINENO: result: $CPP" >&5
2685 echo "${ECHO_T}$CPP" >&6; }
2686 ac_preproc_ok=false
2687 for ac_c_preproc_warn_flag in '' yes
2688 do
2689   # Use a header file that comes with gcc, so configuring glibc
2690   # with a fresh cross-compiler works.
2691   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2692   # <limits.h> exists even on freestanding compilers.
2693   # On the NeXT, cc -E runs the code through the compiler's parser,
2694   # not just through cpp. "Syntax error" is here to catch this case.
2695   cat >conftest.$ac_ext <<_ACEOF
2696 /* confdefs.h.  */
2697 _ACEOF
2698 cat confdefs.h >>conftest.$ac_ext
2699 cat >>conftest.$ac_ext <<_ACEOF
2700 /* end confdefs.h.  */
2701 #ifdef __STDC__
2702 # include <limits.h>
2703 #else
2704 # include <assert.h>
2705 #endif
2706                      Syntax error
2707 _ACEOF
2708 if { (ac_try="$ac_cpp conftest.$ac_ext"
2709 case "(($ac_try" in
2710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2711   *) ac_try_echo=$ac_try;;
2712 esac
2713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2714   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2715   ac_status=$?
2716   grep -v '^ *+' conftest.er1 >conftest.err
2717   rm -f conftest.er1
2718   cat conftest.err >&5
2719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720   (exit $ac_status); } >/dev/null && {
2721          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2722          test ! -s conftest.err
2723        }; then
2724   :
2725 else
2726   echo "$as_me: failed program was:" >&5
2727 sed 's/^/| /' conftest.$ac_ext >&5
2728
2729   # Broken: fails on valid input.
2730 continue
2731 fi
2732
2733 rm -f conftest.err conftest.$ac_ext
2734
2735   # OK, works on sane cases.  Now check whether nonexistent headers
2736   # can be detected and how.
2737   cat >conftest.$ac_ext <<_ACEOF
2738 /* confdefs.h.  */
2739 _ACEOF
2740 cat confdefs.h >>conftest.$ac_ext
2741 cat >>conftest.$ac_ext <<_ACEOF
2742 /* end confdefs.h.  */
2743 #include <ac_nonexistent.h>
2744 _ACEOF
2745 if { (ac_try="$ac_cpp conftest.$ac_ext"
2746 case "(($ac_try" in
2747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2748   *) ac_try_echo=$ac_try;;
2749 esac
2750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2751   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2752   ac_status=$?
2753   grep -v '^ *+' conftest.er1 >conftest.err
2754   rm -f conftest.er1
2755   cat conftest.err >&5
2756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757   (exit $ac_status); } >/dev/null && {
2758          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2759          test ! -s conftest.err
2760        }; then
2761   # Broken: success on invalid input.
2762 continue
2763 else
2764   echo "$as_me: failed program was:" >&5
2765 sed 's/^/| /' conftest.$ac_ext >&5
2766
2767   # Passes both tests.
2768 ac_preproc_ok=:
2769 break
2770 fi
2771
2772 rm -f conftest.err conftest.$ac_ext
2773
2774 done
2775 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2776 rm -f conftest.err conftest.$ac_ext
2777 if $ac_preproc_ok; then
2778   :
2779 else
2780   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2781 See \`config.log' for more details." >&5
2782 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2783 See \`config.log' for more details." >&2;}
2784    { (exit 1); exit 1; }; }
2785 fi
2786
2787 ac_ext=c
2788 ac_cpp='$CPP $CPPFLAGS'
2789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2792
2793
2794
2795         # Extract the first word of "perl", so it can be a program name with args.
2796 set dummy perl; ac_word=$2
2797 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2799 if test "${ac_cv_prog_PERL+set}" = set; then
2800   echo $ECHO_N "(cached) $ECHO_C" >&6
2801 else
2802   if test -n "$PERL"; then
2803   ac_cv_prog_PERL="$PERL" # Let the user override the test.
2804 else
2805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2806 for as_dir in $PATH
2807 do
2808   IFS=$as_save_IFS
2809   test -z "$as_dir" && as_dir=.
2810   for ac_exec_ext in '' $ac_executable_extensions; do
2811   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2812     ac_cv_prog_PERL="yes"
2813     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2814     break 2
2815   fi
2816 done
2817 done
2818 IFS=$as_save_IFS
2819
2820   test -z "$ac_cv_prog_PERL" && ac_cv_prog_PERL="no"
2821 fi
2822 fi
2823 PERL=$ac_cv_prog_PERL
2824 if test -n "$PERL"; then
2825   { echo "$as_me:$LINENO: result: $PERL" >&5
2826 echo "${ECHO_T}$PERL" >&6; }
2827 else
2828   { echo "$as_me:$LINENO: result: no" >&5
2829 echo "${ECHO_T}no" >&6; }
2830 fi
2831
2832
2833         if test "$PERL" = "no"; then
2834            fail=$fail" perl"
2835         else
2836           old_CFLAGS=$CFLAGS
2837           CFLAGS="$CFLAGS `perl -MExtUtils::Embed -e ccopts`"
2838
2839           smart_try_dir=
2840
2841
2842
2843 ac_safe=`echo "EXTERN.h" | sed 'y%./+-%__pm%'`
2844 { echo "$as_me:$LINENO: checking for EXTERN.h" >&5
2845 echo $ECHO_N "checking for EXTERN.h... $ECHO_C" >&6; }
2846
2847 old_CFLAGS="$CFLAGS"
2848 smart_include=
2849 smart_include_dir=
2850
2851 if test "x$smart_try_dir" != "x"; then
2852   for try in $smart_try_dir; do
2853     CFLAGS="$old_CFLAGS -I$try"
2854     cat >conftest.$ac_ext <<_ACEOF
2855 /* confdefs.h.  */
2856 _ACEOF
2857 cat confdefs.h >>conftest.$ac_ext
2858 cat >>conftest.$ac_ext <<_ACEOF
2859 /* end confdefs.h.  */
2860
2861                     #include <EXTERN.h>
2862 int
2863 main ()
2864 {
2865  int a = 1;
2866   ;
2867   return 0;
2868 }
2869 _ACEOF
2870 rm -f conftest.$ac_objext
2871 if { (ac_try="$ac_compile"
2872 case "(($ac_try" in
2873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2874   *) ac_try_echo=$ac_try;;
2875 esac
2876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2877   (eval "$ac_compile") 2>conftest.er1
2878   ac_status=$?
2879   grep -v '^ *+' conftest.er1 >conftest.err
2880   rm -f conftest.er1
2881   cat conftest.err >&5
2882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2883   (exit $ac_status); } && {
2884          test -z "$ac_c_werror_flag" ||
2885          test ! -s conftest.err
2886        } && test -s conftest.$ac_objext; then
2887   smart_include="-I$try"
2888 else
2889   echo "$as_me: failed program was:" >&5
2890 sed 's/^/| /' conftest.$ac_ext >&5
2891
2892         smart_include=
2893 fi
2894
2895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2896     if test "x$smart_include" != "x"; then
2897       break;
2898     fi
2899   done
2900   CFLAGS="$old_CFLAGS"
2901 fi
2902
2903 if test "x$smart_include" = "x"; then
2904   cat >conftest.$ac_ext <<_ACEOF
2905 /* confdefs.h.  */
2906 _ACEOF
2907 cat confdefs.h >>conftest.$ac_ext
2908 cat >>conftest.$ac_ext <<_ACEOF
2909 /* end confdefs.h.  */
2910
2911                   #include <EXTERN.h>
2912 int
2913 main ()
2914 {
2915  int a = 1;
2916   ;
2917   return 0;
2918 }
2919 _ACEOF
2920 rm -f conftest.$ac_objext
2921 if { (ac_try="$ac_compile"
2922 case "(($ac_try" in
2923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2924   *) ac_try_echo=$ac_try;;
2925 esac
2926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2927   (eval "$ac_compile") 2>conftest.er1
2928   ac_status=$?
2929   grep -v '^ *+' conftest.er1 >conftest.err
2930   rm -f conftest.er1
2931   cat conftest.err >&5
2932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933   (exit $ac_status); } && {
2934          test -z "$ac_c_werror_flag" ||
2935          test ! -s conftest.err
2936        } && test -s conftest.$ac_objext; then
2937   smart_include=" "
2938 else
2939   echo "$as_me: failed program was:" >&5
2940 sed 's/^/| /' conftest.$ac_ext >&5
2941
2942         smart_include=
2943 fi
2944
2945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2946 fi
2947
2948 if test "x$smart_include" = "x"; then
2949
2950
2951 if test "x$LOCATE" != "x"; then
2952         DIRS=
2953   file=EXTERN.h
2954
2955   for x in `${LOCATE} $file 2>/dev/null`; do
2956                                         base=`echo $x | sed "s%/${file}%%"`
2957     if test "x$x" = "x$base"; then
2958       continue;
2959     fi
2960
2961     dir=`${DIRNAME} $x 2>/dev/null`
2962                 exclude=`echo ${dir} | ${GREP} /home`
2963     if test "x$exclude" != "x"; then
2964       continue
2965     fi
2966
2967                     already=`echo \$smart_include_dir ${DIRS} | ${GREP} ${dir}`
2968     if test "x$already" = "x"; then
2969       DIRS="$DIRS $dir"
2970     fi
2971   done
2972 fi
2973
2974 eval "smart_include_dir=\"\$smart_include_dir $DIRS\""
2975
2976
2977   for try in $smart_include_dir /usr/local/include /opt/include; do
2978     CFLAGS="$old_CFLAGS -I$try"
2979     cat >conftest.$ac_ext <<_ACEOF
2980 /* confdefs.h.  */
2981 _ACEOF
2982 cat confdefs.h >>conftest.$ac_ext
2983 cat >>conftest.$ac_ext <<_ACEOF
2984 /* end confdefs.h.  */
2985
2986                     #include <EXTERN.h>
2987 int
2988 main ()
2989 {
2990  int a = 1;
2991   ;
2992   return 0;
2993 }
2994 _ACEOF
2995 rm -f conftest.$ac_objext
2996 if { (ac_try="$ac_compile"
2997 case "(($ac_try" in
2998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2999   *) ac_try_echo=$ac_try;;
3000 esac
3001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3002   (eval "$ac_compile") 2>conftest.er1
3003   ac_status=$?
3004   grep -v '^ *+' conftest.er1 >conftest.err
3005   rm -f conftest.er1
3006   cat conftest.err >&5
3007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008   (exit $ac_status); } && {
3009          test -z "$ac_c_werror_flag" ||
3010          test ! -s conftest.err
3011        } && test -s conftest.$ac_objext; then
3012   smart_include="-I$try"
3013 else
3014   echo "$as_me: failed program was:" >&5
3015 sed 's/^/| /' conftest.$ac_ext >&5
3016
3017         smart_include=
3018 fi
3019
3020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3021     if test "x$smart_include" != "x"; then
3022       break;
3023     fi
3024   done
3025   CFLAGS="$old_CFLAGS"
3026 fi
3027
3028 if test "x$smart_include" != "x"; then
3029   { echo "$as_me:$LINENO: result: yes" >&5
3030 echo "${ECHO_T}yes" >&6; }
3031   eval "ac_cv_header_$ac_safe=yes"
3032   CFLAGS="$old_CFLAGS $smart_include"
3033   SMART_CFLAGS="$SMART_CFLAGS $smart_include"
3034 else
3035   { echo "$as_me:$LINENO: result: no" >&5
3036 echo "${ECHO_T}no" >&6; }
3037 fi
3038
3039           if test "x$ac_cv_header_EXTERN_h" = "xyes"; then
3040                 perl_cflags='`perl -MExtUtils::Embed -e ccopts`'
3041           else
3042                 fail="$fail EXTERN.h"
3043                 targetname=
3044           fi
3045
3046
3047
3048 ac_safe=`echo "perl.h" | sed 'y%./+-%__pm%'`
3049 { echo "$as_me:$LINENO: checking for perl.h" >&5
3050 echo $ECHO_N "checking for perl.h... $ECHO_C" >&6; }
3051
3052 old_CFLAGS="$CFLAGS"
3053 smart_include=
3054 smart_include_dir=
3055
3056 if test "x$smart_try_dir" != "x"; then
3057   for try in $smart_try_dir; do
3058     CFLAGS="$old_CFLAGS -I$try"
3059     cat >conftest.$ac_ext <<_ACEOF
3060 /* confdefs.h.  */
3061 _ACEOF
3062 cat confdefs.h >>conftest.$ac_ext
3063 cat >>conftest.$ac_ext <<_ACEOF
3064 /* end confdefs.h.  */
3065 #include <EXTERN.h>
3066                     #include <perl.h>
3067 int
3068 main ()
3069 {
3070  int a = 1;
3071   ;
3072   return 0;
3073 }
3074 _ACEOF
3075 rm -f conftest.$ac_objext
3076 if { (ac_try="$ac_compile"
3077 case "(($ac_try" in
3078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3079   *) ac_try_echo=$ac_try;;
3080 esac
3081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3082   (eval "$ac_compile") 2>conftest.er1
3083   ac_status=$?
3084   grep -v '^ *+' conftest.er1 >conftest.err
3085   rm -f conftest.er1
3086   cat conftest.err >&5
3087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088   (exit $ac_status); } && {
3089          test -z "$ac_c_werror_flag" ||
3090          test ! -s conftest.err
3091        } && test -s conftest.$ac_objext; then
3092   smart_include="-I$try"
3093 else
3094   echo "$as_me: failed program was:" >&5
3095 sed 's/^/| /' conftest.$ac_ext >&5
3096
3097         smart_include=
3098 fi
3099
3100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3101     if test "x$smart_include" != "x"; then
3102       break;
3103     fi
3104   done
3105   CFLAGS="$old_CFLAGS"
3106 fi
3107
3108 if test "x$smart_include" = "x"; then
3109   cat >conftest.$ac_ext <<_ACEOF
3110 /* confdefs.h.  */
3111 _ACEOF
3112 cat confdefs.h >>conftest.$ac_ext
3113 cat >>conftest.$ac_ext <<_ACEOF
3114 /* end confdefs.h.  */
3115 #include <EXTERN.h>
3116                   #include <perl.h>
3117 int
3118 main ()
3119 {
3120  int a = 1;
3121   ;
3122   return 0;
3123 }
3124 _ACEOF
3125 rm -f conftest.$ac_objext
3126 if { (ac_try="$ac_compile"
3127 case "(($ac_try" in
3128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3129   *) ac_try_echo=$ac_try;;
3130 esac
3131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3132   (eval "$ac_compile") 2>conftest.er1
3133   ac_status=$?
3134   grep -v '^ *+' conftest.er1 >conftest.err
3135   rm -f conftest.er1
3136   cat conftest.err >&5
3137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138   (exit $ac_status); } && {
3139          test -z "$ac_c_werror_flag" ||
3140          test ! -s conftest.err
3141        } && test -s conftest.$ac_objext; then
3142   smart_include=" "
3143 else
3144   echo "$as_me: failed program was:" >&5
3145 sed 's/^/| /' conftest.$ac_ext >&5
3146
3147         smart_include=
3148 fi
3149
3150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3151 fi
3152
3153 if test "x$smart_include" = "x"; then
3154
3155
3156 if test "x$LOCATE" != "x"; then
3157         DIRS=
3158   file=perl.h
3159
3160   for x in `${LOCATE} $file 2>/dev/null`; do
3161                                         base=`echo $x | sed "s%/${file}%%"`
3162     if test "x$x" = "x$base"; then
3163       continue;
3164     fi
3165
3166     dir=`${DIRNAME} $x 2>/dev/null`
3167                 exclude=`echo ${dir} | ${GREP} /home`
3168     if test "x$exclude" != "x"; then
3169       continue
3170     fi
3171
3172                     already=`echo \$smart_include_dir ${DIRS} | ${GREP} ${dir}`
3173     if test "x$already" = "x"; then
3174       DIRS="$DIRS $dir"
3175     fi
3176   done
3177 fi
3178
3179 eval "smart_include_dir=\"\$smart_include_dir $DIRS\""
3180
3181
3182   for try in $smart_include_dir /usr/local/include /opt/include; do
3183     CFLAGS="$old_CFLAGS -I$try"
3184     cat >conftest.$ac_ext <<_ACEOF
3185 /* confdefs.h.  */
3186 _ACEOF
3187 cat confdefs.h >>conftest.$ac_ext
3188 cat >>conftest.$ac_ext <<_ACEOF
3189 /* end confdefs.h.  */
3190 #include <EXTERN.h>
3191                     #include <perl.h>
3192 int
3193 main ()
3194 {
3195  int a = 1;
3196   ;
3197   return 0;
3198 }
3199 _ACEOF
3200 rm -f conftest.$ac_objext
3201 if { (ac_try="$ac_compile"
3202 case "(($ac_try" in
3203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3204   *) ac_try_echo=$ac_try;;
3205 esac
3206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3207   (eval "$ac_compile") 2>conftest.er1
3208   ac_status=$?
3209   grep -v '^ *+' conftest.er1 >conftest.err
3210   rm -f conftest.er1
3211   cat conftest.err >&5
3212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213   (exit $ac_status); } && {
3214          test -z "$ac_c_werror_flag" ||
3215          test ! -s conftest.err
3216        } && test -s conftest.$ac_objext; then
3217   smart_include="-I$try"
3218 else
3219   echo "$as_me: failed program was:" >&5
3220 sed 's/^/| /' conftest.$ac_ext >&5
3221
3222         smart_include=
3223 fi
3224
3225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3226     if test "x$smart_include" != "x"; then
3227       break;
3228     fi
3229   done
3230   CFLAGS="$old_CFLAGS"
3231 fi
3232
3233 if test "x$smart_include" != "x"; then
3234   { echo "$as_me:$LINENO: result: yes" >&5
3235 echo "${ECHO_T}yes" >&6; }
3236   eval "ac_cv_header_$ac_safe=yes"
3237   CFLAGS="$old_CFLAGS $smart_include"
3238   SMART_CFLAGS="$SMART_CFLAGS $smart_include"
3239 else
3240   { echo "$as_me:$LINENO: result: no" >&5
3241 echo "${ECHO_T}no" >&6; }
3242 fi
3243
3244           if test "x$ac_cv_header_perl_h" = "xyes"; then
3245                 perl_cflags='`perl -MExtUtils::Embed -e ccopts`'
3246           else
3247                 fail="$fail perl.h"
3248                 targetname=
3249           fi
3250
3251           old_LIBS="$LIBS"
3252           LIBS="$old_LIBS `perl -MExtUtils::Embed -e ldopts`"
3253           cat >conftest.$ac_ext <<_ACEOF
3254 /* confdefs.h.  */
3255 _ACEOF
3256 cat confdefs.h >>conftest.$ac_ext
3257 cat >>conftest.$ac_ext <<_ACEOF
3258 /* end confdefs.h.  */
3259 extern char boot_DynaLoader();
3260 int
3261 main ()
3262 {
3263  boot_DynaLoader()
3264   ;
3265   return 0;
3266 }
3267 _ACEOF
3268 rm -f conftest.$ac_objext conftest$ac_exeext
3269 if { (ac_try="$ac_link"
3270 case "(($ac_try" in
3271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3272   *) ac_try_echo=$ac_try;;
3273 esac
3274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3275   (eval "$ac_link") 2>conftest.er1
3276   ac_status=$?
3277   grep -v '^ *+' conftest.er1 >conftest.err
3278   rm -f conftest.er1
3279   cat conftest.err >&5
3280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3281   (exit $ac_status); } && {
3282          test -z "$ac_c_werror_flag" ||
3283          test ! -s conftest.err
3284        } && test -s conftest$ac_exeext &&
3285        $as_test_x conftest$ac_exeext; then
3286   BROKEN=
3287 else
3288   echo "$as_me: failed program was:" >&5
3289 sed 's/^/| /' conftest.$ac_ext >&5
3290
3291         BROKEN="yes"
3292 fi
3293
3294 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3295       conftest$ac_exeext conftest.$ac_ext
3296
3297           if test "x$BROKEN" = "x"; then
3298                 perl_ldflags='`perl -MExtUtils::Embed -e ldopts`'
3299           else
3300                 fail="$fail libperl.so"
3301                 targetname=
3302           fi
3303
3304           cat >conftest.$ac_ext <<_ACEOF
3305 /* confdefs.h.  */
3306 _ACEOF
3307 cat confdefs.h >>conftest.$ac_ext
3308 cat >>conftest.$ac_ext <<_ACEOF
3309 /* end confdefs.h.  */
3310 extern char Perl_hv_store();
3311 int
3312 main ()
3313 {
3314  Perl_hv_store()
3315   ;
3316   return 0;
3317 }
3318 _ACEOF
3319 rm -f conftest.$ac_objext conftest$ac_exeext
3320 if { (ac_try="$ac_link"
3321 case "(($ac_try" in
3322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3323   *) ac_try_echo=$ac_try;;
3324 esac
3325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3326   (eval "$ac_link") 2>conftest.er1
3327   ac_status=$?
3328   grep -v '^ *+' conftest.er1 >conftest.err
3329   rm -f conftest.er1
3330   cat conftest.err >&5
3331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3332   (exit $ac_status); } && {
3333          test -z "$ac_c_werror_flag" ||
3334          test ! -s conftest.err
3335        } && test -s conftest$ac_exeext &&
3336        $as_test_x conftest$ac_exeext; then
3337   BROKEN=
3338 else
3339   echo "$as_me: failed program was:" >&5
3340 sed 's/^/| /' conftest.$ac_ext >&5
3341
3342         BROKEN="yes"
3343 fi
3344
3345 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3346       conftest$ac_exeext conftest.$ac_ext
3347
3348          if test "x$BROKEN" != "x"; then
3349                 fail="$fail libperl.so"
3350                 targetname=
3351           fi
3352
3353           CFLAGS=$old_CFLAGS
3354         fi
3355         targetname=rlm_perl
3356
3357 else
3358         targetname=
3359         echo \*\*\* module rlm_perl is disabled.  # keep this!  Don't change!
3360 fi
3361
3362 if test x"$fail" != x""; then
3363         if test x"${enable_strict_dependencies}" = x"yes"; then
3364                 { { echo "$as_me:$LINENO: error: set --without-rlm_perl to disable it explicitly." >&5
3365 echo "$as_me: error: set --without-rlm_perl to disable it explicitly." >&2;}
3366    { (exit 1); exit 1; }; }
3367         else
3368                 { echo "$as_me:$LINENO: WARNING: silently not building rlm_perl." >&5
3369 echo "$as_me: WARNING: silently not building rlm_perl." >&2;}
3370                 { echo "$as_me:$LINENO: WARNING: FAILURE: rlm_perl requires: $fail." >&5
3371 echo "$as_me: WARNING: FAILURE: rlm_perl requires: $fail." >&2;};
3372                 targetname=""
3373                 perl_cflags=""
3374                 perl_ldflags=""
3375         fi
3376 fi
3377
3378
3379
3380
3381
3382 ac_config_headers="$ac_config_headers config.h"
3383
3384
3385
3386
3387   unset ac_cv_env_LIBS_set
3388   unset ac_cv_env_LIBS_value
3389
3390   ac_config_files="$ac_config_files Makefile"
3391
3392 cat >confcache <<\_ACEOF
3393 # This file is a shell script that caches the results of configure
3394 # tests run on this system so they can be shared between configure
3395 # scripts and configure runs, see configure's option --config-cache.
3396 # It is not useful on other systems.  If it contains results you don't
3397 # want to keep, you may remove or edit it.
3398 #
3399 # config.status only pays attention to the cache file if you give it
3400 # the --recheck option to rerun configure.
3401 #
3402 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3403 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3404 # following values.
3405
3406 _ACEOF
3407
3408 # The following way of writing the cache mishandles newlines in values,
3409 # but we know of no workaround that is simple, portable, and efficient.
3410 # So, we kill variables containing newlines.
3411 # Ultrix sh set writes to stderr and can't be redirected directly,
3412 # and sets the high bit in the cache file unless we assign to the vars.
3413 (
3414   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
3415     eval ac_val=\$$ac_var
3416     case $ac_val in #(
3417     *${as_nl}*)
3418       case $ac_var in #(
3419       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
3420 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
3421       esac
3422       case $ac_var in #(
3423       _ | IFS | as_nl) ;; #(
3424       *) $as_unset $ac_var ;;
3425       esac ;;
3426     esac
3427   done
3428
3429   (set) 2>&1 |
3430     case $as_nl`(ac_space=' '; set) 2>&1` in #(
3431     *${as_nl}ac_space=\ *)
3432       # `set' does not quote correctly, so add quotes (double-quote
3433       # substitution turns \\\\ into \\, and sed turns \\ into \).
3434       sed -n \
3435         "s/'/'\\\\''/g;
3436           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3437       ;; #(
3438     *)
3439       # `set' quotes correctly as required by POSIX, so do not add quotes.
3440       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3441       ;;
3442     esac |
3443     sort
3444 ) |
3445   sed '
3446      /^ac_cv_env_/b end
3447      t clear
3448      :clear
3449      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3450      t end
3451      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3452      :end' >>confcache
3453 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
3454   if test -w "$cache_file"; then
3455     test "x$cache_file" != "x/dev/null" &&
3456       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
3457 echo "$as_me: updating cache $cache_file" >&6;}
3458     cat confcache >$cache_file
3459   else
3460     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
3461 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
3462   fi
3463 fi
3464 rm -f confcache
3465
3466 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3467 # Let make expand exec_prefix.
3468 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3469
3470 DEFS=-DHAVE_CONFIG_H
3471
3472 ac_libobjs=
3473 ac_ltlibobjs=
3474 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3475   # 1. Remove the extension, and $U if already installed.
3476   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
3477   ac_i=`echo "$ac_i" | sed "$ac_script"`
3478   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
3479   #    will be set to the directory where LIBOBJS objects are built.
3480   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
3481   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
3482 done
3483 LIBOBJS=$ac_libobjs
3484
3485 LTLIBOBJS=$ac_ltlibobjs
3486
3487
3488
3489 : ${CONFIG_STATUS=./config.status}
3490 ac_clean_files_save=$ac_clean_files
3491 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3492 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
3493 echo "$as_me: creating $CONFIG_STATUS" >&6;}
3494 cat >$CONFIG_STATUS <<_ACEOF
3495 #! $SHELL
3496 # Generated by $as_me.
3497 # Run this file to recreate the current configuration.
3498 # Compiler output produced by configure, useful for debugging
3499 # configure, is in config.log if it exists.
3500
3501 debug=false
3502 ac_cs_recheck=false
3503 ac_cs_silent=false
3504 SHELL=\${CONFIG_SHELL-$SHELL}
3505 _ACEOF
3506
3507 cat >>$CONFIG_STATUS <<\_ACEOF
3508 ## --------------------- ##
3509 ## M4sh Initialization.  ##
3510 ## --------------------- ##
3511
3512 # Be more Bourne compatible
3513 DUALCASE=1; export DUALCASE # for MKS sh
3514 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3515   emulate sh
3516   NULLCMD=:
3517   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
3518   # is contrary to our usage.  Disable this feature.
3519   alias -g '${1+"$@"}'='"$@"'
3520   setopt NO_GLOB_SUBST
3521 else
3522   case `(set -o) 2>/dev/null` in
3523   *posix*) set -o posix ;;
3524 esac
3525
3526 fi
3527
3528
3529
3530
3531 # PATH needs CR
3532 # Avoid depending upon Character Ranges.
3533 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3534 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3535 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3536 as_cr_digits='0123456789'
3537 as_cr_alnum=$as_cr_Letters$as_cr_digits
3538
3539 # The user is always right.
3540 if test "${PATH_SEPARATOR+set}" != set; then
3541   echo "#! /bin/sh" >conf$$.sh
3542   echo  "exit 0"   >>conf$$.sh
3543   chmod +x conf$$.sh
3544   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3545     PATH_SEPARATOR=';'
3546   else
3547     PATH_SEPARATOR=:
3548   fi
3549   rm -f conf$$.sh
3550 fi
3551
3552 # Support unset when possible.
3553 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3554   as_unset=unset
3555 else
3556   as_unset=false
3557 fi
3558
3559
3560 # IFS
3561 # We need space, tab and new line, in precisely that order.  Quoting is
3562 # there to prevent editors from complaining about space-tab.
3563 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
3564 # splitting by setting IFS to empty value.)
3565 as_nl='
3566 '
3567 IFS=" ""        $as_nl"
3568
3569 # Find who we are.  Look in the path if we contain no directory separator.
3570 case $0 in
3571   *[\\/]* ) as_myself=$0 ;;
3572   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3573 for as_dir in $PATH
3574 do
3575   IFS=$as_save_IFS
3576   test -z "$as_dir" && as_dir=.
3577   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3578 done
3579 IFS=$as_save_IFS
3580
3581      ;;
3582 esac
3583 # We did not find ourselves, most probably we were run as `sh COMMAND'
3584 # in which case we are not to be found in the path.
3585 if test "x$as_myself" = x; then
3586   as_myself=$0
3587 fi
3588 if test ! -f "$as_myself"; then
3589   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
3590   { (exit 1); exit 1; }
3591 fi
3592
3593 # Work around bugs in pre-3.0 UWIN ksh.
3594 for as_var in ENV MAIL MAILPATH
3595 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
3596 done
3597 PS1='$ '
3598 PS2='> '
3599 PS4='+ '
3600
3601 # NLS nuisances.
3602 for as_var in \
3603   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
3604   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
3605   LC_TELEPHONE LC_TIME
3606 do
3607   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
3608     eval $as_var=C; export $as_var
3609   else
3610     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
3611   fi
3612 done
3613
3614 # Required to use basename.
3615 if expr a : '\(a\)' >/dev/null 2>&1 &&
3616    test "X`expr 00001 : '.*\(...\)'`" = X001; then
3617   as_expr=expr
3618 else
3619   as_expr=false
3620 fi
3621
3622 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
3623   as_basename=basename
3624 else
3625   as_basename=false
3626 fi
3627
3628
3629 # Name of the executable.
3630 as_me=`$as_basename -- "$0" ||
3631 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3632          X"$0" : 'X\(//\)$' \| \
3633          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
3634 echo X/"$0" |
3635     sed '/^.*\/\([^/][^/]*\)\/*$/{
3636             s//\1/
3637             q
3638           }
3639           /^X\/\(\/\/\)$/{
3640             s//\1/
3641             q
3642           }
3643           /^X\/\(\/\).*/{
3644             s//\1/
3645             q
3646           }
3647           s/.*/./; q'`
3648
3649 # CDPATH.
3650 $as_unset CDPATH
3651
3652
3653
3654   as_lineno_1=$LINENO
3655   as_lineno_2=$LINENO
3656   test "x$as_lineno_1" != "x$as_lineno_2" &&
3657   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
3658
3659   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
3660   # uniformly replaced by the line number.  The first 'sed' inserts a
3661   # line-number line after each line using $LINENO; the second 'sed'
3662   # does the real work.  The second script uses 'N' to pair each
3663   # line-number line with the line containing $LINENO, and appends
3664   # trailing '-' during substitution so that $LINENO is not a special
3665   # case at line end.
3666   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
3667   # scripts with optimization help from Paolo Bonzini.  Blame Lee
3668   # E. McMahon (1931-1989) for sed's syntax.  :-)
3669   sed -n '
3670     p
3671     /[$]LINENO/=
3672   ' <$as_myself |
3673     sed '
3674       s/[$]LINENO.*/&-/
3675       t lineno
3676       b
3677       :lineno
3678       N
3679       :loop
3680       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
3681       t loop
3682       s/-\n.*//
3683     ' >$as_me.lineno &&
3684   chmod +x "$as_me.lineno" ||
3685     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
3686    { (exit 1); exit 1; }; }
3687
3688   # Don't try to exec as it changes $[0], causing all sort of problems
3689   # (the dirname of $[0] is not the place where we might find the
3690   # original and so on.  Autoconf is especially sensitive to this).
3691   . "./$as_me.lineno"
3692   # Exit status is that of the last command.
3693   exit
3694 }
3695
3696
3697 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
3698   as_dirname=dirname
3699 else
3700   as_dirname=false
3701 fi
3702
3703 ECHO_C= ECHO_N= ECHO_T=
3704 case `echo -n x` in
3705 -n*)
3706   case `echo 'x\c'` in
3707   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
3708   *)   ECHO_C='\c';;
3709   esac;;
3710 *)
3711   ECHO_N='-n';;
3712 esac
3713
3714 if expr a : '\(a\)' >/dev/null 2>&1 &&
3715    test "X`expr 00001 : '.*\(...\)'`" = X001; then
3716   as_expr=expr
3717 else
3718   as_expr=false
3719 fi
3720
3721 rm -f conf$$ conf$$.exe conf$$.file
3722 if test -d conf$$.dir; then
3723   rm -f conf$$.dir/conf$$.file
3724 else
3725   rm -f conf$$.dir
3726   mkdir conf$$.dir
3727 fi
3728 echo >conf$$.file
3729 if ln -s conf$$.file conf$$ 2>/dev/null; then
3730   as_ln_s='ln -s'
3731   # ... but there are two gotchas:
3732   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
3733   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
3734   # In both cases, we have to default to `cp -p'.
3735   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
3736     as_ln_s='cp -p'
3737 elif ln conf$$.file conf$$ 2>/dev/null; then
3738   as_ln_s=ln
3739 else
3740   as_ln_s='cp -p'
3741 fi
3742 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
3743 rmdir conf$$.dir 2>/dev/null
3744
3745 if mkdir -p . 2>/dev/null; then
3746   as_mkdir_p=:
3747 else
3748   test -d ./-p && rmdir ./-p
3749   as_mkdir_p=false
3750 fi
3751
3752 if test -x / >/dev/null 2>&1; then
3753   as_test_x='test -x'
3754 else
3755   if ls -dL / >/dev/null 2>&1; then
3756     as_ls_L_option=L
3757   else
3758     as_ls_L_option=
3759   fi
3760   as_test_x='
3761     eval sh -c '\''
3762       if test -d "$1"; then
3763         test -d "$1/.";
3764       else
3765         case $1 in
3766         -*)set "./$1";;
3767         esac;
3768         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
3769         ???[sx]*):;;*)false;;esac;fi
3770     '\'' sh
3771   '
3772 fi
3773 as_executable_p=$as_test_x
3774
3775 # Sed expression to map a string onto a valid CPP name.
3776 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3777
3778 # Sed expression to map a string onto a valid variable name.
3779 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3780
3781
3782 exec 6>&1
3783
3784 # Save the log message, to keep $[0] and so on meaningful, and to
3785 # report actual input values of CONFIG_FILES etc. instead of their
3786 # values after options handling.
3787 ac_log="
3788 This file was extended by $as_me, which was
3789 generated by GNU Autoconf 2.61.  Invocation command line was
3790
3791   CONFIG_FILES    = $CONFIG_FILES
3792   CONFIG_HEADERS  = $CONFIG_HEADERS
3793   CONFIG_LINKS    = $CONFIG_LINKS
3794   CONFIG_COMMANDS = $CONFIG_COMMANDS
3795   $ $0 $@
3796
3797 on `(hostname || uname -n) 2>/dev/null | sed 1q`
3798 "
3799
3800 _ACEOF
3801
3802 cat >>$CONFIG_STATUS <<_ACEOF
3803 # Files that config.status was made for.
3804 config_files="$ac_config_files"
3805 config_headers="$ac_config_headers"
3806
3807 _ACEOF
3808
3809 cat >>$CONFIG_STATUS <<\_ACEOF
3810 ac_cs_usage="\
3811 \`$as_me' instantiates files from templates according to the
3812 current configuration.
3813
3814 Usage: $0 [OPTIONS] [FILE]...
3815
3816   -h, --help       print this help, then exit
3817   -V, --version    print version number and configuration settings, then exit
3818   -q, --quiet      do not print progress messages
3819   -d, --debug      don't remove temporary files
3820       --recheck    update $as_me by reconfiguring in the same conditions
3821   --file=FILE[:TEMPLATE]
3822                    instantiate the configuration file FILE
3823   --header=FILE[:TEMPLATE]
3824                    instantiate the configuration header FILE
3825
3826 Configuration files:
3827 $config_files
3828
3829 Configuration headers:
3830 $config_headers
3831
3832 Report bugs to <bug-autoconf@gnu.org>."
3833
3834 _ACEOF
3835 cat >>$CONFIG_STATUS <<_ACEOF
3836 ac_cs_version="\\
3837 config.status
3838 configured by $0, generated by GNU Autoconf 2.61,
3839   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
3840
3841 Copyright (C) 2006 Free Software Foundation, Inc.
3842 This config.status script is free software; the Free Software Foundation
3843 gives unlimited permission to copy, distribute and modify it."
3844
3845 ac_pwd='$ac_pwd'
3846 srcdir='$srcdir'
3847 _ACEOF
3848
3849 cat >>$CONFIG_STATUS <<\_ACEOF
3850 # If no file are specified by the user, then we need to provide default
3851 # value.  By we need to know if files were specified by the user.
3852 ac_need_defaults=:
3853 while test $# != 0
3854 do
3855   case $1 in
3856   --*=*)
3857     ac_option=`expr "X$1" : 'X\([^=]*\)='`
3858     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
3859     ac_shift=:
3860     ;;
3861   *)
3862     ac_option=$1
3863     ac_optarg=$2
3864     ac_shift=shift
3865     ;;
3866   esac
3867
3868   case $ac_option in
3869   # Handling of the options.
3870   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3871     ac_cs_recheck=: ;;
3872   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
3873     echo "$ac_cs_version"; exit ;;
3874   --debug | --debu | --deb | --de | --d | -d )
3875     debug=: ;;
3876   --file | --fil | --fi | --f )
3877     $ac_shift
3878     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
3879     ac_need_defaults=false;;
3880   --header | --heade | --head | --hea )
3881     $ac_shift
3882     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
3883     ac_need_defaults=false;;
3884   --he | --h)
3885     # Conflict between --help and --header
3886     { echo "$as_me: error: ambiguous option: $1
3887 Try \`$0 --help' for more information." >&2
3888    { (exit 1); exit 1; }; };;
3889   --help | --hel | -h )
3890     echo "$ac_cs_usage"; exit ;;
3891   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3892   | -silent | --silent | --silen | --sile | --sil | --si | --s)
3893     ac_cs_silent=: ;;
3894
3895   # This is an error.
3896   -*) { echo "$as_me: error: unrecognized option: $1
3897 Try \`$0 --help' for more information." >&2
3898    { (exit 1); exit 1; }; } ;;
3899
3900   *) ac_config_targets="$ac_config_targets $1"
3901      ac_need_defaults=false ;;
3902
3903   esac
3904   shift
3905 done
3906
3907 ac_configure_extra_args=
3908
3909 if $ac_cs_silent; then
3910   exec 6>/dev/null
3911   ac_configure_extra_args="$ac_configure_extra_args --silent"
3912 fi
3913
3914 _ACEOF
3915 cat >>$CONFIG_STATUS <<_ACEOF
3916 if \$ac_cs_recheck; then
3917   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
3918   CONFIG_SHELL=$SHELL
3919   export CONFIG_SHELL
3920   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
3921 fi
3922
3923 _ACEOF
3924 cat >>$CONFIG_STATUS <<\_ACEOF
3925 exec 5>>config.log
3926 {
3927   echo
3928   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3929 ## Running $as_me. ##
3930 _ASBOX
3931   echo "$ac_log"
3932 } >&5
3933
3934 _ACEOF
3935 cat >>$CONFIG_STATUS <<_ACEOF
3936 _ACEOF
3937
3938 cat >>$CONFIG_STATUS <<\_ACEOF
3939
3940 # Handling of arguments.
3941 for ac_config_target in $ac_config_targets
3942 do
3943   case $ac_config_target in
3944     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
3945     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
3946
3947   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
3948 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
3949    { (exit 1); exit 1; }; };;
3950   esac
3951 done
3952
3953
3954 # If the user did not use the arguments to specify the items to instantiate,
3955 # then the envvar interface is used.  Set only those that are not.
3956 # We use the long form for the default assignment because of an extremely
3957 # bizarre bug on SunOS 4.1.3.
3958 if $ac_need_defaults; then
3959   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3960   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
3961 fi
3962
3963 # Have a temporary directory for convenience.  Make it in the build tree
3964 # simply because there is no reason against having it here, and in addition,
3965 # creating and moving files from /tmp can sometimes cause problems.
3966 # Hook for its removal unless debugging.
3967 # Note that there is a small window in which the directory will not be cleaned:
3968 # after its creation but before its name has been assigned to `$tmp'.
3969 $debug ||
3970 {
3971   tmp=
3972   trap 'exit_status=$?
3973   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
3974 ' 0
3975   trap '{ (exit 1); exit 1; }' 1 2 13 15
3976 }
3977 # Create a (secure) tmp directory for tmp files.
3978
3979 {
3980   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
3981   test -n "$tmp" && test -d "$tmp"
3982 }  ||
3983 {
3984   tmp=./conf$$-$RANDOM
3985   (umask 077 && mkdir "$tmp")
3986 } ||
3987 {
3988    echo "$me: cannot create a temporary directory in ." >&2
3989    { (exit 1); exit 1; }
3990 }
3991
3992 #
3993 # Set up the sed scripts for CONFIG_FILES section.
3994 #
3995
3996 # No need to generate the scripts if there are no CONFIG_FILES.
3997 # This happens for instance when ./config.status config.h
3998 if test -n "$CONFIG_FILES"; then
3999
4000 _ACEOF
4001
4002
4003
4004 ac_delim='%!_!# '
4005 for ac_last_try in false false false false false :; do
4006   cat >conf$$subs.sed <<_ACEOF
4007 SHELL!$SHELL$ac_delim
4008 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
4009 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
4010 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
4011 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
4012 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
4013 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
4014 exec_prefix!$exec_prefix$ac_delim
4015 prefix!$prefix$ac_delim
4016 program_transform_name!$program_transform_name$ac_delim
4017 bindir!$bindir$ac_delim
4018 sbindir!$sbindir$ac_delim
4019 libexecdir!$libexecdir$ac_delim
4020 datarootdir!$datarootdir$ac_delim
4021 datadir!$datadir$ac_delim
4022 sysconfdir!$sysconfdir$ac_delim
4023 sharedstatedir!$sharedstatedir$ac_delim
4024 localstatedir!$localstatedir$ac_delim
4025 includedir!$includedir$ac_delim
4026 oldincludedir!$oldincludedir$ac_delim
4027 docdir!$docdir$ac_delim
4028 infodir!$infodir$ac_delim
4029 htmldir!$htmldir$ac_delim
4030 dvidir!$dvidir$ac_delim
4031 pdfdir!$pdfdir$ac_delim
4032 psdir!$psdir$ac_delim
4033 libdir!$libdir$ac_delim
4034 localedir!$localedir$ac_delim
4035 mandir!$mandir$ac_delim
4036 DEFS!$DEFS$ac_delim
4037 ECHO_C!$ECHO_C$ac_delim
4038 ECHO_N!$ECHO_N$ac_delim
4039 ECHO_T!$ECHO_T$ac_delim
4040 LIBS!$LIBS$ac_delim
4041 build_alias!$build_alias$ac_delim
4042 host_alias!$host_alias$ac_delim
4043 target_alias!$target_alias$ac_delim
4044 CC!$CC$ac_delim
4045 CFLAGS!$CFLAGS$ac_delim
4046 LDFLAGS!$LDFLAGS$ac_delim
4047 CPPFLAGS!$CPPFLAGS$ac_delim
4048 ac_ct_CC!$ac_ct_CC$ac_delim
4049 EXEEXT!$EXEEXT$ac_delim
4050 OBJEXT!$OBJEXT$ac_delim
4051 CPP!$CPP$ac_delim
4052 PERL!$PERL$ac_delim
4053 perl_cflags!$perl_cflags$ac_delim
4054 perl_ldflags!$perl_ldflags$ac_delim
4055 targetname!$targetname$ac_delim
4056 LIBOBJS!$LIBOBJS$ac_delim
4057 LTLIBOBJS!$LTLIBOBJS$ac_delim
4058 _ACEOF
4059
4060   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 51; then
4061     break
4062   elif $ac_last_try; then
4063     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
4064 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
4065    { (exit 1); exit 1; }; }
4066   else
4067     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4068   fi
4069 done
4070
4071 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
4072 if test -n "$ac_eof"; then
4073   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
4074   ac_eof=`expr $ac_eof + 1`
4075 fi
4076
4077 cat >>$CONFIG_STATUS <<_ACEOF
4078 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
4079 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
4080 _ACEOF
4081 sed '
4082 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
4083 s/^/s,@/; s/!/@,|#_!!_#|/
4084 :n
4085 t n
4086 s/'"$ac_delim"'$/,g/; t
4087 s/$/\\/; p
4088 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
4089 ' >>$CONFIG_STATUS <conf$$subs.sed
4090 rm -f conf$$subs.sed
4091 cat >>$CONFIG_STATUS <<_ACEOF
4092 :end
4093 s/|#_!!_#|//g
4094 CEOF$ac_eof
4095 _ACEOF
4096
4097
4098 # VPATH may cause trouble with some makes, so we remove $(srcdir),
4099 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4100 # trailing colons and then remove the whole line if VPATH becomes empty
4101 # (actually we leave an empty line to preserve line numbers).
4102 if test "x$srcdir" = x.; then
4103   ac_vpsub='/^[  ]*VPATH[        ]*=/{
4104 s/:*\$(srcdir):*/:/
4105 s/:*\${srcdir}:*/:/
4106 s/:*@srcdir@:*/:/
4107 s/^\([^=]*=[     ]*\):*/\1/
4108 s/:*$//
4109 s/^[^=]*=[       ]*$//
4110 }'
4111 fi
4112
4113 cat >>$CONFIG_STATUS <<\_ACEOF
4114 fi # test -n "$CONFIG_FILES"
4115
4116
4117 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS
4118 do
4119   case $ac_tag in
4120   :[FHLC]) ac_mode=$ac_tag; continue;;
4121   esac
4122   case $ac_mode$ac_tag in
4123   :[FHL]*:*);;
4124   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
4125 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
4126    { (exit 1); exit 1; }; };;
4127   :[FH]-) ac_tag=-:-;;
4128   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
4129   esac
4130   ac_save_IFS=$IFS
4131   IFS=:
4132   set x $ac_tag
4133   IFS=$ac_save_IFS
4134   shift
4135   ac_file=$1
4136   shift
4137
4138   case $ac_mode in
4139   :L) ac_source=$1;;
4140   :[FH])
4141     ac_file_inputs=
4142     for ac_f
4143     do
4144       case $ac_f in
4145       -) ac_f="$tmp/stdin";;
4146       *) # Look for the file first in the build tree, then in the source tree
4147          # (if the path is not absolute).  The absolute path cannot be DOS-style,
4148          # because $ac_f cannot contain `:'.
4149          test -f "$ac_f" ||
4150            case $ac_f in
4151            [\\/$]*) false;;
4152            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
4153            esac ||
4154            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
4155 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
4156    { (exit 1); exit 1; }; };;
4157       esac
4158       ac_file_inputs="$ac_file_inputs $ac_f"
4159     done
4160
4161     # Let's still pretend it is `configure' which instantiates (i.e., don't
4162     # use $as_me), people would be surprised to read:
4163     #    /* config.h.  Generated by config.status.  */
4164     configure_input="Generated from "`IFS=:
4165           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
4166     if test x"$ac_file" != x-; then
4167       configure_input="$ac_file.  $configure_input"
4168       { echo "$as_me:$LINENO: creating $ac_file" >&5
4169 echo "$as_me: creating $ac_file" >&6;}
4170     fi
4171
4172     case $ac_tag in
4173     *:-:* | *:-) cat >"$tmp/stdin";;
4174     esac
4175     ;;
4176   esac
4177
4178   ac_dir=`$as_dirname -- "$ac_file" ||
4179 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4180          X"$ac_file" : 'X\(//\)[^/]' \| \
4181          X"$ac_file" : 'X\(//\)$' \| \
4182          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
4183 echo X"$ac_file" |
4184     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4185             s//\1/
4186             q
4187           }
4188           /^X\(\/\/\)[^/].*/{
4189             s//\1/
4190             q
4191           }
4192           /^X\(\/\/\)$/{
4193             s//\1/
4194             q
4195           }
4196           /^X\(\/\).*/{
4197             s//\1/
4198             q
4199           }
4200           s/.*/./; q'`
4201   { as_dir="$ac_dir"
4202   case $as_dir in #(
4203   -*) as_dir=./$as_dir;;
4204   esac
4205   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
4206     as_dirs=
4207     while :; do
4208       case $as_dir in #(
4209       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
4210       *) as_qdir=$as_dir;;
4211       esac
4212       as_dirs="'$as_qdir' $as_dirs"
4213       as_dir=`$as_dirname -- "$as_dir" ||
4214 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4215          X"$as_dir" : 'X\(//\)[^/]' \| \
4216          X"$as_dir" : 'X\(//\)$' \| \
4217          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4218 echo X"$as_dir" |
4219     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4220             s//\1/
4221             q
4222           }
4223           /^X\(\/\/\)[^/].*/{
4224             s//\1/
4225             q
4226           }
4227           /^X\(\/\/\)$/{
4228             s//\1/
4229             q
4230           }
4231           /^X\(\/\).*/{
4232             s//\1/
4233             q
4234           }
4235           s/.*/./; q'`
4236       test -d "$as_dir" && break
4237     done
4238     test -z "$as_dirs" || eval "mkdir $as_dirs"
4239   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
4240 echo "$as_me: error: cannot create directory $as_dir" >&2;}
4241    { (exit 1); exit 1; }; }; }
4242   ac_builddir=.
4243
4244 case "$ac_dir" in
4245 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
4246 *)
4247   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4248   # A ".." for each directory in $ac_dir_suffix.
4249   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
4250   case $ac_top_builddir_sub in
4251   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
4252   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
4253   esac ;;
4254 esac
4255 ac_abs_top_builddir=$ac_pwd
4256 ac_abs_builddir=$ac_pwd$ac_dir_suffix
4257 # for backward compatibility:
4258 ac_top_builddir=$ac_top_build_prefix
4259
4260 case $srcdir in
4261   .)  # We are building in place.
4262     ac_srcdir=.
4263     ac_top_srcdir=$ac_top_builddir_sub
4264     ac_abs_top_srcdir=$ac_pwd ;;
4265   [\\/]* | ?:[\\/]* )  # Absolute name.
4266     ac_srcdir=$srcdir$ac_dir_suffix;
4267     ac_top_srcdir=$srcdir
4268     ac_abs_top_srcdir=$srcdir ;;
4269   *) # Relative name.
4270     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
4271     ac_top_srcdir=$ac_top_build_prefix$srcdir
4272     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
4273 esac
4274 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
4275
4276
4277   case $ac_mode in
4278   :F)
4279   #
4280   # CONFIG_FILE
4281   #
4282
4283 _ACEOF
4284
4285 cat >>$CONFIG_STATUS <<\_ACEOF
4286 # If the template does not know about datarootdir, expand it.
4287 # FIXME: This hack should be removed a few years after 2.60.
4288 ac_datarootdir_hack=; ac_datarootdir_seen=
4289
4290 case `sed -n '/datarootdir/ {
4291   p
4292   q
4293 }
4294 /@datadir@/p
4295 /@docdir@/p
4296 /@infodir@/p
4297 /@localedir@/p
4298 /@mandir@/p
4299 ' $ac_file_inputs` in
4300 *datarootdir*) ac_datarootdir_seen=yes;;
4301 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
4302   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
4303 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
4304 _ACEOF
4305 cat >>$CONFIG_STATUS <<_ACEOF
4306   ac_datarootdir_hack='
4307   s&@datadir@&$datadir&g
4308   s&@docdir@&$docdir&g
4309   s&@infodir@&$infodir&g
4310   s&@localedir@&$localedir&g
4311   s&@mandir@&$mandir&g
4312     s&\\\${datarootdir}&$datarootdir&g' ;;
4313 esac
4314 _ACEOF
4315
4316 # Neutralize VPATH when `$srcdir' = `.'.
4317 # Shell code in configure.ac might set extrasub.
4318 # FIXME: do we really want to maintain this feature?
4319 cat >>$CONFIG_STATUS <<_ACEOF
4320   sed "$ac_vpsub
4321 $extrasub
4322 _ACEOF
4323 cat >>$CONFIG_STATUS <<\_ACEOF
4324 :t
4325 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4326 s&@configure_input@&$configure_input&;t t
4327 s&@top_builddir@&$ac_top_builddir_sub&;t t
4328 s&@srcdir@&$ac_srcdir&;t t
4329 s&@abs_srcdir@&$ac_abs_srcdir&;t t
4330 s&@top_srcdir@&$ac_top_srcdir&;t t
4331 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
4332 s&@builddir@&$ac_builddir&;t t
4333 s&@abs_builddir@&$ac_abs_builddir&;t t
4334 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
4335 $ac_datarootdir_hack
4336 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
4337
4338 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
4339   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
4340   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
4341   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4342 which seems to be undefined.  Please make sure it is defined." >&5
4343 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
4344 which seems to be undefined.  Please make sure it is defined." >&2;}
4345
4346   rm -f "$tmp/stdin"
4347   case $ac_file in
4348   -) cat "$tmp/out"; rm -f "$tmp/out";;
4349   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
4350   esac
4351  ;;
4352   :H)
4353   #
4354   # CONFIG_HEADER
4355   #
4356 _ACEOF
4357
4358 # Transform confdefs.h into a sed script `conftest.defines', that
4359 # substitutes the proper values into config.h.in to produce config.h.
4360 rm -f conftest.defines conftest.tail
4361 # First, append a space to every undef/define line, to ease matching.
4362 echo 's/$/ /' >conftest.defines
4363 # Then, protect against being on the right side of a sed subst, or in
4364 # an unquoted here document, in config.status.  If some macros were
4365 # called several times there might be several #defines for the same
4366 # symbol, which is useless.  But do not sort them, since the last
4367 # AC_DEFINE must be honored.
4368 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
4369 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
4370 # NAME is the cpp macro being defined, VALUE is the value it is being given.
4371 # PARAMS is the parameter list in the macro definition--in most cases, it's
4372 # just an empty string.
4373 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
4374 ac_dB='\\)[      (].*,\\1define\\2'
4375 ac_dC=' '
4376 ac_dD=' ,'
4377
4378 uniq confdefs.h |
4379   sed -n '
4380         t rset
4381         :rset
4382         s/^[     ]*#[    ]*define[       ][      ]*//
4383         t ok
4384         d
4385         :ok
4386         s/[\\&,]/\\&/g
4387         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
4388         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
4389   ' >>conftest.defines
4390
4391 # Remove the space that was appended to ease matching.
4392 # Then replace #undef with comments.  This is necessary, for
4393 # example, in the case of _POSIX_SOURCE, which is predefined and required
4394 # on some systems where configure will not decide to define it.
4395 # (The regexp can be short, since the line contains either #define or #undef.)
4396 echo 's/ $//
4397 s,^[     #]*u.*,/* & */,' >>conftest.defines
4398
4399 # Break up conftest.defines:
4400 ac_max_sed_lines=50
4401
4402 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
4403 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
4404 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
4405 # et cetera.
4406 ac_in='$ac_file_inputs'
4407 ac_out='"$tmp/out1"'
4408 ac_nxt='"$tmp/out2"'
4409
4410 while :
4411 do
4412   # Write a here document:
4413     cat >>$CONFIG_STATUS <<_ACEOF
4414     # First, check the format of the line:
4415     cat >"\$tmp/defines.sed" <<\\CEOF
4416 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
4417 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
4418 b
4419 :def
4420 _ACEOF
4421   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
4422   echo 'CEOF
4423     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
4424   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
4425   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
4426   grep . conftest.tail >/dev/null || break
4427   rm -f conftest.defines
4428   mv conftest.tail conftest.defines
4429 done
4430 rm -f conftest.defines conftest.tail
4431
4432 echo "ac_result=$ac_in" >>$CONFIG_STATUS
4433 cat >>$CONFIG_STATUS <<\_ACEOF
4434   if test x"$ac_file" != x-; then
4435     echo "/* $configure_input  */" >"$tmp/config.h"
4436     cat "$ac_result" >>"$tmp/config.h"
4437     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
4438       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
4439 echo "$as_me: $ac_file is unchanged" >&6;}
4440     else
4441       rm -f $ac_file
4442       mv "$tmp/config.h" $ac_file
4443     fi
4444   else
4445     echo "/* $configure_input  */"
4446     cat "$ac_result"
4447   fi
4448   rm -f "$tmp/out12"
4449  ;;
4450
4451
4452   esac
4453
4454 done # for ac_tag
4455
4456
4457 { (exit 0); exit 0; }
4458 _ACEOF
4459 chmod +x $CONFIG_STATUS
4460 ac_clean_files=$ac_clean_files_save
4461
4462
4463 # configure is writing to config.log, and then calls config.status.
4464 # config.status does its own redirection, appending to config.log.
4465 # Unfortunately, on DOS this fails, as config.log is still kept open
4466 # by configure, so config.status won't be able to write to it; its
4467 # output is simply discarded.  So we exec the FD to /dev/null,
4468 # effectively closing config.log, so it can be properly (re)opened and
4469 # appended to by config.status.  When coming back to configure, we
4470 # need to make the FD available again.
4471 if test "$no_create" != yes; then
4472   ac_cs_success=:
4473   ac_config_status_args=
4474   test "$silent" = yes &&
4475     ac_config_status_args="$ac_config_status_args --quiet"
4476   exec 5>/dev/null
4477   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4478   exec 5>>config.log
4479   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4480   # would make configure fail if this is the last instruction.
4481   $ac_cs_success || { (exit 1); exit 1; }
4482 fi
4483
4484