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