2 # From configure.in Revision: 1.9.4.1 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59.
6 # Copyright (C) 2003 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 DUALCASE=1; export DUALCASE # for MKS sh
25 # Support unset when possible.
26 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
33 # Work around bugs in pre-3.0 UWIN ksh.
34 $as_unset ENV MAIL MAILPATH
41 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
42 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
46 eval $as_var=C; export $as_var
52 # Required to use basename.
53 if expr a : '\(a\)' >/dev/null 2>&1; then
59 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
66 # Name of the executable.
67 as_me=`$as_basename "$0" ||
68 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
69 X"$0" : 'X\(//\)$' \| \
70 X"$0" : 'X\(/\)$' \| \
71 . : '\(.\)' 2>/dev/null ||
73 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
74 /^X\/\(\/\/\)$/{ s//\1/; q; }
75 /^X\/\(\/\).*/{ s//\1/; q; }
79 # PATH needs CR, and LINENO needs CR and PATH.
80 # Avoid depending upon Character Ranges.
81 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
82 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
83 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
84 as_cr_digits='0123456789'
85 as_cr_alnum=$as_cr_Letters$as_cr_digits
87 # The user is always right.
88 if test "${PATH_SEPARATOR+set}" != set; then
89 echo "#! /bin/sh" >conf$$.sh
90 echo "exit 0" >>conf$$.sh
92 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
103 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
104 test "x$as_lineno_1" != "x$as_lineno_2" &&
105 test "x$as_lineno_3" = "x$as_lineno_2" || {
106 # Find who we are. Look in the path if we contain no path at all
109 *[\\/]* ) as_myself=$0 ;;
110 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
114 test -z "$as_dir" && as_dir=.
115 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
120 # We did not find ourselves, most probably we were run as `sh COMMAND'
121 # in which case we are not to be found in the path.
122 if test "x$as_myself" = x; then
125 if test ! -f "$as_myself"; then
126 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
127 { (exit 1); exit 1; }; }
129 case $CONFIG_SHELL in
131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
132 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135 test -z "$as_dir" && as_dir=.
136 for as_base in sh bash ksh sh5; do
139 if ("$as_dir/$as_base" -c '
142 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
143 test "x$as_lineno_1" != "x$as_lineno_2" &&
144 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
145 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
146 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
147 CONFIG_SHELL=$as_dir/$as_base
149 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
158 # uniformly replaced by the line number. The first 'sed' inserts a
159 # line-number line before each line; the second 'sed' does the real
160 # work. The second script uses 'N' to pair each line-number line
161 # with the numbered line, and appends trailing '-' during
162 # substitution so that $LINENO is not a special case at line end.
163 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
164 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
165 sed '=' <$as_myself |
170 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173 s,^['$as_cr_digits']*\n,,
175 chmod +x $as_me.lineno ||
176 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
177 { (exit 1); exit 1; }; }
179 # Don't try to exec as it changes $[0], causing all sort of problems
180 # (the dirname of $[0] is not the place where we might find the
181 # original and so on. Autoconf is especially sensible to this).
183 # Exit status is that of the last command.
188 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
189 *c*,-n*) ECHO_N= ECHO_C='
191 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
192 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
195 if expr a : '\(a\)' >/dev/null 2>&1; then
201 rm -f conf$$ conf$$.exe conf$$.file
203 if ln -s conf$$.file conf$$ 2>/dev/null; then
204 # We could just check for DJGPP; but this test a) works b) is more generic
205 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
206 if test -f conf$$.exe; then
207 # Don't use ln at all; we don't have any links
212 elif ln conf$$.file conf$$ 2>/dev/null; then
217 rm -f conf$$ conf$$.exe conf$$.file
219 if mkdir -p . 2>/dev/null; then
222 test -d ./-p && rmdir ./-p
226 as_executable_p="test -f"
228 # Sed expression to map a string onto a valid CPP name.
229 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231 # Sed expression to map a string onto a valid variable name.
232 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
236 # We need space, tab and new line, in precisely that order.
246 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
247 # so uname gets run too.
248 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
255 ac_default_prefix=/usr/local
256 ac_config_libobj_dir=.
261 SHELL=${CONFIG_SHELL-/bin/sh}
263 # Maximum number of lines to put in a shell here document.
264 # This variable seems obsolete. It should probably be removed, and
265 # only ac_max_sed_lines should be used.
266 : ${ac_max_here_lines=38}
268 # Identity of this package.
275 ac_unique_file="sql_mysql.c"
276 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT MYSQL_CONFIG sql_mysql_ldflags sql_mysql_cflags targetname LIBOBJS LTLIBOBJS'
279 # Initialize some variables set by options.
281 ac_init_version=false
282 # The variables have the same names as the options, with
283 # dashes changed to underlines.
291 program_transform_name=s,x,x,
299 # Installation directory options.
300 # These are left unexpanded so users can "make install exec_prefix=/foo"
301 # and all the variables that are supposed to be based on exec_prefix
302 # by default will actually change.
303 # Use braces instead of parens because sh, perl, etc. also accept them.
304 bindir='${exec_prefix}/bin'
305 sbindir='${exec_prefix}/sbin'
306 libexecdir='${exec_prefix}/libexec'
307 datadir='${prefix}/share'
308 sysconfdir='${prefix}/etc'
309 sharedstatedir='${prefix}/com'
310 localstatedir='${prefix}/var'
311 libdir='${exec_prefix}/lib'
312 includedir='${prefix}/include'
313 oldincludedir='/usr/include'
314 infodir='${prefix}/info'
315 mandir='${prefix}/man'
320 # If the previous option needs an argument, assign it.
321 if test -n "$ac_prev"; then
322 eval "$ac_prev=\$ac_option"
327 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
329 # Accept the important Cygnus configure options, so we can diagnose typos.
333 -bindir | --bindir | --bindi | --bind | --bin | --bi)
335 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
338 -build | --build | --buil | --bui | --bu)
339 ac_prev=build_alias ;;
340 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
341 build_alias=$ac_optarg ;;
343 -cache-file | --cache-file | --cache-fil | --cache-fi \
344 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
345 ac_prev=cache_file ;;
346 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
347 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
348 cache_file=$ac_optarg ;;
351 cache_file=config.cache ;;
353 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
355 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
357 datadir=$ac_optarg ;;
359 -disable-* | --disable-*)
360 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
361 # Reject names that are not valid shell variable names.
362 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
363 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
364 { (exit 1); exit 1; }; }
365 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
366 eval "enable_$ac_feature=no" ;;
368 -enable-* | --enable-*)
369 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
370 # Reject names that are not valid shell variable names.
371 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
372 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
373 { (exit 1); exit 1; }; }
374 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
376 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
379 eval "enable_$ac_feature='$ac_optarg'" ;;
381 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
382 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
383 | --exec | --exe | --ex)
384 ac_prev=exec_prefix ;;
385 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
386 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
387 | --exec=* | --exe=* | --ex=*)
388 exec_prefix=$ac_optarg ;;
390 -gas | --gas | --ga | --g)
391 # Obsolete; use --with-gas.
394 -help | --help | --hel | --he | -h)
396 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
397 ac_init_help=recursive ;;
398 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
399 ac_init_help=short ;;
401 -host | --host | --hos | --ho)
402 ac_prev=host_alias ;;
403 -host=* | --host=* | --hos=* | --ho=*)
404 host_alias=$ac_optarg ;;
406 -includedir | --includedir | --includedi | --included | --include \
407 | --includ | --inclu | --incl | --inc)
408 ac_prev=includedir ;;
409 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
410 | --includ=* | --inclu=* | --incl=* | --inc=*)
411 includedir=$ac_optarg ;;
413 -infodir | --infodir | --infodi | --infod | --info | --inf)
415 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
416 infodir=$ac_optarg ;;
418 -libdir | --libdir | --libdi | --libd)
420 -libdir=* | --libdir=* | --libdi=* | --libd=*)
423 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
424 | --libexe | --libex | --libe)
425 ac_prev=libexecdir ;;
426 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
427 | --libexe=* | --libex=* | --libe=*)
428 libexecdir=$ac_optarg ;;
430 -localstatedir | --localstatedir | --localstatedi | --localstated \
431 | --localstate | --localstat | --localsta | --localst \
432 | --locals | --local | --loca | --loc | --lo)
433 ac_prev=localstatedir ;;
434 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
435 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
436 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
437 localstatedir=$ac_optarg ;;
439 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
441 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
445 # Obsolete; use --without-fp.
448 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
449 | --no-cr | --no-c | -n)
452 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
453 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
456 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
457 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
458 | --oldin | --oldi | --old | --ol | --o)
459 ac_prev=oldincludedir ;;
460 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
461 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
462 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
463 oldincludedir=$ac_optarg ;;
465 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
467 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
470 -program-prefix | --program-prefix | --program-prefi | --program-pref \
471 | --program-pre | --program-pr | --program-p)
472 ac_prev=program_prefix ;;
473 -program-prefix=* | --program-prefix=* | --program-prefi=* \
474 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
475 program_prefix=$ac_optarg ;;
477 -program-suffix | --program-suffix | --program-suffi | --program-suff \
478 | --program-suf | --program-su | --program-s)
479 ac_prev=program_suffix ;;
480 -program-suffix=* | --program-suffix=* | --program-suffi=* \
481 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
482 program_suffix=$ac_optarg ;;
484 -program-transform-name | --program-transform-name \
485 | --program-transform-nam | --program-transform-na \
486 | --program-transform-n | --program-transform- \
487 | --program-transform | --program-transfor \
488 | --program-transfo | --program-transf \
489 | --program-trans | --program-tran \
490 | --progr-tra | --program-tr | --program-t)
491 ac_prev=program_transform_name ;;
492 -program-transform-name=* | --program-transform-name=* \
493 | --program-transform-nam=* | --program-transform-na=* \
494 | --program-transform-n=* | --program-transform-=* \
495 | --program-transform=* | --program-transfor=* \
496 | --program-transfo=* | --program-transf=* \
497 | --program-trans=* | --program-tran=* \
498 | --progr-tra=* | --program-tr=* | --program-t=*)
499 program_transform_name=$ac_optarg ;;
501 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
502 | -silent | --silent | --silen | --sile | --sil)
505 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
507 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
509 sbindir=$ac_optarg ;;
511 -sharedstatedir | --sharedstatedir | --sharedstatedi \
512 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
513 | --sharedst | --shareds | --shared | --share | --shar \
515 ac_prev=sharedstatedir ;;
516 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
517 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
518 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
520 sharedstatedir=$ac_optarg ;;
522 -site | --site | --sit)
524 -site=* | --site=* | --sit=*)
527 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
529 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
532 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
533 | --syscon | --sysco | --sysc | --sys | --sy)
534 ac_prev=sysconfdir ;;
535 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
536 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
537 sysconfdir=$ac_optarg ;;
539 -target | --target | --targe | --targ | --tar | --ta | --t)
540 ac_prev=target_alias ;;
541 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
542 target_alias=$ac_optarg ;;
544 -v | -verbose | --verbose | --verbos | --verbo | --verb)
547 -version | --version | --versio | --versi | --vers | -V)
551 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
552 # Reject names that are not valid shell variable names.
553 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554 { echo "$as_me: error: invalid package name: $ac_package" >&2
555 { (exit 1); exit 1; }; }
556 ac_package=`echo $ac_package| sed 's/-/_/g'`
558 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
561 eval "with_$ac_package='$ac_optarg'" ;;
563 -without-* | --without-*)
564 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
565 # Reject names that are not valid shell variable names.
566 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
567 { echo "$as_me: error: invalid package name: $ac_package" >&2
568 { (exit 1); exit 1; }; }
569 ac_package=`echo $ac_package | sed 's/-/_/g'`
570 eval "with_$ac_package=no" ;;
573 # Obsolete; use --with-x.
576 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
577 | --x-incl | --x-inc | --x-in | --x-i)
578 ac_prev=x_includes ;;
579 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
580 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
581 x_includes=$ac_optarg ;;
583 -x-libraries | --x-libraries | --x-librarie | --x-librari \
584 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
585 ac_prev=x_libraries ;;
586 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
587 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
588 x_libraries=$ac_optarg ;;
590 -*) { echo "$as_me: error: unrecognized option: $ac_option
591 Try \`$0 --help' for more information." >&2
592 { (exit 1); exit 1; }; }
596 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
597 # Reject names that are not valid shell variable names.
598 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
599 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
600 { (exit 1); exit 1; }; }
601 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
602 eval "$ac_envvar='$ac_optarg'"
606 # FIXME: should be removed in autoconf 3.0.
607 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
608 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
609 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
610 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
616 if test -n "$ac_prev"; then
617 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
618 { echo "$as_me: error: missing argument to $ac_option" >&2
619 { (exit 1); exit 1; }; }
622 # Be sure to have absolute paths.
623 for ac_var in exec_prefix prefix
625 eval ac_val=$`echo $ac_var`
627 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
628 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
629 { (exit 1); exit 1; }; };;
633 # Be sure to have absolute paths.
634 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
635 localstatedir libdir includedir oldincludedir infodir mandir
637 eval ac_val=$`echo $ac_var`
639 [\\/$]* | ?:[\\/]* ) ;;
640 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
641 { (exit 1); exit 1; }; };;
645 # There might be people who depend on the old broken behavior: `$host'
646 # used to hold the argument of --host etc.
647 # FIXME: To remove some day.
652 # FIXME: To remove some day.
653 if test "x$host_alias" != x; then
654 if test "x$build_alias" = x; then
655 cross_compiling=maybe
656 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
657 If a cross compiler is detected then cross compile mode will be used." >&2
658 elif test "x$build_alias" != "x$host_alias"; then
664 test -n "$host_alias" && ac_tool_prefix=$host_alias-
666 test "$silent" = yes && exec 6>/dev/null
669 # Find the source files, if location was not specified.
670 if test -z "$srcdir"; then
671 ac_srcdir_defaulted=yes
672 # Try the directory containing this script, then its parent.
673 ac_confdir=`(dirname "$0") 2>/dev/null ||
674 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
675 X"$0" : 'X\(//\)[^/]' \| \
676 X"$0" : 'X\(//\)$' \| \
677 X"$0" : 'X\(/\)' \| \
678 . : '\(.\)' 2>/dev/null ||
680 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
681 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
682 /^X\(\/\/\)$/{ s//\1/; q; }
683 /^X\(\/\).*/{ s//\1/; q; }
686 if test ! -r $srcdir/$ac_unique_file; then
690 ac_srcdir_defaulted=no
692 if test ! -r $srcdir/$ac_unique_file; then
693 if test "$ac_srcdir_defaulted" = yes; then
694 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
695 { (exit 1); exit 1; }; }
697 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
698 { (exit 1); exit 1; }; }
701 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
702 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
703 { (exit 1); exit 1; }; }
704 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
705 ac_env_build_alias_set=${build_alias+set}
706 ac_env_build_alias_value=$build_alias
707 ac_cv_env_build_alias_set=${build_alias+set}
708 ac_cv_env_build_alias_value=$build_alias
709 ac_env_host_alias_set=${host_alias+set}
710 ac_env_host_alias_value=$host_alias
711 ac_cv_env_host_alias_set=${host_alias+set}
712 ac_cv_env_host_alias_value=$host_alias
713 ac_env_target_alias_set=${target_alias+set}
714 ac_env_target_alias_value=$target_alias
715 ac_cv_env_target_alias_set=${target_alias+set}
716 ac_cv_env_target_alias_value=$target_alias
717 ac_env_CC_set=${CC+set}
719 ac_cv_env_CC_set=${CC+set}
720 ac_cv_env_CC_value=$CC
721 ac_env_CFLAGS_set=${CFLAGS+set}
722 ac_env_CFLAGS_value=$CFLAGS
723 ac_cv_env_CFLAGS_set=${CFLAGS+set}
724 ac_cv_env_CFLAGS_value=$CFLAGS
725 ac_env_LDFLAGS_set=${LDFLAGS+set}
726 ac_env_LDFLAGS_value=$LDFLAGS
727 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
728 ac_cv_env_LDFLAGS_value=$LDFLAGS
729 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
730 ac_env_CPPFLAGS_value=$CPPFLAGS
731 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
732 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
735 # Report the --help message.
737 if test "$ac_init_help" = "long"; then
738 # Omit some internal or obsolete options to make the list less imposing.
739 # This message is too long to be a string in the A/UX 3.1 sh.
741 \`configure' configures this package to adapt to many kinds of systems.
743 Usage: $0 [OPTION]... [VAR=VALUE]...
745 To assign environment variables (e.g., CC, CFLAGS...), specify them as
746 VAR=VALUE. See below for descriptions of some of the useful variables.
748 Defaults for the options are specified in brackets.
751 -h, --help display this help and exit
752 --help=short display options specific to this package
753 --help=recursive display the short help of all the included packages
754 -V, --version display version information and exit
755 -q, --quiet, --silent do not print \`checking...' messages
756 --cache-file=FILE cache test results in FILE [disabled]
757 -C, --config-cache alias for \`--cache-file=config.cache'
758 -n, --no-create do not create output files
759 --srcdir=DIR find the sources in DIR [configure dir or \`..']
764 Installation directories:
765 --prefix=PREFIX install architecture-independent files in PREFIX
767 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
770 By default, \`make install' will install all the files in
771 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
772 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
773 for instance \`--prefix=\$HOME'.
775 For better control, use the options below.
777 Fine tuning of the installation directories:
778 --bindir=DIR user executables [EPREFIX/bin]
779 --sbindir=DIR system admin executables [EPREFIX/sbin]
780 --libexecdir=DIR program executables [EPREFIX/libexec]
781 --datadir=DIR read-only architecture-independent data [PREFIX/share]
782 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
783 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
784 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
785 --libdir=DIR object code libraries [EPREFIX/lib]
786 --includedir=DIR C header files [PREFIX/include]
787 --oldincludedir=DIR C header files for non-gcc [/usr/include]
788 --infodir=DIR info documentation [PREFIX/info]
789 --mandir=DIR man documentation [PREFIX/man]
796 if test -n "$ac_init_help"; then
801 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
802 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
803 --with-mysql-dir=DIR base directory where MySQL is installed
804 --with-mysql-lib-dir=DIR directory where the MySQL libraries may be found
805 --with-mysql-include-dir=DIR directory where the MySQL includes may be found
806 --with-threads use threads, if available. (default=yes)
808 Some influential environment variables:
809 CC C compiler command
810 CFLAGS C compiler flags
811 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
812 nonstandard directory <lib dir>
813 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
814 headers in a nonstandard directory <include dir>
816 Use these variables to override the choices made by `configure' or to help
817 it to find libraries and programs with nonstandard names/locations.
822 if test "$ac_init_help" = "recursive"; then
823 # If there are subdirs, report their specific --help.
825 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
826 test -d $ac_dir || continue
829 if test "$ac_dir" != .; then
830 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
831 # A "../" for each directory in $ac_dir_suffix.
832 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
834 ac_dir_suffix= ac_top_builddir=
838 .) # No --srcdir option. We are building in place.
840 if test -z "$ac_top_builddir"; then
843 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
845 [\\/]* | ?:[\\/]* ) # Absolute path.
846 ac_srcdir=$srcdir$ac_dir_suffix;
847 ac_top_srcdir=$srcdir ;;
849 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
850 ac_top_srcdir=$ac_top_builddir$srcdir ;;
853 # Do not use `cd foo && pwd` to compute absolute paths, because
854 # the directories may not exist.
856 .) ac_abs_builddir="$ac_dir";;
859 .) ac_abs_builddir=`pwd`;;
860 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
861 *) ac_abs_builddir=`pwd`/"$ac_dir";;
864 case $ac_abs_builddir in
865 .) ac_abs_top_builddir=${ac_top_builddir}.;;
867 case ${ac_top_builddir}. in
868 .) ac_abs_top_builddir=$ac_abs_builddir;;
869 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
870 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
873 case $ac_abs_builddir in
874 .) ac_abs_srcdir=$ac_srcdir;;
877 .) ac_abs_srcdir=$ac_abs_builddir;;
878 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
879 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
882 case $ac_abs_builddir in
883 .) ac_abs_top_srcdir=$ac_top_srcdir;;
885 case $ac_top_srcdir in
886 .) ac_abs_top_srcdir=$ac_abs_builddir;;
887 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
888 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
893 # Check for guested configure; otherwise get Cygnus style configure.
894 if test -f $ac_srcdir/configure.gnu; then
896 $SHELL $ac_srcdir/configure.gnu --help=recursive
897 elif test -f $ac_srcdir/configure; then
899 $SHELL $ac_srcdir/configure --help=recursive
900 elif test -f $ac_srcdir/configure.ac ||
901 test -f $ac_srcdir/configure.in; then
905 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
911 test -n "$ac_init_help" && exit 0
912 if $ac_init_version; then
915 Copyright (C) 2003 Free Software Foundation, Inc.
916 This configure script is free software; the Free Software Foundation
917 gives unlimited permission to copy, distribute and modify it.
923 This file contains any messages produced by compilers while
924 running configure, to aid debugging if configure makes a mistake.
926 It was created by $as_me, which was
927 generated by GNU Autoconf 2.59. Invocation command line was
938 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
939 uname -m = `(uname -m) 2>/dev/null || echo unknown`
940 uname -r = `(uname -r) 2>/dev/null || echo unknown`
941 uname -s = `(uname -s) 2>/dev/null || echo unknown`
942 uname -v = `(uname -v) 2>/dev/null || echo unknown`
944 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
945 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
947 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
948 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
949 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
950 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
951 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
952 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
953 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
961 test -z "$as_dir" && as_dir=.
977 # Keep a trace of the command line.
978 # Strip out --no-create and --no-recursion so they do not pile up.
979 # Strip out --silent because we don't want to record it for future runs.
980 # Also quote any args containing shell meta-characters.
981 # Make two passes to allow for proper duplicate-argument suppression.
986 ac_must_keep_next=false
992 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
993 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
994 | -silent | --silent | --silen | --sile | --sil)
996 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
997 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1000 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1002 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1003 if test $ac_must_keep_next = true; then
1004 ac_must_keep_next=false # Got value, back to normal.
1007 *=* | --config-cache | -C | -disable-* | --disable-* \
1008 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1009 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1010 | -with-* | --with-* | -without-* | --without-* | --x)
1011 case "$ac_configure_args0 " in
1012 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1015 -* ) ac_must_keep_next=true ;;
1018 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1019 # Get rid of the leading space.
1025 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1026 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1028 # When interrupted or exit'd, cleanup temporary files, and complete
1029 # config.log. We remove comments because anyway the quotes in there
1030 # would cause problems or look ugly.
1031 # WARNING: Be sure not to use single quotes in there, as some shells,
1032 # such as our DU 5.0 friend, will then `close' the trap.
1033 trap 'exit_status=$?
1034 # Save into config.log some information that might help in debugging.
1039 ## ---------------- ##
1040 ## Cache variables. ##
1041 ## ---------------- ##
1044 # The following way of writing the cache mishandles newlines in values,
1047 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1050 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1051 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1055 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1062 ## ----------------- ##
1063 ## Output variables. ##
1064 ## ----------------- ##
1067 for ac_var in $ac_subst_vars
1069 eval ac_val=$`echo $ac_var`
1070 echo "$ac_var='"'"'$ac_val'"'"'"
1074 if test -n "$ac_subst_files"; then
1081 for ac_var in $ac_subst_files
1083 eval ac_val=$`echo $ac_var`
1084 echo "$ac_var='"'"'$ac_val'"'"'"
1089 if test -s confdefs.h; then
1096 sed "/^$/d" confdefs.h | sort
1099 test "$ac_signal" != 0 &&
1100 echo "$as_me: caught signal $ac_signal"
1101 echo "$as_me: exit $exit_status"
1103 rm -f core *.core &&
1104 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1107 for ac_signal in 1 2 13 15; do
1108 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1112 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1113 rm -rf conftest* confdefs.h
1114 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1117 # Predefined preprocessor variables.
1119 cat >>confdefs.h <<_ACEOF
1120 #define PACKAGE_NAME "$PACKAGE_NAME"
1124 cat >>confdefs.h <<_ACEOF
1125 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1129 cat >>confdefs.h <<_ACEOF
1130 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1134 cat >>confdefs.h <<_ACEOF
1135 #define PACKAGE_STRING "$PACKAGE_STRING"
1139 cat >>confdefs.h <<_ACEOF
1140 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1144 # Let the site file select an alternate cache file if it wants to.
1145 # Prefer explicitly selected file to automatically selected ones.
1146 if test -z "$CONFIG_SITE"; then
1147 if test "x$prefix" != xNONE; then
1148 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1150 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1153 for ac_site_file in $CONFIG_SITE; do
1154 if test -r "$ac_site_file"; then
1155 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1156 echo "$as_me: loading site script $ac_site_file" >&6;}
1157 sed 's/^/| /' "$ac_site_file" >&5
1162 if test -r "$cache_file"; then
1163 # Some versions of bash will fail to source /dev/null (special
1164 # files actually), so we avoid doing that.
1165 if test -f "$cache_file"; then
1166 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1167 echo "$as_me: loading cache $cache_file" >&6;}
1169 [\\/]* | ?:[\\/]* ) . $cache_file;;
1170 *) . ./$cache_file;;
1174 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1175 echo "$as_me: creating cache $cache_file" >&6;}
1179 # Check that the precious variables saved in the cache have kept the same
1181 ac_cache_corrupted=false
1182 for ac_var in `(set) 2>&1 |
1183 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1184 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1185 eval ac_new_set=\$ac_env_${ac_var}_set
1186 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1187 eval ac_new_val="\$ac_env_${ac_var}_value"
1188 case $ac_old_set,$ac_new_set in
1190 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1191 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1192 ac_cache_corrupted=: ;;
1194 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1195 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1196 ac_cache_corrupted=: ;;
1199 if test "x$ac_old_val" != "x$ac_new_val"; then
1200 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1201 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1202 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1203 echo "$as_me: former value: $ac_old_val" >&2;}
1204 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1205 echo "$as_me: current value: $ac_new_val" >&2;}
1206 ac_cache_corrupted=:
1209 # Pass precious variables to config.status.
1210 if test "$ac_new_set" = set; then
1212 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1213 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1214 *) ac_arg=$ac_var=$ac_new_val ;;
1216 case " $ac_configure_args " in
1217 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1218 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1222 if $ac_cache_corrupted; then
1223 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1224 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1225 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1226 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1227 { (exit 1); exit 1; }; }
1231 ac_cpp='$CPP $CPPFLAGS'
1232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1256 ac_config_headers="$ac_config_headers config.h"
1262 mysql_include_dir=""
1264 if test x$with_rlm_sql_mysql != xno; then
1266 targetname=rlm_sql_mysql # we change this if a test fails
1270 # Check whether --with-mysql-dir or --without-mysql-dir was given.
1271 if test "${with_mysql_dir+set}" = set; then
1272 withval="$with_mysql_dir"
1273 mysql_lib_dir="$withval/lib/mysql"
1274 mysql_include_dir="$withval/include"
1279 # Check whether --with-mysql-lib-dir or --without-mysql-lib-dir was given.
1280 if test "${with_mysql_lib_dir+set}" = set; then
1281 withval="$with_mysql_lib_dir"
1282 mysql_lib_dir="$withval"
1287 # Check whether --with-mysql-include-dir or --without-mysql-include-dir was given.
1288 if test "${with_mysql_include_dir+set}" = set; then
1289 withval="$with_mysql_include_dir"
1290 mysql_include_dir="$withval"
1294 mysql_with_threads=yes
1296 # Check whether --with-threads or --without-threads was given.
1297 if test "${with_threads+set}" = set; then
1298 withval="$with_threads"
1301 mysql_with_threads=no
1311 ac_cpp='$CPP $CPPFLAGS'
1312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1315 if test -n "$ac_tool_prefix"; then
1316 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1317 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1318 echo "$as_me:$LINENO: checking for $ac_word" >&5
1319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1320 if test "${ac_cv_prog_CC+set}" = set; then
1321 echo $ECHO_N "(cached) $ECHO_C" >&6
1323 if test -n "$CC"; then
1324 ac_cv_prog_CC="$CC" # Let the user override the test.
1326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1330 test -z "$as_dir" && as_dir=.
1331 for ac_exec_ext in '' $ac_executable_extensions; do
1332 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1333 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1343 if test -n "$CC"; then
1344 echo "$as_me:$LINENO: result: $CC" >&5
1345 echo "${ECHO_T}$CC" >&6
1347 echo "$as_me:$LINENO: result: no" >&5
1348 echo "${ECHO_T}no" >&6
1352 if test -z "$ac_cv_prog_CC"; then
1354 # Extract the first word of "gcc", so it can be a program name with args.
1355 set dummy gcc; ac_word=$2
1356 echo "$as_me:$LINENO: checking for $ac_word" >&5
1357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1358 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1359 echo $ECHO_N "(cached) $ECHO_C" >&6
1361 if test -n "$ac_ct_CC"; then
1362 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1368 test -z "$as_dir" && as_dir=.
1369 for ac_exec_ext in '' $ac_executable_extensions; do
1370 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1371 ac_cv_prog_ac_ct_CC="gcc"
1372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1380 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1381 if test -n "$ac_ct_CC"; then
1382 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1383 echo "${ECHO_T}$ac_ct_CC" >&6
1385 echo "$as_me:$LINENO: result: no" >&5
1386 echo "${ECHO_T}no" >&6
1394 if test -z "$CC"; then
1395 if test -n "$ac_tool_prefix"; then
1396 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1397 set dummy ${ac_tool_prefix}cc; ac_word=$2
1398 echo "$as_me:$LINENO: checking for $ac_word" >&5
1399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1400 if test "${ac_cv_prog_CC+set}" = set; then
1401 echo $ECHO_N "(cached) $ECHO_C" >&6
1403 if test -n "$CC"; then
1404 ac_cv_prog_CC="$CC" # Let the user override the test.
1406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1410 test -z "$as_dir" && as_dir=.
1411 for ac_exec_ext in '' $ac_executable_extensions; do
1412 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1413 ac_cv_prog_CC="${ac_tool_prefix}cc"
1414 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1423 if test -n "$CC"; then
1424 echo "$as_me:$LINENO: result: $CC" >&5
1425 echo "${ECHO_T}$CC" >&6
1427 echo "$as_me:$LINENO: result: no" >&5
1428 echo "${ECHO_T}no" >&6
1432 if test -z "$ac_cv_prog_CC"; then
1434 # Extract the first word of "cc", so it can be a program name with args.
1435 set dummy cc; ac_word=$2
1436 echo "$as_me:$LINENO: checking for $ac_word" >&5
1437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1438 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1439 echo $ECHO_N "(cached) $ECHO_C" >&6
1441 if test -n "$ac_ct_CC"; then
1442 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1448 test -z "$as_dir" && as_dir=.
1449 for ac_exec_ext in '' $ac_executable_extensions; do
1450 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1451 ac_cv_prog_ac_ct_CC="cc"
1452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1460 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1461 if test -n "$ac_ct_CC"; then
1462 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1463 echo "${ECHO_T}$ac_ct_CC" >&6
1465 echo "$as_me:$LINENO: result: no" >&5
1466 echo "${ECHO_T}no" >&6
1475 if test -z "$CC"; then
1476 # Extract the first word of "cc", so it can be a program name with args.
1477 set dummy cc; ac_word=$2
1478 echo "$as_me:$LINENO: checking for $ac_word" >&5
1479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1480 if test "${ac_cv_prog_CC+set}" = set; then
1481 echo $ECHO_N "(cached) $ECHO_C" >&6
1483 if test -n "$CC"; then
1484 ac_cv_prog_CC="$CC" # Let the user override the test.
1487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1491 test -z "$as_dir" && as_dir=.
1492 for ac_exec_ext in '' $ac_executable_extensions; do
1493 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1494 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1495 ac_prog_rejected=yes
1499 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1505 if test $ac_prog_rejected = yes; then
1506 # We found a bogon in the path, so make sure we never use it.
1507 set dummy $ac_cv_prog_CC
1509 if test $# != 0; then
1510 # We chose a different compiler from the bogus one.
1511 # However, it has the same basename, so the bogon will be chosen
1512 # first if we set CC to just the basename; use the full file name.
1514 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1520 if test -n "$CC"; then
1521 echo "$as_me:$LINENO: result: $CC" >&5
1522 echo "${ECHO_T}$CC" >&6
1524 echo "$as_me:$LINENO: result: no" >&5
1525 echo "${ECHO_T}no" >&6
1529 if test -z "$CC"; then
1530 if test -n "$ac_tool_prefix"; then
1533 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1534 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1535 echo "$as_me:$LINENO: checking for $ac_word" >&5
1536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1537 if test "${ac_cv_prog_CC+set}" = set; then
1538 echo $ECHO_N "(cached) $ECHO_C" >&6
1540 if test -n "$CC"; then
1541 ac_cv_prog_CC="$CC" # Let the user override the test.
1543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1547 test -z "$as_dir" && as_dir=.
1548 for ac_exec_ext in '' $ac_executable_extensions; do
1549 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1550 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1560 if test -n "$CC"; then
1561 echo "$as_me:$LINENO: result: $CC" >&5
1562 echo "${ECHO_T}$CC" >&6
1564 echo "$as_me:$LINENO: result: no" >&5
1565 echo "${ECHO_T}no" >&6
1568 test -n "$CC" && break
1571 if test -z "$CC"; then
1575 # Extract the first word of "$ac_prog", so it can be a program name with args.
1576 set dummy $ac_prog; ac_word=$2
1577 echo "$as_me:$LINENO: checking for $ac_word" >&5
1578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1579 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1580 echo $ECHO_N "(cached) $ECHO_C" >&6
1582 if test -n "$ac_ct_CC"; then
1583 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1589 test -z "$as_dir" && as_dir=.
1590 for ac_exec_ext in '' $ac_executable_extensions; do
1591 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1592 ac_cv_prog_ac_ct_CC="$ac_prog"
1593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1601 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1602 if test -n "$ac_ct_CC"; then
1603 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1604 echo "${ECHO_T}$ac_ct_CC" >&6
1606 echo "$as_me:$LINENO: result: no" >&5
1607 echo "${ECHO_T}no" >&6
1610 test -n "$ac_ct_CC" && break
1619 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1620 See \`config.log' for more details." >&5
1621 echo "$as_me: error: no acceptable C compiler found in \$PATH
1622 See \`config.log' for more details." >&2;}
1623 { (exit 1); exit 1; }; }
1625 # Provide some information about the compiler.
1626 echo "$as_me:$LINENO:" \
1627 "checking for C compiler version" >&5
1628 ac_compiler=`set X $ac_compile; echo $2`
1629 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1630 (eval $ac_compiler --version </dev/null >&5) 2>&5
1632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1633 (exit $ac_status); }
1634 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1635 (eval $ac_compiler -v </dev/null >&5) 2>&5
1637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1638 (exit $ac_status); }
1639 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1640 (eval $ac_compiler -V </dev/null >&5) 2>&5
1642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1643 (exit $ac_status); }
1645 cat >conftest.$ac_ext <<_ACEOF
1648 cat confdefs.h >>conftest.$ac_ext
1649 cat >>conftest.$ac_ext <<_ACEOF
1650 /* end confdefs.h. */
1660 ac_clean_files_save=$ac_clean_files
1661 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1662 # Try to create an executable without -o first, disregard a.out.
1663 # It will help us diagnose broken compilers, and finding out an intuition
1665 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1666 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1667 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1668 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1669 (eval $ac_link_default) 2>&5
1671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1672 (exit $ac_status); }; then
1673 # Find the output, starting from the most likely. This scheme is
1674 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1677 # Be careful to initialize this variable, since it used to be cached.
1678 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1680 # b.out is created by i960 compilers.
1681 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1683 test -f "$ac_file" || continue
1685 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1688 # This is the source file.
1691 # We found the default executable, but exeext='' is most
1695 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1696 # FIXME: I believe we export ac_cv_exeext for Libtool,
1697 # but it would be cool to find out if it's true. Does anybody
1698 # maintain Libtool? --akim.
1706 echo "$as_me: failed program was:" >&5
1707 sed 's/^/| /' conftest.$ac_ext >&5
1709 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1710 See \`config.log' for more details." >&5
1711 echo "$as_me: error: C compiler cannot create executables
1712 See \`config.log' for more details." >&2;}
1713 { (exit 77); exit 77; }; }
1716 ac_exeext=$ac_cv_exeext
1717 echo "$as_me:$LINENO: result: $ac_file" >&5
1718 echo "${ECHO_T}$ac_file" >&6
1720 # Check the compiler produces executables we can run. If not, either
1721 # the compiler is broken, or we cross compile.
1722 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1723 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1724 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1725 # If not cross compiling, check that we can run a simple program.
1726 if test "$cross_compiling" != yes; then
1727 if { ac_try='./$ac_file'
1728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1732 (exit $ac_status); }; }; then
1735 if test "$cross_compiling" = maybe; then
1738 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1739 If you meant to cross compile, use \`--host'.
1740 See \`config.log' for more details." >&5
1741 echo "$as_me: error: cannot run C compiled programs.
1742 If you meant to cross compile, use \`--host'.
1743 See \`config.log' for more details." >&2;}
1744 { (exit 1); exit 1; }; }
1748 echo "$as_me:$LINENO: result: yes" >&5
1749 echo "${ECHO_T}yes" >&6
1751 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1752 ac_clean_files=$ac_clean_files_save
1753 # Check the compiler produces executables we can run. If not, either
1754 # the compiler is broken, or we cross compile.
1755 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1756 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1757 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1758 echo "${ECHO_T}$cross_compiling" >&6
1760 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1761 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1763 (eval $ac_link) 2>&5
1765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1766 (exit $ac_status); }; then
1767 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1768 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1769 # work properly (i.e., refer to `conftest.exe'), while it won't with
1771 for ac_file in conftest.exe conftest conftest.*; do
1772 test -f "$ac_file" || continue
1774 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1775 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1782 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1783 See \`config.log' for more details." >&5
1784 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1785 See \`config.log' for more details." >&2;}
1786 { (exit 1); exit 1; }; }
1789 rm -f conftest$ac_cv_exeext
1790 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1791 echo "${ECHO_T}$ac_cv_exeext" >&6
1793 rm -f conftest.$ac_ext
1794 EXEEXT=$ac_cv_exeext
1796 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1797 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1798 if test "${ac_cv_objext+set}" = set; then
1799 echo $ECHO_N "(cached) $ECHO_C" >&6
1801 cat >conftest.$ac_ext <<_ACEOF
1804 cat confdefs.h >>conftest.$ac_ext
1805 cat >>conftest.$ac_ext <<_ACEOF
1806 /* end confdefs.h. */
1816 rm -f conftest.o conftest.obj
1817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1818 (eval $ac_compile) 2>&5
1820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1821 (exit $ac_status); }; then
1822 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1824 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1825 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1830 echo "$as_me: failed program was:" >&5
1831 sed 's/^/| /' conftest.$ac_ext >&5
1833 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1834 See \`config.log' for more details." >&5
1835 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1836 See \`config.log' for more details." >&2;}
1837 { (exit 1); exit 1; }; }
1840 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1842 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1843 echo "${ECHO_T}$ac_cv_objext" >&6
1844 OBJEXT=$ac_cv_objext
1846 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1847 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1848 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1849 echo $ECHO_N "(cached) $ECHO_C" >&6
1851 cat >conftest.$ac_ext <<_ACEOF
1854 cat confdefs.h >>conftest.$ac_ext
1855 cat >>conftest.$ac_ext <<_ACEOF
1856 /* end confdefs.h. */
1869 rm -f conftest.$ac_objext
1870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1871 (eval $ac_compile) 2>conftest.er1
1873 grep -v '^ *+' conftest.er1 >conftest.err
1875 cat conftest.err >&5
1876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1877 (exit $ac_status); } &&
1878 { ac_try='test -z "$ac_c_werror_flag"
1879 || test ! -s conftest.err'
1880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1884 (exit $ac_status); }; } &&
1885 { ac_try='test -s conftest.$ac_objext'
1886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1890 (exit $ac_status); }; }; then
1893 echo "$as_me: failed program was:" >&5
1894 sed 's/^/| /' conftest.$ac_ext >&5
1898 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1899 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1902 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1903 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1904 GCC=`test $ac_compiler_gnu = yes && echo yes`
1905 ac_test_CFLAGS=${CFLAGS+set}
1906 ac_save_CFLAGS=$CFLAGS
1908 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1909 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1910 if test "${ac_cv_prog_cc_g+set}" = set; then
1911 echo $ECHO_N "(cached) $ECHO_C" >&6
1913 cat >conftest.$ac_ext <<_ACEOF
1916 cat confdefs.h >>conftest.$ac_ext
1917 cat >>conftest.$ac_ext <<_ACEOF
1918 /* end confdefs.h. */
1928 rm -f conftest.$ac_objext
1929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1930 (eval $ac_compile) 2>conftest.er1
1932 grep -v '^ *+' conftest.er1 >conftest.err
1934 cat conftest.err >&5
1935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1936 (exit $ac_status); } &&
1937 { ac_try='test -z "$ac_c_werror_flag"
1938 || test ! -s conftest.err'
1939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1943 (exit $ac_status); }; } &&
1944 { ac_try='test -s conftest.$ac_objext'
1945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1949 (exit $ac_status); }; }; then
1952 echo "$as_me: failed program was:" >&5
1953 sed 's/^/| /' conftest.$ac_ext >&5
1957 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1959 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1960 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1961 if test "$ac_test_CFLAGS" = set; then
1962 CFLAGS=$ac_save_CFLAGS
1963 elif test $ac_cv_prog_cc_g = yes; then
1964 if test "$GCC" = yes; then
1970 if test "$GCC" = yes; then
1976 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1977 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1978 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1979 echo $ECHO_N "(cached) $ECHO_C" >&6
1981 ac_cv_prog_cc_stdc=no
1983 cat >conftest.$ac_ext <<_ACEOF
1986 cat confdefs.h >>conftest.$ac_ext
1987 cat >>conftest.$ac_ext <<_ACEOF
1988 /* end confdefs.h. */
1991 #include <sys/types.h>
1992 #include <sys/stat.h>
1993 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1994 struct buf { int x; };
1995 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1996 static char *e (p, i)
2002 static char *f (char * (*g) (char **, int), char **p, ...)
2007 s = g (p, va_arg (v,int));
2012 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2013 function prototypes and stuff, but not '\xHH' hex character constants.
2014 These don't provoke an error unfortunately, instead are silently treated
2015 as 'x'. The following induces an error, until -std1 is added to get
2016 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2017 array size at least. It's necessary to write '\x00'==0 to get something
2018 that's true only with -std1. */
2019 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2021 int test (int i, double x);
2022 struct s1 {int (*f) (int a);};
2023 struct s2 {int (*f) (double a);};
2024 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2030 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2035 # Don't try gcc -ansi; that turns off useful extensions and
2036 # breaks some systems' header files.
2037 # AIX -qlanglvl=ansi
2038 # Ultrix and OSF/1 -std1
2039 # HP-UX 10.20 and later -Ae
2040 # HP-UX older versions -Aa -D_HPUX_SOURCE
2041 # SVR4 -Xc -D__EXTENSIONS__
2042 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2044 CC="$ac_save_CC $ac_arg"
2045 rm -f conftest.$ac_objext
2046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2047 (eval $ac_compile) 2>conftest.er1
2049 grep -v '^ *+' conftest.er1 >conftest.err
2051 cat conftest.err >&5
2052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2053 (exit $ac_status); } &&
2054 { ac_try='test -z "$ac_c_werror_flag"
2055 || test ! -s conftest.err'
2056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2060 (exit $ac_status); }; } &&
2061 { ac_try='test -s conftest.$ac_objext'
2062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2066 (exit $ac_status); }; }; then
2067 ac_cv_prog_cc_stdc=$ac_arg
2070 echo "$as_me: failed program was:" >&5
2071 sed 's/^/| /' conftest.$ac_ext >&5
2074 rm -f conftest.err conftest.$ac_objext
2076 rm -f conftest.$ac_ext conftest.$ac_objext
2081 case "x$ac_cv_prog_cc_stdc" in
2083 echo "$as_me:$LINENO: result: none needed" >&5
2084 echo "${ECHO_T}none needed" >&6 ;;
2086 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2087 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2088 CC="$CC $ac_cv_prog_cc_stdc" ;;
2091 # Some people use a C++ compiler to compile C. Since we use `exit',
2092 # in C++ we need to declare it. In case someone uses the same compiler
2093 # for both compiling C and C++ we need to have the C++ compiler decide
2094 # the declaration of exit, since it's the most demanding environment.
2095 cat >conftest.$ac_ext <<_ACEOF
2100 rm -f conftest.$ac_objext
2101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2102 (eval $ac_compile) 2>conftest.er1
2104 grep -v '^ *+' conftest.er1 >conftest.err
2106 cat conftest.err >&5
2107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2108 (exit $ac_status); } &&
2109 { ac_try='test -z "$ac_c_werror_flag"
2110 || test ! -s conftest.err'
2111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2115 (exit $ac_status); }; } &&
2116 { ac_try='test -s conftest.$ac_objext'
2117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2121 (exit $ac_status); }; }; then
2122 for ac_declaration in \
2124 'extern "C" void std::exit (int) throw (); using std::exit;' \
2125 'extern "C" void std::exit (int); using std::exit;' \
2126 'extern "C" void exit (int) throw ();' \
2127 'extern "C" void exit (int);' \
2130 cat >conftest.$ac_ext <<_ACEOF
2133 cat confdefs.h >>conftest.$ac_ext
2134 cat >>conftest.$ac_ext <<_ACEOF
2135 /* end confdefs.h. */
2146 rm -f conftest.$ac_objext
2147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2148 (eval $ac_compile) 2>conftest.er1
2150 grep -v '^ *+' conftest.er1 >conftest.err
2152 cat conftest.err >&5
2153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2154 (exit $ac_status); } &&
2155 { ac_try='test -z "$ac_c_werror_flag"
2156 || test ! -s conftest.err'
2157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2161 (exit $ac_status); }; } &&
2162 { ac_try='test -s conftest.$ac_objext'
2163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2167 (exit $ac_status); }; }; then
2170 echo "$as_me: failed program was:" >&5
2171 sed 's/^/| /' conftest.$ac_ext >&5
2175 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2176 cat >conftest.$ac_ext <<_ACEOF
2179 cat confdefs.h >>conftest.$ac_ext
2180 cat >>conftest.$ac_ext <<_ACEOF
2181 /* end confdefs.h. */
2191 rm -f conftest.$ac_objext
2192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2193 (eval $ac_compile) 2>conftest.er1
2195 grep -v '^ *+' conftest.er1 >conftest.err
2197 cat conftest.err >&5
2198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2199 (exit $ac_status); } &&
2200 { ac_try='test -z "$ac_c_werror_flag"
2201 || test ! -s conftest.err'
2202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2206 (exit $ac_status); }; } &&
2207 { ac_try='test -s conftest.$ac_objext'
2208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2212 (exit $ac_status); }; }; then
2215 echo "$as_me: failed program was:" >&5
2216 sed 's/^/| /' conftest.$ac_ext >&5
2219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2222 if test -n "$ac_declaration"; then
2223 echo '#ifdef __cplusplus' >>confdefs.h
2224 echo $ac_declaration >>confdefs.h
2225 echo '#endif' >>confdefs.h
2229 echo "$as_me: failed program was:" >&5
2230 sed 's/^/| /' conftest.$ac_ext >&5
2233 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2235 ac_cpp='$CPP $CPPFLAGS'
2236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2240 # Extract the first word of "mysql_config", so it can be a program name with args.
2241 set dummy mysql_config; ac_word=$2
2242 echo "$as_me:$LINENO: checking for $ac_word" >&5
2243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2244 if test "${ac_cv_prog_MYSQL_CONFIG+set}" = set; then
2245 echo $ECHO_N "(cached) $ECHO_C" >&6
2247 if test -n "$MYSQL_CONFIG"; then
2248 ac_cv_prog_MYSQL_CONFIG="$MYSQL_CONFIG" # Let the user override the test.
2250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2254 test -z "$as_dir" && as_dir=.
2255 for ac_exec_ext in '' $ac_executable_extensions; do
2256 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2257 ac_cv_prog_MYSQL_CONFIG="yes"
2258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2264 test -z "$ac_cv_prog_MYSQL_CONFIG" && ac_cv_prog_MYSQL_CONFIG="no"
2267 MYSQL_CONFIG=$ac_cv_prog_MYSQL_CONFIG
2268 if test -n "$MYSQL_CONFIG"; then
2269 echo "$as_me:$LINENO: result: $MYSQL_CONFIG" >&5
2270 echo "${ECHO_T}$MYSQL_CONFIG" >&6
2272 echo "$as_me:$LINENO: result: no" >&5
2273 echo "${ECHO_T}no" >&6
2278 if test "x$mysql_with_threads" = "xyes"; then
2279 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
2280 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
2281 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
2282 echo $ECHO_N "(cached) $ECHO_C" >&6
2284 ac_check_lib_save_LIBS=$LIBS
2285 LIBS="-lpthread $LIBS"
2286 cat >conftest.$ac_ext <<_ACEOF
2289 cat confdefs.h >>conftest.$ac_ext
2290 cat >>conftest.$ac_ext <<_ACEOF
2291 /* end confdefs.h. */
2293 /* Override any gcc2 internal prototype to avoid an error. */
2297 /* We use char because int might match the return type of a gcc2
2298 builtin and then its argument prototype would still apply. */
2299 char pthread_create ();
2308 rm -f conftest.$ac_objext conftest$ac_exeext
2309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2310 (eval $ac_link) 2>conftest.er1
2312 grep -v '^ *+' conftest.er1 >conftest.err
2314 cat conftest.err >&5
2315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2316 (exit $ac_status); } &&
2317 { ac_try='test -z "$ac_c_werror_flag"
2318 || test ! -s conftest.err'
2319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2323 (exit $ac_status); }; } &&
2324 { ac_try='test -s conftest$ac_exeext'
2325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2329 (exit $ac_status); }; }; then
2330 ac_cv_lib_pthread_pthread_create=yes
2332 echo "$as_me: failed program was:" >&5
2333 sed 's/^/| /' conftest.$ac_ext >&5
2335 ac_cv_lib_pthread_pthread_create=no
2337 rm -f conftest.err conftest.$ac_objext \
2338 conftest$ac_exeext conftest.$ac_ext
2339 LIBS=$ac_check_lib_save_LIBS
2341 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
2342 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
2343 if test $ac_cv_lib_pthread_pthread_create = yes; then
2344 LIBS="-lpthread $LIBS"
2346 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
2347 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
2348 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
2349 echo $ECHO_N "(cached) $ECHO_C" >&6
2351 ac_check_lib_save_LIBS=$LIBS
2354 cat >conftest.$ac_ext <<_ACEOF
2357 cat confdefs.h >>conftest.$ac_ext
2358 cat >>conftest.$ac_ext <<_ACEOF
2359 /* end confdefs.h. */
2361 /* Override any gcc2 internal prototype to avoid an error. */
2365 /* We use char because int might match the return type of a gcc2
2366 builtin and then its argument prototype would still apply. */
2367 char pthread_create ();
2376 rm -f conftest.$ac_objext conftest$ac_exeext
2377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2378 (eval $ac_link) 2>conftest.er1
2380 grep -v '^ *+' conftest.er1 >conftest.err
2382 cat conftest.err >&5
2383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2384 (exit $ac_status); } &&
2385 { ac_try='test -z "$ac_c_werror_flag"
2386 || test ! -s conftest.err'
2387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391 (exit $ac_status); }; } &&
2392 { ac_try='test -s conftest$ac_exeext'
2393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397 (exit $ac_status); }; }; then
2398 ac_cv_lib_c_r_pthread_create=yes
2400 echo "$as_me: failed program was:" >&5
2401 sed 's/^/| /' conftest.$ac_ext >&5
2403 ac_cv_lib_c_r_pthread_create=no
2405 rm -f conftest.err conftest.$ac_objext \
2406 conftest$ac_exeext conftest.$ac_ext
2407 LIBS=$ac_check_lib_save_LIBS
2409 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
2410 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
2411 if test $ac_cv_lib_c_r_pthread_create = yes; then
2414 mysql_with_threads=no
2423 if test "x$mysql_with_threads" = "xyes"; then
2424 if test "x$MYSQL_CONFIG" = "xyes"; then
2425 mysql_libs="$(mysql_config --libs_r)"
2427 LIBS="$mysql_libs $LIBS"
2428 echo "$as_me:$LINENO: checking for mysql_init in -lmysqlclient_r (using mysql_config)" >&5
2429 echo $ECHO_N "checking for mysql_init in -lmysqlclient_r (using mysql_config)... $ECHO_C" >&6
2430 cat >conftest.$ac_ext <<_ACEOF
2433 cat confdefs.h >>conftest.$ac_ext
2434 cat >>conftest.$ac_ext <<_ACEOF
2435 /* end confdefs.h. */
2437 /* Override any gcc2 internal prototype to avoid an error. */
2441 /* We use char because int might match the return type of a gcc2
2442 builtin and then its argument prototype would still apply. */
2452 rm -f conftest.$ac_objext conftest$ac_exeext
2453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2454 (eval $ac_link) 2>conftest.er1
2456 grep -v '^ *+' conftest.er1 >conftest.err
2458 cat conftest.err >&5
2459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2460 (exit $ac_status); } &&
2461 { ac_try='test -z "$ac_c_werror_flag"
2462 || test ! -s conftest.err'
2463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467 (exit $ac_status); }; } &&
2468 { ac_try='test -s conftest$ac_exeext'
2469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473 (exit $ac_status); }; }; then
2474 have_libmysqlclient_r=yes
2476 echo "$as_me: failed program was:" >&5
2477 sed 's/^/| /' conftest.$ac_ext >&5
2480 rm -f conftest.err conftest.$ac_objext \
2481 conftest$ac_exeext conftest.$ac_ext
2483 if test "x$have_libmysqlclient_r" = "xyes"; then
2484 echo "$as_me:$LINENO: result: yes" >&5
2485 echo "${ECHO_T}yes" >&6
2486 SMART_LIBS="$mysql_libs $SMART_LIBS"
2488 echo "$as_me:$LINENO: result: no" >&5
2489 echo "${ECHO_T}no" >&6
2492 if test "x$have_libmysqlclient_r" != "xyes"; then
2493 smart_try_dir="$mysql_lib_dir /usr/lib /usr/lib/mysql \
2494 /usr/local/lib/mysql /usr/local/mysql/lib/mysql"
2497 sm_lib_safe=`echo "mysqlclient_r" | sed 'y%./+-%__p_%'`
2498 sm_func_safe=`echo "mysql_init" | sed 'y%./+-%__p_%'`
2499 echo "$as_me:$LINENO: checking for mysql_init in -lmysqlclient_r" >&5
2500 echo $ECHO_N "checking for mysql_init in -lmysqlclient_r... $ECHO_C" >&6
2506 if test "x$smart_try_dir" != "x"; then
2507 for try in $smart_try_dir; do
2508 LIBS="-L$try -lmysqlclient_r $old_LIBS"
2509 cat >conftest.$ac_ext <<_ACEOF
2512 cat confdefs.h >>conftest.$ac_ext
2513 cat >>conftest.$ac_ext <<_ACEOF
2514 /* end confdefs.h. */
2515 extern char mysql_init();
2524 rm -f conftest.$ac_objext conftest$ac_exeext
2525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2526 (eval $ac_link) 2>conftest.er1
2528 grep -v '^ *+' conftest.er1 >conftest.err
2530 cat conftest.err >&5
2531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532 (exit $ac_status); } &&
2533 { ac_try='test -z "$ac_c_werror_flag"
2534 || test ! -s conftest.err'
2535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539 (exit $ac_status); }; } &&
2540 { ac_try='test -s conftest$ac_exeext'
2541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2545 (exit $ac_status); }; }; then
2546 smart_lib="-L$try -lmysqlclient_r"
2548 echo "$as_me: failed program was:" >&5
2549 sed 's/^/| /' conftest.$ac_ext >&5
2552 rm -f conftest.err conftest.$ac_objext \
2553 conftest$ac_exeext conftest.$ac_ext
2554 if test "x$smart_lib" != "x"; then
2561 if test "x$smart_lib" = "x"; then
2562 LIBS="-lmysqlclient_r $old_LIBS"
2563 cat >conftest.$ac_ext <<_ACEOF
2566 cat confdefs.h >>conftest.$ac_ext
2567 cat >>conftest.$ac_ext <<_ACEOF
2568 /* end confdefs.h. */
2569 extern char mysql_init();
2578 rm -f conftest.$ac_objext conftest$ac_exeext
2579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2580 (eval $ac_link) 2>conftest.er1
2582 grep -v '^ *+' conftest.er1 >conftest.err
2584 cat conftest.err >&5
2585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586 (exit $ac_status); } &&
2587 { ac_try='test -z "$ac_c_werror_flag"
2588 || test ! -s conftest.err'
2589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593 (exit $ac_status); }; } &&
2594 { ac_try='test -s conftest$ac_exeext'
2595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599 (exit $ac_status); }; }; then
2600 smart_lib="-lmysqlclient_r"
2602 echo "$as_me: failed program was:" >&5
2603 sed 's/^/| /' conftest.$ac_ext >&5
2606 rm -f conftest.err conftest.$ac_objext \
2607 conftest$ac_exeext conftest.$ac_ext
2611 if test "x$smart_lib" = "x"; then
2614 if test "x$LOCATE" != "x"; then
2616 file=libmysqlclient_r${libltdl_cv_shlibext}
2618 for x in `${LOCATE} $file 2>/dev/null`; do
2619 base=`echo $x | sed "s%/${file}%%"`
2620 if test "x$x" = "x$base"; then
2624 dir=`${DIRNAME} $x 2>/dev/null`
2625 exclude=`echo ${dir} | ${GREP} /home`
2626 if test "x$exclude" != "x"; then
2630 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
2631 if test "x$already" = "x"; then
2637 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
2641 if test "x$LOCATE" != "x"; then
2643 file=libmysqlclient_r.a
2645 for x in `${LOCATE} $file 2>/dev/null`; do
2646 base=`echo $x | sed "s%/${file}%%"`
2647 if test "x$x" = "x$base"; then
2651 dir=`${DIRNAME} $x 2>/dev/null`
2652 exclude=`echo ${dir} | ${GREP} /home`
2653 if test "x$exclude" != "x"; then
2657 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
2658 if test "x$already" = "x"; then
2664 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
2667 for try in $smart_lib_dir /usr/local/lib /opt/lib; do
2668 LIBS="-L$try -lmysqlclient_r $old_LIBS"
2669 cat >conftest.$ac_ext <<_ACEOF
2672 cat confdefs.h >>conftest.$ac_ext
2673 cat >>conftest.$ac_ext <<_ACEOF
2674 /* end confdefs.h. */
2675 extern char mysql_init();
2684 rm -f conftest.$ac_objext conftest$ac_exeext
2685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2686 (eval $ac_link) 2>conftest.er1
2688 grep -v '^ *+' conftest.er1 >conftest.err
2690 cat conftest.err >&5
2691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692 (exit $ac_status); } &&
2693 { ac_try='test -z "$ac_c_werror_flag"
2694 || test ! -s conftest.err'
2695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699 (exit $ac_status); }; } &&
2700 { ac_try='test -s conftest$ac_exeext'
2701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2705 (exit $ac_status); }; }; then
2706 smart_lib="-L$try -lmysqlclient_r"
2708 echo "$as_me: failed program was:" >&5
2709 sed 's/^/| /' conftest.$ac_ext >&5
2712 rm -f conftest.err conftest.$ac_objext \
2713 conftest$ac_exeext conftest.$ac_ext
2714 if test "x$smart_lib" != "x"; then
2721 if test "x$smart_lib" != "x"; then
2722 echo "$as_me:$LINENO: result: yes" >&5
2723 echo "${ECHO_T}yes" >&6
2724 eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
2725 LIBS="$smart_lib $old_LIBS"
2726 SMART_LIBS="$smart_lib $SMART_LIBS"
2728 echo "$as_me:$LINENO: result: no" >&5
2729 echo "${ECHO_T}no" >&6
2732 if test "x$ac_cv_lib_mysqlclient_r_mysql_init" != "xyes"
2734 { echo "$as_me:$LINENO: WARNING: mysql libraries not found. Use --with-mysql-lib-dir=<path>." >&5
2735 echo "$as_me: WARNING: mysql libraries not found. Use --with-mysql-lib-dir=<path>." >&2;}
2736 targetname="" # disable module
2740 if test "x$MYSQL_CONFIG" = "xyes"; then
2741 mysql_libs="$(mysql_config --libs)"
2743 LIBS="$mysql_libs $LIBS"
2744 echo "$as_me:$LINENO: checking for mysql_init in -lmysqlclient (using mysql_config)" >&5
2745 echo $ECHO_N "checking for mysql_init in -lmysqlclient (using mysql_config)... $ECHO_C" >&6
2746 cat >conftest.$ac_ext <<_ACEOF
2749 cat confdefs.h >>conftest.$ac_ext
2750 cat >>conftest.$ac_ext <<_ACEOF
2751 /* end confdefs.h. */
2753 /* Override any gcc2 internal prototype to avoid an error. */
2757 /* We use char because int might match the return type of a gcc2
2758 builtin and then its argument prototype would still apply. */
2768 rm -f conftest.$ac_objext conftest$ac_exeext
2769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2770 (eval $ac_link) 2>conftest.er1
2772 grep -v '^ *+' conftest.er1 >conftest.err
2774 cat conftest.err >&5
2775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776 (exit $ac_status); } &&
2777 { ac_try='test -z "$ac_c_werror_flag"
2778 || test ! -s conftest.err'
2779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783 (exit $ac_status); }; } &&
2784 { ac_try='test -s conftest$ac_exeext'
2785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789 (exit $ac_status); }; }; then
2790 have_libmysqlclient=yes
2792 echo "$as_me: failed program was:" >&5
2793 sed 's/^/| /' conftest.$ac_ext >&5
2796 rm -f conftest.err conftest.$ac_objext \
2797 conftest$ac_exeext conftest.$ac_ext
2799 if test "x$have_libmysqlclient" = "xyes"; then
2800 echo "$as_me:$LINENO: result: yes" >&5
2801 echo "${ECHO_T}yes" >&6
2802 SMART_LIBS="$mysql_libs $SMART_LIBS"
2804 echo "$as_me:$LINENO: result: no" >&5
2805 echo "${ECHO_T}no" >&6
2808 if test "x$have_libmysqlclient" != "xyes"; then
2809 smart_try_dir="$mysql_lib_dir /usr/lib /usr/lib/mysql \
2810 /usr/local/lib/mysql /usr/local/mysql/lib/mysql"
2813 sm_lib_safe=`echo "mysqlclient" | sed 'y%./+-%__p_%'`
2814 sm_func_safe=`echo "mysql_init" | sed 'y%./+-%__p_%'`
2815 echo "$as_me:$LINENO: checking for mysql_init in -lmysqlclient" >&5
2816 echo $ECHO_N "checking for mysql_init in -lmysqlclient... $ECHO_C" >&6
2822 if test "x$smart_try_dir" != "x"; then
2823 for try in $smart_try_dir; do
2824 LIBS="-L$try -lmysqlclient $old_LIBS"
2825 cat >conftest.$ac_ext <<_ACEOF
2828 cat confdefs.h >>conftest.$ac_ext
2829 cat >>conftest.$ac_ext <<_ACEOF
2830 /* end confdefs.h. */
2831 extern char mysql_init();
2840 rm -f conftest.$ac_objext conftest$ac_exeext
2841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2842 (eval $ac_link) 2>conftest.er1
2844 grep -v '^ *+' conftest.er1 >conftest.err
2846 cat conftest.err >&5
2847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848 (exit $ac_status); } &&
2849 { ac_try='test -z "$ac_c_werror_flag"
2850 || test ! -s conftest.err'
2851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2855 (exit $ac_status); }; } &&
2856 { ac_try='test -s conftest$ac_exeext'
2857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2861 (exit $ac_status); }; }; then
2862 smart_lib="-L$try -lmysqlclient"
2864 echo "$as_me: failed program was:" >&5
2865 sed 's/^/| /' conftest.$ac_ext >&5
2868 rm -f conftest.err conftest.$ac_objext \
2869 conftest$ac_exeext conftest.$ac_ext
2870 if test "x$smart_lib" != "x"; then
2877 if test "x$smart_lib" = "x"; then
2878 LIBS="-lmysqlclient $old_LIBS"
2879 cat >conftest.$ac_ext <<_ACEOF
2882 cat confdefs.h >>conftest.$ac_ext
2883 cat >>conftest.$ac_ext <<_ACEOF
2884 /* end confdefs.h. */
2885 extern char mysql_init();
2894 rm -f conftest.$ac_objext conftest$ac_exeext
2895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2896 (eval $ac_link) 2>conftest.er1
2898 grep -v '^ *+' conftest.er1 >conftest.err
2900 cat conftest.err >&5
2901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902 (exit $ac_status); } &&
2903 { ac_try='test -z "$ac_c_werror_flag"
2904 || test ! -s conftest.err'
2905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909 (exit $ac_status); }; } &&
2910 { ac_try='test -s conftest$ac_exeext'
2911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915 (exit $ac_status); }; }; then
2916 smart_lib="-lmysqlclient"
2918 echo "$as_me: failed program was:" >&5
2919 sed 's/^/| /' conftest.$ac_ext >&5
2922 rm -f conftest.err conftest.$ac_objext \
2923 conftest$ac_exeext conftest.$ac_ext
2927 if test "x$smart_lib" = "x"; then
2930 if test "x$LOCATE" != "x"; then
2932 file=libmysqlclient${libltdl_cv_shlibext}
2934 for x in `${LOCATE} $file 2>/dev/null`; do
2935 base=`echo $x | sed "s%/${file}%%"`
2936 if test "x$x" = "x$base"; then
2940 dir=`${DIRNAME} $x 2>/dev/null`
2941 exclude=`echo ${dir} | ${GREP} /home`
2942 if test "x$exclude" != "x"; then
2946 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
2947 if test "x$already" = "x"; then
2953 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
2957 if test "x$LOCATE" != "x"; then
2959 file=libmysqlclient.a
2961 for x in `${LOCATE} $file 2>/dev/null`; do
2962 base=`echo $x | sed "s%/${file}%%"`
2963 if test "x$x" = "x$base"; then
2967 dir=`${DIRNAME} $x 2>/dev/null`
2968 exclude=`echo ${dir} | ${GREP} /home`
2969 if test "x$exclude" != "x"; then
2973 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
2974 if test "x$already" = "x"; then
2980 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
2983 for try in $smart_lib_dir /usr/local/lib /opt/lib; do
2984 LIBS="-L$try -lmysqlclient $old_LIBS"
2985 cat >conftest.$ac_ext <<_ACEOF
2988 cat confdefs.h >>conftest.$ac_ext
2989 cat >>conftest.$ac_ext <<_ACEOF
2990 /* end confdefs.h. */
2991 extern char mysql_init();
3000 rm -f conftest.$ac_objext conftest$ac_exeext
3001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3002 (eval $ac_link) 2>conftest.er1
3004 grep -v '^ *+' conftest.er1 >conftest.err
3006 cat conftest.err >&5
3007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008 (exit $ac_status); } &&
3009 { ac_try='test -z "$ac_c_werror_flag"
3010 || test ! -s conftest.err'
3011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3015 (exit $ac_status); }; } &&
3016 { ac_try='test -s conftest$ac_exeext'
3017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3021 (exit $ac_status); }; }; then
3022 smart_lib="-L$try -lmysqlclient"
3024 echo "$as_me: failed program was:" >&5
3025 sed 's/^/| /' conftest.$ac_ext >&5
3028 rm -f conftest.err conftest.$ac_objext \
3029 conftest$ac_exeext conftest.$ac_ext
3030 if test "x$smart_lib" != "x"; then
3037 if test "x$smart_lib" != "x"; then
3038 echo "$as_me:$LINENO: result: yes" >&5
3039 echo "${ECHO_T}yes" >&6
3040 eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
3041 LIBS="$smart_lib $old_LIBS"
3042 SMART_LIBS="$smart_lib $SMART_LIBS"
3044 echo "$as_me:$LINENO: result: no" >&5
3045 echo "${ECHO_T}no" >&6
3048 if test "x$ac_cv_lib_mysqlclient_mysql_init" != "xyes"
3050 { echo "$as_me:$LINENO: WARNING: mysql libraries not found. Use --with-mysql-lib-dir=<path>." >&5
3051 echo "$as_me: WARNING: mysql libraries not found. Use --with-mysql-lib-dir=<path>." >&2;}
3052 targetname="" # disable module
3058 if test "x$MYSQL_CONFIG" = "xyes"; then
3059 mysql_cflags="$(mysql_config --cflags)"
3060 old_CFLAGS="$CFLAGS"
3061 CFLAGS="$CFLAGS $mysql_cflags"
3062 echo "$as_me:$LINENO: checking for mysql.h (using mysql_config)" >&5
3063 echo $ECHO_N "checking for mysql.h (using mysql_config)... $ECHO_C" >&6
3064 cat >conftest.$ac_ext <<_ACEOF
3067 cat confdefs.h >>conftest.$ac_ext
3068 cat >>conftest.$ac_ext <<_ACEOF
3069 /* end confdefs.h. */
3079 rm -f conftest.$ac_objext
3080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3081 (eval $ac_compile) 2>conftest.er1
3083 grep -v '^ *+' conftest.er1 >conftest.err
3085 cat conftest.err >&5
3086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087 (exit $ac_status); } &&
3088 { ac_try='test -z "$ac_c_werror_flag"
3089 || test ! -s conftest.err'
3090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3094 (exit $ac_status); }; } &&
3095 { ac_try='test -s conftest.$ac_objext'
3096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100 (exit $ac_status); }; }; then
3103 echo "$as_me: failed program was:" >&5
3104 sed 's/^/| /' conftest.$ac_ext >&5
3107 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3108 if test "x$have_mysql_h" = "xyes"; then
3109 echo "$as_me:$LINENO: result: yes" >&5
3110 echo "${ECHO_T}yes" >&6
3112 cat >>confdefs.h <<\_ACEOF
3113 #define HAVE_MYSQL_H
3116 SMART_CFLAGS="$SMART_CFLAGS $mysql_cflags"
3118 echo "$as_me:$LINENO: result: no" >&5
3119 echo "${ECHO_T}no" >&6
3121 CFLAGS="$old_CFLAGS"
3123 if test "x$have_mysql_h" != "xyes"; then
3124 smart_try_dir="$mysql_include_dir /usr/local/include \
3125 /usr/local/mysql/include"
3128 ac_safe=`echo "mysql/mysql.h" | sed 'y%./+-%__pm%'`
3129 echo "$as_me:$LINENO: checking for mysql/mysql.h" >&5
3130 echo $ECHO_N "checking for mysql/mysql.h... $ECHO_C" >&6
3132 old_CFLAGS="$CFLAGS"
3136 if test "x$smart_try_dir" != "x"; then
3137 for try in $smart_try_dir; do
3138 CFLAGS="$old_CFLAGS -I$try"
3139 cat >conftest.$ac_ext <<_ACEOF
3142 cat confdefs.h >>conftest.$ac_ext
3143 cat >>conftest.$ac_ext <<_ACEOF
3144 /* end confdefs.h. */
3146 #include <mysql/mysql.h>
3155 rm -f conftest.$ac_objext
3156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3157 (eval $ac_compile) 2>conftest.er1
3159 grep -v '^ *+' conftest.er1 >conftest.err
3161 cat conftest.err >&5
3162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163 (exit $ac_status); } &&
3164 { ac_try='test -z "$ac_c_werror_flag"
3165 || test ! -s conftest.err'
3166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170 (exit $ac_status); }; } &&
3171 { ac_try='test -s conftest.$ac_objext'
3172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176 (exit $ac_status); }; }; then
3177 smart_include="-I$try"
3179 echo "$as_me: failed program was:" >&5
3180 sed 's/^/| /' conftest.$ac_ext >&5
3184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3185 if test "x$smart_include" != "x"; then
3189 CFLAGS="$old_CFLAGS"
3192 if test "x$smart_include" = "x"; then
3193 cat >conftest.$ac_ext <<_ACEOF
3196 cat confdefs.h >>conftest.$ac_ext
3197 cat >>conftest.$ac_ext <<_ACEOF
3198 /* end confdefs.h. */
3200 #include <mysql/mysql.h>
3209 rm -f conftest.$ac_objext
3210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3211 (eval $ac_compile) 2>conftest.er1
3213 grep -v '^ *+' conftest.er1 >conftest.err
3215 cat conftest.err >&5
3216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3217 (exit $ac_status); } &&
3218 { ac_try='test -z "$ac_c_werror_flag"
3219 || test ! -s conftest.err'
3220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3224 (exit $ac_status); }; } &&
3225 { ac_try='test -s conftest.$ac_objext'
3226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3230 (exit $ac_status); }; }; then
3233 echo "$as_me: failed program was:" >&5
3234 sed 's/^/| /' conftest.$ac_ext >&5
3238 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3241 if test "x$smart_include" = "x"; then
3244 if test "x$LOCATE" != "x"; then
3248 for x in `${LOCATE} $file 2>/dev/null`; do
3249 base=`echo $x | sed "s%/${file}%%"`
3250 if test "x$x" = "x$base"; then
3254 dir=`${DIRNAME} $x 2>/dev/null`
3255 exclude=`echo ${dir} | ${GREP} /home`
3256 if test "x$exclude" != "x"; then
3260 already=`echo \$smart_include_dir ${DIRS} | ${GREP} ${dir}`
3261 if test "x$already" = "x"; then
3267 eval "smart_include_dir=\"\$smart_include_dir $DIRS\""
3270 for try in $smart_include_dir /usr/local/include /opt/include; do
3271 CFLAGS="$old_CFLAGS -I$try"
3272 cat >conftest.$ac_ext <<_ACEOF
3275 cat confdefs.h >>conftest.$ac_ext
3276 cat >>conftest.$ac_ext <<_ACEOF
3277 /* end confdefs.h. */
3279 #include <mysql/mysql.h>
3288 rm -f conftest.$ac_objext
3289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3290 (eval $ac_compile) 2>conftest.er1
3292 grep -v '^ *+' conftest.er1 >conftest.err
3294 cat conftest.err >&5
3295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296 (exit $ac_status); } &&
3297 { ac_try='test -z "$ac_c_werror_flag"
3298 || test ! -s conftest.err'
3299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3303 (exit $ac_status); }; } &&
3304 { ac_try='test -s conftest.$ac_objext'
3305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3309 (exit $ac_status); }; }; then
3310 smart_include="-I$try"
3312 echo "$as_me: failed program was:" >&5
3313 sed 's/^/| /' conftest.$ac_ext >&5
3317 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3318 if test "x$smart_include" != "x"; then
3322 CFLAGS="$old_CFLAGS"
3325 if test "x$smart_include" != "x"; then
3326 echo "$as_me:$LINENO: result: yes" >&5
3327 echo "${ECHO_T}yes" >&6
3328 eval "ac_cv_header_$ac_safe=yes"
3329 CFLAGS="$old_CFLAGS $smart_include"
3330 SMART_CFLAGS="$SMART_CFLAGS $smart_include"
3332 echo "$as_me:$LINENO: result: no" >&5
3333 echo "${ECHO_T}no" >&6
3336 if test "$ac_cv_header_mysql_mysql_h" = "yes"; then
3338 cat >>confdefs.h <<\_ACEOF
3339 #define HAVE_MYSQL_MYSQL_H
3343 { echo "$as_me:$LINENO: WARNING: mysql headers not found. Use --with-mysql-include-dir=<path>." >&5
3344 echo "$as_me: WARNING: mysql headers not found. Use --with-mysql-include-dir=<path>." >&2;}
3345 targetname="" # disable module
3349 if test "x$targetname" = "x"; then
3350 { echo "$as_me:$LINENO: WARNING: sql submodule 'mysql' disabled" >&5
3351 echo "$as_me: WARNING: sql submodule 'mysql' disabled" >&2;}
3355 echo \*\*\* module rlm_sql_mysql is disabled.
3358 sql_mysql_ldflags="$SMART_LIBS"
3359 sql_mysql_cflags="$SMART_CFLAGS"
3363 ac_config_files="$ac_config_files Makefile"
3364 cat >confcache <<\_ACEOF
3365 # This file is a shell script that caches the results of configure
3366 # tests run on this system so they can be shared between configure
3367 # scripts and configure runs, see configure's option --config-cache.
3368 # It is not useful on other systems. If it contains results you don't
3369 # want to keep, you may remove or edit it.
3371 # config.status only pays attention to the cache file if you give it
3372 # the --recheck option to rerun configure.
3374 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3375 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3380 # The following way of writing the cache mishandles newlines in values,
3381 # but we know of no workaround that is simple, portable, and efficient.
3382 # So, don't put newlines in cache variables' values.
3383 # Ultrix sh set writes to stderr and can't be redirected directly,
3384 # and sets the high bit in the cache file unless we assign to the vars.
3387 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3389 # `set' does not quote correctly, so add quotes (double-quote
3390 # substitution turns \\\\ into \\, and sed turns \\ into \).
3393 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3396 # `set' quotes correctly as required by POSIX, so do not add quotes.
3398 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3405 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3407 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3409 if diff $cache_file confcache >/dev/null 2>&1; then :; else
3410 if test -w $cache_file; then
3411 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3412 cat confcache >$cache_file
3414 echo "not updating unwritable cache $cache_file"
3419 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3420 # Let make expand exec_prefix.
3421 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3423 # VPATH may cause trouble with some makes, so we remove $(srcdir),
3424 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3425 # trailing colons and then remove the whole line if VPATH becomes empty
3426 # (actually we leave an empty line to preserve line numbers).
3427 if test "x$srcdir" = x.; then
3428 ac_vpsub='/^[ ]*VPATH[ ]*=/{
3429 s/:*\$(srcdir):*/:/;
3430 s/:*\${srcdir}:*/:/;
3432 s/^\([^=]*=[ ]*\):*/\1/;
3438 DEFS=-DHAVE_CONFIG_H
3442 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3443 # 1. Remove the extension, and $U if already installed.
3444 ac_i=`echo "$ac_i" |
3445 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
3447 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
3448 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
3452 LTLIBOBJS=$ac_ltlibobjs
3456 : ${CONFIG_STATUS=./config.status}
3457 ac_clean_files_save=$ac_clean_files
3458 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3459 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
3460 echo "$as_me: creating $CONFIG_STATUS" >&6;}
3461 cat >$CONFIG_STATUS <<_ACEOF
3463 # Generated by $as_me.
3464 # Run this file to recreate the current configuration.
3465 # Compiler output produced by configure, useful for debugging
3466 # configure, is in config.log if it exists.
3471 SHELL=\${CONFIG_SHELL-$SHELL}
3474 cat >>$CONFIG_STATUS <<\_ACEOF
3475 ## --------------------- ##
3476 ## M4sh Initialization. ##
3477 ## --------------------- ##
3479 # Be Bourne compatible
3480 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3483 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
3484 # is contrary to our usage. Disable this feature.
3485 alias -g '${1+"$@"}'='"$@"'
3486 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
3489 DUALCASE=1; export DUALCASE # for MKS sh
3491 # Support unset when possible.
3492 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3499 # Work around bugs in pre-3.0 UWIN ksh.
3500 $as_unset ENV MAIL MAILPATH
3507 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
3508 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
3509 LC_TELEPHONE LC_TIME
3511 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
3512 eval $as_var=C; export $as_var
3518 # Required to use basename.
3519 if expr a : '\(a\)' >/dev/null 2>&1; then
3525 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
3526 as_basename=basename
3532 # Name of the executable.
3533 as_me=`$as_basename "$0" ||
3534 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3535 X"$0" : 'X\(//\)$' \| \
3536 X"$0" : 'X\(/\)$' \| \
3537 . : '\(.\)' 2>/dev/null ||
3539 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
3540 /^X\/\(\/\/\)$/{ s//\1/; q; }
3541 /^X\/\(\/\).*/{ s//\1/; q; }
3545 # PATH needs CR, and LINENO needs CR and PATH.
3546 # Avoid depending upon Character Ranges.
3547 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3548 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3549 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3550 as_cr_digits='0123456789'
3551 as_cr_alnum=$as_cr_Letters$as_cr_digits
3553 # The user is always right.
3554 if test "${PATH_SEPARATOR+set}" != set; then
3555 echo "#! /bin/sh" >conf$$.sh
3556 echo "exit 0" >>conf$$.sh
3558 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3569 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3570 test "x$as_lineno_1" != "x$as_lineno_2" &&
3571 test "x$as_lineno_3" = "x$as_lineno_2" || {
3572 # Find who we are. Look in the path if we contain no path at all
3575 *[\\/]* ) as_myself=$0 ;;
3576 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3580 test -z "$as_dir" && as_dir=.
3581 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3586 # We did not find ourselves, most probably we were run as `sh COMMAND'
3587 # in which case we are not to be found in the path.
3588 if test "x$as_myself" = x; then
3591 if test ! -f "$as_myself"; then
3592 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
3593 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
3594 { (exit 1); exit 1; }; }
3596 case $CONFIG_SHELL in
3598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3599 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
3602 test -z "$as_dir" && as_dir=.
3603 for as_base in sh bash ksh sh5; do
3606 if ("$as_dir/$as_base" -c '
3609 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3610 test "x$as_lineno_1" != "x$as_lineno_2" &&
3611 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
3612 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
3613 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
3614 CONFIG_SHELL=$as_dir/$as_base
3616 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
3624 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
3625 # uniformly replaced by the line number. The first 'sed' inserts a
3626 # line-number line before each line; the second 'sed' does the real
3627 # work. The second script uses 'N' to pair each line-number line
3628 # with the numbered line, and appends trailing '-' during
3629 # substitution so that $LINENO is not a special case at line end.
3630 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
3631 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
3632 sed '=' <$as_myself |
3637 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
3640 s,^['$as_cr_digits']*\n,,
3642 chmod +x $as_me.lineno ||
3643 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
3644 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
3645 { (exit 1); exit 1; }; }
3647 # Don't try to exec as it changes $[0], causing all sort of problems
3648 # (the dirname of $[0] is not the place where we might find the
3649 # original and so on. Autoconf is especially sensible to this).
3651 # Exit status is that of the last command.
3656 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
3657 *c*,-n*) ECHO_N= ECHO_C='
3659 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
3660 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
3663 if expr a : '\(a\)' >/dev/null 2>&1; then
3669 rm -f conf$$ conf$$.exe conf$$.file
3671 if ln -s conf$$.file conf$$ 2>/dev/null; then
3672 # We could just check for DJGPP; but this test a) works b) is more generic
3673 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
3674 if test -f conf$$.exe; then
3675 # Don't use ln at all; we don't have any links
3680 elif ln conf$$.file conf$$ 2>/dev/null; then
3685 rm -f conf$$ conf$$.exe conf$$.file
3687 if mkdir -p . 2>/dev/null; then
3690 test -d ./-p && rmdir ./-p
3694 as_executable_p="test -f"
3696 # Sed expression to map a string onto a valid CPP name.
3697 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3699 # Sed expression to map a string onto a valid variable name.
3700 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3704 # We need space, tab and new line, in precisely that order.
3714 # Open the log real soon, to keep \$[0] and so on meaningful, and to
3715 # report actual input values of CONFIG_FILES etc. instead of their
3716 # values after options handling. Logging --version etc. is OK.
3720 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3721 ## Running $as_me. ##
3726 This file was extended by $as_me, which was
3727 generated by GNU Autoconf 2.59. Invocation command line was
3729 CONFIG_FILES = $CONFIG_FILES
3730 CONFIG_HEADERS = $CONFIG_HEADERS
3731 CONFIG_LINKS = $CONFIG_LINKS
3732 CONFIG_COMMANDS = $CONFIG_COMMANDS
3736 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
3740 # Files that config.status was made for.
3741 if test -n "$ac_config_files"; then
3742 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
3745 if test -n "$ac_config_headers"; then
3746 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
3749 if test -n "$ac_config_links"; then
3750 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
3753 if test -n "$ac_config_commands"; then
3754 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
3757 cat >>$CONFIG_STATUS <<\_ACEOF
3760 \`$as_me' instantiates files from templates according to the
3761 current configuration.
3763 Usage: $0 [OPTIONS] [FILE]...
3765 -h, --help print this help, then exit
3766 -V, --version print version number, then exit
3767 -q, --quiet do not print progress messages
3768 -d, --debug don't remove temporary files
3769 --recheck update $as_me by reconfiguring in the same conditions
3770 --file=FILE[:TEMPLATE]
3771 instantiate the configuration file FILE
3772 --header=FILE[:TEMPLATE]
3773 instantiate the configuration header FILE
3775 Configuration files:
3778 Configuration headers:
3781 Report bugs to <bug-autoconf@gnu.org>."
3784 cat >>$CONFIG_STATUS <<_ACEOF
3787 configured by $0, generated by GNU Autoconf 2.59,
3788 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
3790 Copyright (C) 2003 Free Software Foundation, Inc.
3791 This config.status script is free software; the Free Software Foundation
3792 gives unlimited permission to copy, distribute and modify it."
3796 cat >>$CONFIG_STATUS <<\_ACEOF
3797 # If no file are specified by the user, then we need to provide default
3798 # value. By we need to know if files were specified by the user.
3804 ac_option=`expr "x$1" : 'x\([^=]*\)='`
3805 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
3813 *) # This is not an option, so the user has probably given explicit
3816 ac_need_defaults=false;;
3820 # Handling of the options.
3822 cat >>$CONFIG_STATUS <<\_ACEOF
3823 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3825 --version | --vers* | -V )
3826 echo "$ac_cs_version"; exit 0 ;;
3828 # Conflict between --help and --header
3829 { { echo "$as_me:$LINENO: error: ambiguous option: $1
3830 Try \`$0 --help' for more information." >&5
3831 echo "$as_me: error: ambiguous option: $1
3832 Try \`$0 --help' for more information." >&2;}
3833 { (exit 1); exit 1; }; };;
3834 --help | --hel | -h )
3835 echo "$ac_cs_usage"; exit 0 ;;
3836 --debug | --d* | -d )
3838 --file | --fil | --fi | --f )
3840 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
3841 ac_need_defaults=false;;
3842 --header | --heade | --head | --hea )
3844 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
3845 ac_need_defaults=false;;
3846 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3847 | -silent | --silent | --silen | --sile | --sil | --si | --s)
3851 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
3852 Try \`$0 --help' for more information." >&5
3853 echo "$as_me: error: unrecognized option: $1
3854 Try \`$0 --help' for more information." >&2;}
3855 { (exit 1); exit 1; }; } ;;
3857 *) ac_config_targets="$ac_config_targets $1" ;;
3863 ac_configure_extra_args=
3865 if $ac_cs_silent; then
3867 ac_configure_extra_args="$ac_configure_extra_args --silent"
3871 cat >>$CONFIG_STATUS <<_ACEOF
3872 if \$ac_cs_recheck; then
3873 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
3874 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
3883 cat >>$CONFIG_STATUS <<\_ACEOF
3884 for ac_config_target in $ac_config_targets
3886 case "$ac_config_target" in
3887 # Handling of arguments.
3888 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
3889 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
3890 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
3891 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
3892 { (exit 1); exit 1; }; };;
3896 # If the user did not use the arguments to specify the items to instantiate,
3897 # then the envvar interface is used. Set only those that are not.
3898 # We use the long form for the default assignment because of an extremely
3899 # bizarre bug on SunOS 4.1.3.
3900 if $ac_need_defaults; then
3901 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3902 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
3905 # Have a temporary directory for convenience. Make it in the build tree
3906 # simply because there is no reason to put it here, and in addition,
3907 # creating and moving files from /tmp can sometimes cause problems.
3908 # Create a temporary directory, and hook for its removal unless debugging.
3911 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3912 trap '{ (exit 1); exit 1; }' 1 2 13 15
3915 # Create a (secure) tmp directory for tmp files.
3918 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
3919 test -n "$tmp" && test -d "$tmp"
3922 tmp=./confstat$$-$RANDOM
3923 (umask 077 && mkdir $tmp)
3926 echo "$me: cannot create a temporary directory in ." >&2
3927 { (exit 1); exit 1; }
3932 cat >>$CONFIG_STATUS <<_ACEOF
3935 # CONFIG_FILES section.
3938 # No need to generate the scripts if there are no CONFIG_FILES.
3939 # This happens for instance when ./config.status config.h
3940 if test -n "\$CONFIG_FILES"; then
3941 # Protect against being on the right side of a sed subst in config.status.
3942 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
3943 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
3944 s,@SHELL@,$SHELL,;t t
3945 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
3946 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
3947 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
3948 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
3949 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
3950 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
3951 s,@exec_prefix@,$exec_prefix,;t t
3952 s,@prefix@,$prefix,;t t
3953 s,@program_transform_name@,$program_transform_name,;t t
3954 s,@bindir@,$bindir,;t t
3955 s,@sbindir@,$sbindir,;t t
3956 s,@libexecdir@,$libexecdir,;t t
3957 s,@datadir@,$datadir,;t t
3958 s,@sysconfdir@,$sysconfdir,;t t
3959 s,@sharedstatedir@,$sharedstatedir,;t t
3960 s,@localstatedir@,$localstatedir,;t t
3961 s,@libdir@,$libdir,;t t
3962 s,@includedir@,$includedir,;t t
3963 s,@oldincludedir@,$oldincludedir,;t t
3964 s,@infodir@,$infodir,;t t
3965 s,@mandir@,$mandir,;t t
3966 s,@build_alias@,$build_alias,;t t
3967 s,@host_alias@,$host_alias,;t t
3968 s,@target_alias@,$target_alias,;t t
3970 s,@ECHO_C@,$ECHO_C,;t t
3971 s,@ECHO_N@,$ECHO_N,;t t
3972 s,@ECHO_T@,$ECHO_T,;t t
3975 s,@CFLAGS@,$CFLAGS,;t t
3976 s,@LDFLAGS@,$LDFLAGS,;t t
3977 s,@CPPFLAGS@,$CPPFLAGS,;t t
3978 s,@ac_ct_CC@,$ac_ct_CC,;t t
3979 s,@EXEEXT@,$EXEEXT,;t t
3980 s,@OBJEXT@,$OBJEXT,;t t
3981 s,@MYSQL_CONFIG@,$MYSQL_CONFIG,;t t
3982 s,@sql_mysql_ldflags@,$sql_mysql_ldflags,;t t
3983 s,@sql_mysql_cflags@,$sql_mysql_cflags,;t t
3984 s,@targetname@,$targetname,;t t
3985 s,@LIBOBJS@,$LIBOBJS,;t t
3986 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
3991 cat >>$CONFIG_STATUS <<\_ACEOF
3992 # Split the substitutions into bite-sized pieces for seds with
3993 # small command number limits, like on Digital OSF/1 and HP-UX.
3995 ac_sed_frag=1 # Number of current file.
3996 ac_beg=1 # First line for current file.
3997 ac_end=$ac_max_sed_lines # Line after last line for current file.
4000 while $ac_more_lines; do
4001 if test $ac_beg -gt 1; then
4002 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4004 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4006 if test ! -s $tmp/subs.frag; then
4009 # The purpose of the label and of the branching condition is to
4010 # speed up the sed processing (if there are no `@' at all, there
4011 # is no need to browse any of the substitutions).
4012 # These are the two extra sed commands mentioned above.
4014 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4015 if test -z "$ac_sed_cmds"; then
4016 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4018 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4020 ac_sed_frag=`expr $ac_sed_frag + 1`
4022 ac_end=`expr $ac_end + $ac_max_sed_lines`
4025 if test -z "$ac_sed_cmds"; then
4028 fi # test -n "$CONFIG_FILES"
4031 cat >>$CONFIG_STATUS <<\_ACEOF
4032 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4033 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4035 - | *:- | *:-:* ) # input from stdin
4037 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4038 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4039 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4040 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4041 * ) ac_file_in=$ac_file.in ;;
4044 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4045 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4046 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4047 X"$ac_file" : 'X\(//\)[^/]' \| \
4048 X"$ac_file" : 'X\(//\)$' \| \
4049 X"$ac_file" : 'X\(/\)' \| \
4050 . : '\(.\)' 2>/dev/null ||
4052 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4053 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4054 /^X\(\/\/\)$/{ s//\1/; q; }
4055 /^X\(\/\).*/{ s//\1/; q; }
4057 { if $as_mkdir_p; then
4062 while test ! -d "$as_dir"; do
4063 as_dirs="$as_dir $as_dirs"
4064 as_dir=`(dirname "$as_dir") 2>/dev/null ||
4065 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4066 X"$as_dir" : 'X\(//\)[^/]' \| \
4067 X"$as_dir" : 'X\(//\)$' \| \
4068 X"$as_dir" : 'X\(/\)' \| \
4069 . : '\(.\)' 2>/dev/null ||
4071 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4072 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4073 /^X\(\/\/\)$/{ s//\1/; q; }
4074 /^X\(\/\).*/{ s//\1/; q; }
4077 test ! -n "$as_dirs" || mkdir $as_dirs
4078 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4079 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4080 { (exit 1); exit 1; }; }; }
4084 if test "$ac_dir" != .; then
4085 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4086 # A "../" for each directory in $ac_dir_suffix.
4087 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4089 ac_dir_suffix= ac_top_builddir=
4093 .) # No --srcdir option. We are building in place.
4095 if test -z "$ac_top_builddir"; then
4098 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4100 [\\/]* | ?:[\\/]* ) # Absolute path.
4101 ac_srcdir=$srcdir$ac_dir_suffix;
4102 ac_top_srcdir=$srcdir ;;
4104 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4105 ac_top_srcdir=$ac_top_builddir$srcdir ;;
4108 # Do not use `cd foo && pwd` to compute absolute paths, because
4109 # the directories may not exist.
4111 .) ac_abs_builddir="$ac_dir";;
4114 .) ac_abs_builddir=`pwd`;;
4115 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
4116 *) ac_abs_builddir=`pwd`/"$ac_dir";;
4119 case $ac_abs_builddir in
4120 .) ac_abs_top_builddir=${ac_top_builddir}.;;
4122 case ${ac_top_builddir}. in
4123 .) ac_abs_top_builddir=$ac_abs_builddir;;
4124 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
4125 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
4128 case $ac_abs_builddir in
4129 .) ac_abs_srcdir=$ac_srcdir;;
4132 .) ac_abs_srcdir=$ac_abs_builddir;;
4133 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
4134 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
4137 case $ac_abs_builddir in
4138 .) ac_abs_top_srcdir=$ac_top_srcdir;;
4140 case $ac_top_srcdir in
4141 .) ac_abs_top_srcdir=$ac_abs_builddir;;
4142 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
4143 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
4149 if test x"$ac_file" != x-; then
4150 { echo "$as_me:$LINENO: creating $ac_file" >&5
4151 echo "$as_me: creating $ac_file" >&6;}
4154 # Let's still pretend it is `configure' which instantiates (i.e., don't
4155 # use $as_me), people would be surprised to read:
4156 # /* config.h. Generated by config.status. */
4157 if test x"$ac_file" = x-; then
4160 configure_input="$ac_file. "
4162 configure_input=$configure_input"Generated from `echo $ac_file_in |
4163 sed 's,.*/,,'` by configure."
4165 # First look for the input files in the build tree, otherwise in the
4167 ac_file_inputs=`IFS=:
4168 for f in $ac_file_in; do
4170 -) echo $tmp/stdin ;;
4172 # Absolute (can't be DOS-style, as IFS=:)
4173 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4174 echo "$as_me: error: cannot find input file: $f" >&2;}
4175 { (exit 1); exit 1; }; }
4178 if test -f "$f"; then
4181 elif test -f "$srcdir/$f"; then
4186 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4187 echo "$as_me: error: cannot find input file: $f" >&2;}
4188 { (exit 1); exit 1; }; }
4191 done` || { (exit 1); exit 1; }
4193 cat >>$CONFIG_STATUS <<_ACEOF
4197 cat >>$CONFIG_STATUS <<\_ACEOF
4199 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4200 s,@configure_input@,$configure_input,;t t
4201 s,@srcdir@,$ac_srcdir,;t t
4202 s,@abs_srcdir@,$ac_abs_srcdir,;t t
4203 s,@top_srcdir@,$ac_top_srcdir,;t t
4204 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
4205 s,@builddir@,$ac_builddir,;t t
4206 s,@abs_builddir@,$ac_abs_builddir,;t t
4207 s,@top_builddir@,$ac_top_builddir,;t t
4208 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
4209 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
4211 if test x"$ac_file" != x-; then
4212 mv $tmp/out $ac_file
4220 cat >>$CONFIG_STATUS <<\_ACEOF
4223 # CONFIG_HEADER section.
4226 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4227 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4229 # ac_d sets the value in "#define NAME VALUE" lines.
4230 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4231 ac_dB='[ ].*$,\1#\2'
4234 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4235 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4236 ac_uB='$,\1#\2define\3'
4240 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
4241 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4243 - | *:- | *:-:* ) # input from stdin
4245 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4246 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4247 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4248 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4249 * ) ac_file_in=$ac_file.in ;;
4252 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
4253 echo "$as_me: creating $ac_file" >&6;}
4255 # First look for the input files in the build tree, otherwise in the
4257 ac_file_inputs=`IFS=:
4258 for f in $ac_file_in; do
4260 -) echo $tmp/stdin ;;
4262 # Absolute (can't be DOS-style, as IFS=:)
4263 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4264 echo "$as_me: error: cannot find input file: $f" >&2;}
4265 { (exit 1); exit 1; }; }
4266 # Do quote $f, to prevent DOS paths from being IFS'd.
4269 if test -f "$f"; then
4272 elif test -f "$srcdir/$f"; then
4277 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4278 echo "$as_me: error: cannot find input file: $f" >&2;}
4279 { (exit 1); exit 1; }; }
4282 done` || { (exit 1); exit 1; }
4283 # Remove the trailing spaces.
4284 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
4288 # Transform confdefs.h into two sed scripts, `conftest.defines' and
4289 # `conftest.undefs', that substitutes the proper values into
4290 # config.h.in to produce config.h. The first handles `#define'
4291 # templates, and the second `#undef' templates.
4292 # And first: Protect against being on the right side of a sed subst in
4293 # config.status. Protect against being in an unquoted here document
4295 rm -f conftest.defines conftest.undefs
4296 # Using a here document instead of a string reduces the quoting nightmare.
4297 # Putting comments in sed scripts is not portable.
4299 # `end' is used to avoid that the second main sed command (meant for
4300 # 0-ary CPP macros) applies to n-ary macro definitions.
4301 # See the Autoconf documentation for `clear'.
4302 cat >confdef2sed.sed <<\_ACEOF
4307 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
4309 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
4312 # If some macros were called several times there might be several times
4313 # the same #defines, which is useless. Nevertheless, we may not want to
4314 # sort them, since we want the *last* AC-DEFINE to be honored.
4315 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
4316 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
4317 rm -f confdef2sed.sed
4319 # This sed command replaces #undef with comments. This is necessary, for
4320 # example, in the case of _POSIX_SOURCE, which is predefined and required
4321 # on some systems where configure will not decide to define it.
4322 cat >>conftest.undefs <<\_ACEOF
4323 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
4326 # Break up conftest.defines because some shells have a limit on the size
4327 # of here documents, and old seds have small limits too (100 cmds).
4328 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
4329 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
4330 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
4331 echo ' :' >>$CONFIG_STATUS
4333 while grep . conftest.defines >/dev/null
4335 # Write a limited-size here document to $tmp/defines.sed.
4336 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
4337 # Speed up: don't consider the non `#define' lines.
4338 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
4339 # Work around the forget-to-reset-the-flag bug.
4340 echo 't clr' >>$CONFIG_STATUS
4341 echo ': clr' >>$CONFIG_STATUS
4342 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
4344 sed -f $tmp/defines.sed $tmp/in >$tmp/out
4348 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
4349 rm -f conftest.defines
4350 mv conftest.tail conftest.defines
4352 rm -f conftest.defines
4353 echo ' fi # grep' >>$CONFIG_STATUS
4354 echo >>$CONFIG_STATUS
4356 # Break up conftest.undefs because some shells have a limit on the size
4357 # of here documents, and old seds have small limits too (100 cmds).
4358 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
4360 while grep . conftest.undefs >/dev/null
4362 # Write a limited-size here document to $tmp/undefs.sed.
4363 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
4364 # Speed up: don't consider the non `#undef'
4365 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
4366 # Work around the forget-to-reset-the-flag bug.
4367 echo 't clr' >>$CONFIG_STATUS
4368 echo ': clr' >>$CONFIG_STATUS
4369 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
4371 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
4375 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
4376 rm -f conftest.undefs
4377 mv conftest.tail conftest.undefs
4379 rm -f conftest.undefs
4381 cat >>$CONFIG_STATUS <<\_ACEOF
4382 # Let's still pretend it is `configure' which instantiates (i.e., don't
4383 # use $as_me), people would be surprised to read:
4384 # /* config.h. Generated by config.status. */
4385 if test x"$ac_file" = x-; then
4386 echo "/* Generated by configure. */" >$tmp/config.h
4388 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
4390 cat $tmp/in >>$tmp/config.h
4392 if test x"$ac_file" != x-; then
4393 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
4394 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
4395 echo "$as_me: $ac_file is unchanged" >&6;}
4397 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4398 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4399 X"$ac_file" : 'X\(//\)[^/]' \| \
4400 X"$ac_file" : 'X\(//\)$' \| \
4401 X"$ac_file" : 'X\(/\)' \| \
4402 . : '\(.\)' 2>/dev/null ||
4404 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4405 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4406 /^X\(\/\/\)$/{ s//\1/; q; }
4407 /^X\(\/\).*/{ s//\1/; q; }
4409 { if $as_mkdir_p; then
4414 while test ! -d "$as_dir"; do
4415 as_dirs="$as_dir $as_dirs"
4416 as_dir=`(dirname "$as_dir") 2>/dev/null ||
4417 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4418 X"$as_dir" : 'X\(//\)[^/]' \| \
4419 X"$as_dir" : 'X\(//\)$' \| \
4420 X"$as_dir" : 'X\(/\)' \| \
4421 . : '\(.\)' 2>/dev/null ||
4423 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4424 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4425 /^X\(\/\/\)$/{ s//\1/; q; }
4426 /^X\(\/\).*/{ s//\1/; q; }
4429 test ! -n "$as_dirs" || mkdir $as_dirs
4430 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4431 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4432 { (exit 1); exit 1; }; }; }
4435 mv $tmp/config.h $ac_file
4444 cat >>$CONFIG_STATUS <<\_ACEOF
4446 { (exit 0); exit 0; }
4448 chmod +x $CONFIG_STATUS
4449 ac_clean_files=$ac_clean_files_save
4452 # configure is writing to config.log, and then calls config.status.
4453 # config.status does its own redirection, appending to config.log.
4454 # Unfortunately, on DOS this fails, as config.log is still kept open
4455 # by configure, so config.status won't be able to write to it; its
4456 # output is simply discarded. So we exec the FD to /dev/null,
4457 # effectively closing config.log, so it can be properly (re)opened and
4458 # appended to by config.status. When coming back to configure, we
4459 # need to make the FD available again.
4460 if test "$no_create" != yes; then
4462 ac_config_status_args=
4463 test "$silent" = yes &&
4464 ac_config_status_args="$ac_config_status_args --quiet"
4466 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4468 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4469 # would make configure fail if this is the last instruction.
4470 $ac_cs_success || { (exit 1); exit 1; }