import from HEAD
[freeradius.git] / src / modules / rlm_sql / drivers / rlm_sql_mysql / configure
1 #! /bin/sh
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.
5 #
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 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15   emulate sh
16   NULLCMD=:
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
21   set -o posix
22 fi
23 DUALCASE=1; export DUALCASE # for MKS sh
24
25 # Support unset when possible.
26 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
27   as_unset=unset
28 else
29   as_unset=false
30 fi
31
32
33 # Work around bugs in pre-3.0 UWIN ksh.
34 $as_unset ENV MAIL MAILPATH
35 PS1='$ '
36 PS2='> '
37 PS4='+ '
38
39 # NLS nuisances.
40 for as_var in \
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 \
43   LC_TELEPHONE LC_TIME
44 do
45   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
46     eval $as_var=C; export $as_var
47   else
48     $as_unset $as_var
49   fi
50 done
51
52 # Required to use basename.
53 if expr a : '\(a\)' >/dev/null 2>&1; then
54   as_expr=expr
55 else
56   as_expr=false
57 fi
58
59 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
60   as_basename=basename
61 else
62   as_basename=false
63 fi
64
65
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 ||
72 echo X/"$0" |
73     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
74           /^X\/\(\/\/\)$/{ s//\1/; q; }
75           /^X\/\(\/\).*/{ s//\1/; q; }
76           s/.*/./; q'`
77
78
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
86
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
91   chmod +x conf$$.sh
92   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
93     PATH_SEPARATOR=';'
94   else
95     PATH_SEPARATOR=:
96   fi
97   rm -f conf$$.sh
98 fi
99
100
101   as_lineno_1=$LINENO
102   as_lineno_2=$LINENO
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
107   # relative or not.
108   case $0 in
109     *[\\/]* ) as_myself=$0 ;;
110     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
111 for as_dir in $PATH
112 do
113   IFS=$as_save_IFS
114   test -z "$as_dir" && as_dir=.
115   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
116 done
117
118        ;;
119   esac
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
123     as_myself=$0
124   fi
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; }; }
128   fi
129   case $CONFIG_SHELL in
130   '')
131     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
132 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 do
134   IFS=$as_save_IFS
135   test -z "$as_dir" && as_dir=.
136   for as_base in sh bash ksh sh5; do
137          case $as_dir in
138          /*)
139            if ("$as_dir/$as_base" -c '
140   as_lineno_1=$LINENO
141   as_lineno_2=$LINENO
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
148              export CONFIG_SHELL
149              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
150            fi;;
151          esac
152        done
153 done
154 ;;
155   esac
156
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 |
166     sed '
167       N
168       s,$,-,
169       : loop
170       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
171       t loop
172       s,-$,,
173       s,^['$as_cr_digits']*\n,,
174     ' >$as_me.lineno &&
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; }; }
178
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).
182   . ./$as_me.lineno
183   # Exit status is that of the last command.
184   exit
185 }
186
187
188 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
189   *c*,-n*) ECHO_N= ECHO_C='
190 ' ECHO_T='      ' ;;
191   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
192   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
193 esac
194
195 if expr a : '\(a\)' >/dev/null 2>&1; then
196   as_expr=expr
197 else
198   as_expr=false
199 fi
200
201 rm -f conf$$ conf$$.exe conf$$.file
202 echo >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
208     as_ln_s='cp -p'
209   else
210     as_ln_s='ln -s'
211   fi
212 elif ln conf$$.file conf$$ 2>/dev/null; then
213   as_ln_s=ln
214 else
215   as_ln_s='cp -p'
216 fi
217 rm -f conf$$ conf$$.exe conf$$.file
218
219 if mkdir -p . 2>/dev/null; then
220   as_mkdir_p=:
221 else
222   test -d ./-p && rmdir ./-p
223   as_mkdir_p=false
224 fi
225
226 as_executable_p="test -f"
227
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'"
230
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'"
233
234
235 # IFS
236 # We need space, tab and new line, in precisely that order.
237 as_nl='
238 '
239 IFS="   $as_nl"
240
241 # CDPATH.
242 $as_unset CDPATH
243
244
245 # Name of the host.
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`
249
250 exec 6>&1
251
252 #
253 # Initializations.
254 #
255 ac_default_prefix=/usr/local
256 ac_config_libobj_dir=.
257 cross_compiling=no
258 subdirs=
259 MFLAGS=
260 MAKEFLAGS=
261 SHELL=${CONFIG_SHELL-/bin/sh}
262
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}
267
268 # Identity of this package.
269 PACKAGE_NAME=
270 PACKAGE_TARNAME=
271 PACKAGE_VERSION=
272 PACKAGE_STRING=
273 PACKAGE_BUGREPORT=
274
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'
277 ac_subst_files=''
278
279 # Initialize some variables set by options.
280 ac_init_help=
281 ac_init_version=false
282 # The variables have the same names as the options, with
283 # dashes changed to underlines.
284 cache_file=/dev/null
285 exec_prefix=NONE
286 no_create=
287 no_recursion=
288 prefix=NONE
289 program_prefix=NONE
290 program_suffix=NONE
291 program_transform_name=s,x,x,
292 silent=
293 site=
294 srcdir=
295 verbose=
296 x_includes=NONE
297 x_libraries=NONE
298
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'
316
317 ac_prev=
318 for ac_option
319 do
320   # If the previous option needs an argument, assign it.
321   if test -n "$ac_prev"; then
322     eval "$ac_prev=\$ac_option"
323     ac_prev=
324     continue
325   fi
326
327   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
328
329   # Accept the important Cygnus configure options, so we can diagnose typos.
330
331   case $ac_option in
332
333   -bindir | --bindir | --bindi | --bind | --bin | --bi)
334     ac_prev=bindir ;;
335   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
336     bindir=$ac_optarg ;;
337
338   -build | --build | --buil | --bui | --bu)
339     ac_prev=build_alias ;;
340   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
341     build_alias=$ac_optarg ;;
342
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 ;;
349
350   --config-cache | -C)
351     cache_file=config.cache ;;
352
353   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
354     ac_prev=datadir ;;
355   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
356   | --da=*)
357     datadir=$ac_optarg ;;
358
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" ;;
367
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'`
375     case $ac_option in
376       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
377       *) ac_optarg=yes ;;
378     esac
379     eval "enable_$ac_feature='$ac_optarg'" ;;
380
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 ;;
389
390   -gas | --gas | --ga | --g)
391     # Obsolete; use --with-gas.
392     with_gas=yes ;;
393
394   -help | --help | --hel | --he | -h)
395     ac_init_help=long ;;
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 ;;
400
401   -host | --host | --hos | --ho)
402     ac_prev=host_alias ;;
403   -host=* | --host=* | --hos=* | --ho=*)
404     host_alias=$ac_optarg ;;
405
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 ;;
412
413   -infodir | --infodir | --infodi | --infod | --info | --inf)
414     ac_prev=infodir ;;
415   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
416     infodir=$ac_optarg ;;
417
418   -libdir | --libdir | --libdi | --libd)
419     ac_prev=libdir ;;
420   -libdir=* | --libdir=* | --libdi=* | --libd=*)
421     libdir=$ac_optarg ;;
422
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 ;;
429
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 ;;
438
439   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
440     ac_prev=mandir ;;
441   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
442     mandir=$ac_optarg ;;
443
444   -nfp | --nfp | --nf)
445     # Obsolete; use --without-fp.
446     with_fp=no ;;
447
448   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
449   | --no-cr | --no-c | -n)
450     no_create=yes ;;
451
452   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
453   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
454     no_recursion=yes ;;
455
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 ;;
464
465   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
466     ac_prev=prefix ;;
467   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
468     prefix=$ac_optarg ;;
469
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 ;;
476
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 ;;
483
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 ;;
500
501   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
502   | -silent | --silent | --silen | --sile | --sil)
503     silent=yes ;;
504
505   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
506     ac_prev=sbindir ;;
507   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
508   | --sbi=* | --sb=*)
509     sbindir=$ac_optarg ;;
510
511   -sharedstatedir | --sharedstatedir | --sharedstatedi \
512   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
513   | --sharedst | --shareds | --shared | --share | --shar \
514   | --sha | --sh)
515     ac_prev=sharedstatedir ;;
516   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
517   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
518   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
519   | --sha=* | --sh=*)
520     sharedstatedir=$ac_optarg ;;
521
522   -site | --site | --sit)
523     ac_prev=site ;;
524   -site=* | --site=* | --sit=*)
525     site=$ac_optarg ;;
526
527   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
528     ac_prev=srcdir ;;
529   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
530     srcdir=$ac_optarg ;;
531
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 ;;
538
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 ;;
543
544   -v | -verbose | --verbose | --verbos | --verbo | --verb)
545     verbose=yes ;;
546
547   -version | --version | --versio | --versi | --vers | -V)
548     ac_init_version=: ;;
549
550   -with-* | --with-*)
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'`
557     case $ac_option in
558       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
559       *) ac_optarg=yes ;;
560     esac
561     eval "with_$ac_package='$ac_optarg'" ;;
562
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" ;;
571
572   --x)
573     # Obsolete; use --with-x.
574     with_x=yes ;;
575
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 ;;
582
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 ;;
589
590   -*) { echo "$as_me: error: unrecognized option: $ac_option
591 Try \`$0 --help' for more information." >&2
592    { (exit 1); exit 1; }; }
593     ;;
594
595   *=*)
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'"
603     export $ac_envvar ;;
604
605   *)
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}
611     ;;
612
613   esac
614 done
615
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; }; }
620 fi
621
622 # Be sure to have absolute paths.
623 for ac_var in exec_prefix prefix
624 do
625   eval ac_val=$`echo $ac_var`
626   case $ac_val in
627     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
628     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
629    { (exit 1); exit 1; }; };;
630   esac
631 done
632
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
636 do
637   eval ac_val=$`echo $ac_var`
638   case $ac_val in
639     [\\/$]* | ?:[\\/]* ) ;;
640     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
641    { (exit 1); exit 1; }; };;
642   esac
643 done
644
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.
648 build=$build_alias
649 host=$host_alias
650 target=$target_alias
651
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
659     cross_compiling=yes
660   fi
661 fi
662
663 ac_tool_prefix=
664 test -n "$host_alias" && ac_tool_prefix=$host_alias-
665
666 test "$silent" = yes && exec 6>/dev/null
667
668
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 ||
679 echo X"$0" |
680     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
681           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
682           /^X\(\/\/\)$/{ s//\1/; q; }
683           /^X\(\/\).*/{ s//\1/; q; }
684           s/.*/./; q'`
685   srcdir=$ac_confdir
686   if test ! -r $srcdir/$ac_unique_file; then
687     srcdir=..
688   fi
689 else
690   ac_srcdir_defaulted=no
691 fi
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; }; }
696   else
697     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
698    { (exit 1); exit 1; }; }
699   fi
700 fi
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}
718 ac_env_CC_value=$CC
719 ac_cv_env_CC_set=${CC+set}
720 ac_cv_env_CC_value=$CC
721 ac_env_CFLAGS_set=${CFLAGS+set}
722 ac_env_CFLAGS_value=$CFLAGS
723 ac_cv_env_CFLAGS_set=${CFLAGS+set}
724 ac_cv_env_CFLAGS_value=$CFLAGS
725 ac_env_LDFLAGS_set=${LDFLAGS+set}
726 ac_env_LDFLAGS_value=$LDFLAGS
727 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
728 ac_cv_env_LDFLAGS_value=$LDFLAGS
729 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
730 ac_env_CPPFLAGS_value=$CPPFLAGS
731 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
732 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
733
734 #
735 # Report the --help message.
736 #
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.
740   cat <<_ACEOF
741 \`configure' configures this package to adapt to many kinds of systems.
742
743 Usage: $0 [OPTION]... [VAR=VALUE]...
744
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.
747
748 Defaults for the options are specified in brackets.
749
750 Configuration:
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 \`..']
760
761 _ACEOF
762
763   cat <<_ACEOF
764 Installation directories:
765   --prefix=PREFIX         install architecture-independent files in PREFIX
766                           [$ac_default_prefix]
767   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
768                           [PREFIX]
769
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'.
774
775 For better control, use the options below.
776
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]
790 _ACEOF
791
792   cat <<\_ACEOF
793 _ACEOF
794 fi
795
796 if test -n "$ac_init_help"; then
797
798   cat <<\_ACEOF
799
800 Optional Packages:
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)
807
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>
815
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.
818
819 _ACEOF
820 fi
821
822 if test "$ac_init_help" = "recursive"; then
823   # If there are subdirs, report their specific --help.
824   ac_popdir=`pwd`
825   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
826     test -d $ac_dir || continue
827     ac_builddir=.
828
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'`
833 else
834   ac_dir_suffix= ac_top_builddir=
835 fi
836
837 case $srcdir in
838   .)  # No --srcdir option.  We are building in place.
839     ac_srcdir=.
840     if test -z "$ac_top_builddir"; then
841        ac_top_srcdir=.
842     else
843        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
844     fi ;;
845   [\\/]* | ?:[\\/]* )  # Absolute path.
846     ac_srcdir=$srcdir$ac_dir_suffix;
847     ac_top_srcdir=$srcdir ;;
848   *) # Relative path.
849     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
850     ac_top_srcdir=$ac_top_builddir$srcdir ;;
851 esac
852
853 # Do not use `cd foo && pwd` to compute absolute paths, because
854 # the directories may not exist.
855 case `pwd` in
856 .) ac_abs_builddir="$ac_dir";;
857 *)
858   case "$ac_dir" in
859   .) ac_abs_builddir=`pwd`;;
860   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
861   *) ac_abs_builddir=`pwd`/"$ac_dir";;
862   esac;;
863 esac
864 case $ac_abs_builddir in
865 .) ac_abs_top_builddir=${ac_top_builddir}.;;
866 *)
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}.;;
871   esac;;
872 esac
873 case $ac_abs_builddir in
874 .) ac_abs_srcdir=$ac_srcdir;;
875 *)
876   case $ac_srcdir in
877   .) ac_abs_srcdir=$ac_abs_builddir;;
878   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
879   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
880   esac;;
881 esac
882 case $ac_abs_builddir in
883 .) ac_abs_top_srcdir=$ac_top_srcdir;;
884 *)
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;;
889   esac;;
890 esac
891
892     cd $ac_dir
893     # Check for guested configure; otherwise get Cygnus style configure.
894     if test -f $ac_srcdir/configure.gnu; then
895       echo
896       $SHELL $ac_srcdir/configure.gnu  --help=recursive
897     elif test -f $ac_srcdir/configure; then
898       echo
899       $SHELL $ac_srcdir/configure  --help=recursive
900     elif test -f $ac_srcdir/configure.ac ||
901            test -f $ac_srcdir/configure.in; then
902       echo
903       $ac_configure --help
904     else
905       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
906     fi
907     cd $ac_popdir
908   done
909 fi
910
911 test -n "$ac_init_help" && exit 0
912 if $ac_init_version; then
913   cat <<\_ACEOF
914
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.
918 _ACEOF
919   exit 0
920 fi
921 exec 5>config.log
922 cat >&5 <<_ACEOF
923 This file contains any messages produced by compilers while
924 running configure, to aid debugging if configure makes a mistake.
925
926 It was created by $as_me, which was
927 generated by GNU Autoconf 2.59.  Invocation command line was
928
929   $ $0 $@
930
931 _ACEOF
932 {
933 cat <<_ASUNAME
934 ## --------- ##
935 ## Platform. ##
936 ## --------- ##
937
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`
943
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`
946
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`
954
955 _ASUNAME
956
957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
958 for as_dir in $PATH
959 do
960   IFS=$as_save_IFS
961   test -z "$as_dir" && as_dir=.
962   echo "PATH: $as_dir"
963 done
964
965 } >&5
966
967 cat >&5 <<_ACEOF
968
969
970 ## ----------- ##
971 ## Core tests. ##
972 ## ----------- ##
973
974 _ACEOF
975
976
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.
982 ac_configure_args=
983 ac_configure_args0=
984 ac_configure_args1=
985 ac_sep=
986 ac_must_keep_next=false
987 for ac_pass in 1 2
988 do
989   for ac_arg
990   do
991     case $ac_arg in
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)
995       continue ;;
996     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
997       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
998     esac
999     case $ac_pass in
1000     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1001     2)
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.
1005       else
1006         case $ac_arg in
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 ;;
1013             esac
1014             ;;
1015           -* ) ac_must_keep_next=true ;;
1016         esac
1017       fi
1018       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1019       # Get rid of the leading space.
1020       ac_sep=" "
1021       ;;
1022     esac
1023   done
1024 done
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; }
1027
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.
1035   {
1036     echo
1037
1038     cat <<\_ASBOX
1039 ## ---------------- ##
1040 ## Cache variables. ##
1041 ## ---------------- ##
1042 _ASBOX
1043     echo
1044     # The following way of writing the cache mishandles newlines in values,
1045 {
1046   (set) 2>&1 |
1047     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1048     *ac_space=\ *)
1049       sed -n \
1050         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1051           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1052       ;;
1053     *)
1054       sed -n \
1055         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1056       ;;
1057     esac;
1058 }
1059     echo
1060
1061     cat <<\_ASBOX
1062 ## ----------------- ##
1063 ## Output variables. ##
1064 ## ----------------- ##
1065 _ASBOX
1066     echo
1067     for ac_var in $ac_subst_vars
1068     do
1069       eval ac_val=$`echo $ac_var`
1070       echo "$ac_var='"'"'$ac_val'"'"'"
1071     done | sort
1072     echo
1073
1074     if test -n "$ac_subst_files"; then
1075       cat <<\_ASBOX
1076 ## ------------- ##
1077 ## Output files. ##
1078 ## ------------- ##
1079 _ASBOX
1080       echo
1081       for ac_var in $ac_subst_files
1082       do
1083         eval ac_val=$`echo $ac_var`
1084         echo "$ac_var='"'"'$ac_val'"'"'"
1085       done | sort
1086       echo
1087     fi
1088
1089     if test -s confdefs.h; then
1090       cat <<\_ASBOX
1091 ## ----------- ##
1092 ## confdefs.h. ##
1093 ## ----------- ##
1094 _ASBOX
1095       echo
1096       sed "/^$/d" confdefs.h | sort
1097       echo
1098     fi
1099     test "$ac_signal" != 0 &&
1100       echo "$as_me: caught signal $ac_signal"
1101     echo "$as_me: exit $exit_status"
1102   } >&5
1103   rm -f core *.core &&
1104   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1105     exit $exit_status
1106      ' 0
1107 for ac_signal in 1 2 13 15; do
1108   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1109 done
1110 ac_signal=0
1111
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.
1115 echo >confdefs.h
1116
1117 # Predefined preprocessor variables.
1118
1119 cat >>confdefs.h <<_ACEOF
1120 #define PACKAGE_NAME "$PACKAGE_NAME"
1121 _ACEOF
1122
1123
1124 cat >>confdefs.h <<_ACEOF
1125 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1126 _ACEOF
1127
1128
1129 cat >>confdefs.h <<_ACEOF
1130 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1131 _ACEOF
1132
1133
1134 cat >>confdefs.h <<_ACEOF
1135 #define PACKAGE_STRING "$PACKAGE_STRING"
1136 _ACEOF
1137
1138
1139 cat >>confdefs.h <<_ACEOF
1140 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1141 _ACEOF
1142
1143
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"
1149   else
1150     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1151   fi
1152 fi
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
1158     . "$ac_site_file"
1159   fi
1160 done
1161
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;}
1168     case $cache_file in
1169       [\\/]* | ?:[\\/]* ) . $cache_file;;
1170       *)                      . ./$cache_file;;
1171     esac
1172   fi
1173 else
1174   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1175 echo "$as_me: creating cache $cache_file" >&6;}
1176   >$cache_file
1177 fi
1178
1179 # Check that the precious variables saved in the cache have kept the same
1180 # value.
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
1189     set,)
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=: ;;
1193     ,set)
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=: ;;
1197     ,);;
1198     *)
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=:
1207       fi;;
1208   esac
1209   # Pass precious variables to config.status.
1210   if test "$ac_new_set" = set; then
1211     case $ac_new_val in
1212     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1213       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1214     *) ac_arg=$ac_var=$ac_new_val ;;
1215     esac
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'" ;;
1219     esac
1220   fi
1221 done
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; }; }
1228 fi
1229
1230 ac_ext=c
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
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256           ac_config_headers="$ac_config_headers config.h"
1257
1258
1259 SMART_LIBS=""
1260 SMART_CLFAGS=""
1261 mysql_lib_dir=""
1262 mysql_include_dir=""
1263
1264 if test x$with_rlm_sql_mysql != xno; then
1265
1266     targetname=rlm_sql_mysql # we change this if a test fails
1267
1268
1269
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"
1275
1276 fi;
1277
1278
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"
1283
1284 fi;
1285
1286
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"
1291
1292 fi;
1293
1294         mysql_with_threads=yes
1295
1296 # Check whether --with-threads or --without-threads was given.
1297 if test "${with_threads+set}" = set; then
1298   withval="$with_threads"
1299    case "$withval" in
1300         no)
1301             mysql_with_threads=no
1302             ;;
1303         *)
1304             ;;
1305         esac
1306
1307 fi;
1308
1309
1310     ac_ext=c
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
1322 else
1323   if test -n "$CC"; then
1324   ac_cv_prog_CC="$CC" # Let the user override the test.
1325 else
1326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1327 for as_dir in $PATH
1328 do
1329   IFS=$as_save_IFS
1330   test -z "$as_dir" && as_dir=.
1331   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
1335     break 2
1336   fi
1337 done
1338 done
1339
1340 fi
1341 fi
1342 CC=$ac_cv_prog_CC
1343 if test -n "$CC"; then
1344   echo "$as_me:$LINENO: result: $CC" >&5
1345 echo "${ECHO_T}$CC" >&6
1346 else
1347   echo "$as_me:$LINENO: result: no" >&5
1348 echo "${ECHO_T}no" >&6
1349 fi
1350
1351 fi
1352 if test -z "$ac_cv_prog_CC"; then
1353   ac_ct_CC=$CC
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
1360 else
1361   if test -n "$ac_ct_CC"; then
1362   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1363 else
1364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1365 for as_dir in $PATH
1366 do
1367   IFS=$as_save_IFS
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
1373     break 2
1374   fi
1375 done
1376 done
1377
1378 fi
1379 fi
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
1384 else
1385   echo "$as_me:$LINENO: result: no" >&5
1386 echo "${ECHO_T}no" >&6
1387 fi
1388
1389   CC=$ac_ct_CC
1390 else
1391   CC="$ac_cv_prog_CC"
1392 fi
1393
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
1402 else
1403   if test -n "$CC"; then
1404   ac_cv_prog_CC="$CC" # Let the user override the test.
1405 else
1406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1407 for as_dir in $PATH
1408 do
1409   IFS=$as_save_IFS
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
1415     break 2
1416   fi
1417 done
1418 done
1419
1420 fi
1421 fi
1422 CC=$ac_cv_prog_CC
1423 if test -n "$CC"; then
1424   echo "$as_me:$LINENO: result: $CC" >&5
1425 echo "${ECHO_T}$CC" >&6
1426 else
1427   echo "$as_me:$LINENO: result: no" >&5
1428 echo "${ECHO_T}no" >&6
1429 fi
1430
1431 fi
1432 if test -z "$ac_cv_prog_CC"; then
1433   ac_ct_CC=$CC
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
1440 else
1441   if test -n "$ac_ct_CC"; then
1442   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1443 else
1444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1445 for as_dir in $PATH
1446 do
1447   IFS=$as_save_IFS
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
1453     break 2
1454   fi
1455 done
1456 done
1457
1458 fi
1459 fi
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
1464 else
1465   echo "$as_me:$LINENO: result: no" >&5
1466 echo "${ECHO_T}no" >&6
1467 fi
1468
1469   CC=$ac_ct_CC
1470 else
1471   CC="$ac_cv_prog_CC"
1472 fi
1473
1474 fi
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
1482 else
1483   if test -n "$CC"; then
1484   ac_cv_prog_CC="$CC" # Let the user override the test.
1485 else
1486   ac_prog_rejected=no
1487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1488 for as_dir in $PATH
1489 do
1490   IFS=$as_save_IFS
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
1496        continue
1497      fi
1498     ac_cv_prog_CC="cc"
1499     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1500     break 2
1501   fi
1502 done
1503 done
1504
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
1508   shift
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.
1513     shift
1514     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1515   fi
1516 fi
1517 fi
1518 fi
1519 CC=$ac_cv_prog_CC
1520 if test -n "$CC"; then
1521   echo "$as_me:$LINENO: result: $CC" >&5
1522 echo "${ECHO_T}$CC" >&6
1523 else
1524   echo "$as_me:$LINENO: result: no" >&5
1525 echo "${ECHO_T}no" >&6
1526 fi
1527
1528 fi
1529 if test -z "$CC"; then
1530   if test -n "$ac_tool_prefix"; then
1531   for ac_prog in cl
1532   do
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
1539 else
1540   if test -n "$CC"; then
1541   ac_cv_prog_CC="$CC" # Let the user override the test.
1542 else
1543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1544 for as_dir in $PATH
1545 do
1546   IFS=$as_save_IFS
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
1552     break 2
1553   fi
1554 done
1555 done
1556
1557 fi
1558 fi
1559 CC=$ac_cv_prog_CC
1560 if test -n "$CC"; then
1561   echo "$as_me:$LINENO: result: $CC" >&5
1562 echo "${ECHO_T}$CC" >&6
1563 else
1564   echo "$as_me:$LINENO: result: no" >&5
1565 echo "${ECHO_T}no" >&6
1566 fi
1567
1568     test -n "$CC" && break
1569   done
1570 fi
1571 if test -z "$CC"; then
1572   ac_ct_CC=$CC
1573   for ac_prog in cl
1574 do
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
1581 else
1582   if test -n "$ac_ct_CC"; then
1583   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1584 else
1585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1586 for as_dir in $PATH
1587 do
1588   IFS=$as_save_IFS
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
1594     break 2
1595   fi
1596 done
1597 done
1598
1599 fi
1600 fi
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
1605 else
1606   echo "$as_me:$LINENO: result: no" >&5
1607 echo "${ECHO_T}no" >&6
1608 fi
1609
1610   test -n "$ac_ct_CC" && break
1611 done
1612
1613   CC=$ac_ct_CC
1614 fi
1615
1616 fi
1617
1618
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; }; }
1624
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
1631   ac_status=$?
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
1636   ac_status=$?
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
1641   ac_status=$?
1642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1643   (exit $ac_status); }
1644
1645 cat >conftest.$ac_ext <<_ACEOF
1646 /* confdefs.h.  */
1647 _ACEOF
1648 cat confdefs.h >>conftest.$ac_ext
1649 cat >>conftest.$ac_ext <<_ACEOF
1650 /* end confdefs.h.  */
1651
1652 int
1653 main ()
1654 {
1655
1656   ;
1657   return 0;
1658 }
1659 _ACEOF
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
1664 # of exeext.
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
1670   ac_status=$?
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
1675 # resort.
1676
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.
1679 ac_cv_exeext=
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
1682 do
1683   test -f "$ac_file" || continue
1684   case $ac_file in
1685     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1686         ;;
1687     conftest.$ac_ext )
1688         # This is the source file.
1689         ;;
1690     [ab].out )
1691         # We found the default executable, but exeext='' is most
1692         # certainly right.
1693         break;;
1694     *.* )
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.
1699         export ac_cv_exeext
1700         break;;
1701     * )
1702         break;;
1703   esac
1704 done
1705 else
1706   echo "$as_me: failed program was:" >&5
1707 sed 's/^/| /' conftest.$ac_ext >&5
1708
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; }; }
1714 fi
1715
1716 ac_exeext=$ac_cv_exeext
1717 echo "$as_me:$LINENO: result: $ac_file" >&5
1718 echo "${ECHO_T}$ac_file" >&6
1719
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
1729   (eval $ac_try) 2>&5
1730   ac_status=$?
1731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1732   (exit $ac_status); }; }; then
1733     cross_compiling=no
1734   else
1735     if test "$cross_compiling" = maybe; then
1736         cross_compiling=yes
1737     else
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; }; }
1745     fi
1746   fi
1747 fi
1748 echo "$as_me:$LINENO: result: yes" >&5
1749 echo "${ECHO_T}yes" >&6
1750
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
1759
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
1764   ac_status=$?
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
1770 # `rm'.
1771 for ac_file in conftest.exe conftest conftest.*; do
1772   test -f "$ac_file" || continue
1773   case $ac_file in
1774     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1775     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1776           export ac_cv_exeext
1777           break;;
1778     * ) break;;
1779   esac
1780 done
1781 else
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; }; }
1787 fi
1788
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
1792
1793 rm -f conftest.$ac_ext
1794 EXEEXT=$ac_cv_exeext
1795 ac_exeext=$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
1800 else
1801   cat >conftest.$ac_ext <<_ACEOF
1802 /* confdefs.h.  */
1803 _ACEOF
1804 cat confdefs.h >>conftest.$ac_ext
1805 cat >>conftest.$ac_ext <<_ACEOF
1806 /* end confdefs.h.  */
1807
1808 int
1809 main ()
1810 {
1811
1812   ;
1813   return 0;
1814 }
1815 _ACEOF
1816 rm -f conftest.o conftest.obj
1817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1818   (eval $ac_compile) 2>&5
1819   ac_status=$?
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
1823   case $ac_file in
1824     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1825     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1826        break;;
1827   esac
1828 done
1829 else
1830   echo "$as_me: failed program was:" >&5
1831 sed 's/^/| /' conftest.$ac_ext >&5
1832
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; }; }
1838 fi
1839
1840 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1841 fi
1842 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1843 echo "${ECHO_T}$ac_cv_objext" >&6
1844 OBJEXT=$ac_cv_objext
1845 ac_objext=$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
1850 else
1851   cat >conftest.$ac_ext <<_ACEOF
1852 /* confdefs.h.  */
1853 _ACEOF
1854 cat confdefs.h >>conftest.$ac_ext
1855 cat >>conftest.$ac_ext <<_ACEOF
1856 /* end confdefs.h.  */
1857
1858 int
1859 main ()
1860 {
1861 #ifndef __GNUC__
1862        choke me
1863 #endif
1864
1865   ;
1866   return 0;
1867 }
1868 _ACEOF
1869 rm -f conftest.$ac_objext
1870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1871   (eval $ac_compile) 2>conftest.er1
1872   ac_status=$?
1873   grep -v '^ *+' conftest.er1 >conftest.err
1874   rm -f conftest.er1
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
1881   (eval $ac_try) 2>&5
1882   ac_status=$?
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
1887   (eval $ac_try) 2>&5
1888   ac_status=$?
1889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1890   (exit $ac_status); }; }; then
1891   ac_compiler_gnu=yes
1892 else
1893   echo "$as_me: failed program was:" >&5
1894 sed 's/^/| /' conftest.$ac_ext >&5
1895
1896 ac_compiler_gnu=no
1897 fi
1898 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1899 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1900
1901 fi
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
1907 CFLAGS="-g"
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
1912 else
1913   cat >conftest.$ac_ext <<_ACEOF
1914 /* confdefs.h.  */
1915 _ACEOF
1916 cat confdefs.h >>conftest.$ac_ext
1917 cat >>conftest.$ac_ext <<_ACEOF
1918 /* end confdefs.h.  */
1919
1920 int
1921 main ()
1922 {
1923
1924   ;
1925   return 0;
1926 }
1927 _ACEOF
1928 rm -f conftest.$ac_objext
1929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1930   (eval $ac_compile) 2>conftest.er1
1931   ac_status=$?
1932   grep -v '^ *+' conftest.er1 >conftest.err
1933   rm -f conftest.er1
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
1940   (eval $ac_try) 2>&5
1941   ac_status=$?
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
1946   (eval $ac_try) 2>&5
1947   ac_status=$?
1948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1949   (exit $ac_status); }; }; then
1950   ac_cv_prog_cc_g=yes
1951 else
1952   echo "$as_me: failed program was:" >&5
1953 sed 's/^/| /' conftest.$ac_ext >&5
1954
1955 ac_cv_prog_cc_g=no
1956 fi
1957 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1958 fi
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
1965     CFLAGS="-g -O2"
1966   else
1967     CFLAGS="-g"
1968   fi
1969 else
1970   if test "$GCC" = yes; then
1971     CFLAGS="-O2"
1972   else
1973     CFLAGS=
1974   fi
1975 fi
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
1980 else
1981   ac_cv_prog_cc_stdc=no
1982 ac_save_CC=$CC
1983 cat >conftest.$ac_ext <<_ACEOF
1984 /* confdefs.h.  */
1985 _ACEOF
1986 cat confdefs.h >>conftest.$ac_ext
1987 cat >>conftest.$ac_ext <<_ACEOF
1988 /* end confdefs.h.  */
1989 #include <stdarg.h>
1990 #include <stdio.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)
1997      char **p;
1998      int i;
1999 {
2000   return p[i];
2001 }
2002 static char *f (char * (*g) (char **, int), char **p, ...)
2003 {
2004   char *s;
2005   va_list v;
2006   va_start (v,p);
2007   s = g (p, va_arg (v,int));
2008   va_end (v);
2009   return s;
2010 }
2011
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];
2020
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);
2025 int argc;
2026 char **argv;
2027 int
2028 main ()
2029 {
2030 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2031   ;
2032   return 0;
2033 }
2034 _ACEOF
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__"
2043 do
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
2048   ac_status=$?
2049   grep -v '^ *+' conftest.er1 >conftest.err
2050   rm -f conftest.er1
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
2057   (eval $ac_try) 2>&5
2058   ac_status=$?
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
2063   (eval $ac_try) 2>&5
2064   ac_status=$?
2065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2066   (exit $ac_status); }; }; then
2067   ac_cv_prog_cc_stdc=$ac_arg
2068 break
2069 else
2070   echo "$as_me: failed program was:" >&5
2071 sed 's/^/| /' conftest.$ac_ext >&5
2072
2073 fi
2074 rm -f conftest.err conftest.$ac_objext
2075 done
2076 rm -f conftest.$ac_ext conftest.$ac_objext
2077 CC=$ac_save_CC
2078
2079 fi
2080
2081 case "x$ac_cv_prog_cc_stdc" in
2082   x|xno)
2083     echo "$as_me:$LINENO: result: none needed" >&5
2084 echo "${ECHO_T}none needed" >&6 ;;
2085   *)
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" ;;
2089 esac
2090
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
2096 #ifndef __cplusplus
2097   choke me
2098 #endif
2099 _ACEOF
2100 rm -f conftest.$ac_objext
2101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2102   (eval $ac_compile) 2>conftest.er1
2103   ac_status=$?
2104   grep -v '^ *+' conftest.er1 >conftest.err
2105   rm -f conftest.er1
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
2112   (eval $ac_try) 2>&5
2113   ac_status=$?
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
2118   (eval $ac_try) 2>&5
2119   ac_status=$?
2120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2121   (exit $ac_status); }; }; then
2122   for ac_declaration in \
2123    '' \
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);' \
2128    'void exit (int);'
2129 do
2130   cat >conftest.$ac_ext <<_ACEOF
2131 /* confdefs.h.  */
2132 _ACEOF
2133 cat confdefs.h >>conftest.$ac_ext
2134 cat >>conftest.$ac_ext <<_ACEOF
2135 /* end confdefs.h.  */
2136 $ac_declaration
2137 #include <stdlib.h>
2138 int
2139 main ()
2140 {
2141 exit (42);
2142   ;
2143   return 0;
2144 }
2145 _ACEOF
2146 rm -f conftest.$ac_objext
2147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2148   (eval $ac_compile) 2>conftest.er1
2149   ac_status=$?
2150   grep -v '^ *+' conftest.er1 >conftest.err
2151   rm -f conftest.er1
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
2158   (eval $ac_try) 2>&5
2159   ac_status=$?
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
2164   (eval $ac_try) 2>&5
2165   ac_status=$?
2166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2167   (exit $ac_status); }; }; then
2168   :
2169 else
2170   echo "$as_me: failed program was:" >&5
2171 sed 's/^/| /' conftest.$ac_ext >&5
2172
2173 continue
2174 fi
2175 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2176   cat >conftest.$ac_ext <<_ACEOF
2177 /* confdefs.h.  */
2178 _ACEOF
2179 cat confdefs.h >>conftest.$ac_ext
2180 cat >>conftest.$ac_ext <<_ACEOF
2181 /* end confdefs.h.  */
2182 $ac_declaration
2183 int
2184 main ()
2185 {
2186 exit (42);
2187   ;
2188   return 0;
2189 }
2190 _ACEOF
2191 rm -f conftest.$ac_objext
2192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2193   (eval $ac_compile) 2>conftest.er1
2194   ac_status=$?
2195   grep -v '^ *+' conftest.er1 >conftest.err
2196   rm -f conftest.er1
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
2203   (eval $ac_try) 2>&5
2204   ac_status=$?
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
2209   (eval $ac_try) 2>&5
2210   ac_status=$?
2211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2212   (exit $ac_status); }; }; then
2213   break
2214 else
2215   echo "$as_me: failed program was:" >&5
2216 sed 's/^/| /' conftest.$ac_ext >&5
2217
2218 fi
2219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2220 done
2221 rm -f conftest*
2222 if test -n "$ac_declaration"; then
2223   echo '#ifdef __cplusplus' >>confdefs.h
2224   echo $ac_declaration      >>confdefs.h
2225   echo '#endif'             >>confdefs.h
2226 fi
2227
2228 else
2229   echo "$as_me: failed program was:" >&5
2230 sed 's/^/| /' conftest.$ac_ext >&5
2231
2232 fi
2233 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2234 ac_ext=c
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
2239
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
2246 else
2247   if test -n "$MYSQL_CONFIG"; then
2248   ac_cv_prog_MYSQL_CONFIG="$MYSQL_CONFIG" # Let the user override the test.
2249 else
2250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2251 for as_dir in $PATH
2252 do
2253   IFS=$as_save_IFS
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
2259     break 2
2260   fi
2261 done
2262 done
2263
2264   test -z "$ac_cv_prog_MYSQL_CONFIG" && ac_cv_prog_MYSQL_CONFIG="no"
2265 fi
2266 fi
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
2271 else
2272   echo "$as_me:$LINENO: result: no" >&5
2273 echo "${ECHO_T}no" >&6
2274 fi
2275
2276
2277
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
2283 else
2284   ac_check_lib_save_LIBS=$LIBS
2285 LIBS="-lpthread  $LIBS"
2286 cat >conftest.$ac_ext <<_ACEOF
2287 /* confdefs.h.  */
2288 _ACEOF
2289 cat confdefs.h >>conftest.$ac_ext
2290 cat >>conftest.$ac_ext <<_ACEOF
2291 /* end confdefs.h.  */
2292
2293 /* Override any gcc2 internal prototype to avoid an error.  */
2294 #ifdef __cplusplus
2295 extern "C"
2296 #endif
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 ();
2300 int
2301 main ()
2302 {
2303 pthread_create ();
2304   ;
2305   return 0;
2306 }
2307 _ACEOF
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
2311   ac_status=$?
2312   grep -v '^ *+' conftest.er1 >conftest.err
2313   rm -f conftest.er1
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
2320   (eval $ac_try) 2>&5
2321   ac_status=$?
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
2326   (eval $ac_try) 2>&5
2327   ac_status=$?
2328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2329   (exit $ac_status); }; }; then
2330   ac_cv_lib_pthread_pthread_create=yes
2331 else
2332   echo "$as_me: failed program was:" >&5
2333 sed 's/^/| /' conftest.$ac_ext >&5
2334
2335 ac_cv_lib_pthread_pthread_create=no
2336 fi
2337 rm -f conftest.err conftest.$ac_objext \
2338       conftest$ac_exeext conftest.$ac_ext
2339 LIBS=$ac_check_lib_save_LIBS
2340 fi
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"
2345 else
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
2350 else
2351   ac_check_lib_save_LIBS=$LIBS
2352 LIBS="-lc_r  $LIBS"
2353
2354 cat >conftest.$ac_ext <<_ACEOF
2355 /* confdefs.h.  */
2356 _ACEOF
2357 cat confdefs.h >>conftest.$ac_ext
2358 cat >>conftest.$ac_ext <<_ACEOF
2359 /* end confdefs.h.  */
2360
2361 /* Override any gcc2 internal prototype to avoid an error.  */
2362 #ifdef __cplusplus
2363 extern "C"
2364 #endif
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 ();
2368 int
2369 main ()
2370 {
2371 pthread_create ();
2372   ;
2373   return 0;
2374 }
2375 _ACEOF
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
2379   ac_status=$?
2380   grep -v '^ *+' conftest.er1 >conftest.err
2381   rm -f conftest.er1
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
2388   (eval $ac_try) 2>&5
2389   ac_status=$?
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
2394   (eval $ac_try) 2>&5
2395   ac_status=$?
2396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397   (exit $ac_status); }; }; then
2398   ac_cv_lib_c_r_pthread_create=yes
2399 else
2400   echo "$as_me: failed program was:" >&5
2401 sed 's/^/| /' conftest.$ac_ext >&5
2402
2403 ac_cv_lib_c_r_pthread_create=no
2404 fi
2405 rm -f conftest.err conftest.$ac_objext \
2406       conftest$ac_exeext conftest.$ac_ext
2407 LIBS=$ac_check_lib_save_LIBS
2408 fi
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
2412    LIBS="-lc_r $LIBS"
2413 else
2414    mysql_with_threads=no
2415
2416 fi
2417
2418
2419 fi
2420
2421     fi
2422
2423     if test "x$mysql_with_threads" = "xyes"; then
2424                 if test "x$MYSQL_CONFIG" = "xyes"; then
2425             mysql_libs="$(mysql_config --libs_r)"
2426             old_LIBS="$LIBS"
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
2431 /* confdefs.h.  */
2432 _ACEOF
2433 cat confdefs.h >>conftest.$ac_ext
2434 cat >>conftest.$ac_ext <<_ACEOF
2435 /* end confdefs.h.  */
2436
2437 /* Override any gcc2 internal prototype to avoid an error.  */
2438 #ifdef __cplusplus
2439 extern "C"
2440 #endif
2441 /* We use char because int might match the return type of a gcc2
2442    builtin and then its argument prototype would still apply.  */
2443 char mysql_init ();
2444 int
2445 main ()
2446 {
2447 mysql_init ();
2448   ;
2449   return 0;
2450 }
2451 _ACEOF
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
2455   ac_status=$?
2456   grep -v '^ *+' conftest.er1 >conftest.err
2457   rm -f conftest.er1
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
2464   (eval $ac_try) 2>&5
2465   ac_status=$?
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
2470   (eval $ac_try) 2>&5
2471   ac_status=$?
2472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473   (exit $ac_status); }; }; then
2474   have_libmysqlclient_r=yes
2475 else
2476   echo "$as_me: failed program was:" >&5
2477 sed 's/^/| /' conftest.$ac_ext >&5
2478
2479 fi
2480 rm -f conftest.err conftest.$ac_objext \
2481       conftest$ac_exeext conftest.$ac_ext
2482             LIBS="$old_LIBS"
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"
2487             else
2488                 echo "$as_me:$LINENO: result: no" >&5
2489 echo "${ECHO_T}no" >&6
2490             fi
2491         fi
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"
2495
2496
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
2501
2502 old_LIBS="$LIBS"
2503 smart_lib=
2504 smart_lib_dir=
2505
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
2510 /* confdefs.h.  */
2511 _ACEOF
2512 cat confdefs.h >>conftest.$ac_ext
2513 cat >>conftest.$ac_ext <<_ACEOF
2514 /* end confdefs.h.  */
2515 extern char mysql_init();
2516 int
2517 main ()
2518 {
2519  mysql_init()
2520   ;
2521   return 0;
2522 }
2523 _ACEOF
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
2527   ac_status=$?
2528   grep -v '^ *+' conftest.er1 >conftest.err
2529   rm -f conftest.er1
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
2536   (eval $ac_try) 2>&5
2537   ac_status=$?
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
2542   (eval $ac_try) 2>&5
2543   ac_status=$?
2544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2545   (exit $ac_status); }; }; then
2546   smart_lib="-L$try -lmysqlclient_r"
2547 else
2548   echo "$as_me: failed program was:" >&5
2549 sed 's/^/| /' conftest.$ac_ext >&5
2550
2551 fi
2552 rm -f conftest.err conftest.$ac_objext \
2553       conftest$ac_exeext conftest.$ac_ext
2554     if test "x$smart_lib" != "x"; then
2555       break;
2556     fi
2557   done
2558   LIBS="$old_LIBS"
2559 fi
2560
2561 if test "x$smart_lib" = "x"; then
2562   LIBS="-lmysqlclient_r $old_LIBS"
2563   cat >conftest.$ac_ext <<_ACEOF
2564 /* confdefs.h.  */
2565 _ACEOF
2566 cat confdefs.h >>conftest.$ac_ext
2567 cat >>conftest.$ac_ext <<_ACEOF
2568 /* end confdefs.h.  */
2569 extern char mysql_init();
2570 int
2571 main ()
2572 {
2573  mysql_init()
2574   ;
2575   return 0;
2576 }
2577 _ACEOF
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
2581   ac_status=$?
2582   grep -v '^ *+' conftest.er1 >conftest.err
2583   rm -f conftest.er1
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
2590   (eval $ac_try) 2>&5
2591   ac_status=$?
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
2596   (eval $ac_try) 2>&5
2597   ac_status=$?
2598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599   (exit $ac_status); }; }; then
2600   smart_lib="-lmysqlclient_r"
2601 else
2602   echo "$as_me: failed program was:" >&5
2603 sed 's/^/| /' conftest.$ac_ext >&5
2604
2605 fi
2606 rm -f conftest.err conftest.$ac_objext \
2607       conftest$ac_exeext conftest.$ac_ext
2608   LIBS="$old_LIBS"
2609 fi
2610
2611 if test "x$smart_lib" = "x"; then
2612
2613
2614 if test "x$LOCATE" != "x"; then
2615         DIRS=
2616   file=libmysqlclient_r${libltdl_cv_shlibext}
2617
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
2621       continue;
2622     fi
2623
2624     dir=`${DIRNAME} $x 2>/dev/null`
2625                 exclude=`echo ${dir} | ${GREP} /home`
2626     if test "x$exclude" != "x"; then
2627       continue
2628     fi
2629
2630                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
2631     if test "x$already" = "x"; then
2632       DIRS="$DIRS $dir"
2633     fi
2634   done
2635 fi
2636
2637 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
2638
2639
2640
2641 if test "x$LOCATE" != "x"; then
2642         DIRS=
2643   file=libmysqlclient_r.a
2644
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
2648       continue;
2649     fi
2650
2651     dir=`${DIRNAME} $x 2>/dev/null`
2652                 exclude=`echo ${dir} | ${GREP} /home`
2653     if test "x$exclude" != "x"; then
2654       continue
2655     fi
2656
2657                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
2658     if test "x$already" = "x"; then
2659       DIRS="$DIRS $dir"
2660     fi
2661   done
2662 fi
2663
2664 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
2665
2666
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
2670 /* confdefs.h.  */
2671 _ACEOF
2672 cat confdefs.h >>conftest.$ac_ext
2673 cat >>conftest.$ac_ext <<_ACEOF
2674 /* end confdefs.h.  */
2675 extern char mysql_init();
2676 int
2677 main ()
2678 {
2679  mysql_init()
2680   ;
2681   return 0;
2682 }
2683 _ACEOF
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
2687   ac_status=$?
2688   grep -v '^ *+' conftest.er1 >conftest.err
2689   rm -f conftest.er1
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
2696   (eval $ac_try) 2>&5
2697   ac_status=$?
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
2702   (eval $ac_try) 2>&5
2703   ac_status=$?
2704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2705   (exit $ac_status); }; }; then
2706   smart_lib="-L$try -lmysqlclient_r"
2707 else
2708   echo "$as_me: failed program was:" >&5
2709 sed 's/^/| /' conftest.$ac_ext >&5
2710
2711 fi
2712 rm -f conftest.err conftest.$ac_objext \
2713       conftest$ac_exeext conftest.$ac_ext
2714     if test "x$smart_lib" != "x"; then
2715       break;
2716     fi
2717   done
2718   LIBS="$old_LIBS"
2719 fi
2720
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"
2727 else
2728   echo "$as_me:$LINENO: result: no" >&5
2729 echo "${ECHO_T}no" >&6
2730 fi
2731
2732             if test "x$ac_cv_lib_mysqlclient_r_mysql_init" != "xyes"
2733                 then
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
2737             fi
2738         fi
2739     else
2740                 if test "x$MYSQL_CONFIG" = "xyes"; then
2741             mysql_libs="$(mysql_config --libs)"
2742             old_LIBS="$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
2747 /* confdefs.h.  */
2748 _ACEOF
2749 cat confdefs.h >>conftest.$ac_ext
2750 cat >>conftest.$ac_ext <<_ACEOF
2751 /* end confdefs.h.  */
2752
2753 /* Override any gcc2 internal prototype to avoid an error.  */
2754 #ifdef __cplusplus
2755 extern "C"
2756 #endif
2757 /* We use char because int might match the return type of a gcc2
2758    builtin and then its argument prototype would still apply.  */
2759 char mysql_init ();
2760 int
2761 main ()
2762 {
2763 mysql_init ();
2764   ;
2765   return 0;
2766 }
2767 _ACEOF
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
2771   ac_status=$?
2772   grep -v '^ *+' conftest.er1 >conftest.err
2773   rm -f conftest.er1
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
2780   (eval $ac_try) 2>&5
2781   ac_status=$?
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
2786   (eval $ac_try) 2>&5
2787   ac_status=$?
2788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789   (exit $ac_status); }; }; then
2790   have_libmysqlclient=yes
2791 else
2792   echo "$as_me: failed program was:" >&5
2793 sed 's/^/| /' conftest.$ac_ext >&5
2794
2795 fi
2796 rm -f conftest.err conftest.$ac_objext \
2797       conftest$ac_exeext conftest.$ac_ext
2798             LIBS="$old_LIBS"
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"
2803             else
2804                 echo "$as_me:$LINENO: result: no" >&5
2805 echo "${ECHO_T}no" >&6
2806             fi
2807         fi
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"
2811
2812
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
2817
2818 old_LIBS="$LIBS"
2819 smart_lib=
2820 smart_lib_dir=
2821
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
2826 /* confdefs.h.  */
2827 _ACEOF
2828 cat confdefs.h >>conftest.$ac_ext
2829 cat >>conftest.$ac_ext <<_ACEOF
2830 /* end confdefs.h.  */
2831 extern char mysql_init();
2832 int
2833 main ()
2834 {
2835  mysql_init()
2836   ;
2837   return 0;
2838 }
2839 _ACEOF
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
2843   ac_status=$?
2844   grep -v '^ *+' conftest.er1 >conftest.err
2845   rm -f conftest.er1
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
2852   (eval $ac_try) 2>&5
2853   ac_status=$?
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
2858   (eval $ac_try) 2>&5
2859   ac_status=$?
2860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2861   (exit $ac_status); }; }; then
2862   smart_lib="-L$try -lmysqlclient"
2863 else
2864   echo "$as_me: failed program was:" >&5
2865 sed 's/^/| /' conftest.$ac_ext >&5
2866
2867 fi
2868 rm -f conftest.err conftest.$ac_objext \
2869       conftest$ac_exeext conftest.$ac_ext
2870     if test "x$smart_lib" != "x"; then
2871       break;
2872     fi
2873   done
2874   LIBS="$old_LIBS"
2875 fi
2876
2877 if test "x$smart_lib" = "x"; then
2878   LIBS="-lmysqlclient $old_LIBS"
2879   cat >conftest.$ac_ext <<_ACEOF
2880 /* confdefs.h.  */
2881 _ACEOF
2882 cat confdefs.h >>conftest.$ac_ext
2883 cat >>conftest.$ac_ext <<_ACEOF
2884 /* end confdefs.h.  */
2885 extern char mysql_init();
2886 int
2887 main ()
2888 {
2889  mysql_init()
2890   ;
2891   return 0;
2892 }
2893 _ACEOF
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
2897   ac_status=$?
2898   grep -v '^ *+' conftest.er1 >conftest.err
2899   rm -f conftest.er1
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
2906   (eval $ac_try) 2>&5
2907   ac_status=$?
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
2912   (eval $ac_try) 2>&5
2913   ac_status=$?
2914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915   (exit $ac_status); }; }; then
2916   smart_lib="-lmysqlclient"
2917 else
2918   echo "$as_me: failed program was:" >&5
2919 sed 's/^/| /' conftest.$ac_ext >&5
2920
2921 fi
2922 rm -f conftest.err conftest.$ac_objext \
2923       conftest$ac_exeext conftest.$ac_ext
2924   LIBS="$old_LIBS"
2925 fi
2926
2927 if test "x$smart_lib" = "x"; then
2928
2929
2930 if test "x$LOCATE" != "x"; then
2931         DIRS=
2932   file=libmysqlclient${libltdl_cv_shlibext}
2933
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
2937       continue;
2938     fi
2939
2940     dir=`${DIRNAME} $x 2>/dev/null`
2941                 exclude=`echo ${dir} | ${GREP} /home`
2942     if test "x$exclude" != "x"; then
2943       continue
2944     fi
2945
2946                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
2947     if test "x$already" = "x"; then
2948       DIRS="$DIRS $dir"
2949     fi
2950   done
2951 fi
2952
2953 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
2954
2955
2956
2957 if test "x$LOCATE" != "x"; then
2958         DIRS=
2959   file=libmysqlclient.a
2960
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
2964       continue;
2965     fi
2966
2967     dir=`${DIRNAME} $x 2>/dev/null`
2968                 exclude=`echo ${dir} | ${GREP} /home`
2969     if test "x$exclude" != "x"; then
2970       continue
2971     fi
2972
2973                     already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
2974     if test "x$already" = "x"; then
2975       DIRS="$DIRS $dir"
2976     fi
2977   done
2978 fi
2979
2980 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
2981
2982
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
2986 /* confdefs.h.  */
2987 _ACEOF
2988 cat confdefs.h >>conftest.$ac_ext
2989 cat >>conftest.$ac_ext <<_ACEOF
2990 /* end confdefs.h.  */
2991 extern char mysql_init();
2992 int
2993 main ()
2994 {
2995  mysql_init()
2996   ;
2997   return 0;
2998 }
2999 _ACEOF
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
3003   ac_status=$?
3004   grep -v '^ *+' conftest.er1 >conftest.err
3005   rm -f conftest.er1
3006   cat conftest.err >&5
3007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008   (exit $ac_status); } &&
3009          { ac_try='test -z "$ac_c_werror_flag"
3010                          || test ! -s conftest.err'
3011   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3012   (eval $ac_try) 2>&5
3013   ac_status=$?
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
3018   (eval $ac_try) 2>&5
3019   ac_status=$?
3020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3021   (exit $ac_status); }; }; then
3022   smart_lib="-L$try -lmysqlclient"
3023 else
3024   echo "$as_me: failed program was:" >&5
3025 sed 's/^/| /' conftest.$ac_ext >&5
3026
3027 fi
3028 rm -f conftest.err conftest.$ac_objext \
3029       conftest$ac_exeext conftest.$ac_ext
3030     if test "x$smart_lib" != "x"; then
3031       break;
3032     fi
3033   done
3034   LIBS="$old_LIBS"
3035 fi
3036
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"
3043 else
3044   echo "$as_me:$LINENO: result: no" >&5
3045 echo "${ECHO_T}no" >&6
3046 fi
3047
3048             if test "x$ac_cv_lib_mysqlclient_mysql_init" != "xyes"
3049                 then
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
3053             fi
3054         fi
3055     fi
3056
3057
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
3065 /* confdefs.h.  */
3066 _ACEOF
3067 cat confdefs.h >>conftest.$ac_ext
3068 cat >>conftest.$ac_ext <<_ACEOF
3069 /* end confdefs.h.  */
3070 #include <mysql.h>
3071 int
3072 main ()
3073 {
3074 int a = 1;
3075   ;
3076   return 0;
3077 }
3078 _ACEOF
3079 rm -f conftest.$ac_objext
3080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3081   (eval $ac_compile) 2>conftest.er1
3082   ac_status=$?
3083   grep -v '^ *+' conftest.er1 >conftest.err
3084   rm -f conftest.er1
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
3091   (eval $ac_try) 2>&5
3092   ac_status=$?
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
3097   (eval $ac_try) 2>&5
3098   ac_status=$?
3099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100   (exit $ac_status); }; }; then
3101   have_mysql_h=yes
3102 else
3103   echo "$as_me: failed program was:" >&5
3104 sed 's/^/| /' conftest.$ac_ext >&5
3105
3106 fi
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
3111
3112 cat >>confdefs.h <<\_ACEOF
3113 #define HAVE_MYSQL_H
3114 _ACEOF
3115
3116             SMART_CFLAGS="$SMART_CFLAGS $mysql_cflags"
3117         else
3118             echo "$as_me:$LINENO: result: no" >&5
3119 echo "${ECHO_T}no" >&6
3120         fi
3121         CFLAGS="$old_CFLAGS"
3122     fi
3123     if test "x$have_mysql_h" != "xyes"; then
3124                 smart_try_dir="$mysql_include_dir /usr/local/include \
3125                 /usr/local/mysql/include"
3126
3127
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
3131
3132 old_CFLAGS="$CFLAGS"
3133 smart_include=
3134 smart_include_dir=
3135
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
3140 /* confdefs.h.  */
3141 _ACEOF
3142 cat confdefs.h >>conftest.$ac_ext
3143 cat >>conftest.$ac_ext <<_ACEOF
3144 /* end confdefs.h.  */
3145
3146                     #include <mysql/mysql.h>
3147 int
3148 main ()
3149 {
3150  int a = 1;
3151   ;
3152   return 0;
3153 }
3154 _ACEOF
3155 rm -f conftest.$ac_objext
3156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3157   (eval $ac_compile) 2>conftest.er1
3158   ac_status=$?
3159   grep -v '^ *+' conftest.er1 >conftest.err
3160   rm -f conftest.er1
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
3167   (eval $ac_try) 2>&5
3168   ac_status=$?
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
3173   (eval $ac_try) 2>&5
3174   ac_status=$?
3175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176   (exit $ac_status); }; }; then
3177   smart_include="-I$try"
3178 else
3179   echo "$as_me: failed program was:" >&5
3180 sed 's/^/| /' conftest.$ac_ext >&5
3181
3182 smart_include=
3183 fi
3184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3185     if test "x$smart_include" != "x"; then
3186       break;
3187     fi
3188   done
3189   CFLAGS="$old_CFLAGS"
3190 fi
3191
3192 if test "x$smart_include" = "x"; then
3193   cat >conftest.$ac_ext <<_ACEOF
3194 /* confdefs.h.  */
3195 _ACEOF
3196 cat confdefs.h >>conftest.$ac_ext
3197 cat >>conftest.$ac_ext <<_ACEOF
3198 /* end confdefs.h.  */
3199
3200                   #include <mysql/mysql.h>
3201 int
3202 main ()
3203 {
3204  int a = 1;
3205   ;
3206   return 0;
3207 }
3208 _ACEOF
3209 rm -f conftest.$ac_objext
3210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3211   (eval $ac_compile) 2>conftest.er1
3212   ac_status=$?
3213   grep -v '^ *+' conftest.er1 >conftest.err
3214   rm -f conftest.er1
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
3221   (eval $ac_try) 2>&5
3222   ac_status=$?
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
3227   (eval $ac_try) 2>&5
3228   ac_status=$?
3229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3230   (exit $ac_status); }; }; then
3231   smart_include=" "
3232 else
3233   echo "$as_me: failed program was:" >&5
3234 sed 's/^/| /' conftest.$ac_ext >&5
3235
3236 smart_include=
3237 fi
3238 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3239 fi
3240
3241 if test "x$smart_include" = "x"; then
3242
3243
3244 if test "x$LOCATE" != "x"; then
3245         DIRS=
3246   file=mysql/mysql.h
3247
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
3251       continue;
3252     fi
3253
3254     dir=`${DIRNAME} $x 2>/dev/null`
3255                 exclude=`echo ${dir} | ${GREP} /home`
3256     if test "x$exclude" != "x"; then
3257       continue
3258     fi
3259
3260                     already=`echo \$smart_include_dir ${DIRS} | ${GREP} ${dir}`
3261     if test "x$already" = "x"; then
3262       DIRS="$DIRS $dir"
3263     fi
3264   done
3265 fi
3266
3267 eval "smart_include_dir=\"\$smart_include_dir $DIRS\""
3268
3269
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
3273 /* confdefs.h.  */
3274 _ACEOF
3275 cat confdefs.h >>conftest.$ac_ext
3276 cat >>conftest.$ac_ext <<_ACEOF
3277 /* end confdefs.h.  */
3278
3279                     #include <mysql/mysql.h>
3280 int
3281 main ()
3282 {
3283  int a = 1;
3284   ;
3285   return 0;
3286 }
3287 _ACEOF
3288 rm -f conftest.$ac_objext
3289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3290   (eval $ac_compile) 2>conftest.er1
3291   ac_status=$?
3292   grep -v '^ *+' conftest.er1 >conftest.err
3293   rm -f conftest.er1
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
3300   (eval $ac_try) 2>&5
3301   ac_status=$?
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
3306   (eval $ac_try) 2>&5
3307   ac_status=$?
3308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3309   (exit $ac_status); }; }; then
3310   smart_include="-I$try"
3311 else
3312   echo "$as_me: failed program was:" >&5
3313 sed 's/^/| /' conftest.$ac_ext >&5
3314
3315 smart_include=
3316 fi
3317 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3318     if test "x$smart_include" != "x"; then
3319       break;
3320     fi
3321   done
3322   CFLAGS="$old_CFLAGS"
3323 fi
3324
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"
3331 else
3332   echo "$as_me:$LINENO: result: no" >&5
3333 echo "${ECHO_T}no" >&6
3334 fi
3335
3336         if test "$ac_cv_header_mysql_mysql_h" = "yes"; then
3337
3338 cat >>confdefs.h <<\_ACEOF
3339 #define HAVE_MYSQL_MYSQL_H
3340 _ACEOF
3341
3342         else
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
3346         fi
3347     fi
3348
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;}
3352     fi
3353 else
3354     targetname=
3355     echo \*\*\* module rlm_sql_mysql is disabled.
3356 fi
3357
3358 sql_mysql_ldflags="$SMART_LIBS"
3359 sql_mysql_cflags="$SMART_CFLAGS"
3360
3361
3362
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.
3370 #
3371 # config.status only pays attention to the cache file if you give it
3372 # the --recheck option to rerun configure.
3373 #
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
3376 # following values.
3377
3378 _ACEOF
3379
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.
3385 {
3386   (set) 2>&1 |
3387     case `(ac_space=' '; set | grep ac_space) 2>&1` in
3388     *ac_space=\ *)
3389       # `set' does not quote correctly, so add quotes (double-quote
3390       # substitution turns \\\\ into \\, and sed turns \\ into \).
3391       sed -n \
3392         "s/'/'\\\\''/g;
3393           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3394       ;;
3395     *)
3396       # `set' quotes correctly as required by POSIX, so do not add quotes.
3397       sed -n \
3398         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3399       ;;
3400     esac;
3401 } |
3402   sed '
3403      t clear
3404      : clear
3405      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3406      t end
3407      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3408      : end' >>confcache
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
3413   else
3414     echo "not updating unwritable cache $cache_file"
3415   fi
3416 fi
3417 rm -f confcache
3418
3419 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3420 # Let make expand exec_prefix.
3421 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3422
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}:*/:/;
3431 s/:*@srcdir@:*/:/;
3432 s/^\([^=]*=[     ]*\):*/\1/;
3433 s/:*$//;
3434 s/^[^=]*=[       ]*$//;
3435 }'
3436 fi
3437
3438 DEFS=-DHAVE_CONFIG_H
3439
3440 ac_libobjs=
3441 ac_ltlibobjs=
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$//'`
3446   # 2. Add them.
3447   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
3448   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
3449 done
3450 LIBOBJS=$ac_libobjs
3451
3452 LTLIBOBJS=$ac_ltlibobjs
3453
3454
3455
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
3462 #! $SHELL
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.
3467
3468 debug=false
3469 ac_cs_recheck=false
3470 ac_cs_silent=false
3471 SHELL=\${CONFIG_SHELL-$SHELL}
3472 _ACEOF
3473
3474 cat >>$CONFIG_STATUS <<\_ACEOF
3475 ## --------------------- ##
3476 ## M4sh Initialization.  ##
3477 ## --------------------- ##
3478
3479 # Be Bourne compatible
3480 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3481   emulate sh
3482   NULLCMD=:
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
3487   set -o posix
3488 fi
3489 DUALCASE=1; export DUALCASE # for MKS sh
3490
3491 # Support unset when possible.
3492 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3493   as_unset=unset
3494 else
3495   as_unset=false
3496 fi
3497
3498
3499 # Work around bugs in pre-3.0 UWIN ksh.
3500 $as_unset ENV MAIL MAILPATH
3501 PS1='$ '
3502 PS2='> '
3503 PS4='+ '
3504
3505 # NLS nuisances.
3506 for as_var in \
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
3510 do
3511   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
3512     eval $as_var=C; export $as_var
3513   else
3514     $as_unset $as_var
3515   fi
3516 done
3517
3518 # Required to use basename.
3519 if expr a : '\(a\)' >/dev/null 2>&1; then
3520   as_expr=expr
3521 else
3522   as_expr=false
3523 fi
3524
3525 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
3526   as_basename=basename
3527 else
3528   as_basename=false
3529 fi
3530
3531
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 ||
3538 echo X/"$0" |
3539     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
3540           /^X\/\(\/\/\)$/{ s//\1/; q; }
3541           /^X\/\(\/\).*/{ s//\1/; q; }
3542           s/.*/./; q'`
3543
3544
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
3552
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
3557   chmod +x conf$$.sh
3558   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3559     PATH_SEPARATOR=';'
3560   else
3561     PATH_SEPARATOR=:
3562   fi
3563   rm -f conf$$.sh
3564 fi
3565
3566
3567   as_lineno_1=$LINENO
3568   as_lineno_2=$LINENO
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
3573   # relative or not.
3574   case $0 in
3575     *[\\/]* ) as_myself=$0 ;;
3576     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3577 for as_dir in $PATH
3578 do
3579   IFS=$as_save_IFS
3580   test -z "$as_dir" && as_dir=.
3581   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3582 done
3583
3584        ;;
3585   esac
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
3589     as_myself=$0
3590   fi
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; }; }
3595   fi
3596   case $CONFIG_SHELL in
3597   '')
3598     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3599 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
3600 do
3601   IFS=$as_save_IFS
3602   test -z "$as_dir" && as_dir=.
3603   for as_base in sh bash ksh sh5; do
3604          case $as_dir in
3605          /*)
3606            if ("$as_dir/$as_base" -c '
3607   as_lineno_1=$LINENO
3608   as_lineno_2=$LINENO
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
3615              export CONFIG_SHELL
3616              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
3617            fi;;
3618          esac
3619        done
3620 done
3621 ;;
3622   esac
3623
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 |
3633     sed '
3634       N
3635       s,$,-,
3636       : loop
3637       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
3638       t loop
3639       s,-$,,
3640       s,^['$as_cr_digits']*\n,,
3641     ' >$as_me.lineno &&
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; }; }
3646
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).
3650   . ./$as_me.lineno
3651   # Exit status is that of the last command.
3652   exit
3653 }
3654
3655
3656 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
3657   *c*,-n*) ECHO_N= ECHO_C='
3658 ' ECHO_T='      ' ;;
3659   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
3660   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
3661 esac
3662
3663 if expr a : '\(a\)' >/dev/null 2>&1; then
3664   as_expr=expr
3665 else
3666   as_expr=false
3667 fi
3668
3669 rm -f conf$$ conf$$.exe conf$$.file
3670 echo >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
3676     as_ln_s='cp -p'
3677   else
3678     as_ln_s='ln -s'
3679   fi
3680 elif ln conf$$.file conf$$ 2>/dev/null; then
3681   as_ln_s=ln
3682 else
3683   as_ln_s='cp -p'
3684 fi
3685 rm -f conf$$ conf$$.exe conf$$.file
3686
3687 if mkdir -p . 2>/dev/null; then
3688   as_mkdir_p=:
3689 else
3690   test -d ./-p && rmdir ./-p
3691   as_mkdir_p=false
3692 fi
3693
3694 as_executable_p="test -f"
3695
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'"
3698
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'"
3701
3702
3703 # IFS
3704 # We need space, tab and new line, in precisely that order.
3705 as_nl='
3706 '
3707 IFS="   $as_nl"
3708
3709 # CDPATH.
3710 $as_unset CDPATH
3711
3712 exec 6>&1
3713
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.
3717 exec 5>>config.log
3718 {
3719   echo
3720   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3721 ## Running $as_me. ##
3722 _ASBOX
3723 } >&5
3724 cat >&5 <<_CSEOF
3725
3726 This file was extended by $as_me, which was
3727 generated by GNU Autoconf 2.59.  Invocation command line was
3728
3729   CONFIG_FILES    = $CONFIG_FILES
3730   CONFIG_HEADERS  = $CONFIG_HEADERS
3731   CONFIG_LINKS    = $CONFIG_LINKS
3732   CONFIG_COMMANDS = $CONFIG_COMMANDS
3733   $ $0 $@
3734
3735 _CSEOF
3736 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
3737 echo >&5
3738 _ACEOF
3739
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
3743 fi
3744
3745 if test -n "$ac_config_headers"; then
3746   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
3747 fi
3748
3749 if test -n "$ac_config_links"; then
3750   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
3751 fi
3752
3753 if test -n "$ac_config_commands"; then
3754   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
3755 fi
3756
3757 cat >>$CONFIG_STATUS <<\_ACEOF
3758
3759 ac_cs_usage="\
3760 \`$as_me' instantiates files from templates according to the
3761 current configuration.
3762
3763 Usage: $0 [OPTIONS] [FILE]...
3764
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
3774
3775 Configuration files:
3776 $config_files
3777
3778 Configuration headers:
3779 $config_headers
3780
3781 Report bugs to <bug-autoconf@gnu.org>."
3782 _ACEOF
3783
3784 cat >>$CONFIG_STATUS <<_ACEOF
3785 ac_cs_version="\\
3786 config.status
3787 configured by $0, generated by GNU Autoconf 2.59,
3788   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
3789
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."
3793 srcdir=$srcdir
3794 _ACEOF
3795
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.
3799 ac_need_defaults=:
3800 while test $# != 0
3801 do
3802   case $1 in
3803   --*=*)
3804     ac_option=`expr "x$1" : 'x\([^=]*\)='`
3805     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
3806     ac_shift=:
3807     ;;
3808   -*)
3809     ac_option=$1
3810     ac_optarg=$2
3811     ac_shift=shift
3812     ;;
3813   *) # This is not an option, so the user has probably given explicit
3814      # arguments.
3815      ac_option=$1
3816      ac_need_defaults=false;;
3817   esac
3818
3819   case $ac_option in
3820   # Handling of the options.
3821 _ACEOF
3822 cat >>$CONFIG_STATUS <<\_ACEOF
3823   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3824     ac_cs_recheck=: ;;
3825   --version | --vers* | -V )
3826     echo "$ac_cs_version"; exit 0 ;;
3827   --he | --h)
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 )
3837     debug=: ;;
3838   --file | --fil | --fi | --f )
3839     $ac_shift
3840     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
3841     ac_need_defaults=false;;
3842   --header | --heade | --head | --hea )
3843     $ac_shift
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)
3848     ac_cs_silent=: ;;
3849
3850   # This is an error.
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; }; } ;;
3856
3857   *) ac_config_targets="$ac_config_targets $1" ;;
3858
3859   esac
3860   shift
3861 done
3862
3863 ac_configure_extra_args=
3864
3865 if $ac_cs_silent; then
3866   exec 6>/dev/null
3867   ac_configure_extra_args="$ac_configure_extra_args --silent"
3868 fi
3869
3870 _ACEOF
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
3875 fi
3876
3877 _ACEOF
3878
3879
3880
3881
3882
3883 cat >>$CONFIG_STATUS <<\_ACEOF
3884 for ac_config_target in $ac_config_targets
3885 do
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; }; };;
3893   esac
3894 done
3895
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
3903 fi
3904
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.
3909 $debug ||
3910 {
3911   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3912   trap '{ (exit 1); exit 1; }' 1 2 13 15
3913 }
3914
3915 # Create a (secure) tmp directory for tmp files.
3916
3917 {
3918   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
3919   test -n "$tmp" && test -d "$tmp"
3920 }  ||
3921 {
3922   tmp=./confstat$$-$RANDOM
3923   (umask 077 && mkdir $tmp)
3924 } ||
3925 {
3926    echo "$me: cannot create a temporary directory in ." >&2
3927    { (exit 1); exit 1; }
3928 }
3929
3930 _ACEOF
3931
3932 cat >>$CONFIG_STATUS <<_ACEOF
3933
3934 #
3935 # CONFIG_FILES section.
3936 #
3937
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
3969 s,@DEFS@,$DEFS,;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
3973 s,@LIBS@,$LIBS,;t t
3974 s,@CC@,$CC,;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
3987 CEOF
3988
3989 _ACEOF
3990
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.
3994   ac_max_sed_lines=48
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.
3998   ac_more_lines=:
3999   ac_sed_cmds=
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
4003     else
4004       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4005     fi
4006     if test ! -s $tmp/subs.frag; then
4007       ac_more_lines=false
4008     else
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.
4013       (echo ':t
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"
4017       else
4018         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4019       fi
4020       ac_sed_frag=`expr $ac_sed_frag + 1`
4021       ac_beg=$ac_end
4022       ac_end=`expr $ac_end + $ac_max_sed_lines`
4023     fi
4024   done
4025   if test -z "$ac_sed_cmds"; then
4026     ac_sed_cmds=cat
4027   fi
4028 fi # test -n "$CONFIG_FILES"
4029
4030 _ACEOF
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".
4034   case $ac_file in
4035   - | *:- | *:-:* ) # input from stdin
4036         cat >$tmp/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 ;;
4042   esac
4043
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 ||
4051 echo X"$ac_file" |
4052     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4053           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4054           /^X\(\/\/\)$/{ s//\1/; q; }
4055           /^X\(\/\).*/{ s//\1/; q; }
4056           s/.*/./; q'`
4057   { if $as_mkdir_p; then
4058     mkdir -p "$ac_dir"
4059   else
4060     as_dir="$ac_dir"
4061     as_dirs=
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 ||
4070 echo X"$as_dir" |
4071     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4072           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4073           /^X\(\/\/\)$/{ s//\1/; q; }
4074           /^X\(\/\).*/{ s//\1/; q; }
4075           s/.*/./; q'`
4076     done
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; }; }; }
4081
4082   ac_builddir=.
4083
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'`
4088 else
4089   ac_dir_suffix= ac_top_builddir=
4090 fi
4091
4092 case $srcdir in
4093   .)  # No --srcdir option.  We are building in place.
4094     ac_srcdir=.
4095     if test -z "$ac_top_builddir"; then
4096        ac_top_srcdir=.
4097     else
4098        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4099     fi ;;
4100   [\\/]* | ?:[\\/]* )  # Absolute path.
4101     ac_srcdir=$srcdir$ac_dir_suffix;
4102     ac_top_srcdir=$srcdir ;;
4103   *) # Relative path.
4104     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4105     ac_top_srcdir=$ac_top_builddir$srcdir ;;
4106 esac
4107
4108 # Do not use `cd foo && pwd` to compute absolute paths, because
4109 # the directories may not exist.
4110 case `pwd` in
4111 .) ac_abs_builddir="$ac_dir";;
4112 *)
4113   case "$ac_dir" in
4114   .) ac_abs_builddir=`pwd`;;
4115   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
4116   *) ac_abs_builddir=`pwd`/"$ac_dir";;
4117   esac;;
4118 esac
4119 case $ac_abs_builddir in
4120 .) ac_abs_top_builddir=${ac_top_builddir}.;;
4121 *)
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}.;;
4126   esac;;
4127 esac
4128 case $ac_abs_builddir in
4129 .) ac_abs_srcdir=$ac_srcdir;;
4130 *)
4131   case $ac_srcdir in
4132   .) ac_abs_srcdir=$ac_abs_builddir;;
4133   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
4134   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
4135   esac;;
4136 esac
4137 case $ac_abs_builddir in
4138 .) ac_abs_top_srcdir=$ac_top_srcdir;;
4139 *)
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;;
4144   esac;;
4145 esac
4146
4147
4148
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;}
4152     rm -f "$ac_file"
4153   fi
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
4158     configure_input=
4159   else
4160     configure_input="$ac_file.  "
4161   fi
4162   configure_input=$configure_input"Generated from `echo $ac_file_in |
4163                                      sed 's,.*/,,'` by configure."
4164
4165   # First look for the input files in the build tree, otherwise in the
4166   # src tree.
4167   ac_file_inputs=`IFS=:
4168     for f in $ac_file_in; do
4169       case $f in
4170       -) echo $tmp/stdin ;;
4171       [\\/$]*)
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; }; }
4176          echo "$f";;
4177       *) # Relative
4178          if test -f "$f"; then
4179            # Build tree
4180            echo "$f"
4181          elif test -f "$srcdir/$f"; then
4182            # Source tree
4183            echo "$srcdir/$f"
4184          else
4185            # /dev/null tree
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; }; }
4189          fi;;
4190       esac
4191     done` || { (exit 1); exit 1; }
4192 _ACEOF
4193 cat >>$CONFIG_STATUS <<_ACEOF
4194   sed "$ac_vpsub
4195 $extrasub
4196 _ACEOF
4197 cat >>$CONFIG_STATUS <<\_ACEOF
4198 :t
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
4210   rm -f $tmp/stdin
4211   if test x"$ac_file" != x-; then
4212     mv $tmp/out $ac_file
4213   else
4214     cat $tmp/out
4215     rm -f $tmp/out
4216   fi
4217
4218 done
4219 _ACEOF
4220 cat >>$CONFIG_STATUS <<\_ACEOF
4221
4222 #
4223 # CONFIG_HEADER section.
4224 #
4225
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.
4228 #
4229 # ac_d sets the value in "#define NAME VALUE" lines.
4230 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
4231 ac_dB='[         ].*$,\1#\2'
4232 ac_dC=' '
4233 ac_dD=',;t'
4234 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4235 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
4236 ac_uB='$,\1#\2define\3'
4237 ac_uC=' '
4238 ac_uD=',;t'
4239
4240 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
4241   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4242   case $ac_file in
4243   - | *:- | *:-:* ) # input from stdin
4244         cat >$tmp/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 ;;
4250   esac
4251
4252   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
4253 echo "$as_me: creating $ac_file" >&6;}
4254
4255   # First look for the input files in the build tree, otherwise in the
4256   # src tree.
4257   ac_file_inputs=`IFS=:
4258     for f in $ac_file_in; do
4259       case $f in
4260       -) echo $tmp/stdin ;;
4261       [\\/$]*)
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.
4267          echo "$f";;
4268       *) # Relative
4269          if test -f "$f"; then
4270            # Build tree
4271            echo "$f"
4272          elif test -f "$srcdir/$f"; then
4273            # Source tree
4274            echo "$srcdir/$f"
4275          else
4276            # /dev/null tree
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; }; }
4280          fi;;
4281       esac
4282     done` || { (exit 1); exit 1; }
4283   # Remove the trailing spaces.
4284   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
4285
4286 _ACEOF
4287
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
4294 # in config.status.
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.
4298 #
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
4303 s/[\\&,]/\\&/g
4304 s,[\\$`],\\&,g
4305 t clear
4306 : clear
4307 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
4308 t end
4309 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
4310 : end
4311 _ACEOF
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
4318
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]*,/* & */,
4324 _ACEOF
4325
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
4332 rm -f conftest.tail
4333 while grep . conftest.defines >/dev/null
4334 do
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
4343   echo 'CEOF
4344   sed -f $tmp/defines.sed $tmp/in >$tmp/out
4345   rm -f $tmp/in
4346   mv $tmp/out $tmp/in
4347 ' >>$CONFIG_STATUS
4348   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
4349   rm -f conftest.defines
4350   mv conftest.tail conftest.defines
4351 done
4352 rm -f conftest.defines
4353 echo '  fi # grep' >>$CONFIG_STATUS
4354 echo >>$CONFIG_STATUS
4355
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
4359 rm -f conftest.tail
4360 while grep . conftest.undefs >/dev/null
4361 do
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
4370   echo 'CEOF
4371   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
4372   rm -f $tmp/in
4373   mv $tmp/out $tmp/in
4374 ' >>$CONFIG_STATUS
4375   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
4376   rm -f conftest.undefs
4377   mv conftest.tail conftest.undefs
4378 done
4379 rm -f conftest.undefs
4380
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
4387   else
4388     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
4389   fi
4390   cat $tmp/in >>$tmp/config.h
4391   rm -f $tmp/in
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;}
4396     else
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 ||
4403 echo X"$ac_file" |
4404     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4405           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4406           /^X\(\/\/\)$/{ s//\1/; q; }
4407           /^X\(\/\).*/{ s//\1/; q; }
4408           s/.*/./; q'`
4409       { if $as_mkdir_p; then
4410     mkdir -p "$ac_dir"
4411   else
4412     as_dir="$ac_dir"
4413     as_dirs=
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 ||
4422 echo X"$as_dir" |
4423     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4424           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4425           /^X\(\/\/\)$/{ s//\1/; q; }
4426           /^X\(\/\).*/{ s//\1/; q; }
4427           s/.*/./; q'`
4428     done
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; }; }; }
4433
4434       rm -f $ac_file
4435       mv $tmp/config.h $ac_file
4436     fi
4437   else
4438     cat $tmp/config.h
4439     rm -f $tmp/config.h
4440   fi
4441 done
4442 _ACEOF
4443
4444 cat >>$CONFIG_STATUS <<\_ACEOF
4445
4446 { (exit 0); exit 0; }
4447 _ACEOF
4448 chmod +x $CONFIG_STATUS
4449 ac_clean_files=$ac_clean_files_save
4450
4451
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
4461   ac_cs_success=:
4462   ac_config_status_args=
4463   test "$silent" = yes &&
4464     ac_config_status_args="$ac_config_status_args --quiet"
4465   exec 5>/dev/null
4466   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4467   exec 5>>config.log
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; }
4471 fi
4472