source: trunk/server/examples/VFS/configure@ 812

Last change on this file since 812 was 752, checked in by Silvan Scherrer, 13 years ago

Samba Server: updated trunk to 3.6.9 2nd part

File size: 152.1 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.68.
4#
5#
6# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8# Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102IFS=$as_save_IFS
103
104 ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109 as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there. '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137if test "x$CONFIG_SHELL" = x; then
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139 emulate sh
140 NULLCMD=:
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
144 setopt NO_GLOB_SUBST
145else
146 case \`(set -o) 2>/dev/null\` in #(
147 *posix*) :
148 set -o posix ;; #(
149 *) :
150 ;;
151esac
152fi
153"
154 as_required="as_fn_return () { (exit \$1); }
155as_fn_success () { as_fn_return 0; }
156as_fn_failure () { as_fn_return 1; }
157as_fn_ret_success () { return 0; }
158as_fn_ret_failure () { return 1; }
159
160exitcode=0
161as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166
167else
168 exitcode=1; echo positional parameters were not saved.
169fi
170test x\$exitcode = x0 || exit 1"
171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175test \$(( 1 + 1 )) = 2 || exit 1"
176 if (eval "$as_required") 2>/dev/null; then :
177 as_have_required=yes
178else
179 as_have_required=no
180fi
181 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
182
183else
184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185as_found=false
186for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
187do
188 IFS=$as_save_IFS
189 test -z "$as_dir" && as_dir=.
190 as_found=:
191 case $as_dir in #(
192 /*)
193 for as_base in sh bash ksh sh5; do
194 # Try only shells that exist, to save several forks.
195 as_shell=$as_dir/$as_base
196 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
197 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
198 CONFIG_SHELL=$as_shell as_have_required=yes
199 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 break 2
201fi
202fi
203 done;;
204 esac
205 as_found=false
206done
207$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
208 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
209 CONFIG_SHELL=$SHELL as_have_required=yes
210fi; }
211IFS=$as_save_IFS
212
213
214 if test "x$CONFIG_SHELL" != x; then :
215 # We cannot yet assume a decent shell, so we have to provide a
216 # neutralization value for shells without unset; and this also
217 # works around shells that cannot unset nonexistent variables.
218 # Preserve -v and -x to the replacement shell.
219 BASH_ENV=/dev/null
220 ENV=/dev/null
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 export CONFIG_SHELL
223 case $- in # ((((
224 *v*x* | *x*v* ) as_opts=-vx ;;
225 *v* ) as_opts=-v ;;
226 *x* ) as_opts=-x ;;
227 * ) as_opts= ;;
228 esac
229 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
230fi
231
232 if test x$as_have_required = xno; then :
233 $as_echo "$0: This script requires a shell more modern than all"
234 $as_echo "$0: the shells that I found on your system."
235 if test x${ZSH_VERSION+set} = xset ; then
236 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
238 else
239 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
240$0: including any error possibly output before this
241$0: message. Then install a modern shell, or manually run
242$0: the script under such a shell if you do have one."
243 fi
244 exit 1
245fi
246fi
247fi
248SHELL=${CONFIG_SHELL-/bin/sh}
249export SHELL
250# Unset more variables known to interfere with behavior of common tools.
251CLICOLOR_FORCE= GREP_OPTIONS=
252unset CLICOLOR_FORCE GREP_OPTIONS
253
254## --------------------- ##
255## M4sh Shell Functions. ##
256## --------------------- ##
257# as_fn_unset VAR
258# ---------------
259# Portably unset VAR.
260as_fn_unset ()
261{
262 { eval $1=; unset $1;}
263}
264as_unset=as_fn_unset
265
266# as_fn_set_status STATUS
267# -----------------------
268# Set $? to STATUS, without forking.
269as_fn_set_status ()
270{
271 return $1
272} # as_fn_set_status
273
274# as_fn_exit STATUS
275# -----------------
276# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
277as_fn_exit ()
278{
279 set +e
280 as_fn_set_status $1
281 exit $1
282} # as_fn_exit
283
284# as_fn_mkdir_p
285# -------------
286# Create "$as_dir" as a directory, including parents if necessary.
287as_fn_mkdir_p ()
288{
289
290 case $as_dir in #(
291 -*) as_dir=./$as_dir;;
292 esac
293 test -d "$as_dir" || eval $as_mkdir_p || {
294 as_dirs=
295 while :; do
296 case $as_dir in #(
297 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298 *) as_qdir=$as_dir;;
299 esac
300 as_dirs="'$as_qdir' $as_dirs"
301 as_dir=`$as_dirname -- "$as_dir" ||
302$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303 X"$as_dir" : 'X\(//\)[^/]' \| \
304 X"$as_dir" : 'X\(//\)$' \| \
305 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306$as_echo X"$as_dir" |
307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
308 s//\1/
309 q
310 }
311 /^X\(\/\/\)[^/].*/{
312 s//\1/
313 q
314 }
315 /^X\(\/\/\)$/{
316 s//\1/
317 q
318 }
319 /^X\(\/\).*/{
320 s//\1/
321 q
322 }
323 s/.*/./; q'`
324 test -d "$as_dir" && break
325 done
326 test -z "$as_dirs" || eval "mkdir $as_dirs"
327 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
328
329
330} # as_fn_mkdir_p
331# as_fn_append VAR VALUE
332# ----------------------
333# Append the text in VALUE to the end of the definition contained in VAR. Take
334# advantage of any shell optimizations that allow amortized linear growth over
335# repeated appends, instead of the typical quadratic growth present in naive
336# implementations.
337if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
338 eval 'as_fn_append ()
339 {
340 eval $1+=\$2
341 }'
342else
343 as_fn_append ()
344 {
345 eval $1=\$$1\$2
346 }
347fi # as_fn_append
348
349# as_fn_arith ARG...
350# ------------------
351# Perform arithmetic evaluation on the ARGs, and store the result in the
352# global $as_val. Take advantage of shells that can avoid forks. The arguments
353# must be portable across $(()) and expr.
354if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
355 eval 'as_fn_arith ()
356 {
357 as_val=$(( $* ))
358 }'
359else
360 as_fn_arith ()
361 {
362 as_val=`expr "$@" || test $? -eq 1`
363 }
364fi # as_fn_arith
365
366
367# as_fn_error STATUS ERROR [LINENO LOG_FD]
368# ----------------------------------------
369# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
370# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
371# script with STATUS, using 1 if that was 0.
372as_fn_error ()
373{
374 as_status=$1; test $as_status -eq 0 && as_status=1
375 if test "$4"; then
376 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
377 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
378 fi
379 $as_echo "$as_me: error: $2" >&2
380 as_fn_exit $as_status
381} # as_fn_error
382
383if expr a : '\(a\)' >/dev/null 2>&1 &&
384 test "X`expr 00001 : '.*\(...\)'`" = X001; then
385 as_expr=expr
386else
387 as_expr=false
388fi
389
390if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391 as_basename=basename
392else
393 as_basename=false
394fi
395
396if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397 as_dirname=dirname
398else
399 as_dirname=false
400fi
401
402as_me=`$as_basename -- "$0" ||
403$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
404 X"$0" : 'X\(//\)$' \| \
405 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
406$as_echo X/"$0" |
407 sed '/^.*\/\([^/][^/]*\)\/*$/{
408 s//\1/
409 q
410 }
411 /^X\/\(\/\/\)$/{
412 s//\1/
413 q
414 }
415 /^X\/\(\/\).*/{
416 s//\1/
417 q
418 }
419 s/.*/./; q'`
420
421# Avoid depending upon Character Ranges.
422as_cr_letters='abcdefghijklmnopqrstuvwxyz'
423as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
424as_cr_Letters=$as_cr_letters$as_cr_LETTERS
425as_cr_digits='0123456789'
426as_cr_alnum=$as_cr_Letters$as_cr_digits
427
428
429 as_lineno_1=$LINENO as_lineno_1a=$LINENO
430 as_lineno_2=$LINENO as_lineno_2a=$LINENO
431 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
432 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
433 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
434 sed -n '
435 p
436 /[$]LINENO/=
437 ' <$as_myself |
438 sed '
439 s/[$]LINENO.*/&-/
440 t lineno
441 b
442 :lineno
443 N
444 :loop
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446 t loop
447 s/-\n.*//
448 ' >$as_me.lineno &&
449 chmod +x "$as_me.lineno" ||
450 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
451
452 # Don't try to exec as it changes $[0], causing all sort of problems
453 # (the dirname of $[0] is not the place where we might find the
454 # original and so on. Autoconf is especially sensitive to this).
455 . "./$as_me.lineno"
456 # Exit status is that of the last command.
457 exit
458}
459
460ECHO_C= ECHO_N= ECHO_T=
461case `echo -n x` in #(((((
462-n*)
463 case `echo 'xy\c'` in
464 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
465 xy) ECHO_C='\c';;
466 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
467 ECHO_T=' ';;
468 esac;;
469*)
470 ECHO_N='-n';;
471esac
472
473rm -f conf$$ conf$$.exe conf$$.file
474if test -d conf$$.dir; then
475 rm -f conf$$.dir/conf$$.file
476else
477 rm -f conf$$.dir
478 mkdir conf$$.dir 2>/dev/null
479fi
480if (echo >conf$$.file) 2>/dev/null; then
481 if ln -s conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s='ln -s'
483 # ... but there are two gotchas:
484 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
486 # In both cases, we have to default to `cp -p'.
487 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
488 as_ln_s='cp -p'
489 elif ln conf$$.file conf$$ 2>/dev/null; then
490 as_ln_s=ln
491 else
492 as_ln_s='cp -p'
493 fi
494else
495 as_ln_s='cp -p'
496fi
497rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
498rmdir conf$$.dir 2>/dev/null
499
500if mkdir -p . 2>/dev/null; then
501 as_mkdir_p='mkdir -p "$as_dir"'
502else
503 test -d ./-p && rmdir ./-p
504 as_mkdir_p=false
505fi
506
507if test -x / >/dev/null 2>&1; then
508 as_test_x='test -x'
509else
510 if ls -dL / >/dev/null 2>&1; then
511 as_ls_L_option=L
512 else
513 as_ls_L_option=
514 fi
515 as_test_x='
516 eval sh -c '\''
517 if test -d "$1"; then
518 test -d "$1/.";
519 else
520 case $1 in #(
521 -*)set "./$1";;
522 esac;
523 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
524 ???[sx]*):;;*)false;;esac;fi
525 '\'' sh
526 '
527fi
528as_executable_p=$as_test_x
529
530# Sed expression to map a string onto a valid CPP name.
531as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
532
533# Sed expression to map a string onto a valid variable name.
534as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
535
536
537test -n "$DJDIR" || exec 7<&0 </dev/null
538exec 6>&1
539
540# Name of the host.
541# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
542# so uname gets run too.
543ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
544
545#
546# Initializations.
547#
548ac_default_prefix=/usr/local
549ac_clean_files=
550ac_config_libobj_dir=.
551LIBOBJS=
552cross_compiling=no
553subdirs=
554MFLAGS=
555MAKEFLAGS=
556
557# Identity of this package.
558PACKAGE_NAME=
559PACKAGE_TARNAME=
560PACKAGE_VERSION=
561PACKAGE_STRING=
562PACKAGE_BUGREPORT=
563PACKAGE_URL=
564
565ac_unique_file="Makefile.in"
566ac_default_prefix=/usr/local/samba
567# Factoring default headers for most tests.
568ac_includes_default="\
569#include <stdio.h>
570#ifdef HAVE_SYS_TYPES_H
571# include <sys/types.h>
572#endif
573#ifdef HAVE_SYS_STAT_H
574# include <sys/stat.h>
575#endif
576#ifdef STDC_HEADERS
577# include <stdlib.h>
578# include <stddef.h>
579#else
580# ifdef HAVE_STDLIB_H
581# include <stdlib.h>
582# endif
583#endif
584#ifdef HAVE_STRING_H
585# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
586# include <memory.h>
587# endif
588# include <string.h>
589#endif
590#ifdef HAVE_STRINGS_H
591# include <strings.h>
592#endif
593#ifdef HAVE_INTTYPES_H
594# include <inttypes.h>
595#endif
596#ifdef HAVE_STDINT_H
597# include <stdint.h>
598#endif
599#ifdef HAVE_UNISTD_H
600# include <unistd.h>
601#endif"
602
603ac_subst_vars='LTLIBOBJS
604LIBOBJS
605DYNEXP
606ROFF
607builddir
608EGREP
609GREP
610CPP
611KRB5CONFIG
612EXTRA_ALL_TARGETS
613EXTRA_SBIN_PROGS
614EXTRA_BIN_PROGS
615SHLIB_PROGS
616INSTALLCLIENTCMD_A
617INSTALLCLIENTCMD_SH
618SHLIBEXT
619PICSUFFIX
620PICFLAGS
621HOST_OS
622SHLD
623SONAMEFLAG
624LDSHFLAGS
625SAMBA_SOURCE
626host_os
627host_vendor
628host_cpu
629host
630build_os
631build_vendor
632build_cpu
633build
634INSTALL_DATA
635INSTALL_SCRIPT
636INSTALL_PROGRAM
637OBJEXT
638EXEEXT
639ac_ct_CC
640CPPFLAGS
641LDFLAGS
642CFLAGS
643CC
644target_alias
645host_alias
646build_alias
647LIBS
648ECHO_T
649ECHO_N
650ECHO_C
651DEFS
652mandir
653localedir
654libdir
655psdir
656pdfdir
657dvidir
658htmldir
659infodir
660docdir
661oldincludedir
662includedir
663localstatedir
664sharedstatedir
665sysconfdir
666datadir
667datarootdir
668libexecdir
669sbindir
670bindir
671program_transform_name
672prefix
673exec_prefix
674PACKAGE_URL
675PACKAGE_BUGREPORT
676PACKAGE_STRING
677PACKAGE_VERSION
678PACKAGE_TARNAME
679PACKAGE_NAME
680PATH_SEPARATOR
681SHELL'
682ac_subst_files=''
683ac_user_opts='
684enable_option_checking
685with_fhs
686with_samba_source
687enable_debug
688enable_developer
689with_krb5
690'
691 ac_precious_vars='build_alias
692host_alias
693target_alias
694CC
695CFLAGS
696LDFLAGS
697LIBS
698CPPFLAGS
699CPP'
700
701
702# Initialize some variables set by options.
703ac_init_help=
704ac_init_version=false
705ac_unrecognized_opts=
706ac_unrecognized_sep=
707# The variables have the same names as the options, with
708# dashes changed to underlines.
709cache_file=/dev/null
710exec_prefix=NONE
711no_create=
712no_recursion=
713prefix=NONE
714program_prefix=NONE
715program_suffix=NONE
716program_transform_name=s,x,x,
717silent=
718site=
719srcdir=
720verbose=
721x_includes=NONE
722x_libraries=NONE
723
724# Installation directory options.
725# These are left unexpanded so users can "make install exec_prefix=/foo"
726# and all the variables that are supposed to be based on exec_prefix
727# by default will actually change.
728# Use braces instead of parens because sh, perl, etc. also accept them.
729# (The list follows the same order as the GNU Coding Standards.)
730bindir='${exec_prefix}/bin'
731sbindir='${exec_prefix}/sbin'
732libexecdir='${exec_prefix}/libexec'
733datarootdir='${prefix}/share'
734datadir='${datarootdir}'
735sysconfdir='${prefix}/etc'
736sharedstatedir='${prefix}/com'
737localstatedir='${prefix}/var'
738includedir='${prefix}/include'
739oldincludedir='/usr/include'
740docdir='${datarootdir}/doc/${PACKAGE}'
741infodir='${datarootdir}/info'
742htmldir='${docdir}'
743dvidir='${docdir}'
744pdfdir='${docdir}'
745psdir='${docdir}'
746libdir='${exec_prefix}/lib'
747localedir='${datarootdir}/locale'
748mandir='${datarootdir}/man'
749
750ac_prev=
751ac_dashdash=
752for ac_option
753do
754 # If the previous option needs an argument, assign it.
755 if test -n "$ac_prev"; then
756 eval $ac_prev=\$ac_option
757 ac_prev=
758 continue
759 fi
760
761 case $ac_option in
762 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
763 *=) ac_optarg= ;;
764 *) ac_optarg=yes ;;
765 esac
766
767 # Accept the important Cygnus configure options, so we can diagnose typos.
768
769 case $ac_dashdash$ac_option in
770 --)
771 ac_dashdash=yes ;;
772
773 -bindir | --bindir | --bindi | --bind | --bin | --bi)
774 ac_prev=bindir ;;
775 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
776 bindir=$ac_optarg ;;
777
778 -build | --build | --buil | --bui | --bu)
779 ac_prev=build_alias ;;
780 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
781 build_alias=$ac_optarg ;;
782
783 -cache-file | --cache-file | --cache-fil | --cache-fi \
784 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
785 ac_prev=cache_file ;;
786 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
787 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
788 cache_file=$ac_optarg ;;
789
790 --config-cache | -C)
791 cache_file=config.cache ;;
792
793 -datadir | --datadir | --datadi | --datad)
794 ac_prev=datadir ;;
795 -datadir=* | --datadir=* | --datadi=* | --datad=*)
796 datadir=$ac_optarg ;;
797
798 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
799 | --dataroo | --dataro | --datar)
800 ac_prev=datarootdir ;;
801 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
802 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
803 datarootdir=$ac_optarg ;;
804
805 -disable-* | --disable-*)
806 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
807 # Reject names that are not valid shell variable names.
808 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
809 as_fn_error $? "invalid feature name: $ac_useropt"
810 ac_useropt_orig=$ac_useropt
811 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
812 case $ac_user_opts in
813 *"
814"enable_$ac_useropt"
815"*) ;;
816 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
817 ac_unrecognized_sep=', ';;
818 esac
819 eval enable_$ac_useropt=no ;;
820
821 -docdir | --docdir | --docdi | --doc | --do)
822 ac_prev=docdir ;;
823 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
824 docdir=$ac_optarg ;;
825
826 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
827 ac_prev=dvidir ;;
828 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
829 dvidir=$ac_optarg ;;
830
831 -enable-* | --enable-*)
832 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
833 # Reject names that are not valid shell variable names.
834 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
835 as_fn_error $? "invalid feature name: $ac_useropt"
836 ac_useropt_orig=$ac_useropt
837 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
838 case $ac_user_opts in
839 *"
840"enable_$ac_useropt"
841"*) ;;
842 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
843 ac_unrecognized_sep=', ';;
844 esac
845 eval enable_$ac_useropt=\$ac_optarg ;;
846
847 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
848 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
849 | --exec | --exe | --ex)
850 ac_prev=exec_prefix ;;
851 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
852 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
853 | --exec=* | --exe=* | --ex=*)
854 exec_prefix=$ac_optarg ;;
855
856 -gas | --gas | --ga | --g)
857 # Obsolete; use --with-gas.
858 with_gas=yes ;;
859
860 -help | --help | --hel | --he | -h)
861 ac_init_help=long ;;
862 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
863 ac_init_help=recursive ;;
864 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
865 ac_init_help=short ;;
866
867 -host | --host | --hos | --ho)
868 ac_prev=host_alias ;;
869 -host=* | --host=* | --hos=* | --ho=*)
870 host_alias=$ac_optarg ;;
871
872 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
873 ac_prev=htmldir ;;
874 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
875 | --ht=*)
876 htmldir=$ac_optarg ;;
877
878 -includedir | --includedir | --includedi | --included | --include \
879 | --includ | --inclu | --incl | --inc)
880 ac_prev=includedir ;;
881 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
882 | --includ=* | --inclu=* | --incl=* | --inc=*)
883 includedir=$ac_optarg ;;
884
885 -infodir | --infodir | --infodi | --infod | --info | --inf)
886 ac_prev=infodir ;;
887 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
888 infodir=$ac_optarg ;;
889
890 -libdir | --libdir | --libdi | --libd)
891 ac_prev=libdir ;;
892 -libdir=* | --libdir=* | --libdi=* | --libd=*)
893 libdir=$ac_optarg ;;
894
895 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
896 | --libexe | --libex | --libe)
897 ac_prev=libexecdir ;;
898 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
899 | --libexe=* | --libex=* | --libe=*)
900 libexecdir=$ac_optarg ;;
901
902 -localedir | --localedir | --localedi | --localed | --locale)
903 ac_prev=localedir ;;
904 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
905 localedir=$ac_optarg ;;
906
907 -localstatedir | --localstatedir | --localstatedi | --localstated \
908 | --localstate | --localstat | --localsta | --localst | --locals)
909 ac_prev=localstatedir ;;
910 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
911 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
912 localstatedir=$ac_optarg ;;
913
914 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
915 ac_prev=mandir ;;
916 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
917 mandir=$ac_optarg ;;
918
919 -nfp | --nfp | --nf)
920 # Obsolete; use --without-fp.
921 with_fp=no ;;
922
923 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
924 | --no-cr | --no-c | -n)
925 no_create=yes ;;
926
927 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
928 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
929 no_recursion=yes ;;
930
931 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
932 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
933 | --oldin | --oldi | --old | --ol | --o)
934 ac_prev=oldincludedir ;;
935 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
936 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
937 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
938 oldincludedir=$ac_optarg ;;
939
940 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
941 ac_prev=prefix ;;
942 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
943 prefix=$ac_optarg ;;
944
945 -program-prefix | --program-prefix | --program-prefi | --program-pref \
946 | --program-pre | --program-pr | --program-p)
947 ac_prev=program_prefix ;;
948 -program-prefix=* | --program-prefix=* | --program-prefi=* \
949 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
950 program_prefix=$ac_optarg ;;
951
952 -program-suffix | --program-suffix | --program-suffi | --program-suff \
953 | --program-suf | --program-su | --program-s)
954 ac_prev=program_suffix ;;
955 -program-suffix=* | --program-suffix=* | --program-suffi=* \
956 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
957 program_suffix=$ac_optarg ;;
958
959 -program-transform-name | --program-transform-name \
960 | --program-transform-nam | --program-transform-na \
961 | --program-transform-n | --program-transform- \
962 | --program-transform | --program-transfor \
963 | --program-transfo | --program-transf \
964 | --program-trans | --program-tran \
965 | --progr-tra | --program-tr | --program-t)
966 ac_prev=program_transform_name ;;
967 -program-transform-name=* | --program-transform-name=* \
968 | --program-transform-nam=* | --program-transform-na=* \
969 | --program-transform-n=* | --program-transform-=* \
970 | --program-transform=* | --program-transfor=* \
971 | --program-transfo=* | --program-transf=* \
972 | --program-trans=* | --program-tran=* \
973 | --progr-tra=* | --program-tr=* | --program-t=*)
974 program_transform_name=$ac_optarg ;;
975
976 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
977 ac_prev=pdfdir ;;
978 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
979 pdfdir=$ac_optarg ;;
980
981 -psdir | --psdir | --psdi | --psd | --ps)
982 ac_prev=psdir ;;
983 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
984 psdir=$ac_optarg ;;
985
986 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
987 | -silent | --silent | --silen | --sile | --sil)
988 silent=yes ;;
989
990 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
991 ac_prev=sbindir ;;
992 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
993 | --sbi=* | --sb=*)
994 sbindir=$ac_optarg ;;
995
996 -sharedstatedir | --sharedstatedir | --sharedstatedi \
997 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
998 | --sharedst | --shareds | --shared | --share | --shar \
999 | --sha | --sh)
1000 ac_prev=sharedstatedir ;;
1001 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1002 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1003 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1004 | --sha=* | --sh=*)
1005 sharedstatedir=$ac_optarg ;;
1006
1007 -site | --site | --sit)
1008 ac_prev=site ;;
1009 -site=* | --site=* | --sit=*)
1010 site=$ac_optarg ;;
1011
1012 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1013 ac_prev=srcdir ;;
1014 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1015 srcdir=$ac_optarg ;;
1016
1017 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1018 | --syscon | --sysco | --sysc | --sys | --sy)
1019 ac_prev=sysconfdir ;;
1020 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1021 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1022 sysconfdir=$ac_optarg ;;
1023
1024 -target | --target | --targe | --targ | --tar | --ta | --t)
1025 ac_prev=target_alias ;;
1026 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1027 target_alias=$ac_optarg ;;
1028
1029 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1030 verbose=yes ;;
1031
1032 -version | --version | --versio | --versi | --vers | -V)
1033 ac_init_version=: ;;
1034
1035 -with-* | --with-*)
1036 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1037 # Reject names that are not valid shell variable names.
1038 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1039 as_fn_error $? "invalid package name: $ac_useropt"
1040 ac_useropt_orig=$ac_useropt
1041 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1042 case $ac_user_opts in
1043 *"
1044"with_$ac_useropt"
1045"*) ;;
1046 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1047 ac_unrecognized_sep=', ';;
1048 esac
1049 eval with_$ac_useropt=\$ac_optarg ;;
1050
1051 -without-* | --without-*)
1052 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1053 # Reject names that are not valid shell variable names.
1054 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1055 as_fn_error $? "invalid package name: $ac_useropt"
1056 ac_useropt_orig=$ac_useropt
1057 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1058 case $ac_user_opts in
1059 *"
1060"with_$ac_useropt"
1061"*) ;;
1062 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1063 ac_unrecognized_sep=', ';;
1064 esac
1065 eval with_$ac_useropt=no ;;
1066
1067 --x)
1068 # Obsolete; use --with-x.
1069 with_x=yes ;;
1070
1071 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1072 | --x-incl | --x-inc | --x-in | --x-i)
1073 ac_prev=x_includes ;;
1074 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1075 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1076 x_includes=$ac_optarg ;;
1077
1078 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1079 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1080 ac_prev=x_libraries ;;
1081 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1082 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1083 x_libraries=$ac_optarg ;;
1084
1085 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1086Try \`$0 --help' for more information"
1087 ;;
1088
1089 *=*)
1090 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1091 # Reject names that are not valid shell variable names.
1092 case $ac_envvar in #(
1093 '' | [0-9]* | *[!_$as_cr_alnum]* )
1094 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1095 esac
1096 eval $ac_envvar=\$ac_optarg
1097 export $ac_envvar ;;
1098
1099 *)
1100 # FIXME: should be removed in autoconf 3.0.
1101 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1102 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1103 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1104 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1105 ;;
1106
1107 esac
1108done
1109
1110if test -n "$ac_prev"; then
1111 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1112 as_fn_error $? "missing argument to $ac_option"
1113fi
1114
1115if test -n "$ac_unrecognized_opts"; then
1116 case $enable_option_checking in
1117 no) ;;
1118 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1119 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1120 esac
1121fi
1122
1123# Check all directory arguments for consistency.
1124for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1125 datadir sysconfdir sharedstatedir localstatedir includedir \
1126 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1127 libdir localedir mandir
1128do
1129 eval ac_val=\$$ac_var
1130 # Remove trailing slashes.
1131 case $ac_val in
1132 */ )
1133 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1134 eval $ac_var=\$ac_val;;
1135 esac
1136 # Be sure to have absolute directory names.
1137 case $ac_val in
1138 [\\/$]* | ?:[\\/]* ) continue;;
1139 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1140 esac
1141 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1142done
1143
1144# There might be people who depend on the old broken behavior: `$host'
1145# used to hold the argument of --host etc.
1146# FIXME: To remove some day.
1147build=$build_alias
1148host=$host_alias
1149target=$target_alias
1150
1151# FIXME: To remove some day.
1152if test "x$host_alias" != x; then
1153 if test "x$build_alias" = x; then
1154 cross_compiling=maybe
1155 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1156 If a cross compiler is detected then cross compile mode will be used" >&2
1157 elif test "x$build_alias" != "x$host_alias"; then
1158 cross_compiling=yes
1159 fi
1160fi
1161
1162ac_tool_prefix=
1163test -n "$host_alias" && ac_tool_prefix=$host_alias-
1164
1165test "$silent" = yes && exec 6>/dev/null
1166
1167
1168ac_pwd=`pwd` && test -n "$ac_pwd" &&
1169ac_ls_di=`ls -di .` &&
1170ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1171 as_fn_error $? "working directory cannot be determined"
1172test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1173 as_fn_error $? "pwd does not report name of working directory"
1174
1175
1176# Find the source files, if location was not specified.
1177if test -z "$srcdir"; then
1178 ac_srcdir_defaulted=yes
1179 # Try the directory containing this script, then the parent directory.
1180 ac_confdir=`$as_dirname -- "$as_myself" ||
1181$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1182 X"$as_myself" : 'X\(//\)[^/]' \| \
1183 X"$as_myself" : 'X\(//\)$' \| \
1184 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1185$as_echo X"$as_myself" |
1186 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1187 s//\1/
1188 q
1189 }
1190 /^X\(\/\/\)[^/].*/{
1191 s//\1/
1192 q
1193 }
1194 /^X\(\/\/\)$/{
1195 s//\1/
1196 q
1197 }
1198 /^X\(\/\).*/{
1199 s//\1/
1200 q
1201 }
1202 s/.*/./; q'`
1203 srcdir=$ac_confdir
1204 if test ! -r "$srcdir/$ac_unique_file"; then
1205 srcdir=..
1206 fi
1207else
1208 ac_srcdir_defaulted=no
1209fi
1210if test ! -r "$srcdir/$ac_unique_file"; then
1211 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1212 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1213fi
1214ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1215ac_abs_confdir=`(
1216 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1217 pwd)`
1218# When building in place, set srcdir=.
1219if test "$ac_abs_confdir" = "$ac_pwd"; then
1220 srcdir=.
1221fi
1222# Remove unnecessary trailing slashes from srcdir.
1223# Double slashes in file names in object file debugging info
1224# mess up M-x gdb in Emacs.
1225case $srcdir in
1226*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1227esac
1228for ac_var in $ac_precious_vars; do
1229 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1230 eval ac_env_${ac_var}_value=\$${ac_var}
1231 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1232 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1233done
1234
1235#
1236# Report the --help message.
1237#
1238if test "$ac_init_help" = "long"; then
1239 # Omit some internal or obsolete options to make the list less imposing.
1240 # This message is too long to be a string in the A/UX 3.1 sh.
1241 cat <<_ACEOF
1242\`configure' configures this package to adapt to many kinds of systems.
1243
1244Usage: $0 [OPTION]... [VAR=VALUE]...
1245
1246To assign environment variables (e.g., CC, CFLAGS...), specify them as
1247VAR=VALUE. See below for descriptions of some of the useful variables.
1248
1249Defaults for the options are specified in brackets.
1250
1251Configuration:
1252 -h, --help display this help and exit
1253 --help=short display options specific to this package
1254 --help=recursive display the short help of all the included packages
1255 -V, --version display version information and exit
1256 -q, --quiet, --silent do not print \`checking ...' messages
1257 --cache-file=FILE cache test results in FILE [disabled]
1258 -C, --config-cache alias for \`--cache-file=config.cache'
1259 -n, --no-create do not create output files
1260 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1261
1262Installation directories:
1263 --prefix=PREFIX install architecture-independent files in PREFIX
1264 [$ac_default_prefix]
1265 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1266 [PREFIX]
1267
1268By default, \`make install' will install all the files in
1269\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1270an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1271for instance \`--prefix=\$HOME'.
1272
1273For better control, use the options below.
1274
1275Fine tuning of the installation directories:
1276 --bindir=DIR user executables [EPREFIX/bin]
1277 --sbindir=DIR system admin executables [EPREFIX/sbin]
1278 --libexecdir=DIR program executables [EPREFIX/libexec]
1279 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1280 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1281 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1282 --libdir=DIR object code libraries [EPREFIX/lib]
1283 --includedir=DIR C header files [PREFIX/include]
1284 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1285 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1286 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1287 --infodir=DIR info documentation [DATAROOTDIR/info]
1288 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1289 --mandir=DIR man documentation [DATAROOTDIR/man]
1290 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1291 --htmldir=DIR html documentation [DOCDIR]
1292 --dvidir=DIR dvi documentation [DOCDIR]
1293 --pdfdir=DIR pdf documentation [DOCDIR]
1294 --psdir=DIR ps documentation [DOCDIR]
1295_ACEOF
1296
1297 cat <<\_ACEOF
1298
1299System types:
1300 --build=BUILD configure for building on BUILD [guessed]
1301 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1302_ACEOF
1303fi
1304
1305if test -n "$ac_init_help"; then
1306
1307 cat <<\_ACEOF
1308
1309Optional Features:
1310 --disable-option-checking ignore unrecognized --enable/--with options
1311 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1312 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1313 --enable-debug Turn on compiler debugging information (default=no)
1314 --enable-developer Turn on developer warnings and debugging (default=no)
1315
1316Optional Packages:
1317 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1318 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1319 --with-fhs Use FHS-compliant paths (default=no)
1320 --with-samba-source=DIR Where is the samba source tree (../../source3)
1321 --with-krb5=base-dir Locate Kerberos 5 support (default=/usr)
1322
1323Some influential environment variables:
1324 CC C compiler command
1325 CFLAGS C compiler flags
1326 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1327 nonstandard directory <lib dir>
1328 LIBS libraries to pass to the linker, e.g. -l<library>
1329 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1330 you have headers in a nonstandard directory <include dir>
1331 CPP C preprocessor
1332
1333Use these variables to override the choices made by `configure' or to help
1334it to find libraries and programs with nonstandard names/locations.
1335
1336Report bugs to the package provider.
1337_ACEOF
1338ac_status=$?
1339fi
1340
1341if test "$ac_init_help" = "recursive"; then
1342 # If there are subdirs, report their specific --help.
1343 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1344 test -d "$ac_dir" ||
1345 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1346 continue
1347 ac_builddir=.
1348
1349case "$ac_dir" in
1350.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1351*)
1352 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1353 # A ".." for each directory in $ac_dir_suffix.
1354 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1355 case $ac_top_builddir_sub in
1356 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1357 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1358 esac ;;
1359esac
1360ac_abs_top_builddir=$ac_pwd
1361ac_abs_builddir=$ac_pwd$ac_dir_suffix
1362# for backward compatibility:
1363ac_top_builddir=$ac_top_build_prefix
1364
1365case $srcdir in
1366 .) # We are building in place.
1367 ac_srcdir=.
1368 ac_top_srcdir=$ac_top_builddir_sub
1369 ac_abs_top_srcdir=$ac_pwd ;;
1370 [\\/]* | ?:[\\/]* ) # Absolute name.
1371 ac_srcdir=$srcdir$ac_dir_suffix;
1372 ac_top_srcdir=$srcdir
1373 ac_abs_top_srcdir=$srcdir ;;
1374 *) # Relative name.
1375 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1376 ac_top_srcdir=$ac_top_build_prefix$srcdir
1377 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1378esac
1379ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1380
1381 cd "$ac_dir" || { ac_status=$?; continue; }
1382 # Check for guested configure.
1383 if test -f "$ac_srcdir/configure.gnu"; then
1384 echo &&
1385 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1386 elif test -f "$ac_srcdir/configure"; then
1387 echo &&
1388 $SHELL "$ac_srcdir/configure" --help=recursive
1389 else
1390 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1391 fi || ac_status=$?
1392 cd "$ac_pwd" || { ac_status=$?; break; }
1393 done
1394fi
1395
1396test -n "$ac_init_help" && exit $ac_status
1397if $ac_init_version; then
1398 cat <<\_ACEOF
1399configure
1400generated by GNU Autoconf 2.68
1401
1402Copyright (C) 2010 Free Software Foundation, Inc.
1403This configure script is free software; the Free Software Foundation
1404gives unlimited permission to copy, distribute and modify it.
1405_ACEOF
1406 exit
1407fi
1408
1409## ------------------------ ##
1410## Autoconf initialization. ##
1411## ------------------------ ##
1412
1413# ac_fn_c_try_compile LINENO
1414# --------------------------
1415# Try to compile conftest.$ac_ext, and return whether this succeeded.
1416ac_fn_c_try_compile ()
1417{
1418 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1419 rm -f conftest.$ac_objext
1420 if { { ac_try="$ac_compile"
1421case "(($ac_try" in
1422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1423 *) ac_try_echo=$ac_try;;
1424esac
1425eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1426$as_echo "$ac_try_echo"; } >&5
1427 (eval "$ac_compile") 2>conftest.err
1428 ac_status=$?
1429 if test -s conftest.err; then
1430 grep -v '^ *+' conftest.err >conftest.er1
1431 cat conftest.er1 >&5
1432 mv -f conftest.er1 conftest.err
1433 fi
1434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1435 test $ac_status = 0; } && {
1436 test -z "$ac_c_werror_flag" ||
1437 test ! -s conftest.err
1438 } && test -s conftest.$ac_objext; then :
1439 ac_retval=0
1440else
1441 $as_echo "$as_me: failed program was:" >&5
1442sed 's/^/| /' conftest.$ac_ext >&5
1443
1444 ac_retval=1
1445fi
1446 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1447 as_fn_set_status $ac_retval
1448
1449} # ac_fn_c_try_compile
1450
1451# ac_fn_c_try_cpp LINENO
1452# ----------------------
1453# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1454ac_fn_c_try_cpp ()
1455{
1456 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1457 if { { ac_try="$ac_cpp conftest.$ac_ext"
1458case "(($ac_try" in
1459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1460 *) ac_try_echo=$ac_try;;
1461esac
1462eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1463$as_echo "$ac_try_echo"; } >&5
1464 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1465 ac_status=$?
1466 if test -s conftest.err; then
1467 grep -v '^ *+' conftest.err >conftest.er1
1468 cat conftest.er1 >&5
1469 mv -f conftest.er1 conftest.err
1470 fi
1471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1472 test $ac_status = 0; } > conftest.i && {
1473 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1474 test ! -s conftest.err
1475 }; then :
1476 ac_retval=0
1477else
1478 $as_echo "$as_me: failed program was:" >&5
1479sed 's/^/| /' conftest.$ac_ext >&5
1480
1481 ac_retval=1
1482fi
1483 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1484 as_fn_set_status $ac_retval
1485
1486} # ac_fn_c_try_cpp
1487
1488# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1489# -------------------------------------------------------
1490# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1491# the include files in INCLUDES and setting the cache variable VAR
1492# accordingly.
1493ac_fn_c_check_header_mongrel ()
1494{
1495 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1496 if eval \${$3+:} false; then :
1497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1498$as_echo_n "checking for $2... " >&6; }
1499if eval \${$3+:} false; then :
1500 $as_echo_n "(cached) " >&6
1501fi
1502eval ac_res=\$$3
1503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1504$as_echo "$ac_res" >&6; }
1505else
1506 # Is the header compilable?
1507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1508$as_echo_n "checking $2 usability... " >&6; }
1509cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1510/* end confdefs.h. */
1511$4
1512#include <$2>
1513_ACEOF
1514if ac_fn_c_try_compile "$LINENO"; then :
1515 ac_header_compiler=yes
1516else
1517 ac_header_compiler=no
1518fi
1519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1521$as_echo "$ac_header_compiler" >&6; }
1522
1523# Is the header present?
1524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1525$as_echo_n "checking $2 presence... " >&6; }
1526cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1527/* end confdefs.h. */
1528#include <$2>
1529_ACEOF
1530if ac_fn_c_try_cpp "$LINENO"; then :
1531 ac_header_preproc=yes
1532else
1533 ac_header_preproc=no
1534fi
1535rm -f conftest.err conftest.i conftest.$ac_ext
1536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1537$as_echo "$ac_header_preproc" >&6; }
1538
1539# So? What about this header?
1540case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1541 yes:no: )
1542 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1543$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1545$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1546 ;;
1547 no:yes:* )
1548 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1549$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1551$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1552 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1553$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1555$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1557$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1558 ;;
1559esac
1560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1561$as_echo_n "checking for $2... " >&6; }
1562if eval \${$3+:} false; then :
1563 $as_echo_n "(cached) " >&6
1564else
1565 eval "$3=\$ac_header_compiler"
1566fi
1567eval ac_res=\$$3
1568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1569$as_echo "$ac_res" >&6; }
1570fi
1571 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1572
1573} # ac_fn_c_check_header_mongrel
1574
1575# ac_fn_c_try_run LINENO
1576# ----------------------
1577# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1578# that executables *can* be run.
1579ac_fn_c_try_run ()
1580{
1581 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1582 if { { ac_try="$ac_link"
1583case "(($ac_try" in
1584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1585 *) ac_try_echo=$ac_try;;
1586esac
1587eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1588$as_echo "$ac_try_echo"; } >&5
1589 (eval "$ac_link") 2>&5
1590 ac_status=$?
1591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1592 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1593 { { case "(($ac_try" in
1594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1595 *) ac_try_echo=$ac_try;;
1596esac
1597eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1598$as_echo "$ac_try_echo"; } >&5
1599 (eval "$ac_try") 2>&5
1600 ac_status=$?
1601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1602 test $ac_status = 0; }; }; then :
1603 ac_retval=0
1604else
1605 $as_echo "$as_me: program exited with status $ac_status" >&5
1606 $as_echo "$as_me: failed program was:" >&5
1607sed 's/^/| /' conftest.$ac_ext >&5
1608
1609 ac_retval=$ac_status
1610fi
1611 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1612 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1613 as_fn_set_status $ac_retval
1614
1615} # ac_fn_c_try_run
1616
1617# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1618# -------------------------------------------------------
1619# Tests whether HEADER exists and can be compiled using the include files in
1620# INCLUDES, setting the cache variable VAR accordingly.
1621ac_fn_c_check_header_compile ()
1622{
1623 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1625$as_echo_n "checking for $2... " >&6; }
1626if eval \${$3+:} false; then :
1627 $as_echo_n "(cached) " >&6
1628else
1629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1630/* end confdefs.h. */
1631$4
1632#include <$2>
1633_ACEOF
1634if ac_fn_c_try_compile "$LINENO"; then :
1635 eval "$3=yes"
1636else
1637 eval "$3=no"
1638fi
1639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1640fi
1641eval ac_res=\$$3
1642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1643$as_echo "$ac_res" >&6; }
1644 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1645
1646} # ac_fn_c_check_header_compile
1647cat >config.log <<_ACEOF
1648This file contains any messages produced by compilers while
1649running configure, to aid debugging if configure makes a mistake.
1650
1651It was created by $as_me, which was
1652generated by GNU Autoconf 2.68. Invocation command line was
1653
1654 $ $0 $@
1655
1656_ACEOF
1657exec 5>>config.log
1658{
1659cat <<_ASUNAME
1660## --------- ##
1661## Platform. ##
1662## --------- ##
1663
1664hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1665uname -m = `(uname -m) 2>/dev/null || echo unknown`
1666uname -r = `(uname -r) 2>/dev/null || echo unknown`
1667uname -s = `(uname -s) 2>/dev/null || echo unknown`
1668uname -v = `(uname -v) 2>/dev/null || echo unknown`
1669
1670/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1671/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1672
1673/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1674/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1675/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1676/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1677/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1678/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1679/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1680
1681_ASUNAME
1682
1683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1684for as_dir in $PATH
1685do
1686 IFS=$as_save_IFS
1687 test -z "$as_dir" && as_dir=.
1688 $as_echo "PATH: $as_dir"
1689 done
1690IFS=$as_save_IFS
1691
1692} >&5
1693
1694cat >&5 <<_ACEOF
1695
1696
1697## ----------- ##
1698## Core tests. ##
1699## ----------- ##
1700
1701_ACEOF
1702
1703
1704# Keep a trace of the command line.
1705# Strip out --no-create and --no-recursion so they do not pile up.
1706# Strip out --silent because we don't want to record it for future runs.
1707# Also quote any args containing shell meta-characters.
1708# Make two passes to allow for proper duplicate-argument suppression.
1709ac_configure_args=
1710ac_configure_args0=
1711ac_configure_args1=
1712ac_must_keep_next=false
1713for ac_pass in 1 2
1714do
1715 for ac_arg
1716 do
1717 case $ac_arg in
1718 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1719 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1720 | -silent | --silent | --silen | --sile | --sil)
1721 continue ;;
1722 *\'*)
1723 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1724 esac
1725 case $ac_pass in
1726 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1727 2)
1728 as_fn_append ac_configure_args1 " '$ac_arg'"
1729 if test $ac_must_keep_next = true; then
1730 ac_must_keep_next=false # Got value, back to normal.
1731 else
1732 case $ac_arg in
1733 *=* | --config-cache | -C | -disable-* | --disable-* \
1734 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1735 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1736 | -with-* | --with-* | -without-* | --without-* | --x)
1737 case "$ac_configure_args0 " in
1738 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1739 esac
1740 ;;
1741 -* ) ac_must_keep_next=true ;;
1742 esac
1743 fi
1744 as_fn_append ac_configure_args " '$ac_arg'"
1745 ;;
1746 esac
1747 done
1748done
1749{ ac_configure_args0=; unset ac_configure_args0;}
1750{ ac_configure_args1=; unset ac_configure_args1;}
1751
1752# When interrupted or exit'd, cleanup temporary files, and complete
1753# config.log. We remove comments because anyway the quotes in there
1754# would cause problems or look ugly.
1755# WARNING: Use '\'' to represent an apostrophe within the trap.
1756# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1757trap 'exit_status=$?
1758 # Save into config.log some information that might help in debugging.
1759 {
1760 echo
1761
1762 $as_echo "## ---------------- ##
1763## Cache variables. ##
1764## ---------------- ##"
1765 echo
1766 # The following way of writing the cache mishandles newlines in values,
1767(
1768 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1769 eval ac_val=\$$ac_var
1770 case $ac_val in #(
1771 *${as_nl}*)
1772 case $ac_var in #(
1773 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1774$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1775 esac
1776 case $ac_var in #(
1777 _ | IFS | as_nl) ;; #(
1778 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1779 *) { eval $ac_var=; unset $ac_var;} ;;
1780 esac ;;
1781 esac
1782 done
1783 (set) 2>&1 |
1784 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1785 *${as_nl}ac_space=\ *)
1786 sed -n \
1787 "s/'\''/'\''\\\\'\'''\''/g;
1788 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1789 ;; #(
1790 *)
1791 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1792 ;;
1793 esac |
1794 sort
1795)
1796 echo
1797
1798 $as_echo "## ----------------- ##
1799## Output variables. ##
1800## ----------------- ##"
1801 echo
1802 for ac_var in $ac_subst_vars
1803 do
1804 eval ac_val=\$$ac_var
1805 case $ac_val in
1806 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1807 esac
1808 $as_echo "$ac_var='\''$ac_val'\''"
1809 done | sort
1810 echo
1811
1812 if test -n "$ac_subst_files"; then
1813 $as_echo "## ------------------- ##
1814## File substitutions. ##
1815## ------------------- ##"
1816 echo
1817 for ac_var in $ac_subst_files
1818 do
1819 eval ac_val=\$$ac_var
1820 case $ac_val in
1821 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1822 esac
1823 $as_echo "$ac_var='\''$ac_val'\''"
1824 done | sort
1825 echo
1826 fi
1827
1828 if test -s confdefs.h; then
1829 $as_echo "## ----------- ##
1830## confdefs.h. ##
1831## ----------- ##"
1832 echo
1833 cat confdefs.h
1834 echo
1835 fi
1836 test "$ac_signal" != 0 &&
1837 $as_echo "$as_me: caught signal $ac_signal"
1838 $as_echo "$as_me: exit $exit_status"
1839 } >&5
1840 rm -f core *.core core.conftest.* &&
1841 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1842 exit $exit_status
1843' 0
1844for ac_signal in 1 2 13 15; do
1845 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1846done
1847ac_signal=0
1848
1849# confdefs.h avoids OS command line length limits that DEFS can exceed.
1850rm -f -r conftest* confdefs.h
1851
1852$as_echo "/* confdefs.h */" > confdefs.h
1853
1854# Predefined preprocessor variables.
1855
1856cat >>confdefs.h <<_ACEOF
1857#define PACKAGE_NAME "$PACKAGE_NAME"
1858_ACEOF
1859
1860cat >>confdefs.h <<_ACEOF
1861#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1862_ACEOF
1863
1864cat >>confdefs.h <<_ACEOF
1865#define PACKAGE_VERSION "$PACKAGE_VERSION"
1866_ACEOF
1867
1868cat >>confdefs.h <<_ACEOF
1869#define PACKAGE_STRING "$PACKAGE_STRING"
1870_ACEOF
1871
1872cat >>confdefs.h <<_ACEOF
1873#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1874_ACEOF
1875
1876cat >>confdefs.h <<_ACEOF
1877#define PACKAGE_URL "$PACKAGE_URL"
1878_ACEOF
1879
1880
1881# Let the site file select an alternate cache file if it wants to.
1882# Prefer an explicitly selected file to automatically selected ones.
1883ac_site_file1=NONE
1884ac_site_file2=NONE
1885if test -n "$CONFIG_SITE"; then
1886 # We do not want a PATH search for config.site.
1887 case $CONFIG_SITE in #((
1888 -*) ac_site_file1=./$CONFIG_SITE;;
1889 */*) ac_site_file1=$CONFIG_SITE;;
1890 *) ac_site_file1=./$CONFIG_SITE;;
1891 esac
1892elif test "x$prefix" != xNONE; then
1893 ac_site_file1=$prefix/share/config.site
1894 ac_site_file2=$prefix/etc/config.site
1895else
1896 ac_site_file1=$ac_default_prefix/share/config.site
1897 ac_site_file2=$ac_default_prefix/etc/config.site
1898fi
1899for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1900do
1901 test "x$ac_site_file" = xNONE && continue
1902 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1903 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1904$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1905 sed 's/^/| /' "$ac_site_file" >&5
1906 . "$ac_site_file" \
1907 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1908$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1909as_fn_error $? "failed to load site script $ac_site_file
1910See \`config.log' for more details" "$LINENO" 5; }
1911 fi
1912done
1913
1914if test -r "$cache_file"; then
1915 # Some versions of bash will fail to source /dev/null (special files
1916 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1917 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1919$as_echo "$as_me: loading cache $cache_file" >&6;}
1920 case $cache_file in
1921 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1922 *) . "./$cache_file";;
1923 esac
1924 fi
1925else
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1927$as_echo "$as_me: creating cache $cache_file" >&6;}
1928 >$cache_file
1929fi
1930
1931# Check that the precious variables saved in the cache have kept the same
1932# value.
1933ac_cache_corrupted=false
1934for ac_var in $ac_precious_vars; do
1935 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1936 eval ac_new_set=\$ac_env_${ac_var}_set
1937 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1938 eval ac_new_val=\$ac_env_${ac_var}_value
1939 case $ac_old_set,$ac_new_set in
1940 set,)
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1942$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1943 ac_cache_corrupted=: ;;
1944 ,set)
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1946$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1947 ac_cache_corrupted=: ;;
1948 ,);;
1949 *)
1950 if test "x$ac_old_val" != "x$ac_new_val"; then
1951 # differences in whitespace do not lead to failure.
1952 ac_old_val_w=`echo x $ac_old_val`
1953 ac_new_val_w=`echo x $ac_new_val`
1954 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1956$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1957 ac_cache_corrupted=:
1958 else
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1960$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1961 eval $ac_var=\$ac_old_val
1962 fi
1963 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
1964$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
1966$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1967 fi;;
1968 esac
1969 # Pass precious variables to config.status.
1970 if test "$ac_new_set" = set; then
1971 case $ac_new_val in
1972 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1973 *) ac_arg=$ac_var=$ac_new_val ;;
1974 esac
1975 case " $ac_configure_args " in
1976 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1977 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1978 esac
1979 fi
1980done
1981if $ac_cache_corrupted; then
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1983$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1985$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1986 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1987fi
1988## -------------------- ##
1989## Main body of script. ##
1990## -------------------- ##
1991
1992ac_ext=c
1993ac_cpp='$CPP $CPPFLAGS'
1994ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1995ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1996ac_compiler_gnu=$ac_cv_c_compiler_gnu
1997
1998
1999
2000ac_config_headers="$ac_config_headers module_config.h"
2001
2002#dnl To make sure that didn't get #define PACKAGE_* in modules_config.h
2003#echo "" > confdefs.h
2004
2005ac_ext=c
2006ac_cpp='$CPP $CPPFLAGS'
2007ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2008ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2009ac_compiler_gnu=$ac_cv_c_compiler_gnu
2010if test -n "$ac_tool_prefix"; then
2011 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2012set dummy ${ac_tool_prefix}gcc; ac_word=$2
2013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2014$as_echo_n "checking for $ac_word... " >&6; }
2015if ${ac_cv_prog_CC+:} false; then :
2016 $as_echo_n "(cached) " >&6
2017else
2018 if test -n "$CC"; then
2019 ac_cv_prog_CC="$CC" # Let the user override the test.
2020else
2021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2022for as_dir in $PATH
2023do
2024 IFS=$as_save_IFS
2025 test -z "$as_dir" && as_dir=.
2026 for ac_exec_ext in '' $ac_executable_extensions; do
2027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2028 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2030 break 2
2031 fi
2032done
2033 done
2034IFS=$as_save_IFS
2035
2036fi
2037fi
2038CC=$ac_cv_prog_CC
2039if test -n "$CC"; then
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2041$as_echo "$CC" >&6; }
2042else
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2044$as_echo "no" >&6; }
2045fi
2046
2047
2048fi
2049if test -z "$ac_cv_prog_CC"; then
2050 ac_ct_CC=$CC
2051 # Extract the first word of "gcc", so it can be a program name with args.
2052set dummy gcc; ac_word=$2
2053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2054$as_echo_n "checking for $ac_word... " >&6; }
2055if ${ac_cv_prog_ac_ct_CC+:} false; then :
2056 $as_echo_n "(cached) " >&6
2057else
2058 if test -n "$ac_ct_CC"; then
2059 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2060else
2061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2062for as_dir in $PATH
2063do
2064 IFS=$as_save_IFS
2065 test -z "$as_dir" && as_dir=.
2066 for ac_exec_ext in '' $ac_executable_extensions; do
2067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2068 ac_cv_prog_ac_ct_CC="gcc"
2069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2070 break 2
2071 fi
2072done
2073 done
2074IFS=$as_save_IFS
2075
2076fi
2077fi
2078ac_ct_CC=$ac_cv_prog_ac_ct_CC
2079if test -n "$ac_ct_CC"; then
2080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2081$as_echo "$ac_ct_CC" >&6; }
2082else
2083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2084$as_echo "no" >&6; }
2085fi
2086
2087 if test "x$ac_ct_CC" = x; then
2088 CC=""
2089 else
2090 case $cross_compiling:$ac_tool_warned in
2091yes:)
2092{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2093$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2094ac_tool_warned=yes ;;
2095esac
2096 CC=$ac_ct_CC
2097 fi
2098else
2099 CC="$ac_cv_prog_CC"
2100fi
2101
2102if test -z "$CC"; then
2103 if test -n "$ac_tool_prefix"; then
2104 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2105set dummy ${ac_tool_prefix}cc; ac_word=$2
2106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2107$as_echo_n "checking for $ac_word... " >&6; }
2108if ${ac_cv_prog_CC+:} false; then :
2109 $as_echo_n "(cached) " >&6
2110else
2111 if test -n "$CC"; then
2112 ac_cv_prog_CC="$CC" # Let the user override the test.
2113else
2114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2115for as_dir in $PATH
2116do
2117 IFS=$as_save_IFS
2118 test -z "$as_dir" && as_dir=.
2119 for ac_exec_ext in '' $ac_executable_extensions; do
2120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2121 ac_cv_prog_CC="${ac_tool_prefix}cc"
2122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2123 break 2
2124 fi
2125done
2126 done
2127IFS=$as_save_IFS
2128
2129fi
2130fi
2131CC=$ac_cv_prog_CC
2132if test -n "$CC"; then
2133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2134$as_echo "$CC" >&6; }
2135else
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2137$as_echo "no" >&6; }
2138fi
2139
2140
2141 fi
2142fi
2143if test -z "$CC"; then
2144 # Extract the first word of "cc", so it can be a program name with args.
2145set dummy cc; ac_word=$2
2146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2147$as_echo_n "checking for $ac_word... " >&6; }
2148if ${ac_cv_prog_CC+:} false; then :
2149 $as_echo_n "(cached) " >&6
2150else
2151 if test -n "$CC"; then
2152 ac_cv_prog_CC="$CC" # Let the user override the test.
2153else
2154 ac_prog_rejected=no
2155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2156for as_dir in $PATH
2157do
2158 IFS=$as_save_IFS
2159 test -z "$as_dir" && as_dir=.
2160 for ac_exec_ext in '' $ac_executable_extensions; do
2161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2162 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2163 ac_prog_rejected=yes
2164 continue
2165 fi
2166 ac_cv_prog_CC="cc"
2167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2168 break 2
2169 fi
2170done
2171 done
2172IFS=$as_save_IFS
2173
2174if test $ac_prog_rejected = yes; then
2175 # We found a bogon in the path, so make sure we never use it.
2176 set dummy $ac_cv_prog_CC
2177 shift
2178 if test $# != 0; then
2179 # We chose a different compiler from the bogus one.
2180 # However, it has the same basename, so the bogon will be chosen
2181 # first if we set CC to just the basename; use the full file name.
2182 shift
2183 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2184 fi
2185fi
2186fi
2187fi
2188CC=$ac_cv_prog_CC
2189if test -n "$CC"; then
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2191$as_echo "$CC" >&6; }
2192else
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2194$as_echo "no" >&6; }
2195fi
2196
2197
2198fi
2199if test -z "$CC"; then
2200 if test -n "$ac_tool_prefix"; then
2201 for ac_prog in cl.exe
2202 do
2203 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2204set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2206$as_echo_n "checking for $ac_word... " >&6; }
2207if ${ac_cv_prog_CC+:} false; then :
2208 $as_echo_n "(cached) " >&6
2209else
2210 if test -n "$CC"; then
2211 ac_cv_prog_CC="$CC" # Let the user override the test.
2212else
2213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2214for as_dir in $PATH
2215do
2216 IFS=$as_save_IFS
2217 test -z "$as_dir" && as_dir=.
2218 for ac_exec_ext in '' $ac_executable_extensions; do
2219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2220 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2222 break 2
2223 fi
2224done
2225 done
2226IFS=$as_save_IFS
2227
2228fi
2229fi
2230CC=$ac_cv_prog_CC
2231if test -n "$CC"; then
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2233$as_echo "$CC" >&6; }
2234else
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2236$as_echo "no" >&6; }
2237fi
2238
2239
2240 test -n "$CC" && break
2241 done
2242fi
2243if test -z "$CC"; then
2244 ac_ct_CC=$CC
2245 for ac_prog in cl.exe
2246do
2247 # Extract the first word of "$ac_prog", so it can be a program name with args.
2248set dummy $ac_prog; ac_word=$2
2249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2250$as_echo_n "checking for $ac_word... " >&6; }
2251if ${ac_cv_prog_ac_ct_CC+:} false; then :
2252 $as_echo_n "(cached) " >&6
2253else
2254 if test -n "$ac_ct_CC"; then
2255 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2256else
2257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2258for as_dir in $PATH
2259do
2260 IFS=$as_save_IFS
2261 test -z "$as_dir" && as_dir=.
2262 for ac_exec_ext in '' $ac_executable_extensions; do
2263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2264 ac_cv_prog_ac_ct_CC="$ac_prog"
2265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2266 break 2
2267 fi
2268done
2269 done
2270IFS=$as_save_IFS
2271
2272fi
2273fi
2274ac_ct_CC=$ac_cv_prog_ac_ct_CC
2275if test -n "$ac_ct_CC"; then
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2277$as_echo "$ac_ct_CC" >&6; }
2278else
2279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2280$as_echo "no" >&6; }
2281fi
2282
2283
2284 test -n "$ac_ct_CC" && break
2285done
2286
2287 if test "x$ac_ct_CC" = x; then
2288 CC=""
2289 else
2290 case $cross_compiling:$ac_tool_warned in
2291yes:)
2292{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2293$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2294ac_tool_warned=yes ;;
2295esac
2296 CC=$ac_ct_CC
2297 fi
2298fi
2299
2300fi
2301
2302
2303test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2304$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2305as_fn_error $? "no acceptable C compiler found in \$PATH
2306See \`config.log' for more details" "$LINENO" 5; }
2307
2308# Provide some information about the compiler.
2309$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2310set X $ac_compile
2311ac_compiler=$2
2312for ac_option in --version -v -V -qversion; do
2313 { { ac_try="$ac_compiler $ac_option >&5"
2314case "(($ac_try" in
2315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2316 *) ac_try_echo=$ac_try;;
2317esac
2318eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2319$as_echo "$ac_try_echo"; } >&5
2320 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2321 ac_status=$?
2322 if test -s conftest.err; then
2323 sed '10a\
2324... rest of stderr output deleted ...
2325 10q' conftest.err >conftest.er1
2326 cat conftest.er1 >&5
2327 fi
2328 rm -f conftest.er1 conftest.err
2329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2330 test $ac_status = 0; }
2331done
2332
2333cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2334/* end confdefs.h. */
2335
2336int
2337main ()
2338{
2339
2340 ;
2341 return 0;
2342}
2343_ACEOF
2344ac_clean_files_save=$ac_clean_files
2345ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2346# Try to create an executable without -o first, disregard a.out.
2347# It will help us diagnose broken compilers, and finding out an intuition
2348# of exeext.
2349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2350$as_echo_n "checking whether the C compiler works... " >&6; }
2351ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2352
2353# The possible output files:
2354ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2355
2356ac_rmfiles=
2357for ac_file in $ac_files
2358do
2359 case $ac_file in
2360 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2361 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2362 esac
2363done
2364rm -f $ac_rmfiles
2365
2366if { { ac_try="$ac_link_default"
2367case "(($ac_try" in
2368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2369 *) ac_try_echo=$ac_try;;
2370esac
2371eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2372$as_echo "$ac_try_echo"; } >&5
2373 (eval "$ac_link_default") 2>&5
2374 ac_status=$?
2375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2376 test $ac_status = 0; }; then :
2377 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2378# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2379# in a Makefile. We should not override ac_cv_exeext if it was cached,
2380# so that the user can short-circuit this test for compilers unknown to
2381# Autoconf.
2382for ac_file in $ac_files ''
2383do
2384 test -f "$ac_file" || continue
2385 case $ac_file in
2386 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2387 ;;
2388 [ab].out )
2389 # We found the default executable, but exeext='' is most
2390 # certainly right.
2391 break;;
2392 *.* )
2393 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2394 then :; else
2395 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2396 fi
2397 # We set ac_cv_exeext here because the later test for it is not
2398 # safe: cross compilers may not add the suffix if given an `-o'
2399 # argument, so we may need to know it at that point already.
2400 # Even if this section looks crufty: it has the advantage of
2401 # actually working.
2402 break;;
2403 * )
2404 break;;
2405 esac
2406done
2407test "$ac_cv_exeext" = no && ac_cv_exeext=
2408
2409else
2410 ac_file=''
2411fi
2412if test -z "$ac_file"; then :
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2414$as_echo "no" >&6; }
2415$as_echo "$as_me: failed program was:" >&5
2416sed 's/^/| /' conftest.$ac_ext >&5
2417
2418{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2419$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2420as_fn_error 77 "C compiler cannot create executables
2421See \`config.log' for more details" "$LINENO" 5; }
2422else
2423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2424$as_echo "yes" >&6; }
2425fi
2426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2427$as_echo_n "checking for C compiler default output file name... " >&6; }
2428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2429$as_echo "$ac_file" >&6; }
2430ac_exeext=$ac_cv_exeext
2431
2432rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2433ac_clean_files=$ac_clean_files_save
2434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2435$as_echo_n "checking for suffix of executables... " >&6; }
2436if { { ac_try="$ac_link"
2437case "(($ac_try" in
2438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2439 *) ac_try_echo=$ac_try;;
2440esac
2441eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2442$as_echo "$ac_try_echo"; } >&5
2443 (eval "$ac_link") 2>&5
2444 ac_status=$?
2445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2446 test $ac_status = 0; }; then :
2447 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2448# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2449# work properly (i.e., refer to `conftest.exe'), while it won't with
2450# `rm'.
2451for ac_file in conftest.exe conftest conftest.*; do
2452 test -f "$ac_file" || continue
2453 case $ac_file in
2454 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2455 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2456 break;;
2457 * ) break;;
2458 esac
2459done
2460else
2461 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2462$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2463as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2464See \`config.log' for more details" "$LINENO" 5; }
2465fi
2466rm -f conftest conftest$ac_cv_exeext
2467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2468$as_echo "$ac_cv_exeext" >&6; }
2469
2470rm -f conftest.$ac_ext
2471EXEEXT=$ac_cv_exeext
2472ac_exeext=$EXEEXT
2473cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2474/* end confdefs.h. */
2475#include <stdio.h>
2476int
2477main ()
2478{
2479FILE *f = fopen ("conftest.out", "w");
2480 return ferror (f) || fclose (f) != 0;
2481
2482 ;
2483 return 0;
2484}
2485_ACEOF
2486ac_clean_files="$ac_clean_files conftest.out"
2487# Check that the compiler produces executables we can run. If not, either
2488# the compiler is broken, or we cross compile.
2489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2490$as_echo_n "checking whether we are cross compiling... " >&6; }
2491if test "$cross_compiling" != yes; then
2492 { { ac_try="$ac_link"
2493case "(($ac_try" in
2494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2495 *) ac_try_echo=$ac_try;;
2496esac
2497eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2498$as_echo "$ac_try_echo"; } >&5
2499 (eval "$ac_link") 2>&5
2500 ac_status=$?
2501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2502 test $ac_status = 0; }
2503 if { ac_try='./conftest$ac_cv_exeext'
2504 { { case "(($ac_try" in
2505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2506 *) ac_try_echo=$ac_try;;
2507esac
2508eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2509$as_echo "$ac_try_echo"; } >&5
2510 (eval "$ac_try") 2>&5
2511 ac_status=$?
2512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2513 test $ac_status = 0; }; }; then
2514 cross_compiling=no
2515 else
2516 if test "$cross_compiling" = maybe; then
2517 cross_compiling=yes
2518 else
2519 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2520$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2521as_fn_error $? "cannot run C compiled programs.
2522If you meant to cross compile, use \`--host'.
2523See \`config.log' for more details" "$LINENO" 5; }
2524 fi
2525 fi
2526fi
2527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2528$as_echo "$cross_compiling" >&6; }
2529
2530rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2531ac_clean_files=$ac_clean_files_save
2532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2533$as_echo_n "checking for suffix of object files... " >&6; }
2534if ${ac_cv_objext+:} false; then :
2535 $as_echo_n "(cached) " >&6
2536else
2537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2538/* end confdefs.h. */
2539
2540int
2541main ()
2542{
2543
2544 ;
2545 return 0;
2546}
2547_ACEOF
2548rm -f conftest.o conftest.obj
2549if { { ac_try="$ac_compile"
2550case "(($ac_try" in
2551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2552 *) ac_try_echo=$ac_try;;
2553esac
2554eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2555$as_echo "$ac_try_echo"; } >&5
2556 (eval "$ac_compile") 2>&5
2557 ac_status=$?
2558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2559 test $ac_status = 0; }; then :
2560 for ac_file in conftest.o conftest.obj conftest.*; do
2561 test -f "$ac_file" || continue;
2562 case $ac_file in
2563 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2564 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2565 break;;
2566 esac
2567done
2568else
2569 $as_echo "$as_me: failed program was:" >&5
2570sed 's/^/| /' conftest.$ac_ext >&5
2571
2572{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2573$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2574as_fn_error $? "cannot compute suffix of object files: cannot compile
2575See \`config.log' for more details" "$LINENO" 5; }
2576fi
2577rm -f conftest.$ac_cv_objext conftest.$ac_ext
2578fi
2579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2580$as_echo "$ac_cv_objext" >&6; }
2581OBJEXT=$ac_cv_objext
2582ac_objext=$OBJEXT
2583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2584$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2585if ${ac_cv_c_compiler_gnu+:} false; then :
2586 $as_echo_n "(cached) " >&6
2587else
2588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2589/* end confdefs.h. */
2590
2591int
2592main ()
2593{
2594#ifndef __GNUC__
2595 choke me
2596#endif
2597
2598 ;
2599 return 0;
2600}
2601_ACEOF
2602if ac_fn_c_try_compile "$LINENO"; then :
2603 ac_compiler_gnu=yes
2604else
2605 ac_compiler_gnu=no
2606fi
2607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2608ac_cv_c_compiler_gnu=$ac_compiler_gnu
2609
2610fi
2611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2612$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2613if test $ac_compiler_gnu = yes; then
2614 GCC=yes
2615else
2616 GCC=
2617fi
2618ac_test_CFLAGS=${CFLAGS+set}
2619ac_save_CFLAGS=$CFLAGS
2620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2621$as_echo_n "checking whether $CC accepts -g... " >&6; }
2622if ${ac_cv_prog_cc_g+:} false; then :
2623 $as_echo_n "(cached) " >&6
2624else
2625 ac_save_c_werror_flag=$ac_c_werror_flag
2626 ac_c_werror_flag=yes
2627 ac_cv_prog_cc_g=no
2628 CFLAGS="-g"
2629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2630/* end confdefs.h. */
2631
2632int
2633main ()
2634{
2635
2636 ;
2637 return 0;
2638}
2639_ACEOF
2640if ac_fn_c_try_compile "$LINENO"; then :
2641 ac_cv_prog_cc_g=yes
2642else
2643 CFLAGS=""
2644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2645/* end confdefs.h. */
2646
2647int
2648main ()
2649{
2650
2651 ;
2652 return 0;
2653}
2654_ACEOF
2655if ac_fn_c_try_compile "$LINENO"; then :
2656
2657else
2658 ac_c_werror_flag=$ac_save_c_werror_flag
2659 CFLAGS="-g"
2660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2661/* end confdefs.h. */
2662
2663int
2664main ()
2665{
2666
2667 ;
2668 return 0;
2669}
2670_ACEOF
2671if ac_fn_c_try_compile "$LINENO"; then :
2672 ac_cv_prog_cc_g=yes
2673fi
2674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2675fi
2676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2677fi
2678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2679 ac_c_werror_flag=$ac_save_c_werror_flag
2680fi
2681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2682$as_echo "$ac_cv_prog_cc_g" >&6; }
2683if test "$ac_test_CFLAGS" = set; then
2684 CFLAGS=$ac_save_CFLAGS
2685elif test $ac_cv_prog_cc_g = yes; then
2686 if test "$GCC" = yes; then
2687 CFLAGS="-g -O2"
2688 else
2689 CFLAGS="-g"
2690 fi
2691else
2692 if test "$GCC" = yes; then
2693 CFLAGS="-O2"
2694 else
2695 CFLAGS=
2696 fi
2697fi
2698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2699$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2700if ${ac_cv_prog_cc_c89+:} false; then :
2701 $as_echo_n "(cached) " >&6
2702else
2703 ac_cv_prog_cc_c89=no
2704ac_save_CC=$CC
2705cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2706/* end confdefs.h. */
2707#include <stdarg.h>
2708#include <stdio.h>
2709#include <sys/types.h>
2710#include <sys/stat.h>
2711/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2712struct buf { int x; };
2713FILE * (*rcsopen) (struct buf *, struct stat *, int);
2714static char *e (p, i)
2715 char **p;
2716 int i;
2717{
2718 return p[i];
2719}
2720static char *f (char * (*g) (char **, int), char **p, ...)
2721{
2722 char *s;
2723 va_list v;
2724 va_start (v,p);
2725 s = g (p, va_arg (v,int));
2726 va_end (v);
2727 return s;
2728}
2729
2730/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2731 function prototypes and stuff, but not '\xHH' hex character constants.
2732 These don't provoke an error unfortunately, instead are silently treated
2733 as 'x'. The following induces an error, until -std is added to get
2734 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2735 array size at least. It's necessary to write '\x00'==0 to get something
2736 that's true only with -std. */
2737int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2738
2739/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2740 inside strings and character constants. */
2741#define FOO(x) 'x'
2742int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2743
2744int test (int i, double x);
2745struct s1 {int (*f) (int a);};
2746struct s2 {int (*f) (double a);};
2747int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2748int argc;
2749char **argv;
2750int
2751main ()
2752{
2753return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2754 ;
2755 return 0;
2756}
2757_ACEOF
2758for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2759 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2760do
2761 CC="$ac_save_CC $ac_arg"
2762 if ac_fn_c_try_compile "$LINENO"; then :
2763 ac_cv_prog_cc_c89=$ac_arg
2764fi
2765rm -f core conftest.err conftest.$ac_objext
2766 test "x$ac_cv_prog_cc_c89" != "xno" && break
2767done
2768rm -f conftest.$ac_ext
2769CC=$ac_save_CC
2770
2771fi
2772# AC_CACHE_VAL
2773case "x$ac_cv_prog_cc_c89" in
2774 x)
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2776$as_echo "none needed" >&6; } ;;
2777 xno)
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2779$as_echo "unsupported" >&6; } ;;
2780 *)
2781 CC="$CC $ac_cv_prog_cc_c89"
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2783$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2784esac
2785if test "x$ac_cv_prog_cc_c89" != xno; then :
2786
2787fi
2788
2789ac_ext=c
2790ac_cpp='$CPP $CPPFLAGS'
2791ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2792ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2793ac_compiler_gnu=$ac_cv_c_compiler_gnu
2794
2795ac_aux_dir=
2796for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2797 if test -f "$ac_dir/install-sh"; then
2798 ac_aux_dir=$ac_dir
2799 ac_install_sh="$ac_aux_dir/install-sh -c"
2800 break
2801 elif test -f "$ac_dir/install.sh"; then
2802 ac_aux_dir=$ac_dir
2803 ac_install_sh="$ac_aux_dir/install.sh -c"
2804 break
2805 elif test -f "$ac_dir/shtool"; then
2806 ac_aux_dir=$ac_dir
2807 ac_install_sh="$ac_aux_dir/shtool install -c"
2808 break
2809 fi
2810done
2811if test -z "$ac_aux_dir"; then
2812 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2813fi
2814
2815# These three variables are undocumented and unsupported,
2816# and are intended to be withdrawn in a future Autoconf release.
2817# They can cause serious problems if a builder's source tree is in a directory
2818# whose full name contains unusual characters.
2819ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2820ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2821ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2822
2823
2824# Find a good install program. We prefer a C program (faster),
2825# so one script is as good as another. But avoid the broken or
2826# incompatible versions:
2827# SysV /etc/install, /usr/sbin/install
2828# SunOS /usr/etc/install
2829# IRIX /sbin/install
2830# AIX /bin/install
2831# AmigaOS /C/install, which installs bootblocks on floppy discs
2832# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2833# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2834# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2835# OS/2's system install, which has a completely different semantic
2836# ./install, which can be erroneously created by make from ./install.sh.
2837# Reject install programs that cannot install multiple files.
2838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2839$as_echo_n "checking for a BSD-compatible install... " >&6; }
2840if test -z "$INSTALL"; then
2841if ${ac_cv_path_install+:} false; then :
2842 $as_echo_n "(cached) " >&6
2843else
2844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2845for as_dir in $PATH
2846do
2847 IFS=$as_save_IFS
2848 test -z "$as_dir" && as_dir=.
2849 # Account for people who put trailing slashes in PATH elements.
2850case $as_dir/ in #((
2851 ./ | .// | /[cC]/* | \
2852 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2853 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2854 /usr/ucb/* ) ;;
2855 *)
2856 # OSF1 and SCO ODT 3.0 have their own names for install.
2857 # Don't use installbsd from OSF since it installs stuff as root
2858 # by default.
2859 for ac_prog in ginstall scoinst install; do
2860 for ac_exec_ext in '' $ac_executable_extensions; do
2861 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2862 if test $ac_prog = install &&
2863 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2864 # AIX install. It has an incompatible calling convention.
2865 :
2866 elif test $ac_prog = install &&
2867 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2868 # program-specific install script used by HP pwplus--don't use.
2869 :
2870 else
2871 rm -rf conftest.one conftest.two conftest.dir
2872 echo one > conftest.one
2873 echo two > conftest.two
2874 mkdir conftest.dir
2875 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2876 test -s conftest.one && test -s conftest.two &&
2877 test -s conftest.dir/conftest.one &&
2878 test -s conftest.dir/conftest.two
2879 then
2880 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2881 break 3
2882 fi
2883 fi
2884 fi
2885 done
2886 done
2887 ;;
2888esac
2889
2890 done
2891IFS=$as_save_IFS
2892
2893rm -rf conftest.one conftest.two conftest.dir
2894
2895fi
2896 if test "${ac_cv_path_install+set}" = set; then
2897 INSTALL=$ac_cv_path_install
2898 else
2899 # As a last resort, use the slow shell script. Don't cache a
2900 # value for INSTALL within a source directory, because that will
2901 # break other packages using the cache if that directory is
2902 # removed, or if the value is a relative name.
2903 INSTALL=$ac_install_sh
2904 fi
2905fi
2906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2907$as_echo "$INSTALL" >&6; }
2908
2909# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2910# It thinks the first close brace ends the variable substitution.
2911test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2912
2913test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2914
2915test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2916
2917# Make sure we can run config.sub.
2918$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2919 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2920
2921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2922$as_echo_n "checking build system type... " >&6; }
2923if ${ac_cv_build+:} false; then :
2924 $as_echo_n "(cached) " >&6
2925else
2926 ac_build_alias=$build_alias
2927test "x$ac_build_alias" = x &&
2928 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2929test "x$ac_build_alias" = x &&
2930 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2931ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2932 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2933
2934fi
2935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2936$as_echo "$ac_cv_build" >&6; }
2937case $ac_cv_build in
2938*-*-*) ;;
2939*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2940esac
2941build=$ac_cv_build
2942ac_save_IFS=$IFS; IFS='-'
2943set x $ac_cv_build
2944shift
2945build_cpu=$1
2946build_vendor=$2
2947shift; shift
2948# Remember, the first character of IFS is used to create $*,
2949# except with old shells:
2950build_os=$*
2951IFS=$ac_save_IFS
2952case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2953
2954
2955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2956$as_echo_n "checking host system type... " >&6; }
2957if ${ac_cv_host+:} false; then :
2958 $as_echo_n "(cached) " >&6
2959else
2960 if test "x$host_alias" = x; then
2961 ac_cv_host=$ac_cv_build
2962else
2963 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2964 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2965fi
2966
2967fi
2968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2969$as_echo "$ac_cv_host" >&6; }
2970case $ac_cv_host in
2971*-*-*) ;;
2972*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2973esac
2974host=$ac_cv_host
2975ac_save_IFS=$IFS; IFS='-'
2976set x $ac_cv_host
2977shift
2978host_cpu=$1
2979host_vendor=$2
2980shift; shift
2981# Remember, the first character of IFS is used to create $*,
2982# except with old shells:
2983host_os=$*
2984IFS=$ac_save_IFS
2985case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2986
2987
2988
2989#################################################
2990# Directory handling stuff to support both the
2991# legacy SAMBA directories and FHS compliant
2992# ones...
2993
2994
2995
2996# Check whether --with-fhs was given.
2997if test "${with_fhs+set}" = set; then :
2998 withval=$with_fhs; libdir="\${prefix}/lib/samba"
2999else
3000 libdir="\${prefix}/lib"
3001fi
3002
3003
3004
3005
3006SAMBA_SOURCE="../../source3"
3007####################################################
3008# set the location location of the samba source tree
3009
3010# Check whether --with-samba-source was given.
3011if test "${with_samba_source+set}" = set; then :
3012 withval=$with_samba_source; case "$withval" in
3013 yes|no)
3014 #
3015 # Just in case anybody calls it without argument
3016 #
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-samba-source called without argument - will use default" >&5
3018$as_echo "$as_me: WARNING: --with-samba-source called without argument - will use default" >&2;}
3019 ;;
3020 * )
3021 SAMBA_SOURCE="$withval"
3022 ;;
3023 esac
3024fi
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045# Check whether --enable-debug was given.
3046if test "${enable_debug+set}" = set; then :
3047 enableval=$enable_debug; if eval "test x$enable_debug = xyes"; then
3048 CFLAGS="${CFLAGS} -g"
3049 fi
3050fi
3051
3052
3053# Check whether --enable-developer was given.
3054if test "${enable_developer+set}" = set; then :
3055 enableval=$enable_developer; if eval "test x$enable_developer = xyes"; then
3056 developer=yes
3057 CFLAGS="${CFLAGS} -g -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -DDEBUG_PASSWORD -DDEVELOPER"
3058 fi
3059fi
3060
3061
3062# compile with optimization and without debugging by default, but
3063# allow people to set their own preference.
3064if test "x$CFLAGS" = x
3065then
3066 CFLAGS="-O ${CFLAGS}"
3067fi
3068
3069 #################################################
3070 # check for krb5-config from recent MIT and Heimdal kerberos 5
3071 # Extract the first word of "krb5-config", so it can be a program name with args.
3072set dummy krb5-config; ac_word=$2
3073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3074$as_echo_n "checking for $ac_word... " >&6; }
3075if ${ac_cv_path_KRB5CONFIG+:} false; then :
3076 $as_echo_n "(cached) " >&6
3077else
3078 case $KRB5CONFIG in
3079 [\\/]* | ?:[\\/]*)
3080 ac_cv_path_KRB5CONFIG="$KRB5CONFIG" # Let the user override the test with a path.
3081 ;;
3082 *)
3083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3084for as_dir in $PATH
3085do
3086 IFS=$as_save_IFS
3087 test -z "$as_dir" && as_dir=.
3088 for ac_exec_ext in '' $ac_executable_extensions; do
3089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3090 ac_cv_path_KRB5CONFIG="$as_dir/$ac_word$ac_exec_ext"
3091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3092 break 2
3093 fi
3094done
3095 done
3096IFS=$as_save_IFS
3097
3098 ;;
3099esac
3100fi
3101KRB5CONFIG=$ac_cv_path_KRB5CONFIG
3102if test -n "$KRB5CONFIG"; then
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5CONFIG" >&5
3104$as_echo "$KRB5CONFIG" >&6; }
3105else
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3107$as_echo "no" >&6; }
3108fi
3109
3110
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working krb5-config" >&5
3112$as_echo_n "checking for working krb5-config... " >&6; }
3113 if test -x "$KRB5CONFIG"; then
3114 CFLAGS="$CFLAGS `$KRB5CONFIG --cflags | sed s/@INCLUDE_des@//`"
3115 CPPFLAGS="$CPPFLAGS `$KRB5CONFIG --cflags | sed s/@INCLUDE_des@//`"
3116 FOUND_KRB5=yes
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3118$as_echo "yes" >&6; }
3119 else
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no. Fallback to previous krb5 detection strategy" >&5
3121$as_echo "no. Fallback to previous krb5 detection strategy" >&6; }
3122 fi
3123
3124 if test x$FOUND_KRB5 = x"no"; then
3125 #################################################
3126 # check for location of Kerberos 5 install
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kerberos 5 install path" >&5
3128$as_echo_n "checking for kerberos 5 install path... " >&6; }
3129
3130# Check whether --with-krb5 was given.
3131if test "${with_krb5+set}" = set; then :
3132 withval=$with_krb5; case "$withval" in
3133 no)
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3135$as_echo "no" >&6; }
3136 ;;
3137 *)
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3139$as_echo "yes" >&6; }
3140 CFLAGS="$CFLAGS -I$withval/include"
3141 CPPFLAGS="$CPPFLAGS -I$withval/include"
3142 FOUND_KRB5=yes
3143 ;;
3144 esac
3145else
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3147$as_echo "no" >&6; }
3148
3149fi
3150
3151 fi
3152
3153if test x$FOUND_KRB5 = x"no"; then
3154#################################################
3155# see if this box has the SuSE location for the heimdal kerberos implementation
3156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/include/heimdal" >&5
3157$as_echo_n "checking for /usr/include/heimdal... " >&6; }
3158if test -d /usr/include/heimdal; then
3159 if test -f /usr/lib/heimdal/lib/libkrb5.a; then
3160 CFLAGS="$CFLAGS -I/usr/include/heimdal"
3161 CPPFLAGS="$CPPFLAGS -I/usr/include/heimdal"
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3163$as_echo "yes" >&6; }
3164 else
3165 CFLAGS="$CFLAGS -I/usr/include/heimdal"
3166 CPPFLAGS="$CPPFLAGS -I/usr/include/heimdal"
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3168$as_echo "yes" >&6; }
3169
3170 fi
3171else
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3173$as_echo "no" >&6; }
3174fi
3175fi
3176
3177
3178if test x$FOUND_KRB5 = x"no"; then
3179#################################################
3180# see if this box has the RedHat location for kerberos
3181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/kerberos" >&5
3182$as_echo_n "checking for /usr/kerberos... " >&6; }
3183if test -d /usr/kerberos -a -f /usr/kerberos/lib/libkrb5.a; then
3184 LDFLAGS="$LDFLAGS -L/usr/kerberos/lib"
3185 CFLAGS="$CFLAGS -I/usr/kerberos/include"
3186 CPPFLAGS="$CPPFLAGS -I/usr/kerberos/include"
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3188$as_echo "yes" >&6; }
3189else
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3191$as_echo "no" >&6; }
3192fi
3193fi
3194
3195 # now check for krb5.h. Some systems have the libraries without the headers!
3196 # note that this check is done here to allow for different kerberos
3197 # include paths
3198
3199ac_ext=c
3200ac_cpp='$CPP $CPPFLAGS'
3201ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3202ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3203ac_compiler_gnu=$ac_cv_c_compiler_gnu
3204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3205$as_echo_n "checking how to run the C preprocessor... " >&6; }
3206# On Suns, sometimes $CPP names a directory.
3207if test -n "$CPP" && test -d "$CPP"; then
3208 CPP=
3209fi
3210if test -z "$CPP"; then
3211 if ${ac_cv_prog_CPP+:} false; then :
3212 $as_echo_n "(cached) " >&6
3213else
3214 # Double quotes because CPP needs to be expanded
3215 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3216 do
3217 ac_preproc_ok=false
3218for ac_c_preproc_warn_flag in '' yes
3219do
3220 # Use a header file that comes with gcc, so configuring glibc
3221 # with a fresh cross-compiler works.
3222 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3223 # <limits.h> exists even on freestanding compilers.
3224 # On the NeXT, cc -E runs the code through the compiler's parser,
3225 # not just through cpp. "Syntax error" is here to catch this case.
3226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3227/* end confdefs.h. */
3228#ifdef __STDC__
3229# include <limits.h>
3230#else
3231# include <assert.h>
3232#endif
3233 Syntax error
3234_ACEOF
3235if ac_fn_c_try_cpp "$LINENO"; then :
3236
3237else
3238 # Broken: fails on valid input.
3239continue
3240fi
3241rm -f conftest.err conftest.i conftest.$ac_ext
3242
3243 # OK, works on sane cases. Now check whether nonexistent headers
3244 # can be detected and how.
3245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3246/* end confdefs.h. */
3247#include <ac_nonexistent.h>
3248_ACEOF
3249if ac_fn_c_try_cpp "$LINENO"; then :
3250 # Broken: success on invalid input.
3251continue
3252else
3253 # Passes both tests.
3254ac_preproc_ok=:
3255break
3256fi
3257rm -f conftest.err conftest.i conftest.$ac_ext
3258
3259done
3260# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3261rm -f conftest.i conftest.err conftest.$ac_ext
3262if $ac_preproc_ok; then :
3263 break
3264fi
3265
3266 done
3267 ac_cv_prog_CPP=$CPP
3268
3269fi
3270 CPP=$ac_cv_prog_CPP
3271else
3272 ac_cv_prog_CPP=$CPP
3273fi
3274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3275$as_echo "$CPP" >&6; }
3276ac_preproc_ok=false
3277for ac_c_preproc_warn_flag in '' yes
3278do
3279 # Use a header file that comes with gcc, so configuring glibc
3280 # with a fresh cross-compiler works.
3281 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3282 # <limits.h> exists even on freestanding compilers.
3283 # On the NeXT, cc -E runs the code through the compiler's parser,
3284 # not just through cpp. "Syntax error" is here to catch this case.
3285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3286/* end confdefs.h. */
3287#ifdef __STDC__
3288# include <limits.h>
3289#else
3290# include <assert.h>
3291#endif
3292 Syntax error
3293_ACEOF
3294if ac_fn_c_try_cpp "$LINENO"; then :
3295
3296else
3297 # Broken: fails on valid input.
3298continue
3299fi
3300rm -f conftest.err conftest.i conftest.$ac_ext
3301
3302 # OK, works on sane cases. Now check whether nonexistent headers
3303 # can be detected and how.
3304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3305/* end confdefs.h. */
3306#include <ac_nonexistent.h>
3307_ACEOF
3308if ac_fn_c_try_cpp "$LINENO"; then :
3309 # Broken: success on invalid input.
3310continue
3311else
3312 # Passes both tests.
3313ac_preproc_ok=:
3314break
3315fi
3316rm -f conftest.err conftest.i conftest.$ac_ext
3317
3318done
3319# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3320rm -f conftest.i conftest.err conftest.$ac_ext
3321if $ac_preproc_ok; then :
3322
3323else
3324 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3325$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3326as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3327See \`config.log' for more details" "$LINENO" 5; }
3328fi
3329
3330ac_ext=c
3331ac_cpp='$CPP $CPPFLAGS'
3332ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3333ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3334ac_compiler_gnu=$ac_cv_c_compiler_gnu
3335
3336
3337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3338$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3339if ${ac_cv_path_GREP+:} false; then :
3340 $as_echo_n "(cached) " >&6
3341else
3342 if test -z "$GREP"; then
3343 ac_path_GREP_found=false
3344 # Loop through the user's path and test for each of PROGNAME-LIST
3345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3346for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3347do
3348 IFS=$as_save_IFS
3349 test -z "$as_dir" && as_dir=.
3350 for ac_prog in grep ggrep; do
3351 for ac_exec_ext in '' $ac_executable_extensions; do
3352 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3353 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3354# Check for GNU ac_path_GREP and select it if it is found.
3355 # Check for GNU $ac_path_GREP
3356case `"$ac_path_GREP" --version 2>&1` in
3357*GNU*)
3358 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3359*)
3360 ac_count=0
3361 $as_echo_n 0123456789 >"conftest.in"
3362 while :
3363 do
3364 cat "conftest.in" "conftest.in" >"conftest.tmp"
3365 mv "conftest.tmp" "conftest.in"
3366 cp "conftest.in" "conftest.nl"
3367 $as_echo 'GREP' >> "conftest.nl"
3368 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3369 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3370 as_fn_arith $ac_count + 1 && ac_count=$as_val
3371 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3372 # Best one so far, save it but keep looking for a better one
3373 ac_cv_path_GREP="$ac_path_GREP"
3374 ac_path_GREP_max=$ac_count
3375 fi
3376 # 10*(2^10) chars as input seems more than enough
3377 test $ac_count -gt 10 && break
3378 done
3379 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3380esac
3381
3382 $ac_path_GREP_found && break 3
3383 done
3384 done
3385 done
3386IFS=$as_save_IFS
3387 if test -z "$ac_cv_path_GREP"; then
3388 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3389 fi
3390else
3391 ac_cv_path_GREP=$GREP
3392fi
3393
3394fi
3395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3396$as_echo "$ac_cv_path_GREP" >&6; }
3397 GREP="$ac_cv_path_GREP"
3398
3399
3400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3401$as_echo_n "checking for egrep... " >&6; }
3402if ${ac_cv_path_EGREP+:} false; then :
3403 $as_echo_n "(cached) " >&6
3404else
3405 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3406 then ac_cv_path_EGREP="$GREP -E"
3407 else
3408 if test -z "$EGREP"; then
3409 ac_path_EGREP_found=false
3410 # Loop through the user's path and test for each of PROGNAME-LIST
3411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3412for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3413do
3414 IFS=$as_save_IFS
3415 test -z "$as_dir" && as_dir=.
3416 for ac_prog in egrep; do
3417 for ac_exec_ext in '' $ac_executable_extensions; do
3418 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3419 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3420# Check for GNU ac_path_EGREP and select it if it is found.
3421 # Check for GNU $ac_path_EGREP
3422case `"$ac_path_EGREP" --version 2>&1` in
3423*GNU*)
3424 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3425*)
3426 ac_count=0
3427 $as_echo_n 0123456789 >"conftest.in"
3428 while :
3429 do
3430 cat "conftest.in" "conftest.in" >"conftest.tmp"
3431 mv "conftest.tmp" "conftest.in"
3432 cp "conftest.in" "conftest.nl"
3433 $as_echo 'EGREP' >> "conftest.nl"
3434 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3435 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3436 as_fn_arith $ac_count + 1 && ac_count=$as_val
3437 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3438 # Best one so far, save it but keep looking for a better one
3439 ac_cv_path_EGREP="$ac_path_EGREP"
3440 ac_path_EGREP_max=$ac_count
3441 fi
3442 # 10*(2^10) chars as input seems more than enough
3443 test $ac_count -gt 10 && break
3444 done
3445 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3446esac
3447
3448 $ac_path_EGREP_found && break 3
3449 done
3450 done
3451 done
3452IFS=$as_save_IFS
3453 if test -z "$ac_cv_path_EGREP"; then
3454 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3455 fi
3456else
3457 ac_cv_path_EGREP=$EGREP
3458fi
3459
3460 fi
3461fi
3462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3463$as_echo "$ac_cv_path_EGREP" >&6; }
3464 EGREP="$ac_cv_path_EGREP"
3465
3466
3467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3468$as_echo_n "checking for ANSI C header files... " >&6; }
3469if ${ac_cv_header_stdc+:} false; then :
3470 $as_echo_n "(cached) " >&6
3471else
3472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3473/* end confdefs.h. */
3474#include <stdlib.h>
3475#include <stdarg.h>
3476#include <string.h>
3477#include <float.h>
3478
3479int
3480main ()
3481{
3482
3483 ;
3484 return 0;
3485}
3486_ACEOF
3487if ac_fn_c_try_compile "$LINENO"; then :
3488 ac_cv_header_stdc=yes
3489else
3490 ac_cv_header_stdc=no
3491fi
3492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3493
3494if test $ac_cv_header_stdc = yes; then
3495 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3497/* end confdefs.h. */
3498#include <string.h>
3499
3500_ACEOF
3501if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3502 $EGREP "memchr" >/dev/null 2>&1; then :
3503
3504else
3505 ac_cv_header_stdc=no
3506fi
3507rm -f conftest*
3508
3509fi
3510
3511if test $ac_cv_header_stdc = yes; then
3512 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3514/* end confdefs.h. */
3515#include <stdlib.h>
3516
3517_ACEOF
3518if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3519 $EGREP "free" >/dev/null 2>&1; then :
3520
3521else
3522 ac_cv_header_stdc=no
3523fi
3524rm -f conftest*
3525
3526fi
3527
3528if test $ac_cv_header_stdc = yes; then
3529 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3530 if test "$cross_compiling" = yes; then :
3531 :
3532else
3533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3534/* end confdefs.h. */
3535#include <ctype.h>
3536#include <stdlib.h>
3537#if ((' ' & 0x0FF) == 0x020)
3538# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3539# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3540#else
3541# define ISLOWER(c) \
3542 (('a' <= (c) && (c) <= 'i') \
3543 || ('j' <= (c) && (c) <= 'r') \
3544 || ('s' <= (c) && (c) <= 'z'))
3545# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3546#endif
3547
3548#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3549int
3550main ()
3551{
3552 int i;
3553 for (i = 0; i < 256; i++)
3554 if (XOR (islower (i), ISLOWER (i))
3555 || toupper (i) != TOUPPER (i))
3556 return 2;
3557 return 0;
3558}
3559_ACEOF
3560if ac_fn_c_try_run "$LINENO"; then :
3561
3562else
3563 ac_cv_header_stdc=no
3564fi
3565rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3566 conftest.$ac_objext conftest.beam conftest.$ac_ext
3567fi
3568
3569fi
3570fi
3571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3572$as_echo "$ac_cv_header_stdc" >&6; }
3573if test $ac_cv_header_stdc = yes; then
3574
3575$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3576
3577fi
3578
3579# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3580for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3581 inttypes.h stdint.h unistd.h
3582do :
3583 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3584ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3585"
3586if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3587 cat >>confdefs.h <<_ACEOF
3588#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3589_ACEOF
3590
3591fi
3592
3593done
3594
3595
3596for ac_header in krb5.h
3597do :
3598 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
3599if test "x$ac_cv_header_krb5_h" = xyes; then :
3600 cat >>confdefs.h <<_ACEOF
3601#define HAVE_KRB5_H 1
3602_ACEOF
3603
3604fi
3605
3606done
3607
3608
3609 # now check for gssapi headers. This is also done here to allow for
3610 # different kerberos include paths
3611 for ac_header in gssapi.h gssapi/gssapi_generic.h gssapi/gssapi.h com_err.h
3612do :
3613 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3614ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
3615if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3616 cat >>confdefs.h <<_ACEOF
3617#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3618_ACEOF
3619
3620fi
3621
3622done
3623
3624
3625#dnl Check if we use GNU ld
3626#LD=ld
3627#AC_PROG_LD_GNU
3628
3629#dnl look for executable suffix
3630#AC_EXEEXT
3631
3632builddir=`pwd`
3633
3634
3635# Assume non-shared by default and override below
3636BLDSHARED="false"
3637
3638# these are the defaults, good for lots of systems
3639HOST_OS="$host_os"
3640LDSHFLAGS="-shared"
3641SONAMEFLAG="#"
3642SHLD="\${CC}"
3643PICFLAGS=""
3644PICSUFFIX="po"
3645SHLIBEXT="so"
3646
3647# Since we are not embedded in the Samba tree, building shared modules is
3648# really the only option.
3649enable_shared=yes
3650
3651if test "$enable_shared" = "yes"; then
3652 # this bit needs to be modified for each OS that is suported by
3653 # smbwrapper. You need to specify how to created a shared library and
3654 # how to compile C code to produce PIC object files
3655
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ability to build shared libraries" >&5
3657$as_echo_n "checking ability to build shared libraries... " >&6; }
3658
3659 # and these are for particular systems
3660 case "$host_os" in
3661 *linux*)
3662 BLDSHARED="true"
3663 LDSHFLAGS="-shared"
3664 DYNEXP="-Wl,--export-dynamic"
3665 PICFLAGS="-fPIC"
3666 SONAMEFLAG="-Wl,-soname="
3667 ;;
3668 *solaris*)
3669 BLDSHARED="true"
3670 LDSHFLAGS="-G"
3671 SONAMEFLAG="-h "
3672 if test "${GCC}" = "yes"; then
3673 PICFLAGS="-fPIC"
3674 if test "${ac_cv_prog_gnu_ld}" = "yes"; then
3675 DYNEXP="-Wl,-E"
3676 fi
3677 else
3678 PICFLAGS="-KPIC"
3679 ## ${CFLAGS} added for building 64-bit shared
3680 ## libs using Sun's Compiler
3681 LDSHFLAGS="-G \${CFLAGS}"
3682 PICSUFFIX="po.o"
3683 fi
3684 ;;
3685 *sunos*)
3686 BLDSHARED="true"
3687 LDSHFLAGS="-G"
3688 SONAMEFLAG="-Wl,-h,"
3689 PICFLAGS="-KPIC" # Is this correct for SunOS
3690 ;;
3691 *netbsd* | *freebsd*) BLDSHARED="true"
3692 LDSHFLAGS="-shared"
3693 DYNEXP="-Wl,--export-dynamic"
3694 SONAMEFLAG="-Wl,-soname,"
3695 PICFLAGS="-fPIC -DPIC"
3696 ;;
3697 *openbsd*) BLDSHARED="true"
3698 LDSHFLAGS="-shared"
3699 DYNEXP="-Wl,-Bdynamic"
3700 SONAMEFLAG="-Wl,-soname,"
3701 PICFLAGS="-fPIC"
3702 ;;
3703 *irix*)
3704 case "$host_os" in
3705 *irix6*)
3706 ;;
3707 esac
3708 ATTEMPT_WRAP32_BUILD=yes
3709 BLDSHARED="true"
3710 LDSHFLAGS="-set_version sgi1.0 -shared"
3711 SONAMEFLAG="-soname "
3712 SHLD="\${LD}"
3713 if test "${GCC}" = "yes"; then
3714 PICFLAGS="-fPIC"
3715 else
3716 PICFLAGS="-KPIC"
3717 fi
3718 ;;
3719 *aix*)
3720 BLDSHARED="true"
3721 LDSHFLAGS="-Wl,-bexpall,-bM:SRE,-bnoentry,-berok"
3722 DYNEXP="-Wl,-brtl,-bexpall"
3723 PICFLAGS="-O2"
3724 if test "${GCC}" != "yes"; then
3725 ## for funky AIX compiler using strncpy()
3726 CFLAGS="$CFLAGS -D_LINUX_SOURCE_COMPAT -qmaxmem=32000"
3727 fi
3728 ;;
3729 *hpux*)
3730 SHLIBEXT="sl"
3731 # Use special PIC flags for the native HP-UX compiler.
3732 if test $ac_cv_prog_cc_Ae = yes; then
3733 BLDSHARED="true"
3734 SHLD="/usr/bin/ld"
3735 LDSHFLAGS="-B symbolic -b -z"
3736 SONAMEFLAG="+h "
3737 PICFLAGS="+z"
3738 fi
3739 DYNEXP="-Wl,-E"
3740 ;;
3741 *qnx*)
3742 ;;
3743 *osf*)
3744 BLDSHARED="true"
3745 LDSHFLAGS="-shared"
3746 SONAMEFLAG="-Wl,-soname,"
3747 PICFLAGS="-fPIC"
3748 ;;
3749 *sco*)
3750 ;;
3751 *unixware*)
3752 BLDSHARED="true"
3753 LDSHFLAGS="-shared"
3754 SONAMEFLAG="-Wl,-soname,"
3755 PICFLAGS="-KPIC"
3756 ;;
3757 *next2*)
3758 ;;
3759 *dgux*) # Extract the first word of "groff", so it can be a program name with args.
3760set dummy groff; ac_word=$2
3761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3762$as_echo_n "checking for $ac_word... " >&6; }
3763if ${ac_cv_prog_ROFF+:} false; then :
3764 $as_echo_n "(cached) " >&6
3765else
3766 if test -n "$ROFF"; then
3767 ac_cv_prog_ROFF="$ROFF" # Let the user override the test.
3768else
3769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3770for as_dir in $PATH
3771do
3772 IFS=$as_save_IFS
3773 test -z "$as_dir" && as_dir=.
3774 for ac_exec_ext in '' $ac_executable_extensions; do
3775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3776 ac_cv_prog_ROFF="groff -etpsR -Tascii -man"
3777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3778 break 2
3779 fi
3780done
3781 done
3782IFS=$as_save_IFS
3783
3784fi
3785fi
3786ROFF=$ac_cv_prog_ROFF
3787if test -n "$ROFF"; then
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ROFF" >&5
3789$as_echo "$ROFF" >&6; }
3790else
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3792$as_echo "no" >&6; }
3793fi
3794
3795
3796 ;;
3797 *sysv4*)
3798 case "$host" in
3799 *-univel-*)
3800 LDSHFLAGS="-G"
3801 DYNEXP="-Bexport"
3802 ;;
3803 *mips-sni-sysv4*)
3804 ;;
3805 esac
3806 ;;
3807
3808 *sysv5*)
3809 LDSHFLAGS="-G"
3810 ;;
3811 *vos*)
3812 BLDSHARED="false"
3813 LDSHFLAGS=""
3814 ;;
3815 *darwin*)
3816 BLDSHARED="true"
3817 LDSHFLAGS="-bundle -flat_namespace -undefined suppress"
3818 SHLIBEXT="dylib"
3819 ;;
3820 *)
3821 ;;
3822 esac
3823
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BLDSHARED" >&5
3825$as_echo "$BLDSHARED" >&6; }
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker flags for shared libraries" >&5
3827$as_echo_n "checking linker flags for shared libraries... " >&6; }
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDSHFLAGS" >&5
3829$as_echo "$LDSHFLAGS" >&6; }
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flags for position-independent code" >&5
3831$as_echo_n "checking compiler flags for position-independent code... " >&6; }
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PICFLAGS" >&5
3833$as_echo "$PICFLAGS" >&6; }
3834fi
3835
3836#######################################################
3837# test whether building a shared library actually works
3838if test $BLDSHARED = true; then
3839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether building shared libraries actually works" >&5
3840$as_echo_n "checking whether building shared libraries actually works... " >&6; }
3841if ${ac_cv_shlib_works+:} false; then :
3842 $as_echo_n "(cached) " >&6
3843else
3844
3845 ac_cv_shlib_works=no
3846 # try building a trivial shared library
3847 if test "$PICSUFFIX" = "po"; then
3848 $CC $CPPFLAGS $CFLAGS $PICFLAGS -c -o shlib.po ${SAMBA_SOURCE}/../tests/shlib.c &&
3849 $CC $CPPFLAGS $CFLAGS `eval echo $LDSHFLAGS` -o "shlib.$SHLIBEXT" shlib.po &&
3850 ac_cv_shlib_works=yes
3851 else
3852 $CC $CPPFLAGS $CFLAGS $PICFLAGS -c -o shlib.$PICSUFFIX ${SAMBA_SOURCE}/../tests/shlib.c &&
3853 mv shlib.$PICSUFFIX shlib.po &&
3854 $CC $CPPFLAGS $CFLAGS `eval echo $LDSHFLAGS` -o "shlib.$SHLIBEXT" shlib.po &&
3855 ac_cv_shlib_works=yes
3856 fi
3857 rm -f "shlib.$SHLIBEXT" shlib.po
3858
3859fi
3860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_shlib_works" >&5
3861$as_echo "$ac_cv_shlib_works" >&6; }
3862if test $ac_cv_shlib_works = no; then
3863 BLDSHARED=false
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Did you forget to specify --with-samba-source=/path/to/samba?" >&5
3865$as_echo "$as_me: WARNING: Did you forget to specify --with-samba-source=/path/to/samba?" >&2;}
3866fi
3867fi
3868
3869
3870
3871
3872ac_config_files="$ac_config_files Makefile"
3873
3874cat >confcache <<\_ACEOF
3875# This file is a shell script that caches the results of configure
3876# tests run on this system so they can be shared between configure
3877# scripts and configure runs, see configure's option --config-cache.
3878# It is not useful on other systems. If it contains results you don't
3879# want to keep, you may remove or edit it.
3880#
3881# config.status only pays attention to the cache file if you give it
3882# the --recheck option to rerun configure.
3883#
3884# `ac_cv_env_foo' variables (set or unset) will be overridden when
3885# loading this file, other *unset* `ac_cv_foo' will be assigned the
3886# following values.
3887
3888_ACEOF
3889
3890# The following way of writing the cache mishandles newlines in values,
3891# but we know of no workaround that is simple, portable, and efficient.
3892# So, we kill variables containing newlines.
3893# Ultrix sh set writes to stderr and can't be redirected directly,
3894# and sets the high bit in the cache file unless we assign to the vars.
3895(
3896 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
3897 eval ac_val=\$$ac_var
3898 case $ac_val in #(
3899 *${as_nl}*)
3900 case $ac_var in #(
3901 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3902$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3903 esac
3904 case $ac_var in #(
3905 _ | IFS | as_nl) ;; #(
3906 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3907 *) { eval $ac_var=; unset $ac_var;} ;;
3908 esac ;;
3909 esac
3910 done
3911
3912 (set) 2>&1 |
3913 case $as_nl`(ac_space=' '; set) 2>&1` in #(
3914 *${as_nl}ac_space=\ *)
3915 # `set' does not quote correctly, so add quotes: double-quote
3916 # substitution turns \\\\ into \\, and sed turns \\ into \.
3917 sed -n \
3918 "s/'/'\\\\''/g;
3919 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3920 ;; #(
3921 *)
3922 # `set' quotes correctly as required by POSIX, so do not add quotes.
3923 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3924 ;;
3925 esac |
3926 sort
3927) |
3928 sed '
3929 /^ac_cv_env_/b end
3930 t clear
3931 :clear
3932 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3933 t end
3934 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3935 :end' >>confcache
3936if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
3937 if test -w "$cache_file"; then
3938 if test "x$cache_file" != "x/dev/null"; then
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
3940$as_echo "$as_me: updating cache $cache_file" >&6;}
3941 if test ! -f "$cache_file" || test -h "$cache_file"; then
3942 cat confcache >"$cache_file"
3943 else
3944 case $cache_file in #(
3945 */* | ?:*)
3946 mv -f confcache "$cache_file"$$ &&
3947 mv -f "$cache_file"$$ "$cache_file" ;; #(
3948 *)
3949 mv -f confcache "$cache_file" ;;
3950 esac
3951 fi
3952 fi
3953 else
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
3955$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
3956 fi
3957fi
3958rm -f confcache
3959
3960test "x$prefix" = xNONE && prefix=$ac_default_prefix
3961# Let make expand exec_prefix.
3962test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3963
3964DEFS=-DHAVE_CONFIG_H
3965
3966ac_libobjs=
3967ac_ltlibobjs=
3968U=
3969for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3970 # 1. Remove the extension, and $U if already installed.
3971 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
3972 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
3973 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
3974 # will be set to the directory where LIBOBJS objects are built.
3975 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
3976 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
3977done
3978LIBOBJS=$ac_libobjs
3979
3980LTLIBOBJS=$ac_ltlibobjs
3981
3982
3983
3984: "${CONFIG_STATUS=./config.status}"
3985ac_write_fail=0
3986ac_clean_files_save=$ac_clean_files
3987ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3988{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
3989$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
3990as_write_fail=0
3991cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
3992#! $SHELL
3993# Generated by $as_me.
3994# Run this file to recreate the current configuration.
3995# Compiler output produced by configure, useful for debugging
3996# configure, is in config.log if it exists.
3997
3998debug=false
3999ac_cs_recheck=false
4000ac_cs_silent=false
4001
4002SHELL=\${CONFIG_SHELL-$SHELL}
4003export SHELL
4004_ASEOF
4005cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
4006## -------------------- ##
4007## M4sh Initialization. ##
4008## -------------------- ##
4009
4010# Be more Bourne compatible
4011DUALCASE=1; export DUALCASE # for MKS sh
4012if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
4013 emulate sh
4014 NULLCMD=:
4015 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4016 # is contrary to our usage. Disable this feature.
4017 alias -g '${1+"$@"}'='"$@"'
4018 setopt NO_GLOB_SUBST
4019else
4020 case `(set -o) 2>/dev/null` in #(
4021 *posix*) :
4022 set -o posix ;; #(
4023 *) :
4024 ;;
4025esac
4026fi
4027
4028
4029as_nl='
4030'
4031export as_nl
4032# Printing a long string crashes Solaris 7 /usr/bin/printf.
4033as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4034as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4035as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4036# Prefer a ksh shell builtin over an external printf program on Solaris,
4037# but without wasting forks for bash or zsh.
4038if test -z "$BASH_VERSION$ZSH_VERSION" \
4039 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4040 as_echo='print -r --'
4041 as_echo_n='print -rn --'
4042elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
4043 as_echo='printf %s\n'
4044 as_echo_n='printf %s'
4045else
4046 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
4047 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
4048 as_echo_n='/usr/ucb/echo -n'
4049 else
4050 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
4051 as_echo_n_body='eval
4052 arg=$1;
4053 case $arg in #(
4054 *"$as_nl"*)
4055 expr "X$arg" : "X\\(.*\\)$as_nl";
4056 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
4057 esac;
4058 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
4059 '
4060 export as_echo_n_body
4061 as_echo_n='sh -c $as_echo_n_body as_echo'
4062 fi
4063 export as_echo_body
4064 as_echo='sh -c $as_echo_body as_echo'
4065fi
4066
4067# The user is always right.
4068if test "${PATH_SEPARATOR+set}" != set; then
4069 PATH_SEPARATOR=:
4070 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4071 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4072 PATH_SEPARATOR=';'
4073 }
4074fi
4075
4076
4077# IFS
4078# We need space, tab and new line, in precisely that order. Quoting is
4079# there to prevent editors from complaining about space-tab.
4080# (If _AS_PATH_WALK were called with IFS unset, it would disable word
4081# splitting by setting IFS to empty value.)
4082IFS=" "" $as_nl"
4083
4084# Find who we are. Look in the path if we contain no directory separator.
4085as_myself=
4086case $0 in #((
4087 *[\\/]* ) as_myself=$0 ;;
4088 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4089for as_dir in $PATH
4090do
4091 IFS=$as_save_IFS
4092 test -z "$as_dir" && as_dir=.
4093 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4094 done
4095IFS=$as_save_IFS
4096
4097 ;;
4098esac
4099# We did not find ourselves, most probably we were run as `sh COMMAND'
4100# in which case we are not to be found in the path.
4101if test "x$as_myself" = x; then
4102 as_myself=$0
4103fi
4104if test ! -f "$as_myself"; then
4105 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4106 exit 1
4107fi
4108
4109# Unset variables that we do not need and which cause bugs (e.g. in
4110# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
4111# suppresses any "Segmentation fault" message there. '((' could
4112# trigger a bug in pdksh 5.2.14.
4113for as_var in BASH_ENV ENV MAIL MAILPATH
4114do eval test x\${$as_var+set} = xset \
4115 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
4116done
4117PS1='$ '
4118PS2='> '
4119PS4='+ '
4120
4121# NLS nuisances.
4122LC_ALL=C
4123export LC_ALL
4124LANGUAGE=C
4125export LANGUAGE
4126
4127# CDPATH.
4128(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4129
4130
4131# as_fn_error STATUS ERROR [LINENO LOG_FD]
4132# ----------------------------------------
4133# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4134# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4135# script with STATUS, using 1 if that was 0.
4136as_fn_error ()
4137{
4138 as_status=$1; test $as_status -eq 0 && as_status=1
4139 if test "$4"; then
4140 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
4141 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
4142 fi
4143 $as_echo "$as_me: error: $2" >&2
4144 as_fn_exit $as_status
4145} # as_fn_error
4146
4147
4148# as_fn_set_status STATUS
4149# -----------------------
4150# Set $? to STATUS, without forking.
4151as_fn_set_status ()
4152{
4153 return $1
4154} # as_fn_set_status
4155
4156# as_fn_exit STATUS
4157# -----------------
4158# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
4159as_fn_exit ()
4160{
4161 set +e
4162 as_fn_set_status $1
4163 exit $1
4164} # as_fn_exit
4165
4166# as_fn_unset VAR
4167# ---------------
4168# Portably unset VAR.
4169as_fn_unset ()
4170{
4171 { eval $1=; unset $1;}
4172}
4173as_unset=as_fn_unset
4174# as_fn_append VAR VALUE
4175# ----------------------
4176# Append the text in VALUE to the end of the definition contained in VAR. Take
4177# advantage of any shell optimizations that allow amortized linear growth over
4178# repeated appends, instead of the typical quadratic growth present in naive
4179# implementations.
4180if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
4181 eval 'as_fn_append ()
4182 {
4183 eval $1+=\$2
4184 }'
4185else
4186 as_fn_append ()
4187 {
4188 eval $1=\$$1\$2
4189 }
4190fi # as_fn_append
4191
4192# as_fn_arith ARG...
4193# ------------------
4194# Perform arithmetic evaluation on the ARGs, and store the result in the
4195# global $as_val. Take advantage of shells that can avoid forks. The arguments
4196# must be portable across $(()) and expr.
4197if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
4198 eval 'as_fn_arith ()
4199 {
4200 as_val=$(( $* ))
4201 }'
4202else
4203 as_fn_arith ()
4204 {
4205 as_val=`expr "$@" || test $? -eq 1`
4206 }
4207fi # as_fn_arith
4208
4209
4210if expr a : '\(a\)' >/dev/null 2>&1 &&
4211 test "X`expr 00001 : '.*\(...\)'`" = X001; then
4212 as_expr=expr
4213else
4214 as_expr=false
4215fi
4216
4217if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4218 as_basename=basename
4219else
4220 as_basename=false
4221fi
4222
4223if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4224 as_dirname=dirname
4225else
4226 as_dirname=false
4227fi
4228
4229as_me=`$as_basename -- "$0" ||
4230$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4231 X"$0" : 'X\(//\)$' \| \
4232 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4233$as_echo X/"$0" |
4234 sed '/^.*\/\([^/][^/]*\)\/*$/{
4235 s//\1/
4236 q
4237 }
4238 /^X\/\(\/\/\)$/{
4239 s//\1/
4240 q
4241 }
4242 /^X\/\(\/\).*/{
4243 s//\1/
4244 q
4245 }
4246 s/.*/./; q'`
4247
4248# Avoid depending upon Character Ranges.
4249as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4250as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4251as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4252as_cr_digits='0123456789'
4253as_cr_alnum=$as_cr_Letters$as_cr_digits
4254
4255ECHO_C= ECHO_N= ECHO_T=
4256case `echo -n x` in #(((((
4257-n*)
4258 case `echo 'xy\c'` in
4259 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
4260 xy) ECHO_C='\c';;
4261 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
4262 ECHO_T=' ';;
4263 esac;;
4264*)
4265 ECHO_N='-n';;
4266esac
4267
4268rm -f conf$$ conf$$.exe conf$$.file
4269if test -d conf$$.dir; then
4270 rm -f conf$$.dir/conf$$.file
4271else
4272 rm -f conf$$.dir
4273 mkdir conf$$.dir 2>/dev/null
4274fi
4275if (echo >conf$$.file) 2>/dev/null; then
4276 if ln -s conf$$.file conf$$ 2>/dev/null; then
4277 as_ln_s='ln -s'
4278 # ... but there are two gotchas:
4279 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4280 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4281 # In both cases, we have to default to `cp -p'.
4282 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
4283 as_ln_s='cp -p'
4284 elif ln conf$$.file conf$$ 2>/dev/null; then
4285 as_ln_s=ln
4286 else
4287 as_ln_s='cp -p'
4288 fi
4289else
4290 as_ln_s='cp -p'
4291fi
4292rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
4293rmdir conf$$.dir 2>/dev/null
4294
4295
4296# as_fn_mkdir_p
4297# -------------
4298# Create "$as_dir" as a directory, including parents if necessary.
4299as_fn_mkdir_p ()
4300{
4301
4302 case $as_dir in #(
4303 -*) as_dir=./$as_dir;;
4304 esac
4305 test -d "$as_dir" || eval $as_mkdir_p || {
4306 as_dirs=
4307 while :; do
4308 case $as_dir in #(
4309 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
4310 *) as_qdir=$as_dir;;
4311 esac
4312 as_dirs="'$as_qdir' $as_dirs"
4313 as_dir=`$as_dirname -- "$as_dir" ||
4314$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4315 X"$as_dir" : 'X\(//\)[^/]' \| \
4316 X"$as_dir" : 'X\(//\)$' \| \
4317 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4318$as_echo X"$as_dir" |
4319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4320 s//\1/
4321 q
4322 }
4323 /^X\(\/\/\)[^/].*/{
4324 s//\1/
4325 q
4326 }
4327 /^X\(\/\/\)$/{
4328 s//\1/
4329 q
4330 }
4331 /^X\(\/\).*/{
4332 s//\1/
4333 q
4334 }
4335 s/.*/./; q'`
4336 test -d "$as_dir" && break
4337 done
4338 test -z "$as_dirs" || eval "mkdir $as_dirs"
4339 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
4340
4341
4342} # as_fn_mkdir_p
4343if mkdir -p . 2>/dev/null; then
4344 as_mkdir_p='mkdir -p "$as_dir"'
4345else
4346 test -d ./-p && rmdir ./-p
4347 as_mkdir_p=false
4348fi
4349
4350if test -x / >/dev/null 2>&1; then
4351 as_test_x='test -x'
4352else
4353 if ls -dL / >/dev/null 2>&1; then
4354 as_ls_L_option=L
4355 else
4356 as_ls_L_option=
4357 fi
4358 as_test_x='
4359 eval sh -c '\''
4360 if test -d "$1"; then
4361 test -d "$1/.";
4362 else
4363 case $1 in #(
4364 -*)set "./$1";;
4365 esac;
4366 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
4367 ???[sx]*):;;*)false;;esac;fi
4368 '\'' sh
4369 '
4370fi
4371as_executable_p=$as_test_x
4372
4373# Sed expression to map a string onto a valid CPP name.
4374as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4375
4376# Sed expression to map a string onto a valid variable name.
4377as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4378
4379
4380exec 6>&1
4381## ----------------------------------- ##
4382## Main body of $CONFIG_STATUS script. ##
4383## ----------------------------------- ##
4384_ASEOF
4385test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
4386
4387cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4388# Save the log message, to keep $0 and so on meaningful, and to
4389# report actual input values of CONFIG_FILES etc. instead of their
4390# values after options handling.
4391ac_log="
4392This file was extended by $as_me, which was
4393generated by GNU Autoconf 2.68. Invocation command line was
4394
4395 CONFIG_FILES = $CONFIG_FILES
4396 CONFIG_HEADERS = $CONFIG_HEADERS
4397 CONFIG_LINKS = $CONFIG_LINKS
4398 CONFIG_COMMANDS = $CONFIG_COMMANDS
4399 $ $0 $@
4400
4401on `(hostname || uname -n) 2>/dev/null | sed 1q`
4402"
4403
4404_ACEOF
4405
4406case $ac_config_files in *"
4407"*) set x $ac_config_files; shift; ac_config_files=$*;;
4408esac
4409
4410case $ac_config_headers in *"
4411"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
4412esac
4413
4414
4415cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4416# Files that config.status was made for.
4417config_files="$ac_config_files"
4418config_headers="$ac_config_headers"
4419
4420_ACEOF
4421
4422cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4423ac_cs_usage="\
4424\`$as_me' instantiates files and other configuration actions
4425from templates according to the current configuration. Unless the files
4426and actions are specified as TAGs, all are instantiated by default.
4427
4428Usage: $0 [OPTION]... [TAG]...
4429
4430 -h, --help print this help, then exit
4431 -V, --version print version number and configuration settings, then exit
4432 --config print configuration, then exit
4433 -q, --quiet, --silent
4434 do not print progress messages
4435 -d, --debug don't remove temporary files
4436 --recheck update $as_me by reconfiguring in the same conditions
4437 --file=FILE[:TEMPLATE]
4438 instantiate the configuration file FILE
4439 --header=FILE[:TEMPLATE]
4440 instantiate the configuration header FILE
4441
4442Configuration files:
4443$config_files
4444
4445Configuration headers:
4446$config_headers
4447
4448Report bugs to the package provider."
4449
4450_ACEOF
4451cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4452ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
4453ac_cs_version="\\
4454config.status
4455configured by $0, generated by GNU Autoconf 2.68,
4456 with options \\"\$ac_cs_config\\"
4457
4458Copyright (C) 2010 Free Software Foundation, Inc.
4459This config.status script is free software; the Free Software Foundation
4460gives unlimited permission to copy, distribute and modify it."
4461
4462ac_pwd='$ac_pwd'
4463srcdir='$srcdir'
4464INSTALL='$INSTALL'
4465test -n "\$AWK" || AWK=awk
4466_ACEOF
4467
4468cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4469# The default lists apply if the user does not specify any file.
4470ac_need_defaults=:
4471while test $# != 0
4472do
4473 case $1 in
4474 --*=?*)
4475 ac_option=`expr "X$1" : 'X\([^=]*\)='`
4476 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
4477 ac_shift=:
4478 ;;
4479 --*=)
4480 ac_option=`expr "X$1" : 'X\([^=]*\)='`
4481 ac_optarg=
4482 ac_shift=:
4483 ;;
4484 *)
4485 ac_option=$1
4486 ac_optarg=$2
4487 ac_shift=shift
4488 ;;
4489 esac
4490
4491 case $ac_option in
4492 # Handling of the options.
4493 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4494 ac_cs_recheck=: ;;
4495 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
4496 $as_echo "$ac_cs_version"; exit ;;
4497 --config | --confi | --conf | --con | --co | --c )
4498 $as_echo "$ac_cs_config"; exit ;;
4499 --debug | --debu | --deb | --de | --d | -d )
4500 debug=: ;;
4501 --file | --fil | --fi | --f )
4502 $ac_shift
4503 case $ac_optarg in
4504 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4505 '') as_fn_error $? "missing file argument" ;;
4506 esac
4507 as_fn_append CONFIG_FILES " '$ac_optarg'"
4508 ac_need_defaults=false;;
4509 --header | --heade | --head | --hea )
4510 $ac_shift
4511 case $ac_optarg in
4512 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4513 esac
4514 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
4515 ac_need_defaults=false;;
4516 --he | --h)
4517 # Conflict between --help and --header
4518 as_fn_error $? "ambiguous option: \`$1'
4519Try \`$0 --help' for more information.";;
4520 --help | --hel | -h )
4521 $as_echo "$ac_cs_usage"; exit ;;
4522 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4523 | -silent | --silent | --silen | --sile | --sil | --si | --s)
4524 ac_cs_silent=: ;;
4525
4526 # This is an error.
4527 -*) as_fn_error $? "unrecognized option: \`$1'
4528Try \`$0 --help' for more information." ;;
4529
4530 *) as_fn_append ac_config_targets " $1"
4531 ac_need_defaults=false ;;
4532
4533 esac
4534 shift
4535done
4536
4537ac_configure_extra_args=
4538
4539if $ac_cs_silent; then
4540 exec 6>/dev/null
4541 ac_configure_extra_args="$ac_configure_extra_args --silent"
4542fi
4543
4544_ACEOF
4545cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4546if \$ac_cs_recheck; then
4547 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4548 shift
4549 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
4550 CONFIG_SHELL='$SHELL'
4551 export CONFIG_SHELL
4552 exec "\$@"
4553fi
4554
4555_ACEOF
4556cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4557exec 5>>config.log
4558{
4559 echo
4560 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4561## Running $as_me. ##
4562_ASBOX
4563 $as_echo "$ac_log"
4564} >&5
4565
4566_ACEOF
4567cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4568_ACEOF
4569
4570cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4571
4572# Handling of arguments.
4573for ac_config_target in $ac_config_targets
4574do
4575 case $ac_config_target in
4576 "module_config.h") CONFIG_HEADERS="$CONFIG_HEADERS module_config.h" ;;
4577 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4578
4579 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
4580 esac
4581done
4582
4583
4584# If the user did not use the arguments to specify the items to instantiate,
4585# then the envvar interface is used. Set only those that are not.
4586# We use the long form for the default assignment because of an extremely
4587# bizarre bug on SunOS 4.1.3.
4588if $ac_need_defaults; then
4589 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4590 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4591fi
4592
4593# Have a temporary directory for convenience. Make it in the build tree
4594# simply because there is no reason against having it here, and in addition,
4595# creating and moving files from /tmp can sometimes cause problems.
4596# Hook for its removal unless debugging.
4597# Note that there is a small window in which the directory will not be cleaned:
4598# after its creation but before its name has been assigned to `$tmp'.
4599$debug ||
4600{
4601 tmp= ac_tmp=
4602 trap 'exit_status=$?
4603 : "${ac_tmp:=$tmp}"
4604 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
4605' 0
4606 trap 'as_fn_exit 1' 1 2 13 15
4607}
4608# Create a (secure) tmp directory for tmp files.
4609
4610{
4611 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
4612 test -d "$tmp"
4613} ||
4614{
4615 tmp=./conf$$-$RANDOM
4616 (umask 077 && mkdir "$tmp")
4617} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
4618ac_tmp=$tmp
4619
4620# Set up the scripts for CONFIG_FILES section.
4621# No need to generate them if there are no CONFIG_FILES.
4622# This happens for instance with `./config.status config.h'.
4623if test -n "$CONFIG_FILES"; then
4624
4625
4626ac_cr=`echo X | tr X '\015'`
4627# On cygwin, bash can eat \r inside `` if the user requested igncr.
4628# But we know of no other shell where ac_cr would be empty at this
4629# point, so we can use a bashism as a fallback.
4630if test "x$ac_cr" = x; then
4631 eval ac_cr=\$\'\\r\'
4632fi
4633ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
4634if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
4635 ac_cs_awk_cr='\\r'
4636else
4637 ac_cs_awk_cr=$ac_cr
4638fi
4639
4640echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
4641_ACEOF
4642
4643
4644{
4645 echo "cat >conf$$subs.awk <<_ACEOF" &&
4646 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
4647 echo "_ACEOF"
4648} >conf$$subs.sh ||
4649 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4650ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
4651ac_delim='%!_!# '
4652for ac_last_try in false false false false false :; do
4653 . ./conf$$subs.sh ||
4654 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4655
4656 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
4657 if test $ac_delim_n = $ac_delim_num; then
4658 break
4659 elif $ac_last_try; then
4660 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
4661 else
4662 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4663 fi
4664done
4665rm -f conf$$subs.sh
4666
4667cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4668cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
4669_ACEOF
4670sed -n '
4671h
4672s/^/S["/; s/!.*/"]=/
4673p
4674g
4675s/^[^!]*!//
4676:repl
4677t repl
4678s/'"$ac_delim"'$//
4679t delim
4680:nl
4681h
4682s/\(.\{148\}\)..*/\1/
4683t more1
4684s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
4685p
4686n
4687b repl
4688:more1
4689s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4690p
4691g
4692s/.\{148\}//
4693t nl
4694:delim
4695h
4696s/\(.\{148\}\)..*/\1/
4697t more2
4698s/["\\]/\\&/g; s/^/"/; s/$/"/
4699p
4700b
4701:more2
4702s/["\\]/\\&/g; s/^/"/; s/$/"\\/
4703p
4704g
4705s/.\{148\}//
4706t delim
4707' <conf$$subs.awk | sed '
4708/^[^""]/{
4709 N
4710 s/\n//
4711}
4712' >>$CONFIG_STATUS || ac_write_fail=1
4713rm -f conf$$subs.awk
4714cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4715_ACAWK
4716cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
4717 for (key in S) S_is_set[key] = 1
4718 FS = ""
4719
4720}
4721{
4722 line = $ 0
4723 nfields = split(line, field, "@")
4724 substed = 0
4725 len = length(field[1])
4726 for (i = 2; i < nfields; i++) {
4727 key = field[i]
4728 keylen = length(key)
4729 if (S_is_set[key]) {
4730 value = S[key]
4731 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
4732 len += length(value) + length(field[++i])
4733 substed = 1
4734 } else
4735 len += 1 + keylen
4736 }
4737
4738 print line
4739}
4740
4741_ACAWK
4742_ACEOF
4743cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4744if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
4745 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
4746else
4747 cat
4748fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
4749 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
4750_ACEOF
4751
4752# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
4753# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
4754# trailing colons and then remove the whole line if VPATH becomes empty
4755# (actually we leave an empty line to preserve line numbers).
4756if test "x$srcdir" = x.; then
4757 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
4758h
4759s///
4760s/^/:/
4761s/[ ]*$/:/
4762s/:\$(srcdir):/:/g
4763s/:\${srcdir}:/:/g
4764s/:@srcdir@:/:/g
4765s/^:*//
4766s/:*$//
4767x
4768s/\(=[ ]*\).*/\1/
4769G
4770s/\n//
4771s/^[^=]*=[ ]*$//
4772}'
4773fi
4774
4775cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4776fi # test -n "$CONFIG_FILES"
4777
4778# Set up the scripts for CONFIG_HEADERS section.
4779# No need to generate them if there are no CONFIG_HEADERS.
4780# This happens for instance with `./config.status Makefile'.
4781if test -n "$CONFIG_HEADERS"; then
4782cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
4783BEGIN {
4784_ACEOF
4785
4786# Transform confdefs.h into an awk script `defines.awk', embedded as
4787# here-document in config.status, that substitutes the proper values into
4788# config.h.in to produce config.h.
4789
4790# Create a delimiter string that does not exist in confdefs.h, to ease
4791# handling of long lines.
4792ac_delim='%!_!# '
4793for ac_last_try in false false :; do
4794 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
4795 if test -z "$ac_tt"; then
4796 break
4797 elif $ac_last_try; then
4798 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
4799 else
4800 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4801 fi
4802done
4803
4804# For the awk script, D is an array of macro values keyed by name,
4805# likewise P contains macro parameters if any. Preserve backslash
4806# newline sequences.
4807
4808ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
4809sed -n '
4810s/.\{148\}/&'"$ac_delim"'/g
4811t rset
4812:rset
4813s/^[ ]*#[ ]*define[ ][ ]*/ /
4814t def
4815d
4816:def
4817s/\\$//
4818t bsnl
4819s/["\\]/\\&/g
4820s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
4821D["\1"]=" \3"/p
4822s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
4823d
4824:bsnl
4825s/["\\]/\\&/g
4826s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
4827D["\1"]=" \3\\\\\\n"\\/p
4828t cont
4829s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
4830t cont
4831d
4832:cont
4833n
4834s/.\{148\}/&'"$ac_delim"'/g
4835t clear
4836:clear
4837s/\\$//
4838t bsnlc
4839s/["\\]/\\&/g; s/^/"/; s/$/"/p
4840d
4841:bsnlc
4842s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
4843b cont
4844' <confdefs.h | sed '
4845s/'"$ac_delim"'/"\\\
4846"/g' >>$CONFIG_STATUS || ac_write_fail=1
4847
4848cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4849 for (key in D) D_is_set[key] = 1
4850 FS = ""
4851}
4852/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
4853 line = \$ 0
4854 split(line, arg, " ")
4855 if (arg[1] == "#") {
4856 defundef = arg[2]
4857 mac1 = arg[3]
4858 } else {
4859 defundef = substr(arg[1], 2)
4860 mac1 = arg[2]
4861 }
4862 split(mac1, mac2, "(") #)
4863 macro = mac2[1]
4864 prefix = substr(line, 1, index(line, defundef) - 1)
4865 if (D_is_set[macro]) {
4866 # Preserve the white space surrounding the "#".
4867 print prefix "define", macro P[macro] D[macro]
4868 next
4869 } else {
4870 # Replace #undef with comments. This is necessary, for example,
4871 # in the case of _POSIX_SOURCE, which is predefined and required
4872 # on some systems where configure will not decide to define it.
4873 if (defundef == "undef") {
4874 print "/*", prefix defundef, macro, "*/"
4875 next
4876 }
4877 }
4878}
4879{ print }
4880_ACAWK
4881_ACEOF
4882cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4883 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
4884fi # test -n "$CONFIG_HEADERS"
4885
4886
4887eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
4888shift
4889for ac_tag
4890do
4891 case $ac_tag in
4892 :[FHLC]) ac_mode=$ac_tag; continue;;
4893 esac
4894 case $ac_mode$ac_tag in
4895 :[FHL]*:*);;
4896 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
4897 :[FH]-) ac_tag=-:-;;
4898 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
4899 esac
4900 ac_save_IFS=$IFS
4901 IFS=:
4902 set x $ac_tag
4903 IFS=$ac_save_IFS
4904 shift
4905 ac_file=$1
4906 shift
4907
4908 case $ac_mode in
4909 :L) ac_source=$1;;
4910 :[FH])
4911 ac_file_inputs=
4912 for ac_f
4913 do
4914 case $ac_f in
4915 -) ac_f="$ac_tmp/stdin";;
4916 *) # Look for the file first in the build tree, then in the source tree
4917 # (if the path is not absolute). The absolute path cannot be DOS-style,
4918 # because $ac_f cannot contain `:'.
4919 test -f "$ac_f" ||
4920 case $ac_f in
4921 [\\/$]*) false;;
4922 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
4923 esac ||
4924 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
4925 esac
4926 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
4927 as_fn_append ac_file_inputs " '$ac_f'"
4928 done
4929
4930 # Let's still pretend it is `configure' which instantiates (i.e., don't
4931 # use $as_me), people would be surprised to read:
4932 # /* config.h. Generated by config.status. */
4933 configure_input='Generated from '`
4934 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
4935 `' by configure.'
4936 if test x"$ac_file" != x-; then
4937 configure_input="$ac_file. $configure_input"
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
4939$as_echo "$as_me: creating $ac_file" >&6;}
4940 fi
4941 # Neutralize special characters interpreted by sed in replacement strings.
4942 case $configure_input in #(
4943 *\&* | *\|* | *\\* )
4944 ac_sed_conf_input=`$as_echo "$configure_input" |
4945 sed 's/[\\\\&|]/\\\\&/g'`;; #(
4946 *) ac_sed_conf_input=$configure_input;;
4947 esac
4948
4949 case $ac_tag in
4950 *:-:* | *:-) cat >"$ac_tmp/stdin" \
4951 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
4952 esac
4953 ;;
4954 esac
4955
4956 ac_dir=`$as_dirname -- "$ac_file" ||
4957$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4958 X"$ac_file" : 'X\(//\)[^/]' \| \
4959 X"$ac_file" : 'X\(//\)$' \| \
4960 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
4961$as_echo X"$ac_file" |
4962 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4963 s//\1/
4964 q
4965 }
4966 /^X\(\/\/\)[^/].*/{
4967 s//\1/
4968 q
4969 }
4970 /^X\(\/\/\)$/{
4971 s//\1/
4972 q
4973 }
4974 /^X\(\/\).*/{
4975 s//\1/
4976 q
4977 }
4978 s/.*/./; q'`
4979 as_dir="$ac_dir"; as_fn_mkdir_p
4980 ac_builddir=.
4981
4982case "$ac_dir" in
4983.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
4984*)
4985 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
4986 # A ".." for each directory in $ac_dir_suffix.
4987 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
4988 case $ac_top_builddir_sub in
4989 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
4990 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
4991 esac ;;
4992esac
4993ac_abs_top_builddir=$ac_pwd
4994ac_abs_builddir=$ac_pwd$ac_dir_suffix
4995# for backward compatibility:
4996ac_top_builddir=$ac_top_build_prefix
4997
4998case $srcdir in
4999 .) # We are building in place.
5000 ac_srcdir=.
5001 ac_top_srcdir=$ac_top_builddir_sub
5002 ac_abs_top_srcdir=$ac_pwd ;;
5003 [\\/]* | ?:[\\/]* ) # Absolute name.
5004 ac_srcdir=$srcdir$ac_dir_suffix;
5005 ac_top_srcdir=$srcdir
5006 ac_abs_top_srcdir=$srcdir ;;
5007 *) # Relative name.
5008 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5009 ac_top_srcdir=$ac_top_build_prefix$srcdir
5010 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5011esac
5012ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5013
5014
5015 case $ac_mode in
5016 :F)
5017 #
5018 # CONFIG_FILE
5019 #
5020
5021 case $INSTALL in
5022 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5023 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
5024 esac
5025_ACEOF
5026
5027cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5028# If the template does not know about datarootdir, expand it.
5029# FIXME: This hack should be removed a few years after 2.60.
5030ac_datarootdir_hack=; ac_datarootdir_seen=
5031ac_sed_dataroot='
5032/datarootdir/ {
5033 p
5034 q
5035}
5036/@datadir@/p
5037/@docdir@/p
5038/@infodir@/p
5039/@localedir@/p
5040/@mandir@/p'
5041case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5042*datarootdir*) ac_datarootdir_seen=yes;;
5043*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5045$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5046_ACEOF
5047cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5048 ac_datarootdir_hack='
5049 s&@datadir@&$datadir&g
5050 s&@docdir@&$docdir&g
5051 s&@infodir@&$infodir&g
5052 s&@localedir@&$localedir&g
5053 s&@mandir@&$mandir&g
5054 s&\\\${datarootdir}&$datarootdir&g' ;;
5055esac
5056_ACEOF
5057
5058# Neutralize VPATH when `$srcdir' = `.'.
5059# Shell code in configure.ac might set extrasub.
5060# FIXME: do we really want to maintain this feature?
5061cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5062ac_sed_extra="$ac_vpsub
5063$extrasub
5064_ACEOF
5065cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5066:t
5067/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5068s|@configure_input@|$ac_sed_conf_input|;t t
5069s&@top_builddir@&$ac_top_builddir_sub&;t t
5070s&@top_build_prefix@&$ac_top_build_prefix&;t t
5071s&@srcdir@&$ac_srcdir&;t t
5072s&@abs_srcdir@&$ac_abs_srcdir&;t t
5073s&@top_srcdir@&$ac_top_srcdir&;t t
5074s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
5075s&@builddir@&$ac_builddir&;t t
5076s&@abs_builddir@&$ac_abs_builddir&;t t
5077s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
5078s&@INSTALL@&$ac_INSTALL&;t t
5079$ac_datarootdir_hack
5080"
5081eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
5082 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5083
5084test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5085 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
5086 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
5087 "$ac_tmp/out"`; test -z "$ac_out"; } &&
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5089which seems to be undefined. Please make sure it is defined" >&5
5090$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5091which seems to be undefined. Please make sure it is defined" >&2;}
5092
5093 rm -f "$ac_tmp/stdin"
5094 case $ac_file in
5095 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
5096 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
5097 esac \
5098 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5099 ;;
5100 :H)
5101 #
5102 # CONFIG_HEADER
5103 #
5104 if test x"$ac_file" != x-; then
5105 {
5106 $as_echo "/* $configure_input */" \
5107 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
5108 } >"$ac_tmp/config.h" \
5109 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5110 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
5112$as_echo "$as_me: $ac_file is unchanged" >&6;}
5113 else
5114 rm -f "$ac_file"
5115 mv "$ac_tmp/config.h" "$ac_file" \
5116 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
5117 fi
5118 else
5119 $as_echo "/* $configure_input */" \
5120 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
5121 || as_fn_error $? "could not create -" "$LINENO" 5
5122 fi
5123 ;;
5124
5125
5126 esac
5127
5128done # for ac_tag
5129
5130
5131as_fn_exit 0
5132_ACEOF
5133ac_clean_files=$ac_clean_files_save
5134
5135test $ac_write_fail = 0 ||
5136 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
5137
5138
5139# configure is writing to config.log, and then calls config.status.
5140# config.status does its own redirection, appending to config.log.
5141# Unfortunately, on DOS this fails, as config.log is still kept open
5142# by configure, so config.status won't be able to write to it; its
5143# output is simply discarded. So we exec the FD to /dev/null,
5144# effectively closing config.log, so it can be properly (re)opened and
5145# appended to by config.status. When coming back to configure, we
5146# need to make the FD available again.
5147if test "$no_create" != yes; then
5148 ac_cs_success=:
5149 ac_config_status_args=
5150 test "$silent" = yes &&
5151 ac_config_status_args="$ac_config_status_args --quiet"
5152 exec 5>/dev/null
5153 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5154 exec 5>>config.log
5155 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5156 # would make configure fail if this is the last instruction.
5157 $ac_cs_success || as_fn_exit 1
5158fi
5159if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
5161$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
5162fi
5163
Note: See TracBrowser for help on using the repository browser.