/[svn]/vendor/pxys2-2.0.0/pxyscand/configure
ViewVC logotype

Contents of /vendor/pxys2-2.0.0/pxyscand/configure

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3252 - (show annotations)
Wed Apr 2 20:41:43 2014 UTC (9 years, 1 month ago) by michael
File size: 186983 byte(s)
- Imported pxys2-2.0.0

1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57 for Proxy scanner daemon 2.0.
4 #
5 # Report bugs to <mbuna@bugged.org>.
6 #
7 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8 # Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
14
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 set -o posix
24 fi
25
26 # Support unset when possible.
27 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
28 as_unset=unset
29 else
30 as_unset=false
31 fi
32
33
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
39
40 # NLS nuisances.
41 for as_var in \
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 LC_TELEPHONE LC_TIME
45 do
46 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
48 else
49 $as_unset $as_var
50 fi
51 done
52
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56 else
57 as_expr=false
58 fi
59
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62 else
63 as_basename=false
64 fi
65
66
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
77 s/.*/./; q'`
78
79
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
92 chmod +x conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94 PATH_SEPARATOR=';'
95 else
96 PATH_SEPARATOR=:
97 fi
98 rm -f conf$$.sh
99 fi
100
101
102 as_lineno_1=$LINENO
103 as_lineno_2=$LINENO
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
108 # relative or not.
109 case $0 in
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
113 do
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
118
119 ;;
120 esac
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
124 as_myself=$0
125 fi
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
129 fi
130 case $CONFIG_SHELL in
131 '')
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 do
135 IFS=$as_save_IFS
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
138 case $as_dir in
139 /*)
140 if ("$as_dir/$as_base" -c '
141 as_lineno_1=$LINENO
142 as_lineno_2=$LINENO
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
149 export CONFIG_SHELL
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 fi;;
152 esac
153 done
154 done
155 ;;
156 esac
157
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
167 sed '
168 N
169 s,$,-,
170 : loop
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 t loop
173 s,-$,,
174 s,^['$as_cr_digits']*\n,,
175 ' >$as_me.lineno &&
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
179
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
183 . ./$as_me.lineno
184 # Exit status is that of the last command.
185 exit
186 }
187
188
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T=' ' ;;
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
195
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198 else
199 as_expr=false
200 fi
201
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
209 as_ln_s='cp -p'
210 else
211 as_ln_s='ln -s'
212 fi
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215 else
216 as_ln_s='cp -p'
217 fi
218 rm -f conf$$ conf$$.exe conf$$.file
219
220 if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222 else
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="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="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='Proxy scanner daemon'
270 PACKAGE_TARNAME='pxscand'
271 PACKAGE_VERSION='2.0'
272 PACKAGE_STRING='Proxy scanner daemon 2.0'
273 PACKAGE_BUGREPORT='mbuna@bugged.org'
274
275 ac_unique_file="src/pxyscand.cc"
276 # Factoring default headers for most tests.
277 ac_includes_default="\
278 #include <stdio.h>
279 #if HAVE_SYS_TYPES_H
280 # include <sys/types.h>
281 #endif
282 #if HAVE_SYS_STAT_H
283 # include <sys/stat.h>
284 #endif
285 #if STDC_HEADERS
286 # include <stdlib.h>
287 # include <stddef.h>
288 #else
289 # if HAVE_STDLIB_H
290 # include <stdlib.h>
291 # endif
292 #endif
293 #if HAVE_STRING_H
294 # if !STDC_HEADERS && HAVE_MEMORY_H
295 # include <memory.h>
296 # endif
297 # include <string.h>
298 #endif
299 #if HAVE_STRINGS_H
300 # include <strings.h>
301 #endif
302 #if HAVE_INTTYPES_H
303 # include <inttypes.h>
304 #else
305 # if HAVE_STDINT_H
306 # include <stdint.h>
307 # endif
308 #endif
309 #if HAVE_UNISTD_H
310 # include <unistd.h>
311 #endif"
312
313 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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE CXX CXXFLAGS ac_ct_CXX CXXDEPMODE PEAK_CONFIG PEAK_CFLAGS PEAK_LIBS FGREP XML2_CONFIG XML2_CFLAGS XML2_LIBS CPP EGREP LIBOBJS LTLIBOBJS'
314 ac_subst_files=''
315
316 # Initialize some variables set by options.
317 ac_init_help=
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
321 cache_file=/dev/null
322 exec_prefix=NONE
323 no_create=
324 no_recursion=
325 prefix=NONE
326 program_prefix=NONE
327 program_suffix=NONE
328 program_transform_name=s,x,x,
329 silent=
330 site=
331 srcdir=
332 verbose=
333 x_includes=NONE
334 x_libraries=NONE
335
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
353
354 ac_prev=
355 for ac_option
356 do
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
360 ac_prev=
361 continue
362 fi
363
364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365
366 # Accept the important Cygnus configure options, so we can diagnose typos.
367
368 case $ac_option in
369
370 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 ac_prev=bindir ;;
372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373 bindir=$ac_optarg ;;
374
375 -build | --build | --buil | --bui | --bu)
376 ac_prev=build_alias ;;
377 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378 build_alias=$ac_optarg ;;
379
380 -cache-file | --cache-file | --cache-fil | --cache-fi \
381 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382 ac_prev=cache_file ;;
383 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385 cache_file=$ac_optarg ;;
386
387 --config-cache | -C)
388 cache_file=config.cache ;;
389
390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 ac_prev=datadir ;;
392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 | --da=*)
394 datadir=$ac_optarg ;;
395
396 -disable-* | --disable-*)
397 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
404
405 -enable-* | --enable-*)
406 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (exit 1); exit 1; }; }
411 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 case $ac_option in
413 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414 *) ac_optarg=yes ;;
415 esac
416 eval "enable_$ac_feature='$ac_optarg'" ;;
417
418 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420 | --exec | --exe | --ex)
421 ac_prev=exec_prefix ;;
422 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424 | --exec=* | --exe=* | --ex=*)
425 exec_prefix=$ac_optarg ;;
426
427 -gas | --gas | --ga | --g)
428 # Obsolete; use --with-gas.
429 with_gas=yes ;;
430
431 -help | --help | --hel | --he | -h)
432 ac_init_help=long ;;
433 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434 ac_init_help=recursive ;;
435 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436 ac_init_help=short ;;
437
438 -host | --host | --hos | --ho)
439 ac_prev=host_alias ;;
440 -host=* | --host=* | --hos=* | --ho=*)
441 host_alias=$ac_optarg ;;
442
443 -includedir | --includedir | --includedi | --included | --include \
444 | --includ | --inclu | --incl | --inc)
445 ac_prev=includedir ;;
446 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447 | --includ=* | --inclu=* | --incl=* | --inc=*)
448 includedir=$ac_optarg ;;
449
450 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 ac_prev=infodir ;;
452 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453 infodir=$ac_optarg ;;
454
455 -libdir | --libdir | --libdi | --libd)
456 ac_prev=libdir ;;
457 -libdir=* | --libdir=* | --libdi=* | --libd=*)
458 libdir=$ac_optarg ;;
459
460 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461 | --libexe | --libex | --libe)
462 ac_prev=libexecdir ;;
463 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464 | --libexe=* | --libex=* | --libe=*)
465 libexecdir=$ac_optarg ;;
466
467 -localstatedir | --localstatedir | --localstatedi | --localstated \
468 | --localstate | --localstat | --localsta | --localst \
469 | --locals | --local | --loca | --loc | --lo)
470 ac_prev=localstatedir ;;
471 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474 localstatedir=$ac_optarg ;;
475
476 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 ac_prev=mandir ;;
478 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479 mandir=$ac_optarg ;;
480
481 -nfp | --nfp | --nf)
482 # Obsolete; use --without-fp.
483 with_fp=no ;;
484
485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486 | --no-cr | --no-c | -n)
487 no_create=yes ;;
488
489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491 no_recursion=yes ;;
492
493 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495 | --oldin | --oldi | --old | --ol | --o)
496 ac_prev=oldincludedir ;;
497 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500 oldincludedir=$ac_optarg ;;
501
502 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 ac_prev=prefix ;;
504 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505 prefix=$ac_optarg ;;
506
507 -program-prefix | --program-prefix | --program-prefi | --program-pref \
508 | --program-pre | --program-pr | --program-p)
509 ac_prev=program_prefix ;;
510 -program-prefix=* | --program-prefix=* | --program-prefi=* \
511 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512 program_prefix=$ac_optarg ;;
513
514 -program-suffix | --program-suffix | --program-suffi | --program-suff \
515 | --program-suf | --program-su | --program-s)
516 ac_prev=program_suffix ;;
517 -program-suffix=* | --program-suffix=* | --program-suffi=* \
518 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519 program_suffix=$ac_optarg ;;
520
521 -program-transform-name | --program-transform-name \
522 | --program-transform-nam | --program-transform-na \
523 | --program-transform-n | --program-transform- \
524 | --program-transform | --program-transfor \
525 | --program-transfo | --program-transf \
526 | --program-trans | --program-tran \
527 | --progr-tra | --program-tr | --program-t)
528 ac_prev=program_transform_name ;;
529 -program-transform-name=* | --program-transform-name=* \
530 | --program-transform-nam=* | --program-transform-na=* \
531 | --program-transform-n=* | --program-transform-=* \
532 | --program-transform=* | --program-transfor=* \
533 | --program-transfo=* | --program-transf=* \
534 | --program-trans=* | --program-tran=* \
535 | --progr-tra=* | --program-tr=* | --program-t=*)
536 program_transform_name=$ac_optarg ;;
537
538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539 | -silent | --silent | --silen | --sile | --sil)
540 silent=yes ;;
541
542 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 ac_prev=sbindir ;;
544 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 | --sbi=* | --sb=*)
546 sbindir=$ac_optarg ;;
547
548 -sharedstatedir | --sharedstatedir | --sharedstatedi \
549 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550 | --sharedst | --shareds | --shared | --share | --shar \
551 | --sha | --sh)
552 ac_prev=sharedstatedir ;;
553 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 | --sha=* | --sh=*)
557 sharedstatedir=$ac_optarg ;;
558
559 -site | --site | --sit)
560 ac_prev=site ;;
561 -site=* | --site=* | --sit=*)
562 site=$ac_optarg ;;
563
564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 ac_prev=srcdir ;;
566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567 srcdir=$ac_optarg ;;
568
569 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570 | --syscon | --sysco | --sysc | --sys | --sy)
571 ac_prev=sysconfdir ;;
572 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574 sysconfdir=$ac_optarg ;;
575
576 -target | --target | --targe | --targ | --tar | --ta | --t)
577 ac_prev=target_alias ;;
578 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579 target_alias=$ac_optarg ;;
580
581 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 verbose=yes ;;
583
584 -version | --version | --versio | --versi | --vers | -V)
585 ac_init_version=: ;;
586
587 -with-* | --with-*)
588 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (exit 1); exit 1; }; }
593 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 case $ac_option in
595 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 *) ac_optarg=yes ;;
597 esac
598 eval "with_$ac_package='$ac_optarg'" ;;
599
600 -without-* | --without-*)
601 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
608
609 --x)
610 # Obsolete; use --with-x.
611 with_x=yes ;;
612
613 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614 | --x-incl | --x-inc | --x-in | --x-i)
615 ac_prev=x_includes ;;
616 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618 x_includes=$ac_optarg ;;
619
620 -x-libraries | --x-libraries | --x-librarie | --x-librari \
621 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622 ac_prev=x_libraries ;;
623 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625 x_libraries=$ac_optarg ;;
626
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
630 ;;
631
632 *=*)
633 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
640 export $ac_envvar ;;
641
642 *)
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
648 ;;
649
650 esac
651 done
652
653 if test -n "$ac_prev"; then
654 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
657 fi
658
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
661 do
662 eval ac_val=$`echo $ac_var`
663 case $ac_val in
664 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
667 esac
668 done
669
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672 localstatedir libdir includedir oldincludedir infodir mandir
673 do
674 eval ac_val=$`echo $ac_var`
675 case $ac_val in
676 [\\/$]* | ?:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
679 esac
680 done
681
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
685 build=$build_alias
686 host=$host_alias
687 target=$target_alias
688
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691 if test "x$build_alias" = x; then
692 cross_compiling=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
696 cross_compiling=yes
697 fi
698 fi
699
700 ac_tool_prefix=
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702
703 test "$silent" = yes && exec 6>/dev/null
704
705
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
716 echo X"$0" |
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
721 s/.*/./; q'`
722 srcdir=$ac_confdir
723 if test ! -r $srcdir/$ac_unique_file; then
724 srcdir=..
725 fi
726 else
727 ac_srcdir_defaulted=no
728 fi
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
733 else
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
736 fi
737 fi
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740 { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CC_set=${CC+set}
755 ac_env_CC_value=$CC
756 ac_cv_env_CC_set=${CC+set}
757 ac_cv_env_CC_value=$CC
758 ac_env_CFLAGS_set=${CFLAGS+set}
759 ac_env_CFLAGS_value=$CFLAGS
760 ac_cv_env_CFLAGS_set=${CFLAGS+set}
761 ac_cv_env_CFLAGS_value=$CFLAGS
762 ac_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_env_LDFLAGS_value=$LDFLAGS
764 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_cv_env_LDFLAGS_value=$LDFLAGS
766 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770 ac_env_CXX_set=${CXX+set}
771 ac_env_CXX_value=$CXX
772 ac_cv_env_CXX_set=${CXX+set}
773 ac_cv_env_CXX_value=$CXX
774 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
775 ac_env_CXXFLAGS_value=$CXXFLAGS
776 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
777 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
778 ac_env_CPP_set=${CPP+set}
779 ac_env_CPP_value=$CPP
780 ac_cv_env_CPP_set=${CPP+set}
781 ac_cv_env_CPP_value=$CPP
782
783 #
784 # Report the --help message.
785 #
786 if test "$ac_init_help" = "long"; then
787 # Omit some internal or obsolete options to make the list less imposing.
788 # This message is too long to be a string in the A/UX 3.1 sh.
789 cat <<_ACEOF
790 \`configure' configures Proxy scanner daemon 2.0 to adapt to many kinds of systems.
791
792 Usage: $0 [OPTION]... [VAR=VALUE]...
793
794 To assign environment variables (e.g., CC, CFLAGS...), specify them as
795 VAR=VALUE. See below for descriptions of some of the useful variables.
796
797 Defaults for the options are specified in brackets.
798
799 Configuration:
800 -h, --help display this help and exit
801 --help=short display options specific to this package
802 --help=recursive display the short help of all the included packages
803 -V, --version display version information and exit
804 -q, --quiet, --silent do not print \`checking...' messages
805 --cache-file=FILE cache test results in FILE [disabled]
806 -C, --config-cache alias for \`--cache-file=config.cache'
807 -n, --no-create do not create output files
808 --srcdir=DIR find the sources in DIR [configure dir or \`..']
809
810 _ACEOF
811
812 cat <<_ACEOF
813 Installation directories:
814 --prefix=PREFIX install architecture-independent files in PREFIX
815 [$ac_default_prefix]
816 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
817 [PREFIX]
818
819 By default, \`make install' will install all the files in
820 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
821 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
822 for instance \`--prefix=\$HOME'.
823
824 For better control, use the options below.
825
826 Fine tuning of the installation directories:
827 --bindir=DIR user executables [EPREFIX/bin]
828 --sbindir=DIR system admin executables [EPREFIX/sbin]
829 --libexecdir=DIR program executables [EPREFIX/libexec]
830 --datadir=DIR read-only architecture-independent data [PREFIX/share]
831 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
832 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
833 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
834 --libdir=DIR object code libraries [EPREFIX/lib]
835 --includedir=DIR C header files [PREFIX/include]
836 --oldincludedir=DIR C header files for non-gcc [/usr/include]
837 --infodir=DIR info documentation [PREFIX/info]
838 --mandir=DIR man documentation [PREFIX/man]
839 _ACEOF
840
841 cat <<\_ACEOF
842
843 Program names:
844 --program-prefix=PREFIX prepend PREFIX to installed program names
845 --program-suffix=SUFFIX append SUFFIX to installed program names
846 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
847 _ACEOF
848 fi
849
850 if test -n "$ac_init_help"; then
851 case $ac_init_help in
852 short | recursive ) echo "Configuration of Proxy scanner daemon 2.0:";;
853 esac
854 cat <<\_ACEOF
855
856 Optional Features:
857 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
858 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
859 --enable-maintainer-mode enable make rules and dependencies not useful
860 (and sometimes confusing) to the casual installer
861 --disable-dependency-tracking Speeds up one-time builds
862 --enable-dependency-tracking Do not reject slow dependency extractors
863
864 Optional Packages:
865 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
866 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
867 --with-peak-prefix=PFX Prefix where peak is installed (optional)
868 --with-peak-exec-prefix=PFX Exec prefix where peak is installed (optional)
869 --with-xml2-prefix=PFX Prefix where xml2 is installed (optional)
870 --with-xml2-exec-prefix=PFX Exec prefix where xml2 is installed (optional)
871
872 Some influential environment variables:
873 CC C compiler command
874 CFLAGS C compiler flags
875 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
876 nonstandard directory <lib dir>
877 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
878 headers in a nonstandard directory <include dir>
879 CXX C++ compiler command
880 CXXFLAGS C++ compiler flags
881 CPP C preprocessor
882
883 Use these variables to override the choices made by `configure' or to help
884 it to find libraries and programs with nonstandard names/locations.
885
886 Report bugs to <mbuna@bugged.org>.
887 _ACEOF
888 fi
889
890 if test "$ac_init_help" = "recursive"; then
891 # If there are subdirs, report their specific --help.
892 ac_popdir=`pwd`
893 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
894 test -d $ac_dir || continue
895 ac_builddir=.
896
897 if test "$ac_dir" != .; then
898 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
899 # A "../" for each directory in $ac_dir_suffix.
900 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
901 else
902 ac_dir_suffix= ac_top_builddir=
903 fi
904
905 case $srcdir in
906 .) # No --srcdir option. We are building in place.
907 ac_srcdir=.
908 if test -z "$ac_top_builddir"; then
909 ac_top_srcdir=.
910 else
911 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
912 fi ;;
913 [\\/]* | ?:[\\/]* ) # Absolute path.
914 ac_srcdir=$srcdir$ac_dir_suffix;
915 ac_top_srcdir=$srcdir ;;
916 *) # Relative path.
917 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
918 ac_top_srcdir=$ac_top_builddir$srcdir ;;
919 esac
920 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
921 # absolute.
922 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
923 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
924 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
925 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
926
927 cd $ac_dir
928 # Check for guested configure; otherwise get Cygnus style configure.
929 if test -f $ac_srcdir/configure.gnu; then
930 echo
931 $SHELL $ac_srcdir/configure.gnu --help=recursive
932 elif test -f $ac_srcdir/configure; then
933 echo
934 $SHELL $ac_srcdir/configure --help=recursive
935 elif test -f $ac_srcdir/configure.ac ||
936 test -f $ac_srcdir/configure.in; then
937 echo
938 $ac_configure --help
939 else
940 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
941 fi
942 cd $ac_popdir
943 done
944 fi
945
946 test -n "$ac_init_help" && exit 0
947 if $ac_init_version; then
948 cat <<\_ACEOF
949 Proxy scanner daemon configure 2.0
950 generated by GNU Autoconf 2.57
951
952 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
953 Free Software Foundation, Inc.
954 This configure script is free software; the Free Software Foundation
955 gives unlimited permission to copy, distribute and modify it.
956 _ACEOF
957 exit 0
958 fi
959 exec 5>config.log
960 cat >&5 <<_ACEOF
961 This file contains any messages produced by compilers while
962 running configure, to aid debugging if configure makes a mistake.
963
964 It was created by Proxy scanner daemon $as_me 2.0, which was
965 generated by GNU Autoconf 2.57. Invocation command line was
966
967 $ $0 $@
968
969 _ACEOF
970 {
971 cat <<_ASUNAME
972 ## --------- ##
973 ## Platform. ##
974 ## --------- ##
975
976 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
977 uname -m = `(uname -m) 2>/dev/null || echo unknown`
978 uname -r = `(uname -r) 2>/dev/null || echo unknown`
979 uname -s = `(uname -s) 2>/dev/null || echo unknown`
980 uname -v = `(uname -v) 2>/dev/null || echo unknown`
981
982 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
983 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
984
985 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
986 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
987 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
988 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
989 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
990 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
991 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
992
993 _ASUNAME
994
995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
996 for as_dir in $PATH
997 do
998 IFS=$as_save_IFS
999 test -z "$as_dir" && as_dir=.
1000 echo "PATH: $as_dir"
1001 done
1002
1003 } >&5
1004
1005 cat >&5 <<_ACEOF
1006
1007
1008 ## ----------- ##
1009 ## Core tests. ##
1010 ## ----------- ##
1011
1012 _ACEOF
1013
1014
1015 # Keep a trace of the command line.
1016 # Strip out --no-create and --no-recursion so they do not pile up.
1017 # Strip out --silent because we don't want to record it for future runs.
1018 # Also quote any args containing shell meta-characters.
1019 # Make two passes to allow for proper duplicate-argument suppression.
1020 ac_configure_args=
1021 ac_configure_args0=
1022 ac_configure_args1=
1023 ac_sep=
1024 ac_must_keep_next=false
1025 for ac_pass in 1 2
1026 do
1027 for ac_arg
1028 do
1029 case $ac_arg in
1030 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1031 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1032 | -silent | --silent | --silen | --sile | --sil)
1033 continue ;;
1034 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1035 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1036 esac
1037 case $ac_pass in
1038 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1039 2)
1040 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1041 if test $ac_must_keep_next = true; then
1042 ac_must_keep_next=false # Got value, back to normal.
1043 else
1044 case $ac_arg in
1045 *=* | --config-cache | -C | -disable-* | --disable-* \
1046 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1047 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1048 | -with-* | --with-* | -without-* | --without-* | --x)
1049 case "$ac_configure_args0 " in
1050 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1051 esac
1052 ;;
1053 -* ) ac_must_keep_next=true ;;
1054 esac
1055 fi
1056 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1057 # Get rid of the leading space.
1058 ac_sep=" "
1059 ;;
1060 esac
1061 done
1062 done
1063 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1064 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1065
1066 # When interrupted or exit'd, cleanup temporary files, and complete
1067 # config.log. We remove comments because anyway the quotes in there
1068 # would cause problems or look ugly.
1069 # WARNING: Be sure not to use single quotes in there, as some shells,
1070 # such as our DU 5.0 friend, will then `close' the trap.
1071 trap 'exit_status=$?
1072 # Save into config.log some information that might help in debugging.
1073 {
1074 echo
1075
1076 cat <<\_ASBOX
1077 ## ---------------- ##
1078 ## Cache variables. ##
1079 ## ---------------- ##
1080 _ASBOX
1081 echo
1082 # The following way of writing the cache mishandles newlines in values,
1083 {
1084 (set) 2>&1 |
1085 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1086 *ac_space=\ *)
1087 sed -n \
1088 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1089 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1090 ;;
1091 *)
1092 sed -n \
1093 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1094 ;;
1095 esac;
1096 }
1097 echo
1098
1099 cat <<\_ASBOX
1100 ## ----------------- ##
1101 ## Output variables. ##
1102 ## ----------------- ##
1103 _ASBOX
1104 echo
1105 for ac_var in $ac_subst_vars
1106 do
1107 eval ac_val=$`echo $ac_var`
1108 echo "$ac_var='"'"'$ac_val'"'"'"
1109 done | sort
1110 echo
1111
1112 if test -n "$ac_subst_files"; then
1113 cat <<\_ASBOX
1114 ## ------------- ##
1115 ## Output files. ##
1116 ## ------------- ##
1117 _ASBOX
1118 echo
1119 for ac_var in $ac_subst_files
1120 do
1121 eval ac_val=$`echo $ac_var`
1122 echo "$ac_var='"'"'$ac_val'"'"'"
1123 done | sort
1124 echo
1125 fi
1126
1127 if test -s confdefs.h; then
1128 cat <<\_ASBOX
1129 ## ----------- ##
1130 ## confdefs.h. ##
1131 ## ----------- ##
1132 _ASBOX
1133 echo
1134 sed "/^$/d" confdefs.h | sort
1135 echo
1136 fi
1137 test "$ac_signal" != 0 &&
1138 echo "$as_me: caught signal $ac_signal"
1139 echo "$as_me: exit $exit_status"
1140 } >&5
1141 rm -f core core.* *.core &&
1142 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1143 exit $exit_status
1144 ' 0
1145 for ac_signal in 1 2 13 15; do
1146 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1147 done
1148 ac_signal=0
1149
1150 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1151 rm -rf conftest* confdefs.h
1152 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1153 echo >confdefs.h
1154
1155 # Predefined preprocessor variables.
1156
1157 cat >>confdefs.h <<_ACEOF
1158 #define PACKAGE_NAME "$PACKAGE_NAME"
1159 _ACEOF
1160
1161
1162 cat >>confdefs.h <<_ACEOF
1163 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1164 _ACEOF
1165
1166
1167 cat >>confdefs.h <<_ACEOF
1168 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1169 _ACEOF
1170
1171
1172 cat >>confdefs.h <<_ACEOF
1173 #define PACKAGE_STRING "$PACKAGE_STRING"
1174 _ACEOF
1175
1176
1177 cat >>confdefs.h <<_ACEOF
1178 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1179 _ACEOF
1180
1181
1182 # Let the site file select an alternate cache file if it wants to.
1183 # Prefer explicitly selected file to automatically selected ones.
1184 if test -z "$CONFIG_SITE"; then
1185 if test "x$prefix" != xNONE; then
1186 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1187 else
1188 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1189 fi
1190 fi
1191 for ac_site_file in $CONFIG_SITE; do
1192 if test -r "$ac_site_file"; then
1193 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1194 echo "$as_me: loading site script $ac_site_file" >&6;}
1195 sed 's/^/| /' "$ac_site_file" >&5
1196 . "$ac_site_file"
1197 fi
1198 done
1199
1200 if test -r "$cache_file"; then
1201 # Some versions of bash will fail to source /dev/null (special
1202 # files actually), so we avoid doing that.
1203 if test -f "$cache_file"; then
1204 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1205 echo "$as_me: loading cache $cache_file" >&6;}
1206 case $cache_file in
1207 [\\/]* | ?:[\\/]* ) . $cache_file;;
1208 *) . ./$cache_file;;
1209 esac
1210 fi
1211 else
1212 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1213 echo "$as_me: creating cache $cache_file" >&6;}
1214 >$cache_file
1215 fi
1216
1217 # Check that the precious variables saved in the cache have kept the same
1218 # value.
1219 ac_cache_corrupted=false
1220 for ac_var in `(set) 2>&1 |
1221 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1222 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1223 eval ac_new_set=\$ac_env_${ac_var}_set
1224 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1225 eval ac_new_val="\$ac_env_${ac_var}_value"
1226 case $ac_old_set,$ac_new_set in
1227 set,)
1228 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1229 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1230 ac_cache_corrupted=: ;;
1231 ,set)
1232 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1233 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1234 ac_cache_corrupted=: ;;
1235 ,);;
1236 *)
1237 if test "x$ac_old_val" != "x$ac_new_val"; then
1238 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1239 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1240 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1241 echo "$as_me: former value: $ac_old_val" >&2;}
1242 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1243 echo "$as_me: current value: $ac_new_val" >&2;}
1244 ac_cache_corrupted=:
1245 fi;;
1246 esac
1247 # Pass precious variables to config.status.
1248 if test "$ac_new_set" = set; then
1249 case $ac_new_val in
1250 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1251 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1252 *) ac_arg=$ac_var=$ac_new_val ;;
1253 esac
1254 case " $ac_configure_args " in
1255 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1256 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1257 esac
1258 fi
1259 done
1260 if $ac_cache_corrupted; then
1261 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1262 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1263 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1264 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1265 { (exit 1); exit 1; }; }
1266 fi
1267
1268 ac_ext=c
1269 ac_cpp='$CPP $CPPFLAGS'
1270 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1271 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1272 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300 am__api_version="1.6"
1301 ac_aux_dir=
1302 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1303 if test -f $ac_dir/install-sh; then
1304 ac_aux_dir=$ac_dir
1305 ac_install_sh="$ac_aux_dir/install-sh -c"
1306 break
1307 elif test -f $ac_dir/install.sh; then
1308 ac_aux_dir=$ac_dir
1309 ac_install_sh="$ac_aux_dir/install.sh -c"
1310 break
1311 elif test -f $ac_dir/shtool; then
1312 ac_aux_dir=$ac_dir
1313 ac_install_sh="$ac_aux_dir/shtool install -c"
1314 break
1315 fi
1316 done
1317 if test -z "$ac_aux_dir"; then
1318 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1319 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1320 { (exit 1); exit 1; }; }
1321 fi
1322 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1323 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1324 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1325
1326 # Find a good install program. We prefer a C program (faster),
1327 # so one script is as good as another. But avoid the broken or
1328 # incompatible versions:
1329 # SysV /etc/install, /usr/sbin/install
1330 # SunOS /usr/etc/install
1331 # IRIX /sbin/install
1332 # AIX /bin/install
1333 # AmigaOS /C/install, which installs bootblocks on floppy discs
1334 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1335 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1336 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1337 # ./install, which can be erroneously created by make from ./install.sh.
1338 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1339 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1340 if test -z "$INSTALL"; then
1341 if test "${ac_cv_path_install+set}" = set; then
1342 echo $ECHO_N "(cached) $ECHO_C" >&6
1343 else
1344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1345 for as_dir in $PATH
1346 do
1347 IFS=$as_save_IFS
1348 test -z "$as_dir" && as_dir=.
1349 # Account for people who put trailing slashes in PATH elements.
1350 case $as_dir/ in
1351 ./ | .// | /cC/* | \
1352 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1353 /usr/ucb/* ) ;;
1354 *)
1355 # OSF1 and SCO ODT 3.0 have their own names for install.
1356 # Don't use installbsd from OSF since it installs stuff as root
1357 # by default.
1358 for ac_prog in ginstall scoinst install; do
1359 for ac_exec_ext in '' $ac_executable_extensions; do
1360 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1361 if test $ac_prog = install &&
1362 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1363 # AIX install. It has an incompatible calling convention.
1364 :
1365 elif test $ac_prog = install &&
1366 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1367 # program-specific install script used by HP pwplus--don't use.
1368 :
1369 else
1370 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1371 break 3
1372 fi
1373 fi
1374 done
1375 done
1376 ;;
1377 esac
1378 done
1379
1380
1381 fi
1382 if test "${ac_cv_path_install+set}" = set; then
1383 INSTALL=$ac_cv_path_install
1384 else
1385 # As a last resort, use the slow shell script. We don't cache a
1386 # path for INSTALL within a source directory, because that will
1387 # break other packages using the cache if that directory is
1388 # removed, or if the path is relative.
1389 INSTALL=$ac_install_sh
1390 fi
1391 fi
1392 echo "$as_me:$LINENO: result: $INSTALL" >&5
1393 echo "${ECHO_T}$INSTALL" >&6
1394
1395 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1396 # It thinks the first close brace ends the variable substitution.
1397 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1398
1399 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1400
1401 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1402
1403 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1404 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1405 # Just in case
1406 sleep 1
1407 echo timestamp > conftest.file
1408 # Do `set' in a subshell so we don't clobber the current shell's
1409 # arguments. Must try -L first in case configure is actually a
1410 # symlink; some systems play weird games with the mod time of symlinks
1411 # (eg FreeBSD returns the mod time of the symlink's containing
1412 # directory).
1413 if (
1414 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1415 if test "$*" = "X"; then
1416 # -L didn't work.
1417 set X `ls -t $srcdir/configure conftest.file`
1418 fi
1419 rm -f conftest.file
1420 if test "$*" != "X $srcdir/configure conftest.file" \
1421 && test "$*" != "X conftest.file $srcdir/configure"; then
1422
1423 # If neither matched, then we have a broken ls. This can happen
1424 # if, for instance, CONFIG_SHELL is bash and it inherits a
1425 # broken ls alias from the environment. This has actually
1426 # happened. Such a system could not be considered "sane".
1427 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1428 alias in your environment" >&5
1429 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1430 alias in your environment" >&2;}
1431 { (exit 1); exit 1; }; }
1432 fi
1433
1434 test "$2" = conftest.file
1435 )
1436 then
1437 # Ok.
1438 :
1439 else
1440 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1441 Check your system clock" >&5
1442 echo "$as_me: error: newly created file is older than distributed files!
1443 Check your system clock" >&2;}
1444 { (exit 1); exit 1; }; }
1445 fi
1446 echo "$as_me:$LINENO: result: yes" >&5
1447 echo "${ECHO_T}yes" >&6
1448 test "$program_prefix" != NONE &&
1449 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1450 # Use a double $ so make ignores it.
1451 test "$program_suffix" != NONE &&
1452 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1453 # Double any \ or $. echo might interpret backslashes.
1454 # By default was `s,x,x', remove it if useless.
1455 cat <<\_ACEOF >conftest.sed
1456 s/[\\$]/&&/g;s/;s,x,x,$//
1457 _ACEOF
1458 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1459 rm conftest.sed
1460
1461
1462 # expand $ac_aux_dir to an absolute path
1463 am_aux_dir=`cd $ac_aux_dir && pwd`
1464
1465 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1466 # Use eval to expand $SHELL
1467 if eval "$MISSING --run true"; then
1468 am_missing_run="$MISSING --run "
1469 else
1470 am_missing_run=
1471 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1472 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1473 fi
1474
1475 for ac_prog in gawk mawk nawk awk
1476 do
1477 # Extract the first word of "$ac_prog", so it can be a program name with args.
1478 set dummy $ac_prog; ac_word=$2
1479 echo "$as_me:$LINENO: checking for $ac_word" >&5
1480 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1481 if test "${ac_cv_prog_AWK+set}" = set; then
1482 echo $ECHO_N "(cached) $ECHO_C" >&6
1483 else
1484 if test -n "$AWK"; then
1485 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1486 else
1487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1488 for as_dir in $PATH
1489 do
1490 IFS=$as_save_IFS
1491 test -z "$as_dir" && as_dir=.
1492 for ac_exec_ext in '' $ac_executable_extensions; do
1493 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1494 ac_cv_prog_AWK="$ac_prog"
1495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1496 break 2
1497 fi
1498 done
1499 done
1500
1501 fi
1502 fi
1503 AWK=$ac_cv_prog_AWK
1504 if test -n "$AWK"; then
1505 echo "$as_me:$LINENO: result: $AWK" >&5
1506 echo "${ECHO_T}$AWK" >&6
1507 else
1508 echo "$as_me:$LINENO: result: no" >&5
1509 echo "${ECHO_T}no" >&6
1510 fi
1511
1512 test -n "$AWK" && break
1513 done
1514
1515 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1516 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1517 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1518 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1519 echo $ECHO_N "(cached) $ECHO_C" >&6
1520 else
1521 cat >conftest.make <<\_ACEOF
1522 all:
1523 @echo 'ac_maketemp="$(MAKE)"'
1524 _ACEOF
1525 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1526 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1527 if test -n "$ac_maketemp"; then
1528 eval ac_cv_prog_make_${ac_make}_set=yes
1529 else
1530 eval ac_cv_prog_make_${ac_make}_set=no
1531 fi
1532 rm -f conftest.make
1533 fi
1534 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1535 echo "$as_me:$LINENO: result: yes" >&5
1536 echo "${ECHO_T}yes" >&6
1537 SET_MAKE=
1538 else
1539 echo "$as_me:$LINENO: result: no" >&5
1540 echo "${ECHO_T}no" >&6
1541 SET_MAKE="MAKE=${MAKE-make}"
1542 fi
1543
1544 # test to see if srcdir already configured
1545 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1546 test -f $srcdir/config.status; then
1547 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1548 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1549 { (exit 1); exit 1; }; }
1550 fi
1551
1552 # Define the identity of the package.
1553 PACKAGE=pxscand
1554 VERSION=2.0
1555
1556
1557 cat >>confdefs.h <<_ACEOF
1558 #define PACKAGE "$PACKAGE"
1559 _ACEOF
1560
1561
1562 cat >>confdefs.h <<_ACEOF
1563 #define VERSION "$VERSION"
1564 _ACEOF
1565
1566 # Some tools Automake needs.
1567
1568 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1569
1570
1571 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1572
1573
1574 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1575
1576
1577 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1578
1579
1580 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1581
1582
1583 AMTAR=${AMTAR-"${am_missing_run}tar"}
1584
1585 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1586
1587 # Installed binaries are usually stripped using `strip' when the user
1588 # run `make install-strip'. However `strip' might not be the right
1589 # tool to use in cross-compilation environments, therefore Automake
1590 # will honor the `STRIP' environment variable to overrule this program.
1591 if test "$cross_compiling" != no; then
1592 if test -n "$ac_tool_prefix"; then
1593 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1594 set dummy ${ac_tool_prefix}strip; ac_word=$2
1595 echo "$as_me:$LINENO: checking for $ac_word" >&5
1596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1597 if test "${ac_cv_prog_STRIP+set}" = set; then
1598 echo $ECHO_N "(cached) $ECHO_C" >&6
1599 else
1600 if test -n "$STRIP"; then
1601 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1602 else
1603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1604 for as_dir in $PATH
1605 do
1606 IFS=$as_save_IFS
1607 test -z "$as_dir" && as_dir=.
1608 for ac_exec_ext in '' $ac_executable_extensions; do
1609 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1610 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1611 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1612 break 2
1613 fi
1614 done
1615 done
1616
1617 fi
1618 fi
1619 STRIP=$ac_cv_prog_STRIP
1620 if test -n "$STRIP"; then
1621 echo "$as_me:$LINENO: result: $STRIP" >&5
1622 echo "${ECHO_T}$STRIP" >&6
1623 else
1624 echo "$as_me:$LINENO: result: no" >&5
1625 echo "${ECHO_T}no" >&6
1626 fi
1627
1628 fi
1629 if test -z "$ac_cv_prog_STRIP"; then
1630 ac_ct_STRIP=$STRIP
1631 # Extract the first word of "strip", so it can be a program name with args.
1632 set dummy strip; ac_word=$2
1633 echo "$as_me:$LINENO: checking for $ac_word" >&5
1634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1635 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1636 echo $ECHO_N "(cached) $ECHO_C" >&6
1637 else
1638 if test -n "$ac_ct_STRIP"; then
1639 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1640 else
1641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1642 for as_dir in $PATH
1643 do
1644 IFS=$as_save_IFS
1645 test -z "$as_dir" && as_dir=.
1646 for ac_exec_ext in '' $ac_executable_extensions; do
1647 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1648 ac_cv_prog_ac_ct_STRIP="strip"
1649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1650 break 2
1651 fi
1652 done
1653 done
1654
1655 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1656 fi
1657 fi
1658 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1659 if test -n "$ac_ct_STRIP"; then
1660 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1661 echo "${ECHO_T}$ac_ct_STRIP" >&6
1662 else
1663 echo "$as_me:$LINENO: result: no" >&5
1664 echo "${ECHO_T}no" >&6
1665 fi
1666
1667 STRIP=$ac_ct_STRIP
1668 else
1669 STRIP="$ac_cv_prog_STRIP"
1670 fi
1671
1672 fi
1673 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1674
1675 # We need awk for the "check" target. The system "awk" is bad on
1676 # some platforms.
1677
1678
1679
1680
1681 # Add the stamp file to the list of files AC keeps track of,
1682 # along with our hook.
1683 ac_config_headers="$ac_config_headers config.h"
1684
1685
1686
1687 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1688 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1689 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1690 if test "${enable_maintainer_mode+set}" = set; then
1691 enableval="$enable_maintainer_mode"
1692 USE_MAINTAINER_MODE=$enableval
1693 else
1694 USE_MAINTAINER_MODE=no
1695 fi;
1696 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1697 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1698
1699
1700 if test $USE_MAINTAINER_MODE = yes; then
1701 MAINTAINER_MODE_TRUE=
1702 MAINTAINER_MODE_FALSE='#'
1703 else
1704 MAINTAINER_MODE_TRUE='#'
1705 MAINTAINER_MODE_FALSE=
1706 fi
1707
1708 MAINT=$MAINTAINER_MODE_TRUE
1709
1710
1711
1712 ac_ext=c
1713 ac_cpp='$CPP $CPPFLAGS'
1714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1716 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1717 if test -n "$ac_tool_prefix"; then
1718 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1719 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1720 echo "$as_me:$LINENO: checking for $ac_word" >&5
1721 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1722 if test "${ac_cv_prog_CC+set}" = set; then
1723 echo $ECHO_N "(cached) $ECHO_C" >&6
1724 else
1725 if test -n "$CC"; then
1726 ac_cv_prog_CC="$CC" # Let the user override the test.
1727 else
1728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1729 for as_dir in $PATH
1730 do
1731 IFS=$as_save_IFS
1732 test -z "$as_dir" && as_dir=.
1733 for ac_exec_ext in '' $ac_executable_extensions; do
1734 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1735 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1736 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1737 break 2
1738 fi
1739 done
1740 done
1741
1742 fi
1743 fi
1744 CC=$ac_cv_prog_CC
1745 if test -n "$CC"; then
1746 echo "$as_me:$LINENO: result: $CC" >&5
1747 echo "${ECHO_T}$CC" >&6
1748 else
1749 echo "$as_me:$LINENO: result: no" >&5
1750 echo "${ECHO_T}no" >&6
1751 fi
1752
1753 fi
1754 if test -z "$ac_cv_prog_CC"; then
1755 ac_ct_CC=$CC
1756 # Extract the first word of "gcc", so it can be a program name with args.
1757 set dummy gcc; ac_word=$2
1758 echo "$as_me:$LINENO: checking for $ac_word" >&5
1759 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1760 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1761 echo $ECHO_N "(cached) $ECHO_C" >&6
1762 else
1763 if test -n "$ac_ct_CC"; then
1764 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1765 else
1766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1767 for as_dir in $PATH
1768 do
1769 IFS=$as_save_IFS
1770 test -z "$as_dir" && as_dir=.
1771 for ac_exec_ext in '' $ac_executable_extensions; do
1772 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1773 ac_cv_prog_ac_ct_CC="gcc"
1774 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1775 break 2
1776 fi
1777 done
1778 done
1779
1780 fi
1781 fi
1782 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1783 if test -n "$ac_ct_CC"; then
1784 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1785 echo "${ECHO_T}$ac_ct_CC" >&6
1786 else
1787 echo "$as_me:$LINENO: result: no" >&5
1788 echo "${ECHO_T}no" >&6
1789 fi
1790
1791 CC=$ac_ct_CC
1792 else
1793 CC="$ac_cv_prog_CC"
1794 fi
1795
1796 if test -z "$CC"; then
1797 if test -n "$ac_tool_prefix"; then
1798 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1799 set dummy ${ac_tool_prefix}cc; ac_word=$2
1800 echo "$as_me:$LINENO: checking for $ac_word" >&5
1801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1802 if test "${ac_cv_prog_CC+set}" = set; then
1803 echo $ECHO_N "(cached) $ECHO_C" >&6
1804 else
1805 if test -n "$CC"; then
1806 ac_cv_prog_CC="$CC" # Let the user override the test.
1807 else
1808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1809 for as_dir in $PATH
1810 do
1811 IFS=$as_save_IFS
1812 test -z "$as_dir" && as_dir=.
1813 for ac_exec_ext in '' $ac_executable_extensions; do
1814 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1815 ac_cv_prog_CC="${ac_tool_prefix}cc"
1816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1817 break 2
1818 fi
1819 done
1820 done
1821
1822 fi
1823 fi
1824 CC=$ac_cv_prog_CC
1825 if test -n "$CC"; then
1826 echo "$as_me:$LINENO: result: $CC" >&5
1827 echo "${ECHO_T}$CC" >&6
1828 else
1829 echo "$as_me:$LINENO: result: no" >&5
1830 echo "${ECHO_T}no" >&6
1831 fi
1832
1833 fi
1834 if test -z "$ac_cv_prog_CC"; then
1835 ac_ct_CC=$CC
1836 # Extract the first word of "cc", so it can be a program name with args.
1837 set dummy cc; ac_word=$2
1838 echo "$as_me:$LINENO: checking for $ac_word" >&5
1839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1840 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1841 echo $ECHO_N "(cached) $ECHO_C" >&6
1842 else
1843 if test -n "$ac_ct_CC"; then
1844 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1845 else
1846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1847 for as_dir in $PATH
1848 do
1849 IFS=$as_save_IFS
1850 test -z "$as_dir" && as_dir=.
1851 for ac_exec_ext in '' $ac_executable_extensions; do
1852 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1853 ac_cv_prog_ac_ct_CC="cc"
1854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1855 break 2
1856 fi
1857 done
1858 done
1859
1860 fi
1861 fi
1862 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1863 if test -n "$ac_ct_CC"; then
1864 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1865 echo "${ECHO_T}$ac_ct_CC" >&6
1866 else
1867 echo "$as_me:$LINENO: result: no" >&5
1868 echo "${ECHO_T}no" >&6
1869 fi
1870
1871 CC=$ac_ct_CC
1872 else
1873 CC="$ac_cv_prog_CC"
1874 fi
1875
1876 fi
1877 if test -z "$CC"; then
1878 # Extract the first word of "cc", so it can be a program name with args.
1879 set dummy cc; ac_word=$2
1880 echo "$as_me:$LINENO: checking for $ac_word" >&5
1881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1882 if test "${ac_cv_prog_CC+set}" = set; then
1883 echo $ECHO_N "(cached) $ECHO_C" >&6
1884 else
1885 if test -n "$CC"; then
1886 ac_cv_prog_CC="$CC" # Let the user override the test.
1887 else
1888 ac_prog_rejected=no
1889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1890 for as_dir in $PATH
1891 do
1892 IFS=$as_save_IFS
1893 test -z "$as_dir" && as_dir=.
1894 for ac_exec_ext in '' $ac_executable_extensions; do
1895 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1896 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1897 ac_prog_rejected=yes
1898 continue
1899 fi
1900 ac_cv_prog_CC="cc"
1901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1902 break 2
1903 fi
1904 done
1905 done
1906
1907 if test $ac_prog_rejected = yes; then
1908 # We found a bogon in the path, so make sure we never use it.
1909 set dummy $ac_cv_prog_CC
1910 shift
1911 if test $# != 0; then
1912 # We chose a different compiler from the bogus one.
1913 # However, it has the same basename, so the bogon will be chosen
1914 # first if we set CC to just the basename; use the full file name.
1915 shift
1916 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1917 fi
1918 fi
1919 fi
1920 fi
1921 CC=$ac_cv_prog_CC
1922 if test -n "$CC"; then
1923 echo "$as_me:$LINENO: result: $CC" >&5
1924 echo "${ECHO_T}$CC" >&6
1925 else
1926 echo "$as_me:$LINENO: result: no" >&5
1927 echo "${ECHO_T}no" >&6
1928 fi
1929
1930 fi
1931 if test -z "$CC"; then
1932 if test -n "$ac_tool_prefix"; then
1933 for ac_prog in cl
1934 do
1935 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1936 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1937 echo "$as_me:$LINENO: checking for $ac_word" >&5
1938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1939 if test "${ac_cv_prog_CC+set}" = set; then
1940 echo $ECHO_N "(cached) $ECHO_C" >&6
1941 else
1942 if test -n "$CC"; then
1943 ac_cv_prog_CC="$CC" # Let the user override the test.
1944 else
1945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1946 for as_dir in $PATH
1947 do
1948 IFS=$as_save_IFS
1949 test -z "$as_dir" && as_dir=.
1950 for ac_exec_ext in '' $ac_executable_extensions; do
1951 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1952 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1954 break 2
1955 fi
1956 done
1957 done
1958
1959 fi
1960 fi
1961 CC=$ac_cv_prog_CC
1962 if test -n "$CC"; then
1963 echo "$as_me:$LINENO: result: $CC" >&5
1964 echo "${ECHO_T}$CC" >&6
1965 else
1966 echo "$as_me:$LINENO: result: no" >&5
1967 echo "${ECHO_T}no" >&6
1968 fi
1969
1970 test -n "$CC" && break
1971 done
1972 fi
1973 if test -z "$CC"; then
1974 ac_ct_CC=$CC
1975 for ac_prog in cl
1976 do
1977 # Extract the first word of "$ac_prog", so it can be a program name with args.
1978 set dummy $ac_prog; ac_word=$2
1979 echo "$as_me:$LINENO: checking for $ac_word" >&5
1980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1981 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1982 echo $ECHO_N "(cached) $ECHO_C" >&6
1983 else
1984 if test -n "$ac_ct_CC"; then
1985 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1986 else
1987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1988 for as_dir in $PATH
1989 do
1990 IFS=$as_save_IFS
1991 test -z "$as_dir" && as_dir=.
1992 for ac_exec_ext in '' $ac_executable_extensions; do
1993 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1994 ac_cv_prog_ac_ct_CC="$ac_prog"
1995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1996 break 2
1997 fi
1998 done
1999 done
2000
2001 fi
2002 fi
2003 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2004 if test -n "$ac_ct_CC"; then
2005 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2006 echo "${ECHO_T}$ac_ct_CC" >&6
2007 else
2008 echo "$as_me:$LINENO: result: no" >&5
2009 echo "${ECHO_T}no" >&6
2010 fi
2011
2012 test -n "$ac_ct_CC" && break
2013 done
2014
2015 CC=$ac_ct_CC
2016 fi
2017
2018 fi
2019
2020
2021 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2022 See \`config.log' for more details." >&5
2023 echo "$as_me: error: no acceptable C compiler found in \$PATH
2024 See \`config.log' for more details." >&2;}
2025 { (exit 1); exit 1; }; }
2026
2027 # Provide some information about the compiler.
2028 echo "$as_me:$LINENO:" \
2029 "checking for C compiler version" >&5
2030 ac_compiler=`set X $ac_compile; echo $2`
2031 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2032 (eval $ac_compiler --version </dev/null >&5) 2>&5
2033 ac_status=$?
2034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2035 (exit $ac_status); }
2036 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2037 (eval $ac_compiler -v </dev/null >&5) 2>&5
2038 ac_status=$?
2039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2040 (exit $ac_status); }
2041 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2042 (eval $ac_compiler -V </dev/null >&5) 2>&5
2043 ac_status=$?
2044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2045 (exit $ac_status); }
2046
2047 cat >conftest.$ac_ext <<_ACEOF
2048 #line $LINENO "configure"
2049 /* confdefs.h. */
2050 _ACEOF
2051 cat confdefs.h >>conftest.$ac_ext
2052 cat >>conftest.$ac_ext <<_ACEOF
2053 /* end confdefs.h. */
2054
2055 int
2056 main ()
2057 {
2058
2059 ;
2060 return 0;
2061 }
2062 _ACEOF
2063 ac_clean_files_save=$ac_clean_files
2064 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2065 # Try to create an executable without -o first, disregard a.out.
2066 # It will help us diagnose broken compilers, and finding out an intuition
2067 # of exeext.
2068 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2069 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2070 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2071 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2072 (eval $ac_link_default) 2>&5
2073 ac_status=$?
2074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2075 (exit $ac_status); }; then
2076 # Find the output, starting from the most likely. This scheme is
2077 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2078 # resort.
2079
2080 # Be careful to initialize this variable, since it used to be cached.
2081 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2082 ac_cv_exeext=
2083 # b.out is created by i960 compilers.
2084 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2085 do
2086 test -f "$ac_file" || continue
2087 case $ac_file in
2088 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2089 ;;
2090 conftest.$ac_ext )
2091 # This is the source file.
2092 ;;
2093 [ab].out )
2094 # We found the default executable, but exeext='' is most
2095 # certainly right.
2096 break;;
2097 *.* )
2098 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2099 # FIXME: I believe we export ac_cv_exeext for Libtool,
2100 # but it would be cool to find out if it's true. Does anybody
2101 # maintain Libtool? --akim.
2102 export ac_cv_exeext
2103 break;;
2104 * )
2105 break;;
2106 esac
2107 done
2108 else
2109 echo "$as_me: failed program was:" >&5
2110 sed 's/^/| /' conftest.$ac_ext >&5
2111
2112 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2113 See \`config.log' for more details." >&5
2114 echo "$as_me: error: C compiler cannot create executables
2115 See \`config.log' for more details." >&2;}
2116 { (exit 77); exit 77; }; }
2117 fi
2118
2119 ac_exeext=$ac_cv_exeext
2120 echo "$as_me:$LINENO: result: $ac_file" >&5
2121 echo "${ECHO_T}$ac_file" >&6
2122
2123 # Check the compiler produces executables we can run. If not, either
2124 # the compiler is broken, or we cross compile.
2125 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2126 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2127 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2128 # If not cross compiling, check that we can run a simple program.
2129 if test "$cross_compiling" != yes; then
2130 if { ac_try='./$ac_file'
2131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2132 (eval $ac_try) 2>&5
2133 ac_status=$?
2134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2135 (exit $ac_status); }; }; then
2136 cross_compiling=no
2137 else
2138 if test "$cross_compiling" = maybe; then
2139 cross_compiling=yes
2140 else
2141 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2142 If you meant to cross compile, use \`--host'.
2143 See \`config.log' for more details." >&5
2144 echo "$as_me: error: cannot run C compiled programs.
2145 If you meant to cross compile, use \`--host'.
2146 See \`config.log' for more details." >&2;}
2147 { (exit 1); exit 1; }; }
2148 fi
2149 fi
2150 fi
2151 echo "$as_me:$LINENO: result: yes" >&5
2152 echo "${ECHO_T}yes" >&6
2153
2154 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2155 ac_clean_files=$ac_clean_files_save
2156 # Check the compiler produces executables we can run. If not, either
2157 # the compiler is broken, or we cross compile.
2158 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2159 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2160 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2161 echo "${ECHO_T}$cross_compiling" >&6
2162
2163 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2164 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2166 (eval $ac_link) 2>&5
2167 ac_status=$?
2168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2169 (exit $ac_status); }; then
2170 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2171 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2172 # work properly (i.e., refer to `conftest.exe'), while it won't with
2173 # `rm'.
2174 for ac_file in conftest.exe conftest conftest.*; do
2175 test -f "$ac_file" || continue
2176 case $ac_file in
2177 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2178 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2179 export ac_cv_exeext
2180 break;;
2181 * ) break;;
2182 esac
2183 done
2184 else
2185 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2186 See \`config.log' for more details." >&5
2187 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2188 See \`config.log' for more details." >&2;}
2189 { (exit 1); exit 1; }; }
2190 fi
2191
2192 rm -f conftest$ac_cv_exeext
2193 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2194 echo "${ECHO_T}$ac_cv_exeext" >&6
2195
2196 rm -f conftest.$ac_ext
2197 EXEEXT=$ac_cv_exeext
2198 ac_exeext=$EXEEXT
2199 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2200 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2201 if test "${ac_cv_objext+set}" = set; then
2202 echo $ECHO_N "(cached) $ECHO_C" >&6
2203 else
2204 cat >conftest.$ac_ext <<_ACEOF
2205 #line $LINENO "configure"
2206 /* confdefs.h. */
2207 _ACEOF
2208 cat confdefs.h >>conftest.$ac_ext
2209 cat >>conftest.$ac_ext <<_ACEOF
2210 /* end confdefs.h. */
2211
2212 int
2213 main ()
2214 {
2215
2216 ;
2217 return 0;
2218 }
2219 _ACEOF
2220 rm -f conftest.o conftest.obj
2221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2222 (eval $ac_compile) 2>&5
2223 ac_status=$?
2224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2225 (exit $ac_status); }; then
2226 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2227 case $ac_file in
2228 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2229 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2230 break;;
2231 esac
2232 done
2233 else
2234 echo "$as_me: failed program was:" >&5
2235 sed 's/^/| /' conftest.$ac_ext >&5
2236
2237 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2238 See \`config.log' for more details." >&5
2239 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2240 See \`config.log' for more details." >&2;}
2241 { (exit 1); exit 1; }; }
2242 fi
2243
2244 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2245 fi
2246 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2247 echo "${ECHO_T}$ac_cv_objext" >&6
2248 OBJEXT=$ac_cv_objext
2249 ac_objext=$OBJEXT
2250 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2251 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2252 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2253 echo $ECHO_N "(cached) $ECHO_C" >&6
2254 else
2255 cat >conftest.$ac_ext <<_ACEOF
2256 #line $LINENO "configure"
2257 /* confdefs.h. */
2258 _ACEOF
2259 cat confdefs.h >>conftest.$ac_ext
2260 cat >>conftest.$ac_ext <<_ACEOF
2261 /* end confdefs.h. */
2262
2263 int
2264 main ()
2265 {
2266 #ifndef __GNUC__
2267 choke me
2268 #endif
2269
2270 ;
2271 return 0;
2272 }
2273 _ACEOF
2274 rm -f conftest.$ac_objext
2275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2276 (eval $ac_compile) 2>&5
2277 ac_status=$?
2278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2279 (exit $ac_status); } &&
2280 { ac_try='test -s conftest.$ac_objext'
2281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2282 (eval $ac_try) 2>&5
2283 ac_status=$?
2284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2285 (exit $ac_status); }; }; then
2286 ac_compiler_gnu=yes
2287 else
2288 echo "$as_me: failed program was:" >&5
2289 sed 's/^/| /' conftest.$ac_ext >&5
2290
2291 ac_compiler_gnu=no
2292 fi
2293 rm -f conftest.$ac_objext conftest.$ac_ext
2294 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2295
2296 fi
2297 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2298 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2299 GCC=`test $ac_compiler_gnu = yes && echo yes`
2300 ac_test_CFLAGS=${CFLAGS+set}
2301 ac_save_CFLAGS=$CFLAGS
2302 CFLAGS="-g"
2303 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2304 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2305 if test "${ac_cv_prog_cc_g+set}" = set; then
2306 echo $ECHO_N "(cached) $ECHO_C" >&6
2307 else
2308 cat >conftest.$ac_ext <<_ACEOF
2309 #line $LINENO "configure"
2310 /* confdefs.h. */
2311 _ACEOF
2312 cat confdefs.h >>conftest.$ac_ext
2313 cat >>conftest.$ac_ext <<_ACEOF
2314 /* end confdefs.h. */
2315
2316 int
2317 main ()
2318 {
2319
2320 ;
2321 return 0;
2322 }
2323 _ACEOF
2324 rm -f conftest.$ac_objext
2325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2326 (eval $ac_compile) 2>&5
2327 ac_status=$?
2328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2329 (exit $ac_status); } &&
2330 { ac_try='test -s conftest.$ac_objext'
2331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2332 (eval $ac_try) 2>&5
2333 ac_status=$?
2334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2335 (exit $ac_status); }; }; then
2336 ac_cv_prog_cc_g=yes
2337 else
2338 echo "$as_me: failed program was:" >&5
2339 sed 's/^/| /' conftest.$ac_ext >&5
2340
2341 ac_cv_prog_cc_g=no
2342 fi
2343 rm -f conftest.$ac_objext conftest.$ac_ext
2344 fi
2345 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2346 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2347 if test "$ac_test_CFLAGS" = set; then
2348 CFLAGS=$ac_save_CFLAGS
2349 elif test $ac_cv_prog_cc_g = yes; then
2350 if test "$GCC" = yes; then
2351 CFLAGS="-g -O2"
2352 else
2353 CFLAGS="-g"
2354 fi
2355 else
2356 if test "$GCC" = yes; then
2357 CFLAGS="-O2"
2358 else
2359 CFLAGS=
2360 fi
2361 fi
2362 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2363 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2364 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2365 echo $ECHO_N "(cached) $ECHO_C" >&6
2366 else
2367 ac_cv_prog_cc_stdc=no
2368 ac_save_CC=$CC
2369 cat >conftest.$ac_ext <<_ACEOF
2370 #line $LINENO "configure"
2371 /* confdefs.h. */
2372 _ACEOF
2373 cat confdefs.h >>conftest.$ac_ext
2374 cat >>conftest.$ac_ext <<_ACEOF
2375 /* end confdefs.h. */
2376 #include <stdarg.h>
2377 #include <stdio.h>
2378 #include <sys/types.h>
2379 #include <sys/stat.h>
2380 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2381 struct buf { int x; };
2382 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2383 static char *e (p, i)
2384 char **p;
2385 int i;
2386 {
2387 return p[i];
2388 }
2389 static char *f (char * (*g) (char **, int), char **p, ...)
2390 {
2391 char *s;
2392 va_list v;
2393 va_start (v,p);
2394 s = g (p, va_arg (v,int));
2395 va_end (v);
2396 return s;
2397 }
2398 int test (int i, double x);
2399 struct s1 {int (*f) (int a);};
2400 struct s2 {int (*f) (double a);};
2401 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2402 int argc;
2403 char **argv;
2404 int
2405 main ()
2406 {
2407 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2408 ;
2409 return 0;
2410 }
2411 _ACEOF
2412 # Don't try gcc -ansi; that turns off useful extensions and
2413 # breaks some systems' header files.
2414 # AIX -qlanglvl=ansi
2415 # Ultrix and OSF/1 -std1
2416 # HP-UX 10.20 and later -Ae
2417 # HP-UX older versions -Aa -D_HPUX_SOURCE
2418 # SVR4 -Xc -D__EXTENSIONS__
2419 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2420 do
2421 CC="$ac_save_CC $ac_arg"
2422 rm -f conftest.$ac_objext
2423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2424 (eval $ac_compile) 2>&5
2425 ac_status=$?
2426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2427 (exit $ac_status); } &&
2428 { ac_try='test -s conftest.$ac_objext'
2429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2430 (eval $ac_try) 2>&5
2431 ac_status=$?
2432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2433 (exit $ac_status); }; }; then
2434 ac_cv_prog_cc_stdc=$ac_arg
2435 break
2436 else
2437 echo "$as_me: failed program was:" >&5
2438 sed 's/^/| /' conftest.$ac_ext >&5
2439
2440 fi
2441 rm -f conftest.$ac_objext
2442 done
2443 rm -f conftest.$ac_ext conftest.$ac_objext
2444 CC=$ac_save_CC
2445
2446 fi
2447
2448 case "x$ac_cv_prog_cc_stdc" in
2449 x|xno)
2450 echo "$as_me:$LINENO: result: none needed" >&5
2451 echo "${ECHO_T}none needed" >&6 ;;
2452 *)
2453 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2454 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2455 CC="$CC $ac_cv_prog_cc_stdc" ;;
2456 esac
2457
2458 # Some people use a C++ compiler to compile C. Since we use `exit',
2459 # in C++ we need to declare it. In case someone uses the same compiler
2460 # for both compiling C and C++ we need to have the C++ compiler decide
2461 # the declaration of exit, since it's the most demanding environment.
2462 cat >conftest.$ac_ext <<_ACEOF
2463 #ifndef __cplusplus
2464 choke me
2465 #endif
2466 _ACEOF
2467 rm -f conftest.$ac_objext
2468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2469 (eval $ac_compile) 2>&5
2470 ac_status=$?
2471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2472 (exit $ac_status); } &&
2473 { ac_try='test -s conftest.$ac_objext'
2474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2475 (eval $ac_try) 2>&5
2476 ac_status=$?
2477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2478 (exit $ac_status); }; }; then
2479 for ac_declaration in \
2480 ''\
2481 '#include <stdlib.h>' \
2482 'extern "C" void std::exit (int) throw (); using std::exit;' \
2483 'extern "C" void std::exit (int); using std::exit;' \
2484 'extern "C" void exit (int) throw ();' \
2485 'extern "C" void exit (int);' \
2486 'void exit (int);'
2487 do
2488 cat >conftest.$ac_ext <<_ACEOF
2489 #line $LINENO "configure"
2490 /* confdefs.h. */
2491 _ACEOF
2492 cat confdefs.h >>conftest.$ac_ext
2493 cat >>conftest.$ac_ext <<_ACEOF
2494 /* end confdefs.h. */
2495 #include <stdlib.h>
2496 $ac_declaration
2497 int
2498 main ()
2499 {
2500 exit (42);
2501 ;
2502 return 0;
2503 }
2504 _ACEOF
2505 rm -f conftest.$ac_objext
2506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2507 (eval $ac_compile) 2>&5
2508 ac_status=$?
2509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2510 (exit $ac_status); } &&
2511 { ac_try='test -s conftest.$ac_objext'
2512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2513 (eval $ac_try) 2>&5
2514 ac_status=$?
2515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2516 (exit $ac_status); }; }; then
2517 :
2518 else
2519 echo "$as_me: failed program was:" >&5
2520 sed 's/^/| /' conftest.$ac_ext >&5
2521
2522 continue
2523 fi
2524 rm -f conftest.$ac_objext conftest.$ac_ext
2525 cat >conftest.$ac_ext <<_ACEOF
2526 #line $LINENO "configure"
2527 /* confdefs.h. */
2528 _ACEOF
2529 cat confdefs.h >>conftest.$ac_ext
2530 cat >>conftest.$ac_ext <<_ACEOF
2531 /* end confdefs.h. */
2532 $ac_declaration
2533 int
2534 main ()
2535 {
2536 exit (42);
2537 ;
2538 return 0;
2539 }
2540 _ACEOF
2541 rm -f conftest.$ac_objext
2542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2543 (eval $ac_compile) 2>&5
2544 ac_status=$?
2545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546 (exit $ac_status); } &&
2547 { ac_try='test -s conftest.$ac_objext'
2548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2549 (eval $ac_try) 2>&5
2550 ac_status=$?
2551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552 (exit $ac_status); }; }; then
2553 break
2554 else
2555 echo "$as_me: failed program was:" >&5
2556 sed 's/^/| /' conftest.$ac_ext >&5
2557
2558 fi
2559 rm -f conftest.$ac_objext conftest.$ac_ext
2560 done
2561 rm -f conftest*
2562 if test -n "$ac_declaration"; then
2563 echo '#ifdef __cplusplus' >>confdefs.h
2564 echo $ac_declaration >>confdefs.h
2565 echo '#endif' >>confdefs.h
2566 fi
2567
2568 else
2569 echo "$as_me: failed program was:" >&5
2570 sed 's/^/| /' conftest.$ac_ext >&5
2571
2572 fi
2573 rm -f conftest.$ac_objext conftest.$ac_ext
2574 ac_ext=c
2575 ac_cpp='$CPP $CPPFLAGS'
2576 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2577 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2578 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2579 rm -f .deps 2>/dev/null
2580 mkdir .deps 2>/dev/null
2581 if test -d .deps; then
2582 DEPDIR=.deps
2583 else
2584 # MS-DOS does not allow filenames that begin with a dot.
2585 DEPDIR=_deps
2586 fi
2587 rmdir .deps 2>/dev/null
2588
2589
2590 ac_config_commands="$ac_config_commands depfiles"
2591
2592
2593 am_make=${MAKE-make}
2594 cat > confinc << 'END'
2595 doit:
2596 @echo done
2597 END
2598 # If we don't find an include directive, just comment out the code.
2599 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2600 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2601 am__include="#"
2602 am__quote=
2603 _am_result=none
2604 # First try GNU make style include.
2605 echo "include confinc" > confmf
2606 # We grep out `Entering directory' and `Leaving directory'
2607 # messages which can occur if `w' ends up in MAKEFLAGS.
2608 # In particular we don't look at `^make:' because GNU make might
2609 # be invoked under some other name (usually "gmake"), in which
2610 # case it prints its new name instead of `make'.
2611 if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2612 am__include=include
2613 am__quote=
2614 _am_result=GNU
2615 fi
2616 # Now try BSD make style include.
2617 if test "$am__include" = "#"; then
2618 echo '.include "confinc"' > confmf
2619 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2620 am__include=.include
2621 am__quote="\""
2622 _am_result=BSD
2623 fi
2624 fi
2625
2626
2627 echo "$as_me:$LINENO: result: $_am_result" >&5
2628 echo "${ECHO_T}$_am_result" >&6
2629 rm -f confinc confmf
2630
2631 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2632 if test "${enable_dependency_tracking+set}" = set; then
2633 enableval="$enable_dependency_tracking"
2634
2635 fi;
2636 if test "x$enable_dependency_tracking" != xno; then
2637 am_depcomp="$ac_aux_dir/depcomp"
2638 AMDEPBACKSLASH='\'
2639 fi
2640
2641
2642 if test "x$enable_dependency_tracking" != xno; then
2643 AMDEP_TRUE=
2644 AMDEP_FALSE='#'
2645 else
2646 AMDEP_TRUE='#'
2647 AMDEP_FALSE=
2648 fi
2649
2650
2651
2652
2653 depcc="$CC" am_compiler_list=
2654
2655 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2656 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2657 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2658 echo $ECHO_N "(cached) $ECHO_C" >&6
2659 else
2660 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2661 # We make a subdir and do the tests there. Otherwise we can end up
2662 # making bogus files that we don't know about and never remove. For
2663 # instance it was reported that on HP-UX the gcc test will end up
2664 # making a dummy file named `D' -- because `-MD' means `put the output
2665 # in D'.
2666 mkdir conftest.dir
2667 # Copy depcomp to subdir because otherwise we won't find it if we're
2668 # using a relative directory.
2669 cp "$am_depcomp" conftest.dir
2670 cd conftest.dir
2671
2672 am_cv_CC_dependencies_compiler_type=none
2673 if test "$am_compiler_list" = ""; then
2674 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2675 fi
2676 for depmode in $am_compiler_list; do
2677 # We need to recreate these files for each test, as the compiler may
2678 # overwrite some of them when testing with obscure command lines.
2679 # This happens at least with the AIX C compiler.
2680 echo '#include "conftest.h"' > conftest.c
2681 echo 'int i;' > conftest.h
2682 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2683
2684 case $depmode in
2685 nosideeffect)
2686 # after this tag, mechanisms are not by side-effect, so they'll
2687 # only be used when explicitly requested
2688 if test "x$enable_dependency_tracking" = xyes; then
2689 continue
2690 else
2691 break
2692 fi
2693 ;;
2694 none) break ;;
2695 esac
2696 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2697 # mode. It turns out that the SunPro C++ compiler does not properly
2698 # handle `-M -o', and we need to detect this.
2699 if depmode=$depmode \
2700 source=conftest.c object=conftest.o \
2701 depfile=conftest.Po tmpdepfile=conftest.TPo \
2702 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2703 grep conftest.h conftest.Po > /dev/null 2>&1 &&
2704 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2705 am_cv_CC_dependencies_compiler_type=$depmode
2706 break
2707 fi
2708 done
2709
2710 cd ..
2711 rm -rf conftest.dir
2712 else
2713 am_cv_CC_dependencies_compiler_type=none
2714 fi
2715
2716 fi
2717 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2718 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2719 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2720
2721
2722 ac_ext=cc
2723 ac_cpp='$CXXCPP $CPPFLAGS'
2724 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2725 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2726 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2727 if test -n "$ac_tool_prefix"; then
2728 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2729 do
2730 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2731 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2732 echo "$as_me:$LINENO: checking for $ac_word" >&5
2733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2734 if test "${ac_cv_prog_CXX+set}" = set; then
2735 echo $ECHO_N "(cached) $ECHO_C" >&6
2736 else
2737 if test -n "$CXX"; then
2738 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2739 else
2740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2741 for as_dir in $PATH
2742 do
2743 IFS=$as_save_IFS
2744 test -z "$as_dir" && as_dir=.
2745 for ac_exec_ext in '' $ac_executable_extensions; do
2746 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2747 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2749 break 2
2750 fi
2751 done
2752 done
2753
2754 fi
2755 fi
2756 CXX=$ac_cv_prog_CXX
2757 if test -n "$CXX"; then
2758 echo "$as_me:$LINENO: result: $CXX" >&5
2759 echo "${ECHO_T}$CXX" >&6
2760 else
2761 echo "$as_me:$LINENO: result: no" >&5
2762 echo "${ECHO_T}no" >&6
2763 fi
2764
2765 test -n "$CXX" && break
2766 done
2767 fi
2768 if test -z "$CXX"; then
2769 ac_ct_CXX=$CXX
2770 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2771 do
2772 # Extract the first word of "$ac_prog", so it can be a program name with args.
2773 set dummy $ac_prog; ac_word=$2
2774 echo "$as_me:$LINENO: checking for $ac_word" >&5
2775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2776 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2777 echo $ECHO_N "(cached) $ECHO_C" >&6
2778 else
2779 if test -n "$ac_ct_CXX"; then
2780 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2781 else
2782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2783 for as_dir in $PATH
2784 do
2785 IFS=$as_save_IFS
2786 test -z "$as_dir" && as_dir=.
2787 for ac_exec_ext in '' $ac_executable_extensions; do
2788 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2789 ac_cv_prog_ac_ct_CXX="$ac_prog"
2790 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2791 break 2
2792 fi
2793 done
2794 done
2795
2796 fi
2797 fi
2798 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2799 if test -n "$ac_ct_CXX"; then
2800 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2801 echo "${ECHO_T}$ac_ct_CXX" >&6
2802 else
2803 echo "$as_me:$LINENO: result: no" >&5
2804 echo "${ECHO_T}no" >&6
2805 fi
2806
2807 test -n "$ac_ct_CXX" && break
2808 done
2809 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2810
2811 CXX=$ac_ct_CXX
2812 fi
2813
2814
2815 # Provide some information about the compiler.
2816 echo "$as_me:$LINENO:" \
2817 "checking for C++ compiler version" >&5
2818 ac_compiler=`set X $ac_compile; echo $2`
2819 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2820 (eval $ac_compiler --version </dev/null >&5) 2>&5
2821 ac_status=$?
2822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823 (exit $ac_status); }
2824 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2825 (eval $ac_compiler -v </dev/null >&5) 2>&5
2826 ac_status=$?
2827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2828 (exit $ac_status); }
2829 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2830 (eval $ac_compiler -V </dev/null >&5) 2>&5
2831 ac_status=$?
2832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833 (exit $ac_status); }
2834
2835 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2836 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2837 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2838 echo $ECHO_N "(cached) $ECHO_C" >&6
2839 else
2840 cat >conftest.$ac_ext <<_ACEOF
2841 #line $LINENO "configure"
2842 /* confdefs.h. */
2843 _ACEOF
2844 cat confdefs.h >>conftest.$ac_ext
2845 cat >>conftest.$ac_ext <<_ACEOF
2846 /* end confdefs.h. */
2847
2848 int
2849 main ()
2850 {
2851 #ifndef __GNUC__
2852 choke me
2853 #endif
2854
2855 ;
2856 return 0;
2857 }
2858 _ACEOF
2859 rm -f conftest.$ac_objext
2860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2861 (eval $ac_compile) 2>&5
2862 ac_status=$?
2863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2864 (exit $ac_status); } &&
2865 { ac_try='test -s conftest.$ac_objext'
2866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2867 (eval $ac_try) 2>&5
2868 ac_status=$?
2869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2870 (exit $ac_status); }; }; then
2871 ac_compiler_gnu=yes
2872 else
2873 echo "$as_me: failed program was:" >&5
2874 sed 's/^/| /' conftest.$ac_ext >&5
2875
2876 ac_compiler_gnu=no
2877 fi
2878 rm -f conftest.$ac_objext conftest.$ac_ext
2879 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2880
2881 fi
2882 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2883 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2884 GXX=`test $ac_compiler_gnu = yes && echo yes`
2885 ac_test_CXXFLAGS=${CXXFLAGS+set}
2886 ac_save_CXXFLAGS=$CXXFLAGS
2887 CXXFLAGS="-g"
2888 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2889 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2890 if test "${ac_cv_prog_cxx_g+set}" = set; then
2891 echo $ECHO_N "(cached) $ECHO_C" >&6
2892 else
2893 cat >conftest.$ac_ext <<_ACEOF
2894 #line $LINENO "configure"
2895 /* confdefs.h. */
2896 _ACEOF
2897 cat confdefs.h >>conftest.$ac_ext
2898 cat >>conftest.$ac_ext <<_ACEOF
2899 /* end confdefs.h. */
2900
2901 int
2902 main ()
2903 {
2904
2905 ;
2906 return 0;
2907 }
2908 _ACEOF
2909 rm -f conftest.$ac_objext
2910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2911 (eval $ac_compile) 2>&5
2912 ac_status=$?
2913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914 (exit $ac_status); } &&
2915 { ac_try='test -s conftest.$ac_objext'
2916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2917 (eval $ac_try) 2>&5
2918 ac_status=$?
2919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920 (exit $ac_status); }; }; then
2921 ac_cv_prog_cxx_g=yes
2922 else
2923 echo "$as_me: failed program was:" >&5
2924 sed 's/^/| /' conftest.$ac_ext >&5
2925
2926 ac_cv_prog_cxx_g=no
2927 fi
2928 rm -f conftest.$ac_objext conftest.$ac_ext
2929 fi
2930 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2931 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2932 if test "$ac_test_CXXFLAGS" = set; then
2933 CXXFLAGS=$ac_save_CXXFLAGS
2934 elif test $ac_cv_prog_cxx_g = yes; then
2935 if test "$GXX" = yes; then
2936 CXXFLAGS="-g -O2"
2937 else
2938 CXXFLAGS="-g"
2939 fi
2940 else
2941 if test "$GXX" = yes; then
2942 CXXFLAGS="-O2"
2943 else
2944 CXXFLAGS=
2945 fi
2946 fi
2947 for ac_declaration in \
2948 ''\
2949 '#include <stdlib.h>' \
2950 'extern "C" void std::exit (int) throw (); using std::exit;' \
2951 'extern "C" void std::exit (int); using std::exit;' \
2952 'extern "C" void exit (int) throw ();' \
2953 'extern "C" void exit (int);' \
2954 'void exit (int);'
2955 do
2956 cat >conftest.$ac_ext <<_ACEOF
2957 #line $LINENO "configure"
2958 /* confdefs.h. */
2959 _ACEOF
2960 cat confdefs.h >>conftest.$ac_ext
2961 cat >>conftest.$ac_ext <<_ACEOF
2962 /* end confdefs.h. */
2963 #include <stdlib.h>
2964 $ac_declaration
2965 int
2966 main ()
2967 {
2968 exit (42);
2969 ;
2970 return 0;
2971 }
2972 _ACEOF
2973 rm -f conftest.$ac_objext
2974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2975 (eval $ac_compile) 2>&5
2976 ac_status=$?
2977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978 (exit $ac_status); } &&
2979 { ac_try='test -s conftest.$ac_objext'
2980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2981 (eval $ac_try) 2>&5
2982 ac_status=$?
2983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2984 (exit $ac_status); }; }; then
2985 :
2986 else
2987 echo "$as_me: failed program was:" >&5
2988 sed 's/^/| /' conftest.$ac_ext >&5
2989
2990 continue
2991 fi
2992 rm -f conftest.$ac_objext conftest.$ac_ext
2993 cat >conftest.$ac_ext <<_ACEOF
2994 #line $LINENO "configure"
2995 /* confdefs.h. */
2996 _ACEOF
2997 cat confdefs.h >>conftest.$ac_ext
2998 cat >>conftest.$ac_ext <<_ACEOF
2999 /* end confdefs.h. */
3000 $ac_declaration
3001 int
3002 main ()
3003 {
3004 exit (42);
3005 ;
3006 return 0;
3007 }
3008 _ACEOF
3009 rm -f conftest.$ac_objext
3010 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3011 (eval $ac_compile) 2>&5
3012 ac_status=$?
3013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3014 (exit $ac_status); } &&
3015 { ac_try='test -s conftest.$ac_objext'
3016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3017 (eval $ac_try) 2>&5
3018 ac_status=$?
3019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3020 (exit $ac_status); }; }; then
3021 break
3022 else
3023 echo "$as_me: failed program was:" >&5
3024 sed 's/^/| /' conftest.$ac_ext >&5
3025
3026 fi
3027 rm -f conftest.$ac_objext conftest.$ac_ext
3028 done
3029 rm -f conftest*
3030 if test -n "$ac_declaration"; then
3031 echo '#ifdef __cplusplus' >>confdefs.h
3032 echo $ac_declaration >>confdefs.h
3033 echo '#endif' >>confdefs.h
3034 fi
3035
3036 ac_ext=c
3037 ac_cpp='$CPP $CPPFLAGS'
3038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3041
3042 depcc="$CXX" am_compiler_list=
3043
3044 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3045 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3046 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3047 echo $ECHO_N "(cached) $ECHO_C" >&6
3048 else
3049 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3050 # We make a subdir and do the tests there. Otherwise we can end up
3051 # making bogus files that we don't know about and never remove. For
3052 # instance it was reported that on HP-UX the gcc test will end up
3053 # making a dummy file named `D' -- because `-MD' means `put the output
3054 # in D'.
3055 mkdir conftest.dir
3056 # Copy depcomp to subdir because otherwise we won't find it if we're
3057 # using a relative directory.
3058 cp "$am_depcomp" conftest.dir
3059 cd conftest.dir
3060
3061 am_cv_CXX_dependencies_compiler_type=none
3062 if test "$am_compiler_list" = ""; then
3063 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3064 fi
3065 for depmode in $am_compiler_list; do
3066 # We need to recreate these files for each test, as the compiler may
3067 # overwrite some of them when testing with obscure command lines.
3068 # This happens at least with the AIX C compiler.
3069 echo '#include "conftest.h"' > conftest.c
3070 echo 'int i;' > conftest.h
3071 echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
3072
3073 case $depmode in
3074 nosideeffect)
3075 # after this tag, mechanisms are not by side-effect, so they'll
3076 # only be used when explicitly requested
3077 if test "x$enable_dependency_tracking" = xyes; then
3078 continue
3079 else
3080 break
3081 fi
3082 ;;
3083 none) break ;;
3084 esac
3085 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3086 # mode. It turns out that the SunPro C++ compiler does not properly
3087 # handle `-M -o', and we need to detect this.
3088 if depmode=$depmode \
3089 source=conftest.c object=conftest.o \
3090 depfile=conftest.Po tmpdepfile=conftest.TPo \
3091 $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
3092 grep conftest.h conftest.Po > /dev/null 2>&1 &&
3093 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3094 am_cv_CXX_dependencies_compiler_type=$depmode
3095 break
3096 fi
3097 done
3098
3099 cd ..
3100 rm -rf conftest.dir
3101 else
3102 am_cv_CXX_dependencies_compiler_type=none
3103 fi
3104
3105 fi
3106 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3107 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3108 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3109
3110
3111 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3112 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3113 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3114 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3115 echo $ECHO_N "(cached) $ECHO_C" >&6
3116 else
3117 cat >conftest.make <<\_ACEOF
3118 all:
3119 @echo 'ac_maketemp="$(MAKE)"'
3120 _ACEOF
3121 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3122 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3123 if test -n "$ac_maketemp"; then
3124 eval ac_cv_prog_make_${ac_make}_set=yes
3125 else
3126 eval ac_cv_prog_make_${ac_make}_set=no
3127 fi
3128 rm -f conftest.make
3129 fi
3130 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3131 echo "$as_me:$LINENO: result: yes" >&5
3132 echo "${ECHO_T}yes" >&6
3133 SET_MAKE=
3134 else
3135 echo "$as_me:$LINENO: result: no" >&5
3136 echo "${ECHO_T}no" >&6
3137 SET_MAKE="MAKE=${MAKE-make}"
3138 fi
3139
3140
3141 cat >>confdefs.h <<_ACEOF
3142 #define DEBUG 1
3143 _ACEOF
3144
3145
3146
3147
3148 # Check whether --with-peak-prefix or --without-peak-prefix was given.
3149 if test "${with_peak_prefix+set}" = set; then
3150 withval="$with_peak_prefix"
3151 peak_config_prefix="$withval"
3152 else
3153 peak_config_prefix=""
3154 fi;
3155
3156 # Check whether --with-peak-exec-prefix or --without-peak-exec-prefix was given.
3157 if test "${with_peak_exec_prefix+set}" = set; then
3158 withval="$with_peak_exec_prefix"
3159 peak_config_exec_prefix="$withval"
3160 else
3161 peak_config_exec_prefix=""
3162 fi;
3163
3164 if test x$peak_config_exec_prefix != x ; then
3165 peak_config_args="$peak_config_args --exec-prefix=$peak_config_exec_prefix"
3166 if test x${PEAK_CONFIG+set} != xset ; then
3167 PEAK_CONFIG=$peak_config_exec_prefix/bin/peak-config
3168 fi
3169 fi
3170 if test x$peak_config_prefix != x ; then
3171 peak_config_args="$peak_config_args --prefix=$peak_config_prefix"
3172 if test x${PEAK_CONFIG+set} != xset ; then
3173 PEAK_CONFIG=$peak_config_prefix/bin/peak-config
3174 fi
3175 fi
3176
3177 # Extract the first word of "peak-config", so it can be a program name with args.
3178 set dummy peak-config; ac_word=$2
3179 echo "$as_me:$LINENO: checking for $ac_word" >&5
3180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3181 if test "${ac_cv_path_PEAK_CONFIG+set}" = set; then
3182 echo $ECHO_N "(cached) $ECHO_C" >&6
3183 else
3184 case $PEAK_CONFIG in
3185 [\\/]* | ?:[\\/]*)
3186 ac_cv_path_PEAK_CONFIG="$PEAK_CONFIG" # Let the user override the test with a path.
3187 ;;
3188 *)
3189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3190 for as_dir in $PATH
3191 do
3192 IFS=$as_save_IFS
3193 test -z "$as_dir" && as_dir=.
3194 for ac_exec_ext in '' $ac_executable_extensions; do
3195 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3196 ac_cv_path_PEAK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3198 break 2
3199 fi
3200 done
3201 done
3202
3203 test -z "$ac_cv_path_PEAK_CONFIG" && ac_cv_path_PEAK_CONFIG="no"
3204 ;;
3205 esac
3206 fi
3207 PEAK_CONFIG=$ac_cv_path_PEAK_CONFIG
3208
3209 if test -n "$PEAK_CONFIG"; then
3210 echo "$as_me:$LINENO: result: $PEAK_CONFIG" >&5
3211 echo "${ECHO_T}$PEAK_CONFIG" >&6
3212 else
3213 echo "$as_me:$LINENO: result: no" >&5
3214 echo "${ECHO_T}no" >&6
3215 fi
3216
3217 echo "$as_me:$LINENO: checking for peak - version >= 0.1.0" >&5
3218 echo $ECHO_N "checking for peak - version >= 0.1.0... $ECHO_C" >&6
3219
3220 no_peak=""
3221 if test "$PEAK_CONFIG" = "no" ; then
3222 no_peak=yes
3223 else
3224 PEAK_CFLAGS="`$PEAK_CONFIG $peak_config_args --cflags`"
3225 PEAK_LIBS="`$PEAK_CONFIG $peak_config_args --libs`"
3226
3227 peak_config_major_version=`$PEAK_CONFIG $peak_config_args \
3228 --version | sed 's/[^0-9]*\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
3229 peak_config_minor_version=`$PEAK_CONFIG $peak_config_args \
3230 --version | sed 's/[^0-9]*\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
3231 peak_config_micro_version=`$PEAK_CONFIG $peak_config_args \
3232 --version | sed 's/[^0-9]*\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
3233 peak_wanted_major_version="0"
3234 peak_wanted_minor_version="1"
3235 peak_wanted_micro_version="0"
3236
3237 # Compare wanted version to what config script returned.
3238 # If I knew what library was being run, i'd probably also compile
3239 # a test program at this point (which also extracted and tested
3240 # the version in some library-specific way)
3241 if test "$peak_config_major_version" -lt \
3242 "$peak_wanted_major_version" \
3243 -o \( "$peak_config_major_version" -eq \
3244 "$peak_wanted_major_version" \
3245 -a "$peak_config_minor_version" -lt \
3246 "$peak_wanted_minor_version" \) \
3247 -o \( "$peak_config_major_version" -eq \
3248 "$peak_wanted_major_version" \
3249 -a "$peak_config_minor_version" -eq \
3250 "$peak_wanted_minor_version" \
3251 -a "$peak_config_micro_version" -lt \
3252 "$peak_wanted_micro_version" \) ; then
3253 # older version found
3254 no_peak=yes
3255 echo -n "*** An old version of peak "
3256 echo -n "($peak_config_major_version"
3257 echo -n ".$peak_config_minor_version"
3258 echo ".$peak_config_micro_version) was found."
3259 echo -n "*** You need a version of peak newer than "
3260 echo -n "$peak_wanted_major_version"
3261 echo -n ".$peak_wanted_minor_version"
3262 echo ".$peak_wanted_micro_version."
3263 echo "***"
3264 echo "*** If you have already installed a sufficiently new version, this error"
3265 echo "*** probably means that the wrong copy of the peak-config shell script is"
3266 echo "*** being found. The easiest way to fix this is to remove the old version"
3267 echo "*** of peak, but you can also set the PEAK_CONFIG environment to point to the"
3268 echo "*** correct copy of peak-config. (In this case, you will have to"
3269 echo "*** modify your LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf"
3270 echo "*** so that the correct libraries are found at run-time)"
3271 fi
3272
3273 fi
3274 if test "x$no_peak" = x ; then
3275 echo "$as_me:$LINENO: result: yes" >&5
3276 echo "${ECHO_T}yes" >&6
3277 :
3278 else
3279 echo "$as_me:$LINENO: result: no" >&5
3280 echo "${ECHO_T}no" >&6
3281 if test "$PEAK_CONFIG" = "no" ; then
3282 echo "*** The peak-config script installed by peak could not be found"
3283 echo "*** If peak was installed in PREFIX, make sure PREFIX/bin is in"
3284 echo "*** your path, or set the PEAK_CONFIG environment variable to the"
3285 echo "*** full path to peak-config."
3286 fi
3287 PEAK_CFLAGS=""
3288 PEAK_LIBS=""
3289 { { echo "$as_me:$LINENO: error: required PEAK Library (libpeak) not found" >&5
3290 echo "$as_me: error: required PEAK Library (libpeak) not found" >&2;}
3291 { (exit 1); exit 1; }; }
3292 fi
3293
3294
3295
3296
3297
3298
3299 echo "$as_me:$LINENO: checking for fgrep" >&5
3300 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6
3301 if test "${ac_cv_prog_fgrep+set}" = set; then
3302 echo $ECHO_N "(cached) $ECHO_C" >&6
3303 else
3304 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1
3305 then ac_cv_prog_fgrep='grep -F'
3306 else ac_cv_prog_fgrep='fgrep'
3307 fi
3308 fi
3309 echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5
3310 echo "${ECHO_T}$ac_cv_prog_fgrep" >&6
3311 FGREP=$ac_cv_prog_fgrep
3312
3313
3314
3315 for arg in $PEAK_CFLAGS
3316 do
3317 if { cat <<EOF
3318 $CXXFLAGS x
3319 EOF
3320 } | $FGREP -v -e " $arg " > /dev/null
3321 then
3322 CXXFLAGS="$CXXFLAGS $arg"
3323 fi
3324 done
3325
3326
3327 for arg in $PEAK_CFLAGS
3328 do
3329 if { cat <<EOF
3330 $CFLAGS x
3331 EOF
3332 } | $FGREP -v -e " $arg " > /dev/null
3333 then
3334 CFLAGS="$CFLAGS $arg"
3335 fi
3336 done
3337
3338
3339 xt_compare="$LIBS"
3340 xt_filtered=""
3341 for arg in $PEAK_LIBS
3342 do
3343 if { cat <<EOF
3344 $xt_compare x
3345 EOF
3346 } | $FGREP -v -e " $arg " > /dev/null
3347 then
3348 xt_compare="$arg $xt_compare"
3349 xt_filtered="$xt_filtered $arg"
3350 fi
3351 done
3352 LIBS="$xt_filtered $LIBS"
3353
3354
3355
3356
3357 # Check whether --with-xml2-prefix or --without-xml2-prefix was given.
3358 if test "${with_xml2_prefix+set}" = set; then
3359 withval="$with_xml2_prefix"
3360 xml2_config_prefix="$withval"
3361 else
3362 xml2_config_prefix=""
3363 fi;
3364
3365 # Check whether --with-xml2-exec-prefix or --without-xml2-exec-prefix was given.
3366 if test "${with_xml2_exec_prefix+set}" = set; then
3367 withval="$with_xml2_exec_prefix"
3368 xml2_config_exec_prefix="$withval"
3369 else
3370 xml2_config_exec_prefix=""
3371 fi;
3372
3373 if test x$xml2_config_exec_prefix != x ; then
3374 xml2_config_args="$xml2_config_args --exec-prefix=$xml2_config_exec_prefix"
3375 if test x${XML2_CONFIG+set} != xset ; then
3376 XML2_CONFIG=$xml2_config_exec_prefix/bin/xml2-config
3377 fi
3378 fi
3379 if test x$xml2_config_prefix != x ; then
3380 xml2_config_args="$xml2_config_args --prefix=$xml2_config_prefix"
3381 if test x${XML2_CONFIG+set} != xset ; then
3382 XML2_CONFIG=$xml2_config_prefix/bin/xml2-config
3383 fi
3384 fi
3385
3386 # Extract the first word of "xml2-config", so it can be a program name with args.
3387 set dummy xml2-config; ac_word=$2
3388 echo "$as_me:$LINENO: checking for $ac_word" >&5
3389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3390 if test "${ac_cv_path_XML2_CONFIG+set}" = set; then
3391 echo $ECHO_N "(cached) $ECHO_C" >&6
3392 else
3393 case $XML2_CONFIG in
3394 [\\/]* | ?:[\\/]*)
3395 ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path.
3396 ;;
3397 *)
3398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3399 for as_dir in $PATH
3400 do
3401 IFS=$as_save_IFS
3402 test -z "$as_dir" && as_dir=.
3403 for ac_exec_ext in '' $ac_executable_extensions; do
3404 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3405 ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3406 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3407 break 2
3408 fi
3409 done
3410 done
3411
3412 test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG="no"
3413 ;;
3414 esac
3415 fi
3416 XML2_CONFIG=$ac_cv_path_XML2_CONFIG
3417
3418 if test -n "$XML2_CONFIG"; then
3419 echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
3420 echo "${ECHO_T}$XML2_CONFIG" >&6
3421 else
3422 echo "$as_me:$LINENO: result: no" >&5
3423 echo "${ECHO_T}no" >&6
3424 fi
3425
3426 echo "$as_me:$LINENO: checking for xml2 - version >= 2.0.0" >&5
3427 echo $ECHO_N "checking for xml2 - version >= 2.0.0... $ECHO_C" >&6
3428
3429 no_xml2=""
3430 if test "$XML2_CONFIG" = "no" ; then
3431 no_xml2=yes
3432 else
3433 XML2_CFLAGS="`$XML2_CONFIG $xml2_config_args --cflags`"
3434 XML2_LIBS="`$XML2_CONFIG $xml2_config_args --libs`"
3435
3436 xml2_config_major_version=`$XML2_CONFIG $xml2_config_args \
3437 --version | sed 's/[^0-9]*\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
3438 xml2_config_minor_version=`$XML2_CONFIG $xml2_config_args \
3439 --version | sed 's/[^0-9]*\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
3440 xml2_config_micro_version=`$XML2_CONFIG $xml2_config_args \
3441 --version | sed 's/[^0-9]*\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
3442 xml2_wanted_major_version="2"
3443 xml2_wanted_minor_version="0"
3444 xml2_wanted_micro_version="0"
3445
3446 # Compare wanted version to what config script returned.
3447 # If I knew what library was being run, i'd probably also compile
3448 # a test program at this point (which also extracted and tested
3449 # the version in some library-specific way)
3450 if test "$xml2_config_major_version" -lt \
3451 "$xml2_wanted_major_version" \
3452 -o \( "$xml2_config_major_version" -eq \
3453 "$xml2_wanted_major_version" \
3454 -a "$xml2_config_minor_version" -lt \
3455 "$xml2_wanted_minor_version" \) \
3456 -o \( "$xml2_config_major_version" -eq \
3457 "$xml2_wanted_major_version" \
3458 -a "$xml2_config_minor_version" -eq \
3459 "$xml2_wanted_minor_version" \
3460 -a "$xml2_config_micro_version" -lt \
3461 "$xml2_wanted_micro_version" \) ; then
3462 # older version found
3463 no_xml2=yes
3464 echo -n "*** An old version of xml2 "
3465 echo -n "($xml2_config_major_version"
3466 echo -n ".$xml2_config_minor_version"
3467 echo ".$xml2_config_micro_version) was found."
3468 echo -n "*** You need a version of xml2 newer than "
3469 echo -n "$xml2_wanted_major_version"
3470 echo -n ".$xml2_wanted_minor_version"
3471 echo ".$xml2_wanted_micro_version."
3472 echo "***"
3473 echo "*** If you have already installed a sufficiently new version, this error"
3474 echo "*** probably means that the wrong copy of the xml2-config shell script is"
3475 echo "*** being found. The easiest way to fix this is to remove the old version"
3476 echo "*** of xml2, but you can also set the XML2_CONFIG environment to point to the"
3477 echo "*** correct copy of xml2-config. (In this case, you will have to"
3478 echo "*** modify your LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf"
3479 echo "*** so that the correct libraries are found at run-time)"
3480 fi
3481
3482 fi
3483 if test "x$no_xml2" = x ; then
3484 echo "$as_me:$LINENO: result: yes" >&5
3485 echo "${ECHO_T}yes" >&6
3486 :
3487 else
3488 echo "$as_me:$LINENO: result: no" >&5
3489 echo "${ECHO_T}no" >&6
3490 if test "$XML2_CONFIG" = "no" ; then
3491 echo "*** The xml2-config script installed by xml2 could not be found"
3492 echo "*** If xml2 was installed in PREFIX, make sure PREFIX/bin is in"
3493 echo "*** your path, or set the XML2_CONFIG environment variable to the"
3494 echo "*** full path to xml2-config."
3495 fi
3496 XML2_CFLAGS=""
3497 XML2_LIBS=""
3498 { { echo "$as_me:$LINENO: error: required XML Library (libxml2) not found - See http://xmlsoft.org" >&5
3499 echo "$as_me: error: required XML Library (libxml2) not found - See http://xmlsoft.org" >&2;}
3500 { (exit 1); exit 1; }; }
3501 fi
3502
3503
3504
3505
3506
3507
3508
3509 for arg in $XML2_CFLAGS
3510 do
3511 if { cat <<EOF
3512 $CXXFLAGS x
3513 EOF
3514 } | $FGREP -v -e " $arg " > /dev/null
3515 then
3516 CXXFLAGS="$CXXFLAGS $arg"
3517 fi
3518 done
3519
3520
3521 xt_compare="$LIBS"
3522 xt_filtered=""
3523 for arg in $XML2_LIBS
3524 do
3525 if { cat <<EOF
3526 $xt_compare x
3527 EOF
3528 } | $FGREP -v -e " $arg " > /dev/null
3529 then
3530 xt_compare="$arg $xt_compare"
3531 xt_filtered="$xt_filtered $arg"
3532 fi
3533 done
3534 LIBS="$xt_filtered $LIBS"
3535
3536
3537
3538 for arg in -I../../libopas
3539 do
3540 if { cat <<EOF
3541 $CXXFLAGS x
3542 EOF
3543 } | $FGREP -v -e " $arg " > /dev/null
3544 then
3545 CXXFLAGS="$CXXFLAGS $arg"
3546 fi
3547 done
3548
3549
3550 for arg in -I../../libopas
3551 do
3552 if { cat <<EOF
3553 $CFLAGS x
3554 EOF
3555 } | $FGREP -v -e " $arg " > /dev/null
3556 then
3557 CFLAGS="$CFLAGS $arg"
3558 fi
3559 done
3560
3561
3562
3563 for arg in -I../../ipcache
3564 do
3565 if { cat <<EOF
3566 $CXXFLAGS x
3567 EOF
3568 } | $FGREP -v -e " $arg " > /dev/null
3569 then
3570 CXXFLAGS="$CXXFLAGS $arg"
3571 fi
3572 done
3573
3574
3575 for arg in -I../../ipcache
3576 do
3577 if { cat <<EOF
3578 $CFLAGS x
3579 EOF
3580 } | $FGREP -v -e " $arg " > /dev/null
3581 then
3582 CFLAGS="$CFLAGS $arg"
3583 fi
3584 done
3585
3586
3587
3588 ac_ext=c
3589 ac_cpp='$CPP $CPPFLAGS'
3590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3592 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3593 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3594 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3595 # On Suns, sometimes $CPP names a directory.
3596 if test -n "$CPP" && test -d "$CPP"; then
3597 CPP=
3598 fi
3599 if test -z "$CPP"; then
3600 if test "${ac_cv_prog_CPP+set}" = set; then
3601 echo $ECHO_N "(cached) $ECHO_C" >&6
3602 else
3603 # Double quotes because CPP needs to be expanded
3604 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3605 do
3606 ac_preproc_ok=false
3607 for ac_c_preproc_warn_flag in '' yes
3608 do
3609 # Use a header file that comes with gcc, so configuring glibc
3610 # with a fresh cross-compiler works.
3611 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3612 # <limits.h> exists even on freestanding compilers.
3613 # On the NeXT, cc -E runs the code through the compiler's parser,
3614 # not just through cpp. "Syntax error" is here to catch this case.
3615 cat >conftest.$ac_ext <<_ACEOF
3616 #line $LINENO "configure"
3617 /* confdefs.h. */
3618 _ACEOF
3619 cat confdefs.h >>conftest.$ac_ext
3620 cat >>conftest.$ac_ext <<_ACEOF
3621 /* end confdefs.h. */
3622 #ifdef __STDC__
3623 # include <limits.h>
3624 #else
3625 # include <assert.h>
3626 #endif
3627 Syntax error
3628 _ACEOF
3629 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3630 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3631 ac_status=$?
3632 grep -v '^ *+' conftest.er1 >conftest.err
3633 rm -f conftest.er1
3634 cat conftest.err >&5
3635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3636 (exit $ac_status); } >/dev/null; then
3637 if test -s conftest.err; then
3638 ac_cpp_err=$ac_c_preproc_warn_flag
3639 else
3640 ac_cpp_err=
3641 fi
3642 else
3643 ac_cpp_err=yes
3644 fi
3645 if test -z "$ac_cpp_err"; then
3646 :
3647 else
3648 echo "$as_me: failed program was:" >&5
3649 sed 's/^/| /' conftest.$ac_ext >&5
3650
3651 # Broken: fails on valid input.
3652 continue
3653 fi
3654 rm -f conftest.err conftest.$ac_ext
3655
3656 # OK, works on sane cases. Now check whether non-existent headers
3657 # can be detected and how.
3658 cat >conftest.$ac_ext <<_ACEOF
3659 #line $LINENO "configure"
3660 /* confdefs.h. */
3661 _ACEOF
3662 cat confdefs.h >>conftest.$ac_ext
3663 cat >>conftest.$ac_ext <<_ACEOF
3664 /* end confdefs.h. */
3665 #include <ac_nonexistent.h>
3666 _ACEOF
3667 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3668 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3669 ac_status=$?
3670 grep -v '^ *+' conftest.er1 >conftest.err
3671 rm -f conftest.er1
3672 cat conftest.err >&5
3673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674 (exit $ac_status); } >/dev/null; then
3675 if test -s conftest.err; then
3676 ac_cpp_err=$ac_c_preproc_warn_flag
3677 else
3678 ac_cpp_err=
3679 fi
3680 else
3681 ac_cpp_err=yes
3682 fi
3683 if test -z "$ac_cpp_err"; then
3684 # Broken: success on invalid input.
3685 continue
3686 else
3687 echo "$as_me: failed program was:" >&5
3688 sed 's/^/| /' conftest.$ac_ext >&5
3689
3690 # Passes both tests.
3691 ac_preproc_ok=:
3692 break
3693 fi
3694 rm -f conftest.err conftest.$ac_ext
3695
3696 done
3697 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3698 rm -f conftest.err conftest.$ac_ext
3699 if $ac_preproc_ok; then
3700 break
3701 fi
3702
3703 done
3704 ac_cv_prog_CPP=$CPP
3705
3706 fi
3707 CPP=$ac_cv_prog_CPP
3708 else
3709 ac_cv_prog_CPP=$CPP
3710 fi
3711 echo "$as_me:$LINENO: result: $CPP" >&5
3712 echo "${ECHO_T}$CPP" >&6
3713 ac_preproc_ok=false
3714 for ac_c_preproc_warn_flag in '' yes
3715 do
3716 # Use a header file that comes with gcc, so configuring glibc
3717 # with a fresh cross-compiler works.
3718 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3719 # <limits.h> exists even on freestanding compilers.
3720 # On the NeXT, cc -E runs the code through the compiler's parser,
3721 # not just through cpp. "Syntax error" is here to catch this case.
3722 cat >conftest.$ac_ext <<_ACEOF
3723 #line $LINENO "configure"
3724 /* confdefs.h. */
3725 _ACEOF
3726 cat confdefs.h >>conftest.$ac_ext
3727 cat >>conftest.$ac_ext <<_ACEOF
3728 /* end confdefs.h. */
3729 #ifdef __STDC__
3730 # include <limits.h>
3731 #else
3732 # include <assert.h>
3733 #endif
3734 Syntax error
3735 _ACEOF
3736 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3737 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3738 ac_status=$?
3739 grep -v '^ *+' conftest.er1 >conftest.err
3740 rm -f conftest.er1
3741 cat conftest.err >&5
3742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3743 (exit $ac_status); } >/dev/null; then
3744 if test -s conftest.err; then
3745 ac_cpp_err=$ac_c_preproc_warn_flag
3746 else
3747 ac_cpp_err=
3748 fi
3749 else
3750 ac_cpp_err=yes
3751 fi
3752 if test -z "$ac_cpp_err"; then
3753 :
3754 else
3755 echo "$as_me: failed program was:" >&5
3756 sed 's/^/| /' conftest.$ac_ext >&5
3757
3758 # Broken: fails on valid input.
3759 continue
3760 fi
3761 rm -f conftest.err conftest.$ac_ext
3762
3763 # OK, works on sane cases. Now check whether non-existent headers
3764 # can be detected and how.
3765 cat >conftest.$ac_ext <<_ACEOF
3766 #line $LINENO "configure"
3767 /* confdefs.h. */
3768 _ACEOF
3769 cat confdefs.h >>conftest.$ac_ext
3770 cat >>conftest.$ac_ext <<_ACEOF
3771 /* end confdefs.h. */
3772 #include <ac_nonexistent.h>
3773 _ACEOF
3774 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3775 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3776 ac_status=$?
3777 grep -v '^ *+' conftest.er1 >conftest.err
3778 rm -f conftest.er1
3779 cat conftest.err >&5
3780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3781 (exit $ac_status); } >/dev/null; then
3782 if test -s conftest.err; then
3783 ac_cpp_err=$ac_c_preproc_warn_flag
3784 else
3785 ac_cpp_err=
3786 fi
3787 else
3788 ac_cpp_err=yes
3789 fi
3790 if test -z "$ac_cpp_err"; then
3791 # Broken: success on invalid input.
3792 continue
3793 else
3794 echo "$as_me: failed program was:" >&5
3795 sed 's/^/| /' conftest.$ac_ext >&5
3796
3797 # Passes both tests.
3798 ac_preproc_ok=:
3799 break
3800 fi
3801 rm -f conftest.err conftest.$ac_ext
3802
3803 done