Pull fix from branch_1_1
[freeradius.git] / src / modules / rlm_sql / drivers / rlm_sql_oracle / configure
1 #! /bin/sh
2 # From configure.in Revision: 1.9 .
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_oracle.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 CPP ORACLE_LIBS ORACLE_INCLUDE sql_oracle_ldflags sql_oracle_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 ac_env_CPP_set=${CPP+set}
734 ac_env_CPP_value=$CPP
735 ac_cv_env_CPP_set=${CPP+set}
736 ac_cv_env_CPP_value=$CPP
737
738 #
739 # Report the --help message.
740 #
741 if test "$ac_init_help" = "long"; then
742   # Omit some internal or obsolete options to make the list less imposing.
743   # This message is too long to be a string in the A/UX 3.1 sh.
744   cat <<_ACEOF
745 \`configure' configures this package to adapt to many kinds of systems.
746
747 Usage: $0 [OPTION]... [VAR=VALUE]...
748
749 To assign environment variables (e.g., CC, CFLAGS...), specify them as
750 VAR=VALUE.  See below for descriptions of some of the useful variables.
751
752 Defaults for the options are specified in brackets.
753
754 Configuration:
755   -h, --help              display this help and exit
756       --help=short        display options specific to this package
757       --help=recursive    display the short help of all the included packages
758   -V, --version           display version information and exit
759   -q, --quiet, --silent   do not print \`checking...' messages
760       --cache-file=FILE   cache test results in FILE [disabled]
761   -C, --config-cache      alias for \`--cache-file=config.cache'
762   -n, --no-create         do not create output files
763       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
764
765 _ACEOF
766
767   cat <<_ACEOF
768 Installation directories:
769   --prefix=PREFIX         install architecture-independent files in PREFIX
770                           [$ac_default_prefix]
771   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
772                           [PREFIX]
773
774 By default, \`make install' will install all the files in
775 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
776 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
777 for instance \`--prefix=\$HOME'.
778
779 For better control, use the options below.
780
781 Fine tuning of the installation directories:
782   --bindir=DIR           user executables [EPREFIX/bin]
783   --sbindir=DIR          system admin executables [EPREFIX/sbin]
784   --libexecdir=DIR       program executables [EPREFIX/libexec]
785   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
786   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
787   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
788   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
789   --libdir=DIR           object code libraries [EPREFIX/lib]
790   --includedir=DIR       C header files [PREFIX/include]
791   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
792   --infodir=DIR          info documentation [PREFIX/info]
793   --mandir=DIR           man documentation [PREFIX/man]
794 _ACEOF
795
796   cat <<\_ACEOF
797 _ACEOF
798 fi
799
800 if test -n "$ac_init_help"; then
801
802   cat <<\_ACEOF
803
804 Some influential environment variables:
805   CC          C compiler command
806   CFLAGS      C compiler flags
807   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
808               nonstandard directory <lib dir>
809   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
810               headers in a nonstandard directory <include dir>
811   CPP         C preprocessor
812
813 Use these variables to override the choices made by `configure' or to help
814 it to find libraries and programs with nonstandard names/locations.
815
816 _ACEOF
817 fi
818
819 if test "$ac_init_help" = "recursive"; then
820   # If there are subdirs, report their specific --help.
821   ac_popdir=`pwd`
822   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
823     test -d $ac_dir || continue
824     ac_builddir=.
825
826 if test "$ac_dir" != .; then
827   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
828   # A "../" for each directory in $ac_dir_suffix.
829   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
830 else
831   ac_dir_suffix= ac_top_builddir=
832 fi
833
834 case $srcdir in
835   .)  # No --srcdir option.  We are building in place.
836     ac_srcdir=.
837     if test -z "$ac_top_builddir"; then
838        ac_top_srcdir=.
839     else
840        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
841     fi ;;
842   [\\/]* | ?:[\\/]* )  # Absolute path.
843     ac_srcdir=$srcdir$ac_dir_suffix;
844     ac_top_srcdir=$srcdir ;;
845   *) # Relative path.
846     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
847     ac_top_srcdir=$ac_top_builddir$srcdir ;;
848 esac
849
850 # Do not use `cd foo && pwd` to compute absolute paths, because
851 # the directories may not exist.
852 case `pwd` in
853 .) ac_abs_builddir="$ac_dir";;
854 *)
855   case "$ac_dir" in
856   .) ac_abs_builddir=`pwd`;;
857   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
858   *) ac_abs_builddir=`pwd`/"$ac_dir";;
859   esac;;
860 esac
861 case $ac_abs_builddir in
862 .) ac_abs_top_builddir=${ac_top_builddir}.;;
863 *)
864   case ${ac_top_builddir}. in
865   .) ac_abs_top_builddir=$ac_abs_builddir;;
866   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
867   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
868   esac;;
869 esac
870 case $ac_abs_builddir in
871 .) ac_abs_srcdir=$ac_srcdir;;
872 *)
873   case $ac_srcdir in
874   .) ac_abs_srcdir=$ac_abs_builddir;;
875   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
876   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
877   esac;;
878 esac
879 case $ac_abs_builddir in
880 .) ac_abs_top_srcdir=$ac_top_srcdir;;
881 *)
882   case $ac_top_srcdir in
883   .) ac_abs_top_srcdir=$ac_abs_builddir;;
884   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
885   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
886   esac;;
887 esac
888
889     cd $ac_dir
890     # Check for guested configure; otherwise get Cygnus style configure.
891     if test -f $ac_srcdir/configure.gnu; then
892       echo
893       $SHELL $ac_srcdir/configure.gnu  --help=recursive
894     elif test -f $ac_srcdir/configure; then
895       echo
896       $SHELL $ac_srcdir/configure  --help=recursive
897     elif test -f $ac_srcdir/configure.ac ||
898            test -f $ac_srcdir/configure.in; then
899       echo
900       $ac_configure --help
901     else
902       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
903     fi
904     cd "$ac_popdir"
905   done
906 fi
907
908 test -n "$ac_init_help" && exit 0
909 if $ac_init_version; then
910   cat <<\_ACEOF
911
912 Copyright (C) 2003 Free Software Foundation, Inc.
913 This configure script is free software; the Free Software Foundation
914 gives unlimited permission to copy, distribute and modify it.
915 _ACEOF
916   exit 0
917 fi
918 exec 5>config.log
919 cat >&5 <<_ACEOF
920 This file contains any messages produced by compilers while
921 running configure, to aid debugging if configure makes a mistake.
922
923 It was created by $as_me, which was
924 generated by GNU Autoconf 2.59.  Invocation command line was
925
926   $ $0 $@
927
928 _ACEOF
929 {
930 cat <<_ASUNAME
931 ## --------- ##
932 ## Platform. ##
933 ## --------- ##
934
935 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
936 uname -m = `(uname -m) 2>/dev/null || echo unknown`
937 uname -r = `(uname -r) 2>/dev/null || echo unknown`
938 uname -s = `(uname -s) 2>/dev/null || echo unknown`
939 uname -v = `(uname -v) 2>/dev/null || echo unknown`
940
941 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
942 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
943
944 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
945 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
946 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
947 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
948 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
949 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
950 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
951
952 _ASUNAME
953
954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
955 for as_dir in $PATH
956 do
957   IFS=$as_save_IFS
958   test -z "$as_dir" && as_dir=.
959   echo "PATH: $as_dir"
960 done
961
962 } >&5
963
964 cat >&5 <<_ACEOF
965
966
967 ## ----------- ##
968 ## Core tests. ##
969 ## ----------- ##
970
971 _ACEOF
972
973
974 # Keep a trace of the command line.
975 # Strip out --no-create and --no-recursion so they do not pile up.
976 # Strip out --silent because we don't want to record it for future runs.
977 # Also quote any args containing shell meta-characters.
978 # Make two passes to allow for proper duplicate-argument suppression.
979 ac_configure_args=
980 ac_configure_args0=
981 ac_configure_args1=
982 ac_sep=
983 ac_must_keep_next=false
984 for ac_pass in 1 2
985 do
986   for ac_arg
987   do
988     case $ac_arg in
989     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
990     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
991     | -silent | --silent | --silen | --sile | --sil)
992       continue ;;
993     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
994       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
995     esac
996     case $ac_pass in
997     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
998     2)
999       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1000       if test $ac_must_keep_next = true; then
1001         ac_must_keep_next=false # Got value, back to normal.
1002       else
1003         case $ac_arg in
1004           *=* | --config-cache | -C | -disable-* | --disable-* \
1005           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1006           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1007           | -with-* | --with-* | -without-* | --without-* | --x)
1008             case "$ac_configure_args0 " in
1009               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1010             esac
1011             ;;
1012           -* ) ac_must_keep_next=true ;;
1013         esac
1014       fi
1015       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1016       # Get rid of the leading space.
1017       ac_sep=" "
1018       ;;
1019     esac
1020   done
1021 done
1022 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1023 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1024
1025 # When interrupted or exit'd, cleanup temporary files, and complete
1026 # config.log.  We remove comments because anyway the quotes in there
1027 # would cause problems or look ugly.
1028 # WARNING: Be sure not to use single quotes in there, as some shells,
1029 # such as our DU 5.0 friend, will then `close' the trap.
1030 trap 'exit_status=$?
1031   # Save into config.log some information that might help in debugging.
1032   {
1033     echo
1034
1035     cat <<\_ASBOX
1036 ## ---------------- ##
1037 ## Cache variables. ##
1038 ## ---------------- ##
1039 _ASBOX
1040     echo
1041     # The following way of writing the cache mishandles newlines in values,
1042 {
1043   (set) 2>&1 |
1044     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1045     *ac_space=\ *)
1046       sed -n \
1047         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1048           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1049       ;;
1050     *)
1051       sed -n \
1052         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1053       ;;
1054     esac;
1055 }
1056     echo
1057
1058     cat <<\_ASBOX
1059 ## ----------------- ##
1060 ## Output variables. ##
1061 ## ----------------- ##
1062 _ASBOX
1063     echo
1064     for ac_var in $ac_subst_vars
1065     do
1066       eval ac_val=$`echo $ac_var`
1067       echo "$ac_var='"'"'$ac_val'"'"'"
1068     done | sort
1069     echo
1070
1071     if test -n "$ac_subst_files"; then
1072       cat <<\_ASBOX
1073 ## ------------- ##
1074 ## Output files. ##
1075 ## ------------- ##
1076 _ASBOX
1077       echo
1078       for ac_var in $ac_subst_files
1079       do
1080         eval ac_val=$`echo $ac_var`
1081         echo "$ac_var='"'"'$ac_val'"'"'"
1082       done | sort
1083       echo
1084     fi
1085
1086     if test -s confdefs.h; then
1087       cat <<\_ASBOX
1088 ## ----------- ##
1089 ## confdefs.h. ##
1090 ## ----------- ##
1091 _ASBOX
1092       echo
1093       sed "/^$/d" confdefs.h | sort
1094       echo
1095     fi
1096     test "$ac_signal" != 0 &&
1097       echo "$as_me: caught signal $ac_signal"
1098     echo "$as_me: exit $exit_status"
1099   } >&5
1100   rm -f core *.core &&
1101   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1102     exit $exit_status
1103      ' 0
1104 for ac_signal in 1 2 13 15; do
1105   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1106 done
1107 ac_signal=0
1108
1109 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1110 rm -rf conftest* confdefs.h
1111 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1112 echo >confdefs.h
1113
1114 # Predefined preprocessor variables.
1115
1116 cat >>confdefs.h <<_ACEOF
1117 #define PACKAGE_NAME "$PACKAGE_NAME"
1118 _ACEOF
1119
1120
1121 cat >>confdefs.h <<_ACEOF
1122 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1123 _ACEOF
1124
1125
1126 cat >>confdefs.h <<_ACEOF
1127 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1128 _ACEOF
1129
1130
1131 cat >>confdefs.h <<_ACEOF
1132 #define PACKAGE_STRING "$PACKAGE_STRING"
1133 _ACEOF
1134
1135
1136 cat >>confdefs.h <<_ACEOF
1137 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1138 _ACEOF
1139
1140
1141 # Let the site file select an alternate cache file if it wants to.
1142 # Prefer explicitly selected file to automatically selected ones.
1143 if test -z "$CONFIG_SITE"; then
1144   if test "x$prefix" != xNONE; then
1145     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1146   else
1147     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1148   fi
1149 fi
1150 for ac_site_file in $CONFIG_SITE; do
1151   if test -r "$ac_site_file"; then
1152     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1153 echo "$as_me: loading site script $ac_site_file" >&6;}
1154     sed 's/^/| /' "$ac_site_file" >&5
1155     . "$ac_site_file"
1156   fi
1157 done
1158
1159 if test -r "$cache_file"; then
1160   # Some versions of bash will fail to source /dev/null (special
1161   # files actually), so we avoid doing that.
1162   if test -f "$cache_file"; then
1163     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1164 echo "$as_me: loading cache $cache_file" >&6;}
1165     case $cache_file in
1166       [\\/]* | ?:[\\/]* ) . $cache_file;;
1167       *)                      . ./$cache_file;;
1168     esac
1169   fi
1170 else
1171   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1172 echo "$as_me: creating cache $cache_file" >&6;}
1173   >$cache_file
1174 fi
1175
1176 # Check that the precious variables saved in the cache have kept the same
1177 # value.
1178 ac_cache_corrupted=false
1179 for ac_var in `(set) 2>&1 |
1180                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1181   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1182   eval ac_new_set=\$ac_env_${ac_var}_set
1183   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1184   eval ac_new_val="\$ac_env_${ac_var}_value"
1185   case $ac_old_set,$ac_new_set in
1186     set,)
1187       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1188 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1189       ac_cache_corrupted=: ;;
1190     ,set)
1191       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1192 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1193       ac_cache_corrupted=: ;;
1194     ,);;
1195     *)
1196       if test "x$ac_old_val" != "x$ac_new_val"; then
1197         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1198 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1199         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1200 echo "$as_me:   former value:  $ac_old_val" >&2;}
1201         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1202 echo "$as_me:   current value: $ac_new_val" >&2;}
1203         ac_cache_corrupted=:
1204       fi;;
1205   esac
1206   # Pass precious variables to config.status.
1207   if test "$ac_new_set" = set; then
1208     case $ac_new_val in
1209     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1210       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1211     *) ac_arg=$ac_var=$ac_new_val ;;
1212     esac
1213     case " $ac_configure_args " in
1214       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1215       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1216     esac
1217   fi
1218 done
1219 if $ac_cache_corrupted; then
1220   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1221 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1222   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1223 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1224    { (exit 1); exit 1; }; }
1225 fi
1226
1227 ac_ext=c
1228 ac_cpp='$CPP $CPPFLAGS'
1229 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1230 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1231 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255 if test x$with_rlm_sql_oracle != xno; then
1256
1257         ac_ext=c
1258 ac_cpp='$CPP $CPPFLAGS'
1259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1262 if test -n "$ac_tool_prefix"; then
1263   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1264 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1265 echo "$as_me:$LINENO: checking for $ac_word" >&5
1266 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1267 if test "${ac_cv_prog_CC+set}" = set; then
1268   echo $ECHO_N "(cached) $ECHO_C" >&6
1269 else
1270   if test -n "$CC"; then
1271   ac_cv_prog_CC="$CC" # Let the user override the test.
1272 else
1273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1274 for as_dir in $PATH
1275 do
1276   IFS=$as_save_IFS
1277   test -z "$as_dir" && as_dir=.
1278   for ac_exec_ext in '' $ac_executable_extensions; do
1279   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1280     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1281     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1282     break 2
1283   fi
1284 done
1285 done
1286
1287 fi
1288 fi
1289 CC=$ac_cv_prog_CC
1290 if test -n "$CC"; then
1291   echo "$as_me:$LINENO: result: $CC" >&5
1292 echo "${ECHO_T}$CC" >&6
1293 else
1294   echo "$as_me:$LINENO: result: no" >&5
1295 echo "${ECHO_T}no" >&6
1296 fi
1297
1298 fi
1299 if test -z "$ac_cv_prog_CC"; then
1300   ac_ct_CC=$CC
1301   # Extract the first word of "gcc", so it can be a program name with args.
1302 set dummy gcc; ac_word=$2
1303 echo "$as_me:$LINENO: checking for $ac_word" >&5
1304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1305 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1306   echo $ECHO_N "(cached) $ECHO_C" >&6
1307 else
1308   if test -n "$ac_ct_CC"; then
1309   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1310 else
1311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1312 for as_dir in $PATH
1313 do
1314   IFS=$as_save_IFS
1315   test -z "$as_dir" && as_dir=.
1316   for ac_exec_ext in '' $ac_executable_extensions; do
1317   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1318     ac_cv_prog_ac_ct_CC="gcc"
1319     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1320     break 2
1321   fi
1322 done
1323 done
1324
1325 fi
1326 fi
1327 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1328 if test -n "$ac_ct_CC"; then
1329   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1330 echo "${ECHO_T}$ac_ct_CC" >&6
1331 else
1332   echo "$as_me:$LINENO: result: no" >&5
1333 echo "${ECHO_T}no" >&6
1334 fi
1335
1336   CC=$ac_ct_CC
1337 else
1338   CC="$ac_cv_prog_CC"
1339 fi
1340
1341 if test -z "$CC"; then
1342   if test -n "$ac_tool_prefix"; then
1343   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1344 set dummy ${ac_tool_prefix}cc; ac_word=$2
1345 echo "$as_me:$LINENO: checking for $ac_word" >&5
1346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1347 if test "${ac_cv_prog_CC+set}" = set; then
1348   echo $ECHO_N "(cached) $ECHO_C" >&6
1349 else
1350   if test -n "$CC"; then
1351   ac_cv_prog_CC="$CC" # Let the user override the test.
1352 else
1353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1354 for as_dir in $PATH
1355 do
1356   IFS=$as_save_IFS
1357   test -z "$as_dir" && as_dir=.
1358   for ac_exec_ext in '' $ac_executable_extensions; do
1359   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1360     ac_cv_prog_CC="${ac_tool_prefix}cc"
1361     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1362     break 2
1363   fi
1364 done
1365 done
1366
1367 fi
1368 fi
1369 CC=$ac_cv_prog_CC
1370 if test -n "$CC"; then
1371   echo "$as_me:$LINENO: result: $CC" >&5
1372 echo "${ECHO_T}$CC" >&6
1373 else
1374   echo "$as_me:$LINENO: result: no" >&5
1375 echo "${ECHO_T}no" >&6
1376 fi
1377
1378 fi
1379 if test -z "$ac_cv_prog_CC"; then
1380   ac_ct_CC=$CC
1381   # Extract the first word of "cc", so it can be a program name with args.
1382 set dummy cc; ac_word=$2
1383 echo "$as_me:$LINENO: checking for $ac_word" >&5
1384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1385 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1386   echo $ECHO_N "(cached) $ECHO_C" >&6
1387 else
1388   if test -n "$ac_ct_CC"; then
1389   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1390 else
1391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1392 for as_dir in $PATH
1393 do
1394   IFS=$as_save_IFS
1395   test -z "$as_dir" && as_dir=.
1396   for ac_exec_ext in '' $ac_executable_extensions; do
1397   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1398     ac_cv_prog_ac_ct_CC="cc"
1399     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1400     break 2
1401   fi
1402 done
1403 done
1404
1405 fi
1406 fi
1407 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1408 if test -n "$ac_ct_CC"; then
1409   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1410 echo "${ECHO_T}$ac_ct_CC" >&6
1411 else
1412   echo "$as_me:$LINENO: result: no" >&5
1413 echo "${ECHO_T}no" >&6
1414 fi
1415
1416   CC=$ac_ct_CC
1417 else
1418   CC="$ac_cv_prog_CC"
1419 fi
1420
1421 fi
1422 if test -z "$CC"; then
1423   # Extract the first word of "cc", so it can be a program name with args.
1424 set dummy cc; ac_word=$2
1425 echo "$as_me:$LINENO: checking for $ac_word" >&5
1426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1427 if test "${ac_cv_prog_CC+set}" = set; then
1428   echo $ECHO_N "(cached) $ECHO_C" >&6
1429 else
1430   if test -n "$CC"; then
1431   ac_cv_prog_CC="$CC" # Let the user override the test.
1432 else
1433   ac_prog_rejected=no
1434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1435 for as_dir in $PATH
1436 do
1437   IFS=$as_save_IFS
1438   test -z "$as_dir" && as_dir=.
1439   for ac_exec_ext in '' $ac_executable_extensions; do
1440   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1441     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1442        ac_prog_rejected=yes
1443        continue
1444      fi
1445     ac_cv_prog_CC="cc"
1446     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1447     break 2
1448   fi
1449 done
1450 done
1451
1452 if test $ac_prog_rejected = yes; then
1453   # We found a bogon in the path, so make sure we never use it.
1454   set dummy $ac_cv_prog_CC
1455   shift
1456   if test $# != 0; then
1457     # We chose a different compiler from the bogus one.
1458     # However, it has the same basename, so the bogon will be chosen
1459     # first if we set CC to just the basename; use the full file name.
1460     shift
1461     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1462   fi
1463 fi
1464 fi
1465 fi
1466 CC=$ac_cv_prog_CC
1467 if test -n "$CC"; then
1468   echo "$as_me:$LINENO: result: $CC" >&5
1469 echo "${ECHO_T}$CC" >&6
1470 else
1471   echo "$as_me:$LINENO: result: no" >&5
1472 echo "${ECHO_T}no" >&6
1473 fi
1474
1475 fi
1476 if test -z "$CC"; then
1477   if test -n "$ac_tool_prefix"; then
1478   for ac_prog in cl
1479   do
1480     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1481 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1482 echo "$as_me:$LINENO: checking for $ac_word" >&5
1483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1484 if test "${ac_cv_prog_CC+set}" = set; then
1485   echo $ECHO_N "(cached) $ECHO_C" >&6
1486 else
1487   if test -n "$CC"; then
1488   ac_cv_prog_CC="$CC" # Let the user override the test.
1489 else
1490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1491 for as_dir in $PATH
1492 do
1493   IFS=$as_save_IFS
1494   test -z "$as_dir" && as_dir=.
1495   for ac_exec_ext in '' $ac_executable_extensions; do
1496   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1497     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1498     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1499     break 2
1500   fi
1501 done
1502 done
1503
1504 fi
1505 fi
1506 CC=$ac_cv_prog_CC
1507 if test -n "$CC"; then
1508   echo "$as_me:$LINENO: result: $CC" >&5
1509 echo "${ECHO_T}$CC" >&6
1510 else
1511   echo "$as_me:$LINENO: result: no" >&5
1512 echo "${ECHO_T}no" >&6
1513 fi
1514
1515     test -n "$CC" && break
1516   done
1517 fi
1518 if test -z "$CC"; then
1519   ac_ct_CC=$CC
1520   for ac_prog in cl
1521 do
1522   # Extract the first word of "$ac_prog", so it can be a program name with args.
1523 set dummy $ac_prog; ac_word=$2
1524 echo "$as_me:$LINENO: checking for $ac_word" >&5
1525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1526 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1527   echo $ECHO_N "(cached) $ECHO_C" >&6
1528 else
1529   if test -n "$ac_ct_CC"; then
1530   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1531 else
1532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1533 for as_dir in $PATH
1534 do
1535   IFS=$as_save_IFS
1536   test -z "$as_dir" && as_dir=.
1537   for ac_exec_ext in '' $ac_executable_extensions; do
1538   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1539     ac_cv_prog_ac_ct_CC="$ac_prog"
1540     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1541     break 2
1542   fi
1543 done
1544 done
1545
1546 fi
1547 fi
1548 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1549 if test -n "$ac_ct_CC"; then
1550   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1551 echo "${ECHO_T}$ac_ct_CC" >&6
1552 else
1553   echo "$as_me:$LINENO: result: no" >&5
1554 echo "${ECHO_T}no" >&6
1555 fi
1556
1557   test -n "$ac_ct_CC" && break
1558 done
1559
1560   CC=$ac_ct_CC
1561 fi
1562
1563 fi
1564
1565
1566 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1567 See \`config.log' for more details." >&5
1568 echo "$as_me: error: no acceptable C compiler found in \$PATH
1569 See \`config.log' for more details." >&2;}
1570    { (exit 1); exit 1; }; }
1571
1572 # Provide some information about the compiler.
1573 echo "$as_me:$LINENO:" \
1574      "checking for C compiler version" >&5
1575 ac_compiler=`set X $ac_compile; echo $2`
1576 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1577   (eval $ac_compiler --version </dev/null >&5) 2>&5
1578   ac_status=$?
1579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1580   (exit $ac_status); }
1581 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1582   (eval $ac_compiler -v </dev/null >&5) 2>&5
1583   ac_status=$?
1584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1585   (exit $ac_status); }
1586 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1587   (eval $ac_compiler -V </dev/null >&5) 2>&5
1588   ac_status=$?
1589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1590   (exit $ac_status); }
1591
1592 cat >conftest.$ac_ext <<_ACEOF
1593 /* confdefs.h.  */
1594 _ACEOF
1595 cat confdefs.h >>conftest.$ac_ext
1596 cat >>conftest.$ac_ext <<_ACEOF
1597 /* end confdefs.h.  */
1598
1599 int
1600 main ()
1601 {
1602
1603   ;
1604   return 0;
1605 }
1606 _ACEOF
1607 ac_clean_files_save=$ac_clean_files
1608 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1609 # Try to create an executable without -o first, disregard a.out.
1610 # It will help us diagnose broken compilers, and finding out an intuition
1611 # of exeext.
1612 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1613 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1614 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1615 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1616   (eval $ac_link_default) 2>&5
1617   ac_status=$?
1618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1619   (exit $ac_status); }; then
1620   # Find the output, starting from the most likely.  This scheme is
1621 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1622 # resort.
1623
1624 # Be careful to initialize this variable, since it used to be cached.
1625 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1626 ac_cv_exeext=
1627 # b.out is created by i960 compilers.
1628 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1629 do
1630   test -f "$ac_file" || continue
1631   case $ac_file in
1632     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1633         ;;
1634     conftest.$ac_ext )
1635         # This is the source file.
1636         ;;
1637     [ab].out )
1638         # We found the default executable, but exeext='' is most
1639         # certainly right.
1640         break;;
1641     *.* )
1642         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1643         # FIXME: I believe we export ac_cv_exeext for Libtool,
1644         # but it would be cool to find out if it's true.  Does anybody
1645         # maintain Libtool? --akim.
1646         export ac_cv_exeext
1647         break;;
1648     * )
1649         break;;
1650   esac
1651 done
1652 else
1653   echo "$as_me: failed program was:" >&5
1654 sed 's/^/| /' conftest.$ac_ext >&5
1655
1656 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1657 See \`config.log' for more details." >&5
1658 echo "$as_me: error: C compiler cannot create executables
1659 See \`config.log' for more details." >&2;}
1660    { (exit 77); exit 77; }; }
1661 fi
1662
1663 ac_exeext=$ac_cv_exeext
1664 echo "$as_me:$LINENO: result: $ac_file" >&5
1665 echo "${ECHO_T}$ac_file" >&6
1666
1667 # Check the compiler produces executables we can run.  If not, either
1668 # the compiler is broken, or we cross compile.
1669 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1670 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1671 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1672 # If not cross compiling, check that we can run a simple program.
1673 if test "$cross_compiling" != yes; then
1674   if { ac_try='./$ac_file'
1675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1676   (eval $ac_try) 2>&5
1677   ac_status=$?
1678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1679   (exit $ac_status); }; }; then
1680     cross_compiling=no
1681   else
1682     if test "$cross_compiling" = maybe; then
1683         cross_compiling=yes
1684     else
1685         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1686 If you meant to cross compile, use \`--host'.
1687 See \`config.log' for more details." >&5
1688 echo "$as_me: error: cannot run C compiled programs.
1689 If you meant to cross compile, use \`--host'.
1690 See \`config.log' for more details." >&2;}
1691    { (exit 1); exit 1; }; }
1692     fi
1693   fi
1694 fi
1695 echo "$as_me:$LINENO: result: yes" >&5
1696 echo "${ECHO_T}yes" >&6
1697
1698 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1699 ac_clean_files=$ac_clean_files_save
1700 # Check the compiler produces executables we can run.  If not, either
1701 # the compiler is broken, or we cross compile.
1702 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1703 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1704 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1705 echo "${ECHO_T}$cross_compiling" >&6
1706
1707 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1708 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1710   (eval $ac_link) 2>&5
1711   ac_status=$?
1712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1713   (exit $ac_status); }; then
1714   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1715 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1716 # work properly (i.e., refer to `conftest.exe'), while it won't with
1717 # `rm'.
1718 for ac_file in conftest.exe conftest conftest.*; do
1719   test -f "$ac_file" || continue
1720   case $ac_file in
1721     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1722     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1723           export ac_cv_exeext
1724           break;;
1725     * ) break;;
1726   esac
1727 done
1728 else
1729   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1730 See \`config.log' for more details." >&5
1731 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1732 See \`config.log' for more details." >&2;}
1733    { (exit 1); exit 1; }; }
1734 fi
1735
1736 rm -f conftest$ac_cv_exeext
1737 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1738 echo "${ECHO_T}$ac_cv_exeext" >&6
1739
1740 rm -f conftest.$ac_ext
1741 EXEEXT=$ac_cv_exeext
1742 ac_exeext=$EXEEXT
1743 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1744 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1745 if test "${ac_cv_objext+set}" = set; then
1746   echo $ECHO_N "(cached) $ECHO_C" >&6
1747 else
1748   cat >conftest.$ac_ext <<_ACEOF
1749 /* confdefs.h.  */
1750 _ACEOF
1751 cat confdefs.h >>conftest.$ac_ext
1752 cat >>conftest.$ac_ext <<_ACEOF
1753 /* end confdefs.h.  */
1754
1755 int
1756 main ()
1757 {
1758
1759   ;
1760   return 0;
1761 }
1762 _ACEOF
1763 rm -f conftest.o conftest.obj
1764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1765   (eval $ac_compile) 2>&5
1766   ac_status=$?
1767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1768   (exit $ac_status); }; then
1769   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1770   case $ac_file in
1771     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1772     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1773        break;;
1774   esac
1775 done
1776 else
1777   echo "$as_me: failed program was:" >&5
1778 sed 's/^/| /' conftest.$ac_ext >&5
1779
1780 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1781 See \`config.log' for more details." >&5
1782 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1783 See \`config.log' for more details." >&2;}
1784    { (exit 1); exit 1; }; }
1785 fi
1786
1787 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1788 fi
1789 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1790 echo "${ECHO_T}$ac_cv_objext" >&6
1791 OBJEXT=$ac_cv_objext
1792 ac_objext=$OBJEXT
1793 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1794 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1795 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1796   echo $ECHO_N "(cached) $ECHO_C" >&6
1797 else
1798   cat >conftest.$ac_ext <<_ACEOF
1799 /* confdefs.h.  */
1800 _ACEOF
1801 cat confdefs.h >>conftest.$ac_ext
1802 cat >>conftest.$ac_ext <<_ACEOF
1803 /* end confdefs.h.  */
1804
1805 int
1806 main ()
1807 {
1808 #ifndef __GNUC__
1809        choke me
1810 #endif
1811
1812   ;
1813   return 0;
1814 }
1815 _ACEOF
1816 rm -f conftest.$ac_objext
1817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1818   (eval $ac_compile) 2>conftest.er1
1819   ac_status=$?
1820   grep -v '^ *+' conftest.er1 >conftest.err
1821   rm -f conftest.er1
1822   cat conftest.err >&5
1823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1824   (exit $ac_status); } &&
1825          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
1826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1827   (eval $ac_try) 2>&5
1828   ac_status=$?
1829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1830   (exit $ac_status); }; } &&
1831          { ac_try='test -s conftest.$ac_objext'
1832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1833   (eval $ac_try) 2>&5
1834   ac_status=$?
1835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1836   (exit $ac_status); }; }; then
1837   ac_compiler_gnu=yes
1838 else
1839   echo "$as_me: failed program was:" >&5
1840 sed 's/^/| /' conftest.$ac_ext >&5
1841
1842 ac_compiler_gnu=no
1843 fi
1844 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1845 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1846
1847 fi
1848 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1849 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1850 GCC=`test $ac_compiler_gnu = yes && echo yes`
1851 ac_test_CFLAGS=${CFLAGS+set}
1852 ac_save_CFLAGS=$CFLAGS
1853 CFLAGS="-g"
1854 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1855 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1856 if test "${ac_cv_prog_cc_g+set}" = set; then
1857   echo $ECHO_N "(cached) $ECHO_C" >&6
1858 else
1859   cat >conftest.$ac_ext <<_ACEOF
1860 /* confdefs.h.  */
1861 _ACEOF
1862 cat confdefs.h >>conftest.$ac_ext
1863 cat >>conftest.$ac_ext <<_ACEOF
1864 /* end confdefs.h.  */
1865
1866 int
1867 main ()
1868 {
1869
1870   ;
1871   return 0;
1872 }
1873 _ACEOF
1874 rm -f conftest.$ac_objext
1875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1876   (eval $ac_compile) 2>conftest.er1
1877   ac_status=$?
1878   grep -v '^ *+' conftest.er1 >conftest.err
1879   rm -f conftest.er1
1880   cat conftest.err >&5
1881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1882   (exit $ac_status); } &&
1883          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
1884   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1885   (eval $ac_try) 2>&5
1886   ac_status=$?
1887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1888   (exit $ac_status); }; } &&
1889          { ac_try='test -s conftest.$ac_objext'
1890   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1891   (eval $ac_try) 2>&5
1892   ac_status=$?
1893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1894   (exit $ac_status); }; }; then
1895   ac_cv_prog_cc_g=yes
1896 else
1897   echo "$as_me: failed program was:" >&5
1898 sed 's/^/| /' conftest.$ac_ext >&5
1899
1900 ac_cv_prog_cc_g=no
1901 fi
1902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1903 fi
1904 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1905 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1906 if test "$ac_test_CFLAGS" = set; then
1907   CFLAGS=$ac_save_CFLAGS
1908 elif test $ac_cv_prog_cc_g = yes; then
1909   if test "$GCC" = yes; then
1910     CFLAGS="-g -O2"
1911   else
1912     CFLAGS="-g"
1913   fi
1914 else
1915   if test "$GCC" = yes; then
1916     CFLAGS="-O2"
1917   else
1918     CFLAGS=
1919   fi
1920 fi
1921 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1922 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1923 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1924   echo $ECHO_N "(cached) $ECHO_C" >&6
1925 else
1926   ac_cv_prog_cc_stdc=no
1927 ac_save_CC=$CC
1928 cat >conftest.$ac_ext <<_ACEOF
1929 /* confdefs.h.  */
1930 _ACEOF
1931 cat confdefs.h >>conftest.$ac_ext
1932 cat >>conftest.$ac_ext <<_ACEOF
1933 /* end confdefs.h.  */
1934 #include <stdarg.h>
1935 #include <stdio.h>
1936 #include <sys/types.h>
1937 #include <sys/stat.h>
1938 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
1939 struct buf { int x; };
1940 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1941 static char *e (p, i)
1942      char **p;
1943      int i;
1944 {
1945   return p[i];
1946 }
1947 static char *f (char * (*g) (char **, int), char **p, ...)
1948 {
1949   char *s;
1950   va_list v;
1951   va_start (v,p);
1952   s = g (p, va_arg (v,int));
1953   va_end (v);
1954   return s;
1955 }
1956
1957 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
1958    function prototypes and stuff, but not '\xHH' hex character constants.
1959    These don't provoke an error unfortunately, instead are silently treated
1960    as 'x'.  The following induces an error, until -std1 is added to get
1961    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
1962    array size at least.  It's necessary to write '\x00'==0 to get something
1963    that's true only with -std1.  */
1964 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
1965
1966 int test (int i, double x);
1967 struct s1 {int (*f) (int a);};
1968 struct s2 {int (*f) (double a);};
1969 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1970 int argc;
1971 char **argv;
1972 int
1973 main ()
1974 {
1975 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
1976   ;
1977   return 0;
1978 }
1979 _ACEOF
1980 # Don't try gcc -ansi; that turns off useful extensions and
1981 # breaks some systems' header files.
1982 # AIX                   -qlanglvl=ansi
1983 # Ultrix and OSF/1      -std1
1984 # HP-UX 10.20 and later -Ae
1985 # HP-UX older versions  -Aa -D_HPUX_SOURCE
1986 # SVR4                  -Xc -D__EXTENSIONS__
1987 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1988 do
1989   CC="$ac_save_CC $ac_arg"
1990   rm -f conftest.$ac_objext
1991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1992   (eval $ac_compile) 2>conftest.er1
1993   ac_status=$?
1994   grep -v '^ *+' conftest.er1 >conftest.err
1995   rm -f conftest.er1
1996   cat conftest.err >&5
1997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1998   (exit $ac_status); } &&
1999          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2000   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2001   (eval $ac_try) 2>&5
2002   ac_status=$?
2003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2004   (exit $ac_status); }; } &&
2005          { ac_try='test -s conftest.$ac_objext'
2006   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2007   (eval $ac_try) 2>&5
2008   ac_status=$?
2009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2010   (exit $ac_status); }; }; then
2011   ac_cv_prog_cc_stdc=$ac_arg
2012 break
2013 else
2014   echo "$as_me: failed program was:" >&5
2015 sed 's/^/| /' conftest.$ac_ext >&5
2016
2017 fi
2018 rm -f conftest.err conftest.$ac_objext
2019 done
2020 rm -f conftest.$ac_ext conftest.$ac_objext
2021 CC=$ac_save_CC
2022
2023 fi
2024
2025 case "x$ac_cv_prog_cc_stdc" in
2026   x|xno)
2027     echo "$as_me:$LINENO: result: none needed" >&5
2028 echo "${ECHO_T}none needed" >&6 ;;
2029   *)
2030     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2031 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2032     CC="$CC $ac_cv_prog_cc_stdc" ;;
2033 esac
2034
2035 # Some people use a C++ compiler to compile C.  Since we use `exit',
2036 # in C++ we need to declare it.  In case someone uses the same compiler
2037 # for both compiling C and C++ we need to have the C++ compiler decide
2038 # the declaration of exit, since it's the most demanding environment.
2039 cat >conftest.$ac_ext <<_ACEOF
2040 #ifndef __cplusplus
2041   choke me
2042 #endif
2043 _ACEOF
2044 rm -f conftest.$ac_objext
2045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2046   (eval $ac_compile) 2>conftest.er1
2047   ac_status=$?
2048   grep -v '^ *+' conftest.er1 >conftest.err
2049   rm -f conftest.er1
2050   cat conftest.err >&5
2051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2052   (exit $ac_status); } &&
2053          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2054   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2055   (eval $ac_try) 2>&5
2056   ac_status=$?
2057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2058   (exit $ac_status); }; } &&
2059          { ac_try='test -s conftest.$ac_objext'
2060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2061   (eval $ac_try) 2>&5
2062   ac_status=$?
2063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2064   (exit $ac_status); }; }; then
2065   for ac_declaration in \
2066    '' \
2067    'extern "C" void std::exit (int) throw (); using std::exit;' \
2068    'extern "C" void std::exit (int); using std::exit;' \
2069    'extern "C" void exit (int) throw ();' \
2070    'extern "C" void exit (int);' \
2071    'void exit (int);'
2072 do
2073   cat >conftest.$ac_ext <<_ACEOF
2074 /* confdefs.h.  */
2075 _ACEOF
2076 cat confdefs.h >>conftest.$ac_ext
2077 cat >>conftest.$ac_ext <<_ACEOF
2078 /* end confdefs.h.  */
2079 $ac_declaration
2080 #include <stdlib.h>
2081 int
2082 main ()
2083 {
2084 exit (42);
2085   ;
2086   return 0;
2087 }
2088 _ACEOF
2089 rm -f conftest.$ac_objext
2090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2091   (eval $ac_compile) 2>conftest.er1
2092   ac_status=$?
2093   grep -v '^ *+' conftest.er1 >conftest.err
2094   rm -f conftest.er1
2095   cat conftest.err >&5
2096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097   (exit $ac_status); } &&
2098          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2099   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2100   (eval $ac_try) 2>&5
2101   ac_status=$?
2102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2103   (exit $ac_status); }; } &&
2104          { ac_try='test -s conftest.$ac_objext'
2105   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2106   (eval $ac_try) 2>&5
2107   ac_status=$?
2108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2109   (exit $ac_status); }; }; then
2110   :
2111 else
2112   echo "$as_me: failed program was:" >&5
2113 sed 's/^/| /' conftest.$ac_ext >&5
2114
2115 continue
2116 fi
2117 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2118   cat >conftest.$ac_ext <<_ACEOF
2119 /* confdefs.h.  */
2120 _ACEOF
2121 cat confdefs.h >>conftest.$ac_ext
2122 cat >>conftest.$ac_ext <<_ACEOF
2123 /* end confdefs.h.  */
2124 $ac_declaration
2125 int
2126 main ()
2127 {
2128 exit (42);
2129   ;
2130   return 0;
2131 }
2132 _ACEOF
2133 rm -f conftest.$ac_objext
2134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2135   (eval $ac_compile) 2>conftest.er1
2136   ac_status=$?
2137   grep -v '^ *+' conftest.er1 >conftest.err
2138   rm -f conftest.er1
2139   cat conftest.err >&5
2140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2141   (exit $ac_status); } &&
2142          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2144   (eval $ac_try) 2>&5
2145   ac_status=$?
2146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2147   (exit $ac_status); }; } &&
2148          { ac_try='test -s conftest.$ac_objext'
2149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2150   (eval $ac_try) 2>&5
2151   ac_status=$?
2152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2153   (exit $ac_status); }; }; then
2154   break
2155 else
2156   echo "$as_me: failed program was:" >&5
2157 sed 's/^/| /' conftest.$ac_ext >&5
2158
2159 fi
2160 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2161 done
2162 rm -f conftest*
2163 if test -n "$ac_declaration"; then
2164   echo '#ifdef __cplusplus' >>confdefs.h
2165   echo $ac_declaration      >>confdefs.h
2166   echo '#endif'             >>confdefs.h
2167 fi
2168
2169 else
2170   echo "$as_me: failed program was:" >&5
2171 sed 's/^/| /' conftest.$ac_ext >&5
2172
2173 fi
2174 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2175 ac_ext=c
2176 ac_cpp='$CPP $CPPFLAGS'
2177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2180
2181         ac_ext=c
2182 ac_cpp='$CPP $CPPFLAGS'
2183 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2184 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2185 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2186 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2187 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2188 # On Suns, sometimes $CPP names a directory.
2189 if test -n "$CPP" && test -d "$CPP"; then
2190   CPP=
2191 fi
2192 if test -z "$CPP"; then
2193   if test "${ac_cv_prog_CPP+set}" = set; then
2194   echo $ECHO_N "(cached) $ECHO_C" >&6
2195 else
2196       # Double quotes because CPP needs to be expanded
2197     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2198     do
2199       ac_preproc_ok=false
2200 for ac_c_preproc_warn_flag in '' yes
2201 do
2202   # Use a header file that comes with gcc, so configuring glibc
2203   # with a fresh cross-compiler works.
2204   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2205   # <limits.h> exists even on freestanding compilers.
2206   # On the NeXT, cc -E runs the code through the compiler's parser,
2207   # not just through cpp. "Syntax error" is here to catch this case.
2208   cat >conftest.$ac_ext <<_ACEOF
2209 /* confdefs.h.  */
2210 _ACEOF
2211 cat confdefs.h >>conftest.$ac_ext
2212 cat >>conftest.$ac_ext <<_ACEOF
2213 /* end confdefs.h.  */
2214 #ifdef __STDC__
2215 # include <limits.h>
2216 #else
2217 # include <assert.h>
2218 #endif
2219                      Syntax error
2220 _ACEOF
2221 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2222   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2223   ac_status=$?
2224   grep -v '^ *+' conftest.er1 >conftest.err
2225   rm -f conftest.er1
2226   cat conftest.err >&5
2227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228   (exit $ac_status); } >/dev/null; then
2229   if test -s conftest.err; then
2230     ac_cpp_err=$ac_c_preproc_warn_flag
2231     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2232   else
2233     ac_cpp_err=
2234   fi
2235 else
2236   ac_cpp_err=yes
2237 fi
2238 if test -z "$ac_cpp_err"; then
2239   :
2240 else
2241   echo "$as_me: failed program was:" >&5
2242 sed 's/^/| /' conftest.$ac_ext >&5
2243
2244   # Broken: fails on valid input.
2245 continue
2246 fi
2247 rm -f conftest.err conftest.$ac_ext
2248
2249   # OK, works on sane cases.  Now check whether non-existent headers
2250   # can be detected and how.
2251   cat >conftest.$ac_ext <<_ACEOF
2252 /* confdefs.h.  */
2253 _ACEOF
2254 cat confdefs.h >>conftest.$ac_ext
2255 cat >>conftest.$ac_ext <<_ACEOF
2256 /* end confdefs.h.  */
2257 #include <ac_nonexistent.h>
2258 _ACEOF
2259 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2260   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2261   ac_status=$?
2262   grep -v '^ *+' conftest.er1 >conftest.err
2263   rm -f conftest.er1
2264   cat conftest.err >&5
2265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266   (exit $ac_status); } >/dev/null; then
2267   if test -s conftest.err; then
2268     ac_cpp_err=$ac_c_preproc_warn_flag
2269     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2270   else
2271     ac_cpp_err=
2272   fi
2273 else
2274   ac_cpp_err=yes
2275 fi
2276 if test -z "$ac_cpp_err"; then
2277   # Broken: success on invalid input.
2278 continue
2279 else
2280   echo "$as_me: failed program was:" >&5
2281 sed 's/^/| /' conftest.$ac_ext >&5
2282
2283   # Passes both tests.
2284 ac_preproc_ok=:
2285 break
2286 fi
2287 rm -f conftest.err conftest.$ac_ext
2288
2289 done
2290 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2291 rm -f conftest.err conftest.$ac_ext
2292 if $ac_preproc_ok; then
2293   break
2294 fi
2295
2296     done
2297     ac_cv_prog_CPP=$CPP
2298
2299 fi
2300   CPP=$ac_cv_prog_CPP
2301 else
2302   ac_cv_prog_CPP=$CPP
2303 fi
2304 echo "$as_me:$LINENO: result: $CPP" >&5
2305 echo "${ECHO_T}$CPP" >&6
2306 ac_preproc_ok=false
2307 for ac_c_preproc_warn_flag in '' yes
2308 do
2309   # Use a header file that comes with gcc, so configuring glibc
2310   # with a fresh cross-compiler works.
2311   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2312   # <limits.h> exists even on freestanding compilers.
2313   # On the NeXT, cc -E runs the code through the compiler's parser,
2314   # not just through cpp. "Syntax error" is here to catch this case.
2315   cat >conftest.$ac_ext <<_ACEOF
2316 /* confdefs.h.  */
2317 _ACEOF
2318 cat confdefs.h >>conftest.$ac_ext
2319 cat >>conftest.$ac_ext <<_ACEOF
2320 /* end confdefs.h.  */
2321 #ifdef __STDC__
2322 # include <limits.h>
2323 #else
2324 # include <assert.h>
2325 #endif
2326                      Syntax error
2327 _ACEOF
2328 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2329   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2330   ac_status=$?
2331   grep -v '^ *+' conftest.er1 >conftest.err
2332   rm -f conftest.er1
2333   cat conftest.err >&5
2334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2335   (exit $ac_status); } >/dev/null; then
2336   if test -s conftest.err; then
2337     ac_cpp_err=$ac_c_preproc_warn_flag
2338     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2339   else
2340     ac_cpp_err=
2341   fi
2342 else
2343   ac_cpp_err=yes
2344 fi
2345 if test -z "$ac_cpp_err"; then
2346   :
2347 else
2348   echo "$as_me: failed program was:" >&5
2349 sed 's/^/| /' conftest.$ac_ext >&5
2350
2351   # Broken: fails on valid input.
2352 continue
2353 fi
2354 rm -f conftest.err conftest.$ac_ext
2355
2356   # OK, works on sane cases.  Now check whether non-existent headers
2357   # can be detected and how.
2358   cat >conftest.$ac_ext <<_ACEOF
2359 /* confdefs.h.  */
2360 _ACEOF
2361 cat confdefs.h >>conftest.$ac_ext
2362 cat >>conftest.$ac_ext <<_ACEOF
2363 /* end confdefs.h.  */
2364 #include <ac_nonexistent.h>
2365 _ACEOF
2366 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2367   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2368   ac_status=$?
2369   grep -v '^ *+' conftest.er1 >conftest.err
2370   rm -f conftest.er1
2371   cat conftest.err >&5
2372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2373   (exit $ac_status); } >/dev/null; then
2374   if test -s conftest.err; then
2375     ac_cpp_err=$ac_c_preproc_warn_flag
2376     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2377   else
2378     ac_cpp_err=
2379   fi
2380 else
2381   ac_cpp_err=yes
2382 fi
2383 if test -z "$ac_cpp_err"; then
2384   # Broken: success on invalid input.
2385 continue
2386 else
2387   echo "$as_me: failed program was:" >&5
2388 sed 's/^/| /' conftest.$ac_ext >&5
2389
2390   # Passes both tests.
2391 ac_preproc_ok=:
2392 break
2393 fi
2394 rm -f conftest.err conftest.$ac_ext
2395
2396 done
2397 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2398 rm -f conftest.err conftest.$ac_ext
2399 if $ac_preproc_ok; then
2400   :
2401 else
2402   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2403 See \`config.log' for more details." >&5
2404 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2405 See \`config.log' for more details." >&2;}
2406    { (exit 1); exit 1; }; }
2407 fi
2408
2409 ac_ext=c
2410 ac_cpp='$CPP $CPPFLAGS'
2411 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2412 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2413 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2414
2415
2416         targetname=rlm_sql_oracle   # we might change this later.
2417
2418
2419
2420
2421         echo "$as_me:$LINENO: checking for oci.h" >&5
2422 echo $ECHO_N "checking for oci.h... $ECHO_C" >&6
2423
2424
2425
2426 cat >conftest.$ac_ext <<_ACEOF
2427 /* confdefs.h.  */
2428 _ACEOF
2429 cat confdefs.h >>conftest.$ac_ext
2430 cat >>conftest.$ac_ext <<_ACEOF
2431 /* end confdefs.h.  */
2432 #include <oci.h>
2433 int
2434 main ()
2435 {
2436  int a = 1;
2437   ;
2438   return 0;
2439 }
2440 _ACEOF
2441 rm -f conftest.$ac_objext
2442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2443   (eval $ac_compile) 2>conftest.er1
2444   ac_status=$?
2445   grep -v '^ *+' conftest.er1 >conftest.err
2446   rm -f conftest.er1
2447   cat conftest.err >&5
2448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2449   (exit $ac_status); } &&
2450          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2452   (eval $ac_try) 2>&5
2453   ac_status=$?
2454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455   (exit $ac_status); }; } &&
2456          { ac_try='test -s conftest.$ac_objext'
2457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2458   (eval $ac_try) 2>&5
2459   ac_status=$?
2460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461   (exit $ac_status); }; }; then
2462   ORACLE_INCLUDE=" "
2463 else
2464   echo "$as_me: failed program was:" >&5
2465 sed 's/^/| /' conftest.$ac_ext >&5
2466
2467 ORACLE_INCLUDE=
2468
2469 fi
2470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2471
2472         # Look for Oracle10g "Instant Client" installed from RPM
2473         if test "x$ORACLE_INCLUDE" = "x"; then
2474                 old_CFLAGS="$CFLAGS"
2475
2476         { echo "$as_me:$LINENO: WARNING: PETER XXXXXXXXXXXXXXXX1." >&5
2477 echo "$as_me: WARNING: PETER XXXXXXXXXXXXXXXX1." >&2;}
2478
2479
2480 if test "x$LOCATE" != "x"; then
2481         DIRS=
2482   file=oci.h
2483
2484   for x in `${LOCATE} $file 2>/dev/null`; do
2485                                         base=`echo $x | sed "s%/${file}%%"`
2486     if test "x$x" = "x$base"; then
2487       continue;
2488     fi
2489
2490     dir=`${DIRNAME} $x 2>/dev/null`
2491                 exclude=`echo ${dir} | ${GREP} /home`
2492     if test "x$exclude" != "x"; then
2493       continue
2494     fi
2495
2496                     already=`echo \$oracle_include_dir ${DIRS} | ${GREP} ${dir}`
2497     if test "x$already" = "x"; then
2498       DIRS="$DIRS $dir"
2499     fi
2500   done
2501 fi
2502
2503 eval "oracle_include_dir=\"\$oracle_include_dir $DIRS\""
2504
2505
2506                 for try in /usr/include/oracle/10.1.0.3/client $oracle_include_dir; do
2507                         CFLAGS="$old_CFLAGS -I$try"
2508                         cat >conftest.$ac_ext <<_ACEOF
2509 /* confdefs.h.  */
2510 _ACEOF
2511 cat confdefs.h >>conftest.$ac_ext
2512 cat >>conftest.$ac_ext <<_ACEOF
2513 /* end confdefs.h.  */
2514 #include <oci.h>
2515 int
2516 main ()
2517 {
2518  int a = 1;
2519   ;
2520   return 0;
2521 }
2522 _ACEOF
2523 rm -f conftest.$ac_objext
2524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2525   (eval $ac_compile) 2>conftest.er1
2526   ac_status=$?
2527   grep -v '^ *+' conftest.er1 >conftest.err
2528   rm -f conftest.er1
2529   cat conftest.err >&5
2530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2531   (exit $ac_status); } &&
2532          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2533   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2534   (eval $ac_try) 2>&5
2535   ac_status=$?
2536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2537   (exit $ac_status); }; } &&
2538          { ac_try='test -s conftest.$ac_objext'
2539   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2540   (eval $ac_try) 2>&5
2541   ac_status=$?
2542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2543   (exit $ac_status); }; }; then
2544   ORACLE_INCLUDE="-I$try"
2545 else
2546   echo "$as_me: failed program was:" >&5
2547 sed 's/^/| /' conftest.$ac_ext >&5
2548
2549 ORACLE_INCLUDE=
2550
2551 fi
2552 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2553                         if test "x$ORACLE_INCLUDE" != "x"; then
2554                                 ORACLE_LIBS="-L$/usr/lib/oracle/10.1.0.3/client/lib -lclntsh -lm"
2555                                 break;
2556                         fi
2557                 done
2558                 CFLAGS="$old_CFLAGS"
2559         fi
2560         # Finish Looking for Oracle10g includes installed from RPM
2561
2562         # Look for Oracle8i.
2563         if test "x$ORACLE_INCLUDE" = "x"; then
2564                 old_CFLAGS="$CFLAGS"
2565
2566
2567
2568 if test "x$LOCATE" != "x"; then
2569         DIRS=
2570   file=oci.h
2571
2572   for x in `${LOCATE} $file 2>/dev/null`; do
2573                                         base=`echo $x | sed "s%/${file}%%"`
2574     if test "x$x" = "x$base"; then
2575       continue;
2576     fi
2577
2578     dir=`${DIRNAME} $x 2>/dev/null`
2579                 exclude=`echo ${dir} | ${GREP} /home`
2580     if test "x$exclude" != "x"; then
2581       continue
2582     fi
2583
2584                     already=`echo \$oracle_home_dir ${DIRS} | ${GREP} ${dir}`
2585     if test "x$already" = "x"; then
2586       DIRS="$DIRS $dir"
2587     fi
2588   done
2589 fi
2590
2591 eval "oracle_home_dir=\"\$oracle_home_dir $DIRS\""
2592
2593
2594                 for try in $oracle_home_dir $oracle_include_dir; do
2595                         CFLAGS="$old_CFLAGS -I${try}/rdbms/demo -I${try}/rdbms/public -I${try}/plsql/public -I${try}/network/public -I${try}/oci/include"
2596                         cat >conftest.$ac_ext <<_ACEOF
2597 /* confdefs.h.  */
2598 _ACEOF
2599 cat confdefs.h >>conftest.$ac_ext
2600 cat >>conftest.$ac_ext <<_ACEOF
2601 /* end confdefs.h.  */
2602 #include <oci.h>
2603 int
2604 main ()
2605 {
2606  int a = 1;
2607   ;
2608   return 0;
2609 }
2610 _ACEOF
2611 rm -f conftest.$ac_objext
2612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2613   (eval $ac_compile) 2>conftest.er1
2614   ac_status=$?
2615   grep -v '^ *+' conftest.er1 >conftest.err
2616   rm -f conftest.er1
2617   cat conftest.err >&5
2618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619   (exit $ac_status); } &&
2620          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2621   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2622   (eval $ac_try) 2>&5
2623   ac_status=$?
2624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625   (exit $ac_status); }; } &&
2626          { ac_try='test -s conftest.$ac_objext'
2627   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2628   (eval $ac_try) 2>&5
2629   ac_status=$?
2630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631   (exit $ac_status); }; }; then
2632   OHOME=$try
2633 else
2634   echo "$as_me: failed program was:" >&5
2635 sed 's/^/| /' conftest.$ac_ext >&5
2636
2637 OHOME=
2638
2639 fi
2640 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2641                         if test "x$OHOME" != "x"; then
2642                                 break;
2643                         fi
2644                 done
2645
2646                 if test "x$OHOME" = "x" -a "x$ORACLE_HOME" != "x"; then
2647                         CFLAGS="$old_CFLAGS -I${ORACLE_HOME}/rdbms/demo -I${ORACLE_HOME}/rdbms/public -I${ORACLE_HOME}/plsql/public -I${ORACLE_HOME}/network/public -I${ORACLE_HOME}/oci/include"
2648                         cat >conftest.$ac_ext <<_ACEOF
2649 /* confdefs.h.  */
2650 _ACEOF
2651 cat confdefs.h >>conftest.$ac_ext
2652 cat >>conftest.$ac_ext <<_ACEOF
2653 /* end confdefs.h.  */
2654 #include <oci.h>
2655 int
2656 main ()
2657 {
2658  int a = 1;
2659   ;
2660   return 0;
2661 }
2662 _ACEOF
2663 rm -f conftest.$ac_objext
2664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2665   (eval $ac_compile) 2>conftest.er1
2666   ac_status=$?
2667   grep -v '^ *+' conftest.er1 >conftest.err
2668   rm -f conftest.er1
2669   cat conftest.err >&5
2670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671   (exit $ac_status); } &&
2672          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2674   (eval $ac_try) 2>&5
2675   ac_status=$?
2676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2677   (exit $ac_status); }; } &&
2678          { ac_try='test -s conftest.$ac_objext'
2679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2680   (eval $ac_try) 2>&5
2681   ac_status=$?
2682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2683   (exit $ac_status); }; }; then
2684   OHOME=$ORACLE_HOME
2685 else
2686   echo "$as_me: failed program was:" >&5
2687 sed 's/^/| /' conftest.$ac_ext >&5
2688
2689 OHOME=
2690
2691 fi
2692 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2693                 fi
2694
2695                 CFLAGS="$old_CFLAGS"
2696
2697                 if test "x$OHOME" != "x"; then
2698                         ORACLE_HOME=$OHOME
2699                         ORACLE_INCLUDE="-I${ORACLE_HOME}/rdbms/demo -I${ORACLE_HOME}/rdbms/public -I${ORACLE_HOME}/plsql/public -I${ORACLE_HOME}/network/public -I${ORACLE_HOME}/oci/include"
2700                 fi
2701         fi     ##  this section sets $ORACLE_HOME, if found.
2702
2703         # not Oracle8i, try older.
2704         if test "x$ORACLE_INCLUDE" = "x"; then
2705                 old_CFLAGS="$CFLAGS"
2706
2707
2708
2709 if test "x$LOCATE" != "x"; then
2710         DIRS=
2711   file=oci.h
2712
2713   for x in `${LOCATE} $file 2>/dev/null`; do
2714                                         base=`echo $x | sed "s%/${file}%%"`
2715     if test "x$x" = "x$base"; then
2716       continue;
2717     fi
2718
2719     dir=`${DIRNAME} $x 2>/dev/null`
2720                 exclude=`echo ${dir} | ${GREP} /home`
2721     if test "x$exclude" != "x"; then
2722       continue
2723     fi
2724
2725                     already=`echo \$oracle_include_dir ${DIRS} | ${GREP} ${dir}`
2726     if test "x$already" = "x"; then
2727       DIRS="$DIRS $dir"
2728     fi
2729   done
2730 fi
2731
2732 eval "oracle_include_dir=\"\$oracle_include_dir $DIRS\""
2733
2734
2735                 for try in /usr/local/include/oracle /usr/local/oracle/include $oracle_include_dir; do
2736                         CFLAGS="$old_CFLAGS -I$try"
2737                         cat >conftest.$ac_ext <<_ACEOF
2738 /* confdefs.h.  */
2739 _ACEOF
2740 cat confdefs.h >>conftest.$ac_ext
2741 cat >>conftest.$ac_ext <<_ACEOF
2742 /* end confdefs.h.  */
2743 #include <oci.h>
2744 int
2745 main ()
2746 {
2747  int a = 1;
2748   ;
2749   return 0;
2750 }
2751 _ACEOF
2752 rm -f conftest.$ac_objext
2753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2754   (eval $ac_compile) 2>conftest.er1
2755   ac_status=$?
2756   grep -v '^ *+' conftest.er1 >conftest.err
2757   rm -f conftest.er1
2758   cat conftest.err >&5
2759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2760   (exit $ac_status); } &&
2761          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2762   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2763   (eval $ac_try) 2>&5
2764   ac_status=$?
2765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2766   (exit $ac_status); }; } &&
2767          { ac_try='test -s conftest.$ac_objext'
2768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2769   (eval $ac_try) 2>&5
2770   ac_status=$?
2771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772   (exit $ac_status); }; }; then
2773   ORACLE_INCLUDE="-I$try"
2774 else
2775   echo "$as_me: failed program was:" >&5
2776 sed 's/^/| /' conftest.$ac_ext >&5
2777
2778 ORACLE_INCLUDE=
2779
2780 fi
2781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2782                         if test "x$ORACLE_INCLUDE" != "x"; then
2783                                 break;
2784                         fi
2785                 done
2786                 CFLAGS="$old_CFLAGS"
2787         fi
2788
2789         if test "x$ORACLE_INCLUDE" = "x"; then
2790                 echo "$as_me:$LINENO: result: no" >&5
2791 echo "${ECHO_T}no" >&6
2792                 { echo "$as_me:$LINENO: WARNING: oracle headers not found.  Use --with-oracle-home-dir=<path>." >&5
2793 echo "$as_me: WARNING: oracle headers not found.  Use --with-oracle-home-dir=<path>." >&2;}
2794                 targetname=   # disabled module
2795         else
2796                 sql_oracle_cflags="${sql_oracle_cflags} ${ORACLE_INCLUDE}"
2797                 echo "$as_me:$LINENO: result: yes" >&5
2798 echo "${ECHO_T}yes" >&6
2799
2800
2801                 ## is this set, from above?
2802                 if test "x$ORACLE_HOME" != "x"; then
2803                         ## we must have an Oracle8i tree
2804
2805                         # FIXME: we might do some checking, just to be nice
2806                         ORACLE_LIBS="-L$ORACLE_HOME/lib -lclntsh -lm"
2807
2808                 else
2809                         echo "$as_me:$LINENO: checking for oracle_init in -loracleclient" >&5
2810 echo $ECHO_N "checking for oracle_init in -loracleclient... $ECHO_C" >&6
2811
2812                                                                                                 old_LIBS="$LIBS"
2813
2814
2815
2816 if test "x$LOCATE" != "x"; then
2817         DIRS=
2818   file=oracleclient.so
2819
2820   for x in `${LOCATE} $file 2>/dev/null`; do
2821                                         base=`echo $x | sed "s%/${file}%%"`
2822     if test "x$x" = "x$base"; then
2823       continue;
2824     fi
2825
2826     dir=`${DIRNAME} $x 2>/dev/null`
2827                 exclude=`echo ${dir} | ${GREP} /home`
2828     if test "x$exclude" != "x"; then
2829       continue
2830     fi
2831
2832                     already=`echo \$oracle_lib_dir ${DIRS} | ${GREP} ${dir}`
2833     if test "x$already" = "x"; then
2834       DIRS="$DIRS $dir"
2835     fi
2836   done
2837 fi
2838
2839 eval "oracle_lib_dir=\"\$oracle_lib_dir $DIRS\""
2840
2841
2842
2843 if test "x$LOCATE" != "x"; then
2844         DIRS=
2845   file=oracleclient.a
2846
2847   for x in `${LOCATE} $file 2>/dev/null`; do
2848                                         base=`echo $x | sed "s%/${file}%%"`
2849     if test "x$x" = "x$base"; then
2850       continue;
2851     fi
2852
2853     dir=`${DIRNAME} $x 2>/dev/null`
2854                 exclude=`echo ${dir} | ${GREP} /home`
2855     if test "x$exclude" != "x"; then
2856       continue
2857     fi
2858
2859                     already=`echo \$oracle_lib_dir ${DIRS} | ${GREP} ${dir}`
2860     if test "x$already" = "x"; then
2861       DIRS="$DIRS $dir"
2862     fi
2863   done
2864 fi
2865
2866 eval "oracle_lib_dir=\"\$oracle_lib_dir $DIRS\""
2867
2868
2869                         for try in /usr/lib/oracle /usr/local/lib/oracle /usr/local/oracle/lib $oracle_lib_dir; do
2870                                 LIBS="$old_LIBS -L$try -loracleclient"
2871                                 cat >conftest.$ac_ext <<_ACEOF
2872 /* confdefs.h.  */
2873 _ACEOF
2874 cat confdefs.h >>conftest.$ac_ext
2875 cat >>conftest.$ac_ext <<_ACEOF
2876 /* end confdefs.h.  */
2877 extern char oracle_init();
2878 int
2879 main ()
2880 {
2881  oracle_init()
2882   ;
2883   return 0;
2884 }
2885 _ACEOF
2886 rm -f conftest.$ac_objext conftest$ac_exeext
2887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2888   (eval $ac_link) 2>conftest.er1
2889   ac_status=$?
2890   grep -v '^ *+' conftest.er1 >conftest.err
2891   rm -f conftest.er1
2892   cat conftest.err >&5
2893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894   (exit $ac_status); } &&
2895          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2896   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2897   (eval $ac_try) 2>&5
2898   ac_status=$?
2899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900   (exit $ac_status); }; } &&
2901          { ac_try='test -s conftest$ac_exeext'
2902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2903   (eval $ac_try) 2>&5
2904   ac_status=$?
2905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906   (exit $ac_status); }; }; then
2907   ORACLE_LIBS="-L$try -loracleclient"
2908 else
2909   echo "$as_me: failed program was:" >&5
2910 sed 's/^/| /' conftest.$ac_ext >&5
2911
2912 ORACLE_LIBS=
2913
2914 fi
2915 rm -f conftest.err conftest.$ac_objext \
2916       conftest$ac_exeext conftest.$ac_ext
2917                                 if test "x$ORACLE_LIBS" != "x"; then
2918                                         break;
2919                                 fi
2920                         done
2921                         LIBS="$old_LIBS"
2922
2923                                                                                                                                                 if test "x$ORACLE_LIBS" = "x"; then
2924                                 echo "$as_me:$LINENO: result: no" >&5
2925 echo "${ECHO_T}no" >&6
2926                                 ORACLE_INCLUDE=
2927                         fi
2928                 fi
2929
2930                 if test "x$ORACLE_LIBS" = "x"; then
2931                         { echo "$as_me:$LINENO: WARNING: oracle libraries not found.  Use --with-oracle-lib-dir=<path>." >&5
2932 echo "$as_me: WARNING: oracle libraries not found.  Use --with-oracle-lib-dir=<path>." >&2;}
2933                         targetname=   # disabled module
2934                 else
2935                         sql_oracle_ldflags="$sql_oracle_ldflags $ORACLE_LIBS"
2936                         echo "$as_me:$LINENO: result: yes" >&5
2937 echo "${ECHO_T}yes" >&6
2938                 fi
2939         fi
2940
2941         if test "x$targetname" = "x"; then
2942                 { echo "$as_me:$LINENO: WARNING: sql submodule 'oracle' disabled" >&5
2943 echo "$as_me: WARNING: sql submodule 'oracle' disabled" >&2;}
2944         fi
2945
2946 else
2947         targetname=
2948         echo \*\*\* module rlm_sql_oracle is disabled.
2949 fi
2950
2951
2952
2953
2954           ac_config_files="$ac_config_files Makefile"
2955 cat >confcache <<\_ACEOF
2956 # This file is a shell script that caches the results of configure
2957 # tests run on this system so they can be shared between configure
2958 # scripts and configure runs, see configure's option --config-cache.
2959 # It is not useful on other systems.  If it contains results you don't
2960 # want to keep, you may remove or edit it.
2961 #
2962 # config.status only pays attention to the cache file if you give it
2963 # the --recheck option to rerun configure.
2964 #
2965 # `ac_cv_env_foo' variables (set or unset) will be overridden when
2966 # loading this file, other *unset* `ac_cv_foo' will be assigned the
2967 # following values.
2968
2969 _ACEOF
2970
2971 # The following way of writing the cache mishandles newlines in values,
2972 # but we know of no workaround that is simple, portable, and efficient.
2973 # So, don't put newlines in cache variables' values.
2974 # Ultrix sh set writes to stderr and can't be redirected directly,
2975 # and sets the high bit in the cache file unless we assign to the vars.
2976 {
2977   (set) 2>&1 |
2978     case `(ac_space=' '; set | grep ac_space) 2>&1` in
2979     *ac_space=\ *)
2980       # `set' does not quote correctly, so add quotes (double-quote
2981       # substitution turns \\\\ into \\, and sed turns \\ into \).
2982       sed -n \
2983         "s/'/'\\\\''/g;
2984           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
2985       ;;
2986     *)
2987       # `set' quotes correctly as required by POSIX, so do not add quotes.
2988       sed -n \
2989         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
2990       ;;
2991     esac;
2992 } |
2993   sed '
2994      t clear
2995      : clear
2996      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
2997      t end
2998      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
2999      : end' >>confcache
3000 if diff $cache_file confcache >/dev/null 2>&1; then :; else
3001   if test -w $cache_file; then
3002     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3003     cat confcache >$cache_file
3004   else
3005     echo "not updating unwritable cache $cache_file"
3006   fi
3007 fi
3008 rm -f confcache
3009
3010 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3011 # Let make expand exec_prefix.
3012 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3013
3014 # VPATH may cause trouble with some makes, so we remove $(srcdir),
3015 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3016 # trailing colons and then remove the whole line if VPATH becomes empty
3017 # (actually we leave an empty line to preserve line numbers).
3018 if test "x$srcdir" = x.; then
3019   ac_vpsub='/^[  ]*VPATH[        ]*=/{
3020 s/:*\$(srcdir):*/:/;
3021 s/:*\${srcdir}:*/:/;
3022 s/:*@srcdir@:*/:/;
3023 s/^\([^=]*=[     ]*\):*/\1/;
3024 s/:*$//;
3025 s/^[^=]*=[       ]*$//;
3026 }'
3027 fi
3028
3029 # Transform confdefs.h into DEFS.
3030 # Protect against shell expansion while executing Makefile rules.
3031 # Protect against Makefile macro expansion.
3032 #
3033 # If the first sed substitution is executed (which looks for macros that
3034 # take arguments), then we branch to the quote section.  Otherwise,
3035 # look for a macro that doesn't take arguments.
3036 cat >confdef2opt.sed <<\_ACEOF
3037 t clear
3038 : clear
3039 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
3040 t quote
3041 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
3042 t quote
3043 d
3044 : quote
3045 s,[      `~#$^&*(){}\\|;'"<>?],\\&,g
3046 s,\[,\\&,g
3047 s,\],\\&,g
3048 s,\$,$$,g
3049 p
3050 _ACEOF
3051 # We use echo to avoid assuming a particular line-breaking character.
3052 # The extra dot is to prevent the shell from consuming trailing
3053 # line-breaks from the sub-command output.  A line-break within
3054 # single-quotes doesn't work because, if this script is created in a
3055 # platform that uses two characters for line-breaks (e.g., DOS), tr
3056 # would break.
3057 ac_LF_and_DOT=`echo; echo .`
3058 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
3059 rm -f confdef2opt.sed
3060
3061
3062 ac_libobjs=
3063 ac_ltlibobjs=
3064 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3065   # 1. Remove the extension, and $U if already installed.
3066   ac_i=`echo "$ac_i" |
3067          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
3068   # 2. Add them.
3069   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
3070   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
3071 done
3072 LIBOBJS=$ac_libobjs
3073
3074 LTLIBOBJS=$ac_ltlibobjs
3075
3076
3077
3078 : ${CONFIG_STATUS=./config.status}
3079 ac_clean_files_save=$ac_clean_files
3080 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3081 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
3082 echo "$as_me: creating $CONFIG_STATUS" >&6;}
3083 cat >$CONFIG_STATUS <<_ACEOF
3084 #! $SHELL
3085 # Generated by $as_me.
3086 # Run this file to recreate the current configuration.
3087 # Compiler output produced by configure, useful for debugging
3088 # configure, is in config.log if it exists.
3089
3090 debug=false
3091 ac_cs_recheck=false
3092 ac_cs_silent=false
3093 SHELL=\${CONFIG_SHELL-$SHELL}
3094 _ACEOF
3095
3096 cat >>$CONFIG_STATUS <<\_ACEOF
3097 ## --------------------- ##
3098 ## M4sh Initialization.  ##
3099 ## --------------------- ##
3100
3101 # Be Bourne compatible
3102 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3103   emulate sh
3104   NULLCMD=:
3105   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
3106   # is contrary to our usage.  Disable this feature.
3107   alias -g '${1+"$@"}'='"$@"'
3108 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
3109   set -o posix
3110 fi
3111 DUALCASE=1; export DUALCASE # for MKS sh
3112
3113 # Support unset when possible.
3114 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3115   as_unset=unset
3116 else
3117   as_unset=false
3118 fi
3119
3120
3121 # Work around bugs in pre-3.0 UWIN ksh.
3122 $as_unset ENV MAIL MAILPATH
3123 PS1='$ '
3124 PS2='> '
3125 PS4='+ '
3126
3127 # NLS nuisances.
3128 for as_var in \
3129   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
3130   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
3131   LC_TELEPHONE LC_TIME
3132 do
3133   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
3134     eval $as_var=C; export $as_var
3135   else
3136     $as_unset $as_var
3137   fi
3138 done
3139
3140 # Required to use basename.
3141 if expr a : '\(a\)' >/dev/null 2>&1; then
3142   as_expr=expr
3143 else
3144   as_expr=false
3145 fi
3146
3147 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
3148   as_basename=basename
3149 else
3150   as_basename=false
3151 fi
3152
3153
3154 # Name of the executable.
3155 as_me=`$as_basename "$0" ||
3156 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3157          X"$0" : 'X\(//\)$' \| \
3158          X"$0" : 'X\(/\)$' \| \
3159          .     : '\(.\)' 2>/dev/null ||
3160 echo X/"$0" |
3161     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
3162           /^X\/\(\/\/\)$/{ s//\1/; q; }
3163           /^X\/\(\/\).*/{ s//\1/; q; }
3164           s/.*/./; q'`
3165
3166
3167 # PATH needs CR, and LINENO needs CR and PATH.
3168 # Avoid depending upon Character Ranges.
3169 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3170 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3171 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3172 as_cr_digits='0123456789'
3173 as_cr_alnum=$as_cr_Letters$as_cr_digits
3174
3175 # The user is always right.
3176 if test "${PATH_SEPARATOR+set}" != set; then
3177   echo "#! /bin/sh" >conf$$.sh
3178   echo  "exit 0"   >>conf$$.sh
3179   chmod +x conf$$.sh
3180   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3181     PATH_SEPARATOR=';'
3182   else
3183     PATH_SEPARATOR=:
3184   fi
3185   rm -f conf$$.sh
3186 fi
3187
3188
3189   as_lineno_1=$LINENO
3190   as_lineno_2=$LINENO
3191   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3192   test "x$as_lineno_1" != "x$as_lineno_2" &&
3193   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
3194   # Find who we are.  Look in the path if we contain no path at all
3195   # relative or not.
3196   case $0 in
3197     *[\\/]* ) as_myself=$0 ;;
3198     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3199 for as_dir in $PATH
3200 do
3201   IFS=$as_save_IFS
3202   test -z "$as_dir" && as_dir=.
3203   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3204 done
3205
3206        ;;
3207   esac
3208   # We did not find ourselves, most probably we were run as `sh COMMAND'
3209   # in which case we are not to be found in the path.
3210   if test "x$as_myself" = x; then
3211     as_myself=$0
3212   fi
3213   if test ! -f "$as_myself"; then
3214     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
3215 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
3216    { (exit 1); exit 1; }; }
3217   fi
3218   case $CONFIG_SHELL in
3219   '')
3220     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3221 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
3222 do
3223   IFS=$as_save_IFS
3224   test -z "$as_dir" && as_dir=.
3225   for as_base in sh bash ksh sh5; do
3226          case $as_dir in
3227          /*)
3228            if ("$as_dir/$as_base" -c '
3229   as_lineno_1=$LINENO
3230   as_lineno_2=$LINENO
3231   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3232   test "x$as_lineno_1" != "x$as_lineno_2" &&
3233   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
3234              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
3235              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
3236              CONFIG_SHELL=$as_dir/$as_base
3237              export CONFIG_SHELL
3238              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
3239            fi;;
3240          esac
3241        done
3242 done
3243 ;;
3244   esac
3245
3246   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
3247   # uniformly replaced by the line number.  The first 'sed' inserts a
3248   # line-number line before each line; the second 'sed' does the real
3249   # work.  The second script uses 'N' to pair each line-number line
3250   # with the numbered line, and appends trailing '-' during
3251   # substitution so that $LINENO is not a special case at line end.
3252   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
3253   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
3254   sed '=' <$as_myself |
3255     sed '
3256       N
3257       s,$,-,
3258       : loop
3259       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
3260       t loop
3261       s,-$,,
3262       s,^['$as_cr_digits']*\n,,
3263     ' >$as_me.lineno &&
3264   chmod +x $as_me.lineno ||
3265     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
3266 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
3267    { (exit 1); exit 1; }; }
3268
3269   # Don't try to exec as it changes $[0], causing all sort of problems
3270   # (the dirname of $[0] is not the place where we might find the
3271   # original and so on.  Autoconf is especially sensible to this).
3272   . ./$as_me.lineno
3273   # Exit status is that of the last command.
3274   exit
3275 }
3276
3277
3278 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
3279   *c*,-n*) ECHO_N= ECHO_C='
3280 ' ECHO_T='      ' ;;
3281   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
3282   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
3283 esac
3284
3285 if expr a : '\(a\)' >/dev/null 2>&1; then
3286   as_expr=expr
3287 else
3288   as_expr=false
3289 fi
3290
3291 rm -f conf$$ conf$$.exe conf$$.file
3292 echo >conf$$.file
3293 if ln -s conf$$.file conf$$ 2>/dev/null; then
3294   # We could just check for DJGPP; but this test a) works b) is more generic
3295   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
3296   if test -f conf$$.exe; then
3297     # Don't use ln at all; we don't have any links
3298     as_ln_s='cp -p'
3299   else
3300     as_ln_s='ln -s'
3301   fi
3302 elif ln conf$$.file conf$$ 2>/dev/null; then
3303   as_ln_s=ln
3304 else
3305   as_ln_s='cp -p'
3306 fi
3307 rm -f conf$$ conf$$.exe conf$$.file
3308
3309 if mkdir -p . 2>/dev/null; then
3310   as_mkdir_p=:
3311 else
3312   test -d ./-p && rmdir ./-p
3313   as_mkdir_p=false
3314 fi
3315
3316 as_executable_p="test -f"
3317
3318 # Sed expression to map a string onto a valid CPP name.
3319 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3320
3321 # Sed expression to map a string onto a valid variable name.
3322 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3323
3324
3325 # IFS
3326 # We need space, tab and new line, in precisely that order.
3327 as_nl='
3328 '
3329 IFS="   $as_nl"
3330
3331 # CDPATH.
3332 $as_unset CDPATH
3333
3334 exec 6>&1
3335
3336 # Open the log real soon, to keep \$[0] and so on meaningful, and to
3337 # report actual input values of CONFIG_FILES etc. instead of their
3338 # values after options handling.  Logging --version etc. is OK.
3339 exec 5>>config.log
3340 {
3341   echo
3342   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3343 ## Running $as_me. ##
3344 _ASBOX
3345 } >&5
3346 cat >&5 <<_CSEOF
3347
3348 This file was extended by $as_me, which was
3349 generated by GNU Autoconf 2.59.  Invocation command line was
3350
3351   CONFIG_FILES    = $CONFIG_FILES
3352   CONFIG_HEADERS  = $CONFIG_HEADERS
3353   CONFIG_LINKS    = $CONFIG_LINKS
3354   CONFIG_COMMANDS = $CONFIG_COMMANDS
3355   $ $0 $@
3356
3357 _CSEOF
3358 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
3359 echo >&5
3360 _ACEOF
3361
3362 # Files that config.status was made for.
3363 if test -n "$ac_config_files"; then
3364   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
3365 fi
3366
3367 if test -n "$ac_config_headers"; then
3368   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
3369 fi
3370
3371 if test -n "$ac_config_links"; then
3372   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
3373 fi
3374
3375 if test -n "$ac_config_commands"; then
3376   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
3377 fi
3378
3379 cat >>$CONFIG_STATUS <<\_ACEOF
3380
3381 ac_cs_usage="\
3382 \`$as_me' instantiates files from templates according to the
3383 current configuration.
3384
3385 Usage: $0 [OPTIONS] [FILE]...
3386
3387   -h, --help       print this help, then exit
3388   -V, --version    print version number, then exit
3389   -q, --quiet      do not print progress messages
3390   -d, --debug      don't remove temporary files
3391       --recheck    update $as_me by reconfiguring in the same conditions
3392   --file=FILE[:TEMPLATE]
3393                    instantiate the configuration file FILE
3394
3395 Configuration files:
3396 $config_files
3397
3398 Report bugs to <bug-autoconf@gnu.org>."
3399 _ACEOF
3400
3401 cat >>$CONFIG_STATUS <<_ACEOF
3402 ac_cs_version="\\
3403 config.status
3404 configured by $0, generated by GNU Autoconf 2.59,
3405   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
3406
3407 Copyright (C) 2003 Free Software Foundation, Inc.
3408 This config.status script is free software; the Free Software Foundation
3409 gives unlimited permission to copy, distribute and modify it."
3410 srcdir=$srcdir
3411 _ACEOF
3412
3413 cat >>$CONFIG_STATUS <<\_ACEOF
3414 # If no file are specified by the user, then we need to provide default
3415 # value.  By we need to know if files were specified by the user.
3416 ac_need_defaults=:
3417 while test $# != 0
3418 do
3419   case $1 in
3420   --*=*)
3421     ac_option=`expr "x$1" : 'x\([^=]*\)='`
3422     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
3423     ac_shift=:
3424     ;;
3425   -*)
3426     ac_option=$1
3427     ac_optarg=$2
3428     ac_shift=shift
3429     ;;
3430   *) # This is not an option, so the user has probably given explicit
3431      # arguments.
3432      ac_option=$1
3433      ac_need_defaults=false;;
3434   esac
3435
3436   case $ac_option in
3437   # Handling of the options.
3438 _ACEOF
3439 cat >>$CONFIG_STATUS <<\_ACEOF
3440   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3441     ac_cs_recheck=: ;;
3442   --version | --vers* | -V )
3443     echo "$ac_cs_version"; exit 0 ;;
3444   --he | --h)
3445     # Conflict between --help and --header
3446     { { echo "$as_me:$LINENO: error: ambiguous option: $1
3447 Try \`$0 --help' for more information." >&5
3448 echo "$as_me: error: ambiguous option: $1
3449 Try \`$0 --help' for more information." >&2;}
3450    { (exit 1); exit 1; }; };;
3451   --help | --hel | -h )
3452     echo "$ac_cs_usage"; exit 0 ;;
3453   --debug | --d* | -d )
3454     debug=: ;;
3455   --file | --fil | --fi | --f )
3456     $ac_shift
3457     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
3458     ac_need_defaults=false;;
3459   --header | --heade | --head | --hea )
3460     $ac_shift
3461     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
3462     ac_need_defaults=false;;
3463   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3464   | -silent | --silent | --silen | --sile | --sil | --si | --s)
3465     ac_cs_silent=: ;;
3466
3467   # This is an error.
3468   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
3469 Try \`$0 --help' for more information." >&5
3470 echo "$as_me: error: unrecognized option: $1
3471 Try \`$0 --help' for more information." >&2;}
3472    { (exit 1); exit 1; }; } ;;
3473
3474   *) ac_config_targets="$ac_config_targets $1" ;;
3475
3476   esac
3477   shift
3478 done
3479
3480 ac_configure_extra_args=
3481
3482 if $ac_cs_silent; then
3483   exec 6>/dev/null
3484   ac_configure_extra_args="$ac_configure_extra_args --silent"
3485 fi
3486
3487 _ACEOF
3488 cat >>$CONFIG_STATUS <<_ACEOF
3489 if \$ac_cs_recheck; then
3490   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
3491   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
3492 fi
3493
3494 _ACEOF
3495
3496
3497
3498
3499
3500 cat >>$CONFIG_STATUS <<\_ACEOF
3501 for ac_config_target in $ac_config_targets
3502 do
3503   case "$ac_config_target" in
3504   # Handling of arguments.
3505   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
3506   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
3507 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
3508    { (exit 1); exit 1; }; };;
3509   esac
3510 done
3511
3512 # If the user did not use the arguments to specify the items to instantiate,
3513 # then the envvar interface is used.  Set only those that are not.
3514 # We use the long form for the default assignment because of an extremely
3515 # bizarre bug on SunOS 4.1.3.
3516 if $ac_need_defaults; then
3517   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3518 fi
3519
3520 # Have a temporary directory for convenience.  Make it in the build tree
3521 # simply because there is no reason to put it here, and in addition,
3522 # creating and moving files from /tmp can sometimes cause problems.
3523 # Create a temporary directory, and hook for its removal unless debugging.
3524 $debug ||
3525 {
3526   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3527   trap '{ (exit 1); exit 1; }' 1 2 13 15
3528 }
3529
3530 # Create a (secure) tmp directory for tmp files.
3531
3532 {
3533   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
3534   test -n "$tmp" && test -d "$tmp"
3535 }  ||
3536 {
3537   tmp=./confstat$$-$RANDOM
3538   (umask 077 && mkdir $tmp)
3539 } ||
3540 {
3541    echo "$me: cannot create a temporary directory in ." >&2
3542    { (exit 1); exit 1; }
3543 }
3544
3545 _ACEOF
3546
3547 cat >>$CONFIG_STATUS <<_ACEOF
3548
3549 #
3550 # CONFIG_FILES section.
3551 #
3552
3553 # No need to generate the scripts if there are no CONFIG_FILES.
3554 # This happens for instance when ./config.status config.h
3555 if test -n "\$CONFIG_FILES"; then
3556   # Protect against being on the right side of a sed subst in config.status.
3557   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
3558    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
3559 s,@SHELL@,$SHELL,;t t
3560 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
3561 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
3562 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
3563 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
3564 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
3565 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
3566 s,@exec_prefix@,$exec_prefix,;t t
3567 s,@prefix@,$prefix,;t t
3568 s,@program_transform_name@,$program_transform_name,;t t
3569 s,@bindir@,$bindir,;t t
3570 s,@sbindir@,$sbindir,;t t
3571 s,@libexecdir@,$libexecdir,;t t
3572 s,@datadir@,$datadir,;t t
3573 s,@sysconfdir@,$sysconfdir,;t t
3574 s,@sharedstatedir@,$sharedstatedir,;t t
3575 s,@localstatedir@,$localstatedir,;t t
3576 s,@libdir@,$libdir,;t t
3577 s,@includedir@,$includedir,;t t
3578 s,@oldincludedir@,$oldincludedir,;t t
3579 s,@infodir@,$infodir,;t t
3580 s,@mandir@,$mandir,;t t
3581 s,@build_alias@,$build_alias,;t t
3582 s,@host_alias@,$host_alias,;t t
3583 s,@target_alias@,$target_alias,;t t
3584 s,@DEFS@,$DEFS,;t t
3585 s,@ECHO_C@,$ECHO_C,;t t
3586 s,@ECHO_N@,$ECHO_N,;t t
3587 s,@ECHO_T@,$ECHO_T,;t t
3588 s,@LIBS@,$LIBS,;t t
3589 s,@CC@,$CC,;t t
3590 s,@CFLAGS@,$CFLAGS,;t t
3591 s,@LDFLAGS@,$LDFLAGS,;t t
3592 s,@CPPFLAGS@,$CPPFLAGS,;t t
3593 s,@ac_ct_CC@,$ac_ct_CC,;t t
3594 s,@EXEEXT@,$EXEEXT,;t t
3595 s,@OBJEXT@,$OBJEXT,;t t
3596 s,@CPP@,$CPP,;t t
3597 s,@ORACLE_LIBS@,$ORACLE_LIBS,;t t
3598 s,@ORACLE_INCLUDE@,$ORACLE_INCLUDE,;t t
3599 s,@sql_oracle_ldflags@,$sql_oracle_ldflags,;t t
3600 s,@sql_oracle_cflags@,$sql_oracle_cflags,;t t
3601 s,@targetname@,$targetname,;t t
3602 s,@LIBOBJS@,$LIBOBJS,;t t
3603 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
3604 CEOF
3605
3606 _ACEOF
3607
3608   cat >>$CONFIG_STATUS <<\_ACEOF
3609   # Split the substitutions into bite-sized pieces for seds with
3610   # small command number limits, like on Digital OSF/1 and HP-UX.
3611   ac_max_sed_lines=48
3612   ac_sed_frag=1 # Number of current file.
3613   ac_beg=1 # First line for current file.
3614   ac_end=$ac_max_sed_lines # Line after last line for current file.
3615   ac_more_lines=:
3616   ac_sed_cmds=
3617   while $ac_more_lines; do
3618     if test $ac_beg -gt 1; then
3619       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3620     else
3621       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3622     fi
3623     if test ! -s $tmp/subs.frag; then
3624       ac_more_lines=false
3625     else
3626       # The purpose of the label and of the branching condition is to
3627       # speed up the sed processing (if there are no `@' at all, there
3628       # is no need to browse any of the substitutions).
3629       # These are the two extra sed commands mentioned above.
3630       (echo ':t
3631   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
3632       if test -z "$ac_sed_cmds"; then
3633         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
3634       else
3635         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
3636       fi
3637       ac_sed_frag=`expr $ac_sed_frag + 1`
3638       ac_beg=$ac_end
3639       ac_end=`expr $ac_end + $ac_max_sed_lines`
3640     fi
3641   done
3642   if test -z "$ac_sed_cmds"; then
3643     ac_sed_cmds=cat
3644   fi
3645 fi # test -n "$CONFIG_FILES"
3646
3647 _ACEOF
3648 cat >>$CONFIG_STATUS <<\_ACEOF
3649 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
3650   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3651   case $ac_file in
3652   - | *:- | *:-:* ) # input from stdin
3653         cat >$tmp/stdin
3654         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3655         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3656   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3657         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3658   * )   ac_file_in=$ac_file.in ;;
3659   esac
3660
3661   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
3662   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
3663 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3664          X"$ac_file" : 'X\(//\)[^/]' \| \
3665          X"$ac_file" : 'X\(//\)$' \| \
3666          X"$ac_file" : 'X\(/\)' \| \
3667          .     : '\(.\)' 2>/dev/null ||
3668 echo X"$ac_file" |
3669     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3670           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3671           /^X\(\/\/\)$/{ s//\1/; q; }
3672           /^X\(\/\).*/{ s//\1/; q; }
3673           s/.*/./; q'`
3674   { if $as_mkdir_p; then
3675     mkdir -p "$ac_dir"
3676   else
3677     as_dir="$ac_dir"
3678     as_dirs=
3679     while test ! -d "$as_dir"; do
3680       as_dirs="$as_dir $as_dirs"
3681       as_dir=`(dirname "$as_dir") 2>/dev/null ||
3682 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3683          X"$as_dir" : 'X\(//\)[^/]' \| \
3684          X"$as_dir" : 'X\(//\)$' \| \
3685          X"$as_dir" : 'X\(/\)' \| \
3686          .     : '\(.\)' 2>/dev/null ||
3687 echo X"$as_dir" |
3688     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3689           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3690           /^X\(\/\/\)$/{ s//\1/; q; }
3691           /^X\(\/\).*/{ s//\1/; q; }
3692           s/.*/./; q'`
3693     done
3694     test ! -n "$as_dirs" || mkdir $as_dirs
3695   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
3696 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
3697    { (exit 1); exit 1; }; }; }
3698
3699   ac_builddir=.
3700
3701 if test "$ac_dir" != .; then
3702   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
3703   # A "../" for each directory in $ac_dir_suffix.
3704   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
3705 else
3706   ac_dir_suffix= ac_top_builddir=
3707 fi
3708
3709 case $srcdir in
3710   .)  # No --srcdir option.  We are building in place.
3711     ac_srcdir=.
3712     if test -z "$ac_top_builddir"; then
3713        ac_top_srcdir=.
3714     else
3715        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
3716     fi ;;
3717   [\\/]* | ?:[\\/]* )  # Absolute path.
3718     ac_srcdir=$srcdir$ac_dir_suffix;
3719     ac_top_srcdir=$srcdir ;;
3720   *) # Relative path.
3721     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
3722     ac_top_srcdir=$ac_top_builddir$srcdir ;;
3723 esac
3724
3725 # Do not use `cd foo && pwd` to compute absolute paths, because
3726 # the directories may not exist.
3727 case `pwd` in
3728 .) ac_abs_builddir="$ac_dir";;
3729 *)
3730   case "$ac_dir" in
3731   .) ac_abs_builddir=`pwd`;;
3732   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
3733   *) ac_abs_builddir=`pwd`/"$ac_dir";;
3734   esac;;
3735 esac
3736 case $ac_abs_builddir in
3737 .) ac_abs_top_builddir=${ac_top_builddir}.;;
3738 *)
3739   case ${ac_top_builddir}. in
3740   .) ac_abs_top_builddir=$ac_abs_builddir;;
3741   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
3742   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
3743   esac;;
3744 esac
3745 case $ac_abs_builddir in
3746 .) ac_abs_srcdir=$ac_srcdir;;
3747 *)
3748   case $ac_srcdir in
3749   .) ac_abs_srcdir=$ac_abs_builddir;;
3750   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
3751   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
3752   esac;;
3753 esac
3754 case $ac_abs_builddir in
3755 .) ac_abs_top_srcdir=$ac_top_srcdir;;
3756 *)
3757   case $ac_top_srcdir in
3758   .) ac_abs_top_srcdir=$ac_abs_builddir;;
3759   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
3760   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
3761   esac;;
3762 esac
3763
3764
3765
3766   # Let's still pretend it is `configure' which instantiates (i.e., don't
3767   # use $as_me), people would be surprised to read:
3768   #    /* config.h.  Generated by config.status.  */
3769   if test x"$ac_file" = x-; then
3770     configure_input=
3771   else
3772     configure_input="$ac_file.  "
3773   fi
3774   configure_input=$configure_input"Generated from `echo $ac_file_in |
3775                                      sed 's,.*/,,'` by configure."
3776
3777   # First look for the input files in the build tree, otherwise in the
3778   # src tree.
3779   ac_file_inputs=`IFS=:
3780     for f in $ac_file_in; do
3781       case $f in
3782       -) echo $tmp/stdin ;;
3783       [\\/$]*)
3784          # Absolute (can't be DOS-style, as IFS=:)
3785          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
3786 echo "$as_me: error: cannot find input file: $f" >&2;}
3787    { (exit 1); exit 1; }; }
3788          echo "$f";;
3789       *) # Relative
3790          if test -f "$f"; then
3791            # Build tree
3792            echo "$f"
3793          elif test -f "$srcdir/$f"; then
3794            # Source tree
3795            echo "$srcdir/$f"
3796          else
3797            # /dev/null tree
3798            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
3799 echo "$as_me: error: cannot find input file: $f" >&2;}
3800    { (exit 1); exit 1; }; }
3801          fi;;
3802       esac
3803     done` || { (exit 1); exit 1; }
3804
3805   if test x"$ac_file" != x-; then
3806     { echo "$as_me:$LINENO: creating $ac_file" >&5
3807 echo "$as_me: creating $ac_file" >&6;}
3808     rm -f "$ac_file"
3809   fi
3810 _ACEOF
3811 cat >>$CONFIG_STATUS <<_ACEOF
3812   sed "$ac_vpsub
3813 $extrasub
3814 _ACEOF
3815 cat >>$CONFIG_STATUS <<\_ACEOF
3816 :t
3817 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
3818 s,@configure_input@,$configure_input,;t t
3819 s,@srcdir@,$ac_srcdir,;t t
3820 s,@abs_srcdir@,$ac_abs_srcdir,;t t
3821 s,@top_srcdir@,$ac_top_srcdir,;t t
3822 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
3823 s,@builddir@,$ac_builddir,;t t
3824 s,@abs_builddir@,$ac_abs_builddir,;t t
3825 s,@top_builddir@,$ac_top_builddir,;t t
3826 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
3827 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
3828   rm -f $tmp/stdin
3829   if test x"$ac_file" != x-; then
3830     mv $tmp/out $ac_file
3831   else
3832     cat $tmp/out
3833     rm -f $tmp/out
3834   fi
3835
3836 done
3837 _ACEOF
3838
3839 cat >>$CONFIG_STATUS <<\_ACEOF
3840
3841 { (exit 0); exit 0; }
3842 _ACEOF
3843 chmod +x $CONFIG_STATUS
3844 ac_clean_files=$ac_clean_files_save
3845
3846
3847 # configure is writing to config.log, and then calls config.status.
3848 # config.status does its own redirection, appending to config.log.
3849 # Unfortunately, on DOS this fails, as config.log is still kept open
3850 # by configure, so config.status won't be able to write to it; its
3851 # output is simply discarded.  So we exec the FD to /dev/null,
3852 # effectively closing config.log, so it can be properly (re)opened and
3853 # appended to by config.status.  When coming back to configure, we
3854 # need to make the FD available again.
3855 if test "$no_create" != yes; then
3856   ac_cs_success=:
3857   ac_config_status_args=
3858   test "$silent" = yes &&
3859     ac_config_status_args="$ac_config_status_args --quiet"
3860   exec 5>/dev/null
3861   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
3862   exec 5>>config.log
3863   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
3864   # would make configure fail if this is the last instruction.
3865   $ac_cs_success || { (exit 1); exit 1; }
3866 fi
3867