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