1 | #! /bin/sh
|
---|
2 | # Guess values for system-dependent variables and create Makefiles.
|
---|
3 | # Generated by GNU Autoconf 2.57 for sparsehash 0.3.
|
---|
4 | #
|
---|
5 | # Report bugs to <opensource@google.com>.
|
---|
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='sparsehash'
|
---|
270 | PACKAGE_TARNAME='sparsehash'
|
---|
271 | PACKAGE_VERSION='0.3'
|
---|
272 | PACKAGE_STRING='sparsehash 0.3'
|
---|
273 | PACKAGE_BUGREPORT='opensource@google.com'
|
---|
274 |
|
---|
275 | ac_unique_file="README"
|
---|
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 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE EGREP CXXCPP 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_CPP_set=${CPP+set}
|
---|
771 | ac_env_CPP_value=$CPP
|
---|
772 | ac_cv_env_CPP_set=${CPP+set}
|
---|
773 | ac_cv_env_CPP_value=$CPP
|
---|
774 | ac_env_CXX_set=${CXX+set}
|
---|
775 | ac_env_CXX_value=$CXX
|
---|
776 | ac_cv_env_CXX_set=${CXX+set}
|
---|
777 | ac_cv_env_CXX_value=$CXX
|
---|
778 | ac_env_CXXFLAGS_set=${CXXFLAGS+set}
|
---|
779 | ac_env_CXXFLAGS_value=$CXXFLAGS
|
---|
780 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
|
---|
781 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS
|
---|
782 | ac_env_CXXCPP_set=${CXXCPP+set}
|
---|
783 | ac_env_CXXCPP_value=$CXXCPP
|
---|
784 | ac_cv_env_CXXCPP_set=${CXXCPP+set}
|
---|
785 | ac_cv_env_CXXCPP_value=$CXXCPP
|
---|
786 |
|
---|
787 | #
|
---|
788 | # Report the --help message.
|
---|
789 | #
|
---|
790 | if test "$ac_init_help" = "long"; then
|
---|
791 | # Omit some internal or obsolete options to make the list less imposing.
|
---|
792 | # This message is too long to be a string in the A/UX 3.1 sh.
|
---|
793 | cat <<_ACEOF
|
---|
794 | \`configure' configures sparsehash 0.3 to adapt to many kinds of systems.
|
---|
795 |
|
---|
796 | Usage: $0 [OPTION]... [VAR=VALUE]...
|
---|
797 |
|
---|
798 | To assign environment variables (e.g., CC, CFLAGS...), specify them as
|
---|
799 | VAR=VALUE. See below for descriptions of some of the useful variables.
|
---|
800 |
|
---|
801 | Defaults for the options are specified in brackets.
|
---|
802 |
|
---|
803 | Configuration:
|
---|
804 | -h, --help display this help and exit
|
---|
805 | --help=short display options specific to this package
|
---|
806 | --help=recursive display the short help of all the included packages
|
---|
807 | -V, --version display version information and exit
|
---|
808 | -q, --quiet, --silent do not print \`checking...' messages
|
---|
809 | --cache-file=FILE cache test results in FILE [disabled]
|
---|
810 | -C, --config-cache alias for \`--cache-file=config.cache'
|
---|
811 | -n, --no-create do not create output files
|
---|
812 | --srcdir=DIR find the sources in DIR [configure dir or \`..']
|
---|
813 |
|
---|
814 | _ACEOF
|
---|
815 |
|
---|
816 | cat <<_ACEOF
|
---|
817 | Installation directories:
|
---|
818 | --prefix=PREFIX install architecture-independent files in PREFIX
|
---|
819 | [$ac_default_prefix]
|
---|
820 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
|
---|
821 | [PREFIX]
|
---|
822 |
|
---|
823 | By default, \`make install' will install all the files in
|
---|
824 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
|
---|
825 | an installation prefix other than \`$ac_default_prefix' using \`--prefix',
|
---|
826 | for instance \`--prefix=\$HOME'.
|
---|
827 |
|
---|
828 | For better control, use the options below.
|
---|
829 |
|
---|
830 | Fine tuning of the installation directories:
|
---|
831 | --bindir=DIR user executables [EPREFIX/bin]
|
---|
832 | --sbindir=DIR system admin executables [EPREFIX/sbin]
|
---|
833 | --libexecdir=DIR program executables [EPREFIX/libexec]
|
---|
834 | --datadir=DIR read-only architecture-independent data [PREFIX/share]
|
---|
835 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
|
---|
836 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
|
---|
837 | --localstatedir=DIR modifiable single-machine data [PREFIX/var]
|
---|
838 | --libdir=DIR object code libraries [EPREFIX/lib]
|
---|
839 | --includedir=DIR C header files [PREFIX/include]
|
---|
840 | --oldincludedir=DIR C header files for non-gcc [/usr/include]
|
---|
841 | --infodir=DIR info documentation [PREFIX/info]
|
---|
842 | --mandir=DIR man documentation [PREFIX/man]
|
---|
843 | _ACEOF
|
---|
844 |
|
---|
845 | cat <<\_ACEOF
|
---|
846 |
|
---|
847 | Program names:
|
---|
848 | --program-prefix=PREFIX prepend PREFIX to installed program names
|
---|
849 | --program-suffix=SUFFIX append SUFFIX to installed program names
|
---|
850 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names
|
---|
851 | _ACEOF
|
---|
852 | fi
|
---|
853 |
|
---|
854 | if test -n "$ac_init_help"; then
|
---|
855 | case $ac_init_help in
|
---|
856 | short | recursive ) echo "Configuration of sparsehash 0.3:";;
|
---|
857 | esac
|
---|
858 | cat <<\_ACEOF
|
---|
859 |
|
---|
860 | Optional Features:
|
---|
861 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
---|
862 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
---|
863 | --disable-dependency-tracking Speeds up one-time builds
|
---|
864 | --enable-dependency-tracking Do not reject slow dependency extractors
|
---|
865 | --enable-namespace=FOO to define these Google
|
---|
866 | classes in the FOO namespace. --disable-namespace
|
---|
867 | to define them in the global namespace. Default
|
---|
868 | is to define them in std.
|
---|
869 |
|
---|
870 | Some influential environment variables:
|
---|
871 | CC C compiler command
|
---|
872 | CFLAGS C compiler flags
|
---|
873 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
|
---|
874 | nonstandard directory <lib dir>
|
---|
875 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
|
---|
876 | headers in a nonstandard directory <include dir>
|
---|
877 | CPP C preprocessor
|
---|
878 | CXX C++ compiler command
|
---|
879 | CXXFLAGS C++ compiler flags
|
---|
880 | CXXCPP C++ preprocessor
|
---|
881 |
|
---|
882 | Use these variables to override the choices made by `configure' or to help
|
---|
883 | it to find libraries and programs with nonstandard names/locations.
|
---|
884 |
|
---|
885 | Report bugs to <opensource@google.com>.
|
---|
886 | _ACEOF
|
---|
887 | fi
|
---|
888 |
|
---|
889 | if test "$ac_init_help" = "recursive"; then
|
---|
890 | # If there are subdirs, report their specific --help.
|
---|
891 | ac_popdir=`pwd`
|
---|
892 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
|
---|
893 | test -d $ac_dir || continue
|
---|
894 | ac_builddir=.
|
---|
895 |
|
---|
896 | if test "$ac_dir" != .; then
|
---|
897 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
---|
898 | # A "../" for each directory in $ac_dir_suffix.
|
---|
899 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
|
---|
900 | else
|
---|
901 | ac_dir_suffix= ac_top_builddir=
|
---|
902 | fi
|
---|
903 |
|
---|
904 | case $srcdir in
|
---|
905 | .) # No --srcdir option. We are building in place.
|
---|
906 | ac_srcdir=.
|
---|
907 | if test -z "$ac_top_builddir"; then
|
---|
908 | ac_top_srcdir=.
|
---|
909 | else
|
---|
910 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
|
---|
911 | fi ;;
|
---|
912 | [\\/]* | ?:[\\/]* ) # Absolute path.
|
---|
913 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
914 | ac_top_srcdir=$srcdir ;;
|
---|
915 | *) # Relative path.
|
---|
916 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
|
---|
917 | ac_top_srcdir=$ac_top_builddir$srcdir ;;
|
---|
918 | esac
|
---|
919 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
|
---|
920 | # absolute.
|
---|
921 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
|
---|
922 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
|
---|
923 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
|
---|
924 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
|
---|
925 |
|
---|
926 | cd $ac_dir
|
---|
927 | # Check for guested configure; otherwise get Cygnus style configure.
|
---|
928 | if test -f $ac_srcdir/configure.gnu; then
|
---|
929 | echo
|
---|
930 | $SHELL $ac_srcdir/configure.gnu --help=recursive
|
---|
931 | elif test -f $ac_srcdir/configure; then
|
---|
932 | echo
|
---|
933 | $SHELL $ac_srcdir/configure --help=recursive
|
---|
934 | elif test -f $ac_srcdir/configure.ac ||
|
---|
935 | test -f $ac_srcdir/configure.in; then
|
---|
936 | echo
|
---|
937 | $ac_configure --help
|
---|
938 | else
|
---|
939 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
|
---|
940 | fi
|
---|
941 | cd $ac_popdir
|
---|
942 | done
|
---|
943 | fi
|
---|
944 |
|
---|
945 | test -n "$ac_init_help" && exit 0
|
---|
946 | if $ac_init_version; then
|
---|
947 | cat <<\_ACEOF
|
---|
948 | sparsehash configure 0.3
|
---|
949 | generated by GNU Autoconf 2.57
|
---|
950 |
|
---|
951 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
|
---|
952 | Free Software Foundation, Inc.
|
---|
953 | This configure script is free software; the Free Software Foundation
|
---|
954 | gives unlimited permission to copy, distribute and modify it.
|
---|
955 | _ACEOF
|
---|
956 | exit 0
|
---|
957 | fi
|
---|
958 | exec 5>config.log
|
---|
959 | cat >&5 <<_ACEOF
|
---|
960 | This file contains any messages produced by compilers while
|
---|
961 | running configure, to aid debugging if configure makes a mistake.
|
---|
962 |
|
---|
963 | It was created by sparsehash $as_me 0.3, which was
|
---|
964 | generated by GNU Autoconf 2.57. Invocation command line was
|
---|
965 |
|
---|
966 | $ $0 $@
|
---|
967 |
|
---|
968 | _ACEOF
|
---|
969 | {
|
---|
970 | cat <<_ASUNAME
|
---|
971 | ## --------- ##
|
---|
972 | ## Platform. ##
|
---|
973 | ## --------- ##
|
---|
974 |
|
---|
975 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
976 | uname -m = `(uname -m) 2>/dev/null || echo unknown`
|
---|
977 | uname -r = `(uname -r) 2>/dev/null || echo unknown`
|
---|
978 | uname -s = `(uname -s) 2>/dev/null || echo unknown`
|
---|
979 | uname -v = `(uname -v) 2>/dev/null || echo unknown`
|
---|
980 |
|
---|
981 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
|
---|
982 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
|
---|
983 |
|
---|
984 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
|
---|
985 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
|
---|
986 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
|
---|
987 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
|
---|
988 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
|
---|
989 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
|
---|
990 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
|
---|
991 |
|
---|
992 | _ASUNAME
|
---|
993 |
|
---|
994 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
995 | for as_dir in $PATH
|
---|
996 | do
|
---|
997 | IFS=$as_save_IFS
|
---|
998 | test -z "$as_dir" && as_dir=.
|
---|
999 | echo "PATH: $as_dir"
|
---|
1000 | done
|
---|
1001 |
|
---|
1002 | } >&5
|
---|
1003 |
|
---|
1004 | cat >&5 <<_ACEOF
|
---|
1005 |
|
---|
1006 |
|
---|
1007 | ## ----------- ##
|
---|
1008 | ## Core tests. ##
|
---|
1009 | ## ----------- ##
|
---|
1010 |
|
---|
1011 | _ACEOF
|
---|
1012 |
|
---|
1013 |
|
---|
1014 | # Keep a trace of the command line.
|
---|
1015 | # Strip out --no-create and --no-recursion so they do not pile up.
|
---|
1016 | # Strip out --silent because we don't want to record it for future runs.
|
---|
1017 | # Also quote any args containing shell meta-characters.
|
---|
1018 | # Make two passes to allow for proper duplicate-argument suppression.
|
---|
1019 | ac_configure_args=
|
---|
1020 | ac_configure_args0=
|
---|
1021 | ac_configure_args1=
|
---|
1022 | ac_sep=
|
---|
1023 | ac_must_keep_next=false
|
---|
1024 | for ac_pass in 1 2
|
---|
1025 | do
|
---|
1026 | for ac_arg
|
---|
1027 | do
|
---|
1028 | case $ac_arg in
|
---|
1029 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
|
---|
1030 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
1031 | | -silent | --silent | --silen | --sile | --sil)
|
---|
1032 | continue ;;
|
---|
1033 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
|
---|
1034 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
1035 | esac
|
---|
1036 | case $ac_pass in
|
---|
1037 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
|
---|
1038 | 2)
|
---|
1039 | ac_configure_args1="$ac_configure_args1 '$ac_arg'"
|
---|
1040 | if test $ac_must_keep_next = true; then
|
---|
1041 | ac_must_keep_next=false # Got value, back to normal.
|
---|
1042 | else
|
---|
1043 | case $ac_arg in
|
---|
1044 | *=* | --config-cache | -C | -disable-* | --disable-* \
|
---|
1045 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
|
---|
1046 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
|
---|
1047 | | -with-* | --with-* | -without-* | --without-* | --x)
|
---|
1048 | case "$ac_configure_args0 " in
|
---|
1049 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
|
---|
1050 | esac
|
---|
1051 | ;;
|
---|
1052 | -* ) ac_must_keep_next=true ;;
|
---|
1053 | esac
|
---|
1054 | fi
|
---|
1055 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
|
---|
1056 | # Get rid of the leading space.
|
---|
1057 | ac_sep=" "
|
---|
1058 | ;;
|
---|
1059 | esac
|
---|
1060 | done
|
---|
1061 | done
|
---|
1062 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
|
---|
1063 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
|
---|
1064 |
|
---|
1065 | # When interrupted or exit'd, cleanup temporary files, and complete
|
---|
1066 | # config.log. We remove comments because anyway the quotes in there
|
---|
1067 | # would cause problems or look ugly.
|
---|
1068 | # WARNING: Be sure not to use single quotes in there, as some shells,
|
---|
1069 | # such as our DU 5.0 friend, will then `close' the trap.
|
---|
1070 | trap 'exit_status=$?
|
---|
1071 | # Save into config.log some information that might help in debugging.
|
---|
1072 | {
|
---|
1073 | echo
|
---|
1074 |
|
---|
1075 | cat <<\_ASBOX
|
---|
1076 | ## ---------------- ##
|
---|
1077 | ## Cache variables. ##
|
---|
1078 | ## ---------------- ##
|
---|
1079 | _ASBOX
|
---|
1080 | echo
|
---|
1081 | # The following way of writing the cache mishandles newlines in values,
|
---|
1082 | {
|
---|
1083 | (set) 2>&1 |
|
---|
1084 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
|
---|
1085 | *ac_space=\ *)
|
---|
1086 | sed -n \
|
---|
1087 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
|
---|
1088 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
|
---|
1089 | ;;
|
---|
1090 | *)
|
---|
1091 | sed -n \
|
---|
1092 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
|
---|
1093 | ;;
|
---|
1094 | esac;
|
---|
1095 | }
|
---|
1096 | echo
|
---|
1097 |
|
---|
1098 | cat <<\_ASBOX
|
---|
1099 | ## ----------------- ##
|
---|
1100 | ## Output variables. ##
|
---|
1101 | ## ----------------- ##
|
---|
1102 | _ASBOX
|
---|
1103 | echo
|
---|
1104 | for ac_var in $ac_subst_vars
|
---|
1105 | do
|
---|
1106 | eval ac_val=$`echo $ac_var`
|
---|
1107 | echo "$ac_var='"'"'$ac_val'"'"'"
|
---|
1108 | done | sort
|
---|
1109 | echo
|
---|
1110 |
|
---|
1111 | if test -n "$ac_subst_files"; then
|
---|
1112 | cat <<\_ASBOX
|
---|
1113 | ## ------------- ##
|
---|
1114 | ## Output files. ##
|
---|
1115 | ## ------------- ##
|
---|
1116 | _ASBOX
|
---|
1117 | echo
|
---|
1118 | for ac_var in $ac_subst_files
|
---|
1119 | do
|
---|
1120 | eval ac_val=$`echo $ac_var`
|
---|
1121 | echo "$ac_var='"'"'$ac_val'"'"'"
|
---|
1122 | done | sort
|
---|
1123 | echo
|
---|
1124 | fi
|
---|
1125 |
|
---|
1126 | if test -s confdefs.h; then
|
---|
1127 | cat <<\_ASBOX
|
---|
1128 | ## ----------- ##
|
---|
1129 | ## confdefs.h. ##
|
---|
1130 | ## ----------- ##
|
---|
1131 | _ASBOX
|
---|
1132 | echo
|
---|
1133 | sed "/^$/d" confdefs.h | sort
|
---|
1134 | echo
|
---|
1135 | fi
|
---|
1136 | test "$ac_signal" != 0 &&
|
---|
1137 | echo "$as_me: caught signal $ac_signal"
|
---|
1138 | echo "$as_me: exit $exit_status"
|
---|
1139 | } >&5
|
---|
1140 | rm -f core core.* *.core &&
|
---|
1141 | rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
|
---|
1142 | exit $exit_status
|
---|
1143 | ' 0
|
---|
1144 | for ac_signal in 1 2 13 15; do
|
---|
1145 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
|
---|
1146 | done
|
---|
1147 | ac_signal=0
|
---|
1148 |
|
---|
1149 | # confdefs.h avoids OS command line length limits that DEFS can exceed.
|
---|
1150 | rm -rf conftest* confdefs.h
|
---|
1151 | # AIX cpp loses on an empty file, so make sure it contains at least a newline.
|
---|
1152 | echo >confdefs.h
|
---|
1153 |
|
---|
1154 | # Predefined preprocessor variables.
|
---|
1155 |
|
---|
1156 | cat >>confdefs.h <<_ACEOF
|
---|
1157 | #define PACKAGE_NAME "$PACKAGE_NAME"
|
---|
1158 | _ACEOF
|
---|
1159 |
|
---|
1160 |
|
---|
1161 | cat >>confdefs.h <<_ACEOF
|
---|
1162 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
|
---|
1163 | _ACEOF
|
---|
1164 |
|
---|
1165 |
|
---|
1166 | cat >>confdefs.h <<_ACEOF
|
---|
1167 | #define PACKAGE_VERSION "$PACKAGE_VERSION"
|
---|
1168 | _ACEOF
|
---|
1169 |
|
---|
1170 |
|
---|
1171 | cat >>confdefs.h <<_ACEOF
|
---|
1172 | #define PACKAGE_STRING "$PACKAGE_STRING"
|
---|
1173 | _ACEOF
|
---|
1174 |
|
---|
1175 |
|
---|
1176 | cat >>confdefs.h <<_ACEOF
|
---|
1177 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
|
---|
1178 | _ACEOF
|
---|
1179 |
|
---|
1180 |
|
---|
1181 | # Let the site file select an alternate cache file if it wants to.
|
---|
1182 | # Prefer explicitly selected file to automatically selected ones.
|
---|
1183 | if test -z "$CONFIG_SITE"; then
|
---|
1184 | if test "x$prefix" != xNONE; then
|
---|
1185 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
|
---|
1186 | else
|
---|
1187 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
|
---|
1188 | fi
|
---|
1189 | fi
|
---|
1190 | for ac_site_file in $CONFIG_SITE; do
|
---|
1191 | if test -r "$ac_site_file"; then
|
---|
1192 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
|
---|
1193 | echo "$as_me: loading site script $ac_site_file" >&6;}
|
---|
1194 | sed 's/^/| /' "$ac_site_file" >&5
|
---|
1195 | . "$ac_site_file"
|
---|
1196 | fi
|
---|
1197 | done
|
---|
1198 |
|
---|
1199 | if test -r "$cache_file"; then
|
---|
1200 | # Some versions of bash will fail to source /dev/null (special
|
---|
1201 | # files actually), so we avoid doing that.
|
---|
1202 | if test -f "$cache_file"; then
|
---|
1203 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5
|
---|
1204 | echo "$as_me: loading cache $cache_file" >&6;}
|
---|
1205 | case $cache_file in
|
---|
1206 | [\\/]* | ?:[\\/]* ) . $cache_file;;
|
---|
1207 | *) . ./$cache_file;;
|
---|
1208 | esac
|
---|
1209 | fi
|
---|
1210 | else
|
---|
1211 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5
|
---|
1212 | echo "$as_me: creating cache $cache_file" >&6;}
|
---|
1213 | >$cache_file
|
---|
1214 | fi
|
---|
1215 |
|
---|
1216 | # Check that the precious variables saved in the cache have kept the same
|
---|
1217 | # value.
|
---|
1218 | ac_cache_corrupted=false
|
---|
1219 | for ac_var in `(set) 2>&1 |
|
---|
1220 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
|
---|
1221 | eval ac_old_set=\$ac_cv_env_${ac_var}_set
|
---|
1222 | eval ac_new_set=\$ac_env_${ac_var}_set
|
---|
1223 | eval ac_old_val="\$ac_cv_env_${ac_var}_value"
|
---|
1224 | eval ac_new_val="\$ac_env_${ac_var}_value"
|
---|
1225 | case $ac_old_set,$ac_new_set in
|
---|
1226 | set,)
|
---|
1227 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
|
---|
1228 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
|
---|
1229 | ac_cache_corrupted=: ;;
|
---|
1230 | ,set)
|
---|
1231 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
|
---|
1232 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
|
---|
1233 | ac_cache_corrupted=: ;;
|
---|
1234 | ,);;
|
---|
1235 | *)
|
---|
1236 | if test "x$ac_old_val" != "x$ac_new_val"; then
|
---|
1237 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
|
---|
1238 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
|
---|
1239 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
|
---|
1240 | echo "$as_me: former value: $ac_old_val" >&2;}
|
---|
1241 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
|
---|
1242 | echo "$as_me: current value: $ac_new_val" >&2;}
|
---|
1243 | ac_cache_corrupted=:
|
---|
1244 | fi;;
|
---|
1245 | esac
|
---|
1246 | # Pass precious variables to config.status.
|
---|
1247 | if test "$ac_new_set" = set; then
|
---|
1248 | case $ac_new_val in
|
---|
1249 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
|
---|
1250 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
1251 | *) ac_arg=$ac_var=$ac_new_val ;;
|
---|
1252 | esac
|
---|
1253 | case " $ac_configure_args " in
|
---|
1254 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
|
---|
1255 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
|
---|
1256 | esac
|
---|
1257 | fi
|
---|
1258 | done
|
---|
1259 | if $ac_cache_corrupted; then
|
---|
1260 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
|
---|
1261 | echo "$as_me: error: changes in the environment can compromise the build" >&2;}
|
---|
1262 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
|
---|
1263 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
|
---|
1264 | { (exit 1); exit 1; }; }
|
---|
1265 | fi
|
---|
1266 |
|
---|
1267 | ac_ext=c
|
---|
1268 | ac_cpp='$CPP $CPPFLAGS'
|
---|
1269 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
1270 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
1271 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
1272 |
|
---|
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 | # The argument here is just something that should be in the current directory
|
---|
1300 | # (for sanity checking)
|
---|
1301 |
|
---|
1302 | am__api_version="1.6"
|
---|
1303 | ac_aux_dir=
|
---|
1304 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
|
---|
1305 | if test -f $ac_dir/install-sh; then
|
---|
1306 | ac_aux_dir=$ac_dir
|
---|
1307 | ac_install_sh="$ac_aux_dir/install-sh -c"
|
---|
1308 | break
|
---|
1309 | elif test -f $ac_dir/install.sh; then
|
---|
1310 | ac_aux_dir=$ac_dir
|
---|
1311 | ac_install_sh="$ac_aux_dir/install.sh -c"
|
---|
1312 | break
|
---|
1313 | elif test -f $ac_dir/shtool; then
|
---|
1314 | ac_aux_dir=$ac_dir
|
---|
1315 | ac_install_sh="$ac_aux_dir/shtool install -c"
|
---|
1316 | break
|
---|
1317 | fi
|
---|
1318 | done
|
---|
1319 | if test -z "$ac_aux_dir"; then
|
---|
1320 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
|
---|
1321 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
|
---|
1322 | { (exit 1); exit 1; }; }
|
---|
1323 | fi
|
---|
1324 | ac_config_guess="$SHELL $ac_aux_dir/config.guess"
|
---|
1325 | ac_config_sub="$SHELL $ac_aux_dir/config.sub"
|
---|
1326 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
|
---|
1327 |
|
---|
1328 | # Find a good install program. We prefer a C program (faster),
|
---|
1329 | # so one script is as good as another. But avoid the broken or
|
---|
1330 | # incompatible versions:
|
---|
1331 | # SysV /etc/install, /usr/sbin/install
|
---|
1332 | # SunOS /usr/etc/install
|
---|
1333 | # IRIX /sbin/install
|
---|
1334 | # AIX /bin/install
|
---|
1335 | # AmigaOS /C/install, which installs bootblocks on floppy discs
|
---|
1336 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
---|
1337 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
---|
1338 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
---|
1339 | # ./install, which can be erroneously created by make from ./install.sh.
|
---|
1340 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
|
---|
1341 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
|
---|
1342 | if test -z "$INSTALL"; then
|
---|
1343 | if test "${ac_cv_path_install+set}" = set; then
|
---|
1344 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1345 | else
|
---|
1346 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
1347 | for as_dir in $PATH
|
---|
1348 | do
|
---|
1349 | IFS=$as_save_IFS
|
---|
1350 | test -z "$as_dir" && as_dir=.
|
---|
1351 | # Account for people who put trailing slashes in PATH elements.
|
---|
1352 | case $as_dir/ in
|
---|
1353 | ./ | .// | /cC/* | \
|
---|
1354 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
|
---|
1355 | /usr/ucb/* ) ;;
|
---|
1356 | *)
|
---|
1357 | # OSF1 and SCO ODT 3.0 have their own names for install.
|
---|
1358 | # Don't use installbsd from OSF since it installs stuff as root
|
---|
1359 | # by default.
|
---|
1360 | for ac_prog in ginstall scoinst install; do
|
---|
1361 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
1362 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
|
---|
1363 | if test $ac_prog = install &&
|
---|
1364 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
1365 | # AIX install. It has an incompatible calling convention.
|
---|
1366 | :
|
---|
1367 | elif test $ac_prog = install &&
|
---|
1368 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
1369 | # program-specific install script used by HP pwplus--don't use.
|
---|
1370 | :
|
---|
1371 | else
|
---|
1372 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
|
---|
1373 | break 3
|
---|
1374 | fi
|
---|
1375 | fi
|
---|
1376 | done
|
---|
1377 | done
|
---|
1378 | ;;
|
---|
1379 | esac
|
---|
1380 | done
|
---|
1381 |
|
---|
1382 |
|
---|
1383 | fi
|
---|
1384 | if test "${ac_cv_path_install+set}" = set; then
|
---|
1385 | INSTALL=$ac_cv_path_install
|
---|
1386 | else
|
---|
1387 | # As a last resort, use the slow shell script. We don't cache a
|
---|
1388 | # path for INSTALL within a source directory, because that will
|
---|
1389 | # break other packages using the cache if that directory is
|
---|
1390 | # removed, or if the path is relative.
|
---|
1391 | INSTALL=$ac_install_sh
|
---|
1392 | fi
|
---|
1393 | fi
|
---|
1394 | echo "$as_me:$LINENO: result: $INSTALL" >&5
|
---|
1395 | echo "${ECHO_T}$INSTALL" >&6
|
---|
1396 |
|
---|
1397 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
---|
1398 | # It thinks the first close brace ends the variable substitution.
|
---|
1399 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
---|
1400 |
|
---|
1401 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
|
---|
1402 |
|
---|
1403 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
---|
1404 |
|
---|
1405 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5
|
---|
1406 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
|
---|
1407 | # Just in case
|
---|
1408 | sleep 1
|
---|
1409 | echo timestamp > conftest.file
|
---|
1410 | # Do `set' in a subshell so we don't clobber the current shell's
|
---|
1411 | # arguments. Must try -L first in case configure is actually a
|
---|
1412 | # symlink; some systems play weird games with the mod time of symlinks
|
---|
1413 | # (eg FreeBSD returns the mod time of the symlink's containing
|
---|
1414 | # directory).
|
---|
1415 | if (
|
---|
1416 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
|
---|
1417 | if test "$*" = "X"; then
|
---|
1418 | # -L didn't work.
|
---|
1419 | set X `ls -t $srcdir/configure conftest.file`
|
---|
1420 | fi
|
---|
1421 | rm -f conftest.file
|
---|
1422 | if test "$*" != "X $srcdir/configure conftest.file" \
|
---|
1423 | && test "$*" != "X conftest.file $srcdir/configure"; then
|
---|
1424 |
|
---|
1425 | # If neither matched, then we have a broken ls. This can happen
|
---|
1426 | # if, for instance, CONFIG_SHELL is bash and it inherits a
|
---|
1427 | # broken ls alias from the environment. This has actually
|
---|
1428 | # happened. Such a system could not be considered "sane".
|
---|
1429 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
|
---|
1430 | alias in your environment" >&5
|
---|
1431 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
|
---|
1432 | alias in your environment" >&2;}
|
---|
1433 | { (exit 1); exit 1; }; }
|
---|
1434 | fi
|
---|
1435 |
|
---|
1436 | test "$2" = conftest.file
|
---|
1437 | )
|
---|
1438 | then
|
---|
1439 | # Ok.
|
---|
1440 | :
|
---|
1441 | else
|
---|
1442 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
|
---|
1443 | Check your system clock" >&5
|
---|
1444 | echo "$as_me: error: newly created file is older than distributed files!
|
---|
1445 | Check your system clock" >&2;}
|
---|
1446 | { (exit 1); exit 1; }; }
|
---|
1447 | fi
|
---|
1448 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
1449 | echo "${ECHO_T}yes" >&6
|
---|
1450 | test "$program_prefix" != NONE &&
|
---|
1451 | program_transform_name="s,^,$program_prefix,;$program_transform_name"
|
---|
1452 | # Use a double $ so make ignores it.
|
---|
1453 | test "$program_suffix" != NONE &&
|
---|
1454 | program_transform_name="s,\$,$program_suffix,;$program_transform_name"
|
---|
1455 | # Double any \ or $. echo might interpret backslashes.
|
---|
1456 | # By default was `s,x,x', remove it if useless.
|
---|
1457 | cat <<\_ACEOF >conftest.sed
|
---|
1458 | s/[\\$]/&&/g;s/;s,x,x,$//
|
---|
1459 | _ACEOF
|
---|
1460 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
|
---|
1461 | rm conftest.sed
|
---|
1462 |
|
---|
1463 |
|
---|
1464 | # expand $ac_aux_dir to an absolute path
|
---|
1465 | am_aux_dir=`cd $ac_aux_dir && pwd`
|
---|
1466 |
|
---|
1467 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
|
---|
1468 | # Use eval to expand $SHELL
|
---|
1469 | if eval "$MISSING --run true"; then
|
---|
1470 | am_missing_run="$MISSING --run "
|
---|
1471 | else
|
---|
1472 | am_missing_run=
|
---|
1473 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
|
---|
1474 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
|
---|
1475 | fi
|
---|
1476 |
|
---|
1477 | for ac_prog in gawk mawk nawk awk
|
---|
1478 | do
|
---|
1479 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
1480 | set dummy $ac_prog; ac_word=$2
|
---|
1481 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
1482 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
1483 | if test "${ac_cv_prog_AWK+set}" = set; then
|
---|
1484 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1485 | else
|
---|
1486 | if test -n "$AWK"; then
|
---|
1487 | ac_cv_prog_AWK="$AWK" # Let the user override the test.
|
---|
1488 | else
|
---|
1489 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
1490 | for as_dir in $PATH
|
---|
1491 | do
|
---|
1492 | IFS=$as_save_IFS
|
---|
1493 | test -z "$as_dir" && as_dir=.
|
---|
1494 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
1495 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
1496 | ac_cv_prog_AWK="$ac_prog"
|
---|
1497 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
1498 | break 2
|
---|
1499 | fi
|
---|
1500 | done
|
---|
1501 | done
|
---|
1502 |
|
---|
1503 | fi
|
---|
1504 | fi
|
---|
1505 | AWK=$ac_cv_prog_AWK
|
---|
1506 | if test -n "$AWK"; then
|
---|
1507 | echo "$as_me:$LINENO: result: $AWK" >&5
|
---|
1508 | echo "${ECHO_T}$AWK" >&6
|
---|
1509 | else
|
---|
1510 | echo "$as_me:$LINENO: result: no" >&5
|
---|
1511 | echo "${ECHO_T}no" >&6
|
---|
1512 | fi
|
---|
1513 |
|
---|
1514 | test -n "$AWK" && break
|
---|
1515 | done
|
---|
1516 |
|
---|
1517 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
|
---|
1518 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
|
---|
1519 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
|
---|
1520 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
|
---|
1521 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1522 | else
|
---|
1523 | cat >conftest.make <<\_ACEOF
|
---|
1524 | all:
|
---|
1525 | @echo 'ac_maketemp="$(MAKE)"'
|
---|
1526 | _ACEOF
|
---|
1527 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
---|
1528 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
|
---|
1529 | if test -n "$ac_maketemp"; then
|
---|
1530 | eval ac_cv_prog_make_${ac_make}_set=yes
|
---|
1531 | else
|
---|
1532 | eval ac_cv_prog_make_${ac_make}_set=no
|
---|
1533 | fi
|
---|
1534 | rm -f conftest.make
|
---|
1535 | fi
|
---|
1536 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
|
---|
1537 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
1538 | echo "${ECHO_T}yes" >&6
|
---|
1539 | SET_MAKE=
|
---|
1540 | else
|
---|
1541 | echo "$as_me:$LINENO: result: no" >&5
|
---|
1542 | echo "${ECHO_T}no" >&6
|
---|
1543 | SET_MAKE="MAKE=${MAKE-make}"
|
---|
1544 | fi
|
---|
1545 |
|
---|
1546 | # test to see if srcdir already configured
|
---|
1547 | if test "`cd $srcdir && pwd`" != "`pwd`" &&
|
---|
1548 | test -f $srcdir/config.status; then
|
---|
1549 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
|
---|
1550 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
|
---|
1551 | { (exit 1); exit 1; }; }
|
---|
1552 | fi
|
---|
1553 |
|
---|
1554 | # Define the identity of the package.
|
---|
1555 | PACKAGE=sparsehash
|
---|
1556 | VERSION=0.3
|
---|
1557 |
|
---|
1558 |
|
---|
1559 | cat >>confdefs.h <<_ACEOF
|
---|
1560 | #define PACKAGE "$PACKAGE"
|
---|
1561 | _ACEOF
|
---|
1562 |
|
---|
1563 |
|
---|
1564 | cat >>confdefs.h <<_ACEOF
|
---|
1565 | #define VERSION "$VERSION"
|
---|
1566 | _ACEOF
|
---|
1567 |
|
---|
1568 | # Some tools Automake needs.
|
---|
1569 |
|
---|
1570 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
|
---|
1571 |
|
---|
1572 |
|
---|
1573 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
|
---|
1574 |
|
---|
1575 |
|
---|
1576 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
|
---|
1577 |
|
---|
1578 |
|
---|
1579 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
|
---|
1580 |
|
---|
1581 |
|
---|
1582 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
|
---|
1583 |
|
---|
1584 |
|
---|
1585 | AMTAR=${AMTAR-"${am_missing_run}tar"}
|
---|
1586 |
|
---|
1587 | install_sh=${install_sh-"$am_aux_dir/install-sh"}
|
---|
1588 |
|
---|
1589 | # Installed binaries are usually stripped using `strip' when the user
|
---|
1590 | # run `make install-strip'. However `strip' might not be the right
|
---|
1591 | # tool to use in cross-compilation environments, therefore Automake
|
---|
1592 | # will honor the `STRIP' environment variable to overrule this program.
|
---|
1593 | if test "$cross_compiling" != no; then
|
---|
1594 | if test -n "$ac_tool_prefix"; then
|
---|
1595 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
|
---|
1596 | set dummy ${ac_tool_prefix}strip; ac_word=$2
|
---|
1597 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
1598 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
1599 | if test "${ac_cv_prog_STRIP+set}" = set; then
|
---|
1600 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1601 | else
|
---|
1602 | if test -n "$STRIP"; then
|
---|
1603 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
|
---|
1604 | else
|
---|
1605 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
1606 | for as_dir in $PATH
|
---|
1607 | do
|
---|
1608 | IFS=$as_save_IFS
|
---|
1609 | test -z "$as_dir" && as_dir=.
|
---|
1610 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
1611 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
1612 | ac_cv_prog_STRIP="${ac_tool_prefix}strip"
|
---|
1613 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
1614 | break 2
|
---|
1615 | fi
|
---|
1616 | done
|
---|
1617 | done
|
---|
1618 |
|
---|
1619 | fi
|
---|
1620 | fi
|
---|
1621 | STRIP=$ac_cv_prog_STRIP
|
---|
1622 | if test -n "$STRIP"; then
|
---|
1623 | echo "$as_me:$LINENO: result: $STRIP" >&5
|
---|
1624 | echo "${ECHO_T}$STRIP" >&6
|
---|
1625 | else
|
---|
1626 | echo "$as_me:$LINENO: result: no" >&5
|
---|
1627 | echo "${ECHO_T}no" >&6
|
---|
1628 | fi
|
---|
1629 |
|
---|
1630 | fi
|
---|
1631 | if test -z "$ac_cv_prog_STRIP"; then
|
---|
1632 | ac_ct_STRIP=$STRIP
|
---|
1633 | # Extract the first word of "strip", so it can be a program name with args.
|
---|
1634 | set dummy strip; ac_word=$2
|
---|
1635 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
1636 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
1637 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
|
---|
1638 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1639 | else
|
---|
1640 | if test -n "$ac_ct_STRIP"; then
|
---|
1641 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
|
---|
1642 | else
|
---|
1643 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
1644 | for as_dir in $PATH
|
---|
1645 | do
|
---|
1646 | IFS=$as_save_IFS
|
---|
1647 | test -z "$as_dir" && as_dir=.
|
---|
1648 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
1649 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
1650 | ac_cv_prog_ac_ct_STRIP="strip"
|
---|
1651 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
1652 | break 2
|
---|
1653 | fi
|
---|
1654 | done
|
---|
1655 | done
|
---|
1656 |
|
---|
1657 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
|
---|
1658 | fi
|
---|
1659 | fi
|
---|
1660 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
|
---|
1661 | if test -n "$ac_ct_STRIP"; then
|
---|
1662 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
|
---|
1663 | echo "${ECHO_T}$ac_ct_STRIP" >&6
|
---|
1664 | else
|
---|
1665 | echo "$as_me:$LINENO: result: no" >&5
|
---|
1666 | echo "${ECHO_T}no" >&6
|
---|
1667 | fi
|
---|
1668 |
|
---|
1669 | STRIP=$ac_ct_STRIP
|
---|
1670 | else
|
---|
1671 | STRIP="$ac_cv_prog_STRIP"
|
---|
1672 | fi
|
---|
1673 |
|
---|
1674 | fi
|
---|
1675 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
|
---|
1676 |
|
---|
1677 | # We need awk for the "check" target. The system "awk" is bad on
|
---|
1678 | # some platforms.
|
---|
1679 |
|
---|
1680 |
|
---|
1681 |
|
---|
1682 | # Add the stamp file to the list of files AC keeps track of,
|
---|
1683 | # along with our hook.
|
---|
1684 | ac_config_headers="$ac_config_headers src/google/sparsehash/config.h"
|
---|
1685 |
|
---|
1686 |
|
---|
1687 |
|
---|
1688 |
|
---|
1689 | # Checks for programs.
|
---|
1690 | ac_ext=c
|
---|
1691 | ac_cpp='$CPP $CPPFLAGS'
|
---|
1692 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
1693 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
1694 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
1695 | if test -n "$ac_tool_prefix"; then
|
---|
1696 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
|
---|
1697 | set dummy ${ac_tool_prefix}gcc; ac_word=$2
|
---|
1698 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
1699 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
1700 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
1701 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1702 | else
|
---|
1703 | if test -n "$CC"; then
|
---|
1704 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
1705 | else
|
---|
1706 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
1707 | for as_dir in $PATH
|
---|
1708 | do
|
---|
1709 | IFS=$as_save_IFS
|
---|
1710 | test -z "$as_dir" && as_dir=.
|
---|
1711 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
1712 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
1713 | ac_cv_prog_CC="${ac_tool_prefix}gcc"
|
---|
1714 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
1715 | break 2
|
---|
1716 | fi
|
---|
1717 | done
|
---|
1718 | done
|
---|
1719 |
|
---|
1720 | fi
|
---|
1721 | fi
|
---|
1722 | CC=$ac_cv_prog_CC
|
---|
1723 | if test -n "$CC"; then
|
---|
1724 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
1725 | echo "${ECHO_T}$CC" >&6
|
---|
1726 | else
|
---|
1727 | echo "$as_me:$LINENO: result: no" >&5
|
---|
1728 | echo "${ECHO_T}no" >&6
|
---|
1729 | fi
|
---|
1730 |
|
---|
1731 | fi
|
---|
1732 | if test -z "$ac_cv_prog_CC"; then
|
---|
1733 | ac_ct_CC=$CC
|
---|
1734 | # Extract the first word of "gcc", so it can be a program name with args.
|
---|
1735 | set dummy gcc; ac_word=$2
|
---|
1736 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
1737 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
1738 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
---|
1739 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1740 | else
|
---|
1741 | if test -n "$ac_ct_CC"; then
|
---|
1742 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
1743 | else
|
---|
1744 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
1745 | for as_dir in $PATH
|
---|
1746 | do
|
---|
1747 | IFS=$as_save_IFS
|
---|
1748 | test -z "$as_dir" && as_dir=.
|
---|
1749 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
1750 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
1751 | ac_cv_prog_ac_ct_CC="gcc"
|
---|
1752 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
1753 | break 2
|
---|
1754 | fi
|
---|
1755 | done
|
---|
1756 | done
|
---|
1757 |
|
---|
1758 | fi
|
---|
1759 | fi
|
---|
1760 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
1761 | if test -n "$ac_ct_CC"; then
|
---|
1762 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
---|
1763 | echo "${ECHO_T}$ac_ct_CC" >&6
|
---|
1764 | else
|
---|
1765 | echo "$as_me:$LINENO: result: no" >&5
|
---|
1766 | echo "${ECHO_T}no" >&6
|
---|
1767 | fi
|
---|
1768 |
|
---|
1769 | CC=$ac_ct_CC
|
---|
1770 | else
|
---|
1771 | CC="$ac_cv_prog_CC"
|
---|
1772 | fi
|
---|
1773 |
|
---|
1774 | if test -z "$CC"; then
|
---|
1775 | if test -n "$ac_tool_prefix"; then
|
---|
1776 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
|
---|
1777 | set dummy ${ac_tool_prefix}cc; ac_word=$2
|
---|
1778 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
1779 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
1780 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
1781 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1782 | else
|
---|
1783 | if test -n "$CC"; then
|
---|
1784 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
1785 | else
|
---|
1786 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
1787 | for as_dir in $PATH
|
---|
1788 | do
|
---|
1789 | IFS=$as_save_IFS
|
---|
1790 | test -z "$as_dir" && as_dir=.
|
---|
1791 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
1792 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
1793 | ac_cv_prog_CC="${ac_tool_prefix}cc"
|
---|
1794 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
1795 | break 2
|
---|
1796 | fi
|
---|
1797 | done
|
---|
1798 | done
|
---|
1799 |
|
---|
1800 | fi
|
---|
1801 | fi
|
---|
1802 | CC=$ac_cv_prog_CC
|
---|
1803 | if test -n "$CC"; then
|
---|
1804 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
1805 | echo "${ECHO_T}$CC" >&6
|
---|
1806 | else
|
---|
1807 | echo "$as_me:$LINENO: result: no" >&5
|
---|
1808 | echo "${ECHO_T}no" >&6
|
---|
1809 | fi
|
---|
1810 |
|
---|
1811 | fi
|
---|
1812 | if test -z "$ac_cv_prog_CC"; then
|
---|
1813 | ac_ct_CC=$CC
|
---|
1814 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
1815 | set dummy cc; ac_word=$2
|
---|
1816 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
1817 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
1818 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
---|
1819 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1820 | else
|
---|
1821 | if test -n "$ac_ct_CC"; then
|
---|
1822 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
1823 | else
|
---|
1824 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
1825 | for as_dir in $PATH
|
---|
1826 | do
|
---|
1827 | IFS=$as_save_IFS
|
---|
1828 | test -z "$as_dir" && as_dir=.
|
---|
1829 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
1830 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
1831 | ac_cv_prog_ac_ct_CC="cc"
|
---|
1832 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
1833 | break 2
|
---|
1834 | fi
|
---|
1835 | done
|
---|
1836 | done
|
---|
1837 |
|
---|
1838 | fi
|
---|
1839 | fi
|
---|
1840 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
1841 | if test -n "$ac_ct_CC"; then
|
---|
1842 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
---|
1843 | echo "${ECHO_T}$ac_ct_CC" >&6
|
---|
1844 | else
|
---|
1845 | echo "$as_me:$LINENO: result: no" >&5
|
---|
1846 | echo "${ECHO_T}no" >&6
|
---|
1847 | fi
|
---|
1848 |
|
---|
1849 | CC=$ac_ct_CC
|
---|
1850 | else
|
---|
1851 | CC="$ac_cv_prog_CC"
|
---|
1852 | fi
|
---|
1853 |
|
---|
1854 | fi
|
---|
1855 | if test -z "$CC"; then
|
---|
1856 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
1857 | set dummy cc; ac_word=$2
|
---|
1858 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
1859 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
1860 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
1861 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1862 | else
|
---|
1863 | if test -n "$CC"; then
|
---|
1864 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
1865 | else
|
---|
1866 | ac_prog_rejected=no
|
---|
1867 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
1868 | for as_dir in $PATH
|
---|
1869 | do
|
---|
1870 | IFS=$as_save_IFS
|
---|
1871 | test -z "$as_dir" && as_dir=.
|
---|
1872 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
1873 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
1874 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
|
---|
1875 | ac_prog_rejected=yes
|
---|
1876 | continue
|
---|
1877 | fi
|
---|
1878 | ac_cv_prog_CC="cc"
|
---|
1879 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
1880 | break 2
|
---|
1881 | fi
|
---|
1882 | done
|
---|
1883 | done
|
---|
1884 |
|
---|
1885 | if test $ac_prog_rejected = yes; then
|
---|
1886 | # We found a bogon in the path, so make sure we never use it.
|
---|
1887 | set dummy $ac_cv_prog_CC
|
---|
1888 | shift
|
---|
1889 | if test $# != 0; then
|
---|
1890 | # We chose a different compiler from the bogus one.
|
---|
1891 | # However, it has the same basename, so the bogon will be chosen
|
---|
1892 | # first if we set CC to just the basename; use the full file name.
|
---|
1893 | shift
|
---|
1894 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
|
---|
1895 | fi
|
---|
1896 | fi
|
---|
1897 | fi
|
---|
1898 | fi
|
---|
1899 | CC=$ac_cv_prog_CC
|
---|
1900 | if test -n "$CC"; then
|
---|
1901 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
1902 | echo "${ECHO_T}$CC" >&6
|
---|
1903 | else
|
---|
1904 | echo "$as_me:$LINENO: result: no" >&5
|
---|
1905 | echo "${ECHO_T}no" >&6
|
---|
1906 | fi
|
---|
1907 |
|
---|
1908 | fi
|
---|
1909 | if test -z "$CC"; then
|
---|
1910 | if test -n "$ac_tool_prefix"; then
|
---|
1911 | for ac_prog in cl
|
---|
1912 | do
|
---|
1913 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
1914 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
1915 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
1916 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
1917 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
1918 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1919 | else
|
---|
1920 | if test -n "$CC"; then
|
---|
1921 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
1922 | else
|
---|
1923 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
1924 | for as_dir in $PATH
|
---|
1925 | do
|
---|
1926 | IFS=$as_save_IFS
|
---|
1927 | test -z "$as_dir" && as_dir=.
|
---|
1928 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
1929 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
1930 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
|
---|
1931 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
1932 | break 2
|
---|
1933 | fi
|
---|
1934 | done
|
---|
1935 | done
|
---|
1936 |
|
---|
1937 | fi
|
---|
1938 | fi
|
---|
1939 | CC=$ac_cv_prog_CC
|
---|
1940 | if test -n "$CC"; then
|
---|
1941 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
1942 | echo "${ECHO_T}$CC" >&6
|
---|
1943 | else
|
---|
1944 | echo "$as_me:$LINENO: result: no" >&5
|
---|
1945 | echo "${ECHO_T}no" >&6
|
---|
1946 | fi
|
---|
1947 |
|
---|
1948 | test -n "$CC" && break
|
---|
1949 | done
|
---|
1950 | fi
|
---|
1951 | if test -z "$CC"; then
|
---|
1952 | ac_ct_CC=$CC
|
---|
1953 | for ac_prog in cl
|
---|
1954 | do
|
---|
1955 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
1956 | set dummy $ac_prog; ac_word=$2
|
---|
1957 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
1958 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
1959 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
---|
1960 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1961 | else
|
---|
1962 | if test -n "$ac_ct_CC"; then
|
---|
1963 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
1964 | else
|
---|
1965 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
1966 | for as_dir in $PATH
|
---|
1967 | do
|
---|
1968 | IFS=$as_save_IFS
|
---|
1969 | test -z "$as_dir" && as_dir=.
|
---|
1970 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
1971 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
1972 | ac_cv_prog_ac_ct_CC="$ac_prog"
|
---|
1973 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
1974 | break 2
|
---|
1975 | fi
|
---|
1976 | done
|
---|
1977 | done
|
---|
1978 |
|
---|
1979 | fi
|
---|
1980 | fi
|
---|
1981 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
1982 | if test -n "$ac_ct_CC"; then
|
---|
1983 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
---|
1984 | echo "${ECHO_T}$ac_ct_CC" >&6
|
---|
1985 | else
|
---|
1986 | echo "$as_me:$LINENO: result: no" >&5
|
---|
1987 | echo "${ECHO_T}no" >&6
|
---|
1988 | fi
|
---|
1989 |
|
---|
1990 | test -n "$ac_ct_CC" && break
|
---|
1991 | done
|
---|
1992 |
|
---|
1993 | CC=$ac_ct_CC
|
---|
1994 | fi
|
---|
1995 |
|
---|
1996 | fi
|
---|
1997 |
|
---|
1998 |
|
---|
1999 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
|
---|
2000 | See \`config.log' for more details." >&5
|
---|
2001 | echo "$as_me: error: no acceptable C compiler found in \$PATH
|
---|
2002 | See \`config.log' for more details." >&2;}
|
---|
2003 | { (exit 1); exit 1; }; }
|
---|
2004 |
|
---|
2005 | # Provide some information about the compiler.
|
---|
2006 | echo "$as_me:$LINENO:" \
|
---|
2007 | "checking for C compiler version" >&5
|
---|
2008 | ac_compiler=`set X $ac_compile; echo $2`
|
---|
2009 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
|
---|
2010 | (eval $ac_compiler --version </dev/null >&5) 2>&5
|
---|
2011 | ac_status=$?
|
---|
2012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2013 | (exit $ac_status); }
|
---|
2014 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
|
---|
2015 | (eval $ac_compiler -v </dev/null >&5) 2>&5
|
---|
2016 | ac_status=$?
|
---|
2017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2018 | (exit $ac_status); }
|
---|
2019 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
|
---|
2020 | (eval $ac_compiler -V </dev/null >&5) 2>&5
|
---|
2021 | ac_status=$?
|
---|
2022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2023 | (exit $ac_status); }
|
---|
2024 |
|
---|
2025 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2026 | #line $LINENO "configure"
|
---|
2027 | /* confdefs.h. */
|
---|
2028 | _ACEOF
|
---|
2029 | cat confdefs.h >>conftest.$ac_ext
|
---|
2030 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2031 | /* end confdefs.h. */
|
---|
2032 |
|
---|
2033 | int
|
---|
2034 | main ()
|
---|
2035 | {
|
---|
2036 |
|
---|
2037 | ;
|
---|
2038 | return 0;
|
---|
2039 | }
|
---|
2040 | _ACEOF
|
---|
2041 | ac_clean_files_save=$ac_clean_files
|
---|
2042 | ac_clean_files="$ac_clean_files a.out a.exe b.out"
|
---|
2043 | # Try to create an executable without -o first, disregard a.out.
|
---|
2044 | # It will help us diagnose broken compilers, and finding out an intuition
|
---|
2045 | # of exeext.
|
---|
2046 | echo "$as_me:$LINENO: checking for C compiler default output" >&5
|
---|
2047 | echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
|
---|
2048 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
|
---|
2049 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
|
---|
2050 | (eval $ac_link_default) 2>&5
|
---|
2051 | ac_status=$?
|
---|
2052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2053 | (exit $ac_status); }; then
|
---|
2054 | # Find the output, starting from the most likely. This scheme is
|
---|
2055 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last
|
---|
2056 | # resort.
|
---|
2057 |
|
---|
2058 | # Be careful to initialize this variable, since it used to be cached.
|
---|
2059 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
|
---|
2060 | ac_cv_exeext=
|
---|
2061 | # b.out is created by i960 compilers.
|
---|
2062 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
|
---|
2063 | do
|
---|
2064 | test -f "$ac_file" || continue
|
---|
2065 | case $ac_file in
|
---|
2066 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
|
---|
2067 | ;;
|
---|
2068 | conftest.$ac_ext )
|
---|
2069 | # This is the source file.
|
---|
2070 | ;;
|
---|
2071 | [ab].out )
|
---|
2072 | # We found the default executable, but exeext='' is most
|
---|
2073 | # certainly right.
|
---|
2074 | break;;
|
---|
2075 | *.* )
|
---|
2076 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
2077 | # FIXME: I believe we export ac_cv_exeext for Libtool,
|
---|
2078 | # but it would be cool to find out if it's true. Does anybody
|
---|
2079 | # maintain Libtool? --akim.
|
---|
2080 | export ac_cv_exeext
|
---|
2081 | break;;
|
---|
2082 | * )
|
---|
2083 | break;;
|
---|
2084 | esac
|
---|
2085 | done
|
---|
2086 | else
|
---|
2087 | echo "$as_me: failed program was:" >&5
|
---|
2088 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2089 |
|
---|
2090 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables
|
---|
2091 | See \`config.log' for more details." >&5
|
---|
2092 | echo "$as_me: error: C compiler cannot create executables
|
---|
2093 | See \`config.log' for more details." >&2;}
|
---|
2094 | { (exit 77); exit 77; }; }
|
---|
2095 | fi
|
---|
2096 |
|
---|
2097 | ac_exeext=$ac_cv_exeext
|
---|
2098 | echo "$as_me:$LINENO: result: $ac_file" >&5
|
---|
2099 | echo "${ECHO_T}$ac_file" >&6
|
---|
2100 |
|
---|
2101 | # Check the compiler produces executables we can run. If not, either
|
---|
2102 | # the compiler is broken, or we cross compile.
|
---|
2103 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5
|
---|
2104 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
|
---|
2105 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
|
---|
2106 | # If not cross compiling, check that we can run a simple program.
|
---|
2107 | if test "$cross_compiling" != yes; then
|
---|
2108 | if { ac_try='./$ac_file'
|
---|
2109 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2110 | (eval $ac_try) 2>&5
|
---|
2111 | ac_status=$?
|
---|
2112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2113 | (exit $ac_status); }; }; then
|
---|
2114 | cross_compiling=no
|
---|
2115 | else
|
---|
2116 | if test "$cross_compiling" = maybe; then
|
---|
2117 | cross_compiling=yes
|
---|
2118 | else
|
---|
2119 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
|
---|
2120 | If you meant to cross compile, use \`--host'.
|
---|
2121 | See \`config.log' for more details." >&5
|
---|
2122 | echo "$as_me: error: cannot run C compiled programs.
|
---|
2123 | If you meant to cross compile, use \`--host'.
|
---|
2124 | See \`config.log' for more details." >&2;}
|
---|
2125 | { (exit 1); exit 1; }; }
|
---|
2126 | fi
|
---|
2127 | fi
|
---|
2128 | fi
|
---|
2129 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
2130 | echo "${ECHO_T}yes" >&6
|
---|
2131 |
|
---|
2132 | rm -f a.out a.exe conftest$ac_cv_exeext b.out
|
---|
2133 | ac_clean_files=$ac_clean_files_save
|
---|
2134 | # Check the compiler produces executables we can run. If not, either
|
---|
2135 | # the compiler is broken, or we cross compile.
|
---|
2136 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
|
---|
2137 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
|
---|
2138 | echo "$as_me:$LINENO: result: $cross_compiling" >&5
|
---|
2139 | echo "${ECHO_T}$cross_compiling" >&6
|
---|
2140 |
|
---|
2141 | echo "$as_me:$LINENO: checking for suffix of executables" >&5
|
---|
2142 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
|
---|
2143 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
2144 | (eval $ac_link) 2>&5
|
---|
2145 | ac_status=$?
|
---|
2146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2147 | (exit $ac_status); }; then
|
---|
2148 | # If both `conftest.exe' and `conftest' are `present' (well, observable)
|
---|
2149 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
|
---|
2150 | # work properly (i.e., refer to `conftest.exe'), while it won't with
|
---|
2151 | # `rm'.
|
---|
2152 | for ac_file in conftest.exe conftest conftest.*; do
|
---|
2153 | test -f "$ac_file" || continue
|
---|
2154 | case $ac_file in
|
---|
2155 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
|
---|
2156 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
2157 | export ac_cv_exeext
|
---|
2158 | break;;
|
---|
2159 | * ) break;;
|
---|
2160 | esac
|
---|
2161 | done
|
---|
2162 | else
|
---|
2163 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
|
---|
2164 | See \`config.log' for more details." >&5
|
---|
2165 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
|
---|
2166 | See \`config.log' for more details." >&2;}
|
---|
2167 | { (exit 1); exit 1; }; }
|
---|
2168 | fi
|
---|
2169 |
|
---|
2170 | rm -f conftest$ac_cv_exeext
|
---|
2171 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
|
---|
2172 | echo "${ECHO_T}$ac_cv_exeext" >&6
|
---|
2173 |
|
---|
2174 | rm -f conftest.$ac_ext
|
---|
2175 | EXEEXT=$ac_cv_exeext
|
---|
2176 | ac_exeext=$EXEEXT
|
---|
2177 | echo "$as_me:$LINENO: checking for suffix of object files" >&5
|
---|
2178 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
|
---|
2179 | if test "${ac_cv_objext+set}" = set; then
|
---|
2180 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2181 | else
|
---|
2182 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2183 | #line $LINENO "configure"
|
---|
2184 | /* confdefs.h. */
|
---|
2185 | _ACEOF
|
---|
2186 | cat confdefs.h >>conftest.$ac_ext
|
---|
2187 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2188 | /* end confdefs.h. */
|
---|
2189 |
|
---|
2190 | int
|
---|
2191 | main ()
|
---|
2192 | {
|
---|
2193 |
|
---|
2194 | ;
|
---|
2195 | return 0;
|
---|
2196 | }
|
---|
2197 | _ACEOF
|
---|
2198 | rm -f conftest.o conftest.obj
|
---|
2199 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
2200 | (eval $ac_compile) 2>&5
|
---|
2201 | ac_status=$?
|
---|
2202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2203 | (exit $ac_status); }; then
|
---|
2204 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
|
---|
2205 | case $ac_file in
|
---|
2206 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
|
---|
2207 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
|
---|
2208 | break;;
|
---|
2209 | esac
|
---|
2210 | done
|
---|
2211 | else
|
---|
2212 | echo "$as_me: failed program was:" >&5
|
---|
2213 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2214 |
|
---|
2215 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
|
---|
2216 | See \`config.log' for more details." >&5
|
---|
2217 | echo "$as_me: error: cannot compute suffix of object files: cannot compile
|
---|
2218 | See \`config.log' for more details." >&2;}
|
---|
2219 | { (exit 1); exit 1; }; }
|
---|
2220 | fi
|
---|
2221 |
|
---|
2222 | rm -f conftest.$ac_cv_objext conftest.$ac_ext
|
---|
2223 | fi
|
---|
2224 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
|
---|
2225 | echo "${ECHO_T}$ac_cv_objext" >&6
|
---|
2226 | OBJEXT=$ac_cv_objext
|
---|
2227 | ac_objext=$OBJEXT
|
---|
2228 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
|
---|
2229 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
|
---|
2230 | if test "${ac_cv_c_compiler_gnu+set}" = set; then
|
---|
2231 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2232 | else
|
---|
2233 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2234 | #line $LINENO "configure"
|
---|
2235 | /* confdefs.h. */
|
---|
2236 | _ACEOF
|
---|
2237 | cat confdefs.h >>conftest.$ac_ext
|
---|
2238 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2239 | /* end confdefs.h. */
|
---|
2240 |
|
---|
2241 | int
|
---|
2242 | main ()
|
---|
2243 | {
|
---|
2244 | #ifndef __GNUC__
|
---|
2245 | choke me
|
---|
2246 | #endif
|
---|
2247 |
|
---|
2248 | ;
|
---|
2249 | return 0;
|
---|
2250 | }
|
---|
2251 | _ACEOF
|
---|
2252 | rm -f conftest.$ac_objext
|
---|
2253 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
2254 | (eval $ac_compile) 2>&5
|
---|
2255 | ac_status=$?
|
---|
2256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2257 | (exit $ac_status); } &&
|
---|
2258 | { ac_try='test -s conftest.$ac_objext'
|
---|
2259 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2260 | (eval $ac_try) 2>&5
|
---|
2261 | ac_status=$?
|
---|
2262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2263 | (exit $ac_status); }; }; then
|
---|
2264 | ac_compiler_gnu=yes
|
---|
2265 | else
|
---|
2266 | echo "$as_me: failed program was:" >&5
|
---|
2267 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2268 |
|
---|
2269 | ac_compiler_gnu=no
|
---|
2270 | fi
|
---|
2271 | rm -f conftest.$ac_objext conftest.$ac_ext
|
---|
2272 | ac_cv_c_compiler_gnu=$ac_compiler_gnu
|
---|
2273 |
|
---|
2274 | fi
|
---|
2275 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
|
---|
2276 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
|
---|
2277 | GCC=`test $ac_compiler_gnu = yes && echo yes`
|
---|
2278 | ac_test_CFLAGS=${CFLAGS+set}
|
---|
2279 | ac_save_CFLAGS=$CFLAGS
|
---|
2280 | CFLAGS="-g"
|
---|
2281 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
|
---|
2282 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
|
---|
2283 | if test "${ac_cv_prog_cc_g+set}" = set; then
|
---|
2284 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2285 | else
|
---|
2286 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2287 | #line $LINENO "configure"
|
---|
2288 | /* confdefs.h. */
|
---|
2289 | _ACEOF
|
---|
2290 | cat confdefs.h >>conftest.$ac_ext
|
---|
2291 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2292 | /* end confdefs.h. */
|
---|
2293 |
|
---|
2294 | int
|
---|
2295 | main ()
|
---|
2296 | {
|
---|
2297 |
|
---|
2298 | ;
|
---|
2299 | return 0;
|
---|
2300 | }
|
---|
2301 | _ACEOF
|
---|
2302 | rm -f conftest.$ac_objext
|
---|
2303 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
2304 | (eval $ac_compile) 2>&5
|
---|
2305 | ac_status=$?
|
---|
2306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2307 | (exit $ac_status); } &&
|
---|
2308 | { ac_try='test -s conftest.$ac_objext'
|
---|
2309 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2310 | (eval $ac_try) 2>&5
|
---|
2311 | ac_status=$?
|
---|
2312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2313 | (exit $ac_status); }; }; then
|
---|
2314 | ac_cv_prog_cc_g=yes
|
---|
2315 | else
|
---|
2316 | echo "$as_me: failed program was:" >&5
|
---|
2317 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2318 |
|
---|
2319 | ac_cv_prog_cc_g=no
|
---|
2320 | fi
|
---|
2321 | rm -f conftest.$ac_objext conftest.$ac_ext
|
---|
2322 | fi
|
---|
2323 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
|
---|
2324 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
|
---|
2325 | if test "$ac_test_CFLAGS" = set; then
|
---|
2326 | CFLAGS=$ac_save_CFLAGS
|
---|
2327 | elif test $ac_cv_prog_cc_g = yes; then
|
---|
2328 | if test "$GCC" = yes; then
|
---|
2329 | CFLAGS="-g -O2"
|
---|
2330 | else
|
---|
2331 | CFLAGS="-g"
|
---|
2332 | fi
|
---|
2333 | else
|
---|
2334 | if test "$GCC" = yes; then
|
---|
2335 | CFLAGS="-O2"
|
---|
2336 | else
|
---|
2337 | CFLAGS=
|
---|
2338 | fi
|
---|
2339 | fi
|
---|
2340 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
|
---|
2341 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
|
---|
2342 | if test "${ac_cv_prog_cc_stdc+set}" = set; then
|
---|
2343 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2344 | else
|
---|
2345 | ac_cv_prog_cc_stdc=no
|
---|
2346 | ac_save_CC=$CC
|
---|
2347 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2348 | #line $LINENO "configure"
|
---|
2349 | /* confdefs.h. */
|
---|
2350 | _ACEOF
|
---|
2351 | cat confdefs.h >>conftest.$ac_ext
|
---|
2352 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2353 | /* end confdefs.h. */
|
---|
2354 | #include <stdarg.h>
|
---|
2355 | #include <stdio.h>
|
---|
2356 | #include <sys/types.h>
|
---|
2357 | #include <sys/stat.h>
|
---|
2358 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
|
---|
2359 | struct buf { int x; };
|
---|
2360 | FILE * (*rcsopen) (struct buf *, struct stat *, int);
|
---|
2361 | static char *e (p, i)
|
---|
2362 | char **p;
|
---|
2363 | int i;
|
---|
2364 | {
|
---|
2365 | return p[i];
|
---|
2366 | }
|
---|
2367 | static char *f (char * (*g) (char **, int), char **p, ...)
|
---|
2368 | {
|
---|
2369 | char *s;
|
---|
2370 | va_list v;
|
---|
2371 | va_start (v,p);
|
---|
2372 | s = g (p, va_arg (v,int));
|
---|
2373 | va_end (v);
|
---|
2374 | return s;
|
---|
2375 | }
|
---|
2376 | int test (int i, double x);
|
---|
2377 | struct s1 {int (*f) (int a);};
|
---|
2378 | struct s2 {int (*f) (double a);};
|
---|
2379 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
|
---|
2380 | int argc;
|
---|
2381 | char **argv;
|
---|
2382 | int
|
---|
2383 | main ()
|
---|
2384 | {
|
---|
2385 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
|
---|
2386 | ;
|
---|
2387 | return 0;
|
---|
2388 | }
|
---|
2389 | _ACEOF
|
---|
2390 | # Don't try gcc -ansi; that turns off useful extensions and
|
---|
2391 | # breaks some systems' header files.
|
---|
2392 | # AIX -qlanglvl=ansi
|
---|
2393 | # Ultrix and OSF/1 -std1
|
---|
2394 | # HP-UX 10.20 and later -Ae
|
---|
2395 | # HP-UX older versions -Aa -D_HPUX_SOURCE
|
---|
2396 | # SVR4 -Xc -D__EXTENSIONS__
|
---|
2397 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
|
---|
2398 | do
|
---|
2399 | CC="$ac_save_CC $ac_arg"
|
---|
2400 | rm -f conftest.$ac_objext
|
---|
2401 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
2402 | (eval $ac_compile) 2>&5
|
---|
2403 | ac_status=$?
|
---|
2404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2405 | (exit $ac_status); } &&
|
---|
2406 | { ac_try='test -s conftest.$ac_objext'
|
---|
2407 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2408 | (eval $ac_try) 2>&5
|
---|
2409 | ac_status=$?
|
---|
2410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2411 | (exit $ac_status); }; }; then
|
---|
2412 | ac_cv_prog_cc_stdc=$ac_arg
|
---|
2413 | break
|
---|
2414 | else
|
---|
2415 | echo "$as_me: failed program was:" >&5
|
---|
2416 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2417 |
|
---|
2418 | fi
|
---|
2419 | rm -f conftest.$ac_objext
|
---|
2420 | done
|
---|
2421 | rm -f conftest.$ac_ext conftest.$ac_objext
|
---|
2422 | CC=$ac_save_CC
|
---|
2423 |
|
---|
2424 | fi
|
---|
2425 |
|
---|
2426 | case "x$ac_cv_prog_cc_stdc" in
|
---|
2427 | x|xno)
|
---|
2428 | echo "$as_me:$LINENO: result: none needed" >&5
|
---|
2429 | echo "${ECHO_T}none needed" >&6 ;;
|
---|
2430 | *)
|
---|
2431 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
|
---|
2432 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
|
---|
2433 | CC="$CC $ac_cv_prog_cc_stdc" ;;
|
---|
2434 | esac
|
---|
2435 |
|
---|
2436 | # Some people use a C++ compiler to compile C. Since we use `exit',
|
---|
2437 | # in C++ we need to declare it. In case someone uses the same compiler
|
---|
2438 | # for both compiling C and C++ we need to have the C++ compiler decide
|
---|
2439 | # the declaration of exit, since it's the most demanding environment.
|
---|
2440 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2441 | #ifndef __cplusplus
|
---|
2442 | choke me
|
---|
2443 | #endif
|
---|
2444 | _ACEOF
|
---|
2445 | rm -f conftest.$ac_objext
|
---|
2446 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
2447 | (eval $ac_compile) 2>&5
|
---|
2448 | ac_status=$?
|
---|
2449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2450 | (exit $ac_status); } &&
|
---|
2451 | { ac_try='test -s conftest.$ac_objext'
|
---|
2452 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2453 | (eval $ac_try) 2>&5
|
---|
2454 | ac_status=$?
|
---|
2455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2456 | (exit $ac_status); }; }; then
|
---|
2457 | for ac_declaration in \
|
---|
2458 | ''\
|
---|
2459 | '#include <stdlib.h>' \
|
---|
2460 | 'extern "C" void std::exit (int) throw (); using std::exit;' \
|
---|
2461 | 'extern "C" void std::exit (int); using std::exit;' \
|
---|
2462 | 'extern "C" void exit (int) throw ();' \
|
---|
2463 | 'extern "C" void exit (int);' \
|
---|
2464 | 'void exit (int);'
|
---|
2465 | do
|
---|
2466 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2467 | #line $LINENO "configure"
|
---|
2468 | /* confdefs.h. */
|
---|
2469 | _ACEOF
|
---|
2470 | cat confdefs.h >>conftest.$ac_ext
|
---|
2471 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2472 | /* end confdefs.h. */
|
---|
2473 | #include <stdlib.h>
|
---|
2474 | $ac_declaration
|
---|
2475 | int
|
---|
2476 | main ()
|
---|
2477 | {
|
---|
2478 | exit (42);
|
---|
2479 | ;
|
---|
2480 | return 0;
|
---|
2481 | }
|
---|
2482 | _ACEOF
|
---|
2483 | rm -f conftest.$ac_objext
|
---|
2484 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
2485 | (eval $ac_compile) 2>&5
|
---|
2486 | ac_status=$?
|
---|
2487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2488 | (exit $ac_status); } &&
|
---|
2489 | { ac_try='test -s conftest.$ac_objext'
|
---|
2490 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2491 | (eval $ac_try) 2>&5
|
---|
2492 | ac_status=$?
|
---|
2493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2494 | (exit $ac_status); }; }; then
|
---|
2495 | :
|
---|
2496 | else
|
---|
2497 | echo "$as_me: failed program was:" >&5
|
---|
2498 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2499 |
|
---|
2500 | continue
|
---|
2501 | fi
|
---|
2502 | rm -f conftest.$ac_objext conftest.$ac_ext
|
---|
2503 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2504 | #line $LINENO "configure"
|
---|
2505 | /* confdefs.h. */
|
---|
2506 | _ACEOF
|
---|
2507 | cat confdefs.h >>conftest.$ac_ext
|
---|
2508 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2509 | /* end confdefs.h. */
|
---|
2510 | $ac_declaration
|
---|
2511 | int
|
---|
2512 | main ()
|
---|
2513 | {
|
---|
2514 | exit (42);
|
---|
2515 | ;
|
---|
2516 | return 0;
|
---|
2517 | }
|
---|
2518 | _ACEOF
|
---|
2519 | rm -f conftest.$ac_objext
|
---|
2520 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
2521 | (eval $ac_compile) 2>&5
|
---|
2522 | ac_status=$?
|
---|
2523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2524 | (exit $ac_status); } &&
|
---|
2525 | { ac_try='test -s conftest.$ac_objext'
|
---|
2526 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2527 | (eval $ac_try) 2>&5
|
---|
2528 | ac_status=$?
|
---|
2529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2530 | (exit $ac_status); }; }; then
|
---|
2531 | break
|
---|
2532 | else
|
---|
2533 | echo "$as_me: failed program was:" >&5
|
---|
2534 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2535 |
|
---|
2536 | fi
|
---|
2537 | rm -f conftest.$ac_objext conftest.$ac_ext
|
---|
2538 | done
|
---|
2539 | rm -f conftest*
|
---|
2540 | if test -n "$ac_declaration"; then
|
---|
2541 | echo '#ifdef __cplusplus' >>confdefs.h
|
---|
2542 | echo $ac_declaration >>confdefs.h
|
---|
2543 | echo '#endif' >>confdefs.h
|
---|
2544 | fi
|
---|
2545 |
|
---|
2546 | else
|
---|
2547 | echo "$as_me: failed program was:" >&5
|
---|
2548 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2549 |
|
---|
2550 | fi
|
---|
2551 | rm -f conftest.$ac_objext conftest.$ac_ext
|
---|
2552 | ac_ext=c
|
---|
2553 | ac_cpp='$CPP $CPPFLAGS'
|
---|
2554 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
2555 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
2556 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
2557 | rm -f .deps 2>/dev/null
|
---|
2558 | mkdir .deps 2>/dev/null
|
---|
2559 | if test -d .deps; then
|
---|
2560 | DEPDIR=.deps
|
---|
2561 | else
|
---|
2562 | # MS-DOS does not allow filenames that begin with a dot.
|
---|
2563 | DEPDIR=_deps
|
---|
2564 | fi
|
---|
2565 | rmdir .deps 2>/dev/null
|
---|
2566 |
|
---|
2567 |
|
---|
2568 | ac_config_commands="$ac_config_commands depfiles"
|
---|
2569 |
|
---|
2570 |
|
---|
2571 | am_make=${MAKE-make}
|
---|
2572 | cat > confinc << 'END'
|
---|
2573 | doit:
|
---|
2574 | @echo done
|
---|
2575 | END
|
---|
2576 | # If we don't find an include directive, just comment out the code.
|
---|
2577 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
|
---|
2578 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
|
---|
2579 | am__include="#"
|
---|
2580 | am__quote=
|
---|
2581 | _am_result=none
|
---|
2582 | # First try GNU make style include.
|
---|
2583 | echo "include confinc" > confmf
|
---|
2584 | # We grep out `Entering directory' and `Leaving directory'
|
---|
2585 | # messages which can occur if `w' ends up in MAKEFLAGS.
|
---|
2586 | # In particular we don't look at `^make:' because GNU make might
|
---|
2587 | # be invoked under some other name (usually "gmake"), in which
|
---|
2588 | # case it prints its new name instead of `make'.
|
---|
2589 | if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
|
---|
2590 | am__include=include
|
---|
2591 | am__quote=
|
---|
2592 | _am_result=GNU
|
---|
2593 | fi
|
---|
2594 | # Now try BSD make style include.
|
---|
2595 | if test "$am__include" = "#"; then
|
---|
2596 | echo '.include "confinc"' > confmf
|
---|
2597 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
|
---|
2598 | am__include=.include
|
---|
2599 | am__quote="\""
|
---|
2600 | _am_result=BSD
|
---|
2601 | fi
|
---|
2602 | fi
|
---|
2603 |
|
---|
2604 |
|
---|
2605 | echo "$as_me:$LINENO: result: $_am_result" >&5
|
---|
2606 | echo "${ECHO_T}$_am_result" >&6
|
---|
2607 | rm -f confinc confmf
|
---|
2608 |
|
---|
2609 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
|
---|
2610 | if test "${enable_dependency_tracking+set}" = set; then
|
---|
2611 | enableval="$enable_dependency_tracking"
|
---|
2612 |
|
---|
2613 | fi;
|
---|
2614 | if test "x$enable_dependency_tracking" != xno; then
|
---|
2615 | am_depcomp="$ac_aux_dir/depcomp"
|
---|
2616 | AMDEPBACKSLASH='\'
|
---|
2617 | fi
|
---|
2618 |
|
---|
2619 |
|
---|
2620 | if test "x$enable_dependency_tracking" != xno; then
|
---|
2621 | AMDEP_TRUE=
|
---|
2622 | AMDEP_FALSE='#'
|
---|
2623 | else
|
---|
2624 | AMDEP_TRUE='#'
|
---|
2625 | AMDEP_FALSE=
|
---|
2626 | fi
|
---|
2627 |
|
---|
2628 |
|
---|
2629 |
|
---|
2630 |
|
---|
2631 | depcc="$CC" am_compiler_list=
|
---|
2632 |
|
---|
2633 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
|
---|
2634 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
|
---|
2635 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
|
---|
2636 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2637 | else
|
---|
2638 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
|
---|
2639 | # We make a subdir and do the tests there. Otherwise we can end up
|
---|
2640 | # making bogus files that we don't know about and never remove. For
|
---|
2641 | # instance it was reported that on HP-UX the gcc test will end up
|
---|
2642 | # making a dummy file named `D' -- because `-MD' means `put the output
|
---|
2643 | # in D'.
|
---|
2644 | mkdir conftest.dir
|
---|
2645 | # Copy depcomp to subdir because otherwise we won't find it if we're
|
---|
2646 | # using a relative directory.
|
---|
2647 | cp "$am_depcomp" conftest.dir
|
---|
2648 | cd conftest.dir
|
---|
2649 |
|
---|
2650 | am_cv_CC_dependencies_compiler_type=none
|
---|
2651 | if test "$am_compiler_list" = ""; then
|
---|
2652 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
|
---|
2653 | fi
|
---|
2654 | for depmode in $am_compiler_list; do
|
---|
2655 | # We need to recreate these files for each test, as the compiler may
|
---|
2656 | # overwrite some of them when testing with obscure command lines.
|
---|
2657 | # This happens at least with the AIX C compiler.
|
---|
2658 | echo '#include "conftest.h"' > conftest.c
|
---|
2659 | echo 'int i;' > conftest.h
|
---|
2660 | echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
|
---|
2661 |
|
---|
2662 | case $depmode in
|
---|
2663 | nosideeffect)
|
---|
2664 | # after this tag, mechanisms are not by side-effect, so they'll
|
---|
2665 | # only be used when explicitly requested
|
---|
2666 | if test "x$enable_dependency_tracking" = xyes; then
|
---|
2667 | continue
|
---|
2668 | else
|
---|
2669 | break
|
---|
2670 | fi
|
---|
2671 | ;;
|
---|
2672 | none) break ;;
|
---|
2673 | esac
|
---|
2674 | # We check with `-c' and `-o' for the sake of the "dashmstdout"
|
---|
2675 | # mode. It turns out that the SunPro C++ compiler does not properly
|
---|
2676 | # handle `-M -o', and we need to detect this.
|
---|
2677 | if depmode=$depmode \
|
---|
2678 | source=conftest.c object=conftest.o \
|
---|
2679 | depfile=conftest.Po tmpdepfile=conftest.TPo \
|
---|
2680 | $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
|
---|
2681 | grep conftest.h conftest.Po > /dev/null 2>&1 &&
|
---|
2682 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
|
---|
2683 | am_cv_CC_dependencies_compiler_type=$depmode
|
---|
2684 | break
|
---|
2685 | fi
|
---|
2686 | done
|
---|
2687 |
|
---|
2688 | cd ..
|
---|
2689 | rm -rf conftest.dir
|
---|
2690 | else
|
---|
2691 | am_cv_CC_dependencies_compiler_type=none
|
---|
2692 | fi
|
---|
2693 |
|
---|
2694 | fi
|
---|
2695 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
|
---|
2696 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
|
---|
2697 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
|
---|
2698 |
|
---|
2699 |
|
---|
2700 | ac_ext=c
|
---|
2701 | ac_cpp='$CPP $CPPFLAGS'
|
---|
2702 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
2703 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
2704 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
2705 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
|
---|
2706 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
|
---|
2707 | # On Suns, sometimes $CPP names a directory.
|
---|
2708 | if test -n "$CPP" && test -d "$CPP"; then
|
---|
2709 | CPP=
|
---|
2710 | fi
|
---|
2711 | if test -z "$CPP"; then
|
---|
2712 | if test "${ac_cv_prog_CPP+set}" = set; then
|
---|
2713 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2714 | else
|
---|
2715 | # Double quotes because CPP needs to be expanded
|
---|
2716 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
|
---|
2717 | do
|
---|
2718 | ac_preproc_ok=false
|
---|
2719 | for ac_c_preproc_warn_flag in '' yes
|
---|
2720 | do
|
---|
2721 | # Use a header file that comes with gcc, so configuring glibc
|
---|
2722 | # with a fresh cross-compiler works.
|
---|
2723 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
2724 | # <limits.h> exists even on freestanding compilers.
|
---|
2725 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
2726 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
2727 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2728 | #line $LINENO "configure"
|
---|
2729 | /* confdefs.h. */
|
---|
2730 | _ACEOF
|
---|
2731 | cat confdefs.h >>conftest.$ac_ext
|
---|
2732 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2733 | /* end confdefs.h. */
|
---|
2734 | #ifdef __STDC__
|
---|
2735 | # include <limits.h>
|
---|
2736 | #else
|
---|
2737 | # include <assert.h>
|
---|
2738 | #endif
|
---|
2739 | Syntax error
|
---|
2740 | _ACEOF
|
---|
2741 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
2742 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
2743 | ac_status=$?
|
---|
2744 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2745 | rm -f conftest.er1
|
---|
2746 | cat conftest.err >&5
|
---|
2747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2748 | (exit $ac_status); } >/dev/null; then
|
---|
2749 | if test -s conftest.err; then
|
---|
2750 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
2751 | else
|
---|
2752 | ac_cpp_err=
|
---|
2753 | fi
|
---|
2754 | else
|
---|
2755 | ac_cpp_err=yes
|
---|
2756 | fi
|
---|
2757 | if test -z "$ac_cpp_err"; then
|
---|
2758 | :
|
---|
2759 | else
|
---|
2760 | echo "$as_me: failed program was:" >&5
|
---|
2761 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2762 |
|
---|
2763 | # Broken: fails on valid input.
|
---|
2764 | continue
|
---|
2765 | fi
|
---|
2766 | rm -f conftest.err conftest.$ac_ext
|
---|
2767 |
|
---|
2768 | # OK, works on sane cases. Now check whether non-existent headers
|
---|
2769 | # can be detected and how.
|
---|
2770 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2771 | #line $LINENO "configure"
|
---|
2772 | /* confdefs.h. */
|
---|
2773 | _ACEOF
|
---|
2774 | cat confdefs.h >>conftest.$ac_ext
|
---|
2775 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2776 | /* end confdefs.h. */
|
---|
2777 | #include <ac_nonexistent.h>
|
---|
2778 | _ACEOF
|
---|
2779 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
2780 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
2781 | ac_status=$?
|
---|
2782 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2783 | rm -f conftest.er1
|
---|
2784 | cat conftest.err >&5
|
---|
2785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2786 | (exit $ac_status); } >/dev/null; then
|
---|
2787 | if test -s conftest.err; then
|
---|
2788 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
2789 | else
|
---|
2790 | ac_cpp_err=
|
---|
2791 | fi
|
---|
2792 | else
|
---|
2793 | ac_cpp_err=yes
|
---|
2794 | fi
|
---|
2795 | if test -z "$ac_cpp_err"; then
|
---|
2796 | # Broken: success on invalid input.
|
---|
2797 | continue
|
---|
2798 | else
|
---|
2799 | echo "$as_me: failed program was:" >&5
|
---|
2800 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2801 |
|
---|
2802 | # Passes both tests.
|
---|
2803 | ac_preproc_ok=:
|
---|
2804 | break
|
---|
2805 | fi
|
---|
2806 | rm -f conftest.err conftest.$ac_ext
|
---|
2807 |
|
---|
2808 | done
|
---|
2809 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
2810 | rm -f conftest.err conftest.$ac_ext
|
---|
2811 | if $ac_preproc_ok; then
|
---|
2812 | break
|
---|
2813 | fi
|
---|
2814 |
|
---|
2815 | done
|
---|
2816 | ac_cv_prog_CPP=$CPP
|
---|
2817 |
|
---|
2818 | fi
|
---|
2819 | CPP=$ac_cv_prog_CPP
|
---|
2820 | else
|
---|
2821 | ac_cv_prog_CPP=$CPP
|
---|
2822 | fi
|
---|
2823 | echo "$as_me:$LINENO: result: $CPP" >&5
|
---|
2824 | echo "${ECHO_T}$CPP" >&6
|
---|
2825 | ac_preproc_ok=false
|
---|
2826 | for ac_c_preproc_warn_flag in '' yes
|
---|
2827 | do
|
---|
2828 | # Use a header file that comes with gcc, so configuring glibc
|
---|
2829 | # with a fresh cross-compiler works.
|
---|
2830 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
2831 | # <limits.h> exists even on freestanding compilers.
|
---|
2832 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
2833 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
2834 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2835 | #line $LINENO "configure"
|
---|
2836 | /* confdefs.h. */
|
---|
2837 | _ACEOF
|
---|
2838 | cat confdefs.h >>conftest.$ac_ext
|
---|
2839 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2840 | /* end confdefs.h. */
|
---|
2841 | #ifdef __STDC__
|
---|
2842 | # include <limits.h>
|
---|
2843 | #else
|
---|
2844 | # include <assert.h>
|
---|
2845 | #endif
|
---|
2846 | Syntax error
|
---|
2847 | _ACEOF
|
---|
2848 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
2849 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
2850 | ac_status=$?
|
---|
2851 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2852 | rm -f conftest.er1
|
---|
2853 | cat conftest.err >&5
|
---|
2854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2855 | (exit $ac_status); } >/dev/null; then
|
---|
2856 | if test -s conftest.err; then
|
---|
2857 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
2858 | else
|
---|
2859 | ac_cpp_err=
|
---|
2860 | fi
|
---|
2861 | else
|
---|
2862 | ac_cpp_err=yes
|
---|
2863 | fi
|
---|
2864 | if test -z "$ac_cpp_err"; then
|
---|
2865 | :
|
---|
2866 | else
|
---|
2867 | echo "$as_me: failed program was:" >&5
|
---|
2868 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2869 |
|
---|
2870 | # Broken: fails on valid input.
|
---|
2871 | continue
|
---|
2872 | fi
|
---|
2873 | rm -f conftest.err conftest.$ac_ext
|
---|
2874 |
|
---|
2875 | # OK, works on sane cases. Now check whether non-existent headers
|
---|
2876 | # can be detected and how.
|
---|
2877 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2878 | #line $LINENO "configure"
|
---|
2879 | /* confdefs.h. */
|
---|
2880 | _ACEOF
|
---|
2881 | cat confdefs.h >>conftest.$ac_ext
|
---|
2882 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2883 | /* end confdefs.h. */
|
---|
2884 | #include <ac_nonexistent.h>
|
---|
2885 | _ACEOF
|
---|
2886 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
2887 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
2888 | ac_status=$?
|
---|
2889 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2890 | rm -f conftest.er1
|
---|
2891 | cat conftest.err >&5
|
---|
2892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2893 | (exit $ac_status); } >/dev/null; then
|
---|
2894 | if test -s conftest.err; then
|
---|
2895 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
2896 | else
|
---|
2897 | ac_cpp_err=
|
---|
2898 | fi
|
---|
2899 | else
|
---|
2900 | ac_cpp_err=yes
|
---|
2901 | fi
|
---|
2902 | if test -z "$ac_cpp_err"; then
|
---|
2903 | # Broken: success on invalid input.
|
---|
2904 | continue
|
---|
2905 | else
|
---|
2906 | echo "$as_me: failed program was:" >&5
|
---|
2907 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2908 |
|
---|
2909 | # Passes both tests.
|
---|
2910 | ac_preproc_ok=:
|
---|
2911 | break
|
---|
2912 | fi
|
---|
2913 | rm -f conftest.err conftest.$ac_ext
|
---|
2914 |
|
---|
2915 | done
|
---|
2916 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
2917 | rm -f conftest.err conftest.$ac_ext
|
---|
2918 | if $ac_preproc_ok; then
|
---|
2919 | :
|
---|
2920 | else
|
---|
2921 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
|
---|
2922 | See \`config.log' for more details." >&5
|
---|
2923 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
|
---|
2924 | See \`config.log' for more details." >&2;}
|
---|
2925 | { (exit 1); exit 1; }; }
|
---|
2926 | fi
|
---|
2927 |
|
---|
2928 | ac_ext=c
|
---|
2929 | ac_cpp='$CPP $CPPFLAGS'
|
---|
2930 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
2931 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
2932 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
2933 |
|
---|
2934 | ac_ext=cc
|
---|
2935 | ac_cpp='$CXXCPP $CPPFLAGS'
|
---|
2936 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
2937 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
2938 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
---|
2939 | if test -n "$ac_tool_prefix"; then
|
---|
2940 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
|
---|
2941 | do
|
---|
2942 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
2943 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
2944 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
2945 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
2946 | if test "${ac_cv_prog_CXX+set}" = set; then
|
---|
2947 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2948 | else
|
---|
2949 | if test -n "$CXX"; then
|
---|
2950 | ac_cv_prog_CXX="$CXX" # Let the user override the test.
|
---|
2951 | else
|
---|
2952 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2953 | for as_dir in $PATH
|
---|
2954 | do
|
---|
2955 | IFS=$as_save_IFS
|
---|
2956 | test -z "$as_dir" && as_dir=.
|
---|
2957 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2958 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
2959 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
|
---|
2960 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
2961 | break 2
|
---|
2962 | fi
|
---|
2963 | done
|
---|
2964 | done
|
---|
2965 |
|
---|
2966 | fi
|
---|
2967 | fi
|
---|
2968 | CXX=$ac_cv_prog_CXX
|
---|
2969 | if test -n "$CXX"; then
|
---|
2970 | echo "$as_me:$LINENO: result: $CXX" >&5
|
---|
2971 | echo "${ECHO_T}$CXX" >&6
|
---|
2972 | else
|
---|
2973 | echo "$as_me:$LINENO: result: no" >&5
|
---|
2974 | echo "${ECHO_T}no" >&6
|
---|
2975 | fi
|
---|
2976 |
|
---|
2977 | test -n "$CXX" && break
|
---|
2978 | done
|
---|
2979 | fi
|
---|
2980 | if test -z "$CXX"; then
|
---|
2981 | ac_ct_CXX=$CXX
|
---|
2982 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
|
---|
2983 | do
|
---|
2984 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
2985 | set dummy $ac_prog; ac_word=$2
|
---|
2986 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
2987 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
2988 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
|
---|
2989 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2990 | else
|
---|
2991 | if test -n "$ac_ct_CXX"; then
|
---|
2992 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
|
---|
2993 | else
|
---|
2994 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2995 | for as_dir in $PATH
|
---|
2996 | do
|
---|
2997 | IFS=$as_save_IFS
|
---|
2998 | test -z "$as_dir" && as_dir=.
|
---|
2999 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
3000 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
3001 | ac_cv_prog_ac_ct_CXX="$ac_prog"
|
---|
3002 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
3003 | break 2
|
---|
3004 | fi
|
---|
3005 | done
|
---|
3006 | done
|
---|
3007 |
|
---|
3008 | fi
|
---|
3009 | fi
|
---|
3010 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
|
---|
3011 | if test -n "$ac_ct_CXX"; then
|
---|
3012 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
|
---|
3013 | echo "${ECHO_T}$ac_ct_CXX" >&6
|
---|
3014 | else
|
---|
3015 | echo "$as_me:$LINENO: result: no" >&5
|
---|
3016 | echo "${ECHO_T}no" >&6
|
---|
3017 | fi
|
---|
3018 |
|
---|
3019 | test -n "$ac_ct_CXX" && break
|
---|
3020 | done
|
---|
3021 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
|
---|
3022 |
|
---|
3023 | CXX=$ac_ct_CXX
|
---|
3024 | fi
|
---|
3025 |
|
---|
3026 |
|
---|
3027 | # Provide some information about the compiler.
|
---|
3028 | echo "$as_me:$LINENO:" \
|
---|
3029 | "checking for C++ compiler version" >&5
|
---|
3030 | ac_compiler=`set X $ac_compile; echo $2`
|
---|
3031 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
|
---|
3032 | (eval $ac_compiler --version </dev/null >&5) 2>&5
|
---|
3033 | ac_status=$?
|
---|
3034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3035 | (exit $ac_status); }
|
---|
3036 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
|
---|
3037 | (eval $ac_compiler -v </dev/null >&5) 2>&5
|
---|
3038 | ac_status=$?
|
---|
3039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3040 | (exit $ac_status); }
|
---|
3041 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
|
---|
3042 | (eval $ac_compiler -V </dev/null >&5) 2>&5
|
---|
3043 | ac_status=$?
|
---|
3044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3045 | (exit $ac_status); }
|
---|
3046 |
|
---|
3047 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
|
---|
3048 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
|
---|
3049 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
|
---|
3050 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3051 | else
|
---|
3052 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3053 | #line $LINENO "configure"
|
---|
3054 | /* confdefs.h. */
|
---|
3055 | _ACEOF
|
---|
3056 | cat confdefs.h >>conftest.$ac_ext
|
---|
3057 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3058 | /* end confdefs.h. */
|
---|
3059 |
|
---|
3060 | int
|
---|
3061 | main ()
|
---|
3062 | {
|
---|
3063 | #ifndef __GNUC__
|
---|
3064 | choke me
|
---|
3065 | #endif
|
---|
3066 |
|
---|
3067 | ;
|
---|
3068 | return 0;
|
---|
3069 | }
|
---|
3070 | _ACEOF
|
---|
3071 | rm -f conftest.$ac_objext
|
---|
3072 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
3073 | (eval $ac_compile) 2>&5
|
---|
3074 | ac_status=$?
|
---|
3075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3076 | (exit $ac_status); } &&
|
---|
3077 | { ac_try='test -s conftest.$ac_objext'
|
---|
3078 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3079 | (eval $ac_try) 2>&5
|
---|
3080 | ac_status=$?
|
---|
3081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3082 | (exit $ac_status); }; }; then
|
---|
3083 | ac_compiler_gnu=yes
|
---|
3084 | else
|
---|
3085 | echo "$as_me: failed program was:" >&5
|
---|
3086 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3087 |
|
---|
3088 | ac_compiler_gnu=no
|
---|
3089 | fi
|
---|
3090 | rm -f conftest.$ac_objext conftest.$ac_ext
|
---|
3091 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
|
---|
3092 |
|
---|
3093 | fi
|
---|
3094 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
|
---|
3095 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
|
---|
3096 | GXX=`test $ac_compiler_gnu = yes && echo yes`
|
---|
3097 | ac_test_CXXFLAGS=${CXXFLAGS+set}
|
---|
3098 | ac_save_CXXFLAGS=$CXXFLAGS
|
---|
3099 | CXXFLAGS="-g"
|
---|
3100 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
|
---|
3101 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
|
---|
3102 | if test "${ac_cv_prog_cxx_g+set}" = set; then
|
---|
3103 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3104 | else
|
---|
3105 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3106 | #line $LINENO "configure"
|
---|
3107 | /* confdefs.h. */
|
---|
3108 | _ACEOF
|
---|
3109 | cat confdefs.h >>conftest.$ac_ext
|
---|
3110 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3111 | /* end confdefs.h. */
|
---|
3112 |
|
---|
3113 | int
|
---|
3114 | main ()
|
---|
3115 | {
|
---|
3116 |
|
---|
3117 | ;
|
---|
3118 | return 0;
|
---|
3119 | }
|
---|
3120 | _ACEOF
|
---|
3121 | rm -f conftest.$ac_objext
|
---|
3122 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
3123 | (eval $ac_compile) 2>&5
|
---|
3124 | ac_status=$?
|
---|
3125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3126 | (exit $ac_status); } &&
|
---|
3127 | { ac_try='test -s conftest.$ac_objext'
|
---|
3128 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3129 | (eval $ac_try) 2>&5
|
---|
3130 | ac_status=$?
|
---|
3131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3132 | (exit $ac_status); }; }; then
|
---|
3133 | ac_cv_prog_cxx_g=yes
|
---|
3134 | else
|
---|
3135 | echo "$as_me: failed program was:" >&5
|
---|
3136 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3137 |
|
---|
3138 | ac_cv_prog_cxx_g=no
|
---|
3139 | fi
|
---|
3140 | rm -f conftest.$ac_objext conftest.$ac_ext
|
---|
3141 | fi
|
---|
3142 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
|
---|
3143 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
|
---|
3144 | if test "$ac_test_CXXFLAGS" = set; then
|
---|
3145 | CXXFLAGS=$ac_save_CXXFLAGS
|
---|
3146 | elif test $ac_cv_prog_cxx_g = yes; then
|
---|
3147 | if test "$GXX" = yes; then
|
---|
3148 | CXXFLAGS="-g -O2"
|
---|
3149 | else
|
---|
3150 | CXXFLAGS="-g"
|
---|
3151 | fi
|
---|
3152 | else
|
---|
3153 | if test "$GXX" = yes; then
|
---|
3154 | CXXFLAGS="-O2"
|
---|
3155 | else
|
---|
3156 | CXXFLAGS=
|
---|
3157 | fi
|
---|
3158 | fi
|
---|
3159 | for ac_declaration in \
|
---|
3160 | ''\
|
---|
3161 | '#include <stdlib.h>' \
|
---|
3162 | 'extern "C" void std::exit (int) throw (); using std::exit;' \
|
---|
3163 | 'extern "C" void std::exit (int); using std::exit;' \
|
---|
3164 | 'extern "C" void exit (int) throw ();' \
|
---|
3165 | 'extern "C" void exit (int);' \
|
---|
3166 | 'void exit (int);'
|
---|
3167 | do
|
---|
3168 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3169 | #line $LINENO "configure"
|
---|
3170 | /* confdefs.h. */
|
---|
3171 | _ACEOF
|
---|
3172 | cat confdefs.h >>conftest.$ac_ext
|
---|
3173 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3174 | /* end confdefs.h. */
|
---|
3175 | #include <stdlib.h>
|
---|
3176 | $ac_declaration
|
---|
3177 | int
|
---|
3178 | main ()
|
---|
3179 | {
|
---|
3180 | exit (42);
|
---|
3181 | ;
|
---|
3182 | return 0;
|
---|
3183 | }
|
---|
3184 | _ACEOF
|
---|
3185 | rm -f conftest.$ac_objext
|
---|
3186 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
3187 | (eval $ac_compile) 2>&5
|
---|
3188 | ac_status=$?
|
---|
3189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3190 | (exit $ac_status); } &&
|
---|
3191 | { ac_try='test -s conftest.$ac_objext'
|
---|
3192 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3193 | (eval $ac_try) 2>&5
|
---|
3194 | ac_status=$?
|
---|
3195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3196 | (exit $ac_status); }; }; then
|
---|
3197 | :
|
---|
3198 | else
|
---|
3199 | echo "$as_me: failed program was:" >&5
|
---|
3200 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3201 |
|
---|
3202 | continue
|
---|
3203 | fi
|
---|
3204 | rm -f conftest.$ac_objext conftest.$ac_ext
|
---|
3205 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3206 | #line $LINENO "configure"
|
---|
3207 | /* confdefs.h. */
|
---|
3208 | _ACEOF
|
---|
3209 | cat confdefs.h >>conftest.$ac_ext
|
---|
3210 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3211 | /* end confdefs.h. */
|
---|
3212 | $ac_declaration
|
---|
3213 | int
|
---|
3214 | main ()
|
---|
3215 | {
|
---|
3216 | exit (42);
|
---|
3217 | ;
|
---|
3218 | return 0;
|
---|
3219 | }
|
---|
3220 | _ACEOF
|
---|
3221 | rm -f conftest.$ac_objext
|
---|
3222 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
3223 | (eval $ac_compile) 2>&5
|
---|
3224 | ac_status=$?
|
---|
3225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3226 | (exit $ac_status); } &&
|
---|
3227 | { ac_try='test -s conftest.$ac_objext'
|
---|
3228 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3229 | (eval $ac_try) 2>&5
|
---|
3230 | ac_status=$?
|
---|
3231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3232 | (exit $ac_status); }; }; then
|
---|
3233 | break
|
---|
3234 | else
|
---|
3235 | echo "$as_me: failed program was:" >&5
|
---|
3236 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3237 |
|
---|
3238 | fi
|
---|
3239 | rm -f conftest.$ac_objext conftest.$ac_ext
|
---|
3240 | done
|
---|
3241 | rm -f conftest*
|
---|
3242 | if test -n "$ac_declaration"; then
|
---|
3243 | echo '#ifdef __cplusplus' >>confdefs.h
|
---|
3244 | echo $ac_declaration >>confdefs.h
|
---|
3245 | echo '#endif' >>confdefs.h
|
---|
3246 | fi
|
---|
3247 |
|
---|
3248 | ac_ext=c
|
---|
3249 | ac_cpp='$CPP $CPPFLAGS'
|
---|
3250 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
3251 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
3252 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
3253 |
|
---|
3254 | depcc="$CXX" am_compiler_list=
|
---|
3255 |
|
---|
3256 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
|
---|
3257 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
|
---|
3258 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
|
---|
3259 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3260 | else
|
---|
3261 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
|
---|
3262 | # We make a subdir and do the tests there. Otherwise we can end up
|
---|
3263 | # making bogus files that we don't know about and never remove. For
|
---|
3264 | # instance it was reported that on HP-UX the gcc test will end up
|
---|
3265 | # making a dummy file named `D' -- because `-MD' means `put the output
|
---|
3266 | # in D'.
|
---|
3267 | mkdir conftest.dir
|
---|
3268 | # Copy depcomp to subdir because otherwise we won't find it if we're
|
---|
3269 | # using a relative directory.
|
---|
3270 | cp "$am_depcomp" conftest.dir
|
---|
3271 | cd conftest.dir
|
---|
3272 |
|
---|
3273 | am_cv_CXX_dependencies_compiler_type=none
|
---|
3274 | if test "$am_compiler_list" = ""; then
|
---|
3275 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
|
---|
3276 | fi
|
---|
3277 | for depmode in $am_compiler_list; do
|
---|
3278 | # We need to recreate these files for each test, as the compiler may
|
---|
3279 | # overwrite some of them when testing with obscure command lines.
|
---|
3280 | # This happens at least with the AIX C compiler.
|
---|
3281 | echo '#include "conftest.h"' > conftest.c
|
---|
3282 | echo 'int i;' > conftest.h
|
---|
3283 | echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
|
---|
3284 |
|
---|
3285 | case $depmode in
|
---|
3286 | nosideeffect)
|
---|
3287 | # after this tag, mechanisms are not by side-effect, so they'll
|
---|
3288 | # only be used when explicitly requested
|
---|
3289 | if test "x$enable_dependency_tracking" = xyes; then
|
---|
3290 | continue
|
---|
3291 | else
|
---|
3292 | break
|
---|
3293 | fi
|
---|
3294 | ;;
|
---|
3295 | none) break ;;
|
---|
3296 | esac
|
---|
3297 | # We check with `-c' and `-o' for the sake of the "dashmstdout"
|
---|
3298 | # mode. It turns out that the SunPro C++ compiler does not properly
|
---|
3299 | # handle `-M -o', and we need to detect this.
|
---|
3300 | if depmode=$depmode \
|
---|
3301 | source=conftest.c object=conftest.o \
|
---|
3302 | depfile=conftest.Po tmpdepfile=conftest.TPo \
|
---|
3303 | $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
|
---|
3304 | grep conftest.h conftest.Po > /dev/null 2>&1 &&
|
---|
3305 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
|
---|
3306 | am_cv_CXX_dependencies_compiler_type=$depmode
|
---|
3307 | break
|
---|
3308 | fi
|
---|
3309 | done
|
---|
3310 |
|
---|
3311 | cd ..
|
---|
3312 | rm -rf conftest.dir
|
---|
3313 | else
|
---|
3314 | am_cv_CXX_dependencies_compiler_type=none
|
---|
3315 | fi
|
---|
3316 |
|
---|
3317 | fi
|
---|
3318 | echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
|
---|
3319 | echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
|
---|
3320 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
|
---|
3321 |
|
---|
3322 |
|
---|
3323 |
|
---|
3324 | # Check whether some low-level functions/files are available
|
---|
3325 |
|
---|
3326 |
|
---|
3327 | echo "$as_me:$LINENO: checking for egrep" >&5
|
---|
3328 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6
|
---|
3329 | if test "${ac_cv_prog_egrep+set}" = set; then
|
---|
3330 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3331 | else
|
---|
3332 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1
|
---|
3333 | then ac_cv_prog_egrep='grep -E'
|
---|
3334 | else ac_cv_prog_egrep='egrep'
|
---|
3335 | fi
|
---|
3336 | fi
|
---|
3337 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
|
---|
3338 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6
|
---|
3339 | EGREP=$ac_cv_prog_egrep
|
---|
3340 |
|
---|
3341 |
|
---|
3342 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5
|
---|
3343 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
|
---|
3344 | if test "${ac_cv_header_stdc+set}" = set; then
|
---|
3345 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3346 | else
|
---|
3347 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3348 | #line $LINENO "configure"
|
---|
3349 | /* confdefs.h. */
|
---|
3350 | _ACEOF
|
---|
3351 | cat confdefs.h >>conftest.$ac_ext
|
---|
3352 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3353 | /* end confdefs.h. */
|
---|
3354 | #include <stdlib.h>
|
---|
3355 | #include <stdarg.h>
|
---|
3356 | #include <string.h>
|
---|
3357 | #include <float.h>
|
---|
3358 |
|
---|
3359 | int
|
---|
3360 | main ()
|
---|
3361 | {
|
---|
3362 |
|
---|
3363 | ;
|
---|
3364 | return 0;
|
---|
3365 | }
|
---|
3366 | _ACEOF
|
---|
3367 | rm -f conftest.$ac_objext
|
---|
3368 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
3369 | (eval $ac_compile) 2>&5
|
---|
3370 | ac_status=$?
|
---|
3371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3372 | (exit $ac_status); } &&
|
---|
3373 | { ac_try='test -s conftest.$ac_objext'
|
---|
3374 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3375 | (eval $ac_try) 2>&5
|
---|
3376 | ac_status=$?
|
---|
3377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3378 | (exit $ac_status); }; }; then
|
---|
3379 | ac_cv_header_stdc=yes
|
---|
3380 | else
|
---|
3381 | echo "$as_me: failed program was:" >&5
|
---|
3382 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3383 |
|
---|
3384 | ac_cv_header_stdc=no
|
---|
3385 | fi
|
---|
3386 | rm -f conftest.$ac_objext conftest.$ac_ext
|
---|
3387 |
|
---|
3388 | if test $ac_cv_header_stdc = yes; then
|
---|
3389 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
3390 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3391 | #line $LINENO "configure"
|
---|
3392 | /* confdefs.h. */
|
---|
3393 | _ACEOF
|
---|
3394 | cat confdefs.h >>conftest.$ac_ext
|
---|
3395 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3396 | /* end confdefs.h. */
|
---|
3397 | #include <string.h>
|
---|
3398 |
|
---|
3399 | _ACEOF
|
---|
3400 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
3401 | $EGREP "memchr" >/dev/null 2>&1; then
|
---|
3402 | :
|
---|
3403 | else
|
---|
3404 | ac_cv_header_stdc=no
|
---|
3405 | fi
|
---|
3406 | rm -f conftest*
|
---|
3407 |
|
---|
3408 | fi
|
---|
3409 |
|
---|
3410 | if test $ac_cv_header_stdc = yes; then
|
---|
3411 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
3412 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3413 | #line $LINENO "configure"
|
---|
3414 | /* confdefs.h. */
|
---|
3415 | _ACEOF
|
---|
3416 | cat confdefs.h >>conftest.$ac_ext
|
---|
3417 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3418 | /* end confdefs.h. */
|
---|
3419 | #include <stdlib.h>
|
---|
3420 |
|
---|
3421 | _ACEOF
|
---|
3422 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
3423 | $EGREP "free" >/dev/null 2>&1; then
|
---|
3424 | :
|
---|
3425 | else
|
---|
3426 | ac_cv_header_stdc=no
|
---|
3427 | fi
|
---|
3428 | rm -f conftest*
|
---|
3429 |
|
---|
3430 | fi
|
---|
3431 |
|
---|
3432 | if test $ac_cv_header_stdc = yes; then
|
---|
3433 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
3434 | if test "$cross_compiling" = yes; then
|
---|
3435 | :
|
---|
3436 | else
|
---|
3437 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3438 | #line $LINENO "configure"
|
---|
3439 | /* confdefs.h. */
|
---|
3440 | _ACEOF
|
---|
3441 | cat confdefs.h >>conftest.$ac_ext
|
---|
3442 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3443 | /* end confdefs.h. */
|
---|
3444 | #include <ctype.h>
|
---|
3445 | #if ((' ' & 0x0FF) == 0x020)
|
---|
3446 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
3447 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
3448 | #else
|
---|
3449 | # define ISLOWER(c) \
|
---|
3450 | (('a' <= (c) && (c) <= 'i') \
|
---|
3451 | || ('j' <= (c) && (c) <= 'r') \
|
---|
3452 | || ('s' <= (c) && (c) <= 'z'))
|
---|
3453 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
---|
3454 | #endif
|
---|
3455 |
|
---|
3456 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
3457 | int
|
---|
3458 | main ()
|
---|
3459 | {
|
---|
3460 | int i;
|
---|
3461 | for (i = 0; i < 256; i++)
|
---|
3462 | if (XOR (islower (i), ISLOWER (i))
|
---|
3463 | || toupper (i) != TOUPPER (i))
|
---|
3464 | exit(2);
|
---|
3465 | exit (0);
|
---|
3466 | }
|
---|
3467 | _ACEOF
|
---|
3468 | rm -f conftest$ac_exeext
|
---|
3469 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
3470 | (eval $ac_link) 2>&5
|
---|
3471 | ac_status=$?
|
---|
3472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3473 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
3474 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3475 | (eval $ac_try) 2>&5
|
---|
3476 | ac_status=$?
|
---|
3477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3478 | (exit $ac_status); }; }; then
|
---|
3479 | :
|
---|
3480 | else
|
---|
3481 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
3482 | echo "$as_me: failed program was:" >&5
|
---|
3483 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3484 |
|
---|
3485 | ( exit $ac_status )
|
---|
3486 | ac_cv_header_stdc=no
|
---|
3487 | fi
|
---|
3488 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
3489 | fi
|
---|
3490 | fi
|
---|
3491 | fi
|
---|
3492 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
|
---|
3493 | echo "${ECHO_T}$ac_cv_header_stdc" >&6
|
---|
3494 | if test $ac_cv_header_stdc = yes; then
|
---|
3495 |
|
---|
3496 | cat >>confdefs.h <<\_ACEOF
|
---|
3497 | #define STDC_HEADERS 1
|
---|
3498 | _ACEOF
|
---|
3499 |
|
---|
3500 | fi
|
---|
3501 |
|
---|
3502 |
|
---|
3503 |
|
---|
3504 | for ac_func in memcpy memmove
|
---|
3505 | do
|
---|
3506 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
3507 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
3508 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
3509 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
3510 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3511 | else
|
---|
3512 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3513 | #line $LINENO "configure"
|
---|
3514 | /* confdefs.h. */
|
---|
3515 | _ACEOF
|
---|
3516 | cat confdefs.h >>conftest.$ac_ext
|
---|
3517 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3518 | /* end confdefs.h. */
|
---|
3519 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
3520 | which can conflict with char $ac_func (); below.
|
---|
3521 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
3522 | <limits.h> exists even on freestanding compilers. */
|
---|
3523 | #ifdef __STDC__
|
---|
3524 | # include <limits.h>
|
---|
3525 | #else
|
---|
3526 | # include <assert.h>
|
---|
3527 | #endif
|
---|
3528 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
3529 | #ifdef __cplusplus
|
---|
3530 | extern "C"
|
---|
3531 | {
|
---|
3532 | #endif
|
---|
3533 | /* We use char because int might match the return type of a gcc2
|
---|
3534 | builtin and then its argument prototype would still apply. */
|
---|
3535 | char $ac_func ();
|
---|
3536 | /* The GNU C library defines this for functions which it implements
|
---|
3537 | to always fail with ENOSYS. Some functions are actually named
|
---|
3538 | something starting with __ and the normal name is an alias. */
|
---|
3539 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
3540 | choke me
|
---|
3541 | #else
|
---|
3542 | char (*f) () = $ac_func;
|
---|
3543 | #endif
|
---|
3544 | #ifdef __cplusplus
|
---|
3545 | }
|
---|
3546 | #endif
|
---|
3547 |
|
---|
3548 | int
|
---|
3549 | main ()
|
---|
3550 | {
|
---|
3551 | return f != $ac_func;
|
---|
3552 | ;
|
---|
3553 | return 0;
|
---|
3554 | }
|
---|
3555 | _ACEOF
|
---|
3556 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
3557 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
3558 | (eval $ac_link) 2>&5
|
---|
3559 | ac_status=$?
|
---|
3560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3561 | (exit $ac_status); } &&
|
---|
3562 | { ac_try='test -s conftest$ac_exeext'
|
---|
3563 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3564 | (eval $ac_try) 2>&5
|
---|
3565 | ac_status=$?
|
---|
3566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3567 | (exit $ac_status); }; }; then
|
---|
3568 | eval "$as_ac_var=yes"
|
---|
3569 | else
|
---|
3570 | echo "$as_me: failed program was:" >&5
|
---|
3571 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3572 |
|
---|
3573 | eval "$as_ac_var=no"
|
---|
3574 | fi
|
---|
3575 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
|
---|
3576 | fi
|
---|
3577 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
3578 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
3579 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
3580 | cat >>confdefs.h <<_ACEOF
|
---|
3581 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
3582 | _ACEOF
|
---|
3583 |
|
---|
3584 | fi
|
---|
3585 | done
|
---|
3586 |
|
---|
3587 | # On IRIX 5.3, sys/types and inttypes.h are conflicting.
|
---|
3588 |
|
---|
3589 |
|
---|
3590 |
|
---|
3591 |
|
---|
3592 |
|
---|
3593 |
|
---|
3594 |
|
---|
3595 |
|
---|
3596 |
|
---|
3597 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
|
---|
3598 | inttypes.h stdint.h unistd.h
|
---|
3599 | do
|
---|
3600 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
3601 | echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
3602 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
---|
3603 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
3604 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3605 | else
|
---|
3606 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3607 | #line $LINENO "configure"
|
---|
3608 | /* confdefs.h. */
|
---|
3609 | _ACEOF
|
---|
3610 | cat confdefs.h >>conftest.$ac_ext
|
---|
3611 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3612 | /* end confdefs.h. */
|
---|
3613 | $ac_includes_default
|
---|
3614 |
|
---|
3615 | #include <$ac_header>
|
---|
3616 | _ACEOF
|
---|
3617 | rm -f conftest.$ac_objext
|
---|
3618 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
3619 | (eval $ac_compile) 2>&5
|
---|
3620 | ac_status=$?
|
---|
3621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3622 | (exit $ac_status); } &&
|
---|
3623 | { ac_try='test -s conftest.$ac_objext'
|
---|
3624 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3625 | (eval $ac_try) 2>&5
|
---|
3626 | ac_status=$?
|
---|
3627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3628 | (exit $ac_status); }; }; then
|
---|
3629 | eval "$as_ac_Header=yes"
|
---|
3630 | else
|
---|
3631 | echo "$as_me: failed program was:" >&5
|
---|
3632 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3633 |
|
---|
3634 | eval "$as_ac_Header=no"
|
---|
3635 | fi
|
---|
3636 | rm -f conftest.$ac_objext conftest.$ac_ext
|
---|
3637 | fi
|
---|
3638 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
3639 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
3640 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
3641 | cat >>confdefs.h <<_ACEOF
|
---|
3642 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
3643 | _ACEOF
|
---|
3644 |
|
---|
3645 | fi
|
---|
3646 |
|
---|
3647 | done
|
---|
3648 |
|
---|
3649 |
|
---|
3650 | echo "$as_me:$LINENO: checking for u_int16_t" >&5
|
---|
3651 | echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6
|
---|
3652 | if test "${ac_cv_type_u_int16_t+set}" = set; then
|
---|
3653 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3654 | else
|
---|
3655 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3656 | #line $LINENO "configure"
|
---|
3657 | /* confdefs.h. */
|
---|
3658 | _ACEOF
|
---|
3659 | cat confdefs.h >>conftest.$ac_ext
|
---|
3660 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3661 | /* end confdefs.h. */
|
---|
3662 | $ac_includes_default
|
---|
3663 | int
|
---|
3664 | main ()
|
---|
3665 | {
|
---|
3666 | if ((u_int16_t *) 0)
|
---|
3667 | return 0;
|
---|
3668 | if (sizeof (u_int16_t))
|
---|
3669 | return 0;
|
---|
3670 | ;
|
---|
3671 | return 0;
|
---|
3672 | }
|
---|
3673 | _ACEOF
|
---|
3674 | rm -f conftest.$ac_objext
|
---|
3675 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
3676 | (eval $ac_compile) 2>&5
|
---|
3677 | ac_status=$?
|
---|
3678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3679 | (exit $ac_status); } &&
|
---|
3680 | { ac_try='test -s conftest.$ac_objext'
|
---|
3681 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3682 | (eval $ac_try) 2>&5
|
---|
3683 | ac_status=$?
|
---|
3684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3685 | (exit $ac_status); }; }; then
|
---|
3686 | ac_cv_type_u_int16_t=yes
|
---|
3687 | else
|
---|
3688 | echo "$as_me: failed program was:" >&5
|
---|
3689 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3690 |
|
---|
3691 | ac_cv_type_u_int16_t=no
|
---|
3692 | fi
|
---|
3693 | rm -f conftest.$ac_objext conftest.$ac_ext
|
---|
3694 | fi
|
---|
3695 | echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
|
---|
3696 | echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6
|
---|
3697 | if test $ac_cv_type_u_int16_t = yes; then
|
---|
3698 |
|
---|
3699 | cat >>confdefs.h <<_ACEOF
|
---|
3700 | #define HAVE_U_INT16_T 1
|
---|
3701 | _ACEOF
|
---|
3702 |
|
---|
3703 |
|
---|
3704 | fi
|
---|
3705 | # defined in most posix systems
|
---|
3706 | echo "$as_me:$LINENO: checking for __uint16" >&5
|
---|
3707 | echo $ECHO_N "checking for __uint16... $ECHO_C" >&6
|
---|
3708 | if test "${ac_cv_type___uint16+set}" = set; then
|
---|
3709 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3710 | else
|
---|
3711 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3712 | #line $LINENO "configure"
|
---|
3713 | /* confdefs.h. */
|
---|
3714 | _ACEOF
|
---|
3715 | cat confdefs.h >>conftest.$ac_ext
|
---|
3716 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3717 | /* end confdefs.h. */
|
---|
3718 | $ac_includes_default
|
---|
3719 | int
|
---|
3720 | main ()
|
---|
3721 | {
|
---|
3722 | if ((__uint16 *) 0)
|
---|
3723 | return 0;
|
---|
3724 | if (sizeof (__uint16))
|
---|
3725 | return 0;
|
---|
3726 | ;
|
---|
3727 | return 0;
|
---|
3728 | }
|
---|
3729 | _ACEOF
|
---|
3730 | rm -f conftest.$ac_objext
|
---|
3731 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
3732 | (eval $ac_compile) 2>&5
|
---|
3733 | ac_status=$?
|
---|
3734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3735 | (exit $ac_status); } &&
|
---|
3736 | { ac_try='test -s conftest.$ac_objext'
|
---|
3737 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3738 | (eval $ac_try) 2>&5
|
---|
3739 | ac_status=$?
|
---|
3740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3741 | (exit $ac_status); }; }; then
|
---|
3742 | ac_cv_type___uint16=yes
|
---|
3743 | else
|
---|
3744 | echo "$as_me: failed program was:" >&5
|
---|
3745 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3746 |
|
---|
3747 | ac_cv_type___uint16=no
|
---|
3748 | fi
|
---|
3749 | rm -f conftest.$ac_objext conftest.$ac_ext
|
---|
3750 | fi
|
---|
3751 | echo "$as_me:$LINENO: result: $ac_cv_type___uint16" >&5
|
---|
3752 | echo "${ECHO_T}$ac_cv_type___uint16" >&6
|
---|
3753 | if test $ac_cv_type___uint16 = yes; then
|
---|
3754 |
|
---|
3755 | cat >>confdefs.h <<_ACEOF
|
---|
3756 | #define HAVE___UINT16 1
|
---|
3757 | _ACEOF
|
---|
3758 |
|
---|
3759 |
|
---|
3760 | fi
|
---|
3761 | # defined in some windows systems (vc7)
|
---|
3762 | # These are 'only' needed for unittests
|
---|
3763 |
|
---|
3764 |
|
---|
3765 |
|
---|
3766 |
|
---|
3767 | for ac_header in sys/resource.h unistd.h sys/time.h sys/utsname.h
|
---|
3768 | do
|
---|
3769 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
3770 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
3771 | echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
3772 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
---|
3773 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
3774 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3775 | fi
|
---|
3776 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
3777 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
3778 | else
|
---|
3779 | # Is the header compilable?
|
---|
3780 | echo "$as_me:$LINENO: checking $ac_header usability" >&5
|
---|
3781 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
|
---|
3782 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3783 | #line $LINENO "configure"
|
---|
3784 | /* confdefs.h. */
|
---|
3785 | _ACEOF
|
---|
3786 | cat confdefs.h >>conftest.$ac_ext
|
---|
3787 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3788 | /* end confdefs.h. */
|
---|
3789 | $ac_includes_default
|
---|
3790 | #include <$ac_header>
|
---|
3791 | _ACEOF
|
---|
3792 | rm -f conftest.$ac_objext
|
---|
3793 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
3794 | (eval $ac_compile) 2>&5
|
---|
3795 | ac_status=$?
|
---|
3796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3797 | (exit $ac_status); } &&
|
---|
3798 | { ac_try='test -s conftest.$ac_objext'
|
---|
3799 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3800 | (eval $ac_try) 2>&5
|
---|
3801 | ac_status=$?
|
---|
3802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3803 | (exit $ac_status); }; }; then
|
---|
3804 | ac_header_compiler=yes
|
---|
3805 | else
|
---|
3806 | echo "$as_me: failed program was:" >&5
|
---|
3807 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3808 |
|
---|
3809 | ac_header_compiler=no
|
---|
3810 | fi
|
---|
3811 | rm -f conftest.$ac_objext conftest.$ac_ext
|
---|
3812 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
---|
3813 | echo "${ECHO_T}$ac_header_compiler" >&6
|
---|
3814 |
|
---|
3815 | # Is the header present?
|
---|
3816 | echo "$as_me:$LINENO: checking $ac_header presence" >&5
|
---|
3817 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
|
---|
3818 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3819 | #line $LINENO "configure"
|
---|
3820 | /* confdefs.h. */
|
---|
3821 | _ACEOF
|
---|
3822 | cat confdefs.h >>conftest.$ac_ext
|
---|
3823 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3824 | /* end confdefs.h. */
|
---|
3825 | #include <$ac_header>
|
---|
3826 | _ACEOF
|
---|
3827 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
3828 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
3829 | ac_status=$?
|
---|
3830 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3831 | rm -f conftest.er1
|
---|
3832 | cat conftest.err >&5
|
---|
3833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3834 | (exit $ac_status); } >/dev/null; then
|
---|
3835 | if test -s conftest.err; then
|
---|
3836 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
3837 | else
|
---|
3838 | ac_cpp_err=
|
---|
3839 | fi
|
---|
3840 | else
|
---|
3841 | ac_cpp_err=yes
|
---|
3842 | fi
|
---|
3843 | if test -z "$ac_cpp_err"; then
|
---|
3844 | ac_header_preproc=yes
|
---|
3845 | else
|
---|
3846 | echo "$as_me: failed program was:" >&5
|
---|
3847 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3848 |
|
---|
3849 | ac_header_preproc=no
|
---|
3850 | fi
|
---|
3851 | rm -f conftest.err conftest.$ac_ext
|
---|
3852 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
---|
3853 | echo "${ECHO_T}$ac_header_preproc" >&6
|
---|
3854 |
|
---|
3855 | # So? What about this header?
|
---|
3856 | case $ac_header_compiler:$ac_header_preproc in
|
---|
3857 | yes:no )
|
---|
3858 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
3859 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
3860 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
|
---|
3861 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
|
---|
3862 | (
|
---|
3863 | cat <<\_ASBOX
|
---|
3864 | ## ------------------------------------ ##
|
---|
3865 | ## Report this to bug-autoconf@gnu.org. ##
|
---|
3866 | ## ------------------------------------ ##
|
---|
3867 | _ASBOX
|
---|
3868 | ) |
|
---|
3869 | sed "s/^/$as_me: WARNING: /" >&2
|
---|
3870 | ;;
|
---|
3871 | no:yes )
|
---|
3872 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
|
---|
3873 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
|
---|
3874 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
|
---|
3875 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
|
---|
3876 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
|
---|
3877 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
|
---|
3878 | (
|
---|
3879 | cat <<\_ASBOX
|
---|
3880 | ## ------------------------------------ ##
|
---|
3881 | ## Report this to bug-autoconf@gnu.org. ##
|
---|
3882 | ## ------------------------------------ ##
|
---|
3883 | _ASBOX
|
---|
3884 | ) |
|
---|
3885 | sed "s/^/$as_me: WARNING: /" >&2
|
---|
3886 | ;;
|
---|
3887 | esac
|
---|
3888 | echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
3889 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
---|
3890 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
3891 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3892 | else
|
---|
3893 | eval "$as_ac_Header=$ac_header_preproc"
|
---|
3894 | fi
|
---|
3895 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
3896 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
3897 |
|
---|
3898 | fi
|
---|
3899 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
3900 | cat >>confdefs.h <<_ACEOF
|
---|
3901 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
3902 | _ACEOF
|
---|
3903 |
|
---|
3904 | fi
|
---|
3905 |
|
---|
3906 | done
|
---|
3907 |
|
---|
3908 |
|
---|
3909 | # Writes the header files for hash_map, hash_set, and hash_fun into .
|
---|
3910 | # This also tells us what namespace hash code lives in.
|
---|
3911 |
|
---|
3912 | echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
|
---|
3913 | echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
|
---|
3914 | if test "${ac_cv_cxx_namespaces+set}" = set; then
|
---|
3915 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3916 | else
|
---|
3917 |
|
---|
3918 |
|
---|
3919 | ac_ext=cc
|
---|
3920 | ac_cpp='$CXXCPP $CPPFLAGS'
|
---|
3921 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
3922 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
3923 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
---|
3924 |
|
---|
3925 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3926 | #line $LINENO "configure"
|
---|
3927 | /* confdefs.h. */
|
---|
3928 | _ACEOF
|
---|
3929 | cat confdefs.h >>conftest.$ac_ext
|
---|
3930 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3931 | /* end confdefs.h. */
|
---|
3932 | namespace Outer { namespace Inner { int i = 0; }}
|
---|
3933 | int
|
---|
3934 | main ()
|
---|
3935 | {
|
---|
3936 | using namespace Outer::Inner; return i;
|
---|
3937 | ;
|
---|
3938 | return 0;
|
---|
3939 | }
|
---|
3940 | _ACEOF
|
---|
3941 | rm -f conftest.$ac_objext
|
---|
3942 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
3943 | (eval $ac_compile) 2>&5
|
---|
3944 | ac_status=$?
|
---|
3945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3946 | (exit $ac_status); } &&
|
---|
3947 | { ac_try='test -s conftest.$ac_objext'
|
---|
3948 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3949 | (eval $ac_try) 2>&5
|
---|
3950 | ac_status=$?
|
---|
3951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3952 | (exit $ac_status); }; }; then
|
---|
3953 | ac_cv_cxx_namespaces=yes
|
---|
3954 | else
|
---|
3955 | echo "$as_me: failed program was:" >&5
|
---|
3956 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3957 |
|
---|
3958 | ac_cv_cxx_namespaces=no
|
---|
3959 | fi
|
---|
3960 | rm -f conftest.$ac_objext conftest.$ac_ext
|
---|
3961 | ac_ext=c
|
---|
3962 | ac_cpp='$CPP $CPPFLAGS'
|
---|
3963 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
3964 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
3965 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
3966 |
|
---|
3967 |
|
---|
3968 | fi
|
---|
3969 | echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
|
---|
3970 | echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
|
---|
3971 | if test "$ac_cv_cxx_namespaces" = yes; then
|
---|
3972 |
|
---|
3973 | cat >>confdefs.h <<\_ACEOF
|
---|
3974 | #define HAVE_NAMESPACES
|
---|
3975 | _ACEOF
|
---|
3976 |
|
---|
3977 | fi
|
---|
3978 |
|
---|
3979 | echo "$as_me:$LINENO: checking location of STL hash_map" >&5
|
---|
3980 | echo $ECHO_N "checking location of STL hash_map... $ECHO_C" >&6
|
---|
3981 | if test "${ac_cv_cxx_stl_hash+set}" = set; then
|
---|
3982 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3983 | else
|
---|
3984 |
|
---|
3985 |
|
---|
3986 |
|
---|
3987 | ac_ext=cc
|
---|
3988 | ac_cpp='$CXXCPP $CPPFLAGS'
|
---|
3989 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
3990 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
3991 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
---|
3992 |
|
---|
3993 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3994 | #line $LINENO "configure"
|
---|
3995 | /* confdefs.h. */
|
---|
3996 | _ACEOF
|
---|
3997 | cat confdefs.h >>conftest.$ac_ext
|
---|
3998 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3999 | /* end confdefs.h. */
|
---|
4000 | #include <hash_map>
|
---|
4001 | int
|
---|
4002 | main ()
|
---|
4003 | {
|
---|
4004 | hash_map<int, int> t; return 0;
|
---|
4005 | ;
|
---|
4006 | return 0;
|
---|
4007 | }
|
---|
4008 | _ACEOF
|
---|
4009 | rm -f conftest.$ac_objext
|
---|
4010 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
4011 | (eval $ac_compile) 2>&5
|
---|
4012 | ac_status=$?
|
---|
4013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4014 | (exit $ac_status); } &&
|
---|
4015 | { ac_try='test -s conftest.$ac_objext'
|
---|
4016 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4017 | (eval $ac_try) 2>&5
|
---|
4018 | ac_status=$?
|
---|
4019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4020 | (exit $ac_status); }; }; then
|
---|
4021 | ac_cv_cxx_stl_hash=hash_map
|
---|
4022 | else
|
---|
4023 | echo "$as_me: failed program was:" >&5
|
---|
4024 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4025 |
|
---|
4026 | fi
|
---|
4027 | rm -f conftest.$ac_objext conftest.$ac_ext
|
---|
4028 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4029 | #line $LINENO "configure"
|
---|
4030 | /* confdefs.h. */
|
---|
4031 | _ACEOF
|
---|
4032 | cat confdefs.h >>conftest.$ac_ext
|
---|
4033 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4034 | /* end confdefs.h. */
|
---|
4035 | #include <ext/hash_map>
|
---|
4036 | int
|
---|
4037 | main ()
|
---|
4038 | {
|
---|
4039 | __gnu_cxx::hash_map<int, int> t; return 0;
|
---|
4040 | ;
|
---|
4041 | return 0;
|
---|
4042 | }
|
---|
4043 | _ACEOF
|
---|
4044 | rm -f conftest.$ac_objext
|
---|
4045 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
4046 | (eval $ac_compile) 2>&5
|
---|
4047 | ac_status=$?
|
---|
4048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4049 | (exit $ac_status); } &&
|
---|
4050 | { ac_try='test -s conftest.$ac_objext'
|
---|
4051 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4052 | (eval $ac_try) 2>&5
|
---|
4053 | ac_status=$?
|
---|
4054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4055 | (exit $ac_status); }; }; then
|
---|
4056 | ac_cv_cxx_stl_hash=ext_hash_map
|
---|
4057 | else
|
---|
4058 | echo "$as_me: failed program was:" >&5
|
---|
4059 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4060 |
|
---|
4061 | fi
|
---|
4062 | rm -f conftest.$ac_objext conftest.$ac_ext
|
---|
4063 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4064 | #line $LINENO "configure"
|
---|
4065 | /* confdefs.h. */
|
---|
4066 | _ACEOF
|
---|
4067 | cat confdefs.h >>conftest.$ac_ext
|
---|
4068 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4069 | /* end confdefs.h. */
|
---|
4070 | #include <hash_map>
|
---|
4071 | int
|
---|
4072 | main ()
|
---|
4073 | {
|
---|
4074 | std::hash_map<int, int> t; return 0;
|
---|
4075 | ;
|
---|
4076 | return 0;
|
---|
4077 | }
|
---|
4078 | _ACEOF
|
---|
4079 | rm -f conftest.$ac_objext
|
---|
4080 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
4081 | (eval $ac_compile) 2>&5
|
---|
4082 | ac_status=$?
|
---|
4083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4084 | (exit $ac_status); } &&
|
---|
4085 | { ac_try='test -s conftest.$ac_objext'
|
---|
4086 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4087 | (eval $ac_try) 2>&5
|
---|
4088 | ac_status=$?
|
---|
4089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4090 | (exit $ac_status); }; }; then
|
---|
4091 | ac_cv_cxx_stl_hash=std_hash_map
|
---|
4092 | else
|
---|
4093 | echo "$as_me: failed program was:" >&5
|
---|
4094 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4095 |
|
---|
4096 | fi
|
---|
4097 | rm -f conftest.$ac_objext conftest.$ac_ext
|
---|
4098 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4099 | #line $LINENO "configure"
|
---|
4100 | /* confdefs.h. */
|
---|
4101 | _ACEOF
|
---|
4102 | cat confdefs.h >>conftest.$ac_ext
|
---|
4103 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4104 | /* end confdefs.h. */
|
---|
4105 | #include <hash_map>
|
---|
4106 | int
|
---|
4107 | main ()
|
---|
4108 | {
|
---|
4109 | stdext::hash_map<int, int> t; return 0;
|
---|
4110 | ;
|
---|
4111 | return 0;
|
---|
4112 | }
|
---|
4113 | _ACEOF
|
---|
4114 | rm -f conftest.$ac_objext
|
---|
4115 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
4116 | (eval $ac_compile) 2>&5
|
---|
4117 | ac_status=$?
|
---|
4118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4119 | (exit $ac_status); } &&
|
---|
4120 | { ac_try='test -s conftest.$ac_objext'
|
---|
4121 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4122 | (eval $ac_try) 2>&5
|
---|
4123 | ac_status=$?
|
---|
4124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4125 | (exit $ac_status); }; }; then
|
---|
4126 | ac_cv_cxx_stl_hash=stdext_hash_map
|
---|
4127 | else
|
---|
4128 | echo "$as_me: failed program was:" >&5
|
---|
4129 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4130 |
|
---|
4131 | fi
|
---|
4132 | rm -f conftest.$ac_objext conftest.$ac_ext
|
---|
4133 |
|
---|
4134 | ac_ext=c
|
---|
4135 | ac_cpp='$CPP $CPPFLAGS'
|
---|
4136 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
4137 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
4138 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
4139 |
|
---|
4140 | fi
|
---|
4141 | echo "$as_me:$LINENO: result: $ac_cv_cxx_stl_hash" >&5
|
---|
4142 | echo "${ECHO_T}$ac_cv_cxx_stl_hash" >&6
|
---|
4143 | if test "$ac_cv_cxx_stl_hash" = hash_map; then
|
---|
4144 |
|
---|
4145 | cat >>confdefs.h <<\_ACEOF
|
---|
4146 | #define HAVE_HASH_MAP 1
|
---|
4147 | _ACEOF
|
---|
4148 |
|
---|
4149 |
|
---|
4150 | cat >>confdefs.h <<\_ACEOF
|
---|
4151 | #define HAVE_HASH_SET 1
|
---|
4152 | _ACEOF
|
---|
4153 |
|
---|
4154 | ac_cv_cxx_hash_map="<hash_map>"
|
---|
4155 | ac_cv_cxx_hash_set="<hash_set>"
|
---|
4156 | ac_cv_cxx_hash_namespace=""
|
---|
4157 | fi
|
---|
4158 | if test "$ac_cv_cxx_stl_hash" = ext_hash_map; then
|
---|
4159 |
|
---|
4160 | cat >>confdefs.h <<\_ACEOF
|
---|
4161 | #define HAVE_EXT_HASH_MAP 1
|
---|
4162 | _ACEOF
|
---|
4163 |
|
---|
4164 |
|
---|
4165 | cat >>confdefs.h <<\_ACEOF
|
---|
4166 | #define HAVE_EXT_HASH_SET 1
|
---|
4167 | _ACEOF
|
---|
4168 |
|
---|
4169 | ac_cv_cxx_hash_map="<ext/hash_map>"
|
---|
4170 | ac_cv_cxx_hash_set="<ext/hash_set>"
|
---|
4171 | ac_cv_cxx_hash_namespace="__gnu_cxx"
|
---|
4172 | fi
|
---|
4173 | if test "$ac_cv_cxx_stl_hash" = std_hash_map; then
|
---|
4174 |
|
---|
4175 | cat >>confdefs.h <<\_ACEOF
|
---|
4176 | #define HAVE_HASH_MAP 1
|
---|
4177 | _ACEOF
|
---|
4178 |
|
---|
4179 |
|
---|
4180 | cat >>confdefs.h <<\_ACEOF
|
---|
4181 | #define HAVE_HASH_SET 1
|
---|
4182 | _ACEOF
|
---|
4183 |
|
---|
4184 | ac_cv_cxx_hash_map="<hash_map>"
|
---|
4185 | ac_cv_cxx_hash_set="<hash_set>"
|
---|
4186 | ac_cv_cxx_hash_namespace="std"
|
---|
4187 | fi
|
---|
4188 | if test "$ac_cv_cxx_stl_hash" = stdext_hash_map; then
|
---|
4189 |
|
---|
4190 | cat >>confdefs.h <<\_ACEOF
|
---|
4191 | #define HAVE_HASH_MAP 1
|
---|
4192 | _ACEOF
|
---|
4193 |
|
---|
4194 |
|
---|
4195 | cat >>confdefs.h <<\_ACEOF
|
---|
4196 | #define HAVE_HASH_SET 1
|
---|
4197 | _ACEOF
|
---|
4198 |
|
---|
4199 | ac_cv_cxx_hash_map="<hash_map>"
|
---|
4200 | ac_cv_cxx_hash_set="<hash_set>"
|
---|
4201 | ac_cv_cxx_hash_namespace="stdext"
|
---|
4202 | fi
|
---|
4203 |
|
---|
4204 | cat >>confdefs.h <<_ACEOF
|
---|
4205 | #define HASH_NAMESPACE $ac_cv_cxx_hash_namespace
|
---|
4206 | _ACEOF
|
---|
4207 |
|
---|
4208 |
|
---|
4209 | if test x"$ac_cv_cxx_stl_hash" = x; then
|
---|
4210 | { { echo "$as_me:$LINENO: error: couldn't find an STL hash_map" >&5
|
---|
4211 | echo "$as_me: error: couldn't find an STL hash_map" >&2;}
|
---|
4212 | { (exit 1); exit 1; }; }
|
---|
4213 | fi
|
---|
4214 |
|
---|
4215 |
|
---|
4216 | echo "$as_me:$LINENO: checking writing a helper file for including hash_map" >&5
|
---|
4217 | echo $ECHO_N "checking writing a helper file for including hash_map... $ECHO_C" >&6
|
---|
4218 |
|
---|
4219 | { if $as_mkdir_p; then
|
---|
4220 | mkdir -p `(dirname src/hash_map.h) 2>/dev/null ||
|
---|
4221 | $as_expr Xsrc/hash_map.h : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
4222 | Xsrc/hash_map.h : 'X\(//\)[^/]' \| \
|
---|
4223 | Xsrc/hash_map.h : 'X\(//\)$' \| \
|
---|
4224 | Xsrc/hash_map.h : 'X\(/\)' \| \
|
---|
4225 | . : '\(.\)' 2>/dev/null ||
|
---|
4226 | echo Xsrc/hash_map.h |
|
---|
4227 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
4228 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
4229 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
4230 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
4231 | s/.*/./; q'`
|
---|
4232 | else
|
---|
4233 | as_dir=`(dirname src/hash_map.h) 2>/dev/null ||
|
---|
4234 | $as_expr Xsrc/hash_map.h : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
4235 | Xsrc/hash_map.h : 'X\(//\)[^/]' \| \
|
---|
4236 | Xsrc/hash_map.h : 'X\(//\)$' \| \
|
---|
4237 | Xsrc/hash_map.h : 'X\(/\)' \| \
|
---|
4238 | . : '\(.\)' 2>/dev/null ||
|
---|
4239 | echo Xsrc/hash_map.h |
|
---|
4240 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
4241 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
4242 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
4243 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
4244 | s/.*/./; q'`
|
---|
4245 | as_dirs=
|
---|
4246 | while test ! -d "$as_dir"; do
|
---|
4247 | as_dirs="$as_dir $as_dirs"
|
---|
4248 | as_dir=`(dirname "$as_dir") 2>/dev/null ||
|
---|
4249 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
4250 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
4251 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
4252 | X"$as_dir" : 'X\(/\)' \| \
|
---|
4253 | . : '\(.\)' 2>/dev/null ||
|
---|
4254 | echo X"$as_dir" |
|
---|
4255 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
4256 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
4257 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
4258 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
4259 | s/.*/./; q'`
|
---|
4260 | done
|
---|
4261 | test ! -n "$as_dirs" || mkdir $as_dirs
|
---|
4262 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \`(dirname src/hash_map.h) 2>/dev/null ||
|
---|
4263 | $as_expr Xsrc/hash_map.h : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
4264 | Xsrc/hash_map.h : 'X\(//\)[^/]' \| \
|
---|
4265 | Xsrc/hash_map.h : 'X\(//\)$' \| \
|
---|
4266 | Xsrc/hash_map.h : 'X\(/\)' \| \
|
---|
4267 | . : '\(.\)' 2>/dev/null ||
|
---|
4268 | echo Xsrc/hash_map.h |
|
---|
4269 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
4270 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
4271 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
4272 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
4273 | s/.*/./; q'\`" >&5
|
---|
4274 | echo "$as_me: error: cannot create directory \`(dirname src/hash_map.h) 2>/dev/null ||
|
---|
4275 | $as_expr Xsrc/hash_map.h : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
4276 | Xsrc/hash_map.h : 'X\(//\)[^/]' \| \
|
---|
4277 | Xsrc/hash_map.h : 'X\(//\)$' \| \
|
---|
4278 | Xsrc/hash_map.h : 'X\(/\)' \| \
|
---|
4279 | . : '\(.\)' 2>/dev/null ||
|
---|
4280 | echo Xsrc/hash_map.h |
|
---|
4281 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
4282 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
4283 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
4284 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
4285 | s/.*/./; q'\`" >&2;}
|
---|
4286 | { (exit 1); exit 1; }; }; }
|
---|
4287 |
|
---|
4288 | cat >src/hash_map.h <<EOF
|
---|
4289 | #include $ac_cv_cxx_hash_map
|
---|
4290 | #ifndef HASH_NAMESPACE
|
---|
4291 | #define HASH_NAMESPACE $ac_cv_cxx_hash_namespace
|
---|
4292 | #endif
|
---|
4293 | EOF
|
---|
4294 |
|
---|
4295 | echo "$as_me:$LINENO: result: src/hash_map.h" >&5
|
---|
4296 | echo "${ECHO_T}src/hash_map.h" >&6
|
---|
4297 |
|
---|
4298 | ac_ext=cc
|
---|
4299 | ac_cpp='$CXXCPP $CPPFLAGS'
|
---|
4300 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
4301 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
4302 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
---|
4303 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
|
---|
4304 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
|
---|
4305 | if test -z "$CXXCPP"; then
|
---|
4306 | if test "${ac_cv_prog_CXXCPP+set}" = set; then
|
---|
4307 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4308 | else
|
---|
4309 | # Double quotes because CXXCPP needs to be expanded
|
---|
4310 | for CXXCPP in "$CXX -E" "/lib/cpp"
|
---|
4311 | do
|
---|
4312 | ac_preproc_ok=false
|
---|
4313 | for ac_cxx_preproc_warn_flag in '' yes
|
---|
4314 | do
|
---|
4315 | # Use a header file that comes with gcc, so configuring glibc
|
---|
4316 | # with a fresh cross-compiler works.
|
---|
4317 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
4318 | # <limits.h> exists even on freestanding compilers.
|
---|
4319 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
4320 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
4321 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4322 | #line $LINENO "configure"
|
---|
4323 | /* confdefs.h. */
|
---|
4324 | _ACEOF
|
---|
4325 | cat confdefs.h >>conftest.$ac_ext
|
---|
4326 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4327 | /* end confdefs.h. */
|
---|
4328 | #ifdef __STDC__
|
---|
4329 | # include <limits.h>
|
---|
4330 | #else
|
---|
4331 | # include <assert.h>
|
---|
4332 | #endif
|
---|
4333 | Syntax error
|
---|
4334 | _ACEOF
|
---|
4335 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
4336 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
4337 | ac_status=$?
|
---|
4338 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4339 | rm -f conftest.er1
|
---|
4340 | cat conftest.err >&5
|
---|
4341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4342 | (exit $ac_status); } >/dev/null; then
|
---|
4343 | if test -s conftest.err; then
|
---|
4344 | ac_cpp_err=$ac_cxx_preproc_warn_flag
|
---|
4345 | else
|
---|
4346 | ac_cpp_err=
|
---|
4347 | fi
|
---|
4348 | else
|
---|
4349 | ac_cpp_err=yes
|
---|
4350 | fi
|
---|
4351 | if test -z "$ac_cpp_err"; then
|
---|
4352 | :
|
---|
4353 | else
|
---|
4354 | echo "$as_me: failed program was:" >&5
|
---|
4355 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4356 |
|
---|
4357 | # Broken: fails on valid input.
|
---|
4358 | continue
|
---|
4359 | fi
|
---|
4360 | rm -f conftest.err conftest.$ac_ext
|
---|
4361 |
|
---|
4362 | # OK, works on sane cases. Now check whether non-existent headers
|
---|
4363 | # can be detected and how.
|
---|
4364 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4365 | #line $LINENO "configure"
|
---|
4366 | /* confdefs.h. */
|
---|
4367 | _ACEOF
|
---|
4368 | cat confdefs.h >>conftest.$ac_ext
|
---|
4369 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4370 | /* end confdefs.h. */
|
---|
4371 | #include <ac_nonexistent.h>
|
---|
4372 | _ACEOF
|
---|
4373 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
4374 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
4375 | ac_status=$?
|
---|
4376 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4377 | rm -f conftest.er1
|
---|
4378 | cat conftest.err >&5
|
---|
4379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4380 | (exit $ac_status); } >/dev/null; then
|
---|
4381 | if test -s conftest.err; then
|
---|
4382 | ac_cpp_err=$ac_cxx_preproc_warn_flag
|
---|
4383 | else
|
---|
4384 | ac_cpp_err=
|
---|
4385 | fi
|
---|
4386 | else
|
---|
4387 | ac_cpp_err=yes
|
---|
4388 | fi
|
---|
4389 | if test -z "$ac_cpp_err"; then
|
---|
4390 | # Broken: success on invalid input.
|
---|
4391 | continue
|
---|
4392 | else
|
---|
4393 | echo "$as_me: failed program was:" >&5
|
---|
4394 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4395 |
|
---|
4396 | # Passes both tests.
|
---|
4397 | ac_preproc_ok=:
|
---|
4398 | break
|
---|
4399 | fi
|
---|
4400 | rm -f conftest.err conftest.$ac_ext
|
---|
4401 |
|
---|
4402 | done
|
---|
4403 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
4404 | rm -f conftest.err conftest.$ac_ext
|
---|
4405 | if $ac_preproc_ok; then
|
---|
4406 | break
|
---|
4407 | fi
|
---|
4408 |
|
---|
4409 | done
|
---|
4410 | ac_cv_prog_CXXCPP=$CXXCPP
|
---|
4411 |
|
---|
4412 | fi
|
---|
4413 | CXXCPP=$ac_cv_prog_CXXCPP
|
---|
4414 | else
|
---|
4415 | ac_cv_prog_CXXCPP=$CXXCPP
|
---|
4416 | fi
|
---|
4417 | echo "$as_me:$LINENO: result: $CXXCPP" >&5
|
---|
4418 | echo "${ECHO_T}$CXXCPP" >&6
|
---|
4419 | ac_preproc_ok=false
|
---|
4420 | for ac_cxx_preproc_warn_flag in '' yes
|
---|
4421 | do
|
---|
4422 | # Use a header file that comes with gcc, so configuring glibc
|
---|
4423 | # with a fresh cross-compiler works.
|
---|
4424 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
4425 | # <limits.h> exists even on freestanding compilers.
|
---|
4426 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
4427 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
4428 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4429 | #line $LINENO "configure"
|
---|
4430 | /* confdefs.h. */
|
---|
4431 | _ACEOF
|
---|
4432 | cat confdefs.h >>conftest.$ac_ext
|
---|
4433 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4434 | /* end confdefs.h. */
|
---|
4435 | #ifdef __STDC__
|
---|
4436 | # include <limits.h>
|
---|
4437 | #else
|
---|
4438 | # include <assert.h>
|
---|
4439 | #endif
|
---|
4440 | Syntax error
|
---|
4441 | _ACEOF
|
---|
4442 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
4443 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
4444 | ac_status=$?
|
---|
4445 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4446 | rm -f conftest.er1
|
---|
4447 | cat conftest.err >&5
|
---|
4448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4449 | (exit $ac_status); } >/dev/null; then
|
---|
4450 | if test -s conftest.err; then
|
---|
4451 | ac_cpp_err=$ac_cxx_preproc_warn_flag
|
---|
4452 | else
|
---|
4453 | ac_cpp_err=
|
---|
4454 | fi
|
---|
4455 | else
|
---|
4456 | ac_cpp_err=yes
|
---|
4457 | fi
|
---|
4458 | if test -z "$ac_cpp_err"; then
|
---|
4459 | :
|
---|
4460 | else
|
---|
4461 | echo "$as_me: failed program was:" >&5
|
---|
4462 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4463 |
|
---|
4464 | # Broken: fails on valid input.
|
---|
4465 | continue
|
---|
4466 | fi
|
---|
4467 | rm -f conftest.err conftest.$ac_ext
|
---|
4468 |
|
---|
4469 | # OK, works on sane cases. Now check whether non-existent headers
|
---|
4470 | # can be detected and how.
|
---|
4471 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4472 | #line $LINENO "configure"
|
---|
4473 | /* confdefs.h. */
|
---|
4474 | _ACEOF
|
---|
4475 | cat confdefs.h >>conftest.$ac_ext
|
---|
4476 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4477 | /* end confdefs.h. */
|
---|
4478 | #include <ac_nonexistent.h>
|
---|
4479 | _ACEOF
|
---|
4480 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
4481 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
4482 | ac_status=$?
|
---|
4483 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4484 | rm -f conftest.er1
|
---|
4485 | cat conftest.err >&5
|
---|
4486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4487 | (exit $ac_status); } >/dev/null; then
|
---|
4488 | if test -s conftest.err; then
|
---|
4489 | ac_cpp_err=$ac_cxx_preproc_warn_flag
|
---|
4490 | else
|
---|
4491 | ac_cpp_err=
|
---|
4492 | fi
|
---|
4493 | else
|
---|
4494 | ac_cpp_err=yes
|
---|
4495 | fi
|
---|
4496 | if test -z "$ac_cpp_err"; then
|
---|
4497 | # Broken: success on invalid input.
|
---|
4498 | continue
|
---|
4499 | else
|
---|
4500 | echo "$as_me: failed program was:" >&5
|
---|
4501 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4502 |
|
---|
4503 | # Passes both tests.
|
---|
4504 | ac_preproc_ok=:
|
---|
4505 | break
|
---|
4506 | fi
|
---|
4507 | rm -f conftest.err conftest.$ac_ext
|
---|
4508 |
|
---|
4509 | done
|
---|
4510 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
4511 | rm -f conftest.err conftest.$ac_ext
|
---|
4512 | if $ac_preproc_ok; then
|
---|
4513 | :
|
---|
4514 | else
|
---|
4515 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
|
---|
4516 | See \`config.log' for more details." >&5
|
---|
4517 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
|
---|
4518 | See \`config.log' for more details." >&2;}
|
---|
4519 | { (exit 1); exit 1; }; }
|
---|
4520 | fi
|
---|
4521 |
|
---|
4522 | ac_ext=cc
|
---|
4523 | ac_cpp='$CXXCPP $CPPFLAGS'
|
---|
4524 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
4525 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
4526 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
---|
4527 |
|
---|
4528 |
|
---|
4529 |
|
---|
4530 |
|
---|
4531 |
|
---|
4532 | ac_ext=cc
|
---|
4533 | ac_cpp='$CXXCPP $CPPFLAGS'
|
---|
4534 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
4535 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
4536 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
---|
4537 |
|
---|
4538 |
|
---|
4539 |
|
---|
4540 |
|
---|
4541 |
|
---|
4542 | for ac_header in stl_hash_fun.h ext/stl_hash_fun.h \
|
---|
4543 | ext/hash_fun.h hash_fun.h
|
---|
4544 | do
|
---|
4545 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
4546 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
4547 | echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
4548 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
---|
4549 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
4550 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4551 | fi
|
---|
4552 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
4553 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
4554 | else
|
---|
4555 | # Is the header compilable?
|
---|
4556 | echo "$as_me:$LINENO: checking $ac_header usability" >&5
|
---|
4557 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
|
---|
4558 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4559 | #line $LINENO "configure"
|
---|
4560 | /* confdefs.h. */
|
---|
4561 | _ACEOF
|
---|
4562 | cat confdefs.h >>conftest.$ac_ext
|
---|
4563 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4564 | /* end confdefs.h. */
|
---|
4565 | $ac_includes_default
|
---|
4566 | #include <$ac_header>
|
---|
4567 | _ACEOF
|
---|
4568 | rm -f conftest.$ac_objext
|
---|
4569 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
4570 | (eval $ac_compile) 2>&5
|
---|
4571 | ac_status=$?
|
---|
4572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4573 | (exit $ac_status); } &&
|
---|
4574 | { ac_try='test -s conftest.$ac_objext'
|
---|
4575 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4576 | (eval $ac_try) 2>&5
|
---|
4577 | ac_status=$?
|
---|
4578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4579 | (exit $ac_status); }; }; then
|
---|
4580 | ac_header_compiler=yes
|
---|
4581 | else
|
---|
4582 | echo "$as_me: failed program was:" >&5
|
---|
4583 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4584 |
|
---|
4585 | ac_header_compiler=no
|
---|
4586 | fi
|
---|
4587 | rm -f conftest.$ac_objext conftest.$ac_ext
|
---|
4588 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
---|
4589 | echo "${ECHO_T}$ac_header_compiler" >&6
|
---|
4590 |
|
---|
4591 | # Is the header present?
|
---|
4592 | echo "$as_me:$LINENO: checking $ac_header presence" >&5
|
---|
4593 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
|
---|
4594 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4595 | #line $LINENO "configure"
|
---|
4596 | /* confdefs.h. */
|
---|
4597 | _ACEOF
|
---|
4598 | cat confdefs.h >>conftest.$ac_ext
|
---|
4599 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4600 | /* end confdefs.h. */
|
---|
4601 | #include <$ac_header>
|
---|
4602 | _ACEOF
|
---|
4603 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
4604 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
4605 | ac_status=$?
|
---|
4606 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4607 | rm -f conftest.er1
|
---|
4608 | cat conftest.err >&5
|
---|
4609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4610 | (exit $ac_status); } >/dev/null; then
|
---|
4611 | if test -s conftest.err; then
|
---|
4612 | ac_cpp_err=$ac_cxx_preproc_warn_flag
|
---|
4613 | else
|
---|
4614 | ac_cpp_err=
|
---|
4615 | fi
|
---|
4616 | else
|
---|
4617 | ac_cpp_err=yes
|
---|
4618 | fi
|
---|
4619 | if test -z "$ac_cpp_err"; then
|
---|
4620 | ac_header_preproc=yes
|
---|
4621 | else
|
---|
4622 | echo "$as_me: failed program was:" >&5
|
---|
4623 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4624 |
|
---|
4625 | ac_header_preproc=no
|
---|
4626 | fi
|
---|
4627 | rm -f conftest.err conftest.$ac_ext
|
---|
4628 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
---|
4629 | echo "${ECHO_T}$ac_header_preproc" >&6
|
---|
4630 |
|
---|
4631 | # So? What about this header?
|
---|
4632 | case $ac_header_compiler:$ac_header_preproc in
|
---|
4633 | yes:no )
|
---|
4634 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
4635 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
4636 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
|
---|
4637 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
|
---|
4638 | (
|
---|
4639 | cat <<\_ASBOX
|
---|
4640 | ## ------------------------------------ ##
|
---|
4641 | ## Report this to bug-autoconf@gnu.org. ##
|
---|
4642 | ## ------------------------------------ ##
|
---|
4643 | _ASBOX
|
---|
4644 | ) |
|
---|
4645 | sed "s/^/$as_me: WARNING: /" >&2
|
---|
4646 | ;;
|
---|
4647 | no:yes )
|
---|
4648 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
|
---|
4649 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
|
---|
4650 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
|
---|
4651 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
|
---|
4652 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
|
---|
4653 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
|
---|
4654 | (
|
---|
4655 | cat <<\_ASBOX
|
---|
4656 | ## ------------------------------------ ##
|
---|
4657 | ## Report this to bug-autoconf@gnu.org. ##
|
---|
4658 | ## ------------------------------------ ##
|
---|
4659 | _ASBOX
|
---|
4660 | ) |
|
---|
4661 | sed "s/^/$as_me: WARNING: /" >&2
|
---|
4662 | ;;
|
---|
4663 | esac
|
---|
4664 | echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
4665 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
---|
4666 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
4667 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4668 | else
|
---|
4669 | eval "$as_ac_Header=$ac_header_preproc"
|
---|
4670 | fi
|
---|
4671 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
4672 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
4673 |
|
---|
4674 | fi
|
---|
4675 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
4676 | cat >>confdefs.h <<_ACEOF
|
---|
4677 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
4678 | _ACEOF
|
---|
4679 | ac_cv_cxx_stl_hash_fun="<$ac_header>"; break
|
---|
4680 | fi
|
---|
4681 |
|
---|
4682 | done
|
---|
4683 |
|
---|
4684 | ac_ext=c
|
---|
4685 | ac_cpp='$CPP $CPPFLAGS'
|
---|
4686 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
4687 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
4688 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
4689 |
|
---|
4690 | echo "$as_me:$LINENO: checking how to include hash_fun directly" >&5
|
---|
4691 | echo $ECHO_N "checking how to include hash_fun directly... $ECHO_C" >&6
|
---|
4692 | echo "$as_me:$LINENO: result: $ac_cv_cxx_stl_hash_fun" >&5
|
---|
4693 | echo "${ECHO_T}$ac_cv_cxx_stl_hash_fun" >&6
|
---|
4694 |
|
---|
4695 |
|
---|
4696 |
|
---|
4697 | echo "$as_me:$LINENO: checking writing an include-helper for hash_fun.h" >&5
|
---|
4698 | echo $ECHO_N "checking writing an include-helper for hash_fun.h... $ECHO_C" >&6
|
---|
4699 |
|
---|
4700 | { if $as_mkdir_p; then
|
---|
4701 | mkdir -p `(dirname src/google/sparsehash/hash_fun.h) 2>/dev/null ||
|
---|
4702 | $as_expr Xsrc/google/sparsehash/hash_fun.h : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
4703 | Xsrc/google/sparsehash/hash_fun.h : 'X\(//\)[^/]' \| \
|
---|
4704 | Xsrc/google/sparsehash/hash_fun.h : 'X\(//\)$' \| \
|
---|
4705 | Xsrc/google/sparsehash/hash_fun.h : 'X\(/\)' \| \
|
---|
4706 | . : '\(.\)' 2>/dev/null ||
|
---|
4707 | echo Xsrc/google/sparsehash/hash_fun.h |
|
---|
4708 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
4709 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
4710 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
4711 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
4712 | s/.*/./; q'`
|
---|
4713 | else
|
---|
4714 | as_dir=`(dirname src/google/sparsehash/hash_fun.h) 2>/dev/null ||
|
---|
4715 | $as_expr Xsrc/google/sparsehash/hash_fun.h : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
4716 | Xsrc/google/sparsehash/hash_fun.h : 'X\(//\)[^/]' \| \
|
---|
4717 | Xsrc/google/sparsehash/hash_fun.h : 'X\(//\)$' \| \
|
---|
4718 | Xsrc/google/sparsehash/hash_fun.h : 'X\(/\)' \| \
|
---|
4719 | . : '\(.\)' 2>/dev/null ||
|
---|
4720 | echo Xsrc/google/sparsehash/hash_fun.h |
|
---|
4721 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
4722 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
4723 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
4724 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
4725 | s/.*/./; q'`
|
---|
4726 | as_dirs=
|
---|
4727 | while test ! -d "$as_dir"; do
|
---|
4728 | as_dirs="$as_dir $as_dirs"
|
---|
4729 | as_dir=`(dirname "$as_dir") 2>/dev/null ||
|
---|
4730 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
4731 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
4732 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
4733 | X"$as_dir" : 'X\(/\)' \| \
|
---|
4734 | . : '\(.\)' 2>/dev/null ||
|
---|
4735 | echo X"$as_dir" |
|
---|
4736 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
4737 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
4738 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
4739 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
4740 | s/.*/./; q'`
|
---|
4741 | done
|
---|
4742 | test ! -n "$as_dirs" || mkdir $as_dirs
|
---|
4743 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \`(dirname src/google/sparsehash/hash_fun.h) 2>/dev/null ||
|
---|
4744 | $as_expr Xsrc/google/sparsehash/hash_fun.h : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
4745 | Xsrc/google/sparsehash/hash_fun.h : 'X\(//\)[^/]' \| \
|
---|
4746 | Xsrc/google/sparsehash/hash_fun.h : 'X\(//\)$' \| \
|
---|
4747 | Xsrc/google/sparsehash/hash_fun.h : 'X\(/\)' \| \
|
---|
4748 | . : '\(.\)' 2>/dev/null ||
|
---|
4749 | echo Xsrc/google/sparsehash/hash_fun.h |
|
---|
4750 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
4751 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
4752 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
4753 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
4754 | s/.*/./; q'\`" >&5
|
---|
4755 | echo "$as_me: error: cannot create directory \`(dirname src/google/sparsehash/hash_fun.h) 2>/dev/null ||
|
---|
4756 | $as_expr Xsrc/google/sparsehash/hash_fun.h : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
4757 | Xsrc/google/sparsehash/hash_fun.h : 'X\(//\)[^/]' \| \
|
---|
4758 | Xsrc/google/sparsehash/hash_fun.h : 'X\(//\)$' \| \
|
---|
4759 | Xsrc/google/sparsehash/hash_fun.h : 'X\(/\)' \| \
|
---|
4760 | . : '\(.\)' 2>/dev/null ||
|
---|
4761 | echo Xsrc/google/sparsehash/hash_fun.h |
|
---|
4762 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
4763 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
4764 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
4765 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
4766 | s/.*/./; q'\`" >&2;}
|
---|
4767 | { (exit 1); exit 1; }; }; }
|
---|
4768 |
|
---|
4769 | cat >src/google/sparsehash/hash_fun.h <<EOF
|
---|
4770 | #ifndef HASH_NAMESPACE
|
---|
4771 | #define HASH_NAMESPACE $ac_cv_cxx_hash_namespace
|
---|
4772 | #endif
|
---|
4773 |
|
---|
4774 | EOF
|
---|
4775 | if test -n "$ac_cv_cxx_stl_hash_fun"; then
|
---|
4776 | echo "#include $ac_cv_cxx_stl_hash_fun" >> src/google/sparsehash/hash_fun.h
|
---|
4777 | else
|
---|
4778 | cat $srcdir/src/windows/stl_hash_fun.h >> src/google/sparsehash/hash_fun.h
|
---|
4779 | fi
|
---|
4780 |
|
---|
4781 | echo "$as_me:$LINENO: result: src/google/sparsehash/hash_fun.h" >&5
|
---|
4782 | echo "${ECHO_T}src/google/sparsehash/hash_fun.h" >&6
|
---|
4783 |
|
---|
4784 |
|
---|
4785 | # Find out what namespace 'normal' STL code lives in, and also what namespace
|
---|
4786 | # the user wants our classes to be defined in
|
---|
4787 | echo "$as_me:$LINENO: checking what namespace STL code is in" >&5
|
---|
4788 | echo $ECHO_N "checking what namespace STL code is in... $ECHO_C" >&6
|
---|
4789 | if test "${ac_cv_cxx_stl_namespace+set}" = set; then
|
---|
4790 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4791 | else
|
---|
4792 |
|
---|
4793 |
|
---|
4794 |
|
---|
4795 | ac_ext=cc
|
---|
4796 | ac_cpp='$CXXCPP $CPPFLAGS'
|
---|
4797 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
4798 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
4799 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
---|
4800 |
|
---|
4801 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4802 | #line $LINENO "configure"
|
---|
4803 | /* confdefs.h. */
|
---|
4804 | _ACEOF
|
---|
4805 | cat confdefs.h >>conftest.$ac_ext
|
---|
4806 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4807 | /* end confdefs.h. */
|
---|
4808 | #include <vector>
|
---|
4809 | int
|
---|
4810 | main ()
|
---|
4811 | {
|
---|
4812 | vector<int> t; return 0;
|
---|
4813 | ;
|
---|
4814 | return 0;
|
---|
4815 | }
|
---|
4816 | _ACEOF
|
---|
4817 | rm -f conftest.$ac_objext
|
---|
4818 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
4819 | (eval $ac_compile) 2>&5
|
---|
4820 | ac_status=$?
|
---|
4821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4822 | (exit $ac_status); } &&
|
---|
4823 | { ac_try='test -s conftest.$ac_objext'
|
---|
4824 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4825 | (eval $ac_try) 2>&5
|
---|
4826 | ac_status=$?
|
---|
4827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4828 | (exit $ac_status); }; }; then
|
---|
4829 | ac_cv_cxx_stl_namespace=none
|
---|
4830 | else
|
---|
4831 | echo "$as_me: failed program was:" >&5
|
---|
4832 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4833 |
|
---|
4834 | fi
|
---|
4835 | rm -f conftest.$ac_objext conftest.$ac_ext
|
---|
4836 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4837 | #line $LINENO "configure"
|
---|
4838 | /* confdefs.h. */
|
---|
4839 | _ACEOF
|
---|
4840 | cat confdefs.h >>conftest.$ac_ext
|
---|
4841 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4842 | /* end confdefs.h. */
|
---|
4843 | #include <vector>
|
---|
4844 | int
|
---|
4845 | main ()
|
---|
4846 | {
|
---|
4847 | std::vector<int> t; return 0;
|
---|
4848 | ;
|
---|
4849 | return 0;
|
---|
4850 | }
|
---|
4851 | _ACEOF
|
---|
4852 | rm -f conftest.$ac_objext
|
---|
4853 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
4854 | (eval $ac_compile) 2>&5
|
---|
4855 | ac_status=$?
|
---|
4856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4857 | (exit $ac_status); } &&
|
---|
4858 | { ac_try='test -s conftest.$ac_objext'
|
---|
4859 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4860 | (eval $ac_try) 2>&5
|
---|
4861 | ac_status=$?
|
---|
4862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4863 | (exit $ac_status); }; }; then
|
---|
4864 | ac_cv_cxx_stl_namespace=std
|
---|
4865 | else
|
---|
4866 | echo "$as_me: failed program was:" >&5
|
---|
4867 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4868 |
|
---|
4869 | fi
|
---|
4870 | rm -f conftest.$ac_objext conftest.$ac_ext
|
---|
4871 | ac_ext=c
|
---|
4872 | ac_cpp='$CPP $CPPFLAGS'
|
---|
4873 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
4874 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
4875 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
4876 |
|
---|
4877 | fi
|
---|
4878 | echo "$as_me:$LINENO: result: $ac_cv_cxx_stl_namespace" >&5
|
---|
4879 | echo "${ECHO_T}$ac_cv_cxx_stl_namespace" >&6
|
---|
4880 | if test "$ac_cv_cxx_stl_namespace" = none; then
|
---|
4881 |
|
---|
4882 | cat >>confdefs.h <<\_ACEOF
|
---|
4883 | #define STL_NAMESPACE
|
---|
4884 | _ACEOF
|
---|
4885 |
|
---|
4886 | fi
|
---|
4887 | if test "$ac_cv_cxx_stl_namespace" = std; then
|
---|
4888 |
|
---|
4889 | cat >>confdefs.h <<\_ACEOF
|
---|
4890 | #define STL_NAMESPACE std
|
---|
4891 | _ACEOF
|
---|
4892 |
|
---|
4893 | fi
|
---|
4894 |
|
---|
4895 | google_namespace_default=google
|
---|
4896 | # Check whether --enable-namespace or --disable-namespace was given.
|
---|
4897 | if test "${enable_namespace+set}" = set; then
|
---|
4898 | enableval="$enable_namespace"
|
---|
4899 | case "$enableval" in
|
---|
4900 | yes) google_namespace="$google_namespace_default" ;;
|
---|
4901 | no) google_namespace="" ;;
|
---|
4902 | *) google_namespace="$enableval" ;;
|
---|
4903 | esac
|
---|
4904 | else
|
---|
4905 | google_namespace="$google_namespace_default"
|
---|
4906 | fi;
|
---|
4907 | if test -n "$google_namespace"; then
|
---|
4908 |
|
---|
4909 | cat >>confdefs.h <<_ACEOF
|
---|
4910 | #define GOOGLE_NAMESPACE $google_namespace
|
---|
4911 | _ACEOF
|
---|
4912 |
|
---|
4913 |
|
---|
4914 | cat >>confdefs.h <<\_ACEOF
|
---|
4915 | #define _START_GOOGLE_NAMESPACE_ namespace GOOGLE_NAMESPACE {
|
---|
4916 | _ACEOF
|
---|
4917 |
|
---|
4918 |
|
---|
4919 | cat >>confdefs.h <<\_ACEOF
|
---|
4920 | #define _END_GOOGLE_NAMESPACE_ }
|
---|
4921 | _ACEOF
|
---|
4922 |
|
---|
4923 | else
|
---|
4924 |
|
---|
4925 | cat >>confdefs.h <<\_ACEOF
|
---|
4926 | #define GOOGLE_NAMESPACE
|
---|
4927 | _ACEOF
|
---|
4928 |
|
---|
4929 |
|
---|
4930 | cat >>confdefs.h <<\_ACEOF
|
---|
4931 | #define _START_GOOGLE_NAMESPACE_
|
---|
4932 | _ACEOF
|
---|
4933 |
|
---|
4934 |
|
---|
4935 | cat >>confdefs.h <<\_ACEOF
|
---|
4936 | #define _END_GOOGLE_NAMESPACE_
|
---|
4937 | _ACEOF
|
---|
4938 |
|
---|
4939 | fi
|
---|
4940 |
|
---|
4941 |
|
---|
4942 | # Check what STL features are defined
|
---|
4943 | echo "$as_me:$LINENO: checking whether STL supports iterator-tags" >&5
|
---|
4944 | echo $ECHO_N "checking whether STL supports iterator-tags... $ECHO_C" >&6
|
---|
4945 | if test "${ac_cv_cxx_stl_iterator_tags+set}" = set; then
|
---|
4946 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4947 | else
|
---|
4948 |
|
---|
4949 |
|
---|
4950 |
|
---|
4951 | ac_ext=cc
|
---|
4952 | ac_cpp='$CXXCPP $CPPFLAGS'
|
---|
4953 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
4954 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
4955 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
|
---|
4956 |
|
---|
4957 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4958 | #line $LINENO "configure"
|
---|
4959 | /* confdefs.h. */
|
---|
4960 | _ACEOF
|
---|
4961 | cat confdefs.h >>conftest.$ac_ext
|
---|
4962 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4963 | /* end confdefs.h. */
|
---|
4964 | #include <list>
|
---|
4965 | int
|
---|
4966 | main ()
|
---|
4967 | {
|
---|
4968 | list<int>::iterator::iterator_category c; return 0;
|
---|
4969 | ;
|
---|
4970 | return 0;
|
---|
4971 | }
|
---|
4972 | _ACEOF
|
---|
4973 | rm -f conftest.$ac_objext
|
---|
4974 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
4975 | (eval $ac_compile) 2>&5
|
---|
4976 | ac_status=$?
|
---|
4977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4978 | (exit $ac_status); } &&
|
---|
4979 | { ac_try='test -s conftest.$ac_objext'
|
---|
4980 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4981 | (eval $ac_try) 2>&5
|
---|
4982 | ac_status=$?
|
---|
4983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4984 | (exit $ac_status); }; }; then
|
---|
4985 | ac_cv_cxx_stl_iterator_tags=yes
|
---|
4986 | else
|
---|
4987 | echo "$as_me: failed program was:" >&5
|
---|
4988 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4989 |
|
---|
4990 | fi
|
---|
4991 | rm -f conftest.$ac_objext conftest.$ac_ext
|
---|
4992 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4993 | #line $LINENO "configure"
|
---|
4994 | /* confdefs.h. */
|
---|
4995 | _ACEOF
|
---|
4996 | cat confdefs.h >>conftest.$ac_ext
|
---|
4997 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4998 | /* end confdefs.h. */
|
---|
4999 | #include <list>
|
---|
5000 | int
|
---|
5001 | main ()
|
---|
5002 | {
|
---|
5003 | std::list<int>::iterator::iterator_category c; return 0;
|
---|
5004 | ;
|
---|
5005 | return 0;
|
---|
5006 | }
|
---|
5007 | _ACEOF
|
---|
5008 | rm -f conftest.$ac_objext
|
---|
5009 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
5010 | (eval $ac_compile) 2>&5
|
---|
5011 | ac_status=$?
|
---|
5012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5013 | (exit $ac_status); } &&
|
---|
5014 | { ac_try='test -s conftest.$ac_objext'
|
---|
5015 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5016 | (eval $ac_try) 2>&5
|
---|
5017 | ac_status=$?
|
---|
5018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5019 | (exit $ac_status); }; }; then
|
---|
5020 | ac_cv_cxx_stl_iterator_tags=yes
|
---|
5021 | else
|
---|
5022 | echo "$as_me: failed program was:" >&5
|
---|
5023 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5024 |
|
---|
5025 | fi
|
---|
5026 | rm -f conftest.$ac_objext conftest.$ac_ext
|
---|
5027 | ac_ext=c
|
---|
5028 | ac_cpp='$CPP $CPPFLAGS'
|
---|
5029 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
5030 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
5031 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
5032 |
|
---|
5033 | fi
|
---|
5034 | echo "$as_me:$LINENO: result: $ac_cv_cxx_stl_iterator_tags" >&5
|
---|
5035 | echo "${ECHO_T}$ac_cv_cxx_stl_iterator_tags" >&6
|
---|
5036 | if test "$ac_cv_cxx_stl_iterator_tags" = yes; then
|
---|
5037 |
|
---|
5038 | cat >>confdefs.h <<\_ACEOF
|
---|
5039 | #define UNDERSTANDS_ITERATOR_TAGS 1
|
---|
5040 | _ACEOF
|
---|
5041 |
|
---|
5042 | fi
|
---|
5043 |
|
---|
5044 |
|
---|
5045 | # TODO(csilvers): turn on again once we decide whether we want to enforce
|
---|
5046 | # DECLARE_POD with the hash types
|
---|
5047 | #AC_CXX_STL_TYPE_TRAITS
|
---|
5048 |
|
---|
5049 | # Write generated configuration file
|
---|
5050 | ac_config_files="$ac_config_files Makefile"
|
---|
5051 |
|
---|
5052 | cat >confcache <<\_ACEOF
|
---|
5053 | # This file is a shell script that caches the results of configure
|
---|
5054 | # tests run on this system so they can be shared between configure
|
---|
5055 | # scripts and configure runs, see configure's option --config-cache.
|
---|
5056 | # It is not useful on other systems. If it contains results you don't
|
---|
5057 | # want to keep, you may remove or edit it.
|
---|
5058 | #
|
---|
5059 | # config.status only pays attention to the cache file if you give it
|
---|
5060 | # the --recheck option to rerun configure.
|
---|
5061 | #
|
---|
5062 | # `ac_cv_env_foo' variables (set or unset) will be overridden when
|
---|
5063 | # loading this file, other *unset* `ac_cv_foo' will be assigned the
|
---|
5064 | # following values.
|
---|
5065 |
|
---|
5066 | _ACEOF
|
---|
5067 |
|
---|
5068 | # The following way of writing the cache mishandles newlines in values,
|
---|
5069 | # but we know of no workaround that is simple, portable, and efficient.
|
---|
5070 | # So, don't put newlines in cache variables' values.
|
---|
5071 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
---|
5072 | # and sets the high bit in the cache file unless we assign to the vars.
|
---|
5073 | {
|
---|
5074 | (set) 2>&1 |
|
---|
5075 | case `(ac_space=' '; set | grep ac_space) 2>&1` in
|
---|
5076 | *ac_space=\ *)
|
---|
5077 | # `set' does not quote correctly, so add quotes (double-quote
|
---|
5078 | # substitution turns \\\\ into \\, and sed turns \\ into \).
|
---|
5079 | sed -n \
|
---|
5080 | "s/'/'\\\\''/g;
|
---|
5081 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
|
---|
5082 | ;;
|
---|
5083 | *)
|
---|
5084 | # `set' quotes correctly as required by POSIX, so do not add quotes.
|
---|
5085 | sed -n \
|
---|
5086 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
|
---|
5087 | ;;
|
---|
5088 | esac;
|
---|
5089 | } |
|
---|
5090 | sed '
|
---|
5091 | t clear
|
---|
5092 | : clear
|
---|
5093 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
|
---|
5094 | t end
|
---|
5095 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
|
---|
5096 | : end' >>confcache
|
---|
5097 | if diff $cache_file confcache >/dev/null 2>&1; then :; else
|
---|
5098 | if test -w $cache_file; then
|
---|
5099 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
|
---|
5100 | cat confcache >$cache_file
|
---|
5101 | else
|
---|
5102 | echo "not updating unwritable cache $cache_file"
|
---|
5103 | fi
|
---|
5104 | fi
|
---|
5105 | rm -f confcache
|
---|
5106 |
|
---|
5107 | test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
---|
5108 | # Let make expand exec_prefix.
|
---|
5109 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
---|
5110 |
|
---|
5111 | # VPATH may cause trouble with some makes, so we remove $(srcdir),
|
---|
5112 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
|
---|
5113 | # trailing colons and then remove the whole line if VPATH becomes empty
|
---|
5114 | # (actually we leave an empty line to preserve line numbers).
|
---|
5115 | if test "x$srcdir" = x.; then
|
---|
5116 | ac_vpsub='/^[ ]*VPATH[ ]*=/{
|
---|
5117 | s/:*\$(srcdir):*/:/;
|
---|
5118 | s/:*\${srcdir}:*/:/;
|
---|
5119 | s/:*@srcdir@:*/:/;
|
---|
5120 | s/^\([^=]*=[ ]*\):*/\1/;
|
---|
5121 | s/:*$//;
|
---|
5122 | s/^[^=]*=[ ]*$//;
|
---|
5123 | }'
|
---|
5124 | fi
|
---|
5125 |
|
---|
5126 | DEFS=-DHAVE_CONFIG_H
|
---|
5127 |
|
---|
5128 | ac_libobjs=
|
---|
5129 | ac_ltlibobjs=
|
---|
5130 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
|
---|
5131 | # 1. Remove the extension, and $U if already installed.
|
---|
5132 | ac_i=`echo "$ac_i" |
|
---|
5133 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
|
---|
5134 | # 2. Add them.
|
---|
5135 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
|
---|
5136 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
|
---|
5137 | done
|
---|
5138 | LIBOBJS=$ac_libobjs
|
---|
5139 |
|
---|
5140 | LTLIBOBJS=$ac_ltlibobjs
|
---|
5141 |
|
---|
5142 |
|
---|
5143 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
|
---|
5144 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
|
---|
5145 | Usually this means the macro was only invoked conditionally." >&5
|
---|
5146 | echo "$as_me: error: conditional \"AMDEP\" was never defined.
|
---|
5147 | Usually this means the macro was only invoked conditionally." >&2;}
|
---|
5148 | { (exit 1); exit 1; }; }
|
---|
5149 | fi
|
---|
5150 |
|
---|
5151 | : ${CONFIG_STATUS=./config.status}
|
---|
5152 | ac_clean_files_save=$ac_clean_files
|
---|
5153 | ac_clean_files="$ac_clean_files $CONFIG_STATUS"
|
---|
5154 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
|
---|
5155 | echo "$as_me: creating $CONFIG_STATUS" >&6;}
|
---|
5156 | cat >$CONFIG_STATUS <<_ACEOF
|
---|
5157 | #! $SHELL
|
---|
5158 | # Generated by $as_me.
|
---|
5159 | # Run this file to recreate the current configuration.
|
---|
5160 | # Compiler output produced by configure, useful for debugging
|
---|
5161 | # configure, is in config.log if it exists.
|
---|
5162 |
|
---|
5163 | debug=false
|
---|
5164 | ac_cs_recheck=false
|
---|
5165 | ac_cs_silent=false
|
---|
5166 | SHELL=\${CONFIG_SHELL-$SHELL}
|
---|
5167 | _ACEOF
|
---|
5168 |
|
---|
5169 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
5170 | ## --------------------- ##
|
---|
5171 | ## M4sh Initialization. ##
|
---|
5172 | ## --------------------- ##
|
---|
5173 |
|
---|
5174 | # Be Bourne compatible
|
---|
5175 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
|
---|
5176 | emulate sh
|
---|
5177 | NULLCMD=:
|
---|
5178 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
|
---|
5179 | # is contrary to our usage. Disable this feature.
|
---|
5180 | alias -g '${1+"$@"}'='"$@"'
|
---|
5181 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
|
---|
5182 | set -o posix
|
---|
5183 | fi
|
---|
5184 |
|
---|
5185 | # Support unset when possible.
|
---|
5186 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
|
---|
5187 | as_unset=unset
|
---|
5188 | else
|
---|
5189 | as_unset=false
|
---|
5190 | fi
|
---|
5191 |
|
---|
5192 |
|
---|
5193 | # Work around bugs in pre-3.0 UWIN ksh.
|
---|
5194 | $as_unset ENV MAIL MAILPATH
|
---|
5195 | PS1='$ '
|
---|
5196 | PS2='> '
|
---|
5197 | PS4='+ '
|
---|
5198 |
|
---|
5199 | # NLS nuisances.
|
---|
5200 | for as_var in \
|
---|
5201 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
|
---|
5202 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
|
---|
5203 | LC_TELEPHONE LC_TIME
|
---|
5204 | do
|
---|
5205 | if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
|
---|
5206 | eval $as_var=C; export $as_var
|
---|
5207 | else
|
---|
5208 | $as_unset $as_var
|
---|
5209 | fi
|
---|
5210 | done
|
---|
5211 |
|
---|
5212 | # Required to use basename.
|
---|
5213 | if expr a : '\(a\)' >/dev/null 2>&1; then
|
---|
5214 | as_expr=expr
|
---|
5215 | else
|
---|
5216 | as_expr=false
|
---|
5217 | fi
|
---|
5218 |
|
---|
5219 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
|
---|
5220 | as_basename=basename
|
---|
5221 | else
|
---|
5222 | as_basename=false
|
---|
5223 | fi
|
---|
5224 |
|
---|
5225 |
|
---|
5226 | # Name of the executable.
|
---|
5227 | as_me=`$as_basename "$0" ||
|
---|
5228 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
---|
5229 | X"$0" : 'X\(//\)$' \| \
|
---|
5230 | X"$0" : 'X\(/\)$' \| \
|
---|
5231 | . : '\(.\)' 2>/dev/null ||
|
---|
5232 | echo X/"$0" |
|
---|
5233 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
|
---|
5234 | /^X\/\(\/\/\)$/{ s//\1/; q; }
|
---|
5235 | /^X\/\(\/\).*/{ s//\1/; q; }
|
---|
5236 | s/.*/./; q'`
|
---|
5237 |
|
---|
5238 |
|
---|
5239 | # PATH needs CR, and LINENO needs CR and PATH.
|
---|
5240 | # Avoid depending upon Character Ranges.
|
---|
5241 | as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
---|
5242 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
---|
5243 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
---|
5244 | as_cr_digits='0123456789'
|
---|
5245 | as_cr_alnum=$as_cr_Letters$as_cr_digits
|
---|
5246 |
|
---|
5247 | # The user is always right.
|
---|
5248 | if test "${PATH_SEPARATOR+set}" != set; then
|
---|
5249 | echo "#! /bin/sh" >conf$$.sh
|
---|
5250 | echo "exit 0" >>conf$$.sh
|
---|
5251 | chmod +x conf$$.sh
|
---|
5252 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
|
---|
5253 | PATH_SEPARATOR=';'
|
---|
5254 | else
|
---|
5255 | PATH_SEPARATOR=:
|
---|
5256 | fi
|
---|
5257 | rm -f conf$$.sh
|
---|
5258 | fi
|
---|
5259 |
|
---|
5260 |
|
---|
5261 | as_lineno_1=$LINENO
|
---|
5262 | as_lineno_2=$LINENO
|
---|
5263 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
|
---|
5264 | test "x$as_lineno_1" != "x$as_lineno_2" &&
|
---|
5265 | test "x$as_lineno_3" = "x$as_lineno_2" || {
|
---|
5266 | # Find who we are. Look in the path if we contain no path at all
|
---|
5267 | # relative or not.
|
---|
5268 | case $0 in
|
---|
5269 | *[\\/]* ) as_myself=$0 ;;
|
---|
5270 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
5271 | for as_dir in $PATH
|
---|
5272 | do
|
---|
5273 | IFS=$as_save_IFS
|
---|
5274 | test -z "$as_dir" && as_dir=.
|
---|
5275 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
---|
5276 | done
|
---|
5277 |
|
---|
5278 | ;;
|
---|
5279 | esac
|
---|
5280 | # We did not find ourselves, most probably we were run as `sh COMMAND'
|
---|
5281 | # in which case we are not to be found in the path.
|
---|
5282 | if test "x$as_myself" = x; then
|
---|
5283 | as_myself=$0
|
---|
5284 | fi
|
---|
5285 | if test ! -f "$as_myself"; then
|
---|
5286 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
|
---|
5287 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
|
---|
5288 | { (exit 1); exit 1; }; }
|
---|
5289 | fi
|
---|
5290 | case $CONFIG_SHELL in
|
---|
5291 | '')
|
---|
5292 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
5293 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
|
---|
5294 | do
|
---|
5295 | IFS=$as_save_IFS
|
---|
5296 | test -z "$as_dir" && as_dir=.
|
---|
5297 | for as_base in sh bash ksh sh5; do
|
---|
5298 | case $as_dir in
|
---|
5299 | /*)
|
---|
5300 | if ("$as_dir/$as_base" -c '
|
---|
5301 | as_lineno_1=$LINENO
|
---|
5302 | as_lineno_2=$LINENO
|
---|
5303 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
|
---|
5304 | test "x$as_lineno_1" != "x$as_lineno_2" &&
|
---|
5305 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
|
---|
5306 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
|
---|
5307 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
|
---|
5308 | CONFIG_SHELL=$as_dir/$as_base
|
---|
5309 | export CONFIG_SHELL
|
---|
5310 | exec "$CONFIG_SHELL" "$0" ${1+"$@"}
|
---|
5311 | fi;;
|
---|
5312 | esac
|
---|
5313 | done
|
---|
5314 | done
|
---|
5315 | ;;
|
---|
5316 | esac
|
---|
5317 |
|
---|
5318 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
|
---|
5319 | # uniformly replaced by the line number. The first 'sed' inserts a
|
---|
5320 | # line-number line before each line; the second 'sed' does the real
|
---|
5321 | # work. The second script uses 'N' to pair each line-number line
|
---|
5322 | # with the numbered line, and appends trailing '-' during
|
---|
5323 | # substitution so that $LINENO is not a special case at line end.
|
---|
5324 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
|
---|
5325 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
|
---|
5326 | sed '=' <$as_myself |
|
---|
5327 | sed '
|
---|
5328 | N
|
---|
5329 | s,$,-,
|
---|
5330 | : loop
|
---|
5331 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
|
---|
5332 | t loop
|
---|
5333 | s,-$,,
|
---|
5334 | s,^['$as_cr_digits']*\n,,
|
---|
5335 | ' >$as_me.lineno &&
|
---|
5336 | chmod +x $as_me.lineno ||
|
---|
5337 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
|
---|
5338 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
|
---|
5339 | { (exit 1); exit 1; }; }
|
---|
5340 |
|
---|
5341 | # Don't try to exec as it changes $[0], causing all sort of problems
|
---|
5342 | # (the dirname of $[0] is not the place where we might find the
|
---|
5343 | # original and so on. Autoconf is especially sensible to this).
|
---|
5344 | . ./$as_me.lineno
|
---|
5345 | # Exit status is that of the last command.
|
---|
5346 | exit
|
---|
5347 | }
|
---|
5348 |
|
---|
5349 |
|
---|
5350 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
|
---|
5351 | *c*,-n*) ECHO_N= ECHO_C='
|
---|
5352 | ' ECHO_T=' ' ;;
|
---|
5353 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
|
---|
5354 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
|
---|
5355 | esac
|
---|
5356 |
|
---|
5357 | if expr a : '\(a\)' >/dev/null 2>&1; then
|
---|
5358 | as_expr=expr
|
---|
5359 | else
|
---|
5360 | as_expr=false
|
---|
5361 | fi
|
---|
5362 |
|
---|
5363 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
5364 | echo >conf$$.file
|
---|
5365 | if ln -s conf$$.file conf$$ 2>/dev/null; then
|
---|
5366 | # We could just check for DJGPP; but this test a) works b) is more generic
|
---|
5367 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
|
---|
5368 | if test -f conf$$.exe; then
|
---|
5369 | # Don't use ln at all; we don't have any links
|
---|
5370 | as_ln_s='cp -p'
|
---|
5371 | else
|
---|
5372 | as_ln_s='ln -s'
|
---|
5373 | fi
|
---|
5374 | elif ln conf$$.file conf$$ 2>/dev/null; then
|
---|
5375 | as_ln_s=ln
|
---|
5376 | else
|
---|
5377 | as_ln_s='cp -p'
|
---|
5378 | fi
|
---|
5379 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
5380 |
|
---|
5381 | if mkdir -p . 2>/dev/null; then
|
---|
5382 | as_mkdir_p=:
|
---|
5383 | else
|
---|
5384 | as_mkdir_p=false
|
---|
5385 | fi
|
---|
5386 |
|
---|
5387 | as_executable_p="test -f"
|
---|
5388 |
|
---|
5389 | # Sed expression to map a string onto a valid CPP name.
|
---|
5390 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
|
---|
5391 |
|
---|
5392 | # Sed expression to map a string onto a valid variable name.
|
---|
5393 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
|
---|
5394 |
|
---|
5395 |
|
---|
5396 | # IFS
|
---|
5397 | # We need space, tab and new line, in precisely that order.
|
---|
5398 | as_nl='
|
---|
5399 | '
|
---|
5400 | IFS=" $as_nl"
|
---|
5401 |
|
---|
5402 | # CDPATH.
|
---|
5403 | $as_unset CDPATH
|
---|
5404 |
|
---|
5405 | exec 6>&1
|
---|
5406 |
|
---|
5407 | # Open the log real soon, to keep \$[0] and so on meaningful, and to
|
---|
5408 | # report actual input values of CONFIG_FILES etc. instead of their
|
---|
5409 | # values after options handling. Logging --version etc. is OK.
|
---|
5410 | exec 5>>config.log
|
---|
5411 | {
|
---|
5412 | echo
|
---|
5413 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
|
---|
5414 | ## Running $as_me. ##
|
---|
5415 | _ASBOX
|
---|
5416 | } >&5
|
---|
5417 | cat >&5 <<_CSEOF
|
---|
5418 |
|
---|
5419 | This file was extended by sparsehash $as_me 0.3, which was
|
---|
5420 | generated by GNU Autoconf 2.57. Invocation command line was
|
---|
5421 |
|
---|
5422 | CONFIG_FILES = $CONFIG_FILES
|
---|
5423 | CONFIG_HEADERS = $CONFIG_HEADERS
|
---|
5424 | CONFIG_LINKS = $CONFIG_LINKS
|
---|
5425 | CONFIG_COMMANDS = $CONFIG_COMMANDS
|
---|
5426 | $ $0 $@
|
---|
5427 |
|
---|
5428 | _CSEOF
|
---|
5429 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
|
---|
5430 | echo >&5
|
---|
5431 | _ACEOF
|
---|
5432 |
|
---|
5433 | # Files that config.status was made for.
|
---|
5434 | if test -n "$ac_config_files"; then
|
---|
5435 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
|
---|
5436 | fi
|
---|
5437 |
|
---|
5438 | if test -n "$ac_config_headers"; then
|
---|
5439 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
|
---|
5440 | fi
|
---|
5441 |
|
---|
5442 | if test -n "$ac_config_links"; then
|
---|
5443 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
|
---|
5444 | fi
|
---|
5445 |
|
---|
5446 | if test -n "$ac_config_commands"; then
|
---|
5447 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
|
---|
5448 | fi
|
---|
5449 |
|
---|
5450 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
5451 |
|
---|
5452 | ac_cs_usage="\
|
---|
5453 | \`$as_me' instantiates files from templates according to the
|
---|
5454 | current configuration.
|
---|
5455 |
|
---|
5456 | Usage: $0 [OPTIONS] [FILE]...
|
---|
5457 |
|
---|
5458 | -h, --help print this help, then exit
|
---|
5459 | -V, --version print version number, then exit
|
---|
5460 | -q, --quiet do not print progress messages
|
---|
5461 | -d, --debug don't remove temporary files
|
---|
5462 | --recheck update $as_me by reconfiguring in the same conditions
|
---|
5463 | --file=FILE[:TEMPLATE]
|
---|
5464 | instantiate the configuration file FILE
|
---|
5465 | --header=FILE[:TEMPLATE]
|
---|
5466 | instantiate the configuration header FILE
|
---|
5467 |
|
---|
5468 | Configuration files:
|
---|
5469 | $config_files
|
---|
5470 |
|
---|
5471 | Configuration headers:
|
---|
5472 | $config_headers
|
---|
5473 |
|
---|
5474 | Configuration commands:
|
---|
5475 | $config_commands
|
---|
5476 |
|
---|
5477 | Report bugs to <bug-autoconf@gnu.org>."
|
---|
5478 | _ACEOF
|
---|
5479 |
|
---|
5480 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
5481 | ac_cs_version="\\
|
---|
5482 | sparsehash config.status 0.3
|
---|
5483 | configured by $0, generated by GNU Autoconf 2.57,
|
---|
5484 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
|
---|
5485 |
|
---|
5486 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
|
---|
5487 | Free Software Foundation, Inc.
|
---|
5488 | This config.status script is free software; the Free Software Foundation
|
---|
5489 | gives unlimited permission to copy, distribute and modify it."
|
---|
5490 | srcdir=$srcdir
|
---|
5491 | INSTALL="$INSTALL"
|
---|
5492 | _ACEOF
|
---|
5493 |
|
---|
5494 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
5495 | # If no file are specified by the user, then we need to provide default
|
---|
5496 | # value. By we need to know if files were specified by the user.
|
---|
5497 | ac_need_defaults=:
|
---|
5498 | while test $# != 0
|
---|
5499 | do
|
---|
5500 | case $1 in
|
---|
5501 | --*=*)
|
---|
5502 | ac_option=`expr "x$1" : 'x\([^=]*\)='`
|
---|
5503 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
|
---|
5504 | ac_shift=:
|
---|
5505 | ;;
|
---|
5506 | -*)
|
---|
5507 | ac_option=$1
|
---|
5508 | ac_optarg=$2
|
---|
5509 | ac_shift=shift
|
---|
5510 | ;;
|
---|
5511 | *) # This is not an option, so the user has probably given explicit
|
---|
5512 | # arguments.
|
---|
5513 | ac_option=$1
|
---|
5514 | ac_need_defaults=false;;
|
---|
5515 | esac
|
---|
5516 |
|
---|
5517 | case $ac_option in
|
---|
5518 | # Handling of the options.
|
---|
5519 | _ACEOF
|
---|
5520 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
5521 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
---|
5522 | ac_cs_recheck=: ;;
|
---|
5523 | --version | --vers* | -V )
|
---|
5524 | echo "$ac_cs_version"; exit 0 ;;
|
---|
5525 | --he | --h)
|
---|
5526 | # Conflict between --help and --header
|
---|
5527 | { { echo "$as_me:$LINENO: error: ambiguous option: $1
|
---|
5528 | Try \`$0 --help' for more information." >&5
|
---|
5529 | echo "$as_me: error: ambiguous option: $1
|
---|
5530 | Try \`$0 --help' for more information." >&2;}
|
---|
5531 | { (exit 1); exit 1; }; };;
|
---|
5532 | --help | --hel | -h )
|
---|
5533 | echo "$ac_cs_usage"; exit 0 ;;
|
---|
5534 | --debug | --d* | -d )
|
---|
5535 | debug=: ;;
|
---|
5536 | --file | --fil | --fi | --f )
|
---|
5537 | $ac_shift
|
---|
5538 | CONFIG_FILES="$CONFIG_FILES $ac_optarg"
|
---|
5539 | ac_need_defaults=false;;
|
---|
5540 | --header | --heade | --head | --hea )
|
---|
5541 | $ac_shift
|
---|
5542 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
|
---|
5543 | ac_need_defaults=false;;
|
---|
5544 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
5545 | | -silent | --silent | --silen | --sile | --sil | --si | --s)
|
---|
5546 | ac_cs_silent=: ;;
|
---|
5547 |
|
---|
5548 | # This is an error.
|
---|
5549 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
|
---|
5550 | Try \`$0 --help' for more information." >&5
|
---|
5551 | echo "$as_me: error: unrecognized option: $1
|
---|
5552 | Try \`$0 --help' for more information." >&2;}
|
---|
5553 | { (exit 1); exit 1; }; } ;;
|
---|
5554 |
|
---|
5555 | *) ac_config_targets="$ac_config_targets $1" ;;
|
---|
5556 |
|
---|
5557 | esac
|
---|
5558 | shift
|
---|
5559 | done
|
---|
5560 |
|
---|
5561 | ac_configure_extra_args=
|
---|
5562 |
|
---|
5563 | if $ac_cs_silent; then
|
---|
5564 | exec 6>/dev/null
|
---|
5565 | ac_configure_extra_args="$ac_configure_extra_args --silent"
|
---|
5566 | fi
|
---|
5567 |
|
---|
5568 | _ACEOF
|
---|
5569 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
5570 | if \$ac_cs_recheck; then
|
---|
5571 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
|
---|
5572 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
|
---|
5573 | fi
|
---|
5574 |
|
---|
5575 | _ACEOF
|
---|
5576 |
|
---|
5577 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
5578 | #
|
---|
5579 | # INIT-COMMANDS section.
|
---|
5580 | #
|
---|
5581 |
|
---|
5582 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
|
---|
5583 |
|
---|
5584 | _ACEOF
|
---|
5585 |
|
---|
5586 |
|
---|
5587 |
|
---|
5588 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
5589 | for ac_config_target in $ac_config_targets
|
---|
5590 | do
|
---|
5591 | case "$ac_config_target" in
|
---|
5592 | # Handling of arguments.
|
---|
5593 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
|
---|
5594 | "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
|
---|
5595 | "src/google/sparsehash/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/google/sparsehash/config.h" ;;
|
---|
5596 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
|
---|
5597 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
|
---|
5598 | { (exit 1); exit 1; }; };;
|
---|
5599 | esac
|
---|
5600 | done
|
---|
5601 |
|
---|
5602 | # If the user did not use the arguments to specify the items to instantiate,
|
---|
5603 | # then the envvar interface is used. Set only those that are not.
|
---|
5604 | # We use the long form for the default assignment because of an extremely
|
---|
5605 | # bizarre bug on SunOS 4.1.3.
|
---|
5606 | if $ac_need_defaults; then
|
---|
5607 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
|
---|
5608 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
|
---|
5609 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
|
---|
5610 | fi
|
---|
5611 |
|
---|
5612 | # Have a temporary directory for convenience. Make it in the build tree
|
---|
5613 | # simply because there is no reason to put it here, and in addition,
|
---|
5614 | # creating and moving files from /tmp can sometimes cause problems.
|
---|
5615 | # Create a temporary directory, and hook for its removal unless debugging.
|
---|
5616 | $debug ||
|
---|
5617 | {
|
---|
5618 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
|
---|
5619 | trap '{ (exit 1); exit 1; }' 1 2 13 15
|
---|
5620 | }
|
---|
5621 |
|
---|
5622 | # Create a (secure) tmp directory for tmp files.
|
---|
5623 |
|
---|
5624 | {
|
---|
5625 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
|
---|
5626 | test -n "$tmp" && test -d "$tmp"
|
---|
5627 | } ||
|
---|
5628 | {
|
---|
5629 | tmp=./confstat$$-$RANDOM
|
---|
5630 | (umask 077 && mkdir $tmp)
|
---|
5631 | } ||
|
---|
5632 | {
|
---|
5633 | echo "$me: cannot create a temporary directory in ." >&2
|
---|
5634 | { (exit 1); exit 1; }
|
---|
5635 | }
|
---|
5636 |
|
---|
5637 | _ACEOF
|
---|
5638 |
|
---|
5639 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
5640 |
|
---|
5641 | #
|
---|
5642 | # CONFIG_FILES section.
|
---|
5643 | #
|
---|
5644 |
|
---|
5645 | # No need to generate the scripts if there are no CONFIG_FILES.
|
---|
5646 | # This happens for instance when ./config.status config.h
|
---|
5647 | if test -n "\$CONFIG_FILES"; then
|
---|
5648 | # Protect against being on the right side of a sed subst in config.status.
|
---|
5649 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
|
---|
5650 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
|
---|
5651 | s,@SHELL@,$SHELL,;t t
|
---|
5652 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
|
---|
5653 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
|
---|
5654 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
|
---|
5655 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
|
---|
5656 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
|
---|
5657 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
|
---|
5658 | s,@exec_prefix@,$exec_prefix,;t t
|
---|
5659 | s,@prefix@,$prefix,;t t
|
---|
5660 | s,@program_transform_name@,$program_transform_name,;t t
|
---|
5661 | s,@bindir@,$bindir,;t t
|
---|
5662 | s,@sbindir@,$sbindir,;t t
|
---|
5663 | s,@libexecdir@,$libexecdir,;t t
|
---|
5664 | s,@datadir@,$datadir,;t t
|
---|
5665 | s,@sysconfdir@,$sysconfdir,;t t
|
---|
5666 | s,@sharedstatedir@,$sharedstatedir,;t t
|
---|
5667 | s,@localstatedir@,$localstatedir,;t t
|
---|
5668 | s,@libdir@,$libdir,;t t
|
---|
5669 | s,@includedir@,$includedir,;t t
|
---|
5670 | s,@oldincludedir@,$oldincludedir,;t t
|
---|
5671 | s,@infodir@,$infodir,;t t
|
---|
5672 | s,@mandir@,$mandir,;t t
|
---|
5673 | s,@build_alias@,$build_alias,;t t
|
---|
5674 | s,@host_alias@,$host_alias,;t t
|
---|
5675 | s,@target_alias@,$target_alias,;t t
|
---|
5676 | s,@DEFS@,$DEFS,;t t
|
---|
5677 | s,@ECHO_C@,$ECHO_C,;t t
|
---|
5678 | s,@ECHO_N@,$ECHO_N,;t t
|
---|
5679 | s,@ECHO_T@,$ECHO_T,;t t
|
---|
5680 | s,@LIBS@,$LIBS,;t t
|
---|
5681 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
|
---|
5682 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
|
---|
5683 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t
|
---|
5684 | s,@PACKAGE@,$PACKAGE,;t t
|
---|
5685 | s,@VERSION@,$VERSION,;t t
|
---|
5686 | s,@ACLOCAL@,$ACLOCAL,;t t
|
---|
5687 | s,@AUTOCONF@,$AUTOCONF,;t t
|
---|
5688 | s,@AUTOMAKE@,$AUTOMAKE,;t t
|
---|
5689 | s,@AUTOHEADER@,$AUTOHEADER,;t t
|
---|
5690 | s,@MAKEINFO@,$MAKEINFO,;t t
|
---|
5691 | s,@AMTAR@,$AMTAR,;t t
|
---|
5692 | s,@install_sh@,$install_sh,;t t
|
---|
5693 | s,@STRIP@,$STRIP,;t t
|
---|
5694 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
|
---|
5695 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
|
---|
5696 | s,@AWK@,$AWK,;t t
|
---|
5697 | s,@SET_MAKE@,$SET_MAKE,;t t
|
---|
5698 | s,@CC@,$CC,;t t
|
---|
5699 | s,@CFLAGS@,$CFLAGS,;t t
|
---|
5700 | s,@LDFLAGS@,$LDFLAGS,;t t
|
---|
5701 | s,@CPPFLAGS@,$CPPFLAGS,;t t
|
---|
5702 | s,@ac_ct_CC@,$ac_ct_CC,;t t
|
---|
5703 | s,@EXEEXT@,$EXEEXT,;t t
|
---|
5704 | s,@OBJEXT@,$OBJEXT,;t t
|
---|
5705 | s,@DEPDIR@,$DEPDIR,;t t
|
---|
5706 | s,@am__include@,$am__include,;t t
|
---|
5707 | s,@am__quote@,$am__quote,;t t
|
---|
5708 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
|
---|
5709 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
|
---|
5710 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
|
---|
5711 | s,@CCDEPMODE@,$CCDEPMODE,;t t
|
---|
5712 | s,@CPP@,$CPP,;t t
|
---|
5713 | s,@CXX@,$CXX,;t t
|
---|
5714 | s,@CXXFLAGS@,$CXXFLAGS,;t t
|
---|
5715 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t
|
---|
5716 | s,@CXXDEPMODE@,$CXXDEPMODE,;t t
|
---|
5717 | s,@EGREP@,$EGREP,;t t
|
---|
5718 | s,@CXXCPP@,$CXXCPP,;t t
|
---|
5719 | s,@LIBOBJS@,$LIBOBJS,;t t
|
---|
5720 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t
|
---|
5721 | CEOF
|
---|
5722 |
|
---|
5723 | _ACEOF
|
---|
5724 |
|
---|
5725 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
5726 | # Split the substitutions into bite-sized pieces for seds with
|
---|
5727 | # small command number limits, like on Digital OSF/1 and HP-UX.
|
---|
5728 | ac_max_sed_lines=48
|
---|
5729 | ac_sed_frag=1 # Number of current file.
|
---|
5730 | ac_beg=1 # First line for current file.
|
---|
5731 | ac_end=$ac_max_sed_lines # Line after last line for current file.
|
---|
5732 | ac_more_lines=:
|
---|
5733 | ac_sed_cmds=
|
---|
5734 | while $ac_more_lines; do
|
---|
5735 | if test $ac_beg -gt 1; then
|
---|
5736 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
|
---|
5737 | else
|
---|
5738 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
|
---|
5739 | fi
|
---|
5740 | if test ! -s $tmp/subs.frag; then
|
---|
5741 | ac_more_lines=false
|
---|
5742 | else
|
---|
5743 | # The purpose of the label and of the branching condition is to
|
---|
5744 | # speed up the sed processing (if there are no `@' at all, there
|
---|
5745 | # is no need to browse any of the substitutions).
|
---|
5746 | # These are the two extra sed commands mentioned above.
|
---|
5747 | (echo ':t
|
---|
5748 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
|
---|
5749 | if test -z "$ac_sed_cmds"; then
|
---|
5750 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
|
---|
5751 | else
|
---|
5752 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
|
---|
5753 | fi
|
---|
5754 | ac_sed_frag=`expr $ac_sed_frag + 1`
|
---|
5755 | ac_beg=$ac_end
|
---|
5756 | ac_end=`expr $ac_end + $ac_max_sed_lines`
|
---|
5757 | fi
|
---|
5758 | done
|
---|
5759 | if test -z "$ac_sed_cmds"; then
|
---|
5760 | ac_sed_cmds=cat
|
---|
5761 | fi
|
---|
5762 | fi # test -n "$CONFIG_FILES"
|
---|
5763 |
|
---|
5764 | _ACEOF
|
---|
5765 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
5766 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
|
---|
5767 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
---|
5768 | case $ac_file in
|
---|
5769 | - | *:- | *:-:* ) # input from stdin
|
---|
5770 | cat >$tmp/stdin
|
---|
5771 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
5772 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
5773 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
5774 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
5775 | * ) ac_file_in=$ac_file.in ;;
|
---|
5776 | esac
|
---|
5777 |
|
---|
5778 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
|
---|
5779 | ac_dir=`(dirname "$ac_file") 2>/dev/null ||
|
---|
5780 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
5781 | X"$ac_file" : 'X\(//\)[^/]' \| \
|
---|
5782 | X"$ac_file" : 'X\(//\)$' \| \
|
---|
5783 | X"$ac_file" : 'X\(/\)' \| \
|
---|
5784 | . : '\(.\)' 2>/dev/null ||
|
---|
5785 | echo X"$ac_file" |
|
---|
5786 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
5787 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
5788 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
5789 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
5790 | s/.*/./; q'`
|
---|
5791 | { if $as_mkdir_p; then
|
---|
5792 | mkdir -p "$ac_dir"
|
---|
5793 | else
|
---|
5794 | as_dir="$ac_dir"
|
---|
5795 | as_dirs=
|
---|
5796 | while test ! -d "$as_dir"; do
|
---|
5797 | as_dirs="$as_dir $as_dirs"
|
---|
5798 | as_dir=`(dirname "$as_dir") 2>/dev/null ||
|
---|
5799 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
5800 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
5801 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
5802 | X"$as_dir" : 'X\(/\)' \| \
|
---|
5803 | . : '\(.\)' 2>/dev/null ||
|
---|
5804 | echo X"$as_dir" |
|
---|
5805 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
5806 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
5807 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
5808 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
5809 | s/.*/./; q'`
|
---|
5810 | done
|
---|
5811 | test ! -n "$as_dirs" || mkdir $as_dirs
|
---|
5812 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
|
---|
5813 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
|
---|
5814 | { (exit 1); exit 1; }; }; }
|
---|
5815 |
|
---|
5816 | ac_builddir=.
|
---|
5817 |
|
---|
5818 | if test "$ac_dir" != .; then
|
---|
5819 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
---|
5820 | # A "../" for each directory in $ac_dir_suffix.
|
---|
5821 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
|
---|
5822 | else
|
---|
5823 | ac_dir_suffix= ac_top_builddir=
|
---|
5824 | fi
|
---|
5825 |
|
---|
5826 | case $srcdir in
|
---|
5827 | .) # No --srcdir option. We are building in place.
|
---|
5828 | ac_srcdir=.
|
---|
5829 | if test -z "$ac_top_builddir"; then
|
---|
5830 | ac_top_srcdir=.
|
---|
5831 | else
|
---|
5832 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
|
---|
5833 | fi ;;
|
---|
5834 | [\\/]* | ?:[\\/]* ) # Absolute path.
|
---|
5835 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
5836 | ac_top_srcdir=$srcdir ;;
|
---|
5837 | *) # Relative path.
|
---|
5838 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
|
---|
5839 | ac_top_srcdir=$ac_top_builddir$srcdir ;;
|
---|
5840 | esac
|
---|
5841 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
|
---|
5842 | # absolute.
|
---|
5843 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
|
---|
5844 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
|
---|
5845 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
|
---|
5846 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
|
---|
5847 |
|
---|
5848 |
|
---|
5849 | case $INSTALL in
|
---|
5850 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
|
---|
5851 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
|
---|
5852 | esac
|
---|
5853 |
|
---|
5854 | if test x"$ac_file" != x-; then
|
---|
5855 | { echo "$as_me:$LINENO: creating $ac_file" >&5
|
---|
5856 | echo "$as_me: creating $ac_file" >&6;}
|
---|
5857 | rm -f "$ac_file"
|
---|
5858 | fi
|
---|
5859 | # Let's still pretend it is `configure' which instantiates (i.e., don't
|
---|
5860 | # use $as_me), people would be surprised to read:
|
---|
5861 | # /* config.h. Generated by config.status. */
|
---|
5862 | if test x"$ac_file" = x-; then
|
---|
5863 | configure_input=
|
---|
5864 | else
|
---|
5865 | configure_input="$ac_file. "
|
---|
5866 | fi
|
---|
5867 | configure_input=$configure_input"Generated from `echo $ac_file_in |
|
---|
5868 | sed 's,.*/,,'` by configure."
|
---|
5869 |
|
---|
5870 | # First look for the input files in the build tree, otherwise in the
|
---|
5871 | # src tree.
|
---|
5872 | ac_file_inputs=`IFS=:
|
---|
5873 | for f in $ac_file_in; do
|
---|
5874 | case $f in
|
---|
5875 | -) echo $tmp/stdin ;;
|
---|
5876 | [\\/$]*)
|
---|
5877 | # Absolute (can't be DOS-style, as IFS=:)
|
---|
5878 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
---|
5879 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
5880 | { (exit 1); exit 1; }; }
|
---|
5881 | echo $f;;
|
---|
5882 | *) # Relative
|
---|
5883 | if test -f "$f"; then
|
---|
5884 | # Build tree
|
---|
5885 | echo $f
|
---|
5886 | elif test -f "$srcdir/$f"; then
|
---|
5887 | # Source tree
|
---|
5888 | echo $srcdir/$f
|
---|
5889 | else
|
---|
5890 | # /dev/null tree
|
---|
5891 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
---|
5892 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
5893 | { (exit 1); exit 1; }; }
|
---|
5894 | fi;;
|
---|
5895 | esac
|
---|
5896 | done` || { (exit 1); exit 1; }
|
---|
5897 | _ACEOF
|
---|
5898 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
5899 | sed "$ac_vpsub
|
---|
5900 | $extrasub
|
---|
5901 | _ACEOF
|
---|
5902 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
5903 | :t
|
---|
5904 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
|
---|
5905 | s,@configure_input@,$configure_input,;t t
|
---|
5906 | s,@srcdir@,$ac_srcdir,;t t
|
---|
5907 | s,@abs_srcdir@,$ac_abs_srcdir,;t t
|
---|
5908 | s,@top_srcdir@,$ac_top_srcdir,;t t
|
---|
5909 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
|
---|
5910 | s,@builddir@,$ac_builddir,;t t
|
---|
5911 | s,@abs_builddir@,$ac_abs_builddir,;t t
|
---|
5912 | s,@top_builddir@,$ac_top_builddir,;t t
|
---|
5913 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
|
---|
5914 | s,@INSTALL@,$ac_INSTALL,;t t
|
---|
5915 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
|
---|
5916 | rm -f $tmp/stdin
|
---|
5917 | if test x"$ac_file" != x-; then
|
---|
5918 | mv $tmp/out $ac_file
|
---|
5919 | else
|
---|
5920 | cat $tmp/out
|
---|
5921 | rm -f $tmp/out
|
---|
5922 | fi
|
---|
5923 |
|
---|
5924 | done
|
---|
5925 | _ACEOF
|
---|
5926 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
5927 |
|
---|
5928 | #
|
---|
5929 | # CONFIG_HEADER section.
|
---|
5930 | #
|
---|
5931 |
|
---|
5932 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
|
---|
5933 | # NAME is the cpp macro being defined and VALUE is the value it is being given.
|
---|
5934 | #
|
---|
5935 | # ac_d sets the value in "#define NAME VALUE" lines.
|
---|
5936 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
|
---|
5937 | ac_dB='[ ].*$,\1#\2'
|
---|
5938 | ac_dC=' '
|
---|
5939 | ac_dD=',;t'
|
---|
5940 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
|
---|
5941 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
|
---|
5942 | ac_uB='$,\1#\2define\3'
|
---|
5943 | ac_uC=' '
|
---|
5944 | ac_uD=',;t'
|
---|
5945 |
|
---|
5946 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
|
---|
5947 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
---|
5948 | case $ac_file in
|
---|
5949 | - | *:- | *:-:* ) # input from stdin
|
---|
5950 | cat >$tmp/stdin
|
---|
5951 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
5952 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
5953 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
5954 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
5955 | * ) ac_file_in=$ac_file.in ;;
|
---|
5956 | esac
|
---|
5957 |
|
---|
5958 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
|
---|
5959 | echo "$as_me: creating $ac_file" >&6;}
|
---|
5960 |
|
---|
5961 | # First look for the input files in the build tree, otherwise in the
|
---|
5962 | # src tree.
|
---|
5963 | ac_file_inputs=`IFS=:
|
---|
5964 | for f in $ac_file_in; do
|
---|
5965 | case $f in
|
---|
5966 | -) echo $tmp/stdin ;;
|
---|
5967 | [\\/$]*)
|
---|
5968 | # Absolute (can't be DOS-style, as IFS=:)
|
---|
5969 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
---|
5970 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
5971 | { (exit 1); exit 1; }; }
|
---|
5972 | echo $f;;
|
---|
5973 | *) # Relative
|
---|
5974 | if test -f "$f"; then
|
---|
5975 | # Build tree
|
---|
5976 | echo $f
|
---|
5977 | elif test -f "$srcdir/$f"; then
|
---|
5978 | # Source tree
|
---|
5979 | echo $srcdir/$f
|
---|
5980 | else
|
---|
5981 | # /dev/null tree
|
---|
5982 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
---|
5983 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
5984 | { (exit 1); exit 1; }; }
|
---|
5985 | fi;;
|
---|
5986 | esac
|
---|
5987 | done` || { (exit 1); exit 1; }
|
---|
5988 | # Remove the trailing spaces.
|
---|
5989 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
|
---|
5990 |
|
---|
5991 | _ACEOF
|
---|
5992 |
|
---|
5993 | # Transform confdefs.h into two sed scripts, `conftest.defines' and
|
---|
5994 | # `conftest.undefs', that substitutes the proper values into
|
---|
5995 | # config.h.in to produce config.h. The first handles `#define'
|
---|
5996 | # templates, and the second `#undef' templates.
|
---|
5997 | # And first: Protect against being on the right side of a sed subst in
|
---|
5998 | # config.status. Protect against being in an unquoted here document
|
---|
5999 | # in config.status.
|
---|
6000 | rm -f conftest.defines conftest.undefs
|
---|
6001 | # Using a here document instead of a string reduces the quoting nightmare.
|
---|
6002 | # Putting comments in sed scripts is not portable.
|
---|
6003 | #
|
---|
6004 | # `end' is used to avoid that the second main sed command (meant for
|
---|
6005 | # 0-ary CPP macros) applies to n-ary macro definitions.
|
---|
6006 | # See the Autoconf documentation for `clear'.
|
---|
6007 | cat >confdef2sed.sed <<\_ACEOF
|
---|
6008 | s/[\\&,]/\\&/g
|
---|
6009 | s,[\\$`],\\&,g
|
---|
6010 | t clear
|
---|
6011 | : clear
|
---|
6012 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
|
---|
6013 | t end
|
---|
6014 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
|
---|
6015 | : end
|
---|
6016 | _ACEOF
|
---|
6017 | # If some macros were called several times there might be several times
|
---|
6018 | # the same #defines, which is useless. Nevertheless, we may not want to
|
---|
6019 | # sort them, since we want the *last* AC-DEFINE to be honored.
|
---|
6020 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
|
---|
6021 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
|
---|
6022 | rm -f confdef2sed.sed
|
---|
6023 |
|
---|
6024 | # This sed command replaces #undef with comments. This is necessary, for
|
---|
6025 | # example, in the case of _POSIX_SOURCE, which is predefined and required
|
---|
6026 | # on some systems where configure will not decide to define it.
|
---|
6027 | cat >>conftest.undefs <<\_ACEOF
|
---|
6028 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
|
---|
6029 | _ACEOF
|
---|
6030 |
|
---|
6031 | # Break up conftest.defines because some shells have a limit on the size
|
---|
6032 | # of here documents, and old seds have small limits too (100 cmds).
|
---|
6033 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
|
---|
6034 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
|
---|
6035 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
|
---|
6036 | echo ' :' >>$CONFIG_STATUS
|
---|
6037 | rm -f conftest.tail
|
---|
6038 | while grep . conftest.defines >/dev/null
|
---|
6039 | do
|
---|
6040 | # Write a limited-size here document to $tmp/defines.sed.
|
---|
6041 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
|
---|
6042 | # Speed up: don't consider the non `#define' lines.
|
---|
6043 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
|
---|
6044 | # Work around the forget-to-reset-the-flag bug.
|
---|
6045 | echo 't clr' >>$CONFIG_STATUS
|
---|
6046 | echo ': clr' >>$CONFIG_STATUS
|
---|
6047 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
|
---|
6048 | echo 'CEOF
|
---|
6049 | sed -f $tmp/defines.sed $tmp/in >$tmp/out
|
---|
6050 | rm -f $tmp/in
|
---|
6051 | mv $tmp/out $tmp/in
|
---|
6052 | ' >>$CONFIG_STATUS
|
---|
6053 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
|
---|
6054 | rm -f conftest.defines
|
---|
6055 | mv conftest.tail conftest.defines
|
---|
6056 | done
|
---|
6057 | rm -f conftest.defines
|
---|
6058 | echo ' fi # grep' >>$CONFIG_STATUS
|
---|
6059 | echo >>$CONFIG_STATUS
|
---|
6060 |
|
---|
6061 | # Break up conftest.undefs because some shells have a limit on the size
|
---|
6062 | # of here documents, and old seds have small limits too (100 cmds).
|
---|
6063 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
|
---|
6064 | rm -f conftest.tail
|
---|
6065 | while grep . conftest.undefs >/dev/null
|
---|
6066 | do
|
---|
6067 | # Write a limited-size here document to $tmp/undefs.sed.
|
---|
6068 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
|
---|
6069 | # Speed up: don't consider the non `#undef'
|
---|
6070 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
|
---|
6071 | # Work around the forget-to-reset-the-flag bug.
|
---|
6072 | echo 't clr' >>$CONFIG_STATUS
|
---|
6073 | echo ': clr' >>$CONFIG_STATUS
|
---|
6074 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
|
---|
6075 | echo 'CEOF
|
---|
6076 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out
|
---|
6077 | rm -f $tmp/in
|
---|
6078 | mv $tmp/out $tmp/in
|
---|
6079 | ' >>$CONFIG_STATUS
|
---|
6080 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
|
---|
6081 | rm -f conftest.undefs
|
---|
6082 | mv conftest.tail conftest.undefs
|
---|
6083 | done
|
---|
6084 | rm -f conftest.undefs
|
---|
6085 |
|
---|
6086 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
6087 | # Let's still pretend it is `configure' which instantiates (i.e., don't
|
---|
6088 | # use $as_me), people would be surprised to read:
|
---|
6089 | # /* config.h. Generated by config.status. */
|
---|
6090 | if test x"$ac_file" = x-; then
|
---|
6091 | echo "/* Generated by configure. */" >$tmp/config.h
|
---|
6092 | else
|
---|
6093 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
|
---|
6094 | fi
|
---|
6095 | cat $tmp/in >>$tmp/config.h
|
---|
6096 | rm -f $tmp/in
|
---|
6097 | if test x"$ac_file" != x-; then
|
---|
6098 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
|
---|
6099 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
|
---|
6100 | echo "$as_me: $ac_file is unchanged" >&6;}
|
---|
6101 | else
|
---|
6102 | ac_dir=`(dirname "$ac_file") 2>/dev/null ||
|
---|
6103 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
6104 | X"$ac_file" : 'X\(//\)[^/]' \| \
|
---|
6105 | X"$ac_file" : 'X\(//\)$' \| \
|
---|
6106 | X"$ac_file" : 'X\(/\)' \| \
|
---|
6107 | . : '\(.\)' 2>/dev/null ||
|
---|
6108 | echo X"$ac_file" |
|
---|
6109 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
6110 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
6111 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
6112 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
6113 | s/.*/./; q'`
|
---|
6114 | { if $as_mkdir_p; then
|
---|
6115 | mkdir -p "$ac_dir"
|
---|
6116 | else
|
---|
6117 | as_dir="$ac_dir"
|
---|
6118 | as_dirs=
|
---|
6119 | while test ! -d "$as_dir"; do
|
---|
6120 | as_dirs="$as_dir $as_dirs"
|
---|
6121 | as_dir=`(dirname "$as_dir") 2>/dev/null ||
|
---|
6122 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
6123 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
6124 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
6125 | X"$as_dir" : 'X\(/\)' \| \
|
---|
6126 | . : '\(.\)' 2>/dev/null ||
|
---|
6127 | echo X"$as_dir" |
|
---|
6128 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
6129 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
6130 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
6131 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
6132 | s/.*/./; q'`
|
---|
6133 | done
|
---|
6134 | test ! -n "$as_dirs" || mkdir $as_dirs
|
---|
6135 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
|
---|
6136 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
|
---|
6137 | { (exit 1); exit 1; }; }; }
|
---|
6138 |
|
---|
6139 | rm -f $ac_file
|
---|
6140 | mv $tmp/config.h $ac_file
|
---|
6141 | fi
|
---|
6142 | else
|
---|
6143 | cat $tmp/config.h
|
---|
6144 | rm -f $tmp/config.h
|
---|
6145 | fi
|
---|
6146 | # Run the commands associated with the file.
|
---|
6147 | case $ac_file in
|
---|
6148 | src/google/sparsehash/config.h ) # update the timestamp
|
---|
6149 | echo 'timestamp for src/google/sparsehash/config.h' >"src/google/sparsehash/stamp-h1"
|
---|
6150 | ;;
|
---|
6151 | esac
|
---|
6152 | done
|
---|
6153 | _ACEOF
|
---|
6154 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
6155 |
|
---|
6156 | #
|
---|
6157 | # CONFIG_COMMANDS section.
|
---|
6158 | #
|
---|
6159 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
|
---|
6160 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
|
---|
6161 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
6162 | ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
|
---|
6163 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
6164 | X"$ac_dest" : 'X\(//\)[^/]' \| \
|
---|
6165 | X"$ac_dest" : 'X\(//\)$' \| \
|
---|
6166 | X"$ac_dest" : 'X\(/\)' \| \
|
---|
6167 | . : '\(.\)' 2>/dev/null ||
|
---|
6168 | echo X"$ac_dest" |
|
---|
6169 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
6170 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
6171 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
6172 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
6173 | s/.*/./; q'`
|
---|
6174 | ac_builddir=.
|
---|
6175 |
|
---|
6176 | if test "$ac_dir" != .; then
|
---|
6177 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
---|
6178 | # A "../" for each directory in $ac_dir_suffix.
|
---|
6179 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
|
---|
6180 | else
|
---|
6181 | ac_dir_suffix= ac_top_builddir=
|
---|
6182 | fi
|
---|
6183 |
|
---|
6184 | case $srcdir in
|
---|
6185 | .) # No --srcdir option. We are building in place.
|
---|
6186 | ac_srcdir=.
|
---|
6187 | if test -z "$ac_top_builddir"; then
|
---|
6188 | ac_top_srcdir=.
|
---|
6189 | else
|
---|
6190 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
|
---|
6191 | fi ;;
|
---|
6192 | [\\/]* | ?:[\\/]* ) # Absolute path.
|
---|
6193 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
6194 | ac_top_srcdir=$srcdir ;;
|
---|
6195 | *) # Relative path.
|
---|
6196 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
|
---|
6197 | ac_top_srcdir=$ac_top_builddir$srcdir ;;
|
---|
6198 | esac
|
---|
6199 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
|
---|
6200 | # absolute.
|
---|
6201 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
|
---|
6202 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
|
---|
6203 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
|
---|
6204 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
|
---|
6205 |
|
---|
6206 |
|
---|
6207 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
|
---|
6208 | echo "$as_me: executing $ac_dest commands" >&6;}
|
---|
6209 | case $ac_dest in
|
---|
6210 | depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
|
---|
6211 | # Strip MF so we end up with the name of the file.
|
---|
6212 | mf=`echo "$mf" | sed -e 's/:.*$//'`
|
---|
6213 | # Check whether this is an Automake generated Makefile or not.
|
---|
6214 | # We used to match only the files named `Makefile.in', but
|
---|
6215 | # some people rename them; so instead we look at the file content.
|
---|
6216 | # Grep'ing the first line is not enough: some people post-process
|
---|
6217 | # each Makefile.in and add a new line on top of each file to say so.
|
---|
6218 | # So let's grep whole file.
|
---|
6219 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
|
---|
6220 | dirpart=`(dirname "$mf") 2>/dev/null ||
|
---|
6221 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
6222 | X"$mf" : 'X\(//\)[^/]' \| \
|
---|
6223 | X"$mf" : 'X\(//\)$' \| \
|
---|
6224 | X"$mf" : 'X\(/\)' \| \
|
---|
6225 | . : '\(.\)' 2>/dev/null ||
|
---|
6226 | echo X"$mf" |
|
---|
6227 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
6228 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
6229 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
6230 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
6231 | s/.*/./; q'`
|
---|
6232 | else
|
---|
6233 | continue
|
---|
6234 | fi
|
---|
6235 | grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
|
---|
6236 | # Extract the definition of DEP_FILES from the Makefile without
|
---|
6237 | # running `make'.
|
---|
6238 | DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
|
---|
6239 | test -z "$DEPDIR" && continue
|
---|
6240 | # When using ansi2knr, U may be empty or an underscore; expand it
|
---|
6241 | U=`sed -n -e '/^U = / s///p' < "$mf"`
|
---|
6242 | test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
|
---|
6243 | # We invoke sed twice because it is the simplest approach to
|
---|
6244 | # changing $(DEPDIR) to its actual value in the expansion.
|
---|
6245 | for file in `sed -n -e '
|
---|
6246 | /^DEP_FILES = .*\\\\$/ {
|
---|
6247 | s/^DEP_FILES = //
|
---|
6248 | :loop
|
---|
6249 | s/\\\\$//
|
---|
6250 | p
|
---|
6251 | n
|
---|
6252 | /\\\\$/ b loop
|
---|
6253 | p
|
---|
6254 | }
|
---|
6255 | /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
|
---|
6256 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
|
---|
6257 | # Make sure the directory exists.
|
---|
6258 | test -f "$dirpart/$file" && continue
|
---|
6259 | fdir=`(dirname "$file") 2>/dev/null ||
|
---|
6260 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
6261 | X"$file" : 'X\(//\)[^/]' \| \
|
---|
6262 | X"$file" : 'X\(//\)$' \| \
|
---|
6263 | X"$file" : 'X\(/\)' \| \
|
---|
6264 | . : '\(.\)' 2>/dev/null ||
|
---|
6265 | echo X"$file" |
|
---|
6266 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
6267 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
6268 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
6269 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
6270 | s/.*/./; q'`
|
---|
6271 | { if $as_mkdir_p; then
|
---|
6272 | mkdir -p $dirpart/$fdir
|
---|
6273 | else
|
---|
6274 | as_dir=$dirpart/$fdir
|
---|
6275 | as_dirs=
|
---|
6276 | while test ! -d "$as_dir"; do
|
---|
6277 | as_dirs="$as_dir $as_dirs"
|
---|
6278 | as_dir=`(dirname "$as_dir") 2>/dev/null ||
|
---|
6279 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
6280 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
6281 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
6282 | X"$as_dir" : 'X\(/\)' \| \
|
---|
6283 | . : '\(.\)' 2>/dev/null ||
|
---|
6284 | echo X"$as_dir" |
|
---|
6285 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
6286 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
6287 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
6288 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
6289 | s/.*/./; q'`
|
---|
6290 | done
|
---|
6291 | test ! -n "$as_dirs" || mkdir $as_dirs
|
---|
6292 | fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
|
---|
6293 | echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
|
---|
6294 | { (exit 1); exit 1; }; }; }
|
---|
6295 |
|
---|
6296 | # echo "creating $dirpart/$file"
|
---|
6297 | echo '# dummy' > "$dirpart/$file"
|
---|
6298 | done
|
---|
6299 | done
|
---|
6300 | ;;
|
---|
6301 | esac
|
---|
6302 | done
|
---|
6303 | _ACEOF
|
---|
6304 |
|
---|
6305 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
6306 |
|
---|
6307 | { (exit 0); exit 0; }
|
---|
6308 | _ACEOF
|
---|
6309 | chmod +x $CONFIG_STATUS
|
---|
6310 | ac_clean_files=$ac_clean_files_save
|
---|
6311 |
|
---|
6312 |
|
---|
6313 | # configure is writing to config.log, and then calls config.status.
|
---|
6314 | # config.status does its own redirection, appending to config.log.
|
---|
6315 | # Unfortunately, on DOS this fails, as config.log is still kept open
|
---|
6316 | # by configure, so config.status won't be able to write to it; its
|
---|
6317 | # output is simply discarded. So we exec the FD to /dev/null,
|
---|
6318 | # effectively closing config.log, so it can be properly (re)opened and
|
---|
6319 | # appended to by config.status. When coming back to configure, we
|
---|
6320 | # need to make the FD available again.
|
---|
6321 | if test "$no_create" != yes; then
|
---|
6322 | ac_cs_success=:
|
---|
6323 | ac_config_status_args=
|
---|
6324 | test "$silent" = yes &&
|
---|
6325 | ac_config_status_args="$ac_config_status_args --quiet"
|
---|
6326 | exec 5>/dev/null
|
---|
6327 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
|
---|
6328 | exec 5>>config.log
|
---|
6329 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which
|
---|
6330 | # would make configure fail if this is the last instruction.
|
---|
6331 | $ac_cs_success || { (exit 1); exit 1; }
|
---|
6332 | fi
|
---|
6333 |
|
---|