1 | #! /bin/sh |
---|
2 | # Guess values for system-dependent variables and create Makefiles. |
---|
3 | # Generated by GNU Autoconf 2.68 for RapptureGUI 1.1. |
---|
4 | # |
---|
5 | # Report bugs to <rappture@nanohub.org>. |
---|
6 | # |
---|
7 | # |
---|
8 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
---|
9 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software |
---|
10 | # Foundation, Inc. |
---|
11 | # |
---|
12 | # |
---|
13 | # This configure script is free software; the Free Software Foundation |
---|
14 | # gives unlimited permission to copy, distribute and modify it. |
---|
15 | ## -------------------- ## |
---|
16 | ## M4sh Initialization. ## |
---|
17 | ## -------------------- ## |
---|
18 | |
---|
19 | # Be more Bourne compatible |
---|
20 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
21 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
---|
22 | emulate sh |
---|
23 | NULLCMD=: |
---|
24 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
---|
25 | # is contrary to our usage. Disable this feature. |
---|
26 | alias -g '${1+"$@"}'='"$@"' |
---|
27 | setopt NO_GLOB_SUBST |
---|
28 | else |
---|
29 | case `(set -o) 2>/dev/null` in #( |
---|
30 | *posix*) : |
---|
31 | set -o posix ;; #( |
---|
32 | *) : |
---|
33 | ;; |
---|
34 | esac |
---|
35 | fi |
---|
36 | |
---|
37 | |
---|
38 | as_nl=' |
---|
39 | ' |
---|
40 | export as_nl |
---|
41 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
---|
42 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
---|
43 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
---|
44 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
---|
45 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
---|
46 | # but without wasting forks for bash or zsh. |
---|
47 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
---|
48 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
---|
49 | as_echo='print -r --' |
---|
50 | as_echo_n='print -rn --' |
---|
51 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
---|
52 | as_echo='printf %s\n' |
---|
53 | as_echo_n='printf %s' |
---|
54 | else |
---|
55 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
---|
56 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
---|
57 | as_echo_n='/usr/ucb/echo -n' |
---|
58 | else |
---|
59 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
---|
60 | as_echo_n_body='eval |
---|
61 | arg=$1; |
---|
62 | case $arg in #( |
---|
63 | *"$as_nl"*) |
---|
64 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
---|
65 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
---|
66 | esac; |
---|
67 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
---|
68 | ' |
---|
69 | export as_echo_n_body |
---|
70 | as_echo_n='sh -c $as_echo_n_body as_echo' |
---|
71 | fi |
---|
72 | export as_echo_body |
---|
73 | as_echo='sh -c $as_echo_body as_echo' |
---|
74 | fi |
---|
75 | |
---|
76 | # The user is always right. |
---|
77 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
78 | PATH_SEPARATOR=: |
---|
79 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
---|
80 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
---|
81 | PATH_SEPARATOR=';' |
---|
82 | } |
---|
83 | fi |
---|
84 | |
---|
85 | |
---|
86 | # IFS |
---|
87 | # We need space, tab and new line, in precisely that order. Quoting is |
---|
88 | # there to prevent editors from complaining about space-tab. |
---|
89 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
---|
90 | # splitting by setting IFS to empty value.) |
---|
91 | IFS=" "" $as_nl" |
---|
92 | |
---|
93 | # Find who we are. Look in the path if we contain no directory separator. |
---|
94 | as_myself= |
---|
95 | case $0 in #(( |
---|
96 | *[\\/]* ) as_myself=$0 ;; |
---|
97 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
98 | for as_dir in $PATH |
---|
99 | do |
---|
100 | IFS=$as_save_IFS |
---|
101 | test -z "$as_dir" && as_dir=. |
---|
102 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
103 | done |
---|
104 | IFS=$as_save_IFS |
---|
105 | |
---|
106 | ;; |
---|
107 | esac |
---|
108 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
109 | # in which case we are not to be found in the path. |
---|
110 | if test "x$as_myself" = x; then |
---|
111 | as_myself=$0 |
---|
112 | fi |
---|
113 | if test ! -f "$as_myself"; then |
---|
114 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
---|
115 | exit 1 |
---|
116 | fi |
---|
117 | |
---|
118 | # Unset variables that we do not need and which cause bugs (e.g. in |
---|
119 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
---|
120 | # suppresses any "Segmentation fault" message there. '((' could |
---|
121 | # trigger a bug in pdksh 5.2.14. |
---|
122 | for as_var in BASH_ENV ENV MAIL MAILPATH |
---|
123 | do eval test x\${$as_var+set} = xset \ |
---|
124 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
---|
125 | done |
---|
126 | PS1='$ ' |
---|
127 | PS2='> ' |
---|
128 | PS4='+ ' |
---|
129 | |
---|
130 | # NLS nuisances. |
---|
131 | LC_ALL=C |
---|
132 | export LC_ALL |
---|
133 | LANGUAGE=C |
---|
134 | export LANGUAGE |
---|
135 | |
---|
136 | # CDPATH. |
---|
137 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
---|
138 | |
---|
139 | if test "x$CONFIG_SHELL" = x; then |
---|
140 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
---|
141 | emulate sh |
---|
142 | NULLCMD=: |
---|
143 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
---|
144 | # is contrary to our usage. Disable this feature. |
---|
145 | alias -g '\${1+\"\$@\"}'='\"\$@\"' |
---|
146 | setopt NO_GLOB_SUBST |
---|
147 | else |
---|
148 | case \`(set -o) 2>/dev/null\` in #( |
---|
149 | *posix*) : |
---|
150 | set -o posix ;; #( |
---|
151 | *) : |
---|
152 | ;; |
---|
153 | esac |
---|
154 | fi |
---|
155 | " |
---|
156 | as_required="as_fn_return () { (exit \$1); } |
---|
157 | as_fn_success () { as_fn_return 0; } |
---|
158 | as_fn_failure () { as_fn_return 1; } |
---|
159 | as_fn_ret_success () { return 0; } |
---|
160 | as_fn_ret_failure () { return 1; } |
---|
161 | |
---|
162 | exitcode=0 |
---|
163 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
---|
164 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
---|
165 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
---|
166 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
---|
167 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
---|
168 | |
---|
169 | else |
---|
170 | exitcode=1; echo positional parameters were not saved. |
---|
171 | fi |
---|
172 | test x\$exitcode = x0 || exit 1" |
---|
173 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
---|
174 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
---|
175 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
---|
176 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
---|
177 | test \$(( 1 + 1 )) = 2 || exit 1" |
---|
178 | if (eval "$as_required") 2>/dev/null; then : |
---|
179 | as_have_required=yes |
---|
180 | else |
---|
181 | as_have_required=no |
---|
182 | fi |
---|
183 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
---|
184 | |
---|
185 | else |
---|
186 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
187 | as_found=false |
---|
188 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
---|
189 | do |
---|
190 | IFS=$as_save_IFS |
---|
191 | test -z "$as_dir" && as_dir=. |
---|
192 | as_found=: |
---|
193 | case $as_dir in #( |
---|
194 | /*) |
---|
195 | for as_base in sh bash ksh sh5; do |
---|
196 | # Try only shells that exist, to save several forks. |
---|
197 | as_shell=$as_dir/$as_base |
---|
198 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
---|
199 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
---|
200 | CONFIG_SHELL=$as_shell as_have_required=yes |
---|
201 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
---|
202 | break 2 |
---|
203 | fi |
---|
204 | fi |
---|
205 | done;; |
---|
206 | esac |
---|
207 | as_found=false |
---|
208 | done |
---|
209 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
---|
210 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
---|
211 | CONFIG_SHELL=$SHELL as_have_required=yes |
---|
212 | fi; } |
---|
213 | IFS=$as_save_IFS |
---|
214 | |
---|
215 | |
---|
216 | if test "x$CONFIG_SHELL" != x; then : |
---|
217 | # We cannot yet assume a decent shell, so we have to provide a |
---|
218 | # neutralization value for shells without unset; and this also |
---|
219 | # works around shells that cannot unset nonexistent variables. |
---|
220 | # Preserve -v and -x to the replacement shell. |
---|
221 | BASH_ENV=/dev/null |
---|
222 | ENV=/dev/null |
---|
223 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
---|
224 | export CONFIG_SHELL |
---|
225 | case $- in # (((( |
---|
226 | *v*x* | *x*v* ) as_opts=-vx ;; |
---|
227 | *v* ) as_opts=-v ;; |
---|
228 | *x* ) as_opts=-x ;; |
---|
229 | * ) as_opts= ;; |
---|
230 | esac |
---|
231 | exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} |
---|
232 | fi |
---|
233 | |
---|
234 | if test x$as_have_required = xno; then : |
---|
235 | $as_echo "$0: This script requires a shell more modern than all" |
---|
236 | $as_echo "$0: the shells that I found on your system." |
---|
237 | if test x${ZSH_VERSION+set} = xset ; then |
---|
238 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
---|
239 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." |
---|
240 | else |
---|
241 | $as_echo "$0: Please tell bug-autoconf@gnu.org and |
---|
242 | $0: rappture@nanohub.org about your system, including any |
---|
243 | $0: error possibly output before this message. Then install |
---|
244 | $0: a modern shell, or manually run the script under such a |
---|
245 | $0: shell if you do have one." |
---|
246 | fi |
---|
247 | exit 1 |
---|
248 | fi |
---|
249 | fi |
---|
250 | fi |
---|
251 | SHELL=${CONFIG_SHELL-/bin/sh} |
---|
252 | export SHELL |
---|
253 | # Unset more variables known to interfere with behavior of common tools. |
---|
254 | CLICOLOR_FORCE= GREP_OPTIONS= |
---|
255 | unset CLICOLOR_FORCE GREP_OPTIONS |
---|
256 | |
---|
257 | ## --------------------- ## |
---|
258 | ## M4sh Shell Functions. ## |
---|
259 | ## --------------------- ## |
---|
260 | # as_fn_unset VAR |
---|
261 | # --------------- |
---|
262 | # Portably unset VAR. |
---|
263 | as_fn_unset () |
---|
264 | { |
---|
265 | { eval $1=; unset $1;} |
---|
266 | } |
---|
267 | as_unset=as_fn_unset |
---|
268 | |
---|
269 | # as_fn_set_status STATUS |
---|
270 | # ----------------------- |
---|
271 | # Set $? to STATUS, without forking. |
---|
272 | as_fn_set_status () |
---|
273 | { |
---|
274 | return $1 |
---|
275 | } # as_fn_set_status |
---|
276 | |
---|
277 | # as_fn_exit STATUS |
---|
278 | # ----------------- |
---|
279 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
---|
280 | as_fn_exit () |
---|
281 | { |
---|
282 | set +e |
---|
283 | as_fn_set_status $1 |
---|
284 | exit $1 |
---|
285 | } # as_fn_exit |
---|
286 | |
---|
287 | # as_fn_mkdir_p |
---|
288 | # ------------- |
---|
289 | # Create "$as_dir" as a directory, including parents if necessary. |
---|
290 | as_fn_mkdir_p () |
---|
291 | { |
---|
292 | |
---|
293 | case $as_dir in #( |
---|
294 | -*) as_dir=./$as_dir;; |
---|
295 | esac |
---|
296 | test -d "$as_dir" || eval $as_mkdir_p || { |
---|
297 | as_dirs= |
---|
298 | while :; do |
---|
299 | case $as_dir in #( |
---|
300 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
---|
301 | *) as_qdir=$as_dir;; |
---|
302 | esac |
---|
303 | as_dirs="'$as_qdir' $as_dirs" |
---|
304 | as_dir=`$as_dirname -- "$as_dir" || |
---|
305 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
306 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
307 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
308 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
---|
309 | $as_echo X"$as_dir" | |
---|
310 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
311 | s//\1/ |
---|
312 | q |
---|
313 | } |
---|
314 | /^X\(\/\/\)[^/].*/{ |
---|
315 | s//\1/ |
---|
316 | q |
---|
317 | } |
---|
318 | /^X\(\/\/\)$/{ |
---|
319 | s//\1/ |
---|
320 | q |
---|
321 | } |
---|
322 | /^X\(\/\).*/{ |
---|
323 | s//\1/ |
---|
324 | q |
---|
325 | } |
---|
326 | s/.*/./; q'` |
---|
327 | test -d "$as_dir" && break |
---|
328 | done |
---|
329 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
---|
330 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
---|
331 | |
---|
332 | |
---|
333 | } # as_fn_mkdir_p |
---|
334 | # as_fn_append VAR VALUE |
---|
335 | # ---------------------- |
---|
336 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
---|
337 | # advantage of any shell optimizations that allow amortized linear growth over |
---|
338 | # repeated appends, instead of the typical quadratic growth present in naive |
---|
339 | # implementations. |
---|
340 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
---|
341 | eval 'as_fn_append () |
---|
342 | { |
---|
343 | eval $1+=\$2 |
---|
344 | }' |
---|
345 | else |
---|
346 | as_fn_append () |
---|
347 | { |
---|
348 | eval $1=\$$1\$2 |
---|
349 | } |
---|
350 | fi # as_fn_append |
---|
351 | |
---|
352 | # as_fn_arith ARG... |
---|
353 | # ------------------ |
---|
354 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
---|
355 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
---|
356 | # must be portable across $(()) and expr. |
---|
357 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
---|
358 | eval 'as_fn_arith () |
---|
359 | { |
---|
360 | as_val=$(( $* )) |
---|
361 | }' |
---|
362 | else |
---|
363 | as_fn_arith () |
---|
364 | { |
---|
365 | as_val=`expr "$@" || test $? -eq 1` |
---|
366 | } |
---|
367 | fi # as_fn_arith |
---|
368 | |
---|
369 | |
---|
370 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
---|
371 | # ---------------------------------------- |
---|
372 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
---|
373 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
---|
374 | # script with STATUS, using 1 if that was 0. |
---|
375 | as_fn_error () |
---|
376 | { |
---|
377 | as_status=$1; test $as_status -eq 0 && as_status=1 |
---|
378 | if test "$4"; then |
---|
379 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
380 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
---|
381 | fi |
---|
382 | $as_echo "$as_me: error: $2" >&2 |
---|
383 | as_fn_exit $as_status |
---|
384 | } # as_fn_error |
---|
385 | |
---|
386 | if expr a : '\(a\)' >/dev/null 2>&1 && |
---|
387 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
---|
388 | as_expr=expr |
---|
389 | else |
---|
390 | as_expr=false |
---|
391 | fi |
---|
392 | |
---|
393 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
---|
394 | as_basename=basename |
---|
395 | else |
---|
396 | as_basename=false |
---|
397 | fi |
---|
398 | |
---|
399 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
---|
400 | as_dirname=dirname |
---|
401 | else |
---|
402 | as_dirname=false |
---|
403 | fi |
---|
404 | |
---|
405 | as_me=`$as_basename -- "$0" || |
---|
406 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
407 | X"$0" : 'X\(//\)$' \| \ |
---|
408 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
---|
409 | $as_echo X/"$0" | |
---|
410 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
---|
411 | s//\1/ |
---|
412 | q |
---|
413 | } |
---|
414 | /^X\/\(\/\/\)$/{ |
---|
415 | s//\1/ |
---|
416 | q |
---|
417 | } |
---|
418 | /^X\/\(\/\).*/{ |
---|
419 | s//\1/ |
---|
420 | q |
---|
421 | } |
---|
422 | s/.*/./; q'` |
---|
423 | |
---|
424 | # Avoid depending upon Character Ranges. |
---|
425 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
426 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
427 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
428 | as_cr_digits='0123456789' |
---|
429 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
430 | |
---|
431 | |
---|
432 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
---|
433 | as_lineno_2=$LINENO as_lineno_2a=$LINENO |
---|
434 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
---|
435 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
---|
436 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
---|
437 | sed -n ' |
---|
438 | p |
---|
439 | /[$]LINENO/= |
---|
440 | ' <$as_myself | |
---|
441 | sed ' |
---|
442 | s/[$]LINENO.*/&-/ |
---|
443 | t lineno |
---|
444 | b |
---|
445 | :lineno |
---|
446 | N |
---|
447 | :loop |
---|
448 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
---|
449 | t loop |
---|
450 | s/-\n.*// |
---|
451 | ' >$as_me.lineno && |
---|
452 | chmod +x "$as_me.lineno" || |
---|
453 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
---|
454 | |
---|
455 | # Don't try to exec as it changes $[0], causing all sort of problems |
---|
456 | # (the dirname of $[0] is not the place where we might find the |
---|
457 | # original and so on. Autoconf is especially sensitive to this). |
---|
458 | . "./$as_me.lineno" |
---|
459 | # Exit status is that of the last command. |
---|
460 | exit |
---|
461 | } |
---|
462 | |
---|
463 | ECHO_C= ECHO_N= ECHO_T= |
---|
464 | case `echo -n x` in #((((( |
---|
465 | -n*) |
---|
466 | case `echo 'xy\c'` in |
---|
467 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
---|
468 | xy) ECHO_C='\c';; |
---|
469 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
---|
470 | ECHO_T=' ';; |
---|
471 | esac;; |
---|
472 | *) |
---|
473 | ECHO_N='-n';; |
---|
474 | esac |
---|
475 | |
---|
476 | rm -f conf$$ conf$$.exe conf$$.file |
---|
477 | if test -d conf$$.dir; then |
---|
478 | rm -f conf$$.dir/conf$$.file |
---|
479 | else |
---|
480 | rm -f conf$$.dir |
---|
481 | mkdir conf$$.dir 2>/dev/null |
---|
482 | fi |
---|
483 | if (echo >conf$$.file) 2>/dev/null; then |
---|
484 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
485 | as_ln_s='ln -s' |
---|
486 | # ... but there are two gotchas: |
---|
487 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
---|
488 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
---|
489 | # In both cases, we have to default to `cp -p'. |
---|
490 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
---|
491 | as_ln_s='cp -p' |
---|
492 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
493 | as_ln_s=ln |
---|
494 | else |
---|
495 | as_ln_s='cp -p' |
---|
496 | fi |
---|
497 | else |
---|
498 | as_ln_s='cp -p' |
---|
499 | fi |
---|
500 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
---|
501 | rmdir conf$$.dir 2>/dev/null |
---|
502 | |
---|
503 | if mkdir -p . 2>/dev/null; then |
---|
504 | as_mkdir_p='mkdir -p "$as_dir"' |
---|
505 | else |
---|
506 | test -d ./-p && rmdir ./-p |
---|
507 | as_mkdir_p=false |
---|
508 | fi |
---|
509 | |
---|
510 | if test -x / >/dev/null 2>&1; then |
---|
511 | as_test_x='test -x' |
---|
512 | else |
---|
513 | if ls -dL / >/dev/null 2>&1; then |
---|
514 | as_ls_L_option=L |
---|
515 | else |
---|
516 | as_ls_L_option= |
---|
517 | fi |
---|
518 | as_test_x=' |
---|
519 | eval sh -c '\'' |
---|
520 | if test -d "$1"; then |
---|
521 | test -d "$1/."; |
---|
522 | else |
---|
523 | case $1 in #( |
---|
524 | -*)set "./$1";; |
---|
525 | esac; |
---|
526 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
---|
527 | ???[sx]*):;;*)false;;esac;fi |
---|
528 | '\'' sh |
---|
529 | ' |
---|
530 | fi |
---|
531 | as_executable_p=$as_test_x |
---|
532 | |
---|
533 | # Sed expression to map a string onto a valid CPP name. |
---|
534 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
535 | |
---|
536 | # Sed expression to map a string onto a valid variable name. |
---|
537 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
538 | |
---|
539 | |
---|
540 | test -n "$DJDIR" || exec 7<&0 </dev/null |
---|
541 | exec 6>&1 |
---|
542 | |
---|
543 | # Name of the host. |
---|
544 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
---|
545 | # so uname gets run too. |
---|
546 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
547 | |
---|
548 | # |
---|
549 | # Initializations. |
---|
550 | # |
---|
551 | ac_default_prefix=/usr/local |
---|
552 | ac_clean_files= |
---|
553 | ac_config_libobj_dir=. |
---|
554 | LIBOBJS= |
---|
555 | cross_compiling=no |
---|
556 | subdirs= |
---|
557 | MFLAGS= |
---|
558 | MAKEFLAGS= |
---|
559 | |
---|
560 | # Identity of this package. |
---|
561 | PACKAGE_NAME='RapptureGUI' |
---|
562 | PACKAGE_TARNAME='rappturegui' |
---|
563 | PACKAGE_VERSION='1.1' |
---|
564 | PACKAGE_STRING='RapptureGUI 1.1' |
---|
565 | PACKAGE_BUGREPORT='rappture@nanohub.org' |
---|
566 | PACKAGE_URL='' |
---|
567 | |
---|
568 | # Factoring default headers for most tests. |
---|
569 | ac_includes_default="\ |
---|
570 | #include <stdio.h> |
---|
571 | #ifdef HAVE_SYS_TYPES_H |
---|
572 | # include <sys/types.h> |
---|
573 | #endif |
---|
574 | #ifdef HAVE_SYS_STAT_H |
---|
575 | # include <sys/stat.h> |
---|
576 | #endif |
---|
577 | #ifdef STDC_HEADERS |
---|
578 | # include <stdlib.h> |
---|
579 | # include <stddef.h> |
---|
580 | #else |
---|
581 | # ifdef HAVE_STDLIB_H |
---|
582 | # include <stdlib.h> |
---|
583 | # endif |
---|
584 | #endif |
---|
585 | #ifdef HAVE_STRING_H |
---|
586 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
---|
587 | # include <memory.h> |
---|
588 | # endif |
---|
589 | # include <string.h> |
---|
590 | #endif |
---|
591 | #ifdef HAVE_STRINGS_H |
---|
592 | # include <strings.h> |
---|
593 | #endif |
---|
594 | #ifdef HAVE_INTTYPES_H |
---|
595 | # include <inttypes.h> |
---|
596 | #endif |
---|
597 | #ifdef HAVE_STDINT_H |
---|
598 | # include <stdint.h> |
---|
599 | #endif |
---|
600 | #ifdef HAVE_UNISTD_H |
---|
601 | # include <unistd.h> |
---|
602 | #endif" |
---|
603 | |
---|
604 | ac_subst_vars='LTLIBOBJS |
---|
605 | LIBOBJS |
---|
606 | TK_VERSION |
---|
607 | TCL_LIB_SPEC |
---|
608 | TCL_INC_SPEC |
---|
609 | TCL_VERSION |
---|
610 | TCLSH |
---|
611 | ENABLE_GUI |
---|
612 | MAKE |
---|
613 | SHLIB_LDFLAGS |
---|
614 | INSTALL_STUB_LIB |
---|
615 | INSTALL_LIB |
---|
616 | MAKE_STUB_LIB |
---|
617 | MAKE_LIB |
---|
618 | SHLIB_SUFFIX |
---|
619 | SHLIB_CFLAGS |
---|
620 | SHLIB_LD_LIBS |
---|
621 | TK_SHLIB_LD_EXTRAS |
---|
622 | TCL_SHLIB_LD_EXTRAS |
---|
623 | SHLIB_LD |
---|
624 | STLIB_LD |
---|
625 | LD_SEARCH_FLAGS |
---|
626 | CC_SEARCH_FLAGS |
---|
627 | LDFLAGS_OPTIMIZE |
---|
628 | LDFLAGS_DEBUG |
---|
629 | CFLAGS_WARNING |
---|
630 | CFLAGS_OPTIMIZE |
---|
631 | CFLAGS_DEBUG |
---|
632 | PLAT_SRCS |
---|
633 | PLAT_OBJS |
---|
634 | DL_OBJS |
---|
635 | DL_LIBS |
---|
636 | EGREP |
---|
637 | GREP |
---|
638 | CPP |
---|
639 | AR |
---|
640 | OBJEXT |
---|
641 | EXEEXT |
---|
642 | ac_ct_CC |
---|
643 | CPPFLAGS |
---|
644 | LDFLAGS |
---|
645 | CFLAGS |
---|
646 | CC |
---|
647 | SET_MAKE |
---|
648 | MKDIR_P |
---|
649 | LN_S |
---|
650 | RANLIB |
---|
651 | INSTALL_DATA |
---|
652 | INSTALL_SCRIPT |
---|
653 | INSTALL_PROGRAM |
---|
654 | LIB_SEARCH_DIRS |
---|
655 | target_os |
---|
656 | target_vendor |
---|
657 | target_cpu |
---|
658 | target |
---|
659 | host_os |
---|
660 | host_vendor |
---|
661 | host_cpu |
---|
662 | host |
---|
663 | build_os |
---|
664 | build_vendor |
---|
665 | build_cpu |
---|
666 | build |
---|
667 | target_alias |
---|
668 | host_alias |
---|
669 | build_alias |
---|
670 | LIBS |
---|
671 | ECHO_T |
---|
672 | ECHO_N |
---|
673 | ECHO_C |
---|
674 | DEFS |
---|
675 | mandir |
---|
676 | localedir |
---|
677 | libdir |
---|
678 | psdir |
---|
679 | pdfdir |
---|
680 | dvidir |
---|
681 | htmldir |
---|
682 | infodir |
---|
683 | docdir |
---|
684 | oldincludedir |
---|
685 | includedir |
---|
686 | localstatedir |
---|
687 | sharedstatedir |
---|
688 | sysconfdir |
---|
689 | datadir |
---|
690 | datarootdir |
---|
691 | libexecdir |
---|
692 | sbindir |
---|
693 | bindir |
---|
694 | program_transform_name |
---|
695 | prefix |
---|
696 | exec_prefix |
---|
697 | PACKAGE_URL |
---|
698 | PACKAGE_BUGREPORT |
---|
699 | PACKAGE_STRING |
---|
700 | PACKAGE_VERSION |
---|
701 | PACKAGE_TARNAME |
---|
702 | PACKAGE_NAME |
---|
703 | PATH_SEPARATOR |
---|
704 | SHELL' |
---|
705 | ac_subst_files='' |
---|
706 | ac_user_opts=' |
---|
707 | enable_option_checking |
---|
708 | enable_64bit |
---|
709 | enable_64bit_vis |
---|
710 | enable_corefoundation |
---|
711 | enable_load |
---|
712 | enable_shared |
---|
713 | enable_gui |
---|
714 | with_tclsh |
---|
715 | ' |
---|
716 | ac_precious_vars='build_alias |
---|
717 | host_alias |
---|
718 | target_alias |
---|
719 | CC |
---|
720 | CFLAGS |
---|
721 | LDFLAGS |
---|
722 | LIBS |
---|
723 | CPPFLAGS |
---|
724 | CPP' |
---|
725 | |
---|
726 | |
---|
727 | # Initialize some variables set by options. |
---|
728 | ac_init_help= |
---|
729 | ac_init_version=false |
---|
730 | ac_unrecognized_opts= |
---|
731 | ac_unrecognized_sep= |
---|
732 | # The variables have the same names as the options, with |
---|
733 | # dashes changed to underlines. |
---|
734 | cache_file=/dev/null |
---|
735 | exec_prefix=NONE |
---|
736 | no_create= |
---|
737 | no_recursion= |
---|
738 | prefix=NONE |
---|
739 | program_prefix=NONE |
---|
740 | program_suffix=NONE |
---|
741 | program_transform_name=s,x,x, |
---|
742 | silent= |
---|
743 | site= |
---|
744 | srcdir= |
---|
745 | verbose= |
---|
746 | x_includes=NONE |
---|
747 | x_libraries=NONE |
---|
748 | |
---|
749 | # Installation directory options. |
---|
750 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
---|
751 | # and all the variables that are supposed to be based on exec_prefix |
---|
752 | # by default will actually change. |
---|
753 | # Use braces instead of parens because sh, perl, etc. also accept them. |
---|
754 | # (The list follows the same order as the GNU Coding Standards.) |
---|
755 | bindir='${exec_prefix}/bin' |
---|
756 | sbindir='${exec_prefix}/sbin' |
---|
757 | libexecdir='${exec_prefix}/libexec' |
---|
758 | datarootdir='${prefix}/share' |
---|
759 | datadir='${datarootdir}' |
---|
760 | sysconfdir='${prefix}/etc' |
---|
761 | sharedstatedir='${prefix}/com' |
---|
762 | localstatedir='${prefix}/var' |
---|
763 | includedir='${prefix}/include' |
---|
764 | oldincludedir='/usr/include' |
---|
765 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
---|
766 | infodir='${datarootdir}/info' |
---|
767 | htmldir='${docdir}' |
---|
768 | dvidir='${docdir}' |
---|
769 | pdfdir='${docdir}' |
---|
770 | psdir='${docdir}' |
---|
771 | libdir='${exec_prefix}/lib' |
---|
772 | localedir='${datarootdir}/locale' |
---|
773 | mandir='${datarootdir}/man' |
---|
774 | |
---|
775 | ac_prev= |
---|
776 | ac_dashdash= |
---|
777 | for ac_option |
---|
778 | do |
---|
779 | # If the previous option needs an argument, assign it. |
---|
780 | if test -n "$ac_prev"; then |
---|
781 | eval $ac_prev=\$ac_option |
---|
782 | ac_prev= |
---|
783 | continue |
---|
784 | fi |
---|
785 | |
---|
786 | case $ac_option in |
---|
787 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
---|
788 | *=) ac_optarg= ;; |
---|
789 | *) ac_optarg=yes ;; |
---|
790 | esac |
---|
791 | |
---|
792 | # Accept the important Cygnus configure options, so we can diagnose typos. |
---|
793 | |
---|
794 | case $ac_dashdash$ac_option in |
---|
795 | --) |
---|
796 | ac_dashdash=yes ;; |
---|
797 | |
---|
798 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
---|
799 | ac_prev=bindir ;; |
---|
800 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
---|
801 | bindir=$ac_optarg ;; |
---|
802 | |
---|
803 | -build | --build | --buil | --bui | --bu) |
---|
804 | ac_prev=build_alias ;; |
---|
805 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
---|
806 | build_alias=$ac_optarg ;; |
---|
807 | |
---|
808 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
---|
809 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
---|
810 | ac_prev=cache_file ;; |
---|
811 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
---|
812 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
---|
813 | cache_file=$ac_optarg ;; |
---|
814 | |
---|
815 | --config-cache | -C) |
---|
816 | cache_file=config.cache ;; |
---|
817 | |
---|
818 | -datadir | --datadir | --datadi | --datad) |
---|
819 | ac_prev=datadir ;; |
---|
820 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
---|
821 | datadir=$ac_optarg ;; |
---|
822 | |
---|
823 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
---|
824 | | --dataroo | --dataro | --datar) |
---|
825 | ac_prev=datarootdir ;; |
---|
826 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
---|
827 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
---|
828 | datarootdir=$ac_optarg ;; |
---|
829 | |
---|
830 | -disable-* | --disable-*) |
---|
831 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
---|
832 | # Reject names that are not valid shell variable names. |
---|
833 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
834 | as_fn_error $? "invalid feature name: $ac_useropt" |
---|
835 | ac_useropt_orig=$ac_useropt |
---|
836 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
837 | case $ac_user_opts in |
---|
838 | *" |
---|
839 | "enable_$ac_useropt" |
---|
840 | "*) ;; |
---|
841 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
---|
842 | ac_unrecognized_sep=', ';; |
---|
843 | esac |
---|
844 | eval enable_$ac_useropt=no ;; |
---|
845 | |
---|
846 | -docdir | --docdir | --docdi | --doc | --do) |
---|
847 | ac_prev=docdir ;; |
---|
848 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
---|
849 | docdir=$ac_optarg ;; |
---|
850 | |
---|
851 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
---|
852 | ac_prev=dvidir ;; |
---|
853 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
---|
854 | dvidir=$ac_optarg ;; |
---|
855 | |
---|
856 | -enable-* | --enable-*) |
---|
857 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
---|
858 | # Reject names that are not valid shell variable names. |
---|
859 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
860 | as_fn_error $? "invalid feature name: $ac_useropt" |
---|
861 | ac_useropt_orig=$ac_useropt |
---|
862 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
863 | case $ac_user_opts in |
---|
864 | *" |
---|
865 | "enable_$ac_useropt" |
---|
866 | "*) ;; |
---|
867 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
---|
868 | ac_unrecognized_sep=', ';; |
---|
869 | esac |
---|
870 | eval enable_$ac_useropt=\$ac_optarg ;; |
---|
871 | |
---|
872 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
---|
873 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
---|
874 | | --exec | --exe | --ex) |
---|
875 | ac_prev=exec_prefix ;; |
---|
876 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
---|
877 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
---|
878 | | --exec=* | --exe=* | --ex=*) |
---|
879 | exec_prefix=$ac_optarg ;; |
---|
880 | |
---|
881 | -gas | --gas | --ga | --g) |
---|
882 | # Obsolete; use --with-gas. |
---|
883 | with_gas=yes ;; |
---|
884 | |
---|
885 | -help | --help | --hel | --he | -h) |
---|
886 | ac_init_help=long ;; |
---|
887 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
---|
888 | ac_init_help=recursive ;; |
---|
889 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
---|
890 | ac_init_help=short ;; |
---|
891 | |
---|
892 | -host | --host | --hos | --ho) |
---|
893 | ac_prev=host_alias ;; |
---|
894 | -host=* | --host=* | --hos=* | --ho=*) |
---|
895 | host_alias=$ac_optarg ;; |
---|
896 | |
---|
897 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
---|
898 | ac_prev=htmldir ;; |
---|
899 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
---|
900 | | --ht=*) |
---|
901 | htmldir=$ac_optarg ;; |
---|
902 | |
---|
903 | -includedir | --includedir | --includedi | --included | --include \ |
---|
904 | | --includ | --inclu | --incl | --inc) |
---|
905 | ac_prev=includedir ;; |
---|
906 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
---|
907 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
---|
908 | includedir=$ac_optarg ;; |
---|
909 | |
---|
910 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
---|
911 | ac_prev=infodir ;; |
---|
912 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
---|
913 | infodir=$ac_optarg ;; |
---|
914 | |
---|
915 | -libdir | --libdir | --libdi | --libd) |
---|
916 | ac_prev=libdir ;; |
---|
917 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
---|
918 | libdir=$ac_optarg ;; |
---|
919 | |
---|
920 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
---|
921 | | --libexe | --libex | --libe) |
---|
922 | ac_prev=libexecdir ;; |
---|
923 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
---|
924 | | --libexe=* | --libex=* | --libe=*) |
---|
925 | libexecdir=$ac_optarg ;; |
---|
926 | |
---|
927 | -localedir | --localedir | --localedi | --localed | --locale) |
---|
928 | ac_prev=localedir ;; |
---|
929 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
---|
930 | localedir=$ac_optarg ;; |
---|
931 | |
---|
932 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
---|
933 | | --localstate | --localstat | --localsta | --localst | --locals) |
---|
934 | ac_prev=localstatedir ;; |
---|
935 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
---|
936 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
---|
937 | localstatedir=$ac_optarg ;; |
---|
938 | |
---|
939 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
---|
940 | ac_prev=mandir ;; |
---|
941 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
---|
942 | mandir=$ac_optarg ;; |
---|
943 | |
---|
944 | -nfp | --nfp | --nf) |
---|
945 | # Obsolete; use --without-fp. |
---|
946 | with_fp=no ;; |
---|
947 | |
---|
948 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
---|
949 | | --no-cr | --no-c | -n) |
---|
950 | no_create=yes ;; |
---|
951 | |
---|
952 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
---|
953 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
---|
954 | no_recursion=yes ;; |
---|
955 | |
---|
956 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
---|
957 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
---|
958 | | --oldin | --oldi | --old | --ol | --o) |
---|
959 | ac_prev=oldincludedir ;; |
---|
960 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
---|
961 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
---|
962 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
---|
963 | oldincludedir=$ac_optarg ;; |
---|
964 | |
---|
965 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
---|
966 | ac_prev=prefix ;; |
---|
967 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
---|
968 | prefix=$ac_optarg ;; |
---|
969 | |
---|
970 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
---|
971 | | --program-pre | --program-pr | --program-p) |
---|
972 | ac_prev=program_prefix ;; |
---|
973 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
---|
974 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
---|
975 | program_prefix=$ac_optarg ;; |
---|
976 | |
---|
977 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
---|
978 | | --program-suf | --program-su | --program-s) |
---|
979 | ac_prev=program_suffix ;; |
---|
980 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
---|
981 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
---|
982 | program_suffix=$ac_optarg ;; |
---|
983 | |
---|
984 | -program-transform-name | --program-transform-name \ |
---|
985 | | --program-transform-nam | --program-transform-na \ |
---|
986 | | --program-transform-n | --program-transform- \ |
---|
987 | | --program-transform | --program-transfor \ |
---|
988 | | --program-transfo | --program-transf \ |
---|
989 | | --program-trans | --program-tran \ |
---|
990 | | --progr-tra | --program-tr | --program-t) |
---|
991 | ac_prev=program_transform_name ;; |
---|
992 | -program-transform-name=* | --program-transform-name=* \ |
---|
993 | | --program-transform-nam=* | --program-transform-na=* \ |
---|
994 | | --program-transform-n=* | --program-transform-=* \ |
---|
995 | | --program-transform=* | --program-transfor=* \ |
---|
996 | | --program-transfo=* | --program-transf=* \ |
---|
997 | | --program-trans=* | --program-tran=* \ |
---|
998 | | --progr-tra=* | --program-tr=* | --program-t=*) |
---|
999 | program_transform_name=$ac_optarg ;; |
---|
1000 | |
---|
1001 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
---|
1002 | ac_prev=pdfdir ;; |
---|
1003 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
---|
1004 | pdfdir=$ac_optarg ;; |
---|
1005 | |
---|
1006 | -psdir | --psdir | --psdi | --psd | --ps) |
---|
1007 | ac_prev=psdir ;; |
---|
1008 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
---|
1009 | psdir=$ac_optarg ;; |
---|
1010 | |
---|
1011 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
1012 | | -silent | --silent | --silen | --sile | --sil) |
---|
1013 | silent=yes ;; |
---|
1014 | |
---|
1015 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
---|
1016 | ac_prev=sbindir ;; |
---|
1017 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
---|
1018 | | --sbi=* | --sb=*) |
---|
1019 | sbindir=$ac_optarg ;; |
---|
1020 | |
---|
1021 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
---|
1022 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
---|
1023 | | --sharedst | --shareds | --shared | --share | --shar \ |
---|
1024 | | --sha | --sh) |
---|
1025 | ac_prev=sharedstatedir ;; |
---|
1026 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
---|
1027 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
---|
1028 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
---|
1029 | | --sha=* | --sh=*) |
---|
1030 | sharedstatedir=$ac_optarg ;; |
---|
1031 | |
---|
1032 | -site | --site | --sit) |
---|
1033 | ac_prev=site ;; |
---|
1034 | -site=* | --site=* | --sit=*) |
---|
1035 | site=$ac_optarg ;; |
---|
1036 | |
---|
1037 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
---|
1038 | ac_prev=srcdir ;; |
---|
1039 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
---|
1040 | srcdir=$ac_optarg ;; |
---|
1041 | |
---|
1042 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
---|
1043 | | --syscon | --sysco | --sysc | --sys | --sy) |
---|
1044 | ac_prev=sysconfdir ;; |
---|
1045 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
---|
1046 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
---|
1047 | sysconfdir=$ac_optarg ;; |
---|
1048 | |
---|
1049 | -target | --target | --targe | --targ | --tar | --ta | --t) |
---|
1050 | ac_prev=target_alias ;; |
---|
1051 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
---|
1052 | target_alias=$ac_optarg ;; |
---|
1053 | |
---|
1054 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
---|
1055 | verbose=yes ;; |
---|
1056 | |
---|
1057 | -version | --version | --versio | --versi | --vers | -V) |
---|
1058 | ac_init_version=: ;; |
---|
1059 | |
---|
1060 | -with-* | --with-*) |
---|
1061 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
---|
1062 | # Reject names that are not valid shell variable names. |
---|
1063 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
1064 | as_fn_error $? "invalid package name: $ac_useropt" |
---|
1065 | ac_useropt_orig=$ac_useropt |
---|
1066 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
1067 | case $ac_user_opts in |
---|
1068 | *" |
---|
1069 | "with_$ac_useropt" |
---|
1070 | "*) ;; |
---|
1071 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
---|
1072 | ac_unrecognized_sep=', ';; |
---|
1073 | esac |
---|
1074 | eval with_$ac_useropt=\$ac_optarg ;; |
---|
1075 | |
---|
1076 | -without-* | --without-*) |
---|
1077 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
---|
1078 | # Reject names that are not valid shell variable names. |
---|
1079 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
---|
1080 | as_fn_error $? "invalid package name: $ac_useropt" |
---|
1081 | ac_useropt_orig=$ac_useropt |
---|
1082 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
---|
1083 | case $ac_user_opts in |
---|
1084 | *" |
---|
1085 | "with_$ac_useropt" |
---|
1086 | "*) ;; |
---|
1087 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
---|
1088 | ac_unrecognized_sep=', ';; |
---|
1089 | esac |
---|
1090 | eval with_$ac_useropt=no ;; |
---|
1091 | |
---|
1092 | --x) |
---|
1093 | # Obsolete; use --with-x. |
---|
1094 | with_x=yes ;; |
---|
1095 | |
---|
1096 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
---|
1097 | | --x-incl | --x-inc | --x-in | --x-i) |
---|
1098 | ac_prev=x_includes ;; |
---|
1099 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
---|
1100 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
---|
1101 | x_includes=$ac_optarg ;; |
---|
1102 | |
---|
1103 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
---|
1104 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
---|
1105 | ac_prev=x_libraries ;; |
---|
1106 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
---|
1107 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
---|
1108 | x_libraries=$ac_optarg ;; |
---|
1109 | |
---|
1110 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
---|
1111 | Try \`$0 --help' for more information" |
---|
1112 | ;; |
---|
1113 | |
---|
1114 | *=*) |
---|
1115 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
---|
1116 | # Reject names that are not valid shell variable names. |
---|
1117 | case $ac_envvar in #( |
---|
1118 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
---|
1119 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
---|
1120 | esac |
---|
1121 | eval $ac_envvar=\$ac_optarg |
---|
1122 | export $ac_envvar ;; |
---|
1123 | |
---|
1124 | *) |
---|
1125 | # FIXME: should be removed in autoconf 3.0. |
---|
1126 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
---|
1127 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
---|
1128 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
---|
1129 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
---|
1130 | ;; |
---|
1131 | |
---|
1132 | esac |
---|
1133 | done |
---|
1134 | |
---|
1135 | if test -n "$ac_prev"; then |
---|
1136 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
---|
1137 | as_fn_error $? "missing argument to $ac_option" |
---|
1138 | fi |
---|
1139 | |
---|
1140 | if test -n "$ac_unrecognized_opts"; then |
---|
1141 | case $enable_option_checking in |
---|
1142 | no) ;; |
---|
1143 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
---|
1144 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
---|
1145 | esac |
---|
1146 | fi |
---|
1147 | |
---|
1148 | # Check all directory arguments for consistency. |
---|
1149 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
---|
1150 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
---|
1151 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
---|
1152 | libdir localedir mandir |
---|
1153 | do |
---|
1154 | eval ac_val=\$$ac_var |
---|
1155 | # Remove trailing slashes. |
---|
1156 | case $ac_val in |
---|
1157 | */ ) |
---|
1158 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
---|
1159 | eval $ac_var=\$ac_val;; |
---|
1160 | esac |
---|
1161 | # Be sure to have absolute directory names. |
---|
1162 | case $ac_val in |
---|
1163 | [\\/$]* | ?:[\\/]* ) continue;; |
---|
1164 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
---|
1165 | esac |
---|
1166 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
---|
1167 | done |
---|
1168 | |
---|
1169 | # There might be people who depend on the old broken behavior: `$host' |
---|
1170 | # used to hold the argument of --host etc. |
---|
1171 | # FIXME: To remove some day. |
---|
1172 | build=$build_alias |
---|
1173 | host=$host_alias |
---|
1174 | target=$target_alias |
---|
1175 | |
---|
1176 | # FIXME: To remove some day. |
---|
1177 | if test "x$host_alias" != x; then |
---|
1178 | if test "x$build_alias" = x; then |
---|
1179 | cross_compiling=maybe |
---|
1180 | $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. |
---|
1181 | If a cross compiler is detected then cross compile mode will be used" >&2 |
---|
1182 | elif test "x$build_alias" != "x$host_alias"; then |
---|
1183 | cross_compiling=yes |
---|
1184 | fi |
---|
1185 | fi |
---|
1186 | |
---|
1187 | ac_tool_prefix= |
---|
1188 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
---|
1189 | |
---|
1190 | test "$silent" = yes && exec 6>/dev/null |
---|
1191 | |
---|
1192 | |
---|
1193 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
---|
1194 | ac_ls_di=`ls -di .` && |
---|
1195 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
---|
1196 | as_fn_error $? "working directory cannot be determined" |
---|
1197 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
---|
1198 | as_fn_error $? "pwd does not report name of working directory" |
---|
1199 | |
---|
1200 | |
---|
1201 | # Find the source files, if location was not specified. |
---|
1202 | if test -z "$srcdir"; then |
---|
1203 | ac_srcdir_defaulted=yes |
---|
1204 | # Try the directory containing this script, then the parent directory. |
---|
1205 | ac_confdir=`$as_dirname -- "$as_myself" || |
---|
1206 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
1207 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
---|
1208 | X"$as_myself" : 'X\(//\)$' \| \ |
---|
1209 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
---|
1210 | $as_echo X"$as_myself" | |
---|
1211 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
1212 | s//\1/ |
---|
1213 | q |
---|
1214 | } |
---|
1215 | /^X\(\/\/\)[^/].*/{ |
---|
1216 | s//\1/ |
---|
1217 | q |
---|
1218 | } |
---|
1219 | /^X\(\/\/\)$/{ |
---|
1220 | s//\1/ |
---|
1221 | q |
---|
1222 | } |
---|
1223 | /^X\(\/\).*/{ |
---|
1224 | s//\1/ |
---|
1225 | q |
---|
1226 | } |
---|
1227 | s/.*/./; q'` |
---|
1228 | srcdir=$ac_confdir |
---|
1229 | if test ! -r "$srcdir/$ac_unique_file"; then |
---|
1230 | srcdir=.. |
---|
1231 | fi |
---|
1232 | else |
---|
1233 | ac_srcdir_defaulted=no |
---|
1234 | fi |
---|
1235 | if test ! -r "$srcdir/$ac_unique_file"; then |
---|
1236 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
---|
1237 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
---|
1238 | fi |
---|
1239 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
---|
1240 | ac_abs_confdir=`( |
---|
1241 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
---|
1242 | pwd)` |
---|
1243 | # When building in place, set srcdir=. |
---|
1244 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
---|
1245 | srcdir=. |
---|
1246 | fi |
---|
1247 | # Remove unnecessary trailing slashes from srcdir. |
---|
1248 | # Double slashes in file names in object file debugging info |
---|
1249 | # mess up M-x gdb in Emacs. |
---|
1250 | case $srcdir in |
---|
1251 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
---|
1252 | esac |
---|
1253 | for ac_var in $ac_precious_vars; do |
---|
1254 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
---|
1255 | eval ac_env_${ac_var}_value=\$${ac_var} |
---|
1256 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
---|
1257 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
---|
1258 | done |
---|
1259 | |
---|
1260 | # |
---|
1261 | # Report the --help message. |
---|
1262 | # |
---|
1263 | if test "$ac_init_help" = "long"; then |
---|
1264 | # Omit some internal or obsolete options to make the list less imposing. |
---|
1265 | # This message is too long to be a string in the A/UX 3.1 sh. |
---|
1266 | cat <<_ACEOF |
---|
1267 | \`configure' configures RapptureGUI 1.1 to adapt to many kinds of systems. |
---|
1268 | |
---|
1269 | Usage: $0 [OPTION]... [VAR=VALUE]... |
---|
1270 | |
---|
1271 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
---|
1272 | VAR=VALUE. See below for descriptions of some of the useful variables. |
---|
1273 | |
---|
1274 | Defaults for the options are specified in brackets. |
---|
1275 | |
---|
1276 | Configuration: |
---|
1277 | -h, --help display this help and exit |
---|
1278 | --help=short display options specific to this package |
---|
1279 | --help=recursive display the short help of all the included packages |
---|
1280 | -V, --version display version information and exit |
---|
1281 | -q, --quiet, --silent do not print \`checking ...' messages |
---|
1282 | --cache-file=FILE cache test results in FILE [disabled] |
---|
1283 | -C, --config-cache alias for \`--cache-file=config.cache' |
---|
1284 | -n, --no-create do not create output files |
---|
1285 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
---|
1286 | |
---|
1287 | Installation directories: |
---|
1288 | --prefix=PREFIX install architecture-independent files in PREFIX |
---|
1289 | [$ac_default_prefix] |
---|
1290 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
---|
1291 | [PREFIX] |
---|
1292 | |
---|
1293 | By default, \`make install' will install all the files in |
---|
1294 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
---|
1295 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
---|
1296 | for instance \`--prefix=\$HOME'. |
---|
1297 | |
---|
1298 | For better control, use the options below. |
---|
1299 | |
---|
1300 | Fine tuning of the installation directories: |
---|
1301 | --bindir=DIR user executables [EPREFIX/bin] |
---|
1302 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
---|
1303 | --libexecdir=DIR program executables [EPREFIX/libexec] |
---|
1304 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
---|
1305 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
---|
1306 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
---|
1307 | --libdir=DIR object code libraries [EPREFIX/lib] |
---|
1308 | --includedir=DIR C header files [PREFIX/include] |
---|
1309 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
---|
1310 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
---|
1311 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
---|
1312 | --infodir=DIR info documentation [DATAROOTDIR/info] |
---|
1313 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
---|
1314 | --mandir=DIR man documentation [DATAROOTDIR/man] |
---|
1315 | --docdir=DIR documentation root [DATAROOTDIR/doc/rappturegui] |
---|
1316 | --htmldir=DIR html documentation [DOCDIR] |
---|
1317 | --dvidir=DIR dvi documentation [DOCDIR] |
---|
1318 | --pdfdir=DIR pdf documentation [DOCDIR] |
---|
1319 | --psdir=DIR ps documentation [DOCDIR] |
---|
1320 | _ACEOF |
---|
1321 | |
---|
1322 | cat <<\_ACEOF |
---|
1323 | |
---|
1324 | System types: |
---|
1325 | --build=BUILD configure for building on BUILD [guessed] |
---|
1326 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
---|
1327 | --target=TARGET configure for building compilers for TARGET [HOST] |
---|
1328 | _ACEOF |
---|
1329 | fi |
---|
1330 | |
---|
1331 | if test -n "$ac_init_help"; then |
---|
1332 | case $ac_init_help in |
---|
1333 | short | recursive ) echo "Configuration of RapptureGUI 1.1:";; |
---|
1334 | esac |
---|
1335 | cat <<\_ACEOF |
---|
1336 | |
---|
1337 | Optional Features: |
---|
1338 | --disable-option-checking ignore unrecognized --enable/--with options |
---|
1339 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
---|
1340 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
---|
1341 | --enable-64bit enable 64bit support (where applicable) |
---|
1342 | --enable-64bit-vis enable 64bit Sparc VIS support |
---|
1343 | --enable-corefoundation use CoreFoundation API --enable-corefoundation |
---|
1344 | --disable-load disallow dynamic loading and "load" command |
---|
1345 | --enable-shared build and link with shared libraries --enable-shared |
---|
1346 | --enable-gui build code related to the graphical user interface |
---|
1347 | [default=yes] |
---|
1348 | |
---|
1349 | Optional Packages: |
---|
1350 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
---|
1351 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
---|
1352 | --with-tclsh=DIR location of tclsh [default=yes] |
---|
1353 | |
---|
1354 | Some influential environment variables: |
---|
1355 | CC C compiler command |
---|
1356 | CFLAGS C compiler flags |
---|
1357 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
---|
1358 | nonstandard directory <lib dir> |
---|
1359 | LIBS libraries to pass to the linker, e.g. -l<library> |
---|
1360 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
---|
1361 | you have headers in a nonstandard directory <include dir> |
---|
1362 | CPP C preprocessor |
---|
1363 | |
---|
1364 | Use these variables to override the choices made by `configure' or to help |
---|
1365 | it to find libraries and programs with nonstandard names/locations. |
---|
1366 | |
---|
1367 | Report bugs to <rappture@nanohub.org>. |
---|
1368 | _ACEOF |
---|
1369 | ac_status=$? |
---|
1370 | fi |
---|
1371 | |
---|
1372 | if test "$ac_init_help" = "recursive"; then |
---|
1373 | # If there are subdirs, report their specific --help. |
---|
1374 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
---|
1375 | test -d "$ac_dir" || |
---|
1376 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
---|
1377 | continue |
---|
1378 | ac_builddir=. |
---|
1379 | |
---|
1380 | case "$ac_dir" in |
---|
1381 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
1382 | *) |
---|
1383 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
---|
1384 | # A ".." for each directory in $ac_dir_suffix. |
---|
1385 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
---|
1386 | case $ac_top_builddir_sub in |
---|
1387 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
1388 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
---|
1389 | esac ;; |
---|
1390 | esac |
---|
1391 | ac_abs_top_builddir=$ac_pwd |
---|
1392 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
---|
1393 | # for backward compatibility: |
---|
1394 | ac_top_builddir=$ac_top_build_prefix |
---|
1395 | |
---|
1396 | case $srcdir in |
---|
1397 | .) # We are building in place. |
---|
1398 | ac_srcdir=. |
---|
1399 | ac_top_srcdir=$ac_top_builddir_sub |
---|
1400 | ac_abs_top_srcdir=$ac_pwd ;; |
---|
1401 | [\\/]* | ?:[\\/]* ) # Absolute name. |
---|
1402 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
1403 | ac_top_srcdir=$srcdir |
---|
1404 | ac_abs_top_srcdir=$srcdir ;; |
---|
1405 | *) # Relative name. |
---|
1406 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
---|
1407 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
---|
1408 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
---|
1409 | esac |
---|
1410 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
---|
1411 | |
---|
1412 | cd "$ac_dir" || { ac_status=$?; continue; } |
---|
1413 | # Check for guested configure. |
---|
1414 | if test -f "$ac_srcdir/configure.gnu"; then |
---|
1415 | echo && |
---|
1416 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
---|
1417 | elif test -f "$ac_srcdir/configure"; then |
---|
1418 | echo && |
---|
1419 | $SHELL "$ac_srcdir/configure" --help=recursive |
---|
1420 | else |
---|
1421 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
---|
1422 | fi || ac_status=$? |
---|
1423 | cd "$ac_pwd" || { ac_status=$?; break; } |
---|
1424 | done |
---|
1425 | fi |
---|
1426 | |
---|
1427 | test -n "$ac_init_help" && exit $ac_status |
---|
1428 | if $ac_init_version; then |
---|
1429 | cat <<\_ACEOF |
---|
1430 | RapptureGUI configure 1.1 |
---|
1431 | generated by GNU Autoconf 2.68 |
---|
1432 | |
---|
1433 | Copyright (C) 2010 Free Software Foundation, Inc. |
---|
1434 | This configure script is free software; the Free Software Foundation |
---|
1435 | gives unlimited permission to copy, distribute and modify it. |
---|
1436 | _ACEOF |
---|
1437 | exit |
---|
1438 | fi |
---|
1439 | |
---|
1440 | ## ------------------------ ## |
---|
1441 | ## Autoconf initialization. ## |
---|
1442 | ## ------------------------ ## |
---|
1443 | |
---|
1444 | # ac_fn_c_try_compile LINENO |
---|
1445 | # -------------------------- |
---|
1446 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
---|
1447 | ac_fn_c_try_compile () |
---|
1448 | { |
---|
1449 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1450 | rm -f conftest.$ac_objext |
---|
1451 | if { { ac_try="$ac_compile" |
---|
1452 | case "(($ac_try" in |
---|
1453 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1454 | *) ac_try_echo=$ac_try;; |
---|
1455 | esac |
---|
1456 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1457 | $as_echo "$ac_try_echo"; } >&5 |
---|
1458 | (eval "$ac_compile") 2>conftest.err |
---|
1459 | ac_status=$? |
---|
1460 | if test -s conftest.err; then |
---|
1461 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
1462 | cat conftest.er1 >&5 |
---|
1463 | mv -f conftest.er1 conftest.err |
---|
1464 | fi |
---|
1465 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1466 | test $ac_status = 0; } && { |
---|
1467 | test -z "$ac_c_werror_flag" || |
---|
1468 | test ! -s conftest.err |
---|
1469 | } && test -s conftest.$ac_objext; then : |
---|
1470 | ac_retval=0 |
---|
1471 | else |
---|
1472 | $as_echo "$as_me: failed program was:" >&5 |
---|
1473 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1474 | |
---|
1475 | ac_retval=1 |
---|
1476 | fi |
---|
1477 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1478 | as_fn_set_status $ac_retval |
---|
1479 | |
---|
1480 | } # ac_fn_c_try_compile |
---|
1481 | |
---|
1482 | # ac_fn_c_try_link LINENO |
---|
1483 | # ----------------------- |
---|
1484 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
---|
1485 | ac_fn_c_try_link () |
---|
1486 | { |
---|
1487 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1488 | rm -f conftest.$ac_objext conftest$ac_exeext |
---|
1489 | if { { ac_try="$ac_link" |
---|
1490 | case "(($ac_try" in |
---|
1491 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1492 | *) ac_try_echo=$ac_try;; |
---|
1493 | esac |
---|
1494 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1495 | $as_echo "$ac_try_echo"; } >&5 |
---|
1496 | (eval "$ac_link") 2>conftest.err |
---|
1497 | ac_status=$? |
---|
1498 | if test -s conftest.err; then |
---|
1499 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
1500 | cat conftest.er1 >&5 |
---|
1501 | mv -f conftest.er1 conftest.err |
---|
1502 | fi |
---|
1503 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1504 | test $ac_status = 0; } && { |
---|
1505 | test -z "$ac_c_werror_flag" || |
---|
1506 | test ! -s conftest.err |
---|
1507 | } && test -s conftest$ac_exeext && { |
---|
1508 | test "$cross_compiling" = yes || |
---|
1509 | $as_test_x conftest$ac_exeext |
---|
1510 | }; then : |
---|
1511 | ac_retval=0 |
---|
1512 | else |
---|
1513 | $as_echo "$as_me: failed program was:" >&5 |
---|
1514 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1515 | |
---|
1516 | ac_retval=1 |
---|
1517 | fi |
---|
1518 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
---|
1519 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
---|
1520 | # interfere with the next link command; also delete a directory that is |
---|
1521 | # left behind by Apple's compiler. We do this before executing the actions. |
---|
1522 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
---|
1523 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1524 | as_fn_set_status $ac_retval |
---|
1525 | |
---|
1526 | } # ac_fn_c_try_link |
---|
1527 | |
---|
1528 | # ac_fn_c_try_cpp LINENO |
---|
1529 | # ---------------------- |
---|
1530 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
---|
1531 | ac_fn_c_try_cpp () |
---|
1532 | { |
---|
1533 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1534 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
---|
1535 | case "(($ac_try" in |
---|
1536 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1537 | *) ac_try_echo=$ac_try;; |
---|
1538 | esac |
---|
1539 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1540 | $as_echo "$ac_try_echo"; } >&5 |
---|
1541 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
---|
1542 | ac_status=$? |
---|
1543 | if test -s conftest.err; then |
---|
1544 | grep -v '^ *+' conftest.err >conftest.er1 |
---|
1545 | cat conftest.er1 >&5 |
---|
1546 | mv -f conftest.er1 conftest.err |
---|
1547 | fi |
---|
1548 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1549 | test $ac_status = 0; } > conftest.i && { |
---|
1550 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
---|
1551 | test ! -s conftest.err |
---|
1552 | }; then : |
---|
1553 | ac_retval=0 |
---|
1554 | else |
---|
1555 | $as_echo "$as_me: failed program was:" >&5 |
---|
1556 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1557 | |
---|
1558 | ac_retval=1 |
---|
1559 | fi |
---|
1560 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1561 | as_fn_set_status $ac_retval |
---|
1562 | |
---|
1563 | } # ac_fn_c_try_cpp |
---|
1564 | |
---|
1565 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
---|
1566 | # ------------------------------------------------------- |
---|
1567 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
---|
1568 | # the include files in INCLUDES and setting the cache variable VAR |
---|
1569 | # accordingly. |
---|
1570 | ac_fn_c_check_header_mongrel () |
---|
1571 | { |
---|
1572 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1573 | if eval \${$3+:} false; then : |
---|
1574 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
1575 | $as_echo_n "checking for $2... " >&6; } |
---|
1576 | if eval \${$3+:} false; then : |
---|
1577 | $as_echo_n "(cached) " >&6 |
---|
1578 | fi |
---|
1579 | eval ac_res=\$$3 |
---|
1580 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
1581 | $as_echo "$ac_res" >&6; } |
---|
1582 | else |
---|
1583 | # Is the header compilable? |
---|
1584 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
---|
1585 | $as_echo_n "checking $2 usability... " >&6; } |
---|
1586 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1587 | /* end confdefs.h. */ |
---|
1588 | $4 |
---|
1589 | #include <$2> |
---|
1590 | _ACEOF |
---|
1591 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
1592 | ac_header_compiler=yes |
---|
1593 | else |
---|
1594 | ac_header_compiler=no |
---|
1595 | fi |
---|
1596 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
1597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
---|
1598 | $as_echo "$ac_header_compiler" >&6; } |
---|
1599 | |
---|
1600 | # Is the header present? |
---|
1601 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
---|
1602 | $as_echo_n "checking $2 presence... " >&6; } |
---|
1603 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1604 | /* end confdefs.h. */ |
---|
1605 | #include <$2> |
---|
1606 | _ACEOF |
---|
1607 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
1608 | ac_header_preproc=yes |
---|
1609 | else |
---|
1610 | ac_header_preproc=no |
---|
1611 | fi |
---|
1612 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
1613 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
---|
1614 | $as_echo "$ac_header_preproc" >&6; } |
---|
1615 | |
---|
1616 | # So? What about this header? |
---|
1617 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
---|
1618 | yes:no: ) |
---|
1619 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
---|
1620 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
---|
1621 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
---|
1622 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
---|
1623 | ;; |
---|
1624 | no:yes:* ) |
---|
1625 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
---|
1626 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
---|
1627 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
---|
1628 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
---|
1629 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
---|
1630 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
---|
1631 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
---|
1632 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
---|
1633 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
---|
1634 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
---|
1635 | ( $as_echo "## ----------------------------------- ## |
---|
1636 | ## Report this to rappture@nanohub.org ## |
---|
1637 | ## ----------------------------------- ##" |
---|
1638 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
---|
1639 | ;; |
---|
1640 | esac |
---|
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 | else |
---|
1646 | eval "$3=\$ac_header_compiler" |
---|
1647 | fi |
---|
1648 | eval ac_res=\$$3 |
---|
1649 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
1650 | $as_echo "$ac_res" >&6; } |
---|
1651 | fi |
---|
1652 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1653 | |
---|
1654 | } # ac_fn_c_check_header_mongrel |
---|
1655 | |
---|
1656 | # ac_fn_c_try_run LINENO |
---|
1657 | # ---------------------- |
---|
1658 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
---|
1659 | # that executables *can* be run. |
---|
1660 | ac_fn_c_try_run () |
---|
1661 | { |
---|
1662 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1663 | if { { ac_try="$ac_link" |
---|
1664 | case "(($ac_try" in |
---|
1665 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1666 | *) ac_try_echo=$ac_try;; |
---|
1667 | esac |
---|
1668 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1669 | $as_echo "$ac_try_echo"; } >&5 |
---|
1670 | (eval "$ac_link") 2>&5 |
---|
1671 | ac_status=$? |
---|
1672 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1673 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
---|
1674 | { { case "(($ac_try" in |
---|
1675 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
1676 | *) ac_try_echo=$ac_try;; |
---|
1677 | esac |
---|
1678 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
1679 | $as_echo "$ac_try_echo"; } >&5 |
---|
1680 | (eval "$ac_try") 2>&5 |
---|
1681 | ac_status=$? |
---|
1682 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
1683 | test $ac_status = 0; }; }; then : |
---|
1684 | ac_retval=0 |
---|
1685 | else |
---|
1686 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
---|
1687 | $as_echo "$as_me: failed program was:" >&5 |
---|
1688 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
1689 | |
---|
1690 | ac_retval=$ac_status |
---|
1691 | fi |
---|
1692 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
---|
1693 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1694 | as_fn_set_status $ac_retval |
---|
1695 | |
---|
1696 | } # ac_fn_c_try_run |
---|
1697 | |
---|
1698 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
---|
1699 | # ------------------------------------------------------- |
---|
1700 | # Tests whether HEADER exists and can be compiled using the include files in |
---|
1701 | # INCLUDES, setting the cache variable VAR accordingly. |
---|
1702 | ac_fn_c_check_header_compile () |
---|
1703 | { |
---|
1704 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
1705 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
---|
1706 | $as_echo_n "checking for $2... " >&6; } |
---|
1707 | if eval \${$3+:} false; then : |
---|
1708 | $as_echo_n "(cached) " >&6 |
---|
1709 | else |
---|
1710 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
1711 | /* end confdefs.h. */ |
---|
1712 | $4 |
---|
1713 | #include <$2> |
---|
1714 | _ACEOF |
---|
1715 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
1716 | eval "$3=yes" |
---|
1717 | else |
---|
1718 | eval "$3=no" |
---|
1719 | fi |
---|
1720 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
1721 | fi |
---|
1722 | eval ac_res=\$$3 |
---|
1723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
---|
1724 | $as_echo "$ac_res" >&6; } |
---|
1725 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
---|
1726 | |
---|
1727 | } # ac_fn_c_check_header_compile |
---|
1728 | cat >config.log <<_ACEOF |
---|
1729 | This file contains any messages produced by compilers while |
---|
1730 | running configure, to aid debugging if configure makes a mistake. |
---|
1731 | |
---|
1732 | It was created by RapptureGUI $as_me 1.1, which was |
---|
1733 | generated by GNU Autoconf 2.68. Invocation command line was |
---|
1734 | |
---|
1735 | $ $0 $@ |
---|
1736 | |
---|
1737 | _ACEOF |
---|
1738 | exec 5>>config.log |
---|
1739 | { |
---|
1740 | cat <<_ASUNAME |
---|
1741 | ## --------- ## |
---|
1742 | ## Platform. ## |
---|
1743 | ## --------- ## |
---|
1744 | |
---|
1745 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
1746 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
---|
1747 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
---|
1748 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
---|
1749 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
---|
1750 | |
---|
1751 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
---|
1752 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
---|
1753 | |
---|
1754 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
---|
1755 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
---|
1756 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
---|
1757 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
---|
1758 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
---|
1759 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
---|
1760 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
---|
1761 | |
---|
1762 | _ASUNAME |
---|
1763 | |
---|
1764 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
1765 | for as_dir in $PATH |
---|
1766 | do |
---|
1767 | IFS=$as_save_IFS |
---|
1768 | test -z "$as_dir" && as_dir=. |
---|
1769 | $as_echo "PATH: $as_dir" |
---|
1770 | done |
---|
1771 | IFS=$as_save_IFS |
---|
1772 | |
---|
1773 | } >&5 |
---|
1774 | |
---|
1775 | cat >&5 <<_ACEOF |
---|
1776 | |
---|
1777 | |
---|
1778 | ## ----------- ## |
---|
1779 | ## Core tests. ## |
---|
1780 | ## ----------- ## |
---|
1781 | |
---|
1782 | _ACEOF |
---|
1783 | |
---|
1784 | |
---|
1785 | # Keep a trace of the command line. |
---|
1786 | # Strip out --no-create and --no-recursion so they do not pile up. |
---|
1787 | # Strip out --silent because we don't want to record it for future runs. |
---|
1788 | # Also quote any args containing shell meta-characters. |
---|
1789 | # Make two passes to allow for proper duplicate-argument suppression. |
---|
1790 | ac_configure_args= |
---|
1791 | ac_configure_args0= |
---|
1792 | ac_configure_args1= |
---|
1793 | ac_must_keep_next=false |
---|
1794 | for ac_pass in 1 2 |
---|
1795 | do |
---|
1796 | for ac_arg |
---|
1797 | do |
---|
1798 | case $ac_arg in |
---|
1799 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
---|
1800 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
1801 | | -silent | --silent | --silen | --sile | --sil) |
---|
1802 | continue ;; |
---|
1803 | *\'*) |
---|
1804 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
1805 | esac |
---|
1806 | case $ac_pass in |
---|
1807 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
---|
1808 | 2) |
---|
1809 | as_fn_append ac_configure_args1 " '$ac_arg'" |
---|
1810 | if test $ac_must_keep_next = true; then |
---|
1811 | ac_must_keep_next=false # Got value, back to normal. |
---|
1812 | else |
---|
1813 | case $ac_arg in |
---|
1814 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
---|
1815 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
---|
1816 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
---|
1817 | | -with-* | --with-* | -without-* | --without-* | --x) |
---|
1818 | case "$ac_configure_args0 " in |
---|
1819 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
---|
1820 | esac |
---|
1821 | ;; |
---|
1822 | -* ) ac_must_keep_next=true ;; |
---|
1823 | esac |
---|
1824 | fi |
---|
1825 | as_fn_append ac_configure_args " '$ac_arg'" |
---|
1826 | ;; |
---|
1827 | esac |
---|
1828 | done |
---|
1829 | done |
---|
1830 | { ac_configure_args0=; unset ac_configure_args0;} |
---|
1831 | { ac_configure_args1=; unset ac_configure_args1;} |
---|
1832 | |
---|
1833 | # When interrupted or exit'd, cleanup temporary files, and complete |
---|
1834 | # config.log. We remove comments because anyway the quotes in there |
---|
1835 | # would cause problems or look ugly. |
---|
1836 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
---|
1837 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
---|
1838 | trap 'exit_status=$? |
---|
1839 | # Save into config.log some information that might help in debugging. |
---|
1840 | { |
---|
1841 | echo |
---|
1842 | |
---|
1843 | $as_echo "## ---------------- ## |
---|
1844 | ## Cache variables. ## |
---|
1845 | ## ---------------- ##" |
---|
1846 | echo |
---|
1847 | # The following way of writing the cache mishandles newlines in values, |
---|
1848 | ( |
---|
1849 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
---|
1850 | eval ac_val=\$$ac_var |
---|
1851 | case $ac_val in #( |
---|
1852 | *${as_nl}*) |
---|
1853 | case $ac_var in #( |
---|
1854 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
---|
1855 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
---|
1856 | esac |
---|
1857 | case $ac_var in #( |
---|
1858 | _ | IFS | as_nl) ;; #( |
---|
1859 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
---|
1860 | *) { eval $ac_var=; unset $ac_var;} ;; |
---|
1861 | esac ;; |
---|
1862 | esac |
---|
1863 | done |
---|
1864 | (set) 2>&1 | |
---|
1865 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
---|
1866 | *${as_nl}ac_space=\ *) |
---|
1867 | sed -n \ |
---|
1868 | "s/'\''/'\''\\\\'\'''\''/g; |
---|
1869 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
---|
1870 | ;; #( |
---|
1871 | *) |
---|
1872 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
---|
1873 | ;; |
---|
1874 | esac | |
---|
1875 | sort |
---|
1876 | ) |
---|
1877 | echo |
---|
1878 | |
---|
1879 | $as_echo "## ----------------- ## |
---|
1880 | ## Output variables. ## |
---|
1881 | ## ----------------- ##" |
---|
1882 | echo |
---|
1883 | for ac_var in $ac_subst_vars |
---|
1884 | do |
---|
1885 | eval ac_val=\$$ac_var |
---|
1886 | case $ac_val in |
---|
1887 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
---|
1888 | esac |
---|
1889 | $as_echo "$ac_var='\''$ac_val'\''" |
---|
1890 | done | sort |
---|
1891 | echo |
---|
1892 | |
---|
1893 | if test -n "$ac_subst_files"; then |
---|
1894 | $as_echo "## ------------------- ## |
---|
1895 | ## File substitutions. ## |
---|
1896 | ## ------------------- ##" |
---|
1897 | echo |
---|
1898 | for ac_var in $ac_subst_files |
---|
1899 | do |
---|
1900 | eval ac_val=\$$ac_var |
---|
1901 | case $ac_val in |
---|
1902 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
---|
1903 | esac |
---|
1904 | $as_echo "$ac_var='\''$ac_val'\''" |
---|
1905 | done | sort |
---|
1906 | echo |
---|
1907 | fi |
---|
1908 | |
---|
1909 | if test -s confdefs.h; then |
---|
1910 | $as_echo "## ----------- ## |
---|
1911 | ## confdefs.h. ## |
---|
1912 | ## ----------- ##" |
---|
1913 | echo |
---|
1914 | cat confdefs.h |
---|
1915 | echo |
---|
1916 | fi |
---|
1917 | test "$ac_signal" != 0 && |
---|
1918 | $as_echo "$as_me: caught signal $ac_signal" |
---|
1919 | $as_echo "$as_me: exit $exit_status" |
---|
1920 | } >&5 |
---|
1921 | rm -f core *.core core.conftest.* && |
---|
1922 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
---|
1923 | exit $exit_status |
---|
1924 | ' 0 |
---|
1925 | for ac_signal in 1 2 13 15; do |
---|
1926 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
---|
1927 | done |
---|
1928 | ac_signal=0 |
---|
1929 | |
---|
1930 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
---|
1931 | rm -f -r conftest* confdefs.h |
---|
1932 | |
---|
1933 | $as_echo "/* confdefs.h */" > confdefs.h |
---|
1934 | |
---|
1935 | # Predefined preprocessor variables. |
---|
1936 | |
---|
1937 | cat >>confdefs.h <<_ACEOF |
---|
1938 | #define PACKAGE_NAME "$PACKAGE_NAME" |
---|
1939 | _ACEOF |
---|
1940 | |
---|
1941 | cat >>confdefs.h <<_ACEOF |
---|
1942 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
---|
1943 | _ACEOF |
---|
1944 | |
---|
1945 | cat >>confdefs.h <<_ACEOF |
---|
1946 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
---|
1947 | _ACEOF |
---|
1948 | |
---|
1949 | cat >>confdefs.h <<_ACEOF |
---|
1950 | #define PACKAGE_STRING "$PACKAGE_STRING" |
---|
1951 | _ACEOF |
---|
1952 | |
---|
1953 | cat >>confdefs.h <<_ACEOF |
---|
1954 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
---|
1955 | _ACEOF |
---|
1956 | |
---|
1957 | cat >>confdefs.h <<_ACEOF |
---|
1958 | #define PACKAGE_URL "$PACKAGE_URL" |
---|
1959 | _ACEOF |
---|
1960 | |
---|
1961 | |
---|
1962 | # Let the site file select an alternate cache file if it wants to. |
---|
1963 | # Prefer an explicitly selected file to automatically selected ones. |
---|
1964 | ac_site_file1=NONE |
---|
1965 | ac_site_file2=NONE |
---|
1966 | if test -n "$CONFIG_SITE"; then |
---|
1967 | # We do not want a PATH search for config.site. |
---|
1968 | case $CONFIG_SITE in #(( |
---|
1969 | -*) ac_site_file1=./$CONFIG_SITE;; |
---|
1970 | */*) ac_site_file1=$CONFIG_SITE;; |
---|
1971 | *) ac_site_file1=./$CONFIG_SITE;; |
---|
1972 | esac |
---|
1973 | elif test "x$prefix" != xNONE; then |
---|
1974 | ac_site_file1=$prefix/share/config.site |
---|
1975 | ac_site_file2=$prefix/etc/config.site |
---|
1976 | else |
---|
1977 | ac_site_file1=$ac_default_prefix/share/config.site |
---|
1978 | ac_site_file2=$ac_default_prefix/etc/config.site |
---|
1979 | fi |
---|
1980 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
---|
1981 | do |
---|
1982 | test "x$ac_site_file" = xNONE && continue |
---|
1983 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
---|
1984 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
---|
1985 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
---|
1986 | sed 's/^/| /' "$ac_site_file" >&5 |
---|
1987 | . "$ac_site_file" \ |
---|
1988 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
1989 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
1990 | as_fn_error $? "failed to load site script $ac_site_file |
---|
1991 | See \`config.log' for more details" "$LINENO" 5; } |
---|
1992 | fi |
---|
1993 | done |
---|
1994 | |
---|
1995 | if test -r "$cache_file"; then |
---|
1996 | # Some versions of bash will fail to source /dev/null (special files |
---|
1997 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
---|
1998 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
---|
1999 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
---|
2000 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
---|
2001 | case $cache_file in |
---|
2002 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
---|
2003 | *) . "./$cache_file";; |
---|
2004 | esac |
---|
2005 | fi |
---|
2006 | else |
---|
2007 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
---|
2008 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
---|
2009 | >$cache_file |
---|
2010 | fi |
---|
2011 | |
---|
2012 | # Check that the precious variables saved in the cache have kept the same |
---|
2013 | # value. |
---|
2014 | ac_cache_corrupted=false |
---|
2015 | for ac_var in $ac_precious_vars; do |
---|
2016 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
---|
2017 | eval ac_new_set=\$ac_env_${ac_var}_set |
---|
2018 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
---|
2019 | eval ac_new_val=\$ac_env_${ac_var}_value |
---|
2020 | case $ac_old_set,$ac_new_set in |
---|
2021 | set,) |
---|
2022 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
---|
2023 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
---|
2024 | ac_cache_corrupted=: ;; |
---|
2025 | ,set) |
---|
2026 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
---|
2027 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
---|
2028 | ac_cache_corrupted=: ;; |
---|
2029 | ,);; |
---|
2030 | *) |
---|
2031 | if test "x$ac_old_val" != "x$ac_new_val"; then |
---|
2032 | # differences in whitespace do not lead to failure. |
---|
2033 | ac_old_val_w=`echo x $ac_old_val` |
---|
2034 | ac_new_val_w=`echo x $ac_new_val` |
---|
2035 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
---|
2036 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
---|
2037 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
---|
2038 | ac_cache_corrupted=: |
---|
2039 | else |
---|
2040 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
---|
2041 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
---|
2042 | eval $ac_var=\$ac_old_val |
---|
2043 | fi |
---|
2044 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
---|
2045 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
---|
2046 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
---|
2047 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
---|
2048 | fi;; |
---|
2049 | esac |
---|
2050 | # Pass precious variables to config.status. |
---|
2051 | if test "$ac_new_set" = set; then |
---|
2052 | case $ac_new_val in |
---|
2053 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
2054 | *) ac_arg=$ac_var=$ac_new_val ;; |
---|
2055 | esac |
---|
2056 | case " $ac_configure_args " in |
---|
2057 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
---|
2058 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
---|
2059 | esac |
---|
2060 | fi |
---|
2061 | done |
---|
2062 | if $ac_cache_corrupted; then |
---|
2063 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
2064 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
2065 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
---|
2066 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
---|
2067 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
---|
2068 | fi |
---|
2069 | ## -------------------- ## |
---|
2070 | ## Main body of script. ## |
---|
2071 | ## -------------------- ## |
---|
2072 | |
---|
2073 | ac_ext=c |
---|
2074 | ac_cpp='$CPP $CPPFLAGS' |
---|
2075 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2076 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2077 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2078 | |
---|
2079 | |
---|
2080 | ac_aux_dir= |
---|
2081 | for ac_dir in cf "$srcdir"/cf; do |
---|
2082 | if test -f "$ac_dir/install-sh"; then |
---|
2083 | ac_aux_dir=$ac_dir |
---|
2084 | ac_install_sh="$ac_aux_dir/install-sh -c" |
---|
2085 | break |
---|
2086 | elif test -f "$ac_dir/install.sh"; then |
---|
2087 | ac_aux_dir=$ac_dir |
---|
2088 | ac_install_sh="$ac_aux_dir/install.sh -c" |
---|
2089 | break |
---|
2090 | elif test -f "$ac_dir/shtool"; then |
---|
2091 | ac_aux_dir=$ac_dir |
---|
2092 | ac_install_sh="$ac_aux_dir/shtool install -c" |
---|
2093 | break |
---|
2094 | fi |
---|
2095 | done |
---|
2096 | if test -z "$ac_aux_dir"; then |
---|
2097 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in cf \"$srcdir\"/cf" "$LINENO" 5 |
---|
2098 | fi |
---|
2099 | |
---|
2100 | # These three variables are undocumented and unsupported, |
---|
2101 | # and are intended to be withdrawn in a future Autoconf release. |
---|
2102 | # They can cause serious problems if a builder's source tree is in a directory |
---|
2103 | # whose full name contains unusual characters. |
---|
2104 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
---|
2105 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
---|
2106 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
---|
2107 | |
---|
2108 | |
---|
2109 | #------------------------------------------------------------------------ |
---|
2110 | # Handle the --prefix=... option |
---|
2111 | #------------------------------------------------------------------------ |
---|
2112 | |
---|
2113 | if test "${prefix}" = "NONE"; then |
---|
2114 | prefix=/usr/local |
---|
2115 | fi |
---|
2116 | if test "${exec_prefix}" = "NONE"; then |
---|
2117 | exec_prefix=$prefix |
---|
2118 | fi |
---|
2119 | |
---|
2120 | if test "${libdir}" != "${prefix}/lib"; then |
---|
2121 | LIB_SEARCH_DIRS="-L${prefix}/lib -L${libdir}" |
---|
2122 | else |
---|
2123 | LIB_SEARCH_DIRS="-L${libdir}" |
---|
2124 | fi |
---|
2125 | # Make sure we can run config.sub. |
---|
2126 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
---|
2127 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
---|
2128 | |
---|
2129 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
---|
2130 | $as_echo_n "checking build system type... " >&6; } |
---|
2131 | if ${ac_cv_build+:} false; then : |
---|
2132 | $as_echo_n "(cached) " >&6 |
---|
2133 | else |
---|
2134 | ac_build_alias=$build_alias |
---|
2135 | test "x$ac_build_alias" = x && |
---|
2136 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
---|
2137 | test "x$ac_build_alias" = x && |
---|
2138 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
---|
2139 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
---|
2140 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
---|
2141 | |
---|
2142 | fi |
---|
2143 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
---|
2144 | $as_echo "$ac_cv_build" >&6; } |
---|
2145 | case $ac_cv_build in |
---|
2146 | *-*-*) ;; |
---|
2147 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
---|
2148 | esac |
---|
2149 | build=$ac_cv_build |
---|
2150 | ac_save_IFS=$IFS; IFS='-' |
---|
2151 | set x $ac_cv_build |
---|
2152 | shift |
---|
2153 | build_cpu=$1 |
---|
2154 | build_vendor=$2 |
---|
2155 | shift; shift |
---|
2156 | # Remember, the first character of IFS is used to create $*, |
---|
2157 | # except with old shells: |
---|
2158 | build_os=$* |
---|
2159 | IFS=$ac_save_IFS |
---|
2160 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
---|
2161 | |
---|
2162 | |
---|
2163 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
---|
2164 | $as_echo_n "checking host system type... " >&6; } |
---|
2165 | if ${ac_cv_host+:} false; then : |
---|
2166 | $as_echo_n "(cached) " >&6 |
---|
2167 | else |
---|
2168 | if test "x$host_alias" = x; then |
---|
2169 | ac_cv_host=$ac_cv_build |
---|
2170 | else |
---|
2171 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
---|
2172 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
---|
2173 | fi |
---|
2174 | |
---|
2175 | fi |
---|
2176 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
---|
2177 | $as_echo "$ac_cv_host" >&6; } |
---|
2178 | case $ac_cv_host in |
---|
2179 | *-*-*) ;; |
---|
2180 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
---|
2181 | esac |
---|
2182 | host=$ac_cv_host |
---|
2183 | ac_save_IFS=$IFS; IFS='-' |
---|
2184 | set x $ac_cv_host |
---|
2185 | shift |
---|
2186 | host_cpu=$1 |
---|
2187 | host_vendor=$2 |
---|
2188 | shift; shift |
---|
2189 | # Remember, the first character of IFS is used to create $*, |
---|
2190 | # except with old shells: |
---|
2191 | host_os=$* |
---|
2192 | IFS=$ac_save_IFS |
---|
2193 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
---|
2194 | |
---|
2195 | |
---|
2196 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 |
---|
2197 | $as_echo_n "checking target system type... " >&6; } |
---|
2198 | if ${ac_cv_target+:} false; then : |
---|
2199 | $as_echo_n "(cached) " >&6 |
---|
2200 | else |
---|
2201 | if test "x$target_alias" = x; then |
---|
2202 | ac_cv_target=$ac_cv_host |
---|
2203 | else |
---|
2204 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || |
---|
2205 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 |
---|
2206 | fi |
---|
2207 | |
---|
2208 | fi |
---|
2209 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
---|
2210 | $as_echo "$ac_cv_target" >&6; } |
---|
2211 | case $ac_cv_target in |
---|
2212 | *-*-*) ;; |
---|
2213 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; |
---|
2214 | esac |
---|
2215 | target=$ac_cv_target |
---|
2216 | ac_save_IFS=$IFS; IFS='-' |
---|
2217 | set x $ac_cv_target |
---|
2218 | shift |
---|
2219 | target_cpu=$1 |
---|
2220 | target_vendor=$2 |
---|
2221 | shift; shift |
---|
2222 | # Remember, the first character of IFS is used to create $*, |
---|
2223 | # except with old shells: |
---|
2224 | target_os=$* |
---|
2225 | IFS=$ac_save_IFS |
---|
2226 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac |
---|
2227 | |
---|
2228 | |
---|
2229 | # The aliases save the names the user supplied, while $host etc. |
---|
2230 | # will get canonicalized. |
---|
2231 | test -n "$target_alias" && |
---|
2232 | test "$program_prefix$program_suffix$program_transform_name" = \ |
---|
2233 | NONENONEs,x,x, && |
---|
2234 | program_prefix=${target_alias}- |
---|
2235 | |
---|
2236 | |
---|
2237 | # Find a good install program. We prefer a C program (faster), |
---|
2238 | # so one script is as good as another. But avoid the broken or |
---|
2239 | # incompatible versions: |
---|
2240 | # SysV /etc/install, /usr/sbin/install |
---|
2241 | # SunOS /usr/etc/install |
---|
2242 | # IRIX /sbin/install |
---|
2243 | # AIX /bin/install |
---|
2244 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
---|
2245 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
---|
2246 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
---|
2247 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
---|
2248 | # OS/2's system install, which has a completely different semantic |
---|
2249 | # ./install, which can be erroneously created by make from ./install.sh. |
---|
2250 | # Reject install programs that cannot install multiple files. |
---|
2251 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
---|
2252 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
---|
2253 | if test -z "$INSTALL"; then |
---|
2254 | if ${ac_cv_path_install+:} false; then : |
---|
2255 | $as_echo_n "(cached) " >&6 |
---|
2256 | else |
---|
2257 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2258 | for as_dir in $PATH |
---|
2259 | do |
---|
2260 | IFS=$as_save_IFS |
---|
2261 | test -z "$as_dir" && as_dir=. |
---|
2262 | # Account for people who put trailing slashes in PATH elements. |
---|
2263 | case $as_dir/ in #(( |
---|
2264 | ./ | .// | /[cC]/* | \ |
---|
2265 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
---|
2266 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
---|
2267 | /usr/ucb/* ) ;; |
---|
2268 | *) |
---|
2269 | # OSF1 and SCO ODT 3.0 have their own names for install. |
---|
2270 | # Don't use installbsd from OSF since it installs stuff as root |
---|
2271 | # by default. |
---|
2272 | for ac_prog in ginstall scoinst install; do |
---|
2273 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2274 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
---|
2275 | if test $ac_prog = install && |
---|
2276 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
2277 | # AIX install. It has an incompatible calling convention. |
---|
2278 | : |
---|
2279 | elif test $ac_prog = install && |
---|
2280 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
---|
2281 | # program-specific install script used by HP pwplus--don't use. |
---|
2282 | : |
---|
2283 | else |
---|
2284 | rm -rf conftest.one conftest.two conftest.dir |
---|
2285 | echo one > conftest.one |
---|
2286 | echo two > conftest.two |
---|
2287 | mkdir conftest.dir |
---|
2288 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
---|
2289 | test -s conftest.one && test -s conftest.two && |
---|
2290 | test -s conftest.dir/conftest.one && |
---|
2291 | test -s conftest.dir/conftest.two |
---|
2292 | then |
---|
2293 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
---|
2294 | break 3 |
---|
2295 | fi |
---|
2296 | fi |
---|
2297 | fi |
---|
2298 | done |
---|
2299 | done |
---|
2300 | ;; |
---|
2301 | esac |
---|
2302 | |
---|
2303 | done |
---|
2304 | IFS=$as_save_IFS |
---|
2305 | |
---|
2306 | rm -rf conftest.one conftest.two conftest.dir |
---|
2307 | |
---|
2308 | fi |
---|
2309 | if test "${ac_cv_path_install+set}" = set; then |
---|
2310 | INSTALL=$ac_cv_path_install |
---|
2311 | else |
---|
2312 | # As a last resort, use the slow shell script. Don't cache a |
---|
2313 | # value for INSTALL within a source directory, because that will |
---|
2314 | # break other packages using the cache if that directory is |
---|
2315 | # removed, or if the value is a relative name. |
---|
2316 | INSTALL=$ac_install_sh |
---|
2317 | fi |
---|
2318 | fi |
---|
2319 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
---|
2320 | $as_echo "$INSTALL" >&6; } |
---|
2321 | |
---|
2322 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
---|
2323 | # It thinks the first close brace ends the variable substitution. |
---|
2324 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
---|
2325 | |
---|
2326 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
---|
2327 | |
---|
2328 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
---|
2329 | |
---|
2330 | |
---|
2331 | if test -n "$ac_tool_prefix"; then |
---|
2332 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
---|
2333 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
---|
2334 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
2335 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
2336 | if ${ac_cv_prog_RANLIB+:} false; then : |
---|
2337 | $as_echo_n "(cached) " >&6 |
---|
2338 | else |
---|
2339 | if test -n "$RANLIB"; then |
---|
2340 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
---|
2341 | else |
---|
2342 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2343 | for as_dir in $PATH |
---|
2344 | do |
---|
2345 | IFS=$as_save_IFS |
---|
2346 | test -z "$as_dir" && as_dir=. |
---|
2347 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2348 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
2349 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
---|
2350 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2351 | break 2 |
---|
2352 | fi |
---|
2353 | done |
---|
2354 | done |
---|
2355 | IFS=$as_save_IFS |
---|
2356 | |
---|
2357 | fi |
---|
2358 | fi |
---|
2359 | RANLIB=$ac_cv_prog_RANLIB |
---|
2360 | if test -n "$RANLIB"; then |
---|
2361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
---|
2362 | $as_echo "$RANLIB" >&6; } |
---|
2363 | else |
---|
2364 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2365 | $as_echo "no" >&6; } |
---|
2366 | fi |
---|
2367 | |
---|
2368 | |
---|
2369 | fi |
---|
2370 | if test -z "$ac_cv_prog_RANLIB"; then |
---|
2371 | ac_ct_RANLIB=$RANLIB |
---|
2372 | # Extract the first word of "ranlib", so it can be a program name with args. |
---|
2373 | set dummy ranlib; ac_word=$2 |
---|
2374 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
2375 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
2376 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
---|
2377 | $as_echo_n "(cached) " >&6 |
---|
2378 | else |
---|
2379 | if test -n "$ac_ct_RANLIB"; then |
---|
2380 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
---|
2381 | else |
---|
2382 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2383 | for as_dir in $PATH |
---|
2384 | do |
---|
2385 | IFS=$as_save_IFS |
---|
2386 | test -z "$as_dir" && as_dir=. |
---|
2387 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2388 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
2389 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
---|
2390 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2391 | break 2 |
---|
2392 | fi |
---|
2393 | done |
---|
2394 | done |
---|
2395 | IFS=$as_save_IFS |
---|
2396 | |
---|
2397 | fi |
---|
2398 | fi |
---|
2399 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
---|
2400 | if test -n "$ac_ct_RANLIB"; then |
---|
2401 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
---|
2402 | $as_echo "$ac_ct_RANLIB" >&6; } |
---|
2403 | else |
---|
2404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2405 | $as_echo "no" >&6; } |
---|
2406 | fi |
---|
2407 | |
---|
2408 | if test "x$ac_ct_RANLIB" = x; then |
---|
2409 | RANLIB=":" |
---|
2410 | else |
---|
2411 | case $cross_compiling:$ac_tool_warned in |
---|
2412 | yes:) |
---|
2413 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
2414 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
2415 | ac_tool_warned=yes ;; |
---|
2416 | esac |
---|
2417 | RANLIB=$ac_ct_RANLIB |
---|
2418 | fi |
---|
2419 | else |
---|
2420 | RANLIB="$ac_cv_prog_RANLIB" |
---|
2421 | fi |
---|
2422 | |
---|
2423 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
---|
2424 | $as_echo_n "checking whether ln -s works... " >&6; } |
---|
2425 | LN_S=$as_ln_s |
---|
2426 | if test "$LN_S" = "ln -s"; then |
---|
2427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
---|
2428 | $as_echo "yes" >&6; } |
---|
2429 | else |
---|
2430 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
---|
2431 | $as_echo "no, using $LN_S" >&6; } |
---|
2432 | fi |
---|
2433 | |
---|
2434 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
---|
2435 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
---|
2436 | if test -z "$MKDIR_P"; then |
---|
2437 | if ${ac_cv_path_mkdir+:} false; then : |
---|
2438 | $as_echo_n "(cached) " >&6 |
---|
2439 | else |
---|
2440 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2441 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
---|
2442 | do |
---|
2443 | IFS=$as_save_IFS |
---|
2444 | test -z "$as_dir" && as_dir=. |
---|
2445 | for ac_prog in mkdir gmkdir; do |
---|
2446 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2447 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue |
---|
2448 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
---|
2449 | 'mkdir (GNU coreutils) '* | \ |
---|
2450 | 'mkdir (coreutils) '* | \ |
---|
2451 | 'mkdir (fileutils) '4.1*) |
---|
2452 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext |
---|
2453 | break 3;; |
---|
2454 | esac |
---|
2455 | done |
---|
2456 | done |
---|
2457 | done |
---|
2458 | IFS=$as_save_IFS |
---|
2459 | |
---|
2460 | fi |
---|
2461 | |
---|
2462 | test -d ./--version && rmdir ./--version |
---|
2463 | if test "${ac_cv_path_mkdir+set}" = set; then |
---|
2464 | MKDIR_P="$ac_cv_path_mkdir -p" |
---|
2465 | else |
---|
2466 | # As a last resort, use the slow shell script. Don't cache a |
---|
2467 | # value for MKDIR_P within a source directory, because that will |
---|
2468 | # break other packages using the cache if that directory is |
---|
2469 | # removed, or if the value is a relative name. |
---|
2470 | MKDIR_P="$ac_install_sh -d" |
---|
2471 | fi |
---|
2472 | fi |
---|
2473 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
---|
2474 | $as_echo "$MKDIR_P" >&6; } |
---|
2475 | |
---|
2476 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
---|
2477 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
---|
2478 | set x ${MAKE-make} |
---|
2479 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
---|
2480 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
---|
2481 | $as_echo_n "(cached) " >&6 |
---|
2482 | else |
---|
2483 | cat >conftest.make <<\_ACEOF |
---|
2484 | SHELL = /bin/sh |
---|
2485 | all: |
---|
2486 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
---|
2487 | _ACEOF |
---|
2488 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
---|
2489 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
---|
2490 | *@@@%%%=?*=@@@%%%*) |
---|
2491 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
---|
2492 | *) |
---|
2493 | eval ac_cv_prog_make_${ac_make}_set=no;; |
---|
2494 | esac |
---|
2495 | rm -f conftest.make |
---|
2496 | fi |
---|
2497 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
---|
2498 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
---|
2499 | $as_echo "yes" >&6; } |
---|
2500 | SET_MAKE= |
---|
2501 | else |
---|
2502 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2503 | $as_echo "no" >&6; } |
---|
2504 | SET_MAKE="MAKE=${MAKE-make}" |
---|
2505 | fi |
---|
2506 | |
---|
2507 | ac_ext=c |
---|
2508 | ac_cpp='$CPP $CPPFLAGS' |
---|
2509 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
2510 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
2511 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
2512 | if test -n "$ac_tool_prefix"; then |
---|
2513 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
---|
2514 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
---|
2515 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
2516 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
2517 | if ${ac_cv_prog_CC+:} false; then : |
---|
2518 | $as_echo_n "(cached) " >&6 |
---|
2519 | else |
---|
2520 | if test -n "$CC"; then |
---|
2521 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2522 | else |
---|
2523 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2524 | for as_dir in $PATH |
---|
2525 | do |
---|
2526 | IFS=$as_save_IFS |
---|
2527 | test -z "$as_dir" && as_dir=. |
---|
2528 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2529 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
2530 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
---|
2531 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2532 | break 2 |
---|
2533 | fi |
---|
2534 | done |
---|
2535 | done |
---|
2536 | IFS=$as_save_IFS |
---|
2537 | |
---|
2538 | fi |
---|
2539 | fi |
---|
2540 | CC=$ac_cv_prog_CC |
---|
2541 | if test -n "$CC"; then |
---|
2542 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
2543 | $as_echo "$CC" >&6; } |
---|
2544 | else |
---|
2545 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2546 | $as_echo "no" >&6; } |
---|
2547 | fi |
---|
2548 | |
---|
2549 | |
---|
2550 | fi |
---|
2551 | if test -z "$ac_cv_prog_CC"; then |
---|
2552 | ac_ct_CC=$CC |
---|
2553 | # Extract the first word of "gcc", so it can be a program name with args. |
---|
2554 | set dummy gcc; ac_word=$2 |
---|
2555 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
2556 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
2557 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
---|
2558 | $as_echo_n "(cached) " >&6 |
---|
2559 | else |
---|
2560 | if test -n "$ac_ct_CC"; then |
---|
2561 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
2562 | else |
---|
2563 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2564 | for as_dir in $PATH |
---|
2565 | do |
---|
2566 | IFS=$as_save_IFS |
---|
2567 | test -z "$as_dir" && as_dir=. |
---|
2568 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2569 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
2570 | ac_cv_prog_ac_ct_CC="gcc" |
---|
2571 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2572 | break 2 |
---|
2573 | fi |
---|
2574 | done |
---|
2575 | done |
---|
2576 | IFS=$as_save_IFS |
---|
2577 | |
---|
2578 | fi |
---|
2579 | fi |
---|
2580 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
2581 | if test -n "$ac_ct_CC"; then |
---|
2582 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
---|
2583 | $as_echo "$ac_ct_CC" >&6; } |
---|
2584 | else |
---|
2585 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2586 | $as_echo "no" >&6; } |
---|
2587 | fi |
---|
2588 | |
---|
2589 | if test "x$ac_ct_CC" = x; then |
---|
2590 | CC="" |
---|
2591 | else |
---|
2592 | case $cross_compiling:$ac_tool_warned in |
---|
2593 | yes:) |
---|
2594 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
2595 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
2596 | ac_tool_warned=yes ;; |
---|
2597 | esac |
---|
2598 | CC=$ac_ct_CC |
---|
2599 | fi |
---|
2600 | else |
---|
2601 | CC="$ac_cv_prog_CC" |
---|
2602 | fi |
---|
2603 | |
---|
2604 | if test -z "$CC"; then |
---|
2605 | if test -n "$ac_tool_prefix"; then |
---|
2606 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
---|
2607 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
---|
2608 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
2609 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
2610 | if ${ac_cv_prog_CC+:} false; then : |
---|
2611 | $as_echo_n "(cached) " >&6 |
---|
2612 | else |
---|
2613 | if test -n "$CC"; then |
---|
2614 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2615 | else |
---|
2616 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2617 | for as_dir in $PATH |
---|
2618 | do |
---|
2619 | IFS=$as_save_IFS |
---|
2620 | test -z "$as_dir" && as_dir=. |
---|
2621 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2622 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
2623 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
---|
2624 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2625 | break 2 |
---|
2626 | fi |
---|
2627 | done |
---|
2628 | done |
---|
2629 | IFS=$as_save_IFS |
---|
2630 | |
---|
2631 | fi |
---|
2632 | fi |
---|
2633 | CC=$ac_cv_prog_CC |
---|
2634 | if test -n "$CC"; then |
---|
2635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
2636 | $as_echo "$CC" >&6; } |
---|
2637 | else |
---|
2638 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2639 | $as_echo "no" >&6; } |
---|
2640 | fi |
---|
2641 | |
---|
2642 | |
---|
2643 | fi |
---|
2644 | fi |
---|
2645 | if test -z "$CC"; then |
---|
2646 | # Extract the first word of "cc", so it can be a program name with args. |
---|
2647 | set dummy cc; ac_word=$2 |
---|
2648 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
2649 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
2650 | if ${ac_cv_prog_CC+:} false; then : |
---|
2651 | $as_echo_n "(cached) " >&6 |
---|
2652 | else |
---|
2653 | if test -n "$CC"; then |
---|
2654 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2655 | else |
---|
2656 | ac_prog_rejected=no |
---|
2657 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2658 | for as_dir in $PATH |
---|
2659 | do |
---|
2660 | IFS=$as_save_IFS |
---|
2661 | test -z "$as_dir" && as_dir=. |
---|
2662 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2663 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
2664 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
---|
2665 | ac_prog_rejected=yes |
---|
2666 | continue |
---|
2667 | fi |
---|
2668 | ac_cv_prog_CC="cc" |
---|
2669 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2670 | break 2 |
---|
2671 | fi |
---|
2672 | done |
---|
2673 | done |
---|
2674 | IFS=$as_save_IFS |
---|
2675 | |
---|
2676 | if test $ac_prog_rejected = yes; then |
---|
2677 | # We found a bogon in the path, so make sure we never use it. |
---|
2678 | set dummy $ac_cv_prog_CC |
---|
2679 | shift |
---|
2680 | if test $# != 0; then |
---|
2681 | # We chose a different compiler from the bogus one. |
---|
2682 | # However, it has the same basename, so the bogon will be chosen |
---|
2683 | # first if we set CC to just the basename; use the full file name. |
---|
2684 | shift |
---|
2685 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
---|
2686 | fi |
---|
2687 | fi |
---|
2688 | fi |
---|
2689 | fi |
---|
2690 | CC=$ac_cv_prog_CC |
---|
2691 | if test -n "$CC"; then |
---|
2692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
2693 | $as_echo "$CC" >&6; } |
---|
2694 | else |
---|
2695 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2696 | $as_echo "no" >&6; } |
---|
2697 | fi |
---|
2698 | |
---|
2699 | |
---|
2700 | fi |
---|
2701 | if test -z "$CC"; then |
---|
2702 | if test -n "$ac_tool_prefix"; then |
---|
2703 | for ac_prog in cl.exe |
---|
2704 | do |
---|
2705 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
---|
2706 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
---|
2707 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
2708 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
2709 | if ${ac_cv_prog_CC+:} false; then : |
---|
2710 | $as_echo_n "(cached) " >&6 |
---|
2711 | else |
---|
2712 | if test -n "$CC"; then |
---|
2713 | ac_cv_prog_CC="$CC" # Let the user override the test. |
---|
2714 | else |
---|
2715 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2716 | for as_dir in $PATH |
---|
2717 | do |
---|
2718 | IFS=$as_save_IFS |
---|
2719 | test -z "$as_dir" && as_dir=. |
---|
2720 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2721 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
2722 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
---|
2723 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2724 | break 2 |
---|
2725 | fi |
---|
2726 | done |
---|
2727 | done |
---|
2728 | IFS=$as_save_IFS |
---|
2729 | |
---|
2730 | fi |
---|
2731 | fi |
---|
2732 | CC=$ac_cv_prog_CC |
---|
2733 | if test -n "$CC"; then |
---|
2734 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
---|
2735 | $as_echo "$CC" >&6; } |
---|
2736 | else |
---|
2737 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2738 | $as_echo "no" >&6; } |
---|
2739 | fi |
---|
2740 | |
---|
2741 | |
---|
2742 | test -n "$CC" && break |
---|
2743 | done |
---|
2744 | fi |
---|
2745 | if test -z "$CC"; then |
---|
2746 | ac_ct_CC=$CC |
---|
2747 | for ac_prog in cl.exe |
---|
2748 | do |
---|
2749 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
---|
2750 | set dummy $ac_prog; ac_word=$2 |
---|
2751 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
2752 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
2753 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
---|
2754 | $as_echo_n "(cached) " >&6 |
---|
2755 | else |
---|
2756 | if test -n "$ac_ct_CC"; then |
---|
2757 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
---|
2758 | else |
---|
2759 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
2760 | for as_dir in $PATH |
---|
2761 | do |
---|
2762 | IFS=$as_save_IFS |
---|
2763 | test -z "$as_dir" && as_dir=. |
---|
2764 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
2765 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
2766 | ac_cv_prog_ac_ct_CC="$ac_prog" |
---|
2767 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
2768 | break 2 |
---|
2769 | fi |
---|
2770 | done |
---|
2771 | done |
---|
2772 | IFS=$as_save_IFS |
---|
2773 | |
---|
2774 | fi |
---|
2775 | fi |
---|
2776 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
---|
2777 | if test -n "$ac_ct_CC"; then |
---|
2778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
---|
2779 | $as_echo "$ac_ct_CC" >&6; } |
---|
2780 | else |
---|
2781 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2782 | $as_echo "no" >&6; } |
---|
2783 | fi |
---|
2784 | |
---|
2785 | |
---|
2786 | test -n "$ac_ct_CC" && break |
---|
2787 | done |
---|
2788 | |
---|
2789 | if test "x$ac_ct_CC" = x; then |
---|
2790 | CC="" |
---|
2791 | else |
---|
2792 | case $cross_compiling:$ac_tool_warned in |
---|
2793 | yes:) |
---|
2794 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
---|
2795 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
---|
2796 | ac_tool_warned=yes ;; |
---|
2797 | esac |
---|
2798 | CC=$ac_ct_CC |
---|
2799 | fi |
---|
2800 | fi |
---|
2801 | |
---|
2802 | fi |
---|
2803 | |
---|
2804 | |
---|
2805 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
2806 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
2807 | as_fn_error $? "no acceptable C compiler found in \$PATH |
---|
2808 | See \`config.log' for more details" "$LINENO" 5; } |
---|
2809 | |
---|
2810 | # Provide some information about the compiler. |
---|
2811 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
---|
2812 | set X $ac_compile |
---|
2813 | ac_compiler=$2 |
---|
2814 | for ac_option in --version -v -V -qversion; do |
---|
2815 | { { ac_try="$ac_compiler $ac_option >&5" |
---|
2816 | case "(($ac_try" in |
---|
2817 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
2818 | *) ac_try_echo=$ac_try;; |
---|
2819 | esac |
---|
2820 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
2821 | $as_echo "$ac_try_echo"; } >&5 |
---|
2822 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
---|
2823 | ac_status=$? |
---|
2824 | if test -s conftest.err; then |
---|
2825 | sed '10a\ |
---|
2826 | ... rest of stderr output deleted ... |
---|
2827 | 10q' conftest.err >conftest.er1 |
---|
2828 | cat conftest.er1 >&5 |
---|
2829 | fi |
---|
2830 | rm -f conftest.er1 conftest.err |
---|
2831 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
2832 | test $ac_status = 0; } |
---|
2833 | done |
---|
2834 | |
---|
2835 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
2836 | /* end confdefs.h. */ |
---|
2837 | |
---|
2838 | int |
---|
2839 | main () |
---|
2840 | { |
---|
2841 | |
---|
2842 | ; |
---|
2843 | return 0; |
---|
2844 | } |
---|
2845 | _ACEOF |
---|
2846 | ac_clean_files_save=$ac_clean_files |
---|
2847 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
---|
2848 | # Try to create an executable without -o first, disregard a.out. |
---|
2849 | # It will help us diagnose broken compilers, and finding out an intuition |
---|
2850 | # of exeext. |
---|
2851 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
---|
2852 | $as_echo_n "checking whether the C compiler works... " >&6; } |
---|
2853 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
---|
2854 | |
---|
2855 | # The possible output files: |
---|
2856 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
---|
2857 | |
---|
2858 | ac_rmfiles= |
---|
2859 | for ac_file in $ac_files |
---|
2860 | do |
---|
2861 | case $ac_file in |
---|
2862 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
---|
2863 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
---|
2864 | esac |
---|
2865 | done |
---|
2866 | rm -f $ac_rmfiles |
---|
2867 | |
---|
2868 | if { { ac_try="$ac_link_default" |
---|
2869 | case "(($ac_try" in |
---|
2870 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
2871 | *) ac_try_echo=$ac_try;; |
---|
2872 | esac |
---|
2873 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
2874 | $as_echo "$ac_try_echo"; } >&5 |
---|
2875 | (eval "$ac_link_default") 2>&5 |
---|
2876 | ac_status=$? |
---|
2877 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
2878 | test $ac_status = 0; }; then : |
---|
2879 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
---|
2880 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
---|
2881 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
---|
2882 | # so that the user can short-circuit this test for compilers unknown to |
---|
2883 | # Autoconf. |
---|
2884 | for ac_file in $ac_files '' |
---|
2885 | do |
---|
2886 | test -f "$ac_file" || continue |
---|
2887 | case $ac_file in |
---|
2888 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
---|
2889 | ;; |
---|
2890 | [ab].out ) |
---|
2891 | # We found the default executable, but exeext='' is most |
---|
2892 | # certainly right. |
---|
2893 | break;; |
---|
2894 | *.* ) |
---|
2895 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
---|
2896 | then :; else |
---|
2897 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
2898 | fi |
---|
2899 | # We set ac_cv_exeext here because the later test for it is not |
---|
2900 | # safe: cross compilers may not add the suffix if given an `-o' |
---|
2901 | # argument, so we may need to know it at that point already. |
---|
2902 | # Even if this section looks crufty: it has the advantage of |
---|
2903 | # actually working. |
---|
2904 | break;; |
---|
2905 | * ) |
---|
2906 | break;; |
---|
2907 | esac |
---|
2908 | done |
---|
2909 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
---|
2910 | |
---|
2911 | else |
---|
2912 | ac_file='' |
---|
2913 | fi |
---|
2914 | if test -z "$ac_file"; then : |
---|
2915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
2916 | $as_echo "no" >&6; } |
---|
2917 | $as_echo "$as_me: failed program was:" >&5 |
---|
2918 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
2919 | |
---|
2920 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
2921 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
2922 | as_fn_error 77 "C compiler cannot create executables |
---|
2923 | See \`config.log' for more details" "$LINENO" 5; } |
---|
2924 | else |
---|
2925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
---|
2926 | $as_echo "yes" >&6; } |
---|
2927 | fi |
---|
2928 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
---|
2929 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
---|
2930 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
---|
2931 | $as_echo "$ac_file" >&6; } |
---|
2932 | ac_exeext=$ac_cv_exeext |
---|
2933 | |
---|
2934 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
---|
2935 | ac_clean_files=$ac_clean_files_save |
---|
2936 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
---|
2937 | $as_echo_n "checking for suffix of executables... " >&6; } |
---|
2938 | if { { ac_try="$ac_link" |
---|
2939 | case "(($ac_try" in |
---|
2940 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
2941 | *) ac_try_echo=$ac_try;; |
---|
2942 | esac |
---|
2943 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
2944 | $as_echo "$ac_try_echo"; } >&5 |
---|
2945 | (eval "$ac_link") 2>&5 |
---|
2946 | ac_status=$? |
---|
2947 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
2948 | test $ac_status = 0; }; then : |
---|
2949 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
---|
2950 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
---|
2951 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
---|
2952 | # `rm'. |
---|
2953 | for ac_file in conftest.exe conftest conftest.*; do |
---|
2954 | test -f "$ac_file" || continue |
---|
2955 | case $ac_file in |
---|
2956 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
---|
2957 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
---|
2958 | break;; |
---|
2959 | * ) break;; |
---|
2960 | esac |
---|
2961 | done |
---|
2962 | else |
---|
2963 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
2964 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
2965 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link |
---|
2966 | See \`config.log' for more details" "$LINENO" 5; } |
---|
2967 | fi |
---|
2968 | rm -f conftest conftest$ac_cv_exeext |
---|
2969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
---|
2970 | $as_echo "$ac_cv_exeext" >&6; } |
---|
2971 | |
---|
2972 | rm -f conftest.$ac_ext |
---|
2973 | EXEEXT=$ac_cv_exeext |
---|
2974 | ac_exeext=$EXEEXT |
---|
2975 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
2976 | /* end confdefs.h. */ |
---|
2977 | #include <stdio.h> |
---|
2978 | int |
---|
2979 | main () |
---|
2980 | { |
---|
2981 | FILE *f = fopen ("conftest.out", "w"); |
---|
2982 | return ferror (f) || fclose (f) != 0; |
---|
2983 | |
---|
2984 | ; |
---|
2985 | return 0; |
---|
2986 | } |
---|
2987 | _ACEOF |
---|
2988 | ac_clean_files="$ac_clean_files conftest.out" |
---|
2989 | # Check that the compiler produces executables we can run. If not, either |
---|
2990 | # the compiler is broken, or we cross compile. |
---|
2991 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
---|
2992 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
---|
2993 | if test "$cross_compiling" != yes; then |
---|
2994 | { { ac_try="$ac_link" |
---|
2995 | case "(($ac_try" in |
---|
2996 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
2997 | *) ac_try_echo=$ac_try;; |
---|
2998 | esac |
---|
2999 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3000 | $as_echo "$ac_try_echo"; } >&5 |
---|
3001 | (eval "$ac_link") 2>&5 |
---|
3002 | ac_status=$? |
---|
3003 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3004 | test $ac_status = 0; } |
---|
3005 | if { ac_try='./conftest$ac_cv_exeext' |
---|
3006 | { { case "(($ac_try" in |
---|
3007 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3008 | *) ac_try_echo=$ac_try;; |
---|
3009 | esac |
---|
3010 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3011 | $as_echo "$ac_try_echo"; } >&5 |
---|
3012 | (eval "$ac_try") 2>&5 |
---|
3013 | ac_status=$? |
---|
3014 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3015 | test $ac_status = 0; }; }; then |
---|
3016 | cross_compiling=no |
---|
3017 | else |
---|
3018 | if test "$cross_compiling" = maybe; then |
---|
3019 | cross_compiling=yes |
---|
3020 | else |
---|
3021 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
3022 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
3023 | as_fn_error $? "cannot run C compiled programs. |
---|
3024 | If you meant to cross compile, use \`--host'. |
---|
3025 | See \`config.log' for more details" "$LINENO" 5; } |
---|
3026 | fi |
---|
3027 | fi |
---|
3028 | fi |
---|
3029 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
---|
3030 | $as_echo "$cross_compiling" >&6; } |
---|
3031 | |
---|
3032 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
---|
3033 | ac_clean_files=$ac_clean_files_save |
---|
3034 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
---|
3035 | $as_echo_n "checking for suffix of object files... " >&6; } |
---|
3036 | if ${ac_cv_objext+:} false; then : |
---|
3037 | $as_echo_n "(cached) " >&6 |
---|
3038 | else |
---|
3039 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3040 | /* end confdefs.h. */ |
---|
3041 | |
---|
3042 | int |
---|
3043 | main () |
---|
3044 | { |
---|
3045 | |
---|
3046 | ; |
---|
3047 | return 0; |
---|
3048 | } |
---|
3049 | _ACEOF |
---|
3050 | rm -f conftest.o conftest.obj |
---|
3051 | if { { ac_try="$ac_compile" |
---|
3052 | case "(($ac_try" in |
---|
3053 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
---|
3054 | *) ac_try_echo=$ac_try;; |
---|
3055 | esac |
---|
3056 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
---|
3057 | $as_echo "$ac_try_echo"; } >&5 |
---|
3058 | (eval "$ac_compile") 2>&5 |
---|
3059 | ac_status=$? |
---|
3060 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
---|
3061 | test $ac_status = 0; }; then : |
---|
3062 | for ac_file in conftest.o conftest.obj conftest.*; do |
---|
3063 | test -f "$ac_file" || continue; |
---|
3064 | case $ac_file in |
---|
3065 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
---|
3066 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
---|
3067 | break;; |
---|
3068 | esac |
---|
3069 | done |
---|
3070 | else |
---|
3071 | $as_echo "$as_me: failed program was:" >&5 |
---|
3072 | sed 's/^/| /' conftest.$ac_ext >&5 |
---|
3073 | |
---|
3074 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
3075 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
3076 | as_fn_error $? "cannot compute suffix of object files: cannot compile |
---|
3077 | See \`config.log' for more details" "$LINENO" 5; } |
---|
3078 | fi |
---|
3079 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
---|
3080 | fi |
---|
3081 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
---|
3082 | $as_echo "$ac_cv_objext" >&6; } |
---|
3083 | OBJEXT=$ac_cv_objext |
---|
3084 | ac_objext=$OBJEXT |
---|
3085 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
---|
3086 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
---|
3087 | if ${ac_cv_c_compiler_gnu+:} false; then : |
---|
3088 | $as_echo_n "(cached) " >&6 |
---|
3089 | else |
---|
3090 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3091 | /* end confdefs.h. */ |
---|
3092 | |
---|
3093 | int |
---|
3094 | main () |
---|
3095 | { |
---|
3096 | #ifndef __GNUC__ |
---|
3097 | choke me |
---|
3098 | #endif |
---|
3099 | |
---|
3100 | ; |
---|
3101 | return 0; |
---|
3102 | } |
---|
3103 | _ACEOF |
---|
3104 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
3105 | ac_compiler_gnu=yes |
---|
3106 | else |
---|
3107 | ac_compiler_gnu=no |
---|
3108 | fi |
---|
3109 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3110 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
---|
3111 | |
---|
3112 | fi |
---|
3113 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
---|
3114 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
---|
3115 | if test $ac_compiler_gnu = yes; then |
---|
3116 | GCC=yes |
---|
3117 | else |
---|
3118 | GCC= |
---|
3119 | fi |
---|
3120 | ac_test_CFLAGS=${CFLAGS+set} |
---|
3121 | ac_save_CFLAGS=$CFLAGS |
---|
3122 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
---|
3123 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
---|
3124 | if ${ac_cv_prog_cc_g+:} false; then : |
---|
3125 | $as_echo_n "(cached) " >&6 |
---|
3126 | else |
---|
3127 | ac_save_c_werror_flag=$ac_c_werror_flag |
---|
3128 | ac_c_werror_flag=yes |
---|
3129 | ac_cv_prog_cc_g=no |
---|
3130 | CFLAGS="-g" |
---|
3131 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3132 | /* end confdefs.h. */ |
---|
3133 | |
---|
3134 | int |
---|
3135 | main () |
---|
3136 | { |
---|
3137 | |
---|
3138 | ; |
---|
3139 | return 0; |
---|
3140 | } |
---|
3141 | _ACEOF |
---|
3142 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
3143 | ac_cv_prog_cc_g=yes |
---|
3144 | else |
---|
3145 | CFLAGS="" |
---|
3146 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3147 | /* end confdefs.h. */ |
---|
3148 | |
---|
3149 | int |
---|
3150 | main () |
---|
3151 | { |
---|
3152 | |
---|
3153 | ; |
---|
3154 | return 0; |
---|
3155 | } |
---|
3156 | _ACEOF |
---|
3157 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
3158 | |
---|
3159 | else |
---|
3160 | ac_c_werror_flag=$ac_save_c_werror_flag |
---|
3161 | CFLAGS="-g" |
---|
3162 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3163 | /* end confdefs.h. */ |
---|
3164 | |
---|
3165 | int |
---|
3166 | main () |
---|
3167 | { |
---|
3168 | |
---|
3169 | ; |
---|
3170 | return 0; |
---|
3171 | } |
---|
3172 | _ACEOF |
---|
3173 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
3174 | ac_cv_prog_cc_g=yes |
---|
3175 | fi |
---|
3176 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3177 | fi |
---|
3178 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3179 | fi |
---|
3180 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3181 | ac_c_werror_flag=$ac_save_c_werror_flag |
---|
3182 | fi |
---|
3183 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
---|
3184 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
---|
3185 | if test "$ac_test_CFLAGS" = set; then |
---|
3186 | CFLAGS=$ac_save_CFLAGS |
---|
3187 | elif test $ac_cv_prog_cc_g = yes; then |
---|
3188 | if test "$GCC" = yes; then |
---|
3189 | CFLAGS="-g -O2" |
---|
3190 | else |
---|
3191 | CFLAGS="-g" |
---|
3192 | fi |
---|
3193 | else |
---|
3194 | if test "$GCC" = yes; then |
---|
3195 | CFLAGS="-O2" |
---|
3196 | else |
---|
3197 | CFLAGS= |
---|
3198 | fi |
---|
3199 | fi |
---|
3200 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
---|
3201 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
---|
3202 | if ${ac_cv_prog_cc_c89+:} false; then : |
---|
3203 | $as_echo_n "(cached) " >&6 |
---|
3204 | else |
---|
3205 | ac_cv_prog_cc_c89=no |
---|
3206 | ac_save_CC=$CC |
---|
3207 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3208 | /* end confdefs.h. */ |
---|
3209 | #include <stdarg.h> |
---|
3210 | #include <stdio.h> |
---|
3211 | #include <sys/types.h> |
---|
3212 | #include <sys/stat.h> |
---|
3213 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
---|
3214 | struct buf { int x; }; |
---|
3215 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
---|
3216 | static char *e (p, i) |
---|
3217 | char **p; |
---|
3218 | int i; |
---|
3219 | { |
---|
3220 | return p[i]; |
---|
3221 | } |
---|
3222 | static char *f (char * (*g) (char **, int), char **p, ...) |
---|
3223 | { |
---|
3224 | char *s; |
---|
3225 | va_list v; |
---|
3226 | va_start (v,p); |
---|
3227 | s = g (p, va_arg (v,int)); |
---|
3228 | va_end (v); |
---|
3229 | return s; |
---|
3230 | } |
---|
3231 | |
---|
3232 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
---|
3233 | function prototypes and stuff, but not '\xHH' hex character constants. |
---|
3234 | These don't provoke an error unfortunately, instead are silently treated |
---|
3235 | as 'x'. The following induces an error, until -std is added to get |
---|
3236 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
---|
3237 | array size at least. It's necessary to write '\x00'==0 to get something |
---|
3238 | that's true only with -std. */ |
---|
3239 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
---|
3240 | |
---|
3241 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
---|
3242 | inside strings and character constants. */ |
---|
3243 | #define FOO(x) 'x' |
---|
3244 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
---|
3245 | |
---|
3246 | int test (int i, double x); |
---|
3247 | struct s1 {int (*f) (int a);}; |
---|
3248 | struct s2 {int (*f) (double a);}; |
---|
3249 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
---|
3250 | int argc; |
---|
3251 | char **argv; |
---|
3252 | int |
---|
3253 | main () |
---|
3254 | { |
---|
3255 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
---|
3256 | ; |
---|
3257 | return 0; |
---|
3258 | } |
---|
3259 | _ACEOF |
---|
3260 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
---|
3261 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
---|
3262 | do |
---|
3263 | CC="$ac_save_CC $ac_arg" |
---|
3264 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
3265 | ac_cv_prog_cc_c89=$ac_arg |
---|
3266 | fi |
---|
3267 | rm -f core conftest.err conftest.$ac_objext |
---|
3268 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
---|
3269 | done |
---|
3270 | rm -f conftest.$ac_ext |
---|
3271 | CC=$ac_save_CC |
---|
3272 | |
---|
3273 | fi |
---|
3274 | # AC_CACHE_VAL |
---|
3275 | case "x$ac_cv_prog_cc_c89" in |
---|
3276 | x) |
---|
3277 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
---|
3278 | $as_echo "none needed" >&6; } ;; |
---|
3279 | xno) |
---|
3280 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
---|
3281 | $as_echo "unsupported" >&6; } ;; |
---|
3282 | *) |
---|
3283 | CC="$CC $ac_cv_prog_cc_c89" |
---|
3284 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
---|
3285 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
---|
3286 | esac |
---|
3287 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
---|
3288 | |
---|
3289 | fi |
---|
3290 | |
---|
3291 | ac_ext=c |
---|
3292 | ac_cpp='$CPP $CPPFLAGS' |
---|
3293 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3294 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3295 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3296 | |
---|
3297 | |
---|
3298 | |
---|
3299 | ac_ext=c |
---|
3300 | ac_cpp='$CPP $CPPFLAGS' |
---|
3301 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3302 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3303 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3304 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
---|
3305 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
---|
3306 | # On Suns, sometimes $CPP names a directory. |
---|
3307 | if test -n "$CPP" && test -d "$CPP"; then |
---|
3308 | CPP= |
---|
3309 | fi |
---|
3310 | if test -z "$CPP"; then |
---|
3311 | if ${ac_cv_prog_CPP+:} false; then : |
---|
3312 | $as_echo_n "(cached) " >&6 |
---|
3313 | else |
---|
3314 | # Double quotes because CPP needs to be expanded |
---|
3315 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
---|
3316 | do |
---|
3317 | ac_preproc_ok=false |
---|
3318 | for ac_c_preproc_warn_flag in '' yes |
---|
3319 | do |
---|
3320 | # Use a header file that comes with gcc, so configuring glibc |
---|
3321 | # with a fresh cross-compiler works. |
---|
3322 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
3323 | # <limits.h> exists even on freestanding compilers. |
---|
3324 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
3325 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
3326 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3327 | /* end confdefs.h. */ |
---|
3328 | #ifdef __STDC__ |
---|
3329 | # include <limits.h> |
---|
3330 | #else |
---|
3331 | # include <assert.h> |
---|
3332 | #endif |
---|
3333 | Syntax error |
---|
3334 | _ACEOF |
---|
3335 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
3336 | |
---|
3337 | else |
---|
3338 | # Broken: fails on valid input. |
---|
3339 | continue |
---|
3340 | fi |
---|
3341 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
3342 | |
---|
3343 | # OK, works on sane cases. Now check whether nonexistent headers |
---|
3344 | # can be detected and how. |
---|
3345 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3346 | /* end confdefs.h. */ |
---|
3347 | #include <ac_nonexistent.h> |
---|
3348 | _ACEOF |
---|
3349 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
3350 | # Broken: success on invalid input. |
---|
3351 | continue |
---|
3352 | else |
---|
3353 | # Passes both tests. |
---|
3354 | ac_preproc_ok=: |
---|
3355 | break |
---|
3356 | fi |
---|
3357 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
3358 | |
---|
3359 | done |
---|
3360 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
3361 | rm -f conftest.i conftest.err conftest.$ac_ext |
---|
3362 | if $ac_preproc_ok; then : |
---|
3363 | break |
---|
3364 | fi |
---|
3365 | |
---|
3366 | done |
---|
3367 | ac_cv_prog_CPP=$CPP |
---|
3368 | |
---|
3369 | fi |
---|
3370 | CPP=$ac_cv_prog_CPP |
---|
3371 | else |
---|
3372 | ac_cv_prog_CPP=$CPP |
---|
3373 | fi |
---|
3374 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
---|
3375 | $as_echo "$CPP" >&6; } |
---|
3376 | ac_preproc_ok=false |
---|
3377 | for ac_c_preproc_warn_flag in '' yes |
---|
3378 | do |
---|
3379 | # Use a header file that comes with gcc, so configuring glibc |
---|
3380 | # with a fresh cross-compiler works. |
---|
3381 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
---|
3382 | # <limits.h> exists even on freestanding compilers. |
---|
3383 | # On the NeXT, cc -E runs the code through the compiler's parser, |
---|
3384 | # not just through cpp. "Syntax error" is here to catch this case. |
---|
3385 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3386 | /* end confdefs.h. */ |
---|
3387 | #ifdef __STDC__ |
---|
3388 | # include <limits.h> |
---|
3389 | #else |
---|
3390 | # include <assert.h> |
---|
3391 | #endif |
---|
3392 | Syntax error |
---|
3393 | _ACEOF |
---|
3394 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
3395 | |
---|
3396 | else |
---|
3397 | # Broken: fails on valid input. |
---|
3398 | continue |
---|
3399 | fi |
---|
3400 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
3401 | |
---|
3402 | # OK, works on sane cases. Now check whether nonexistent headers |
---|
3403 | # can be detected and how. |
---|
3404 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3405 | /* end confdefs.h. */ |
---|
3406 | #include <ac_nonexistent.h> |
---|
3407 | _ACEOF |
---|
3408 | if ac_fn_c_try_cpp "$LINENO"; then : |
---|
3409 | # Broken: success on invalid input. |
---|
3410 | continue |
---|
3411 | else |
---|
3412 | # Passes both tests. |
---|
3413 | ac_preproc_ok=: |
---|
3414 | break |
---|
3415 | fi |
---|
3416 | rm -f conftest.err conftest.i conftest.$ac_ext |
---|
3417 | |
---|
3418 | done |
---|
3419 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
---|
3420 | rm -f conftest.i conftest.err conftest.$ac_ext |
---|
3421 | if $ac_preproc_ok; then : |
---|
3422 | |
---|
3423 | else |
---|
3424 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
---|
3425 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
---|
3426 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
---|
3427 | See \`config.log' for more details" "$LINENO" 5; } |
---|
3428 | fi |
---|
3429 | |
---|
3430 | ac_ext=c |
---|
3431 | ac_cpp='$CPP $CPPFLAGS' |
---|
3432 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
---|
3433 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
---|
3434 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
---|
3435 | |
---|
3436 | |
---|
3437 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
---|
3438 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
---|
3439 | if ${ac_cv_path_GREP+:} false; then : |
---|
3440 | $as_echo_n "(cached) " >&6 |
---|
3441 | else |
---|
3442 | if test -z "$GREP"; then |
---|
3443 | ac_path_GREP_found=false |
---|
3444 | # Loop through the user's path and test for each of PROGNAME-LIST |
---|
3445 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3446 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
---|
3447 | do |
---|
3448 | IFS=$as_save_IFS |
---|
3449 | test -z "$as_dir" && as_dir=. |
---|
3450 | for ac_prog in grep ggrep; do |
---|
3451 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3452 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
---|
3453 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
---|
3454 | # Check for GNU ac_path_GREP and select it if it is found. |
---|
3455 | # Check for GNU $ac_path_GREP |
---|
3456 | case `"$ac_path_GREP" --version 2>&1` in |
---|
3457 | *GNU*) |
---|
3458 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
---|
3459 | *) |
---|
3460 | ac_count=0 |
---|
3461 | $as_echo_n 0123456789 >"conftest.in" |
---|
3462 | while : |
---|
3463 | do |
---|
3464 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
---|
3465 | mv "conftest.tmp" "conftest.in" |
---|
3466 | cp "conftest.in" "conftest.nl" |
---|
3467 | $as_echo 'GREP' >> "conftest.nl" |
---|
3468 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
---|
3469 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
---|
3470 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
---|
3471 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
---|
3472 | # Best one so far, save it but keep looking for a better one |
---|
3473 | ac_cv_path_GREP="$ac_path_GREP" |
---|
3474 | ac_path_GREP_max=$ac_count |
---|
3475 | fi |
---|
3476 | # 10*(2^10) chars as input seems more than enough |
---|
3477 | test $ac_count -gt 10 && break |
---|
3478 | done |
---|
3479 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
---|
3480 | esac |
---|
3481 | |
---|
3482 | $ac_path_GREP_found && break 3 |
---|
3483 | done |
---|
3484 | done |
---|
3485 | done |
---|
3486 | IFS=$as_save_IFS |
---|
3487 | if test -z "$ac_cv_path_GREP"; then |
---|
3488 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
---|
3489 | fi |
---|
3490 | else |
---|
3491 | ac_cv_path_GREP=$GREP |
---|
3492 | fi |
---|
3493 | |
---|
3494 | fi |
---|
3495 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
---|
3496 | $as_echo "$ac_cv_path_GREP" >&6; } |
---|
3497 | GREP="$ac_cv_path_GREP" |
---|
3498 | |
---|
3499 | |
---|
3500 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
---|
3501 | $as_echo_n "checking for egrep... " >&6; } |
---|
3502 | if ${ac_cv_path_EGREP+:} false; then : |
---|
3503 | $as_echo_n "(cached) " >&6 |
---|
3504 | else |
---|
3505 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
---|
3506 | then ac_cv_path_EGREP="$GREP -E" |
---|
3507 | else |
---|
3508 | if test -z "$EGREP"; then |
---|
3509 | ac_path_EGREP_found=false |
---|
3510 | # Loop through the user's path and test for each of PROGNAME-LIST |
---|
3511 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3512 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
---|
3513 | do |
---|
3514 | IFS=$as_save_IFS |
---|
3515 | test -z "$as_dir" && as_dir=. |
---|
3516 | for ac_prog in egrep; do |
---|
3517 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3518 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
---|
3519 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
---|
3520 | # Check for GNU ac_path_EGREP and select it if it is found. |
---|
3521 | # Check for GNU $ac_path_EGREP |
---|
3522 | case `"$ac_path_EGREP" --version 2>&1` in |
---|
3523 | *GNU*) |
---|
3524 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
---|
3525 | *) |
---|
3526 | ac_count=0 |
---|
3527 | $as_echo_n 0123456789 >"conftest.in" |
---|
3528 | while : |
---|
3529 | do |
---|
3530 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
---|
3531 | mv "conftest.tmp" "conftest.in" |
---|
3532 | cp "conftest.in" "conftest.nl" |
---|
3533 | $as_echo 'EGREP' >> "conftest.nl" |
---|
3534 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
---|
3535 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
---|
3536 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
---|
3537 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
---|
3538 | # Best one so far, save it but keep looking for a better one |
---|
3539 | ac_cv_path_EGREP="$ac_path_EGREP" |
---|
3540 | ac_path_EGREP_max=$ac_count |
---|
3541 | fi |
---|
3542 | # 10*(2^10) chars as input seems more than enough |
---|
3543 | test $ac_count -gt 10 && break |
---|
3544 | done |
---|
3545 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
---|
3546 | esac |
---|
3547 | |
---|
3548 | $ac_path_EGREP_found && break 3 |
---|
3549 | done |
---|
3550 | done |
---|
3551 | done |
---|
3552 | IFS=$as_save_IFS |
---|
3553 | if test -z "$ac_cv_path_EGREP"; then |
---|
3554 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
---|
3555 | fi |
---|
3556 | else |
---|
3557 | ac_cv_path_EGREP=$EGREP |
---|
3558 | fi |
---|
3559 | |
---|
3560 | fi |
---|
3561 | fi |
---|
3562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
---|
3563 | $as_echo "$ac_cv_path_EGREP" >&6; } |
---|
3564 | EGREP="$ac_cv_path_EGREP" |
---|
3565 | |
---|
3566 | |
---|
3567 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
---|
3568 | $as_echo_n "checking for ANSI C header files... " >&6; } |
---|
3569 | if ${ac_cv_header_stdc+:} false; then : |
---|
3570 | $as_echo_n "(cached) " >&6 |
---|
3571 | else |
---|
3572 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3573 | /* end confdefs.h. */ |
---|
3574 | #include <stdlib.h> |
---|
3575 | #include <stdarg.h> |
---|
3576 | #include <string.h> |
---|
3577 | #include <float.h> |
---|
3578 | |
---|
3579 | int |
---|
3580 | main () |
---|
3581 | { |
---|
3582 | |
---|
3583 | ; |
---|
3584 | return 0; |
---|
3585 | } |
---|
3586 | _ACEOF |
---|
3587 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
3588 | ac_cv_header_stdc=yes |
---|
3589 | else |
---|
3590 | ac_cv_header_stdc=no |
---|
3591 | fi |
---|
3592 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
3593 | |
---|
3594 | if test $ac_cv_header_stdc = yes; then |
---|
3595 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
---|
3596 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3597 | /* end confdefs.h. */ |
---|
3598 | #include <string.h> |
---|
3599 | |
---|
3600 | _ACEOF |
---|
3601 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
3602 | $EGREP "memchr" >/dev/null 2>&1; then : |
---|
3603 | |
---|
3604 | else |
---|
3605 | ac_cv_header_stdc=no |
---|
3606 | fi |
---|
3607 | rm -f conftest* |
---|
3608 | |
---|
3609 | fi |
---|
3610 | |
---|
3611 | if test $ac_cv_header_stdc = yes; then |
---|
3612 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
---|
3613 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3614 | /* end confdefs.h. */ |
---|
3615 | #include <stdlib.h> |
---|
3616 | |
---|
3617 | _ACEOF |
---|
3618 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
3619 | $EGREP "free" >/dev/null 2>&1; then : |
---|
3620 | |
---|
3621 | else |
---|
3622 | ac_cv_header_stdc=no |
---|
3623 | fi |
---|
3624 | rm -f conftest* |
---|
3625 | |
---|
3626 | fi |
---|
3627 | |
---|
3628 | if test $ac_cv_header_stdc = yes; then |
---|
3629 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
---|
3630 | if test "$cross_compiling" = yes; then : |
---|
3631 | : |
---|
3632 | else |
---|
3633 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3634 | /* end confdefs.h. */ |
---|
3635 | #include <ctype.h> |
---|
3636 | #include <stdlib.h> |
---|
3637 | #if ((' ' & 0x0FF) == 0x020) |
---|
3638 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
---|
3639 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
---|
3640 | #else |
---|
3641 | # define ISLOWER(c) \ |
---|
3642 | (('a' <= (c) && (c) <= 'i') \ |
---|
3643 | || ('j' <= (c) && (c) <= 'r') \ |
---|
3644 | || ('s' <= (c) && (c) <= 'z')) |
---|
3645 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
---|
3646 | #endif |
---|
3647 | |
---|
3648 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
---|
3649 | int |
---|
3650 | main () |
---|
3651 | { |
---|
3652 | int i; |
---|
3653 | for (i = 0; i < 256; i++) |
---|
3654 | if (XOR (islower (i), ISLOWER (i)) |
---|
3655 | || toupper (i) != TOUPPER (i)) |
---|
3656 | return 2; |
---|
3657 | return 0; |
---|
3658 | } |
---|
3659 | _ACEOF |
---|
3660 | if ac_fn_c_try_run "$LINENO"; then : |
---|
3661 | |
---|
3662 | else |
---|
3663 | ac_cv_header_stdc=no |
---|
3664 | fi |
---|
3665 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
---|
3666 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
---|
3667 | fi |
---|
3668 | |
---|
3669 | fi |
---|
3670 | fi |
---|
3671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
---|
3672 | $as_echo "$ac_cv_header_stdc" >&6; } |
---|
3673 | if test $ac_cv_header_stdc = yes; then |
---|
3674 | |
---|
3675 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
---|
3676 | |
---|
3677 | fi |
---|
3678 | |
---|
3679 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
---|
3680 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
---|
3681 | inttypes.h stdint.h unistd.h |
---|
3682 | do : |
---|
3683 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
---|
3684 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
---|
3685 | " |
---|
3686 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
---|
3687 | cat >>confdefs.h <<_ACEOF |
---|
3688 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
---|
3689 | _ACEOF |
---|
3690 | |
---|
3691 | fi |
---|
3692 | |
---|
3693 | done |
---|
3694 | |
---|
3695 | |
---|
3696 | |
---|
3697 | |
---|
3698 | # Step 0.a: Enable 64 bit support? |
---|
3699 | |
---|
3700 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if 64bit support is requested" >&5 |
---|
3701 | $as_echo_n "checking if 64bit support is requested... " >&6; } |
---|
3702 | # Check whether --enable-64bit was given. |
---|
3703 | if test "${enable_64bit+set}" = set; then : |
---|
3704 | enableval=$enable_64bit; do64bit=$enableval |
---|
3705 | else |
---|
3706 | do64bit=no |
---|
3707 | fi |
---|
3708 | |
---|
3709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do64bit" >&5 |
---|
3710 | $as_echo "$do64bit" >&6; } |
---|
3711 | |
---|
3712 | # Step 0.b: Enable Solaris 64 bit VIS support? |
---|
3713 | |
---|
3714 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if 64bit Sparc VIS support is requested" >&5 |
---|
3715 | $as_echo_n "checking if 64bit Sparc VIS support is requested... " >&6; } |
---|
3716 | # Check whether --enable-64bit-vis was given. |
---|
3717 | if test "${enable_64bit_vis+set}" = set; then : |
---|
3718 | enableval=$enable_64bit_vis; do64bitVIS=$enableval |
---|
3719 | else |
---|
3720 | do64bitVIS=no |
---|
3721 | fi |
---|
3722 | |
---|
3723 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $do64bitVIS" >&5 |
---|
3724 | $as_echo "$do64bitVIS" >&6; } |
---|
3725 | |
---|
3726 | if test "$do64bitVIS" = "yes"; then |
---|
3727 | # Force 64bit on with VIS |
---|
3728 | do64bit=yes |
---|
3729 | fi |
---|
3730 | |
---|
3731 | # Step 1: set the variable "system" to hold the name and version number |
---|
3732 | # for the system. |
---|
3733 | |
---|
3734 | |
---|
3735 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking system version" >&5 |
---|
3736 | $as_echo_n "checking system version... " >&6; } |
---|
3737 | if ${tcl_cv_sys_version+:} false; then : |
---|
3738 | $as_echo_n "(cached) " >&6 |
---|
3739 | else |
---|
3740 | |
---|
3741 | if test -f /usr/lib/NextStep/software_version; then |
---|
3742 | tcl_cv_sys_version=NEXTSTEP-`awk '/3/,/3/' /usr/lib/NextStep/software_version` |
---|
3743 | else |
---|
3744 | tcl_cv_sys_version=`uname -s`-`uname -r` |
---|
3745 | if test "$?" -ne 0 ; then |
---|
3746 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: can't find uname command" >&5 |
---|
3747 | $as_echo "$as_me: WARNING: can't find uname command" >&2;} |
---|
3748 | tcl_cv_sys_version=unknown |
---|
3749 | else |
---|
3750 | # Special check for weird MP-RAS system (uname returns weird |
---|
3751 | # results, and the version is kept in special file). |
---|
3752 | |
---|
3753 | if test -r /etc/.relid -a "X`uname -n`" = "X`uname -s`" ; then |
---|
3754 | tcl_cv_sys_version=MP-RAS-`awk '{print $3}' /etc/.relid` |
---|
3755 | fi |
---|
3756 | if test "`uname -s`" = "AIX" ; then |
---|
3757 | tcl_cv_sys_version=AIX-`uname -v`.`uname -r` |
---|
3758 | fi |
---|
3759 | fi |
---|
3760 | fi |
---|
3761 | |
---|
3762 | fi |
---|
3763 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_sys_version" >&5 |
---|
3764 | $as_echo "$tcl_cv_sys_version" >&6; } |
---|
3765 | system=$tcl_cv_sys_version |
---|
3766 | |
---|
3767 | |
---|
3768 | # Step 2: check for existence of -ldl library. This is needed because |
---|
3769 | # Linux can use either -ldl or -ldld for dynamic loading. |
---|
3770 | |
---|
3771 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
---|
3772 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
---|
3773 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
---|
3774 | $as_echo_n "(cached) " >&6 |
---|
3775 | else |
---|
3776 | ac_check_lib_save_LIBS=$LIBS |
---|
3777 | LIBS="-ldl $LIBS" |
---|
3778 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3779 | /* end confdefs.h. */ |
---|
3780 | |
---|
3781 | /* Override any GCC internal prototype to avoid an error. |
---|
3782 | Use char because int might match the return type of a GCC |
---|
3783 | builtin and then its argument prototype would still apply. */ |
---|
3784 | #ifdef __cplusplus |
---|
3785 | extern "C" |
---|
3786 | #endif |
---|
3787 | char dlopen (); |
---|
3788 | int |
---|
3789 | main () |
---|
3790 | { |
---|
3791 | return dlopen (); |
---|
3792 | ; |
---|
3793 | return 0; |
---|
3794 | } |
---|
3795 | _ACEOF |
---|
3796 | if ac_fn_c_try_link "$LINENO"; then : |
---|
3797 | ac_cv_lib_dl_dlopen=yes |
---|
3798 | else |
---|
3799 | ac_cv_lib_dl_dlopen=no |
---|
3800 | fi |
---|
3801 | rm -f core conftest.err conftest.$ac_objext \ |
---|
3802 | conftest$ac_exeext conftest.$ac_ext |
---|
3803 | LIBS=$ac_check_lib_save_LIBS |
---|
3804 | fi |
---|
3805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
---|
3806 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
---|
3807 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
---|
3808 | have_dl=yes |
---|
3809 | else |
---|
3810 | have_dl=no |
---|
3811 | fi |
---|
3812 | |
---|
3813 | |
---|
3814 | # Require ranlib early so we can override it in special cases below. |
---|
3815 | |
---|
3816 | |
---|
3817 | |
---|
3818 | # Step 3: set configuration options based on system name and version. |
---|
3819 | |
---|
3820 | do64bit_ok=no |
---|
3821 | LDFLAGS_ORIG="$LDFLAGS" |
---|
3822 | TCL_EXPORT_FILE_SUFFIX="" |
---|
3823 | UNSHARED_LIB_SUFFIX="" |
---|
3824 | TCL_TRIM_DOTS='`echo ${VERSION} | tr -d .`' |
---|
3825 | ECHO_VERSION='`echo ${VERSION}`' |
---|
3826 | TCL_LIB_VERSIONS_OK=ok |
---|
3827 | CFLAGS_DEBUG=-g |
---|
3828 | CFLAGS_OPTIMIZE=-O |
---|
3829 | if test "$GCC" = "yes" ; then |
---|
3830 | CFLAGS_WARNING="-Wall -Wno-implicit-int -fno-strict-aliasing" |
---|
3831 | else |
---|
3832 | CFLAGS_WARNING="" |
---|
3833 | fi |
---|
3834 | TCL_NEEDS_EXP_FILE=0 |
---|
3835 | TCL_BUILD_EXP_FILE="" |
---|
3836 | TCL_EXP_FILE="" |
---|
3837 | # Extract the first word of "ar", so it can be a program name with args. |
---|
3838 | set dummy ar; ac_word=$2 |
---|
3839 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
---|
3840 | $as_echo_n "checking for $ac_word... " >&6; } |
---|
3841 | if ${ac_cv_prog_AR+:} false; then : |
---|
3842 | $as_echo_n "(cached) " >&6 |
---|
3843 | else |
---|
3844 | if test -n "$AR"; then |
---|
3845 | ac_cv_prog_AR="$AR" # Let the user override the test. |
---|
3846 | else |
---|
3847 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
3848 | for as_dir in $PATH |
---|
3849 | do |
---|
3850 | IFS=$as_save_IFS |
---|
3851 | test -z "$as_dir" && as_dir=. |
---|
3852 | for ac_exec_ext in '' $ac_executable_extensions; do |
---|
3853 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
---|
3854 | ac_cv_prog_AR="ar" |
---|
3855 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
---|
3856 | break 2 |
---|
3857 | fi |
---|
3858 | done |
---|
3859 | done |
---|
3860 | IFS=$as_save_IFS |
---|
3861 | |
---|
3862 | fi |
---|
3863 | fi |
---|
3864 | AR=$ac_cv_prog_AR |
---|
3865 | if test -n "$AR"; then |
---|
3866 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
---|
3867 | $as_echo "$AR" >&6; } |
---|
3868 | else |
---|
3869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
---|
3870 | $as_echo "no" >&6; } |
---|
3871 | fi |
---|
3872 | |
---|
3873 | |
---|
3874 | if test "${AR}" = "" ; then |
---|
3875 | as_fn_error $? "Required archive tool 'ar' not found on PATH." "$LINENO" 5 |
---|
3876 | fi |
---|
3877 | STLIB_LD='${AR} cr' |
---|
3878 | LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH" |
---|
3879 | PLAT_OBJS="" |
---|
3880 | PLAT_SRCS="" |
---|
3881 | case $system in |
---|
3882 | AIX-*) |
---|
3883 | if test "${TCL_THREADS}" = "1" -a "$GCC" != "yes" ; then |
---|
3884 | # AIX requires the _r compiler when gcc isn't being used |
---|
3885 | case "${CC}" in |
---|
3886 | *_r) |
---|
3887 | # ok ... |
---|
3888 | ;; |
---|
3889 | *) |
---|
3890 | CC=${CC}_r |
---|
3891 | ;; |
---|
3892 | esac |
---|
3893 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using $CC for compiling with threads" >&5 |
---|
3894 | $as_echo "Using $CC for compiling with threads" >&6; } |
---|
3895 | fi |
---|
3896 | LIBS="$LIBS -lc" |
---|
3897 | SHLIB_CFLAGS="" |
---|
3898 | # Note: need the LIBS below, otherwise Tk won't find Tcl's |
---|
3899 | # symbols when dynamically loaded into tclsh. |
---|
3900 | SHLIB_LD_LIBS='${LIBS}' |
---|
3901 | SHLIB_SUFFIX=".so" |
---|
3902 | |
---|
3903 | DL_OBJS="tclLoadDl.o" |
---|
3904 | LD_LIBRARY_PATH_VAR="LIBPATH" |
---|
3905 | |
---|
3906 | # Check to enable 64-bit flags for compiler/linker on AIX 4+ |
---|
3907 | if test "$do64bit" = "yes" -a "`uname -v`" -gt "3" ; then |
---|
3908 | if test "$GCC" = "yes" ; then |
---|
3909 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5 |
---|
3910 | $as_echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} |
---|
3911 | else |
---|
3912 | do64bit_ok=yes |
---|
3913 | CFLAGS="$CFLAGS -q64" |
---|
3914 | LDFLAGS="$LDFLAGS -q64" |
---|
3915 | RANLIB="${RANLIB} -X64" |
---|
3916 | AR="${AR} -X64" |
---|
3917 | SHLIB_LD_FLAGS="-b64" |
---|
3918 | fi |
---|
3919 | fi |
---|
3920 | |
---|
3921 | if test "`uname -m`" = "ia64" ; then |
---|
3922 | # AIX-5 uses ELF style dynamic libraries on IA-64, but not PPC |
---|
3923 | SHLIB_LD="/usr/ccs/bin/ld -G -z text" |
---|
3924 | # AIX-5 has dl* in libc.so |
---|
3925 | DL_LIBS="" |
---|
3926 | if test "$GCC" = "yes" ; then |
---|
3927 | CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' |
---|
3928 | else |
---|
3929 | CC_SEARCH_FLAGS='-R${LIB_RUNTIME_DIR}' |
---|
3930 | fi |
---|
3931 | LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' |
---|
3932 | else |
---|
3933 | if test "$GCC" = "yes" ; then |
---|
3934 | SHLIB_LD="gcc -shared" |
---|
3935 | else |
---|
3936 | SHLIB_LD="/bin/ld -bhalt:4 -bM:SRE -bE:lib.exp -H512 -T512 -bnoentry" |
---|
3937 | fi |
---|
3938 | SHLIB_LD="${TCL_SRC_DIR}/unix/ldAix ${SHLIB_LD} ${SHLIB_LD_FLAGS}" |
---|
3939 | DL_LIBS="-ldl" |
---|
3940 | CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' |
---|
3941 | LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} |
---|
3942 | TCL_NEEDS_EXP_FILE=1 |
---|
3943 | TCL_EXPORT_FILE_SUFFIX='${VERSION}\$\{DBGX\}.exp' |
---|
3944 | fi |
---|
3945 | |
---|
3946 | # AIX v<=4.1 has some different flags than 4.2+ |
---|
3947 | if test "$system" = "AIX-4.1" -o "`uname -v`" -lt "4" ; then |
---|
3948 | LIBOBJS="$LIBOBJS tclLoadAix.o" |
---|
3949 | DL_LIBS="-lld" |
---|
3950 | fi |
---|
3951 | |
---|
3952 | # On AIX <=v4 systems, libbsd.a has to be linked in to support |
---|
3953 | # non-blocking file IO. This library has to be linked in after |
---|
3954 | # the MATH_LIBS or it breaks the pow() function. The way to |
---|
3955 | # insure proper sequencing, is to add it to the tail of MATH_LIBS. |
---|
3956 | # This library also supplies gettimeofday. |
---|
3957 | # |
---|
3958 | # AIX does not have a timezone field in struct tm. When the AIX |
---|
3959 | # bsd library is used, the timezone global and the gettimeofday |
---|
3960 | # methods are to be avoided for timezone deduction instead, we |
---|
3961 | # deduce the timezone by comparing the localtime result on a |
---|
3962 | # known GMT value. |
---|
3963 | |
---|
3964 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday in -lbsd" >&5 |
---|
3965 | $as_echo_n "checking for gettimeofday in -lbsd... " >&6; } |
---|
3966 | if ${ac_cv_lib_bsd_gettimeofday+:} false; then : |
---|
3967 | $as_echo_n "(cached) " >&6 |
---|
3968 | else |
---|
3969 | ac_check_lib_save_LIBS=$LIBS |
---|
3970 | LIBS="-lbsd $LIBS" |
---|
3971 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
3972 | /* end confdefs.h. */ |
---|
3973 | |
---|
3974 | /* Override any GCC internal prototype to avoid an error. |
---|
3975 | Use char because int might match the return type of a GCC |
---|
3976 | builtin and then its argument prototype would still apply. */ |
---|
3977 | #ifdef __cplusplus |
---|
3978 | extern "C" |
---|
3979 | #endif |
---|
3980 | char gettimeofday (); |
---|
3981 | int |
---|
3982 | main () |
---|
3983 | { |
---|
3984 | return gettimeofday (); |
---|
3985 | ; |
---|
3986 | return 0; |
---|
3987 | } |
---|
3988 | _ACEOF |
---|
3989 | if ac_fn_c_try_link "$LINENO"; then : |
---|
3990 | ac_cv_lib_bsd_gettimeofday=yes |
---|
3991 | else |
---|
3992 | ac_cv_lib_bsd_gettimeofday=no |
---|
3993 | fi |
---|
3994 | rm -f core conftest.err conftest.$ac_objext \ |
---|
3995 | conftest$ac_exeext conftest.$ac_ext |
---|
3996 | LIBS=$ac_check_lib_save_LIBS |
---|
3997 | fi |
---|
3998 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gettimeofday" >&5 |
---|
3999 | $as_echo "$ac_cv_lib_bsd_gettimeofday" >&6; } |
---|
4000 | if test "x$ac_cv_lib_bsd_gettimeofday" = xyes; then : |
---|
4001 | libbsd=yes |
---|
4002 | else |
---|
4003 | libbsd=no |
---|
4004 | fi |
---|
4005 | |
---|
4006 | if test $libbsd = yes; then |
---|
4007 | MATH_LIBS="$MATH_LIBS -lbsd" |
---|
4008 | $as_echo "#define USE_DELTA_FOR_TZ 1" >>confdefs.h |
---|
4009 | |
---|
4010 | fi |
---|
4011 | ;; |
---|
4012 | BeOS*) |
---|
4013 | SHLIB_CFLAGS="-fPIC" |
---|
4014 | SHLIB_LD="${CC} -nostart" |
---|
4015 | SHLIB_LD_LIBS='${LIBS}' |
---|
4016 | SHLIB_SUFFIX=".so" |
---|
4017 | DL_OBJS="tclLoadDl.o" |
---|
4018 | DL_LIBS="-ldl" |
---|
4019 | |
---|
4020 | #----------------------------------------------------------- |
---|
4021 | # Check for inet_ntoa in -lbind, for BeOS (which also needs |
---|
4022 | # -lsocket, even if the network functions are in -lnet which |
---|
4023 | # is always linked to, for compatibility. |
---|
4024 | #----------------------------------------------------------- |
---|
4025 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa in -lbind" >&5 |
---|
4026 | $as_echo_n "checking for inet_ntoa in -lbind... " >&6; } |
---|
4027 | if ${ac_cv_lib_bind_inet_ntoa+:} false; then : |
---|
4028 | $as_echo_n "(cached) " >&6 |
---|
4029 | else |
---|
4030 | ac_check_lib_save_LIBS=$LIBS |
---|
4031 | LIBS="-lbind $LIBS" |
---|
4032 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4033 | /* end confdefs.h. */ |
---|
4034 | |
---|
4035 | /* Override any GCC internal prototype to avoid an error. |
---|
4036 | Use char because int might match the return type of a GCC |
---|
4037 | builtin and then its argument prototype would still apply. */ |
---|
4038 | #ifdef __cplusplus |
---|
4039 | extern "C" |
---|
4040 | #endif |
---|
4041 | char inet_ntoa (); |
---|
4042 | int |
---|
4043 | main () |
---|
4044 | { |
---|
4045 | return inet_ntoa (); |
---|
4046 | ; |
---|
4047 | return 0; |
---|
4048 | } |
---|
4049 | _ACEOF |
---|
4050 | if ac_fn_c_try_link "$LINENO"; then : |
---|
4051 | ac_cv_lib_bind_inet_ntoa=yes |
---|
4052 | else |
---|
4053 | ac_cv_lib_bind_inet_ntoa=no |
---|
4054 | fi |
---|
4055 | rm -f core conftest.err conftest.$ac_objext \ |
---|
4056 | conftest$ac_exeext conftest.$ac_ext |
---|
4057 | LIBS=$ac_check_lib_save_LIBS |
---|
4058 | fi |
---|
4059 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bind_inet_ntoa" >&5 |
---|
4060 | $as_echo "$ac_cv_lib_bind_inet_ntoa" >&6; } |
---|
4061 | if test "x$ac_cv_lib_bind_inet_ntoa" = xyes; then : |
---|
4062 | LIBS="$LIBS -lbind -lsocket" |
---|
4063 | fi |
---|
4064 | |
---|
4065 | ;; |
---|
4066 | BSD/OS-2.1*|BSD/OS-3*) |
---|
4067 | SHLIB_CFLAGS="" |
---|
4068 | SHLIB_LD="shlicc -r" |
---|
4069 | SHLIB_LD_LIBS='${LIBS}' |
---|
4070 | SHLIB_SUFFIX=".so" |
---|
4071 | DL_OBJS="tclLoadDl.o" |
---|
4072 | DL_LIBS="-ldl" |
---|
4073 | CC_SEARCH_FLAGS="" |
---|
4074 | LD_SEARCH_FLAGS="" |
---|
4075 | ;; |
---|
4076 | BSD/OS-4.*) |
---|
4077 | SHLIB_CFLAGS="-export-dynamic -fPIC" |
---|
4078 | SHLIB_LD="cc -shared" |
---|
4079 | SHLIB_LD_LIBS='${LIBS}' |
---|
4080 | SHLIB_SUFFIX=".so" |
---|
4081 | DL_OBJS="tclLoadDl.o" |
---|
4082 | DL_LIBS="-ldl" |
---|
4083 | LDFLAGS="$LDFLAGS -export-dynamic" |
---|
4084 | CC_SEARCH_FLAGS="" |
---|
4085 | LD_SEARCH_FLAGS="" |
---|
4086 | ;; |
---|
4087 | dgux*) |
---|
4088 | SHLIB_CFLAGS="-K PIC" |
---|
4089 | SHLIB_LD="cc -G" |
---|
4090 | SHLIB_LD_LIBS="" |
---|
4091 | SHLIB_SUFFIX=".so" |
---|
4092 | DL_OBJS="tclLoadDl.o" |
---|
4093 | DL_LIBS="-ldl" |
---|
4094 | CC_SEARCH_FLAGS="" |
---|
4095 | LD_SEARCH_FLAGS="" |
---|
4096 | ;; |
---|
4097 | HP-UX-*.11.*) |
---|
4098 | # Use updated header definitions where possible |
---|
4099 | $as_echo "#define _XOPEN_SOURCE 1" >>confdefs.h |
---|
4100 | # Use the XOPEN network library |
---|
4101 | $as_echo "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h |
---|
4102 | # Use the XOPEN network library |
---|
4103 | LIBS="$LIBS -lxnet" # Use the XOPEN network library |
---|
4104 | |
---|
4105 | if test "`uname -m`" = "ia64" ; then |
---|
4106 | SHLIB_SUFFIX=".so" |
---|
4107 | else |
---|
4108 | SHLIB_SUFFIX=".sl" |
---|
4109 | fi |
---|
4110 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
---|
4111 | $as_echo_n "checking for shl_load in -ldld... " >&6; } |
---|
4112 | if ${ac_cv_lib_dld_shl_load+:} false; then : |
---|
4113 | $as_echo_n "(cached) " >&6 |
---|
4114 | else |
---|
4115 | ac_check_lib_save_LIBS=$LIBS |
---|
4116 | LIBS="-ldld $LIBS" |
---|
4117 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4118 | /* end confdefs.h. */ |
---|
4119 | |
---|
4120 | /* Override any GCC internal prototype to avoid an error. |
---|
4121 | Use char because int might match the return type of a GCC |
---|
4122 | builtin and then its argument prototype would still apply. */ |
---|
4123 | #ifdef __cplusplus |
---|
4124 | extern "C" |
---|
4125 | #endif |
---|
4126 | char shl_load (); |
---|
4127 | int |
---|
4128 | main () |
---|
4129 | { |
---|
4130 | return shl_load (); |
---|
4131 | ; |
---|
4132 | return 0; |
---|
4133 | } |
---|
4134 | _ACEOF |
---|
4135 | if ac_fn_c_try_link "$LINENO"; then : |
---|
4136 | ac_cv_lib_dld_shl_load=yes |
---|
4137 | else |
---|
4138 | ac_cv_lib_dld_shl_load=no |
---|
4139 | fi |
---|
4140 | rm -f core conftest.err conftest.$ac_objext \ |
---|
4141 | conftest$ac_exeext conftest.$ac_ext |
---|
4142 | LIBS=$ac_check_lib_save_LIBS |
---|
4143 | fi |
---|
4144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
---|
4145 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } |
---|
4146 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : |
---|
4147 | tcl_ok=yes |
---|
4148 | else |
---|
4149 | tcl_ok=no |
---|
4150 | fi |
---|
4151 | |
---|
4152 | if test "$tcl_ok" = yes; then |
---|
4153 | SHLIB_CFLAGS="+z" |
---|
4154 | SHLIB_LD="ld -b" |
---|
4155 | SHLIB_LD_LIBS='${LIBS}' |
---|
4156 | DL_OBJS="tclLoadShl.o" |
---|
4157 | DL_LIBS="-ldld" |
---|
4158 | LDFLAGS="$LDFLAGS -Wl,-E" |
---|
4159 | CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.' |
---|
4160 | LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.' |
---|
4161 | LD_LIBRARY_PATH_VAR="SHLIB_PATH" |
---|
4162 | fi |
---|
4163 | if test "$GCC" = "yes" ; then |
---|
4164 | SHLIB_LD="gcc -shared" |
---|
4165 | SHLIB_LD_LIBS='${LIBS}' |
---|
4166 | LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} |
---|
4167 | fi |
---|
4168 | |
---|
4169 | # Users may want PA-RISC 1.1/2.0 portable code - needs HP cc |
---|
4170 | #CFLAGS="$CFLAGS +DAportable" |
---|
4171 | |
---|
4172 | # Check to enable 64-bit flags for compiler/linker |
---|
4173 | if test "$do64bit" = "yes" ; then |
---|
4174 | if test "$GCC" = "yes" ; then |
---|
4175 | hpux_arch=`${CC} -dumpmachine` |
---|
4176 | case $hpux_arch in |
---|
4177 | hppa64*) |
---|
4178 | # 64-bit gcc in use. Fix flags for GNU ld. |
---|
4179 | do64bit_ok=yes |
---|
4180 | SHLIB_LD="${CC} -shared" |
---|
4181 | SHLIB_LD_LIBS='${LIBS}' |
---|
4182 | CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' |
---|
4183 | LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} |
---|
4184 | ;; |
---|
4185 | *) |
---|
4186 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5 |
---|
4187 | $as_echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} |
---|
4188 | ;; |
---|
4189 | esac |
---|
4190 | else |
---|
4191 | do64bit_ok=yes |
---|
4192 | CFLAGS="$CFLAGS +DD64" |
---|
4193 | LDFLAGS="$LDFLAGS +DD64" |
---|
4194 | fi |
---|
4195 | fi |
---|
4196 | ;; |
---|
4197 | HP-UX-*.08.*|HP-UX-*.09.*|HP-UX-*.10.*) |
---|
4198 | SHLIB_SUFFIX=".sl" |
---|
4199 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
---|
4200 | $as_echo_n "checking for shl_load in -ldld... " >&6; } |
---|
4201 | if ${ac_cv_lib_dld_shl_load+:} false; then : |
---|
4202 | $as_echo_n "(cached) " >&6 |
---|
4203 | else |
---|
4204 | ac_check_lib_save_LIBS=$LIBS |
---|
4205 | LIBS="-ldld $LIBS" |
---|
4206 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4207 | /* end confdefs.h. */ |
---|
4208 | |
---|
4209 | /* Override any GCC internal prototype to avoid an error. |
---|
4210 | Use char because int might match the return type of a GCC |
---|
4211 | builtin and then its argument prototype would still apply. */ |
---|
4212 | #ifdef __cplusplus |
---|
4213 | extern "C" |
---|
4214 | #endif |
---|
4215 | char shl_load (); |
---|
4216 | int |
---|
4217 | main () |
---|
4218 | { |
---|
4219 | return shl_load (); |
---|
4220 | ; |
---|
4221 | return 0; |
---|
4222 | } |
---|
4223 | _ACEOF |
---|
4224 | if ac_fn_c_try_link "$LINENO"; then : |
---|
4225 | ac_cv_lib_dld_shl_load=yes |
---|
4226 | else |
---|
4227 | ac_cv_lib_dld_shl_load=no |
---|
4228 | fi |
---|
4229 | rm -f core conftest.err conftest.$ac_objext \ |
---|
4230 | conftest$ac_exeext conftest.$ac_ext |
---|
4231 | LIBS=$ac_check_lib_save_LIBS |
---|
4232 | fi |
---|
4233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
---|
4234 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } |
---|
4235 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : |
---|
4236 | tcl_ok=yes |
---|
4237 | else |
---|
4238 | tcl_ok=no |
---|
4239 | fi |
---|
4240 | |
---|
4241 | if test "$tcl_ok" = yes; then |
---|
4242 | SHLIB_CFLAGS="+z" |
---|
4243 | SHLIB_LD="ld -b" |
---|
4244 | SHLIB_LD_LIBS="" |
---|
4245 | DL_OBJS="tclLoadShl.o" |
---|
4246 | DL_LIBS="-ldld" |
---|
4247 | LDFLAGS="$LDFLAGS -Wl,-E" |
---|
4248 | CC_SEARCH_FLAGS='-Wl,+s,+b,${LIB_RUNTIME_DIR}:.' |
---|
4249 | LD_SEARCH_FLAGS='+s +b ${LIB_RUNTIME_DIR}:.' |
---|
4250 | LD_LIBRARY_PATH_VAR="SHLIB_PATH" |
---|
4251 | fi |
---|
4252 | ;; |
---|
4253 | IRIX-4.*) |
---|
4254 | SHLIB_CFLAGS="-G 0" |
---|
4255 | SHLIB_SUFFIX=".a" |
---|
4256 | SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r -G 0" |
---|
4257 | SHLIB_LD_LIBS='${LIBS}' |
---|
4258 | DL_OBJS="tclLoadAout.o" |
---|
4259 | DL_LIBS="" |
---|
4260 | LDFLAGS="$LDFLAGS -Wl,-D,08000000" |
---|
4261 | CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' |
---|
4262 | LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} |
---|
4263 | SHARED_LIB_SUFFIX='${VERSION}\$\{DBGX\}.a' |
---|
4264 | ;; |
---|
4265 | IRIX-5.*) |
---|
4266 | SHLIB_CFLAGS="" |
---|
4267 | SHLIB_LD="ld -shared -rdata_shared" |
---|
4268 | SHLIB_LD_LIBS='${LIBS}' |
---|
4269 | SHLIB_SUFFIX=".so" |
---|
4270 | DL_OBJS="tclLoadDl.o" |
---|
4271 | DL_LIBS="" |
---|
4272 | CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' |
---|
4273 | LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' |
---|
4274 | ;; |
---|
4275 | IRIX-6.*) |
---|
4276 | SHLIB_CFLAGS="" |
---|
4277 | SHLIB_LD="ld -n32 -shared -rdata_shared" |
---|
4278 | SHLIB_LD_LIBS='${LIBS}' |
---|
4279 | SHLIB_SUFFIX=".so" |
---|
4280 | DL_OBJS="tclLoadDl.o" |
---|
4281 | DL_LIBS="" |
---|
4282 | CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' |
---|
4283 | LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' |
---|
4284 | if test "$GCC" = "yes" ; then |
---|
4285 | CFLAGS="$CFLAGS -mabi=n32" |
---|
4286 | LDFLAGS="$LDFLAGS -mabi=n32" |
---|
4287 | else |
---|
4288 | case $system in |
---|
4289 | IRIX-6.3) |
---|
4290 | # Use to build 6.2 compatible binaries on 6.3. |
---|
4291 | CFLAGS="$CFLAGS -n32 -D_OLD_TERMIOS" |
---|
4292 | ;; |
---|
4293 | *) |
---|
4294 | CFLAGS="$CFLAGS -n32" |
---|
4295 | ;; |
---|
4296 | esac |
---|
4297 | LDFLAGS="$LDFLAGS -n32" |
---|
4298 | fi |
---|
4299 | ;; |
---|
4300 | IRIX64-6.*) |
---|
4301 | SHLIB_CFLAGS="" |
---|
4302 | SHLIB_LD="ld -n32 -shared -rdata_shared" |
---|
4303 | SHLIB_LD_LIBS='${LIBS}' |
---|
4304 | SHLIB_SUFFIX=".so" |
---|
4305 | DL_OBJS="tclLoadDl.o" |
---|
4306 | DL_LIBS="" |
---|
4307 | CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' |
---|
4308 | LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' |
---|
4309 | |
---|
4310 | # Check to enable 64-bit flags for compiler/linker |
---|
4311 | |
---|
4312 | if test "$do64bit" = "yes" ; then |
---|
4313 | if test "$GCC" = "yes" ; then |
---|
4314 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported by gcc" >&5 |
---|
4315 | $as_echo "$as_me: WARNING: 64bit mode not supported by gcc" >&2;} |
---|
4316 | else |
---|
4317 | do64bit_ok=yes |
---|
4318 | SHLIB_LD="ld -64 -shared -rdata_shared" |
---|
4319 | CFLAGS="$CFLAGS -64" |
---|
4320 | LDFLAGS="$LDFLAGS -64" |
---|
4321 | fi |
---|
4322 | fi |
---|
4323 | ;; |
---|
4324 | Linux*) |
---|
4325 | SHLIB_CFLAGS="-fPIC" |
---|
4326 | SHLIB_LD_LIBS='${LIBS}' |
---|
4327 | SHLIB_SUFFIX=".so" |
---|
4328 | |
---|
4329 | CFLAGS_OPTIMIZE=-O2 |
---|
4330 | # egcs-2.91.66 on Redhat Linux 6.0 generates lots of warnings |
---|
4331 | # when you inline the string and math operations. Turn this off to |
---|
4332 | # get rid of the warnings. |
---|
4333 | #CFLAGS_OPTIMIZE="${CFLAGS_OPTIMIZE} -D__NO_STRING_INLINES -D__NO_MATH_INLINES" |
---|
4334 | |
---|
4335 | if test "$have_dl" = yes; then |
---|
4336 | SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS}' |
---|
4337 | DL_OBJS="tclLoadDl.o" |
---|
4338 | DL_LIBS="-ldl" |
---|
4339 | LDFLAGS="$LDFLAGS -Wl,--export-dynamic" |
---|
4340 | CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' |
---|
4341 | LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} |
---|
4342 | else |
---|
4343 | ac_fn_c_check_header_mongrel "$LINENO" "dld.h" "ac_cv_header_dld_h" "$ac_includes_default" |
---|
4344 | if test "x$ac_cv_header_dld_h" = xyes; then : |
---|
4345 | |
---|
4346 | SHLIB_LD="ld -shared" |
---|
4347 | DL_OBJS="tclLoadDld.o" |
---|
4348 | DL_LIBS="-ldld" |
---|
4349 | CC_SEARCH_FLAGS="" |
---|
4350 | LD_SEARCH_FLAGS="" |
---|
4351 | fi |
---|
4352 | |
---|
4353 | |
---|
4354 | fi |
---|
4355 | if test "`uname -m`" = "alpha" ; then |
---|
4356 | CFLAGS="$CFLAGS -mieee" |
---|
4357 | fi |
---|
4358 | if test $do64bit = yes; then |
---|
4359 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -m64 flag" >&5 |
---|
4360 | $as_echo_n "checking if compiler accepts -m64 flag... " >&6; } |
---|
4361 | if ${tcl_cv_cc_m64+:} false; then : |
---|
4362 | $as_echo_n "(cached) " >&6 |
---|
4363 | else |
---|
4364 | |
---|
4365 | hold_cflags=$CFLAGS |
---|
4366 | CFLAGS="$CFLAGS -m64" |
---|
4367 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4368 | /* end confdefs.h. */ |
---|
4369 | |
---|
4370 | int |
---|
4371 | main () |
---|
4372 | { |
---|
4373 | |
---|
4374 | ; |
---|
4375 | return 0; |
---|
4376 | } |
---|
4377 | _ACEOF |
---|
4378 | if ac_fn_c_try_link "$LINENO"; then : |
---|
4379 | tcl_cv_cc_m64=yes |
---|
4380 | else |
---|
4381 | tcl_cv_cc_m64=no |
---|
4382 | fi |
---|
4383 | rm -f core conftest.err conftest.$ac_objext \ |
---|
4384 | conftest$ac_exeext conftest.$ac_ext |
---|
4385 | CFLAGS=$hold_cflags |
---|
4386 | fi |
---|
4387 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_m64" >&5 |
---|
4388 | $as_echo "$tcl_cv_cc_m64" >&6; } |
---|
4389 | if test $tcl_cv_cc_m64 = yes; then |
---|
4390 | CFLAGS="$CFLAGS -m64" |
---|
4391 | do64bit_ok=yes |
---|
4392 | fi |
---|
4393 | fi |
---|
4394 | |
---|
4395 | # The combo of gcc + glibc has a bug related |
---|
4396 | # to inlining of functions like strtod(). The |
---|
4397 | # -fno-builtin flag should address this problem |
---|
4398 | # but it does not work. The -fno-inline flag |
---|
4399 | # is kind of overkill but it works. |
---|
4400 | # Disable inlining only when one of the |
---|
4401 | # files in compat/*.c is being linked in. |
---|
4402 | if test x"${LIBOBJS}" != x ; then |
---|
4403 | CFLAGS="$CFLAGS -fno-inline" |
---|
4404 | fi |
---|
4405 | |
---|
4406 | # XIM peeking works under XFree86. |
---|
4407 | $as_echo "#define PEEK_XCLOSEIM 1" >>confdefs.h |
---|
4408 | |
---|
4409 | |
---|
4410 | ;; |
---|
4411 | GNU*) |
---|
4412 | SHLIB_CFLAGS="-fPIC" |
---|
4413 | SHLIB_LD_LIBS='${LIBS}' |
---|
4414 | SHLIB_SUFFIX=".so" |
---|
4415 | |
---|
4416 | if test "$have_dl" = yes; then |
---|
4417 | SHLIB_LD="${CC} -shared" |
---|
4418 | DL_OBJS="" |
---|
4419 | DL_LIBS="-ldl" |
---|
4420 | LDFLAGS="$LDFLAGS -Wl,--export-dynamic" |
---|
4421 | CC_SEARCH_FLAGS="" |
---|
4422 | LD_SEARCH_FLAGS="" |
---|
4423 | else |
---|
4424 | ac_fn_c_check_header_mongrel "$LINENO" "dld.h" "ac_cv_header_dld_h" "$ac_includes_default" |
---|
4425 | if test "x$ac_cv_header_dld_h" = xyes; then : |
---|
4426 | |
---|
4427 | SHLIB_LD="ld -shared" |
---|
4428 | DL_OBJS="" |
---|
4429 | DL_LIBS="-ldld" |
---|
4430 | CC_SEARCH_FLAGS="" |
---|
4431 | LD_SEARCH_FLAGS="" |
---|
4432 | fi |
---|
4433 | |
---|
4434 | |
---|
4435 | fi |
---|
4436 | if test "`uname -m`" = "alpha" ; then |
---|
4437 | CFLAGS="$CFLAGS -mieee" |
---|
4438 | fi |
---|
4439 | ;; |
---|
4440 | Lynx*) |
---|
4441 | SHLIB_CFLAGS="-fPIC" |
---|
4442 | SHLIB_LD_LIBS='${LIBS}' |
---|
4443 | SHLIB_SUFFIX=".so" |
---|
4444 | CFLAGS_OPTIMIZE=-02 |
---|
4445 | SHLIB_LD="${CC} -shared " |
---|
4446 | DL_OBJS="tclLoadDl.o" |
---|
4447 | DL_LIBS="-mshared -ldl" |
---|
4448 | LD_FLAGS="-Wl,--export-dynamic" |
---|
4449 | CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' |
---|
4450 | LD_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' |
---|
4451 | ;; |
---|
4452 | MP-RAS-02*) |
---|
4453 | SHLIB_CFLAGS="-K PIC" |
---|
4454 | SHLIB_LD="cc -G" |
---|
4455 | SHLIB_LD_LIBS="" |
---|
4456 | SHLIB_SUFFIX=".so" |
---|
4457 | DL_OBJS="tclLoadDl.o" |
---|
4458 | DL_LIBS="-ldl" |
---|
4459 | CC_SEARCH_FLAGS="" |
---|
4460 | LD_SEARCH_FLAGS="" |
---|
4461 | ;; |
---|
4462 | MP-RAS-*) |
---|
4463 | SHLIB_CFLAGS="-K PIC" |
---|
4464 | SHLIB_LD="cc -G" |
---|
4465 | SHLIB_LD_LIBS="" |
---|
4466 | SHLIB_SUFFIX=".so" |
---|
4467 | DL_OBJS="tclLoadDl.o" |
---|
4468 | DL_LIBS="-ldl" |
---|
4469 | LDFLAGS="$LDFLAGS -Wl,-Bexport" |
---|
4470 | CC_SEARCH_FLAGS="" |
---|
4471 | LD_SEARCH_FLAGS="" |
---|
4472 | ;; |
---|
4473 | NetBSD-*|FreeBSD-[1-2].*) |
---|
4474 | # Not available on all versions: check for include file. |
---|
4475 | ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" |
---|
4476 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : |
---|
4477 | |
---|
4478 | # NetBSD/SPARC needs -fPIC, -fpic will not do. |
---|
4479 | SHLIB_CFLAGS="-fPIC" |
---|
4480 | SHLIB_LD="ld -Bshareable -x" |
---|
4481 | SHLIB_LD_LIBS='${LIBS}' |
---|
4482 | SHLIB_SUFFIX=".so" |
---|
4483 | DL_OBJS="tclLoadDl.o" |
---|
4484 | DL_LIBS="" |
---|
4485 | CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' |
---|
4486 | LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' |
---|
4487 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF" >&5 |
---|
4488 | $as_echo_n "checking for ELF... " >&6; } |
---|
4489 | if ${tcl_cv_ld_elf+:} false; then : |
---|
4490 | $as_echo_n "(cached) " >&6 |
---|
4491 | else |
---|
4492 | |
---|
4493 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4494 | /* end confdefs.h. */ |
---|
4495 | |
---|
4496 | #ifdef __ELF__ |
---|
4497 | yes |
---|
4498 | #endif |
---|
4499 | |
---|
4500 | _ACEOF |
---|
4501 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
4502 | $EGREP "yes" >/dev/null 2>&1; then : |
---|
4503 | tcl_cv_ld_elf=yes |
---|
4504 | else |
---|
4505 | tcl_cv_ld_elf=no |
---|
4506 | fi |
---|
4507 | rm -f conftest* |
---|
4508 | |
---|
4509 | fi |
---|
4510 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_elf" >&5 |
---|
4511 | $as_echo "$tcl_cv_ld_elf" >&6; } |
---|
4512 | if test $tcl_cv_ld_elf = yes; then |
---|
4513 | SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so' |
---|
4514 | else |
---|
4515 | SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1.0' |
---|
4516 | fi |
---|
4517 | |
---|
4518 | else |
---|
4519 | |
---|
4520 | SHLIB_CFLAGS="" |
---|
4521 | SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r" |
---|
4522 | SHLIB_LD_LIBS='${LIBS}' |
---|
4523 | SHLIB_SUFFIX=".a" |
---|
4524 | DL_OBJS="tclLoadAout.o" |
---|
4525 | DL_LIBS="" |
---|
4526 | CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' |
---|
4527 | LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} |
---|
4528 | SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a' |
---|
4529 | |
---|
4530 | fi |
---|
4531 | |
---|
4532 | |
---|
4533 | |
---|
4534 | # FreeBSD doesn't handle version numbers with dots. |
---|
4535 | |
---|
4536 | UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a' |
---|
4537 | TCL_LIB_VERSIONS_OK=nodots |
---|
4538 | ;; |
---|
4539 | OpenBSD-*) |
---|
4540 | case `arch -s` in |
---|
4541 | m88k|vax) |
---|
4542 | SHLIB_CFLAGS="" |
---|
4543 | SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r" |
---|
4544 | SHLIB_LD_LIBS='${LIBS}' |
---|
4545 | SHLIB_SUFFIX=".a" |
---|
4546 | DL_OBJS="tclLoadAout.o" |
---|
4547 | DL_LIBS="" |
---|
4548 | LDFLAGS="" |
---|
4549 | CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' |
---|
4550 | LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} |
---|
4551 | SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a' |
---|
4552 | ;; |
---|
4553 | *) |
---|
4554 | # OpenBSD/SPARC[64] needs -fPIC, -fpic will not do. |
---|
4555 | case `machine` in |
---|
4556 | sparc|sparc64) |
---|
4557 | SHLIB_CFLAGS="-fPIC";; |
---|
4558 | *) |
---|
4559 | SHLIB_CFLAGS="-fpic";; |
---|
4560 | esac |
---|
4561 | SHLIB_LD="${CC} -shared ${SHLIB_CFLAGS}" |
---|
4562 | SHLIB_LD_LIBS='${LIBS}' |
---|
4563 | SHLIB_SUFFIX=".so" |
---|
4564 | DL_OBJS="tclLoadDl.o" |
---|
4565 | DL_LIBS="" |
---|
4566 | CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' |
---|
4567 | LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} |
---|
4568 | SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1.0' |
---|
4569 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF" >&5 |
---|
4570 | $as_echo_n "checking for ELF... " >&6; } |
---|
4571 | if ${tcl_cv_ld_elf+:} false; then : |
---|
4572 | $as_echo_n "(cached) " >&6 |
---|
4573 | else |
---|
4574 | |
---|
4575 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4576 | /* end confdefs.h. */ |
---|
4577 | |
---|
4578 | #ifdef __ELF__ |
---|
4579 | yes |
---|
4580 | #endif |
---|
4581 | |
---|
4582 | _ACEOF |
---|
4583 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
---|
4584 | $EGREP "yes" >/dev/null 2>&1; then : |
---|
4585 | tcl_cv_ld_elf=yes |
---|
4586 | else |
---|
4587 | tcl_cv_ld_elf=no |
---|
4588 | fi |
---|
4589 | rm -f conftest* |
---|
4590 | |
---|
4591 | fi |
---|
4592 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_elf" >&5 |
---|
4593 | $as_echo "$tcl_cv_ld_elf" >&6; } |
---|
4594 | if test $tcl_cv_ld_elf = yes; then |
---|
4595 | LDFLAGS=-Wl,-export-dynamic |
---|
4596 | else |
---|
4597 | LDFLAGS="" |
---|
4598 | fi |
---|
4599 | ;; |
---|
4600 | esac |
---|
4601 | |
---|
4602 | # OpenBSD doesn't do version numbers with dots. |
---|
4603 | UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a' |
---|
4604 | TCL_LIB_VERSIONS_OK=nodots |
---|
4605 | ;; |
---|
4606 | FreeBSD-*) |
---|
4607 | # FreeBSD 3.* and greater have ELF. |
---|
4608 | SHLIB_CFLAGS="-fPIC" |
---|
4609 | SHLIB_LD="ld -Bshareable -x" |
---|
4610 | SHLIB_LD_LIBS='${LIBS}' |
---|
4611 | SHLIB_SUFFIX=".so" |
---|
4612 | DL_OBJS="tclLoadDl.o" |
---|
4613 | DL_LIBS="" |
---|
4614 | LDFLAGS="$LDFLAGS -export-dynamic" |
---|
4615 | CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' |
---|
4616 | LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' |
---|
4617 | if test "${TCL_THREADS}" = "1" ; then |
---|
4618 | # The -pthread needs to go in the CFLAGS, not LIBS |
---|
4619 | LIBS=`echo $LIBS | sed s/-pthread//` |
---|
4620 | CFLAGS="$CFLAGS -pthread" |
---|
4621 | LDFLAGS="$LDFLAGS -pthread" |
---|
4622 | fi |
---|
4623 | case $system in |
---|
4624 | FreeBSD-3.*) |
---|
4625 | # FreeBSD-3 doesn't handle version numbers with dots. |
---|
4626 | UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a' |
---|
4627 | SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so' |
---|
4628 | TCL_LIB_VERSIONS_OK=nodots |
---|
4629 | ;; |
---|
4630 | esac |
---|
4631 | ;; |
---|
4632 | Darwin-*) |
---|
4633 | CFLAGS_OPTIMIZE="-Os" |
---|
4634 | SHLIB_CFLAGS="-fno-common" |
---|
4635 | # To avoid discrepancies between what headers configure sees during |
---|
4636 | # preprocessing tests and compiling tests, move any -isysroot and |
---|
4637 | # -mmacosx-version-min flags from CFLAGS to CPPFLAGS: |
---|
4638 | CPPFLAGS="${CPPFLAGS} `echo " ${CFLAGS}" | \ |
---|
4639 | awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \ |
---|
4640 | if ($i~/^(isysroot|mmacosx-version-min)/) print "-"$i}'`" |
---|
4641 | CFLAGS="`echo " ${CFLAGS}" | \ |
---|
4642 | awk 'BEGIN {FS=" +-";ORS=" "}; {for (i=2;i<=NF;i++) \ |
---|
4643 | if (!($i~/^(isysroot|mmacosx-version-min)/)) print "-"$i}'`" |
---|
4644 | if test $do64bit = yes; then |
---|
4645 | case `arch` in |
---|
4646 | ppc) |
---|
4647 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -arch ppc64 flag" >&5 |
---|
4648 | $as_echo_n "checking if compiler accepts -arch ppc64 flag... " >&6; } |
---|
4649 | if ${tcl_cv_cc_arch_ppc64+:} false; then : |
---|
4650 | $as_echo_n "(cached) " >&6 |
---|
4651 | else |
---|
4652 | |
---|
4653 | hold_cflags=$CFLAGS |
---|
4654 | CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5" |
---|
4655 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4656 | /* end confdefs.h. */ |
---|
4657 | |
---|
4658 | int |
---|
4659 | main () |
---|
4660 | { |
---|
4661 | |
---|
4662 | ; |
---|
4663 | return 0; |
---|
4664 | } |
---|
4665 | _ACEOF |
---|
4666 | if ac_fn_c_try_link "$LINENO"; then : |
---|
4667 | tcl_cv_cc_arch_ppc64=yes |
---|
4668 | else |
---|
4669 | tcl_cv_cc_arch_ppc64=no |
---|
4670 | fi |
---|
4671 | rm -f core conftest.err conftest.$ac_objext \ |
---|
4672 | conftest$ac_exeext conftest.$ac_ext |
---|
4673 | CFLAGS=$hold_cflags |
---|
4674 | fi |
---|
4675 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_arch_ppc64" >&5 |
---|
4676 | $as_echo "$tcl_cv_cc_arch_ppc64" >&6; } |
---|
4677 | if test $tcl_cv_cc_arch_ppc64 = yes; then |
---|
4678 | CFLAGS="$CFLAGS -arch ppc64 -mpowerpc64 -mcpu=G5" |
---|
4679 | do64bit_ok=yes |
---|
4680 | fi;; |
---|
4681 | i386) |
---|
4682 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts -arch x86_64 flag" >&5 |
---|
4683 | $as_echo_n "checking if compiler accepts -arch x86_64 flag... " >&6; } |
---|
4684 | if ${tcl_cv_cc_arch_x86_64+:} false; then : |
---|
4685 | $as_echo_n "(cached) " >&6 |
---|
4686 | else |
---|
4687 | |
---|
4688 | hold_cflags=$CFLAGS |
---|
4689 | CFLAGS="$CFLAGS -arch x86_64" |
---|
4690 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4691 | /* end confdefs.h. */ |
---|
4692 | |
---|
4693 | int |
---|
4694 | main () |
---|
4695 | { |
---|
4696 | |
---|
4697 | ; |
---|
4698 | return 0; |
---|
4699 | } |
---|
4700 | _ACEOF |
---|
4701 | if ac_fn_c_try_link "$LINENO"; then : |
---|
4702 | tcl_cv_cc_arch_x86_64=yes |
---|
4703 | else |
---|
4704 | tcl_cv_cc_arch_x86_64=no |
---|
4705 | fi |
---|
4706 | rm -f core conftest.err conftest.$ac_objext \ |
---|
4707 | conftest$ac_exeext conftest.$ac_ext |
---|
4708 | CFLAGS=$hold_cflags |
---|
4709 | fi |
---|
4710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_cc_arch_x86_64" >&5 |
---|
4711 | $as_echo "$tcl_cv_cc_arch_x86_64" >&6; } |
---|
4712 | if test $tcl_cv_cc_arch_x86_64 = yes; then |
---|
4713 | CFLAGS="$CFLAGS -arch x86_64" |
---|
4714 | do64bit_ok=yes |
---|
4715 | fi;; |
---|
4716 | *) |
---|
4717 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&5 |
---|
4718 | $as_echo "$as_me: WARNING: Don't know how enable 64-bit on architecture \`arch\`" >&2;};; |
---|
4719 | esac |
---|
4720 | else |
---|
4721 | # Check for combined 32-bit and 64-bit fat build |
---|
4722 | echo "$CFLAGS " | grep -E -q -- '-arch (ppc64|x86_64) ' && \ |
---|
4723 | echo "$CFLAGS " | grep -E -q -- '-arch (ppc|i386) ' && \ |
---|
4724 | fat_32_64=yes |
---|
4725 | fi |
---|
4726 | SHLIB_LD='${CC} -dynamiclib ${CFLAGS} ${LDFLAGS}' |
---|
4727 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ld accepts -single_module flag" >&5 |
---|
4728 | $as_echo_n "checking if ld accepts -single_module flag... " >&6; } |
---|
4729 | if ${tcl_cv_ld_single_module+:} false; then : |
---|
4730 | $as_echo_n "(cached) " >&6 |
---|
4731 | else |
---|
4732 | |
---|
4733 | hold_ldflags=$LDFLAGS |
---|
4734 | LDFLAGS="$LDFLAGS -dynamiclib -Wl,-single_module" |
---|
4735 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4736 | /* end confdefs.h. */ |
---|
4737 | |
---|
4738 | int |
---|
4739 | main () |
---|
4740 | { |
---|
4741 | int i; |
---|
4742 | ; |
---|
4743 | return 0; |
---|
4744 | } |
---|
4745 | _ACEOF |
---|
4746 | if ac_fn_c_try_link "$LINENO"; then : |
---|
4747 | tcl_cv_ld_single_module=yes |
---|
4748 | else |
---|
4749 | tcl_cv_ld_single_module=no |
---|
4750 | fi |
---|
4751 | rm -f core conftest.err conftest.$ac_objext \ |
---|
4752 | conftest$ac_exeext conftest.$ac_ext |
---|
4753 | LDFLAGS=$hold_ldflags |
---|
4754 | fi |
---|
4755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_single_module" >&5 |
---|
4756 | $as_echo "$tcl_cv_ld_single_module" >&6; } |
---|
4757 | if test $tcl_cv_ld_single_module = yes; then |
---|
4758 | SHLIB_LD="${SHLIB_LD} -Wl,-single_module" |
---|
4759 | fi |
---|
4760 | SHLIB_LD_LIBS='${LIBS}' |
---|
4761 | SHLIB_SUFFIX=".dylib" |
---|
4762 | DL_OBJS="tclLoadDyld.o" |
---|
4763 | DL_LIBS="" |
---|
4764 | # Don't use -prebind when building for Mac OS X 10.4 or later only: |
---|
4765 | test "`echo "${MACOSX_DEPLOYMENT_TARGET}" | awk -F '10\\.' '{print int($2)}'`" -lt 4 -a \ |
---|
4766 | "`echo "${CPPFLAGS}" | awk -F '-mmacosx-version-min=10\\.' '{print int($2)}'`" -lt 4 && \ |
---|
4767 | LDFLAGS="$LDFLAGS -prebind" |
---|
4768 | LDFLAGS="$LDFLAGS -headerpad_max_install_names" |
---|
4769 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ld accepts -search_paths_first flag" >&5 |
---|
4770 | $as_echo_n "checking if ld accepts -search_paths_first flag... " >&6; } |
---|
4771 | if ${tcl_cv_ld_search_paths_first+:} false; then : |
---|
4772 | $as_echo_n "(cached) " >&6 |
---|
4773 | else |
---|
4774 | |
---|
4775 | hold_ldflags=$LDFLAGS |
---|
4776 | LDFLAGS="$LDFLAGS -Wl,-search_paths_first" |
---|
4777 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4778 | /* end confdefs.h. */ |
---|
4779 | |
---|
4780 | int |
---|
4781 | main () |
---|
4782 | { |
---|
4783 | int i; |
---|
4784 | ; |
---|
4785 | return 0; |
---|
4786 | } |
---|
4787 | _ACEOF |
---|
4788 | if ac_fn_c_try_link "$LINENO"; then : |
---|
4789 | tcl_cv_ld_search_paths_first=yes |
---|
4790 | else |
---|
4791 | tcl_cv_ld_search_paths_first=no |
---|
4792 | fi |
---|
4793 | rm -f core conftest.err conftest.$ac_objext \ |
---|
4794 | conftest$ac_exeext conftest.$ac_ext |
---|
4795 | LDFLAGS=$hold_ldflags |
---|
4796 | fi |
---|
4797 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_search_paths_first" >&5 |
---|
4798 | $as_echo "$tcl_cv_ld_search_paths_first" >&6; } |
---|
4799 | if test $tcl_cv_ld_search_paths_first = yes; then |
---|
4800 | LDFLAGS="$LDFLAGS -Wl,-search_paths_first" |
---|
4801 | fi |
---|
4802 | CC_SEARCH_FLAGS="" |
---|
4803 | LD_SEARCH_FLAGS="" |
---|
4804 | LD_LIBRARY_PATH_VAR="DYLD_LIBRARY_PATH" |
---|
4805 | PLAT_OBJS=\$\(MAC\_OSX_OBJS\) |
---|
4806 | PLAT_SRCS=\$\(MAC\_OSX_SRCS\) |
---|
4807 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use CoreFoundation" >&5 |
---|
4808 | $as_echo_n "checking whether to use CoreFoundation... " >&6; } |
---|
4809 | # Check whether --enable-corefoundation was given. |
---|
4810 | if test "${enable_corefoundation+set}" = set; then : |
---|
4811 | enableval=$enable_corefoundation; tcl_corefoundation=$enableval |
---|
4812 | else |
---|
4813 | tcl_corefoundation=yes |
---|
4814 | fi |
---|
4815 | |
---|
4816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_corefoundation" >&5 |
---|
4817 | $as_echo "$tcl_corefoundation" >&6; } |
---|
4818 | if test $tcl_corefoundation = yes; then |
---|
4819 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CoreFoundation.framework" >&5 |
---|
4820 | $as_echo_n "checking for CoreFoundation.framework... " >&6; } |
---|
4821 | if ${tcl_cv_lib_corefoundation+:} false; then : |
---|
4822 | $as_echo_n "(cached) " >&6 |
---|
4823 | else |
---|
4824 | |
---|
4825 | hold_libs=$LIBS |
---|
4826 | if test "$fat_32_64" = yes; then for v in CFLAGS CPPFLAGS LDFLAGS; do |
---|
4827 | # On Tiger there is no 64-bit CF, so remove 64-bit archs |
---|
4828 | # from CFLAGS et al. while testing for presence of CF. |
---|
4829 | # 64-bit CF is disabled in tclUnixPort.h if necessary. |
---|
4830 | eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc64 / /g" -e "s/-arch x86_64 / /g"`"' |
---|
4831 | done; fi |
---|
4832 | LIBS="$LIBS -framework CoreFoundation" |
---|
4833 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4834 | /* end confdefs.h. */ |
---|
4835 | #include <CoreFoundation/CoreFoundation.h> |
---|
4836 | int |
---|
4837 | main () |
---|
4838 | { |
---|
4839 | CFBundleRef b = CFBundleGetMainBundle(); |
---|
4840 | ; |
---|
4841 | return 0; |
---|
4842 | } |
---|
4843 | _ACEOF |
---|
4844 | if ac_fn_c_try_link "$LINENO"; then : |
---|
4845 | tcl_cv_lib_corefoundation=yes |
---|
4846 | else |
---|
4847 | tcl_cv_lib_corefoundation=no |
---|
4848 | fi |
---|
4849 | rm -f core conftest.err conftest.$ac_objext \ |
---|
4850 | conftest$ac_exeext conftest.$ac_ext |
---|
4851 | if test "$fat_32_64" = yes; then for v in CFLAGS CPPFLAGS LDFLAGS; do |
---|
4852 | eval $v'="$hold_'$v'"' |
---|
4853 | done; fi; LIBS=$hold_libs |
---|
4854 | fi |
---|
4855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_lib_corefoundation" >&5 |
---|
4856 | $as_echo "$tcl_cv_lib_corefoundation" >&6; } |
---|
4857 | if test $tcl_cv_lib_corefoundation = yes; then |
---|
4858 | LIBS="$LIBS -framework CoreFoundation" |
---|
4859 | $as_echo "#define HAVE_COREFOUNDATION 1" >>confdefs.h |
---|
4860 | |
---|
4861 | else |
---|
4862 | tcl_corefoundation=no |
---|
4863 | fi |
---|
4864 | if test "$fat_32_64" = yes -a $tcl_corefoundation = yes; then |
---|
4865 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit CoreFoundation" >&5 |
---|
4866 | $as_echo_n "checking for 64-bit CoreFoundation... " >&6; } |
---|
4867 | if ${tcl_cv_lib_corefoundation_64+:} false; then : |
---|
4868 | $as_echo_n "(cached) " >&6 |
---|
4869 | else |
---|
4870 | |
---|
4871 | for v in CFLAGS CPPFLAGS LDFLAGS; do |
---|
4872 | eval 'hold_'$v'="$'$v'";'$v'="`echo "$'$v' "|sed -e "s/-arch ppc / /g" -e "s/-arch i386 / /g"`"' |
---|
4873 | done |
---|
4874 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
4875 | /* end confdefs.h. */ |
---|
4876 | #include <CoreFoundation/CoreFoundation.h> |
---|
4877 | int |
---|
4878 | main () |
---|
4879 | { |
---|
4880 | CFBundleRef b = CFBundleGetMainBundle(); |
---|
4881 | ; |
---|
4882 | return 0; |
---|
4883 | } |
---|
4884 | _ACEOF |
---|
4885 | if ac_fn_c_try_link "$LINENO"; then : |
---|
4886 | tcl_cv_lib_corefoundation_64=yes |
---|
4887 | else |
---|
4888 | tcl_cv_lib_corefoundation_64=no |
---|
4889 | fi |
---|
4890 | rm -f core conftest.err conftest.$ac_objext \ |
---|
4891 | conftest$ac_exeext conftest.$ac_ext |
---|
4892 | for v in CFLAGS CPPFLAGS LDFLAGS; do |
---|
4893 | eval $v'="$hold_'$v'"' |
---|
4894 | done |
---|
4895 | fi |
---|
4896 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_lib_corefoundation_64" >&5 |
---|
4897 | $as_echo "$tcl_cv_lib_corefoundation_64" >&6; } |
---|
4898 | if test $tcl_cv_lib_corefoundation_64 = no; then |
---|
4899 | $as_echo "#define NO_COREFOUNDATION_64 1" >>confdefs.h |
---|
4900 | |
---|
4901 | fi |
---|
4902 | fi |
---|
4903 | fi |
---|
4904 | $as_echo "#define MAC_OSX_TCL 1" >>confdefs.h |
---|
4905 | |
---|
4906 | ;; |
---|
4907 | NEXTSTEP-*) |
---|
4908 | SHLIB_CFLAGS="" |
---|
4909 | SHLIB_LD="cc -nostdlib -r" |
---|
4910 | SHLIB_LD_LIBS="" |
---|
4911 | SHLIB_SUFFIX=".so" |
---|
4912 | DL_OBJS="tclLoadNext.o" |
---|
4913 | DL_LIBS="" |
---|
4914 | CC_SEARCH_FLAGS="" |
---|
4915 | LD_SEARCH_FLAGS="" |
---|
4916 | ;; |
---|
4917 | OS/390-*) |
---|
4918 | CFLAGS_OPTIMIZE="" # Optimizer is buggy |
---|
4919 | $as_echo "#define _OE_SOCKETS 1" >>confdefs.h |
---|
4920 | # needed in sys/socket.h |
---|
4921 | ;; |
---|
4922 | OSF1-1.0|OSF1-1.1|OSF1-1.2) |
---|
4923 | # OSF/1 1.[012] from OSF, and derivatives, including Paragon OSF/1 |
---|
4924 | SHLIB_CFLAGS="" |
---|
4925 | # Hack: make package name same as library name |
---|
4926 | SHLIB_LD='ld -R -export :' |
---|
4927 | SHLIB_LD_LIBS="" |
---|
4928 | SHLIB_SUFFIX=".so" |
---|
4929 | DL_OBJS="tclLoadOSF.o" |
---|
4930 | DL_LIBS="" |
---|
4931 | CC_SEARCH_FLAGS="" |
---|
4932 | LD_SEARCH_FLAGS="" |
---|
4933 | ;; |
---|
4934 | OSF1-1.*) |
---|
4935 | # OSF/1 1.3 from OSF using ELF, and derivatives, including AD2 |
---|
4936 | SHLIB_CFLAGS="-fPIC" |
---|
4937 | if test "$SHARED_BUILD" = "1" ; then |
---|
4938 | SHLIB_LD="ld -shared" |
---|
4939 | else |
---|
4940 | SHLIB_LD="ld -non_shared" |
---|
4941 | fi |
---|
4942 | SHLIB_LD_LIBS="" |
---|
4943 | SHLIB_SUFFIX=".so" |
---|
4944 | DL_OBJS="tclLoadDl.o" |
---|
4945 | DL_LIBS="" |
---|
4946 | CC_SEARCH_FLAGS="" |
---|
4947 | LD_SEARCH_FLAGS="" |
---|
4948 | ;; |
---|
4949 | OSF1-V*) |
---|
4950 | # Digital OSF/1 |
---|
4951 | SHLIB_CFLAGS="" |
---|
4952 | if test "$SHARED_BUILD" = "1" ; then |
---|
4953 | SHLIB_LD='ld -shared -expect_unresolved "*"' |
---|
4954 | else |
---|
4955 | SHLIB_LD='ld -non_shared -expect_unresolved "*"' |
---|
4956 | fi |
---|
4957 | SHLIB_LD_LIBS="" |
---|
4958 | SHLIB_SUFFIX=".so" |
---|
4959 | DL_OBJS="tclLoadDl.o" |
---|
4960 | DL_LIBS="" |
---|
4961 | CC_SEARCH_FLAGS='-Wl,-rpath,${LIB_RUNTIME_DIR}' |
---|
4962 | LD_SEARCH_FLAGS='-rpath ${LIB_RUNTIME_DIR}' |
---|
4963 | if test "$GCC" = "yes" ; then |
---|
4964 | CFLAGS="$CFLAGS -mieee" |
---|
4965 | else |
---|
4966 | CFLAGS="$CFLAGS -DHAVE_TZSET -std1 -ieee" |
---|
4967 | fi |
---|
4968 | # see pthread_intro(3) for pthread support on osf1, k.furukawa |
---|
4969 | if test "${TCL_THREADS}" = "1" ; then |
---|
4970 | CFLAGS="$CFLAGS -DHAVE_PTHREAD_ATTR_SETSTACKSIZE" |
---|
4971 | CFLAGS="$CFLAGS -DTCL_THREAD_STACK_MIN=PTHREAD_STACK_MIN*64" |
---|
4972 | LIBS=`echo $LIBS | sed s/-lpthreads//` |
---|
4973 | if test "$GCC" = "yes" ; then |
---|
4974 | LIBS="$LIBS -lpthread -lmach -lexc" |
---|
4975 | else |
---|
4976 | CFLAGS="$CFLAGS -pthread" |
---|
4977 | LDFLAGS="$LDFLAGS -pthread" |
---|
4978 | fi |
---|
4979 | fi |
---|
4980 | |
---|
4981 | ;; |
---|
4982 | QNX-6*) |
---|
4983 | # QNX RTP |
---|
4984 | # This may work for all QNX, but it was only reported for v6. |
---|
4985 | SHLIB_CFLAGS="-fPIC" |
---|
4986 | SHLIB_LD="ld -Bshareable -x" |
---|
4987 | SHLIB_LD_LIBS="" |
---|
4988 | SHLIB_SUFFIX=".so" |
---|
4989 | DL_OBJS="tclLoadDl.o" |
---|
4990 | # dlopen is in -lc on QNX |
---|
4991 | DL_LIBS="" |
---|
4992 | CC_SEARCH_FLAGS="" |
---|
4993 | LD_SEARCH_FLAGS="" |
---|
4994 | ;; |
---|
4995 | RISCos-*) |
---|
4996 | SHLIB_CFLAGS="-G 0" |
---|
4997 | SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r -G 0" |
---|
4998 | SHLIB_LD_LIBS='${LIBS}' |
---|
4999 | SHLIB_SUFFIX=".a" |
---|
5000 | DL_OBJS="tclLoadAout.o" |
---|
5001 | DL_LIBS="" |
---|
5002 | LDFLAGS="$LDFLAGS -Wl,-D,08000000" |
---|
5003 | CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' |
---|
5004 | LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} |
---|
5005 | ;; |
---|
5006 | SCO_SV-3.2*) |
---|
5007 | # Note, dlopen is available only on SCO 3.2.5 and greater. However, |
---|
5008 | # this test works, since "uname -s" was non-standard in 3.2.4 and |
---|
5009 | # below. |
---|
5010 | if test "$GCC" = "yes" ; then |
---|
5011 | SHLIB_CFLAGS="-fPIC -melf" |
---|
5012 | LDFLAGS="$LDFLAGS -melf -Wl,-Bexport" |
---|
5013 | else |
---|
5014 | SHLIB_CFLAGS="-Kpic -belf" |
---|
5015 | LDFLAGS="$LDFLAGS -belf -Wl,-Bexport" |
---|
5016 | fi |
---|
5017 | SHLIB_LD="ld -G" |
---|
5018 | SHLIB_LD_LIBS="" |
---|
5019 | SHLIB_SUFFIX=".so" |
---|
5020 | DL_OBJS="tclLoadDl.o" |
---|
5021 | DL_LIBS="" |
---|
5022 | CC_SEARCH_FLAGS="" |
---|
5023 | LD_SEARCH_FLAGS="" |
---|
5024 | ;; |
---|
5025 | SINIX*5.4*) |
---|
5026 | SHLIB_CFLAGS="-K PIC" |
---|
5027 | SHLIB_LD="cc -G" |
---|
5028 | SHLIB_LD_LIBS="" |
---|
5029 | SHLIB_SUFFIX=".so" |
---|
5030 | DL_OBJS="tclLoadDl.o" |
---|
5031 | DL_LIBS="-ldl" |
---|
5032 | CC_SEARCH_FLAGS="" |
---|
5033 | LD_SEARCH_FLAGS="" |
---|
5034 | ;; |
---|
5035 | SunOS-4*) |
---|
5036 | SHLIB_CFLAGS="-PIC" |
---|
5037 | SHLIB_LD="ld" |
---|
5038 | SHLIB_LD_LIBS="" |
---|
5039 | SHLIB_SUFFIX=".so" |
---|
5040 | DL_OBJS="tclLoadDl.o" |
---|
5041 | DL_LIBS="-ldl" |
---|
5042 | CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' |
---|
5043 | LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} |
---|
5044 | |
---|
5045 | # SunOS can't handle version numbers with dots in them in library |
---|
5046 | # specs, like -ltcl7.5, so use -ltcl75 instead. Also, it |
---|
5047 | # requires an extra version number at the end of .so file names. |
---|
5048 | # So, the library has to have a name like libtcl75.so.1.0 |
---|
5049 | |
---|
5050 | SHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.so.1.0' |
---|
5051 | UNSHARED_LIB_SUFFIX='${TCL_TRIM_DOTS}\$\{DBGX\}.a' |
---|
5052 | TCL_LIB_VERSIONS_OK=nodots |
---|
5053 | ;; |
---|
5054 | SunOS-5.[0-6]) |
---|
5055 | # Careful to not let 5.10+ fall into this case |
---|
5056 | |
---|
5057 | # Note: If _REENTRANT isn't defined, then Solaris |
---|
5058 | # won't define thread-safe library routines. |
---|
5059 | |
---|
5060 | $as_echo "#define _REENTRANT 1" >>confdefs.h |
---|
5061 | |
---|
5062 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
---|
5063 | |
---|
5064 | |
---|
5065 | SHLIB_CFLAGS="-KPIC" |
---|
5066 | |
---|
5067 | # Note: need the LIBS below, otherwise Tk won't find Tcl's |
---|
5068 | # symbols when dynamically loaded into tclsh. |
---|
5069 | |
---|
5070 | SHLIB_LD_LIBS='${LIBS}' |
---|
5071 | SHLIB_SUFFIX=".so" |
---|
5072 | DL_OBJS="tclLoadDl.o" |
---|
5073 | DL_LIBS="-ldl" |
---|
5074 | if test "$GCC" = "yes" ; then |
---|
5075 | SHLIB_LD="$CC -shared" |
---|
5076 | CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' |
---|
5077 | LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} |
---|
5078 | else |
---|
5079 | SHLIB_LD="/usr/ccs/bin/ld -G -z text" |
---|
5080 | CC_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' |
---|
5081 | LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} |
---|
5082 | fi |
---|
5083 | ;; |
---|
5084 | SunOS-5*) |
---|
5085 | # Note: If _REENTRANT isn't defined, then Solaris |
---|
5086 | # won't define thread-safe library routines. |
---|
5087 | |
---|
5088 | $as_echo "#define _REENTRANT 1" >>confdefs.h |
---|
5089 | |
---|
5090 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h |
---|
5091 | |
---|
5092 | |
---|
5093 | SHLIB_CFLAGS="-KPIC" |
---|
5094 | |
---|
5095 | # Check to enable 64-bit flags for compiler/linker |
---|
5096 | if test "$do64bit" = "yes" ; then |
---|
5097 | arch=`isainfo` |
---|
5098 | if test "$arch" = "sparcv9 sparc" ; then |
---|
5099 | if test "$GCC" = "yes" ; then |
---|
5100 | if test "`gcc -dumpversion | awk -F. '{print $1}'`" -lt "3" ; then |
---|
5101 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&5 |
---|
5102 | $as_echo "$as_me: WARNING: 64bit mode not supported with GCC < 3.2 on $system" >&2;} |
---|
5103 | else |
---|
5104 | do64bit_ok=yes |
---|
5105 | CFLAGS="$CFLAGS -m64 -mcpu=v9" |
---|
5106 | LDFLAGS="$LDFLAGS -m64 -mcpu=v9" |
---|
5107 | SHLIB_CFLAGS="-fPIC" |
---|
5108 | fi |
---|
5109 | else |
---|
5110 | do64bit_ok=yes |
---|
5111 | if test "$do64bitVIS" = "yes" ; then |
---|
5112 | CFLAGS="$CFLAGS -xarch=v9a" |
---|
5113 | LDFLAGS="$LDFLAGS -xarch=v9a" |
---|
5114 | else |
---|
5115 | CFLAGS="$CFLAGS -xarch=v9" |
---|
5116 | LDFLAGS="$LDFLAGS -xarch=v9" |
---|
5117 | fi |
---|
5118 | # Solaris 64 uses this as well |
---|
5119 | #LD_LIBRARY_PATH_VAR="LD_LIBRARY_PATH_64" |
---|
5120 | fi |
---|
5121 | elif test "$arch" = "amd64 i386" ; then |
---|
5122 | if test "$GCC" = "yes" ; then |
---|
5123 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported with GCC on $system" >&5 |
---|
5124 | $as_echo "$as_me: WARNING: 64bit mode not supported with GCC on $system" >&2;} |
---|
5125 | else |
---|
5126 | do64bit_ok=yes |
---|
5127 | CFLAGS="$CFLAGS -xarch=amd64" |
---|
5128 | LDFLAGS="$LDFLAGS -xarch=amd64" |
---|
5129 | fi |
---|
5130 | else |
---|
5131 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit mode not supported for $arch" >&5 |
---|
5132 | $as_echo "$as_me: WARNING: 64bit mode not supported for $arch" >&2;} |
---|
5133 | fi |
---|
5134 | fi |
---|
5135 | |
---|
5136 | # Note: need the LIBS below, otherwise Tk won't find Tcl's |
---|
5137 | # symbols when dynamically loaded into tclsh. |
---|
5138 | |
---|
5139 | SHLIB_LD_LIBS='${LIBS}' |
---|
5140 | SHLIB_SUFFIX=".so" |
---|
5141 | DL_OBJS="tclLoadDl.o" |
---|
5142 | DL_LIBS="-ldl" |
---|
5143 | if test "$GCC" = "yes" ; then |
---|
5144 | SHLIB_LD="$CC -shared" |
---|
5145 | CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' |
---|
5146 | LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} |
---|
5147 | if test "$do64bit_ok" = "yes" ; then |
---|
5148 | # We need to specify -static-libgcc or we need to |
---|
5149 | # add the path to the sparv9 libgcc. |
---|
5150 | SHLIB_LD="$SHLIB_LD -m64 -mcpu=v9 -static-libgcc" |
---|
5151 | # for finding sparcv9 libgcc, get the regular libgcc |
---|
5152 | # path, remove so name and append 'sparcv9' |
---|
5153 | #v9gcclibdir="`gcc -print-file-name=libgcc_s.so` | ..." |
---|
5154 | #CC_SEARCH_FLAGS="${CC_SEARCH_FLAGS},-R,$v9gcclibdir" |
---|
5155 | fi |
---|
5156 | else |
---|
5157 | case $system in |
---|
5158 | SunOS-5.[1-9][0-9]*) |
---|
5159 | SHLIB_LD='${CC} -G -z text ${LDFLAGS}';; |
---|
5160 | *) |
---|
5161 | SHLIB_LD="/usr/ccs/bin/ld -G -z text";; |
---|
5162 | esac |
---|
5163 | CC_SEARCH_FLAGS='-Wl,-R,${LIB_RUNTIME_DIR}' |
---|
5164 | LD_SEARCH_FLAGS='-R ${LIB_RUNTIME_DIR}' |
---|
5165 | fi |
---|
5166 | ;; |
---|
5167 | ULTRIX-4.*) |
---|
5168 | SHLIB_CFLAGS="-G 0" |
---|
5169 | SHLIB_SUFFIX=".a" |
---|
5170 | SHLIB_LD="echo tclLdAout $CC \{$SHLIB_CFLAGS\} | `pwd`/tclsh -r -G 0" |
---|
5171 | SHLIB_LD_LIBS='${LIBS}' |
---|
5172 | DL_OBJS="tclLoadAout.o" |
---|
5173 | DL_LIBS="" |
---|
5174 | LDFLAGS="$LDFLAGS -Wl,-D,08000000" |
---|
5175 | CC_SEARCH_FLAGS='-L${LIB_RUNTIME_DIR}' |
---|
5176 | LD_SEARCH_FLAGS=${CC_SEARCH_FLAGS} |
---|
5177 | if test "$GCC" != "yes" ; then |
---|
5178 | CFLAGS="$CFLAGS -DHAVE_TZSET -std1" |
---|
5179 | fi |
---|
5180 | ;; |
---|
5181 | UNIX_SV* | UnixWare-5*) |
---|
5182 | SHLIB_CFLAGS="-KPIC" |
---|
5183 | SHLIB_LD="cc -G" |
---|
5184 | SHLIB_LD_LIBS="" |
---|
5185 | SHLIB_SUFFIX=".so" |
---|
5186 | DL_OBJS="tclLoadDl.o" |
---|
5187 | DL_LIBS="-ldl" |
---|
5188 | # Some UNIX_SV* systems (unixware 1.1.2 for example) have linkers |
---|
5189 | # that don't grok the -Bexport option. Test that it does. |
---|
5190 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld accepts -Bexport flag" >&5 |
---|
5191 | $as_echo_n "checking for ld accepts -Bexport flag... " >&6; } |
---|
5192 | if ${tcl_cv_ld_Bexport+:} false; then : |
---|
5193 | $as_echo_n "(cached) " >&6 |
---|
5194 | else |
---|
5195 | |
---|
5196 | hold_ldflags=$LDFLAGS |
---|
5197 | LDFLAGS="$LDFLAGS -Wl,-Bexport" |
---|
5198 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5199 | /* end confdefs.h. */ |
---|
5200 | |
---|
5201 | int |
---|
5202 | main () |
---|
5203 | { |
---|
5204 | int i; |
---|
5205 | ; |
---|
5206 | return 0; |
---|
5207 | } |
---|
5208 | _ACEOF |
---|
5209 | if ac_fn_c_try_link "$LINENO"; then : |
---|
5210 | tcl_cv_ld_Bexport=yes |
---|
5211 | else |
---|
5212 | tcl_cv_ld_Bexport=no |
---|
5213 | fi |
---|
5214 | rm -f core conftest.err conftest.$ac_objext \ |
---|
5215 | conftest$ac_exeext conftest.$ac_ext |
---|
5216 | LDFLAGS=$hold_ldflags |
---|
5217 | fi |
---|
5218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_ld_Bexport" >&5 |
---|
5219 | $as_echo "$tcl_cv_ld_Bexport" >&6; } |
---|
5220 | if test $tcl_cv_ld_Bexport = yes; then |
---|
5221 | LDFLAGS="$LDFLAGS -Wl,-Bexport" |
---|
5222 | fi |
---|
5223 | CC_SEARCH_FLAGS="" |
---|
5224 | LD_SEARCH_FLAGS="" |
---|
5225 | ;; |
---|
5226 | esac |
---|
5227 | |
---|
5228 | if test "$do64bit" = "yes" -a "$do64bit_ok" = "no" ; then |
---|
5229 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 64bit support being disabled -- don't know magic for this platform" >&5 |
---|
5230 | $as_echo "$as_me: WARNING: 64bit support being disabled -- don't know magic for this platform" >&2;} |
---|
5231 | fi |
---|
5232 | |
---|
5233 | |
---|
5234 | |
---|
5235 | |
---|
5236 | # Step 4: If pseudo-static linking is in use (see K. B. Kenny, "Dynamic |
---|
5237 | # Loading for Tcl -- What Became of It?". Proc. 2nd Tcl/Tk Workshop, |
---|
5238 | # New Orleans, LA, Computerized Processes Unlimited, 1994), then we need |
---|
5239 | # to determine which of several header files defines the a.out file |
---|
5240 | # format (a.out.h, sys/exec.h, or sys/exec_aout.h). At present, we |
---|
5241 | # support only a file format that is more or less version-7-compatible. |
---|
5242 | # In particular, |
---|
5243 | # - a.out files must begin with `struct exec'. |
---|
5244 | # - the N_TXTOFF on the `struct exec' must compute the seek address |
---|
5245 | # of the text segment |
---|
5246 | # - The `struct exec' must contain a_magic, a_text, a_data, a_bss |
---|
5247 | # and a_entry fields. |
---|
5248 | # The following compilation should succeed if and only if either sys/exec.h |
---|
5249 | # or a.out.h is usable for the purpose. |
---|
5250 | # |
---|
5251 | # Note that the modified COFF format used on MIPS Ultrix 4.x is usable; the |
---|
5252 | # `struct exec' includes a second header that contains information that |
---|
5253 | # duplicates the v7 fields that are needed. |
---|
5254 | |
---|
5255 | if test "x$DL_OBJS" = "xtclLoadAout.o" ; then |
---|
5256 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/exec.h" >&5 |
---|
5257 | $as_echo_n "checking sys/exec.h... " >&6; } |
---|
5258 | if ${tcl_cv_sysexec_h+:} false; then : |
---|
5259 | $as_echo_n "(cached) " >&6 |
---|
5260 | else |
---|
5261 | |
---|
5262 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5263 | /* end confdefs.h. */ |
---|
5264 | #include <sys/exec.h> |
---|
5265 | int |
---|
5266 | main () |
---|
5267 | { |
---|
5268 | |
---|
5269 | struct exec foo; |
---|
5270 | unsigned long seek; |
---|
5271 | int flag; |
---|
5272 | #if defined(__mips) || defined(mips) |
---|
5273 | seek = N_TXTOFF (foo.ex_f, foo.ex_o); |
---|
5274 | #else |
---|
5275 | seek = N_TXTOFF (foo); |
---|
5276 | #endif |
---|
5277 | flag = (foo.a_magic == OMAGIC); |
---|
5278 | return foo.a_text + foo.a_data + foo.a_bss + foo.a_entry; |
---|
5279 | |
---|
5280 | ; |
---|
5281 | return 0; |
---|
5282 | } |
---|
5283 | _ACEOF |
---|
5284 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
5285 | tcl_cv_sysexec_h=usable |
---|
5286 | else |
---|
5287 | tcl_cv_sysexec_h=unusable |
---|
5288 | fi |
---|
5289 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5290 | fi |
---|
5291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_sysexec_h" >&5 |
---|
5292 | $as_echo "$tcl_cv_sysexec_h" >&6; } |
---|
5293 | if test $tcl_cv_sysexec_h = usable; then |
---|
5294 | $as_echo "#define USE_SYS_EXEC_H 1" >>confdefs.h |
---|
5295 | |
---|
5296 | else |
---|
5297 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking a.out.h" >&5 |
---|
5298 | $as_echo_n "checking a.out.h... " >&6; } |
---|
5299 | if ${tcl_cv_aout_h+:} false; then : |
---|
5300 | $as_echo_n "(cached) " >&6 |
---|
5301 | else |
---|
5302 | |
---|
5303 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5304 | /* end confdefs.h. */ |
---|
5305 | #include <a.out.h> |
---|
5306 | int |
---|
5307 | main () |
---|
5308 | { |
---|
5309 | |
---|
5310 | struct exec foo; |
---|
5311 | unsigned long seek; |
---|
5312 | int flag; |
---|
5313 | #if defined(__mips) || defined(mips) |
---|
5314 | seek = N_TXTOFF (foo.ex_f, foo.ex_o); |
---|
5315 | #else |
---|
5316 | seek = N_TXTOFF (foo); |
---|
5317 | #endif |
---|
5318 | flag = (foo.a_magic == OMAGIC); |
---|
5319 | return foo.a_text + foo.a_data + foo.a_bss + foo.a_entry; |
---|
5320 | |
---|
5321 | ; |
---|
5322 | return 0; |
---|
5323 | } |
---|
5324 | _ACEOF |
---|
5325 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
5326 | tcl_cv_aout_h=usable |
---|
5327 | else |
---|
5328 | tcl_cv_aout_h=unusable |
---|
5329 | fi |
---|
5330 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5331 | fi |
---|
5332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_aout_h" >&5 |
---|
5333 | $as_echo "$tcl_cv_aout_h" >&6; } |
---|
5334 | if test $tcl_cv_aout_h = usable; then |
---|
5335 | $as_echo "#define USE_A_OUT_H 1" >>confdefs.h |
---|
5336 | |
---|
5337 | else |
---|
5338 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking sys/exec_aout.h" >&5 |
---|
5339 | $as_echo_n "checking sys/exec_aout.h... " >&6; } |
---|
5340 | if ${tcl_cv_sysexecaout_h+:} false; then : |
---|
5341 | $as_echo_n "(cached) " >&6 |
---|
5342 | else |
---|
5343 | |
---|
5344 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
---|
5345 | /* end confdefs.h. */ |
---|
5346 | #include <sys/exec_aout.h> |
---|
5347 | int |
---|
5348 | main () |
---|
5349 | { |
---|
5350 | |
---|
5351 | struct exec foo; |
---|
5352 | unsigned long seek; |
---|
5353 | int flag; |
---|
5354 | #if defined(__mips) || defined(mips) |
---|
5355 | seek = N_TXTOFF (foo.ex_f, foo.ex_o); |
---|
5356 | #else |
---|
5357 | seek = N_TXTOFF (foo); |
---|
5358 | #endif |
---|
5359 | flag = (foo.a_midmag == OMAGIC); |
---|
5360 | return foo.a_text + foo.a_data + foo.a_bss + foo.a_entry; |
---|
5361 | |
---|
5362 | ; |
---|
5363 | return 0; |
---|
5364 | } |
---|
5365 | _ACEOF |
---|
5366 | if ac_fn_c_try_compile "$LINENO"; then : |
---|
5367 | tcl_cv_sysexecaout_h=usable |
---|
5368 | else |
---|
5369 | tcl_cv_sysexecaout_h=unusable |
---|
5370 | fi |
---|
5371 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
---|
5372 | fi |
---|
5373 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tcl_cv_sysexecaout_h" >&5 |
---|
5374 | $as_echo "$tcl_cv_sysexecaout_h" >&6; } |
---|
5375 | if test $tcl_cv_sysexecaout_h = usable; then |
---|
5376 | $as_echo "#define USE_SYS_EXEC_AOUT_H 1" >>confdefs.h |
---|
5377 | |
---|
5378 | else |
---|
5379 | DL_OBJS="" |
---|
5380 | fi |
---|
5381 | fi |
---|
5382 | fi |
---|
5383 | fi |
---|
5384 | |
---|
5385 | # Step 5: disable dynamic loading if requested via a command-line switch. |
---|
5386 | |
---|
5387 | # Check whether --enable-load was given. |
---|
5388 | if test "${enable_load+set}" = set; then : |
---|
5389 | enableval=$enable_load; tcl_ok=$enableval |
---|
5390 | else |
---|
5391 | tcl_ok=yes |
---|
5392 | fi |
---|
5393 | |
---|
5394 | if test "$tcl_ok" = "no"; then |
---|
5395 | DL_OBJS="" |
---|
5396 | fi |
---|
5397 | |
---|
5398 | if test "x$DL_OBJS" != "x" ; then |
---|
5399 | BUILD_DLTEST="\$(DLTEST_TARGETS)" |
---|
5400 | else |
---|
5401 | echo "Can't figure out how to do dynamic loading or shared libraries" |
---|
5402 | echo "on this system." |
---|
5403 | SHLIB_CFLAGS="" |
---|
5404 | SHLIB_LD="" |
---|
5405 | SHLIB_SUFFIX="" |
---|
5406 | DL_OBJS="tclLoadNone.o" |
---|
5407 | DL_LIBS="" |
---|
5408 | LDFLAGS="$LDFLAGS_ORIG" |
---|
5409 | CC_SEARCH_FLAGS="" |
---|
5410 | LD_SEARCH_FLAGS="" |
---|
5411 | BUILD_DLTEST="" |
---|
5412 | fi |
---|
5413 | |
---|
5414 | # If we're running gcc, then change the C flags for compiling shared |
---|
5415 | # libraries to the right flags for gcc, instead of those for the |
---|
5416 | # standard manufacturer compiler. |
---|
5417 | |
---|
5418 | if test "$DL_OBJS" != "tclLoadNone.o" ; then |
---|
5419 | if test "$GCC" = "yes" ; then |
---|
5420 | case $system in |
---|
5421 | AIX-*) |
---|
5422 | ;; |
---|
5423 | BSD/OS*) |
---|
5424 | ;; |
---|
5425 | IRIX*) |
---|
5426 | ;; |
---|
5427 | NetBSD-*|FreeBSD-*|OpenBSD-*) |
---|
5428 | ;; |
---|
5429 | Darwin-*) |
---|
5430 | ;; |
---|
5431 | RISCos-*) |
---|
5432 | ;; |
---|
5433 | SCO_SV-3.2*) |
---|
5434 | ;; |
---|
5435 | ULTRIX-4.*) |
---|
5436 | ;; |
---|
5437 | *) |
---|
5438 | SHLIB_CFLAGS="-fPIC" |
---|
5439 | ;; |
---|
5440 | esac |
---|
5441 | fi |
---|
5442 | fi |
---|
5443 | |
---|
5444 | if test "$SHARED_LIB_SUFFIX" = "" ; then |
---|
5445 | SHARED_LIB_SUFFIX='${VERSION}\$\{DBGX\}${SHLIB_SUFFIX}' |
---|
5446 | fi |
---|
5447 | if test "$UNSHARED_LIB_SUFFIX" = "" ; then |
---|
5448 | UNSHARED_LIB_SUFFIX='${VERSION}\$\{DBGX\}.a' |
---|
5449 | fi |
---|
5450 | |
---|
5451 | if test "${SHARED_BUILD}" = "1" && test "${SHLIB_SUFFIX}" != "" ; then |
---|
5452 | LIB_SUFFIX=${SHARED_LIB_SUFFIX} |
---|
5453 | MAKE_LIB='${SHLIB_LD} -o $@ ${OBJS} ${SHLIB_LD_LIBS} ${TCL_SHLIB_LD_EXTRAS} ${TK_SHLIB_LD_EXTRAS} ${LD_SEARCH_FLAGS}' |
---|
5454 | INSTALL_LIB='$(INSTALL_LIBRARY) $(LIB_FILE) $(LIB_INSTALL_DIR)/$(LIB_FILE)' |
---|
5455 | else |
---|
5456 | LIB_SUFFIX=${UNSHARED_LIB_SUFFIX} |
---|
5457 | |
---|
5458 | if test "$RANLIB" = "" ; then |
---|
5459 | MAKE_LIB='$(STLIB_LD) $@ ${OBJS}' |
---|
5460 | INSTALL_LIB='$(INSTALL_LIBRARY) $(LIB_FILE) $(LIB_INSTALL_DIR)/$(LIB_FILE)' |
---|
5461 | else |
---|
5462 | MAKE_LIB='${STLIB_LD} $@ ${OBJS} ; ${RANLIB} $@' |
---|
5463 | INSTALL_LIB='$(INSTALL_LIBRARY) $(LIB_FILE) $(LIB_INSTALL_DIR)/$(LIB_FILE) ; (cd $(LIB_INSTALL_DIR) ; $(RANLIB) $(LIB_FILE))' |
---|
5464 | fi |
---|
5465 | |
---|
5466 | fi |
---|
5467 | |
---|
5468 | |
---|
5469 | # Stub lib does not depend on shared/static configuration |
---|
5470 | if test "$RANLIB" = "" ; then |
---|
5471 | MAKE_STUB_LIB='${STLIB_LD} $@ ${STUB_LIB_OBJS}' |
---|
5472 | INSTALL_STUB_LIB='$(INSTALL_LIBRARY) $(STUB_LIB_FILE) $(LIB_INSTALL_DIR)/$(STUB_LIB_FILE)' |
---|
5473 | else |
---|
5474 | MAKE_STUB_LIB='${STLIB_LD} $@ ${STUB_LIB_OBJS} ; ${RANLIB} $@' |
---|
5475 | INSTALL_STUB_LIB='$(INSTALL_LIBRARY) $(STUB_LIB_FILE) $(LIB_INSTALL_DIR)/$(STUB_LIB_FILE) ; (cd $(LIB_INSTALL_DIR) ; $(RANLIB) $(STUB_LIB_FILE))' |
---|
5476 | fi |
---|
5477 | |
---|
5478 | |
---|
5479 | |
---|
5480 | |
---|
5481 | |
---|
5482 | |
---|
5483 | |
---|
5484 | |
---|
5485 | |
---|
5486 | |
---|
5487 | |
---|
5488 | |
---|
5489 | |
---|
5490 | |
---|
5491 | |
---|
5492 | |
---|
5493 | |
---|
5494 | |
---|
5495 | |
---|
5496 | |
---|
5497 | |
---|
5498 | |
---|
5499 | |
---|
5500 | |
---|
5501 | |
---|
5502 | |
---|
5503 | |
---|
5504 | |
---|
5505 | |
---|
5506 | |
---|
5507 | |
---|
5508 | |
---|
5509 | |
---|
5510 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to build libraries" >&5 |
---|
5511 | $as_echo_n "checking how to build libraries... " >&6; } |
---|
5512 | # Check whether --enable-shared was given. |
---|
5513 | if test "${enable_shared+set}" = set; then : |
---|
5514 | enableval=$enable_shared; tcl_ok=$enableval |
---|
5515 | else |
---|
5516 | tcl_ok=yes |
---|
5517 | fi |
---|
5518 | |
---|
5519 | |
---|
5520 | if test "${enable_shared+set}" = set; then |
---|
5521 | enableval="$enable_shared" |
---|
5522 | tcl_ok=$enableval |
---|
5523 | else |
---|
5524 | tcl_ok=yes |
---|
5525 | fi |
---|
5526 | |
---|
5527 | if test "$tcl_ok" = "yes" ; then |
---|
5528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: shared" >&5 |
---|
5529 | $as_echo "shared" >&6; } |
---|
5530 | SHARED_BUILD=1 |
---|
5531 | else |
---|
5532 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5 |
---|
5533 | $as_echo "static" >&6; } |
---|
5534 | SHARED_BUILD=0 |
---|
5535 | $as_echo "#define STATIC_BUILD 1" >>confdefs.h |
---|
5536 | |
---|
5537 | fi |
---|
5538 | |
---|
5539 | |
---|
5540 | |
---|
5541 | |
---|
5542 | |
---|
5543 | |
---|
5544 | |
---|
5545 | |
---|
5546 | |
---|
5547 | |
---|
5548 | gui_with_tcl="" |
---|
5549 | |
---|
5550 | make_command="" |
---|
5551 | for m in "$MAKE" make gmake gnumake ; do |
---|
5552 | if test "x${m}" != "x" ; then |
---|
5553 | if ( sh -c "$m --version" 2>/dev/null | grep GNU >/dev/null ) ; then |
---|
5554 | make_command=$m; break; |
---|
5555 | fi |
---|
5556 | fi |
---|
5557 | done |
---|
5558 | if test "x${make_command}" = "x" ; then |
---|
5559 | as_fn_error $? "Requires GNU make. You can specify a version with \$MAKE" "$LINENO" 5 |
---|
5560 | fi |
---|
5561 | MAKE=${make_command} |
---|
5562 | |
---|
5563 | |
---|
5564 | # Check whether --enable-gui was given. |
---|
5565 | if test "${enable_gui+set}" = set; then : |
---|
5566 | enableval=$enable_gui; |
---|
5567 | else |
---|
5568 | enable_gui=yes |
---|
5569 | fi |
---|
5570 | |
---|
5571 | |
---|
5572 | ENABLE_GUI= |
---|
5573 | if test "$enable_gui" != "no" ; then |
---|
5574 | ENABLE_GUI="yes" |
---|
5575 | fi |
---|
5576 | |
---|
5577 | |
---|
5578 | with_tclsh="yes" |
---|
5579 | |
---|
5580 | # Check whether --with-tclsh was given. |
---|
5581 | if test "${with_tclsh+set}" = set; then : |
---|
5582 | withval=$with_tclsh; |
---|
5583 | else |
---|
5584 | with_tclsh=yes |
---|
5585 | fi |
---|
5586 | |
---|
5587 | |
---|
5588 | TCLSH= |
---|
5589 | # ----------------------------------------------------------------------- |
---|
5590 | # |
---|
5591 | # Find the Tcl build configuration file "tclConfig.sh" |
---|
5592 | # |
---|
5593 | # ----------------------------------------------------------------------- |
---|
5594 | |
---|
5595 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tclConfig.sh" >&5 |
---|
5596 | $as_echo_n "checking for tclConfig.sh... " >&6; } |
---|
5597 | tcl_config_sh="" |
---|
5598 | if test "x$gui_with_tcl" != "x" ; then |
---|
5599 | |
---|
5600 | # Verify that a tclConfig.sh file exists in the directory specified |
---|
5601 | # by --with-tcl. |
---|
5602 | |
---|
5603 | for dir in \ |
---|
5604 | $gui_with_tcl |
---|
5605 | do |
---|
5606 | if test -r "$dir/tclConfig.sh" ; then |
---|
5607 | tcl_config_sh="$dir/tclConfig.sh" |
---|
5608 | break |
---|
5609 | elif test -r "$dir/lib/tclConfig.sh" ; then |
---|
5610 | tcl_config_sh="$dir/lib/tclConfig.sh" |
---|
5611 | break |
---|
5612 | fi |
---|
5613 | done |
---|
5614 | else |
---|
5615 | |
---|
5616 | # Otherwise, search for Tcl configuration file. |
---|
5617 | |
---|
5618 | # 1. Search previously named locations. |
---|
5619 | |
---|
5620 | for dir in \ |
---|
5621 | $prefix \ |
---|
5622 | $exec_prefix \ |
---|
5623 | $gui_cv_tcl_lib |
---|
5624 | do |
---|
5625 | if test -r "$dir/tclConfig.sh" ; then |
---|
5626 | tcl_config_sh="$dir/tclConfig.sh" |
---|
5627 | break |
---|
5628 | elif test -r "$dir/lib/tclConfig.sh" ; then |
---|
5629 | tcl_config_sh="$dir/lib/tclConfig.sh" |
---|
5630 | break |
---|
5631 | fi |
---|
5632 | done |
---|
5633 | fi |
---|
5634 | |
---|
5635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${tcl_config_sh}" >&5 |
---|
5636 | $as_echo "${tcl_config_sh}" >&6; } |
---|
5637 | |
---|
5638 | if test "x$tcl_config_sh" = "x" ; then |
---|
5639 | echo "can't find Tcl configuration script \"tclConfig.sh\"" |
---|
5640 | exit 1 |
---|
5641 | fi |
---|
5642 | . ${tcl_config_sh} |
---|
5643 | TCL_INC_SPEC="$TCL_INCLUDE_SPEC" |
---|
5644 | |
---|
5645 | case $target in |
---|
5646 | *-*-cygwin*|*-*-mingw*) |
---|
5647 | gui_platform="win" |
---|
5648 | TCLSH=${TCL_PREFIX}/bin/tclsh${TCL_MAJOR_VERSION}${TCL_MINOR_VERSION} |
---|
5649 | ;; |
---|
5650 | *-*-darwin*) |
---|
5651 | gui_platform="macosx" |
---|
5652 | TCLSH=${TCL_PREFIX}/bin/tclsh${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION} |
---|
5653 | ;; |
---|
5654 | *) |
---|
5655 | blt_platform="unix" |
---|
5656 | TCLSH=${TCL_PREFIX}/bin/tclsh${TCL_MAJOR_VERSION}.${TCL_MINOR_VERSION} |
---|
5657 | ;; |
---|
5658 | esac |
---|
5659 | |
---|
5660 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${TCLSH}" >&5 |
---|
5661 | $as_echo "${TCLSH}" >&6; } |
---|
5662 | |
---|
5663 | |
---|
5664 | |
---|
5665 | |
---|
5666 | |
---|
5667 | |
---|
5668 | if test -f "${exec_prefix}/lib/tclConfig.sh" ; then |
---|
5669 | . ${exec_prefix}/lib/tclConfig.sh |
---|
5670 | fi |
---|
5671 | if test -f "${exec_prefix}/lib/tclConfig.sh" ; then |
---|
5672 | . ${exec_prefix}/lib/tkConfig.sh |
---|
5673 | fi |
---|
5674 | |
---|
5675 | |
---|
5676 | |
---|
5677 | ac_config_files="$ac_config_files Makefile pkgIndex.tcl apps/Makefile apps/about apps/encodedata apps/rappture apps/rappture-csh.env apps/rappture.env apps/rappture.use apps/rerun apps/simsim apps/xmldiff scripts/Makefile src/Makefile" |
---|
5678 | |
---|
5679 | cat >confcache <<\_ACEOF |
---|
5680 | # This file is a shell script that caches the results of configure |
---|
5681 | # tests run on this system so they can be shared between configure |
---|
5682 | # scripts and configure runs, see configure's option --config-cache. |
---|
5683 | # It is not useful on other systems. If it contains results you don't |
---|
5684 | # want to keep, you may remove or edit it. |
---|
5685 | # |
---|
5686 | # config.status only pays attention to the cache file if you give it |
---|
5687 | # the --recheck option to rerun configure. |
---|
5688 | # |
---|
5689 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
---|
5690 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
---|
5691 | # following values. |
---|
5692 | |
---|
5693 | _ACEOF |
---|
5694 | |
---|
5695 | # The following way of writing the cache mishandles newlines in values, |
---|
5696 | # but we know of no workaround that is simple, portable, and efficient. |
---|
5697 | # So, we kill variables containing newlines. |
---|
5698 | # Ultrix sh set writes to stderr and can't be redirected directly, |
---|
5699 | # and sets the high bit in the cache file unless we assign to the vars. |
---|
5700 | ( |
---|
5701 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
---|
5702 | eval ac_val=\$$ac_var |
---|
5703 | case $ac_val in #( |
---|
5704 | *${as_nl}*) |
---|
5705 | case $ac_var in #( |
---|
5706 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
---|
5707 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
---|
5708 | esac |
---|
5709 | case $ac_var in #( |
---|
5710 | _ | IFS | as_nl) ;; #( |
---|
5711 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
---|
5712 | *) { eval $ac_var=; unset $ac_var;} ;; |
---|
5713 | esac ;; |
---|
5714 | esac |
---|
5715 | done |
---|
5716 | |
---|
5717 | (set) 2>&1 | |
---|
5718 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
---|
5719 | *${as_nl}ac_space=\ *) |
---|
5720 | # `set' does not quote correctly, so add quotes: double-quote |
---|
5721 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
---|
5722 | sed -n \ |
---|
5723 | "s/'/'\\\\''/g; |
---|
5724 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
---|
5725 | ;; #( |
---|
5726 | *) |
---|
5727 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
---|
5728 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
---|
5729 | ;; |
---|
5730 | esac | |
---|
5731 | sort |
---|
5732 | ) | |
---|
5733 | sed ' |
---|
5734 | /^ac_cv_env_/b end |
---|
5735 | t clear |
---|
5736 | :clear |
---|
5737 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
---|
5738 | t end |
---|
5739 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
---|
5740 | :end' >>confcache |
---|
5741 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
---|
5742 | if test -w "$cache_file"; then |
---|
5743 | if test "x$cache_file" != "x/dev/null"; then |
---|
5744 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
---|
5745 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
---|
5746 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
---|
5747 | cat confcache >"$cache_file" |
---|
5748 | else |
---|
5749 | case $cache_file in #( |
---|
5750 | */* | ?:*) |
---|
5751 | mv -f confcache "$cache_file"$$ && |
---|
5752 | mv -f "$cache_file"$$ "$cache_file" ;; #( |
---|
5753 | *) |
---|
5754 | mv -f confcache "$cache_file" ;; |
---|
5755 | esac |
---|
5756 | fi |
---|
5757 | fi |
---|
5758 | else |
---|
5759 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
---|
5760 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
---|
5761 | fi |
---|
5762 | fi |
---|
5763 | rm -f confcache |
---|
5764 | |
---|
5765 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
---|
5766 | # Let make expand exec_prefix. |
---|
5767 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
---|
5768 | |
---|
5769 | # Transform confdefs.h into DEFS. |
---|
5770 | # Protect against shell expansion while executing Makefile rules. |
---|
5771 | # Protect against Makefile macro expansion. |
---|
5772 | # |
---|
5773 | # If the first sed substitution is executed (which looks for macros that |
---|
5774 | # take arguments), then branch to the quote section. Otherwise, |
---|
5775 | # look for a macro that doesn't take arguments. |
---|
5776 | ac_script=' |
---|
5777 | :mline |
---|
5778 | /\\$/{ |
---|
5779 | N |
---|
5780 | s,\\\n,, |
---|
5781 | b mline |
---|
5782 | } |
---|
5783 | t clear |
---|
5784 | :clear |
---|
5785 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g |
---|
5786 | t quote |
---|
5787 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g |
---|
5788 | t quote |
---|
5789 | b any |
---|
5790 | :quote |
---|
5791 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g |
---|
5792 | s/\[/\\&/g |
---|
5793 | s/\]/\\&/g |
---|
5794 | s/\$/$$/g |
---|
5795 | H |
---|
5796 | :any |
---|
5797 | ${ |
---|
5798 | g |
---|
5799 | s/^\n// |
---|
5800 | s/\n/ /g |
---|
5801 | p |
---|
5802 | } |
---|
5803 | ' |
---|
5804 | DEFS=`sed -n "$ac_script" confdefs.h` |
---|
5805 | |
---|
5806 | |
---|
5807 | ac_libobjs= |
---|
5808 | ac_ltlibobjs= |
---|
5809 | U= |
---|
5810 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
---|
5811 | # 1. Remove the extension, and $U if already installed. |
---|
5812 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
---|
5813 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
---|
5814 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
---|
5815 | # will be set to the directory where LIBOBJS objects are built. |
---|
5816 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
---|
5817 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
---|
5818 | done |
---|
5819 | LIBOBJS=$ac_libobjs |
---|
5820 | |
---|
5821 | LTLIBOBJS=$ac_ltlibobjs |
---|
5822 | |
---|
5823 | |
---|
5824 | |
---|
5825 | : "${CONFIG_STATUS=./config.status}" |
---|
5826 | ac_write_fail=0 |
---|
5827 | ac_clean_files_save=$ac_clean_files |
---|
5828 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
---|
5829 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
---|
5830 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
---|
5831 | as_write_fail=0 |
---|
5832 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
---|
5833 | #! $SHELL |
---|
5834 | # Generated by $as_me. |
---|
5835 | # Run this file to recreate the current configuration. |
---|
5836 | # Compiler output produced by configure, useful for debugging |
---|
5837 | # configure, is in config.log if it exists. |
---|
5838 | |
---|
5839 | debug=false |
---|
5840 | ac_cs_recheck=false |
---|
5841 | ac_cs_silent=false |
---|
5842 | |
---|
5843 | SHELL=\${CONFIG_SHELL-$SHELL} |
---|
5844 | export SHELL |
---|
5845 | _ASEOF |
---|
5846 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
---|
5847 | ## -------------------- ## |
---|
5848 | ## M4sh Initialization. ## |
---|
5849 | ## -------------------- ## |
---|
5850 | |
---|
5851 | # Be more Bourne compatible |
---|
5852 | DUALCASE=1; export DUALCASE # for MKS sh |
---|
5853 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
---|
5854 | emulate sh |
---|
5855 | NULLCMD=: |
---|
5856 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
---|
5857 | # is contrary to our usage. Disable this feature. |
---|
5858 | alias -g '${1+"$@"}'='"$@"' |
---|
5859 | setopt NO_GLOB_SUBST |
---|
5860 | else |
---|
5861 | case `(set -o) 2>/dev/null` in #( |
---|
5862 | *posix*) : |
---|
5863 | set -o posix ;; #( |
---|
5864 | *) : |
---|
5865 | ;; |
---|
5866 | esac |
---|
5867 | fi |
---|
5868 | |
---|
5869 | |
---|
5870 | as_nl=' |
---|
5871 | ' |
---|
5872 | export as_nl |
---|
5873 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
---|
5874 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
---|
5875 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
---|
5876 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
---|
5877 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
---|
5878 | # but without wasting forks for bash or zsh. |
---|
5879 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
---|
5880 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
---|
5881 | as_echo='print -r --' |
---|
5882 | as_echo_n='print -rn --' |
---|
5883 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
---|
5884 | as_echo='printf %s\n' |
---|
5885 | as_echo_n='printf %s' |
---|
5886 | else |
---|
5887 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
---|
5888 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
---|
5889 | as_echo_n='/usr/ucb/echo -n' |
---|
5890 | else |
---|
5891 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
---|
5892 | as_echo_n_body='eval |
---|
5893 | arg=$1; |
---|
5894 | case $arg in #( |
---|
5895 | *"$as_nl"*) |
---|
5896 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
---|
5897 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
---|
5898 | esac; |
---|
5899 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
---|
5900 | ' |
---|
5901 | export as_echo_n_body |
---|
5902 | as_echo_n='sh -c $as_echo_n_body as_echo' |
---|
5903 | fi |
---|
5904 | export as_echo_body |
---|
5905 | as_echo='sh -c $as_echo_body as_echo' |
---|
5906 | fi |
---|
5907 | |
---|
5908 | # The user is always right. |
---|
5909 | if test "${PATH_SEPARATOR+set}" != set; then |
---|
5910 | PATH_SEPARATOR=: |
---|
5911 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
---|
5912 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
---|
5913 | PATH_SEPARATOR=';' |
---|
5914 | } |
---|
5915 | fi |
---|
5916 | |
---|
5917 | |
---|
5918 | # IFS |
---|
5919 | # We need space, tab and new line, in precisely that order. Quoting is |
---|
5920 | # there to prevent editors from complaining about space-tab. |
---|
5921 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
---|
5922 | # splitting by setting IFS to empty value.) |
---|
5923 | IFS=" "" $as_nl" |
---|
5924 | |
---|
5925 | # Find who we are. Look in the path if we contain no directory separator. |
---|
5926 | as_myself= |
---|
5927 | case $0 in #(( |
---|
5928 | *[\\/]* ) as_myself=$0 ;; |
---|
5929 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
---|
5930 | for as_dir in $PATH |
---|
5931 | do |
---|
5932 | IFS=$as_save_IFS |
---|
5933 | test -z "$as_dir" && as_dir=. |
---|
5934 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
---|
5935 | done |
---|
5936 | IFS=$as_save_IFS |
---|
5937 | |
---|
5938 | ;; |
---|
5939 | esac |
---|
5940 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
---|
5941 | # in which case we are not to be found in the path. |
---|
5942 | if test "x$as_myself" = x; then |
---|
5943 | as_myself=$0 |
---|
5944 | fi |
---|
5945 | if test ! -f "$as_myself"; then |
---|
5946 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
---|
5947 | exit 1 |
---|
5948 | fi |
---|
5949 | |
---|
5950 | # Unset variables that we do not need and which cause bugs (e.g. in |
---|
5951 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
---|
5952 | # suppresses any "Segmentation fault" message there. '((' could |
---|
5953 | # trigger a bug in pdksh 5.2.14. |
---|
5954 | for as_var in BASH_ENV ENV MAIL MAILPATH |
---|
5955 | do eval test x\${$as_var+set} = xset \ |
---|
5956 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
---|
5957 | done |
---|
5958 | PS1='$ ' |
---|
5959 | PS2='> ' |
---|
5960 | PS4='+ ' |
---|
5961 | |
---|
5962 | # NLS nuisances. |
---|
5963 | LC_ALL=C |
---|
5964 | export LC_ALL |
---|
5965 | LANGUAGE=C |
---|
5966 | export LANGUAGE |
---|
5967 | |
---|
5968 | # CDPATH. |
---|
5969 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
---|
5970 | |
---|
5971 | |
---|
5972 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
---|
5973 | # ---------------------------------------- |
---|
5974 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
---|
5975 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
---|
5976 | # script with STATUS, using 1 if that was 0. |
---|
5977 | as_fn_error () |
---|
5978 | { |
---|
5979 | as_status=$1; test $as_status -eq 0 && as_status=1 |
---|
5980 | if test "$4"; then |
---|
5981 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
---|
5982 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 |
---|
5983 | fi |
---|
5984 | $as_echo "$as_me: error: $2" >&2 |
---|
5985 | as_fn_exit $as_status |
---|
5986 | } # as_fn_error |
---|
5987 | |
---|
5988 | |
---|
5989 | # as_fn_set_status STATUS |
---|
5990 | # ----------------------- |
---|
5991 | # Set $? to STATUS, without forking. |
---|
5992 | as_fn_set_status () |
---|
5993 | { |
---|
5994 | return $1 |
---|
5995 | } # as_fn_set_status |
---|
5996 | |
---|
5997 | # as_fn_exit STATUS |
---|
5998 | # ----------------- |
---|
5999 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
---|
6000 | as_fn_exit () |
---|
6001 | { |
---|
6002 | set +e |
---|
6003 | as_fn_set_status $1 |
---|
6004 | exit $1 |
---|
6005 | } # as_fn_exit |
---|
6006 | |
---|
6007 | # as_fn_unset VAR |
---|
6008 | # --------------- |
---|
6009 | # Portably unset VAR. |
---|
6010 | as_fn_unset () |
---|
6011 | { |
---|
6012 | { eval $1=; unset $1;} |
---|
6013 | } |
---|
6014 | as_unset=as_fn_unset |
---|
6015 | # as_fn_append VAR VALUE |
---|
6016 | # ---------------------- |
---|
6017 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
---|
6018 | # advantage of any shell optimizations that allow amortized linear growth over |
---|
6019 | # repeated appends, instead of the typical quadratic growth present in naive |
---|
6020 | # implementations. |
---|
6021 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
---|
6022 | eval 'as_fn_append () |
---|
6023 | { |
---|
6024 | eval $1+=\$2 |
---|
6025 | }' |
---|
6026 | else |
---|
6027 | as_fn_append () |
---|
6028 | { |
---|
6029 | eval $1=\$$1\$2 |
---|
6030 | } |
---|
6031 | fi # as_fn_append |
---|
6032 | |
---|
6033 | # as_fn_arith ARG... |
---|
6034 | # ------------------ |
---|
6035 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
---|
6036 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
---|
6037 | # must be portable across $(()) and expr. |
---|
6038 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
---|
6039 | eval 'as_fn_arith () |
---|
6040 | { |
---|
6041 | as_val=$(( $* )) |
---|
6042 | }' |
---|
6043 | else |
---|
6044 | as_fn_arith () |
---|
6045 | { |
---|
6046 | as_val=`expr "$@" || test $? -eq 1` |
---|
6047 | } |
---|
6048 | fi # as_fn_arith |
---|
6049 | |
---|
6050 | |
---|
6051 | if expr a : '\(a\)' >/dev/null 2>&1 && |
---|
6052 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
---|
6053 | as_expr=expr |
---|
6054 | else |
---|
6055 | as_expr=false |
---|
6056 | fi |
---|
6057 | |
---|
6058 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
---|
6059 | as_basename=basename |
---|
6060 | else |
---|
6061 | as_basename=false |
---|
6062 | fi |
---|
6063 | |
---|
6064 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
---|
6065 | as_dirname=dirname |
---|
6066 | else |
---|
6067 | as_dirname=false |
---|
6068 | fi |
---|
6069 | |
---|
6070 | as_me=`$as_basename -- "$0" || |
---|
6071 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
---|
6072 | X"$0" : 'X\(//\)$' \| \ |
---|
6073 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
---|
6074 | $as_echo X/"$0" | |
---|
6075 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
---|
6076 | s//\1/ |
---|
6077 | q |
---|
6078 | } |
---|
6079 | /^X\/\(\/\/\)$/{ |
---|
6080 | s//\1/ |
---|
6081 | q |
---|
6082 | } |
---|
6083 | /^X\/\(\/\).*/{ |
---|
6084 | s//\1/ |
---|
6085 | q |
---|
6086 | } |
---|
6087 | s/.*/./; q'` |
---|
6088 | |
---|
6089 | # Avoid depending upon Character Ranges. |
---|
6090 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
---|
6091 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
---|
6092 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
---|
6093 | as_cr_digits='0123456789' |
---|
6094 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
---|
6095 | |
---|
6096 | ECHO_C= ECHO_N= ECHO_T= |
---|
6097 | case `echo -n x` in #((((( |
---|
6098 | -n*) |
---|
6099 | case `echo 'xy\c'` in |
---|
6100 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
---|
6101 | xy) ECHO_C='\c';; |
---|
6102 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
---|
6103 | ECHO_T=' ';; |
---|
6104 | esac;; |
---|
6105 | *) |
---|
6106 | ECHO_N='-n';; |
---|
6107 | esac |
---|
6108 | |
---|
6109 | rm -f conf$$ conf$$.exe conf$$.file |
---|
6110 | if test -d conf$$.dir; then |
---|
6111 | rm -f conf$$.dir/conf$$.file |
---|
6112 | else |
---|
6113 | rm -f conf$$.dir |
---|
6114 | mkdir conf$$.dir 2>/dev/null |
---|
6115 | fi |
---|
6116 | if (echo >conf$$.file) 2>/dev/null; then |
---|
6117 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
---|
6118 | as_ln_s='ln -s' |
---|
6119 | # ... but there are two gotchas: |
---|
6120 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
---|
6121 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
---|
6122 | # In both cases, we have to default to `cp -p'. |
---|
6123 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
---|
6124 | as_ln_s='cp -p' |
---|
6125 | elif ln conf$$.file conf$$ 2>/dev/null; then |
---|
6126 | as_ln_s=ln |
---|
6127 | else |
---|
6128 | as_ln_s='cp -p' |
---|
6129 | fi |
---|
6130 | else |
---|
6131 | as_ln_s='cp -p' |
---|
6132 | fi |
---|
6133 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
---|
6134 | rmdir conf$$.dir 2>/dev/null |
---|
6135 | |
---|
6136 | |
---|
6137 | # as_fn_mkdir_p |
---|
6138 | # ------------- |
---|
6139 | # Create "$as_dir" as a directory, including parents if necessary. |
---|
6140 | as_fn_mkdir_p () |
---|
6141 | { |
---|
6142 | |
---|
6143 | case $as_dir in #( |
---|
6144 | -*) as_dir=./$as_dir;; |
---|
6145 | esac |
---|
6146 | test -d "$as_dir" || eval $as_mkdir_p || { |
---|
6147 | as_dirs= |
---|
6148 | while :; do |
---|
6149 | case $as_dir in #( |
---|
6150 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
---|
6151 | *) as_qdir=$as_dir;; |
---|
6152 | esac |
---|
6153 | as_dirs="'$as_qdir' $as_dirs" |
---|
6154 | as_dir=`$as_dirname -- "$as_dir" || |
---|
6155 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
6156 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
---|
6157 | X"$as_dir" : 'X\(//\)$' \| \ |
---|
6158 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
---|
6159 | $as_echo X"$as_dir" | |
---|
6160 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
6161 | s//\1/ |
---|
6162 | q |
---|
6163 | } |
---|
6164 | /^X\(\/\/\)[^/].*/{ |
---|
6165 | s//\1/ |
---|
6166 | q |
---|
6167 | } |
---|
6168 | /^X\(\/\/\)$/{ |
---|
6169 | s//\1/ |
---|
6170 | q |
---|
6171 | } |
---|
6172 | /^X\(\/\).*/{ |
---|
6173 | s//\1/ |
---|
6174 | q |
---|
6175 | } |
---|
6176 | s/.*/./; q'` |
---|
6177 | test -d "$as_dir" && break |
---|
6178 | done |
---|
6179 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
---|
6180 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
---|
6181 | |
---|
6182 | |
---|
6183 | } # as_fn_mkdir_p |
---|
6184 | if mkdir -p . 2>/dev/null; then |
---|
6185 | as_mkdir_p='mkdir -p "$as_dir"' |
---|
6186 | else |
---|
6187 | test -d ./-p && rmdir ./-p |
---|
6188 | as_mkdir_p=false |
---|
6189 | fi |
---|
6190 | |
---|
6191 | if test -x / >/dev/null 2>&1; then |
---|
6192 | as_test_x='test -x' |
---|
6193 | else |
---|
6194 | if ls -dL / >/dev/null 2>&1; then |
---|
6195 | as_ls_L_option=L |
---|
6196 | else |
---|
6197 | as_ls_L_option= |
---|
6198 | fi |
---|
6199 | as_test_x=' |
---|
6200 | eval sh -c '\'' |
---|
6201 | if test -d "$1"; then |
---|
6202 | test -d "$1/."; |
---|
6203 | else |
---|
6204 | case $1 in #( |
---|
6205 | -*)set "./$1";; |
---|
6206 | esac; |
---|
6207 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
---|
6208 | ???[sx]*):;;*)false;;esac;fi |
---|
6209 | '\'' sh |
---|
6210 | ' |
---|
6211 | fi |
---|
6212 | as_executable_p=$as_test_x |
---|
6213 | |
---|
6214 | # Sed expression to map a string onto a valid CPP name. |
---|
6215 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
---|
6216 | |
---|
6217 | # Sed expression to map a string onto a valid variable name. |
---|
6218 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
---|
6219 | |
---|
6220 | |
---|
6221 | exec 6>&1 |
---|
6222 | ## ----------------------------------- ## |
---|
6223 | ## Main body of $CONFIG_STATUS script. ## |
---|
6224 | ## ----------------------------------- ## |
---|
6225 | _ASEOF |
---|
6226 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
---|
6227 | |
---|
6228 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
6229 | # Save the log message, to keep $0 and so on meaningful, and to |
---|
6230 | # report actual input values of CONFIG_FILES etc. instead of their |
---|
6231 | # values after options handling. |
---|
6232 | ac_log=" |
---|
6233 | This file was extended by RapptureGUI $as_me 1.1, which was |
---|
6234 | generated by GNU Autoconf 2.68. Invocation command line was |
---|
6235 | |
---|
6236 | CONFIG_FILES = $CONFIG_FILES |
---|
6237 | CONFIG_HEADERS = $CONFIG_HEADERS |
---|
6238 | CONFIG_LINKS = $CONFIG_LINKS |
---|
6239 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
---|
6240 | $ $0 $@ |
---|
6241 | |
---|
6242 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
---|
6243 | " |
---|
6244 | |
---|
6245 | _ACEOF |
---|
6246 | |
---|
6247 | case $ac_config_files in *" |
---|
6248 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
---|
6249 | esac |
---|
6250 | |
---|
6251 | |
---|
6252 | |
---|
6253 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
6254 | # Files that config.status was made for. |
---|
6255 | config_files="$ac_config_files" |
---|
6256 | |
---|
6257 | _ACEOF |
---|
6258 | |
---|
6259 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
6260 | ac_cs_usage="\ |
---|
6261 | \`$as_me' instantiates files and other configuration actions |
---|
6262 | from templates according to the current configuration. Unless the files |
---|
6263 | and actions are specified as TAGs, all are instantiated by default. |
---|
6264 | |
---|
6265 | Usage: $0 [OPTION]... [TAG]... |
---|
6266 | |
---|
6267 | -h, --help print this help, then exit |
---|
6268 | -V, --version print version number and configuration settings, then exit |
---|
6269 | --config print configuration, then exit |
---|
6270 | -q, --quiet, --silent |
---|
6271 | do not print progress messages |
---|
6272 | -d, --debug don't remove temporary files |
---|
6273 | --recheck update $as_me by reconfiguring in the same conditions |
---|
6274 | --file=FILE[:TEMPLATE] |
---|
6275 | instantiate the configuration file FILE |
---|
6276 | |
---|
6277 | Configuration files: |
---|
6278 | $config_files |
---|
6279 | |
---|
6280 | Report bugs to <rappture@nanohub.org>." |
---|
6281 | |
---|
6282 | _ACEOF |
---|
6283 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
6284 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
---|
6285 | ac_cs_version="\\ |
---|
6286 | RapptureGUI config.status 1.1 |
---|
6287 | configured by $0, generated by GNU Autoconf 2.68, |
---|
6288 | with options \\"\$ac_cs_config\\" |
---|
6289 | |
---|
6290 | Copyright (C) 2010 Free Software Foundation, Inc. |
---|
6291 | This config.status script is free software; the Free Software Foundation |
---|
6292 | gives unlimited permission to copy, distribute and modify it." |
---|
6293 | |
---|
6294 | ac_pwd='$ac_pwd' |
---|
6295 | srcdir='$srcdir' |
---|
6296 | INSTALL='$INSTALL' |
---|
6297 | MKDIR_P='$MKDIR_P' |
---|
6298 | test -n "\$AWK" || AWK=awk |
---|
6299 | _ACEOF |
---|
6300 | |
---|
6301 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
6302 | # The default lists apply if the user does not specify any file. |
---|
6303 | ac_need_defaults=: |
---|
6304 | while test $# != 0 |
---|
6305 | do |
---|
6306 | case $1 in |
---|
6307 | --*=?*) |
---|
6308 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
---|
6309 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
---|
6310 | ac_shift=: |
---|
6311 | ;; |
---|
6312 | --*=) |
---|
6313 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
---|
6314 | ac_optarg= |
---|
6315 | ac_shift=: |
---|
6316 | ;; |
---|
6317 | *) |
---|
6318 | ac_option=$1 |
---|
6319 | ac_optarg=$2 |
---|
6320 | ac_shift=shift |
---|
6321 | ;; |
---|
6322 | esac |
---|
6323 | |
---|
6324 | case $ac_option in |
---|
6325 | # Handling of the options. |
---|
6326 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
---|
6327 | ac_cs_recheck=: ;; |
---|
6328 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
---|
6329 | $as_echo "$ac_cs_version"; exit ;; |
---|
6330 | --config | --confi | --conf | --con | --co | --c ) |
---|
6331 | $as_echo "$ac_cs_config"; exit ;; |
---|
6332 | --debug | --debu | --deb | --de | --d | -d ) |
---|
6333 | debug=: ;; |
---|
6334 | --file | --fil | --fi | --f ) |
---|
6335 | $ac_shift |
---|
6336 | case $ac_optarg in |
---|
6337 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
---|
6338 | '') as_fn_error $? "missing file argument" ;; |
---|
6339 | esac |
---|
6340 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
---|
6341 | ac_need_defaults=false;; |
---|
6342 | --he | --h | --help | --hel | -h ) |
---|
6343 | $as_echo "$ac_cs_usage"; exit ;; |
---|
6344 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
---|
6345 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
---|
6346 | ac_cs_silent=: ;; |
---|
6347 | |
---|
6348 | # This is an error. |
---|
6349 | -*) as_fn_error $? "unrecognized option: \`$1' |
---|
6350 | Try \`$0 --help' for more information." ;; |
---|
6351 | |
---|
6352 | *) as_fn_append ac_config_targets " $1" |
---|
6353 | ac_need_defaults=false ;; |
---|
6354 | |
---|
6355 | esac |
---|
6356 | shift |
---|
6357 | done |
---|
6358 | |
---|
6359 | ac_configure_extra_args= |
---|
6360 | |
---|
6361 | if $ac_cs_silent; then |
---|
6362 | exec 6>/dev/null |
---|
6363 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
---|
6364 | fi |
---|
6365 | |
---|
6366 | _ACEOF |
---|
6367 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
6368 | if \$ac_cs_recheck; then |
---|
6369 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
---|
6370 | shift |
---|
6371 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
---|
6372 | CONFIG_SHELL='$SHELL' |
---|
6373 | export CONFIG_SHELL |
---|
6374 | exec "\$@" |
---|
6375 | fi |
---|
6376 | |
---|
6377 | _ACEOF |
---|
6378 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
6379 | exec 5>>config.log |
---|
6380 | { |
---|
6381 | echo |
---|
6382 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
---|
6383 | ## Running $as_me. ## |
---|
6384 | _ASBOX |
---|
6385 | $as_echo "$ac_log" |
---|
6386 | } >&5 |
---|
6387 | |
---|
6388 | _ACEOF |
---|
6389 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
6390 | _ACEOF |
---|
6391 | |
---|
6392 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
6393 | |
---|
6394 | # Handling of arguments. |
---|
6395 | for ac_config_target in $ac_config_targets |
---|
6396 | do |
---|
6397 | case $ac_config_target in |
---|
6398 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
---|
6399 | "pkgIndex.tcl") CONFIG_FILES="$CONFIG_FILES pkgIndex.tcl" ;; |
---|
6400 | "apps/Makefile") CONFIG_FILES="$CONFIG_FILES apps/Makefile" ;; |
---|
6401 | "apps/about") CONFIG_FILES="$CONFIG_FILES apps/about" ;; |
---|
6402 | "apps/encodedata") CONFIG_FILES="$CONFIG_FILES apps/encodedata" ;; |
---|
6403 | "apps/rappture") CONFIG_FILES="$CONFIG_FILES apps/rappture" ;; |
---|
6404 | "apps/rappture-csh.env") CONFIG_FILES="$CONFIG_FILES apps/rappture-csh.env" ;; |
---|
6405 | "apps/rappture.env") CONFIG_FILES="$CONFIG_FILES apps/rappture.env" ;; |
---|
6406 | "apps/rappture.use") CONFIG_FILES="$CONFIG_FILES apps/rappture.use" ;; |
---|
6407 | "apps/rerun") CONFIG_FILES="$CONFIG_FILES apps/rerun" ;; |
---|
6408 | "apps/simsim") CONFIG_FILES="$CONFIG_FILES apps/simsim" ;; |
---|
6409 | "apps/xmldiff") CONFIG_FILES="$CONFIG_FILES apps/xmldiff" ;; |
---|
6410 | "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;; |
---|
6411 | "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
---|
6412 | |
---|
6413 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
---|
6414 | esac |
---|
6415 | done |
---|
6416 | |
---|
6417 | |
---|
6418 | # If the user did not use the arguments to specify the items to instantiate, |
---|
6419 | # then the envvar interface is used. Set only those that are not. |
---|
6420 | # We use the long form for the default assignment because of an extremely |
---|
6421 | # bizarre bug on SunOS 4.1.3. |
---|
6422 | if $ac_need_defaults; then |
---|
6423 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
---|
6424 | fi |
---|
6425 | |
---|
6426 | # Have a temporary directory for convenience. Make it in the build tree |
---|
6427 | # simply because there is no reason against having it here, and in addition, |
---|
6428 | # creating and moving files from /tmp can sometimes cause problems. |
---|
6429 | # Hook for its removal unless debugging. |
---|
6430 | # Note that there is a small window in which the directory will not be cleaned: |
---|
6431 | # after its creation but before its name has been assigned to `$tmp'. |
---|
6432 | $debug || |
---|
6433 | { |
---|
6434 | tmp= ac_tmp= |
---|
6435 | trap 'exit_status=$? |
---|
6436 | : "${ac_tmp:=$tmp}" |
---|
6437 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status |
---|
6438 | ' 0 |
---|
6439 | trap 'as_fn_exit 1' 1 2 13 15 |
---|
6440 | } |
---|
6441 | # Create a (secure) tmp directory for tmp files. |
---|
6442 | |
---|
6443 | { |
---|
6444 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
---|
6445 | test -d "$tmp" |
---|
6446 | } || |
---|
6447 | { |
---|
6448 | tmp=./conf$$-$RANDOM |
---|
6449 | (umask 077 && mkdir "$tmp") |
---|
6450 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
---|
6451 | ac_tmp=$tmp |
---|
6452 | |
---|
6453 | # Set up the scripts for CONFIG_FILES section. |
---|
6454 | # No need to generate them if there are no CONFIG_FILES. |
---|
6455 | # This happens for instance with `./config.status config.h'. |
---|
6456 | if test -n "$CONFIG_FILES"; then |
---|
6457 | |
---|
6458 | |
---|
6459 | ac_cr=`echo X | tr X '\015'` |
---|
6460 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
---|
6461 | # But we know of no other shell where ac_cr would be empty at this |
---|
6462 | # point, so we can use a bashism as a fallback. |
---|
6463 | if test "x$ac_cr" = x; then |
---|
6464 | eval ac_cr=\$\'\\r\' |
---|
6465 | fi |
---|
6466 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
---|
6467 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
---|
6468 | ac_cs_awk_cr='\\r' |
---|
6469 | else |
---|
6470 | ac_cs_awk_cr=$ac_cr |
---|
6471 | fi |
---|
6472 | |
---|
6473 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
---|
6474 | _ACEOF |
---|
6475 | |
---|
6476 | |
---|
6477 | { |
---|
6478 | echo "cat >conf$$subs.awk <<_ACEOF" && |
---|
6479 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
---|
6480 | echo "_ACEOF" |
---|
6481 | } >conf$$subs.sh || |
---|
6482 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
---|
6483 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` |
---|
6484 | ac_delim='%!_!# ' |
---|
6485 | for ac_last_try in false false false false false :; do |
---|
6486 | . ./conf$$subs.sh || |
---|
6487 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
---|
6488 | |
---|
6489 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
---|
6490 | if test $ac_delim_n = $ac_delim_num; then |
---|
6491 | break |
---|
6492 | elif $ac_last_try; then |
---|
6493 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
---|
6494 | else |
---|
6495 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
---|
6496 | fi |
---|
6497 | done |
---|
6498 | rm -f conf$$subs.sh |
---|
6499 | |
---|
6500 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
6501 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
---|
6502 | _ACEOF |
---|
6503 | sed -n ' |
---|
6504 | h |
---|
6505 | s/^/S["/; s/!.*/"]=/ |
---|
6506 | p |
---|
6507 | g |
---|
6508 | s/^[^!]*!// |
---|
6509 | :repl |
---|
6510 | t repl |
---|
6511 | s/'"$ac_delim"'$// |
---|
6512 | t delim |
---|
6513 | :nl |
---|
6514 | h |
---|
6515 | s/\(.\{148\}\)..*/\1/ |
---|
6516 | t more1 |
---|
6517 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
---|
6518 | p |
---|
6519 | n |
---|
6520 | b repl |
---|
6521 | :more1 |
---|
6522 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
---|
6523 | p |
---|
6524 | g |
---|
6525 | s/.\{148\}// |
---|
6526 | t nl |
---|
6527 | :delim |
---|
6528 | h |
---|
6529 | s/\(.\{148\}\)..*/\1/ |
---|
6530 | t more2 |
---|
6531 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
---|
6532 | p |
---|
6533 | b |
---|
6534 | :more2 |
---|
6535 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
---|
6536 | p |
---|
6537 | g |
---|
6538 | s/.\{148\}// |
---|
6539 | t delim |
---|
6540 | ' <conf$$subs.awk | sed ' |
---|
6541 | /^[^""]/{ |
---|
6542 | N |
---|
6543 | s/\n// |
---|
6544 | } |
---|
6545 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
---|
6546 | rm -f conf$$subs.awk |
---|
6547 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
6548 | _ACAWK |
---|
6549 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
---|
6550 | for (key in S) S_is_set[key] = 1 |
---|
6551 | FS = "" |
---|
6552 | |
---|
6553 | } |
---|
6554 | { |
---|
6555 | line = $ 0 |
---|
6556 | nfields = split(line, field, "@") |
---|
6557 | substed = 0 |
---|
6558 | len = length(field[1]) |
---|
6559 | for (i = 2; i < nfields; i++) { |
---|
6560 | key = field[i] |
---|
6561 | keylen = length(key) |
---|
6562 | if (S_is_set[key]) { |
---|
6563 | value = S[key] |
---|
6564 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
---|
6565 | len += length(value) + length(field[++i]) |
---|
6566 | substed = 1 |
---|
6567 | } else |
---|
6568 | len += 1 + keylen |
---|
6569 | } |
---|
6570 | |
---|
6571 | print line |
---|
6572 | } |
---|
6573 | |
---|
6574 | _ACAWK |
---|
6575 | _ACEOF |
---|
6576 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
6577 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
---|
6578 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
---|
6579 | else |
---|
6580 | cat |
---|
6581 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
---|
6582 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
---|
6583 | _ACEOF |
---|
6584 | |
---|
6585 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
---|
6586 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and |
---|
6587 | # trailing colons and then remove the whole line if VPATH becomes empty |
---|
6588 | # (actually we leave an empty line to preserve line numbers). |
---|
6589 | if test "x$srcdir" = x.; then |
---|
6590 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
---|
6591 | h |
---|
6592 | s/// |
---|
6593 | s/^/:/ |
---|
6594 | s/[ ]*$/:/ |
---|
6595 | s/:\$(srcdir):/:/g |
---|
6596 | s/:\${srcdir}:/:/g |
---|
6597 | s/:@srcdir@:/:/g |
---|
6598 | s/^:*// |
---|
6599 | s/:*$// |
---|
6600 | x |
---|
6601 | s/\(=[ ]*\).*/\1/ |
---|
6602 | G |
---|
6603 | s/\n// |
---|
6604 | s/^[^=]*=[ ]*$// |
---|
6605 | }' |
---|
6606 | fi |
---|
6607 | |
---|
6608 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
6609 | fi # test -n "$CONFIG_FILES" |
---|
6610 | |
---|
6611 | |
---|
6612 | eval set X " :F $CONFIG_FILES " |
---|
6613 | shift |
---|
6614 | for ac_tag |
---|
6615 | do |
---|
6616 | case $ac_tag in |
---|
6617 | :[FHLC]) ac_mode=$ac_tag; continue;; |
---|
6618 | esac |
---|
6619 | case $ac_mode$ac_tag in |
---|
6620 | :[FHL]*:*);; |
---|
6621 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
---|
6622 | :[FH]-) ac_tag=-:-;; |
---|
6623 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
---|
6624 | esac |
---|
6625 | ac_save_IFS=$IFS |
---|
6626 | IFS=: |
---|
6627 | set x $ac_tag |
---|
6628 | IFS=$ac_save_IFS |
---|
6629 | shift |
---|
6630 | ac_file=$1 |
---|
6631 | shift |
---|
6632 | |
---|
6633 | case $ac_mode in |
---|
6634 | :L) ac_source=$1;; |
---|
6635 | :[FH]) |
---|
6636 | ac_file_inputs= |
---|
6637 | for ac_f |
---|
6638 | do |
---|
6639 | case $ac_f in |
---|
6640 | -) ac_f="$ac_tmp/stdin";; |
---|
6641 | *) # Look for the file first in the build tree, then in the source tree |
---|
6642 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
---|
6643 | # because $ac_f cannot contain `:'. |
---|
6644 | test -f "$ac_f" || |
---|
6645 | case $ac_f in |
---|
6646 | [\\/$]*) false;; |
---|
6647 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
---|
6648 | esac || |
---|
6649 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
---|
6650 | esac |
---|
6651 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
---|
6652 | as_fn_append ac_file_inputs " '$ac_f'" |
---|
6653 | done |
---|
6654 | |
---|
6655 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
---|
6656 | # use $as_me), people would be surprised to read: |
---|
6657 | # /* config.h. Generated by config.status. */ |
---|
6658 | configure_input='Generated from '` |
---|
6659 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
---|
6660 | `' by configure.' |
---|
6661 | if test x"$ac_file" != x-; then |
---|
6662 | configure_input="$ac_file. $configure_input" |
---|
6663 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
---|
6664 | $as_echo "$as_me: creating $ac_file" >&6;} |
---|
6665 | fi |
---|
6666 | # Neutralize special characters interpreted by sed in replacement strings. |
---|
6667 | case $configure_input in #( |
---|
6668 | *\&* | *\|* | *\\* ) |
---|
6669 | ac_sed_conf_input=`$as_echo "$configure_input" | |
---|
6670 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
---|
6671 | *) ac_sed_conf_input=$configure_input;; |
---|
6672 | esac |
---|
6673 | |
---|
6674 | case $ac_tag in |
---|
6675 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
---|
6676 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
---|
6677 | esac |
---|
6678 | ;; |
---|
6679 | esac |
---|
6680 | |
---|
6681 | ac_dir=`$as_dirname -- "$ac_file" || |
---|
6682 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
---|
6683 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
---|
6684 | X"$ac_file" : 'X\(//\)$' \| \ |
---|
6685 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
---|
6686 | $as_echo X"$ac_file" | |
---|
6687 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
---|
6688 | s//\1/ |
---|
6689 | q |
---|
6690 | } |
---|
6691 | /^X\(\/\/\)[^/].*/{ |
---|
6692 | s//\1/ |
---|
6693 | q |
---|
6694 | } |
---|
6695 | /^X\(\/\/\)$/{ |
---|
6696 | s//\1/ |
---|
6697 | q |
---|
6698 | } |
---|
6699 | /^X\(\/\).*/{ |
---|
6700 | s//\1/ |
---|
6701 | q |
---|
6702 | } |
---|
6703 | s/.*/./; q'` |
---|
6704 | as_dir="$ac_dir"; as_fn_mkdir_p |
---|
6705 | ac_builddir=. |
---|
6706 | |
---|
6707 | case "$ac_dir" in |
---|
6708 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
6709 | *) |
---|
6710 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
---|
6711 | # A ".." for each directory in $ac_dir_suffix. |
---|
6712 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
---|
6713 | case $ac_top_builddir_sub in |
---|
6714 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
---|
6715 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
---|
6716 | esac ;; |
---|
6717 | esac |
---|
6718 | ac_abs_top_builddir=$ac_pwd |
---|
6719 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
---|
6720 | # for backward compatibility: |
---|
6721 | ac_top_builddir=$ac_top_build_prefix |
---|
6722 | |
---|
6723 | case $srcdir in |
---|
6724 | .) # We are building in place. |
---|
6725 | ac_srcdir=. |
---|
6726 | ac_top_srcdir=$ac_top_builddir_sub |
---|
6727 | ac_abs_top_srcdir=$ac_pwd ;; |
---|
6728 | [\\/]* | ?:[\\/]* ) # Absolute name. |
---|
6729 | ac_srcdir=$srcdir$ac_dir_suffix; |
---|
6730 | ac_top_srcdir=$srcdir |
---|
6731 | ac_abs_top_srcdir=$srcdir ;; |
---|
6732 | *) # Relative name. |
---|
6733 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
---|
6734 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
---|
6735 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
---|
6736 | esac |
---|
6737 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
---|
6738 | |
---|
6739 | |
---|
6740 | case $ac_mode in |
---|
6741 | :F) |
---|
6742 | # |
---|
6743 | # CONFIG_FILE |
---|
6744 | # |
---|
6745 | |
---|
6746 | case $INSTALL in |
---|
6747 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
---|
6748 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
---|
6749 | esac |
---|
6750 | ac_MKDIR_P=$MKDIR_P |
---|
6751 | case $MKDIR_P in |
---|
6752 | [\\/$]* | ?:[\\/]* ) ;; |
---|
6753 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
---|
6754 | esac |
---|
6755 | _ACEOF |
---|
6756 | |
---|
6757 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
6758 | # If the template does not know about datarootdir, expand it. |
---|
6759 | # FIXME: This hack should be removed a few years after 2.60. |
---|
6760 | ac_datarootdir_hack=; ac_datarootdir_seen= |
---|
6761 | ac_sed_dataroot=' |
---|
6762 | /datarootdir/ { |
---|
6763 | p |
---|
6764 | q |
---|
6765 | } |
---|
6766 | /@datadir@/p |
---|
6767 | /@docdir@/p |
---|
6768 | /@infodir@/p |
---|
6769 | /@localedir@/p |
---|
6770 | /@mandir@/p' |
---|
6771 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
---|
6772 | *datarootdir*) ac_datarootdir_seen=yes;; |
---|
6773 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
---|
6774 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
---|
6775 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
---|
6776 | _ACEOF |
---|
6777 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
6778 | ac_datarootdir_hack=' |
---|
6779 | s&@datadir@&$datadir&g |
---|
6780 | s&@docdir@&$docdir&g |
---|
6781 | s&@infodir@&$infodir&g |
---|
6782 | s&@localedir@&$localedir&g |
---|
6783 | s&@mandir@&$mandir&g |
---|
6784 | s&\\\${datarootdir}&$datarootdir&g' ;; |
---|
6785 | esac |
---|
6786 | _ACEOF |
---|
6787 | |
---|
6788 | # Neutralize VPATH when `$srcdir' = `.'. |
---|
6789 | # Shell code in configure.ac might set extrasub. |
---|
6790 | # FIXME: do we really want to maintain this feature? |
---|
6791 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
---|
6792 | ac_sed_extra="$ac_vpsub |
---|
6793 | $extrasub |
---|
6794 | _ACEOF |
---|
6795 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
---|
6796 | :t |
---|
6797 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
---|
6798 | s|@configure_input@|$ac_sed_conf_input|;t t |
---|
6799 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
---|
6800 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
---|
6801 | s&@srcdir@&$ac_srcdir&;t t |
---|
6802 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
---|
6803 | s&@top_srcdir@&$ac_top_srcdir&;t t |
---|
6804 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
---|
6805 | s&@builddir@&$ac_builddir&;t t |
---|
6806 | s&@abs_builddir@&$ac_abs_builddir&;t t |
---|
6807 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
---|
6808 | s&@INSTALL@&$ac_INSTALL&;t t |
---|
6809 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
---|
6810 | $ac_datarootdir_hack |
---|
6811 | " |
---|
6812 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
---|
6813 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
---|
6814 | |
---|
6815 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
---|
6816 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
---|
6817 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ |
---|
6818 | "$ac_tmp/out"`; test -z "$ac_out"; } && |
---|
6819 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
---|
6820 | which seems to be undefined. Please make sure it is defined" >&5 |
---|
6821 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
---|
6822 | which seems to be undefined. Please make sure it is defined" >&2;} |
---|
6823 | |
---|
6824 | rm -f "$ac_tmp/stdin" |
---|
6825 | case $ac_file in |
---|
6826 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
---|
6827 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; |
---|
6828 | esac \ |
---|
6829 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
---|
6830 | ;; |
---|
6831 | |
---|
6832 | |
---|
6833 | |
---|
6834 | esac |
---|
6835 | |
---|
6836 | done # for ac_tag |
---|
6837 | |
---|
6838 | |
---|
6839 | as_fn_exit 0 |
---|
6840 | _ACEOF |
---|
6841 | ac_clean_files=$ac_clean_files_save |
---|
6842 | |
---|
6843 | test $ac_write_fail = 0 || |
---|
6844 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
---|
6845 | |
---|
6846 | |
---|
6847 | # configure is writing to config.log, and then calls config.status. |
---|
6848 | # config.status does its own redirection, appending to config.log. |
---|
6849 | # Unfortunately, on DOS this fails, as config.log is still kept open |
---|
6850 | # by configure, so config.status won't be able to write to it; its |
---|
6851 | # output is simply discarded. So we exec the FD to /dev/null, |
---|
6852 | # effectively closing config.log, so it can be properly (re)opened and |
---|
6853 | # appended to by config.status. When coming back to configure, we |
---|
6854 | # need to make the FD available again. |
---|
6855 | if test "$no_create" != yes; then |
---|
6856 | ac_cs_success=: |
---|
6857 | ac_config_status_args= |
---|
6858 | test "$silent" = yes && |
---|
6859 | ac_config_status_args="$ac_config_status_args --quiet" |
---|
6860 | exec 5>/dev/null |
---|
6861 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
---|
6862 | exec 5>>config.log |
---|
6863 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
---|
6864 | # would make configure fail if this is the last instruction. |
---|
6865 | $ac_cs_success || as_fn_exit 1 |
---|
6866 | fi |
---|
6867 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
---|
6868 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
---|
6869 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
---|
6870 | fi |
---|
6871 | |
---|