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